@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
@@ -3,25 +3,17 @@ export const SimpleProduct = {
3
3
  ...PlanProduct,
4
4
  async simulatedDispatches(obj, params, requestContext) {
5
5
  const { referenceDate, quantity } = params;
6
- const { services, modules } = requestContext;
7
- // TODO: use loader?
8
- const deliveryProviders = await modules.delivery.findProviders({});
6
+ const { services } = requestContext;
9
7
  return services.products.simulateProductDispatching({
10
- deliveryProviders,
11
8
  product: obj,
12
9
  quantity,
13
10
  referenceDate,
14
11
  });
15
12
  },
16
13
  async simulatedStocks(obj, params, requestContext) {
17
- const { modules, services } = requestContext;
18
- const { referenceDate, deliveryProviderType } = params;
19
- // TODO: use loader?
20
- const deliveryProviders = await modules.delivery.findProviders({
21
- type: deliveryProviderType,
22
- });
14
+ const { services } = requestContext;
15
+ const { referenceDate } = params;
23
16
  return services.products.simulateProductInventory({
24
- deliveryProviders,
25
17
  product: obj,
26
18
  referenceDate,
27
19
  });
@@ -1 +1 @@
1
- {"version":3,"file":"product-simple-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-simple-types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,GAAG,WAAW;IAEd,KAAK,CAAC,mBAAmB,CACvB,GAAY,EACZ,MAA6F,EAC7F,cAAuB;QASvB,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC3C,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,cAAc,CAAC;QAE7C,oBAAoB;QACpB,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;QAEnE,OAAO,QAAQ,CAAC,QAAQ,CAAC,0BAA0B,CAAC;YAClD,iBAAiB;YACjB,OAAO,EAAE,GAAG;YACZ,QAAQ;YACR,aAAa;SACd,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,GAAY,EACZ,MAGC,EACD,cAAuB;QAQvB,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;QAC7C,MAAM,EAAE,aAAa,EAAE,oBAAoB,EAAE,GAAG,MAAM,CAAC;QAEvD,oBAAoB;QACpB,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC;YAC7D,IAAI,EAAE,oBAAoB;SAC3B,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC,QAAQ,CAAC,wBAAwB,CAAC;YAChD,iBAAiB;YACjB,OAAO,EAAE,GAAG;YACZ,aAAa;SACd,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,EAAE,WAAW,EAAE;QACtB,OAAO,WAAW,EAAE,QAAQ,CAAC;IAC/B,CAAC;IAED,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,OAAO,WAAW,EAAE,GAAG,CAAC;IAC1B,CAAC;IAED,UAAU,CAAC,EAAE,MAAM,EAAE;QACnB,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QACzB,MAAM,EAAE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QAC9F,OAAO;YACL,YAAY;YACZ,mBAAmB;YACnB,mBAAmB;YACnB,kBAAkB;SACnB,CAAC;IACJ,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"product-simple-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-simple-types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAGtD,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,GAAG,WAAW;IAEd,KAAK,CAAC,mBAAmB,CACvB,GAAY,EACZ,MAA6F,EAC7F,cAAuB;QASvB,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC3C,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;QACpC,OAAO,QAAQ,CAAC,QAAQ,CAAC,0BAA0B,CAAC;YAClD,OAAO,EAAE,GAAG;YACZ,QAAQ;YACR,aAAa;SACd,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,GAAY,EACZ,MAGC,EACD,cAAuB;QAQvB,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;QACpC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,QAAQ,CAAC,QAAQ,CAAC,wBAAwB,CAAC;YAChD,OAAO,EAAE,GAAG;YACZ,aAAa;SACd,CAAC,CAAC;IACL,CAAC;IAED,QAAQ,CAAC,EAAE,WAAW,EAAE;QACtB,OAAO,WAAW,EAAE,QAAQ,CAAC;IAC/B,CAAC;IAED,GAAG,CAAC,EAAE,WAAW,EAAE;QACjB,OAAO,WAAW,EAAE,GAAG,CAAC;IAC1B,CAAC;IAED,UAAU,CAAC,EAAE,MAAM,EAAE;QACnB,IAAI,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QACzB,MAAM,EAAE,YAAY,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,GAAG,MAAM,CAAC;QAC9F,OAAO;YACL,YAAY;YACZ,mBAAmB;YACnB,mBAAmB;YACnB,kBAAkB;SACnB,CAAC;IACJ,CAAC;CACF,CAAC"}
@@ -8,49 +8,49 @@ export declare const TokenizedProduct: {
8
8
  contractStandard({ tokenization }: Product): ProductContractStandard;
9
9
  simulatedStocks(obj: Product, params: {
10
10
  referenceDate: Date;
11
- }, requestContext: Context): Promise<Array<{
11
+ }, requestContext: Context): Promise<{
12
12
  deliveryProvider?: DeliveryProvider;
13
13
  warehousingProvider?: WarehousingProvider;
14
14
  quantity?: number;
15
- }>>;
15
+ }[]>;
16
16
  tokens(product: Product, params: never, requestContext: Context): Promise<import("@unchainedshop/core-warehousing").TokenSurrogate[]>;
17
- catalogPrice(product: Product, { quantity, currency: forcedCurrencyCode }: {
17
+ catalogPrice(product: Product, { quantity, currencyCode: forcedCurrencyCode }: {
18
18
  quantity?: number;
19
- currency?: string;
19
+ currencyCode?: string;
20
20
  }, requestContext: Context): Promise<import("@unchainedshop/core-products").ProductPrice>;
21
- simulatedPrice(obj: Product, { currency: forcedCurrencyCode, quantity, useNetPrice, configuration, }: {
21
+ simulatedPrice(product: Product, { currencyCode: forcedCurrencyCode, quantity, useNetPrice, configuration, }: {
22
22
  quantity?: number;
23
- currency?: string;
23
+ currencyCode?: string;
24
24
  useNetPrice?: boolean;
25
- configuration?: Array<import("@unchainedshop/core-products").ProductConfiguration>;
25
+ configuration?: import("@unchainedshop/core-products").ProductConfiguration[];
26
26
  }, requestContext: Context): Promise<import("@unchainedshop/core-products").ProductPrice>;
27
- leveledCatalogPrices(obj: Product, { currency: forcedCurrencyCode }: {
28
- currency?: string;
29
- }, requestContext: Context): Promise<Array<{
27
+ leveledCatalogPrices(product: Product, { currencyCode: forcedCurrencyCode }: {
28
+ currencyCode?: string;
29
+ }, requestContext: Context): Promise<{
30
30
  minQuantity: number;
31
31
  maxQuantity: number;
32
32
  price: import("@unchainedshop/core-products").ProductPrice;
33
- }>>;
33
+ }[]>;
34
34
  salesUnit({ commerce }: Product): string;
35
35
  salesQuantityPerUnit({ commerce }: Product): string;
36
36
  defaultOrderQuantity({ commerce }: Product): number;
37
37
  __resolveType: (product: Product) => string;
38
38
  assortmentPaths(product: Product, params: {
39
39
  forceLocale?: string;
40
- }, { modules, loaders }: Context): Promise<Array<{
41
- links: Array<import("@unchainedshop/core-assortments").AssortmentPathLink>;
42
- }>>;
40
+ }, { modules, loaders }: Context): Promise<{
41
+ links: import("@unchainedshop/core-assortments").AssortmentPathLink[];
42
+ }[]>;
43
43
  media(product: Product, params: {
44
44
  limit: number;
45
45
  offset: number;
46
- tags?: Array<string>;
47
- }, { loaders, modules }: Context): Promise<Array<import("@unchainedshop/core-products").ProductMedia>>;
46
+ tags?: string[];
47
+ }, { loaders, modules }: Context): Promise<import("@unchainedshop/core-products").ProductMedia[]>;
48
48
  reviews(product: Product, { limit, offset, sort, queryString, }: {
49
49
  queryString?: string;
50
50
  limit?: number;
51
51
  offset?: number;
52
- sort?: Array<import("@unchainedshop/utils").SortOption>;
53
- }, { modules }: Context): Promise<Array<import("@unchainedshop/core-products").ProductReview>>;
52
+ sort?: import("@unchainedshop/utils").SortOption[];
53
+ }, { modules }: Context): Promise<import("@unchainedshop/core-products").ProductReview[]>;
54
54
  reviewsCount(product: Product, params: {
55
55
  queryString?: string;
56
56
  }, { modules }: Context): Promise<number>;
