How to use @commercetools/state-importer - 1 common examples

To help you get started, we’ve selected a few @commercetools/state-importer 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 sphereio / sphere-node-cli / lib / commands / import.js View on Github external
[allowedTypes.state]: (options) => {
    const service = new StateImporter(
      Object.assign({}, options.config, {
        apiConfig: {
          host: options.authHost,
          projectKey: options.credentials.project_key,
          credentials: {
            clientId: options.credentials.client_id,
            clientSecret: options.credentials.client_secret,
          },
          apiUrl: options.host,
          protocol: options.protocol,
          oauth_protocol: options.authProtocol,
        },
        accessToken: options.accessToken,
      }),
      log,
    )

@commercetools/state-importer

Import states to the commercetools platform

MIT
Latest version published 2 years ago

Package Health Score

57 / 100
Full package analysis

Popular @commercetools/state-importer functions