@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.
Files changed (48) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/cjs/actions/app-config/index.cjs +5 -5
  3. package/dist/cjs/actions/app-config/index.d.cts +1 -1
  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/installation/index.cjs +5 -5
  7. package/dist/cjs/actions/installation/index.d.cts +2 -2
  8. package/dist/cjs/actions/scope-tree/index.cjs +2 -2
  9. package/dist/cjs/{app-Ch19CR6g.d.cts → app-CiZuhrsm.d.cts} +326 -0
  10. package/dist/cjs/commands/index.cjs +10 -9
  11. package/dist/cjs/config/index.browser.d.cts +1 -1
  12. package/dist/cjs/config/index.node.cjs +3 -3
  13. package/dist/cjs/config/index.node.d.cts +88 -4
  14. package/dist/{es/define-C95h_wa0.d.mts → cjs/define-CZRjG5N_.d.cts} +1 -1
  15. package/dist/cjs/{index-D-Qn-irL.d.cts → index-Bu2X-HUh.d.cts} +2 -2
  16. package/dist/cjs/{index.node-CxdwPrOg.cjs → index.node-Boszndri.cjs} +1 -1
  17. package/dist/cjs/management/index.cjs +1 -1
  18. package/dist/cjs/management/index.d.cts +1 -1
  19. package/dist/cjs/{management-C_JQpgVB.cjs → management-C_cVbr0s.cjs} +17 -5
  20. package/dist/cjs/{openapi-DFoMdZzI.cjs → openapi-c06taOv1.cjs} +412 -45
  21. package/dist/cjs/{validate-B0rOILvG.cjs → validate-CunJ4fUD.cjs} +1 -1
  22. package/dist/cjs/{router-DpB8wpR2.cjs → version-CUu8Ks59.cjs} +77 -19
  23. package/dist/cjs/{webhooks-TvDm57xt.cjs → webhooks-C5ONLbQ4.cjs} +53 -12
  24. package/dist/{es/webhooks-C9vMZZDZ.d.mts → cjs/webhooks-DX7km8wk.d.cts} +266 -10
  25. package/dist/es/actions/app-config/index.d.mts +1 -1
  26. package/dist/es/actions/app-config/index.mjs +5 -5
  27. package/dist/es/actions/association/index.mjs +2 -2
  28. package/dist/es/actions/config/index.mjs +2 -2
  29. package/dist/es/actions/installation/index.d.mts +2 -2
  30. package/dist/es/actions/installation/index.mjs +5 -5
  31. package/dist/es/actions/scope-tree/index.mjs +2 -2
  32. package/dist/es/{app-Ch19CR6g.d.mts → app-CiZuhrsm.d.mts} +326 -0
  33. package/dist/es/commands/index.mjs +10 -9
  34. package/dist/es/config/index.browser.d.mts +1 -1
  35. package/dist/es/config/index.node.d.mts +88 -4
  36. package/dist/es/config/index.node.mjs +3 -3
  37. package/dist/{cjs/define-C12IwNNN.d.cts → es/define-9bwRE_UG.d.mts} +1 -1
  38. package/dist/es/{index-VgCNSlLP.d.mts → index-Cho-eRFD.d.mts} +2 -2
  39. package/dist/es/{index.node-C8EXBW94.mjs → index.node-BVO6sC7z.mjs} +1 -1
  40. package/dist/es/management/index.d.mts +1 -1
  41. package/dist/es/management/index.mjs +1 -1
  42. package/dist/es/{management-DKDR7-fX.mjs → management-BYmbjhGb.mjs} +17 -5
  43. package/dist/es/{openapi-E_1RFhAr.mjs → openapi-C_TGWLou.mjs} +412 -45
  44. package/dist/es/{validate-CiJIjyOr.mjs → validate-D-Oh-sxE.mjs} +1 -1
  45. package/dist/es/{router-C23GIyGQ.mjs → version-C-Pkqohl.mjs} +71 -20
  46. package/dist/{cjs/webhooks-Buu1d7AB.d.cts → es/webhooks-B7UjO8dd.d.mts} +266 -10
  47. package/dist/es/{webhooks-CfrYeMy_.mjs → webhooks-CMb_05b6.mjs} +48 -13
  48. package/package.json +3 -3
