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

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 (56) hide show
  1. package/CHANGELOG.md +21 -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-DREvtzyX.d.cts} +330 -4
  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 +96 -8
  15. package/dist/{es/define-C95h_wa0.d.mts → cjs/define-DW6Vzfku.d.cts} +1 -1
  16. package/dist/cjs/{index-D-Qn-irL.d.cts → index-B9MUZY-U.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.d.cts +8 -8
  19. package/dist/cjs/{index.node-CxdwPrOg.cjs → index.node-CcH8PCzC.cjs} +1 -1
  20. package/dist/cjs/management/index.cjs +1 -1
  21. package/dist/cjs/management/index.d.cts +6 -1
  22. package/dist/cjs/{management-C_JQpgVB.cjs → management-DeRZYcjS.cjs} +17 -5
  23. package/dist/cjs/{openapi-DFoMdZzI.cjs → openapi-CFqaMxUV.cjs} +426 -45
  24. package/dist/cjs/types-DslZGym8.d.cts +23 -0
  25. package/dist/cjs/{validate-B0rOILvG.cjs → validate-DAw7Pxp3.cjs} +1 -1
  26. package/dist/cjs/{router-DpB8wpR2.cjs → version-BACmFGD2.cjs} +77 -19
  27. package/dist/{es/webhooks-C9vMZZDZ.d.mts → cjs/webhooks-BMSr1l7c.d.cts} +268 -12
  28. package/dist/cjs/{webhooks-TvDm57xt.cjs → webhooks-EVlO8rxi.cjs} +53 -12
  29. package/dist/es/actions/app-config/index.d.mts +2 -2
  30. package/dist/es/actions/app-config/index.mjs +5 -5
  31. package/dist/es/actions/association/index.mjs +2 -2
  32. package/dist/es/actions/config/index.d.mts +1 -1
  33. package/dist/es/actions/config/index.mjs +2 -2
  34. package/dist/es/actions/installation/index.d.mts +4 -3
  35. package/dist/es/actions/installation/index.mjs +62 -22
  36. package/dist/es/actions/scope-tree/index.mjs +2 -2
  37. package/dist/es/{app-Ch19CR6g.d.mts → app-DREvtzyX.d.mts} +330 -4
  38. package/dist/es/commands/index.mjs +27 -12
  39. package/dist/es/config/index.browser.d.mts +2 -1
  40. package/dist/es/config/index.node.d.mts +95 -6
  41. package/dist/es/config/index.node.mjs +3 -3
  42. package/dist/{cjs/define-C12IwNNN.d.cts → es/define-B6cjhz1J.d.mts} +1 -1
  43. package/dist/es/{index-CgsSXApi.d.mts → index-DUJtT78x.d.mts} +2 -2
  44. package/dist/es/{index-VgCNSlLP.d.mts → index-zgc3l2nj.d.mts} +2 -2
  45. package/dist/es/index.d.mts +8 -8
  46. package/dist/es/{index.node-C8EXBW94.mjs → index.node-ClvSfs5w.mjs} +1 -1
  47. package/dist/es/management/index.d.mts +6 -1
  48. package/dist/es/management/index.mjs +1 -1
  49. package/dist/es/{management-DKDR7-fX.mjs → management-CG_4z2Ck.mjs} +17 -5
  50. package/dist/es/{openapi-E_1RFhAr.mjs → openapi-BUIws500.mjs} +426 -45
  51. package/dist/es/types-DslZGym8.d.mts +23 -0
  52. package/dist/es/{validate-CiJIjyOr.mjs → validate-BszbuhiE.mjs} +1 -1
  53. package/dist/es/{router-C23GIyGQ.mjs → version-CabzC7R9.mjs} +71 -20
  54. package/dist/{cjs/webhooks-Buu1d7AB.d.cts → es/webhooks-BLgKadnn.d.mts} +268 -12
  55. package/dist/es/{webhooks-CfrYeMy_.mjs → webhooks-DRPXVMMo.mjs} +48 -13
  56. package/package.json +4 -4
@@ -12,9 +12,14 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { t as defineConfig } from "../define-C95h_wa0.mjs";
16
- import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-Ch19CR6g.mjs";
17
- import { A as AdminUiConfig, B as hasAdminUi, C as ExternalEventSource, D as hasEventing, E as hasCommerceEvents, F as Menu, I as Notifications, L as OrderViewButton, M as GridColumn, N as GridColumns, O as hasExternalEvents, P as MassAction, R as ViewMassAction, S as ExternalEvent, T as ExternalEventsConfig, V as hasBackendUiV2Components, _ 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 WorkerMassAction } from "../webhooks-C9vMZZDZ.mjs";
15
+ /** biome-ignore-all lint/performance/noBarrelFile: This is the public API for the config entrypoint */
16
+ /**
17
+ * This module exports shared config utilities for the AIO Commerce SDK.
18
+ * @packageDocumentation
19
+ */
20
+ import { t as defineConfig } from "../define-B6cjhz1J.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-DREvtzyX.mjs";
22
+ import { A as AdminUiConfig, B as OrderViewButton, C as ExternalEventSource, D as hasEventing, E as hasCommerceEvents, F as InvoiceViewButton, H as WorkerMassAction, 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 hasAdminUi, V as ViewMassAction, W as hasBackendUiV2Components, _ 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-BLgKadnn.mjs";
18
23
  import "@adobe/aio-commerce-lib-config";
19
24
  import * as v from "valibot";
20
25
  import { Get } from "type-fest";
@@ -82,6 +87,44 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
82
87
  label: string;
83
88
  runtimeAction: string;
84
89
  } | undefined;
90
+ viewButtons?: ({
91
+ title?: string | undefined;
92
+ aclProtected?: boolean | undefined;
93
+ confirm?: {
94
+ message?: string | undefined;
95
+ title?: string | undefined;
96
+ } | undefined;
97
+ description?: string | undefined;
98
+ id: string;
99
+ label: string;
100
+ level?: 0 | 1 | -1 | undefined;
101
+ notifications?: {
102
+ error?: string | undefined;
103
+ success?: string | undefined;
104
+ } | undefined;
105
+ path: string;
106
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
107
+ sortOrder?: number | undefined;
108
+ type: "view";
109
+ } | {
110
+ aclProtected?: boolean | undefined;
111
+ confirm?: {
112
+ message?: string | undefined;
113
+ title?: string | undefined;
114
+ } | undefined;
115
+ description?: string | undefined;
116
+ id: string;
117
+ label: string;
118
+ level?: 0 | 1 | -1 | undefined;
119
+ notifications?: {
120
+ error?: string | undefined;
121
+ success?: string | undefined;
122
+ } | undefined;
123
+ runtimeAction: string;
124
+ sortOrder?: number | undefined;
125
+ timeout?: number | undefined;
126
+ type: "worker";
127
+ })[] | undefined;
85
128
  } | undefined;
