@commercetools-frontend/mc-scripts 27.5.3 → 27.6.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 (88) hide show
  1. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +39 -19
  2. package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +39 -19
  3. package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +11 -11
  4. package/dist/{build-BP3m-wjz.cjs.prod.js → build-74ba5097.cjs.prod.js} +23 -23
  5. package/dist/{build-Dq8dqtsd.cjs.dev.js → build-7c291b9e.cjs.dev.js} +23 -23
  6. package/dist/{build-GEMI3W9m.esm.js → build-bfc4d2be.esm.js} +7 -7
  7. package/dist/{build-vite-D67xSRU1.cjs.prod.js → build-vite-73361390.cjs.prod.js} +32 -32
  8. package/dist/{build-vite-Dxi3rfHf.cjs.dev.js → build-vite-8453739c.cjs.dev.js} +32 -32
  9. package/dist/{build-vite-CO8mi4hd.esm.js → build-vite-a9c1c374.esm.js} +5 -5
  10. package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +4 -2
  11. package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +4 -2
  12. package/dist/commercetools-frontend-mc-scripts.esm.js +2 -2
  13. package/dist/{compile-html-BVvy3IQD.esm.js → compile-html-025cd493.esm.js} +2 -2
  14. package/dist/{compile-html-Ds1YojsY.cjs.dev.js → compile-html-50fd05ec.cjs.prod.js} +8 -8
  15. package/dist/{compile-html-DZlUpFXg.cjs.prod.js → compile-html-f4ac88cc.cjs.dev.js} +8 -8
  16. package/dist/{config-sync-D6xLjo9S.cjs.prod.js → config-sync-09f66547.cjs.prod.js} +22 -22
  17. package/dist/{config-sync-Bu7U5gn5.esm.js → config-sync-15eb8589.esm.js} +5 -5
  18. package/dist/{config-sync-ci-SDsF-Onw.cjs.dev.js → config-sync-ci-61250b40.cjs.dev.js} +21 -21
  19. package/dist/{config-sync-ci-CXgQcemF.cjs.prod.js → config-sync-ci-72d17127.cjs.prod.js} +21 -21
  20. package/dist/{config-sync-ci-Dq7bAqeu.esm.js → config-sync-ci-906ef640.esm.js} +5 -5
  21. package/dist/{config-sync-Cd0sSSrd.cjs.dev.js → config-sync-fa80ea02.cjs.dev.js} +22 -22
  22. package/dist/{config-sync-helpers-9kvPwuoy.cjs.prod.js → config-sync-helpers-9e749cc1.cjs.prod.js} +47 -47
  23. package/dist/{config-sync-helpers-DUK45F_R.cjs.dev.js → config-sync-helpers-f35fab2b.cjs.dev.js} +47 -47
  24. package/dist/{config-sync-helpers-BLXJp1-D.esm.js → config-sync-helpers-f3861cb3.esm.js} +3 -3
  25. package/dist/{create-postcss-config-CN9_8Usa.esm.js → create-postcss-config-9f7fc8fe.esm.js} +1 -1
  26. package/dist/{create-postcss-config-DAShdAyB.cjs.prod.js → create-postcss-config-aa65bd02.cjs.prod.js} +3 -3
  27. package/dist/{create-postcss-config-NN2FAhvH.cjs.dev.js → create-postcss-config-bda2f46f.cjs.dev.js} +3 -3
  28. package/dist/{create-webpack-config-for-development-hxSNyq2_.cjs.dev.js → create-webpack-config-for-development-37fd15dd.cjs.dev.js} +25 -25
  29. package/dist/{create-webpack-config-for-development-CxGehl7I.cjs.prod.js → create-webpack-config-for-development-7f9ac343.cjs.prod.js} +25 -25
  30. package/dist/{create-webpack-config-for-development-5HpRHV9G.esm.js → create-webpack-config-for-development-cfc8c0d8.esm.js} +5 -5
  31. package/dist/{create-webpack-config-for-production-BY0UNoNz.esm.js → create-webpack-config-for-production-0ed3db08.esm.js} +5 -5
  32. package/dist/{create-webpack-config-for-production-CW0DlZBz.cjs.prod.js → create-webpack-config-for-production-c6f5fc5e.cjs.prod.js} +32 -32
  33. package/dist/{create-webpack-config-for-production-Edp9dzmw.cjs.dev.js → create-webpack-config-for-production-f0692e4f.cjs.dev.js} +32 -32
  34. package/dist/{credentials-storage-B79bb0Ns.esm.js → credentials-storage-67deadc3.esm.js} +1 -1
  35. package/dist/{credentials-storage-C3TlK0a8.cjs.prod.js → credentials-storage-ea1c16dc.cjs.prod.js} +10 -10
  36. package/dist/{credentials-storage-B0tDCH7i.cjs.dev.js → credentials-storage-fd195144.cjs.dev.js} +10 -10
  37. package/dist/{deployment-previews-set-nvkAPwYw.cjs.prod.js → deployment-previews-set-77a06501.cjs.prod.js} +22 -22
  38. package/dist/{deployment-previews-set-C2OPIfy-.esm.js → deployment-previews-set-8e17e07a.esm.js} +4 -4
  39. package/dist/{deployment-previews-set-BuHX8wKo.cjs.dev.js → deployment-previews-set-bfc5a58a.cjs.dev.js} +22 -22
  40. package/dist/{does-file-exist-DrcZIPe6.cjs.dev.js → does-file-exist-be53305d.cjs.prod.js} +2 -2
  41. package/dist/{does-file-exist-DrcZIPe6.cjs.prod.js → does-file-exist-eb86baca.cjs.dev.js} +2 -2
  42. package/dist/{graphql-requests-DCLX_2y0.esm.js → graphql-requests-1afa51b6.esm.js} +4 -4
  43. package/dist/{graphql-requests-D0rtMo7K.cjs.prod.js → graphql-requests-65332887.cjs.prod.js} +9 -9
  44. package/dist/{graphql-requests-BeUd4g3v.cjs.dev.js → graphql-requests-8c5aeb2f.cjs.dev.js} +9 -9
  45. package/dist/{i18n-message-complilation-CdVhuyWk.cjs.dev.js → i18n-message-complilation-7311cb29.cjs.dev.js} +3 -3
  46. package/dist/{i18n-message-complilation-CdVhuyWk.cjs.prod.js → i18n-message-complilation-7762da61.cjs.prod.js} +3 -3
  47. package/dist/{login-DKzmRa46.cjs.dev.js → login-3dbe724f.cjs.prod.js} +60 -42
  48. package/dist/{login-BagHOLO1.cjs.prod.js → login-6bc2696b.cjs.dev.js} +60 -42
  49. package/dist/{login-DZVfG3Jq.esm.js → login-dbab5c47.esm.js} +3 -3
  50. package/dist/{optimizations-Cjrg77Gu.esm.js → optimizations-54382f7b.esm.js} +1 -1
  51. package/dist/{optimizations-CEaq4axa.cjs.dev.js → optimizations-56be74d6.cjs.dev.js} +8 -8
  52. package/dist/{optimizations-CEaq4axa.cjs.prod.js → optimizations-da5a0cfa.cjs.prod.js} +8 -8
  53. package/dist/package-7c551972.esm.js +165 -0
  54. package/dist/package-7fcd7258.cjs.prod.js +167 -0
  55. package/dist/package-8cf0508d.cjs.dev.js +167 -0
  56. package/dist/{paths-Cg5Vq6RE.esm.js → paths-39f22b8b.esm.js} +1 -1
  57. package/dist/{paths-DtvtCG0U.cjs.prod.js → paths-7768b440.cjs.prod.js} +5 -5
  58. package/dist/{paths-B0WM5jb9.cjs.dev.js → paths-b76fc753.cjs.dev.js} +5 -5
  59. package/dist/{serve-fXDv4-Pm.esm.js → serve-22475fec.esm.js} +2 -2
  60. package/dist/{serve-BxRJOSeR.cjs.dev.js → serve-3837602d.cjs.prod.js} +13 -13
  61. package/dist/{serve-BwNRk6vi.cjs.prod.js → serve-b1c12985.cjs.dev.js} +13 -13
  62. package/dist/{start-suUcoYml.esm.js → start-5985f6fa.esm.js} +7 -7
  63. package/dist/{start-OjGog63p.cjs.dev.js → start-633a16e4.cjs.dev.js} +17 -17
  64. package/dist/{start-CQgQhNhU.cjs.prod.js → start-e7fdfc20.cjs.prod.js} +17 -17
  65. package/dist/{start-vite-CeaoWKrT.cjs.dev.js → start-vite-068e9f73.cjs.dev.js} +14 -14
  66. package/dist/{start-vite-Bf9UIg63.cjs.prod.js → start-vite-29078b3a.cjs.prod.js} +14 -14
  67. package/dist/{start-vite-BOrX5xsW.esm.js → start-vite-7d1161e8.esm.js} +3 -3
  68. package/dist/{vite-plugin-svgr-CRRIY_Py.cjs.prod.js → vite-plugin-svgr-4034a834.cjs.prod.js} +24 -6
  69. package/dist/{vite-plugin-svgr-CRRIY_Py.cjs.dev.js → vite-plugin-svgr-7d06f400.cjs.dev.js} +24 -6
  70. package/package.json +8 -8
  71. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +4 -2
  72. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +4 -2
  73. package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
  74. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +10 -8
  75. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +10 -8
  76. package/webpack/dist/commercetools-frontend-mc-scripts-webpack.esm.js +8 -8
  77. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.dev.js +2 -2
  78. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.cjs.prod.js +2 -2
  79. package/webpack-loaders/i18n-message-compilation-loader/dist/commercetools-frontend-mc-scripts-webpack-loaders-i18n-message-compilation-loader.esm.js +1 -1
  80. package/dist/package-B1Y3_DDl.cjs.dev.js +0 -17
  81. package/dist/package-BiK3ergJ.esm.js +0 -15
  82. package/dist/package-DxhqRLHb.cjs.prod.js +0 -12
  83. /package/dist/{does-file-exist-C7l6j7NP.esm.js → does-file-exist-32618334.esm.js} +0 -0
  84. /package/dist/{i18n-message-complilation-BRZ7ffQI.esm.js → i18n-message-complilation-21d3b0aa.esm.js} +0 -0
  85. /package/dist/{vendors-to-transpile-DLHlk7c-.cjs.dev.js → vendors-to-transpile-04a49d40.cjs.prod.js} +0 -0
  86. /package/dist/{vendors-to-transpile-DLHlk7c-.cjs.prod.js → vendors-to-transpile-6ab4ea06.cjs.dev.js} +0 -0
  87. /package/dist/{vendors-to-transpile-uu9TNPDO.esm.js → vendors-to-transpile-7dc84a72.esm.js} +0 -0
  88. /package/dist/{vite-plugin-svgr-B1JerYlQ.esm.js → vite-plugin-svgr-de6ee7da.esm.js} +0 -0
