@wix/auto_sdk_ecom_current-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 +70 -53
- package/build/cjs/index.js +2 -64
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +2 -64
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +64 -58
- package/build/cjs/meta.js +0 -64
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +70 -53
- package/build/es/index.mjs +2 -64
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +2 -64
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +64 -58
- package/build/es/meta.mjs +0 -64
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +13 -13
- package/build/internal/cjs/index.js +2 -64
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +82 -65
- package/build/internal/cjs/index.typings.js +2 -64
- 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 -64
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +13 -13
- package/build/internal/es/index.mjs +2 -64
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +82 -65
- package/build/internal/es/index.typings.mjs +2 -64
- 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 -64
- 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, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeTax, Address, AddressLocation, ApplicationError, BusinessInfo, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartOptions, CalculateCurrentCartRequest, CalculateCurrentCartResponse, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CarrierError, CarrierErrors, Cart, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, Color, Coupon, 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, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, ExternalReference, FieldViolation, FileType, FileTypeWithLiterals, FreeTrialPeriod, FullAddressContactDetails, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCheckoutURLResponse, 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, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse, Membership, MessageEnvelope, ModifierGroup,
|
|
1
|
+
export { ActionEvent, AddCouponRequest, AddCouponResponse, AddCouponToCurrentCartRequest, AddCouponToCurrentCartResponse, AddGiftCardRequest, AddGiftCardResponse, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse, AddLineItemsRequest, AddLineItemsResponse, AddLineItemsToCurrentCartOptions, AddLineItemsToCurrentCartRequest, AddLineItemsToCurrentCartResponse, AdditionalFee, AdditionalFeeTax, Address, AddressLocation, ApplicationError, BusinessInfo, CalculateCartRequest, CalculateCartResponse, CalculateCurrentCartOptions, CalculateCurrentCartRequest, CalculateCurrentCartResponse, CalculationConfig, CalculationErrors, CalculationErrorsShippingCalculationErrorOneOf, CarrierError, CarrierErrors, Cart, CartSettings, CartSource, CartSummary, CatalogItemInput, CatalogOverrideFields, CatalogReference, ChannelType, ChannelTypeWithLiterals, Charge, Color, ConvertedMoney, Coupon, 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, DomainEvent, DomainEventBodyOneOf, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, ExtendedFields, ExternalReference, FieldViolation, FileType, FileTypeWithLiterals, FreeTrialPeriod, FullAddressContactDetails, GetCartRequest, GetCartResponse, GetCheckoutURLRequest, GetCheckoutURLResponse, 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, MarkCartAsCompletedRequest, MarkCartAsCompletedResponse, Membership, MessageEnvelope, ModifierGroup, NameInLineItem, NameInLineItemWithLiterals, NameInOther, NameInOtherWithLiterals, Other, PaymentInfo, PaymentOption, PaymentOptionType, PaymentOptionTypeWithLiterals, PaymentSummary, PhysicalProperties, 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, UpdateCartRequest, UpdateCartResponse, UpdateCurrentCartRequest, UpdateCurrentCartResponse, UpdateLineItemsInCurrentCartOptions, UpdateLineItemsInCurrentCartRequest, UpdateLineItemsInCurrentCartResponse, UpdateLineItemsRequest, UpdateLineItemsResponse, V2AdditionalFee, V2LineItem, ValidationError, ValidationsConfig, ValidationsConfigWithLiterals, VatId, VatType, VatTypeWithLiterals, Violation, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WeightUnit, WeightUnitWithLiterals } from './index.mjs';
|
|
@@ -112,18 +112,10 @@ function createCurrentCart(payload) {
|
|
|
112
112
|
paths: [
|
|
113
113
|
{ path: "cart.createdDate" },
|
|
114
114
|
{ path: "cart.updatedDate" },
|
|
115
|
-
{
|
|
116
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
117
|
-
},
|
|
118
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
119
115
|
{
|
|
120
116
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
121
117
|
},
|
|
122
118
|
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
123
|
-
{
|
|
124
|
-
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
125
|
-
},
|
|
126
|
-
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
127
119
|
{
|
|
128
120
|
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
129
121
|
},
|
|
@@ -168,10 +160,6 @@ function createCurrentCart(payload) {
|
|
|
168
160
|
paths: [
|
|
169
161
|
{ path: "cart.createdDate" },
|
|
170
162
|
{ path: "cart.updatedDate" },
|
|
171
|
-
{
|
|
172
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
173
|
-
},
|
|
174
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
175
163
|
{
|
|
176
164
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
177
165
|
},
|
|
@@ -221,10 +209,6 @@ function getCurrentCart(payload) {
|
|
|
221
209
|
paths: [
|
|
222
210
|
{ path: "cart.createdDate" },
|
|
223
211
|
{ path: "cart.updatedDate" },
|
|
224
|
-
{
|
|
225
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
226
|
-
},
|
|
227
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
228
212
|
{
|
|
229
213
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
230
214
|
},
|
|
@@ -264,10 +248,6 @@ function updateCurrentCart(payload) {
|
|
|
264
248
|
paths: [
|
|
265
249
|
{ path: "cart.createdDate" },
|
|
266
250
|
{ path: "cart.updatedDate" },
|
|
267
|
-
{
|
|
268
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
269
|
-
},
|
|
270
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
271
251
|
{
|
|
272
252
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
273
253
|
},
|
|
@@ -308,10 +288,6 @@ function updateCurrentCart(payload) {
|
|
|
308
288
|
paths: [
|
|
309
289
|
{ path: "cart.createdDate" },
|
|
310
290
|
{ path: "cart.updatedDate" },
|
|
311
|
-
{
|
|
312
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
313
|
-
},
|
|
314
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
315
291
|
{
|
|
316
292
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
317
293
|
},
|
|
@@ -382,10 +358,6 @@ function refreshCurrentCart(payload) {
|
|
|
382
358
|
paths: [
|
|
383
359
|
{ path: "cart.createdDate" },
|
|
384
360
|
{ path: "cart.updatedDate" },
|
|
385
|
-
{
|
|
386
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
387
|
-
},
|
|
388
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
389
361
|
{
|
|
390
362
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
391
363
|
},
|
|
@@ -435,10 +407,6 @@ function calculateCurrentCart(payload) {
|
|
|
435
407
|
paths: [
|
|
436
408
|
{ path: "cart.createdDate" },
|
|
437
409
|
{ path: "cart.updatedDate" },
|
|
438
|
-
{
|
|
439
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
440
|
-
},
|
|
441
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
442
410
|
{
|
|
443
411
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
444
412
|
},
|
|
@@ -484,10 +452,6 @@ function addLineItemsToCurrentCart(payload) {
|
|
|
484
452
|
{
|
|
485
453
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
486
454
|
paths: [
|
|
487
|
-
{
|
|
488
|
-
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
489
|
-
},
|
|
490
|
-
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
491
455
|
{
|
|
492
456
|
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
493
457
|
},
|
|
@@ -515,10 +479,6 @@ function addLineItemsToCurrentCart(payload) {
|
|
|
515
479
|
paths: [
|
|
516
480
|
{ path: "cart.createdDate" },
|
|
517
481
|
{ path: "cart.updatedDate" },
|
|
518
|
-
{
|
|
519
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
520
|
-
},
|
|
521
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
522
482
|
{
|
|
523
483
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
524
484
|
},
|
|
@@ -568,10 +528,6 @@ function removeLineItemsFromCurrentCart(payload) {
|
|
|
568
528
|
paths: [
|
|
569
529
|
{ path: "cart.createdDate" },
|
|
570
530
|
{ path: "cart.updatedDate" },
|
|
571
|
-
{
|
|
572
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
573
|
-
},
|
|
574
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
575
531
|
{
|
|
576
532
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
577
533
|
},
|
|
@@ -621,10 +577,6 @@ function updateLineItemsInCurrentCart(payload) {
|
|
|
621
577
|
paths: [
|
|
622
578
|
{ path: "cart.createdDate" },
|
|
623
579
|
{ path: "cart.updatedDate" },
|
|
624
|
-
{
|
|
625
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
626
|
-
},
|
|
627
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
628
580
|
{
|
|
629
581
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
630
582
|
},
|
|
@@ -674,10 +626,6 @@ function addCouponToCurrentCart(payload) {
|
|
|
674
626
|
paths: [
|
|
675
627
|
{ path: "cart.createdDate" },
|
|
676
628
|
{ path: "cart.updatedDate" },
|
|
677
|
-
{
|
|
678
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
679
|
-
},
|
|
680
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
681
629
|
{
|
|
682
630
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
683
631
|
},
|
|
@@ -727,10 +675,6 @@ function removeCouponFromCurrentCart(payload) {
|
|
|
727
675
|
paths: [
|
|
728
676
|
{ path: "cart.createdDate" },
|
|
729
677
|
{ path: "cart.updatedDate" },
|
|
730
|
-
{
|
|
731
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
732
|
-
},
|
|
733
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
734
678
|
{
|
|
735
679
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
736
680
|
},
|
|
@@ -780,10 +724,6 @@ function addGiftCardToCurrentCart(payload) {
|
|
|
780
724
|
paths: [
|
|
781
725
|
{ path: "cart.createdDate" },
|
|
782
726
|
{ path: "cart.updatedDate" },
|
|
783
|
-
{
|
|
784
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
785
|
-
},
|
|
786
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
787
727
|
{
|
|
788
728
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
789
729
|
},
|
|
@@ -833,10 +773,6 @@ function removeGiftCardFromCurrentCart(payload) {
|
|
|
833
773
|
paths: [
|
|
834
774
|
{ path: "cart.createdDate" },
|
|
835
775
|
{ path: "cart.updatedDate" },
|
|
836
|
-
{
|
|
837
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
838
|
-
},
|
|
839
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
840
776
|
{
|
|
841
777
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
842
778
|
},
|
|
@@ -1292,6 +1228,7 @@ async function refreshCurrentCart2() {
|
|
|
1292
1228
|
async function calculateCurrentCart2(options) {
|
|
1293
1229
|
const { httpClient, sideEffects } = arguments[1];
|
|
1294
1230
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1231
|
+
refreshCart: options?.refreshCart,
|
|
1295
1232
|
validationsConfig: options?.validationsConfig,
|
|
1296
1233
|
customCalculationConfig: options?.customCalculationConfig
|
|
1297
1234
|
});
|
|
@@ -1328,6 +1265,7 @@ async function calculateCurrentCart2(options) {
|
|
|
1328
1265
|
{
|
|
1329
1266
|
spreadPathsToArguments: {},
|
|
1330
1267
|
explicitPathsToArguments: {
|
|
1268
|
+
refreshCart: "$[0].refreshCart",
|
|
1331
1269
|
validationsConfig: "$[0].validationsConfig",
|
|
1332
1270
|
customCalculationConfig: "$[0].customCalculationConfig"
|
|
1333
1271
|
},
|