@adobe/aio-commerce-lib-app 2.2.0 → 2.3.0-alpha-20261203134759

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 (102) hide show
  1. package/CHANGELOG.md +44 -1
  2. package/bin/cli.mjs +22 -1
  3. package/dist/cjs/actions/app-config/index.cjs +8 -8
  4. package/dist/cjs/actions/app-config/index.d.cts +2 -2
  5. package/dist/cjs/actions/association/index.cjs +4 -4
  6. package/dist/cjs/actions/config/index.cjs +19 -8
  7. package/dist/cjs/actions/config/index.d.cts +1 -1
  8. package/dist/cjs/actions/installation/index.cjs +39 -15
  9. package/dist/cjs/actions/installation/index.d.cts +3 -3
  10. package/dist/cjs/actions/scope-tree/index.cjs +6 -6
  11. package/dist/cjs/{app-B3bAEor-.d.cts → app-Cb6-5mKk.d.cts} +637 -45
  12. package/dist/cjs/config/index.browser.d.cts +1 -1
  13. package/dist/cjs/config/index.node.cjs +11 -7
  14. package/dist/cjs/config/index.node.d.cts +150 -14
  15. package/dist/cjs/{define-eBMdGAq6.d.cts → define-Dk0uzfO9.d.cts} +1 -1
  16. package/dist/cjs/{commands → deprecated/commands}/index.cjs +1828 -864
  17. package/dist/cjs/{environment-CW6M76gS.cjs → environment-CaV1hi2-.cjs} +1 -1
  18. package/dist/cjs/{index-BEeludy0.d.cts → index-Cmxlkzpm.d.cts} +2 -2
  19. package/dist/cjs/index.cjs +3 -3
  20. package/dist/cjs/index.d.cts +1 -1
  21. package/dist/cjs/index.node-QXhLROom.cjs +117 -0
  22. package/dist/cjs/{logging-Emi7P923.cjs → logging-r-r2bUWO.cjs} +1 -1
  23. package/dist/cjs/management/index.cjs +1 -1
  24. package/dist/cjs/management/index.d.cts +1 -1
  25. package/dist/cjs/{management-5Et1mEUp.cjs → management-BX9sUQw-.cjs} +123 -108
  26. package/dist/cjs/{openapi-DghfuM8S.cjs → openapi-BaKoO7GY.cjs} +177 -26
  27. package/dist/cjs/{index.node-9bfp79rs.cjs → parser-XcHKOYKN.cjs} +46 -16
  28. package/dist/cjs/project/index.cjs +637 -0
  29. package/dist/cjs/project/index.d.cts +212 -0
  30. package/dist/cjs/{rolldown-runtime-CoOt0iuZ.cjs → rolldown-runtime-BKfnhsn2.cjs} +4 -4
  31. package/dist/cjs/{schemas-B6ITl1bG.cjs → schemas-B-jCi6Oz.cjs} +1 -1
  32. package/dist/cjs/{utils-CoR_PBHz.cjs → utils-CuzJBLgo.cjs} +2 -2
  33. package/dist/cjs/{utils-DSS0XlXq.cjs → utils-bwFwJcPW.cjs} +1 -1
  34. package/dist/cjs/{validate-BC3rnRLc.cjs → validate-BumkVjJy.cjs} +22 -6
  35. package/dist/cjs/{version-5MonNzl5.cjs → version-Bczstmvz.cjs} +3 -3
  36. package/dist/{es/webhooks-DgaLfP36.d.mts → cjs/webhooks-BBuoVWq_.d.cts} +382 -43
  37. package/dist/cjs/{webhooks-ZPh2gVb3.cjs → webhooks-VZTBeI8L.cjs} +84 -23
  38. package/dist/es/actions/app-config/index.d.mts +2 -2
  39. package/dist/es/actions/app-config/index.mjs +6 -6
  40. package/dist/es/actions/association/index.mjs +3 -3
  41. package/dist/es/actions/config/index.d.mts +2 -2
  42. package/dist/es/actions/config/index.mjs +19 -8
  43. package/dist/es/actions/installation/index.d.mts +4 -4
  44. package/dist/es/actions/installation/index.mjs +38 -14
  45. package/dist/es/actions/scope-tree/index.mjs +5 -5
  46. package/dist/es/{app-B3bAEor-.d.mts → app-Cb6-5mKk.d.mts} +637 -45
  47. package/dist/es/config/index.browser.d.mts +1 -1
  48. package/dist/es/config/index.node.d.mts +151 -15
  49. package/dist/es/config/index.node.mjs +5 -4
  50. package/dist/es/{define-BdXyLAwb.d.mts → define-D7EjSr-Z.d.mts} +1 -1
  51. package/dist/es/{commands → deprecated/commands}/index.mjs +1773 -807
  52. package/dist/es/{environment-DUhU0_9z.mjs → environment-B1JJFHZw.mjs} +1 -1
  53. package/dist/es/{index-DE2KVXfH.d.mts → index-BkqV8WU_.d.mts} +4 -4
  54. package/dist/es/{index-DUJtT78x.d.mts → index-U7CXicoW.d.mts} +1 -1
  55. package/dist/es/index.d.mts +2 -2
  56. package/dist/es/index.mjs +3 -3
  57. package/dist/es/index.node-DipCrOq_.mjs +112 -0
  58. package/dist/es/management/index.d.mts +1 -1
  59. package/dist/es/management/index.mjs +1 -1
  60. package/dist/es/{management-BAQ64OyR.mjs → management-DSu69_ub.mjs} +128 -113
  61. package/dist/es/{openapi-BvPVTUMt.mjs → openapi-ChihLuvm.mjs} +177 -26
  62. package/dist/es/{index.node-CURztkP5.mjs → parser-DdhiGXVf.mjs} +33 -15
  63. package/dist/es/project/index.d.mts +212 -0
  64. package/dist/es/project/index.mjs +636 -0
  65. package/dist/es/{utils-DB8HaSj0.mjs → utils-Bg_LIAGV.mjs} +2 -2
  66. package/dist/es/{validate-xS9Dc-4m.mjs → validate-CYWj7Nzp.mjs} +10 -6
  67. package/dist/es/{version-BWgrh_QM.mjs → version-CVSRkbJP.mjs} +1 -1
  68. package/dist/es/{webhooks-HBe_DEKA.mjs → webhooks-Ba-OdU8e.mjs} +76 -21
  69. package/dist/{cjs/webhooks-DNLuuv9_.d.cts → es/webhooks-Deujdgcm.d.mts} +382 -43
  70. package/package.json +29 -24
  71. /package/dist/cjs/{commands → deprecated/commands}/index.d.cts +0 -0
  72. /package/dist/cjs/{commands → deprecated/commands}/templates/typescript/webpack-config.cjs +0 -0
  73. /package/dist/cjs/{commands → project}/templates/admin-ui/tsconfig.json +0 -0
  74. /package/dist/cjs/{commands → project}/templates/admin-ui/web-src/.babelrc +0 -0
  75. /package/dist/cjs/{commands → project}/templates/admin-ui/web-src/index.css +0 -0
  76. /package/dist/cjs/{commands → project}/templates/admin-ui/web-src/index.html +0 -0
  77. /package/dist/cjs/{commands → project}/templates/admin-ui/web-src/src/app.jsx +0 -0
  78. /package/dist/cjs/{commands → project}/templates/admin-ui/web-src/src/components/welcome.jsx +0 -0
  79. /package/dist/cjs/{commands → project}/templates/admin-ui/web-src/src/pages/main-page.jsx +0 -0
  80. /package/dist/cjs/{commands → project}/templates/admin-ui/web-src-template.d.ts +0 -0
  81. /package/dist/cjs/{commands → project}/templates/app-management/app-config.js.template +0 -0
  82. /package/dist/cjs/{commands → project}/templates/app-management/association.js.template +0 -0
  83. /package/dist/cjs/{commands → project}/templates/app-management/custom-scripts.js.template +0 -0
  84. /package/dist/cjs/{commands → project}/templates/app-management/installation.js.template +0 -0
  85. /package/dist/cjs/{commands → project}/templates/business-configuration/config.js.template +0 -0
  86. /package/dist/cjs/{commands → project}/templates/business-configuration/scope-tree.js.template +0 -0
  87. /package/dist/es/{commands → deprecated/commands}/index.d.mts +0 -0
  88. /package/dist/es/{commands → deprecated/commands}/templates/typescript/webpack-config.cjs +0 -0
  89. /package/dist/es/{commands → project}/templates/admin-ui/tsconfig.json +0 -0
  90. /package/dist/es/{commands → project}/templates/admin-ui/web-src/.babelrc +0 -0
  91. /package/dist/es/{commands → project}/templates/admin-ui/web-src/index.css +0 -0
  92. /package/dist/es/{commands → project}/templates/admin-ui/web-src/index.html +0 -0
  93. /package/dist/es/{commands → project}/templates/admin-ui/web-src/src/app.jsx +0 -0
  94. /package/dist/es/{commands → project}/templates/admin-ui/web-src/src/components/welcome.jsx +0 -0
  95. /package/dist/es/{commands → project}/templates/admin-ui/web-src/src/pages/main-page.jsx +0 -0
  96. /package/dist/es/{commands → project}/templates/admin-ui/web-src-template.d.ts +0 -0
  97. /package/dist/es/{commands → project}/templates/app-management/app-config.js.template +0 -0
  98. /package/dist/es/{commands → project}/templates/app-management/association.js.template +0 -0
  99. /package/dist/es/{commands → project}/templates/app-management/custom-scripts.js.template +0 -0
  100. /package/dist/es/{commands → project}/templates/app-management/installation.js.template +0 -0
  101. /package/dist/es/{commands → project}/templates/business-configuration/config.js.template +0 -0
  102. /package/dist/es/{commands → project}/templates/business-configuration/scope-tree.js.template +0 -0