86
129
  customer?: {
87
130
  gridColumns?: {
@@ -147,6 +190,44 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
147
190
  label: string;
148
191
  runtimeAction: string;
149
192
  } | undefined;
193
+ viewButtons?: ({
194
+ aclProtected?: boolean | undefined;
195
+ confirm?: {
196
+ message?: string | undefined;
197
+ title?: string | undefined;
198
+ } | undefined;
199
+ description?: string | undefined;
200
+ id: string;
201
+ label: string;
202
+ level?: 0 | 1 | -1 | undefined;
203
+ notifications?: {
204
+ error?: string | undefined;
205
+ success?: string | undefined;
206
+ } | undefined;
207
+ runtimeAction: string;
208
+ sortOrder?: number | undefined;
209
+ timeout?: number | undefined;
210
+ type: "worker";
211
+ } | {
212
+ title?: string | undefined;
213
+ aclProtected?: boolean | undefined;
214
+ confirm?: {
215
+ message?: string | undefined;
216
+ title?: string | undefined;
217
+ } | undefined;
218
+ description?: string | undefined;
219
+ id: string;
220
+ label: string;
221
+ level?: 0 | 1 | -1 | undefined;
222
+ notifications?: {
223
+ error?: string | undefined;
224
+ success?: string | undefined;
225
+ } | undefined;
226
+ path: string;
227
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
228
+ sortOrder?: number | undefined;
229
+ type: "view";
230
+ })[] | undefined;
150
231
  } | undefined;
151
232
  menu?: {
152
233
  aclProtected?: boolean | undefined;
@@ -157,6 +238,14 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
157
238
  parentMenu?: "sales" | "catalog" | "customers" | "marketing" | "content" | "reports" | "stores" | "system" | undefined;
158
239
  sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
159
240
  } | undefined;
