@unchainedshop/api 3.0.0-alpha6 → 3.0.0-rc1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1169) hide show
  1. package/README.md +1 -1
  2. package/lib/api-index.d.ts +3 -3
  3. package/lib/api-index.d.ts.map +1 -1
  4. package/lib/api-index.js +2 -1
  5. package/lib/api-index.js.map +1 -1
  6. package/lib/context.d.ts +32 -2
  7. package/lib/context.d.ts.map +1 -1
  8. package/lib/context.js +13 -2
  9. package/lib/context.js.map +1 -1
  10. package/lib/errors.d.ts +2 -0
  11. package/lib/errors.d.ts.map +1 -1
  12. package/lib/errors.js +2 -0
  13. package/lib/errors.js.map +1 -1
  14. package/lib/express/createBulkImportMiddleware.d.ts +1 -1
  15. package/lib/express/createBulkImportMiddleware.d.ts.map +1 -1
  16. package/lib/express/createBulkImportMiddleware.js +1 -1
  17. package/lib/express/createBulkImportMiddleware.js.map +1 -1
  18. package/lib/express/createERCMetadataMiddleware.d.ts +3 -5
  19. package/lib/express/createERCMetadataMiddleware.d.ts.map +1 -1
  20. package/lib/express/createERCMetadataMiddleware.js +12 -17
  21. package/lib/express/createERCMetadataMiddleware.js.map +1 -1
  22. package/lib/express/index.d.ts +2 -2
  23. package/lib/express/index.d.ts.map +1 -1
  24. package/lib/express/index.js +31 -12
  25. package/lib/express/index.js.map +1 -1
  26. package/lib/fastify/bulkImportHandler.d.ts +4 -0
  27. package/lib/fastify/bulkImportHandler.d.ts.map +1 -0
  28. package/lib/fastify/bulkImportHandler.js +47 -0
  29. package/lib/fastify/bulkImportHandler.js.map +1 -0
  30. package/lib/fastify/ercMetadataHandler.d.ts +4 -0
  31. package/lib/fastify/ercMetadataHandler.d.ts.map +1 -0
  32. package/lib/fastify/ercMetadataHandler.js +39 -0
  33. package/lib/fastify/ercMetadataHandler.js.map +1 -0
  34. package/lib/fastify/index.d.ts +2 -1
  35. package/lib/fastify/index.d.ts.map +1 -1
  36. package/lib/fastify/index.js +37 -17
  37. package/lib/fastify/index.js.map +1 -1
  38. package/lib/loaders/index.d.ts +63 -1
  39. package/lib/loaders/index.d.ts.map +1 -1
  40. package/lib/loaders/index.js +52 -17
  41. package/lib/loaders/index.js.map +1 -1
  42. package/lib/locale-context.d.ts +13 -4
  43. package/lib/locale-context.d.ts.map +1 -1
  44. package/lib/locale-context.js +10 -12
  45. package/lib/locale-context.js.map +1 -1
  46. package/lib/resolvers/mutations/accounts/addEmail.d.ts +1 -1
  47. package/lib/resolvers/mutations/accounts/addEmail.d.ts.map +1 -1
  48. package/lib/resolvers/mutations/accounts/addWeb3Address.d.ts +1 -1
  49. package/lib/resolvers/mutations/accounts/addWeb3Address.d.ts.map +1 -1
  50. package/lib/resolvers/mutations/accounts/addWebAuthnCredentials.d.ts +1 -1
  51. package/lib/resolvers/mutations/accounts/addWebAuthnCredentials.d.ts.map +1 -1
  52. package/lib/resolvers/mutations/accounts/changePassword.d.ts +1 -1
  53. package/lib/resolvers/mutations/accounts/changePassword.d.ts.map +1 -1
  54. package/lib/resolvers/mutations/accounts/createUser.d.ts +1 -1
  55. package/lib/resolvers/mutations/accounts/createUser.d.ts.map +1 -1
  56. package/lib/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.d.ts +1 -1
  57. package/lib/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.d.ts.map +1 -1
  58. package/lib/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.js.map +1 -1
  59. package/lib/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.d.ts +1 -1
  60. package/lib/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.d.ts.map +1 -1
  61. package/lib/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.js.map +1 -1
  62. package/lib/resolvers/mutations/accounts/enrollUser.d.ts +1 -1
  63. package/lib/resolvers/mutations/accounts/enrollUser.d.ts.map +1 -1
  64. package/lib/resolvers/mutations/accounts/forgotPassword.d.ts +1 -1
  65. package/lib/resolvers/mutations/accounts/forgotPassword.d.ts.map +1 -1
  66. package/lib/resolvers/mutations/accounts/loginAsGuest.d.ts +1 -1
  67. package/lib/resolvers/mutations/accounts/loginAsGuest.d.ts.map +1 -1
  68. package/lib/resolvers/mutations/accounts/loginAsGuest.js +2 -2
  69. package/lib/resolvers/mutations/accounts/loginAsGuest.js.map +1 -1
  70. package/lib/resolvers/mutations/accounts/loginWithPassword.d.ts +1 -1
  71. package/lib/resolvers/mutations/accounts/loginWithPassword.d.ts.map +1 -1
  72. package/lib/resolvers/mutations/accounts/loginWithPassword.js +2 -2
  73. package/lib/resolvers/mutations/accounts/loginWithPassword.js.map +1 -1
  74. package/lib/resolvers/mutations/accounts/loginWithWebAuthn.d.ts +1 -1
  75. package/lib/resolvers/mutations/accounts/loginWithWebAuthn.d.ts.map +1 -1
  76. package/lib/resolvers/mutations/accounts/logout.d.ts +1 -1
  77. package/lib/resolvers/mutations/accounts/logout.d.ts.map +1 -1
  78. package/lib/resolvers/mutations/accounts/removeEmail.d.ts +1 -1
  79. package/lib/resolvers/mutations/accounts/removeEmail.d.ts.map +1 -1
  80. package/lib/resolvers/mutations/accounts/removeWeb3Address.d.ts +1 -1
  81. package/lib/resolvers/mutations/accounts/removeWeb3Address.d.ts.map +1 -1
  82. package/lib/resolvers/mutations/accounts/removeWebAuthnCredentials.d.ts +1 -1
  83. package/lib/resolvers/mutations/accounts/removeWebAuthnCredentials.d.ts.map +1 -1
  84. package/lib/resolvers/mutations/accounts/resetPassword.d.ts +1 -1
  85. package/lib/resolvers/mutations/accounts/resetPassword.d.ts.map +1 -1
  86. package/lib/resolvers/mutations/accounts/sendEnrollmentEmail.d.ts +1 -1
  87. package/lib/resolvers/mutations/accounts/sendEnrollmentEmail.d.ts.map +1 -1
  88. package/lib/resolvers/mutations/accounts/sendVerificationEmail.d.ts +1 -1
  89. package/lib/resolvers/mutations/accounts/sendVerificationEmail.d.ts.map +1 -1
  90. package/lib/resolvers/mutations/accounts/setPassword.d.ts +1 -1
  91. package/lib/resolvers/mutations/accounts/setPassword.d.ts.map +1 -1
  92. package/lib/resolvers/mutations/accounts/setUsername.d.ts +1 -1
  93. package/lib/resolvers/mutations/accounts/setUsername.d.ts.map +1 -1
  94. package/lib/resolvers/mutations/accounts/verifyEmail.d.ts +1 -1
  95. package/lib/resolvers/mutations/accounts/verifyEmail.d.ts.map +1 -1
  96. package/lib/resolvers/mutations/accounts/verifyWeb3Address.d.ts +1 -1
  97. package/lib/resolvers/mutations/accounts/verifyWeb3Address.d.ts.map +1 -1
  98. package/lib/resolvers/mutations/assortments/addAssortmentFilter.d.ts +1 -1
  99. package/lib/resolvers/mutations/assortments/addAssortmentFilter.d.ts.map +1 -1
  100. package/lib/resolvers/mutations/assortments/addAssortmentLink.d.ts +1 -1
  101. package/lib/resolvers/mutations/assortments/addAssortmentLink.d.ts.map +1 -1
  102. package/lib/resolvers/mutations/assortments/addAssortmentProduct.d.ts +1 -1
  103. package/lib/resolvers/mutations/assortments/addAssortmentProduct.d.ts.map +1 -1
  104. package/lib/resolvers/mutations/assortments/createAssortment.d.ts +1 -1
  105. package/lib/resolvers/mutations/assortments/createAssortment.d.ts.map +1 -1
  106. package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.d.ts +1 -1
  107. package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.d.ts.map +1 -1
  108. package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.js +1 -1
  109. package/lib/resolvers/mutations/assortments/prepareAssortmentMediaUpload.js.map +1 -1
  110. package/lib/resolvers/mutations/assortments/removeAssortment.d.ts +1 -1
  111. package/lib/resolvers/mutations/assortments/removeAssortment.d.ts.map +1 -1
  112. package/lib/resolvers/mutations/assortments/removeAssortmentFilter.d.ts +1 -1
  113. package/lib/resolvers/mutations/assortments/removeAssortmentFilter.d.ts.map +1 -1
  114. package/lib/resolvers/mutations/assortments/removeAssortmentLink.d.ts +1 -1
  115. package/lib/resolvers/mutations/assortments/removeAssortmentLink.d.ts.map +1 -1
  116. package/lib/resolvers/mutations/assortments/removeAssortmentMedia.d.ts +1 -1
  117. package/lib/resolvers/mutations/assortments/removeAssortmentMedia.d.ts.map +1 -1
  118. package/lib/resolvers/mutations/assortments/removeAssortmentProduct.d.ts +1 -1
  119. package/lib/resolvers/mutations/assortments/removeAssortmentProduct.d.ts.map +1 -1
  120. package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.d.ts +1 -1
  121. package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.d.ts.map +1 -1
  122. package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.d.ts +1 -1
  123. package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.d.ts.map +1 -1
  124. package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.d.ts +1 -1
  125. package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.d.ts.map +1 -1
  126. package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.d.ts +1 -1
  127. package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.d.ts.map +1 -1
  128. package/lib/resolvers/mutations/assortments/setBaseAssortment.d.ts +1 -1
  129. package/lib/resolvers/mutations/assortments/setBaseAssortment.d.ts.map +1 -1
  130. package/lib/resolvers/mutations/assortments/updateAssortment.d.ts +1 -1
  131. package/lib/resolvers/mutations/assortments/updateAssortment.d.ts.map +1 -1
  132. package/lib/resolvers/mutations/assortments/updateAssortmentMediaTexts.d.ts +1 -1
  133. package/lib/resolvers/mutations/assortments/updateAssortmentMediaTexts.d.ts.map +1 -1
  134. package/lib/resolvers/mutations/assortments/updateAssortmentTexts.d.ts +1 -1
  135. package/lib/resolvers/mutations/assortments/updateAssortmentTexts.d.ts.map +1 -1
  136. package/lib/resolvers/mutations/bookmarks/bookmark.d.ts +1 -1
  137. package/lib/resolvers/mutations/bookmarks/bookmark.d.ts.map +1 -1
  138. package/lib/resolvers/mutations/bookmarks/createBookmark.d.ts +1 -1
  139. package/lib/resolvers/mutations/bookmarks/createBookmark.d.ts.map +1 -1
  140. package/lib/resolvers/mutations/bookmarks/removeBookmark.d.ts +1 -1
  141. package/lib/resolvers/mutations/bookmarks/removeBookmark.d.ts.map +1 -1
  142. package/lib/resolvers/mutations/countries/createCountry.d.ts +1 -1
  143. package/lib/resolvers/mutations/countries/createCountry.d.ts.map +1 -1
  144. package/lib/resolvers/mutations/countries/removeCountry.d.ts +1 -1
  145. package/lib/resolvers/mutations/countries/removeCountry.d.ts.map +1 -1
  146. package/lib/resolvers/mutations/countries/updateCountry.d.ts +1 -1
  147. package/lib/resolvers/mutations/countries/updateCountry.d.ts.map +1 -1
  148. package/lib/resolvers/mutations/currencies/createCurrency.d.ts +1 -1
  149. package/lib/resolvers/mutations/currencies/createCurrency.d.ts.map +1 -1
  150. package/lib/resolvers/mutations/currencies/removeCurrency.d.ts +1 -1
  151. package/lib/resolvers/mutations/currencies/removeCurrency.d.ts.map +1 -1
  152. package/lib/resolvers/mutations/currencies/updateCurrency.d.ts +1 -1
  153. package/lib/resolvers/mutations/currencies/updateCurrency.d.ts.map +1 -1
  154. package/lib/resolvers/mutations/delivery/createDeliveryProvider.d.ts +1 -1
  155. package/lib/resolvers/mutations/delivery/createDeliveryProvider.d.ts.map +1 -1
  156. package/lib/resolvers/mutations/delivery/createDeliveryProvider.js +5 -0
  157. package/lib/resolvers/mutations/delivery/createDeliveryProvider.js.map +1 -1
  158. package/lib/resolvers/mutations/delivery/removeDeliveryProvider.d.ts +1 -1
  159. package/lib/resolvers/mutations/delivery/removeDeliveryProvider.d.ts.map +1 -1
  160. package/lib/resolvers/mutations/delivery/updateDeliveryProvider.d.ts +1 -1
  161. package/lib/resolvers/mutations/delivery/updateDeliveryProvider.d.ts.map +1 -1
  162. package/lib/resolvers/mutations/enrollments/activateEnrollment.d.ts +1 -1
  163. package/lib/resolvers/mutations/enrollments/activateEnrollment.d.ts.map +1 -1
  164. package/lib/resolvers/mutations/enrollments/activateEnrollment.js +2 -2
  165. package/lib/resolvers/mutations/enrollments/activateEnrollment.js.map +1 -1
  166. package/lib/resolvers/mutations/enrollments/createEnrollment.d.ts +2 -2
  167. package/lib/resolvers/mutations/enrollments/createEnrollment.d.ts.map +1 -1
  168. package/lib/resolvers/mutations/enrollments/createEnrollment.js +7 -3
  169. package/lib/resolvers/mutations/enrollments/createEnrollment.js.map +1 -1
  170. package/lib/resolvers/mutations/enrollments/terminateEnrollment.d.ts +2 -2
  171. package/lib/resolvers/mutations/enrollments/terminateEnrollment.d.ts.map +1 -1
  172. package/lib/resolvers/mutations/enrollments/terminateEnrollment.js +2 -2
  173. package/lib/resolvers/mutations/enrollments/terminateEnrollment.js.map +1 -1
  174. package/lib/resolvers/mutations/enrollments/updateEnrollment.d.ts +2 -2
  175. package/lib/resolvers/mutations/enrollments/updateEnrollment.d.ts.map +1 -1
  176. package/lib/resolvers/mutations/enrollments/updateEnrollment.js +3 -2
  177. package/lib/resolvers/mutations/enrollments/updateEnrollment.js.map +1 -1
  178. package/lib/resolvers/mutations/files/confirmMediaUpload.d.ts +1 -1
  179. package/lib/resolvers/mutations/files/confirmMediaUpload.d.ts.map +1 -1
  180. package/lib/resolvers/mutations/files/confirmMediaUpload.js +1 -1
  181. package/lib/resolvers/mutations/files/confirmMediaUpload.js.map +1 -1
  182. package/lib/resolvers/mutations/filters/createFilter.d.ts +3 -2
  183. package/lib/resolvers/mutations/filters/createFilter.d.ts.map +1 -1
  184. package/lib/resolvers/mutations/filters/createFilter.js +3 -1
  185. package/lib/resolvers/mutations/filters/createFilter.js.map +1 -1
  186. package/lib/resolvers/mutations/filters/createFilterOption.d.ts +2 -2
  187. package/lib/resolvers/mutations/filters/createFilterOption.d.ts.map +1 -1
  188. package/lib/resolvers/mutations/filters/createFilterOption.js +3 -1
  189. package/lib/resolvers/mutations/filters/createFilterOption.js.map +1 -1
  190. package/lib/resolvers/mutations/filters/removeFilter.d.ts +1 -1
  191. package/lib/resolvers/mutations/filters/removeFilter.d.ts.map +1 -1
  192. package/lib/resolvers/mutations/filters/removeFilterOption.d.ts +1 -1
  193. package/lib/resolvers/mutations/filters/removeFilterOption.d.ts.map +1 -1
  194. package/lib/resolvers/mutations/filters/removeFilterOption.js +3 -1
  195. package/lib/resolvers/mutations/filters/removeFilterOption.js.map +1 -1
  196. package/lib/resolvers/mutations/filters/updateFilter.d.ts +1 -1
  197. package/lib/resolvers/mutations/filters/updateFilter.d.ts.map +1 -1
  198. package/lib/resolvers/mutations/filters/updateFilter.js +4 -1
  199. package/lib/resolvers/mutations/filters/updateFilter.js.map +1 -1
  200. package/lib/resolvers/mutations/filters/updateFilterTexts.d.ts +1 -1
  201. package/lib/resolvers/mutations/filters/updateFilterTexts.d.ts.map +1 -1
  202. package/lib/resolvers/mutations/index.d.ts +2 -0
  203. package/lib/resolvers/mutations/index.d.ts.map +1 -1
  204. package/lib/resolvers/mutations/index.js +3 -1
  205. package/lib/resolvers/mutations/index.js.map +1 -1
  206. package/lib/resolvers/mutations/languages/createLanguage.d.ts +1 -1
  207. package/lib/resolvers/mutations/languages/createLanguage.d.ts.map +1 -1
  208. package/lib/resolvers/mutations/languages/removeLanguage.d.ts +1 -1
  209. package/lib/resolvers/mutations/languages/removeLanguage.d.ts.map +1 -1
  210. package/lib/resolvers/mutations/languages/updateLanguage.d.ts +1 -1
  211. package/lib/resolvers/mutations/languages/updateLanguage.d.ts.map +1 -1
  212. package/lib/resolvers/mutations/orders/addCartDiscount.d.ts +1 -1
  213. package/lib/resolvers/mutations/orders/addCartDiscount.d.ts.map +1 -1
  214. package/lib/resolvers/mutations/orders/addCartDiscount.js +9 -4
  215. package/lib/resolvers/mutations/orders/addCartDiscount.js.map +1 -1
  216. package/lib/resolvers/mutations/orders/addCartProduct.d.ts +2 -2
  217. package/lib/resolvers/mutations/orders/addCartProduct.d.ts.map +1 -1
  218. package/lib/resolvers/mutations/orders/addCartProduct.js +22 -10
  219. package/lib/resolvers/mutations/orders/addCartProduct.js.map +1 -1
  220. package/lib/resolvers/mutations/orders/addCartQuotation.d.ts +1 -1
  221. package/lib/resolvers/mutations/orders/addCartQuotation.d.ts.map +1 -1
  222. package/lib/resolvers/mutations/orders/addCartQuotation.js +14 -8
  223. package/lib/resolvers/mutations/orders/addCartQuotation.js.map +1 -1
  224. package/lib/resolvers/mutations/orders/addMultipleCartProducts.d.ts +2 -2
  225. package/lib/resolvers/mutations/orders/addMultipleCartProducts.d.ts.map +1 -1
  226. package/lib/resolvers/mutations/orders/addMultipleCartProducts.js +21 -8
  227. package/lib/resolvers/mutations/orders/addMultipleCartProducts.js.map +1 -1
  228. package/lib/resolvers/mutations/orders/checkoutCart.d.ts +2 -2
  229. package/lib/resolvers/mutations/orders/checkoutCart.d.ts.map +1 -1
  230. package/lib/resolvers/mutations/orders/checkoutCart.js +5 -4
  231. package/lib/resolvers/mutations/orders/checkoutCart.js.map +1 -1
  232. package/lib/resolvers/mutations/orders/confirmOrder.d.ts +2 -2
  233. package/lib/resolvers/mutations/orders/confirmOrder.d.ts.map +1 -1
  234. package/lib/resolvers/mutations/orders/confirmOrder.js +2 -2
  235. package/lib/resolvers/mutations/orders/confirmOrder.js.map +1 -1
  236. package/lib/resolvers/mutations/orders/createCart.d.ts +2 -2
  237. package/lib/resolvers/mutations/orders/createCart.d.ts.map +1 -1
  238. package/lib/resolvers/mutations/orders/createCart.js +6 -1
  239. package/lib/resolvers/mutations/orders/createCart.js.map +1 -1
  240. package/lib/resolvers/mutations/orders/deliverOrder.d.ts +1 -1
  241. package/lib/resolvers/mutations/orders/deliverOrder.d.ts.map +1 -1
  242. package/lib/resolvers/mutations/orders/deliverOrder.js +2 -2
  243. package/lib/resolvers/mutations/orders/deliverOrder.js.map +1 -1
  244. package/lib/resolvers/mutations/orders/emptyCart.d.ts +2 -2
  245. package/lib/resolvers/mutations/orders/emptyCart.d.ts.map +1 -1
  246. package/lib/resolvers/mutations/orders/emptyCart.js +2 -2
  247. package/lib/resolvers/mutations/orders/emptyCart.js.map +1 -1
  248. package/lib/resolvers/mutations/orders/payOrder.d.ts +1 -1
  249. package/lib/resolvers/mutations/orders/payOrder.d.ts.map +1 -1
  250. package/lib/resolvers/mutations/orders/payOrder.js +2 -2
  251. package/lib/resolvers/mutations/orders/payOrder.js.map +1 -1
  252. package/lib/resolvers/mutations/orders/rejectOrder.d.ts +2 -2
  253. package/lib/resolvers/mutations/orders/rejectOrder.d.ts.map +1 -1
  254. package/lib/resolvers/mutations/orders/rejectOrder.js +2 -2
  255. package/lib/resolvers/mutations/orders/rejectOrder.js.map +1 -1
  256. package/lib/resolvers/mutations/orders/removeCartDiscount.d.ts +2 -2
  257. package/lib/resolvers/mutations/orders/removeCartDiscount.d.ts.map +1 -1
  258. package/lib/resolvers/mutations/orders/removeCartDiscount.js +16 -4
  259. package/lib/resolvers/mutations/orders/removeCartDiscount.js.map +1 -1
  260. package/lib/resolvers/mutations/orders/removeCartItem.d.ts +1 -1
  261. package/lib/resolvers/mutations/orders/removeCartItem.d.ts.map +1 -1
  262. package/lib/resolvers/mutations/orders/removeCartItem.js +2 -2
  263. package/lib/resolvers/mutations/orders/removeCartItem.js.map +1 -1
  264. package/lib/resolvers/mutations/orders/removeOrder.d.ts +1 -1
  265. package/lib/resolvers/mutations/orders/removeOrder.d.ts.map +1 -1
  266. package/lib/resolvers/mutations/orders/setOrderDeliveryProvider.d.ts +2 -2
  267. package/lib/resolvers/mutations/orders/setOrderDeliveryProvider.d.ts.map +1 -1
  268. package/lib/resolvers/mutations/orders/setOrderDeliveryProvider.js +3 -3
  269. package/lib/resolvers/mutations/orders/setOrderDeliveryProvider.js.map +1 -1
  270. package/lib/resolvers/mutations/orders/setOrderPaymentProvider.d.ts +2 -2
  271. package/lib/resolvers/mutations/orders/setOrderPaymentProvider.d.ts.map +1 -1
  272. package/lib/resolvers/mutations/orders/setOrderPaymentProvider.js +3 -3
  273. package/lib/resolvers/mutations/orders/setOrderPaymentProvider.js.map +1 -1
  274. package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.d.ts +1 -1
  275. package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.d.ts.map +1 -1
  276. package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.js +3 -1
  277. package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.js.map +1 -1
  278. package/lib/resolvers/mutations/orders/updateCart.d.ts +3 -3
  279. package/lib/resolvers/mutations/orders/updateCart.d.ts.map +1 -1
  280. package/lib/resolvers/mutations/orders/updateCart.js +4 -4
  281. package/lib/resolvers/mutations/orders/updateCart.js.map +1 -1
  282. package/lib/resolvers/mutations/orders/updateCartItem.d.ts +1 -1
  283. package/lib/resolvers/mutations/orders/updateCartItem.d.ts.map +1 -1
  284. package/lib/resolvers/mutations/orders/updateCartItem.js +13 -7
  285. package/lib/resolvers/mutations/orders/updateCartItem.js.map +1 -1
  286. package/lib/resolvers/mutations/orders/updateOrderDeliveryPickUp.d.ts +1 -1
  287. package/lib/resolvers/mutations/orders/updateOrderDeliveryPickUp.d.ts.map +1 -1
  288. package/lib/resolvers/mutations/orders/updateOrderDeliveryPickUp.js +2 -2
  289. package/lib/resolvers/mutations/orders/updateOrderDeliveryPickUp.js.map +1 -1
  290. package/lib/resolvers/mutations/orders/updateOrderDeliveryShipping.d.ts +1 -1
  291. package/lib/resolvers/mutations/orders/updateOrderDeliveryShipping.d.ts.map +1 -1
  292. package/lib/resolvers/mutations/orders/updateOrderDeliveryShipping.js +2 -2
  293. package/lib/resolvers/mutations/orders/updateOrderDeliveryShipping.js.map +1 -1
  294. package/lib/resolvers/mutations/orders/updateOrderPaymentCard.d.ts +1 -1
  295. package/lib/resolvers/mutations/orders/updateOrderPaymentCard.d.ts.map +1 -1
  296. package/lib/resolvers/mutations/orders/updateOrderPaymentCard.js +2 -2
  297. package/lib/resolvers/mutations/orders/updateOrderPaymentCard.js.map +1 -1
  298. package/lib/resolvers/mutations/orders/updateOrderPaymentGeneric.d.ts +1 -1
  299. package/lib/resolvers/mutations/orders/updateOrderPaymentGeneric.d.ts.map +1 -1
  300. package/lib/resolvers/mutations/orders/updateOrderPaymentGeneric.js +2 -2
  301. package/lib/resolvers/mutations/orders/updateOrderPaymentGeneric.js.map +1 -1
  302. package/lib/resolvers/mutations/orders/updateOrderPaymentInvoice.d.ts +1 -1
  303. package/lib/resolvers/mutations/orders/updateOrderPaymentInvoice.d.ts.map +1 -1
  304. package/lib/resolvers/mutations/orders/updateOrderPaymentInvoice.js +2 -2
  305. package/lib/resolvers/mutations/orders/updateOrderPaymentInvoice.js.map +1 -1
  306. package/lib/resolvers/mutations/payment/createPaymentProvider.d.ts +1 -1
  307. package/lib/resolvers/mutations/payment/createPaymentProvider.d.ts.map +1 -1
  308. package/lib/resolvers/mutations/payment/createPaymentProvider.js +6 -4
  309. package/lib/resolvers/mutations/payment/createPaymentProvider.js.map +1 -1
  310. package/lib/resolvers/mutations/payment/markPaymentCredentialsPreferred.d.ts +1 -1
  311. package/lib/resolvers/mutations/payment/markPaymentCredentialsPreferred.d.ts.map +1 -1
  312. package/lib/resolvers/mutations/payment/registerPaymentCredentials.d.ts +1 -1
  313. package/lib/resolvers/mutations/payment/registerPaymentCredentials.d.ts.map +1 -1
  314. package/lib/resolvers/mutations/payment/registerPaymentCredentials.js +5 -2
  315. package/lib/resolvers/mutations/payment/registerPaymentCredentials.js.map +1 -1
  316. package/lib/resolvers/mutations/payment/removePaymentCredentials.d.ts +1 -1
  317. package/lib/resolvers/mutations/payment/removePaymentCredentials.d.ts.map +1 -1
  318. package/lib/resolvers/mutations/payment/removePaymentProvider.d.ts +1 -1
  319. package/lib/resolvers/mutations/payment/removePaymentProvider.d.ts.map +1 -1
  320. package/lib/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.d.ts +1 -1
  321. package/lib/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.d.ts.map +1 -1
  322. package/lib/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.js +6 -3
  323. package/lib/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.js.map +1 -1
  324. package/lib/resolvers/mutations/payment/updatePaymentProvider.d.ts +1 -1
  325. package/lib/resolvers/mutations/payment/updatePaymentProvider.d.ts.map +1 -1
  326. package/lib/resolvers/mutations/products/addProductAssignment.d.ts +1 -1
  327. package/lib/resolvers/mutations/products/addProductAssignment.d.ts.map +1 -1
  328. package/lib/resolvers/mutations/products/addProductReviewVote.d.ts +1 -1
  329. package/lib/resolvers/mutations/products/addProductReviewVote.d.ts.map +1 -1
  330. package/lib/resolvers/mutations/products/createProduct.d.ts +1 -1
  331. package/lib/resolvers/mutations/products/createProduct.d.ts.map +1 -1
  332. package/lib/resolvers/mutations/products/createProductBundleItem.d.ts +1 -1
  333. package/lib/resolvers/mutations/products/createProductBundleItem.d.ts.map +1 -1
  334. package/lib/resolvers/mutations/products/createProductReview.d.ts +1 -1
  335. package/lib/resolvers/mutations/products/createProductReview.d.ts.map +1 -1
  336. package/lib/resolvers/mutations/products/createProductVariation.d.ts +6 -1
  337. package/lib/resolvers/mutations/products/createProductVariation.d.ts.map +1 -1
  338. package/lib/resolvers/mutations/products/createProductVariation.js.map +1 -1
  339. package/lib/resolvers/mutations/products/createProductVariationOption.d.ts +2 -1
  340. package/lib/resolvers/mutations/products/createProductVariationOption.d.ts.map +1 -1
  341. package/lib/resolvers/mutations/products/createProductVariationOption.js.map +1 -1
  342. package/lib/resolvers/mutations/products/deleteUserProductReviews.d.ts +5 -0
  343. package/lib/resolvers/mutations/products/deleteUserProductReviews.d.ts.map +1 -0
  344. package/lib/resolvers/mutations/products/deleteUserProductReviews.js +15 -0
  345. package/lib/resolvers/mutations/products/deleteUserProductReviews.js.map +1 -0
  346. package/lib/resolvers/mutations/products/prepareProductMediaUpload.d.ts +1 -1
  347. package/lib/resolvers/mutations/products/prepareProductMediaUpload.d.ts.map +1 -1
  348. package/lib/resolvers/mutations/products/prepareProductMediaUpload.js +1 -1
  349. package/lib/resolvers/mutations/products/prepareProductMediaUpload.js.map +1 -1
  350. package/lib/resolvers/mutations/products/publishProduct.d.ts +1 -1
  351. package/lib/resolvers/mutations/products/publishProduct.d.ts.map +1 -1
  352. package/lib/resolvers/mutations/products/removeBundleItem.d.ts +1 -1
  353. package/lib/resolvers/mutations/products/removeBundleItem.d.ts.map +1 -1
  354. package/lib/resolvers/mutations/products/removeProduct.d.ts +1 -1
  355. package/lib/resolvers/mutations/products/removeProduct.d.ts.map +1 -1
  356. package/lib/resolvers/mutations/products/removeProduct.js +1 -1
  357. package/lib/resolvers/mutations/products/removeProduct.js.map +1 -1
  358. package/lib/resolvers/mutations/products/removeProductAssignment.d.ts +1 -1
  359. package/lib/resolvers/mutations/products/removeProductAssignment.d.ts.map +1 -1
  360. package/lib/resolvers/mutations/products/removeProductMedia.d.ts +1 -1
  361. package/lib/resolvers/mutations/products/removeProductMedia.d.ts.map +1 -1
  362. package/lib/resolvers/mutations/products/removeProductReview.d.ts +1 -1
  363. package/lib/resolvers/mutations/products/removeProductReview.d.ts.map +1 -1
  364. package/lib/resolvers/mutations/products/removeProductReviewVote.d.ts +1 -1
  365. package/lib/resolvers/mutations/products/removeProductReviewVote.d.ts.map +1 -1
  366. package/lib/resolvers/mutations/products/removeProductVariation.d.ts +1 -1
  367. package/lib/resolvers/mutations/products/removeProductVariation.d.ts.map +1 -1
  368. package/lib/resolvers/mutations/products/removeProductVariationOption.d.ts +1 -1
  369. package/lib/resolvers/mutations/products/removeProductVariationOption.d.ts.map +1 -1
  370. package/lib/resolvers/mutations/products/reorderProductMedia.d.ts +1 -1
  371. package/lib/resolvers/mutations/products/reorderProductMedia.d.ts.map +1 -1
  372. package/lib/resolvers/mutations/products/unpublishProduct.d.ts +1 -1
  373. package/lib/resolvers/mutations/products/unpublishProduct.d.ts.map +1 -1
  374. package/lib/resolvers/mutations/products/updateProduct.d.ts +1 -1
  375. package/lib/resolvers/mutations/products/updateProduct.d.ts.map +1 -1
  376. package/lib/resolvers/mutations/products/updateProductCommerce.d.ts +1 -1
  377. package/lib/resolvers/mutations/products/updateProductCommerce.d.ts.map +1 -1
  378. package/lib/resolvers/mutations/products/updateProductMediaTexts.d.ts +1 -1
  379. package/lib/resolvers/mutations/products/updateProductMediaTexts.d.ts.map +1 -1
  380. package/lib/resolvers/mutations/products/updateProductPlan.d.ts +1 -1
  381. package/lib/resolvers/mutations/products/updateProductPlan.d.ts.map +1 -1
  382. package/lib/resolvers/mutations/products/updateProductReview.d.ts +1 -1
  383. package/lib/resolvers/mutations/products/updateProductReview.d.ts.map +1 -1
  384. package/lib/resolvers/mutations/products/updateProductSupply.d.ts +1 -1
  385. package/lib/resolvers/mutations/products/updateProductSupply.d.ts.map +1 -1
  386. package/lib/resolvers/mutations/products/updateProductTexts.d.ts +1 -1
  387. package/lib/resolvers/mutations/products/updateProductTexts.d.ts.map +1 -1
  388. package/lib/resolvers/mutations/products/updateProductTokenization.d.ts +1 -1
  389. package/lib/resolvers/mutations/products/updateProductTokenization.d.ts.map +1 -1
  390. package/lib/resolvers/mutations/products/updateProductVariationTexts.d.ts +1 -1
  391. package/lib/resolvers/mutations/products/updateProductVariationTexts.d.ts.map +1 -1
  392. package/lib/resolvers/mutations/products/updateProductWarehousing.d.ts +1 -1
  393. package/lib/resolvers/mutations/products/updateProductWarehousing.d.ts.map +1 -1
  394. package/lib/resolvers/mutations/quotations/makeQuotationProposal.d.ts +2 -2
  395. package/lib/resolvers/mutations/quotations/makeQuotationProposal.d.ts.map +1 -1
  396. package/lib/resolvers/mutations/quotations/makeQuotationProposal.js +2 -2
  397. package/lib/resolvers/mutations/quotations/makeQuotationProposal.js.map +1 -1
  398. package/lib/resolvers/mutations/quotations/rejectQuotation.d.ts +2 -2
  399. package/lib/resolvers/mutations/quotations/rejectQuotation.d.ts.map +1 -1
  400. package/lib/resolvers/mutations/quotations/rejectQuotation.js +2 -2
  401. package/lib/resolvers/mutations/quotations/rejectQuotation.js.map +1 -1
  402. package/lib/resolvers/mutations/quotations/requestQuotation.d.ts +1 -1
  403. package/lib/resolvers/mutations/quotations/requestQuotation.d.ts.map +1 -1
  404. package/lib/resolvers/mutations/quotations/requestQuotation.js +5 -3
  405. package/lib/resolvers/mutations/quotations/requestQuotation.js.map +1 -1
  406. package/lib/resolvers/mutations/quotations/verifyQuotation.d.ts +2 -2
  407. package/lib/resolvers/mutations/quotations/verifyQuotation.d.ts.map +1 -1
  408. package/lib/resolvers/mutations/quotations/verifyQuotation.js +2 -2
  409. package/lib/resolvers/mutations/quotations/verifyQuotation.js.map +1 -1
  410. package/lib/resolvers/mutations/users/addPushSubscription.d.ts +1 -1
  411. package/lib/resolvers/mutations/users/addPushSubscription.d.ts.map +1 -1
  412. package/lib/resolvers/mutations/users/deleteUser.d.ts +6 -0
  413. package/lib/resolvers/mutations/users/deleteUser.d.ts.map +1 -0
  414. package/lib/resolvers/mutations/users/deleteUser.js +15 -0
  415. package/lib/resolvers/mutations/users/deleteUser.js.map +1 -0
  416. package/lib/resolvers/mutations/users/deleteUserProductReviews.d.ts +5 -0
  417. package/lib/resolvers/mutations/users/deleteUserProductReviews.d.ts.map +1 -0
  418. package/lib/resolvers/mutations/users/deleteUserProductReviews.js +15 -0
  419. package/lib/resolvers/mutations/users/deleteUserProductReviews.js.map +1 -0
  420. package/lib/resolvers/mutations/users/heartbeat.d.ts +1 -1
  421. package/lib/resolvers/mutations/users/heartbeat.d.ts.map +1 -1
  422. package/lib/resolvers/mutations/users/prepareUserAvatarUpload.d.ts +1 -1
  423. package/lib/resolvers/mutations/users/prepareUserAvatarUpload.d.ts.map +1 -1
  424. package/lib/resolvers/mutations/users/prepareUserAvatarUpload.js +1 -1
  425. package/lib/resolvers/mutations/users/prepareUserAvatarUpload.js.map +1 -1
  426. package/lib/resolvers/mutations/users/removePushSubscription.d.ts +1 -1
  427. package/lib/resolvers/mutations/users/removePushSubscription.d.ts.map +1 -1
  428. package/lib/resolvers/mutations/users/removeUser.d.ts +3 -2
  429. package/lib/resolvers/mutations/users/removeUser.d.ts.map +1 -1
  430. package/lib/resolvers/mutations/users/removeUser.js +8 -4
  431. package/lib/resolvers/mutations/users/removeUser.js.map +1 -1
  432. package/lib/resolvers/mutations/users/removeUserProductReviews.d.ts +5 -0
  433. package/lib/resolvers/mutations/users/removeUserProductReviews.d.ts.map +1 -0
  434. package/lib/resolvers/mutations/users/removeUserProductReviews.js +15 -0
  435. package/lib/resolvers/mutations/users/removeUserProductReviews.js.map +1 -0
  436. package/lib/resolvers/mutations/users/setRoles.d.ts +1 -1
  437. package/lib/resolvers/mutations/users/setRoles.d.ts.map +1 -1
  438. package/lib/resolvers/mutations/users/setUserTags.d.ts +1 -1
  439. package/lib/resolvers/mutations/users/setUserTags.d.ts.map +1 -1
  440. package/lib/resolvers/mutations/users/updateUserProfile.d.ts +1 -1
  441. package/lib/resolvers/mutations/users/updateUserProfile.d.ts.map +1 -1
  442. package/lib/resolvers/mutations/users/updateUserProfile.js +1 -1
  443. package/lib/resolvers/mutations/users/updateUserProfile.js.map +1 -1
  444. package/lib/resolvers/mutations/utils/getOrderCart.d.ts +2 -2
  445. package/lib/resolvers/mutations/utils/getOrderCart.d.ts.map +1 -1
  446. package/lib/resolvers/mutations/utils/getOrderCart.js +5 -1
  447. package/lib/resolvers/mutations/utils/getOrderCart.js.map +1 -1
  448. package/lib/resolvers/mutations/warehousing/createWarehousingProvider.d.ts +2 -2
  449. package/lib/resolvers/mutations/warehousing/createWarehousingProvider.d.ts.map +1 -1
  450. package/lib/resolvers/mutations/warehousing/createWarehousingProvider.js +11 -6
  451. package/lib/resolvers/mutations/warehousing/createWarehousingProvider.js.map +1 -1
  452. package/lib/resolvers/mutations/warehousing/exportToken.d.ts +1 -1
  453. package/lib/resolvers/mutations/warehousing/exportToken.d.ts.map +1 -1
  454. package/lib/resolvers/mutations/warehousing/invalidateToken.d.ts +1 -1
  455. package/lib/resolvers/mutations/warehousing/invalidateToken.d.ts.map +1 -1
  456. package/lib/resolvers/mutations/warehousing/invalidateToken.js +8 -3
  457. package/lib/resolvers/mutations/warehousing/invalidateToken.js.map +1 -1
  458. package/lib/resolvers/mutations/warehousing/removeWarehousingProvider.d.ts +1 -1
  459. package/lib/resolvers/mutations/warehousing/removeWarehousingProvider.d.ts.map +1 -1
  460. package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.d.ts +2 -2
  461. package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.d.ts.map +1 -1
  462. package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.js +1 -2
  463. package/lib/resolvers/mutations/warehousing/updateWarehousingProvider.js.map +1 -1
  464. package/lib/resolvers/mutations/worker/addWork.d.ts +3 -3
  465. package/lib/resolvers/mutations/worker/addWork.d.ts.map +1 -1
  466. package/lib/resolvers/mutations/worker/addWork.js.map +1 -1
  467. package/lib/resolvers/mutations/worker/allocateWork.d.ts +1 -1
  468. package/lib/resolvers/mutations/worker/allocateWork.d.ts.map +1 -1
  469. package/lib/resolvers/mutations/worker/finishWork.d.ts +1 -1
  470. package/lib/resolvers/mutations/worker/finishWork.d.ts.map +1 -1
  471. package/lib/resolvers/mutations/worker/processNextWork.d.ts +1 -1
  472. package/lib/resolvers/mutations/worker/processNextWork.d.ts.map +1 -1
  473. package/lib/resolvers/mutations/worker/processNextWork.js +2 -1
  474. package/lib/resolvers/mutations/worker/processNextWork.js.map +1 -1
  475. package/lib/resolvers/mutations/worker/removeWork.d.ts +1 -1
  476. package/lib/resolvers/mutations/worker/removeWork.d.ts.map +1 -1
  477. package/lib/resolvers/queries/assortments/assortment.d.ts +1 -1
  478. package/lib/resolvers/queries/assortments/assortment.d.ts.map +1 -1
  479. package/lib/resolvers/queries/assortments/assortments.d.ts +1 -1
  480. package/lib/resolvers/queries/assortments/assortments.d.ts.map +1 -1
  481. package/lib/resolvers/queries/assortments/assortmentsCount.d.ts +1 -1
  482. package/lib/resolvers/queries/assortments/assortmentsCount.d.ts.map +1 -1
  483. package/lib/resolvers/queries/assortments/translatedAssortmentMediaTexts.d.ts +1 -1
  484. package/lib/resolvers/queries/assortments/translatedAssortmentMediaTexts.d.ts.map +1 -1
  485. package/lib/resolvers/queries/assortments/translatedAssortmentTexts.d.ts +1 -1
  486. package/lib/resolvers/queries/assortments/translatedAssortmentTexts.d.ts.map +1 -1
  487. package/lib/resolvers/queries/countries/countries.d.ts +1 -1
  488. package/lib/resolvers/queries/countries/countries.d.ts.map +1 -1
  489. package/lib/resolvers/queries/countries/countriesCount.d.ts +1 -1
  490. package/lib/resolvers/queries/countries/countriesCount.d.ts.map +1 -1
  491. package/lib/resolvers/queries/countries/country.d.ts +1 -1
  492. package/lib/resolvers/queries/countries/country.d.ts.map +1 -1
  493. package/lib/resolvers/queries/currencies/currencies.d.ts +1 -1
  494. package/lib/resolvers/queries/currencies/currencies.d.ts.map +1 -1
  495. package/lib/resolvers/queries/currencies/currenciesCount.d.ts +1 -1
  496. package/lib/resolvers/queries/currencies/currenciesCount.d.ts.map +1 -1
  497. package/lib/resolvers/queries/currencies/currency.d.ts +1 -1
  498. package/lib/resolvers/queries/currencies/currency.d.ts.map +1 -1
  499. package/lib/resolvers/queries/delivery/deliveryInterfaces.d.ts +6 -2
  500. package/lib/resolvers/queries/delivery/deliveryInterfaces.d.ts.map +1 -1
  501. package/lib/resolvers/queries/delivery/deliveryInterfaces.js +9 -2
  502. package/lib/resolvers/queries/delivery/deliveryInterfaces.js.map +1 -1
  503. package/lib/resolvers/queries/delivery/deliveryProvider.d.ts +1 -1
  504. package/lib/resolvers/queries/delivery/deliveryProvider.d.ts.map +1 -1
  505. package/lib/resolvers/queries/delivery/deliveryProviders.d.ts +5 -3
  506. package/lib/resolvers/queries/delivery/deliveryProviders.d.ts.map +1 -1
  507. package/lib/resolvers/queries/delivery/deliveryProviders.js.map +1 -1
  508. package/lib/resolvers/queries/delivery/deliveryProvidersCount.d.ts +5 -3
  509. package/lib/resolvers/queries/delivery/deliveryProvidersCount.d.ts.map +1 -1
  510. package/lib/resolvers/queries/delivery/deliveryProvidersCount.js.map +1 -1
  511. package/lib/resolvers/queries/enrollments/enrollment.d.ts +1 -1
  512. package/lib/resolvers/queries/enrollments/enrollment.d.ts.map +1 -1
  513. package/lib/resolvers/queries/enrollments/enrollments.d.ts +1 -1
  514. package/lib/resolvers/queries/enrollments/enrollments.d.ts.map +1 -1
  515. package/lib/resolvers/queries/enrollments/enrollmentsCount.d.ts +1 -1
  516. package/lib/resolvers/queries/enrollments/enrollmentsCount.d.ts.map +1 -1
  517. package/lib/resolvers/queries/events/event.d.ts +1 -1
  518. package/lib/resolvers/queries/events/event.d.ts.map +1 -1
  519. package/lib/resolvers/queries/events/eventStatistics.d.ts +3 -3
  520. package/lib/resolvers/queries/events/eventStatistics.d.ts.map +1 -1
  521. package/lib/resolvers/queries/events/eventStatistics.js +2 -1
  522. package/lib/resolvers/queries/events/eventStatistics.js.map +1 -1
  523. package/lib/resolvers/queries/events/events.d.ts +1 -1
  524. package/lib/resolvers/queries/events/events.d.ts.map +1 -1
  525. package/lib/resolvers/queries/events/eventsCounts.d.ts +1 -1
  526. package/lib/resolvers/queries/events/eventsCounts.d.ts.map +1 -1
  527. package/lib/resolvers/queries/filters/filter.d.ts +1 -1
  528. package/lib/resolvers/queries/filters/filter.d.ts.map +1 -1
  529. package/lib/resolvers/queries/filters/filters.d.ts +1 -1
  530. package/lib/resolvers/queries/filters/filters.d.ts.map +1 -1
  531. package/lib/resolvers/queries/filters/filtersCount.d.ts +1 -1
  532. package/lib/resolvers/queries/filters/filtersCount.d.ts.map +1 -1
  533. package/lib/resolvers/queries/filters/searchAssortments.d.ts +10 -2
  534. package/lib/resolvers/queries/filters/searchAssortments.d.ts.map +1 -1
  535. package/lib/resolvers/queries/filters/searchAssortments.js +3 -3
  536. package/lib/resolvers/queries/filters/searchAssortments.js.map +1 -1
  537. package/lib/resolvers/queries/filters/searchProducts.d.ts +7 -2
  538. package/lib/resolvers/queries/filters/searchProducts.d.ts.map +1 -1
  539. package/lib/resolvers/queries/filters/searchProducts.js +3 -3
  540. package/lib/resolvers/queries/filters/searchProducts.js.map +1 -1
  541. package/lib/resolvers/queries/filters/translatedFilterTexts.d.ts +1 -1
  542. package/lib/resolvers/queries/filters/translatedFilterTexts.d.ts.map +1 -1
  543. package/lib/resolvers/queries/languages/language.d.ts +1 -1
  544. package/lib/resolvers/queries/languages/language.d.ts.map +1 -1
  545. package/lib/resolvers/queries/languages/languages.d.ts +1 -1
  546. package/lib/resolvers/queries/languages/languages.d.ts.map +1 -1
  547. package/lib/resolvers/queries/languages/languagesCount.d.ts +1 -1
  548. package/lib/resolvers/queries/languages/languagesCount.d.ts.map +1 -1
  549. package/lib/resolvers/queries/orders/order.d.ts +1 -1
  550. package/lib/resolvers/queries/orders/order.d.ts.map +1 -1
  551. package/lib/resolvers/queries/orders/orderStatistics.d.ts +3 -3
  552. package/lib/resolvers/queries/orders/orderStatistics.d.ts.map +1 -1
  553. package/lib/resolvers/queries/orders/orderStatistics.js +2 -1
  554. package/lib/resolvers/queries/orders/orderStatistics.js.map +1 -1
  555. package/lib/resolvers/queries/orders/orders.d.ts +1 -1
  556. package/lib/resolvers/queries/orders/orders.d.ts.map +1 -1
  557. package/lib/resolvers/queries/orders/ordersCount.d.ts +1 -1
  558. package/lib/resolvers/queries/orders/ordersCount.d.ts.map +1 -1
  559. package/lib/resolvers/queries/payment/paymentInterfaces.d.ts +6 -2
  560. package/lib/resolvers/queries/payment/paymentInterfaces.d.ts.map +1 -1
  561. package/lib/resolvers/queries/payment/paymentInterfaces.js +9 -2
  562. package/lib/resolvers/queries/payment/paymentInterfaces.js.map +1 -1
  563. package/lib/resolvers/queries/payment/paymentProvider.d.ts +1 -1
  564. package/lib/resolvers/queries/payment/paymentProvider.d.ts.map +1 -1
  565. package/lib/resolvers/queries/payment/paymentProviders.d.ts +1 -1
  566. package/lib/resolvers/queries/payment/paymentProviders.d.ts.map +1 -1
  567. package/lib/resolvers/queries/payment/paymentProvidersCount.d.ts +1 -1
  568. package/lib/resolvers/queries/payment/paymentProvidersCount.d.ts.map +1 -1
  569. package/lib/resolvers/queries/products/product.d.ts +1 -1
  570. package/lib/resolvers/queries/products/product.d.ts.map +1 -1
  571. package/lib/resolvers/queries/products/productCatalogPrices.d.ts +1 -1
  572. package/lib/resolvers/queries/products/productCatalogPrices.d.ts.map +1 -1
  573. package/lib/resolvers/queries/products/productReview.d.ts +1 -1
  574. package/lib/resolvers/queries/products/productReview.d.ts.map +1 -1
  575. package/lib/resolvers/queries/products/productReviews.d.ts +1 -1
  576. package/lib/resolvers/queries/products/productReviews.d.ts.map +1 -1
  577. package/lib/resolvers/queries/products/productReviewsCount.d.ts +1 -1
  578. package/lib/resolvers/queries/products/productReviewsCount.d.ts.map +1 -1
  579. package/lib/resolvers/queries/products/products.d.ts +1 -1
  580. package/lib/resolvers/queries/products/products.d.ts.map +1 -1
  581. package/lib/resolvers/queries/products/productsCount.d.ts +1 -1
  582. package/lib/resolvers/queries/products/productsCount.d.ts.map +1 -1
  583. package/lib/resolvers/queries/products/translatedProductMediaTexts.d.ts +1 -1
  584. package/lib/resolvers/queries/products/translatedProductMediaTexts.d.ts.map +1 -1
  585. package/lib/resolvers/queries/products/translatedProductTexts.d.ts +1 -1
  586. package/lib/resolvers/queries/products/translatedProductTexts.d.ts.map +1 -1
  587. package/lib/resolvers/queries/products/translatedProductVariationTexts.d.ts +1 -1
  588. package/lib/resolvers/queries/products/translatedProductVariationTexts.d.ts.map +1 -1
  589. package/lib/resolvers/queries/quotations/quotation.d.ts +1 -1
  590. package/lib/resolvers/queries/quotations/quotation.d.ts.map +1 -1
  591. package/lib/resolvers/queries/quotations/quotations.d.ts +1 -1
  592. package/lib/resolvers/queries/quotations/quotations.d.ts.map +1 -1
  593. package/lib/resolvers/queries/quotations/quotationsCount.d.ts +1 -1
  594. package/lib/resolvers/queries/quotations/quotationsCount.d.ts.map +1 -1
  595. package/lib/resolvers/queries/shopInfo.d.ts +1 -1
  596. package/lib/resolvers/queries/shopInfo.d.ts.map +1 -1
  597. package/lib/resolvers/queries/users/me.d.ts +1 -1
  598. package/lib/resolvers/queries/users/me.d.ts.map +1 -1
  599. package/lib/resolvers/queries/users/user.d.ts +1 -1
  600. package/lib/resolvers/queries/users/user.d.ts.map +1 -1
  601. package/lib/resolvers/queries/users/users.d.ts +5 -2
  602. package/lib/resolvers/queries/users/users.d.ts.map +1 -1
  603. package/lib/resolvers/queries/users/users.js +1 -0
  604. package/lib/resolvers/queries/users/users.js.map +1 -1
  605. package/lib/resolvers/queries/users/usersCount.d.ts +1 -1
  606. package/lib/resolvers/queries/users/usersCount.d.ts.map +1 -1
  607. package/lib/resolvers/queries/users/validateResetPasswordToken.d.ts +1 -1
  608. package/lib/resolvers/queries/users/validateResetPasswordToken.d.ts.map +1 -1
  609. package/lib/resolvers/queries/users/validateVerifyEmailToken.d.ts +1 -1
  610. package/lib/resolvers/queries/users/validateVerifyEmailToken.d.ts.map +1 -1
  611. package/lib/resolvers/queries/warehousing/token.d.ts +1 -1
  612. package/lib/resolvers/queries/warehousing/token.d.ts.map +1 -1
  613. package/lib/resolvers/queries/warehousing/tokens.d.ts +1 -1
  614. package/lib/resolvers/queries/warehousing/tokens.d.ts.map +1 -1
  615. package/lib/resolvers/queries/warehousing/warehousingInterfaces.d.ts +7 -3
  616. package/lib/resolvers/queries/warehousing/warehousingInterfaces.d.ts.map +1 -1
  617. package/lib/resolvers/queries/warehousing/warehousingInterfaces.js +10 -3
  618. package/lib/resolvers/queries/warehousing/warehousingInterfaces.js.map +1 -1
  619. package/lib/resolvers/queries/warehousing/warehousingProvider.d.ts +1 -1
  620. package/lib/resolvers/queries/warehousing/warehousingProvider.d.ts.map +1 -1
  621. package/lib/resolvers/queries/warehousing/warehousingProviders.d.ts +5 -3
  622. package/lib/resolvers/queries/warehousing/warehousingProviders.d.ts.map +1 -1
  623. package/lib/resolvers/queries/warehousing/warehousingProviders.js.map +1 -1
  624. package/lib/resolvers/queries/warehousing/warehousingProvidersCount.d.ts +5 -3
  625. package/lib/resolvers/queries/warehousing/warehousingProvidersCount.d.ts.map +1 -1
  626. package/lib/resolvers/queries/warehousing/warehousingProvidersCount.js.map +1 -1
  627. package/lib/resolvers/queries/worker/activeWorkTypes.d.ts +1 -1
  628. package/lib/resolvers/queries/worker/activeWorkTypes.d.ts.map +1 -1
  629. package/lib/resolvers/queries/worker/activeWorkTypes.js +6 -1
  630. package/lib/resolvers/queries/worker/activeWorkTypes.js.map +1 -1
  631. package/lib/resolvers/queries/worker/work.d.ts +1 -1
  632. package/lib/resolvers/queries/worker/work.d.ts.map +1 -1
  633. package/lib/resolvers/queries/worker/workQueue.d.ts +1 -1
  634. package/lib/resolvers/queries/worker/workQueue.d.ts.map +1 -1
  635. package/lib/resolvers/queries/worker/workQueueCount.d.ts +2 -2
  636. package/lib/resolvers/queries/worker/workQueueCount.d.ts.map +1 -1
  637. package/lib/resolvers/queries/worker/workStatistics.d.ts +3 -3
  638. package/lib/resolvers/queries/worker/workStatistics.d.ts.map +1 -1
  639. package/lib/resolvers/queries/worker/workStatistics.js +2 -1
  640. package/lib/resolvers/queries/worker/workStatistics.js.map +1 -1
  641. package/lib/resolvers/type/assortment/assortment-filter-types.d.ts +1 -1
  642. package/lib/resolvers/type/assortment/assortment-filter-types.d.ts.map +1 -1
  643. package/lib/resolvers/type/assortment/assortment-link-types.d.ts +1 -1
  644. package/lib/resolvers/type/assortment/assortment-link-types.d.ts.map +1 -1
  645. package/lib/resolvers/type/assortment/assortment-media-types.d.ts +1 -1
  646. package/lib/resolvers/type/assortment/assortment-media-types.d.ts.map +1 -1
  647. package/lib/resolvers/type/assortment/assortment-path-link-types.d.ts +1 -1
  648. package/lib/resolvers/type/assortment/assortment-path-link-types.d.ts.map +1 -1
  649. package/lib/resolvers/type/assortment/assortment-product-types.d.ts +1 -1
  650. package/lib/resolvers/type/assortment/assortment-product-types.d.ts.map +1 -1
  651. package/lib/resolvers/type/assortment/assortment-types.d.ts +27 -26
  652. package/lib/resolvers/type/assortment/assortment-types.d.ts.map +1 -1
  653. package/lib/resolvers/type/assortment/assortment-types.js +14 -11
  654. package/lib/resolvers/type/assortment/assortment-types.js.map +1 -1
  655. package/lib/resolvers/type/bookmark-types.d.ts +4 -4
  656. package/lib/resolvers/type/bookmark-types.d.ts.map +1 -1
  657. package/lib/resolvers/type/country-types.d.ts +1 -1
  658. package/lib/resolvers/type/country-types.d.ts.map +1 -1
  659. package/lib/resolvers/type/delivery-provider-types.d.ts +3 -2
  660. package/lib/resolvers/type/delivery-provider-types.d.ts.map +1 -1
  661. package/lib/resolvers/type/delivery-provider-types.js +20 -19
  662. package/lib/resolvers/type/delivery-provider-types.js.map +1 -1
  663. package/lib/resolvers/type/dispatch-types.d.ts +1 -1
  664. package/lib/resolvers/type/dispatch-types.d.ts.map +1 -1
  665. package/lib/resolvers/type/dispatch-types.js +3 -6
  666. package/lib/resolvers/type/dispatch-types.js.map +1 -1
  667. package/lib/resolvers/type/enrollment/enrollment-delivery-types.d.ts +1 -1
  668. package/lib/resolvers/type/enrollment/enrollment-delivery-types.d.ts.map +1 -1
  669. package/lib/resolvers/type/enrollment/enrollment-payment-types.d.ts +1 -1
  670. package/lib/resolvers/type/enrollment/enrollment-payment-types.d.ts.map +1 -1
  671. package/lib/resolvers/type/enrollment/enrollment-period-types.d.ts +1 -1
  672. package/lib/resolvers/type/enrollment/enrollment-period-types.d.ts.map +1 -1
  673. package/lib/resolvers/type/enrollment/enrollment-plan-tyes.d.ts +1 -1
  674. package/lib/resolvers/type/enrollment/enrollment-plan-tyes.d.ts.map +1 -1
  675. package/lib/resolvers/type/enrollment/enrollment-types.d.ts +1 -1
  676. package/lib/resolvers/type/enrollment/enrollment-types.d.ts.map +1 -1
  677. package/lib/resolvers/type/event-types.d.ts +2 -2
  678. package/lib/resolvers/type/event-types.d.ts.map +1 -1
  679. package/lib/resolvers/type/filter/filter-option-types.d.ts +1 -1
  680. package/lib/resolvers/type/filter/filter-option-types.d.ts.map +1 -1
  681. package/lib/resolvers/type/filter/filter-types.d.ts +1 -1
  682. package/lib/resolvers/type/filter/filter-types.d.ts.map +1 -1
  683. package/lib/resolvers/type/filter/loaded-filter-option-types.d.ts +11 -1
  684. package/lib/resolvers/type/filter/loaded-filter-option-types.d.ts.map +1 -1
  685. package/lib/resolvers/type/filter/loaded-filter-option-types.js +15 -1
  686. package/lib/resolvers/type/filter/loaded-filter-option-types.js.map +1 -1
  687. package/lib/resolvers/type/filter/loaded-filter-types.d.ts +24 -1
  688. package/lib/resolvers/type/filter/loaded-filter-types.d.ts.map +1 -1
  689. package/lib/resolvers/type/filter/loaded-filter-types.js +35 -1
  690. package/lib/resolvers/type/filter/loaded-filter-types.js.map +1 -1
  691. package/lib/resolvers/type/index.d.ts +337 -120
  692. package/lib/resolvers/type/index.d.ts.map +1 -1
  693. package/lib/resolvers/type/index.js +3 -1
  694. package/lib/resolvers/type/index.js.map +1 -1
  695. package/lib/resolvers/type/language-types.d.ts +1 -1
  696. package/lib/resolvers/type/language-types.d.ts.map +1 -1
  697. package/lib/resolvers/type/media-types.d.ts +2 -2
  698. package/lib/resolvers/type/media-types.d.ts.map +1 -1
  699. package/lib/resolvers/type/media-types.js +17 -2
  700. package/lib/resolvers/type/media-types.js.map +1 -1
  701. package/lib/resolvers/type/order/order-delivery-discount-types.d.ts +11 -10
  702. package/lib/resolvers/type/order/order-delivery-discount-types.d.ts.map +1 -1
  703. package/lib/resolvers/type/order/order-delivery-discount-types.js +3 -6
  704. package/lib/resolvers/type/order/order-delivery-discount-types.js.map +1 -1
  705. package/lib/resolvers/type/order/order-delivery-pickup-types.d.ts +1 -1
  706. package/lib/resolvers/type/order/order-delivery-pickup-types.d.ts.map +1 -1
  707. package/lib/resolvers/type/order/order-delivery-pickup-types.js +14 -7
  708. package/lib/resolvers/type/order/order-delivery-pickup-types.js.map +1 -1
  709. package/lib/resolvers/type/order/order-delivery-shipping-types.d.ts +2 -2
  710. package/lib/resolvers/type/order/order-delivery-shipping-types.d.ts.map +1 -1
  711. package/lib/resolvers/type/order/order-delivery-shipping-types.js +7 -3
  712. package/lib/resolvers/type/order/order-delivery-shipping-types.js.map +1 -1
  713. package/lib/resolvers/type/order/order-delivery-types.d.ts +1 -1
  714. package/lib/resolvers/type/order/order-delivery-types.d.ts.map +1 -1
  715. package/lib/resolvers/type/order/order-discount-types.d.ts +5 -3
  716. package/lib/resolvers/type/order/order-discount-types.d.ts.map +1 -1
  717. package/lib/resolvers/type/order/order-discount-types.js +3 -3
  718. package/lib/resolvers/type/order/order-discount-types.js.map +1 -1
  719. package/lib/resolvers/type/order/order-discountable-types.d.ts +3 -6
  720. package/lib/resolvers/type/order/order-discountable-types.d.ts.map +1 -1
  721. package/lib/resolvers/type/order/order-discountable-types.js.map +1 -1
  722. package/lib/resolvers/type/order/order-global-discount-types.d.ts +20 -14
  723. package/lib/resolvers/type/order/order-global-discount-types.d.ts.map +1 -1
  724. package/lib/resolvers/type/order/order-global-discount-types.js +3 -6
  725. package/lib/resolvers/type/order/order-global-discount-types.js.map +1 -1
  726. package/lib/resolvers/type/order/order-item-discount-types.d.ts +10 -11
  727. package/lib/resolvers/type/order/order-item-discount-types.d.ts.map +1 -1
  728. package/lib/resolvers/type/order/order-item-discount-types.js +3 -6
  729. package/lib/resolvers/type/order/order-item-discount-types.js.map +1 -1
  730. package/lib/resolvers/type/order/order-item-types.d.ts +4 -4
  731. package/lib/resolvers/type/order/order-item-types.d.ts.map +1 -1
  732. package/lib/resolvers/type/order/order-item-types.js +18 -20
  733. package/lib/resolvers/type/order/order-item-types.js.map +1 -1
  734. package/lib/resolvers/type/order/order-payment-card-types.d.ts +1 -1
  735. package/lib/resolvers/type/order/order-payment-card-types.d.ts.map +1 -1
  736. package/lib/resolvers/type/order/order-payment-card-types.js +7 -3
  737. package/lib/resolvers/type/order/order-payment-card-types.js.map +1 -1
  738. package/lib/resolvers/type/order/order-payment-discount-types.d.ts +20 -14
  739. package/lib/resolvers/type/order/order-payment-discount-types.d.ts.map +1 -1
  740. package/lib/resolvers/type/order/order-payment-discount-types.js +15 -12
  741. package/lib/resolvers/type/order/order-payment-discount-types.js.map +1 -1
  742. package/lib/resolvers/type/order/order-payment-generic-types.d.ts +1 -1
  743. package/lib/resolvers/type/order/order-payment-generic-types.d.ts.map +1 -1
  744. package/lib/resolvers/type/order/order-payment-generic-types.js +7 -3
  745. package/lib/resolvers/type/order/order-payment-generic-types.js.map +1 -1
  746. package/lib/resolvers/type/order/order-payment-invoice-types.d.ts +1 -1
  747. package/lib/resolvers/type/order/order-payment-invoice-types.d.ts.map +1 -1
  748. package/lib/resolvers/type/order/order-payment-invoice-types.js +7 -3
  749. package/lib/resolvers/type/order/order-payment-invoice-types.js.map +1 -1
  750. package/lib/resolvers/type/order/order-payment-types.d.ts +1 -1
  751. package/lib/resolvers/type/order/order-payment-types.d.ts.map +1 -1
  752. package/lib/resolvers/type/order/order-types.d.ts +4 -8
  753. package/lib/resolvers/type/order/order-types.d.ts.map +1 -1
  754. package/lib/resolvers/type/order/order-types.js +14 -13
  755. package/lib/resolvers/type/order/order-types.js.map +1 -1
  756. package/lib/resolvers/type/payment/payment-credentials-types.d.ts +1 -1
  757. package/lib/resolvers/type/payment/payment-credentials-types.d.ts.map +1 -1
  758. package/lib/resolvers/type/payment/payment-credentials-types.js +8 -3
  759. package/lib/resolvers/type/payment/payment-credentials-types.js.map +1 -1
  760. package/lib/resolvers/type/payment/payment-provider-types.d.ts +13 -14
  761. package/lib/resolvers/type/payment/payment-provider-types.d.ts.map +1 -1
  762. package/lib/resolvers/type/payment/payment-provider-types.js +22 -21
  763. package/lib/resolvers/type/payment/payment-provider-types.js.map +1 -1
  764. package/lib/resolvers/type/product/product-assortment-path-types.d.ts +1 -1
  765. package/lib/resolvers/type/product/product-assortment-path-types.d.ts.map +1 -1
  766. package/lib/resolvers/type/product/product-bundle-item-types.d.ts +1 -1
  767. package/lib/resolvers/type/product/product-bundle-item-types.d.ts.map +1 -1
  768. package/lib/resolvers/type/product/product-bundle-types.d.ts +7 -7
  769. package/lib/resolvers/type/product/product-bundle-types.d.ts.map +1 -1
  770. package/lib/resolvers/type/product/product-catalog-price-types.d.ts +1 -1
  771. package/lib/resolvers/type/product/product-catalog-price-types.d.ts.map +1 -1
  772. package/lib/resolvers/type/product/product-configurable-types.d.ts +3 -4
  773. package/lib/resolvers/type/product/product-configurable-types.d.ts.map +1 -1
  774. package/lib/resolvers/type/product/product-configurable-types.js +62 -8
  775. package/lib/resolvers/type/product/product-configurable-types.js.map +1 -1
  776. package/lib/resolvers/type/product/product-discount.d.ts +6 -10
  777. package/lib/resolvers/type/product/product-discount.d.ts.map +1 -1
  778. package/lib/resolvers/type/product/product-discount.js +9 -11
  779. package/lib/resolvers/type/product/product-discount.js.map +1 -1
  780. package/lib/resolvers/type/product/product-media-types.d.ts +1 -1
  781. package/lib/resolvers/type/product/product-media-types.d.ts.map +1 -1
  782. package/lib/resolvers/type/product/product-plan-types.d.ts +2 -2
  783. package/lib/resolvers/type/product/product-plan-types.d.ts.map +1 -1
  784. package/lib/resolvers/type/product/product-plan-types.js +21 -7
  785. package/lib/resolvers/type/product/product-plan-types.js.map +1 -1
  786. package/lib/resolvers/type/product/product-review-types.d.ts +1 -1
  787. package/lib/resolvers/type/product/product-review-types.d.ts.map +1 -1
  788. package/lib/resolvers/type/product/product-simple-types.d.ts +3 -3
  789. package/lib/resolvers/type/product/product-simple-types.d.ts.map +1 -1
  790. package/lib/resolvers/type/product/product-simple-types.js +11 -8
  791. package/lib/resolvers/type/product/product-simple-types.js.map +1 -1
  792. package/lib/resolvers/type/product/product-tokenized-types.d.ts +2 -2
  793. package/lib/resolvers/type/product/product-tokenized-types.d.ts.map +1 -1
  794. package/lib/resolvers/type/product/product-tokenized-types.js +6 -4
  795. package/lib/resolvers/type/product/product-tokenized-types.js.map +1 -1
  796. package/lib/resolvers/type/product/product-types.d.ts +2 -2
  797. package/lib/resolvers/type/product/product-types.d.ts.map +1 -1
  798. package/lib/resolvers/type/product/product-types.js +8 -5
  799. package/lib/resolvers/type/product/product-types.js.map +1 -1
  800. package/lib/resolvers/type/product/product-variation-assignment-types.d.ts +1 -1
  801. package/lib/resolvers/type/product/product-variation-assignment-types.d.ts.map +1 -1
  802. package/lib/resolvers/type/product/product-variation-assignment-vector.d.ts +1 -1
  803. package/lib/resolvers/type/product/product-variation-assignment-vector.d.ts.map +1 -1
  804. package/lib/resolvers/type/product/product-variation-option-types.d.ts +1 -1
  805. package/lib/resolvers/type/product/product-variation-option-types.d.ts.map +1 -1
  806. package/lib/resolvers/type/product/product-variation-types.d.ts +1 -1
  807. package/lib/resolvers/type/product/product-variation-types.d.ts.map +1 -1
  808. package/lib/resolvers/type/product-search-result-types.d.ts +28 -0
  809. package/lib/resolvers/type/product-search-result-types.d.ts.map +1 -0
  810. package/lib/resolvers/type/product-search-result-types.js +45 -0
  811. package/lib/resolvers/type/product-search-result-types.js.map +1 -0
  812. package/lib/resolvers/type/quotation-types.d.ts +1 -1
  813. package/lib/resolvers/type/quotation-types.d.ts.map +1 -1
  814. package/lib/resolvers/type/shop-types.d.ts +1 -1
  815. package/lib/resolvers/type/shop-types.d.ts.map +1 -1
  816. package/lib/resolvers/type/stock-types.d.ts +1 -1
  817. package/lib/resolvers/type/stock-types.d.ts.map +1 -1
  818. package/lib/resolvers/type/stock-types.js +3 -6
  819. package/lib/resolvers/type/stock-types.js.map +1 -1
  820. package/lib/resolvers/type/token-types.d.ts +3 -3
  821. package/lib/resolvers/type/token-types.d.ts.map +1 -1
  822. package/lib/resolvers/type/token-types.js +14 -6
  823. package/lib/resolvers/type/token-types.js.map +1 -1
  824. package/lib/resolvers/type/user-types.d.ts +4 -4
  825. package/lib/resolvers/type/user-types.d.ts.map +1 -1
  826. package/lib/resolvers/type/user-types.js +7 -1
  827. package/lib/resolvers/type/user-types.js.map +1 -1
  828. package/lib/resolvers/type/warehousing-provider-types.d.ts +3 -2
  829. package/lib/resolvers/type/warehousing-provider-types.d.ts.map +1 -1
  830. package/lib/resolvers/type/warehousing-provider-types.js +13 -6
  831. package/lib/resolvers/type/warehousing-provider-types.js.map +1 -1
  832. package/lib/resolvers/type/webauthn-credentials-types.d.ts +1 -1
  833. package/lib/resolvers/type/webauthn-credentials-types.d.ts.map +1 -1
  834. package/lib/resolvers/type/work-types.d.ts +1 -1
  835. package/lib/resolvers/type/work-types.d.ts.map +1 -1
  836. package/lib/resolvers/type/work-types.js +6 -2
  837. package/lib/resolvers/type/work-types.js.map +1 -1
  838. package/lib/roles/all.d.ts.map +1 -1
  839. package/lib/roles/all.js +9 -0
  840. package/lib/roles/all.js.map +1 -1
  841. package/lib/roles/index.d.ts.map +1 -1
  842. package/lib/roles/index.js +3 -0
  843. package/lib/roles/index.js.map +1 -1
  844. package/lib/roles/loggedIn.d.ts.map +1 -1
  845. package/lib/roles/loggedIn.js +22 -0
  846. package/lib/roles/loggedIn.js.map +1 -1
  847. package/lib/schema/mutation.d.ts.map +1 -1
  848. package/lib/schema/mutation.js +6 -1
  849. package/lib/schema/mutation.js.map +1 -1
  850. package/lib/schema/query.d.ts.map +1 -1
  851. package/lib/schema/query.js +11 -4
  852. package/lib/schema/query.js.map +1 -1
  853. package/lib/schema/types/assortment.js +1 -1
  854. package/lib/schema/types/media.js +1 -1
  855. package/lib/schema/types/product/product.js +1 -1
  856. package/package.json +25 -41
  857. package/src/api-index.ts +3 -2
  858. package/src/context.ts +51 -6
  859. package/src/errors.ts +12 -0
  860. package/src/express/createBulkImportMiddleware.ts +6 -9
  861. package/src/express/createERCMetadataMiddleware.ts +17 -27
  862. package/src/express/index.ts +35 -13
  863. package/src/fastify/bulkImportHandler.ts +62 -0
  864. package/src/fastify/ercMetadataHandler.ts +50 -0
  865. package/src/fastify/index.ts +45 -18
  866. package/src/loaders/index.ts +295 -240
  867. package/src/locale-context.ts +25 -15
  868. package/src/resolvers/mutations/accounts/addEmail.ts +1 -1
  869. package/src/resolvers/mutations/accounts/addWeb3Address.ts +1 -1
  870. package/src/resolvers/mutations/accounts/addWebAuthnCredentials.ts +1 -1
  871. package/src/resolvers/mutations/accounts/changePassword.ts +1 -1
  872. package/src/resolvers/mutations/accounts/createUser.ts +1 -1
  873. package/src/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.ts +2 -2
  874. package/src/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.ts +2 -2
  875. package/src/resolvers/mutations/accounts/enrollUser.ts +1 -1
  876. package/src/resolvers/mutations/accounts/forgotPassword.ts +1 -1
  877. package/src/resolvers/mutations/accounts/loginAsGuest.ts +3 -3
  878. package/src/resolvers/mutations/accounts/loginWithPassword.ts +3 -3
  879. package/src/resolvers/mutations/accounts/loginWithWebAuthn.ts +1 -1
  880. package/src/resolvers/mutations/accounts/logout.ts +1 -1
  881. package/src/resolvers/mutations/accounts/removeEmail.ts +1 -1
  882. package/src/resolvers/mutations/accounts/removeWeb3Address.ts +1 -1
  883. package/src/resolvers/mutations/accounts/removeWebAuthnCredentials.ts +1 -1
  884. package/src/resolvers/mutations/accounts/resetPassword.ts +1 -1
  885. package/src/resolvers/mutations/accounts/sendEnrollmentEmail.ts +1 -1
  886. package/src/resolvers/mutations/accounts/sendVerificationEmail.ts +1 -1
  887. package/src/resolvers/mutations/accounts/setPassword.ts +1 -1
  888. package/src/resolvers/mutations/accounts/setUsername.ts +1 -1
  889. package/src/resolvers/mutations/accounts/verifyEmail.ts +1 -1
  890. package/src/resolvers/mutations/accounts/verifyWeb3Address.ts +1 -1
  891. package/src/resolvers/mutations/assortments/addAssortmentFilter.ts +1 -1
  892. package/src/resolvers/mutations/assortments/addAssortmentLink.ts +1 -1
  893. package/src/resolvers/mutations/assortments/addAssortmentProduct.ts +1 -1
  894. package/src/resolvers/mutations/assortments/createAssortment.ts +1 -1
  895. package/src/resolvers/mutations/assortments/prepareAssortmentMediaUpload.ts +6 -9
  896. package/src/resolvers/mutations/assortments/removeAssortment.ts +1 -1
  897. package/src/resolvers/mutations/assortments/removeAssortmentFilter.ts +1 -1
  898. package/src/resolvers/mutations/assortments/removeAssortmentLink.ts +1 -1
  899. package/src/resolvers/mutations/assortments/removeAssortmentMedia.ts +1 -1
  900. package/src/resolvers/mutations/assortments/removeAssortmentProduct.ts +1 -1
  901. package/src/resolvers/mutations/assortments/reorderAssortmentFilters.ts +1 -1
  902. package/src/resolvers/mutations/assortments/reorderAssortmentLinks.ts +1 -1
  903. package/src/resolvers/mutations/assortments/reorderAssortmentMedia.ts +1 -1
  904. package/src/resolvers/mutations/assortments/reorderAssortmentProducts.ts +1 -1
  905. package/src/resolvers/mutations/assortments/setBaseAssortment.ts +1 -1
  906. package/src/resolvers/mutations/assortments/updateAssortment.ts +1 -1
  907. package/src/resolvers/mutations/assortments/updateAssortmentMediaTexts.ts +1 -1
  908. package/src/resolvers/mutations/assortments/updateAssortmentTexts.ts +1 -1
  909. package/src/resolvers/mutations/bookmarks/bookmark.ts +1 -1
  910. package/src/resolvers/mutations/bookmarks/createBookmark.ts +1 -1
  911. package/src/resolvers/mutations/bookmarks/removeBookmark.ts +1 -1
  912. package/src/resolvers/mutations/countries/createCountry.ts +1 -1
  913. package/src/resolvers/mutations/countries/removeCountry.ts +1 -1
  914. package/src/resolvers/mutations/countries/updateCountry.ts +1 -1
  915. package/src/resolvers/mutations/currencies/createCurrency.ts +1 -1
  916. package/src/resolvers/mutations/currencies/removeCurrency.ts +1 -1
  917. package/src/resolvers/mutations/currencies/updateCurrency.ts +1 -1
  918. package/src/resolvers/mutations/delivery/createDeliveryProvider.ts +6 -1
  919. package/src/resolvers/mutations/delivery/removeDeliveryProvider.ts +1 -1
  920. package/src/resolvers/mutations/delivery/updateDeliveryProvider.ts +1 -1
  921. package/src/resolvers/mutations/enrollments/activateEnrollment.ts +3 -3
  922. package/src/resolvers/mutations/enrollments/createEnrollment.ts +20 -18
  923. package/src/resolvers/mutations/enrollments/terminateEnrollment.ts +3 -3
  924. package/src/resolvers/mutations/enrollments/updateEnrollment.ts +5 -4
  925. package/src/resolvers/mutations/files/confirmMediaUpload.ts +2 -2
  926. package/src/resolvers/mutations/filters/createFilter.ts +11 -10
  927. package/src/resolvers/mutations/filters/createFilterOption.ts +4 -3
  928. package/src/resolvers/mutations/filters/removeFilter.ts +1 -1
  929. package/src/resolvers/mutations/filters/removeFilterOption.ts +7 -8
  930. package/src/resolvers/mutations/filters/updateFilter.ts +6 -2
  931. package/src/resolvers/mutations/filters/updateFilterTexts.ts +1 -1
  932. package/src/resolvers/mutations/index.ts +3 -1
  933. package/src/resolvers/mutations/languages/createLanguage.ts +1 -1
  934. package/src/resolvers/mutations/languages/removeLanguage.ts +1 -1
  935. package/src/resolvers/mutations/languages/updateLanguage.ts +1 -1
  936. package/src/resolvers/mutations/orders/addCartDiscount.ts +15 -5
  937. package/src/resolvers/mutations/orders/addCartProduct.ts +25 -11
  938. package/src/resolvers/mutations/orders/addCartQuotation.ts +24 -23
  939. package/src/resolvers/mutations/orders/addMultipleCartProducts.ts +38 -21
  940. package/src/resolvers/mutations/orders/checkoutCart.ts +7 -5
  941. package/src/resolvers/mutations/orders/confirmOrder.ts +3 -3
  942. package/src/resolvers/mutations/orders/createCart.ts +7 -5
  943. package/src/resolvers/mutations/orders/deliverOrder.ts +3 -3
  944. package/src/resolvers/mutations/orders/emptyCart.ts +4 -3
  945. package/src/resolvers/mutations/orders/payOrder.ts +3 -3
  946. package/src/resolvers/mutations/orders/rejectOrder.ts +3 -3
  947. package/src/resolvers/mutations/orders/removeCartDiscount.ts +18 -5
  948. package/src/resolvers/mutations/orders/removeCartItem.ts +3 -3
  949. package/src/resolvers/mutations/orders/removeOrder.ts +1 -1
  950. package/src/resolvers/mutations/orders/setOrderDeliveryProvider.ts +4 -4
  951. package/src/resolvers/mutations/orders/setOrderPaymentProvider.ts +4 -4
  952. package/src/resolvers/mutations/orders/signPaymentProviderForCheckout.ts +6 -3
  953. package/src/resolvers/mutations/orders/updateCart.ts +6 -6
  954. package/src/resolvers/mutations/orders/updateCartItem.ts +15 -9
  955. package/src/resolvers/mutations/orders/updateOrderDeliveryPickUp.ts +3 -3
  956. package/src/resolvers/mutations/orders/updateOrderDeliveryShipping.ts +3 -3
  957. package/src/resolvers/mutations/orders/updateOrderPaymentCard.ts +3 -3
  958. package/src/resolvers/mutations/orders/updateOrderPaymentGeneric.ts +3 -3
  959. package/src/resolvers/mutations/orders/updateOrderPaymentInvoice.ts +3 -3
  960. package/src/resolvers/mutations/payment/createPaymentProvider.ts +7 -6
  961. package/src/resolvers/mutations/payment/markPaymentCredentialsPreferred.ts +1 -1
  962. package/src/resolvers/mutations/payment/registerPaymentCredentials.ts +6 -7
  963. package/src/resolvers/mutations/payment/removePaymentCredentials.ts +1 -1
  964. package/src/resolvers/mutations/payment/removePaymentProvider.ts +1 -1
  965. package/src/resolvers/mutations/payment/signPaymentProviderForCredentialRegistration.ts +9 -9
  966. package/src/resolvers/mutations/payment/updatePaymentProvider.ts +1 -1
  967. package/src/resolvers/mutations/products/addProductAssignment.ts +1 -1
  968. package/src/resolvers/mutations/products/addProductReviewVote.ts +1 -1
  969. package/src/resolvers/mutations/products/createProduct.ts +1 -1
  970. package/src/resolvers/mutations/products/createProductBundleItem.ts +1 -1
  971. package/src/resolvers/mutations/products/createProductReview.ts +1 -1
  972. package/src/resolvers/mutations/products/createProductVariation.ts +3 -1
  973. package/src/resolvers/mutations/products/createProductVariationOption.ts +2 -1
  974. package/src/resolvers/mutations/products/prepareProductMediaUpload.ts +6 -9
  975. package/src/resolvers/mutations/products/publishProduct.ts +1 -1
  976. package/src/resolvers/mutations/products/removeBundleItem.ts +1 -1
  977. package/src/resolvers/mutations/products/removeProduct.ts +2 -2
  978. package/src/resolvers/mutations/products/removeProductAssignment.ts +1 -1
  979. package/src/resolvers/mutations/products/removeProductMedia.ts +1 -1
  980. package/src/resolvers/mutations/products/removeProductReview.ts +1 -1
  981. package/src/resolvers/mutations/products/removeProductReviewVote.ts +1 -1
  982. package/src/resolvers/mutations/products/removeProductVariation.ts +1 -1
  983. package/src/resolvers/mutations/products/removeProductVariationOption.ts +1 -1
  984. package/src/resolvers/mutations/products/reorderProductMedia.ts +1 -1
  985. package/src/resolvers/mutations/products/unpublishProduct.ts +1 -1
  986. package/src/resolvers/mutations/products/updateProduct.ts +1 -1
  987. package/src/resolvers/mutations/products/updateProductCommerce.ts +1 -1
  988. package/src/resolvers/mutations/products/updateProductMediaTexts.ts +1 -1
  989. package/src/resolvers/mutations/products/updateProductPlan.ts +1 -1
  990. package/src/resolvers/mutations/products/updateProductReview.ts +1 -1
  991. package/src/resolvers/mutations/products/updateProductSupply.ts +1 -1
  992. package/src/resolvers/mutations/products/updateProductTexts.ts +1 -1
  993. package/src/resolvers/mutations/products/updateProductTokenization.ts +1 -1
  994. package/src/resolvers/mutations/products/updateProductVariationTexts.ts +1 -1
  995. package/src/resolvers/mutations/products/updateProductWarehousing.ts +1 -1
  996. package/src/resolvers/mutations/quotations/makeQuotationProposal.ts +3 -3
  997. package/src/resolvers/mutations/quotations/rejectQuotation.ts +3 -3
  998. package/src/resolvers/mutations/quotations/requestQuotation.ts +11 -11
  999. package/src/resolvers/mutations/quotations/verifyQuotation.ts +3 -3
  1000. package/src/resolvers/mutations/users/addPushSubscription.ts +1 -1
  1001. package/src/resolvers/mutations/users/heartbeat.ts +1 -1
  1002. package/src/resolvers/mutations/users/prepareUserAvatarUpload.ts +6 -9
  1003. package/src/resolvers/mutations/users/removePushSubscription.ts +1 -1
  1004. package/src/resolvers/mutations/users/removeUser.ts +10 -6
  1005. package/src/resolvers/mutations/users/removeUserProductReviews.ts +23 -0
  1006. package/src/resolvers/mutations/users/setRoles.ts +1 -1
  1007. package/src/resolvers/mutations/users/setUserTags.ts +1 -1
  1008. package/src/resolvers/mutations/users/updateUserProfile.ts +2 -2
  1009. package/src/resolvers/mutations/utils/getOrderCart.ts +6 -5
  1010. package/src/resolvers/mutations/warehousing/createWarehousingProvider.ts +11 -6
  1011. package/src/resolvers/mutations/warehousing/exportToken.ts +1 -1
  1012. package/src/resolvers/mutations/warehousing/invalidateToken.ts +11 -5
  1013. package/src/resolvers/mutations/warehousing/removeWarehousingProvider.ts +1 -1
  1014. package/src/resolvers/mutations/warehousing/updateWarehousingProvider.ts +2 -4
  1015. package/src/resolvers/mutations/worker/addWork.ts +3 -3
  1016. package/src/resolvers/mutations/worker/allocateWork.ts +1 -1
  1017. package/src/resolvers/mutations/worker/finishWork.ts +1 -1
  1018. package/src/resolvers/mutations/worker/processNextWork.ts +3 -2
  1019. package/src/resolvers/mutations/worker/removeWork.ts +1 -1
  1020. package/src/resolvers/queries/assortments/assortment.ts +1 -1
  1021. package/src/resolvers/queries/assortments/assortments.ts +1 -1
  1022. package/src/resolvers/queries/assortments/assortmentsCount.ts +1 -1
  1023. package/src/resolvers/queries/assortments/translatedAssortmentMediaTexts.ts +1 -1
  1024. package/src/resolvers/queries/assortments/translatedAssortmentTexts.ts +1 -1
  1025. package/src/resolvers/queries/countries/countries.ts +1 -1
  1026. package/src/resolvers/queries/countries/countriesCount.ts +1 -1
  1027. package/src/resolvers/queries/countries/country.ts +1 -1
  1028. package/src/resolvers/queries/currencies/currencies.ts +1 -1
  1029. package/src/resolvers/queries/currencies/currenciesCount.ts +1 -1
  1030. package/src/resolvers/queries/currencies/currency.ts +1 -1
  1031. package/src/resolvers/queries/delivery/deliveryInterfaces.ts +10 -3
  1032. package/src/resolvers/queries/delivery/deliveryProvider.ts +1 -1
  1033. package/src/resolvers/queries/delivery/deliveryProviders.ts +5 -3
  1034. package/src/resolvers/queries/delivery/deliveryProvidersCount.ts +5 -3
  1035. package/src/resolvers/queries/enrollments/enrollment.ts +1 -1
  1036. package/src/resolvers/queries/enrollments/enrollments.ts +1 -1
  1037. package/src/resolvers/queries/enrollments/enrollmentsCount.ts +1 -1
  1038. package/src/resolvers/queries/events/event.ts +1 -1
  1039. package/src/resolvers/queries/events/eventStatistics.ts +5 -3
  1040. package/src/resolvers/queries/events/events.ts +1 -1
  1041. package/src/resolvers/queries/events/eventsCounts.ts +1 -1
  1042. package/src/resolvers/queries/filters/filter.ts +1 -1
  1043. package/src/resolvers/queries/filters/filters.ts +1 -1
  1044. package/src/resolvers/queries/filters/filtersCount.ts +1 -1
  1045. package/src/resolvers/queries/filters/searchAssortments.ts +5 -9
  1046. package/src/resolvers/queries/filters/searchProducts.ts +4 -6
  1047. package/src/resolvers/queries/filters/translatedFilterTexts.ts +1 -1
  1048. package/src/resolvers/queries/languages/language.ts +1 -1
  1049. package/src/resolvers/queries/languages/languages.ts +1 -1
  1050. package/src/resolvers/queries/languages/languagesCount.ts +1 -1
  1051. package/src/resolvers/queries/orders/order.ts +1 -1
  1052. package/src/resolvers/queries/orders/orderStatistics.ts +5 -3
  1053. package/src/resolvers/queries/orders/orders.ts +1 -1
  1054. package/src/resolvers/queries/orders/ordersCount.ts +1 -1
  1055. package/src/resolvers/queries/payment/paymentInterfaces.ts +10 -3
  1056. package/src/resolvers/queries/payment/paymentProvider.ts +1 -1
  1057. package/src/resolvers/queries/payment/paymentProviders.ts +1 -1
  1058. package/src/resolvers/queries/payment/paymentProvidersCount.ts +1 -1
  1059. package/src/resolvers/queries/products/product.ts +1 -1
  1060. package/src/resolvers/queries/products/productCatalogPrices.ts +1 -1
  1061. package/src/resolvers/queries/products/productReview.ts +1 -1
  1062. package/src/resolvers/queries/products/productReviews.ts +1 -1
  1063. package/src/resolvers/queries/products/productReviewsCount.ts +1 -1
  1064. package/src/resolvers/queries/products/products.ts +1 -1
  1065. package/src/resolvers/queries/products/productsCount.ts +1 -1
  1066. package/src/resolvers/queries/products/translatedProductMediaTexts.ts +1 -1
  1067. package/src/resolvers/queries/products/translatedProductTexts.ts +1 -1
  1068. package/src/resolvers/queries/products/translatedProductVariationTexts.ts +1 -1
  1069. package/src/resolvers/queries/quotations/quotation.ts +1 -1
  1070. package/src/resolvers/queries/quotations/quotations.ts +1 -1
  1071. package/src/resolvers/queries/quotations/quotationsCount.ts +1 -1
  1072. package/src/resolvers/queries/shopInfo.ts +1 -1
  1073. package/src/resolvers/queries/users/me.ts +1 -1
  1074. package/src/resolvers/queries/users/user.ts +1 -1
  1075. package/src/resolvers/queries/users/users.ts +6 -2
  1076. package/src/resolvers/queries/users/usersCount.ts +1 -1
  1077. package/src/resolvers/queries/users/validateResetPasswordToken.ts +1 -1
  1078. package/src/resolvers/queries/users/validateVerifyEmailToken.ts +1 -1
  1079. package/src/resolvers/queries/warehousing/token.ts +1 -1
  1080. package/src/resolvers/queries/warehousing/tokens.ts +1 -1
  1081. package/src/resolvers/queries/warehousing/warehousingInterfaces.ts +12 -5
  1082. package/src/resolvers/queries/warehousing/warehousingProvider.ts +1 -1
  1083. package/src/resolvers/queries/warehousing/warehousingProviders.ts +5 -3
  1084. package/src/resolvers/queries/warehousing/warehousingProvidersCount.ts +5 -3
  1085. package/src/resolvers/queries/worker/activeWorkTypes.ts +7 -2
  1086. package/src/resolvers/queries/worker/work.ts +1 -1
  1087. package/src/resolvers/queries/worker/workQueue.ts +1 -1
  1088. package/src/resolvers/queries/worker/workQueueCount.ts +2 -2
  1089. package/src/resolvers/queries/worker/workStatistics.ts +5 -3
  1090. package/src/resolvers/type/assortment/assortment-filter-types.ts +1 -1
  1091. package/src/resolvers/type/assortment/assortment-link-types.ts +1 -1
  1092. package/src/resolvers/type/assortment/assortment-media-types.ts +1 -1
  1093. package/src/resolvers/type/assortment/assortment-path-link-types.ts +1 -1
  1094. package/src/resolvers/type/assortment/assortment-product-types.ts +1 -1
  1095. package/src/resolvers/type/assortment/assortment-types.ts +53 -69
  1096. package/src/resolvers/type/bookmark-types.ts +4 -4
  1097. package/src/resolvers/type/country-types.ts +1 -1
  1098. package/src/resolvers/type/delivery-provider-types.ts +28 -30
  1099. package/src/resolvers/type/dispatch-types.ts +13 -16
  1100. package/src/resolvers/type/enrollment/enrollment-delivery-types.ts +1 -1
  1101. package/src/resolvers/type/enrollment/enrollment-payment-types.ts +1 -1
  1102. package/src/resolvers/type/enrollment/enrollment-period-types.ts +1 -1
  1103. package/src/resolvers/type/enrollment/enrollment-plan-tyes.ts +1 -1
  1104. package/src/resolvers/type/enrollment/enrollment-types.ts +1 -1
  1105. package/src/resolvers/type/event-types.ts +2 -2
  1106. package/src/resolvers/type/filter/filter-option-types.ts +1 -1
  1107. package/src/resolvers/type/filter/filter-types.ts +1 -1
  1108. package/src/resolvers/type/filter/loaded-filter-option-types.ts +18 -1
  1109. package/src/resolvers/type/filter/loaded-filter-types.ts +59 -1
  1110. package/src/resolvers/type/index.ts +3 -1
  1111. package/src/resolvers/type/language-types.ts +1 -1
  1112. package/src/resolvers/type/media-types.ts +17 -6
  1113. package/src/resolvers/type/order/order-delivery-discount-types.ts +8 -23
  1114. package/src/resolvers/type/order/order-delivery-pickup-types.ts +23 -8
  1115. package/src/resolvers/type/order/order-delivery-shipping-types.ts +9 -5
  1116. package/src/resolvers/type/order/order-delivery-types.ts +1 -1
  1117. package/src/resolvers/type/order/order-discount-types.ts +7 -11
  1118. package/src/resolvers/type/order/order-discountable-types.ts +9 -6
  1119. package/src/resolvers/type/order/order-global-discount-types.ts +24 -27
  1120. package/src/resolvers/type/order/order-item-discount-types.ts +7 -20
  1121. package/src/resolvers/type/order/order-item-types.ts +21 -25
  1122. package/src/resolvers/type/order/order-payment-card-types.ts +8 -4
  1123. package/src/resolvers/type/order/order-payment-discount-types.ts +24 -28
  1124. package/src/resolvers/type/order/order-payment-generic-types.ts +8 -4
  1125. package/src/resolvers/type/order/order-payment-invoice-types.ts +8 -4
  1126. package/src/resolvers/type/order/order-payment-types.ts +1 -1
  1127. package/src/resolvers/type/order/order-types.ts +24 -32
  1128. package/src/resolvers/type/payment/payment-credentials-types.ts +11 -6
  1129. package/src/resolvers/type/payment/payment-provider-types.ts +33 -70
  1130. package/src/resolvers/type/product/product-assortment-path-types.ts +1 -1
  1131. package/src/resolvers/type/product/product-bundle-item-types.ts +1 -1
  1132. package/src/resolvers/type/product/product-catalog-price-types.ts +1 -1
  1133. package/src/resolvers/type/product/product-configurable-types.ts +85 -14
  1134. package/src/resolvers/type/product/product-discount.ts +10 -32
  1135. package/src/resolvers/type/product/product-media-types.ts +1 -1
  1136. package/src/resolvers/type/product/product-plan-types.ts +29 -14
  1137. package/src/resolvers/type/product/product-review-types.ts +1 -1
  1138. package/src/resolvers/type/product/product-simple-types.ts +17 -20
  1139. package/src/resolvers/type/product/product-tokenized-types.ts +11 -11
  1140. package/src/resolvers/type/product/product-types.ts +12 -6
  1141. package/src/resolvers/type/product/product-variation-assignment-types.ts +1 -1
  1142. package/src/resolvers/type/product/product-variation-assignment-vector.ts +1 -1
  1143. package/src/resolvers/type/product/product-variation-option-types.ts +1 -1
  1144. package/src/resolvers/type/product/product-variation-types.ts +1 -1
  1145. package/src/resolvers/type/product-search-result-types.ts +69 -0
  1146. package/src/resolvers/type/quotation-types.ts +1 -1
  1147. package/src/resolvers/type/shop-types.ts +1 -1
  1148. package/src/resolvers/type/stock-types.ts +12 -15
  1149. package/src/resolvers/type/token-types.ts +21 -10
  1150. package/src/resolvers/type/user-types.ts +12 -5
  1151. package/src/resolvers/type/warehousing-provider-types.ts +15 -12
  1152. package/src/resolvers/type/webauthn-credentials-types.ts +1 -1
  1153. package/src/resolvers/type/work-types.ts +7 -3
  1154. package/src/roles/all.ts +12 -2
  1155. package/src/roles/index.ts +3 -0
  1156. package/src/roles/loggedIn.ts +24 -1
  1157. package/src/schema/mutation.ts +6 -1
  1158. package/src/schema/query.ts +11 -4
  1159. package/src/schema/types/assortment.ts +1 -1
  1160. package/src/schema/types/media.ts +1 -1
  1161. package/src/schema/types/product/product.ts +1 -1
  1162. package/tsconfig.json +4 -4
  1163. package/lib/types.d.ts +0 -100
  1164. package/lib/types.d.ts.map +0 -1
  1165. package/lib/types.js +0 -2
  1166. package/lib/types.js.map +0 -1
  1167. package/src/express/passport/access-token-strategy.ts +0 -39
  1168. package/src/express/passport/setup.ts +0 -44
  1169. package/src/types.ts +0 -94
