@unchainedshop/api 3.1.11 → 4.0.0-rc.2

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 (690) hide show
  1. package/lib/context.d.ts +2 -2
  2. package/lib/context.d.ts.map +1 -1
  3. package/lib/context.js +1 -1
  4. package/lib/context.js.map +1 -1
  5. package/lib/createGraphQLServer.d.ts +2 -2
  6. package/lib/createGraphQLServer.d.ts.map +1 -1
  7. package/lib/errors.d.ts +2 -0
  8. package/lib/errors.d.ts.map +1 -1
  9. package/lib/errors.js +2 -0
  10. package/lib/errors.js.map +1 -1
  11. package/lib/express/createERCMetadataMiddleware.d.ts.map +1 -1
  12. package/lib/express/createERCMetadataMiddleware.js +9 -5
  13. package/lib/express/createERCMetadataMiddleware.js.map +1 -1
  14. package/lib/express/createMCPMiddleware.d.ts +8 -0
  15. package/lib/express/createMCPMiddleware.d.ts.map +1 -0
  16. package/lib/express/createMCPMiddleware.js +46 -0
  17. package/lib/express/createMCPMiddleware.js.map +1 -0
  18. package/lib/express/index.d.ts.map +1 -1
  19. package/lib/express/index.js +0 -2
  20. package/lib/express/index.js.map +1 -1
  21. package/lib/express/mcpHandler.d.ts.map +1 -0
  22. package/lib/express/mcpHandler.js +68 -0
  23. package/lib/express/mcpHandler.js.map +1 -0
  24. package/lib/fastify/ercMetadataHandler.d.ts.map +1 -1
  25. package/lib/fastify/ercMetadataHandler.js +9 -5
  26. package/lib/fastify/ercMetadataHandler.js.map +1 -1
  27. package/lib/fastify/index copy.d.ts.map +1 -0
  28. package/lib/fastify/index copy.js +157 -0
  29. package/lib/fastify/index copy.js.map +1 -0
  30. package/lib/fastify/index.d.ts.map +1 -1
  31. package/lib/fastify/index.js +0 -3
  32. package/lib/fastify/index.js.map +1 -1
  33. package/lib/fastify/mcpHandler.d.ts +8 -0
  34. package/lib/fastify/mcpHandler.d.ts.map +1 -0
  35. package/lib/fastify/mcpHandler.js +46 -0
  36. package/lib/fastify/mcpHandler.js.map +1 -0
  37. package/lib/loaders/assortmentLinkLoader.d.ts +12 -0
  38. package/lib/loaders/assortmentLinkLoader.d.ts.map +1 -0
  39. package/lib/loaders/assortmentLinkLoader.js +23 -0
  40. package/lib/loaders/assortmentLinkLoader.js.map +1 -0
  41. package/lib/loaders/assortmentLinksLoader.d.ts +14 -0
  42. package/lib/loaders/assortmentLinksLoader.d.ts.map +1 -0
  43. package/lib/loaders/assortmentLinksLoader.js +38 -0
  44. package/lib/loaders/assortmentLinksLoader.js.map +1 -0
  45. package/lib/loaders/assortmentLoader.d.ts +10 -0
  46. package/lib/loaders/assortmentLoader.d.ts.map +1 -0
  47. package/lib/loaders/assortmentLoader.js +15 -0
  48. package/lib/loaders/assortmentLoader.js.map +1 -0
  49. package/lib/loaders/assortmentMediaTextLoader.d.ts +12 -0
  50. package/lib/loaders/assortmentMediaTextLoader.d.ts.map +1 -0
  51. package/lib/loaders/assortmentMediaTextLoader.js +15 -0
  52. package/lib/loaders/assortmentMediaTextLoader.js.map +1 -0
  53. package/lib/loaders/assortmentMediasLoader.d.ts +10 -0
  54. package/lib/loaders/assortmentMediasLoader.d.ts.map +1 -0
  55. package/lib/loaders/assortmentMediasLoader.js +18 -0
  56. package/lib/loaders/assortmentMediasLoader.js.map +1 -0
  57. package/lib/loaders/assortmentProductLoader.d.ts +12 -0
  58. package/lib/loaders/assortmentProductLoader.d.ts.map +1 -0
  59. package/lib/loaders/assortmentProductLoader.js +14 -0
  60. package/lib/loaders/assortmentProductLoader.js.map +1 -0
  61. package/lib/loaders/assortmentProductsLoader.d.ts +10 -0
  62. package/lib/loaders/assortmentProductsLoader.d.ts.map +1 -0
  63. package/lib/loaders/assortmentProductsLoader.js +18 -0
  64. package/lib/loaders/assortmentProductsLoader.js.map +1 -0
  65. package/lib/loaders/assortmentTextLoader.d.ts +12 -0
  66. package/lib/loaders/assortmentTextLoader.d.ts.map +1 -0
  67. package/lib/loaders/assortmentTextLoader.js +15 -0
  68. package/lib/loaders/assortmentTextLoader.js.map +1 -0
  69. package/lib/loaders/buildTextMap.d.ts +2 -2
  70. package/lib/loaders/buildTextMap.d.ts.map +1 -1
  71. package/lib/loaders/countryLoader.d.ts +10 -0
  72. package/lib/loaders/countryLoader.d.ts.map +1 -0
  73. package/lib/loaders/countryLoader.js +14 -0
  74. package/lib/loaders/countryLoader.js.map +1 -0
  75. package/lib/loaders/currencyLoader.d.ts +10 -0
  76. package/lib/loaders/currencyLoader.d.ts.map +1 -0
  77. package/lib/loaders/currencyLoader.js +14 -0
  78. package/lib/loaders/currencyLoader.js.map +1 -0
  79. package/lib/loaders/deliveryProviderLoader.d.ts +10 -0
  80. package/lib/loaders/deliveryProviderLoader.d.ts.map +1 -0
  81. package/lib/loaders/deliveryProviderLoader.js +13 -0
  82. package/lib/loaders/deliveryProviderLoader.js.map +1 -0
  83. package/lib/loaders/fileLoader.d.ts +10 -0
  84. package/lib/loaders/fileLoader.d.ts.map +1 -0
  85. package/lib/loaders/fileLoader.js +13 -0
  86. package/lib/loaders/fileLoader.js.map +1 -0
  87. package/lib/loaders/filterLoader.d.ts +10 -0
  88. package/lib/loaders/filterLoader.d.ts.map +1 -0
  89. package/lib/loaders/filterLoader.js +14 -0
  90. package/lib/loaders/filterLoader.js.map +1 -0
  91. package/lib/loaders/filterTextLoader.d.ts +14 -0
  92. package/lib/loaders/filterTextLoader.d.ts.map +1 -0
  93. package/lib/loaders/filterTextLoader.js +15 -0
  94. package/lib/loaders/filterTextLoader.js.map +1 -0
  95. package/lib/loaders/index.d.ts +79 -49
  96. package/lib/loaders/index.d.ts.map +1 -1
  97. package/lib/loaders/index.js +47 -268
  98. package/lib/loaders/index.js.map +1 -1
  99. package/lib/loaders/languageLoader.d.ts +10 -0
  100. package/lib/loaders/languageLoader.d.ts.map +1 -0
  101. package/lib/loaders/languageLoader.js +14 -0
  102. package/lib/loaders/languageLoader.js.map +1 -0
  103. package/lib/loaders/orderLoader.d.ts +10 -0
  104. package/lib/loaders/orderLoader.d.ts.map +1 -0
  105. package/lib/loaders/orderLoader.js +16 -0
  106. package/lib/loaders/orderLoader.js.map +1 -0
  107. package/lib/loaders/paymentProviderLoader.d.ts +10 -0
  108. package/lib/loaders/paymentProviderLoader.d.ts.map +1 -0
  109. package/lib/loaders/paymentProviderLoader.js +13 -0
  110. package/lib/loaders/paymentProviderLoader.js.map +1 -0
  111. package/lib/loaders/productLoader.d.ts +10 -0
  112. package/lib/loaders/productLoader.d.ts.map +1 -0
  113. package/lib/loaders/productLoader.js +16 -0
  114. package/lib/loaders/productLoader.js.map +1 -0
  115. package/lib/loaders/productLoaderBySKU.d.ts +10 -0
  116. package/lib/loaders/productLoaderBySKU.d.ts.map +1 -0
  117. package/lib/loaders/productLoaderBySKU.js +16 -0
  118. package/lib/loaders/productLoaderBySKU.js.map +1 -0
  119. package/lib/loaders/productMediaTextLoader.d.ts +12 -0
  120. package/lib/loaders/productMediaTextLoader.d.ts.map +1 -0
  121. package/lib/loaders/productMediaTextLoader.js +15 -0
  122. package/lib/loaders/productMediaTextLoader.js.map +1 -0
  123. package/lib/loaders/productMediasLoader.d.ts +10 -0
  124. package/lib/loaders/productMediasLoader.d.ts.map +1 -0
  125. package/lib/loaders/productMediasLoader.js +18 -0
  126. package/lib/loaders/productMediasLoader.js.map +1 -0
  127. package/lib/loaders/productTextLoader.d.ts +12 -0
  128. package/lib/loaders/productTextLoader.d.ts.map +1 -0
  129. package/lib/loaders/productTextLoader.js +15 -0
  130. package/lib/loaders/productTextLoader.js.map +1 -0
  131. package/lib/loaders/userLoader.d.ts +10 -0
  132. package/lib/loaders/userLoader.d.ts.map +1 -0
  133. package/lib/loaders/userLoader.js +17 -0
  134. package/lib/loaders/userLoader.js.map +1 -0
  135. package/lib/loaders/utils.d.ts +7 -0
  136. package/lib/loaders/utils.d.ts.map +1 -0
  137. package/lib/loaders/utils.js +29 -0
  138. package/lib/loaders/utils.js.map +1 -0
  139. package/lib/locale-context.d.ts +3 -3
  140. package/lib/locale-context.d.ts.map +1 -1
  141. package/lib/locale-context.js +9 -10
  142. package/lib/locale-context.js.map +1 -1
  143. package/lib/mcp/index.d.ts +95 -0
  144. package/lib/mcp/index.d.ts.map +1 -0
  145. package/lib/mcp/index.js +138 -0
  146. package/lib/mcp/index.js.map +1 -0
  147. package/lib/mcp/server.d.ts +4 -0
  148. package/lib/mcp/server.d.ts.map +1 -0
  149. package/lib/mcp/server.js +60 -0
  150. package/lib/mcp/server.js.map +1 -0
  151. package/lib/mcp/types.d.ts +28 -0
  152. package/lib/mcp/types.d.ts.map +1 -0
  153. package/lib/mcp/types.js +2 -0
  154. package/lib/mcp/types.js.map +1 -0
  155. package/lib/middleware/accountLockout.d.ts.map +1 -0
  156. package/lib/middleware/accountLockout.js +84 -0
  157. package/lib/middleware/accountLockout.js.map +1 -0
  158. package/lib/middleware/rateLimiter.d.ts.map +1 -0
  159. package/lib/middleware/rateLimiter.js +91 -0
  160. package/lib/middleware/rateLimiter.js.map +1 -0
  161. package/lib/plugins/inputValidation.d.ts.map +1 -0
  162. package/lib/plugins/inputValidation.js +95 -0
  163. package/lib/plugins/inputValidation.js.map +1 -0
  164. package/lib/resolvers/mutations/accounts/createUser.d.ts.map +1 -1
  165. package/lib/resolvers/mutations/accounts/createUser.js +4 -5
  166. package/lib/resolvers/mutations/accounts/createUser.js.map +1 -1
  167. package/lib/resolvers/mutations/accounts/impersonate.js +1 -1
  168. package/lib/resolvers/mutations/accounts/impersonate.js.map +1 -1
  169. package/lib/resolvers/mutations/accounts/loginAsGuest.d.ts.map +1 -1
  170. package/lib/resolvers/mutations/accounts/loginAsGuest.js +4 -5
  171. package/lib/resolvers/mutations/accounts/loginAsGuest.js.map +1 -1
  172. package/lib/resolvers/mutations/accounts/loginWithPassword.js +3 -3
  173. package/lib/resolvers/mutations/accounts/loginWithPassword.js.map +1 -1
  174. package/lib/resolvers/mutations/accounts/loginWithWebAuthn.js +3 -3
  175. package/lib/resolvers/mutations/accounts/loginWithWebAuthn.js.map +1 -1
  176. package/lib/resolvers/mutations/accounts/resetPassword.js +3 -3
  177. package/lib/resolvers/mutations/accounts/resetPassword.js.map +1 -1
  178. package/lib/resolvers/mutations/accounts/stopImpersonation.js +1 -1
  179. package/lib/resolvers/mutations/accounts/stopImpersonation.js.map +1 -1
  180. package/lib/resolvers/mutations/accounts/verifyEmail.js +3 -3
  181. package/lib/resolvers/mutations/accounts/verifyEmail.js.map +1 -1
  182. package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.d.ts +2 -2
  183. package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.d.ts.map +1 -1
  184. package/lib/resolvers/mutations/assortments/reorderAssortmentFilters.js.map +1 -1
  185. package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.d.ts +2 -2
  186. package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.d.ts.map +1 -1
  187. package/lib/resolvers/mutations/assortments/reorderAssortmentLinks.js.map +1 -1
  188. package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.d.ts +2 -2
  189. package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.d.ts.map +1 -1
  190. package/lib/resolvers/mutations/assortments/reorderAssortmentMedia.js.map +1 -1
  191. package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.d.ts +2 -2
  192. package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.d.ts.map +1 -1
  193. package/lib/resolvers/mutations/assortments/reorderAssortmentProducts.js.map +1 -1
  194. package/lib/resolvers/mutations/assortments/updateAssortmentMediaTexts.d.ts +1 -1
  195. package/lib/resolvers/mutations/assortments/updateAssortmentMediaTexts.d.ts.map +1 -1
  196. package/lib/resolvers/mutations/assortments/updateAssortmentMediaTexts.js.map +1 -1
  197. package/lib/resolvers/mutations/assortments/updateAssortmentTexts.d.ts +1 -1
  198. package/lib/resolvers/mutations/assortments/updateAssortmentTexts.d.ts.map +1 -1
  199. package/lib/resolvers/mutations/assortments/updateAssortmentTexts.js.map +1 -1
  200. package/lib/resolvers/mutations/enrollments/createEnrollment.js +3 -3
  201. package/lib/resolvers/mutations/enrollments/createEnrollment.js.map +1 -1
  202. package/lib/resolvers/mutations/enrollments/updateEnrollment.d.ts +2 -2
  203. package/lib/resolvers/mutations/enrollments/updateEnrollment.d.ts.map +1 -1
  204. package/lib/resolvers/mutations/filters/createFilter.d.ts.map +1 -1
  205. package/lib/resolvers/mutations/filters/createFilter.js +2 -6
  206. package/lib/resolvers/mutations/filters/createFilter.js.map +1 -1
  207. package/lib/resolvers/mutations/filters/updateFilterTexts.d.ts +2 -2
  208. package/lib/resolvers/mutations/filters/updateFilterTexts.d.ts.map +1 -1
  209. package/lib/resolvers/mutations/orders/addCartDiscount.js +1 -1
  210. package/lib/resolvers/mutations/orders/addCartDiscount.js.map +1 -1
  211. package/lib/resolvers/mutations/orders/addCartProduct.js +1 -1
  212. package/lib/resolvers/mutations/orders/addCartProduct.js.map +1 -1
  213. package/lib/resolvers/mutations/orders/addCartQuotation.d.ts +2 -2
  214. package/lib/resolvers/mutations/orders/addCartQuotation.d.ts.map +1 -1
  215. package/lib/resolvers/mutations/orders/addCartQuotation.js +1 -1
  216. package/lib/resolvers/mutations/orders/addCartQuotation.js.map +1 -1
  217. package/lib/resolvers/mutations/orders/addMultipleCartProducts.d.ts +4 -4
  218. package/lib/resolvers/mutations/orders/addMultipleCartProducts.d.ts.map +1 -1
  219. package/lib/resolvers/mutations/orders/addMultipleCartProducts.js +1 -1
  220. package/lib/resolvers/mutations/orders/addMultipleCartProducts.js.map +1 -1
  221. package/lib/resolvers/mutations/orders/checkoutCart.js +1 -1
  222. package/lib/resolvers/mutations/orders/checkoutCart.js.map +1 -1
  223. package/lib/resolvers/mutations/orders/createCart.js +1 -1
  224. package/lib/resolvers/mutations/orders/createCart.js.map +1 -1
  225. package/lib/resolvers/mutations/orders/emptyCart.js +1 -1
  226. package/lib/resolvers/mutations/orders/emptyCart.js.map +1 -1
  227. package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.js +1 -1
  228. package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.js.map +1 -1
  229. package/lib/resolvers/mutations/orders/updateCart.js +1 -1
  230. package/lib/resolvers/mutations/orders/updateCart.js.map +1 -1
  231. package/lib/resolvers/mutations/orders/updateCartItem.d.ts +2 -2
  232. package/lib/resolvers/mutations/orders/updateCartItem.d.ts.map +1 -1
  233. package/lib/resolvers/mutations/products/addProductAssignment.d.ts +1 -1
  234. package/lib/resolvers/mutations/products/addProductAssignment.d.ts.map +1 -1
  235. package/lib/resolvers/mutations/products/addProductAssignment.js +35 -2
  236. package/lib/resolvers/mutations/products/addProductAssignment.js.map +1 -1
  237. package/lib/resolvers/mutations/products/createProductVariation.d.ts +2 -2
  238. package/lib/resolvers/mutations/products/createProductVariation.d.ts.map +1 -1
  239. package/lib/resolvers/mutations/products/createProductVariation.js.map +1 -1
  240. package/lib/resolvers/mutations/products/removeProductAssignment.d.ts +1 -1
  241. package/lib/resolvers/mutations/products/removeProductAssignment.d.ts.map +1 -1
  242. package/lib/resolvers/mutations/products/removeProductAssignment.js.map +1 -1
  243. package/lib/resolvers/mutations/products/reorderProductMedia.d.ts +2 -2
  244. package/lib/resolvers/mutations/products/reorderProductMedia.d.ts.map +1 -1
  245. package/lib/resolvers/mutations/products/reorderProductMedia.js.map +1 -1
  246. package/lib/resolvers/mutations/products/updateProductMediaTexts.d.ts +1 -1
  247. package/lib/resolvers/mutations/products/updateProductMediaTexts.d.ts.map +1 -1
  248. package/lib/resolvers/mutations/products/updateProductMediaTexts.js.map +1 -1
  249. package/lib/resolvers/mutations/products/updateProductVariationTexts.d.ts +1 -1
  250. package/lib/resolvers/mutations/products/updateProductVariationTexts.d.ts.map +1 -1
  251. package/lib/resolvers/mutations/quotations/requestQuotation.d.ts +2 -2
  252. package/lib/resolvers/mutations/quotations/requestQuotation.d.ts.map +1 -1
  253. package/lib/resolvers/mutations/quotations/requestQuotation.js +3 -3
  254. package/lib/resolvers/mutations/quotations/requestQuotation.js.map +1 -1
  255. package/lib/resolvers/mutations/users/heartbeat.d.ts +1 -1
  256. package/lib/resolvers/mutations/users/heartbeat.d.ts.map +1 -1
  257. package/lib/resolvers/mutations/users/heartbeat.js +3 -3
  258. package/lib/resolvers/mutations/users/heartbeat.js.map +1 -1
  259. package/lib/resolvers/mutations/users/setRoles.d.ts +1 -1
  260. package/lib/resolvers/mutations/users/setRoles.d.ts.map +1 -1
  261. package/lib/resolvers/mutations/users/setRoles.js.map +1 -1
  262. package/lib/resolvers/mutations/users/setUserTags.d.ts +1 -1
  263. package/lib/resolvers/mutations/users/setUserTags.d.ts.map +1 -1
  264. package/lib/resolvers/mutations/users/setUserTags.js.map +1 -1
  265. package/lib/resolvers/mutations/warehousing/invalidateToken.js +1 -3
  266. package/lib/resolvers/mutations/warehousing/invalidateToken.js.map +1 -1
  267. package/lib/resolvers/mutations/worker/allocateWork.d.ts +1 -1
  268. package/lib/resolvers/mutations/worker/allocateWork.d.ts.map +1 -1
  269. package/lib/resolvers/mutations/worker/allocateWork.js.map +1 -1
  270. package/lib/resolvers/queries/assortments/assortments.d.ts +1 -1
  271. package/lib/resolvers/queries/assortments/assortments.d.ts.map +1 -1
  272. package/lib/resolvers/queries/countries/countries.d.ts +1 -1
  273. package/lib/resolvers/queries/countries/countries.d.ts.map +1 -1
  274. package/lib/resolvers/queries/countries/countries.js.map +1 -1
  275. package/lib/resolvers/queries/currencies/currencies.d.ts +1 -1
  276. package/lib/resolvers/queries/currencies/currencies.d.ts.map +1 -1
  277. package/lib/resolvers/queries/currencies/currencies.js.map +1 -1
  278. package/lib/resolvers/queries/enrollments/enrollments.d.ts +1 -1
  279. package/lib/resolvers/queries/enrollments/enrollments.d.ts.map +1 -1
  280. package/lib/resolvers/queries/filters/filters.d.ts +1 -1
  281. package/lib/resolvers/queries/filters/filters.d.ts.map +1 -1
  282. package/lib/resolvers/queries/filters/searchAssortments.js +2 -2
  283. package/lib/resolvers/queries/filters/searchAssortments.js.map +1 -1
  284. package/lib/resolvers/queries/filters/searchProducts.js +3 -3
  285. package/lib/resolvers/queries/filters/searchProducts.js.map +1 -1
  286. package/lib/resolvers/queries/languages/languages.d.ts +1 -1
  287. package/lib/resolvers/queries/languages/languages.d.ts.map +1 -1
  288. package/lib/resolvers/queries/languages/languages.js.map +1 -1
  289. package/lib/resolvers/queries/orders/orders.d.ts +1 -1
  290. package/lib/resolvers/queries/orders/orders.d.ts.map +1 -1
  291. package/lib/resolvers/queries/orders/orders.js.map +1 -1
  292. package/lib/resolvers/queries/products/productReviews.d.ts +1 -1
  293. package/lib/resolvers/queries/products/productReviews.d.ts.map +1 -1
  294. package/lib/resolvers/queries/products/products.d.ts +1 -1
  295. package/lib/resolvers/queries/products/products.d.ts.map +1 -1
  296. package/lib/resolvers/queries/quotations/quotations.d.ts +1 -1
  297. package/lib/resolvers/queries/quotations/quotations.d.ts.map +1 -1
  298. package/lib/resolvers/queries/quotations/quotations.js.map +1 -1
  299. package/lib/resolvers/queries/users/impersonator.d.ts.map +1 -1
  300. package/lib/resolvers/queries/users/impersonator.js +1 -1
  301. package/lib/resolvers/queries/users/impersonator.js.map +1 -1
  302. package/lib/resolvers/queries/users/user.d.ts.map +1 -1
  303. package/lib/resolvers/queries/users/user.js.map +1 -1
  304. package/lib/resolvers/queries/users/users.d.ts +1 -1
  305. package/lib/resolvers/queries/users/users.d.ts.map +1 -1
  306. package/lib/resolvers/queries/worker/workQueue.d.ts +3 -3
  307. package/lib/resolvers/queries/worker/workQueue.d.ts.map +1 -1
  308. package/lib/resolvers/type/assortment/assortment-filter-types.d.ts +4 -8
  309. package/lib/resolvers/type/assortment/assortment-filter-types.d.ts.map +1 -1
  310. package/lib/resolvers/type/assortment/assortment-filter-types.js +4 -6
  311. package/lib/resolvers/type/assortment/assortment-filter-types.js.map +1 -1
  312. package/lib/resolvers/type/assortment/assortment-link-types.d.ts +2 -2
  313. package/lib/resolvers/type/assortment/assortment-link-types.d.ts.map +1 -1
  314. package/lib/resolvers/type/assortment/assortment-media-types.js +2 -2
  315. package/lib/resolvers/type/assortment/assortment-media-types.js.map +1 -1
  316. package/lib/resolvers/type/assortment/assortment-path-link-types.d.ts +2 -2
  317. package/lib/resolvers/type/assortment/assortment-path-link-types.d.ts.map +1 -1
  318. package/lib/resolvers/type/assortment/assortment-path-link-types.js +2 -2
  319. package/lib/resolvers/type/assortment/assortment-path-link-types.js.map +1 -1
  320. package/lib/resolvers/type/assortment/assortment-product-types.d.ts +2 -2
  321. package/lib/resolvers/type/assortment/assortment-product-types.d.ts.map +1 -1
  322. package/lib/resolvers/type/assortment/assortment-types.d.ts +2 -2
  323. package/lib/resolvers/type/assortment/assortment-types.d.ts.map +1 -1
  324. package/lib/resolvers/type/assortment/assortment-types.js +5 -5
  325. package/lib/resolvers/type/assortment/assortment-types.js.map +1 -1
  326. package/lib/resolvers/type/bookmark-types.d.ts.map +1 -1
  327. package/lib/resolvers/type/bookmark-types.js +2 -3
  328. package/lib/resolvers/type/bookmark-types.js.map +1 -1
  329. package/lib/resolvers/type/country-types.d.ts +1 -1
  330. package/lib/resolvers/type/country-types.d.ts.map +1 -1
  331. package/lib/resolvers/type/country-types.js +4 -7
  332. package/lib/resolvers/type/country-types.js.map +1 -1
  333. package/lib/resolvers/type/delivery-provider-types.d.ts +10 -13
  334. package/lib/resolvers/type/delivery-provider-types.d.ts.map +1 -1
  335. package/lib/resolvers/type/delivery-provider-types.js +8 -9
  336. package/lib/resolvers/type/delivery-provider-types.js.map +1 -1
  337. package/lib/resolvers/type/enrollment/enrollment-delivery-types.d.ts +2 -6
  338. package/lib/resolvers/type/enrollment/enrollment-delivery-types.d.ts.map +1 -1
  339. package/lib/resolvers/type/enrollment/enrollment-delivery-types.js +4 -3
  340. package/lib/resolvers/type/enrollment/enrollment-delivery-types.js.map +1 -1
  341. package/lib/resolvers/type/enrollment/enrollment-payment-types.d.ts +2 -6
  342. package/lib/resolvers/type/enrollment/enrollment-payment-types.d.ts.map +1 -1
  343. package/lib/resolvers/type/enrollment/enrollment-payment-types.js +2 -3
  344. package/lib/resolvers/type/enrollment/enrollment-payment-types.js.map +1 -1
  345. package/lib/resolvers/type/enrollment/enrollment-period-types.d.ts +2 -6
  346. package/lib/resolvers/type/enrollment/enrollment-period-types.d.ts.map +1 -1
  347. package/lib/resolvers/type/enrollment/enrollment-period-types.js +2 -3
  348. package/lib/resolvers/type/enrollment/enrollment-period-types.js.map +1 -1
  349. package/lib/resolvers/type/enrollment/enrollment-plan-tyes.d.ts +2 -6
  350. package/lib/resolvers/type/enrollment/enrollment-plan-tyes.d.ts.map +1 -1
  351. package/lib/resolvers/type/enrollment/enrollment-plan-tyes.js +2 -3
  352. package/lib/resolvers/type/enrollment/enrollment-plan-tyes.js.map +1 -1
  353. package/lib/resolvers/type/enrollment/enrollment-types.d.ts +15 -14
  354. package/lib/resolvers/type/enrollment/enrollment-types.d.ts.map +1 -1
  355. package/lib/resolvers/type/enrollment/enrollment-types.js +3 -6
  356. package/lib/resolvers/type/enrollment/enrollment-types.js.map +1 -1
  357. package/lib/resolvers/type/filter/filter-option-types.d.ts +6 -9
  358. package/lib/resolvers/type/filter/filter-option-types.d.ts.map +1 -1
  359. package/lib/resolvers/type/filter/filter-option-types.js +2 -3
  360. package/lib/resolvers/type/filter/filter-option-types.js.map +1 -1
  361. package/lib/resolvers/type/filter/filter-types.d.ts +16 -8
  362. package/lib/resolvers/type/filter/filter-types.d.ts.map +1 -1
  363. package/lib/resolvers/type/filter/filter-types.js +2 -3
  364. package/lib/resolvers/type/filter/filter-types.js.map +1 -1
  365. package/lib/resolvers/type/filter/loaded-filter-types.d.ts +2 -3
  366. package/lib/resolvers/type/filter/loaded-filter-types.d.ts.map +1 -1
  367. package/lib/resolvers/type/index.d.ts +273 -261
  368. package/lib/resolvers/type/index.d.ts.map +1 -1
  369. package/lib/resolvers/type/login-method-response-types.js +1 -1
  370. package/lib/resolvers/type/login-method-response-types.js.map +1 -1
  371. package/lib/resolvers/type/order/order-delivery-discount-types.d.ts +1 -1
  372. package/lib/resolvers/type/order/order-delivery-discount-types.d.ts.map +1 -1
  373. package/lib/resolvers/type/order/order-delivery-discount-types.js +1 -2
  374. package/lib/resolvers/type/order/order-delivery-discount-types.js.map +1 -1
  375. package/lib/resolvers/type/order/order-delivery-pickup-types.d.ts +13 -12
  376. package/lib/resolvers/type/order/order-delivery-pickup-types.d.ts.map +1 -1
  377. package/lib/resolvers/type/order/order-delivery-pickup-types.js +10 -14
  378. package/lib/resolvers/type/order/order-delivery-pickup-types.js.map +1 -1
  379. package/lib/resolvers/type/order/order-delivery-shipping-types.d.ts +12 -12
  380. package/lib/resolvers/type/order/order-delivery-shipping-types.d.ts.map +1 -1
  381. package/lib/resolvers/type/order/order-delivery-shipping-types.js +7 -10
  382. package/lib/resolvers/type/order/order-delivery-shipping-types.js.map +1 -1
  383. package/lib/resolvers/type/order/order-delivery-types.d.ts +1 -1
  384. package/lib/resolvers/type/order/order-delivery-types.d.ts.map +1 -1
  385. package/lib/resolvers/type/order/order-delivery-types.js +2 -3
  386. package/lib/resolvers/type/order/order-delivery-types.js.map +1 -1
  387. package/lib/resolvers/type/order/order-discount-types.d.ts +11 -13
  388. package/lib/resolvers/type/order/order-discount-types.d.ts.map +1 -1
  389. package/lib/resolvers/type/order/order-discount-types.js +9 -16
  390. package/lib/resolvers/type/order/order-discount-types.js.map +1 -1
  391. package/lib/resolvers/type/order/order-global-discount-types.d.ts +1 -1
  392. package/lib/resolvers/type/order/order-global-discount-types.d.ts.map +1 -1
  393. package/lib/resolvers/type/order/order-global-discount-types.js +1 -2
  394. package/lib/resolvers/type/order/order-global-discount-types.js.map +1 -1
  395. package/lib/resolvers/type/order/order-item-discount-types.d.ts +1 -1
  396. package/lib/resolvers/type/order/order-item-discount-types.d.ts.map +1 -1
  397. package/lib/resolvers/type/order/order-item-discount-types.js +1 -2
  398. package/lib/resolvers/type/order/order-item-discount-types.js.map +1 -1
  399. package/lib/resolvers/type/order/order-item-types.d.ts +5 -5
  400. package/lib/resolvers/type/order/order-item-types.d.ts.map +1 -1
  401. package/lib/resolvers/type/order/order-item-types.js +14 -17
  402. package/lib/resolvers/type/order/order-item-types.js.map +1 -1
  403. package/lib/resolvers/type/order/order-payment-card-types.d.ts +11 -10
  404. package/lib/resolvers/type/order/order-payment-card-types.d.ts.map +1 -1
  405. package/lib/resolvers/type/order/order-payment-card-types.js +6 -9
  406. package/lib/resolvers/type/order/order-payment-card-types.js.map +1 -1
  407. package/lib/resolvers/type/order/order-payment-discount-types.d.ts +1 -1
  408. package/lib/resolvers/type/order/order-payment-discount-types.d.ts.map +1 -1
  409. package/lib/resolvers/type/order/order-payment-discount-types.js +2 -4
  410. package/lib/resolvers/type/order/order-payment-discount-types.js.map +1 -1
  411. package/lib/resolvers/type/order/order-payment-generic-types.d.ts +11 -10
  412. package/lib/resolvers/type/order/order-payment-generic-types.d.ts.map +1 -1
  413. package/lib/resolvers/type/order/order-payment-generic-types.js +6 -9
  414. package/lib/resolvers/type/order/order-payment-generic-types.js.map +1 -1
  415. package/lib/resolvers/type/order/order-payment-invoice-types.d.ts +11 -10
  416. package/lib/resolvers/type/order/order-payment-invoice-types.d.ts.map +1 -1
  417. package/lib/resolvers/type/order/order-payment-invoice-types.js +6 -9
  418. package/lib/resolvers/type/order/order-payment-invoice-types.js.map +1 -1
  419. package/lib/resolvers/type/order/order-payment-types.d.ts +1 -1
  420. package/lib/resolvers/type/order/order-payment-types.d.ts.map +1 -1
  421. package/lib/resolvers/type/order/order-payment-types.js +2 -3
  422. package/lib/resolvers/type/order/order-payment-types.js.map +1 -1
  423. package/lib/resolvers/type/order/order-types.d.ts +6 -6
  424. package/lib/resolvers/type/order/order-types.d.ts.map +1 -1
  425. package/lib/resolvers/type/order/order-types.js +7 -15
  426. package/lib/resolvers/type/order/order-types.js.map +1 -1
  427. package/lib/resolvers/type/payment/payment-credentials-types.d.ts.map +1 -1
  428. package/lib/resolvers/type/payment/payment-credentials-types.js +6 -9
  429. package/lib/resolvers/type/payment/payment-credentials-types.js.map +1 -1
  430. package/lib/resolvers/type/payment/payment-provider-types.d.ts +2 -2
  431. package/lib/resolvers/type/payment/payment-provider-types.d.ts.map +1 -1
  432. package/lib/resolvers/type/payment/payment-provider-types.js +8 -9
  433. package/lib/resolvers/type/payment/payment-provider-types.js.map +1 -1
  434. package/lib/resolvers/type/price-types.d.ts +3 -4
  435. package/lib/resolvers/type/price-types.d.ts.map +1 -1
  436. package/lib/resolvers/type/price-types.js +2 -2
  437. package/lib/resolvers/type/price-types.js.map +1 -1
  438. package/lib/resolvers/type/product/product-assortment-path-types.d.ts +1 -1
  439. package/lib/resolvers/type/product/product-assortment-path-types.d.ts.map +1 -1
  440. package/lib/resolvers/type/product/product-bundle-types.d.ts +10 -10
  441. package/lib/resolvers/type/product/product-bundle-types.d.ts.map +1 -1
  442. package/lib/resolvers/type/product/product-catalog-price-types.d.ts.map +1 -1
  443. package/lib/resolvers/type/product/product-catalog-price-types.js +4 -6
  444. package/lib/resolvers/type/product/product-catalog-price-types.js.map +1 -1
  445. package/lib/resolvers/type/product/product-configurable-types.d.ts +20 -20
  446. package/lib/resolvers/type/product/product-configurable-types.d.ts.map +1 -1
  447. package/lib/resolvers/type/product/product-configurable-types.js +10 -12
  448. package/lib/resolvers/type/product/product-configurable-types.js.map +1 -1
  449. package/lib/resolvers/type/product/product-discount.d.ts +1 -1
  450. package/lib/resolvers/type/product/product-discount.js +1 -1
  451. package/lib/resolvers/type/product/product-discount.js.map +1 -1
  452. package/lib/resolvers/type/product/product-media-types.js +2 -2
  453. package/lib/resolvers/type/product/product-media-types.js.map +1 -1
  454. package/lib/resolvers/type/product/product-plan-types.d.ts +18 -18
  455. package/lib/resolvers/type/product/product-plan-types.d.ts.map +1 -1
  456. package/lib/resolvers/type/product/product-plan-types.js +16 -16
  457. package/lib/resolvers/type/product/product-plan-types.js.map +1 -1
  458. package/lib/resolvers/type/product/product-review-types.d.ts +1 -1
  459. package/lib/resolvers/type/product/product-review-types.d.ts.map +1 -1
  460. package/lib/resolvers/type/product/product-review-types.js +2 -3
  461. package/lib/resolvers/type/product/product-review-types.js.map +1 -1
  462. package/lib/resolvers/type/product/product-simple-types.d.ts +22 -22
  463. package/lib/resolvers/type/product/product-simple-types.d.ts.map +1 -1
  464. package/lib/resolvers/type/product/product-simple-types.js +3 -11
  465. package/lib/resolvers/type/product/product-simple-types.js.map +1 -1
  466. package/lib/resolvers/type/product/product-tokenized-types.d.ts +20 -20
  467. package/lib/resolvers/type/product/product-tokenized-types.d.ts.map +1 -1
  468. package/lib/resolvers/type/product/product-tokenized-types.js +1 -5
  469. package/lib/resolvers/type/product/product-tokenized-types.js.map +1 -1
  470. package/lib/resolvers/type/product/product-types.d.ts +9 -9
  471. package/lib/resolvers/type/product/product-types.d.ts.map +1 -1
  472. package/lib/resolvers/type/product/product-types.js +2 -5
  473. package/lib/resolvers/type/product/product-types.js.map +1 -1
  474. package/lib/resolvers/type/product/product-variation-assignment-types.d.ts +2 -2
  475. package/lib/resolvers/type/product/product-variation-assignment-types.d.ts.map +1 -1
  476. package/lib/resolvers/type/product/product-variation-assignment-types.js +1 -1
  477. package/lib/resolvers/type/product/product-variation-assignment-types.js.map +1 -1
  478. package/lib/resolvers/type/product/product-variation-assignment-vector.js +2 -2
  479. package/lib/resolvers/type/product/product-variation-assignment-vector.js.map +1 -1
  480. package/lib/resolvers/type/product/product-variation-option-types.js +3 -3
  481. package/lib/resolvers/type/product/product-variation-option-types.js.map +1 -1
  482. package/lib/resolvers/type/product/product-variation-types.d.ts +2 -2
  483. package/lib/resolvers/type/product/product-variation-types.d.ts.map +1 -1
  484. package/lib/resolvers/type/product/product-variation-types.js +3 -3
  485. package/lib/resolvers/type/product/product-variation-types.js.map +1 -1
  486. package/lib/resolvers/type/product-search-result-types.d.ts +5 -6
  487. package/lib/resolvers/type/product-search-result-types.d.ts.map +1 -1
  488. package/lib/resolvers/type/quotation-types.d.ts +8 -15
  489. package/lib/resolvers/type/quotation-types.d.ts.map +1 -1
  490. package/lib/resolvers/type/quotation-types.js +3 -6
  491. package/lib/resolvers/type/quotation-types.js.map +1 -1
  492. package/lib/resolvers/type/shop-types.d.ts +1 -1
  493. package/lib/resolvers/type/shop-types.d.ts.map +1 -1
  494. package/lib/resolvers/type/shop-types.js +4 -6
  495. package/lib/resolvers/type/shop-types.js.map +1 -1
  496. package/lib/resolvers/type/token-types.d.ts +2 -2
  497. package/lib/resolvers/type/token-types.d.ts.map +1 -1
  498. package/lib/resolvers/type/token-types.js +12 -26
  499. package/lib/resolvers/type/token-types.js.map +1 -1
  500. package/lib/resolvers/type/user-types.d.ts +22 -22
  501. package/lib/resolvers/type/user-types.d.ts.map +1 -1
  502. package/lib/resolvers/type/user-types.js +5 -16
  503. package/lib/resolvers/type/user-types.js.map +1 -1
  504. package/lib/resolvers/type/work-types.d.ts.map +1 -1
  505. package/lib/resolvers/type/work-types.js +0 -1
  506. package/lib/resolvers/type/work-types.js.map +1 -1
  507. package/lib/roles/all.d.ts.map +1 -1
  508. package/lib/roles/all.js +0 -1
  509. package/lib/roles/all.js.map +1 -1
  510. package/lib/schema/types/assortment.js +5 -5
  511. package/lib/schema/types/country.js +1 -1
  512. package/lib/schema/types/delivery.d.ts.map +1 -1
  513. package/lib/schema/types/delivery.js +6 -2
  514. package/lib/schema/types/delivery.js.map +1 -1
  515. package/lib/schema/types/filter.js +3 -3
  516. package/lib/schema/types/payment.d.ts.map +1 -1
  517. package/lib/schema/types/payment.js +6 -2
  518. package/lib/schema/types/payment.js.map +1 -1
  519. package/lib/schema/types/price.js +1 -1
  520. package/lib/schema/types/product/bundle-product.js +1 -1
  521. package/lib/schema/types/product/configurable-product.js +6 -6
  522. package/lib/schema/types/product/plan-product.js +5 -5
  523. package/lib/schema/types/product/product.js +4 -4
  524. package/lib/schema/types/product/simple-product.js +4 -4
  525. package/lib/schema/types/product/tokenized-product.js +5 -5
  526. package/lib/schema/types/warehousing.js +1 -1
  527. package/lib/utils/inputValidation.d.ts.map +1 -0
  528. package/lib/utils/inputValidation.js +51 -0
  529. package/lib/utils/inputValidation.js.map +1 -0
  530. package/package.json +12 -12
  531. package/src/context.ts +3 -3
  532. package/src/createGraphQLServer.ts +2 -2
  533. package/src/errors.ts +10 -0
  534. package/src/express/createERCMetadataMiddleware.ts +11 -5
  535. package/src/express/index.ts +2 -3
  536. package/src/fastify/ercMetadataHandler.ts +11 -5
  537. package/src/fastify/index.ts +2 -3
  538. package/src/loaders/assortmentLinkLoader.ts +32 -0
  539. package/src/loaders/assortmentLinksLoader.ts +46 -0
  540. package/src/loaders/assortmentLoader.ts +20 -0
  541. package/src/loaders/assortmentMediaTextLoader.ts +26 -0
  542. package/src/loaders/assortmentMediasLoader.ts +21 -0
  543. package/src/loaders/assortmentProductLoader.ts +19 -0
  544. package/src/loaders/assortmentProductsLoader.ts +22 -0
  545. package/src/loaders/assortmentTextLoader.ts +24 -0
  546. package/src/loaders/buildTextMap.ts +1 -1
  547. package/src/loaders/countryLoader.ts +20 -0
  548. package/src/loaders/currencyLoader.ts +20 -0
  549. package/src/loaders/deliveryProviderLoader.ts +19 -0
  550. package/src/loaders/fileLoader.ts +19 -0
  551. package/src/loaders/filterLoader.ts +20 -0
  552. package/src/loaders/filterTextLoader.ts +26 -0
  553. package/src/loaders/index.ts +48 -360
  554. package/src/loaders/languageLoader.ts +20 -0
  555. package/src/loaders/orderLoader.ts +22 -0
  556. package/src/loaders/paymentProviderLoader.ts +19 -0
  557. package/src/loaders/productLoader.ts +22 -0
  558. package/src/loaders/productLoaderBySKU.ts +22 -0
  559. package/src/loaders/productMediaTextLoader.ts +24 -0
  560. package/src/loaders/productMediasLoader.ts +21 -0
  561. package/src/loaders/productTextLoader.ts +22 -0
  562. package/src/loaders/userLoader.ts +23 -0
  563. package/src/loaders/utils.ts +35 -0
  564. package/src/locale-context.ts +16 -22
  565. package/src/resolvers/mutations/accounts/createUser.ts +4 -6
  566. package/src/resolvers/mutations/accounts/impersonate.ts +1 -1
  567. package/src/resolvers/mutations/accounts/loginAsGuest.ts +4 -6
  568. package/src/resolvers/mutations/accounts/loginWithPassword.ts +3 -3
  569. package/src/resolvers/mutations/accounts/loginWithWebAuthn.ts +3 -3
  570. package/src/resolvers/mutations/accounts/resetPassword.ts +3 -3
  571. package/src/resolvers/mutations/accounts/stopImpersonation.ts +1 -1
  572. package/src/resolvers/mutations/accounts/verifyEmail.ts +3 -3
  573. package/src/resolvers/mutations/assortments/reorderAssortmentFilters.ts +1 -1
  574. package/src/resolvers/mutations/assortments/reorderAssortmentLinks.ts +1 -1
  575. package/src/resolvers/mutations/assortments/reorderAssortmentMedia.ts +1 -1
  576. package/src/resolvers/mutations/assortments/reorderAssortmentProducts.ts +1 -1
  577. package/src/resolvers/mutations/assortments/updateAssortmentMediaTexts.ts +1 -1
  578. package/src/resolvers/mutations/assortments/updateAssortmentTexts.ts +1 -1
  579. package/src/resolvers/mutations/enrollments/createEnrollment.ts +3 -3
  580. package/src/resolvers/mutations/enrollments/updateEnrollment.ts +2 -2
  581. package/src/resolvers/mutations/filters/createFilter.ts +2 -6
  582. package/src/resolvers/mutations/filters/updateFilterTexts.ts +1 -1
  583. package/src/resolvers/mutations/orders/addCartDiscount.ts +1 -1
  584. package/src/resolvers/mutations/orders/addCartProduct.ts +1 -1
  585. package/src/resolvers/mutations/orders/addCartQuotation.ts +2 -2
  586. package/src/resolvers/mutations/orders/addMultipleCartProducts.ts +4 -4
  587. package/src/resolvers/mutations/orders/checkoutCart.ts +1 -1
  588. package/src/resolvers/mutations/orders/createCart.ts +1 -1
  589. package/src/resolvers/mutations/orders/emptyCart.ts +1 -1
  590. package/src/resolvers/mutations/orders/signPaymentProviderForCheckout.ts +1 -1
  591. package/src/resolvers/mutations/orders/updateCart.ts +1 -1
  592. package/src/resolvers/mutations/orders/updateCartItem.ts +1 -1
  593. package/src/resolvers/mutations/products/addProductAssignment.ts +50 -3
  594. package/src/resolvers/mutations/products/createProductVariation.ts +5 -1
  595. package/src/resolvers/mutations/products/removeProductAssignment.ts +1 -1
  596. package/src/resolvers/mutations/products/reorderProductMedia.ts +1 -1
  597. package/src/resolvers/mutations/products/updateProductMediaTexts.ts +1 -1
  598. package/src/resolvers/mutations/products/updateProductVariationTexts.ts +1 -1
  599. package/src/resolvers/mutations/quotations/requestQuotation.ts +4 -4
  600. package/src/resolvers/mutations/users/heartbeat.ts +3 -3
  601. package/src/resolvers/mutations/users/setRoles.ts +1 -1
  602. package/src/resolvers/mutations/users/setUserTags.ts +1 -1
  603. package/src/resolvers/mutations/warehousing/invalidateToken.ts +3 -3
  604. package/src/resolvers/mutations/worker/allocateWork.ts +1 -1
  605. package/src/resolvers/queries/assortments/assortments.ts +1 -1
  606. package/src/resolvers/queries/countries/countries.ts +1 -1
  607. package/src/resolvers/queries/currencies/currencies.ts +1 -1
  608. package/src/resolvers/queries/enrollments/enrollments.ts +1 -1
  609. package/src/resolvers/queries/filters/filters.ts +1 -1
  610. package/src/resolvers/queries/filters/searchAssortments.ts +2 -2
  611. package/src/resolvers/queries/filters/searchProducts.ts +3 -3
  612. package/src/resolvers/queries/languages/languages.ts +1 -1
  613. package/src/resolvers/queries/orders/orders.ts +1 -1
  614. package/src/resolvers/queries/products/productReviews.ts +1 -1
  615. package/src/resolvers/queries/products/products.ts +1 -1
  616. package/src/resolvers/queries/quotations/quotations.ts +1 -1
  617. package/src/resolvers/queries/users/impersonator.ts +2 -1
  618. package/src/resolvers/queries/users/user.ts +1 -0
  619. package/src/resolvers/queries/users/users.ts +1 -1
  620. package/src/resolvers/queries/worker/workQueue.ts +3 -3
  621. package/src/resolvers/type/assortment/assortment-filter-types.ts +6 -16
  622. package/src/resolvers/type/assortment/assortment-link-types.ts +2 -2
  623. package/src/resolvers/type/assortment/assortment-media-types.ts +2 -2
  624. package/src/resolvers/type/assortment/assortment-path-link-types.ts +3 -3
  625. package/src/resolvers/type/assortment/assortment-product-types.ts +2 -2
  626. package/src/resolvers/type/assortment/assortment-types.ts +6 -6
  627. package/src/resolvers/type/bookmark-types.ts +2 -3
  628. package/src/resolvers/type/country-types.ts +5 -8
  629. package/src/resolvers/type/delivery-provider-types.ts +26 -47
  630. package/src/resolvers/type/enrollment/enrollment-delivery-types.ts +5 -11
  631. package/src/resolvers/type/enrollment/enrollment-payment-types.ts +3 -11
  632. package/src/resolvers/type/enrollment/enrollment-period-types.ts +3 -11
  633. package/src/resolvers/type/enrollment/enrollment-plan-tyes.ts +3 -11
  634. package/src/resolvers/type/enrollment/enrollment-types.ts +10 -25
  635. package/src/resolvers/type/filter/filter-option-types.ts +10 -15
  636. package/src/resolvers/type/filter/filter-types.ts +5 -13
  637. package/src/resolvers/type/filter/loaded-filter-types.ts +2 -2
  638. package/src/resolvers/type/login-method-response-types.ts +1 -1
  639. package/src/resolvers/type/order/order-delivery-discount-types.ts +1 -2
  640. package/src/resolvers/type/order/order-delivery-pickup-types.ts +12 -28
  641. package/src/resolvers/type/order/order-delivery-shipping-types.ts +9 -23
  642. package/src/resolvers/type/order/order-delivery-types.ts +2 -3
  643. package/src/resolvers/type/order/order-discount-types.ts +12 -39
  644. package/src/resolvers/type/order/order-global-discount-types.ts +1 -2
  645. package/src/resolvers/type/order/order-item-discount-types.ts +1 -2
  646. package/src/resolvers/type/order/order-item-types.ts +19 -27
  647. package/src/resolvers/type/order/order-payment-card-types.ts +8 -21
  648. package/src/resolvers/type/order/order-payment-discount-types.ts +1 -2
  649. package/src/resolvers/type/order/order-payment-generic-types.ts +8 -20
  650. package/src/resolvers/type/order/order-payment-invoice-types.ts +8 -20
  651. package/src/resolvers/type/order/order-payment-types.ts +2 -3
  652. package/src/resolvers/type/order/order-types.ts +10 -22
  653. package/src/resolvers/type/payment/payment-credentials-types.ts +6 -10
  654. package/src/resolvers/type/payment/payment-provider-types.ts +9 -10
  655. package/src/resolvers/type/price-types.ts +4 -4
  656. package/src/resolvers/type/product/product-assortment-path-types.ts +1 -1
  657. package/src/resolvers/type/product/product-bundle-types.ts +1 -1
  658. package/src/resolvers/type/product/product-catalog-price-types.ts +4 -6
  659. package/src/resolvers/type/product/product-configurable-types.ts +20 -21
  660. package/src/resolvers/type/product/product-discount.ts +1 -1
  661. package/src/resolvers/type/product/product-media-types.ts +2 -2
  662. package/src/resolvers/type/product/product-plan-types.ts +22 -22
  663. package/src/resolvers/type/product/product-review-types.ts +3 -4
  664. package/src/resolvers/type/product/product-simple-types.ts +7 -19
  665. package/src/resolvers/type/product/product-tokenized-types.ts +3 -10
  666. package/src/resolvers/type/product/product-types.ts +10 -13
  667. package/src/resolvers/type/product/product-variation-assignment-types.ts +2 -2
  668. package/src/resolvers/type/product/product-variation-assignment-vector.ts +2 -2
  669. package/src/resolvers/type/product/product-variation-option-types.ts +3 -3
  670. package/src/resolvers/type/product/product-variation-types.ts +5 -5
  671. package/src/resolvers/type/product-search-result-types.ts +5 -5
  672. package/src/resolvers/type/quotation-types.ts +11 -25
  673. package/src/resolvers/type/shop-types.ts +5 -7
  674. package/src/resolvers/type/token-types.ts +15 -32
  675. package/src/resolvers/type/user-types.ts +27 -39
  676. package/src/resolvers/type/work-types.ts +0 -2
  677. package/src/roles/all.ts +0 -1
  678. package/src/schema/types/assortment.ts +5 -5
  679. package/src/schema/types/country.ts +1 -1
  680. package/src/schema/types/delivery.ts +6 -2
  681. package/src/schema/types/filter.ts +3 -3
  682. package/src/schema/types/payment.ts +6 -2
  683. package/src/schema/types/price.ts +1 -1
  684. package/src/schema/types/product/bundle-product.ts +1 -1
  685. package/src/schema/types/product/configurable-product.ts +6 -6
  686. package/src/schema/types/product/plan-product.ts +5 -5
  687. package/src/schema/types/product/product.ts +4 -4
  688. package/src/schema/types/product/simple-product.ts +4 -4
  689. package/src/schema/types/product/tokenized-product.ts +5 -5
  690. package/src/schema/types/warehousing.ts +1 -1
