@adobe/aio-commerce-lib-app 2.2.0-beta-20261105172845 → 2.2.0

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 +21 -4
  2. package/dist/cjs/actions/app-config/index.cjs +4 -4
  3. package/dist/cjs/actions/app-config/index.d.cts +2 -2
  4. package/dist/cjs/actions/association/index.cjs +1 -1
  5. package/dist/cjs/actions/config/index.cjs +1 -1
  6. package/dist/cjs/actions/config/index.d.cts +2 -2
  7. package/dist/cjs/actions/installation/index.cjs +60 -20
  8. package/dist/cjs/actions/installation/index.d.cts +4 -3
  9. package/dist/cjs/actions/scope-tree/index.cjs +1 -1
  10. package/dist/cjs/{app-CiZuhrsm.d.cts → app-B3bAEor-.d.cts} +176 -22
  11. package/dist/cjs/commands/index.cjs +25 -11
  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 +60 -16
  15. package/dist/{es/define-9bwRE_UG.d.mts → cjs/define-eBMdGAq6.d.cts} +1 -1
  16. package/dist/cjs/{index-Bu2X-HUh.d.cts → index-BEeludy0.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-Boszndri.cjs → index.node-9bfp79rs.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_cVbr0s.cjs → management-5Et1mEUp.cjs} +41 -6
  24. package/dist/cjs/{openapi-c06taOv1.cjs → openapi-DghfuM8S.cjs} +135 -1
  25. package/dist/cjs/types-DslZGym8.d.cts +23 -0
  26. package/dist/cjs/{utils-B_Ypb2xF.cjs → utils-CoR_PBHz.cjs} +16 -3
  27. package/dist/cjs/{validate-CunJ4fUD.cjs → validate-BC3rnRLc.cjs} +1 -1
  28. package/dist/cjs/{version-CUu8Ks59.cjs → version-5MonNzl5.cjs} +1 -1
  29. package/dist/{es/webhooks-B7UjO8dd.d.mts → cjs/webhooks-DNLuuv9_.d.cts} +133 -16
  30. package/dist/cjs/{webhooks-C5ONLbQ4.cjs → webhooks-ZPh2gVb3.cjs} +11 -9
  31. package/dist/es/actions/app-config/index.d.mts +2 -2
  32. package/dist/es/actions/app-config/index.mjs +4 -4
  33. package/dist/es/actions/association/index.mjs +1 -1
  34. package/dist/es/actions/config/index.d.mts +1 -1
  35. package/dist/es/actions/config/index.mjs +1 -1
  36. package/dist/es/actions/installation/index.d.mts +4 -3
  37. package/dist/es/actions/installation/index.mjs +61 -21
  38. package/dist/es/actions/scope-tree/index.mjs +1 -1
  39. package/dist/es/{app-CiZuhrsm.d.mts → app-B3bAEor-.d.mts} +176 -22
  40. package/dist/es/commands/index.mjs +25 -11
  41. package/dist/es/config/index.browser.d.mts +2 -1
  42. package/dist/es/config/index.node.d.mts +59 -14
  43. package/dist/es/config/index.node.mjs +3 -3
  44. package/dist/{cjs/define-CZRjG5N_.d.cts → es/define-BdXyLAwb.d.mts} +1 -1
  45. package/dist/es/{index-Cho-eRFD.d.mts → index-DE2KVXfH.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-BVO6sC7z.mjs → index.node-CURztkP5.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-BYmbjhGb.mjs → management-BAQ64OyR.mjs} +41 -6
  53. package/dist/es/{openapi-C_TGWLou.mjs → openapi-BvPVTUMt.mjs} +135 -1
  54. package/dist/es/types-DslZGym8.d.mts +23 -0
  55. package/dist/es/{utils-SOtVo2VW.mjs → utils-DB8HaSj0.mjs} +11 -4
  56. package/dist/es/{validate-D-Oh-sxE.mjs → validate-xS9Dc-4m.mjs} +1 -1
  57. package/dist/es/{version-C-Pkqohl.mjs → version-BWgrh_QM.mjs} +1 -1
  58. package/dist/{cjs/webhooks-DX7km8wk.d.cts → es/webhooks-DgaLfP36.d.mts} +133 -16
  59. package/dist/es/{webhooks-CMb_05b6.mjs → webhooks-HBe_DEKA.mjs} +11 -9
  60. package/package.json +13 -13
