@modainteract/moda-interact-shared 1.4.0 → 2.0.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/dist/{chunk-I4WVQ6D7.js → chunk-SU2DAOEC.js} +65 -10
- package/dist/chunk-SU2DAOEC.js.map +1 -0
- package/dist/incidents/index.d.ts +124 -0
- package/dist/incidents/index.js +264 -0
- package/dist/incidents/index.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -1
- package/dist/shopify/index.d.ts +366 -1
- package/dist/shopify/index.js +15 -1
- package/package.json +7 -2
- package/dist/chunk-I4WVQ6D7.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,6 @@ export { CatalogueValidationOptions, CountryCode, CountryCodeSchema, CurrencyCod
|
|
|
2
2
|
export { APP_PRICING_BILLING_PERIOD_DRAIN_WINDOW_MS, ARCH007_BILLING_CONTRACT_SCHEMA_VERSION, BILLING_PLAN_KINDS, BILLING_SUBSCRIPTION_RECONCILE_JOB_NAME, BILLING_SUBSCRIPTION_RECONCILE_QUEUE_NAME, BILLING_SUBSCRIPTION_RECONCILE_SCHEMA_VERSION, BILLING_SYSTEM_MESSAGE_CODES, BILLING_USAGE_METRICS, BillingPlanKind, BillingPlanKindSchema, BillingSubscriptionReconcileJob, BillingSubscriptionReconcileJobSchema, BillingSystemMessageCode, BillingSystemMessageCodeSchema, BillingUsageMetric, BillingUsageMetricSchema, NormalizedWhatsAppStatus, NormalizedWhatsAppStatusSchema, NormalizedWhatsAppStatusV2, NormalizedWhatsAppStatusV2Schema, NormalizedWhatsAppStatusV3, NormalizedWhatsAppStatusV3Schema, PurchasedRecoveryCreditCounterSnapshot, ShopifyCurrentProviderContext, ShopifyProviderContextIdentityInput, ShopifyPurchaseProviderContext, WHATSAPP_PROVIDER_STATUSES, WHATSAPP_PROVIDER_STATUS_SCHEMA_VERSION, WHATSAPP_PROVIDER_STATUS_V2_SCHEMA_VERSION, WhatsAppProviderFailureEvidence, WhatsAppProviderFailureEvidenceSchema, WhatsAppProviderPricingMetadata, WhatsAppProviderPricingMetadataSchema, WhatsAppProviderStatus, WhatsAppProviderStatusSchema, availablePurchasedRecoveryCredits, createBillingSubscriptionReconcileJobId, createMerchantBillingSystemSourceKey, createRecoveryIdempotencyKey, createShopifyUsageIdempotencyKey, deriveShopifyProviderContextIdentity, isSameShopifyPurchaseProviderContext, parseBillingSubscriptionReconcileJob, parseNormalizedWhatsAppStatus, safeParseBillingSubscriptionReconcileJob, safeParseNormalizedWhatsAppStatus } from './billing.js';
|
|
3
3
|
export { AuthoredSupportBodySchema, MERCHANT_COMMUNICATIONS_JOB_NAMES, MERCHANT_COMMUNICATIONS_QUEUE_NAME, MERCHANT_COMMUNICATIONS_SCHEMA_VERSION, MerchantMessageTranslationContract, MerchantMessageTranslationContractSchema, MerchantMessageTranslationStatus, MerchantMessageTranslationStatusSchema, MerchantSupportMessageContract, MerchantSupportMessageContractSchema, MerchantSupportMessageKind, MerchantSupportMessageKindSchema, MerchantSupportMessageState, MerchantSupportMessageStateSchema, MerchantTranslationBatchContract, MerchantTranslationBatchContractSchema, MerchantTranslationBatchStatus, MerchantTranslationBatchStatusSchema, MerchantTranslationDirection, MerchantTranslationDirectionSchema, MerchantTranslationReconciliationRequestContract, MerchantTranslationReconciliationRequestContractSchema, MerchantTranslationReconciliationScope, MerchantTranslationReconciliationScopeSchema, MerchantTranslationReconciliationStatus, MerchantTranslationReconciliationStatusSchema, PLATFORM_SUPPORT_LANGUAGE_TAG, TranslatedSupportBodySchema, TranslationBatchPollJob, TranslationBatchPollJobSchema, TranslationBatchResultsJob, TranslationBatchResultsJobSchema, TranslationBatchSubmitJob, TranslationBatchSubmitJobSchema, TranslationDispatchJob, TranslationDispatchJobSchema, TranslationReconcileJob, TranslationReconcileJobSchema, countUnicodeGraphemes, requiresMerchantTranslation } from './merchant-communications.js';
|
|
4
4
|
export { EffectiveRecoveryPolicy, EffectiveRecoveryPolicySchema, RECOVERY_OFFER_MODES, RecoveryOfferMode, RecoveryOfferModeSchema, parseEffectiveRecoveryPolicy, safeParseEffectiveRecoveryPolicy } from './recovery-policy.js';
|
|
5
|
-
export { CheckoutCreatedPayloadV2, CheckoutCreatedPayloadV2Schema, CheckoutObservedPayload, CheckoutObservedPayloadSchema, CheckoutUpdatedPayloadV2, CheckoutUpdatedPayloadV2Schema, MAX_LINE_ITEMS, MAX_URL_LENGTH, OrderCompletedPayload, OrderCompletedPayloadSchema, OrderCompletedPayloadV2, OrderCompletedPayloadV2Schema, SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION, SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V1, SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V2, SHOPIFY_COMMERCE_EVENT_TYPES, SHOPIFY_DISCOUNT_SYNC_REASONS, SHOPIFY_DISCOUNT_SYNC_WEBHOOK_TOPICS, SHOPIFY_RECOVERY_EVENT_TYPES_V2, SHOPIFY_WEBHOOK_OUTBOX_DESTINATIONS, SHOPIFY_WEBHOOK_QUEUE_CONTRACTS, ShopifyCartActivityEventV2, ShopifyCartActivityEventV2Schema, ShopifyCartActivityPayloadV2, ShopifyCartActivityPayloadV2Schema, ShopifyCheckoutCreatedEventV2, ShopifyCheckoutCreatedEventV2Schema, ShopifyCheckoutLineItem, ShopifyCheckoutLineItemSchema, ShopifyCheckoutLineItemsSchema, ShopifyCheckoutObservedEvent, ShopifyCheckoutObservedEventSchema, ShopifyCheckoutUpdatedEventV2, ShopifyCheckoutUpdatedEventV2Schema, ShopifyCommerceEvent, ShopifyCommerceEventSchema, ShopifyCommerceEventType, ShopifyCustomerReference, ShopifyCustomerReferenceSchema, ShopifyDiscountSyncJob, ShopifyDiscountSyncJobSchema, ShopifyDiscountSyncReasonSchema, ShopifyDiscountSyncWebhookTopicSchema, ShopifyMoney, ShopifyMoneySchema, ShopifyOrderCompletedEvent, ShopifyOrderCompletedEventSchema, ShopifyOrderCompletedEventV2, ShopifyOrderCompletedEventV2Schema, ShopifyRecoveryEventTypeV2, ShopifyRecoveryEventV2, ShopifyRecoveryEventV2Schema, ShopifyTenant, ShopifyTenantSchema, createShopifyCartActivityOrderingKey, createShopifyCommerceOrderingKey, createShopifyOrderCorrelationOrderingKey, createShopifyOrderOrderingKey, createShopifyPendingRecoveryOrderingKey, isCartActivityEventV2, isCheckoutCreatedEventV2, isCheckoutObservedEvent, isCheckoutUpdatedEventV2, isOrderCompletedEvent, isOrderCompletedEventV2, parseShopifyCommerceEvent, parseShopifyDiscountSyncJob, parseShopifyRecoveryEventV2, safeParseShopifyCommerceEvent, safeParseShopifyDiscountSyncJob, safeParseShopifyRecoveryEventV2 } from './shopify/index.js';
|
|
5
|
+
export { CheckoutCreatedPayloadV2, CheckoutCreatedPayloadV2Schema, CheckoutObservedPayload, CheckoutObservedPayloadSchema, CheckoutUpdatedPayloadV2, CheckoutUpdatedPayloadV2Schema, CheckoutUpdatedPayloadV3, CheckoutUpdatedPayloadV3Schema, MAX_LINE_ITEMS, MAX_URL_LENGTH, OrderCompletedPayload, OrderCompletedPayloadSchema, OrderCompletedPayloadV2, OrderCompletedPayloadV2Schema, SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION, SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V1, SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V2, SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V3, SHOPIFY_COMMERCE_EVENT_TYPES, SHOPIFY_DISCOUNT_SYNC_REASONS, SHOPIFY_DISCOUNT_SYNC_WEBHOOK_TOPICS, SHOPIFY_RECOVERY_EVENT_TYPES_V2, SHOPIFY_RECOVERY_EVENT_TYPES_V3, SHOPIFY_WEBHOOK_OUTBOX_DESTINATIONS, SHOPIFY_WEBHOOK_QUEUE_CONTRACTS, ShopifyCartActivityEventV2, ShopifyCartActivityEventV2Schema, ShopifyCartActivityPayloadV2, ShopifyCartActivityPayloadV2Schema, ShopifyCheckoutCreatedEventV2, ShopifyCheckoutCreatedEventV2Schema, ShopifyCheckoutLineItem, ShopifyCheckoutLineItemSchema, ShopifyCheckoutLineItemsSchema, ShopifyCheckoutObservedEvent, ShopifyCheckoutObservedEventSchema, ShopifyCheckoutUpdatedEventV2, ShopifyCheckoutUpdatedEventV2Schema, ShopifyCheckoutUpdatedEventV3, ShopifyCheckoutUpdatedEventV3Schema, ShopifyCommerceEvent, ShopifyCommerceEventSchema, ShopifyCommerceEventType, ShopifyCustomerReference, ShopifyCustomerReferenceSchema, ShopifyDiscountSyncJob, ShopifyDiscountSyncJobSchema, ShopifyDiscountSyncReasonSchema, ShopifyDiscountSyncWebhookTopicSchema, ShopifyMoney, ShopifyMoneySchema, ShopifyOrderCompletedEvent, ShopifyOrderCompletedEventSchema, ShopifyOrderCompletedEventV2, ShopifyOrderCompletedEventV2Schema, ShopifyRecoveryEvent, ShopifyRecoveryEventSchema, ShopifyRecoveryEventTypeV2, ShopifyRecoveryEventV2, ShopifyRecoveryEventV2Schema, ShopifyTenant, ShopifyTenantSchema, createShopifyCartActivityOrderingKey, createShopifyCommerceOrderingKey, createShopifyOrderCorrelationOrderingKey, createShopifyOrderOrderingKey, createShopifyPendingRecoveryOrderingKey, isCartActivityEventV2, isCheckoutCreatedEventV2, isCheckoutObservedEvent, isCheckoutUpdatedEventV2, isOrderCompletedEvent, isOrderCompletedEventV2, parseShopifyCommerceEvent, parseShopifyDiscountSyncJob, parseShopifyRecoveryEvent, parseShopifyRecoveryEventV2, safeParseShopifyCommerceEvent, safeParseShopifyDiscountSyncJob, safeParseShopifyRecoveryEvent, safeParseShopifyRecoveryEventV2 } from './shopify/index.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
import 'intl-messageformat';
|
package/dist/index.js
CHANGED
|
@@ -69,6 +69,7 @@ import {
|
|
|
69
69
|
CheckoutCreatedPayloadV2Schema,
|
|
70
70
|
CheckoutObservedPayloadSchema,
|
|
71
71
|
CheckoutUpdatedPayloadV2Schema,
|
|
72
|
+
CheckoutUpdatedPayloadV3Schema,
|
|
72
73
|
MAX_LINE_ITEMS,
|
|
73
74
|
MAX_URL_LENGTH,
|
|
74
75
|
OrderCompletedPayloadSchema,
|
|
@@ -76,10 +77,12 @@ import {
|
|
|
76
77
|
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION,
|
|
77
78
|
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V1,
|
|
78
79
|
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V2,
|
|
80
|
+
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V3,
|
|
79
81
|
SHOPIFY_COMMERCE_EVENT_TYPES,
|
|
80
82
|
SHOPIFY_DISCOUNT_SYNC_REASONS,
|
|
81
83
|
SHOPIFY_DISCOUNT_SYNC_WEBHOOK_TOPICS,
|
|
82
84
|
SHOPIFY_RECOVERY_EVENT_TYPES_V2,
|
|
85
|
+
SHOPIFY_RECOVERY_EVENT_TYPES_V3,
|
|
83
86
|
SHOPIFY_WEBHOOK_OUTBOX_DESTINATIONS,
|
|
84
87
|
SHOPIFY_WEBHOOK_QUEUE_CONTRACTS,
|
|
85
88
|
ShopifyCartActivityEventV2Schema,
|
|
@@ -89,6 +92,7 @@ import {
|
|
|
89
92
|
ShopifyCheckoutLineItemsSchema,
|
|
90
93
|
ShopifyCheckoutObservedEventSchema,
|
|
91
94
|
ShopifyCheckoutUpdatedEventV2Schema,
|
|
95
|
+
ShopifyCheckoutUpdatedEventV3Schema,
|
|
92
96
|
ShopifyCommerceEventSchema,
|
|
93
97
|
ShopifyCustomerReferenceSchema,
|
|
94
98
|
ShopifyDiscountSyncJobSchema,
|
|
@@ -97,6 +101,7 @@ import {
|
|
|
97
101
|
ShopifyMoneySchema,
|
|
98
102
|
ShopifyOrderCompletedEventSchema,
|
|
99
103
|
ShopifyOrderCompletedEventV2Schema,
|
|
104
|
+
ShopifyRecoveryEventSchema,
|
|
100
105
|
ShopifyRecoveryEventV2Schema,
|
|
101
106
|
ShopifyTenantSchema,
|
|
102
107
|
createShopifyCartActivityOrderingKey,
|
|
@@ -112,11 +117,13 @@ import {
|
|
|
112
117
|
isOrderCompletedEventV2,
|
|
113
118
|
parseShopifyCommerceEvent,
|
|
114
119
|
parseShopifyDiscountSyncJob,
|
|
120
|
+
parseShopifyRecoveryEvent,
|
|
115
121
|
parseShopifyRecoveryEventV2,
|
|
116
122
|
safeParseShopifyCommerceEvent,
|
|
117
123
|
safeParseShopifyDiscountSyncJob,
|
|
124
|
+
safeParseShopifyRecoveryEvent,
|
|
118
125
|
safeParseShopifyRecoveryEventV2
|
|
119
|
-
} from "./chunk-
|
|
126
|
+
} from "./chunk-SU2DAOEC.js";
|
|
120
127
|
import {
|
|
121
128
|
CountryCodeSchema,
|
|
122
129
|
CurrencyCodeSchema,
|
|
@@ -153,6 +160,7 @@ export {
|
|
|
153
160
|
CheckoutCreatedPayloadV2Schema,
|
|
154
161
|
CheckoutObservedPayloadSchema,
|
|
155
162
|
CheckoutUpdatedPayloadV2Schema,
|
|
163
|
+
CheckoutUpdatedPayloadV3Schema,
|
|
156
164
|
CountryCodeSchema,
|
|
157
165
|
CurrencyCodeSchema,
|
|
158
166
|
EffectiveRecoveryPolicySchema,
|
|
@@ -188,10 +196,12 @@ export {
|
|
|
188
196
|
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION,
|
|
189
197
|
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V1,
|
|
190
198
|
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V2,
|
|
199
|
+
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V3,
|
|
191
200
|
SHOPIFY_COMMERCE_EVENT_TYPES,
|
|
192
201
|
SHOPIFY_DISCOUNT_SYNC_REASONS,
|
|
193
202
|
SHOPIFY_DISCOUNT_SYNC_WEBHOOK_TOPICS,
|
|
194
203
|
SHOPIFY_RECOVERY_EVENT_TYPES_V2,
|
|
204
|
+
SHOPIFY_RECOVERY_EVENT_TYPES_V3,
|
|
195
205
|
SHOPIFY_WEBHOOK_OUTBOX_DESTINATIONS,
|
|
196
206
|
SHOPIFY_WEBHOOK_QUEUE_CONTRACTS,
|
|
197
207
|
ShopifyCartActivityEventV2Schema,
|
|
@@ -201,6 +211,7 @@ export {
|
|
|
201
211
|
ShopifyCheckoutLineItemsSchema,
|
|
202
212
|
ShopifyCheckoutObservedEventSchema,
|
|
203
213
|
ShopifyCheckoutUpdatedEventV2Schema,
|
|
214
|
+
ShopifyCheckoutUpdatedEventV3Schema,
|
|
204
215
|
ShopifyCommerceEventSchema,
|
|
205
216
|
ShopifyCustomerReferenceSchema,
|
|
206
217
|
ShopifyDiscountSyncJobSchema,
|
|
@@ -209,6 +220,7 @@ export {
|
|
|
209
220
|
ShopifyMoneySchema,
|
|
210
221
|
ShopifyOrderCompletedEventSchema,
|
|
211
222
|
ShopifyOrderCompletedEventV2Schema,
|
|
223
|
+
ShopifyRecoveryEventSchema,
|
|
212
224
|
ShopifyRecoveryEventV2Schema,
|
|
213
225
|
ShopifyTenantSchema,
|
|
214
226
|
TimeZoneIdSchema,
|
|
@@ -254,6 +266,7 @@ export {
|
|
|
254
266
|
parseNormalizedWhatsAppStatus,
|
|
255
267
|
parseShopifyCommerceEvent,
|
|
256
268
|
parseShopifyDiscountSyncJob,
|
|
269
|
+
parseShopifyRecoveryEvent,
|
|
257
270
|
parseShopifyRecoveryEventV2,
|
|
258
271
|
requiresMerchantTranslation,
|
|
259
272
|
resolveLocaleDirection,
|
|
@@ -263,6 +276,7 @@ export {
|
|
|
263
276
|
safeParseNormalizedWhatsAppStatus,
|
|
264
277
|
safeParseShopifyCommerceEvent,
|
|
265
278
|
safeParseShopifyDiscountSyncJob,
|
|
279
|
+
safeParseShopifyRecoveryEvent,
|
|
266
280
|
safeParseShopifyRecoveryEventV2,
|
|
267
281
|
validateIcuCatalogue
|
|
268
282
|
};
|
package/dist/shopify/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
|
|
3
3
|
declare const SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V1: 1;
|
|
4
4
|
declare const SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V2: 2;
|
|
5
|
+
declare const SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V3: 3;
|
|
5
6
|
declare const SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION: 1;
|
|
6
7
|
declare const SHOPIFY_COMMERCE_EVENT_TYPES: {
|
|
7
8
|
readonly CHECKOUT_OBSERVED: "checkout.observed";
|
|
@@ -13,6 +14,9 @@ declare const SHOPIFY_RECOVERY_EVENT_TYPES_V2: {
|
|
|
13
14
|
readonly CHECKOUT_UPDATED: "checkout.updated";
|
|
14
15
|
readonly ORDER_COMPLETED: "order.completed";
|
|
15
16
|
};
|
|
17
|
+
declare const SHOPIFY_RECOVERY_EVENT_TYPES_V3: {
|
|
18
|
+
readonly CHECKOUT_UPDATED: "checkout.updated";
|
|
19
|
+
};
|
|
16
20
|
declare const SHOPIFY_WEBHOOK_OUTBOX_DESTINATIONS: {
|
|
17
21
|
readonly CHECKOUT_EVENTS: "CHECKOUT_EVENTS";
|
|
18
22
|
readonly ORDER_EVENTS: "ORDER_EVENTS";
|
|
@@ -772,6 +776,367 @@ declare function createShopifyOrderCorrelationOrderingKey(input: {
|
|
|
772
776
|
checkoutToken: string | null;
|
|
773
777
|
}): string;
|
|
774
778
|
|
|
779
|
+
declare const CheckoutUpdatedPayloadV3Schema: z.ZodObject<{
|
|
780
|
+
checkoutToken: z.ZodString;
|
|
781
|
+
cartToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
782
|
+
checkoutCreatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
783
|
+
abandonedCheckoutUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
784
|
+
}, z.core.$strict>;
|
|
785
|
+
type CheckoutUpdatedPayloadV3 = z.infer<typeof CheckoutUpdatedPayloadV3Schema>;
|
|
786
|
+
|
|
787
|
+
declare const ShopifyCheckoutUpdatedEventV3Schema: z.ZodObject<{
|
|
788
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
789
|
+
receiptId: z.ZodString;
|
|
790
|
+
deliveryId: z.ZodString;
|
|
791
|
+
eventId: z.ZodNullable<z.ZodString>;
|
|
792
|
+
source: z.ZodLiteral<"shopify">;
|
|
793
|
+
providerTopic: z.ZodString;
|
|
794
|
+
tenant: z.ZodObject<{
|
|
795
|
+
shopId: z.ZodString;
|
|
796
|
+
shopDomain: z.ZodString;
|
|
797
|
+
}, z.core.$strict>;
|
|
798
|
+
occurredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
799
|
+
receivedAt: z.ZodISODateTime;
|
|
800
|
+
traceId: z.ZodString;
|
|
801
|
+
orderingKey: z.ZodString;
|
|
802
|
+
internationalContext: z.ZodOptional<z.ZodObject<{
|
|
803
|
+
languageTag: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
804
|
+
languageSource: z.ZodNullable<z.ZodEnum<{
|
|
805
|
+
"customer-explicit": "customer-explicit";
|
|
806
|
+
detected: "detected";
|
|
807
|
+
shopify: "shopify";
|
|
808
|
+
"merchant-default": "merchant-default";
|
|
809
|
+
"platform-default": "platform-default";
|
|
810
|
+
}>>;
|
|
811
|
+
countryCode: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
812
|
+
currencyCode: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
813
|
+
timeZone: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
814
|
+
}, z.core.$strict>>;
|
|
815
|
+
eventType: z.ZodLiteral<"checkout.updated">;
|
|
816
|
+
payload: z.ZodObject<{
|
|
817
|
+
checkoutToken: z.ZodString;
|
|
818
|
+
cartToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
819
|
+
checkoutCreatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
820
|
+
abandonedCheckoutUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
821
|
+
}, z.core.$strict>;
|
|
822
|
+
}, z.core.$strict>;
|
|
823
|
+
type ShopifyCheckoutUpdatedEventV3 = z.infer<typeof ShopifyCheckoutUpdatedEventV3Schema>;
|
|
824
|
+
|
|
825
|
+
declare const ShopifyRecoveryEventSchema: z.ZodUnion<readonly [z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
826
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
827
|
+
receiptId: z.ZodString;
|
|
828
|
+
deliveryId: z.ZodString;
|
|
829
|
+
eventId: z.ZodNullable<z.ZodString>;
|
|
830
|
+
source: z.ZodLiteral<"shopify">;
|
|
831
|
+
providerTopic: z.ZodString;
|
|
832
|
+
tenant: z.ZodObject<{
|
|
833
|
+
shopId: z.ZodString;
|
|
834
|
+
shopDomain: z.ZodString;
|
|
835
|
+
}, z.core.$strict>;
|
|
836
|
+
occurredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
837
|
+
receivedAt: z.ZodISODateTime;
|
|
838
|
+
traceId: z.ZodString;
|
|
839
|
+
orderingKey: z.ZodString;
|
|
840
|
+
internationalContext: z.ZodOptional<z.ZodObject<{
|
|
841
|
+
languageTag: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
842
|
+
languageSource: z.ZodNullable<z.ZodEnum<{
|
|
843
|
+
"customer-explicit": "customer-explicit";
|
|
844
|
+
detected: "detected";
|
|
845
|
+
shopify: "shopify";
|
|
846
|
+
"merchant-default": "merchant-default";
|
|
847
|
+
"platform-default": "platform-default";
|
|
848
|
+
}>>;
|
|
849
|
+
countryCode: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
850
|
+
currencyCode: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
851
|
+
timeZone: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
852
|
+
}, z.core.$strict>>;
|
|
853
|
+
eventType: z.ZodLiteral<"cart.activity">;
|
|
854
|
+
payload: z.ZodObject<{
|
|
855
|
+
cartToken: z.ZodString;
|
|
856
|
+
isEmpty: z.ZodNullable<z.ZodBoolean>;
|
|
857
|
+
}, z.core.$strict>;
|
|
858
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
859
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
860
|
+
receiptId: z.ZodString;
|
|
861
|
+
deliveryId: z.ZodString;
|
|
862
|
+
eventId: z.ZodNullable<z.ZodString>;
|
|
863
|
+
source: z.ZodLiteral<"shopify">;
|
|
864
|
+
providerTopic: z.ZodString;
|
|
865
|
+
tenant: z.ZodObject<{
|
|
866
|
+
shopId: z.ZodString;
|
|
867
|
+
shopDomain: z.ZodString;
|
|
868
|
+
}, z.core.$strict>;
|
|
869
|
+
occurredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
870
|
+
receivedAt: z.ZodISODateTime;
|
|
871
|
+
traceId: z.ZodString;
|
|
872
|
+
orderingKey: z.ZodString;
|
|
873
|
+
internationalContext: z.ZodOptional<z.ZodObject<{
|
|
874
|
+
languageTag: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
875
|
+
languageSource: z.ZodNullable<z.ZodEnum<{
|
|
876
|
+
"customer-explicit": "customer-explicit";
|
|
877
|
+
detected: "detected";
|
|
878
|
+
shopify: "shopify";
|
|
879
|
+
"merchant-default": "merchant-default";
|
|
880
|
+
"platform-default": "platform-default";
|
|
881
|
+
}>>;
|
|
882
|
+
countryCode: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
883
|
+
currencyCode: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
884
|
+
timeZone: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
885
|
+
}, z.core.$strict>>;
|
|
886
|
+
eventType: z.ZodLiteral<"checkout.created">;
|
|
887
|
+
payload: z.ZodObject<{
|
|
888
|
+
checkoutToken: z.ZodString;
|
|
889
|
+
cartToken: z.ZodNullable<z.ZodString>;
|
|
890
|
+
abandonedCheckoutUrl: z.ZodNullable<z.ZodURL>;
|
|
891
|
+
checkoutCreatedAt: z.ZodNullable<z.ZodISODateTime>;
|
|
892
|
+
}, z.core.$strict>;
|
|
893
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
894
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
895
|
+
receiptId: z.ZodString;
|
|
896
|
+
deliveryId: z.ZodString;
|
|
897
|
+
eventId: z.ZodNullable<z.ZodString>;
|
|
898
|
+
source: z.ZodLiteral<"shopify">;
|
|
899
|
+
providerTopic: z.ZodString;
|
|
900
|
+
tenant: z.ZodObject<{
|
|
901
|
+
shopId: z.ZodString;
|
|
902
|
+
shopDomain: z.ZodString;
|
|
903
|
+
}, z.core.$strict>;
|
|
904
|
+
occurredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
905
|
+
receivedAt: z.ZodISODateTime;
|
|
906
|
+
traceId: z.ZodString;
|
|
907
|
+
orderingKey: z.ZodString;
|
|
908
|
+
internationalContext: z.ZodOptional<z.ZodObject<{
|
|
909
|
+
languageTag: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
910
|
+
languageSource: z.ZodNullable<z.ZodEnum<{
|
|
911
|
+
"customer-explicit": "customer-explicit";
|
|
912
|
+
detected: "detected";
|
|
913
|
+
shopify: "shopify";
|
|
914
|
+
"merchant-default": "merchant-default";
|
|
915
|
+
"platform-default": "platform-default";
|
|
916
|
+
}>>;
|
|
917
|
+
countryCode: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
918
|
+
currencyCode: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
919
|
+
timeZone: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
920
|
+
}, z.core.$strict>>;
|
|
921
|
+
eventType: z.ZodLiteral<"checkout.updated">;
|
|
922
|
+
payload: z.ZodObject<{
|
|
923
|
+
checkoutToken: z.ZodString;
|
|
924
|
+
}, z.core.$strict>;
|
|
925
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
926
|
+
schemaVersion: z.ZodLiteral<2>;
|
|
927
|
+
receiptId: z.ZodString;
|
|
928
|
+
deliveryId: z.ZodString;
|
|
929
|
+
eventId: z.ZodNullable<z.ZodString>;
|
|
930
|
+
source: z.ZodLiteral<"shopify">;
|
|
931
|
+
providerTopic: z.ZodString;
|
|
932
|
+
tenant: z.ZodObject<{
|
|
933
|
+
shopId: z.ZodString;
|
|
934
|
+
shopDomain: z.ZodString;
|
|
935
|
+
}, z.core.$strict>;
|
|
936
|
+
occurredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
937
|
+
receivedAt: z.ZodISODateTime;
|
|
938
|
+
traceId: z.ZodString;
|
|
939
|
+
orderingKey: z.ZodString;
|
|
940
|
+
internationalContext: z.ZodOptional<z.ZodObject<{
|
|
941
|
+
languageTag: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
942
|
+
languageSource: z.ZodNullable<z.ZodEnum<{
|
|
943
|
+
"customer-explicit": "customer-explicit";
|
|
944
|
+
detected: "detected";
|
|
945
|
+
shopify: "shopify";
|
|
946
|
+
"merchant-default": "merchant-default";
|
|
947
|
+
"platform-default": "platform-default";
|
|
948
|
+
}>>;
|
|
949
|
+
countryCode: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
950
|
+
currencyCode: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
951
|
+
timeZone: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
952
|
+
}, z.core.$strict>>;
|
|
953
|
+
eventType: z.ZodLiteral<"order.completed">;
|
|
954
|
+
payload: z.ZodObject<{
|
|
955
|
+
orderId: z.ZodString;
|
|
956
|
+
checkoutToken: z.ZodNullable<z.ZodString>;
|
|
957
|
+
cartToken: z.ZodNullable<z.ZodString>;
|
|
958
|
+
completedAt: z.ZodISODateTime;
|
|
959
|
+
}, z.core.$strict>;
|
|
960
|
+
}, z.core.$strict>], "eventType">, z.ZodObject<{
|
|
961
|
+
schemaVersion: z.ZodLiteral<3>;
|
|
962
|
+
receiptId: z.ZodString;
|
|
963
|
+
deliveryId: z.ZodString;
|
|
964
|
+
eventId: z.ZodNullable<z.ZodString>;
|
|
965
|
+
source: z.ZodLiteral<"shopify">;
|
|
966
|
+
providerTopic: z.ZodString;
|
|
967
|
+
tenant: z.ZodObject<{
|
|
968
|
+
shopId: z.ZodString;
|
|
969
|
+
shopDomain: z.ZodString;
|
|
970
|
+
}, z.core.$strict>;
|
|
971
|
+
occurredAt: z.ZodNullable<z.ZodISODateTime>;
|
|
972
|
+
receivedAt: z.ZodISODateTime;
|
|
973
|
+
traceId: z.ZodString;
|
|
974
|
+
orderingKey: z.ZodString;
|
|
975
|
+
internationalContext: z.ZodOptional<z.ZodObject<{
|
|
976
|
+
languageTag: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
977
|
+
languageSource: z.ZodNullable<z.ZodEnum<{
|
|
978
|
+
"customer-explicit": "customer-explicit";
|
|
979
|
+
detected: "detected";
|
|
980
|
+
shopify: "shopify";
|
|
981
|
+
"merchant-default": "merchant-default";
|
|
982
|
+
"platform-default": "platform-default";
|
|
983
|
+
}>>;
|
|
984
|
+
countryCode: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
985
|
+
currencyCode: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
986
|
+
timeZone: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
987
|
+
}, z.core.$strict>>;
|
|
988
|
+
eventType: z.ZodLiteral<"checkout.updated">;
|
|
989
|
+
payload: z.ZodObject<{
|
|
990
|
+
checkoutToken: z.ZodString;
|
|
991
|
+
cartToken: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
992
|
+
checkoutCreatedAt: z.ZodOptional<z.ZodNullable<z.ZodISODateTime>>;
|
|
993
|
+
abandonedCheckoutUrl: z.ZodOptional<z.ZodNullable<z.ZodURL>>;
|
|
994
|
+
}, z.core.$strict>;
|
|
995
|
+
}, z.core.$strict>]>;
|
|
996
|
+
type ShopifyRecoveryEvent = ShopifyRecoveryEventV2 | ShopifyCheckoutUpdatedEventV3;
|
|
997
|
+
declare function parseShopifyRecoveryEvent(input: unknown): ShopifyRecoveryEvent;
|
|
998
|
+
declare function safeParseShopifyRecoveryEvent(input: unknown): z.ZodSafeParseResult<{
|
|
999
|
+
schemaVersion: 2;
|
|
1000
|
+
receiptId: string;
|
|
1001
|
+
deliveryId: string;
|
|
1002
|
+
eventId: string | null;
|
|
1003
|
+
source: "shopify";
|
|
1004
|
+
providerTopic: string;
|
|
1005
|
+
tenant: {
|
|
1006
|
+
shopId: string;
|
|
1007
|
+
shopDomain: string;
|
|
1008
|
+
};
|
|
1009
|
+
occurredAt: string | null;
|
|
1010
|
+
receivedAt: string;
|
|
1011
|
+
traceId: string;
|
|
1012
|
+
orderingKey: string;
|
|
1013
|
+
eventType: "checkout.created";
|
|
1014
|
+
payload: {
|
|
1015
|
+
checkoutToken: string;
|
|
1016
|
+
cartToken: string | null;
|
|
1017
|
+
abandonedCheckoutUrl: string | null;
|
|
1018
|
+
checkoutCreatedAt: string | null;
|
|
1019
|
+
};
|
|
1020
|
+
internationalContext?: {
|
|
1021
|
+
languageTag: string | null;
|
|
1022
|
+
languageSource: "customer-explicit" | "detected" | "shopify" | "merchant-default" | "platform-default" | null;
|
|
1023
|
+
countryCode: string | null;
|
|
1024
|
+
currencyCode: string | null;
|
|
1025
|
+
timeZone: string | null;
|
|
1026
|
+
} | undefined;
|
|
1027
|
+
} | {
|
|
1028
|
+
schemaVersion: 2;
|
|
1029
|
+
receiptId: string;
|
|
1030
|
+
deliveryId: string;
|
|
1031
|
+
eventId: string | null;
|
|
1032
|
+
source: "shopify";
|
|
1033
|
+
providerTopic: string;
|
|
1034
|
+
tenant: {
|
|
1035
|
+
shopId: string;
|
|
1036
|
+
shopDomain: string;
|
|
1037
|
+
};
|
|
1038
|
+
occurredAt: string | null;
|
|
1039
|
+
receivedAt: string;
|
|
1040
|
+
traceId: string;
|
|
1041
|
+
orderingKey: string;
|
|
1042
|
+
eventType: "cart.activity";
|
|
1043
|
+
payload: {
|
|
1044
|
+
cartToken: string;
|
|
1045
|
+
isEmpty: boolean | null;
|
|
1046
|
+
};
|
|
1047
|
+
internationalContext?: {
|
|
1048
|
+
languageTag: string | null;
|
|
1049
|
+
languageSource: "customer-explicit" | "detected" | "shopify" | "merchant-default" | "platform-default" | null;
|
|
1050
|
+
countryCode: string | null;
|
|
1051
|
+
currencyCode: string | null;
|
|
1052
|
+
timeZone: string | null;
|
|
1053
|
+
} | undefined;
|
|
1054
|
+
} | {
|
|
1055
|
+
schemaVersion: 2;
|
|
1056
|
+
receiptId: string;
|
|
1057
|
+
deliveryId: string;
|
|
1058
|
+
eventId: string | null;
|
|
1059
|
+
source: "shopify";
|
|
1060
|
+
providerTopic: string;
|
|
1061
|
+
tenant: {
|
|
1062
|
+
shopId: string;
|
|
1063
|
+
shopDomain: string;
|
|
1064
|
+
};
|
|
1065
|
+
occurredAt: string | null;
|
|
1066
|
+
receivedAt: string;
|
|
1067
|
+
traceId: string;
|
|
1068
|
+
orderingKey: string;
|
|
1069
|
+
eventType: "checkout.updated";
|
|
1070
|
+
payload: {
|
|
1071
|
+
checkoutToken: string;
|
|
1072
|
+
};
|
|
1073
|
+
internationalContext?: {
|
|
1074
|
+
languageTag: string | null;
|
|
1075
|
+
languageSource: "customer-explicit" | "detected" | "shopify" | "merchant-default" | "platform-default" | null;
|
|
1076
|
+
countryCode: string | null;
|
|
1077
|
+
currencyCode: string | null;
|
|
1078
|
+
timeZone: string | null;
|
|
1079
|
+
} | undefined;
|
|
1080
|
+
} | {
|
|
1081
|
+
schemaVersion: 2;
|
|
1082
|
+
receiptId: string;
|
|
1083
|
+
deliveryId: string;
|
|
1084
|
+
eventId: string | null;
|
|
1085
|
+
source: "shopify";
|
|
1086
|
+
providerTopic: string;
|
|
1087
|
+
tenant: {
|
|
1088
|
+
shopId: string;
|
|
1089
|
+
shopDomain: string;
|
|
1090
|
+
};
|
|
1091
|
+
occurredAt: string | null;
|
|
1092
|
+
receivedAt: string;
|
|
1093
|
+
traceId: string;
|
|
1094
|
+
orderingKey: string;
|
|
1095
|
+
eventType: "order.completed";
|
|
1096
|
+
payload: {
|
|
1097
|
+
orderId: string;
|
|
1098
|
+
checkoutToken: string | null;
|
|
1099
|
+
cartToken: string | null;
|
|
1100
|
+
completedAt: string;
|
|
1101
|
+
};
|
|
1102
|
+
internationalContext?: {
|
|
1103
|
+
languageTag: string | null;
|
|
1104
|
+
languageSource: "customer-explicit" | "detected" | "shopify" | "merchant-default" | "platform-default" | null;
|
|
1105
|
+
countryCode: string | null;
|
|
1106
|
+
currencyCode: string | null;
|
|
1107
|
+
timeZone: string | null;
|
|
1108
|
+
} | undefined;
|
|
1109
|
+
} | {
|
|
1110
|
+
schemaVersion: 3;
|
|
1111
|
+
receiptId: string;
|
|
1112
|
+
deliveryId: string;
|
|
1113
|
+
eventId: string | null;
|
|
1114
|
+
source: "shopify";
|
|
1115
|
+
providerTopic: string;
|
|
1116
|
+
tenant: {
|
|
1117
|
+
shopId: string;
|
|
1118
|
+
shopDomain: string;
|
|
1119
|
+
};
|
|
1120
|
+
occurredAt: string | null;
|
|
1121
|
+
receivedAt: string;
|
|
1122
|
+
traceId: string;
|
|
1123
|
+
orderingKey: string;
|
|
1124
|
+
eventType: "checkout.updated";
|
|
1125
|
+
payload: {
|
|
1126
|
+
checkoutToken: string;
|
|
1127
|
+
cartToken?: string | null | undefined;
|
|
1128
|
+
checkoutCreatedAt?: string | null | undefined;
|
|
1129
|
+
abandonedCheckoutUrl?: string | null | undefined;
|
|
1130
|
+
};
|
|
1131
|
+
internationalContext?: {
|
|
1132
|
+
languageTag: string | null;
|
|
1133
|
+
languageSource: "customer-explicit" | "detected" | "shopify" | "merchant-default" | "platform-default" | null;
|
|
1134
|
+
countryCode: string | null;
|
|
1135
|
+
currencyCode: string | null;
|
|
1136
|
+
timeZone: string | null;
|
|
1137
|
+
} | undefined;
|
|
1138
|
+
}>;
|
|
1139
|
+
|
|
775
1140
|
declare const SHOPIFY_WEBHOOK_QUEUE_CONTRACTS: {
|
|
776
1141
|
readonly CHECKOUT_EVENTS: {
|
|
777
1142
|
readonly queueName: "checkout-events";
|
|
@@ -843,4 +1208,4 @@ declare function safeParseShopifyDiscountSyncJob(input: unknown): z.ZodSafeParse
|
|
|
843
1208
|
webhookTopic: "discounts/create" | "discounts/update" | "discounts/delete" | "discounts/redeemcode_added" | "discounts/redeemcode_removed" | null;
|
|
844
1209
|
}>;
|
|
845
1210
|
|
|
846
|
-
export { type CheckoutCreatedPayloadV2, CheckoutCreatedPayloadV2Schema, type CheckoutObservedPayload, CheckoutObservedPayloadSchema, type CheckoutUpdatedPayloadV2, CheckoutUpdatedPayloadV2Schema, MAX_LINE_ITEMS, MAX_URL_LENGTH, type OrderCompletedPayload, OrderCompletedPayloadSchema, type OrderCompletedPayloadV2, OrderCompletedPayloadV2Schema, SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION, SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V1, SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V2, SHOPIFY_COMMERCE_EVENT_TYPES, SHOPIFY_DISCOUNT_SYNC_REASONS, SHOPIFY_DISCOUNT_SYNC_WEBHOOK_TOPICS, SHOPIFY_RECOVERY_EVENT_TYPES_V2, SHOPIFY_WEBHOOK_OUTBOX_DESTINATIONS, SHOPIFY_WEBHOOK_QUEUE_CONTRACTS, type ShopifyCartActivityEventV2, ShopifyCartActivityEventV2Schema, type ShopifyCartActivityPayloadV2, ShopifyCartActivityPayloadV2Schema, type ShopifyCheckoutCreatedEventV2, ShopifyCheckoutCreatedEventV2Schema, type ShopifyCheckoutLineItem, ShopifyCheckoutLineItemSchema, ShopifyCheckoutLineItemsSchema, type ShopifyCheckoutObservedEvent, ShopifyCheckoutObservedEventSchema, type ShopifyCheckoutUpdatedEventV2, ShopifyCheckoutUpdatedEventV2Schema, type ShopifyCommerceEvent, ShopifyCommerceEventSchema, type ShopifyCommerceEventType, type ShopifyCustomerReference, ShopifyCustomerReferenceSchema, type ShopifyDiscountSyncJob, ShopifyDiscountSyncJobSchema, ShopifyDiscountSyncReasonSchema, ShopifyDiscountSyncWebhookTopicSchema, type ShopifyMoney, ShopifyMoneySchema, type ShopifyOrderCompletedEvent, ShopifyOrderCompletedEventSchema, type ShopifyOrderCompletedEventV2, ShopifyOrderCompletedEventV2Schema, type ShopifyRecoveryEventTypeV2, type ShopifyRecoveryEventV2, ShopifyRecoveryEventV2Schema, type ShopifyTenant, ShopifyTenantSchema, createShopifyCartActivityOrderingKey, createShopifyCommerceOrderingKey, createShopifyOrderCorrelationOrderingKey, createShopifyOrderOrderingKey, createShopifyPendingRecoveryOrderingKey, isCartActivityEventV2, isCheckoutCreatedEventV2, isCheckoutObservedEvent, isCheckoutUpdatedEventV2, isOrderCompletedEvent, isOrderCompletedEventV2, parseShopifyCommerceEvent, parseShopifyDiscountSyncJob, parseShopifyRecoveryEventV2, safeParseShopifyCommerceEvent, safeParseShopifyDiscountSyncJob, safeParseShopifyRecoveryEventV2 };
|
|
1211
|
+
export { type CheckoutCreatedPayloadV2, CheckoutCreatedPayloadV2Schema, type CheckoutObservedPayload, CheckoutObservedPayloadSchema, type CheckoutUpdatedPayloadV2, CheckoutUpdatedPayloadV2Schema, type CheckoutUpdatedPayloadV3, CheckoutUpdatedPayloadV3Schema, MAX_LINE_ITEMS, MAX_URL_LENGTH, type OrderCompletedPayload, OrderCompletedPayloadSchema, type OrderCompletedPayloadV2, OrderCompletedPayloadV2Schema, SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION, SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V1, SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V2, SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V3, SHOPIFY_COMMERCE_EVENT_TYPES, SHOPIFY_DISCOUNT_SYNC_REASONS, SHOPIFY_DISCOUNT_SYNC_WEBHOOK_TOPICS, SHOPIFY_RECOVERY_EVENT_TYPES_V2, SHOPIFY_RECOVERY_EVENT_TYPES_V3, SHOPIFY_WEBHOOK_OUTBOX_DESTINATIONS, SHOPIFY_WEBHOOK_QUEUE_CONTRACTS, type ShopifyCartActivityEventV2, ShopifyCartActivityEventV2Schema, type ShopifyCartActivityPayloadV2, ShopifyCartActivityPayloadV2Schema, type ShopifyCheckoutCreatedEventV2, ShopifyCheckoutCreatedEventV2Schema, type ShopifyCheckoutLineItem, ShopifyCheckoutLineItemSchema, ShopifyCheckoutLineItemsSchema, type ShopifyCheckoutObservedEvent, ShopifyCheckoutObservedEventSchema, type ShopifyCheckoutUpdatedEventV2, ShopifyCheckoutUpdatedEventV2Schema, type ShopifyCheckoutUpdatedEventV3, ShopifyCheckoutUpdatedEventV3Schema, type ShopifyCommerceEvent, ShopifyCommerceEventSchema, type ShopifyCommerceEventType, type ShopifyCustomerReference, ShopifyCustomerReferenceSchema, type ShopifyDiscountSyncJob, ShopifyDiscountSyncJobSchema, ShopifyDiscountSyncReasonSchema, ShopifyDiscountSyncWebhookTopicSchema, type ShopifyMoney, ShopifyMoneySchema, type ShopifyOrderCompletedEvent, ShopifyOrderCompletedEventSchema, type ShopifyOrderCompletedEventV2, ShopifyOrderCompletedEventV2Schema, type ShopifyRecoveryEvent, ShopifyRecoveryEventSchema, type ShopifyRecoveryEventTypeV2, type ShopifyRecoveryEventV2, ShopifyRecoveryEventV2Schema, type ShopifyTenant, ShopifyTenantSchema, createShopifyCartActivityOrderingKey, createShopifyCommerceOrderingKey, createShopifyOrderCorrelationOrderingKey, createShopifyOrderOrderingKey, createShopifyPendingRecoveryOrderingKey, isCartActivityEventV2, isCheckoutCreatedEventV2, isCheckoutObservedEvent, isCheckoutUpdatedEventV2, isOrderCompletedEvent, isOrderCompletedEventV2, parseShopifyCommerceEvent, parseShopifyDiscountSyncJob, parseShopifyRecoveryEvent, parseShopifyRecoveryEventV2, safeParseShopifyCommerceEvent, safeParseShopifyDiscountSyncJob, safeParseShopifyRecoveryEvent, safeParseShopifyRecoveryEventV2 };
|
package/dist/shopify/index.js
CHANGED
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
CheckoutCreatedPayloadV2Schema,
|
|
3
3
|
CheckoutObservedPayloadSchema,
|
|
4
4
|
CheckoutUpdatedPayloadV2Schema,
|
|
5
|
+
CheckoutUpdatedPayloadV3Schema,
|
|
5
6
|
MAX_LINE_ITEMS,
|
|
6
7
|
MAX_URL_LENGTH,
|
|
7
8
|
OrderCompletedPayloadSchema,
|
|
@@ -9,10 +10,12 @@ import {
|
|
|
9
10
|
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION,
|
|
10
11
|
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V1,
|
|
11
12
|
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V2,
|
|
13
|
+
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V3,
|
|
12
14
|
SHOPIFY_COMMERCE_EVENT_TYPES,
|
|
13
15
|
SHOPIFY_DISCOUNT_SYNC_REASONS,
|
|
14
16
|
SHOPIFY_DISCOUNT_SYNC_WEBHOOK_TOPICS,
|
|
15
17
|
SHOPIFY_RECOVERY_EVENT_TYPES_V2,
|
|
18
|
+
SHOPIFY_RECOVERY_EVENT_TYPES_V3,
|
|
16
19
|
SHOPIFY_WEBHOOK_OUTBOX_DESTINATIONS,
|
|
17
20
|
SHOPIFY_WEBHOOK_QUEUE_CONTRACTS,
|
|
18
21
|
ShopifyCartActivityEventV2Schema,
|
|
@@ -22,6 +25,7 @@ import {
|
|
|
22
25
|
ShopifyCheckoutLineItemsSchema,
|
|
23
26
|
ShopifyCheckoutObservedEventSchema,
|
|
24
27
|
ShopifyCheckoutUpdatedEventV2Schema,
|
|
28
|
+
ShopifyCheckoutUpdatedEventV3Schema,
|
|
25
29
|
ShopifyCommerceEventSchema,
|
|
26
30
|
ShopifyCustomerReferenceSchema,
|
|
27
31
|
ShopifyDiscountSyncJobSchema,
|
|
@@ -30,6 +34,7 @@ import {
|
|
|
30
34
|
ShopifyMoneySchema,
|
|
31
35
|
ShopifyOrderCompletedEventSchema,
|
|
32
36
|
ShopifyOrderCompletedEventV2Schema,
|
|
37
|
+
ShopifyRecoveryEventSchema,
|
|
33
38
|
ShopifyRecoveryEventV2Schema,
|
|
34
39
|
ShopifyTenantSchema,
|
|
35
40
|
createShopifyCartActivityOrderingKey,
|
|
@@ -45,16 +50,19 @@ import {
|
|
|
45
50
|
isOrderCompletedEventV2,
|
|
46
51
|
parseShopifyCommerceEvent,
|
|
47
52
|
parseShopifyDiscountSyncJob,
|
|
53
|
+
parseShopifyRecoveryEvent,
|
|
48
54
|
parseShopifyRecoveryEventV2,
|
|
49
55
|
safeParseShopifyCommerceEvent,
|
|
50
56
|
safeParseShopifyDiscountSyncJob,
|
|
57
|
+
safeParseShopifyRecoveryEvent,
|
|
51
58
|
safeParseShopifyRecoveryEventV2
|
|
52
|
-
} from "../chunk-
|
|
59
|
+
} from "../chunk-SU2DAOEC.js";
|
|
53
60
|
import "../chunk-4KSODB2R.js";
|
|
54
61
|
export {
|
|
55
62
|
CheckoutCreatedPayloadV2Schema,
|
|
56
63
|
CheckoutObservedPayloadSchema,
|
|
57
64
|
CheckoutUpdatedPayloadV2Schema,
|
|
65
|
+
CheckoutUpdatedPayloadV3Schema,
|
|
58
66
|
MAX_LINE_ITEMS,
|
|
59
67
|
MAX_URL_LENGTH,
|
|
60
68
|
OrderCompletedPayloadSchema,
|
|
@@ -62,10 +70,12 @@ export {
|
|
|
62
70
|
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION,
|
|
63
71
|
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V1,
|
|
64
72
|
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V2,
|
|
73
|
+
SHOPIFY_COMMERCE_EVENT_SCHEMA_VERSION_V3,
|
|
65
74
|
SHOPIFY_COMMERCE_EVENT_TYPES,
|
|
66
75
|
SHOPIFY_DISCOUNT_SYNC_REASONS,
|
|
67
76
|
SHOPIFY_DISCOUNT_SYNC_WEBHOOK_TOPICS,
|
|
68
77
|
SHOPIFY_RECOVERY_EVENT_TYPES_V2,
|
|
78
|
+
SHOPIFY_RECOVERY_EVENT_TYPES_V3,
|
|
69
79
|
SHOPIFY_WEBHOOK_OUTBOX_DESTINATIONS,
|
|
70
80
|
SHOPIFY_WEBHOOK_QUEUE_CONTRACTS,
|
|
71
81
|
ShopifyCartActivityEventV2Schema,
|
|
@@ -75,6 +85,7 @@ export {
|
|
|
75
85
|
ShopifyCheckoutLineItemsSchema,
|
|
76
86
|
ShopifyCheckoutObservedEventSchema,
|
|
77
87
|
ShopifyCheckoutUpdatedEventV2Schema,
|
|
88
|
+
ShopifyCheckoutUpdatedEventV3Schema,
|
|
78
89
|
ShopifyCommerceEventSchema,
|
|
79
90
|
ShopifyCustomerReferenceSchema,
|
|
80
91
|
ShopifyDiscountSyncJobSchema,
|
|
@@ -83,6 +94,7 @@ export {
|
|
|
83
94
|
ShopifyMoneySchema,
|
|
84
95
|
ShopifyOrderCompletedEventSchema,
|
|
85
96
|
ShopifyOrderCompletedEventV2Schema,
|
|
97
|
+
ShopifyRecoveryEventSchema,
|
|
86
98
|
ShopifyRecoveryEventV2Schema,
|
|
87
99
|
ShopifyTenantSchema,
|
|
88
100
|
createShopifyCartActivityOrderingKey,
|
|
@@ -98,9 +110,11 @@ export {
|
|
|
98
110
|
isOrderCompletedEventV2,
|
|
99
111
|
parseShopifyCommerceEvent,
|
|
100
112
|
parseShopifyDiscountSyncJob,
|
|
113
|
+
parseShopifyRecoveryEvent,
|
|
101
114
|
parseShopifyRecoveryEventV2,
|
|
102
115
|
safeParseShopifyCommerceEvent,
|
|
103
116
|
safeParseShopifyDiscountSyncJob,
|
|
117
|
+
safeParseShopifyRecoveryEvent,
|
|
104
118
|
safeParseShopifyRecoveryEventV2
|
|
105
119
|
};
|
|
106
120
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modainteract/moda-interact-shared",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -95,6 +95,10 @@
|
|
|
95
95
|
"./merchant-knowledge/node": {
|
|
96
96
|
"types": "./dist/merchant-knowledge/node.d.ts",
|
|
97
97
|
"import": "./dist/merchant-knowledge/node.js"
|
|
98
|
+
},
|
|
99
|
+
"./incidents": {
|
|
100
|
+
"types": "./dist/incidents/index.d.ts",
|
|
101
|
+
"import": "./dist/incidents/index.js"
|
|
98
102
|
}
|
|
99
103
|
},
|
|
100
104
|
"files": [
|
|
@@ -114,7 +118,8 @@
|
|
|
114
118
|
"prepack": "npm run build",
|
|
115
119
|
"validate:commerce-entrypoints": "node scripts/validate-commerce-entrypoints.mjs",
|
|
116
120
|
"validate:arch023-shared-entrypoints": "npm run build && node scripts/validate-arch023-shared-entrypoints.mjs",
|
|
117
|
-
"validate:arch024-model-entrypoints": "npm run build && node scripts/validate-arch024-model-entrypoints.mjs"
|
|
121
|
+
"validate:arch024-model-entrypoints": "npm run build && node scripts/validate-arch024-model-entrypoints.mjs",
|
|
122
|
+
"test:arch033-incidents:postgres": "node scripts/test-arch033-incidents-postgres.mjs"
|
|
118
123
|
},
|
|
119
124
|
"dependencies": {
|
|
120
125
|
"@opentelemetry/api": "^1.9.0",
|