@vendure/core 1.4.6 → 1.5.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 (1181) hide show
  1. package/cli/api/common/extract-session-token.d.ts +3 -0
  2. package/cli/api/common/extract-session-token.js +35 -0
  3. package/cli/api/common/extract-session-token.js.map +1 -0
  4. package/cli/api/common/get-api-type.d.ts +3 -0
  5. package/cli/api/common/get-api-type.js +12 -0
  6. package/cli/api/common/get-api-type.js.map +1 -0
  7. package/cli/api/common/graphql-value-transformer.d.ts +30 -0
  8. package/cli/api/common/graphql-value-transformer.js +199 -0
  9. package/cli/api/common/graphql-value-transformer.js.map +1 -0
  10. package/cli/api/common/id-codec.d.ts +11 -0
  11. package/cli/api/common/id-codec.js +94 -0
  12. package/cli/api/common/id-codec.js.map +1 -0
  13. package/cli/api/common/id-codec.service.d.ts +7 -0
  14. package/cli/api/common/id-codec.service.js +33 -0
  15. package/cli/api/common/id-codec.service.js.map +1 -0
  16. package/cli/api/common/parse-context.d.ts +16 -0
  17. package/cli/api/common/parse-context.js +39 -0
  18. package/cli/api/common/parse-context.js.map +1 -0
  19. package/cli/api/common/request-context.d.ts +55 -0
  20. package/cli/api/common/request-context.js +143 -0
  21. package/cli/api/common/request-context.js.map +1 -0
  22. package/cli/api/common/set-session-token.d.ts +9 -0
  23. package/cli/api/common/set-session-token.js +27 -0
  24. package/cli/api/common/set-session-token.js.map +1 -0
  25. package/cli/api/decorators/allow.decorator.d.ts +3 -0
  26. package/cli/api/decorators/allow.decorator.js +8 -0
  27. package/cli/api/decorators/allow.decorator.js.map +1 -0
  28. package/cli/api/decorators/api.decorator.d.ts +1 -0
  29. package/cli/api/decorators/api.decorator.js +10 -0
  30. package/cli/api/decorators/api.decorator.js.map +1 -0
  31. package/cli/api/decorators/request-context.decorator.d.ts +1 -0
  32. package/cli/api/decorators/request-context.decorator.js +14 -0
  33. package/cli/api/decorators/request-context.decorator.js.map +1 -0
  34. package/cli/api/decorators/transaction.decorator.d.ts +3 -0
  35. package/cli/api/decorators/transaction.decorator.js +11 -0
  36. package/cli/api/decorators/transaction.decorator.js.map +1 -0
  37. package/cli/api/index.d.ts +11 -0
  38. package/cli/api/index.js +23 -0
  39. package/cli/api/index.js.map +1 -0
  40. package/cli/api/middleware/auth-guard.d.ts +21 -0
  41. package/cli/api/middleware/auth-guard.js +151 -0
  42. package/cli/api/middleware/auth-guard.js.map +1 -0
  43. package/cli/api/middleware/exception-logger.filter.d.ts +6 -0
  44. package/cli/api/middleware/exception-logger.filter.js +82 -0
  45. package/cli/api/middleware/exception-logger.filter.js.map +1 -0
  46. package/cli/api/middleware/id-interceptor.d.ts +12 -0
  47. package/cli/api/middleware/id-interceptor.js +56 -0
  48. package/cli/api/middleware/id-interceptor.js.map +1 -0
  49. package/cli/api/middleware/transaction-interceptor.d.ts +12 -0
  50. package/cli/api/middleware/transaction-interceptor.js +46 -0
  51. package/cli/api/middleware/transaction-interceptor.js.map +1 -0
  52. package/cli/api/resolvers/admin/search.resolver.d.ts +17 -0
  53. package/cli/api/resolvers/admin/search.resolver.js +81 -0
  54. package/cli/api/resolvers/admin/search.resolver.js.map +1 -0
  55. package/cli/cache/index.d.ts +1 -0
  56. package/cli/cache/index.js +14 -0
  57. package/cli/cache/index.js.map +1 -0
  58. package/cli/cache/request-context-cache.service.d.ts +9 -0
  59. package/cli/cache/request-context-cache.service.js +39 -0
  60. package/cli/cache/request-context-cache.service.js.map +1 -0
  61. package/cli/cli/cli-utils.d.ts +1 -0
  62. package/cli/cli/cli-utils.js +8 -0
  63. package/cli/cli/cli-utils.js.map +1 -0
  64. package/cli/cli/index.d.ts +1 -0
  65. package/cli/cli/index.js +14 -0
  66. package/cli/cli/index.js.map +1 -0
  67. package/cli/cli/populate.d.ts +5 -0
  68. package/cli/cli/populate.js +106 -0
  69. package/cli/cli/populate.js.map +1 -0
  70. package/cli/cli/vendure-cli.d.ts +2 -0
  71. package/cli/cli/vendure-cli.js +119 -0
  72. package/cli/cli/vendure-cli.js.map +1 -0
  73. package/cli/common/async-queue.d.ts +17 -0
  74. package/cli/common/async-queue.js +56 -0
  75. package/cli/common/async-queue.js.map +1 -0
  76. package/cli/common/calculated-decorator.d.ts +12 -0
  77. package/cli/common/calculated-decorator.js +22 -0
  78. package/cli/common/calculated-decorator.js.map +1 -0
  79. package/cli/common/configurable-operation.d.ts +53 -0
  80. package/cli/common/configurable-operation.js +96 -0
  81. package/cli/common/configurable-operation.js.map +1 -0
  82. package/cli/common/constants.d.ts +7 -0
  83. package/cli/common/constants.js +66 -0
  84. package/cli/common/constants.js.map +1 -0
  85. package/cli/common/error/error-result.d.ts +8 -0
  86. package/cli/common/error/error-result.js +11 -0
  87. package/cli/common/error/error-result.js.map +1 -0
  88. package/cli/common/error/errors.d.ts +31 -0
  89. package/cli/common/error/errors.js +48 -0
  90. package/cli/common/error/errors.js.map +1 -0
  91. package/cli/common/error/generated-graphql-admin-errors.d.ts +309 -0
  92. package/cli/common/error/generated-graphql-admin-errors.js +446 -0
  93. package/cli/common/error/generated-graphql-admin-errors.js.map +1 -0
  94. package/cli/common/error/generated-graphql-shop-errors.d.ts +254 -0
  95. package/cli/common/error/generated-graphql-shop-errors.js +370 -0
  96. package/cli/common/error/generated-graphql-shop-errors.js.map +1 -0
  97. package/cli/common/finite-state-machine/finite-state-machine.d.ts +14 -0
  98. package/cli/common/finite-state-machine/finite-state-machine.js +55 -0
  99. package/cli/common/finite-state-machine/finite-state-machine.js.map +1 -0
  100. package/cli/common/finite-state-machine/merge-transition-definitions.d.ts +2 -0
  101. package/cli/common/finite-state-machine/merge-transition-definitions.js +27 -0
  102. package/cli/common/finite-state-machine/merge-transition-definitions.js.map +1 -0
  103. package/cli/common/finite-state-machine/types.d.ts +16 -0
  104. package/cli/common/finite-state-machine/types.js +3 -0
  105. package/cli/common/finite-state-machine/types.js.map +1 -0
  106. package/cli/common/finite-state-machine/validate-transition-definition.d.ts +5 -0
  107. package/cli/common/finite-state-machine/validate-transition-definition.js +41 -0
  108. package/cli/common/finite-state-machine/validate-transition-definition.js.map +1 -0
  109. package/cli/common/generate-public-id.d.ts +1 -0
  110. package/cli/common/generate-public-id.js +10 -0
  111. package/cli/common/generate-public-id.js.map +1 -0
  112. package/cli/common/index.d.ts +15 -0
  113. package/cli/common/index.js +28 -0
  114. package/cli/common/index.js.map +1 -0
  115. package/cli/common/injector.d.ts +8 -0
  116. package/cli/common/injector.js +16 -0
  117. package/cli/common/injector.js.map +1 -0
  118. package/cli/common/permission-definition.d.ts +23 -0
  119. package/cli/common/permission-definition.js +53 -0
  120. package/cli/common/permission-definition.js.map +1 -0
  121. package/cli/common/self-refreshing-cache.d.ts +15 -0
  122. package/cli/common/self-refreshing-cache.js +56 -0
  123. package/cli/common/self-refreshing-cache.js.map +1 -0
  124. package/cli/common/tax-utils.d.ts +4 -0
  125. package/cli/common/tax-utils.js +20 -0
  126. package/cli/common/tax-utils.js.map +1 -0
  127. package/cli/common/ttl-cache.d.ts +13 -0
  128. package/cli/common/ttl-cache.js +48 -0
  129. package/cli/common/ttl-cache.js.map +1 -0
  130. package/cli/common/types/adjustment-source.d.ts +14 -0
  131. package/cli/common/types/adjustment-source.js +18 -0
  132. package/cli/common/types/adjustment-source.js.map +1 -0
  133. package/cli/common/types/common-types.d.ts +97 -0
  134. package/cli/common/types/common-types.js +3 -0
  135. package/cli/common/types/common-types.js.map +1 -0
  136. package/cli/common/types/entity-relation-paths.d.ts +16 -0
  137. package/cli/common/types/entity-relation-paths.js +3 -0
  138. package/cli/common/types/entity-relation-paths.js.map +1 -0
  139. package/cli/common/types/injectable-strategy.d.ts +5 -0
  140. package/cli/common/types/injectable-strategy.js +3 -0
  141. package/cli/common/types/injectable-strategy.js.map +1 -0
  142. package/cli/common/types/locale-types.d.ts +43 -0
  143. package/cli/common/types/locale-types.js +3 -0
  144. package/cli/common/types/locale-types.js.map +1 -0
  145. package/cli/common/utils.d.ts +11 -0
  146. package/cli/common/utils.js +66 -0
  147. package/cli/common/utils.js.map +1 -0
  148. package/cli/config/asset-naming-strategy/asset-naming-strategy.d.ts +6 -0
  149. package/cli/config/asset-naming-strategy/asset-naming-strategy.js +3 -0
  150. package/cli/config/asset-naming-strategy/asset-naming-strategy.js.map +1 -0
  151. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.d.ts +11 -0
  152. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.js +55 -0
  153. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.js.map +1 -0
  154. package/cli/config/asset-preview-strategy/asset-preview-strategy.d.ts +6 -0
  155. package/cli/config/asset-preview-strategy/asset-preview-strategy.js +3 -0
  156. package/cli/config/asset-preview-strategy/asset-preview-strategy.js.map +1 -0
  157. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.d.ts +6 -0
  158. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.js +11 -0
  159. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.js.map +1 -0
  160. package/cli/config/asset-storage-strategy/asset-storage-strategy.d.ts +13 -0
  161. package/cli/config/asset-storage-strategy/asset-storage-strategy.js +3 -0
  162. package/cli/config/asset-storage-strategy/asset-storage-strategy.js.map +1 -0
  163. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.d.ts +13 -0
  164. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.js +30 -0
  165. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.js.map +1 -0
  166. package/cli/config/auth/authentication-strategy.d.ts +10 -0
  167. package/cli/config/auth/authentication-strategy.js +3 -0
  168. package/cli/config/auth/authentication-strategy.js.map +1 -0
  169. package/cli/config/auth/bcrypt-password-hashing-strategy.d.ts +7 -0
  170. package/cli/config/auth/bcrypt-password-hashing-strategy.js +21 -0
  171. package/cli/config/auth/bcrypt-password-hashing-strategy.js.map +1 -0
  172. package/cli/config/auth/default-password-validation-strategy.d.ts +10 -0
  173. package/cli/config/auth/default-password-validation-strategy.js +24 -0
  174. package/cli/config/auth/default-password-validation-strategy.js.map +1 -0
  175. package/cli/config/auth/native-authentication-strategy.d.ts +21 -0
  176. package/cli/config/auth/native-authentication-strategy.js +87 -0
  177. package/cli/config/auth/native-authentication-strategy.js.map +1 -0
  178. package/cli/config/auth/password-hashing-strategy.d.ts +5 -0
  179. package/cli/config/auth/password-hashing-strategy.js +3 -0
  180. package/cli/config/auth/password-hashing-strategy.js.map +1 -0
  181. package/cli/config/auth/password-validation-strategy.d.ts +5 -0
  182. package/cli/config/auth/password-validation-strategy.js +3 -0
  183. package/cli/config/auth/password-validation-strategy.js.map +1 -0
  184. package/cli/config/catalog/collection-filter.d.ts +13 -0
  185. package/cli/config/catalog/collection-filter.js +15 -0
  186. package/cli/config/catalog/collection-filter.js.map +1 -0
  187. package/cli/config/catalog/default-collection-filters.d.ts +52 -0
  188. package/cli/config/catalog/default-collection-filters.js +112 -0
  189. package/cli/config/catalog/default-collection-filters.js.map +1 -0
  190. package/cli/config/catalog/default-product-variant-price-calculation-strategy.d.ts +8 -0
  191. package/cli/config/catalog/default-product-variant-price-calculation-strategy.js +31 -0
  192. package/cli/config/catalog/default-product-variant-price-calculation-strategy.js.map +1 -0
  193. package/cli/config/catalog/default-stock-display-strategy.d.ts +8 -0
  194. package/cli/config/catalog/default-stock-display-strategy.js +17 -0
  195. package/cli/config/catalog/default-stock-display-strategy.js.map +1 -0
  196. package/cli/config/catalog/product-variant-price-calculation-strategy.d.ts +13 -0
  197. package/cli/config/catalog/product-variant-price-calculation-strategy.js +3 -0
  198. package/cli/config/catalog/product-variant-price-calculation-strategy.js.map +1 -0
  199. package/cli/config/catalog/stock-display-strategy.d.ts +6 -0
  200. package/cli/config/catalog/stock-display-strategy.js +3 -0
  201. package/cli/config/catalog/stock-display-strategy.js.map +1 -0
  202. package/cli/config/config-helpers.d.ts +3 -0
  203. package/cli/config/config-helpers.js +15 -0
  204. package/cli/config/config-helpers.js.map +1 -0
  205. package/cli/config/config.module.d.ts +16 -0
  206. package/cli/config/config.module.js +120 -0
  207. package/cli/config/config.module.js.map +1 -0
  208. package/cli/config/config.service.d.ts +30 -0
  209. package/cli/config/config.service.js +86 -0
  210. package/cli/config/config.service.js.map +1 -0
  211. package/cli/config/custom-field/custom-field-types.d.ts +65 -0
  212. package/cli/config/custom-field/custom-field-types.js +3 -0
  213. package/cli/config/custom-field/custom-field-types.js.map +1 -0
  214. package/cli/config/default-config.d.ts +2 -0
  215. package/cli/config/default-config.js +174 -0
  216. package/cli/config/default-config.js.map +1 -0
  217. package/cli/config/entity-id-strategy/auto-increment-id-strategy.d.ts +6 -0
  218. package/cli/config/entity-id-strategy/auto-increment-id-strategy.js +17 -0
  219. package/cli/config/entity-id-strategy/auto-increment-id-strategy.js.map +1 -0
  220. package/cli/config/entity-id-strategy/entity-id-strategy.d.ts +7 -0
  221. package/cli/config/entity-id-strategy/entity-id-strategy.js +3 -0
  222. package/cli/config/entity-id-strategy/entity-id-strategy.js.map +1 -0
  223. package/cli/config/entity-id-strategy/uuid-id-strategy.d.ts +6 -0
  224. package/cli/config/entity-id-strategy/uuid-id-strategy.js +16 -0
  225. package/cli/config/entity-id-strategy/uuid-id-strategy.js.map +1 -0
  226. package/cli/config/fulfillment/custom-fulfillment-process.d.ts +9 -0
  227. package/cli/config/fulfillment/custom-fulfillment-process.js +3 -0
  228. package/cli/config/fulfillment/custom-fulfillment-process.js.map +1 -0
  229. package/cli/config/fulfillment/fulfillment-handler.d.ts +21 -0
  230. package/cli/config/fulfillment/fulfillment-handler.js +23 -0
  231. package/cli/config/fulfillment/fulfillment-handler.js.map +1 -0
  232. package/cli/config/fulfillment/manual-fulfillment-handler.d.ts +11 -0
  233. package/cli/config/fulfillment/manual-fulfillment-handler.js +26 -0
  234. package/cli/config/fulfillment/manual-fulfillment-handler.js.map +1 -0
  235. package/cli/config/index.d.ts +61 -0
  236. package/cli/config/index.js +74 -0
  237. package/cli/config/index.js.map +1 -0
  238. package/cli/config/job-queue/inspectable-job-queue-strategy.d.ts +12 -0
  239. package/cli/config/job-queue/inspectable-job-queue-strategy.js +11 -0
  240. package/cli/config/job-queue/inspectable-job-queue-strategy.js.map +1 -0
  241. package/cli/config/job-queue/job-queue-strategy.d.ts +8 -0
  242. package/cli/config/job-queue/job-queue-strategy.js +3 -0
  243. package/cli/config/job-queue/job-queue-strategy.js.map +1 -0
  244. package/cli/config/logger/default-logger.d.ts +24 -0
  245. package/cli/config/logger/default-logger.js +90 -0
  246. package/cli/config/logger/default-logger.js.map +1 -0
  247. package/cli/config/logger/noop-logger.d.ts +8 -0
  248. package/cli/config/logger/noop-logger.js +17 -0
  249. package/cli/config/logger/noop-logger.js.map +1 -0
  250. package/cli/config/logger/typeorm-logger.d.ts +15 -0
  251. package/cli/config/logger/typeorm-logger.js +74 -0
  252. package/cli/config/logger/typeorm-logger.js.map +1 -0
  253. package/cli/config/logger/vendure-logger.d.ts +32 -0
  254. package/cli/config/logger/vendure-logger.js +68 -0
  255. package/cli/config/logger/vendure-logger.js.map +1 -0
  256. package/cli/config/merge-config.d.ts +2 -0
  257. package/cli/config/merge-config.js +34 -0
  258. package/cli/config/merge-config.js.map +1 -0
  259. package/cli/config/order/changed-price-handling-strategy.d.ts +7 -0
  260. package/cli/config/order/changed-price-handling-strategy.js +3 -0
  261. package/cli/config/order/changed-price-handling-strategy.js.map +1 -0
  262. package/cli/config/order/custom-order-process.d.ts +9 -0
  263. package/cli/config/order/custom-order-process.js +3 -0
  264. package/cli/config/order/custom-order-process.js.map +1 -0
  265. package/cli/config/order/default-changed-price-handling-strategy.d.ts +6 -0
  266. package/cli/config/order/default-changed-price-handling-strategy.js +10 -0
  267. package/cli/config/order/default-changed-price-handling-strategy.js.map +1 -0
  268. package/cli/config/order/default-order-item-price-calculation-strategy.d.ts +7 -0
  269. package/cli/config/order/default-order-item-price-calculation-strategy.js +13 -0
  270. package/cli/config/order/default-order-item-price-calculation-strategy.js.map +1 -0
  271. package/cli/config/order/default-order-placed-strategy.d.ts +7 -0
  272. package/cli/config/order/default-order-placed-strategy.js +13 -0
  273. package/cli/config/order/default-order-placed-strategy.js.map +1 -0
  274. package/cli/config/order/default-stock-allocation-strategy.d.ts +7 -0
  275. package/cli/config/order/default-stock-allocation-strategy.js +11 -0
  276. package/cli/config/order/default-stock-allocation-strategy.js.map +1 -0
  277. package/cli/config/order/merge-orders-strategy.d.ts +7 -0
  278. package/cli/config/order/merge-orders-strategy.js +29 -0
  279. package/cli/config/order/merge-orders-strategy.js.map +1 -0
  280. package/cli/config/order/order-by-code-access-strategy.d.ts +11 -0
  281. package/cli/config/order/order-by-code-access-strategy.js +25 -0
  282. package/cli/config/order/order-by-code-access-strategy.js.map +1 -0
  283. package/cli/config/order/order-code-strategy.d.ts +8 -0
  284. package/cli/config/order/order-code-strategy.js +11 -0
  285. package/cli/config/order/order-code-strategy.js.map +1 -0
  286. package/cli/config/order/order-item-price-calculation-strategy.d.ts +9 -0
  287. package/cli/config/order/order-item-price-calculation-strategy.js +3 -0
  288. package/cli/config/order/order-item-price-calculation-strategy.js.map +1 -0
  289. package/cli/config/order/order-merge-strategy.d.ts +14 -0
  290. package/cli/config/order/order-merge-strategy.js +12 -0
  291. package/cli/config/order/order-merge-strategy.js.map +1 -0
  292. package/cli/config/order/order-placed-strategy.d.ts +7 -0
  293. package/cli/config/order/order-placed-strategy.js +3 -0
  294. package/cli/config/order/order-placed-strategy.js.map +1 -0
  295. package/cli/config/order/stock-allocation-strategy.d.ts +7 -0
  296. package/cli/config/order/stock-allocation-strategy.js +3 -0
  297. package/cli/config/order/stock-allocation-strategy.js.map +1 -0
  298. package/cli/config/order/use-existing-strategy.d.ts +6 -0
  299. package/cli/config/order/use-existing-strategy.js +11 -0
  300. package/cli/config/order/use-existing-strategy.js.map +1 -0
  301. package/cli/config/order/use-guest-if-existing-empty-strategy.d.ts +6 -0
  302. package/cli/config/order/use-guest-if-existing-empty-strategy.js +13 -0
  303. package/cli/config/order/use-guest-if-existing-empty-strategy.js.map +1 -0
  304. package/cli/config/order/use-guest-strategy.d.ts +6 -0
  305. package/cli/config/order/use-guest-strategy.js +11 -0
  306. package/cli/config/order/use-guest-strategy.js.map +1 -0
  307. package/cli/config/payment/custom-payment-process.d.ts +9 -0
  308. package/cli/config/payment/custom-payment-process.js +3 -0
  309. package/cli/config/payment/custom-payment-process.js.map +1 -0
  310. package/cli/config/payment/dummy-payment-method-handler.d.ts +17 -0
  311. package/cli/config/payment/dummy-payment-method-handler.js +74 -0
  312. package/cli/config/payment/dummy-payment-method-handler.js.map +1 -0
  313. package/cli/config/payment/example-payment-method-handler.d.ts +11 -0
  314. package/cli/config/payment/example-payment-method-handler.js +59 -0
  315. package/cli/config/payment/example-payment-method-handler.js.map +1 -0
  316. package/cli/config/payment/payment-method-eligibility-checker.d.ts +13 -0
  317. package/cli/config/payment/payment-method-eligibility-checker.js +15 -0
  318. package/cli/config/payment/payment-method-eligibility-checker.js.map +1 -0
  319. package/cli/config/payment/payment-method-handler.d.ts +73 -0
  320. package/cli/config/payment/payment-method-handler.js +36 -0
  321. package/cli/config/payment/payment-method-handler.js.map +1 -0
  322. package/cli/config/promotion/actions/buy-x-get-y-free-action.d.ts +37 -0
  323. package/cli/config/promotion/actions/buy-x-get-y-free-action.js +30 -0
  324. package/cli/config/promotion/actions/buy-x-get-y-free-action.js.map +1 -0
  325. package/cli/config/promotion/actions/facet-values-percentage-discount-action.d.ts +17 -0
  326. package/cli/config/promotion/actions/facet-values-percentage-discount-action.js +39 -0
  327. package/cli/config/promotion/actions/facet-values-percentage-discount-action.js.map +1 -0
  328. package/cli/config/promotion/actions/free-shipping-action.d.ts +2 -0
  329. package/cli/config/promotion/actions/free-shipping-action.js +14 -0
  330. package/cli/config/promotion/actions/free-shipping-action.js.map +1 -0
  331. package/cli/config/promotion/actions/order-fixed-discount-action.d.ts +9 -0
  332. package/cli/config/promotion/actions/order-fixed-discount-action.js +21 -0
  333. package/cli/config/promotion/actions/order-fixed-discount-action.js.map +1 -0
  334. package/cli/config/promotion/actions/order-percentage-discount-action.d.ts +10 -0
  335. package/cli/config/promotion/actions/order-percentage-discount-action.js +23 -0
  336. package/cli/config/promotion/actions/order-percentage-discount-action.js.map +1 -0
  337. package/cli/config/promotion/actions/product-percentage-discount-action.d.ts +22 -0
  338. package/cli/config/promotion/actions/product-percentage-discount-action.js +36 -0
  339. package/cli/config/promotion/actions/product-percentage-discount-action.js.map +1 -0
  340. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.d.ts +37 -0
  341. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.js +71 -0
  342. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.js.map +1 -0
  343. package/cli/config/promotion/conditions/contains-products-condition.d.ts +19 -0
  344. package/cli/config/promotion/conditions/contains-products-condition.js +38 -0
  345. package/cli/config/promotion/conditions/contains-products-condition.js.map +1 -0
  346. package/cli/config/promotion/conditions/customer-group-condition.d.ts +14 -0
  347. package/cli/config/promotion/conditions/customer-group-condition.js +72 -0
  348. package/cli/config/promotion/conditions/customer-group-condition.js.map +1 -0
  349. package/cli/config/promotion/conditions/has-facet-values-condition.d.ts +14 -0
  350. package/cli/config/promotion/conditions/has-facet-values-condition.js +31 -0
  351. package/cli/config/promotion/conditions/has-facet-values-condition.js.map +1 -0
  352. package/cli/config/promotion/conditions/min-order-amount-condition.d.ts +14 -0
  353. package/cli/config/promotion/conditions/min-order-amount-condition.js +27 -0
  354. package/cli/config/promotion/conditions/min-order-amount-condition.js.map +1 -0
  355. package/cli/config/promotion/index.d.ts +170 -0
  356. package/cli/config/promotion/index.js +50 -0
  357. package/cli/config/promotion/index.js.map +1 -0
  358. package/cli/config/promotion/promotion-action.d.ts +56 -0
  359. package/cli/config/promotion/promotion-action.js +49 -0
  360. package/cli/config/promotion/promotion-action.js.map +1 -0
  361. package/cli/config/promotion/promotion-condition.d.ts +19 -0
  362. package/cli/config/promotion/promotion-condition.js +19 -0
  363. package/cli/config/promotion/promotion-condition.js.map +1 -0
  364. package/cli/config/promotion/utils/facet-value-checker.d.ts +9 -0
  365. package/cli/config/promotion/utils/facet-value-checker.js +31 -0
  366. package/cli/config/promotion/utils/facet-value-checker.js.map +1 -0
  367. package/cli/config/session-cache/in-memory-session-cache-strategy.d.ts +11 -0
  368. package/cli/config/session-cache/in-memory-session-cache-strategy.js +44 -0
  369. package/cli/config/session-cache/in-memory-session-cache-strategy.js.map +1 -0
  370. package/cli/config/session-cache/noop-session-cache-strategy.d.ts +7 -0
  371. package/cli/config/session-cache/noop-session-cache-strategy.js +19 -0
  372. package/cli/config/session-cache/noop-session-cache-strategy.js.map +1 -0
  373. package/cli/config/session-cache/session-cache-strategy.d.ts +25 -0
  374. package/cli/config/session-cache/session-cache-strategy.js +3 -0
  375. package/cli/config/session-cache/session-cache-strategy.js.map +1 -0
  376. package/cli/config/shipping-method/default-shipping-calculator.d.ts +51 -0
  377. package/cli/config/shipping-method/default-shipping-calculator.js +69 -0
  378. package/cli/config/shipping-method/default-shipping-calculator.js.map +1 -0
  379. package/cli/config/shipping-method/default-shipping-eligibility-checker.d.ts +19 -0
  380. package/cli/config/shipping-method/default-shipping-eligibility-checker.js +27 -0
  381. package/cli/config/shipping-method/default-shipping-eligibility-checker.js.map +1 -0
  382. package/cli/config/shipping-method/shipping-calculator.d.ts +20 -0
  383. package/cli/config/shipping-method/shipping-calculator.js +15 -0
  384. package/cli/config/shipping-method/shipping-calculator.js.map +1 -0
  385. package/cli/config/shipping-method/shipping-eligibility-checker.d.ts +19 -0
  386. package/cli/config/shipping-method/shipping-eligibility-checker.js +38 -0
  387. package/cli/config/shipping-method/shipping-eligibility-checker.js.map +1 -0
  388. package/cli/config/tax/default-tax-line-calculation-strategy.d.ts +5 -0
  389. package/cli/config/tax/default-tax-line-calculation-strategy.js +11 -0
  390. package/cli/config/tax/default-tax-line-calculation-strategy.js.map +1 -0
  391. package/cli/config/tax/default-tax-zone-strategy.d.ts +6 -0
  392. package/cli/config/tax/default-tax-zone-strategy.js +10 -0
  393. package/cli/config/tax/default-tax-zone-strategy.js.map +1 -0
  394. package/cli/config/tax/tax-line-calculation-strategy.d.ts +17 -0
  395. package/cli/config/tax/tax-line-calculation-strategy.js +3 -0
  396. package/cli/config/tax/tax-line-calculation-strategy.js.map +1 -0
  397. package/cli/config/tax/tax-zone-strategy.d.ts +6 -0
  398. package/cli/config/tax/tax-zone-strategy.js +3 -0
  399. package/cli/config/tax/tax-zone-strategy.js.map +1 -0
  400. package/cli/config/vendure-config.d.ts +192 -0
  401. package/cli/config/vendure-config.js +3 -0
  402. package/cli/config/vendure-config.js.map +1 -0
  403. package/cli/connection/connection.module.d.ts +7 -0
  404. package/cli/connection/connection.module.js +61 -0
  405. package/cli/connection/connection.module.js.map +1 -0
  406. package/cli/connection/transaction-subscriber.d.ts +19 -0
  407. package/cli/connection/transaction-subscriber.js +54 -0
  408. package/cli/connection/transaction-subscriber.js.map +1 -0
  409. package/cli/connection/transaction-wrapper.d.ts +9 -0
  410. package/cli/connection/transaction-wrapper.js +79 -0
  411. package/cli/connection/transaction-wrapper.js.map +1 -0
  412. package/cli/connection/transactional-connection.d.ts +25 -0
  413. package/cli/connection/transactional-connection.js +170 -0
  414. package/cli/connection/transactional-connection.js.map +1 -0
  415. package/cli/connection/types.d.ts +8 -0
  416. package/cli/connection/types.js +3 -0
  417. package/cli/connection/types.js.map +1 -0
  418. package/cli/entity/address/address.entity.d.ts +22 -0
  419. package/cli/entity/address/address.entity.js +80 -0
  420. package/cli/entity/address/address.entity.js.map +1 -0
  421. package/cli/entity/administrator/administrator.entity.d.ts +15 -0
  422. package/cli/entity/administrator/administrator.entity.js +52 -0
  423. package/cli/entity/administrator/administrator.entity.js.map +1 -0
  424. package/cli/entity/asset/asset.entity.d.ts +26 -0
  425. package/cli/entity/asset/asset.entity.js +79 -0
  426. package/cli/entity/asset/asset.entity.js.map +1 -0
  427. package/cli/entity/asset/orderable-asset.entity.d.ts +10 -0
  428. package/cli/entity/asset/orderable-asset.entity.js +34 -0
  429. package/cli/entity/asset/orderable-asset.entity.js.map +1 -0
  430. package/cli/entity/authentication-method/authentication-method.entity.d.ts +5 -0
  431. package/cli/entity/authentication-method/authentication-method.entity.js +27 -0
  432. package/cli/entity/authentication-method/authentication-method.entity.js.map +1 -0
  433. package/cli/entity/authentication-method/external-authentication-method.entity.d.ts +8 -0
  434. package/cli/entity/authentication-method/external-authentication-method.entity.js +37 -0
  435. package/cli/entity/authentication-method/external-authentication-method.entity.js.map +1 -0
  436. package/cli/entity/authentication-method/native-authentication-method.entity.d.ts +11 -0
  437. package/cli/entity/authentication-method/native-authentication-method.entity.js +49 -0
  438. package/cli/entity/authentication-method/native-authentication-method.entity.js.map +1 -0
  439. package/cli/entity/base/base.entity.d.ts +7 -0
  440. package/cli/entity/base/base.entity.js +37 -0
  441. package/cli/entity/base/base.entity.js.map +1 -0
  442. package/cli/entity/channel/channel.entity.d.ts +17 -0
  443. package/cli/entity/channel/channel.entity.js +67 -0
  444. package/cli/entity/channel/channel.entity.js.map +1 -0
  445. package/cli/entity/collection/collection-asset.entity.d.ts +8 -0
  446. package/cli/entity/collection/collection-asset.entity.js +34 -0
  447. package/cli/entity/collection/collection-asset.entity.js.map +1 -0
  448. package/cli/entity/collection/collection-translation.entity.d.ts +16 -0
  449. package/cli/entity/collection/collection-translation.entity.js +52 -0
  450. package/cli/entity/collection/collection-translation.entity.js.map +1 -0
  451. package/cli/entity/collection/collection.entity.d.ts +29 -0
  452. package/cli/entity/collection/collection.entity.js +81 -0
  453. package/cli/entity/collection/collection.entity.js.map +1 -0
  454. package/cli/entity/country/country-translation.entity.d.ts +14 -0
  455. package/cli/entity/country/country-translation.entity.js +44 -0
  456. package/cli/entity/country/country-translation.entity.js.map +1 -0
  457. package/cli/entity/country/country.entity.d.ts +13 -0
  458. package/cli/entity/country/country.entity.js +43 -0
  459. package/cli/entity/country/country.entity.js.map +1 -0
  460. package/cli/entity/custom-entity-fields.d.ts +68 -0
  461. package/cli/entity/custom-entity-fields.js +106 -0
  462. package/cli/entity/custom-entity-fields.js.map +1 -0
  463. package/cli/entity/customer/customer.entity.d.ts +25 -0
  464. package/cli/entity/customer/customer.entity.js +82 -0
  465. package/cli/entity/customer/customer.entity.js.map +1 -0
  466. package/cli/entity/customer-group/customer-group.entity.d.ts +11 -0
  467. package/cli/entity/customer-group/customer-group.entity.js +39 -0
  468. package/cli/entity/customer-group/customer-group.entity.js.map +1 -0
  469. package/cli/entity/entities.d.ts +124 -0
  470. package/cli/entity/entities.js +128 -0
  471. package/cli/entity/entities.js.map +1 -0
  472. package/cli/entity/entity-id.decorator.d.ts +18 -0
  473. package/cli/entity/entity-id.decorator.js +40 -0
  474. package/cli/entity/entity-id.decorator.js.map +1 -0
  475. package/cli/entity/facet/facet-translation.entity.d.ts +14 -0
  476. package/cli/entity/facet/facet-translation.entity.js +44 -0
  477. package/cli/entity/facet/facet-translation.entity.js.map +1 -0
  478. package/cli/entity/facet/facet.entity.d.ts +18 -0
  479. package/cli/entity/facet/facet.entity.js +54 -0
  480. package/cli/entity/facet/facet.entity.js.map +1 -0
  481. package/cli/entity/facet-value/facet-value-translation.entity.d.ts +13 -0
  482. package/cli/entity/facet-value/facet-value-translation.entity.js +44 -0
  483. package/cli/entity/facet-value/facet-value-translation.entity.js.map +1 -0
  484. package/cli/entity/facet-value/facet-value.entity.d.ts +17 -0
  485. package/cli/entity/facet-value/facet-value.entity.js +50 -0
  486. package/cli/entity/facet-value/facet-value.entity.js.map +1 -0
  487. package/cli/entity/fulfillment/fulfillment.entity.d.ts +15 -0
  488. package/cli/entity/fulfillment/fulfillment.entity.js +51 -0
  489. package/cli/entity/fulfillment/fulfillment.entity.js.map +1 -0
  490. package/cli/entity/global-settings/global-settings.entity.d.ts +12 -0
  491. package/cli/entity/global-settings/global-settings.entity.js +42 -0
  492. package/cli/entity/global-settings/global-settings.entity.js.map +1 -0
  493. package/cli/entity/history-entry/customer-history-entry.entity.d.ts +7 -0
  494. package/cli/entity/history-entry/customer-history-entry.entity.js +30 -0
  495. package/cli/entity/history-entry/customer-history-entry.entity.js.map +1 -0
  496. package/cli/entity/history-entry/history-entry.entity.d.ts +9 -0
  497. package/cli/entity/history-entry/history-entry.entity.js +40 -0
  498. package/cli/entity/history-entry/history-entry.entity.js.map +1 -0
  499. package/cli/entity/history-entry/order-history-entry.entity.d.ts +7 -0
  500. package/cli/entity/history-entry/order-history-entry.entity.js +30 -0
  501. package/cli/entity/history-entry/order-history-entry.entity.js.map +1 -0
  502. package/cli/entity/index.d.ts +52 -0
  503. package/cli/entity/index.js +65 -0
  504. package/cli/entity/index.js.map +1 -0
  505. package/cli/entity/order/order.entity.d.ts +48 -0
  506. package/cli/entity/order/order.entity.js +277 -0
  507. package/cli/entity/order/order.entity.js.map +1 -0
  508. package/cli/entity/order-item/order-item.entity.d.ts +35 -0
  509. package/cli/entity/order-item/order-item.entity.js +182 -0
  510. package/cli/entity/order-item/order-item.entity.js.map +1 -0
  511. package/cli/entity/order-line/order-line.entity.d.ts +44 -0
  512. package/cli/entity/order-line/order-line.entity.js +275 -0
  513. package/cli/entity/order-line/order-line.entity.js.map +1 -0
  514. package/cli/entity/order-modification/order-modification.entity.d.ts +21 -0
  515. package/cli/entity/order-modification/order-modification.entity.js +81 -0
  516. package/cli/entity/order-modification/order-modification.entity.js.map +1 -0
  517. package/cli/entity/payment/payment.entity.d.ts +17 -0
  518. package/cli/entity/payment/payment.entity.js +59 -0
  519. package/cli/entity/payment/payment.entity.js.map +1 -0
  520. package/cli/entity/payment-method/payment-method.entity.d.ts +18 -0
  521. package/cli/entity/payment-method/payment-method.entity.js +60 -0
  522. package/cli/entity/payment-method/payment-method.entity.js.map +1 -0
  523. package/cli/entity/product/product-asset.entity.d.ts +8 -0
  524. package/cli/entity/product/product-asset.entity.js +34 -0
  525. package/cli/entity/product/product-asset.entity.js.map +1 -0
  526. package/cli/entity/product/product-translation.entity.d.ts +16 -0
  527. package/cli/entity/product/product-translation.entity.js +52 -0
  528. package/cli/entity/product/product-translation.entity.js.map +1 -0
  529. package/cli/entity/product/product.entity.d.ts +28 -0
  530. package/cli/entity/product/product.entity.js +75 -0
  531. package/cli/entity/product/product.entity.js.map +1 -0
  532. package/cli/entity/product-option/product-option-translation.entity.d.ts +14 -0
  533. package/cli/entity/product-option/product-option-translation.entity.js +44 -0
  534. package/cli/entity/product-option/product-option-translation.entity.js.map +1 -0
  535. package/cli/entity/product-option/product-option.entity.d.ts +17 -0
  536. package/cli/entity/product-option/product-option.entity.js +53 -0
  537. package/cli/entity/product-option/product-option.entity.js.map +1 -0
  538. package/cli/entity/product-option-group/product-option-group-translation.entity.d.ts +14 -0
  539. package/cli/entity/product-option-group/product-option-group-translation.entity.js +44 -0
  540. package/cli/entity/product-option-group/product-option-group-translation.entity.js.map +1 -0
  541. package/cli/entity/product-option-group/product-option-group.entity.d.ts +18 -0
  542. package/cli/entity/product-option-group/product-option-group.entity.js +53 -0
  543. package/cli/entity/product-option-group/product-option-group.entity.js.map +1 -0
  544. package/cli/entity/product-variant/product-variant-asset.entity.d.ts +8 -0
  545. package/cli/entity/product-variant/product-variant-asset.entity.js +34 -0
  546. package/cli/entity/product-variant/product-variant-asset.entity.js.map +1 -0
  547. package/cli/entity/product-variant/product-variant-price.entity.d.ts +9 -0
  548. package/cli/entity/product-variant/product-variant-price.entity.js +39 -0
  549. package/cli/entity/product-variant/product-variant-price.entity.js.map +1 -0
  550. package/cli/entity/product-variant/product-variant-translation.entity.d.ts +14 -0
  551. package/cli/entity/product-variant/product-variant-translation.entity.js +44 -0
  552. package/cli/entity/product-variant/product-variant-translation.entity.js.map +1 -0
  553. package/cli/entity/product-variant/product-variant.entity.d.ts +49 -0
  554. package/cli/entity/product-variant/product-variant.entity.js +155 -0
  555. package/cli/entity/product-variant/product-variant.entity.js.map +1 -0
  556. package/cli/entity/promotion/promotion.entity.d.ts +56 -0
  557. package/cli/entity/promotion/promotion.entity.js +157 -0
  558. package/cli/entity/promotion/promotion.entity.js.map +1 -0
  559. package/cli/entity/refund/refund.entity.d.ts +21 -0
  560. package/cli/entity/refund/refund.entity.js +78 -0
  561. package/cli/entity/refund/refund.entity.js.map +1 -0
  562. package/cli/entity/role/role.entity.d.ts +12 -0
  563. package/cli/entity/role/role.entity.js +43 -0
  564. package/cli/entity/role/role.entity.js.map +1 -0
  565. package/cli/entity/session/anonymous-session.entity.d.ts +5 -0
  566. package/cli/entity/session/anonymous-session.entity.js +25 -0
  567. package/cli/entity/session/anonymous-session.entity.js.map +1 -0
  568. package/cli/entity/session/authenticated-session.entity.d.ts +8 -0
  569. package/cli/entity/session/authenticated-session.entity.js +34 -0
  570. package/cli/entity/session/authenticated-session.entity.js.map +1 -0
  571. package/cli/entity/session/session.entity.d.ts +13 -0
  572. package/cli/entity/session/session.entity.js +54 -0
  573. package/cli/entity/session/session.entity.js.map +1 -0
  574. package/cli/entity/shipping-line/shipping-line.entity.d.ts +24 -0
  575. package/cli/entity/shipping-line/shipping-line.entity.js +128 -0
  576. package/cli/entity/shipping-line/shipping-line.entity.js.map +1 -0
  577. package/cli/entity/shipping-method/shipping-method-translation.entity.d.ts +16 -0
  578. package/cli/entity/shipping-method/shipping-method-translation.entity.js +48 -0
  579. package/cli/entity/shipping-method/shipping-method-translation.entity.js.map +1 -0
  580. package/cli/entity/shipping-method/shipping-method.entity.d.ts +28 -0
  581. package/cli/entity/shipping-method/shipping-method.entity.js +92 -0
  582. package/cli/entity/shipping-method/shipping-method.entity.js.map +1 -0
  583. package/cli/entity/stock-movement/allocation.entity.d.ts +9 -0
  584. package/cli/entity/stock-movement/allocation.entity.js +32 -0
  585. package/cli/entity/stock-movement/allocation.entity.js.map +1 -0
  586. package/cli/entity/stock-movement/cancellation.entity.d.ts +9 -0
  587. package/cli/entity/stock-movement/cancellation.entity.js +32 -0
  588. package/cli/entity/stock-movement/cancellation.entity.js.map +1 -0
  589. package/cli/entity/stock-movement/release.entity.d.ts +9 -0
  590. package/cli/entity/stock-movement/release.entity.js +32 -0
  591. package/cli/entity/stock-movement/release.entity.js.map +1 -0
  592. package/cli/entity/stock-movement/sale.entity.d.ts +9 -0
  593. package/cli/entity/stock-movement/sale.entity.js +32 -0
  594. package/cli/entity/stock-movement/sale.entity.js.map +1 -0
  595. package/cli/entity/stock-movement/stock-adjustment.entity.d.ts +7 -0
  596. package/cli/entity/stock-movement/stock-adjustment.entity.js +27 -0
  597. package/cli/entity/stock-movement/stock-adjustment.entity.js.map +1 -0
  598. package/cli/entity/stock-movement/stock-movement.entity.d.ts +8 -0
  599. package/cli/entity/stock-movement/stock-movement.entity.js +36 -0
  600. package/cli/entity/stock-movement/stock-movement.entity.js.map +1 -0
  601. package/cli/entity/surcharge/surcharge.entity.d.ts +18 -0
  602. package/cli/entity/surcharge/surcharge.entity.js +82 -0
  603. package/cli/entity/surcharge/surcharge.entity.js.map +1 -0
  604. package/cli/entity/tag/tag.entity.d.ts +6 -0
  605. package/cli/entity/tag/tag.entity.js +29 -0
  606. package/cli/entity/tag/tag.entity.js.map +1 -0
  607. package/cli/entity/tax-category/tax-category.entity.d.ts +10 -0
  608. package/cli/entity/tax-category/tax-category.entity.js +38 -0
  609. package/cli/entity/tax-category/tax-category.entity.js.map +1 -0
  610. package/cli/entity/tax-rate/tax-rate.entity.d.ts +24 -0
  611. package/cli/entity/tax-rate/tax-rate.entity.js +81 -0
  612. package/cli/entity/tax-rate/tax-rate.entity.js.map +1 -0
  613. package/cli/entity/user/user.entity.d.ts +19 -0
  614. package/cli/entity/user/user.entity.js +69 -0
  615. package/cli/entity/user/user.entity.js.map +1 -0
  616. package/cli/entity/value-transformers.d.ts +5 -0
  617. package/cli/entity/value-transformers.js +13 -0
  618. package/cli/entity/value-transformers.js.map +1 -0
  619. package/cli/entity/zone/zone.entity.d.ts +11 -0
  620. package/cli/entity/zone/zone.entity.js +40 -0
  621. package/cli/entity/zone/zone.entity.js.map +1 -0
  622. package/cli/event-bus/event-bus.d.ts +15 -0
  623. package/cli/event-bus/event-bus.js +51 -0
  624. package/cli/event-bus/event-bus.js.map +1 -0
  625. package/cli/event-bus/event-bus.module.d.ts +2 -0
  626. package/cli/event-bus/event-bus.module.js +23 -0
  627. package/cli/event-bus/event-bus.module.js.map +1 -0
  628. package/cli/event-bus/events/account-registration-event.d.ts +8 -0
  629. package/cli/event-bus/events/account-registration-event.js +13 -0
  630. package/cli/event-bus/events/account-registration-event.js.map +1 -0
  631. package/cli/event-bus/events/account-verified-event.d.ts +8 -0
  632. package/cli/event-bus/events/account-verified-event.js +13 -0
  633. package/cli/event-bus/events/account-verified-event.js.map +1 -0
  634. package/cli/event-bus/events/administrator-event.d.ts +10 -0
  635. package/cli/event-bus/events/administrator-event.js +11 -0
  636. package/cli/event-bus/events/administrator-event.js.map +1 -0
  637. package/cli/event-bus/events/asset-channel-event.d.ts +11 -0
  638. package/cli/event-bus/events/asset-channel-event.js +15 -0
  639. package/cli/event-bus/events/asset-channel-event.js.map +1 -0
  640. package/cli/event-bus/events/asset-event.d.ts +11 -0
  641. package/cli/event-bus/events/asset-event.js +14 -0
  642. package/cli/event-bus/events/asset-event.js.map +1 -0
  643. package/cli/event-bus/events/attempted-login-event.d.ts +8 -0
  644. package/cli/event-bus/events/attempted-login-event.js +14 -0
  645. package/cli/event-bus/events/attempted-login-event.js.map +1 -0
  646. package/cli/event-bus/events/change-channel-event.d.ts +13 -0
  647. package/cli/event-bus/events/change-channel-event.js +16 -0
  648. package/cli/event-bus/events/change-channel-event.js.map +1 -0
  649. package/cli/event-bus/events/channel-event.d.ts +10 -0
  650. package/cli/event-bus/events/channel-event.js +11 -0
  651. package/cli/event-bus/events/channel-event.js.map +1 -0
  652. package/cli/event-bus/events/collection-event.d.ts +10 -0
  653. package/cli/event-bus/events/collection-event.js +11 -0
  654. package/cli/event-bus/events/collection-event.js.map +1 -0
  655. package/cli/event-bus/events/collection-modification-event.d.ts +10 -0
  656. package/cli/event-bus/events/collection-modification-event.js +14 -0
  657. package/cli/event-bus/events/collection-modification-event.js.map +1 -0
  658. package/cli/event-bus/events/country-event.d.ts +10 -0
  659. package/cli/event-bus/events/country-event.js +11 -0
  660. package/cli/event-bus/events/country-event.js.map +1 -0
  661. package/cli/event-bus/events/coupon-code-event.d.ts +10 -0
  662. package/cli/event-bus/events/coupon-code-event.js +15 -0
  663. package/cli/event-bus/events/coupon-code-event.js.map +1 -0
  664. package/cli/event-bus/events/customer-address-event.d.ts +15 -0
  665. package/cli/event-bus/events/customer-address-event.js +18 -0
  666. package/cli/event-bus/events/customer-address-event.js.map +1 -0
  667. package/cli/event-bus/events/customer-event.d.ts +13 -0
  668. package/cli/event-bus/events/customer-event.js +14 -0
  669. package/cli/event-bus/events/customer-event.js.map +1 -0
  670. package/cli/event-bus/events/customer-group-entity-event.d.ts +10 -0
  671. package/cli/event-bus/events/customer-group-entity-event.js +11 -0
  672. package/cli/event-bus/events/customer-group-entity-event.js.map +1 -0
  673. package/cli/event-bus/events/customer-group-event.d.ts +18 -0
  674. package/cli/event-bus/events/customer-group-event.js +25 -0
  675. package/cli/event-bus/events/customer-group-event.js.map +1 -0
  676. package/cli/event-bus/events/facet-event.d.ts +10 -0
  677. package/cli/event-bus/events/facet-event.js +11 -0
  678. package/cli/event-bus/events/facet-event.js.map +1 -0
  679. package/cli/event-bus/events/facet-value-event.d.ts +10 -0
  680. package/cli/event-bus/events/facet-value-event.js +11 -0
  681. package/cli/event-bus/events/facet-value-event.js.map +1 -0
  682. package/cli/event-bus/events/fulfillment-event.d.ts +14 -0
  683. package/cli/event-bus/events/fulfillment-event.js +11 -0
  684. package/cli/event-bus/events/fulfillment-event.js.map +1 -0
  685. package/cli/event-bus/events/fulfillment-state-transition-event.d.ts +11 -0
  686. package/cli/event-bus/events/fulfillment-state-transition-event.js +15 -0
  687. package/cli/event-bus/events/fulfillment-state-transition-event.js.map +1 -0
  688. package/cli/event-bus/events/global-settings-event.d.ts +7 -0
  689. package/cli/event-bus/events/global-settings-event.js +11 -0
  690. package/cli/event-bus/events/global-settings-event.js.map +1 -0
  691. package/cli/event-bus/events/history-entry-event.d.ts +14 -0
  692. package/cli/event-bus/events/history-entry-event.js +12 -0
  693. package/cli/event-bus/events/history-entry-event.js.map +1 -0
  694. package/cli/event-bus/events/identifier-change-event.d.ts +9 -0
  695. package/cli/event-bus/events/identifier-change-event.js +14 -0
  696. package/cli/event-bus/events/identifier-change-event.js.map +1 -0
  697. package/cli/event-bus/events/identifier-change-request-event.d.ts +8 -0
  698. package/cli/event-bus/events/identifier-change-request-event.js +13 -0
  699. package/cli/event-bus/events/identifier-change-request-event.js.map +1 -0
  700. package/cli/event-bus/events/login-event.d.ts +8 -0
  701. package/cli/event-bus/events/login-event.js +13 -0
  702. package/cli/event-bus/events/login-event.js.map +1 -0
  703. package/cli/event-bus/events/logout-event.d.ts +6 -0
  704. package/cli/event-bus/events/logout-event.js +12 -0
  705. package/cli/event-bus/events/logout-event.js.map +1 -0
  706. package/cli/event-bus/events/order-event.d.ts +9 -0
  707. package/cli/event-bus/events/order-event.js +14 -0
  708. package/cli/event-bus/events/order-event.js.map +1 -0
  709. package/cli/event-bus/events/order-line-event.d.ts +10 -0
  710. package/cli/event-bus/events/order-line-event.js +15 -0
  711. package/cli/event-bus/events/order-line-event.js.map +1 -0
  712. package/cli/event-bus/events/order-placed-event.d.ts +11 -0
  713. package/cli/event-bus/events/order-placed-event.js +15 -0
  714. package/cli/event-bus/events/order-placed-event.js.map +1 -0
  715. package/cli/event-bus/events/order-state-transition-event.d.ts +11 -0
  716. package/cli/event-bus/events/order-state-transition-event.js +15 -0
  717. package/cli/event-bus/events/order-state-transition-event.js.map +1 -0
  718. package/cli/event-bus/events/password-reset-event.d.ts +8 -0
  719. package/cli/event-bus/events/password-reset-event.js +13 -0
  720. package/cli/event-bus/events/password-reset-event.js.map +1 -0
  721. package/cli/event-bus/events/password-reset-verified-event.d.ts +8 -0
  722. package/cli/event-bus/events/password-reset-verified-event.js +13 -0
  723. package/cli/event-bus/events/password-reset-verified-event.js.map +1 -0
  724. package/cli/event-bus/events/payment-method-event.d.ts +10 -0
  725. package/cli/event-bus/events/payment-method-event.js +11 -0
  726. package/cli/event-bus/events/payment-method-event.js.map +1 -0
  727. package/cli/event-bus/events/payment-state-transition-event.d.ts +13 -0
  728. package/cli/event-bus/events/payment-state-transition-event.js +16 -0
  729. package/cli/event-bus/events/payment-state-transition-event.js.map +1 -0
  730. package/cli/event-bus/events/product-channel-event.d.ts +11 -0
  731. package/cli/event-bus/events/product-channel-event.js +15 -0
  732. package/cli/event-bus/events/product-channel-event.js.map +1 -0
  733. package/cli/event-bus/events/product-event.d.ts +11 -0
  734. package/cli/event-bus/events/product-event.js +14 -0
  735. package/cli/event-bus/events/product-event.js.map +1 -0
  736. package/cli/event-bus/events/product-option-event.d.ts +10 -0
  737. package/cli/event-bus/events/product-option-event.js +11 -0
  738. package/cli/event-bus/events/product-option-event.js.map +1 -0
  739. package/cli/event-bus/events/product-option-group-change-event.d.ts +11 -0
  740. package/cli/event-bus/events/product-option-group-change-event.js +15 -0
  741. package/cli/event-bus/events/product-option-group-change-event.js.map +1 -0
  742. package/cli/event-bus/events/product-option-group-event.d.ts +10 -0
  743. package/cli/event-bus/events/product-option-group-event.js +11 -0
  744. package/cli/event-bus/events/product-option-group-event.js.map +1 -0
  745. package/cli/event-bus/events/product-variant-channel-event.d.ts +11 -0
  746. package/cli/event-bus/events/product-variant-channel-event.js +15 -0
  747. package/cli/event-bus/events/product-variant-channel-event.js.map +1 -0
  748. package/cli/event-bus/events/product-variant-event.d.ts +11 -0
  749. package/cli/event-bus/events/product-variant-event.js +14 -0
  750. package/cli/event-bus/events/product-variant-event.js.map +1 -0
  751. package/cli/event-bus/events/promotion-event.d.ts +10 -0
  752. package/cli/event-bus/events/promotion-event.js +11 -0
  753. package/cli/event-bus/events/promotion-event.js.map +1 -0
  754. package/cli/event-bus/events/refund-state-transition-event.d.ts +13 -0
  755. package/cli/event-bus/events/refund-state-transition-event.js +16 -0
  756. package/cli/event-bus/events/refund-state-transition-event.js.map +1 -0
  757. package/cli/event-bus/events/role-change-event.d.ts +11 -0
  758. package/cli/event-bus/events/role-change-event.js +15 -0
  759. package/cli/event-bus/events/role-change-event.js.map +1 -0
  760. package/cli/event-bus/events/role-event.d.ts +10 -0
  761. package/cli/event-bus/events/role-event.js +11 -0
  762. package/cli/event-bus/events/role-event.js.map +1 -0
  763. package/cli/event-bus/events/shipping-method-event.d.ts +10 -0
  764. package/cli/event-bus/events/shipping-method-event.js +11 -0
  765. package/cli/event-bus/events/shipping-method-event.js.map +1 -0
  766. package/cli/event-bus/events/stock-movement-event.d.ts +10 -0
  767. package/cli/event-bus/events/stock-movement-event.js +15 -0
  768. package/cli/event-bus/events/stock-movement-event.js.map +1 -0
  769. package/cli/event-bus/events/tax-category-event.d.ts +10 -0
  770. package/cli/event-bus/events/tax-category-event.js +11 -0
  771. package/cli/event-bus/events/tax-category-event.js.map +1 -0
  772. package/cli/event-bus/events/tax-rate-event.d.ts +10 -0
  773. package/cli/event-bus/events/tax-rate-event.js +11 -0
  774. package/cli/event-bus/events/tax-rate-event.js.map +1 -0
  775. package/cli/event-bus/events/tax-rate-modification-event.d.ts +8 -0
  776. package/cli/event-bus/events/tax-rate-modification-event.js +13 -0
  777. package/cli/event-bus/events/tax-rate-modification-event.js.map +1 -0
  778. package/cli/event-bus/events/zone-event.d.ts +10 -0
  779. package/cli/event-bus/events/zone-event.js +11 -0
  780. package/cli/event-bus/events/zone-event.js.map +1 -0
  781. package/cli/event-bus/events/zone-members-event.d.ts +11 -0
  782. package/cli/event-bus/events/zone-members-event.js +15 -0
  783. package/cli/event-bus/events/zone-members-event.js.map +1 -0
  784. package/cli/event-bus/index.d.ts +55 -0
  785. package/cli/event-bus/index.js +68 -0
  786. package/cli/event-bus/index.js.map +1 -0
  787. package/cli/event-bus/vendure-entity-event.d.ts +9 -0
  788. package/cli/event-bus/vendure-entity-event.js +15 -0
  789. package/cli/event-bus/vendure-entity-event.js.map +1 -0
  790. package/cli/event-bus/vendure-event.d.ts +4 -0
  791. package/cli/event-bus/vendure-event.js +10 -0
  792. package/cli/event-bus/vendure-event.js.map +1 -0
  793. package/cli/health-check/constants.d.ts +1 -0
  794. package/cli/health-check/constants.js +5 -0
  795. package/cli/health-check/constants.js.map +1 -0
  796. package/cli/i18n/i18n-error.d.ts +13 -0
  797. package/cli/i18n/i18n-error.js +16 -0
  798. package/cli/i18n/i18n-error.js.map +1 -0
  799. package/cli/job-queue/constants.d.ts +1 -0
  800. package/cli/job-queue/constants.js +5 -0
  801. package/cli/job-queue/constants.js.map +1 -0
  802. package/cli/job-queue/in-memory-job-queue-strategy.d.ts +34 -0
  803. package/cli/job-queue/in-memory-job-queue-strategy.js +187 -0
  804. package/cli/job-queue/in-memory-job-queue-strategy.js.map +1 -0
  805. package/cli/job-queue/index.d.ts +11 -0
  806. package/cli/job-queue/index.js +24 -0
  807. package/cli/job-queue/index.js.map +1 -0
  808. package/cli/job-queue/injectable-job-queue-strategy.d.ts +12 -0
  809. package/cli/job-queue/injectable-job-queue-strategy.js +21 -0
  810. package/cli/job-queue/injectable-job-queue-strategy.js.map +1 -0
  811. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.d.ts +13 -0
  812. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.js +47 -0
  813. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.js.map +1 -0
  814. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.d.ts +11 -0
  815. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.js +3 -0
  816. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.js.map +1 -0
  817. package/cli/job-queue/job-buffer/job-buffer.d.ts +7 -0
  818. package/cli/job-queue/job-buffer/job-buffer.js +3 -0
  819. package/cli/job-queue/job-buffer/job-buffer.js.map +1 -0
  820. package/cli/job-queue/job-buffer/job-buffer.service.d.ts +16 -0
  821. package/cli/job-queue/job-buffer/job-buffer.service.js +76 -0
  822. package/cli/job-queue/job-buffer/job-buffer.service.js.map +1 -0
  823. package/cli/job-queue/job-queue.d.ts +16 -0
  824. package/cli/job-queue/job-queue.js +59 -0
  825. package/cli/job-queue/job-queue.js.map +1 -0
  826. package/cli/job-queue/job-queue.service.d.ts +27 -0
  827. package/cli/job-queue/job-queue.service.js +84 -0
  828. package/cli/job-queue/job-queue.service.js.map +1 -0
  829. package/cli/job-queue/job.d.ts +41 -0
  830. package/cli/job-queue/job.js +160 -0
  831. package/cli/job-queue/job.js.map +1 -0
  832. package/cli/job-queue/polling-job-queue-strategy.d.ts +26 -0
  833. package/cli/job-queue/polling-job-queue-strategy.js +163 -0
  834. package/cli/job-queue/polling-job-queue-strategy.js.map +1 -0
  835. package/cli/job-queue/queue-name-process-storage.d.ts +7 -0
  836. package/cli/job-queue/queue-name-process-storage.js +40 -0
  837. package/cli/job-queue/queue-name-process-storage.js.map +1 -0
  838. package/cli/job-queue/subscribable-job.d.ts +13 -0
  839. package/cli/job-queue/subscribable-job.js +52 -0
  840. package/cli/job-queue/subscribable-job.js.map +1 -0
  841. package/cli/job-queue/types.d.ts +22 -0
  842. package/cli/job-queue/types.js +3 -0
  843. package/cli/job-queue/types.js.map +1 -0
  844. package/cli/populate.d.ts +4 -4
  845. package/cli/populate.js +38 -25
  846. package/cli/populate.js.map +1 -1
  847. package/cli/process-context/process-context.d.ts +7 -0
  848. package/cli/process-context/process-context.js +18 -0
  849. package/cli/process-context/process-context.js.map +1 -0
  850. package/cli/service/helpers/config-arg/config-arg.service.d.ts +31 -0
  851. package/cli/service/helpers/config-arg/config-arg.service.js +88 -0
  852. package/cli/service/helpers/config-arg/config-arg.service.js.map +1 -0
  853. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.d.ts +18 -0
  854. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.js +63 -0
  855. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.js.map +1 -0
  856. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.d.ts +21 -0
  857. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js +113 -0
  858. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js.map +1 -0
  859. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.d.ts +11 -0
  860. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.js +21 -0
  861. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.js.map +1 -0
  862. package/cli/service/helpers/list-query-builder/connection-utils.d.ts +10 -0
  863. package/cli/service/helpers/list-query-builder/connection-utils.js +26 -0
  864. package/cli/service/helpers/list-query-builder/connection-utils.js.map +1 -0
  865. package/cli/service/helpers/list-query-builder/get-calculated-columns.d.ts +3 -0
  866. package/cli/service/helpers/list-query-builder/get-calculated-columns.js +16 -0
  867. package/cli/service/helpers/list-query-builder/get-calculated-columns.js.map +1 -0
  868. package/cli/service/helpers/list-query-builder/list-query-builder.d.ts +30 -0
  869. package/cli/service/helpers/list-query-builder/list-query-builder.js +204 -0
  870. package/cli/service/helpers/list-query-builder/list-query-builder.js.map +1 -0
  871. package/cli/service/helpers/list-query-builder/parse-channel-param.d.ts +5 -0
  872. package/cli/service/helpers/list-query-builder/parse-channel-param.js +18 -0
  873. package/cli/service/helpers/list-query-builder/parse-channel-param.js.map +1 -0
  874. package/cli/service/helpers/list-query-builder/parse-filter-params.d.ts +13 -0
  875. package/cli/service/helpers/list-query-builder/parse-filter-params.js +155 -0
  876. package/cli/service/helpers/list-query-builder/parse-filter-params.js.map +1 -0
  877. package/cli/service/helpers/list-query-builder/parse-sort-params.d.ts +7 -0
  878. package/cli/service/helpers/list-query-builder/parse-sort-params.js +50 -0
  879. package/cli/service/helpers/list-query-builder/parse-sort-params.js.map +1 -0
  880. package/cli/service/helpers/order-calculator/order-calculator.d.ts +32 -0
  881. package/cli/service/helpers/order-calculator/order-calculator.js +311 -0
  882. package/cli/service/helpers/order-calculator/order-calculator.js.map +1 -0
  883. package/cli/service/helpers/order-calculator/prorate.d.ts +1 -0
  884. package/cli/service/helpers/order-calculator/prorate.js +35 -0
  885. package/cli/service/helpers/order-calculator/prorate.js.map +1 -0
  886. package/cli/service/helpers/order-merger/order-merger.d.ts +40 -0
  887. package/cli/service/helpers/order-merger/order-merger.js +97 -0
  888. package/cli/service/helpers/order-merger/order-merger.js.map +1 -0
  889. package/cli/service/helpers/order-modifier/order-modifier.d.ts +45 -0
  890. package/cli/service/helpers/order-modifier/order-modifier.js +423 -0
  891. package/cli/service/helpers/order-modifier/order-modifier.js.map +1 -0
  892. package/cli/service/helpers/order-state-machine/order-state-machine.d.ts +29 -0
  893. package/cli/service/helpers/order-state-machine/order-state-machine.js +240 -0
  894. package/cli/service/helpers/order-state-machine/order-state-machine.js.map +1 -0
  895. package/cli/service/helpers/order-state-machine/order-state.d.ts +9 -0
  896. package/cli/service/helpers/order-state-machine/order-state.js +64 -0
  897. package/cli/service/helpers/order-state-machine/order-state.js.map +1 -0
  898. package/cli/service/helpers/password-cipher/password-cipher.d.ts +7 -0
  899. package/cli/service/helpers/password-cipher/password-cipher.js +31 -0
  900. package/cli/service/helpers/password-cipher/password-cipher.js.map +1 -0
  901. package/cli/service/helpers/payment-state-machine/payment-state-machine.d.ts +20 -0
  902. package/cli/service/helpers/payment-state-machine/payment-state-machine.js +113 -0
  903. package/cli/service/helpers/payment-state-machine/payment-state-machine.js.map +1 -0
  904. package/cli/service/helpers/payment-state-machine/payment-state.d.ts +11 -0
  905. package/cli/service/helpers/payment-state-machine/payment-state.js +24 -0
  906. package/cli/service/helpers/payment-state-machine/payment-state.js.map +1 -0
  907. package/cli/service/helpers/product-price-applicator/product-price-applicator.d.ts +15 -0
  908. package/cli/service/helpers/product-price-applicator/product-price-applicator.js +64 -0
  909. package/cli/service/helpers/product-price-applicator/product-price-applicator.js.map +1 -0
  910. package/cli/service/helpers/refund-state-machine/refund-state-machine.d.ts +14 -0
  911. package/cli/service/helpers/refund-state-machine/refund-state-machine.js +65 -0
  912. package/cli/service/helpers/refund-state-machine/refund-state-machine.js.map +1 -0
  913. package/cli/service/helpers/refund-state-machine/refund-state.d.ts +11 -0
  914. package/cli/service/helpers/refund-state-machine/refund-state.js +15 -0
  915. package/cli/service/helpers/refund-state-machine/refund-state.js.map +1 -0
  916. package/cli/service/helpers/request-context/request-context.service.d.ts +29 -0
  917. package/{dist/api/common → cli/service/helpers/request-context}/request-context.service.js +50 -18
  918. package/cli/service/helpers/request-context/request-context.service.js.map +1 -0
  919. package/cli/service/helpers/shipping-calculator/shipping-calculator.d.ts +18 -0
  920. package/cli/service/helpers/shipping-calculator/shipping-calculator.js +50 -0
  921. package/cli/service/helpers/shipping-calculator/shipping-calculator.js.map +1 -0
  922. package/cli/service/helpers/translatable-saver/translatable-saver.d.ts +24 -0
  923. package/cli/service/helpers/translatable-saver/translatable-saver.js +64 -0
  924. package/cli/service/helpers/translatable-saver/translatable-saver.js.map +1 -0
  925. package/cli/service/helpers/translatable-saver/translation-differ.d.ts +17 -0
  926. package/cli/service/helpers/translatable-saver/translation-differ.js +65 -0
  927. package/cli/service/helpers/translatable-saver/translation-differ.js.map +1 -0
  928. package/cli/service/helpers/utils/address-to-line.d.ts +3 -0
  929. package/cli/service/helpers/utils/address-to-line.js +21 -0
  930. package/cli/service/helpers/utils/address-to-line.js.map +1 -0
  931. package/cli/service/helpers/utils/get-user-channels-permissions.d.ts +10 -0
  932. package/cli/service/helpers/utils/get-user-channels-permissions.js +26 -0
  933. package/cli/service/helpers/utils/get-user-channels-permissions.js.map +1 -0
  934. package/cli/service/helpers/utils/order-utils.d.ts +9 -0
  935. package/cli/service/helpers/utils/order-utils.js +64 -0
  936. package/cli/service/helpers/utils/order-utils.js.map +1 -0
  937. package/cli/service/helpers/utils/patch-entity.d.ts +5 -0
  938. package/cli/service/helpers/utils/patch-entity.js +17 -0
  939. package/cli/service/helpers/utils/patch-entity.js.map +1 -0
  940. package/cli/service/helpers/utils/samples-each.d.ts +1 -0
  941. package/cli/service/helpers/utils/samples-each.js +18 -0
  942. package/cli/service/helpers/utils/samples-each.js.map +1 -0
  943. package/cli/service/helpers/utils/translate-entity.d.ts +24 -0
  944. package/cli/service/helpers/utils/translate-entity.js +99 -0
  945. package/cli/service/helpers/utils/translate-entity.js.map +1 -0
  946. package/cli/service/helpers/verification-token-generator/verification-token-generator.d.ts +7 -0
  947. package/cli/service/helpers/verification-token-generator/verification-token-generator.js +44 -0
  948. package/cli/service/helpers/verification-token-generator/verification-token-generator.js.map +1 -0
  949. package/cli/service/services/administrator.service.d.ts +36 -0
  950. package/cli/service/services/administrator.service.js +230 -0
  951. package/cli/service/services/administrator.service.js.map +1 -0
  952. package/cli/service/services/asset.service.d.ts +63 -0
  953. package/cli/service/services/asset.service.js +478 -0
  954. package/cli/service/services/asset.service.js.map +1 -0
  955. package/cli/service/services/channel.service.d.ts +38 -0
  956. package/cli/service/services/channel.service.js +222 -0
  957. package/cli/service/services/channel.service.js.map +1 -0
  958. package/cli/service/services/country.service.d.ts +24 -0
  959. package/cli/service/services/country.service.js +119 -0
  960. package/cli/service/services/country.service.js.map +1 -0
  961. package/cli/service/services/customer.service.d.ts +62 -0
  962. package/cli/service/services/customer.service.js +662 -0
  963. package/cli/service/services/customer.service.js.map +1 -0
  964. package/cli/service/services/facet-value.service.d.ts +32 -0
  965. package/cli/service/services/facet-value.service.js +151 -0
  966. package/cli/service/services/facet-value.service.js.map +1 -0
  967. package/cli/service/services/fulfillment.service.d.ts +32 -0
  968. package/cli/service/services/fulfillment.service.js +106 -0
  969. package/cli/service/services/fulfillment.service.js.map +1 -0
  970. package/cli/service/services/global-settings.service.d.ts +17 -0
  971. package/cli/service/services/global-settings.service.js +74 -0
  972. package/cli/service/services/global-settings.service.js.map +1 -0
  973. package/cli/service/services/history.service.d.ts +139 -0
  974. package/cli/service/services/history.service.js +143 -0
  975. package/cli/service/services/history.service.js.map +1 -0
  976. package/cli/service/services/order.service.d.ts +136 -0
  977. package/cli/service/services/order.service.js +1158 -0
  978. package/cli/service/services/order.service.js.map +1 -0
  979. package/cli/service/services/payment-method.service.d.ts +37 -0
  980. package/cli/service/services/payment-method.service.js +178 -0
  981. package/cli/service/services/payment-method.service.js.map +1 -0
  982. package/cli/service/services/payment.service.d.ts +32 -0
  983. package/cli/service/services/payment.service.js +216 -0
  984. package/cli/service/services/payment.service.js.map +1 -0
  985. package/cli/service/services/product-variant.service.d.ts +70 -0
  986. package/cli/service/services/product-variant.service.js +560 -0
  987. package/cli/service/services/product-variant.service.js.map +1 -0
  988. package/cli/service/services/promotion.service.d.ts +41 -0
  989. package/cli/service/services/promotion.service.js +219 -0
  990. package/cli/service/services/promotion.service.js.map +1 -0
  991. package/cli/service/services/role.service.d.ts +39 -0
  992. package/cli/service/services/role.service.js +240 -0
  993. package/cli/service/services/role.service.js.map +1 -0
  994. package/cli/service/services/session.service.d.ts +38 -0
  995. package/cli/service/services/session.service.js +228 -0
  996. package/cli/service/services/session.service.js.map +1 -0
  997. package/cli/service/services/shipping-method.service.d.ts +36 -0
  998. package/cli/service/services/shipping-method.service.js +181 -0
  999. package/cli/service/services/shipping-method.service.js.map +1 -0
  1000. package/cli/service/services/stock-movement.service.d.ts +39 -0
  1001. package/cli/service/services/stock-movement.service.js +214 -0
  1002. package/cli/service/services/stock-movement.service.js.map +1 -0
  1003. package/cli/service/services/tag.service.d.ts +21 -0
  1004. package/cli/service/services/tag.service.js +82 -0
  1005. package/cli/service/services/tag.service.js.map +1 -0
  1006. package/cli/service/services/tax-category.service.d.ts +16 -0
  1007. package/cli/service/services/tax-category.service.js +95 -0
  1008. package/cli/service/services/tax-category.service.js.map +1 -0
  1009. package/cli/service/services/tax-rate.service.d.ts +28 -0
  1010. package/cli/service/services/tax-rate.service.js +134 -0
  1011. package/cli/service/services/tax-rate.service.js.map +1 -0
  1012. package/cli/service/services/user.service.d.ts +37 -0
  1013. package/cli/service/services/user.service.js +287 -0
  1014. package/cli/service/services/user.service.js.map +1 -0
  1015. package/cli/service/services/zone.service.d.ts +26 -0
  1016. package/cli/service/services/zone.service.js +168 -0
  1017. package/cli/service/services/zone.service.js.map +1 -0
  1018. package/dist/api/api.module.js +0 -2
  1019. package/dist/api/api.module.js.map +1 -1
  1020. package/dist/api/common/parse-context.js +19 -16
  1021. package/dist/api/common/parse-context.js.map +1 -1
  1022. package/dist/api/common/request-context.d.ts +3 -1
  1023. package/dist/api/common/request-context.js +3 -1
  1024. package/dist/api/common/request-context.js.map +1 -1
  1025. package/dist/api/config/configure-graphql-module.js +2 -0
  1026. package/dist/api/config/configure-graphql-module.js.map +1 -1
  1027. package/dist/api/config/generate-permissions.js +25 -0
  1028. package/dist/api/config/generate-permissions.js.map +1 -1
  1029. package/dist/api/config/generate-resolvers.js +4 -0
  1030. package/dist/api/config/generate-resolvers.js.map +1 -1
  1031. package/dist/api/config/graphql-custom-fields.js +148 -137
  1032. package/dist/api/config/graphql-custom-fields.js.map +1 -1
  1033. package/dist/api/middleware/auth-guard.d.ts +1 -1
  1034. package/dist/api/middleware/auth-guard.js +1 -1
  1035. package/dist/api/middleware/auth-guard.js.map +1 -1
  1036. package/dist/api/resolvers/admin/channel.resolver.js +3 -3
  1037. package/dist/api/resolvers/admin/channel.resolver.js.map +1 -1
  1038. package/dist/api/resolvers/admin/global-settings.resolver.js +1 -1
  1039. package/dist/api/resolvers/admin/global-settings.resolver.js.map +1 -1
  1040. package/dist/api/resolvers/entity/order-line-entity.resolver.d.ts +5 -3
  1041. package/dist/api/resolvers/entity/order-line-entity.resolver.js +16 -2
  1042. package/dist/api/resolvers/entity/order-line-entity.resolver.js.map +1 -1
  1043. package/dist/api/resolvers/entity/product-entity.resolver.d.ts +1 -1
  1044. package/dist/api/resolvers/entity/product-entity.resolver.js +12 -3
  1045. package/dist/api/resolvers/entity/product-entity.resolver.js.map +1 -1
  1046. package/dist/api/schema/admin-api/customer.api.graphql +4 -0
  1047. package/dist/api/schema/admin-api/order.api.graphql +6 -0
  1048. package/dist/api/schema/admin-api/product.api.graphql +1 -1
  1049. package/dist/api/schema/common/common-enums.graphql +1 -0
  1050. package/dist/api/schema/common/common-error-results.graphql +26 -4
  1051. package/dist/api/schema/common/common-types.graphql +25 -0
  1052. package/dist/api/schema/common/product-search.type.graphql +1 -1
  1053. package/dist/api/schema/shop-api/shop-error-results.graphql +13 -35
  1054. package/dist/api/schema/shop-api/shop.api.graphql +7 -5
  1055. package/dist/bootstrap.js +6 -3
  1056. package/dist/bootstrap.js.map +1 -1
  1057. package/dist/common/error/generated-graphql-admin-errors.d.ts +22 -0
  1058. package/dist/common/error/generated-graphql-admin-errors.js +33 -2
  1059. package/dist/common/error/generated-graphql-admin-errors.js.map +1 -1
  1060. package/dist/common/error/generated-graphql-shop-errors.d.ts +7 -0
  1061. package/dist/common/error/generated-graphql-shop-errors.js +12 -2
  1062. package/dist/common/error/generated-graphql-shop-errors.js.map +1 -1
  1063. package/dist/common/finite-state-machine/finite-state-machine.js +2 -1
  1064. package/dist/common/finite-state-machine/finite-state-machine.js.map +1 -1
  1065. package/dist/common/types/common-types.d.ts +3 -0
  1066. package/dist/common/types/entity-relation-paths.d.ts +1 -1
  1067. package/dist/config/asset-storage-strategy/asset-storage-strategy.d.ts +2 -2
  1068. package/dist/config/auth/default-password-validation-strategy.d.ts +23 -0
  1069. package/dist/config/auth/default-password-validation-strategy.js +37 -0
  1070. package/dist/config/auth/default-password-validation-strategy.js.map +1 -0
  1071. package/dist/config/auth/password-validation-strategy.d.ts +22 -0
  1072. package/dist/config/auth/password-validation-strategy.js +3 -0
  1073. package/dist/config/auth/password-validation-strategy.js.map +1 -0
  1074. package/dist/config/catalog/default-product-variant-price-calculation-strategy.js +0 -1
  1075. package/dist/config/catalog/default-product-variant-price-calculation-strategy.js.map +1 -1
  1076. package/dist/config/config.module.js +2 -1
  1077. package/dist/config/config.module.js.map +1 -1
  1078. package/dist/config/default-config.js +4 -0
  1079. package/dist/config/default-config.js.map +1 -1
  1080. package/dist/config/index.d.ts +5 -0
  1081. package/dist/config/index.js +5 -0
  1082. package/dist/config/index.js.map +1 -1
  1083. package/dist/config/order/order-item-price-calculation-strategy.d.ts +9 -4
  1084. package/dist/config/promotion/index.d.ts +4 -0
  1085. package/dist/config/promotion/index.js +4 -0
  1086. package/dist/config/promotion/index.js.map +1 -1
  1087. package/dist/config/vendure-config.d.ts +53 -0
  1088. package/dist/connection/connection.module.d.ts +1 -1
  1089. package/dist/data-import/data-import.module.js +1 -1
  1090. package/dist/data-import/data-import.module.js.map +1 -1
  1091. package/dist/data-import/index.d.ts +3 -0
  1092. package/dist/data-import/index.js +3 -0
  1093. package/dist/data-import/index.js.map +1 -1
  1094. package/dist/data-import/providers/asset-importer/asset-importer.d.ts +12 -1
  1095. package/dist/data-import/providers/asset-importer/asset-importer.js +12 -2
  1096. package/dist/data-import/providers/asset-importer/asset-importer.js.map +1 -1
  1097. package/dist/data-import/providers/import-parser/import-parser.d.ts +59 -0
  1098. package/dist/data-import/providers/import-parser/import-parser.js +12 -0
  1099. package/dist/data-import/providers/import-parser/import-parser.js.map +1 -1
  1100. package/dist/data-import/providers/importer/fast-importer.service.d.ts +21 -3
  1101. package/dist/data-import/providers/importer/fast-importer.service.js +53 -17
  1102. package/dist/data-import/providers/importer/fast-importer.service.js.map +1 -1
  1103. package/dist/data-import/providers/importer/importer.d.ts +18 -0
  1104. package/dist/data-import/providers/importer/importer.js +35 -19
  1105. package/dist/data-import/providers/importer/importer.js.map +1 -1
  1106. package/dist/data-import/providers/populator/populator.d.ts +13 -4
  1107. package/dist/data-import/providers/populator/populator.js +32 -20
  1108. package/dist/data-import/providers/populator/populator.js.map +1 -1
  1109. package/dist/entity/order-line/order-line.entity.d.ts +6 -0
  1110. package/dist/entity/order-line/order-line.entity.js +9 -1
  1111. package/dist/entity/order-line/order-line.entity.js.map +1 -1
  1112. package/dist/event-bus/events/order-event.d.ts +17 -0
  1113. package/dist/event-bus/events/order-event.js +22 -0
  1114. package/dist/event-bus/events/order-event.js.map +1 -0
  1115. package/dist/event-bus/events/order-line-event.d.ts +18 -0
  1116. package/dist/event-bus/events/order-line-event.js +23 -0
  1117. package/dist/event-bus/events/order-line-event.js.map +1 -0
  1118. package/dist/event-bus/index.d.ts +2 -0
  1119. package/dist/event-bus/index.js +2 -0
  1120. package/dist/event-bus/index.js.map +1 -1
  1121. package/dist/i18n/messages/en.json +1 -0
  1122. package/dist/job-queue/job-queue.service.js +3 -0
  1123. package/dist/job-queue/job-queue.service.js.map +1 -1
  1124. package/dist/job-queue/subscribable-job.js +1 -1
  1125. package/dist/job-queue/subscribable-job.js.map +1 -1
  1126. package/dist/plugin/default-search-plugin/search-job-buffer/collection-job-buffer.js.map +1 -1
  1127. package/dist/plugin/default-search-plugin/search-job-buffer/search-index-job-buffer.js +4 -3
  1128. package/dist/plugin/default-search-plugin/search-job-buffer/search-index-job-buffer.js.map +1 -1
  1129. package/dist/plugin/plugin-common.module.js +3 -0
  1130. package/dist/plugin/plugin-common.module.js.map +1 -1
  1131. package/dist/service/helpers/entity-hydrator/entity-hydrator.service.js.map +1 -1
  1132. package/dist/service/helpers/list-query-builder/list-query-builder.d.ts +19 -2
  1133. package/dist/service/helpers/list-query-builder/list-query-builder.js +1 -1
  1134. package/dist/service/helpers/list-query-builder/list-query-builder.js.map +1 -1
  1135. package/dist/service/helpers/list-query-builder/parse-filter-params.js +4 -1
  1136. package/dist/service/helpers/list-query-builder/parse-filter-params.js.map +1 -1
  1137. package/dist/service/helpers/order-calculator/order-calculator.d.ts +11 -1
  1138. package/dist/service/helpers/order-calculator/order-calculator.js +10 -0
  1139. package/dist/service/helpers/order-calculator/order-calculator.js.map +1 -1
  1140. package/dist/service/helpers/order-calculator/prorate.js +1 -1
  1141. package/dist/service/helpers/order-calculator/prorate.js.map +1 -1
  1142. package/dist/service/helpers/order-modifier/order-modifier.d.ts +10 -1
  1143. package/dist/service/helpers/order-modifier/order-modifier.js +86 -3
  1144. package/dist/service/helpers/order-modifier/order-modifier.js.map +1 -1
  1145. package/dist/service/helpers/request-context/request-context.service.d.ts +57 -0
  1146. package/dist/service/helpers/request-context/request-context.service.js +155 -0
  1147. package/dist/service/helpers/request-context/request-context.service.js.map +1 -0
  1148. package/dist/service/helpers/utils/order-utils.js +1 -1
  1149. package/dist/service/helpers/utils/order-utils.js.map +1 -1
  1150. package/dist/service/index.d.ts +3 -0
  1151. package/dist/service/index.js +3 -0
  1152. package/dist/service/index.js.map +1 -1
  1153. package/dist/service/service.module.js +2 -0
  1154. package/dist/service/service.module.js.map +1 -1
  1155. package/dist/service/services/asset.service.d.ts +1 -1
  1156. package/dist/service/services/asset.service.js +5 -3
  1157. package/dist/service/services/asset.service.js.map +1 -1
  1158. package/dist/service/services/customer-group.service.d.ts +3 -1
  1159. package/dist/service/services/customer-group.service.js +8 -3
  1160. package/dist/service/services/customer-group.service.js.map +1 -1
  1161. package/dist/service/services/customer.service.d.ts +3 -3
  1162. package/dist/service/services/customer.service.js +32 -4
  1163. package/dist/service/services/customer.service.js.map +1 -1
  1164. package/dist/service/services/history.service.d.ts +1 -0
  1165. package/dist/service/services/history.service.js.map +1 -1
  1166. package/dist/service/services/order.service.d.ts +15 -0
  1167. package/dist/service/services/order.service.js +84 -15
  1168. package/dist/service/services/order.service.js.map +1 -1
  1169. package/dist/service/services/product-variant.service.d.ts +1 -0
  1170. package/dist/service/services/product-variant.service.js +16 -2
  1171. package/dist/service/services/product-variant.service.js.map +1 -1
  1172. package/dist/service/services/promotion.service.js +2 -1
  1173. package/dist/service/services/promotion.service.js.map +1 -1
  1174. package/dist/service/services/session.service.js +1 -2
  1175. package/dist/service/services/session.service.js.map +1 -1
  1176. package/dist/service/services/user.service.d.ts +5 -4
  1177. package/dist/service/services/user.service.js +30 -3
  1178. package/dist/service/services/user.service.js.map +1 -1
  1179. package/package.json +3 -3
  1180. package/dist/api/common/request-context.service.d.ts +0 -30
  1181. package/dist/api/common/request-context.service.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"parse-context.js","sourceRoot":"","sources":["../../../src/api/common/parse-context.ts"],"names":[],"mappings":";;;AACA,6CAAsD;AAYtD;;;GAGG;AACH,SAAgB,YAAY,CAAC,OAAyC;;IAClE,mGAAmG;IACnG,IAAI,CAAA,MAAA,MAAA,MAAC,OAA4B,EAAC,UAAU,kDAAI,0CAAE,IAAI,MAAK,eAAe,EAAE;QACxE,OAA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AG;YAC7B,SAAS,EAAE,KAAK;YAChB,IAAI,EAAE,SAAS;SAClB,CAAC;KACL;IAED,IAAI,OAAO,CAAC,OAAO,EAAE,KAAK,MAAM,EAAE;QAC9B,MAAM,WAAW,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;QAC3C,OAAO;YACH,SAAS,EAAE,KAAK;YAChB,GAAG,EAAE,WAAW,CAAC,UAAU,EAAE;YAC7B,GAAG,EAAE,WAAW,CAAC,WAAW,EAAE;YAC9B,IAAI,EAAE,SAAS;SAClB,CAAC;KACL;SAAM,IAAI,OAAO,CAAC,OAAO,EAAkB,KAAK,SAAS,EAAE;QACxD,MAAM,UAAU,GAAG,6BAAmB,CAAC,MAAM,CAAC,OAA2B,CAAC,CAAC;QAC3E,OAAO;YACH,SAAS,EAAE,IAAI;YACf,GAAG,EAAE,UAAU,CAAC,UAAU,EAAE,CAAC,GAAG;YAChC,GAAG,EAAE,UAAU,CAAC,UAAU,EAAE,CAAC,GAAG;YAChC,IAAI,EAAE,UAAU,CAAC,OAAO,EAAE;SAC7B,CAAC;KACL;SAAM;QACH,MAAM,IAAI,4BAAmB,CAAC,YAAY,OAAO,CAAC,OAAO,EAAE,qBAAqB,CAAC,CAAC;KACrF;AACL,CAAC;AA9BD,oCA8BC"}
