@medusajs/types 1.12.0-snapshot-20240607093839 → 1.12.0-snapshot-20240703074611

Sign up to get free protection for your applications and to get access to all the features.
Files changed (458) hide show
  1. package/dist/api-key/service.d.ts +24 -24
  2. package/dist/api-key/service.d.ts.map +1 -1
  3. package/dist/auth/service.d.ts +18 -18
  4. package/dist/auth/service.d.ts.map +1 -1
  5. package/dist/bundles.d.ts +2 -1
  6. package/dist/bundles.d.ts.map +1 -1
  7. package/dist/bundles.js +3 -2
  8. package/dist/bundles.js.map +1 -1
  9. package/dist/cart/mutations.d.ts +8 -0
  10. package/dist/cart/mutations.d.ts.map +1 -1
  11. package/dist/cart/mutations.js.map +1 -1
  12. package/dist/cart/service.d.ts +30 -52
  13. package/dist/cart/service.d.ts.map +1 -1
  14. package/dist/common/common.d.ts +6 -1
  15. package/dist/common/common.d.ts.map +1 -1
  16. package/dist/currency/service.d.ts +9 -9
  17. package/dist/currency/service.d.ts.map +1 -1
  18. package/dist/customer/mutations.d.ts +27 -26
  19. package/dist/customer/mutations.d.ts.map +1 -1
  20. package/dist/customer/service.d.ts +40 -43
  21. package/dist/customer/service.d.ts.map +1 -1
  22. package/dist/dal/repository-service.d.ts +2 -2
  23. package/dist/dal/repository-service.d.ts.map +1 -1
  24. package/dist/dml/index.d.ts +161 -0
  25. package/dist/dml/index.d.ts.map +1 -0
  26. package/dist/dml/index.js +5 -0
  27. package/dist/dml/index.js.map +1 -0
  28. package/dist/event-bus/common.d.ts +12 -20
  29. package/dist/event-bus/common.d.ts.map +1 -1
  30. package/dist/event-bus/event-bus-module.d.ts +4 -4
  31. package/dist/event-bus/event-bus-module.d.ts.map +1 -1
  32. package/dist/event-bus/event-bus.d.ts +2 -4
  33. package/dist/event-bus/event-bus.d.ts.map +1 -1
  34. package/dist/file/service.d.ts +12 -12
  35. package/dist/file/service.d.ts.map +1 -1
  36. package/dist/fulfillment/mutations/service-zone.d.ts +1 -1
  37. package/dist/fulfillment/mutations/service-zone.d.ts.map +1 -1
  38. package/dist/fulfillment/service.d.ts +27 -27
  39. package/dist/fulfillment/service.d.ts.map +1 -1
  40. package/dist/http/currency/admin/entities.d.ts +14 -0
  41. package/dist/http/currency/admin/entities.d.ts.map +1 -0
  42. package/dist/http/currency/admin/entities.js +3 -0
  43. package/dist/http/currency/admin/entities.js.map +1 -0
  44. package/dist/http/currency/admin/index.d.ts +2 -0
  45. package/dist/http/currency/admin/index.d.ts.map +1 -0
  46. package/dist/{inventory/bundle.js → http/currency/admin/index.js} +2 -3
  47. package/dist/http/currency/admin/index.js.map +1 -0
  48. package/dist/http/currency/index.d.ts +2 -0
  49. package/dist/http/currency/index.d.ts.map +1 -0
  50. package/dist/{region__legacy → http/currency}/index.js +1 -1
  51. package/dist/http/currency/index.js.map +1 -0
  52. package/dist/http/fulfillment-provider/admin/entities.d.ts +1 -5
  53. package/dist/http/fulfillment-provider/admin/entities.d.ts.map +1 -1
  54. package/dist/http/fulfillment-set/admin/entities.d.ts +3 -1
  55. package/dist/http/fulfillment-set/admin/entities.d.ts.map +1 -1
  56. package/dist/http/index.d.ts +5 -0
  57. package/dist/http/index.d.ts.map +1 -1
  58. package/dist/http/index.js +5 -0
  59. package/dist/http/index.js.map +1 -1
  60. package/dist/http/inventory/{inventory.d.ts → admin/entities.d.ts} +2 -10
  61. package/dist/http/inventory/admin/entities.d.ts.map +1 -0
  62. package/dist/http/inventory/admin/entities.js +3 -0
  63. package/dist/http/inventory/admin/entities.js.map +1 -0
  64. package/dist/http/inventory/admin/index.d.ts +5 -0
  65. package/dist/http/inventory/admin/index.d.ts.map +1 -0
  66. package/dist/http/inventory/admin/index.js +21 -0
  67. package/dist/http/inventory/admin/index.js.map +1 -0
  68. package/dist/http/inventory/admin/payloads.d.ts +19 -0
  69. package/dist/http/inventory/admin/payloads.d.ts.map +1 -0
  70. package/dist/http/inventory/admin/payloads.js +3 -0
  71. package/dist/http/inventory/admin/payloads.js.map +1 -0
  72. package/dist/http/inventory/admin/queries.d.ts +18 -0
  73. package/dist/http/inventory/admin/queries.d.ts.map +1 -0
  74. package/dist/http/{product/store.js → inventory/admin/queries.js} +1 -1
  75. package/dist/http/inventory/admin/queries.js.map +1 -0
  76. package/dist/http/inventory/admin/responses.d.ts +10 -0
  77. package/dist/http/inventory/admin/responses.d.ts.map +1 -0
  78. package/dist/http/inventory/admin/responses.js +3 -0
  79. package/dist/http/inventory/admin/responses.js.map +1 -0
  80. package/dist/http/inventory/index.d.ts +1 -2
  81. package/dist/http/inventory/index.d.ts.map +1 -1
  82. package/dist/http/inventory/index.js +1 -2
  83. package/dist/http/inventory/index.js.map +1 -1
  84. package/dist/http/inventory-level/admin/entities.d.ts +11 -0
  85. package/dist/http/inventory-level/admin/entities.d.ts.map +1 -0
  86. package/dist/http/inventory-level/admin/entities.js +3 -0
  87. package/dist/http/inventory-level/admin/entities.js.map +1 -0
  88. package/dist/http/inventory-level/admin/index.d.ts +5 -0
  89. package/dist/http/inventory-level/admin/index.d.ts.map +1 -0
  90. package/dist/http/inventory-level/admin/index.js +21 -0
  91. package/dist/http/inventory-level/admin/index.js.map +1 -0
  92. package/dist/http/inventory-level/admin/payloads.d.ts +15 -0
  93. package/dist/http/inventory-level/admin/payloads.d.ts.map +1 -0
  94. package/dist/http/inventory-level/admin/payloads.js +3 -0
  95. package/dist/http/inventory-level/admin/payloads.js.map +1 -0
  96. package/dist/http/inventory-level/admin/queries.d.ts +5 -0
  97. package/dist/http/inventory-level/admin/queries.d.ts.map +1 -0
  98. package/dist/http/{product/admin.js → inventory-level/admin/queries.js} +1 -1
  99. package/dist/http/inventory-level/admin/queries.js.map +1 -0
  100. package/dist/http/inventory-level/admin/responses.d.ts +9 -0
  101. package/dist/http/inventory-level/admin/responses.d.ts.map +1 -0
  102. package/dist/http/{inventory/inventory.js → inventory-level/admin/responses.js} +1 -1
  103. package/dist/http/inventory-level/admin/responses.js.map +1 -0
  104. package/dist/http/inventory-level/index.d.ts +2 -0
  105. package/dist/http/inventory-level/index.d.ts.map +1 -0
  106. package/dist/http/inventory-level/index.js +18 -0
  107. package/dist/http/inventory-level/index.js.map +1 -0
  108. package/dist/http/order/common.d.ts +2 -0
  109. package/dist/http/order/common.d.ts.map +1 -1
  110. package/dist/http/price-list/admin/entities.d.ts +21 -0
  111. package/dist/http/price-list/admin/entities.d.ts.map +1 -0
  112. package/dist/http/price-list/admin/entities.js +3 -0
  113. package/dist/http/price-list/admin/entities.js.map +1 -0
  114. package/dist/http/price-list/admin/index.d.ts +5 -0
  115. package/dist/http/price-list/admin/index.d.ts.map +1 -0
  116. package/dist/http/price-list/admin/index.js +21 -0
  117. package/dist/http/price-list/admin/index.js.map +1 -0
  118. package/dist/http/price-list/admin/payloads.d.ts +46 -0
  119. package/dist/http/price-list/admin/payloads.d.ts.map +1 -0
  120. package/dist/http/price-list/admin/payloads.js +3 -0
  121. package/dist/http/price-list/admin/payloads.js.map +1 -0
  122. package/dist/http/price-list/admin/queries.d.ts +14 -0
  123. package/dist/http/price-list/admin/queries.d.ts.map +1 -0
  124. package/dist/http/{product-category/store.js → price-list/admin/queries.js} +1 -1
  125. package/dist/http/price-list/admin/queries.js.map +1 -0
  126. package/dist/http/price-list/admin/responses.d.ts +12 -0
  127. package/dist/http/price-list/admin/responses.d.ts.map +1 -0
  128. package/dist/http/price-list/admin/responses.js +3 -0
  129. package/dist/http/price-list/admin/responses.js.map +1 -0
  130. package/dist/http/price-list/index.d.ts +2 -0
  131. package/dist/http/price-list/index.d.ts.map +1 -0
  132. package/dist/http/price-list/index.js +18 -0
  133. package/dist/http/price-list/index.js.map +1 -0
  134. package/dist/http/pricing/admin/{entitites.d.ts → entities.d.ts} +1 -1
  135. package/dist/http/pricing/admin/entities.d.ts.map +1 -0
  136. package/dist/http/pricing/admin/entities.js +3 -0
  137. package/dist/http/pricing/admin/entities.js.map +1 -0
  138. package/dist/http/pricing/admin/index.d.ts +1 -1
  139. package/dist/http/pricing/admin/index.d.ts.map +1 -1
  140. package/dist/http/pricing/admin/index.js +1 -1
  141. package/dist/http/pricing/admin/index.js.map +1 -1
  142. package/dist/http/product/admin/entitites.d.ts +26 -0
  143. package/dist/http/product/admin/entitites.d.ts.map +1 -0
  144. package/dist/http/product/admin/entitites.js.map +1 -0
  145. package/dist/http/product/admin/index.d.ts +5 -0
  146. package/dist/http/product/admin/index.d.ts.map +1 -0
  147. package/dist/http/product/admin/index.js +21 -0
  148. package/dist/http/product/admin/index.js.map +1 -0
  149. package/dist/http/product/admin/payloads.d.ts +152 -0
  150. package/dist/http/product/admin/payloads.d.ts.map +1 -0
  151. package/dist/http/product/admin/payloads.js +3 -0
  152. package/dist/http/product/admin/payloads.js.map +1 -0
  153. package/dist/http/product/admin/queries.d.ts +12 -0
  154. package/dist/http/product/admin/queries.d.ts.map +1 -0
  155. package/dist/http/product/admin/queries.js +3 -0
  156. package/dist/http/product/admin/queries.js.map +1 -0
  157. package/dist/http/product/admin/responses.d.ts +35 -0
  158. package/dist/http/product/admin/responses.d.ts.map +1 -0
  159. package/dist/http/product/admin/responses.js +3 -0
  160. package/dist/http/product/admin/responses.js.map +1 -0
  161. package/dist/http/product/common.d.ts +72 -106
  162. package/dist/http/product/common.d.ts.map +1 -1
  163. package/dist/http/product/store/entitites.d.ts +19 -0
  164. package/dist/http/product/store/entitites.d.ts.map +1 -0
  165. package/dist/http/product/store/entitites.js +3 -0
  166. package/dist/http/product/store/entitites.js.map +1 -0
  167. package/dist/http/product/store/index.d.ts +4 -0
  168. package/dist/http/product/store/index.d.ts.map +1 -0
  169. package/dist/http/product/store/index.js +20 -0
  170. package/dist/http/product/store/index.js.map +1 -0
  171. package/dist/http/product/store/queries.d.ts +13 -0
  172. package/dist/http/product/store/queries.d.ts.map +1 -0
  173. package/dist/http/product/store/queries.js +3 -0
  174. package/dist/http/product/store/queries.js.map +1 -0
  175. package/dist/http/product/store/responses.d.ts +9 -0
  176. package/dist/http/product/store/responses.d.ts.map +1 -0
  177. package/dist/http/product/store/responses.js +3 -0
  178. package/dist/http/product/store/responses.js.map +1 -0
  179. package/dist/http/product-category/admin/entities.d.ts +8 -0
  180. package/dist/http/product-category/admin/entities.d.ts.map +1 -0
  181. package/dist/http/product-category/admin/entities.js +3 -0
  182. package/dist/http/product-category/admin/entities.js.map +1 -0
  183. package/dist/http/product-category/admin/index.d.ts +5 -0
  184. package/dist/http/product-category/admin/index.d.ts.map +1 -0
  185. package/dist/http/product-category/admin/index.js +21 -0
  186. package/dist/http/product-category/admin/index.js.map +1 -0
  187. package/dist/http/product-category/admin/payloads.d.ts +25 -0
  188. package/dist/http/product-category/admin/payloads.d.ts.map +1 -0
  189. package/dist/http/product-category/admin/payloads.js +3 -0
  190. package/dist/http/product-category/admin/payloads.js.map +1 -0
  191. package/dist/http/product-category/admin/queries.d.ts +8 -0
  192. package/dist/http/product-category/admin/queries.d.ts.map +1 -0
  193. package/dist/http/product-category/{admin.js → admin/queries.js} +1 -1
  194. package/dist/http/product-category/admin/queries.js.map +1 -0
  195. package/dist/http/product-category/admin/responses.d.ts +12 -0
  196. package/dist/http/product-category/admin/responses.d.ts.map +1 -0
  197. package/dist/http/product-category/admin/responses.js +3 -0
  198. package/dist/http/product-category/admin/responses.js.map +1 -0
  199. package/dist/http/product-category/common.d.ts +31 -7
  200. package/dist/http/product-category/common.d.ts.map +1 -1
  201. package/dist/http/product-category/store/entities.d.ts +6 -0
  202. package/dist/http/product-category/store/entities.d.ts.map +1 -0
  203. package/dist/http/product-category/store/entities.js +3 -0
  204. package/dist/http/product-category/store/entities.js.map +1 -0
  205. package/dist/http/product-category/store/index.d.ts +4 -0
  206. package/dist/http/product-category/store/index.d.ts.map +1 -0
  207. package/dist/http/product-category/store/index.js +20 -0
  208. package/dist/http/product-category/store/index.js.map +1 -0
  209. package/dist/http/product-category/store/queries.d.ts +6 -0
  210. package/dist/http/product-category/store/queries.d.ts.map +1 -0
  211. package/dist/http/product-category/store/queries.js +3 -0
  212. package/dist/http/product-category/store/queries.js.map +1 -0
  213. package/dist/http/product-category/store/responses.d.ts +10 -0
  214. package/dist/http/product-category/store/responses.d.ts.map +1 -0
  215. package/dist/http/product-category/store/responses.js +3 -0
  216. package/dist/http/product-category/store/responses.js.map +1 -0
  217. package/dist/http/product-type/admin/entities.d.ts +4 -0
  218. package/dist/http/product-type/admin/entities.d.ts.map +1 -0
  219. package/dist/http/product-type/admin/entities.js +3 -0
  220. package/dist/http/product-type/admin/entities.js.map +1 -0
  221. package/dist/http/product-type/admin/index.d.ts +5 -0
  222. package/dist/http/product-type/admin/index.d.ts.map +1 -0
  223. package/dist/http/product-type/admin/index.js +21 -0
  224. package/dist/http/product-type/admin/index.js.map +1 -0
  225. package/dist/http/product-type/admin/payloads.d.ts +9 -0
  226. package/dist/http/product-type/admin/payloads.d.ts.map +1 -0
  227. package/dist/http/product-type/admin/payloads.js +3 -0
  228. package/dist/http/product-type/admin/payloads.js.map +1 -0
  229. package/dist/http/product-type/admin/queries.d.ts +13 -0
  230. package/dist/http/product-type/admin/queries.d.ts.map +1 -0
  231. package/dist/http/product-type/admin/queries.js +3 -0
  232. package/dist/http/product-type/admin/queries.js.map +1 -0
  233. package/dist/http/product-type/admin/responses.d.ts +12 -0
  234. package/dist/http/product-type/admin/responses.d.ts.map +1 -0
  235. package/dist/http/product-type/admin/responses.js +3 -0
  236. package/dist/http/product-type/admin/responses.js.map +1 -0
  237. package/dist/http/product-type/common.d.ts +9 -0
  238. package/dist/http/product-type/common.d.ts.map +1 -0
  239. package/dist/{inventory → http/product-type}/common.js.map +1 -1
  240. package/dist/http/product-type/index.d.ts +3 -0
  241. package/dist/http/product-type/index.d.ts.map +1 -0
  242. package/dist/http/product-type/index.js +19 -0
  243. package/dist/http/product-type/index.js.map +1 -0
  244. package/dist/http/product-type/store/entities.d.ts +4 -0
  245. package/dist/http/product-type/store/entities.d.ts.map +1 -0
  246. package/dist/http/product-type/store/entities.js +3 -0
  247. package/dist/http/product-type/store/entities.js.map +1 -0
  248. package/dist/http/product-type/store/index.d.ts +2 -0
  249. package/dist/http/product-type/store/index.d.ts.map +1 -0
  250. package/dist/http/product-type/store/index.js +18 -0
  251. package/dist/http/product-type/store/index.js.map +1 -0
  252. package/dist/http/promotion/admin/rule-attribute-options.d.ts +5 -0
  253. package/dist/http/promotion/admin/rule-attribute-options.d.ts.map +1 -1
  254. package/dist/http/sales-channel/admin/queries.d.ts +2 -4
  255. package/dist/http/sales-channel/admin/queries.d.ts.map +1 -1
  256. package/dist/http/shipping-option/admin/entities.d.ts +9 -1
  257. package/dist/http/shipping-option/admin/entities.d.ts.map +1 -1
  258. package/dist/http/shipping-option/admin/payloads.d.ts +8 -9
  259. package/dist/http/shipping-option/admin/payloads.d.ts.map +1 -1
  260. package/dist/http/stock-locations/admin/entities.d.ts +2 -1
  261. package/dist/http/stock-locations/admin/entities.d.ts.map +1 -1
  262. package/dist/http/store/admin/entities.d.ts +23 -0
  263. package/dist/http/store/admin/entities.d.ts.map +1 -0
  264. package/dist/http/store/admin/entities.js +3 -0
  265. package/dist/http/store/admin/entities.js.map +1 -0
  266. package/dist/http/store/admin/index.d.ts +5 -0
  267. package/dist/http/store/admin/index.d.ts.map +1 -0
  268. package/dist/http/store/admin/index.js +21 -0
  269. package/dist/http/store/admin/index.js.map +1 -0
  270. package/dist/http/store/admin/payloads.d.ts +14 -0
  271. package/dist/http/store/admin/payloads.d.ts.map +1 -0
  272. package/dist/http/store/admin/payloads.js +3 -0
  273. package/dist/http/store/admin/payloads.js.map +1 -0
  274. package/dist/http/store/admin/queries.d.ts +10 -0
  275. package/dist/http/store/admin/queries.d.ts.map +1 -0
  276. package/dist/http/store/admin/queries.js +3 -0
  277. package/dist/http/store/admin/queries.js.map +1 -0
  278. package/dist/http/store/admin/responses.d.ts +10 -0
  279. package/dist/http/store/admin/responses.d.ts.map +1 -0
  280. package/dist/http/store/admin/responses.js +3 -0
  281. package/dist/http/store/admin/responses.js.map +1 -0
  282. package/dist/http/store/index.d.ts +2 -0
  283. package/dist/http/store/index.d.ts.map +1 -0
  284. package/dist/http/store/index.js +18 -0
  285. package/dist/http/store/index.js.map +1 -0
  286. package/dist/index.d.ts +1 -1
  287. package/dist/index.d.ts.map +1 -1
  288. package/dist/index.js +1 -1
  289. package/dist/index.js.map +1 -1
  290. package/dist/inventory/common/reservation-item.d.ts +1 -1
  291. package/dist/inventory/index.d.ts +1 -2
  292. package/dist/inventory/index.d.ts.map +1 -1
  293. package/dist/inventory/index.js +1 -15
  294. package/dist/inventory/index.js.map +1 -1
  295. package/dist/inventory/mutations/reservation-item.d.ts +7 -7
  296. package/dist/inventory/mutations/reservation-item.d.ts.map +1 -1
  297. package/dist/inventory/service.d.ts +671 -640
  298. package/dist/inventory/service.d.ts.map +1 -1
  299. package/dist/joiner/index.d.ts +5 -2
  300. package/dist/joiner/index.d.ts.map +1 -1
  301. package/dist/modules-sdk/index.d.ts +12 -12
  302. package/dist/modules-sdk/index.d.ts.map +1 -1
  303. package/dist/modules-sdk/index.js +1 -1
  304. package/dist/modules-sdk/index.js.map +1 -1
  305. package/dist/modules-sdk/{internal-module-service.d.ts → medusa-internal-service.d.ts} +19 -18
  306. package/dist/modules-sdk/medusa-internal-service.d.ts.map +1 -0
  307. package/dist/{http/inventory/inventory-level.js → modules-sdk/medusa-internal-service.js} +1 -1
  308. package/dist/modules-sdk/medusa-internal-service.js.map +1 -0
  309. package/dist/notification/service.d.ts +15 -15
  310. package/dist/notification/service.d.ts.map +1 -1
  311. package/dist/order/common.d.ts +50 -1
  312. package/dist/order/common.d.ts.map +1 -1
  313. package/dist/order/mutations.d.ts +68 -17
  314. package/dist/order/mutations.d.ts.map +1 -1
  315. package/dist/order/service.d.ts +41 -30
  316. package/dist/order/service.d.ts.map +1 -1
  317. package/dist/pricing/common/index.d.ts +0 -2
  318. package/dist/pricing/common/index.d.ts.map +1 -1
  319. package/dist/pricing/common/index.js +0 -2
  320. package/dist/pricing/common/index.js.map +1 -1
  321. package/dist/pricing/common/money-amount.d.ts +2 -2
  322. package/dist/pricing/common/money-amount.d.ts.map +1 -1
  323. package/dist/pricing/common/price-list.d.ts +25 -125
  324. package/dist/pricing/common/price-list.d.ts.map +1 -1
  325. package/dist/pricing/common/price-rule.d.ts +8 -16
  326. package/dist/pricing/common/price-rule.d.ts.map +1 -1
  327. package/dist/pricing/common/price-set.d.ts +7 -56
  328. package/dist/pricing/common/price-set.d.ts.map +1 -1
  329. package/dist/pricing/service.d.ts +31 -290
  330. package/dist/pricing/service.d.ts.map +1 -1
  331. package/dist/pricing/workflows.d.ts +5 -5
  332. package/dist/pricing/workflows.d.ts.map +1 -1
  333. package/dist/product/common.d.ts +99 -79
  334. package/dist/product/common.d.ts.map +1 -1
  335. package/dist/product/service.d.ts +322 -203
  336. package/dist/product/service.d.ts.map +1 -1
  337. package/dist/promotion/common/application-method.d.ts +1 -1
  338. package/dist/promotion/common/application-method.d.ts.map +1 -1
  339. package/dist/promotion/mutations.d.ts +7 -7
  340. package/dist/promotion/mutations.d.ts.map +1 -1
  341. package/dist/promotion/service.d.ts +29 -29
  342. package/dist/promotion/service.d.ts.map +1 -1
  343. package/dist/region/common.d.ts.map +1 -1
  344. package/dist/region/mutations.d.ts +4 -3
  345. package/dist/region/mutations.d.ts.map +1 -1
  346. package/dist/region/service.d.ts +31 -31
  347. package/dist/region/service.d.ts.map +1 -1
  348. package/dist/sales-channel/mutations.d.ts +4 -3
  349. package/dist/sales-channel/mutations.d.ts.map +1 -1
  350. package/dist/sales-channel/service.d.ts +28 -28
  351. package/dist/sales-channel/service.d.ts.map +1 -1
  352. package/dist/shared-context.d.ts +2 -3
  353. package/dist/shared-context.d.ts.map +1 -1
  354. package/dist/stock-location/common.d.ts +12 -17
  355. package/dist/stock-location/common.d.ts.map +1 -1
  356. package/dist/stock-location/index.d.ts +0 -1
  357. package/dist/stock-location/index.d.ts.map +1 -1
  358. package/dist/stock-location/index.js +0 -1
  359. package/dist/stock-location/index.js.map +1 -1
  360. package/dist/stock-location/service.d.ts +193 -180
  361. package/dist/stock-location/service.d.ts.map +1 -1
  362. package/dist/store/common/store.d.ts +31 -5
  363. package/dist/store/common/store.d.ts.map +1 -1
  364. package/dist/store/mutations/store.d.ts +14 -40
  365. package/dist/store/mutations/store.d.ts.map +1 -1
  366. package/dist/store/service.d.ts +32 -37
  367. package/dist/store/service.d.ts.map +1 -1
  368. package/dist/tax/mutations.d.ts +7 -6
  369. package/dist/tax/mutations.d.ts.map +1 -1
  370. package/dist/tax/service.d.ts +35 -35
  371. package/dist/tax/service.d.ts.map +1 -1
  372. package/dist/user/service.d.ts +22 -22
  373. package/dist/user/service.d.ts.map +1 -1
  374. package/dist/workflow/fulfillment/service-zones.d.ts +1 -1
  375. package/dist/workflow/fulfillment/service-zones.d.ts.map +1 -1
  376. package/dist/workflow/order/create-fulfillment.d.ts +2 -2
  377. package/dist/workflow/order/create-fulfillment.d.ts.map +1 -1
  378. package/dist/workflow/order/create-return-order.d.ts +8 -7
  379. package/dist/workflow/order/create-return-order.d.ts.map +1 -1
  380. package/dist/workflow/order/create-shipment.d.ts +2 -1
  381. package/dist/workflow/order/create-shipment.d.ts.map +1 -1
  382. package/dist/workflow/order/index.d.ts +1 -0
  383. package/dist/workflow/order/index.d.ts.map +1 -1
  384. package/dist/workflow/order/index.js +1 -0
  385. package/dist/workflow/order/index.js.map +1 -1
  386. package/dist/workflow/order/receive-return.d.ts +17 -0
  387. package/dist/workflow/order/receive-return.d.ts.map +1 -0
  388. package/dist/workflow/order/receive-return.js +3 -0
  389. package/dist/workflow/order/receive-return.js.map +1 -0
  390. package/dist/workflow/price-list/create-price-list.d.ts +1 -2
  391. package/dist/workflow/price-list/create-price-list.d.ts.map +1 -1
  392. package/dist/workflow/product-category/index.d.ts +6 -6
  393. package/dist/workflow/product-category/index.d.ts.map +1 -1
  394. package/dist/workflow/reservation/create-reservations.d.ts +3 -3
  395. package/dist/workflow/reservation/create-reservations.d.ts.map +1 -1
  396. package/dist/workflow/reservation/update-reservations.d.ts +3 -3
  397. package/dist/workflow/reservation/update-reservations.d.ts.map +1 -1
  398. package/dist/workflows/products/mutations.d.ts +2 -2
  399. package/dist/workflows/products/mutations.d.ts.map +1 -1
  400. package/dist/workflows-sdk/service.d.ts +2 -2
  401. package/dist/workflows-sdk/service.d.ts.map +1 -1
  402. package/package.json +1 -2
  403. package/dist/http/inventory/inventory-level.d.ts +0 -20
  404. package/dist/http/inventory/inventory-level.d.ts.map +0 -1
  405. package/dist/http/inventory/inventory-level.js.map +0 -1
  406. package/dist/http/inventory/inventory.d.ts.map +0 -1
  407. package/dist/http/inventory/inventory.js.map +0 -1
  408. package/dist/http/pricing/admin/entitites.d.ts.map +0 -1
  409. package/dist/http/pricing/admin/entitites.js.map +0 -1
  410. package/dist/http/product/admin.d.ts +0 -99
  411. package/dist/http/product/admin.d.ts.map +0 -1
  412. package/dist/http/product/admin.js.map +0 -1
  413. package/dist/http/product/store.d.ts +0 -33
  414. package/dist/http/product/store.d.ts.map +0 -1
  415. package/dist/http/product/store.js.map +0 -1
  416. package/dist/http/product-category/admin.d.ts +0 -9
  417. package/dist/http/product-category/admin.d.ts.map +0 -1
  418. package/dist/http/product-category/admin.js.map +0 -1
  419. package/dist/http/product-category/store.d.ts +0 -9
  420. package/dist/http/product-category/store.d.ts.map +0 -1
  421. package/dist/http/product-category/store.js.map +0 -1
  422. package/dist/inventory/bundle.d.ts +0 -3
  423. package/dist/inventory/bundle.d.ts.map +0 -1
  424. package/dist/inventory/bundle.js.map +0 -1
  425. package/dist/inventory/common.d.ts +0 -495
  426. package/dist/inventory/common.d.ts.map +0 -1
  427. package/dist/inventory/service-next.d.ts +0 -937
  428. package/dist/inventory/service-next.d.ts.map +0 -1
  429. package/dist/inventory/service-next.js +0 -3
  430. package/dist/inventory/service-next.js.map +0 -1
  431. package/dist/modules-sdk/internal-module-service.d.ts.map +0 -1
  432. package/dist/modules-sdk/internal-module-service.js +0 -3
  433. package/dist/modules-sdk/internal-module-service.js.map +0 -1
  434. package/dist/modules-sdk/module-service.d.ts +0 -1
  435. package/dist/modules-sdk/module-service.d.ts.map +0 -1
  436. package/dist/modules-sdk/module-service.js +0 -1
  437. package/dist/modules-sdk/module-service.js.map +0 -1
  438. package/dist/pricing/common/price-set-rule-type.d.ts +0 -24
  439. package/dist/pricing/common/price-set-rule-type.d.ts.map +0 -1
  440. package/dist/pricing/common/price-set-rule-type.js +0 -3
  441. package/dist/pricing/common/price-set-rule-type.js.map +0 -1
  442. package/dist/pricing/common/rule-type.d.ts +0 -102
  443. package/dist/pricing/common/rule-type.d.ts.map +0 -1
  444. package/dist/pricing/common/rule-type.js +0 -3
  445. package/dist/pricing/common/rule-type.js.map +0 -1
  446. package/dist/region__legacy/common.d.ts +0 -44
  447. package/dist/region__legacy/common.d.ts.map +0 -1
  448. package/dist/region__legacy/common.js +0 -3
  449. package/dist/region__legacy/common.js.map +0 -1
  450. package/dist/region__legacy/index.d.ts +0 -2
  451. package/dist/region__legacy/index.d.ts.map +0 -1
  452. package/dist/region__legacy/index.js.map +0 -1
  453. package/dist/stock-location/service-next.d.ts +0 -279
  454. package/dist/stock-location/service-next.d.ts.map +0 -1
  455. package/dist/stock-location/service-next.js +0 -3
  456. package/dist/stock-location/service-next.js.map +0 -1
  457. /package/dist/http/{pricing → product}/admin/entitites.js +0 -0
  458. /package/dist/{inventory → http/product-type}/common.js +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/http/price-list/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./admin"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/http/price-list/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0CAAuB"}
