@adobe/aio-commerce-lib-app 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (67) hide show
  1. package/CHANGELOG.md +49 -0
  2. package/dist/cjs/actions/app-config/index.cjs +202 -0
  3. package/dist/cjs/actions/{app-config.d.cts → app-config/index.d.cts} +11 -9
  4. package/dist/cjs/actions/{config.cjs → config/index.cjs} +79 -46
  5. package/dist/{es/actions/config.d.mts → cjs/actions/config/index.d.cts} +10 -8
  6. package/dist/cjs/actions/{installation.cjs → installation/index.cjs} +55 -36
  7. package/dist/{es/actions/installation.d.mts → cjs/actions/installation/index.d.cts} +11 -10
  8. package/dist/cjs/actions/{registration.cjs → registration/index.cjs} +16 -7
  9. package/dist/cjs/actions/{registration.d.cts → registration/index.d.cts} +8 -9
  10. package/dist/cjs/actions/{scope-tree.cjs → scope-tree/index.cjs} +52 -15
  11. package/dist/{es/actions/scope-tree.d.mts → cjs/actions/scope-tree/index.d.cts} +2 -5
  12. package/dist/cjs/{admin-ui-sdk-BiSopnKI.d.cts → admin-ui-sdk-EU915zlR.d.cts} +7 -8
  13. package/dist/cjs/app-DrYHK-z1.d.cts +1629 -0
  14. package/dist/cjs/commands/index.cjs +241 -56
  15. package/dist/cjs/commands/templates/app-management/app-config.js.template +2 -2
  16. package/dist/cjs/config/index.cjs +3 -3
  17. package/dist/cjs/config/index.d.cts +181 -1158
  18. package/dist/cjs/{config-ct-qMOGj.cjs → config-D-s0GSep.cjs} +4 -6
  19. package/dist/cjs/{error-C5LNOZ4f.cjs → error-D-N0PKSl.cjs} +0 -1
  20. package/dist/cjs/{index-B5WKJ3hJ.d.cts → index-B5gJ-q4U.d.cts} +172 -3
  21. package/dist/cjs/index-BXm8UbK7.d.cts +16 -0
  22. package/dist/cjs/{logging-BTevALnL.cjs → logging-BVz3weoC.cjs} +1 -1
  23. package/dist/cjs/management/index.cjs +1 -1
  24. package/dist/cjs/management/index.d.cts +2 -3
  25. package/dist/cjs/{management-D1QXg4YU.cjs → management-Dehz9qSJ.cjs} +114 -51
  26. package/dist/cjs/openapi-Cux6K4ZD.cjs +3072 -0
  27. package/dist/cjs/{router-CFErodHU.cjs → router-BOR7T6qR.cjs} +1 -1
  28. package/dist/cjs/{schemas-CukVpc19.cjs → schemas-FngDuIeo.cjs} +1 -1
  29. package/dist/cjs/{validate-b_bI4mDb.cjs → validate-oAOpyFyb.cjs} +49 -17
  30. package/dist/cjs/{webhooks-DS1BtgED.cjs → webhooks-tbZy9G3p.cjs} +4 -4
  31. package/dist/es/actions/{app-config.d.mts → app-config/index.d.mts} +11 -9
  32. package/dist/es/actions/app-config/index.mjs +199 -0
  33. package/dist/{cjs/actions/config.d.cts → es/actions/config/index.d.mts} +10 -8
  34. package/dist/es/actions/{config.mjs → config/index.mjs} +78 -45
  35. package/dist/{cjs/actions/installation.d.cts → es/actions/installation/index.d.mts} +11 -10
  36. package/dist/es/actions/{installation.mjs → installation/index.mjs} +54 -36
  37. package/dist/es/actions/{registration.d.mts → registration/index.d.mts} +8 -9
  38. package/dist/es/actions/{registration.mjs → registration/index.mjs} +16 -6
  39. package/dist/{cjs/actions/scope-tree.d.cts → es/actions/scope-tree/index.d.mts} +2 -5
  40. package/dist/es/actions/{scope-tree.mjs → scope-tree/index.mjs} +51 -14
  41. package/dist/es/{admin-ui-sdk-CCo2SWiL.d.mts → admin-ui-sdk-BwnD0xjK.d.mts} +6 -9
  42. package/dist/es/app-DrYHK-z1.d.mts +1629 -0
  43. package/dist/es/commands/index.mjs +223 -38
  44. package/dist/es/commands/templates/app-management/app-config.js.template +2 -2
  45. package/dist/es/config/index.d.mts +181 -1157
  46. package/dist/es/config/index.mjs +3 -3
  47. package/dist/es/{config-DGPFTk6w.mjs → config-3I4eLyyR.mjs} +4 -5
  48. package/dist/es/index-B0XqHwY5.d.mts +16 -0
  49. package/dist/es/{index-CCov0odd.d.mts → index-DLMbTtKS.d.mts} +172 -3
  50. package/dist/es/management/index.d.mts +2 -3
  51. package/dist/es/management/index.mjs +1 -1
  52. package/dist/es/{management-CCsOfniv.mjs → management-BUX-w2Ji.mjs} +113 -51
  53. package/dist/es/openapi-B6uP0SRn.mjs +3024 -0
  54. package/dist/es/{validate-Dn3lLTGj.mjs → validate-Dfajrp99.mjs} +37 -17
  55. package/dist/es/{webhooks-Dhrkkip7.mjs → webhooks-B5oq9ULL.mjs} +3 -3
  56. package/package.json +29 -17
  57. package/dist/cjs/actions/app-config.cjs +0 -41
  58. package/dist/cjs/app-C6kImBl7.d.cts +0 -564
  59. package/dist/cjs/step-CWYnKbga.d.cts +0 -187
  60. package/dist/es/actions/app-config.mjs +0 -39
  61. package/dist/es/app-DcY6dJiQ.d.mts +0 -564
  62. package/dist/es/step-0eI2x4C9.d.mts +0 -187
  63. /package/dist/cjs/{chunk-DS2yp5vX.cjs → chunk-Cozy-1ZF.cjs} +0 -0
  64. /package/dist/es/{error-DHlYzkbb.mjs → error-_RMwtrUA.mjs} +0 -0
  65. /package/dist/es/{logging-XIUXDK5T.mjs → logging-DbJHXSKh.mjs} +0 -0
  66. /package/dist/es/{router-BxaxEEu3.mjs → router-D58JJHHA.mjs} +0 -0
  67. /package/dist/es/{schemas-DOcnD16x.mjs → schemas-hRovglBF.mjs} +0 -0
@@ -12,10 +12,10 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { n as CommerceAppConfigOutputModel, t as CommerceAppConfig } from "../app-DcY6dJiQ.mjs";
16
- import { a as CustomerMassAction, c as OrderMassAction, d as hasAdminUiSdk, i as CustomFee, l as OrderViewButton, n as AdminUiSdkRegistration, o as GridColumns, r as BannerNotification, s as MenuItem, t as AdminUiSdkConfiguration, u as ProductMassAction } from "../admin-ui-sdk-CCo2SWiL.mjs";
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-DrYHK-z1.mjs";
16
+ import { a as CustomerMassAction, c as OrderMassAction, d as hasAdminUiSdk, i as CustomFee, l as OrderViewButton, n as AdminUiSdkRegistration, o as GridColumns, r as BannerNotification, s as MenuItem, t as AdminUiSdkConfiguration, u as ProductMassAction } from "../admin-ui-sdk-BwnD0xjK.mjs";
17
17
  import * as v from "valibot";
18
- import { Get, SetRequiredDeep } from "type-fest";
18
+ import { Get } from "type-fest";
19
19
 
20
20
  //#region source/config/lib/define.d.ts
21
21
  /**
@@ -32,341 +32,7 @@ import { Get, SetRequiredDeep } from "type-fest";
32
32
  * businessConfig: { ... }
33
33
  * });
34
34
  */
