@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
@@ -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", "return.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" | "return.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", "return.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" | "return.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<{
@@ -14,9 +14,9 @@
14
14
  */
15
15
 
16
16
  const require_rolldown_runtime = require("../rolldown-runtime-CoOt0iuZ.cjs");
17
- const require_index_node = require("../index.node-CxdwPrOg.cjs");
18
- const require_webhooks = require("../webhooks-TvDm57xt.cjs");
19
- const require_validate = require("../validate-B0rOILvG.cjs");
17
+ const require_index_node = require("../index.node-CcH8PCzC.cjs");
18
+ const require_webhooks = require("../webhooks-EVlO8rxi.cjs");
19
+ const require_validate = require("../validate-DAw7Pxp3.cjs");
20
20
  const require_utils = require("../utils-DSS0XlXq.cjs");
21
21
  const require_schemas = require("../schemas-B6ITl1bG.cjs");
22
22
  const require_logging = require("../logging-Emi7P923.cjs");
@@ -367,7 +367,7 @@ const LEADING_DOT_SLASH_PATTERN$1 = /^\.\//u;
367
367
  const WEB_SOURCE_DEPENDENCIES = [
368
368
  {
369
369
  name: "@adobe/aio-commerce-lib-admin-ui",
370
- version: "^1.2.0"
370
+ version: "^1.3.0-alpha-20261110204456"
371
371
  },
372
372
  {
373
373
  name: "react",
@@ -701,7 +701,7 @@ function buildBusinessConfigurationExtConfig() {
701
701
  function collectUniqueRuntimeActions(adminUi) {
702
702
  const gridRuntimeActions = require_webhooks.ADMIN_UI_GRID_COLUMN_ENTITIES.map((key) => adminUi?.[key]?.gridColumns?.runtimeAction).filter((action) => action !== void 0);
703
703
  const massActionRuntimeActions = require_webhooks.ADMIN_UI_MASS_ACTION_ENTITIES.flatMap((key) => adminUi?.[key]?.massActions ?? []).filter((action) => action.type === "worker").map((action) => action.runtimeAction);
704
- const viewButtonRuntimeActions = (adminUi?.order?.viewButtons ?? []).filter((button) => button.type === "worker").map((button) => button.runtimeAction);
704
+ const viewButtonRuntimeActions = require_webhooks.ADMIN_UI_VIEW_BUTTON_ENTITIES.flatMap((key) => adminUi?.[key]?.viewButtons ?? []).filter((button) => button.type === "worker").map((button) => button.runtimeAction);
705
705
  return [.../* @__PURE__ */ new Set([
706
706
  ...gridRuntimeActions,
707
707
  ...massActionRuntimeActions,
@@ -711,13 +711,14 @@ function collectUniqueRuntimeActions(adminUi) {
711
711
  /** Returns true if the `adminUi` config requires a `view` operation and `web` source in ext.config.yaml. */
712
712
  function requiresWebSource(adminUi) {
713
713
  if (adminUi?.menu !== void 0) return true;
714
- if ((adminUi?.order?.viewButtons ?? []).some((button) => button.type === "view")) return true;
714
+ if (adminUi?.nativeUi?.replacedPages.length) return true;
715
+ if (require_webhooks.ADMIN_UI_VIEW_BUTTON_ENTITIES.flatMap((key) => adminUi?.[key]?.viewButtons ?? []).some((button) => button.type === "view")) return true;
715
716
  return require_webhooks.ADMIN_UI_MASS_ACTION_ENTITIES.flatMap((key) => adminUi?.[key]?.massActions ?? []).some((action) => action.type === "view");
716
717
  }
717
718
  /**
718
719
  * Builds the ext.config.yaml for the Admin UI v2 extension (`commerce/backend-ui/2`).
719
720
  * Derives `workerProcess` and `view` operation declarations from `adminUi` config.
720
- * Adds a `view` operation and `web` source when view-type entries or `adminUi.menu` is configured.
721
+ * Adds a `view` operation and `web` source when view-type entries, native UI replaced pages, or `adminUi.menu` is configured.
721
722
  * @param appConfig - Parsed app configuration.
722
723
  */
723
724
  function buildAdminUiV2ExtConfig(appConfig) {
@@ -2251,6 +2252,12 @@ function describeOutcome(result, runId) {
2251
2252
  }
2252
2253
 
2253
2254
  // source/commands/hooks/post-app-deploy/main.ts
2255
+ const SKIP_MESSAGES = {
2256
+ "already-current": "The app is already up to date.",
2257
+ "in-progress": "An upgrade is already in progress.",
2258
+ "not-associated": "The app is not associated with a Commerce instance. Nothing to upgrade.",
2259
+ "not-installed": "The app is not installed on the Commerce instance. Nothing to upgrade."
2260
+ };
2254
2261
  function isSkipCode(code) {
2255
2262
  return code === "already-current" || code === "not-associated" || code === "not-installed" || code === "in-progress";
2256
2263
  }
@@ -2344,12 +2351,12 @@ async function getStatusCommand() {
2344
2351
  async function runHook(interrupt) {
2345
2352
  const { upgradeMode } = (await require_index_node.parseCommerceAppConfig()).metadata;
2346
2353
  console.log("");
2347
- consola.consola.start("Checking for app upgrades...");
2354
+ consola.consola.start("Checking the status of the app...");
2348
2355
  const context = createCamsContext();
2349
2356
  consola.consola.debug(`Service: ${context.baseUrl}`);
2350
2357
  const extension = await findWorkspaceExtension(context);
2351
2358
  if (!extension) {
2352
- consola.consola.info("No upgrade was run: not-associated.\n");
2359
+ consola.consola.info(`${SKIP_MESSAGES["not-associated"]}\n`);
2353
2360
  return {
2354
2361
  code: "not-associated",
2355
2362
  kind: "skipped"
@@ -2357,9 +2364,10 @@ async function runHook(interrupt) {
2357
2364
  }
2358
2365
  const { id: extensionId } = extension;
2359
2366
  const client = context.createInstanceClient(requireCommerceInstance(extension));
2367
+ consola.consola.start("Checking if the app needs an upgrade...");
2360
2368
  const plan = await planUpgrade(client, extensionId);
2361
2369
  if (typeof plan === "string") {
2362
- consola.consola.info(`No upgrade was run: ${plan}.\n`);
2370
+ consola.consola.info(`${SKIP_MESSAGES[plan]}\n`);
2363
2371
  return {
2364
2372
  code: plan,
2365
2373
  kind: "skipped"
@@ -2397,6 +2405,13 @@ async function runHook(interrupt) {
2397
2405
  * @throws When the upgrade is refused, fails or does not finish in time.
2398
2406
  */
2399
2407
  async function run$6() {
2408
+ if (process.env.AIO_CLI_ENV === "stage" && process.env.AIO_COMMERCE_APP_SKIP_POST_DEPLOY_HOOK) {
2409
+ consola.consola.warn(`The post-app-deploy hook was skipped because ${consola_utils.colors.cyan("AIO_COMMERCE_APP_SKIP_POST_DEPLOY_HOOK")} is set.\n`);
2410
+ return {
2411
+ code: "hook-disabled",
2412
+ kind: "skipped"
2413
+ };
2414
+ }
2400
2415
  const statusCommand = await getStatusCommand();
2401
2416
  const interrupt = noticeInterrupt(statusCommand);
2402
2417
  try {
@@ -3029,7 +3044,7 @@ async function ensureAppConfig(domains, config, projectRoot) {
3029
3044
  */
3030
3045
  function installDependencies(packageManager, domains, projectRoot) {
3031
3046
  const packages = [];
3032
- if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.8.1`);
3047
+ if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.8.2-alpha-20261110204456`);
3033
3048
  if (packages.length === 0) {
3034
3049
  consola.consola.info("No additional domain dependencies to install.");
3035
3050
  return;
@@ -3064,7 +3079,7 @@ async function ensureInstallYaml(domains, config, projectRoot) {
3064
3079
  }
3065
3080
 
3066
3081
  // source/commands/init/main.ts
3067
- const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.1.0`];
3082
+ const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.2.0-alpha-20261110204456`];
3068
3083
  /**
3069
3084
  * Initializes a Commerce App project.
3070
3085
  * @param flags - Non-interactive initialization answers.
@@ -12,5 +12,6 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { t as defineConfig } from "../define-C12IwNNN.cjs";
15
+ /** biome-ignore-all lint/performance/noBarrelFile: This is the browser-compatible public API for the config entrypoint */
16
+ import { t as defineConfig } from "../define-b00_dBkO.cjs";
16
17
  export { defineConfig };
@@ -13,10 +13,10 @@
13
13
  */
14
14
 
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
- const require_index_node = require("../index.node-CxdwPrOg.cjs");
16
+ const require_index_node = require("../index.node-CcH8PCzC.cjs");
17
17
  const require_define = require("../define-BKJjE97w.cjs");
18
- const require_webhooks = require("../webhooks-TvDm57xt.cjs");
19
- const require_validate = require("../validate-B0rOILvG.cjs");
18
+ const require_webhooks = require("../webhooks-EVlO8rxi.cjs");
19
+ const require_validate = require("../validate-DAw7Pxp3.cjs");
20
20
 
21
21
  exports.CommerceAppConfigSchemas = require_validate.CommerceAppConfigSchemas;
22
22
  exports.defineConfig = require_define.defineConfig;