@adobe/aio-commerce-lib-app 2.0.0-alpha-20260915125846 → 2.0.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 +10 -10
- package/dist/cjs/actions/app-config/index.cjs +2 -2
- package/dist/cjs/actions/app-config/index.d.cts +1 -1
- package/dist/cjs/actions/installation/index.d.cts +2 -2
- package/dist/cjs/{app-BSKunfh9.d.cts → app-DwSqUkJA.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 +7 -7
- package/dist/{es/define-P2-YbckL.d.mts → cjs/define-Cc3AaVmY.d.cts} +1 -1
- package/dist/{es/index-Bp8jqWYA.d.mts → cjs/index-C7dqTDHu.d.cts} +4 -4
- package/dist/{es/installation-DXb9TqhD.d.mts → cjs/installation-D72LoQ_1.d.cts} +1 -1
- package/dist/cjs/management/index.d.cts +1 -1
- package/dist/cjs/{openapi-DlQsI78c.cjs → openapi-CAXgKam0.cjs} +317 -390
- package/dist/es/actions/app-config/index.d.mts +1 -1
- package/dist/es/actions/app-config/index.mjs +2 -2
- package/dist/es/actions/installation/index.d.mts +2 -2
- package/dist/es/{app-BSKunfh9.d.mts → app-DwSqUkJA.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 +7 -7
- package/dist/{cjs/define-DU51ekD5.d.cts → es/define-Bq1zw9Lr.d.mts} +1 -1
- package/dist/{cjs/index-CENsefUt.d.cts → es/index-BryddQId.d.mts} +4 -4
- package/dist/{cjs/installation-DTlr_CY7.d.cts → es/installation-DqVDJ1ur.d.mts} +1 -1
- package/dist/es/management/index.d.mts +1 -1
- package/dist/es/{openapi-CIkHvahg.mjs → openapi-BnR9OUac.mjs} +317 -390
- package/package.json +7 -7
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import "../../index-CgsSXApi.mjs";
|
|
16
|
-
import { n as CommerceAppConfig } from "../../app-
|
|
16
|
+
import { n as CommerceAppConfig } from "../../app-DwSqUkJA.mjs";
|
|
17
17
|
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
18
18
|
//#region source/actions/app-config/router.d.ts
|
|
19
19
|
/** The arguments required to create the runtime action for the app-config action. */
|
|
@@ -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-BnR9OUac.mjs");
|
|
30
30
|
/** Matches component schema `$ref` strings, capturing the schema name. */
|
|
31
31
|
const SCHEMA_REF_PATTERN = /"#\/components\/schemas\/(\w+)"/g;
|
|
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.0.0
|
|
80
|
+
const input = `2.0.0:${[...domains].sort().join(",")}:3.0.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. */
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import "../../index-CgsSXApi.mjs";
|
|
16
|
-
import { n as CommerceAppConfig, r as CommerceAppConfigOutputModel } from "../../app-
|
|
17
|
-
import { J as LifecycleContext } from "../../index-
|
|
16
|
+
import { n as CommerceAppConfig, r as CommerceAppConfigOutputModel } from "../../app-DwSqUkJA.mjs";
|
|
17
|
+
import { J as LifecycleContext } from "../../index-BryddQId.mjs";
|
|
18
18
|
import "@adobe/aio-commerce-lib-core/responses";
|
|
19
19
|
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
20
20
|
//#region source/actions/installation/common.d.ts
|
|
@@ -1230,7 +1230,7 @@ declare const CommerceAppConfigSchemas: {
|
|
|
1230
1230
|
value: string;
|
|
1231
1231
|
}[] | undefined;
|
|
1232
1232
|
hook_name: string;
|
|
1233
|
-
method: "
|
|
1233
|
+
method: "POST" | "PUT" | "DELETE" | "GET";
|
|
1234
1234
|
priority?: number | undefined;
|
|
1235
1235
|
required?: boolean | undefined;
|
|
1236
1236
|
rules?: {
|
|
@@ -1263,7 +1263,7 @@ declare const CommerceAppConfigSchemas: {
|
|
|
1263
1263
|
value: string;
|
|
1264
1264
|
}[] | undefined;
|
|
1265
1265
|
hook_name: string;
|
|
1266
|
-
method: "
|
|
1266
|
+
method: "POST" | "PUT" | "DELETE" | "GET";
|
|
1267
1267
|
priority?: number | undefined;
|
|
1268
1268
|
required?: boolean | undefined;
|
|
1269
1269
|
rules?: {
|
|
@@ -2167,7 +2167,7 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
|
|
|
2167
2167
|
value: string;
|
|
2168
2168
|
}[] | undefined;
|
|
2169
2169
|
hook_name: string;
|
|
2170
|
-
method: "
|
|
2170
|
+
method: "POST" | "PUT" | "DELETE" | "GET";
|
|
2171
2171
|
priority?: number | undefined;
|
|
2172
2172
|
required?: boolean | undefined;
|
|
2173
2173
|
rules?: {
|
|
@@ -2200,7 +2200,7 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
|
|
|
2200
2200
|
value: string;
|
|
2201
2201
|
}[] | undefined;
|
|
2202
2202
|
hook_name: string;
|
|
2203
|
-
method: "
|
|
2203
|
+
method: "POST" | "PUT" | "DELETE" | "GET";
|
|
2204
2204
|
priority?: number | undefined;
|
|
2205
2205
|
required?: boolean | undefined;
|
|
2206
2206
|
rules?: {
|
|
@@ -369,7 +369,7 @@ const LEADING_DOT_SLASH_PATTERN$1 = /^\.\//u;
|
|
|
369
369
|
const WEB_SOURCE_DEPENDENCIES = [
|
|
370
370
|
{
|
|
371
371
|
name: "@adobe/aio-commerce-lib-admin-ui",
|
|
372
|
-
version: "^1.1.0
|
|
372
|
+
version: "^1.1.0"
|
|
373
373
|
},
|
|
374
374
|
{
|
|
375
375
|
name: "react",
|
|
@@ -2086,7 +2086,7 @@ async function ensureAppConfig(domains, config, projectRoot) {
|
|
|
2086
2086
|
*/
|
|
2087
2087
|
function installDependencies(packageManager, domains, projectRoot) {
|
|
2088
2088
|
const packages = [];
|
|
2089
|
-
if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.8.0
|
|
2089
|
+
if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.8.0`);
|
|
2090
2090
|
if (packages.length === 0) {
|
|
2091
2091
|
consola.info("No additional domain dependencies to install.");
|
|
2092
2092
|
return;
|
|
@@ -2122,7 +2122,7 @@ async function ensureInstallYaml(domains, config, projectRoot) {
|
|
|
2122
2122
|
|
|
2123
2123
|
//#endregion
|
|
2124
2124
|
//#region source/commands/init/main.ts
|
|
2125
|
-
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.0.0
|
|
2125
|
+
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.0.0`];
|
|
2126
2126
|
/**
|
|
2127
2127
|
* Initializes a Commerce App project.
|
|
2128
2128
|
* @param flags - Non-interactive initialization answers.
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-
|
|
16
|
-
import { n as hasCustomInstallationSteps, t as hasCustomInstallation } from "../installation-
|
|
17
|
-
import { t as defineConfig } from "../define-
|
|
15
|
+
import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-DwSqUkJA.mjs";
|
|
16
|
+
import { n as hasCustomInstallationSteps, t as hasCustomInstallation } from "../installation-DqVDJ1ur.mjs";
|
|
17
|
+
import { t as defineConfig } from "../define-Bq1zw9Lr.mjs";
|
|
18
18
|
import "@adobe/aio-commerce-lib-config";
|
|
19
19
|
import * as v from "valibot";
|
|
20
20
|
import { Get } from "type-fest";
|
|
@@ -453,7 +453,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
|
|
|
453
453
|
value: string;
|
|
454
454
|
}[] | undefined;
|
|
455
455
|
hook_name: string;
|
|
456
|
-
method: "
|
|
456
|
+
method: "POST" | "PUT" | "DELETE" | "GET";
|
|
457
457
|
priority?: number | undefined;
|
|
458
458
|
required?: boolean | undefined;
|
|
459
459
|
rules?: {
|
|
@@ -486,7 +486,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
|
|
|
486
486
|
value: string;
|
|
487
487
|
}[] | undefined;
|
|
488
488
|
hook_name: string;
|
|
489
|
-
method: "
|
|
489
|
+
method: "POST" | "PUT" | "DELETE" | "GET";
|
|
490
490
|
priority?: number | undefined;
|
|
491
491
|
required?: boolean | undefined;
|
|
492
492
|
rules?: {
|
|
@@ -1827,7 +1827,7 @@ declare const WebhooksSchema: v.OptionalSchema<v.SchemaWithPipe<readonly [v.Arra
|
|
|
1827
1827
|
value: string;
|
|
1828
1828
|
}[] | undefined;
|
|
1829
1829
|
hook_name: string;
|
|
1830
|
-
method: "
|
|
1830
|
+
method: "POST" | "PUT" | "DELETE" | "GET";
|
|
1831
1831
|
priority?: number | undefined;
|
|
1832
1832
|
required?: boolean | undefined;
|
|
1833
1833
|
rules?: {
|
|
@@ -1860,7 +1860,7 @@ declare const WebhooksSchema: v.OptionalSchema<v.SchemaWithPipe<readonly [v.Arra
|
|
|
1860
1860
|
value: string;
|
|
1861
1861
|
}[] | undefined;
|
|
1862
1862
|
hook_name: string;
|
|
1863
|
-
method: "
|
|
1863
|
+
method: "POST" | "PUT" | "DELETE" | "GET";
|
|
1864
1864
|
priority?: number | undefined;
|
|
1865
1865
|
required?: boolean | undefined;
|
|
1866
1866
|
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-DwSqUkJA.mjs";
|
|
16
16
|
//#region source/config/lib/define.d.ts
|
|
17
17
|
/**
|
|
18
18
|
* Helper to type-safely define the app config.
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { r as CommerceAppConfigOutputModel } from "./app-
|
|
16
|
-
import "./installation-
|
|
17
|
-
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
18
|
-
import AioLogger from "@adobe/aio-lib-core-logging";
|
|
15
|
+
import { r as CommerceAppConfigOutputModel } from "./app-DwSqUkJA.mjs";
|
|
16
|
+
import "./installation-DqVDJ1ur.mjs";
|
|
19
17
|
import * as v from "valibot";
|
|
18
|
+
import AioLogger from "@adobe/aio-lib-core-logging";
|
|
19
|
+
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
20
20
|
//#region source/management/common/schema.d.ts
|
|
21
21
|
/** Schema for validating the Adobe I/O app credentials used across lifecycle workflows. */
|
|
22
22
|
declare const AppDataSchema: v.ObjectSchema<{
|
|
@@ -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-DwSqUkJA.mjs";
|
|
16
16
|
import "valibot";
|
|
17
17
|
//#region source/config/schema/installation.d.ts
|
|
18
18
|
/** Config type when installation settings are present. */
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { $ as ValidationContext, A as createRetryState, B as WorkflowHooks, C as defineCustomInstallationStep, D as ValidationSummary, E as ValidationResult, F as executePlannedWorkflow, G as InferStepOutput, H as BranchStep, I as StepEvent, J as LifecycleContext, K as LeafStep, L as StepFailedEvent, M as executeWorkflow, N as planWorkflow, O as validateStepTree, P as createInitialPlanExecutionState, Q as StepMetaInfo, R as StepStartedEvent, S as CustomInstallationStepHandler, T as ValidateStepTreeOptions, U as BranchStepOptions, V as AnyStep, W as ExecutionContext, X as StepContextFactory, Y as Step, Z as StepMeta, _ as createInitialUninstallationState, _t as isFailedState, a as InstallationError, at as isBranchStep, b as runValidation, c as InstallationStatus, ct as FailedWorkflowState, d as CreateInitialUninstallationStateOptions, dt as SucceededWorkflowState, et as ValidationExecutionContext, f as InstallationHooks, ft as WorkflowData, g as createInitialInstallationState, gt as isCompletedState, h as RunValidationOptions, ht as WorkflowStateMetadata, i as InstallationData, it as defineLeafStep, j as executeUninstallWorkflow, k as createInitialState, l as SucceededInstallationState, lt as InProgressWorkflowState, m as RunUninstallationOptions, mt as WorkflowRunState, n as InProgressInstallationState, nt as ValidationIssueSeverity, o as InstallationRetryMetadata, ot as isLeafStep, p as RunInstallationOptions, pt as WorkflowError, q as LeafStepOptions, r as InstallationContext, rt as defineBranchStep, s as InstallationState, st as ExecutionStatus, t as FailedInstallationState, tt as ValidationIssue, u as CreateInitialInstallationStateOptions, ut as StepStatus, v as runInstallation, vt as isInProgressState, w as StepValidationResult, x as CustomInstallationStepDefinition, y as runUninstallation, yt as isSucceededState, z as StepSucceededEvent } from "../index-
|
|
15
|
+
import { $ as ValidationContext, A as createRetryState, B as WorkflowHooks, C as defineCustomInstallationStep, D as ValidationSummary, E as ValidationResult, F as executePlannedWorkflow, G as InferStepOutput, H as BranchStep, I as StepEvent, J as LifecycleContext, K as LeafStep, L as StepFailedEvent, M as executeWorkflow, N as planWorkflow, O as validateStepTree, P as createInitialPlanExecutionState, Q as StepMetaInfo, R as StepStartedEvent, S as CustomInstallationStepHandler, T as ValidateStepTreeOptions, U as BranchStepOptions, V as AnyStep, W as ExecutionContext, X as StepContextFactory, Y as Step, Z as StepMeta, _ as createInitialUninstallationState, _t as isFailedState, a as InstallationError, at as isBranchStep, b as runValidation, c as InstallationStatus, ct as FailedWorkflowState, d as CreateInitialUninstallationStateOptions, dt as SucceededWorkflowState, et as ValidationExecutionContext, f as InstallationHooks, ft as WorkflowData, g as createInitialInstallationState, gt as isCompletedState, h as RunValidationOptions, ht as WorkflowStateMetadata, i as InstallationData, it as defineLeafStep, j as executeUninstallWorkflow, k as createInitialState, l as SucceededInstallationState, lt as InProgressWorkflowState, m as RunUninstallationOptions, mt as WorkflowRunState, n as InProgressInstallationState, nt as ValidationIssueSeverity, o as InstallationRetryMetadata, ot as isLeafStep, p as RunInstallationOptions, pt as WorkflowError, q as LeafStepOptions, r as InstallationContext, rt as defineBranchStep, s as InstallationState, st as ExecutionStatus, t as FailedInstallationState, tt as ValidationIssue, u as CreateInitialInstallationStateOptions, ut as StepStatus, v as runInstallation, vt as isInProgressState, w as StepValidationResult, x as CustomInstallationStepDefinition, y as runUninstallation, yt as isSucceededState, z as StepSucceededEvent } from "../index-BryddQId.mjs";
|
|
16
16
|
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 };
|