@ecomiq/core 0.1.9 → 1.1.0

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 (278) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +39 -2
  3. package/dist/_virtual/_rolldown/runtime-C6LprzCP.cjs +22 -0
  4. package/dist/api.cjs +117 -102
  5. package/dist/api.d.cts +33 -37
  6. package/dist/api.d.ts +33 -37
  7. package/dist/api.js +116 -100
  8. package/dist/client.cjs +499 -1676
  9. package/dist/client.d.cts +156 -15
  10. package/dist/client.d.ts +156 -15
  11. package/dist/client.js +500 -1675
  12. package/dist/index.cjs +344 -2092
  13. package/dist/index.d.cts +54 -1127
  14. package/dist/index.d.ts +54 -1127
  15. package/dist/index.js +53 -1895
  16. package/dist/libs/bounded-read-cache-Abmb5VnJ.js +41 -0
  17. package/dist/libs/bounded-read-cache-D4644LJo.cjs +41 -0
  18. package/dist/libs/catalog-link-key-B7l5KZsF.js +9 -0
  19. package/dist/libs/catalog-link-key-CZTHJBGD.cjs +9 -0
  20. package/dist/libs/catalog-link-key.d.cts +2 -0
  21. package/dist/libs/catalog-link-key.d.ts +2 -0
  22. package/dist/libs/graphql-_6Y8lR_Q.js +49 -0
  23. package/dist/libs/graphql-selection-Cj51WkJn.cjs +21 -0
  24. package/dist/libs/graphql-selection-H1RMh6VD.js +21 -0
  25. package/dist/libs/graphql-selection.d.cts +3 -0
  26. package/dist/libs/graphql-selection.d.ts +3 -0
  27. package/dist/libs/graphql-wJH7HaQU.cjs +50 -0
  28. package/dist/libs/graphql.d.cts +24 -0
  29. package/dist/libs/graphql.d.ts +24 -0
  30. package/dist/models/amounts-cKBCecl7.js +5 -0
  31. package/dist/models/amounts-lmg89eJQ.cjs +4 -0
  32. package/dist/models/articles-C-4JvT2Z.js +27 -0
  33. package/dist/models/articles-xHCXLKDK.cjs +30 -0
  34. package/dist/models/articles.d.cts +46 -0
  35. package/dist/models/articles.d.ts +46 -0
  36. package/dist/models/catalog-links-BzJeyBy4.js +80 -0
  37. package/dist/models/catalog-links-c4LADGf_.cjs +88 -0
  38. package/dist/models/catalog-links.d.cts +39 -0
  39. package/dist/models/catalog-links.d.ts +39 -0
  40. package/dist/models/categories-CKkJY8_P.js +42 -0
  41. package/dist/models/categories-DZ5i5kwi.cjs +45 -0
  42. package/dist/models/categories.d.cts +54 -0
  43. package/dist/models/categories.d.ts +54 -0
  44. package/dist/models/collections.cjs +13 -22
  45. package/dist/models/collections.d.cts +23 -56
  46. package/dist/models/collections.d.ts +23 -56
  47. package/dist/models/collections.js +12 -20
  48. package/dist/models/complaint-book-D5INpuI2.cjs +64 -0
  49. package/dist/models/complaint-book-QpQZe7Xl.js +58 -0
  50. package/dist/models/complaint-book.d.cts +71 -0
  51. package/dist/models/complaint-book.d.ts +71 -0
  52. package/dist/models/customer-address.cjs +39 -38
  53. package/dist/models/customer-address.d.cts +59 -158
  54. package/dist/models/customer-address.d.ts +59 -158
  55. package/dist/models/customer-address.js +38 -36
  56. package/dist/models/customer-order.cjs +183 -142
  57. package/dist/models/customer-order.d.cts +474 -857
  58. package/dist/models/customer-order.d.ts +474 -857
  59. package/dist/models/customer-order.js +180 -141
  60. package/dist/models/customer-profile.cjs +121 -118
  61. package/dist/models/customer-profile.d.cts +89 -174
  62. package/dist/models/customer-profile.d.ts +89 -174
  63. package/dist/models/customer-profile.js +121 -116
  64. package/dist/models/customer-registration-C13knqyv.js +28 -0
  65. package/dist/models/customer-registration-EZ0yZgGr.cjs +31 -0
  66. package/dist/models/customer-registration.d.cts +66 -0
  67. package/dist/models/customer-registration.d.ts +66 -0
  68. package/dist/models/customer-session-BiX0TXhO.js +41 -0
  69. package/dist/models/customer-session-JeQiC8Yx.cjs +45 -0
  70. package/dist/models/customer-session.d.cts +61 -0
  71. package/dist/models/customer-session.d.ts +61 -0
  72. package/dist/models/geo.cjs +52 -49
  73. package/dist/models/geo.d.cts +141 -270
  74. package/dist/models/geo.d.ts +141 -270
  75. package/dist/models/geo.js +51 -47
  76. package/dist/models/ids.cjs +8 -11
  77. package/dist/models/ids.d.cts +7 -10
  78. package/dist/models/ids.d.ts +7 -10
  79. package/dist/models/ids.js +7 -9
  80. package/dist/models/order-draft-C-2WRbjl.cjs +41 -0
  81. package/dist/models/order-draft-CSIWRIV0.js +39 -0
  82. package/dist/models/order-draft.d.cts +69 -0
  83. package/dist/models/order-draft.d.ts +69 -0
  84. package/dist/models/order-review--xGlZKtS.cjs +18 -0
  85. package/dist/models/order-review-egGeCaqB.js +17 -0
  86. package/dist/models/order-review.d.cts +22 -0
  87. package/dist/models/order-review.d.ts +22 -0
  88. package/dist/models/order-status-CS_OeSPY.cjs +66 -0
  89. package/dist/models/order-status-CgaLkU0M.js +60 -0
  90. package/dist/models/order-status.d.cts +307 -0
  91. package/dist/models/order-status.d.ts +307 -0
  92. package/dist/models/payment-methods--VUUZpMz.js +17 -0
  93. package/dist/models/payment-methods-CmK08zBM.cjs +19 -0
  94. package/dist/models/payment-methods.d.cts +28 -0
  95. package/dist/models/payment-methods.d.ts +28 -0
  96. package/dist/models/personalization-BPFmkdJ0.js +69 -0
  97. package/dist/models/personalization-CQosKg8O.cjs +77 -0
  98. package/dist/models/personalization.d.cts +83 -0
  99. package/dist/models/personalization.d.ts +83 -0
  100. package/dist/models/products.cjs +218 -194
  101. package/dist/models/products.d.cts +646 -1353
  102. package/dist/models/products.d.ts +646 -1353
  103. package/dist/models/products.js +214 -187
  104. package/dist/models/search.cjs +13 -23
  105. package/dist/models/search.d.cts +21 -51
  106. package/dist/models/search.d.ts +21 -51
  107. package/dist/models/search.js +12 -21
  108. package/dist/models/sellers.cjs +44 -0
  109. package/dist/models/sellers.d.cts +82 -0
  110. package/dist/models/sellers.d.ts +82 -0
  111. package/dist/models/sellers.js +38 -0
  112. package/dist/models/settings.cjs +205 -236
  113. package/dist/models/settings.d.cts +853 -6940
  114. package/dist/models/settings.d.ts +853 -6940
  115. package/dist/models/settings.js +213 -239
  116. package/dist/models/storefront-cart.cjs +152 -118
  117. package/dist/models/storefront-cart.d.cts +277 -706
  118. package/dist/models/storefront-cart.d.ts +277 -706
  119. package/dist/models/storefront-cart.js +148 -117
  120. package/dist/models/storefront-checkout.cjs +212 -297
  121. package/dist/models/storefront-checkout.d.cts +672 -2449
  122. package/dist/models/storefront-checkout.d.ts +672 -2449
  123. package/dist/models/storefront-checkout.js +208 -297
  124. package/dist/models/storefront-reviews.cjs +58 -43
  125. package/dist/models/storefront-reviews.d.cts +71 -139
  126. package/dist/models/storefront-reviews.d.ts +71 -139
  127. package/dist/models/storefront-reviews.js +55 -42
  128. package/dist/models/tracking-CiIAhQW0.js +33 -0
  129. package/dist/models/tracking-wNyzQ6Bp.cjs +36 -0
  130. package/dist/models/tracking.d.cts +26 -0
  131. package/dist/models/tracking.d.ts +26 -0
  132. package/dist/models/urls-B0ZODOwH.cjs +35 -0
  133. package/dist/models/urls-Dt_dTt4Q.js +33 -0
  134. package/dist/models/urls.d.cts +233 -0
  135. package/dist/models/urls.d.ts +233 -0
  136. package/dist/redirects.cjs +113 -0
  137. package/dist/redirects.d.cts +11 -0
  138. package/dist/redirects.d.ts +11 -0
  139. package/dist/redirects.js +108 -0
  140. package/dist/services/article.service-DBsOvflH.js +10 -0
  141. package/dist/services/article.service-zmTkbbPV.cjs +11 -0
  142. package/dist/services/article.service.d.cts +4 -0
  143. package/dist/services/article.service.d.ts +4 -0
  144. package/dist/services/cart.service-B0D8s6jI.cjs +37 -0
  145. package/dist/services/cart.service-yMCz9oQP.js +33 -0
  146. package/dist/services/cart.service.d.cts +572 -0
  147. package/dist/services/cart.service.d.ts +572 -0
  148. package/dist/services/catalog-link.service-BQ2d-EPX.js +8 -0
  149. package/dist/services/catalog-link.service-DiB-OVjn.cjs +8 -0
  150. package/dist/services/category.service-8tieYX2r.js +6 -0
  151. package/dist/services/category.service-BsSJZV2B.cjs +6 -0
  152. package/dist/services/checkout.service-CC-3tm2y.js +60 -0
  153. package/dist/services/checkout.service-CG8KrDNY.cjs +69 -0
  154. package/dist/services/checkout.service.d.cts +475 -0
  155. package/dist/services/checkout.service.d.ts +475 -0
  156. package/dist/services/collection.service-C4QETpuI.js +11 -0
  157. package/dist/services/collection.service-DHGN3rhs.cjs +12 -0
  158. package/dist/services/complaint-book.service-C7TxltQe.cjs +13 -0
  159. package/dist/services/complaint-book.service-DXiVyKdD.js +12 -0
  160. package/dist/services/complaint-book.service.d.cts +4 -0
  161. package/dist/services/complaint-book.service.d.ts +4 -0
  162. package/dist/services/customer-address.service-Ca4qla_R.cjs +51 -0
  163. package/dist/services/customer-address.service-xEThx7cQ.js +47 -0
  164. package/dist/services/customer-address.service.d.cts +19 -0
  165. package/dist/services/customer-address.service.d.ts +19 -0
  166. package/dist/services/customer-order.service-DLGgT0xa.cjs +54 -0
  167. package/dist/services/customer-order.service-qHoRBuyX.js +51 -0
  168. package/dist/services/customer-order.service.d.cts +34 -0
  169. package/dist/services/customer-order.service.d.ts +34 -0
  170. package/dist/services/customer-registration.service-C3BNyCHP.cjs +10 -0
  171. package/dist/services/customer-registration.service-CxcWD2hf.js +9 -0
  172. package/dist/services/customer-registration.service.d.cts +5 -0
  173. package/dist/services/customer-registration.service.d.ts +5 -0
  174. package/dist/services/customer-session.service-4YgfbWRB.js +16 -0
  175. package/dist/services/customer-session.service-Bd8pLC2v.cjs +19 -0
  176. package/dist/services/customer.service-BM0NrOxP.cjs +26 -0
  177. package/dist/services/customer.service-BoU6l2-R.js +25 -0
  178. package/dist/services/customer.service.d.cts +10 -0
  179. package/dist/services/customer.service.d.ts +10 -0
  180. package/dist/services/geo.service-C32R7N8W.js +39 -0
  181. package/dist/services/geo.service-JeTT3Wun.cjs +42 -0
  182. package/dist/services/geo.service.d.cts +10 -0
  183. package/dist/services/geo.service.d.ts +10 -0
  184. package/dist/services/layout.service-BkvLzl1g.cjs +50 -0
  185. package/dist/services/layout.service-DmbeMOkK.js +50 -0
  186. package/dist/services/layout.service.d.cts +9 -0
  187. package/dist/services/layout.service.d.ts +9 -0
  188. package/dist/services/order-draft.service-B0VcmWhn.js +13 -0
  189. package/dist/services/order-draft.service-Dlu6eEkV.cjs +14 -0
  190. package/dist/services/order-draft.service.d.cts +4 -0
  191. package/dist/services/order-draft.service.d.ts +4 -0
  192. package/dist/services/order-review.service-BEr-FB6_.cjs +11 -0
  193. package/dist/services/order-review.service-PdBPUsxE.js +11 -0
  194. package/dist/services/order-review.service.d.cts +7 -0
  195. package/dist/services/order-review.service.d.ts +7 -0
  196. package/dist/services/order-status.service-Cn7dsaJo.cjs +26 -0
  197. package/dist/services/order-status.service-MC9hVpP-.js +23 -0
  198. package/dist/services/order-status.service.d.cts +16 -0
  199. package/dist/services/order-status.service.d.ts +16 -0
  200. package/dist/services/page.service-CWhWCjMQ.js +7 -0
  201. package/dist/services/page.service-DmCSeMiR.cjs +7 -0
  202. package/dist/services/page.service.d.cts +4 -0
  203. package/dist/services/page.service.d.ts +4 -0
  204. package/dist/services/payment-method.service-CEt_nB4R.cjs +7 -0
  205. package/dist/services/payment-method.service-CjKbAsOh.js +7 -0
  206. package/dist/services/payment-method.service.d.cts +4 -0
  207. package/dist/services/payment-method.service.d.ts +4 -0
  208. package/dist/services/product.service-B05Qmbuh.js +35 -0
  209. package/dist/services/product.service-B7OFZWB1.cjs +37 -0
  210. package/dist/services/product.service.d.cts +256 -0
  211. package/dist/services/product.service.d.ts +256 -0
  212. package/dist/services/review.service-CO2icjpu.cjs +46 -0
  213. package/dist/services/review.service-De1YkhFp.js +43 -0
  214. package/dist/services/review.service.d.cts +28 -0
  215. package/dist/services/review.service.d.ts +28 -0
  216. package/dist/services/search.service-Bx1zbTHJ.cjs +10 -0
  217. package/dist/services/search.service-DSBMhaSY.js +10 -0
  218. package/dist/services/search.service.d.cts +9 -0
  219. package/dist/services/search.service.d.ts +9 -0
  220. package/dist/services/seller.service-D11WHhbC.cjs +10 -0
  221. package/dist/services/seller.service-DUptDTv4.js +9 -0
  222. package/dist/services/seller.service.d.cts +42 -0
  223. package/dist/services/seller.service.d.ts +42 -0
  224. package/dist/services/tracking.service-CPK1B69N.js +11 -0
  225. package/dist/services/tracking.service-DqOoi8qr.cjs +11 -0
  226. package/dist/services/tracking.service.d.cts +7 -0
  227. package/dist/services/tracking.service.d.ts +7 -0
  228. package/dist/services/url.service-B-nC14Ue.cjs +19 -0
  229. package/dist/services/url.service-CLW0Tc7S.js +18 -0
  230. package/dist/storefront-cache-revision.cjs +23 -0
  231. package/dist/storefront-cache-revision.d.cts +16 -0
  232. package/dist/storefront-cache-revision.d.ts +16 -0
  233. package/dist/storefront-cache-revision.js +17 -0
  234. package/dist/storefront-routes.cjs +14 -0
  235. package/dist/storefront-routes.d.cts +11 -0
  236. package/dist/storefront-routes.d.ts +11 -0
  237. package/dist/storefront-routes.js +12 -0
  238. package/dist/utils-CDEC5xcY.cjs +139 -0
  239. package/dist/utils-DK7qa54o.js +136 -0
  240. package/dist/utils.d.cts +3 -0
  241. package/dist/utils.d.ts +3 -0
  242. package/dist/video-links-CbRO0m8V.js +47 -0
  243. package/dist/video-links-ClryQjPH.cjs +47 -0
  244. package/dist/video-links.d.cts +7 -0
  245. package/dist/video-links.d.ts +7 -0
  246. package/package.json +28 -11
  247. package/dist/api.cjs.map +0 -1
  248. package/dist/api.js.map +0 -1
  249. package/dist/client-Ba1r_uiO.d.ts +0 -195
  250. package/dist/client-Cqcnv2tC.d.cts +0 -195
  251. package/dist/client.cjs.map +0 -1
  252. package/dist/client.js.map +0 -1
  253. package/dist/index.cjs.map +0 -1
  254. package/dist/index.js.map +0 -1
  255. package/dist/models/collections.cjs.map +0 -1
  256. package/dist/models/collections.js.map +0 -1
  257. package/dist/models/customer-address.cjs.map +0 -1
  258. package/dist/models/customer-address.js.map +0 -1
  259. package/dist/models/customer-order.cjs.map +0 -1
  260. package/dist/models/customer-order.js.map +0 -1
  261. package/dist/models/customer-profile.cjs.map +0 -1
  262. package/dist/models/customer-profile.js.map +0 -1
  263. package/dist/models/geo.cjs.map +0 -1
  264. package/dist/models/geo.js.map +0 -1
  265. package/dist/models/ids.cjs.map +0 -1
  266. package/dist/models/ids.js.map +0 -1
  267. package/dist/models/products.cjs.map +0 -1
  268. package/dist/models/products.js.map +0 -1
  269. package/dist/models/search.cjs.map +0 -1
  270. package/dist/models/search.js.map +0 -1
  271. package/dist/models/settings.cjs.map +0 -1
  272. package/dist/models/settings.js.map +0 -1
  273. package/dist/models/storefront-cart.cjs.map +0 -1
  274. package/dist/models/storefront-cart.js.map +0 -1
  275. package/dist/models/storefront-checkout.cjs.map +0 -1
  276. package/dist/models/storefront-checkout.js.map +0 -1
  277. package/dist/models/storefront-reviews.cjs.map +0 -1
  278. package/dist/models/storefront-reviews.js.map +0 -1