@@ -13,5 +13,5 @@
13
13
  */
14
14
 
15
15
  /** biome-ignore-all lint/performance/noBarrelFile: This is the browser-compatible public API for the config entrypoint */
16
- import { t as defineConfig } from "../define-BdXyLAwb.mjs";
16
+ import { t as defineConfig } from "../define-D7EjSr-Z.mjs";
17
17
  export { defineConfig };
@@ -17,12 +17,12 @@
17
17
  * This module exports shared config utilities for the AIO Commerce SDK.
18
18
  * @packageDocumentation
19
19
  */
20
- import { t as defineConfig } from "../define-BdXyLAwb.mjs";
21
- import { a as CommerceAppConfigSchemas, i as CommerceAppConfigDomain, n as CommerceAppConfig, o as getConfigDomains, r as CommerceAppConfigOutputModel, s as hasConfigDomain, t as AnyCommerceAppConfig } from "../app-B3bAEor-.mjs";
22
- import { A as AdminUiConfig, B as OrderViewButton, C as ExternalEventSource, D as hasEventing, E as hasCommerceEvents, F as InvoiceViewButton, G as hasBackendUiV2Components, H as ViewMassAction, I as MassAction, L as Menu, M as CreditMemoViewButton, N as GridColumn, O as hasExternalEvents, P as GridColumns, R as NativeUiReplacedPage, S as ExternalEvent, T as ExternalEventsConfig, U as WorkerMassAction, V as RmaViewButton, W as hasAdminUi, _ as CommerceEventsConfig, a as WebhookRule, b as EventingSchema, c as WebhooksSchema, d as hasCustomInstallation, f as hasCustomInstallationSteps, g as CommerceEventSourceSchema, h as CommerceEventSource, i as WebhookHeader, j as AdminUiConfiguration, l as hasWebhooks, m as CommerceEvent, n as WebhookEntry, o as WebhooksConfig, p as AppEvent, r as WebhookField, s as WebhooksConfiguration, t as WebhookDefinition, v as EventProvider, w as ExternalEventSourceSchema, x as EventsConfig, y as EventingConfiguration, z as Notifications } from "../webhooks-DgaLfP36.mjs";
20
+ import { t as defineConfig } from "../define-D7EjSr-Z.mjs";
21
+ import { Get } from "type-fest";
22
+ import { a as CommerceAppConfigDomain, c as hasConfigDomain, i as COMMERCE_APP_CONFIG_DOMAINS, n as CommerceAppConfig, o as CommerceAppConfigSchemas, r as CommerceAppConfigOutputModel, s as getConfigDomains, t as AnyCommerceAppConfig } from "../app-Cb6-5mKk.mjs";
23
+ import { A as AdminUiConfig, B as Menu, C as ExternalEventSource, D as hasEventing, E as hasCommerceEvents, F as CustomAttributeGridColumns, G as ViewMassAction, H as Notifications, I as GridColumn, J as hasBackendUiV2Components, K as WorkerMassAction, L as GridColumns, M as CreditMemoViewButton, N as CustomAttributeFilter, O as hasExternalEvents, P as CustomAttributeGridColumn, R as InvoiceViewButton, S as ExternalEvent, T as ExternalEventsConfig, U as OrderViewButton, V as NativeUiReplacedPage, W as RmaViewButton, _ as CommerceEventsConfig, a as WebhookRule, b as EventingSchema, c as WebhooksSchema, d as hasCustomInstallation, f as hasCustomInstallationSteps, g as CommerceEventSourceSchema, h as CommerceEventSource, i as WebhookHeader, j as AdminUiConfiguration, l as hasWebhooks, m as CommerceEvent, n as WebhookEntry, o as WebhooksConfig, p as AppEvent, q as hasAdminUi, r as WebhookField, s as WebhooksConfiguration, t as WebhookDefinition, v as EventProvider, w as ExternalEventSourceSchema, x as EventsConfig, y as EventingConfiguration, z as MassAction } from "../webhooks-Deujdgcm.mjs";
23
24
  import "@adobe/aio-commerce-lib-config";
