@unchainedshop/api 1.2.40 → 2.0.0-beta2

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 (238) hide show
  1. package/lib/api-index.d.ts +1 -0
  2. package/lib/api-index.js +3 -0
  3. package/lib/api-index.js.map +1 -1
  4. package/lib/context.js +3 -3
  5. package/lib/context.js.map +1 -1
  6. package/lib/createBulkImportServer.js +1 -1
  7. package/lib/createBulkImportServer.js.map +1 -1
  8. package/lib/createERCMetadataServer.d.ts +2 -0
  9. package/lib/createERCMetadataServer.js +53 -0
  10. package/lib/createERCMetadataServer.js.map +1 -0
  11. package/lib/errors.d.ts +4 -0
  12. package/lib/errors.js +4 -0
  13. package/lib/errors.js.map +1 -1
  14. package/lib/loaders/index.d.ts +2 -2
  15. package/lib/loaders/index.js +1 -1
  16. package/lib/loaders/index.js.map +1 -1
  17. package/lib/locale-context.d.ts +2 -2
  18. package/lib/locale-context.js +1 -1
  19. package/lib/locale-context.js.map +1 -1
  20. package/lib/resolvers/index.js +2 -0
  21. package/lib/resolvers/index.js.map +1 -1
  22. package/lib/resolvers/mutations/accounts/addWeb3Address.d.ts +4 -0
  23. package/lib/resolvers/mutations/accounts/addWeb3Address.js +21 -0
  24. package/lib/resolvers/mutations/accounts/addWeb3Address.js.map +1 -0
  25. package/lib/resolvers/mutations/accounts/addWebAuthnCredentials.d.ts +4 -0
  26. package/lib/resolvers/mutations/accounts/addWebAuthnCredentials.js +14 -0
  27. package/lib/resolvers/mutations/accounts/addWebAuthnCredentials.js.map +1 -0
  28. package/lib/resolvers/mutations/accounts/createUser.js +18 -6
  29. package/lib/resolvers/mutations/accounts/createUser.js.map +1 -1
  30. package/lib/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.d.ts +5 -0
  31. package/lib/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.js +9 -0
  32. package/lib/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.js.map +1 -0
  33. package/lib/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.d.ts +5 -0
  34. package/lib/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.js +16 -0
  35. package/lib/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.js.map +1 -0
  36. package/lib/resolvers/mutations/accounts/loginWithWebAuthn.d.ts +8 -0
  37. package/lib/resolvers/mutations/accounts/loginWithWebAuthn.js +7 -0
  38. package/lib/resolvers/mutations/accounts/loginWithWebAuthn.js.map +1 -0
  39. package/lib/resolvers/mutations/accounts/logout.js +6 -2
  40. package/lib/resolvers/mutations/accounts/logout.js.map +1 -1
  41. package/lib/resolvers/mutations/accounts/logoutAllSessions.js +6 -2
  42. package/lib/resolvers/mutations/accounts/logoutAllSessions.js.map +1 -1
  43. package/lib/resolvers/mutations/accounts/removeWeb3Address.d.ts +4 -0
  44. package/lib/resolvers/mutations/accounts/removeWeb3Address.js +18 -0
  45. package/lib/resolvers/mutations/accounts/removeWeb3Address.js.map +1 -0
  46. package/lib/resolvers/mutations/accounts/removeWebAuthnCredentials.d.ts +4 -0
  47. package/lib/resolvers/mutations/accounts/removeWebAuthnCredentials.js +18 -0
  48. package/lib/resolvers/mutations/accounts/removeWebAuthnCredentials.js.map +1 -0
  49. package/lib/resolvers/mutations/accounts/verifyWeb3Address.d.ts +5 -0
  50. package/lib/resolvers/mutations/accounts/verifyWeb3Address.js +40 -0
  51. package/lib/resolvers/mutations/accounts/verifyWeb3Address.js.map +1 -0
  52. package/lib/resolvers/mutations/index.d.ts +174 -157
  53. package/lib/resolvers/mutations/index.js +20 -0
  54. package/lib/resolvers/mutations/index.js.map +1 -1
  55. package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.js +7 -1
  56. package/lib/resolvers/mutations/orders/signPaymentProviderForCheckout.js.map +1 -1
  57. package/lib/resolvers/mutations/pageView.d.ts +2 -2
  58. package/lib/resolvers/mutations/pageView.js.map +1 -1
  59. package/lib/resolvers/mutations/products/updateProductTokenization.d.ts +6 -0
  60. package/lib/resolvers/mutations/products/updateProductTokenization.js +19 -0
  61. package/lib/resolvers/mutations/products/updateProductTokenization.js.map +1 -0
  62. package/lib/resolvers/mutations/warehousing/exportToken.d.ts +6 -0
  63. package/lib/resolvers/mutations/warehousing/exportToken.js +21 -0
  64. package/lib/resolvers/mutations/warehousing/exportToken.js.map +1 -0
  65. package/lib/resolvers/queries/index.d.ts +67 -66
  66. package/lib/resolvers/queries/index.js +2 -0
  67. package/lib/resolvers/queries/index.js.map +1 -1
  68. package/lib/resolvers/queries/warehousing/token.d.ts +4 -0
  69. package/lib/resolvers/queries/warehousing/token.js +11 -0
  70. package/lib/resolvers/queries/warehousing/token.js.map +1 -0
  71. package/lib/resolvers/scalars/LowerCaseString.d.ts +3 -0
  72. package/lib/resolvers/scalars/LowerCaseString.js +17 -0
  73. package/lib/resolvers/scalars/LowerCaseString.js.map +1 -0
  74. package/lib/resolvers/scalars/index.d.ts +4 -0
  75. package/lib/resolvers/scalars/index.js +5 -0
  76. package/lib/resolvers/scalars/index.js.map +1 -0
  77. package/lib/resolvers/type/assortment/assortment-filter-types.d.ts +1 -1
  78. package/lib/resolvers/type/assortment/assortment-link-types.d.ts +1 -1
  79. package/lib/resolvers/type/assortment/assortment-product-types.d.ts +1 -1
  80. package/lib/resolvers/type/currency-types.d.ts +3 -0
  81. package/lib/resolvers/type/currency-types.js +6 -0
  82. package/lib/resolvers/type/currency-types.js.map +1 -0
  83. package/lib/resolvers/type/index.d.ts +246 -130
  84. package/lib/resolvers/type/index.js +8 -0
  85. package/lib/resolvers/type/index.js.map +1 -1
  86. package/lib/resolvers/type/login-method-response-types.d.ts +4 -0
  87. package/lib/resolvers/type/login-method-response-types.js +4 -0
  88. package/lib/resolvers/type/login-method-response-types.js.map +1 -1
  89. package/lib/resolvers/type/order/order-delivery-discount-types.d.ts +1 -1
  90. package/lib/resolvers/type/order/order-delivery-shipping-types.d.ts +1 -1
  91. package/lib/resolvers/type/order/order-discount-types.d.ts +1 -1
  92. package/lib/resolvers/type/order/order-discountable-types.d.ts +6 -0
  93. package/lib/resolvers/type/order/order-discountable-types.js +1 -1
  94. package/lib/resolvers/type/order/order-discountable-types.js.map +1 -1
  95. package/lib/resolvers/type/order/order-global-discount-types.d.ts +1 -1
  96. package/lib/resolvers/type/order/order-item-discount-types.d.ts +1 -1
  97. package/lib/resolvers/type/order/order-item-types.d.ts +1 -1
  98. package/lib/resolvers/type/order/order-payment-card-types.d.ts +1 -1
  99. package/lib/resolvers/type/order/order-payment-discount-types.d.ts +1 -1
  100. package/lib/resolvers/type/order/order-payment-generic-types.d.ts +1 -1
  101. package/lib/resolvers/type/order/order-payment-invoice-types.d.ts +1 -1
  102. package/lib/resolvers/type/order/order-types.d.ts +2 -6
  103. package/lib/resolvers/type/order/order-types.js +0 -1
  104. package/lib/resolvers/type/order/order-types.js.map +1 -1
  105. package/lib/resolvers/type/product/product-tokenized-types.d.ts +2 -0
  106. package/lib/resolvers/type/product/product-tokenized-types.js +28 -0
  107. package/lib/resolvers/type/product/product-tokenized-types.js.map +1 -0
  108. package/lib/resolvers/type/quotation-types.d.ts +0 -4
  109. package/lib/resolvers/type/quotation-types.js +0 -10
  110. package/lib/resolvers/type/quotation-types.js.map +1 -1
  111. package/lib/resolvers/type/shop-types.d.ts +1 -1
  112. package/lib/resolvers/type/token-types.d.ts +17 -0
  113. package/lib/resolvers/type/token-types.js +30 -0
  114. package/lib/resolvers/type/token-types.js.map +1 -0
  115. package/lib/resolvers/type/user-types.d.ts +5 -1
  116. package/lib/resolvers/type/user-types.js +12 -0
  117. package/lib/resolvers/type/user-types.js.map +1 -1
  118. package/lib/resolvers/type/webauthn-credentials-types.d.ts +10 -0
  119. package/lib/resolvers/type/webauthn-credentials-types.js +13 -0
  120. package/lib/resolvers/type/webauthn-credentials-types.js.map +1 -0
  121. package/lib/roles/admin.js +3 -0
  122. package/lib/roles/admin.js.map +1 -1
  123. package/lib/roles/all.js +3 -0
  124. package/lib/roles/all.js.map +1 -1
  125. package/lib/roles/index.d.ts +1 -1
  126. package/lib/roles/index.js +3 -0
  127. package/lib/roles/index.js.map +1 -1
  128. package/lib/roles/loggedIn.js +9 -0
  129. package/lib/roles/loggedIn.js.map +1 -1
  130. package/lib/schema/inputTypes.js +6 -4
  131. package/lib/schema/inputTypes.js.map +1 -1
  132. package/lib/schema/mutation.js +57 -4
  133. package/lib/schema/mutation.js.map +1 -1
  134. package/lib/schema/query.js +9 -4
  135. package/lib/schema/query.js.map +1 -1
  136. package/lib/schema/scalars.js +1 -0
  137. package/lib/schema/scalars.js.map +1 -1
  138. package/lib/schema/types/assortment.js +6 -6
  139. package/lib/schema/types/currency.js +1 -0
  140. package/lib/schema/types/currency.js.map +1 -1
  141. package/lib/schema/types/order/order.js +0 -33
  142. package/lib/schema/types/order/order.js.map +1 -1
  143. package/lib/schema/types/payment.js +1 -1
  144. package/lib/schema/types/product/bundle-product.js +2 -2
  145. package/lib/schema/types/product/configurable-product.js +2 -2
  146. package/lib/schema/types/product/index.js +9 -1
  147. package/lib/schema/types/product/index.js.map +1 -1
  148. package/lib/schema/types/product/plan-product.js +2 -2
  149. package/lib/schema/types/product/product.js +4 -4
  150. package/lib/schema/types/product/simple-product.js +2 -2
  151. package/lib/schema/types/product/tokenized-product.d.ts +2 -0
  152. package/lib/schema/types/product/tokenized-product.js +57 -0
  153. package/lib/schema/types/product/tokenized-product.js.map +1 -0
  154. package/lib/schema/types/quotation.js +0 -1
  155. package/lib/schema/types/quotation.js.map +1 -1
  156. package/lib/schema/types/user.js +39 -1
  157. package/lib/schema/types/user.js.map +1 -1
  158. package/lib/schema/types/warehousing.js +23 -1
  159. package/lib/schema/types/warehousing.js.map +1 -1
  160. package/lib/user-context.d.ts +2 -2
  161. package/lib/user-context.js +20 -9
  162. package/lib/user-context.js.map +1 -1
  163. package/package.json +11 -9
  164. package/src/api-index.ts +4 -0
  165. package/src/context.ts +3 -3
  166. package/src/createBulkImportServer.ts +1 -1
  167. package/src/createERCMetadataServer.ts +71 -0
  168. package/src/errors.ts +20 -0
  169. package/src/loaders/index.ts +2 -1
  170. package/src/locale-context.ts +2 -1
  171. package/src/resolvers/index.ts +2 -0
  172. package/src/resolvers/mutations/accounts/addWeb3Address.ts +33 -0
  173. package/src/resolvers/mutations/accounts/addWebAuthnCredentials.ts +29 -0
  174. package/src/resolvers/mutations/accounts/createUser.ts +28 -6
  175. package/src/resolvers/mutations/accounts/createWebAuthnCredentialCreationOptions.ts +20 -0
  176. package/src/resolvers/mutations/accounts/createWebAuthnCredentialRequestOptions.ts +28 -0
  177. package/src/resolvers/mutations/accounts/loginWithWebAuthn.ts +16 -0
  178. package/src/resolvers/mutations/accounts/logout.ts +5 -2
  179. package/src/resolvers/mutations/accounts/logoutAllSessions.ts +5 -2
  180. package/src/resolvers/mutations/accounts/removeWeb3Address.ts +32 -0
  181. package/src/resolvers/mutations/accounts/removeWebAuthnCredentials.ts +30 -0
  182. package/src/resolvers/mutations/accounts/verifyWeb3Address.ts +60 -0
  183. package/src/resolvers/mutations/{index.js → index.ts} +20 -0
  184. package/src/resolvers/mutations/orders/signPaymentProviderForCheckout.ts +8 -1
  185. package/src/resolvers/mutations/{pageView.js → pageView.ts} +0 -0
  186. package/src/resolvers/mutations/products/updateProductTokenization.ts +28 -0
  187. package/src/resolvers/mutations/warehousing/exportToken.ts +33 -0
  188. package/src/resolvers/queries/{index.js → index.ts} +2 -0
  189. package/src/resolvers/queries/warehousing/token.ts +17 -0
  190. package/src/resolvers/scalars/LowerCaseString.ts +19 -0
  191. package/src/resolvers/scalars/index.ts +5 -0
  192. package/src/resolvers/type/assortment/assortment-filter-types.ts +1 -1
  193. package/src/resolvers/type/assortment/assortment-link-types.ts +1 -1
  194. package/src/resolvers/type/assortment/assortment-product-types.ts +1 -1
  195. package/src/resolvers/type/currency-types.ts +5 -0
  196. package/src/resolvers/type/{index.js → index.ts} +8 -0
  197. package/src/resolvers/type/login-method-response-types.ts +4 -0
  198. package/src/resolvers/type/order/order-delivery-discount-types.ts +1 -1
  199. package/src/resolvers/type/order/order-delivery-shipping-types.ts +1 -1
  200. package/src/resolvers/type/order/order-discount-types.ts +1 -1
  201. package/src/resolvers/type/order/order-discountable-types.ts +1 -1
  202. package/src/resolvers/type/order/order-global-discount-types.ts +1 -1
  203. package/src/resolvers/type/order/order-item-discount-types.ts +1 -1
  204. package/src/resolvers/type/order/order-item-types.ts +1 -1
  205. package/src/resolvers/type/order/order-payment-card-types.ts +1 -1
  206. package/src/resolvers/type/order/order-payment-discount-types.ts +1 -1
  207. package/src/resolvers/type/order/order-payment-generic-types.ts +1 -1
  208. package/src/resolvers/type/order/order-payment-invoice-types.ts +1 -1
  209. package/src/resolvers/type/order/order-types.ts +2 -10
  210. package/src/resolvers/type/product/product-tokenized-types.ts +34 -0
  211. package/src/resolvers/type/quotation-types.ts +0 -17
  212. package/src/resolvers/type/shop-types.ts +1 -1
  213. package/src/resolvers/type/token-types.ts +43 -0
  214. package/src/resolvers/type/user-types.ts +26 -1
  215. package/src/resolvers/type/webauthn-credentials-types.ts +27 -0
  216. package/src/roles/admin.ts +3 -0
  217. package/src/roles/all.ts +3 -0
  218. package/src/roles/index.ts +4 -1
  219. package/src/roles/loggedIn.ts +13 -0
  220. package/src/schema/inputTypes.js +6 -4
  221. package/src/schema/mutation.js +57 -4
  222. package/src/schema/query.js +9 -4
  223. package/src/schema/scalars.js +1 -0
  224. package/src/schema/types/assortment.js +6 -6
  225. package/src/schema/types/currency.js +1 -0
  226. package/src/schema/types/order/order.js +0 -33
  227. package/src/schema/types/payment.js +1 -1
  228. package/src/schema/types/product/bundle-product.js +2 -2
  229. package/src/schema/types/product/configurable-product.js +2 -2
  230. package/src/schema/types/product/index.js +9 -1
  231. package/src/schema/types/product/plan-product.js +2 -2
  232. package/src/schema/types/product/product.js +4 -4
  233. package/src/schema/types/product/simple-product.js +2 -2
  234. package/src/schema/types/product/tokenized-product.js +56 -0
  235. package/src/schema/types/quotation.js +0 -1
  236. package/src/schema/types/user.js +39 -1
  237. package/src/schema/types/warehousing.js +23 -1
  238. package/src/user-context.ts +23 -9