@@ -59,10 +59,10 @@ export declare const TokenizedProduct: {
59
59
  limit: number;
60
60
  offset: number;
61
61
  includeInactive: boolean;
62
- }, { modules }: Context): Promise<Array<typeof product>>;
62
+ }, { modules }: Context): Promise<(typeof product)[]>;
63
63
  status(product: Product, _: any, { modules }: Context): import("@unchainedshop/core-products").ProductStatus;
64
64
  texts(product: Product, { forceLocale, }: {
65
65
  forceLocale?: string;
66
- }, requestContext: Context): Promise<import("@unchainedshop/core-products").ProductText>;
66
+ }, { locale, loaders }: Context): Promise<import("@unchainedshop/core-products").ProductText>;
67
67
  };
68
68
  //# sourceMappingURL=product-tokenized-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-tokenized-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-tokenized-types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,4BAA4B,EAC5B,uBAAuB,EACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAK9C,eAAO,MAAM,gBAAgB;sCAGO,OAAO,GAAG,MAAM;4CAIV,OAAO,GAAG,4BAA4B;uCAS3C,OAAO,GAAG,uBAAuB;yBAK7D,OAAO,UACJ;QACN,aAAa,EAAE,IAAI,CAAC;KACrB,kBACe,OAAO,GACtB,OAAO,CACR,KAAK,CAAC;QACJ,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;QAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,CAAC,CACH;oBAcqB,OAAO,UAAU,KAAK,kBAAkB,OAAO;;gBAjDtE,CAAC;gBAAmB,CAAA;;;gBAesC,CAAC;gBAItD,CAAC;mBAA2B,CAAC;qBAA8B,CAAC;;;gBAiC7D,CAAC;;;;;;;;;;;mBAtCA,CAAL;;;;;;;YA0BwD,CAAC;;;mBAsBrD,CAAC;aAAqB,CAAC;cACxB,CAAC;YAAoB,CAAC;;;mBAAiW,CAAC;;;oBAAuP,CAAC;;;;;;;mBAA06B,CAAC;;CAL9hD,CAAC"}
1
+ {"version":3,"file":"product-tokenized-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-tokenized-types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,4BAA4B,EAC5B,uBAAuB,EACxB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAEhE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAK9C,eAAO,MAAM,gBAAgB;sCAGO,OAAO,GAAG,MAAM;4CAIV,OAAO,GAAG,4BAA4B;uCAS3C,OAAO,GAAG,uBAAuB;yBAK7D,OAAO,UACJ;QACN,aAAa,EAAE,IAAI,CAAC;KACrB,kBACe,OAAO,GACtB,OAAO,CACR;QACE,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;QACpC,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;QAC1C,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,EAAE,CACJ;oBASqB,OAAO,UAAU,KAAK,kBAAkB,OAAO;;gBA5ClE,CAAC;oBAAsB,CAAC;;;gBAgBzB,CAAH;oBAGe,CAAC;mBAA2B,CAAC;qBACzC,CAAD;;;oBAiCQ,CAAC;;;;;;;;;;;mBAvCN,CAAL;;;;;;;YAyBK,CAAC;;;mBAiBuE,CAAC;aAAqB,CAAC;cAAsB,CAAC;YAAoB,CAAC;;;mBAA8T,CAAC;;;oBAAuP,CAAC;;;;;;;mBAAu6B,CAAC;;CAL/mD,CAAC"}
@@ -19,19 +19,15 @@ export const TokenizedProduct = {
19
19
  return tokenization?.contractStandard;
20
20
  },
21
21
  async simulatedStocks(obj, params, requestContext) {
22
- const { modules, services } = requestContext;
22
+ const { services } = requestContext;
23
23
  const { referenceDate } = params;
24
- // TODO: use loader?
25
- const deliveryProviders = await modules.delivery.findProviders({});
26
24
  return services.products.simulateProductInventory({
27
- deliveryProviders,
28
25
  product: obj,
29
26
  referenceDate,
30
27
  });
31
28
  },