35
- declare function defineConfig(config: CommerceAppConfig): {
36
- metadata: {
37
- id: string;
38
- displayName: string;
39
- description: string;
40
- version: string;
41
- };
42
- businessConfig?: {
43
- schema?: ({
44
- type: "list";
45
- selectionMode: "single";
46
- options: {
47
- label: string;
48
- value: string;
49
- }[];
50
- default: string;
51
- name: string;
52
- label?: string | undefined;
53
- description?: string | undefined;
54
- env?: ("paas" | "saas")[] | undefined;
55
- } | {
56
- type: "list";
57
- selectionMode: "multiple";
58
- options: {
59
- label: string;
60
- value: string;
61
- }[];
62
- default?: string[] | undefined;
63
- name: string;
64
- label?: string | undefined;
65
- description?: string | undefined;
66
- env?: ("paas" | "saas")[] | undefined;
67
- } | {
68
- type: "text";
69
- default?: string | undefined;
70
- name: string;
71
- label?: string | undefined;
72
- description?: string | undefined;
73
- env?: ("paas" | "saas")[] | undefined;
74
- } | {
75
- type: "password";
76
- default?: "" | undefined;
77
- name: string;
78
- label?: string | undefined;
79
- description?: string | undefined;
80
- env?: ("paas" | "saas")[] | undefined;
81
- } | {
82
- type: "email";
83
- default?: string | undefined;
84
- name: string;
85
- label?: string | undefined;
86
- description?: string | undefined;
87
- env?: ("paas" | "saas")[] | undefined;
88
- } | {
89
- type: "url";
90
- default?: string | undefined;
91
- name: string;
92
- label?: string | undefined;
93
- description?: string | undefined;
94
- env?: ("paas" | "saas")[] | undefined;
95
- } | {
96
- type: "tel";
97
- default?: string | undefined;
98
- name: string;
99
- label?: string | undefined;
100
- description?: string | undefined;
101
- env?: ("paas" | "saas")[] | undefined;
102
- } | {
103
- type: "boolean";
104
- default?: boolean | undefined;
105
- name: string;
106
- label?: string | undefined;
107
- description?: string | undefined;
108
- env?: ("paas" | "saas")[] | undefined;
109
- })[] | undefined;
110
- } | undefined;
111
- eventing?: {
112
- commerce?: {
113
- provider: {
114
- label: string;
115
- description: string;
116
- key?: string | undefined;
117
- };
118
- events: {
119
- name: string;
120
- fields: {
121
- name: string;
122
- source?: string | undefined;
123
- }[];
124
- rules?: {
125
- field: string;
126
- operator: "regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange";
127
- value: string;
128
- }[] | undefined;
129
- destination?: string | undefined;
130
- hipaa_audit_required?: boolean | undefined;
131
- priority?: boolean | undefined;
132
- force?: boolean | undefined;
133
- label: string;
134
- description: string;
135
- runtimeActions: string[];
136
- }[];
137
- }[] | undefined;
138
- external?: {
139
- provider: {
140
- label: string;
141
- description: string;
142
- key?: string | undefined;
143
- };
144
- events: {
145
- name: string;
146
- label: string;
147
- description: string;
148
- runtimeActions: string[];
149
- }[];
150
- }[] | undefined;
151
- } | undefined;
152
- adminUiSdk?: {
153
- registration: {
154
- menuItems?: {
155
- id: string;
156
- title?: string | undefined;
157
- parent?: string | undefined;
158
- sortOrder?: number | undefined;
159
- isSection?: boolean | undefined;
160
- sandbox?: string | undefined;
161
- }[] | undefined;
162
- order?: {
163
- massActions?: {
164
- displayIframe?: boolean | undefined;
165
- timeout?: number | undefined;
166
- sandbox?: string | undefined;
167
- actionId: string;
168
- label: string;
169
- title?: string | undefined;
170
- confirm?: {
171
- title?: string | undefined;
172
- message?: string | undefined;
173
- } | undefined;
174
- path: string;
175
- selectionLimit?: number | undefined;
176
- }[] | undefined;
177
- gridColumns?: {
178
- data: {
179
- meshId: string;
180
- };
181
- properties: {
182
- label: string;
183
- columnId: string;
184
- type: "string" | "boolean" | "date" | "float" | "integer";
185
- align: "left" | "right" | "center";
186
- }[];
187
- } | undefined;
188
- viewButtons?: {
189
- displayIframe?: boolean | undefined;
190
- timeout?: number | undefined;
191
- sandbox?: string | undefined;
192
- buttonId: string;
193
- label: string;
194
- confirm?: {
195
- message?: string | undefined;
196
- } | undefined;
197
- path: string;
198
- level?: 0 | 1 | -1 | undefined;
199
- sortOrder?: number | undefined;
200
- }[] | undefined;
201
- customFees?: {
202
- id: string;
203
- label: string;
204
- value: number;
205
- orderMinimumAmount?: number | undefined;
206
- applyFeeOnLastInvoice?: boolean | undefined;
207
- applyFeeOnLastCreditMemo?: boolean | undefined;
208
- }[] | undefined;
209
- } | undefined;
210
- product?: {
211
- massActions?: {
212
- displayIframe?: boolean | undefined;
213
- timeout?: number | undefined;
214
- sandbox?: string | undefined;
215
- actionId: string;
216
- label: string;
217
- title?: string | undefined;
218
- confirm?: {
219
- title?: string | undefined;
220
- message?: string | undefined;
221
- } | undefined;
222
- path: string;
223
- productSelectLimit?: number | undefined;
224
- }[] | undefined;
225
- gridColumns?: {
226
- data: {
227
- meshId: string;
228
- };
229
- properties: {
230
- label: string;
231
- columnId: string;
232
- type: "string" | "boolean" | "date" | "float" | "integer";
233
- align: "left" | "right" | "center";
234
- }[];
235
- } | undefined;
236
- } | undefined;
237
- customer?: {
238
- massActions?: {
239
- displayIframe?: boolean | undefined;
240
- timeout?: number | undefined;
241
- sandbox?: string | undefined;
242
- actionId: string;
243
- label: string;
244
- title?: string | undefined;
245
- confirm?: {
246
- title?: string | undefined;
247
- message?: string | undefined;
248
- } | undefined;
249
- path: string;
250
- customerSelectLimit?: number | undefined;
251
- }[] | undefined;
252
- gridColumns?: {
253
- data: {
254
- meshId: string;
255
- };
256
- properties: {
257
- label: string;
258
- columnId: string;
259
- type: "string" | "boolean" | "date" | "float" | "integer";
260
- align: "left" | "right" | "center";
261
- }[];
262
- } | undefined;
263
- } | undefined;
264
- bannerNotification?: {
265
- massActions?: {
266
- order?: {
267
- actionId: string;
268
- successMessage?: string | undefined;
269
- errorMessage?: string | undefined;
270
- }[] | undefined;
271
- product?: {
272
- actionId: string;
273
- successMessage?: string | undefined;
274
- errorMessage?: string | undefined;
275
- }[] | undefined;
276
- customer?: {
277
- actionId: string;
278
- successMessage?: string | undefined;
279
- errorMessage?: string | undefined;
280
- }[] | undefined;
281
- } | undefined;
282
- orderViewButtons?: {
283
- buttonId: string;
284
- successMessage?: string | undefined;
285
- errorMessage?: string | undefined;
286
- }[] | undefined;
287
- } | undefined;
288
- };
289
- } | undefined;
290
- installation?: {
291
- messages?: {
292
- preInstallation?: string | undefined;
293
- postInstallation?: string | undefined;
294
- } | undefined;
295
- customInstallationSteps?: {
296
- script: string;
297
- name: string;
298
- description: string;
299
- }[] | undefined;
300
- } | undefined;
301
- webhooks?: ({
302
- label: string;
303
- description: string;
304
- category?: "validation" | "append" | "modification" | undefined;
305
- runtimeAction: string;
306
- requireAdobeAuth?: boolean | undefined;
307
- webhook: {
308
- webhook_method: string;
309
- webhook_type: string;
310
- batch_name: string;
311
- batch_order?: number | undefined;
312
- hook_name: string;
313
- priority?: number | undefined;
314
- required?: boolean | undefined;
315
- soft_timeout?: number | undefined;
316
- timeout?: number | undefined;
317
- method: string;
318
- fallback_error_message?: string | undefined;
319
- ttl?: number | undefined;
320
- fields?: {
321
- name: string;
322
- source?: string | undefined;
323
- }[] | undefined;
324
- rules?: {
325
- field: string;
326
- operator: string;
327
- value: string;
328
- }[] | undefined;
329
- headers?: {
330
- name: string;
331
- value: string;
332
- }[] | undefined;
333
- };
334
- } | {
335
- label: string;
336
- description: string;
337
- category?: "validation" | "append" | "modification" | undefined;
338
- webhook: {
339
- url: string;
340
- webhook_method: string;
341
- webhook_type: string;
342
- batch_name: string;
343
- batch_order?: number | undefined;
344
- hook_name: string;
345
- priority?: number | undefined;
346
- required?: boolean | undefined;
347
- soft_timeout?: number | undefined;
348
- timeout?: number | undefined;
349
- method: string;
350
- fallback_error_message?: string | undefined;
351
- ttl?: number | undefined;
352
- fields?: {
353
- name: string;
354
- source?: string | undefined;
355
- }[] | undefined;
356
- rules?: {
357
- field: string;
358
- operator: string;
359
- value: string;
360
- }[] | undefined;
361
- headers?: {
362
- name: string;
363
- value: string;
364
- }[] | undefined;
365
- };
366
- })[] | undefined;
367
- } & {
368
- [key: string]: unknown;
369
- };
35
+ declare function defineConfig<const T extends CommerceAppConfig>(config: T): T;
370
36
  //#endregion
