@wix/auto_sdk_ecom_current-cart 1.0.112 → 1.0.114

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 +33 -9
  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 +28 -8
  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 +28 -8
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +32 -9
  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 +27 -8
  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 +27 -8
  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 +33 -9
  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 +28 -8
  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 +28 -8
  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 +32 -9
  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 +27 -8
  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 +27 -8
  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 { Cart, UpdateCurrentCartOptions, AddToCurrentCartOptions, AddToCartResponse, RemoveLineItemsResponse, CreateCheckoutFromCurrentCartOptions, CreateCheckoutResponse, RemoveCouponResponse, LineItemQuantityUpdate, UpdateLineItemsQuantityResponse, EstimateCurrentCartTotalsOptions, EstimateTotalsResponse, CartDeletedEnvelope, CartUpdatedEnvelope, CartCreatedEnvelope } from './index.typings.js';
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, RemoveBusinessLocationResponse, 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.js';
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, RemoveBusinessLocationResponse, 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.js';
4
4
 
5
5
  declare function getCurrentCart$1(httpClient: HttpClient): GetCurrentCartSignature;
6
6
  interface GetCurrentCartSignature {
@@ -42,6 +42,7 @@ __export(index_exports, {
42
42
  SubscriptionFrequency: () => SubscriptionFrequency,
43
43
  SuggestedFix: () => SuggestedFix,
44
44
  TaxableAddressType: () => TaxableAddressType,
45
+ V1ChargeType: () => V1ChargeType,
45
46
  VatType: () => VatType,
46
47
  WebhookIdentityType: () => WebhookIdentityType,
47
48
  WeightUnit: () => WeightUnit,
@@ -219,7 +220,8 @@ function currentCartGetCurrentCart(payload) {
219
220
  {
220
221
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
221
222
  },
222
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
223
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
224
+ { path: "cart.lineItems.serviceProperties.endDate" }
223
225
  ]
224
226
  },
225
227
  {
@@ -258,15 +260,18 @@ function updateCurrentCart(payload) {
258
260
  path: "cartInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
259
261
  },
260
262
  { path: "cartInfo.lineItems.serviceProperties.scheduledDate" },
263
+ { path: "cartInfo.lineItems.serviceProperties.endDate" },
261
264
  { path: "lineItems.image.urlExpirationDate" },
262
265
  {
263
266
  path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
264
267
  },
265
268
  { path: "lineItems.serviceProperties.scheduledDate" },
269
+ { path: "lineItems.serviceProperties.endDate" },
266
270
  {
267
271
  path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
268
272
  },
269
- { path: "customLineItems.serviceProperties.scheduledDate" }
273
+ { path: "customLineItems.serviceProperties.scheduledDate" },
274
+ { path: "customLineItems.serviceProperties.endDate" }
270
275
  ]
271
276
  },
272
277
  {
@@ -312,7 +317,8 @@ function updateCurrentCart(payload) {
312
317
  {
313
318
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
314
319
  },
315
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
320
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
321
+ { path: "cart.lineItems.serviceProperties.endDate" }
316
322
  ]
317
323
  },
318
324
  {
@@ -345,10 +351,12 @@ function addToCurrentCart(payload) {
345
351
  path: "lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
346
352
  },
347
353
  { path: "lineItems.serviceProperties.scheduledDate" },
354
+ { path: "lineItems.serviceProperties.endDate" },
348
355
  {
349
356
  path: "customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
350
357
  },
351
- { path: "customLineItems.serviceProperties.scheduledDate" }
358
+ { path: "customLineItems.serviceProperties.scheduledDate" },
359
+ { path: "customLineItems.serviceProperties.endDate" }
352
360
  ]
353
361
  },
354
362
  {
@@ -386,7 +394,8 @@ function addToCurrentCart(payload) {
386
394
  {
387
395
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
388
396
  },
389
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
397
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
398
+ { path: "cart.lineItems.serviceProperties.endDate" }
390
399
  ]
391
400
  },
392
401
  {
@@ -434,7 +443,8 @@ function removeLineItemsFromCurrentCart(payload) {
434
443
  {
435
444
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
436
445
  },
437
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
446
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
447
+ { path: "cart.lineItems.serviceProperties.endDate" }
438
448
  ]
439
449
  },
