@commercetools-frontend/mc-scripts 22.4.0 → 22.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.
- 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-e3507064.cjs.prod.js → build-174de015.cjs.prod.js} +3 -3
- package/dist/{build-32a4bc3a.esm.js → build-20382ed9.esm.js} +3 -3
- package/dist/{build-70a0794f.cjs.dev.js → build-409e1cf9.cjs.dev.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-106632f3.cjs.prod.js → config-sync-6e8c35ff.cjs.prod.js} +42 -31
- package/dist/{config-sync-9afcab14.esm.js → config-sync-7fc13a38.esm.js} +42 -31
- package/dist/{config-sync-009c314b.cjs.dev.js → config-sync-c0eecd23.cjs.dev.js} +42 -31
- package/dist/{create-postcss-config-bb079951.cjs.prod.js → create-postcss-config-46307dce.cjs.prod.js} +1 -1
- package/dist/{create-postcss-config-d6df1e76.cjs.dev.js → create-postcss-config-6fc28778.cjs.dev.js} +1 -1
- package/dist/{create-postcss-config-2a08421b.esm.js → create-postcss-config-c8008bd1.esm.js} +1 -1
- package/dist/{create-webpack-config-for-development-9562ef33.cjs.dev.js → create-webpack-config-for-development-2b6dbee0.cjs.dev.js} +1 -1
- package/dist/{create-webpack-config-for-development-665736e0.esm.js → create-webpack-config-for-development-b15bcea4.esm.js} +1 -1
- package/dist/{create-webpack-config-for-development-7df9cb91.cjs.prod.js → create-webpack-config-for-development-da70d662.cjs.prod.js} +1 -1
- package/dist/{create-webpack-config-for-production-37851297.esm.js → create-webpack-config-for-production-4737ad2c.esm.js} +1 -1
- package/dist/{create-webpack-config-for-production-18ecf52e.cjs.prod.js → create-webpack-config-for-production-aa3f0e35.cjs.prod.js} +1 -1
- package/dist/{create-webpack-config-for-production-07317658.cjs.dev.js → create-webpack-config-for-production-e55825a8.cjs.dev.js} +1 -1
- package/dist/{credentials-storage-13af9f16.cjs.dev.js → credentials-storage-0c7aa073.cjs.dev.js} +1 -1
- package/dist/{credentials-storage-46f24013.esm.js → credentials-storage-5fa2c02b.esm.js} +1 -1
- package/dist/{credentials-storage-5251c078.cjs.prod.js → credentials-storage-dd126329.cjs.prod.js} +1 -1
- package/dist/declarations/src/generated/core.d.ts +46 -35
- package/dist/declarations/src/generated/settings.d.ts +27 -0
- package/dist/declarations/src/utils/auth.d.ts +1 -1
- package/dist/declarations/src/utils/graphql-requests.d.ts +8 -4
- package/dist/login-45455a1d.cjs.dev.js +109 -0
- package/dist/login-61c28c52.cjs.prod.js +109 -0
- package/dist/login-7135212b.esm.js +91 -0
- package/dist/{package-3e2831fa.cjs.prod.js → package-3ff5877f.cjs.prod.js} +11 -11
- package/dist/{package-afbf1ded.esm.js → package-5a8d10a0.esm.js} +11 -11
- package/dist/{package-8fa7c736.cjs.dev.js → package-78ef5945.cjs.dev.js} +11 -11
- package/dist/{start-e37cc629.esm.js → start-c362db35.esm.js} +3 -3
- package/dist/{start-c255f540.cjs.prod.js → start-ccd7ebf7.cjs.prod.js} +3 -3
- package/dist/{start-d9039435.cjs.dev.js → start-eced2251.cjs.dev.js} +3 -3
- package/package.json +11 -11
- 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
- package/dist/login-53879681.cjs.dev.js +0 -82
- package/dist/login-c87a9584.esm.js +0 -73
- package/dist/login-ddc51e40.cjs.prod.js +0 -82
|
@@ -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-0c7aa073.cjs.dev.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-78ef5945.cjs.dev.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');
|
|
@@ -420,23 +420,18 @@ var FetchCustomApplicationFromCli = { kind: "Document", definitions: [{ kind: "O
|
|
|
420
420
|
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 } } } };
|
|
421
421
|
var UpdateCustomApplicationFromCli = { kind: "Document", definitions: [{ kind: "OperationDefinition", operation: "mutation", name: { kind: "Name", value: "UpdateCustomApplicationFromCli" }, 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: [] }, { kind: "VariableDefinition", variable: { kind: "Variable", name: { kind: "Name", value: "applicationId" } }, type: { kind: "NonNullType", type: { kind: "NamedType", name: { kind: "Name", value: "ID" } } }, directives: [] }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "updateCustomApplication" }, 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" } } }, { kind: "Argument", name: { kind: "Name", value: "applicationId" }, value: { kind: "Variable", name: { kind: "Name", value: "applicationId" } } }], directives: [], selectionSet: { kind: "SelectionSet", selections: [{ kind: "Field", name: { kind: "Name", value: "id" }, arguments: [], directives: [] }] } }] } }], loc: { start: 0, end: 268, source: { body: "mutation UpdateCustomApplicationFromCli(\n $organizationId: String!\n $data: CustomApplicationDraftDataInput!\n $applicationId: ID!\n) {\n updateCustomApplication(\n organizationId: $organizationId\n data: $data\n applicationId: $applicationId\n ) {\n id\n }\n}\n", name: "GraphQL request", locationOffset: { line: 1, column: 1 } } } };
|
|
422
422
|
const credentialsStorage$1 = new credentialsStorage$2.CredentialsStorage();
|
|
423
|
-
const client = new graphqlRequest.GraphQLClient('',
|
|
424
|
-
// <-- Set on demand
|
|
425
|
-
{
|
|
426
|
-
headers: {
|
|
427
|
-
Accept: 'application/json',
|
|
428
|
-
'Content-Type': 'application/json',
|
|
429
|
-
'x-user-agent': credentialsStorage$2.userAgent
|
|
430
|
-
}
|
|
431
|
-
});
|
|
432
423
|
async function requestWithTokenRetry(document, requestOptions) {
|
|
433
424
|
let retryCount = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
434
425
|
const token = credentialsStorage$1.getToken(requestOptions.mcApiUrl);
|
|
435
|
-
client.
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
426
|
+
const client = new graphqlRequest.GraphQLClient("".concat(requestOptions.mcApiUrl, "/graphql"), {
|
|
427
|
+
headers: _objectSpread(_objectSpread({
|
|
428
|
+
Accept: 'application/json',
|
|
429
|
+
'Content-Type': 'application/json',
|
|
430
|
+
'x-user-agent': credentialsStorage$2.userAgent
|
|
431
|
+
}, token ? {
|
|
432
|
+
'x-mc-cli-access-token': token
|
|
433
|
+
} : {}), requestOptions.headers)
|
|
434
|
+
});
|
|
440
435
|
try {
|
|
441
436
|
const result = await client.rawRequest(graphql.print(document), requestOptions.variables);
|
|
442
437
|
|
|
@@ -477,13 +472,15 @@ async function requestWithTokenRetry(document, requestOptions) {
|
|
|
477
472
|
}
|
|
478
473
|
const fetchCustomApplication = async _ref => {
|
|
479
474
|
let mcApiUrl = _ref.mcApiUrl,
|
|
480
|
-
entryPointUriPath = _ref.entryPointUriPath
|
|
475
|
+
entryPointUriPath = _ref.entryPointUriPath,
|
|
476
|
+
applicationIdentifier = _ref.applicationIdentifier;
|
|
481
477
|
const customAppData = await requestWithTokenRetry(FetchCustomApplicationFromCli, {
|
|
482
478
|
variables: {
|
|
483
479
|
entryPointUriPath
|
|
484
480
|
},
|
|
485
481
|
mcApiUrl,
|
|
486
482
|
headers: {
|
|
483
|
+
'x-application-id': applicationIdentifier,
|
|
487
484
|
'x-graphql-target': constants.GRAPHQL_TARGETS.SETTINGS_SERVICE
|
|
488
485
|
}
|
|
489
486
|
});
|
|
@@ -493,7 +490,8 @@ const updateCustomApplication = async _ref2 => {
|
|
|
493
490
|
let mcApiUrl = _ref2.mcApiUrl,
|
|
494
491
|
applicationId = _ref2.applicationId,
|
|
495
492
|
organizationId = _ref2.organizationId,
|
|
496
|
-
data = _ref2.data
|
|
493
|
+
data = _ref2.data,
|
|
494
|
+
applicationIdentifier = _ref2.applicationIdentifier;
|
|
497
495
|
const updatedCustomAppsData = await requestWithTokenRetry(UpdateCustomApplicationFromCli, {
|
|
498
496
|
variables: {
|
|
499
497
|
organizationId,
|
|
@@ -502,6 +500,7 @@ const updateCustomApplication = async _ref2 => {
|
|
|
502
500
|
},
|
|
503
501
|
mcApiUrl,
|
|
504
502
|
headers: {
|
|
503
|
+
'x-application-id': applicationIdentifier,
|
|
505
504
|
'x-graphql-target': constants.GRAPHQL_TARGETS.SETTINGS_SERVICE
|
|
506
505
|
}
|
|
507
506
|
});
|
|
@@ -510,7 +509,8 @@ const updateCustomApplication = async _ref2 => {
|
|
|
510
509
|
const createCustomApplication = async _ref3 => {
|
|
511
510
|
let mcApiUrl = _ref3.mcApiUrl,
|
|
512
511
|
organizationId = _ref3.organizationId,
|
|
513
|
-
data = _ref3.data
|
|
512
|
+
data = _ref3.data,
|
|
513
|
+
applicationIdentifier = _ref3.applicationIdentifier;
|
|
514
514
|
const createdCustomAppData = await requestWithTokenRetry(CreateCustomApplicationFromCli, {
|
|
515
515
|
variables: {
|
|
516
516
|
organizationId,
|
|
@@ -518,16 +518,19 @@ const createCustomApplication = async _ref3 => {
|
|
|
518
518
|
},
|
|
519
519
|
mcApiUrl,
|
|
520
520
|
headers: {
|
|
521
|
+
'x-application-id': applicationIdentifier,
|
|
521
522
|
'x-graphql-target': constants.GRAPHQL_TARGETS.SETTINGS_SERVICE
|
|
522
523
|
}
|
|
523
524
|
});
|
|
524
525
|
return createdCustomAppData.createCustomApplication;
|
|
525
526
|
};
|
|
526
527
|
const fetchUserOrganizations = async _ref4 => {
|
|
527
|
-
let mcApiUrl = _ref4.mcApiUrl
|
|
528
|
+
let mcApiUrl = _ref4.mcApiUrl,
|
|
529
|
+
applicationIdentifier = _ref4.applicationIdentifier;
|
|
528
530
|
const userOrganizations = await requestWithTokenRetry(FetchMyOrganizationsFromCli, {
|
|
529
531
|
mcApiUrl,
|
|
530
532
|
headers: {
|
|
533
|
+
'x-application-id': applicationIdentifier,
|
|
531
534
|
'x-graphql-target': constants.GRAPHQL_TARGETS.ADMINISTRATION_SERVICE
|
|
532
535
|
}
|
|
533
536
|
});
|
|
@@ -542,10 +545,14 @@ const getMcUrlLink = (mcApiUrl, organizationId, applicationId) => {
|
|
|
542
545
|
return customAppLink;
|
|
543
546
|
};
|
|
544
547
|
async function run(options) {
|
|
545
|
-
var
|
|
548
|
+
var _context3, _context6;
|
|
546
549
|
const applicationConfig$1 = applicationConfig.processConfig();
|
|
547
550
|
const localCustomAppData = applicationConfig$1.data;
|
|
548
|
-
const
|
|
551
|
+
const _applicationConfig$en = applicationConfig$1.env,
|
|
552
|
+
mcApiUrl = _applicationConfig$en.mcApiUrl,
|
|
553
|
+
applicationId = _applicationConfig$en.applicationId,
|
|
554
|
+
entryPointUriPath = _applicationConfig$en.entryPointUriPath;
|
|
555
|
+
const applicationIdentifier = _concatInstanceProperty__default["default"](_context3 = "".concat(applicationId, ":")).call(_context3, entryPointUriPath);
|
|
549
556
|
console.log("Using Merchant Center environment \"".concat(chalk__default["default"].green(mcApiUrl), "\"."));
|
|
550
557
|
console.log();
|
|
551
558
|
const isSessionValid = credentialsStorage.isSessionValid(mcApiUrl);
|
|
@@ -554,12 +561,14 @@ async function run(options) {
|
|
|
554
561
|
}
|
|
555
562
|
const fetchedCustomApplication = await fetchCustomApplication({
|
|
556
563
|
mcApiUrl,
|
|
557
|
-
entryPointUriPath: localCustomAppData.entryPointUriPath
|
|
564
|
+
entryPointUriPath: localCustomAppData.entryPointUriPath,
|
|
565
|
+
applicationIdentifier
|
|
558
566
|
});
|
|
559
567
|
if (!fetchedCustomApplication) {
|
|
560
|
-
var
|
|
568
|
+
var _context5;
|
|
561
569
|
const userOrganizations = await fetchUserOrganizations({
|
|
562
|
-
mcApiUrl
|
|
570
|
+
mcApiUrl,
|
|
571
|
+
applicationIdentifier
|
|
563
572
|
});
|
|
564
573
|
let organizationId, organizationName;
|
|
565
574
|
if (userOrganizations.total === 0) {
|
|
@@ -571,8 +580,8 @@ async function run(options) {
|
|
|
571
580
|
organizationId = organization.id;
|
|
572
581
|
organizationName = organization.name;
|
|
573
582
|
} else {
|
|
574
|
-
var
|
|
575
|
-
const organizationChoices = _mapInstanceProperty__default["default"](
|
|
583
|
+
var _context4;
|
|
584
|
+
const organizationChoices = _mapInstanceProperty__default["default"](_context4 = userOrganizations.results).call(_context4, organization => ({
|
|
576
585
|
title: organization.name,
|
|
577
586
|
value: organization.id
|
|
578
587
|
}));
|
|
@@ -596,7 +605,7 @@ async function run(options) {
|
|
|
596
605
|
const _await$prompts2 = await prompts__default["default"]({
|
|
597
606
|
type: 'text',
|
|
598
607
|
name: 'confirmation',
|
|
599
|
-
message: _filterInstanceProperty__default["default"](
|
|
608
|
+
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'),
|
|
600
609
|
initial: 'yes'
|
|
601
610
|
}),
|
|
602
611
|
confirmation = _await$prompts2.confirmation;
|
|
@@ -615,7 +624,8 @@ async function run(options) {
|
|
|
615
624
|
const createdCustomApplication = await createCustomApplication({
|
|
616
625
|
mcApiUrl,
|
|
617
626
|
organizationId,
|
|
618
|
-
data
|
|
627
|
+
data,
|
|
628
|
+
applicationIdentifier
|
|
619
629
|
});
|
|
620
630
|
|
|
621
631
|
// This check is technically not necessary, as the `graphql-request` client
|
|
@@ -643,7 +653,7 @@ async function run(options) {
|
|
|
643
653
|
const _await$prompts3 = await prompts__default["default"]({
|
|
644
654
|
type: 'text',
|
|
645
655
|
name: 'confirmation',
|
|
646
|
-
message: _filterInstanceProperty__default["default"](
|
|
656
|
+
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'),
|
|
647
657
|
initial: 'yes'
|
|
648
658
|
}),
|
|
649
659
|
confirmation = _await$prompts3.confirmation;
|
|
@@ -663,7 +673,8 @@ async function run(options) {
|
|
|
663
673
|
mcApiUrl,
|
|
664
674
|
organizationId: fetchedCustomApplication.organizationId,
|
|
665
675
|
data: omit__default["default"](localCustomAppData, ['id']),
|
|
666
|
-
applicationId: fetchedCustomApplication.application.id
|
|
676
|
+
applicationId: fetchedCustomApplication.application.id,
|
|
677
|
+
applicationIdentifier
|
|
667
678
|
});
|
|
668
679
|
console.log(chalk__default["default"].green("Custom Application updated."));
|
|
669
680
|
console.log("You can inspect the Custom Application data in the Merchant Center at \"".concat(chalk__default["default"].gray(customAppLink), "\"."));
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
4
4
|
var path = require('path');
|
|
5
|
-
var _package = require('./package-
|
|
5
|
+
var _package = require('./package-3ff5877f.cjs.prod.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
8
8
|
|
package/dist/{create-postcss-config-d6df1e76.cjs.dev.js → create-postcss-config-6fc28778.cjs.dev.js}
RENAMED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var _slicedToArray = require('@babel/runtime-corejs3/helpers/slicedToArray');
|
|
4
4
|
var path = require('path');
|
|
5
|
-
var _package = require('./package-
|
|
5
|
+
var _package = require('./package-78ef5945.cjs.dev.js');
|
|
6
6
|
|
|
7
7
|
function _interopDefault (e) { return e && e.__esModule ? e : { 'default': e }; }
|
|
8
8
|
|
package/dist/{create-postcss-config-2a08421b.esm.js → create-postcss-config-c8008bd1.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _slicedToArray from '@babel/runtime-corejs3/helpers/esm/slicedToArray';
|
|
2
2
|
import path from 'path';
|
|
3
|
-
import { p as pkgJson } from './package-
|
|
3
|
+
import { p as pkgJson } from './package-5a8d10a0.esm.js';
|
|
4
4
|
|
|
5
5
|
// This function aims to return the same result as `require.resolve`.
|
|
6
6
|
// However, resolving a path to a `.css` file does not return the real
|
|
@@ -24,7 +24,7 @@ var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
|
24
24
|
var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
25
25
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
26
26
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
27
|
-
var createPostcssConfig = require('./create-postcss-config-
|
|
27
|
+
var createPostcssConfig = require('./create-postcss-config-6fc28778.cjs.dev.js');
|
|
28
28
|
var hasJsxRuntime = require('./has-jsx-runtime-aa5d21ee.cjs.dev.js');
|
|
29
29
|
var paths = require('./paths-d1febc82.cjs.dev.js');
|
|
30
30
|
var vendorsToTranspile = require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
|
|
@@ -22,7 +22,7 @@ import _createClass from '@babel/runtime-corejs3/helpers/esm/createClass';
|
|
|
22
22
|
import _Object$assign from '@babel/runtime-corejs3/core-js-stable/object/assign';
|
|
23
23
|
import { processConfig } from '@commercetools-frontend/application-config';
|
|
24
24
|
import { replaceHtmlPlaceholders } from '@commercetools-frontend/mc-html-template';
|
|
25
|
-
import { c as createPostcssConfig } from './create-postcss-config-
|
|
25
|
+
import { c as createPostcssConfig } from './create-postcss-config-c8008bd1.esm.js';
|
|
26
26
|
import { h as hasJsxRuntime } from './has-jsx-runtime-e3ecb09b.esm.js';
|
|
27
27
|
import { p as paths } from './paths-ded20ae1.esm.js';
|
|
28
28
|
import { v as vendorsToTranspile } from './vendors-to-transpile-7dc84a72.esm.js';
|
|
@@ -24,7 +24,7 @@ var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
|
24
24
|
var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
25
25
|
var applicationConfig = require('@commercetools-frontend/application-config');
|
|
26
26
|
var mcHtmlTemplate = require('@commercetools-frontend/mc-html-template');
|
|
27
|
-
var createPostcssConfig = require('./create-postcss-config-
|
|
27
|
+
var createPostcssConfig = require('./create-postcss-config-46307dce.cjs.prod.js');
|
|
28
28
|
var hasJsxRuntime = require('./has-jsx-runtime-c3202df5.cjs.prod.js');
|
|
29
29
|
var paths = require('./paths-854af5ef.cjs.prod.js');
|
|
30
30
|
var vendorsToTranspile = require('./vendors-to-transpile-04a49d40.cjs.prod.js');
|
|
@@ -26,7 +26,7 @@ import _reduceInstanceProperty from '@babel/runtime-corejs3/core-js-stable/insta
|
|
|
26
26
|
import _Object$assign from '@babel/runtime-corejs3/core-js-stable/object/assign';
|
|
27
27
|
import fs from 'fs';
|
|
28
28
|
import path from 'path';
|
|
29
|
-
import { c as createPostcssConfig } from './create-postcss-config-
|
|
29
|
+
import { c as createPostcssConfig } from './create-postcss-config-c8008bd1.esm.js';
|
|
30
30
|
import { h as hasJsxRuntime } from './has-jsx-runtime-e3ecb09b.esm.js';
|
|
31
31
|
import { p as paths } from './paths-ded20ae1.esm.js';
|
|
32
32
|
import { v as vendorsToTranspile } from './vendors-to-transpile-7dc84a72.esm.js';
|
|
@@ -28,7 +28,7 @@ var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
|
|
|
28
28
|
var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
29
29
|
var fs = require('fs');
|
|
30
30
|
var path = require('path');
|
|
31
|
-
var createPostcssConfig = require('./create-postcss-config-
|
|
31
|
+
var createPostcssConfig = require('./create-postcss-config-46307dce.cjs.prod.js');
|
|
32
32
|
var hasJsxRuntime = require('./has-jsx-runtime-c3202df5.cjs.prod.js');
|
|
33
33
|
var paths = require('./paths-854af5ef.cjs.prod.js');
|
|
34
34
|
var vendorsToTranspile = require('./vendors-to-transpile-04a49d40.cjs.prod.js');
|
|
@@ -28,7 +28,7 @@ var _reduceInstanceProperty = require('@babel/runtime-corejs3/core-js-stable/ins
|
|
|
28
28
|
var _Object$assign = require('@babel/runtime-corejs3/core-js-stable/object/assign');
|
|
29
29
|
var fs = require('fs');
|
|
30
30
|
var path = require('path');
|
|
31
|
-
var createPostcssConfig = require('./create-postcss-config-
|
|
31
|
+
var createPostcssConfig = require('./create-postcss-config-6fc28778.cjs.dev.js');
|
|
32
32
|
var hasJsxRuntime = require('./has-jsx-runtime-aa5d21ee.cjs.dev.js');
|
|
33
33
|
var paths = require('./paths-d1febc82.cjs.dev.js');
|
|
34
34
|
var vendorsToTranspile = require('./vendors-to-transpile-6ab4ea06.cjs.dev.js');
|
package/dist/{credentials-storage-13af9f16.cjs.dev.js → credentials-storage-0c7aa073.cjs.dev.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var createHttpUserAgent = require('@commercetools/http-user-agent');
|
|
4
|
-
var _package = require('./package-
|
|
4
|
+
var _package = require('./package-78ef5945.cjs.dev.js');
|
|
5
5
|
var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
6
6
|
var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
7
7
|
var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import createHttpUserAgent from '@commercetools/http-user-agent';
|
|
2
|
-
import { p as pkgJson } from './package-
|
|
2
|
+
import { p as pkgJson } from './package-5a8d10a0.esm.js';
|
|
3
3
|
import _classCallCheck from '@babel/runtime-corejs3/helpers/esm/classCallCheck';
|
|
4
4
|
import _createClass from '@babel/runtime-corejs3/helpers/esm/createClass';
|
|
5
5
|
import _JSON$stringify from '@babel/runtime-corejs3/core-js-stable/json/stringify';
|
package/dist/{credentials-storage-5251c078.cjs.prod.js → credentials-storage-dd126329.cjs.prod.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var createHttpUserAgent = require('@commercetools/http-user-agent');
|
|
4
|
-
var _package = require('./package-
|
|
4
|
+
var _package = require('./package-3ff5877f.cjs.prod.js');
|
|
5
5
|
var _classCallCheck = require('@babel/runtime-corejs3/helpers/classCallCheck');
|
|
6
6
|
var _createClass = require('@babel/runtime-corejs3/helpers/createClass');
|
|
7
7
|
var _JSON$stringify = require('@babel/runtime-corejs3/core-js-stable/json/stringify');
|
|
@@ -18,17 +18,11 @@ export type Scalars = {
|
|
|
18
18
|
Boolean: boolean;
|
|
19
19
|
Int: number;
|
|
20
20
|
Float: number;
|
|
21
|
-
/** [ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) country code. */
|
|
22
21
|
Country: any;
|
|
23
|
-
/** Represents a currency. Currencies are identified by their [ISO 4217](http://www.iso.org/iso/home/standards/currency_codes.htm) currency codes. */
|
|
24
22
|
Currency: any;
|
|
25
|
-
/** DateTime is a scalar value that represents an ISO8601 formatted date and time. */
|
|
26
23
|
DateTime: any;
|
|
27
|
-
/** DateTimeZone is a scalar value that represents a time zone. */
|
|
28
24
|
DateTimeZone: any;
|
|
29
|
-
/** Locale is a scalar value represented as a string language tag. */
|
|
30
25
|
Locale: any;
|
|
31
|
-
/** The `Long` scalar type represents non-fractional signed whole numeric values. Long can represent values between -(2^63) and 2^63 - 1. */
|
|
32
26
|
Long: any;
|
|
33
27
|
};
|
|
34
28
|
export type TAddTeam = {
|
|
@@ -40,43 +34,35 @@ export type TAddTeamMembership = {
|
|
|
40
34
|
teamId: Scalars['String'];
|
|
41
35
|
user: TReferenceInput;
|
|
42
36
|
};
|
|
37
|
+
export type TAttributeGroupLimits = {
|
|
38
|
+
__typename?: 'AttributeGroupLimits';
|
|
39
|
+
maxTotalAttributeGroups?: Maybe<Scalars['Int']>;
|
|
40
|
+
};
|
|
41
|
+
/** AWS S3 container config */
|
|
42
|
+
export type TAwsContainer = {
|
|
43
|
+
__typename?: 'AwsContainer';
|
|
44
|
+
/** Public bucket url, without the project part */
|
|
45
|
+
bucketUrl: Scalars['String'];
|
|
46
|
+
/** Project part of the object path on s3 */
|
|
47
|
+
projectPrefix: Scalars['String'];
|
|
48
|
+
};
|
|
43
49
|
export declare enum TBusinessRole {
|
|
44
|
-
/**
|
|
45
|
-
|
|
46
|
-
/** Business Intelligence role. */
|
|
47
|
-
BusinessIntelligence = "BusinessIntelligence",
|
|
48
|
-
/** Buying, Planning & Inventory Management role. */
|
|
49
|
-
BuyingPlanningAndInventoryManagement = "BuyingPlanningAndInventoryManagement",
|
|
50
|
+
/** Architect role. */
|
|
51
|
+
Architect = "Architect",
|
|
50
52
|
/** Customer Service role. */
|
|
51
53
|
CustomerService = "CustomerService",
|
|
52
|
-
/**
|
|
53
|
-
|
|
54
|
+
/** Engineer role. */
|
|
55
|
+
Engineer = "Engineer",
|
|
54
56
|
/** Executive Management role. */
|
|
55
57
|
ExecutiveManagement = "ExecutiveManagement",
|
|
56
|
-
/** Finance & Accounting role. */
|
|
57
|
-
FinanceAndAccounting = "FinanceAndAccounting",
|
|
58
|
-
/** Fulfillment & Operations Management role. */
|
|
59
|
-
FulfillmentAndOperationsManagement = "FulfillmentAndOperationsManagement",
|
|
60
|
-
/** Legal & People role. */
|
|
61
|
-
LegalAndPeople = "LegalAndPeople",
|
|
62
|
-
/** Logistics & Supply Chain role. */
|
|
63
|
-
LogisticsAndSupplyChain = "LogisticsAndSupplyChain",
|
|
64
58
|
/** Marketing role. */
|
|
65
59
|
Marketing = "Marketing",
|
|
66
|
-
/** Offline Retail Store role. */
|
|
67
|
-
OfflineRetailStore = "OfflineRetailStore",
|
|
68
|
-
/** Operations, IT & Support Engineering role. */
|
|
69
|
-
OperationsItAndSupportEngineering = "OperationsITAndSupportEngineering",
|
|
70
60
|
/** Other role. */
|
|
71
61
|
Other = "Other",
|
|
72
|
-
/**
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
|
|
76
|
-
/** Project & Program Management (Tech) role. */
|
|
77
|
-
TechProjectAndProgramManagement = "TechProjectAndProgramManagement",
|
|
78
|
-
/** UX/UI Design role. */
|
|
79
|
-
UxuiDesign = "UXUIDesign"
|
|
62
|
+
/** ProductProjectManagerOrOwner role. */
|
|
63
|
+
ProductProjectManagerOrOwner = "ProductProjectManagerOrOwner",
|
|
64
|
+
/** SalesAndECommerceManager role. */
|
|
65
|
+
SalesAndECommerceManager = "SalesAndECommerceManager"
|
|
80
66
|
}
|
|
81
67
|
export type TCartClassificationType = TShippingRateInputType & {
|
|
82
68
|
__typename?: 'CartClassificationType';
|
|
@@ -239,6 +225,7 @@ export type TExternalOAuthInput = {
|
|
|
239
225
|
export type TInitiator = {
|
|
240
226
|
__typename?: 'Initiator';
|
|
241
227
|
anonymousId?: Maybe<Scalars['String']>;
|
|
228
|
+
associateRef?: Maybe<TReference>;
|
|
242
229
|
clientId?: Maybe<Scalars['String']>;
|
|
243
230
|
customerRef?: Maybe<TReference>;
|
|
244
231
|
externalUserId?: Maybe<Scalars['String']>;
|
|
@@ -250,6 +237,7 @@ export type TLocalizedString = {
|
|
|
250
237
|
locale: Scalars['Locale'];
|
|
251
238
|
value: Scalars['String'];
|
|
252
239
|
};
|
|
240
|
+
export type TMediaContainer = TAwsContainer | TPublicContainer;
|
|
253
241
|
export type TMessagesConfiguration = {
|
|
254
242
|
__typename?: 'MessagesConfiguration';
|
|
255
243
|
deleteDaysAfterCreation?: Maybe<Scalars['Int']>;
|
|
@@ -265,6 +253,8 @@ export type TMutation = {
|
|
|
265
253
|
deleteMyPermission?: Maybe<TPermission>;
|
|
266
254
|
deleteMyProject?: Maybe<TProject>;
|
|
267
255
|
deletePermission?: Maybe<TPermission>;
|
|
256
|
+
revokeAccessTokensByGroup?: Maybe<TRevokedTokens>;
|
|
257
|
+
revokeAccessTokensByTeam?: Maybe<TRevokedTokens>;
|
|
268
258
|
updateMyOrganization?: Maybe<TOrganization>;
|
|
269
259
|
updateMyPermission?: Maybe<TPermission>;
|
|
270
260
|
updatePermission?: Maybe<TPermission>;
|
|
@@ -297,6 +287,14 @@ export type TMutation_DeletePermissionArgs = {
|
|
|
297
287
|
id: Scalars['String'];
|
|
298
288
|
version: Scalars['Long'];
|
|
299
289
|
};
|
|
290
|
+
export type TMutation_RevokeAccessTokensByGroupArgs = {
|
|
291
|
+
owner: TReferenceInput;
|
|
292
|
+
permissionGroup: Scalars['String'];
|
|
293
|
+
};
|
|
294
|
+
export type TMutation_RevokeAccessTokensByTeamArgs = {
|
|
295
|
+
owner: TReferenceInput;
|
|
296
|
+
teamId: Scalars['String'];
|
|
297
|
+
};
|
|
300
298
|
export type TMutation_UpdateMyOrganizationArgs = {
|
|
301
299
|
actions: Array<TOrganizationUpdateAction>;
|
|
302
300
|
id: Scalars['String'];
|
|
@@ -392,7 +390,7 @@ export type TProductTypeLimits = {
|
|
|
392
390
|
export type TProject = TVersioned & {
|
|
393
391
|
__typename?: 'Project';
|
|
394
392
|
billingInfo?: Maybe<TProjectBillingInfo>;
|
|
395
|
-
cdnContainer?: Maybe<
|
|
393
|
+
cdnContainer?: Maybe<TMediaContainer>;
|
|
396
394
|
cdnContainerConfiguration: TCdnContainerConfiguration;
|
|
397
395
|
countries: Array<Scalars['Country']>;
|
|
398
396
|
createdAt: Scalars['DateTime'];
|
|
@@ -428,6 +426,7 @@ export type TProjectBillingInfo = {
|
|
|
428
426
|
};
|
|
429
427
|
export type TProjectCustomLimits = {
|
|
430
428
|
__typename?: 'ProjectCustomLimits';
|
|
429
|
+
attributeGroupLimits?: Maybe<TAttributeGroupLimits>;
|
|
431
430
|
cartDiscounts?: Maybe<TCartDiscountLimits>;
|
|
432
431
|
carts?: Maybe<TCartLimits>;
|
|
433
432
|
categoryLimits?: Maybe<TCategoryLimits>;
|
|
@@ -445,6 +444,7 @@ export type TProjectCustomLimits = {
|
|
|
445
444
|
shippingMethods?: Maybe<TShippingMethodLimit>;
|
|
446
445
|
shoppingLists?: Maybe<TShoppingListLimits>;
|
|
447
446
|
stores?: Maybe<TStoreLimits>;
|
|
447
|
+
subscriptions?: Maybe<TSubscriptionsLimits>;
|
|
448
448
|
taxCategories?: Maybe<TTaxCategoryLimit>;
|
|
449
449
|
termFacetSize?: Maybe<Scalars['Int']>;
|
|
450
450
|
zones?: Maybe<TZoneLimits>;
|
|
@@ -493,6 +493,7 @@ export declare enum TProjectSuspensionReason {
|
|
|
493
493
|
/** The usage of the project is not paid. */
|
|
494
494
|
Payment = "Payment"
|
|
495
495
|
}
|
|
496
|
+
/** Rackspace Cloud Files container config */
|
|
496
497
|
export type TPublicContainer = {
|
|
497
498
|
__typename?: 'PublicContainer';
|
|
498
499
|
httpUri: Scalars['String'];
|
|
@@ -594,6 +595,12 @@ export type TRemoveTeamMembership = {
|
|
|
594
595
|
teamId: Scalars['String'];
|
|
595
596
|
user: TReferenceInput;
|
|
596
597
|
};
|
|
598
|
+
export type TRevokedTokens = {
|
|
599
|
+
__typename?: 'RevokedTokens';
|
|
600
|
+
owner: TReference;
|
|
601
|
+
revoked: Scalars['Long'];
|
|
602
|
+
teams: Array<Scalars['String']>;
|
|
603
|
+
};
|
|
597
604
|
export type TSearchIndexingConfigurationInput = {
|
|
598
605
|
products?: InputMaybe<TSearchIndexingConfigurationValuesInput>;
|
|
599
606
|
};
|
|
@@ -651,6 +658,10 @@ export type TStoreLimits = {
|
|
|
651
658
|
maxProductSelectionsPerStore?: Maybe<Scalars['Long']>;
|
|
652
659
|
maxStores?: Maybe<Scalars['Long']>;
|
|
653
660
|
};
|
|
661
|
+
export type TSubscriptionsLimits = {
|
|
662
|
+
__typename?: 'SubscriptionsLimits';
|
|
663
|
+
maxSubscriptions?: Maybe<Scalars['Int']>;
|
|
664
|
+
};
|
|
654
665
|
export type TTaxCategoryLimit = {
|
|
655
666
|
__typename?: 'TaxCategoryLimit';
|
|
656
667
|
maxTaxCategories?: Maybe<Scalars['Long']>;
|
|
@@ -23,6 +23,9 @@ export type Scalars = {
|
|
|
23
23
|
[key: string]: unknown;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
|
+
export type TAllPublicCustomApplicationsDevelopedByCommercetoolsQueryInput = {
|
|
27
|
+
organizationId?: InputMaybe<Scalars['String']>;
|
|
28
|
+
};
|
|
26
29
|
export type TApplicationExtension = {
|
|
27
30
|
__typename?: 'ApplicationExtension';
|
|
28
31
|
createdAt: Scalars['DateTime'];
|
|
@@ -509,7 +512,9 @@ export type TMutation = {
|
|
|
509
512
|
setOrganizationExtensionOidcSsoConfig?: Maybe<TOrganizationExtension>;
|
|
510
513
|
setProjectExtensionCategoryRecommendation?: Maybe<TProjectExtension>;
|
|
511
514
|
setProjectExtensionImageRegex?: Maybe<TProjectExtension>;
|
|
515
|
+
setProjectExtensionImportSampleDataset?: Maybe<TProjectExtension>;
|
|
512
516
|
setProjectExtensionOrderStatesVisibility?: Maybe<TProjectExtension>;
|
|
517
|
+
setProjectExtensionRichTextEditorSettings?: Maybe<TProjectExtension>;
|
|
513
518
|
uninstallCustomApplication?: Maybe<TRestrictedCustomApplicationInstallationForOrganization>;
|
|
514
519
|
updateCartDiscountsCustomView?: Maybe<TDiscountsCustomView>;
|
|
515
520
|
updateCustomApplication?: Maybe<TRestrictedCustomApplicationForOrganization>;
|
|
@@ -680,9 +685,15 @@ export type TMutation_SetProjectExtensionCategoryRecommendationArgs = {
|
|
|
680
685
|
export type TMutation_SetProjectExtensionImageRegexArgs = {
|
|
681
686
|
data?: InputMaybe<TImageRegexDataInput>;
|
|
682
687
|
};
|
|
688
|
+
export type TMutation_SetProjectExtensionImportSampleDatasetArgs = {
|
|
689
|
+
data?: InputMaybe<TSampleDatasets>;
|
|
690
|
+
};
|
|
683
691
|
export type TMutation_SetProjectExtensionOrderStatesVisibilityArgs = {
|
|
684
692
|
data?: InputMaybe<Array<InputMaybe<TOrderStatesVisibility>>>;
|
|
685
693
|
};
|
|
694
|
+
export type TMutation_SetProjectExtensionRichTextEditorSettingsArgs = {
|
|
695
|
+
data?: InputMaybe<TRichTextEditorSettingsInput>;
|
|
696
|
+
};
|
|
686
697
|
export type TMutation_UninstallCustomApplicationArgs = {
|
|
687
698
|
installedApplicationId: Scalars['ID'];
|
|
688
699
|
organizationId: Scalars['String'];
|
|
@@ -968,8 +979,10 @@ export type TProjectExtension = {
|
|
|
968
979
|
id: Scalars['ID'];
|
|
969
980
|
imageRegex?: Maybe<TImageRegex>;
|
|
970
981
|
installedApplications?: Maybe<Array<TRestrictedCustomApplicationInstallationForProject>>;
|
|
982
|
+
isRichTextEditorEnabled: Scalars['Boolean'];
|
|
971
983
|
orderStatesVisibility: Array<TOrderStatesVisibility>;
|
|
972
984
|
projectKey: Scalars['String'];
|
|
985
|
+
sampleDataImport?: Maybe<TSampleDataImportMetadata>;
|
|
973
986
|
updatedAt: Scalars['DateTime'];
|
|
974
987
|
};
|
|
975
988
|
export type TProjectExtension_ApplicationsArgs = {
|
|
@@ -1057,6 +1070,9 @@ export type TQuery_AllFeaturesArgs = {
|
|
|
1057
1070
|
export type TQuery_AllOrganizationExtensionsArgs = {
|
|
1058
1071
|
organizationIds?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
|
|
1059
1072
|
};
|
|
1073
|
+
export type TQuery_AllPublicCustomApplicationsDevelopedByCommercetoolsArgs = {
|
|
1074
|
+
params?: InputMaybe<TAllPublicCustomApplicationsDevelopedByCommercetoolsQueryInput>;
|
|
1075
|
+
};
|
|
1060
1076
|
export type TQuery_CartDiscountsCustomViewArgs = {
|
|
1061
1077
|
id: Scalars['ID'];
|
|
1062
1078
|
};
|
|
@@ -1186,6 +1202,9 @@ export type TRestrictedCustomApplicationInstallationForProject = {
|
|
|
1186
1202
|
export type TRestrictedCustomApplicationInstallationForProjectWhereInput = {
|
|
1187
1203
|
entryPointUriPath?: InputMaybe<Scalars['String']>;
|
|
1188
1204
|
};
|
|
1205
|
+
export type TRichTextEditorSettingsInput = {
|
|
1206
|
+
isRichTextEditorEnabled: Scalars['Boolean'];
|
|
1207
|
+
};
|
|
1189
1208
|
export type TRuleBuilderQuickSelectCreatefunctionsInput = {
|
|
1190
1209
|
set?: InputMaybe<Array<Scalars['String']>>;
|
|
1191
1210
|
};
|
|
@@ -1229,6 +1248,14 @@ export type TSalesPerformanceConfigurationInput = {
|
|
|
1229
1248
|
dateTo?: InputMaybe<Scalars['DateTime']>;
|
|
1230
1249
|
showPreviousTimeframe: Scalars['Boolean'];
|
|
1231
1250
|
};
|
|
1251
|
+
export type TSampleDataImportMetadata = {
|
|
1252
|
+
__typename?: 'SampleDataImportMetadata';
|
|
1253
|
+
completed: Scalars['Boolean'];
|
|
1254
|
+
dataset?: Maybe<TSampleDatasets>;
|
|
1255
|
+
};
|
|
1256
|
+
export declare enum TSampleDatasets {
|
|
1257
|
+
Fashion = "FASHION"
|
|
1258
|
+
}
|
|
1232
1259
|
export type TSort = {
|
|
1233
1260
|
__typename?: 'Sort';
|
|
1234
1261
|
key: Scalars['String'];
|
|
@@ -2,5 +2,5 @@ type TAuthPayload = {
|
|
|
2
2
|
email: string;
|
|
3
3
|
password: string;
|
|
4
4
|
};
|
|
5
|
-
declare const getAuthToken: (mcApiUrl: string, payload: TAuthPayload) => Promise<any>;
|
|
5
|
+
declare const getAuthToken: (mcApiUrl: string, payload: TAuthPayload, headers?: Record<string, string>) => Promise<any>;
|
|
6
6
|
export { getAuthToken };
|
|
@@ -2,22 +2,26 @@ import type { TCustomApplicationDraftDataInput } from '../generated/settings';
|
|
|
2
2
|
type TFetchCustomApplicationOptions = {
|
|
3
3
|
mcApiUrl: string;
|
|
4
4
|
entryPointUriPath: string;
|
|
5
|
+
applicationIdentifier: string;
|
|
5
6
|
};
|
|
6
7
|
type TUpdateCustomApplicationOptions = {
|
|
7
8
|
mcApiUrl: string;
|
|
8
9
|
applicationId: string;
|
|
9
10
|
organizationId: string;
|
|
10
11
|
data: TCustomApplicationDraftDataInput;
|
|
12
|
+
applicationIdentifier: string;
|
|
11
13
|
};
|
|
12
14
|
type TCreateCustomApplicationOptions = {
|
|
13
15
|
mcApiUrl: string;
|
|
14
16
|
organizationId: string;
|
|
15
17
|
data: TCustomApplicationDraftDataInput;
|
|
18
|
+
applicationIdentifier: string;
|
|
16
19
|
};
|
|
17
20
|
type TFetchUserOrganizationsOptions = {
|
|
18
21
|
mcApiUrl: string;
|
|
22
|
+
applicationIdentifier: string;
|
|
19
23
|
};
|
|
20
|
-
declare const fetchCustomApplication: ({ mcApiUrl, entryPointUriPath, }: TFetchCustomApplicationOptions) => Promise<{
|
|
24
|
+
declare const fetchCustomApplication: ({ mcApiUrl, entryPointUriPath, applicationIdentifier, }: TFetchCustomApplicationOptions) => Promise<{
|
|
21
25
|
__typename?: "OrganizationExtensionForCustomApplication" | undefined;
|
|
22
26
|
organizationId: string;
|
|
23
27
|
application: {
|
|
@@ -56,15 +60,15 @@ declare const fetchCustomApplication: ({ mcApiUrl, entryPointUriPath, }: TFetchC
|
|
|
56
60
|
}[];
|
|
57
61
|
};
|
|
58
62
|
} | null | undefined>;
|
|
59
|
-
declare const updateCustomApplication: ({ mcApiUrl, applicationId, organizationId, data, }: TUpdateCustomApplicationOptions) => Promise<{
|
|
63
|
+
declare const updateCustomApplication: ({ mcApiUrl, applicationId, organizationId, data, applicationIdentifier, }: TUpdateCustomApplicationOptions) => Promise<{
|
|
60
64
|
__typename?: "RestrictedCustomApplicationForOrganization" | undefined;
|
|
61
65
|
id: string;
|
|
62
66
|
} | null | undefined>;
|
|
63
|
-
declare const createCustomApplication: ({ mcApiUrl, organizationId, data, }: TCreateCustomApplicationOptions) => Promise<{
|
|
67
|
+
declare const createCustomApplication: ({ mcApiUrl, organizationId, data, applicationIdentifier, }: TCreateCustomApplicationOptions) => Promise<{
|
|
64
68
|
__typename?: "RestrictedCustomApplicationForOrganization" | undefined;
|
|
65
69
|
id: string;
|
|
66
70
|
} | null | undefined>;
|
|
67
|
-
declare const fetchUserOrganizations: ({ mcApiUrl, }: TFetchUserOrganizationsOptions) => Promise<{
|
|
71
|
+
declare const fetchUserOrganizations: ({ mcApiUrl, applicationIdentifier, }: TFetchUserOrganizationsOptions) => Promise<{
|
|
68
72
|
__typename?: "OrganizationQueryResult" | undefined;
|
|
69
73
|
total: any;
|
|
70
74
|
results: {
|