@wix/auto_sdk_ecom_current-cart-v-2 1.0.0 → 1.0.2

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.
@@ -1 +1 @@
1
- export { ActionEvent, AddDiscountRequest, AddDiscountResponse, AddDiscountToCurrentCartRequest, AddDiscountToCurrentCartResponse, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeTax, Address, AddressLocation, ApplicationError, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartOptions, CalculateCurrentCartRequest, CalculateCurrentCartResponse, CalculationComponent, CalculationComponentWithLiterals, CalculationConfig, CalculationError, Cart, CartSource, CartStatus, CartStatusWithLiterals, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Color, CompleteCheckoutRequest, CompleteCheckoutResponse, CreateCartRequest, CreateCartResponse, CreateCurrentCartOptions, CreateCurrentCartRequest, CreateCurrentCartResponse, CreatedBy, CreatedByIdOneOf, CustomContentReference, CustomItemAttributes, CustomItemDeliveryConfig, CustomItemInput, CustomItemPaymentConfig, CustomItemPricingInfo, CustomItemQuantityInfo, CustomItemSource, CustomItemTaxConfig, CustomSettings, 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, DiscountStatus, DiscountStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorCode, ErrorCodeWithLiterals, ExtendedFields, ExternalReference, FieldViolation, FileType, FileTypeWithLiterals, FreeTrialPeriod, FullAddressContactDetails, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCheckoutURLResponse, GetCurrentCartRequest, GetCurrentCartResponse, GiftCard, GiftCardSummary, Group, HandleAsyncCheckoutCompletionRequest, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, ItemAttributes, ItemDeliveryConfig, ItemModifier, ItemPaymentConfig, ItemPriceBreakdown, ItemPricingInfo, ItemQuantityInfo, ItemSource, ItemStatus, ItemStatusWithLiterals, ItemTaxConfig, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, ItemTypeItemTypeWithLiterals, LineItem, LineItemSummary, LineItemTax, LineItemUpdate, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, PaymentInfo, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PaymentSummary, PhysicalProperties, PlainTextValue, Policy, PriceDescription, PriceSummary, PricingInfo, QuantityUpdate, RawHttpResponse, RedirectUrls, RefreshCartRequest, RefreshCartResponse, RefreshCurrentCartRequest, RefreshCurrentCartResponse, RemoveDiscountFromCurrentCartRequest, RemoveDiscountFromCurrentCartResponse, RemoveDiscountRequest, RemoveDiscountResponse, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardRequest, RemoveGiftCardResponse, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsRequest, RemoveLineItemsResponse, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedMembership, SelectedMembershipUpdate, ServiceProperties, Severity, SeverityWithLiterals, SiteInfo, StreetAddress, 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, V2SelectedMembership, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.mjs';
1
+ export { ActionEvent, AddDiscountRequest, AddDiscountResponse, AddDiscountToCurrentCartRequest, AddDiscountToCurrentCartResponse, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeTax, Address, AddressLocation, ApplicationError, BusinessInfo, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartOptions, CalculateCurrentCartRequest, CalculateCurrentCartResponse, CalculationComponent, CalculationComponentWithLiterals, CalculationConfig, CalculationError, Cart, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Color, 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, DiscountStatus, DiscountStatusWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ErrorCode, ErrorCodeWithLiterals, ExtendedFields, ExternalReference, FieldViolation, FileType, FileTypeWithLiterals, FreeTrialPeriod, FullAddressContactDetails, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCheckoutURLResponse, GetCurrentCartRequest, GetCurrentCartResponse, GiftCard, GiftCardSummary, Group, HandleAsyncCheckoutCompletionRequest, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, ItemAttributes, ItemDeliveryConfig, ItemModifier, ItemPaymentConfig, ItemPriceBreakdown, ItemPricingInfo, ItemQuantityInfo, ItemSource, ItemStatus, ItemStatusWithLiterals, ItemTaxConfig, ItemType, ItemTypeItemType, ItemTypeItemTypeDataOneOf, ItemTypeItemTypeWithLiterals, LineItem, LineItemSummary, LineItemTax, LineItemUpdate, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse, 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, RemoveDiscountFromCurrentCartRequest, RemoveDiscountFromCurrentCartResponse, RemoveDiscountRequest, RemoveDiscountResponse, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardFromCurrentCartResponse, RemoveGiftCardRequest, RemoveGiftCardResponse, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsFromCurrentCartResponse, RemoveLineItemsRequest, RemoveLineItemsResponse, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedMembership, SelectedMembershipUpdate, ServiceProperties, Severity, SeverityWithLiterals, StreetAddress, 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, V2SelectedMembership, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.mjs';
@@ -880,10 +880,10 @@ var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
880
880
  })(TaxableAddressType || {});
