@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
@@ -13,6 +13,18 @@ export default [
13
13
  totpCode: String
14
14
  ): LoginMethodResponse
15
15
 
16
+ """
17
+ Log the user in with a WebAuthn device
18
+ """
19
+ loginWithWebAuthn(webAuthnPublicKeyCredentials: JSON!): LoginMethodResponse
20
+
21
+ """
22
+ Web3
23
+ """
24
+ addWeb3Address(address: String!): User
25
+ verifyWeb3Address(address: String!, hash: String!): User
26
+ removeWeb3Address(address: String!): User
27
+
16
28
  """
17
29
  Create a new user.
18
30
  """
@@ -20,6 +32,10 @@ export default [
20
32
  username: String
21
33
  email: String
22
34
  password: HashedPasswordInput
35
+ @deprecated(
36
+ reason: "Use plainPassword, there is not a lot of added security by hashing on the client"
37
+ )
38
+ webAuthnPublicKeyCredentials: JSON
23
39
  plainPassword: String
24
40
  profile: UserProfileInput
25
41
  ): LoginMethodResponse
@@ -95,6 +111,26 @@ export default [
95
111
  """
96
112
  disableTOTP(code: String!, userId: ID): User
97
113
 
114
+ """
115
+ Create WebAuthn PublicKeyCredentialCreationOptions to use for Registering a new WebAuthn Device
116
+ """
117
+ createWebAuthnCredentialCreationOptions(username: String!, extensionOptions: JSON): JSON!
118
+
119
+ """
120
+ Register WebAuthn Credentials for current user
121
+ """
122
+ addWebAuthnCredentials(credentials: JSON!): User!
123
+
124
+ """
125
+ Remove WebAuthn Credentials for current user
126
+ """
127
+ removeWebAuthnCredentials(credentialsId: ID!): User!
128
+
129
+ """
130
+ Create WebAuthn PublicKeyCredentialRequestrOptions to use for WebAuthn Login Flow
131
+ """
132
+ createWebAuthnCredentialRequestOptions(username: String, extensionOptions: JSON): JSON!
133
+
98
134
  """
99
135
  Creates an alternative cart. If you use this feature, you should use explicit orderId's when using the
100
136
  cart mutations. Else it will work like a stack and the checkout will use the very first cart of the user.
@@ -302,7 +338,7 @@ export default [
302
338
  """
303
339
  Set tags of user
304
340
  """
305
- setUserTags(tags: [String]!, userId: ID!): User
341
+ setUserTags(tags: [LowerCaseString]!, userId: ID!): User
306
342
 
307
343
  """
308
344
  Update Profile of any user or logged in user if userId is not provided
@@ -379,6 +415,14 @@ export default [
379
415
  """
380
416
  updateProductPlan(productId: ID!, plan: UpdateProductPlanInput!): Product
381
417
 
418
+ """
419
+ Modify tokenization part of a product
420
+ """
421
+ updateProductTokenization(
422
+ productId: ID!
423
+ tokenization: UpdateProductTokenizationInput!
424
+ ): TokenizedProduct
425
+
382
426
  """
383
427
  Modify warehousing part of a product
384
428
  """
@@ -607,7 +651,11 @@ export default [
607
651
  """
608
652
  Add a new product to an assortment
609
653
  """
610
- addAssortmentProduct(assortmentId: ID!, productId: ID!, tags: [String!]): AssortmentProduct!
654
+ addAssortmentProduct(
655
+ assortmentId: ID!
656
+ productId: ID!
657
+ tags: [LowerCaseString!]
658
+ ): AssortmentProduct!
611
659
 
612
660
  """
613
661
  Remove a product from an assortment
@@ -625,7 +673,7 @@ export default [
625
673
  addAssortmentLink(
626
674
  parentAssortmentId: ID!
627
675
  childAssortmentId: ID!
628
- tags: [String!]
676
+ tags: [LowerCaseString!]
629
677
  ): AssortmentLink!
630
678
 
631
679
  """
@@ -641,7 +689,7 @@ export default [
641
689
  """
642
690
  Add a new filter to an assortment
643
691
  """
644
- addAssortmentFilter(assortmentId: ID!, filterId: ID!, tags: [String!]): AssortmentFilter!
692
+ addAssortmentFilter(assortmentId: ID!, filterId: ID!, tags: [LowerCaseString!]): AssortmentFilter!
645
693
 
646
694
  """
647
695
  Remove a product from an assortment
@@ -846,6 +894,11 @@ export default [
846
894
  prepareAssortmentMediaUpload(mediaName: String!, assortmentId: ID!): MediaUploadTicket!
847
895
  prepareUserAvatarUpload(mediaName: String!, userId: ID): MediaUploadTicket!
848
896
  confirmMediaUpload(mediaUploadTicketId: ID!, size: Int!, type: String!): Media!
897
+
898
+ """
899
+ Tokenize
900
+ """
901
+ exportToken(tokenId: ID!, quantity: Int! = 1, recipientWalletAddress: String!): Token!
849
902
  }
850
903
  `,
851
904
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"mutation.js","sourceRoot":"","sources":["../../src/schema/mutation.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAg1Bb;CACF,CAAC"}
1
+ {"version":3,"file":"mutation.js","sourceRoot":"","sources":["../../src/schema/mutation.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAq4Bb;CACF,CAAC"}
@@ -31,7 +31,7 @@ export default [
31
31
  If a slug is provided
32
32
  """
33
33
  productsCount(
34
- tags: [String!]
34
+ tags: [LowerCaseString!]
35
35
  slugs: [String!]
36
36
  includeDrafts: Boolean = false
37
37
  queryString: String
@@ -43,7 +43,7 @@ export default [
43
43
  """
44
44
  products(
45
45
  queryString: String
46
- tags: [String!]
46
+ tags: [LowerCaseString!]
47
47
  slugs: [String!]
48
48
  limit: Int = 10
49
49
  offset: Int = 0
@@ -182,6 +182,11 @@ export default [
182
182
  """
183
183
  warehousingInterfaces(type: WarehousingProviderType!): [WarehousingInterface!]!
184
184
 
185
+ """
186
+ Get token
187
+ """
188
+ token(tokenId: ID!): Token
189
+
185
190
  """
186
191
  Returns total number of payment providers, optionally filtered by type
187
192
  """
@@ -233,7 +238,7 @@ export default [
233
238
  """
234
239
  assortments(
235
240
  queryString: String
236
- tags: [String!]
241
+ tags: [LowerCaseString!]
237
242
  slugs: [String!]
238
243
  limit: Int = 10
239
244
  offset: Int = 0
@@ -246,7 +251,7 @@ export default [
246
251
  Returns total number of assortments that match a given criteria or all if no criteria is given
247
252
  """
248
253
  assortmentsCount(
249
- tags: [String!]
254
+ tags: [LowerCaseString!]
250
255
  slugs: [String!]
251
256
  includeInactive: Boolean = false
252
257
  includeLeaves: Boolean = false
@@ -1 +1 @@
1
- {"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/schema/query.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgbb;CACF,CAAC"}
1
+ {"version":3,"file":"query.js","sourceRoot":"","sources":["../../src/schema/query.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqbb;CACF,CAAC"}
@@ -5,6 +5,7 @@ export default [
5
5
  scalar DateTime
6
6
  scalar Date
7
7
  scalar Timestamp
8
+ scalar LowerCaseString
8
9
  `,
9
10
  ];
10
11
  //# sourceMappingURL=scalars.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"scalars.js","sourceRoot":"","sources":["../../src/schema/scalars.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;GAMb;CACF,CAAC"}
1
+ {"version":3,"file":"scalars.js","sourceRoot":"","sources":["../../src/schema/scalars.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;GAOb;CACF,CAAC"}
@@ -9,7 +9,7 @@ export default [
9
9
 
10
10
  type AssortmentMedia {
11
11
  _id: ID!
12
- tags: [String!]
12
+ tags: [LowerCaseString!]
13
13
  file: Media!
14
14
  sortKey: Int!
15
15
  texts(forceLocale: String): AssortmentMediaTexts
@@ -26,8 +26,8 @@ export default [
26
26
  isBase: Boolean
27
27
  isRoot: Boolean
28
28
  sequence: Int!
29
- tags: [String!]
30
- media(limit: Int = 10, offset: Int = 0, tags: [String!]): [AssortmentMedia!]!
29
+ tags: [LowerCaseString!]
30
+ media(limit: Int = 10, offset: Int = 0, tags: [LowerCaseString!]): [AssortmentMedia!]!
31
31
  texts(forceLocale: String): AssortmentTexts
32
32
  productAssignments: [AssortmentProduct!]
33
33
  filterAssignments: [AssortmentFilter!]
@@ -66,7 +66,7 @@ export default [
66
66
  type AssortmentProduct {
67
67
  _id: ID!
68
68
  sortKey: Int!
69
- tags: [String!]
69
+ tags: [LowerCaseString!]
70
70
  assortment: Assortment!
71
71
  product: Product!
72
72
  }
@@ -74,7 +74,7 @@ export default [
74
74
  type AssortmentFilter {
75
75
  _id: ID!
76
76
  sortKey: Int!
77
- tags: [String!]
77
+ tags: [LowerCaseString!]
78
78
  assortment: Assortment!
79
79
  filter: Filter!
80
80
  }
@@ -82,7 +82,7 @@ export default [
82
82
  type AssortmentLink {
83
83
  _id: ID!
84
84
  sortKey: Int!
85
- tags: [String!]
85
+ tags: [LowerCaseString!]
86
86
  parent: Assortment!
87
87
  child: Assortment!
88
88
  }
@@ -5,6 +5,7 @@ export default [
5
5
  isoCode: String!
6
6
  isActive: Boolean
7
7
  contractAddress: String
8
+ decimals: Int
8
9
  }
9
10
  `,
10
11
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"currency.js","sourceRoot":"","sources":["../../../src/schema/types/currency.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;GAOb;CACF,CAAC"}
1
+ {"version":3,"file":"currency.js","sourceRoot":"","sources":["../../../src/schema/types/currency.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;GAQb;CACF,CAAC"}
@@ -54,38 +54,6 @@ export default [
54
54
  DISCOUNTS
55
55
  }
56
56
 
57
- enum OrderDocumentType {
58
- """
59
- Order Confirmation
60
- """
61
- ORDER_CONFIRMATION
62
-
63
- """
64
- Order Rejection
65
- """
66
- ORDER_REJECTION
67
-
68
- """
69
- Delivery Note
70
- """
71
- DELIVERY_NOTE
72
-
73
- """
74
- Invoice
75
- """
76
- INVOICE
77
-
78
- """
79
- Receipt
80
- """
81
- RECEIPT
82
-
83
- """
84
- Other
85
- """
86
- OTHER
87
- }
88
-
89
57
  """
90
58
  Just an order
91
59
  """
@@ -100,7 +68,6 @@ export default [
100
68
  currency: Currency
101
69
  delivery: OrderDelivery
102
70
  discounts: [OrderDiscount!]
103
- documents(type: OrderDocumentType = CONFIRMATION): [Media!]!
104
71
  enrollment: Enrollment
105
72
  fullfilled: DateTime
106
73
  items: [OrderItem!]
@@ -1 +1 @@
1
- {"version":3,"file":"order.js","sourceRoot":"","sources":["../../../../src/schema/types/order/order.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmHb;CACF,CAAC"}
1
+ {"version":3,"file":"order.js","sourceRoot":"","sources":["../../../../src/schema/types/order/order.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFb;CACF,CAAC"}
@@ -33,9 +33,9 @@ export default [
33
33
  type PaymentCredentials {
34
34
  _id: ID!
35
35
  user: User!
36
- meta: JSON
37
36
  paymentProvider: PaymentProvider!
38
37
  token: JSON
38
+ meta: JSON
39
39
  isValid: Boolean!
40
40
  isPreferred: Boolean!
41
41
  }
@@ -7,11 +7,11 @@ export default [
7
7
  _id: ID!
8
8
  sequence: Int!
9
9
  status: ProductStatus!
10
- tags: [String!]
10
+ tags: [LowerCaseString!]
11
11
  created: DateTime
12
12
  updated: DateTime
13
13
  published: DateTime
14
- media(limit: Int = 10, offset: Int = 0, tags: [String!]): [ProductMedia!]!
14
+ media(limit: Int = 10, offset: Int = 0, tags: [LowerCaseString!]): [ProductMedia!]!
15
15
  texts(forceLocale: String): ProductTexts
16
16
  bundleItems: [ProductBundleItem!]
17
17
  reviews(
@@ -66,11 +66,11 @@ export default [
66
66
  _id: ID!
67
67
  sequence: Int!
68
68
  status: ProductStatus!
69
- tags: [String!]
69
+ tags: [LowerCaseString!]
70
70
  created: DateTime
71
71
  updated: DateTime
72
72
  published: DateTime
73
- media(limit: Int = 10, offset: Int = 0, tags: [String!]): [ProductMedia!]!
73
+ media(limit: Int = 10, offset: Int = 0, tags: [LowerCaseString!]): [ProductMedia!]!
74
74
  texts(forceLocale: String): ProductTexts
75
75
  assortmentPaths: [ProductAssortmentPath!]!
76
76
  siblings(
@@ -3,5 +3,13 @@ import simpleProduct from './simple-product';
3
3
  import product from './product';
4
4
  import bundleProduct from './bundle-product';
5
5
  import planProduct from './plan-product';
6
- export default [...product, ...configurableProduct, ...simpleProduct, ...bundleProduct, ...planProduct];
6
+ import tokenizedProduct from './tokenized-product';
7
+ export default [
8
+ ...product,
9
+ ...configurableProduct,
10
+ ...simpleProduct,
11
+ ...bundleProduct,
12
+ ...planProduct,
13
+ ...tokenizedProduct,
14
+ ];
7
15
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/types/product/index.js"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,eAAe,CAAC,GAAG,OAAO,EAAE,GAAG,mBAAmB,EAAE,GAAG,aAAa,EAAE,GAAG,aAAa,EAAE,GAAG,WAAW,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/types/product/index.js"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AAEnD,eAAe;IACb,GAAG,OAAO;IACV,GAAG,mBAAmB;IACtB,GAAG,aAAa;IAChB,GAAG,aAAa;IAChB,GAAG,WAAW;IACd,GAAG,gBAAgB;CACpB,CAAC"}
@@ -36,11 +36,11 @@ export default [
36
36
  _id: ID!
37
37
  sequence: Int!
38
38
  status: ProductStatus!
39
- tags: [String!]
39
+ tags: [LowerCaseString!]
40
40
  created: DateTime
41
41
  updated: DateTime
42
42
  published: DateTime
43
- media(limit: Int = 10, offset: Int = 0, tags: [String!]): [ProductMedia!]!
43
+ media(limit: Int = 10, offset: Int = 0, tags: [LowerCaseString!]): [ProductMedia!]!
44
44
  texts(forceLocale: String): ProductTexts
45
45
  catalogPrice(quantity: Int = 1, currency: String): Price
46
46
  leveledCatalogPrices(currency: String): [PriceLevel!]!
@@ -32,7 +32,7 @@ export default [
32
32
 
33
33
  type ProductMedia {
34
34
  _id: ID!
35
- tags: [String!]
35
+ tags: [LowerCaseString!]
36
36
  file: Media!
37
37
  sortKey: Int!
38
38
  texts(forceLocale: String): ProductMediaTexts
@@ -57,12 +57,12 @@ export default [
57
57
  _id: ID!
58
58
  sequence: Int!
59
59
  status: ProductStatus!
60
- tags: [String!]
60
+ tags: [LowerCaseString!]
61
61
  created: DateTime
62
62
  updated: DateTime
63
63
  published: DateTime
64
- texts: ProductTexts
65
- media(limit: Int = 10, offset: Int = 0, tags: [String!]): [ProductMedia!]!
64
+ texts(forceLocale: String): ProductTexts
65
+ media(limit: Int = 10, offset: Int = 0, tags: [LowerCaseString!]): [ProductMedia!]!
66
66
  reviews(
67
67
  limit: Int = 10
68
68
  offset: Int = 0
@@ -7,11 +7,11 @@ export default [
7
7
  _id: ID!
8
8
  sequence: Int!
9
9
  status: ProductStatus!
10
- tags: [String!]
10
+ tags: [LowerCaseString!]
11
11
  created: DateTime
12
12
  updated: DateTime
13
13
  published: DateTime
14
- media(limit: Int = 10, offset: Int = 0, tags: [String!]): [ProductMedia!]!
14
+ media(limit: Int = 10, offset: Int = 0, tags: [LowerCaseString!]): [ProductMedia!]!
15
15
  texts(forceLocale: String): ProductTexts
16
16
  catalogPrice(quantity: Int = 1, currency: String): Price
17
17
  leveledCatalogPrices(currency: String): [PriceLevel!]!
@@ -0,0 +1,2 @@
1
+ declare const _default: string[];
2
+ export default _default;
@@ -0,0 +1,57 @@
1
+ export default [
2
+ /* GraphQL */ `
3
+ input UpdateProductTokenizationInput {
4
+ contractAddress: String!
5
+ contractStandard: SmartContractStandard!
6
+ tokenId: String!
7
+ supply: Int!
8
+ }
9
+
10
+ enum SmartContractStandard {
11
+ ERC1155
12
+ ERC721
13
+ }
14
+
15
+ type ContractConfiguration {
16
+ tokenId: String!
17
+ supply: Int!
18
+ }
19
+
20
+ """
21
+ Tokenized Product (Blockchain materialized Product)
22
+ """
23
+ type TokenizedProduct implements Product {
24
+ _id: ID!
25
+ sequence: Int!
26
+ status: ProductStatus!
27
+ tags: [LowerCaseString!]
28
+ created: DateTime
29
+ updated: DateTime
30
+ published: DateTime
31
+ media(limit: Int = 10, offset: Int = 0, tags: [LowerCaseString!]): [ProductMedia!]!
32
+ texts(forceLocale: String): ProductTexts
33
+ catalogPrice(quantity: Int = 1, currency: String): Price
34
+ leveledCatalogPrices(currency: String): [PriceLevel!]!
35
+ simulatedPrice(currency: String, useNetPrice: Boolean = false, quantity: Int = 1): Price
36
+ simulatedDiscounts(quantity: Int = 1): [ProductDiscount!]
37
+ assortmentPaths(forceLocale: String): [ProductAssortmentPath!]!
38
+ siblings(
39
+ assortmentId: ID
40
+ limit: Int = 10
41
+ offset: Int = 0
42
+ includeInactive: Boolean = false
43
+ ): [Product!]!
44
+ reviews(
45
+ limit: Int = 10
46
+ offset: Int = 0
47
+ sort: [SortOptionInput!]
48
+ queryString: String
49
+ ): [ProductReview!]!
50
+ contractAddress: String
51
+ contractStandard: SmartContractStandard
52
+ contractConfiguration: ContractConfiguration
53
+ ercMetadata(forceLocale: String): JSON
54
+ }
55
+ `,
56
+ ];
57
+ //# sourceMappingURL=tokenized-product.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tokenized-product.js","sourceRoot":"","sources":["../../../../src/schema/types/product/tokenized-product.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDb;CACF,CAAC"}
@@ -57,7 +57,6 @@ export default [
57
57
  country: Country
58
58
  currency: Currency
59
59
  configuration: [ProductConfigurationParameter!]
60
- documents(type: QuotationDocumentType = PROPOSAL): [Media!]!
61
60
  }
62
61
  `,
63
62
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"quotation.js","sourceRoot":"","sources":["../../../src/schema/types/quotation.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4Db;CACF,CAAC"}
1
+ {"version":3,"file":"quotation.js","sourceRoot":"","sources":["../../../src/schema/types/quotation.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2Db;CACF,CAAC"}
@@ -49,6 +49,41 @@ export default [
49
49
  countryCode: String
50
50
  }
51
51
 
52
+ type WebAuthnMDSv3Metadata {
53
+ legalHeader: String
54
+ description: String
55
+ authenticatorVersion: Int
56
+ protocolFamily: String
57
+ schema: Int
58
+ upv: [JSON!]
59
+ authenticationAlgorithms: [String!]
60
+ publicKeyAlgAndEncodings: [String!]
61
+ attestationTypes: [String!]
62
+ userVerificationDetails: [JSON!]
63
+ keyProtection: [String!]
64
+ matcherProtection: [String!]
65
+ cryptoStrength: Int
66
+ attachmentHint: [String!]
67
+ tcDisplay: [JSON!]
68
+ attestationRootCertificates: [String!]
69
+ icon: String
70
+ authenticatorGetInfo: JSON
71
+ }
72
+
73
+ type WebAuthnCredentials {
74
+ _id: ID!
75
+ created: DateTime!
76
+ aaguid: String!
77
+ counter: Int!
78
+ mdsMetadata: WebAuthnMDSv3Metadata
79
+ }
80
+
81
+ type Web3Address {
82
+ address: String!
83
+ nonce: Int
84
+ verified: Boolean!
85
+ }
86
+
52
87
  type User {
53
88
  _id: ID!
54
89
  email: String @deprecated(reason: "Please use primaryEmail.address instead")
@@ -57,6 +92,8 @@ export default [
57
92
  isGuest: Boolean!
58
93
  isTwoFactorEnabled: Boolean!
59
94
  isInitialPassword: Boolean!
95
+ webAuthnCredentials: [WebAuthnCredentials!]!
96
+ web3Addresses: [Web3Address!]!
60
97
  name: String!
61
98
  avatar: Media
62
99
  profile: UserProfile
@@ -68,7 +105,7 @@ export default [
68
105
  primaryEmail: UserEmail
69
106
  emails: [UserEmail!]
70
107
  roles: [String!]
71
- tags: [String!]
108
+ tags: [LowerCaseString!]
72
109
  cart(orderNumber: String): Order
73
110
  orders(includeCarts: Boolean = false, sort: [SortOptionInput!], queryString: String): [Order!]!
74
111
  quotations(sort: [SortOptionInput!], queryString: String): [Quotation!]!
@@ -76,6 +113,7 @@ export default [
76
113
  paymentCredentials: [PaymentCredentials!]!
77
114
  enrollments(sort: [SortOptionInput!], queryString: String): [Enrollment!]!
78
115
  allowedActions: [RoleAction!]!
116
+ tokens: [Token!]!
79
117
  }
80
118
  `,
81
119
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/schema/types/user.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8Eb;CACF,CAAC"}
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../../src/schema/types/user.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoHb;CACF,CAAC"}
@@ -8,9 +8,13 @@ export default [
8
8
 
9
9
  enum WarehousingProviderType {
10
10
  """
11
- Physical
11
+ Physical warehousing providers resemble stores or facilities that hold a quantity of stocks physically in stock.
12
12
  """
13
13
  PHYSICAL
14
+ """
15
+ Virtual warehousing providers resemble software that control ownership and validity of virtual products (for ex. smart contract bridges)
16
+ """
17
+ VIRTUAL
14
18
  }
15
19
 
16
20
  enum WarehousingProviderError {
@@ -31,6 +35,24 @@ export default [
31
35
  configurationError: WarehousingProviderError
32
36
  isActive: Boolean
33
37
  }
38
+
39
+ enum TokenExportStatus {
40
+ CENTRALIZED
41
+ EXPORTING
42
+ DECENTRALIZED
43
+ }
44
+
45
+ type Token {
46
+ _id: ID!
47
+ user: User
48
+ walletAddress: String
49
+ product: TokenizedProduct!
50
+ status: TokenExportStatus!
51
+ quantity: Int!
52
+ contractAddress: String
53
+ chainId: String
54
+ chainTokenId: String
55
+ }
34
56
  `,
35
57
  ];
36
58
  //# sourceMappingURL=warehousing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"warehousing.js","sourceRoot":"","sources":["../../../src/schema/types/warehousing.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCb;CACF,CAAC"}
1
+ {"version":3,"file":"warehousing.js","sourceRoot":"","sources":["../../../src/schema/types/warehousing.js"],"names":[],"mappings":"AAAA,eAAe;IACb,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDb;CACF,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { UnchainedUserContext } from '@unchainedshop/types/api';
2
2
  import { UnchainedCore } from '@unchainedshop/types/core';
3
- import { IncomingMessage } from 'http';
3
+ import { IncomingMessage, OutgoingMessage } from 'http';
4
4
  export declare const getUserContext: (req: IncomingMessage & {
5
5
  cookies?: any;
6
- }, unchainedAPI: UnchainedCore) => Promise<UnchainedUserContext>;
6
+ }, res: OutgoingMessage, unchainedAPI: UnchainedCore) => Promise<UnchainedUserContext>;