@ecomiq/core 0.1.7 → 0.1.9

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 (87) hide show
  1. package/dist/{client-4ZTG2RZ3.d.ts → client-Ba1r_uiO.d.ts} +4 -4
  2. package/dist/{client-BpX4yR6S.d.cts → client-Cqcnv2tC.d.cts} +4 -4
  3. package/dist/client.cjs +94 -89
  4. package/dist/client.cjs.map +1 -1
  5. package/dist/client.d.cts +2 -2
  6. package/dist/client.d.ts +2 -2
  7. package/dist/client.js +94 -89
  8. package/dist/client.js.map +1 -1
  9. package/dist/index.cjs +96 -101
  10. package/dist/index.cjs.map +1 -1
  11. package/dist/index.d.cts +65 -55
  12. package/dist/index.d.ts +65 -55
  13. package/dist/index.js +95 -100
  14. package/dist/index.js.map +1 -1
  15. package/dist/models/collections.cjs +7 -1
  16. package/dist/models/collections.cjs.map +1 -1
  17. package/dist/models/collections.d.cts +6 -6
  18. package/dist/models/collections.d.ts +6 -6
  19. package/dist/models/collections.js +7 -1
  20. package/dist/models/collections.js.map +1 -1
  21. package/dist/models/customer-address.cjs +7 -1
  22. package/dist/models/customer-address.cjs.map +1 -1
  23. package/dist/models/customer-address.d.cts +4 -4
  24. package/dist/models/customer-address.d.ts +4 -4
  25. package/dist/models/customer-address.js +7 -1
  26. package/dist/models/customer-address.js.map +1 -1
  27. package/dist/models/customer-order.cjs +14 -8
  28. package/dist/models/customer-order.cjs.map +1 -1
  29. package/dist/models/customer-order.d.cts +1 -5
  30. package/dist/models/customer-order.d.ts +1 -5
  31. package/dist/models/customer-order.js +14 -8
  32. package/dist/models/customer-order.js.map +1 -1
  33. package/dist/models/customer-profile.cjs +8 -2
  34. package/dist/models/customer-profile.cjs.map +1 -1
  35. package/dist/models/customer-profile.d.cts +3 -3
  36. package/dist/models/customer-profile.d.ts +3 -3
  37. package/dist/models/customer-profile.js +8 -2
  38. package/dist/models/customer-profile.js.map +1 -1
  39. package/dist/models/geo.cjs +2 -4
  40. package/dist/models/geo.cjs.map +1 -1
  41. package/dist/models/geo.d.cts +14 -14
  42. package/dist/models/geo.d.ts +14 -14
  43. package/dist/models/geo.js +2 -4
  44. package/dist/models/geo.js.map +1 -1
  45. package/dist/models/ids.cjs +3 -4
  46. package/dist/models/ids.cjs.map +1 -1
  47. package/dist/models/ids.d.cts +8 -8
  48. package/dist/models/ids.d.ts +8 -8
  49. package/dist/models/ids.js +3 -5
  50. package/dist/models/ids.js.map +1 -1
  51. package/dist/models/products.cjs +12 -19
  52. package/dist/models/products.cjs.map +1 -1
  53. package/dist/models/products.d.cts +32 -33
  54. package/dist/models/products.d.ts +32 -33
  55. package/dist/models/products.js +13 -19
  56. package/dist/models/products.js.map +1 -1
  57. package/dist/models/search.cjs +3 -180
  58. package/dist/models/search.cjs.map +1 -1
  59. package/dist/models/search.d.cts +5 -5
  60. package/dist/models/search.d.ts +5 -5
  61. package/dist/models/search.js +3 -180
  62. package/dist/models/search.js.map +1 -1
  63. package/dist/models/settings.cjs +2 -4
  64. package/dist/models/settings.cjs.map +1 -1
  65. package/dist/models/settings.d.cts +63 -63
  66. package/dist/models/settings.d.ts +63 -63
  67. package/dist/models/settings.js +2 -4
  68. package/dist/models/settings.js.map +1 -1
  69. package/dist/models/storefront-cart.cjs +14 -26
  70. package/dist/models/storefront-cart.cjs.map +1 -1
  71. package/dist/models/storefront-cart.d.cts +100 -98
  72. package/dist/models/storefront-cart.d.ts +100 -98
  73. package/dist/models/storefront-cart.js +15 -26
  74. package/dist/models/storefront-cart.js.map +1 -1
  75. package/dist/models/storefront-checkout.cjs +44 -34
  76. package/dist/models/storefront-checkout.cjs.map +1 -1
  77. package/dist/models/storefront-checkout.d.cts +660 -2278
  78. package/dist/models/storefront-checkout.d.ts +660 -2278
  79. package/dist/models/storefront-checkout.js +44 -35
  80. package/dist/models/storefront-checkout.js.map +1 -1
  81. package/dist/models/storefront-reviews.cjs +8 -187
  82. package/dist/models/storefront-reviews.cjs.map +1 -1
  83. package/dist/models/storefront-reviews.d.cts +17 -17
  84. package/dist/models/storefront-reviews.d.ts +17 -17
  85. package/dist/models/storefront-reviews.js +8 -187
  86. package/dist/models/storefront-reviews.js.map +1 -1
  87. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -1,25 +1,25 @@
