@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-eBMdGAq6.cjs";
16
+ import { t as defineConfig } from "../define-Dk0uzfO9.cjs";
17
17
  export { defineConfig };
@@ -13,11 +13,14 @@
13
13
  */
14
14
 
15
15
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
16
- const require_index_node = require("../index.node-9bfp79rs.cjs");
17
16
  const require_define = require("../define-BKJjE97w.cjs");
18
- const require_webhooks = require("../webhooks-ZPh2gVb3.cjs");
19
- const require_validate = require("../validate-BC3rnRLc.cjs");
17
+ const require_parser = require("../parser-XcHKOYKN.cjs");
18
+ const require_webhooks = require("../webhooks-VZTBeI8L.cjs");
19
+ const require_validate = require("../validate-BumkVjJy.cjs");
20
+ const require_index_node = require("../index.node-QXhLROom.cjs");
20
21
 
22
+ exports.COMMERCE_APP_CONFIG_DOMAINS = require_validate.COMMERCE_APP_CONFIG_DOMAINS;
23
+ exports.COMMERCE_APP_CONFIG_DOMAIN_DEFAULTS = require_index_node.COMMERCE_APP_CONFIG_DOMAIN_DEFAULTS;
21
24
  exports.CommerceAppConfigSchemas = require_validate.CommerceAppConfigSchemas;
22
25
  exports.defineConfig = require_define.defineConfig;
23
26
  exports.getConfigDomains = require_validate.getConfigDomains;
@@ -32,10 +35,11 @@ exports.hasCustomInstallationSteps = require_webhooks.hasCustomInstallationSteps
32
35
  exports.hasEventing = require_webhooks.hasEventing;
33
36
  exports.hasExternalEvents = require_webhooks.hasExternalEvents;
34
37
  exports.hasMetadata = require_validate.hasMetadata;
38
+ exports.hasNamedCommerceAppConfigExports = require_parser.hasNamedCommerceAppConfigExports;
35
39
  exports.hasWebhooks = require_webhooks.hasWebhooks;
36
- exports.isTypeScriptConfig = require_index_node.isTypeScriptConfig;
37
- exports.parseCommerceAppConfig = require_index_node.parseCommerceAppConfig;
38
- exports.readCommerceAppConfig = require_index_node.readCommerceAppConfig;
39
- exports.resolveCommerceAppConfig = require_index_node.resolveCommerceAppConfig;
40
+ exports.isTypeScriptConfig = require_parser.isTypeScriptConfig;
41
+ exports.parseCommerceAppConfig = require_parser.parseCommerceAppConfig;
42
+ exports.readCommerceAppConfig = require_parser.readCommerceAppConfig;
43
+ exports.resolveCommerceAppConfig = require_parser.resolveCommerceAppConfig;
40
44
  exports.validateCommerceAppConfig = require_validate.validateCommerceAppConfig;
41
45
  exports.validateCommerceAppConfigDomain = require_validate.validateCommerceAppConfigDomain;
@@ -17,11 +17,11 @@
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-eBMdGAq6.cjs";
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-.cjs";
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-DNLuuv9_.cjs";
23
20
  import * as v from "valibot";
21
+ import { t as defineConfig } from "../define-Dk0uzfO9.cjs";
24
22
  import { Get } from "type-fest";
23
+ 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.cjs";
24
+ 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-BBuoVWq_.cjs";
25
25
  /**
26
26
  * Check whether a commerce app config path uses a supported TypeScript format.
27
27
  * @param configFilePath The path to the config file.
@@ -53,6 +53,8 @@ export declare function resolveCommerceAppConfig(cwd?: string): Promise<string |
53
53
  * @throws {Error} If no config file is found or if the file doesn't export a default export
54
54
  */
55
55
  export declare function readCommerceAppConfig(cwd?: string): Promise<unknown>;
