@adobe/aio-commerce-lib-app 2.1.0 → 2.2.0-alpha-20261110204456

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/cjs/actions/app-config/index.cjs +5 -5
  3. package/dist/cjs/actions/app-config/index.d.cts +2 -2
  4. package/dist/cjs/actions/association/index.cjs +2 -2
  5. package/dist/cjs/actions/config/index.cjs +2 -2
  6. package/dist/cjs/actions/config/index.d.cts +2 -2
  7. package/dist/cjs/actions/installation/index.cjs +61 -21
  8. package/dist/cjs/actions/installation/index.d.cts +4 -3
  9. package/dist/cjs/actions/scope-tree/index.cjs +2 -2
  10. package/dist/cjs/{app-Ch19CR6g.d.cts → app-D57Rhsqg.d.cts} +326 -0
  11. package/dist/cjs/commands/index.cjs +27 -12
  12. package/dist/cjs/config/index.browser.d.cts +2 -1
  13. package/dist/cjs/config/index.node.cjs +3 -3
  14. package/dist/cjs/config/index.node.d.cts +94 -6
  15. package/dist/{es/define-C95h_wa0.d.mts → cjs/define-b00_dBkO.d.cts} +1 -1
  16. package/dist/cjs/{index-D-Qn-irL.d.cts → index-8TD-noge.d.cts} +316 -316
  17. package/dist/cjs/{index-DWEigxhy.d.cts → index-vAue-u_y.d.cts} +1 -4
  18. package/dist/cjs/index.cjs +1 -1
  19. package/dist/cjs/index.d.cts +8 -8
  20. package/dist/cjs/{index.node-CxdwPrOg.cjs → index.node-CcH8PCzC.cjs} +1 -1
  21. package/dist/cjs/management/index.cjs +1 -1
  22. package/dist/cjs/management/index.d.cts +6 -1
  23. package/dist/cjs/{management-C_JQpgVB.cjs → management-Bed2BGcZ.cjs} +18 -6
  24. package/dist/cjs/{openapi-DFoMdZzI.cjs → openapi-CFqaMxUV.cjs} +426 -45
  25. package/dist/cjs/types-DslZGym8.d.cts +23 -0
  26. package/dist/cjs/{utils-B_Ypb2xF.cjs → utils-gONsOMjJ.cjs} +17 -2
  27. package/dist/cjs/{validate-B0rOILvG.cjs → validate-DAw7Pxp3.cjs} +1 -1
  28. package/dist/cjs/{router-DpB8wpR2.cjs → version-D750nyuB.cjs} +77 -19
  29. package/dist/{es/webhooks-C9vMZZDZ.d.mts → cjs/webhooks-C0NksFmg.d.cts} +266 -10
  30. package/dist/cjs/{webhooks-TvDm57xt.cjs → webhooks-EVlO8rxi.cjs} +53 -12
  31. package/dist/es/actions/app-config/index.d.mts +2 -2
  32. package/dist/es/actions/app-config/index.mjs +5 -5
  33. package/dist/es/actions/association/index.mjs +2 -2
  34. package/dist/es/actions/config/index.d.mts +1 -1
  35. package/dist/es/actions/config/index.mjs +2 -2
  36. package/dist/es/actions/installation/index.d.mts +4 -3
  37. package/dist/es/actions/installation/index.mjs +62 -22
  38. package/dist/es/actions/scope-tree/index.mjs +2 -2
  39. package/dist/es/{app-Ch19CR6g.d.mts → app-D57Rhsqg.d.mts} +326 -0
  40. package/dist/es/commands/index.mjs +27 -12
  41. package/dist/es/config/index.browser.d.mts +2 -1
  42. package/dist/es/config/index.node.d.mts +93 -4
  43. package/dist/es/config/index.node.mjs +3 -3
  44. package/dist/{cjs/define-C12IwNNN.d.cts → es/define-BZUvvjcZ.d.mts} +1 -1
  45. package/dist/es/{index-VgCNSlLP.d.mts → index-C_bP0dOM.d.mts} +2 -2
  46. package/dist/es/{index-CgsSXApi.d.mts → index-DUJtT78x.d.mts} +2 -2
  47. package/dist/es/index.d.mts +8 -8
  48. package/dist/es/index.mjs +1 -1
  49. package/dist/es/{index.node-C8EXBW94.mjs → index.node-ClvSfs5w.mjs} +1 -1
  50. package/dist/es/management/index.d.mts +6 -1
  51. package/dist/es/management/index.mjs +1 -1
  52. package/dist/es/{management-DKDR7-fX.mjs → management-DzRJV-AP.mjs} +18 -6
  53. package/dist/es/{openapi-E_1RFhAr.mjs → openapi-BUIws500.mjs} +426 -45
  54. package/dist/es/types-DslZGym8.d.mts +23 -0
  55. package/dist/es/{utils-SOtVo2VW.mjs → utils-D81SFSIR.mjs} +17 -2
  56. package/dist/es/{validate-CiJIjyOr.mjs → validate-BszbuhiE.mjs} +1 -1
  57. package/dist/es/{router-C23GIyGQ.mjs → version-DYwRSDcV.mjs} +71 -20
  58. package/dist/es/{webhooks-CfrYeMy_.mjs → webhooks-DRPXVMMo.mjs} +48 -13
  59. package/dist/{cjs/webhooks-Buu1d7AB.d.cts → es/webhooks-DvBYapZN.d.mts} +266 -10
  60. package/package.json +4 -4
@@ -12,7 +12,4 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
16
- import AioLogger from "@adobe/aio-lib-core-logging";
17
- import "@adobe/aio-commerce-lib-core/responses";
18
- import "type-fest";
15
+ export {}
@@ -14,7 +14,7 @@
14
14
 
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
16
  const require_repository = require("./repository-C3nn0Mon.cjs");
