@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
|
@@ -31,10 +31,10 @@ export declare function createAdminPromotionSchemas({ currencySchema: platformCu
|
|
|
31
31
|
adminPromotionV2MirrorSchema: z.ZodObject<{
|
|
32
32
|
id: z.ZodString;
|
|
33
33
|
status: z.ZodEnum<{
|
|
34
|
-
draft: "draft";
|
|
35
34
|
active: "active";
|
|
36
|
-
archived: "archived";
|
|
37
35
|
paused: "paused";
|
|
36
|
+
draft: "draft";
|
|
37
|
+
archived: "archived";
|
|
38
38
|
}>;
|
|
39
39
|
}, z.core.$strip>;
|
|
40
40
|
adminPromotionSchema: z.ZodObject<{
|
|
@@ -80,10 +80,10 @@ export declare function createAdminPromotionSchemas({ currencySchema: platformCu
|
|
|
80
80
|
v2Mirror: z.ZodNullable<z.ZodObject<{
|
|
81
81
|
id: z.ZodString;
|
|
82
82
|
status: z.ZodEnum<{
|
|
83
|
-
draft: "draft";
|
|
84
83
|
active: "active";
|
|
85
|
-
archived: "archived";
|
|
86
84
|
paused: "paused";
|
|
85
|
+
draft: "draft";
|
|
86
|
+
archived: "archived";
|
|
87
87
|
}>;
|
|
88
88
|
}, z.core.$strip>>;
|
|
89
89
|
appliesToKind: z.ZodEnum<{
|
|
@@ -100,10 +100,10 @@ export declare function createAdminPromotionSchemas({ currencySchema: platformCu
|
|
|
100
100
|
validFrom: z.ZodString;
|
|
101
101
|
validTo: z.ZodNullable<z.ZodString>;
|
|
102
102
|
status: z.ZodEnum<{
|
|
103
|
-
draft: "draft";
|
|
104
103
|
active: "active";
|
|
105
|
-
archived: "archived";
|
|
106
104
|
paused: "paused";
|
|
105
|
+
draft: "draft";
|
|
106
|
+
archived: "archived";
|
|
107
107
|
}>;
|
|
108
108
|
regionAvailability: z.ZodArray<z.ZodString>;
|
|
109
109
|
redemptionLimitGlobal: z.ZodNullable<z.ZodNumber>;
|
|
@@ -154,10 +154,10 @@ export declare function createAdminPromotionSchemas({ currencySchema: platformCu
|
|
|
154
154
|
v2Mirror: z.ZodNullable<z.ZodObject<{
|
|
155
155
|
id: z.ZodString;
|
|
156
156
|
status: z.ZodEnum<{
|
|
157
|
-
draft: "draft";
|
|
158
157
|
active: "active";
|
|
159
|
-
archived: "archived";
|
|
160
158
|
paused: "paused";
|
|
159
|
+
draft: "draft";
|
|
160
|
+
archived: "archived";
|
|
161
161
|
}>;
|
|
162
162
|
}, z.core.$strip>>;
|
|
163
163
|
appliesToKind: z.ZodEnum<{
|
|
@@ -174,10 +174,10 @@ export declare function createAdminPromotionSchemas({ currencySchema: platformCu
|
|
|
174
174
|
validFrom: z.ZodString;
|
|
175
175
|
validTo: z.ZodNullable<z.ZodString>;
|
|
176
176
|
status: z.ZodEnum<{
|
|
177
|
-
draft: "draft";
|
|
178
177
|
active: "active";
|
|
179
|
-
archived: "archived";
|
|
180
178
|
paused: "paused";
|
|
179
|
+
draft: "draft";
|
|
180
|
+
archived: "archived";
|
|
181
181
|
}>;
|
|
182
182
|
regionAvailability: z.ZodArray<z.ZodString>;
|
|
183
183
|
redemptionLimitGlobal: z.ZodNullable<z.ZodNumber>;
|
|
@@ -193,10 +193,10 @@ export declare function createAdminPromotionSchemas({ currencySchema: platformCu
|
|
|
193
193
|
stackable_with_loyalty: "stackable_with_loyalty";
|
|
194
194
|
}>>;
|
|
195
195
|
status: z.ZodOptional<z.ZodEnum<{
|
|
196
|
-
draft: "draft";
|
|
197
196
|
active: "active";
|
|
198
|
-
archived: "archived";
|
|
199
197
|
paused: "paused";
|
|
198
|
+
draft: "draft";
|
|
199
|
+
archived: "archived";
|
|
200
200
|
}>>;
|
|
201
201
|
eligibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
202
202
|
validFrom: z.ZodOptional<z.ZodString>;
|
|
@@ -215,10 +215,10 @@ export declare function createAdminPromotionSchemas({ currencySchema: platformCu
|
|
|
215
215
|
stackable_with_loyalty: "stackable_with_loyalty";
|
|
216
216
|
}>>;
|
|
217
217
|
status: z.ZodOptional<z.ZodEnum<{
|
|
218
|
-
draft: "draft";
|
|
219
218
|
active: "active";
|
|
220
|
-
archived: "archived";
|
|
221
219
|
paused: "paused";
|
|
220
|
+
draft: "draft";
|
|
221
|
+
archived: "archived";
|
|
222
222
|
}>>;
|
|
223
223
|
eligibility: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
224
224
|
validFrom: z.ZodOptional<z.ZodString>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openlup/platform",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.28.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Runnable server substrate: Node HTTP runtime, BFF dispatch, scheduler, storage, data gateways and bundle composition; development preview.",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"api:update": "npm run build && node --experimental-strip-types ./scripts/api-contract.ts --update"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@openlup/core": "0.
|
|
34
|
+
"@openlup/core": "0.28.0",
|
|
35
35
|
"pg": "^8.22.0",
|
|
36
36
|
"@aws-sdk/client-s3": "^3.1144.0",
|
|
37
37
|
"@types/pg": "^8.20.0"
|
|
@@ -250,6 +250,16 @@
|
|
|
250
250
|
"types": "./dist/invoicing/contracts/index.d.ts",
|
|
251
251
|
"import": "./dist/invoicing/contracts/index.js",
|
|
252
252
|
"default": "./dist/invoicing/contracts/index.js"
|
|
253
|
+
},
|
|
254
|
+
"./account-support": {
|
|
255
|
+
"types": "./dist/account-support/index.d.ts",
|
|
256
|
+
"import": "./dist/account-support/index.js",
|
|
257
|
+
"default": "./dist/account-support/index.js"
|
|
258
|
+
},
|
|
259
|
+
"./account-support/contracts": {
|
|
260
|
+
"types": "./dist/account-support/contracts/index.d.ts",
|
|
261
|
+
"import": "./dist/account-support/contracts/index.js",
|
|
262
|
+
"default": "./dist/account-support/contracts/index.js"
|
|
253
263
|
}
|
|
254
264
|
},
|
|
255
265
|
"repository": {
|
package/release-gates.json
CHANGED
|
@@ -573,6 +573,32 @@
|
|
|
573
573
|
],
|
|
574
574
|
"entrypoint": "dist/invoicing/contracts/index.d.ts",
|
|
575
575
|
"snapshot": "api/invoicing-contracts.api.md"
|
|
576
|
+
},
|
|
577
|
+
"./account-support": {
|
|
578
|
+
"role": "capability",
|
|
579
|
+
"maturity": "experimental",
|
|
580
|
+
"compatibilityPolicy": "internal-candidate",
|
|
581
|
+
"packageSmokeEvidence": [
|
|
582
|
+
"test/account-support/contracts.test.ts",
|
|
583
|
+
"test/account-support/accountReadFacade.test.ts",
|
|
584
|
+
"test/account-support/browserSafety.test.ts",
|
|
585
|
+
"test/account-support/portFit.test.ts"
|
|
586
|
+
],
|
|
587
|
+
"entrypoint": "dist/account-support/index.d.ts",
|
|
588
|
+
"snapshot": "api/account-support.api.md"
|
|
589
|
+
},
|
|
590
|
+
"./account-support/contracts": {
|
|
591
|
+
"role": "capability",
|
|
592
|
+
"maturity": "experimental",
|
|
593
|
+
"compatibilityPolicy": "internal-candidate",
|
|
594
|
+
"packageSmokeEvidence": [
|
|
595
|
+
"test/account-support/contracts.test.ts",
|
|
596
|
+
"test/account-support/accountReadFacade.test.ts",
|
|
597
|
+
"test/account-support/browserSafety.test.ts",
|
|
598
|
+
"test/account-support/portFit.test.ts"
|
|
599
|
+
],
|
|
600
|
+
"entrypoint": "dist/account-support/contracts/index.d.ts",
|
|
601
|
+
"snapshot": "api/account-support-contracts.api.md"
|
|
576
602
|
}
|
|
577
603
|
},
|
|
578
604
|
"pack": {
|
|
@@ -588,8 +614,8 @@
|
|
|
588
614
|
"maxUnpackedBytes": 8970000,
|
|
589
615
|
"maxFiles": 2580,
|
|
590
616
|
"baseline": {
|
|
591
|
-
"version": "0.
|
|
592
|
-
"packedBytes":
|
|
617
|
+
"version": "0.27.0",
|
|
618
|
+
"packedBytes": 1734781
|
|
593
619
|
},
|
|
594
620
|
"browserEntries": {
|
|
595
621
|
"./catalog/contracts": 4096,
|
|
@@ -604,7 +630,8 @@
|
|
|
604
630
|
"./subscriptions/contracts": 32,
|
|
605
631
|
"./invoicing/contracts": 32,
|
|
606
632
|
"./commerce/contracts": 32,
|
|
607
|
-
"./pricing/browser": 25600
|
|
633
|
+
"./pricing/browser": 25600,
|
|
634
|
+
"./account-support/contracts": 32
|
|
608
635
|
}
|
|
609
636
|
}
|
|
610
637
|
}
|