56
+ /** Whether the app config module exports any named symbols alongside its default export. */
57
+ export declare function hasNamedCommerceAppConfigExports(cwd?: string): Promise<boolean>;
56
58
  /**
57
59
  * Read the commerce app config file and parse its contents into its schema.
58
60
  *
@@ -74,6 +76,23 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
74
76
  label: string;
75
77
  }[] | undefined;
76
78
  creditMemo?: {
79
+ customAttributeGridColumns?: {
80
+ columns: {
81
+ aclProtected?: boolean | undefined;
82
+ align: "left" | "right" | "center";
83
+ attribute_code: string;
84
+ filter?: {
85
+ type: "boolean";
86
+ } | {
87
+ conditions: ("eq" | "neq" | "contains")[];
88
+ type: "text";
89
+ } | undefined;
90
+ id: string;
91
+ label: string;
92
+ }[];
93
+ description?: string | undefined;
94
+ label?: string | undefined;
95
+ } | undefined;
77
96
  gridColumns?: {
78
97
  columns: {
79
98
  aclProtected?: boolean | undefined;
@@ -102,9 +121,10 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
102
121
  success?: string | undefined;
103
122
  } | undefined;
104
123
  path: string;
105
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
106
124
  sortOrder?: number | undefined;
107
125
  type: "view";
126
+ allow?: ("autoplay" | "microphone")[] | undefined;
127
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
108
128
  } | {
109
129
  aclProtected?: boolean | undefined;
110
130
  confirm?: {
@@ -140,8 +160,9 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
140
160
  } | undefined;
141
161
  massActions?: ({
142
162
  path: string;
143
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
144
163
  type: "view";
164
+ allow?: ("autoplay" | "microphone")[] | undefined;
165
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
145
166
  aclProtected?: boolean | undefined;
146
167
  confirm?: {
147
168
  message?: string | undefined;
@@ -205,9 +226,10 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
205
226
  success?: string | undefined;
206
227
  } | undefined;
207
228
  path: string;
208
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
209
229
  sortOrder?: number | undefined;
210
230
  type: "view";
231
+ allow?: ("autoplay" | "microphone")[] | undefined;
232
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
211
233
  } | {
212
234
  aclProtected?: boolean | undefined;
213
235
  confirm?: {
@@ -235,14 +257,16 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
235
257
  label: string;
236
258
  pageTitle?: string | undefined;
237
259
  parentMenu?: "sales" | "catalog" | "customers" | "marketing" | "content" | "reports" | "stores" | "system" | undefined;
260
+ allow?: ("autoplay" | "microphone")[] | undefined;
238
261
  sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
239
262
  } | undefined;
240
263
  nativeUi?: {
241
264
  replacedPages: {
242
265
  path: string;
243
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
244
266
  target: "order.create" | "return.create";
245
267
  title: string;
268
+ allow?: ("autoplay" | "microphone")[] | undefined;
269
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
246
270
  }[];
247
271
  } | undefined;
248
272
  newsletter?: {
@@ -274,8 +298,9 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
274
298
  } | undefined;
275
299
  massActions?: ({
276
300
  path: string;
277
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
278
301
  type: "view";
302
+ allow?: ("autoplay" | "microphone")[] | undefined;
303
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
279
304
  aclProtected?: boolean | undefined;
280
305
  confirm?: {
281
306
  message?: string | undefined;
@@ -324,9 +349,10 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
324
349
  success?: string | undefined;
325
350
  } | undefined;
326
351
  path: string;
327
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
328
352
  sortOrder?: number | undefined;
329
353
  type: "view";
354
+ allow?: ("autoplay" | "microphone")[] | undefined;
355
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
330
356
  } | {
331
357
  aclProtected?: boolean | undefined;
332
358
  confirm?: {
@@ -362,8 +388,9 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
362
388
  } | undefined;
363
389
  massActions?: ({
364
390
  path: string;
365
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
366
391
  type: "view";
392
+ allow?: ("autoplay" | "microphone")[] | undefined;
393
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
367
394
  aclProtected?: boolean | undefined;
368
395
  confirm?: {
369
396
  message?: string | undefined;
@@ -415,9 +442,10 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
415
442
  success?: string | undefined;
416
443
  } | undefined;
417
444
  path: string;
418
- sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
419
445
  sortOrder?: number | undefined;
420
446
  type: "view";
447
+ allow?: ("autoplay" | "microphone")[] | undefined;
448
+ sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
421
449
  } | {
422
450
  aclProtected?: boolean | undefined;
423
451
  confirm?: {
@@ -466,6 +494,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
466
494
  env?: ("paas" | "saas")[] | undefined;
467
495
  label?: string | undefined;
468
496
  name: string;
497
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
469
498
  } | {
470
499
  default: string[];
471
500
  selectionMode: "multiple";
@@ -478,6 +507,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
478
507
  env?: ("paas" | "saas")[] | undefined;
479
508
  label?: string | undefined;
480
509
  name: string;
510
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
481
511
  } | {
482
512
  default: (resolvedOptions: {
483
513
  label: string;
@@ -496,6 +526,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
496
526
  env?: ("paas" | "saas")[] | undefined;
497
527
  label?: string | undefined;
498
528
  name: string;
529
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
499
530
  } | {
500
531
  default?: ((resolvedOptions: {
501
532
  label: string;
@@ -514,6 +545,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
514
545
  env?: ("paas" | "saas")[] | undefined;
515
546
  label?: string | undefined;
516
547
  name: string;
548
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
517
549
  } | {
518
550
  default: string;
519
551
  type: "text";
@@ -521,6 +553,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
521
553
  env?: ("paas" | "saas")[] | undefined;
522
554
  label?: string | undefined;
523
555
  name: string;
556
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
524
557
  } | {
525
558
  default: "";
526
559
  type: "password";
@@ -528,6 +561,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
528
561
  env?: ("paas" | "saas")[] | undefined;
529
562
  label?: string | undefined;
530
563
  name: string;
564
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
531
565
  } | {
532
566
  default: string;
533
567
  type: "email";
@@ -535,6 +569,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
535
569
  env?: ("paas" | "saas")[] | undefined;
536
570
  label?: string | undefined;
537
571
  name: string;
572
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
538
573
  } | {
539
574
  default: string;
540
575
  type: "url";
@@ -542,6 +577,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
542
577
  env?: ("paas" | "saas")[] | undefined;
543
578
  label?: string | undefined;
544
579
  name: string;
580
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
545
581
  } | {
546
582
  default: string;
547
583
  type: "tel";
@@ -549,6 +585,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
549
585
  env?: ("paas" | "saas")[] | undefined;
550
586
  label?: string | undefined;
551
587
  name: string;
588
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
552
589
  } | {
553
590
  default: boolean;
554
591
  type: "boolean";
@@ -556,6 +593,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
556
593
  env?: ("paas" | "saas")[] | undefined;
557
594
  label?: string | undefined;
558
595
  name: string;
596
+ requiredFor?: ("save" | "installation" | "upgrade")[] | undefined;
559
597
  })[];
560
598
  } | undefined;
561
599
  eventing?: {
@@ -636,7 +674,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
636
674
  value: string;
637
675
  }[] | undefined;
638
676
  hook_name: string;
639
- method: "GET" | "POST" | "PUT" | "DELETE";
677
+ method: "POST" | "PUT" | "DELETE" | "GET";
640
678
  priority?: number | undefined;
641
679
  required?: boolean | undefined;
642
680
  rules?: {
@@ -669,7 +707,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
669
707
  value: string;
670
708
  }[] | undefined;
671
709
  hook_name: string;
672
- method: "GET" | "POST" | "PUT" | "DELETE";
710
+ method: "POST" | "PUT" | "DELETE" | "GET";
673
711
  priority?: number | undefined;
674
712
  required?: boolean | undefined;
675
713
  rules?: {
@@ -782,6 +820,104 @@ export declare function hasBusinessConfig<T extends AnyCommerceAppConfig>(config
782
820
  * @param config - The configuration to check.
783
821
  */