371
37
  //#region source/config/lib/parser.d.ts
372
38
  /**
@@ -414,25 +80,61 @@ declare function parseCommerceAppConfig(cwd?: string): Promise<{
414
80
  };
415
81
  businessConfig?: {
416
82
  schema: ({
417
- type: "list";
418
83
  selectionMode: "single";
84
+ default: string;
85
+ type: "list";
419
86
  options: {
420
87
  label: string;
421
88
  value: string;
422
89
  }[];
423
- default: string;
424
90
  name: string;
425
91
  label?: string | undefined;
426
92
  description?: string | undefined;
427
93
  env?: ("paas" | "saas")[] | undefined;
428
94
  } | {
429
- type: "list";
430
95
  selectionMode: "multiple";
96
+ default: string[];
97
+ type: "list";
431
98
  options: {
432
99
  label: string;
433
100
  value: string;
434
101
  }[];
435
- default: string[];
102
+ name: string;
103
+ label?: string | undefined;
104
+ description?: string | undefined;
105
+ env?: ("paas" | "saas")[] | undefined;
106
+ } | {
107
+ selectionMode: "single";
108
+ default: (resolvedOptions: {
109
+ label: string;
110
+ value: string;
111
+ }[]) => string;
112
+ type: "dynamicList";
113
+ options: (params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
114
+ label: string;
115
+ value: string;
116
+ }[] | Promise<{
117
+ label: string;
118
+ value: string;
119
+ }[]>;
120
+ name: string;
121
+ label?: string | undefined;
122
+ description?: string | undefined;
123
+ env?: ("paas" | "saas")[] | undefined;
124
+ } | {
125
+ selectionMode: "multiple";
126
+ default?: ((resolvedOptions: {
127
+ label: string;
128
+ value: string;
129
+ }[]) => string[]) | undefined;
130
+ type: "dynamicList";
131
+ options: (params: import("@adobe/aio-commerce-lib-core/params").RuntimeActionParams) => {
132
+ label: string;
133
+ value: string;
134
+ }[] | Promise<{
135
+ label: string;
136
+ value: string;
137
+ }[]>;
436
138
  name: string;
437
139
  label?: string | undefined;
438
140
  description?: string | undefined;
@@ -568,397 +270,59 @@ declare function parseCommerceAppConfig(cwd?: string): Promise<{
568
270
  align: "left" | "right" | "center";
569
271
  }[];
570
272
  } | undefined;
571
- } | undefined;
572
- customer?: {
573
- massActions?: unknown[] | undefined;
574
- gridColumns?: {
575
- data: {
576
- meshId: string;
577
- };
578
- properties: {
579
- label: string;
580
- columnId: string;
581
- type: "string" | "boolean" | "date" | "float" | "integer";
582
- align: "left" | "right" | "center";
583
- }[];
584
- } | undefined;
585
- } | undefined;
586
- bannerNotification?: {
587
- massActions?: {
588
- order?: {
589
- actionId: string;
590
- successMessage?: string | undefined;
591
- errorMessage?: string | undefined;
592
- }[] | undefined;
593
- product?: {
594
- actionId: string;
595
- successMessage?: string | undefined;
596
- errorMessage?: string | undefined;
597
- }[] | undefined;
598
- customer?: {
599
- actionId: string;
600
- successMessage?: string | undefined;
601
- errorMessage?: string | undefined;
602
- }[] | undefined;
603
- } | undefined;
604
- orderViewButtons?: {
605
- buttonId: string;
606
- successMessage?: string | undefined;
607
- errorMessage?: string | undefined;
608
- }[] | undefined;
609
- } | undefined;
610
- };
611
- } | undefined;
612
- installation?: {
613
- messages?: {
614
- preInstallation?: string | undefined;
615
- postInstallation?: string | undefined;
616
- } | undefined;
617
- customInstallationSteps?: {
618
- script: string;
619
- name: string;
620
- description: string;
621
- }[] | undefined;
622
- } | undefined;
623
- webhooks?: ({
624
- label: string;
625
- description: string;
626
- category?: "validation" | "append" | "modification" | undefined;
627
- runtimeAction: string;
628
- requireAdobeAuth?: boolean | undefined;
629
- webhook: {
630
- webhook_method: string;
631
- webhook_type: string;
632
- batch_name: string;
633
- batch_order?: number | undefined;
634
- hook_name: string;
635
- priority?: number | undefined;
636
- required?: boolean | undefined;
637
- soft_timeout?: number | undefined;
638
- timeout?: number | undefined;
639
- method: string;
640
- fallback_error_message?: string | undefined;
641
- ttl?: number | undefined;
642
- fields?: {
643
- name: string;
644
- source?: string | undefined;
645
- }[] | undefined;
646
- rules?: {
647
- field: string;
648
- operator: string;
649
- value: string;
650
- }[] | undefined;
651
- headers?: {
652
- name: string;
653
- value: string;
654
- }[] | undefined;
655
- };
656
- } | {
657
- label: string;
658
- description: string;
659
- category?: "validation" | "append" | "modification" | undefined;
660
- webhook: {
661
- url: string;
662
- webhook_method: string;
663
- webhook_type: string;
664
- batch_name: string;
665
- batch_order?: number | undefined;
666
- hook_name: string;
667
- priority?: number | undefined;
668
- required?: boolean | undefined;
669
- soft_timeout?: number | undefined;
670
- timeout?: number | undefined;
671
- method: string;
672
- fallback_error_message?: string | undefined;
673
- ttl?: number | undefined;
674
- fields?: {
675
- name: string;
676
- source?: string | undefined;
677
- }[] | undefined;
678
- rules?: {
679
- field: string;
680
- operator: string;
681
- value: string;
682
- }[] | undefined;
683
- headers?: {
684
- name: string;
685
- value: string;
686
- }[] | 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;
687
312
  };
688
- })[] | undefined;
689
- } & {
690
- [key: string]: unknown;
691
- }>;
692
- //#endregion
693
- //#region source/config/schema/domains.d.ts
694
- /** The individual validatable domains of the app config. */
695
- declare const CommerceAppConfigSchemas: {
696
- readonly metadata: v.ObjectSchema<{
697
- 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">]>;
698
- 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">]>;
699
- 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">]>;
700
- 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')">]>;
701
- }, undefined>;
702
- readonly businessConfig: v.ObjectSchema<{
703
- readonly schema: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.VariantSchema<"selectionMode", [v.ObjectSchema<{
704
- readonly type: v.LiteralSchema<"list", "Expected the type to be 'list'">;
705
- readonly selectionMode: v.LiteralSchema<"single", "Expected the selectionMode to be 'single'">;
706
- readonly options: v.ArraySchema<v.ObjectSchema<{
707
- readonly label: v.StringSchema<"Expected a string for the option label">;
708
- readonly value: v.StringSchema<"Expected a string for the option value">;
709
- }, undefined>, "Expected an array of list options">;
710
- readonly default: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default value">, v.NonEmptyAction<string, "The default value must not be empty">]>;
711
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
712
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
713
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
714
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
715
- }, undefined>, v.ObjectSchema<{
716
- readonly type: v.LiteralSchema<"list", "Expected the type to be 'list'">;
717
- readonly selectionMode: v.LiteralSchema<"multiple", "Expected the selectionMode to be 'multiple'">;
718
- readonly options: v.ArraySchema<v.ObjectSchema<{
719
- readonly label: v.StringSchema<"Expected a string for the option label">;
720
- readonly value: v.StringSchema<"Expected a string for the option value">;
721
- }, undefined>, "Expected an array of list options">;
722
- readonly default: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for each default value">, v.NonEmptyAction<string, "Each default value must not be empty">]>, "Expected an array of default values">, readonly []>;
723
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
724
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
725
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
726
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
727
- }, undefined>], undefined>, v.ObjectSchema<{
728
- readonly type: v.LiteralSchema<"text", "Expected the type to be 'text'">;
729
- readonly default: v.OptionalSchema<v.StringSchema<"Expected a string for the default value">, "">;
730
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
731
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
732
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
733
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
734
- }, undefined>, v.ObjectSchema<{
735
- readonly type: v.LiteralSchema<"password", "Expected the type to be 'password'">;
736
- readonly default: v.OptionalSchema<v.LiteralSchema<"", "Password fields do not have a default value">, "">;
737
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
738
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
739
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
740
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
741
- }, undefined>, v.ObjectSchema<{
742
- readonly type: v.LiteralSchema<"email", "Expected the type to be 'email'">;
743
- readonly default: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default email value">, v.EmailAction<string, "The email must be a valid email address">]>], undefined>, "">;
744
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
745
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
746
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
747
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
748
- }, undefined>, v.ObjectSchema<{
749
- readonly type: v.LiteralSchema<"url", "Expected the type to be 'url'">;
750
- readonly default: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default URL value">, v.UrlAction<string, "The URL must be a valid URL">]>], undefined>, "">;
751
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
752
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
753
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
754
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
755
- }, undefined>, v.ObjectSchema<{
756
- readonly type: v.LiteralSchema<"tel", "Expected the type to be 'tel'">;
757
- readonly default: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default phone number value">, v.RegexAction<string, "The phone number must contain only numbers and/or country codes">]>], undefined>, "">;
758
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
759
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
760
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
761
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
762
- }, undefined>, v.ObjectSchema<{
763
- readonly type: v.LiteralSchema<"boolean", "Expected the type to be 'boolean'">;
764
- readonly default: v.OptionalSchema<v.BooleanSchema<"Expected a boolean for the default value">, false>;
765
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
766
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
767
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
768
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
769
- }, undefined>], undefined>, "Expected an array of configuration fields">, v.MinLengthAction<({
770
- type: "list";
771
- selectionMode: "single";
772
- options: {
773
- label: string;
774
- value: string;
775
- }[];
776
- default: string;
777
- name: string;
778
- label?: string | undefined;
779
- description?: string | undefined;
780
- env?: ("paas" | "saas")[] | undefined;
781
- } | {
782
- type: "list";
783
- selectionMode: "multiple";
784
- options: {
785
- label: string;
786
- value: string;
787
- }[];
788
- default: string[];
789
- name: string;
790
- label?: string | undefined;
791
- description?: string | undefined;
792
- env?: ("paas" | "saas")[] | undefined;
793
- } | {
794
- type: "text";
795
- default: string;
796
- name: string;
797
- label?: string | undefined;
798
- description?: string | undefined;
799
- env?: ("paas" | "saas")[] | undefined;
800
- } | {
801
- type: "password";
802
- default: "";
803
- name: string;
804
- label?: string | undefined;
805
- description?: string | undefined;
806
- env?: ("paas" | "saas")[] | undefined;
807
- } | {
808
- type: "email";
809
- default: string;
810
- name: string;
811
- label?: string | undefined;
812
- description?: string | undefined;
813
- env?: ("paas" | "saas")[] | undefined;
814
- } | {
815
- type: "url";
816
- default: string;
817
- name: string;
818
- label?: string | undefined;
819
- description?: string | undefined;
820
- env?: ("paas" | "saas")[] | undefined;
821
- } | {
822
- type: "tel";
823
- default: string;
824
- name: string;
825
- label?: string | undefined;
826
- description?: string | undefined;
827
- env?: ("paas" | "saas")[] | undefined;
828
- } | {
829
- type: "boolean";
830
- default: boolean;
831
- name: string;
832
- label?: string | undefined;
833
- description?: string | undefined;
834
- env?: ("paas" | "saas")[] | undefined;
835
- })[], 1, "At least one configuration parameter is required">]>, readonly []>;
836
- }, undefined>;
837
- readonly eventing: v.ObjectSchema<{
838
- readonly commerce: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
839
- readonly provider: v.ObjectSchema<{
840
- 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">]>;
841
- 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">]>;
842
- 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>;
843
- }, undefined>;
844
- readonly events: v.ArraySchema<v.ObjectSchema<{
845
- 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">]>;
846
- readonly fields: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
847
- 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 \"*\"">]>;
848
- readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
849
- }, undefined>, "Expected an array of event field objects with a 'name' property">, v.MinLengthAction<{
850
- name: string;
851
- source?: string | undefined;
852
- }[], 1, "The Commerce event configuration must define at least one field">]>;
853
- readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
854
- readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
855
- readonly operator: v.UnionSchema<v.LiteralSchema<"regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange", undefined>[], `Operator must be one of: ${string}`>;
856
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
857
- }, undefined>, "Expected an array of event rules with field, operator, and value">, undefined>;
858
- 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>;
859
- readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
860
- readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
861
- readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
862
- 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">]>;
863
- 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">]>;
864
- 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>">;
865
- }, undefined>, "Expected an array of Commerce events">;
866
- }, undefined>, "Expected an array of Commerce event sources">, undefined>;
867
- readonly external: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
868
- readonly provider: v.ObjectSchema<{
869
- 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">]>;
870
- 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">]>;
871
- 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>;
872
- }, undefined>;
873
- readonly events: v.ArraySchema<v.ObjectSchema<{
874
- 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">]>;
875
- 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">]>;
876
- 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">]>;
877
- 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>">;
878
- }, undefined>, "Expected an array of external events">;
879
- }, undefined>, "Expected an array of external event sources">, undefined>;
880
- }, undefined>;
881
- readonly installation: v.ObjectSchema<{
882
- readonly messages: v.OptionalSchema<v.ObjectSchema<{
883
- readonly preInstallation: v.OptionalSchema<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.MaxLengthAction<string, 1000, "The preInstallation message must not be longer than 1000 characters">]>, undefined>;
884
- readonly postInstallation: v.OptionalSchema<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.MaxLengthAction<string, 1000, "The postInstallation message must not be longer than 1000 characters">]>, undefined>;
885
- }, undefined>, undefined>;
886
- readonly customInstallationSteps: v.SchemaWithPipe<readonly [v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
887
- readonly script: 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, "Script path must end with .js (e.g., \"./setup.js\", \"./scripts/setup.js\", or \"../../scripts/setup.js\")">]>;
888
- 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.MaxLengthAction<string, 255, "The step name must not be longer than 255 characters">]>;
889
- 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.MaxLengthAction<string, 255, "The step description must not be longer than 255 characters">]>;
890
- }, undefined>, "Expected an array of custom installation steps">, undefined>, v.CheckAction<{
313
+ } | undefined;
314
+ installation?: {
315
+ messages?: {
316
+ preInstallation?: string | undefined;
317
+ postInstallation?: string | undefined;
318
+ } | undefined;
319
+ customInstallationSteps?: {
891
320
  script: string;
892
321
  name: string;
893
322
  description: string;
894
- }[] | undefined, "Duplicate step names detected in custom installation steps. Each step must have a unique name.">]>;
895
- }, undefined>;
896
- readonly webhooks: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.UnionSchema<[v.ObjectSchema<{
897
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
898
- readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
899
- readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
900
- readonly runtimeAction: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
901
- readonly requireAdobeAuth: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
902
- readonly webhook: v.ObjectSchema<{
903
- 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`>]>;
904
- 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`>]>;
905
- 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">]>;
906
- 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>;
907
- 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">]>;
908
- 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>;
909
- readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
910
- 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>;
911
- 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>;
912
- readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
913
- readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
914
- 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>;
915
- readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
916
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
917
- readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
918
- }, undefined>, "Expected an array of webhook field objects">, undefined>;
919
- readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
920
- readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
921
- readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
922
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
923
- }, undefined>, "Expected an array of webhook rule objects">, undefined>;
924
- readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
925
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
926
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
927
- }, undefined>, "Expected an array of webhook header objects">, undefined>;
928
- }, undefined>;
929
- }, undefined>, v.ObjectSchema<{
930
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
931
- readonly description: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
932
- readonly category: v.OptionalSchema<v.PicklistSchema<readonly ["validation", "append", "modification"], `Webhook category must be one of: ${string}`>, undefined>;
933
- readonly webhook: v.ObjectSchema<{
934
- 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')">]>;
935
- 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`>]>;
936
- 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`>]>;
937
- 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">]>;
938
- 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>;
939
- 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">]>;
940
- 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>;
941
- readonly required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
942
- 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>;
943
- 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>;
944
- readonly method: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
945
- readonly fallback_error_message: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
946
- 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>;
947
- readonly fields: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
948
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
949
- readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
950
- }, undefined>, "Expected an array of webhook field objects">, undefined>;
951
- readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
952
- readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
953
- readonly operator: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
954
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
955
- }, undefined>, "Expected an array of webhook rule objects">, undefined>;
956
- readonly headers: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
957
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
958
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
959
- }, undefined>, "Expected an array of webhook header objects">, undefined>;
960
- }, undefined>;
961
- }, 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<({
323
+ }[] | undefined;
324
+ } | undefined;
325
+ webhooks?: ({
962
326
  label: string;
963
327
  description: string;
964
328
  category?: "validation" | "append" | "modification" | undefined;
@@ -1023,408 +387,10 @@ declare const CommerceAppConfigSchemas: {
1023
387
  value: string;
1024
388
  }[] | undefined;
1025
389
  };
1026
- })[], 1, "webhooks array must contain at least one webhook when present">]>, undefined>;
1027
- readonly "businessConfig.schema": v.SchemaWithPipe<readonly [v.ArraySchema<v.VariantSchema<"type", [v.VariantSchema<"selectionMode", [v.ObjectSchema<{
1028
- readonly type: v.LiteralSchema<"list", "Expected the type to be 'list'">;
1029
- readonly selectionMode: v.LiteralSchema<"single", "Expected the selectionMode to be 'single'">;
1030
- readonly options: v.ArraySchema<v.ObjectSchema<{
1031
- readonly label: v.StringSchema<"Expected a string for the option label">;
1032
- readonly value: v.StringSchema<"Expected a string for the option value">;
1033
- }, undefined>, "Expected an array of list options">;
1034
- readonly default: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default value">, v.NonEmptyAction<string, "The default value must not be empty">]>;
1035
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
1036
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
1037
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
1038
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
1039
- }, undefined>, v.ObjectSchema<{
1040
- readonly type: v.LiteralSchema<"list", "Expected the type to be 'list'">;
1041
- readonly selectionMode: v.LiteralSchema<"multiple", "Expected the selectionMode to be 'multiple'">;
1042
- readonly options: v.ArraySchema<v.ObjectSchema<{
1043
- readonly label: v.StringSchema<"Expected a string for the option label">;
1044
- readonly value: v.StringSchema<"Expected a string for the option value">;
1045
- }, undefined>, "Expected an array of list options">;
1046
- readonly default: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for each default value">, v.NonEmptyAction<string, "Each default value must not be empty">]>, "Expected an array of default values">, readonly []>;
1047
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
1048
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
1049
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
1050
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
1051
- }, undefined>], undefined>, v.ObjectSchema<{
1052
- readonly type: v.LiteralSchema<"text", "Expected the type to be 'text'">;
1053
- readonly default: v.OptionalSchema<v.StringSchema<"Expected a string for the default value">, "">;
1054
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
1055
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
1056
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
1057
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
1058
- }, undefined>, v.ObjectSchema<{
1059
- readonly type: v.LiteralSchema<"password", "Expected the type to be 'password'">;
1060
- readonly default: v.OptionalSchema<v.LiteralSchema<"", "Password fields do not have a default value">, "">;
1061
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
1062
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
1063
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
1064
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
1065
- }, undefined>, v.ObjectSchema<{
1066
- readonly type: v.LiteralSchema<"email", "Expected the type to be 'email'">;
1067
- readonly default: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default email value">, v.EmailAction<string, "The email must be a valid email address">]>], undefined>, "">;
1068
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
1069
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
1070
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
1071
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
1072
- }, undefined>, v.ObjectSchema<{
1073
- readonly type: v.LiteralSchema<"url", "Expected the type to be 'url'">;
1074
- readonly default: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default URL value">, v.UrlAction<string, "The URL must be a valid URL">]>], undefined>, "">;
1075
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
1076
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
1077
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
1078
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
1079
- }, undefined>, v.ObjectSchema<{
1080
- readonly type: v.LiteralSchema<"tel", "Expected the type to be 'tel'">;
1081
- readonly default: v.OptionalSchema<v.UnionSchema<[v.LiteralSchema<"", undefined>, v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the default phone number value">, v.RegexAction<string, "The phone number must contain only numbers and/or country codes">]>], undefined>, "">;
1082
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
1083
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
1084
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
1085
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
1086
- }, undefined>, v.ObjectSchema<{
1087
- readonly type: v.LiteralSchema<"boolean", "Expected the type to be 'boolean'">;
1088
- readonly default: v.OptionalSchema<v.BooleanSchema<"Expected a boolean for the default value">, false>;
1089
- readonly name: v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string for the field name">, v.NonEmptyAction<string, "The field name must not be empty">]>;
1090
- readonly label: v.OptionalSchema<v.StringSchema<"Expected a string for the field label">, undefined>;
1091
- readonly description: v.OptionalSchema<v.StringSchema<"Expected a string for the field description">, undefined>;
1092
- readonly env: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.PicklistSchema<readonly ["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>;
1093
- }, undefined>], undefined>, "Expected an array of configuration fields">, v.MinLengthAction<({
1094
- type: "list";
1095
- selectionMode: "single";
1096
- options: {
1097
- label: string;
1098
- value: string;
1099
- }[];
1100
- default: string;
1101
- name: string;
1102
- label?: string | undefined;
1103
- description?: string | undefined;
1104
- env?: ("paas" | "saas")[] | undefined;
1105
- } | {
1106
- type: "list";
1107
- selectionMode: "multiple";
1108
- options: {
1109
- label: string;
1110
- value: string;
1111
- }[];
1112
- default: string[];
1113
- name: string;
1114
- label?: string | undefined;
1115
- description?: string | undefined;
1116
- env?: ("paas" | "saas")[] | undefined;
1117
- } | {
1118
- type: "text";
1119
- default: string;
1120
- name: string;
1121
- label?: string | undefined;
1122
- description?: string | undefined;
1123
- env?: ("paas" | "saas")[] | undefined;
1124
- } | {
1125
- type: "password";
1126
- default: "";
1127
- name: string;
1128
- label?: string | undefined;
1129
- description?: string | undefined;
1130
- env?: ("paas" | "saas")[] | undefined;
1131
- } | {
1132
- type: "email";
1133
- default: string;
1134
- name: string;
1135
- label?: string | undefined;
1136
- description?: string | undefined;
1137
- env?: ("paas" | "saas")[] | undefined;
1138
- } | {
1139
- type: "url";
1140
- default: string;
1141
- name: string;
1142
- label?: string | undefined;
1143
- description?: string | undefined;
1144
- env?: ("paas" | "saas")[] | undefined;
1145
- } | {
1146
- type: "tel";
1147
- default: string;
1148
- name: string;
1149
- label?: string | undefined;
1150
- description?: string | undefined;
1151
- env?: ("paas" | "saas")[] | undefined;
1152
- } | {
1153
- type: "boolean";
1154
- default: boolean;
1155
- name: string;
1156
- label?: string | undefined;
1157
- description?: string | undefined;
1158
- env?: ("paas" | "saas")[] | undefined;
1159
- })[], 1, "At least one configuration parameter is required">]>;
1160
- readonly "eventing.commerce": v.ArraySchema<v.ObjectSchema<{
1161
- readonly provider: v.ObjectSchema<{
1162
- 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">]>;
1163
- 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">]>;
1164
- 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>;
1165
- }, undefined>;
1166
- readonly events: v.ArraySchema<v.ObjectSchema<{
1167
- 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">]>;
1168
- readonly fields: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1169
- 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 \"*\"">]>;
1170
- readonly source: v.OptionalSchema<v.StringSchema<`Expected a string value for '${string}'`>, undefined>;
1171
- }, undefined>, "Expected an array of event field objects with a 'name' property">, v.MinLengthAction<{
1172
- name: string;
1173
- source?: string | undefined;
1174
- }[], 1, "The Commerce event configuration must define at least one field">]>;
1175
- readonly rules: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1176
- readonly field: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1177
- readonly operator: v.UnionSchema<v.LiteralSchema<"regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange", undefined>[], `Operator must be one of: ${string}`>;
1178
- readonly value: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1179
- }, undefined>, "Expected an array of event rules with field, operator, and value">, undefined>;
1180
- 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>;
1181
- readonly hipaa_audit_required: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1182
- readonly priority: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1183
- readonly force: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1184
- 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">]>;
1185
- 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">]>;
1186
- 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>">;
1187
- }, undefined>, "Expected an array of Commerce events">;
1188
- }, undefined>, "Expected an array of Commerce event sources">;
1189
- readonly "eventing.external": v.ArraySchema<v.ObjectSchema<{
1190
- readonly provider: v.ObjectSchema<{
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 provider label must not be longer than 100 characters">]>;
1192
- 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">]>;
1193
- 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>;
1194
- }, undefined>;
1195
- readonly events: v.ArraySchema<v.ObjectSchema<{
1196
- 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">]>;
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 event label must not be longer than 100 characters">]>;
1198
- 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">]>;
1199
- 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>">;
1200
- }, undefined>, "Expected an array of external events">;
1201
- }, undefined>, "Expected an array of external event sources">;
1202
- readonly "installation.customInstallationSteps": v.ArraySchema<v.ObjectSchema<{
1203
- readonly script: 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, "Script path must end with .js (e.g., \"./setup.js\", \"./scripts/setup.js\", or \"../../scripts/setup.js\")">]>;
1204
- 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.MaxLengthAction<string, 255, "The step name must not be longer than 255 characters">]>;
1205
- 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.MaxLengthAction<string, 255, "The step description must not be longer than 255 characters">]>;
1206
- }, undefined>, "Expected an array of custom installation steps">;
1207
- readonly adminUiSdk: v.ObjectSchema<{
1208
- readonly registration: v.ObjectSchema<{
1209
- readonly menuItems: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1210
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1211
- 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>;
1212
- readonly parent: 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>;
1213
- readonly sortOrder: v.OptionalSchema<v.NumberSchema<undefined>, undefined>;
1214
- readonly isSection: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1215
- readonly sandbox: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string value for \"sandbox\"">, v.CheckAction<string, `sandbox must contain only single-space-separated values from: ${string}`>]>, undefined>;
1216
- }, undefined>, undefined>, undefined>;
1217
- readonly order: v.OptionalSchema<v.ObjectSchema<{
1218
- readonly massActions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
1219
- readonly displayIframe: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1220
- 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>;
1221
- readonly sandbox: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string value for \"sandbox\"">, v.CheckAction<string, `sandbox must contain only single-space-separated values from: ${string}`>]>, undefined>;
1222
- readonly actionId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1223
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1224
- 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>;
1225
- readonly confirm: v.OptionalSchema<v.ObjectSchema<{
1226
- 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>;
1227
- 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>;
1228
- }, undefined>, undefined>;
1229
- readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1230
- } & {
1231
- 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>;
1232
- }, undefined>, v.PipeItem<{
1233
- displayIframe?: boolean | undefined;
1234
- timeout?: number | undefined;
1235
- sandbox?: string | undefined;
1236
- actionId: string;
1237
- label: string;
1238
- title?: string | undefined;
1239
- confirm?: {
1240
- title?: string | undefined;
1241
- message?: string | undefined;
1242
- } | undefined;
1243
- path: string;
1244
- selectionLimit?: number | undefined;
1245
- }, unknown, v.BaseIssue<unknown>>]>, undefined>, undefined>;
1246
- readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
1247
- readonly data: v.ObjectSchema<{
1248
- readonly meshId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1249
- }, undefined>;
1250
- readonly properties: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1251
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1252
- readonly columnId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1253
- readonly type: v.PicklistSchema<["boolean", "date", "float", "integer", "string"], undefined>;
1254
- readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
1255
- }, undefined>, undefined>, v.MinLengthAction<{
1256
- label: string;
1257
- columnId: string;
1258
- type: "string" | "boolean" | "date" | "float" | "integer";
1259
- align: "left" | "right" | "center";
1260
- }[], 1, "At least one grid column property is required">]>;
1261
- }, undefined>, undefined>;
1262
- readonly viewButtons: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.ObjectSchema<{
1263
- readonly displayIframe: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1264
- 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>;
1265
- readonly sandbox: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string value for \"sandbox\"">, v.CheckAction<string, `sandbox must contain only single-space-separated values from: ${string}`>]>, undefined>;
1266
- readonly buttonId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1267
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1268
- readonly confirm: v.OptionalSchema<v.ObjectSchema<{
1269
- 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>;
1270
- }, undefined>, undefined>;
1271
- readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1272
- readonly level: v.OptionalSchema<v.PicklistSchema<[-1, 0, 1], undefined>, undefined>;
1273
- 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>;
1274
- }, undefined>, v.PipeItem<{
1275
- displayIframe?: boolean | undefined;
1276
- timeout?: number | undefined;
1277
- sandbox?: string | undefined;
1278
- buttonId: string;
1279
- label: string;
1280
- confirm?: {
1281
- message?: string | undefined;
1282
- } | undefined;
1283
- path: string;
1284
- level?: 0 | 1 | -1 | undefined;
1285
- sortOrder?: number | undefined;
1286
- }, unknown, v.BaseIssue<unknown>>]>, undefined>, undefined>;
1287
- readonly customFees: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1288
- readonly id: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1289
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1290
- readonly value: v.NumberSchema<"Custom fee value must be a number">;
1291
- readonly orderMinimumAmount: v.OptionalSchema<v.NumberSchema<"orderMinimumAmount must be a number">, undefined>;
1292
- readonly applyFeeOnLastInvoice: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1293
- readonly applyFeeOnLastCreditMemo: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1294
- }, undefined>, undefined>, undefined>;
1295
- }, undefined>, undefined>;
1296
- readonly product: v.OptionalSchema<v.ObjectSchema<{
1297
- readonly massActions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
1298
- readonly displayIframe: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1299
- 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>;
1300
- readonly sandbox: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string value for \"sandbox\"">, v.CheckAction<string, `sandbox must contain only single-space-separated values from: ${string}`>]>, undefined>;
1301
- readonly actionId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1302
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1303
- 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>;
1304
- readonly confirm: v.OptionalSchema<v.ObjectSchema<{
1305
- 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>;
1306
- 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>;
1307
- }, undefined>, undefined>;
1308
- readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1309
- } & {
1310
- productSelectLimit: 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>;
1311
- }, undefined>, v.PipeItem<{
1312
- displayIframe?: boolean | undefined;
1313
- timeout?: number | undefined;
1314
- sandbox?: string | undefined;
1315
- actionId: string;
1316
- label: string;
1317
- title?: string | undefined;
1318
- confirm?: {
1319
- title?: string | undefined;
1320
- message?: string | undefined;
1321
- } | undefined;
1322
- path: string;
1323
- productSelectLimit?: number | undefined;
1324
- }, unknown, v.BaseIssue<unknown>>]>, undefined>, undefined>;
1325
- readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
1326
- readonly data: v.ObjectSchema<{
1327
- readonly meshId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1328
- }, undefined>;
1329
- readonly properties: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1330
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1331
- readonly columnId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1332
- readonly type: v.PicklistSchema<["boolean", "date", "float", "integer", "string"], undefined>;
1333
- readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
1334
- }, undefined>, undefined>, v.MinLengthAction<{
1335
- label: string;
1336
- columnId: string;
1337
- type: "string" | "boolean" | "date" | "float" | "integer";
1338
- align: "left" | "right" | "center";
1339
- }[], 1, "At least one grid column property is required">]>;
1340
- }, undefined>, undefined>;
1341
- }, undefined>, undefined>;
1342
- readonly customer: v.OptionalSchema<v.ObjectSchema<{
1343
- readonly massActions: v.OptionalSchema<v.ArraySchema<v.SchemaWithPipe<readonly [v.StrictObjectSchema<{
1344
- readonly displayIframe: v.OptionalSchema<v.BooleanSchema<`Expected a boolean value for '${string}'`>, undefined>;
1345
- 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>;
1346
- readonly sandbox: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<"Expected a string value for \"sandbox\"">, v.CheckAction<string, `sandbox must contain only single-space-separated values from: ${string}`>]>, undefined>;
1347
- readonly actionId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1348
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1349
- 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>;
1350
- readonly confirm: v.OptionalSchema<v.ObjectSchema<{
1351
- 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>;
1352
- 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>;
1353
- }, undefined>, undefined>;
1354
- readonly path: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1355
- } & {
1356
- customerSelectLimit: 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>;
1357
- }, undefined>, v.PipeItem<{
1358
- displayIframe?: boolean | undefined;
1359
- timeout?: number | undefined;
1360
- sandbox?: string | undefined;
1361
- actionId: string;
1362
- label: string;
1363
- title?: string | undefined;
1364
- confirm?: {
1365
- title?: string | undefined;
1366
- message?: string | undefined;
1367
- } | undefined;
1368
- path: string;
1369
- customerSelectLimit?: number | undefined;
1370
- }, unknown, v.BaseIssue<unknown>>]>, undefined>, undefined>;
1371
- readonly gridColumns: v.OptionalSchema<v.ObjectSchema<{
1372
- readonly data: v.ObjectSchema<{
1373
- readonly meshId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1374
- }, undefined>;
1375
- readonly properties: v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1376
- readonly label: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1377
- readonly columnId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1378
- readonly type: v.PicklistSchema<["boolean", "date", "float", "integer", "string"], undefined>;
1379
- readonly align: v.PicklistSchema<["left", "right", "center"], undefined>;
1380
- }, undefined>, undefined>, v.MinLengthAction<{
1381
- label: string;
1382
- columnId: string;
1383
- type: "string" | "boolean" | "date" | "float" | "integer";
1384
- align: "left" | "right" | "center";
1385
- }[], 1, "At least one grid column property is required">]>;
1386
- }, undefined>, undefined>;
1387
- }, undefined>, undefined>;
1388
- readonly bannerNotification: v.OptionalSchema<v.ObjectSchema<{
1389
- readonly massActions: v.OptionalSchema<v.ObjectSchema<{
1390
- readonly order: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1391
- readonly actionId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1392
- readonly successMessage: 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>;
1393
- readonly errorMessage: 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>;
1394
- }, undefined>, undefined>, undefined>;
1395
- readonly product: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1396
- readonly actionId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1397
- readonly successMessage: 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>;
1398
- readonly errorMessage: 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>;
1399
- }, undefined>, undefined>, undefined>;
1400
- readonly customer: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1401
- readonly actionId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1402
- readonly successMessage: 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>;
1403
- readonly errorMessage: 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>;
1404
- }, undefined>, undefined>, undefined>;
1405
- }, undefined>, undefined>;
1406
- readonly orderViewButtons: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
1407
- readonly buttonId: v.SchemaWithPipe<readonly [v.StringSchema<`Expected a string value for '${string}'`>, v.NonEmptyAction<string, `The value of "${string}" must not be empty`>]>;
1408
- readonly successMessage: 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>;
1409
- readonly errorMessage: 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>;
1410
- }, undefined>, undefined>, undefined>;
1411
- }, undefined>, undefined>;
1412
- }, undefined>;
1413
- }, undefined>;
1414
- };
1415
- /** Individual validatable domains of the commerce app config. */
1416
- type CommerceAppConfigDomain = keyof typeof CommerceAppConfigSchemas;
1417
- /**
1418
- * Get the config domains that are present in the config.
1419
- * @param config - The configuration to check.
1420
- */
1421
- declare function getConfigDomains(config: CommerceAppConfigOutputModel): Set<CommerceAppConfigDomain>;
1422
- /**
1423
- * Check if the config has a specific domain.
1424
- * @param config - The configuration to check.
1425
- * @param domain - The domain to check.
1426
- */
1427
- declare function hasConfigDomain(config: CommerceAppConfigOutputModel, domain: CommerceAppConfigDomain): boolean;
390
+ })[] | undefined;
391
+ } & {
392
+ [key: string]: unknown;
393
+ }>;
1428
394
  //#endregion
