@typewoo/sdk 3.2.0 → 3.4.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 (476) hide show
  1. package/README.md +21 -2
  2. package/dist/index.d.ts +2 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +3 -2
  5. package/dist/index.js.map +1 -1
  6. package/dist/lib/configs/sdk.config.d.ts +56 -2
  7. package/dist/lib/configs/sdk.config.d.ts.map +1 -1
  8. package/dist/lib/configs/sdk.config.js +46 -23
  9. package/dist/lib/configs/sdk.config.js.map +1 -1
  10. package/dist/lib/extensions/index.d.ts +4 -0
  11. package/dist/lib/extensions/index.d.ts.map +1 -0
  12. package/dist/lib/extensions/index.js +5 -0
  13. package/dist/lib/extensions/index.js.map +1 -0
  14. package/dist/lib/extensions/loop/index.d.ts +3 -0
  15. package/dist/lib/extensions/loop/index.d.ts.map +1 -0
  16. package/dist/lib/extensions/loop/index.js +3 -0
  17. package/dist/lib/extensions/loop/index.js.map +1 -0
  18. package/dist/lib/extensions/loop/loop.d.ts +10 -0
  19. package/dist/lib/extensions/loop/loop.d.ts.map +1 -0
  20. package/dist/lib/extensions/loop/loop.js +82 -0
  21. package/dist/lib/extensions/loop/loop.js.map +1 -0
  22. package/dist/lib/extensions/loop/loop.options.d.ts +44 -0
  23. package/dist/lib/extensions/loop/loop.options.d.ts.map +1 -0
  24. package/dist/lib/extensions/loop/loop.options.js +2 -0
  25. package/dist/lib/extensions/loop/loop.options.js.map +1 -0
  26. package/dist/lib/extensions/paginated-request.d.ts +59 -0
  27. package/dist/lib/extensions/paginated-request.d.ts.map +1 -0
  28. package/dist/lib/extensions/paginated-request.js +70 -0
  29. package/dist/lib/extensions/paginated-request.js.map +1 -0
  30. package/dist/lib/http/http.client.d.ts +5 -0
  31. package/dist/lib/http/http.client.d.ts.map +1 -0
  32. package/dist/lib/http/http.client.js +22 -0
  33. package/dist/lib/http/http.client.js.map +1 -0
  34. package/dist/lib/http/http.d.ts +9 -0
  35. package/dist/lib/http/http.d.ts.map +1 -0
  36. package/dist/lib/http/http.helper.d.ts +32 -0
  37. package/dist/lib/http/http.helper.d.ts.map +1 -0
  38. package/dist/lib/http/http.helper.js +115 -0
  39. package/dist/lib/http/http.helper.js.map +1 -0
  40. package/dist/lib/http/http.js +28 -0
  41. package/dist/lib/http/http.js.map +1 -0
  42. package/dist/lib/http/http.request.d.ts +5 -0
  43. package/dist/lib/http/http.request.d.ts.map +1 -0
  44. package/dist/lib/http/http.request.js +96 -0
  45. package/dist/lib/http/http.request.js.map +1 -0
  46. package/dist/lib/http/index.d.ts +5 -0
  47. package/dist/lib/http/index.d.ts.map +1 -0
  48. package/dist/lib/http/index.js +5 -0
  49. package/dist/lib/http/index.js.map +1 -0
  50. package/dist/lib/interceptors/admin-auth.interceptor.d.ts.map +1 -1
  51. package/dist/lib/interceptors/admin-auth.interceptor.js +1 -1
  52. package/dist/lib/interceptors/admin-auth.interceptor.js.map +1 -1
  53. package/dist/lib/interceptors/cart.token.interceptor.js +1 -1
  54. package/dist/lib/interceptors/cart.token.interceptor.js.map +1 -1
  55. package/dist/lib/interceptors/nonce.interceptor.js +1 -1
  56. package/dist/lib/interceptors/nonce.interceptor.js.map +1 -1
  57. package/dist/lib/interceptors/refresh.token.interceptor.d.ts.map +1 -1
  58. package/dist/lib/interceptors/refresh.token.interceptor.js +5 -3
  59. package/dist/lib/interceptors/refresh.token.interceptor.js.map +1 -1
  60. package/dist/lib/interceptors/token.interceptor.js +1 -1
  61. package/dist/lib/interceptors/token.interceptor.js.map +1 -1
  62. package/dist/lib/sdk.d.ts.map +1 -1
  63. package/dist/lib/sdk.js +4 -2
  64. package/dist/lib/sdk.js.map +1 -1
  65. package/dist/lib/services/admin/coupon.service.d.ts +28 -8
  66. package/dist/lib/services/admin/coupon.service.d.ts.map +1 -1
  67. package/dist/lib/services/admin/coupon.service.js +38 -16
  68. package/dist/lib/services/admin/coupon.service.js.map +1 -1
  69. package/dist/lib/services/admin/customer.service.d.ts +9 -7
  70. package/dist/lib/services/admin/customer.service.d.ts.map +1 -1
  71. package/dist/lib/services/admin/customer.service.js +19 -15
  72. package/dist/lib/services/admin/customer.service.js.map +1 -1
  73. package/dist/lib/services/admin/data.service.d.ts +7 -6
  74. package/dist/lib/services/admin/data.service.d.ts.map +1 -1
  75. package/dist/lib/services/admin/data.service.js +13 -13
  76. package/dist/lib/services/admin/data.service.js.map +1 -1
  77. package/dist/lib/services/admin/order.service.d.ts +23 -21
  78. package/dist/lib/services/admin/order.service.d.ts.map +1 -1
  79. package/dist/lib/services/admin/order.service.js +47 -43
  80. package/dist/lib/services/admin/order.service.js.map +1 -1
  81. package/dist/lib/services/admin/payment-gateway.service.d.ts +6 -4
  82. package/dist/lib/services/admin/payment-gateway.service.d.ts.map +1 -1
  83. package/dist/lib/services/admin/payment-gateway.service.js +13 -9
  84. package/dist/lib/services/admin/payment-gateway.service.js.map +1 -1
  85. package/dist/lib/services/admin/product-attribute-term.service.d.ts +9 -7
  86. package/dist/lib/services/admin/product-attribute-term.service.d.ts.map +1 -1
  87. package/dist/lib/services/admin/product-attribute-term.service.js +19 -15
  88. package/dist/lib/services/admin/product-attribute-term.service.js.map +1 -1
  89. package/dist/lib/services/admin/product-attribute.service.d.ts +9 -7
  90. package/dist/lib/services/admin/product-attribute.service.d.ts.map +1 -1
  91. package/dist/lib/services/admin/product-attribute.service.js +19 -15
  92. package/dist/lib/services/admin/product-attribute.service.js.map +1 -1
  93. package/dist/lib/services/admin/product-brand.service.d.ts +9 -7
  94. package/dist/lib/services/admin/product-brand.service.d.ts.map +1 -1
  95. package/dist/lib/services/admin/product-brand.service.js +19 -15
  96. package/dist/lib/services/admin/product-brand.service.js.map +1 -1
  97. package/dist/lib/services/admin/product-category.service.d.ts +9 -7
  98. package/dist/lib/services/admin/product-category.service.d.ts.map +1 -1
  99. package/dist/lib/services/admin/product-category.service.js +19 -15
  100. package/dist/lib/services/admin/product-category.service.js.map +1 -1
  101. package/dist/lib/services/admin/product-review.service.d.ts +9 -7
  102. package/dist/lib/services/admin/product-review.service.d.ts.map +1 -1
  103. package/dist/lib/services/admin/product-review.service.js +19 -15
  104. package/dist/lib/services/admin/product-review.service.js.map +1 -1
  105. package/dist/lib/services/admin/product-tag.service.d.ts +9 -7
  106. package/dist/lib/services/admin/product-tag.service.d.ts.map +1 -1
  107. package/dist/lib/services/admin/product-tag.service.js +19 -15
  108. package/dist/lib/services/admin/product-tag.service.js.map +1 -1
  109. package/dist/lib/services/admin/product.service.d.ts +16 -14
  110. package/dist/lib/services/admin/product.service.d.ts.map +1 -1
  111. package/dist/lib/services/admin/product.service.js +35 -31
  112. package/dist/lib/services/admin/product.service.js.map +1 -1
  113. package/dist/lib/services/admin/refund.service.d.ts +3 -2
  114. package/dist/lib/services/admin/refund.service.d.ts.map +1 -1
  115. package/dist/lib/services/admin/refund.service.js +9 -5
  116. package/dist/lib/services/admin/refund.service.js.map +1 -1
  117. package/dist/lib/services/admin/report.service.d.ts +12 -10
  118. package/dist/lib/services/admin/report.service.d.ts.map +1 -1
  119. package/dist/lib/services/admin/report.service.js +27 -23
  120. package/dist/lib/services/admin/report.service.js.map +1 -1
  121. package/dist/lib/services/admin/setting.service.d.ts +7 -6
  122. package/dist/lib/services/admin/setting.service.d.ts.map +1 -1
  123. package/dist/lib/services/admin/setting.service.js +13 -13
  124. package/dist/lib/services/admin/setting.service.js.map +1 -1
  125. package/dist/lib/services/admin/shipping-class.service.d.ts +9 -7
  126. package/dist/lib/services/admin/shipping-class.service.d.ts.map +1 -1
  127. package/dist/lib/services/admin/shipping-class.service.js +19 -15
  128. package/dist/lib/services/admin/shipping-class.service.js.map +1 -1
  129. package/dist/lib/services/admin/shipping-method.service.d.ts +5 -3
  130. package/dist/lib/services/admin/shipping-method.service.d.ts.map +1 -1
  131. package/dist/lib/services/admin/shipping-method.service.js +11 -7
  132. package/dist/lib/services/admin/shipping-method.service.js.map +1 -1
  133. package/dist/lib/services/admin/shipping-zone.service.d.ts +14 -12
  134. package/dist/lib/services/admin/shipping-zone.service.d.ts.map +1 -1
  135. package/dist/lib/services/admin/shipping-zone.service.js +31 -27
  136. package/dist/lib/services/admin/shipping-zone.service.js.map +1 -1
  137. package/dist/lib/services/admin/system-status.service.d.ts +2 -1
  138. package/dist/lib/services/admin/system-status.service.d.ts.map +1 -1
  139. package/dist/lib/services/admin/system-status.service.js +3 -3
  140. package/dist/lib/services/admin/system-status.service.js.map +1 -1
  141. package/dist/lib/services/admin/tax.service.d.ts +13 -11
  142. package/dist/lib/services/admin/tax.service.d.ts.map +1 -1
  143. package/dist/lib/services/admin/tax.service.js +27 -23
  144. package/dist/lib/services/admin/tax.service.js.map +1 -1
  145. package/dist/lib/services/admin/webhook.service.d.ts +9 -7
  146. package/dist/lib/services/admin/webhook.service.d.ts.map +1 -1
  147. package/dist/lib/services/admin/webhook.service.js +19 -15
  148. package/dist/lib/services/admin/webhook.service.js.map +1 -1
  149. package/dist/lib/services/api.d.ts +3 -4
  150. package/dist/lib/services/api.d.ts.map +1 -1
  151. package/dist/lib/services/api.js +5 -19
  152. package/dist/lib/services/api.js.map +1 -1
  153. package/dist/lib/services/auth/auth.service.d.ts +7 -7
  154. package/dist/lib/services/auth/auth.service.d.ts.map +1 -1
  155. package/dist/lib/services/auth/auth.service.js +1 -1
  156. package/dist/lib/services/auth/auth.service.js.map +1 -1
  157. package/dist/lib/services/store/batch.service.d.ts +2 -1
  158. package/dist/lib/services/store/batch.service.d.ts.map +1 -1
  159. package/dist/lib/services/store/batch.service.js +2 -3
  160. package/dist/lib/services/store/batch.service.js.map +1 -1
  161. package/dist/lib/services/store/cart.coupon.service.d.ts +6 -5
  162. package/dist/lib/services/store/cart.coupon.service.d.ts.map +1 -1
  163. package/dist/lib/services/store/cart.coupon.service.js +11 -11
  164. package/dist/lib/services/store/cart.coupon.service.js.map +1 -1
  165. package/dist/lib/services/store/cart.extensions.service.d.ts +2 -1
  166. package/dist/lib/services/store/cart.extensions.service.d.ts.map +1 -1
  167. package/dist/lib/services/store/cart.extensions.service.js +2 -3
  168. package/dist/lib/services/store/cart.extensions.service.js.map +1 -1
  169. package/dist/lib/services/store/cart.item.service.d.ts +7 -6
  170. package/dist/lib/services/store/cart.item.service.d.ts.map +1 -1
  171. package/dist/lib/services/store/cart.item.service.js +7 -13
  172. package/dist/lib/services/store/cart.item.service.js.map +1 -1
  173. package/dist/lib/services/store/cart.service.d.ts +9 -8
  174. package/dist/lib/services/store/cart.service.d.ts.map +1 -1
  175. package/dist/lib/services/store/cart.service.js +9 -17
  176. package/dist/lib/services/store/cart.service.js.map +1 -1
  177. package/dist/lib/services/store/checkout.order.service.d.ts +2 -1
  178. package/dist/lib/services/store/checkout.order.service.d.ts.map +1 -1
  179. package/dist/lib/services/store/checkout.order.service.js +2 -3
  180. package/dist/lib/services/store/checkout.order.service.js.map +1 -1
  181. package/dist/lib/services/store/checkout.service.d.ts +4 -3
  182. package/dist/lib/services/store/checkout.service.d.ts.map +1 -1
  183. package/dist/lib/services/store/checkout.service.js +4 -7
  184. package/dist/lib/services/store/checkout.service.js.map +1 -1
  185. package/dist/lib/services/store/order.service.d.ts +2 -1
  186. package/dist/lib/services/store/order.service.d.ts.map +1 -1
  187. package/dist/lib/services/store/order.service.js +2 -3
  188. package/dist/lib/services/store/order.service.js.map +1 -1
  189. package/dist/lib/services/store/product.attribute.service.d.ts +3 -2
  190. package/dist/lib/services/store/product.attribute.service.d.ts.map +1 -1
  191. package/dist/lib/services/store/product.attribute.service.js +5 -5
  192. package/dist/lib/services/store/product.attribute.service.js.map +1 -1
  193. package/dist/lib/services/store/product.attribute.term.service.d.ts +3 -2
  194. package/dist/lib/services/store/product.attribute.term.service.d.ts.map +1 -1
  195. package/dist/lib/services/store/product.attribute.term.service.js +7 -5
  196. package/dist/lib/services/store/product.attribute.term.service.js.map +1 -1
  197. package/dist/lib/services/store/product.brand.service.d.ts +5 -3
  198. package/dist/lib/services/store/product.brand.service.d.ts.map +1 -1
  199. package/dist/lib/services/store/product.brand.service.js +9 -7
  200. package/dist/lib/services/store/product.brand.service.js.map +1 -1
  201. package/dist/lib/services/store/product.category.service.d.ts +5 -3
  202. package/dist/lib/services/store/product.category.service.d.ts.map +1 -1
  203. package/dist/lib/services/store/product.category.service.js +9 -7
  204. package/dist/lib/services/store/product.category.service.js.map +1 -1
  205. package/dist/lib/services/store/product.collection.data.service.d.ts +2 -1
  206. package/dist/lib/services/store/product.collection.data.service.d.ts.map +1 -1
  207. package/dist/lib/services/store/product.collection.data.service.js +3 -3
  208. package/dist/lib/services/store/product.collection.data.service.js.map +1 -1
  209. package/dist/lib/services/store/product.review.service.d.ts +3 -2
  210. package/dist/lib/services/store/product.review.service.d.ts.map +1 -1
  211. package/dist/lib/services/store/product.review.service.js +7 -5
  212. package/dist/lib/services/store/product.review.service.js.map +1 -1
  213. package/dist/lib/services/store/product.service.d.ts +5 -3
  214. package/dist/lib/services/store/product.service.d.ts.map +1 -1
  215. package/dist/lib/services/store/product.service.js +15 -13
  216. package/dist/lib/services/store/product.service.js.map +1 -1
  217. package/dist/lib/services/store/product.tag.service.d.ts +3 -2
  218. package/dist/lib/services/store/product.tag.service.d.ts.map +1 -1
  219. package/dist/lib/services/store/product.tag.service.js +7 -5
  220. package/dist/lib/services/store/product.tag.service.js.map +1 -1
  221. package/dist/lib/storage/auth.storage.d.ts +27 -0
  222. package/dist/lib/storage/auth.storage.d.ts.map +1 -0
  223. package/dist/lib/storage/auth.storage.js +113 -0
  224. package/dist/lib/storage/auth.storage.js.map +1 -0
  225. package/dist/lib/types/admin/attribute.types.d.ts +9 -6
  226. package/dist/lib/types/admin/attribute.types.d.ts.map +1 -1
  227. package/dist/lib/types/admin/attribute.types.js +6 -6
  228. package/dist/lib/types/admin/attribute.types.js.map +1 -1
  229. package/dist/lib/types/admin/coupon.types.d.ts +127 -4
  230. package/dist/lib/types/admin/coupon.types.d.ts.map +1 -1
  231. package/dist/lib/types/admin/coupon.types.js +3 -3
  232. package/dist/lib/types/admin/coupon.types.js.map +1 -1
  233. package/dist/lib/types/admin/customer.types.d.ts +37 -5
  234. package/dist/lib/types/admin/customer.types.d.ts.map +1 -1
  235. package/dist/lib/types/admin/customer.types.js +7 -5
  236. package/dist/lib/types/admin/customer.types.js.map +1 -1
  237. package/dist/lib/types/admin/data.types.d.ts +4 -4
  238. package/dist/lib/types/admin/data.types.js +4 -4
  239. package/dist/lib/types/admin/data.types.js.map +1 -1
  240. package/dist/lib/types/admin/order.types.d.ts +31 -31
  241. package/dist/lib/types/admin/order.types.js +17 -17
  242. package/dist/lib/types/admin/order.types.js.map +1 -1
  243. package/dist/lib/types/admin/payment-gateway.types.d.ts +3 -3
  244. package/dist/lib/types/admin/payment-gateway.types.js +3 -3
  245. package/dist/lib/types/admin/payment-gateway.types.js.map +1 -1
  246. package/dist/lib/types/admin/product-brand.types.d.ts +6 -3
  247. package/dist/lib/types/admin/product-brand.types.d.ts.map +1 -1
  248. package/dist/lib/types/admin/product-brand.types.js +3 -3
  249. package/dist/lib/types/admin/product-brand.types.js.map +1 -1
  250. package/dist/lib/types/admin/product-review.types.d.ts +4 -4
  251. package/dist/lib/types/admin/product-review.types.js +3 -3
  252. package/dist/lib/types/admin/product-review.types.js.map +1 -1
  253. package/dist/lib/types/admin/product.types.d.ts +24 -23
  254. package/dist/lib/types/admin/product.types.d.ts.map +1 -1
  255. package/dist/lib/types/admin/product.types.js +12 -11
  256. package/dist/lib/types/admin/product.types.js.map +1 -1
  257. package/dist/lib/types/admin/refund.types.d.ts +12 -12
  258. package/dist/lib/types/admin/refund.types.js +7 -7
  259. package/dist/lib/types/admin/refund.types.js.map +1 -1
  260. package/dist/lib/types/admin/report.types.d.ts +11 -11
  261. package/dist/lib/types/admin/report.types.js +7 -7
  262. package/dist/lib/types/admin/report.types.js.map +1 -1
  263. package/dist/lib/types/admin/setting.types.d.ts +3 -3
  264. package/dist/lib/types/admin/setting.types.js +3 -3
  265. package/dist/lib/types/admin/setting.types.js.map +1 -1
  266. package/dist/lib/types/admin/shipping-method.types.d.ts +2 -2
  267. package/dist/lib/types/admin/shipping-method.types.js +2 -2
  268. package/dist/lib/types/admin/shipping-method.types.js.map +1 -1
  269. package/dist/lib/types/admin/shipping-zone.types.d.ts +8 -8
  270. package/dist/lib/types/admin/shipping-zone.types.js +8 -8
  271. package/dist/lib/types/admin/shipping-zone.types.js.map +1 -1
  272. package/dist/lib/types/admin/system-status.types.d.ts +2 -2
  273. package/dist/lib/types/admin/system-status.types.js +2 -2
  274. package/dist/lib/types/admin/system-status.types.js.map +1 -1
  275. package/dist/lib/types/admin/tax.types.d.ts +7 -7
  276. package/dist/lib/types/admin/tax.types.js +6 -6
  277. package/dist/lib/types/admin/tax.types.js.map +1 -1
  278. package/dist/lib/types/admin/taxonomy.types.d.ts +9 -9
  279. package/dist/lib/types/admin/taxonomy.types.js +9 -9
  280. package/dist/lib/types/admin/taxonomy.types.js.map +1 -1
  281. package/dist/lib/types/admin/webhook.types.d.ts +4 -4
  282. package/dist/lib/types/admin/webhook.types.js +3 -3
  283. package/dist/lib/types/admin/webhook.types.js.map +1 -1
  284. package/dist/lib/types/auth/one-time-token/auth.one.time.token.request.d.ts +1 -1
  285. package/dist/lib/types/auth/one-time-token/auth.one.time.token.request.js +1 -1
  286. package/dist/lib/types/auth/one-time-token/auth.one.time.token.request.js.map +1 -1
  287. package/dist/lib/types/auth/one-time-token/auth.one.time.token.response.d.ts +1 -1
  288. package/dist/lib/types/auth/one-time-token/auth.one.time.token.response.js +1 -1
  289. package/dist/lib/types/auth/one-time-token/auth.one.time.token.response.js.map +1 -1
  290. package/dist/lib/types/auth/refresh/auth.refresh.request.d.ts +1 -1
  291. package/dist/lib/types/auth/refresh/auth.refresh.request.js +1 -1
  292. package/dist/lib/types/auth/refresh/auth.refresh.request.js.map +1 -1
  293. package/dist/lib/types/auth/revoke/auth.revoke.request.d.ts +1 -1
  294. package/dist/lib/types/auth/revoke/auth.revoke.request.js +1 -1
  295. package/dist/lib/types/auth/revoke/auth.revoke.request.js.map +1 -1
  296. package/dist/lib/types/auth/revoke/auth.revoke.response.d.ts +1 -1
  297. package/dist/lib/types/auth/revoke/auth.revoke.response.js +1 -1
  298. package/dist/lib/types/auth/revoke/auth.revoke.response.js.map +1 -1
  299. package/dist/lib/types/auth/status/auth.status.response.d.ts +1 -1
  300. package/dist/lib/types/auth/status/auth.status.response.js +1 -1
  301. package/dist/lib/types/auth/status/auth.status.response.js.map +1 -1
  302. package/dist/lib/types/auth/token/auth.token.request.d.ts +1 -1
  303. package/dist/lib/types/auth/token/auth.token.request.js +1 -1
  304. package/dist/lib/types/auth/token/auth.token.request.js.map +1 -1
  305. package/dist/lib/types/auth/token/auth.token.response.d.ts +2 -2
  306. package/dist/lib/types/auth/token/auth.token.response.js +2 -2
  307. package/dist/lib/types/auth/token/auth.token.response.js.map +1 -1
  308. package/dist/lib/types/auth/validate/auth.validate.response.d.ts +2 -2
  309. package/dist/lib/types/auth/validate/auth.validate.response.js +2 -2
  310. package/dist/lib/types/auth/validate/auth.validate.response.js.map +1 -1
  311. package/dist/lib/types/request.d.ts +19 -0
  312. package/dist/lib/types/request.d.ts.map +1 -0
  313. package/dist/lib/types/request.js +2 -0
  314. package/dist/lib/types/request.js.map +1 -0
  315. package/dist/lib/types/sdk.state.d.ts +19 -19
  316. package/dist/lib/types/store/batch/batch.request.d.ts +38 -5
  317. package/dist/lib/types/store/batch/batch.request.d.ts.map +1 -1
  318. package/dist/lib/types/store/batch/batch.request.js +2 -2
  319. package/dist/lib/types/store/batch/batch.request.js.map +1 -1
  320. package/dist/lib/types/store/batch/batch.response.d.ts +24 -3
  321. package/dist/lib/types/store/batch/batch.response.d.ts.map +1 -1
  322. package/dist/lib/types/store/batch/batch.response.js +2 -2
  323. package/dist/lib/types/store/batch/batch.response.js.map +1 -1
  324. package/dist/lib/types/store/cart/cart.billing.response.d.ts +1 -1
  325. package/dist/lib/types/store/cart/cart.billing.response.js +1 -1
  326. package/dist/lib/types/store/cart/cart.billing.response.js.map +1 -1
  327. package/dist/lib/types/store/cart/cart.customer.request.d.ts +3 -3
  328. package/dist/lib/types/store/cart/cart.customer.request.js +3 -3
  329. package/dist/lib/types/store/cart/cart.customer.request.js.map +1 -1
  330. package/dist/lib/types/store/cart/cart.response.d.ts +19 -19
  331. package/dist/lib/types/store/cart/cart.response.js +1 -1
  332. package/dist/lib/types/store/cart/cart.response.js.map +1 -1
  333. package/dist/lib/types/store/cart/cart.shipping.rate.response.d.ts +5 -5
  334. package/dist/lib/types/store/cart/cart.shipping.rate.response.js +5 -5
  335. package/dist/lib/types/store/cart/cart.shipping.rate.response.js.map +1 -1
  336. package/dist/lib/types/store/cart/cart.shipping.response.d.ts +1 -1
  337. package/dist/lib/types/store/cart/cart.shipping.response.js +1 -1
  338. package/dist/lib/types/store/cart/cart.shipping.response.js.map +1 -1
  339. package/dist/lib/types/store/cart/cart.total.response.d.ts +2 -2
  340. package/dist/lib/types/store/cart/cart.total.response.js +2 -2
  341. package/dist/lib/types/store/cart/cart.total.response.js.map +1 -1
  342. package/dist/lib/types/store/cart-coupon/cart.coupon.response.d.ts +2 -2
  343. package/dist/lib/types/store/cart-coupon/cart.coupon.response.js +1 -1
  344. package/dist/lib/types/store/cart-coupon/cart.coupon.response.js.map +1 -1
  345. package/dist/lib/types/store/cart-coupon/cart.coupon.total.response.d.ts +1 -1
  346. package/dist/lib/types/store/cart-coupon/cart.coupon.total.response.js +1 -1
  347. package/dist/lib/types/store/cart-coupon/cart.coupon.total.response.js.map +1 -1
  348. package/dist/lib/types/store/cart-extensions/cart.extensions.request.d.ts +7 -1
  349. package/dist/lib/types/store/cart-extensions/cart.extensions.request.d.ts.map +1 -1
  350. package/dist/lib/types/store/cart-extensions/cart.extensions.request.js +1 -1
  351. package/dist/lib/types/store/cart-extensions/cart.extensions.request.js.map +1 -1
  352. package/dist/lib/types/store/cart-extensions/cart.extensions.response.d.ts +13 -1
  353. package/dist/lib/types/store/cart-extensions/cart.extensions.response.d.ts.map +1 -1
  354. package/dist/lib/types/store/cart-extensions/cart.extensions.response.js +1 -1
  355. package/dist/lib/types/store/cart-extensions/cart.extensions.response.js.map +1 -1
  356. package/dist/lib/types/store/cart-item/cart.item.add.request.d.ts +10 -1
  357. package/dist/lib/types/store/cart-item/cart.item.add.request.d.ts.map +1 -1
  358. package/dist/lib/types/store/cart-item/cart.item.add.request.js +1 -1
  359. package/dist/lib/types/store/cart-item/cart.item.add.request.js.map +1 -1
  360. package/dist/lib/types/store/cart-item/cart.item.edit.request.d.ts +7 -1
  361. package/dist/lib/types/store/cart-item/cart.item.edit.request.d.ts.map +1 -1
  362. package/dist/lib/types/store/cart-item/cart.item.edit.request.js +1 -1
  363. package/dist/lib/types/store/cart-item/cart.item.edit.request.js.map +1 -1
  364. package/dist/lib/types/store/cart-item/cart.item.price.response.d.ts +2 -2
  365. package/dist/lib/types/store/cart-item/cart.item.price.response.js +2 -2
  366. package/dist/lib/types/store/cart-item/cart.item.price.response.js.map +1 -1
  367. package/dist/lib/types/store/cart-item/cart.item.quantity.limits.response.d.ts +1 -1
  368. package/dist/lib/types/store/cart-item/cart.item.quantity.limits.response.js +1 -1
  369. package/dist/lib/types/store/cart-item/cart.item.quantity.limits.response.js.map +1 -1
  370. package/dist/lib/types/store/cart-item/cart.item.response.d.ts +7 -7
  371. package/dist/lib/types/store/cart-item/cart.item.response.js +1 -1
  372. package/dist/lib/types/store/cart-item/cart.item.response.js.map +1 -1
  373. package/dist/lib/types/store/cart-item/cart.item.total.response.d.ts +1 -1
  374. package/dist/lib/types/store/cart-item/cart.item.total.response.js +1 -1
  375. package/dist/lib/types/store/cart-item/cart.item.total.response.js.map +1 -1
  376. package/dist/lib/types/store/cart-item/cart.item.variation.response.d.ts +1 -1
  377. package/dist/lib/types/store/cart-item/cart.item.variation.response.js +1 -1
  378. package/dist/lib/types/store/cart-item/cart.item.variation.response.js.map +1 -1
  379. package/dist/lib/types/store/checkout/checkout.billing.response.d.ts +1 -1
  380. package/dist/lib/types/store/checkout/checkout.billing.response.js +1 -1
  381. package/dist/lib/types/store/checkout/checkout.billing.response.js.map +1 -1
  382. package/dist/lib/types/store/checkout/checkout.create.request.d.ts +22 -4
  383. package/dist/lib/types/store/checkout/checkout.create.request.d.ts.map +1 -1
  384. package/dist/lib/types/store/checkout/checkout.create.request.js +2 -2
  385. package/dist/lib/types/store/checkout/checkout.create.request.js.map +1 -1
  386. package/dist/lib/types/store/checkout/checkout.response.d.ts +4 -4
  387. package/dist/lib/types/store/checkout/checkout.response.js +2 -2
  388. package/dist/lib/types/store/checkout/checkout.response.js.map +1 -1
  389. package/dist/lib/types/store/checkout/checkout.shipping.d.ts +1 -1
  390. package/dist/lib/types/store/checkout/checkout.shipping.js +1 -1
  391. package/dist/lib/types/store/checkout/checkout.shipping.js.map +1 -1
  392. package/dist/lib/types/store/checkout/checkout.update.request.d.ts +10 -1
  393. package/dist/lib/types/store/checkout/checkout.update.request.d.ts.map +1 -1
  394. package/dist/lib/types/store/checkout/checkout.update.request.js +1 -1
  395. package/dist/lib/types/store/checkout/checkout.update.request.js.map +1 -1
  396. package/dist/lib/types/store/image.response.d.ts +1 -1
  397. package/dist/lib/types/store/image.response.js +1 -1
  398. package/dist/lib/types/store/image.response.js.map +1 -1
  399. package/dist/lib/types/store/order/order.billing.response.d.ts +1 -1
  400. package/dist/lib/types/store/order/order.billing.response.js +1 -1
  401. package/dist/lib/types/store/order/order.billing.response.js.map +1 -1
  402. package/dist/lib/types/store/order/order.coupon.response.d.ts +2 -2
  403. package/dist/lib/types/store/order/order.coupon.response.js +2 -2
  404. package/dist/lib/types/store/order/order.coupon.response.js.map +1 -1
  405. package/dist/lib/types/store/order/order.request.d.ts +22 -4
  406. package/dist/lib/types/store/order/order.request.d.ts.map +1 -1
  407. package/dist/lib/types/store/order/order.request.js +2 -2
  408. package/dist/lib/types/store/order/order.request.js.map +1 -1
  409. package/dist/lib/types/store/order/order.response.d.ts +13 -13
  410. package/dist/lib/types/store/order/order.response.js +1 -1
  411. package/dist/lib/types/store/order/order.response.js.map +1 -1
  412. package/dist/lib/types/store/order/order.shipping.response.d.ts +1 -1
  413. package/dist/lib/types/store/order/order.shipping.response.js +1 -1
  414. package/dist/lib/types/store/order/order.shipping.response.js.map +1 -1
  415. package/dist/lib/types/store/order/order.total.response.d.ts +1 -1
  416. package/dist/lib/types/store/order/order.total.response.js +1 -1
  417. package/dist/lib/types/store/order/order.total.response.js.map +1 -1
  418. package/dist/lib/types/store/product/product.price.response.d.ts +1 -1
  419. package/dist/lib/types/store/product/product.price.response.js +1 -1
  420. package/dist/lib/types/store/product/product.price.response.js.map +1 -1
  421. package/dist/lib/types/store/product/product.request.d.ts +1 -1
  422. package/dist/lib/types/store/product/product.request.js +1 -1
  423. package/dist/lib/types/store/product/product.response.d.ts +8 -8
  424. package/dist/lib/types/store/product/product.response.js +6 -6
  425. package/dist/lib/types/store/product/product.response.js.map +1 -1
  426. package/dist/lib/types/store/product-attribute/product.attribute.response.d.ts +1 -1
  427. package/dist/lib/types/store/product-attribute/product.attribute.response.js +1 -1
  428. package/dist/lib/types/store/product-attribute/product.attribute.response.js.map +1 -1
  429. package/dist/lib/types/store/product-attribute-term/product.attribute.term.request.d.ts +12 -1
  430. package/dist/lib/types/store/product-attribute-term/product.attribute.term.request.d.ts.map +1 -1
  431. package/dist/lib/types/store/product-attribute-term/product.attribute.term.request.js +2 -2
  432. package/dist/lib/types/store/product-attribute-term/product.attribute.term.request.js.map +1 -1
  433. package/dist/lib/types/store/product-attribute-term/product.attribute.term.response.d.ts +1 -1
  434. package/dist/lib/types/store/product-attribute-term/product.attribute.term.response.js +1 -1
  435. package/dist/lib/types/store/product-attribute-term/product.attribute.term.response.js.map +1 -1
  436. package/dist/lib/types/store/product-brand/product.brand.response.d.ts +2 -2
  437. package/dist/lib/types/store/product-brand/product.brand.response.js +1 -1
  438. package/dist/lib/types/store/product-brand/product.brand.response.js.map +1 -1
  439. package/dist/lib/types/store/product-category/product.category.response.d.ts +2 -2
  440. package/dist/lib/types/store/product-category/product.category.response.js +1 -1
  441. package/dist/lib/types/store/product-category/product.category.response.js.map +1 -1
  442. package/dist/lib/types/store/product-collection-data/product.collection.data.attribute.counts.response.d.ts +1 -1
  443. package/dist/lib/types/store/product-collection-data/product.collection.data.attribute.counts.response.d.ts.map +1 -1
  444. package/dist/lib/types/store/product-collection-data/product.collection.data.attribute.counts.response.js +1 -1
  445. package/dist/lib/types/store/product-collection-data/product.collection.data.attribute.counts.response.js.map +1 -1
  446. package/dist/lib/types/store/product-collection-data/product.collection.data.price.range.response.d.ts +1 -1
  447. package/dist/lib/types/store/product-collection-data/product.collection.data.price.range.response.js +1 -1
  448. package/dist/lib/types/store/product-collection-data/product.collection.data.price.range.response.js.map +1 -1
  449. package/dist/lib/types/store/product-collection-data/product.collection.data.rating.counts.response.d.ts +1 -1
  450. package/dist/lib/types/store/product-collection-data/product.collection.data.rating.counts.response.js +1 -1
  451. package/dist/lib/types/store/product-collection-data/product.collection.data.rating.counts.response.js.map +1 -1
  452. package/dist/lib/types/store/product-collection-data/product.collection.data.request.d.ts +24 -2
  453. package/dist/lib/types/store/product-collection-data/product.collection.data.request.d.ts.map +1 -1
  454. package/dist/lib/types/store/product-collection-data/product.collection.data.request.js +2 -2
  455. package/dist/lib/types/store/product-collection-data/product.collection.data.request.js.map +1 -1
  456. package/dist/lib/types/store/product-collection-data/product.collection.data.response.d.ts +5 -5
  457. package/dist/lib/types/store/product-collection-data/product.collection.data.response.js +1 -1
  458. package/dist/lib/types/store/product-collection-data/product.collection.data.response.js.map +1 -1
  459. package/dist/lib/types/store/product-collection-data/product.collection.data.taxonomy.counts.response.d.ts +1 -1
  460. package/dist/lib/types/store/product-collection-data/product.collection.data.taxonomy.counts.response.js +1 -1
  461. package/dist/lib/types/store/product-collection-data/product.collection.data.taxonomy.counts.response.js.map +1 -1
  462. package/dist/lib/types/store/product-review/product.review.response.d.ts +2 -2
  463. package/dist/lib/types/store/product-review/product.review.response.js +1 -1
  464. package/dist/lib/types/store/product-review/product.review.response.js.map +1 -1
  465. package/dist/lib/types/store/product-tag/product.tag.response.d.ts +1 -1
  466. package/dist/lib/types/store/product-tag/product.tag.response.js +1 -1
  467. package/dist/lib/types/store/product-tag/product.tag.response.js.map +1 -1
  468. package/dist/lib/utilities/axios.utility.d.ts +9 -7
  469. package/dist/lib/utilities/axios.utility.d.ts.map +1 -1
  470. package/dist/lib/utilities/axios.utility.js +155 -24
  471. package/dist/lib/utilities/axios.utility.js.map +1 -1
  472. package/dist/lib/utilities/paginated-request.d.ts +2 -0
  473. package/dist/lib/utilities/paginated-request.d.ts.map +1 -0
  474. package/dist/lib/utilities/paginated-request.js +2 -0
  475. package/dist/lib/utilities/paginated-request.js.map +1 -0
  476. package/package.json +1 -1