24
25
  import * as v from "valibot";
25
- import { Get } from "type-fest";
26
26
  /**
27
27
  * Check whether a commerce app config path uses a supported TypeScript format.
28
28
  * @param configFilePath The path to the config file.
@@ -54,6 +54,8 @@ export declare function resolveCommerceAppConfig(cwd?: string): Promise<string |
54
54
  * @throws {Error} If no config file is found or if the file doesn't export a default export
55
55
  */
56
56
  export declare function readCommerceAppConfig(cwd?: string): Promise<unknown>;
57
+ /** Whether the app config module exports any named symbols alongside its default export. */
58
+ export declare function hasNamedCommerceAppConfigExports(cwd?: string): Promise<boolean>;
57
59
  /**
58
60
  * Read the commerce app config file and parse its contents into its schema.
59
61
  *
@@ -75,6 +77,23 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
75
77
  label: string;
76
78
  }[] | undefined;
77
79
  creditMemo?: {
80
+ customAttributeGridColumns?: {
81
+ columns: {
82
+ aclProtected?: boolean | undefined;
83
+ align: "left" | "right" | "center";
84
+ attribute_code: string;
85
+ filter?: {
86
+ type: "boolean";
87
+ } | {
88
+ conditions: ("eq" | "neq" | "contains")[];
89
+ type: "text";
90
+ } | undefined;
91
+ id: string;
92
+ label: string;
93
+ }[];
94
+ description?: string | undefined;
95
+ label?: string | undefined;
96
+ } | undefined;
78
97
  gridColumns?: {
79
98
  columns: {
80
99
  aclProtected?: boolean | undefined;
@@ -103,9 +122,10 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
103
122
  success?: string | undefined;
104
123
  } | undefined;
105
124
  path: string;
106
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
107
125
  sortOrder?: number | undefined;
108
126
  type: "view";
127
+ allow?: ("autoplay" | "microphone")[] | undefined;
128
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
109
129
  } | {
110
130
  aclProtected?: boolean | undefined;
111
131
  confirm?: {
@@ -141,8 +161,9 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
141
161
  } | undefined;
142
162
  massActions?: ({
143
163
  path: string;
144
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
145
164
  type: "view";
165
+ allow?: ("autoplay" | "microphone")[] | undefined;
166
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
146
167
  aclProtected?: boolean | undefined;
147
168
  confirm?: {
148
169
  message?: string | undefined;
@@ -206,9 +227,10 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
206
227
  success?: string | undefined;
207
228
  } | undefined;
208
229
  path: string;
209
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
210
230
  sortOrder?: number | undefined;
211
231
  type: "view";
232
+ allow?: ("autoplay" | "microphone")[] | undefined;
233
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
212
234
  } | {
213
235
  aclProtected?: boolean | undefined;
214
236
  confirm?: {
@@ -236,14 +258,16 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
236
258
  label: string;
237
259
  pageTitle?: string | undefined;
238
260
  parentMenu?: "sales" | "catalog" | "customers" | "marketing" | "content" | "reports" | "stores" | "system" | undefined;
261
+ allow?: ("autoplay" | "microphone")[] | undefined;
239
262
  sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
240
263
  } | undefined;
241
264
  nativeUi?: {
242
265
  replacedPages: {
243
266
  path: string;
244
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
245
267
  target: "order.create" | "return.create";
246
268
  title: string;
269
+ allow?: ("autoplay" | "microphone")[] | undefined;
270
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
247
271
  }[];
248
272
  } | undefined;
249
273
  newsletter?: {
@@ -275,8 +299,9 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
275
299
  } | undefined;
276
300
  massActions?: ({
277
301
  path: string;
278
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
279
302
  type: "view";
303
+ allow?: ("autoplay" | "microphone")[] | undefined;
304
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
280
305
  aclProtected?: boolean | undefined;
281
306
  confirm?: {
282
307
  message?: string | undefined;
@@ -325,9 +350,10 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
325
350
  success?: string | undefined;
326
351
  } | undefined;
327
352
  path: string;
328
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
329
353
  sortOrder?: number | undefined;
330
354
  type: "view";
355
+ allow?: ("autoplay" | "microphone")[] | undefined;
356
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
331
357
  } | {
332
358
  aclProtected?: boolean | undefined;
333
359
  confirm?: {
@@ -363,8 +389,9 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
363
389
  } | undefined;
364
390
  massActions?: ({
365
391
  path: string;
366
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
367
392
  type: "view";
393
+ allow?: ("autoplay" | "microphone")[] | undefined;
394
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
368
395
  aclProtected?: boolean | undefined;
369
396
  confirm?: {
370
397
  message?: string | undefined;
@@ -416,9 +443,10 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
416
443
  success?: string | undefined;
417
444
  } | undefined;
418
445
  path: string;
419
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
420
446
  sortOrder?: number | undefined;
421
447
  type: "view";
448
+ allow?: ("autoplay" | "microphone")[] | undefined;
449
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
422
450
  } | {
423
451
  aclProtected?: boolean | undefined;
424
452
  confirm?: {
@@ -467,6 +495,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
467
495
  env?: ("paas" | "saas")[] | undefined;
468
496
  label?: string | undefined;
469
497
  name: string;
498
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
470
499
  } | {
471
500
  default: string[];
472
501
  selectionMode: "multiple";
@@ -479,6 +508,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
479
508
  env?: ("paas" | "saas")[] | undefined;
480
509
  label?: string | undefined;
481
510
  name: string;
511
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
482
512
  } | {
483
513
  default: (resolvedOptions: {
484
514
  label: string;
@@ -497,6 +527,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
497
527
  env?: ("paas" | "saas")[] | undefined;
498
528
  label?: string | undefined;
499
529
  name: string;
530
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
500
531
  } | {
501
532
  default?: ((resolvedOptions: {
502
533
  label: string;
@@ -515,6 +546,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
515
546
  env?: ("paas" | "saas")[] | undefined;
516
547
  label?: string | undefined;
517
548
  name: string;
549
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
518
550
  } | {
519
551
  default: string;
520
552
  type: "text";
@@ -522,6 +554,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
522
554
  env?: ("paas" | "saas")[] | undefined;
523
555
  label?: string | undefined;
524
556
  name: string;
557
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
525
558
  } | {
526
559
  default: "";
527
560
  type: "password";
@@ -529,6 +562,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
529
562
  env?: ("paas" | "saas")[] | undefined;
530
563
  label?: string | undefined;
531
564
  name: string;
565
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
532
566
  } | {
533
567
  default: string;
534
568
  type: "email";
@@ -536,6 +570,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
536
570
  env?: ("paas" | "saas")[] | undefined;
537
571
  label?: string | undefined;
538
572
  name: string;
573
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
539
574
  } | {
540
575
  default: string;
541
576
  type: "url";
@@ -543,6 +578,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
543
578
  env?: ("paas" | "saas")[] | undefined;
544
579
  label?: string | undefined;
545
580
  name: string;
581
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
546
582
  } | {
547
583
  default: string;
548
584
  type: "tel";
@@ -550,6 +586,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
550
586
  env?: ("paas" | "saas")[] | undefined;
551
587
  label?: string | undefined;
552
588
  name: string;
589
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
553
590
  } | {
554
591
  default: boolean;
555
592
  type: "boolean";
@@ -557,6 +594,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
557
594
  env?: ("paas" | "saas")[] | undefined;
558
595
  label?: string | undefined;
559
596
  name: string;
597
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
560
598
  })[];
561
599
  } | undefined;
562
600
  eventing?: {
@@ -637,7 +675,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
637
675
  value: string;
638
676
  }[] | undefined;
639
677
  hook_name: string;
640
- method: "GET" | "POST" | "PUT" | "DELETE";
678
+ method: "POST" | "PUT" | "DELETE" | "GET";
641
679
  priority?: number | undefined;
642
680
  required?: boolean | undefined;
643
681
  rules?: {
@@ -670,7 +708,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
670
708
  value: string;
671
709
  }[] | undefined;
672
710
  hook_name: string;
673
- method: "GET" | "POST" | "PUT" | "DELETE";
711
+ method: "POST" | "PUT" | "DELETE" | "GET";
674
712
  priority?: number | undefined;
675
713
  required?: boolean | undefined;
676
714
  rules?: {
@@ -783,6 +821,104 @@ export declare function hasBusinessConfig<T extends AnyCommerceAppConfig>(config
783
821
  * @param config - The configuration to check.
784
822
  */