32
29
  async tokens(product, params, requestContext) {
33
30
  await checkAction(requestContext, actions.viewTokens, [undefined, params]);
34
- // TODO: use loader?
35
31
  const tokens = await requestContext.modules.warehousing.findTokens({
36
32
  productId: product._id,
37
33
  });
@@ -1 +1 @@
1
- {"version":3,"file":"product-tokenized-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-tokenized-types.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,WAAW;IAEd,eAAe,CAAC,EAAE,YAAY,EAAW;QACvC,OAAO,YAAY,EAAE,eAAe,CAAC;IACvC,CAAC;IAED,qBAAqB,CAAC,EAAE,YAAY,EAAW;QAC7C,IAAI,CAAC,YAAY;YAAE,OAAO,IAAI,CAAC;QAC/B,OAAO;YACL,MAAM,EAAE,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,YAAY,CAAC,OAAO;YAC7B,qBAAqB,EAAE,YAAY,CAAC,qBAAqB;SAC1D,CAAC;IACJ,CAAC;IAED,gBAAgB,CAAC,EAAE,YAAY,EAAW;QACxC,OAAO,YAAY,EAAE,gBAAgB,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,GAAY,EACZ,MAEC,EACD,cAAuB;QAQvB,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;QAC7C,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QAEjC,oBAAoB;QACpB,MAAM,iBAAiB,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;QAEnE,OAAO,QAAQ,CAAC,QAAQ,CAAC,wBAAwB,CAAC;YAChD,iBAAiB;YACjB,OAAO,EAAE,GAAG;YACZ,aAAa;SACd,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAgB,EAAE,MAAa,EAAE,cAAuB;QACnE,MAAM,WAAW,CAAC,cAAc,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;QAE3E,oBAAoB;QACpB,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC;YACjE,SAAS,EAAE,OAAO,CAAC,GAAG;SACvB,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC;AAEF,OAAO,gBAAgB,CAAC,SAAS,CAAC;AAClC,OAAO,gBAAgB,CAAC,oBAAoB,CAAC;AAC7C,OAAO,gBAAgB,CAAC,oBAAoB,CAAC"}
1
+ {"version":3,"file":"product-tokenized-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-tokenized-types.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,GAAG,WAAW;IAEd,eAAe,CAAC,EAAE,YAAY,EAAW;QACvC,OAAO,YAAY,EAAE,eAAe,CAAC;IACvC,CAAC;IAED,qBAAqB,CAAC,EAAE,YAAY,EAAW;QAC7C,IAAI,CAAC,YAAY;YAAE,OAAO,IAAI,CAAC;QAC/B,OAAO;YACL,MAAM,EAAE,YAAY,CAAC,MAAM;YAC3B,OAAO,EAAE,YAAY,CAAC,OAAO;YAC7B,qBAAqB,EAAE,YAAY,CAAC,qBAAqB;SAC1D,CAAC;IACJ,CAAC;IAED,gBAAgB,CAAC,EAAE,YAAY,EAAW;QACxC,OAAO,YAAY,EAAE,gBAAgB,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,GAAY,EACZ,MAEC,EACD,cAAuB;QAQvB,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,CAAC;QACpC,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;QACjC,OAAO,QAAQ,CAAC,QAAQ,CAAC,wBAAwB,CAAC;YAChD,OAAO,EAAE,GAAG;YACZ,aAAa;SACd,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,OAAgB,EAAE,MAAa,EAAE,cAAuB;QACnE,MAAM,WAAW,CAAC,cAAc,EAAE,OAAO,CAAC,UAAU,EAAE,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC;YACjE,SAAS,EAAE,OAAO,CAAC,GAAG;SACvB,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAC;AAEF,OAAO,gBAAgB,CAAC,SAAS,CAAC;AAClC,OAAO,gBAAgB,CAAC,oBAAoB,CAAC;AAC7C,OAAO,gBAAgB,CAAC,oBAAoB,CAAC"}
@@ -9,20 +9,20 @@ export declare const Product: {
9
9
  __resolveType: (product: ProductType) => string;
10
10
  assortmentPaths(product: ProductType, params: {
11
11
  forceLocale?: string;
12
- }, { modules, loaders }: Context): Promise<Array<{
13
- links: Array<AssortmentPathLink>;
14
- }>>;
12
+ }, { modules, loaders }: Context): Promise<{
13
+ links: AssortmentPathLink[];
14
+ }[]>;
15
15
  media(product: ProductType, params: {
16
16
  limit: number;
17
17
  offset: number;
18
- tags?: Array<string>;
19
- }, { loaders, modules }: Context): Promise<Array<ProductMedia>>;
18
+ tags?: string[];
19
+ }, { loaders, modules }: Context): Promise<ProductMedia[]>;
20
20
  reviews(product: ProductType, { limit, offset, sort, queryString, }: {
21
21
  queryString?: string;
22
22
  limit?: number;
23
23
  offset?: number;
24
- sort?: Array<SortOption>;
25
- }, { modules }: Context): Promise<Array<ProductReview>>;
24
+ sort?: SortOption[];
25
+ }, { modules }: Context): Promise<ProductReview[]>;
26
26
  reviewsCount(product: ProductType, params: {
27
27
  queryString?: string;
28
28
  }, { modules }: Context): Promise<number>;
@@ -31,10 +31,10 @@ export declare const Product: {
31
31
  limit: number;
32
32
  offset: number;
33
33
  includeInactive: boolean;
34
- }, { modules }: Context): Promise<Array<typeof product>>;
34
+ }, { modules }: Context): Promise<(typeof product)[]>;
35
35
  status(product: ProductType, _: any, { modules }: Context): ProductStatus;
36
36
  texts(product: ProductType, { forceLocale, }: {
37
37
  forceLocale?: string;
38
- }, requestContext: Context): Promise<ProductText>;
38
+ }, { locale, loaders }: Context): Promise<ProductText>;
39
39
  };
40
40
  //# sourceMappingURL=product-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,aAAa,EAAgB,MAAM,8BAA8B,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,eAAO,MAAM,OAAO;6BACO,WAAW,KAAG,MAAM;6BAMlC,WAAW,UACZ;QACN,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,wBACqB,OAAO,GAC5B,OAAO,CACR,KAAK,CAAC;QACJ,KAAK,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;KAClC,CAAC,CACH;mBAoBU,WAAW,UACZ;QACN,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;KACtB,wBACqB,OAAO,GAC5B,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,CAAC;qBAcpB,WAAW,yCAMjB;QACD,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;KAC1B,eACY,OAAO,GACnB,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC;0BAWrB,WAAW,UACZ;QACN,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,eACY,OAAO,GACnB,OAAO,CAAC,MAAM,CAAC;sBAMP,WAAW,UACZ;QACN,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,eAAe,EAAE,OAAO,CAAC;KAC1B,eACY,OAAO,GACnB,OAAO,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;oBAuBjB,WAAW,uBAAkB,OAAO,GAAG,aAAa;mBAKzD,WAAW,oBAGjB;QACD,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,kBACe,OAAO,GACtB,OAAO,CAAC,WAAW,CAAC;CAOxB,CAAC"}