1
1
  import { Api } from './api.cjs';
2
2
  export { ApiError, CreateApiOptions, DEFAULT_API_BASE_URL, DEFAULT_API_VERSION, createApi, resolveApiBaseUrl } from './api.cjs';
3
- export { C as CreateClientOptions, a as CustomerAddressMutationResponse, b as CustomerAddressMutationResponseSchema, c as CustomerAddressRequestOptions, d as CustomerOrderRequestOptions, e as CustomerRequestOptions, S as StorefrontClient, f as createClient, g as createCustomerAddress, h as createStorefrontClient, i as deleteCustomerAddress, j as getCustomerAddresses, k as getCustomerMe, l as getCustomerOrder, m as getCustomerOrders, p as patchCustomer, r as registerCustomer, u as updateCustomerAddress } from './client-BpX4yR6S.cjs';
4
- export { EntityId, EntityIdSchema, NullableEntityIdSchema, OptionalEntityIdSchema } from './models/ids.cjs';
3
+ export { C as CreateClientOptions, a as CustomerAddressMutationResponse, b as CustomerAddressMutationResponseSchema, c as CustomerAddressRequestOptions, d as CustomerOrderRequestOptions, e as CustomerRequestOptions, S as StorefrontClient, f as createClient, g as createCustomerAddress, h as createStorefrontClient, i as deleteCustomerAddress, j as getCustomerAddresses, k as getCustomerMe, l as getCustomerOrder, m as getCustomerOrders, p as patchCustomer, r as registerCustomer, u as updateCustomerAddress } from './client-Cqcnv2tC.cjs';
4
+ export { CartToken, CartTokenSchema, EntityId, EntityIdSchema, NullableEntityIdSchema, OptionalEntityIdSchema } from './models/ids.cjs';
5
5
  import { CmsPageDetailsDto } from './models/settings.cjs';
