@wix/auto_sdk_ecom_cart 1.0.111 → 1.0.113

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 +1 -1
  2. package/build/cjs/index.js +43 -13
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +24 -1
  5. package/build/cjs/index.typings.js +38 -12
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +24 -1
  8. package/build/cjs/meta.js +38 -12
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +42 -13
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +24 -1
  14. package/build/es/index.typings.mjs +37 -12
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +24 -1
  17. package/build/es/meta.mjs +37 -12
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +43 -13
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +30 -1
  23. package/build/internal/cjs/index.typings.js +38 -12
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +24 -1
  26. package/build/internal/cjs/meta.js +38 -12
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +42 -13
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +30 -1
  32. package/build/internal/es/index.typings.mjs +37 -12
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +24 -1
  35. package/build/internal/es/meta.mjs +37 -12
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
2
  import { CreateCartOptions, Cart, CreateCartApplicationErrors, UpdateCartOptions, UpdateCartApplicationErrors, AddToCartOptions, AddToCartResponse, AddToCartApplicationErrors, RemoveLineItemsResponse, CreateCheckoutOptions, CreateCheckoutResponse, CreateCheckoutApplicationErrors, RemoveCouponResponse, LineItemQuantityUpdate, UpdateLineItemsQuantityResponse, EstimateTotalsOptions, EstimateTotalsResponse, RemoveBusinessLocationResponse, CartDeletedEnvelope, CartUpdatedEnvelope, CartCreatedEnvelope } from './index.typings.mjs';
