@adobe/aio-commerce-lib-app 1.7.0 → 1.8.0-beta-20260714082406
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 +83 -0
- package/dist/cjs/actions/app-config/index.cjs +41 -38
- package/dist/cjs/actions/app-config/index.d.cts +1 -1
- package/dist/cjs/actions/association/index.cjs +85 -0
- package/dist/cjs/actions/{registration → association}/index.d.cts +9 -13
- package/dist/cjs/actions/config/index.cjs +21 -32
- package/dist/cjs/actions/installation/index.cjs +72 -51
- package/dist/cjs/actions/installation/index.d.cts +2 -2
- package/dist/cjs/actions/scope-tree/index.cjs +18 -17
- package/dist/{es/app-DrYHK-z1.d.mts → cjs/app-D3P-Z6uY.d.cts} +1085 -1035
- package/dist/cjs/association-repository-BAs3-VkW.cjs +69 -0
- package/dist/cjs/commands/index.cjs +512 -298
- package/dist/cjs/commands/templates/admin-ui/tsconfig.json +14 -0
- package/dist/cjs/commands/templates/admin-ui/web-src/index.css +5 -0
- package/dist/cjs/commands/templates/admin-ui/web-src/index.html +17 -0
- package/dist/cjs/commands/templates/admin-ui/web-src/src/app.jsx +13 -0
- package/dist/cjs/commands/templates/admin-ui/web-src/src/components/welcome.jsx +12 -0
- package/dist/cjs/commands/templates/admin-ui/web-src/src/pages/main-page.jsx +10 -0
- package/dist/cjs/commands/templates/{admin-ui-sdk/registration.js.template → admin-ui/web-src-template.d.ts} +11 -6
- package/dist/cjs/commands/templates/app-management/app-config.js.template +1 -14
- package/dist/cjs/commands/templates/app-management/association.js.template +6 -0
- package/dist/cjs/commands/templates/app-management/installation.js.template +1 -13
- package/dist/cjs/commands/templates/business-configuration/config.js.template +2 -15
- package/dist/cjs/commands/templates/business-configuration/scope-tree.js.template +0 -12
- package/dist/cjs/config/index.browser.cjs +18 -0
- package/dist/cjs/config/index.browser.d.cts +16 -0
- package/dist/cjs/config/{index.cjs → index.node.cjs} +9 -8
- package/dist/cjs/config/{index.d.cts → index.node.d.cts} +954 -386
- package/dist/cjs/define-DBxAlJfN.d.cts +34 -0
- package/dist/cjs/define-hlcQw7Cv.cjs +41 -0
- package/dist/cjs/environment-B7EnozSg.cjs +135 -0
- package/dist/cjs/{index-B5gJ-q4U.d.cts → index-CzReNwbF.d.cts} +17 -12
- package/dist/cjs/index.cjs +250 -0
- package/dist/cjs/index.d.cts +217 -0
- package/dist/cjs/{config-D-s0GSep.cjs → index.node-Dz4lV4qe.cjs} +119 -35
- package/dist/cjs/{logging-BVz3weoC.cjs → logging-udPuAJPt.cjs} +2 -2
- package/dist/cjs/management/index.cjs +1 -1
- package/dist/cjs/management/index.d.cts +1 -1
- package/dist/cjs/{management-Dehz9qSJ.cjs → management-B9ItB80R.cjs} +385 -582
- package/dist/cjs/{openapi-Cux6K4ZD.cjs → openapi-CwytYdWl.cjs} +476 -600
- package/dist/cjs/{router-BOR7T6qR.cjs → router-hA_Y9gZ1.cjs} +42 -44
- package/dist/cjs/{schemas-FngDuIeo.cjs → schemas-mLxMh_ko.cjs} +2 -2
- package/dist/cjs/utils-DSCmZ_iJ.cjs +408 -0
- package/dist/cjs/{validate-oAOpyFyb.cjs → validate-BfxhZ5Wv.cjs} +20 -20
- package/dist/cjs/{webhooks-tbZy9G3p.cjs → webhooks-B5tb9NeF.cjs} +159 -151
- package/dist/es/actions/app-config/index.d.mts +1 -1
- package/dist/es/actions/app-config/index.mjs +39 -36
- package/dist/es/actions/{registration → association}/index.d.mts +9 -13
- package/dist/es/actions/association/index.mjs +82 -0
- package/dist/es/actions/config/index.mjs +17 -28
- package/dist/es/actions/installation/index.d.mts +2 -2
- package/dist/es/actions/installation/index.mjs +69 -48
- package/dist/es/actions/scope-tree/index.mjs +14 -13
- package/dist/{cjs/app-DrYHK-z1.d.cts → es/app-D3P-Z6uY.d.mts} +1085 -1035
- package/dist/es/association-repository-BbQv9WCl.mjs +52 -0
- package/dist/es/commands/index.mjs +544 -328
- package/dist/es/commands/templates/admin-ui/tsconfig.json +14 -0
- package/dist/es/commands/templates/admin-ui/web-src/index.css +5 -0
- package/dist/es/commands/templates/admin-ui/web-src/index.html +17 -0
- package/dist/es/commands/templates/admin-ui/web-src/src/app.jsx +13 -0
- package/dist/es/commands/templates/admin-ui/web-src/src/components/welcome.jsx +12 -0
- package/dist/es/commands/templates/admin-ui/web-src/src/pages/main-page.jsx +10 -0
- package/dist/es/commands/templates/{admin-ui-sdk/registration.js.template → admin-ui/web-src-template.d.ts} +11 -6
- package/dist/es/commands/templates/app-management/app-config.js.template +1 -14
- package/dist/es/commands/templates/app-management/association.js.template +6 -0
- package/dist/es/commands/templates/app-management/installation.js.template +1 -13
- package/dist/es/commands/templates/business-configuration/config.js.template +2 -15
- package/dist/es/commands/templates/business-configuration/scope-tree.js.template +0 -12
- package/dist/es/config/index.browser.d.mts +16 -0
- package/dist/es/config/index.browser.mjs +17 -0
- package/dist/es/config/{index.d.mts → index.node.d.mts} +954 -386
- package/dist/es/config/{index.mjs → index.node.mjs} +5 -4
- package/dist/es/define-EoYRZbpe.d.mts +34 -0
- package/dist/es/define-Z_Glf1-_.mjs +35 -0
- package/dist/es/environment-C84BPRJZ.mjs +104 -0
- package/dist/es/{index-DLMbTtKS.d.mts → index-D52xglhZ.d.mts} +17 -12
- package/dist/es/index.d.mts +217 -0
- package/dist/es/index.mjs +242 -0
- package/dist/es/{config-3I4eLyyR.mjs → index.node-CDH5gwJE.mjs} +94 -30
- package/dist/es/management/index.d.mts +1 -1
- package/dist/es/management/index.mjs +1 -1
- package/dist/es/{management-BUX-w2Ji.mjs → management-B89ApQVY.mjs} +353 -550
- package/dist/es/{openapi-B6uP0SRn.mjs → openapi-CXonvevE.mjs} +476 -600
- package/dist/es/{router-D58JJHHA.mjs → router-B_h0cvjc.mjs} +40 -42
- package/dist/es/utils-_gj8L6eN.mjs +289 -0
- package/dist/es/{validate-Dfajrp99.mjs → validate-9cRZWGrA.mjs} +17 -17
- package/dist/es/{webhooks-B5oq9ULL.mjs → webhooks-BBPbY2mb.mjs} +150 -142
- package/package.json +40 -17
- package/dist/cjs/actions/registration/index.cjs +0 -50
- package/dist/cjs/admin-ui-sdk-EU915zlR.d.cts +0 -664
- package/dist/es/actions/registration/index.mjs +0 -49
- package/dist/es/admin-ui-sdk-BwnD0xjK.d.mts +0 -664
- /package/dist/cjs/{chunk-Cozy-1ZF.cjs → rolldown-runtime-Cozy-1ZF.cjs} +0 -0
|
@@ -12,28 +12,11 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-
|
|
16
|
-
import {
|
|
15
|
+
import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-D3P-Z6uY.mjs";
|
|
16
|
+
import { t as defineConfig } from "../define-EoYRZbpe.mjs";
|
|
17
17
|
import * as v from "valibot";
|
|
18
18
|
import { Get } from "type-fest";
|
|
19
19
|
|
|
20
|
-
//#region source/config/lib/define.d.ts
|
|
21
|
-
/**
|
|
22
|
-
* Helper to type-safely define the app config.
|
|
23
|
-
* @param config - The app config to define.
|
|
24
|
-
*
|
|
25
|
-
* @example
|
|
26
|
-
* ```typescript
|
|
27
|
-
* import { defineConfig } from "@adobe/aio-commerce-lib-app";
|
|
28
|
-
*
|
|
29
|
-
* // In app.commerce.config.js
|
|
30
|
-
* export default defineConfig({
|
|
31
|
-
* // You get autocompletion and type-safety for the config object.
|
|
32
|
-
* businessConfig: { ... }
|
|
33
|
-
* });
|
|
34
|
-
*/
|
|
35
|
-
declare function defineConfig<const T extends CommerceAppConfig>(config: T): T;
|
|
36
|
-
//#endregion
|
|
37
20
|
//#region source/config/lib/parser.d.ts
|
|
38
21
|
/**
|
|
39
22
|
* Try to find (up to the nearest package.json file) the app config file.
|
|
@@ -72,44 +55,238 @@ declare function readCommerceAppConfig(cwd?: string): Promise<unknown>;
|
|
|
72
55
|
* @throws {Error} If no config file is found, if the file doesn't export a default export, or if validation fails
|
|
73
56
|
*/
|
|
74
57
|
declare function parseCommerceAppConfig(cwd?: string): Promise<{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
58
|
+
adminUi?: {
|
|
59
|
+
customer?: {
|
|
60
|
+
gridColumns?: {
|
|
61
|
+
columns: {
|
|
62
|
+
aclProtected?: boolean | undefined;
|
|
63
|
+
align: "left" | "right" | "center";
|
|
64
|
+
id: string;
|
|
65
|
+
label: string;
|
|
66
|
+
type: "string" | "boolean" | "date" | "datetime" | "float" | "integer";
|
|
67
|
+
}[];
|
|
68
|
+
description: string;
|
|
69
|
+
label: string;
|
|
70
|
+
runtimeAction: string;
|
|
71
|
+
} | undefined;
|
|
72
|
+
massActions?: ({
|
|
73
|
+
path: string;
|
|
74
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
75
|
+
type: "view";
|
|
76
|
+
aclProtected?: boolean | undefined;
|
|
77
|
+
confirm?: {
|
|
78
|
+
message?: string | undefined;
|
|
79
|
+
title?: string | undefined;
|
|
80
|
+
} | undefined;
|
|
81
|
+
description?: string | undefined;
|
|
82
|
+
id: string;
|
|
83
|
+
label: string;
|
|
84
|
+
notifications?: {
|
|
85
|
+
error?: string | undefined;
|
|
86
|
+
success?: string | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
selectionLimit?: number | undefined;
|
|
89
|
+
title?: string | undefined;
|
|
90
|
+
} | {
|
|
91
|
+
runtimeAction: string;
|
|
92
|
+
timeout?: number | undefined;
|
|
93
|
+
type: "worker";
|
|
94
|
+
aclProtected?: boolean | undefined;
|
|
95
|
+
confirm?: {
|
|
96
|
+
message?: string | undefined;
|
|
97
|
+
title?: string | undefined;
|
|
98
|
+
} | undefined;
|
|
99
|
+
description?: string | undefined;
|
|
100
|
+
id: string;
|
|
101
|
+
label: string;
|
|
102
|
+
notifications?: {
|
|
103
|
+
error?: string | undefined;
|
|
104
|
+
success?: string | undefined;
|
|
105
|
+
} | undefined;
|
|
106
|
+
selectionLimit?: number | undefined;
|
|
107
|
+
title?: string | undefined;
|
|
108
|
+
})[] | undefined;
|
|
109
|
+
} | undefined;
|
|
110
|
+
menu?: {
|
|
111
|
+
aclProtected?: boolean | undefined;
|
|
112
|
+
description: string;
|
|
113
|
+
id: string;
|
|
114
|
+
label: string;
|
|
115
|
+
pageTitle?: string | undefined;
|
|
116
|
+
parentMenu?: "sales" | "catalog" | "customers" | "marketing" | "content" | "reports" | "stores" | "system" | undefined;
|
|
117
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
order?: {
|
|
120
|
+
gridColumns?: {
|
|
121
|
+
columns: {
|
|
122
|
+
aclProtected?: boolean | undefined;
|
|
123
|
+
align: "left" | "right" | "center";
|
|
124
|
+
id: string;
|
|
125
|
+
label: string;
|
|
126
|
+
type: "string" | "boolean" | "date" | "datetime" | "float" | "integer";
|
|
127
|
+
}[];
|
|
128
|
+
description: string;
|
|
129
|
+
label: string;
|
|
130
|
+
runtimeAction: string;
|
|
131
|
+
} | undefined;
|
|
132
|
+
massActions?: ({
|
|
133
|
+
path: string;
|
|
134
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
135
|
+
type: "view";
|
|
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
|
+
notifications?: {
|
|
145
|
+
error?: string | undefined;
|
|
146
|
+
success?: string | undefined;
|
|
147
|
+
} | undefined;
|
|
148
|
+
selectionLimit?: number | undefined;
|
|
149
|
+
title?: string | undefined;
|
|
150
|
+
} | {
|
|
151
|
+
runtimeAction: string;
|
|
152
|
+
timeout?: number | undefined;
|
|
153
|
+
type: "worker";
|
|
154
|
+
aclProtected?: boolean | undefined;
|
|
155
|
+
confirm?: {
|
|
156
|
+
message?: string | undefined;
|
|
157
|
+
title?: string | undefined;
|
|
158
|
+
} | undefined;
|
|
159
|
+
description?: string | undefined;
|
|
160
|
+
id: string;
|
|
161
|
+
label: string;
|
|
162
|
+
notifications?: {
|
|
163
|
+
error?: string | undefined;
|
|
164
|
+
success?: string | undefined;
|
|
165
|
+
} | undefined;
|
|
166
|
+
selectionLimit?: number | undefined;
|
|
167
|
+
title?: string | undefined;
|
|
168
|
+
})[] | undefined;
|
|
169
|
+
viewButtons?: ({
|
|
170
|
+
aclProtected?: boolean | undefined;
|
|
171
|
+
confirm?: {
|
|
172
|
+
message?: string | undefined;
|
|
173
|
+
title?: string | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
description?: string | undefined;
|
|
176
|
+
id: string;
|
|
177
|
+
label: string;
|
|
178
|
+
level?: 0 | 1 | -1 | undefined;
|
|
179
|
+
notifications?: {
|
|
180
|
+
error?: string | undefined;
|
|
181
|
+
success?: string | undefined;
|
|
182
|
+
} | undefined;
|
|
183
|
+
path: string;
|
|
184
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
185
|
+
sortOrder?: number | undefined;
|
|
186
|
+
type: "view";
|
|
187
|
+
} | {
|
|
188
|
+
aclProtected?: boolean | undefined;
|
|
189
|
+
confirm?: {
|
|
190
|
+
message?: string | undefined;
|
|
191
|
+
title?: string | undefined;
|
|
192
|
+
} | undefined;
|
|
193
|
+
description?: string | undefined;
|
|
194
|
+
id: string;
|
|
195
|
+
label: string;
|
|
196
|
+
level?: 0 | 1 | -1 | undefined;
|
|
197
|
+
notifications?: {
|
|
198
|
+
error?: string | undefined;
|
|
199
|
+
success?: string | undefined;
|
|
200
|
+
} | undefined;
|
|
201
|
+
runtimeAction: string;
|
|
202
|
+
sortOrder?: number | undefined;
|
|
203
|
+
timeout?: number | undefined;
|
|
204
|
+
type: "worker";
|
|
205
|
+
})[] | undefined;
|
|
206
|
+
} | undefined;
|
|
207
|
+
product?: {
|
|
208
|
+
gridColumns?: {
|
|
209
|
+
columns: {
|
|
210
|
+
aclProtected?: boolean | undefined;
|
|
211
|
+
align: "left" | "right" | "center";
|
|
212
|
+
id: string;
|
|
213
|
+
label: string;
|
|
214
|
+
type: "string" | "boolean" | "date" | "datetime" | "float" | "integer";
|
|
215
|
+
}[];
|
|
216
|
+
description: string;
|
|
217
|
+
label: string;
|
|
218
|
+
runtimeAction: string;
|
|
219
|
+
} | undefined;
|
|
220
|
+
massActions?: ({
|
|
221
|
+
path: string;
|
|
222
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
223
|
+
type: "view";
|
|
224
|
+
aclProtected?: boolean | undefined;
|
|
225
|
+
confirm?: {
|
|
226
|
+
message?: string | undefined;
|
|
227
|
+
title?: string | undefined;
|
|
228
|
+
} | undefined;
|
|
229
|
+
description?: string | undefined;
|
|
230
|
+
id: string;
|
|
231
|
+
label: string;
|
|
232
|
+
notifications?: {
|
|
233
|
+
error?: string | undefined;
|
|
234
|
+
success?: string | undefined;
|
|
235
|
+
} | undefined;
|
|
236
|
+
selectionLimit?: number | undefined;
|
|
237
|
+
title?: string | undefined;
|
|
238
|
+
} | {
|
|
239
|
+
runtimeAction: string;
|
|
240
|
+
timeout?: number | undefined;
|
|
241
|
+
type: "worker";
|
|
242
|
+
aclProtected?: boolean | undefined;
|
|
243
|
+
confirm?: {
|
|
244
|
+
message?: string | undefined;
|
|
245
|
+
title?: string | undefined;
|
|
246
|
+
} | undefined;
|
|
247
|
+
description?: string | undefined;
|
|
248
|
+
id: string;
|
|
249
|
+
label: string;
|
|
250
|
+
notifications?: {
|
|
251
|
+
error?: string | undefined;
|
|
252
|
+
success?: string | undefined;
|
|
253
|
+
} | undefined;
|
|
254
|
+
selectionLimit?: number | undefined;
|
|
255
|
+
title?: string | undefined;
|
|
256
|
+
})[] | undefined;
|
|
257
|
+
} | undefined;
|
|
258
|
+
} | undefined;
|
|
81
259
|
businessConfig?: {
|
|
82
260
|
schema: ({
|
|
83
|
-
selectionMode: "single";
|
|
84
261
|
default: string;
|
|
85
|
-
|
|
262
|
+
selectionMode: "single";
|
|
86
263
|
options: {
|
|
87
264
|
label: string;
|
|
88
265
|
value: string;
|
|
89
266
|
}[];
|
|
90
|
-
|
|
91
|
-
label?: string | undefined;
|
|
267
|
+
type: "list";
|
|
92
268
|
description?: string | undefined;
|
|
93
269
|
env?: ("paas" | "saas")[] | undefined;
|
|
270
|
+
label?: string | undefined;
|
|
271
|
+
name: string;
|
|
94
272
|
} | {
|
|
95
|
-
selectionMode: "multiple";
|
|
96
273
|
default: string[];
|
|
97
|
-
|
|
274
|
+
selectionMode: "multiple";
|
|
98
275
|
options: {
|
|
99
276
|
label: string;
|
|
100
277
|
value: string;
|
|
101
278
|
}[];
|
|
102
|
-
|
|
103
|
-
label?: string | undefined;
|
|
279
|
+
type: "list";
|
|
104
280
|
description?: string | undefined;
|
|
105
281
|
env?: ("paas" | "saas")[] | undefined;
|
|
282
|
+
label?: string | undefined;
|
|
283
|
+
name: string;
|
|
106
284
|
} | {
|
|
107
|
-
selectionMode: "single";
|
|
108
285
|
default: (resolvedOptions: {
|
|
109
286
|
label: string;
|
|
110
287
|
value: string;
|
|
111
288
|
}[]) => string;
|
|
112
|
-
|
|
289
|
+
selectionMode: "single";
|
|
113
290
|
options: (params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
|
|
114
291
|
label: string;
|
|
115
292
|
value: string;
|
|
@@ -117,17 +294,17 @@ declare function parseCommerceAppConfig(cwd?: string): Promise<{
|
|
|
117
294
|
label: string;
|
|
118
295
|
value: string;
|
|
119
296
|
}[]>;
|
|
120
|
-
|
|
121
|
-
label?: string | undefined;
|
|
297
|
+
type: "dynamicList";
|
|
122
298
|
description?: string | undefined;
|
|
123
299
|
env?: ("paas" | "saas")[] | undefined;
|
|
300
|
+
label?: string | undefined;
|
|
301
|
+
name: string;
|
|
124
302
|
} | {
|
|
125
|
-
selectionMode: "multiple";
|
|
126
303
|
default?: ((resolvedOptions: {
|
|
127
304
|
label: string;
|
|
128
305
|
value: string;
|
|
129
306
|
}[]) => string[]) | undefined;
|
|
130
|
-
|
|
307
|
+
selectionMode: "multiple";
|
|
131
308
|
options: (params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
|
|
132
309
|
label: string;
|
|
133
310
|
value: string;
|
|
@@ -135,258 +312,183 @@ declare function parseCommerceAppConfig(cwd?: string): Promise<{
|
|
|
135
312
|
label: string;
|
|
136
313
|
value: string;
|
|
137
314
|
}[]>;
|
|
138
|
-
|
|
139
|
-
label?: string | undefined;
|
|
315
|
+
type: "dynamicList";
|
|
140
316
|
description?: string | undefined;
|
|
141
317
|
env?: ("paas" | "saas")[] | undefined;
|
|
318
|
+
label?: string | undefined;
|
|
319
|
+
name: string;
|
|
142
320
|
} | {
|
|
143
|
-
type: "text";
|
|
144
321
|
default: string;
|
|
145
|
-
|
|
146
|
-
label?: string | undefined;
|
|
322
|
+
type: "text";
|
|
147
323
|
description?: string | undefined;
|
|
148
324
|
env?: ("paas" | "saas")[] | undefined;
|
|
325
|
+
label?: string | undefined;
|
|
326
|
+
name: string;
|
|
149
327
|
} | {
|
|
150
|
-
type: "password";
|
|
151
328
|
default: "";
|
|
152
|
-
|
|
153
|
-
label?: string | undefined;
|
|
329
|
+
type: "password";
|
|
154
330
|
description?: string | undefined;
|
|
155
331
|
env?: ("paas" | "saas")[] | undefined;
|
|
332
|
+
label?: string | undefined;
|
|
333
|
+
name: string;
|
|
156
334
|
} | {
|
|
157
|
-
type: "email";
|
|
158
335
|
default: string;
|
|
159
|
-
|
|
160
|
-
label?: string | undefined;
|
|
336
|
+
type: "email";
|
|
161
337
|
description?: string | undefined;
|
|
162
338
|
env?: ("paas" | "saas")[] | undefined;
|
|
339
|
+
label?: string | undefined;
|
|
340
|
+
name: string;
|
|
163
341
|
} | {
|
|
164
|
-
type: "url";
|
|
165
342
|
default: string;
|
|
166
|
-
|
|
167
|
-
label?: string | undefined;
|
|
343
|
+
type: "url";
|
|
168
344
|
description?: string | undefined;
|
|
169
345
|
env?: ("paas" | "saas")[] | undefined;
|
|
346
|
+
label?: string | undefined;
|
|
347
|
+
name: string;
|
|
170
348
|
} | {
|
|
171
|
-
type: "tel";
|
|
172
349
|
default: string;
|
|
173
|
-
|
|
174
|
-
label?: string | undefined;
|
|
350
|
+
type: "tel";
|
|
175
351
|
description?: string | undefined;
|
|
176
352
|
env?: ("paas" | "saas")[] | undefined;
|
|
353
|
+
label?: string | undefined;
|
|
354
|
+
name: string;
|
|
177
355
|
} | {
|
|
178
|
-
type: "boolean";
|
|
179
356
|
default: boolean;
|
|
180
|
-
|
|
181
|
-
label?: string | undefined;
|
|
357
|
+
type: "boolean";
|
|
182
358
|
description?: string | undefined;
|
|
183
359
|
env?: ("paas" | "saas")[] | undefined;
|
|
360
|
+
label?: string | undefined;
|
|
361
|
+
name: string;
|
|
184
362
|
})[];
|
|
185
363
|
} | undefined;
|
|
186
364
|
eventing?: {
|
|
187
365
|
commerce?: {
|
|
188
|
-
provider: {
|
|
189
|
-
label: string;
|
|
190
|
-
description: string;
|
|
191
|
-
key?: string | undefined;
|
|
192
|
-
};
|
|
193
366
|
events: {
|
|
194
|
-
|
|
367
|
+
destination?: string | undefined;
|
|
195
368
|
fields: {
|
|
196
369
|
name: string;
|
|
197
370
|
source?: string | undefined;
|
|
198
371
|
}[];
|
|
372
|
+
force?: boolean | undefined;
|
|
373
|
+
hipaa_audit_required?: boolean | undefined;
|
|
374
|
+
name: string;
|
|
375
|
+
priority?: boolean | undefined;
|
|
199
376
|
rules?: {
|
|
200
377
|
field: string;
|
|
201
378
|
operator: "regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange";
|
|
202
379
|
value: string;
|
|
203
380
|
}[] | undefined;
|
|
204
|
-
destination?: string | undefined;
|
|
205
|
-
hipaa_audit_required?: boolean | undefined;
|
|
206
|
-
priority?: boolean | undefined;
|
|
207
|
-
force?: boolean | undefined;
|
|
208
|
-
label: string;
|
|
209
381
|
description: string;
|
|
382
|
+
env?: ("paas" | "saas")[] | undefined;
|
|
383
|
+
label: string;
|
|
210
384
|
runtimeActions: string[];
|
|
211
385
|
}[];
|
|
212
|
-
}[] | undefined;
|
|
213
|
-
external?: {
|
|
214
386
|
provider: {
|
|
215
|
-
label: string;
|
|
216
387
|
description: string;
|
|
217
388
|
key?: string | undefined;
|
|
389
|
+
label: string;
|
|
218
390
|
};
|
|
391
|
+
}[] | undefined;
|
|
392
|
+
external?: {
|
|
219
393
|
events: {
|
|
394
|
+
hipaa_audit_required?: boolean | undefined;
|
|
220
395
|
name: string;
|
|
221
|
-
label: string;
|
|
222
396
|
description: string;
|
|
397
|
+
env?: ("paas" | "saas")[] | undefined;
|
|
398
|
+
label: string;
|
|
223
399
|
runtimeActions: string[];
|
|
224
400
|
}[];
|
|
401
|
+
provider: {
|
|
402
|
+
description: string;
|
|
403
|
+
key?: string | undefined;
|
|
404
|
+
label: string;
|
|
405
|
+
};
|
|
225
406
|
}[] | undefined;
|
|
226
407
|
} | undefined;
|
|
227
|
-
adminUiSdk?: {
|
|
228
|
-
registration: {
|
|
229
|
-
menuItems?: {
|
|
230
|
-
id: string;
|
|
231
|
-
title?: string | undefined;
|
|
232
|
-
parent?: string | undefined;
|
|
233
|
-
sortOrder?: number | undefined;
|
|
234
|
-
isSection?: boolean | undefined;
|
|
235
|
-
sandbox?: string | undefined;
|
|
236
|
-
}[] | undefined;
|
|
237
|
-
order?: {
|
|
238
|
-
massActions?: unknown[] | undefined;
|
|
239
|
-
gridColumns?: {
|
|
240
|
-
data: {
|
|
241
|
-
meshId: string;
|
|
242
|
-
};
|
|
243
|
-
properties: {
|
|
244
|
-
label: string;
|
|
245
|
-
columnId: string;
|
|
246
|
-
type: "string" | "boolean" | "date" | "float" | "integer";
|
|
247
|
-
align: "left" | "right" | "center";
|
|
248
|
-
}[];
|
|
249
|
-
} | undefined;
|
|
250
|
-
viewButtons?: unknown[] | undefined;
|
|
251
|
-
customFees?: {
|
|
252
|
-
id: string;
|
|
253
|
-
label: string;
|
|
254
|
-
value: number;
|
|
255
|
-
orderMinimumAmount?: number | undefined;
|
|
256
|
-
applyFeeOnLastInvoice?: boolean | undefined;
|
|
257
|
-
applyFeeOnLastCreditMemo?: boolean | undefined;
|
|
258
|
-
}[] | undefined;
|
|
259
|
-
} | undefined;
|
|
260
|
-
product?: {
|
|
261
|
-
massActions?: unknown[] | undefined;
|
|
262
|
-
gridColumns?: {
|
|
263
|
-
data: {
|
|
264
|
-
meshId: string;
|
|
265
|
-
};
|
|
266
|
-
properties: {
|
|
267
|
-
label: string;
|
|
268
|
-
columnId: string;
|
|
269
|
-
type: "string" | "boolean" | "date" | "float" | "integer";
|
|
270
|
-
align: "left" | "right" | "center";
|
|
271
|
-
}[];
|
|
272
|
-
} | undefined;
|
|
273
|
-
} | undefined;
|
|
274
|
-
customer?: {
|
|
275
|
-
massActions?: unknown[] | undefined;
|
|
276
|
-
gridColumns?: {
|
|
277
|
-
data: {
|
|
278
|
-
meshId: string;
|
|
279
|
-
};
|
|
280
|
-
properties: {
|
|
281
|
-
label: string;
|
|
282
|
-
columnId: string;
|
|
283
|
-
type: "string" | "boolean" | "date" | "float" | "integer";
|
|
284
|
-
align: "left" | "right" | "center";
|
|
285
|
-
}[];
|
|
286
|
-
} | undefined;
|
|
287
|
-
} | undefined;
|
|
288
|
-
bannerNotification?: {
|
|
289
|
-
massActions?: {
|
|
290
|
-
order?: {
|
|
291
|
-
actionId: string;
|
|
292
|
-
successMessage?: string | undefined;
|
|
293
|
-
errorMessage?: string | undefined;
|
|
294
|
-
}[] | undefined;
|
|
295
|
-
product?: {
|
|
296
|
-
actionId: string;
|
|
297
|
-
successMessage?: string | undefined;
|
|
298
|
-
errorMessage?: string | undefined;
|
|
299
|
-
}[] | undefined;
|
|
300
|
-
customer?: {
|
|
301
|
-
actionId: string;
|
|
302
|
-
successMessage?: string | undefined;
|
|
303
|
-
errorMessage?: string | undefined;
|
|
304
|
-
}[] | undefined;
|
|
305
|
-
} | undefined;
|
|
306
|
-
orderViewButtons?: {
|
|
307
|
-
buttonId: string;
|
|
308
|
-
successMessage?: string | undefined;
|
|
309
|
-
errorMessage?: string | undefined;
|
|
310
|
-
}[] | undefined;
|
|
311
|
-
} | undefined;
|
|
312
|
-
};
|
|
313
|
-
} | undefined;
|
|
314
408
|
installation?: {
|
|
315
|
-
messages?: {
|
|
316
|
-
preInstallation?: string | undefined;
|
|
317
|
-
postInstallation?: string | undefined;
|
|
318
|
-
} | undefined;
|
|
319
409
|
customInstallationSteps?: {
|
|
320
|
-
script: string;
|
|
321
|
-
name: string;
|
|
322
410
|
description: string;
|
|
411
|
+
name: string;
|
|
412
|
+
script: string;
|
|
323
413
|
}[] | undefined;
|
|
414
|
+
messages?: {
|
|
415
|
+
postInstallation?: string | undefined;
|
|
416
|
+
preInstallation?: string | undefined;
|
|
417
|
+
} | undefined;
|
|
324
418
|
} | undefined;
|
|
325
|
-
|
|
326
|
-
label: string;
|
|
419
|
+
metadata: {
|
|
327
420
|
description: string;
|
|
328
|
-
|
|
329
|
-
|
|
421
|
+
displayName: string;
|
|
422
|
+
id: string;
|
|
423
|
+
version: string;
|
|
424
|
+
};
|
|
425
|
+
webhooks?: ({
|
|
330
426
|
requireAdobeAuth?: boolean | undefined;
|
|
427
|
+
runtimeAction: string;
|
|
331
428
|
webhook: {
|
|
332
|
-
webhook_method: string;
|
|
333
|
-
webhook_type: string;
|
|
334
429
|
batch_name: string;
|
|
335
430
|
batch_order?: number | undefined;
|
|
336
|
-
hook_name: string;
|
|
337
|
-
priority?: number | undefined;
|
|
338
|
-
required?: boolean | undefined;
|
|
339
|
-
soft_timeout?: number | undefined;
|
|
340
|
-
timeout?: number | undefined;
|
|
341
|
-
method: string;
|
|
342
431
|
fallback_error_message?: string | undefined;
|
|
343
|
-
ttl?: number | undefined;
|
|
344
432
|
fields?: {
|
|
345
433
|
name: string;
|
|
346
434
|
source?: string | undefined;
|
|
347
435
|
}[] | undefined;
|
|
436
|
+
headers?: {
|
|
437
|
+
name: string;
|
|
438
|
+
value: string;
|
|
439
|
+
}[] | undefined;
|
|
440
|
+
hook_name: string;
|
|
441
|
+
method: string;
|
|
442
|
+
priority?: number | undefined;
|
|
443
|
+
required?: boolean | undefined;
|
|
348
444
|
rules?: {
|
|
349
445
|
field: string;
|
|
350
446
|
operator: string;
|
|
351
447
|
value: string;
|
|
352
448
|
}[] | undefined;
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
449
|
+
soft_timeout?: number | undefined;
|
|
450
|
+
timeout?: number | undefined;
|
|
451
|
+
ttl?: number | undefined;
|
|
452
|
+
webhook_method: string;
|
|
453
|
+
webhook_type: string;
|
|
357
454
|
};
|
|
358
|
-
} | {
|
|
359
|
-
label: string;
|
|
360
|
-
description: string;
|
|
361
455
|
category?: "validation" | "append" | "modification" | undefined;
|
|
456
|
+
description: string;
|
|
457
|
+
env?: ("paas" | "saas")[] | undefined;
|
|
458
|
+
label: string;
|
|
459
|
+
} | {
|
|
362
460
|
webhook: {
|
|
363
461
|
url: string;
|
|
364
|
-
webhook_method: string;
|
|
365
|
-
webhook_type: string;
|
|
366
462
|
batch_name: string;
|
|
367
463
|
batch_order?: number | undefined;
|
|
368
|
-
hook_name: string;
|
|
369
|
-
priority?: number | undefined;
|
|
370
|
-
required?: boolean | undefined;
|
|
371
|
-
soft_timeout?: number | undefined;
|
|
372
|
-
timeout?: number | undefined;
|
|
373
|
-
method: string;
|
|
374
464
|
fallback_error_message?: string | undefined;
|
|
375
|
-
ttl?: number | undefined;
|
|
376
465
|
fields?: {
|
|
377
466
|
name: string;
|
|
378
467
|
source?: string | undefined;
|
|
379
468
|
}[] | undefined;
|
|
469
|
+
headers?: {
|
|
470
|
+
name: string;
|
|
471
|
+
value: string;
|
|
472
|
+
}[] | undefined;
|
|
473
|
+
hook_name: string;
|
|
474
|
+
method: string;
|
|
475
|
+
priority?: number | undefined;
|
|
476
|
+
required?: boolean | undefined;
|
|
380
477
|
rules?: {
|
|
381
478
|
field: string;
|
|
382
479
|
operator: string;
|
|
383
480
|
value: string;
|
|
384
481
|
}[] | undefined;
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
482
|
+
soft_timeout?: number | undefined;
|
|
483
|
+
timeout?: number | undefined;
|
|
484
|
+
ttl?: number | undefined;
|
|
485
|
+
webhook_method: string;
|
|
486
|
+
webhook_type: string;
|
|
389
487
|
};
|
|
488
|
+
category?: "validation" | "append" | "modification" | undefined;
|
|
489
|
+
description: string;
|
|
490
|
+
env?: ("paas" | "saas")[] | undefined;
|
|
491
|
+
label: string;
|
|
390
492
|
})[] | undefined;
|
|
391
493
|
} & {
|
|
392
494
|
[key: string]: unknown;
|
|
@@ -465,6 +567,454 @@ declare function validateCommerceAppConfig(config: unknown): CommerceAppConfigOu
|
|
|
465
567
|
*/
|
|
466
568
|
declare function validateCommerceAppConfigDomain<T extends CommerceAppConfigDomain>(config: unknown, domain: T): NonNullable<Get<CommerceAppConfigOutputModel, T>>;
|
|
467
569
|
//#endregion
|
|
570
|
+
//#region source/config/schema/admin-ui.d.ts
|
|
571
|
+
declare const NotificationsSchema: v.ObjectSchema<{
|
|
572
|
+
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>;
|
|
573
|
+
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>;
|
|
574
|
+
}, undefined>;
|
|
575
|
+
declare const GridColumnSchema: v.StrictObjectSchema<{
|
|
576
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
577
|
+
readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
|
|
578
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
579
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
580
|
+
readonly type: v.PicklistSchema<["boolean", "date", "datetime", "float", "integer", "string"], undefined>;
|
|
581
|
+
}, undefined>;
|
|
582
|
+
declare const GridColumnsSchema: v.ObjectSchema<{
|
|
583
|
+
readonly columns: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
584
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
585
|
+
readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
|
|
586
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
587
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
588
|
+
readonly type: v.PicklistSchema<["boolean", "date", "datetime", "float", "integer", "string"], undefined>;
|
|
589
|
+
}, undefined>, undefined>, v.MinLengthAction<{
|
|
590
|
+
aclProtected?: boolean | undefined;
|
|
591
|
+
align: "left" | "right" | "center";
|
|
592
|
+
id: string;
|
|
593
|
+
label: string;
|
|
594
|
+
type: "string" | "boolean" | "date" | "datetime" | "float" | "integer";
|
|
595
|
+
}[], 1, "At least one grid column is required">]>;
|
|
596
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
597
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
598
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
599
|
+
}, undefined>;
|
|
600
|
+
/** `type: "view"` mass action — renders an iframe at `path`. */
|
|
601
|
+
declare const ViewMassActionSchema: v.StrictObjectSchema<{
|
|
602
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
603
|
+
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>;
|
|
604
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
605
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
606
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
607
|
+
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>;
|
|
608
|
+
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>;
|
|
609
|
+
}, undefined>, undefined>;
|
|
610
|
+
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>;
|
|
611
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
612
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
613
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
614
|
+
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>;
|
|
615
|
+
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>;
|
|
616
|
+
}, undefined>, undefined>;
|
|
617
|
+
readonly selectionLimit: 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>;
|
|
618
|
+
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>;
|
|
619
|
+
}, undefined>;
|
|
620
|
+
/** `type: "worker"` mass action — invokes a workerProcess runtime action. */
|
|
621
|
+
declare const WorkerMassActionSchema: v.StrictObjectSchema<{
|
|
622
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
623
|
+
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>;
|
|
624
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
625
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
626
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
627
|
+
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>;
|
|
628
|
+
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>;
|
|
629
|
+
}, undefined>, undefined>;
|
|
630
|
+
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>;
|
|
631
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
632
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
633
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
634
|
+
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>;
|
|
635
|
+
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>;
|
|
636
|
+
}, undefined>, undefined>;
|
|
637
|
+
readonly selectionLimit: 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>;
|
|
638
|
+
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>;
|
|
639
|
+
}, undefined>;
|
|
640
|
+
/**
|
|
641
|
+
* A mass action entry discriminated by `type`: `"view"` renders an iframe;
|
|
642
|
+
* `"worker"` invokes a runtime action.
|
|
643
|
+
*/
|
|
644
|
+
declare const MassActionSchema: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
645
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
646
|
+
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>;
|
|
647
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
648
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
649
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
650
|
+
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>;
|
|
651
|
+
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>;
|
|
652
|
+
}, undefined>, undefined>;
|
|
653
|
+
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>;
|
|
654
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
655
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
656
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
657
|
+
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>;
|
|
658
|
+
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>;
|
|
659
|
+
}, undefined>, undefined>;
|
|
660
|
+
readonly selectionLimit: 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>;
|
|
661
|
+
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>;
|
|
662
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
663
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
664
|
+
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>;
|
|
665
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
666
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
667
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
668
|
+
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>;
|
|
669
|
+
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>;
|
|
670
|
+
}, undefined>, undefined>;
|
|
671
|
+
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>;
|
|
672
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
673
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
674
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
675
|
+
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>;
|
|
676
|
+
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>;
|
|
677
|
+
}, undefined>, undefined>;
|
|
678
|
+
readonly selectionLimit: 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>;
|
|
679
|
+
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>;
|
|
680
|
+
}, undefined>], "mass action \"type\" must be either \"view\" or \"worker\"">;
|
|
681
|
+
declare const OrderViewButtonSchema: v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
682
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
683
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
684
|
+
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>;
|
|
685
|
+
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>;
|
|
686
|
+
}, undefined>, undefined>;
|
|
687
|
+
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>;
|
|
688
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
689
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
690
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
691
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
692
|
+
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>;
|
|
693
|
+
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>;
|
|
694
|
+
}, undefined>, undefined>;
|
|
695
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
696
|
+
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>;
|
|
697
|
+
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>;
|
|
698
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
699
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
700
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
701
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
702
|
+
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>;
|
|
703
|
+
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>;
|
|
704
|
+
}, undefined>, undefined>;
|
|
705
|
+
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>;
|
|
706
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
707
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
708
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
709
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
710
|
+
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>;
|
|
711
|
+
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>;
|
|
712
|
+
}, undefined>, undefined>;
|
|
713
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
714
|
+
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>;
|
|
715
|
+
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>;
|
|
716
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
717
|
+
}, undefined>], undefined>;
|
|
718
|
+
declare const MenuSchema: v.ObjectSchema<{
|
|
719
|
+
/**
|
|
720
|
+
* When `true`, Commerce auto-generates a per-app ACL resource id from `metadata.id`
|
|
721
|
+
* and injects it into the Adobe Commerce User Roles permission tree, allowing role-based
|
|
722
|
+
* access control per app menu.
|
|
723
|
+
*/
|
|
724
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
725
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
726
|
+
readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Menu ID may contain only letters, digits, \"/\", \":\", and \"_\"">]>;
|
|
727
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
728
|
+
readonly pageTitle: 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>;
|
|
729
|
+
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>;
|
|
730
|
+
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>;
|
|
731
|
+
}, undefined>;
|
|
732
|
+
/**
|
|
733
|
+
* Schema for the `adminUi` config section.
|
|
734
|
+
* Supports grid column extensions, mass actions, order view buttons, and menu on `commerce/backend-ui/2`.
|
|
735
|
+
* @experimental
|
|
736
|
+
*/
|
|
737
|
+
declare const AdminUiSchema: v.ObjectSchema<{
|
|
738
|
+
readonly customer: v.OptionalSchema<v.ObjectSchema<{
|
|
739
|
+
readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
|
|
740
|
+
readonly columns: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
741
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
742
|
+
readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
|
|
743
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
744
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
745
|
+
readonly type: v.PicklistSchema<["boolean", "date", "datetime", "float", "integer", "string"], undefined>;
|
|
746
|
+
}, undefined>, undefined>, v.MinLengthAction<{
|
|
747
|
+
aclProtected?: boolean | undefined;
|
|
748
|
+
align: "left" | "right" | "center";
|
|
749
|
+
id: string;
|
|
750
|
+
label: string;
|
|
751
|
+
type: "string" | "boolean" | "date" | "datetime" | "float" | "integer";
|
|
752
|
+
}[], 1, "At least one grid column is required">]>;
|
|
753
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
754
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
755
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
756
|
+
}, undefined>, undefined>;
|
|
757
|
+
readonly massActions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
758
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
759
|
+
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>;
|
|
760
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
761
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
762
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
763
|
+
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>;
|
|
764
|
+
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>;
|
|
765
|
+
}, undefined>, undefined>;
|
|
766
|
+
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>;
|
|
767
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
768
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
769
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
770
|
+
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>;
|
|
771
|
+
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>;
|
|
772
|
+
}, undefined>, undefined>;
|
|
773
|
+
readonly selectionLimit: 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>;
|
|
774
|
+
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>;
|
|
775
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
776
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
777
|
+
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>;
|
|
778
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
779
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
780
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
781
|
+
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>;
|
|
782
|
+
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>;
|
|
783
|
+
}, undefined>, undefined>;
|
|
784
|
+
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>;
|
|
785
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
786
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
787
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
788
|
+
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>;
|
|
789
|
+
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>;
|
|
790
|
+
}, undefined>, undefined>;
|
|
791
|
+
readonly selectionLimit: 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>;
|
|
792
|
+
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>;
|
|
793
|
+
}, undefined>], "mass action \"type\" must be either \"view\" or \"worker\"">, undefined>, undefined>;
|
|
794
|
+
}, undefined>, undefined>;
|
|
795
|
+
readonly menu: v.OptionalSchema<v.ObjectSchema<{
|
|
796
|
+
/**
|
|
797
|
+
* When `true`, Commerce auto-generates a per-app ACL resource id from `metadata.id`
|
|
798
|
+
* and injects it into the Adobe Commerce User Roles permission tree, allowing role-based
|
|
799
|
+
* access control per app menu.
|
|
800
|
+
*/
|
|
801
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
802
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
803
|
+
readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Menu ID may contain only letters, digits, \"/\", \":\", and \"_\"">]>;
|
|
804
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
805
|
+
readonly pageTitle: 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>;
|
|
806
|
+
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>;
|
|
807
|
+
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>;
|
|
808
|
+
}, undefined>, undefined>;
|
|
809
|
+
readonly order: v.OptionalSchema<v.ObjectSchema<{
|
|
810
|
+
readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
|
|
811
|
+
readonly columns: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
812
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
813
|
+
readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
|
|
814
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
815
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
816
|
+
readonly type: v.PicklistSchema<["boolean", "date", "datetime", "float", "integer", "string"], undefined>;
|
|
817
|
+
}, undefined>, undefined>, v.MinLengthAction<{
|
|
818
|
+
aclProtected?: boolean | undefined;
|
|
819
|
+
align: "left" | "right" | "center";
|
|
820
|
+
id: string;
|
|
821
|
+
label: string;
|
|
822
|
+
type: "string" | "boolean" | "date" | "datetime" | "float" | "integer";
|
|
823
|
+
}[], 1, "At least one grid column is required">]>;
|
|
824
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
825
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
826
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
827
|
+
}, undefined>, undefined>;
|
|
828
|
+
readonly massActions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
829
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
830
|
+
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>;
|
|
831
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
832
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
833
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
834
|
+
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>;
|
|
835
|
+
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>;
|
|
836
|
+
}, undefined>, undefined>;
|
|
837
|
+
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>;
|
|
838
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
839
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
840
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
841
|
+
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>;
|
|
842
|
+
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>;
|
|
843
|
+
}, undefined>, undefined>;
|
|
844
|
+
readonly selectionLimit: 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>;
|
|
845
|
+
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>;
|
|
846
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
847
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
848
|
+
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>;
|
|
849
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
850
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
851
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
852
|
+
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>;
|
|
853
|
+
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>;
|
|
854
|
+
}, undefined>, undefined>;
|
|
855
|
+
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>;
|
|
856
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
857
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
858
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
859
|
+
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>;
|
|
860
|
+
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>;
|
|
861
|
+
}, undefined>, undefined>;
|
|
862
|
+
readonly selectionLimit: 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>;
|
|
863
|
+
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>;
|
|
864
|
+
}, undefined>], "mass action \"type\" must be either \"view\" or \"worker\"">, undefined>, undefined>;
|
|
865
|
+
readonly viewButtons: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
866
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
867
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
868
|
+
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>;
|
|
869
|
+
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>;
|
|
870
|
+
}, undefined>, undefined>;
|
|
871
|
+
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>;
|
|
872
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
873
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
874
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
875
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
876
|
+
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>;
|
|
877
|
+
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>;
|
|
878
|
+
}, undefined>, undefined>;
|
|
879
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
880
|
+
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>;
|
|
881
|
+
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>;
|
|
882
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
883
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
884
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
885
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
886
|
+
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>;
|
|
887
|
+
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>;
|
|
888
|
+
}, undefined>, undefined>;
|
|
889
|
+
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>;
|
|
890
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
891
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
892
|
+
readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
|
|
893
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
894
|
+
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>;
|
|
895
|
+
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>;
|
|
896
|
+
}, undefined>, undefined>;
|
|
897
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
898
|
+
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>;
|
|
899
|
+
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>;
|
|
900
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
901
|
+
}, undefined>], undefined>, undefined>, undefined>;
|
|
902
|
+
}, undefined>, undefined>;
|
|
903
|
+
readonly product: v.OptionalSchema<v.ObjectSchema<{
|
|
904
|
+
readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
|
|
905
|
+
readonly columns: v.SchemaWithPipe<readonly [v.ArraySchema<v.StrictObjectSchema<{
|
|
906
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
907
|
+
readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
|
|
908
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
909
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
910
|
+
readonly type: v.PicklistSchema<["boolean", "date", "datetime", "float", "integer", "string"], undefined>;
|
|
911
|
+
}, undefined>, undefined>, v.MinLengthAction<{
|
|
912
|
+
aclProtected?: boolean | undefined;
|
|
913
|
+
align: "left" | "right" | "center";
|
|
914
|
+
id: string;
|
|
915
|
+
label: string;
|
|
916
|
+
type: "string" | "boolean" | "date" | "datetime" | "float" | "integer";
|
|
917
|
+
}[], 1, "At least one grid column is required">]>;
|
|
918
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
919
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
920
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
921
|
+
}, undefined>, undefined>;
|
|
922
|
+
readonly massActions: v.OptionalSchema<v.ArraySchema<v.VariantSchema<"type", [v.StrictObjectSchema<{
|
|
923
|
+
readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
924
|
+
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>;
|
|
925
|
+
readonly type: v.LiteralSchema<"view", undefined>;
|
|
926
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
927
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
928
|
+
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>;
|
|
929
|
+
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>;
|
|
930
|
+
}, undefined>, undefined>;
|
|
931
|
+
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>;
|
|
932
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
933
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
934
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
935
|
+
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>;
|
|
936
|
+
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>;
|
|
937
|
+
}, undefined>, undefined>;
|
|
938
|
+
readonly selectionLimit: 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>;
|
|
939
|
+
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>;
|
|
940
|
+
}, undefined>, v.StrictObjectSchema<{
|
|
941
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
942
|
+
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>;
|
|
943
|
+
readonly type: v.LiteralSchema<"worker", undefined>;
|
|
944
|
+
readonly aclProtected: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
945
|
+
readonly confirm: v.OptionalSchema<v.ObjectSchema<{
|
|
946
|
+
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>;
|
|
947
|
+
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>;
|
|
948
|
+
}, undefined>, undefined>;
|
|
949
|
+
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>;
|
|
950
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
951
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
952
|
+
readonly notifications: v.OptionalSchema<v.ObjectSchema<{
|
|
953
|
+
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>;
|
|
954
|
+
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>;
|
|
955
|
+
}, undefined>, undefined>;
|
|
956
|
+
readonly selectionLimit: 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>;
|
|
957
|
+
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>;
|
|
958
|
+
}, undefined>], "mass action \"type\" must be either \"view\" or \"worker\"">, undefined>, undefined>;
|
|
959
|
+
}, undefined>, undefined>;
|
|
960
|
+
}, undefined>;
|
|
961
|
+
/**
|
|
962
|
+
* The Admin UI configuration for an Adobe Commerce application.
|
|
963
|
+
* @experimental
|
|
964
|
+
*/
|
|
965
|
+
type AdminUiConfiguration = v.InferInput<typeof AdminUiSchema>;
|
|
966
|
+
/**
|
|
967
|
+
* Grid columns registration configuration.
|
|
968
|
+
* @experimental
|
|
969
|
+
*/
|
|
970
|
+
type GridColumns = v.InferInput<typeof GridColumnsSchema>;
|
|
971
|
+
/**
|
|
972
|
+
* A single grid column definition.
|
|
973
|
+
* @experimental
|
|
974
|
+
*/
|
|
975
|
+
type GridColumn = v.InferInput<typeof GridColumnSchema>;
|
|
976
|
+
/**
|
|
977
|
+
* A mass action registration entry (view or worker variant).
|
|
978
|
+
* @experimental
|
|
979
|
+
*/
|
|
980
|
+
type MassAction = v.InferInput<typeof MassActionSchema>;
|
|
981
|
+
/**
|
|
982
|
+
* A view-type mass action.
|
|
983
|
+
* @experimental
|
|
984
|
+
*/
|
|
985
|
+
type ViewMassAction = v.InferInput<typeof ViewMassActionSchema>;
|
|
986
|
+
/**
|
|
987
|
+
* A worker-type mass action.
|
|
988
|
+
* @experimental
|
|
989
|
+
*/
|
|
990
|
+
type WorkerMassAction = v.InferInput<typeof WorkerMassActionSchema>;
|
|
991
|
+
/**
|
|
992
|
+
* An order view button registration entry (v2, `adminUi`).
|
|
993
|
+
* @experimental
|
|
994
|
+
*/
|
|
995
|
+
type OrderViewButton = v.InferInput<typeof OrderViewButtonSchema>;
|
|
996
|
+
/**
|
|
997
|
+
* Inlined notification strings on an `adminUi` registration entry.
|
|
998
|
+
* @experimental
|
|
999
|
+
*/
|
|
1000
|
+
type Notifications = v.InferInput<typeof NotificationsSchema>;
|
|
1001
|
+
/**
|
|
1002
|
+
* Admin UI menu registration configuration.
|
|
1003
|
+
* Includes the optional `aclProtected` flag — when `true`, Commerce auto-generates
|
|
1004
|
+
* a per-app ACL resource from `metadata.id` for role-based menu access control.
|
|
1005
|
+
* @experimental
|
|
1006
|
+
*/
|
|
1007
|
+
type Menu = v.InferInput<typeof MenuSchema>;
|
|
1008
|
+
/** Config type when `adminUi` configuration is present. */
|
|
1009
|
+
type AdminUiConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = T & {
|
|
1010
|
+
adminUi: NonNullable<T["adminUi"]>;
|
|
1011
|
+
};
|
|
1012
|
+
/**
|
|
1013
|
+
* Check if config has Admin UI configuration.
|
|
1014
|
+
* @experimental
|
|
1015
|
+
*/
|
|
1016
|
+
declare function hasAdminUi<T extends AnyCommerceAppConfig>(config: T): config is AdminUiConfig<T>;
|
|
1017
|
+
//#endregion
|
|
468
1018
|
//#region source/config/schema/business-configuration.d.ts
|
|
469
1019
|
/** Config type when business config is present. */
|
|
470
1020
|
type AppConfigWithBusinessConfig<T extends AnyCommerceAppConfig> = T & {
|
|
@@ -490,13 +1040,13 @@ declare function hasBusinessConfigSchema<T extends AnyCommerceAppConfig>(config:
|
|
|
490
1040
|
//#region source/config/schema/eventing.d.ts
|
|
491
1041
|
/** Schema for event provider configuration */
|
|
492
1042
|
declare const ProviderSchema: v.ObjectSchema<{
|
|
493
|
-
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
|
|
494
1043
|
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
|
|
495
1044
|
readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
|
|
1045
|
+
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
|
|
496
1046
|
}, undefined>;
|
|
497
1047
|
/** Schema for Commerce event configuration */
|
|
498
1048
|
declare const CommerceEventSchema: v.ObjectSchema<{
|
|
499
|
-
readonly
|
|
1049
|
+
readonly destination: 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>;
|
|
500
1050
|
readonly fields: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
501
1051
|
readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Field name must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), dots (.), and square brackets ([, ]), or be exactly \"*\"">]>;
|
|
502
1052
|
readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
@@ -504,35 +1054,33 @@ declare const CommerceEventSchema: v.ObjectSchema<{
|
|
|
504
1054
|
name: string;
|
|
505
1055
|
source?: string | undefined;
|
|
506
1056
|
}[], 1, "The Commerce event configuration must define at least one field">]>;
|
|
1057
|
+
readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
1058
|
+
readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
1059
|
+
readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must start with \"plugin.\" or \"observer.\" followed by one or more dot-separated lowercase segments containing letters and underscores only (e.g., \"observer.order_placed\", \"plugin.sales.api.order_management.place\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
|
|
1060
|
+
readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
507
1061
|
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
508
1062
|
readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
509
1063
|
readonly operator: v.UnionSchema<v.LiteralSchema<"regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange", undefined>[], `Operator must be one of: ${string}`>;
|
|
510
1064
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
511
1065
|
}, undefined>, "Expected an array of event rules with field, operator, and value">, undefined>;
|
|
512
|
-
readonly destination: 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>;
|
|
513
|
-
readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
514
|
-
readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
515
|
-
readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
516
|
-
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
|
|
517
1066
|
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The event description must not be longer than 255 characters">]>;
|
|
1067
|
+
readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
|
|
1068
|
+
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
|
|
518
1069
|
readonly runtimeActions: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Runtime action must be in the format \"<package>/<action>\" (e.g., \"my-package/my-action\")">]>, "Expected an array of runtime actions in the format <package>/<action>">;
|
|
519
1070
|
}, undefined>;
|
|
520
1071
|
/** Schema for external event configuration */
|
|
521
1072
|
declare const ExternalEventSchema: v.ObjectSchema<{
|
|
1073
|
+
readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
522
1074
|
readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must contain only letters, digits, underscores, hyphens, and dots (e.g., \"external_event\", \"webhook.received\", \"my-event_123\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
|
|
523
|
-
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
|
|
524
1075
|
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The event description must not be longer than 255 characters">]>;
|
|
1076
|
+
readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
|
|
1077
|
+
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
|
|
525
1078
|
readonly runtimeActions: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Runtime action must be in the format \"<package>/<action>\" (e.g., \"my-package/my-action\")">]>, "Expected an array of runtime actions in the format <package>/<action>">;
|
|
526
1079
|
}, undefined>;
|
|
527
1080
|
/** Schema for Commerce event source configuration */
|
|
528
1081
|
declare const CommerceEventSourceSchema: v.ObjectSchema<{
|
|
529
|
-
readonly provider: v.ObjectSchema<{
|
|
530
|
-
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
|
|
531
|
-
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
|
|
532
|
-
readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
|
|
533
|
-
}, undefined>;
|
|
534
1082
|
readonly events: v.ArraySchema<v.ObjectSchema<{
|
|
535
|
-
readonly
|
|
1083
|
+
readonly destination: 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>;
|
|
536
1084
|
readonly fields: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
537
1085
|
readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Field name must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), dots (.), and square brackets ([, ]), or be exactly \"*\"">]>;
|
|
538
1086
|
readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
@@ -540,44 +1088,47 @@ declare const CommerceEventSourceSchema: v.ObjectSchema<{
|
|
|
540
1088
|
name: string;
|
|
541
1089
|
source?: string | undefined;
|
|
542
1090
|
}[], 1, "The Commerce event configuration must define at least one field">]>;
|
|
1091
|
+
readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
1092
|
+
readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
1093
|
+
readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must start with \"plugin.\" or \"observer.\" followed by one or more dot-separated lowercase segments containing letters and underscores only (e.g., \"observer.order_placed\", \"plugin.sales.api.order_management.place\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
|
|
1094
|
+
readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
543
1095
|
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
544
1096
|
readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
545
1097
|
readonly operator: v.UnionSchema<v.LiteralSchema<"regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange", undefined>[], `Operator must be one of: ${string}`>;
|
|
546
1098
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
547
1099
|
}, undefined>, "Expected an array of event rules with field, operator, and value">, undefined>;
|
|
548
|
-
readonly destination: 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>;
|
|
549
|
-
readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
550
|
-
readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
551
|
-
readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
552
|
-
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
|
|
553
1100
|
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The event description must not be longer than 255 characters">]>;
|
|
1101
|
+
readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
|
|
1102
|
+
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
|
|
554
1103
|
readonly runtimeActions: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Runtime action must be in the format \"<package>/<action>\" (e.g., \"my-package/my-action\")">]>, "Expected an array of runtime actions in the format <package>/<action>">;
|
|
555
1104
|
}, undefined>, "Expected an array of Commerce events">;
|
|
556
|
-
}, undefined>;
|
|
557
|
-
/** Schema for external event source configuration */
|
|
558
|
-
declare const ExternalEventSourceSchema: v.ObjectSchema<{
|
|
559
1105
|
readonly provider: v.ObjectSchema<{
|
|
560
|
-
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
|
|
561
1106
|
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
|
|
562
1107
|
readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
|
|
1108
|
+
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
|
|
563
1109
|
}, undefined>;
|
|
1110
|
+
}, undefined>;
|
|
1111
|
+
/** Schema for external event source configuration */
|
|
1112
|
+
declare const ExternalEventSourceSchema: v.ObjectSchema<{
|
|
564
1113
|
readonly events: v.ArraySchema<v.ObjectSchema<{
|
|
1114
|
+
readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
565
1115
|
readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must contain only letters, digits, underscores, hyphens, and dots (e.g., \"external_event\", \"webhook.received\", \"my-event_123\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
|
|
566
|
-
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
|
|
567
1116
|
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The event description must not be longer than 255 characters">]>;
|
|
1117
|
+
readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
|
|
1118
|
+
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
|
|
568
1119
|
readonly runtimeActions: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Runtime action must be in the format \"<package>/<action>\" (e.g., \"my-package/my-action\")">]>, "Expected an array of runtime actions in the format <package>/<action>">;
|
|
569
1120
|
}, undefined>, "Expected an array of external events">;
|
|
1121
|
+
readonly provider: v.ObjectSchema<{
|
|
1122
|
+
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
|
|
1123
|
+
readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
|
|
1124
|
+
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
|
|
1125
|
+
}, undefined>;
|
|
570
1126
|
}, undefined>;
|
|
571
1127
|
/** Schema for eventing configuration with separate commerce and external arrays */
|
|
572
1128
|
declare const EventingSchema: v.ObjectSchema<{
|
|
573
1129
|
readonly commerce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
574
|
-
readonly provider: v.ObjectSchema<{
|
|
575
|
-
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
|
|
576
|
-
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
|
|
577
|
-
readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
|
|
578
|
-
}, undefined>;
|
|
579
1130
|
readonly events: v.ArraySchema<v.ObjectSchema<{
|
|
580
|
-
readonly
|
|
1131
|
+
readonly destination: 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>;
|
|
581
1132
|
readonly fields: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
582
1133
|
readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Field name must contain only letters (a-z, A-Z), numbers (0-9), underscores (_), dashes (-), dots (.), and square brackets ([, ]), or be exactly \"*\"">]>;
|
|
583
1134
|
readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
@@ -585,69 +1136,80 @@ declare const EventingSchema: v.ObjectSchema<{
|
|
|
585
1136
|
name: string;
|
|
586
1137
|
source?: string | undefined;
|
|
587
1138
|
}[], 1, "The Commerce event configuration must define at least one field">]>;
|
|
1139
|
+
readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
1140
|
+
readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
1141
|
+
readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must start with \"plugin.\" or \"observer.\" followed by one or more dot-separated lowercase segments containing letters and underscores only (e.g., \"observer.order_placed\", \"plugin.sales.api.order_management.place\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
|
|
1142
|
+
readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
588
1143
|
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
589
1144
|
readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
590
1145
|
readonly operator: v.UnionSchema<v.LiteralSchema<"regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange", undefined>[], `Operator must be one of: ${string}`>;
|
|
591
1146
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
592
1147
|
}, undefined>, "Expected an array of event rules with field, operator, and value">, undefined>;
|
|
593
|
-
readonly destination: 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>;
|
|
594
|
-
readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
595
|
-
readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
596
|
-
readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
597
|
-
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
|
|
598
1148
|
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The event description must not be longer than 255 characters">]>;
|
|
1149
|
+
readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
|
|
1150
|
+
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
|
|
599
1151
|
readonly runtimeActions: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Runtime action must be in the format \"<package>/<action>\" (e.g., \"my-package/my-action\")">]>, "Expected an array of runtime actions in the format <package>/<action>">;
|
|
600
1152
|
}, undefined>, "Expected an array of Commerce events">;
|
|
1153
|
+
readonly provider: v.ObjectSchema<{
|
|
1154
|
+
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
|
|
1155
|
+
readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
|
|
1156
|
+
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
|
|
1157
|
+
}, undefined>;
|
|
601
1158
|
}, undefined>, "Expected an array of Commerce event sources">, v.CheckAction<{
|
|
602
|
-
provider: {
|
|
603
|
-
label: string;
|
|
604
|
-
description: string;
|
|
605
|
-
key?: string | undefined;
|
|
606
|
-
};
|
|
607
1159
|
events: {
|
|
608
|
-
|
|
1160
|
+
destination?: string | undefined;
|
|
609
1161
|
fields: {
|
|
610
1162
|
name: string;
|
|
611
1163
|
source?: string | undefined;
|
|
612
1164
|
}[];
|
|
1165
|
+
force?: boolean | undefined;
|
|
1166
|
+
hipaa_audit_required?: boolean | undefined;
|
|
1167
|
+
name: string;
|
|
1168
|
+
priority?: boolean | undefined;
|
|
613
1169
|
rules?: {
|
|
614
1170
|
field: string;
|
|
615
1171
|
operator: "regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange";
|
|
616
1172
|
value: string;
|
|
617
1173
|
}[] | undefined;
|
|
618
|
-
destination?: string | undefined;
|
|
619
|
-
hipaa_audit_required?: boolean | undefined;
|
|
620
|
-
priority?: boolean | undefined;
|
|
621
|
-
force?: boolean | undefined;
|
|
622
|
-
label: string;
|
|
623
1174
|
description: string;
|
|
1175
|
+
env?: ("paas" | "saas")[] | undefined;
|
|
1176
|
+
label: string;
|
|
624
1177
|
runtimeActions: string[];
|
|
625
1178
|
}[];
|
|
1179
|
+
provider: {
|
|
1180
|
+
description: string;
|
|
1181
|
+
key?: string | undefined;
|
|
1182
|
+
label: string;
|
|
1183
|
+
};
|
|
626
1184
|
}[], "Commerce provider labels must be unique">]>, undefined>;
|
|
627
1185
|
readonly external: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
|
|
628
|
-
readonly provider: v.ObjectSchema<{
|
|
629
|
-
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
|
|
630
|
-
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
|
|
631
|
-
readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
|
|
632
|
-
}, undefined>;
|
|
633
1186
|
readonly events: v.ArraySchema<v.ObjectSchema<{
|
|
1187
|
+
readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
634
1188
|
readonly name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Event name must contain only letters, digits, underscores, hyphens, and dots (e.g., \"external_event\", \"webhook.received\", \"my-event_123\")">, v.MaxLengthAction<string, 180, "The event name must not be longer than 180 characters">]>;
|
|
635
|
-
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
|
|
636
1189
|
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The event description must not be longer than 255 characters">]>;
|
|
1190
|
+
readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
|
|
1191
|
+
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The event label must not be longer than 100 characters">]>;
|
|
637
1192
|
readonly runtimeActions: v.ArraySchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "Runtime action must be in the format \"<package>/<action>\" (e.g., \"my-package/my-action\")">]>, "Expected an array of runtime actions in the format <package>/<action>">;
|
|
638
1193
|
}, undefined>, "Expected an array of external events">;
|
|
1194
|
+
readonly provider: v.ObjectSchema<{
|
|
1195
|
+
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 255, "The provider description must not be longer than 255 characters">]>;
|
|
1196
|
+
readonly key: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 50, "The provider key must not be longer than 50 characters">]>, undefined>;
|
|
1197
|
+
readonly label: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, `${string} can only contain letters, numbers, spaces, underscores, hyphens, dots, colons, parentheses, commas, @, and /`>, v.MaxLengthAction<string, 100, "The provider label must not be longer than 100 characters">]>;
|
|
1198
|
+
}, undefined>;
|
|
639
1199
|
}, undefined>, "Expected an array of external event sources">, v.CheckAction<{
|
|
640
|
-
provider: {
|
|
641
|
-
label: string;
|
|
642
|
-
description: string;
|
|
643
|
-
key?: string | undefined;
|
|
644
|
-
};
|
|
645
1200
|
events: {
|
|
1201
|
+
hipaa_audit_required?: boolean | undefined;
|
|
646
1202
|
name: string;
|
|
647
|
-
label: string;
|
|
648
1203
|
description: string;
|
|
1204
|
+
env?: ("paas" | "saas")[] | undefined;
|
|
1205
|
+
label: string;
|
|
649
1206
|
runtimeActions: string[];
|
|
650
1207
|
}[];
|
|
1208
|
+
provider: {
|
|
1209
|
+
description: string;
|
|
1210
|
+
key?: string | undefined;
|
|
1211
|
+
label: string;
|
|
1212
|
+
};
|
|
651
1213
|
}[], "External provider labels must be unique">]>, undefined>;
|
|
652
1214
|
}, undefined>;
|
|
653
1215
|
/** The eventing configuration for an Adobe Commerce application */
|
|
@@ -721,9 +1283,9 @@ declare function hasCustomInstallationSteps<T extends AnyCommerceAppConfig>(conf
|
|
|
721
1283
|
//#region source/config/schema/metadata.d.ts
|
|
722
1284
|
/** The schema for the metadata of the application. */
|
|
723
1285
|
declare const MetadataSchema: v.ObjectSchema<{
|
|
724
|
-
readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 100, "The application id must not be longer than 100 characters">]>;
|
|
725
|
-
readonly displayName: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string for the ${string}`>, v.NonEmptyAction<string, `The ${string} must not be empty`>]>, v.MaxLengthAction<string, 50, "The application display name must not be longer than 50 characters">]>;
|
|
726
1286
|
readonly description: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string for the ${string}`>, v.NonEmptyAction<string, `The ${string} must not be empty`>]>, v.MaxLengthAction<string, 255, "The metadata description must not be longer than 255 characters">]>;
|
|
1287
|
+
readonly displayName: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string for the ${string}`>, v.NonEmptyAction<string, `The ${string} must not be empty`>]>, v.MaxLengthAction<string, 50, "The application display name must not be longer than 50 characters">]>;
|
|
1288
|
+
readonly id: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.RegexAction<string, `Only alphanumeric characters and hyphens are allowed in string value of "${string}"${string}`>]>, v.MaxLengthAction<string, 100, "The application id must not be longer than 100 characters">]>;
|
|
727
1289
|
readonly version: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string for the ${string}`>, v.NonEmptyAction<string, `The ${string} must not be empty`>]>, v.RegexAction<string, "The version must follow semantic versioning (semver) format: Major.Minor.Patch (e.g., '1.0.0', '2.3.1')">]>;
|
|
728
1290
|
}, undefined>;
|
|
729
1291
|
/** The metadata associated to an Adobe Commerce application. */
|
|
@@ -757,259 +1319,265 @@ declare const WebhookHeaderSchema: v.ObjectSchema<{
|
|
|
757
1319
|
}, undefined>;
|
|
758
1320
|
/** Schema for the nested webhook payload without url — used when runtimeAction resolves the URL at runtime. */
|
|
759
1321
|
declare const WebhookDefinitionBaseSchema: v.ObjectSchema<{
|
|
760
|
-
readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
761
|
-
readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
762
1322
|
readonly batch_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "batch_name must contain only letters, numbers, and underscores">]>;
|
|
763
1323
|
readonly batch_order: 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>;
|
|
764
|
-
readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
|
|
765
|
-
readonly priority: 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>;
|
|
766
|
-
readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
767
|
-
readonly soft_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>;
|
|
768
|
-
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>;
|
|
769
|
-
readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
770
1324
|
readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
771
|
-
readonly ttl: 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>;
|
|
772
1325
|
readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
773
1326
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
774
1327
|
readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
775
1328
|
}, undefined>, "Expected an array of webhook field objects">, undefined>;
|
|
1329
|
+
readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1330
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1331
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1332
|
+
}, undefined>, "Expected an array of webhook header objects">, undefined>;
|
|
1333
|
+
readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
|
|
1334
|
+
readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1335
|
+
readonly priority: 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>;
|
|
1336
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
776
1337
|
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
777
1338
|
readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
778
1339
|
readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
779
1340
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
780
1341
|
}, undefined>, "Expected an array of webhook rule objects">, undefined>;
|
|
781
|
-
readonly
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
1342
|
+
readonly soft_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>;
|
|
1343
|
+
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>;
|
|
1344
|
+
readonly ttl: 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>;
|
|
1345
|
+
readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1346
|
+
readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
785
1347
|
}, undefined>;
|
|
786
1348
|
/** Schema for the nested webhook payload with a required url. */
|
|
787
1349
|
declare const WebhookDefinitionWithUrlSchema: v.ObjectSchema<{
|
|
788
1350
|
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.UrlAction<string, "The 'url' field must be a valid absolute URL (e.g., 'https://example.com/webhook')">]>;
|
|
789
|
-
readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
790
|
-
readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
791
1351
|
readonly batch_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "batch_name must contain only letters, numbers, and underscores">]>;
|
|
792
1352
|
readonly batch_order: 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>;
|
|
793
|
-
readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
|
|
794
|
-
readonly priority: 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>;
|
|
795
|
-
readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
796
|
-
readonly soft_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>;
|
|
797
|
-
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>;
|
|
798
|
-
readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
799
1353
|
readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
800
|
-
readonly ttl: 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>;
|
|
801
1354
|
readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
802
1355
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
803
1356
|
readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
804
1357
|
}, undefined>, "Expected an array of webhook field objects">, undefined>;
|
|
1358
|
+
readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1359
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1360
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1361
|
+
}, undefined>, "Expected an array of webhook header objects">, undefined>;
|
|
1362
|
+
readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
|
|
1363
|
+
readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1364
|
+
readonly priority: 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>;
|
|
1365
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
805
1366
|
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
806
1367
|
readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
807
1368
|
readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
808
1369
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
809
1370
|
}, undefined>, "Expected an array of webhook rule objects">, undefined>;
|
|
810
|
-
readonly
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
1371
|
+
readonly soft_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>;
|
|
1372
|
+
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>;
|
|
1373
|
+
readonly ttl: 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>;
|
|
1374
|
+
readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1375
|
+
readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
814
1376
|
}, undefined>;
|
|
815
1377
|
/** Schema for a single webhook entry — either runtimeAction (no url) or explicit url (no runtimeAction). */
|
|
816
1378
|
declare const WebhookEntrySchema: v.UnionSchema<[v.ObjectSchema<{
|
|
817
|
-
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
818
|
-
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
819
|
-
readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
|
|
820
|
-
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
821
1379
|
readonly requireAdobeAuth: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
1380
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
822
1381
|
readonly webhook: v.ObjectSchema<{
|
|
823
|
-
readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
824
|
-
readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
825
1382
|
readonly batch_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "batch_name must contain only letters, numbers, and underscores">]>;
|
|
826
1383
|
readonly batch_order: 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>;
|
|
827
|
-
readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
|
|
828
|
-
readonly priority: 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>;
|
|
829
|
-
readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
830
|
-
readonly soft_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>;
|
|
831
|
-
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>;
|
|
832
|
-
readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
833
1384
|
readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
834
|
-
readonly ttl: 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>;
|
|
835
1385
|
readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
836
1386
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
837
1387
|
readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
838
1388
|
}, undefined>, "Expected an array of webhook field objects">, undefined>;
|
|
1389
|
+
readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1390
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1391
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1392
|
+
}, undefined>, "Expected an array of webhook header objects">, undefined>;
|
|
1393
|
+
readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
|
|
1394
|
+
readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1395
|
+
readonly priority: 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>;
|
|
1396
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
839
1397
|
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
840
1398
|
readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
841
1399
|
readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
842
1400
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
843
1401
|
}, undefined>, "Expected an array of webhook rule objects">, undefined>;
|
|
844
|
-
readonly
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
1402
|
+
readonly soft_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>;
|
|
1403
|
+
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>;
|
|
1404
|
+
readonly ttl: 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>;
|
|
1405
|
+
readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1406
|
+
readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
848
1407
|
}, undefined>;
|
|
849
|
-
}, undefined>, v.ObjectSchema<{
|
|
850
|
-
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
851
|
-
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
852
1408
|
readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
|
|
1409
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1410
|
+
readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
|
|
1411
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1412
|
+
}, undefined>, v.ObjectSchema<{
|
|
853
1413
|
readonly webhook: v.ObjectSchema<{
|
|
854
1414
|
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.UrlAction<string, "The 'url' field must be a valid absolute URL (e.g., 'https://example.com/webhook')">]>;
|
|
855
|
-
readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
856
|
-
readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
857
1415
|
readonly batch_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "batch_name must contain only letters, numbers, and underscores">]>;
|
|
858
1416
|
readonly batch_order: 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>;
|
|
859
|
-
readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
|
|
860
|
-
readonly priority: 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>;
|
|
861
|
-
readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
862
|
-
readonly soft_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>;
|
|
863
|
-
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>;
|
|
864
|
-
readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
865
1417
|
readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
866
|
-
readonly ttl: 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>;
|
|
867
1418
|
readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
868
1419
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
869
1420
|
readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
870
1421
|
}, undefined>, "Expected an array of webhook field objects">, undefined>;
|
|
1422
|
+
readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1423
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1424
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1425
|
+
}, undefined>, "Expected an array of webhook header objects">, undefined>;
|
|
1426
|
+
readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
|
|
1427
|
+
readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1428
|
+
readonly priority: 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>;
|
|
1429
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
871
1430
|
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
872
1431
|
readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
873
1432
|
readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
874
1433
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
875
1434
|
}, undefined>, "Expected an array of webhook rule objects">, undefined>;
|
|
876
|
-
readonly
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
1435
|
+
readonly soft_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>;
|
|
1436
|
+
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>;
|
|
1437
|
+
readonly ttl: 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>;
|
|
1438
|
+
readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1439
|
+
readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
880
1440
|
}, undefined>;
|
|
1441
|
+
readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
|
|
1442
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1443
|
+
readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
|
|
1444
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
881
1445
|
}, undefined>], "Each webhook entry must define either a 'runtimeAction' (to resolve the URL from a runtime action) or an explicit 'url' inside the 'webhook' object, but not both">;
|
|
882
1446
|
/** Schema for the optional webhooks array (when present, must have at least one item). */
|
|
883
1447
|
declare const WebhooksSchema: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
|
|
884
|
-
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
885
|
-
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
886
|
-
readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
|
|
887
|
-
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
888
1448
|
readonly requireAdobeAuth: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
1449
|
+
readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
889
1450
|
readonly webhook: v.ObjectSchema<{
|
|
890
|
-
readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
891
|
-
readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
892
1451
|
readonly batch_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "batch_name must contain only letters, numbers, and underscores">]>;
|
|
893
1452
|
readonly batch_order: 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>;
|
|
894
|
-
readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
|
|
895
|
-
readonly priority: 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>;
|
|
896
|
-
readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
897
|
-
readonly soft_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>;
|
|
898
|
-
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>;
|
|
899
|
-
readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
900
1453
|
readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
901
|
-
readonly ttl: 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>;
|
|
902
1454
|
readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
903
1455
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
904
1456
|
readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
905
1457
|
}, undefined>, "Expected an array of webhook field objects">, undefined>;
|
|
1458
|
+
readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1459
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1460
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1461
|
+
}, undefined>, "Expected an array of webhook header objects">, undefined>;
|
|
1462
|
+
readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
|
|
1463
|
+
readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1464
|
+
readonly priority: 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>;
|
|
1465
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
906
1466
|
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
907
1467
|
readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
908
1468
|
readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
909
1469
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
910
1470
|
}, undefined>, "Expected an array of webhook rule objects">, undefined>;
|
|
911
|
-
readonly
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
1471
|
+
readonly soft_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>;
|
|
1472
|
+
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>;
|
|
1473
|
+
readonly ttl: 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>;
|
|
1474
|
+
readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1475
|
+
readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
915
1476
|
}, undefined>;
|
|
916
|
-
}, undefined>, v.ObjectSchema<{
|
|
917
|
-
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
918
|
-
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
919
1477
|
readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
|
|
1478
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1479
|
+
readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
|
|
1480
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1481
|
+
}, undefined>, v.ObjectSchema<{
|
|
920
1482
|
readonly webhook: v.ObjectSchema<{
|
|
921
1483
|
readonly url: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.UrlAction<string, "The 'url' field must be a valid absolute URL (e.g., 'https://example.com/webhook')">]>;
|
|
922
|
-
readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
923
|
-
readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
924
1484
|
readonly batch_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "batch_name must contain only letters, numbers, and underscores">]>;
|
|
925
1485
|
readonly batch_order: 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>;
|
|
926
|
-
readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
|
|
927
|
-
readonly priority: 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>;
|
|
928
|
-
readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
929
|
-
readonly soft_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>;
|
|
930
|
-
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>;
|
|
931
|
-
readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
932
1486
|
readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
933
|
-
readonly ttl: 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>;
|
|
934
1487
|
readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
935
1488
|
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
936
1489
|
readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
|
|
937
1490
|
}, undefined>, "Expected an array of webhook field objects">, undefined>;
|
|
1491
|
+
readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
1492
|
+
readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1493
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1494
|
+
}, undefined>, "Expected an array of webhook header objects">, undefined>;
|
|
1495
|
+
readonly hook_name: v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>, v.RegexAction<string, "hook_name must contain only letters, numbers, and underscores">]>;
|
|
1496
|
+
readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1497
|
+
readonly priority: 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>;
|
|
1498
|
+
readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
|
|
938
1499
|
readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
|
|
939
1500
|
readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
940
1501
|
readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
941
1502
|
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
942
1503
|
}, undefined>, "Expected an array of webhook rule objects">, undefined>;
|
|
943
|
-
readonly
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
1504
|
+
readonly soft_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>;
|
|
1505
|
+
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>;
|
|
1506
|
+
readonly ttl: 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>;
|
|
1507
|
+
readonly webhook_method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1508
|
+
readonly webhook_type: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
947
1509
|
}, undefined>;
|
|
1510
|
+
readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
|
|
1511
|
+
readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
1512
|
+
readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<["paas", "saas"], `Expected one of: ${string}`>, "Expected an array of commerce environments for the field \"env\"">, v.NonEmptyAction<("paas" | "saas")[], "The \"env\" array must contain at least one commerce environment">]>, undefined>;
|
|
1513
|
+
readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
|
|
948
1514
|
}, undefined>], "Each webhook entry must define either a 'runtimeAction' (to resolve the URL from a runtime action) or an explicit 'url' inside the 'webhook' object, but not both">, "Expected an array of webhook entries">, v.MinLengthAction<({
|
|
949
|
-
label: string;
|
|
950
|
-
description: string;
|
|
951
|
-
category?: "validation" | "append" | "modification" | undefined;
|
|
952
|
-
runtimeAction: string;
|
|
953
1515
|
requireAdobeAuth?: boolean | undefined;
|
|
1516
|
+
runtimeAction: string;
|
|
954
1517
|
webhook: {
|
|
955
|
-
webhook_method: string;
|
|
956
|
-
webhook_type: string;
|
|
957
1518
|
batch_name: string;
|
|
958
1519
|
batch_order?: number | undefined;
|
|
959
|
-
hook_name: string;
|
|
960
|
-
priority?: number | undefined;
|
|
961
|
-
required?: boolean | undefined;
|
|
962
|
-
soft_timeout?: number | undefined;
|
|
963
|
-
timeout?: number | undefined;
|
|
964
|
-
method: string;
|
|
965
1520
|
fallback_error_message?: string | undefined;
|
|
966
|
-
ttl?: number | undefined;
|
|
967
1521
|
fields?: {
|
|
968
1522
|
name: string;
|
|
969
1523
|
source?: string | undefined;
|
|
970
1524
|
}[] | undefined;
|
|
1525
|
+
headers?: {
|
|
1526
|
+
name: string;
|
|
1527
|
+
value: string;
|
|
1528
|
+
}[] | undefined;
|
|
1529
|
+
hook_name: string;
|
|
1530
|
+
method: string;
|
|
1531
|
+
priority?: number | undefined;
|
|
1532
|
+
required?: boolean | undefined;
|
|
971
1533
|
rules?: {
|
|
972
1534
|
field: string;
|
|
973
1535
|
operator: string;
|
|
974
1536
|
value: string;
|
|
975
1537
|
}[] | undefined;
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
1538
|
+
soft_timeout?: number | undefined;
|
|
1539
|
+
timeout?: number | undefined;
|
|
1540
|
+
ttl?: number | undefined;
|
|
1541
|
+
webhook_method: string;
|
|
1542
|
+
webhook_type: string;
|
|
980
1543
|
};
|
|
981
|
-
} | {
|
|
982
|
-
label: string;
|
|
983
|
-
description: string;
|
|
984
1544
|
category?: "validation" | "append" | "modification" | undefined;
|
|
1545
|
+
description: string;
|
|
1546
|
+
env?: ("paas" | "saas")[] | undefined;
|
|
1547
|
+
label: string;
|
|
1548
|
+
} | {
|
|
985
1549
|
webhook: {
|
|
986
1550
|
url: string;
|
|
987
|
-
webhook_method: string;
|
|
988
|
-
webhook_type: string;
|
|
989
1551
|
batch_name: string;
|
|
990
1552
|
batch_order?: number | undefined;
|
|
991
|
-
hook_name: string;
|
|
992
|
-
priority?: number | undefined;
|
|
993
|
-
required?: boolean | undefined;
|
|
994
|
-
soft_timeout?: number | undefined;
|
|
995
|
-
timeout?: number | undefined;
|
|
996
|
-
method: string;
|
|
997
1553
|
fallback_error_message?: string | undefined;
|
|
998
|
-
ttl?: number | undefined;
|
|
999
1554
|
fields?: {
|
|
1000
1555
|
name: string;
|
|
1001
1556
|
source?: string | undefined;
|
|
1002
1557
|
}[] | undefined;
|
|
1558
|
+
headers?: {
|
|
1559
|
+
name: string;
|
|
1560
|
+
value: string;
|
|
1561
|
+
}[] | undefined;
|
|
1562
|
+
hook_name: string;
|
|
1563
|
+
method: string;
|
|
1564
|
+
priority?: number | undefined;
|
|
1565
|
+
required?: boolean | undefined;
|
|
1003
1566
|
rules?: {
|
|
1004
1567
|
field: string;
|
|
1005
1568
|
operator: string;
|
|
1006
1569
|
value: string;
|
|
1007
1570
|
}[] | undefined;
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1571
|
+
soft_timeout?: number | undefined;
|
|
1572
|
+
timeout?: number | undefined;
|
|
1573
|
+
ttl?: number | undefined;
|
|
1574
|
+
webhook_method: string;
|
|
1575
|
+
webhook_type: string;
|
|
1012
1576
|
};
|
|
1577
|
+
category?: "validation" | "append" | "modification" | undefined;
|
|
1578
|
+
description: string;
|
|
1579
|
+
env?: ("paas" | "saas")[] | undefined;
|
|
1580
|
+
label: string;
|
|
1013
1581
|
})[], 1, "webhooks array must contain at least one webhook when present">]>, undefined>;
|
|
1014
1582
|
/** Webhook field configuration */
|
|
1015
1583
|
type WebhookField = v.InferInput<typeof WebhookFieldSchema>;
|
|
@@ -1033,4 +1601,4 @@ type WebhooksConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputMode
|
|
|
1033
1601
|
*/
|
|
1034
1602
|
declare function hasWebhooks<T extends AnyCommerceAppConfig>(config: T): config is T & WebhooksConfig<T>;
|
|
1035
1603
|
//#endregion
|
|
1036
|
-
export { type
|
|
1604
|
+
export { type AdminUiConfig, type AdminUiConfiguration, type AppConfigWithBusinessConfig, type AppConfigWithBusinessConfigSchema, type AppEvent, type ApplicationMetadata, type CommerceAppConfig, type CommerceAppConfigDomain, CommerceAppConfigSchemas, type CommerceEvent, type CommerceEventSource, type CommerceEventSourceSchema, type CommerceEventsConfig, type EventProvider, type EventingConfiguration, type EventingSchema, type EventsConfig, type ExternalEvent, type ExternalEventSource, type ExternalEventSourceSchema, type ExternalEventsConfig, type GridColumn, type GridColumns, type MassAction, type Menu, type Notifications, type OrderViewButton, type ViewMassAction, type WebhookDefinition, type WebhookEntry, type WebhookField, type WebhookHeader, type WebhookRule, type WebhooksConfig, type WebhooksConfiguration, type WebhooksSchema, type WorkerMassAction, defineConfig, getConfigDomains, hasAdminUi, hasBusinessConfig, hasBusinessConfigSchema, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasMetadata, hasWebhooks, parseCommerceAppConfig, readCommerceAppConfig, resolveCommerceAppConfig, validateCommerceAppConfig, validateCommerceAppConfigDomain };
|