785
823
  export declare function hasBusinessConfigSchema<T extends AnyCommerceAppConfig>(config: T): config is T & AppConfigWithBusinessConfigSchema<T>;
824
+ /**
825
+ * The starting value and the label of the config domains that `init` offers, in the order it
826
+ * offers them.
827
+ */
828
+ export declare const COMMERCE_APP_CONFIG_DOMAIN_DEFAULTS: {
829
+ "businessConfig.schema": {
830
+ label: string;
831
+ value: ({
832
+ default: string[];
833
+ label: string;
834
+ name: string;
835
+ options: {
836
+ label: string;
837
+ value: string;
838
+ }[];
839
+ selectionMode: "multiple";
840
+ type: "list";
841
+ } | {
842
+ default: string;
843
+ label: string;
844
+ name: string;
845
+ type: "text";
846
+ options?: undefined;
847
+ selectionMode?: undefined;
848
+ })[];
849
+ };
850
+ "eventing.commerce": {
851
+ label: string;
852
+ value: {
853
+ events: {
854
+ description: string;
855
+ fields: {
856
+ name: string;
857
+ }[];
858
+ label: string;
859
+ name: string;
860
+ runtimeActions: string[];
861
+ }[];
862
+ provider: {
863
+ description: string;
864
+ label: string;
865
+ };
866
+ }[];
867
+ };
868
+ webhooks: {
869
+ label: string;
870
+ value: ({
871
+ category: "modification";
872
+ description: string;
873
+ label: string;
874
+ runtimeAction: string;
875
+ webhook: {
876
+ batch_name: string;
877
+ hook_name: string;
878
+ method: "POST";
879
+ webhook_method: string;
880
+ webhook_type: "after";
881
+ url?: undefined;
882
+ };
883
+ } | {
884
+ category: "modification";
885
+ description: string;
886
+ label: string;
887
+ webhook: {
888
+ batch_name: string;
889
+ hook_name: string;
890
+ method: "POST";
891
+ url: string;
892
+ webhook_method: string;
893
+ webhook_type: "after";
894
+ };
895
+ runtimeAction?: undefined;
896
+ })[];
897
+ };
898
+ "eventing.external": {
899
+ label: string;
900
+ value: {
901
+ events: {
902
+ description: string;
903
+ label: string;
904
+ name: string;
905
+ runtimeActions: string[];
906
+ }[];
907
+ provider: {
908
+ description: string;
909
+ label: string;
910
+ };
911
+ }[];
912
+ };
913
+ "installation.customInstallationSteps": {
914
+ label: string;
915
+ value: {
916
+ description: string;
917
+ name: string;
918
+ script: string;
919
+ }[];
920
+ };
921
+ };
786
922
  /** The schema for the metadata of the application. */
