@commercetools-frontend/mc-scripts 22.7.0 → 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.
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.dev.js +5 -5
- package/cli/dist/commercetools-frontend-mc-scripts-cli.cjs.prod.js +5 -5
- package/cli/dist/commercetools-frontend-mc-scripts-cli.esm.js +5 -5
- package/dist/{build-52a6f22d.esm.js → build-897197f8.esm.js} +3 -3
- package/dist/{build-8fcb8038.cjs.dev.js → build-8f9bd36f.cjs.dev.js} +3 -3
- package/dist/{build-63ef7a1b.cjs.prod.js → build-b052d4a8.cjs.prod.js} +3 -3
- package/dist/commercetools-frontend-mc-scripts.cjs.dev.js +1 -1
- package/dist/commercetools-frontend-mc-scripts.cjs.prod.js +1 -1
- package/dist/commercetools-frontend-mc-scripts.esm.js +1 -1
- package/dist/{config-sync-54f717a6.cjs.prod.js → config-sync-5c47c108.cjs.prod.js} +18 -16
- package/dist/{config-sync-ab5fd0f9.esm.js → config-sync-5c974290.esm.js} +18 -16
- package/dist/{config-sync-3c59ec2d.cjs.dev.js → config-sync-885d0602.cjs.dev.js} +18 -16
- package/dist/{create-postcss-config-7db6baf6.cjs.prod.js → create-postcss-config-27d7c566.cjs.prod.js} +1 -1
- package/dist/{create-postcss-config-82a0d411.esm.js → create-postcss-config-519b81cb.esm.js} +1 -1
- package/dist/{create-postcss-config-1d6e72ef.cjs.dev.js → create-postcss-config-dc49128c.cjs.dev.js} +1 -1
- package/dist/{create-webpack-config-for-development-378406b4.cjs.dev.js → create-webpack-config-for-development-45f881ce.cjs.dev.js} +3 -3
- package/dist/{create-webpack-config-for-development-ed540955.cjs.prod.js → create-webpack-config-for-development-98e32ec1.cjs.prod.js} +3 -3
- package/dist/{create-webpack-config-for-development-54ba974d.esm.js → create-webpack-config-for-development-eb2e9485.esm.js} +3 -3
- package/dist/{create-webpack-config-for-production-74384624.cjs.dev.js → create-webpack-config-for-production-0b766c47.cjs.dev.js} +3 -3
- package/dist/{create-webpack-config-for-production-a6593faf.cjs.prod.js → create-webpack-config-for-production-751756f1.cjs.prod.js} +3 -3
- package/dist/{create-webpack-config-for-production-1d486e17.esm.js → create-webpack-config-for-production-b6d00b6e.esm.js} +3 -3
- package/dist/{credentials-storage-b550508d.cjs.dev.js → credentials-storage-770c47fe.cjs.dev.js} +1 -1
- package/dist/{credentials-storage-2f956f47.esm.js → credentials-storage-9d81c79a.esm.js} +1 -1
- package/dist/{credentials-storage-13cb8107.cjs.prod.js → credentials-storage-fbd3baab.cjs.prod.js} +1 -1
- package/dist/declarations/src/generated/settings.d.ts +78 -2
- package/dist/{login-b346ddcd.cjs.dev.js → login-3a8da3eb.cjs.prod.js} +5 -13
- package/dist/{login-6e05c691.cjs.prod.js → login-a8925d26.cjs.dev.js} +5 -13
- package/dist/{login-44dccc08.esm.js → login-bd392493.esm.js} +5 -12
- package/dist/{package-970871df.esm.js → package-25df14f0.esm.js} +19 -19
- package/dist/{package-c83aac39.cjs.prod.js → package-dcf0fd0b.cjs.dev.js} +19 -19
- package/dist/{package-a7bf79c4.cjs.dev.js → package-def20f2a.cjs.prod.js} +19 -19
- package/dist/{start-1a100f42.esm.js → start-06244563.esm.js} +4 -4
- package/dist/{start-be8eaee3.cjs.prod.js → start-5a3bfc78.cjs.prod.js} +4 -4
- package/dist/{start-b0e8bdf9.cjs.dev.js → start-821f8317.cjs.dev.js} +4 -4
- package/package.json +19 -19
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.dev.js +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.cjs.prod.js +2 -2
- package/postcss/dist/commercetools-frontend-mc-scripts-postcss.esm.js +2 -2
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.dev.js +4 -4
- package/webpack/dist/commercetools-frontend-mc-scripts-webpack.cjs.prod.js +4 -4
- 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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
39
|
+
import './create-postcss-config-519b81cb.esm.js';
|
|
40
40
|
import '@babel/runtime-corejs3/helpers/slicedToArray';
|
|
41
|
-
import './package-
|
|
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-
|
|
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-
|
|
41
|
+
require('./create-postcss-config-dc49128c.cjs.dev.js');
|
|
42
42
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
43
|
-
require('./package-
|
|
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-
|
|
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-
|
|
41
|
+
require('./create-postcss-config-27d7c566.cjs.prod.js');
|
|
42
42
|
require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
43
|
-
require('./package-
|
|
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.
|
|
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.
|
|
8
|
+
var version = "22.8.0";
|
|
9
9
|
|
|
10
10
|
// These exports are deprecated.
|
|
11
11
|
|
|
@@ -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-
|
|
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-
|
|
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(
|
|
61
|
-
function _objectSpread$1(
|
|
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
|
|
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(
|
|
411
|
-
function _objectSpread(
|
|
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
|
|
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
|
-
|
|
548
|
-
|
|
549
|
-
|
|
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
|
|
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
|
|
578
|
-
const organizationChoices = _mapInstanceProperty__default["default"](
|
|
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"](
|
|
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"](
|
|
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-
|
|
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-
|
|
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(
|
|
37
|
-
function _objectSpread$1(
|
|
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
|
|
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(
|
|
393
|
-
function _objectSpread(
|
|
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
|
|
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
|
-
|
|
530
|
-
|
|
531
|
-
|
|
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
|
|
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
|
|
560
|
-
const organizationChoices = _mapInstanceProperty(
|
|
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(
|
|
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(
|
|
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;
|