@@ -1 +1 @@
1
- {"version":3,"file":"deliverOrder.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/deliverOrder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAS5C,wBAA8B,YAAY,CACxC,IAAI,EAAE,KAAK,EACX,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,EAChC,OAAO,EAAE,OAAO,uDA6BjB"}
1
+ {"version":3,"file":"deliverOrder.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/deliverOrder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAS9C,wBAA8B,YAAY,CACxC,IAAI,EAAE,KAAK,EACX,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,EAChC,OAAO,EAAE,OAAO,uDA6BjB"}
@@ -2,7 +2,7 @@ import { log } from '@unchainedshop/logger';
2
2
  import { OrderDeliveryStatus } from '@unchainedshop/core-orders';
3
3
  import { OrderNotFoundError, OrderWrongDeliveryStatusError, OrderWrongStatusError, InvalidIdError, } from '../../../errors.js';
4
4
  export default async function deliverOrder(root, { orderId }, context) {
5
- const { modules, userId } = context;
5
+ const { modules, services, userId } = context;
6
6
  log('mutation deliverOrder', { orderId, userId });
7
7
  if (!orderId)
8
8
  throw new InvalidIdError({ orderId });
@@ -22,6 +22,6 @@ export default async function deliverOrder(root, { orderId }, context) {
22
22
  });