@@ -1,7 +1,9 @@
1
1
  import { RequireAtLeastOne } from '../../utilities/common.js';
2
2
  import { BaseService } from '../base.service.js';
3
- import { ApiPaginationResult, ApiResult } from '../../types/api.js';
3
+ import { ApiResult } from '../../types/api.js';
4
4
  import { ProductRequest, ProductResponse } from '../../types/index.js';
5
+ import { RequestOptions } from '../../types/request.js';
6
+ import { PaginatedRequest } from '../../extensions/paginated-request.js';
5
7
  /**
6
8
  * Products API
7
9
  *
@@ -14,7 +16,7 @@ export declare class ProductService extends BaseService {
14
16
  * @param params
15
17
  * @returns
16
18
  */
17
- list(params?: ProductRequest): Promise<ApiPaginationResult<ProductResponse[]>>;
19
+ list(params?: ProductRequest, options?: RequestOptions): PaginatedRequest<ProductResponse[], ProductRequest>;
18
20
  /**
19
21
  * Single Product by ID or Slug
20
22
  * @param params
@@ -23,6 +25,6 @@ export declare class ProductService extends BaseService {
23
25
  single(params: RequireAtLeastOne<{
24
26
  id: number;
25
27
  slug: string;
26
- }>): Promise<ApiResult<ProductResponse>>;
28
+ }>, options?: RequestOptions): Promise<ApiResult<ProductResponse>>;
27
29
  }
28
30
  //# sourceMappingURL=product.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/store/product.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvE;;;;GAIG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkC;IAE3D;;;;OAIG;IACG,IAAI,CACR,MAAM,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,mBAAmB,CAAC,eAAe,EAAE,CAAC,CAAC;IAgClD;;;;OAIG;IACG,MAAM,CACV,MAAM,EAAE,iBAAiB,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,GACtD,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;CAKvC"}
1
+ {"version":3,"file":"product.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/store/product.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAClB,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAuB,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE;;;;GAIG;AACH,qBAAa,cAAe,SAAQ,WAAW;IAC7C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkC;IAE3D;;;;OAIG;IACH,IAAI,CACF,MAAM,CAAC,EAAE,cAAc,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,gBAAgB,CAAC,eAAe,EAAE,EAAE,cAAc,CAAC;IAyCtD;;;;OAIG;IACG,MAAM,CACV,MAAM,EAAE,iBAAiB,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,EACvD,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;CAKvC"}
@@ -2,7 +2,8 @@ import { __awaiter } from "tslib";
2
2
  import { extractPagination, } from '../../utilities/common.js';
3
3
  import * as qs from 'qs';
4
4
  import { BaseService } from '../base.service.js';
5
- import { doGet } from '../../utilities/axios.utility.js';
5
+ import { doGet } from '../../http/http.js';
6
+ import { PaginatedRequest } from '../../extensions/paginated-request.js';
6
7
  /**
7
8
  * Products API
8
9
  *
@@ -18,43 +19,44 @@ export class ProductService extends BaseService {
18
19
  * @param params
19
20
  * @returns
20
21
  */
