@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.js';
|
|
@@ -166,18 +166,10 @@ function createCurrentCart(payload) {
|
|
|
166
166
|
paths: [
|
|
167
167
|
{ path: "cart.createdDate" },
|
|
168
168
|
{ path: "cart.updatedDate" },
|
|
169
|
-
{
|
|
170
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
171
|
-
},
|
|
172
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
173
169
|
{
|
|
174
170
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
175
171
|
},
|
|
176
172
|
{ path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
|
|
177
|
-
{
|
|
178
|
-
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
179
|
-
},
|
|
180
|
-
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
181
173
|
{
|
|
182
174
|
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
183
175
|
},
|
|
@@ -222,10 +214,6 @@ function createCurrentCart(payload) {
|
|
|
222
214
|
paths: [
|
|
223
215
|
{ path: "cart.createdDate" },
|
|
224
216
|
{ path: "cart.updatedDate" },
|
|
225
|
-
{
|
|
226
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
227
|
-
},
|
|
228
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
229
217
|
{
|
|
230
218
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
231
219
|
},
|
|
@@ -275,10 +263,6 @@ function getCurrentCart(payload) {
|
|
|
275
263
|
paths: [
|
|
276
264
|
{ path: "cart.createdDate" },
|
|
277
265
|
{ path: "cart.updatedDate" },
|
|
278
|
-
{
|
|
279
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
280
|
-
},
|
|
281
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
282
266
|
{
|
|
283
267
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
284
268
|
},
|
|
@@ -318,10 +302,6 @@ function updateCurrentCart(payload) {
|
|
|
318
302
|
paths: [
|
|
319
303
|
{ path: "cart.createdDate" },
|
|
320
304
|
{ path: "cart.updatedDate" },
|
|
321
|
-
{
|
|
322
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
323
|
-
},
|
|
324
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
325
305
|
{
|
|
326
306
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
327
307
|
},
|
|
@@ -362,10 +342,6 @@ function updateCurrentCart(payload) {
|
|
|
362
342
|
paths: [
|
|
363
343
|
{ path: "cart.createdDate" },
|
|
364
344
|
{ path: "cart.updatedDate" },
|
|
365
|
-
{
|
|
366
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
367
|
-
},
|
|
368
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
369
345
|
{
|
|
370
346
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
371
347
|
},
|
|
@@ -436,10 +412,6 @@ function refreshCurrentCart(payload) {
|
|
|
436
412
|
paths: [
|
|
437
413
|
{ path: "cart.createdDate" },
|
|
438
414
|
{ path: "cart.updatedDate" },
|
|
439
|
-
{
|
|
440
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
441
|
-
},
|
|
442
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
443
415
|
{
|
|
444
416
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
445
417
|
},
|
|
@@ -489,10 +461,6 @@ function calculateCurrentCart(payload) {
|
|
|
489
461
|
paths: [
|
|
490
462
|
{ path: "cart.createdDate" },
|
|
491
463
|
{ path: "cart.updatedDate" },
|
|
492
|
-
{
|
|
493
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
494
|
-
},
|
|
495
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
496
464
|
{
|
|
497
465
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
498
466
|
},
|
|
@@ -538,10 +506,6 @@ function addLineItemsToCurrentCart(payload) {
|
|
|
538
506
|
{
|
|
539
507
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
540
508
|
paths: [
|
|
541
|
-
{
|
|
542
|
-
path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
|
|
543
|
-
},
|
|
544
|
-
{ path: "customItems.attributes.image.urlExpirationDate" },
|
|
545
509
|
{
|
|
546
510
|
path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
547
511
|
},
|
|
@@ -569,10 +533,6 @@ function addLineItemsToCurrentCart(payload) {
|
|
|
569
533
|
paths: [
|
|
570
534
|
{ path: "cart.createdDate" },
|
|
571
535
|
{ path: "cart.updatedDate" },
|
|
572
|
-
{
|
|
573
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
574
|
-
},
|
|
575
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
576
536
|
{
|
|
577
537
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
578
538
|
},
|
|
@@ -622,10 +582,6 @@ function removeLineItemsFromCurrentCart(payload) {
|
|
|
622
582
|
paths: [
|
|
623
583
|
{ path: "cart.createdDate" },
|
|
624
584
|
{ path: "cart.updatedDate" },
|
|
625
|
-
{
|
|
626
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
627
|
-
},
|
|
628
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
629
585
|
{
|
|
630
586
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
631
587
|
},
|
|
@@ -675,10 +631,6 @@ function updateLineItemsInCurrentCart(payload) {
|
|
|
675
631
|
paths: [
|
|
676
632
|
{ path: "cart.createdDate" },
|
|
677
633
|
{ path: "cart.updatedDate" },
|
|
678
|
-
{
|
|
679
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
680
|
-
},
|
|
681
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
682
634
|
{
|
|
683
635
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
684
636
|
},
|
|
@@ -728,10 +680,6 @@ function addCouponToCurrentCart(payload) {
|
|
|
728
680
|
paths: [
|
|
729
681
|
{ path: "cart.createdDate" },
|
|
730
682
|
{ path: "cart.updatedDate" },
|
|
731
|
-
{
|
|
732
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
733
|
-
},
|
|
734
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
735
683
|
{
|
|
736
684
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
737
685
|
},
|
|
@@ -781,10 +729,6 @@ function removeCouponFromCurrentCart(payload) {
|
|
|
781
729
|
paths: [
|
|
782
730
|
{ path: "cart.createdDate" },
|
|
783
731
|
{ path: "cart.updatedDate" },
|
|
784
|
-
{
|
|
785
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
786
|
-
},
|
|
787
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
788
732
|
{
|
|
789
733
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
790
734
|
},
|
|
@@ -834,10 +778,6 @@ function addGiftCardToCurrentCart(payload) {
|
|
|
834
778
|
paths: [
|
|
835
779
|
{ path: "cart.createdDate" },
|
|
836
780
|
{ path: "cart.updatedDate" },
|
|
837
|
-
{
|
|
838
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
839
|
-
},
|
|
840
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
841
781
|
{
|
|
842
782
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
843
783
|
},
|
|
@@ -887,10 +827,6 @@ function removeGiftCardFromCurrentCart(payload) {
|
|
|
887
827
|
paths: [
|
|
888
828
|
{ path: "cart.createdDate" },
|
|
889
829
|
{ path: "cart.updatedDate" },
|
|
890
|
-
{
|
|
891
|
-
path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
|
|
892
|
-
},
|
|
893
|
-
{ path: "cart.lineItems.attributes.image.urlExpirationDate" },
|
|
894
830
|
{
|
|
895
831
|
path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
|
|
896
832
|
},
|
|
@@ -1346,6 +1282,7 @@ async function refreshCurrentCart2() {
|
|
|
1346
1282
|
async function calculateCurrentCart2(options) {
|
|
1347
1283
|
const { httpClient, sideEffects } = arguments[1];
|
|
1348
1284
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1285
|
+
refreshCart: options?.refreshCart,
|
|
1349
1286
|
validationsConfig: options?.validationsConfig,
|
|
1350
1287
|
customCalculationConfig: options?.customCalculationConfig
|
|
1351
1288
|
});
|
|
@@ -1382,6 +1319,7 @@ async function calculateCurrentCart2(options) {
|
|
|
1382
1319
|
{
|
|
1383
1320
|
spreadPathsToArguments: {},
|
|
1384
1321
|
explicitPathsToArguments: {
|
|
1322
|
+
refreshCart: "$[0].refreshCart",
|
|
1385
1323
|
validationsConfig: "$[0].validationsConfig",
|
|
1386
1324
|
customCalculationConfig: "$[0].customCalculationConfig"
|
|
1387
1325
|
},
|