6
6
  export { CmsBlockDto, CmsBlockDtoSchema, CmsBrandingSettingsDtoSchema, CmsContactSettingsDtoSchema, CmsContentChannelSchema, CmsCustomScriptsDtoSchema, CmsMenuDto, CmsMenuDtoSchema, CmsMenuItem, CmsMenuItemSchema, CmsPageDetailsDtoSchema, CmsPageStatusSchema, CmsSectionDto, CmsSectionDtoSchema, CmsSeoSettingsDtoSchema, CmsSiteSettingsDtoSchema, CmsSnapshotDto, CmsSnapshotDtoSchema, CmsSocialLinksDtoSchema, CmsTrackingSettingsDtoSchema, JsonElement, JsonElementSchema, StoreCheckoutCartPageSettingsSchema, StoreCheckoutGeneralSettingsSchema, StoreCheckoutOrderBumpSettingsSchema, StoreCheckoutOrdersAndPaymentsSettingsSchema, StoreCheckoutSettingsSchema, StoreCheckoutShippingSettingsSchema, StoreFeatureFlagsSchema, StoreModel, StoreModelSchema, StoreSettingsSnapshotDto, StoreSettingsSnapshotDtoSchema, StoreThemeSettingsSchema, StoreTypeSchema, StoreVisibilitySchema, StorefrontCheckoutSettingsSchema, StorefrontCmsBrandingSchema, StorefrontCmsContactSchema, StorefrontCmsCustomScriptsSchema, StorefrontCmsPageSchema, StorefrontCmsSeoSchema, StorefrontCmsSettingsSchema, StorefrontCmsSocialLinksSchema, StorefrontCmsTrackingSchema, StorefrontFeaturesEnabledSchema, StorefrontMenu, StorefrontMenuItem, StorefrontMenuItemSchema, StorefrontMenuSchema, StorefrontSettings, StorefrontSettingsSchema, StorefrontStoreSchema, StorefrontStoreTypeSchema, StorefrontThemeConfigSchema, getMenuItems } from './models/settings.cjs';
7
7
  export { Collection, CollectionSchema, Collections, CollectionsSchema } from './models/collections.cjs';
8
8
  import { ProductDetailParams, ProductsParamsInput, RelatedProductsParams } from './models/products.cjs';
9
- export { BundleItem, BundleItemSchema, Facet, FacetItem, FacetItemSchema, FacetSchema, PriceTier, PriceTierSchema, Product, ProductDetail, ProductDetailParamsSchema, ProductDetailSchema, ProductImage, ProductImageSchema, ProductPriceTier, ProductPriceTierSchema, ProductPublicIdSchema, ProductSchema, ProductSort, ProductSortSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, RelatedProductsParamsSchema, SearchFilter, SearchFilterSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, Variant, VariantItem, VariantItemSchema, VariantOption, VariantOptionSchema, VariantSchema } from './models/products.cjs';
9
+ export { BundleItem, BundleItemSchema, Facet, FacetItem, FacetItemSchema, FacetSchema, PriceTier, PriceTierSchema, Product, ProductDetail, ProductDetailParamsSchema, ProductDetailSchema, ProductImage, ProductImageSchema, ProductPriceTier, ProductPriceTierSchema, ProductSchema, ProductSort, ProductSortSchema, ProductSummariesSchema, ProductSummary, ProductSummarySchema, ProductsParams, ProductsParamsSchema, ProductsResponse, ProductsResponseSchema, RelatedProductsParamsSchema, SearchFilter, SearchFilterSchema, SizeGuide, SizeGuideMeasurement, SizeGuideMeasurementSchema, SizeGuideRow, SizeGuideRowSchema, SizeGuideSchema, SpecItem, SpecItemSchema, Variant, VariantItem, VariantItemSchema, VariantOption, VariantOptionSchema, VariantSchema } from './models/products.cjs';
10
10
  import { ProductAutocompleteParams } from './models/search.cjs';
11
11
  export { ProductAutocompleteParamsSchema, ProductSuggestion, ProductSuggestionSchema, ProductSuggestionsSchema } from './models/search.cjs';
12
12
  import { AddCartItemParams, CreateCartParams, GetCartParams, RemoveCartItemParams, UpdateCartItemQuantityParams } from './models/storefront-cart.cjs';
