@openlup/platform 0.27.0 → 0.29.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 +386 -127
- package/README.md +251 -9
- 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 +2 -0
- package/dist/composition/index.js +2 -0
- package/dist/composition/marketingContribution.d.ts +21 -0
- package/dist/composition/marketingContribution.js +29 -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/marketing/acquisitionCaseSchemas.d.ts +103 -0
- package/dist/marketing/acquisitionCaseSchemas.js +53 -0
- package/dist/marketing/acquisitionEvidenceSchemas.d.ts +105 -0
- package/dist/marketing/acquisitionEvidenceSchemas.js +55 -0
- package/dist/marketing/analytics/dataLayer.d.ts +18 -0
- package/dist/marketing/analytics/dataLayer.js +111 -0
- package/dist/marketing/analytics/noop.d.ts +9 -0
- package/dist/marketing/analytics/noop.js +8 -0
- package/dist/marketing/analytics/purchaseFacts.d.ts +4 -0
- package/dist/marketing/analytics/purchaseFacts.js +69 -0
- package/dist/marketing/analytics/routePolicy.d.ts +10 -0
- package/dist/marketing/analytics/routePolicy.js +59 -0
- package/dist/marketing/consentEvidence.d.ts +8 -0
- package/dist/marketing/consentEvidence.js +32 -0
- package/dist/marketing/contactLegal.d.ts +14 -0
- package/dist/marketing/contactLegal.js +19 -0
- package/dist/marketing/contracts/acquisition.d.ts +88 -0
- package/dist/marketing/contracts/acquisition.js +1 -0
- package/dist/marketing/contracts/acquisitionPorts.d.ts +49 -0
- package/dist/marketing/contracts/acquisitionPorts.js +1 -0
- package/dist/marketing/contracts/analytics.d.ts +144 -0
- package/dist/marketing/contracts/analytics.js +1 -0
- package/dist/marketing/contracts/contactLegal.d.ts +53 -0
- package/dist/marketing/contracts/contactLegal.js +1 -0
- package/dist/marketing/contracts/index.d.ts +6 -0
- package/dist/marketing/contracts/index.js +1 -0
- package/dist/marketing/contracts/prelaunch.d.ts +39 -0
- package/dist/marketing/contracts/prelaunch.js +1 -0
- package/dist/marketing/index.d.ts +16 -0
- package/dist/marketing/index.js +14 -0
- package/dist/marketing/prelaunchAcquisitionSchemas.d.ts +116 -0
- package/dist/marketing/prelaunchAcquisitionSchemas.js +51 -0
- package/dist/marketing/seo/jsonLd.d.ts +157 -0
- package/dist/marketing/seo/jsonLd.js +127 -0
- package/dist/marketing/seo/metadata.d.ts +41 -0
- package/dist/marketing/seo/metadata.js +36 -0
- package/dist/marketing/seo/serializeJsonLd.d.ts +1 -0
- package/dist/marketing/seo/serializeJsonLd.js +6 -0
- package/dist/marketing/seo/urls.d.ts +14 -0
- package/dist/marketing/seo/urls.js +23 -0
- package/dist/marketing/server/acquisitionCaseDirect.d.ts +4 -0
- package/dist/marketing/server/acquisitionCaseDirect.js +88 -0
- package/dist/marketing/server/acquisitionCaseHandlers.d.ts +28 -0
- package/dist/marketing/server/acquisitionCaseHandlers.js +40 -0
- package/dist/marketing/server/acquisitionCasePorts.d.ts +42 -0
- package/dist/marketing/server/acquisitionCasePorts.js +1 -0
- package/dist/marketing/server/acquisitionEvidenceDirect.d.ts +5 -0
- package/dist/marketing/server/acquisitionEvidenceDirect.js +100 -0
- package/dist/marketing/server/analyticsContext.d.ts +3 -0
- package/dist/marketing/server/analyticsContext.js +65 -0
- package/dist/marketing/server/analyticsContextPorts.d.ts +31 -0
- package/dist/marketing/server/analyticsContextPorts.js +1 -0
- package/dist/marketing/server/bindings.d.ts +14 -0
- package/dist/marketing/server/bindings.js +18 -0
- package/dist/marketing/server/directPorts.d.ts +26 -0
- package/dist/marketing/server/directPorts.js +1 -0
- package/dist/marketing/server/index.d.ts +14 -0
- package/dist/marketing/server/index.js +11 -0
- package/dist/marketing/server/postgres/acquisitionCaseRoutines.d.ts +10 -0
- package/dist/marketing/server/postgres/acquisitionCaseRoutines.js +204 -0
- package/dist/marketing/server/postgres/acquisitionEvidenceRoutines.d.ts +10 -0
- package/dist/marketing/server/postgres/acquisitionEvidenceRoutines.js +107 -0
- package/dist/marketing/server/postgres/index.d.ts +3 -0
- package/dist/marketing/server/postgres/index.js +3 -0
- package/dist/marketing/server/prelaunchAcquisitionDirect.d.ts +4 -0
- package/dist/marketing/server/prelaunchAcquisitionDirect.js +122 -0
- package/dist/marketing/server/privacyContributor.d.ts +66 -0
- package/dist/marketing/server/privacyContributor.js +87 -0
- package/dist/marketing/server/research/adminSurveyResponsesHandler.d.ts +9 -0
- package/dist/marketing/server/research/adminSurveyResponsesHandler.js +53 -0
- package/dist/marketing/server/research/managedSurveyResponseSubmit.d.ts +39 -0
- package/dist/marketing/server/research/managedSurveyResponseSubmit.js +102 -0
- package/dist/marketing/server/research/surveyResponseSubmitHandler.d.ts +8 -0
- package/dist/marketing/server/research/surveyResponseSubmitHandler.js +41 -0
- package/dist/marketing/validation.d.ts +2 -0
- package/dist/marketing/validation.js +3 -0
- 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 +32 -2
- package/release-gates.json +99 -4
- 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 +2 -0
- package/src/composition/marketingContribution.ts +37 -0
- package/src/marketing/acquisitionCaseSchemas.ts +75 -0
- package/src/marketing/acquisitionEvidenceSchemas.ts +72 -0
- package/src/marketing/analytics/dataLayer.ts +100 -0
- package/src/marketing/analytics/noop.ts +14 -0
- package/src/marketing/analytics/purchaseFacts.ts +63 -0
- package/src/marketing/analytics/routePolicy.ts +55 -0
- package/src/marketing/consentEvidence.ts +36 -0
- package/src/marketing/contactLegal.ts +22 -0
- package/src/marketing/contracts/acquisition.ts +50 -0
- package/src/marketing/contracts/acquisitionPorts.ts +48 -0
- package/src/marketing/contracts/analytics.ts +88 -0
- package/src/marketing/contracts/contactLegal.ts +41 -0
- package/src/marketing/contracts/index.ts +17 -0
- package/src/marketing/contracts/prelaunch.ts +15 -0
- package/src/marketing/index.ts +16 -0
- package/src/marketing/prelaunchAcquisitionSchemas.ts +64 -0
- package/src/marketing/seo/jsonLd.ts +153 -0
- package/src/marketing/seo/metadata.ts +62 -0
- package/src/marketing/seo/serializeJsonLd.ts +6 -0
- package/src/marketing/seo/urls.ts +34 -0
- package/src/marketing/server/acquisitionCaseDirect.ts +67 -0
- package/src/marketing/server/acquisitionCaseHandlers.ts +57 -0
- package/src/marketing/server/acquisitionCasePorts.ts +42 -0
- package/src/marketing/server/acquisitionEvidenceDirect.ts +76 -0
- package/src/marketing/server/analyticsContext.ts +55 -0
- package/src/marketing/server/analyticsContextPorts.ts +28 -0
- package/src/marketing/server/bindings.ts +27 -0
- package/src/marketing/server/directPorts.ts +27 -0
- package/src/marketing/server/index.ts +14 -0
- package/src/marketing/server/postgres/acquisitionCaseRoutines.ts +218 -0
- package/src/marketing/server/postgres/acquisitionEvidenceRoutines.ts +103 -0
- package/src/marketing/server/postgres/index.ts +3 -0
- package/src/marketing/server/prelaunchAcquisitionDirect.ts +121 -0
- package/src/marketing/server/privacyContributor.ts +123 -0
- package/src/marketing/server/research/adminSurveyResponsesHandler.ts +78 -0
- package/src/marketing/server/research/managedSurveyResponseSubmit.ts +158 -0
- package/src/marketing/server/research/surveyResponseSubmitHandler.ts +57 -0
- package/src/marketing/validation.ts +3 -0
|
@@ -6,8 +6,8 @@ export declare const orderReviewMediaReferenceSchema: z.ZodString;
|
|
|
6
6
|
export declare const orderReviewUploadCapabilitySchema: z.ZodString;
|
|
7
7
|
export declare const orderReviewCommandKeySchema: z.ZodString;
|
|
8
8
|
export declare const orderReviewContentTypeSchema: z.ZodEnum<{
|
|
9
|
-
"image/png": "image/png";
|
|
10
9
|
"image/jpeg": "image/jpeg";
|
|
10
|
+
"image/png": "image/png";
|
|
11
11
|
"image/webp": "image/webp";
|
|
12
12
|
}>;
|
|
13
13
|
export declare const orderReviewSchema: z.ZodObject<{
|
|
@@ -30,8 +30,8 @@ export declare const orderReviewMediaSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
30
30
|
observedDigest: z.ZodNull;
|
|
31
31
|
mediaRef: z.ZodString;
|
|
32
32
|
declaredContentType: z.ZodEnum<{
|
|
33
|
-
"image/png": "image/png";
|
|
34
33
|
"image/jpeg": "image/jpeg";
|
|
34
|
+
"image/png": "image/png";
|
|
35
35
|
"image/webp": "image/webp";
|
|
36
36
|
}>;
|
|
37
37
|
declaredByteLength: z.ZodNumber;
|
|
@@ -41,16 +41,16 @@ export declare const orderReviewMediaSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
41
41
|
confirmed: "confirmed";
|
|
42
42
|
}>;
|
|
43
43
|
observedContentType: z.ZodEnum<{
|
|
44
|
-
"image/png": "image/png";
|
|
45
44
|
"image/jpeg": "image/jpeg";
|
|
45
|
+
"image/png": "image/png";
|
|
46
46
|
"image/webp": "image/webp";
|
|
47
47
|
}>;
|
|
48
48
|
observedByteLength: z.ZodNumber;
|
|
49
49
|
observedDigest: z.ZodString;
|
|
50
50
|
mediaRef: z.ZodString;
|
|
51
51
|
declaredContentType: z.ZodEnum<{
|
|
52
|
-
"image/png": "image/png";
|
|
53
52
|
"image/jpeg": "image/jpeg";
|
|
53
|
+
"image/png": "image/png";
|
|
54
54
|
"image/webp": "image/webp";
|
|
55
55
|
}>;
|
|
56
56
|
declaredByteLength: z.ZodNumber;
|
|
@@ -60,16 +60,16 @@ export declare const orderReviewMediaSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
60
60
|
deleted: "deleted";
|
|
61
61
|
}>;
|
|
62
62
|
observedContentType: z.ZodNullable<z.ZodEnum<{
|
|
63
|
-
"image/png": "image/png";
|
|
64
63
|
"image/jpeg": "image/jpeg";
|
|
64
|
+
"image/png": "image/png";
|
|
65
65
|
"image/webp": "image/webp";
|
|
66
66
|
}>>;
|
|
67
67
|
observedByteLength: z.ZodNullable<z.ZodNumber>;
|
|
68
68
|
observedDigest: z.ZodNullable<z.ZodString>;
|
|
69
69
|
mediaRef: z.ZodString;
|
|
70
70
|
declaredContentType: z.ZodEnum<{
|
|
71
|
-
"image/png": "image/png";
|
|
72
71
|
"image/jpeg": "image/jpeg";
|
|
72
|
+
"image/png": "image/png";
|
|
73
73
|
"image/webp": "image/webp";
|
|
74
74
|
}>;
|
|
75
75
|
declaredByteLength: z.ZodNumber;
|
|
@@ -95,8 +95,8 @@ export declare const orderReviewReadResultSchema: z.ZodObject<{
|
|
|
95
95
|
observedDigest: z.ZodNull;
|
|
96
96
|
mediaRef: z.ZodString;
|
|
97
97
|
declaredContentType: z.ZodEnum<{
|
|
98
|
-
"image/png": "image/png";
|
|
99
98
|
"image/jpeg": "image/jpeg";
|
|
99
|
+
"image/png": "image/png";
|
|
100
100
|
"image/webp": "image/webp";
|
|
101
101
|
}>;
|
|
102
102
|
declaredByteLength: z.ZodNumber;
|
|
@@ -106,16 +106,16 @@ export declare const orderReviewReadResultSchema: z.ZodObject<{
|
|
|
106
106
|
confirmed: "confirmed";
|
|
107
107
|
}>;
|
|
108
108
|
observedContentType: z.ZodEnum<{
|
|
109
|
-
"image/png": "image/png";
|
|
110
109
|
"image/jpeg": "image/jpeg";
|
|
110
|
+
"image/png": "image/png";
|
|
111
111
|
"image/webp": "image/webp";
|
|
112
112
|
}>;
|
|
113
113
|
observedByteLength: z.ZodNumber;
|
|
114
114
|
observedDigest: z.ZodString;
|
|
115
115
|
mediaRef: z.ZodString;
|
|
116
116
|
declaredContentType: z.ZodEnum<{
|
|
117
|
-
"image/png": "image/png";
|
|
118
117
|
"image/jpeg": "image/jpeg";
|
|
118
|
+
"image/png": "image/png";
|
|
119
119
|
"image/webp": "image/webp";
|
|
120
120
|
}>;
|
|
121
121
|
declaredByteLength: z.ZodNumber;
|
|
@@ -125,16 +125,16 @@ export declare const orderReviewReadResultSchema: z.ZodObject<{
|
|
|
125
125
|
deleted: "deleted";
|
|
126
126
|
}>;
|
|
127
127
|
observedContentType: z.ZodNullable<z.ZodEnum<{
|
|
128
|
-
"image/png": "image/png";
|
|
129
128
|
"image/jpeg": "image/jpeg";
|
|
129
|
+
"image/png": "image/png";
|
|
130
130
|
"image/webp": "image/webp";
|
|
131
131
|
}>>;
|
|
132
132
|
observedByteLength: z.ZodNullable<z.ZodNumber>;
|
|
133
133
|
observedDigest: z.ZodNullable<z.ZodString>;
|
|
134
134
|
mediaRef: z.ZodString;
|
|
135
135
|
declaredContentType: z.ZodEnum<{
|
|
136
|
-
"image/png": "image/png";
|
|
137
136
|
"image/jpeg": "image/jpeg";
|
|
137
|
+
"image/png": "image/png";
|
|
138
138
|
"image/webp": "image/webp";
|
|
139
139
|
}>;
|
|
140
140
|
declaredByteLength: z.ZodNumber;
|
|
@@ -161,8 +161,8 @@ export declare const orderReviewAdminDetailSchema: z.ZodObject<{
|
|
|
161
161
|
observedDigest: z.ZodNull;
|
|
162
162
|
mediaRef: z.ZodString;
|
|
163
163
|
declaredContentType: z.ZodEnum<{
|
|
164
|
-
"image/png": "image/png";
|
|
165
164
|
"image/jpeg": "image/jpeg";
|
|
165
|
+
"image/png": "image/png";
|
|
166
166
|
"image/webp": "image/webp";
|
|
167
167
|
}>;
|
|
168
168
|
declaredByteLength: z.ZodNumber;
|
|
@@ -172,16 +172,16 @@ export declare const orderReviewAdminDetailSchema: z.ZodObject<{
|
|
|
172
172
|
confirmed: "confirmed";
|
|
173
173
|
}>;
|
|
174
174
|
observedContentType: z.ZodEnum<{
|
|
175
|
-
"image/png": "image/png";
|
|
176
175
|
"image/jpeg": "image/jpeg";
|
|
176
|
+
"image/png": "image/png";
|
|
177
177
|
"image/webp": "image/webp";
|
|
178
178
|
}>;
|
|
179
179
|
observedByteLength: z.ZodNumber;
|
|
180
180
|
observedDigest: z.ZodString;
|
|
181
181
|
mediaRef: z.ZodString;
|
|
182
182
|
declaredContentType: z.ZodEnum<{
|
|
183
|
-
"image/png": "image/png";
|
|
184
183
|
"image/jpeg": "image/jpeg";
|
|
184
|
+
"image/png": "image/png";
|
|
185
185
|
"image/webp": "image/webp";
|
|
186
186
|
}>;
|
|
187
187
|
declaredByteLength: z.ZodNumber;
|
|
@@ -191,16 +191,16 @@ export declare const orderReviewAdminDetailSchema: z.ZodObject<{
|
|
|
191
191
|
deleted: "deleted";
|
|
192
192
|
}>;
|
|
193
193
|
observedContentType: z.ZodNullable<z.ZodEnum<{
|
|
194
|
-
"image/png": "image/png";
|
|
195
194
|
"image/jpeg": "image/jpeg";
|
|
195
|
+
"image/png": "image/png";
|
|
196
196
|
"image/webp": "image/webp";
|
|
197
197
|
}>>;
|
|
198
198
|
observedByteLength: z.ZodNullable<z.ZodNumber>;
|
|
199
199
|
observedDigest: z.ZodNullable<z.ZodString>;
|
|
200
200
|
mediaRef: z.ZodString;
|
|
201
201
|
declaredContentType: z.ZodEnum<{
|
|
202
|
-
"image/png": "image/png";
|
|
203
202
|
"image/jpeg": "image/jpeg";
|
|
203
|
+
"image/png": "image/png";
|
|
204
204
|
"image/webp": "image/webp";
|
|
205
205
|
}>;
|
|
206
206
|
declaredByteLength: z.ZodNumber;
|
|
@@ -215,8 +215,8 @@ export declare const orderReviewSubmitSchema: z.ZodObject<{
|
|
|
215
215
|
export declare const orderReviewMediaIntentSchema: z.ZodObject<{
|
|
216
216
|
grant: z.ZodString;
|
|
217
217
|
contentType: z.ZodEnum<{
|
|
218
|
-
"image/png": "image/png";
|
|
219
218
|
"image/jpeg": "image/jpeg";
|
|
219
|
+
"image/png": "image/png";
|
|
220
220
|
"image/webp": "image/webp";
|
|
221
221
|
}>;
|
|
222
222
|
byteLength: z.ZodNumber;
|
|
@@ -231,8 +231,8 @@ export declare const orderReviewMediaIntentResultSchema: z.ZodObject<{
|
|
|
231
231
|
observedDigest: z.ZodNull;
|
|
232
232
|
mediaRef: z.ZodString;
|
|
233
233
|
declaredContentType: z.ZodEnum<{
|
|
234
|
-
"image/png": "image/png";
|
|
235
234
|
"image/jpeg": "image/jpeg";
|
|
235
|
+
"image/png": "image/png";
|
|
236
236
|
"image/webp": "image/webp";
|
|
237
237
|
}>;
|
|
238
238
|
declaredByteLength: z.ZodNumber;
|
|
@@ -242,16 +242,16 @@ export declare const orderReviewMediaIntentResultSchema: z.ZodObject<{
|
|
|
242
242
|
confirmed: "confirmed";
|
|
243
243
|
}>;
|
|
244
244
|
observedContentType: z.ZodEnum<{
|
|
245
|
-
"image/png": "image/png";
|
|
246
245
|
"image/jpeg": "image/jpeg";
|
|
246
|
+
"image/png": "image/png";
|
|
247
247
|
"image/webp": "image/webp";
|
|
248
248
|
}>;
|
|
249
249
|
observedByteLength: z.ZodNumber;
|
|
250
250
|
observedDigest: z.ZodString;
|
|
251
251
|
mediaRef: z.ZodString;
|
|
252
252
|
declaredContentType: z.ZodEnum<{
|
|
253
|
-
"image/png": "image/png";
|
|
254
253
|
"image/jpeg": "image/jpeg";
|
|
254
|
+
"image/png": "image/png";
|
|
255
255
|
"image/webp": "image/webp";
|
|
256
256
|
}>;
|
|
257
257
|
declaredByteLength: z.ZodNumber;
|
|
@@ -261,16 +261,16 @@ export declare const orderReviewMediaIntentResultSchema: z.ZodObject<{
|
|
|
261
261
|
deleted: "deleted";
|
|
262
262
|
}>;
|
|
263
263
|
observedContentType: z.ZodNullable<z.ZodEnum<{
|
|
264
|
-
"image/png": "image/png";
|
|
265
264
|
"image/jpeg": "image/jpeg";
|
|
265
|
+
"image/png": "image/png";
|
|
266
266
|
"image/webp": "image/webp";
|
|
267
267
|
}>>;
|
|
268
268
|
observedByteLength: z.ZodNullable<z.ZodNumber>;
|
|
269
269
|
observedDigest: z.ZodNullable<z.ZodString>;
|
|
270
270
|
mediaRef: z.ZodString;
|
|
271
271
|
declaredContentType: z.ZodEnum<{
|
|
272
|
-
"image/png": "image/png";
|
|
273
272
|
"image/jpeg": "image/jpeg";
|
|
273
|
+
"image/png": "image/png";
|
|
274
274
|
"image/webp": "image/webp";
|
|
275
275
|
}>;
|
|
276
276
|
declaredByteLength: z.ZodNumber;
|
|
@@ -305,8 +305,8 @@ export declare const orderReviewCustomerCommandSchema: z.ZodDiscriminatedUnion<[
|
|
|
305
305
|
input: z.ZodObject<{
|
|
306
306
|
grant: z.ZodString;
|
|
307
307
|
contentType: z.ZodEnum<{
|
|
308
|
-
"image/png": "image/png";
|
|
309
308
|
"image/jpeg": "image/jpeg";
|
|
309
|
+
"image/png": "image/png";
|
|
310
310
|
"image/webp": "image/webp";
|
|
311
311
|
}>;
|
|
312
312
|
byteLength: z.ZodNumber;
|
|
@@ -347,8 +347,8 @@ export declare const orderReviewCustomerResultSchema: z.ZodDiscriminatedUnion<[z
|
|
|
347
347
|
observedDigest: z.ZodNull;
|
|
348
348
|
mediaRef: z.ZodString;
|
|
349
349
|
declaredContentType: z.ZodEnum<{
|
|
350
|
-
"image/png": "image/png";
|
|
351
350
|
"image/jpeg": "image/jpeg";
|
|
351
|
+
"image/png": "image/png";
|
|
352
352
|
"image/webp": "image/webp";
|
|
353
353
|
}>;
|
|
354
354
|
declaredByteLength: z.ZodNumber;
|
|
@@ -358,16 +358,16 @@ export declare const orderReviewCustomerResultSchema: z.ZodDiscriminatedUnion<[z
|
|
|
358
358
|
confirmed: "confirmed";
|
|
359
359
|
}>;
|
|
360
360
|
observedContentType: z.ZodEnum<{
|
|
361
|
-
"image/png": "image/png";
|
|
362
361
|
"image/jpeg": "image/jpeg";
|
|
362
|
+
"image/png": "image/png";
|
|
363
363
|
"image/webp": "image/webp";
|
|
364
364
|
}>;
|
|
365
365
|
observedByteLength: z.ZodNumber;
|
|
366
366
|
observedDigest: z.ZodString;
|
|
367
367
|
mediaRef: z.ZodString;
|
|
368
368
|
declaredContentType: z.ZodEnum<{
|
|
369
|
-
"image/png": "image/png";
|
|
370
369
|
"image/jpeg": "image/jpeg";
|
|
370
|
+
"image/png": "image/png";
|
|
371
371
|
"image/webp": "image/webp";
|
|
372
372
|
}>;
|
|
373
373
|
declaredByteLength: z.ZodNumber;
|
|
@@ -377,16 +377,16 @@ export declare const orderReviewCustomerResultSchema: z.ZodDiscriminatedUnion<[z
|
|
|
377
377
|
deleted: "deleted";
|
|
378
378
|
}>;
|
|
379
379
|
observedContentType: z.ZodNullable<z.ZodEnum<{
|
|
380
|
-
"image/png": "image/png";
|
|
381
380
|
"image/jpeg": "image/jpeg";
|
|
381
|
+
"image/png": "image/png";
|
|
382
382
|
"image/webp": "image/webp";
|
|
383
383
|
}>>;
|
|
384
384
|
observedByteLength: z.ZodNullable<z.ZodNumber>;
|
|
385
385
|
observedDigest: z.ZodNullable<z.ZodString>;
|
|
386
386
|
mediaRef: z.ZodString;
|
|
387
387
|
declaredContentType: z.ZodEnum<{
|
|
388
|
-
"image/png": "image/png";
|
|
389
388
|
"image/jpeg": "image/jpeg";
|
|
389
|
+
"image/png": "image/png";
|
|
390
390
|
"image/webp": "image/webp";
|
|
391
391
|
}>;
|
|
392
392
|
declaredByteLength: z.ZodNumber;
|
|
@@ -403,8 +403,8 @@ export declare const orderReviewCustomerResultSchema: z.ZodDiscriminatedUnion<[z
|
|
|
403
403
|
observedDigest: z.ZodNull;
|
|
404
404
|
mediaRef: z.ZodString;
|
|
405
405
|
declaredContentType: z.ZodEnum<{
|
|
406
|
-
"image/png": "image/png";
|
|
407
406
|
"image/jpeg": "image/jpeg";
|
|
407
|
+
"image/png": "image/png";
|
|
408
408
|
"image/webp": "image/webp";
|
|
409
409
|
}>;
|
|
410
410
|
declaredByteLength: z.ZodNumber;
|
|
@@ -414,16 +414,16 @@ export declare const orderReviewCustomerResultSchema: z.ZodDiscriminatedUnion<[z
|
|
|
414
414
|
confirmed: "confirmed";
|
|
415
415
|
}>;
|
|
416
416
|
observedContentType: z.ZodEnum<{
|
|
417
|
-
"image/png": "image/png";
|
|
418
417
|
"image/jpeg": "image/jpeg";
|
|
418
|
+
"image/png": "image/png";
|
|
419
419
|
"image/webp": "image/webp";
|
|
420
420
|
}>;
|
|
421
421
|
observedByteLength: z.ZodNumber;
|
|
422
422
|
observedDigest: z.ZodString;
|
|
423
423
|
mediaRef: z.ZodString;
|
|
424
424
|
declaredContentType: z.ZodEnum<{
|
|
425
|
-
"image/png": "image/png";
|
|
426
425
|
"image/jpeg": "image/jpeg";
|
|
426
|
+
"image/png": "image/png";
|
|
427
427
|
"image/webp": "image/webp";
|
|
428
428
|
}>;
|
|
429
429
|
declaredByteLength: z.ZodNumber;
|
|
@@ -433,16 +433,16 @@ export declare const orderReviewCustomerResultSchema: z.ZodDiscriminatedUnion<[z
|
|
|
433
433
|
deleted: "deleted";
|
|
434
434
|
}>;
|
|
435
435
|
observedContentType: z.ZodNullable<z.ZodEnum<{
|
|
436
|
-
"image/png": "image/png";
|
|
437
436
|
"image/jpeg": "image/jpeg";
|
|
437
|
+
"image/png": "image/png";
|
|
438
438
|
"image/webp": "image/webp";
|
|
439
439
|
}>>;
|
|
440
440
|
observedByteLength: z.ZodNullable<z.ZodNumber>;
|
|
441
441
|
observedDigest: z.ZodNullable<z.ZodString>;
|
|
442
442
|
mediaRef: z.ZodString;
|
|
443
443
|
declaredContentType: z.ZodEnum<{
|
|
444
|
-
"image/png": "image/png";
|
|
445
444
|
"image/jpeg": "image/jpeg";
|
|
445
|
+
"image/png": "image/png";
|
|
446
446
|
"image/webp": "image/webp";
|
|
447
447
|
}>;
|
|
448
448
|
declaredByteLength: z.ZodNumber;
|
|
@@ -49,9 +49,9 @@ export declare function createCommerceOutboxEventSchemas<Quote extends z.ZodType
|
|
|
49
49
|
event_type: z.ZodLiteral<"commerce.order_draft.created">;
|
|
50
50
|
idempotency_key: z.ZodString;
|
|
51
51
|
status: z.ZodEnum<{
|
|
52
|
+
pending: "pending";
|
|
52
53
|
failed: "failed";
|
|
53
54
|
processing: "processing";
|
|
54
|
-
pending: "pending";
|
|
55
55
|
processed: "processed";
|
|
56
56
|
discarded: "discarded";
|
|
57
57
|
}>;
|
|
@@ -76,9 +76,9 @@ export declare function createCommerceOutboxEventSchemas<Quote extends z.ZodType
|
|
|
76
76
|
eventType: z.ZodLiteral<"commerce.order_draft.created">;
|
|
77
77
|
idempotencyKey: z.ZodString;
|
|
78
78
|
status: z.ZodEnum<{
|
|
79
|
+
pending: "pending";
|
|
79
80
|
failed: "failed";
|
|
80
81
|
processing: "processing";
|
|
81
|
-
pending: "pending";
|
|
82
82
|
processed: "processed";
|
|
83
83
|
discarded: "discarded";
|
|
84
84
|
}>;
|
|
@@ -103,9 +103,9 @@ export declare function createCommerceOutboxEventSchemas<Quote extends z.ZodType
|
|
|
103
103
|
eventType: z.ZodLiteral<"commerce.order_draft.created">;
|
|
104
104
|
idempotencyKey: z.ZodString;
|
|
105
105
|
status: z.ZodEnum<{
|
|
106
|
+
pending: "pending";
|
|
106
107
|
failed: "failed";
|
|
107
108
|
processing: "processing";
|
|
108
|
-
pending: "pending";
|
|
109
109
|
processed: "processed";
|
|
110
110
|
discarded: "discarded";
|
|
111
111
|
}>;
|
|
@@ -136,9 +136,9 @@ export declare const commerceOrderPaidOutboxRecordSchema: z.ZodObject<{
|
|
|
136
136
|
event_type: z.ZodLiteral<"commerce.order.paid">;
|
|
137
137
|
idempotency_key: z.ZodString;
|
|
138
138
|
status: z.ZodEnum<{
|
|
139
|
+
pending: "pending";
|
|
139
140
|
failed: "failed";
|
|
140
141
|
processing: "processing";
|
|
141
|
-
pending: "pending";
|
|
142
142
|
processed: "processed";
|
|
143
143
|
discarded: "discarded";
|
|
144
144
|
}>;
|
|
@@ -42,9 +42,9 @@ export declare function createCommerceSchemas<Line extends z.ZodType, Currency e
|
|
|
42
42
|
id: z.ZodString;
|
|
43
43
|
cartId: z.ZodString;
|
|
44
44
|
status: z.ZodEnum<{
|
|
45
|
-
expired: "expired";
|
|
46
45
|
not_configured: "not_configured";
|
|
47
46
|
created: "created";
|
|
47
|
+
expired: "expired";
|
|
48
48
|
}>;
|
|
49
49
|
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
50
50
|
paymentProviderSessionId: z.ZodNullable<z.ZodString>;
|
|
@@ -80,23 +80,23 @@ export declare function createCommerceSchemas<Line extends z.ZodType, Currency e
|
|
|
80
80
|
orderSummarySchema: z.ZodObject<{
|
|
81
81
|
id: z.ZodString;
|
|
82
82
|
status: z.ZodEnum<{
|
|
83
|
+
failed: "failed";
|
|
84
|
+
cancelled: "cancelled";
|
|
85
|
+
paid: "paid";
|
|
86
|
+
pending_payment: "pending_payment";
|
|
83
87
|
draft: "draft";
|
|
84
88
|
expired: "expired";
|
|
85
|
-
pending_payment: "pending_payment";
|
|
86
|
-
paid: "paid";
|
|
87
|
-
failed: "failed";
|
|
88
89
|
fulfillment_pending: "fulfillment_pending";
|
|
89
|
-
cancelled: "cancelled";
|
|
90
90
|
fulfilled: "fulfilled";
|
|
91
91
|
refunded: "refunded";
|
|
92
92
|
}>;
|
|
93
93
|
paymentStatus: z.ZodEnum<{
|
|
94
|
-
|
|
95
|
-
paid: "paid";
|
|
94
|
+
requires_action: "requires_action";
|
|
96
95
|
failed: "failed";
|
|
96
|
+
paid: "paid";
|
|
97
|
+
expired: "expired";
|
|
97
98
|
refunded: "refunded";
|
|
98
99
|
not_started: "not_started";
|
|
99
|
-
requires_action: "requires_action";
|
|
100
100
|
processing: "processing";
|
|
101
101
|
partially_refunded: "partially_refunded";
|
|
102
102
|
disputed: "disputed";
|
|
@@ -109,23 +109,23 @@ export declare function createCommerceSchemas<Line extends z.ZodType, Currency e
|
|
|
109
109
|
order: z.ZodObject<{
|
|
110
110
|
id: z.ZodString;
|
|
111
111
|
status: z.ZodEnum<{
|
|
112
|
+
failed: "failed";
|
|
113
|
+
cancelled: "cancelled";
|
|
114
|
+
paid: "paid";
|
|
115
|
+
pending_payment: "pending_payment";
|
|
112
116
|
draft: "draft";
|
|
113
117
|
expired: "expired";
|
|
114
|
-
pending_payment: "pending_payment";
|
|
115
|
-
paid: "paid";
|
|
116
|
-
failed: "failed";
|
|
117
118
|
fulfillment_pending: "fulfillment_pending";
|
|
118
|
-
cancelled: "cancelled";
|
|
119
119
|
fulfilled: "fulfilled";
|
|
120
120
|
refunded: "refunded";
|
|
121
121
|
}>;
|
|
122
122
|
paymentStatus: z.ZodEnum<{
|
|
123
|
-
|
|
124
|
-
paid: "paid";
|
|
123
|
+
requires_action: "requires_action";
|
|
125
124
|
failed: "failed";
|
|
125
|
+
paid: "paid";
|
|
126
|
+
expired: "expired";
|
|
126
127
|
refunded: "refunded";
|
|
127
128
|
not_started: "not_started";
|
|
128
|
-
requires_action: "requires_action";
|
|
129
129
|
processing: "processing";
|
|
130
130
|
partially_refunded: "partially_refunded";
|
|
131
131
|
disputed: "disputed";
|
|
@@ -138,12 +138,12 @@ export declare function createCommerceSchemas<Line extends z.ZodType, Currency e
|
|
|
138
138
|
id: z.ZodString;
|
|
139
139
|
orderId: z.ZodString;
|
|
140
140
|
status: z.ZodEnum<{
|
|
141
|
-
|
|
142
|
-
paid: "paid";
|
|
141
|
+
requires_action: "requires_action";
|
|
143
142
|
failed: "failed";
|
|
143
|
+
paid: "paid";
|
|
144
|
+
expired: "expired";
|
|
144
145
|
refunded: "refunded";
|
|
145
146
|
not_started: "not_started";
|
|
146
|
-
requires_action: "requires_action";
|
|
147
147
|
processing: "processing";
|
|
148
148
|
partially_refunded: "partially_refunded";
|
|
149
149
|
disputed: "disputed";
|
|
@@ -157,12 +157,12 @@ export declare function createCommerceSchemas<Line extends z.ZodType, Currency e
|
|
|
157
157
|
id: z.ZodString;
|
|
158
158
|
orderId: z.ZodString;
|
|
159
159
|
status: z.ZodEnum<{
|
|
160
|
-
|
|
161
|
-
paid: "paid";
|
|
160
|
+
requires_action: "requires_action";
|
|
162
161
|
failed: "failed";
|
|
162
|
+
paid: "paid";
|
|
163
|
+
expired: "expired";
|
|
163
164
|
refunded: "refunded";
|
|
164
165
|
not_started: "not_started";
|
|
165
|
-
requires_action: "requires_action";
|
|
166
166
|
processing: "processing";
|
|
167
167
|
partially_refunded: "partially_refunded";
|
|
168
168
|
disputed: "disputed";
|
|
@@ -38,23 +38,23 @@ export declare function createOrderReviewHandlers(port: OrderReviewLifecyclePort
|
|
|
38
38
|
observedByteLength: null;
|
|
39
39
|
observedDigest: null;
|
|
40
40
|
mediaRef: string;
|
|
41
|
-
declaredContentType: "image/
|
|
41
|
+
declaredContentType: "image/jpeg" | "image/png" | "image/webp";
|
|
42
42
|
declaredByteLength: number;
|
|
43
43
|
} | {
|
|
44
44
|
state: "stored" | "confirmed";
|
|
45
|
-
observedContentType: "image/
|
|
45
|
+
observedContentType: "image/jpeg" | "image/png" | "image/webp";
|
|
46
46
|
observedByteLength: number;
|
|
47
47
|
observedDigest: string;
|
|
48
48
|
mediaRef: string;
|
|
49
|
-
declaredContentType: "image/
|
|
49
|
+
declaredContentType: "image/jpeg" | "image/png" | "image/webp";
|
|
50
50
|
declaredByteLength: number;
|
|
51
51
|
} | {
|
|
52
52
|
state: "cleanup_pending" | "deleted";
|
|
53
|
-
observedContentType: "image/
|
|
53
|
+
observedContentType: "image/jpeg" | "image/png" | "image/webp" | null;
|
|
54
54
|
observedByteLength: number | null;
|
|
55
55
|
observedDigest: string | null;
|
|
56
56
|
mediaRef: string;
|
|
57
|
-
declaredContentType: "image/
|
|
57
|
+
declaredContentType: "image/jpeg" | "image/png" | "image/webp";
|
|
58
58
|
declaredByteLength: number;
|
|
59
59
|
};
|
|
60
60
|
uploadExpiresAt: string;
|
|
@@ -73,23 +73,23 @@ export declare function createOrderReviewHandlers(port: OrderReviewLifecyclePort
|
|
|
73
73
|
observedByteLength: null;
|
|
74
74
|
observedDigest: null;
|
|
75
75
|
mediaRef: string;
|
|
76
|
-
declaredContentType: "image/
|
|
76
|
+
declaredContentType: "image/jpeg" | "image/png" | "image/webp";
|
|
77
77
|
declaredByteLength: number;
|
|
78
78
|
} | {
|
|
79
79
|
state: "stored" | "confirmed";
|
|
80
|
-
observedContentType: "image/
|
|
80
|
+
observedContentType: "image/jpeg" | "image/png" | "image/webp";
|
|
81
81
|
observedByteLength: number;
|
|
82
82
|
observedDigest: string;
|
|
83
83
|
mediaRef: string;
|
|
84
|
-
declaredContentType: "image/
|
|
84
|
+
declaredContentType: "image/jpeg" | "image/png" | "image/webp";
|
|
85
85
|
declaredByteLength: number;
|
|
86
86
|
} | {
|
|
87
87
|
state: "cleanup_pending" | "deleted";
|
|
88
|
-
observedContentType: "image/
|
|
88
|
+
observedContentType: "image/jpeg" | "image/png" | "image/webp" | null;
|
|
89
89
|
observedByteLength: number | null;
|
|
90
90
|
observedDigest: string | null;
|
|
91
91
|
mediaRef: string;
|
|
92
|
-
declaredContentType: "image/
|
|
92
|
+
declaredContentType: "image/jpeg" | "image/png" | "image/webp";
|
|
93
93
|
declaredByteLength: number;
|
|
94
94
|
};
|
|
95
95
|
replayed: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { CommunicationPurpose } from "./contracts/types.js";
|
|
2
2
|
import type { CommunicationPurposeDefinition, CommunicationPurposeRegistry } from "./contracts/consent.js";
|
|
3
3
|
export declare function createCommunicationPurposeRegistry<const Purpose extends string = never>(additions?: readonly CommunicationPurposeDefinition<Purpose>[]): CommunicationPurposeRegistry<CommunicationPurpose | Purpose>;
|
|
4
|
-
export declare const defaultCommunicationPurposeRegistry: CommunicationPurposeRegistry<"
|
|
4
|
+
export declare const defaultCommunicationPurposeRegistry: CommunicationPurposeRegistry<"subscription_dunning" | "transactional" | "marketing_launch_offer" | "marketing_newsletter" | "tester_program" | "admin_notification">;
|
|
@@ -15,18 +15,18 @@ export declare const newsletterMarketingPurposeSchema: z.ZodEnum<{
|
|
|
15
15
|
marketing_newsletter: "marketing_newsletter";
|
|
16
16
|
}>;
|
|
17
17
|
export declare const newsletterSyncEventTypeSchema: z.ZodEnum<{
|
|
18
|
+
suppress: "suppress";
|
|
18
19
|
update: "update";
|
|
19
20
|
subscribe: "subscribe";
|
|
20
21
|
unsubscribe: "unsubscribe";
|
|
21
|
-
suppress: "suppress";
|
|
22
22
|
}>;
|
|
23
23
|
export declare const newsletterWebhookEventTypeSchema: z.ZodEnum<{
|
|
24
|
-
update: "update";
|
|
25
24
|
ignored: "ignored";
|
|
25
|
+
suppress: "suppress";
|
|
26
|
+
update: "update";
|
|
26
27
|
email_change: "email_change";
|
|
27
28
|
subscribe: "subscribe";
|
|
28
29
|
unsubscribe: "unsubscribe";
|
|
29
|
-
suppress: "suppress";
|
|
30
30
|
complaint: "complaint";
|
|
31
31
|
bounce: "bounce";
|
|
32
32
|
profile_update: "profile_update";
|
|
@@ -46,12 +46,12 @@ export declare const canonicalNewsletterWebhookEventSchema: z.ZodObject<{
|
|
|
46
46
|
providerKind: z.ZodString;
|
|
47
47
|
providerEventId: z.ZodString;
|
|
48
48
|
eventType: z.ZodEnum<{
|
|
49
|
-
update: "update";
|
|
50
49
|
ignored: "ignored";
|
|
50
|
+
suppress: "suppress";
|
|
51
|
+
update: "update";
|
|
51
52
|
email_change: "email_change";
|
|
52
53
|
subscribe: "subscribe";
|
|
53
54
|
unsubscribe: "unsubscribe";
|
|
54
|
-
suppress: "suppress";
|
|
55
55
|
complaint: "complaint";
|
|
56
56
|
bounce: "bounce";
|
|
57
57
|
profile_update: "profile_update";
|
|
@@ -85,12 +85,12 @@ export declare function createNewsletterIntegrationSchemas<Purpose extends strin
|
|
|
85
85
|
providerKind: z.ZodString;
|
|
86
86
|
providerEventId: z.ZodString;
|
|
87
87
|
eventType: z.ZodEnum<{
|
|
88
|
-
update: "update";
|
|
89
88
|
ignored: "ignored";
|
|
89
|
+
suppress: "suppress";
|
|
90
|
+
update: "update";
|
|
90
91
|
email_change: "email_change";
|
|
91
92
|
subscribe: "subscribe";
|
|
92
93
|
unsubscribe: "unsubscribe";
|
|
93
|
-
suppress: "suppress";
|
|
94
94
|
complaint: "complaint";
|
|
95
95
|
bounce: "bounce";
|
|
96
96
|
profile_update: "profile_update";
|
|
@@ -114,10 +114,10 @@ export declare function createNewsletterIntegrationSchemas<Purpose extends strin
|
|
|
114
114
|
contactId: z.ZodString;
|
|
115
115
|
normalizedEmail: z.ZodString;
|
|
116
116
|
eventType: z.ZodEnum<{
|
|
117
|
+
suppress: "suppress";
|
|
117
118
|
update: "update";
|
|
118
119
|
subscribe: "subscribe";
|
|
119
120
|
unsubscribe: "unsubscribe";
|
|
120
|
-
suppress: "suppress";
|
|
121
121
|
}>;
|
|
122
122
|
purpose: z.ZodCustom<Purpose, Purpose>;
|
|
123
123
|
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { Contribution, RequiredSchema } from "@openlup/core/readiness";
|
|
2
|
+
/** Descriptors only: owner messages, workers and schedules stay with their owners. */
|
|
3
|
+
export declare function createAccountSupportContribution(input: {
|
|
4
|
+
version: string;
|
|
5
|
+
requiredSchema: RequiredSchema;
|
|
6
|
+
accountSupport: Readonly<Record<string, ((...args: never[]) => unknown) | null>>;
|
|
7
|
+
dependsOn: NonNullable<Contribution["manifest"]["module"]>["dependsOn"];
|
|
8
|
+
routes?: Contribution["routes"];
|
|
9
|
+
}): {
|
|
10
|
+
contributions: Contribution[];
|
|
11
|
+
ports: {
|
|
12
|
+
[k: string]: ((...args: never[]) => unknown) | null;
|
|
13
|
+
};
|
|
14
|
+
routes: {
|
|
15
|
+
[k: string]: (...args: never[]) => unknown;
|
|
16
|
+
};
|
|
17
|
+
triggers: {};
|
|
18
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** Descriptors only: owner messages, workers and schedules stay with their owners. */
|
|
2
|
+
export function createAccountSupportContribution(input) {
|
|
3
|
+
const routes = [...input.routes ?? []];
|
|
4
|
+
if (new Set(routes.map(route => route.id)).size !== routes.length)
|
|
5
|
+
throw new Error("account_support_duplicate_route");
|
|
6
|
+
const contribution = {
|
|
7
|
+
manifest: {
|
|
8
|
+
name: "@openlup/platform", version: input.version, kind: "rail",
|
|
9
|
+
module: { id: "account-support", kind: "capability", provides: ["./account-support", "./account-support/contracts"], dependsOn: input.dependsOn },
|
|
10
|
+
emits: [], handles: [], schedules: [], env: [], requiredPorts: Object.keys(input.accountSupport),
|
|
11
|
+
routes: routes.map(route => route.id), requiredSchema: input.requiredSchema,
|
|
12
|
+
}, handlers: [], schedules: [], routes,
|
|
13
|
+
};
|
|
14
|
+
return {
|
|
15
|
+
contributions: [contribution],
|
|
16
|
+
ports: Object.fromEntries(Object.entries(input.accountSupport).filter(([, operation]) => operation !== null)
|
|
17
|
+
.map(([key, operation]) => [`@openlup/platform/account-support:${key}`, operation])),
|
|
18
|
+
routes: Object.fromEntries(routes.map(route => [`@openlup/platform/account-support:${route.id}`, route.handle])),
|
|
19
|
+
triggers: {},
|
|
20
|
+
};
|
|
21
|
+
}
|
|
@@ -7,3 +7,5 @@ export { createShippingContribution } from "./shippingContribution.js";
|
|
|
7
7
|
export { createFulfillmentContribution } from "./fulfillmentContribution.js";
|
|
8
8
|
export { createSubscriptionContribution } from "./subscriptionContribution.js";
|
|
9
9
|
export { createCommerceContribution } from "./commerceContribution.js";
|
|
10
|
+
export { createAccountSupportContribution } from "./accountSupportContribution.js";
|
|
11
|
+
export { createMarketingContribution } from "./marketingContribution.js";
|
|
@@ -8,3 +8,5 @@ export { createShippingContribution } from "./shippingContribution.js";
|
|
|
8
8
|
export { createFulfillmentContribution } from "./fulfillmentContribution.js";
|
|
9
9
|
export { createSubscriptionContribution } from "./subscriptionContribution.js";
|
|
10
10
|
export { createCommerceContribution } from "./commerceContribution.js";
|
|
11
|
+
export { createAccountSupportContribution } from "./accountSupportContribution.js";
|
|
12
|
+
export { createMarketingContribution } from "./marketingContribution.js";
|