@commercetools-frontend/mc-scripts 22.7.1 → 22.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +5 -5
  2. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +5 -5
  3. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +5 -5
  4. package/dist/{build-a3d29b86.esm.js → build-897197f8.esm.js} +3 -3
  5. package/dist/{build-8973fc06.cjs.dev.js → build-8f9bd36f.cjs.dev.js} +3 -3
  6. package/dist/{build-892510a9.cjs.prod.js → build-b052d4a8.cjs.prod.js} +3 -3
  7. package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
  8. package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
  9. package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
  10. package/dist/{config-sync-45a36f3e.cjs.prod.js → config-sync-5c47c108.cjs.prod.js} +18 -16
  11. package/dist/{config-sync-23a4c471.esm.js → config-sync-5c974290.esm.js} +18 -16
  12. package/dist/{config-sync-8bb629a0.cjs.dev.js → config-sync-885d0602.cjs.dev.js} +18 -16
  13. package/dist/{create-postcss-config-d53cbd2a.cjs.prod.js → create-postcss-config-27d7c566.cjs.prod.js} +1 -1
  14. package/dist/{create-postcss-config-5f26772d.esm.js → create-postcss-config-519b81cb.esm.js} +1 -1
  15. package/dist/{create-postcss-config-c57d1c88.cjs.dev.js → create-postcss-config-dc49128c.cjs.dev.js} +1 -1
  16. package/dist/{create-webpack-config-for-development-a95b86ae.cjs.dev.js → create-webpack-config-for-development-45f881ce.cjs.dev.js} +3 -3
  17. package/dist/{create-webpack-config-for-development-6de9f082.cjs.prod.js → create-webpack-config-for-development-98e32ec1.cjs.prod.js} +3 -3
  18. package/dist/{create-webpack-config-for-development-8573e2f2.esm.js → create-webpack-config-for-development-eb2e9485.esm.js} +3 -3
  19. package/dist/{create-webpack-config-for-production-3e70ec15.cjs.dev.js → create-webpack-config-for-production-0b766c47.cjs.dev.js} +3 -3
  20. package/dist/{create-webpack-config-for-production-de7ba047.cjs.prod.js → create-webpack-config-for-production-751756f1.cjs.prod.js} +3 -3
  21. package/dist/{create-webpack-config-for-production-8815d830.esm.js → create-webpack-config-for-production-b6d00b6e.esm.js} +3 -3
  22. package/dist/{credentials-storage-9f0431c6.cjs.dev.js → credentials-storage-770c47fe.cjs.dev.js} +1 -1
  23. package/dist/{credentials-storage-56a5405e.esm.js → credentials-storage-9d81c79a.esm.js} +1 -1
  24. package/dist/{credentials-storage-0c4e6bd2.cjs.prod.js → credentials-storage-fbd3baab.cjs.prod.js} +1 -1
  25. package/dist/declarations/src/generated/settings.d.ts +78 -2
  26. package/dist/{login-f17a6acc.cjs.dev.js → login-3a8da3eb.cjs.prod.js} +5 -13
  27. package/dist/{login-7f73d578.cjs.prod.js → login-a8925d26.cjs.dev.js} +5 -13
  28. package/dist/{login-6c86481c.esm.js → login-bd392493.esm.js} +5 -12
  29. package/dist/{package-8fb3bdf6.esm.js → package-25df14f0.esm.js} +19 -19
  30. package/dist/{package-f6c23cfe.cjs.dev.js → package-dcf0fd0b.cjs.dev.js} +19 -19
  31. package/dist/{package-6a3a74e6.cjs.prod.js → package-def20f2a.cjs.prod.js} +19 -19
  32. package/dist/{start-33943e55.esm.js → start-06244563.esm.js} +4 -4
  33. package/dist/{start-14388e1f.cjs.prod.js → start-5a3bfc78.cjs.prod.js} +4 -4
  34. package/dist/{start-b6ee0e11.cjs.dev.js → start-821f8317.cjs.dev.js} +4 -4
  35. package/package.json +19 -19
  36. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
  37. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
  38. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
  39. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +4 -4
  40. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +4 -4
  41. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +4 -4
@@ -10,7 +10,7 @@ var path = require('path');
10
10
  var cac = require('cac');
11
11
  var dotenv = require('dotenv');
12
12
  var dotenvExpand = require('dotenv-expand');
13
- var _package = require('../../dist/package-f6c23cfe.cjs.dev.js');
13
+ var _package = require('../../dist/package-dcf0fd0b.cjs.dev.js');
14
14
 
15
15
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
16
16
 