3
- export { ActionEvent, AddToCartRequest, AddToCurrentCartAndEstimateTotalsRequest, AddToCurrentCartRequest, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, Address, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, AppliedDiscountDiscountTypeWithLiterals, AutoTaxFallbackCalculationDetails, BaseEventMetadata, BuyerInfo, BuyerInfoIdOneOf, CalculatedItemModifier, CalculatedLineItem, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartDiscount, CartDiscountDiscountSourceOneOf, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, ChargeType, ChargeTypeWithLiterals, Color, Coupon, CreateCartRequest, CreateCartResponse, CreateCheckoutFromCurrentCartRequest, CreateCheckoutRequest, CustomLineItem, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, DiscountRule, DiscountRuleName, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstimateCurrentCartTotalsRequest, EstimateTotalsRequest, EventMetadata, ExtendedFields, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, GetCartByCheckoutIdRequest, GetCartByCheckoutIdResponse, GetCartRequest, GetCartResponse, GetCurrentCartRequest, GetCurrentCartResponse, GiftCard, Group, HostSelectedMembership, IdentificationData, IdentificationDataIdOneOf, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemAvailabilityStatusWithLiterals, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LineItem, LineItemDiscount, LineItemPricesData, ManualCalculationReason, ManualCalculationReasonWithLiterals, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MerchantDiscountInput, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlainTextValue, Policy, PriceDescription, PriceSummary, ProductName, RateType, RateTypeWithLiterals, Region, RemoveBusinessLocationRequest, RemoveCouponFromCurrentCartRequest, RemoveCouponRequest, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsRequest, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, SelectedShippingOption, ServiceProperties, Severity, SeverityWithLiterals, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, StreetAddress, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartLineItemQuantityRequest, UpdateLineItemsQuantityRequest, V1Coupon, V1DiscountRule, V1DiscountRuleName, V1ItemModifier, V1MerchantDiscount, V1ModifierGroup, ValidationError, VatId, VatType, VatTypeWithLiterals, Violation, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.typings.mjs';
3
+ export { ActionEvent, AddToCartRequest, AddToCurrentCartAndEstimateTotalsRequest, AddToCurrentCartRequest, AdditionalFee, AdditionalFeeSource, AdditionalFeeSourceWithLiterals, Address, AddressLocation, AddressWithContact, AggregatedTaxBreakdown, ApplicableLineItems, ApplicationError, AppliedDiscount, AppliedDiscountDiscountSourceOneOf, AppliedDiscountDiscountType, AppliedDiscountDiscountTypeWithLiterals, AutoTaxFallbackCalculationDetails, BaseEventMetadata, BuyerInfo, BuyerInfoIdOneOf, CalculatedItemModifier, CalculatedLineItem, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, Carrier, CarrierError, CarrierErrors, CarrierServiceOption, CartDiscount, CartDiscountDiscountSourceOneOf, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, ChargeType, ChargeTypeWithLiterals, Color, Coupon, CreateCartRequest, CreateCartResponse, CreateCheckoutFromCurrentCartRequest, CreateCheckoutRequest, CustomLineItem, DeleteCartRequest, DeleteCartResponse, DeleteCurrentCartRequest, DeliveryAllocation, DeliveryLogistics, DeliveryTimeSlot, Description, DescriptionLine, DescriptionLineDescriptionLineValueOneOf, DescriptionLineName, DescriptionLineType, DescriptionLineTypeWithLiterals, DescriptionLineValueOneOf, Details, DetailsKindOneOf, DiscountRule, DiscountRuleName, DiscountType, DiscountTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EstimateCurrentCartTotalsRequest, EstimateTotalsRequest, EventMetadata, ExtendedFields, FallbackReason, FallbackReasonWithLiterals, FieldViolation, FileType, FileTypeWithLiterals, FocalPoint, FreeTrialPeriod, FullAddressContactDetails, GetCartByCheckoutIdRequest, GetCartByCheckoutIdResponse, GetCartRequest, GetCartResponse, GetCurrentCartRequest, GetCurrentCartResponse, GiftCard, Group, HostSelectedMembership, IdentificationData, IdentificationDataIdOneOf, InvalidMembership, ItemAvailabilityInfo, ItemAvailabilityStatus, ItemAvailabilityStatusWithLiterals, ItemModifier, ItemTaxFullDetails, ItemType, ItemTypeItemTypeDataOneOf, ItemTypePreset, ItemTypePresetWithLiterals, JurisdictionType, JurisdictionTypeWithLiterals, LineItem, LineItemDiscount, LineItemPricesData, ManualCalculationReason, ManualCalculationReasonWithLiterals, Membership, MembershipName, MembershipOptions, MembershipPaymentCredits, MerchantDiscount, MerchantDiscountInput, MessageEnvelope, ModifierGroup, MultiCurrencyPrice, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, OtherCharge, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PhysicalProperties, PickupDetails, PickupMethod, PickupMethodWithLiterals, PlainTextValue, PlatformFee, Policy, PriceDescription, PriceSummary, ProductName, RateType, RateTypeWithLiterals, Region, RemoveBusinessLocationRequest, RemoveCouponFromCurrentCartRequest, RemoveCouponRequest, RemoveLineItemsFromCurrentCartRequest, RemoveLineItemsRequest, RestoreInfo, RuleType, RuleTypeWithLiterals, Scope, SecuredMedia, SelectedCarrierServiceOption, SelectedCarrierServiceOptionOtherCharge, SelectedCarrierServiceOptionPrices, SelectedMembership, SelectedMemberships, SelectedShippingOption, ServiceProperties, Severity, SeverityWithLiterals, ShippingInformation, ShippingOption, ShippingPrice, ShippingRegion, StreetAddress, SubscriptionFrequency, SubscriptionFrequencyWithLiterals, SubscriptionOptionInfo, SubscriptionSettings, SuggestedFix, SuggestedFixWithLiterals, SystemError, Target, TargetLineItem, TargetTargetTypeOneOf, TaxBreakdown, TaxCalculationDetails, TaxCalculationDetailsCalculationDetailsOneOf, TaxRateBreakdown, TaxSummary, TaxableAddress, TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, TaxableAddressTypeWithLiterals, Title, TranslatableString, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartLineItemQuantityRequest, UpdateLineItemsQuantityRequest, V1ChargeType, V1ChargeTypeWithLiterals, V1Coupon, V1DiscountRule, V1DiscountRuleName, V1ItemModifier, V1MerchantDiscount, V1ModifierGroup, ValidationError, VatId, VatType, VatTypeWithLiterals, Violation, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.typings.mjs';
4
4
 
5
5
  declare function createCart$1(httpClient: HttpClient): CreateCartSignature;
6
6
  interface CreateCartSignature {
@@ -147,15 +147,18 @@ function createCart(payload) {
147
147
  path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
148
148
  },
149
149
  { path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
150
+ { path: "cartInfo.lineItems.serviceProperties.endDate" },
150
151
  { path: "lineItems.image.urlExpirationDate" },
151
152
  {
152
153
  path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
153
154
  },
154
155
  { path: "lineItems.serviceProperties.scheduledDate" },
156
+ { path: "lineItems.serviceProperties.endDate" },
155
157
  {
156
158
  path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
157
159
  },
158
- { path: "customLineItems.serviceProperties.scheduledDate" }
160
+ { path: "customLineItems.serviceProperties.scheduledDate" },
161
+ { path: "customLineItems.serviceProperties.endDate" }
159
162
  ]
160
163
  },
161
164
  {
@@ -201,7 +204,8 @@ function createCart(payload) {
201
204
  {
202
205
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
203
206
  },
204
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
207
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
208
+ { path: "cart.lineItems.serviceProperties.endDate" }
205
209
  ]
206
210
  },
207
211
  {
@@ -240,15 +244,18 @@ function updateCart(payload) {
240
244
  path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
241
245
  },
242
246
  { path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
247
+ { path: "cartInfo.lineItems.serviceProperties.endDate" },
243
248
  { path: "lineItems.image.urlExpirationDate" },
244
249
  {
245
250
  path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
246
251
  },
247
252
  { path: "lineItems.serviceProperties.scheduledDate" },
253
+ { path: "lineItems.serviceProperties.endDate" },
248
254
  {
249
255
  path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
250
256
  },
251
- { path: "customLineItems.serviceProperties.scheduledDate" }
257
+ { path: "customLineItems.serviceProperties.scheduledDate" },
258
+ { path: "customLineItems.serviceProperties.endDate" }
252
259
  ]
253
260
  },
254
261
  {
@@ -294,7 +301,8 @@ function updateCart(payload) {
294
301
  {
295
302
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
296
303
  },
297
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
304
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
305
+ { path: "cart.lineItems.serviceProperties.endDate" }
298
306
  ]
299
307
  },
300
308
  {
@@ -342,7 +350,8 @@ function getCart(payload) {
342
350
  {
343
351
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
344
352
  },
345
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
353
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
354
+ { path: "cart.lineItems.serviceProperties.endDate" }
346
355
  ]
347
356
  },
348
357
  {
@@ -390,7 +399,8 @@ function getCartByCheckoutId(payload) {
390
399
  {
391
400
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
392
401
  },
393
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
402
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
403
+ { path: "cart.lineItems.serviceProperties.endDate" }
394
404
  ]
395
405
  },
396
406
  {
@@ -423,10 +433,12 @@ function addToCart(payload) {
423
433
  path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
424
434
  },
425
435
  { path: "lineItems.serviceProperties.scheduledDate" },
436
+ { path: "lineItems.serviceProperties.endDate" },
426
437
  {
427
438
  path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
428
439
  },
429
- { path: "customLineItems.serviceProperties.scheduledDate" }
440
+ { path: "customLineItems.serviceProperties.scheduledDate" },
441
+ { path: "customLineItems.serviceProperties.endDate" }
430
442
  ]
431
443
  },
432
444
  {
@@ -464,7 +476,8 @@ function addToCart(payload) {
464
476
  {
465
477
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
466
478
  },
467
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
479
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
480
+ { path: "cart.lineItems.serviceProperties.endDate" }
468
481
  ]
469
482
  },
470
483
  {
@@ -512,7 +525,8 @@ function removeLineItems(payload) {
512
525
  {
513
526
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
514
527
  },
515
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
528
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
529
+ { path: "cart.lineItems.serviceProperties.endDate" }
516
530
  ]
517
531
  },
518
532
  {
@@ -592,7 +606,8 @@ function removeCoupon(payload) {
592
606
  {
593
607
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
594
608
  },
595
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
609
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
610
+ { path: "cart.lineItems.serviceProperties.endDate" }
596
611
  ]
597
612
  },
598
613
  {
@@ -640,7 +655,8 @@ function updateLineItemsQuantity(payload) {
640
655
  {
641
656
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
642
657
  },
643
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
658
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
659
+ { path: "cart.lineItems.serviceProperties.endDate" }
644
660
  ]
645
661
  },
646
662
  {
@@ -700,6 +716,7 @@ function estimateTotals(payload) {
700
716
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
701
717
  },
702
718
  { path: "cart.lineItems.serviceProperties.scheduledDate" },
719
+ { path: "cart.lineItems.serviceProperties.endDate" },
703
720
  {
704
721
  path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
705
722
  },
@@ -797,7 +814,8 @@ function removeBusinessLocation(payload) {
797
814
  {
798
815
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
799
816
  },
800
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
817
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
818
+ { path: "cart.lineItems.serviceProperties.endDate" }
801
819
  ]
802
820
  },
803
821
  {
@@ -882,6 +900,12 @@ var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
882
900
  TaxableAddressType2["SHIPPING"] = "SHIPPING";
883
901
  return TaxableAddressType2;
884
902
  })(TaxableAddressType || {});
