@wix/auto_sdk_ecom_current-cart-v-2 1.0.15 → 1.0.17
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 +62 -36
- package/build/cjs/index.js +39 -17
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +39 -17
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +149 -31
- package/build/cjs/meta.js +39 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +62 -36
- package/build/es/index.mjs +39 -15
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +39 -15
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +149 -31
- package/build/es/meta.mjs +39 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +39 -17
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +63 -37
- package/build/internal/cjs/index.typings.js +39 -17
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +149 -31
- package/build/internal/cjs/meta.js +39 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +39 -15
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +63 -37
- package/build/internal/es/index.typings.mjs +39 -15
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +149 -31
- package/build/internal/es/meta.mjs +39 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
export { ActionEvent, AddCouponRequest, AddCouponResponse, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeTax, Address, AddressLocation, ApplicationError, BusinessInfo, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartOptions, CalculateCurrentCartRequest, CalculateCurrentCartResponse,
|
|
1
|
+
export { ActionEvent, AddCouponRequest, AddCouponResponse, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeTax, Address, AddressLocation, ApplicationError, BusinessInfo, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartOptions, CalculateCurrentCartRequest, CalculateCurrentCartResponse, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CarrierError, CarrierErrors, Cart, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, Color, Coupon, CreateCartRequest, CreateCartResponse, CreateCurrentCartOptions, CreateCurrentCartRequest, CreateCurrentCartResponse, CreatedBy, CreatedByIdOneOf, CustomContentReference, CustomField, CustomItemAttributes, CustomItemDeliveryConfig, CustomItemInput, CustomItemPaymentConfig, CustomItemPricingInfo, CustomItemQuantityInfo, CustomItemSource, CustomItemTaxConfig, CustomerInfo, CustomerInfoIdOneOf, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeleteCurrentCartResponse, DeliveryInfo, DeliveryMethod, DeliverySummary, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, Discount, DiscountBenefit, DiscountBenefitValueOneOf, DiscountScope, DiscountScopeWithLiterals, DiscountSource, DiscountSourceType, DiscountSourceTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, ExternalReference, FieldViolation, FileType, FileTypeWithLiterals, FreeTrialPeriod, FullAddressContactDetails, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCheckoutURLResponse, GetCurrentCartRequest, GetCurrentCartResponse, GiftCard, GiftCardSummary, Group, HandleAsyncCheckoutCompletionRequest, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, ItemAttributes, ItemDeliveryConfig, ItemDiscount, ItemModifier, ItemPaymentConfig, ItemPriceBreakdown, ItemPricingInfo, ItemQuantityInfo, ItemSource, ItemStatus, ItemStatusWithLiterals, ItemTaxConfig, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, ItemTypeItemTypeWithLiterals, LegacyFields, LineItem, LineItemSummary, LineItemTax, LineItemUpdate, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse, Membership, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, PaymentInfo, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PaymentSummary, PhysicalProperties, PlaceOrderRequest, PlaceOrderResponse, PlainTextValue, Policy, PriceDescription, PriceSummary, QuantityUpdate, RawHttpResponse, RedirectUrls, RefreshCartRequest, RefreshCartResponse, RefreshCurrentCartRequest, RefreshCurrentCartResponse, RemoveCouponFromCurrentCartRequest, RemoveCouponFromCurrentCartResponse, RemoveCouponRequest, RemoveCouponResponse, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardRequest, RemoveGiftCardResponse, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsRequest, RemoveLineItemsResponse, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedMembership, SelectedMembershipUpdate, ServiceProperties, Severity, SeverityWithLiterals, StreetAddress, SubscriptionCharges, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetTargetTypeOneOf, Tax, TaxDetails, TaxInfo, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartRequest, UpdateCurrentCartResponse, UpdateLineItemsInCurrentCartOptions, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsRequest, UpdateLineItemsResponse, V2AdditionalFee, V2LineItem, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.js';
|
|
@@ -20,12 +20,10 @@ 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
|
-
CalculationComponent: () => CalculationComponent,
|
|
24
23
|
ChannelType: () => ChannelType,
|
|
25
24
|
DescriptionLineType: () => DescriptionLineType,
|
|
26
25
|
DiscountScope: () => DiscountScope,
|
|
27
26
|
DiscountSourceType: () => DiscountSourceType,
|
|
28
|
-
ErrorCode: () => ErrorCode,
|
|
29
27
|
FileType: () => FileType,
|
|
30
28
|
ItemStatus: () => ItemStatus,
|
|
31
29
|
ItemTypeItemType: () => ItemTypeItemType,
|
|
@@ -209,6 +207,9 @@ function createCurrentCart(payload) {
|
|
|
209
207
|
method: "POST",
|
|
210
208
|
methodFqn: "wix.ecom.cart.v2.CurrentCartService.CreateCurrentCart",
|
|
211
209
|
packageName: PACKAGE_NAME,
|
|
210
|
+
migrationOptions: {
|
|
211
|
+
optInTransformResponse: true
|
|
212
|
+
},
|
|
212
213
|
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
213
214
|
protoPath: "/v2/carts/current",
|
|
214
215
|
data: serializedData,
|
|
@@ -259,6 +260,9 @@ function getCurrentCart(payload) {
|
|
|
259
260
|
method: "GET",
|
|
260
261
|
methodFqn: "wix.ecom.cart.v2.CurrentCartService.GetCurrentCart",
|
|
261
262
|
packageName: PACKAGE_NAME,
|
|
263
|
+
migrationOptions: {
|
|
264
|
+
optInTransformResponse: true
|
|
265
|
+
},
|
|
262
266
|
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
263
267
|
protoPath: "/v2/carts/current",
|
|
264
268
|
data: payload,
|
|
@@ -343,6 +347,9 @@ function updateCurrentCart(payload) {
|
|
|
343
347
|
method: "PATCH",
|
|
344
348
|
methodFqn: "wix.ecom.cart.v2.CurrentCartService.UpdateCurrentCart",
|
|
345
349
|
packageName: PACKAGE_NAME,
|
|
350
|
+
migrationOptions: {
|
|
351
|
+
optInTransformResponse: true
|
|
352
|
+
},
|
|
346
353
|
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
347
354
|
protoPath: "/v2/carts/current",
|
|
348
355
|
data: serializedData,
|
|
@@ -393,6 +400,9 @@ function deleteCurrentCart(payload) {
|
|
|
393
400
|
method: "DELETE",
|
|
394
401
|
methodFqn: "wix.ecom.cart.v2.CurrentCartService.DeleteCurrentCart",
|
|
395
402
|
packageName: PACKAGE_NAME,
|
|
403
|
+
migrationOptions: {
|
|
404
|
+
optInTransformResponse: true
|
|
405
|
+
},
|
|
396
406
|
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
397
407
|
protoPath: "/v2/carts/current",
|
|
398
408
|
data: payload,
|
|
@@ -411,6 +421,9 @@ function refreshCurrentCart(payload) {
|
|
|
411
421
|
method: "POST",
|
|
412
422
|
methodFqn: "wix.ecom.cart.v2.CurrentCartService.RefreshCurrentCart",
|
|
413
423
|
packageName: PACKAGE_NAME,
|
|
424
|
+
migrationOptions: {
|
|
425
|
+
optInTransformResponse: true
|
|
426
|
+
},
|
|
414
427
|
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
415
428
|
protoPath: "/v2/carts/current/refresh",
|
|
416
429
|
data: payload,
|
|
@@ -461,6 +474,9 @@ function calculateCurrentCart(payload) {
|
|
|
461
474
|
method: "POST",
|
|
462
475
|
methodFqn: "wix.ecom.cart.v2.CurrentCartService.CalculateCurrentCart",
|
|
463
476
|
packageName: PACKAGE_NAME,
|
|
477
|
+
migrationOptions: {
|
|
478
|
+
optInTransformResponse: true
|
|
479
|
+
},
|
|
464
480
|
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
465
481
|
protoPath: "/v2/carts/current/calculate",
|
|
466
482
|
data: payload,
|
|
@@ -538,6 +554,9 @@ function addLineItemsToCurrentCart(payload) {
|
|
|
538
554
|
method: "POST",
|
|
539
555
|
methodFqn: "wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart",
|
|
540
556
|
packageName: PACKAGE_NAME,
|
|
557
|
+
migrationOptions: {
|
|
558
|
+
optInTransformResponse: true
|
|
559
|
+
},
|
|
541
560
|
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
542
561
|
protoPath: "/v2/carts/current/add-line-items",
|
|
543
562
|
data: serializedData,
|
|
@@ -588,6 +607,9 @@ function removeLineItemsFromCurrentCart(payload) {
|
|
|
588
607
|
method: "POST",
|
|
589
608
|
methodFqn: "wix.ecom.cart.v2.CurrentCartService.RemoveLineItemsFromCurrentCart",
|
|
590
609
|
packageName: PACKAGE_NAME,
|
|
610
|
+
migrationOptions: {
|
|
611
|
+
optInTransformResponse: true
|
|
612
|
+
},
|
|
591
613
|
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
592
614
|
protoPath: "/v2/carts/current/remove-line-items",
|
|
593
615
|
data: payload,
|
|
@@ -638,6 +660,9 @@ function updateLineItemsInCurrentCart(payload) {
|
|
|
638
660
|
method: "POST",
|
|
639
661
|
methodFqn: "wix.ecom.cart.v2.CurrentCartService.UpdateLineItemsInCurrentCart",
|
|
640
662
|
packageName: PACKAGE_NAME,
|
|
663
|
+
migrationOptions: {
|
|
664
|
+
optInTransformResponse: true
|
|
665
|
+
},
|
|
641
666
|
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
642
667
|
protoPath: "/v2/carts/current/update-line-items",
|
|
643
668
|
data: payload,
|
|
@@ -688,6 +713,9 @@ function addCouponToCurrentCart(payload) {
|
|
|
688
713
|
method: "POST",
|
|
689
714
|
methodFqn: "wix.ecom.cart.v2.CurrentCartService.AddCouponToCurrentCart",
|
|
690
715
|
packageName: PACKAGE_NAME,
|
|
716
|
+
migrationOptions: {
|
|
717
|
+
optInTransformResponse: true
|
|
718
|
+
},
|
|
691
719
|
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
692
720
|
protoPath: "/v2/carts/current/add-coupon",
|
|
693
721
|
data: payload,
|
|
@@ -738,6 +766,9 @@ function removeCouponFromCurrentCart(payload) {
|
|
|
738
766
|
method: "POST",
|
|
739
767
|
methodFqn: "wix.ecom.cart.v2.CurrentCartService.RemoveCouponFromCurrentCart",
|
|
740
768
|
packageName: PACKAGE_NAME,
|
|
769
|
+
migrationOptions: {
|
|
770
|
+
optInTransformResponse: true
|
|
771
|
+
},
|
|
741
772
|
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
742
773
|
protoPath: "/v2/carts/current/remove-coupon",
|
|
743
774
|
data: payload,
|
|
@@ -788,6 +819,9 @@ function addGiftCardToCurrentCart(payload) {
|
|
|
788
819
|
method: "POST",
|
|
789
820
|
methodFqn: "wix.ecom.cart.v2.CurrentCartService.AddGiftCardToCurrentCart",
|
|
790
821
|
packageName: PACKAGE_NAME,
|
|
822
|
+
migrationOptions: {
|
|
823
|
+
optInTransformResponse: true
|
|
824
|
+
},
|
|
791
825
|
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
792
826
|
protoPath: "/v2/carts/current/add-gift-card",
|
|
793
827
|
data: payload,
|
|
@@ -838,6 +872,9 @@ function removeGiftCardFromCurrentCart(payload) {
|
|
|
838
872
|
method: "POST",
|
|
839
873
|
methodFqn: "wix.ecom.cart.v2.CurrentCartService.RemoveGiftCardFromCurrentCart",
|
|
840
874
|
packageName: PACKAGE_NAME,
|
|
875
|
+
migrationOptions: {
|
|
876
|
+
optInTransformResponse: true
|
|
877
|
+
},
|
|
841
878
|
url: resolveWixEcomCartV2CurrentCartServiceUrl({
|
|
842
879
|
protoPath: "/v2/carts/current/remove-gift-card",
|
|
843
880
|
data: payload,
|
|
@@ -990,19 +1027,6 @@ var DiscountScope = /* @__PURE__ */ ((DiscountScope2) => {
|
|
|
990
1027
|
DiscountScope2["DELIVERY"] = "DELIVERY";
|
|
991
1028
|
return DiscountScope2;
|
|
992
1029
|
})(DiscountScope || {});
|
|
993
|
-
var CalculationComponent = /* @__PURE__ */ ((CalculationComponent2) => {
|
|
994
|
-
CalculationComponent2["UNKNOWN_CALCULATION_COMPONENT"] = "UNKNOWN_CALCULATION_COMPONENT";
|
|
995
|
-
CalculationComponent2["DISCOUNTS"] = "DISCOUNTS";
|
|
996
|
-
CalculationComponent2["DELIVERY"] = "DELIVERY";
|
|
997
|
-
CalculationComponent2["TAX"] = "TAX";
|
|
998
|
-
CalculationComponent2["MEMBERSHIPS"] = "MEMBERSHIPS";
|
|
999
|
-
CalculationComponent2["GIFT_CARDS"] = "GIFT_CARDS";
|
|
1000
|
-
return CalculationComponent2;
|
|
1001
|
-
})(CalculationComponent || {});
|
|
1002
|
-
var ErrorCode = /* @__PURE__ */ ((ErrorCode2) => {
|
|
1003
|
-
ErrorCode2["UNKNOWN_ERROR_CODE"] = "UNKNOWN_ERROR_CODE";
|
|
1004
|
-
return ErrorCode2;
|
|
1005
|
-
})(ErrorCode || {});
|
|
1006
1030
|
var RuleType = /* @__PURE__ */ ((RuleType2) => {
|
|
1007
1031
|
RuleType2["VALIDATION"] = "VALIDATION";
|
|
1008
1032
|
RuleType2["OTHER"] = "OTHER";
|
|
@@ -1710,12 +1734,10 @@ async function removeGiftCardFromCurrentCart2(giftCardId) {
|
|
|
1710
1734
|
}
|
|
1711
1735
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1712
1736
|
0 && (module.exports = {
|
|
1713
|
-
CalculationComponent,
|
|
1714
1737
|
ChannelType,
|
|
1715
1738
|
DescriptionLineType,
|
|
1716
1739
|
DiscountScope,
|
|
1717
1740
|
DiscountSourceType,
|
|
1718
|
-
ErrorCode,
|
|
1719
1741
|
FileType,
|
|
1720
1742
|
ItemStatus,
|
|
1721
1743
|
ItemTypeItemType,
|