@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
@@ -1,892 +1,509 @@
1
- import { z } from 'zod';
2
-
3
- declare const CustomerOrderShippingAddressSchema: z.ZodObject<{
4
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
5
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
6
- address1: z.ZodString;
7
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
- countryCode: z.ZodString;
10
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
13
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
14
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
15
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
17
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
18
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1
+ import { z } from "zod";
2
+ export declare const CustomerOrderShippingAddressSchema: z.ZodObject<{
3
+ name: z.ZodNullable<z.ZodString>;
4
+ company: z.ZodNullable<z.ZodString>;
5
+ address1: z.ZodString;
6
+ address2: z.ZodNullable<z.ZodString>;
7
+ city: z.ZodString;
8
+ countryCode: z.ZodString;
9
+ province: z.ZodNullable<z.ZodString>;
10
+ postalCode: z.ZodNullable<z.ZodString>;
11
+ district: z.ZodNullable<z.ZodString>;
12
+ phone: z.ZodNullable<z.ZodString>;
13
+ latitude: z.ZodNullable<z.ZodNumber>;
14
+ longitude: z.ZodNullable<z.ZodNumber>;
15
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
16
+ }, z.core.$strip>;
17
+ export type CustomerOrderShippingAddress = z.infer<typeof CustomerOrderShippingAddressSchema>;
18
+ export declare const OrderStepSchema: z.ZodPreprocess<z.ZodEnum<{
19
+ cancelled: "cancelled";
20
+ confirmed: "confirmed";
21
+ delivered: "delivered";
22
+ outForDelivery: "outForDelivery";
23
+ pending: "pending";
24
+ shipped: "shipped";
25
+ }>, unknown>;
26
+ export type OrderStep = z.infer<typeof OrderStepSchema>;
27
+ export declare const CustomerOrderLineItemSchema: z.ZodObject<{
28
+ id: z.ZodString;
29
+ orderId: z.ZodString;
30
+ productId: z.ZodNullable<z.ZodString>;
31
+ variantId: z.ZodNullable<z.ZodString>;
32
+ title: z.ZodString;
33
+ subtitle: z.ZodNullable<z.ZodString>;
34
+ thumbnail: z.ZodNullable<z.ZodString>;
35
+ variantTitle: z.ZodNullable<z.ZodString>;
36
+ productHandle: z.ZodNullable<z.ZodString>;
37
+ productUrl: z.ZodNullable<z.ZodString>;
38
+ quantity: z.ZodNumber;
39
+ unitPrice: z.ZodNumber;
40
+ total: z.ZodNumber;
41
+ status: z.ZodString;
42
+ step: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
43
+ cancelled: "cancelled";
44
+ confirmed: "confirmed";
45
+ delivered: "delivered";
46
+ outForDelivery: "outForDelivery";
47
+ pending: "pending";
48
+ shipped: "shipped";
49
+ }>, unknown>>;
50
+ carrierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ trackingNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ trackingLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
53
+ shippedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
+ deliveredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
+ returnableQuantity: z.ZodDefault<z.ZodNumber>;
56
+ modifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
57
+ modifierGroupId: z.ZodString;
58
+ modifierGroupName: z.ZodString;
59
+ modifierOptionId: z.ZodNullable<z.ZodString>;
60
+ modifierOptionName: z.ZodNullable<z.ZodString>;
61
+ value: z.ZodNullable<z.ZodString>;
62
+ quantity: z.ZodNumber;
63
+ priceDelta: z.ZodNumber;
64
+ }, z.core.$strip>>>;
65
+ }, z.core.$strip>;
66
+ export type CustomerOrderLineItem = z.infer<typeof CustomerOrderLineItemSchema>;
67
+ export declare const CustomerOrderPaymentSchema: z.ZodObject<{
68
+ id: z.ZodString;
69
+ paymentMethod: z.ZodString;
70
+ paymentCode: z.ZodString;
71
+ cardBrand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
72
+ cardLast4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
73
+ installments: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
74
+ amount: z.ZodNumber;
75
+ paymentStatus: z.ZodNullable<z.ZodString>;
76
+ receiptUrl: z.ZodNullable<z.ZodString>;
77
+ createdOn: z.ZodString;
78
+ }, z.core.$strip>;
79
+ export type CustomerOrderPayment = z.infer<typeof CustomerOrderPaymentSchema>;
80
+ /** GET /v1/customer/orders (listado agrupado vía proxy `customer/orders`). */
81
+ export declare const CustomerOrderListItemSchema: z.ZodObject<{
82
+ orderId: z.ZodString;
83
+ orderNumber: z.ZodString;
84
+ orderGroup: z.ZodString;
85
+ orderIds: z.ZodArray<z.ZodString>;
86
+ status: z.ZodString;
87
+ step: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
88
+ cancelled: "cancelled";
89
+ confirmed: "confirmed";
90
+ delivered: "delivered";
91
+ outForDelivery: "outForDelivery";
92
+ pending: "pending";
93
+ shipped: "shipped";
94
+ }>, unknown>>;
95
+ total: z.ZodNumber;
96
+ totalPaid: z.ZodNumber;
97
+ currencyCode: z.ZodString;
98
+ orderDate: z.ZodString;
99
+ createdOn: z.ZodString;
100
+ updatedOn: z.ZodNullable<z.ZodString>;
101
+ paymentAt: z.ZodNullable<z.ZodString>;
102
+ shippingAddress: z.ZodObject<{
103
+ name: z.ZodNullable<z.ZodString>;
104
+ company: z.ZodNullable<z.ZodString>;
20
105
  address1: z.ZodString;
21
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ address2: z.ZodNullable<z.ZodString>;
107
+ city: z.ZodString;
23
108
  countryCode: z.ZodString;
24
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
25
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
26
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
27
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
28
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
29
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
30
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
31
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
32
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
33
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
109
+ province: z.ZodNullable<z.ZodString>;
110
+ postalCode: z.ZodNullable<z.ZodString>;
111
+ district: z.ZodNullable<z.ZodString>;
112
+ phone: z.ZodNullable<z.ZodString>;
113
+ latitude: z.ZodNullable<z.ZodNumber>;
114
+ longitude: z.ZodNullable<z.ZodNumber>;
115
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
116
+ }, z.core.$strip>;
117
+ shippingAddressSummary: z.ZodNullable<z.ZodString>;
118
+ items: z.ZodArray<z.ZodObject<{
119
+ id: z.ZodString;
120
+ orderId: z.ZodString;
121
+ productId: z.ZodNullable<z.ZodString>;
122
+ variantId: z.ZodNullable<z.ZodString>;
123
+ title: z.ZodString;
124
+ subtitle: z.ZodNullable<z.ZodString>;
125
+ thumbnail: z.ZodNullable<z.ZodString>;
126
+ variantTitle: z.ZodNullable<z.ZodString>;
127
+ productHandle: z.ZodNullable<z.ZodString>;
128
+ productUrl: z.ZodNullable<z.ZodString>;
129
+ quantity: z.ZodNumber;
130
+ unitPrice: z.ZodNumber;
131
+ total: z.ZodNumber;
132
+ status: z.ZodString;
133
+ step: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
134
+ cancelled: "cancelled";
135
+ confirmed: "confirmed";
136
+ delivered: "delivered";
137
+ outForDelivery: "outForDelivery";
138
+ pending: "pending";
139
+ shipped: "shipped";
140
+ }>, unknown>>;
141
+ carrierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
+ trackingNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
+ trackingLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
+ shippedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
145
+ deliveredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
146
+ returnableQuantity: z.ZodDefault<z.ZodNumber>;
147
+ modifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
148
+ modifierGroupId: z.ZodString;
149
+ modifierGroupName: z.ZodString;
150
+ modifierOptionId: z.ZodNullable<z.ZodString>;
151
+ modifierOptionName: z.ZodNullable<z.ZodString>;
152
+ value: z.ZodNullable<z.ZodString>;
153
+ quantity: z.ZodNumber;
154
+ priceDelta: z.ZodNumber;
155
+ }, z.core.$strip>>>;
156
+ }, z.core.$strip>>;
157
+ payments: z.ZodDefault<z.ZodArray<z.ZodObject<{
158
+ id: z.ZodString;
159
+ paymentMethod: z.ZodString;
160
+ paymentCode: z.ZodString;
161
+ cardBrand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
162
+ cardLast4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
163
+ installments: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
164
+ amount: z.ZodNumber;
165
+ paymentStatus: z.ZodNullable<z.ZodString>;
166
+ receiptUrl: z.ZodNullable<z.ZodString>;
167
+ createdOn: z.ZodString;
168
+ }, z.core.$strip>>>;
169
+ }, z.core.$strip>;
170
+ export type CustomerOrderListItem = z.infer<typeof CustomerOrderListItemSchema>;
171
+ export declare const CustomerOrderListSchema: z.ZodArray<z.ZodObject<{
172
+ orderId: z.ZodString;
173
+ orderNumber: z.ZodString;
174
+ orderGroup: z.ZodString;
175
+ orderIds: z.ZodArray<z.ZodString>;
176
+ status: z.ZodString;
177
+ step: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
178
+ cancelled: "cancelled";
179
+ confirmed: "confirmed";
180
+ delivered: "delivered";
181
+ outForDelivery: "outForDelivery";
182
+ pending: "pending";
183
+ shipped: "shipped";
184
+ }>, unknown>>;
185
+ total: z.ZodNumber;
186
+ totalPaid: z.ZodNumber;
187
+ currencyCode: z.ZodString;
188
+ orderDate: z.ZodString;
189
+ createdOn: z.ZodString;
190
+ updatedOn: z.ZodNullable<z.ZodString>;
191
+ paymentAt: z.ZodNullable<z.ZodString>;
192
+ shippingAddress: z.ZodObject<{
193
+ name: z.ZodNullable<z.ZodString>;
194
+ company: z.ZodNullable<z.ZodString>;
34
195
  address1: z.ZodString;
35
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
196
+ address2: z.ZodNullable<z.ZodString>;
197
+ city: z.ZodString;
37
198
  countryCode: z.ZodString;
38
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
39
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
40
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
42
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
43
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
44
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
45
- }, z.ZodTypeAny, "passthrough">>;
46
- type CustomerOrderShippingAddress = z.infer<typeof CustomerOrderShippingAddressSchema>;
47
- declare const CustomerOrderLineItemSchema: z.ZodObject<{
199
+ province: z.ZodNullable<z.ZodString>;
200
+ postalCode: z.ZodNullable<z.ZodString>;
201
+ district: z.ZodNullable<z.ZodString>;
202
+ phone: z.ZodNullable<z.ZodString>;
203
+ latitude: z.ZodNullable<z.ZodNumber>;
204
+ longitude: z.ZodNullable<z.ZodNumber>;
205
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
206
+ }, z.core.$strip>;
207
+ shippingAddressSummary: z.ZodNullable<z.ZodString>;
208
+ items: z.ZodArray<z.ZodObject<{
48
209
  id: z.ZodString;
49
210
  orderId: z.ZodString;
50
211
  productId: z.ZodNullable<z.ZodString>;
51
212
  variantId: z.ZodNullable<z.ZodString>;
52
213
  title: z.ZodString;
53
- subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
54
- thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
55
- variantTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
56
- productHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
214
+ subtitle: z.ZodNullable<z.ZodString>;
215
+ thumbnail: z.ZodNullable<z.ZodString>;
216
+ variantTitle: z.ZodNullable<z.ZodString>;
217
+ productHandle: z.ZodNullable<z.ZodString>;
218
+ productUrl: z.ZodNullable<z.ZodString>;
57
219
  quantity: z.ZodNumber;
58
220
  unitPrice: z.ZodNumber;
59
221
  total: z.ZodNumber;
60
222
  status: z.ZodString;
61
- }, "strip", z.ZodTypeAny, {
62
- status: string;
63
- id: string;
64
- productId: string | null;
65
- quantity: number;
66
- variantId: string | null;
67
- unitPrice: number;
68
- title: string;
69
- orderId: string;
70
- total: number;
71
- productHandle?: string | null | undefined;
72
- thumbnail?: string | null | undefined;
73
- subtitle?: string | null | undefined;
74
- variantTitle?: string | null | undefined;
75
- }, {
76
- status: string;
77
- id: string;
78
- productId: string | null;
79
- quantity: number;
80
- variantId: string | null;
81
- unitPrice: number;
82
- title: string;
83
- orderId: string;
84
- total: number;
85
- productHandle?: string | null | undefined;
86
- thumbnail?: string | null | undefined;
87
- subtitle?: string | null | undefined;
88
- variantTitle?: string | null | undefined;
89
- }>;
90
- type CustomerOrderLineItem = z.infer<typeof CustomerOrderLineItemSchema>;
91
- /** GET /v1/customer/orders (listado agrupado vía proxy `customer/orders`). */
92
- declare const CustomerOrderListItemSchema: z.ZodObject<{
223
+ step: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
224
+ cancelled: "cancelled";
225
+ confirmed: "confirmed";
226
+ delivered: "delivered";
227
+ outForDelivery: "outForDelivery";
228
+ pending: "pending";
229
+ shipped: "shipped";
230
+ }>, unknown>>;
231
+ carrierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
232
+ trackingNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
233
+ trackingLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
234
+ shippedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
235
+ deliveredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
236
+ returnableQuantity: z.ZodDefault<z.ZodNumber>;
237
+ modifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
238
+ modifierGroupId: z.ZodString;
239
+ modifierGroupName: z.ZodString;
240
+ modifierOptionId: z.ZodNullable<z.ZodString>;
241
+ modifierOptionName: z.ZodNullable<z.ZodString>;
242
+ value: z.ZodNullable<z.ZodString>;
243
+ quantity: z.ZodNumber;
244
+ priceDelta: z.ZodNumber;
245
+ }, z.core.$strip>>>;
246
+ }, z.core.$strip>>;
247
+ payments: z.ZodDefault<z.ZodArray<z.ZodObject<{
248
+ id: z.ZodString;
249
+ paymentMethod: z.ZodString;
250
+ paymentCode: z.ZodString;
251
+ cardBrand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
252
+ cardLast4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
253
+ installments: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
254
+ amount: z.ZodNumber;
255
+ paymentStatus: z.ZodNullable<z.ZodString>;
256
+ receiptUrl: z.ZodNullable<z.ZodString>;
257
+ createdOn: z.ZodString;
258
+ }, z.core.$strip>>>;
259
+ }, z.core.$strip>>;
260
+ export declare const CustomerOrderPageSchema: z.ZodObject<{
261
+ data: z.ZodArray<z.ZodObject<{
93
262
  orderId: z.ZodString;
94
263
  orderNumber: z.ZodString;
95
264
  orderGroup: z.ZodString;
96
- orderIds: z.ZodArray<z.ZodString, "many">;
265
+ orderIds: z.ZodArray<z.ZodString>;
97
266
  status: z.ZodString;
267
+ step: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
268
+ cancelled: "cancelled";
269
+ confirmed: "confirmed";
270
+ delivered: "delivered";
271
+ outForDelivery: "outForDelivery";
272
+ pending: "pending";
273
+ shipped: "shipped";
274
+ }>, unknown>>;
98
275
  total: z.ZodNumber;
99
276
  totalPaid: z.ZodNumber;
100
277
  currencyCode: z.ZodString;
101
278
  orderDate: z.ZodString;
102
279
  createdOn: z.ZodString;
103
- updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
104
- paymentAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
- shippingAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
106
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
107
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
108
- address1: z.ZodString;
109
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
110
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
111
- countryCode: z.ZodString;
112
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
113
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
114
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
115
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
116
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
117
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
118
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
119
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
120
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
121
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
- address1: z.ZodString;
123
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
125
- countryCode: z.ZodString;
126
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
127
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
128
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
129
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
130
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
131
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
132
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
133
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
134
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
135
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
136
- address1: z.ZodString;
137
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
138
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
139
- countryCode: z.ZodString;
140
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
141
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
142
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
143
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
144
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
145
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
146
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
147
- }, z.ZodTypeAny, "passthrough">>>>;
148
- shippingAddressSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
280
+ updatedOn: z.ZodNullable<z.ZodString>;
281
+ paymentAt: z.ZodNullable<z.ZodString>;
282
+ shippingAddress: z.ZodObject<{
283
+ name: z.ZodNullable<z.ZodString>;
284
+ company: z.ZodNullable<z.ZodString>;
285
+ address1: z.ZodString;
286
+ address2: z.ZodNullable<z.ZodString>;
287
+ city: z.ZodString;
288
+ countryCode: z.ZodString;
289
+ province: z.ZodNullable<z.ZodString>;
290
+ postalCode: z.ZodNullable<z.ZodString>;
291
+ district: z.ZodNullable<z.ZodString>;
292
+ phone: z.ZodNullable<z.ZodString>;
293
+ latitude: z.ZodNullable<z.ZodNumber>;
294
+ longitude: z.ZodNullable<z.ZodNumber>;
295
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
296
+ }, z.core.$strip>;
297
+ shippingAddressSummary: z.ZodNullable<z.ZodString>;
149
298
  items: z.ZodArray<z.ZodObject<{
150
- id: z.ZodString;
151
- orderId: z.ZodString;
152
- productId: z.ZodNullable<z.ZodString>;
153
- variantId: z.ZodNullable<z.ZodString>;
154
- title: z.ZodString;
155
- subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
156
- thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
157
- variantTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
158
- productHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
299
+ id: z.ZodString;
300
+ orderId: z.ZodString;
301
+ productId: z.ZodNullable<z.ZodString>;
302
+ variantId: z.ZodNullable<z.ZodString>;
303
+ title: z.ZodString;
304
+ subtitle: z.ZodNullable<z.ZodString>;
305
+ thumbnail: z.ZodNullable<z.ZodString>;
306
+ variantTitle: z.ZodNullable<z.ZodString>;
307
+ productHandle: z.ZodNullable<z.ZodString>;
308
+ productUrl: z.ZodNullable<z.ZodString>;
309
+ quantity: z.ZodNumber;
310
+ unitPrice: z.ZodNumber;
311
+ total: z.ZodNumber;
312
+ status: z.ZodString;
313
+ step: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
314
+ cancelled: "cancelled";
315
+ confirmed: "confirmed";
316
+ delivered: "delivered";
317
+ outForDelivery: "outForDelivery";
318
+ pending: "pending";
319
+ shipped: "shipped";
320
+ }>, unknown>>;
321
+ carrierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
322
+ trackingNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
323
+ trackingLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
324
+ shippedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
325
+ deliveredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
+ returnableQuantity: z.ZodDefault<z.ZodNumber>;
327
+ modifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
328
+ modifierGroupId: z.ZodString;
329
+ modifierGroupName: z.ZodString;
330
+ modifierOptionId: z.ZodNullable<z.ZodString>;
331
+ modifierOptionName: z.ZodNullable<z.ZodString>;
332
+ value: z.ZodNullable<z.ZodString>;
159
333
  quantity: z.ZodNumber;