@@ -12,7 +12,7 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { r as CommerceAppConfigOutputModel, t as AnyCommerceAppConfig } from "./app-CiZuhrsm.cjs";
15
+ import { r as CommerceAppConfigOutputModel, t as AnyCommerceAppConfig } from "./app-B3bAEor-.mjs";
16
16
  import * as v from "valibot";
17
17
  declare const NotificationsSchema: v.ObjectSchema<{
18
18
  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>;
@@ -243,6 +243,44 @@ declare const CreditMemoViewButtonSchema: v.VariantSchema<"type", [v.StrictObjec
243
243
  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>;
244
244
  readonly type: v.LiteralSchema<"worker", undefined>;
245
245
  }, undefined>], undefined>;
246
+ declare const RmaViewButtonSchema: v.VariantSchema<"type", [v.StrictObjectSchema<{
247
+ 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>;
248
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
249
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
250
+ 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>;
251
+ 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>;
252
+ }, undefined>, undefined>;
253
+ 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>;
254
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
255
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
256
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
257
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
258
+ 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>;
259
+ 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>;
260
+ }, undefined>, undefined>;
261
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
262
+ 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>;
263
+ 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>;
264
+ readonly type: v.LiteralSchema<"view", undefined>;
265
+ }, undefined>, v.StrictObjectSchema<{
266
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
267
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
268
+ 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>;
269
+ 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>;
270
+ }, undefined>, undefined>;
271
+ 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>;
272
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
273
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
274
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
275
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
276
+ 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>;
277
+ 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>;
278
+ }, undefined>, undefined>;
279
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
280
+ 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>;
281
+ 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>;
282
+ readonly type: v.LiteralSchema<"worker", undefined>;
283
+ }, undefined>], undefined>;
246
284
  declare const MenuSchema: v.ObjectSchema<{
247
285
  /**
248
286
  * When `true`, Commerce auto-generates a per-app ACL resource id from `metadata.id`
@@ -260,7 +298,7 @@ declare const MenuSchema: v.ObjectSchema<{
260
298
  declare const NativeUiReplacedPageSchema: v.StrictObjectSchema<{
261
299
  readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
262
300
  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>;
263
- readonly target: v.PicklistSchema<readonly ["order.create"], `Invalid native UI replaced page target. Accepted values are: ${string}`>;
301
+ readonly target: v.PicklistSchema<readonly ["order.create", "return.create"], `Invalid native UI replaced page target. Accepted values are: ${string}`>;
264
302
  readonly title: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
265
303
  }, undefined>;
266
304
  /** A top-level acl entry: a leaf, or a group carrying leaf children (exactly one level of nesting). */
@@ -280,7 +318,7 @@ declare const AclResourceEntrySchema: v.StrictObjectSchema<{
280
318
  }, undefined>;
281
319
  /**
282
320
  * Schema for the `adminUi` config section.
283
- * Supports grid column extensions, mass actions, order, invoice, and credit memo view buttons, menu, native UI replaced pages, and custom ACL resources on `commerce/backend-ui/2`.
321
+ * Supports grid column extensions, mass actions, order, invoice, credit memo, and return view buttons, menu, native UI replaced pages, and custom ACL resources on `commerce/backend-ui/2`.
284
322
  */
285
323
  declare const AdminUiSchema: v.ObjectSchema<{
286
324
  readonly acl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
@@ -581,6 +619,7 @@ declare const AdminUiSchema: v.ObjectSchema<{
581
619
  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>;
582
620
  readonly type: v.LiteralSchema<"worker", undefined>;
583
621
  }, undefined>], undefined>, undefined>, v.CheckAction<({
622
+ title?: string | undefined;
584
623
  aclProtected?: boolean | undefined;
585
624
  confirm?: {
586
625
  message?: string | undefined;
@@ -594,12 +633,11 @@ declare const AdminUiSchema: v.ObjectSchema<{
594
633
  error?: string | undefined;
595
634
  success?: string | undefined;
596
635
  } | undefined;
597
- runtimeAction: string;
636
+ path: string;
637
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
598
638
  sortOrder?: number | undefined;
599
- timeout?: number | undefined;
600
- type: "worker";
639
+ type: "view";
601
640
  } | {
602
- title?: string | undefined;
603
641
  aclProtected?: boolean | undefined;
604
642
  confirm?: {
605
643
  message?: string | undefined;
@@ -613,10 +651,10 @@ declare const AdminUiSchema: v.ObjectSchema<{
613
651
  error?: string | undefined;
614
652
  success?: string | undefined;
615
653
  } | undefined;
616
- path: string;
617
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
654
+ runtimeAction: string;
618
655
  sortOrder?: number | undefined;
619
- type: "view";
656
+ timeout?: number | undefined;
657
+ type: "worker";
620
658
  })[], "Invoice view button ids must be unique after Commerce id sanitization.">]>, undefined>;
621
659
  }, undefined>, undefined>;
622
660
  readonly menu: v.OptionalSchema<v.ObjectSchema<{
@@ -637,12 +675,12 @@ declare const AdminUiSchema: v.ObjectSchema<{
637
675
  readonly replacedPages: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
638
676
  readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
639
677
  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>;
640
- readonly target: v.PicklistSchema<readonly ["order.create"], `Invalid native UI replaced page target. Accepted values are: ${string}`>;
678
+ readonly target: v.PicklistSchema<readonly ["order.create", "return.create"], `Invalid native UI replaced page target. Accepted values are: ${string}`>;
641
679
  readonly title: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
642
680
  }, undefined>, undefined>, v.CheckAction<{
643
681
  path: string;
644
682
  sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
645
- target: "order.create";
683
+ target: "order.create" | "return.create";
646
684
  title: string;
647
685
  }[], "Native UI replaced page targets must be unique.">]>;
648
686
  }, undefined>, undefined>;
