@vendure/core 3.1.8 → 3.2.1

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 (313) hide show
  1. package/LICENSE.md +42 -42
  2. package/README.md +11 -11
  3. package/cli/populate.js +4 -5
  4. package/cli/populate.js.map +1 -1
  5. package/dist/api/api-internal-modules.js +4 -0
  6. package/dist/api/api-internal-modules.js.map +1 -1
  7. package/dist/api/api.module.js +3 -6
  8. package/dist/api/api.module.js.map +1 -1
  9. package/dist/api/common/extract-session-token.js +1 -2
  10. package/dist/api/common/extract-session-token.js.map +1 -1
  11. package/dist/api/common/get-api-type.js +1 -2
  12. package/dist/api/common/get-api-type.js.map +1 -1
  13. package/dist/api/common/is-field-resolver.js +1 -2
  14. package/dist/api/common/is-field-resolver.js.map +1 -1
  15. package/dist/api/common/parse-context.js +1 -2
  16. package/dist/api/common/parse-context.js.map +1 -1
  17. package/dist/api/common/request-context.js +3 -3
  18. package/dist/api/common/request-context.js.map +1 -1
  19. package/dist/api/common/set-session-token.js +1 -2
  20. package/dist/api/common/set-session-token.js.map +1 -1
  21. package/dist/api/common/user-has-permissions-on-custom-field.js +1 -2
  22. package/dist/api/common/user-has-permissions-on-custom-field.js.map +1 -1
  23. package/dist/api/common/validate-custom-field-value.js +1 -2
  24. package/dist/api/common/validate-custom-field-value.js.map +1 -1
  25. package/dist/api/config/configure-graphql-module.js +9 -51
  26. package/dist/api/config/configure-graphql-module.js.map +1 -1
  27. package/dist/api/config/generate-active-order-types.js +1 -2
  28. package/dist/api/config/generate-active-order-types.js.map +1 -1
  29. package/dist/api/config/generate-auth-types.js +1 -2
  30. package/dist/api/config/generate-auth-types.js.map +1 -1
  31. package/dist/api/config/generate-error-code-enum.js +5 -5
  32. package/dist/api/config/generate-error-code-enum.js.map +1 -1
  33. package/dist/api/config/generate-list-options.js +1 -2
  34. package/dist/api/config/generate-list-options.js.map +1 -1
  35. package/dist/api/config/generate-permissions.js +30 -31
  36. package/dist/api/config/generate-permissions.js.map +1 -1
  37. package/dist/api/config/generate-resolvers.d.ts +4 -4
  38. package/dist/api/config/generate-resolvers.js +1 -2
  39. package/dist/api/config/generate-resolvers.js.map +1 -1
  40. package/dist/api/config/get-custom-fields-config-without-interfaces.js +1 -2
  41. package/dist/api/config/get-custom-fields-config-without-interfaces.js.map +1 -1
  42. package/dist/api/config/get-final-vendure-schema.d.ts +47 -0
  43. package/dist/api/config/get-final-vendure-schema.js +71 -0
  44. package/dist/api/config/get-final-vendure-schema.js.map +1 -0
  45. package/dist/api/config/graphql-custom-fields.js +166 -167
  46. package/dist/api/config/graphql-custom-fields.js.map +1 -1
  47. package/dist/api/config/money-scalar.js +2 -2
  48. package/dist/api/config/money-scalar.js.map +1 -1
  49. package/dist/api/constants.d.ts +2 -0
  50. package/dist/api/constants.js +10 -0
  51. package/dist/api/constants.js.map +1 -0
  52. package/dist/api/decorators/transaction.decorator.d.ts +1 -1
  53. package/dist/api/index.d.ts +2 -0
  54. package/dist/api/index.js +2 -0
  55. package/dist/api/index.js.map +1 -1
  56. package/dist/api/resolvers/admin/product.resolver.d.ts +2 -1
  57. package/dist/api/resolvers/admin/product.resolver.js +14 -0
  58. package/dist/api/resolvers/admin/product.resolver.js.map +1 -1
  59. package/dist/api/resolvers/shop/shop-payment-methods.resolver.d.ts +8 -0
  60. package/dist/api/resolvers/shop/shop-payment-methods.resolver.js +40 -0
  61. package/dist/api/resolvers/shop/shop-payment-methods.resolver.js.map +1 -0
  62. package/dist/api/resolvers/shop/shop-shipping-methods.resolver.d.ts +8 -0
  63. package/dist/api/resolvers/shop/shop-shipping-methods.resolver.js +40 -0
  64. package/dist/api/resolvers/shop/shop-shipping-methods.resolver.js.map +1 -0
  65. package/dist/api/schema/admin-api/administrator.api.graphql +47 -47
  66. package/dist/api/schema/admin-api/administrator.type.graphql +14 -14
  67. package/dist/api/schema/admin-api/asset.api.graphql +68 -68
  68. package/dist/api/schema/admin-api/auth.api.graphql +22 -22
  69. package/dist/api/schema/admin-api/channel.api.graphql +69 -69
  70. package/dist/api/schema/admin-api/collection-admin.type.graphql +4 -4
  71. package/dist/api/schema/admin-api/collection.api.graphql +94 -94
  72. package/dist/api/schema/admin-api/country.api.graphql +41 -41
  73. package/dist/api/schema/admin-api/customer-admin.type.graphql +4 -4
  74. package/dist/api/schema/admin-api/customer-group.api.graphql +37 -37
  75. package/dist/api/schema/admin-api/customer.api.graphql +63 -63
  76. package/dist/api/schema/admin-api/duplicate-entity.api.graphql +40 -40
  77. package/dist/api/schema/admin-api/facet-admin.type.graphql +3 -3
  78. package/dist/api/schema/admin-api/facet.api.graphql +100 -100
  79. package/dist/api/schema/admin-api/global-settings.api.graphql +26 -26
  80. package/dist/api/schema/admin-api/global-settings.type.graphql +28 -28
  81. package/dist/api/schema/admin-api/history-entry-admin.type.graphql +4 -4
  82. package/dist/api/schema/admin-api/import.api.graphql +3 -3
  83. package/dist/api/schema/admin-api/import.type.graphql +5 -5
  84. package/dist/api/schema/admin-api/job.api.graphql +63 -63
  85. package/dist/api/schema/admin-api/order-admin.type.graphql +37 -37
  86. package/dist/api/schema/admin-api/order.api.graphql +463 -463
  87. package/dist/api/schema/admin-api/payment-method.api.graphql +65 -65
  88. package/dist/api/schema/admin-api/payment.api.graphql +2 -2
  89. package/dist/api/schema/admin-api/product-admin.type.graphql +21 -21
  90. package/dist/api/schema/admin-api/product-option-group.api.graphql +58 -58
  91. package/dist/api/schema/admin-api/product-search-admin.type.graphql +5 -5
  92. package/dist/api/schema/admin-api/product-search.api.graphql +10 -10
  93. package/dist/api/schema/admin-api/product.api.graphql +225 -222
  94. package/dist/api/schema/admin-api/promotion.api.graphql +70 -70
  95. package/dist/api/schema/admin-api/province.api.graphql +37 -37
  96. package/dist/api/schema/admin-api/role.api.graphql +33 -33
  97. package/dist/api/schema/admin-api/seller.api.graphql +31 -31
  98. package/dist/api/schema/admin-api/shipping-method.api.graphql +91 -91
  99. package/dist/api/schema/admin-api/stock-level.type.graphql +9 -9
  100. package/dist/api/schema/admin-api/stock-location.api.graphql +51 -51
  101. package/dist/api/schema/admin-api/stock-location.type.graphql +7 -7
  102. package/dist/api/schema/admin-api/stock-movement.type.graphql +80 -80
  103. package/dist/api/schema/admin-api/tag.api.graphql +25 -25
  104. package/dist/api/schema/admin-api/tax-category.api.graphql +36 -36
  105. package/dist/api/schema/admin-api/tax-rate.api.graphql +37 -37
  106. package/dist/api/schema/admin-api/zone.api.graphql +42 -42
  107. package/dist/api/schema/common/address.type.graphql +16 -16
  108. package/dist/api/schema/common/asset.type.graphql +31 -31
  109. package/dist/api/schema/common/auth.type.graphql +12 -12
  110. package/dist/api/schema/common/channel.type.graphql +24 -24
  111. package/dist/api/schema/common/collection.type.graphql +40 -40
  112. package/dist/api/schema/common/common-enums.graphql +35 -35
  113. package/dist/api/schema/common/common-error-results.graphql +107 -107
  114. package/dist/api/schema/common/common-types.graphql +285 -285
  115. package/dist/api/schema/common/currency-code.graphql +322 -322
  116. package/dist/api/schema/common/custom-field-types.graphql +265 -265
  117. package/dist/api/schema/common/customer-group.type.graphql +10 -10
  118. package/dist/api/schema/common/customer.type.graphql +18 -18
  119. package/dist/api/schema/common/facet-value.type.graphql +19 -19
  120. package/dist/api/schema/common/facet.type.graphql +35 -35
  121. package/dist/api/schema/common/history-entry.type.graphql +43 -43
  122. package/dist/api/schema/common/language-code.graphql +325 -325
  123. package/dist/api/schema/common/order.type.graphql +257 -257
  124. package/dist/api/schema/common/payment-method.type.graphql +21 -21
  125. package/dist/api/schema/common/product-option-group.type.graphql +38 -38
  126. package/dist/api/schema/common/product-search.type.graphql +69 -69
  127. package/dist/api/schema/common/product.type.graphql +70 -70
  128. package/dist/api/schema/common/promotion.type.graphql +31 -31
  129. package/dist/api/schema/common/region.type.graphql +65 -65
  130. package/dist/api/schema/common/role.type.graphql +14 -14
  131. package/dist/api/schema/common/seller.type.graphql +6 -6
  132. package/dist/api/schema/common/shipping-method.type.graphql +27 -27
  133. package/dist/api/schema/common/tag.type.graphql +11 -11
  134. package/dist/api/schema/common/tax-category.type.graphql +7 -7
  135. package/dist/api/schema/common/tax-rate.type.graphql +16 -16
  136. package/dist/api/schema/common/user.type.graphql +17 -17
  137. package/dist/api/schema/common/zone.type.graphql +8 -8
  138. package/dist/api/schema/shop-api/shop-error-results.graphql +114 -114
  139. package/dist/api/schema/shop-api/shop.api.graphql +287 -267
  140. package/dist/bootstrap.d.ts +4 -0
  141. package/dist/bootstrap.js +7 -7
  142. package/dist/bootstrap.js.map +1 -1
  143. package/dist/common/calculated-decorator.js +2 -2
  144. package/dist/common/calculated-decorator.js.map +1 -1
  145. package/dist/common/constants.js +2 -2
  146. package/dist/common/constants.js.map +1 -1
  147. package/dist/common/error/error-result.js +1 -2
  148. package/dist/common/error/error-result.js.map +1 -1
  149. package/dist/common/finite-state-machine/merge-transition-definitions.js +1 -2
  150. package/dist/common/finite-state-machine/merge-transition-definitions.js.map +1 -1
  151. package/dist/common/finite-state-machine/validate-transition-definition.js +1 -2
  152. package/dist/common/finite-state-machine/validate-transition-definition.js.map +1 -1
  153. package/dist/common/generate-public-id.js +1 -2
  154. package/dist/common/generate-public-id.js.map +1 -1
  155. package/dist/common/permission-definition.d.ts +1 -1
  156. package/dist/common/round-money.js +1 -2
  157. package/dist/common/round-money.js.map +1 -1
  158. package/dist/common/self-refreshing-cache.js +1 -2
  159. package/dist/common/self-refreshing-cache.js.map +1 -1
  160. package/dist/common/tax-utils.js +4 -5
  161. package/dist/common/tax-utils.js.map +1 -1
  162. package/dist/common/ttl-cache.js +4 -1
  163. package/dist/common/ttl-cache.js.map +1 -1
  164. package/dist/common/utils.js +10 -11
  165. package/dist/common/utils.js.map +1 -1
  166. package/dist/config/asset-import-strategy/asset-import-strategy.d.ts +0 -1
  167. package/dist/config/asset-import-strategy/default-asset-import-strategy.d.ts +0 -1
  168. package/dist/config/asset-preview-strategy/asset-preview-strategy.d.ts +0 -1
  169. package/dist/config/asset-preview-strategy/no-asset-preview-strategy.d.ts +0 -1
  170. package/dist/config/asset-storage-strategy/asset-storage-strategy.d.ts +0 -2
  171. package/dist/config/asset-storage-strategy/no-asset-storage-strategy.d.ts +0 -2
  172. package/dist/config/auth/default-verification-token-strategy.d.ts +27 -0
  173. package/dist/config/auth/default-verification-token-strategy.js +51 -0
  174. package/dist/config/auth/default-verification-token-strategy.js.map +1 -0
  175. package/dist/config/auth/native-authentication-strategy.js +5 -5
  176. package/dist/config/auth/verification-token-strategy.d.ts +32 -0
  177. package/dist/config/auth/verification-token-strategy.js +3 -0
  178. package/dist/config/auth/verification-token-strategy.js.map +1 -0
  179. package/dist/config/catalog/default-collection-filters.js +2 -2
  180. package/dist/config/catalog/default-collection-filters.js.map +1 -1
  181. package/dist/config/config-helpers.js +4 -5
  182. package/dist/config/config-helpers.js.map +1 -1
  183. package/dist/config/config.module.js +2 -1
  184. package/dist/config/config.module.js.map +1 -1
  185. package/dist/config/default-config.js +2 -0
  186. package/dist/config/default-config.js.map +1 -1
  187. package/dist/config/index.d.ts +2 -0
  188. package/dist/config/index.js +2 -0
  189. package/dist/config/index.js.map +1 -1
  190. package/dist/config/job-queue/inspectable-job-queue-strategy.js +1 -2
  191. package/dist/config/job-queue/inspectable-job-queue-strategy.js.map +1 -1
  192. package/dist/config/merge-config.js +1 -2
  193. package/dist/config/merge-config.js.map +1 -1
  194. package/dist/config/order/default-order-process.js +2 -2
  195. package/dist/config/order/default-order-process.js.map +1 -1
  196. package/dist/config/order/order-merge-strategy.js +1 -2
  197. package/dist/config/order/order-merge-strategy.js.map +1 -1
  198. package/dist/config/payment/payment-method-handler.d.ts +4 -4
  199. package/dist/config/session-cache/default-session-cache-strategy.d.ts +2 -2
  200. package/dist/config/session-cache/in-memory-session-cache-strategy.js +4 -1
  201. package/dist/config/session-cache/in-memory-session-cache-strategy.js.map +1 -1
  202. package/dist/config/system/in-memory-cache-strategy.js +4 -1
  203. package/dist/config/system/in-memory-cache-strategy.js.map +1 -1
  204. package/dist/config/vendure-config.d.ts +9 -0
  205. package/dist/connection/find-options-object-to-array.js +1 -2
  206. package/dist/connection/find-options-object-to-array.js.map +1 -1
  207. package/dist/data-import/providers/import-parser/import-parser.d.ts +0 -1
  208. package/dist/data-import/providers/importer/importer.d.ts +0 -1
  209. package/dist/entity/entity-id.decorator.js +4 -5
  210. package/dist/entity/entity-id.decorator.js.map +1 -1
  211. package/dist/entity/money.decorator.js +2 -3
  212. package/dist/entity/money.decorator.js.map +1 -1
  213. package/dist/entity/register-custom-entity-fields.js +1 -2
  214. package/dist/entity/register-custom-entity-fields.js.map +1 -1
  215. package/dist/entity/run-entity-metadata-modifiers.js +1 -2
  216. package/dist/entity/run-entity-metadata-modifiers.js.map +1 -1
  217. package/dist/entity/set-entity-id-strategy.js +1 -2
  218. package/dist/entity/set-entity-id-strategy.js.map +1 -1
  219. package/dist/entity/set-money-strategy.js +1 -2
  220. package/dist/entity/set-money-strategy.js.map +1 -1
  221. package/dist/entity/validate-custom-fields-config.js +1 -2
  222. package/dist/entity/validate-custom-fields-config.js.map +1 -1
  223. package/dist/i18n/i18n.service.js +17 -7
  224. package/dist/i18n/i18n.service.js.map +1 -1
  225. package/dist/i18n/messages/de.json +117 -117
  226. package/dist/i18n/messages/en.json +140 -140
  227. package/dist/i18n/messages/es.json +38 -38
  228. package/dist/i18n/messages/fr.json +138 -138
  229. package/dist/i18n/messages/pt_BR.json +99 -99
  230. package/dist/i18n/messages/pt_PT.json +118 -118
  231. package/dist/i18n/messages/ru.json +118 -118
  232. package/dist/i18n/messages/uk.json +118 -118
  233. package/dist/index.d.ts +1 -1
  234. package/dist/index.js +2 -4
  235. package/dist/index.js.map +1 -1
  236. package/dist/migrate.js +18 -19
  237. package/dist/migrate.js.map +1 -1
  238. package/dist/plugin/default-cache-plugin/cache-item.entity.js +1 -1
  239. package/dist/plugin/default-cache-plugin/cache-item.entity.js.map +1 -1
  240. package/dist/plugin/default-search-plugin/api/api-extensions.js +8 -8
  241. package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +3 -3
  242. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js +5 -5
  243. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-common.js +2 -2
  244. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-common.js.map +1 -1
  245. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.js +5 -6
  246. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.js.map +1 -1
  247. package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js +4 -4
  248. package/dist/plugin/dynamic-plugin-api.module.d.ts +0 -5
  249. package/dist/plugin/dynamic-plugin-api.module.js +1 -16
  250. package/dist/plugin/dynamic-plugin-api.module.js.map +1 -1
  251. package/dist/plugin/index.d.ts +1 -0
  252. package/dist/plugin/index.js +1 -0
  253. package/dist/plugin/index.js.map +1 -1
  254. package/dist/plugin/plugin-metadata.d.ts +3 -1
  255. package/dist/plugin/plugin-metadata.js +15 -10
  256. package/dist/plugin/plugin-metadata.js.map +1 -1
  257. package/dist/plugin/plugin-utils.js +3 -4
  258. package/dist/plugin/plugin-utils.js.map +1 -1
  259. package/dist/plugin/vendure-plugin.d.ts +4 -0
  260. package/dist/plugin/vendure-plugin.js +1 -2
  261. package/dist/plugin/vendure-plugin.js.map +1 -1
  262. package/dist/process-context/process-context.js +2 -2
  263. package/dist/process-context/process-context.js.map +1 -1
  264. package/dist/service/helpers/entity-hydrator/merge-deep.js +1 -2
  265. package/dist/service/helpers/entity-hydrator/merge-deep.js.map +1 -1
  266. package/dist/service/helpers/list-query-builder/connection-utils.js +3 -4
  267. package/dist/service/helpers/list-query-builder/connection-utils.js.map +1 -1
  268. package/dist/service/helpers/list-query-builder/get-calculated-columns.js +1 -2
  269. package/dist/service/helpers/list-query-builder/get-calculated-columns.js.map +1 -1
  270. package/dist/service/helpers/list-query-builder/list-query-builder.js +2 -2
  271. package/dist/service/helpers/list-query-builder/list-query-builder.js.map +1 -1
  272. package/dist/service/helpers/list-query-builder/parse-filter-params.js +1 -2
  273. package/dist/service/helpers/list-query-builder/parse-filter-params.js.map +1 -1
  274. package/dist/service/helpers/list-query-builder/parse-sort-params.js +1 -2
  275. package/dist/service/helpers/list-query-builder/parse-sort-params.js.map +1 -1
  276. package/dist/service/helpers/order-calculator/order-calculator.js.map +1 -1
  277. package/dist/service/helpers/order-calculator/prorate.js +1 -2
  278. package/dist/service/helpers/order-calculator/prorate.js.map +1 -1
  279. package/dist/service/helpers/translatable-saver/translatable-saver.js.map +1 -1
  280. package/dist/service/helpers/utils/address-to-line.js +1 -2
  281. package/dist/service/helpers/utils/address-to-line.js.map +1 -1
  282. package/dist/service/helpers/utils/get-user-channels-permissions.js +2 -3
  283. package/dist/service/helpers/utils/get-user-channels-permissions.js.map +1 -1
  284. package/dist/service/helpers/utils/move-to-index.js +1 -2
  285. package/dist/service/helpers/utils/move-to-index.js.map +1 -1
  286. package/dist/service/helpers/utils/order-utils.js +8 -9
  287. package/dist/service/helpers/utils/order-utils.js.map +1 -1
  288. package/dist/service/helpers/utils/patch-entity.js +1 -2
  289. package/dist/service/helpers/utils/patch-entity.js.map +1 -1
  290. package/dist/service/helpers/utils/samples-each.js +1 -2
  291. package/dist/service/helpers/utils/samples-each.js.map +1 -1
  292. package/dist/service/helpers/utils/translate-entity.js +3 -4
  293. package/dist/service/helpers/utils/translate-entity.js.map +1 -1
  294. package/dist/service/helpers/utils/tree-relations-qb-joiner.js +1 -2
  295. package/dist/service/helpers/utils/tree-relations-qb-joiner.js.map +1 -1
  296. package/dist/service/helpers/verification-token-generator/verification-token-generator.d.ts +10 -6
  297. package/dist/service/helpers/verification-token-generator/verification-token-generator.js +11 -24
  298. package/dist/service/helpers/verification-token-generator/verification-token-generator.js.map +1 -1
  299. package/dist/service/services/asset.service.d.ts +0 -2
  300. package/dist/service/services/payment-method.service.d.ts +1 -0
  301. package/dist/service/services/payment-method.service.js +6 -0
  302. package/dist/service/services/payment-method.service.js.map +1 -1
  303. package/dist/service/services/product-variant.service.js +4 -2
  304. package/dist/service/services/product-variant.service.js.map +1 -1
  305. package/dist/service/services/user.service.js +13 -7
  306. package/dist/service/services/user.service.js.map +1 -1
  307. package/package.json +17 -18
  308. package/cli/cli-utils.d.ts +0 -1
  309. package/cli/cli-utils.js +0 -8
  310. package/cli/cli-utils.js.map +0 -1
  311. package/cli/vendure-cli.d.ts +0 -2
  312. package/cli/vendure-cli.js +0 -119
  313. package/cli/vendure-cli.js.map +0 -1