440
450
  {
@@ -514,7 +524,8 @@ function removeCouponFromCurrentCart(payload) {
514
524
  {
515
525
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
516
526
  },
517
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
527
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
528
+ { path: "cart.lineItems.serviceProperties.endDate" }
518
529
  ]
519
530
  },
520
531
  {
@@ -562,7 +573,8 @@ function updateCurrentCartLineItemQuantity(payload) {
562
573
  {
563
574
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
564
575
  },
565
- { path: "cart.lineItems.serviceProperties.scheduledDate" }
576
+ { path: "cart.lineItems.serviceProperties.scheduledDate" },
577
+ { path: "cart.lineItems.serviceProperties.endDate" }
566
578
  ]
567
579
  },
568
580
  {
@@ -622,6 +634,7 @@ function estimateCurrentCartTotals(payload) {
622
634
  path: "cart.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
623
635
  },
624
636
  { path: "cart.lineItems.serviceProperties.scheduledDate" },
637
+ { path: "cart.lineItems.serviceProperties.endDate" },
625
638
  {
626
639
  path: "shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
627
640
  },
@@ -756,6 +769,12 @@ var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
756
769
  TaxableAddressType2["SHIPPING"] = "SHIPPING";
757
770
  return TaxableAddressType2;
758
771
  })(TaxableAddressType || {});
772
+ var V1ChargeType = /* @__PURE__ */ ((V1ChargeType2) => {
773
+ V1ChargeType2["UNKNOWN_CHARGE_TYPE"] = "UNKNOWN_CHARGE_TYPE";
774
+ V1ChargeType2["PASS_ON"] = "PASS_ON";
775
+ V1ChargeType2["ABSORBED"] = "ABSORBED";
776
+ return V1ChargeType2;
777
+ })(V1ChargeType || {});
759
778
  var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
760
779
  WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
761
780
  WeightUnit2["KG"] = "KG";
@@ -1422,6 +1441,7 @@ var onCartDeleted = (0, import_sdk_types.EventDefinition)(
1422
1441
  path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
1423
1442
  },
1424
1443
  { path: "undefined.lineItems.serviceProperties.scheduledDate" },
1444
+ { path: "undefined.lineItems.serviceProperties.endDate" },
1425
1445
  { path: "metadata.eventTime" }
1426
1446
  ]
1427
1447
  },
@@ -1466,6 +1486,7 @@ var onCartUpdated = (0, import_sdk_types.EventDefinition)(
1466
1486
  path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
1467
1487
  },
1468
1488
  { path: "entity.lineItems.serviceProperties.scheduledDate" },
1489
+ { path: "entity.lineItems.serviceProperties.endDate" },
1469
1490
  { path: "metadata.eventTime" },
1470
1491
  { path: "modifiedFields.createdDate" },
1471
1492
  { path: "modifiedFields.updatedDate" },
@@ -1474,7 +1495,8 @@ var onCartUpdated = (0, import_sdk_types.EventDefinition)(
1474
1495
  },
1475
1496
  {
1476
1497
  path: "modifiedFields.lineItems.serviceProperties.scheduledDate"
1477
- }
1498
+ },
1499
+ { path: "modifiedFields.lineItems.serviceProperties.endDate" }
1478
1500
  ]
1479
1501
  },
1480
1502
  {
@@ -1530,6 +1552,7 @@ var onCartCreated = (0, import_sdk_types.EventDefinition)(
1530
1552
  path: "entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
1531
1553
  },
1532
1554
  { path: "entity.lineItems.serviceProperties.scheduledDate" },
1555
+ { path: "entity.lineItems.serviceProperties.endDate" },
1533
1556
  { path: "metadata.eventTime" }
1534
1557
  ]
1535
1558
  },
@@ -1600,6 +1623,7 @@ var onCartCreated2 = (0, import_event_definition_modules.createEventModule)(onCa
1600
1623
  SubscriptionFrequency,
1601
1624
  SuggestedFix,
1602
1625
  TaxableAddressType,
1626
+ V1ChargeType,
1603
1627
  VatType,
1604
1628
  WebhookIdentityType,
1605
1629
  WeightUnit,