160
- unitPrice: z.ZodNumber;
161
- total: z.ZodNumber;
162
- status: z.ZodString;
163
- }, "strip", z.ZodTypeAny, {
164
- status: string;
165
- id: string;
166
- productId: string | null;
167
- quantity: number;
168
- variantId: string | null;
169
- unitPrice: number;
170
- title: string;
171
- orderId: string;
172
- total: number;
173
- productHandle?: string | null | undefined;
174
- thumbnail?: string | null | undefined;
175
- subtitle?: string | null | undefined;
176
- variantTitle?: string | null | undefined;
177
- }, {
178
- status: string;
179
- id: string;
180
- productId: string | null;
181
- quantity: number;
182
- variantId: string | null;
183
- unitPrice: number;
184
- title: string;
185
- orderId: string;
186
- total: number;
187
- productHandle?: string | null | undefined;
188
- thumbnail?: string | null | undefined;
189
- subtitle?: string | null | undefined;
190
- variantTitle?: string | null | undefined;
191
- }>, "many">;
192
- }, "strip", z.ZodTypeAny, {
193
- status: string;
194
- createdOn: string;
195
- orderId: string;
196
- total: number;
197
- currencyCode: string;
198
- items: {
199
- status: string;
200
- id: string;
201
- productId: string | null;
202
- quantity: number;
203
- variantId: string | null;
204
- unitPrice: number;
205
- title: string;
206
- orderId: string;
207
- total: number;
208
- productHandle?: string | null | undefined;
209
- thumbnail?: string | null | undefined;
210
- subtitle?: string | null | undefined;
211
- variantTitle?: string | null | undefined;
212
- }[];
213
- orderGroup: string;
214
- orderIds: string[];
215
- orderNumber: string;
216
- totalPaid: number;
217
- orderDate: string;
218
- shippingAddress?: z.objectOutputType<{
219
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
220
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
221
- address1: z.ZodString;
222
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
223
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
224
- countryCode: z.ZodString;
225
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
226
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
227
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
228
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
229
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
230
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
231
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
232
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
233
- updatedOn?: string | null | undefined;
234
- paymentAt?: string | null | undefined;
235
- shippingAddressSummary?: string | null | undefined;
236
- }, {
237
- status: string;
238
- createdOn: string;
239
- orderId: string;
240
- total: number;
241
- currencyCode: string;
242
- items: {
243
- status: string;
244
- id: string;
245
- productId: string | null;
246
- quantity: number;
247
- variantId: string | null;
248
- unitPrice: number;
249
- title: string;
250
- orderId: string;
251
- total: number;
252
- productHandle?: string | null | undefined;
253
- thumbnail?: string | null | undefined;
254
- subtitle?: string | null | undefined;
255
- variantTitle?: string | null | undefined;
256
- }[];
257
- orderGroup: string;
258
- orderIds: string[];
259
- orderNumber: string;
260
- totalPaid: number;
261
- orderDate: string;
262
- shippingAddress?: z.objectInputType<{
263
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
264
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
265
- address1: z.ZodString;
266
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
267
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
268
- countryCode: z.ZodString;
269
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
270
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
271
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
272
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
273
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
274
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
275
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
276
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
277
- updatedOn?: string | null | undefined;
278
- paymentAt?: string | null | undefined;
279
- shippingAddressSummary?: string | null | undefined;
280
- }>;
281
- type CustomerOrderListItem = z.infer<typeof CustomerOrderListItemSchema>;
282
- declare const CustomerOrderListSchema: z.ZodArray<z.ZodObject<{
334
+ priceDelta: z.ZodNumber;
335
+ }, z.core.$strip>>>;
336
+ }, z.core.$strip>>;
337
+ payments: z.ZodDefault<z.ZodArray<z.ZodObject<{
338
+ id: z.ZodString;
339
+ paymentMethod: z.ZodString;
340
+ paymentCode: z.ZodString;
341
+ cardBrand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
342
+ cardLast4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
343
+ installments: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
344
+ amount: z.ZodNumber;
345
+ paymentStatus: z.ZodNullable<z.ZodString>;
346
+ receiptUrl: z.ZodNullable<z.ZodString>;
347
+ createdOn: z.ZodString;
348
+ }, z.core.$strip>>>;
349
+ }, z.core.$strip>>;
350
+ hasNextPage: z.ZodBoolean;
351
+ nextCursor: z.ZodNullable<z.ZodString>;
352
+ totalCount: z.ZodNullable<z.ZodNumber>;
353
+ }, z.core.$strip>;
354
+ export type CustomerOrderPage = z.infer<typeof CustomerOrderPageSchema>;
355
+ export type CustomerOrderList = z.infer<typeof CustomerOrderListSchema>;
356
+ export declare const CustomerOrderStatusTimelineSchema: z.ZodObject<{
357
+ key: z.ZodString;
358
+ label: z.ZodString;
359
+ occurredAt: z.ZodString;
360
+ description: z.ZodNullable<z.ZodString>;
361
+ status: z.ZodNullable<z.ZodString>;
362
+ source: z.ZodString;
363
+ }, z.core.$strip>;
364
+ export type CustomerOrderStatusTimelineEntry = z.infer<typeof CustomerOrderStatusTimelineSchema>;
365
+ export declare const CustomerOrderShipmentSchema: z.ZodObject<{
366
+ carrierName: z.ZodNullable<z.ZodString>;
367
+ trackingNumber: z.ZodNullable<z.ZodString>;
368
+ trackingLink: z.ZodNullable<z.ZodString>;
369
+ }, z.core.$strip>;
370
+ export type CustomerOrderShipment = z.infer<typeof CustomerOrderShipmentSchema>;
371
+ /** GET /v1/customer/orders/{orderId} (detalle vía proxy). */
372
+ export declare const CustomerOrderDetailSchema: z.ZodObject<{
373
+ id: z.ZodString;
374
+ orderNumber: z.ZodString;
375
+ orderGroup: z.ZodNullable<z.ZodString>;
376
+ status: z.ZodString;
377
+ step: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
378
+ cancelled: "cancelled";
379
+ confirmed: "confirmed";
380
+ delivered: "delivered";
381
+ outForDelivery: "outForDelivery";
382
+ pending: "pending";
383
+ shipped: "shipped";
384
+ }>, unknown>>;
385
+ total: z.ZodNumber;
386
+ totalPaid: z.ZodNumber;
387
+ currencyCode: z.ZodString;
388
+ orderDate: z.ZodString;
389
+ createdOn: z.ZodString;
390
+ updatedOn: z.ZodNullable<z.ZodString>;
391
+ paymentAt: z.ZodNullable<z.ZodString>;
392
+ subTotal: z.ZodNumber;
393
+ discount: z.ZodPipe<z.ZodNumber, z.ZodTransform<number, number>>;
394
+ shipping: z.ZodNumber;
395
+ tax: z.ZodNumber;
396
+ email: z.ZodNullable<z.ZodString>;
397
+ phone: z.ZodNullable<z.ZodString>;
398
+ identificationType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
399
+ identificationNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
400
+ identificationCountryCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
401
+ firstName: z.ZodNullable<z.ZodString>;
402
+ lastName: z.ZodNullable<z.ZodString>;
403
+ shippingAddress: z.ZodObject<{
404
+ name: z.ZodNullable<z.ZodString>;
405
+ company: z.ZodNullable<z.ZodString>;
406
+ address1: z.ZodString;
407
+ address2: z.ZodNullable<z.ZodString>;
408
+ city: z.ZodString;
409
+ countryCode: z.ZodString;
410
+ province: z.ZodNullable<z.ZodString>;
411
+ postalCode: z.ZodNullable<z.ZodString>;
412
+ district: z.ZodNullable<z.ZodString>;
413
+ phone: z.ZodNullable<z.ZodString>;
414
+ latitude: z.ZodNullable<z.ZodNumber>;
415
+ longitude: z.ZodNullable<z.ZodNumber>;
416
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
417
+ }, z.core.$strip>;
418
+ shippingAddressSummary: z.ZodNullable<z.ZodString>;
419
+ billingAddress: z.ZodObject<{
420
+ name: z.ZodNullable<z.ZodString>;
421
+ company: z.ZodNullable<z.ZodString>;
422
+ address1: z.ZodString;
423
+ address2: z.ZodNullable<z.ZodString>;
424
+ city: z.ZodString;
425
+ countryCode: z.ZodString;
426
+ province: z.ZodNullable<z.ZodString>;
427
+ postalCode: z.ZodNullable<z.ZodString>;
428
+ district: z.ZodNullable<z.ZodString>;
429
+ phone: z.ZodNullable<z.ZodString>;
430
+ latitude: z.ZodNullable<z.ZodNumber>;
431
+ longitude: z.ZodNullable<z.ZodNumber>;
432
+ metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
433
+ }, z.core.$strip>;
434
+ items: z.ZodArray<z.ZodObject<{
435
+ id: z.ZodString;
283
436
  orderId: z.ZodString;
284
- orderNumber: z.ZodString;
285
- orderGroup: z.ZodString;
286
- orderIds: z.ZodArray<z.ZodString, "many">;
287
- status: z.ZodString;
437
+ productId: z.ZodNullable<z.ZodString>;
438
+ variantId: z.ZodNullable<z.ZodString>;
439
+ title: z.ZodString;
440
+ subtitle: z.ZodNullable<z.ZodString>;
441
+ thumbnail: z.ZodNullable<z.ZodString>;
442
+ variantTitle: z.ZodNullable<z.ZodString>;
443
+ productHandle: z.ZodNullable<z.ZodString>;
444
+ productUrl: z.ZodNullable<z.ZodString>;
445
+ quantity: z.ZodNumber;
446
+ unitPrice: z.ZodNumber;
288
447
  total: z.ZodNumber;
289
- totalPaid: z.ZodNumber;
290
- currencyCode: z.ZodString;
291
- orderDate: z.ZodString;
292
- createdOn: z.ZodString;
293
- updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
294
- paymentAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
295
- shippingAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
296
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
297
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
298
- address1: z.ZodString;
299
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
300
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
301
- countryCode: z.ZodString;
302
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
303
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
304
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
306
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
307
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
308
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
309
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
310
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
311
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
312
- address1: z.ZodString;
313
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
314
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
315
- countryCode: z.ZodString;
316
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
317
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
318
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
319
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
320
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
321
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
322
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
323
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
324
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
325
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
326
- address1: z.ZodString;
327
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
328
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
329
- countryCode: z.ZodString;
330
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
331
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
332
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
333
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
334
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
335
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
336
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
337
- }, z.ZodTypeAny, "passthrough">>>>;
338
- shippingAddressSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
339
- items: z.ZodArray<z.ZodObject<{
340
- id: z.ZodString;
341
- orderId: z.ZodString;
342
- productId: z.ZodNullable<z.ZodString>;
343
- variantId: z.ZodNullable<z.ZodString>;
344
- title: z.ZodString;
345
- subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
346
- thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
347
- variantTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
348
- productHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
349
- quantity: z.ZodNumber;
350
- unitPrice: z.ZodNumber;
351
- total: z.ZodNumber;
352
- status: z.ZodString;
353
- }, "strip", z.ZodTypeAny, {
354
- status: string;
355
- id: string;
356
- productId: string | null;
357
- quantity: number;
358
- variantId: string | null;
359
- unitPrice: number;
360
- title: string;
361
- orderId: string;
362
- total: number;
363
- productHandle?: string | null | undefined;
364
- thumbnail?: string | null | undefined;
365
- subtitle?: string | null | undefined;
366
- variantTitle?: string | null | undefined;
367
- }, {
368
- status: string;
369
- id: string;
370
- productId: string | null;
371
- quantity: number;
372
- variantId: string | null;
373
- unitPrice: number;
374
- title: string;
375
- orderId: string;
376
- total: number;
377
- productHandle?: string | null | undefined;
378
- thumbnail?: string | null | undefined;
379
- subtitle?: string | null | undefined;
380
- variantTitle?: string | null | undefined;
381
- }>, "many">;
382
- }, "strip", z.ZodTypeAny, {
383
- status: string;
384
- createdOn: string;
385
- orderId: string;
386
- total: number;
387
- currencyCode: string;
388
- items: {
389
- status: string;
390
- id: string;
391
- productId: string | null;
392
- quantity: number;
393
- variantId: string | null;
394
- unitPrice: number;
395
- title: string;
396
- orderId: string;
397
- total: number;
398
- productHandle?: string | null | undefined;
399
- thumbnail?: string | null | undefined;
400
- subtitle?: string | null | undefined;
401
- variantTitle?: string | null | undefined;
402
- }[];
403
- orderGroup: string;
404
- orderIds: string[];
405
- orderNumber: string;
406
- totalPaid: number;
407
- orderDate: string;
408
- shippingAddress?: z.objectOutputType<{
409
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
410
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
411
- address1: z.ZodString;
412
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
413
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
414
- countryCode: z.ZodString;
415
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
416
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
417
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
418
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
419
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
420
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
421
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
422
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
423
- updatedOn?: string | null | undefined;
424
- paymentAt?: string | null | undefined;
425
- shippingAddressSummary?: string | null | undefined;
426
- }, {
427
- status: string;
428
- createdOn: string;
429
- orderId: string;
430
- total: number;
431
- currencyCode: string;
432
- items: {
433
- status: string;
434
- id: string;
435
- productId: string | null;
436
- quantity: number;
437
- variantId: string | null;
438
- unitPrice: number;
439
- title: string;
440
- orderId: string;
441
- total: number;
442
- productHandle?: string | null | undefined;
443
- thumbnail?: string | null | undefined;
444
- subtitle?: string | null | undefined;
445
- variantTitle?: string | null | undefined;
446
- }[];
447
- orderGroup: string;
448
- orderIds: string[];
449
- orderNumber: string;
450
- totalPaid: number;
451
- orderDate: string;
452
- shippingAddress?: z.objectInputType<{
453
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
454
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
455
- address1: z.ZodString;
456
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
457
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
- countryCode: z.ZodString;
459
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
460
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
461
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
462
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
463
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
464
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
465
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
466
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
467
- updatedOn?: string | null | undefined;
468
- paymentAt?: string | null | undefined;
469
- shippingAddressSummary?: string | null | undefined;
470
- }>, "many">;
471
- type CustomerOrderList = z.infer<typeof CustomerOrderListSchema>;
472
- declare const CustomerOrderPaymentSchema: z.ZodObject<{
448
+ status: z.ZodString;
449
+ step: z.ZodOptional<z.ZodPreprocess<z.ZodEnum<{
450
+ cancelled: "cancelled";
451
+ confirmed: "confirmed";
452
+ delivered: "delivered";
453
+ outForDelivery: "outForDelivery";
454
+ pending: "pending";
455
+ shipped: "shipped";
456
+ }>, unknown>>;
457
+ carrierName: z.ZodOptional<z.ZodNullable<z.ZodString>>;
458
+ trackingNumber: z.ZodOptional<z.ZodNullable<z.ZodString>>;
459
+ trackingLink: z.ZodOptional<z.ZodNullable<z.ZodString>>;
460
+ shippedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
461
+ deliveredAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
462
+ returnableQuantity: z.ZodDefault<z.ZodNumber>;
463
+ modifiers: z.ZodDefault<z.ZodArray<z.ZodObject<{
464
+ modifierGroupId: z.ZodString;
465
+ modifierGroupName: z.ZodString;
466
+ modifierOptionId: z.ZodNullable<z.ZodString>;
467
+ modifierOptionName: z.ZodNullable<z.ZodString>;
468
+ value: z.ZodNullable<z.ZodString>;
469
+ quantity: z.ZodNumber;
470
+ priceDelta: z.ZodNumber;
471
+ }, z.core.$strip>>>;
472
+ }, z.core.$strip>>;
473
+ payments: z.ZodArray<z.ZodObject<{
473
474
  id: z.ZodString;
474
475
  paymentMethod: z.ZodString;
475
476
  paymentCode: z.ZodString;
477
+ cardBrand: z.ZodOptional<z.ZodNullable<z.ZodString>>;
478
+ cardLast4: z.ZodOptional<z.ZodNullable<z.ZodString>>;
479
+ installments: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
476
480
  amount: z.ZodNumber;
477
- paymentStatus: z.ZodString;
478
- receiptUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
481
+ paymentStatus: z.ZodNullable<z.ZodString>;
482
+ receiptUrl: z.ZodNullable<z.ZodString>;
479
483
  createdOn: z.ZodString;
480
- }, "strip", z.ZodTypeAny, {
481
- id: string;
482
- createdOn: string;
483
- amount: number;
484
- paymentMethod: string;
485
- paymentCode: string;
486
- paymentStatus: string;
487
- receiptUrl?: string | null | undefined;
488
- }, {
489
- id: string;
490
- createdOn: string;
491
- amount: number;
492
- paymentMethod: string;
493
- paymentCode: string;
494
- paymentStatus: string;
495
- receiptUrl?: string | null | undefined;
496
- }>;
497
- type CustomerOrderPayment = z.infer<typeof CustomerOrderPaymentSchema>;
498
- declare const CustomerOrderStatusTimelineSchema: z.ZodObject<{
484
+ }, z.core.$strip>>;
485
+ statusTimeline: z.ZodArray<z.ZodObject<{
499
486
  key: z.ZodString;
500
487
  label: z.ZodString;
501
488
  occurredAt: z.ZodString;
502
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
503
- status: z.ZodString;
489
+ description: z.ZodNullable<z.ZodString>;
490
+ status: z.ZodNullable<z.ZodString>;
504
491
  source: z.ZodString;
505
- }, "strip", z.ZodTypeAny, {
506
- key: string;
507
- status: string;
508
- label: string;
509
- source: string;
510
- occurredAt: string;
511
- description?: string | null | undefined;
512
- }, {
513
- key: string;
514
- status: string;
515
- label: string;
516
- source: string;
517
- occurredAt: string;
518
- description?: string | null | undefined;
519
- }>;
520
- type CustomerOrderStatusTimelineEntry = z.infer<typeof CustomerOrderStatusTimelineSchema>;
521
- /** GET /v1/customer/orders/{orderId} (detalle vía proxy). */
522
- declare const CustomerOrderDetailSchema: z.ZodObject<{
523
- id: z.ZodString;
524
- orderNumber: z.ZodString;
525
- orderGroup: z.ZodString;
526
- status: z.ZodString;
527
- total: z.ZodNumber;
528
- totalPaid: z.ZodNumber;
529
- currencyCode: z.ZodString;
530
- orderDate: z.ZodString;
531
- createdOn: z.ZodString;
532
- updatedOn: z.ZodOptional<z.ZodNullable<z.ZodString>>;
533
- paymentAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
534
- subTotal: z.ZodNumber;
535
- discount: z.ZodNumber;
536
- shipping: z.ZodNumber;
537
- tax: z.ZodNumber;
538
- email: z.ZodString;
539
- phone: z.ZodString;
540
- firstName: z.ZodString;
541
- lastName: z.ZodString;
542
- shippingAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
543
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
544
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
545
- address1: z.ZodString;
546
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
547
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
548
- countryCode: z.ZodString;
549
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
550
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
551
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
552
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
553
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
554
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
555
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
556
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
557
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
558
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
559
- address1: z.ZodString;
560
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
561
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
562
- countryCode: z.ZodString;
563
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
564
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
565
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
566
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
567
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
568
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
569
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
570
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
571
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
572
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
573
- address1: z.ZodString;
574
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
575
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
576
- countryCode: z.ZodString;
577
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
578
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
579
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
580
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
581
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
582
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
583
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
584
- }, z.ZodTypeAny, "passthrough">>>>;
585
- shippingAddressSummary: z.ZodOptional<z.ZodNullable<z.ZodString>>;
586
- billingAddress: z.ZodOptional<z.ZodNullable<z.ZodObject<{
587
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
588
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
589
- address1: z.ZodString;
590
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
591
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
592
- countryCode: z.ZodString;
593
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
594
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
595
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
596
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
597
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
598
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
599
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
600
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
601
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
602
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
603
- address1: z.ZodString;
604
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
605
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
606
- countryCode: z.ZodString;
607
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
608
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
609
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
610
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
611
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
612
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
613
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
614
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
615
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
616
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
617
- address1: z.ZodString;
618
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
619
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
620
- countryCode: z.ZodString;
621
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
622
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
623
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
624
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
625
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
626
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
627
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
628
- }, z.ZodTypeAny, "passthrough">>>>;
629
- items: z.ZodArray<z.ZodObject<{
630
- id: z.ZodString;
631
- orderId: z.ZodString;
632
- productId: z.ZodNullable<z.ZodString>;
633
- variantId: z.ZodNullable<z.ZodString>;
634
- title: z.ZodString;
635
- subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
636
- thumbnail: z.ZodOptional<z.ZodNullable<z.ZodString>>;
637
- variantTitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
638
- productHandle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
639
- quantity: z.ZodNumber;
640
- unitPrice: z.ZodNumber;
641
- total: z.ZodNumber;
642
- status: z.ZodString;
643
- }, "strip", z.ZodTypeAny, {
644
- status: string;
645
- id: string;
646
- productId: string | null;
647
- quantity: number;
648
- variantId: string | null;
649
- unitPrice: number;
650
- title: string;
651
- orderId: string;
652
- total: number;
653
- productHandle?: string | null | undefined;
654
- thumbnail?: string | null | undefined;
655
- subtitle?: string | null | undefined;
656
- variantTitle?: string | null | undefined;
657
- }, {
658
- status: string;
659
- id: string;
660
- productId: string | null;
661
- quantity: number;
662
- variantId: string | null;
663
- unitPrice: number;
664
- title: string;
665
- orderId: string;
666
- total: number;
667
- productHandle?: string | null | undefined;
668
- thumbnail?: string | null | undefined;
669
- subtitle?: string | null | undefined;
670
- variantTitle?: string | null | undefined;
671
- }>, "many">;
672
- payments: z.ZodArray<z.ZodObject<{
673
- id: z.ZodString;
674
- paymentMethod: z.ZodString;
675
- paymentCode: z.ZodString;
676
- amount: z.ZodNumber;
677
- paymentStatus: z.ZodString;
678
- receiptUrl: z.ZodOptional<z.ZodNullable<z.ZodString>>;
679
- createdOn: z.ZodString;
680
- }, "strip", z.ZodTypeAny, {
681
- id: string;
682
- createdOn: string;
683
- amount: number;
684
- paymentMethod: string;
685
- paymentCode: string;
686
- paymentStatus: string;
687
- receiptUrl?: string | null | undefined;
688
- }, {
689
- id: string;
690
- createdOn: string;
691
- amount: number;
692
- paymentMethod: string;
693
- paymentCode: string;
694
- paymentStatus: string;
695
- receiptUrl?: string | null | undefined;
696
- }>, "many">;
697
- statusTimeline: z.ZodArray<z.ZodObject<{
698
- key: z.ZodString;
699
- label: z.ZodString;
700
- occurredAt: z.ZodString;
701
- description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
702
- status: z.ZodString;
703
- source: z.ZodString;
704
- }, "strip", z.ZodTypeAny, {
705
- key: string;
706
- status: string;
707
- label: string;
708
- source: string;
709
- occurredAt: string;
710
- description?: string | null | undefined;
711
- }, {
712
- key: string;
713
- status: string;
714
- label: string;
715
- source: string;
716
- occurredAt: string;
717
- description?: string | null | undefined;
718
- }>, "many">;
719
- }, "strip", z.ZodTypeAny, {
720
- status: string;
721
- id: string;
722
- createdOn: string;
723
- phone: string;
724
- total: number;
725
- email: string;
726
- firstName: string;
727
- lastName: string;
728
- currencyCode: string;
729
- items: {
730
- status: string;
731
- id: string;
732
- productId: string | null;
733
- quantity: number;
734
- variantId: string | null;
735
- unitPrice: number;
736
- title: string;
737
- orderId: string;
738
- total: number;
739
- productHandle?: string | null | undefined;
740
- thumbnail?: string | null | undefined;
741
- subtitle?: string | null | undefined;
742
- variantTitle?: string | null | undefined;
743
- }[];
744
- orderGroup: string;
745
- orderNumber: string;
746
- totalPaid: number;
747
- orderDate: string;
748
- subTotal: number;
749
- discount: number;
750
- shipping: number;
751
- tax: number;
752
- payments: {
753
- id: string;
754
- createdOn: string;
755
- amount: number;
756
- paymentMethod: string;
757
- paymentCode: string;
758
- paymentStatus: string;
759
- receiptUrl?: string | null | undefined;
760
- }[];
761
- statusTimeline: {
762
- key: string;
763
- status: string;
764
- label: string;
765
- source: string;
766
- occurredAt: string;
767
- description?: string | null | undefined;
768
- }[];
769
- shippingAddress?: z.objectOutputType<{
770
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
771
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
772
- address1: z.ZodString;
773
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
774
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
775
- countryCode: z.ZodString;
776
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
777
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
778
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
779
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
780
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
781
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
782
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
783
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
784
- billingAddress?: z.objectOutputType<{
785
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
786
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
787
- address1: z.ZodString;
788
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
789
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
790
- countryCode: z.ZodString;
791
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
792
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
793
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
794
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
795
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
796
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
797
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
798
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
799
- updatedOn?: string | null | undefined;
800
- paymentAt?: string | null | undefined;
801
- shippingAddressSummary?: string | null | undefined;
802
- }, {
803
- status: string;
804
- id: string;
805
- createdOn: string;
806
- phone: string;
807
- total: number;
808
- email: string;
809
- firstName: string;
810
- lastName: string;
811
- currencyCode: string;
812
- items: {
813
- status: string;
814
- id: string;
815
- productId: string | null;
816
- quantity: number;
817
- variantId: string | null;
818
- unitPrice: number;
819
- title: string;
820
- orderId: string;
821
- total: number;
822
- productHandle?: string | null | undefined;
823
- thumbnail?: string | null | undefined;
824
- subtitle?: string | null | undefined;
825
- variantTitle?: string | null | undefined;
826
- }[];
827
- orderGroup: string;
828
- orderNumber: string;
829
- totalPaid: number;
830
- orderDate: string;
831
- subTotal: number;
832
- discount: number;
833
- shipping: number;
834
- tax: number;
835
- payments: {
836
- id: string;
837
- createdOn: string;
838
- amount: number;
839
- paymentMethod: string;
840
- paymentCode: string;
841
- paymentStatus: string;
842
- receiptUrl?: string | null | undefined;
843
- }[];
844
- statusTimeline: {
845
- key: string;
846
- status: string;
847
- label: string;
848
- source: string;
849
- occurredAt: string;
850
- description?: string | null | undefined;
851
- }[];
852
- shippingAddress?: z.objectInputType<{
853
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
854
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
855
- address1: z.ZodString;
856
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
857
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
858
- countryCode: z.ZodString;
859
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
860
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
861
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
862
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
863
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
864
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
865
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
866
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
867
- billingAddress?: z.objectInputType<{
868
- name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
869
- company: z.ZodOptional<z.ZodNullable<z.ZodString>>;
870
- address1: z.ZodString;
871
- address2: z.ZodOptional<z.ZodNullable<z.ZodString>>;
872
- city: z.ZodOptional<z.ZodNullable<z.ZodString>>;
873
- countryCode: z.ZodString;
874
- province: z.ZodOptional<z.ZodNullable<z.ZodString>>;
875
- postalCode: z.ZodOptional<z.ZodNullable<z.ZodString>>;
876
- district: z.ZodOptional<z.ZodNullable<z.ZodString>>;
877
- phone: z.ZodOptional<z.ZodNullable<z.ZodString>>;
878
- latitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
879
- longitude: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
880
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
881
- }, z.ZodTypeAny, "passthrough"> | null | undefined;
882
- updatedOn?: string | null | undefined;
883
- paymentAt?: string | null | undefined;
884
- shippingAddressSummary?: string | null | undefined;
885
- }>;
886
- type CustomerOrderDetail = z.infer<typeof CustomerOrderDetailSchema>;
887
- declare function formatCustomerOrderStatus(status: string): string;
888
- declare function customerOrderStatusTone(status: string): 'default' | 'success' | 'warning' | 'danger' | 'info';
889
- declare function formatOrderDate(iso: string, locale?: string): string;
890
- declare function formatOrderDateTime(iso: string, locale?: string): string;
891
-
892
- export { type CustomerOrderDetail, CustomerOrderDetailSchema, type CustomerOrderLineItem, CustomerOrderLineItemSchema, type CustomerOrderList, type CustomerOrderListItem, CustomerOrderListItemSchema, CustomerOrderListSchema, type CustomerOrderPayment, CustomerOrderPaymentSchema, type CustomerOrderShippingAddress, CustomerOrderShippingAddressSchema, type CustomerOrderStatusTimelineEntry, CustomerOrderStatusTimelineSchema, customerOrderStatusTone, formatCustomerOrderStatus, formatOrderDate, formatOrderDateTime };
492
+ }, z.core.$strip>>;
493
+ shipments: z.ZodArray<z.ZodObject<{
494
+ carrierName: z.ZodNullable<z.ZodString>;
495
+ trackingNumber: z.ZodNullable<z.ZodString>;
496
+ trackingLink: z.ZodNullable<z.ZodString>;
497
+ }, z.core.$strip>>;
498
+ paymentPath: z.ZodOptional<z.ZodNullable<z.ZodString>>;
499
+ returnStatus: z.ZodOptional<z.ZodNullable<z.ZodString>>;
500
+ returnDeadline: z.ZodOptional<z.ZodNullable<z.ZodString>>;
501
+ canRequestReturn: z.ZodDefault<z.ZodBoolean>;
502
+ cancellationRequestedAt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
503
+ canRequestCancellation: z.ZodDefault<z.ZodBoolean>;
504
+ }, z.core.$strip>;
505
+ export type CustomerOrderDetail = z.infer<typeof CustomerOrderDetailSchema>;
506
+ export declare function formatCustomerOrderStatus(status: string): string;
507
+ export declare function customerOrderStatusTone(status: string): 'default' | 'success' | 'warning' | 'danger' | 'info';
508
+ export declare function formatOrderDate(iso: string, locale?: string, timeZone?: string): string;
509
+ export declare function formatOrderDateTime(iso: string, locale?: string): string;