@teez-sdk/teez-b2c-api 2.2.0 → 4.0.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 (790) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +228 -114
  3. package/dist/_virtual/_rolldown/runtime.cjs +23 -0
  4. package/dist/api/auth/check-token/index.d.cts +2 -0
  5. package/dist/api/auth/check-token/index.d.mts +2 -0
  6. package/dist/api/auth/check-token/operation.cjs +25 -0
  7. package/dist/api/auth/check-token/operation.cjs.map +1 -0
  8. package/dist/api/auth/check-token/operation.d.cts +44 -0
  9. package/dist/api/auth/check-token/operation.d.mts +44 -0
  10. package/dist/api/auth/check-token/operation.mjs +25 -0
  11. package/dist/api/auth/check-token/operation.mjs.map +1 -0
  12. package/dist/api/auth/check-token/responses.cjs +19 -0
  13. package/dist/api/auth/check-token/responses.cjs.map +1 -0
  14. package/dist/api/auth/check-token/responses.mjs +17 -0
  15. package/dist/api/auth/check-token/responses.mjs.map +1 -0
  16. package/dist/api/auth/check-token/types.d.cts +17 -0
  17. package/dist/api/auth/check-token/types.d.mts +17 -0
  18. package/dist/api/auth/index.d.cts +7 -0
  19. package/dist/api/auth/index.d.mts +7 -0
  20. package/dist/api/auth/login/index.d.cts +2 -0
  21. package/dist/api/auth/login/index.d.mts +2 -0
  22. package/dist/api/auth/login/operation.cjs +27 -0
  23. package/dist/api/auth/login/operation.cjs.map +1 -0
  24. package/dist/api/auth/login/operation.d.cts +34 -0
  25. package/dist/api/auth/login/operation.d.mts +34 -0
  26. package/dist/api/auth/login/operation.mjs +27 -0
  27. package/dist/api/auth/login/operation.mjs.map +1 -0
  28. package/dist/api/auth/login/request.cjs +9 -0
  29. package/dist/api/auth/login/request.cjs.map +1 -0
  30. package/dist/api/auth/login/request.mjs +7 -0
  31. package/dist/api/auth/login/request.mjs.map +1 -0
  32. package/dist/api/auth/login/types.d.cts +17 -0
  33. package/dist/api/auth/login/types.d.mts +17 -0
  34. package/dist/api/auth/operations.cjs +13 -0
  35. package/dist/api/auth/operations.cjs.map +1 -0
  36. package/dist/api/auth/operations.d.cts +118 -0
  37. package/dist/api/auth/operations.d.mts +118 -0
  38. package/dist/api/auth/operations.mjs +13 -0
  39. package/dist/api/auth/operations.mjs.map +1 -0
  40. package/dist/api/auth/verify/index.d.cts +2 -0
  41. package/dist/api/auth/verify/index.d.mts +2 -0
  42. package/dist/api/auth/verify/operation.cjs +27 -0
  43. package/dist/api/auth/verify/operation.cjs.map +1 -0
  44. package/dist/api/auth/verify/operation.d.cts +54 -0
  45. package/dist/api/auth/verify/operation.d.mts +54 -0
  46. package/dist/api/auth/verify/operation.mjs +27 -0
  47. package/dist/api/auth/verify/operation.mjs.map +1 -0
  48. package/dist/api/auth/verify/request.cjs +12 -0
  49. package/dist/api/auth/verify/request.cjs.map +1 -0
  50. package/dist/api/auth/verify/request.mjs +10 -0
  51. package/dist/api/auth/verify/request.mjs.map +1 -0
  52. package/dist/api/auth/verify/responses.cjs +19 -0
  53. package/dist/api/auth/verify/responses.cjs.map +1 -0
  54. package/dist/api/auth/verify/responses.mjs +17 -0
  55. package/dist/api/auth/verify/responses.mjs.map +1 -0
  56. package/dist/api/auth/verify/types.d.cts +17 -0
  57. package/dist/api/auth/verify/types.d.mts +17 -0
  58. package/dist/api/banners/index.d.cts +3 -0
  59. package/dist/api/banners/index.d.mts +3 -0
  60. package/dist/api/banners/list/index.d.cts +2 -0
  61. package/dist/api/banners/list/index.d.mts +2 -0
  62. package/dist/api/banners/list/operation.cjs +23 -0
  63. package/dist/api/banners/list/operation.cjs.map +1 -0
  64. package/dist/api/banners/list/operation.d.cts +71 -0
  65. package/dist/api/banners/list/operation.d.mts +71 -0
  66. package/dist/api/banners/list/operation.mjs +23 -0
  67. package/dist/api/banners/list/operation.mjs.map +1 -0
  68. package/dist/api/banners/list/request.cjs +9 -0
  69. package/dist/api/banners/list/request.cjs.map +1 -0
  70. package/dist/api/banners/list/request.mjs +7 -0
  71. package/dist/api/banners/list/request.mjs.map +1 -0
  72. package/dist/api/banners/list/responses.cjs +30 -0
  73. package/dist/api/banners/list/responses.cjs.map +1 -0
  74. package/dist/api/banners/list/responses.mjs +28 -0
  75. package/dist/api/banners/list/responses.mjs.map +1 -0
  76. package/dist/api/banners/list/types.d.cts +17 -0
  77. package/dist/api/banners/list/types.d.mts +17 -0
  78. package/dist/api/banners/operations.cjs +6 -0
  79. package/dist/api/banners/operations.cjs.map +1 -0
  80. package/dist/api/banners/operations.d.cts +73 -0
  81. package/dist/api/banners/operations.d.mts +73 -0
  82. package/dist/api/banners/operations.mjs +7 -0
  83. package/dist/api/banners/operations.mjs.map +1 -0
  84. package/dist/api/categories/get/index.d.cts +2 -0
  85. package/dist/api/categories/get/index.d.mts +2 -0
  86. package/dist/api/categories/get/operation.cjs +25 -0
  87. package/dist/api/categories/get/operation.cjs.map +1 -0
  88. package/dist/api/categories/get/operation.d.cts +31 -0
  89. package/dist/api/categories/get/operation.d.mts +31 -0
  90. package/dist/api/categories/get/operation.mjs +25 -0
  91. package/dist/api/categories/get/operation.mjs.map +1 -0
  92. package/dist/api/categories/get/request.cjs +9 -0
  93. package/dist/api/categories/get/request.cjs.map +1 -0
  94. package/dist/api/categories/get/request.mjs +7 -0
  95. package/dist/api/categories/get/request.mjs.map +1 -0
  96. package/dist/api/categories/get/responses.cjs +22 -0
  97. package/dist/api/categories/get/responses.cjs.map +1 -0
  98. package/dist/api/categories/get/responses.d.cts +22 -0
  99. package/dist/api/categories/get/responses.d.mts +22 -0
  100. package/dist/api/categories/get/responses.mjs +20 -0
  101. package/dist/api/categories/get/responses.mjs.map +1 -0
  102. package/dist/api/categories/get/types.d.cts +17 -0
  103. package/dist/api/categories/get/types.d.mts +17 -0
  104. package/dist/api/categories/get-parents/index.d.cts +2 -0
  105. package/dist/api/categories/get-parents/index.d.mts +2 -0
  106. package/dist/api/categories/get-parents/operation.cjs +23 -0
  107. package/dist/api/categories/get-parents/operation.cjs.map +1 -0
  108. package/dist/api/categories/get-parents/operation.d.cts +29 -0
  109. package/dist/api/categories/get-parents/operation.d.mts +29 -0
  110. package/dist/api/categories/get-parents/operation.mjs +23 -0
  111. package/dist/api/categories/get-parents/operation.mjs.map +1 -0
  112. package/dist/api/categories/get-parents/request.cjs +12 -0
  113. package/dist/api/categories/get-parents/request.cjs.map +1 -0
  114. package/dist/api/categories/get-parents/request.mjs +10 -0
  115. package/dist/api/categories/get-parents/request.mjs.map +1 -0
  116. package/dist/api/categories/get-parents/responses.cjs +20 -0
  117. package/dist/api/categories/get-parents/responses.cjs.map +1 -0
  118. package/dist/api/categories/get-parents/responses.d.cts +18 -0
  119. package/dist/api/categories/get-parents/responses.d.mts +18 -0
  120. package/dist/api/categories/get-parents/responses.mjs +18 -0
  121. package/dist/api/categories/get-parents/responses.mjs.map +1 -0
  122. package/dist/api/categories/get-parents/types.d.cts +17 -0
  123. package/dist/api/categories/get-parents/types.d.mts +17 -0
  124. package/dist/api/categories/index.d.cts +7 -0
  125. package/dist/api/categories/index.d.mts +7 -0
  126. package/dist/api/categories/list/index.d.cts +2 -0
  127. package/dist/api/categories/list/index.d.mts +2 -0
  128. package/dist/api/categories/list/operation.cjs +21 -0
  129. package/dist/api/categories/list/operation.cjs.map +1 -0
  130. package/dist/api/categories/list/operation.d.cts +40 -0
  131. package/dist/api/categories/list/operation.d.mts +40 -0
  132. package/dist/api/categories/list/operation.mjs +21 -0
  133. package/dist/api/categories/list/operation.mjs.map +1 -0
  134. package/dist/api/categories/list/responses.cjs +17 -0
  135. package/dist/api/categories/list/responses.cjs.map +1 -0
  136. package/dist/api/categories/list/responses.mjs +15 -0
  137. package/dist/api/categories/list/responses.mjs.map +1 -0
  138. package/dist/api/categories/list/types.d.cts +17 -0
  139. package/dist/api/categories/list/types.d.mts +17 -0
  140. package/dist/api/categories/operations.cjs +13 -0
  141. package/dist/api/categories/operations.cjs.map +1 -0
  142. package/dist/api/categories/operations.d.cts +86 -0
  143. package/dist/api/categories/operations.d.mts +86 -0
  144. package/dist/api/categories/operations.mjs +13 -0
  145. package/dist/api/categories/operations.mjs.map +1 -0
  146. package/dist/api/collections/get/index.d.cts +2 -0
  147. package/dist/api/collections/get/index.d.mts +2 -0
  148. package/dist/api/collections/get/operation.cjs +25 -0
  149. package/dist/api/collections/get/operation.cjs.map +1 -0
  150. package/dist/api/collections/get/operation.d.cts +44 -0
  151. package/dist/api/collections/get/operation.d.mts +44 -0
  152. package/dist/api/collections/get/operation.mjs +25 -0
  153. package/dist/api/collections/get/operation.mjs.map +1 -0
  154. package/dist/api/collections/get/request.cjs +9 -0
  155. package/dist/api/collections/get/request.cjs.map +1 -0
  156. package/dist/api/collections/get/request.mjs +7 -0
  157. package/dist/api/collections/get/request.mjs.map +1 -0
  158. package/dist/api/collections/get/responses.cjs +17 -0
  159. package/dist/api/collections/get/responses.cjs.map +1 -0
  160. package/dist/api/collections/get/responses.mjs +15 -0
  161. package/dist/api/collections/get/responses.mjs.map +1 -0
  162. package/dist/api/collections/get/types.d.cts +17 -0
  163. package/dist/api/collections/get/types.d.mts +17 -0
  164. package/dist/api/collections/get-skus/index.d.cts +2 -0
  165. package/dist/api/collections/get-skus/index.d.mts +2 -0
  166. package/dist/api/collections/get-skus/operation.cjs +23 -0
  167. package/dist/api/collections/get-skus/operation.cjs.map +1 -0
  168. package/dist/api/collections/get-skus/operation.d.cts +241 -0
  169. package/dist/api/collections/get-skus/operation.d.mts +241 -0
  170. package/dist/api/collections/get-skus/operation.mjs +23 -0
  171. package/dist/api/collections/get-skus/operation.mjs.map +1 -0
  172. package/dist/api/collections/get-skus/request.cjs +22 -0
  173. package/dist/api/collections/get-skus/request.cjs.map +1 -0
  174. package/dist/api/collections/get-skus/request.mjs +20 -0
  175. package/dist/api/collections/get-skus/request.mjs.map +1 -0
  176. package/dist/api/collections/get-skus/responses.cjs +41 -0
  177. package/dist/api/collections/get-skus/responses.cjs.map +1 -0
  178. package/dist/api/collections/get-skus/responses.mjs +39 -0
  179. package/dist/api/collections/get-skus/responses.mjs.map +1 -0
  180. package/dist/api/collections/get-skus/types.d.cts +17 -0
  181. package/dist/api/collections/get-skus/types.d.mts +17 -0
  182. package/dist/api/collections/index.d.cts +7 -0
  183. package/dist/api/collections/index.d.mts +7 -0
  184. package/dist/api/collections/list/index.d.cts +2 -0
  185. package/dist/api/collections/list/index.d.mts +2 -0
  186. package/dist/api/collections/list/operation.cjs +23 -0
  187. package/dist/api/collections/list/operation.cjs.map +1 -0
  188. package/dist/api/collections/list/operation.d.cts +44 -0
  189. package/dist/api/collections/list/operation.d.mts +44 -0
  190. package/dist/api/collections/list/operation.mjs +23 -0
  191. package/dist/api/collections/list/operation.mjs.map +1 -0
  192. package/dist/api/collections/list/request.cjs +12 -0
  193. package/dist/api/collections/list/request.cjs.map +1 -0
  194. package/dist/api/collections/list/request.mjs +10 -0
  195. package/dist/api/collections/list/request.mjs.map +1 -0
  196. package/dist/api/collections/list/responses.cjs +16 -0
  197. package/dist/api/collections/list/responses.cjs.map +1 -0
  198. package/dist/api/collections/list/responses.mjs +14 -0
  199. package/dist/api/collections/list/responses.mjs.map +1 -0
  200. package/dist/api/collections/list/types.d.cts +17 -0
  201. package/dist/api/collections/list/types.d.mts +17 -0
  202. package/dist/api/collections/operations.cjs +13 -0
  203. package/dist/api/collections/operations.cjs.map +1 -0
  204. package/dist/api/collections/operations.d.cts +314 -0
  205. package/dist/api/collections/operations.d.mts +314 -0
  206. package/dist/api/collections/operations.mjs +13 -0
  207. package/dist/api/collections/operations.mjs.map +1 -0
  208. package/dist/api/favorites/add/index.d.cts +2 -0
  209. package/dist/api/favorites/add/index.d.mts +2 -0
  210. package/dist/api/favorites/add/operation.cjs +27 -0
  211. package/dist/api/favorites/add/operation.cjs.map +1 -0
  212. package/dist/api/favorites/add/operation.d.cts +30 -0
  213. package/dist/api/favorites/add/operation.d.mts +30 -0
  214. package/dist/api/favorites/add/operation.mjs +27 -0
  215. package/dist/api/favorites/add/operation.mjs.map +1 -0
  216. package/dist/api/favorites/add/request.cjs +9 -0
  217. package/dist/api/favorites/add/request.cjs.map +1 -0
  218. package/dist/api/favorites/add/request.mjs +7 -0
  219. package/dist/api/favorites/add/request.mjs.map +1 -0
  220. package/dist/api/favorites/add/types.d.cts +17 -0
  221. package/dist/api/favorites/add/types.d.mts +17 -0
  222. package/dist/api/favorites/get-ids/index.d.cts +2 -0
  223. package/dist/api/favorites/get-ids/index.d.mts +2 -0
  224. package/dist/api/favorites/get-ids/operation.cjs +25 -0
  225. package/dist/api/favorites/get-ids/operation.cjs.map +1 -0
  226. package/dist/api/favorites/get-ids/operation.d.cts +30 -0
  227. package/dist/api/favorites/get-ids/operation.d.mts +30 -0
  228. package/dist/api/favorites/get-ids/operation.mjs +25 -0
  229. package/dist/api/favorites/get-ids/operation.mjs.map +1 -0
  230. package/dist/api/favorites/get-ids/responses.cjs +9 -0
  231. package/dist/api/favorites/get-ids/responses.cjs.map +1 -0
  232. package/dist/api/favorites/get-ids/responses.mjs +7 -0
  233. package/dist/api/favorites/get-ids/responses.mjs.map +1 -0
  234. package/dist/api/favorites/get-ids/types.d.cts +17 -0
  235. package/dist/api/favorites/get-ids/types.d.mts +17 -0
  236. package/dist/api/favorites/index.d.cts +7 -0
  237. package/dist/api/favorites/index.d.mts +7 -0
  238. package/dist/api/favorites/operations.cjs +13 -0
  239. package/dist/api/favorites/operations.cjs.map +1 -0
  240. package/dist/api/favorites/operations.d.cts +76 -0
  241. package/dist/api/favorites/operations.d.mts +76 -0
  242. package/dist/api/favorites/operations.mjs +13 -0
  243. package/dist/api/favorites/operations.mjs.map +1 -0
  244. package/dist/api/favorites/remove/index.d.cts +2 -0
  245. package/dist/api/favorites/remove/index.d.mts +2 -0
  246. package/dist/api/favorites/remove/operation.cjs +27 -0
  247. package/dist/api/favorites/remove/operation.cjs.map +1 -0
  248. package/dist/api/favorites/remove/operation.d.cts +30 -0
  249. package/dist/api/favorites/remove/operation.d.mts +30 -0
  250. package/dist/api/favorites/remove/operation.mjs +27 -0
  251. package/dist/api/favorites/remove/operation.mjs.map +1 -0
  252. package/dist/api/favorites/remove/request.cjs +9 -0
  253. package/dist/api/favorites/remove/request.cjs.map +1 -0
  254. package/dist/api/favorites/remove/request.mjs +7 -0
  255. package/dist/api/favorites/remove/request.mjs.map +1 -0
  256. package/dist/api/favorites/remove/types.d.cts +17 -0
  257. package/dist/api/favorites/remove/types.d.mts +17 -0
  258. package/dist/api/feature-flags/index.d.cts +3 -0
  259. package/dist/api/feature-flags/index.d.mts +3 -0
  260. package/dist/api/feature-flags/list/index.d.cts +2 -0
  261. package/dist/api/feature-flags/list/index.d.mts +2 -0
  262. package/dist/api/feature-flags/list/operation.cjs +21 -0
  263. package/dist/api/feature-flags/list/operation.cjs.map +1 -0
  264. package/dist/api/feature-flags/list/operation.d.cts +28 -0
  265. package/dist/api/feature-flags/list/operation.d.mts +28 -0
  266. package/dist/api/feature-flags/list/operation.mjs +21 -0
  267. package/dist/api/feature-flags/list/operation.mjs.map +1 -0
  268. package/dist/api/feature-flags/list/responses.cjs +13 -0
  269. package/dist/api/feature-flags/list/responses.cjs.map +1 -0
  270. package/dist/api/feature-flags/list/responses.mjs +11 -0
  271. package/dist/api/feature-flags/list/responses.mjs.map +1 -0
  272. package/dist/api/feature-flags/list/types.d.cts +17 -0
  273. package/dist/api/feature-flags/list/types.d.mts +17 -0
  274. package/dist/api/feature-flags/operations.cjs +6 -0
  275. package/dist/api/feature-flags/operations.cjs.map +1 -0
  276. package/dist/api/feature-flags/operations.d.cts +30 -0
  277. package/dist/api/feature-flags/operations.d.mts +30 -0
  278. package/dist/api/feature-flags/operations.mjs +7 -0
  279. package/dist/api/feature-flags/operations.mjs.map +1 -0
  280. package/dist/api/products/autocomplete/index.d.cts +2 -0
  281. package/dist/api/products/autocomplete/index.d.mts +2 -0
  282. package/dist/api/products/autocomplete/operation.cjs +23 -0
  283. package/dist/api/products/autocomplete/operation.cjs.map +1 -0
  284. package/dist/api/products/autocomplete/operation.d.cts +35 -0
  285. package/dist/api/products/autocomplete/operation.d.mts +35 -0
  286. package/dist/api/products/autocomplete/operation.mjs +23 -0
  287. package/dist/api/products/autocomplete/operation.mjs.map +1 -0
  288. package/dist/api/products/autocomplete/request.cjs +9 -0
  289. package/dist/api/products/autocomplete/request.cjs.map +1 -0
  290. package/dist/api/products/autocomplete/request.mjs +7 -0
  291. package/dist/api/products/autocomplete/request.mjs.map +1 -0
  292. package/dist/api/products/autocomplete/responses.cjs +13 -0
  293. package/dist/api/products/autocomplete/responses.cjs.map +1 -0
  294. package/dist/api/products/autocomplete/responses.mjs +11 -0
  295. package/dist/api/products/autocomplete/responses.mjs.map +1 -0
  296. package/dist/api/products/autocomplete/types.d.cts +17 -0
  297. package/dist/api/products/autocomplete/types.d.mts +17 -0
  298. package/dist/api/products/get-reviews/index.d.cts +2 -0
  299. package/dist/api/products/get-reviews/index.d.mts +2 -0
  300. package/dist/api/products/get-reviews/operation.cjs +26 -0
  301. package/dist/api/products/get-reviews/operation.cjs.map +1 -0
  302. package/dist/api/products/get-reviews/operation.d.cts +85 -0
  303. package/dist/api/products/get-reviews/operation.d.mts +85 -0
  304. package/dist/api/products/get-reviews/operation.mjs +26 -0
  305. package/dist/api/products/get-reviews/operation.mjs.map +1 -0
  306. package/dist/api/products/get-reviews/request.cjs +14 -0
  307. package/dist/api/products/get-reviews/request.cjs.map +1 -0
  308. package/dist/api/products/get-reviews/request.mjs +11 -0
  309. package/dist/api/products/get-reviews/request.mjs.map +1 -0
  310. package/dist/api/products/get-reviews/responses.cjs +20 -0
  311. package/dist/api/products/get-reviews/responses.cjs.map +1 -0
  312. package/dist/api/products/get-reviews/responses.mjs +18 -0
  313. package/dist/api/products/get-reviews/responses.mjs.map +1 -0
  314. package/dist/api/products/get-reviews/types.d.cts +17 -0
  315. package/dist/api/products/get-reviews/types.d.mts +17 -0
  316. package/dist/api/products/get-sort-options/index.d.cts +2 -0
  317. package/dist/api/products/get-sort-options/index.d.mts +2 -0
  318. package/dist/api/products/get-sort-options/operation.cjs +23 -0
  319. package/dist/api/products/get-sort-options/operation.cjs.map +1 -0
  320. package/dist/api/products/get-sort-options/operation.d.cts +37 -0
  321. package/dist/api/products/get-sort-options/operation.d.mts +37 -0
  322. package/dist/api/products/get-sort-options/operation.mjs +23 -0
  323. package/dist/api/products/get-sort-options/operation.mjs.map +1 -0
  324. package/dist/api/products/get-sort-options/request.cjs +12 -0
  325. package/dist/api/products/get-sort-options/request.cjs.map +1 -0
  326. package/dist/api/products/get-sort-options/request.mjs +10 -0
  327. package/dist/api/products/get-sort-options/request.mjs.map +1 -0
  328. package/dist/api/products/get-sort-options/responses.cjs +21 -0
  329. package/dist/api/products/get-sort-options/responses.cjs.map +1 -0
  330. package/dist/api/products/get-sort-options/responses.mjs +19 -0
  331. package/dist/api/products/get-sort-options/responses.mjs.map +1 -0
  332. package/dist/api/products/get-sort-options/types.d.cts +17 -0
  333. package/dist/api/products/get-sort-options/types.d.mts +17 -0
  334. package/dist/api/products/index.d.cts +9 -0
  335. package/dist/api/products/index.d.mts +9 -0
  336. package/dist/api/products/list/index.d.cts +2 -0
  337. package/dist/api/products/list/index.d.mts +2 -0
  338. package/dist/api/products/list/operation.cjs +23 -0
  339. package/dist/api/products/list/operation.cjs.map +1 -0
  340. package/dist/api/products/list/operation.d.cts +287 -0
  341. package/dist/api/products/list/operation.d.mts +287 -0
  342. package/dist/api/products/list/operation.mjs +23 -0
  343. package/dist/api/products/list/operation.mjs.map +1 -0
  344. package/dist/api/products/list/request.cjs +27 -0
  345. package/dist/api/products/list/request.cjs.map +1 -0
  346. package/dist/api/products/list/request.mjs +25 -0
  347. package/dist/api/products/list/request.mjs.map +1 -0
  348. package/dist/api/products/list/responses.cjs +49 -0
  349. package/dist/api/products/list/responses.cjs.map +1 -0
  350. package/dist/api/products/list/responses.mjs +47 -0
  351. package/dist/api/products/list/responses.mjs.map +1 -0
  352. package/dist/api/products/list/types.d.cts +17 -0
  353. package/dist/api/products/list/types.d.mts +17 -0
  354. package/dist/api/products/operations.cjs +15 -0
  355. package/dist/api/products/operations.cjs.map +1 -0
  356. package/dist/api/products/operations.d.cts +422 -0
  357. package/dist/api/products/operations.d.mts +422 -0
  358. package/dist/api/products/operations.mjs +15 -0
  359. package/dist/api/products/operations.mjs.map +1 -0
  360. package/dist/api/promo/index.d.cts +3 -0
  361. package/dist/api/promo/index.d.mts +3 -0
  362. package/dist/api/promo/list/index.d.cts +2 -0
  363. package/dist/api/promo/list/index.d.mts +2 -0
  364. package/dist/api/promo/list/operation.cjs +21 -0
  365. package/dist/api/promo/list/operation.cjs.map +1 -0
  366. package/dist/api/promo/list/operation.d.cts +41 -0
  367. package/dist/api/promo/list/operation.d.mts +41 -0
  368. package/dist/api/promo/list/operation.mjs +21 -0
  369. package/dist/api/promo/list/operation.mjs.map +1 -0
  370. package/dist/api/promo/list/responses.cjs +18 -0
  371. package/dist/api/promo/list/responses.cjs.map +1 -0
  372. package/dist/api/promo/list/responses.mjs +16 -0
  373. package/dist/api/promo/list/responses.mjs.map +1 -0
  374. package/dist/api/promo/list/types.d.cts +17 -0
  375. package/dist/api/promo/list/types.d.mts +17 -0
  376. package/dist/api/promo/operations.cjs +6 -0
  377. package/dist/api/promo/operations.cjs.map +1 -0
  378. package/dist/api/promo/operations.d.cts +43 -0
  379. package/dist/api/promo/operations.d.mts +43 -0
  380. package/dist/api/promo/operations.mjs +7 -0
  381. package/dist/api/promo/operations.mjs.map +1 -0
  382. package/dist/api/promocodes/index.d.cts +3 -0
  383. package/dist/api/promocodes/index.d.mts +3 -0
  384. package/dist/api/promocodes/operations.cjs +6 -0
  385. package/dist/api/promocodes/operations.cjs.map +1 -0
  386. package/dist/api/promocodes/operations.d.cts +106 -0
  387. package/dist/api/promocodes/operations.d.mts +106 -0
  388. package/dist/api/promocodes/operations.mjs +7 -0
  389. package/dist/api/promocodes/operations.mjs.map +1 -0
  390. package/dist/api/promocodes/validate/index.d.cts +2 -0
  391. package/dist/api/promocodes/validate/index.d.mts +2 -0
  392. package/dist/api/promocodes/validate/operation.cjs +27 -0
  393. package/dist/api/promocodes/validate/operation.cjs.map +1 -0
  394. package/dist/api/promocodes/validate/operation.d.cts +104 -0
  395. package/dist/api/promocodes/validate/operation.d.mts +104 -0
  396. package/dist/api/promocodes/validate/operation.mjs +27 -0
  397. package/dist/api/promocodes/validate/operation.mjs.map +1 -0
  398. package/dist/api/promocodes/validate/request.cjs +21 -0
  399. package/dist/api/promocodes/validate/request.cjs.map +1 -0
  400. package/dist/api/promocodes/validate/request.mjs +19 -0
  401. package/dist/api/promocodes/validate/request.mjs.map +1 -0
  402. package/dist/api/promocodes/validate/responses.cjs +27 -0
  403. package/dist/api/promocodes/validate/responses.cjs.map +1 -0
  404. package/dist/api/promocodes/validate/responses.mjs +25 -0
  405. package/dist/api/promocodes/validate/responses.mjs.map +1 -0
  406. package/dist/api/promocodes/validate/types.d.cts +17 -0
  407. package/dist/api/promocodes/validate/types.d.mts +17 -0
  408. package/dist/api/shops/get/index.d.cts +2 -0
  409. package/dist/api/shops/get/index.d.mts +2 -0
  410. package/dist/api/shops/get/operation.cjs +25 -0
  411. package/dist/api/shops/get/operation.cjs.map +1 -0
  412. package/dist/api/shops/get/operation.d.cts +95 -0
  413. package/dist/api/shops/get/operation.d.mts +95 -0
  414. package/dist/api/shops/get/operation.mjs +25 -0
  415. package/dist/api/shops/get/operation.mjs.map +1 -0
  416. package/dist/api/shops/get/request.cjs +9 -0
  417. package/dist/api/shops/get/request.cjs.map +1 -0
  418. package/dist/api/shops/get/request.mjs +7 -0
  419. package/dist/api/shops/get/request.mjs.map +1 -0
  420. package/dist/api/shops/get/responses.cjs +34 -0
  421. package/dist/api/shops/get/responses.cjs.map +1 -0
  422. package/dist/api/shops/get/responses.mjs +32 -0
  423. package/dist/api/shops/get/responses.mjs.map +1 -0
  424. package/dist/api/shops/get/types.d.cts +17 -0
  425. package/dist/api/shops/get/types.d.mts +17 -0
  426. package/dist/api/shops/get-monobrand/index.d.cts +2 -0
  427. package/dist/api/shops/get-monobrand/index.d.mts +2 -0
  428. package/dist/api/shops/get-monobrand/operation.cjs +23 -0
  429. package/dist/api/shops/get-monobrand/operation.cjs.map +1 -0
  430. package/dist/api/shops/get-monobrand/operation.d.cts +56 -0
  431. package/dist/api/shops/get-monobrand/operation.d.mts +56 -0
  432. package/dist/api/shops/get-monobrand/operation.mjs +23 -0
  433. package/dist/api/shops/get-monobrand/operation.mjs.map +1 -0
  434. package/dist/api/shops/get-monobrand/request.cjs +13 -0
  435. package/dist/api/shops/get-monobrand/request.cjs.map +1 -0
  436. package/dist/api/shops/get-monobrand/request.mjs +11 -0
  437. package/dist/api/shops/get-monobrand/request.mjs.map +1 -0
  438. package/dist/api/shops/get-monobrand/responses.cjs +17 -0
  439. package/dist/api/shops/get-monobrand/responses.cjs.map +1 -0
  440. package/dist/api/shops/get-monobrand/responses.mjs +15 -0
  441. package/dist/api/shops/get-monobrand/responses.mjs.map +1 -0
  442. package/dist/api/shops/get-monobrand/types.d.cts +17 -0
  443. package/dist/api/shops/get-monobrand/types.d.mts +17 -0
  444. package/dist/api/shops/get-products/index.d.cts +2 -0
  445. package/dist/api/shops/get-products/index.d.mts +2 -0
  446. package/dist/api/shops/get-products/operation.cjs +26 -0
  447. package/dist/api/shops/get-products/operation.cjs.map +1 -0
  448. package/dist/api/shops/get-products/operation.d.cts +266 -0
  449. package/dist/api/shops/get-products/operation.d.mts +266 -0
  450. package/dist/api/shops/get-products/operation.mjs +26 -0
  451. package/dist/api/shops/get-products/operation.mjs.map +1 -0
  452. package/dist/api/shops/get-products/request.cjs +27 -0
  453. package/dist/api/shops/get-products/request.cjs.map +1 -0
  454. package/dist/api/shops/get-products/request.mjs +24 -0
  455. package/dist/api/shops/get-products/request.mjs.map +1 -0
  456. package/dist/api/shops/get-products/responses.cjs +43 -0
  457. package/dist/api/shops/get-products/responses.cjs.map +1 -0
  458. package/dist/api/shops/get-products/responses.mjs +41 -0
  459. package/dist/api/shops/get-products/responses.mjs.map +1 -0
  460. package/dist/api/shops/get-products/types.d.cts +17 -0
  461. package/dist/api/shops/get-products/types.d.mts +17 -0
  462. package/dist/api/shops/index.d.cts +7 -0
  463. package/dist/api/shops/index.d.mts +7 -0
  464. package/dist/api/shops/operations.cjs +13 -0
  465. package/dist/api/shops/operations.cjs.map +1 -0
  466. package/dist/api/shops/operations.d.cts +402 -0
  467. package/dist/api/shops/operations.d.mts +402 -0
  468. package/dist/api/shops/operations.mjs +13 -0
  469. package/dist/api/shops/operations.mjs.map +1 -0
  470. package/dist/api/sku/get/index.d.cts +2 -0
  471. package/dist/api/sku/get/index.d.mts +2 -0
  472. package/dist/api/sku/get/operation.cjs +25 -0
  473. package/dist/api/sku/get/operation.cjs.map +1 -0
  474. package/dist/api/sku/get/operation.d.cts +275 -0
  475. package/dist/api/sku/get/operation.d.mts +275 -0
  476. package/dist/api/sku/get/operation.mjs +25 -0
  477. package/dist/api/sku/get/operation.mjs.map +1 -0
  478. package/dist/api/sku/get/request.cjs +9 -0
  479. package/dist/api/sku/get/request.cjs.map +1 -0
  480. package/dist/api/sku/get/request.mjs +7 -0
  481. package/dist/api/sku/get/request.mjs.map +1 -0
  482. package/dist/api/sku/get/responses.cjs +89 -0
  483. package/dist/api/sku/get/responses.cjs.map +1 -0
  484. package/dist/api/sku/get/responses.mjs +87 -0
  485. package/dist/api/sku/get/responses.mjs.map +1 -0
  486. package/dist/api/sku/get/types.d.cts +17 -0
  487. package/dist/api/sku/get/types.d.mts +17 -0
  488. package/dist/api/sku/get-collections/index.d.cts +2 -0
  489. package/dist/api/sku/get-collections/index.d.mts +2 -0
  490. package/dist/api/sku/get-collections/operation.cjs +25 -0
  491. package/dist/api/sku/get-collections/operation.cjs.map +1 -0
  492. package/dist/api/sku/get-collections/operation.d.cts +51 -0
  493. package/dist/api/sku/get-collections/operation.d.mts +51 -0
  494. package/dist/api/sku/get-collections/operation.mjs +25 -0
  495. package/dist/api/sku/get-collections/operation.mjs.map +1 -0
  496. package/dist/api/sku/get-collections/request.cjs +9 -0
  497. package/dist/api/sku/get-collections/request.cjs.map +1 -0
  498. package/dist/api/sku/get-collections/request.mjs +7 -0
  499. package/dist/api/sku/get-collections/request.mjs.map +1 -0
  500. package/dist/api/sku/get-collections/responses.cjs +17 -0
  501. package/dist/api/sku/get-collections/responses.cjs.map +1 -0
  502. package/dist/api/sku/get-collections/responses.mjs +15 -0
  503. package/dist/api/sku/get-collections/responses.mjs.map +1 -0
  504. package/dist/api/sku/get-collections/types.d.cts +17 -0
  505. package/dist/api/sku/get-collections/types.d.mts +17 -0
  506. package/dist/api/sku/get-review-available/index.d.cts +2 -0
  507. package/dist/api/sku/get-review-available/index.d.mts +2 -0
  508. package/dist/api/sku/get-review-available/operation.cjs +29 -0
  509. package/dist/api/sku/get-review-available/operation.cjs.map +1 -0
  510. package/dist/api/sku/get-review-available/operation.d.cts +43 -0
  511. package/dist/api/sku/get-review-available/operation.d.mts +43 -0
  512. package/dist/api/sku/get-review-available/operation.mjs +29 -0
  513. package/dist/api/sku/get-review-available/operation.mjs.map +1 -0
  514. package/dist/api/sku/get-review-available/request.cjs +9 -0
  515. package/dist/api/sku/get-review-available/request.cjs.map +1 -0
  516. package/dist/api/sku/get-review-available/request.mjs +7 -0
  517. package/dist/api/sku/get-review-available/request.mjs.map +1 -0
  518. package/dist/api/sku/get-review-available/responses.cjs +12 -0
  519. package/dist/api/sku/get-review-available/responses.cjs.map +1 -0
  520. package/dist/api/sku/get-review-available/responses.mjs +10 -0
  521. package/dist/api/sku/get-review-available/responses.mjs.map +1 -0
  522. package/dist/api/sku/get-review-available/types.d.cts +17 -0
  523. package/dist/api/sku/get-review-available/types.d.mts +17 -0
  524. package/dist/api/sku/get-similar/index.d.cts +2 -0
  525. package/dist/api/sku/get-similar/index.d.mts +2 -0
  526. package/dist/api/sku/get-similar/operation.cjs +23 -0
  527. package/dist/api/sku/get-similar/operation.cjs.map +1 -0
  528. package/dist/api/sku/get-similar/operation.d.cts +109 -0
  529. package/dist/api/sku/get-similar/operation.d.mts +109 -0
  530. package/dist/api/sku/get-similar/operation.mjs +23 -0
  531. package/dist/api/sku/get-similar/operation.mjs.map +1 -0
  532. package/dist/api/sku/get-similar/request.cjs +13 -0
  533. package/dist/api/sku/get-similar/request.cjs.map +1 -0
  534. package/dist/api/sku/get-similar/request.mjs +11 -0
  535. package/dist/api/sku/get-similar/request.mjs.map +1 -0
  536. package/dist/api/sku/get-similar/responses.cjs +31 -0
  537. package/dist/api/sku/get-similar/responses.cjs.map +1 -0
  538. package/dist/api/sku/get-similar/responses.mjs +29 -0
  539. package/dist/api/sku/get-similar/responses.mjs.map +1 -0
  540. package/dist/api/sku/get-similar/types.d.cts +17 -0
  541. package/dist/api/sku/get-similar/types.d.mts +17 -0
  542. package/dist/api/sku/index.d.cts +9 -0
  543. package/dist/api/sku/index.d.mts +9 -0
  544. package/dist/api/sku/operations.cjs +15 -0
  545. package/dist/api/sku/operations.cjs.map +1 -0
  546. package/dist/api/sku/operations.d.cts +455 -0
  547. package/dist/api/sku/operations.d.mts +455 -0
  548. package/dist/api/sku/operations.mjs +15 -0
  549. package/dist/api/sku/operations.mjs.map +1 -0
  550. package/dist/api/users/index.d.cts +5 -0
  551. package/dist/api/users/index.d.mts +5 -0
  552. package/dist/api/users/operations.cjs +11 -0
  553. package/dist/api/users/operations.cjs.map +1 -0
  554. package/dist/api/users/operations.d.cts +96 -0
  555. package/dist/api/users/operations.d.mts +96 -0
  556. package/dist/api/users/operations.mjs +11 -0
  557. package/dist/api/users/operations.mjs.map +1 -0
  558. package/dist/api/users/register-device/index.d.cts +2 -0
  559. package/dist/api/users/register-device/index.d.mts +2 -0
  560. package/dist/api/users/register-device/operation.cjs +28 -0
  561. package/dist/api/users/register-device/operation.cjs.map +1 -0
  562. package/dist/api/users/register-device/operation.d.cts +61 -0
  563. package/dist/api/users/register-device/operation.d.mts +61 -0
  564. package/dist/api/users/register-device/operation.mjs +28 -0
  565. package/dist/api/users/register-device/operation.mjs.map +1 -0
  566. package/dist/api/users/register-device/request.cjs +14 -0
  567. package/dist/api/users/register-device/request.cjs.map +1 -0
  568. package/dist/api/users/register-device/request.mjs +12 -0
  569. package/dist/api/users/register-device/request.mjs.map +1 -0
  570. package/dist/api/users/register-device/types.d.cts +17 -0
  571. package/dist/api/users/register-device/types.d.mts +17 -0
  572. package/dist/api/users/update-language/index.d.cts +2 -0
  573. package/dist/api/users/update-language/index.d.mts +2 -0
  574. package/dist/api/users/update-language/operation.cjs +27 -0
  575. package/dist/api/users/update-language/operation.cjs.map +1 -0
  576. package/dist/api/users/update-language/operation.d.cts +41 -0
  577. package/dist/api/users/update-language/operation.d.mts +41 -0
  578. package/dist/api/users/update-language/operation.mjs +27 -0
  579. package/dist/api/users/update-language/operation.mjs.map +1 -0
  580. package/dist/api/users/update-language/request.cjs +11 -0
  581. package/dist/api/users/update-language/request.cjs.map +1 -0
  582. package/dist/api/users/update-language/request.mjs +8 -0
  583. package/dist/api/users/update-language/request.mjs.map +1 -0
  584. package/dist/api/users/update-language/responses.cjs +14 -0
  585. package/dist/api/users/update-language/responses.cjs.map +1 -0
  586. package/dist/api/users/update-language/responses.mjs +12 -0
  587. package/dist/api/users/update-language/responses.mjs.map +1 -0
  588. package/dist/api/users/update-language/types.d.cts +17 -0
  589. package/dist/api/users/update-language/types.d.mts +17 -0
  590. package/dist/config/defaults.cjs +12 -0
  591. package/dist/config/defaults.cjs.map +1 -0
  592. package/dist/config/defaults.d.cts +10 -0
  593. package/dist/config/defaults.d.mts +10 -0
  594. package/dist/config/defaults.mjs +9 -0
  595. package/dist/config/defaults.mjs.map +1 -0
  596. package/dist/config/headers.cjs +17 -0
  597. package/dist/config/headers.cjs.map +1 -0
  598. package/dist/config/headers.d.cts +8 -0
  599. package/dist/config/headers.d.mts +8 -0
  600. package/dist/config/headers.mjs +16 -0
  601. package/dist/config/headers.mjs.map +1 -0
  602. package/dist/config/resolve.cjs +28 -0
  603. package/dist/config/resolve.cjs.map +1 -0
  604. package/dist/config/resolve.d.cts +8 -0
  605. package/dist/config/resolve.d.mts +8 -0
  606. package/dist/config/resolve.mjs +27 -0
  607. package/dist/config/resolve.mjs.map +1 -0
  608. package/dist/config/types.d.cts +25 -0
  609. package/dist/config/types.d.mts +25 -0
  610. package/dist/contracts/api-error-response.cjs +12 -0
  611. package/dist/contracts/api-error-response.cjs.map +1 -0
  612. package/dist/contracts/api-error-response.d.cts +13 -0
  613. package/dist/contracts/api-error-response.d.mts +13 -0
  614. package/dist/contracts/api-error-response.mjs +10 -0
  615. package/dist/contracts/api-error-response.mjs.map +1 -0
  616. package/dist/contracts/filters/category.cjs +21 -0
  617. package/dist/contracts/filters/category.cjs.map +1 -0
  618. package/dist/contracts/filters/category.d.cts +37 -0
  619. package/dist/contracts/filters/category.d.mts +37 -0
  620. package/dist/contracts/filters/category.mjs +17 -0
  621. package/dist/contracts/filters/category.mjs.map +1 -0
  622. package/dist/contracts/filters/filter.cjs +11 -0
  623. package/dist/contracts/filters/filter.cjs.map +1 -0
  624. package/dist/contracts/filters/filter.d.cts +67 -0
  625. package/dist/contracts/filters/filter.d.mts +67 -0
  626. package/dist/contracts/filters/filter.mjs +9 -0
  627. package/dist/contracts/filters/filter.mjs.map +1 -0
  628. package/dist/contracts/filters/range.cjs +21 -0
  629. package/dist/contracts/filters/range.cjs.map +1 -0
  630. package/dist/contracts/filters/range.d.cts +37 -0
  631. package/dist/contracts/filters/range.d.mts +37 -0
  632. package/dist/contracts/filters/range.mjs +17 -0
  633. package/dist/contracts/filters/range.mjs.map +1 -0
  634. package/dist/contracts/pagination.cjs +17 -0
  635. package/dist/contracts/pagination.cjs.map +1 -0
  636. package/dist/contracts/pagination.d.cts +27 -0
  637. package/dist/contracts/pagination.d.mts +27 -0
  638. package/dist/contracts/pagination.mjs +15 -0
  639. package/dist/contracts/pagination.mjs.map +1 -0
  640. package/dist/errors/teez-api-error.cjs +26 -0
  641. package/dist/errors/teez-api-error.cjs.map +1 -0
  642. package/dist/errors/teez-api-error.d.cts +35 -0
  643. package/dist/errors/teez-api-error.d.mts +35 -0
  644. package/dist/errors/teez-api-error.mjs +26 -0
  645. package/dist/errors/teez-api-error.mjs.map +1 -0
  646. package/dist/errors/teez-error.cjs +8 -0
  647. package/dist/errors/teez-error.cjs.map +1 -0
  648. package/dist/errors/teez-error.d.cts +7 -0
  649. package/dist/errors/teez-error.d.mts +7 -0
  650. package/dist/errors/teez-error.mjs +8 -0
  651. package/dist/errors/teez-error.mjs.map +1 -0
  652. package/dist/errors/teez-network-error.cjs +18 -0
  653. package/dist/errors/teez-network-error.cjs.map +1 -0
  654. package/dist/errors/teez-network-error.d.cts +23 -0
  655. package/dist/errors/teez-network-error.d.mts +23 -0
  656. package/dist/errors/teez-network-error.mjs +18 -0
  657. package/dist/errors/teez-network-error.mjs.map +1 -0
  658. package/dist/errors/teez-timeout-error.cjs +20 -0
  659. package/dist/errors/teez-timeout-error.cjs.map +1 -0
  660. package/dist/errors/teez-timeout-error.d.cts +26 -0
  661. package/dist/errors/teez-timeout-error.d.mts +26 -0
  662. package/dist/errors/teez-timeout-error.mjs +20 -0
  663. package/dist/errors/teez-timeout-error.mjs.map +1 -0
  664. package/dist/errors/teez-validation-error.cjs +16 -0
  665. package/dist/errors/teez-validation-error.cjs.map +1 -0
  666. package/dist/errors/teez-validation-error.d.cts +25 -0
  667. package/dist/errors/teez-validation-error.d.mts +25 -0
  668. package/dist/errors/teez-validation-error.mjs +16 -0
  669. package/dist/errors/teez-validation-error.mjs.map +1 -0
  670. package/dist/http-operation/api-error.cjs +15 -0
  671. package/dist/http-operation/api-error.cjs.map +1 -0
  672. package/dist/http-operation/api-error.d.cts +15 -0
  673. package/dist/http-operation/api-error.d.mts +15 -0
  674. package/dist/http-operation/api-error.mjs +14 -0
  675. package/dist/http-operation/api-error.mjs.map +1 -0
  676. package/dist/http-operation/define.cjs +33 -0
  677. package/dist/http-operation/define.cjs.map +1 -0
  678. package/dist/http-operation/define.d.cts +7 -0
  679. package/dist/http-operation/define.d.mts +7 -0
  680. package/dist/http-operation/define.mjs +33 -0
  681. package/dist/http-operation/define.mjs.map +1 -0
  682. package/dist/http-operation/flattenability.cjs +24 -0
  683. package/dist/http-operation/flattenability.cjs.map +1 -0
  684. package/dist/http-operation/flattenability.d.cts +7 -0
  685. package/dist/http-operation/flattenability.d.mts +7 -0
  686. package/dist/http-operation/flattenability.mjs +24 -0
  687. package/dist/http-operation/flattenability.mjs.map +1 -0
  688. package/dist/http-operation/inference.d.cts +63 -0
  689. package/dist/http-operation/inference.d.mts +63 -0
  690. package/dist/http-operation/response-helpers.cjs +20 -0
  691. package/dist/http-operation/response-helpers.cjs.map +1 -0
  692. package/dist/http-operation/response-helpers.d.cts +15 -0
  693. package/dist/http-operation/response-helpers.d.mts +15 -0
  694. package/dist/http-operation/response-helpers.mjs +19 -0
  695. package/dist/http-operation/response-helpers.mjs.map +1 -0
  696. package/dist/http-operation/status.cjs +8 -0
  697. package/dist/http-operation/status.cjs.map +1 -0
  698. package/dist/http-operation/status.d.cts +6 -0
  699. package/dist/http-operation/status.d.mts +6 -0
  700. package/dist/http-operation/status.mjs +8 -0
  701. package/dist/http-operation/status.mjs.map +1 -0
  702. package/dist/http-operation/types.d.cts +92 -0
  703. package/dist/http-operation/types.d.mts +92 -0
  704. package/dist/http-operation/validation.cjs +32 -0
  705. package/dist/http-operation/validation.cjs.map +1 -0
  706. package/dist/http-operation/validation.mjs +31 -0
  707. package/dist/http-operation/validation.mjs.map +1 -0
  708. package/dist/index.cjs +147 -1743
  709. package/dist/index.d.cts +100 -5056
  710. package/dist/index.d.mts +100 -5056
  711. package/dist/index.mjs +66 -1629
  712. package/dist/language.cjs +6 -0
  713. package/dist/language.cjs.map +1 -0
  714. package/dist/language.d.cts +6 -0
  715. package/dist/language.d.mts +6 -0
  716. package/dist/language.mjs +6 -0
  717. package/dist/language.mjs.map +1 -0
  718. package/dist/registry.cjs +44 -0
  719. package/dist/registry.cjs.map +1 -0
  720. package/dist/registry.d.cts +4198 -0
  721. package/dist/registry.d.mts +4198 -0
  722. package/dist/registry.mjs +41 -0
  723. package/dist/registry.mjs.map +1 -0
  724. package/dist/schema/nullish.cjs +11 -0
  725. package/dist/schema/nullish.cjs.map +1 -0
  726. package/dist/schema/nullish.d.cts +11 -0
  727. package/dist/schema/nullish.d.mts +11 -0
  728. package/dist/schema/nullish.mjs +9 -0
  729. package/dist/schema/nullish.mjs.map +1 -0
  730. package/dist/schema/object-schema.cjs +12 -0
  731. package/dist/schema/object-schema.cjs.map +1 -0
  732. package/dist/schema/object-schema.d.cts +10 -0
  733. package/dist/schema/object-schema.d.mts +10 -0
  734. package/dist/schema/object-schema.mjs +11 -0
  735. package/dist/schema/object-schema.mjs.map +1 -0
  736. package/dist/schema/types.d.cts +7 -0
  737. package/dist/schema/types.d.mts +7 -0
  738. package/dist/sdk/create-client.cjs +20 -0
  739. package/dist/sdk/create-client.cjs.map +1 -0
  740. package/dist/sdk/create-client.d.cts +11 -0
  741. package/dist/sdk/create-client.d.mts +11 -0
  742. package/dist/sdk/create-client.mjs +19 -0
  743. package/dist/sdk/create-client.mjs.map +1 -0
  744. package/dist/sdk/flat-request.cjs +25 -0
  745. package/dist/sdk/flat-request.cjs.map +1 -0
  746. package/dist/sdk/flat-request.mjs +25 -0
  747. package/dist/sdk/flat-request.mjs.map +1 -0
  748. package/dist/sdk/operation-entry.cjs +30 -0
  749. package/dist/sdk/operation-entry.cjs.map +1 -0
  750. package/dist/sdk/operation-entry.mjs +30 -0
  751. package/dist/sdk/operation-entry.mjs.map +1 -0
  752. package/dist/sdk/runtime.cjs +15 -0
  753. package/dist/sdk/runtime.cjs.map +1 -0
  754. package/dist/sdk/runtime.d.cts +8 -0
  755. package/dist/sdk/runtime.d.mts +8 -0
  756. package/dist/sdk/runtime.mjs +15 -0
  757. package/dist/sdk/runtime.mjs.map +1 -0
  758. package/dist/sdk/types.d.cts +15 -0
  759. package/dist/sdk/types.d.mts +15 -0
  760. package/dist/transport/headers.cjs +12 -0
  761. package/dist/transport/headers.cjs.map +1 -0
  762. package/dist/transport/headers.mjs +12 -0
  763. package/dist/transport/headers.mjs.map +1 -0
  764. package/dist/transport/http-client.cjs +109 -0
  765. package/dist/transport/http-client.cjs.map +1 -0
  766. package/dist/transport/http-client.mjs +109 -0
  767. package/dist/transport/http-client.mjs.map +1 -0
  768. package/dist/transport/parsing.cjs +43 -0
  769. package/dist/transport/parsing.cjs.map +1 -0
  770. package/dist/transport/parsing.mjs +38 -0
  771. package/dist/transport/parsing.mjs.map +1 -0
  772. package/dist/transport/path.cjs +11 -0
  773. package/dist/transport/path.cjs.map +1 -0
  774. package/dist/transport/path.mjs +11 -0
  775. package/dist/transport/path.mjs.map +1 -0
  776. package/dist/transport/query.cjs +21 -0
  777. package/dist/transport/query.cjs.map +1 -0
  778. package/dist/transport/query.mjs +21 -0
  779. package/dist/transport/query.mjs.map +1 -0
  780. package/dist/transport/response-body.cjs +17 -0
  781. package/dist/transport/response-body.cjs.map +1 -0
  782. package/dist/transport/response-body.mjs +17 -0
  783. package/dist/transport/response-body.mjs.map +1 -0
  784. package/dist/transport/types.d.cts +6 -0
  785. package/dist/transport/types.d.mts +6 -0
  786. package/dist/type-utils/simplify.d.cts +5 -0
  787. package/dist/type-utils/simplify.d.mts +5 -0
  788. package/package.json +46 -35
  789. package/dist/index.cjs.map +0 -1
  790. package/dist/index.mjs.map +0 -1