@@ -10,15 +10,14 @@ export default async function loginAsGuest(root, _, context) {
10
10
  password: null,
11
11
  initialPassword: true,
12
12
  }, { skipMessaging: true });
13
- let user = await context.modules.users.findUserById(guestUserId);
14
- user = await context.modules.users.updateHeartbeat(user._id, {
13
+ const user = await context.modules.users.updateHeartbeat(guestUserId, {
15
14
  remoteAddress: context.remoteAddress,
16
15
  remotePort: context.remotePort,
17
16
  userAgent: context.getHeader('user-agent'),
18
- locale: context.localeContext.baseName,
19
- countryCode: context.countryContext,
17
+ locale: context.locale.baseName,
18
+ countryCode: context.countryCode,
20
19
  });
21
- await context.services.orders.nextUserCart({ user, countryCode: context.countryContext });
20
+ await context.services.orders.nextUserCart({ user, countryCode: context.countryCode });
22
21
  return context.login(user);
23
22
  }
24
23
  //# sourceMappingURL=loginAsGuest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loginAsGuest.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/accounts/loginAsGuest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,OAAO,MAAM,SAAS,CAAC;AAE9B,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,YAAY,CAAC,IAAW,EAAE,CAAM,EAAE,OAAgB;IAC9E,GAAG,CAAC,uBAAuB,CAAC,CAAC;IAE7B,MAAM,SAAS,GAAG,GAAG,OAAO,CAAC,MAAM,EAAE,IAAI,kBAAkB,CAAC,CAAC,CAAC,EAAE,CAAC;IACjE,MAAM,WAAW,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,UAAU,CACxD;QACE,KAAK,EAAE,GAAG,SAAS,kBAAkB;QACrC,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,IAAI;QACd,eAAe,EAAE,IAAI;KACtB,EACD,EAAE,aAAa,EAAE,IAAI,EAAE,CACxB,CAAC;IAEF,IAAI,IAAI,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IAEjE,IAAI,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE;QAC3D,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,UA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,OAAO,CAAC,UAAU;QAC9B,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC;QAC1C,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ;QAC/B,WAAW,EAAE,OAAO,CAAC,WAAW;KACjC,CAAC,CAAC;IAEH,MAAM,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAEvF,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC"}
@@ -21,13 +21,13 @@ export default async function loginWithPassword(root, params, context) {
21
21
  remoteAddress: context.remoteAddress,
22
22
  remotePort: context.remotePort,
23
23
  userAgent: context.getHeader('user-agent'),
24
- locale: context.localeContext.baseName,
25
- countryCode: context.countryContext,
24
+ locale: context.locale.baseName,
25
+ countryCode: context.countryCode,
26
26
  });
