@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.
- package/build/cjs/index.d.ts +76 -55
- package/build/cjs/index.js +2 -68
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +2 -68
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +64 -58
- package/build/cjs/meta.js +0 -68
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +76 -55
- package/build/es/index.mjs +2 -68
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +2 -68
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +64 -58
- package/build/es/meta.mjs +0 -68
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +14 -14
- package/build/internal/cjs/index.js +2 -68
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +89 -68
- package/build/internal/cjs/index.typings.js +2 -68
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +64 -58
- package/build/internal/cjs/meta.js +0 -68
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +14 -14
- package/build/internal/es/index.mjs +2 -68
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +89 -68
- package/build/internal/es/index.typings.mjs +2 -68
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +64 -58
- package/build/internal/es/meta.mjs +0 -68
- 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, 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,
|
|
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.js';
|
|
@@ -171,18 +171,10 @@ function createCart(payload) {
|
|
|
171
171
|
paths: [
|
|
172
172
|
{ path: "cart.createdDate" },
|
|
173
173
|
{ path: "cart.updatedDate" },
|
|
174
|
-
{
|
|
175
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
176
|
-
},
|
|
177
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
178
174
|
{
|
|
179
175
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
180
176
|
},
|
|
181
177
|
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
182
|
-
{
|
|
183
|
-
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
184
|
-
},
|
|
185
|
-
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
186
178
|
{
|
|
187
179
|
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
188
180
|
},
|
|
@@ -227,10 +219,6 @@ function createCart(payload) {
|
|
|
227
219
|
paths: [
|
|
228
220
|
{ path: "cart.createdDate" },
|
|
229
221
|
{ path: "cart.updatedDate" },
|
|
230
|
-
{
|
|
231
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
232
|
-
},
|
|
233
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
234
222
|
{
|
|
235
223
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
236
224
|
},
|
|
@@ -280,10 +268,6 @@ function getCart(payload) {
|
|
|
280
268
|
paths: [
|
|
281
269
|
{ path: "cart.createdDate" },
|
|
282
270
|
{ path: "cart.updatedDate" },
|
|
283
|
-
{
|
|
284
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
285
|
-
},
|
|
286
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
287
271
|
{
|
|
288
272
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
289
273
|
},
|
|
@@ -323,10 +307,6 @@ function updateCart(payload) {
|
|
|
323
307
|
paths: [
|
|
324
308
|
{ path: "cart.createdDate" },
|
|
325
309
|
{ path: "cart.updatedDate" },
|
|
326
|
-
{
|
|
327
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
328
|
-
},
|
|
329
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
330
310
|
{
|
|
331
311
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
332
312
|
},
|
|
@@ -367,10 +347,6 @@ function updateCart(payload) {
|
|
|
367
347
|
paths: [
|
|
368
348
|
{ path: "cart.createdDate" },
|
|
369
349
|
{ path: "cart.updatedDate" },
|
|
370
|
-
{
|
|
371
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
372
|
-
},
|
|
373
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
374
350
|
{
|
|
375
351
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
376
352
|
},
|
|
@@ -441,10 +417,6 @@ function refreshCart(payload) {
|
|
|
441
417
|
paths: [
|
|
442
418
|
{ path: "cart.createdDate" },
|
|
443
419
|
{ path: "cart.updatedDate" },
|
|
444
|
-
{
|
|
445
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
446
|
-
},
|
|
447
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
448
420
|
{
|
|
449
421
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
450
422
|
},
|
|
@@ -494,10 +466,6 @@ function calculateCart(payload) {
|
|
|
494
466
|
paths: [
|
|
495
467
|
{ path: "cart.createdDate" },
|
|
496
468
|
{ path: "cart.updatedDate" },
|
|
497
|
-
{
|
|
498
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
499
|
-
},
|
|
500
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
501
469
|
{
|
|
502
470
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
503
471
|
},
|
|
@@ -585,10 +553,6 @@ function addLineItems(payload) {
|
|
|
585
553
|
{
|
|
586
554
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
587
555
|
paths: [
|
|
588
|
-
{
|
|
589
|
-
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
590
|
-
},
|
|
591
|
-
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
592
556
|
{
|
|
593
557
|
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
594
558
|
},
|
|
@@ -616,10 +580,6 @@ function addLineItems(payload) {
|
|
|
616
580
|
paths: [
|
|
617
581
|
{ path: "cart.createdDate" },
|
|
618
582
|
{ path: "cart.updatedDate" },
|
|
619
|
-
{
|
|
620
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
621
|
-
},
|
|
622
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
623
583
|
{
|
|
624
584
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
625
585
|
},
|
|
@@ -669,10 +629,6 @@ function removeLineItems(payload) {
|
|
|
669
629
|
paths: [
|
|
670
630
|
{ path: "cart.createdDate" },
|
|
671
631
|
{ path: "cart.updatedDate" },
|
|
672
|
-
{
|
|
673
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
674
|
-
},
|
|
675
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
676
632
|
{
|
|
677
633
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
678
634
|
},
|
|
@@ -722,10 +678,6 @@ function updateLineItems(payload) {
|
|
|
722
678
|
paths: [
|
|
723
679
|
{ path: "cart.createdDate" },
|
|
724
680
|
{ path: "cart.updatedDate" },
|
|
725
|
-
{
|
|
726
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
727
|
-
},
|
|
728
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
729
681
|
{
|
|
730
682
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
731
683
|
},
|
|
@@ -775,10 +727,6 @@ function addCoupon(payload) {
|
|
|
775
727
|
paths: [
|
|
776
728
|
{ path: "cart.createdDate" },
|
|
777
729
|
{ path: "cart.updatedDate" },
|
|
778
|
-
{
|
|
779
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
780
|
-
},
|
|
781
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
782
730
|
{
|
|
783
731
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
784
732
|
},
|
|
@@ -828,10 +776,6 @@ function removeCoupon(payload) {
|
|
|
828
776
|
paths: [
|
|
829
777
|
{ path: "cart.createdDate" },
|
|
830
778
|
{ path: "cart.updatedDate" },
|
|
831
|
-
{
|
|
832
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
833
|
-
},
|
|
834
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
835
779
|
{
|
|
836
780
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
837
781
|
},
|
|
@@ -881,10 +825,6 @@ function addGiftCard(payload) {
|
|
|
881
825
|
paths: [
|
|
882
826
|
{ path: "cart.createdDate" },
|
|
883
827
|
{ path: "cart.updatedDate" },
|
|
884
|
-
{
|
|
885
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
886
|
-
},
|
|
887
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
888
828
|
{
|
|
889
829
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
890
830
|
},
|
|
@@ -934,10 +874,6 @@ function removeGiftCard(payload) {
|
|
|
934
874
|
paths: [
|
|
935
875
|
{ path: "cart.createdDate" },
|
|
936
876
|
{ path: "cart.updatedDate" },
|
|
937
|
-
{
|
|
938
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
939
|
-
},
|
|
940
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
941
877
|
{
|
|
942
878
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
943
879
|
},
|
|
@@ -987,10 +923,6 @@ function markCartAsCompleted(payload) {
|
|
|
987
923
|
paths: [
|
|
988
924
|
{ path: "cart.createdDate" },
|
|
989
925
|
{ path: "cart.updatedDate" },
|
|
990
|
-
{
|
|
991
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
992
|
-
},
|
|
993
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
994
926
|
{
|
|
995
927
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
996
928
|
},
|
|
@@ -1474,6 +1406,7 @@ async function calculateCart2(cartId, options) {
|
|
|
1474
1406
|
const { httpClient, sideEffects } = arguments[2];
|
|
1475
1407
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1476
1408
|
cartId,
|
|
1409
|
+
refreshCart: options?.refreshCart,
|
|
1477
1410
|
validationsConfig: options?.validationsConfig,
|
|
1478
1411
|
customCalculationConfig: options?.customCalculationConfig
|
|
1479
1412
|
});
|
|
@@ -1511,6 +1444,7 @@ async function calculateCart2(cartId, options) {
|
|
|
1511
1444
|
spreadPathsToArguments: {},
|
|
1512
1445
|
explicitPathsToArguments: {
|
|
1513
1446
|
cartId: "$[0]",
|
|
1447
|
+
refreshCart: "$[1].refreshCart",
|
|
1514
1448
|
validationsConfig: "$[1].validationsConfig",
|
|
1515
1449
|
customCalculationConfig: "$[1].customCalculationConfig"
|
|
1516
1450
|
},
|