@@ -76,6 +76,81 @@ declare const CommerceAppConfigSchemas: {
76
76
  readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
77
77
  readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
78
78
  }, undefined>, undefined>;
79
+ readonly viewButtons: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
80
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
81
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
82
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
83
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
84
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
85
+ }, undefined>, undefined>;
86
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
87
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
88
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
89
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
90
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
91
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
92
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
93
+ }, undefined>, undefined>;
94
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
95
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
96
+ readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
97
+ readonly type: v.LiteralSchema<"view", undefined>;
98
+ }, undefined>, v.StrictObjectSchema<{
99
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
100
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
101
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
102
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
103
+ }, undefined>, undefined>;
104
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
105
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
106
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
107
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
108
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
109
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
110
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
111
+ }, undefined>, undefined>;
112
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
113
+ readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
114
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
115
+ readonly type: v.LiteralSchema<"worker", undefined>;
116
+ }, undefined>], undefined>, undefined>, v.CheckAction<({
117
+ title?: string | undefined;
118
+ aclProtected?: boolean | undefined;
119
+ confirm?: {
120
+ message?: string | undefined;
121
+ title?: string | undefined;
122
+ } | undefined;
123
+ description?: string | undefined;
124
+ id: string;
125
+ label: string;
126
+ level?: 0 | 1 | -1 | undefined;
127
+ notifications?: {
128
+ error?: string | undefined;
129
+ success?: string | undefined;
130
+ } | undefined;
131
+ path: string;
132
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
133
+ sortOrder?: number | undefined;
134
+ type: "view";
135
+ } | {
136
+ aclProtected?: boolean | undefined;
137
+ confirm?: {
138
+ message?: string | undefined;
139
+ title?: string | undefined;
140
+ } | undefined;
141
+ description?: string | undefined;
142
+ id: string;
143
+ label: string;
144
+ level?: 0 | 1 | -1 | undefined;
145
+ notifications?: {
146
+ error?: string | undefined;
147
+ success?: string | undefined;
148
+ } | undefined;
149
+ runtimeAction: string;
150
+ sortOrder?: number | undefined;
151
+ timeout?: number | undefined;
152
+ type: "worker";
153
+ })[], "Credit memo view button ids must be unique after Commerce id sanitization.">]>, undefined>;
79
154
  }, undefined>, undefined>;
80
155
  readonly customer: v.OptionalSchema<v.ObjectSchema<{
81
156
  readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
@@ -201,6 +276,81 @@ declare const CommerceAppConfigSchemas: {
201
276
  readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
202
277
  readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
203
278
  }, undefined>, undefined>;
279
+ readonly viewButtons: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
280
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
281
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
282
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
283
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
284
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
285
+ }, undefined>, undefined>;
286
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
287
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
288
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
289
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
290
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
291
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
292
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
293
+ }, undefined>, undefined>;
294
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
295
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
296
+ readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
297
+ readonly type: v.LiteralSchema<"view", undefined>;
298
+ }, undefined>, v.StrictObjectSchema<{
299
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
300
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
301
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
302
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
303
+ }, undefined>, undefined>;
304
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
305
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
306
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
307
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
308
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
309
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
310
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
311
+ }, undefined>, undefined>;
312
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
313
+ readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
314
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
315
+ readonly type: v.LiteralSchema<"worker", undefined>;
316
+ }, undefined>], undefined>, undefined>, v.CheckAction<({
317
+ aclProtected?: boolean | undefined;
318
+ confirm?: {
319
+ message?: string | undefined;
320
+ title?: string | undefined;
321
+ } | undefined;
322
+ description?: string | undefined;
323
+ id: string;
324
+ label: string;
325
+ level?: 0 | 1 | -1 | undefined;
326
+ notifications?: {
327
+ error?: string | undefined;
328
+ success?: string | undefined;
329
+ } | undefined;
330
+ runtimeAction: string;
331
+ sortOrder?: number | undefined;
332
+ timeout?: number | undefined;
333
+ type: "worker";
334
+ } | {
335
+ title?: string | undefined;
336
+ aclProtected?: boolean | undefined;
337
+ confirm?: {
338
+ message?: string | undefined;
339
+ title?: string | undefined;
340
+ } | undefined;
341
+ description?: string | undefined;
342
+ id: string;
343
+ label: string;
344
+ level?: 0 | 1 | -1 | undefined;
345
+ notifications?: {
346
+ error?: string | undefined;
347
+ success?: string | undefined;
348
+ } | undefined;
349
+ path: string;
350
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
351
+ sortOrder?: number | undefined;
352
+ type: "view";
353
+ })[], "Invoice view button ids must be unique after Commerce id sanitization.">]>, undefined>;
204
354
  }, undefined>, undefined>;