@@ -29,4 +29,4 @@ export interface AdminPrice {
29
29
  updated_at: string;
30
30
  deleted_at: string | null;
31
31
  }
32
- //# sourceMappingURL=entitites.d.ts.map
32
+ //# sourceMappingURL=entities.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entities.d.ts","sourceRoot":"","sources":["../../../../src/http/pricing/admin/entities.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,aAAa,EAAE,MAAM,CAAA;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACnC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,YAAY,EAAE,MAAM,CAAA;IACpB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=entities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../../src/http/pricing/admin/entities.ts"],"names":[],"mappings":""}
@@ -1,2 +1,2 @@
1
- export * from "./entitites";
1
+ export * from "./entities";
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/pricing/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/pricing/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./entitites"), exports);
17
+ __exportStar(require("./entities"), exports);
18
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/pricing/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/pricing/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA0B"}
@@ -0,0 +1,26 @@
1
+ import { AdminCollection } from "../../collection";
2
+ import { AdminPrice } from "../../pricing";
3
+ import { AdminProductCategory } from "../../product-category";
4
+ import { AdminProductType } from "../../product-type";
5
+ import { AdminSalesChannel } from "../../sales-channel";
6
+ import { BaseProduct, BaseProductImage, BaseProductOption, BaseProductOptionValue, BaseProductTag, BaseProductVariant, ProductStatus } from "../common";
7
+ export interface AdminProductVariant extends BaseProductVariant {
8
+ prices: AdminPrice[] | null;
9
+ }
10
+ export interface AdminProductTag extends BaseProductTag {
11
+ }
12
+ export interface AdminProductOption extends BaseProductOption {
13
+ }
14
+ export interface AdminProductImage extends BaseProductImage {
15
+ }
16
+ export interface AdminProductOptionValue extends BaseProductOptionValue {
17
+ }
18
+ export interface AdminProduct extends Omit<BaseProduct, "categories" | "variants"> {
19
+ collection?: AdminCollection | null;
20
+ categories?: AdminProductCategory[] | null;
21
+ sales_channels?: AdminSalesChannel[] | null;
22
+ variants?: AdminProductVariant[] | null;
23
+ type: AdminProductType | null;
24
+ }
25
+ export type AdminProductStatus = ProductStatus;
26
+ //# sourceMappingURL=entitites.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entitites.d.ts","sourceRoot":"","sources":["../../../../src/http/product/admin/entitites.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,sBAAsB,EACtB,cAAc,EACd,kBAAkB,EAClB,aAAa,EACd,MAAM,WAAW,CAAA;AAElB,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,CAAA;CAC5B;AACD,MAAM,WAAW,eAAgB,SAAQ,cAAc;CAAG;AAC1D,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;CAAG;AAChE,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;CAAG;AAC9D,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;CAAG;AAC1E,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,UAAU,CAAC;IACpD,UAAU,CAAC,EAAE,eAAe,GAAG,IAAI,CAAA;IACnC,UAAU,CAAC,EAAE,oBAAoB,EAAE,GAAG,IAAI,CAAA;IAC1C,cAAc,CAAC,EAAE,iBAAiB,EAAE,GAAG,IAAI,CAAA;IAC3C,QAAQ,CAAC,EAAE,mBAAmB,EAAE,GAAG,IAAI,CAAA;IACvC,IAAI,EAAE,gBAAgB,GAAG,IAAI,CAAA;CAC9B;AACD,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entitites.js","sourceRoot":"","sources":["../../../../src/http/product/admin/entitites.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export * from "./entitites";
2
+ export * from "./payloads";
3
+ export * from "./responses";
4
+ export * from "./queries";
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/http/product/admin/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA"}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./entitites"), exports);
18
+ __exportStar(require("./payloads"), exports);
19
+ __exportStar(require("./responses"), exports);
20
+ __exportStar(require("./queries"), exports);
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/http/product/admin/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA2B;AAC3B,6CAA0B;AAC1B,8CAA2B;AAC3B,4CAAyB"}
@@ -0,0 +1,152 @@
1
+ import { BatchMethodRequest } from "../../../common";
2
+ import { ProductStatus } from "../common";
3
+ export interface AdminBatchProductRequest extends BatchMethodRequest<AdminCreateProduct, AdminUpdateProduct> {
4
+ }
5
+ export interface AdminBatchProductVariantRequest extends BatchMethodRequest<AdminCreateProductVariant, AdminUpdateProductVariant> {
6
+ }
7
+ export interface AdminBatchProductVariantInventoryItemRequest extends BatchMethodRequest<AdminCreateProductVariantInventoryItem, AdminUpdateProductVariantInventoryItem, AdminDeleteProductVariantInventoryItem> {
8
+ }
9
+ export interface AdminCreateProductVariantPrice {
10
+ currency_code: string;
11
+ amount: number;
12
+ min_quantity?: number | null;
13
+ max_quantity?: number | null;
14
+ }
15
+ export interface AdminCreateProductVariant {
16
+ title: string;
17
+ sku?: string;
18
+ ean?: string;
19
+ upc?: string;
20
+ barcode?: string;
21
+ hs_code?: string;
22
+ mid_code?: string;
23
+ allow_backorder?: boolean;
24
+ manage_inventory?: boolean;
25
+ variant_rank?: number;
26
+ weight?: number;
27
+ length?: number;
28
+ height?: number;
29
+ width?: number;
30
+ origin_country?: string;
31
+ material?: string;
32
+ metadata?: Record<string, unknown>;
33
+ prices: AdminCreateProductVariantPrice[];
34
+ options?: Record<string, string>;
35
+ }
36
+ export interface AdminCreateProduct {
37
+ title: string;
38
+ subtitle?: string;
39
+ description?: string;
40
+ is_giftcard?: boolean;
41
+ discountable?: boolean;
42
+ images?: {
43
+ url: string;
44
+ }[];
45
+ thumbnail?: string;
46
+ handle?: string;
47
+ status?: ProductStatus;
48
+ type_id?: string;
49
+ collection_id?: string;
50
+ categories?: {
51
+ id: string;
52
+ }[];
53
+ tags?: {
54
+ id?: string;
55
+ value?: string;
56
+ }[];
57
+ options?: AdminCreateProductOption[];
58
+ variants?: AdminCreateProductVariant[];
59
+ sales_channels?: {
60
+ id: string;
61
+ }[];
62
+ weight?: number;
63
+ length?: number;
64
+ height?: number;
65
+ width?: number;
66
+ hs_code?: string;
67
+ mid_code?: string;
68
+ origin_country?: string;
69
+ material?: string;
70
+ metadata?: Record<string, unknown>;
71
+ }
72
+ export interface AdminUpdateProductVariant {
73
+ title?: string;
74
+ sku?: string | null;
75
+ ean?: string | null;
76
+ upc?: string | null;
77
+ barcode?: string | null;
78
+ hs_code?: string | null;
79
+ mid_code?: string | null;
80
+ allow_backorder?: boolean;
81
+ manage_inventory?: boolean;
82
+ variant_rank?: number;
83
+ weight?: number | null;
84
+ length?: number | null;
85
+ height?: number | null;
86
+ width?: number | null;
87
+ origin_country?: string | null;
88
+ material?: string | null;
89
+ metadata?: Record<string, unknown> | null;
90
+ prices?: AdminCreateProductVariantPrice[];
91
+ options?: Record<string, string>;
92
+ }
93
+ export interface AdminUpdateProduct {
94
+ title?: string;
95
+ subtitle?: string | null;
96
+ description?: string | null;
97
+ is_giftcard?: boolean;
98
+ discountable?: boolean;
99
+ images?: {
100
+ url: string;
101
+ }[];
102
+ thumbnail?: string | null;
103
+ handle?: string;
104
+ status?: ProductStatus;
105
+ type_id?: string | null;
106
+ collection_id?: string | null;
107
+ categories?: {
108
+ id: string;
109
+ }[];
110
+ tags?: {
111
+ id?: string;
112
+ value?: string;
113
+ }[];
114
+ options?: AdminUpdateProductOption[];
115
+ variants?: AdminCreateProductVariant[];
116
+ sales_channels?: {
117
+ id: string;
118
+ }[];
119
+ weight?: number | null;
120
+ length?: number | null;
121
+ height?: number | null;
122
+ width?: number | null;
123
+ hs_code?: string | null;
124
+ mid_code?: string | null;
125
+ origin_country?: string | null;
126
+ material?: string | null;
127
+ metadata?: Record<string, unknown> | null;
128
+ }
129
+ export interface AdminCreateProductOption {
130
+ title: string;
131
+ values: string[];
132
+ }
133
+ export interface AdminUpdateProductOption {
134
+ title?: string;
135
+ values?: string[];
136
+ }
137
+ interface AdminCreateProductVariantInventoryItem {
138
+ required_quantity: number;
139
+ inventory_item_id: string;
140
+ variant_id: string;
141
+ }
142
+ interface AdminUpdateProductVariantInventoryItem {
143
+ required_quantity: number;
144
+ inventory_item_id: string;
145
+ variant_id: string;
146
+ }
147
+ interface AdminDeleteProductVariantInventoryItem {
148
+ inventory_item_id: string;
149
+ variant_id: string;
150
+ }
151
+ export {};
152
+ //# sourceMappingURL=payloads.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloads.d.ts","sourceRoot":"","sources":["../../../../src/http/product/admin/payloads.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACpD,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAA;AAEzC,MAAM,WAAW,wBACf,SAAQ,kBAAkB,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;CAAG;AAEvE,MAAM,WAAW,+BACf,SAAQ,kBAAkB,CACxB,yBAAyB,EACzB,yBAAyB,CAC1B;CAAG;AAEN,MAAM,WAAW,4CACf,SAAQ,kBAAkB,CACxB,sCAAsC,EACtC,sCAAsC,EACtC,sCAAsC,CACvC;CAAG;AAEN,MAAM,WAAW,8BAA8B;IAC7C,aAAa,EAAE,MAAM,CAAA;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC7B;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,gBAAgB,CAAC,EAAE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GAAG,IAAI,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC9B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAA;CAC1C;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,MAAM,EAAE,CAAA;CACjB;AAED,MAAM,WAAW,wBAAwB;IACvC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;CAClB;AAED,UAAU,sCAAsC;IAC9C,iBAAiB,EAAE,MAAM,CAAA;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,UAAU,sCAAsC;IAC9C,iBAAiB,EAAE,MAAM,CAAA;IACzB,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,UAAU,sCAAsC;IAC9C,iBAAiB,EAAE,MAAM,CAAA;IACzB,UAAU,EAAE,MAAM,CAAA;CACnB"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=payloads.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payloads.js","sourceRoot":"","sources":["../../../../src/http/product/admin/payloads.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import { BaseProductListParams, BaseProductOptionParams, BaseProductTagParams, BaseProductVariantParams } from "../common";
2
+ export interface AdminProductTagParams extends BaseProductTagParams {
3
+ }
4
+ export interface AdminProductOptionParams extends BaseProductOptionParams {
5
+ }
6
+ export interface AdminProductVariantParams extends BaseProductVariantParams {
7
+ }
8
+ export interface AdminProductListParams extends BaseProductListParams {
9
+ price_list_id?: string | string[];
10
+ variants?: AdminProductVariantParams;
11
+ }
12
+ //# sourceMappingURL=queries.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../../../src/http/product/admin/queries.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,WAAW,CAAA;AAElB,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;CAAG;AACtE,MAAM,WAAW,wBAAyB,SAAQ,uBAAuB;CAAG;AAC5E,MAAM,WAAW,yBAA0B,SAAQ,wBAAwB;CAAG;AAC9E,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;IACnE,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IACjC,QAAQ,CAAC,EAAE,yBAAyB,CAAA;CACrC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=queries.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"queries.js","sourceRoot":"","sources":["../../../../src/http/product/admin/queries.ts"],"names":[],"mappings":""}
@@ -0,0 +1,35 @@
1
+ import { BatchMethodResponse } from "../../../common";
2
+ import { DeleteResponse, PaginatedResponse } from "../../common";
3
+ import { AdminProduct, AdminProductOption, AdminProductVariant } from "./entitites";
4
+ import { AdminInventoryItem } from "../../inventory";
5
+ export interface AdminProductResponse {
6
+ product: AdminProduct;
7
+ }
8
+ export type AdminProductListResponse = PaginatedResponse<{
9
+ products: AdminProduct[];
10
+ }>;
11
+ export interface AdminProductDeleteResponse extends DeleteResponse<"product"> {
12
+ }
13
+ export interface AdminBatchProductResponse extends BatchMethodResponse<AdminProduct> {
14
+ }
15
+ export interface AdminProductVariantResponse {
16
+ variant: AdminProductVariant;
17
+ }
18
+ export type AdminProductVariantListResponse = PaginatedResponse<{
19
+ variants: AdminProductVariant[];
20
+ }>;
21
+ export interface AdminProductVariantDeleteResponse extends DeleteResponse<"variant", AdminProduct> {
22
+ }
23
+ export interface AdminBatchProductVariantResponse extends BatchMethodResponse<AdminProductVariant> {
24
+ }
25
+ export interface AdminBatchProductVariantInventoryItemResponse extends BatchMethodResponse<AdminInventoryItem> {
26
+ }
27
+ export interface AdminProductOptionResponse {
28
+ product_option: AdminProductOption;
29
+ }
30
+ export type AdminProductOptionListResponse = PaginatedResponse<{
31
+ product_options: AdminProductOption[];
32
+ }>;
33
+ export interface AdminProductOptionDeleteResponse extends DeleteResponse<"product_option", AdminProduct> {
34
+ }
35
+ //# sourceMappingURL=responses.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../../src/http/product/admin/responses.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChE,OAAO,EACL,YAAY,EACZ,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,aAAa,CAAA;AACpB,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAEpD,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,YAAY,CAAA;CACtB;AAED,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;IACvD,QAAQ,EAAE,YAAY,EAAE,CAAA;CACzB,CAAC,CAAA;AAEF,MAAM,WAAW,0BAA2B,SAAQ,cAAc,CAAC,SAAS,CAAC;CAAG;AAEhF,MAAM,WAAW,yBACf,SAAQ,mBAAmB,CAAC,YAAY,CAAC;CAAG;AAE9C,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,mBAAmB,CAAA;CAC7B;AAED,MAAM,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;IAC9D,QAAQ,EAAE,mBAAmB,EAAE,CAAA;CAChC,CAAC,CAAA;AAEF,MAAM,WAAW,iCACf,SAAQ,cAAc,CAAC,SAAS,EAAE,YAAY,CAAC;CAAG;AAEpD,MAAM,WAAW,gCACf,SAAQ,mBAAmB,CAAC,mBAAmB,CAAC;CAAG;AAErD,MAAM,WAAW,6CACf,SAAQ,mBAAmB,CAAC,kBAAkB,CAAC;CAAG;AAEpD,MAAM,WAAW,0BAA0B;IACzC,cAAc,EAAE,kBAAkB,CAAA;CACnC;AAED,MAAM,MAAM,8BAA8B,GAAG,iBAAiB,CAAC;IAC7D,eAAe,EAAE,kBAAkB,EAAE,CAAA;CACtC,CAAC,CAAA;AAEF,MAAM,WAAW,gCACf,SAAQ,cAAc,CAAC,gBAAgB,EAAE,YAAY,CAAC;CAAG"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=responses.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../../src/http/product/admin/responses.ts"],"names":[],"mappings":""}
@@ -1,98 +1,79 @@
1
1
  import { BaseFilterable, OperatorMap } from "../../dal";