23
23
  }
24
24
  await modules.orders.deliveries.markAsDelivered(orderDelivery);
25
- return modules.orders.processOrder(order, {}, context);
25
+ return services.orders.processOrder(order, {});
26
26
  }
27
27
  //# sourceMappingURL=deliverOrder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"deliverOrder.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/deliverOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EACL,kBAAkB,EAClB,6BAA6B,EAC7B,qBAAqB,EACrB,cAAc,GACf,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,YAAY,CACxC,IAAW,EACX,EAAE,OAAO,EAAuB,EAChC,OAAgB;IAEhB,MAAM,EAAE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AO,CAAC,MAAM,CAAC,UAAU,CAAC,eAAe,CAAC,aAAa,CAAC,CAAC;IAC/D,OAAO,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACjD,CAAC"}
@@ -1,5 +1,5 @@
1
- import { Context } from '../../../types.js';
1
+ import { Context } from '../../../context.js';
2
2
  export default function emptyCart(root: never, { orderId }: {
3
3
  orderId?: string;
4
- }, context: Context): Promise<import("@unchainedshop/core-orders").Order>;
4
+ }, context: Context): Promise<any>;
5
5
  //# sourceMappingURL=emptyCart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"emptyCart.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/emptyCart.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAI5C,wBAA8B,SAAS,CACrC,IAAI,EAAE,KAAK,EACX,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,EACjC,OAAO,EAAE,OAAO,uDAajB"}