@@ -943,6 +981,83 @@ declare const AdminUiSchema: v.ObjectSchema<{
943
981
  title?: string | undefined;
944
982
  })[], "Mass action ids must be unique after Commerce id sanitization.">]>, undefined>;
945
983
  }, undefined>, undefined>;
984
+ readonly rma: v.OptionalSchema<v.ObjectSchema<{
985
+ readonly viewButtons: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
986
+ 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>;
987
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
988
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
989
+ 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>;
990
+ 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>;
991
+ }, undefined>, undefined>;
992
+ 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>;
993
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
994
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
995
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
996
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
997
+ 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>;
998
+ 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>;
999
+ }, undefined>, undefined>;
1000
+ readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1001
+ 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>;
1002
+ 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>;
1003
+ readonly type: v.LiteralSchema<"view", undefined>;
1004
+ }, undefined>, v.StrictObjectSchema<{
1005
+ readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
1006
+ readonly confirm: v.OptionalSchema<v.ObjectSchema<{
1007
+ 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>;
1008
+ 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>;
1009
+ }, undefined>, undefined>;
1010
+ 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>;
1011
+ readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1012
+ readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1013
+ readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
1014
+ readonly notifications: v.OptionalSchema<v.ObjectSchema<{
1015
+ 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>;
1016
+ 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>;
1017
+ }, undefined>, undefined>;
1018
+ readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1019
+ 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>;
1020
+ 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>;
1021
+ readonly type: v.LiteralSchema<"worker", undefined>;
1022
+ }, undefined>], undefined>, undefined>, v.CheckAction<({
1023
+ title?: string | undefined;
1024
+ aclProtected?: boolean | undefined;
1025
+ confirm?: {
1026
+ message?: string | undefined;
1027
+ title?: string | undefined;
1028
+ } | undefined;
1029
+ description?: string | undefined;
1030
+ id: string;
1031
+ label: string;
1032
+ level?: 0 | 1 | -1 | undefined;
1033
+ notifications?: {
1034
+ error?: string | undefined;
1035
+ success?: string | undefined;
1036
+ } | undefined;
1037
+ path: string;
1038
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
1039
+ sortOrder?: number | undefined;
1040
+ type: "view";
1041
+ } | {
1042
+ aclProtected?: boolean | undefined;
1043
+ confirm?: {
1044
+ message?: string | undefined;
1045
+ title?: string | undefined;
1046
+ } | undefined;
1047
+ description?: string | undefined;
1048
+ id: string;
1049
+ label: string;
1050
+ level?: 0 | 1 | -1 | undefined;
1051
+ notifications?: {
1052
+ error?: string | undefined;
1053
+ success?: string | undefined;
1054
+ } | undefined;
1055
+ runtimeAction: string;
1056
+ sortOrder?: number | undefined;
1057
+ timeout?: number | undefined;
1058
+ type: "worker";
1059
+ })[], "Return view button ids must be unique after Commerce id sanitization.">]>, undefined>;
1060
+ }, undefined>, undefined>;
946
1061
  readonly shipment: v.OptionalSchema<v.ObjectSchema<{
947
1062
  readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
948
1063
  readonly columns: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
@@ -981,7 +1096,7 @@ type AclResourceEntry = v.InferInput<typeof AclResourceEntrySchema>;
981
1096
  * grid columns, a mass action, a view button, a native UI page replacement, or a
982
1097
  * custom ACL resource entry.
983
1098
  */
984
- type AdminUiComponentConfig = v.InferOutput<typeof MenuSchema> | v.InferOutput<typeof GridColumnsSchema> | v.InferOutput<typeof MassActionSchema> | v.InferOutput<typeof OrderViewButtonSchema> | v.InferOutput<typeof NativeUiReplacedPageSchema> | v.InferOutput<typeof InvoiceViewButtonSchema> | v.InferOutput<typeof CreditMemoViewButtonSchema> | AclResourceEntry;
1099
+ type AdminUiComponentConfig = v.InferOutput<typeof MenuSchema> | v.InferOutput<typeof GridColumnsSchema> | v.InferOutput<typeof MassActionSchema> | v.InferOutput<typeof OrderViewButtonSchema> | v.InferOutput<typeof NativeUiReplacedPageSchema> | v.InferOutput<typeof InvoiceViewButtonSchema> | v.InferOutput<typeof CreditMemoViewButtonSchema> | v.InferOutput<typeof RmaViewButtonSchema> | AclResourceEntry;
985
1100
  /**
986
1101
  * Grid columns registration configuration.
987
1102
  */
@@ -1010,6 +1125,8 @@ type OrderViewButton = v.InferInput<typeof OrderViewButtonSchema>;
1010
1125
  type InvoiceViewButton = v.InferInput<typeof InvoiceViewButtonSchema>;
1011
1126
  /** A credit memo view button registration entry (view or worker variant). */
1012
1127
  type CreditMemoViewButton = v.InferInput<typeof CreditMemoViewButtonSchema>;
1128
+ /** A return (RMA) view button registration entry (view or worker variant). */
1129
+ type RmaViewButton = v.InferInput<typeof RmaViewButtonSchema>;
1013
1130
  /**
1014
1131
  * Inlined notification strings on an `adminUi` registration entry.
1015
1132
  */
@@ -1623,7 +1740,7 @@ declare const WebhooksSchema: v.OptionalSchema<v.SchemaWithPipe<readonly [v.Arra
1623
1740
  value: string;
1624
1741
  }[] | undefined;
1625
1742
  hook_name: string;
1626
- method: "POST" | "PUT" | "DELETE" | "GET";
1743
+ method: "GET" | "POST" | "PUT" | "DELETE";
1627
1744
  priority?: number | undefined;
1628
1745
  required?: boolean | undefined;
1629
1746
  rules?: {
@@ -1656,7 +1773,7 @@ declare const WebhooksSchema: v.OptionalSchema<v.SchemaWithPipe<readonly [v.Arra
1656
1773
  value: string;
1657
1774
  }[] | undefined;
1658
1775
  hook_name: string;
1659
- method: "POST" | "PUT" | "DELETE" | "GET";
1776
+ method: "GET" | "POST" | "PUT" | "DELETE";
1660
1777
  priority?: number | undefined;
1661
1778
  required?: boolean | undefined;
1662
1779
  rules?: {
@@ -1696,4 +1813,4 @@ type WebhooksConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputMode
1696
1813
  * @param config - The configuration to check.
1697
1814
  */
1698
1815
  declare function hasWebhooks<T extends AnyCommerceAppConfig>(config: T): config is T & WebhooksConfig<T>;
1699
- export { AdminUiConfig as A, OrderViewButton as B, ExternalEventSource as C, hasEventing as D, hasCommerceEvents as E, InvoiceViewButton as F, WorkerMassAction as H, MassAction as I, Menu as L, CreditMemoViewButton as M, GridColumn as N, hasExternalEvents as O, GridColumns as P, NativeUiReplacedPage as R, ExternalEvent as S, ExternalEventsConfig as T, hasAdminUi as U, ViewMassAction as V, hasBackendUiV2Components as W, CommerceEventsConfig as _, WebhookRule as a, EventingSchema as b, WebhooksSchema as c, hasCustomInstallation as d, hasCustomInstallationSteps as f, CommerceEventSourceSchema as g, CommerceEventSource as h, WebhookHeader as i, AdminUiConfiguration as j, AdminUiComponentConfig as k, hasWebhooks as l, CommerceEvent as m, WebhookEntry as n, WebhooksConfig as o, AppEvent as p, WebhookField as r, WebhooksConfiguration as s, WebhookDefinition as t, CustomInstallationStep as u, EventProvider as v, ExternalEventSourceSchema as w, EventsConfig as x, EventingConfiguration as y, Notifications as z };
1816
+ export { AdminUiConfig as A, OrderViewButton as B, ExternalEventSource as C, hasEventing as D, hasCommerceEvents as E, InvoiceViewButton as F, hasBackendUiV2Components as G, ViewMassAction as H, MassAction as I, Menu as L, CreditMemoViewButton as M, GridColumn as N, hasExternalEvents as O, GridColumns as P, NativeUiReplacedPage as R, ExternalEvent as S, ExternalEventsConfig as T, WorkerMassAction as U, RmaViewButton as V, hasAdminUi as W, CommerceEventsConfig as _, WebhookRule as a, EventingSchema as b, WebhooksSchema as c, hasCustomInstallation as d, hasCustomInstallationSteps as f, CommerceEventSourceSchema as g, CommerceEventSource as h, WebhookHeader as i, AdminUiConfiguration as j, AdminUiComponentConfig as k, hasWebhooks as l, CommerceEvent as m, WebhookEntry as n, WebhooksConfig as o, AppEvent as p, WebhookField as r, WebhooksConfiguration as s, WebhookDefinition as t, CustomInstallationStep as u, EventProvider as v, ExternalEventSourceSchema as w, EventsConfig as x, EventingConfiguration as y, Notifications as z };
@@ -132,14 +132,13 @@ const ViewButtonWorkerSchema = v.strictObject({
132
132
  type: v.literal("worker")
133
133
  });
134
134
  const OrderViewButtonSchema = v.variant("type", [ViewButtonViewSchema, ViewButtonWorkerSchema]);
135
- const InvoiceViewButtonSchema = v.variant("type", [v.strictObject({
136
- ...ViewButtonViewSchema.entries,
137
- title: v.optional(nonEmptyStringValueSchema("view button page title"))
138
- }), ViewButtonWorkerSchema]);
139
- const CreditMemoViewButtonSchema = v.variant("type", [v.strictObject({
135
+ const TitledViewButtonSchema = v.variant("type", [v.strictObject({
140
136
  ...ViewButtonViewSchema.entries,
141
137
  title: v.optional(nonEmptyStringValueSchema("view button page title"))
142
138
  }), ViewButtonWorkerSchema]);
139
+ const InvoiceViewButtonSchema = TitledViewButtonSchema;
140
+ const CreditMemoViewButtonSchema = TitledViewButtonSchema;
141
+ const RmaViewButtonSchema = TitledViewButtonSchema;
143
142
  const MassActionsSchema = v.pipe(v.array(MassActionSchema), v.check((items) => hasUniqueSanitizedIds(items), "Mass action ids must be unique after Commerce id sanitization."));
144
143
  const AdminUiOrderSchema = v.object({
145
144
  gridColumns: v.optional(GridColumnsSchema),
@@ -158,6 +157,7 @@ const AdminUiCreditMemoSchema = v.object({
158
157
  gridColumns: v.optional(GridColumnsSchema),
159
158
  viewButtons: v.optional(v.pipe(v.array(CreditMemoViewButtonSchema), v.check((items) => hasUniqueSanitizedIds(items), "Credit memo view button ids must be unique after Commerce id sanitization.")))
160
159
  });
160
+ const AdminUiRmaSchema = v.object({ viewButtons: v.optional(v.pipe(v.array(RmaViewButtonSchema), v.check((items) => hasUniqueSanitizedIds(items), "Return view button ids must be unique after Commerce id sanitization."))) });
161
161
  const AdminUiGridOnlyEntitySchema = v.object({ gridColumns: v.optional(GridColumnsSchema) });
162
162
  const MenuIdSchema = v.pipe(nonEmptyStringValueSchema("menu ID"), v.regex(/^[A-Za-z0-9_/:]+$/u, "Menu ID may contain only letters, digits, \"/\", \":\", and \"_\""));
163
163
  const MenuSchema = v.object({
@@ -174,7 +174,7 @@ const MenuSchema = v.object({
174
174
  parentMenu: v.optional(v.picklist(COMMERCE_MENUS, "parentMenu must be a known Commerce Admin menu ID")),
175
175
  sandboxPermissions: v.optional(SandboxPermissionsSchema)
176
176
  });
177
- const NATIVE_UI_REPLACED_PAGE_TARGETS = ["order.create"];
177
+ const NATIVE_UI_REPLACED_PAGE_TARGETS = ["order.create", "return.create"];
178
178
  const NativeUiReplacedPageSchema = v.strictObject({
179
179
  path: nonEmptyStringValueSchema("replaced page path"),
180
180
  sandboxPermissions: v.optional(SandboxPermissionsSchema),
@@ -218,7 +218,7 @@ const AdminUiAclSchema = v.pipe(v.array(AclResourceEntrySchema), v.minLength(1,
218
218
  }, "Custom ACL resource ids must stay unique after Commerce derivation: a top-level resource id must not equal a group's \"<group>_<child>\" combination."));
219
219
  /**
220
220
  * Schema for the `adminUi` config section.
221
- * Supports grid column extensions, mass actions, order, invoice, and credit memo view buttons, menu, native UI replaced pages, and custom ACL resources on `commerce/backend-ui/2`.
221
+ * Supports grid column extensions, mass actions, order, invoice, credit memo, and return view buttons, menu, native UI replaced pages, and custom ACL resources on `commerce/backend-ui/2`.
222
222
  */
223
223
  const AdminUiSchema = v.object({
224
224
  acl: v.optional(AdminUiAclSchema),
@@ -230,6 +230,7 @@ const AdminUiSchema = v.object({
230
230
  newsletter: v.optional(AdminUiGridOnlyEntitySchema),
231
231
  order: v.optional(AdminUiOrderSchema),
232
232
  product: v.optional(AdminUiGridAndMassActionEntitySchema),
233
+ rma: v.optional(AdminUiRmaSchema),
233
234
  shipment: v.optional(AdminUiGridOnlyEntitySchema)
234
235
  });
235
236
  /**
@@ -255,7 +256,8 @@ const ADMIN_UI_MASS_ACTION_ENTITIES = [
255
256
  const ADMIN_UI_VIEW_BUTTON_ENTITIES = [
256
257
  "order",
257
258
  "invoice",
258
- "creditMemo"
259
+ "creditMemo",
260
+ "rma"
259
261
  ];
260
262
  /**
261
263
  * Check whether the config declares an Admin UI component that requires the
@@ -268,7 +270,7 @@ const ADMIN_UI_VIEW_BUTTON_ENTITIES = [
268
270
  function hasBackendUiV2Components(config) {
269
271
  const { adminUi } = config;
270
272
  if (!adminUi) return false;
271
- return Boolean(adminUi.menu || adminUi.order?.gridColumns || adminUi.order?.massActions?.length || adminUi.order?.viewButtons?.length || adminUi.product?.gridColumns || adminUi.product?.massActions?.length || adminUi.customer?.gridColumns || adminUi.customer?.massActions?.length || adminUi.invoice?.gridColumns || adminUi.invoice?.viewButtons?.length || adminUi.creditMemo?.gridColumns || adminUi.creditMemo?.viewButtons?.length || adminUi.shipment?.gridColumns || adminUi.nativeUi?.replacedPages?.length || adminUi.newsletter?.gridColumns);
273
+ return Boolean(adminUi.menu || adminUi.order?.gridColumns || adminUi.order?.massActions?.length || adminUi.order?.viewButtons?.length || adminUi.product?.gridColumns || adminUi.product?.massActions?.length || adminUi.customer?.gridColumns || adminUi.customer?.massActions?.length || adminUi.invoice?.gridColumns || adminUi.invoice?.viewButtons?.length || adminUi.creditMemo?.gridColumns || adminUi.creditMemo?.viewButtons?.length || adminUi.rma?.viewButtons?.length || adminUi.shipment?.gridColumns || adminUi.nativeUi?.replacedPages?.length || adminUi.newsletter?.gridColumns);
272
274
  }
273
275
  /**
274
276
  * Check whether the config declares at least one Admin UI component (menu, grid
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/aio-commerce-lib-app",
3
- "version": "2.2.0-beta-20261105172845",
3
+ "version": "2.2.0",
4
4
  "private": false,
5
5
  "description": "App configuration management library for Adobe Commerce applications",
6
6
  "keywords": [
@@ -92,13 +92,13 @@
92
92
  "README.md"
93
93
  ],
94
94
  "dependencies": {
95
- "@adobe/aio-commerce-lib-admin-ui": "1.3.0-beta-20261105172845",
96
- "@adobe/aio-commerce-lib-api": "1.4.1",
97
- "@adobe/aio-commerce-lib-auth": "1.2.0",
98
- "@adobe/aio-commerce-lib-config": "1.8.2-beta-20261105172845",
99
- "@adobe/aio-commerce-lib-core": "1.3.0",
100
- "@adobe/aio-commerce-lib-events": "1.5.0",
101
- "@adobe/aio-commerce-lib-webhooks": "1.2.3",
95
+ "@adobe/aio-commerce-lib-admin-ui": "1.3.0",
96
+ "@adobe/aio-commerce-lib-api": "1.5.0",
97
+ "@adobe/aio-commerce-lib-auth": "1.3.0",
98
+ "@adobe/aio-commerce-lib-config": "1.9.0",
99
+ "@adobe/aio-commerce-lib-core": "1.4.0",
100
+ "@adobe/aio-commerce-lib-events": "1.6.0",
101
+ "@adobe/aio-commerce-lib-webhooks": "1.3.0",
102
102
  "@adobe/aio-lib-core-config": "^5.0.1",
103
103
  "@adobe/aio-lib-core-logging": "^3.0.2",
104
104
  "@adobe/aio-lib-files": "^4.1.2",
@@ -111,7 +111,7 @@
111
111
  "dotenv": "^18.0.0",
112
112
  "jiti": "^2.6.1",
113
113
  "ky": "^1.9.0",
114
- "local-pkg": "^1.2.1",
114
+ "local-pkg": "^2.0.0",
115
115
  "openwhisk": "^3.21.8",
116
116
  "package-manager-detector": "^1.6.0",
117
117
  "prettier": "^3.8.1",
@@ -124,13 +124,13 @@
124
124
  },
125
125
  "devDependencies": {
126
126
  "@adobe/aio-lib-files": "^4.1.2",
127
- "@aio-commerce-sdk/common-utils": "0.2.7",
127
+ "@aio-commerce-sdk/common-utils": "0.3.0",
128
128
  "@aio-commerce-sdk/config-tsdown": "1.0.1",
129
129
  "@aio-commerce-sdk/config-typedoc": "1.0.0",
130
130
  "@aio-commerce-sdk/config-typescript": "1.0.0",
131
131
  "@aio-commerce-sdk/config-vitest": "1.0.0",
132
- "@aio-commerce-sdk/scripting-utils": "0.3.5",
133
- "@aio-commerce-sdk/scripts": "0.1.1",
132
+ "@aio-commerce-sdk/scripting-utils": "0.4.0",
133
+ "@aio-commerce-sdk/scripts": "0.2.0",
134
134
  "@pnpm/lockfile.fs": "^1100.1.7",
135
135
  "@react-spectrum/s2": "^1.5.1",
136
136
  "@types/react": "^19.2.17",
@@ -160,7 +160,7 @@
160
160
  }
161
161
  },
162
162
  "engines": {
163
- "node": ">=22 <=24"
163
+ "node": ">=22 <=26"
164
164
  },
165
165
  "publishConfig": {
166
166
  "access": "public",