205
355
  readonly menu: v.OptionalSchema<v.ObjectSchema<{
206
356
  readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
@@ -211,6 +361,19 @@ declare const CommerceAppConfigSchemas: {
211
361
  readonly parentMenu: v.OptionalSchema<v.PicklistSchema<readonly ["sales", "catalog", "customers", "marketing", "content", "reports", "stores", "system"], "parentMenu must be a known Commerce Admin menu ID">, undefined>;
212
362
  readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
213
363
  }, undefined>, undefined>;
364
+ readonly nativeUi: v.OptionalSchema<v.ObjectSchema<{
365
+ readonly replacedPages: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
366
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
367
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
368
+ readonly target: v.PicklistSchema<readonly ["order.create"], `Invalid native UI replaced page target. Accepted values are: ${string}`>;
369
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
370
+ }, undefined>, undefined>, v.CheckAction<{
371
+ path: string;
372
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
373
+ target: "order.create";
374
+ title: string;
375
+ }[], "Native UI replaced page targets must be unique.">]>;
376
+ }, undefined>, undefined>;
214
377
  readonly newsletter: v.OptionalSchema<v.ObjectSchema<{
215
378
  readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
216
379
  readonly columns: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
@@ -1462,6 +1625,81 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
1462
1625
  readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1463
1626
  readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1464
1627
  }, undefined>, undefined>;
1628
+ readonly viewButtons: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
1629
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1630
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1631
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
1632
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1633
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1634
+ }, undefined>, undefined>;
1635
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1636
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1637
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1638
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
1639
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
1640
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1641
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1642
+ }, undefined>, undefined>;
1643
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1644
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
1645
+ readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1646
+ readonly type: v.LiteralSchema<"view", undefined>;
1647
+ }, undefined>, v.StrictObjectSchema<{
1648
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1649
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
1650
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1651
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1652
+ }, undefined>, undefined>;
1653
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1654
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1655
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1656
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
1657
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
1658
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1659
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1660
+ }, undefined>, undefined>;
1661
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1662
+ readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1663
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1664
+ readonly type: v.LiteralSchema<"worker", undefined>;
1665
+ }, undefined>], undefined>, undefined>, v.CheckAction<({
1666
+ title?: string | undefined;
1667
+ aclProtected?: boolean | undefined;
1668
+ confirm?: {
1669
+ message?: string | undefined;
1670
+ title?: string | undefined;
1671
+ } | undefined;
1672
+ description?: string | undefined;
1673
+ id: string;
1674
+ label: string;
1675
+ level?: 0 | 1 | -1 | undefined;
1676
+ notifications?: {
1677
+ error?: string | undefined;
1678
+ success?: string | undefined;
1679
+ } | undefined;
1680
+ path: string;
1681
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
1682
+ sortOrder?: number | undefined;
1683
+ type: "view";
1684
+ } | {
1685
+ aclProtected?: boolean | undefined;
1686
+ confirm?: {
1687
+ message?: string | undefined;
1688
+ title?: string | undefined;
1689
+ } | undefined;
1690
+ description?: string | undefined;
1691
+ id: string;
1692
+ label: string;
1693
+ level?: 0 | 1 | -1 | undefined;
1694
+ notifications?: {
1695
+ error?: string | undefined;
1696
+ success?: string | undefined;
1697
+ } | undefined;
1698
+ runtimeAction: string;
1699
+ sortOrder?: number | undefined;
1700
+ timeout?: number | undefined;
1701
+ type: "worker";
1702
+ })[], "Credit memo view button ids must be unique after Commerce id sanitization.">]>, undefined>;
1465
1703
  }, undefined>, undefined>;