@@ -0,0 +1,19 @@
1
+ import { log } from '@unchainedshop/logger';
2
+ import { ProductTypes } from '@unchainedshop/core-products';
3
+ import { ProductNotFoundError, InvalidIdError, ProductWrongStatusError } from '../../../errors';
4
+ export default async function updateProductTokenization(root, { tokenization, productId }, { modules, userId }) {
5
+ log(`mutation updateProductTokenization ${productId}`, { userId });
6
+ if (!productId)
7
+ throw new InvalidIdError({ productId });
8
+ const product = await modules.products.findProduct({ productId });
9
+ if (!product)
10
+ throw new ProductNotFoundError({ productId });
11
+ if (product?.type !== ProductTypes.TokenizedProduct)
12
+ throw new ProductWrongStatusError({
13
+ received: product?.type,
14
+ required: ProductTypes.TokenizedProduct,
15
+ });
16
+ await modules.products.update(productId, { tokenization }, userId);
17
+ return modules.products.findProduct({ productId });
18
+ }
19
+ //# sourceMappingURL=updateProductTokenization.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"updateProductTokenization.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/products/updateProductTokenization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAG5D,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAEhG,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,yBAAyB,CACrD,IAAU,EACV,EAAE,YAAY,EAAE,SAAS,EAA4D,EACrF,EAAE,OAAO,EAAE,MAAM,EAAW;IAE5B,GAAG,CAAC,sCAAsC,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAEnE,IAAI,CAAC,SAAS;QAAE,MAAM,IAAI,cAAc,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;IAExD,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;IAClE,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,oBAAoB,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;IAE5D,IAAI,OAAO,EAAE,IAAI,KAAK,YAAY,CAAC,gBAAgB;QACjD,MAAM,IAAI,uBAAuB,CAAC;YAChC,QAAQ,EAAE,OAAO,EAAE,IAAI;YACvB,QAAQ,EAAE,YAAY,CAAC,gBAAgB;SACxC,CAAC,CAAC;IAEL,MAAM,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,YAAY,EAAE,EAAE,MAAM,CAAC,CAAC;IAEnE,OAAO,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC;AACrD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Context, Root } from '@unchainedshop/types/api';
2
+ export default function exportToken(root: Root, { tokenId, quantity, recipientWalletAddress, }: {
3
+ tokenId: string;
4
+ quantity: number;
5
+ recipientWalletAddress: string;
6
+ }, { modules, userId }: Context): Promise<import("@unchainedshop/types/warehousing").TokenSurrogate>;
@@ -0,0 +1,21 @@
1
+ import { log } from '@unchainedshop/logger';
2
+ import { InvalidIdError } from '../../../errors';
3
+ export default async function exportToken(root, { tokenId, quantity, recipientWalletAddress, }, { modules, userId }) {
4
+ log(`mutation exportToken ${tokenId}`, {
5
+ userId,
6
+ });
7
+ if (!tokenId)
8
+ throw new InvalidIdError({ tokenId });
9
+ const token = await modules.warehousing.findToken({ tokenId });
10
+ await modules.worker.addWork({
11
+ type: 'EXPORT_TOKEN',
12
+ retries: 5,
13
+ input: {
14
+ token,
15
+ quantity,
16
+ recipientWalletAddress,
17
+ },
18
+ });
19
+ return modules.warehousing.findToken({ tokenId });
20
+ }
21
+ //# sourceMappingURL=exportToken.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"exportToken.js","sourceRoot":"","sources":["../../../../src/resolvers/mutations/warehousing/exportToken.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,WAAW,CACvC,IAAU,EACV,EACE,OAAO,EACP,QAAQ,EACR,sBAAsB,GACgD,EACxE,EAAE,OAAO,EAAE,MAAM,EAAW;IAE5B,GAAG,CAAC,wBAAwB,OAAO,EAAE,EAAE;QACrC,MAAM;KACP,CAAC,CAAC;IAEH,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,cAAc,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAEpD,MAAM,KAAK,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAE/D,MAAM,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC;QAC3B,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC;QACV,KAAK,EAAE;YACL,KAAK;YACL,QAAQ;YACR,sBAAsB;SACvB;KACF,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;AACpD,CAAC"}
@@ -1,67 +1,68 @@
1
- declare namespace _default {
2
- export { me };
3
- export const user: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
4
- export const users: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
5
- export const usersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
6
- export const product: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
7
- export const products: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
8
- export const productsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
9
- export const productCatalogPrices: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
10
- export const languagesCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
11
- export const languages: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
12
- export const language: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
13
- export const countriesCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
14
- export const countries: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
15
- export const country: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
16
- export const currenciesCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
17
- export const currencies: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
18
- export const currency: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
19
- export const paymentProviders: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
20
- export const paymentProvidersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
21
- export const paymentProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
22
- export const paymentInterfaces: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
23
- export const deliveryProvidersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
24
- export const deliveryProviders: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
25
- export const deliveryProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
26
- export const deliveryInterfaces: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
27
- export const warehousingProvidersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
28
- export const warehousingProviders: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
29
- export const warehousingProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
30
- export const warehousingInterfaces: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
31
- export const translatedProductTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
32
- export const translatedProductMediaTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
33
- export const translatedProductVariationTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
34
- export const ordersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
35
- export const orders: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
36
- export const order: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
37
- export const assortmentsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
38
- export const assortments: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
39
- export const translatedAssortmentMediaTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
40
- export const assortment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
41
- export const filtersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
42
- export const filters: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
43
- export const filter: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
44
- export const shopInfo: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
45
- export const translatedAssortmentTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
46
- export const translatedFilterTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
47
- export const productReview: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
48
- export const productReviews: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
49
- export const productReviewsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
50
- export const quotation: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
51
- export const quotations: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
52
- export const quotationsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
53
- export const searchProducts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
54
- export const searchAssortments: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
55
- export const workQueue: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
56
- export const workQueueCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
57
- export const activeWorkTypes: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
58
- export const enrollment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
59
- export const enrollments: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
60
- export const enrollmentsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
61
- export const work: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
62
- export const event: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
63
- export const events: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
64
- export const eventsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
65
- }
1
+ import me from './users/me';
2
+ declare const _default: {
3
+ me: typeof me;
4
+ user: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
5
+ users: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
6
+ usersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
7
+ product: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
8
+ products: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
9
+ productsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
10
+ productCatalogPrices: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
11
+ languagesCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
12
+ languages: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
13
+ language: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
14
+ countriesCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
15
+ countries: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
16
+ country: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
17
+ currenciesCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
18
+ currencies: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
19
+ currency: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
20
+ paymentProviders: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
21
+ paymentProvidersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
22
+ paymentProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
23
+ paymentInterfaces: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
24
+ deliveryProvidersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
25
+ deliveryProviders: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
26
+ deliveryProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
27
+ deliveryInterfaces: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
28
+ warehousingProvidersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
29
+ warehousingProviders: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
30
+ warehousingProvider: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
31
+ warehousingInterfaces: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
32
+ token: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
33
+ translatedProductTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
34
+ translatedProductMediaTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
35
+ translatedProductVariationTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
36
+ ordersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
37
+ orders: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
38
+ order: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
39
+ assortmentsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
40
+ assortments: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
41
+ translatedAssortmentMediaTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
42
+ assortment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
43
+ filtersCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
44
+ filters: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
45
+ filter: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
46
+ shopInfo: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
47
+ translatedAssortmentTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
48
+ translatedFilterTexts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
49
+ productReview: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
50
+ productReviews: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
51
+ productReviewsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
52
+ quotation: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
53
+ quotations: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
54
+ quotationsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
55
+ searchProducts: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
56
+ searchAssortments: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
57
+ workQueue: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
58
+ workQueueCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
59
+ activeWorkTypes: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
60
+ enrollment: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
61
+ enrollments: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
62
+ enrollmentsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
63
+ work: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
64
+ event: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
65
+ events: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
66
+ eventsCount: (root: any, params: any, context: any, ...other: any[]) => Promise<any>;
67
+ };
66
68
  export default _default;