@@ -61,7 +61,9 @@ export declare class RequestContext {
61
61
  * @description
62
62
  * Creates an "empty" RequestContext object. This is only intended to be used
63
63
  * when a service method must be called outside the normal request-response
64
- * cycle, e.g. when programmatically populating data.
64
+ * cycle, e.g. when programmatically populating data. Usually a better alternative
65
+ * is to use the {@link RequestContextService} `create()` method, which allows more control
66
+ * over the resulting RequestContext object.
65
67
  */
66
68
  static empty(): RequestContext;
67
69
  /**
@@ -44,7 +44,9 @@ class RequestContext {
44
44
  * @description
45
45
  * Creates an "empty" RequestContext object. This is only intended to be used
46
46
  * when a service method must be called outside the normal request-response
47
- * cycle, e.g. when programmatically populating data.
47
+ * cycle, e.g. when programmatically populating data. Usually a better alternative
48
+ * is to use the {@link RequestContextService} `create()` method, which allows more control
49
+ * over the resulting RequestContext object.
48
50
  */
49
51
  static empty() {
50
52
  return new RequestContext({
@@ -1 +1 @@
1
- {"version":3,"file":"request-context.js","sourceRoot":"","sources":["../../../src/api/common/request-context.ts"],"names":[],"mappings":";;;AAEA,mEAA4D;AAI5D,8CAAiD;AAEjD,wEAA8D;AAc9D;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAa,cAAc;IAUvB;;OAEG;IACH,YAAY,OASX;QACG,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;QAChF,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;QAChB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,aAAa,GAAG,YAAY,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAAC;QAC9E,IAAI,CAAC,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC;QAC1C,IAAI,CAAC,sBAAsB,GAAG,OAAO,CAAC,qBAAqB,CAAC;QAC5D,IAAI,CAAC,cAAc,GAAG,aAAa,IAAK,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAS,CAAC;IAC3E,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,KAAK;QACR,OAAO,IAAI,cAAc,CAAC;YACtB,OAAO,EAAE,OAAO;YAChB,qBAAqB,EAAE,KAAK;YAC5B,OAAO,EAAE,IAAI,wBAAO,EAAE;YACtB,YAAY,EAAE,IAAI;SACrB,CAAC,CAAC;IACP,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,WAAW,CAAC,SAAmC;;QAClD,OAAO,IAAI,cAAc,CAAC;YACtB,GAAG,EAAE,SAAS,CAAC,IA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BAAQ,CAAC,GAAG,CAAC,IAAI,OAAO,GAAG,KAAK,UAAU,EAAE;oBACpD,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;iBACrB;qBAAM,IAAI,KAAK,GAAG,QAAQ,EAAE;oBACzB,KAAK,EAAE,CAAC;oBACR,MAAM,CAAC,GAAG,CAAC,GAAG,uBAAuB,CAAC,GAAG,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;oBAC5D,KAAK,EAAE,CAAC;iBACX;aACJ;YACD,OAAO,MAAM,CAAC;QAClB,CAAC;QACD,OAAO,uBAAuB,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;IAC3C,CAAC;CACJ;AA5OD,wCA4OC"}
@@ -47,6 +47,7 @@ function configureGraphQLModule(getOptions) {
47
47
  }
48
48
  exports.configureGraphQLModule = configureGraphQLModule;
49
49
  async function createGraphQLOptions(i18nService, configService, idCodecService, typesLoader, customFieldRelationResolverService, options) {
50
+ var _a;
50
51
  const builtSchema = await buildSchemaForApi(options.apiType);
51
52
  const resolvers = generate_resolvers_1.generateResolvers(configService, customFieldRelationResolverService, options.apiType, builtSchema);
52
53
  return {
@@ -70,6 +71,7 @@ async function createGraphQLOptions(i18nService, configService, idCodecService,
70
71
  ...configService.apiOptions.apolloServerPlugins,
71
72
  ],
72
73
  validationRules: options.validationRules,
74
+ introspection: (_a = configService.apiOptions.introspection) !== null && _a !== void 0 ? _a : true,
73
75
  };
74
76
  /**
75
77
  * Generates the server's GraphQL schema by combining:
@@ -1 +1 @@
1
- {"version":3,"file":"configure-graphql-module.js","sourceRoot":"","sources":["../../../src/api/config/configure-graphql-module.ts"],"names":[],"mappings":";;;;;;AAEA,6CAAsF;AACtF,mEAAsE;AACtE,qCAAmG;AACnG,gDAAwB;AAExB,8DAA0D;AAC1D,gEAA4D;AAE5D,wDAAoD;AACpD,0DAAsD;AACtD,sFAA4F;AAC5F,kEAAsE;AAEtE,iEAA6D;AAE7D,kEAA0D;AAC1D,6GAAsG;AAC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AACL,CAAC"}
1
+ {"version":3,"file":"configure-graphql-module.js","sourceRoot":"","sources":["../../../src/api/config/configure-graphql-module.ts"],"names":[],"mappings":";;;;;;AAEA,6CAAsF;AACtF,mEAAsE;AACtE,qCAAmG;AACnG,gDAAwB;AAExB,8DAA0D;AAC1D,gEAA4D;AAE5D,wDAAoD;AACpD,0DAAsD;AACtD,sFAA4F;AAC5F,kEAAsE;AAEtE,iEAA6D;AAE7D,kEAA0D;AAC1D,6GAAsG;AACtG,iEAA4D;AAC5D,qFAAgF;AAChF,mEAA8D;AAC9D,mFAA8E;AAE9E,+DAAoE;AACpE,yEAAmE;AACnE,mEAA8D;AAC9D,iEAAgE;AAChE,6DAAyD;AACzD,mEASiC;AAajC;;GAEG;AACH,SAAgB,sBAAsB,CAClC,UAA+D;IAE/D,OAAO,uBAAa,CAAC,YAAY,CAAC;QAC9B,UAAU,EAAE,CACR,aAA4B,EAC5B,WAAwB,EACxB,cAA8B,EAC9B,WAA+B,EAC/B,kCAAsE,EACxE,EAAE;YACA,OAAO,oBAAoB,CACvB,WAAW,EACX,aAAa,EACb,cAAc,EACd,WAAW,EACX,kCAAkC,EAClC,UAAU,CAAC,aAAa,CAAC,CAC5B,CAAC;QACN,CAAC;QACD,MAAM,EAAE;YACJ,8BAAa;YACb,0BAAW;YACX,iCAAc;YACd,4BAAkB;YAClB,2EAAkC;SACrC;QACD,OAAO,EAAE,CAAC,4BAAY,EAAE,wBAAU,EAAE,sCAAe,EAAE,8BAAa,CAAC;KACtE,CAAC,CAAC;AACP,CAAC;AA7BD,wDA6BC;AAED,KAAK,UAAU,oBAAoB,CAC/B,WAAwB,EACxB,aAA4B,EAC5B,cAA8B,EAC9B,WAA+B,EAC/B,kCAAsE,EACtE,OAA0B;;IAE1B,MAAM,WAAW,GAAG,MAAM,iBAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7D,MAAM,SAAS,GAAG,sCAAiB,CAC/B,aAAa,EACb,kCAAkC,EAClC,OAAO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,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;YAC3D,MAAM,GAAG,0DAAkC,CAAC,MAAM,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;SACnF;QACD,IAAI,OAAO,KAAK,MAAM,EAAE;YACpB,MAAM,GAAG,4DAAoC,CAAC,MAAM,EAAE,YAAY,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;SACtF;QACD,MAAM,GAAG,6CAAsB,CAAC,MAAM,EAAE,aAAa,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;QAErF,OAAO,MAAM,CAAC;IAClB,CAAC;AACL,CAAC"}
@@ -8,6 +8,31 @@ const PERMISSION_DESCRIPTION = `@description
8
8
  Permissions for administrators and customers. Used to control access to
9
9
  GraphQL resolvers via the {@link Allow} decorator.
10
10
 
11
+ ## Understanding Permission.Owner
12
+
13
+ \`Permission.Owner\` is a special permission which is used in some of the Vendure resolvers to indicate that that resolver should only
14
+ be accessible to the "owner" of that resource.
15
+
16
+ For example, the Shop API \`activeCustomer\` query resolver should only return the Customer object for the "owner" of that Customer, i.e.
17
+ based on the activeUserId of the current session. As a result, the resolver code looks like this:
18
+
19
+ @example
20
+ \`\`\`TypeScript
21
+ \\@Query()
22
+ \\@Allow(Permission.Owner)
23
+ async activeCustomer(\\@Ctx() ctx: RequestContext): Promise<Customer | undefined> {
24
+ const userId = ctx.activeUserId;
25
+ if (userId) {
26
+ return this.customerService.findOneByUserId(ctx, userId);
27
+ }
28
+ }
29
+ \`\`\`
30
+
31
+ Here we can see that the "ownership" must be enforced by custom logic inside the resolver. Since "ownership" cannot be defined generally
32
+ nor statically encoded at build-time, any resolvers using \`Permission.Owner\` **must** include logic to enforce that only the owner
33
+ of the resource has access. If not, then it is the equivalent of using \`Permission.Public\`.
34
+
35
+
11
36
  @docsCategory common`;
12
37
  /**
13
38
  * Generates the `Permission` GraphQL enum based on the default & custom permission definitions.
@@ -1 +1 @@
1
- {"version":3,"file":"generate-permissions.js","sourceRoot":"","sources":["../../../src/api/config/generate-permissions.ts"],"names":[],"mappings":";;;AAAA,kDAAuE;AACvE,qCAAyD;AAGzD,sDAAmE;AAGnE,MAAM,sBAAsB,GAAG;;;;qBAIV,CAAC;AAEtB;;GAEG;AACH,SAAgB,sBAAsB,CAClC,MAAqB,EACrB,iBAAyC;IAEzC,MAAM,sBAAsB,GAAG,qCAAyB,CAAC,iBAAiB,CAAC,CAAC;IAC5E,MAAM,MAAM,GAA8B,EAAE,CAAC;IAC7C,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,KAAK,MAAM,KAAK,IAAI,sBAAsB,EAAE;QACxC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG;YACjB,KAAK,EAAE,CAAC;YACR,WAAW,EAAE,KAAK,CAAC,WAAW;SACjC,CAAC;QACF,CAAC,EAAE,CAAC;KACP;IAED,MAAM,eAAe,GAAG,IAAI,yBAAe,CAAC;QACxC,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,sBAAsB;QACnC,MAAM;KACT,CAAC,CAAC;IAEH,OAAO,sBAAa,CAAC;QACjB,UAAU,EAAE,CAAC,MAAM,CAAC;QACpB,KAAK,EAAE,CAAC,eAAe,CAAC;QACxB,kBAAkB,EAAE,EAAE,kBAAkB,EAAE,EAAE,eAAe,EAAE,wBAAe,CAAC,GAAG,EAAE,EAAE;KACvF,CAAC,CAAC;AACP,CAAC;AA1BD,wDA0BC"}
1
+ {"version":3,"file":"generate-permissions.js","sourceRoot":"","sources":["../../../src/api/config/generate-permissions.ts"],"names":[],"mappings":";;;AAAA,kDAAuE;AACvE,qCAAyD;AAGzD,sDAAmE;AAGnE,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA6BV,CAAC;AAEtB;;GAEG;AACH,SAAgB,sBAAsB,CAClC,MAAqB,EACrB,iBAAyC;IAEzC,MAAM,sBAAsB,GAAG,qCAAyB,CAAC,iBAAiB,CAAC,CAAC;IAC5E,MAAM,MAAM,GAA8B,EAAE,CAAC;IAC7C,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,KAAK,MAAM,KAAK,IAAI,sBAAsB,EAAE;QACxC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG;YACjB,KAAK,EAAE,CAAC;YACR,WAAW,EAAE,KAAK,CAAC,WAAW;SACjC,CAAC;QACF,CAAC,EAAE,CAAC;KACP;IAED,MAAM,eAAe,GAAG,IAAI,yBAAe,CAAC;QACxC,IAAI,EAAE,YAAY;QAClB,WAAW,EAAE,sBAAsB;QACnC,MAAM;KACT,CAAC,CAAC;IAEH,OAAO,sBAAa,CAAC;QACjB,UAAU,EAAE,CAAC,MAAM,CAAC;QACpB,KAAK,EAAE,CAAC,eAAe,CAAC;QACxB,kBAAkB,EAAE,EAAE,kBAAkB,EAAE,EAAE,eAAe,EAAE,wBAAe,CAAC,GAAG,EAAE,EAAE;KACvF,CAAC,CAAC;AACP,CAAC;AA1BD,wDA0BC"}
@@ -120,6 +120,10 @@ function generateCustomFieldRelationResolvers(configService, customFieldRelation
120
120
  };
121
121
  }
122
122
  for (const fieldDef of relationCustomFields) {
123
+ if (fieldDef.internal === true) {
124
+ // Do not create any resolvers for internal relations
125
+ continue;
126
+ }
123
127
  const relationResolver = async (source, args, context) => {
124
128
  if (source[fieldDef.name] != null) {
125
129
  return source[fieldDef.name];
@@ -1 +1 @@
1
- {"version":3,"file":"generate-resolvers.js","sourceRoot":"","sources":["../../../src/api/config/generate-resolvers.ts"],"names":[],"mappings":";;;AAAA,yEAAwE;AAGxE,qDAA+D;AAC/D,mDAA+C;AAE/C,sDAA6D;AAC7D,sGAG2D;AAC3D,oGAAmG;AAQnG;;;;GAIG;AACH,SAAgB,iBAAiB,CAC7B,aAA4B,EAC5B,kCAAsE,EACtE,OAAgB,EAChB,MAAqB;IAErB,uEAAuE;IACvE,iEAAiE;IACjE,MAAM,gBAAgB,GAAG;QACrB,aAAa;YACT,OAAO,IAAI,CAAC;QAChB,CAAC;KACJ,CAAC;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CAAC,KAAc;IAClC,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;AAC9F,CAAC"}
@@ -13,13 +13,13 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
13
13
  const schema = typeof typeDefsOrSchema === 'string' ? graphql_1.buildSchema(typeDefsOrSchema) : typeDefsOrSchema;
14
14
  let customFieldTypeDefs = '';
15
15
  if (!schema.getType('JSON')) {
16
- customFieldTypeDefs += `
17
- scalar JSON
16
+ customFieldTypeDefs += `
17
+ scalar JSON
18
18
  `;
19
19
  }
20
20
  if (!schema.getType('DateTime')) {
21
- customFieldTypeDefs += `
22
- scalar DateTime
21
+ customFieldTypeDefs += `
22
+ scalar DateTime
23
23
  `;
24
24
  }
25
25
  for (const entityName of Object.keys(customFieldConfig)) {
@@ -40,87 +40,90 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
40
40
  const filterableFields = customEntityFields.filter(field => field.type !== 'relation');
41
41
  if (schema.getType(entityName)) {
42
42
  if (customEntityFields.length) {
43
- customFieldTypeDefs += `
44
- type ${entityName}CustomFields {
45
- ${mapToFields(customEntityFields, getGraphQlType)}
46
- }
47
-
48
- extend type ${entityName} {
49
- customFields: ${entityName}CustomFields
50
- }
43
+ customFieldTypeDefs += `
44
+ type ${entityName}CustomFields {
45
+ ${mapToFields(customEntityFields, wrapListType(getGraphQlType))}
46
+ }
47
+
48
+ extend type ${entityName} {
49
+ customFields: ${entityName}CustomFields
50
+ }
51
51
  `;
52
52
  }
53
53
  else {
54
- customFieldTypeDefs += `
55
- extend type ${entityName} {
56
- customFields: JSON
57
- }
54
+ customFieldTypeDefs += `
55
+ extend type ${entityName} {
56
+ customFields: JSON
57
+ }
58
58
  `;
59
59
  }
60
60
  }
61
61
  if (localeStringFields.length && schema.getType(`${entityName}Translation`)) {
62
- customFieldTypeDefs += `
63
- type ${entityName}TranslationCustomFields {
64
- ${mapToFields(localeStringFields, getGraphQlType)}
65
- }
66
-
67
- extend type ${entityName}Translation {
68
- customFields: ${entityName}TranslationCustomFields
69
- }
62
+ customFieldTypeDefs += `
63
+ type ${entityName}TranslationCustomFields {
64
+ ${mapToFields(localeStringFields, wrapListType(getGraphQlType))}
65
+ }
66
+
67
+ extend type ${entityName}Translation {
68
+ customFields: ${entityName}TranslationCustomFields
69
+ }
70
70
  `;
71
71
  }
72
72
  if (schema.getType(`Create${entityName}Input`)) {
73
73
  if (writeableNonLocaleStringFields.length) {
74
- customFieldTypeDefs += `
75
- input Create${entityName}CustomFieldsInput {
76
- ${mapToFields(writeableNonLocaleStringFields, getGraphQlInputType, shared_utils_1.getGraphQlInputName)}
77
- }
78
-
79
- extend input Create${entityName}Input {
80
- customFields: Create${entityName}CustomFieldsInput
81
- }
74
+ customFieldTypeDefs += `
75
+ input Create${entityName}CustomFieldsInput {
76
+ ${mapToFields(writeableNonLocaleStringFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
77
+ }
78
+
79
+ extend input Create${entityName}Input {
80
+ customFields: Create${entityName}CustomFieldsInput
81
+ }
82
82
  `;
83
83
  }
84
84
  else {
85
- customFieldTypeDefs += `
86
- extend input Create${entityName}Input {
87
- customFields: JSON
88
- }
85
+ customFieldTypeDefs += `
86
+ extend input Create${entityName}Input {
87
+ customFields: JSON
88
+ }
89
89
  `;
90
90
  }
91
91
  }
92
92
  if (schema.getType(`Update${entityName}Input`)) {
93
93
  if (writeableNonLocaleStringFields.length) {
94
- customFieldTypeDefs += `
95
- input Update${entityName}CustomFieldsInput {
96
- ${mapToFields(writeableNonLocaleStringFields, getGraphQlInputType, shared_utils_1.getGraphQlInputName)}
97
- }
98
-
99
- extend input Update${entityName}Input {
100
- customFields: Update${entityName}CustomFieldsInput
101
- }
94
+ customFieldTypeDefs += `
95
+ input Update${entityName}CustomFieldsInput {
96
+ ${mapToFields(writeableNonLocaleStringFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
97
+ }
98
+
99
+ extend input Update${entityName}Input {
100
+ customFields: Update${entityName}CustomFieldsInput
101
+ }
102
102
  `;
103
103
  }
104
104
  else {
105
- customFieldTypeDefs += `
106
- extend input Update${entityName}Input {
107
- customFields: JSON
108
- }
105
+ customFieldTypeDefs += `
106
+ extend input Update${entityName}Input {
107
+ customFields: JSON
108
+ }
109
109
  `;
110
110
  }
111
111
  }
112
- if (customEntityFields.length && schema.getType(`${entityName}SortParameter`)) {
113
- customFieldTypeDefs += `
114
- extend input ${entityName}SortParameter {
115
- ${mapToFields(customEntityFields, () => 'SortOrder')}
116
- }
112
+ const customEntityNonListFields = customEntityFields.filter(f => f.list !== true);
113
+ if (customEntityNonListFields.length && schema.getType(`${entityName}SortParameter`)) {
114
+ // Sorting list fields makes no sense, so we only add "sort" fields
115
+ // to non-list fields.
116
+ customFieldTypeDefs += `
117
+ extend input ${entityName}SortParameter {
118
+ ${mapToFields(customEntityNonListFields, () => 'SortOrder')}
119
+ }
117
120
  `;
118
121
  }
119
122
  if (filterableFields.length && schema.getType(`${entityName}FilterParameter`)) {
120
- customFieldTypeDefs += `
121
- extend input ${entityName}FilterParameter {
122
- ${mapToFields(filterableFields, getFilterOperator)}
123
- }
123
+ customFieldTypeDefs += `
124
+ extend input ${entityName}FilterParameter {
125
+ ${mapToFields(filterableFields, getFilterOperator)}
126
+ }
124
127
  `;
125
128
  }
126
129
  if (writeableLocaleStringFields) {
@@ -132,21 +135,21 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
132
135
  for (const inputName of translationInputs) {
133
136
  if (schema.getType(inputName)) {
134
137
  if (writeableLocaleStringFields.length) {
135
- customFieldTypeDefs += `
136
- input ${inputName}CustomFields {
137
- ${mapToFields(writeableLocaleStringFields, getGraphQlType)}
138
- }
139
-
140
- extend input ${inputName} {
141
- customFields: ${inputName}CustomFields
142
- }
138
+ customFieldTypeDefs += `
139
+ input ${inputName}CustomFields {
140
+ ${mapToFields(writeableLocaleStringFields, wrapListType(getGraphQlType))}
141
+ }
142
+
143
+ extend input ${inputName} {
144
+ customFields: ${inputName}CustomFields
145
+ }
143
146
  `;
144
147
  }
145
148
  else {
146
- customFieldTypeDefs += `
147
- extend input ${inputName} {
148
- customFields: JSON
149
- }
149
+ customFieldTypeDefs += `
150
+ extend input ${inputName} {
151
+ customFields: JSON
152
+ }
150
153
  `;
151
154
  }
152
155
  }
@@ -158,26 +161,26 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
158
161
  // For custom fields on the Address entity, we also extend the OrderAddress
159
162
  // type (which is used to store address snapshots on Orders)
160
163
  if (schema.getType('OrderAddress')) {
161
- customFieldTypeDefs += `
162
- extend type OrderAddress {
163
- customFields: AddressCustomFields
164
- }
164
+ customFieldTypeDefs += `
165
+ extend type OrderAddress {
166
+ customFields: AddressCustomFields
167
+ }
165
168
  `;
166
169
  }
167
170
  if (schema.getType('UpdateOrderAddressInput')) {
168
- customFieldTypeDefs += `
169
- extend input UpdateOrderAddressInput {
170
- customFields: UpdateAddressCustomFieldsInput
171
- }
171
+ customFieldTypeDefs += `
172
+ extend input UpdateOrderAddressInput {
173
+ customFields: UpdateAddressCustomFieldsInput
174
+ }
172
175
  `;
173
176
  }
174
177
  }
175
178
  else {
176
179
  if (schema.getType('OrderAddress')) {
177
- customFieldTypeDefs += `
178
- extend type OrderAddress {
179
- customFields: JSON
180
- }
180
+ customFieldTypeDefs += `
181
+ extend type OrderAddress {
182
+ customFields: JSON
183
+ }
181
184
  `;
182
185
  }
183
186
  }
@@ -186,24 +189,24 @@ function addGraphQLCustomFields(typeDefsOrSchema, customFieldConfig, publicOnly)
186
189
  exports.addGraphQLCustomFields = addGraphQLCustomFields;
187
190
  function addServerConfigCustomFields(typeDefsOrSchema, customFieldConfig) {
188
191
  const schema = typeof typeDefsOrSchema === 'string' ? graphql_1.buildSchema(typeDefsOrSchema) : typeDefsOrSchema;
189
- const customFieldTypeDefs = `
190
- type CustomFields {
191
- ${Object.keys(customFieldConfig).reduce((output, name) => output + name + `: [CustomFieldConfig!]!\n`, '')}
192
- }
193
-
194
- extend type ServerConfig {
195
- customFieldConfig: CustomFields!
196
- }
192
+ const customFieldTypeDefs = `
193
+ type CustomFields {
194
+ ${Object.keys(customFieldConfig).reduce((output, name) => output + name + `: [CustomFieldConfig!]!\n`, '')}
195
+ }
196
+
197
+ extend type ServerConfig {
198
+ customFieldConfig: CustomFields!
199
+ }
197
200
  `;
198
201
  return graphql_1.extendSchema(schema, graphql_1.parse(customFieldTypeDefs));
199
202
  }
200
203
  exports.addServerConfigCustomFields = addServerConfigCustomFields;
201
204
  function addActiveAdministratorCustomFields(typeDefsOrSchema, administratorCustomFields) {
202
205
  const schema = typeof typeDefsOrSchema === 'string' ? graphql_1.buildSchema(typeDefsOrSchema) : typeDefsOrSchema;
203
- const extension = `
204
- extend input UpdateActiveAdministratorInput {
205
- customFields: ${0 < (administratorCustomFields === null || administratorCustomFields === void 0 ? void 0 : administratorCustomFields.length) ? 'UpdateAdministratorCustomFieldsInput' : 'JSON'}
206
- }
206
+ const extension = `
207
+ extend input UpdateActiveAdministratorInput {
208
+ customFields: ${0 < (administratorCustomFields === null || administratorCustomFields === void 0 ? void 0 : administratorCustomFields.length) ? 'UpdateAdministratorCustomFieldsInput' : 'JSON'}
209
+ }
207
210
  `;
208
211
  return graphql_1.extendSchema(schema, graphql_1.parse(extension));
209
212
  }
@@ -224,14 +227,14 @@ function addRegisterCustomerCustomFieldsInput(typeDefsOrSchema, customerCustomFi
224
227
  if (publicWritableCustomFields.length < 1) {
225
228
  return schema;
226
229
  }
227
- const customFieldTypeDefs = `
228
- input RegisterCustomerCustomFieldsInput {
229
- ${mapToFields(publicWritableCustomFields, getGraphQlInputType, shared_utils_1.getGraphQlInputName)}
230
- }
231
-
232
- extend input RegisterCustomerInput {
233
- customFields: RegisterCustomerCustomFieldsInput
234
- }
230
+ const customFieldTypeDefs = `
231
+ input RegisterCustomerCustomFieldsInput {
232
+ ${mapToFields(publicWritableCustomFields, wrapListType(getGraphQlInputType), shared_utils_1.getGraphQlInputName)}
233
+ }
234
+
235
+ extend input RegisterCustomerInput {
236
+ customFields: RegisterCustomerCustomFieldsInput
237
+ }
235
238
  `;
236
239
  return graphql_1.extendSchema(schema, graphql_1.parse(customFieldTypeDefs));
237
240
  }
@@ -246,10 +249,10 @@ function addModifyOrderCustomFields(typeDefsOrSchema, orderCustomFields) {
246
249
  return schema;
247
250
  }
248
251
  if (schema.getType('ModifyOrderInput') && schema.getType('UpdateOrderCustomFieldsInput')) {
249
- const customFieldTypeDefs = `
250
- extend input ModifyOrderInput {
251
- customFields: UpdateOrderCustomFieldsInput
252
- }
252
+ const customFieldTypeDefs = `
253
+ extend input ModifyOrderInput {
254
+ customFields: UpdateOrderCustomFieldsInput
255
+ }
253
256
  `;
254
257
  return graphql_1.extendSchema(schema, graphql_1.parse(customFieldTypeDefs));
255
258
  }
@@ -309,18 +312,18 @@ function addOrderLineCustomFieldsInput(typeDefsOrSchema, orderLineCustomFields)
309
312
  }
310
313
  let extendedSchema = new graphql_1.GraphQLSchema(schemaConfig);
311
314
  if (schema.getType('AddItemInput')) {
312
- const customFieldTypeDefs = `
313
- extend input AddItemInput {
314
- customFields: OrderLineCustomFieldsInput
315
- }
315
+ const customFieldTypeDefs = `
316
+ extend input AddItemInput {
317
+ customFields: OrderLineCustomFieldsInput
318
+ }
316
319
  `;
317
320
  extendedSchema = graphql_1.extendSchema(extendedSchema, graphql_1.parse(customFieldTypeDefs));
318
321
  }
319
322
  if (schema.getType('AdjustOrderLineInput')) {
320
- const customFieldTypeDefs = `
321
- extend input AdjustOrderLineInput {
322
- customFields: OrderLineCustomFieldsInput
323
- }
323
+ const customFieldTypeDefs = `
324
+ extend input AdjustOrderLineInput {
325
+ customFields: OrderLineCustomFieldsInput
326
+ }
324
327
  `;
325
328
  extendedSchema = graphql_1.extendSchema(extendedSchema, graphql_1.parse(customFieldTypeDefs));
326
329
  }
@@ -332,17 +335,17 @@ function addShippingMethodQuoteCustomFields(typeDefsOrSchema, shippingMethodCust
332
335
  let customFieldTypeDefs = ``;
333
336
  const publicCustomFields = shippingMethodCustomFields.filter(f => f.public !== false);
334
337
  if (0 < publicCustomFields.length) {
335
- customFieldTypeDefs = `
336
- extend type ShippingMethodQuote {
337
- customFields: ShippingMethodCustomFields
338
- }
338
+ customFieldTypeDefs = `
339
+ extend type ShippingMethodQuote {
340
+ customFields: ShippingMethodCustomFields
341
+ }
339
342
  `;
340
343
  }
341
344
  else {
342
- customFieldTypeDefs = `
343
- extend type ShippingMethodQuote {
344
- customFields: JSON
345
- }
345
+ customFieldTypeDefs = `
346
+ extend type ShippingMethodQuote {
347
+ customFields: JSON
348
+ }
346
349
  `;
347
350
  }
348
351
  return graphql_1.extendSchema(schema, graphql_1.parse(customFieldTypeDefs));
@@ -353,17 +356,17 @@ function addPaymentMethodQuoteCustomFields(typeDefsOrSchema, paymentMethodCustom
353
356
  let customFieldTypeDefs = ``;
354
357
  const publicCustomFields = paymentMethodCustomFields.filter(f => f.public !== false);
355
358
  if (0 < publicCustomFields.length) {
356
- customFieldTypeDefs = `
357
- extend type PaymentMethodQuote {
358
- customFields: PaymentMethodCustomFields
359
- }
359
+ customFieldTypeDefs = `
360
+ extend type PaymentMethodQuote {
361
+ customFields: PaymentMethodCustomFields
362
+ }
360
363
  `;
361
364
  }
362
365
  else {
363
- customFieldTypeDefs = `
364
- extend type PaymentMethodQuote {
365
- customFields: JSON
366
- }
366
+ customFieldTypeDefs = `
367
+ extend type PaymentMethodQuote {
368
+ customFields: JSON
369
+ }
367
370
  `;
368
371
  }
369
372
  return graphql_1.extendSchema(schema, graphql_1.parse(customFieldTypeDefs));
@@ -375,13 +378,12 @@ exports.addPaymentMethodQuoteCustomFields = addPaymentMethodQuoteCustomFields;
375
378
  function mapToFields(fieldDefs, typeFn, nameFn) {
376
379
  const res = fieldDefs
377
380
  .map(field => {
378
- const primitiveType = typeFn(field);
379
- if (!primitiveType) {
381
+ const type = typeFn(field);
382
+ if (!type) {
380
383
  return;
381
384
  }
382
- const finalType = field.list ? `[${primitiveType}!]` : primitiveType;
383
385
  const name = nameFn ? nameFn(field) : field.name;
384
- return `${name}: ${finalType}`;
386
+ return `${name}: ${type}`;
385
387
  })
386
388
  .filter(x => x != null);
387
389
  return res.join('\n');
@@ -389,16 +391,16 @@ function mapToFields(fieldDefs, typeFn, nameFn) {
389
391
  function getFilterOperator(config) {
390
392
  switch (config.type) {
391
393
  case 'datetime':
392
- return 'DateOperators';
394
+ return config.list ? 'DateListOperators' : 'DateOperators';
393
395
  case 'string':
394
396
  case 'localeString':
395
397
  case 'text':
396
- return 'StringOperators';
398
+ return config.list ? 'StringListOperators' : 'StringOperators';
397
399
  case 'boolean':
398
- return 'BooleanOperators';
400
+ return config.list ? 'BooleanListOperators' : 'BooleanOperators';
399
401
  case 'int':
400
402
  case 'float':
401
- return 'NumberOperators';
403
+ return config.list ? 'NumberListOperators' : 'NumberOperators';
402
404
  case 'relation':
403
405
  return undefined;
404
406
  default:
@@ -409,6 +411,15 @@ function getFilterOperator(config) {
409
411
  function getGraphQlInputType(config) {
410
412
  return config.type === 'relation' ? `ID` : getGraphQlType(config);
411
413
  }
414
+ function wrapListType(getTypeFn) {
415
+ return (def) => {
416
+ const type = getTypeFn(def);
417
+ if (!type) {
418
+ return;
419
+ }
420
+ return def.list ? `[${type}!]` : type;
421
+ };
422
+ }
412
423
  function getGraphQlType(config) {
413
424
  switch (config.type) {
414
425
  case 'string':