1429
395
  //#region source/config/lib/validate.d.ts
1430
396
  /**
@@ -1501,21 +467,25 @@ declare function validateCommerceAppConfigDomain<T extends CommerceAppConfigDoma
1501
467
  //#endregion
1502
468
  //#region source/config/schema/business-configuration.d.ts
1503
469
  /** Config type when business config is present. */
1504
- type AppConfigWithBusinessConfig = CommerceAppConfigOutputModel & {
1505
- businessConfig: NonNullable<CommerceAppConfigOutputModel["businessConfig"]>;
470
+ type AppConfigWithBusinessConfig<T extends AnyCommerceAppConfig> = T & {
471
+ businessConfig: NonNullable<T["businessConfig"]>;
1506
472
  };
1507
473
  /** Config type when business config schema is present. */
1508
- type AppConfigWithBusinessConfigSchema = SetRequiredDeep<AppConfigWithBusinessConfig, "businessConfig.schema">;
474
+ type AppConfigWithBusinessConfigSchema<T extends AnyCommerceAppConfig> = T & {
475
+ businessConfig: NonNullable<T["businessConfig"]> & {
476
+ schema: NonNullable<NonNullable<T["businessConfig"]>["schema"]>;
477
+ };
478
+ };
1509
479
  /**
1510
480
  * Check if config has business config.
1511
481
  * @param config - The configuration to check.
1512
482
  */
1513
- declare function hasBusinessConfig(config: CommerceAppConfigOutputModel): config is AppConfigWithBusinessConfig;
483
+ declare function hasBusinessConfig<T extends AnyCommerceAppConfig>(config: T): config is T & AppConfigWithBusinessConfig<T>;
1514
484
  /**
1515
485
  * Check if config has business config schema.
1516
486
  * @param config - The configuration to check.
1517
487
  */
1518
- declare function hasBusinessConfigSchema(config: CommerceAppConfigOutputModel): config is AppConfigWithBusinessConfigSchema;
488
+ declare function hasBusinessConfigSchema<T extends AnyCommerceAppConfig>(config: T): config is T & AppConfigWithBusinessConfigSchema<T>;
1519
489
  //#endregion
1520
490
  //#region source/config/schema/eventing.d.ts
1521
491
  /** Schema for event provider configuration */
@@ -1600,7 +570,7 @@ declare const ExternalEventSourceSchema: v.ObjectSchema<{
1600
570
  }, undefined>;
1601
571
  /** Schema for eventing configuration with separate commerce and external arrays */
1602
572
  declare const EventingSchema: v.ObjectSchema<{
1603
- readonly commerce: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
573
+ readonly commerce: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1604
574
  readonly provider: v.ObjectSchema<{
1605
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">]>;
1606
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">]>;
@@ -1628,8 +598,33 @@ declare const EventingSchema: v.ObjectSchema<{
1628
598
  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">]>;
1629
599
  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>">;
1630
600
  }, undefined>, "Expected an array of Commerce events">;
1631
- }, undefined>, "Expected an array of Commerce event sources">, undefined>;
1632
- readonly external: v.OptionalSchema<v.ArraySchema<v.ObjectSchema<{
601
+ }, undefined>, "Expected an array of Commerce event sources">, v.CheckAction<{
602
+ provider: {
603
+ label: string;
604
+ description: string;
605
+ key?: string | undefined;
606
+ };
607
+ events: {
608
+ name: string;
609
+ fields: {
610
+ name: string;
611
+ source?: string | undefined;
612
+ }[];
613
+ rules?: {
614
+ field: string;
615
+ operator: "regex" | "greaterThan" | "lessThan" | "equal" | "in" | "onChange";
616
+ value: string;
617
+ }[] | undefined;
618
+ destination?: string | undefined;
619
+ hipaa_audit_required?: boolean | undefined;
620
+ priority?: boolean | undefined;
621
+ force?: boolean | undefined;
622
+ label: string;
623
+ description: string;
624
+ runtimeActions: string[];
625
+ }[];
626
+ }[], "Commerce provider labels must be unique">]>, undefined>;
627
+ readonly external: v.OptionalSchema<v.SchemaWithPipe<readonly [v.ArraySchema<v.ObjectSchema<{
1633
628
  readonly provider: v.ObjectSchema<{
1634
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">]>;
1635
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">]>;
@@ -1641,7 +636,19 @@ declare const EventingSchema: v.ObjectSchema<{
1641
636
  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">]>;
1642
637
  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>">;
1643
638
  }, undefined>, "Expected an array of external events">;
1644
- }, undefined>, "Expected an array of external event sources">, undefined>;
639
+ }, undefined>, "Expected an array of external event sources">, v.CheckAction<{
640
+ provider: {
641
+ label: string;
642
+ description: string;
643
+ key?: string | undefined;
644
+ };
645
+ events: {
646
+ name: string;
647
+ label: string;
648
+ description: string;
649
+ runtimeActions: string[];
650
+ }[];
651
+ }[], "External provider labels must be unique">]>, undefined>;
1645
652
  }, undefined>;