1
+ {"version":3,"file":"product-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACnF,OAAO,EAAE,aAAa,EAAgB,MAAM,8BAA8B,CAAC;AAE3E,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,eAAO,MAAM,OAAO;6BACO,WAAW,KAAG,MAAM;6BAMlC,WAAW,UACZ;QACN,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,wBACqB,OAAO,GAC5B,OAAO,CACR;QACE,KAAK,EAAE,kBAAkB,EAAE,CAAC;KAC7B,EAAE,CACJ;mBAmBU,WAAW,UACZ;QACN,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;KACjB,wBACqB,OAAO,GAC5B,OAAO,CAAC,YAAY,EAAE,CAAC;qBAcf,WAAW,yCAMjB;QACD,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,KAAK,CAAC,EAAE,MAAM,CAAC;QACf,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,IAAI,CAAC,EAAE,UAAU,EAAE,CAAC;KACrB,eACY,OAAO,GACnB,OAAO,CAAC,aAAa,EAAE,CAAC;0BAUhB,WAAW,UACZ;QACN,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,eACY,OAAO,GACnB,OAAO,CAAC,MAAM,CAAC;sBAMP,WAAW,UACZ;QACN,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;QACf,eAAe,EAAE,OAAO,CAAC;KAC1B,eACY,OAAO,GACnB,OAAO,CAAC,CAAC,OAAO,OAAO,CAAC,EAAE,CAAC;oBAuBd,WAAW,uBAAkB,OAAO,GAAG,aAAa;mBAKzD,WAAW,oBAGjB;QACD,WAAW,CAAC,EAAE,MAAM,CAAC;KACtB,uBACoB,OAAO,GAC3B,OAAO,CAAC,WAAW,CAAC;CAMxB,CAAC"}
@@ -17,7 +17,6 @@ export const Product = {
17
17
  }),
18
18
  });
19
19
  },
