@modainteract/moda-interact-shared 2.5.1 → 2.7.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-XUTUA6JD.js → chunk-FOM6C3JF.js} +5 -3
- package/dist/{chunk-XUTUA6JD.js.map → chunk-FOM6C3JF.js.map} +1 -1
- package/dist/chunk-QVPEX7KY.js +54 -0
- package/dist/chunk-QVPEX7KY.js.map +1 -0
- package/dist/{chunk-QJNZJACH.js → chunk-XTKCNFLQ.js} +271 -226
- package/dist/chunk-XTKCNFLQ.js.map +1 -0
- package/dist/commerce/index.d.ts +10 -3
- package/dist/commerce/index.js +29 -12
- package/dist/commerce/index.js.map +1 -1
- package/dist/commerce/model/node.d.ts +2 -2
- package/dist/commerce/model/node.js +2 -1
- package/dist/commerce/model/node.js.map +1 -1
- package/dist/commerce/runner/index.d.ts +3 -3
- package/dist/commerce/runner/index.js +5 -3
- package/dist/commerce/runner/index.js.map +1 -1
- package/dist/recovery-offer-proof.d.ts +133 -0
- package/dist/recovery-offer-proof.js +70 -0
- package/dist/recovery-offer-proof.js.map +1 -0
- package/dist/recovery-template-bindings.d.ts +142 -0
- package/dist/recovery-template-bindings.js +62 -0
- package/dist/recovery-template-bindings.js.map +1 -0
- package/dist/{response-DjZkLFT7.d.ts → response-C6-kYOel.d.ts} +305 -7
- package/dist/{types-LT58TPMW.d.ts → types-CGQgT51t.d.ts} +1 -1
- package/package.json +9 -1
- package/dist/chunk-QJNZJACH.js.map +0 -1
|
@@ -710,9 +710,15 @@ declare const CommerceBasketSchema: z.ZodObject<{
|
|
|
710
710
|
fingerprint: z.ZodString;
|
|
711
711
|
unknownFields: z.ZodArray<z.ZodString>;
|
|
712
712
|
}, z.core.$strict>;
|
|
713
|
+
declare const CommerceProductSaleEvidenceSchema: z.ZodObject<{
|
|
714
|
+
regularPrice: z.ZodNullable<z.ZodString>;
|
|
715
|
+
salePrice: z.ZodNullable<z.ZodString>;
|
|
716
|
+
observedAt: z.ZodISODateTime;
|
|
717
|
+
}, z.core.$strict>;
|
|
718
|
+
type CommerceProductSaleEvidence = z.infer<typeof CommerceProductSaleEvidenceSchema>;
|
|
713
719
|
declare const CommerceProductSchema: z.ZodObject<{
|
|
714
720
|
productId: z.ZodString;
|
|
715
|
-
variantId: z.ZodString
|
|
721
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
716
722
|
title: z.ZodString;
|
|
717
723
|
url: z.ZodNullable<z.ZodURL>;
|
|
718
724
|
available: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -720,6 +726,15 @@ declare const CommerceProductSchema: z.ZodObject<{
|
|
|
720
726
|
currency: z.ZodNullable<z.ZodString>;
|
|
721
727
|
productType: z.ZodNullable<z.ZodString>;
|
|
722
728
|
vendor: z.ZodNullable<z.ZodString>;
|
|
729
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
730
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
731
|
+
collectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
732
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
733
|
+
saleEvidence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
734
|
+
regularPrice: z.ZodNullable<z.ZodString>;
|
|
735
|
+
salePrice: z.ZodNullable<z.ZodString>;
|
|
736
|
+
observedAt: z.ZodISODateTime;
|
|
737
|
+
}, z.core.$strict>>>;
|
|
723
738
|
observedAt: z.ZodISODateTime;
|
|
724
739
|
}, z.core.$strict>;
|
|
725
740
|
declare const CommerceOfferSchema: z.ZodObject<{
|
|
@@ -739,6 +754,141 @@ declare const CommerceOfferSchema: z.ZodObject<{
|
|
|
739
754
|
}>;
|
|
740
755
|
reasonCodes: z.ZodArray<z.ZodString>;
|
|
741
756
|
}, z.core.$strict>;
|
|
757
|
+
declare const CommerceDiscountConditionFactsSchema: z.ZodObject<{
|
|
758
|
+
provider: z.ZodEnum<{
|
|
759
|
+
SHOPIFY: "SHOPIFY";
|
|
760
|
+
WOOCOMMERCE: "WOOCOMMERCE";
|
|
761
|
+
}>;
|
|
762
|
+
completeness: z.ZodEnum<{
|
|
763
|
+
UNKNOWN: "UNKNOWN";
|
|
764
|
+
COMPLETE: "COMPLETE";
|
|
765
|
+
PARTIAL: "PARTIAL";
|
|
766
|
+
}>;
|
|
767
|
+
observedAt: z.ZodISODateTime;
|
|
768
|
+
providerStatus: z.ZodString;
|
|
769
|
+
unavailableAt: z.ZodNullable<z.ZodISODateTime>;
|
|
770
|
+
discountKind: z.ZodEnum<{
|
|
771
|
+
UNKNOWN: "UNKNOWN";
|
|
772
|
+
PERCENTAGE: "PERCENTAGE";
|
|
773
|
+
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
774
|
+
FREE_SHIPPING: "FREE_SHIPPING";
|
|
775
|
+
BUY_X_GET_Y: "BUY_X_GET_Y";
|
|
776
|
+
OTHER: "OTHER";
|
|
777
|
+
}>;
|
|
778
|
+
discountValue: z.ZodNullable<z.ZodString>;
|
|
779
|
+
discountCurrency: z.ZodNullable<z.ZodString>;
|
|
780
|
+
targeting: z.ZodObject<{
|
|
781
|
+
kind: z.ZodEnum<{
|
|
782
|
+
UNKNOWN: "UNKNOWN";
|
|
783
|
+
ALL: "ALL";
|
|
784
|
+
PRODUCTS: "PRODUCTS";
|
|
785
|
+
VARIANTS: "VARIANTS";
|
|
786
|
+
CATEGORIES: "CATEGORIES";
|
|
787
|
+
COLLECTIONS: "COLLECTIONS";
|
|
788
|
+
MIXED: "MIXED";
|
|
789
|
+
}>;
|
|
790
|
+
includedProductIds: z.ZodArray<z.ZodString>;
|
|
791
|
+
includedVariantIds: z.ZodArray<z.ZodString>;
|
|
792
|
+
includedCategoryIds: z.ZodArray<z.ZodString>;
|
|
793
|
+
includedCollectionIds: z.ZodArray<z.ZodString>;
|
|
794
|
+
excludedProductIds: z.ZodArray<z.ZodString>;
|
|
795
|
+
excludedVariantIds: z.ZodArray<z.ZodString>;
|
|
796
|
+
excludedCategoryIds: z.ZodArray<z.ZodString>;
|
|
797
|
+
excludedCollectionIds: z.ZodArray<z.ZodString>;
|
|
798
|
+
}, z.core.$strict>;
|
|
799
|
+
minimumSubtotal: z.ZodNullable<z.ZodString>;
|
|
800
|
+
maximumSubtotal: z.ZodNullable<z.ZodString>;
|
|
801
|
+
minimumQuantity: z.ZodNullable<z.ZodNumber>;
|
|
802
|
+
usageLimit: z.ZodNullable<z.ZodNumber>;
|
|
803
|
+
usageCount: z.ZodNullable<z.ZodNumber>;
|
|
804
|
+
perCustomerLimit: z.ZodNullable<z.ZodNumber>;
|
|
805
|
+
customerScope: z.ZodEnum<{
|
|
806
|
+
UNKNOWN: "UNKNOWN";
|
|
807
|
+
ALL: "ALL";
|
|
808
|
+
RESTRICTED: "RESTRICTED";
|
|
809
|
+
}>;
|
|
810
|
+
excludesSaleItems: z.ZodNullable<z.ZodBoolean>;
|
|
811
|
+
individualUse: z.ZodNullable<z.ZodBoolean>;
|
|
812
|
+
unrepresentedConditions: z.ZodArray<z.ZodString>;
|
|
813
|
+
}, z.core.$strict>;
|
|
814
|
+
type CommerceDiscountConditionFacts = z.infer<typeof CommerceDiscountConditionFactsSchema>;
|
|
815
|
+
declare const CommerceDiscountDetailsSchema: z.ZodObject<{
|
|
816
|
+
offer: z.ZodObject<{
|
|
817
|
+
offerId: z.ZodString;
|
|
818
|
+
title: z.ZodString;
|
|
819
|
+
method: z.ZodEnum<{
|
|
820
|
+
AUTOMATIC: "AUTOMATIC";
|
|
821
|
+
CODE: "CODE";
|
|
822
|
+
}>;
|
|
823
|
+
code: z.ZodNullable<z.ZodString>;
|
|
824
|
+
startsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
825
|
+
endsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
826
|
+
support: z.ZodEnum<{
|
|
827
|
+
SUPPORTED: "SUPPORTED";
|
|
828
|
+
UNSUPPORTED: "UNSUPPORTED";
|
|
829
|
+
UNKNOWN: "UNKNOWN";
|
|
830
|
+
}>;
|
|
831
|
+
reasonCodes: z.ZodArray<z.ZodString>;
|
|
832
|
+
}, z.core.$strict>;
|
|
833
|
+
facts: z.ZodObject<{
|
|
834
|
+
provider: z.ZodEnum<{
|
|
835
|
+
SHOPIFY: "SHOPIFY";
|
|
836
|
+
WOOCOMMERCE: "WOOCOMMERCE";
|
|
837
|
+
}>;
|
|
838
|
+
completeness: z.ZodEnum<{
|
|
839
|
+
UNKNOWN: "UNKNOWN";
|
|
840
|
+
COMPLETE: "COMPLETE";
|
|
841
|
+
PARTIAL: "PARTIAL";
|
|
842
|
+
}>;
|
|
843
|
+
observedAt: z.ZodISODateTime;
|
|
844
|
+
providerStatus: z.ZodString;
|
|
845
|
+
unavailableAt: z.ZodNullable<z.ZodISODateTime>;
|
|
846
|
+
discountKind: z.ZodEnum<{
|
|
847
|
+
UNKNOWN: "UNKNOWN";
|
|
848
|
+
PERCENTAGE: "PERCENTAGE";
|
|
849
|
+
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
850
|
+
FREE_SHIPPING: "FREE_SHIPPING";
|
|
851
|
+
BUY_X_GET_Y: "BUY_X_GET_Y";
|
|
852
|
+
OTHER: "OTHER";
|
|
853
|
+
}>;
|
|
854
|
+
discountValue: z.ZodNullable<z.ZodString>;
|
|
855
|
+
discountCurrency: z.ZodNullable<z.ZodString>;
|
|
856
|
+
targeting: z.ZodObject<{
|
|
857
|
+
kind: z.ZodEnum<{
|
|
858
|
+
UNKNOWN: "UNKNOWN";
|
|
859
|
+
ALL: "ALL";
|
|
860
|
+
PRODUCTS: "PRODUCTS";
|
|
861
|
+
VARIANTS: "VARIANTS";
|
|
862
|
+
CATEGORIES: "CATEGORIES";
|
|
863
|
+
COLLECTIONS: "COLLECTIONS";
|
|
864
|
+
MIXED: "MIXED";
|
|
865
|
+
}>;
|
|
866
|
+
includedProductIds: z.ZodArray<z.ZodString>;
|
|
867
|
+
includedVariantIds: z.ZodArray<z.ZodString>;
|
|
868
|
+
includedCategoryIds: z.ZodArray<z.ZodString>;
|
|
869
|
+
includedCollectionIds: z.ZodArray<z.ZodString>;
|
|
870
|
+
excludedProductIds: z.ZodArray<z.ZodString>;
|
|
871
|
+
excludedVariantIds: z.ZodArray<z.ZodString>;
|
|
872
|
+
excludedCategoryIds: z.ZodArray<z.ZodString>;
|
|
873
|
+
excludedCollectionIds: z.ZodArray<z.ZodString>;
|
|
874
|
+
}, z.core.$strict>;
|
|
875
|
+
minimumSubtotal: z.ZodNullable<z.ZodString>;
|
|
876
|
+
maximumSubtotal: z.ZodNullable<z.ZodString>;
|
|
877
|
+
minimumQuantity: z.ZodNullable<z.ZodNumber>;
|
|
878
|
+
usageLimit: z.ZodNullable<z.ZodNumber>;
|
|
879
|
+
usageCount: z.ZodNullable<z.ZodNumber>;
|
|
880
|
+
perCustomerLimit: z.ZodNullable<z.ZodNumber>;
|
|
881
|
+
customerScope: z.ZodEnum<{
|
|
882
|
+
UNKNOWN: "UNKNOWN";
|
|
883
|
+
ALL: "ALL";
|
|
884
|
+
RESTRICTED: "RESTRICTED";
|
|
885
|
+
}>;
|
|
886
|
+
excludesSaleItems: z.ZodNullable<z.ZodBoolean>;
|
|
887
|
+
individualUse: z.ZodNullable<z.ZodBoolean>;
|
|
888
|
+
unrepresentedConditions: z.ZodArray<z.ZodString>;
|
|
889
|
+
}, z.core.$strict>;
|
|
890
|
+
}, z.core.$strict>;
|
|
891
|
+
type CommerceDiscountDetails = z.infer<typeof CommerceDiscountDetailsSchema>;
|
|
742
892
|
declare const CommerceEvidenceSchema: z.ZodObject<{
|
|
743
893
|
evidenceId: z.ZodString;
|
|
744
894
|
turn: z.ZodObject<{
|
|
@@ -789,7 +939,7 @@ type CommerceEvidence = z.infer<typeof CommerceEvidenceSchema>;
|
|
|
789
939
|
declare const CommerceAlternativeSchema: z.ZodObject<{
|
|
790
940
|
product: z.ZodObject<{
|
|
791
941
|
productId: z.ZodString;
|
|
792
|
-
variantId: z.ZodString
|
|
942
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
793
943
|
title: z.ZodString;
|
|
794
944
|
url: z.ZodNullable<z.ZodURL>;
|
|
795
945
|
available: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -797,6 +947,15 @@ declare const CommerceAlternativeSchema: z.ZodObject<{
|
|
|
797
947
|
currency: z.ZodNullable<z.ZodString>;
|
|
798
948
|
productType: z.ZodNullable<z.ZodString>;
|
|
799
949
|
vendor: z.ZodNullable<z.ZodString>;
|
|
950
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
951
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
952
|
+
collectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
953
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
954
|
+
saleEvidence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
955
|
+
regularPrice: z.ZodNullable<z.ZodString>;
|
|
956
|
+
salePrice: z.ZodNullable<z.ZodString>;
|
|
957
|
+
observedAt: z.ZodISODateTime;
|
|
958
|
+
}, z.core.$strict>>>;
|
|
800
959
|
observedAt: z.ZodISODateTime;
|
|
801
960
|
}, z.core.$strict>;
|
|
802
961
|
proposal: z.ZodObject<{
|
|
@@ -924,7 +1083,17 @@ declare const CommerceToolInputs: {
|
|
|
924
1083
|
limit: z.ZodDefault<z.ZodNumber>;
|
|
925
1084
|
cursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
926
1085
|
}, z.core.$strict>;
|
|
927
|
-
|
|
1086
|
+
commerce_get_product: z.ZodObject<{
|
|
1087
|
+
productId: z.ZodString;
|
|
1088
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
1089
|
+
}, z.core.$strict>;
|
|
1090
|
+
commerce_get_discount_options: z.ZodObject<{
|
|
1091
|
+
limit: z.ZodDefault<z.ZodNumber>;
|
|
1092
|
+
cursor: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1093
|
+
}, z.core.$strict>;
|
|
1094
|
+
commerce_get_discount_details: z.ZodObject<{
|
|
1095
|
+
offerId: z.ZodString;
|
|
1096
|
+
}, z.core.$strict>;
|
|
928
1097
|
commerce_evaluate_discount: z.ZodObject<{
|
|
929
1098
|
offerId: z.ZodString;
|
|
930
1099
|
proposal: z.ZodNullable<z.ZodObject<{
|
|
@@ -973,7 +1142,7 @@ declare const CommerceToolOutputs: {
|
|
|
973
1142
|
commerce_search_products: z.ZodObject<{
|
|
974
1143
|
products: z.ZodArray<z.ZodObject<{
|
|
975
1144
|
productId: z.ZodString;
|
|
976
|
-
variantId: z.ZodString
|
|
1145
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
977
1146
|
title: z.ZodString;
|
|
978
1147
|
url: z.ZodNullable<z.ZodURL>;
|
|
979
1148
|
available: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -981,11 +1150,43 @@ declare const CommerceToolOutputs: {
|
|
|
981
1150
|
currency: z.ZodNullable<z.ZodString>;
|
|
982
1151
|
productType: z.ZodNullable<z.ZodString>;
|
|
983
1152
|
vendor: z.ZodNullable<z.ZodString>;
|
|
1153
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1154
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1155
|
+
collectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1156
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1157
|
+
saleEvidence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1158
|
+
regularPrice: z.ZodNullable<z.ZodString>;
|
|
1159
|
+
salePrice: z.ZodNullable<z.ZodString>;
|
|
1160
|
+
observedAt: z.ZodISODateTime;
|
|
1161
|
+
}, z.core.$strict>>>;
|
|
984
1162
|
observedAt: z.ZodISODateTime;
|
|
985
1163
|
}, z.core.$strict>>;
|
|
986
1164
|
cursor: z.ZodNullable<z.ZodString>;
|
|
987
1165
|
truncated: z.ZodBoolean;
|
|
988
1166
|
}, z.core.$strict>;
|
|
1167
|
+
commerce_get_product: z.ZodObject<{
|
|
1168
|
+
product: z.ZodNullable<z.ZodObject<{
|
|
1169
|
+
productId: z.ZodString;
|
|
1170
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
1171
|
+
title: z.ZodString;
|
|
1172
|
+
url: z.ZodNullable<z.ZodURL>;
|
|
1173
|
+
available: z.ZodNullable<z.ZodBoolean>;
|
|
1174
|
+
unitPrice: z.ZodNullable<z.ZodString>;
|
|
1175
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
1176
|
+
productType: z.ZodNullable<z.ZodString>;
|
|
1177
|
+
vendor: z.ZodNullable<z.ZodString>;
|
|
1178
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1179
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1180
|
+
collectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1181
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1182
|
+
saleEvidence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1183
|
+
regularPrice: z.ZodNullable<z.ZodString>;
|
|
1184
|
+
salePrice: z.ZodNullable<z.ZodString>;
|
|
1185
|
+
observedAt: z.ZodISODateTime;
|
|
1186
|
+
}, z.core.$strict>>>;
|
|
1187
|
+
observedAt: z.ZodISODateTime;
|
|
1188
|
+
}, z.core.$strict>>;
|
|
1189
|
+
}, z.core.$strict>;
|
|
989
1190
|
commerce_get_discount_options: z.ZodObject<{
|
|
990
1191
|
mode: z.ZodEnum<{
|
|
991
1192
|
NONE: "NONE";
|
|
@@ -1010,6 +1211,85 @@ declare const CommerceToolOutputs: {
|
|
|
1010
1211
|
reasonCodes: z.ZodArray<z.ZodString>;
|
|
1011
1212
|
}, z.core.$strict>>;
|
|
1012
1213
|
truncated: z.ZodBoolean;
|
|
1214
|
+
cursor: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1215
|
+
}, z.core.$strict>;
|
|
1216
|
+
commerce_get_discount_details: z.ZodObject<{
|
|
1217
|
+
details: z.ZodNullable<z.ZodObject<{
|
|
1218
|
+
offer: z.ZodObject<{
|
|
1219
|
+
offerId: z.ZodString;
|
|
1220
|
+
title: z.ZodString;
|
|
1221
|
+
method: z.ZodEnum<{
|
|
1222
|
+
AUTOMATIC: "AUTOMATIC";
|
|
1223
|
+
CODE: "CODE";
|
|
1224
|
+
}>;
|
|
1225
|
+
code: z.ZodNullable<z.ZodString>;
|
|
1226
|
+
startsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1227
|
+
endsAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1228
|
+
support: z.ZodEnum<{
|
|
1229
|
+
SUPPORTED: "SUPPORTED";
|
|
1230
|
+
UNSUPPORTED: "UNSUPPORTED";
|
|
1231
|
+
UNKNOWN: "UNKNOWN";
|
|
1232
|
+
}>;
|
|
1233
|
+
reasonCodes: z.ZodArray<z.ZodString>;
|
|
1234
|
+
}, z.core.$strict>;
|
|
1235
|
+
facts: z.ZodObject<{
|
|
1236
|
+
provider: z.ZodEnum<{
|
|
1237
|
+
SHOPIFY: "SHOPIFY";
|
|
1238
|
+
WOOCOMMERCE: "WOOCOMMERCE";
|
|
1239
|
+
}>;
|
|
1240
|
+
completeness: z.ZodEnum<{
|
|
1241
|
+
UNKNOWN: "UNKNOWN";
|
|
1242
|
+
COMPLETE: "COMPLETE";
|
|
1243
|
+
PARTIAL: "PARTIAL";
|
|
1244
|
+
}>;
|
|
1245
|
+
observedAt: z.ZodISODateTime;
|
|
1246
|
+
providerStatus: z.ZodString;
|
|
1247
|
+
unavailableAt: z.ZodNullable<z.ZodISODateTime>;
|
|
1248
|
+
discountKind: z.ZodEnum<{
|
|
1249
|
+
UNKNOWN: "UNKNOWN";
|
|
1250
|
+
PERCENTAGE: "PERCENTAGE";
|
|
1251
|
+
FIXED_AMOUNT: "FIXED_AMOUNT";
|
|
1252
|
+
FREE_SHIPPING: "FREE_SHIPPING";
|
|
1253
|
+
BUY_X_GET_Y: "BUY_X_GET_Y";
|
|
1254
|
+
OTHER: "OTHER";
|
|
1255
|
+
}>;
|
|
1256
|
+
discountValue: z.ZodNullable<z.ZodString>;
|
|
1257
|
+
discountCurrency: z.ZodNullable<z.ZodString>;
|
|
1258
|
+
targeting: z.ZodObject<{
|
|
1259
|
+
kind: z.ZodEnum<{
|
|
1260
|
+
UNKNOWN: "UNKNOWN";
|
|
1261
|
+
ALL: "ALL";
|
|
1262
|
+
PRODUCTS: "PRODUCTS";
|
|
1263
|
+
VARIANTS: "VARIANTS";
|
|
1264
|
+
CATEGORIES: "CATEGORIES";
|
|
1265
|
+
COLLECTIONS: "COLLECTIONS";
|
|
1266
|
+
MIXED: "MIXED";
|
|
1267
|
+
}>;
|
|
1268
|
+
includedProductIds: z.ZodArray<z.ZodString>;
|
|
1269
|
+
includedVariantIds: z.ZodArray<z.ZodString>;
|
|
1270
|
+
includedCategoryIds: z.ZodArray<z.ZodString>;
|
|
1271
|
+
includedCollectionIds: z.ZodArray<z.ZodString>;
|
|
1272
|
+
excludedProductIds: z.ZodArray<z.ZodString>;
|
|
1273
|
+
excludedVariantIds: z.ZodArray<z.ZodString>;
|
|
1274
|
+
excludedCategoryIds: z.ZodArray<z.ZodString>;
|
|
1275
|
+
excludedCollectionIds: z.ZodArray<z.ZodString>;
|
|
1276
|
+
}, z.core.$strict>;
|
|
1277
|
+
minimumSubtotal: z.ZodNullable<z.ZodString>;
|
|
1278
|
+
maximumSubtotal: z.ZodNullable<z.ZodString>;
|
|
1279
|
+
minimumQuantity: z.ZodNullable<z.ZodNumber>;
|
|
1280
|
+
usageLimit: z.ZodNullable<z.ZodNumber>;
|
|
1281
|
+
usageCount: z.ZodNullable<z.ZodNumber>;
|
|
1282
|
+
perCustomerLimit: z.ZodNullable<z.ZodNumber>;
|
|
1283
|
+
customerScope: z.ZodEnum<{
|
|
1284
|
+
UNKNOWN: "UNKNOWN";
|
|
1285
|
+
ALL: "ALL";
|
|
1286
|
+
RESTRICTED: "RESTRICTED";
|
|
1287
|
+
}>;
|
|
1288
|
+
excludesSaleItems: z.ZodNullable<z.ZodBoolean>;
|
|
1289
|
+
individualUse: z.ZodNullable<z.ZodBoolean>;
|
|
1290
|
+
unrepresentedConditions: z.ZodArray<z.ZodString>;
|
|
1291
|
+
}, z.core.$strict>;
|
|
1292
|
+
}, z.core.$strict>>;
|
|
1013
1293
|
}, z.core.$strict>;
|
|
1014
1294
|
commerce_evaluate_discount: z.ZodObject<{
|
|
1015
1295
|
evidenceId: z.ZodString;
|
|
@@ -1061,7 +1341,7 @@ declare const CommerceToolOutputs: {
|
|
|
1061
1341
|
alternatives: z.ZodArray<z.ZodObject<{
|
|
1062
1342
|
product: z.ZodObject<{
|
|
1063
1343
|
productId: z.ZodString;
|
|
1064
|
-
variantId: z.ZodString
|
|
1344
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
1065
1345
|
title: z.ZodString;
|
|
1066
1346
|
url: z.ZodNullable<z.ZodURL>;
|
|
1067
1347
|
available: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -1069,6 +1349,15 @@ declare const CommerceToolOutputs: {
|
|
|
1069
1349
|
currency: z.ZodNullable<z.ZodString>;
|
|
1070
1350
|
productType: z.ZodNullable<z.ZodString>;
|
|
1071
1351
|
vendor: z.ZodNullable<z.ZodString>;
|
|
1352
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1353
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1354
|
+
collectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1355
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1356
|
+
saleEvidence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1357
|
+
regularPrice: z.ZodNullable<z.ZodString>;
|
|
1358
|
+
salePrice: z.ZodNullable<z.ZodString>;
|
|
1359
|
+
observedAt: z.ZodISODateTime;
|
|
1360
|
+
}, z.core.$strict>>>;
|
|
1072
1361
|
observedAt: z.ZodISODateTime;
|
|
1073
1362
|
}, z.core.$strict>;
|
|
1074
1363
|
proposal: z.ZodObject<{
|
|
@@ -1140,7 +1429,7 @@ declare const CommerceToolOutputs: {
|
|
|
1140
1429
|
alternatives: z.ZodArray<z.ZodObject<{
|
|
1141
1430
|
product: z.ZodObject<{
|
|
1142
1431
|
productId: z.ZodString;
|
|
1143
|
-
variantId: z.ZodString
|
|
1432
|
+
variantId: z.ZodNullable<z.ZodString>;
|
|
1144
1433
|
title: z.ZodString;
|
|
1145
1434
|
url: z.ZodNullable<z.ZodURL>;
|
|
1146
1435
|
available: z.ZodNullable<z.ZodBoolean>;
|
|
@@ -1148,6 +1437,15 @@ declare const CommerceToolOutputs: {
|
|
|
1148
1437
|
currency: z.ZodNullable<z.ZodString>;
|
|
1149
1438
|
productType: z.ZodNullable<z.ZodString>;
|
|
1150
1439
|
vendor: z.ZodNullable<z.ZodString>;
|
|
1440
|
+
categories: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1441
|
+
categoryIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1442
|
+
collectionIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1443
|
+
imageUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1444
|
+
saleEvidence: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1445
|
+
regularPrice: z.ZodNullable<z.ZodString>;
|
|
1446
|
+
salePrice: z.ZodNullable<z.ZodString>;
|
|
1447
|
+
observedAt: z.ZodISODateTime;
|
|
1448
|
+
}, z.core.$strict>>>;
|
|
1151
1449
|
observedAt: z.ZodISODateTime;
|
|
1152
1450
|
}, z.core.$strict>;
|
|
1153
1451
|
proposal: z.ZodObject<{
|
|
@@ -1274,4 +1572,4 @@ declare function verifyResponseContract(definition: unknown, hash: string, diges
|
|
|
1274
1572
|
/** JSON Schema branches retain the immutable envelope; only ANSWER details vary. */
|
|
1275
1573
|
declare function finalResponseToolSchema(definition: CommerceResponseContract): Json;
|
|
1276
1574
|
|
|
1277
|
-
export {
|
|
1575
|
+
export { POLICY_OPERATIONS as $, CommerceReleaseIdentitySchema as A, CommerceResolveAssertionSchema as B, type CommerceTurnIdentity as C, type Digest as D, type CommerceResponseContract as E, CommerceResponseContractSchema as F, type GrantedTool as G, CommerceToolDefinitionSchema as H, type CommerceToolDraftDefinition as I, CommerceToolDraftDefinitionSchema as J, CommerceToolIdentitySchema as K, CommerceToolInputs as L, CommerceToolOutputs as M, CommerceToolResultSchema as N, CommerceToolRevisionIdentitySchema as O, CommerceTurnIdentitySchema as P, DetailsSchemaSchema as Q, EMPTY_RESPONSE_CONTRACT as R, type SubsetSchema as S, type ToolDescriptor as T, type ExternalHttpExecution as U, ExternalHttpExecutionSchema as V, GrantedToolSchema as W, GrantedToolsSchema as X, InputSchemaSchema as Y, type Json as Z, MONEY_PATTERN as _, type CommerceConversationGrant as a, POLICY_OPERATION_DESCRIPTORS as a0, ReferralReasonSchema as a1, ResponseTemplateSchema as a2, ToolDescriptorSchema as a3, ToolNameSchema as a4, canonicalJson as a5, commerceToolResultSchema as a6, compileSubset as a7, definitionToMcpDescriptor as a8, finalResponseSchema as a9, finalResponseToolSchema as aa, jsonBytes as ab, mapToolArguments as ac, matchesSubset as ad, productBelongsToDomain as ae, responseContractCanonicalJson as af, safeName as ag, safePath as ah, toolHashInput as ai, validateDefinitionForPublication as aj, validateDefinitionVersion as ak, validateSubset as al, verifyResponseContract as am, type CommerceManifest as b, type CommerceToolResult as c, type CommerceFinalResponse as d, type CommerceToolDefinition as e, CommerceAlternativeSchema as f, CommerceAssertionSchema as g, CommerceBasketSchema as h, CommerceConversationGrantSchema as i, type CommerceDefinitionCompiler as j, type CommerceDiscountConditionFacts as k, CommerceDiscountConditionFactsSchema as l, type CommerceDiscountDetails as m, CommerceDiscountDetailsSchema as n, CommerceErrorCodeSchema as o, type CommerceEvidence as p, CommerceEvidenceSchema as q, CommerceExecuteAssertionSchema as r, CommerceExecutionSchema as s, CommerceFinalResponseSchema as t, CommerceManifestSchema as u, CommerceOfferSchema as v, type CommerceProductSaleEvidence as w, CommerceProductSaleEvidenceSchema as x, CommerceProductSchema as y, CommerceProposalSchema as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CommerceTurnIdentity, a as CommerceConversationGrant, b as CommerceManifest, T as ToolDescriptor, G as GrantedTool, c as CommerceToolResult, D as Digest, d as CommerceFinalResponse } from './response-
|
|
1
|
+
import { C as CommerceTurnIdentity, a as CommerceConversationGrant, b as CommerceManifest, T as ToolDescriptor, G as GrantedTool, c as CommerceToolResult, D as Digest, d as CommerceFinalResponse } from './response-C6-kYOel.js';
|
|
2
2
|
import { S as StructuredLogger } from './types-B32wDMLO.js';
|
|
3
3
|
|
|
4
4
|
/** Finite, non-customer-facing failure taxonomy for Commerce hosts and logs. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modainteract/moda-interact-shared",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -24,6 +24,10 @@
|
|
|
24
24
|
"types": "./dist/recovery-policy.d.ts",
|
|
25
25
|
"import": "./dist/recovery-policy.js"
|
|
26
26
|
},
|
|
27
|
+
"./recovery-offer-proof": {
|
|
28
|
+
"types": "./dist/recovery-offer-proof.d.ts",
|
|
29
|
+
"import": "./dist/recovery-offer-proof.js"
|
|
30
|
+
},
|
|
27
31
|
"./whatsapp": {
|
|
28
32
|
"types": "./dist/whatsapp.d.ts",
|
|
29
33
|
"import": "./dist/whatsapp.js"
|
|
@@ -113,6 +117,10 @@
|
|
|
113
117
|
"./security/credentials/node": {
|
|
114
118
|
"types": "./dist/security/credentials/node.d.ts",
|
|
115
119
|
"import": "./dist/security/credentials/node.js"
|
|
120
|
+
},
|
|
121
|
+
"./recovery-template-bindings": {
|
|
122
|
+
"types": "./dist/recovery-template-bindings.d.ts",
|
|
123
|
+
"import": "./dist/recovery-template-bindings.js"
|
|
116
124
|
}
|
|
117
125
|
},
|
|
118
126
|
"files": [
|