@adobe/aio-commerce-lib-app 2.1.0 → 2.2.0-alpha-20261110171457
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/cjs/actions/app-config/index.cjs +5 -5
- package/dist/cjs/actions/app-config/index.d.cts +2 -2
- package/dist/cjs/actions/association/index.cjs +2 -2
- package/dist/cjs/actions/config/index.cjs +2 -2
- package/dist/cjs/actions/config/index.d.cts +2 -2
- package/dist/cjs/actions/installation/index.cjs +61 -21
- package/dist/cjs/actions/installation/index.d.cts +4 -3
- package/dist/cjs/actions/scope-tree/index.cjs +2 -2
- package/dist/cjs/{app-Ch19CR6g.d.cts → app-DREvtzyX.d.cts} +330 -4
- package/dist/cjs/commands/index.cjs +27 -12
- package/dist/cjs/config/index.browser.d.cts +2 -1
- package/dist/cjs/config/index.node.cjs +3 -3
- package/dist/cjs/config/index.node.d.cts +96 -8
- package/dist/{es/define-C95h_wa0.d.mts → cjs/define-DW6Vzfku.d.cts} +1 -1
- package/dist/cjs/{index-D-Qn-irL.d.cts → index-B9MUZY-U.d.cts} +316 -316
- package/dist/cjs/{index-DWEigxhy.d.cts → index-vAue-u_y.d.cts} +1 -4
- package/dist/cjs/index.d.cts +8 -8
- package/dist/cjs/{index.node-CxdwPrOg.cjs → index.node-CcH8PCzC.cjs} +1 -1
- package/dist/cjs/management/index.cjs +1 -1
- package/dist/cjs/management/index.d.cts +6 -1
- package/dist/cjs/{management-C_JQpgVB.cjs → management-DeRZYcjS.cjs} +17 -5
- package/dist/cjs/{openapi-DFoMdZzI.cjs → openapi-CFqaMxUV.cjs} +426 -45
- package/dist/cjs/types-DslZGym8.d.cts +23 -0
- package/dist/cjs/{validate-B0rOILvG.cjs → validate-DAw7Pxp3.cjs} +1 -1
- package/dist/cjs/{router-DpB8wpR2.cjs → version-BACmFGD2.cjs} +77 -19
- package/dist/{es/webhooks-C9vMZZDZ.d.mts → cjs/webhooks-BMSr1l7c.d.cts} +268 -12
- package/dist/cjs/{webhooks-TvDm57xt.cjs → webhooks-EVlO8rxi.cjs} +53 -12
- package/dist/es/actions/app-config/index.d.mts +2 -2
- package/dist/es/actions/app-config/index.mjs +5 -5
- package/dist/es/actions/association/index.mjs +2 -2
- package/dist/es/actions/config/index.d.mts +1 -1
- package/dist/es/actions/config/index.mjs +2 -2
- package/dist/es/actions/installation/index.d.mts +4 -3
- package/dist/es/actions/installation/index.mjs +62 -22
- package/dist/es/actions/scope-tree/index.mjs +2 -2
- package/dist/es/{app-Ch19CR6g.d.mts → app-DREvtzyX.d.mts} +330 -4
- package/dist/es/commands/index.mjs +27 -12
- package/dist/es/config/index.browser.d.mts +2 -1
- package/dist/es/config/index.node.d.mts +95 -6
- package/dist/es/config/index.node.mjs +3 -3
- package/dist/{cjs/define-C12IwNNN.d.cts → es/define-B6cjhz1J.d.mts} +1 -1
- package/dist/es/{index-CgsSXApi.d.mts → index-DUJtT78x.d.mts} +2 -2
- package/dist/es/{index-VgCNSlLP.d.mts → index-zgc3l2nj.d.mts} +2 -2
- package/dist/es/index.d.mts +8 -8
- package/dist/es/{index.node-C8EXBW94.mjs → index.node-ClvSfs5w.mjs} +1 -1
- package/dist/es/management/index.d.mts +6 -1
- package/dist/es/management/index.mjs +1 -1
- package/dist/es/{management-DKDR7-fX.mjs → management-CG_4z2Ck.mjs} +17 -5
- package/dist/es/{openapi-E_1RFhAr.mjs → openapi-BUIws500.mjs} +426 -45
- package/dist/es/types-DslZGym8.d.mts +23 -0
- package/dist/es/{validate-CiJIjyOr.mjs → validate-BszbuhiE.mjs} +1 -1
- package/dist/es/{router-C23GIyGQ.mjs → version-CabzC7R9.mjs} +71 -20
- package/dist/{cjs/webhooks-Buu1d7AB.d.cts → es/webhooks-BLgKadnn.d.mts} +268 -12
- package/dist/es/{webhooks-CfrYeMy_.mjs → webhooks-DRPXVMMo.mjs} +48 -13
- 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<{
|
|
@@ -1333,7 +1496,7 @@ declare const CommerceAppConfigSchemas: {
|
|
|
1333
1496
|
value: string;
|
|
1334
1497
|
}[] | undefined;
|
|
1335
1498
|
hook_name: string;
|
|
1336
|
-
method: "
|
|
1499
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
1337
1500
|
priority?: number | undefined;
|
|
1338
1501
|
required?: boolean | undefined;
|
|
1339
1502
|
rules?: {
|
|
@@ -1366,7 +1529,7 @@ declare const CommerceAppConfigSchemas: {
|
|
|
1366
1529
|
value: string;
|
|
1367
1530
|
}[] | undefined;
|
|
1368
1531
|
hook_name: string;
|
|
1369
|
-
method: "
|
|
1532
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
1370
1533
|
priority?: number | undefined;
|
|
1371
1534
|
required?: boolean | undefined;
|
|
1372
1535
|
rules?: {
|
|
@@ -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<{
|
|
@@ -2372,7 +2698,7 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
|
|
|
2372
2698
|
value: string;
|
|
2373
2699
|
}[] | undefined;
|
|
2374
2700
|
hook_name: string;
|
|
2375
|
-
method: "
|
|
2701
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
2376
2702
|
priority?: number | undefined;
|
|
2377
2703
|
required?: boolean | undefined;
|
|
2378
2704
|
rules?: {
|
|
@@ -2405,7 +2731,7 @@ declare const CommerceAppConfigSchema: v.LooseObjectSchema<{
|
|
|
2405
2731
|
value: string;
|
|
2406
2732
|
}[] | undefined;
|
|
2407
2733
|
hook_name: string;
|
|
2408
|
-
method: "
|
|
2734
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
2409
2735
|
priority?: number | undefined;
|
|
2410
2736
|
required?: boolean | undefined;
|
|
2411
2737
|
rules?: {
|
|
@@ -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-
|
|
17
|
-
import { a as hasCustomInstallationSteps, d as ADMIN_UI_MASS_ACTION_ENTITIES,
|
|
18
|
-
import { o as getConfigDomains, t as validateCommerceAppConfig, u as hasBusinessConfigSchema } from "../validate-
|
|
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-ClvSfs5w.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-DRPXVMMo.mjs";
|
|
18
|
+
import { o as getConfigDomains, t as validateCommerceAppConfig, u as hasBusinessConfigSchema } from "../validate-BszbuhiE.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.
|
|
360
|
+
version: "^1.3.0-alpha-20261110171457"
|
|
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?.
|
|
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 (
|
|
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) {
|
|
@@ -2241,6 +2242,12 @@ function describeOutcome(result, runId) {
|
|
|
2241
2242
|
}
|
|
2242
2243
|
|
|
2243
2244
|
// source/commands/hooks/post-app-deploy/main.ts
|
|
2245
|
+
const SKIP_MESSAGES = {
|
|
2246
|
+
"already-current": "The app is already up to date.",
|
|
2247
|
+
"in-progress": "An upgrade is already in progress.",
|
|
2248
|
+
"not-associated": "The app is not associated with a Commerce instance. Nothing to upgrade.",
|
|
2249
|
+
"not-installed": "The app is not installed on the Commerce instance. Nothing to upgrade."
|
|
2250
|
+
};
|
|
2244
2251
|
function isSkipCode(code) {
|
|
2245
2252
|
return code === "already-current" || code === "not-associated" || code === "not-installed" || code === "in-progress";
|
|
2246
2253
|
}
|
|
@@ -2334,12 +2341,12 @@ async function getStatusCommand() {
|
|
|
2334
2341
|
async function runHook(interrupt) {
|
|
2335
2342
|
const { upgradeMode } = (await parseCommerceAppConfig()).metadata;
|
|
2336
2343
|
console.log("");
|
|
2337
|
-
consola.start("Checking
|
|
2344
|
+
consola.start("Checking the status of the app...");
|
|
2338
2345
|
const context = createCamsContext();
|
|
2339
2346
|
consola.debug(`Service: ${context.baseUrl}`);
|
|
2340
2347
|
const extension = await findWorkspaceExtension(context);
|
|
2341
2348
|
if (!extension) {
|
|
2342
|
-
consola.info("
|
|
2349
|
+
consola.info(`${SKIP_MESSAGES["not-associated"]}\n`);
|
|
2343
2350
|
return {
|
|
2344
2351
|
code: "not-associated",
|
|
2345
2352
|
kind: "skipped"
|
|
@@ -2347,9 +2354,10 @@ async function runHook(interrupt) {
|
|
|
2347
2354
|
}
|
|
2348
2355
|
const { id: extensionId } = extension;
|
|
2349
2356
|
const client = context.createInstanceClient(requireCommerceInstance(extension));
|
|
2357
|
+
consola.start("Checking if the app needs an upgrade...");
|
|
2350
2358
|
const plan = await planUpgrade(client, extensionId);
|
|
2351
2359
|
if (typeof plan === "string") {
|
|
2352
|
-
consola.info(
|
|
2360
|
+
consola.info(`${SKIP_MESSAGES[plan]}\n`);
|
|
2353
2361
|
return {
|
|
2354
2362
|
code: plan,
|
|
2355
2363
|
kind: "skipped"
|
|
@@ -2387,6 +2395,13 @@ async function runHook(interrupt) {
|
|
|
2387
2395
|
* @throws When the upgrade is refused, fails or does not finish in time.
|
|
2388
2396
|
*/
|
|
2389
2397
|
async function run$6() {
|
|
2398
|
+
if (process.env.AIO_CLI_ENV === "stage" && process.env.AIO_COMMERCE_APP_SKIP_POST_DEPLOY_HOOK) {
|
|
2399
|
+
consola.warn(`The post-app-deploy hook was skipped because ${colors.cyan("AIO_COMMERCE_APP_SKIP_POST_DEPLOY_HOOK")} is set.\n`);
|
|
2400
|
+
return {
|
|
2401
|
+
code: "hook-disabled",
|
|
2402
|
+
kind: "skipped"
|
|
2403
|
+
};
|
|
2404
|
+
}
|
|
2390
2405
|
const statusCommand = await getStatusCommand();
|
|
2391
2406
|
const interrupt = noticeInterrupt(statusCommand);
|
|
2392
2407
|
try {
|
|
@@ -3019,7 +3034,7 @@ async function ensureAppConfig(domains, config, projectRoot) {
|
|
|
3019
3034
|
*/
|
|
3020
3035
|
function installDependencies(packageManager, domains, projectRoot) {
|
|
3021
3036
|
const packages = [];
|
|
3022
|
-
if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.8.
|
|
3037
|
+
if (domains.has("businessConfig.schema")) packages.push(`@adobe/aio-commerce-lib-config@^1.8.2-alpha-20261110171457`);
|
|
3023
3038
|
if (packages.length === 0) {
|
|
3024
3039
|
consola.info("No additional domain dependencies to install.");
|
|
3025
3040
|
return;
|
|
@@ -3054,7 +3069,7 @@ async function ensureInstallYaml(domains, config, projectRoot) {
|
|
|
3054
3069
|
}
|
|
3055
3070
|
|
|
3056
3071
|
// source/commands/init/main.ts
|
|
3057
|
-
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.
|
|
3072
|
+
const REQUIRED_DEPENDENCIES = ["@adobe/aio-commerce-sdk", `@adobe/aio-commerce-lib-app@2.2.0-alpha-20261110171457`];
|
|
3058
3073
|
/**
|
|
3059
3074
|
* Initializes a Commerce App project.
|
|
3060
3075
|
* @param flags - Non-interactive initialization answers.
|
|
@@ -12,5 +12,6 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
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-B6cjhz1J.mjs";
|
|
16
17
|
export { defineConfig };
|