787
923
  declare const MetadataSchema: v.ObjectSchema<{
788
924
  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">]>;
@@ -802,4 +938,4 @@ type AppConfigWithMetadata<T extends AnyCommerceAppConfig> = T & {
802
938
  * @param config - The configuration to check.
803
939
  */
804
940
  export declare function hasMetadata<T extends AnyCommerceAppConfig>(config: T): config is T & AppConfigWithMetadata<T>;
805
- export { type AdminUiConfig, type AdminUiConfiguration, type AppConfigWithBusinessConfig, type AppConfigWithBusinessConfigSchema, type AppEvent, type ApplicationMetadata, type CommerceAppConfig, type CommerceAppConfigDomain, CommerceAppConfigSchemas, type CommerceEvent, type CommerceEventSource, type CommerceEventSourceSchema, type CommerceEventsConfig, type CreditMemoViewButton, type EventProvider, type EventingConfiguration, type EventingSchema, type EventsConfig, type ExternalEvent, type ExternalEventSource, type ExternalEventSourceSchema, type ExternalEventsConfig, type GridColumn, type GridColumns, type InvoiceViewButton, type MassAction, type Menu, type NativeUiReplacedPage, type Notifications, type OrderViewButton, type RmaViewButton, type ViewMassAction, type WebhookDefinition, type WebhookEntry, type WebhookField, type WebhookHeader, type WebhookRule, type WebhooksConfig, type WebhooksConfiguration, type WebhooksSchema, type WorkerMassAction, defineConfig, getConfigDomains, hasAdminUi, hasBackendUiV2Components, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasWebhooks };
941
+ export { type AdminUiConfig, type AdminUiConfiguration, type AppConfigWithBusinessConfig, type AppConfigWithBusinessConfigSchema, type AppEvent, type ApplicationMetadata, COMMERCE_APP_CONFIG_DOMAINS, type CommerceAppConfig, type CommerceAppConfigDomain, CommerceAppConfigSchemas, type CommerceEvent, type CommerceEventSource, type CommerceEventSourceSchema, type CommerceEventsConfig, type CreditMemoViewButton, type CustomAttributeFilter, type CustomAttributeGridColumn, type CustomAttributeGridColumns, type EventProvider, type EventingConfiguration, type EventingSchema, type EventsConfig, type ExternalEvent, type ExternalEventSource, type ExternalEventSourceSchema, type ExternalEventsConfig, type GridColumn, type GridColumns, type InvoiceViewButton, type MassAction, type Menu, type NativeUiReplacedPage, type Notifications, type OrderViewButton, type RmaViewButton, type ViewMassAction, type WebhookDefinition, type WebhookEntry, type WebhookField, type WebhookHeader, type WebhookRule, type WebhooksConfig, type WebhooksConfiguration, type WebhooksSchema, type WorkerMassAction, defineConfig, getConfigDomains, hasAdminUi, hasBackendUiV2Components, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasWebhooks };
@@ -12,9 +12,10 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { a as resolveCommerceAppConfig, i as readCommerceAppConfig, n as isTypeScriptConfig, r as parseCommerceAppConfig } from "../index.node-CURztkP5.mjs";
16
15
  import { t as defineConfig } from "../define-BTmPnTba.mjs";
17
- import { a as hasCustomInstallationSteps, c as hasEventing, h as hasBackendUiV2Components, i as hasCustomInstallation, l as hasExternalEvents, m as hasAdminUi, n as hasWebhooks, s as hasCommerceEvents } from "../webhooks-HBe_DEKA.mjs";
18
- import { a as CommerceAppConfigSchemas, c as hasMetadata, l as hasBusinessConfig, n as validateCommerceAppConfigDomain, o as getConfigDomains, s as hasConfigDomain, t as validateCommerceAppConfig, u as hasBusinessConfigSchema } from "../validate-xS9Dc-4m.mjs";
16
+ import { a as resolveCommerceAppConfig, i as readCommerceAppConfig, n as isTypeScriptConfig, r as parseCommerceAppConfig, t as hasNamedCommerceAppConfigExports } from "../parser-DdhiGXVf.mjs";
17
+ import { a as hasCustomInstallationSteps, c as hasEventing, g as hasBackendUiV2Components, i as hasCustomInstallation, l as hasExternalEvents, m as hasAdminUi, n as hasWebhooks, s as hasCommerceEvents } from "../webhooks-Ba-OdU8e.mjs";
18
+ import { a as COMMERCE_APP_CONFIG_DOMAINS, c as hasConfigDomain, d as hasBusinessConfig, f as hasBusinessConfigSchema, n as validateCommerceAppConfigDomain, o as CommerceAppConfigSchemas, s as getConfigDomains, t as validateCommerceAppConfig, u as hasMetadata } from "../validate-CYWj7Nzp.mjs";
19
+ import { t as COMMERCE_APP_CONFIG_DOMAIN_DEFAULTS } from "../index.node-DipCrOq_.mjs";
19
20
 
20
- export { CommerceAppConfigSchemas, defineConfig, getConfigDomains, hasAdminUi, hasBackendUiV2Components, hasBusinessConfig, hasBusinessConfigSchema, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasMetadata, hasWebhooks, isTypeScriptConfig, parseCommerceAppConfig, readCommerceAppConfig, resolveCommerceAppConfig, validateCommerceAppConfig, validateCommerceAppConfigDomain };
21
+ export { COMMERCE_APP_CONFIG_DOMAINS, COMMERCE_APP_CONFIG_DOMAIN_DEFAULTS, CommerceAppConfigSchemas, defineConfig, getConfigDomains, hasAdminUi, hasBackendUiV2Components, hasBusinessConfig, hasBusinessConfigSchema, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasMetadata, hasNamedCommerceAppConfigExports, hasWebhooks, isTypeScriptConfig, parseCommerceAppConfig, readCommerceAppConfig, resolveCommerceAppConfig, validateCommerceAppConfig, validateCommerceAppConfigDomain };
@@ -12,7 +12,7 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { n as CommerceAppConfig } from "./app-B3bAEor-.mjs";
15
+ import { n as CommerceAppConfig } from "./app-Cb6-5mKk.mjs";
16
16
  /**
17
17
  * Helper to type-safely define the app config.
18
18
  * @param config - The app config to define.