@openlup/platform 0.27.0 → 0.28.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.
- package/CHANGELOG.md +167 -109
- package/README.md +111 -8
- package/dist/account-support/accountReadFacade.d.ts +8 -0
- package/dist/account-support/accountReadFacade.js +10 -0
- package/dist/account-support/accountReadModels.d.ts +69 -0
- package/dist/account-support/accountReadModels.js +272 -0
- package/dist/account-support/bindings.d.ts +23 -0
- package/dist/account-support/bindings.js +16 -0
- package/dist/account-support/contracts/account.d.ts +281 -0
- package/dist/account-support/contracts/account.js +1 -0
- package/dist/account-support/contracts/capabilities.d.ts +44 -0
- package/dist/account-support/contracts/capabilities.js +1 -0
- package/dist/account-support/contracts/commands.d.ts +307 -0
- package/dist/account-support/contracts/commands.js +1 -0
- package/dist/account-support/contracts/customer360.d.ts +154 -0
- package/dist/account-support/contracts/customer360.js +1 -0
- package/dist/account-support/contracts/index.d.ts +10 -0
- package/dist/account-support/contracts/index.js +1 -0
- package/dist/account-support/contracts/invoice.d.ts +79 -0
- package/dist/account-support/contracts/invoice.js +1 -0
- package/dist/account-support/contracts/operator.d.ts +289 -0
- package/dist/account-support/contracts/operator.js +1 -0
- package/dist/account-support/contribution.d.ts +24 -0
- package/dist/account-support/contribution.js +22 -0
- package/dist/account-support/customer360.d.ts +106 -0
- package/dist/account-support/customer360.js +163 -0
- package/dist/account-support/customerAccountReadDiagnostics.d.ts +11 -0
- package/dist/account-support/customerAccountReadDiagnostics.js +71 -0
- package/dist/account-support/index.d.ts +26 -0
- package/dist/account-support/index.js +15 -0
- package/dist/account-support/invoiceAccess.d.ts +57 -0
- package/dist/account-support/invoiceAccess.js +40 -0
- package/dist/account-support/migrations.d.ts +14 -0
- package/dist/account-support/migrations.js +7 -0
- package/dist/account-support/operatorAuthority.d.ts +67 -0
- package/dist/account-support/operatorAuthority.js +379 -0
- package/dist/account-support/operatorRecovery.d.ts +66 -0
- package/dist/account-support/operatorRecovery.js +129 -0
- package/dist/account-support/orderHistory.d.ts +50 -0
- package/dist/account-support/orderHistory.js +188 -0
- package/dist/account-support/paymentMethodComposition.d.ts +5 -0
- package/dist/account-support/paymentMethodComposition.js +4 -0
- package/dist/account-support/postgresOperatorAuthority.d.ts +16 -0
- package/dist/account-support/postgresOperatorAuthority.js +93 -0
- package/dist/account-support/selfService.d.ts +6 -0
- package/dist/account-support/selfService.js +81 -0
- package/dist/account-support/subscriptionCommandCodec.d.ts +10 -0
- package/dist/account-support/subscriptionCommandCodec.js +38 -0
- package/dist/catalog/draftSchemas.d.ts +1 -1
- package/dist/catalog/foundationSchemas.d.ts +3 -3
- package/dist/catalog/resolvedSkuProjection.d.ts +2 -2
- package/dist/catalog/sellableSchemas.d.ts +2 -2
- package/dist/commerce/checkoutCommandSchemas.d.ts +2 -2
- package/dist/commerce/checkoutResumeSchemas.d.ts +6 -6
- package/dist/commerce/checkoutSchemas.d.ts +12 -12
- package/dist/commerce/commerceReturnsPort.d.ts +2 -2
- package/dist/commerce/configuratorIntentSchemas.d.ts +2 -2
- package/dist/commerce/contractPrimitives.d.ts +8 -8
- package/dist/commerce/customerDefaultsSnapshotSchemas.d.ts +4 -4
- package/dist/commerce/model/omsReadModelHelpers.d.ts +4 -4
- package/dist/commerce/offerAvailabilitySchemas.d.ts +1 -1
- package/dist/commerce/oms/omsContractBase.d.ts +15 -15
- package/dist/commerce/oms/omsContractReadAuxSchemas.d.ts +11 -11
- package/dist/commerce/oms/omsContractReadSchemas.d.ts +121 -121
- package/dist/commerce/oms/omsContractRequests.d.ts +13 -13
- package/dist/commerce/oms/omsControlPlane.d.ts +22 -22
- package/dist/commerce/oms/omsFulfillmentContractSchemas.d.ts +12 -12
- package/dist/commerce/oms/omsFulfillmentDebugSchemas.d.ts +12 -12
- package/dist/commerce/orderReviewContracts.d.ts +33 -33
- package/dist/commerce/outboxEventSchemas.d.ts +4 -4
- package/dist/commerce/schemas.d.ts +21 -21
- package/dist/commerce/server/orderReviewHandlers.d.ts +10 -10
- package/dist/communications/consentPurposeRegistry.d.ts +1 -1
- package/dist/communications/newsletterIntegrationContracts.d.ts +8 -8
- package/dist/composition/accountSupportContribution.d.ts +18 -0
- package/dist/composition/accountSupportContribution.js +21 -0
- package/dist/composition/index.d.ts +1 -0
- package/dist/composition/index.js +1 -0
- package/dist/fulfillment/handlerSchemas.d.ts +40 -40
- package/dist/identity/customerContracts.d.ts +2 -2
- package/dist/invoicing/snapshot.d.ts +1 -1
- package/dist/pricing/acquisitionQuoteBinding.d.ts +1 -1
- package/dist/pricing/catalogFactsSchemas.d.ts +1 -1
- package/dist/pricing/quotePromotionEvidence.d.ts +1 -1
- package/dist/pricing/quoteSchemas.d.ts +56 -56
- package/dist/promotions/adminPromotionCodesContracts.d.ts +30 -30
- package/dist/promotions/adminPromotionsContracts.d.ts +14 -14
- package/package.json +12 -2
- package/release-gates.json +30 -3
- package/sql/20261026120000_account_support_operator_authority.sql +693 -0
- package/src/account-support/accountReadFacade.ts +15 -0
- package/src/account-support/accountReadModels.ts +371 -0
- package/src/account-support/bindings.ts +28 -0
- package/src/account-support/contracts/account.ts +306 -0
- package/src/account-support/contracts/capabilities.ts +30 -0
- package/src/account-support/contracts/commands.ts +243 -0
- package/src/account-support/contracts/customer360.ts +150 -0
- package/src/account-support/contracts/index.ts +141 -0
- package/src/account-support/contracts/invoice.ts +44 -0
- package/src/account-support/contracts/operator.ts +123 -0
- package/src/account-support/contribution.ts +35 -0
- package/src/account-support/customer360.ts +268 -0
- package/src/account-support/customerAccountReadDiagnostics.ts +83 -0
- package/src/account-support/index.ts +72 -0
- package/src/account-support/invoiceAccess.ts +63 -0
- package/src/account-support/migrations.ts +7 -0
- package/src/account-support/operatorAuthority.ts +393 -0
- package/src/account-support/operatorRecovery.ts +136 -0
- package/src/account-support/orderHistory.ts +309 -0
- package/src/account-support/paymentMethodComposition.ts +8 -0
- package/src/account-support/postgresOperatorAuthority.ts +92 -0
- package/src/account-support/selfService.ts +83 -0
- package/src/account-support/subscriptionCommandCodec.ts +48 -0
- package/src/composition/accountSupportContribution.ts +28 -0
- package/src/composition/index.ts +1 -0
|
@@ -15,16 +15,16 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
15
15
|
}): {
|
|
16
16
|
createQuoteRequestSchema: z.ZodObject<{
|
|
17
17
|
mode: z.ZodDefault<z.ZodEnum<{
|
|
18
|
-
subscription: "subscription";
|
|
19
18
|
one_time: "one_time";
|
|
19
|
+
subscription: "subscription";
|
|
20
20
|
}>>;
|
|
21
21
|
lines: z.ZodArray<z.ZodObject<{
|
|
22
22
|
sku: z.ZodString;
|
|
23
23
|
quantity: z.ZodNumber;
|
|
24
24
|
variantId: z.ZodOptional<z.ZodString>;
|
|
25
25
|
modeAtLine: z.ZodOptional<z.ZodEnum<{
|
|
26
|
-
subscription: "subscription";
|
|
27
26
|
one_time: "one_time";
|
|
27
|
+
subscription: "subscription";
|
|
28
28
|
}>>;
|
|
29
29
|
isAddon: z.ZodOptional<z.ZodBoolean>;
|
|
30
30
|
}, z.core.$strip>>;
|
|
@@ -33,17 +33,17 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
33
33
|
}, z.core.$strip>;
|
|
34
34
|
quotePricingComponentSchema: z.ZodObject<{
|
|
35
35
|
scope: z.ZodEnum<{
|
|
36
|
-
line: "line";
|
|
37
36
|
order: "order";
|
|
37
|
+
line: "line";
|
|
38
38
|
}>;
|
|
39
39
|
componentType: z.ZodEnum<{
|
|
40
|
-
|
|
40
|
+
shipping: "shipping";
|
|
41
41
|
base_unit: "base_unit";
|
|
42
42
|
mode_discount: "mode_discount";
|
|
43
43
|
qty_tier: "qty_tier";
|
|
44
44
|
promo: "promo";
|
|
45
45
|
loyalty: "loyalty";
|
|
46
|
-
|
|
46
|
+
bundle: "bundle";
|
|
47
47
|
}>;
|
|
48
48
|
amountMinor: z.ZodNumber;
|
|
49
49
|
reasonCode: z.ZodString;
|
|
@@ -54,8 +54,8 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
54
54
|
quantity: z.ZodNumber;
|
|
55
55
|
variantId: z.ZodOptional<z.ZodString>;
|
|
56
56
|
modeAtLine: z.ZodOptional<z.ZodEnum<{
|
|
57
|
-
subscription: "subscription";
|
|
58
57
|
one_time: "one_time";
|
|
58
|
+
subscription: "subscription";
|
|
59
59
|
}>>;
|
|
60
60
|
isAddon: z.ZodOptional<z.ZodBoolean>;
|
|
61
61
|
}, z.core.$strip>;
|
|
@@ -111,17 +111,17 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
111
111
|
}, z.core.$strip>;
|
|
112
112
|
pricingComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
113
113
|
scope: z.ZodEnum<{
|
|
114
|
-
line: "line";
|
|
115
114
|
order: "order";
|
|
115
|
+
line: "line";
|
|
116
116
|
}>;
|
|
117
117
|
componentType: z.ZodEnum<{
|
|
118
|
-
|
|
118
|
+
shipping: "shipping";
|
|
119
119
|
base_unit: "base_unit";
|
|
120
120
|
mode_discount: "mode_discount";
|
|
121
121
|
qty_tier: "qty_tier";
|
|
122
122
|
promo: "promo";
|
|
123
123
|
loyalty: "loyalty";
|
|
124
|
-
|
|
124
|
+
bundle: "bundle";
|
|
125
125
|
}>;
|
|
126
126
|
amountMinor: z.ZodNumber;
|
|
127
127
|
reasonCode: z.ZodString;
|
|
@@ -140,8 +140,8 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
140
140
|
version: z.ZodLiteral<"catalog_facts_v1">;
|
|
141
141
|
resolvedPriceEntryId: z.ZodString;
|
|
142
142
|
mode: z.ZodEnum<{
|
|
143
|
-
subscription: "subscription";
|
|
144
143
|
one_time: "one_time";
|
|
144
|
+
subscription: "subscription";
|
|
145
145
|
}>;
|
|
146
146
|
}, z.core.$strict>, z.ZodObject<{
|
|
147
147
|
skuId: z.ZodString;
|
|
@@ -162,11 +162,11 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
162
162
|
quoteCodeRejectionSchema: z.ZodObject<{
|
|
163
163
|
code: z.ZodString;
|
|
164
164
|
reason: z.ZodEnum<{
|
|
165
|
+
expired: "expired";
|
|
165
166
|
scope_not_applicable: "scope_not_applicable";
|
|
166
167
|
not_recognized: "not_recognized";
|
|
167
168
|
already_used: "already_used";
|
|
168
169
|
not_eligible: "not_eligible";
|
|
169
|
-
expired: "expired";
|
|
170
170
|
better_price_exists: "better_price_exists";
|
|
171
171
|
}>;
|
|
172
172
|
}, z.core.$strict>;
|
|
@@ -206,17 +206,17 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
206
206
|
}, z.core.$strip>;
|
|
207
207
|
pricingComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
208
208
|
scope: z.ZodEnum<{
|
|
209
|
-
line: "line";
|
|
210
209
|
order: "order";
|
|
210
|
+
line: "line";
|
|
211
211
|
}>;
|
|
212
212
|
componentType: z.ZodEnum<{
|
|
213
|
-
|
|
213
|
+
shipping: "shipping";
|
|
214
214
|
base_unit: "base_unit";
|
|
215
215
|
mode_discount: "mode_discount";
|
|
216
216
|
qty_tier: "qty_tier";
|
|
217
217
|
promo: "promo";
|
|
218
218
|
loyalty: "loyalty";
|
|
219
|
-
|
|
219
|
+
bundle: "bundle";
|
|
220
220
|
}>;
|
|
221
221
|
amountMinor: z.ZodNumber;
|
|
222
222
|
reasonCode: z.ZodString;
|
|
@@ -235,8 +235,8 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
235
235
|
version: z.ZodLiteral<"catalog_facts_v1">;
|
|
236
236
|
resolvedPriceEntryId: z.ZodString;
|
|
237
237
|
mode: z.ZodEnum<{
|
|
238
|
-
subscription: "subscription";
|
|
239
238
|
one_time: "one_time";
|
|
239
|
+
subscription: "subscription";
|
|
240
240
|
}>;
|
|
241
241
|
}, z.core.$strict>, z.ZodObject<{
|
|
242
242
|
skuId: z.ZodString;
|
|
@@ -259,8 +259,8 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
259
259
|
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
260
260
|
label: z.ZodOptional<z.ZodString>;
|
|
261
261
|
appliesTo: z.ZodEnum<{
|
|
262
|
-
line: "line";
|
|
263
262
|
shipping: "shipping";
|
|
263
|
+
line: "line";
|
|
264
264
|
order_total: "order_total";
|
|
265
265
|
}>;
|
|
266
266
|
amountOffMinor: z.ZodNumber;
|
|
@@ -293,11 +293,11 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
293
293
|
codeRejections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
294
294
|
code: z.ZodString;
|
|
295
295
|
reason: z.ZodEnum<{
|
|
296
|
+
expired: "expired";
|
|
296
297
|
scope_not_applicable: "scope_not_applicable";
|
|
297
298
|
not_recognized: "not_recognized";
|
|
298
299
|
already_used: "already_used";
|
|
299
300
|
not_eligible: "not_eligible";
|
|
300
|
-
expired: "expired";
|
|
301
301
|
better_price_exists: "better_price_exists";
|
|
302
302
|
}>;
|
|
303
303
|
}, z.core.$strict>>>;
|
|
@@ -322,17 +322,17 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
322
322
|
}, z.core.$strict>], "reason">>>;
|
|
323
323
|
pricingComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
324
324
|
scope: z.ZodEnum<{
|
|
325
|
-
line: "line";
|
|
326
325
|
order: "order";
|
|
326
|
+
line: "line";
|
|
327
327
|
}>;
|
|
328
328
|
componentType: z.ZodEnum<{
|
|
329
|
-
|
|
329
|
+
shipping: "shipping";
|
|
330
330
|
base_unit: "base_unit";
|
|
331
331
|
mode_discount: "mode_discount";
|
|
332
332
|
qty_tier: "qty_tier";
|
|
333
333
|
promo: "promo";
|
|
334
334
|
loyalty: "loyalty";
|
|
335
|
-
|
|
335
|
+
bundle: "bundle";
|
|
336
336
|
}>;
|
|
337
337
|
amountMinor: z.ZodNumber;
|
|
338
338
|
reasonCode: z.ZodString;
|
|
@@ -406,17 +406,17 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
406
406
|
}, z.core.$strip>;
|
|
407
407
|
pricingComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
408
408
|
scope: z.ZodEnum<{
|
|
409
|
-
line: "line";
|
|
410
409
|
order: "order";
|
|
410
|
+
line: "line";
|
|
411
411
|
}>;
|
|
412
412
|
componentType: z.ZodEnum<{
|
|
413
|
-
|
|
413
|
+
shipping: "shipping";
|
|
414
414
|
base_unit: "base_unit";
|
|
415
415
|
mode_discount: "mode_discount";
|
|
416
416
|
qty_tier: "qty_tier";
|
|
417
417
|
promo: "promo";
|
|
418
418
|
loyalty: "loyalty";
|
|
419
|
-
|
|
419
|
+
bundle: "bundle";
|
|
420
420
|
}>;
|
|
421
421
|
amountMinor: z.ZodNumber;
|
|
422
422
|
reasonCode: z.ZodString;
|
|
@@ -435,8 +435,8 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
435
435
|
version: z.ZodLiteral<"catalog_facts_v1">;
|
|
436
436
|
resolvedPriceEntryId: z.ZodString;
|
|
437
437
|
mode: z.ZodEnum<{
|
|
438
|
-
subscription: "subscription";
|
|
439
438
|
one_time: "one_time";
|
|
439
|
+
subscription: "subscription";
|
|
440
440
|
}>;
|
|
441
441
|
}, z.core.$strict>, z.ZodObject<{
|
|
442
442
|
skuId: z.ZodString;
|
|
@@ -459,8 +459,8 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
459
459
|
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
460
460
|
label: z.ZodOptional<z.ZodString>;
|
|
461
461
|
appliesTo: z.ZodEnum<{
|
|
462
|
-
line: "line";
|
|
463
462
|
shipping: "shipping";
|
|
463
|
+
line: "line";
|
|
464
464
|
order_total: "order_total";
|
|
465
465
|
}>;
|
|
466
466
|
amountOffMinor: z.ZodNumber;
|
|
@@ -493,11 +493,11 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
493
493
|
codeRejections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
494
494
|
code: z.ZodString;
|
|
495
495
|
reason: z.ZodEnum<{
|
|
496
|
+
expired: "expired";
|
|
496
497
|
scope_not_applicable: "scope_not_applicable";
|
|
497
498
|
not_recognized: "not_recognized";
|
|
498
499
|
already_used: "already_used";
|
|
499
500
|
not_eligible: "not_eligible";
|
|
500
|
-
expired: "expired";
|
|
501
501
|
better_price_exists: "better_price_exists";
|
|
502
502
|
}>;
|
|
503
503
|
}, z.core.$strict>>>;
|
|
@@ -522,17 +522,17 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
522
522
|
}, z.core.$strict>], "reason">>>;
|
|
523
523
|
pricingComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
524
524
|
scope: z.ZodEnum<{
|
|
525
|
-
line: "line";
|
|
526
525
|
order: "order";
|
|
526
|
+
line: "line";
|
|
527
527
|
}>;
|
|
528
528
|
componentType: z.ZodEnum<{
|
|
529
|
-
|
|
529
|
+
shipping: "shipping";
|
|
530
530
|
base_unit: "base_unit";
|
|
531
531
|
mode_discount: "mode_discount";
|
|
532
532
|
qty_tier: "qty_tier";
|
|
533
533
|
promo: "promo";
|
|
534
534
|
loyalty: "loyalty";
|
|
535
|
-
|
|
535
|
+
bundle: "bundle";
|
|
536
536
|
}>;
|
|
537
537
|
amountMinor: z.ZodNumber;
|
|
538
538
|
reasonCode: z.ZodString;
|
|
@@ -607,17 +607,17 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
607
607
|
}, z.core.$strip>;
|
|
608
608
|
pricingComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
609
609
|
scope: z.ZodEnum<{
|
|
610
|
-
line: "line";
|
|
611
610
|
order: "order";
|
|
611
|
+
line: "line";
|
|
612
612
|
}>;
|
|
613
613
|
componentType: z.ZodEnum<{
|
|
614
|
-
|
|
614
|
+
shipping: "shipping";
|
|
615
615
|
base_unit: "base_unit";
|
|
616
616
|
mode_discount: "mode_discount";
|
|
617
617
|
qty_tier: "qty_tier";
|
|
618
618
|
promo: "promo";
|
|
619
619
|
loyalty: "loyalty";
|
|
620
|
-
|
|
620
|
+
bundle: "bundle";
|
|
621
621
|
}>;
|
|
622
622
|
amountMinor: z.ZodNumber;
|
|
623
623
|
reasonCode: z.ZodString;
|
|
@@ -636,8 +636,8 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
636
636
|
version: z.ZodLiteral<"catalog_facts_v1">;
|
|
637
637
|
resolvedPriceEntryId: z.ZodString;
|
|
638
638
|
mode: z.ZodEnum<{
|
|
639
|
-
subscription: "subscription";
|
|
640
639
|
one_time: "one_time";
|
|
640
|
+
subscription: "subscription";
|
|
641
641
|
}>;
|
|
642
642
|
}, z.core.$strict>, z.ZodObject<{
|
|
643
643
|
skuId: z.ZodString;
|
|
@@ -660,8 +660,8 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
660
660
|
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
661
661
|
label: z.ZodOptional<z.ZodString>;
|
|
662
662
|
appliesTo: z.ZodEnum<{
|
|
663
|
-
line: "line";
|
|
664
663
|
shipping: "shipping";
|
|
664
|
+
line: "line";
|
|
665
665
|
order_total: "order_total";
|
|
666
666
|
}>;
|
|
667
667
|
amountOffMinor: z.ZodNumber;
|
|
@@ -694,11 +694,11 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
694
694
|
codeRejections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
695
695
|
code: z.ZodString;
|
|
696
696
|
reason: z.ZodEnum<{
|
|
697
|
+
expired: "expired";
|
|
697
698
|
scope_not_applicable: "scope_not_applicable";
|
|
698
699
|
not_recognized: "not_recognized";
|
|
699
700
|
already_used: "already_used";
|
|
700
701
|
not_eligible: "not_eligible";
|
|
701
|
-
expired: "expired";
|
|
702
702
|
better_price_exists: "better_price_exists";
|
|
703
703
|
}>;
|
|
704
704
|
}, z.core.$strict>>>;
|
|
@@ -723,17 +723,17 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
723
723
|
}, z.core.$strict>], "reason">>>;
|
|
724
724
|
pricingComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
725
725
|
scope: z.ZodEnum<{
|
|
726
|
-
line: "line";
|
|
727
726
|
order: "order";
|
|
727
|
+
line: "line";
|
|
728
728
|
}>;
|
|
729
729
|
componentType: z.ZodEnum<{
|
|
730
|
-
|
|
730
|
+
shipping: "shipping";
|
|
731
731
|
base_unit: "base_unit";
|
|
732
732
|
mode_discount: "mode_discount";
|
|
733
733
|
qty_tier: "qty_tier";
|
|
734
734
|
promo: "promo";
|
|
735
735
|
loyalty: "loyalty";
|
|
736
|
-
|
|
736
|
+
bundle: "bundle";
|
|
737
737
|
}>;
|
|
738
738
|
amountMinor: z.ZodNumber;
|
|
739
739
|
reasonCode: z.ZodString;
|
|
@@ -809,17 +809,17 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
809
809
|
}, z.core.$strip>;
|
|
810
810
|
pricingComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
811
811
|
scope: z.ZodEnum<{
|
|
812
|
-
line: "line";
|
|
813
812
|
order: "order";
|
|
813
|
+
line: "line";
|
|
814
814
|
}>;
|
|
815
815
|
componentType: z.ZodEnum<{
|
|
816
|
-
|
|
816
|
+
shipping: "shipping";
|
|
817
817
|
base_unit: "base_unit";
|
|
818
818
|
mode_discount: "mode_discount";
|
|
819
819
|
qty_tier: "qty_tier";
|
|
820
820
|
promo: "promo";
|
|
821
821
|
loyalty: "loyalty";
|
|
822
|
-
|
|
822
|
+
bundle: "bundle";
|
|
823
823
|
}>;
|
|
824
824
|
amountMinor: z.ZodNumber;
|
|
825
825
|
reasonCode: z.ZodString;
|
|
@@ -838,8 +838,8 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
838
838
|
version: z.ZodLiteral<"catalog_facts_v1">;
|
|
839
839
|
resolvedPriceEntryId: z.ZodString;
|
|
840
840
|
mode: z.ZodEnum<{
|
|
841
|
-
subscription: "subscription";
|
|
842
841
|
one_time: "one_time";
|
|
842
|
+
subscription: "subscription";
|
|
843
843
|
}>;
|
|
844
844
|
}, z.core.$strict>, z.ZodObject<{
|
|
845
845
|
skuId: z.ZodString;
|
|
@@ -862,8 +862,8 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
862
862
|
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
863
863
|
label: z.ZodOptional<z.ZodString>;
|
|
864
864
|
appliesTo: z.ZodEnum<{
|
|
865
|
-
line: "line";
|
|
866
865
|
shipping: "shipping";
|
|
866
|
+
line: "line";
|
|
867
867
|
order_total: "order_total";
|
|
868
868
|
}>;
|
|
869
869
|
amountOffMinor: z.ZodNumber;
|
|
@@ -896,11 +896,11 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
896
896
|
codeRejections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
897
897
|
code: z.ZodString;
|
|
898
898
|
reason: z.ZodEnum<{
|
|
899
|
+
expired: "expired";
|
|
899
900
|
scope_not_applicable: "scope_not_applicable";
|
|
900
901
|
not_recognized: "not_recognized";
|
|
901
902
|
already_used: "already_used";
|
|
902
903
|
not_eligible: "not_eligible";
|
|
903
|
-
expired: "expired";
|
|
904
904
|
better_price_exists: "better_price_exists";
|
|
905
905
|
}>;
|
|
906
906
|
}, z.core.$strict>>>;
|
|
@@ -925,17 +925,17 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
925
925
|
}, z.core.$strict>], "reason">>>;
|
|
926
926
|
pricingComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
927
927
|
scope: z.ZodEnum<{
|
|
928
|
-
line: "line";
|
|
929
928
|
order: "order";
|
|
929
|
+
line: "line";
|
|
930
930
|
}>;
|
|
931
931
|
componentType: z.ZodEnum<{
|
|
932
|
-
|
|
932
|
+
shipping: "shipping";
|
|
933
933
|
base_unit: "base_unit";
|
|
934
934
|
mode_discount: "mode_discount";
|
|
935
935
|
qty_tier: "qty_tier";
|
|
936
936
|
promo: "promo";
|
|
937
937
|
loyalty: "loyalty";
|
|
938
|
-
|
|
938
|
+
bundle: "bundle";
|
|
939
939
|
}>;
|
|
940
940
|
amountMinor: z.ZodNumber;
|
|
941
941
|
reasonCode: z.ZodString;
|
|
@@ -1010,17 +1010,17 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
1010
1010
|
}, z.core.$strip>;
|
|
1011
1011
|
pricingComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1012
1012
|
scope: z.ZodEnum<{
|
|
1013
|
-
line: "line";
|
|
1014
1013
|
order: "order";
|
|
1014
|
+
line: "line";
|
|
1015
1015
|
}>;
|
|
1016
1016
|
componentType: z.ZodEnum<{
|
|
1017
|
-
|
|
1017
|
+
shipping: "shipping";
|
|
1018
1018
|
base_unit: "base_unit";
|
|
1019
1019
|
mode_discount: "mode_discount";
|
|
1020
1020
|
qty_tier: "qty_tier";
|
|
1021
1021
|
promo: "promo";
|
|
1022
1022
|
loyalty: "loyalty";
|
|
1023
|
-
|
|
1023
|
+
bundle: "bundle";
|
|
1024
1024
|
}>;
|
|
1025
1025
|
amountMinor: z.ZodNumber;
|
|
1026
1026
|
reasonCode: z.ZodString;
|
|
@@ -1039,8 +1039,8 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
1039
1039
|
version: z.ZodLiteral<"catalog_facts_v1">;
|
|
1040
1040
|
resolvedPriceEntryId: z.ZodString;
|
|
1041
1041
|
mode: z.ZodEnum<{
|
|
1042
|
-
subscription: "subscription";
|
|
1043
1042
|
one_time: "one_time";
|
|
1043
|
+
subscription: "subscription";
|
|
1044
1044
|
}>;
|
|
1045
1045
|
}, z.core.$strict>, z.ZodObject<{
|
|
1046
1046
|
skuId: z.ZodString;
|
|
@@ -1063,8 +1063,8 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
1063
1063
|
code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1064
1064
|
label: z.ZodOptional<z.ZodString>;
|
|
1065
1065
|
appliesTo: z.ZodEnum<{
|
|
1066
|
-
line: "line";
|
|
1067
1066
|
shipping: "shipping";
|
|
1067
|
+
line: "line";
|
|
1068
1068
|
order_total: "order_total";
|
|
1069
1069
|
}>;
|
|
1070
1070
|
amountOffMinor: z.ZodNumber;
|
|
@@ -1097,11 +1097,11 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
1097
1097
|
codeRejections: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1098
1098
|
code: z.ZodString;
|
|
1099
1099
|
reason: z.ZodEnum<{
|
|
1100
|
+
expired: "expired";
|
|
1100
1101
|
scope_not_applicable: "scope_not_applicable";
|
|
1101
1102
|
not_recognized: "not_recognized";
|
|
1102
1103
|
already_used: "already_used";
|
|
1103
1104
|
not_eligible: "not_eligible";
|
|
1104
|
-
expired: "expired";
|
|
1105
1105
|
better_price_exists: "better_price_exists";
|
|
1106
1106
|
}>;
|
|
1107
1107
|
}, z.core.$strict>>>;
|
|
@@ -1126,17 +1126,17 @@ export declare function createCommerceQuoteSchemas<Context extends z.ZodType>(in
|
|
|
1126
1126
|
}, z.core.$strict>], "reason">>>;
|
|
1127
1127
|
pricingComponents: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1128
1128
|
scope: z.ZodEnum<{
|
|
1129
|
-
line: "line";
|
|
1130
1129
|
order: "order";
|
|
1130
|
+
line: "line";
|
|
1131
1131
|
}>;
|
|
1132
1132
|
componentType: z.ZodEnum<{
|
|
1133
|
-
|
|
1133
|
+
shipping: "shipping";
|
|
1134
1134
|
base_unit: "base_unit";
|
|
1135
1135
|
mode_discount: "mode_discount";
|
|
1136
1136
|
qty_tier: "qty_tier";
|
|
1137
1137
|
promo: "promo";
|
|
1138
1138
|
loyalty: "loyalty";
|
|
1139
|
-
|
|
1139
|
+
bundle: "bundle";
|
|
1140
1140
|
}>;
|
|
1141
1141
|
amountMinor: z.ZodNumber;
|
|
1142
1142
|
reasonCode: z.ZodString;
|
|
@@ -40,8 +40,8 @@ export declare const promotionCodeBenefitSchema: z.ZodUnion<readonly [z.ZodUnion
|
|
|
40
40
|
valueMinor: z.ZodNumber;
|
|
41
41
|
}, z.core.$strict>, z.ZodObject<{
|
|
42
42
|
lane: z.ZodEnum<{
|
|
43
|
-
product: "product";
|
|
44
43
|
shipping: "shipping";
|
|
44
|
+
product: "product";
|
|
45
45
|
}>;
|
|
46
46
|
kind: z.ZodEnum<{
|
|
47
47
|
percentage: "percentage";
|
|
@@ -93,8 +93,8 @@ export declare const promotionCodePreviewRequestSchema: z.ZodObject<{
|
|
|
93
93
|
valueMinor: z.ZodNumber;
|
|
94
94
|
}, z.core.$strict>, z.ZodObject<{
|
|
95
95
|
lane: z.ZodEnum<{
|
|
96
|
-
product: "product";
|
|
97
96
|
shipping: "shipping";
|
|
97
|
+
product: "product";
|
|
98
98
|
}>;
|
|
99
99
|
kind: z.ZodEnum<{
|
|
100
100
|
percentage: "percentage";
|
|
@@ -133,8 +133,8 @@ export declare const promotionCodePreviewResultSchema: z.ZodObject<{
|
|
|
133
133
|
floorApplied: z.ZodBoolean;
|
|
134
134
|
adjustments: z.ZodArray<z.ZodObject<{
|
|
135
135
|
lane: z.ZodEnum<{
|
|
136
|
-
product: "product";
|
|
137
136
|
shipping: "shipping";
|
|
137
|
+
product: "product";
|
|
138
138
|
}>;
|
|
139
139
|
kind: z.ZodEnum<{
|
|
140
140
|
target_percentage: "target_percentage";
|
|
@@ -169,8 +169,8 @@ export declare const promotionCodePreviewResponseSchema: z.ZodObject<{
|
|
|
169
169
|
floorApplied: z.ZodBoolean;
|
|
170
170
|
adjustments: z.ZodArray<z.ZodObject<{
|
|
171
171
|
lane: z.ZodEnum<{
|
|
172
|
-
product: "product";
|
|
173
172
|
shipping: "shipping";
|
|
173
|
+
product: "product";
|
|
174
174
|
}>;
|
|
175
175
|
kind: z.ZodEnum<{
|
|
176
176
|
target_percentage: "target_percentage";
|
|
@@ -223,8 +223,8 @@ export declare const promotionCodeCreateRequestSchema: z.ZodObject<{
|
|
|
223
223
|
redemptionLimitGlobal: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
224
224
|
redemptionLimitPerCustomer: z.ZodDefault<z.ZodNullable<z.ZodNumber>>;
|
|
225
225
|
status: z.ZodDefault<z.ZodEnum<{
|
|
226
|
-
draft: "draft";
|
|
227
226
|
active: "active";
|
|
227
|
+
draft: "draft";
|
|
228
228
|
}>>;
|
|
229
229
|
previewContext: z.ZodOptional<z.ZodObject<{
|
|
230
230
|
referenceProductMinor: z.ZodNumber;
|
|
@@ -240,10 +240,10 @@ export declare const promotionCodeCreateResponseSchema: z.ZodObject<{
|
|
|
240
240
|
id: z.ZodString;
|
|
241
241
|
code: z.ZodString;
|
|
242
242
|
status: z.ZodEnum<{
|
|
243
|
-
draft: "draft";
|
|
244
243
|
active: "active";
|
|
245
|
-
archived: "archived";
|
|
246
244
|
paused: "paused";
|
|
245
|
+
draft: "draft";
|
|
246
|
+
archived: "archived";
|
|
247
247
|
}>;
|
|
248
248
|
revision: z.ZodNumber;
|
|
249
249
|
idempotent: z.ZodBoolean;
|
|
@@ -253,10 +253,10 @@ export declare const promotionCodeUpdateRequestSchema: z.ZodObject<{
|
|
|
253
253
|
expectedRevision: z.ZodNumber;
|
|
254
254
|
updates: z.ZodObject<{
|
|
255
255
|
status: z.ZodOptional<z.ZodEnum<{
|
|
256
|
-
draft: "draft";
|
|
257
256
|
active: "active";
|
|
258
|
-
archived: "archived";
|
|
259
257
|
paused: "paused";
|
|
258
|
+
draft: "draft";
|
|
259
|
+
archived: "archived";
|
|
260
260
|
}>>;
|
|
261
261
|
validFrom: z.ZodOptional<z.ZodString>;
|
|
262
262
|
validTo: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -276,10 +276,10 @@ export declare const promotionCodeUpdateResponseSchema: z.ZodObject<{
|
|
|
276
276
|
contractVersion: z.ZodLiteral<"commerce.v0">;
|
|
277
277
|
id: z.ZodString;
|
|
278
278
|
status: z.ZodEnum<{
|
|
279
|
-
draft: "draft";
|
|
280
279
|
active: "active";
|
|
281
|
-
archived: "archived";
|
|
282
280
|
paused: "paused";
|
|
281
|
+
draft: "draft";
|
|
282
|
+
archived: "archived";
|
|
283
283
|
}>;
|
|
284
284
|
revision: z.ZodNumber;
|
|
285
285
|
idempotent: z.ZodBoolean;
|
|
@@ -287,21 +287,21 @@ export declare const promotionCodeUpdateResponseSchema: z.ZodObject<{
|
|
|
287
287
|
export declare const promotionCodesListRequestSchema: z.ZodObject<{
|
|
288
288
|
q: z.ZodOptional<z.ZodString>;
|
|
289
289
|
status: z.ZodDefault<z.ZodEnum<{
|
|
290
|
-
draft: "draft";
|
|
291
290
|
active: "active";
|
|
292
|
-
|
|
293
|
-
|
|
291
|
+
paused: "paused";
|
|
292
|
+
draft: "draft";
|
|
294
293
|
expired: "expired";
|
|
295
294
|
scheduled: "scheduled";
|
|
296
|
-
|
|
295
|
+
archived: "archived";
|
|
296
|
+
all: "all";
|
|
297
297
|
expired_or_archived: "expired_or_archived";
|
|
298
298
|
}>>;
|
|
299
299
|
scope: z.ZodDefault<z.ZodEnum<{
|
|
300
|
-
one_time: "one_time";
|
|
301
|
-
all: "all";
|
|
302
|
-
subscription_initial: "subscription_initial";
|
|
303
300
|
shipping: "shipping";
|
|
304
301
|
both: "both";
|
|
302
|
+
one_time: "one_time";
|
|
303
|
+
subscription_initial: "subscription_initial";
|
|
304
|
+
all: "all";
|
|
305
305
|
}>>;
|
|
306
306
|
cursor: z.ZodOptional<z.ZodString>;
|
|
307
307
|
limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
@@ -348,8 +348,8 @@ export declare const promotionCodeSummarySchema: z.ZodObject<{
|
|
|
348
348
|
valueMinor: z.ZodNumber;
|
|
349
349
|
}, z.core.$strict>, z.ZodObject<{
|
|
350
350
|
lane: z.ZodEnum<{
|
|
351
|
-
product: "product";
|
|
352
351
|
shipping: "shipping";
|
|
352
|
+
product: "product";
|
|
353
353
|
}>;
|
|
354
354
|
kind: z.ZodEnum<{
|
|
355
355
|
percentage: "percentage";
|
|
@@ -366,18 +366,18 @@ export declare const promotionCodeSummarySchema: z.ZodObject<{
|
|
|
366
366
|
subscription_initial: "subscription_initial";
|
|
367
367
|
}>>;
|
|
368
368
|
status: z.ZodEnum<{
|
|
369
|
-
draft: "draft";
|
|
370
369
|
active: "active";
|
|
371
|
-
archived: "archived";
|
|
372
370
|
paused: "paused";
|
|
371
|
+
draft: "draft";
|
|
372
|
+
archived: "archived";
|
|
373
373
|
}>;
|
|
374
374
|
effectiveStatus: z.ZodEnum<{
|
|
375
|
-
draft: "draft";
|
|
376
375
|
active: "active";
|
|
377
|
-
|
|
376
|
+
paused: "paused";
|
|
377
|
+
draft: "draft";
|
|
378
378
|
expired: "expired";
|
|
379
379
|
scheduled: "scheduled";
|
|
380
|
-
|
|
380
|
+
archived: "archived";
|
|
381
381
|
}>;
|
|
382
382
|
validFrom: z.ZodString;
|
|
383
383
|
validTo: z.ZodNullable<z.ZodString>;
|
|
@@ -434,8 +434,8 @@ export declare const promotionCodesListResponseSchema: z.ZodObject<{
|
|
|
434
434
|
valueMinor: z.ZodNumber;
|
|
435
435
|
}, z.core.$strict>, z.ZodObject<{
|
|
436
436
|
lane: z.ZodEnum<{
|
|
437
|
-
product: "product";
|
|
438
437
|
shipping: "shipping";
|
|
438
|
+
product: "product";
|
|
439
439
|
}>;
|
|
440
440
|
kind: z.ZodEnum<{
|
|
441
441
|
percentage: "percentage";
|
|
@@ -452,18 +452,18 @@ export declare const promotionCodesListResponseSchema: z.ZodObject<{
|
|
|
452
452
|
subscription_initial: "subscription_initial";
|
|
453
453
|
}>>;
|
|
454
454
|
status: z.ZodEnum<{
|
|
455
|
-
draft: "draft";
|
|
456
455
|
active: "active";
|
|
457
|
-
archived: "archived";
|
|
458
456
|
paused: "paused";
|
|
457
|
+
draft: "draft";
|
|
458
|
+
archived: "archived";
|
|
459
459
|
}>;
|
|
460
460
|
effectiveStatus: z.ZodEnum<{
|
|
461
|
-
draft: "draft";
|
|
462
461
|
active: "active";
|
|
463
|
-
|
|
462
|
+
paused: "paused";
|
|
463
|
+
draft: "draft";
|
|
464
464
|
expired: "expired";
|
|
465
465
|
scheduled: "scheduled";
|
|
466
|
-
|
|
466
|
+
archived: "archived";
|
|
467
467
|
}>;
|
|
468
468
|
validFrom: z.ZodString;
|
|
469
469
|
validTo: z.ZodNullable<z.ZodString>;
|