@@ -56,7 +56,7 @@ async function run() {
56
56
  console.log('Experimental Vite bundler enabled! 🚀');
57
57
  console.log('');
58
58
  }
59
- const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-3966d625.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-b6ee0e11.cjs.dev.js'); });
59
+ const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-3966d625.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-821f8317.cjs.dev.js'); });
60
60
  await startCommand.default();
61
61
  });
62
62
 
@@ -77,7 +77,7 @@ async function run() {
77
77
  console.log('Experimental Vite bundler enabled! 🚀');
78
78
  console.log('');
79
79
  }
80
- const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-e7a6315c.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-8973fc06.cjs.dev.js'); });
80
+ const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-e7a6315c.cjs.dev.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-8f9bd36f.cjs.dev.js'); });
81
81
  await buildCommand.default();
82
82
  const shouldAlsoCompile = !options.buildOnly;
83
83
  if (shouldAlsoCompile) {
@@ -126,7 +126,7 @@ async function run() {
126
126
 
127
127
  // Do this as the first thing so that any code reading it knows the right env.
128
128
  process.env.NODE_ENV = 'production';
129
- const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-f17a6acc.cjs.dev.js'); });
129
+ const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-a8925d26.cjs.dev.js'); });
130
130
  await loginCommand.default();
131
131
  });
132
132
 
@@ -141,7 +141,7 @@ async function run() {
141
141
 
142
142
  // Do this as the first thing so that any code reading it knows the right env.
143
143
  process.env.NODE_ENV = 'production';
144
- const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-8bb629a0.cjs.dev.js'); });
144
+ const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-885d0602.cjs.dev.js'); });
145
145
  await configSyncCommand.default(options);
146
146
  });
147
147
  cli.help();
@@ -10,7 +10,7 @@ var path = require('path');
10
10
  var cac = require('cac');
11
11
  var dotenv = require('dotenv');
12
12
  var dotenvExpand = require('dotenv-expand');
13
- var _package = require('../../dist/package-6a3a74e6.cjs.prod.js');
13
+ var _package = require('../../dist/package-def20f2a.cjs.prod.js');
14
14
 
15
15
  function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
16
16
 
@@ -56,7 +56,7 @@ async function run() {
56
56
  console.log('Experimental Vite bundler enabled! 🚀');
57
57
  console.log('');
58
58
  }
59
- const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-5c78605b.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-14388e1f.cjs.prod.js'); });
59
+ const startCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/start-vite-5c78605b.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/start-5a3bfc78.cjs.prod.js'); });
60
60
  await startCommand.default();
61
61
  });
62
62
 
@@ -77,7 +77,7 @@ async function run() {
77
77
  console.log('Experimental Vite bundler enabled! 🚀');
78
78
  console.log('');
79
79
  }
80
- const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-1ba28dd8.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-892510a9.cjs.prod.js'); });
80
+ const buildCommand = shouldUseExperimentalBundler ? await Promise.resolve().then(function () { return require('../../dist/build-vite-1ba28dd8.cjs.prod.js'); }) : await Promise.resolve().then(function () { return require('../../dist/build-b052d4a8.cjs.prod.js'); });
81
81
  await buildCommand.default();
82
82
  const shouldAlsoCompile = !options.buildOnly;
83
83
  if (shouldAlsoCompile) {
@@ -126,7 +126,7 @@ async function run() {
126
126
 
127
127
  // Do this as the first thing so that any code reading it knows the right env.
128
128
  process.env.NODE_ENV = 'production';
129
- const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-7f73d578.cjs.prod.js'); });
129
+ const loginCommand = await Promise.resolve().then(function () { return require('../../dist/login-3a8da3eb.cjs.prod.js'); });
130
130
  await loginCommand.default();
131
131
  });
132
132
 
@@ -141,7 +141,7 @@ async function run() {
141
141
 
142
142
  // Do this as the first thing so that any code reading it knows the right env.
143
143
  process.env.NODE_ENV = 'production';
144
- const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-45a36f3e.cjs.prod.js'); });
144
+ const configSyncCommand = await Promise.resolve().then(function () { return require('../../dist/config-sync-5c47c108.cjs.prod.js'); });
145
145
  await configSyncCommand.default(options);
146
146
  });
147
147
  cli.help();
@@ -6,7 +6,7 @@ import path from 'path';
6
6
  import { cac } from 'cac';
7
7
  import dotenv from 'dotenv';
8
8
  import dotenvExpand from 'dotenv-expand';
9
- import { p as pkgJson } from '../../dist/package-8fb3bdf6.esm.js';
9
+ import { p as pkgJson } from '../../dist/package-25df14f0.esm.js';
10
10
 
11
11
  const cli = cac('mc-scripts');