21
- list(params) {
22
- return __awaiter(this, void 0, void 0, function* () {
22
+ list(params, options) {
23
+ const request = (pageParams) => __awaiter(this, void 0, void 0, function* () {
23
24
  var _a, _b;
24
25
  let unstable_tax = undefined;
25
26
  let unstable_tax_operator = undefined;
26
- if (params && params._unstable_tax_) {
27
- (_a = params._unstable_tax_) === null || _a === void 0 ? void 0 : _a.forEach((item) => {
27
+ if (pageParams && pageParams._unstable_tax_) {
28
+ (_a = pageParams._unstable_tax_) === null || _a === void 0 ? void 0 : _a.forEach((item) => {
28
29
  Object.keys(item).forEach((key) => {
29
30
  unstable_tax += `_unstable_tax_${key}=${item[key]}`;
30
31
  });
31
32
  });
32
- params._unstable_tax_ = [];
33
+ pageParams._unstable_tax_ = [];
33
34
  }
34
- if (params && params._unstable_tax_operator) {
35
- (_b = params._unstable_tax_operator) === null || _b === void 0 ? void 0 : _b.forEach((item) => {
35
+ if (pageParams && pageParams._unstable_tax_operator) {
36
+ (_b = pageParams._unstable_tax_operator) === null || _b === void 0 ? void 0 : _b.forEach((item) => {
36
37
  Object.keys(item).forEach((key) => {
37
38
  unstable_tax_operator += `_unstable_tax_${key}_operator=${item[key]}`;
38
39
  });
39
40
  });
40
- params._unstable_tax_operator = [];
41
+ pageParams._unstable_tax_operator = [];
41
42
  }
42
- const query = qs.stringify(Object.assign(Object.assign({}, params), { unstable_tax, unstable_tax_operator }), { encode: false });
43
+ const query = qs.stringify(Object.assign(Object.assign({}, pageParams), { unstable_tax, unstable_tax_operator }), { encode: false });
43
44
  const url = `/${this.endpoint}?${query}`;
44
- const { data, error, headers } = yield doGet(url);
45
+ const { data, error, headers } = yield doGet(url, options);
45
46
  const pagination = extractPagination(headers);
46
47
  return { data, error, pagination, headers };
47
48
  });
49
+ return new PaginatedRequest(request, params);
48
50
  }
49
51
  /**
50
52
  * Single Product by ID or Slug
51
53
  * @param params
52
54
  * @returns
53
55
  */
54
- single(params) {
56
+ single(params, options) {
55
57
  return __awaiter(this, void 0, void 0, function* () {
56
58
  const url = `/${this.endpoint}/${params.id || params.slug}`;
57
- const { data, error } = yield doGet(url);
59
+ const { data, error } = yield doGet(url, options);
58
60
  return { data, error };
59
61
  });
60
62
  }
@@ -1 +1 @@
1
- {"version":3,"file":"product.service.js","sourceRoot":"","sources":["../../../../src/lib/services/store/product.service.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,iBAAiB,GAElB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAIzD;;;;GAIG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAA/C;;QACmB,aAAQ,GAAG,8BAA8B,CAAC;IAqD7D,CAAC;IAnDC;;;;OAIG;IACG,IAAI,CACR,MAAuB;;;YAEvB,IAAI,YAAY,GAAuB,SAAS,CAAC;YACjD,IAAI,qBAAqB,GAAuB,SAAS,CAAC;YAC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,CAAC;KAAA;IAED;;;;OAIG;IACG,MAAM,CACV,MAAuD;;YAEvD,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,QAAQ,IAAI,MAAM,CAAC,EAAE,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAC5D,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,KAAK,CAAkB,GAAG,CAAC,CAAC;YAC1D,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QACzB,CAAC;KAAA;CACF"}
1
+ {"version":3,"file":"product.service.js","sourceRoot":"","sources":["../../../../src/lib/services/store/product.service.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,iBAAiB,GAElB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAI3C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE;;;;GAIG;AACH,MAAM,OAAO,cAAe,SAAQ,WAAW;IAA/C;;QACmB,aAAQ,GAAG,8BAA8B,CAAC;IAgE7D,CAAC;IA9DC;;;;OAIG;IACH,IAAI,CACF,MAAuB,EACvB,OAAwB;QAExB,MAAM,OAAO,GAAG,CACd,UAA2B,EACsB,EAAE;;YACnD,IAAI,YAAY,GAAuB,SAAS,CAAC;YACjD,IAAI,qBAAqB,GAAuB,SAAS,CAAC;YAC1D,IAAI,UAAU,IAAI,UAAU,CAAC,cAAc,EAAE,CAAC;gBAC5C,MAAA,UAAU,CAAC,cAAc,0CAAE,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;oBAC1C,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;wBAChC,YAAY,IAAI,iBAAiB,GAAG,IAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC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,EAAE,KAAK,EAAE,GAAG,MAAM,KAAK,CAAkB,GAAG,EAAE,OAAO,CAAC,CAAC;YACnE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QACzB,CAAC;KAAA;CACF"}
@@ -1,6 +1,7 @@
1
1
  import { BaseService } from '../base.service.js';
2
- import { ApiPaginationResult } from '../../types/api.js';
3
2
  import { ProductTagRequest, ProductTagResponse } from '../../types/index.js';
3
+ import { RequestOptions } from '../../types/request.js';
4
+ import { PaginatedRequest } from '../../extensions/paginated-request.js';
4
5
  /**
5
6
  * Product Tags API
6
7
  */
@@ -11,6 +12,6 @@ export declare class ProductTagService extends BaseService {
11
12
  * @param params
12
13
  * @returns
13
14
  */
14
- list(params?: ProductTagRequest): Promise<ApiPaginationResult<ProductTagResponse[]>>;
15
+ list(params?: ProductTagRequest, options?: RequestOptions): PaginatedRequest<ProductTagResponse[], ProductTagRequest>;
15
16
  }
16
17
  //# sourceMappingURL=product.tag.service.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.tag.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/store/product.tag.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE7E;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,WAAW;IAChD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuC;IAEhE;;;;OAIG;IACG,IAAI,CACR,MAAM,CAAC,EAAE,iBAAiB,GACzB,OAAO,CAAC,mBAAmB,CAAC,kBAAkB,EAAE,CAAC,CAAC;CAQtD"}
1
+ {"version":3,"file":"product.tag.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/store/product.tag.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAIjD,OAAO,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,WAAW;IAChD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAuC;IAEhE;;;;OAIG;IACH,IAAI,CACF,MAAM,CAAC,EAAE,iBAAiB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,gBAAgB,CAAC,kBAAkB,EAAE,EAAE,iBAAiB,CAAC;CAiB7D"}
@@ -1,8 +1,9 @@
1
1
  import { __awaiter } from "tslib";
2
2
  import * as qs from 'qs';
3
3
  import { BaseService } from '../base.service.js';
4
- import { doGet } from '../../utilities/axios.utility.js';
4
+ import { doGet } from '../../http/http.js';
5
5
  import { extractPagination } from '../../utilities/common.js';
6
+ import { PaginatedRequest } from '../../extensions/paginated-request.js';
6
7
  /**
7
8
  * Product Tags API
8
9
  */
@@ -16,14 +17,15 @@ export class ProductTagService extends BaseService {
16
17
  * @param params
17
18
  * @returns
18
19
  */
19
- list(params) {
20
- return __awaiter(this, void 0, void 0, function* () {
21
- const query = qs.stringify(params);
20
+ list(params, options) {
21
+ const request = (pageParams) => __awaiter(this, void 0, void 0, function* () {
22
+ const query = qs.stringify(pageParams);
22
23
  const url = `/${this.endpoint}?${query}`;
23
- const { data, error, headers } = yield doGet(url);
24
+ const { data, error, headers } = yield doGet(url, options);
24
25
  const pagination = extractPagination(headers);
25
26
  return { data, error, pagination };
26
27
  });
28
+ return new PaginatedRequest(request, params);
27
29
  }
28
30
  }
29
31
  //# sourceMappingURL=product.tag.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"product.tag.service.js","sourceRoot":"","sources":["../../../../src/lib/services/store/product.tag.service.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAI9D;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAAlD;;QACmB,aAAQ,GAAG,mCAAmC,CAAC;IAiBlE,CAAC;IAfC;;;;OAIG;IACG,IAAI,CACR,MAA0B;;YAE1B,MAAM,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YACnC,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,QAAQ,IAAI,KAAK,EAAE,CAAC;YACzC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,MAAM,KAAK,CAAuB,GAAG,CAAC,CAAC;YAExE,MAAM,UAAU,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;YAC9C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;QACrC,CAAC;KAAA;CACF"}
1
+ {"version":3,"file":"product.tag.service.js","sourceRoot":"","sources":["../../../../src/lib/services/store/product.tag.service.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAI9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uCAAuC,CAAC;AAEzE;;GAEG;AACH,MAAM,OAAO,iBAAkB,SAAQ,WAAW;IAAlD;;QACmB,aAAQ,GAAG,mCAAmC,CAAC;IA2BlE,CAAC;IAzBC;;;;OAIG;IACH,IAAI,CACF,MAA0B,EAC1B,OAAwB;QAExB,MAAM,OAAO,GAAG,CACd,UAA8B,EACsB,EAAE;YACtD,MAAM,KAAK,GAAG,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;YACvC,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,QAAQ,IAAI,KAAK,EAAE,CAAC;YACzC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,MAAM,KAAK,CAC1C,GAAG,EACH,OAAO,CACR,CAAC;YAEF,MAAM,UAAU,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;YAC9C,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,CAAC;QACrC,CAAC,CAAA,CAAC;QAEF,OAAO,IAAI,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IAC/C,CAAC;CACF"}
@@ -0,0 +1,27 @@
1
+ export type StorageType = 'localstorage' | 'sessionstorage' | 'memory';
2
+ export interface StorageProvider {
3
+ type?: StorageType;
4
+ get: () => Promise<string | null>;
5
+ set: (value: string) => Promise<void>;
6
+ clear: () => Promise<void>;
7
+ }
8
+ /**
9
+ * In-memory storage provider. Useful for SSR/Node.js environments
10
+ * or when browser storage is not available.
11
+ * @param _key - Unused, but kept for API consistency with other providers.
12
+ */
13
+ export declare const memoryStorageProvider: (_key?: string) => StorageProvider;
14
+ /**
15
+ * localStorage provider with SSR fallback to in-memory storage.
16
+ */
17
+ export declare const localStorageProvider: (key: string) => StorageProvider;
18
+ /**
19
+ * sessionStorage provider with SSR fallback to in-memory storage.
20
+ */
21
+ export declare const sessionStorageProvider: (key: string) => StorageProvider;
22
+ export declare const storageProviders: {
23
+ localstorage: (key: string) => StorageProvider;
24
+ sessionstorage: (key: string) => StorageProvider;
25
+ memory: (_key?: string) => StorageProvider;
26
+ };
27
+ //# sourceMappingURL=auth.storage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.storage.d.ts","sourceRoot":"","sources":["../../../src/lib/storage/auth.storage.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,gBAAgB,GAAG,QAAQ,CAAC;AACvE,MAAM,WAAW,eAAe;IAC9B,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB,GAAG,EAAE,MAAM,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IAClC,GAAG,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B;AA8BD;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,GAAI,OAAO,MAAM,KAAG,eAcrD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB,GAAI,KAAK,MAAM,KAAG,eA2BlD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sBAAsB,GAAI,KAAK,MAAM,KAAG,eA2BpD,CAAC;AAEF,eAAO,MAAM,gBAAgB;wBA7Da,MAAM,KAAG,eAAe;0BAgCtB,MAAM,KAAG,eAAe;oBAnDvB,MAAM,KAAG,eAAe;CAoFpE,CAAC"}
@@ -0,0 +1,113 @@
1
+ import { __awaiter } from "tslib";
2
+ /**
3
+ * Check if we're in a browser environment with localStorage available.
4
+ */
5
+ const hasLocalStorage = () => {
6
+ try {
7
+ return (typeof window !== 'undefined' &&
8
+ typeof window.localStorage !== 'undefined');
9
+ }
10
+ catch (_a) {
11
+ return false;
12
+ }
13
+ };
14
+ /**
15
+ * Check if we're in a browser environment with sessionStorage available.
16
+ */
17
+ const hasSessionStorage = () => {
18
+ try {
19
+ return (typeof window !== 'undefined' &&
20
+ typeof window.sessionStorage !== 'undefined');
21
+ }
22
+ catch (_a) {
23
+ return false;
24
+ }
25
+ };
26
+ /**
27
+ * In-memory storage provider. Useful for SSR/Node.js environments
28
+ * or when browser storage is not available.
29
+ * @param _key - Unused, but kept for API consistency with other providers.
30
+ */
31
+ export const memoryStorageProvider = (_key) => {
32
+ let value = null;
33
+ return {
34
+ type: 'memory',
35
+ get: () => Promise.resolve(value),
36
+ set: (v) => {
37
+ value = v;
38
+ return Promise.resolve();
39
+ },
40
+ clear: () => {
41
+ value = null;
42
+ return Promise.resolve();
43
+ },
44
+ };
45
+ };
46
+ /**
47
+ * localStorage provider with SSR fallback to in-memory storage.
48
+ */
49
+ export const localStorageProvider = (key) => {
50
+ if (!hasLocalStorage()) {
51
+ console.warn(`[Typewoo] localStorage is not available (SSR/Node.js environment). Falling back to in-memory storage for key "${key}". Data will not persist across page reloads.`);
52
+ return memoryStorageProvider();
53
+ }
54
+ return {
55
+ type: 'localstorage',
56
+ get: () => Promise.resolve(localStorage.getItem(key)),
57
+ set: (value) => __awaiter(void 0, void 0, void 0, function* () {
58
+ try {
59
+ localStorage.setItem(key, value);
60
+ }
61
+ catch (error) {
62
+ console.error(`[Typewoo] Failed to save to localStorage:`, error);
63
+ throw error;
64
+ }
65
+ }),
66
+ clear: () => __awaiter(void 0, void 0, void 0, function* () {
67
+ try {
68
+ localStorage.removeItem(key);
69
+ }
70
+ catch (error) {
71
+ console.error(`[Typewoo] Failed to clear localStorage:`, error);
72
+ throw error;
73
+ }
74
+ }),
75
+ };
76
+ };
77
+ /**
78
+ * sessionStorage provider with SSR fallback to in-memory storage.
79
+ */
80
+ export const sessionStorageProvider = (key) => {
81
+ if (!hasSessionStorage()) {
82
+ console.warn(`[Typewoo] sessionStorage is not available (SSR/Node.js environment). Falling back to in-memory storage for key "${key}". Data will not persist across page reloads.`);
83
+ return memoryStorageProvider();
84
+ }
85
+ return {
86
+ type: 'sessionstorage',
87
+ get: () => Promise.resolve(sessionStorage.getItem(key)),
88
+ set: (value) => __awaiter(void 0, void 0, void 0, function* () {
89
+ try {
90
+ sessionStorage.setItem(key, value);
91
+ }
92
+ catch (error) {
93
+ console.error(`[Typewoo] Failed to save to sessionStorage:`, error);
94
+ throw error;
95
+ }
96
+ }),
97
+ clear: () => __awaiter(void 0, void 0, void 0, function* () {
98
+ try {
99
+ sessionStorage.removeItem(key);
100
+ }
101
+ catch (error) {
102
+ console.error(`[Typewoo] Failed to clear sessionStorage:`, error);
103
+ throw error;
104
+ }
105
+ }),
106
+ };
107
+ };
108
+ export const storageProviders = {
109
+ localstorage: localStorageProvider,
110
+ sessionstorage: sessionStorageProvider,
111
+ memory: memoryStorageProvider,
112
+ };
113
+ //# sourceMappingURL=auth.storage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.storage.js","sourceRoot":"","sources":["../../../src/lib/storage/auth.storage.ts"],"names":[],"mappings":";AAQA;;GAEG;AACH,MAAM,eAAe,GAAG,GAAY,EAAE;IACpC,IAAI,CAAC;QACH,OAAO,CACL,OAAO,MAAM,KAAK,WAAW;YAC7B,OAAO,MAAM,CAAC,YAAY,KAAK,WAAW,CAC3C,CAAC;IACJ,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC,CAAC;AAEF;;GAEG;AACH,MAAM,iBAAiB,GAAG,GAAY,EAAE;IACtC,IAAI,CAAC;QACH,OAAO,CACL,OAAO,MAAM,KAAK,WAAW;YAC7B,OAAO,MAAM,CAAC,cAAc,KAAK,WAAW,CAC7C,CAAC;IACJ,CAAC;IAAC,WAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,IAAa,EAAmB,EAAE;IACtE,IAAI,KAAK,GAAkB,IAAI,CAAC;IAChC,OAAO;QACL,IAAI,EAAE,QAAQ;QACd,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;QACjC,GAAG,EAAE,CAAC,CAAS,EAAE,EAAE;YACjB,KAAK,GAAG,CAAC,CAAC;YACV,OAAO,OAAO,CAAC,OAAO,EAAE,CAAC;QAC3B,CAAC;QACD,KAAK,EAAE,GAAG,EAAE;YACV,KAAK,GAAG,IAAI,CAAC;YACb,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,OAAO;QACL,IAAI,EAAE,gBAAgB;QACtB,GAAG,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;QACvD,GAAG,EAAE,CAAO,KAAa,EAAE,EAAE;YAC3B,IAAI,CAAC;gBACH,cAAc,CAAC,OAAO,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;YACrC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,6CAA6C,EAAE,KAAK,CAAC,CAAC;gBACpE,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC,CAAA;QACD,KAAK,EAAE,GAAS,EAAE;YAChB,IAAI,CAAC;gBACH,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;YACjC,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,CAAC,KAAK,CAAC,2CAA2C,EAAE,KAAK,CAAC,CAAC;gBAClE,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC,CAAA;KACF,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,YAAY,EAAE,oBAAoB;IAClC,cAAc,EAAE,sBAAsB;IACtC,MAAM,EAAE,qBAAqB;CAC9B,CAAC"}
@@ -24,7 +24,7 @@ export declare const AdminProductAttributeSchema: z.ZodObject<{
24
24
  href: z.ZodString;
25
25
  }, z.core.$strip>>;
26
26
  }, z.core.$strip>>;
27
- }, z.core.$strip>;
27
+ }, z.core.$loose>;
28
28
  export type AdminProductAttribute = z.infer<typeof AdminProductAttributeSchema>;
29
29
  /**
30
30
  * Product attribute request parameters for creating/updating
@@ -42,17 +42,20 @@ export declare const AdminProductAttributeRequestSchema: z.ZodObject<{
42
42
  name_num: "name_num";
43
43
  }>>;
44
44
  has_archives: z.ZodOptional<z.ZodBoolean>;
45
- }, z.core.$strip>;
45
+ }, z.core.$loose>;
46
46
  export type AdminProductAttributeRequest = z.infer<typeof AdminProductAttributeRequestSchema>;
47
47
  /**
48
48
  * Product attribute query parameters for listing
49
49
  */
50
50
  export declare const AdminProductAttributeQueryParamsSchema: z.ZodObject<{
51
+ /**
52
+ * Scope under which the request is made; determines fields present in response. Options: `view` and `edit`. Default is `view`.
53
+ */
51
54
  context: z.ZodOptional<z.ZodEnum<{
52
55
  view: "view";
53
56
  edit: "edit";
54
57
  }>>;
55
- }, z.core.$strip>;
58
+ }, z.core.$loose>;
56
59
  export type AdminProductAttributeQueryParams = z.infer<typeof AdminProductAttributeQueryParamsSchema>;
57
60
  /**
58
61
  * WooCommerce REST API Product Attribute Term Response
@@ -75,7 +78,7 @@ export declare const AdminProductAttributeTermSchema: z.ZodObject<{
75
78
  href: z.ZodString;
76
79
  }, z.core.$strip>>;
77
80
  }, z.core.$strip>>;
78
- }, z.core.$strip>;
81
+ }, z.core.$loose>;
79
82
  export type AdminProductAttributeTerm = z.infer<typeof AdminProductAttributeTermSchema>;
80
83
  /**
81
84
  * Product attribute term request parameters for creating/updating
@@ -85,7 +88,7 @@ export declare const AdminProductAttributeTermRequestSchema: z.ZodObject<{
85
88
  slug: z.ZodOptional<z.ZodString>;
86
89
  description: z.ZodOptional<z.ZodString>;
87
90
  menu_order: z.ZodOptional<z.ZodNumber>;
88
- }, z.core.$strip>;
91
+ }, z.core.$loose>;
89
92
  export type AdminProductAttributeTermRequest = z.infer<typeof AdminProductAttributeTermRequestSchema>;
90
93
  /**
91
94
  * Product attribute term query parameters for listing
@@ -118,6 +121,6 @@ export declare const AdminProductAttributeTermQueryParamsSchema: z.ZodObject<{
118
121
  parent: z.ZodOptional<z.ZodNumber>;
119
122
  product: z.ZodOptional<z.ZodNumber>;
120
123
  slug: z.ZodOptional<z.ZodString>;
121
- }, z.core.$strip>;
124
+ }, z.core.$loose>;
122
125
  export type AdminProductAttributeTermQueryParams = z.infer<typeof AdminProductAttributeTermQueryParamsSchema>;
123
126
  //# sourceMappingURL=attribute.types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attribute.types.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/admin/attribute.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;iBAatC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;iBAM7C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;;iBAKjD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;iBAc1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;;iBAKjD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBrD,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,0CAA0C,CAClD,CAAC"}
1
+ {"version":3,"file":"attribute.types.d.ts","sourceRoot":"","sources":["../../../../src/lib/types/admin/attribute.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;iBAatC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF;;GAEG;AACH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;iBAM7C,CAAC;AAEH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAChD,OAAO,kCAAkC,CAC1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sCAAsC;IACjD;;OAEG;;;;;iBAEH,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;iBAc1C,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAC7C,OAAO,+BAA+B,CACvC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;;iBAKjD,CAAC;AAEH,MAAM,MAAM,gCAAgC,GAAG,CAAC,CAAC,KAAK,CACpD,OAAO,sCAAsC,CAC9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwBrD,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,CAAC,CAAC,KAAK,CACxD,OAAO,0CAA0C,CAClD,CAAC"}
@@ -2,7 +2,7 @@ import { z } from 'zod';
2
2
  /**
3
3
  * WooCommerce REST API Product Attribute Response
4
4
  */
5
- export const AdminProductAttributeSchema = z.object({
5
+ export const AdminProductAttributeSchema = z.looseObject({
6
6
  id: z.number(),
7
7
  name: z.string(),
8
8
  slug: z.string(),
@@ -19,7 +19,7 @@ export const AdminProductAttributeSchema = z.object({
19
19
  /**
20
20
  * Product attribute request parameters for creating/updating
21
21
  */
22
- export const AdminProductAttributeRequestSchema = z.object({
22
+ export const AdminProductAttributeRequestSchema = z.looseObject({
23
23
  name: z.string().optional(),
24
24
  slug: z.string().optional(),
25
25
  type: z.enum(['select']).optional(),
@@ -29,7 +29,7 @@ export const AdminProductAttributeRequestSchema = z.object({
29
29
  /**
30
30
  * Product attribute query parameters for listing
31
31
  */
32
- export const AdminProductAttributeQueryParamsSchema = z.object({
32
+ export const AdminProductAttributeQueryParamsSchema = z.looseObject({
33
33
  /**
34
34
  * Scope under which the request is made; determines fields present in response. Options: `view` and `edit`. Default is `view`.
35
35
  */
@@ -38,7 +38,7 @@ export const AdminProductAttributeQueryParamsSchema = z.object({
38
38
  /**
39
39
  * WooCommerce REST API Product Attribute Term Response
40
40
  */
41
- export const AdminProductAttributeTermSchema = z.object({
41
+ export const AdminProductAttributeTermSchema = z.looseObject({
42
42
  id: z.number(),
43
43
  name: z.string(),
44
44
  slug: z.string(),
@@ -56,7 +56,7 @@ export const AdminProductAttributeTermSchema = z.object({
56
56
  /**
57
57
  * Product attribute term request parameters for creating/updating
58
58
  */
59
- export const AdminProductAttributeTermRequestSchema = z.object({
59
+ export const AdminProductAttributeTermRequestSchema = z.looseObject({
60
60
  name: z.string().optional(),
61
61
  slug: z.string().optional(),
62
62
  description: z.string().optional(),
@@ -65,7 +65,7 @@ export const AdminProductAttributeTermRequestSchema = z.object({
65
65
  /**
66
66
  * Product attribute term query parameters for listing
67
67
  */
68
- export const AdminProductAttributeTermQueryParamsSchema = z.object({
68
+ export const AdminProductAttributeTermQueryParamsSchema = z.looseObject({
69
69
  context: z.enum(['view', 'edit']).optional(),
70
70
  page: z.number().optional(),
71
71
  per_page: z.number().optional(),
@@ -1 +1 @@
1
- {"version":3,"file":"attribute.types.js","sourceRoot":"","sources":["../../../../src/lib/types/admin/attribute.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAA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