1466
1704
  readonly customer: v.OptionalSchema<v.ObjectSchema<{
1467
1705
  readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
@@ -1587,6 +1825,81 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
1587
1825
  readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1588
1826
  readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1589
1827
  }, undefined>, undefined>;
1828
+ readonly viewButtons: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
1829
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1830
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1831
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
1832
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1833
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1834
+ }, undefined>, undefined>;
1835
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1836
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1837
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1838
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
1839
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
1840
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1841
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1842
+ }, undefined>, undefined>;
1843
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1844
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
1845
+ readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1846
+ readonly type: v.LiteralSchema<"view", undefined>;
1847
+ }, undefined>, v.StrictObjectSchema<{
1848
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1849
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
1850
+ readonly message: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1851
+ readonly title: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1852
+ }, undefined>, undefined>;
1853
+ readonly description: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1854
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1855
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1856
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
1857
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
1858
+ readonly error: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1859
+ readonly success: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, undefined>;
1860
+ }, undefined>, undefined>;
1861
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1862
+ readonly sortOrder: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1863
+ readonly timeout: v.OptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<`Expected a number value for '${string}'`>, v.MinValueAction<number, 0, `The value of ${string} must be a non-negative number`>]>, undefined>;
1864
+ readonly type: v.LiteralSchema<"worker", undefined>;
1865
+ }, undefined>], undefined>, undefined>, v.CheckAction<({
1866
+ aclProtected?: boolean | undefined;
1867
+ confirm?: {
1868
+ message?: string | undefined;
1869
+ title?: string | undefined;
1870
+ } | undefined;
1871
+ description?: string | undefined;
1872
+ id: string;
1873
+ label: string;
1874
+ level?: 0 | 1 | -1 | undefined;
1875
+ notifications?: {
1876
+ error?: string | undefined;
1877
+ success?: string | undefined;
1878
+ } | undefined;
1879
+ runtimeAction: string;
1880
+ sortOrder?: number | undefined;
1881
+ timeout?: number | undefined;
1882
+ type: "worker";
1883
+ } | {
1884
+ title?: string | undefined;
1885
+ aclProtected?: boolean | undefined;
1886
+ confirm?: {
1887
+ message?: string | undefined;
1888
+ title?: string | undefined;
1889
+ } | undefined;
1890
+ description?: string | undefined;
1891
+ id: string;
1892
+ label: string;
1893
+ level?: 0 | 1 | -1 | undefined;
1894
+ notifications?: {
1895
+ error?: string | undefined;
1896
+ success?: string | undefined;
1897
+ } | undefined;
1898
+ path: string;
1899
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
1900
+ sortOrder?: number | undefined;
1901
+ type: "view";
1902
+ })[], "Invoice view button ids must be unique after Commerce id sanitization.">]>, undefined>;
1590
1903
  }, undefined>, undefined>;
1591
1904
  readonly menu: v.OptionalSchema<v.ObjectSchema<{
1592
1905
  readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
@@ -1597,6 +1910,19 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
1597
1910
  readonly parentMenu: v.OptionalSchema<v.PicklistSchema<readonly ["sales", "catalog", "customers", "marketing", "content", "reports", "stores", "system"], "parentMenu must be a known Commerce Admin menu ID">, undefined>;
1598
1911
  readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
1599
1912
  }, undefined>, undefined>;