12
12
 
@@ -42,7 +42,7 @@ async function run() {
42
42
  console.log('Experimental Vite bundler enabled! 🚀');
43
43
  console.log('');
44
44
  }
45
- const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-cf0213a1.esm.js') : await import('../../dist/start-33943e55.esm.js');
45
+ const startCommand = shouldUseExperimentalBundler ? await import('../../dist/start-vite-cf0213a1.esm.js') : await import('../../dist/start-06244563.esm.js');
46
46
  await startCommand.default();
47
47
  });
48
48
 
@@ -63,7 +63,7 @@ async function run() {
63
63
  console.log('Experimental Vite bundler enabled! 🚀');
64
64
  console.log('');
65
65
  }
66
- const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-9de4820c.esm.js') : await import('../../dist/build-a3d29b86.esm.js');
66
+ const buildCommand = shouldUseExperimentalBundler ? await import('../../dist/build-vite-9de4820c.esm.js') : await import('../../dist/build-897197f8.esm.js');
67
67
  await buildCommand.default();
68
68
  const shouldAlsoCompile = !options.buildOnly;
69
69
  if (shouldAlsoCompile) {
@@ -112,7 +112,7 @@ async function run() {
112
112
 
113
113
  // Do this as the first thing so that any code reading it knows the right env.
114
114
  process.env.NODE_ENV = 'production';
115
- const loginCommand = await import('../../dist/login-6c86481c.esm.js');
115
+ const loginCommand = await import('../../dist/login-bd392493.esm.js');
116
116
  await loginCommand.default();
117
117
  });
118
118
 
@@ -127,7 +127,7 @@ async function run() {
127
127
 
128
128
  // Do this as the first thing so that any code reading it knows the right env.
129
129
  process.env.NODE_ENV = 'production';
130
- const configSyncCommand = await import('../../dist/config-sync-23a4c471.esm.js');
130
+ const configSyncCommand = await import('../../dist/config-sync-5c974290.esm.js');
131
131
  await configSyncCommand.default(options);
132
132
  });
133
133
  cli.help();
@@ -8,7 +8,7 @@ import formatWebpackMessages from 'react-dev-utils/formatWebpackMessages';
8
8
  import printBuildError from 'react-dev-utils/printBuildError';
9
9
  import webpack from 'webpack';
10
10
  import { packageLocation } from '@commercetools-frontend/assets';
11
- import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-8815d830.esm.js';
11
+ import { c as createWebpackConfigForProduction } from './create-webpack-config-for-production-b6d00b6e.esm.js';
12
12
  import { p as paths } from './paths-ded20ae1.esm.js';
13
13
  import '@babel/runtime-corejs3/core-js-stable/object/keys';
14
14
  import '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
@@ -36,9 +36,9 @@ import '@babel/runtime-corejs3/core-js-stable/instance/bind';
36
36
  import '@babel/runtime-corejs3/core-js-stable/instance/reduce';
37
37
  import '@babel/runtime-corejs3/core-js-stable/object/assign';
38
38
  import 'fs';
39
- import './create-postcss-config-5f26772d.esm.js';
39
+ import './create-postcss-config-519b81cb.esm.js';
40
40
  import '@babel/runtime-corejs3/helpers/slicedToArray';
41
- import './package-8fb3bdf6.esm.js';
41
+ import './package-25df14f0.esm.js';
42
42
  import './has-jsx-runtime-e3ecb09b.esm.js';
43
43
  import './vendors-to-transpile-7dc84a72.esm.js';
44
44
  import '@babel/runtime-corejs3/core-js-stable/instance/find';
@@ -10,7 +10,7 @@ var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
10
10
  var printBuildError = require('react-dev-utils/printBuildError');
11
11
  var webpack = require('webpack');
12
12
  var assets = require('@commercetools-frontend/assets');
13
- var createWebpackConfigForProduction = require('./create-webpack-config-for-production-3e70ec15.cjs.dev.js');
13
+ var createWebpackConfigForProduction = require('./create-webpack-config-for-production-0b766c47.cjs.dev.js');
14
14
  var paths = require('./paths-d1febc82.cjs.dev.js');
15
15
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
16
16
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -38,9 +38,9 @@ require('@babel/runtime-corejs3/core-js-stable/instance/bind');
38
38
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
39
39
  require('@babel/runtime-corejs3/core-js-stable/object/assign');
40
40
  require('fs');
41
- require('./create-postcss-config-c57d1c88.cjs.dev.js');
41
+ require('./create-postcss-config-dc49128c.cjs.dev.js');
42
42
  require('@babel/runtime-corejs3/helpers/slicedToArray');
