@medusajs/types 1.12.0-snapshot-20240531102054 → 1.12.0-snapshot-20240701122250

Sign up to get free protection for your applications and to get access to all the features.
Files changed (764) 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/common/auth-identity.d.ts +77 -21
  4. package/dist/auth/common/auth-identity.d.ts.map +1 -1
  5. package/dist/auth/common/provider.d.ts +2 -1
  6. package/dist/auth/common/provider.d.ts.map +1 -1
  7. package/dist/auth/provider.d.ts +6 -3
  8. package/dist/auth/provider.d.ts.map +1 -1
  9. package/dist/auth/service.d.ts +30 -30
  10. package/dist/auth/service.d.ts.map +1 -1
  11. package/dist/bundles.d.ts +2 -1
  12. package/dist/bundles.d.ts.map +1 -1
  13. package/dist/bundles.js +3 -2
  14. package/dist/bundles.js.map +1 -1
  15. package/dist/cart/mutations.d.ts +8 -0
  16. package/dist/cart/mutations.d.ts.map +1 -1
  17. package/dist/cart/mutations.js.map +1 -1
  18. package/dist/cart/service.d.ts +30 -52
  19. package/dist/cart/service.d.ts.map +1 -1
  20. package/dist/common/batch.d.ts +3 -3
  21. package/dist/common/batch.d.ts.map +1 -1
  22. package/dist/common/common.d.ts +6 -1
  23. package/dist/common/common.d.ts.map +1 -1
  24. package/dist/currency/service.d.ts +9 -9
  25. package/dist/currency/service.d.ts.map +1 -1
  26. package/dist/customer/mutations.d.ts +27 -26
  27. package/dist/customer/mutations.d.ts.map +1 -1
  28. package/dist/customer/service.d.ts +40 -43
  29. package/dist/customer/service.d.ts.map +1 -1
  30. package/dist/dal/repository-service.d.ts +15 -3
  31. package/dist/dal/repository-service.d.ts.map +1 -1
  32. package/dist/dml/index.d.ts +161 -0
  33. package/dist/dml/index.d.ts.map +1 -0
  34. package/dist/dml/index.js +5 -0
  35. package/dist/dml/index.js.map +1 -0
  36. package/dist/event-bus/common.d.ts +17 -25
  37. package/dist/event-bus/common.d.ts.map +1 -1
  38. package/dist/event-bus/event-bus-module.d.ts +4 -4
  39. package/dist/event-bus/event-bus-module.d.ts.map +1 -1
  40. package/dist/event-bus/event-bus.d.ts +2 -4
  41. package/dist/event-bus/event-bus.d.ts.map +1 -1
  42. package/dist/file/provider.d.ts +1 -8
  43. package/dist/file/provider.d.ts.map +1 -1
  44. package/dist/file/service.d.ts +12 -12
  45. package/dist/file/service.d.ts.map +1 -1
  46. package/dist/fulfillment/mutations/fulfillment.d.ts +3 -1
  47. package/dist/fulfillment/mutations/fulfillment.d.ts.map +1 -1
  48. package/dist/fulfillment/mutations/service-zone.d.ts +3 -3
  49. package/dist/fulfillment/mutations/service-zone.d.ts.map +1 -1
  50. package/dist/fulfillment/mutations/shipping-option.d.ts +0 -22
  51. package/dist/fulfillment/mutations/shipping-option.d.ts.map +1 -1
  52. package/dist/fulfillment/mutations/shipping-profile.d.ts +20 -2
  53. package/dist/fulfillment/mutations/shipping-profile.d.ts.map +1 -1
  54. package/dist/fulfillment/service.d.ts +71 -32
  55. package/dist/fulfillment/service.d.ts.map +1 -1
  56. package/dist/http/currency/admin/entities.d.ts +14 -0
  57. package/dist/http/currency/admin/entities.d.ts.map +1 -0
  58. package/dist/http/{fulfillment/admin/geo-zone.js → currency/admin/entities.js} +1 -1
  59. package/dist/http/currency/admin/entities.js.map +1 -0
  60. package/dist/http/currency/admin/index.d.ts +2 -0
  61. package/dist/http/currency/admin/index.d.ts.map +1 -0
  62. package/dist/http/{tax → currency}/admin/index.js +1 -2
  63. package/dist/http/currency/admin/index.js.map +1 -0
  64. package/dist/http/currency/index.d.ts.map +1 -0
  65. package/dist/http/currency/index.js.map +1 -0
  66. package/dist/http/file/admin.d.ts +5 -0
  67. package/dist/http/file/admin.d.ts.map +1 -0
  68. package/dist/http/{product → file}/admin.js.map +1 -1
  69. package/dist/http/file/common.d.ts +11 -0
  70. package/dist/http/file/common.d.ts.map +1 -0
  71. package/dist/{inventory → http/file}/common.js.map +1 -1
  72. package/dist/http/file/index.d.ts +3 -0
  73. package/dist/http/file/index.d.ts.map +1 -0
  74. package/dist/{inventory/bundle.js → http/file/index.js} +3 -3
  75. package/dist/http/file/index.js.map +1 -0
  76. package/dist/http/file/store.d.ts +4 -0
  77. package/dist/http/file/store.d.ts.map +1 -0
  78. package/dist/http/{product → file}/store.js.map +1 -1
  79. package/dist/http/fulfillment/admin/entitites.d.ts +62 -0
  80. package/dist/http/fulfillment/admin/entitites.d.ts.map +1 -0
  81. package/dist/http/fulfillment/admin/entitites.js +3 -0
  82. package/dist/http/fulfillment/admin/entitites.js.map +1 -0
  83. package/dist/http/fulfillment/admin/index.d.ts +3 -12
  84. package/dist/http/fulfillment/admin/index.d.ts.map +1 -1
  85. package/dist/http/fulfillment/admin/index.js +3 -12
  86. package/dist/http/fulfillment/admin/index.js.map +1 -1
  87. package/dist/http/fulfillment/admin/payloads.d.ts +41 -0
  88. package/dist/http/fulfillment/admin/payloads.d.ts.map +1 -0
  89. package/dist/http/fulfillment/admin/payloads.js +3 -0
  90. package/dist/http/fulfillment/admin/payloads.js.map +1 -0
  91. package/dist/http/fulfillment/admin/responses.d.ts +5 -0
  92. package/dist/http/fulfillment/admin/responses.d.ts.map +1 -0
  93. package/dist/http/fulfillment/admin/responses.js +3 -0
  94. package/dist/http/fulfillment/admin/responses.js.map +1 -0
  95. package/dist/http/fulfillment-provider/admin/entities.d.ts +5 -0
  96. package/dist/http/fulfillment-provider/admin/entities.d.ts.map +1 -0
  97. package/dist/http/fulfillment-provider/admin/entities.js +3 -0
  98. package/dist/http/fulfillment-provider/admin/entities.js.map +1 -0
  99. package/dist/http/fulfillment-provider/admin/index.d.ts +4 -0
  100. package/dist/http/fulfillment-provider/admin/index.d.ts.map +1 -0
  101. package/dist/http/fulfillment-provider/admin/index.js +20 -0
  102. package/dist/http/fulfillment-provider/admin/index.js.map +1 -0
  103. package/dist/http/fulfillment-provider/admin/queries.d.ts +7 -0
  104. package/dist/http/fulfillment-provider/admin/queries.d.ts.map +1 -0
  105. package/dist/http/{pricing/price.js → fulfillment-provider/admin/queries.js} +1 -1
  106. package/dist/http/fulfillment-provider/admin/queries.js.map +1 -0
  107. package/dist/http/fulfillment-provider/admin/responses.d.ts +7 -0
  108. package/dist/http/fulfillment-provider/admin/responses.d.ts.map +1 -0
  109. package/dist/http/{inventory/inventory.js → fulfillment-provider/admin/responses.js} +1 -1
  110. package/dist/http/fulfillment-provider/admin/responses.js.map +1 -0
  111. package/dist/http/fulfillment-provider/index.d.ts +2 -0
  112. package/dist/http/fulfillment-provider/index.d.ts.map +1 -0
  113. package/dist/{region__legacy → http/fulfillment-provider}/index.js +1 -1
  114. package/dist/http/fulfillment-provider/index.js.map +1 -0
  115. package/dist/http/fulfillment-set/admin/entities.d.ts +33 -0
  116. package/dist/http/fulfillment-set/admin/entities.d.ts.map +1 -0
  117. package/dist/http/fulfillment-set/admin/entities.js +3 -0
  118. package/dist/http/fulfillment-set/admin/entities.js.map +1 -0
  119. package/dist/http/fulfillment-set/admin/index.d.ts +4 -0
  120. package/dist/http/fulfillment-set/admin/index.d.ts.map +1 -0
  121. package/dist/http/fulfillment-set/admin/index.js +20 -0
  122. package/dist/http/fulfillment-set/admin/index.js.map +1 -0
  123. package/dist/http/fulfillment-set/admin/payloads.d.ts +56 -0
  124. package/dist/http/fulfillment-set/admin/payloads.d.ts.map +1 -0
  125. package/dist/http/fulfillment-set/admin/payloads.js +3 -0
  126. package/dist/http/fulfillment-set/admin/payloads.js.map +1 -0
  127. package/dist/http/fulfillment-set/admin/queries.d.ts +12 -0
  128. package/dist/http/fulfillment-set/admin/queries.d.ts.map +1 -0
  129. package/dist/http/{product/admin.js → fulfillment-set/admin/queries.js} +1 -1
  130. package/dist/http/fulfillment-set/admin/queries.js.map +1 -0
  131. package/dist/http/fulfillment-set/admin/responses.d.ts +13 -0
  132. package/dist/http/fulfillment-set/admin/responses.d.ts.map +1 -0
  133. package/dist/http/fulfillment-set/admin/responses.js +3 -0
  134. package/dist/http/fulfillment-set/admin/responses.js.map +1 -0
  135. package/dist/http/fulfillment-set/index.d.ts +2 -0
  136. package/dist/http/fulfillment-set/index.d.ts.map +1 -0
  137. package/dist/http/fulfillment-set/index.js +18 -0
  138. package/dist/http/fulfillment-set/index.js.map +1 -0
  139. package/dist/http/index.d.ts +12 -1
  140. package/dist/http/index.d.ts.map +1 -1
  141. package/dist/http/index.js +12 -1
  142. package/dist/http/index.js.map +1 -1
  143. package/dist/http/inventory/{inventory.d.ts → admin/entities.d.ts} +2 -10
  144. package/dist/http/inventory/admin/entities.d.ts.map +1 -0
  145. package/dist/http/inventory/admin/entities.js +3 -0
  146. package/dist/http/inventory/admin/entities.js.map +1 -0
  147. package/dist/http/inventory/admin/index.d.ts +5 -0
  148. package/dist/http/inventory/admin/index.d.ts.map +1 -0
  149. package/dist/http/inventory/admin/index.js +21 -0
  150. package/dist/http/inventory/admin/index.js.map +1 -0
  151. package/dist/http/inventory/admin/payloads.d.ts +19 -0
  152. package/dist/http/inventory/admin/payloads.d.ts.map +1 -0
  153. package/dist/http/inventory/admin/payloads.js +3 -0
  154. package/dist/http/inventory/admin/payloads.js.map +1 -0
  155. package/dist/http/inventory/admin/queries.d.ts +18 -0
  156. package/dist/http/inventory/admin/queries.d.ts.map +1 -0
  157. package/dist/http/inventory/admin/queries.js +3 -0
  158. package/dist/http/inventory/admin/queries.js.map +1 -0
  159. package/dist/http/inventory/admin/responses.d.ts +10 -0
  160. package/dist/http/inventory/admin/responses.d.ts.map +1 -0
  161. package/dist/http/inventory/admin/responses.js +3 -0
  162. package/dist/http/inventory/admin/responses.js.map +1 -0
  163. package/dist/http/inventory/index.d.ts +1 -2
  164. package/dist/http/inventory/index.d.ts.map +1 -1
  165. package/dist/http/inventory/index.js +1 -2
  166. package/dist/http/inventory/index.js.map +1 -1
  167. package/dist/http/inventory-level/admin/entities.d.ts +11 -0
  168. package/dist/http/inventory-level/admin/entities.d.ts.map +1 -0
  169. package/dist/http/inventory-level/admin/entities.js +3 -0
  170. package/dist/http/inventory-level/admin/entities.js.map +1 -0
  171. package/dist/http/inventory-level/admin/index.d.ts +5 -0
  172. package/dist/http/inventory-level/admin/index.d.ts.map +1 -0
  173. package/dist/http/inventory-level/admin/index.js +21 -0
  174. package/dist/http/inventory-level/admin/index.js.map +1 -0
  175. package/dist/http/inventory-level/admin/payloads.d.ts +15 -0
  176. package/dist/http/inventory-level/admin/payloads.d.ts.map +1 -0
  177. package/dist/http/inventory-level/admin/payloads.js +3 -0
  178. package/dist/http/inventory-level/admin/payloads.js.map +1 -0
  179. package/dist/http/inventory-level/admin/queries.d.ts +5 -0
  180. package/dist/http/inventory-level/admin/queries.d.ts.map +1 -0
  181. package/dist/http/inventory-level/admin/queries.js +3 -0
  182. package/dist/http/inventory-level/admin/queries.js.map +1 -0
  183. package/dist/http/inventory-level/admin/responses.d.ts +9 -0
  184. package/dist/http/inventory-level/admin/responses.d.ts.map +1 -0
  185. package/dist/http/inventory-level/admin/responses.js +3 -0
  186. package/dist/http/inventory-level/admin/responses.js.map +1 -0
  187. package/dist/http/inventory-level/index.d.ts +2 -0
  188. package/dist/http/inventory-level/index.d.ts.map +1 -0
  189. package/dist/http/inventory-level/index.js +18 -0
  190. package/dist/http/inventory-level/index.js.map +1 -0
  191. package/dist/http/order/admin.d.ts +15 -1
  192. package/dist/http/order/admin.d.ts.map +1 -1
  193. package/dist/http/order/common.d.ts +2 -0
  194. package/dist/http/order/common.d.ts.map +1 -1
  195. package/dist/http/price-list/admin/entities.d.ts +21 -0
  196. package/dist/http/price-list/admin/entities.d.ts.map +1 -0
  197. package/dist/http/price-list/admin/entities.js +3 -0
  198. package/dist/http/price-list/admin/entities.js.map +1 -0
  199. package/dist/http/price-list/admin/index.d.ts +5 -0
  200. package/dist/http/price-list/admin/index.d.ts.map +1 -0
  201. package/dist/http/price-list/admin/index.js +21 -0
  202. package/dist/http/price-list/admin/index.js.map +1 -0
  203. package/dist/http/price-list/admin/payloads.d.ts +46 -0
  204. package/dist/http/price-list/admin/payloads.d.ts.map +1 -0
  205. package/dist/http/price-list/admin/payloads.js +3 -0
  206. package/dist/http/price-list/admin/payloads.js.map +1 -0
  207. package/dist/http/price-list/admin/queries.d.ts +14 -0
  208. package/dist/http/price-list/admin/queries.d.ts.map +1 -0
  209. package/dist/http/price-list/admin/queries.js +3 -0
  210. package/dist/http/price-list/admin/queries.js.map +1 -0
  211. package/dist/http/price-list/admin/responses.d.ts +12 -0
  212. package/dist/http/price-list/admin/responses.d.ts.map +1 -0
  213. package/dist/http/price-list/admin/responses.js +3 -0
  214. package/dist/http/price-list/admin/responses.js.map +1 -0
  215. package/dist/http/price-list/index.d.ts +2 -0
  216. package/dist/http/price-list/index.d.ts.map +1 -0
  217. package/dist/http/price-list/index.js +18 -0
  218. package/dist/http/price-list/index.js.map +1 -0
  219. package/dist/http/pricing/admin/entities.d.ts +32 -0
  220. package/dist/http/pricing/admin/entities.d.ts.map +1 -0
  221. package/dist/http/pricing/admin/entities.js +3 -0
  222. package/dist/http/pricing/admin/entities.js.map +1 -0
  223. package/dist/http/pricing/admin/index.d.ts +2 -0
  224. package/dist/http/pricing/admin/index.d.ts.map +1 -0
  225. package/dist/http/pricing/admin/index.js +18 -0
  226. package/dist/http/pricing/admin/index.js.map +1 -0
  227. package/dist/http/pricing/index.d.ts +1 -1
  228. package/dist/http/pricing/index.js +1 -1
  229. package/dist/http/product/admin/entitites.d.ts +26 -0
  230. package/dist/http/product/admin/entitites.d.ts.map +1 -0
  231. package/dist/http/product/admin/entitites.js +3 -0
  232. package/dist/http/product/admin/entitites.js.map +1 -0
  233. package/dist/http/product/admin/index.d.ts +5 -0
  234. package/dist/http/product/admin/index.d.ts.map +1 -0
  235. package/dist/http/product/admin/index.js +21 -0
  236. package/dist/http/product/admin/index.js.map +1 -0
  237. package/dist/http/product/admin/payloads.d.ts +152 -0
  238. package/dist/http/product/admin/payloads.d.ts.map +1 -0
  239. package/dist/http/product/admin/payloads.js +3 -0
  240. package/dist/http/product/admin/payloads.js.map +1 -0
  241. package/dist/http/product/admin/queries.d.ts +12 -0
  242. package/dist/http/product/admin/queries.d.ts.map +1 -0
  243. package/dist/http/product/admin/queries.js +3 -0
  244. package/dist/http/product/admin/queries.js.map +1 -0
  245. package/dist/http/product/admin/responses.d.ts +35 -0
  246. package/dist/http/product/admin/responses.d.ts.map +1 -0
  247. package/dist/http/product/admin/responses.js +3 -0
  248. package/dist/http/product/admin/responses.js.map +1 -0
  249. package/dist/http/product/common.d.ts +72 -106
  250. package/dist/http/product/common.d.ts.map +1 -1
  251. package/dist/http/product/store/entitites.d.ts +19 -0
  252. package/dist/http/product/store/entitites.d.ts.map +1 -0
  253. package/dist/http/product/store/entitites.js +3 -0
  254. package/dist/http/product/store/entitites.js.map +1 -0
  255. package/dist/http/product/store/index.d.ts +4 -0
  256. package/dist/http/product/store/index.d.ts.map +1 -0
  257. package/dist/http/product/store/index.js +20 -0
  258. package/dist/http/product/store/index.js.map +1 -0
  259. package/dist/http/product/store/queries.d.ts +13 -0
  260. package/dist/http/product/store/queries.d.ts.map +1 -0
  261. package/dist/http/product/store/queries.js +3 -0
  262. package/dist/http/product/store/queries.js.map +1 -0
  263. package/dist/http/product/store/responses.d.ts +9 -0
  264. package/dist/http/product/store/responses.d.ts.map +1 -0
  265. package/dist/http/product/store/responses.js +3 -0
  266. package/dist/http/product/store/responses.js.map +1 -0
  267. package/dist/http/product-category/admin/entities.d.ts +8 -0
  268. package/dist/http/product-category/admin/entities.d.ts.map +1 -0
  269. package/dist/http/product-category/admin/entities.js +3 -0
  270. package/dist/http/product-category/admin/entities.js.map +1 -0
  271. package/dist/http/product-category/admin/index.d.ts +5 -0
  272. package/dist/http/product-category/admin/index.d.ts.map +1 -0
  273. package/dist/http/product-category/admin/index.js +21 -0
  274. package/dist/http/product-category/admin/index.js.map +1 -0
  275. package/dist/http/product-category/admin/payloads.d.ts +25 -0
  276. package/dist/http/product-category/admin/payloads.d.ts.map +1 -0
  277. package/dist/http/product-category/admin/payloads.js +3 -0
  278. package/dist/http/product-category/admin/payloads.js.map +1 -0
  279. package/dist/http/product-category/admin/queries.d.ts +8 -0
  280. package/dist/http/product-category/admin/queries.d.ts.map +1 -0
  281. package/dist/http/product-category/admin/queries.js +3 -0
  282. package/dist/http/product-category/admin/queries.js.map +1 -0
  283. package/dist/http/product-category/admin/responses.d.ts +12 -0
  284. package/dist/http/product-category/admin/responses.d.ts.map +1 -0
  285. package/dist/http/product-category/admin/responses.js +3 -0
  286. package/dist/http/product-category/admin/responses.js.map +1 -0
  287. package/dist/http/product-category/common.d.ts +31 -7
  288. package/dist/http/product-category/common.d.ts.map +1 -1
  289. package/dist/http/product-category/store/entities.d.ts +6 -0
  290. package/dist/http/product-category/store/entities.d.ts.map +1 -0
  291. package/dist/http/product-category/store/entities.js +3 -0
  292. package/dist/http/product-category/store/entities.js.map +1 -0
  293. package/dist/http/product-category/store/index.d.ts +4 -0
  294. package/dist/http/product-category/store/index.d.ts.map +1 -0
  295. package/dist/http/product-category/store/index.js +20 -0
  296. package/dist/http/product-category/store/index.js.map +1 -0
  297. package/dist/http/product-category/store/queries.d.ts +6 -0
  298. package/dist/http/product-category/store/queries.d.ts.map +1 -0
  299. package/dist/http/product-category/store/queries.js +3 -0
  300. package/dist/http/product-category/store/queries.js.map +1 -0
  301. package/dist/http/product-category/store/responses.d.ts +10 -0
  302. package/dist/http/product-category/store/responses.d.ts.map +1 -0
  303. package/dist/http/product-category/store/responses.js +3 -0
  304. package/dist/http/product-category/store/responses.js.map +1 -0
  305. package/dist/http/product-type/admin/entities.d.ts +4 -0
  306. package/dist/http/product-type/admin/entities.d.ts.map +1 -0
  307. package/dist/http/product-type/admin/entities.js +3 -0
  308. package/dist/http/product-type/admin/entities.js.map +1 -0
  309. package/dist/http/product-type/admin/index.d.ts +5 -0
  310. package/dist/http/product-type/admin/index.d.ts.map +1 -0
  311. package/dist/http/product-type/admin/index.js +21 -0
  312. package/dist/http/product-type/admin/index.js.map +1 -0
  313. package/dist/http/product-type/admin/payloads.d.ts +9 -0
  314. package/dist/http/product-type/admin/payloads.d.ts.map +1 -0
  315. package/dist/http/product-type/admin/payloads.js +3 -0
  316. package/dist/http/product-type/admin/payloads.js.map +1 -0
  317. package/dist/http/product-type/admin/queries.d.ts +13 -0
  318. package/dist/http/product-type/admin/queries.d.ts.map +1 -0
  319. package/dist/http/product-type/admin/queries.js +3 -0
  320. package/dist/http/product-type/admin/queries.js.map +1 -0
  321. package/dist/http/product-type/admin/responses.d.ts +12 -0
  322. package/dist/http/product-type/admin/responses.d.ts.map +1 -0
  323. package/dist/http/product-type/admin/responses.js +3 -0
  324. package/dist/http/product-type/admin/responses.js.map +1 -0
  325. package/dist/http/product-type/common.d.ts +9 -0
  326. package/dist/http/product-type/common.d.ts.map +1 -0
  327. package/dist/{region__legacy → http/product-type}/common.js.map +1 -1
  328. package/dist/http/product-type/index.d.ts +3 -0
  329. package/dist/http/product-type/index.d.ts.map +1 -0
  330. package/dist/http/product-type/index.js +19 -0
  331. package/dist/http/product-type/index.js.map +1 -0
  332. package/dist/http/product-type/store/entities.d.ts +4 -0
  333. package/dist/http/product-type/store/entities.d.ts.map +1 -0
  334. package/dist/http/product-type/store/entities.js +3 -0
  335. package/dist/http/product-type/store/entities.js.map +1 -0
  336. package/dist/http/product-type/store/index.d.ts +2 -0
  337. package/dist/http/product-type/store/index.d.ts.map +1 -0
  338. package/dist/http/product-type/store/index.js +18 -0
  339. package/dist/http/product-type/store/index.js.map +1 -0
  340. package/dist/http/promotion/admin/promotion-rule.d.ts +1 -1
  341. package/dist/http/promotion/admin/promotion-rule.d.ts.map +1 -1
  342. package/dist/http/promotion/admin/rule-attribute-options.d.ts +5 -0
  343. package/dist/http/promotion/admin/rule-attribute-options.d.ts.map +1 -1
  344. package/dist/http/sales-channel/admin/entities.d.ts +11 -0
  345. package/dist/http/sales-channel/admin/entities.d.ts.map +1 -0
  346. package/dist/http/sales-channel/admin/entities.js +3 -0
  347. package/dist/http/sales-channel/admin/entities.js.map +1 -0
  348. package/dist/http/sales-channel/admin/index.d.ts +4 -1
  349. package/dist/http/sales-channel/admin/index.d.ts.map +1 -1
  350. package/dist/http/sales-channel/admin/index.js +4 -1
  351. package/dist/http/sales-channel/admin/index.js.map +1 -1
  352. package/dist/http/sales-channel/admin/payloads.d.ts +17 -0
  353. package/dist/http/sales-channel/admin/payloads.d.ts.map +1 -0
  354. package/dist/http/sales-channel/admin/payloads.js +3 -0
  355. package/dist/http/sales-channel/admin/payloads.js.map +1 -0
  356. package/dist/http/sales-channel/admin/queries.d.ts +15 -0
  357. package/dist/http/sales-channel/admin/queries.d.ts.map +1 -0
  358. package/dist/http/sales-channel/admin/queries.js +3 -0
  359. package/dist/http/sales-channel/admin/queries.js.map +1 -0
  360. package/dist/http/sales-channel/admin/responses.d.ts +11 -0
  361. package/dist/http/sales-channel/admin/responses.d.ts.map +1 -0
  362. package/dist/http/sales-channel/admin/responses.js +3 -0
  363. package/dist/http/sales-channel/admin/responses.js.map +1 -0
  364. package/dist/http/shipping-option/admin/entities.d.ts +54 -0
  365. package/dist/http/shipping-option/admin/entities.d.ts.map +1 -0
  366. package/dist/http/shipping-option/admin/entities.js +3 -0
  367. package/dist/http/shipping-option/admin/entities.js.map +1 -0
  368. package/dist/http/shipping-option/admin/index.d.ts +5 -0
  369. package/dist/http/shipping-option/admin/index.d.ts.map +1 -0
  370. package/dist/http/shipping-option/admin/index.js +21 -0
  371. package/dist/http/shipping-option/admin/index.js.map +1 -0
  372. package/dist/http/shipping-option/admin/payloads.d.ts +60 -0
  373. package/dist/http/shipping-option/admin/payloads.d.ts.map +1 -0
  374. package/dist/http/shipping-option/admin/payloads.js +3 -0
  375. package/dist/http/shipping-option/admin/payloads.js.map +1 -0
  376. package/dist/http/shipping-option/admin/queries.d.ts +14 -0
  377. package/dist/http/shipping-option/admin/queries.d.ts.map +1 -0
  378. package/dist/http/shipping-option/admin/queries.js +3 -0
  379. package/dist/http/shipping-option/admin/queries.js.map +1 -0
  380. package/dist/http/shipping-option/admin/responses.d.ts +20 -0
  381. package/dist/http/shipping-option/admin/responses.d.ts.map +1 -0
  382. package/dist/http/shipping-option/admin/responses.js +3 -0
  383. package/dist/http/shipping-option/admin/responses.js.map +1 -0
  384. package/dist/http/shipping-option/index.d.ts +2 -0
  385. package/dist/http/shipping-option/index.d.ts.map +1 -0
  386. package/dist/http/shipping-option/index.js +18 -0
  387. package/dist/http/shipping-option/index.js.map +1 -0
  388. package/dist/http/shipping-profile/admin/entities.d.ts +10 -0
  389. package/dist/http/shipping-profile/admin/entities.d.ts.map +1 -0
  390. package/dist/http/shipping-profile/admin/entities.js +3 -0
  391. package/dist/http/shipping-profile/admin/entities.js.map +1 -0
  392. package/dist/http/shipping-profile/admin/index.d.ts +5 -0
  393. package/dist/http/shipping-profile/admin/index.d.ts.map +1 -0
  394. package/dist/http/shipping-profile/admin/index.js +21 -0
  395. package/dist/http/shipping-profile/admin/index.js.map +1 -0
  396. package/dist/http/shipping-profile/admin/payloads.d.ts +11 -0
  397. package/dist/http/shipping-profile/admin/payloads.d.ts.map +1 -0
  398. package/dist/http/shipping-profile/admin/payloads.js +3 -0
  399. package/dist/http/shipping-profile/admin/payloads.js.map +1 -0
  400. package/dist/http/shipping-profile/admin/queries.d.ts +14 -0
  401. package/dist/http/shipping-profile/admin/queries.d.ts.map +1 -0
  402. package/dist/http/shipping-profile/admin/queries.js +3 -0
  403. package/dist/http/shipping-profile/admin/queries.js.map +1 -0
  404. package/dist/http/shipping-profile/admin/responses.d.ts +11 -0
  405. package/dist/http/shipping-profile/admin/responses.d.ts.map +1 -0
  406. package/dist/http/shipping-profile/admin/responses.js +3 -0
  407. package/dist/http/shipping-profile/admin/responses.js.map +1 -0
  408. package/dist/http/shipping-profile/index.d.ts +2 -0
  409. package/dist/http/shipping-profile/index.d.ts.map +1 -0
  410. package/dist/http/shipping-profile/index.js +18 -0
  411. package/dist/http/shipping-profile/index.js.map +1 -0
  412. package/dist/http/stock-locations/admin/entities.d.ts +22 -0
  413. package/dist/http/stock-locations/admin/entities.d.ts.map +1 -0
  414. package/dist/http/stock-locations/admin/entities.js +3 -0
  415. package/dist/http/stock-locations/admin/entities.js.map +1 -0
  416. package/dist/http/stock-locations/admin/index.d.ts +5 -0
  417. package/dist/http/stock-locations/admin/index.d.ts.map +1 -0
  418. package/dist/http/stock-locations/admin/index.js +21 -0
  419. package/dist/http/stock-locations/admin/index.js.map +1 -0
  420. package/dist/http/stock-locations/admin/payloads.d.ts +32 -0
  421. package/dist/http/stock-locations/admin/payloads.d.ts.map +1 -0
  422. package/dist/http/stock-locations/admin/payloads.js +3 -0
  423. package/dist/http/stock-locations/admin/payloads.js.map +1 -0
  424. package/dist/http/stock-locations/admin/queries.d.ts +11 -0
  425. package/dist/http/stock-locations/admin/queries.d.ts.map +1 -0
  426. package/dist/http/stock-locations/admin/queries.js +3 -0
  427. package/dist/http/stock-locations/admin/queries.js.map +1 -0
  428. package/dist/http/stock-locations/admin/responses.d.ts +12 -0
  429. package/dist/http/stock-locations/admin/responses.d.ts.map +1 -0
  430. package/dist/http/stock-locations/admin/responses.js +3 -0
  431. package/dist/http/stock-locations/admin/responses.js.map +1 -0
  432. package/dist/http/stock-locations/index.d.ts +1 -1
  433. package/dist/http/stock-locations/index.d.ts.map +1 -1
  434. package/dist/http/stock-locations/index.js +1 -1
  435. package/dist/http/stock-locations/index.js.map +1 -1
  436. package/dist/http/store/admin/entities.d.ts +23 -0
  437. package/dist/http/store/admin/entities.d.ts.map +1 -0
  438. package/dist/http/store/admin/entities.js +3 -0
  439. package/dist/http/store/admin/entities.js.map +1 -0
  440. package/dist/http/store/admin/index.d.ts +5 -0
  441. package/dist/http/store/admin/index.d.ts.map +1 -0
  442. package/dist/http/store/admin/index.js +21 -0
  443. package/dist/http/store/admin/index.js.map +1 -0
  444. package/dist/http/store/admin/payloads.d.ts +14 -0
  445. package/dist/http/store/admin/payloads.d.ts.map +1 -0
  446. package/dist/http/store/admin/payloads.js +3 -0
  447. package/dist/http/store/admin/payloads.js.map +1 -0
  448. package/dist/http/store/admin/queries.d.ts +10 -0
  449. package/dist/http/store/admin/queries.d.ts.map +1 -0
  450. package/dist/http/store/admin/queries.js +3 -0
  451. package/dist/http/store/admin/queries.js.map +1 -0
  452. package/dist/http/store/admin/responses.d.ts +10 -0
  453. package/dist/http/store/admin/responses.d.ts.map +1 -0
  454. package/dist/http/store/admin/responses.js +3 -0
  455. package/dist/http/store/admin/responses.js.map +1 -0
  456. package/dist/http/store/index.d.ts +2 -0
  457. package/dist/http/store/index.d.ts.map +1 -0
  458. package/dist/http/store/index.js +18 -0
  459. package/dist/http/store/index.js.map +1 -0
  460. package/dist/http/tax-rate/admin/entities.d.ts +22 -0
  461. package/dist/http/tax-rate/admin/entities.d.ts.map +1 -0
  462. package/dist/http/tax-rate/admin/entities.js +3 -0
  463. package/dist/http/tax-rate/admin/entities.js.map +1 -0
  464. package/dist/http/tax-rate/admin/index.d.ts +5 -0
  465. package/dist/http/tax-rate/admin/index.d.ts.map +1 -0
  466. package/dist/http/tax-rate/admin/index.js +21 -0
  467. package/dist/http/tax-rate/admin/index.js.map +1 -0
  468. package/dist/http/tax-rate/admin/payloads.d.ts +25 -0
  469. package/dist/http/tax-rate/admin/payloads.d.ts.map +1 -0
  470. package/dist/http/tax-rate/admin/payloads.js +3 -0
  471. package/dist/http/tax-rate/admin/payloads.js.map +1 -0
  472. package/dist/http/tax-rate/admin/queries.d.ts +16 -0
  473. package/dist/http/tax-rate/admin/queries.d.ts.map +1 -0
  474. package/dist/http/tax-rate/admin/queries.js +3 -0
  475. package/dist/http/tax-rate/admin/queries.js.map +1 -0
  476. package/dist/http/tax-rate/admin/responses.d.ts +11 -0
  477. package/dist/http/tax-rate/admin/responses.d.ts.map +1 -0
  478. package/dist/http/tax-rate/admin/responses.js +3 -0
  479. package/dist/http/tax-rate/admin/responses.js.map +1 -0
  480. package/dist/http/tax-rate/index.d.ts +2 -0
  481. package/dist/http/tax-rate/index.d.ts.map +1 -0
  482. package/dist/http/tax-rate/index.js +18 -0
  483. package/dist/http/tax-rate/index.js.map +1 -0
  484. package/dist/http/tax-region/admin/entities.d.ts +21 -0
  485. package/dist/http/tax-region/admin/entities.d.ts.map +1 -0
  486. package/dist/http/tax-region/admin/entities.js +3 -0
  487. package/dist/http/tax-region/admin/entities.js.map +1 -0
  488. package/dist/http/tax-region/admin/index.d.ts +5 -0
  489. package/dist/http/tax-region/admin/index.d.ts.map +1 -0
  490. package/dist/http/tax-region/admin/index.js +21 -0
  491. package/dist/http/tax-region/admin/index.js.map +1 -0
  492. package/dist/http/tax-region/admin/payloads.d.ts +14 -0
  493. package/dist/http/tax-region/admin/payloads.d.ts.map +1 -0
  494. package/dist/http/tax-region/admin/payloads.js +3 -0
  495. package/dist/http/tax-region/admin/payloads.js.map +1 -0
  496. package/dist/http/tax-region/admin/queries.d.ts +14 -0
  497. package/dist/http/tax-region/admin/queries.d.ts.map +1 -0
  498. package/dist/http/tax-region/admin/queries.js +3 -0
  499. package/dist/http/tax-region/admin/queries.js.map +1 -0
  500. package/dist/http/tax-region/admin/responses.d.ts +11 -0
  501. package/dist/http/tax-region/admin/responses.d.ts.map +1 -0
  502. package/dist/http/tax-region/admin/responses.js +3 -0
  503. package/dist/http/tax-region/admin/responses.js.map +1 -0
  504. package/dist/http/tax-region/index.d.ts +2 -0
  505. package/dist/http/tax-region/index.d.ts.map +1 -0
  506. package/dist/http/tax-region/index.js +18 -0
  507. package/dist/http/tax-region/index.js.map +1 -0
  508. package/dist/index.d.ts +1 -1
  509. package/dist/index.d.ts.map +1 -1
  510. package/dist/index.js +1 -1
  511. package/dist/index.js.map +1 -1
  512. package/dist/inventory/common/reservation-item.d.ts +5 -1
  513. package/dist/inventory/common/reservation-item.d.ts.map +1 -1
  514. package/dist/inventory/index.d.ts +1 -2
  515. package/dist/inventory/index.d.ts.map +1 -1
  516. package/dist/inventory/index.js +1 -15
  517. package/dist/inventory/index.js.map +1 -1
  518. package/dist/inventory/mutations/inventory-level.d.ts +0 -4
  519. package/dist/inventory/mutations/inventory-level.d.ts.map +1 -1
  520. package/dist/inventory/mutations/reservation-item.d.ts +11 -7
  521. package/dist/inventory/mutations/reservation-item.d.ts.map +1 -1
  522. package/dist/inventory/service.d.ts +671 -640
  523. package/dist/inventory/service.d.ts.map +1 -1
  524. package/dist/joiner/index.d.ts +5 -2
  525. package/dist/joiner/index.d.ts.map +1 -1
  526. package/dist/modules-sdk/index.d.ts +17 -11
  527. package/dist/modules-sdk/index.d.ts.map +1 -1
  528. package/dist/modules-sdk/index.js +1 -1
  529. package/dist/modules-sdk/index.js.map +1 -1
  530. package/dist/modules-sdk/{internal-module-service.d.ts → medusa-internal-service.d.ts} +22 -18
  531. package/dist/modules-sdk/medusa-internal-service.d.ts.map +1 -0
  532. package/dist/{http/fulfillment/admin/fulfillment-label.js → modules-sdk/medusa-internal-service.js} +1 -1
  533. package/dist/modules-sdk/medusa-internal-service.js.map +1 -0
  534. package/dist/notification/provider.d.ts +0 -6
  535. package/dist/notification/provider.d.ts.map +1 -1
  536. package/dist/notification/service.d.ts +15 -15
  537. package/dist/notification/service.d.ts.map +1 -1
  538. package/dist/order/common.d.ts +57 -4
  539. package/dist/order/common.d.ts.map +1 -1
  540. package/dist/order/mutations.d.ts +74 -53
  541. package/dist/order/mutations.d.ts.map +1 -1
  542. package/dist/order/service.d.ts +44 -30
  543. package/dist/order/service.d.ts.map +1 -1
  544. package/dist/payment/common.d.ts +2 -2
  545. package/dist/payment/common.d.ts.map +1 -1
  546. package/dist/pricing/common/index.d.ts +0 -2
  547. package/dist/pricing/common/index.d.ts.map +1 -1
  548. package/dist/pricing/common/index.js +0 -2
  549. package/dist/pricing/common/index.js.map +1 -1
  550. package/dist/pricing/common/money-amount.d.ts +2 -2
  551. package/dist/pricing/common/money-amount.d.ts.map +1 -1
  552. package/dist/pricing/common/price-list.d.ts +25 -125
  553. package/dist/pricing/common/price-list.d.ts.map +1 -1
  554. package/dist/pricing/common/price-rule.d.ts +8 -16
  555. package/dist/pricing/common/price-rule.d.ts.map +1 -1
  556. package/dist/pricing/common/price-set.d.ts +6 -55
  557. package/dist/pricing/common/price-set.d.ts.map +1 -1
  558. package/dist/pricing/service.d.ts +31 -324
  559. package/dist/pricing/service.d.ts.map +1 -1
  560. package/dist/pricing/workflows.d.ts +5 -5
  561. package/dist/pricing/workflows.d.ts.map +1 -1
  562. package/dist/product/common.d.ts +99 -79
  563. package/dist/product/common.d.ts.map +1 -1
  564. package/dist/product/service.d.ts +429 -207
  565. package/dist/product/service.d.ts.map +1 -1
  566. package/dist/promotion/common/application-method.d.ts +1 -1
  567. package/dist/promotion/common/application-method.d.ts.map +1 -1
  568. package/dist/promotion/common/promotion.d.ts +4 -0
  569. package/dist/promotion/common/promotion.d.ts.map +1 -1
  570. package/dist/promotion/mutations.d.ts +6 -6
  571. package/dist/promotion/mutations.d.ts.map +1 -1
  572. package/dist/promotion/service.d.ts +29 -29
  573. package/dist/promotion/service.d.ts.map +1 -1
  574. package/dist/region/common.d.ts.map +1 -1
  575. package/dist/region/mutations.d.ts +4 -3
  576. package/dist/region/mutations.d.ts.map +1 -1
  577. package/dist/region/service.d.ts +31 -31
  578. package/dist/region/service.d.ts.map +1 -1
  579. package/dist/sales-channel/mutations.d.ts +5 -4
  580. package/dist/sales-channel/mutations.d.ts.map +1 -1
  581. package/dist/sales-channel/service.d.ts +28 -28
  582. package/dist/sales-channel/service.d.ts.map +1 -1
  583. package/dist/shared-context.d.ts +3 -4
  584. package/dist/shared-context.d.ts.map +1 -1
  585. package/dist/stock-location/common.d.ts +12 -17
  586. package/dist/stock-location/common.d.ts.map +1 -1
  587. package/dist/stock-location/index.d.ts +0 -1
  588. package/dist/stock-location/index.d.ts.map +1 -1
  589. package/dist/stock-location/index.js +0 -1
  590. package/dist/stock-location/index.js.map +1 -1
  591. package/dist/stock-location/service.d.ts +193 -180
  592. package/dist/stock-location/service.d.ts.map +1 -1
  593. package/dist/store/common/store.d.ts +31 -5
  594. package/dist/store/common/store.d.ts.map +1 -1
  595. package/dist/store/mutations/store.d.ts +14 -40
  596. package/dist/store/mutations/store.d.ts.map +1 -1
  597. package/dist/store/service.d.ts +32 -37
  598. package/dist/store/service.d.ts.map +1 -1
  599. package/dist/tax/mutations.d.ts +7 -6
  600. package/dist/tax/mutations.d.ts.map +1 -1
  601. package/dist/tax/service.d.ts +35 -35
  602. package/dist/tax/service.d.ts.map +1 -1
  603. package/dist/user/service.d.ts +22 -22
  604. package/dist/user/service.d.ts.map +1 -1
  605. package/dist/workflow/fulfillment/service-zones.d.ts +1 -1
  606. package/dist/workflow/fulfillment/service-zones.d.ts.map +1 -1
  607. package/dist/workflow/order/cancel-fulfillment.d.ts +6 -0
  608. package/dist/workflow/order/cancel-fulfillment.d.ts.map +1 -0
  609. package/dist/{http/fulfillment/admin/fulfillment-item.js → workflow/order/cancel-fulfillment.js} +1 -1
  610. package/dist/workflow/order/cancel-fulfillment.js.map +1 -0
  611. package/dist/workflow/order/cancel-order.d.ts +5 -0
  612. package/dist/workflow/order/cancel-order.d.ts.map +1 -0
  613. package/dist/{http/fulfillment/admin/service-zone.js → workflow/order/cancel-order.js} +1 -1
  614. package/dist/workflow/order/cancel-order.js.map +1 -0
  615. package/dist/workflow/order/create-fulfillment.d.ts +2 -2
  616. package/dist/workflow/order/create-fulfillment.d.ts.map +1 -1
  617. package/dist/workflow/order/create-return-order.d.ts +8 -7
  618. package/dist/workflow/order/create-return-order.d.ts.map +1 -1
  619. package/dist/workflow/order/create-shipment.d.ts +2 -1
  620. package/dist/workflow/order/create-shipment.d.ts.map +1 -1
  621. package/dist/workflow/order/index.d.ts +3 -0
  622. package/dist/workflow/order/index.d.ts.map +1 -1
  623. package/dist/workflow/order/index.js +3 -0
  624. package/dist/workflow/order/index.js.map +1 -1
  625. package/dist/workflow/order/receive-return.d.ts +17 -0
  626. package/dist/workflow/order/receive-return.d.ts.map +1 -0
  627. package/dist/{http/fulfillment/admin/fulfillment.js → workflow/order/receive-return.js} +1 -1
  628. package/dist/workflow/order/receive-return.js.map +1 -0
  629. package/dist/workflow/price-list/create-price-list.d.ts +1 -2
  630. package/dist/workflow/price-list/create-price-list.d.ts.map +1 -1
  631. package/dist/workflow/product-category/index.d.ts +6 -6
  632. package/dist/workflow/product-category/index.d.ts.map +1 -1
  633. package/dist/workflow/reservation/create-reservations.d.ts +3 -3
  634. package/dist/workflow/reservation/create-reservations.d.ts.map +1 -1
  635. package/dist/workflow/reservation/update-reservations.d.ts +3 -3
  636. package/dist/workflow/reservation/update-reservations.d.ts.map +1 -1
  637. package/dist/workflows/products/mutations.d.ts +2 -2
  638. package/dist/workflows/products/mutations.d.ts.map +1 -1
  639. package/dist/workflows-sdk/service.d.ts +2 -2
  640. package/dist/workflows-sdk/service.d.ts.map +1 -1
  641. package/package.json +1 -2
  642. package/dist/http/fulfillment/admin/fulfillment-address.d.ts +0 -19
  643. package/dist/http/fulfillment/admin/fulfillment-address.d.ts.map +0 -1
  644. package/dist/http/fulfillment/admin/fulfillment-address.js +0 -3
  645. package/dist/http/fulfillment/admin/fulfillment-address.js.map +0 -1
  646. package/dist/http/fulfillment/admin/fulfillment-item.d.ts +0 -14
  647. package/dist/http/fulfillment/admin/fulfillment-item.d.ts.map +0 -1
  648. package/dist/http/fulfillment/admin/fulfillment-item.js.map +0 -1
  649. package/dist/http/fulfillment/admin/fulfillment-label.d.ts +0 -11
  650. package/dist/http/fulfillment/admin/fulfillment-label.d.ts.map +0 -1
  651. package/dist/http/fulfillment/admin/fulfillment-label.js.map +0 -1
  652. package/dist/http/fulfillment/admin/fulfillment-provider.d.ts +0 -9
  653. package/dist/http/fulfillment/admin/fulfillment-provider.d.ts.map +0 -1
  654. package/dist/http/fulfillment/admin/fulfillment-provider.js +0 -3
  655. package/dist/http/fulfillment/admin/fulfillment-provider.js.map +0 -1
  656. package/dist/http/fulfillment/admin/fulfillment-set.d.ts +0 -15
  657. package/dist/http/fulfillment/admin/fulfillment-set.d.ts.map +0 -1
  658. package/dist/http/fulfillment/admin/fulfillment-set.js +0 -3
  659. package/dist/http/fulfillment/admin/fulfillment-set.js.map +0 -1
  660. package/dist/http/fulfillment/admin/fulfillment.d.ts +0 -27
  661. package/dist/http/fulfillment/admin/fulfillment.d.ts.map +0 -1
  662. package/dist/http/fulfillment/admin/fulfillment.js.map +0 -1
  663. package/dist/http/fulfillment/admin/geo-zone.d.ts +0 -14
  664. package/dist/http/fulfillment/admin/geo-zone.d.ts.map +0 -1
  665. package/dist/http/fulfillment/admin/geo-zone.js.map +0 -1
  666. package/dist/http/fulfillment/admin/service-zone.d.ts +0 -21
  667. package/dist/http/fulfillment/admin/service-zone.d.ts.map +0 -1
  668. package/dist/http/fulfillment/admin/service-zone.js.map +0 -1
  669. package/dist/http/fulfillment/admin/shipping-option-rule.d.ts +0 -13
  670. package/dist/http/fulfillment/admin/shipping-option-rule.d.ts.map +0 -1
  671. package/dist/http/fulfillment/admin/shipping-option-rule.js +0 -3
  672. package/dist/http/fulfillment/admin/shipping-option-rule.js.map +0 -1
  673. package/dist/http/fulfillment/admin/shipping-option-type.d.ts +0 -11
  674. package/dist/http/fulfillment/admin/shipping-option-type.d.ts.map +0 -1
  675. package/dist/http/fulfillment/admin/shipping-option-type.js +0 -3
  676. package/dist/http/fulfillment/admin/shipping-option-type.js.map +0 -1
  677. package/dist/http/fulfillment/admin/shipping-option.d.ts +0 -38
  678. package/dist/http/fulfillment/admin/shipping-option.d.ts.map +0 -1
  679. package/dist/http/fulfillment/admin/shipping-option.js +0 -3
  680. package/dist/http/fulfillment/admin/shipping-option.js.map +0 -1
  681. package/dist/http/fulfillment/admin/shipping-profile.d.ts +0 -19
  682. package/dist/http/fulfillment/admin/shipping-profile.d.ts.map +0 -1
  683. package/dist/http/fulfillment/admin/shipping-profile.js +0 -3
  684. package/dist/http/fulfillment/admin/shipping-profile.js.map +0 -1
  685. package/dist/http/inventory/inventory-level.d.ts +0 -20
  686. package/dist/http/inventory/inventory-level.d.ts.map +0 -1
  687. package/dist/http/inventory/inventory-level.js +0 -3
  688. package/dist/http/inventory/inventory-level.js.map +0 -1
  689. package/dist/http/inventory/inventory.d.ts.map +0 -1
  690. package/dist/http/inventory/inventory.js.map +0 -1
  691. package/dist/http/pricing/price.d.ts +0 -8
  692. package/dist/http/pricing/price.d.ts.map +0 -1
  693. package/dist/http/pricing/price.js.map +0 -1
  694. package/dist/http/product/admin.d.ts +0 -99
  695. package/dist/http/product/admin.d.ts.map +0 -1
  696. package/dist/http/product/store.d.ts +0 -33
  697. package/dist/http/product/store.d.ts.map +0 -1
  698. package/dist/http/product/store.js +0 -3
  699. package/dist/http/product-category/admin.d.ts +0 -9
  700. package/dist/http/product-category/admin.d.ts.map +0 -1
  701. package/dist/http/product-category/admin.js.map +0 -1
  702. package/dist/http/product-category/store.d.ts +0 -9
  703. package/dist/http/product-category/store.d.ts.map +0 -1
  704. package/dist/http/product-category/store.js.map +0 -1
  705. package/dist/http/sales-channel/admin/sales-channel.d.ts +0 -16
  706. package/dist/http/sales-channel/admin/sales-channel.d.ts.map +0 -1
  707. package/dist/http/sales-channel/admin/sales-channel.js +0 -3
  708. package/dist/http/sales-channel/admin/sales-channel.js.map +0 -1
  709. package/dist/http/stock-locations/common.d.ts +0 -28
  710. package/dist/http/stock-locations/common.d.ts.map +0 -1
  711. package/dist/http/stock-locations/common.js.map +0 -1
  712. package/dist/http/tax/admin/index.d.ts +0 -3
  713. package/dist/http/tax/admin/index.d.ts.map +0 -1
  714. package/dist/http/tax/admin/index.js.map +0 -1
  715. package/dist/http/tax/admin/tax-rates.d.ts +0 -28
  716. package/dist/http/tax/admin/tax-rates.d.ts.map +0 -1
  717. package/dist/http/tax/admin/tax-rates.js +0 -3
  718. package/dist/http/tax/admin/tax-rates.js.map +0 -1
  719. package/dist/http/tax/admin/tax-regions.d.ts +0 -28
  720. package/dist/http/tax/admin/tax-regions.d.ts.map +0 -1
  721. package/dist/http/tax/admin/tax-regions.js +0 -3
  722. package/dist/http/tax/admin/tax-regions.js.map +0 -1
  723. package/dist/http/tax/index.d.ts.map +0 -1
  724. package/dist/http/tax/index.js.map +0 -1
  725. package/dist/inventory/bundle.d.ts +0 -3
  726. package/dist/inventory/bundle.d.ts.map +0 -1
  727. package/dist/inventory/bundle.js.map +0 -1
  728. package/dist/inventory/common.d.ts +0 -494
  729. package/dist/inventory/common.d.ts.map +0 -1
  730. package/dist/inventory/service-next.d.ts +0 -914
  731. package/dist/inventory/service-next.d.ts.map +0 -1
  732. package/dist/inventory/service-next.js +0 -3
  733. package/dist/inventory/service-next.js.map +0 -1
  734. package/dist/modules-sdk/internal-module-service.d.ts.map +0 -1
  735. package/dist/modules-sdk/internal-module-service.js +0 -3
  736. package/dist/modules-sdk/internal-module-service.js.map +0 -1
  737. package/dist/modules-sdk/module-service.d.ts +0 -1
  738. package/dist/modules-sdk/module-service.d.ts.map +0 -1
  739. package/dist/modules-sdk/module-service.js +0 -1
  740. package/dist/modules-sdk/module-service.js.map +0 -1
  741. package/dist/pricing/common/price-set-rule-type.d.ts +0 -24
  742. package/dist/pricing/common/price-set-rule-type.d.ts.map +0 -1
  743. package/dist/pricing/common/price-set-rule-type.js +0 -3
  744. package/dist/pricing/common/price-set-rule-type.js.map +0 -1
  745. package/dist/pricing/common/rule-type.d.ts +0 -102
  746. package/dist/pricing/common/rule-type.d.ts.map +0 -1
  747. package/dist/pricing/common/rule-type.js +0 -3
  748. package/dist/pricing/common/rule-type.js.map +0 -1
  749. package/dist/region__legacy/common.d.ts +0 -44
  750. package/dist/region__legacy/common.d.ts.map +0 -1
  751. package/dist/region__legacy/common.js +0 -3
  752. package/dist/region__legacy/index.d.ts +0 -2
  753. package/dist/region__legacy/index.d.ts.map +0 -1
  754. package/dist/region__legacy/index.js.map +0 -1
  755. package/dist/stock-location/service-next.d.ts +0 -279
  756. package/dist/stock-location/service-next.d.ts.map +0 -1
  757. package/dist/stock-location/service-next.js +0 -3
  758. package/dist/stock-location/service-next.js.map +0 -1
  759. /package/dist/http/{tax → currency}/index.d.ts +0 -0
  760. /package/dist/http/{tax → currency}/index.js +0 -0
  761. /package/dist/http/{product-category → file}/admin.js +0 -0
  762. /package/dist/http/{stock-locations → file}/common.js +0 -0
  763. /package/dist/http/{product-category → file}/store.js +0 -0
  764. /package/dist/{inventory → http/product-type}/common.js +0 -0
