@typewoo/sdk 3.0.0-alpha.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 (672) hide show
  1. package/README.md +18 -0
  2. package/dist/index.d.ts +39 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/index.js +45 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/lib/bus/event.bus.d.ts +38 -0
  7. package/dist/lib/bus/event.bus.d.ts.map +1 -0
  8. package/dist/lib/bus/event.bus.js +93 -0
  9. package/dist/lib/bus/event.bus.js.map +1 -0
  10. package/dist/lib/configs/index.d.ts +2 -0
  11. package/dist/lib/configs/index.d.ts.map +1 -0
  12. package/dist/lib/configs/index.js +2 -0
  13. package/dist/lib/configs/index.js.map +1 -0
  14. package/dist/lib/configs/sdk.config.d.ts +50 -0
  15. package/dist/lib/configs/sdk.config.d.ts.map +1 -0
  16. package/dist/lib/configs/sdk.config.js +2 -0
  17. package/dist/lib/configs/sdk.config.js.map +1 -0
  18. package/dist/lib/configs/simple.jwt.login.config.js +2 -0
  19. package/dist/lib/configs/simple.jwt.login.config.js.map +1 -0
  20. package/dist/lib/interceptors/admin-auth.interceptor.d.ts +3 -0
  21. package/dist/lib/interceptors/admin-auth.interceptor.d.ts.map +1 -0
  22. package/dist/lib/interceptors/admin-auth.interceptor.js +20 -0
  23. package/dist/lib/interceptors/admin-auth.interceptor.js.map +1 -0
  24. package/dist/lib/interceptors/api-key.interceptor.d.ts +7 -0
  25. package/dist/lib/interceptors/api-key.interceptor.d.ts.map +1 -0
  26. package/dist/lib/interceptors/api-key.interceptor.js +18 -0
  27. package/dist/lib/interceptors/api-key.interceptor.js.map +1 -0
  28. package/dist/lib/interceptors/cart.token.interceptor.d.ts +6 -0
  29. package/dist/lib/interceptors/cart.token.interceptor.d.ts.map +1 -0
  30. package/dist/lib/interceptors/cart.token.interceptor.js +35 -0
  31. package/dist/lib/interceptors/cart.token.interceptor.js.map +1 -0
  32. package/dist/lib/interceptors/nonce.interceptor.d.ts +6 -0
  33. package/dist/lib/interceptors/nonce.interceptor.d.ts.map +1 -0
  34. package/dist/lib/interceptors/nonce.interceptor.js +34 -0
  35. package/dist/lib/interceptors/nonce.interceptor.js.map +1 -0
  36. package/dist/lib/interceptors/refresh.token.interceptor.d.ts +5 -0
  37. package/dist/lib/interceptors/refresh.token.interceptor.d.ts.map +1 -0
  38. package/dist/lib/interceptors/refresh.token.interceptor.js +130 -0
  39. package/dist/lib/interceptors/refresh.token.interceptor.js.map +1 -0
  40. package/dist/lib/interceptors/token.interceptor.d.ts +3 -0
  41. package/dist/lib/interceptors/token.interceptor.d.ts.map +1 -0
  42. package/dist/lib/interceptors/token.interceptor.js +21 -0
  43. package/dist/lib/interceptors/token.interceptor.js.map +1 -0
  44. package/dist/lib/plugins/index.d.ts +2 -0
  45. package/dist/lib/plugins/index.d.ts.map +1 -0
  46. package/dist/lib/plugins/index.js +2 -0
  47. package/dist/lib/plugins/index.js.map +1 -0
  48. package/dist/lib/plugins/plugin.d.ts +17 -0
  49. package/dist/lib/plugins/plugin.d.ts.map +1 -0
  50. package/dist/lib/plugins/plugin.js +2 -0
  51. package/dist/lib/plugins/plugin.js.map +1 -0
  52. package/dist/lib/sdk.d.ts +32 -0
  53. package/dist/lib/sdk.d.ts.map +1 -0
  54. package/dist/lib/sdk.events.d.ts +30 -0
  55. package/dist/lib/sdk.events.d.ts.map +1 -0
  56. package/dist/lib/sdk.events.js +2 -0
  57. package/dist/lib/sdk.events.js.map +1 -0
  58. package/dist/lib/sdk.js +89 -0
  59. package/dist/lib/sdk.js.map +1 -0
  60. package/dist/lib/services/admin/coupon.service.d.ts +48 -0
  61. package/dist/lib/services/admin/coupon.service.d.ts.map +1 -0
  62. package/dist/lib/services/admin/coupon.service.js +81 -0
  63. package/dist/lib/services/admin/coupon.service.js.map +1 -0
  64. package/dist/lib/services/admin/customer.service.d.ts +48 -0
  65. package/dist/lib/services/admin/customer.service.d.ts.map +1 -0
  66. package/dist/lib/services/admin/customer.service.js +81 -0
  67. package/dist/lib/services/admin/customer.service.js.map +1 -0
  68. package/dist/lib/services/admin/data.service.d.ts +36 -0
  69. package/dist/lib/services/admin/data.service.d.ts.map +1 -0
  70. package/dist/lib/services/admin/data.service.js +86 -0
  71. package/dist/lib/services/admin/data.service.js.map +1 -0
  72. package/dist/lib/services/admin/order.service.d.ts +113 -0
  73. package/dist/lib/services/admin/order.service.d.ts.map +1 -0
  74. package/dist/lib/services/admin/order.service.js +226 -0
  75. package/dist/lib/services/admin/order.service.js.map +1 -0
  76. package/dist/lib/services/admin/payment-gateway.service.d.ts +24 -0
  77. package/dist/lib/services/admin/payment-gateway.service.d.ts.map +1 -0
  78. package/dist/lib/services/admin/payment-gateway.service.js +50 -0
  79. package/dist/lib/services/admin/payment-gateway.service.js.map +1 -0
  80. package/dist/lib/services/admin/product-attribute-term.service.d.ts +47 -0
  81. package/dist/lib/services/admin/product-attribute-term.service.d.ts.map +1 -0
  82. package/dist/lib/services/admin/product-attribute-term.service.js +83 -0
  83. package/dist/lib/services/admin/product-attribute-term.service.js.map +1 -0
  84. package/dist/lib/services/admin/product-attribute.service.d.ts +48 -0
  85. package/dist/lib/services/admin/product-attribute.service.d.ts.map +1 -0
  86. package/dist/lib/services/admin/product-attribute.service.js +81 -0
  87. package/dist/lib/services/admin/product-attribute.service.js.map +1 -0
  88. package/dist/lib/services/admin/product-brand.service.d.ts +48 -0
  89. package/dist/lib/services/admin/product-brand.service.d.ts.map +1 -0
  90. package/dist/lib/services/admin/product-brand.service.js +81 -0
  91. package/dist/lib/services/admin/product-brand.service.js.map +1 -0
  92. package/dist/lib/services/admin/product-category.service.d.ts +48 -0
  93. package/dist/lib/services/admin/product-category.service.d.ts.map +1 -0
  94. package/dist/lib/services/admin/product-category.service.js +81 -0
  95. package/dist/lib/services/admin/product-category.service.js.map +1 -0
  96. package/dist/lib/services/admin/product-review.service.d.ts +48 -0
  97. package/dist/lib/services/admin/product-review.service.d.ts.map +1 -0
  98. package/dist/lib/services/admin/product-review.service.js +81 -0
  99. package/dist/lib/services/admin/product-review.service.js.map +1 -0
  100. package/dist/lib/services/admin/product-tag.service.d.ts +48 -0
  101. package/dist/lib/services/admin/product-tag.service.d.ts.map +1 -0
  102. package/dist/lib/services/admin/product-tag.service.js +81 -0
  103. package/dist/lib/services/admin/product-tag.service.js.map +1 -0
  104. package/dist/lib/services/admin/product.service.d.ts +88 -0
  105. package/dist/lib/services/admin/product.service.d.ts.map +1 -0
  106. package/dist/lib/services/admin/product.service.js +167 -0
  107. package/dist/lib/services/admin/product.service.js.map +1 -0
  108. package/dist/lib/services/admin/refund.service.d.ts +17 -0
  109. package/dist/lib/services/admin/refund.service.d.ts.map +1 -0
  110. package/dist/lib/services/admin/refund.service.js +30 -0
  111. package/dist/lib/services/admin/refund.service.js.map +1 -0
  112. package/dist/lib/services/admin/report.service.d.ts +52 -0
  113. package/dist/lib/services/admin/report.service.d.ts.map +1 -0
  114. package/dist/lib/services/admin/report.service.js +135 -0
  115. package/dist/lib/services/admin/report.service.js.map +1 -0
  116. package/dist/lib/services/admin/setting.service.d.ts +49 -0
  117. package/dist/lib/services/admin/setting.service.d.ts.map +1 -0
  118. package/dist/lib/services/admin/setting.service.js +75 -0
  119. package/dist/lib/services/admin/setting.service.js.map +1 -0
  120. package/dist/lib/services/admin/shipping-class.service.d.ts +48 -0
  121. package/dist/lib/services/admin/shipping-class.service.d.ts.map +1 -0
  122. package/dist/lib/services/admin/shipping-class.service.js +81 -0
  123. package/dist/lib/services/admin/shipping-class.service.js.map +1 -0
  124. package/dist/lib/services/admin/shipping-method.service.d.ts +20 -0
  125. package/dist/lib/services/admin/shipping-method.service.d.ts.map +1 -0
  126. package/dist/lib/services/admin/shipping-method.service.js +40 -0
  127. package/dist/lib/services/admin/shipping-method.service.js.map +1 -0
  128. package/dist/lib/services/admin/shipping-zone.service.d.ts +60 -0
  129. package/dist/lib/services/admin/shipping-zone.service.d.ts.map +1 -0
  130. package/dist/lib/services/admin/shipping-zone.service.js +146 -0
  131. package/dist/lib/services/admin/shipping-zone.service.js.map +1 -0
  132. package/dist/lib/services/admin/system-status.service.d.ts +16 -0
  133. package/dist/lib/services/admin/system-status.service.d.ts.map +1 -0
  134. package/dist/lib/services/admin/system-status.service.js +27 -0
  135. package/dist/lib/services/admin/system-status.service.js.map +1 -0
  136. package/dist/lib/services/admin/tax.service.d.ts +72 -0
  137. package/dist/lib/services/admin/tax.service.d.ts.map +1 -0
  138. package/dist/lib/services/admin/tax.service.js +134 -0
  139. package/dist/lib/services/admin/tax.service.js.map +1 -0
  140. package/dist/lib/services/admin/webhook.service.d.ts +48 -0
  141. package/dist/lib/services/admin/webhook.service.d.ts.map +1 -0
  142. package/dist/lib/services/admin/webhook.service.js +81 -0
  143. package/dist/lib/services/admin/webhook.service.js.map +1 -0
  144. package/dist/lib/services/admin.service.d.ts +140 -0
  145. package/dist/lib/services/admin.service.d.ts.map +1 -0
  146. package/dist/lib/services/admin.service.js +228 -0
  147. package/dist/lib/services/admin.service.js.map +1 -0
  148. package/dist/lib/services/api.d.ts +5 -0
  149. package/dist/lib/services/api.d.ts.map +1 -0
  150. package/dist/lib/services/api.js +22 -0
  151. package/dist/lib/services/api.js.map +1 -0
  152. package/dist/lib/services/auth/auth.service.d.ts +15 -0
  153. package/dist/lib/services/auth/auth.service.d.ts.map +1 -0
  154. package/dist/lib/services/auth/auth.service.js +100 -0
  155. package/dist/lib/services/auth/auth.service.js.map +1 -0
  156. package/dist/lib/services/base.service.d.ts +13 -0
  157. package/dist/lib/services/base.service.d.ts.map +1 -0
  158. package/dist/lib/services/base.service.js +10 -0
  159. package/dist/lib/services/base.service.js.map +1 -0
  160. package/dist/lib/services/store/batch.service.d.ts +20 -0
  161. package/dist/lib/services/store/batch.service.d.ts.map +1 -0
  162. package/dist/lib/services/store/batch.service.js +35 -0
  163. package/dist/lib/services/store/batch.service.js.map +1 -0
  164. package/dist/lib/services/store/cart.coupon.service.d.ts +38 -0
  165. package/dist/lib/services/store/cart.coupon.service.d.ts.map +1 -0
  166. package/dist/lib/services/store/cart.coupon.service.js +88 -0
  167. package/dist/lib/services/store/cart.coupon.service.js.map +1 -0
  168. package/dist/lib/services/store/cart.extensions.service.d.ts +19 -0
  169. package/dist/lib/services/store/cart.extensions.service.d.ts.map +1 -0
  170. package/dist/lib/services/store/cart.extensions.service.js +34 -0
  171. package/dist/lib/services/store/cart.extensions.service.js.map +1 -0
  172. package/dist/lib/services/store/cart.item.service.d.ts +45 -0
  173. package/dist/lib/services/store/cart.item.service.d.ts.map +1 -0
  174. package/dist/lib/services/store/cart.item.service.js +115 -0
  175. package/dist/lib/services/store/cart.item.service.js.map +1 -0
  176. package/dist/lib/services/store/cart.service.d.ts +61 -0
  177. package/dist/lib/services/store/cart.service.d.ts.map +1 -0
  178. package/dist/lib/services/store/cart.service.js +172 -0
  179. package/dist/lib/services/store/cart.service.js.map +1 -0
  180. package/dist/lib/services/store/checkout.order.service.d.ts +19 -0
  181. package/dist/lib/services/store/checkout.order.service.d.ts.map +1 -0
  182. package/dist/lib/services/store/checkout.order.service.js +29 -0
  183. package/dist/lib/services/store/checkout.order.service.js.map +1 -0
  184. package/dist/lib/services/store/checkout.service.d.ts +30 -0
  185. package/dist/lib/services/store/checkout.service.d.ts.map +1 -0
  186. package/dist/lib/services/store/checkout.service.js +57 -0
  187. package/dist/lib/services/store/checkout.service.js.map +1 -0
  188. package/dist/lib/services/store/order.service.d.ts +20 -0
  189. package/dist/lib/services/store/order.service.d.ts.map +1 -0
  190. package/dist/lib/services/store/order.service.js +33 -0
  191. package/dist/lib/services/store/order.service.js.map +1 -0
  192. package/dist/lib/services/store/product.attribute.service.d.ts +21 -0
  193. package/dist/lib/services/store/product.attribute.service.d.ts.map +1 -0
  194. package/dist/lib/services/store/product.attribute.service.js +38 -0
  195. package/dist/lib/services/store/product.attribute.service.js.map +1 -0
  196. package/dist/lib/services/store/product.attribute.term.service.d.ts +17 -0
  197. package/dist/lib/services/store/product.attribute.term.service.d.ts.map +1 -0
  198. package/dist/lib/services/store/product.attribute.term.service.js +30 -0
  199. package/dist/lib/services/store/product.attribute.term.service.js.map +1 -0
  200. package/dist/lib/services/store/product.brand.service.d.ts +21 -0
  201. package/dist/lib/services/store/product.brand.service.d.ts.map +1 -0
  202. package/dist/lib/services/store/product.brand.service.js +40 -0
  203. package/dist/lib/services/store/product.brand.service.js.map +1 -0
  204. package/dist/lib/services/store/product.category.service.d.ts +22 -0
  205. package/dist/lib/services/store/product.category.service.d.ts.map +1 -0
  206. package/dist/lib/services/store/product.category.service.js +41 -0
  207. package/dist/lib/services/store/product.category.service.js.map +1 -0
  208. package/dist/lib/services/store/product.collection.data.service.d.ts +20 -0
  209. package/dist/lib/services/store/product.collection.data.service.d.ts.map +1 -0
  210. package/dist/lib/services/store/product.collection.data.service.js +31 -0
  211. package/dist/lib/services/store/product.collection.data.service.js.map +1 -0
  212. package/dist/lib/services/store/product.review.service.d.ts +18 -0
  213. package/dist/lib/services/store/product.review.service.d.ts.map +1 -0
  214. package/dist/lib/services/store/product.review.service.js +31 -0
  215. package/dist/lib/services/store/product.review.service.js.map +1 -0
  216. package/dist/lib/services/store/product.service.d.ts +28 -0
  217. package/dist/lib/services/store/product.service.d.ts.map +1 -0
  218. package/dist/lib/services/store/product.service.js +62 -0
  219. package/dist/lib/services/store/product.service.js.map +1 -0
  220. package/dist/lib/services/store/product.tag.service.d.ts +16 -0
  221. package/dist/lib/services/store/product.tag.service.d.ts.map +1 -0
  222. package/dist/lib/services/store/product.tag.service.js +29 -0
  223. package/dist/lib/services/store/product.tag.service.js.map +1 -0
  224. package/dist/lib/services/store.service.d.ts +104 -0
  225. package/dist/lib/services/store.service.d.ts.map +1 -0
  226. package/dist/lib/services/store.service.js +133 -0
  227. package/dist/lib/services/store.service.js.map +1 -0
  228. package/dist/lib/tests/config.tests.d.ts +11 -0
  229. package/dist/lib/tests/config.tests.d.ts.map +1 -0
  230. package/dist/lib/tests/config.tests.js +12 -0
  231. package/dist/lib/tests/config.tests.js.map +1 -0
  232. package/dist/lib/types/admin/attribute.types.d.ts +123 -0
  233. package/dist/lib/types/admin/attribute.types.d.ts.map +1 -0
  234. package/dist/lib/types/admin/attribute.types.js +93 -0
  235. package/dist/lib/types/admin/attribute.types.js.map +1 -0
  236. package/dist/lib/types/admin/common.types.d.ts +100 -0
  237. package/dist/lib/types/admin/common.types.d.ts.map +1 -0
  238. package/dist/lib/types/admin/common.types.js +77 -0
  239. package/dist/lib/types/admin/common.types.js.map +1 -0
  240. package/dist/lib/types/admin/coupon.types.d.ts +123 -0
  241. package/dist/lib/types/admin/coupon.types.d.ts.map +1 -0
  242. package/dist/lib/types/admin/coupon.types.js +211 -0
  243. package/dist/lib/types/admin/coupon.types.js.map +1 -0
  244. package/dist/lib/types/admin/customer.types.d.ts +134 -0
  245. package/dist/lib/types/admin/customer.types.d.ts.map +1 -0
  246. package/dist/lib/types/admin/customer.types.js +99 -0
  247. package/dist/lib/types/admin/customer.types.js.map +1 -0
  248. package/dist/lib/types/admin/data.types.d.ts +65 -0
  249. package/dist/lib/types/admin/data.types.d.ts.map +1 -0
  250. package/dist/lib/types/admin/data.types.js +49 -0
  251. package/dist/lib/types/admin/data.types.js.map +1 -0
  252. package/dist/lib/types/admin/index.d.ts +24 -0
  253. package/dist/lib/types/admin/index.d.ts.map +1 -0
  254. package/dist/lib/types/admin/index.js +23 -0
  255. package/dist/lib/types/admin/index.js.map +1 -0
  256. package/dist/lib/types/admin/order.types.d.ts +710 -0
  257. package/dist/lib/types/admin/order.types.d.ts.map +1 -0
  258. package/dist/lib/types/admin/order.types.js +365 -0
  259. package/dist/lib/types/admin/order.types.js.map +1 -0
  260. package/dist/lib/types/admin/payment-gateway.types.d.ts +44 -0
  261. package/dist/lib/types/admin/payment-gateway.types.d.ts.map +1 -0
  262. package/dist/lib/types/admin/payment-gateway.types.js +34 -0
  263. package/dist/lib/types/admin/payment-gateway.types.js.map +1 -0
  264. package/dist/lib/types/admin/product-brand.types.d.ts +92 -0
  265. package/dist/lib/types/admin/product-brand.types.d.ts.map +1 -0
  266. package/dist/lib/types/admin/product-brand.types.js +55 -0
  267. package/dist/lib/types/admin/product-brand.types.js.map +1 -0
  268. package/dist/lib/types/admin/product-review.types.d.ts +88 -0
  269. package/dist/lib/types/admin/product-review.types.d.ts.map +1 -0
  270. package/dist/lib/types/admin/product-review.types.js +55 -0
  271. package/dist/lib/types/admin/product-review.types.js.map +1 -0
  272. package/dist/lib/types/admin/product.types.d.ts +509 -0
  273. package/dist/lib/types/admin/product.types.d.ts.map +1 -0
  274. package/dist/lib/types/admin/product.types.js +287 -0
  275. package/dist/lib/types/admin/product.types.js.map +1 -0
  276. package/dist/lib/types/admin/refund.types.d.ts +237 -0
  277. package/dist/lib/types/admin/refund.types.d.ts.map +1 -0
  278. package/dist/lib/types/admin/refund.types.js +118 -0
  279. package/dist/lib/types/admin/refund.types.js.map +1 -0
  280. package/dist/lib/types/admin/report.types.d.ts +179 -0
  281. package/dist/lib/types/admin/report.types.d.ts.map +1 -0
  282. package/dist/lib/types/admin/report.types.js +96 -0
  283. package/dist/lib/types/admin/report.types.js.map +1 -0
  284. package/dist/lib/types/admin/setting.types.d.ts +50 -0
  285. package/dist/lib/types/admin/setting.types.d.ts.map +1 -0
  286. package/dist/lib/types/admin/setting.types.js +41 -0
  287. package/dist/lib/types/admin/setting.types.js.map +1 -0
  288. package/dist/lib/types/admin/shipping-method.types.d.ts +22 -0
  289. package/dist/lib/types/admin/shipping-method.types.d.ts.map +1 -0
  290. package/dist/lib/types/admin/shipping-method.types.js +14 -0
  291. package/dist/lib/types/admin/shipping-method.types.js.map +1 -0
  292. package/dist/lib/types/admin/shipping-zone.types.d.ts +103 -0
  293. package/dist/lib/types/admin/shipping-zone.types.d.ts.map +1 -0
  294. package/dist/lib/types/admin/shipping-zone.types.js +63 -0
  295. package/dist/lib/types/admin/shipping-zone.types.js.map +1 -0
  296. package/dist/lib/types/admin/system-status.types.d.ts +139 -0
  297. package/dist/lib/types/admin/system-status.types.d.ts.map +1 -0
  298. package/dist/lib/types/admin/system-status.types.js +133 -0
  299. package/dist/lib/types/admin/system-status.types.js.map +1 -0
  300. package/dist/lib/types/admin/tax.types.d.ts +99 -0
  301. package/dist/lib/types/admin/tax.types.d.ts.map +1 -0
  302. package/dist/lib/types/admin/tax.types.js +60 -0
  303. package/dist/lib/types/admin/tax.types.js.map +1 -0
  304. package/dist/lib/types/admin/taxonomy.types.d.ts +234 -0
  305. package/dist/lib/types/admin/taxonomy.types.d.ts.map +1 -0
  306. package/dist/lib/types/admin/taxonomy.types.js +177 -0
  307. package/dist/lib/types/admin/taxonomy.types.js.map +1 -0
  308. package/dist/lib/types/admin/webhook.types.d.ts +72 -0
  309. package/dist/lib/types/admin/webhook.types.d.ts.map +1 -0
  310. package/dist/lib/types/admin/webhook.types.js +42 -0
  311. package/dist/lib/types/admin/webhook.types.js.map +1 -0
  312. package/dist/lib/types/api.d.ts +46 -0
  313. package/dist/lib/types/api.d.ts.map +1 -0
  314. package/dist/lib/types/api.js +15 -0
  315. package/dist/lib/types/api.js.map +1 -0
  316. package/dist/lib/types/auth/index.d.ts +7 -0
  317. package/dist/lib/types/auth/index.d.ts.map +1 -0
  318. package/dist/lib/types/auth/index.js +7 -0
  319. package/dist/lib/types/auth/index.js.map +1 -0
  320. package/dist/lib/types/auth/one-time-token/auth.one.time.token.request.d.ts +6 -0
  321. package/dist/lib/types/auth/one-time-token/auth.one.time.token.request.d.ts.map +1 -0
  322. package/dist/lib/types/auth/one-time-token/auth.one.time.token.request.js +5 -0
  323. package/dist/lib/types/auth/one-time-token/auth.one.time.token.request.js.map +1 -0
  324. package/dist/lib/types/auth/one-time-token/auth.one.time.token.response.d.ts +7 -0
  325. package/dist/lib/types/auth/one-time-token/auth.one.time.token.response.d.ts.map +1 -0
  326. package/dist/lib/types/auth/one-time-token/auth.one.time.token.response.js +6 -0
  327. package/dist/lib/types/auth/one-time-token/auth.one.time.token.response.js.map +1 -0
  328. package/dist/lib/types/auth/one-time-token/index.d.ts +3 -0
  329. package/dist/lib/types/auth/one-time-token/index.d.ts.map +1 -0
  330. package/dist/lib/types/auth/one-time-token/index.js +3 -0
  331. package/dist/lib/types/auth/one-time-token/index.js.map +1 -0
  332. package/dist/lib/types/auth/refresh/auth.refresh.request.d.ts +6 -0
  333. package/dist/lib/types/auth/refresh/auth.refresh.request.d.ts.map +1 -0
  334. package/dist/lib/types/auth/refresh/auth.refresh.request.js +5 -0
  335. package/dist/lib/types/auth/refresh/auth.refresh.request.js.map +1 -0
  336. package/dist/lib/types/auth/refresh/index.d.ts +2 -0
  337. package/dist/lib/types/auth/refresh/index.d.ts.map +1 -0
  338. package/dist/lib/types/auth/refresh/index.js +2 -0
  339. package/dist/lib/types/auth/refresh/index.js.map +1 -0
  340. package/dist/lib/types/auth/revoke/auth.revoke.request.d.ts +9 -0
  341. package/dist/lib/types/auth/revoke/auth.revoke.request.d.ts.map +1 -0
  342. package/dist/lib/types/auth/revoke/auth.revoke.request.js +5 -0
  343. package/dist/lib/types/auth/revoke/auth.revoke.request.js.map +1 -0
  344. package/dist/lib/types/auth/revoke/auth.revoke.response.d.ts +8 -0
  345. package/dist/lib/types/auth/revoke/auth.revoke.response.d.ts.map +1 -0
  346. package/dist/lib/types/auth/revoke/auth.revoke.response.js +7 -0
  347. package/dist/lib/types/auth/revoke/auth.revoke.response.js.map +1 -0
  348. package/dist/lib/types/auth/revoke/index.d.ts +3 -0
  349. package/dist/lib/types/auth/revoke/index.d.ts.map +1 -0
  350. package/dist/lib/types/auth/revoke/index.js +3 -0
  351. package/dist/lib/types/auth/revoke/index.js.map +1 -0
  352. package/dist/lib/types/auth/status/auth.status.response.d.ts +18 -0
  353. package/dist/lib/types/auth/status/auth.status.response.d.ts.map +1 -0
  354. package/dist/lib/types/auth/status/auth.status.response.js +16 -0
  355. package/dist/lib/types/auth/status/auth.status.response.js.map +1 -0
  356. package/dist/lib/types/auth/status/index.d.ts +2 -0
  357. package/dist/lib/types/auth/status/index.d.ts.map +1 -0
  358. package/dist/lib/types/auth/status/index.js +2 -0
  359. package/dist/lib/types/auth/status/index.js.map +1 -0
  360. package/dist/lib/types/auth/token/auth.token.request.d.ts +9 -0
  361. package/dist/lib/types/auth/token/auth.token.request.d.ts.map +1 -0
  362. package/dist/lib/types/auth/token/auth.token.request.js +8 -0
  363. package/dist/lib/types/auth/token/auth.token.request.js.map +1 -0
  364. package/dist/lib/types/auth/token/auth.token.response.d.ts +16 -0
  365. package/dist/lib/types/auth/token/auth.token.response.d.ts.map +1 -0
  366. package/dist/lib/types/auth/token/auth.token.response.js +15 -0
  367. package/dist/lib/types/auth/token/auth.token.response.js.map +1 -0
  368. package/dist/lib/types/auth/token/index.d.ts +3 -0
  369. package/dist/lib/types/auth/token/index.d.ts.map +1 -0
  370. package/dist/lib/types/auth/token/index.js +3 -0
  371. package/dist/lib/types/auth/token/index.js.map +1 -0
  372. package/dist/lib/types/auth/validate/auth.validate.response.d.ts +16 -0
  373. package/dist/lib/types/auth/validate/auth.validate.response.d.ts.map +1 -0
  374. package/dist/lib/types/auth/validate/auth.validate.response.js +15 -0
  375. package/dist/lib/types/auth/validate/auth.validate.response.js.map +1 -0
  376. package/dist/lib/types/auth/validate/index.d.ts +2 -0
  377. package/dist/lib/types/auth/validate/index.d.ts.map +1 -0
  378. package/dist/lib/types/auth/validate/index.js +2 -0
  379. package/dist/lib/types/auth/validate/index.js.map +1 -0
  380. package/dist/lib/types/index.d.ts +5 -0
  381. package/dist/lib/types/index.d.ts.map +1 -0
  382. package/dist/lib/types/index.js +5 -0
  383. package/dist/lib/types/index.js.map +1 -0
  384. package/dist/lib/types/sdk.state.d.ts +195 -0
  385. package/dist/lib/types/sdk.state.d.ts.map +1 -0
  386. package/dist/lib/types/sdk.state.js +10 -0
  387. package/dist/lib/types/sdk.state.js.map +1 -0
  388. package/dist/lib/types/store/batch/batch.request.d.ts +32 -0
  389. package/dist/lib/types/store/batch/batch.request.d.ts.map +1 -0
  390. package/dist/lib/types/store/batch/batch.request.js +35 -0
  391. package/dist/lib/types/store/batch/batch.request.js.map +1 -0
  392. package/dist/lib/types/store/batch/batch.response.d.ts +16 -0
  393. package/dist/lib/types/store/batch/batch.response.d.ts.map +1 -0
  394. package/dist/lib/types/store/batch/batch.response.js +22 -0
  395. package/dist/lib/types/store/batch/batch.response.js.map +1 -0
  396. package/dist/lib/types/store/batch/index.d.ts +3 -0
  397. package/dist/lib/types/store/batch/index.d.ts.map +1 -0
  398. package/dist/lib/types/store/batch/index.js +3 -0
  399. package/dist/lib/types/store/batch/index.js.map +1 -0
  400. package/dist/lib/types/store/cart/cart.billing.response.d.ts +16 -0
  401. package/dist/lib/types/store/cart/cart.billing.response.d.ts.map +1 -0
  402. package/dist/lib/types/store/cart/cart.billing.response.js +15 -0
  403. package/dist/lib/types/store/cart/cart.billing.response.js.map +1 -0
  404. package/dist/lib/types/store/cart/cart.customer.request.d.ts +30 -0
  405. package/dist/lib/types/store/cart/cart.customer.request.d.ts.map +1 -0
  406. package/dist/lib/types/store/cart/cart.customer.request.js +29 -0
  407. package/dist/lib/types/store/cart/cart.customer.request.js.map +1 -0
  408. package/dist/lib/types/store/cart/cart.response.d.ts +189 -0
  409. package/dist/lib/types/store/cart/cart.response.d.ts.map +1 -0
  410. package/dist/lib/types/store/cart/cart.response.js +27 -0
  411. package/dist/lib/types/store/cart/cart.response.js.map +1 -0
  412. package/dist/lib/types/store/cart/cart.shipping.rate.response.d.ts +42 -0
  413. package/dist/lib/types/store/cart/cart.shipping.rate.response.d.ts.map +1 -0
  414. package/dist/lib/types/store/cart/cart.shipping.rate.response.js +41 -0
  415. package/dist/lib/types/store/cart/cart.shipping.rate.response.js.map +1 -0
  416. package/dist/lib/types/store/cart/cart.shipping.response.d.ts +15 -0
  417. package/dist/lib/types/store/cart/cart.shipping.response.d.ts.map +1 -0
  418. package/dist/lib/types/store/cart/cart.shipping.response.js +14 -0
  419. package/dist/lib/types/store/cart/cart.shipping.response.js.map +1 -0
  420. package/dist/lib/types/store/cart/cart.total.response.d.ts +27 -0
  421. package/dist/lib/types/store/cart/cart.total.response.d.ts.map +1 -0
  422. package/dist/lib/types/store/cart/cart.total.response.js +26 -0
  423. package/dist/lib/types/store/cart/cart.total.response.js.map +1 -0
  424. package/dist/lib/types/store/cart/index.d.ts +7 -0
  425. package/dist/lib/types/store/cart/index.d.ts.map +1 -0
  426. package/dist/lib/types/store/cart/index.js +7 -0
  427. package/dist/lib/types/store/cart/index.js.map +1 -0
  428. package/dist/lib/types/store/cart-coupon/cart.coupon.response.d.ts +18 -0
  429. package/dist/lib/types/store/cart-coupon/cart.coupon.response.d.ts.map +1 -0
  430. package/dist/lib/types/store/cart-coupon/cart.coupon.response.js +8 -0
  431. package/dist/lib/types/store/cart-coupon/cart.coupon.response.js.map +1 -0
  432. package/dist/lib/types/store/cart-coupon/cart.coupon.total.response.d.ts +14 -0
  433. package/dist/lib/types/store/cart-coupon/cart.coupon.total.response.d.ts.map +1 -0
  434. package/dist/lib/types/store/cart-coupon/cart.coupon.total.response.js +13 -0
  435. package/dist/lib/types/store/cart-coupon/cart.coupon.total.response.js.map +1 -0
  436. package/dist/lib/types/store/cart-coupon/index.d.ts +3 -0
  437. package/dist/lib/types/store/cart-coupon/index.d.ts.map +1 -0
  438. package/dist/lib/types/store/cart-coupon/index.js +3 -0
  439. package/dist/lib/types/store/cart-coupon/index.js.map +1 -0
  440. package/dist/lib/types/store/cart-extensions/cart.extensions.request.d.ts +10 -0
  441. package/dist/lib/types/store/cart-extensions/cart.extensions.request.d.ts.map +1 -0
  442. package/dist/lib/types/store/cart-extensions/cart.extensions.request.js +15 -0
  443. package/dist/lib/types/store/cart-extensions/cart.extensions.request.js.map +1 -0
  444. package/dist/lib/types/store/cart-extensions/cart.extensions.response.d.ts +12 -0
  445. package/dist/lib/types/store/cart-extensions/cart.extensions.response.d.ts.map +1 -0
  446. package/dist/lib/types/store/cart-extensions/cart.extensions.response.js +23 -0
  447. package/dist/lib/types/store/cart-extensions/cart.extensions.response.js.map +1 -0
  448. package/dist/lib/types/store/cart-extensions/index.d.ts +3 -0
  449. package/dist/lib/types/store/cart-extensions/index.d.ts.map +1 -0
  450. package/dist/lib/types/store/cart-extensions/index.js +3 -0
  451. package/dist/lib/types/store/cart-extensions/index.js.map +1 -0
  452. package/dist/lib/types/store/cart-item/cart.item.add.request.d.ts +8 -0
  453. package/dist/lib/types/store/cart-item/cart.item.add.request.d.ts.map +1 -0
  454. package/dist/lib/types/store/cart-item/cart.item.add.request.js +16 -0
  455. package/dist/lib/types/store/cart-item/cart.item.add.request.js.map +1 -0
  456. package/dist/lib/types/store/cart-item/cart.item.edit.request.d.ts +7 -0
  457. package/dist/lib/types/store/cart-item/cart.item.edit.request.d.ts.map +1 -0
  458. package/dist/lib/types/store/cart-item/cart.item.edit.request.js +12 -0
  459. package/dist/lib/types/store/cart-item/cart.item.edit.request.js.map +1 -0
  460. package/dist/lib/types/store/cart-item/cart.item.price.response.d.ts +22 -0
  461. package/dist/lib/types/store/cart-item/cart.item.price.response.d.ts.map +1 -0
  462. package/dist/lib/types/store/cart-item/cart.item.price.response.js +21 -0
  463. package/dist/lib/types/store/cart-item/cart.item.price.response.js.map +1 -0
  464. package/dist/lib/types/store/cart-item/cart.item.quantity.limits.response.d.ts +9 -0
  465. package/dist/lib/types/store/cart-item/cart.item.quantity.limits.response.d.ts.map +1 -0
  466. package/dist/lib/types/store/cart-item/cart.item.quantity.limits.response.js +8 -0
  467. package/dist/lib/types/store/cart-item/cart.item.quantity.limits.response.js.map +1 -0
  468. package/dist/lib/types/store/cart-item/cart.item.response.d.ts +73 -0
  469. package/dist/lib/types/store/cart-item/cart.item.response.d.ts.map +1 -0
  470. package/dist/lib/types/store/cart-item/cart.item.response.js +30 -0
  471. package/dist/lib/types/store/cart-item/cart.item.response.js.map +1 -0
  472. package/dist/lib/types/store/cart-item/cart.item.total.response.d.ts +16 -0
  473. package/dist/lib/types/store/cart-item/cart.item.total.response.d.ts.map +1 -0
  474. package/dist/lib/types/store/cart-item/cart.item.total.response.js +15 -0
  475. package/dist/lib/types/store/cart-item/cart.item.total.response.js.map +1 -0
  476. package/dist/lib/types/store/cart-item/cart.item.variation.response.d.ts +8 -0
  477. package/dist/lib/types/store/cart-item/cart.item.variation.response.d.ts.map +1 -0
  478. package/dist/lib/types/store/cart-item/cart.item.variation.response.js +7 -0
  479. package/dist/lib/types/store/cart-item/cart.item.variation.response.js.map +1 -0
  480. package/dist/lib/types/store/cart-item/index.d.ts +8 -0
  481. package/dist/lib/types/store/cart-item/index.d.ts.map +1 -0
  482. package/dist/lib/types/store/cart-item/index.js +8 -0
  483. package/dist/lib/types/store/cart-item/index.js.map +1 -0
  484. package/dist/lib/types/store/checkout/checkout.billing.response.d.ts +16 -0
  485. package/dist/lib/types/store/checkout/checkout.billing.response.d.ts.map +1 -0
  486. package/dist/lib/types/store/checkout/checkout.billing.response.js +15 -0
  487. package/dist/lib/types/store/checkout/checkout.billing.response.js.map +1 -0
  488. package/dist/lib/types/store/checkout/checkout.create.request.d.ts +38 -0
  489. package/dist/lib/types/store/checkout/checkout.create.request.d.ts.map +1 -0
  490. package/dist/lib/types/store/checkout/checkout.create.request.js +36 -0
  491. package/dist/lib/types/store/checkout/checkout.create.request.js.map +1 -0
  492. package/dist/lib/types/store/checkout/checkout.response.d.ts +44 -0
  493. package/dist/lib/types/store/checkout/checkout.response.d.ts.map +1 -0
  494. package/dist/lib/types/store/checkout/checkout.response.js +22 -0
  495. package/dist/lib/types/store/checkout/checkout.response.js.map +1 -0
  496. package/dist/lib/types/store/checkout/checkout.shipping.d.ts +15 -0
  497. package/dist/lib/types/store/checkout/checkout.shipping.d.ts.map +1 -0
  498. package/dist/lib/types/store/checkout/checkout.shipping.js +14 -0
  499. package/dist/lib/types/store/checkout/checkout.shipping.js.map +1 -0
  500. package/dist/lib/types/store/checkout/checkout.update.request.d.ts +8 -0
  501. package/dist/lib/types/store/checkout/checkout.update.request.d.ts.map +1 -0
  502. package/dist/lib/types/store/checkout/checkout.update.request.js +16 -0
  503. package/dist/lib/types/store/checkout/checkout.update.request.js.map +1 -0
  504. package/dist/lib/types/store/checkout/index.d.ts +6 -0
  505. package/dist/lib/types/store/checkout/index.d.ts.map +1 -0
  506. package/dist/lib/types/store/checkout/index.js +6 -0
  507. package/dist/lib/types/store/checkout/index.js.map +1 -0
  508. package/dist/lib/types/store/error.response.d.ts +10 -0
  509. package/dist/lib/types/store/error.response.d.ts.map +1 -0
  510. package/dist/lib/types/store/error.response.js +9 -0
  511. package/dist/lib/types/store/error.response.js.map +1 -0
  512. package/dist/lib/types/store/image.response.d.ts +12 -0
  513. package/dist/lib/types/store/image.response.d.ts.map +1 -0
  514. package/dist/lib/types/store/image.response.js +11 -0
  515. package/dist/lib/types/store/image.response.js.map +1 -0
  516. package/dist/lib/types/store/index.d.ts +19 -0
  517. package/dist/lib/types/store/index.d.ts.map +1 -0
  518. package/dist/lib/types/store/index.js +19 -0
  519. package/dist/lib/types/store/index.js.map +1 -0
  520. package/dist/lib/types/store/order/index.d.ts +7 -0
  521. package/dist/lib/types/store/order/index.d.ts.map +1 -0
  522. package/dist/lib/types/store/order/index.js +7 -0
  523. package/dist/lib/types/store/order/index.js.map +1 -0
  524. package/dist/lib/types/store/order/order.billing.response.d.ts +16 -0
  525. package/dist/lib/types/store/order/order.billing.response.d.ts.map +1 -0
  526. package/dist/lib/types/store/order/order.billing.response.js +15 -0
  527. package/dist/lib/types/store/order/order.billing.response.js.map +1 -0
  528. package/dist/lib/types/store/order/order.coupon.response.d.ts +17 -0
  529. package/dist/lib/types/store/order/order.coupon.response.d.ts.map +1 -0
  530. package/dist/lib/types/store/order/order.coupon.response.js +16 -0
  531. package/dist/lib/types/store/order/order.coupon.response.js.map +1 -0
  532. package/dist/lib/types/store/order/order.request.d.ts +37 -0
  533. package/dist/lib/types/store/order/order.request.d.ts.map +1 -0
  534. package/dist/lib/types/store/order/order.request.js +35 -0
  535. package/dist/lib/types/store/order/order.request.js.map +1 -0
  536. package/dist/lib/types/store/order/order.response.d.ts +141 -0
  537. package/dist/lib/types/store/order/order.response.d.ts.map +1 -0
  538. package/dist/lib/types/store/order/order.response.js +21 -0
  539. package/dist/lib/types/store/order/order.response.js.map +1 -0
  540. package/dist/lib/types/store/order/order.shipping.response.d.ts +15 -0
  541. package/dist/lib/types/store/order/order.shipping.response.d.ts.map +1 -0
  542. package/dist/lib/types/store/order/order.shipping.response.js +14 -0
  543. package/dist/lib/types/store/order/order.shipping.response.js.map +1 -0
  544. package/dist/lib/types/store/order/order.total.response.d.ts +18 -0
  545. package/dist/lib/types/store/order/order.total.response.d.ts.map +1 -0
  546. package/dist/lib/types/store/order/order.total.response.js +17 -0
  547. package/dist/lib/types/store/order/order.total.response.js.map +1 -0
  548. package/dist/lib/types/store/paginated.d.ts +8 -0
  549. package/dist/lib/types/store/paginated.d.ts.map +1 -0
  550. package/dist/lib/types/store/paginated.js +17 -0
  551. package/dist/lib/types/store/paginated.js.map +1 -0
  552. package/dist/lib/types/store/product/index.d.ts +4 -0
  553. package/dist/lib/types/store/product/index.d.ts.map +1 -0
  554. package/dist/lib/types/store/product/index.js +4 -0
  555. package/dist/lib/types/store/product/index.js.map +1 -0
  556. package/dist/lib/types/store/product/product.price.response.d.ts +16 -0
  557. package/dist/lib/types/store/product/product.price.response.d.ts.map +1 -0
  558. package/dist/lib/types/store/product/product.price.response.js +15 -0
  559. package/dist/lib/types/store/product/product.price.response.js.map +1 -0
  560. package/dist/lib/types/store/product/product.request.d.ts +94 -0
  561. package/dist/lib/types/store/product/product.request.d.ts.map +1 -0
  562. package/dist/lib/types/store/product/product.request.js +167 -0
  563. package/dist/lib/types/store/product/product.request.js.map +1 -0
  564. package/dist/lib/types/store/product/product.response.d.ts +82 -0
  565. package/dist/lib/types/store/product/product.response.d.ts.map +1 -0
  566. package/dist/lib/types/store/product/product.response.js +63 -0
  567. package/dist/lib/types/store/product/product.response.js.map +1 -0
  568. package/dist/lib/types/store/product-attribute/index.d.ts +2 -0
  569. package/dist/lib/types/store/product-attribute/index.d.ts.map +1 -0
  570. package/dist/lib/types/store/product-attribute/index.js +2 -0
  571. package/dist/lib/types/store/product-attribute/index.js.map +1 -0
  572. package/dist/lib/types/store/product-attribute/product.attribute.response.d.ts +11 -0
  573. package/dist/lib/types/store/product-attribute/product.attribute.response.d.ts.map +1 -0
  574. package/dist/lib/types/store/product-attribute/product.attribute.response.js +10 -0
  575. package/dist/lib/types/store/product-attribute/product.attribute.response.js.map +1 -0
  576. package/dist/lib/types/store/product-attribute-term/index.d.ts +3 -0
  577. package/dist/lib/types/store/product-attribute-term/index.d.ts.map +1 -0
  578. package/dist/lib/types/store/product-attribute-term/index.js +3 -0
  579. package/dist/lib/types/store/product-attribute-term/index.js.map +1 -0
  580. package/dist/lib/types/store/product-attribute-term/product.attribute.term.request.d.ts +18 -0
  581. package/dist/lib/types/store/product-attribute-term/product.attribute.term.request.d.ts.map +1 -0
  582. package/dist/lib/types/store/product-attribute-term/product.attribute.term.request.js +18 -0
  583. package/dist/lib/types/store/product-attribute-term/product.attribute.term.request.js.map +1 -0
  584. package/dist/lib/types/store/product-attribute-term/product.attribute.term.response.d.ts +9 -0
  585. package/dist/lib/types/store/product-attribute-term/product.attribute.term.response.d.ts.map +1 -0
  586. package/dist/lib/types/store/product-attribute-term/product.attribute.term.response.js +8 -0
  587. package/dist/lib/types/store/product-attribute-term/product.attribute.term.response.js.map +1 -0
  588. package/dist/lib/types/store/product-brand/index.d.ts +2 -0
  589. package/dist/lib/types/store/product-brand/index.d.ts.map +1 -0
  590. package/dist/lib/types/store/product-brand/index.js +2 -0
  591. package/dist/lib/types/store/product-brand/index.js.map +1 -0
  592. package/dist/lib/types/store/product-brand/product.brand.response.d.ts +22 -0
  593. package/dist/lib/types/store/product-brand/product.brand.response.d.ts.map +1 -0
  594. package/dist/lib/types/store/product-brand/product.brand.response.js +14 -0
  595. package/dist/lib/types/store/product-brand/product.brand.response.js.map +1 -0
  596. package/dist/lib/types/store/product-category/index.d.ts +3 -0
  597. package/dist/lib/types/store/product-category/index.d.ts.map +1 -0
  598. package/dist/lib/types/store/product-category/index.js +3 -0
  599. package/dist/lib/types/store/product-category/index.js.map +1 -0
  600. package/dist/lib/types/store/product-category/product.category.request.d.ts +8 -0
  601. package/dist/lib/types/store/product-category/product.category.request.d.ts.map +1 -0
  602. package/dist/lib/types/store/product-category/product.category.request.js +3 -0
  603. package/dist/lib/types/store/product-category/product.category.request.js.map +1 -0
  604. package/dist/lib/types/store/product-category/product.category.response.d.ts +22 -0
  605. package/dist/lib/types/store/product-category/product.category.response.d.ts.map +1 -0
  606. package/dist/lib/types/store/product-category/product.category.response.js +14 -0
  607. package/dist/lib/types/store/product-category/product.category.response.js.map +1 -0
  608. package/dist/lib/types/store/product-collection-data/index.d.ts +7 -0
  609. package/dist/lib/types/store/product-collection-data/index.d.ts.map +1 -0
  610. package/dist/lib/types/store/product-collection-data/index.js +7 -0
  611. package/dist/lib/types/store/product-collection-data/index.js.map +1 -0
  612. package/dist/lib/types/store/product-collection-data/product.collection.data.attribute.counts.response.d.ts +7 -0
  613. package/dist/lib/types/store/product-collection-data/product.collection.data.attribute.counts.response.d.ts.map +1 -0
  614. package/dist/lib/types/store/product-collection-data/product.collection.data.attribute.counts.response.js +6 -0
  615. package/dist/lib/types/store/product-collection-data/product.collection.data.attribute.counts.response.js.map +1 -0
  616. package/dist/lib/types/store/product-collection-data/product.collection.data.price.range.response.d.ts +14 -0
  617. package/dist/lib/types/store/product-collection-data/product.collection.data.price.range.response.d.ts.map +1 -0
  618. package/dist/lib/types/store/product-collection-data/product.collection.data.price.range.response.js +13 -0
  619. package/dist/lib/types/store/product-collection-data/product.collection.data.price.range.response.js.map +1 -0
  620. package/dist/lib/types/store/product-collection-data/product.collection.data.rating.counts.response.d.ts +7 -0
  621. package/dist/lib/types/store/product-collection-data/product.collection.data.rating.counts.response.d.ts.map +1 -0
  622. package/dist/lib/types/store/product-collection-data/product.collection.data.rating.counts.response.js +6 -0
  623. package/dist/lib/types/store/product-collection-data/product.collection.data.rating.counts.response.js.map +1 -0
  624. package/dist/lib/types/store/product-collection-data/product.collection.data.request.d.ts +13 -0
  625. package/dist/lib/types/store/product-collection-data/product.collection.data.request.d.ts.map +1 -0
  626. package/dist/lib/types/store/product-collection-data/product.collection.data.request.js +36 -0
  627. package/dist/lib/types/store/product-collection-data/product.collection.data.request.js.map +1 -0
  628. package/dist/lib/types/store/product-collection-data/product.collection.data.response.d.ts +28 -0
  629. package/dist/lib/types/store/product-collection-data/product.collection.data.response.d.ts.map +1 -0
  630. package/dist/lib/types/store/product-collection-data/product.collection.data.response.js +12 -0
  631. package/dist/lib/types/store/product-collection-data/product.collection.data.response.js.map +1 -0
  632. package/dist/lib/types/store/product-collection-data/product.collection.data.taxonomy.counts.response.d.ts +7 -0
  633. package/dist/lib/types/store/product-collection-data/product.collection.data.taxonomy.counts.response.d.ts.map +1 -0
  634. package/dist/lib/types/store/product-collection-data/product.collection.data.taxonomy.counts.response.js +6 -0
  635. package/dist/lib/types/store/product-collection-data/product.collection.data.taxonomy.counts.response.js.map +1 -0
  636. package/dist/lib/types/store/product-review/index.d.ts +3 -0
  637. package/dist/lib/types/store/product-review/index.d.ts.map +1 -0
  638. package/dist/lib/types/store/product-review/index.js +3 -0
  639. package/dist/lib/types/store/product-review/index.js.map +1 -0
  640. package/dist/lib/types/store/product-review/product.review.request.d.ts +21 -0
  641. package/dist/lib/types/store/product-review/product.review.request.d.ts.map +1 -0
  642. package/dist/lib/types/store/product-review/product.review.request.js +22 -0
  643. package/dist/lib/types/store/product-review/product.review.request.js.map +1 -0
  644. package/dist/lib/types/store/product-review/product.review.response.d.ts +26 -0
  645. package/dist/lib/types/store/product-review/product.review.response.d.ts.map +1 -0
  646. package/dist/lib/types/store/product-review/product.review.response.js +18 -0
  647. package/dist/lib/types/store/product-review/product.review.response.js.map +1 -0
  648. package/dist/lib/types/store/product-tag/index.d.ts +3 -0
  649. package/dist/lib/types/store/product-tag/index.d.ts.map +1 -0
  650. package/dist/lib/types/store/product-tag/index.js +3 -0
  651. package/dist/lib/types/store/product-tag/index.js.map +1 -0
  652. package/dist/lib/types/store/product-tag/product.tag.request.d.ts +8 -0
  653. package/dist/lib/types/store/product-tag/product.tag.request.d.ts.map +1 -0
  654. package/dist/lib/types/store/product-tag/product.tag.request.js +3 -0
  655. package/dist/lib/types/store/product-tag/product.tag.request.js.map +1 -0
  656. package/dist/lib/types/store/product-tag/product.tag.response.d.ts +11 -0
  657. package/dist/lib/types/store/product-tag/product.tag.response.d.ts.map +1 -0
  658. package/dist/lib/types/store/product-tag/product.tag.response.js +10 -0
  659. package/dist/lib/types/store/product-tag/product.tag.response.js.map +1 -0
  660. package/dist/lib/utilities/axios.utility.d.ts +9 -0
  661. package/dist/lib/utilities/axios.utility.d.ts.map +1 -0
  662. package/dist/lib/utilities/axios.utility.js +82 -0
  663. package/dist/lib/utilities/axios.utility.js.map +1 -0
  664. package/dist/lib/utilities/common.d.ts +14 -0
  665. package/dist/lib/utilities/common.d.ts.map +1 -0
  666. package/dist/lib/utilities/common.js +29 -0
  667. package/dist/lib/utilities/common.js.map +1 -0
  668. package/dist/lib/utilities/jwt.utility.d.ts +3 -0
  669. package/dist/lib/utilities/jwt.utility.d.ts.map +1 -0
  670. package/dist/lib/utilities/jwt.utility.js +15 -0
  671. package/dist/lib/utilities/jwt.utility.js.map +1 -0
  672. package/package.json +44 -0