43
- require('./package-f6c23cfe.cjs.dev.js');
43
+ require('./package-dcf0fd0b.cjs.dev.js');
44
44
  require('./has-jsx-runtime-aa5d21ee.cjs.dev.js');
45
45
  require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
46
46
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
@@ -10,7 +10,7 @@ var formatWebpackMessages = require('react-dev-utils/formatWebpackMessages');
10
10
  var printBuildError = require('react-dev-utils/printBuildError');
11
11
  var webpack = require('webpack');
12
12
  var assets = require('@commercetools-frontend/assets');
13
- var createWebpackConfigForProduction = require('./create-webpack-config-for-production-de7ba047.cjs.prod.js');
13
+ var createWebpackConfigForProduction = require('./create-webpack-config-for-production-751756f1.cjs.prod.js');
14
14
  var paths = require('./paths-854af5ef.cjs.prod.js');
15
15
  require('@babel/runtime-corejs3/core-js-stable/object/keys');
16
16
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -38,9 +38,9 @@ require('@babel/runtime-corejs3/core-js-stable/instance/bind');
38
38
  require('@babel/runtime-corejs3/core-js-stable/instance/reduce');
39
39
  require('@babel/runtime-corejs3/core-js-stable/object/assign');
40
40
  require('fs');
41
- require('./create-postcss-config-d53cbd2a.cjs.prod.js');
41
+ require('./create-postcss-config-27d7c566.cjs.prod.js');
42
42
  require('@babel/runtime-corejs3/helpers/slicedToArray');
43
- require('./package-6a3a74e6.cjs.prod.js');
43
+ require('./package-def20f2a.cjs.prod.js');
44
44
  require('./has-jsx-runtime-c3202df5.cjs.prod.js');
45
45
  require('./vendors-to-transpile-04a49d40.cjs.prod.js');
46
46
  require('@babel/runtime-corejs3/core-js-stable/instance/find');
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vendorsToTranspile = require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
6
6
 
7
7
  // NOTE: This string will be replaced on build time with the package version.
8
- var version = "22.7.1";
8
+ var version = "22.8.0";
9
9
 
10
10
  // These exports are deprecated.
11
11
 
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var vendorsToTranspile = require('./vendors-to-transpile-04a49d40.cjs.prod.js');
6
6
 
7
7
  // NOTE: This string will be replaced on build time with the package version.
8
- var version = "22.7.1";
8
+ var version = "22.8.0";
9
9
 
10
10
  // These exports are deprecated.
11
11
 
@@ -1,7 +1,7 @@
1
1
  export { v as vendorsToTranspile } from './vendors-to-transpile-7dc84a72.esm.js';
2
2
 
3
3
  // NOTE: This string will be replaced on build time with the package version.
4
- var version = "22.7.1";
4
+ var version = "22.8.0";
5
5
 
6
6
  // These exports are deprecated.
7
7
 
@@ -10,7 +10,7 @@ var chalk = require('chalk');
10
10
  var omit = require('lodash/omit');
11
11
  var prompts = require('prompts');
12
12
  var applicationConfig = require('@commercetools-frontend/application-config');
13
- var credentialsStorage$2 = require('./credentials-storage-0c4e6bd2.cjs.prod.js');
13
+ var credentialsStorage$2 = require('./credentials-storage-fbd3baab.cjs.prod.js');
14
14
  var _Object$getOwnPropertySymbols = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
15
15
  var _Object$getOwnPropertyDescriptor = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor');
16
16
  var _Object$getOwnPropertyDescriptors = require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors');
@@ -27,7 +27,7 @@ var graphql = require('graphql');
27
27
  var graphqlRequest = require('graphql-request');
28
28
  var constants = require('@commercetools-frontend/constants');
29
29
  require('@commercetools/http-user-agent');
30
- require('./package-6a3a74e6.cjs.prod.js');
30
+ require('./package-def20f2a.cjs.prod.js');
31
31
  require('@babel/runtime-corejs3/helpers/classCallCheck');
32
32
  require('@babel/runtime-corejs3/helpers/createClass');
33
33
  require('@babel/runtime-corejs3/core-js-stable/date/now');
