@adobe/aio-commerce-lib-app 2.0.0 → 2.1.0-alpha-20260923164312
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/CHANGELOG.md +10 -0
- package/README.md +4 -0
- package/dist/cjs/actions/app-config/index.cjs +3 -3
- package/dist/cjs/actions/association/index.cjs +1 -1
- package/dist/cjs/actions/config/index.cjs +1 -1
- package/dist/cjs/actions/installation/index.cjs +4 -4
- package/dist/cjs/actions/scope-tree/index.cjs +4 -3
- package/dist/cjs/cli/index.cjs +447 -0
- package/dist/cjs/cli/index.d.cts +40 -0
- package/dist/cjs/commands/index.cjs +73 -1717
- package/dist/cjs/{common-VSsQEHDv.cjs → common-B3KrOG-h.cjs} +1 -1
- package/dist/cjs/config/index.node.cjs +3 -3
- package/dist/{es/logging-CXesop3u.mjs → cjs/constants-tQUzmimN.cjs} +6 -18
- package/dist/cjs/{index.node-vcOo1rt0.cjs → index.node-De5ENMF8.cjs} +2 -2
- package/dist/cjs/{logging-Br3xfBNe.cjs → logging-QTsrSwPc.cjs} +0 -16
- package/dist/cjs/management/index.cjs +1 -1
- package/dist/cjs/{management-Bki3hlxL.cjs → management-DplOGozL.cjs} +11 -10
- package/dist/cjs/{validate-CwWYtRsS.cjs → validate-DkmBVWFX.cjs} +1 -1
- package/dist/cjs/web-src-DvGBiJI5.cjs +1521 -0
- package/dist/cjs/{webhooks-Bcq2Qy7q.cjs → webhooks-zXjrg32x.cjs} +57 -57
- package/dist/es/actions/app-config/index.mjs +3 -3
- package/dist/es/actions/association/index.mjs +1 -1
- package/dist/es/actions/config/index.mjs +1 -1
- package/dist/es/actions/installation/index.mjs +4 -4
- package/dist/es/actions/scope-tree/index.mjs +3 -2
- package/dist/es/cli/index.d.mts +40 -0
- package/dist/es/cli/index.mjs +435 -0
- package/dist/es/commands/index.mjs +29 -1666
- package/dist/es/{common-dy6NrZt8.mjs → common-BWUDGasu.mjs} +1 -1
- package/dist/es/config/index.node.mjs +3 -3
- package/dist/es/constants-CSQsZaDP.mjs +25 -0
- package/dist/es/{index.node-CW46zuxW.mjs → index.node-C5D5IzSs.mjs} +2 -2
- package/dist/es/logging-DbJHXSKh.mjs +32 -0
- package/dist/es/management/index.mjs +1 -1
- package/dist/es/{management-DgwAhaaJ.mjs → management-YDkb15SJ.mjs} +6 -5
- package/dist/es/{validate-NzW1FQwL.mjs → validate-Pd7RIA_3.mjs} +1 -1
- package/dist/es/web-src-CLEUvMl7.mjs +1345 -0
- package/dist/es/{webhooks-CHZ1SXxw.mjs → webhooks-BMBfTqwi.mjs} +58 -58
- package/package.json +11 -1
- /package/dist/cjs/{commands/templates → templates}/admin-ui/tsconfig.json +0 -0
- /package/dist/cjs/{commands/templates → templates}/admin-ui/web-src/.babelrc +0 -0
- /package/dist/cjs/{commands/templates → templates}/admin-ui/web-src/index.css +0 -0
- /package/dist/cjs/{commands/templates → templates}/admin-ui/web-src/index.html +0 -0
- /package/dist/cjs/{commands/templates → templates}/admin-ui/web-src/src/app.jsx +0 -0
- /package/dist/cjs/{commands/templates → templates}/admin-ui/web-src/src/components/welcome.jsx +0 -0
- /package/dist/cjs/{commands/templates → templates}/admin-ui/web-src/src/pages/main-page.jsx +0 -0
- /package/dist/cjs/{commands/templates → templates}/admin-ui/web-src-template.d.ts +0 -0
- /package/dist/cjs/{commands/templates → templates}/app-management/app-config.js.template +0 -0
- /package/dist/cjs/{commands/templates → templates}/app-management/association.js.template +0 -0
- /package/dist/cjs/{commands/templates → templates}/app-management/custom-scripts.js.template +0 -0
- /package/dist/cjs/{commands/templates → templates}/app-management/installation.js.template +0 -0
- /package/dist/cjs/{commands/templates → templates}/business-configuration/config.js.template +0 -0
- /package/dist/cjs/{commands/templates → templates}/business-configuration/scope-tree.js.template +0 -0
- /package/dist/cjs/{commands/templates → templates}/typescript/webpack-config.cjs +0 -0
- /package/dist/es/{commands/templates → templates}/admin-ui/tsconfig.json +0 -0
- /package/dist/es/{commands/templates → templates}/admin-ui/web-src/.babelrc +0 -0
- /package/dist/es/{commands/templates → templates}/admin-ui/web-src/index.css +0 -0
- /package/dist/es/{commands/templates → templates}/admin-ui/web-src/index.html +0 -0
- /package/dist/es/{commands/templates → templates}/admin-ui/web-src/src/app.jsx +0 -0
- /package/dist/es/{commands/templates → templates}/admin-ui/web-src/src/components/welcome.jsx +0 -0
- /package/dist/es/{commands/templates → templates}/admin-ui/web-src/src/pages/main-page.jsx +0 -0
- /package/dist/es/{commands/templates → templates}/admin-ui/web-src-template.d.ts +0 -0
- /package/dist/es/{commands/templates → templates}/app-management/app-config.js.template +0 -0
- /package/dist/es/{commands/templates → templates}/app-management/association.js.template +0 -0
- /package/dist/es/{commands/templates → templates}/app-management/custom-scripts.js.template +0 -0
- /package/dist/es/{commands/templates → templates}/app-management/installation.js.template +0 -0
- /package/dist/es/{commands/templates → templates}/business-configuration/config.js.template +0 -0
- /package/dist/es/{commands/templates → templates}/business-configuration/scope-tree.js.template +0 -0
- /package/dist/es/{commands/templates → templates}/typescript/webpack-config.cjs +0 -0
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
const require_management = require('./management-
|
|
15
|
+
const require_management = require('./management-DplOGozL.cjs');
|
|
16
16
|
let _adobe_aio_lib_state = require("@adobe/aio-lib-state");
|
|
17
17
|
let _adobe_aio_commerce_lib_core_headers = require("@adobe/aio-commerce-lib-core/headers");
|
|
18
18
|
let _adobe_aio_commerce_lib_core_responses = require("@adobe/aio-commerce-lib-core/responses");
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
16
|
-
const require_index_node = require('../index.node-
|
|
16
|
+
const require_index_node = require('../index.node-De5ENMF8.cjs');
|
|
17
|
+
const require_webhooks = require('../webhooks-zXjrg32x.cjs');
|
|
18
|
+
const require_validate = require('../validate-DkmBVWFX.cjs');
|
|
17
19
|
const require_define = require('../define-C-Xq1pCa.cjs');
|
|
18
|
-
const require_webhooks = require('../webhooks-Bcq2Qy7q.cjs');
|
|
19
|
-
const require_validate = require('../validate-CwWYtRsS.cjs');
|
|
20
20
|
|
|
21
21
|
exports.CommerceAppConfigSchemas = require_validate.CommerceAppConfigSchemas;
|
|
22
22
|
exports.defineConfig = require_define.defineConfig;
|
|
@@ -12,8 +12,6 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import util from "util";
|
|
16
|
-
|
|
17
15
|
//#region source/management/common/constants.ts
|
|
18
16
|
/**
|
|
19
17
|
* Timeout (in milliseconds) applied to Commerce HTTP clients used for
|
|
@@ -24,19 +22,9 @@ import util from "util";
|
|
|
24
22
|
const LIFECYCLE_HTTP_CLIENT_TIMEOUT_MS = 12e4;
|
|
25
23
|
|
|
26
24
|
//#endregion
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
*/
|
|
34
|
-
function inspect(obj, params = {}) {
|
|
35
|
-
return util.inspect(obj, {
|
|
36
|
-
depth: null,
|
|
37
|
-
...params
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
//#endregion
|
|
42
|
-
export { LIFECYCLE_HTTP_CLIENT_TIMEOUT_MS as n, inspect as t };
|
|
25
|
+
Object.defineProperty(exports, 'LIFECYCLE_HTTP_CLIENT_TIMEOUT_MS', {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return LIFECYCLE_HTTP_CLIENT_TIMEOUT_MS;
|
|
29
|
+
}
|
|
30
|
+
});
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
|
|
15
15
|
const require_rolldown_runtime = require('./rolldown-runtime-CDQd2xEI.cjs');
|
|
16
16
|
const require_error = require('./error-D-N0PKSl.cjs');
|
|
17
|
-
const require_validate = require('./validate-
|
|
17
|
+
const require_validate = require('./validate-DkmBVWFX.cjs');
|
|
18
18
|
let fs = require("fs");
|
|
19
|
-
let fs_promises = require("fs/promises");
|
|
20
19
|
let path = require("path");
|
|
20
|
+
let fs_promises = require("fs/promises");
|
|
21
21
|
let _npmcli_package_json = require("@npmcli/package-json");
|
|
22
22
|
_npmcli_package_json = require_rolldown_runtime.__toESM(_npmcli_package_json, 1);
|
|
23
23
|
let local_pkg = require("local-pkg");
|
|
@@ -16,16 +16,6 @@ const require_rolldown_runtime = require('./rolldown-runtime-CDQd2xEI.cjs');
|
|
|
16
16
|
let util = require("util");
|
|
17
17
|
util = require_rolldown_runtime.__toESM(util, 1);
|
|
18
18
|
|
|
19
|
-
//#region source/management/common/constants.ts
|
|
20
|
-
/**
|
|
21
|
-
* Timeout (in milliseconds) applied to Commerce HTTP clients used for
|
|
22
|
-
* long-running operations (e.g. lifecycle/installation steps, scope syncing).
|
|
23
|
-
* Commerce can take a while to respond to some of these, so we raise it well
|
|
24
|
-
* above the underlying client's default.
|
|
25
|
-
*/
|
|
26
|
-
const LIFECYCLE_HTTP_CLIENT_TIMEOUT_MS = 12e4;
|
|
27
|
-
|
|
28
|
-
//#endregion
|
|
29
19
|
//#region ../../packages-private/common-utils/source/logging.ts
|
|
30
20
|
/**
|
|
31
21
|
* Shorthand to inspect an object.
|
|
@@ -41,12 +31,6 @@ function inspect(obj, params = {}) {
|
|
|
41
31
|
}
|
|
42
32
|
|
|
43
33
|
//#endregion
|
|
44
|
-
Object.defineProperty(exports, 'LIFECYCLE_HTTP_CLIENT_TIMEOUT_MS', {
|
|
45
|
-
enumerable: true,
|
|
46
|
-
get: function () {
|
|
47
|
-
return LIFECYCLE_HTTP_CLIENT_TIMEOUT_MS;
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
34
|
Object.defineProperty(exports, 'inspect', {
|
|
51
35
|
enumerable: true,
|
|
52
36
|
get: function () {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
16
|
-
const require_management = require('../management-
|
|
16
|
+
const require_management = require('../management-DplOGozL.cjs');
|
|
17
17
|
|
|
18
18
|
exports.createInitialInstallationState = require_management.createInitialInstallationState;
|
|
19
19
|
exports.createInitialUninstallationState = require_management.createInitialUninstallationState;
|
|
@@ -14,22 +14,23 @@
|
|
|
14
14
|
|
|
15
15
|
const require_rolldown_runtime = require('./rolldown-runtime-CDQd2xEI.cjs');
|
|
16
16
|
const require_utils = require('./utils-CHfNw_aP.cjs');
|
|
17
|
-
const require_error = require('./error-D-N0PKSl.cjs');
|
|
18
17
|
const require_environment = require('./environment-B6533pAY.cjs');
|
|
19
|
-
const require_webhooks = require('./webhooks-
|
|
20
|
-
const
|
|
18
|
+
const require_webhooks = require('./webhooks-zXjrg32x.cjs');
|
|
19
|
+
const require_constants = require('./constants-tQUzmimN.cjs');
|
|
20
|
+
const require_logging = require('./logging-QTsrSwPc.cjs');
|
|
21
|
+
const require_error = require('./error-D-N0PKSl.cjs');
|
|
21
22
|
let _adobe_aio_commerce_lib_api = require("@adobe/aio-commerce-lib-api");
|
|
22
23
|
let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
|
|
23
24
|
let _adobe_aio_commerce_lib_auth = require("@adobe/aio-commerce-lib-auth");
|
|
24
25
|
let safe_stable_stringify = require("safe-stable-stringify");
|
|
25
26
|
safe_stable_stringify = require_rolldown_runtime.__toESM(safe_stable_stringify, 1);
|
|
26
|
-
let valibot = require("valibot");
|
|
27
|
-
valibot = require_rolldown_runtime.__toESM(valibot, 1);
|
|
28
|
-
let _adobe_aio_commerce_lib_admin_ui_api = require("@adobe/aio-commerce-lib-admin-ui/api");
|
|
29
27
|
let ky = require("ky");
|
|
30
28
|
let _adobe_aio_commerce_lib_api_utils = require("@adobe/aio-commerce-lib-api/utils");
|
|
29
|
+
let valibot = require("valibot");
|
|
30
|
+
valibot = require_rolldown_runtime.__toESM(valibot, 1);
|
|
31
31
|
let camelcase = require("camelcase");
|
|
32
32
|
camelcase = require_rolldown_runtime.__toESM(camelcase, 1);
|
|
33
|
+
let _adobe_aio_commerce_lib_admin_ui_api = require("@adobe/aio-commerce-lib-admin-ui/api");
|
|
33
34
|
let _adobe_aio_commerce_lib_events_commerce = require("@adobe/aio-commerce-lib-events/commerce");
|
|
34
35
|
let _adobe_aio_commerce_lib_events_io_events = require("@adobe/aio-commerce-lib-events/io-events");
|
|
35
36
|
let _adobe_aio_commerce_lib_webhooks_api = require("@adobe/aio-commerce-lib-webhooks/api");
|
|
@@ -1155,7 +1156,7 @@ function planAdminUi(input, _context) {
|
|
|
1155
1156
|
function createAdminUiClient(params) {
|
|
1156
1157
|
const commerceClientParams = (0, _adobe_aio_commerce_lib_api.resolveCommerceHttpClientParams)(params, { tryForwardAuthProvider: true });
|
|
1157
1158
|
commerceClientParams.fetchOptions ??= {};
|
|
1158
|
-
commerceClientParams.fetchOptions.timeout =
|
|
1159
|
+
commerceClientParams.fetchOptions.timeout = require_constants.LIFECYCLE_HTTP_CLIENT_TIMEOUT_MS;
|
|
1159
1160
|
return (0, _adobe_aio_commerce_lib_admin_ui_api.createAdminUiApiClient)(commerceClientParams);
|
|
1160
1161
|
}
|
|
1161
1162
|
/** Creates the Admin UI step context with a lazy-initialized API client. */
|
|
@@ -2443,7 +2444,7 @@ async function removeCommerceEvents(config, context) {
|
|
|
2443
2444
|
function createCommerceEventsApiClient(params) {
|
|
2444
2445
|
const commerceClientParams = (0, _adobe_aio_commerce_lib_api.resolveCommerceHttpClientParams)(params, { tryForwardAuthProvider: true });
|
|
2445
2446
|
commerceClientParams.fetchOptions ??= {};
|
|
2446
|
-
commerceClientParams.fetchOptions.timeout =
|
|
2447
|
+
commerceClientParams.fetchOptions.timeout = require_constants.LIFECYCLE_HTTP_CLIENT_TIMEOUT_MS;
|
|
2447
2448
|
return (0, _adobe_aio_commerce_lib_events_commerce.createCustomCommerceEventsApiClient)(commerceClientParams, {
|
|
2448
2449
|
createEventProvider: _adobe_aio_commerce_lib_events_commerce.createEventProvider,
|
|
2449
2450
|
createEventSubscription: _adobe_aio_commerce_lib_events_commerce.createEventSubscription,
|
|
@@ -2462,7 +2463,7 @@ function createCommerceEventsApiClient(params) {
|
|
|
2462
2463
|
function createIoEventsApiClient(params) {
|
|
2463
2464
|
const ioEventsClientParams = (0, _adobe_aio_commerce_lib_api.resolveIoEventsHttpClientParams)(params);
|
|
2464
2465
|
ioEventsClientParams.fetchOptions ??= {};
|
|
2465
|
-
ioEventsClientParams.fetchOptions.timeout =
|
|
2466
|
+
ioEventsClientParams.fetchOptions.timeout = require_constants.LIFECYCLE_HTTP_CLIENT_TIMEOUT_MS;
|
|
2466
2467
|
return (0, _adobe_aio_commerce_lib_events_io_events.createCustomAdobeIoEventsApiClient)(ioEventsClientParams, {
|
|
2467
2468
|
createEventMetadataForProvider: _adobe_aio_commerce_lib_events_io_events.createEventMetadataForProvider,
|
|
2468
2469
|
createEventProvider: _adobe_aio_commerce_lib_events_io_events.createEventProvider,
|
|
@@ -2866,7 +2867,7 @@ function createSubscribeParams(webhook, requiresAdobeAuth, params) {
|
|
|
2866
2867
|
function createCommerceWebhooksApiClient(params) {
|
|
2867
2868
|
const commerceClientParams = (0, _adobe_aio_commerce_lib_api.resolveCommerceHttpClientParams)(params, { tryForwardAuthProvider: true });
|
|
2868
2869
|
commerceClientParams.fetchOptions ??= {};
|
|
2869
|
-
commerceClientParams.fetchOptions.timeout =
|
|
2870
|
+
commerceClientParams.fetchOptions.timeout = require_constants.LIFECYCLE_HTTP_CLIENT_TIMEOUT_MS;
|
|
2870
2871
|
return (0, _adobe_aio_commerce_lib_webhooks_api.createCustomCommerceWebhooksApiClient)(commerceClientParams, {
|
|
2871
2872
|
getWebhookList: _adobe_aio_commerce_lib_webhooks_api.getWebhookList,
|
|
2872
2873
|
subscribeWebhook: _adobe_aio_commerce_lib_webhooks_api.subscribeWebhook,
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
const require_rolldown_runtime = require('./rolldown-runtime-CDQd2xEI.cjs');
|
|
16
16
|
const require_schemas = require('./schemas-3e49M8zz.cjs');
|
|
17
|
-
const require_webhooks = require('./webhooks-
|
|
17
|
+
const require_webhooks = require('./webhooks-zXjrg32x.cjs');
|
|
18
18
|
let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
|
|
19
19
|
let _adobe_aio_commerce_lib_core_error = require("@adobe/aio-commerce-lib-core/error");
|
|
20
20
|
let valibot = require("valibot");
|