@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,12 +12,16 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { t as defineConfig } from "../define-C12IwNNN.cjs";
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.cjs";
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-Buu1d7AB.cjs";
18
- import { Get } from "type-fest";
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-b00_dBkO.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-D57Rhsqg.cjs";
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-C0NksFmg.cjs";
19
23
  import * as v from "valibot";
20
- import "@adobe/aio-commerce-lib-config";
24
+ import { Get } from "type-fest";
21
25
  /**
22
26
  * Check whether a commerce app config path uses a supported TypeScript format.
23
27
  * @param configFilePath The path to the config file.
@@ -82,6 +86,44 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
82
86
  label: string;
83
87
  runtimeAction: string;
84
88
  } | undefined;
89
+ viewButtons?: ({
90
+ title?: string | undefined;
91
+ aclProtected?: boolean | undefined;
92
+ confirm?: {
93
+ message?: string | undefined;
94
+ title?: string | undefined;
95
+ } | undefined;
96
+ description?: string | undefined;
97
+ id: string;
98
+ label: string;
99
+ level?: 0 | 1 | -1 | undefined;
100
+ notifications?: {
101
+ error?: string | undefined;
102
+ success?: string | undefined;
103
+ } | undefined;
104
+ path: string;
105
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
106
+ sortOrder?: number | undefined;
107
+ type: "view";
108
+ } | {
109
+ aclProtected?: boolean | undefined;
110
+ confirm?: {
111
+ message?: string | undefined;
112
+ title?: string | undefined;
113
+ } | undefined;
114
+ description?: string | undefined;
115
+ id: string;
116
+ label: string;
117
+ level?: 0 | 1 | -1 | undefined;
118
+ notifications?: {
119
+ error?: string | undefined;
120
+ success?: string | undefined;
121
+ } | undefined;
122
+ runtimeAction: string;
123
+ sortOrder?: number | undefined;
124
+ timeout?: number | undefined;
125
+ type: "worker";
126
+ })[] | undefined;
85
127
  } | undefined;
86
128
  customer?: {
87
129
  gridColumns?: {
@@ -147,6 +189,44 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
147
189
  label: string;
148
190
  runtimeAction: string;
149
191
  } | undefined;
192
+ viewButtons?: ({
193
+ aclProtected?: boolean | undefined;
194
+ confirm?: {
195
+ message?: string | undefined;
196
+ title?: string | undefined;
197
+ } | undefined;
198
+ description?: string | undefined;
199
+ id: string;
200
+ label: string;
201
+ level?: 0 | 1 | -1 | undefined;
202
+ notifications?: {
203
+ error?: string | undefined;
204
+ success?: string | undefined;
205
+ } | undefined;
206
+ runtimeAction: string;
207
+ sortOrder?: number | undefined;
208
+ timeout?: number | undefined;
209
+ type: "worker";
210
+ } | {
211
+ title?: string | undefined;
212
+ aclProtected?: boolean | undefined;
213
+ confirm?: {
214
+ message?: string | undefined;
215
+ title?: string | undefined;
216
+ } | undefined;
217
+ description?: string | undefined;
218
+ id: string;
219
+ label: string;
220
+ level?: 0 | 1 | -1 | undefined;
221
+ notifications?: {
222
+ error?: string | undefined;
223
+ success?: string | undefined;
224
+ } | undefined;
225
+ path: string;
226
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
227
+ sortOrder?: number | undefined;
228
+ type: "view";
229
+ })[] | undefined;
150
230
  } | undefined;
151
231
  menu?: {
152
232
  aclProtected?: boolean | undefined;
@@ -157,6 +237,14 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
157
237
  parentMenu?: "sales" | "catalog" | "customers" | "marketing" | "content" | "reports" | "stores" | "system" | undefined;
158
238
  sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
159
239
  } | undefined;
240
+ nativeUi?: {
241
+ replacedPages: {
242
+ path: string;
243
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
244
+ target: "order.create" | "return.create";
245
+ title: string;
246
+ }[];
247
+ } | undefined;
160
248
  newsletter?: {
161
249
  gridColumns?: {
162
250
  columns: {
@@ -673,4 +761,4 @@ type AppConfigWithMetadata<T extends AnyCommerceAppConfig> = T & {
673
761
  * @param config - The configuration to check.
674
762
  */
675
763
  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 };
764
+ 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,7 +12,7 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { n as CommerceAppConfig } from "./app-Ch19CR6g.mjs";
15
+ import { n as CommerceAppConfig } from "./app-D57Rhsqg.cjs";
16
16
  /**
17
17
  * Helper to type-safely define the app config.
18
18
  * @param config - The app config to define.