27
27
  if (context.userId) {
28
28
  await context.services.users.migrateUserData(context.userId, user._id);
29
29
  }
30
- await context.services.orders.nextUserCart({ user, countryCode: context.countryContext });
30
+ await context.services.orders.nextUserCart({ user, countryCode: context.countryCode });
31
31
  return context.login(user);
32
32
  }
33
33
  //# sourceMappingURL=loginWithPassword.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loginWithPassword.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/accounts/loginWithPassword.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,uBAAuB,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG3F,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,iBAAiB,CAC7C,IAAW,EACX,MAIC,EACD,OAAgB;IAEhB,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAC7C,GAAG,CAAC,4BAA4B,EAAE,EAAE,QAAQ,EAA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QAAQ,EAAE,QAAQ;QACvB,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEjF,IAAI,CAAC,QAAQ;QAAE,MAAM,IAAI,uBAAuB,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC,CAAC;IAEtE,IAAI,IAAI,CAAC,KAAK,EAAE,CAAC;QACf,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE;QAC3D,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC;QAC1C,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ;QAC/B,WAAW,EAAE,OAAO,CAAC,WAAW;KACjC,CAAC,CAAC;IAEH,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QACnB,MAAM,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACzE,CAAC;IAED,MAAM,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAEvF,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC"}