1
+ {"version":3,"file":"emptyCart.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/emptyCart.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAI9C,wBAA8B,SAAS,CACrC,IAAI,EAAE,KAAK,EACX,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,EACjC,OAAO,EAAE,OAAO,gBAcjB"}
@@ -2,7 +2,7 @@ import { log } from '@unchainedshop/logger';
2
2
  import { getOrderCart } from '../utils/getOrderCart.js';
3
3
  import { OrderWrongStatusError } from '../../../errors.js';
4
4
  export default async function emptyCart(root, { orderId }, context) {
5
- const { modules, userId, user } = context;
5
+ const { modules, services, userId, user } = context;
6
6
  log('mutation emptyCart', { userId, orderId });
7
7
  const order = await getOrderCart({ orderId, user }, context);
8
8
  if (!modules.orders.isCart(order))
@@ -10,6 +10,6 @@ export default async function emptyCart(root, { orderId }, context) {
10
10
  if (!order)
11
11
  return null;
12
12
  await modules.orders.positions.removePositions({ orderId: order._id });
13
- return modules.orders.updateCalculation(order._id, context);
13
+ return services.orders.updateCalculation(order._id);
14
14
  }
15
15
  //# sourceMappingURL=emptyCart.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"emptyCart.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/emptyCart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,SAAS,CACrC,IAAW,EACX,EAAE,OAAO,EAAwB,EACjC,OAAgB;IAEhB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAE1C,GAAG,CAAC,oBAAoB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAE/C,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;QAAE,MAAM,IAAI,qBAAqB,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IAE7F,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IAExB,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;IACvE,OAAO,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC"}
1
+ {"version":3,"file":"emptyCart.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/emptyCart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,SAAS,CACrC,IAAW,EACX,EAAE,OAAO,EAAwB,EACjC,OAAgB;IAEhB,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IAEpD,GAAG,CAAC,oBAAoB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAE/C,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;QAAE,MAAM,IAAI,qBAAqB,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IAE7F,IAAI,CAAC,KAAK;QAAE,OAAO,IAAI,CAAC;IAExB,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;IAEvE,OAAO,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Context } from '../../../types.js';
1
+ import { Context } from '../../../context.js';
2
2
  export default function payOrder(root: never, { orderId }: {
3
3
  orderId: string;
4
4
  }, context: Context): Promise<import("@unchainedshop/core-orders").Order>;
@@ -1 +1 @@
1
- {"version":3,"file":"payOrder.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/payOrder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAS5C,wBAA8B,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,OAAO,EAAE,OAAO,uDA0BrG"}
1
+ {"version":3,"file":"payOrder.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/payOrder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAS9C,wBAA8B,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,EAAE,OAAO,EAAE,OAAO,uDA0BrG"}
@@ -2,7 +2,7 @@ import { log } from '@unchainedshop/logger';
2
2
  import { OrderPaymentStatus } from '@unchainedshop/core-orders';
3
3
  import { OrderNotFoundError, OrderWrongPaymentStatusError, OrderWrongStatusError, InvalidIdError, } from '../../../errors.js';
4
4
  export default async function payOrder(root, { orderId }, context) {
5
- const { modules, userId } = context;
5
+ const { modules, services, userId } = context;
6
6
  log('mutation payOrder', { orderId, userId });
7
7
  if (!orderId)
8
8
  throw new InvalidIdError({ orderId });
@@ -21,6 +21,6 @@ export default async function payOrder(root, { orderId }, context) {
21
21
  });
22
22
  }
23
23
  await modules.orders.payments.markAsPaid(payment, null);
24
- return modules.orders.processOrder(order, {}, context);
24
+ return services.orders.processOrder(order, {});
25
25
  }