package/dist/index.mjs CHANGED
@@ -1,1629 +1,66 @@
1
- import * as z from "zod/mini";
2
-
3
- //#region src/errors/teez-error.ts
4
- /**
5
- * Base error class for all SDK-related errors.
6
- */
7
- var TeezError = class extends Error {
8
- name = "TeezError";
9
- };
10
-
11
- //#endregion
12
- //#region src/errors/teez-validation-error.ts
13
- /**
14
- * Error thrown when validation fails.
15
- */
16
- var TeezValidationError = class extends TeezError {
17
- name = "TeezValidationError";
18
- /**
19
- * List of standardized validation issues.
20
- */
21
- issues;
22
- /**
23
- * The raw data that failed validation.
24
- */
25
- data;
26
- constructor(message, { issues, data, ...errorOptions }) {
27
- super(message, errorOptions);
28
- this.issues = issues;
29
- this.data = data;
30
- }
31
- };
32
-
33
- //#endregion
34
- //#region src/http/helpers.ts
35
- /**
36
- * Constructs a full URL with query parameters.
37
- */
38
- function buildUrl(path, baseUrl, queryParams) {
39
- const url = new URL(path, baseUrl);
40
- if (queryParams != void 0) for (const [key, value] of Object.entries(queryParams)) {
41
- if (value == void 0) continue;
42
- if (Array.isArray(value)) for (const item of value) url.searchParams.append(key, String(item));
43
- else url.searchParams.set(key, String(value));
44
- }
45
- return String(url);
46
- }
47
- /**
48
- * Converts Zod ZodError to abstract ValidationIssue[].
49
- */
50
- function toValidationIssues(error) {
51
- return error.issues.map((issue) => ({
52
- code: issue.code,
53
- path: issue.path,
54
- message: issue.message
55
- }));
56
- }
57
- /**
58
- * Validates and parses the API response data against a schema.
59
- */
60
- function parseResponse(schema, data) {
61
- const result = z.safeParse(schema, data);
62
- if (!result.success) throw new TeezValidationError("Response validation failed", {
63
- issues: toValidationIssues(result.error),
64
- data
65
- });
66
- return result.data;
67
- }
68
-
69
- //#endregion
70
- //#region src/api/auth/schemas.ts
71
- /**
72
- * Response schema for initiating phone login.
73
- */
74
- const AuthApiLoginResponseSchema = z.void();
75
- /**
76
- * Response schema for OTP verification.
77
- */
78
- const AuthApiVerifyResponseSchema = z.object({
79
- userId: z.string(),
80
- phone: z.string(),
81
- accessToken: z.string(),
82
- refreshToken: z.string(),
83
- paymentId: z.nullish(z.number()),
84
- pickupPoint: z.nullish(z.unknown()),
85
- address: z.nullish(z.unknown()),
86
- recipient: z.nullish(z.unknown())
87
- });
88
- /**
89
- * Response schema for token validation.
90
- */
91
- const AuthApiCheckTokenResponseSchema = z.object({
92
- userId: z.string(),
93
- phoneNumber: z.string(),
94
- fullName: z.string(),
95
- email: z.string(),
96
- expiredTokenDate: z.string(),
97
- language: z.enum(["ru", "kk"]),
98
- hasOrders: z.boolean(),
99
- hasAnyOrders: z.boolean()
100
- });
101
-
102
- //#endregion
103
- //#region src/api/auth/api.ts
104
- /**
105
- * API for authentication operations.
106
- */
107
- var AuthApi = class {
108
- /**
109
- * Initializes a new instance of the AuthApi.
110
- *
111
- * @param http HTTP client instance.
112
- */
113
- constructor(http) {
114
- this.http = http;
115
- }
116
- /**
117
- * Initiates phone login by sending an OTP code to the specified phone number.
118
- *
119
- * @example
120
- * await client.auth.login({
121
- * phone: "+77071234567"
122
- * });
123
- */
124
- async login(params) {
125
- return parseResponse(AuthApiLoginResponseSchema, await this.http.post({
126
- path: "/auth/login",
127
- body: params
128
- }));
129
- }
130
- /**
131
- * Verifies OTP code and obtains JWT access and refresh tokens.
132
- *
133
- * @example
134
- * const response = await client.auth.verify({
135
- * phone: "+77071234567",
136
- * otpCode: "2610"
137
- * });
138
- */
139
- async verify(params) {
140
- return parseResponse(AuthApiVerifyResponseSchema, await this.http.post({
141
- path: "/auth/verify",
142
- body: params
143
- }));
144
- }
145
- /**
146
- * Validates the current JWT token and retrieves user information.
147
- *
148
- * @example
149
- * const response = await client.auth.checkToken();
150
- */
151
- async checkToken(params = {}) {
152
- return await this.http.get({
153
- path: "/auth/check-token",
154
- params,
155
- schema: AuthApiCheckTokenResponseSchema
156
- });
157
- }
158
- };
159
-
160
- //#endregion
161
- //#region src/api/banners/schemas.ts
162
- /**
163
- * Type literal for banner image resource type
164
- */
165
- const BannerImageTypeSchema = z.literal("network");
166
- /**
167
- * Schema for a banner image.
168
- */
169
- const BannersApiImageSchema = z.object({
170
- type: BannerImageTypeSchema,
171
- url: z.string()
172
- });
173
- /**
174
- * Type union for banner action types
175
- */
176
- const BannerActionTypesSchema = z.union([
177
- z.literal("url"),
178
- z.literal("path"),
179
- z.literal("key")
180
- ]);
181
- /**
182
- * Schema for a banner action.
183
- */
184
- const BannersApiActionSchema = z.object({
185
- type: BannerActionTypesSchema,
186
- value: z.string(),
187
- analyticsKey: z.nullish(z.string())
188
- });
189
- /**
190
- * Schema for a banner item containing an image and an action.
191
- */
192
- const BannersApiBannerItemSchema = z.object({
193
- image: BannersApiImageSchema,
194
- action: BannersApiActionSchema
195
- });
196
- /**
197
- * Response schema for the list of banners.
198
- */
199
- const BannersApiListResponseSchema = z.array(BannersApiBannerItemSchema);
200
-
201
- //#endregion
202
- //#region src/api/banners/api.ts
203
- /**
204
- * API for retrieving promotional and informational banners.
205
- */
206
- var BannersApi = class {
207
- /**
208
- * Initializes a new instance of the BannersApi.
209
- *
210
- * @param http HTTP client instance.
211
- */
212
- constructor(http) {
213
- this.http = http;
214
- }
215
- /**
216
- * Retrieves a list of active banners.
217
- *
218
- * @example
219
- * const banners = await client.banners.list();
220
- */
221
- list(params = {}) {
222
- return this.http.get({
223
- path: "/api/v3/banners",
224
- params,
225
- schema: BannersApiListResponseSchema
226
- });
227
- }
228
- };
229
-
230
- //#endregion
231
- //#region src/api/categories/schemas.ts
232
- /**
233
- * Schema for a category list item.
234
- */
235
- const CategoriesApiListResponseItemSchema = z.object({
236
- id: z.number(),
237
- name: z.string(),
238
- level: z.number(),
239
- parentId: z.number(),
240
- hasSubcategories: z.boolean(),
241
- isAdult: z.boolean()
242
- });
243
- /**
244
- * Response schema for the list of categories.
245
- */
246
- const CategoriesApiListResponseSchema = z.array(CategoriesApiListResponseItemSchema);
247
- /**
248
- * Response schema for getting a specific category by ID.
249
- */
250
- const CategoriesApiGetResponseSchema = z.object({
251
- id: z.number(),
252
- name: z.string(),
253
- level: z.number(),
254
- parentId: z.number(),
255
- hasSubcategories: z.boolean(),
256
- isAdult: z.boolean(),
257
- get subcategories() {
258
- return z.nullish(z.array(CategoriesApiGetResponseSchema));
259
- }
260
- });
261
- /**
262
- * Schema for a parent category item with nesting.
263
- */
264
- const CategoriesApiGetParentsResponseItemSchema = z.object({
265
- id: z.number(),
266
- name: z.string(),
267
- level: z.number(),
268
- hasSubcategories: z.boolean(),
269
- get subcategories() {
270
- return z.nullish(z.array(CategoriesApiGetParentsResponseItemSchema));
271
- }
272
- });
273
- /**
274
- * Response schema for getting parent categories.
275
- */
276
- const CategoriesApiGetParentsResponseSchema = z.array(CategoriesApiGetParentsResponseItemSchema);
277
-
278
- //#endregion
279
- //#region src/api/categories/api.ts
280
- /**
281
- * API for retrieving product category information.
282
- */
283
- var CategoriesApi = class {
284
- /**
285
- * Initializes a new instance of the CategoriesApi.
286
- *
287
- * @param http HTTP client instance.
288
- */
289
- constructor(http) {
290
- this.http = http;
291
- }
292
- /**
293
- * Retrieves a list of all categories.
294
- *
295
- * @example
296
- * const categories = await client.categories.list();
297
- */
298
- list(params = {}) {
299
- return this.http.get({
300
- path: "/categories",
301
- params,
302
- schema: CategoriesApiListResponseSchema
303
- });
304
- }
305
- /**
306
- * Retrieves detailed information about a specific category by its ID.
307
- *
308
- * @example
309
- * const category = await client.categories.get({
310
- * categoryId: 1234
311
- * });
312
- */
313
- get(params) {
314
- return this.http.get({
315
- path: `/categories/${params.categoryId}`,
316
- params,
317
- schema: CategoriesApiGetResponseSchema
318
- });
319
- }
320
- /**
321
- * Retrieves parent categories for specific category IDs.
322
- *
323
- * @example
324
- * const parents = await client.categories.getParents({
325
- * categoryId: [123, 456]
326
- * });
327
- */
328
- getParents(params) {
329
- return this.http.get({
330
- path: "/api/v1/categories/parents",
331
- params,
332
- schema: CategoriesApiGetParentsResponseSchema
333
- });
334
- }
335
- };
336
-
337
- //#endregion
338
- //#region src/common/schemas.ts
339
- /**
340
- * Schema for range filter options (e.g., price slider).
341
- * Common schema used by multiple APIs.
342
- */
343
- const RangeFilterOptionSchema = z.object({
344
- min: z.number(),
345
- max: z.number()
346
- });
347
- /**
348
- * Type literal for range-based filters
349
- */
350
- const RangeTypeSchema = z.literal("range");
351
- /**
352
- * Schema for range filters (e.g., price slider).
353
- * Use this in discriminatedUnion-based filter schemas.
354
- */
355
- const RangeFilterSchema = z.object({
356
- type: RangeTypeSchema,
357
- name: z.string(),
358
- code: z.string(),
359
- options: z.array(RangeFilterOptionSchema)
360
- });
361
- /**
362
- * Schema for category/brand filter options.
363
- * Common schema used by multiple APIs.
364
- */
365
- const CategoryFilterOptionSchema = z.object({
366
- label: z.string(),
367
- value: z.number()
368
- });
369
- /**
370
- * Type union for category filter types
371
- */
372
- const CategoryFilterTypesSchema = z.union([z.literal("category"), z.literal("alphabetic_search_list")]);
373
- /**
374
- * Schema for category/brand filters.
375
- * Use this in discriminatedUnion-based filter schemas.
376
- */
377
- const CategoryFilterSchema = z.object({
378
- type: CategoryFilterTypesSchema,
379
- name: z.string(),
380
- code: z.string(),
381
- options: z.array(CategoryFilterOptionSchema)
382
- });
383
- /**
384
- * Union filter schema that can be either range or category filter.
385
- * This is the recommended pattern for type-safe filters.
386
- */
387
- const FilterSchema = z.discriminatedUnion("type", [RangeFilterSchema, CategoryFilterSchema]);
388
-
389
- //#endregion
390
- //#region src/api/collections/schemas.ts
391
- /**
392
- * Type literal for collections stock availability type
393
- */
394
- const CollectionsStockAvailabilityTypeSchema = z.literal("stock");
395
- /**
396
- * Schema for stock availability information.
397
- */
398
- const CollectionsApiStockAvailabilitySchema = z.object({
399
- type: CollectionsStockAvailabilityTypeSchema,
400
- svg: z.nullish(z.string()),
401
- text: z.string(),
402
- maxQty: z.number(),
403
- maxQtyReason: z.string()
404
- });
405
- /**
406
- * Schema for a SKU item within a collection.
407
- */
408
- const CollectionsApiSkuItemSchema = z.object({
409
- productId: z.number(),
410
- skuId: z.number(),
411
- imageUrl: z.string(),
412
- name: z.string(),
413
- shortDescription: z.string(),
414
- thumbnailUrl: z.string(),
415
- originalPrice: z.number(),
416
- price: z.number(),
417
- qty: z.number(),
418
- stockAvailability: z.nullish(CollectionsApiStockAvailabilitySchema),
419
- isPromo: z.boolean(),
420
- promoName: z.string(),
421
- qtyPurchasedInfo: z.nullish(z.string()),
422
- rating: z.nullish(z.number()),
423
- scoreQuantity: z.nullish(z.number())
424
- });
425
- /**
426
- * Response schema for getting SKUs from a collection.
427
- */
428
- const CollectionsApiGetSkusResponseSchema = z.object({
429
- filters: z.array(FilterSchema),
430
- items: z.array(CollectionsApiSkuItemSchema),
431
- pageNumber: z.number(),
432
- totalPages: z.number(),
433
- totalCount: z.number(),
434
- hasPreviousPage: z.boolean(),
435
- hasNextPage: z.boolean()
436
- });
437
- /**
438
- * Schema for a collection list item.
439
- */
440
- const CollectionsApiListItemSchema = z.object({
441
- id: z.number(),
442
- icon: z.nullish(z.string()),
443
- name: z.string(),
444
- priority: z.number()
445
- });
446
- /**
447
- * Response schema for the list of collections.
448
- */
449
- const CollectionsApiListResponseSchema = z.array(CollectionsApiListItemSchema);
450
- /**
451
- * Type literal for collection type identifier
452
- */
453
- const CollectionTypeSchema = z.literal("Collection");
454
- /**
455
- * Response schema for getting a specific collection by ID.
456
- */
457
- const CollectionsApiGetResponseSchema = z.object({
458
- type: CollectionTypeSchema,
459
- id: z.number(),
460
- cover: z.string(),
461
- description: z.string(),
462
- name: z.string(),
463
- priority: z.number()
464
- });
465
-
466
- //#endregion
467
- //#region src/api/collections/api.ts
468
- /**
469
- * API for retrieving curated collections of products.
470
- */
471
- var CollectionsApi = class {
472
- /**
473
- * Initializes a new instance of the CollectionsApi.
474
- *
475
- * @param http HTTP client instance.
476
- */
477
- constructor(http) {
478
- this.http = http;
479
- }
480
- /**
481
- * Retrieves a list of SKUs belonging to a specific collection with pagination and sorting.
482
- *
483
- * @example
484
- * const skus = await client.collections.getSkus({
485
- * collectionId: 123,
486
- * pageSize: 10
487
- * });
488
- */
489
- getSkus(params) {
490
- return this.http.get({
491
- path: "/api/v2/collections/skus",
492
- params,
493
- schema: CollectionsApiGetSkusResponseSchema
494
- });
495
- }
496
- /**
497
- * Retrieves a list of all collections.
498
- *
499
- * @example
500
- * const collections = await client.collections.list();
501
- */
502
- list(params = {}) {
503
- return this.http.get({
504
- path: "/collections",
505
- params,
506
- schema: CollectionsApiListResponseSchema
507
- });
508
- }
509
- /**
510
- * Retrieves detailed information about a specific collection by its ID.
511
- *
512
- * @example
513
- * const collection = await client.collections.get({
514
- * collectionId: 123
515
- * });
516
- */
517
- get(params) {
518
- return this.http.get({
519
- path: `/collections/${params.collectionId}`,
520
- params,
521
- schema: CollectionsApiGetResponseSchema
522
- });
523
- }
524
- };
525
-
526
- //#endregion
527
- //#region src/api/feature-flags/schemas.ts
528
- /**
529
- * Schema for a feature flag item.
530
- */
531
- const FeatureFlagsApiItemSchema = z.object({
532
- name: z.string(),
533
- isActive: z.boolean()
534
- });
535
- /**
536
- * Response schema for the list of feature flags.
537
- */
538
- const FeatureFlagsApiListResponseSchema = z.array(FeatureFlagsApiItemSchema);
539
-
540
- //#endregion
541
- //#region src/api/feature-flags/api.ts
542
- /**
543
- * API for retrieving feature flags configuration.
544
- */
545
- var FeatureFlagsApi = class {
546
- /**
547
- * Initializes a new instance of the FeatureFlagsApi.
548
- *
549
- * @param http HTTP client instance.
550
- */
551
- constructor(http) {
552
- this.http = http;
553
- }
554
- /**
555
- * Retrieves all active feature flags.
556
- *
557
- * @example
558
- * const flags = await client.featureFlags.list();
559
- */
560
- list(params = {}) {
561
- return this.http.get({
562
- path: "/api/v1/feature-flags",
563
- params,
564
- schema: FeatureFlagsApiListResponseSchema
565
- });
566
- }
567
- };
568
-
569
- //#endregion
570
- //#region src/api/products/schemas.ts
571
- /**
572
- * Type union for product sort keys
573
- */
574
- const ProductSortKeySchema = z.union([
575
- z.literal("byRelevance"),
576
- z.literal("popularity"),
577
- z.literal("highestRated"),
578
- z.literal("new"),
579
- z.literal("price"),
580
- z.literal("priceDesc")
581
- ]);
582
- /**
583
- * Schema for a sort option.
584
- */
585
- const ProductsApiSortOptionSchema = z.object({
586
- key: ProductSortKeySchema,
587
- name: z.string()
588
- });
589
- /**
590
- * Response schema for available sort options.
591
- */
592
- const ProductsApiGetSortOptionsResponseSchema = z.array(ProductsApiSortOptionSchema);
593
- /**
594
- * Schema for a product review item.
595
- */
596
- const ProductsApiReviewItemSchema = z.object({
597
- author: z.string(),
598
- reviewText: z.string(),
599
- scoreValue: z.number(),
600
- attributes: z.record(z.string(), z.string()),
601
- createdAt: z.string()
602
- });
603
- /**
604
- * Response schema for product reviews.
605
- */
606
- const ProductsApiGetReviewsResponseSchema = z.object({
607
- items: z.array(ProductsApiReviewItemSchema),
608
- pageNumber: z.number(),
609
- totalPages: z.number(),
610
- totalCount: z.number(),
611
- hasPreviousPage: z.boolean(),
612
- hasNextPage: z.boolean()
613
- });
614
- /**
615
- * Schema for a product badge.
616
- */
617
- const ProductsApiBadgeSchema = z.object({
618
- backgroundColor: z.number(),
619
- label: z.string(),
620
- textColor: z.number()
621
- });
622
- /**
623
- * Type literal for products stock availability type
624
- */
625
- const ProductsStockAvailabilityTypeSchema = z.literal("stock");
626
- /**
627
- * Schema for stock availability information.
628
- */
629
- const ProductsApiStockAvailabilitySchema = z.object({
630
- type: ProductsStockAvailabilityTypeSchema,
631
- svg: z.nullish(z.string()),
632
- text: z.string(),
633
- maxQty: z.number(),
634
- maxQtyReason: z.string()
635
- });
636
- /**
637
- * Schema for a product item.
638
- */
639
- const ProductsApiProductItemSchema = z.object({
640
- productId: z.number(),
641
- skuId: z.number(),
642
- imageUrl: z.string(),
643
- name: z.string(),
644
- shortDescription: z.string(),
645
- thumbnailUrl: z.string(),
646
- originalPrice: z.number(),
647
- price: z.number(),
648
- qty: z.number(),
649
- stockAvailability: z.nullish(ProductsApiStockAvailabilitySchema),
650
- isPromo: z.boolean(),
651
- promoName: z.string(),
652
- promocodes: z.array(z.string()),
653
- qtyPurchasedInfo: z.nullish(z.string()),
654
- rating: z.nullish(z.number()),
655
- scoreQuantity: z.nullish(z.number()),
656
- badge: ProductsApiBadgeSchema,
657
- moderationStatus: z.number()
658
- });
659
- /**
660
- * Response schema for the product list.
661
- */
662
- const ProductsApiListResponseSchema = z.object({
663
- filters: z.array(FilterSchema),
664
- items: z.array(ProductsApiProductItemSchema),
665
- pageNumber: z.number(),
666
- totalPages: z.number(),
667
- totalCount: z.number(),
668
- hasPreviousPage: z.boolean(),
669
- hasNextPage: z.boolean()
670
- });
671
-
672
- //#endregion
673
- //#region src/api/products/api.ts
674
- /**
675
- * API for retrieving product listings, details, and reviews.
676
- */
677
- var ProductsApi = class {
678
- /**
679
- * Initializes a new instance of the ProductsApi.
680
- *
681
- * @param http HTTP client instance.
682
- */
683
- constructor(http) {
684
- this.http = http;
685
- }
686
- /**
687
- * Retrieves available sorting options for product lists.
688
- *
689
- * @example
690
- * const sortOptions = await client.products.getSortOptions();
691
- */
692
- getSortOptions(params = {}) {
693
- return this.http.get({
694
- path: "/api/product/sort-options",
695
- params,
696
- schema: ProductsApiGetSortOptionsResponseSchema
697
- });
698
- }
699
- /**
700
- * Retrieves a list of products with optional filtering and pagination.
701
- *
702
- * @example
703
- * const products = await client.products.list({
704
- * pageSize: 20,
705
- * pageNumber: 1
706
- * });
707
- */
708
- list(params = {}) {
709
- return this.http.get({
710
- path: "/api/v2/product",
711
- params,
712
- schema: ProductsApiListResponseSchema
713
- });
714
- }
715
- /**
716
- * Retrieves reviews for a specific product.
717
- *
718
- * @example
719
- * const reviews = await client.products.getReviews({
720
- * productId: 12345
721
- * });
722
- */
723
- getReviews(params) {
724
- return this.http.get({
725
- path: `/api/v1/product/${params.productId}/review`,
726
- params,
727
- schema: ProductsApiGetReviewsResponseSchema
728
- });
729
- }
730
- };
731
-
732
- //#endregion
733
- //#region src/api/promo/schemas.ts
734
- /**
735
- * Schema for a promotion item.
736
- */
737
- const PromoApiItemSchema = z.object({
738
- id: z.number(),
739
- name: z.string(),
740
- description: z.nullish(z.string()),
741
- svgUrl: z.nullish(z.string()),
742
- startDate: z.string(),
743
- endDate: z.string()
744
- });
745
- /**
746
- * Response schema for the list of promotions.
747
- */
748
- const PromoApiListResponseSchema = z.array(PromoApiItemSchema);
749
-
750
- //#endregion
751
- //#region src/api/promo/api.ts
752
- /**
753
- * API for retrieving active promotions.
754
- */
755
- var PromoApi = class {
756
- /**
757
- * Initializes a new instance of the PromoApi.
758
- *
759
- * @param http HTTP client instance.
760
- */
761
- constructor(http) {
762
- this.http = http;
763
- }
764
- /**
765
- * Retrieves a list of all active promotions.
766
- *
767
- * @example
768
- * const promos = await client.promo.list();
769
- */
770
- list(params = {}) {
771
- return this.http.get({
772
- path: "/api/promo",
773
- params,
774
- schema: PromoApiListResponseSchema
775
- });
776
- }
777
- };
778
-
779
- //#endregion
780
- //#region src/api/shops/schemas.ts
781
- /**
782
- * Schema for shop contact information.
783
- */
784
- const ShopsApiContactInfoSchema = z.object({
785
- bin: z.string(),
786
- daysSinceRegistration: z.number(),
787
- legalType: z.number()
788
- });
789
- /**
790
- * Schema for a shop tag.
791
- */
792
- const ShopsApiTagSchema = z.object({
793
- description: z.string(),
794
- icon: z.string(),
795
- name: z.string(),
796
- svg: z.string(),
797
- code: z.string()
798
- });
799
- /**
800
- * Response schema for getting a specific shop by ID.
801
- */
802
- const ShopsApiGetResponseSchema = z.object({
803
- id: z.number(),
804
- banner: z.nullish(z.string()),
805
- description: z.string(),
806
- logo: z.nullish(z.string()),
807
- name: z.string(),
808
- qtyPurchasedInfo: z.nullish(z.string()),
809
- rating: z.nullish(z.number()),
810
- totalReviews: z.nullish(z.number()),
811
- contactInfo: ShopsApiContactInfoSchema,
812
- isMonobrand: z.boolean(),
813
- tag: ShopsApiTagSchema
814
- });
815
- /**
816
- * Schema for a shop item in a list.
817
- */
818
- const ShopsApiShopItemSchema = z.object({
819
- id: z.number(),
820
- icon: z.string()
821
- });
822
- /**
823
- * Response schema for the monobrand shop list.
824
- */
825
- const ShopsApiGetMonobrandResponseSchema = z.object({
826
- items: z.array(ShopsApiShopItemSchema),
827
- pageNumber: z.number(),
828
- totalPages: z.number(),
829
- totalCount: z.number(),
830
- hasPreviousPage: z.boolean(),
831
- hasNextPage: z.boolean()
832
- });
833
- /**
834
- * Type literal for shops stock availability type
835
- */
836
- const ShopsStockAvailabilityTypeSchema = z.literal("stock");
837
- /**
838
- * Schema for stock availability information.
839
- */
840
- const ShopsApiStockAvailabilitySchema = z.object({
841
- type: ShopsStockAvailabilityTypeSchema,
842
- svg: z.nullish(z.string()),
843
- text: z.string(),
844
- maxQty: z.number(),
845
- maxQtyReason: z.string()
846
- });
847
- /**
848
- * Schema for a product item in a shop.
849
- */
850
- const ShopsApiProductItemSchema = z.object({
851
- productId: z.number(),
852
- skuId: z.number(),
853
- imageUrl: z.string(),
854
- name: z.string(),
855
- shortDescription: z.string(),
856
- thumbnailUrl: z.string(),
857
- originalPrice: z.number(),
858
- price: z.number(),
859
- inStock: z.boolean(),
860
- qty: z.number(),
861
- stockAvailability: z.nullish(ShopsApiStockAvailabilitySchema),
862
- isPromo: z.boolean(),
863
- promoName: z.string(),
864
- qtyPurchasedInfo: z.nullish(z.string()),
865
- rating: z.nullish(z.number()),
866
- scoreQuantity: z.nullish(z.number()),
867
- moderationStatus: z.number()
868
- });
869
- /**
870
- * Response schema for products from a specific shop.
871
- */
872
- const ShopsApiGetProductsResponseSchema = z.object({
873
- filters: z.array(FilterSchema),
874
- items: z.array(ShopsApiProductItemSchema),
875
- pageNumber: z.number(),
876
- totalPages: z.number(),
877
- totalCount: z.number(),
878
- hasPreviousPage: z.boolean(),
879
- hasNextPage: z.boolean()
880
- });
881
-
882
- //#endregion
883
- //#region src/api/shops/api.ts
884
- /**
885
- * API for interacting with shop-related endpoints.
886
- */
887
- var ShopsApi = class {
888
- /**
889
- * Initializes a new instance of the ShopsApi.
890
- *
891
- * @param http HTTP client instance.
892
- */
893
- constructor(http) {
894
- this.http = http;
895
- }
896
- /**
897
- * Retrieves details of a specific shop.
898
- *
899
- * @example
900
- * const shop = await client.shops.get({
901
- * shopId: 123
902
- * });
903
- */
904
- get(params) {
905
- return this.http.get({
906
- path: `/api/v1/shops/${params.shopId}`,
907
- params,
908
- schema: ShopsApiGetResponseSchema
909
- });
910
- }
911
- /**
912
- * Retrieves monobrand shop details.
913
- *
914
- * @example
915
- * const monobrand = await client.shops.getMonobrand();
916
- */
917
- getMonobrand(params = {}) {
918
- return this.http.get({
919
- path: "/api/v1/shops/monobrand",
920
- params,
921
- schema: ShopsApiGetMonobrandResponseSchema
922
- });
923
- }
924
- /**
925
- * Retrieves products for a specific shop.
926
- *
927
- * @example
928
- * const shopProducts = await client.shops.getProducts({
929
- * shopId: 123,
930
- * pageSize: 10
931
- * });
932
- */
933
- getProducts(params) {
934
- return this.http.get({
935
- path: `/api/v2/shops/${params.shopId}/products`,
936
- params,
937
- schema: ShopsApiGetProductsResponseSchema
938
- });
939
- }
940
- };
941
-
942
- //#endregion
943
- //#region src/api/sku/schemas.ts
944
- /**
945
- * Schema for installment payment information.
946
- */
947
- const SkuApiInstallmentSchema = z.object({
948
- installmentSvg: z.string(),
949
- installmentTerm: z.string()
950
- });
951
- /**
952
- * Schema for shop details associated with a SKU.
953
- */
954
- const SkuApiShopSchema = z.object({
955
- id: z.number(),
956
- logo: z.nullish(z.string()),
957
- name: z.string(),
958
- photo: z.string(),
959
- url: z.string(),
960
- isInstallment: z.boolean(),
961
- qtyPurchasedInfo: z.nullish(z.string()),
962
- rating: z.nullish(z.number()),
963
- daysSinceRegistration: z.number(),
964
- isMonobrand: z.boolean()
965
- });
966
- /**
967
- * Schema for brand information.
968
- */
969
- const SkuApiBrandSchema = z.object({
970
- id: z.number(),
971
- name: z.string()
972
- });
973
- /**
974
- * Schema for a category item.
975
- */
976
- const SkuApiCategorySchema = z.object({
977
- id: z.number(),
978
- name: z.string(),
979
- isPrimary: z.boolean()
980
- });
981
- /**
982
- * Schema for an attribute property value.
983
- */
984
- const SkuApiAttributePropertyValueSchema = z.object({
985
- name: z.string(),
986
- photo: z.string()
987
- });
988
- /**
989
- * Schema for a product attribute.
990
- */
991
- const SkuApiAttributePropertySchema = z.object({
992
- name: z.string(),
993
- value: SkuApiAttributePropertyValueSchema
994
- });
995
- /**
996
- * Schema for SKU attributes configuration.
997
- */
998
- const SkuApiAttributeSchema = z.object({
999
- skuId: z.number(),
1000
- quantity: z.number(),
1001
- attributeProperties: z.array(SkuApiAttributePropertySchema)
1002
- });
1003
- /**
1004
- * Schema for a product tag.
1005
- */
1006
- const SkuApiTagSchema = z.object({
1007
- type: z.string(),
1008
- name: z.string(),
1009
- svg: z.string(),
1010
- value: z.nullish(z.string())
1011
- });
1012
- /**
1013
- * Type literal for SKU stock availability type
1014
- */
1015
- const SkuStockAvailabilityTypeSchema = z.literal("stock");
1016
- /**
1017
- * Schema for stock availability information.
1018
- */
1019
- const SkuApiStockAvailabilitySchema = z.object({
1020
- type: SkuStockAvailabilityTypeSchema,
1021
- svg: z.nullish(z.string()),
1022
- text: z.string(),
1023
- maxQty: z.number(),
1024
- maxQtyReason: z.string()
1025
- });
1026
- /**
1027
- * Response schema for getting a specific SKU by ID.
1028
- */
1029
- const SkuApiGetResponseSchema = z.object({
1030
- productId: z.number(),
1031
- skuId: z.number(),
1032
- description: z.string(),
1033
- name: z.string(),
1034
- photos: z.array(z.string()),
1035
- shortDescription: z.string(),
1036
- discount: z.number(),
1037
- originalPrice: z.number(),
1038
- percentDiscount: z.number(),
1039
- price: z.number(),
1040
- qty: z.number(),
1041
- stockAvailability: z.nullish(SkuApiStockAvailabilitySchema),
1042
- installment: z.nullish(SkuApiInstallmentSchema),
1043
- isPromo: z.boolean(),
1044
- promoName: z.string(),
1045
- promocodes: z.array(z.string()),
1046
- qtyPurchasedInfo: z.nullish(z.string()),
1047
- rating: z.nullish(z.number()),
1048
- scoreQuantity: z.nullish(z.number()),
1049
- textReviewQuantity: z.nullish(z.number()),
1050
- brand: z.nullish(SkuApiBrandSchema),
1051
- categories: z.array(SkuApiCategorySchema),
1052
- shop: SkuApiShopSchema,
1053
- additionalInfo: z.record(z.string(), z.string()),
1054
- attributes: z.array(SkuApiAttributeSchema),
1055
- tags: z.array(SkuApiTagSchema)
1056
- });
1057
- /**
1058
- * Schema for a similar product item.
1059
- */
1060
- const SkuApiSimilarItemSchema = z.object({
1061
- productId: z.number(),
1062
- skuId: z.number(),
1063
- imageUrl: z.string(),
1064
- name: z.string(),
1065
- shortDescription: z.string(),
1066
- thumbnailUrl: z.string(),
1067
- originalPrice: z.number(),
1068
- price: z.number(),
1069
- qty: z.number(),
1070
- isPromo: z.boolean(),
1071
- promoName: z.string(),
1072
- qtyPurchasedInfo: z.nullish(z.string()),
1073
- rating: z.nullish(z.number()),
1074
- scoreQuantity: z.nullish(z.number()),
1075
- moderationStatus: z.number()
1076
- });
1077
- /**
1078
- * Response schema for similar SKUs.
1079
- */
1080
- const SkuApiGetSimilarResponseSchema = z.object({
1081
- items: z.array(SkuApiSimilarItemSchema),
1082
- pageNumber: z.number(),
1083
- totalPages: z.number(),
1084
- totalCount: z.number(),
1085
- hasPreviousPage: z.boolean(),
1086
- hasNextPage: z.boolean()
1087
- });
1088
- /**
1089
- * Schema for a collection item.
1090
- */
1091
- const SkuApiCollectionItemSchema = z.object({
1092
- id: z.number(),
1093
- cover: z.string(),
1094
- icon: z.string(),
1095
- name: z.string(),
1096
- quantity: z.number(),
1097
- priority: z.number()
1098
- });
1099
- /**
1100
- * Response schema for SKU collections.
1101
- */
1102
- const SkuApiGetCollectionsResponseSchema = z.array(SkuApiCollectionItemSchema);
1103
- /**
1104
- * Response schema for review availability check.
1105
- */
1106
- const SkuApiGetReviewAvailableResponseSchema = z.object({
1107
- description: z.string(),
1108
- message: z.string()
1109
- });
1110
-
1111
- //#endregion
1112
- //#region src/api/sku/api.ts
1113
- /**
1114
- * API for interacting with SKU-related endpoints.
1115
- */
1116
- var SkuApi = class {
1117
- /**
1118
- * Initializes a new instance of the SkuApi.
1119
- *
1120
- * @param http HTTP client instance.
1121
- */
1122
- constructor(http) {
1123
- this.http = http;
1124
- }
1125
- /**
1126
- * Retrieves details of a specific SKU.
1127
- *
1128
- * @example
1129
- * const sku = await client.sku.get({
1130
- * skuId: 123
1131
- * });
1132
- */
1133
- get(params) {
1134
- return this.http.get({
1135
- path: `/api/v2/sku/${params.skuId}`,
1136
- params,
1137
- schema: SkuApiGetResponseSchema
1138
- });
1139
- }
1140
- /**
1141
- * Retrieves similar SKUs.
1142
- *
1143
- * @example
1144
- * const similar = await client.sku.getSimilar({
1145
- * skuId: 123
1146
- * });
1147
- */
1148
- getSimilar(params) {
1149
- return this.http.get({
1150
- path: "/api/v2/sku/similar-skus",
1151
- params,
1152
- schema: SkuApiGetSimilarResponseSchema
1153
- });
1154
- }
1155
- /**
1156
- * Retrieves collections associated with a SKU.
1157
- *
1158
- * @example
1159
- * const collections = await client.sku.getCollections({
1160
- * skuId: 123
1161
- * });
1162
- */
1163
- getCollections(params) {
1164
- return this.http.get({
1165
- path: `/sku/${params.skuId}/collections`,
1166
- params,
1167
- schema: SkuApiGetCollectionsResponseSchema
1168
- });
1169
- }
1170
- /**
1171
- * Checks if a review is available for a SKU.
1172
- *
1173
- * @example
1174
- * const isAvailable = await client.sku.getReviewAvailable({
1175
- * skuId: 123
1176
- * });
1177
- */
1178
- getReviewAvailable(params) {
1179
- return this.http.get({
1180
- path: `/sku/${params.skuId}/review-available`,
1181
- params,
1182
- schema: SkuApiGetReviewAvailableResponseSchema
1183
- });
1184
- }
1185
- };
1186
-
1187
- //#endregion
1188
- //#region src/api/users/schemas.ts
1189
- /**
1190
- * Supported language enum for user preference
1191
- */
1192
- const UsersApiLanguageEnumSchema = z.enum(["ru", "kk"]);
1193
- /**
1194
- * Response schema for language update
1195
- */
1196
- const UsersApiUpdateLanguageResponseSchema = z.object({
1197
- language: UsersApiLanguageEnumSchema,
1198
- title: z.string(),
1199
- message: z.string()
1200
- });
1201
- /**
1202
- * Response schema for device registration
1203
- */
1204
- const UsersApiRegisterDeviceResponseSchema = z.nullish(z.null());
1205
-
1206
- //#endregion
1207
- //#region src/api/users/api.ts
1208
- /**
1209
- * API for user management operations.
1210
- */
1211
- var UsersApi = class {
1212
- /**
1213
- * Initializes a new instance of the UsersApi.
1214
- *
1215
- * @param http HTTP client instance.
1216
- */
1217
- constructor(http) {
1218
- this.http = http;
1219
- }
1220
- /**
1221
- * Updates the user's preferred language.
1222
- *
1223
- * @example
1224
- * await client.users.updateLanguage({
1225
- * language: "ru"
1226
- * });
1227
- */
1228
- async updateLanguage(params) {
1229
- return parseResponse(UsersApiUpdateLanguageResponseSchema, await this.http.patch({
1230
- path: "/api/v1/users/me/language",
1231
- body: params
1232
- }));
1233
- }
1234
- /**
1235
- * Registers device identity for analytics tracking.
1236
- *
1237
- * @example
1238
- * await client.users.registerDevice({
1239
- * deviceIdentity: {
1240
- * sdkInformation: [
1241
- * {
1242
- * type: "Appsflyer",
1243
- * deviceId: "1765694307025-6267413661002574019"
1244
- * }
1245
- * ]
1246
- * }
1247
- * });
1248
- */
1249
- async registerDevice(params) {
1250
- return parseResponse(UsersApiRegisterDeviceResponseSchema, await this.http.post({
1251
- path: "/api/v1/device-identities",
1252
- body: params
1253
- }));
1254
- }
1255
- };
1256
-
1257
- //#endregion
1258
- //#region src/common/constants.ts
1259
- /**
1260
- * The default base URL for the Teez B2C API.
1261
- */
1262
- const BASE_URL = "https://b2c-api.teez.kz";
1263
- /**
1264
- * Supported languages for the API.
1265
- */
1266
- const LANGUAGES = {
1267
- RU: "ru",
1268
- KZ: "kz"
1269
- };
1270
- /**
1271
- * Default application version code.
1272
- */
1273
- const DEFAULT_APP_VERSION = "200";
1274
-
1275
- //#endregion
1276
- //#region src/config.ts
1277
- /**
1278
- * Default configuration values.
1279
- */
1280
- const DEFAULT_CONFIG = {
1281
- baseUrl: BASE_URL,
1282
- appVersion: DEFAULT_APP_VERSION,
1283
- language: "ru",
1284
- timeout: 3e4,
1285
- headers: {}
1286
- };
1287
- /**
1288
- * Merges user configuration with defaults.
1289
- */
1290
- function resolveConfig(config) {
1291
- return {
1292
- baseUrl: config?.baseUrl ?? DEFAULT_CONFIG.baseUrl,
1293
- token: config?.token,
1294
- appVersion: config?.appVersion ?? DEFAULT_CONFIG.appVersion,
1295
- language: config?.language ?? DEFAULT_CONFIG.language,
1296
- timeout: config?.timeout ?? DEFAULT_CONFIG.timeout,
1297
- headers: {
1298
- ...DEFAULT_CONFIG.headers,
1299
- ...config?.headers
1300
- }
1301
- };
1302
- }
1303
- /**
1304
- * Builds a standard user-agent string for the Teez client.
1305
- */
1306
- function buildUserAgent(appVersion) {
1307
- return `android;kz.teez.customer;${appVersion}`;
1308
- }
1309
- /**
1310
- * Builds the headers object for API requests based on configuration.
1311
- */
1312
- function buildHeaders(config) {
1313
- const headers = {
1314
- "accept-language": config.language,
1315
- "user-agent": buildUserAgent(config.appVersion),
1316
- "x-app-version": config.appVersion,
1317
- ...config.headers
1318
- };
1319
- if (config.token !== void 0 && config.token !== null) headers["authorization"] = `Bearer ${config.token}`;
1320
- return headers;
1321
- }
1322
-
1323
- //#endregion
1324
- //#region src/errors/teez-api-error.ts
1325
- /**
1326
- * Error thrown when the API response indicates a failure (4xx or 5xx status).
1327
- */
1328
- var TeezApiError = class extends TeezError {
1329
- name = "TeezApiError";
1330
- /**
1331
- * HTTP status code.
1332
- */
1333
- status;
1334
- /**
1335
- * HTTP status text.
1336
- */
1337
- statusText;
1338
- /**
1339
- * URL of the request that failed.
1340
- */
1341
- url;
1342
- /**
1343
- * Response body, if available.
1344
- */
1345
- body;
1346
- constructor(message, { url, status, statusText, body, ...errorOptions }) {
1347
- super(message, errorOptions);
1348
- this.status = status;
1349
- this.statusText = statusText;
1350
- this.url = url;
1351
- this.body = body;
1352
- }
1353
- /**
1354
- * Checks if the status code is a client error (4xx).
1355
- */
1356
- get isClientError() {
1357
- return this.status >= 400 && this.status < 500;
1358
- }
1359
- /**
1360
- * Checks if the status code is a server error (5xx).
1361
- */
1362
- get isServerError() {
1363
- return this.status >= 500;
1364
- }
1365
- /**
1366
- * Checks if the status code indicates a Not Found error (404).
1367
- */
1368
- get isNotFound() {
1369
- return this.status === 404;
1370
- }
1371
- };
1372
-
1373
- //#endregion
1374
- //#region src/errors/teez-network-error.ts
1375
- /**
1376
- * Error thrown when a network request fails (e.g., DNS resolution, connection refused).
1377
- */
1378
- var TeezNetworkError = class extends TeezError {
1379
- name = "TeezNetworkError";
1380
- /**
1381
- * URL of the request that failed.
1382
- */
1383
- url;
1384
- constructor(message, { url, ...errorOptions }) {
1385
- super(message, errorOptions);
1386
- this.url = url;
1387
- }
1388
- };
1389
-
1390
- //#endregion
1391
- //#region src/errors/teez-timeout-error.ts
1392
- /**
1393
- * Error thrown when an API request times out.
1394
- */
1395
- var TeezTimeoutError = class extends TeezError {
1396
- name = "TeezTimeoutError";
1397
- /**
1398
- * URL of the request that timed out.
1399
- */
1400
- url;
1401
- /**
1402
- * Timeout duration in milliseconds.
1403
- */
1404
- timeout;
1405
- constructor(message, { url, timeout, ...errorOptions }) {
1406
- super(message, errorOptions);
1407
- this.url = url;
1408
- this.timeout = timeout;
1409
- }
1410
- };
1411
-
1412
- //#endregion
1413
- //#region src/http/client.ts
1414
- /**
1415
- * Internal HTTP client for making API requests.
1416
- */
1417
- var HttpClient = class {
1418
- /**
1419
- * Client configuration.
1420
- */
1421
- config;
1422
- /**
1423
- * Headers to include in all requests.
1424
- */
1425
- headers;
1426
- /**
1427
- * Initializes a new instance of the HttpClient.
1428
- *
1429
- * @param config Resolved client configuration.
1430
- */
1431
- constructor(config) {
1432
- this.config = config;
1433
- this.headers = buildHeaders(config);
1434
- }
1435
- /**
1436
- * Performs a low-level HTTP request.
1437
- *
1438
- * @param options Request options.
1439
- */
1440
- async request(options) {
1441
- const { url, headers, ...fetchOptions } = options;
1442
- const controller = new AbortController();
1443
- const timeoutId = setTimeout(() => {
1444
- controller.abort();
1445
- }, this.config.timeout);
1446
- try {
1447
- const response = await fetch(url, {
1448
- ...fetchOptions,
1449
- headers: {
1450
- ...this.headers,
1451
- ...headers
1452
- },
1453
- signal: controller.signal
1454
- });
1455
- if (!response.ok) {
1456
- let body;
1457
- try {
1458
- body = await response.json();
1459
- } catch {
1460
- body = await response.text().catch(() => void 0);
1461
- }
1462
- throw new TeezApiError(`API request failed: ${response.status} ${response.statusText}`, {
1463
- url,
1464
- status: response.status,
1465
- statusText: response.statusText,
1466
- body
1467
- });
1468
- }
1469
- if (response.status === 204) return;
1470
- return await response.json();
1471
- } catch (error) {
1472
- if (error instanceof TeezApiError) throw error;
1473
- if (error instanceof DOMException && error.name === "AbortError") throw new TeezTimeoutError(`Request timed out after ${this.config.timeout}ms`, {
1474
- url,
1475
- timeout: this.config.timeout,
1476
- cause: error
1477
- });
1478
- throw new TeezNetworkError(`Network request failed`, {
1479
- url,
1480
- cause: error
1481
- });
1482
- } finally {
1483
- clearTimeout(timeoutId);
1484
- }
1485
- }
1486
- /**
1487
- * Performs a GET request and validates the response.
1488
- */
1489
- async get(options) {
1490
- const { path, params, schema, ...rest } = options;
1491
- const url = buildUrl(path, this.config.baseUrl, params);
1492
- return parseResponse(schema, await this.request({
1493
- url,
1494
- method: "GET",
1495
- ...rest
1496
- }));
1497
- }
1498
- /**
1499
- * Performs a POST request.
1500
- */
1501
- post(options) {
1502
- const { path, params, body, ...rest } = options;
1503
- const url = buildUrl(path, this.config.baseUrl, params);
1504
- return this.request({
1505
- url,
1506
- method: "POST",
1507
- headers: { "Content-Type": "application/json" },
1508
- body: body != void 0 ? JSON.stringify(body) : void 0,
1509
- ...rest
1510
- });
1511
- }
1512
- /**
1513
- * Performs a PATCH request.
1514
- */
1515
- patch(options) {
1516
- const { path, params, body, ...rest } = options;
1517
- const url = buildUrl(path, this.config.baseUrl, params);
1518
- return this.request({
1519
- url,
1520
- method: "PATCH",
1521
- headers: { "Content-Type": "application/json" },
1522
- body: body != void 0 ? JSON.stringify(body) : void 0,
1523
- ...rest
1524
- });
1525
- }
1526
- /**
1527
- * Performs a DELETE request.
1528
- */
1529
- delete(options) {
1530
- const { path, params, ...rest } = options;
1531
- const url = buildUrl(path, this.config.baseUrl, params);
1532
- return this.request({
1533
- url,
1534
- method: "DELETE",
1535
- ...rest
1536
- });
1537
- }
1538
- };
1539
-
1540
- //#endregion
1541
- //#region src/client.ts
1542
- /**
1543
- * Main client for interacting with the Teez B2C API.
1544
- *
1545
- * @example
1546
- * const client = new TeezClient({
1547
- * language: "ru",
1548
- * timeout: 10000
1549
- * });
1550
- */
1551
- var TeezClient = class {
1552
- /**
1553
- * Configuration used by the client.
1554
- */
1555
- config;
1556
- /**
1557
- * HTTP client for making requests.
1558
- */
1559
- http;
1560
- /**
1561
- * API for authentication operations.
1562
- */
1563
- auth;
1564
- /**
1565
- * API for retrieving banners.
1566
- */
1567
- banners;
1568
- /**
1569
- * API for retrieving categories.
1570
- */
1571
- categories;
1572
- /**
1573
- * API for retrieving collections.
1574
- */
1575
- collections;
1576
- /**
1577
- * API for retrieving feature flags.
1578
- */
1579
- featureFlags;
1580
- /**
1581
- * API for retrieving products.
1582
- */
1583
- products;
1584
- /**
1585
- * API for retrieving promotions.
1586
- */
1587
- promo;
1588
- /**
1589
- * API for retrieving shops.
1590
- */
1591
- shops;
1592
- /**
1593
- * API for retrieving SKU details.
1594
- */
1595
- sku;
1596
- /**
1597
- * API for user management operations.
1598
- */
1599
- users;
1600
- /**
1601
- * Initializes a new instance of the TeezClient.
1602
- *
1603
- * @param config Optional client configuration.
1604
- */
1605
- constructor(config) {
1606
- this.config = resolveConfig(config);
1607
- this.http = new HttpClient(this.config);
1608
- this.auth = new AuthApi(this.http);
1609
- this.banners = new BannersApi(this.http);
1610
- this.categories = new CategoriesApi(this.http);
1611
- this.collections = new CollectionsApi(this.http);
1612
- this.featureFlags = new FeatureFlagsApi(this.http);
1613
- this.products = new ProductsApi(this.http);
1614
- this.promo = new PromoApi(this.http);
1615
- this.shops = new ShopsApi(this.http);
1616
- this.sku = new SkuApi(this.http);
1617
- this.users = new UsersApi(this.http);
1618
- }
1619
- /**
1620
- * Returns the current client configuration.
1621
- */
1622
- getConfig() {
1623
- return this.config;
1624
- }
1625
- };
1626
-
1627
- //#endregion
1628
- export { AuthApi, AuthApiCheckTokenResponseSchema, AuthApiLoginResponseSchema, AuthApiVerifyResponseSchema, BASE_URL, BannerActionTypesSchema, BannerImageTypeSchema, BannersApi, BannersApiActionSchema, BannersApiBannerItemSchema, BannersApiImageSchema, BannersApiListResponseSchema, CategoriesApi, CategoriesApiGetParentsResponseItemSchema, CategoriesApiGetParentsResponseSchema, CategoriesApiGetResponseSchema, CategoriesApiListResponseItemSchema, CategoriesApiListResponseSchema, CollectionTypeSchema, CollectionsApi, CollectionsApiGetResponseSchema, CollectionsApiGetSkusResponseSchema, CollectionsApiListItemSchema, CollectionsApiListResponseSchema, CollectionsApiSkuItemSchema, CollectionsApiStockAvailabilitySchema, CollectionsStockAvailabilityTypeSchema, DEFAULT_APP_VERSION, DEFAULT_CONFIG, FeatureFlagsApi, FeatureFlagsApiItemSchema, FeatureFlagsApiListResponseSchema, LANGUAGES, ProductSortKeySchema, ProductsApi, ProductsApiBadgeSchema, ProductsApiGetReviewsResponseSchema, ProductsApiGetSortOptionsResponseSchema, ProductsApiListResponseSchema, ProductsApiProductItemSchema, ProductsApiReviewItemSchema, ProductsApiSortOptionSchema, ProductsApiStockAvailabilitySchema, ProductsStockAvailabilityTypeSchema, PromoApi, PromoApiItemSchema, PromoApiListResponseSchema, ShopsApi, ShopsApiContactInfoSchema, ShopsApiGetMonobrandResponseSchema, ShopsApiGetProductsResponseSchema, ShopsApiGetResponseSchema, ShopsApiProductItemSchema, ShopsApiShopItemSchema, ShopsApiStockAvailabilitySchema, ShopsApiTagSchema, ShopsStockAvailabilityTypeSchema, SkuApi, SkuApiAttributePropertySchema, SkuApiAttributePropertyValueSchema, SkuApiAttributeSchema, SkuApiBrandSchema, SkuApiCategorySchema, SkuApiCollectionItemSchema, SkuApiGetCollectionsResponseSchema, SkuApiGetResponseSchema, SkuApiGetReviewAvailableResponseSchema, SkuApiGetSimilarResponseSchema, SkuApiInstallmentSchema, SkuApiShopSchema, SkuApiSimilarItemSchema, SkuApiStockAvailabilitySchema, SkuApiTagSchema, SkuStockAvailabilityTypeSchema, TeezApiError, TeezClient, TeezError, TeezNetworkError, TeezTimeoutError, TeezValidationError, UsersApi, UsersApiLanguageEnumSchema, UsersApiRegisterDeviceResponseSchema, UsersApiUpdateLanguageResponseSchema, buildHeaders, buildUserAgent, resolveConfig };
1629
- //# sourceMappingURL=index.mjs.map
1
+ import { apiErrorResponseSchema } from "./contracts/api-error-response.mjs";
2
+ import { getObjectSchemaKeys, isObjectSchema } from "./schema/object-schema.mjs";
3
+ import { isHttpSuccessStatus } from "./http-operation/status.mjs";
4
+ import { defineHttpOperation } from "./http-operation/define.mjs";
5
+ import { emptyResponse, response } from "./http-operation/response-helpers.mjs";
6
+ import { authLoginOperation } from "./api/auth/login/operation.mjs";
7
+ import { nullishToUndefined } from "./schema/nullish.mjs";
8
+ import { authVerifyOperation } from "./api/auth/verify/operation.mjs";
9
+ import { authCheckTokenOperation } from "./api/auth/check-token/operation.mjs";
10
+ import { authOperations } from "./api/auth/operations.mjs";
11
+ import { bannersListOperation } from "./api/banners/list/operation.mjs";
12
+ import { bannersOperations } from "./api/banners/operations.mjs";
13
+ import { categoriesListOperation } from "./api/categories/list/operation.mjs";
14
+ import { categoriesGetOperation } from "./api/categories/get/operation.mjs";
15
+ import { categoriesGetParentsOperation } from "./api/categories/get-parents/operation.mjs";
16
+ import { categoriesOperations } from "./api/categories/operations.mjs";
17
+ import { categoryFilterOptionSchema, categoryFilterSchema, categoryFilterTypesSchema } from "./contracts/filters/category.mjs";
18
+ import { rangeFilterOptionSchema, rangeFilterSchema, rangeTypeSchema } from "./contracts/filters/range.mjs";
19
+ import { filterSchema } from "./contracts/filters/filter.mjs";
20
+ import { createPaginationFields } from "./contracts/pagination.mjs";
21
+ import { collectionsGetSkusOperation } from "./api/collections/get-skus/operation.mjs";
22
+ import { collectionsListOperation } from "./api/collections/list/operation.mjs";
23
+ import { collectionsGetOperation } from "./api/collections/get/operation.mjs";
24
+ import { collectionsOperations } from "./api/collections/operations.mjs";
25
+ import { favoritesGetIdsOperation } from "./api/favorites/get-ids/operation.mjs";
26
+ import { favoritesAddOperation } from "./api/favorites/add/operation.mjs";
27
+ import { favoritesRemoveOperation } from "./api/favorites/remove/operation.mjs";
28
+ import { favoritesOperations } from "./api/favorites/operations.mjs";
29
+ import { featureFlagsListOperation } from "./api/feature-flags/list/operation.mjs";
30
+ import { featureFlagsOperations } from "./api/feature-flags/operations.mjs";
31
+ import { productsAutocompleteOperation } from "./api/products/autocomplete/operation.mjs";
32
+ import { productsGetSortOptionsOperation } from "./api/products/get-sort-options/operation.mjs";
33
+ import { productsListOperation } from "./api/products/list/operation.mjs";
34
+ import { productsGetReviewsOperation } from "./api/products/get-reviews/operation.mjs";
35
+ import { productsOperations } from "./api/products/operations.mjs";
36
+ import { promoListOperation } from "./api/promo/list/operation.mjs";
37
+ import { promoOperations } from "./api/promo/operations.mjs";
38
+ import { promocodesValidateOperation } from "./api/promocodes/validate/operation.mjs";
39
+ import { promocodesOperations } from "./api/promocodes/operations.mjs";
40
+ import { shopsGetOperation } from "./api/shops/get/operation.mjs";
41
+ import { shopsGetMonobrandOperation } from "./api/shops/get-monobrand/operation.mjs";
42
+ import { shopsGetProductsOperation } from "./api/shops/get-products/operation.mjs";
43
+ import { shopsOperations } from "./api/shops/operations.mjs";
44
+ import { skuGetOperation } from "./api/sku/get/operation.mjs";
45
+ import { skuGetSimilarOperation } from "./api/sku/get-similar/operation.mjs";
46
+ import { skuGetCollectionsOperation } from "./api/sku/get-collections/operation.mjs";
47
+ import { skuGetReviewAvailableOperation } from "./api/sku/get-review-available/operation.mjs";
48
+ import { skuOperations } from "./api/sku/operations.mjs";
49
+ import { usersUpdateLanguageOperation } from "./api/users/update-language/operation.mjs";
50
+ import { usersRegisterDeviceOperation } from "./api/users/register-device/operation.mjs";
51
+ import { usersOperations } from "./api/users/operations.mjs";
52
+ import { getTeezOperation, teezOperationList, teezOperations, teezOperationsByName } from "./registry.mjs";
53
+ import { isHttpOperationFlattenable } from "./http-operation/flattenability.mjs";
54
+ import { defaultAppVersion, defaultBaseUrl, defaultLanguage, defaultTimeoutMs } from "./config/defaults.mjs";
55
+ import { defaultConfig, resolveConfig } from "./config/resolve.mjs";
56
+ import { buildHeaders, buildUserAgent } from "./config/headers.mjs";
57
+ import { TeezError } from "./errors/teez-error.mjs";
58
+ import { TeezApiError } from "./errors/teez-api-error.mjs";
59
+ import { TeezNetworkError } from "./errors/teez-network-error.mjs";
60
+ import { TeezTimeoutError } from "./errors/teez-timeout-error.mjs";
61
+ import { TeezValidationError } from "./errors/teez-validation-error.mjs";
62
+ import { createRuntime } from "./sdk/runtime.mjs";
63
+ import { createTeezClient, createTeezClientFromOperations } from "./sdk/create-client.mjs";
64
+ import { supportedLanguages } from "./language.mjs";
65
+ import { getOperationApiError, isOperationApiError } from "./http-operation/api-error.mjs";
66
+ export { TeezApiError, TeezError, TeezNetworkError, TeezTimeoutError, TeezValidationError, apiErrorResponseSchema, authCheckTokenOperation, authLoginOperation, authOperations, authVerifyOperation, bannersListOperation, bannersOperations, buildHeaders, buildUserAgent, categoriesGetOperation, categoriesGetParentsOperation, categoriesListOperation, categoriesOperations, categoryFilterOptionSchema, categoryFilterSchema, categoryFilterTypesSchema, collectionsGetOperation, collectionsGetSkusOperation, collectionsListOperation, collectionsOperations, createPaginationFields, createRuntime, createTeezClient, createTeezClientFromOperations, defaultAppVersion, defaultBaseUrl, defaultConfig, defaultLanguage, defaultTimeoutMs, defineHttpOperation, emptyResponse, favoritesAddOperation, favoritesGetIdsOperation, favoritesOperations, favoritesRemoveOperation, featureFlagsListOperation, featureFlagsOperations, filterSchema, getObjectSchemaKeys, getOperationApiError, getTeezOperation, isHttpOperationFlattenable, isHttpSuccessStatus, isObjectSchema, isOperationApiError, nullishToUndefined, productsAutocompleteOperation, productsGetReviewsOperation, productsGetSortOptionsOperation, productsListOperation, productsOperations, promoListOperation, promoOperations, promocodesOperations, promocodesValidateOperation, rangeFilterOptionSchema, rangeFilterSchema, rangeTypeSchema, resolveConfig, response, shopsGetMonobrandOperation, shopsGetOperation, shopsGetProductsOperation, shopsOperations, skuGetCollectionsOperation, skuGetOperation, skuGetReviewAvailableOperation, skuGetSimilarOperation, skuOperations, supportedLanguages, teezOperationList, teezOperations, teezOperationsByName, usersOperations, usersRegisterDeviceOperation, usersUpdateLanguageOperation };