@@ -13,13 +13,13 @@ export default async function loginWithWebAuthn(root, params, context) {
13
13
  remoteAddress: context.remoteAddress,
14
14
  remotePort: context.remotePort,
15
15
  userAgent: context.getHeader('user-agent'),
16
- locale: context.localeContext.baseName,
17
- countryCode: context.countryContext,
16
+ locale: context.locale.baseName,
17
+ countryCode: context.countryCode,
18
18
  });
19
19
  if (context.userId) {
20
20
  await context.services.users.migrateUserData(context.userId, user._id);
21
21
  }
22
- await context.services.orders.nextUserCart({ user, countryCode: context.countryContext });
22
+ await context.services.orders.nextUserCart({ user, countryCode: context.countryCode });
23
23
  return context.login(user);
24
24
  }
25
25
  //# sourceMappingURL=loginWithWebAuthn.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loginWithWebAuthn.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/accounts/loginWithWebAuthn.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAE9E,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,iBAAiB,CAC7C,IAAW,EACX,MAEC,EACD,OAAgB;IAEhB,GAAG,CAAC,4BAA4B,CAAC,CAAC;IAElC,MAAM,QAAQ,GACZ,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,4BAA4B,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;IAEpG,IAAI,IAAI,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IACpE,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,iBAAiB,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IAErD,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,uBAAuB,CAC/E,IAAI,CAAC,QAAQ,EAAE,QAAQ,EACvB,IAAI,CAAC,QAAQ,EACb,MAAM,CAAC,4BAA4B,CACpC,CAAC;IAEF,IAAI,CAAC,YAAY;QAAE,MAAM,IAAI,qBAAqB,EAAE,CA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OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IACpE,IAAI,CAAC,IAAI;QAAE,MAAM,IAAI,iBAAiB,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;IAErD,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,uBAAuB,CAC/E,IAAI,CAAC,QAAQ,EAAE,QAAQ,EACvB,IAAI,CAAC,QAAQ,EACb,MAAM,CAAC,4BAA4B,CACpC,CAAC;IAEF,IAAI,CAAC,YAAY;QAAE,MAAM,IAAI,qBAAqB,EAAE,CAAC;IAErD,IAAI,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE;QAC3D,aAAa,EAAE,OAAO,CAAC,aAAa;QACpC,UAAU,EAAE,OAAO,CAAC,UAAU;QAC9B,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC;QAC1C,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ;QAC/B,WAAW,EAAE,OAAO,CAAC,WAAW;KACjC,CAAC,CAAC;IAEH,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;QACnB,MAAM,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACzE,CAAC;IAED,MAAM,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAEvF,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC"}
