@wix/auto_sdk_ecom_cart-v-2 1.0.21 → 1.0.23

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +76 -55
  2. package/build/cjs/index.js +2 -68
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -1
  5. package/build/cjs/index.typings.js +2 -68
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +64 -58
  8. package/build/cjs/meta.js +0 -68
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +76 -55
  11. package/build/es/index.mjs +2 -68
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +1 -1
  14. package/build/es/index.typings.mjs +2 -68
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +64 -58
  17. package/build/es/meta.mjs +0 -68
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +14 -14
  20. package/build/internal/cjs/index.js +2 -68
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +89 -68
  23. package/build/internal/cjs/index.typings.js +2 -68
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +64 -58
  26. package/build/internal/cjs/meta.js +0 -68
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +14 -14
  29. package/build/internal/es/index.mjs +2 -68
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +89 -68
  32. package/build/internal/es/index.typings.mjs +2 -68
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +64 -58
  35. package/build/internal/es/meta.mjs +0 -68
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1 +1 @@
1
- export { ActionEvent, AddCouponRequest, AddCouponResponse, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsOptions, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeTax, Address, AddressLocation, ApplicationError, BusinessInfo, CalculateCartOptions, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartRequest, CalculateCurrentCartResponse, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CarrierError, CarrierErrors, Cart, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, Color, Coupon, CreateCartOptions, CreateCartRequest, CreateCartResponse, 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, GetCheckoutUrlOptions, 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, MarkCartAsCompletedOptions, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse, Membership, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, PaymentInfo, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PaymentSummary, PhysicalProperties, PlaceOrderOptions, 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, UpdateCart, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartRequest, UpdateCurrentCartResponse, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsOptions, UpdateLineItemsRequest, UpdateLineItemsResponse, V2AdditionalFee, V2LineItem, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.mjs';
1
+ export { ActionEvent, AddCouponRequest, AddCouponResponse, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsOptions, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeTax, Address, AddressLocation, ApplicationError, BusinessInfo, CalculateCartOptions, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartRequest, CalculateCurrentCartResponse, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CarrierError, CarrierErrors, Cart, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, Color, ConvertedMoney, Coupon, CreateCartOptions, CreateCartRequest, CreateCartResponse, 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, GetCheckoutUrlOptions, 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, MarkCartAsCompletedOptions, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse, Membership, MessageEnvelope, ModifierGroup, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, PaymentInfo, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PaymentSummary, PhysicalProperties, PlaceOrderOptions, 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, UpdateCart, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartRequest, UpdateCurrentCartResponse, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsOptions, UpdateLineItemsRequest, UpdateLineItemsResponse, V2AdditionalFee, V2LineItem, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.mjs';
@@ -113,18 +113,10 @@ function createCart(payload) {
113
113
  paths: [
114
114
  { path: "cart.createdDate" },
115
115
  { path: "cart.updatedDate" },
116
- {
117
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
118
- },
119
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
120
116
  {
121
117
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
122
118
  },
123
119
  { path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
124
- {
125
- path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
126
- },
127
- { path: "customItems.attributes.image.urlExpirationDate" },
128
120
  {
129
121
  path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
130
122
  },
@@ -169,10 +161,6 @@ function createCart(payload) {
169
161
  paths: [
170
162
  { path: "cart.createdDate" },
171
163
  { path: "cart.updatedDate" },
172
- {
173
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
174
- },
175
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
176
164
  {
177
165
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
178
166
  },
@@ -222,10 +210,6 @@ function getCart(payload) {
222
210
  paths: [
223
211
  { path: "cart.createdDate" },
224
212
  { path: "cart.updatedDate" },
225
- {
226
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
227
- },
228
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
229
213
  {
230
214
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
231
215
  },
@@ -265,10 +249,6 @@ function updateCart(payload) {
265
249
  paths: [
266
250
  { path: "cart.createdDate" },
267
251
  { path: "cart.updatedDate" },
268
- {
269
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
270
- },
271
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
272
252
  {
273
253
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
274
254
  },
@@ -309,10 +289,6 @@ function updateCart(payload) {
309
289
  paths: [
310
290
  { path: "cart.createdDate" },
311
291
  { path: "cart.updatedDate" },
312
- {
313
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
314
- },
315
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
316
292
  {
317
293
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
318
294
  },
@@ -383,10 +359,6 @@ function refreshCart(payload) {
383
359
  paths: [
384
360
  { path: "cart.createdDate" },
385
361
  { path: "cart.updatedDate" },
386
- {
387
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
388
- },
389
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
390
362
  {
391
363
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
392
364
  },
@@ -436,10 +408,6 @@ function calculateCart(payload) {
436
408
  paths: [
437
409
  { path: "cart.createdDate" },
438
410
  { path: "cart.updatedDate" },
439
- {
440
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
441
- },
442
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
443
411
  {
444
412
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
445
413
  },
@@ -527,10 +495,6 @@ function addLineItems(payload) {
527
495
  {
528
496
  transformFn: transformSDKTimestampToRESTTimestamp,
529
497
  paths: [
530
- {
531
- path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
532
- },
533
- { path: "customItems.attributes.image.urlExpirationDate" },
534
498
  {
535
499
  path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
536
500
  },
@@ -558,10 +522,6 @@ function addLineItems(payload) {
558
522
  paths: [
559
523
  { path: "cart.createdDate" },
560
524
  { path: "cart.updatedDate" },
561
- {
562
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
563
- },
564
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
565
525
  {
566
526
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
567
527
  },
@@ -611,10 +571,6 @@ function removeLineItems(payload) {
611
571
  paths: [
612
572
  { path: "cart.createdDate" },
613
573
  { path: "cart.updatedDate" },
614
- {
615
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
616
- },
617
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
618
574
  {
619
575
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
620
576
  },
@@ -664,10 +620,6 @@ function updateLineItems(payload) {
664
620
  paths: [
665
621
  { path: "cart.createdDate" },
666
622
  { path: "cart.updatedDate" },
667
- {
668
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
669
- },
670
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
671
623
  {
672
624
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
673
625
  },
@@ -717,10 +669,6 @@ function addCoupon(payload) {
717
669
  paths: [
718
670
  { path: "cart.createdDate" },
719
671
  { path: "cart.updatedDate" },
720
- {
721
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
722
- },
723
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
724
672
  {
725
673
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
726
674
  },
@@ -770,10 +718,6 @@ function removeCoupon(payload) {
770
718
  paths: [
771
719
  { path: "cart.createdDate" },
772
720
  { path: "cart.updatedDate" },
773
- {
774
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
775
- },
776
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
777
721
  {
778
722
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
779
723
  },
@@ -823,10 +767,6 @@ function addGiftCard(payload) {
823
767
  paths: [
824
768
  { path: "cart.createdDate" },
825
769
  { path: "cart.updatedDate" },
826
- {
827
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
828
- },
829
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
830
770
  {
831
771
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
832
772
  },
@@ -876,10 +816,6 @@ function removeGiftCard(payload) {
876
816
  paths: [
877
817
  { path: "cart.createdDate" },
878
818
  { path: "cart.updatedDate" },
879
- {
880
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
881
- },
882
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
883
819
  {
884
820
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
885
821
  },
@@ -929,10 +865,6 @@ function markCartAsCompleted(payload) {
929
865
  paths: [
930
866
  { path: "cart.createdDate" },
931
867
  { path: "cart.updatedDate" },
932
- {
933
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
934
- },
935
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
936
868
  {
937
869
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
938
870
  },
@@ -1416,6 +1348,7 @@ async function calculateCart2(cartId, options) {
1416
1348
  const { httpClient, sideEffects } = arguments[2];
1417
1349
  const payload = renameKeysFromSDKRequestToRESTRequest({
1418
1350
  cartId,
1351
+ refreshCart: options?.refreshCart,
1419
1352
  validationsConfig: options?.validationsConfig,
1420
1353
  customCalculationConfig: options?.customCalculationConfig
1421
1354
  });
@@ -1453,6 +1386,7 @@ async function calculateCart2(cartId, options) {
1453
1386
  spreadPathsToArguments: {},
1454
1387
  explicitPathsToArguments: {
1455
1388
  cartId: "$[0]",
1389
+ refreshCart: "$[1].refreshCart",
1456
1390
  validationsConfig: "$[1].validationsConfig",
1457
1391
  customCalculationConfig: "$[1].customCalculationConfig"
1458
1392
  },