17
- const require_utils = require("./utils-B_Ypb2xF.cjs");
17
+ const require_utils = require("./utils-gONsOMjJ.cjs");
18
18
  let _adobe_aio_commerce_lib_api = require("@adobe/aio-commerce-lib-api");
19
19
  let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
20
20
  let _adobe_aio_commerce_lib_core_error = require("@adobe/aio-commerce-lib-core/error");
@@ -12,18 +12,18 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
+ /**
16
+ * Public entrypoint for `@adobe/aio-commerce-lib-app`. Exposes helpers that
17
+ * runtime actions use to retrieve the Commerce instance the app is currently
18
+ * associated with.
19
+ *
20
+ * @packageDocumentation
21
+ */
22
+ import { t as AssociatedCommerceData } from "./types-DslZGym8.cjs";
15
23
  import { AdobeCommerceHttpClient, CommerceHttpClientParams } from "@adobe/aio-commerce-lib-api";
16
24
  import { ImsAuthParams, ImsAuthProvider } from "@adobe/aio-commerce-lib-auth";
17
- import { CommerceEnv } from "@adobe/aio-commerce-lib-core/commerce";
18
25
  import { CommerceSdkErrorBase, CommerceSdkErrorBaseOptions } from "@adobe/aio-commerce-lib-core/error";
19
26
  import { AdobeIoEventsApiClient } from "@adobe/aio-commerce-lib-events/io-events";
20
- /** The Commerce instance data an app is associated with. */
21
- type AssociatedCommerceData = {
22
- /** Commerce API base URL. */
23
- baseUrl: string;
24
- /** Deployment type of the Commerce instance. */
25
- env: CommerceEnv;
26
- };
27
27
  /**
28
28
  * Returns the Commerce instance this app is currently associated with.
29
29
  *
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
  const require_rolldown_runtime = require("./rolldown-runtime-CoOt0iuZ.cjs");
16
- const require_validate = require("./validate-B0rOILvG.cjs");
16
+ const require_validate = require("./validate-DAw7Pxp3.cjs");
17
17
  let _adobe_aio_commerce_lib_core_error = require("@adobe/aio-commerce-lib-core/error");
18
18
  let fs = require("fs");
19
19
  let fs_promises = require("fs/promises");
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
- const require_management = require("../management-C_JQpgVB.cjs");
16
+ const require_management = require("../management-Bed2BGcZ.cjs");
17
17
 
18
18
  exports.createInitialInstallationState = require_management.createInitialInstallationState;
19
19
  exports.createInitialUninstallationState = require_management.createInitialUninstallationState;
@@ -12,5 +12,10 @@
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-D-Qn-irL.cjs";
15
+ /** biome-ignore-all lint/performance/noBarrelFile: This is the public API for the management entrypoint */
16
+ /**
17
+ * This module exports shared application management utilities for the AIO Commerce SDK.
18
+ * @packageDocumentation
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-8TD-noge.cjs";
16
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 };
@@ -13,11 +13,11 @@
13
13
  */
14
14
 
15
15
  const require_rolldown_runtime = require("./rolldown-runtime-CoOt0iuZ.cjs");
16
- const require_webhooks = require("./webhooks-TvDm57xt.cjs");
16
+ const require_webhooks = require("./webhooks-EVlO8rxi.cjs");
17
17
  const require_constants = require("./constants-CgeVvu6f.cjs");
18
18
  const require_utils = require("./utils-DSS0XlXq.cjs");
19
19
  const require_environment = require("./environment-CW6M76gS.cjs");
20
- const require_utils$1 = require("./utils-B_Ypb2xF.cjs");
20
+ const require_utils$1 = require("./utils-gONsOMjJ.cjs");
21
21
  const require_logging = require("./logging-Emi7P923.cjs");
22
22
  let _adobe_aio_commerce_lib_api = require("@adobe/aio-commerce-lib-api");
23
23
  let _adobe_aio_commerce_lib_config = require("@adobe/aio-commerce-lib-config");
@@ -773,19 +773,31 @@ function enumerateComponents(adminUi) {
773
773
  });
774
774
  }
775
775
  }
776
- for (const viewButton of adminUi.order?.viewButtons ?? []) {
777
- const key = `order.view-button.${viewButton.id}`;
776
+ for (const entity of require_webhooks.ADMIN_UI_VIEW_BUTTON_ENTITIES) for (const viewButton of adminUi[entity]?.viewButtons ?? []) {
777
+ const key = `${entity}.view-button.${viewButton.id}`;
778
778
  components.set(key, {
779
779
  config: viewButton,
780
780
  key,
781
- label: `order view button "${viewButton.id}"`,
781
+ label: `${entity} view button "${viewButton.id}"`,
782
782
  ref: {
783
- entity: "order",
783
+ entity,
784
784
  id: viewButton.id,
785
785
  kind: "viewButtons"
786
786
  }
787
787
  });
788
788
  }
789
+ for (const replacedPage of adminUi.nativeUi?.replacedPages ?? []) {
790
+ const key = `nativeUi.replacedPages.${replacedPage.target}`;
791
+ components.set(key, {
792
+ config: replacedPage,
793
+ key,
794
+ label: `native UI page replacement "${replacedPage.target}"`,
795
+ ref: {
796
+ id: replacedPage.target,
797
+ kind: "replacedPages"
798
+ }
799
+ });
800
+ }
789
801
  return components;
790
802
  }
791
803
  /** Reads the baseline's persisted `extensionId`, or `null` when there is no baseline. */