@modainteract/moda-interact-shared 0.12.2 → 0.13.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-QNANS4R4.js +1027 -0
- package/dist/chunk-QNANS4R4.js.map +1 -0
- package/dist/commerce/index.d.ts +102 -0
- package/dist/commerce/index.js +258 -0
- package/dist/commerce/index.js.map +1 -0
- package/dist/commerce/runner/index.d.ts +80 -0
- package/dist/commerce/runner/index.js +297 -0
- package/dist/commerce/runner/index.js.map +1 -0
- package/dist/internationalization.d.ts +2 -2
- package/dist/response-CrhM-N0k.d.ts +1004 -0
- package/dist/shopify/index.d.ts +12 -12
- package/package.json +13 -2
package/dist/shopify/index.d.ts
CHANGED
|
@@ -384,9 +384,9 @@ declare const ShopifyCheckoutCreatedEventV2Schema: z.ZodObject<{
|
|
|
384
384
|
internationalContext: z.ZodOptional<z.ZodObject<{
|
|
385
385
|
languageTag: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
386
386
|
languageSource: z.ZodNullable<z.ZodEnum<{
|
|
387
|
+
shopify: "shopify";
|
|
387
388
|
"customer-explicit": "customer-explicit";
|
|
388
389
|
detected: "detected";
|
|
389
|
-
shopify: "shopify";
|
|
390
390
|
"merchant-default": "merchant-default";
|
|
391
391
|
"platform-default": "platform-default";
|
|
392
392
|
}>>;
|
|
@@ -421,9 +421,9 @@ declare const ShopifyCartActivityEventV2Schema: z.ZodObject<{
|
|
|
421
421
|
internationalContext: z.ZodOptional<z.ZodObject<{
|
|
422
422
|
languageTag: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
423
423
|
languageSource: z.ZodNullable<z.ZodEnum<{
|
|
424
|
+
shopify: "shopify";
|
|
424
425
|
"customer-explicit": "customer-explicit";
|
|
425
426
|
detected: "detected";
|
|
426
|
-
shopify: "shopify";
|
|
427
427
|
"merchant-default": "merchant-default";
|
|
428
428
|
"platform-default": "platform-default";
|
|
429
429
|
}>>;
|
|
@@ -456,9 +456,9 @@ declare const ShopifyCheckoutUpdatedEventV2Schema: z.ZodObject<{
|
|
|
456
456
|
internationalContext: z.ZodOptional<z.ZodObject<{
|
|
457
457
|
languageTag: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
458
458
|
languageSource: z.ZodNullable<z.ZodEnum<{
|
|
459
|
+
shopify: "shopify";
|
|
459
460
|
"customer-explicit": "customer-explicit";
|
|
460
461
|
detected: "detected";
|
|
461
|
-
shopify: "shopify";
|
|
462
462
|
"merchant-default": "merchant-default";
|
|
463
463
|
"platform-default": "platform-default";
|
|
464
464
|
}>>;
|
|
@@ -490,9 +490,9 @@ declare const ShopifyOrderCompletedEventV2Schema: z.ZodObject<{
|
|
|
490
490
|
internationalContext: z.ZodOptional<z.ZodObject<{
|
|
491
491
|
languageTag: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
492
492
|
languageSource: z.ZodNullable<z.ZodEnum<{
|
|
493
|
+
shopify: "shopify";
|
|
493
494
|
"customer-explicit": "customer-explicit";
|
|
494
495
|
detected: "detected";
|
|
495
|
-
shopify: "shopify";
|
|
496
496
|
"merchant-default": "merchant-default";
|
|
497
497
|
"platform-default": "platform-default";
|
|
498
498
|
}>>;
|
|
@@ -527,9 +527,9 @@ declare const ShopifyRecoveryEventV2Schema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
527
527
|
internationalContext: z.ZodOptional<z.ZodObject<{
|
|
528
528
|
languageTag: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
529
529
|
languageSource: z.ZodNullable<z.ZodEnum<{
|
|
530
|
+
shopify: "shopify";
|
|
530
531
|
"customer-explicit": "customer-explicit";
|
|
531
532
|
detected: "detected";
|
|
532
|
-
shopify: "shopify";
|
|
533
533
|
"merchant-default": "merchant-default";
|
|
534
534
|
"platform-default": "platform-default";
|
|
535
535
|
}>>;
|
|
@@ -560,9 +560,9 @@ declare const ShopifyRecoveryEventV2Schema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
560
560
|
internationalContext: z.ZodOptional<z.ZodObject<{
|
|
561
561
|
languageTag: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
562
562
|
languageSource: z.ZodNullable<z.ZodEnum<{
|
|
563
|
+
shopify: "shopify";
|
|
563
564
|
"customer-explicit": "customer-explicit";
|
|
564
565
|
detected: "detected";
|
|
565
|
-
shopify: "shopify";
|
|
566
566
|
"merchant-default": "merchant-default";
|
|
567
567
|
"platform-default": "platform-default";
|
|
568
568
|
}>>;
|
|
@@ -595,9 +595,9 @@ declare const ShopifyRecoveryEventV2Schema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
595
595
|
internationalContext: z.ZodOptional<z.ZodObject<{
|
|
596
596
|
languageTag: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
597
597
|
languageSource: z.ZodNullable<z.ZodEnum<{
|
|
598
|
+
shopify: "shopify";
|
|
598
599
|
"customer-explicit": "customer-explicit";
|
|
599
600
|
detected: "detected";
|
|
600
|
-
shopify: "shopify";
|
|
601
601
|
"merchant-default": "merchant-default";
|
|
602
602
|
"platform-default": "platform-default";
|
|
603
603
|
}>>;
|
|
@@ -627,9 +627,9 @@ declare const ShopifyRecoveryEventV2Schema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
627
627
|
internationalContext: z.ZodOptional<z.ZodObject<{
|
|
628
628
|
languageTag: z.ZodNullable<z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>>;
|
|
629
629
|
languageSource: z.ZodNullable<z.ZodEnum<{
|
|
630
|
+
shopify: "shopify";
|
|
630
631
|
"customer-explicit": "customer-explicit";
|
|
631
632
|
detected: "detected";
|
|
632
|
-
shopify: "shopify";
|
|
633
633
|
"merchant-default": "merchant-default";
|
|
634
634
|
"platform-default": "platform-default";
|
|
635
635
|
}>>;
|
|
@@ -672,7 +672,7 @@ declare function safeParseShopifyRecoveryEventV2(input: unknown): z.ZodSafeParse
|
|
|
672
672
|
};
|
|
673
673
|
internationalContext?: {
|
|
674
674
|
languageTag: string | null;
|
|
675
|
-
languageSource: "
|
|
675
|
+
languageSource: "shopify" | "customer-explicit" | "detected" | "merchant-default" | "platform-default" | null;
|
|
676
676
|
countryCode: string | null;
|
|
677
677
|
currencyCode: string | null;
|
|
678
678
|
timeZone: string | null;
|
|
@@ -699,7 +699,7 @@ declare function safeParseShopifyRecoveryEventV2(input: unknown): z.ZodSafeParse
|
|
|
699
699
|
};
|
|
700
700
|
internationalContext?: {
|
|
701
701
|
languageTag: string | null;
|
|
702
|
-
languageSource: "
|
|
702
|
+
languageSource: "shopify" | "customer-explicit" | "detected" | "merchant-default" | "platform-default" | null;
|
|
703
703
|
countryCode: string | null;
|
|
704
704
|
currencyCode: string | null;
|
|
705
705
|
timeZone: string | null;
|
|
@@ -725,7 +725,7 @@ declare function safeParseShopifyRecoveryEventV2(input: unknown): z.ZodSafeParse
|
|
|
725
725
|
};
|
|
726
726
|
internationalContext?: {
|
|
727
727
|
languageTag: string | null;
|
|
728
|
-
languageSource: "
|
|
728
|
+
languageSource: "shopify" | "customer-explicit" | "detected" | "merchant-default" | "platform-default" | null;
|
|
729
729
|
countryCode: string | null;
|
|
730
730
|
currencyCode: string | null;
|
|
731
731
|
timeZone: string | null;
|
|
@@ -754,7 +754,7 @@ declare function safeParseShopifyRecoveryEventV2(input: unknown): z.ZodSafeParse
|
|
|
754
754
|
};
|
|
755
755
|
internationalContext?: {
|
|
756
756
|
languageTag: string | null;
|
|
757
|
-
languageSource: "
|
|
757
|
+
languageSource: "shopify" | "customer-explicit" | "detected" | "merchant-default" | "platform-default" | null;
|
|
758
758
|
countryCode: string | null;
|
|
759
759
|
currencyCode: string | null;
|
|
760
760
|
timeZone: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modainteract/moda-interact-shared",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.13.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -71,6 +71,14 @@
|
|
|
71
71
|
"./observability/genai": {
|
|
72
72
|
"types": "./dist/observability/genai.d.ts",
|
|
73
73
|
"import": "./dist/observability/genai.js"
|
|
74
|
+
},
|
|
75
|
+
"./commerce": {
|
|
76
|
+
"types": "./dist/commerce/index.d.ts",
|
|
77
|
+
"import": "./dist/commerce/index.js"
|
|
78
|
+
},
|
|
79
|
+
"./commerce/runner": {
|
|
80
|
+
"types": "./dist/commerce/runner/index.d.ts",
|
|
81
|
+
"import": "./dist/commerce/runner/index.js"
|
|
74
82
|
}
|
|
75
83
|
},
|
|
76
84
|
"files": [
|
|
@@ -86,7 +94,8 @@
|
|
|
86
94
|
"validate:merchant-communications-node": "npm run build && node scripts/validate-merchant-communications-node.mjs",
|
|
87
95
|
"validate:testing-node": "npm run build && node scripts/validate-testing-node.mjs",
|
|
88
96
|
"validate:testing-node-live": "npm run build && node scripts/validate-testing-node-live.mjs",
|
|
89
|
-
"prepack": "npm run build"
|
|
97
|
+
"prepack": "npm run build",
|
|
98
|
+
"validate:commerce-entrypoints": "node scripts/validate-commerce-entrypoints.mjs"
|
|
90
99
|
},
|
|
91
100
|
"dependencies": {
|
|
92
101
|
"@opentelemetry/api": "^1.9.0",
|
|
@@ -105,12 +114,14 @@
|
|
|
105
114
|
"@prisma/instrumentation": "^6.19.3",
|
|
106
115
|
"bullmq-otel": "^2.0.1",
|
|
107
116
|
"intl-messageformat": "^10.7.18",
|
|
117
|
+
"semver": "7.8.5",
|
|
108
118
|
"winston": "3.19.0",
|
|
109
119
|
"winston-loki": "6.1.7",
|
|
110
120
|
"zod": "^4.0.0"
|
|
111
121
|
},
|
|
112
122
|
"devDependencies": {
|
|
113
123
|
"@types/node": "^26.4.0",
|
|
124
|
+
"@types/semver": "7.8.0",
|
|
114
125
|
"bullmq": "^6.3.1",
|
|
115
126
|
"ioredis": "^6.0.0",
|
|
116
127
|
"tsup": "^8.0.0",
|