@@ -11,13 +11,13 @@ export default async function resetPassword(root, params, context) {
11
11
  remoteAddress: context.remoteAddress,
12
12
  remotePort: context.remotePort,
13
13
  userAgent: context.getHeader('user-agent'),
14
- locale: context.localeContext.baseName,
15
- countryCode: context.countryContext,
14
+ locale: context.locale.baseName,
15
+ countryCode: context.countryCode,
16
16
  });
17
17
  if (context.userId) {
18
18
  await context.services.users.migrateUserData(context.userId, user._id);
19
19
  }
20
- await context.services.orders.nextUserCart({ user, countryCode: context.countryContext });
20
+ await context.services.orders.nextUserCart({ user, countryCode: context.countryCode });
21
21
  return context.login(user);
22
22
  }
23
23
  catch (e) {
@@ -1 +1 @@
1
- {"version":3,"file":"resetPassword.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/accounts/resetPassword.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAGlF,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,aAAa,CACzC,IAAW,EACX,MAA8C,EAC9C,OAAgB;IAEhB,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAEpC,GAAG,CAAC,wBAAwB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAE1C,IAAI,CAAC;QACH,IAAI,IAAI,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QAC/E,IAAI,CAAC,IAAI;YAAE,MAAM,IAAI,sBAAsB,CAAC,EAAE,CAAC,CAAC;QAEhD,IAAI,GAAG,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE;YAC3D,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC;YAC1C,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,QAAQ;YACtC,WAAW,EAAE,OAAO,CAAC,cAAc;SACp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CAAC,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE;YAC3D,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,UAAU,EAAE,OAAO,CAAC,UAAU;YAC9B,SAAS,EAAE,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC;YAC1C,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,QAAQ;YAC/B,WAAW,EAAE,OAAO,CAAC,WAAW;SACjC,CAAC,CAAC;QAEH,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YACnB,MAAM,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;QACzE,CAAC;QAED,MAAM,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;QAEvF,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,IAAI,CAAC,CAAC,KAAK,KAAK,kBAAkB;YAAE,MAAM,IAAI,oBAAoB,CAAC,EAAE,CAAC,CAAC;;YAClE,MAAM,CAAC,CAAC;IACf,CAAC;AACH,CAAC"}
@@ -11,7 +11,7 @@ export default async function stopImpersonation(root, _, context) {
11
11
  await context.logout();
12
12
  await context.services.orders.nextUserCart({
13
13
  user: impersonator,
14
- countryCode: context.countryContext,
14
+ countryCode: context.countryCode,
15
15
  });
16
16
  return context.login(impersonator);
17
17
  }
@@ -1 +1 @@
1
- {"version":3,"file":"stopImpersonation.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/accounts/stopImpersonation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,MAAM,CAAC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IAEtE,IAAI,CAAC,YAAY;QAAE,MAAM,IAAI,iBAAiB,CAAC,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC,CAAC;IAE3E,MAAM,OAAO,CAAC,MAAM,EAAE,CAAC;IAEvB,MAAM,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,CAAC;QACzC,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,OAAO,CAAC,WAAW;KACjC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;AACrC,CAAC"}
@@ -12,13 +12,13 @@ export default async function verifyEmail(root, { token }, context) {
12
12
  remoteAddress: context.remoteAddress,
13
13
  remotePort: context.remotePort,
14
14
  userAgent: context.getHeader('user-agent'),
15
- locale: context.localeContext.baseName,
16
- countryCode: context.countryContext,
15
+ locale: context.locale.baseName,
16
+ countryCode: context.countryCode,
17
17
  });
