@adobe/aio-commerce-lib-app 2.1.0 → 2.2.0-beta-20261105172845
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 +17 -0
- package/dist/cjs/actions/app-config/index.cjs +5 -5
- package/dist/cjs/actions/app-config/index.d.cts +1 -1
- package/dist/cjs/actions/association/index.cjs +2 -2
- package/dist/cjs/actions/config/index.cjs +2 -2
- package/dist/cjs/actions/installation/index.cjs +5 -5
- package/dist/cjs/actions/installation/index.d.cts +2 -2
- package/dist/cjs/actions/scope-tree/index.cjs +2 -2
- package/dist/cjs/{app-Ch19CR6g.d.cts → app-CiZuhrsm.d.cts} +326 -0
- package/dist/cjs/commands/index.cjs +10 -9
- package/dist/cjs/config/index.browser.d.cts +1 -1
- package/dist/cjs/config/index.node.cjs +3 -3
- package/dist/cjs/config/index.node.d.cts +88 -4
- package/dist/{es/define-C95h_wa0.d.mts → cjs/define-CZRjG5N_.d.cts} +1 -1
- package/dist/cjs/{index-D-Qn-irL.d.cts → index-Bu2X-HUh.d.cts} +2 -2
- package/dist/cjs/{index.node-CxdwPrOg.cjs → index.node-Boszndri.cjs} +1 -1
- package/dist/cjs/management/index.cjs +1 -1
- package/dist/cjs/management/index.d.cts +1 -1
- package/dist/cjs/{management-C_JQpgVB.cjs → management-C_cVbr0s.cjs} +17 -5
- package/dist/cjs/{openapi-DFoMdZzI.cjs → openapi-c06taOv1.cjs} +412 -45
- package/dist/cjs/{validate-B0rOILvG.cjs → validate-CunJ4fUD.cjs} +1 -1
- package/dist/cjs/{router-DpB8wpR2.cjs → version-CUu8Ks59.cjs} +77 -19
- package/dist/cjs/{webhooks-TvDm57xt.cjs → webhooks-C5ONLbQ4.cjs} +53 -12
- package/dist/{es/webhooks-C9vMZZDZ.d.mts → cjs/webhooks-DX7km8wk.d.cts} +266 -10
- package/dist/es/actions/app-config/index.d.mts +1 -1
- package/dist/es/actions/app-config/index.mjs +5 -5
- package/dist/es/actions/association/index.mjs +2 -2
- package/dist/es/actions/config/index.mjs +2 -2
- package/dist/es/actions/installation/index.d.mts +2 -2
- package/dist/es/actions/installation/index.mjs +5 -5
- package/dist/es/actions/scope-tree/index.mjs +2 -2
- package/dist/es/{app-Ch19CR6g.d.mts → app-CiZuhrsm.d.mts} +326 -0
- package/dist/es/commands/index.mjs +10 -9
- package/dist/es/config/index.browser.d.mts +1 -1
- package/dist/es/config/index.node.d.mts +88 -4
- package/dist/es/config/index.node.mjs +3 -3
- package/dist/{cjs/define-C12IwNNN.d.cts → es/define-9bwRE_UG.d.mts} +1 -1
- package/dist/es/{index-VgCNSlLP.d.mts → index-Cho-eRFD.d.mts} +2 -2
- package/dist/es/{index.node-C8EXBW94.mjs → index.node-BVO6sC7z.mjs} +1 -1
- package/dist/es/management/index.d.mts +1 -1
- package/dist/es/management/index.mjs +1 -1
- package/dist/es/{management-DKDR7-fX.mjs → management-BYmbjhGb.mjs} +17 -5
- package/dist/es/{openapi-E_1RFhAr.mjs → openapi-C_TGWLou.mjs} +412 -45
- package/dist/es/{validate-CiJIjyOr.mjs → validate-D-Oh-sxE.mjs} +1 -1
- package/dist/es/{router-C23GIyGQ.mjs → version-C-Pkqohl.mjs} +71 -20
- package/dist/{cjs/webhooks-Buu1d7AB.d.cts → es/webhooks-B7UjO8dd.d.mts} +266 -10
- package/dist/es/{webhooks-CfrYeMy_.mjs → webhooks-CMb_05b6.mjs} +48 -13
- package/package.json +3 -3
|
@@ -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-CiZuhrsm.mjs";
|
|
16
|
+
import { k as AdminUiComponentConfig, n as WebhookEntry, p as AppEvent, u as CustomInstallationStep } from "./webhooks-B7UjO8dd.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";
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { t as validateCommerceAppConfig } from "./validate-
|
|
15
|
+
import { t as validateCommerceAppConfig } from "./validate-D-Oh-sxE.mjs";
|
|
16
16
|
import { stringifyError } from "@adobe/aio-commerce-lib-core/error";
|
|
17
17
|
import { existsSync } from "fs";
|
|
18
18
|
import { access, mkdir, readFile } from "fs/promises";
|
|
@@ -12,5 +12,5 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
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-
|
|
15
|
+
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-Cho-eRFD.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 };
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { a as runValidation, d as isInProgressState, f as isSucceededState, i as runUninstallation, l as isCompletedState, n as createInitialUninstallationState, r as runInstallation, s as defineCustomInstallationStep, t as createInitialInstallationState, u as isFailedState } from "../management-
|
|
15
|
+
import { a as runValidation, d as isInProgressState, f as isSucceededState, i as runUninstallation, l as isCompletedState, n as createInitialUninstallationState, r as runInstallation, s as defineCustomInstallationStep, t as createInitialInstallationState, u as isFailedState } from "../management-BYmbjhGb.mjs";
|
|
16
16
|
|
|
17
17
|
export { createInitialInstallationState, createInitialUninstallationState, defineCustomInstallationStep, isCompletedState, isFailedState, isInProgressState, isSucceededState, runInstallation, runUninstallation, runValidation };
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { a as hasCustomInstallationSteps, c as hasEventing, d as ADMIN_UI_MASS_ACTION_ENTITIES, l as hasExternalEvents,
|
|
15
|
+
import { a as hasCustomInstallationSteps, c as hasEventing, d as ADMIN_UI_MASS_ACTION_ENTITIES, f as ADMIN_UI_VIEW_BUTTON_ENTITIES, l as hasExternalEvents, m as hasAdminUi, n as hasWebhooks, s as hasCommerceEvents, u as ADMIN_UI_GRID_COLUMN_ENTITIES } from "./webhooks-CMb_05b6.mjs";
|
|
16
16
|
import { t as LIFECYCLE_HTTP_CLIENT_TIMEOUT_MS } from "./constants-C-4fesPr.mjs";
|
|
17
17
|
import { t as parseOrThrow } from "./utils-G-EDWmew.mjs";
|
|
18
18
|
import { i as getInstallCommerceEnv, t as appliesToEnv } from "./environment-DUhU0_9z.mjs";
|
|
@@ -769,19 +769,31 @@ function enumerateComponents(adminUi) {
|
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
|
-
for (const viewButton of adminUi
|
|
773
|
-
const key =
|
|
772
|
+
for (const entity of ADMIN_UI_VIEW_BUTTON_ENTITIES) for (const viewButton of adminUi[entity]?.viewButtons ?? []) {
|
|
773
|
+
const key = `${entity}.view-button.${viewButton.id}`;
|
|
774
774
|
components.set(key, {
|
|
775
775
|
config: viewButton,
|
|
776
776
|
key,
|
|
777
|
-
label:
|
|
777
|
+
label: `${entity} view button "${viewButton.id}"`,
|
|
778
778
|
ref: {
|
|
779
|
-
entity
|
|
779
|
+
entity,
|
|
780
780
|
id: viewButton.id,
|
|
781
781
|
kind: "viewButtons"
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
784
|
}
|
|
785
|
+
for (const replacedPage of adminUi.nativeUi?.replacedPages ?? []) {
|
|
786
|
+
const key = `nativeUi.replacedPages.${replacedPage.target}`;
|
|
787
|
+
components.set(key, {
|
|
788
|
+
config: replacedPage,
|
|
789
|
+
key,
|
|
790
|
+
label: `native UI page replacement "${replacedPage.target}"`,
|
|
791
|
+
ref: {
|
|
792
|
+
id: replacedPage.target,
|
|
793
|
+
kind: "replacedPages"
|
|
794
|
+
}
|
|
795
|
+
});
|
|
796
|
+
}
|
|
785
797
|
return components;
|
|
786
798
|
}
|
|
787
799
|
/** Reads the baseline's persisted `extensionId`, or `null` when there is no baseline. */
|