@@ -7,9 +7,9 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
7
7
  var chalk = require('chalk');
8
8
  var prompts = require('prompts');
9
9
  var applicationConfig = require('@commercetools-frontend/application-config');
10
- var configSyncHelpers = require('./config-sync-helpers-DUK45F_R.cjs.dev.js');
11
- var credentialsStorage$1 = require('./credentials-storage-B0tDCH7i.cjs.dev.js');
12
- var graphqlRequests = require('./graphql-requests-BeUd4g3v.cjs.dev.js');
10
+ var configSyncHelpers = require('./config-sync-helpers-f35fab2b.cjs.dev.js');
11
+ var credentialsStorage$1 = require('./credentials-storage-fd195144.cjs.dev.js');
12
+ var graphqlRequests = require('./graphql-requests-8c5aeb2f.cjs.dev.js');
13
13
  require('@babel/runtime-corejs3/core-js-stable/json/stringify');
14
14
  require('lodash/omit');
15
15
  require('@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols');
@@ -30,15 +30,15 @@ require('@babel/runtime-corejs3/core-js-stable/date/now');
30
30
  require('node:fs');
31
31
  require('node:os');
32
32
  require('node:path');
33
- require('./does-file-exist-DrcZIPe6.cjs.dev.js');
33
+ require('./does-file-exist-eb86baca.cjs.dev.js');
34
34
  require('@babel/runtime-corejs3/core-js-stable/instance/some');