903
+ var V1ChargeType = /* @__PURE__ */ ((V1ChargeType2) => {
904
+ V1ChargeType2["UNKNOWN_CHARGE_TYPE"] = "UNKNOWN_CHARGE_TYPE";
905
+ V1ChargeType2["PASS_ON"] = "PASS_ON";
906
+ V1ChargeType2["ABSORBED"] = "ABSORBED";
907
+ return V1ChargeType2;
908
+ })(V1ChargeType || {});
885
909
  var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
886
910
  WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
887
911
  WeightUnit2["KG"] = "KG";
@@ -1747,6 +1771,7 @@ var onCartDeleted = EventDefinition(
1747
1771
  path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
1748
1772
  },
1749
1773
  { path: "undefined.lineItems.serviceProperties.scheduledDate" },
1774
+ { path: "undefined.lineItems.serviceProperties.endDate" },
1750
1775
  { path: "metadata.eventTime" }
1751
1776
  ]
1752
1777
  },
@@ -1791,6 +1816,7 @@ var onCartUpdated = EventDefinition(
1791
1816
  path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
1792
1817
  },
1793
1818
  { path: "entity.lineItems.serviceProperties.scheduledDate" },
1819
+ { path: "entity.lineItems.serviceProperties.endDate" },
1794
1820
  { path: "metadata.eventTime" },
1795
1821
  { path: "modifiedFields.createdDate" },
1796
1822
  { path: "modifiedFields.updatedDate" },
@@ -1799,7 +1825,8 @@ var onCartUpdated = EventDefinition(
1799
1825
  },
1800
1826
  {
1801
1827
  path: "modifiedFields.lineItems.serviceProperties.scheduledDate"
1802
- }
1828
+ },
1829
+ { path: "modifiedFields.lineItems.serviceProperties.endDate" }
1803
1830
  ]
1804
1831
  },
1805
1832
  {
@@ -1855,6 +1882,7 @@ var onCartCreated = EventDefinition(
1855
1882
  path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
1856
1883
  },
1857
1884
  { path: "entity.lineItems.serviceProperties.scheduledDate" },
1885
+ { path: "entity.lineItems.serviceProperties.endDate" },
1858
1886
  { path: "metadata.eventTime" }
1859
1887
  ]
1860
1888
  },
@@ -1927,6 +1955,7 @@ export {
1927
1955
  SubscriptionFrequency,
1928
1956
  SuggestedFix,
1929
1957
  TaxableAddressType,
1958
+ V1ChargeType,
1930
1959
  VatType,
1931
1960
  WebhookIdentityType,
1932
1961
  WeightUnit,