26
26
  //# sourceMappingURL=payOrder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"payOrder.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/payOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE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AQ,CAAC,gBAAgB,CAAC,OAAO,CAAC,KAAK,kBAAkB,CAAC,IAAI,EAAE,CAAC;QAClF,MAAM,IAAI,4BAA4B,CAAC;YACrC,MAAM,EAAE,OAAO,CAAC,MAAM;SACvB,CAAC,CAAC;IACL,CAAC;IAED,MAAM,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;IACxD,OAAO,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC;AACjD,CAAC"}
@@ -1,8 +1,8 @@
1
- import { Context } from '../../../types.js';
1
+ import { Context } from '../../../context.js';
2
2
  export default function rejectOrder(root: never, params: {
3
3
  orderId: string;
4
4
  paymentContext?: any;
5
5
  deliveryContext?: any;
6
6
  comment?: string;
7
- }, context: Context): Promise<import("@unchainedshop/core-orders").Order>;
7
+ }, context: Context): Promise<any>;
8
8
  //# sourceMappingURL=rejectOrder.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rejectOrder.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/rejectOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAK5C,wBAA8B,WAAW,CACvC,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IACN,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,EACD,OAAO,EAAE,OAAO,uDAgBjB"}
1
+ {"version":3,"file":"rejectOrder.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/rejectOrder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAK9C,wBAA8B,WAAW,CACvC,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IACN,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,GAAG,CAAC;IACrB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,EACD,OAAO,EAAE,OAAO,gBAgBjB"}
@@ -2,7 +2,7 @@ import { OrderStatus } from '@unchainedshop/core-orders';
2
2
  import { log } from '@unchainedshop/logger';