20
- // TODO: Use a loader!
21
20
  async media(product, params, { loaders, modules }) {
22
21
  if (params.offset || params.tags) {
23
22
  return modules.products.media.findProductMedias({
@@ -28,7 +27,6 @@ export const Product = {
28
27
  return (await loaders.productMediasLoader.load({ productId: product._id })).slice(params.offset, params.offset + params.limit);
29
28
  },
30
29
  async reviews(product, { limit = 10, offset = 0, sort, queryString, }, { modules }) {
31
- // TODO: use loader?
32
30
  return modules.products.reviews.findProductReviews({
33
31
  productId: product._id,
34
32
  limit,
@@ -63,11 +61,10 @@ export const Product = {
63
61
  status(product, _, { modules }) {
64
62
  return modules.products.normalizedStatus(product);
65
63
  },
66
- async texts(product, { forceLocale, }, requestContext) {
67
- const { localeContext, loaders } = requestContext;
64
+ async texts(product, { forceLocale, }, { locale, loaders }) {
68
65
  return loaders.productTextLoader.load({
69
66
  productId: product._id,
70
- locale: forceLocale || localeContext.baseName,
67
+ locale: forceLocale ? new Intl.Locale(forceLocale) : locale,
71
68
  });
72
69
  },
73
70
  };
@@ -1 +1 @@
1
- {"version":3,"file":"product-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-types.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"product-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-types.ts"],"names":[],"mappings":"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"}
@@ -6,9 +6,9 @@ export type AssignmentHelperType<T> = (data: {
6
6
  }, _: never, context: Context) => T;
7
7
  export interface ProductVariationAssignmentHelperTypes {
8
8
  _id: AssignmentHelperType<string>;
9
- vectors: AssignmentHelperType<Array<{
9
+ vectors: AssignmentHelperType<({
10
10
  product: Product;
11
- } & ProductConfiguration>>;
11
+ } & ProductConfiguration)[]>;
12
12
  product: AssignmentHelperType<Promise<Product>>;
13
13
  }
14
14
  export declare const ProductVariationAssignment: ProductVariationAssignmentHelperTypes;
@@ -1 +1 @@
1
- {"version":3,"file":"product-variation-assignment-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEhG,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,CACpC,IAAI,EAAE;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE,EACzD,CAAC,EAAE,KAAK,EACR,OAAO,EAAE,OAAO,KACb,CAAC,CAAC;AAEP,MAAM,WAAW,qCAAqC;IACpD,GAAG,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAClC,OAAO,EAAE,oBAAoB,CAAC,KAAK,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,GAAG,oBAAoB,CAAC,CAAC,CAAC;IAClF,OAAO,EAAE,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;CACjD;AAED,eAAO,MAAM,0BAA0B,EAAE,qCAiBxC,CAAC"}
1
+ {"version":3,"file":"product-variation-assignment-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEhG,MAAM,MAAM,oBAAoB,CAAC,CAAC,IAAI,CACpC,IAAI,EAAE;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,iBAAiB,CAAA;CAAE,EACzD,CAAC,EAAE,KAAK,EACR,OAAO,EAAE,OAAO,KACb,CAAC,CAAC;AAEP,MAAM,WAAW,qCAAqC;IACpD,GAAG,EAAE,oBAAoB,CAAC,MAAM,CAAC,CAAC;IAClC,OAAO,EAAE,oBAAoB,CAAC,CAAC;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,GAAG,oBAAoB,CAAC,EAAE,CAAC,CAAC;IAC/E,OAAO,EAAE,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;CACjD;AAED,eAAO,MAAM,0BAA0B,EAAE,qCAiBxC,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export const ProductVariationAssignment = {
2
2
  _id: ({ product, assignment }) => {
3
- return `${product._id}:${Object.values(assignment.vector).join('-')}`;
3
+ return `${product?._id}:${Object.values(assignment.vector).join('-')}`;
4
4
  },
5
5
  vectors: ({ assignment, product }) => {
6
6
  return Object.keys(assignment.vector || {}).map((key) => ({
@@ -1 +1 @@
1
- {"version":3,"file":"product-variation-assignment-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-types.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,0BAA0B,GAA0C;IAC/E,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE;QAC/B,OAAO,GAAG,OAAO,CAAC,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACxE,CAAC;IACD,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE;QACnC,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YACxD,GAAG;YACH,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC;YAC7B,OAAO;SACR,CAAC,CAAC,CAAC;IACN,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC;YAC/C,SAAS,EAAE,UAAU,CAAC,SAAS;SAChC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"product-variation-assignment-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-types.ts"],"names":[],"mappings":"AAeA,MAAM,CAAC,MAAM,0BAA0B,GAA0C;IAC/E,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,EAAE;QAC/B,OAAO,GAAG,OAAO,EAAE,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IACzE,CAAC;IACD,OAAO,EAAE,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,EAAE,EAAE;QACnC,OAAO,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;YACxD,GAAG;YACH,KAAK,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,CAAC;YAC7B,OAAO;SACR,CAAC,CAAC,CAAC;IACN,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC;YAC/C,SAAS,EAAE,UAAU,CAAC,SAAS;SAChC,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACjB,CAAC;CACF,CAAC"}
@@ -1,7 +1,7 @@
1
1
  export const ProductVariationAssignmentVector = {
2
2
  _id: ({ product, key, value }) => `${product._id}:${key}=${value}`,
3
3
  option: async (obj, _, { modules }) => {
4
- // TODO: use loader?
4
+ // TODO: use product variation loader
5
5
  const productVariation = await modules.products.variations.findProductVariationByKey({
6
6
  key: obj.key,
7
7
  productId: obj.product._id,
@@ -12,7 +12,7 @@ export const ProductVariationAssignmentVector = {
12
12
  };
13
13
  },
14
14
  variation: (obj, _, { modules }) => {
15
- // TODO: use loader?
15
+ // TODO: use product variation loader
16
16
  return modules.products.variations.findProductVariationByKey({
17
17
  productId: obj?.product?._id,
18
18
  key: obj?.key,
@@ -1 +1 @@
1
- {"version":3,"file":"product-variation-assignment-vector.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-vector.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,MAAM,gCAAgC,GAAgD;IAC3F,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,GAAG,IAAI,GAAG,IAAI,KAAK,EAAE;IAElE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACpC,oBAAoB;QACpB,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;YACnF,GAAG,EAAE,GAAG,CAAC,GAAG;YACZ,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,GAAG;SAC3B,CAAC,CAAC;QACH,OAAO;YACL,GAAG,EAAE,gBAAgB,CAAC,GAAG;YACzB,sBAAsB,EAAE,GAAG,CAAC,KAAK;SAClC,CAAC;IACJ,CAAC;IAED,SAAS,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACjC,oBAAoB;QACpB,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;YAC3D,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;YAC5B,GAAG,EAAE,GAAG,EAAE,GAAG;SACd,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"product-variation-assignment-vector.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-assignment-vector.ts"],"names":[],"mappings":"AAgBA,MAAM,CAAC,MAAM,gCAAgC,GAAgD;IAC3F,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,GAAG,OAAO,CAAC,GAAG,IAAI,GAAG,IAAI,KAAK,EAAE;IAElE,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACpC,qCAAqC;QACrC,MAAM,gBAAgB,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;YACnF,GAAG,EAAE,GAAG,CAAC,GAAG;YACZ,SAAS,EAAE,GAAG,CAAC,OAAO,CAAC,GAAG;SAC3B,CAAC,CAAC;QACH,OAAO;YACL,GAAG,EAAE,gBAAgB,CAAC,GAAG;YACzB,sBAAsB,EAAE,GAAG,CAAC,KAAK;SAClC,CAAC;IACJ,CAAC;IAED,SAAS,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACjC,qCAAqC;QACrC,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,yBAAyB,CAAC;YAC3D,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;YAC5B,GAAG,EAAE,GAAG,EAAE,GAAG;SACd,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
@@ -5,12 +5,12 @@ export const ProductVariationOption = {
5
5
  value: (obj) => {
6
6
  return obj.productVariationOption;
7
7
  },
8
- texts: async (obj, { forceLocale }, { modules, localeContext }) => {
9
- // TODO: use loader
8
+ texts: async (obj, { forceLocale }, { modules, locale }) => {
9
+ // TODO: use variation text loader
10
10
  return modules.products.variations.texts.findLocalizedVariationText({
11
- locale: forceLocale || localeContext.baseName,
12
11
  productVariationId: obj._id,
13
12
  productVariationOptionValue: obj.productVariationOption,
13
+ locale: forceLocale ? new Intl.Locale(forceLocale) : locale,
14
14
  });
15
15
  },
16
16
  };
@@ -1 +1 @@
1
- {"version":3,"file":"product-variation-option-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-option-types.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,sBAAsB,GAAsC;IACvE,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACX,OAAO,GAAG,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,sBAAsB,EAAE,CAAC;IACpD,CAAC;IACD,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE;QACb,OAAO,GAAG,CAAC,sBAAsB,CAAC;IACpC,CAAC;IAED,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE;QAChE,mBAAmB;QACnB,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,0BAA0B,CAAC;YAClE,MAAM,EAAE,WAAW,IAAI,aAAa,CAAC,QAAQ;YAC7C,kBAAkB,EAAE,GAAG,CAAC,GAAG;YAC3B,2BAA2B,EAAE,GAAG,CAAC,sBAAsB;SACxD,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"product-variation-option-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-option-types.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,sBAAsB,GAAsC;IACvE,GAAG,EAAE,CAAC,GAAG,EAAE,EAAE;QACX,OAAO,GAAG,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,sBAAsB,EAAE,CAAC;IACpD,CAAC;IACD,KAAK,EAAE,CAAC,GAAG,EAAE,EAAE;QACb,OAAO,GAAG,CAAC,sBAAsB,CAAC;IACpC,CAAC;IAED,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;QACzD,kCAAkC;QAClC,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,0BAA0B,CAAC;YAClE,kBAAkB,EAAE,GAAG,CAAC,GAAG;YAC3B,2BAA2B,EAAE,GAAG,CAAC,sBAAsB;YACvD,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM;SAC5D,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
@@ -2,10 +2,10 @@ import { Context } from '../../../context.js';
2
2
  import { ProductVariation as ProductVariationType, ProductVariationText } from '@unchainedshop/core-products';
3
3
  export type HelperType<P, T> = (productVariation: ProductVariationType, params: P, context: Context) => T;
4
4
  export interface ProductVariationHelperTypes {
5
- options: HelperType<never, Array<{
5
+ options: HelperType<never, {
6
6
  _id: string;
7
7
  productVariationOption: string;
8
- }>>;
8
+ }[]>;
9
9
  texts: HelperType<{
10
10
  forceLocale?: string;
11
11
  }, Promise<ProductVariationText>>;
@@ -1 +1 @@
1
- {"version":3,"file":"product-variation-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EACL,gBAAgB,IAAI,oBAAoB,EACxC,oBAAoB,EACrB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAC7B,gBAAgB,EAAE,oBAAoB,EACtC,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,OAAO,KACb,CAAC,CAAC;AAEP,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,UAAU,CACjB,KAAK,EACL,KAAK,CAAC;QACJ,GAAG,EAAE,MAAM,CAAC;QACZ,sBAAsB,EAAE,MAAM,CAAC;KAChC,CAAC,CACH,CAAC;IACF,KAAK,EAAE,UAAU,CAAC;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC;CAC5E;AACD,eAAO,MAAM,gBAAgB,EAAE,2BAe9B,CAAC"}
1
+ {"version":3,"file":"product-variation-types.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EACL,gBAAgB,IAAI,oBAAoB,EACxC,oBAAoB,EACrB,MAAM,8BAA8B,CAAC;AAEtC,MAAM,MAAM,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAC7B,gBAAgB,EAAE,oBAAoB,EACtC,MAAM,EAAE,CAAC,EACT,OAAO,EAAE,OAAO,KACb,CAAC,CAAC;AAEP,MAAM,WAAW,2BAA2B;IAC1C,OAAO,EAAE,UAAU,CACjB,KAAK,EACL;QACE,GAAG,EAAE,MAAM,CAAC;QACZ,sBAAsB,EAAE,MAAM,CAAC;KAChC,EAAE,CACJ,CAAC;IACF,KAAK,EAAE,UAAU,CAAC;QAAE,WAAW,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,OAAO,CAAC,oBAAoB,CAAC,CAAC,CAAC;CAC5E;AACD,eAAO,MAAM,gBAAgB,EAAE,2BAe9B,CAAC"}
@@ -5,11 +5,11 @@ export const ProductVariation = {
5
5
  productVariationOption: option,
6
6
  }));
7
7
  },
8
- texts: async (obj, { forceLocale }, { modules, localeContext }) => {
9
- // TODO: use loader
8
+ texts: async (obj, { forceLocale }, { modules, locale }) => {
9
+ // TODO: use variation text loader
10
10
  return modules.products.variations.texts.findLocalizedVariationText({
11
11
  productVariationId: obj._id,
12
- locale: forceLocale || localeContext.baseName,
12
+ locale: forceLocale ? new Intl.Locale(forceLocale) : locale,
13
13
  });
14
14
  },
15
15
  };
@@ -1 +1 @@
1
- {"version":3,"file":"product-variation-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-types.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAC,MAAM,gBAAgB,GAAgC;IAC3D,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;QACf,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YAC1C,GAAG,EAAE,GAAG,CAAC,GAAG;YACZ,sBAAsB,EAAE,MAAM;SAC/B,CAAC,CAAC,CAAC;IACN,CAAC;IAED,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,EAAE,EAAE;QAChE,mBAAmB;QACnB,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,0BAA0B,CAAC;YAClE,kBAAkB,EAAE,GAAG,CAAC,GAAG;YAC3B,MAAM,EAAE,WAAW,IAAI,aAAa,CAAC,QAAQ;SAC9C,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"product-variation-types.js","sourceRoot":"","sources":["../../../../src/resolvers/type/product/product-variation-types.ts"],"names":[],"mappings":"AAsBA,MAAM,CAAC,MAAM,gBAAgB,GAAgC;IAC3D,OAAO,EAAE,CAAC,GAAG,EAAE,EAAE;QACf,OAAO,CAAC,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;YAC1C,GAAG,EAAE,GAAG,CAAC,GAAG;YACZ,sBAAsB,EAAE,MAAM;SAC/B,CAAC,CAAC,CAAC;IACN,CAAC;IAED,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE;QACzD,kCAAkC;QAClC,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK,CAAC,0BAA0B,CAAC;YAClE,kBAAkB,EAAE,GAAG,CAAC,GAAG;YAC3B,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,MAAM;SAC5D,CAAC,CAAC;IACL,CAAC;CACF,CAAC"}
@@ -1,13 +1,13 @@
1
1
  import { Context } from '../../context.js';
2
2
  import { SearchConfiguration } from '@unchainedshop/core-filters';
3
- type SearchResultData = {
3
+ export interface SearchResultData {
4
4
  searchConfiguration: SearchConfiguration & {
5
5
  productSelector: any;
6
6
  };
7
- totalProductIds: Array<string>;
8
- aggregatedTotalProductIds: Array<string>;
9
- aggregatedFilteredProductIds: Array<string>;
10
- };
7
+ totalProductIds: string[];
8
+ aggregatedTotalProductIds: string[];
9
+ aggregatedFilteredProductIds: string[];
10
+ }
11
11
  export declare const ProductSearchResult: {
12
12
  productsCount: ({ searchConfiguration, aggregatedTotalProductIds }: SearchResultData, _: never, context: Context) => Promise<number>;
13
13
  filteredProductsCount: ({ searchConfiguration, aggregatedFilteredProductIds }: SearchResultData, _: never, context: Context) => Promise<number>;
@@ -24,5 +24,4 @@ export declare const ProductSearchResult: {
24
24
  filteredByThisFilterSet: Set<string>;
25
25
  }[]>;
26
26
  };
27
- export {};
28
27
  //# sourceMappingURL=product-search-result-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"product-search-result-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/product-search-result-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,KAAK,gBAAgB,GAAG;IACtB,mBAAmB,EAAE,mBAAmB,GAAG;QAAE,eAAe,EAAE,GAAG,CAAA;KAAE,CAAC;IACpE,eAAe,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC/B,yBAAyB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACzC,4BAA4B,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC7C,CAAC;AAEF,eAAO,MAAM,mBAAmB;wEAEwB,gBAAgB,KACjE,KAAK,WACC,OAAO;mFAYuC,gBAAgB,KACpE,KAAK,WACC,OAAO;sEAYuC,gBAAgB;;;gBAE9D,OAAO;sDAcsC,gBAAgB,KAAK,KAAK,WAAW,OAAO;;;;;;;;CAYrG,CAAC"}
1
+ {"version":3,"file":"product-search-result-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/product-search-result-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAElE,MAAM,WAAW,gBAAgB;IAC/B,mBAAmB,EAAE,mBAAmB,GAAG;QAAE,eAAe,EAAE,GAAG,CAAA;KAAE,CAAC;IACpE,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,yBAAyB,EAAE,MAAM,EAAE,CAAC;IACpC,4BAA4B,EAAE,MAAM,EAAE,CAAC;CACxC;AAED,eAAO,MAAM,mBAAmB;wEAEwB,gBAAgB,KACjE,KAAK,WACC,OAAO;mFAYuC,gBAAgB,KACpE,KAAK,WACC,OAAO;sEAYuC,gBAAgB;;;gBAE9D,OAAO;sDAcsC,gBAAgB,KAAK,KAAK,WAAW,OAAO;;;;;;;;CAYrG,CAAC"}
@@ -1,20 +1,13 @@
1
1
  import { Quotation as QuotationType } from '@unchainedshop/core-quotations';
2
2
  import { Context } from '../../context.js';
3
- import { User } from '@unchainedshop/core-users';
4
- import { Product } from '@unchainedshop/core-products';
5
- import { Country } from '@unchainedshop/core-countries';
6
- import { Currency } from '@unchainedshop/core-currencies';
7
- type HelperType<P, T> = (quotation: QuotationType, params: P, context: Context) => T;
8
- type QuotationHelperTypes = {
9
- country: HelperType<never, Promise<Country>>;
10
- currency: HelperType<never, Promise<Currency>>;
11
- isExpired: HelperType<{
3
+ export declare const Quotation: {
4
+ country: (obj: QuotationType, _: never, { loaders }: Context) => Promise<import("@unchainedshop/core-countries").Country>;
5
+ currency: (obj: QuotationType, _: never, { loaders }: Context) => Promise<import("@unchainedshop/core-currencies").Currency>;
6
+ isExpired: (obj: QuotationType, { referenceDate }: {
12
7
  referenceDate: Date;
13
- }, boolean>;
14
- status: HelperType<never, string>;
15
- product: HelperType<never, Promise<Product>>;
16
- user: HelperType<never, Promise<User>>;
8
+ }, { modules }: Context) => boolean;
9
+ product: (obj: QuotationType, _: never, { loaders }: Context) => Promise<import("@unchainedshop/core-products").Product>;
10
+ status: (obj: QuotationType, _: never, { modules }: Context) => import("@unchainedshop/core-quotations").QuotationStatus;
11
+ user: (obj: QuotationType, _: never, { loaders }: Context) => Promise<import("@unchainedshop/core-users").User>;
17
12
  };
18
- export declare const Quotation: QuotationHelperTypes;
19
- export {};
20
13
  //# sourceMappingURL=quotation-types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"quotation-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/quotation-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAE1D,KAAK,UAAU,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,KAAK,CAAC,CAAC;AAErF,KAAK,oBAAoB,GAAG;IAC1B,OAAO,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7C,QAAQ,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC/C,SAAS,EAAE,UAAU,CAAC;QAAE,aAAa,EAAE,IAAI,CAAA;KAAE,EAAE,OAAO,CAAC,CAAC;IACxD,MAAM,EAAE,UAAU,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAClC,OAAO,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;IAC7C,IAAI,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;CACxC,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,oBAqBvB,CAAC"}
1
+ {"version":3,"file":"quotation-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/quotation-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,eAAO,MAAM,SAAS;mBACC,aAAa,KAAK,KAAK,eAAe,OAAO;oBAG5C,aAAa,KAAK,KAAK,eAAe,OAAO;qBAGlD,aAAa,qBAAqB;QAAE,aAAa,EAAE,IAAI,CAAA;KAAE,eAAe,OAAO;mBAG3E,aAAa,KAAK,KAAK,eAAe,OAAO;kBAOpD,aAAa,KAAK,KAAK,eAAe,OAAO;gBAGzC,aAAa,KAAK,KAAK,eAAe,OAAO;CAEhE,CAAC"}
@@ -1,8 +1,6 @@
1
1
  export const Quotation = {
2
- // TODO: use loader
3
- country: async (obj, _, { modules }) => modules.countries.findCountry({ isoCode: obj.countryCode }),
4
- // TODO: use loader
5
- currency: async (obj, _, { modules }) => modules.currencies.findCurrency({ isoCode: obj.currency }),
2
+ country: async (obj, _, { loaders }) => loaders.countryLoader.load({ isoCode: obj.countryCode }),
3
+ currency: async (obj, _, { loaders }) => loaders.currencyLoader.load({ isoCode: obj.currencyCode }),
6
4
  isExpired: (obj, { referenceDate }, { modules }) => modules.quotations.isExpired(obj, { referenceDate }),
7
5
  product: async (obj, _, { loaders }) => {
8
6
  const product = await loaders.productLoader.load({
@@ -11,7 +9,6 @@ export const Quotation = {
11
9
  return product;
12
10
  },
13
11
  status: (obj, _, { modules }) => modules.quotations.normalizedStatus(obj),
14
- // TODO: use loader
15
- user: (obj, _, { modules }) => modules.users.findUserById(obj.userId),
12
+ user: async (obj, _, { loaders }) => loaders.userLoader.load({ userId: obj.userId }),
16
13
  };
17
14
  //# sourceMappingURL=quotation-types.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"quotation-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/quotation-types.ts"],"names":[],"mappings":"AAkBA,MAAM,CAAC,MAAM,SAAS,GAAyB;IAC7C,mBAAmB;IACnB,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,WAAW,EAAE,CAAC;IAEnG,mBAAmB;IACnB,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC;IAEnG,SAAS,EAAE,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CACjD,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,CAAC;IAEtD,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE;QACrC,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC;YAC/C,SAAS,EAAE,GAAG,CAAC,SAAS;SACzB,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,GAAG,CAAC;IAEzE,mBAAmB;IACnB,IAAI,EAAE,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,CAAC;CACtE,CAAC"}
1
+ {"version":3,"file":"quotation-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/quotation-types.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,OAAO,EAAE,KAAK,EAAE,GAAkB,EAAE,CAAQ,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE,CACpE,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,WAAW,EAAE,CAAC;IAE1D,QAAQ,EAAE,KAAK,EAAE,GAAkB,EAAE,CAAQ,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE,CACrE,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,GAAG,CAAC,YAAY,EAAE,CAAC;IAE5D,SAAS,EAAE,CAAC,GAAkB,EAAE,EAAE,aAAa,EAA2B,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE,CAClG,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,EAAE,EAAE,aAAa,EAAE,CAAC;IAEtD,OAAO,EAAE,KAAK,EAAE,GAAkB,EAAE,CAAQ,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE;QACpE,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC;YAC/C,SAAS,EAAE,GAAG,CAAC,SAAS;SACzB,CAAC,CAAC;QACH,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,MAAM,EAAE,CAAC,GAAkB,EAAE,CAAQ,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE,CAC7D,OAAO,CAAC,UAAU,CAAC,gBAAgB,CAAC,GAAG,CAAC;IAE1C,IAAI,EAAE,KAAK,EAAE,GAAkB,EAAE,CAAQ,EAAE,EAAE,OAAO,EAAW,EAAE,EAAE,CACjE,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,CAAC;CAClD,CAAC"}
@@ -6,7 +6,7 @@ export interface ShopHelperTypes {
6
6
  _id: () => string;
7
7
  country: HelperType<Country>;
8
8
  language: HelperType<Language>;
9
- userRoles: HelperType<Array<string>>;
9
+ userRoles: HelperType<string[]>;
10
10
  }
11
11
  export declare const Shop: ShopHelperTypes;
12
12
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"shop-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/shop-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAIzD,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAElF,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,MAAM,CAAC;IAClB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC7B,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC/B,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC;CACtC;AAED,eAAO,MAAM,IAAI,EAAE,eAoBlB,CAAC"}
1
+ {"version":3,"file":"shop-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/shop-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,+BAA+B,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAIzD,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;AAElF,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,MAAM,CAAC;IAClB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAC7B,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;IAC/B,SAAS,EAAE,UAAU,CAAC,MAAM,EAAE,CAAC,CAAC;CACjC;AAED,eAAO,MAAM,IAAI,EAAE,eAkBlB,CAAC"}
@@ -4,13 +4,11 @@ export const Shop = {
4
4
  _id() {
5
5
  return 'root';
6
6
  },
7
- language: async (_root, _params, { localeContext, modules }) => {
8
- // TODO: use loader
9
- return modules.languages.findLanguage({ isoCode: localeContext.language });
7
+ language: async (_root, _params, { locale, loaders }) => {
8
+ return loaders.languageLoader.load({ isoCode: locale.language });
10
9
  },
11
- country: async (_root, _params, { countryContext, modules }) => {
12
- // TODO: use loader
13
- return modules.countries.findCountry({ isoCode: countryContext });
10
+ country: async (_root, _params, { countryCode, loaders }) => {
11
+ return loaders.countryLoader.load({ isoCode: countryCode });
14
12
  },
15
13
  userRoles: async (_root, _params, context) => {
16
14
  await checkAction(context, actions.manageUsers);
@@ -1 +1 @@
1
- {"version":3,"file":"shop-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/shop-types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAWzD,MAAM,CAAC,MAAM,IAAI,GAAoB;IACnC,GAAG;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,EAAE;QAC7D,mBAAmB;QACnB,OAAO,OAAO,CAAC,SAAS,CAAC,YAAY,CAAC,EAAE,OAAO,EAAE,aAAa,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,EAAE;QAC7D,mBAAmB;QACnB,OAAO,OAAO,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;QAC3C,MAAM,WAAW,CAAC,OAAO,EAAG,OAAe,CAAC,WAAW,CAAC,CAAC;QACzD,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC;aAC3B,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC;aACvB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;IACrD,CAAC;CACF,CAAC"}
1
+ {"version":3,"file":"shop-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/shop-types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAWzD,MAAM,CAAC,MAAM,IAAI,GAAoB;IACnC,GAAG;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;QACtD,OAAO,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC;IACnE,CAAC;IACD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,EAAE;QAC1D,OAAO,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;QAC3C,MAAM,WAAW,CAAC,OAAO,EAAG,OAAe,CAAC,WAAW,CAAC,CAAC;QACzD,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC;aAC3B,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC;aACvB,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,CAAC;IACrD,CAAC;CACF,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { Context } from '../../context.js';
2
2
  import { TokenSurrogate, TokenStatus } from '@unchainedshop/core-warehousing';
3
3
  export declare const Token: {
4
- product: (token: TokenSurrogate, params: never, { modules }: Context) => Promise<import("@unchainedshop/core-products").Product>;
5
- user: (token: TokenSurrogate, params: never, { modules }: Context) => Promise<import("@unchainedshop/core-users").User>;
4
+ product: (token: TokenSurrogate, params: never, { loaders }: Context) => Promise<import("@unchainedshop/core-products").Product>;
5
+ user: (token: TokenSurrogate, params: never, { loaders }: Context) => Promise<import("@unchainedshop/core-users").User>;
6
6
  status: (token: TokenSurrogate, params: never, { modules }: Context) => Promise<TokenStatus>;
7
7
  ercMetadata: (token: TokenSurrogate, { forceLocale }: {
8
8
  forceLocale: string;
@@ -1 +1 @@
1
- {"version":3,"file":"token-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/token-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,WAAW,EAA2B,MAAM,iCAAiC,CAAC;AAMvG,eAAO,MAAM,KAAK;qBACO,cAAc,UAAU,KAAK,eAAe,OAAO;kBAKtD,cAAc,UAAU,KAAK,eAAe,OAAO;oBAMjD,cAAc,UAAU,KAAK,eAAe,OAAO;yBAchE,cAAc,mBACJ;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,WAC/B,OAAO;8BAwBc,cAAc,WAAW,KAAK,WAAW,OAAO;uBAwBvD,cAAc,UAAU,KAAK,kBAAkB,OAAO;CAOhF,CAAC"}
1
+ {"version":3,"file":"token-types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/type/token-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,cAAc,EAAE,WAAW,EAA2B,MAAM,iCAAiC,CAAC;AAMvG,eAAO,MAAM,KAAK;qBACO,cAAc,UAAU,KAAK,eAAe,OAAO;kBAItD,cAAc,UAAU,KAAK,eAAe,OAAO;oBAKjD,cAAc,UAAU,KAAK,eAAe,OAAO;yBAahE,cAAc,mBACJ;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,WAC/B,OAAO;8BAYc,cAAc,WAAW,KAAK,WAAW,OAAO;uBAsBvD,cAAc,UAAU,KAAK,kBAAkB,OAAO;CAOhF,CAAC"}