2
2
  import { BaseCollection } from "../collection/common";
3
+ import { FindParams } from "../common";
4
+ import { BaseProductCategory } from "../product-category/common";
5
+ import { BaseProductType } from "../product-type/common";
3
6
  export type ProductStatus = "draft" | "proposed" | "published" | "rejected";
4
7
  export interface BaseProduct {
5
- id?: string;
6
- title?: string;
7
- handle?: string;
8
- subtitle?: string | null;
9
- description?: string | null;
10
- is_giftcard?: boolean;
11
- status?: ProductStatus;
12
- thumbnail?: string;
13
- width?: number;
14
- weight?: number;
15
- length?: number;
16
- height?: number;
17
- origin_country?: string;
18
- hs_code?: string;
19
- mid_code?: string;
20
- material?: string;
21
- collection?: BaseCollection;
22
- collection_id?: string | null;
23
- categories?: BaseProductCategory[];
8
+ id: string;
9
+ title: string;
10
+ handle: string;
11
+ subtitle: string | null;
12
+ description: string | null;
13
+ is_giftcard: boolean;
14
+ status: ProductStatus;
15
+ thumbnail: string | null;
16
+ width: number | null;
17
+ weight: number | null;
18
+ length: number | null;
19
+ height: number | null;
20
+ origin_country: string | null;
21
+ hs_code: string | null;
22
+ mid_code: string | null;
23
+ material: string | null;
24
+ collection?: BaseCollection | null;
25
+ collection_id: string | null;
26
+ categories?: BaseProductCategory[] | null;
24
27
  type?: BaseProductType | null;
25
- type_id?: string | null;
26
- tags?: BaseProductTag[];
27
- variants?: BaseProductVariant[];
28
- options?: BaseProductOption[];
29
- images?: BaseProductImage[];
30
- discountable?: boolean;
31
- external_id?: string | null;
32
- created_at?: string;
33
- updated_at?: string;
34
- deleted_at?: string | null;
28
+ type_id: string | null;
29
+ tags: BaseProductTag[] | null;
30
+ variants: BaseProductVariant[] | null;
31
+ options: BaseProductOption[] | null;
32
+ images: BaseProductImage[] | null;
33
+ discountable: boolean;
34
+ external_id: string | null;
35
+ created_at: string | null;
36
+ updated_at: string | null;
37
+ deleted_at: string | null;
35
38
  metadata?: Record<string, unknown> | null;
36
39
  }