3
3
  import { InvalidIdError, OrderNotFoundError, OrderWrongStatusError } from '../../../errors.js';
4
4
  export default async function rejectOrder(root, params, context) {
5
- const { modules, userId } = context;
5
+ const { modules, services, userId } = context;
6
6
  const { orderId, ...transactionContext } = params;
7
7
  log('mutation rejectOrder', { orderId, userId });
8
8
  if (!orderId)
@@ -13,6 +13,6 @@ export default async function rejectOrder(root, params, context) {
13
13
  if (order.status !== OrderStatus.PENDING) {
14
14
  throw new OrderWrongStatusError({ status: order.status });
15
15
  }
16
- return modules.orders.reject(order, transactionContext, context);
16
+ return services.orders.rejectOrder(order, transactionContext);
17
17
  }
18
18
  //# sourceMappingURL=rejectOrder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"rejectOrder.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/rejectOrder.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE/F,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,WAAW,CACvC,IAAW,EACX,MAKC,EACD,OAAgB;IAEhB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACpC,MAAM,EAAE,OAAO,EAAE,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC;IAElD,GAAG,CAAC,sBAAsB,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC,CAA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MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAC1D,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,kBAAkB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAEtD,IAAI,KAAK,CAAC,MAAM,KAAK,WAAW,CAAC,OAAO,EAAE,CAAC;QACzC,MAAM,IAAI,qBAAqB,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IAC5D,CAAC;IACD,OAAO,QAAQ,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,EAAE,kBAAkB,CAAC,CAAC;AAChE,CAAC"}
@@ -1,5 +1,5 @@
1
- import { Context } from '../../../types.js';
1
+ import { Context } from '../../../context.js';
2
2
  export default function removeCartDiscount(root: never, { discountId }: {
3
3
  discountId: string;
4
- }, context: Context): Promise<import("@unchainedshop/core-orders").OrderDiscount>;
4
+ }, requestContext: Context): Promise<import("@unchainedshop/core-orders").OrderDiscount>;
5
5
  //# sourceMappingURL=removeCartDiscount.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeCartDiscount.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/removeCartDiscount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAI5C,wBAA8B,kBAAkB,CAC9C,IAAI,EAAE,KAAK,EACX,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,EACtC,OAAO,EAAE,OAAO,+DAuBjB"}