67
- import me from "./users/me";
@@ -60,6 +60,7 @@ import warehousingInterfaces from './warehousing/warehousingInterfaces';
60
60
  import warehousingProvider from './warehousing/warehousingProvider';
61
61
  import warehousingProviders from './warehousing/warehousingProviders';
62
62
  import warehousingProvidersCount from './warehousing/warehousingProvidersCount';
63
+ import token from './warehousing/token';
63
64
  import work from './worker/work';
64
65
  import workQueue from './worker/workQueue';
65
66
  import workQueueCount from './worker/workQueueCount';
@@ -93,6 +94,7 @@ export default {
93
94
  warehousingProviders: acl(actions.viewWarehousingProviders)(warehousingProviders),
94
95
  warehousingProvider: acl(actions.viewWarehousingProvider)(warehousingProvider),
95
96
  warehousingInterfaces: acl(actions.viewWarehousingInterfaces)(warehousingInterfaces),
97
+ token: acl(actions.viewToken)(token),
96
98
  translatedProductTexts: acl(actions.viewTranslations)(translatedProductTexts),
97
99
  translatedProductMediaTexts: acl(actions.viewTranslations)(translatedProductMediaTexts),
98
100
  translatedProductVariationTexts: acl(actions.viewTranslations)(translatedProductVariationTexts),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resolvers/queries/index.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,aAAa,IAAI,GAAG,EAAE,MAAM,WAAW,CAAC;AAEjD,OAAO,eAAe,MAAM,0BAA0B,CAAC;AACvD,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,cAAc,MAAM,4BAA4B,CAAC;AACxD,OAAO,OAAO,MAAM,qBAAqB,CAAC;AAC1C,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,QAAQ,MAAM,uBAAuB,CAAC;AAC7C,OAAO,kBAAkB,MAAM,+BAA+B,CAAC;AAC/D,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,iBAAiB,MAAM,8BAA8B,CAAC;AAC7D,OAAO,sBAAsB,MAAM,mCAAmC,CAAC;AACvE,OAAO,UAAU,MAAM,0BAA0B,CAAC;AAClD,OAAO,WAAW,MAAM,2BAA2B,CAAC;AACpD,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,KAAK,MAAM,gBAAgB,CAAC;AACnC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,WAAW,MAAM,uBAAuB,CAA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OAAO,CAAC,eAAe,CAAC,CAAC,gBAAgB,CAAC;IAEhE,IAAI,EAAE,GAAG,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,IAAI,CAAC;IACrC,KAAK,EAAE,GAAG,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC;IACpC,MAAM,EAAE,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC;IACvC,WAAW,EAAE,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,WAAW,CAAC;CAClD,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { Context, Root } from '@unchainedshop/types/api';
2
+ export default function token(root: Root, { tokenId }: {
3
+ tokenId: string;
4
+ }, { modules, userId }: Context): Promise<import("@unchainedshop/types/warehousing").TokenSurrogate>;
@@ -0,0 +1,11 @@
1
+ import { log } from '@unchainedshop/logger';
2
+ import { InvalidIdError } from '../../../errors';
3
+ export default async function token(root, { tokenId }, { modules, userId }) {
4
+ log(`query token ${tokenId}`, { userId });
5
+ if (!tokenId)
6
+ throw new InvalidIdError({ tokenId });
7
+ return modules.warehousing.findToken({
8
+ tokenId,
9
+ });
10
+ }
11
+ //# sourceMappingURL=token.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token.js","sourceRoot":"","sources":["../../../../src/resolvers/queries/warehousing/token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,KAAK,CACjC,IAAU,EACV,EAAE,OAAO,EAAuB,EAChC,EAAE,OAAO,EAAE,MAAM,EAAW;IAE5B,GAAG,CAAC,eAAe,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IAE1C,IAAI,CAAC,OAAO;QAAE,MAAM,IAAI,cAAc,CAAC,EAAE,OAAO,EAAE,CAAC,CAAC;IAEpD,OAAO,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC;QACnC,OAAO;KACR,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { GraphQLScalarType } from 'graphql';
2
+ declare const LowerCaseString: GraphQLScalarType;
3
+ export default LowerCaseString;
@@ -0,0 +1,17 @@
1
+ import { GraphQLScalarType, Kind } from 'graphql';
2
+ const LowerCaseString = new GraphQLScalarType({
3
+ name: 'LowerCaseString',
4
+ description: 'Lowercased string',
5
+ serialize: (value) => value?.toLowerCase(),
6
+ parseValue(value) {
7
+ return String(value)?.toLowerCase();
8
+ },
9
+ parseLiteral(ast) {
10
+ if (ast.kind === Kind.STRING) {
11
+ return ast.value?.toLowerCase();
12
+ }
13
+ return null;
14
+ },
15
+ });
16
+ export default LowerCaseString;
17
+ //# sourceMappingURL=LowerCaseString.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LowerCaseString.js","sourceRoot":"","sources":["../../../src/resolvers/scalars/LowerCaseString.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAElD,MAAM,eAAe,GAAG,IAAI,iBAAiB,CAAC;IAC5C,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,mBAAmB;IAChC,SAAS,EAAE,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE;IAC/C,UAAU,CAAC,KAAK;QACd,OAAO,MAAM,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtC,CAAC;IACD,YAAY,CAAC,GAAG;QACd,IAAI,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC,MAAM,EAAE;YAC5B,OAAO,GAAG,CAAC,KAAK,EAAE,WAAW,EAAE,CAAC;SACjC;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAC,CAAC;AAEH,eAAe,eAAe,CAAC"}
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ LowerCaseString: import("graphql").GraphQLScalarType;
3
+ };
4
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import LowerCaseString from './LowerCaseString';
2
+ export default {
3
+ LowerCaseString,
4
+ };
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resolvers/scalars/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,mBAAmB,CAAC;AAEhD,eAAe;IACb,eAAe;CAChB,CAAC"}
@@ -2,7 +2,7 @@ import { Context } from '@unchainedshop/types/api';
2
2
  import { Assortment, AssortmentFilter as AssortmentFilterType } from '@unchainedshop/types/assortments';