@@ -0,0 +1,572 @@
1
+ import { Api } from "../api.cjs";
2
+ import { AddCartItemParams, CreateCartParams, GetCartParams, RemoveCartItemParams, UpdateCartItemQuantityParams } from "../models/storefront-cart.cjs";
3
+ export declare function createCart(api: Api, params: CreateCartParams): Promise<{
4
+ id: string;
5
+ token: string;
6
+ cartNumber: string;
7
+ email: string | null;
8
+ phone: string | null;
9
+ firstName: string | null;
10
+ lastName: string | null;
11
+ currencyCode: string;
12
+ status: "abandoned" | "cancelled" | "completed" | "expired" | "failed" | "inProgress" | "pending";
13
+ completedAt: string | null;
14
+ shippingAddress: {
15
+ name: string | null;
16
+ address1: string;
17
+ city: string;
18
+ countryCode: string;
19
+ company: string | null;
20
+ address2: string | null;
21
+ department?: string | null | undefined;
22
+ province: string | null;
23
+ postalCode: string | null;
24
+ district: string | null;
25
+ phone: string | null;
26
+ latitude: number | null;
27
+ longitude: number | null;
28
+ } | null;
29
+ billingAddress: {
30
+ name: string | null;
31
+ address1: string;
32
+ city: string;
33
+ countryCode: string;
34
+ company: string | null;
35
+ address2: string | null;
36
+ department?: string | null | undefined;
37
+ province: string | null;
38
+ postalCode: string | null;
39
+ district: string | null;
40
+ phone: string | null;
41
+ latitude: number | null;
42
+ longitude: number | null;
43
+ } | null;
44
+ promotionCodes: string[];
45
+ items: {
46
+ id: string;
47
+ productId: string | null;
48
+ title: string;
49
+ variantLabel: string | null;
50
+ productHandle: string | null;
51
+ productUrl: string | null;
52
+ thumbnail: string | null;
53
+ quantity: number;
54
+ variantId: string | null;
55
+ variantSku: string | null;
56
+ unitPrice: number;
57
+ compareAtUnitPrice: number | null;
58
+ bundleItems: {
59
+ productId: string;
60
+ variantId: string;
61
+ productName: string;
62
+ variantName: string | null;
63
+ sku: string | null;
64
+ brand: string | null;
65
+ imageUrl: string | null;
66
+ quantity: number;
67
+ }[];
68
+ requiresShipping: boolean;
69
+ sellerId: string | null;
70
+ sellerName: string | null;
71
+ orderBumpId: string | null;
72
+ modifiers: {
73
+ modifierGroupId: string;
74
+ modifierGroupName: string;
75
+ modifierOptionId: string | null;
76
+ modifierOptionName: string | null;
77
+ value: string | null;
78
+ quantity: number;
79
+ priceDelta: number;
80
+ }[];
81
+ }[];
82
+ shippingMethods: {
83
+ id: string;
84
+ shippingMethodId: string | null;
85
+ rateId: string | null;
86
+ name: string;
87
+ description: string | null;
88
+ type: "express" | "localDelivery" | "pickup" | "regular" | "sameDay";
89
+ target: "automatic" | "location" | "pickupPoint";
90
+ targetId: string | null;
91
+ fulfillmentLocationId: string | null;
92
+ total: number;
93
+ estimatedDays: number | null;
94
+ scheduledDate: string | null;
95
+ scheduledTime: string | null;
96
+ serviceCode: string | null;
97
+ sellerId: string | null;
98
+ shippingProfileId: string | null;
99
+ }[];
100
+ paymentMethodCode: string | null;
101
+ totals: {
102
+ subtotal: number;
103
+ discountTotal: number;
104
+ shippingOriginalTotal: number;
105
+ shippingTotal: number;
106
+ taxTotal: number;
107
+ warrantyTotal: number;
108
+ total: number;
109
+ };
110
+ invoiceType: "invoice" | "receipt" | "ticket";
111
+ identificationType: string | null;
112
+ identificationCountryCode?: string | null | undefined;
113
+ identificationNumber: string | null;
114
+ entityTaxId: string | null;
115
+ entityName: string | null;
116
+ }>;
117
+ export declare function getCart(api: Api, params: GetCartParams): Promise<{
118
+ id: string;
119
+ token: string;
120
+ cartNumber: string;
121
+ email: string | null;
122
+ phone: string | null;
123
+ firstName: string | null;
124
+ lastName: string | null;
125
+ currencyCode: string;
126
+ status: "abandoned" | "cancelled" | "completed" | "expired" | "failed" | "inProgress" | "pending";
127
+ completedAt: string | null;
128
+ shippingAddress: {
129
+ name: string | null;
130
+ address1: string;
131
+ city: string;
132
+ countryCode: string;
133
+ company: string | null;
134
+ address2: string | null;
135
+ department?: string | null | undefined;
136
+ province: string | null;
137
+ postalCode: string | null;
138
+ district: string | null;
139
+ phone: string | null;
140
+ latitude: number | null;
141
+ longitude: number | null;
142
+ } | null;
143
+ billingAddress: {
144
+ name: string | null;
145
+ address1: string;
146
+ city: string;
147
+ countryCode: string;
148
+ company: string | null;
149
+ address2: string | null;
150
+ department?: string | null | undefined;
151
+ province: string | null;
152
+ postalCode: string | null;
153
+ district: string | null;
154
+ phone: string | null;
155
+ latitude: number | null;
156
+ longitude: number | null;
157
+ } | null;
158
+ promotionCodes: string[];
159
+ items: {
160
+ id: string;
161
+ productId: string | null;
162
+ title: string;
163
+ variantLabel: string | null;
164
+ productHandle: string | null;
165
+ productUrl: string | null;
166
+ thumbnail: string | null;
167
+ quantity: number;
168
+ variantId: string | null;
169
+ variantSku: string | null;
170
+ unitPrice: number;
171
+ compareAtUnitPrice: number | null;
172
+ bundleItems: {
173
+ productId: string;
174
+ variantId: string;
175
+ productName: string;
176
+ variantName: string | null;
177
+ sku: string | null;
178
+ brand: string | null;
179
+ imageUrl: string | null;
180
+ quantity: number;
181
+ }[];
182
+ requiresShipping: boolean;
183
+ sellerId: string | null;
184
+ sellerName: string | null;
185
+ orderBumpId: string | null;
186
+ modifiers: {
187
+ modifierGroupId: string;
188
+ modifierGroupName: string;
189
+ modifierOptionId: string | null;
190
+ modifierOptionName: string | null;
191
+ value: string | null;
192
+ quantity: number;
193
+ priceDelta: number;
194
+ }[];
195
+ }[];
196
+ shippingMethods: {
197
+ id: string;
198
+ shippingMethodId: string | null;
199
+ rateId: string | null;
200
+ name: string;
201
+ description: string | null;
202
+ type: "express" | "localDelivery" | "pickup" | "regular" | "sameDay";
203
+ target: "automatic" | "location" | "pickupPoint";
204
+ targetId: string | null;
205
+ fulfillmentLocationId: string | null;
206
+ total: number;
207
+ estimatedDays: number | null;
208
+ scheduledDate: string | null;
209
+ scheduledTime: string | null;
210
+ serviceCode: string | null;
211
+ sellerId: string | null;
212
+ shippingProfileId: string | null;
213
+ }[];
214
+ paymentMethodCode: string | null;
215
+ totals: {
216
+ subtotal: number;
217
+ discountTotal: number;
218
+ shippingOriginalTotal: number;
219
+ shippingTotal: number;
220
+ taxTotal: number;
221
+ warrantyTotal: number;
222
+ total: number;
223
+ };
224
+ invoiceType: "invoice" | "receipt" | "ticket";
225
+ identificationType: string | null;
226
+ identificationCountryCode?: string | null | undefined;
227
+ identificationNumber: string | null;
228
+ entityTaxId: string | null;
229
+ entityName: string | null;
230
+ }>;
231
+ export declare function addCartItem(api: Api, params: AddCartItemParams): Promise<{
232
+ id: string;
233
+ token: string;
234
+ cartNumber: string;
235
+ email: string | null;
236
+ phone: string | null;
237
+ firstName: string | null;
238
+ lastName: string | null;
239
+ currencyCode: string;
240
+ status: "abandoned" | "cancelled" | "completed" | "expired" | "failed" | "inProgress" | "pending";
241
+ completedAt: string | null;
242
+ shippingAddress: {
243
+ name: string | null;
244
+ address1: string;
245
+ city: string;
246
+ countryCode: string;
247
+ company: string | null;
248
+ address2: string | null;
249
+ department?: string | null | undefined;
250
+ province: string | null;
251
+ postalCode: string | null;
252
+ district: string | null;
253
+ phone: string | null;
254
+ latitude: number | null;
255
+ longitude: number | null;
256
+ } | null;
257
+ billingAddress: {
258
+ name: string | null;
259
+ address1: string;
260
+ city: string;
261
+ countryCode: string;
262
+ company: string | null;
263
+ address2: string | null;
264
+ department?: string | null | undefined;
265
+ province: string | null;
266
+ postalCode: string | null;
267
+ district: string | null;
268
+ phone: string | null;
269
+ latitude: number | null;
270
+ longitude: number | null;
271
+ } | null;
272
+ promotionCodes: string[];
273
+ items: {
274
+ id: string;
275
+ productId: string | null;
276
+ title: string;
277
+ variantLabel: string | null;
278
+ productHandle: string | null;
279
+ productUrl: string | null;
280
+ thumbnail: string | null;
281
+ quantity: number;
282
+ variantId: string | null;
283
+ variantSku: string | null;
284
+ unitPrice: number;
285
+ compareAtUnitPrice: number | null;
286
+ bundleItems: {
287
+ productId: string;
288
+ variantId: string;
289
+ productName: string;
290
+ variantName: string | null;
291
+ sku: string | null;
292
+ brand: string | null;
293
+ imageUrl: string | null;
294
+ quantity: number;
295
+ }[];
296
+ requiresShipping: boolean;
297
+ sellerId: string | null;
298
+ sellerName: string | null;
299
+ orderBumpId: string | null;
300
+ modifiers: {
301
+ modifierGroupId: string;
302
+ modifierGroupName: string;
303
+ modifierOptionId: string | null;
304
+ modifierOptionName: string | null;
305
+ value: string | null;
306
+ quantity: number;
307
+ priceDelta: number;
308
+ }[];
309
+ }[];
310
+ shippingMethods: {
311
+ id: string;
312
+ shippingMethodId: string | null;
313
+ rateId: string | null;
314
+ name: string;
315
+ description: string | null;
316
+ type: "express" | "localDelivery" | "pickup" | "regular" | "sameDay";
317
+ target: "automatic" | "location" | "pickupPoint";
318
+ targetId: string | null;
319
+ fulfillmentLocationId: string | null;
320
+ total: number;
321
+ estimatedDays: number | null;
322
+ scheduledDate: string | null;
323
+ scheduledTime: string | null;
324
+ serviceCode: string | null;
325
+ sellerId: string | null;
326
+ shippingProfileId: string | null;
327
+ }[];
328
+ paymentMethodCode: string | null;
329
+ totals: {
330
+ subtotal: number;
331
+ discountTotal: number;
332
+ shippingOriginalTotal: number;
333
+ shippingTotal: number;
334
+ taxTotal: number;
335
+ warrantyTotal: number;
336
+ total: number;
337
+ };
338
+ invoiceType: "invoice" | "receipt" | "ticket";
339
+ identificationType: string | null;
340
+ identificationCountryCode?: string | null | undefined;
341
+ identificationNumber: string | null;
342
+ entityTaxId: string | null;
343
+ entityName: string | null;
344
+ }>;
345
+ export declare function updateCartItemQuantity(api: Api, params: UpdateCartItemQuantityParams): Promise<{
346
+ id: string;
347
+ token: string;
348
+ cartNumber: string;
349
+ email: string | null;
350
+ phone: string | null;
351
+ firstName: string | null;
352
+ lastName: string | null;
353
+ currencyCode: string;
354
+ status: "abandoned" | "cancelled" | "completed" | "expired" | "failed" | "inProgress" | "pending";
355
+ completedAt: string | null;
356
+ shippingAddress: {
357
+ name: string | null;
358
+ address1: string;
359
+ city: string;
360
+ countryCode: string;
361
+ company: string | null;
362
+ address2: string | null;
363
+ department?: string | null | undefined;
364
+ province: string | null;
365
+ postalCode: string | null;
366
+ district: string | null;
367
+ phone: string | null;
368
+ latitude: number | null;
369
+ longitude: number | null;
370
+ } | null;
371
+ billingAddress: {
372
+ name: string | null;
373
+ address1: string;
374
+ city: string;
375
+ countryCode: string;
376
+ company: string | null;
377
+ address2: string | null;
378
+ department?: string | null | undefined;
379
+ province: string | null;
380
+ postalCode: string | null;
381
+ district: string | null;
382
+ phone: string | null;
383
+ latitude: number | null;
384
+ longitude: number | null;
385
+ } | null;
386
+ promotionCodes: string[];
387
+ items: {
388
+ id: string;
389
+ productId: string | null;
390
+ title: string;
391
+ variantLabel: string | null;
392
+ productHandle: string | null;
393
+ productUrl: string | null;
394
+ thumbnail: string | null;
395
+ quantity: number;
396
+ variantId: string | null;
397
+ variantSku: string | null;
398
+ unitPrice: number;
399
+ compareAtUnitPrice: number | null;
400
+ bundleItems: {
401
+ productId: string;
402
+ variantId: string;
403
+ productName: string;
404
+ variantName: string | null;
405
+ sku: string | null;
406
+ brand: string | null;
407
+ imageUrl: string | null;
408
+ quantity: number;
409
+ }[];
410
+ requiresShipping: boolean;
411
+ sellerId: string | null;
412
+ sellerName: string | null;
413
+ orderBumpId: string | null;
414
+ modifiers: {
415
+ modifierGroupId: string;
416
+ modifierGroupName: string;
417
+ modifierOptionId: string | null;
418
+ modifierOptionName: string | null;
419
+ value: string | null;
420
+ quantity: number;
421
+ priceDelta: number;
422
+ }[];
423
+ }[];
424
+ shippingMethods: {
425
+ id: string;
426
+ shippingMethodId: string | null;
427
+ rateId: string | null;
428
+ name: string;
429
+ description: string | null;
430
+ type: "express" | "localDelivery" | "pickup" | "regular" | "sameDay";
431
+ target: "automatic" | "location" | "pickupPoint";
432
+ targetId: string | null;
433
+ fulfillmentLocationId: string | null;
434
+ total: number;
435
+ estimatedDays: number | null;
436
+ scheduledDate: string | null;
437
+ scheduledTime: string | null;
438
+ serviceCode: string | null;
439
+ sellerId: string | null;
440
+ shippingProfileId: string | null;
441
+ }[];
442
+ paymentMethodCode: string | null;
443
+ totals: {
444
+ subtotal: number;
445
+ discountTotal: number;
446
+ shippingOriginalTotal: number;
447
+ shippingTotal: number;
448
+ taxTotal: number;
449
+ warrantyTotal: number;
450
+ total: number;
451
+ };
452
+ invoiceType: "invoice" | "receipt" | "ticket";
453
+ identificationType: string | null;
454
+ identificationCountryCode?: string | null | undefined;
455
+ identificationNumber: string | null;
456
+ entityTaxId: string | null;
457
+ entityName: string | null;
458
+ }>;
459
+ export declare function removeCartItem(api: Api, params: RemoveCartItemParams): Promise<{
460
+ id: string;
461
+ token: string;
462
+ cartNumber: string;
463
+ email: string | null;
464
+ phone: string | null;
465
+ firstName: string | null;
466
+ lastName: string | null;
467
+ currencyCode: string;
468
+ status: "abandoned" | "cancelled" | "completed" | "expired" | "failed" | "inProgress" | "pending";
469
+ completedAt: string | null;
470
+ shippingAddress: {
471
+ name: string | null;
472
+ address1: string;
473
+ city: string;
474
+ countryCode: string;
475
+ company: string | null;
476
+ address2: string | null;
477
+ department?: string | null | undefined;
478
+ province: string | null;
479
+ postalCode: string | null;
480
+ district: string | null;
481
+ phone: string | null;
482
+ latitude: number | null;
483
+ longitude: number | null;
484
+ } | null;
485
+ billingAddress: {
486
+ name: string | null;
487
+ address1: string;
488
+ city: string;
489
+ countryCode: string;
490
+ company: string | null;
491
+ address2: string | null;
492
+ department?: string | null | undefined;
493
+ province: string | null;
494
+ postalCode: string | null;
495
+ district: string | null;
496
+ phone: string | null;
497
+ latitude: number | null;
498
+ longitude: number | null;
499
+ } | null;
500
+ promotionCodes: string[];
501
+ items: {
502
+ id: string;
503
+ productId: string | null;
504
+ title: string;
505
+ variantLabel: string | null;
506
+ productHandle: string | null;
507
+ productUrl: string | null;
508
+ thumbnail: string | null;
509
+ quantity: number;
510
+ variantId: string | null;
511
+ variantSku: string | null;
512
+ unitPrice: number;
513
+ compareAtUnitPrice: number | null;
514
+ bundleItems: {
515
+ productId: string;
516
+ variantId: string;
517
+ productName: string;
518
+ variantName: string | null;
519
+ sku: string | null;
520
+ brand: string | null;
521
+ imageUrl: string | null;
522
+ quantity: number;
523
+ }[];
524
+ requiresShipping: boolean;
525
+ sellerId: string | null;
526
+ sellerName: string | null;
527
+ orderBumpId: string | null;
528
+ modifiers: {
529
+ modifierGroupId: string;
530
+ modifierGroupName: string;
531
+ modifierOptionId: string | null;
532
+ modifierOptionName: string | null;
533
+ value: string | null;
534
+ quantity: number;
535
+ priceDelta: number;
536
+ }[];
537
+ }[];
538
+ shippingMethods: {
539
+ id: string;
540
+ shippingMethodId: string | null;
541
+ rateId: string | null;
542
+ name: string;
543
+ description: string | null;
544
+ type: "express" | "localDelivery" | "pickup" | "regular" | "sameDay";
545
+ target: "automatic" | "location" | "pickupPoint";
546
+ targetId: string | null;
547
+ fulfillmentLocationId: string | null;
548
+ total: number;
549
+ estimatedDays: number | null;
550
+ scheduledDate: string | null;
551
+ scheduledTime: string | null;
552
+ serviceCode: string | null;
553
+ sellerId: string | null;
554
+ shippingProfileId: string | null;
555
+ }[];
556
+ paymentMethodCode: string | null;
557
+ totals: {
558
+ subtotal: number;
559
+ discountTotal: number;
560
+ shippingOriginalTotal: number;
561
+ shippingTotal: number;
562
+ taxTotal: number;
563
+ warrantyTotal: number;
564
+ total: number;
565
+ };
566
+ invoiceType: "invoice" | "receipt" | "ticket";
567
+ identificationType: string | null;
568
+ identificationCountryCode?: string | null | undefined;
569
+ identificationNumber: string | null;
570
+ entityTaxId: string | null;
571
+ entityName: string | null;
572
+ }>;