13
- export { AddCartItemParamsSchema, CartItemModifierSchema, CreateCartParamsSchema, GetCartParamsSchema, RemoveCartItemParamsSchema, StorefrontAddress, StorefrontAddressSchema, StorefrontCart, StorefrontCartBundleItem, StorefrontCartBundleItemSchema, StorefrontCartItem, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethod, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotals, StorefrontCartTotalsSchema, UpdateCartItemQuantityParamsSchema, cartVariantIdFromProduct } from './models/storefront-cart.cjs';
13
+ export { AddCartItemParamsSchema, CartItemModifierSchema, CreateCartParamsSchema, GetCartParamsSchema, RemoveCartItemParamsSchema, StorefrontAddress, StorefrontAddressSchema, StorefrontCart, StorefrontCartBundleItem, StorefrontCartBundleItemSchema, StorefrontCartItem, StorefrontCartItemSchema, StorefrontCartSchema, StorefrontCartShippingMethod, StorefrontCartShippingMethodSchema, StorefrontCartStatusSchema, StorefrontCartTotals, StorefrontCartTotalsSchema, UpdateCartItemQuantityParamsSchema } from './models/storefront-cart.cjs';
14
14
  import { CartPromotionCodeParams, CartCheckoutParams, CartCheckoutResponse, CartCheckoutReadParams, CartCheckoutReadResponse, GetShippingOptionsParams, ShippingOptionsResponse, CartAddressesParams, CartBuyerParams, PutShippingMethodParams, UploadPaymentReceiptParams, CartPaymentReceiptResponse } from './models/storefront-checkout.cjs';
15
- export { CartAddressWrite, CartAddressWriteSchema, CartAddressesParamsSchema, CartBuyerParamsSchema, CartCheckoutParamsSchema, CartCheckoutPayment, CartCheckoutPaymentActionSchema, CartCheckoutPaymentSchema, CartCheckoutReadParamsSchema, CartCheckoutReadResponseSchema, CartCheckoutResponseSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentReceiptResponseSchema, CartPromotionCodeParamsSchema, GetShippingOptionsParamsSchema, PutShippingMethodParamsSchema, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, StorefrontOrderBump, StorefrontOrderBumpSchema } from './models/storefront-checkout.cjs';
15
+ export { CartAddressWrite, CartAddressWriteSchema, CartAddressesParamsSchema, CartBuyerParamsSchema, CartCheckoutParamsSchema, CartCheckoutPayment, CartCheckoutPaymentActionSchema, CartCheckoutPaymentSchema, CartCheckoutReadParamsSchema, CartCheckoutReadResponseSchema, CartCheckoutResponseSchema, CartPaymentMethod, CartPaymentMethodSchema, CartPaymentReceiptResponseSchema, CartPromotionCodeParamsSchema, CheckoutMetadataValue, CheckoutMetadataValueSchema, GetShippingOptionsParamsSchema, PutShippingMethodParamsSchema, ShippingOptionGroup, ShippingOptionGroupSchema, ShippingOptionsResponseSchema, ShippingRate, ShippingRateSchema, StorefrontOrderBump, StorefrontOrderBumpSchema } from './models/storefront-checkout.cjs';
16
16
  import { CreateProductReviewParams, ListProductReviewsParams } from './models/storefront-reviews.cjs';
17
17
  export { CreateProductReviewParamsSchema, ListProductReviewsParamsSchema, StorefrontReview, StorefrontReviewSchema, StorefrontReviews, StorefrontReviewsSchema } from './models/storefront-reviews.cjs';
18
18
  import { Countries, GetDepartmentsParams, Departments, GetDistrictsParams, Districts, GetProvincesParams, Provinces } from './models/geo.cjs';
19
19
  export { CountriesSchema, Country, CountrySchema, Department, DepartmentSchema, DepartmentsSchema, District, DistrictSchema, DistrictsSchema, GeoDivision, GeoDivisionSchema, GeoDivisionType, GeoDivisionTypeSchema, GetDepartmentsParamsParsed, GetDepartmentsParamsSchema, GetDistrictsParamsParsed, GetDistrictsParamsSchema, GetProvincesParamsParsed, GetProvincesParamsSchema, Province, ProvinceSchema, ProvincesSchema } from './models/geo.cjs';