784
822
  export declare function hasBusinessConfigSchema<T extends AnyCommerceAppConfig>(config: T): config is T & AppConfigWithBusinessConfigSchema<T>;
823
+ /**
824
+ * The starting value and the label of the config domains that `init` offers, in the order it
825
+ * offers them.
826
+ */
827
+ export declare const COMMERCE_APP_CONFIG_DOMAIN_DEFAULTS: {
828
+ "businessConfig.schema": {
829
+ label: string;
830
+ value: ({
831
+ default: string[];
832
+ label: string;
833
+ name: string;
834
+ options: {
835
+ label: string;
836
+ value: string;
837
+ }[];
838
+ selectionMode: "multiple";
839
+ type: "list";
840
+ } | {
841
+ default: string;
842
+ label: string;
843
+ name: string;
844
+ type: "text";
845
+ options?: undefined;
846
+ selectionMode?: undefined;
847
+ })[];
848
+ };
849
+ "eventing.commerce": {
850
+ label: string;
851
+ value: {
852
+ events: {
853
+ description: string;
854
+ fields: {
855
+ name: string;
856
+ }[];
857
+ label: string;
858
+ name: string;
859
+ runtimeActions: string[];
860
+ }[];
861
+ provider: {
862
+ description: string;
863
+ label: string;
864
+ };
865
+ }[];
866
+ };
867
+ webhooks: {
868
+ label: string;
869
+ value: ({
870
+ category: "modification";
871
+ description: string;
872
+ label: string;
873
+ runtimeAction: string;
874
+ webhook: {
875
+ batch_name: string;
876
+ hook_name: string;
877
+ method: "POST";
878
+ webhook_method: string;
879
+ webhook_type: "after";
880
+ url?: undefined;
881
+ };
882
+ } | {
883
+ category: "modification";
884
+ description: string;
885
+ label: string;
886
+ webhook: {
887
+ batch_name: string;
888
+ hook_name: string;
889
+ method: "POST";
890
+ url: string;
891
+ webhook_method: string;
892
+ webhook_type: "after";
893
+ };
894
+ runtimeAction?: undefined;
895
+ })[];
896
+ };
897
+ "eventing.external": {
898
+ label: string;
899
+ value: {
900
+ events: {
901
+ description: string;
902
+ label: string;
903
+ name: string;
904
+ runtimeActions: string[];
905
+ }[];
906
+ provider: {
907
+ description: string;
908
+ label: string;
909
+ };
910
+ }[];
911
+ };
912
+ "installation.customInstallationSteps": {
913
+ label: string;
914
+ value: {
915
+ description: string;
916
+ name: string;
917
+ script: string;
918
+ }[];
919
+ };
920
+ };
785
921
  /** The schema for the metadata of the application. */
786
922
  declare const MetadataSchema: v.ObjectSchema<{
787
923
  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">]>;
@@ -801,4 +937,4 @@ type AppConfigWithMetadata<T extends AnyCommerceAppConfig> = T & {
801
937
  * @param config - The configuration to check.
802
938
  */
803
939
  export declare function hasMetadata<T extends AnyCommerceAppConfig>(config: T): config is T & AppConfigWithMetadata<T>;
804
- 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 };
940
+ 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,7 +12,7 @@
12
12
  * governing permissions and limitations under the License.
13
13
  */
14
14
 
15
- import { n as CommerceAppConfig } from "./app-B3bAEor-.cjs";
15
+ import { n as CommerceAppConfig } from "./app-Cb6-5mKk.cjs";
16
16
  /**
17
17
  * Helper to type-safely define the app config.
18
18
  * @param config - The app config to define.