@@ -1,5 +1,5 @@
1
1
  import { RestoreReturn, SoftDeleteReturn } from "../dal";
2
- import { CreateProductCategoryDTO, CreateProductCollectionDTO, CreateProductDTO, CreateProductOptionDTO, CreateProductTagDTO, CreateProductTypeDTO, CreateProductVariantDTO, FilterableProductCategoryProps, FilterableProductCollectionProps, FilterableProductOptionProps, FilterableProductProps, FilterableProductTagProps, FilterableProductTypeProps, FilterableProductVariantProps, ProductCategoryDTO, ProductCollectionDTO, ProductDTO, ProductOptionDTO, ProductTagDTO, ProductTypeDTO, ProductVariantDTO, UpdateProductCategoryDTO, UpdateProductCollectionDTO, UpdateProductDTO, UpdateProductOptionDTO, UpdateProductTagDTO, UpdateProductTypeDTO, UpdateProductVariantDTO, UpsertProductCollectionDTO, UpsertProductDTO, UpsertProductOptionDTO, UpsertProductTypeDTO, UpsertProductVariantDTO } from "./common";
2
+ import { CreateProductCategoryDTO, CreateProductCollectionDTO, CreateProductDTO, CreateProductOptionDTO, CreateProductTagDTO, CreateProductTypeDTO, CreateProductVariantDTO, FilterableProductCategoryProps, FilterableProductCollectionProps, FilterableProductOptionProps, FilterableProductProps, FilterableProductTagProps, FilterableProductTypeProps, FilterableProductVariantProps, ProductCategoryDTO, ProductCollectionDTO, ProductDTO, ProductOptionDTO, ProductTagDTO, ProductTypeDTO, ProductVariantDTO, UpdateProductCategoryDTO, UpdateProductCollectionDTO, UpdateProductDTO, UpdateProductOptionDTO, UpdateProductTagDTO, UpdateProductTypeDTO, UpdateProductVariantDTO, UpsertProductCategoryDTO, UpsertProductCollectionDTO, UpsertProductDTO, UpsertProductOptionDTO, UpsertProductTagDTO, UpsertProductTypeDTO, UpsertProductVariantDTO } from "./common";
3
3
  import { FindConfig } from "../common";