@@ -1,8 +1,8 @@
1
- type Zone implements Node {
2
- id: ID!
3
- createdAt: DateTime!
4
- updatedAt: DateTime!
5
- name: String!
6
- members: [Region!]!
7
- }
8
-
1
+ type Zone implements Node {
2
+ id: ID!
3
+ createdAt: DateTime!
4
+ updatedAt: DateTime!
5
+ name: String!
6
+ members: [Region!]!
7
+ }
8
+
@@ -1,114 +1,114 @@
1
- "Returned when attempting to add a Payment to an Order that is not in the `ArrangingPayment` state."
2
- type OrderPaymentStateError implements ErrorResult {
3
- errorCode: ErrorCode!
4
- message: String!
5
- }
6
-
7
- "Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible."
8
- type IneligiblePaymentMethodError implements ErrorResult {
9
- errorCode: ErrorCode!
10
- message: String!
11
- eligibilityCheckerMessage: String
12
- }
13
-
14
- "Returned when a Payment fails due to an error."
15
- type PaymentFailedError implements ErrorResult {
16
- errorCode: ErrorCode!
17
- message: String!
18
- paymentErrorMessage: String!
19
- }
20
-
21
- "Returned when a Payment is declined by the payment provider."
22
- type PaymentDeclinedError implements ErrorResult {
23
- errorCode: ErrorCode!
24
- message: String!
25
- paymentErrorMessage: String!
26
- }
27
-
28
- "Returned when attempting to set the Customer for an Order when already logged in."
29
- type AlreadyLoggedInError implements ErrorResult {
30
- errorCode: ErrorCode!
31
- message: String!
32
- }
33
-
34
- "Returned when attempting to register or verify a customer account without a password, when one is required."
35
- type MissingPasswordError implements ErrorResult {
36
- errorCode: ErrorCode!
37
- message: String!
38
- }
39
-
40
- "Returned when attempting to register or verify a customer account where the given password fails password validation."
41
- type PasswordValidationError implements ErrorResult {
42
- errorCode: ErrorCode!
43
- message: String!
44
- validationErrorMessage: String!
45
- }
46
-
47
- "Returned when attempting to verify a customer account with a password, when a password has already been set."
48
- type PasswordAlreadySetError implements ErrorResult {
49
- errorCode: ErrorCode!
50
- message: String!
51
- }
52
-
53
- """
54
- Returned if the verification token (used to verify a Customer's email address) is either
55
- invalid or does not match any expected tokens.
56
- """
57
- type VerificationTokenInvalidError implements ErrorResult {
58
- errorCode: ErrorCode!
59
- message: String!
60
- }
61
-
62
- """
63
- Returned if the verification token (used to verify a Customer's email address) is valid, but has
64
- expired according to the `verificationTokenDuration` setting in the AuthOptions.
65
- """
66
- type VerificationTokenExpiredError implements ErrorResult {
67
- errorCode: ErrorCode!
68
- message: String!
69
- }
70
-
71
- """
72
- Returned if the token used to change a Customer's email address is either
73
- invalid or does not match any expected tokens.
74
- """
75
- type IdentifierChangeTokenInvalidError implements ErrorResult {
76
- errorCode: ErrorCode!
77
- message: String!
78
- }
79
-
80
- """
81
- Returned if the token used to change a Customer's email address is valid, but has
82
- expired according to the `verificationTokenDuration` setting in the AuthOptions.
83
- """
84
- type IdentifierChangeTokenExpiredError implements ErrorResult {
85
- errorCode: ErrorCode!
86
- message: String!
87
- }
88
-
89
- """
90
- Returned if the token used to reset a Customer's password is either
91
- invalid or does not match any expected tokens.
92
- """
93
- type PasswordResetTokenInvalidError implements ErrorResult {
94
- errorCode: ErrorCode!
95
- message: String!
96
- }
97
-
98
- """
99
- Returned if the token used to reset a Customer's password is valid, but has
100
- expired according to the `verificationTokenDuration` setting in the AuthOptions.
101
- """
102
- type PasswordResetTokenExpiredError implements ErrorResult {
103
- errorCode: ErrorCode!
104
- message: String!
105
- }
106
-
107
- """
108
- Returned if `authOptions.requireVerification` is set to `true` (which is the default)
109
- and an unverified user attempts to authenticate.
110
- """
111
- type NotVerifiedError implements ErrorResult {
112
- errorCode: ErrorCode!
113
- message: String!
114
- }
1
+ "Returned when attempting to add a Payment to an Order that is not in the `ArrangingPayment` state."
2
+ type OrderPaymentStateError implements ErrorResult {
3
+ errorCode: ErrorCode!
4
+ message: String!
5
+ }
6
+
7
+ "Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible."
8
+ type IneligiblePaymentMethodError implements ErrorResult {
9
+ errorCode: ErrorCode!
10
+ message: String!
11
+ eligibilityCheckerMessage: String
12
+ }
13
+
14
+ "Returned when a Payment fails due to an error."
15
+ type PaymentFailedError implements ErrorResult {
16
+ errorCode: ErrorCode!
17
+ message: String!
18
+ paymentErrorMessage: String!
19
+ }
20
+
21
+ "Returned when a Payment is declined by the payment provider."
22
+ type PaymentDeclinedError implements ErrorResult {
23
+ errorCode: ErrorCode!
24
+ message: String!
25
+ paymentErrorMessage: String!
26
+ }
27
+
28
+ "Returned when attempting to set the Customer for an Order when already logged in."
29
+ type AlreadyLoggedInError implements ErrorResult {
30
+ errorCode: ErrorCode!
31
+ message: String!
32
+ }
33
+
34
+ "Returned when attempting to register or verify a customer account without a password, when one is required."
35
+ type MissingPasswordError implements ErrorResult {
36
+ errorCode: ErrorCode!
37
+ message: String!
38
+ }
39
+
40
+ "Returned when attempting to register or verify a customer account where the given password fails password validation."
41
+ type PasswordValidationError implements ErrorResult {
42
+ errorCode: ErrorCode!
43
+ message: String!
44
+ validationErrorMessage: String!
45
+ }
46
+
47
+ "Returned when attempting to verify a customer account with a password, when a password has already been set."
48
+ type PasswordAlreadySetError implements ErrorResult {
49
+ errorCode: ErrorCode!
50
+ message: String!
51
+ }
52
+
53
+ """
54
+ Returned if the verification token (used to verify a Customer's email address) is either
55
+ invalid or does not match any expected tokens.
56
+ """
57
+ type VerificationTokenInvalidError implements ErrorResult {
58
+ errorCode: ErrorCode!
59
+ message: String!
60
+ }
61
+
62
+ """
63
+ Returned if the verification token (used to verify a Customer's email address) is valid, but has
64
+ expired according to the `verificationTokenDuration` setting in the AuthOptions.
65
+ """
66
+ type VerificationTokenExpiredError implements ErrorResult {
67
+ errorCode: ErrorCode!
68
+ message: String!
69
+ }
70
+
71
+ """
72
+ Returned if the token used to change a Customer's email address is either
73
+ invalid or does not match any expected tokens.
74
+ """
75
+ type IdentifierChangeTokenInvalidError implements ErrorResult {
76
+ errorCode: ErrorCode!
77
+ message: String!
78
+ }
79
+
80
+ """
81
+ Returned if the token used to change a Customer's email address is valid, but has
82
+ expired according to the `verificationTokenDuration` setting in the AuthOptions.
83
+ """
84
+ type IdentifierChangeTokenExpiredError implements ErrorResult {
85
+ errorCode: ErrorCode!
86
+ message: String!
87
+ }
88
+
89
+ """
90
+ Returned if the token used to reset a Customer's password is either
91
+ invalid or does not match any expected tokens.
92
+ """
93
+ type PasswordResetTokenInvalidError implements ErrorResult {
94
+ errorCode: ErrorCode!
95
+ message: String!
96
+ }
97
+
98
+ """
99
+ Returned if the token used to reset a Customer's password is valid, but has
100
+ expired according to the `verificationTokenDuration` setting in the AuthOptions.
101
+ """
102
+ type PasswordResetTokenExpiredError implements ErrorResult {
103
+ errorCode: ErrorCode!
104
+ message: String!
105
+ }
106
+
107
+ """
108
+ Returned if `authOptions.requireVerification` is set to `true` (which is the default)
109
+ and an unverified user attempts to authenticate.
110
+ """
111
+ type NotVerifiedError implements ErrorResult {
112
+ errorCode: ErrorCode!
113
+ message: String!
114
+ }