3
3
  import { Filter } from '@unchainedshop/types/filters';
4
4
  declare type HelperType<T> = (assortmentFilter: AssortmentFilterType, _: never, context: Context) => T;
5
- declare type AssortmentFilterHelperTypes = {
5
+ export declare type AssortmentFilterHelperTypes = {
6
6
  assortment: HelperType<Promise<Assortment>>;
7
7
  filter: HelperType<Promise<Filter>>;
8
8
  };
@@ -1,7 +1,7 @@
1
1
  import { Context } from '@unchainedshop/types/api';
2
2
  import { Assortment, AssortmentLink as AssortmentLinkType } from '@unchainedshop/types/assortments';
3
3
  declare type HelperType<T> = (assortmentLink: AssortmentLinkType, _: never, context: Context) => T;
4
- declare type AssortmentLinkHelperTypes = {
4
+ export declare type AssortmentLinkHelperTypes = {
5
5
  child: HelperType<Promise<Assortment>>;
6
6
  parent: HelperType<Promise<Assortment>>;
7
7
  };
@@ -2,7 +2,7 @@ import { Context } from '@unchainedshop/types/api';
2
2
  import { Assortment, AssortmentProduct as AssortmentProductType } from '@unchainedshop/types/assortments';
3
3
  import { Product } from '@unchainedshop/types/products';
4
4
  declare type HelperType<T> = (assortmentProduct: AssortmentProductType, _: never, context: Context) => T;
5
- declare type AssortmentProductHelperTypes = {
5
+ export declare type AssortmentProductHelperTypes = {
6
6
  assortment: HelperType<Promise<Assortment>>;
7
7
  product: HelperType<Promise<Product>>;
8
8
  };
@@ -0,0 +1,3 @@
1
+ export declare const Currency: {
2
+ decimals: (currency: any) => any;
3
+ };
@@ -0,0 +1,6 @@
1
+ export const Currency = {
2
+ decimals: (currency) => {
3
+ return currency.decimals ?? 2;
4
+ },
5
+ };
6
+ //# sourceMappingURL=currency-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"currency-types.js","sourceRoot":"","sources":["../../../src/resolvers/type/currency-types.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,QAAQ,EAAE,CAAC,QAAQ,EAAE,EAAE;QACrB,OAAO,QAAQ,CAAC,QAAQ,IAAI,CAAC,CAAC;IAChC,CAAC;CACF,CAAC"}