@@ -57,8 +57,8 @@ var _reduceInstanceProperty__default = /*#__PURE__*/_interopDefault(_reduceInsta
57
57
  var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
58
58
  var _someInstanceProperty__default = /*#__PURE__*/_interopDefault(_someInstanceProperty);
59
59
 
60
- function ownKeys$1(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
61
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var _context20, _context21; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context20 = ownKeys$1(Object(source), !0)).call(_context20, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context21 = ownKeys$1(Object(source))).call(_context21, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
60
+ function ownKeys$1(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
61
+ function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context20, _context21; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context20 = ownKeys$1(Object(t), !0)).call(_context20, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context21 = ownKeys$1(Object(t))).call(_context21, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
62
62
  const red = str => {
63
63
  return chalk__default["default"].red(str);
64
64
  };
@@ -100,7 +100,7 @@ const getArrayDiff = _ref2 => {
100
100
  indentLevel = _ref2$indentLevel === void 0 ? 0 : _ref2$indentLevel;
101
101
  const oldArraySet = new _Set__default["default"](previousValue);
102
102
  const arrayDiff = [];
103
- nextValue === null || nextValue === void 0 ? void 0 : _forEachInstanceProperty__default["default"](nextValue).call(nextValue, item => {
103
+ nextValue === null || nextValue === void 0 || _forEachInstanceProperty__default["default"](nextValue).call(nextValue, item => {
104
104
  if (oldArraySet.has(item)) {
105
105
  oldArraySet.delete(item);
106
106
  } else {
@@ -407,8 +407,8 @@ const getConfigDiff = (oldConfig, newConfig) => {
407
407
  return diff.join('\n');
408
408
  };
409
409
 
410
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys__default["default"](object); if (_Object$getOwnPropertySymbols__default["default"]) { var symbols = _Object$getOwnPropertySymbols__default["default"](object); enumerableOnly && (symbols = _filterInstanceProperty__default["default"](symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor__default["default"](object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
411
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](target, _Object$getOwnPropertyDescriptors__default["default"](source)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys(Object(source))).call(_context3, function (key) { _Object$defineProperty__default["default"](target, key, _Object$getOwnPropertyDescriptor__default["default"](source, key)); }); } return target; }
410
+ function ownKeys(e, r) { var t = _Object$keys__default["default"](e); if (_Object$getOwnPropertySymbols__default["default"]) { var o = _Object$getOwnPropertySymbols__default["default"](e); r && (o = _filterInstanceProperty__default["default"](o).call(o, function (r) { return _Object$getOwnPropertyDescriptor__default["default"](e, r).enumerable; })), t.push.apply(t, o); } return t; }
411
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context2 = ownKeys(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context3 = ownKeys(Object(t))).call(_context3, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
412
412
  var CreateCustomApplicationFromCli = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "CreateCustomApplicationFromCli" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "organizationId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomApplicationDraftDataInput" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCustomApplication" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "organizationId" }, value: { kind: "Variable", name: { kind: "Name", value: "organizationId" } } }, { kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 201, source: { body: "mutation CreateCustomApplicationFromCli(\n $organizationId: String!\n $data: CustomApplicationDraftDataInput!\n) {\n createCustomApplication(organizationId: $organizationId, data: $data) {\n id\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
413
413
  var FetchCustomApplicationFromCli = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchCustomApplicationFromCli" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "entryPointUriPath" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "organizationExtensionForCustomApplication" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "entryPointUriPath" }, value: { kind: "Variable", name: { kind: "Name", value: "entryPointUriPath" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "organizationId" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "application" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "entryPointUriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "description" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "url" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "icon" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "oAuthScopes" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "mainMenuLink" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "defaultLabel" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "submenuLinks" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "defaultLabel" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }], loc: { start: 0, end: 647, source: { body: "query FetchCustomApplicationFromCli($entryPointUriPath: String!) {\n organizationExtensionForCustomApplication(\n entryPointUriPath: $entryPointUriPath\n ) {\n organizationId\n application {\n id\n entryPointUriPath\n name\n description\n url\n icon\n permissions {\n name\n oAuthScopes\n }\n mainMenuLink {\n defaultLabel\n permissions\n labelAllLocales {\n locale\n value\n }\n }\n submenuLinks {\n uriPath\n defaultLabel\n permissions\n labelAllLocales {\n locale\n value\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
414
414
  var FetchMyOrganizationsFromCli = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchMyOrganizationsFromCli" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "myOrganizations" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 112, source: { body: "query FetchMyOrganizationsFromCli {\n myOrganizations {\n total\n results {\n id\n name\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
@@ -539,14 +539,16 @@ const getMcUrlLink = (mcApiUrl, organizationId, applicationId) => {
539
539
  return customAppLink;
540
540
  };
541
541
  async function run(options) {
542
- var _context3, _context6;
542
+ var _context5;
543
543
  const applicationConfig$1 = applicationConfig.processConfig();
544
544
  const localCustomAppData = applicationConfig$1.data;
545
545
  const _applicationConfig$en = applicationConfig$1.env,
546
546
  mcApiUrl = _applicationConfig$en.mcApiUrl,
547
- applicationId = _applicationConfig$en.applicationId,
548
- entryPointUriPath = _applicationConfig$en.entryPointUriPath;
549
- const applicationIdentifier = _concatInstanceProperty__default["default"](_context3 = "".concat(applicationId, ":")).call(_context3, entryPointUriPath);
547
+ applicationIdentifier = _applicationConfig$en.applicationIdentifier,
548
+ customViewId = _applicationConfig$en.customViewId;
549
+ if (customViewId) {
550
+ throw new Error("Syncing the configuration for Custom Views is not supported at the moment.");
551
+ }
550
552
  console.log("Using Merchant Center environment \"".concat(chalk__default["default"].green(mcApiUrl), "\"."));
551
553
  console.log();
552
554
  const isSessionValid = credentialsStorage.isSessionValid(mcApiUrl);
@@ -559,7 +561,7 @@ async function run(options) {
559
561
  applicationIdentifier
560
562
  });
561
563
  if (!fetchedCustomApplication) {
562
- var _context5;
564
+ var _context4;
563
565
  const userOrganizations = await fetchUserOrganizations({
564
566
  mcApiUrl,
565
567
  applicationIdentifier
@@ -574,8 +576,8 @@ async function run(options) {
574
576
  organizationId = organization.id;
575
577
  organizationName = organization.name;
576
578
  } else {
577
- var _context4;
578
- const organizationChoices = _mapInstanceProperty__default["default"](_context4 = userOrganizations.results).call(_context4, organization => ({
579
+ var _context3;
580
+ const organizationChoices = _mapInstanceProperty__default["default"](_context3 = userOrganizations.results).call(_context3, organization => ({
579
581
  title: organization.name,
580
582
  value: organization.id
581
583
  }));
@@ -599,7 +601,7 @@ async function run(options) {
599
601
  const _await$prompts2 = await prompts__default["default"]({
600
602
  type: 'text',
601
603
  name: 'confirmation',
602
- message: _filterInstanceProperty__default["default"](_context5 = ["You are about to create a new Custom Application in the \"".concat(chalk__default["default"].green(organizationName), "\" organization. Are you sure you want to proceed?"), options.dryRun && chalk__default["default"].gray('Using "--dry-run", no data will be created.')]).call(_context5, Boolean).join('\n'),
604
+ message: _filterInstanceProperty__default["default"](_context4 = ["You are about to create a new Custom Application in the \"".concat(chalk__default["default"].green(organizationName), "\" organization. Are you sure you want to proceed?"), options.dryRun && chalk__default["default"].gray('Using "--dry-run", no data will be created.')]).call(_context4, Boolean).join('\n'),
603
605
  initial: 'yes'
604
606
  }),
605
607
  confirmation = _await$prompts2.confirmation;
@@ -647,7 +649,7 @@ async function run(options) {
647
649
  const _await$prompts3 = await prompts__default["default"]({
648
650
  type: 'text',
649
651
  name: 'confirmation',
650
- message: _filterInstanceProperty__default["default"](_context6 = ["You are about to update the Custom Application \"".concat(chalk__default["default"].green(localCustomAppData.entryPointUriPath), "\" with the changes above. Are you sure you want to proceed?"), options.dryRun && chalk__default["default"].gray('Using "--dry-run", no data will be updated.')]).call(_context6, Boolean).join('\n'),
652
+ message: _filterInstanceProperty__default["default"](_context5 = ["You are about to update the Custom Application \"".concat(chalk__default["default"].green(localCustomAppData.entryPointUriPath), "\" with the changes above. Are you sure you want to proceed?"), options.dryRun && chalk__default["default"].gray('Using "--dry-run", no data will be updated.')]).call(_context5, Boolean).join('\n'),
651
653
  initial: 'yes'
652
654
  }),
653
655
  confirmation = _await$prompts3.confirmation;
@@ -8,7 +8,7 @@ import chalk from 'chalk';
8
8
  import omit from 'lodash/omit';
9
9
  import prompts from 'prompts';
10
10
  import { sanitizeSvg, processConfig } from '@commercetools-frontend/application-config';
11
- import { C as CredentialsStorage, u as userAgent } from './credentials-storage-56a5405e.esm.js';
11
+ import { C as CredentialsStorage, u as userAgent } from './credentials-storage-9d81c79a.esm.js';
12
12
  import _Object$getOwnPropertySymbols from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols';
13
13
  import _Object$getOwnPropertyDescriptor from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor';
14
14
  import _Object$getOwnPropertyDescriptors from '@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors';
@@ -25,7 +25,7 @@ import { print } from 'graphql';
25
25
  import { GraphQLClient, ClientError } from 'graphql-request';
26
26
  import { GRAPHQL_TARGETS } from '@commercetools-frontend/constants';
27
27
  import '@commercetools/http-user-agent';
28
- import './package-8fb3bdf6.esm.js';
28
+ import './package-25df14f0.esm.js';
29
29
  import '@babel/runtime-corejs3/helpers/classCallCheck';
30
30
  import '@babel/runtime-corejs3/helpers/createClass';
31
31
  import '@babel/runtime-corejs3/core-js-stable/date/now';
@@ -33,8 +33,8 @@ import 'fs';
33
33
  import 'os';
34
34
  import 'path';
35
35
 
36
- function ownKeys$1(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
37
- function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var _context20, _context21; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context20 = ownKeys$1(Object(source), !0)).call(_context20, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context21 = ownKeys$1(Object(source))).call(_context21, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
36
+ function ownKeys$1(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
37
+ function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var _context20, _context21; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context20 = ownKeys$1(Object(t), !0)).call(_context20, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context21 = ownKeys$1(Object(t))).call(_context21, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
38
38
 
39
39
  // Since not all terminal supports colors, to make things more consistent for testing purposes,
40
40
  // during tests the color used is appended before the string instead of coloring it.
@@ -82,7 +82,7 @@ const getArrayDiff = _ref2 => {
82
82
  indentLevel = _ref2$indentLevel === void 0 ? 0 : _ref2$indentLevel;
83
83
  const oldArraySet = new _Set(previousValue);
84
84
  const arrayDiff = [];
85
- nextValue === null || nextValue === void 0 ? void 0 : _forEachInstanceProperty(nextValue).call(nextValue, item => {
85
+ nextValue === null || nextValue === void 0 || _forEachInstanceProperty(nextValue).call(nextValue, item => {
86
86
  if (oldArraySet.has(item)) {
87
87
  oldArraySet.delete(item);
88
88
  } else {
@@ -389,8 +389,8 @@ const getConfigDiff = (oldConfig, newConfig) => {
389
389
  return diff.join('\n');
390
390
  };
391
391
 
392
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
393
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context2, _context3; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(source), !0)).call(_context2, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context3 = ownKeys(Object(source))).call(_context3, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
392
+ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = _filterInstanceProperty(o).call(o, function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
393
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context2, _context3; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty(_context2 = ownKeys(Object(t), !0)).call(_context2, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : _forEachInstanceProperty(_context3 = ownKeys(Object(t))).call(_context3, function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
394
394
  var CreateCustomApplicationFromCli = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "CreateCustomApplicationFromCli" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "organizationId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "data" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "CustomApplicationDraftDataInput" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "createCustomApplication" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "organizationId" }, value: { kind: "Variable", name: { kind: "Name", value: "organizationId" } } }, { kind: "Argument", name: { kind: "Name", value: "data" }, value: { kind: "Variable", name: { kind: "Name", value: "data" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 201, source: { body: "mutation CreateCustomApplicationFromCli(\n $organizationId: String!\n $data: CustomApplicationDraftDataInput!\n) {\n createCustomApplication(organizationId: $organizationId, data: $data) {\n id\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
395
395
  var FetchCustomApplicationFromCli = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchCustomApplicationFromCli" }, variableDefinitions: [{ kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "entryPointUriPath" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "String" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "organizationExtensionForCustomApplication" }, arguments: [{ kind: "Argument", name: { kind: "Name", value: "entryPointUriPath" }, value: { kind: "Variable", name: { kind: "Name", value: "entryPointUriPath" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "organizationId" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "application" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "entryPointUriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "description" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "url" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "icon" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "oAuthScopes" }, arguments: [], directives: [] }] } }, { kind: "Field", name: { kind: "Name", value: "mainMenuLink" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "defaultLabel" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }, { kind: "Field", name: { kind: "Name", value: "submenuLinks" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "uriPath" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "defaultLabel" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "permissions" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "labelAllLocales" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "locale" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "value" }, arguments: [], directives: [] }] } }] } }] } }] } }] } }], loc: { start: 0, end: 647, source: { body: "query FetchCustomApplicationFromCli($entryPointUriPath: String!) {\n organizationExtensionForCustomApplication(\n entryPointUriPath: $entryPointUriPath\n ) {\n organizationId\n application {\n id\n entryPointUriPath\n name\n description\n url\n icon\n permissions {\n name\n oAuthScopes\n }\n mainMenuLink {\n defaultLabel\n permissions\n labelAllLocales {\n locale\n value\n }\n }\n submenuLinks {\n uriPath\n defaultLabel\n permissions\n labelAllLocales {\n locale\n value\n }\n }\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
396
396
  var FetchMyOrganizationsFromCli = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "query", name: { kind: "Name", value: "FetchMyOrganizationsFromCli" }, variableDefinitions: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "myOrganizations" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "total" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "results" }, arguments: [], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }, { kind: "Field", name: { kind: "Name", value: "name" }, arguments: [], directives: [] }] } }] } }] } }], loc: { start: 0, end: 112, source: { body: "query FetchMyOrganizationsFromCli {\n myOrganizations {\n total\n results {\n id\n name\n }\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
@@ -521,14 +521,16 @@ const getMcUrlLink = (mcApiUrl, organizationId, applicationId) => {
521
521
  return customAppLink;
522
522
  };
523
523
  async function run(options) {
524
- var _context3, _context6;
524
+ var _context5;
525
525
  const applicationConfig = processConfig();
526
526
  const localCustomAppData = applicationConfig.data;
527
527
  const _applicationConfig$en = applicationConfig.env,
528
528
  mcApiUrl = _applicationConfig$en.mcApiUrl,
529
- applicationId = _applicationConfig$en.applicationId,
530
- entryPointUriPath = _applicationConfig$en.entryPointUriPath;
531
- const applicationIdentifier = _concatInstanceProperty(_context3 = "".concat(applicationId, ":")).call(_context3, entryPointUriPath);
529
+ applicationIdentifier = _applicationConfig$en.applicationIdentifier,
530
+ customViewId = _applicationConfig$en.customViewId;
531
+ if (customViewId) {
532
+ throw new Error("Syncing the configuration for Custom Views is not supported at the moment.");
533
+ }
532
534
  console.log("Using Merchant Center environment \"".concat(chalk.green(mcApiUrl), "\"."));
533
535
  console.log();
534
536
  const isSessionValid = credentialsStorage.isSessionValid(mcApiUrl);
@@ -541,7 +543,7 @@ async function run(options) {
541
543
  applicationIdentifier
542
544
  });
543
545
  if (!fetchedCustomApplication) {
544
- var _context5;
546
+ var _context4;
545
547
  const userOrganizations = await fetchUserOrganizations({
546
548
  mcApiUrl,
547
549
  applicationIdentifier
@@ -556,8 +558,8 @@ async function run(options) {
556
558
  organizationId = organization.id;
557
559
  organizationName = organization.name;
558
560
  } else {
559
- var _context4;
560
- const organizationChoices = _mapInstanceProperty(_context4 = userOrganizations.results).call(_context4, organization => ({
561
+ var _context3;
562
+ const organizationChoices = _mapInstanceProperty(_context3 = userOrganizations.results).call(_context3, organization => ({
561
563
  title: organization.name,
562
564
  value: organization.id
563
565
  }));
@@ -581,7 +583,7 @@ async function run(options) {
581
583
  const _await$prompts2 = await prompts({
582
584
  type: 'text',
583
585
  name: 'confirmation',
584
- message: _filterInstanceProperty(_context5 = ["You are about to create a new Custom Application in the \"".concat(chalk.green(organizationName), "\" organization. Are you sure you want to proceed?"), options.dryRun && chalk.gray('Using "--dry-run", no data will be created.')]).call(_context5, Boolean).join('\n'),
586
+ message: _filterInstanceProperty(_context4 = ["You are about to create a new Custom Application in the \"".concat(chalk.green(organizationName), "\" organization. Are you sure you want to proceed?"), options.dryRun && chalk.gray('Using "--dry-run", no data will be created.')]).call(_context4, Boolean).join('\n'),
585
587
  initial: 'yes'
586
588
  }),
587
589
  confirmation = _await$prompts2.confirmation;
@@ -629,7 +631,7 @@ async function run(options) {
629
631
  const _await$prompts3 = await prompts({
630
632
  type: 'text',
631
633
  name: 'confirmation',
632
- message: _filterInstanceProperty(_context6 = ["You are about to update the Custom Application \"".concat(chalk.green(localCustomAppData.entryPointUriPath), "\" with the changes above. Are you sure you want to proceed?"), options.dryRun && chalk.gray('Using "--dry-run", no data will be updated.')]).call(_context6, Boolean).join('\n'),
634
+ message: _filterInstanceProperty(_context5 = ["You are about to update the Custom Application \"".concat(chalk.green(localCustomAppData.entryPointUriPath), "\" with the changes above. Are you sure you want to proceed?"), options.dryRun && chalk.gray('Using "--dry-run", no data will be updated.')]).call(_context5, Boolean).join('\n'),
633
635
  initial: 'yes'
634
636
  }),
635
637
  confirmation = _await$prompts3.confirmation;