1646
653
  /** The eventing configuration for an Adobe Commerce application */
1647
654
  type EventingConfiguration = v.InferInput<typeof EventingSchema>;
@@ -1658,45 +665,58 @@ type AppEvent = CommerceEvent | ExternalEvent;
1658
665
  /** Event provider configuration */
1659
666
  type EventProvider = v.InferInput<typeof ProviderSchema>;
1660
667
  /** Config type when eventing is present. */
1661
- type EventsConfig = CommerceAppConfigOutputModel & {
1662
- eventing: NonNullable<CommerceAppConfigOutputModel["eventing"]>;
668
+ type EventsConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = T & {
669
+ eventing: NonNullable<T["eventing"]>;
1663
670
  };
1664
671
  /** Config type when commerce event sources are present. */
1665
- type CommerceEventsConfig = SetRequiredDeep<EventsConfig, "eventing.commerce">;
672
+ type CommerceEventsConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = EventsConfig<T> & {
673
+ eventing: EventsConfig<T>["eventing"] & {
674
+ commerce: NonNullable<EventsConfig<T>["eventing"]["commerce"]>;
675
+ };
676
+ };
1666
677
  /** Config type when external event sources are present. */
1667
- type ExternalEventsConfig = SetRequiredDeep<EventsConfig, "eventing.external">;
678
+ type ExternalEventsConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = EventsConfig<T> & {
679
+ eventing: EventsConfig<T>["eventing"] & {
680
+ external: NonNullable<EventsConfig<T>["eventing"]["external"]>;
681
+ };
682
+ };
1668
683
  /**
1669
684
  * Check if config has commerce event sources.
1670
685
  * @param config - The configuration to check.
1671
686
  */
1672
- declare function hasCommerceEvents(config: CommerceAppConfigOutputModel): config is CommerceEventsConfig;
687
+ declare function hasCommerceEvents<T extends AnyCommerceAppConfig>(config: T): config is T & CommerceEventsConfig<T>;
1673
688
  /**
1674
689
  * Check if config has external event sources.
1675
690
  * @param config - The configuration to check.
1676
691
  */
1677
- declare function hasExternalEvents(config: CommerceAppConfigOutputModel): config is ExternalEventsConfig;
692
+ declare function hasExternalEvents<T extends AnyCommerceAppConfig>(config: T): config is T & ExternalEventsConfig<T>;
1678
693
  /**
1679
694
  * Check if config has any eventing configuration.
1680
695
  * @param config - The configuration to check.
1681
696
  */
1682
- declare function hasEventing(config: CommerceAppConfigOutputModel): config is EventsConfig;
697
+ declare function hasEventing<T extends AnyCommerceAppConfig>(config: T): config is T & EventsConfig<T>;
1683
698
  //#endregion
1684
699
  //#region source/config/schema/installation.d.ts
1685
- type InstallationConfig = CommerceAppConfigOutputModel & {
1686
- installation: NonNullable<CommerceAppConfigOutputModel["installation"]>;
700
+ /** Config type when installation settings are present. */
701
+ type InstallationConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = T & {
702
+ installation: NonNullable<T["installation"]>;
1687
703
  };
1688
704
  /** Config type when custom installation steps are present. */
1689
- type ConfigWithInstallationSteps = SetRequiredDeep<InstallationConfig, "installation.customInstallationSteps">;
705
+ type ConfigWithInstallationSteps<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = InstallationConfig<T> & {
706
+ installation: InstallationConfig<T>["installation"] & {
707
+ customInstallationSteps: NonNullable<InstallationConfig<T>["installation"]["customInstallationSteps"]>;
708
+ };
709
+ };
1690
710
  /**
1691
711
  * Check if config has custom installation settings.
1692
712
  * @param config - The configuration to check.
1693
713
  */
1694
- declare function hasCustomInstallation(config: CommerceAppConfigOutputModel): config is InstallationConfig;
714
+ declare function hasCustomInstallation<T extends AnyCommerceAppConfig>(config: T): config is T & InstallationConfig<T>;
1695
715
  /**
1696
716
  * Check if config has custom installation steps.
1697
717
  * @param config - The configuration to check.
1698
718
  */
1699
- declare function hasCustomInstallationSteps(config: CommerceAppConfigOutputModel): config is ConfigWithInstallationSteps;
719
+ declare function hasCustomInstallationSteps<T extends AnyCommerceAppConfig>(config: T): config is T & ConfigWithInstallationSteps<T>;
1700
720
  //#endregion
1701
721
  //#region source/config/schema/metadata.d.ts
1702
722
  /** The schema for the metadata of the application. */
@@ -1708,11 +728,15 @@ declare const MetadataSchema: v.ObjectSchema<{
1708
728
  }, undefined>;
1709
729
  /** The metadata associated to an Adobe Commerce application. */
1710
730
  type ApplicationMetadata = v.InferInput<typeof MetadataSchema>;
731
+ /** Config type when metadata is present. */
732
+ type AppConfigWithMetadata<T extends AnyCommerceAppConfig> = T & {
733
+ metadata: NonNullable<T["metadata"]>;
734
+ };
1711
735
  /**
1712
736
  * Check if config has metadata.
1713
737
  * @param config - The configuration to check.
1714
738
  */
1715
- declare function hasMetadata(config: CommerceAppConfigOutputModel): boolean;
739
+ declare function hasMetadata<T extends AnyCommerceAppConfig>(config: T): config is T & AppConfigWithMetadata<T>;
1716
740
  //#endregion
1717
741
  //#region source/config/schema/webhooks.d.ts
1718
742
  /** Schema for webhook field configuration (name and optional source). */
@@ -2000,13 +1024,13 @@ type WebhookEntry = v.InferInput<typeof WebhookEntrySchema>;
2000
1024
  /** Webhooks configuration (array of webhook entries). */
2001
1025
  type WebhooksConfiguration = v.InferInput<typeof WebhooksSchema>;
2002
1026
  /** Config type when webhooks are present (non-empty array). */
2003
- type WebhooksConfig = CommerceAppConfigOutputModel & {
2004
- webhooks: NonNullable<CommerceAppConfigOutputModel["webhooks"]>;
1027
+ type WebhooksConfig<T extends AnyCommerceAppConfig = CommerceAppConfigOutputModel> = T & {
1028
+ webhooks: NonNullable<T["webhooks"]>;
2005
1029
  };
2006
1030
  /**
2007
1031
  * Check if config has webhooks (non-empty array).
2008
1032
  * @param config - The configuration to check.
2009
1033
  */
2010
- declare function hasWebhooks(config: CommerceAppConfigOutputModel): config is WebhooksConfig;
1034
+ declare function hasWebhooks<T extends AnyCommerceAppConfig>(config: T): config is T & WebhooksConfig<T>;
2011
1035
  //#endregion
2012
- export { type AdminUiSdkConfiguration, type AdminUiSdkRegistration, type AppConfigWithBusinessConfig, type AppConfigWithBusinessConfigSchema, AppEvent, type ApplicationMetadata, type BannerNotification, type CommerceAppConfig, type CommerceAppConfigDomain, CommerceAppConfigSchemas, CommerceEvent, CommerceEventSource, CommerceEventSourceSchema, CommerceEventsConfig, type CustomFee, type CustomerMassAction, EventProvider, EventingConfiguration, EventingSchema, EventsConfig, ExternalEvent, ExternalEventSource, ExternalEventSourceSchema, ExternalEventsConfig, type GridColumns, type MenuItem, type OrderMassAction, type OrderViewButton, type ProductMassAction, WebhookDefinition, WebhookEntry, WebhookField, WebhookHeader, WebhookRule, WebhooksConfig, WebhooksConfiguration, WebhooksSchema, defineConfig, getConfigDomains, hasAdminUiSdk, hasBusinessConfig, hasBusinessConfigSchema, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasMetadata, hasWebhooks, parseCommerceAppConfig, readCommerceAppConfig, resolveCommerceAppConfig, validateCommerceAppConfig, validateCommerceAppConfigDomain };
1036
+ export { type AdminUiSdkConfiguration, type AdminUiSdkRegistration, type AppConfigWithBusinessConfig, type AppConfigWithBusinessConfigSchema, type AppEvent, type ApplicationMetadata, type BannerNotification, type CommerceAppConfig, type CommerceAppConfigDomain, CommerceAppConfigSchemas, type CommerceEvent, type CommerceEventSource, type CommerceEventSourceSchema, type CommerceEventsConfig, type CustomFee, type CustomerMassAction, type EventProvider, type EventingConfiguration, type EventingSchema, type EventsConfig, type ExternalEvent, type ExternalEventSource, type ExternalEventSourceSchema, type ExternalEventsConfig, type GridColumns, type MenuItem, type OrderMassAction, type OrderViewButton, type ProductMassAction, type WebhookDefinition, type WebhookEntry, type WebhookField, type WebhookHeader, type WebhookRule, type WebhooksConfig, type WebhooksConfiguration, type WebhooksSchema, defineConfig, getConfigDomains, hasAdminUiSdk, hasBusinessConfig, hasBusinessConfigSchema, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasMetadata, hasWebhooks, parseCommerceAppConfig, readCommerceAppConfig, resolveCommerceAppConfig, validateCommerceAppConfig, validateCommerceAppConfigDomain };