241
+ nativeUi?: {
242
+ replacedPages: {
243
+ path: string;
244
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
245
+ target: "order.create" | "return.create";
246
+ title: string;
247
+ }[];
248
+ } | undefined;
160
249
  newsletter?: {
161
250
  gridColumns?: {
162
251
  columns: {
@@ -508,7 +597,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
508
597
  value: string;
509
598
  }[] | undefined;
510
599
  hook_name: string;
511
- method: "POST" | "PUT" | "DELETE" | "GET";
600
+ method: "GET" | "POST" | "PUT" | "DELETE";
512
601
  priority?: number | undefined;
513
602
  required?: boolean | undefined;
514
603
  rules?: {
@@ -541,7 +630,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
541
630
  value: string;
542
631
  }[] | undefined;
543
632
  hook_name: string;
544
- method: "POST" | "PUT" | "DELETE" | "GET";
633
+ method: "GET" | "POST" | "PUT" | "DELETE";
545
634
  priority?: number | undefined;
546
635
  required?: boolean | undefined;
547
636
  rules?: {
@@ -673,4 +762,4 @@ type AppConfigWithMetadata<T extends AnyCommerceAppConfig> = T & {
673
762
  * @param config - The configuration to check.
674
763
  */
675
764
  export declare function hasMetadata<T extends AnyCommerceAppConfig>(config: T): config is T & AppConfigWithMetadata<T>;
676
- export { type AdminUiConfig, type AdminUiConfiguration, type AppConfigWithBusinessConfig, type AppConfigWithBusinessConfigSchema, type AppEvent, type ApplicationMetadata, type CommerceAppConfig, type CommerceAppConfigDomain, CommerceAppConfigSchemas, type CommerceEvent, type CommerceEventSource, type CommerceEventSourceSchema, type CommerceEventsConfig, type EventProvider, type EventingConfiguration, type EventingSchema, type EventsConfig, type ExternalEvent, type ExternalEventSource, type ExternalEventSourceSchema, type ExternalEventsConfig, type GridColumn, type GridColumns, type MassAction, type Menu, type Notifications, type OrderViewButton, type ViewMassAction, type WebhookDefinition, type WebhookEntry, type WebhookField, type WebhookHeader, type WebhookRule, type WebhooksConfig, type WebhooksConfiguration, type WebhooksSchema, type WorkerMassAction, defineConfig, getConfigDomains, hasAdminUi, hasBackendUiV2Components, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasWebhooks };
765
+ export { type AdminUiConfig, type AdminUiConfiguration, type AppConfigWithBusinessConfig, type AppConfigWithBusinessConfigSchema, type AppEvent, type ApplicationMetadata, type CommerceAppConfig, type CommerceAppConfigDomain, CommerceAppConfigSchemas, type CommerceEvent, type CommerceEventSource, type CommerceEventSourceSchema, type CommerceEventsConfig, type CreditMemoViewButton, type EventProvider, type EventingConfiguration, type EventingSchema, type EventsConfig, type ExternalEvent, type ExternalEventSource, type ExternalEventSourceSchema, type ExternalEventsConfig, type GridColumn, type GridColumns, type InvoiceViewButton, type MassAction, type Menu, type NativeUiReplacedPage, type Notifications, type OrderViewButton, type ViewMassAction, type WebhookDefinition, type WebhookEntry, type WebhookField, type WebhookHeader, type WebhookRule, type WebhooksConfig, type WebhooksConfiguration, type WebhooksSchema, type WorkerMassAction, defineConfig, getConfigDomains, hasAdminUi, hasBackendUiV2Components, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasWebhooks };
@@ -12,9 +12,9 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { a as resolveCommerceAppConfig, i as readCommerceAppConfig, n as isTypeScriptConfig, r as parseCommerceAppConfig } from "../index.node-C8EXBW94.mjs";
15
+ import { a as resolveCommerceAppConfig, i as readCommerceAppConfig, n as isTypeScriptConfig, r as parseCommerceAppConfig } from "../index.node-ClvSfs5w.mjs";
16
16
  import { t as defineConfig } from "../define-BTmPnTba.mjs";
17
- import { a as hasCustomInstallationSteps, c as hasEventing, i as hasCustomInstallation, l as hasExternalEvents, m as hasBackendUiV2Components, n as hasWebhooks, p as hasAdminUi, s as hasCommerceEvents } from "../webhooks-CfrYeMy_.mjs";
18
- import { a as CommerceAppConfigSchemas, c as hasMetadata, l as hasBusinessConfig, n as validateCommerceAppConfigDomain, o as getConfigDomains, s as hasConfigDomain, t as validateCommerceAppConfig, u as hasBusinessConfigSchema } from "../validate-CiJIjyOr.mjs";
17
+ import { a as hasCustomInstallationSteps, c as hasEventing, h as hasBackendUiV2Components, i as hasCustomInstallation, l as hasExternalEvents, m as hasAdminUi, n as hasWebhooks, s as hasCommerceEvents } from "../webhooks-DRPXVMMo.mjs";
18
+ import { a as CommerceAppConfigSchemas, c as hasMetadata, l as hasBusinessConfig, n as validateCommerceAppConfigDomain, o as getConfigDomains, s as hasConfigDomain, t as validateCommerceAppConfig, u as hasBusinessConfigSchema } from "../validate-BszbuhiE.mjs";
19
19
 
20
20
  export { CommerceAppConfigSchemas, defineConfig, getConfigDomains, hasAdminUi, hasBackendUiV2Components, hasBusinessConfig, hasBusinessConfigSchema, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasMetadata, hasWebhooks, isTypeScriptConfig, parseCommerceAppConfig, readCommerceAppConfig, resolveCommerceAppConfig, validateCommerceAppConfig, validateCommerceAppConfigDomain };
@@ -12,7 +12,7 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { n as CommerceAppConfig } from "./app-Ch19CR6g.cjs";
15
+ import { n as CommerceAppConfig } from "./app-DREvtzyX.mjs";
16
16
  /**
17
17
  * Helper to type-safely define the app config.
18
18
  * @param config - The app config to define.
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
  import "@adobe/aio-commerce-lib-core/responses";
16
- import AioLogger from "@adobe/aio-lib-core-logging";
17
- import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
16
+ import "@adobe/aio-lib-core-logging";
17
+ import "@adobe/aio-commerce-lib-core/params";
18
18
  import "@standard-schema/spec";
19
19
  import "type-fest";
@@ -12,8 +12,8 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { r as CommerceAppConfigOutputModel } from "./app-Ch19CR6g.mjs";
16
- import { k as AdminUiComponentConfig, n as WebhookEntry, p as AppEvent, u as CustomInstallationStep } from "./webhooks-C9vMZZDZ.mjs";
15
+ import { r as CommerceAppConfigOutputModel } from "./app-DREvtzyX.mjs";
16
+ import { k as AdminUiComponentConfig, n as WebhookEntry, p as AppEvent, u as CustomInstallationStep } from "./webhooks-BLgKadnn.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,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.mjs";
15
23
  import { AdobeCommerceHttpClient, CommerceHttpClientParams } from "@adobe/aio-commerce-lib-api";
16
24
  import { CommerceSdkErrorBase, CommerceSdkErrorBaseOptions } from "@adobe/aio-commerce-lib-core/error";
17
25
  import { ImsAuthParams, ImsAuthProvider } from "@adobe/aio-commerce-lib-auth";
18
- import { CommerceEnv } from "@adobe/aio-commerce-lib-core/commerce";
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
  *
@@ -12,7 +12,7 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { t as validateCommerceAppConfig } from "./validate-CiJIjyOr.mjs";
15
+ import { t as validateCommerceAppConfig } from "./validate-BszbuhiE.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,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-VgCNSlLP.mjs";
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 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-zgc3l2nj.mjs";
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 };
@@ -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-DKDR7-fX.mjs";
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-CG_4z2Ck.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, n as hasWebhooks, p as hasAdminUi, s as hasCommerceEvents, u as ADMIN_UI_GRID_COLUMN_ENTITIES } from "./webhooks-CfrYeMy_.mjs";
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-DRPXVMMo.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.order?.viewButtons ?? []) {
773
- const key = `order.view-button.${viewButton.id}`;
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: `order view button "${viewButton.id}"`,
777
+ label: `${entity} view button "${viewButton.id}"`,
778
778
  ref: {
779
- entity: "order",
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. */