18
18
  if (context.userId) {
19
19
  await context.services.users.migrateUserData(context.userId, user._id);
20
20
  }
21
- await context.services.orders.nextUserCart({ user, countryCode: context.countryContext });
21
+ await context.services.orders.nextUserCart({ user, countryCode: context.countryCode });
22
22
  return context.login(user);
23
23
  }
24
24
  //# sourceMappingURL=verifyEmail.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"verifyEmail.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/accounts/verifyEmail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,kCAAkC,EAAE,MAAM,oBAAoB,CAAC;AAGxE,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,WAAW,CAAC,IAAW,EAAE,EAAE,KAAK,EAAkB,EAAE,OAAgB;IAChG,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAEpC,GAAG,CAAC,wBAAwB,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAElD,MAAM,eAAe,GAA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
2
2
  export default function reorderAssortmentFilters(root: never, params: {
3
- sortKeys: Array<{
3
+ sortKeys: {
4
4
  assortmentFilterId: string;
5
5
  sortKey: number;
6
- }>;
6
+ }[];
7
7
  }, { modules, userId }: Context): Promise<import("@unchainedshop/core-assortments").AssortmentFilter[]>;
8
8
  //# sourceMappingURL=reorderAssortmentFilters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reorderAssortmentFilters.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentFilters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,wBAAwB,CACpD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC;QAAE,kBAAkB,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,EAC5E,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,yEAO7B"}