881
881
  var ItemStatus = /* @__PURE__ */ ((ItemStatus2) => {
882
882
  ItemStatus2["UNKNOWN_ITEM_STATUS"] = "UNKNOWN_ITEM_STATUS";
883
- ItemStatus2["AVAILABLE"] = "AVAILABLE";
884
- ItemStatus2["PARTIALLY_AVAILABLE"] = "PARTIALLY_AVAILABLE";
883
+ ItemStatus2["IN_STOCK"] = "IN_STOCK";
884
+ ItemStatus2["PARTIALLY_IN_STOCK"] = "PARTIALLY_IN_STOCK";
885
885
  ItemStatus2["OUT_OF_STOCK"] = "OUT_OF_STOCK";
886
- ItemStatus2["NOT_EXISTS"] = "NOT_EXISTS";
886
+ ItemStatus2["REMOVED_FROM_CATALOG"] = "REMOVED_FROM_CATALOG";
887
887
  return ItemStatus2;
888
888
  })(ItemStatus || {});
889
889
  var DiscountSourceType = /* @__PURE__ */ ((DiscountSourceType2) => {
@@ -927,23 +927,18 @@ var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
927
927
  ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
928
928
  return ChannelType2;
929
929
  })(ChannelType || {});
930
- var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
931
- WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
932
- WeightUnit2["KG"] = "KG";
933
- WeightUnit2["LB"] = "LB";
934
- return WeightUnit2;
935
- })(WeightUnit || {});
936
930
  var VatType = /* @__PURE__ */ ((VatType2) => {
937
931
  VatType2["UNSPECIFIED"] = "UNSPECIFIED";
938
932
  VatType2["CPF"] = "CPF";
939
933
  VatType2["CNPJ"] = "CNPJ";
940
934
  return VatType2;
941
935
  })(VatType || {});
942
- var CartStatus = /* @__PURE__ */ ((CartStatus2) => {
943
- CartStatus2["CREATED"] = "CREATED";
944
- CartStatus2["CHECKOUT_COMPLETED"] = "CHECKOUT_COMPLETED";
945
- return CartStatus2;
946
- })(CartStatus || {});
936
+ var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
937
+ WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
938
+ WeightUnit2["KG"] = "KG";
939
+ WeightUnit2["LB"] = "LB";
940
+ return WeightUnit2;
941
+ })(WeightUnit || {});
947
942
  var CalculationComponent = /* @__PURE__ */ ((CalculationComponent2) => {
948
943
  CalculationComponent2["UNKNOWN_CALCULATION_COMPONENT"] = "UNKNOWN_CALCULATION_COMPONENT";
949
944
  CalculationComponent2["DISCOUNTS"] = "DISCOUNTS";
@@ -1437,7 +1432,7 @@ async function removeLineItemsFromCurrentCart2(lineItemIds) {
1437
1432
  async function updateLineItemsInCurrentCart2(options) {
1438
1433
  const { httpClient, sideEffects } = arguments[1];
1439
1434
  const payload = renameKeysFromSDKRequestToRESTRequest({
1440
- lineItemUpdates: options?.lineItemUpdates
1435
+ lineItems: options?.lineItems
1441
1436
  });
1442
1437
  const reqOpts = updateLineItemsInCurrentCart(payload);
1443
1438
  sideEffects?.onSiteCall?.();
@@ -1471,7 +1466,7 @@ async function updateLineItemsInCurrentCart2(options) {
1471
1466
  err,
1472
1467
  {
1473
1468
  spreadPathsToArguments: {},
1474
- explicitPathsToArguments: { lineItemUpdates: "$[0].lineItemUpdates" },
1469
+ explicitPathsToArguments: { lineItems: "$[0].lineItems" },
1475
1470
  singleArgumentUnchanged: false
1476
1471
  },
1477
1472
  ["options"]
@@ -1666,7 +1661,6 @@ async function removeGiftCardFromCurrentCart2(giftCardId) {
1666
1661
  }
1667
1662
  export {
1668
1663
  CalculationComponent,
1669
- CartStatus,
1670
1664
  ChannelType,
1671
1665
  DescriptionLineType,
1672
1666
  DiscountScope,