@adobe/aio-commerce-lib-app 2.2.0-beta-20261112165514 → 2.2.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/CHANGELOG.md +8 -8
- package/dist/cjs/actions/app-config/index.cjs +3 -3
- package/dist/cjs/actions/app-config/index.d.cts +1 -1
- 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 +1 -1
- package/dist/cjs/actions/installation/index.d.cts +2 -2
- package/dist/cjs/actions/scope-tree/index.cjs +1 -1
- package/dist/cjs/{app-C00JsDZx.d.cts → app-B3bAEor-.d.cts} +4 -4
- package/dist/cjs/commands/index.cjs +3 -3
- package/dist/cjs/config/index.browser.d.cts +1 -1
- package/dist/cjs/config/index.node.d.cts +5 -5
- package/dist/{es/define-DPMjBGtT.d.mts → cjs/define-eBMdGAq6.d.cts} +1 -1
- package/dist/cjs/{index-DC3UlGvk.d.cts → index-BEeludy0.d.cts} +2 -2
- package/dist/cjs/management/index.d.cts +1 -1
- package/dist/cjs/{openapi-_L2f6aNr.cjs → openapi-DghfuM8S.cjs} +1 -1
- package/dist/cjs/{version-EUZj69Hs.cjs → version-5MonNzl5.cjs} +1 -1
- package/dist/cjs/{webhooks-DnXkC-BY.d.cts → webhooks-DNLuuv9_.d.cts} +3 -3
- package/dist/es/actions/app-config/index.d.mts +1 -1
- 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.d.mts +2 -2
- package/dist/es/actions/installation/index.mjs +1 -1
- package/dist/es/actions/scope-tree/index.mjs +1 -1
- package/dist/es/{app-C00JsDZx.d.mts → app-B3bAEor-.d.mts} +4 -4
- package/dist/es/commands/index.mjs +3 -3
- package/dist/es/config/index.browser.d.mts +1 -1
- package/dist/es/config/index.node.d.mts +5 -5
- package/dist/{cjs/define-SXVxjhxH.d.cts → es/define-BdXyLAwb.d.mts} +1 -1
- package/dist/es/{index-CeNifZRG.d.mts → index-DE2KVXfH.d.mts} +2 -2
- package/dist/es/management/index.d.mts +1 -1
- package/dist/es/{openapi-CMJk1HgS.mjs → openapi-BvPVTUMt.mjs} +1 -1
- package/dist/es/{version-DuVu4WiW.mjs → version-BWgrh_QM.mjs} +1 -1
- package/dist/es/{webhooks-IfWxjtOP.d.mts → webhooks-DgaLfP36.d.mts} +3 -3
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @adobe/aio-commerce-lib-app
|
|
2
2
|
|
|
3
|
-
## 2.2.0
|
|
3
|
+
## 2.2.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
|
|
27
27
|
- [#803](https://github.com/adobe/aio-commerce-sdk/pull/803) [`e56dd61`](https://github.com/adobe/aio-commerce-sdk/commit/e56dd614586f4a335d0fbc373a5cd2e07fa3db48) Thanks [@iivvaannxx](https://github.com/iivvaannxx)! - Fix `publishEvent` using a stale or missing provider after an app is uninstalled and reinstalled. The uninstall now removes the stored event data of a provider that was already deleted, and lists the removal in the plan. If it fails, the uninstall fails and can be retried. An install or upgrade that removes a duplicate provider no longer deletes the stored data of the provider it keeps.
|
|
28
28
|
- Updated dependencies [[`32988bb`](https://github.com/adobe/aio-commerce-sdk/commit/32988bbda397d9a34f788aee721f4dca9abc362a), [`a03c546`](https://github.com/adobe/aio-commerce-sdk/commit/a03c546f8b6a54c8c1aa1352d89b6a0efef00d9e), [`f124cf4`](https://github.com/adobe/aio-commerce-sdk/commit/f124cf49208d930ca0f151e948a7597317365697), [`ca065be`](https://github.com/adobe/aio-commerce-sdk/commit/ca065bec387cf90ce21309420851bef408ca194e), [`9b6e61c`](https://github.com/adobe/aio-commerce-sdk/commit/9b6e61ceed9c45ae415c37b401272f09d4c75759), [`32988bb`](https://github.com/adobe/aio-commerce-sdk/commit/32988bbda397d9a34f788aee721f4dca9abc362a), [`a066916`](https://github.com/adobe/aio-commerce-sdk/commit/a066916918f9d3ff66affc7783c743c34a02f263), [`e56dd61`](https://github.com/adobe/aio-commerce-sdk/commit/e56dd614586f4a335d0fbc373a5cd2e07fa3db48), [`6dbdf71`](https://github.com/adobe/aio-commerce-sdk/commit/6dbdf711a6fdf6f38794dc74a0a9e16146c5d771)]:
|
|
29
|
-
- @adobe/aio-commerce-lib-admin-ui@1.3.0
|
|
30
|
-
- @adobe/aio-commerce-lib-api@1.5.0
|
|
31
|
-
- @adobe/aio-commerce-lib-auth@1.3.0
|
|
32
|
-
- @adobe/aio-commerce-lib-config@1.9.0
|
|
33
|
-
- @adobe/aio-commerce-lib-core@1.4.0
|
|
34
|
-
- @adobe/aio-commerce-lib-events@1.6.0
|
|
35
|
-
- @adobe/aio-commerce-lib-webhooks@1.3.0
|
|
29
|
+
- @adobe/aio-commerce-lib-admin-ui@1.3.0
|
|
30
|
+
- @adobe/aio-commerce-lib-api@1.5.0
|
|
31
|
+
- @adobe/aio-commerce-lib-auth@1.3.0
|
|
32
|
+
- @adobe/aio-commerce-lib-config@1.9.0
|
|
33
|
+
- @adobe/aio-commerce-lib-core@1.4.0
|
|
34
|
+
- @adobe/aio-commerce-lib-events@1.6.0
|
|
35
|
+
- @adobe/aio-commerce-lib-webhooks@1.3.0
|
|
36
36
|
|
|
37
37
|
## 2.1.0
|
|
38
38
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
16
16
|
const require_rolldown_runtime = require("../../rolldown-runtime-CoOt0iuZ.cjs");
|
|
17
|
-
const require_version = require("../../version-
|
|
17
|
+
const require_version = require("../../version-5MonNzl5.cjs");
|
|
18
18
|
const require_environment = require("../../environment-CW6M76gS.cjs");
|
|
19
19
|
const require_validate = require("../../validate-BC3rnRLc.cjs");
|
|
20
20
|
let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
|
|
@@ -29,7 +29,7 @@ let crypto = require("crypto");
|
|
|
29
29
|
* Loads the committed OpenAPI spec via dynamic import so it
|
|
30
30
|
* lands in its own chunk and is not parsed on every cold start.
|
|
31
31
|
*/
|
|
32
|
-
const importOpenApi = () => Promise.resolve().then(() => require("../../openapi-
|
|
32
|
+
const importOpenApi = () => Promise.resolve().then(() => require("../../openapi-DghfuM8S.cjs"));
|
|
33
33
|
/** Matches component schema `$ref` strings, capturing the schema name. */
|
|
34
34
|
const SCHEMA_REF_PATTERN = /"#\/components\/schemas\/(?<schema>\w+)"/gu;
|
|
35
35
|
/**
|
|
@@ -80,7 +80,7 @@ function pruneUnusedTags(spec) {
|
|
|
80
80
|
* @param domains - The active config domains.
|
|
81
81
|
*/
|
|
82
82
|
function getOpenApiCacheKey(domains) {
|
|
83
|
-
const input = `2.2.0
|
|
83
|
+
const input = `2.2.0:${[...domains].sort().join(",")}:4.2.0`;
|
|
84
84
|
return (0, crypto.createHash)("sha256").update(input).digest("hex").slice(0, 8);
|
|
85
85
|
}
|
|
86
86
|
/** Returns the server URL to be set in the OpenAPI spec, based on the current namespace. */
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import "../../index-vAue-u_y.cjs";
|
|
16
|
-
import { n as CommerceAppConfig } from "../../app-
|
|
16
|
+
import { n as CommerceAppConfig } from "../../app-B3bAEor-.cjs";
|
|
17
17
|
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
18
18
|
/** The arguments required to create the runtime action for the app-config action. */
|
|
19
19
|
type RuntimeActionFactoryArgs = {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
16
16
|
const require_rolldown_runtime = require("../../rolldown-runtime-CoOt0iuZ.cjs");
|
|
17
|
-
const require_version = require("../../version-
|
|
17
|
+
const require_version = require("../../version-5MonNzl5.cjs");
|
|
18
18
|
const require_repository = require("../../repository-C3nn0Mon.cjs");
|
|
19
19
|
let _adobe_aio_commerce_lib_auth = require("@adobe/aio-commerce-lib-auth");
|
|
20
20
|
let _adobe_aio_commerce_lib_core_commerce = require("@adobe/aio-commerce-lib-core/commerce");
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
16
16
|
const require_rolldown_runtime = require("../../rolldown-runtime-CoOt0iuZ.cjs");
|
|
17
|
-
const require_version = require("../../version-
|
|
17
|
+
const require_version = require("../../version-5MonNzl5.cjs");
|
|
18
18
|
const require_environment = require("../../environment-CW6M76gS.cjs");
|
|
19
19
|
const require_schemas = require("../../schemas-B6ITl1bG.cjs");
|
|
20
20
|
let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
16
16
|
const require_rolldown_runtime = require("../../rolldown-runtime-CoOt0iuZ.cjs");
|
|
17
|
-
const require_version = require("../../version-
|
|
17
|
+
const require_version = require("../../version-5MonNzl5.cjs");
|
|
18
18
|
const require_schemas = require("../../schemas-B6ITl1bG.cjs");
|
|
19
19
|
const require_management = require("../../management-5Et1mEUp.cjs");
|
|
20
20
|
const require_repository = require("../../repository-C3nn0Mon.cjs");
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import "../../index-vAue-u_y.cjs";
|
|
16
|
-
import { it as LifecycleContext } from "../../index-
|
|
17
|
-
import { n as CommerceAppConfig, r as CommerceAppConfigOutputModel } from "../../app-
|
|
16
|
+
import { it as LifecycleContext } from "../../index-BEeludy0.cjs";
|
|
17
|
+
import { n as CommerceAppConfig, r as CommerceAppConfigOutputModel } from "../../app-B3bAEor-.cjs";
|
|
18
18
|
import "../../types-DslZGym8.cjs";
|
|
19
19
|
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
20
20
|
/** Loads generated custom installation script modules. */
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
16
16
|
const require_rolldown_runtime = require("../../rolldown-runtime-CoOt0iuZ.cjs");
|
|
17
|
-
const require_version = require("../../version-
|
|
17
|
+
const require_version = require("../../version-5MonNzl5.cjs");
|
|
18
18
|
const require_logging = require("../../logging-Emi7P923.cjs");
|
|
19
19
|
const require_constants = require("../../constants-CgeVvu6f.cjs");
|
|
20
20
|
const require_schemas = require("../../schemas-B6ITl1bG.cjs");
|
|
@@ -1573,7 +1573,7 @@ declare const CommerceAppConfigSchemas: {
|
|
|
1573
1573
|
value: string;
|
|
1574
1574
|
}[] | undefined;
|
|
1575
1575
|
hook_name: string;
|
|
1576
|
-
method: "
|
|
1576
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
1577
1577
|
priority?: number | undefined;
|
|
1578
1578
|
required?: boolean | undefined;
|
|
1579
1579
|
rules?: {
|
|
@@ -1606,7 +1606,7 @@ declare const CommerceAppConfigSchemas: {
|
|
|
1606
1606
|
value: string;
|
|
1607
1607
|
}[] | undefined;
|
|
1608
1608
|
hook_name: string;
|
|
1609
|
-
method: "
|
|
1609
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
1610
1610
|
priority?: number | undefined;
|
|
1611
1611
|
required?: boolean | undefined;
|
|
1612
1612
|
rules?: {
|
|
@@ -2852,7 +2852,7 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
|
|
|
2852
2852
|
value: string;
|
|
2853
2853
|
}[] | undefined;
|
|
2854
2854
|
hook_name: string;
|
|
2855
|
-
method: "
|
|
2855
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
2856
2856
|
priority?: number | undefined;
|
|
2857
2857
|
required?: boolean | undefined;
|
|
2858
2858
|
rules?: {
|
|
@@ -2885,7 +2885,7 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
|
|
|
2885
2885
|
value: string;
|
|
2886
2886
|
}[] | undefined;
|
|
2887
2887
|
hook_name: string;
|
|
2888
|
-
method: "
|
|
2888
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
2889
2889
|
priority?: number | undefined;
|
|
2890
2890
|
required?: boolean | undefined;
|
|
2891
2891
|
rules?: {
|
|
@@ -367,7 +367,7 @@ const LEADING_DOT_SLASH_PATTERN$1 = /^\.\//u;
|
|
|
367
367
|
const WEB_SOURCE_DEPENDENCIES = [
|
|
368
368
|
{
|
|
369
369
|
name: "@adobe/aio-commerce-lib-admin-ui",
|
|
370
|
-
version: "^1.3.0
|
|
370
|
+
version: "^1.3.0"
|
|
371
371
|
},
|
|
372
372
|
{
|
|
373
373
|
name: "react",
|
|
@@ -3044,7 +3044,7 @@ async function ensureAppConfig(domains, config, projectRoot) {
|
|
|
3044
3044
|
*/
|
|
3045
3045
|
function installDependencies(packageManager, domains, projectRoot) {
|
|
3046
3046
|
const packages = [];
|
|
3047
|
-
if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.9.0
|
|
3047
|
+
if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.9.0`);
|
|
3048
3048
|
if (packages.length === 0) {
|
|
3049
3049
|
consola.consola.info("No additional domain dependencies to install.");
|
|
3050
3050
|
return;
|
|
@@ -3079,7 +3079,7 @@ async function ensureInstallYaml(domains, config, projectRoot) {
|
|
|
3079
3079
|
}
|
|
3080
3080
|
|
|
3081
3081
|
// source/commands/init/main.ts
|
|
3082
|
-
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.2.0
|
|
3082
|
+
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.2.0`];
|
|
3083
3083
|
/**
|
|
3084
3084
|
* Initializes a Commerce App project.
|
|
3085
3085
|
* @param flags - Non-interactive initialization answers.
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/** biome-ignore-all lint/performance/noBarrelFile: This is the browser-compatible public API for the config entrypoint */
|
|
16
|
-
import { t as defineConfig } from "../define-
|
|
16
|
+
import { t as defineConfig } from "../define-eBMdGAq6.cjs";
|
|
17
17
|
export { defineConfig };
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
* This module exports shared config utilities for the AIO Commerce SDK.
|
|
18
18
|
* @packageDocumentation
|
|
19
19
|
*/
|
|
20
|
-
import { t as defineConfig } from "../define-
|
|
21
|
-
import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-
|
|
22
|
-
import { A as AdminUiConfig, B as OrderViewButton, C as ExternalEventSource, D as hasEventing, E as hasCommerceEvents, F as InvoiceViewButton, G as hasBackendUiV2Components, H as ViewMassAction, I as MassAction, L as Menu, M as CreditMemoViewButton, N as GridColumn, O as hasExternalEvents, P as GridColumns, R as NativeUiReplacedPage, S as ExternalEvent, T as ExternalEventsConfig, U as WorkerMassAction, V as RmaViewButton, W as hasAdminUi, _ as CommerceEventsConfig, a as WebhookRule, b as EventingSchema, c as WebhooksSchema, d as hasCustomInstallation, f as hasCustomInstallationSteps, g as CommerceEventSourceSchema, h as CommerceEventSource, i as WebhookHeader, j as AdminUiConfiguration, l as hasWebhooks, m as CommerceEvent, n as WebhookEntry, o as WebhooksConfig, p as AppEvent, r as WebhookField, s as WebhooksConfiguration, t as WebhookDefinition, v as EventProvider, w as ExternalEventSourceSchema, x as EventsConfig, y as EventingConfiguration, z as Notifications } from "../webhooks-
|
|
20
|
+
import { t as defineConfig } from "../define-eBMdGAq6.cjs";
|
|
21
|
+
import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-B3bAEor-.cjs";
|
|
22
|
+
import { A as AdminUiConfig, B as OrderViewButton, C as ExternalEventSource, D as hasEventing, E as hasCommerceEvents, F as InvoiceViewButton, G as hasBackendUiV2Components, H as ViewMassAction, I as MassAction, L as Menu, M as CreditMemoViewButton, N as GridColumn, O as hasExternalEvents, P as GridColumns, R as NativeUiReplacedPage, S as ExternalEvent, T as ExternalEventsConfig, U as WorkerMassAction, V as RmaViewButton, W as hasAdminUi, _ as CommerceEventsConfig, a as WebhookRule, b as EventingSchema, c as WebhooksSchema, d as hasCustomInstallation, f as hasCustomInstallationSteps, g as CommerceEventSourceSchema, h as CommerceEventSource, i as WebhookHeader, j as AdminUiConfiguration, l as hasWebhooks, m as CommerceEvent, n as WebhookEntry, o as WebhooksConfig, p as AppEvent, r as WebhookField, s as WebhooksConfiguration, t as WebhookDefinition, v as EventProvider, w as ExternalEventSourceSchema, x as EventsConfig, y as EventingConfiguration, z as Notifications } from "../webhooks-DNLuuv9_.cjs";
|
|
23
23
|
import * as v from "valibot";
|
|
24
24
|
import { Get } from "type-fest";
|
|
25
25
|
/**
|
|
@@ -636,7 +636,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
|
|
|
636
636
|
value: string;
|
|
637
637
|
}[] | undefined;
|
|
638
638
|
hook_name: string;
|
|
639
|
-
method: "
|
|
639
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
640
640
|
priority?: number | undefined;
|
|
641
641
|
required?: boolean | undefined;
|
|
642
642
|
rules?: {
|
|
@@ -669,7 +669,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
|
|
|
669
669
|
value: string;
|
|
670
670
|
}[] | undefined;
|
|
671
671
|
hook_name: string;
|
|
672
|
-
method: "
|
|
672
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
673
673
|
priority?: number | undefined;
|
|
674
674
|
required?: boolean | undefined;
|
|
675
675
|
rules?: {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { n as CommerceAppConfig } from "./app-
|
|
15
|
+
import { n as CommerceAppConfig } from "./app-B3bAEor-.cjs";
|
|
16
16
|
/**
|
|
17
17
|
* Helper to type-safely define the app config.
|
|
18
18
|
* @param config - The app config to define.
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { r as CommerceAppConfigOutputModel } from "./app-
|
|
16
|
-
import { k as AdminUiComponentConfig, n as WebhookEntry, p as AppEvent, u as CustomInstallationStep } from "./webhooks-
|
|
15
|
+
import { r as CommerceAppConfigOutputModel } from "./app-B3bAEor-.cjs";
|
|
16
|
+
import { k as AdminUiComponentConfig, n as WebhookEntry, p as AppEvent, u as CustomInstallationStep } from "./webhooks-DNLuuv9_.cjs";
|
|
17
17
|
import * as v from "valibot";
|
|
18
18
|
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
19
19
|
import AioLogger from "@adobe/aio-lib-core-logging";
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
* This module exports shared application management utilities for the AIO Commerce SDK.
|
|
18
18
|
* @packageDocumentation
|
|
19
19
|
*/
|
|
20
|
-
import { $ as BranchStepOptions, A as createInitialState, B as InProgressWorkflowState, C as defineCustomInstallationStep, D as executePlannedWorkflow, E as createInitialPlanExecutionState, F as StepStartedEvent, G as WorkflowRunState, H as SucceededWorkflowState, I as StepSucceededEvent, J as isFailedState, K as WorkflowStateMetadata, L as WorkflowHooks, M as executeWorkflow, N as StepEvent, O as ValidateStepTreeOptions, P as StepFailedEvent, Q as BranchStep, R as ExecutionStatus, S as CustomInstallationStepHandler, T as planWorkflow, U as WorkflowData, V as StepStatus, W as WorkflowError, X as isSucceededState, Y as isInProgressState, Z as AnyStep, _ as createInitialUninstallationState, _t as ValidationIssueSeverity, a as InstallationError, at as Step, b as runValidation, c as InstallationStatus, ct as StepMetaInfo, d as CreateInitialUninstallationStateOptions, dt as defineBranchStep, et as ExecutionContext, f as InstallationHooks, ft as defineLeafStep, g as createInitialInstallationState, gt as ValidationIssue, h as RunValidationOptions, ht as StepValidationResult, i as InstallationData, it as LifecycleContext, j as executeUninstallWorkflow, k as validateStepTree, l as SucceededInstallationState, lt as ValidationContext, m as RunUninstallationOptions, mt as isLeafStep, n as InProgressInstallationState, nt as LeafStep, o as InstallationRetryMetadata, ot as StepContextFactory, p as RunInstallationOptions, pt as isBranchStep, q as isCompletedState, r as InstallationContext, rt as LeafStepOptions, s as InstallationState, st as StepMeta, t as FailedInstallationState, tt as InferStepOutput, u as CreateInitialInstallationStateOptions, ut as ValidationExecutionContext, v as runInstallation, vt as ValidationResult, w as createRetryState, x as CustomInstallationStepDefinition, y as runUninstallation, yt as ValidationSummary, z as FailedWorkflowState } from "../index-
|
|
20
|
+
import { $ as BranchStepOptions, A as createInitialState, B as InProgressWorkflowState, C as defineCustomInstallationStep, D as executePlannedWorkflow, E as createInitialPlanExecutionState, F as StepStartedEvent, G as WorkflowRunState, H as SucceededWorkflowState, I as StepSucceededEvent, J as isFailedState, K as WorkflowStateMetadata, L as WorkflowHooks, M as executeWorkflow, N as StepEvent, O as ValidateStepTreeOptions, P as StepFailedEvent, Q as BranchStep, R as ExecutionStatus, S as CustomInstallationStepHandler, T as planWorkflow, U as WorkflowData, V as StepStatus, W as WorkflowError, X as isSucceededState, Y as isInProgressState, Z as AnyStep, _ as createInitialUninstallationState, _t as ValidationIssueSeverity, a as InstallationError, at as Step, b as runValidation, c as InstallationStatus, ct as StepMetaInfo, d as CreateInitialUninstallationStateOptions, dt as defineBranchStep, et as ExecutionContext, f as InstallationHooks, ft as defineLeafStep, g as createInitialInstallationState, gt as ValidationIssue, h as RunValidationOptions, ht as StepValidationResult, i as InstallationData, it as LifecycleContext, j as executeUninstallWorkflow, k as validateStepTree, l as SucceededInstallationState, lt as ValidationContext, m as RunUninstallationOptions, mt as isLeafStep, n as InProgressInstallationState, nt as LeafStep, o as InstallationRetryMetadata, ot as StepContextFactory, p as RunInstallationOptions, pt as isBranchStep, q as isCompletedState, r as InstallationContext, rt as LeafStepOptions, s as InstallationState, st as StepMeta, t as FailedInstallationState, tt as InferStepOutput, u as CreateInitialInstallationStateOptions, ut as ValidationExecutionContext, v as runInstallation, vt as ValidationResult, w as createRetryState, x as CustomInstallationStepDefinition, y as runUninstallation, yt as ValidationSummary, z as FailedWorkflowState } from "../index-BEeludy0.cjs";
|
|
21
21
|
export { type AnyStep, type BranchStep, type BranchStepOptions, type CreateInitialInstallationStateOptions, type CreateInitialUninstallationStateOptions, type CustomInstallationStepDefinition, type CustomInstallationStepHandler, type ExecutionContext, type ExecutionStatus, type FailedInstallationState, type FailedWorkflowState, type InProgressInstallationState, type InProgressWorkflowState, type InferStepOutput, type InstallationContext, type InstallationData, type InstallationError, type InstallationHooks, type InstallationRetryMetadata, type InstallationState, type InstallationStatus, type LeafStep, type LeafStepOptions, type LifecycleContext, type RunInstallationOptions, type RunUninstallationOptions, type RunValidationOptions, type Step, type StepContextFactory, type StepEvent, type StepFailedEvent, type StepMeta, type StepMetaInfo, type StepStartedEvent, type StepStatus, type StepSucceededEvent, type StepValidationResult, type SucceededInstallationState, type SucceededWorkflowState, type ValidateStepTreeOptions, type ValidationContext, type ValidationExecutionContext, type ValidationIssue, type ValidationIssueSeverity, type ValidationResult, type ValidationSummary, type WorkflowData, type WorkflowError, type WorkflowHooks, type WorkflowRunState, type WorkflowStateMetadata, createInitialInstallationState, type createInitialPlanExecutionState, type createInitialState, createInitialUninstallationState, type createRetryState, type defineBranchStep, defineCustomInstallationStep, type defineLeafStep, type executePlannedWorkflow, type executeUninstallWorkflow, type executeWorkflow, type isBranchStep, isCompletedState, isFailedState, isInProgressState, type isLeafStep, isSucceededState, type planWorkflow, runInstallation, runUninstallation, runValidation, type validateStepTree };
|
|
@@ -460,7 +460,7 @@ const UNKNOWN_VERSION = "unknown";
|
|
|
460
460
|
* in the `package.json` of the copy of lib-config that lib-app loads, which the app's bundler
|
|
461
461
|
* resolves when it builds the action.
|
|
462
462
|
*/
|
|
463
|
-
const SDK_LIB_VERSIONS = [["lib-app", "2.2.0
|
|
463
|
+
const SDK_LIB_VERSIONS = [["lib-app", "2.2.0"], ["lib-config", _adobe_aio_commerce_lib_config_package_json.default.version ?? UNKNOWN_VERSION]].map(([name, version]) => `${name}="${version}"`).join(", ");
|
|
464
464
|
/** Headers every app-management router adds to its responses. */
|
|
465
465
|
const SDK_LIB_VERSIONS_HEADERS = { [SDK_LIB_VERSIONS_HEADER]: SDK_LIB_VERSIONS };
|
|
466
466
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { r as CommerceAppConfigOutputModel, t as AnyCommerceAppConfig } from "./app-
|
|
15
|
+
import { r as CommerceAppConfigOutputModel, t as AnyCommerceAppConfig } from "./app-B3bAEor-.cjs";
|
|
16
16
|
import * as v from "valibot";
|
|
17
17
|
declare const NotificationsSchema: v.ObjectSchema<{
|
|
18
18
|
readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
|
|
@@ -1740,7 +1740,7 @@ declare const WebhooksSchema: v.OptionalSchema<v.SchemaWithPipe<readonly [v.Arra
|
|
|
1740
1740
|
value: string;
|
|
1741
1741
|
}[] | undefined;
|
|
1742
1742
|
hook_name: string;
|
|
1743
|
-
method: "
|
|
1743
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
1744
1744
|
priority?: number | undefined;
|
|
1745
1745
|
required?: boolean | undefined;
|
|
1746
1746
|
rules?: {
|
|
@@ -1773,7 +1773,7 @@ declare const WebhooksSchema: v.OptionalSchema<v.SchemaWithPipe<readonly [v.Arra
|
|
|
1773
1773
|
value: string;
|
|
1774
1774
|
}[] | undefined;
|
|
1775
1775
|
hook_name: string;
|
|
1776
|
-
method: "
|
|
1776
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
1777
1777
|
priority?: number | undefined;
|
|
1778
1778
|
required?: boolean | undefined;
|
|
1779
1779
|
rules?: {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import "../../index-DUJtT78x.mjs";
|
|
16
|
-
import { n as CommerceAppConfig } from "../../app-
|
|
16
|
+
import { n as CommerceAppConfig } from "../../app-B3bAEor-.mjs";
|
|
17
17
|
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
18
18
|
/** The arguments required to create the runtime action for the app-config action. */
|
|
19
19
|
type RuntimeActionFactoryArgs = {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-
|
|
15
|
+
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-BWgrh_QM.mjs";
|
|
16
16
|
import { n as filterAppConfigByEnv } from "../../environment-DUhU0_9z.mjs";
|
|
17
17
|
import { i as requiresInstallationFromDomains, o as getConfigDomains, t as validateCommerceAppConfig, u as hasBusinessConfigSchema } from "../../validate-xS9Dc-4m.mjs";
|
|
18
18
|
import { resolveBusinessConfigSchema } from "@adobe/aio-commerce-lib-config";
|
|
@@ -26,7 +26,7 @@ import { createHash } from "crypto";
|
|
|
26
26
|
* Loads the committed OpenAPI spec via dynamic import so it
|
|
27
27
|
* lands in its own chunk and is not parsed on every cold start.
|
|
28
28
|
*/
|
|
29
|
-
const importOpenApi = () => import("../../openapi-
|
|
29
|
+
const importOpenApi = () => import("../../openapi-BvPVTUMt.mjs");
|
|
30
30
|
/** Matches component schema `$ref` strings, capturing the schema name. */
|
|
31
31
|
const SCHEMA_REF_PATTERN = /"#\/components\/schemas\/(?<schema>\w+)"/gu;
|
|
32
32
|
/**
|
|
@@ -77,7 +77,7 @@ function pruneUnusedTags(spec) {
|
|
|
77
77
|
* @param domains - The active config domains.
|
|
78
78
|
*/
|
|
79
79
|
function getOpenApiCacheKey(domains) {
|
|
80
|
-
const input = `2.2.0
|
|
80
|
+
const input = `2.2.0:${[...domains].sort().join(",")}:4.2.0`;
|
|
81
81
|
return createHash("sha256").update(input).digest("hex").slice(0, 8);
|
|
82
82
|
}
|
|
83
83
|
/** Returns the server URL to be set in the OpenAPI spec, based on the current namespace. */
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-
|
|
15
|
+
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-BWgrh_QM.mjs";
|
|
16
16
|
import { r as setAssociationData, t as clearAssociationData } from "../../repository-BVBp61y9.mjs";
|
|
17
17
|
import { resolveImsAuthParams } from "@adobe/aio-commerce-lib-auth";
|
|
18
18
|
import { CommerceEnvSchema } from "@adobe/aio-commerce-lib-core/commerce";
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-
|
|
15
|
+
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-BWgrh_QM.mjs";
|
|
16
16
|
import { r as filterSchemaByEnv } from "../../environment-DUhU0_9z.mjs";
|
|
17
17
|
import { r as nonEmptyStringValueSchema } from "../../schemas-DYMNbFdX.mjs";
|
|
18
18
|
import { byScopeId, getConfiguration, initialize, setConfiguration } from "@adobe/aio-commerce-lib-config";
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import "../../index-DUJtT78x.mjs";
|
|
16
|
-
import { G as LifecycleContext } from "../../index-
|
|
17
|
-
import { n as CommerceAppConfig, r as CommerceAppConfigOutputModel } from "../../app-
|
|
16
|
+
import { G as LifecycleContext } from "../../index-DE2KVXfH.mjs";
|
|
17
|
+
import { n as CommerceAppConfig, r as CommerceAppConfigOutputModel } from "../../app-B3bAEor-.mjs";
|
|
18
18
|
import "../../types-DslZGym8.mjs";
|
|
19
19
|
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
20
20
|
/** Loads generated custom installation script modules. */
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-
|
|
15
|
+
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-BWgrh_QM.mjs";
|
|
16
16
|
import { r as nonEmptyStringValueSchema } from "../../schemas-DYMNbFdX.mjs";
|
|
17
17
|
import { C as isLeafStep, S as isBranchStep, _ as getAtPath, b as pathsEqual, c as getCustomScriptStepName, d as isInProgressState, f as isSucceededState, g as createWorkflowError, h as createSucceededState, l as isCompletedState, m as createFailedState, o as createRootInstallationStep, p as toValidationResult, v as isStepConfigured, w as callHook, x as setAtPath, y as nowIsoString } from "../../management-BAQ64OyR.mjs";
|
|
18
18
|
import { n as getAssociationData, r as setAssociationData } from "../../repository-BVBp61y9.mjs";
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-
|
|
15
|
+
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-BWgrh_QM.mjs";
|
|
16
16
|
import { t as inspect } from "../../logging-B1xb568A.mjs";
|
|
17
17
|
import { t as LIFECYCLE_HTTP_CLIENT_TIMEOUT_MS } from "../../constants-C-4fesPr.mjs";
|
|
18
18
|
import { r as nonEmptyStringValueSchema } from "../../schemas-DYMNbFdX.mjs";
|
|
@@ -1573,7 +1573,7 @@ declare const CommerceAppConfigSchemas: {
|
|
|
1573
1573
|
value: string;
|
|
1574
1574
|
}[] | undefined;
|
|
1575
1575
|
hook_name: string;
|
|
1576
|
-
method: "
|
|
1576
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
1577
1577
|
priority?: number | undefined;
|
|
1578
1578
|
required?: boolean | undefined;
|
|
1579
1579
|
rules?: {
|
|
@@ -1606,7 +1606,7 @@ declare const CommerceAppConfigSchemas: {
|
|
|
1606
1606
|
value: string;
|
|
1607
1607
|
}[] | undefined;
|
|
1608
1608
|
hook_name: string;
|
|
1609
|
-
method: "
|
|
1609
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
1610
1610
|
priority?: number | undefined;
|
|
1611
1611
|
required?: boolean | undefined;
|
|
1612
1612
|
rules?: {
|
|
@@ -2852,7 +2852,7 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
|
|
|
2852
2852
|
value: string;
|
|
2853
2853
|
}[] | undefined;
|
|
2854
2854
|
hook_name: string;
|
|
2855
|
-
method: "
|
|
2855
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
2856
2856
|
priority?: number | undefined;
|
|
2857
2857
|
required?: boolean | undefined;
|
|
2858
2858
|
rules?: {
|
|
@@ -2885,7 +2885,7 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
|
|
|
2885
2885
|
value: string;
|
|
2886
2886
|
}[] | undefined;
|
|
2887
2887
|
hook_name: string;
|
|
2888
|
-
method: "
|
|
2888
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
2889
2889
|
priority?: number | undefined;
|
|
2890
2890
|
required?: boolean | undefined;
|
|
2891
2891
|
rules?: {
|
|
@@ -357,7 +357,7 @@ const LEADING_DOT_SLASH_PATTERN$1 = /^\.\//u;
|
|
|
357
357
|
const WEB_SOURCE_DEPENDENCIES = [
|
|
358
358
|
{
|
|
359
359
|
name: "@adobe/aio-commerce-lib-admin-ui",
|
|
360
|
-
version: "^1.3.0
|
|
360
|
+
version: "^1.3.0"
|
|
361
361
|
},
|
|
362
362
|
{
|
|
363
363
|
name: "react",
|
|
@@ -3034,7 +3034,7 @@ async function ensureAppConfig(domains, config, projectRoot) {
|
|
|
3034
3034
|
*/
|
|
3035
3035
|
function installDependencies(packageManager, domains, projectRoot) {
|
|
3036
3036
|
const packages = [];
|
|
3037
|
-
if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.9.0
|
|
3037
|
+
if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.9.0`);
|
|
3038
3038
|
if (packages.length === 0) {
|
|
3039
3039
|
consola.info("No additional domain dependencies to install.");
|
|
3040
3040
|
return;
|
|
@@ -3069,7 +3069,7 @@ async function ensureInstallYaml(domains, config, projectRoot) {
|
|
|
3069
3069
|
}
|
|
3070
3070
|
|
|
3071
3071
|
// source/commands/init/main.ts
|
|
3072
|
-
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.2.0
|
|
3072
|
+
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.2.0`];
|
|
3073
3073
|
/**
|
|
3074
3074
|
* Initializes a Commerce App project.
|
|
3075
3075
|
* @param flags - Non-interactive initialization answers.
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
/** biome-ignore-all lint/performance/noBarrelFile: This is the browser-compatible public API for the config entrypoint */
|
|
16
|
-
import { t as defineConfig } from "../define-
|
|
16
|
+
import { t as defineConfig } from "../define-BdXyLAwb.mjs";
|
|
17
17
|
export { defineConfig };
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
* This module exports shared config utilities for the AIO Commerce SDK.
|
|
18
18
|
* @packageDocumentation
|
|
19
19
|
*/
|
|
20
|
-
import { t as defineConfig } from "../define-
|
|
21
|
-
import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-
|
|
22
|
-
import { A as AdminUiConfig, B as OrderViewButton, C as ExternalEventSource, D as hasEventing, E as hasCommerceEvents, F as InvoiceViewButton, G as hasBackendUiV2Components, H as ViewMassAction, I as MassAction, L as Menu, M as CreditMemoViewButton, N as GridColumn, O as hasExternalEvents, P as GridColumns, R as NativeUiReplacedPage, S as ExternalEvent, T as ExternalEventsConfig, U as WorkerMassAction, V as RmaViewButton, W as hasAdminUi, _ as CommerceEventsConfig, a as WebhookRule, b as EventingSchema, c as WebhooksSchema, d as hasCustomInstallation, f as hasCustomInstallationSteps, g as CommerceEventSourceSchema, h as CommerceEventSource, i as WebhookHeader, j as AdminUiConfiguration, l as hasWebhooks, m as CommerceEvent, n as WebhookEntry, o as WebhooksConfig, p as AppEvent, r as WebhookField, s as WebhooksConfiguration, t as WebhookDefinition, v as EventProvider, w as ExternalEventSourceSchema, x as EventsConfig, y as EventingConfiguration, z as Notifications } from "../webhooks-
|
|
20
|
+
import { t as defineConfig } from "../define-BdXyLAwb.mjs";
|
|
21
|
+
import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-B3bAEor-.mjs";
|
|
22
|
+
import { A as AdminUiConfig, B as OrderViewButton, C as ExternalEventSource, D as hasEventing, E as hasCommerceEvents, F as InvoiceViewButton, G as hasBackendUiV2Components, H as ViewMassAction, I as MassAction, L as Menu, M as CreditMemoViewButton, N as GridColumn, O as hasExternalEvents, P as GridColumns, R as NativeUiReplacedPage, S as ExternalEvent, T as ExternalEventsConfig, U as WorkerMassAction, V as RmaViewButton, W as hasAdminUi, _ as CommerceEventsConfig, a as WebhookRule, b as EventingSchema, c as WebhooksSchema, d as hasCustomInstallation, f as hasCustomInstallationSteps, g as CommerceEventSourceSchema, h as CommerceEventSource, i as WebhookHeader, j as AdminUiConfiguration, l as hasWebhooks, m as CommerceEvent, n as WebhookEntry, o as WebhooksConfig, p as AppEvent, r as WebhookField, s as WebhooksConfiguration, t as WebhookDefinition, v as EventProvider, w as ExternalEventSourceSchema, x as EventsConfig, y as EventingConfiguration, z as Notifications } from "../webhooks-DgaLfP36.mjs";
|
|
23
23
|
import "@adobe/aio-commerce-lib-config";
|
|
24
24
|
import * as v from "valibot";
|
|
25
25
|
import { Get } from "type-fest";
|
|
@@ -637,7 +637,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
|
|
|
637
637
|
value: string;
|
|
638
638
|
}[] | undefined;
|
|
639
639
|
hook_name: string;
|
|
640
|
-
method: "
|
|
640
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
641
641
|
priority?: number | undefined;
|
|
642
642
|
required?: boolean | undefined;
|
|
643
643
|
rules?: {
|
|
@@ -670,7 +670,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
|
|
|
670
670
|
value: string;
|
|
671
671
|
}[] | undefined;
|
|
672
672
|
hook_name: string;
|
|
673
|
-
method: "
|
|
673
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
674
674
|
priority?: number | undefined;
|
|
675
675
|
required?: boolean | undefined;
|
|
676
676
|
rules?: {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { n as CommerceAppConfig } from "./app-
|
|
15
|
+
import { n as CommerceAppConfig } from "./app-B3bAEor-.mjs";
|
|
16
16
|
/**
|
|
17
17
|
* Helper to type-safely define the app config.
|
|
18
18
|
* @param config - The app config to define.
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { r as CommerceAppConfigOutputModel } from "./app-
|
|
16
|
-
import { k as AdminUiComponentConfig, n as WebhookEntry, p as AppEvent, u as CustomInstallationStep } from "./webhooks-
|
|
15
|
+
import { r as CommerceAppConfigOutputModel } from "./app-B3bAEor-.mjs";
|
|
16
|
+
import { k as AdminUiComponentConfig, n as WebhookEntry, p as AppEvent, u as CustomInstallationStep } from "./webhooks-DgaLfP36.mjs";
|
|
17
17
|
import * as v from "valibot";
|
|
18
18
|
import AioLogger from "@adobe/aio-lib-core-logging";
|
|
19
19
|
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
* This module exports shared application management utilities for the AIO Commerce SDK.
|
|
18
18
|
* @packageDocumentation
|
|
19
19
|
*/
|
|
20
|
-
import { $ as defineLeafStep, A as createInitialState, B as BranchStepOptions, C as defineCustomInstallationStep, D as executePlannedWorkflow, E as createInitialPlanExecutionState, F as StepStartedEvent, G as LifecycleContext, H as InferStepOutput, I as StepSucceededEvent, J as StepMeta, K as Step, L as WorkflowHooks, M as executeWorkflow, N as StepEvent, O as ValidateStepTreeOptions, P as StepFailedEvent, Q as defineBranchStep, R as AnyStep, S as CustomInstallationStepHandler, T as planWorkflow, U as LeafStep, V as ExecutionContext, W as LeafStepOptions, X as ValidationContext, Y as StepMetaInfo, Z as ValidationExecutionContext, _ as createInitialUninstallationState, _t as isFailedState, a as InstallationError, at as ValidationResult, b as runValidation, c as InstallationStatus, ct as FailedWorkflowState, d as CreateInitialUninstallationStateOptions, dt as SucceededWorkflowState, et as isBranchStep, f as InstallationHooks, ft as WorkflowData, g as createInitialInstallationState, gt as isCompletedState, h as RunValidationOptions, ht as WorkflowStateMetadata, i as InstallationData, it as ValidationIssueSeverity, j as executeUninstallWorkflow, k as validateStepTree, l as SucceededInstallationState, lt as InProgressWorkflowState, m as RunUninstallationOptions, mt as WorkflowRunState, n as InProgressInstallationState, nt as StepValidationResult, o as InstallationRetryMetadata, ot as ValidationSummary, p as RunInstallationOptions, pt as WorkflowError, q as StepContextFactory, r as InstallationContext, rt as ValidationIssue, s as InstallationState, st as ExecutionStatus, t as FailedInstallationState, tt as isLeafStep, u as CreateInitialInstallationStateOptions, ut as StepStatus, v as runInstallation, vt as isInProgressState, w as createRetryState, x as CustomInstallationStepDefinition, y as runUninstallation, yt as isSucceededState, z as BranchStep } from "../index-
|
|
20
|
+
import { $ as defineLeafStep, A as createInitialState, B as BranchStepOptions, C as defineCustomInstallationStep, D as executePlannedWorkflow, E as createInitialPlanExecutionState, F as StepStartedEvent, G as LifecycleContext, H as InferStepOutput, I as StepSucceededEvent, J as StepMeta, K as Step, L as WorkflowHooks, M as executeWorkflow, N as StepEvent, O as ValidateStepTreeOptions, P as StepFailedEvent, Q as defineBranchStep, R as AnyStep, S as CustomInstallationStepHandler, T as planWorkflow, U as LeafStep, V as ExecutionContext, W as LeafStepOptions, X as ValidationContext, Y as StepMetaInfo, Z as ValidationExecutionContext, _ as createInitialUninstallationState, _t as isFailedState, a as InstallationError, at as ValidationResult, b as runValidation, c as InstallationStatus, ct as FailedWorkflowState, d as CreateInitialUninstallationStateOptions, dt as SucceededWorkflowState, et as isBranchStep, f as InstallationHooks, ft as WorkflowData, g as createInitialInstallationState, gt as isCompletedState, h as RunValidationOptions, ht as WorkflowStateMetadata, i as InstallationData, it as ValidationIssueSeverity, j as executeUninstallWorkflow, k as validateStepTree, l as SucceededInstallationState, lt as InProgressWorkflowState, m as RunUninstallationOptions, mt as WorkflowRunState, n as InProgressInstallationState, nt as StepValidationResult, o as InstallationRetryMetadata, ot as ValidationSummary, p as RunInstallationOptions, pt as WorkflowError, q as StepContextFactory, r as InstallationContext, rt as ValidationIssue, s as InstallationState, st as ExecutionStatus, t as FailedInstallationState, tt as isLeafStep, u as CreateInitialInstallationStateOptions, ut as StepStatus, v as runInstallation, vt as isInProgressState, w as createRetryState, x as CustomInstallationStepDefinition, y as runUninstallation, yt as isSucceededState, z as BranchStep } from "../index-DE2KVXfH.mjs";
|
|
21
21
|
export { type AnyStep, type BranchStep, type BranchStepOptions, type CreateInitialInstallationStateOptions, type CreateInitialUninstallationStateOptions, type CustomInstallationStepDefinition, type CustomInstallationStepHandler, type ExecutionContext, type ExecutionStatus, type FailedInstallationState, type FailedWorkflowState, type InProgressInstallationState, type InProgressWorkflowState, type InferStepOutput, type InstallationContext, type InstallationData, type InstallationError, type InstallationHooks, type InstallationRetryMetadata, type InstallationState, type InstallationStatus, type LeafStep, type LeafStepOptions, type LifecycleContext, type RunInstallationOptions, type RunUninstallationOptions, type RunValidationOptions, type Step, type StepContextFactory, type StepEvent, type StepFailedEvent, type StepMeta, type StepMetaInfo, type StepStartedEvent, type StepStatus, type StepSucceededEvent, type StepValidationResult, type SucceededInstallationState, type SucceededWorkflowState, type ValidateStepTreeOptions, type ValidationContext, type ValidationExecutionContext, type ValidationIssue, type ValidationIssueSeverity, type ValidationResult, type ValidationSummary, type WorkflowData, type WorkflowError, type WorkflowHooks, type WorkflowRunState, type WorkflowStateMetadata, createInitialInstallationState, type createInitialPlanExecutionState, type createInitialState, createInitialUninstallationState, type createRetryState, type defineBranchStep, defineCustomInstallationStep, type defineLeafStep, type executePlannedWorkflow, type executeUninstallWorkflow, type executeWorkflow, type isBranchStep, isCompletedState, isFailedState, isInProgressState, type isLeafStep, isSucceededState, type planWorkflow, runInstallation, runUninstallation, runValidation, type validateStepTree };
|
|
@@ -457,7 +457,7 @@ const UNKNOWN_VERSION = "unknown";
|
|
|
457
457
|
* in the `package.json` of the copy of lib-config that lib-app loads, which the app's bundler
|
|
458
458
|
* resolves when it builds the action.
|
|
459
459
|
*/
|
|
460
|
-
const SDK_LIB_VERSIONS = [["lib-app", "2.2.0
|
|
460
|
+
const SDK_LIB_VERSIONS = [["lib-app", "2.2.0"], ["lib-config", libConfigPkg.version ?? UNKNOWN_VERSION]].map(([name, version]) => `${name}="${version}"`).join(", ");
|
|
461
461
|
/** Headers every app-management router adds to its responses. */
|
|
462
462
|
const SDK_LIB_VERSIONS_HEADERS = { [SDK_LIB_VERSIONS_HEADER]: SDK_LIB_VERSIONS };
|
|
463
463
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { r as CommerceAppConfigOutputModel, t as AnyCommerceAppConfig } from "./app-
|
|
15
|
+
import { r as CommerceAppConfigOutputModel, t as AnyCommerceAppConfig } from "./app-B3bAEor-.mjs";
|
|
16
16
|
import * as v from "valibot";
|
|
17
17
|
declare const NotificationsSchema: v.ObjectSchema<{
|
|
18
18
|
readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
|
|
@@ -1740,7 +1740,7 @@ declare const WebhooksSchema: v.OptionalSchema<v.SchemaWithPipe<readonly [v.Arra
|
|
|
1740
1740
|
value: string;
|
|
1741
1741
|
}[] | undefined;
|
|
1742
1742
|
hook_name: string;
|
|
1743
|
-
method: "
|
|
1743
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
1744
1744
|
priority?: number | undefined;
|
|
1745
1745
|
required?: boolean | undefined;
|
|
1746
1746
|
rules?: {
|
|
@@ -1773,7 +1773,7 @@ declare const WebhooksSchema: v.OptionalSchema<v.SchemaWithPipe<readonly [v.Arra
|
|
|
1773
1773
|
value: string;
|
|
1774
1774
|
}[] | undefined;
|
|
1775
1775
|
hook_name: string;
|
|
1776
|
-
method: "
|
|
1776
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
1777
1777
|
priority?: number | undefined;
|
|
1778
1778
|
required?: boolean | undefined;
|
|
1779
1779
|
rules?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/aio-commerce-lib-app",
|
|
3
|
-
"version": "2.2.0
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "App configuration management library for Adobe Commerce applications",
|
|
6
6
|
"keywords": [
|
|
@@ -92,13 +92,13 @@
|
|
|
92
92
|
"README.md"
|
|
93
93
|
],
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@adobe/aio-commerce-lib-admin-ui": "1.3.0
|
|
96
|
-
"@adobe/aio-commerce-lib-api": "1.5.0
|
|
97
|
-
"@adobe/aio-commerce-lib-auth": "1.3.0
|
|
98
|
-
"@adobe/aio-commerce-lib-config": "1.9.0
|
|
99
|
-
"@adobe/aio-commerce-lib-core": "1.4.0
|
|
100
|
-
"@adobe/aio-commerce-lib-events": "1.6.0
|
|
101
|
-
"@adobe/aio-commerce-lib-webhooks": "1.3.0
|
|
95
|
+
"@adobe/aio-commerce-lib-admin-ui": "1.3.0",
|
|
96
|
+
"@adobe/aio-commerce-lib-api": "1.5.0",
|
|
97
|
+
"@adobe/aio-commerce-lib-auth": "1.3.0",
|
|
98
|
+
"@adobe/aio-commerce-lib-config": "1.9.0",
|
|
99
|
+
"@adobe/aio-commerce-lib-core": "1.4.0",
|
|
100
|
+
"@adobe/aio-commerce-lib-events": "1.6.0",
|
|
101
|
+
"@adobe/aio-commerce-lib-webhooks": "1.3.0",
|
|
102
102
|
"@adobe/aio-lib-core-config": "^5.0.1",
|
|
103
103
|
"@adobe/aio-lib-core-logging": "^3.0.2",
|
|
104
104
|
"@adobe/aio-lib-files": "^4.1.2",
|
|
@@ -124,13 +124,13 @@
|
|
|
124
124
|
},
|
|
125
125
|
"devDependencies": {
|
|
126
126
|
"@adobe/aio-lib-files": "^4.1.2",
|
|
127
|
-
"@aio-commerce-sdk/common-utils": "0.3.0
|
|
127
|
+
"@aio-commerce-sdk/common-utils": "0.3.0",
|
|
128
128
|
"@aio-commerce-sdk/config-tsdown": "1.0.1",
|
|
129
129
|
"@aio-commerce-sdk/config-typedoc": "1.0.0",
|
|
130
130
|
"@aio-commerce-sdk/config-typescript": "1.0.0",
|
|
131
131
|
"@aio-commerce-sdk/config-vitest": "1.0.0",
|
|
132
|
-
"@aio-commerce-sdk/scripting-utils": "0.4.0
|
|
133
|
-
"@aio-commerce-sdk/scripts": "0.2.0
|
|
132
|
+
"@aio-commerce-sdk/scripting-utils": "0.4.0",
|
|
133
|
+
"@aio-commerce-sdk/scripts": "0.2.0",
|
|
134
134
|
"@pnpm/lockfile.fs": "^1100.1.7",
|
|
135
135
|
"@react-spectrum/s2": "^1.5.1",
|
|
136
136
|
"@types/react": "^19.2.17",
|