@adobe/aio-commerce-lib-app 2.1.0 → 2.2.0-alpha-20261110171457
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/cjs/actions/app-config/index.cjs +5 -5
- package/dist/cjs/actions/app-config/index.d.cts +2 -2
- package/dist/cjs/actions/association/index.cjs +2 -2
- package/dist/cjs/actions/config/index.cjs +2 -2
- package/dist/cjs/actions/config/index.d.cts +2 -2
- package/dist/cjs/actions/installation/index.cjs +61 -21
- package/dist/cjs/actions/installation/index.d.cts +4 -3
- package/dist/cjs/actions/scope-tree/index.cjs +2 -2
- package/dist/cjs/{app-Ch19CR6g.d.cts → app-DREvtzyX.d.cts} +330 -4
- package/dist/cjs/commands/index.cjs +27 -12
- package/dist/cjs/config/index.browser.d.cts +2 -1
- package/dist/cjs/config/index.node.cjs +3 -3
- package/dist/cjs/config/index.node.d.cts +96 -8
- package/dist/{es/define-C95h_wa0.d.mts → cjs/define-DW6Vzfku.d.cts} +1 -1
- package/dist/cjs/{index-D-Qn-irL.d.cts → index-B9MUZY-U.d.cts} +316 -316
- package/dist/cjs/{index-DWEigxhy.d.cts → index-vAue-u_y.d.cts} +1 -4
- package/dist/cjs/index.d.cts +8 -8
- package/dist/cjs/{index.node-CxdwPrOg.cjs → index.node-CcH8PCzC.cjs} +1 -1
- package/dist/cjs/management/index.cjs +1 -1
- package/dist/cjs/management/index.d.cts +6 -1
- package/dist/cjs/{management-C_JQpgVB.cjs → management-DeRZYcjS.cjs} +17 -5
- package/dist/cjs/{openapi-DFoMdZzI.cjs → openapi-CFqaMxUV.cjs} +426 -45
- package/dist/cjs/types-DslZGym8.d.cts +23 -0
- package/dist/cjs/{validate-B0rOILvG.cjs → validate-DAw7Pxp3.cjs} +1 -1
- package/dist/cjs/{router-DpB8wpR2.cjs → version-BACmFGD2.cjs} +77 -19
- package/dist/{es/webhooks-C9vMZZDZ.d.mts → cjs/webhooks-BMSr1l7c.d.cts} +268 -12
- package/dist/cjs/{webhooks-TvDm57xt.cjs → webhooks-EVlO8rxi.cjs} +53 -12
- package/dist/es/actions/app-config/index.d.mts +2 -2
- package/dist/es/actions/app-config/index.mjs +5 -5
- package/dist/es/actions/association/index.mjs +2 -2
- package/dist/es/actions/config/index.d.mts +1 -1
- package/dist/es/actions/config/index.mjs +2 -2
- package/dist/es/actions/installation/index.d.mts +4 -3
- package/dist/es/actions/installation/index.mjs +62 -22
- package/dist/es/actions/scope-tree/index.mjs +2 -2
- package/dist/es/{app-Ch19CR6g.d.mts → app-DREvtzyX.d.mts} +330 -4
- package/dist/es/commands/index.mjs +27 -12
- package/dist/es/config/index.browser.d.mts +2 -1
- package/dist/es/config/index.node.d.mts +95 -6
- package/dist/es/config/index.node.mjs +3 -3
- package/dist/{cjs/define-C12IwNNN.d.cts → es/define-B6cjhz1J.d.mts} +1 -1
- package/dist/es/{index-CgsSXApi.d.mts → index-DUJtT78x.d.mts} +2 -2
- package/dist/es/{index-VgCNSlLP.d.mts → index-zgc3l2nj.d.mts} +2 -2
- package/dist/es/index.d.mts +8 -8
- package/dist/es/{index.node-C8EXBW94.mjs → index.node-ClvSfs5w.mjs} +1 -1
- package/dist/es/management/index.d.mts +6 -1
- package/dist/es/management/index.mjs +1 -1
- package/dist/es/{management-DKDR7-fX.mjs → management-CG_4z2Ck.mjs} +17 -5
- package/dist/es/{openapi-E_1RFhAr.mjs → openapi-BUIws500.mjs} +426 -45
- package/dist/es/types-DslZGym8.d.mts +23 -0
- package/dist/es/{validate-CiJIjyOr.mjs → validate-BszbuhiE.mjs} +1 -1
- package/dist/es/{router-C23GIyGQ.mjs → version-CabzC7R9.mjs} +71 -20
- package/dist/{cjs/webhooks-Buu1d7AB.d.cts → es/webhooks-BLgKadnn.d.mts} +268 -12
- package/dist/es/{webhooks-CfrYeMy_.mjs → webhooks-DRPXVMMo.mjs} +48 -13
- package/package.json +4 -4
|
@@ -12,12 +12,16 @@
|
|
|
12
12
|
* governing permissions and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
/** biome-ignore-all lint/performance/noBarrelFile: This is the public API for the config entrypoint */
|
|
16
|
+
/**
|
|
17
|
+
* This module exports shared config utilities for the AIO Commerce SDK.
|
|
18
|
+
* @packageDocumentation
|
|
19
|
+
*/
|
|
20
|
+
import { t as defineConfig } from "../define-DW6Vzfku.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-DREvtzyX.cjs";
|
|
22
|
+
import { A as AdminUiConfig, B as OrderViewButton, C as ExternalEventSource, D as hasEventing, E as hasCommerceEvents, F as InvoiceViewButton, H as WorkerMassAction, 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 hasAdminUi, V as ViewMassAction, W as hasBackendUiV2Components, _ 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-BMSr1l7c.cjs";
|
|
19
23
|
import * as v from "valibot";
|
|
20
|
-
import "
|
|
24
|
+
import { Get } from "type-fest";
|
|
21
25
|
/**
|
|
22
26
|
* Check whether a commerce app config path uses a supported TypeScript format.
|
|
23
27
|
* @param configFilePath The path to the config file.
|
|
@@ -82,6 +86,44 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
|
|
|
82
86
|
label: string;
|
|
83
87
|
runtimeAction: string;
|
|
84
88
|
} | undefined;
|
|
89
|
+
viewButtons?: ({
|
|
90
|
+
title?: string | undefined;
|
|
91
|
+
aclProtected?: boolean | undefined;
|
|
92
|
+
confirm?: {
|
|
93
|
+
message?: string | undefined;
|
|
94
|
+
title?: string | undefined;
|
|
95
|
+
} | undefined;
|
|
96
|
+
description?: string | undefined;
|
|
97
|
+
id: string;
|
|
98
|
+
label: string;
|
|
99
|
+
level?: 0 | 1 | -1 | undefined;
|
|
100
|
+
notifications?: {
|
|
101
|
+
error?: string | undefined;
|
|
102
|
+
success?: string | undefined;
|
|
103
|
+
} | undefined;
|
|
104
|
+
path: string;
|
|
105
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
106
|
+
sortOrder?: number | undefined;
|
|
107
|
+
type: "view";
|
|
108
|
+
} | {
|
|
109
|
+
aclProtected?: boolean | undefined;
|
|
110
|
+
confirm?: {
|
|
111
|
+
message?: string | undefined;
|
|
112
|
+
title?: string | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
description?: string | undefined;
|
|
115
|
+
id: string;
|
|
116
|
+
label: string;
|
|
117
|
+
level?: 0 | 1 | -1 | undefined;
|
|
118
|
+
notifications?: {
|
|
119
|
+
error?: string | undefined;
|
|
120
|
+
success?: string | undefined;
|
|
121
|
+
} | undefined;
|
|
122
|
+
runtimeAction: string;
|
|
123
|
+
sortOrder?: number | undefined;
|
|
124
|
+
timeout?: number | undefined;
|
|
125
|
+
type: "worker";
|
|
126
|
+
})[] | undefined;
|
|
85
127
|
} | undefined;
|
|
86
128
|
customer?: {
|
|
87
129
|
gridColumns?: {
|
|
@@ -147,6 +189,44 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
|
|
|
147
189
|
label: string;
|
|
148
190
|
runtimeAction: string;
|
|
149
191
|
} | undefined;
|
|
192
|
+
viewButtons?: ({
|
|
193
|
+
aclProtected?: boolean | undefined;
|
|
194
|
+
confirm?: {
|
|
195
|
+
message?: string | undefined;
|
|
196
|
+
title?: string | undefined;
|
|
197
|
+
} | undefined;
|
|
198
|
+
description?: string | undefined;
|
|
199
|
+
id: string;
|
|
200
|
+
label: string;
|
|
201
|
+
level?: 0 | 1 | -1 | undefined;
|
|
202
|
+
notifications?: {
|
|
203
|
+
error?: string | undefined;
|
|
204
|
+
success?: string | undefined;
|
|
205
|
+
} | undefined;
|
|
206
|
+
runtimeAction: string;
|
|
207
|
+
sortOrder?: number | undefined;
|
|
208
|
+
timeout?: number | undefined;
|
|
209
|
+
type: "worker";
|
|
210
|
+
} | {
|
|
211
|
+
title?: string | undefined;
|
|
212
|
+
aclProtected?: boolean | undefined;
|
|
213
|
+
confirm?: {
|
|
214
|
+
message?: string | undefined;
|
|
215
|
+
title?: string | undefined;
|
|
216
|
+
} | undefined;
|
|
217
|
+
description?: string | undefined;
|
|
218
|
+
id: string;
|
|
219
|
+
label: string;
|
|
220
|
+
level?: 0 | 1 | -1 | undefined;
|
|
221
|
+
notifications?: {
|
|
222
|
+
error?: string | undefined;
|
|
223
|
+
success?: string | undefined;
|
|
224
|
+
} | undefined;
|
|
225
|
+
path: string;
|
|
226
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
227
|
+
sortOrder?: number | undefined;
|
|
228
|
+
type: "view";
|
|
229
|
+
})[] | undefined;
|
|
150
230
|
} | undefined;
|
|
151
231
|
menu?: {
|
|
152
232
|
aclProtected?: boolean | undefined;
|
|
@@ -157,6 +237,14 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
|
|
|
157
237
|
parentMenu?: "sales" | "catalog" | "customers" | "marketing" | "content" | "reports" | "stores" | "system" | undefined;
|
|
158
238
|
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
159
239
|
} | undefined;
|
|
240
|
+
nativeUi?: {
|
|
241
|
+
replacedPages: {
|
|
242
|
+
path: string;
|
|
243
|
+
sandboxPermissions?: ("allow-downloads" | "allow-modals" | "allow-popups")[] | undefined;
|
|
244
|
+
target: "order.create" | "return.create";
|
|
245
|
+
title: string;
|
|
246
|
+
}[];
|
|
247
|
+
} | undefined;
|
|
160
248
|
newsletter?: {
|
|
161
249
|
gridColumns?: {
|
|
162
250
|
columns: {
|
|
@@ -508,7 +596,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
|
|
|
508
596
|
value: string;
|
|
509
597
|
}[] | undefined;
|
|
510
598
|
hook_name: string;
|
|
511
|
-
method: "
|
|
599
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
512
600
|
priority?: number | undefined;
|
|
513
601
|
required?: boolean | undefined;
|
|
514
602
|
rules?: {
|
|
@@ -541,7 +629,7 @@ export declare function parseCommerceAppConfig(cwd?: string): Promise<{
|
|
|
541
629
|
value: string;
|
|
542
630
|
}[] | undefined;
|
|
543
631
|
hook_name: string;
|
|
544
|
-
method: "
|
|
632
|
+
method: "GET" | "POST" | "PUT" | "DELETE";
|
|
545
633
|
priority?: number | undefined;
|
|
546
634
|
required?: boolean | undefined;
|
|
547
635
|
rules?: {
|
|
@@ -673,4 +761,4 @@ type AppConfigWithMetadata<T extends AnyCommerceAppConfig> = T & {
|
|
|
673
761
|
* @param config - The configuration to check.
|
|
674
762
|
*/
|
|
675
763
|
export declare function hasMetadata<T extends AnyCommerceAppConfig>(config: T): config is T & AppConfigWithMetadata<T>;
|
|
676
|
-
export { type AdminUiConfig, type AdminUiConfiguration, type AppConfigWithBusinessConfig, type AppConfigWithBusinessConfigSchema, type AppEvent, type ApplicationMetadata, type CommerceAppConfig, type CommerceAppConfigDomain, CommerceAppConfigSchemas, type CommerceEvent, type CommerceEventSource, type CommerceEventSourceSchema, type CommerceEventsConfig, type EventProvider, type EventingConfiguration, type EventingSchema, type EventsConfig, type ExternalEvent, type ExternalEventSource, type ExternalEventSourceSchema, type ExternalEventsConfig, type GridColumn, type GridColumns, type MassAction, type Menu, type Notifications, type OrderViewButton, type ViewMassAction, type WebhookDefinition, type WebhookEntry, type WebhookField, type WebhookHeader, type WebhookRule, type WebhooksConfig, type WebhooksConfiguration, type WebhooksSchema, type WorkerMassAction, defineConfig, getConfigDomains, hasAdminUi, hasBackendUiV2Components, hasCommerceEvents, hasConfigDomain, hasCustomInstallation, hasCustomInstallationSteps, hasEventing, hasExternalEvents, hasWebhooks };
|
|
764
|
+
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 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-
|
|
15
|
+
import { n as CommerceAppConfig } from "./app-DREvtzyX.cjs";
|
|
16
16
|
/**
|
|
17
17
|
* Helper to type-safely define the app config.
|
|
18
18
|
* @param config - The app config to define.
|