@adobe/aio-commerce-lib-app 2.1.0 → 2.2.0-beta-20261105172845
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/actions/app-config/index.cjs +5 -5
- package/dist/cjs/actions/app-config/index.d.cts +1 -1
- package/dist/cjs/actions/association/index.cjs +2 -2
- package/dist/cjs/actions/config/index.cjs +2 -2
- package/dist/cjs/actions/installation/index.cjs +5 -5
- package/dist/cjs/actions/installation/index.d.cts +2 -2
- package/dist/cjs/actions/scope-tree/index.cjs +2 -2
- package/dist/cjs/{app-Ch19CR6g.d.cts → app-CiZuhrsm.d.cts} +326 -0
- package/dist/cjs/commands/index.cjs +10 -9
- package/dist/cjs/config/index.browser.d.cts +1 -1
- package/dist/cjs/config/index.node.cjs +3 -3
- package/dist/cjs/config/index.node.d.cts +88 -4
- package/dist/{es/define-C95h_wa0.d.mts → cjs/define-CZRjG5N_.d.cts} +1 -1
- package/dist/cjs/{index-D-Qn-irL.d.cts → index-Bu2X-HUh.d.cts} +2 -2
- package/dist/cjs/{index.node-CxdwPrOg.cjs → index.node-Boszndri.cjs} +1 -1
- package/dist/cjs/management/index.cjs +1 -1
- package/dist/cjs/management/index.d.cts +1 -1
- package/dist/cjs/{management-C_JQpgVB.cjs → management-C_cVbr0s.cjs} +17 -5
- package/dist/cjs/{openapi-DFoMdZzI.cjs → openapi-c06taOv1.cjs} +412 -45
- package/dist/cjs/{validate-B0rOILvG.cjs → validate-CunJ4fUD.cjs} +1 -1
- package/dist/cjs/{router-DpB8wpR2.cjs → version-CUu8Ks59.cjs} +77 -19
- package/dist/cjs/{webhooks-TvDm57xt.cjs → webhooks-C5ONLbQ4.cjs} +53 -12
- package/dist/{es/webhooks-C9vMZZDZ.d.mts → cjs/webhooks-DX7km8wk.d.cts} +266 -10
- package/dist/es/actions/app-config/index.d.mts +1 -1
- 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.mjs +2 -2
- package/dist/es/actions/installation/index.d.mts +2 -2
- package/dist/es/actions/installation/index.mjs +5 -5
- package/dist/es/actions/scope-tree/index.mjs +2 -2
- package/dist/es/{app-Ch19CR6g.d.mts → app-CiZuhrsm.d.mts} +326 -0
- package/dist/es/commands/index.mjs +10 -9
- package/dist/es/config/index.browser.d.mts +1 -1
- package/dist/es/config/index.node.d.mts +88 -4
- package/dist/es/config/index.node.mjs +3 -3
- package/dist/{cjs/define-C12IwNNN.d.cts → es/define-9bwRE_UG.d.mts} +1 -1
- package/dist/es/{index-VgCNSlLP.d.mts → index-Cho-eRFD.d.mts} +2 -2
- package/dist/es/{index.node-C8EXBW94.mjs → index.node-BVO6sC7z.mjs} +1 -1
- package/dist/es/management/index.d.mts +1 -1
- package/dist/es/management/index.mjs +1 -1
- package/dist/es/{management-DKDR7-fX.mjs → management-BYmbjhGb.mjs} +17 -5
- package/dist/es/{openapi-E_1RFhAr.mjs → openapi-C_TGWLou.mjs} +412 -45
- package/dist/es/{validate-CiJIjyOr.mjs → validate-D-Oh-sxE.mjs} +1 -1
- package/dist/es/{router-C23GIyGQ.mjs → version-C-Pkqohl.mjs} +71 -20
- package/dist/{cjs/webhooks-Buu1d7AB.d.cts → es/webhooks-B7UjO8dd.d.mts} +266 -10
- package/dist/es/{webhooks-CfrYeMy_.mjs → webhooks-CMb_05b6.mjs} +48 -13
- package/package.json +3 -3
|
@@ -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-
|
|
15
|
+
import { r as CommerceAppConfigOutputModel, t as AnyCommerceAppConfig } from "./app-CiZuhrsm.cjs";
|
|
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>;
|
|
@@ -167,6 +167,82 @@ declare const OrderViewButtonSchema: v.VariantSchema<"type", [v.StrictObjectSche
|
|
|
167
167
|
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>;
|
|
168
168
|
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
169
169
|
}, undefined>], undefined>;
|
|
170
|
+
declare const InvoiceViewButtonSchema: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
171
|
+
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>;
|
|
172
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
173
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
174
|
+
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>;
|
|
175
|
+
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>;
|
|
176
|
+
}, undefined>, undefined>;
|
|
177
|
+
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>;
|
|
178
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
179
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
180
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
181
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
182
|
+
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>;
|
|
183
|
+
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>;
|
|
184
|
+
}, undefined>, undefined>;
|
|
185
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
186
|
+
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>;
|
|
187
|
+
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>;
|
|
188
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
189
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
190
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
191
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
192
|
+
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>;
|
|
193
|
+
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>;
|
|
194
|
+
}, undefined>, undefined>;
|
|
195
|
+
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>;
|
|
196
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
197
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
198
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
199
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
200
|
+
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>;
|
|
201
|
+
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>;
|
|
202
|
+
}, undefined>, undefined>;
|
|
203
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
204
|
+
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>;
|
|
205
|
+
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>;
|
|
206
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
207
|
+
}, undefined>], undefined>;
|
|
208
|
+
declare const CreditMemoViewButtonSchema: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
209
|
+
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>;
|
|
210
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
211
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
212
|
+
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>;
|
|
213
|
+
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>;
|
|
214
|
+
}, undefined>, undefined>;
|
|
215
|
+
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>;
|
|
216
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
217
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
218
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
219
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
220
|
+
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>;
|
|
221
|
+
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>;
|
|
222
|
+
}, undefined>, undefined>;
|
|
223
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
224
|
+
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>;
|
|
225
|
+
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>;
|
|
226
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
227
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
228
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
229
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
230
|
+
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>;
|
|
231
|
+
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>;
|
|
232
|
+
}, undefined>, undefined>;
|
|
233
|
+
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>;
|
|
234
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
235
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
236
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
237
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
238
|
+
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>;
|
|
239
|
+
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>;
|
|
240
|
+
}, undefined>, undefined>;
|
|
241
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
242
|
+
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>;
|
|
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
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
245
|
+
}, undefined>], undefined>;
|
|
170
246
|
declare const MenuSchema: v.ObjectSchema<{
|
|
171
247
|
/**
|
|
172
248
|
* When `true`, Commerce auto-generates a per-app ACL resource id from `metadata.id`
|
|
@@ -181,6 +257,12 @@ declare const MenuSchema: v.ObjectSchema<{
|
|
|
181
257
|
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>;
|
|
182
258
|
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>;
|
|
183
259
|
}, undefined>;
|
|
260
|
+
declare const NativeUiReplacedPageSchema: v.StrictObjectSchema<{
|
|
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 target: v.PicklistSchema<readonly ["order.create"], `Invalid native UI replaced page target. Accepted values are: ${string}`>;
|
|
264
|
+
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
|
+
}, undefined>;
|
|
184
266
|
/** A top-level acl entry: a leaf, or a group carrying leaf children (exactly one level of nesting). */
|
|
185
267
|
declare const AclResourceEntrySchema: v.StrictObjectSchema<{
|
|
186
268
|
readonly children: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
@@ -198,7 +280,7 @@ declare const AclResourceEntrySchema: v.StrictObjectSchema<{
|
|
|
198
280
|
}, undefined>;
|
|
199
281
|
/**
|
|
200
282
|
* Schema for the `adminUi` config section.
|
|
201
|
-
* Supports grid column extensions, mass actions, order view buttons, menu, and custom ACL resources on `commerce/backend-ui/2`.
|
|
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`.
|
|
202
284
|
*/
|
|
203
285
|
declare const AdminUiSchema: v.ObjectSchema<{
|
|
204
286
|
readonly acl: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
@@ -261,6 +343,81 @@ declare const AdminUiSchema: v.ObjectSchema<{
|
|
|
261
343
|
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
262
344
|
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
263
345
|
}, undefined>, undefined>;
|
|
346
|
+
readonly viewButtons: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
347
|
+
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>;
|
|
348
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
349
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
350
|
+
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>;
|
|
351
|
+
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>;
|
|
352
|
+
}, undefined>, undefined>;
|
|
353
|
+
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>;
|
|
354
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
355
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
356
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
357
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
358
|
+
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>;
|
|
359
|
+
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>;
|
|
360
|
+
}, undefined>, undefined>;
|
|
361
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
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>;
|
|
363
|
+
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>;
|
|
364
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
365
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
366
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
367
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
368
|
+
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>;
|
|
369
|
+
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>;
|
|
370
|
+
}, undefined>, undefined>;
|
|
371
|
+
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>;
|
|
372
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
373
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
374
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
375
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
376
|
+
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>;
|
|
377
|
+
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>;
|
|
378
|
+
}, undefined>, undefined>;
|
|
379
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
380
|
+
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>;
|
|
381
|
+
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>;
|
|
382
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
383
|
+
}, undefined>], undefined>, undefined>, v.CheckAction<({
|
|
384
|
+
title?: string | undefined;
|
|
385
|
+
aclProtected?: boolean | undefined;
|
|
386
|
+
confirm?: {
|
|
387
|
+
message?: string | undefined;
|
|
388
|
+
title?: string | undefined;
|
|
389
|
+
} | undefined;
|
|
390
|
+
description?: string | undefined;
|
|
391
|
+
id: string;
|
|
392
|
+
label: string;
|
|
393
|
+
level?: 0 | 1 | -1 | undefined;
|
|
394
|
+
notifications?: {
|
|
395
|
+
error?: string | undefined;
|
|
396
|
+
success?: string | undefined;
|
|
397
|
+
} | undefined;
|
|
398
|
+
path: string;
|
|
399
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
400
|
+
sortOrder?: number | undefined;
|
|
401
|
+
type: "view";
|
|
402
|
+
} | {
|
|
403
|
+
aclProtected?: boolean | undefined;
|
|
404
|
+
confirm?: {
|
|
405
|
+
message?: string | undefined;
|
|
406
|
+
title?: string | undefined;
|
|
407
|
+
} | undefined;
|
|
408
|
+
description?: string | undefined;
|
|
409
|
+
id: string;
|
|
410
|
+
label: string;
|
|
411
|
+
level?: 0 | 1 | -1 | undefined;
|
|
412
|
+
notifications?: {
|
|
413
|
+
error?: string | undefined;
|
|
414
|
+
success?: string | undefined;
|
|
415
|
+
} | undefined;
|
|
416
|
+
runtimeAction: string;
|
|
417
|
+
sortOrder?: number | undefined;
|
|
418
|
+
timeout?: number | undefined;
|
|
419
|
+
type: "worker";
|
|
420
|
+
})[], "Credit memo view button ids must be unique after Commerce id sanitization.">]>, undefined>;
|
|
264
421
|
}, undefined>, undefined>;
|
|
265
422
|
readonly customer: v.OptionalSchema<v.ObjectSchema<{
|
|
266
423
|
readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
|
|
@@ -386,6 +543,81 @@ declare const AdminUiSchema: v.ObjectSchema<{
|
|
|
386
543
|
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
387
544
|
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
388
545
|
}, undefined>, undefined>;
|
|
546
|
+
readonly viewButtons: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
547
|
+
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>;
|
|
548
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
549
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
550
|
+
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>;
|
|
551
|
+
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>;
|
|
552
|
+
}, undefined>, undefined>;
|
|
553
|
+
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>;
|
|
554
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
555
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
556
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
557
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
558
|
+
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>;
|
|
559
|
+
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>;
|
|
560
|
+
}, undefined>, undefined>;
|
|
561
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
562
|
+
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>;
|
|
563
|
+
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>;
|
|
564
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
565
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
566
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
567
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
568
|
+
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>;
|
|
569
|
+
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>;
|
|
570
|
+
}, undefined>, undefined>;
|
|
571
|
+
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>;
|
|
572
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
573
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
574
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
575
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
576
|
+
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>;
|
|
577
|
+
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>;
|
|
578
|
+
}, undefined>, undefined>;
|
|
579
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
580
|
+
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>;
|
|
581
|
+
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
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
583
|
+
}, undefined>], undefined>, undefined>, v.CheckAction<({
|
|
584
|
+
aclProtected?: boolean | undefined;
|
|
585
|
+
confirm?: {
|
|
586
|
+
message?: string | undefined;
|
|
587
|
+
title?: string | undefined;
|
|
588
|
+
} | undefined;
|
|
589
|
+
description?: string | undefined;
|
|
590
|
+
id: string;
|
|
591
|
+
label: string;
|
|
592
|
+
level?: 0 | 1 | -1 | undefined;
|
|
593
|
+
notifications?: {
|
|
594
|
+
error?: string | undefined;
|
|
595
|
+
success?: string | undefined;
|
|
596
|
+
} | undefined;
|
|
597
|
+
runtimeAction: string;
|
|
598
|
+
sortOrder?: number | undefined;
|
|
599
|
+
timeout?: number | undefined;
|
|
600
|
+
type: "worker";
|
|
601
|
+
} | {
|
|
602
|
+
title?: string | undefined;
|
|
603
|
+
aclProtected?: boolean | undefined;
|
|
604
|
+
confirm?: {
|
|
605
|
+
message?: string | undefined;
|
|
606
|
+
title?: string | undefined;
|
|
607
|
+
} | undefined;
|
|
608
|
+
description?: string | undefined;
|
|
609
|
+
id: string;
|
|
610
|
+
label: string;
|
|
611
|
+
level?: 0 | 1 | -1 | undefined;
|
|
612
|
+
notifications?: {
|
|
613
|
+
error?: string | undefined;
|
|
614
|
+
success?: string | undefined;
|
|
615
|
+
} | undefined;
|
|
616
|
+
path: string;
|
|
617
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
618
|
+
sortOrder?: number | undefined;
|
|
619
|
+
type: "view";
|
|
620
|
+
})[], "Invoice view button ids must be unique after Commerce id sanitization.">]>, undefined>;
|
|
389
621
|
}, undefined>, undefined>;
|
|
390
622
|
readonly menu: v.OptionalSchema<v.ObjectSchema<{
|
|
391
623
|
/**
|
|
@@ -401,6 +633,19 @@ declare const AdminUiSchema: v.ObjectSchema<{
|
|
|
401
633
|
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>;
|
|
402
634
|
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>;
|
|
403
635
|
}, undefined>, undefined>;
|
|
636
|
+
readonly nativeUi: v.OptionalSchema<v.ObjectSchema<{
|
|
637
|
+
readonly replacedPages: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
638
|
+
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
|
+
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}`>;
|
|
641
|
+
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
|
+
}, undefined>, undefined>, v.CheckAction<{
|
|
643
|
+
path: string;
|
|
644
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
645
|
+
target: "order.create";
|
|
646
|
+
title: string;
|
|
647
|
+
}[], "Native UI replaced page targets must be unique.">]>;
|
|
648
|
+
}, undefined>, undefined>;
|
|
404
649
|
readonly newsletter: v.OptionalSchema<v.ObjectSchema<{
|
|
405
650
|
readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
|
|
406
651
|
readonly columns: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
@@ -733,9 +978,10 @@ type AdminUiConfiguration = v.InferInput<typeof AdminUiSchema>;
|
|
|
733
978
|
type AclResourceEntry = v.InferInput<typeof AclResourceEntrySchema>;
|
|
734
979
|
/**
|
|
735
980
|
* The validated config of a single Admin UI component: the menu, an entity's
|
|
736
|
-
* grid columns, a
|
|
981
|
+
* grid columns, a mass action, a view button, a native UI page replacement, or a
|
|
982
|
+
* custom ACL resource entry.
|
|
737
983
|
*/
|
|
738
|
-
type AdminUiComponentConfig = v.InferOutput<typeof MenuSchema> | v.InferOutput<typeof GridColumnsSchema> | v.InferOutput<typeof MassActionSchema> | v.InferOutput<typeof OrderViewButtonSchema> | AclResourceEntry;
|
|
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;
|
|
739
985
|
/**
|
|
740
986
|
* Grid columns registration configuration.
|
|
741
987
|
*/
|
|
@@ -760,6 +1006,10 @@ type WorkerMassAction = v.InferInput<typeof WorkerMassActionSchema>;
|
|
|
760
1006
|
* An order view button registration entry (v2, `adminUi`).
|
|
761
1007
|
*/
|
|
762
1008
|
type OrderViewButton = v.InferInput<typeof OrderViewButtonSchema>;
|
|
1009
|
+
/** An invoice view button registration entry (view or worker variant). */
|
|
1010
|
+
type InvoiceViewButton = v.InferInput<typeof InvoiceViewButtonSchema>;
|
|
1011
|
+
/** A credit memo view button registration entry (view or worker variant). */
|
|
1012
|
+
type CreditMemoViewButton = v.InferInput<typeof CreditMemoViewButtonSchema>;
|
|
763
1013
|
/**
|
|
764
1014
|
* Inlined notification strings on an `adminUi` registration entry.
|
|
765
1015
|
*/
|
|
@@ -770,6 +1020,10 @@ type Notifications = v.InferInput<typeof NotificationsSchema>;
|
|
|
770
1020
|
* a per-app ACL resource from `metadata.id` for role-based menu access control.
|
|
771
1021
|
*/
|
|
772
1022
|
type Menu = v.InferInput<typeof MenuSchema>;
|
|
1023
|
+
/**
|
|
1024
|
+
* A native Commerce Admin form replaced by an application page.
|
|
1025
|
+
*/
|
|
1026
|
+
type NativeUiReplacedPage = v.InferInput<typeof NativeUiReplacedPageSchema>;
|
|
773
1027
|
/** Config type when `adminUi` configuration is present. */
|
|
774
1028
|
type AdminUiConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = T & {
|
|
775
1029
|
adminUi: NonNullable<T["adminUi"]>;
|
|
@@ -777,15 +1031,17 @@ type AdminUiConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel
|
|
|
777
1031
|
/**
|
|
778
1032
|
* Check whether the config declares an Admin UI component that requires the
|
|
779
1033
|
* `commerce/backend-ui/2` extension point — a menu, grid columns, mass actions,
|
|
780
|
-
* or
|
|
781
|
-
* Commerce through the `extensibility/1`
|
|
782
|
-
* so an acl-only config needs no
|
|
1034
|
+
* view buttons, or native UI replaced pages. Custom ACL resources are
|
|
1035
|
+
* deliberately excluded: they reach Commerce through the `extensibility/1`
|
|
1036
|
+
* app-config payload, not backend-ui/2, so an acl-only config needs no
|
|
1037
|
+
* backend-ui/2 registration.
|
|
783
1038
|
*/
|
|
784
1039
|
declare function hasBackendUiV2Components<T extends AnyCommerceAppConfig>(config: T): config is AdminUiConfig<T>;
|
|
785
1040
|
/**
|
|
786
1041
|
* Check whether the config declares at least one Admin UI component (menu, grid
|
|
787
|
-
* columns, mass actions, view buttons,
|
|
788
|
-
* treated as absent — it
|
|
1042
|
+
* columns, mass actions, view buttons, native UI replaced pages, or custom ACL
|
|
1043
|
+
* resources). A component-less `adminUi` block is treated as absent — it
|
|
1044
|
+
* registers nothing.
|
|
789
1045
|
*/
|
|
790
1046
|
declare function hasAdminUi<T extends AnyCommerceAppConfig>(config: T): config is AdminUiConfig<T>;
|
|
791
1047
|
/** Schema for event provider configuration */
|
|
@@ -1440,4 +1696,4 @@ type WebhooksConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputMode
|
|
|
1440
1696
|
* @param config - The configuration to check.
|
|
1441
1697
|
*/
|
|
1442
1698
|
declare function hasWebhooks<T extends AnyCommerceAppConfig>(config: T): config is T & WebhooksConfig<T>;
|
|
1443
|
-
export { AdminUiConfig as A,
|
|
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 };
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import "../../index-CgsSXApi.mjs";
|
|
16
|
-
import { n as CommerceAppConfig } from "../../app-
|
|
16
|
+
import { n as CommerceAppConfig } from "../../app-CiZuhrsm.mjs";
|
|
17
17
|
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
18
18
|
/** The arguments required to create the runtime action for the app-config action. */
|
|
19
19
|
type RuntimeActionFactoryArgs = {
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { n as logger, t as
|
|
15
|
+
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-C-Pkqohl.mjs";
|
|
16
16
|
import { n as filterAppConfigByEnv } from "../../environment-DUhU0_9z.mjs";
|
|
17
|
-
import { i as requiresInstallationFromDomains, o as getConfigDomains, t as validateCommerceAppConfig, u as hasBusinessConfigSchema } from "../../validate-
|
|
17
|
+
import { i as requiresInstallationFromDomains, o as getConfigDomains, t as validateCommerceAppConfig, u as hasBusinessConfigSchema } from "../../validate-D-Oh-sxE.mjs";
|
|
18
18
|
import { resolveBusinessConfigSchema } from "@adobe/aio-commerce-lib-config";
|
|
19
19
|
import { CommerceEnvSchema } from "@adobe/aio-commerce-lib-core/commerce";
|
|
20
20
|
import * as v from "valibot";
|
|
@@ -26,7 +26,7 @@ import { createHash } from "crypto";
|
|
|
26
26
|
* Loads the committed OpenAPI spec via dynamic import so it
|
|
27
27
|
* lands in its own chunk and is not parsed on every cold start.
|
|
28
28
|
*/
|
|
29
|
-
const importOpenApi = () => import("../../openapi-
|
|
29
|
+
const importOpenApi = () => import("../../openapi-C_TGWLou.mjs");
|
|
30
30
|
/** Matches component schema `$ref` strings, capturing the schema name. */
|
|
31
31
|
const SCHEMA_REF_PATTERN = /"#\/components\/schemas\/(?<schema>\w+)"/gu;
|
|
32
32
|
/**
|
|
@@ -77,7 +77,7 @@ function pruneUnusedTags(spec) {
|
|
|
77
77
|
* @param domains - The active config domains.
|
|
78
78
|
*/
|
|
79
79
|
function getOpenApiCacheKey(domains) {
|
|
80
|
-
const input = `2.
|
|
80
|
+
const input = `2.2.0-beta-20261105172845:${[...domains].sort().join(",")}:4.2.0`;
|
|
81
81
|
return createHash("sha256").update(input).digest("hex").slice(0, 8);
|
|
82
82
|
}
|
|
83
83
|
/** Returns the server URL to be set in the OpenAPI spec, based on the current namespace. */
|
|
@@ -129,7 +129,7 @@ async function buildOpenApiSpec(domains, logger) {
|
|
|
129
129
|
* - GET / Retrieve the Commerce App configuration.
|
|
130
130
|
* - GET /openapi.json Returns the OpenAPI spec for all SDK actions
|
|
131
131
|
*/
|
|
132
|
-
const router = new HttpActionRouter().use(logger({ name: () => "app-config" }));
|
|
132
|
+
const router = new HttpActionRouter({ headers: SDK_LIB_VERSIONS_HEADERS }).use(logger({ name: () => "app-config" }));
|
|
133
133
|
/** GET / - Get app config */
|
|
134
134
|
router.get("/", {
|
|
135
135
|
handler: async (req, { logger, rawParams }) => {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { n as logger, t as
|
|
15
|
+
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-C-Pkqohl.mjs";
|
|
16
16
|
import { r as setAssociationData, t as clearAssociationData } from "../../repository-BVBp61y9.mjs";
|
|
17
17
|
import { resolveImsAuthParams } from "@adobe/aio-commerce-lib-auth";
|
|
18
18
|
import { CommerceEnvSchema } from "@adobe/aio-commerce-lib-core/commerce";
|
|
@@ -34,7 +34,7 @@ const AssociationRequestBodySchema = v.object({
|
|
|
34
34
|
* - POST / Store Commerce instance details (`baseUrl`, `env`)
|
|
35
35
|
* - DELETE / Clear stored Commerce instance details
|
|
36
36
|
*/
|
|
37
|
-
const router = new HttpActionRouter().use(logger({ name: () => "association" }));
|
|
37
|
+
const router = new HttpActionRouter({ headers: SDK_LIB_VERSIONS_HEADERS }).use(logger({ name: () => "association" }));
|
|
38
38
|
/** POST / - Store association data and return the app's own `client_id`. */
|
|
39
39
|
router.post("/", {
|
|
40
40
|
body: AssociationRequestBodySchema,
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { n as logger, t as
|
|
15
|
+
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-C-Pkqohl.mjs";
|
|
16
16
|
import { r as filterSchemaByEnv } from "../../environment-DUhU0_9z.mjs";
|
|
17
17
|
import { r as nonEmptyStringValueSchema } from "../../schemas-DYMNbFdX.mjs";
|
|
18
18
|
import { byScopeId, getConfiguration, initialize, setConfiguration } from "@adobe/aio-commerce-lib-config";
|
|
@@ -64,7 +64,7 @@ function filterPasswordFields(schema, values) {
|
|
|
64
64
|
* - GET / Get current configuration values for a given scope
|
|
65
65
|
* - PATCH / Partially update configuration (only updates provided fields, allows unsetting)
|
|
66
66
|
*/
|
|
67
|
-
const router = new HttpActionRouter().use(logger({ name: () => "config" }));
|
|
67
|
+
const router = new HttpActionRouter({ headers: SDK_LIB_VERSIONS_HEADERS }).use(logger({ name: () => "config" }));
|
|
68
68
|
/** GET / - Retrieve configuration */
|
|
69
69
|
router.get("/", {
|
|
70
70
|
handler: async (req, ctx) => {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import "../../index-CgsSXApi.mjs";
|
|
16
|
-
import { G as LifecycleContext } from "../../index-
|
|
17
|
-
import { n as CommerceAppConfig, r as CommerceAppConfigOutputModel } from "../../app-
|
|
16
|
+
import { G as LifecycleContext } from "../../index-Cho-eRFD.mjs";
|
|
17
|
+
import { n as CommerceAppConfig, r as CommerceAppConfigOutputModel } from "../../app-CiZuhrsm.mjs";
|
|
18
18
|
import { RuntimeActionParams } from "@adobe/aio-commerce-lib-core/params";
|
|
19
19
|
/** Loads generated custom installation script modules. */
|
|
20
20
|
type CustomScriptsLoader = (config: CommerceAppConfigOutputModel, logger: LifecycleContext["logger"]) => Record<string, unknown>;
|
|
@@ -12,12 +12,12 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { n as logger, t as
|
|
15
|
+
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-C-Pkqohl.mjs";
|
|
16
16
|
import { r as nonEmptyStringValueSchema } from "../../schemas-DYMNbFdX.mjs";
|
|
17
|
-
import { C as isLeafStep, S as isBranchStep, _ as getAtPath, b as pathsEqual, c as getCustomScriptStepName, d as isInProgressState, f as isSucceededState, g as createWorkflowError, h as createSucceededState, l as isCompletedState, m as createFailedState, o as createRootInstallationStep, p as toValidationResult, v as isStepConfigured, w as callHook, x as setAtPath, y as nowIsoString } from "../../management-
|
|
17
|
+
import { C as isLeafStep, S as isBranchStep, _ as getAtPath, b as pathsEqual, c as getCustomScriptStepName, d as isInProgressState, f as isSucceededState, g as createWorkflowError, h as createSucceededState, l as isCompletedState, m as createFailedState, o as createRootInstallationStep, p as toValidationResult, v as isStepConfigured, w as callHook, x as setAtPath, y as nowIsoString } from "../../management-BYmbjhGb.mjs";
|
|
18
18
|
import { n as getAssociationData } from "../../repository-BVBp61y9.mjs";
|
|
19
|
-
import { a as hasCustomInstallationSteps } from "../../webhooks-
|
|
20
|
-
import { r as requiresInstallation, t as validateCommerceAppConfig } from "../../validate-
|
|
19
|
+
import { a as hasCustomInstallationSteps } from "../../webhooks-CMb_05b6.mjs";
|
|
20
|
+
import { r as requiresInstallation, t as validateCommerceAppConfig } from "../../validate-D-Oh-sxE.mjs";
|
|
21
21
|
import { init } from "@adobe/aio-lib-state";
|
|
22
22
|
import { CommerceSdkErrorBase } from "@adobe/aio-commerce-lib-core/error";
|
|
23
23
|
import { resolveImsAuthParams } from "@adobe/aio-commerce-lib-auth";
|
|
@@ -2136,7 +2136,7 @@ async function writeBusinessConfigOnlyBaseline({ appConfig, runtime }, state, in
|
|
|
2136
2136
|
* - POST /plan Plan an install, upgrade or uninstall for review
|
|
2137
2137
|
* - POST /execution Execute a started lifecycle attempt (internal, called async)
|
|
2138
2138
|
*/
|
|
2139
|
-
const router = new HttpActionRouter().use(logger({ name: () => "installation" }));
|
|
2139
|
+
const router = new HttpActionRouter({ headers: SDK_LIB_VERSIONS_HEADERS }).use(logger({ name: () => "installation" }));
|
|
2140
2140
|
/**
|
|
2141
2141
|
* GET / - Get the status of the latest lifecycle operation. Falls back to the record of an
|
|
2142
2142
|
* installation made by an older library version.
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { n as logger, t as
|
|
15
|
+
import { n as HttpActionRouter, r as logger, t as SDK_LIB_VERSIONS_HEADERS } from "../../version-C-Pkqohl.mjs";
|
|
16
16
|
import { t as inspect } from "../../logging-B1xb568A.mjs";
|
|
17
17
|
import { t as LIFECYCLE_HTTP_CLIENT_TIMEOUT_MS } from "../../constants-C-4fesPr.mjs";
|
|
18
18
|
import { r as nonEmptyStringValueSchema } from "../../schemas-DYMNbFdX.mjs";
|
|
@@ -50,7 +50,7 @@ const SyncCommerceScopesBodySchema = v.object({
|
|
|
50
50
|
* - POST /commerce Sync commerce scopes
|
|
51
51
|
* - DELETE /commerce Unsync commerce scopes
|
|
52
52
|
*/
|
|
53
|
-
const router = new HttpActionRouter().use(logger({ name: () => "scope-tree" }));
|
|
53
|
+
const router = new HttpActionRouter({ headers: SDK_LIB_VERSIONS_HEADERS }).use(logger({ name: () => "scope-tree" }));
|
|
54
54
|
/** GET / - Get scope tree */
|
|
55
55
|
router.get("/", { handler: async (_req, ctx) => {
|
|
56
56
|
const { logger } = ctx;
|