@@ -0,0 +1,140 @@
1
+ import { BaseService } from './base.service.js';
2
+ import { AdminProductService } from './admin/product.service.js';
3
+ import { AdminOrderService } from './admin/order.service.js';
4
+ import { AdminCustomerService } from './admin/customer.service.js';
5
+ import { AdminCouponService } from './admin/coupon.service.js';
6
+ import { AdminProductCategoryService } from './admin/product-category.service.js';
7
+ import { AdminProductTagService } from './admin/product-tag.service.js';
8
+ import { AdminShippingClassService } from './admin/shipping-class.service.js';
9
+ import { AdminProductAttributeService } from './admin/product-attribute.service.js';
10
+ import { AdminProductAttributeTermService } from './admin/product-attribute-term.service.js';
11
+ import { AdminProductBrandService } from './admin/product-brand.service.js';
12
+ import { AdminProductReviewService } from './admin/product-review.service.js';
13
+ import { AdminRefundService } from './admin/refund.service.js';
14
+ import { AdminTaxService, AdminTaxClassService } from './admin/tax.service.js';
15
+ import { AdminWebhookService } from './admin/webhook.service.js';
16
+ import { AdminSettingService } from './admin/setting.service.js';
17
+ import { AdminReportService } from './admin/report.service.js';
18
+ import { AdminShippingZoneService } from './admin/shipping-zone.service.js';
19
+ import { AdminPaymentGatewayService } from './admin/payment-gateway.service.js';
20
+ import { AdminShippingMethodService } from './admin/shipping-method.service.js';
21
+ import { AdminSystemStatusService } from './admin/system-status.service.js';
22
+ import { AdminDataService } from './admin/data.service.js';
23
+ /**
24
+ * Aggregator service for all WooCommerce REST API services
25
+ *
26
+ * Provides access to all REST API endpoints through organized service instances
27
+ */
28
+ export declare class AdminService extends BaseService {
29
+ private _products?;
30
+ private _orders?;
31
+ private _customers?;
32
+ private _coupons?;
33
+ private _productCategories?;
34
+ private _productTags?;
35
+ private _shippingClasses?;
36
+ private _productAttributes?;
37
+ private _attributeTerms?;
38
+ private _productBrands?;
39
+ private _productReviews?;
40
+ private _refunds?;
41
+ private _taxes?;
42
+ private _taxClasses?;
43
+ private _webhooks?;
44
+ private _settings?;
45
+ private _reports?;
46
+ private _shippingZones?;
47
+ private _paymentGateways?;
48
+ private _shippingMethods?;
49
+ private _systemStatus?;
50
+ private _data?;
51
+ /**
52
+ * Access to products REST API endpoints
53
+ */
54
+ get products(): AdminProductService;
55
+ /**
56
+ * Access to orders REST API endpoints
57
+ */
58
+ get orders(): AdminOrderService;
59
+ /**
60
+ * Access to customers REST API endpoints
61
+ */
62
+ get customers(): AdminCustomerService;
63
+ /**
64
+ * Access to coupons REST API endpoints
65
+ */
66
+ get coupons(): AdminCouponService;
67
+ /**
68
+ * Access to product categories REST API endpoints
69
+ */
70
+ get productCategories(): AdminProductCategoryService;
71
+ /**
72
+ * Access to product tags REST API endpoints
73
+ */
74
+ get productTags(): AdminProductTagService;
75
+ /**
76
+ * Access to shipping classes REST API endpoints
77
+ */
78
+ get shippingClasses(): AdminShippingClassService;
79
+ /**
80
+ * Access to product attributes REST API endpoints
81
+ */
82
+ get productAttributes(): AdminProductAttributeService;
83
+ /**
84
+ * Access to attribute terms REST API endpoints
85
+ */
86
+ get attributeTerms(): AdminProductAttributeTermService;
87
+ /**
88
+ * Access to product brands REST API endpoints
89
+ */
90
+ get productBrands(): AdminProductBrandService;
91
+ /**
92
+ * Access to product reviews REST API endpoints
93
+ */
94
+ get productReviews(): AdminProductReviewService;
95
+ /**
96
+ * Access to refunds REST API endpoints
97
+ */
98
+ get refunds(): AdminRefundService;
99
+ /**
100
+ * Access to taxes REST API endpoints
101
+ */
102
+ get taxes(): AdminTaxService;
103
+ /**
104
+ * Access to tax classes REST API endpoints
105
+ */
106
+ get taxClasses(): AdminTaxClassService;
107
+ /**
108
+ * Access to webhooks REST API endpoints
109
+ */
110
+ get webhooks(): AdminWebhookService;
111
+ /**
112
+ * Access to settings REST API endpoints
113
+ */
114
+ get settings(): AdminSettingService;
115
+ /**
116
+ * Access to reports REST API endpoints
117
+ */
118
+ get reports(): AdminReportService;
119
+ /**
120
+ * Access to shipping zones REST API endpoints
121
+ */
122
+ get shippingZones(): AdminShippingZoneService;
123
+ /**
124
+ * Access to payment gateways REST API endpoints
125
+ */
126
+ get paymentGateways(): AdminPaymentGatewayService;
127
+ /**
128
+ * Access to shipping methods REST API endpoints
129
+ */
130
+ get shippingMethods(): AdminShippingMethodService;
131
+ /**
132
+ * Access to system status REST API endpoints
133
+ */
134
+ get systemStatus(): AdminSystemStatusService;
135
+ /**
136
+ * Access to data REST API endpoints (countries, currencies, continents)
137
+ */
138
+ get data(): AdminDataService;
139
+ }
140
+ //# sourceMappingURL=admin.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/admin.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAA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AED;;OAEG;IACH,IAAI,cAAc,IAAI,gCAAgC,CASrD;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,wBAAwB,CAS5C;IAED;;OAEG;IACH,IAAI,cAAc,IAAI,yBAAyB,CAS9C;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,kBAAkB,CAShC;IAED;;OAEG;IACH,IAAI,KAAK,IAAI,eAAe,CAK3B;IAED;;OAEG;IACH,IAAI,UAAU,IAAI,oBAAoB,CASrC;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,mBAAmB,CASlC;IAED;;OAEG;IACH,IAAI,QAAQ,IAAI,mBAAmB,CASlC;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,kBAAkB,CAShC;IAED;;OAEG;IACH,IAAI,aAAa,IAAI,wBAAwB,CAS5C;IAED;;OAEG;IACH,IAAI,eAAe,IAAI,0BAA0B,CAShD;IAED;;OAEG;IACH,IAAI,eAAe,IAAI,0BAA0B,CAShD;IAED;;OAEG;IACH,IAAI,YAAY,IAAI,wBAAwB,CAS3C;IAED;;OAEG;IACH,IAAI,IAAI,IAAI,gBAAgB,CAK3B;CACF"}
@@ -0,0 +1,228 @@
1
+ import { BaseService } from './base.service.js';
2
+ import { AdminProductService } from './admin/product.service.js';
3
+ import { AdminOrderService } from './admin/order.service.js';
4
+ import { AdminCustomerService } from './admin/customer.service.js';
5
+ import { AdminCouponService } from './admin/coupon.service.js';
6
+ import { AdminProductCategoryService } from './admin/product-category.service.js';
7
+ import { AdminProductTagService } from './admin/product-tag.service.js';
8
+ import { AdminShippingClassService } from './admin/shipping-class.service.js';
9
+ import { AdminProductAttributeService } from './admin/product-attribute.service.js';
10
+ import { AdminProductAttributeTermService } from './admin/product-attribute-term.service.js';
11
+ import { AdminProductBrandService } from './admin/product-brand.service.js';
12
+ import { AdminProductReviewService } from './admin/product-review.service.js';
13
+ import { AdminRefundService } from './admin/refund.service.js';
14
+ import { AdminTaxService, AdminTaxClassService } from './admin/tax.service.js';
15
+ import { AdminWebhookService } from './admin/webhook.service.js';
16
+ import { AdminSettingService } from './admin/setting.service.js';
17
+ import { AdminReportService } from './admin/report.service.js';
18
+ import { AdminShippingZoneService } from './admin/shipping-zone.service.js';
19
+ import { AdminPaymentGatewayService } from './admin/payment-gateway.service.js';
20
+ import { AdminShippingMethodService } from './admin/shipping-method.service.js';
21
+ import { AdminSystemStatusService } from './admin/system-status.service.js';
22
+ import { AdminDataService } from './admin/data.service.js';
23
+ /**
24
+ * Aggregator service for all WooCommerce REST API services
25
+ *
26
+ * Provides access to all REST API endpoints through organized service instances
27
+ */
28
+ export class AdminService extends BaseService {
29
+ /**
30
+ * Access to products REST API endpoints
31
+ */
32
+ get products() {
33
+ if (!this._products) {
34
+ this._products = new AdminProductService(this.state, this.config, this.events);
35
+ }
36
+ return this._products;
37
+ }
38
+ /**
39
+ * Access to orders REST API endpoints
40
+ */
41
+ get orders() {
42
+ if (!this._orders) {
43
+ this._orders = new AdminOrderService(this.state, this.config, this.events);
44
+ }
45
+ return this._orders;
46
+ }
47
+ /**
48
+ * Access to customers REST API endpoints
49
+ */
50
+ get customers() {
51
+ if (!this._customers) {
52
+ this._customers = new AdminCustomerService(this.state, this.config, this.events);
53
+ }
54
+ return this._customers;
55
+ }
56
+ /**
57
+ * Access to coupons REST API endpoints
58
+ */
59
+ get coupons() {
60
+ if (!this._coupons) {
61
+ this._coupons = new AdminCouponService(this.state, this.config, this.events);
62
+ }
63
+ return this._coupons;
64
+ }
65
+ /**
66
+ * Access to product categories REST API endpoints
67
+ */
68
+ get productCategories() {
69
+ if (!this._productCategories) {
70
+ this._productCategories = new AdminProductCategoryService(this.state, this.config, this.events);
71
+ }
72
+ return this._productCategories;
73
+ }
74
+ /**
75
+ * Access to product tags REST API endpoints
76
+ */
77
+ get productTags() {
78
+ if (!this._productTags) {
79
+ this._productTags = new AdminProductTagService(this.state, this.config, this.events);
80
+ }
81
+ return this._productTags;
82
+ }
83
+ /**
84
+ * Access to shipping classes REST API endpoints
85
+ */
86
+ get shippingClasses() {
87
+ if (!this._shippingClasses) {
88
+ this._shippingClasses = new AdminShippingClassService(this.state, this.config, this.events);
89
+ }
90
+ return this._shippingClasses;
91
+ }
92
+ /**
93
+ * Access to product attributes REST API endpoints
94
+ */
95
+ get productAttributes() {
96
+ if (!this._productAttributes) {
97
+ this._productAttributes = new AdminProductAttributeService(this.state, this.config, this.events);
98
+ }
99
+ return this._productAttributes;
100
+ }
101
+ /**
102
+ * Access to attribute terms REST API endpoints
103
+ */
104
+ get attributeTerms() {
105
+ if (!this._attributeTerms) {
106
+ this._attributeTerms = new AdminProductAttributeTermService(this.state, this.config, this.events);
107
+ }
108
+ return this._attributeTerms;
109
+ }
110
+ /**
111
+ * Access to product brands REST API endpoints
112
+ */
113
+ get productBrands() {
114
+ if (!this._productBrands) {
115
+ this._productBrands = new AdminProductBrandService(this.state, this.config, this.events);
116
+ }
117
+ return this._productBrands;
118
+ }
119
+ /**
120
+ * Access to product reviews REST API endpoints
121
+ */
122
+ get productReviews() {
123
+ if (!this._productReviews) {
124
+ this._productReviews = new AdminProductReviewService(this.state, this.config, this.events);
125
+ }
126
+ return this._productReviews;
127
+ }
128
+ /**
129
+ * Access to refunds REST API endpoints
130
+ */
131
+ get refunds() {
132
+ if (!this._refunds) {
133
+ this._refunds = new AdminRefundService(this.state, this.config, this.events);
134
+ }
135
+ return this._refunds;
136
+ }
137
+ /**
138
+ * Access to taxes REST API endpoints
139
+ */
140
+ get taxes() {
141
+ if (!this._taxes) {
142
+ this._taxes = new AdminTaxService(this.state, this.config, this.events);
143
+ }
144
+ return this._taxes;
145
+ }
146
+ /**
147
+ * Access to tax classes REST API endpoints
148
+ */
149
+ get taxClasses() {
150
+ if (!this._taxClasses) {
151
+ this._taxClasses = new AdminTaxClassService(this.state, this.config, this.events);
152
+ }
153
+ return this._taxClasses;
154
+ }
155
+ /**
156
+ * Access to webhooks REST API endpoints
157
+ */
158
+ get webhooks() {
159
+ if (!this._webhooks) {
160
+ this._webhooks = new AdminWebhookService(this.state, this.config, this.events);
161
+ }
162
+ return this._webhooks;
163
+ }
164
+ /**
165
+ * Access to settings REST API endpoints
166
+ */
167
+ get settings() {
168
+ if (!this._settings) {
169
+ this._settings = new AdminSettingService(this.state, this.config, this.events);
170
+ }
171
+ return this._settings;
172
+ }
173
+ /**
174
+ * Access to reports REST API endpoints
175
+ */
176
+ get reports() {
177
+ if (!this._reports) {
178
+ this._reports = new AdminReportService(this.state, this.config, this.events);
179
+ }
180
+ return this._reports;
181
+ }
182
+ /**
183
+ * Access to shipping zones REST API endpoints
184
+ */
185
+ get shippingZones() {
186
+ if (!this._shippingZones) {
187
+ this._shippingZones = new AdminShippingZoneService(this.state, this.config, this.events);
188
+ }
189
+ return this._shippingZones;
190
+ }
191
+ /**
192
+ * Access to payment gateways REST API endpoints
193
+ */
194
+ get paymentGateways() {
195
+ if (!this._paymentGateways) {
196
+ this._paymentGateways = new AdminPaymentGatewayService(this.state, this.config, this.events);
197
+ }
198
+ return this._paymentGateways;
199
+ }
200
+ /**
201
+ * Access to shipping methods REST API endpoints
202
+ */
203
+ get shippingMethods() {
204
+ if (!this._shippingMethods) {
205
+ this._shippingMethods = new AdminShippingMethodService(this.state, this.config, this.events);
206
+ }
207
+ return this._shippingMethods;
208
+ }
209
+ /**
210
+ * Access to system status REST API endpoints
211
+ */
212
+ get systemStatus() {
213
+ if (!this._systemStatus) {
214
+ this._systemStatus = new AdminSystemStatusService(this.state, this.config, this.events);
215
+ }
216
+ return this._systemStatus;
217
+ }
218
+ /**
219
+ * Access to data REST API endpoints (countries, currencies, continents)
220
+ */
221
+ get data() {
222
+ if (!this._data) {
223
+ this._data = new AdminDataService(this.state, this.config, this.events);
224
+ }
225
+ return this._data;
226
+ }
227
+ }
228
+ //# sourceMappingURL=admin.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.service.js","sourceRoot":"","sources":["../../../src/lib/services/admin.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,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AI,CAAC,MAAM,CACZ,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,IAAI,eAAe;QACjB,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC3B,IAAI,CAAC,gBAAgB,GAAG,IAAI,0BAA0B,CACpD,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,MAAM,CACZ,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,IAAI,YAAY;QACd,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,CAAC;YACxB,IAAI,CAAC,aAAa,GAAG,IAAI,wBAAwB,CAC/C,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,MAAM,CACZ,CAAC;QACJ,CAAC;QACD,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,IAAI,IAAI;QACN,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;YAChB,IAAI,CAAC,KAAK,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1E,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF"}
@@ -0,0 +1,5 @@
1
+ import { AxiosInstance, AxiosRequestConfig } from 'axios';
2
+ export declare function createHttpClient(config: AxiosRequestConfig): AxiosInstance;
3
+ export declare function getHttpClient(): AxiosInstance;
4
+ export declare const httpClient: AxiosInstance;
5
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/lib/services/api.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAIjE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,kBAAkB,GAAG,aAAa,CAI1E;AAED,wBAAgB,aAAa,IAAI,aAAa,CAO7C;AAED,eAAO,MAAM,UAAU,EAAE,aAMvB,CAAC"}
@@ -0,0 +1,22 @@
1
+ import axios from 'axios';
2
+ let _http = null;
3
+ export function createHttpClient(config) {
4
+ if (_http)
5
+ return _http; // idempotent
6
+ _http = axios.create(config);
7
+ return _http;
8
+ }
9
+ export function getHttpClient() {
10
+ if (!_http) {
11
+ throw new Error('httpClient not initialized. Call createHttpClient(config) first.');
12
+ }
13
+ return _http;
14
+ }
15
+ export const httpClient = new Proxy({}, {
16
+ get(_t, prop) {
17
+ const client = getHttpClient();
18
+ // Forward property access; TypeScript doesn't allow generic index on AxiosInstance
19
+ return client[prop];
20
+ },
21
+ });
22
+ //# sourceMappingURL=api.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.js","sourceRoot":"","sources":["../../../src/lib/services/api.ts"],"names":[],"mappings":"AAAA,OAAO,KAA4C,MAAM,OAAO,CAAC;AAEjE,IAAI,KAAK,GAAyB,IAAI,CAAC;AAEvC,MAAM,UAAU,gBAAgB,CAAC,MAA0B;IACzD,IAAI,KAAK;QAAE,OAAO,KAAK,CAAC,CAAC,aAAa;IACtC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC7B,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,aAAa;IAC3B,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,MAAM,IAAI,KAAK,CACb,kEAAkE,CACnE,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,CAAC,MAAM,UAAU,GAAkB,IAAI,KAAK,CAAC,EAAmB,EAAE;IACtE,GAAG,CAAC,EAAE,EAAE,IAAqB;QAC3B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;QAC/B,mFAAmF;QACnF,OAAQ,MAAsD,CAAC,IAAI,CAAC,CAAC;IACvE,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { AxiosRequestConfig } from 'axios';
2
+ import { BaseService } from '../base.service.js';
3
+ import { ApiResult } from '../../types/api.js';
4
+ import { AuthTokenRequest, AuthTokenResponse, AuthRefreshRequest, AuthRevokeRequest, AuthRevokeResponse, AuthOneTimeTokenRequest, AuthOneTimeTokenResponse, AuthValidateResponse, AuthStatusResponse } from '../../types/index.js';
5
+ export declare class AuthService extends BaseService {
6
+ private readonly endpoint;
7
+ getAutoLoginUrl(ott: string, redirect: string, trackingParams?: Record<string, string | number | boolean>): Promise<string>;
8
+ token(body: AuthTokenRequest, options?: AxiosRequestConfig): Promise<ApiResult<AuthTokenResponse>>;
9
+ refreshToken(body: AuthRefreshRequest, options?: AxiosRequestConfig): Promise<ApiResult<AuthTokenResponse>>;
10
+ revokeToken(body?: AuthRevokeRequest, options?: AxiosRequestConfig): Promise<ApiResult<AuthRevokeResponse>>;
11
+ oneTimeToken(body: AuthOneTimeTokenRequest, options?: AxiosRequestConfig): Promise<ApiResult<AuthOneTimeTokenResponse>>;
12
+ validate(options?: AxiosRequestConfig): Promise<ApiResult<AuthValidateResponse>>;
13
+ status(options?: AxiosRequestConfig): Promise<ApiResult<AuthStatusResponse>>;
14
+ }
15
+ //# sourceMappingURL=auth.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/auth/auth.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,EACnB,MAAM,sBAAsB,CAAC;AAE9B,qBAAa,WAAY,SAAQ,WAAW;IAC1C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA6B;IAEhD,eAAe,CACnB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAYtD,KAAK,CACT,IAAI,EAAE,gBAAgB,EACtB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAgClC,YAAY,CAChB,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IA2BlC,WAAW,CACf,IAAI,CAAC,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;IA0BnC,YAAY,CAChB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC;IAWzC,QAAQ,CACZ,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;IAQrC,MAAM,CACV,OAAO,CAAC,EAAE,kBAAkB,GAC3B,OAAO,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAAC;CAO1C"}
@@ -0,0 +1,100 @@
1
+ import { __awaiter } from "tslib";
2
+ import { doGet, doPost } from '../../utilities/axios.utility.js';
3
+ import { BaseService } from '../base.service.js';
4
+ import * as qs from 'qs';
5
+ export class AuthService extends BaseService {
6
+ constructor() {
7
+ super(...arguments);
8
+ this.endpoint = 'wp-json/typewoo/v1/auth';
9
+ }
10
+ getAutoLoginUrl(ott, redirect, trackingParams) {
11
+ return __awaiter(this, void 0, void 0, function* () {
12
+ const params = qs.stringify(Object.assign({ token: ott, redirect: redirect }, (trackingParams !== null && trackingParams !== void 0 ? trackingParams : {})));
13
+ const url = `${this.config.baseUrl}/${this.endpoint}/autologin`;
14
+ return `${url}?${params}`;
15
+ });
16
+ }
17
+ token(body, options) {
18
+ return __awaiter(this, void 0, void 0, function* () {
19
+ var _a, _b, _c;
20
+ const url = `/${this.endpoint}/token`;
21
+ if ((_a = this.config.auth) === null || _a === void 0 ? void 0 : _a.revokeTokenBeforeLogin) {
22
+ yield this.revokeToken();
23
+ }
24
+ this.events.emit('auth:login:start');
25
+ const { data, error } = yield doPost(url, body, options);
26
+ this.events.emitIf(!!data, 'auth:login:success');
27
+ this.events.emitIf(!!error, 'auth:login:error', error);
28
+ if (!error && data) {
29
+ if ((_b = this.config.auth) === null || _b === void 0 ? void 0 : _b.setToken) {
30
+ this.state.authenticated = true;
31
+ this.events.emit('auth:changed', true);
32
+ yield this.config.auth.setToken(data.token);
33
+ }
34
+ if ((_c = this.config.auth) === null || _c === void 0 ? void 0 : _c.setRefreshToken) {
35
+ yield this.config.auth.setRefreshToken(data.refresh_token);
36
+ }
37
+ }
38
+ return { data: data, error };
39
+ });
40
+ }
41
+ refreshToken(body, options) {
42
+ return __awaiter(this, void 0, void 0, function* () {
43
+ var _a, _b;
44
+ const url = `/${this.endpoint}/refresh`;
45
+ this.events.emit('auth:token:refresh:start');
46
+ const { data, error } = yield doPost(url, body, options);
47
+ this.events.emitIf(!!data, 'auth:token:refresh:success');
48
+ this.events.emitIf(!!error, 'auth:token:refresh:error', error);
49
+ if (!error && data) {
50
+ if ((_a = this.config.auth) === null || _a === void 0 ? void 0 : _a.setToken) {
51
+ yield this.config.auth.setToken(data.token);
52
+ }
53
+ if ((_b = this.config.auth) === null || _b === void 0 ? void 0 : _b.setRefreshToken) {
54
+ yield this.config.auth.setRefreshToken(data.refresh_token);
55
+ }
56
+ }
57
+ return { data: data, error };
58
+ });
59
+ }
60
+ revokeToken(body, options) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ var _a, _b;
63
+ const url = `/${this.endpoint}/revoke`;
64
+ this.events.emit('auth:token:revoke:start');
65
+ const { data, error } = yield doPost(url, body, options);
66
+ this.events.emitIf(!!data, 'auth:token:revoke:success');
67
+ this.events.emitIf(!!error, 'auth:token:revoke:error', error);
68
+ if (!error) {
69
+ if ((_a = this.config.auth) === null || _a === void 0 ? void 0 : _a.clearToken) {
70
+ yield ((_b = this.config.auth) === null || _b === void 0 ? void 0 : _b.clearToken());
71
+ }
72
+ this.state.authenticated = false;
73
+ this.events.emit('auth:changed', false);
74
+ }
75
+ return { data: data, error };
76
+ });
77
+ }
78
+ oneTimeToken(body, options) {
79
+ return __awaiter(this, void 0, void 0, function* () {
80
+ const url = `/${this.endpoint}/one-time-token`;
81
+ const { data, error } = yield doPost(url, body, options);
82
+ return { data: data, error };
83
+ });
84
+ }
85
+ validate(options) {
86
+ return __awaiter(this, void 0, void 0, function* () {
87
+ const url = `/${this.endpoint}/validate`;
88
+ const { data, error } = yield doGet(url, options);
89
+ return { data: data, error };
90
+ });
91
+ }
92
+ status(options) {
93
+ return __awaiter(this, void 0, void 0, function* () {
94
+ const url = `/${this.endpoint}/status`;
95
+ const { data, error } = yield doGet(url, options);
96
+ return { data: data, error };
97
+ });
98
+ }
99
+ }
100
+ //# sourceMappingURL=auth.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth.service.js","sourceRoot":"","sources":["../../../../src/lib/services/auth/auth.service.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AAczB,MAAM,OAAO,WAAY,SAAQ,WAAW;IAA5C;;QACmB,aAAQ,GAAG,yBAAyB,CAAC;IAgJxD,CAAC;IA9IO,eAAe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E,KAAK,EAAE,CAAC;QAC/B,CAAC;KAAA;IAEK,QAAQ,CACZ,OAA4B;;YAE5B,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,QAAQ,WAAW,CAAC;YAEzC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,KAAK,CAAuB,GAAG,EAAE,OAAO,CAAC,CAAC;YAExE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC/B,CAAC;KAAA;IAEK,MAAM,CACV,OAA4B;;YAE5B,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,QAAQ,SAAS,CAAC;YAEvC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,KAAK,CAAqB,GAAG,EAAE,OAAO,CAAC,CAAC;YAEtE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QAC/B,CAAC;KAAA;CACF"}
@@ -0,0 +1,13 @@
1
+ import { SdkState } from '../types/sdk.state.js';
2
+ import { SdkConfig } from '../configs/sdk.config.js';
3
+ import { EventBus } from '../bus/event.bus.js';
4
+ import { SdkEvent } from '../sdk.events.js';
5
+ export declare class BaseService {
6
+ protected NONCE_HEADER: string;
7
+ protected CART_TOKEN_HEADER: string;
8
+ protected readonly state: SdkState;
9
+ protected readonly config: SdkConfig;
10
+ protected readonly events: EventBus<SdkEvent>;
11
+ constructor(state: SdkState, config: SdkConfig, events: EventBus<SdkEvent>);
12
+ }
13
+ //# sourceMappingURL=base.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/base.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,qBAAa,WAAW;IACtB,SAAS,CAAC,YAAY,SAAW;IACjC,SAAS,CAAC,iBAAiB,SAAgB;IAE3C,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC;IACnC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IACrC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAC;gBAElC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC;CAK3E"}
@@ -0,0 +1,10 @@
1
+ export class BaseService {
2
+ constructor(state, config, events) {
3
+ this.NONCE_HEADER = 'nonce';
4
+ this.CART_TOKEN_HEADER = 'cart-token';
5
+ this.state = state;
6
+ this.events = events;
7
+ this.config = config;
8
+ }
9
+ }
10
+ //# sourceMappingURL=base.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.service.js","sourceRoot":"","sources":["../../../src/lib/services/base.service.ts"],"names":[],"mappings":"AAKA,MAAM,OAAO,WAAW;IAQtB,YAAY,KAAe,EAAE,MAAiB,EAAE,MAA0B;QAPhE,iBAAY,GAAG,OAAO,CAAC;QACvB,sBAAiB,GAAG,YAAY,CAAC;QAOzC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;CACF"}
@@ -0,0 +1,20 @@
1
+ import { BaseService } from '../base.service.js';
2
+ import { ApiResult } from '../../types/api.js';
3
+ import { BatchRequest, BatchResponse } from '../../types/index.js';
4
+ /**
5
+ * Batch API
6
+ *
7
+ * The batch API allows you to make multiple API requests in a single HTTP request.
8
+ * This can be useful for performance optimization when you need to make several API calls.
9
+ */
10
+ export declare class BatchService extends BaseService {
11
+ private readonly endpoint;
12
+ /**
13
+ * Execute Batch Request
14
+ * Process multiple API requests in a single HTTP request
15
+ * @param params - Batch request parameters containing individual requests
16
+ * @returns {BatchResponse} - Batch response containing individual results
17
+ */
18
+ execute(params: BatchRequest): Promise<ApiResult<BatchResponse>>;
19
+ }
20
+ //# sourceMappingURL=batch.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/store/batch.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAGjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEnE;;;;;GAKG;AACH,qBAAa,YAAa,SAAQ,WAAW;IAC3C,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAA+B;IAExD;;;;;OAKG;IACG,OAAO,CAAC,MAAM,EAAE,YAAY,GAAG,OAAO,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;CAoBvE"}
@@ -0,0 +1,35 @@
1
+ import { __awaiter } from "tslib";
2
+ import { BaseService } from '../base.service.js';
3
+ import { doPost } from '../../utilities/axios.utility.js';
4
+ /**
5
+ * Batch API
6
+ *
7
+ * The batch API allows you to make multiple API requests in a single HTTP request.
8
+ * This can be useful for performance optimization when you need to make several API calls.
9
+ */
10
+ export class BatchService extends BaseService {
11
+ constructor() {
12
+ super(...arguments);
13
+ this.endpoint = 'wp-json/wc/store/v1/batch';
14
+ }
15
+ /**
16
+ * Execute Batch Request
17
+ * Process multiple API requests in a single HTTP request
18
+ * @param params - Batch request parameters containing individual requests
19
+ * @returns {BatchResponse} - Batch response containing individual results
20
+ */
21
+ execute(params) {
22
+ return __awaiter(this, void 0, void 0, function* () {
23
+ const url = `/${this.endpoint}`;
24
+ const options = {};
25
+ this.events.emit('batch:loading', true);
26
+ this.events.emit('batch:request:start');
27
+ const { data, error } = yield doPost(url, params, options);
28
+ this.events.emitIf(!!data, 'batch:request:success');
29
+ this.events.emitIf(!!error, 'batch:request:error', { error });
30
+ this.events.emit('batch:loading', false);
31
+ return { data, error };
32
+ });
33
+ }
34
+ }
35
+ //# sourceMappingURL=batch.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"batch.service.js","sourceRoot":"","sources":["../../../../src/lib/services/store/batch.service.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAI1D;;;;;GAKG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAA7C;;QACmB,aAAQ,GAAG,2BAA2B,CAAC;IA4B1D,CAAC;IA1BC;;;;;OAKG;IACG,OAAO,CAAC,MAAoB;;YAChC,MAAM,GAAG,GAAG,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAEhC,MAAM,OAAO,GAAuB,EAAE,CAAC;YAEvC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,IAAI,CAAC,CAAC;YACxC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;YAExC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,MAAM,MAAM,CAClC,GAAG,EACH,MAAM,EACN,OAAO,CACR,CAAC;YAEF,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,uBAAuB,CAAC,CAAC;YACpD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,EAAE,qBAAqB,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;YAC9D,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;YAEzC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;QACzB,CAAC;KAAA;CACF"}