35
35
  require('graphql');
36
36
  require('graphql-request');
37
37
  require('@commercetools-frontend/constants');
38
38
  require('@commercetools/http-user-agent');
39
- require('./package-B1Y3_DDl.cjs.dev.js');
39
+ require('./package-8cf0508d.cjs.dev.js');
40
40
 
41
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
41
+ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
42
42
 
43
43
  var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
44
44
  var _findInstanceProperty__default = /*#__PURE__*/_interopDefault(_findInstanceProperty);
@@ -69,11 +69,11 @@ async function promptForOrganization(_ref) {
69
69
  name: organization.name
70
70
  };
71
71
  }
72
- const organizationChoices = _mapInstanceProperty__default.default(_context = userOrganizations.results).call(_context, organization => ({
72
+ const organizationChoices = _mapInstanceProperty__default["default"](_context = userOrganizations.results).call(_context, organization => ({
73
73
  title: organization.name,
74
74
  value: organization.id
75
75
  }));
76
- const _await$prompts = await prompts__default.default({
76
+ const _await$prompts = await prompts__default["default"]({
77
77
  type: 'select',
78
78
  name: 'organizationId',
79
79
  message: 'Select an Organization',
@@ -84,7 +84,7 @@ async function promptForOrganization(_ref) {
84
84
  if (!selectedOrganizationId) {
85
85
  throw new Error(`No Organization selected, aborting.`);
86
86
  }
87
- const organizationName = _findInstanceProperty__default.default(organizationChoices).call(organizationChoices, _ref2 => {
87
+ const organizationName = _findInstanceProperty__default["default"](organizationChoices).call(organizationChoices, _ref2 => {
88
88
  let value = _ref2.value;
89
89
  return value === selectedOrganizationId;
90
90
  }).title;
@@ -98,15 +98,15 @@ async function confirmAction(_ref3) {
98
98
  let message = _ref3.message,
99
99
  dryRun = _ref3.dryRun,
100
100
  dryRunMessage = _ref3.dryRunMessage;
101
- const _await$prompts2 = await prompts__default.default({
101
+ const _await$prompts2 = await prompts__default["default"]({
102
102
  type: 'text',
103
103
  name: 'confirmation',
104
- message: _filterInstanceProperty__default.default(_context2 = [message, dryRun && chalk__default.default.gray(dryRunMessage)]).call(_context2, Boolean).join('\n'),
104
+ message: _filterInstanceProperty__default["default"](_context2 = [message, dryRun && chalk__default["default"].gray(dryRunMessage)]).call(_context2, Boolean).join('\n'),
105
105
  initial: 'yes'
106
106
  }),
107
107
  confirmation = _await$prompts2.confirmation;
108
108
  if (!confirmation || confirmation.toLowerCase().charAt(0) !== 'y') {
109
- console.log(chalk__default.default.red('Aborted.'));
109
+ console.log(chalk__default["default"].red('Aborted.'));
110
110
  return false;
111
111
  }
112
112
  return true;
@@ -130,7 +130,7 @@ async function createOrUpdateCustomApplication(_ref4) {
130
130
  entityType: 'Custom Application'
131
131
  });
132
132
  const confirmed = await confirmAction({
133
- message: `You are about to create a new Custom Application in the "${chalk__default.default.green(organization.name)}" organization. Are you sure you want to proceed?`,
133
+ message: `You are about to create a new Custom Application in the "${chalk__default["default"].green(organization.name)}" organization. Are you sure you want to proceed?`,
134
134
  dryRun: options.dryRun,
135
135
  dryRunMessage: 'Using "--dry-run", no data will be created.'
136
136
  });
@@ -148,15 +148,15 @@ async function createOrUpdateCustomApplication(_ref4) {
148
148
 
149
149
  // Check for changes
150
150
  if (!status.configDiff) {
151
- console.log(chalk__default.default.green(`Custom Application up-to-date.`));
152
- console.log(`You can inspect the Custom Application data in the Merchant Center at "${chalk__default.default.gray(status.link)}".`);
151
+ console.log(chalk__default["default"].green(`Custom Application up-to-date.`));
152
+ console.log(`You can inspect the Custom Application data in the Merchant Center at "${chalk__default["default"].gray(status.link)}".`);
153
153
  return;
154
154
  }
155
155
  console.log('Changes detected:');
156
156
  console.log(status.configDiff);
157
157
  console.log();
158
158
  const confirmed = await confirmAction({
159
- message: `You are about to update the Custom Application "${chalk__default.default.green(localCustomEntityData.entryPointUriPath)}" with the changes above. Are you sure you want to proceed?`,
159
+ message: `You are about to update the Custom Application "${chalk__default["default"].green(localCustomEntityData.entryPointUriPath)}" with the changes above. Are you sure you want to proceed?`,
160
160
  dryRun: options.dryRun,
161
161
  dryRunMessage: 'Using "--dry-run", no data will be updated.'
162
162
  });
@@ -191,7 +191,7 @@ async function createOrUpdateCustomView(_ref5) {
191
191
  entityType: 'Custom View'
192
192
  });
193
193
  const confirmed = await confirmAction({
194
- message: `You are about to create a new Custom View in the "${chalk__default.default.green(organization.name)}" organization. Are you sure you want to proceed?`,
194
+ message: `You are about to create a new Custom View in the "${chalk__default["default"].green(organization.name)}" organization. Are you sure you want to proceed?`,
195
195
  dryRun: options.dryRun,
196
196
  dryRunMessage: 'Using "--dry-run", no data will be created.'
197
197
  });
@@ -209,15 +209,15 @@ async function createOrUpdateCustomView(_ref5) {
209
209
 
210
210
  // Check for changes
211
211
  if (!status.configDiff) {
212
- console.log(chalk__default.default.green(`Custom View up-to-date.`));
213
- console.log(`You can inspect the Custom View data in the Merchant Center at "${chalk__default.default.gray(status.link)}".`);
212
+ console.log(chalk__default["default"].green(`Custom View up-to-date.`));
213
+ console.log(`You can inspect the Custom View data in the Merchant Center at "${chalk__default["default"].gray(status.link)}".`);
214
214
  return;
215
215
  }
216
216
  console.log('Changes detected:');
217
217
  console.log(status.configDiff);
218
218
  console.log();
219
219
  const confirmed = await confirmAction({
220
- message: `You are about to update the Custom View "${chalk__default.default.green(localCustomEntityData.defaultLabel)}" with the changes above. Are you sure you want to proceed?`,
220
+ message: `You are about to update the Custom View "${chalk__default["default"].green(localCustomEntityData.defaultLabel)}" with the changes above. Are you sure you want to proceed?`,
221
221
  dryRun: options.dryRun,
222
222
  dryRunMessage: 'Using "--dry-run", no data will be updated.'
223
223
  });
@@ -238,7 +238,7 @@ async function run(options) {
238
238
  mcApiUrl = _applicationConfig$en.mcApiUrl,
239
239
  applicationIdentifier = _applicationConfig$en.applicationIdentifier,
240
240
  customViewId = _applicationConfig$en.customViewId;
241
- console.log(`Using Merchant Center environment "${chalk__default.default.green(mcApiUrl)}".`);
241
+ console.log(`Using Merchant Center environment "${chalk__default["default"].green(mcApiUrl)}".`);
242
242
  console.log();
243
243
  const isSessionValid = credentialsStorage.isSessionValid(mcApiUrl);
244
244
  if (!isSessionValid) {
@@ -262,4 +262,4 @@ async function run(options) {
262
262
  }
263
263
  }
264
264
 
265
- exports.default = run;
265
+ exports["default"] = run;
@@ -18,9 +18,9 @@ var _filterInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
18
18
  var _Object$keys = require('@babel/runtime-corejs3/core-js-stable/object/keys');
19
19
  var _mapInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/instance/map');
20
20
  var applicationConfig = require('@commercetools-frontend/application-config');
21
- var graphqlRequests = require('./graphql-requests-D0rtMo7K.cjs.prod.js');
21
+ var graphqlRequests = require('./graphql-requests-65332887.cjs.prod.js');
22
22
 
23
- function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
23
+ function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
24
24
 
25
25
  var _JSON$stringify__default = /*#__PURE__*/_interopDefault(_JSON$stringify);
26
26
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
@@ -39,19 +39,19 @@ var _filterInstanceProperty__default = /*#__PURE__*/_interopDefault(_filterInsta
39
39
  var _Object$keys__default = /*#__PURE__*/_interopDefault(_Object$keys);
40
40
  var _mapInstanceProperty__default = /*#__PURE__*/_interopDefault(_mapInstanceProperty);
41
41
 
42
- 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; }
43
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context9, _context0; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default.default(_context9 = ownKeys(Object(t), true)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default.default ? _Object$defineProperties__default.default(e, _Object$getOwnPropertyDescriptors__default.default(t)) : _forEachInstanceProperty__default.default(_context0 = ownKeys(Object(t))).call(_context0, function (r) { _Object$defineProperty__default.default(e, r, _Object$getOwnPropertyDescriptor__default.default(t, r)); }); } return e; }
42
+ 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; }
43
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var _context9, _context0; var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? _forEachInstanceProperty__default["default"](_context9 = ownKeys(Object(t), !0)).call(_context9, function (r) { _defineProperty(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors__default["default"] ? _Object$defineProperties__default["default"](e, _Object$getOwnPropertyDescriptors__default["default"](t)) : _forEachInstanceProperty__default["default"](_context0 = ownKeys(Object(t))).call(_context0, function (r) { _Object$defineProperty__default["default"](e, r, _Object$getOwnPropertyDescriptor__default["default"](t, r)); }); } return e; }
44
44
  const red = str => {
45
- return chalk__default.default.red(str);
45
+ return chalk__default["default"].red(str);
46
46
  };
47
47
  const green = str => {
48
- return chalk__default.default.green(str);
48
+ return chalk__default["default"].green(str);
49
49
  };
50
50
 
51
51
  // Two spaces are used for indentation.
52
52
  const indent = indentLevel => {
53
53
  var _context;
54
- return _repeatInstanceProperty__default.default(_context = ' ').call(_context, indentLevel);
54
+ return _repeatInstanceProperty__default["default"](_context = ' ').call(_context, indentLevel);
55
55
  };
56
56
  const getStringDiff = _ref => {
57
57
  let previousValue = _ref.previousValue,
@@ -78,9 +78,9 @@ const getArrayDiff = _ref2 => {
78
78
  label = _ref2.label,
79
79
  _ref2$indentLevel = _ref2.indentLevel,
80
80
  indentLevel = _ref2$indentLevel === void 0 ? 0 : _ref2$indentLevel;
81
- const oldArraySet = new _Set__default.default(previousValue);
81
+ const oldArraySet = new _Set__default["default"](previousValue);
82
82
  const arrayDiff = [];
83
- ((_context2 = nextValue) == null ? void 0 : _bindInstanceProperty__default.default(_context3 = Function.call).call(_context3, _forEachInstanceProperty__default.default(_context2), _context2))?.(item => {
83
+ ((_context2 = nextValue) == null ? void 0 : _bindInstanceProperty__default["default"](_context3 = Function.call).call(_context3, _forEachInstanceProperty__default["default"](_context2), _context2))?.(item => {
84
84
  if (oldArraySet.has(item)) {
85
85
  oldArraySet.delete(item);
86
86
  } else {
@@ -91,7 +91,7 @@ const getArrayDiff = _ref2 => {
91
91
  }));
92
92
  }
93
93
  });
94
- _forEachInstanceProperty__default.default(oldArraySet).call(oldArraySet, item => {
94
+ _forEachInstanceProperty__default["default"](oldArraySet).call(oldArraySet, item => {
95
95
  arrayDiff.push(getStringDiff({
96
96
  previousValue: item,
97
97
  label,
@@ -105,7 +105,7 @@ const getPermissionsDiff = _ref3 => {
105
105
  let previousValue = _ref3.previousValue,
106
106
  nextValue = _ref3.nextValue;
107
107
  const permissionDiff = ['permissions changed'];
108
- const mappedOldPermissions = _reduceInstanceProperty__default.default(previousValue).call(previousValue, (previousPermission, _ref4) => {
108
+ const mappedOldPermissions = _reduceInstanceProperty__default["default"](previousValue).call(previousValue, (previousPermission, _ref4) => {
109
109
  let name = _ref4.name,
110
110
  oAuthScopes = _ref4.oAuthScopes;
111
111
  return _objectSpread(_objectSpread({}, previousPermission), {}, {
@@ -113,7 +113,7 @@ const getPermissionsDiff = _ref3 => {
113
113
  });
114
114
  }, {});
115
115
  const indentLevel = 1;
116
- _forEachInstanceProperty__default.default(nextValue).call(nextValue, newPermission => {
116
+ _forEachInstanceProperty__default["default"](nextValue).call(nextValue, newPermission => {
117
117
  const currentDiff = [`${indent(indentLevel)}"${newPermission.name}" changed`];
118
118
  // if the permission name is not in the old config, it means it is a new addition.
119
119
  if (!mappedOldPermissions[newPermission.name]) {
@@ -130,11 +130,11 @@ const getPermissionsDiff = _ref3 => {
130
130
  }));
131
131
  delete mappedOldPermissions[newPermission.name];
132
132
  }
133
- _filterInstanceProperty__default.default(currentDiff).call(currentDiff, Boolean).length > 1 && permissionDiff.push(currentDiff.join('\n'));
133
+ _filterInstanceProperty__default["default"](currentDiff).call(currentDiff, Boolean).length > 1 && permissionDiff.push(currentDiff.join('\n'));
134
134
  });
135
135
 
136
136
  // if there are old permissions left, it means they were deleted in the new Permissions.
137
- _forEachInstanceProperty__default.default(_context4 = _Object$keys__default.default(mappedOldPermissions)).call(_context4, oldPermissionName => {
137
+ _forEachInstanceProperty__default["default"](_context4 = _Object$keys__default["default"](mappedOldPermissions)).call(_context4, oldPermissionName => {
138
138
  permissionDiff.push(`${indent(indentLevel)}"${red(oldPermissionName)}" was removed`);
139
139
  });
140
140
  if (permissionDiff.length > 1) return permissionDiff.join('\n');
@@ -149,14 +149,14 @@ const getLabelAllLocalesDiff = _ref5 => {
149
149
  _ref5$indentLevel = _ref5.indentLevel,
150
150
  indentLevel = _ref5$indentLevel === void 0 ? 0 : _ref5$indentLevel;
151
151
  const labelAllLocalesDiff = [`${indent(indentLevel - 1)}labelAllLocales changed`];
152
- const mappedOldLabelAllLocales = _reduceInstanceProperty__default.default(previousValue).call(previousValue, (previousLabelAllLocale, _ref6) => {
152
+ const mappedOldLabelAllLocales = _reduceInstanceProperty__default["default"](previousValue).call(previousValue, (previousLabelAllLocale, _ref6) => {
153
153
  let locale = _ref6.locale,
154
154
  value = _ref6.value;
155
155
  return _objectSpread(_objectSpread({}, previousLabelAllLocale), {}, {
156
156
  [locale]: value
157
157
  });
158
158
  }, {});
159
- _forEachInstanceProperty__default.default(nextValue).call(nextValue, newLabelAllLocale => {
159
+ _forEachInstanceProperty__default["default"](nextValue).call(nextValue, newLabelAllLocale => {
160
160
  if (newLabelAllLocale.locale in mappedOldLabelAllLocales) {
161
161
  const oldLocaleValue = mappedOldLabelAllLocales[newLabelAllLocale.locale];
162
162
  if (oldLocaleValue !== newLabelAllLocale.value) {
@@ -174,7 +174,7 @@ const getLabelAllLocalesDiff = _ref5 => {
174
174
  }
175
175
  }
176
176
  });
177
- _forEachInstanceProperty__default.default(_context5 = _Object$keys__default.default(mappedOldLabelAllLocales)).call(_context5, key => {
177
+ _forEachInstanceProperty__default["default"](_context5 = _Object$keys__default["default"](mappedOldLabelAllLocales)).call(_context5, key => {
178
178
  const localeDiff = getStringDiff({
179
179
  previousValue: key,
180
180
  label: 'locale',
@@ -195,7 +195,7 @@ const getTypeSettingsDiff = _ref7 => {
195
195
  const nonNullableNextValue = nextValue || {};
196
196
  const indentLevel = 1;
197
197
  const typeSettingsDiff = [`${indent(indentLevel - 1)}type settings changed`];
198
- _forEachInstanceProperty__default.default(_context6 = _Object$keys__default.default(nonNullablePreviousValue)).call(_context6, key => {
198
+ _forEachInstanceProperty__default["default"](_context6 = _Object$keys__default["default"](nonNullablePreviousValue)).call(_context6, key => {
199
199
  const typeSettingDiff = getStringDiff({
200
200
  previousValue: nonNullablePreviousValue[key],
201
201
  nextValue: nonNullableNextValue[key],
@@ -256,7 +256,7 @@ const getMainMenuLinkDiff = _ref9 => {
256
256
  if (menuLabelsDiff) {
257
257
  mainMenuLinkDiff.push(menuLabelsDiff);
258
258
  }
259
- const filteredMainMenuLinkDiff = _filterInstanceProperty__default.default(mainMenuLinkDiff).call(mainMenuLinkDiff, Boolean);
259
+ const filteredMainMenuLinkDiff = _filterInstanceProperty__default["default"](mainMenuLinkDiff).call(mainMenuLinkDiff, Boolean);
260
260
  if (filteredMainMenuLinkDiff.length > 1) return filteredMainMenuLinkDiff.join('\n');
261
261
  return null;
262
262
  };
@@ -265,10 +265,10 @@ const getSubmenuLinksDiff = _ref0 => {
265
265
  let previousValue = _ref0.previousValue,
266
266
  nextValue = _ref0.nextValue;
267
267
  const submenuLinksDiff = ['submenuLink changed'];
268
- const mappedSubmenuLinks = _reduceInstanceProperty__default.default(previousValue).call(previousValue, (previousSubmenuLink, currentSubmenuLink) => _objectSpread(_objectSpread({}, previousSubmenuLink), {}, {
268
+ const mappedSubmenuLinks = _reduceInstanceProperty__default["default"](previousValue).call(previousValue, (previousSubmenuLink, currentSubmenuLink) => _objectSpread(_objectSpread({}, previousSubmenuLink), {}, {
269
269
  [currentSubmenuLink.uriPath]: currentSubmenuLink
270
270
  }), {});
271
- const getOrder = value => _mapInstanceProperty__default.default(value).call(value, link => link.uriPath).join(', ');
271
+ const getOrder = value => _mapInstanceProperty__default["default"](value).call(value, link => link.uriPath).join(', ');
272
272
  const previousOrder = getOrder(previousValue);
273
273
  const newOrder = getOrder(nextValue);
274
274
  if (previousOrder !== newOrder) {
@@ -276,12 +276,12 @@ const getSubmenuLinksDiff = _ref0 => {
276
276
  submenuLinksDiff.push(`${indent(2)}previous order: [${previousOrder}]`);
277
277
  submenuLinksDiff.push(`${indent(2)}new order: [${newOrder}]`);
278
278
  }
279
- _forEachInstanceProperty__default.default(nextValue).call(nextValue, newSubmenuLink => {
279
+ _forEachInstanceProperty__default["default"](nextValue).call(nextValue, newSubmenuLink => {
280
280
  const oldSubMenuLink = mappedSubmenuLinks[newSubmenuLink.uriPath];
281
281
  if (newSubmenuLink.uriPath in mappedSubmenuLinks) {
282
282
  var _context7;
283
283
  const submenuLinkDiff = [`${indent(1)}menu link "${newSubmenuLink.uriPath}" changed`];
284
- _forEachInstanceProperty__default.default(_context7 = _Object$keys__default.default(mappedSubmenuLinks[newSubmenuLink.uriPath])).call(_context7, key => {
284
+ _forEachInstanceProperty__default["default"](_context7 = _Object$keys__default["default"](mappedSubmenuLinks[newSubmenuLink.uriPath])).call(_context7, key => {
285
285
  switch (key) {
286
286
  case 'defaultLabel':
287
287
  {
@@ -325,7 +325,7 @@ const getSubmenuLinksDiff = _ref0 => {
325
325
  }
326
326
  });
327
327
  delete mappedSubmenuLinks[newSubmenuLink.uriPath];
328
- const filteredSubmenuLinksDiff = _filterInstanceProperty__default.default(submenuLinkDiff).call(submenuLinkDiff, Boolean);
328
+ const filteredSubmenuLinksDiff = _filterInstanceProperty__default["default"](submenuLinkDiff).call(submenuLinkDiff, Boolean);
329
329
  if (filteredSubmenuLinksDiff.length > 1) {
330
330
  submenuLinksDiff.push(filteredSubmenuLinksDiff.join('\n'));
331
331
  }
@@ -340,7 +340,7 @@ const getSubmenuLinksDiff = _ref0 => {
340
340
  }
341
341
  }
342
342
  });
343
- _forEachInstanceProperty__default.default(_context8 = _Object$keys__default.default(mappedSubmenuLinks)).call(_context8, key => {
343
+ _forEachInstanceProperty__default["default"](_context8 = _Object$keys__default["default"](mappedSubmenuLinks)).call(_context8, key => {
344
344
  const linksDiff = getStringDiff({
345
345
  previousValue: key,
346
346
  label: 'menu link',
@@ -530,12 +530,12 @@ async function performCreateCustomApplication(_ref2) {
530
530
  localCustomEntityData = _ref2.localCustomEntityData,
531
531
  applicationIdentifier = _ref2.applicationIdentifier,
532
532
  dryRun = _ref2.dryRun;
533
- console.log(`Creating Custom Application in organization "${chalk__default.default.green(organizationName)}"...`);
534
- const data = omit__default.default(localCustomEntityData, ['id']);
533
+ console.log(`Creating Custom Application in organization "${chalk__default["default"].green(organizationName)}"...`);
534
+ const data = omit__default["default"](localCustomEntityData, ['id']);
535
535
  if (dryRun) {
536
536
  console.log();
537
537
  console.log('Dry run - would create Custom Application with:');
538
- console.log(chalk__default.default.gray(_JSON$stringify__default.default(data, null, 2)));
538
+ console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
539
539
  return null;
540
540
  }
541
541
  const createdCustomApplication = await graphqlRequests.createCustomApplication({
@@ -552,10 +552,10 @@ async function performCreateCustomApplication(_ref2) {
552
552
  organizationId,
553
553
  customEntityId: createdCustomApplication.id
554
554
  });
555
- console.log(chalk__default.default.green('Custom Application created successfully.'));
556
- console.log(`ID: ${chalk__default.default.cyan(createdCustomApplication.id)}`);
555
+ console.log(chalk__default["default"].green('Custom Application created successfully.'));
556
+ console.log(`ID: ${chalk__default["default"].cyan(createdCustomApplication.id)}`);
557
557
  console.log(`Please update the "env.production.applicationId" field in your local Custom Application config file with the ID above.`);
558
- console.log(`URL: ${chalk__default.default.gray(customAppLink)}`);
558
+ console.log(`URL: ${chalk__default["default"].gray(customAppLink)}`);
559
559
  return createdCustomApplication.id;
560
560
  }
561
561
  async function performUpdateCustomApplication(_ref3) {
@@ -565,11 +565,11 @@ async function performUpdateCustomApplication(_ref3) {
565
565
  localCustomEntityData = _ref3.localCustomEntityData,
566
566
  applicationIdentifier = _ref3.applicationIdentifier,
567
567
  dryRun = _ref3.dryRun;
568
- const data = omit__default.default(localCustomEntityData, ['id']);
568
+ const data = omit__default["default"](localCustomEntityData, ['id']);
569
569
  if (dryRun) {
570
570
  console.log();
571
- console.log(`Dry run - would update Custom Application "${chalk__default.default.green(data.entryPointUriPath)}" with:`);
572
- console.log(chalk__default.default.gray(_JSON$stringify__default.default(data, null, 2)));
571
+ console.log(`Dry run - would update Custom Application "${chalk__default["default"].green(data.entryPointUriPath)}" with:`);
572
+ console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
573
573
  return;
574
574
  }
575
575
  console.log('Updating Custom Application...');
@@ -585,8 +585,8 @@ async function performUpdateCustomApplication(_ref3) {
585
585
  organizationId,
586
586
  customEntityId: applicationId
587
587
  });
588
- console.log(chalk__default.default.green('Custom Application updated successfully.'));
589
- console.log(`URL: ${chalk__default.default.gray(customAppLink)}`);
588
+ console.log(chalk__default["default"].green('Custom Application updated successfully.'));
589
+ console.log(`URL: ${chalk__default["default"].gray(customAppLink)}`);
590
590
  }
591
591
  async function performCreateCustomView(_ref4) {
592
592
  let mcApiUrl = _ref4.mcApiUrl,
@@ -595,12 +595,12 @@ async function performCreateCustomView(_ref4) {
595
595
  localCustomEntityData = _ref4.localCustomEntityData,
596
596
  applicationIdentifier = _ref4.applicationIdentifier,
597
597
  dryRun = _ref4.dryRun;
598
- console.log(`Creating Custom View in organization "${chalk__default.default.green(organizationName)}"...`);
599
- const data = omit__default.default(localCustomEntityData, ['id']);
598
+ console.log(`Creating Custom View in organization "${chalk__default["default"].green(organizationName)}"...`);
599
+ const data = omit__default["default"](localCustomEntityData, ['id']);
600
600
  if (dryRun) {
601
601
  console.log();
602
602
  console.log('Dry run - would create Custom View with:');
603
- console.log(chalk__default.default.gray(_JSON$stringify__default.default(data, null, 2)));
603
+ console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
604
604
  return null;
605
605
  }
606
606
  const createdCustomView = await graphqlRequests.createCustomView({
@@ -618,10 +618,10 @@ async function performCreateCustomView(_ref4) {
618
618
  customEntityId: createdCustomView.id,
619
619
  isCustomView: true
620
620
  });
621
- console.log(chalk__default.default.green('Custom View created successfully.'));
622
- console.log(`ID: ${chalk__default.default.cyan(createdCustomView.id)}`);
621
+ console.log(chalk__default["default"].green('Custom View created successfully.'));
622
+ console.log(`ID: ${chalk__default["default"].cyan(createdCustomView.id)}`);
623
623
  console.log(`Please update the "env.production.customViewId" field in your local Custom View config file with the ID above.`);
624
- console.log(`URL: ${chalk__default.default.gray(customViewLink)}`);
624
+ console.log(`URL: ${chalk__default["default"].gray(customViewLink)}`);
625
625
  return createdCustomView.id;
626
626
  }
627
627
  async function performUpdateCustomView(_ref5) {
@@ -631,11 +631,11 @@ async function performUpdateCustomView(_ref5) {
631
631
  localCustomEntityData = _ref5.localCustomEntityData,
632
632
  applicationIdentifier = _ref5.applicationIdentifier,
633
633
  dryRun = _ref5.dryRun;
634
- const data = omit__default.default(localCustomEntityData, ['id']);
634
+ const data = omit__default["default"](localCustomEntityData, ['id']);
635
635
  if (dryRun) {
636
636
  console.log();
637
- console.log(`Dry run - would update Custom View "${chalk__default.default.green(data.defaultLabel)}" with:`);
638
- console.log(chalk__default.default.gray(_JSON$stringify__default.default(data, null, 2)));
637
+ console.log(`Dry run - would update Custom View "${chalk__default["default"].green(data.defaultLabel)}" with:`);
638
+ console.log(chalk__default["default"].gray(_JSON$stringify__default["default"](data, null, 2)));
639
639
  return;
640
640
  }
641
641
  console.log('Updating Custom View...');
@@ -652,8 +652,8 @@ async function performUpdateCustomView(_ref5) {
652
652
  customEntityId: customViewId,
653
653
  isCustomView: true
654
654
  });
655
- console.log(chalk__default.default.green('Custom View updated successfully.'));
656
- console.log(`URL: ${chalk__default.default.gray(customViewLink)}`);
655
+ console.log(chalk__default["default"].green('Custom View updated successfully.'));
656
+ console.log(`URL: ${chalk__default["default"].gray(customViewLink)}`);
657
657
  }
658
658
  async function checkCustomApplicationStatus(_ref6) {
659
659
  let mcApiUrl = _ref6.mcApiUrl,