20
20
  export { CustomerAddress, CustomerAddressSchema, CustomerAddressUpsertInput, CustomerAddressUpsertInputSchema, CustomerAddresses, CustomerAddressesSchema, CustomerSavedAddress, toCustomerSavedAddresses } from './models/customer-address.cjs';
21
21
  export { CustomerMe, CustomerMeSchema, CustomerProfile, CustomerProfilePatch, CustomerProfilePatchSchema, CustomerProfileSchema, CustomerRegisterRequest, CustomerRegisterRequestSchema, customerMeToProfile, customerMeToProfilePatch, customerProfileToPatch } from './models/customer-profile.cjs';
22
- export { CustomerOrderDetail, CustomerOrderDetailDto, CustomerOrderDetailSchema, CustomerOrderLineItem, CustomerOrderLineItemSchema, CustomerOrderList, CustomerOrderListItem, CustomerOrderListItemDto, CustomerOrderListItemSchema, CustomerOrderListSchema, CustomerOrderPayment, CustomerOrderPaymentSchema, CustomerOrderShippingAddress, CustomerOrderShippingAddressSchema, CustomerOrderStatusTimelineEntry, CustomerOrderStatusTimelineSchema, customerOrderStatusTone, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime } from './models/customer-order.cjs';
22
+ export { CustomerOrderDetail, CustomerOrderDetailSchema, CustomerOrderLineItem, CustomerOrderLineItemSchema, CustomerOrderList, CustomerOrderListItem, CustomerOrderListItemSchema, CustomerOrderListSchema, CustomerOrderPayment, CustomerOrderPaymentSchema, CustomerOrderShippingAddress, CustomerOrderShippingAddressSchema, CustomerOrderStatusTimelineEntry, CustomerOrderStatusTimelineSchema, customerOrderStatusTone, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime } from './models/customer-order.cjs';
23
23
  import 'zod';
24
24
 
