@wix/auto_sdk_ecom_current-cart-v-2 1.0.167 → 1.0.168
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/build/cjs/index.js +6 -56
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +117 -142
- package/build/cjs/index.typings.js +6 -56
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +117 -142
- package/build/cjs/meta.js +6 -56
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +2 -54
- package/build/cjs/schemas.js +0 -120
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +6 -56
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +117 -142
- package/build/es/index.typings.mjs +6 -56
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +117 -142
- package/build/es/meta.mjs +6 -56
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +2 -54
- package/build/es/schemas.mjs +0 -120
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.js +6 -56
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +117 -142
- package/build/internal/cjs/index.typings.js +6 -56
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +117 -142
- package/build/internal/cjs/meta.js +6 -56
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +2 -54
- package/build/internal/cjs/schemas.js +0 -120
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.mjs +6 -56
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +117 -142
- package/build/internal/es/index.typings.mjs +6 -56
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +117 -142
- package/build/internal/es/meta.mjs +6 -56
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +2 -54
- package/build/internal/es/schemas.mjs +0 -120
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -225,7 +225,6 @@ function createCurrentCart(payload) {
|
|
|
225
225
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
226
226
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
227
227
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
228
|
-
{ path: "cart.legacyFields.discounts.merchantDiscount.percentage" },
|
|
229
228
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" },
|
|
230
229
|
{
|
|
231
230
|
path: "catalogItems.catalogOverrideFields.physicalProperties.weight"
|
|
@@ -278,9 +277,6 @@ function createCurrentCart(payload) {
|
|
|
278
277
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
279
278
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
280
279
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
281
|
-
{
|
|
282
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
283
|
-
},
|
|
284
280
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
285
281
|
]
|
|
286
282
|
}
|
|
@@ -336,9 +332,6 @@ function getCurrentCart(payload) {
|
|
|
336
332
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
337
333
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
338
334
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
339
|
-
{
|
|
340
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
341
|
-
},
|
|
342
335
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
343
336
|
]
|
|
344
337
|
}
|
|
@@ -382,7 +375,6 @@ function updateCurrentCart(payload) {
|
|
|
382
375
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
383
376
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
384
377
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
385
|
-
{ path: "cart.legacyFields.discounts.merchantDiscount.percentage" },
|
|
386
378
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
387
379
|
]
|
|
388
380
|
}
|
|
@@ -431,9 +423,6 @@ function updateCurrentCart(payload) {
|
|
|
431
423
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
432
424
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
433
425
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
434
|
-
{
|
|
435
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
436
|
-
},
|
|
437
426
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
438
427
|
]
|
|
439
428
|
}
|
|
@@ -510,9 +499,6 @@ function refreshCurrentCart(payload) {
|
|
|
510
499
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
511
500
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
512
501
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
513
|
-
{
|
|
514
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
515
|
-
},
|
|
516
502
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
517
503
|
]
|
|
518
504
|
}
|
|
@@ -571,9 +557,6 @@ function calculateCurrentCart(payload) {
|
|
|
571
557
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
572
558
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
573
559
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
574
|
-
{
|
|
575
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
576
|
-
},
|
|
577
560
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
578
561
|
]
|
|
579
562
|
}
|
|
@@ -632,9 +615,6 @@ function estimateCurrentCart(payload) {
|
|
|
632
615
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
633
616
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
634
617
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
635
|
-
{
|
|
636
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
637
|
-
},
|
|
638
618
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
639
619
|
]
|
|
640
620
|
}
|
|
@@ -715,9 +695,6 @@ function addLineItemsToCurrentCart(payload) {
|
|
|
715
695
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
716
696
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
717
697
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
718
|
-
{
|
|
719
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
720
|
-
},
|
|
721
698
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
722
699
|
]
|
|
723
700
|
}
|
|
@@ -773,9 +750,6 @@ function removeLineItemsFromCurrentCart(payload) {
|
|
|
773
750
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
774
751
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
775
752
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
776
|
-
{
|
|
777
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
778
|
-
},
|
|
779
753
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
780
754
|
]
|
|
781
755
|
}
|
|
@@ -831,9 +805,6 @@ function updateLineItemsInCurrentCart(payload) {
|
|
|
831
805
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
832
806
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
833
807
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
834
|
-
{
|
|
835
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
836
|
-
},
|
|
837
808
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
838
809
|
]
|
|
839
810
|
}
|
|
@@ -889,9 +860,6 @@ function addCouponToCurrentCart(payload) {
|
|
|
889
860
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
890
861
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
891
862
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
892
|
-
{
|
|
893
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
894
|
-
},
|
|
895
863
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
896
864
|
]
|
|
897
865
|
}
|
|
@@ -947,9 +915,6 @@ function removeCouponFromCurrentCart(payload) {
|
|
|
947
915
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
948
916
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
949
917
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
950
|
-
{
|
|
951
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
952
|
-
},
|
|
953
918
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
954
919
|
]
|
|
955
920
|
}
|
|
@@ -1005,9 +970,6 @@ function setDeliveryMethodForCurrentCart(payload) {
|
|
|
1005
970
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1006
971
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1007
972
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1008
|
-
{
|
|
1009
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
1010
|
-
},
|
|
1011
973
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1012
974
|
]
|
|
1013
975
|
}
|
|
@@ -1063,9 +1025,6 @@ function removeDeliveryMethodFromCurrentCart(payload) {
|
|
|
1063
1025
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1064
1026
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1065
1027
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1066
|
-
{
|
|
1067
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
1068
|
-
},
|
|
1069
1028
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1070
1029
|
]
|
|
1071
1030
|
}
|
|
@@ -1121,9 +1080,6 @@ function addGiftCardToCurrentCart(payload) {
|
|
|
1121
1080
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1122
1081
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1123
1082
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1124
|
-
{
|
|
1125
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
1126
|
-
},
|
|
1127
1083
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1128
1084
|
]
|
|
1129
1085
|
}
|
|
@@ -1179,9 +1135,6 @@ function removeGiftCardFromCurrentCart(payload) {
|
|
|
1179
1135
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1180
1136
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1181
1137
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1182
|
-
{
|
|
1183
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
1184
|
-
},
|
|
1185
1138
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1186
1139
|
]
|
|
1187
1140
|
}
|
|
@@ -1237,9 +1190,6 @@ function updateFormSubmissionsInCurrentCart(payload) {
|
|
|
1237
1190
|
{ path: "cart.deliveryInfo.address.geocode.longitude" },
|
|
1238
1191
|
{ path: "cart.paymentInfo.billingAddress.geocode.latitude" },
|
|
1239
1192
|
{ path: "cart.paymentInfo.billingAddress.geocode.longitude" },
|
|
1240
|
-
{
|
|
1241
|
-
path: "cart.legacyFields.discounts.merchantDiscount.percentage"
|
|
1242
|
-
},
|
|
1243
1193
|
{ path: "cart.tcAppliedDiscounts.merchantDiscount.percentage" }
|
|
1244
1194
|
]
|
|
1245
1195
|
}
|
|
@@ -1393,6 +1343,12 @@ var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
|
|
|
1393
1343
|
WeightUnit2["LB"] = "LB";
|
|
1394
1344
|
return WeightUnit2;
|
|
1395
1345
|
})(WeightUnit || {});
|
|
1346
|
+
var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
1347
|
+
DiscountType2["GLOBAL"] = "GLOBAL";
|
|
1348
|
+
DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
|
|
1349
|
+
DiscountType2["SHIPPING"] = "SHIPPING";
|
|
1350
|
+
return DiscountType2;
|
|
1351
|
+
})(DiscountType || {});
|
|
1396
1352
|
var DiscountScope = /* @__PURE__ */ ((DiscountScope2) => {
|
|
1397
1353
|
DiscountScope2["UNKNOWN_DISCOUNT_SCOPE"] = "UNKNOWN_DISCOUNT_SCOPE";
|
|
1398
1354
|
DiscountScope2["CART_SUBTOTAL"] = "CART_SUBTOTAL";
|
|
@@ -1400,12 +1356,6 @@ var DiscountScope = /* @__PURE__ */ ((DiscountScope2) => {
|
|
|
1400
1356
|
DiscountScope2["DELIVERY"] = "DELIVERY";
|
|
1401
1357
|
return DiscountScope2;
|
|
1402
1358
|
})(DiscountScope || {});
|
|
1403
|
-
var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
1404
|
-
DiscountType2["GLOBAL"] = "GLOBAL";
|
|
1405
|
-
DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
|
|
1406
|
-
DiscountType2["SHIPPING"] = "SHIPPING";
|
|
1407
|
-
return DiscountType2;
|
|
1408
|
-
})(DiscountType || {});
|
|
1409
1359
|
var Source = /* @__PURE__ */ ((Source2) => {
|
|
1410
1360
|
Source2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
|
|
1411
1361
|
Source2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
|