1
+ {"version":3,"file":"reorderAssortmentFilters.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentFilters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,wBAAwB,CACpD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,QAAQ,EAAE;QAAE,kBAAkB,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,EACvE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,yEAO7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"reorderAssortmentFilters.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentFilters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAG5C,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,wBAAwB,CACpD,IAAW,EACX,MAA4E,EAC5E,EAAE,OAAO,EAAE,MAAM,EAAW;IAE5B,GAAG,CAAC,mCAAmC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAErD,OAAO,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,iBAAiB,CAAC;QACnD,QAAQ,EAAE,MAAM,CAAC,QAAQ;KAC1B,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"reorderAssortmentFilters.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentFilters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAG5C,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,wBAAwB,CACpD,IAAW,EACX,MAAuE,EACvE,EAAE,OAAO,EAAE,MAAM,EAAW;IAE5B,GAAG,CAAC,mCAAmC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAErD,OAAO,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,iBAAiB,CAAC;QACnD,QAAQ,EAAE,MAAM,CAAC,QAAQ;KAC1B,CAAC,CAAC;AACL,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { Context } from '../../../context.js';
2
2
  export default function reorderAssortmentLinks(root: never, params: {
3
- sortKeys: Array<{
3
+ sortKeys: {
4
4
  assortmentLinkId: string;
5
5
  sortKey: number;
6
- }>;
6
+ }[];
7
7
  }, { modules, userId }: Context): Promise<import("@unchainedshop/core-assortments").AssortmentLink[]>;
8
8
  //# sourceMappingURL=reorderAssortmentLinks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reorderAssortmentLinks.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentLinks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,sBAAsB,CAClD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC;QAAE,gBAAgB,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,EAC1E,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,uEAM7B"}
1
+ {"version":3,"file":"reorderAssortmentLinks.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentLinks.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,sBAAsB,CAClD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,QAAQ,EAAE;QAAE,gBAAgB,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,EACrE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,uEAM7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"reorderAssortmentLinks.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentLinks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAG5C,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,sBAAsB,CAClD,IAAW,EACX,MAA0E,EAC1E,EAAE,OAAO,EAAE,MAAM,EAAW;IAE5B,GAAG,CAAC,iCAAiC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnD,OAAO,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,iBAAiB,CAAC;QACjD,QAAQ,EAAE,MAAM,CAAC,QAAQ;KAC1B,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"reorderAssortmentLinks.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentLinks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAG5C,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,sBAAsB,CAClD,IAAW,EACX,MAAqE,EACrE,EAAE,OAAO,EAAE,MAAM,EAAW;IAE5B,GAAG,CAAC,iCAAiC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnD,OAAO,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,iBAAiB,CAAC;QACjD,QAAQ,EAAE,MAAM,CAAC,QAAQ;KAC1B,CAAC,CAAC;AACL,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { Context } from '../../../context.js';
2
2
  export default function reorderAssortmentMedia(root: never, params: {
3
- sortKeys: Array<{
3
+ sortKeys: {
4
4
  assortmentMediaId: string;
5
5
  sortKey: number;
6
- }>;
6
+ }[];
7
7
  }, { modules, userId }: Context): Promise<import("@unchainedshop/core-assortments").AssortmentMediaType[]>;
8
8
  //# sourceMappingURL=reorderAssortmentMedia.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reorderAssortmentMedia.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentMedia.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,sBAAsB,CAClD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC;QAAE,iBAAiB,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,EAC3E,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,4EAM7B"}
1
+ {"version":3,"file":"reorderAssortmentMedia.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentMedia.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,sBAAsB,CAClD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,QAAQ,EAAE;QAAE,iBAAiB,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,EACtE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,4EAM7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"reorderAssortmentMedia.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentMedia.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAG5C,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,sBAAsB,CAClD,IAAW,EACX,MAA2E,EAC3E,EAAE,OAAO,EAAE,MAAM,EAAW;IAE5B,GAAG,CAAC,iCAAiC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnD,OAAO,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,iBAAiB,CAAC;QACjD,QAAQ,EAAE,MAAM,CAAC,QAAQ;KAC1B,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"reorderAssortmentMedia.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentMedia.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAG5C,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,sBAAsB,CAClD,IAAW,EACX,MAAsE,EACtE,EAAE,OAAO,EAAE,MAAM,EAAW;IAE5B,GAAG,CAAC,iCAAiC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACnD,OAAO,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,iBAAiB,CAAC;QACjD,QAAQ,EAAE,MAAM,CAAC,QAAQ;KAC1B,CAAC,CAAC;AACL,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { Context } from '../../../context.js';
2
2
  export default function reorderAssortmentProducts(root: never, params: {
3
- sortKeys: Array<{
3
+ sortKeys: {
4
4
  assortmentProductId: string;
5
5
  sortKey: number;
6
- }>;
6
+ }[];
7
7
  }, { modules, userId }: Context): Promise<import("@unchainedshop/core-assortments").AssortmentProduct[]>;
8
8
  //# sourceMappingURL=reorderAssortmentProducts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"reorderAssortmentProducts.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentProducts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,yBAAyB,CACrD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,QAAQ,EAAE,KAAK,CAAC;QAAE,mBAAmB,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;CAAE,EAC7E,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,0EAM7B"}
1
+ {"version":3,"file":"reorderAssortmentProducts.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentProducts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,yBAAyB,CACrD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IAAE,QAAQ,EAAE;QAAE,mBAAmB,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAA;CAAE,EACxE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,0EAM7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"reorderAssortmentProducts.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAG5C,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,yBAAyB,CACrD,IAAW,EACX,MAA6E,EAC7E,EAAE,OAAO,EAAE,MAAM,EAAW;IAE5B,GAAG,CAAC,oCAAoC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACtD,OAAO,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,iBAAiB,CAAC;QACpD,QAAQ,EAAE,MAAM,CAAC,QAAQ;KAC1B,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"reorderAssortmentProducts.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/reorderAssortmentProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAG5C,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,yBAAyB,CACrD,IAAW,EACX,MAAwE,EACxE,EAAE,OAAO,EAAE,MAAM,EAAW;IAE5B,GAAG,CAAC,oCAAoC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACtD,OAAO,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,iBAAiB,CAAC;QACpD,QAAQ,EAAE,MAAM,CAAC,QAAQ;KAC1B,CAAC,CAAC;AACL,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { AssortmentMediaText } from '@unchainedshop/core-assortments';
2
2
  import { Context } from '../../../context.js';
3
3
  export default function updateAssortmentMediaTexts(root: never, { texts, assortmentMediaId }: {
4
- texts: Array<AssortmentMediaText>;
4
+ texts: AssortmentMediaText[];
5
5
  assortmentMediaId: string;
6
6
  }, { modules, userId }: Context): Promise<AssortmentMediaText[]>;
7
7
  //# sourceMappingURL=updateAssortmentMediaTexts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateAssortmentMediaTexts.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/updateAssortmentMediaTexts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAGtE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,0BAA0B,CACtD,IAAI,EAAE,KAAK,EACX,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE;IAAE,KAAK,EAAE,KAAK,CAAC,mBAAmB,CAAC,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,EAC9F,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,kCAe7B"}
1
+ {"version":3,"file":"updateAssortmentMediaTexts.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/updateAssortmentMediaTexts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAGtE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,0BAA0B,CACtD,IAAI,EAAE,KAAK,EACX,EAAE,KAAK,EAAE,iBAAiB,EAAE,EAAE;IAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAAC,iBAAiB,EAAE,MAAM,CAAA;CAAE,EACzF,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,kCAe7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"updateAssortmentMediaTexts.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/updateAssortmentMediaTexts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGlF,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,0BAA0B,CACtD,IAAW,EACX,EAAE,KAAK,EAAE,iBAAiB,EAAoE,EAC9F,EAAE,OAAO,EAAE,MAAM,EAAW;IAE5B,GAAG,CAAC,uCAAuC,iBAAiB,EAAE,EAAE;QAC9D,MAAM;KACP,CAAC,CAAC;IAEH,IAAI,CAAC,iBAAiB;QAAE,MAAM,IAAI,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAExE,MAAM,eAAe,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,mBAAmB,CAAC;QAC1E,iBAAiB;KAClB,CAAC,CAAC;IAEH,IAAI,CAAC,eAAe;QAAE,MAAM,IAAI,4BAA4B,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAEpF,OAAO,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;AACpF,CAAC"}
1
+ {"version":3,"file":"updateAssortmentMediaTexts.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/updateAssortmentMediaTexts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAGlF,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,0BAA0B,CACtD,IAAW,EACX,EAAE,KAAK,EAAE,iBAAiB,EAA+D,EACzF,EAAE,OAAO,EAAE,MAAM,EAAW;IAE5B,GAAG,CAAC,uCAAuC,iBAAiB,EAAE,EAAE;QAC9D,MAAM;KACP,CAAC,CAAC;IAEH,IAAI,CAAC,iBAAiB;QAAE,MAAM,IAAI,cAAc,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAExE,MAAM,eAAe,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,mBAAmB,CAAC;QAC1E,iBAAiB;KAClB,CAAC,CAAC;IAEH,IAAI,CAAC,eAAe;QAAE,MAAM,IAAI,4BAA4B,CAAC,EAAE,iBAAiB,EAAE,CAAC,CAAC;IAEpF,OAAO,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,KAAK,CAAC,CAAC;AACpF,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { AssortmentText } from '@unchainedshop/core-assortments';
2
2
  import { Context } from '../../../context.js';
3
3
  export default function updateAssortmentTexts(root: never, { texts, assortmentId }: {
4
- texts: Array<AssortmentText>;
4
+ texts: AssortmentText[];
5
5
  assortmentId: string;
6
6
  }, { modules, userId }: Context): Promise<AssortmentText[]>;
7
7
  //# sourceMappingURL=updateAssortmentTexts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateAssortmentTexts.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/updateAssortmentTexts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,qBAAqB,CACjD,IAAI,EAAE,KAAK,EACX,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE;IAAE,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,EAC/E,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,6BAU7B"}
1
+ {"version":3,"file":"updateAssortmentTexts.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/updateAssortmentTexts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAEjE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,qBAAqB,CACjD,IAAI,EAAE,KAAK,EACX,EAAE,KAAK,EAAE,YAAY,EAAE,EAAE;IAAE,KAAK,EAAE,cAAc,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAE,EAC1E,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,6BAU7B"}
@@ -1 +1 @@
1
- {"version":3,"file":"updateAssortmentTexts.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/assortments/updateAssortmentTexts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAG7E,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AAC;IAEtD,OAAO,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,WAAW,CAAC,YAAY,EAAE,KAAK,CAAC,CAAC;AACpE,CAAC"}
@@ -2,7 +2,7 @@ import { log } from '@unchainedshop/logger';
2
2
  import { ProductStatus, ProductTypes } from '@unchainedshop/core-products';
3
3
  import { ProductNotFoundError, ProductWrongStatusError, InvalidIdError, ProductWrongTypeError, } from '../../../errors.js';
4
4
  export default async function createEnrollment(root, { contact, plan, billingAddress, payment, delivery, meta }, context) {
5
- const { countryContext, currencyContext, modules, services, userId } = context;
5
+ const { countryCode, currencyCode, modules, services, userId } = context;
6
6
  log('mutation createEnrollment', { userId });
7
7
  const { configuration, quantity, productId } = plan;
8
8
  if (!productId)
@@ -22,8 +22,8 @@ export default async function createEnrollment(root, { contact, plan, billingAdd
22
22
  billingAddress,
23
23
  configuration,
24
24
  contact,
25
- countryCode: countryContext,
26
- currencyCode: currencyContext,
25
+ countryCode,
26
+ currencyCode,
27
27
  delivery,
28
28
  meta,
29
29
  payment,
@@ -1 +1 @@
1
- {"version":3,"file":"createEnrollment.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/enrollments/createEnrollment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EACL,oBAAoB,EACpB,uBAAuB,EACvB,cAAc,EACd,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,gBAAgB,CAC5C,IAAW,EACX,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,EAC1D,OAAgB;IAEhB,MAAM,EAAE,cAAc,EAAE,eAAe,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAE/E,GAAG,C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AAC,CAAC;IAEvG,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC;QAClD,cAAc;QACd,aAAa;QACb,OAAO;QACP,WAAW;QACX,YAAY;QACZ,QAAQ;QACR,IAAI;QACJ,OAAO;QACP,SAAS;QACT,QAAQ;QACR,MAAM;KACP,CAAC,CAAC;IAEH,OAAO,MAAM,QAAQ,CAAC,WAAW,CAAC,oBAAoB,CAAC,UAAU,EAAE;QACjE,qBAAqB,EAAE,UAAU,CAAC,qBAAqB;QACvD,MAAM,EAAE,gBAAgB;KACzB,CAAC,CAAC;AACL,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { Context } from '../../../context.js';
2
2
  import { EnrollmentPlan, Enrollment } from '@unchainedshop/core-enrollments';
3
3
  import { Address, Contact } from '@unchainedshop/mongodb';
4
- type UpdateEnrollmentParams = {
4
+ interface UpdateEnrollmentParams {
5
5
  enrollmentId: string;
6
6
  contact?: Contact;
7
7
  plan: EnrollmentPlan;
@@ -9,7 +9,7 @@ type UpdateEnrollmentParams = {
9
9
  payment?: Enrollment['payment'];
10
10
  delivery?: Enrollment['delivery'];
11
11
  meta?: any;
12
- };
12
+ }
13
13
  export default function updateEnrollment(root: never, params: UpdateEnrollmentParams, context: Context): Promise<Enrollment>;
14
14
  export {};
15
15
  //# sourceMappingURL=updateEnrollment.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"updateEnrollment.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/enrollments/updateEnrollment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAE1D,KAAK,sBAAsB,GAAG;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,cAAc,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;IAClC,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ,CAAC;AACF,wBAA8B,gBAAgB,CAC5C,IAAI,EAAE,KAAK,EACX,MAAM,EAAE,sBAAsB,EAC9B,OAAO,EAAE,OAAO,uBAoDjB"}
1
+ {"version":3,"file":"updateEnrollment.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/enrollments/updateEnrollment.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAE7E,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAE1D,UAAU,sBAAsB;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,cAAc,CAAC;IACrB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAChC,QAAQ,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;IAClC,IAAI,CAAC,EAAE,GAAG,CAAC;CACZ;AACD,wBAA8B,gBAAgB,CAC5C,IAAI,EAAE,KAAK,EACX,MAAM,EAAE,sBAAsB,EAC9B,OAAO,EAAE,OAAO,uBAoDjB"}
@@ -1 +1 @@
1
- {"version":3,"file":"createFilter.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/filters/createFilter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAkB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtE,wBAA8B,YAAY,CACxC,IAAI,EAAE,KAAK,EACX,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,eAAe,EAAE,CAAA;CAAE,EAC/D,OAAO,EAAE,OAAO,mBAiBjB"}
1
+ {"version":3,"file":"createFilter.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/filters/createFilter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,6BAA6B,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAkB,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtE,wBAA8B,YAAY,CACxC,IAAI,EAAE,KAAK,EACX,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,eAAe,EAAE,CAAA;CAAE,EAC/D,OAAO,EAAE,OAAO,mBAajB"}
@@ -1,13 +1,9 @@
1
1
  import { log } from '@unchainedshop/logger';
2
2
  import { FilterDirector } from '@unchainedshop/core';
3
3
  export default async function createFilter(root, { filter, texts }, context) {
4
- const { modules, localeContext, userId } = context;
4
+ const { modules, userId } = context;
5
5
  log('mutation createFilter', { userId });
6
- const newFilter = await modules.filters.create({
7
- ...filter,
8
- title: '',
9
- locale: localeContext.language,
10
- });
6
+ const newFilter = await modules.filters.create(filter);
11
7
  await FilterDirector.invalidateProductIdCache(newFilter, context);
12
8
  if (texts) {
13
9
  await modules.filters.texts.updateTexts({ filterId: newFilter._id }, texts);
@@ -1 +1 @@
1
- {"version":3,"file":"createFilter.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/filters/createFilter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAG5C,OAAO,EAAE,cAAc,EAAmB,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,cAAc,CAAC,wBAAwB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAElE,IAAI,KAAK,EAAE,CAAC;QACV,MAAM,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,CAAC;IAC9E,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -1,10 +1,10 @@
1
1
  import { Context } from '../../../context.js';
2
2
  export default function updateFilterTexts(root: never, params: {
3
- texts: Array<{
3
+ texts: {
4
4
  locale: string;
5
5
  title?: string;
6
6
  subtitle?: string;
7
- }>;
7
+ }[];
8
8
  filterId: string;
9
9
  filterOptionValue?: string;
10
10
  }, { modules, userId }: Context): Promise<import("@unchainedshop/core-filters").FilterText[]>;
@@ -1 +1 @@
1
- {"version":3,"file":"updateFilterTexts.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/filters/updateFilterTexts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,iBAAiB,CAC7C,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IACN,KAAK,EAAE,KAAK,CAAC;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpE,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,EACD,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,+DAc7B"}
1
+ {"version":3,"file":"updateFilterTexts.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/filters/updateFilterTexts.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,wBAA8B,iBAAiB,CAC7C,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IACN,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IAC/D,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,EACD,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,+DAc7B"}
@@ -6,7 +6,7 @@ export default async function addCartDiscount(root, { orderId, code }, context)
6
6
  const order = await services.orders.findOrInitCart({
7
7
  orderId,
8
8
  user,
9
- countryCode: context.countryContext,
9
+ countryCode: context.countryCode,
10
10
  });
11
11
  if (!order)
12
12
  throw new OrderNotFoundError({ orderId });
@@ -1 +1 @@
1
- {"version":3,"file":"addCartDiscount.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/addCartDiscount.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EACL,qBAAqB,EACrB,oCAAoC,EACpC,8BAA8B,EAC9B,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,eAAe,CAC3C,IAAW,EACX,EAAE,OAAO,EAAE,IAAI,EAAsC,EACrD,OAAgB;IAEhB,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAEpD,GAAG,CAAC,4BAA4B,IAAI,IAAI,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAExE,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC;QACjD,OAAO;QACP,IAAI;QACJ,WAAW,EAAE,OAAO,CAAC,cAAc;KACpC,CAAC,CAAC;IACH,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,kBAAkB,CAAC,EAA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EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,CAAC;IAExE,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC;QACjD,OAAO;QACP,IAAI;QACJ,WAAW,EAAE,OAAO,CAAC,WAAW;KACjC,CAAC,CAAC;IACH,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,kBAAkB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAEtD,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,gDAAgD;IAChD,IAAI,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,kBAAkB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC;QACjF,MAAM,IAAI,oCAAoC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;IAE/E,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,yBAAyB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAClF,IAAI,CAAC,QAAQ;QAAE,MAAM,IAAI,8BAA8B,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAElE,MAAM,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnD,OAAO,QAAQ,CAAC;AAClB,CAAC"}
@@ -14,7 +14,7 @@ export default async function addCartProduct(root, { orderId, productId: origina
14
14
  const order = await services.orders.findOrInitCart({
15
15
  orderId,
16
16
  user,
17
- countryCode: context.countryContext,
17
+ countryCode: context.countryCode,
18
18
  });
19
19
  if (!order)
20
20
  throw new OrderNotFoundError({ orderId });
@@ -1 +1 @@
1
- {"version":3,"file":"addCartProduct.js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AC,cAAc;KACpC,CAAC,CAAC;IACH,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,kBAAkB,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAEtD,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,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,eAAe,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;IAEnG,gCAAgC;IAChC,MAAM,cAAc,CAAC,qBAAqB,CACxC;QACE,KAAK;QACL,OAAO;QACP,aAAa;QACb,YAAY,EAAE,QAAQ;KACvB,EACD,OAAO,CACR,CAAC;IAEF,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;QAClE,QAAQ;QACR,aAAa;QACb,SAAS,EAAE,OAAO,CAAC,GAAG;QACtB,iBAAiB;QACjB,OAAO,EAAE,KAAK,CAAC,GAAG;KACnB,CAAC,CAAC;IAEH,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,aAAa,CAAC,GAAG,EAAE,CAAC,CAAC;AACnF,CAAC"}
1
+ {"version":3,"file":"addCartProduct.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/addCartProduct.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,cAAc,EACd,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,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AE7F,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,uBAAuB,CAAC,eAAe,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;IAEnG,gCAAgC;IAChC,MAAM,cAAc,CAAC,qBAAqB,CACxC;QACE,KAAK;QACL,OAAO;QACP,aAAa;QACb,YAAY,EAAE,QAAQ;KACvB,EACD,OAAO,CACR,CAAC;IAEF,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC;QAClE,QAAQ;QACR,aAAa;QACb,SAAS,EAAE,OAAO,CAAC,GAAG;QACtB,iBAAiB;QACjB,OAAO,EAAE,KAAK,CAAC,GAAG;KACnB,CAAC,CAAC;IAEH,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,aAAa,CAAC,GAAG,EAAE,CAAC,CAAC;AACnF,CAAC"}
@@ -3,9 +3,9 @@ export default function addCartQuotation(root: never, params: {
3
3
  orderId?: string;
4
4
  quotationId: string;
5
5
  quantity: number;
6
- configuration: Array<{
6
+ configuration: {
7
7
  key: string;
8
8
  value: string;
9
- }>;
9
+ }[];
10
10
  }, context: Context): Promise<import("@unchainedshop/core-orders").OrderPosition>;
11
11
  //# sourceMappingURL=addCartQuotation.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addCartQuotation.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/addCartQuotation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAY9C,wBAA8B,gBAAgB,CAC5C,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IACN,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACtD,EACD,OAAO,EAAE,OAAO,+DAsDjB"}
1
+ {"version":3,"file":"addCartQuotation.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/addCartQuotation.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAY9C,wBAA8B,gBAAgB,CAC5C,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IACN,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACjD,EACD,OAAO,EAAE,OAAO,+DAsDjB"}
@@ -19,7 +19,7 @@ export default async function addCartQuotation(root, params, context) {
19
19
  const order = await services.orders.findOrInitCart({
20
20
  orderId,
21
21
  user,
22
- countryCode: context.countryContext,
22
+ countryCode: context.countryCode,
23
23
  });
24
24
  if (!order)
25
25
  throw new OrderNotFoundError({ orderId });
@@ -1 +1 @@
1
- {"version":3,"file":"addCartQuotation.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/addCartQuotation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,EACL,sBAAsB,EACtB,yBAAyB,EACzB,wBAAwB,EACxB,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,gBAAgB,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
1
1
  import { Context } from '../../../context.js';
2
2
  export default function addMultipleCartProducts(root: never, params: {
3
3
  orderId: string;
4
- items: Array<{
4
+ items: {
5
5
  productId: string;
6
6
  quantity: number;
7
- configuration?: Array<{
7
+ configuration?: {
8
8
  key: string;
9
9
  value: string;
10
- }>;
11
- }>;
10
+ }[];
11
+ }[];
12
12
  }, context: Context): Promise<any>;
13
13
  //# sourceMappingURL=addMultipleCartProducts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addMultipleCartProducts.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/addMultipleCartProducts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAS9C,wBAA8B,uBAAuB,CACnD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IACN,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,KAAK,CAAC;QACX,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE,KAAK,CAAC;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;KACvD,CAAC,CAAC;CACJ,EACD,OAAO,EAAE,OAAO,gBAqEjB"}
1
+ {"version":3,"file":"addMultipleCartProducts.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/addMultipleCartProducts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAS9C,wBAA8B,uBAAuB,CACnD,IAAI,EAAE,KAAK,EACX,MAAM,EAAE;IACN,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE;QACL,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;QACjB,aAAa,CAAC,EAAE;YAAE,GAAG,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,EAAE,CAAC;KAClD,EAAE,CAAC;CACL,EACD,OAAO,EAAE,OAAO,gBAqEjB"}
@@ -21,7 +21,7 @@ export default async function addMultipleCartProducts(root, params, context) {
21
21
  const order = await services.orders.findOrInitCart({
22
22
  orderId,
23
23
  user,
24
- countryCode: context.countryContext,
24
+ countryCode: context.countryCode,
25
25
  });
26
26
  if (!order)
27
27
  throw new OrderNotFoundError({ orderId });
@@ -1 +1 @@
1
- {"version":3,"file":"addMultipleCartProducts.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/addMultipleCartProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,uBAAuB,CACnD,IAAW,EACX,MAOC,EACD,OAAgB;IAEhB,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACpD,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;IAElC,GAAG,CAAC,oCAAoC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,EAAE;QAC/D,MAAM;QACN,OAAO;KACR,CAAC,CAAC;IAEH,kCAAkC;IAClC,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,GAAG,CACzC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;QACzC,MAAM,eAAe,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;QAC1E,IAAI,CAAC,eAAe;YAAE,MAAM,IAAI,oBAAoB,CAAC,EAAE,SAAS,EAAE,C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GAAG;SACnB,CAAC,CAAC;QACH,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzB,OAAO,SAAS,CAAC;IACnB,CAAC,EACD,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CACpB,CAAC;IAEF,OAAO,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC"}
1
+ {"version":3,"file":"addMultipleCartProducts.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/addMultipleCartProducts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EACL,oBAAoB,EACpB,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,uBAAuB,CACnD,IAAW,EACX,MAOC,EACD,OAAgB;IAEhB,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACpD,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,GAAG,MAAM,CAAC;IAElC,GAAG,CAAC,oCAAoC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,EAAE;QAC/D,MAAM;QACN,OAAO;KACR,CAAC,CAAC;IAEH,kCAAkC;IAClC,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,GAAG,CACzC,KAAK,CAAC,GAAG,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE;QACzC,MAAM,eAAe,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;QAC1E,IAAI,CAAC,eAAe;YAAE,MAAM,IAAI,oBAAoB,CAAC,EAAE,SAAS,EAA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AC,GAAG;SACnB,CAAC,CAAC;QACH,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACzB,OAAO,SAAS,CAAC;IACnB,CAAC,EACD,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CACpB,CAAC;IAEF,OAAO,QAAQ,CAAC,MAAM,CAAC,iBAAiB,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;AACtD,CAAC"}
@@ -9,7 +9,7 @@ export default async function checkoutCart(root, params, context) {
9
9
  const order = await services.orders.findOrInitCart({
10
10
  orderId: forceOrderId,
11
11
  user,
12
- countryCode: context.countryContext,
12
+ countryCode: context.countryCode,
13
13
  });
14
14
  if (!order)
15
15
  throw new OrderNotFoundError({ orderId: forceOrderId });
@@ -1 +1 @@
1
- {"version":3,"file":"checkoutCart.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/orders/checkoutCart.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE1D,MAAM,MAAM,GAAG,YAAY,CAAC,eAAe,CAAC,CAAC;AAE7C,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,YAAY,CACxC,IAAW,EACX,MAIC,EACD,OAAgB;IAEhB,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3C,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,kBAAkB,EAAE,GAAG,MAAM,CAAC;IAEhE,GAAG,CAAC,uBAAuB,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;IAEhE,+EAA+E;IAC/E,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC;QACjD,OAAO,EAAE,YAAY;QACrB,IAAI;QACJ,WAAW,EAAE,OAAO,CAAC,cAA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,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,CAAC,CAAC;IAEhE,+EAA+E;IAC/E,MAAM,KAAK,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC;QACjD,OAAO,EAAE,YAAY;QACrB,IAAI;QACJ,WAAW,EAAE,OAAO,CAAC,WAAW;KACjC,CAAC,CAAC;IACH,IAAI,CAAC,KAAK;QAAE,MAAM,IAAI,kBAAkB,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,CAAC,CAAC;IAEpE,IAAI,CAAC;QACH,MAAM,eAAe,GAAG,MAAM,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,EAAE,kBAAkB,CAAC,CAAC;QAC3F,OAAO,eAAe,CAAC;IACzB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC;QAC5D,MAAM,IAAI,kBAAkB,CAAC;YAC3B,MAAM;YACN,OAAO,EAAE,KAAK,CAAC,GAAG;YAClB,GAAG,kBAAkB;YACrB,UAAU,EAAE,KAAK,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI;YACpC,aAAa,EAAE,KAAK,CAAC,OAAO;SAC7B,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
@@ -9,7 +9,7 @@ export default async function createCart(root, { orderNumber }, context) {
9
9
  return services.orders.nextUserCart({
10
10
  user,
11
11
  orderNumber,
12
- countryCode: context.countryContext,
12
+ countryCode: context.countryCode,
13
13
  forceCartCreation: true,
14
14
  });
15
15
  }