1913
+ readonly nativeUi: v.OptionalSchema<v.ObjectSchema<{
1914
+ readonly replacedPages: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
1915
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1916
+ readonly sandboxPermissions: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["allow-downloads", "allow-modals", "allow-popups"], `Invalid sandbox permission. Accepted values are: ${string}`>, undefined>, v.MinLengthAction<("allow-downloads" | "allow-modals" | "allow-popups")[], 1, "sandboxPermissions must contain at least one permission when it's defined">, v.CheckAction<("allow-downloads" | "allow-modals" | "allow-popups")[], "Duplicate permissions are not allowed in sandboxPermissions">]>, undefined>;
1917
+ readonly target: v.PicklistSchema<readonly ["order.create"], `Invalid native UI replaced page target. Accepted values are: ${string}`>;
1918
+ readonly title: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1919
+ }, undefined>, undefined>, v.CheckAction<{
1920
+ path: string;
1921
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
1922
+ target: "order.create";
1923
+ title: string;
1924
+ }[], "Native UI replaced page targets must be unique.">]>;
1925
+ }, undefined>, undefined>;
1600
1926
  readonly newsletter: v.OptionalSchema<v.ObjectSchema<{
1601
1927
  readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
1602
1928
  readonly columns: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
@@ -13,9 +13,9 @@
13
13
  * governing permissions and limitations under the License.
14
14
  */
15
15
 
16
- import { _ as makeOutputDirFor, a as resolveCommerceAppConfig, c as getExecCommand, d as getPackageExecutionCommand, f as getProjectInstallCommand, g as loadPackageJson, h as isESM, i as readCommerceAppConfig, l as getInstallCommand, m as getRunScriptCommand, n as isTypeScriptConfig, o as appendCommand, p as getProjectRootDirectory, r as parseCommerceAppConfig, s as detectPackageManager, t as hasNamedCommerceAppConfigExports, u as getPackageDependencyInstallPlan, v as mergePackageJsonDependencies, y as readPackageJson } from "../index.node-C8EXBW94.mjs";
17
- import { a as hasCustomInstallationSteps, d as ADMIN_UI_MASS_ACTION_ENTITIES, m as hasBackendUiV2Components, u as ADMIN_UI_GRID_COLUMN_ENTITIES } from "../webhooks-CfrYeMy_.mjs";
18
- import { o as getConfigDomains, t as validateCommerceAppConfig, u as hasBusinessConfigSchema } from "../validate-CiJIjyOr.mjs";
16
+ import { _ as makeOutputDirFor, a as resolveCommerceAppConfig, c as getExecCommand, d as getPackageExecutionCommand, f as getProjectInstallCommand, g as loadPackageJson, h as isESM, i as readCommerceAppConfig, l as getInstallCommand, m as getRunScriptCommand, n as isTypeScriptConfig, o as appendCommand, p as getProjectRootDirectory, r as parseCommerceAppConfig, s as detectPackageManager, t as hasNamedCommerceAppConfigExports, u as getPackageDependencyInstallPlan, v as mergePackageJsonDependencies, y as readPackageJson } from "../index.node-BVO6sC7z.mjs";
17
+ import { a as hasCustomInstallationSteps, d as ADMIN_UI_MASS_ACTION_ENTITIES, f as ADMIN_UI_VIEW_BUTTON_ENTITIES, h as hasBackendUiV2Components, u as ADMIN_UI_GRID_COLUMN_ENTITIES } from "../webhooks-CMb_05b6.mjs";
18
+ import { o as getConfigDomains, t as validateCommerceAppConfig, u as hasBusinessConfigSchema } from "../validate-D-Oh-sxE.mjs";
19
19
  import { t as parseOrThrow } from "../utils-G-EDWmew.mjs";
20
20
  import { r as nonEmptyStringValueSchema } from "../schemas-DYMNbFdX.mjs";
21
21
  import { t as inspect } from "../logging-B1xb568A.mjs";
@@ -357,7 +357,7 @@ const LEADING_DOT_SLASH_PATTERN$1 = /^\.\//u;
357
357
  const WEB_SOURCE_DEPENDENCIES = [
358
358
  {
359
359
  name: "@adobe/aio-commerce-lib-admin-ui",
360
- version: "^1.2.0"
360
+ version: "^1.3.0-beta-20261105172845"
361
361
  },
362
362
  {
363
363
  name: "react",
@@ -691,7 +691,7 @@ function buildBusinessConfigurationExtConfig() {
691
691
  function collectUniqueRuntimeActions(adminUi) {
692
692
  const gridRuntimeActions = ADMIN_UI_GRID_COLUMN_ENTITIES.map((key) => adminUi?.[key]?.gridColumns?.runtimeAction).filter((action) => action !== void 0);
693
693
  const massActionRuntimeActions = ADMIN_UI_MASS_ACTION_ENTITIES.flatMap((key) => adminUi?.[key]?.massActions ?? []).filter((action) => action.type === "worker").map((action) => action.runtimeAction);
694
- const viewButtonRuntimeActions = (adminUi?.order?.viewButtons ?? []).filter((button) => button.type === "worker").map((button) => button.runtimeAction);
694
+ const viewButtonRuntimeActions = ADMIN_UI_VIEW_BUTTON_ENTITIES.flatMap((key) => adminUi?.[key]?.viewButtons ?? []).filter((button) => button.type === "worker").map((button) => button.runtimeAction);
695
695
  return [.../* @__PURE__ */ new Set([
696
696
  ...gridRuntimeActions,
697
697
  ...massActionRuntimeActions,
@@ -701,13 +701,14 @@ function collectUniqueRuntimeActions(adminUi) {
701
701
  /** Returns true if the `adminUi` config requires a `view` operation and `web` source in ext.config.yaml. */
702
702
  function requiresWebSource(adminUi) {
703
703
  if (adminUi?.menu !== void 0) return true;
704
- if ((adminUi?.order?.viewButtons ?? []).some((button) => button.type === "view")) return true;
704
+ if (adminUi?.nativeUi?.replacedPages.length) return true;
705
+ if (ADMIN_UI_VIEW_BUTTON_ENTITIES.flatMap((key) => adminUi?.[key]?.viewButtons ?? []).some((button) => button.type === "view")) return true;
705
706
  return ADMIN_UI_MASS_ACTION_ENTITIES.flatMap((key) => adminUi?.[key]?.massActions ?? []).some((action) => action.type === "view");
706
707
  }
707
708
  /**
708
709
  * Builds the ext.config.yaml for the Admin UI v2 extension (`commerce/backend-ui/2`).
709
710
  * Derives `workerProcess` and `view` operation declarations from `adminUi` config.
710
- * Adds a `view` operation and `web` source when view-type entries or `adminUi.menu` is configured.
711
+ * Adds a `view` operation and `web` source when view-type entries, native UI replaced pages, or `adminUi.menu` is configured.
711
712
  * @param appConfig - Parsed app configuration.
712
713
  */
713
714
  function buildAdminUiV2ExtConfig(appConfig) {
@@ -3019,7 +3020,7 @@ async function ensureAppConfig(domains, config, projectRoot) {
3019
3020
  */
3020
3021
  function installDependencies(packageManager, domains, projectRoot) {
3021
3022
  const packages = [];
3022
- if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.8.1`);
3023
+ if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.8.2-beta-20261105172845`);
3023
3024
  if (packages.length === 0) {
3024
3025
  consola.info("No additional domain dependencies to install.");
3025
3026
  return;
@@ -3054,7 +3055,7 @@ async function ensureInstallYaml(domains, config, projectRoot) {
3054
3055
  }
3055
3056
 
3056
3057
  // source/commands/init/main.ts
3057
- const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.1.0`];
3058
+ const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.2.0-beta-20261105172845`];
3058
3059
  /**
3059
3060
  * Initializes a Commerce App project.
3060
3061
  * @param flags - Non-interactive initialization answers.
@@ -12,5 +12,5 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { t as defineConfig } from "../define-C95h_wa0.mjs";
15
+ import { t as defineConfig } from "../define-9bwRE_UG.mjs";
16
16
  export { defineConfig };
@@ -12,9 +12,9 @@
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
+ import { t as defineConfig } from "../define-9bwRE_UG.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-CiZuhrsm.mjs";
17
+ 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-B7UjO8dd.mjs";
18
18
  import "@adobe/aio-commerce-lib-config";
19
19
  import * as v from "valibot";
20
20
  import { Get } from "type-fest";
@@ -82,6 +82,44 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
82
82
  label: string;
83
83
  runtimeAction: string;
84
84
  } | undefined;
85
+ viewButtons?: ({
86
+ title?: string | undefined;
87
+ aclProtected?: boolean | undefined;
88
+ confirm?: {
89
+ message?: string | undefined;
90
+ title?: string | undefined;
91
+ } | undefined;
92
+ description?: string | undefined;
93
+ id: string;
94
+ label: string;
95
+ level?: 0 | 1 | -1 | undefined;
96
+ notifications?: {
97
+ error?: string | undefined;
98
+ success?: string | undefined;
99
+ } | undefined;
100
+ path: string;
101
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
102
+ sortOrder?: number | undefined;
103
+ type: "view";
104
+ } | {
105
+ aclProtected?: boolean | undefined;
106
+ confirm?: {
107
+ message?: string | undefined;
108
+ title?: string | undefined;
109
+ } | undefined;
110
+ description?: string | undefined;
111
+ id: string;
112
+ label: string;
113
+ level?: 0 | 1 | -1 | undefined;
114
+ notifications?: {
115
+ error?: string | undefined;
116
+ success?: string | undefined;
117
+ } | undefined;
118
+ runtimeAction: string;
119
+ sortOrder?: number | undefined;
120
+ timeout?: number | undefined;
121
+ type: "worker";
122
+ })[] | undefined;
85
123
  } | undefined;
86
124
  customer?: {
87
125
  gridColumns?: {
@@ -147,6 +185,44 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
147
185
  label: string;
148
186
  runtimeAction: string;
149
187
  } | undefined;
188
+ viewButtons?: ({
189
+ aclProtected?: boolean | undefined;
190
+ confirm?: {
191
+ message?: string | undefined;
192
+ title?: string | undefined;
193
+ } | undefined;
194
+ description?: string | undefined;
195
+ id: string;
196
+ label: string;
197
+ level?: 0 | 1 | -1 | undefined;
198
+ notifications?: {
199
+ error?: string | undefined;
200
+ success?: string | undefined;
201
+ } | undefined;
202
+ runtimeAction: string;
203
+ sortOrder?: number | undefined;
204
+ timeout?: number | undefined;
205
+ type: "worker";
206
+ } | {
207
+ title?: string | undefined;
208
+ aclProtected?: boolean | undefined;
209
+ confirm?: {
210
+ message?: string | undefined;
211
+ title?: string | undefined;
212
+ } | undefined;
213
+ description?: string | undefined;
214
+ id: string;
215
+ label: string;
216
+ level?: 0 | 1 | -1 | undefined;
217
+ notifications?: {
218
+ error?: string | undefined;
219
+ success?: string | undefined;
220
+ } | undefined;
221
+ path: string;
222
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
223
+ sortOrder?: number | undefined;
224
+ type: "view";
225
+ })[] | undefined;
150
226
  } | undefined;
151
227
  menu?: {
152
228
  aclProtected?: boolean | undefined;
@@ -157,6 +233,14 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
157
233
  parentMenu?: "sales" | "catalog" | "customers" | "marketing" | "content" | "reports" | "stores" | "system" | undefined;
158
234
  sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
159
235
  } | undefined;
236
+ nativeUi?: {
237
+ replacedPages: {
238
+ path: string;
239
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
240
+ target: "order.create";
241
+ title: string;
242
+ }[];
243
+ } | undefined;
160
244
  newsletter?: {
161
245
  gridColumns?: {
162
246
  columns: {
@@ -673,4 +757,4 @@ type AppConfigWithMetadata<T extends AnyCommerceAppConfig> = T & {
673
757
  * @param config - The configuration to check.
674
758
  */
675
759
  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 };
760
+ 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-BVO6sC7z.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-CMb_05b6.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-D-Oh-sxE.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-CiZuhrsm.mjs";
16
16
  /**
17
17
  * Helper to type-safely define the app config.
18
18
  * @param config - The app config to define.