1
+ {"version":3,"file":"removeCartDiscount.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/removeCartDiscount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAM9C,wBAA8B,kBAAkB,CAC9C,IAAI,EAAE,KAAK,EACX,EAAE,UAAU,EAAE,EAAE;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,EACtC,cAAc,EAAE,OAAO,+DAkCxB"}
@@ -1,7 +1,9 @@
1
1
  import { log } from '@unchainedshop/logger';
2
2
  import { OrderDiscountNotFoundError, OrderWrongStatusError, InvalidIdError } from '../../../errors.js';
3
- export default async function removeCartDiscount(root, { discountId }, context) {
4
- const { modules, userId } = context;
3
+ import { OrderDiscountTrigger } from '@unchainedshop/core-orders';
4
+ import { OrderDiscountDirector } from '@unchainedshop/core';
5
+ export default async function removeCartDiscount(root, { discountId }, requestContext) {
6
+ const { modules, services, userId } = requestContext;
5
7
  log(`mutation removeCartDiscount ${discountId}`, { userId });
6
8
  if (!discountId)
7
9
  throw new InvalidIdError({ discountId });
@@ -16,8 +18,18 @@ export default async function removeCartDiscount(root, { discountId }, context)
16
18
  if (!modules.orders.isCart(order)) {
17
19
  throw new OrderWrongStatusError({ status: order.status });
18
20
  }
19
- const deletedDiscount = await modules.orders.discounts.delete(discountId, context);
20
- await modules.orders.updateCalculation(order._id, context);
21
+ if (orderDiscount.trigger === OrderDiscountTrigger.USER) {
22
+ // Release
23
+ const Adapter = OrderDiscountDirector.getAdapter(orderDiscount.discountKey);
24
+ if (Adapter) {
25
+ const adapter = await Adapter.actions({
26
+ context: { order, orderDiscount, code: orderDiscount.code, ...requestContext },
27
+ });
28
+ await adapter.release();
29
+ }
30
+ }
31
+ const deletedDiscount = await modules.orders.discounts.delete(discountId);
32
+ await services.orders.updateCalculation(order._id);
21
33
  return deletedDiscount;
22
34
  }
23
35
  //# sourceMappingURL=removeCartDiscount.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeCartDiscount.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/removeCartDiscount.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAG5C,OAAO,EAAE,0BAA0B,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEvG,MAAM,CAAC,OAAO,CAAC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AE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,CAAC,IAAI,EAAE,GAAG,cAAc,EAAE;aAC/E,CAAC,CAAC;YACH,MAAM,OAAO,CAAC,OAAO,EAAE,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,MAAM,eAAe,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAC1E,MAAM,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnD,OAAO,eAAe,CAAC;AACzB,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Context } from '../../../types.js';
1
+ import { Context } from '../../../context.js';
2
2
  export default function removeCartItem(root: never, { itemId }: {
3
3
  itemId: string;
4
4
  }, context: Context): Promise<import("@unchainedshop/core-orders").OrderPosition>;
@@ -1 +1 @@
1
- {"version":3,"file":"removeCartItem.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/removeCartItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,wBAA8B,cAAc,CAC1C,IAAI,EAAE,KAAK,EACX,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAC9B,OAAO,EAAE,OAAO,+DAsBjB"}
1
+ {"version":3,"file":"removeCartItem.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/removeCartItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,wBAA8B,cAAc,CAC1C,IAAI,EAAE,KAAK,EACX,EAAE,MAAM,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,EAC9B,OAAO,EAAE,OAAO,+DAsBjB"}
@@ -1,7 +1,7 @@
1
1
  import { log } from '@unchainedshop/logger';
2
2
  import { OrderItemNotFoundError, OrderWrongStatusError, InvalidIdError } from '../../../errors.js';
3
3
  export default async function removeCartItem(root, { itemId }, context) {
4
- const { modules, userId } = context;
4
+ const { modules, services, userId } = context;
5
5
  log(`mutation removeCartItem ${itemId}`, { userId });
6
6
  if (!itemId)
7
7
  throw new InvalidIdError({ itemId });
@@ -15,7 +15,7 @@ export default async function removeCartItem(root, { itemId }, context) {
15
15
  throw new OrderWrongStatusError({ status: order.status });
16
16
  }
17
17
  const removedOrderPosition = await modules.orders.positions.delete(itemId);
18
- await modules.orders.updateCalculation(order._id, context);
18
+ await services.orders.updateCalculation(order._id);
19
19
  return removedOrderPosition;
20
20
  }
21
21
  //# sourceMappingURL=removeCartItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeCartItem.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/removeCartItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEnG,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,cAAc,CAC1C,IAAW,EACX,EAAE,MAAM,EAAsB,EAC9B,OAAgB;IAEhB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAEpC,GAAG,CAAC,2BAA2B,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAErD,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAElD,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC;QACjE,MAAM;KACP,CAAC,CAAC;IACH,IAAI,CAAC,SAAS;QAAE,MAAM,IAAI,sBAAsB,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;IAEhE,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,E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,KAAK,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,OAAO,EAAE,CAAC,CAAC;IAE7E,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,qBAAqB,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED,MAAM,oBAAoB,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAC3E,MAAM,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnD,OAAO,oBAAoB,CAAC;AAC9B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Context } from '../../../types.js';
1
+ import { Context } from '../../../context.js';
2
2
  export default function removeOrder(root: never, { orderId }: {
3
3
  orderId: string;
4
4
  }, { modules, userId }: Context): Promise<import("@unchainedshop/core-orders").Order>;
@@ -1 +1 @@
1
- {"version":3,"file":"removeOrder.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/removeOrder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,wBAA8B,WAAW,CACvC,IAAI,EAAE,KAAK,EACX,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,EAChC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,uDAgB7B"}
1
+ {"version":3,"file":"removeOrder.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/removeOrder.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,WAAW,CACvC,IAAI,EAAE,KAAK,EACX,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,MAAM,CAAA;CAAE,EAChC,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,uDAgB7B"}
@@ -1,6 +1,6 @@
1
- import { Context } from '../../../types.js';
1
+ import { Context } from '../../../context.js';
2
2
  export default function setOrderDeliveryProvider(root: never, params: {
3
3
  orderId: string;
4
4
  deliveryProviderId: string;
5
- }, context: Context): Promise<import("@unchainedshop/core-orders").Order>;
5
+ }, context: Context): Promise<any>;
6
6
  //# sourceMappingURL=setOrderDeliveryProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setOrderDeliveryProvider.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/setOrderDeliveryProvider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,wBAA8B,wBAAwB,CACpD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,kBAAkB,EAAE,MAAM,CAAA;CAAE,EACvD,OAAO,EAAE,OAAO,uDAiBjB"}
1
+ {"version":3,"file":"setOrderDeliveryProvider.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/setOrderDeliveryProvider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,wBAAwB,CACpD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,kBAAkB,EAAE,MAAM,CAAA;CAAE,EACvD,OAAO,EAAE,OAAO,gBAiBjB"}
@@ -1,7 +1,7 @@
1
1
  import { log } from '@unchainedshop/logger';
2
2
  import { OrderNotFoundError, InvalidIdError } from '../../../errors.js';