37
40
  export interface BaseProductVariant {
38
- id?: string;
39
- title?: string;
40
- sku?: string;
41
- barcode?: string;
42
- ean?: string;
43
- upc?: string;
44
- allow_backorder?: boolean;
45
- manage_inventory?: boolean;
46
- hs_code?: string;
47
- origin_country?: string;
48
- mid_code?: string;
49
- material?: string;
50
- weight?: number;
51
- length?: number;
52
- height?: number;
53
- width?: number;
54
- options?: BaseProductOptionValue[];
55
- product?: BaseProduct;
56
- product_id?: string | null;
57
- variant_rank?: number;
58
- created_at?: string;
59
- updated_at?: string;
60
- deleted_at?: string | null;
41
+ id: string;
42
+ title: string | null;
43
+ sku: string | null;
44
+ barcode: string | null;
45
+ ean: string | null;
46
+ upc: string | null;
47
+ allow_backorder: boolean | null;
48
+ manage_inventory: boolean | null;
49
+ hs_code: string | null;
50
+ origin_country: string | null;
51
+ mid_code: string | null;
52
+ material: string | null;
53
+ weight: number | null;
54
+ length: number | null;
55
+ height: number | null;
56
+ width: number | null;
57
+ options: BaseProductOptionValue[] | null;
58
+ product?: BaseProduct | null;
59
+ product_id?: string;
60
+ variant_rank?: number | null;
61
+ created_at: string;
62
+ updated_at: string;
63
+ deleted_at: string | null;
61
64
  metadata?: Record<string, unknown> | null;
62
65
  }