25
25
  declare function getProducts(api: Api, params?: ProductsParamsInput): Promise<{
@@ -207,6 +207,7 @@ declare function createCart(api: Api, params: CreateCartParams): Promise<{
207
207
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
208
208
  id: string;
209
209
  phone: string | null;
210
+ token: string;
210
211
  cartNumber: string;
211
212
  email: string | null;
212
213
  firstName: string | null;
@@ -244,17 +245,17 @@ declare function createCart(api: Api, params: CreateCartParams): Promise<{
244
245
  promotionCodes: string[];
245
246
  items: {
246
247
  id: string;
247
- productId: number;
248
+ productId: string | null;
248
249
  quantity: number;
249
- variantId: number;
250
+ variantId: string | null;
250
251
  unitPrice: number;
251
252
  bundleItems: {
252
253
  imageUrl: string | null;
253
254
  brand: string | null;
254
- productId: number;
255
+ productId: string;
255
256
  sku: string | null;
256
257
  quantity: number;
257
- variantId: number;
258
+ variantId: string;
258
259
  productName: string;
259
260
  variantName: string | null;
260
261
  }[];
@@ -295,6 +296,7 @@ declare function getCart(api: Api, params: GetCartParams): Promise<{
295
296
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
296
297
  id: string;
297
298
  phone: string | null;
299
+ token: string;
298
300
  cartNumber: string;
299
301
  email: string | null;
300
302
  firstName: string | null;
@@ -332,17 +334,17 @@ declare function getCart(api: Api, params: GetCartParams): Promise<{
332
334
  promotionCodes: string[];
333
335
  items: {
334
336
  id: string;
335
- productId: number;
337
+ productId: string | null;
336
338
  quantity: number;
337
- variantId: number;
339
+ variantId: string | null;
338
340
  unitPrice: number;
339
341
  bundleItems: {
340
342
  imageUrl: string | null;
341
343
  brand: string | null;
342
- productId: number;
344
+ productId: string;
343
345
  sku: string | null;
344
346
  quantity: number;
345
- variantId: number;
347
+ variantId: string;
346
348
  productName: string;
347
349
  variantName: string | null;
348
350
  }[];
@@ -383,6 +385,7 @@ declare function addCartItem(api: Api, params: AddCartItemParams): Promise<{
383
385
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
384
386
  id: string;
385
387
  phone: string | null;
388
+ token: string;
386
389
  cartNumber: string;
387
390
  email: string | null;
388
391
  firstName: string | null;
@@ -420,17 +423,17 @@ declare function addCartItem(api: Api, params: AddCartItemParams): Promise<{
420
423
  promotionCodes: string[];
421
424
  items: {
422
425
  id: string;
423
- productId: number;
426
+ productId: string | null;
424
427
  quantity: number;
425
- variantId: number;
428
+ variantId: string | null;
426
429
  unitPrice: number;
427
430
  bundleItems: {
428
431
  imageUrl: string | null;
429
432
  brand: string | null;
430
- productId: number;
433
+ productId: string;
431
434
  sku: string | null;
432
435
  quantity: number;
433
- variantId: number;
436
+ variantId: string;
434
437
  productName: string;
435
438
  variantName: string | null;
436
439
  }[];
@@ -471,6 +474,7 @@ declare function updateCartItemQuantity(api: Api, params: UpdateCartItemQuantity
471
474
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
472
475
  id: string;
473
476
  phone: string | null;
477
+ token: string;
474
478
  cartNumber: string;
475
479
  email: string | null;
476
480
  firstName: string | null;
@@ -508,17 +512,17 @@ declare function updateCartItemQuantity(api: Api, params: UpdateCartItemQuantity
508
512
  promotionCodes: string[];
509
513
  items: {
510
514
  id: string;
511
- productId: number;
515
+ productId: string | null;
512
516
  quantity: number;
513
- variantId: number;
517
+ variantId: string | null;
514
518
  unitPrice: number;
515
519
  bundleItems: {
516
520
  imageUrl: string | null;
517
521
  brand: string | null;
518
- productId: number;
522
+ productId: string;
519
523
  sku: string | null;
520
524
  quantity: number;
521
- variantId: number;
525
+ variantId: string;
522
526
  productName: string;
523
527
  variantName: string | null;
524
528
  }[];
@@ -559,6 +563,7 @@ declare function removeCartItem(api: Api, params: RemoveCartItemParams): Promise
559
563
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
560
564
  id: string;
561
565
  phone: string | null;
566
+ token: string;
562
567
  cartNumber: string;
563
568
  email: string | null;
564
569
  firstName: string | null;
@@ -596,17 +601,17 @@ declare function removeCartItem(api: Api, params: RemoveCartItemParams): Promise
596
601
  promotionCodes: string[];
597
602
  items: {
598
603
  id: string;
599
- productId: number;
604
+ productId: string | null;
600
605
  quantity: number;
601
- variantId: number;
606
+ variantId: string | null;
602
607
  unitPrice: number;
603
608
  bundleItems: {
604
609
  imageUrl: string | null;
605
610
  brand: string | null;
606
- productId: number;
611
+ productId: string;
607
612
  sku: string | null;
608
613
  quantity: number;
609
- variantId: number;
614
+ variantId: string;
610
615
  productName: string;
611
616
  variantName: string | null;
612
617
  }[];
@@ -644,15 +649,16 @@ declare function removeCartItem(api: Api, params: RemoveCartItemParams): Promise
644
649
  };
645
650
  }>;
646
651
 
647
- /** GET /v1/carts/{id}/checkout */
652
+ /** GET /v1/carts/{cartToken}/checkout */
648
653
  declare function getCartCheckout(api: Api, params: CartCheckoutReadParams): Promise<CartCheckoutReadResponse>;
649
- /** GET /v1/carts/{id}/shipping-options?postalCode= */
654
+ /** GET /v1/carts/{cartToken}/shipping-options?postalCode= */
650
655
  declare function getShippingOptions(api: Api, params: GetShippingOptionsParams): Promise<ShippingOptionsResponse>;
651
- /** PUT /v1/carts/{id}/shipping-method */
656
+ /** PUT /v1/carts/{cartToken}/shipping-method */
652
657
  declare function putCartShippingMethod(api: Api, params: PutShippingMethodParams): Promise<{
653
658
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
654
659
  id: string;
655
660
  phone: string | null;
661
+ token: string;
656
662
  cartNumber: string;
657
663
  email: string | null;
658
664
  firstName: string | null;
@@ -690,17 +696,17 @@ declare function putCartShippingMethod(api: Api, params: PutShippingMethodParams
690
696
  promotionCodes: string[];
691
697
  items: {
692
698
  id: string;
693
- productId: number;
699
+ productId: string | null;
694
700
  quantity: number;
695
- variantId: number;
701
+ variantId: string | null;
696
702
  unitPrice: number;
697
703
  bundleItems: {
698
704
  imageUrl: string | null;
699
705
  brand: string | null;
700
- productId: number;
706
+ productId: string;
701
707
  sku: string | null;
702
708
  quantity: number;
703
- variantId: number;
709
+ variantId: string;
704
710
  productName: string;
705
711
  variantName: string | null;
706
712
  }[];
@@ -737,11 +743,12 @@ declare function putCartShippingMethod(api: Api, params: PutShippingMethodParams
737
743
  warrantyTotal: number;
738
744
  };
739
745
  }>;
740
- /** PATCH /v1/carts/{id}/buyer */
746
+ /** PATCH /v1/carts/{cartToken}/buyer */
741
747
  declare function patchCartBuyer(api: Api, params: CartBuyerParams): Promise<{
742
748
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
743
749
  id: string;
744
750
  phone: string | null;
751
+ token: string;
745
752
  cartNumber: string;
746
753
  email: string | null;
747
754
  firstName: string | null;
@@ -779,17 +786,17 @@ declare function patchCartBuyer(api: Api, params: CartBuyerParams): Promise<{
779
786
  promotionCodes: string[];
780
787
  items: {
781
788
  id: string;
782
- productId: number;
789
+ productId: string | null;
783
790
  quantity: number;
784
- variantId: number;
791
+ variantId: string | null;
785
792
  unitPrice: number;
786
793
  bundleItems: {
787
794
  imageUrl: string | null;
788
795
  brand: string | null;
789
- productId: number;
796
+ productId: string;
790
797
  sku: string | null;
791
798
  quantity: number;
792
- variantId: number;
799
+ variantId: string;
793
800
  productName: string;
794
801
  variantName: string | null;
795
802
  }[];
@@ -826,11 +833,12 @@ declare function patchCartBuyer(api: Api, params: CartBuyerParams): Promise<{
826
833
  warrantyTotal: number;
827
834
  };
828
835
  }>;
829
- /** PATCH /v1/carts/{id}/addresses */
836
+ /** PATCH /v1/carts/{cartToken}/addresses */
830
837
  declare function patchCartAddresses(api: Api, params: CartAddressesParams): Promise<{
831
838
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
832
839
  id: string;
833
840
  phone: string | null;
841
+ token: string;
834
842
  cartNumber: string;
835
843
  email: string | null;
836
844
  firstName: string | null;
@@ -868,17 +876,17 @@ declare function patchCartAddresses(api: Api, params: CartAddressesParams): Prom
868
876
  promotionCodes: string[];
869
877
  items: {
870
878
  id: string;
871
- productId: number;
879
+ productId: string | null;
872
880
  quantity: number;
873
- variantId: number;
881
+ variantId: string | null;
874
882
  unitPrice: number;
875
883
  bundleItems: {
876
884
  imageUrl: string | null;
877
885
  brand: string | null;
878
- productId: number;
886
+ productId: string;
879
887
  sku: string | null;
880
888
  quantity: number;
881
- variantId: number;
889
+ variantId: string;
882
890
  productName: string;
883
891
  variantName: string | null;
884
892
  }[];
@@ -915,15 +923,16 @@ declare function patchCartAddresses(api: Api, params: CartAddressesParams): Prom
915
923
  warrantyTotal: number;
916
924
  };
917
925
  }>;
918
- /** POST /v1/carts/{id}/checkout */
926
+ /** POST /v1/carts/{cartToken}/checkout */
919
927
  declare function checkoutCart(api: Api, params: CartCheckoutParams): Promise<CartCheckoutResponse>;
920
- /** POST /v1/carts/{id}/payment-receipt (multipart) */
928
+ /** POST /v1/carts/{cartToken}/payment-receipt (multipart) */
921
929
  declare function uploadPaymentReceipt(api: Api, params: UploadPaymentReceiptParams): Promise<CartPaymentReceiptResponse>;
922
- /** POST /v1/carts/{id}/promotion-codes */
930
+ /** POST /v1/carts/{cartToken}/promotion-codes */
923
931
  declare function addCartPromotionCode(api: Api, params: CartPromotionCodeParams): Promise<{
924
932
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
925
933
  id: string;
926
934
  phone: string | null;
935
+ token: string;
927
936
  cartNumber: string;
928
937
  email: string | null;
929
938
  firstName: string | null;
@@ -961,17 +970,17 @@ declare function addCartPromotionCode(api: Api, params: CartPromotionCodeParams)
961
970
  promotionCodes: string[];
962
971
  items: {
963
972
  id: string;
964
- productId: number;
973
+ productId: string | null;
965
974
  quantity: number;
966
- variantId: number;
975
+ variantId: string | null;
967
976
  unitPrice: number;
968
977
  bundleItems: {
969
978
  imageUrl: string | null;
970
979
  brand: string | null;
971
- productId: number;
980
+ productId: string;
972
981
  sku: string | null;
973
982
  quantity: number;
974
- variantId: number;
983
+ variantId: string;
975
984
  productName: string;
976
985
  variantName: string | null;
977
986
  }[];
@@ -1008,11 +1017,12 @@ declare function addCartPromotionCode(api: Api, params: CartPromotionCodeParams)
1008
1017
  warrantyTotal: number;
1009
1018
  };
1010
1019
  }>;
1011
- /** DELETE /v1/carts/{id}/promotion-codes/{code} */
1020
+ /** DELETE /v1/carts/{cartToken}/promotion-codes/{code} */
1012
1021
  declare function removeCartPromotionCode(api: Api, params: CartPromotionCodeParams): Promise<{
1013
1022
  status: "inProgress" | "pending" | "completed" | "abandoned" | "cancelled" | "expired" | "failed";
1014
1023
  id: string;
1015
1024
  phone: string | null;
1025
+ token: string;
1016
1026
  cartNumber: string;
1017
1027
  email: string | null;
1018
1028
  firstName: string | null;
@@ -1050,17 +1060,17 @@ declare function removeCartPromotionCode(api: Api, params: CartPromotionCodePara
1050
1060
  promotionCodes: string[];
1051
1061
  items: {
1052
1062
  id: string;
1053
- productId: number;
1063
+ productId: string | null;
1054
1064
  quantity: number;
1055
- variantId: number;
1065
+ variantId: string | null;
1056
1066
  unitPrice: number;
1057
1067
  bundleItems: {
1058
1068
  imageUrl: string | null;
1059
1069
  brand: string | null;
1060
- productId: number;
1070
+ productId: string;
1061
1071
  sku: string | null;
1062
1072
  quantity: number;
1063
- variantId: number;
1073
+ variantId: string;
1064
1074
  productName: string;
1065
1075
  variantName: string | null;
1066
1076
  }[];