3
3
  export default async function setOrderDeliveryProvider(root, params, context) {
4
- const { modules, userId } = context;
4
+ const { modules, services, userId } = context;
5
5
  const { orderId, deliveryProviderId } = params;
6
6
  log(`mutation setOrderDeliveryProvider ${deliveryProviderId}`, {
7
7
  orderId,
@@ -13,7 +13,7 @@ export default async function setOrderDeliveryProvider(root, params, context) {
13
13
  throw new InvalidIdError({ deliveryProviderId });
14
14
  if (!(await modules.orders.orderExists({ orderId })))
15
15
  throw new OrderNotFoundError({ orderId });
16
- await modules.orders.setDeliveryProvider(orderId, deliveryProviderId, context);
17
- return modules.orders.updateCalculation(orderId, context);
16
+ await modules.orders.setDeliveryProvider(orderId, deliveryProviderId);
17
+ return services.orders.updateCalculation(orderId);
18
18
  }
19
19
  //# sourceMappingURL=setOrderDeliveryProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"setOrderDeliveryProvider.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/setOrderDeliveryProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGxE,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,wBAAwB,CACpD,IAAW,EACX,MAAuD,EACvD,OAAgB;IAEhB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACpC,MAAM,EAAE,OAAO,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;IAE/C,GAAG,CAAC,qCAAqC,kBAAkB,EAAE,EAAE;QAC7D,OAAO;QACP,MAAM;KACP,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,cAAc,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IACpD,IAAI,CAAC,kBAAkB;QAAE,MAAM,IAAI,cAAc,CAAC,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAE1E,IAAI,CAAC,CAAC,MAAM,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;QAAE,MAAM,IAAI,kBAAkB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAEhG,MAAM,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1,6 @@
1
- import { Context } from '../../../types.js';
1
+ import { Context } from '../../../context.js';
2
2
  export default function setOrderPaymentProvider(root: never, params: {
3
3
  orderId: string;
4
4
  paymentProviderId: string;
5
- }, context: Context): Promise<import("@unchainedshop/core-orders").Order>;
5
+ }, context: Context): Promise<any>;
6
6
  //# sourceMappingURL=setOrderPaymentProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setOrderPaymentProvider.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/setOrderPaymentProvider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,wBAA8B,uBAAuB,CACnD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,EACtD,OAAO,EAAE,OAAO,uDAkBjB"}
1
+ {"version":3,"file":"setOrderPaymentProvider.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/setOrderPaymentProvider.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,uBAAuB,CACnD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,EACtD,OAAO,EAAE,OAAO,gBAkBjB"}
@@ -1,7 +1,7 @@
1
1
  import { log } from '@unchainedshop/logger';
2
2
  import { OrderNotFoundError, InvalidIdError } from '../../../errors.js';
3
3
  export default async function setOrderPaymentProvider(root, params, context) {
4
- const { modules, userId } = context;
4
+ const { modules, services, userId } = context;
5
5
  const { orderId, paymentProviderId } = params;
6
6
  log(`mutation setOrderPaymentProvider ${paymentProviderId}`, {
7
7
  orderId,
@@ -14,7 +14,7 @@ export default async function setOrderPaymentProvider(root, params, context) {
14
14
  const order = await modules.orders.findOrder({ orderId });
15
15
  if (!order)
16
16
  throw new OrderNotFoundError({ orderId });
17
- await modules.orders.setPaymentProvider(orderId, paymentProviderId, context);
18
- return modules.orders.updateCalculation(orderId, context);
17
+ await modules.orders.setPaymentProvider(orderId, paymentProviderId);
18
+ return services.orders.updateCalculation(orderId);
19
19
  }
20
20
  //# sourceMappingURL=setOrderPaymentProvider.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"setOrderPaymentProvider.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/setOrderPaymentProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGxE,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,uBAAuB,CACnD,IAAW,EACX,MAAsD,EACtD,OAAgB;IAEhB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACpC,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAAC;IAE9C,GAAG,CAAC,oCAAoC,iBAAiB,EAAE,EAAE;QAC3D,OAAO;QACP,MAAM;KACP,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,cAAc,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IACpD,IAAI,CAAC,iBAAiB;QAAE,MAAM,IAAI,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAExE,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAC1D,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,kBAAkB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAEtD,MAAM,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC;IAC7E,OAAO,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AAC5D,CAAC"}
1
+ {"version":3,"file":"setOrderPaymentProvider.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/setOrderPaymentProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGxE,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,uBAAuB,CACnD,IAAW,EACX,MAAsD,EACtD,OAAgB;IAEhB,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC9C,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAAC;IAE9C,GAAG,CAAC,oCAAoC,iBAAiB,EAAE,EAAE;QAC3D,OAAO;QACP,MAAM;KACP,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,cAAc,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IACpD,IAAI,CAAC,iBAAiB;QAAE,MAAM,IAAI,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAExE,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAC1D,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,kBAAkB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAEtD,MAAM,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;IACpE,OAAO,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;AACpD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Context } from '../../../types.js';
1
+ import { Context } from '../../../context.js';
2
2
  export default function signPaymentProviderForCheckout(root: never, params: {
3
3
  orderPaymentId: string;
4
4
  transactionContext: any;
@@ -1 +1 @@
1
- {"version":3,"file":"signPaymentProviderForCheckout.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/signPaymentProviderForCheckout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAW5C,wBAA8B,8BAA8B,CAC1D,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,kBAAkB,EAAE,GAAG,CAAA;CAAE,EAC3D,OAAO,EAAE,OAAO,mBA4DjB"}
1
+ {"version":3,"file":"signPaymentProviderForCheckout.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/signPaymentProviderForCheckout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAY9C,wBAA8B,8BAA8B,CAC1D,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,cAAc,EAAE,MAAM,CAAC;IAAC,kBAAkB,EAAE,GAAG,CAAA;CAAE,EAC3D,OAAO,EAAE,OAAO,mBA8DjB"}
@@ -2,6 +2,7 @@ import { log } from '@unchainedshop/logger';
2
2
  import { PaymentProviderType } from '@unchainedshop/core-payment';
3
3
  import { OrderPaymentStatus } from '@unchainedshop/core-orders';
4
4
  import { OrderPaymentConfigurationError, OrderPaymentNotFoundError, OrderPaymentTypeError, OrderWrongPaymentStatusError, UserNoCartError, } from '../../../errors.js';
5
+ import { PaymentDirector } from '@unchainedshop/core';
5
6
  export default async function signPaymentProviderForCheckout(root, params, context) {
6
7
  const { modules, userId } = context;
7
8
  const { orderPaymentId, transactionContext } = params;
@@ -45,11 +46,12 @@ export default async function signPaymentProviderForCheckout(root, params, conte
45
46
  });
46
47
  }
47
48
  try {
48
- const sign = await modules.payment.paymentProviders.sign(provider._id, {
49
+ const actions = await PaymentDirector.actions(provider, {
49
50
  userId,
50
51
  orderPayment,
51
52
  transactionContext,
52
53
  }, context);
54
+ const sign = await actions.sign();
53
55
  return sign;
54
56
  }
55
57
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"signPaymentProviderForCheckout.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/signPaymentProviderForCheckout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EACL,8BAA8B,EAC9B,yBAAyB,EACzB,qBAAqB,EACrB,4BAA4B,EAC5B,eAAe,GAChB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,8BAA8B,CAC1D,IAAW,EACX,MAA2D,EAC3D,OAAgB;IAEhB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACpC,MAAM,EAAE,cAAc,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;IAEtD,GAAG,CAAC,2CAA2C,cAAc,EAAE,EAAE;QAC/D,MAAM;KACP,CAAC,CAAC;IAEH,IAAI,YAAY,CAAC;IAEjB,IAAI,cAAc,EAAE,CAAC;QACnB,YAAY,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YAC5D,cAAc;SACf,CAAC,CAAC;QACH,IAAI,CAAC,YAAY;YAAE,MAAM,IAAI,yBAAyB,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7E,CAAC;SAAM,CAAC;QACN,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;YACtC,cAAc,EAAE,OAAO,CAAC,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW;YAC7E,MAAM;SACP,CAAC,CAAC;QACH,IAAI,CAAC,KAAK;YAAE,M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CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC;YAC5D,cAAc,EAAE,KAAK,CAAC,SAAS;SAChC,CAAC,CAAC;QACH,IAAI,CAAC,YAAY;YAAE,MAAM,IAAI,yBAAyB,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,CAAC;QACnE,iBAAiB,EAAE,YAAY,CAAC,iBAAiB;KAClD,CAAC,CAAC;IACH,MAAM,YAAY,GAAG,QAAQ,EAAE,IAAI,CAAC;IAEpC,IAAI,YAAY,KAAK,mBAAmB,CAAC,OAAO;QAC9C,MAAM,IAAI,qBAAqB,CAAC;YAC9B,cAAc;YACd,QAAQ,EAAE,YAAY;YACtB,QAAQ,EAAE,mBAAmB,CAAC,OAAO;SACtC,CAAC,CAAC;IAEL,IAAI,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,gBAAgB,CAAC,YAAY,CAAC,KAAK,kBAAkB,CAAC,IAAI,EAAE,CAAC;QACvF,MAAM,IAAI,4BAA4B,CAAC;YACrC,MAAM,EAAE,YAAY,CAAC,MAAM;SAC5B,CAAC,CAAC;IACL,CAAC;IAED,IAAI,CAAC;QACH,MAAM,OAAO,GAAG,MAAM,eAAe,CAAC,OAAO,CAC3C,QAAQ,EACR;YACE,MAAM;YACN,YAAY;YACZ,kBAAkB;SACnB,EACD,OAAO,CACR,CAAC;QACF,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,IAAI,EAAE,CAAC;QAElC,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,IAAI,8BAA8B,CAAC,KAAK,CAAC,CAAC;IAClD,CAAC;AACH,CAAC"}
@@ -1,5 +1,5 @@
1
- import { Context } from '../../../types.js';
2
- import type { Address, Contact } from '@unchainedshop/mongodb';
1
+ import { Context } from '../../../context.js';
2
+ import { Address, Contact } from '@unchainedshop/mongodb';
3
3
  interface UpdateCartParams {
4
4
  orderId?: string;
5
5
  billingAddress?: Address;
@@ -8,6 +8,6 @@ interface UpdateCartParams {
8
8
  deliveryProviderId?: string;
9
9
  meta?: any;
10
10
  }
11
- export default function updateCart(root: never, params: UpdateCartParams, context: Context): Promise<import("@unchainedshop/core-orders").Order>;
11
+ export default function updateCart(root: never, params: UpdateCartParams, context: Context): Promise<any>;
12
12
  export {};
13
13
  //# sourceMappingURL=updateCart.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateCart.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/updateCart.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAE/D,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AAED,wBAA8B,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,uDAgC/F"}
1
+ {"version":3,"file":"updateCart.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/updateCart.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG9C,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAE1D,UAAU,gBAAgB;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AAED,wBAA8B,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,gBAAgB,EAAE,OAAO,EAAE,OAAO,gBAgC/F"}
@@ -3,7 +3,7 @@ import { getOrderCart } from '../utils/getOrderCart.js';
3
3
  import { OrderWrongStatusError } from '../../../errors.js';
4
4
  export default async function updateCart(root, params, context) {
5
5
  const { orderId, billingAddress, contact, paymentProviderId, deliveryProviderId, meta } = params;
6
- const { modules, userId, user } = context;
6
+ const { modules, services, userId, user } = context;
7
7
  log('mutation updateCart', { userId });
8
8
  let order = await getOrderCart({ orderId, user }, context);
9
9
  if (!modules.orders.isCart(order))
@@ -18,12 +18,12 @@ export default async function updateCart(root, params, context) {
18
18
  order = await modules.orders.updateContact(order._id, contact);
19
19
  }
20
20
  if (paymentProviderId) {
21
- order = await modules.orders.setPaymentProvider(order._id, paymentProviderId, context);
21
+ order = await modules.orders.setPaymentProvider(order._id, paymentProviderId);
22
22
  }
23
23
  if (deliveryProviderId) {
24
- order = await modules.orders.setDeliveryProvider(order._id, deliveryProviderId, context);
24
+ order = await modules.orders.setDeliveryProvider(order._id, deliveryProviderId);
25
25
  }
26
26
  // Recalculate, then return
27
- return modules.orders.updateCalculation(order._id, context);
27
+ return services.orders.updateCalculation(order._id);
28
28
  }
29
29
  //# sourceMappingURL=updateCart.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateCart.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/updateCart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAY3D,MAAM,CAAC,OAAO,CAAC,KAAK,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KAAK,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,oBAAoB,CAAC,KAAK,CAAC,GAAG,EAAE,cAAc,CAAC,CAAC;IAC/E,CAAC;IAED,IAAI,OAAO,EAAE,CAAC;QACZ,KAAK,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED,IAAI,iBAAiB,EAAE,CAAC;QACtB,KAAK,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,kBAAkB,CAAC,KAAK,CAAC,GAAG,EAAE,iBAAiB,CAAC,CAAC;IAChF,CAAC;IAED,IAAI,kBAAkB,EAAE,CAAC;QACvB,KAAK,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAC,KAAK,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC;IAClF,CAAC;IAED,2BAA2B;IAC3B,OAAO,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Context } from '../../../types.js';
1
+ import { Context } from '../../../context.js';
2
2
  export default function updateCartItem(root: never, params: {
3
3
  itemId: string;
4
4
  quantity?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"updateCartItem.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/updateCartItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAS5C,wBAA8B,cAAc,CAC1C,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IACN,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACvD,EACD,OAAO,EAAE,OAAO,+DAoCjB"}
1
+ {"version":3,"file":"updateCartItem.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/updateCartItem.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAU9C,wBAA8B,cAAc,CAC1C,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IACN,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACvD,EACD,OAAO,EAAE,OAAO,+DAyCjB"}
@@ -1,7 +1,8 @@
1
1
  import { log } from '@unchainedshop/logger';
2
2
  import { OrderQuantityTooLowError, OrderItemNotFoundError, OrderWrongStatusError, ProductNotFoundError, InvalidIdError, } from '../../../errors.js';
3
+ import { ordersSettings } from '@unchainedshop/core-orders';
3
4
  export default async function updateCartItem(root, params, context) {
4
- const { modules, userId } = context;
5
+ const { modules, services, userId } = context;
5
6
  const { itemId, configuration = null, quantity = null } = params;
6
7
  log(`mutation updateCartItem ${itemId} ${quantity} ${JSON.stringify(configuration)}`, { userId });
7
8
  if (!itemId)
@@ -13,20 +14,25 @@ export default async function updateCartItem(root, params, context) {
13
14
  if (!modules.orders.isCart(order)) {
14
15
  throw new OrderWrongStatusError({ status: order.status });
15
16
  }
16
- const productId = item.originalProductId || item.productId;
17
17
  const product = await modules.products.findProduct({
18
- productId,
18
+ productId: item.productId,
19
19
  });
20
20
  if (!product)
21
- throw new ProductNotFoundError({ productId });
21
+ throw new ProductNotFoundError({ productId: item.productId });
22
22
  if (quantity !== null && quantity < 1)
23
23
  throw new OrderQuantityTooLowError({ quantity });
24
- const updatedOrderPosition = await modules.orders.positions.updateProductItem({ quantity, configuration }, {
24
+ await ordersSettings.validateOrderPosition({
25
25
  order,
26
26
  product,
27
- orderPosition: item,
27
+ configuration,
28
+ quantityDiff: quantity - item.quantity,
28
29
  }, context);
29
- await modules.orders.updateCalculation(order._id, context);
30
+ const updatedOrderPosition = await modules.orders.positions.updateProductItem({
31
+ orderPositionId: item._id,
32
+ quantity,
33
+ configuration,
34
+ });
35
+ await services.orders.updateCalculation(order._id);
30
36
  return modules.orders.positions.findOrderPosition({ itemId: updatedOrderPosition._id });
31
37
  }
32
38
  //# sourceMappingURL=updateCartItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateCartItem.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/updateCartItem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EACL,wBAAwB,EACxB,sBAAsB,EACtB,qBAAqB,EACrB,oBAAoB,EACpB,cAAc,GACf,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,cAAc,CAC1C,IAAW,EACX,MAIC,EACD,OAAgB;IAEhB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACpC,MAAM,EAAE,MAAM,EAAE,aAAa,GAAG,IAAI,EAAE,QAAQ,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;IAEjE,GAAG,CAAC,2BAA2B,MAAM,IAAI,QAAQ,IAAI,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAElG,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAElD,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAC1E,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;IAExD,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC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AE,MAAM,IAAI,oBAAoB,CAAC,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;IAE5E,IAAI,QAAQ,KAAK,IAAI,IAAI,QAAQ,GAAG,CAAC;QAAE,MAAM,IAAI,wBAAwB,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IAExF,MAAM,cAAc,CAAC,qBAAqB,CACxC;QACE,KAAK;QACL,OAAO;QACP,aAAa;QACb,YAAY,EAAE,QAAQ,GAAG,IAAI,CAAC,QAAQ;KACvC,EACD,OAAO,CACR,CAAC;IAEF,MAAM,oBAAoB,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC;QAC5E,eAAe,EAAE,IAAI,CAAC,GAAG;QACzB,QAAQ;QACR,aAAa;KACd,CAAC,CAAC;IACH,MAAM,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnD,OAAO,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,oBAAoB,CAAC,GAAG,EAAE,CAAC,CAAC;AAC1F,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Context } from '../../../types.js';
1
+ import { Context } from '../../../context.js';
2
2
  export default function updateOrderDeliveryPickUp(root: never, params: {
3
3
  orderDeliveryId: string;
4
4
  orderPickUpLocationId: string;
@@ -1 +1 @@
1
- {"version":3,"file":"updateOrderDeliveryPickUp.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/updateOrderDeliveryPickUp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAK5C,wBAA8B,yBAAyB,CACrD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,eAAe,EAAE,MAAM,CAAC;IAAC,qBAAqB,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,GAAG,CAAA;CAAE,EAC7E,OAAO,EAAE,OAAO,+DAmCjB"}
1
+ {"version":3,"file":"updateOrderDeliveryPickUp.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/updateOrderDeliveryPickUp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAK9C,wBAA8B,yBAAyB,CACrD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,eAAe,EAAE,MAAM,CAAC;IAAC,qBAAqB,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,GAAG,CAAA;CAAE,EAC7E,OAAO,EAAE,OAAO,+DAmCjB"}
@@ -2,7 +2,7 @@ import { DeliveryProviderType } from '@unchainedshop/core-delivery';
2
2
  import { log } from '@unchainedshop/logger';
3
3
  import { InvalidIdError, OrderDeliveryNotFoundError, OrderDeliveryTypeError } from '../../../errors.js';
4
4
  export default async function updateOrderDeliveryPickUp(root, params, context) {
5
- const { modules, userId } = context;
5
+ const { modules, services, userId } = context;
6
6
  const { orderDeliveryId, orderPickUpLocationId, meta } = params;
7
7
  log(`mutation updateOrderDeliveryPickUp ${orderDeliveryId} with location ${orderPickUpLocationId}`, {
8
8
  userId,
@@ -28,7 +28,7 @@ export default async function updateOrderDeliveryPickUp(root, params, context) {
28
28
  orderPickUpLocationId,
29
29
  meta,
30
30
  });
31
- await modules.orders.updateCalculation(orderDelivery.orderId, context);
31
+ await services.orders.updateCalculation(orderDelivery.orderId);
32
32
  return modules.orders.deliveries.findDelivery({
33
33
  orderDeliveryId,
34
34
  });
@@ -1 +1 @@
1
- {"version":3,"file":"updateOrderDeliveryPickUp.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/updateOrderDeliveryPickUp.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,0BAA0B,EAAE,sBAAsB,EA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;YACf,QAAQ,EAAE,oBAAoB;YAC9B,QAAQ,EAAE,oBAAoB,CAAC,MAAM;SACtC,CAAC,CAAC;IAEL,MAAM,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,eAAe,EAAE;QAC7D,qBAAqB;QACrB,IAAI;KACL,CAAC,CAAC;IACH,MAAM,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/D,OAAO,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,YAAY,CAAC;QAC5C,eAAe;KAChB,CAAC,CAAC;AACL,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Context } from '../../../types.js';
1
+ import { Context } from '../../../context.js';
2
2
  export default function updateOrderDeliveryShipping(root: never, params: {
3
3
  orderDeliveryId: string;
4
4
  address: any;