How to use @commercetools/inventories-exporter - 2 common examples

To help you get started, we’ve selected a few @commercetools/inventories-exporter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github commercetools / nodejs / integration-tests / cli / inventories-exporter.it.js View on Github external
beforeAll(async () => {
    const credentials = await getCredentials(projectKey)
    apiConfig = {
      host: CONSTANTS.host.auth,
      apiUrl: CONSTANTS.host.api,
      projectKey,
      credentials: {
        clientId: credentials.clientId,
        clientSecret: credentials.clientSecret,
      },
    }
    await clearData(apiConfig, 'orders')
    await clearData(apiConfig, 'inventory')
    await clearData(apiConfig, 'types')
    await createData(apiConfig, 'types', customFields)
    await createData(apiConfig, 'inventory', inventories)
  }, 30000)
github commercetools / nodejs / integration-tests / cli / inventories-exporter.it.js View on Github external
beforeAll(async () => {
    const credentials = await getCredentials(projectKey)
    apiConfig = {
      host: CONSTANTS.host.auth,
      apiUrl: CONSTANTS.host.api,
      projectKey,
      credentials: {
        clientId: credentials.clientId,
        clientSecret: credentials.clientSecret,
      },
    }
    await clearData(apiConfig, 'orders')
    await clearData(apiConfig, 'inventory')
    await clearData(apiConfig, 'types')
    await createData(apiConfig, 'types', customFields)
    await createData(apiConfig, 'inventory', inventories)
  }, 30000)

@commercetools/inventories-exporter

Exports inventories from the commercetools platform.

MIT
Latest version published 2 years ago

Package Health Score

51 / 100
Full package analysis

Popular @commercetools/inventories-exporter functions