@wix/auto_sdk_ecom_current-cart-v-2 1.0.31 → 1.0.33
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.d.ts +961 -27
- package/build/cjs/index.js +78 -12
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +77 -10
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +959 -27
- package/build/cjs/meta.js +67 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +961 -27
- package/build/es/index.mjs +70 -12
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +69 -10
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +959 -27
- package/build/es/meta.mjs +59 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -5
- package/build/internal/cjs/index.js +78 -12
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +1193 -197
- package/build/internal/cjs/index.typings.js +77 -10
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +959 -27
- package/build/internal/cjs/meta.js +67 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +4 -5
- package/build/internal/es/index.mjs +70 -12
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +1193 -197
- package/build/internal/es/index.typings.mjs +69 -10
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +959 -27
- package/build/internal/es/meta.mjs +59 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -20,16 +20,24 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
20
20
|
// index.typings.ts
|
|
21
21
|
var index_typings_exports = {};
|
|
22
22
|
__export(index_typings_exports, {
|
|
23
|
+
AdditionalFeeSource: () => AdditionalFeeSource,
|
|
23
24
|
ChannelType: () => ChannelType,
|
|
25
|
+
ChargeType: () => ChargeType,
|
|
24
26
|
DescriptionLineType: () => DescriptionLineType,
|
|
25
27
|
DiscountScope: () => DiscountScope,
|
|
26
28
|
DiscountSourceType: () => DiscountSourceType,
|
|
29
|
+
DiscountType: () => DiscountType,
|
|
30
|
+
FallbackReason: () => FallbackReason,
|
|
27
31
|
FileType: () => FileType,
|
|
28
32
|
ItemStatus: () => ItemStatus,
|
|
29
33
|
ItemTypeItemType: () => ItemTypeItemType,
|
|
34
|
+
JurisdictionType: () => JurisdictionType,
|
|
35
|
+
ManualCalculationReason: () => ManualCalculationReason,
|
|
30
36
|
NameInLineItem: () => NameInLineItem,
|
|
31
37
|
NameInOther: () => NameInOther,
|
|
32
38
|
PaymentOptionType: () => PaymentOptionType,
|
|
39
|
+
PickupMethod: () => PickupMethod,
|
|
40
|
+
RateType: () => RateType,
|
|
33
41
|
RuleType: () => RuleType,
|
|
34
42
|
Severity: () => Severity,
|
|
35
43
|
SubscriptionFrequency: () => SubscriptionFrequency,
|
|
@@ -1138,11 +1146,62 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1138
1146
|
WebhookIdentityType2["APP"] = "APP";
|
|
1139
1147
|
return WebhookIdentityType2;
|
|
1140
1148
|
})(WebhookIdentityType || {});
|
|
1141
|
-
|
|
1142
|
-
|
|
1149
|
+
var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
|
|
1150
|
+
JurisdictionType2["UNDEFINED"] = "UNDEFINED";
|
|
1151
|
+
JurisdictionType2["COUNTRY"] = "COUNTRY";
|
|
1152
|
+
JurisdictionType2["STATE"] = "STATE";
|
|
1153
|
+
JurisdictionType2["COUNTY"] = "COUNTY";
|
|
1154
|
+
JurisdictionType2["CITY"] = "CITY";
|
|
1155
|
+
JurisdictionType2["SPECIAL"] = "SPECIAL";
|
|
1156
|
+
return JurisdictionType2;
|
|
1157
|
+
})(JurisdictionType || {});
|
|
1158
|
+
var RateType = /* @__PURE__ */ ((RateType2) => {
|
|
1159
|
+
RateType2["NO_TAX_COLLECTED"] = "NO_TAX_COLLECTED";
|
|
1160
|
+
RateType2["MANUAL_RATE"] = "MANUAL_RATE";
|
|
1161
|
+
RateType2["AUTO_RATE"] = "AUTO_RATE";
|
|
1162
|
+
RateType2["FALLBACK_RATE"] = "FALLBACK_RATE";
|
|
1163
|
+
return RateType2;
|
|
1164
|
+
})(RateType || {});
|
|
1165
|
+
var ManualCalculationReason = /* @__PURE__ */ ((ManualCalculationReason2) => {
|
|
1166
|
+
ManualCalculationReason2["GLOBAL_SETTING_TO_MANUAL"] = "GLOBAL_SETTING_TO_MANUAL";
|
|
1167
|
+
ManualCalculationReason2["REGION_SETTING_TO_MANUAL"] = "REGION_SETTING_TO_MANUAL";
|
|
1168
|
+
return ManualCalculationReason2;
|
|
1169
|
+
})(ManualCalculationReason || {});
|
|
1170
|
+
var FallbackReason = /* @__PURE__ */ ((FallbackReason2) => {
|
|
1171
|
+
FallbackReason2["AUTO_TAX_FAILED"] = "AUTO_TAX_FAILED";
|
|
1172
|
+
FallbackReason2["AUTO_TAX_DEACTIVATED"] = "AUTO_TAX_DEACTIVATED";
|
|
1173
|
+
return FallbackReason2;
|
|
1174
|
+
})(FallbackReason || {});
|
|
1175
|
+
var PickupMethod = /* @__PURE__ */ ((PickupMethod2) => {
|
|
1176
|
+
PickupMethod2["UNKNOWN_METHOD"] = "UNKNOWN_METHOD";
|
|
1177
|
+
PickupMethod2["STORE_PICKUP"] = "STORE_PICKUP";
|
|
1178
|
+
PickupMethod2["PICKUP_POINT"] = "PICKUP_POINT";
|
|
1179
|
+
return PickupMethod2;
|
|
1180
|
+
})(PickupMethod || {});
|
|
1181
|
+
var ChargeType = /* @__PURE__ */ ((ChargeType2) => {
|
|
1182
|
+
ChargeType2["HANDLING_FEE"] = "HANDLING_FEE";
|
|
1183
|
+
ChargeType2["INSURANCE"] = "INSURANCE";
|
|
1184
|
+
return ChargeType2;
|
|
1185
|
+
})(ChargeType || {});
|
|
1186
|
+
var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
1187
|
+
DiscountType2["GLOBAL"] = "GLOBAL";
|
|
1188
|
+
DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
|
|
1189
|
+
DiscountType2["SHIPPING"] = "SHIPPING";
|
|
1190
|
+
return DiscountType2;
|
|
1191
|
+
})(DiscountType || {});
|
|
1192
|
+
var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
|
|
1193
|
+
AdditionalFeeSource2["UNKNOWN_ADDITIONAL_FEE_SOURCE"] = "UNKNOWN_ADDITIONAL_FEE_SOURCE";
|
|
1194
|
+
AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
|
|
1195
|
+
AdditionalFeeSource2["ITEM"] = "ITEM";
|
|
1196
|
+
AdditionalFeeSource2["MANUAL"] = "MANUAL";
|
|
1197
|
+
AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
|
|
1198
|
+
return AdditionalFeeSource2;
|
|
1199
|
+
})(AdditionalFeeSource || {});
|
|
1200
|
+
async function createCurrentCart2(options) {
|
|
1201
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1143
1202
|
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1144
1203
|
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1145
|
-
cart,
|
|
1204
|
+
cart: options?.cart,
|
|
1146
1205
|
catalogItems: options?.catalogItems,
|
|
1147
1206
|
customItems: options?.customItems,
|
|
1148
1207
|
couponCodes: options?.couponCodes,
|
|
@@ -1208,16 +1267,16 @@ async function createCurrentCart2(cart, options) {
|
|
|
1208
1267
|
{
|
|
1209
1268
|
spreadPathsToArguments: {},
|
|
1210
1269
|
explicitPathsToArguments: {
|
|
1211
|
-
cart: "$[0]",
|
|
1212
|
-
catalogItems: "$[
|
|
1213
|
-
customItems: "$[
|
|
1214
|
-
couponCodes: "$[
|
|
1215
|
-
deliveryMethod: "$[
|
|
1216
|
-
giftCardCodes: "$[
|
|
1270
|
+
cart: "$[0].cart",
|
|
1271
|
+
catalogItems: "$[0].catalogItems",
|
|
1272
|
+
customItems: "$[0].customItems",
|
|
1273
|
+
couponCodes: "$[0].couponCodes",
|
|
1274
|
+
deliveryMethod: "$[0].deliveryMethod",
|
|
1275
|
+
giftCardCodes: "$[0].giftCardCodes"
|
|
1217
1276
|
},
|
|
1218
1277
|
singleArgumentUnchanged: false
|
|
1219
1278
|
},
|
|
1220
|
-
["
|
|
1279
|
+
["options"]
|
|
1221
1280
|
);
|
|
1222
1281
|
sideEffects?.onError?.(err);
|
|
1223
1282
|
throw transformedError;
|
|
@@ -1838,16 +1897,24 @@ async function removeGiftCardFromCurrentCart2(giftCardId) {
|
|
|
1838
1897
|
}
|
|
1839
1898
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1840
1899
|
0 && (module.exports = {
|
|
1900
|
+
AdditionalFeeSource,
|
|
1841
1901
|
ChannelType,
|
|
1902
|
+
ChargeType,
|
|
1842
1903
|
DescriptionLineType,
|
|
1843
1904
|
DiscountScope,
|
|
1844
1905
|
DiscountSourceType,
|
|
1906
|
+
DiscountType,
|
|
1907
|
+
FallbackReason,
|
|
1845
1908
|
FileType,
|
|
1846
1909
|
ItemStatus,
|
|
1847
1910
|
ItemTypeItemType,
|
|
1911
|
+
JurisdictionType,
|
|
1912
|
+
ManualCalculationReason,
|
|
1848
1913
|
NameInLineItem,
|
|
1849
1914
|
NameInOther,
|
|
1850
1915
|
PaymentOptionType,
|
|
1916
|
+
PickupMethod,
|
|
1917
|
+
RateType,
|
|
1851
1918
|
RuleType,
|
|
1852
1919
|
Severity,
|
|
1853
1920
|
SubscriptionFrequency,
|