4
4
  import { IModuleService } from "../modules-sdk";
5
5
  import { Context } from "../shared-context";
@@ -22,13 +22,13 @@ export interface IProductModuleService extends IModuleService {
22
22
  *
23
23
  * ```ts
24
24
  * const product =
25
- * await productModuleService.retrieve("prod_123")
25
+ * await productModuleService.retrieveProduct("prod_123")
26
26
  * ```
27
27
  *
28
28
  * To specify relations that should be retrieved:
29
29
  *
30
30
  * ```ts
31
- * const product = await productModuleService.retrieve(
31
+ * const product = await productModuleService.retrieveProduct(
32
32
  * "prod_123",
33
33
  * {
34
34
  * relations: ["categories"],
@@ -36,7 +36,7 @@ export interface IProductModuleService extends IModuleService {
36
36
  * )
37
37
  * ```
38
38
  */
39
- retrieve(productId: string, config?: FindConfig<ProductDTO>, sharedContext?: Context): Promise<ProductDTO>;
39
+ retrieveProduct(productId: string, config?: FindConfig<ProductDTO>, sharedContext?: Context): Promise<ProductDTO>;
40
40
  /**
41
41
  * This method is used to retrieve a paginated list of products based on optional filters and configuration.
42
42
  *
@@ -51,7 +51,7 @@ export interface IProductModuleService extends IModuleService {
51
51
  * To retrieve a list of products using their IDs:
52
52
  *
53
53
  * ```ts
54
- * const products = await productModuleService.list({
54
+ * const products = await productModuleService.listProducts({
55
55
  * id: ["prod_123", "prod_321"],
56
56
  * })
57
57
  * ```
@@ -59,7 +59,7 @@ export interface IProductModuleService extends IModuleService {
59
59
  * To specify relations that should be retrieved within the products:
60
60
  *
61
61
  * ```ts
62
- * const products = await productModuleService.list(
62
+ * const products = await productModuleService.listProducts(
63
63
  * {
64
64
  * id: ["prod_123", "prod_321"],
65
65
  * },
@@ -72,7 +72,7 @@ export interface IProductModuleService extends IModuleService {
72
72
  * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
73
73
  *
74
74
  * ```ts
75
- * const products = await productModuleService.list(
75
+ * const products = await productModuleService.listProducts(
76
76
  * {
77
77
  * id: ["prod_123", "prod_321"],
78
78
  * },
@@ -84,7 +84,7 @@ export interface IProductModuleService extends IModuleService {
84
84
  * )
85
85
  * ```
86
86
  */
87
- list(filters?: FilterableProductProps, config?: FindConfig<ProductDTO>, sharedContext?: Context): Promise<ProductDTO[]>;
87
+ listProducts(filters?: FilterableProductProps, config?: FindConfig<ProductDTO>, sharedContext?: Context): Promise<ProductDTO[]>;
88
88
  /**
89
89
  * This method is used to retrieve a paginated list of products along with the total count of available products satisfying the provided filters.
90
90
  *
@@ -100,7 +100,7 @@ export interface IProductModuleService extends IModuleService {
100
100
  *
101
101
  * ```ts
102
102
  * const [products, count] =
103
- * await productModuleService.listAndCount({
103
+ * await productModuleService.listAndCountProducts({
104
104
  * id: ["prod_123", "prod_321"],
105
105
  * })
106
106
  * ```
@@ -109,7 +109,7 @@ export interface IProductModuleService extends IModuleService {
109
109
  *
110
110
  * ```ts
111
111
  * const [products, count] =
112
- * await productModuleService.listAndCount(
112
+ * await productModuleService.listAndCountProducts(
113
113
  * {
114
114
  * id: ["prod_123", "prod_321"],
115
115
  * },
@@ -123,7 +123,7 @@ export interface IProductModuleService extends IModuleService {
123
123
  *
124
124
  * ```ts
125
125
  * const [products, count] =
126
- * await productModuleService.listAndCount(
126
+ * await productModuleService.listAndCountProducts(
127
127
  * {
128
128
  * id: ["prod_123", "prod_321"],
129
129
  * },
@@ -135,7 +135,7 @@ export interface IProductModuleService extends IModuleService {
135
135
  * )
136
136
  * ```
137
137
  */
138
- listAndCount(filters?: FilterableProductProps, config?: FindConfig<ProductDTO>, sharedContext?: Context): Promise<[ProductDTO[], number]>;
138
+ listAndCountProducts(filters?: FilterableProductProps, config?: FindConfig<ProductDTO>, sharedContext?: Context): Promise<[ProductDTO[], number]>;
139
139
  /**
140
140
  * This method is used to create a list of products.
141
141
  *
@@ -144,7 +144,7 @@ export interface IProductModuleService extends IModuleService {
144
144
  * @returns {Promise<ProductDTO[]>} The list of created products.
145
145
  *
146
146
  * @example
147
- * const products = await productModuleService.create([
147
+ * const products = await productModuleService.createProducts([
148
148
  * {
149
149
  * title: "Shirt",
150
150
  * },
@@ -154,7 +154,7 @@ export interface IProductModuleService extends IModuleService {
154
154
  * },
155
155
  * ])
156
156
  */
157
- create(data: CreateProductDTO[], sharedContext?: Context): Promise<ProductDTO[]>;
157
+ createProducts(data: CreateProductDTO[], sharedContext?: Context): Promise<ProductDTO[]>;
158
158
  /**
159
159
  * This method is used to create a product.
160
160
  *
@@ -163,11 +163,11 @@ export interface IProductModuleService extends IModuleService {
163
163
  * @returns {Promise<ProductDTO>} The created product.
164
164
  *
165
165
  * @example
166
- * const product = await productModuleService.create({
166
+ * const product = await productModuleService.createProducts({
167
167
  * title: "Shirt",
168
168
  * })
169
169
  */
170
- create(data: CreateProductDTO, sharedContext?: Context): Promise<ProductDTO>;
170
+ createProducts(data: CreateProductDTO, sharedContext?: Context): Promise<ProductDTO>;
171
171
  /**
172
172
  * This method updates existing products, or creates new ones if they don't exist.
173
173
  *
@@ -176,7 +176,7 @@ export interface IProductModuleService extends IModuleService {
176
176
  * @returns {Promise<ProductDTO[]>} The updated and created products.
177
177
  *
178
178
  * @example
179
- * const products = await productModuleService.upsert([
179
+ * const products = await productModuleService.upsertProducts([
180
180
  * {
181
181
  * id: "prod_123",
182
182
  * handle: "pant",
@@ -186,7 +186,7 @@ export interface IProductModuleService extends IModuleService {
186
186
  * },
187
187
  * ])
188
188
  */
189
- upsert(data: UpsertProductDTO[], sharedContext?: Context): Promise<ProductDTO[]>;
189
+ upsertProducts(data: UpsertProductDTO[], sharedContext?: Context): Promise<ProductDTO[]>;
190
190
  /**
191
191
  * This method updates the product if it exists, or creates a new ones if it doesn't.
192
192
  *
@@ -195,11 +195,11 @@ export interface IProductModuleService extends IModuleService {
195
195
  * @returns {Promise<ProductDTO>} The updated or created product.
196
196
  *
197
197
  * @example
198
- * const product = await productModuleService.upsert({
198
+ * const product = await productModuleService.upsertProducts({
199
199
  * title: "Shirt",
200
200
  * })
201
201
  */
202
- upsert(data: UpsertProductDTO, sharedContext?: Context): Promise<ProductDTO>;
202
+ upsertProducts(data: UpsertProductDTO, sharedContext?: Context): Promise<ProductDTO>;
203
203
  /**
204
204
  * This method is used to update a product.
205
205
  *
@@ -209,14 +209,14 @@ export interface IProductModuleService extends IModuleService {
209
209
  * @returns {Promise<ProductDTO>} The updated product.
210
210
  *
211
211
  * @example
212
- * const product = await productModuleService.update(
212
+ * const product = await productModuleService.updateProducts(
213
213
  * "prod_123",
214
214
  * {
215
215
  * handle: "pant",
216
216
  * }
217
217
  * )
218
218
  */
219
- update(id: string, data: UpdateProductDTO, sharedContext?: Context): Promise<ProductDTO>;
219
+ updateProducts(id: string, data: UpdateProductDTO, sharedContext?: Context): Promise<ProductDTO>;
220
220
  /**
221
221
  * This method is used to update a list of products matching the specified filters.
222
222
  *
@@ -226,7 +226,7 @@ export interface IProductModuleService extends IModuleService {
226
226
  * @returns {Promise<ProductDTO[]>} The updated products.
227
227
  *
228
228
  * @example
229
- * const products = await productModuleService.update(
229
+ * const products = await productModuleService.updateProducts(
230
230
  * {
231
231
  * title: "Pant",
232
232
  * },
@@ -235,7 +235,7 @@ export interface IProductModuleService extends IModuleService {
235
235
  * }
236
236
  * )
237
237
  */
238
- update(selector: FilterableProductProps, data: UpdateProductDTO, sharedContext?: Context): Promise<ProductDTO[]>;
238
+ updateProducts(selector: FilterableProductProps, data: UpdateProductDTO, sharedContext?: Context): Promise<ProductDTO[]>;
239
239
  /**
240
240
  * This method is used to delete products. Unlike the {@link softDelete} method, this method will completely remove the products and they can no longer be accessed or retrieved.
241
241
  *
@@ -244,9 +244,9 @@ export interface IProductModuleService extends IModuleService {
244
244
  * @returns {Promise<void>} Resolves when the products are successfully deleted.
245
245
  *
246
246
  * @example
247
- * await productModuleService.delete(["prod_123", "prod_321"])
247
+ * await productModuleService.deleteProducts(["prod_123", "prod_321"])
248
248
  */
249
- delete(productIds: string[], sharedContext?: Context): Promise<void>;
249
+ deleteProducts(productIds: string[], sharedContext?: Context): Promise<void>;
250
250
  /**
251
251
  * This method is used to delete products. Unlike the {@link delete} method, this method won't completely remove the product. It can still be accessed or retrieved using methods like {@link retrieve} if you pass the `withDeleted` property to the `config` object parameter.
252
252
  *
@@ -263,12 +263,12 @@ export interface IProductModuleService extends IModuleService {
263
263
  * If there are no related records, the promise resolved to `void`.
264
264
  *
265
265
  * @example
266
- * await productModuleService.softDelete([
266
+ * await productModuleService.softDeleteProducts([
267
267
  * "prod_123",
268
268
  * "prod_321",
269
269
  * ])
270
270
  */
271
- softDelete<TReturnableLinkableKeys extends string = string>(productIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
271
+ softDeleteProducts<TReturnableLinkableKeys extends string = string>(productIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
272
272
  /**
273
273
  * This method is used to restore products which were deleted using the {@link softDelete} method.
274
274
  *
@@ -283,9 +283,9 @@ export interface IProductModuleService extends IModuleService {
283
283
  * If there are no related records that were restored, the promise resolved to `void`.
284
284
  *
285
285
  * @example
286
- * await productModuleService.restore(["prod_123", "prod_321"])
286
+ * await productModuleService.restoreProducts(["prod_123", "prod_321"])
287
287
  */
288
- restore<TReturnableLinkableKeys extends string = string>(productIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
288
+ restoreProducts<TReturnableLinkableKeys extends string = string>(productIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
289
289
  /**
290
290
  * This method is used to retrieve a tag by its ID.
291
291
  *
@@ -300,13 +300,13 @@ export interface IProductModuleService extends IModuleService {
300
300
  * A simple example that retrieves a product tag by its ID:
301
301
  *
302
302
  * ```ts
303
- * const tag = await productModuleService.retrieveTag("ptag_123")
303
+ * const tag = await productModuleService.retrieveProductTag("ptag_123")
304
304
  * ```
305
305
  *
306
306
  * To specify relations that should be retrieved:
307
307
  *
308
308
  * ```ts
309
- * const tag = await productModuleService.retrieveTag(
309
+ * const tag = await productModuleService.retrieveProductTag(
310
310
  * "ptag_123",
311
311
  * {
312
312
  * relations: ["products"],
@@ -314,7 +314,7 @@ export interface IProductModuleService extends IModuleService {
314
314
  * )
315
315
  * ```
316
316
  */
317
- retrieveTag(tagId: string, config?: FindConfig<ProductTagDTO>, sharedContext?: Context): Promise<ProductTagDTO>;
317
+ retrieveProductTag(tagId: string, config?: FindConfig<ProductTagDTO>, sharedContext?: Context): Promise<ProductTagDTO>;
318
318
  /**
319
319
  * This method is used to retrieve a paginated list of tags based on optional filters and configuration.
320
320
  *
@@ -329,7 +329,7 @@ export interface IProductModuleService extends IModuleService {
329
329
  * To retrieve a list of product tags using their IDs:
330
330
  *
331
331
  * ```ts
332
- * const tags = await productModuleService.listTags({
332
+ * const tags = await productModuleService.listProductTags({
333
333
  * id: ["ptag_123", "ptag_321"],
334
334
  * })
335
335
  * ```
@@ -337,7 +337,7 @@ export interface IProductModuleService extends IModuleService {
337
337
  * To specify relations that should be retrieved within the product tags:
338
338
  *
339
339
  * ```ts
340
- * const tags = await productModuleService.listTags(
340
+ * const tags = await productModuleService.listProductTags(
341
341
  * {
342
342
  * id: ["ptag_123", "ptag_321"],
343
343
  * },
@@ -350,7 +350,7 @@ export interface IProductModuleService extends IModuleService {
350
350
  * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
351
351
  *
352
352
  * ```ts
353
- * const tags = await productModuleService.listTags(
353
+ * const tags = await productModuleService.listProductTags(
354
354
  * {
355
355
  * id: ["ptag_123", "ptag_321"],
356
356
  * },
@@ -362,7 +362,7 @@ export interface IProductModuleService extends IModuleService {
362
362
  * )
363
363
  * ```
364
364
  */
365
- listTags(filters?: FilterableProductTagProps, config?: FindConfig<ProductTagDTO>, sharedContext?: Context): Promise<ProductTagDTO[]>;
365
+ listProductTags(filters?: FilterableProductTagProps, config?: FindConfig<ProductTagDTO>, sharedContext?: Context): Promise<ProductTagDTO[]>;
366
366
  /**
367
367
  * This method is used to retrieve a paginated list of product tags along with the total count of available product tags satisfying the provided filters.
368
368
  *
@@ -378,7 +378,7 @@ export interface IProductModuleService extends IModuleService {
378
378
  *
379
379
  * ```ts
380
380
  * const [tags, count] =
381
- * await productModuleService.listAndCountTags({
381
+ * await productModuleService.listAndCountProductTags({
382
382
  * id: ["ptag_123", "ptag_321"],
383
383
  * })
384
384
  * ```
@@ -387,7 +387,7 @@ export interface IProductModuleService extends IModuleService {
387
387
  *
388
388
  * ```ts
389
389
  * const [tags, count] =
390
- * await productModuleService.listAndCountTags(
390
+ * await productModuleService.listAndCountProductTags(
391
391
  * {
392
392
  * id: ["ptag_123", "ptag_321"],
393
393
  * },
@@ -401,7 +401,7 @@ export interface IProductModuleService extends IModuleService {
401
401
  *
402
402
  * ```ts
403
403
  * const [tags, count] =
404
- * await productModuleService.listAndCountTags(
404
+ * await productModuleService.listAndCountProductTags(
405
405
  * {
406
406
  * id: ["ptag_123", "ptag_321"],
407
407
  * },
@@ -413,48 +413,109 @@ export interface IProductModuleService extends IModuleService {
413
413
  * )
414
414
  * ```
415
415
  */
416
- listAndCountTags(filters?: FilterableProductTagProps, config?: FindConfig<ProductTagDTO>, sharedContext?: Context): Promise<[ProductTagDTO[], number]>;
416
+ listAndCountProductTags(filters?: FilterableProductTagProps, config?: FindConfig<ProductTagDTO>, sharedContext?: Context): Promise<[ProductTagDTO[], number]>;
417
417
  /**
418
- * This method is used to create product tags.
418
+ * This method is used to create a product tag.
419
419
  *
420
- * @param {CreateProductTagDTO[]} data - The product tags to create.
420
+ * @param {CreateProductTagDTO[]} data - The product tags to be created.
421
421
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
422
- * @returns {Promise<ProductTagDTO[]>} The list of product tags.
422
+ * @return {Promise<ProductTagDTO[]>} The list of created product tags.
423
423
  *
424
424
  * @example
425
- * const tags = await productModuleService.createTags([
425
+ * const productTags = await productModuleService.createProductTags([
426
426
  * {
427
- * value: "Clothes",
427
+ * value: "digital",
428
428
  * },
429
+ * ])
430
+ */
431
+ createProductTags(data: CreateProductTagDTO[], sharedContext?: Context): Promise<ProductTagDTO[]>;
432
+ /**
433
+ * This method is used to create a product tag.
434
+ *
435
+ * @param {CreateProductTagDTO} data - The product tag to be created.
436
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
437
+ * @returns {Promise<ProductTagDTO>} The created product tag.
438
+ *
439
+ * @example
440
+ * const productTag = await productModuleService.createProductTags({
441
+ * value: "digital",
442
+ * })
443
+ *
444
+ */
445
+ createProductTags(data: CreateProductTagDTO, sharedContext?: Context): Promise<ProductTagDTO>;
446
+ /**
447
+ * This method updates existing tags, or creates new ones if they don't exist.
448
+ *
449
+ * @param {UpsertProductTagDTO[]} data - The attributes to update or create for each tag.
450
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
451
+ * @returns {Promise<ProductTagDTO[]>} The updated and created tags.
452
+ *
453
+ * @example
454
+ * const productTags = await productModuleService.upsertProductTags([
429
455
  * {
430
- * value: "Accessories",
456
+ * id: "ptag_123",
457
+ * metadata: {
458
+ * test: true,
459
+ * },
460
+ * },
461
+ * {
462
+ * value: "Digital",
431
463
  * },
432
464
  * ])
433
465
  */
434
- createTags(data: CreateProductTagDTO[], sharedContext?: Context): Promise<ProductTagDTO[]>;
466
+ upsertProductTags(data: UpsertProductTagDTO[], sharedContext?: Context): Promise<ProductTagDTO[]>;
435
467
  /**
436
- * This method is used to update existing product tags.
468
+ * This method updates an existing tag, or creates a new one if it doesn't exist.
437
469
  *
438
- * @param {UpdateProductTagDTO[]} data - The product tags to be updated, each having the attributes that should be updated in a product tag.
470
+ * @param {UpsertProductTagDTO} data - The attributes to update or create for the tag.
439
471
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
440
- * @returns {Promise<ProductTagDTO[]>} The list of updated product tags.
472
+ * @returns {Promise<ProductTagDTO>} The updated or created tag.
441
473
  *
442
474
  * @example
443
- * const productTags = await productModule.updateTags([
475
+ * const productTag = await productModuleService.upsertProductTags({
476
+ * id: "ptag_123",
477
+ * metadata: {
478
+ * test: true,
479
+ * },
480
+ * })
481
+ */
482
+ upsertProductTags(data: UpsertProductTagDTO, sharedContext?: Context): Promise<ProductTagDTO>;
483
+ /**
484
+ * This method is used to update a tag.
485
+ *
486
+ * @param {string} id - The ID of the tag to be updated.
487
+ * @param {UpdateProductTagDTO} data - The attributes of the tag to be updated
488
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
489
+ * @returns {Promise<ProductTagDTO>} The updated tag.
490
+ *
491
+ * @example
492
+ * const productTag = await productModuleService.updateProductTags(
493
+ * "ptag_123",
444
494
  * {
445
- * id,
446
- * value
495
+ * value: "Digital",
447
496
  * }
448
- * ])
497
+ * )
498
+ */
499
+ updateProductTags(id: string, data: UpdateProductTagDTO, sharedContext?: Context): Promise<ProductTagDTO>;
500
+ /**
501
+ * This method is used to update a list of tags matching the specified filters.
449
502
  *
450
- * @ignore
503
+ * @param {FilterableProductTagProps} selector - The filters specifying which tags to update.
504
+ * @param {UpdateProductTagDTO} data - The attributes to be updated on the selected tags
505
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
506
+ * @returns {Promise<ProductTagDTO[]>} The updated tags.
451
507
  *
452
- * @privateRemarks
453
- * This method needs an update as it doesn't allow passing an ID of the tag to update
454
- * So, for now, we've added the `@\ignore` tag to not show it in the generated docs.
455
- * Once fixed, the `@\ignore` tag (and this comment) can be removed safely.
508
+ * @example
509
+ * const productTags = await productModuleService.updateProductTags(
510
+ * {
511
+ * id: ["ptag_123", "ptag_321"],
512
+ * },
513
+ * {
514
+ * value: "Digital",
515
+ * }
516
+ * )
456
517
  */
457
- updateTags(data: UpdateProductTagDTO[], sharedContext?: Context): Promise<ProductTagDTO[]>;
518
+ updateProductTags(selector: FilterableProductTagProps, data: UpdateProductTagDTO, sharedContext?: Context): Promise<ProductTagDTO[]>;
458
519
  /**
459
520
  * This method is used to delete product tags by their ID.
460
521
  *
@@ -463,12 +524,54 @@ export interface IProductModuleService extends IModuleService {
463
524
  * @returns {Promise<void>} Resolves when the product tags are successfully deleted.
464
525
  *
465
526
  * @example
466
- * await productModuleService.deleteTags([
527
+ * await productModuleService.deleteProductTags([
467
528
  * "ptag_123",
468
529
  * "ptag_321",
469
530
  * ])
470
531
  */
471
- deleteTags(productTagIds: string[], sharedContext?: Context): Promise<void>;
532
+ deleteProductTags(productTagIds: string[], sharedContext?: Context): Promise<void>;
533
+ /**
534
+ * This method is used to delete tags. Unlike the {@link delete} method, this method won't completely remove the tag. It can still be accessed or retrieved using methods like {@link retrieve} if you pass the `withDeleted` property to the `config` object parameter.
535
+ *
536
+ * The soft-deleted tags can be restored using the {@link restore} method.
537
+ *
538
+ * @param {string[]} tagIds - The IDs of the tags to soft-delete.
539
+ * @param {SoftDeleteReturn<TReturnableLinkableKeys>} config -
540
+ * Configurations determining which relations to soft delete along with the each of the tags. You can pass to its `returnLinkableKeys`
541
+ * property any of the tag's relation attribute names.
542
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
543
+ * @returns {Promise<Record<string, string[]> | void>}
544
+ * An object that includes the IDs of related records that were also soft deleted. The object's keys are the ID attribute names of the tag entity's relations, and its value is an array of strings, each being the ID of a record associated with the tag through this relation.
545
+ *
546
+ * If there are no related records, the promise resolved to `void`.
547
+ *
548
+ * @example
549
+ * await productModuleService.softDeleteProductTags([
550
+ * "ptag_123",
551
+ * "ptag_321",
552
+ * ])
553
+ */
554
+ softDeleteProductTags<TReturnableLinkableKeys extends string = string>(tagIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
555
+ /**
556
+ * This method is used to restore tags which were deleted using the {@link softDelete} method.
557
+ *
558
+ * @param {string[]} tagIds - The IDs of the tags to restore.
559
+ * @param {RestoreReturn<TReturnableLinkableKeys>} config -
560
+ * Configurations determining which relations to restore along with each of the tags. You can pass to its `returnLinkableKeys`
561
+ * property any of the tag's relation attribute names.
562
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
563
+ * @returns {Promise<Record<string, string[]> | void>}
564
+ * An object that includes the IDs of related records that were restored. The object's keys are the ID attribute names of the tag entity's relations, and its value is an array of strings, each being the ID of the record associated with the tag through this relation.
565
+ *
566
+ * If there are no related records that were restored, the promise resolved to `void`.
567
+ *
568
+ * @example
569
+ * await productModuleService.restoreProductTags([
570
+ * "ptag_123",
571
+ * "ptag_321",
572
+ * ])
573
+ */
574
+ restoreProductTags<TReturnableLinkableKeys extends string = string>(tagIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
472
575
  /**
473
576
  * This method is used to retrieve a product type by its ID.
474
577
  *
@@ -481,9 +584,9 @@ export interface IProductModuleService extends IModuleService {
481
584
  *
482
585
  * @example
483
586
  * const productType =
484
- * await productModuleService.retrieveType("ptyp_123")
587
+ * await productModuleService.retrieveProductType("ptyp_123")
485
588
  */
486
- retrieveType(typeId: string, config?: FindConfig<ProductTypeDTO>, sharedContext?: Context): Promise<ProductTypeDTO>;
589
+ retrieveProductType(typeId: string, config?: FindConfig<ProductTypeDTO>, sharedContext?: Context): Promise<ProductTypeDTO>;
487
590
  /**
488
591
  * This method is used to retrieve a paginated list of product types based on optional filters and configuration.
489
592
  *
@@ -498,7 +601,7 @@ export interface IProductModuleService extends IModuleService {
498
601
  * To retrieve a list of product types using their IDs:
499
602
  *
500
603
  * ```ts
501
- * const productTypes = await productModuleService.listTypes({
604
+ * const productTypes = await productModuleService.listProductTypes({
502
605
  * id: ["ptyp_123", "ptyp_321"],
503
606
  * })
504
607
  * ```
@@ -506,7 +609,7 @@ export interface IProductModuleService extends IModuleService {
506
609
  * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
507
610
  *
508
611
  * ```ts
509
- * const productTypes = await productModuleService.listTypes(
612
+ * const productTypes = await productModuleService.listProductTypes(
510
613
  * {
511
614
  * id: ["ptyp_123", "ptyp_321"],
512
615
  * },
@@ -517,7 +620,7 @@ export interface IProductModuleService extends IModuleService {
517
620
  * )
518
621
  * ```
519
622
  */
520
- listTypes(filters?: FilterableProductTypeProps, config?: FindConfig<ProductTypeDTO>, sharedContext?: Context): Promise<ProductTypeDTO[]>;
623
+ listProductTypes(filters?: FilterableProductTypeProps, config?: FindConfig<ProductTypeDTO>, sharedContext?: Context): Promise<ProductTypeDTO[]>;
521
624
  /**
522
625
  * This method is used to retrieve a paginated list of product types along with the total count of available product types satisfying the provided filters.
523
626
  *
@@ -533,7 +636,7 @@ export interface IProductModuleService extends IModuleService {
533
636
  *
534
637
  * ```ts
535
638
  * const [productTypes, count] =
536
- * await productModuleService.listAndCountTypes({
639
+ * await productModuleService.listAndCountProductTypes({
537
640
  * id: ["ptyp_123", "ptyp_321"],
538
641
  * })
539
642
  * ```
@@ -542,7 +645,7 @@ export interface IProductModuleService extends IModuleService {
542
645
  *
543
646
  * ```ts
544
647
  * const [productTypes, count] =
545
- * await productModuleService.listAndCountTypes(
648
+ * await productModuleService.listAndCountProductTypes(
546
649
  * {
547
650
  * id: ["ptyp_123", "ptyp_321"],
548
651
  * },
@@ -553,7 +656,7 @@ export interface IProductModuleService extends IModuleService {
553
656
  * )
554
657
  * ```
555
658
  */
556
- listAndCountTypes(filters?: FilterableProductTypeProps, config?: FindConfig<ProductTypeDTO>, sharedContext?: Context): Promise<[ProductTypeDTO[], number]>;
659
+ listAndCountProductTypes(filters?: FilterableProductTypeProps, config?: FindConfig<ProductTypeDTO>, sharedContext?: Context): Promise<[ProductTypeDTO[], number]>;
557
660
  /**
558
661
  * This method is used to create a product type.
559
662
  *
@@ -562,13 +665,13 @@ export interface IProductModuleService extends IModuleService {
562
665
  * @return {Promise<ProductTypeDTO[]>} The list of created product types.
563
666
  *
564
667
  * @example
565
- * const productTypes = await productModuleService.createTypes([
668
+ * const productTypes = await productModuleService.createProductTypes([
566
669
  * {
567
670
  * value: "digital",
568
671
  * },
569
672
  * ])
570
673
  */
571
- createTypes(data: CreateProductTypeDTO[], sharedContext?: Context): Promise<ProductTypeDTO[]>;
674
+ createProductTypes(data: CreateProductTypeDTO[], sharedContext?: Context): Promise<ProductTypeDTO[]>;
572
675
  /**
573
676
  * This method is used to create a product type.
574
677
  *
@@ -577,12 +680,12 @@ export interface IProductModuleService extends IModuleService {
577
680
  * @returns {Promise<ProductTypeDTO>} The created product type.
578
681
  *
579
682
  * @example
580
- * const productType = await productModuleService.createTypes({
683
+ * const productType = await productModuleService.createProductTypes({
581
684
  * value: "digital",
582
685
  * })
583
686
  *
584
687
  */
585
- createTypes(data: CreateProductTypeDTO, sharedContext?: Context): Promise<ProductTypeDTO>;
688
+ createProductTypes(data: CreateProductTypeDTO, sharedContext?: Context): Promise<ProductTypeDTO>;
586
689
  /**
587
690
  * This method updates existing types, or creates new ones if they don't exist.
588
691
  *
@@ -591,7 +694,7 @@ export interface IProductModuleService extends IModuleService {
591
694
  * @returns {Promise<ProductTypeDTO[]>} The updated and created types.
592
695
  *
593
696
  * @example
594
- * const productTypes = await productModuleService.upsertTypes([
697
+ * const productTypes = await productModuleService.upsertProductTypes([
595
698
  * {
596
699
  * id: "ptyp_123",
597
700
  * metadata: {
@@ -603,7 +706,7 @@ export interface IProductModuleService extends IModuleService {
603
706
  * },
604
707
  * ])
605
708
  */
606
- upsertTypes(data: UpsertProductTypeDTO[], sharedContext?: Context): Promise<ProductTypeDTO[]>;
709
+ upsertProductTypes(data: UpsertProductTypeDTO[], sharedContext?: Context): Promise<ProductTypeDTO[]>;
607
710
  /**
608
711
  * This method updates an existing type, or creates a new one if it doesn't exist.
609
712
  *
@@ -612,14 +715,14 @@ export interface IProductModuleService extends IModuleService {
612
715
  * @returns {Promise<ProductTypeDTO>} The updated or created type.
613
716
  *
614
717
  * @example
615
- * const productType = await productModuleService.upsertTypes({
718
+ * const productType = await productModuleService.upsertProductTypes({
616
719
  * id: "ptyp_123",
617
720
  * metadata: {
618
721
  * test: true,
619
722
  * },
620
723
  * })
621
724
  */
622
- upsertTypes(data: UpsertProductTypeDTO, sharedContext?: Context): Promise<ProductTypeDTO>;
725
+ upsertProductTypes(data: UpsertProductTypeDTO, sharedContext?: Context): Promise<ProductTypeDTO>;
623
726
  /**
624
727
  * This method is used to update a type.
625
728
  *
@@ -629,14 +732,14 @@ export interface IProductModuleService extends IModuleService {
629
732
  * @returns {Promise<ProductTypeDTO>} The updated type.
630
733
  *
631
734
  * @example
632
- * const productType = await productModuleService.updateTypes(
735
+ * const productType = await productModuleService.updateProductTypes(
633
736
  * "ptyp_123",
634
737
  * {
635
738
  * value: "Digital",
636
739
  * }
637
740
  * )
638
741
  */
639
- updateTypes(id: string, data: UpdateProductTypeDTO, sharedContext?: Context): Promise<ProductTypeDTO>;
742
+ updateProductTypes(id: string, data: UpdateProductTypeDTO, sharedContext?: Context): Promise<ProductTypeDTO>;
640
743
  /**
641
744
  * This method is used to update a list of types matching the specified filters.
642
745
  *
@@ -646,7 +749,7 @@ export interface IProductModuleService extends IModuleService {
646
749
  * @returns {Promise<ProductTypeDTO[]>} The updated types.
647
750
  *
648
751
  * @example
649
- * const productTypes = await productModuleService.updateTypes(
752
+ * const productTypes = await productModuleService.updateProductTypes(
650
753
  * {
651
754
  * id: ["ptyp_123", "ptyp_321"],
652
755
  * },
@@ -655,7 +758,7 @@ export interface IProductModuleService extends IModuleService {
655
758
  * }
656
759
  * )
657
760
  */
658
- updateTypes(selector: FilterableProductTypeProps, data: UpdateProductTypeDTO, sharedContext?: Context): Promise<ProductTypeDTO[]>;
761
+ updateProductTypes(selector: FilterableProductTypeProps, data: UpdateProductTypeDTO, sharedContext?: Context): Promise<ProductTypeDTO[]>;
659
762
  /**
660
763
  * This method is used to delete a product type.
661
764
  *
@@ -664,12 +767,12 @@ export interface IProductModuleService extends IModuleService {
664
767
  * @returns {Promise<void>} Resolves when the product types are successfully deleted.
665
768
  *
666
769
  * @example
667
- * await productModuleService.deleteTypes([
770
+ * await productModuleService.deleteProductTypes([
668
771
  * "ptyp_123",
669
772
  * "ptyp_321",
670
773
  * ])
671
774
  */
672
- deleteTypes(productTypeIds: string[], sharedContext?: Context): Promise<void>;
775
+ deleteProductTypes(productTypeIds: string[], sharedContext?: Context): Promise<void>;
673
776
  /**
674
777
  * This method is used to delete types. Unlike the {@link delete} method, this method won't completely remove the type. It can still be accessed or retrieved using methods like {@link retrieve} if you pass the `withDeleted` property to the `config` object parameter.
675
778
  *
@@ -686,12 +789,12 @@ export interface IProductModuleService extends IModuleService {
686
789
  * If there are no related records, the promise resolved to `void`.
687
790
  *
688
791
  * @example
689
- * await productModuleService.softDeleteTypes([
792
+ * await productModuleService.softDeleteProductTypes([
690
793
  * "ptyp_123",
691
794
  * "ptyp_321",
692
795
  * ])
693
796
  */
694
- softDeleteTypes<TReturnableLinkableKeys extends string = string>(typeIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
797
+ softDeleteProductTypes<TReturnableLinkableKeys extends string = string>(typeIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
695
798
  /**
696
799
  * This method is used to restore types which were deleted using the {@link softDelete} method.
697
800
  *
@@ -706,12 +809,12 @@ export interface IProductModuleService extends IModuleService {
706
809
  * If there are no related records that were restored, the promise resolved to `void`.
707
810
  *
708
811
  * @example
709
- * await productModuleService.restoreTypes([
812
+ * await productModuleService.restoreProductTypes([
710
813
  * "ptyp_123",
711
814
  * "ptyp_321",
712
815
  * ])
713
816
  */
714
- restoreTypes<TReturnableLinkableKeys extends string = string>(typeIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
817
+ restoreProductTypes<TReturnableLinkableKeys extends string = string>(typeIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
715
818
  /**
716
819
  * This method is used to retrieve a product option by its ID.
717
820
  *
@@ -727,13 +830,13 @@ export interface IProductModuleService extends IModuleService {
727
830
  *
728
831
  * ```ts
729
832
  * const option =
730
- * await productModuleService.retrieveOption("opt_123")
833
+ * await productModuleService.retrieveProductOption("opt_123")
731
834
  * ```
732
835
  *
733
836
  * To specify relations that should be retrieved:
734
837
  *
735
838
  * ```ts
736
- * const option = await productModuleService.retrieveOption(
839
+ * const option = await productModuleService.retrieveProductOption(
737
840
  * "opt_123",
738
841
  * {
739
842
  * relations: ["product"],
@@ -741,7 +844,7 @@ export interface IProductModuleService extends IModuleService {
741
844
  * )
742
845
  * ```
743
846
  */
744
- retrieveOption(optionId: string, config?: FindConfig<ProductOptionDTO>, sharedContext?: Context): Promise<ProductOptionDTO>;
847
+ retrieveProductOption(optionId: string, config?: FindConfig<ProductOptionDTO>, sharedContext?: Context): Promise<ProductOptionDTO>;
745
848
  /**
746
849
  * This method is used to retrieve a paginated list of product options based on optional filters and configuration.
747
850
  *
@@ -756,7 +859,7 @@ export interface IProductModuleService extends IModuleService {
756
859
  * To retrieve a list of product options using their IDs:
757
860
  *
758
861
  * ```ts
759
- * const options = await productModuleService.listOptions({
862
+ * const options = await productModuleService.listProductOptions({
760
863
  id: ["opt_123", "opt_321"],
761
864
  * })
762
865
  * ```
@@ -764,7 +867,7 @@ export interface IProductModuleService extends IModuleService {
764
867
  * To specify relations that should be retrieved within the product options:
765
868
  *
766
869
  * ```ts
767
- * const options = await productModuleService.listOptions(
870
+ * const options = await productModuleService.listProductOptions(
768
871
  * {
769
872
  * id: ["opt_123", "opt_321"],
770
873
  * },
@@ -777,7 +880,7 @@ export interface IProductModuleService extends IModuleService {
777
880
  * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
778
881
  *
779
882
  * ```ts
780
- * const options = await productModuleService.listOptions(
883
+ * const options = await productModuleService.listProductOptions(
781
884
  * {
782
885
  * id: ["opt_123", "opt_321"],
783
886
  * },
@@ -790,7 +893,7 @@ export interface IProductModuleService extends IModuleService {
790
893
  * ```
791
894
  *
792
895
  */
793
- listOptions(filters?: FilterableProductOptionProps, config?: FindConfig<ProductOptionDTO>, sharedContext?: Context): Promise<ProductOptionDTO[]>;
896
+ listProductOptions(filters?: FilterableProductOptionProps, config?: FindConfig<ProductOptionDTO>, sharedContext?: Context): Promise<ProductOptionDTO[]>;
794
897
  /**
795
898
  * This method is used to retrieve a paginated list of product options along with the total count of available product options satisfying the provided filters.
796
899
  *
@@ -806,7 +909,7 @@ export interface IProductModuleService extends IModuleService {
806
909
  *
807
910
  * ```ts
808
911
  * const [options, count] =
809
- * await productModuleService.listAndCountOptions({
912
+ * await productModuleService.listAndCountProductOptions({
810
913
  * id: ["opt_123", "opt_321"],
811
914
  * })
812
915
  * ```
@@ -815,7 +918,7 @@ export interface IProductModuleService extends IModuleService {
815
918
  *
816
919
  * ```ts
817
920
  * const [options, count] =
818
- * await productModuleService.listAndCountOptions(
921
+ * await productModuleService.listAndCountProductOptions(
819
922
  * {
820
923
  * id: ["opt_123", "opt_321"],
821
924
  * },
@@ -829,7 +932,7 @@ export interface IProductModuleService extends IModuleService {
829
932
  *
830
933
  * ```ts
831
934
  * const [options, count] =
832
- * await productModuleService.listAndCountOptions(
935
+ * await productModuleService.listAndCountProductOptions(
833
936
  * {
834
937
  * id: ["opt_123", "opt_321"],
835
938
  * },
@@ -841,7 +944,7 @@ export interface IProductModuleService extends IModuleService {
841
944
  * )
842
945
  * ```
843
946
  */
844
- listAndCountOptions(filters?: FilterableProductOptionProps, config?: FindConfig<ProductOptionDTO>, sharedContext?: Context): Promise<[ProductOptionDTO[], number]>;
947
+ listAndCountProductOptions(filters?: FilterableProductOptionProps, config?: FindConfig<ProductOptionDTO>, sharedContext?: Context): Promise<[ProductOptionDTO[], number]>;
845
948
  /**
846
949
  * This method is used to create product options.
847
950
  *
@@ -850,7 +953,7 @@ export interface IProductModuleService extends IModuleService {
850
953
  * @returns {Promise<ProductOptionDTO[]>} The list of created product options.
851
954
  *
852
955
  * @example
853
- * const options = await productModuleService.createOptions([
956
+ * const options = await productModuleService.createProductOptions([
854
957
  * {
855
958
  * title: "Color",
856
959
  * values: ["Blue", "Green"],
@@ -864,7 +967,7 @@ export interface IProductModuleService extends IModuleService {
864
967
  * ])
865
968
  *
866
969
  */
867
- createOptions(data: CreateProductOptionDTO[], sharedContext?: Context): Promise<ProductOptionDTO[]>;
970
+ createProductOptions(data: CreateProductOptionDTO[], sharedContext?: Context): Promise<ProductOptionDTO[]>;
868
971
  /**
869
972
  * This method is used to create a product option.
870
973
  *
@@ -873,14 +976,14 @@ export interface IProductModuleService extends IModuleService {
873
976
  * @returns {Promise<ProductOptionDTO>} The created product option.
874
977
  *
875
978
  * @example
876
- * const option = await productModuleService.createOptions({
979
+ * const option = await productModuleService.createProductOptions({
877
980
  * title: "Color",
878
981
  * values: ["Blue", "Green"],
879
982
  * product_id: "prod_123",
880
983
  * })
881
984
  *
882
985
  */
883
- createOptions(data: CreateProductOptionDTO, sharedContext?: Context): Promise<ProductOptionDTO>;
986
+ createProductOptions(data: CreateProductOptionDTO, sharedContext?: Context): Promise<ProductOptionDTO>;
884
987
  /**
885
988
  * This method updates existing options, or creates new ones if they don't exist.
886
989
  *
@@ -889,7 +992,7 @@ export interface IProductModuleService extends IModuleService {
889
992
  * @returns {Promise<ProductOptionDTO[]>} The updated and created options.
890
993
  *
891
994
  * @example
892
- * const options = await productModuleService.upsertOptions([
995
+ * const options = await productModuleService.upsertProductOptions([
893
996
  * {
894
997
  * id: "opt_123",
895
998
  * title: "Color",
@@ -901,7 +1004,7 @@ export interface IProductModuleService extends IModuleService {
901
1004
  * },
902
1005
  * ])
903
1006
  */
904
- upsertOptions(data: UpsertProductOptionDTO[], sharedContext?: Context): Promise<ProductOptionDTO[]>;
1007
+ upsertProductOptions(data: UpsertProductOptionDTO[], sharedContext?: Context): Promise<ProductOptionDTO[]>;
905
1008
  /**
906
1009
  * This method updates an existing option, or creates a new one if it doesn't exist.
907
1010
  *
@@ -910,12 +1013,12 @@ export interface IProductModuleService extends IModuleService {
910
1013
  * @returns {Promise<ProductOptionDTO>} The updated or created option.
911
1014
  *
912
1015
  * @example
913
- * const option = await productModuleService.upsertOptions({
1016
+ * const option = await productModuleService.upsertProductOptions({
914
1017
  * id: "opt_123",
915
1018
  * title: "Color",
916
1019
  * })
917
1020
  */
918
- upsertOptions(data: UpsertProductOptionDTO, sharedContext?: Context): Promise<ProductOptionDTO>;
1021
+ upsertProductOptions(data: UpsertProductOptionDTO, sharedContext?: Context): Promise<ProductOptionDTO>;
919
1022
  /**
920
1023
  * This method is used to update a option.
921
1024
  *
@@ -925,14 +1028,14 @@ export interface IProductModuleService extends IModuleService {
925
1028
  * @returns {Promise<ProductOptionDTO>} The updated option.
926
1029
  *
927
1030
  * @example
928
- * const option = await productModuleService.updateOptions(
1031
+ * const option = await productModuleService.updateProductOptions(
929
1032
  * "opt_123",
930
1033
  * {
931
1034
  * title: "Color",
932
1035
  * }
933
1036
  * )
934
1037
  */
935
- updateOptions(id: string, data: UpdateProductOptionDTO, sharedContext?: Context): Promise<ProductOptionDTO>;
1038
+ updateProductOptions(id: string, data: UpdateProductOptionDTO, sharedContext?: Context): Promise<ProductOptionDTO>;
936
1039
  /**
937
1040
  * This method is used to update a list of options matching the specified filters.
938
1041
  *
@@ -942,7 +1045,7 @@ export interface IProductModuleService extends IModuleService {
942
1045
  * @returns {Promise<ProductOptionDTO[]>} The updated options.
943
1046
  *
944
1047
  * @example
945
- * const options = await productModuleService.updateOptions(
1048
+ * const options = await productModuleService.updateProductOptions(
946
1049
  * {
947
1050
  * title: "Color",
948
1051
  * },
@@ -951,7 +1054,7 @@ export interface IProductModuleService extends IModuleService {
951
1054
  * }
952
1055
  * )
953
1056
  */
954
- updateOptions(selector: FilterableProductOptionProps, data: UpdateProductOptionDTO, sharedContext?: Context): Promise<ProductOptionDTO[]>;
1057
+ updateProductOptions(selector: FilterableProductOptionProps, data: UpdateProductOptionDTO, sharedContext?: Context): Promise<ProductOptionDTO[]>;
955
1058
  /**
956
1059
  * This method is used to delete a product option.
957
1060
  *
@@ -960,12 +1063,12 @@ export interface IProductModuleService extends IModuleService {
960
1063
  * @returns {Promise<void>} Resolves when the product options are successfully deleted.
961
1064
  *
962
1065
  * @example
963
- * await productModuleService.deleteOptions([
1066
+ * await productModuleService.deleteProductOptions([
964
1067
  * "opt_123",
965
1068
  * "opt_321",
966
1069
  * ])
967
1070
  */
968
- deleteOptions(productOptionIds: string[], sharedContext?: Context): Promise<void>;
1071
+ deleteProductOptions(productOptionIds: string[], sharedContext?: Context): Promise<void>;
969
1072
  /**
970
1073
  * This method is used to delete options. Unlike the {@link delete} method, this method won't completely remove the option. It can still be accessed or retrieved using methods like {@link retrieve} if you pass the `withDeleted` property to the `config` object parameter.
971
1074
  *
@@ -982,12 +1085,12 @@ export interface IProductModuleService extends IModuleService {
982
1085
  * If there are no related records, the promise resolved to `void`.
983
1086
  *
984
1087
  * @example
985
- * await productModuleService.softDeleteOptions([
1088
+ * await productModuleService.softDeleteProductOptions([
986
1089
  * "opt_123",
987
1090
  * "opt_321",
988
1091
  * ])
989
1092
  */
990
- softDeleteOptions<TReturnableLinkableKeys extends string = string>(optionIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1093
+ softDeleteProductOptions<TReturnableLinkableKeys extends string = string>(optionIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
991
1094
  /**
992
1095
  * This method is used to restore options which were deleted using the {@link softDelete} method.
993
1096
  *
@@ -1002,12 +1105,12 @@ export interface IProductModuleService extends IModuleService {
1002
1105
  * If there are no related records that were restored, the promise resolved to `void`.
1003
1106
  *
1004
1107
  * @example
1005
- * await productModuleService.restoreOptions([
1108
+ * await productModuleService.restoreProductOptions([
1006
1109
  * "opt_123",
1007
1110
  * "opt_321",
1008
1111
  * ])
1009
1112
  */
1010
- restoreOptions<TReturnableLinkableKeys extends string = string>(optionIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1113
+ restoreProductOptions<TReturnableLinkableKeys extends string = string>(optionIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1011
1114
  /**
1012
1115
  * This method is used to retrieve a product variant by its ID.
1013
1116
  *
@@ -1023,13 +1126,13 @@ export interface IProductModuleService extends IModuleService {
1023
1126
  *
1024
1127
  * ```ts
1025
1128
  * const variant =
1026
- * await productModuleService.retrieveVariant("variant_123")
1129
+ * await productModuleService.retrieveProductVariant("variant_123")
1027
1130
  * ```
1028
1131
  *
1029
1132
  * To specify relations that should be retrieved:
1030
1133
  *
1031
1134
  * ```ts
1032
- * const variant = await productModuleService.retrieveVariant(
1135
+ * const variant = await productModuleService.retrieveProductVariant(
1033
1136
  * "variant_123",
1034
1137
  * {
1035
1138
  * relations: ["options"],
@@ -1037,7 +1140,7 @@ export interface IProductModuleService extends IModuleService {
1037
1140
  * )
1038
1141
  * ```
1039
1142
  */
1040
- retrieveVariant(productVariantId: string, config?: FindConfig<ProductVariantDTO>, sharedContext?: Context): Promise<ProductVariantDTO>;
1143
+ retrieveProductVariant(productVariantId: string, config?: FindConfig<ProductVariantDTO>, sharedContext?: Context): Promise<ProductVariantDTO>;
1041
1144
  /**
1042
1145
  * This method is used to retrieve a paginated list of product variants based on optional filters and configuration.
1043
1146
  *
@@ -1052,7 +1155,7 @@ export interface IProductModuleService extends IModuleService {
1052
1155
  * To retrieve a list of product variants using their IDs:
1053
1156
  *
1054
1157
  * ```ts
1055
- * const variants = await productModuleService.listVariants({
1158
+ * const variants = await productModuleService.listProductVariants({
1056
1159
  * id: ["variant_123", "variant_321"],
1057
1160
  * })
1058
1161
  * ```
@@ -1060,7 +1163,7 @@ export interface IProductModuleService extends IModuleService {
1060
1163
  * To specify relations that should be retrieved within the product variants:
1061
1164
  *
1062
1165
  * ```ts
1063
- * const variants = await productModuleService.listVariants(
1166
+ * const variants = await productModuleService.listProductVariants(
1064
1167
  * {
1065
1168
  * id: ["variant_123", "variant_321"],
1066
1169
  * },
@@ -1073,7 +1176,7 @@ export interface IProductModuleService extends IModuleService {
1073
1176
  * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
1074
1177
  *
1075
1178
  * ```ts
1076
- * const variants = await productModuleService.listVariants(
1179
+ * const variants = await productModuleService.listProductVariants(
1077
1180
  * {
1078
1181
  * id: ["variant_123", "variant_321"],
1079
1182
  * },
@@ -1085,7 +1188,7 @@ export interface IProductModuleService extends IModuleService {
1085
1188
  * )
1086
1189
  * ```
1087
1190
  */
1088
- listVariants(filters?: FilterableProductVariantProps, config?: FindConfig<ProductVariantDTO>, sharedContext?: Context): Promise<ProductVariantDTO[]>;
1191
+ listProductVariants(filters?: FilterableProductVariantProps, config?: FindConfig<ProductVariantDTO>, sharedContext?: Context): Promise<ProductVariantDTO[]>;
1089
1192
  /**
1090
1193
  * This method is used to retrieve a paginated list of product variants along with the total count of available product variants satisfying the provided filters.
1091
1194
  *
@@ -1101,7 +1204,7 @@ export interface IProductModuleService extends IModuleService {
1101
1204
  *
1102
1205
  * ```ts
1103
1206
  * const [variants, count] =
1104
- * await productModuleService.listAndCountVariants({
1207
+ * await productModuleService.listAndCountProductVariants({
1105
1208
  * id: ["variant_123", "variant_321"],
1106
1209
  * })
1107
1210
  * ```
@@ -1110,7 +1213,7 @@ export interface IProductModuleService extends IModuleService {
1110
1213
  *
1111
1214
  * ```ts
1112
1215
  * const [variants, count] =
1113
- * await productModuleService.listAndCountVariants(
1216
+ * await productModuleService.listAndCountProductVariants(
1114
1217
  * {
1115
1218
  * id: ["variant_123", "variant_321"],
1116
1219
  * },
@@ -1124,7 +1227,7 @@ export interface IProductModuleService extends IModuleService {
1124
1227
  *
1125
1228
  * ```ts
1126
1229
  * const [variants, count] =
1127
- * await productModuleService.listAndCountVariants(
1230
+ * await productModuleService.listAndCountProductVariants(
1128
1231
  * {
1129
1232
  * id: ["variant_123", "variant_321"],
1130
1233
  * },
@@ -1136,7 +1239,7 @@ export interface IProductModuleService extends IModuleService {
1136
1239
  * )
1137
1240
  * ```
1138
1241
  */
1139
- listAndCountVariants(filters?: FilterableProductVariantProps, config?: FindConfig<ProductVariantDTO>, sharedContext?: Context): Promise<[ProductVariantDTO[], number]>;
1242
+ listAndCountProductVariants(filters?: FilterableProductVariantProps, config?: FindConfig<ProductVariantDTO>, sharedContext?: Context): Promise<[ProductVariantDTO[], number]>;
1140
1243
  /**
1141
1244
  * This method is used to create product variants.
1142
1245
  *
@@ -1145,7 +1248,7 @@ export interface IProductModuleService extends IModuleService {
1145
1248
  * @returns {Promise<ProductVariantDTO[]>} The list of created product variants.
1146
1249
  *
1147
1250
  * @example
1148
- * const variants = await productModuleService.createVariants([
1251
+ * const variants = await productModuleService.createProductVariants([
1149
1252
  * {
1150
1253
  * title: "Blue Shirt",
1151
1254
  * product_id: "prod_123",
@@ -1163,7 +1266,7 @@ export interface IProductModuleService extends IModuleService {
1163
1266
  * ])
1164
1267
  *
1165
1268
  */
1166
- createVariants(data: CreateProductVariantDTO[], sharedContext?: Context): Promise<ProductVariantDTO[]>;
1269
+ createProductVariants(data: CreateProductVariantDTO[], sharedContext?: Context): Promise<ProductVariantDTO[]>;
1167
1270
  /**
1168
1271
  * This method is used to create a product variant.
1169
1272
  *
@@ -1172,7 +1275,7 @@ export interface IProductModuleService extends IModuleService {
1172
1275
  * @returns {Promise<ProductVariantDTO>} The created product variant.
1173
1276
  *
1174
1277
  * @example
1175
- * const variant = await productModuleService.createVariants({
1278
+ * const variant = await productModuleService.createProductVariants({
1176
1279
  * title: "Blue Shirt",
1177
1280
  * product_id: "prod_123",
1178
1281
  * options: {
@@ -1181,7 +1284,7 @@ export interface IProductModuleService extends IModuleService {
1181
1284
  * })
1182
1285
  *
1183
1286
  */
1184
- createVariants(data: CreateProductVariantDTO, sharedContext?: Context): Promise<ProductVariantDTO>;
1287
+ createProductVariants(data: CreateProductVariantDTO, sharedContext?: Context): Promise<ProductVariantDTO>;
1185
1288
  /**
1186
1289
  * This method updates existing variants, or creates new ones if they don't exist.
1187
1290
  *
@@ -1190,7 +1293,7 @@ export interface IProductModuleService extends IModuleService {
1190
1293
  * @returns {Promise<ProductVariantDTO[]>} The updated and created variants.
1191
1294
  *
1192
1295
  * @example
1193
- * const variants = await productModuleService.upsertVariants([
1296
+ * const variants = await productModuleService.upsertProductVariants([
1194
1297
  * {
1195
1298
  * id: "variant_123",
1196
1299
  * title: "Green Shirt",
@@ -1203,7 +1306,7 @@ export interface IProductModuleService extends IModuleService {
1203
1306
  * },
1204
1307
  * ])
1205
1308
  */
1206
- upsertVariants(data: UpsertProductVariantDTO[], sharedContext?: Context): Promise<ProductVariantDTO[]>;
1309
+ upsertProductVariants(data: UpsertProductVariantDTO[], sharedContext?: Context): Promise<ProductVariantDTO[]>;
1207
1310
  /**
1208
1311
  * This method updates an existing variant, or creates a new one if it doesn't exist.
1209
1312
  *
@@ -1212,12 +1315,12 @@ export interface IProductModuleService extends IModuleService {
1212
1315
  * @returns {Promise<ProductVariantDTO>} The updated or created variant.
1213
1316
  *
1214
1317
  * @example
1215
- * const variant = await productModuleService.upsertVariants({
1318
+ * const variant = await productModuleService.upsertProductVariants({
1216
1319
  * id: "variant_123",
1217
1320
  * title: "Green Shirt",
1218
1321
  * })
1219
1322
  */
1220
- upsertVariants(data: UpsertProductVariantDTO, sharedContext?: Context): Promise<ProductVariantDTO>;
1323
+ upsertProductVariants(data: UpsertProductVariantDTO, sharedContext?: Context): Promise<ProductVariantDTO>;
1221
1324
  /**
1222
1325
  * This method is used to update a variant.
1223
1326
  *
@@ -1227,14 +1330,14 @@ export interface IProductModuleService extends IModuleService {
1227
1330
  * @returns {Promise<ProductVariantDTO>} The updated variant.
1228
1331
  *
1229
1332
  * @example
1230
- * const variant = await productModuleService.updateVariants(
1333
+ * const variant = await productModuleService.updateProductVariants(
1231
1334
  * "variant_123",
1232
1335
  * {
1233
1336
  * title: "Blue Shirt",
1234
1337
  * }
1235
1338
  * )
1236
1339
  */
1237
- updateVariants(id: string, data: UpdateProductVariantDTO, sharedContext?: Context): Promise<ProductVariantDTO>;
1340
+ updateProductVariants(id: string, data: UpdateProductVariantDTO, sharedContext?: Context): Promise<ProductVariantDTO>;
1238
1341
  /**
1239
1342
  * This method is used to update a list of variants matching the specified filters.
1240
1343
  *
@@ -1244,7 +1347,7 @@ export interface IProductModuleService extends IModuleService {
1244
1347
  * @returns {Promise<ProductVariantDTO[]>} The updated variants.
1245
1348
  *
1246
1349
  * @example
1247
- * const variants = await productModuleService.updateVariants(
1350
+ * const variants = await productModuleService.updateProductVariants(
1248
1351
  * {
1249
1352
  * id: ["variant_123", "variant_321"],
1250
1353
  * },
@@ -1253,7 +1356,7 @@ export interface IProductModuleService extends IModuleService {
1253
1356
  * }
1254
1357
  * )
1255
1358
  */
1256
- updateVariants(selector: FilterableProductVariantProps, data: UpdateProductVariantDTO, sharedContext?: Context): Promise<ProductVariantDTO[]>;
1359
+ updateProductVariants(selector: FilterableProductVariantProps, data: UpdateProductVariantDTO, sharedContext?: Context): Promise<ProductVariantDTO[]>;
1257
1360
  /**
1258
1361
  * This method is used to delete ProductVariant. This method will completely remove the ProductVariant and they can no longer be accessed or retrieved.
1259
1362
  *
@@ -1262,12 +1365,12 @@ export interface IProductModuleService extends IModuleService {
1262
1365
  * @returns {Promise<void>} Resolves when the ProductVariant are successfully deleted.
1263
1366
  *
1264
1367
  * @example
1265
- * await productModuleService.deleteVariants([
1368
+ * await productModuleService.deleteProductVariants([
1266
1369
  * "variant_123",
1267
1370
  * "variant_321",
1268
1371
  * ])
1269
1372
  */
1270
- deleteVariants(productVariantIds: string[], sharedContext?: Context): Promise<void>;
1373
+ deleteProductVariants(productVariantIds: string[], sharedContext?: Context): Promise<void>;
1271
1374
  /**
1272
1375
  * This method is used to delete variants. Unlike the {@link delete} method, this method won't completely remove the variant. It can still be accessed or retrieved using methods like {@link retrieve} if you pass the `withDeleted` property to the `config` object parameter.
1273
1376
  *
@@ -1284,12 +1387,12 @@ export interface IProductModuleService extends IModuleService {
1284
1387
  * If there are no related records, the promise resolved to `void`.
1285
1388
  *
1286
1389
  * @example
1287
- * await productModuleService.softDeleteVariants([
1390
+ * await productModuleService.softDeleteProductVariants([
1288
1391
  * "variant_123",
1289
1392
  * "variant_321",
1290
1393
  * ])
1291
1394
  */
1292
- softDeleteVariants<TReturnableLinkableKeys extends string = string>(variantIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1395
+ softDeleteProductVariants<TReturnableLinkableKeys extends string = string>(variantIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1293
1396
  /**
1294
1397
  * This method is used to restore variants which were deleted using the {@link softDelete} method.
1295
1398
  *
@@ -1304,12 +1407,12 @@ export interface IProductModuleService extends IModuleService {
1304
1407
  * If there are no related records that were restored, the promise resolved to `void`.
1305
1408
  *
1306
1409
  * @example
1307
- * await productModuleService.restoreVariants([
1410
+ * await productModuleService.restoreProductVariants([
1308
1411
  * "variant_123",
1309
1412
  * "variant_321",
1310
1413
  * ])
1311
1414
  */
1312
- restoreVariants<TReturnableLinkableKeys extends string = string>(variantIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1415
+ restoreProductVariants<TReturnableLinkableKeys extends string = string>(variantIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1313
1416
  /**
1314
1417
  * This method is used to retrieve a product collection by its ID.
1315
1418
  *
@@ -1325,19 +1428,19 @@ export interface IProductModuleService extends IModuleService {
1325
1428
  *
1326
1429
  * ```ts
1327
1430
  * const collection =
1328
- * await productModuleService.retrieveCollection("pcol_123")
1431
+ * await productModuleService.retrieveProductCollection("pcol_123")
1329
1432
  * ```
1330
1433
  *
1331
1434
  * To specify relations that should be retrieved:
1332
1435
  *
1333
1436
  * ```ts
1334
1437
  * const collection =
1335
- * await productModuleService.retrieveCollection("pcol_123", {
1438
+ * await productModuleService.retrieveProductCollection("pcol_123", {
1336
1439
  * relations: ["products"],
1337
1440
  * })
1338
1441
  * ```
1339
1442
  */
1340
- retrieveCollection(productCollectionId: string, config?: FindConfig<ProductCollectionDTO>, sharedContext?: Context): Promise<ProductCollectionDTO>;
1443
+ retrieveProductCollection(productCollectionId: string, config?: FindConfig<ProductCollectionDTO>, sharedContext?: Context): Promise<ProductCollectionDTO>;
1341
1444
  /**
1342
1445
  * This method is used to retrieve a paginated list of product collections based on optional filters and configuration.
1343
1446
  *
@@ -1353,7 +1456,7 @@ export interface IProductModuleService extends IModuleService {
1353
1456
  *
1354
1457
  * ```ts
1355
1458
  * const collections =
1356
- * await productModuleService.listCollections({
1459
+ * await productModuleService.listProductCollections({
1357
1460
  * id: ["pcol_123", "pcol_321"],
1358
1461
  * })
1359
1462
  * ```
@@ -1362,7 +1465,7 @@ export interface IProductModuleService extends IModuleService {
1362
1465
  *
1363
1466
  * ```ts
1364
1467
  * const collections =
1365
- * await productModuleService.listCollections(
1468
+ * await productModuleService.listProductCollections(
1366
1469
  * {
1367
1470
  * id: ["pcol_123", "pcol_321"],
1368
1471
  * },
@@ -1376,7 +1479,7 @@ export interface IProductModuleService extends IModuleService {
1376
1479
  *
1377
1480
  * ```ts
1378
1481
  * const collections =
1379
- * await productModuleService.listCollections(
1482
+ * await productModuleService.listProductCollections(
1380
1483
  * {
1381
1484
  * id: ["pcol_123", "pcol_321"],
1382
1485
  * },
@@ -1388,7 +1491,7 @@ export interface IProductModuleService extends IModuleService {
1388
1491
  * )
1389
1492
  * ```
1390
1493
  */
1391
- listCollections(filters?: FilterableProductCollectionProps, config?: FindConfig<ProductCollectionDTO>, sharedContext?: Context): Promise<ProductCollectionDTO[]>;
1494
+ listProductCollections(filters?: FilterableProductCollectionProps, config?: FindConfig<ProductCollectionDTO>, sharedContext?: Context): Promise<ProductCollectionDTO[]>;
1392
1495
  /**
1393
1496
  * This method is used to retrieve a paginated list of product collections along with the total count of available product collections satisfying the provided filters.
1394
1497
  *
@@ -1404,7 +1507,7 @@ export interface IProductModuleService extends IModuleService {
1404
1507
  *
1405
1508
  * ```ts
1406
1509
  * const [collections, count] =
1407
- * await productModuleService.listAndCountCollections({
1510
+ * await productModuleService.listAndCountProductCollections({
1408
1511
  * id: ["pcol_123", "pcol_321"],
1409
1512
  * })
1410
1513
  * ```
@@ -1413,7 +1516,7 @@ export interface IProductModuleService extends IModuleService {
1413
1516
  *
1414
1517
  * ```ts
1415
1518
  * const [collections, count] =
1416
- * await productModuleService.listAndCountCollections(
1519
+ * await productModuleService.listAndCountProductCollections(
1417
1520
  * {
1418
1521
  * id: ["pcol_123", "pcol_321"],
1419
1522
  * },
@@ -1427,7 +1530,7 @@ export interface IProductModuleService extends IModuleService {
1427
1530
  *
1428
1531
  * ```ts
1429
1532
  * const [collections, count] =
1430
- * await productModuleService.listAndCountCollections(
1533
+ * await productModuleService.listAndCountProductCollections(
1431
1534
  * {
1432
1535
  * id: ["pcol_123", "pcol_321"],
1433
1536
  * },
@@ -1439,7 +1542,7 @@ export interface IProductModuleService extends IModuleService {
1439
1542
  * )
1440
1543
  * ```
1441
1544
  */
1442
- listAndCountCollections(filters?: FilterableProductCollectionProps, config?: FindConfig<ProductCollectionDTO>, sharedContext?: Context): Promise<[ProductCollectionDTO[], number]>;
1545
+ listAndCountProductCollections(filters?: FilterableProductCollectionProps, config?: FindConfig<ProductCollectionDTO>, sharedContext?: Context): Promise<[ProductCollectionDTO[], number]>;
1443
1546
  /**
1444
1547
  * This method is used to create product collections.
1445
1548
  *
@@ -1449,7 +1552,7 @@ export interface IProductModuleService extends IModuleService {
1449
1552
  *
1450
1553
  * @example
1451
1554
  * const collections =
1452
- * await productModuleService.createCollections([
1555
+ * await productModuleService.createProductCollections([
1453
1556
  * {
1454
1557
  * title: "Summer Collection",
1455
1558
  * },
@@ -1459,7 +1562,7 @@ export interface IProductModuleService extends IModuleService {
1459
1562
  * ])
1460
1563
  *
1461
1564
  */
1462
- createCollections(data: CreateProductCollectionDTO[], sharedContext?: Context): Promise<ProductCollectionDTO[]>;
1565
+ createProductCollections(data: CreateProductCollectionDTO[], sharedContext?: Context): Promise<ProductCollectionDTO[]>;
1463
1566
  /**
1464
1567
  * This method is used to create a product collection.
1465
1568
  *
@@ -1469,12 +1572,12 @@ export interface IProductModuleService extends IModuleService {
1469
1572
  *
1470
1573
  * @example
1471
1574
  * const collection =
1472
- * await productModuleService.createCollections({
1575
+ * await productModuleService.createProductCollections({
1473
1576
  * title: "Summer Collection",
1474
1577
  * })
1475
1578
  *
1476
1579
  */
1477
- createCollections(data: CreateProductCollectionDTO, sharedContext?: Context): Promise<ProductCollectionDTO>;
1580
+ createProductCollections(data: CreateProductCollectionDTO, sharedContext?: Context): Promise<ProductCollectionDTO>;
1478
1581
  /**
1479
1582
  * This method updates existing collections, or creates new ones if they don't exist.
1480
1583
  *
@@ -1484,7 +1587,7 @@ export interface IProductModuleService extends IModuleService {
1484
1587
  *
1485
1588
  * @example
1486
1589
  * const collections =
1487
- * await productModuleService.upsertCollections([
1590
+ * await productModuleService.upsertProductCollections([
1488
1591
  * {
1489
1592
  * id: "pcol_123",
1490
1593
  * title: "Winter Collection",
@@ -1494,7 +1597,7 @@ export interface IProductModuleService extends IModuleService {
1494
1597
  * },
1495
1598
  * ])
1496
1599
  */
1497
- upsertCollections(data: UpsertProductCollectionDTO[], sharedContext?: Context): Promise<ProductCollectionDTO[]>;
1600
+ upsertProductCollections(data: UpsertProductCollectionDTO[], sharedContext?: Context): Promise<ProductCollectionDTO[]>;
1498
1601
  /**
1499
1602
  * This method updates an existing collection, or creates a new one if it doesn't exist.
1500
1603
  *
@@ -1504,12 +1607,12 @@ export interface IProductModuleService extends IModuleService {
1504
1607
  *
1505
1608
  * @example
1506
1609
  * const collection =
1507
- * await productModuleService.upsertCollections({
1610
+ * await productModuleService.upsertProductCollections({
1508
1611
  * id: "pcol_123",
1509
1612
  * title: "Winter Collection",
1510
1613
  * })
1511
1614
  */
1512
- upsertCollections(data: UpsertProductCollectionDTO, sharedContext?: Context): Promise<ProductCollectionDTO>;
1615
+ upsertProductCollections(data: UpsertProductCollectionDTO, sharedContext?: Context): Promise<ProductCollectionDTO>;
1513
1616
  /**
1514
1617
  * This method is used to update a collection.
1515
1618
  *
@@ -1520,11 +1623,11 @@ export interface IProductModuleService extends IModuleService {
1520
1623
  *
1521
1624
  * @example
1522
1625
  * const collection =
1523
- * await productModuleService.updateCollections("pcol_123", {
1626
+ * await productModuleService.updateProductCollections("pcol_123", {
1524
1627
  * title: "Summer Collection",
1525
1628
  * })
1526
1629
  */
1527
- updateCollections(id: string, data: UpdateProductCollectionDTO, sharedContext?: Context): Promise<ProductCollectionDTO>;
1630
+ updateProductCollections(id: string, data: UpdateProductCollectionDTO, sharedContext?: Context): Promise<ProductCollectionDTO>;
1528
1631
  /**
1529
1632
  * This method is used to update a list of collections matching the specified filters.
1530
1633
  *
@@ -1535,7 +1638,7 @@ export interface IProductModuleService extends IModuleService {
1535
1638
  *
1536
1639
  * @example
1537
1640
  * const collections =
1538
- * await productModuleService.updateCollections(
1641
+ * await productModuleService.updateProductCollections(
1539
1642
  * {
1540
1643
  * id: ["pcol_123", "pcol_321"],
1541
1644
  * },
@@ -1544,7 +1647,7 @@ export interface IProductModuleService extends IModuleService {
1544
1647
  * }
1545
1648
  * )
1546
1649
  */
1547
- updateCollections(selector: FilterableProductCollectionProps, data: UpdateProductCollectionDTO, sharedContext?: Context): Promise<ProductCollectionDTO[]>;
1650
+ updateProductCollections(selector: FilterableProductCollectionProps, data: UpdateProductCollectionDTO, sharedContext?: Context): Promise<ProductCollectionDTO[]>;
1548
1651
  /**
1549
1652
  * This method is used to delete collections by their ID.
1550
1653
  *
@@ -1553,13 +1656,13 @@ export interface IProductModuleService extends IModuleService {
1553
1656
  * @returns {Promise<void>} Resolves when the product options are successfully deleted.
1554
1657
  *
1555
1658
  * @example
1556
- * await productModuleService.deleteCollections([
1659
+ * await productModuleService.deleteProductCollections([
1557
1660
  * "pcol_123",
1558
1661
  * "pcol_321",
1559
1662
  * ])
1560
1663
  *
1561
1664
  */
1562
- deleteCollections(productCollectionIds: string[], sharedContext?: Context): Promise<void>;
1665
+ deleteProductCollections(productCollectionIds: string[], sharedContext?: Context): Promise<void>;
1563
1666
  /**
1564
1667
  * This method is used to delete product collections. Unlike the {@link deleteCollections} method, this method won't completely remove the collection. It can still be accessed or retrieved using methods like {@link retrieveCollections} if you pass the `withDeleted` property to the `config` object parameter.
1565
1668
  *
@@ -1576,12 +1679,12 @@ export interface IProductModuleService extends IModuleService {
1576
1679
  * If there are no related records, the promise resolved to `void`.
1577
1680
  *
1578
1681
  * @example
1579
- * await productModuleService.softDeleteCollections([
1682
+ * await productModuleService.softDeleteProductCollections([
1580
1683
  * "pcol_123",
1581
1684
  * "pcol_321",
1582
1685
  * ])
1583
1686
  */
1584
- softDeleteCollections<TReturnableLinkableKeys extends string = string>(collectionIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1687
+ softDeleteProductCollections<TReturnableLinkableKeys extends string = string>(collectionIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1585
1688
  /**
1586
1689
  * This method is used to restore collections which were deleted using the {@link softDelete} method.
1587
1690
  *
@@ -1596,12 +1699,12 @@ export interface IProductModuleService extends IModuleService {
1596
1699
  * If there are no related records that were restored, the promise resolved to `void`.
1597
1700
  *
1598
1701
  * @example
1599
- * await productModuleService.restoreCollections([
1702
+ * await productModuleService.restoreProductCollections([
1600
1703
  * "pcol_123",
1601
1704
  * "pcol_321",
1602
1705
  * ])
1603
1706
  */
1604
- restoreCollections<TReturnableLinkableKeys extends string = string>(collectionIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1707
+ restoreProductCollections<TReturnableLinkableKeys extends string = string>(collectionIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1605
1708
  /**
1606
1709
  * This method is used to retrieve a product category by its ID.
1607
1710
  *
@@ -1617,13 +1720,13 @@ export interface IProductModuleService extends IModuleService {
1617
1720
  *
1618
1721
  * ```ts
1619
1722
  * const category =
1620
- * await productModuleService.retrieveCategory("pcat_123")
1723
+ * await productModuleService.retrieveProductCategory("pcat_123")
1621
1724
  * ```
1622
1725
  *
1623
1726
  * To specify relations that should be retrieved:
1624
1727
  *
1625
1728
  * ```ts
1626
- * const category = await productModuleService.retrieveCategory(
1729
+ * const category = await productModuleService.retrieveProductCategory(
1627
1730
  * "pcat_123",
1628
1731
  * {
1629
1732
  * relations: ["products"],
@@ -1631,7 +1734,7 @@ export interface IProductModuleService extends IModuleService {
1631
1734
  * )
1632
1735
  * ```
1633
1736
  */
1634
- retrieveCategory(productCategoryId: string, config?: FindConfig<ProductCategoryDTO>, sharedContext?: Context): Promise<ProductCategoryDTO>;
1737
+ retrieveProductCategory(productCategoryId: string, config?: FindConfig<ProductCategoryDTO>, sharedContext?: Context): Promise<ProductCategoryDTO>;
1635
1738
  /**
1636
1739
  * This method is used to retrieve a paginated list of product categories based on optional filters and configuration.
1637
1740
  *
@@ -1646,7 +1749,7 @@ export interface IProductModuleService extends IModuleService {
1646
1749
  * To retrieve a list of product categories using their IDs:
1647
1750
  *
1648
1751
  * ```ts
1649
- * const categories = await productModuleService.listCategories({
1752
+ * const categories = await productModuleService.listProductCategories({
1650
1753
  * id: ["pcat_123", "pcat_321"],
1651
1754
  * })
1652
1755
  * ```
@@ -1654,7 +1757,7 @@ export interface IProductModuleService extends IModuleService {
1654
1757
  * To specify relations that should be retrieved within the product categories:
1655
1758
  *
1656
1759
  * ```ts
1657
- * const categories = await productModuleService.listCategories(
1760
+ * const categories = await productModuleService.listProductCategories(
1658
1761
  * {
1659
1762
  * id: ["pcat_123", "pcat_321"],
1660
1763
  * },
@@ -1667,7 +1770,7 @@ export interface IProductModuleService extends IModuleService {
1667
1770
  * By default, only the first `15` records are retrieved. You can control pagination by specifying the `skip` and `take` properties of the `config` parameter:
1668
1771
  *
1669
1772
  * ```ts
1670
- * const categories = await productModuleService.listCategories(
1773
+ * const categories = await productModuleService.listProductCategories(
1671
1774
  * {
1672
1775
  * id: ["pcat_123", "pcat_321"],
1673
1776
  * },
@@ -1679,7 +1782,7 @@ export interface IProductModuleService extends IModuleService {
1679
1782
  * )
1680
1783
  * ```
1681
1784
  */
1682
- listCategories(filters?: FilterableProductCategoryProps, config?: FindConfig<ProductCategoryDTO>, sharedContext?: Context): Promise<ProductCategoryDTO[]>;
1785
+ listProductCategories(filters?: FilterableProductCategoryProps, config?: FindConfig<ProductCategoryDTO>, sharedContext?: Context): Promise<ProductCategoryDTO[]>;
1683
1786
  /**
1684
1787
  * This method is used to retrieve a paginated list of product categories along with the total count of available product categories satisfying the provided filters.
1685
1788
  *
@@ -1695,7 +1798,7 @@ export interface IProductModuleService extends IModuleService {
1695
1798
  *
1696
1799
  * ```ts
1697
1800
  * const [categories, count] =
1698
- * await productModuleService.listAndCountCategories({
1801
+ * await productModuleService.listAndCountProductCategories({
1699
1802
  * id: ["pcat_123", "pcat_321"],
1700
1803
  * })
1701
1804
  * ```
@@ -1704,7 +1807,7 @@ export interface IProductModuleService extends IModuleService {
1704
1807
  *
1705
1808
  * ```ts
1706
1809
  * const [categories, count] =
1707
- * await productModuleService.listAndCountCategories(
1810
+ * await productModuleService.listAndCountProductCategories(
1708
1811
  * {
1709
1812
  * id: ["pcat_123", "pcat_321"],
1710
1813
  * },
@@ -1718,7 +1821,7 @@ export interface IProductModuleService extends IModuleService {
1718
1821
  *
1719
1822
  * ```ts
1720
1823
  * const [categories, count] =
1721
- * await productModuleService.listAndCountCategories(
1824
+ * await productModuleService.listAndCountProductCategories(
1722
1825
  * {
1723
1826
  * id: ["pcat_123", "pcat_321"],
1724
1827
  * },
@@ -1730,7 +1833,27 @@ export interface IProductModuleService extends IModuleService {
1730
1833
  * )
1731
1834
  * ```
1732
1835
  */
1733
- listAndCountCategories(filters?: FilterableProductCategoryProps, config?: FindConfig<ProductCategoryDTO>, sharedContext?: Context): Promise<[ProductCategoryDTO[], number]>;
1836
+ listAndCountProductCategories(filters?: FilterableProductCategoryProps, config?: FindConfig<ProductCategoryDTO>, sharedContext?: Context): Promise<[ProductCategoryDTO[], number]>;
1837
+ /**
1838
+ * This method is used to create product categories.
1839
+ *
1840
+ * @param {CreateProductCategoryDTO[]} data - The product categories to be created.
1841
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
1842
+ * @returns {Promise<ProductCategoryDTO[]>} The list of created product categories.
1843
+ *
1844
+ * @example
1845
+ * const categories =
1846
+ * await productModuleService.createProductCategories([
1847
+ * {
1848
+ * name: "Tools",
1849
+ * },
1850
+ * {
1851
+ * name: "Clothing",
1852
+ * },
1853
+ * ])
1854
+ *
1855
+ */
1856
+ createProductCategories(data: CreateProductCategoryDTO[], sharedContext?: Context): Promise<ProductCategoryDTO[]>;
1734
1857
  /**
1735
1858
  * This method is used to create a product category.
1736
1859
  *
@@ -1739,40 +1862,139 @@ export interface IProductModuleService extends IModuleService {
1739
1862
  * @returns {Promise<ProductCategoryDTO>} The created product category.
1740
1863
  *
1741
1864
  * @example
1742
- * const category = await productModuleService.createCategory({
1743
- * name: "Shirts",
1744
- * parent_category_id: null,
1745
- * })
1865
+ * const category =
1866
+ * await productModuleService.createProductCategories({
1867
+ * name: "Tools",
1868
+ * })
1869
+ *
1870
+ */
1871
+ createProductCategories(data: CreateProductCategoryDTO, sharedContext?: Context): Promise<ProductCategoryDTO>;
1872
+ /**
1873
+ * This method updates existing categories, or creates new ones if they don't exist.
1874
+ *
1875
+ * @param {UpsertProductCategoryDTO[]} data - The attributes to update or create for each category.
1876
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
1877
+ * @returns {Promise<ProductCategoryDTO[]>} The updated and created categories.
1878
+ *
1879
+ * @example
1880
+ * const categories =
1881
+ * await productModuleService.upsertProductCategories([
1882
+ * {
1883
+ * id: "pcat_123",
1884
+ * name: "Clothing",
1885
+ * },
1886
+ * {
1887
+ * name: "Tools",
1888
+ * },
1889
+ * ])
1890
+ */
1891
+ upsertProductCategories(data: UpsertProductCategoryDTO[], sharedContext?: Context): Promise<ProductCategoryDTO[]>;
1892
+ /**
1893
+ * This method updates an existing category, or creates a new one if it doesn't exist.
1894
+ *
1895
+ * @param {UpsertProductCategoryDTO} data - The attributes to update or create for the category.
1896
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
1897
+ * @returns {Promise<ProductCategoryDTO>} The updated or created category.
1898
+ *
1899
+ * @example
1900
+ * const category =
1901
+ * await productModuleService.upsertProductCategories({
1902
+ * id: "pcat_123",
1903
+ * name: "Clothing",
1904
+ * })
1905
+ */
1906
+ upsertProductCategories(data: UpsertProductCategoryDTO, sharedContext?: Context): Promise<ProductCategoryDTO>;
1907
+ /**
1908
+ * This method is used to update a category.
1909
+ *
1910
+ * @param {string} id - The ID of the category to be updated.
1911
+ * @param {UpdateProductCategoryDTO} data - The attributes of the category to be updated
1912
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
1913
+ * @returns {Promise<ProductCategoryDTO>} The updated category.
1914
+ *
1915
+ * @example
1916
+ * const category =
1917
+ * await productModuleService.updateProductCategories("pcat_123", {
1918
+ * title: "Tools",
1919
+ * })
1920
+ */
1921
+ updateProductCategories(id: string, data: UpdateProductCategoryDTO, sharedContext?: Context): Promise<ProductCategoryDTO>;
1922
+ /**
1923
+ * This method is used to update a list of categories matching the specified filters.
1924
+ *
1925
+ * @param {FilterableProductCategoryProps} selector - The filters specifying which categories to update.
1926
+ * @param {UpdateProductCategoryDTO} data - The attributes to be updated on the selected categories
1927
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
1928
+ * @returns {Promise<ProductCategoryDTO[]>} The updated categories.
1746
1929
  *
1930
+ * @example
1931
+ * const categories =
1932
+ * await productModuleService.updateProductCategories(
1933
+ * {
1934
+ * id: ["pcat_123", "pcat_321"],
1935
+ * },
1936
+ * {
1937
+ * title: "Tools",
1938
+ * }
1939
+ * )
1747
1940
  */
1748
- createCategory(data: CreateProductCategoryDTO, sharedContext?: Context): Promise<ProductCategoryDTO>;
1941
+ updateProductCategories(selector: FilterableProductCategoryProps, data: UpdateProductCategoryDTO, sharedContext?: Context): Promise<ProductCategoryDTO[]>;
1749
1942
  /**
1750
- * This method is used to update a product category by its ID.
1943
+ * This method is used to delete categories by their ID.
1751
1944
  *
1752
- * @param {string} categoryId - The ID of the product category to update.
1753
- * @param {UpdateProductCategoryDTO} data - The attributes to update in th product category.
1945
+ * @param {string[]} productCategoryIds - The IDs of the product categories to be updated.
1754
1946
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
1755
- * @returns {Promise<ProductCategoryDTO>} The updated product category.
1947
+ * @returns {Promise<void>} Resolves when the product options are successfully deleted.
1756
1948
  *
1757
1949
  * @example
1758
- * const category = await productModuleService.updateCategory(
1950
+ * await productModuleService.deleteProductCategories([
1759
1951
  * "pcat_123",
1760
- * {
1761
- * name: "Shirts",
1762
- * }
1763
- * )
1952
+ * "pcat_321",
1953
+ * ])
1954
+ *
1764
1955
  */
1765
- updateCategory(categoryId: string, data: UpdateProductCategoryDTO, sharedContext?: Context): Promise<ProductCategoryDTO>;
1956
+ deleteProductCategories(productCategoryIds: string[], sharedContext?: Context): Promise<void>;
1766
1957
  /**
1767
- * This method is used to delete a product category by its ID.
1958
+ * This method is used to delete product categories. Unlike the {@link deleteCategories} method, this method won't completely remove the category. It can still be accessed or retrieved using methods like {@link retrieveCategories} if you pass the `withDeleted` property to the `config` object parameter.
1959
+ *
1960
+ * The soft-deleted categories can be restored using the {@link restoreCategories} method.
1768
1961
  *
1769
- * @param {string} categoryId - The ID of the product category to delete.
1962
+ * @param {string[]} categoryIds - The IDs of the categories to soft-delete.
1963
+ * @param {SoftDeleteReturn<TReturnableLinkableKeys>} config -
1964
+ * Configurations determining which relations to soft delete along with the each of the categories. You can pass to its `returnLinkableKeys`
1965
+ * property any of the category's relation attribute names.
1770
1966
  * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
1771
- * @returns {Promise<void>} Resolves when the product category is successfully deleted.
1967
+ * @returns {Promise<Record<string, string[]> | void>}
1968
+ * An object that includes the IDs of related records that were also soft deleted. The object's keys are the ID attribute names of the category entity's relations.
1969
+ *
1970
+ * If there are no related records, the promise resolved to `void`.
1772
1971
  *
1773
1972
  * @example
1774
- * await productModuleService.deleteCategory("pcat_123")
1973
+ * await productModuleService.softDeleteProductCategories([
1974
+ * "pcat_123",
1975
+ * "pcat_321",
1976
+ * ])
1977
+ */
1978
+ softDeleteProductCategories<TReturnableLinkableKeys extends string = string>(categoryIds: string[], config?: SoftDeleteReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1979
+ /**
1980
+ * This method is used to restore categories which were deleted using the {@link softDelete} method.
1981
+ *
1982
+ * @param {string[]} categoryIds - The IDs of the categories to restore.
1983
+ * @param {RestoreReturn<TReturnableLinkableKeys>} config -
1984
+ * Configurations determining which relations to restore along with each of the categories. You can pass to its `returnLinkableKeys`
1985
+ * property any of the category's relation attribute names.
1986
+ * @param {Context} sharedContext - A context used to share resources, such as transaction manager, between the application and the module.
1987
+ * @returns {Promise<Record<string, string[]> | void>}
1988
+ * An object that includes the IDs of related records that were restored. The object's keys are the ID attribute names of the product entity's relations.
1989
+ *
1990
+ * If there are no related records that were restored, the promise resolved to `void`.
1991
+ *
1992
+ * @example
1993
+ * await productModuleService.restoreProductCategories([
1994
+ * "pcat_123",
1995
+ * "pcat_321",
1996
+ * ])
1775
1997
  */
1776
- deleteCategory(categoryId: string, sharedContext?: Context): Promise<void>;
1998
+ restoreProductCategories<TReturnableLinkableKeys extends string = string>(categoryIds: string[], config?: RestoreReturn<TReturnableLinkableKeys>, sharedContext?: Context): Promise<Record<string, string[]> | void>;
1777
1999
  }
1778
2000
  //# sourceMappingURL=service.d.ts.map