63
- export interface BaseProductCategory {
64
- id?: string;
65
- name?: string;
66
- description?: string | null;
67
- handle?: string;
68
- rank?: number;
69
- parent_category?: BaseProductCategory;
70
- parent_category_id?: string;
71
- category_children?: BaseProductCategory[];
72
- products?: BaseProduct[];
73
- created_at?: string;
74
- updated_at?: string;
75
- metadata?: Record<string, unknown>;
76
- }
77
66
  export interface BaseProductTag {
78
- id?: string;
79
- value?: string;
67
+ id: string;
68
+ value: string;
80
69
  products?: BaseProduct[];
81
70
  metadata?: Record<string, unknown> | null;
82
71
  }
83
- export interface BaseProductType {
84
- id?: string;
85
- value?: string;
86
- created_at?: string;
87
- updated_at?: string;
88
- deleted_at?: string | null;
89
- metadata?: Record<string, unknown> | null;
90
- }
91
72
  export interface BaseProductOption {
92
- id?: string;
93
- title?: string;
94
- product?: BaseProduct;
95
- product_id?: string;
73
+ id: string;
74
+ title: string;
75
+ product?: BaseProduct | null;
76
+ product_id?: string | null;
96
77
  values?: BaseProductOptionValue[];
97
78
  metadata?: Record<string, unknown> | null;
98
79
  created_at?: string;
@@ -100,26 +81,27 @@ export interface BaseProductOption {
100
81
  deleted_at?: string | null;
101
82
  }
102
83
  export interface BaseProductImage {
103
- id?: string;
104
- url?: string;
84
+ id: string;
85
+ url: string;
105
86
  created_at?: string;
106
87
  updated_at?: string;
107
88
  deleted_at?: string | null;
108
89
  metadata?: Record<string, unknown> | null;
109
90
  }
110
91
  export interface BaseProductOptionValue {
111
- id?: string;
112
- value?: string;
113
- option?: BaseProductOption;
114
- option_id?: string;
92
+ id: string;
93
+ value: string;
94
+ option?: BaseProductOption | null;
95
+ option_id?: string | null;
115
96
  metadata?: Record<string, unknown> | null;
116
97
  created_at?: string;
117
98
  updated_at?: string;
118
99
  deleted_at?: string | null;
119
100
  }
120
- export interface BaseProductFilters extends BaseFilterable<BaseProductFilters> {
101
+ export interface BaseProductListParams extends FindParams, BaseFilterable<BaseProductListParams> {
121
102
  q?: string;
122
103
  status?: ProductStatus | ProductStatus[];
104
+ sales_channel_id?: string | string[];
123
105
  title?: string | string[];
124
106
  handle?: string | string[];
125
107
  id?: string | string[];
@@ -139,38 +121,22 @@ export interface BaseProductFilters extends BaseFilterable<BaseProductFilters> {
139
121
  updated_at?: OperatorMap<string>;
140
122
  deleted_at?: OperatorMap<string>;
141
123
  }
142
- export interface BaseProductTagFilters extends BaseFilterable<BaseProductTagFilters> {
124
+ export interface BaseProductTagParams extends FindParams, BaseFilterable<BaseProductTagParams> {
143
125
  q?: string;
144
126
  id?: string | string[];
145
127
  value?: string | string[];
146
128
  }
147
- export interface BaseProductTypeFilters extends BaseFilterable<BaseProductTypeFilters> {
148
- q?: string;
149
- id?: string | string[];
150
- value?: string;
151
- }
152
- export interface BaseProductOptionFilters extends BaseFilterable<BaseProductOptionFilters> {
129
+ export interface BaseProductOptionParams extends FindParams, BaseFilterable<BaseProductOptionParams> {
153
130
  q?: string;
154
131
  id?: string | string[];
155
132
  title?: string | string[];
156
133
  product_id?: string | string[];
157
134
  }
158
- export interface BaseProductVariantFilters extends BaseFilterable<BaseProductVariantFilters> {
135
+ export interface BaseProductVariantParams extends FindParams, BaseFilterable<BaseProductVariantParams> {
159
136
  q?: string;
160
137
  id?: string | string[];
161
138
  sku?: string | string[];
162
139
  product_id?: string | string[];
163
140
  options?: Record<string, string>;
164
141
  }
165
- export interface BaseProductCategoryFilters extends BaseFilterable<BaseProductCategoryFilters> {
166
- q?: string;
167
- id?: string | string[];
168
- name?: string | string[];
169
- parent_category_id?: string | string[] | null;
170
- handle?: string | string[];
171
- is_active?: boolean;
172
- is_internal?: boolean;
173
- include_descendants_tree?: boolean;
174
- include_ancestors_tree?: boolean;
175
- }
176
142
  //# sourceMappingURL=common.d.ts.map