@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
@@ -1,99 +0,0 @@
1
- import { BaseProduct, BaseProductCategory, BaseProductCategoryFilters, BaseProductFilters, BaseProductImage, BaseProductOption, BaseProductOptionFilters, BaseProductOptionValue, BaseProductTag, BaseProductTagFilters, BaseProductType, BaseProductTypeFilters, BaseProductVariant, BaseProductVariantFilters } from "./common";
2
- export interface AdminProduct extends Omit<BaseProduct, "categories"> {
3
- categories?: AdminProductCategory[];
4
- }
5
- export interface AdminProductCategory extends BaseProductCategory {
6
- is_active?: boolean;
7
- is_internal?: boolean;
8
- }
9
- export interface AdminProductVariant extends BaseProductVariant {
10
- }
11
- export interface AdminProductTag extends BaseProductTag {
12
- }
13
- export interface AdminProductType extends BaseProductType {
14
- }
15
- export interface AdminProductOption extends BaseProductOption {
16
- }
17
- export interface AdminProductImage extends BaseProductImage {
18
- }
19
- export interface AdminProductOptionValue extends BaseProductOptionValue {
20
- }
21
- export interface AdminProductFilters extends BaseProductFilters {
22
- }
23
- export interface AdminProductTagFilters extends BaseProductTagFilters {
24
- }
25
- export interface AdminProductTypeFilters extends BaseProductTypeFilters {
26
- }
27
- export interface AdminProductOptionFilters extends BaseProductOptionFilters {
28
- }
29
- export interface AdminProductVariantFilters extends BaseProductVariantFilters {
30
- }
31
- export interface AdminProductCategoryFilters extends BaseProductCategoryFilters {
32
- }
33
- export interface AdminCreateProductVariantPrice {
34
- currency_code: string;
35
- amount: number;
36
- min_quantity?: number;
37
- max_quantity?: number;
38
- }
39
- export interface AdminCreateProductVariant {
40
- title: string;
41
- sku?: string;
42
- ean?: string;
43
- upc?: string;
44
- barcode?: string;
45
- hs_code?: string;
46
- mid_code?: string;
47
- allow_backorder?: boolean;
48
- manage_inventory?: boolean;
49
- variant_rank?: number;
50
- weight?: number;
51
- length?: number;
52
- height?: number;
53
- width?: number;
54
- origin_country?: string;
55
- material?: string;
56
- metadata?: Record<string, any>;
57
- prices: AdminCreateProductVariantPrice[];
58
- options?: Record<string, any>;
59
- }
60
- export interface AdminCreateProduct {
61
- title: string;
62
- subtitle?: string;
63
- description?: string;
64
- is_giftcard?: boolean;
65
- discountable?: boolean;
66
- images?: {
67
- url: string;
68
- }[];
69
- thumbnail?: string;
70
- handle?: string;
71
- status?: string;
72
- type_id?: string | null;
73
- collection_id?: string | null;
74
- categories?: {
75
- id: string;
76
- }[];
77
- tags?: {
78
- id?: string;
79
- value?: string;
80
- }[];
81
- options?: {
82
- title?: string;
83
- values?: string[];
84
- }[];
85
- variants?: AdminCreateProductVariant[];
86
- sales_channels?: {
87
- id: string;
88
- }[];
89
- weight?: number;
90
- length?: number;
91
- height?: number;
92
- width?: number;
93
- hs_code?: string;
94
- mid_code?: string;
95
- origin_country?: string;
96
- material?: string;
97
- metadata?: Record<string, any>;
98
- }
99
- //# sourceMappingURL=admin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../src/http/product/admin.ts"],"names":[],"mappings":"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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"admin.js","sourceRoot":"","sources":["../../../src/http/product/admin.ts"],"names":[],"mappings":""}
@@ -1,33 +0,0 @@
1
- import { BaseProduct, BaseProductCategory, BaseProductCategoryFilters, BaseProductFilters, BaseProductImage, BaseProductOption, BaseProductOptionFilters, BaseProductOptionValue, BaseProductTag, BaseProductTagFilters, BaseProductType, BaseProductTypeFilters, BaseProductVariant, BaseProductVariantFilters } from "./common";
2
- export interface StoreProduct extends BaseProduct {
3
- }
4
- export interface StoreProductCategory extends BaseProductCategory {
5
- }
6
- export interface StoreProductVariant extends BaseProductVariant {
7
- }
8
- export interface StoreProductTag extends BaseProductTag {
9
- }
10
- export interface StoreProductType extends BaseProductType {
11
- }
12
- export interface StoreProductOption extends BaseProductOption {
13
- }
14
- export interface StoreProductImage extends BaseProductImage {
15
- }
16
- export interface StoreProductOptionValue extends BaseProductOptionValue {
17
- }
18
- export interface StoreProductTagFilters extends BaseProductTagFilters {
19
- }
20
- export interface StoreProductTypeFilters extends BaseProductTypeFilters {
21
- }
22
- export interface StoreProductOptionFilters extends BaseProductOptionFilters {
23
- }
24
- export interface StoreProductVariantFilters extends BaseProductVariantFilters {
25
- }
26
- export interface StoreProductFilters extends BaseProductFilters {
27
- region_id?: string;
28
- currency_code?: string;
29
- variants?: StoreProductVariantFilters;
30
- }
31
- export interface StoreProductCategoryFilters extends BaseProductCategoryFilters {
32
- }
33
- //# sourceMappingURL=store.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/http/product/store.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,mBAAmB,EACnB,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EACjB,wBAAwB,EACxB,sBAAsB,EACtB,cAAc,EACd,qBAAqB,EACrB,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,EAC1B,MAAM,UAAU,CAAA;AAEjB,MAAM,WAAW,YAAa,SAAQ,WAAW;CAAG;AACpD,MAAM,WAAW,oBAAqB,SAAQ,mBAAmB;CAAG;AACpE,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;CAAG;AAClE,MAAM,WAAW,eAAgB,SAAQ,cAAc;CAAG;AAC1D,MAAM,WAAW,gBAAiB,SAAQ,eAAe;CAAG;AAC5D,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;CAAG;AAChE,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;CAAG;AAC9D,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;CAAG;AAE1E,MAAM,WAAW,sBAAuB,SAAQ,qBAAqB;CAAG;AACxE,MAAM,WAAW,uBAAwB,SAAQ,sBAAsB;CAAG;AAC1E,MAAM,WAAW,yBAA0B,SAAQ,wBAAwB;CAAG;AAC9E,MAAM,WAAW,0BAA2B,SAAQ,yBAAyB;CAAG;AAChF,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAE7D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,0BAA0B,CAAA;CACtC;AACD,MAAM,WAAW,2BACf,SAAQ,0BAA0B;CAAG"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/http/product/store.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- import { PaginatedResponse } from "../common";
2
- import { ProductCategoryResponse } from "./common";
3
- export interface AdminProductCategoryResponse {
4
- product_category: ProductCategoryResponse;
5
- }
6
- export type AdminProductCategoryListResponse = PaginatedResponse<{
7
- product_categories: ProductCategoryResponse[];
8
- }>;
9
- //# sourceMappingURL=admin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../src/http/product-category/admin.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAElD,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,EAAE,uBAAuB,CAAA;CAC1C;AAED,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAC/D,kBAAkB,EAAE,uBAAuB,EAAE,CAAA;CAC9C,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"admin.js","sourceRoot":"","sources":["../../../src/http/product-category/admin.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- import { PaginatedResponse } from "../common";
2
- import { ProductCategoryResponse } from "./common";
3
- export interface StoreProductCategoryResponse {
4
- product_category: ProductCategoryResponse;
5
- }
6
- export type StoreProductCategoryListResponse = PaginatedResponse<{
7
- product_categories: ProductCategoryResponse[];
8
- }>;
9
- //# sourceMappingURL=store.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/http/product-category/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAA;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAElD,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,EAAE,uBAAuB,CAAA;CAC1C;AAED,MAAM,MAAM,gCAAgC,GAAG,iBAAiB,CAAC;IAC/D,kBAAkB,EAAE,uBAAuB,EAAE,CAAA;CAC9C,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"store.js","sourceRoot":"","sources":["../../../src/http/product-category/store.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- export * from "./common/index";
2
- export * from "./mutations";
3
- //# sourceMappingURL=bundle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["../../src/inventory/bundle.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,aAAa,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"bundle.js","sourceRoot":"","sources":["../../src/inventory/bundle.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA8B;AAC9B,8CAA2B"}
@@ -1,495 +0,0 @@
1
- import { NumericalComparisonOperator, StringComparisonOperator } from "../common";
2
- /**
3
- * @schema InventoryItemDTO
4
- * type: object
5
- * required:
6
- * - sku
7
- * properties:
8
- * id:
9
- * description: The inventory item's ID.
10
- * type: string
11
- * example: "iitem_12334"
12
- * sku:
13
- * description: The Stock Keeping Unit (SKU) code of the Inventory Item.
14
- * type: string
15
- * hs_code:
16
- * description: The Harmonized System code of the Inventory Item. May be used by Fulfillment Providers to pass customs information to shipping carriers.
17
- * type: string
18
- * origin_country:
19
- * description: The country in which the Inventory Item was produced. May be used by Fulfillment Providers to pass customs information to shipping carriers.
20
- * type: string
21
- * mid_code:
22
- * description: The Manufacturers Identification code that identifies the manufacturer of the Inventory Item. May be used by Fulfillment Providers to pass customs information to shipping carriers.
23
- * type: string
24
- * title:
25
- * description: "Title of the inventory item"
26
- * type: string
27
- * description:
28
- * description: "Description of the inventory item"
29
- * type: string
30
- * thumbnail:
31
- * description: "Thumbnail for the inventory item"
32
- * type: string
33
- * material:
34
- * description: The material and composition that the Inventory Item is made of, May be used by Fulfillment Providers to pass customs information to shipping carriers.
35
- * type: string
36
- * weight:
37
- * description: The weight of the Inventory Item. May be used in shipping rate calculations.
38
- * type: number
39
- * height:
40
- * description: The height of the Inventory Item. May be used in shipping rate calculations.
41
- * type: number
42
- * width:
43
- * description: The width of the Inventory Item. May be used in shipping rate calculations.
44
- * type: number
45
- * length:
46
- * description: The length of the Inventory Item. May be used in shipping rate calculations.
47
- * type: number
48
- * requires_shipping:
49
- * description: Whether the item requires shipping.
50
- * type: boolean
51
- * metadata:
52
- * type: object
53
- * description: An optional key-value map with additional details
54
- * example: {car: "white"}
55
- * created_at:
56
- * type: string
57
- * description: "The date with timezone at which the resource was created."
58
- * format: date-time
59
- * updated_at:
60
- * type: string
61
- * description: "The date with timezone at which the resource was updated."
62
- * format: date-time
63
- * deleted_at:
64
- * type: string
65
- * description: "The date with timezone at which the resource was deleted."
66
- * format: date-time
67
- */
68
- export type InventoryItemDTO = {
69
- id: string;
70
- sku?: string | null;
71
- origin_country?: string | null;
72
- hs_code?: string | null;
73
- requires_shipping: boolean;
74
- mid_code?: string | null;
75
- material?: string | null;
76
- weight?: number | null;
77
- length?: number | null;
78
- height?: number | null;
79
- width?: number | null;
80
- title?: string | null;
81
- description?: string | null;
82
- thumbnail?: string | null;
83
- metadata?: Record<string, unknown> | null;
84
- created_at: string | Date;
85
- updated_at: string | Date;
86
- deleted_at: string | Date | null;
87
- location_levels?: InventoryLevelDTO[];
88
- };
89
- /**
90
- * @schema ReservationItemDTO
91
- * title: "Reservation item"
92
- * description: "Represents a reservation of an inventory item at a stock location"
93
- * type: object
94
- * required:
95
- * - id
96
- * - location_id
97
- * - inventory_item_id
98
- * - quantity
99
- * properties:
100
- * id:
101
- * description: "The id of the reservation item"
102
- * type: string
103
- * location_id:
104
- * description: "The id of the location of the reservation"
105
- * type: string
106
- * inventory_item_id:
107
- * description: "The id of the inventory item the reservation relates to"
108
- * type: string
109
- * description:
110
- * description: "Description of the reservation item"
111
- * type: string
112
- * created_by:
113
- * description: "UserId of user who created the reservation item"
114
- * type: string
115
- * quantity:
116
- * description: "The id of the reservation item"
117
- * type: number
118
- * metadata:
119
- * type: object
120
- * description: An optional key-value map with additional details
121
- * example: {car: "white"}
122
- * created_at:
123
- * type: string
124
- * description: "The date with timezone at which the resource was created."
125
- * format: date-time
126
- * updated_at:
127
- * type: string
128
- * description: "The date with timezone at which the resource was updated."
129
- * format: date-time
130
- * deleted_at:
131
- * type: string
132
- * description: "The date with timezone at which the resource was deleted."
133
- * format: date-time
134
- */
135
- export type ReservationItemDTO = {
136
- id: string;
137
- location_id: string;
138
- inventory_item_id: string;
139
- quantity: number;
140
- line_item_id?: string | null;
141
- description?: string | null;
142
- created_by?: string | null;
143
- allow_backorder?: boolean;
144
- metadata: Record<string, unknown> | null;
145
- created_at: string | Date;
146
- updated_at: string | Date;
147
- deleted_at: string | Date | null;
148
- };
149
- /**
150
- * @schema InventoryLevelDTO
151
- * type: object
152
- * required:
153
- * - inventory_item_id
154
- * - location_id
155
- * - stocked_quantity
156
- * - reserved_quantity
157
- * - incoming_quantity
158
- * properties:
159
- * location_id:
160
- * description: the item location ID
161
- * type: string
162
- * stocked_quantity:
163
- * description: the total stock quantity of an inventory item at the given location ID
164
- * type: number
165
- * reserved_quantity:
166
- * description: the reserved stock quantity of an inventory item at the given location ID
167
- * type: number
168
- * incoming_quantity:
169
- * description: the incoming stock quantity of an inventory item at the given location ID
170
- * type: number
171
- * metadata:
172
- * type: object
173
- * description: An optional key-value map with additional details
174
- * example: {car: "white"}
175
- * created_at:
176
- * type: string
177
- * description: "The date with timezone at which the resource was created."
178
- * format: date-time
179
- * updated_at:
180
- * type: string
181
- * description: "The date with timezone at which the resource was updated."
182
- * format: date-time
183
- * deleted_at:
184
- * type: string
185
- * description: "The date with timezone at which the resource was deleted."
186
- * format: date-time
187
- */
188
- export type InventoryLevelDTO = {
189
- id: string;
190
- inventory_item_id: string;
191
- location_id: string;
192
- stocked_quantity: number;
193
- reserved_quantity: number;
194
- available_quantity: number;
195
- incoming_quantity: number;
196
- metadata: Record<string, unknown> | null;
197
- created_at: string | Date;
198
- updated_at: string | Date;
199
- deleted_at: string | Date | null;
200
- };
201
- /**
202
- * @interface
203
- *
204
- * The filters to apply on retrieved reservation items.
205
- */
206
- export type FilterableReservationItemProps = {
207
- /**
208
- * The IDs to filter reservation items by.
209
- */
210
- id?: string | string[];
211
- /**
212
- * @ignore
213
- *
214
- * @privateRemark
215
- * This property is not used.
216
- */
217
- type?: string | string[];
218
- /**
219
- * Filter reservation items by the ID of their associated line item.
220
- */
221
- line_item_id?: string | string[];
222
- /**
223
- * Filter reservation items by the ID of their associated inventory item.
224
- */
225
- inventory_item_id?: string | string[];
226
- /**
227
- * Filter reservation items by the ID of their associated location.
228
- */
229
- location_id?: string | string[];
230
- /**
231
- * Description filters to apply on the reservation items' `description` attribute.
232
- */
233
- description?: string | StringComparisonOperator;
234
- /**
235
- * The "created by" values to filter reservation items by.
236
- */
237
- created_by?: string | string[];
238
- /**
239
- * Filters to apply on the reservation items' `quantity` attribute.
240
- */
241
- quantity?: number | NumericalComparisonOperator;
242
- };
243
- /**
244
- * @interface
245
- *
246
- * The filters to apply on retrieved inventory items.
247
- */
248
- export type FilterableInventoryItemProps = {
249
- /**
250
- * The IDs to filter inventory items by.
251
- */
252
- id?: string | string[];
253
- /**
254
- * Filter inventory items by the ID of their associated location.
255
- */
256
- location_id?: string | string[];
257
- /**
258
- * Search term to search inventory items' attributes.
259
- */
260
- q?: string;
261
- /**
262
- * The SKUs to filter inventory items by.
263
- */
264
- sku?: string | string[] | StringComparisonOperator;
265
- /**
266
- * The origin country to filter inventory items by.
267
- */
268
- origin_country?: string | string[];
269
- /**
270
- * The HS Codes to filter inventory items by.
271
- */
272
- hs_code?: string | string[] | StringComparisonOperator;
273
- /**
274
- * Filter inventory items by whether they require shipping.
275
- */
276
- requires_shipping?: boolean;
277
- };
278
- export interface UpdateInventoryItemInput extends Partial<CreateInventoryItemInput> {
279
- id: string;
280
- }
281
- /**
282
- * @interface
283
- *
284
- * The details of the inventory item to be created.
285
- */
286
- export interface CreateInventoryItemInput {
287
- /**
288
- * The SKU of the inventory item.
289
- */
290
- sku?: string | null;
291
- /**
292
- * The origin country of the inventory item.
293
- */
294
- origin_country?: string | null;
295
- /**
296
- * The MID code of the inventory item.
297
- */
298
- mid_code?: string | null;
299
- /**
300
- * The material of the inventory item.
301
- */
302
- material?: string | null;
303
- /**
304
- * The weight of the inventory item.
305
- */
306
- weight?: number | null;
307
- /**
308
- * The length of the inventory item.
309
- */
310
- length?: number | null;
311
- /**
312
- * The height of the inventory item.
313
- */
314
- height?: number | null;
315
- /**
316
- * The width of the inventory item.
317
- */
318
- width?: number | null;
319
- /**
320
- * The title of the inventory item.
321
- */
322
- title?: string | null;
323
- /**
324
- * The description of the inventory item.
325
- */
326
- description?: string | null;
327
- /**
328
- * The thumbnail of the inventory item.
329
- */
330
- thumbnail?: string | null;
331
- /**
332
- * Holds custom data in key-value pairs.
333
- */
334
- metadata?: Record<string, unknown> | null;
335
- /**
336
- * The HS code of the inventory item.
337
- */
338
- hs_code?: string | null;
339
- /**
340
- * Whether the inventory item requires shipping.
341
- */
342
- requires_shipping?: boolean;
343
- }
344
- /**
345
- * @interface
346
- *
347
- * The details of the reservation item to be created.
348
- */
349
- export type CreateReservationItemInput = {
350
- /**
351
- * The ID of the associated line item.
352
- */
353
- line_item_id?: string;
354
- /**
355
- * The ID of the associated inventory item.
356
- */
357
- inventory_item_id: string;
358
- /**
359
- * The ID of the associated location.
360
- */
361
- location_id: string;
362
- /**
363
- * The reserved quantity.
364
- */
365
- quantity: number;
366
- /**
367
- * The description of the reservation.
368
- */
369
- description?: string;
370
- /**
371
- * The user or system that created the reservation. Can be any form of identification string.
372
- */
373
- created_by?: string;
374
- /**
375
- * An ID associated with an external third-party system that the reservation item is connected to.
376
- */
377
- external_id?: string;
378
- /**
379
- * Holds custom data in key-value pairs.
380
- */
381
- metadata?: Record<string, unknown> | null;
382
- };
383
- /**
384
- * @interface
385
- *
386
- * The filters to apply on retrieved inventory levels.
387
- */
388
- export type FilterableInventoryLevelProps = {
389
- /**
390
- * Filter inventory levels by the ID of their associated inventory item.
391
- */
392
- inventory_item_id?: string | string[];
393
- /**
394
- * Filter inventory levels by the ID of their associated inventory location.
395
- */
396
- location_id?: string | string[];
397
- /**
398
- * Filters to apply on inventory levels' `stocked_quantity` attribute.
399
- */
400
- stocked_quantity?: number | NumericalComparisonOperator;
401
- /**
402
- * Filters to apply on inventory levels' `reserved_quantity` attribute.
403
- */
404
- reserved_quantity?: number | NumericalComparisonOperator;
405
- /**
406
- * Filters to apply on inventory levels' `incoming_quantity` attribute.
407
- */
408
- incoming_quantity?: number | NumericalComparisonOperator;
409
- };
410
- /**
411
- * @interface
412
- *
413
- * The details of the inventory level to be created.
414
- */
415
- export type CreateInventoryLevelInput = {
416
- /**
417
- * The ID of the associated inventory item.
418
- */
419
- inventory_item_id: string;
420
- /**
421
- * The ID of the associated location.
422
- */
423
- location_id: string;
424
- /**
425
- * The stocked quantity of the associated inventory item in the associated location.
426
- */
427
- stocked_quantity: number;
428
- /**
429
- * The reserved quantity of the associated inventory item in the associated location.
430
- */
431
- reserved_quantity?: number;
432
- /**
433
- * The incoming quantity of the associated inventory item in the associated location.
434
- */
435
- incoming_quantity?: number;
436
- };
437
- /**
438
- * @interface
439
- *
440
- * The attributes to update in an inventory level.
441
- */
442
- export type UpdateInventoryLevelInput = {
443
- /**
444
- * The stocked quantity of the associated inventory item in the associated location.
445
- */
446
- stocked_quantity?: number;
447
- /**
448
- * The incoming quantity of the associated inventory item in the associated location.
449
- */
450
- incoming_quantity?: number;
451
- };
452
- /**
453
- * @interface
454
- *
455
- * The attributes to update in an inventory level. The inventory level is identified by the IDs of its associated inventory item and location.
456
- */
457
- export type BulkUpdateInventoryLevelInput = {
458
- /**
459
- * The ID of the associated inventory level.
460
- */
461
- inventory_item_id: string;
462
- /**
463
- * The ID of the associated location.
464
- */
465
- location_id: string;
466
- } & UpdateInventoryLevelInput;
467
- /**
468
- * @interface
469
- *
470
- * The attributes to update in a reservation item.
471
- */
472
- export type UpdateReservationItemInput = {
473
- /**
474
- * The reserved quantity.
475
- */
476
- quantity?: number;
477
- /**
478
- * The ID of the associated location.
479
- */
480
- location_id?: string;
481
- /**
482
- * The description of the reservation item.
483
- */
484
- description?: string;
485
- /**
486
- * Holds custom data in key-value pairs.
487
- */
488
- metadata?: Record<string, unknown> | null;
489
- };
490
- export type ReserveQuantityContext = {
491
- locationId?: string;
492
- lineItemId?: string;
493
- salesChannelId?: string | null;
494
- };
495
- //# sourceMappingURL=common.d.ts.map