@vendure/core 1.7.0 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1059) hide show
  1. package/dist/api/config/generate-permissions.js +1 -1
  2. package/dist/api/decorators/allow.decorator.d.ts +11 -0
  3. package/dist/api/decorators/allow.decorator.js +11 -0
  4. package/dist/api/decorators/allow.decorator.js.map +1 -1
  5. package/dist/api/resolvers/admin/customer.resolver.d.ts +3 -1
  6. package/dist/api/resolvers/admin/customer.resolver.js +13 -2
  7. package/dist/api/resolvers/admin/customer.resolver.js.map +1 -1
  8. package/dist/api/resolvers/base/base-auth.resolver.d.ts +2 -2
  9. package/dist/api/resolvers/base/base-auth.resolver.js.map +1 -1
  10. package/dist/api/resolvers/shop/shop-order.resolver.js +3 -11
  11. package/dist/api/resolvers/shop/shop-order.resolver.js.map +1 -1
  12. package/dist/api/schema/common/order.type.graphql +1 -0
  13. package/dist/connection/remove-custom-fields-with-eager-relations.d.ts +34 -0
  14. package/dist/connection/remove-custom-fields-with-eager-relations.js +55 -0
  15. package/dist/connection/remove-custom-fields-with-eager-relations.js.map +1 -0
  16. package/dist/connection/transactional-connection.d.ts +0 -33
  17. package/dist/connection/transactional-connection.js +21 -53
  18. package/dist/connection/transactional-connection.js.map +1 -1
  19. package/dist/plugin/default-search-plugin/fulltext-search.service.js +3 -0
  20. package/dist/plugin/default-search-plugin/fulltext-search.service.js.map +1 -1
  21. package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +13 -8
  22. package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js.map +1 -1
  23. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js +8 -8
  24. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js.map +1 -1
  25. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.js +4 -6
  26. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.js.map +1 -1
  27. package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js +7 -10
  28. package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js.map +1 -1
  29. package/dist/service/services/collection.service.js +3 -0
  30. package/dist/service/services/collection.service.js.map +1 -1
  31. package/dist/service/services/customer-group.service.js +1 -0
  32. package/dist/service/services/customer-group.service.js.map +1 -1
  33. package/dist/service/services/customer.service.d.ts +9 -0
  34. package/dist/service/services/customer.service.js +31 -0
  35. package/dist/service/services/customer.service.js.map +1 -1
  36. package/dist/service/services/order.service.js +1 -1
  37. package/dist/service/services/order.service.js.map +1 -1
  38. package/dist/service/services/product-variant.service.js +1 -12
  39. package/dist/service/services/product-variant.service.js.map +1 -1
  40. package/dist/service/services/product.service.js +3 -1
  41. package/dist/service/services/product.service.js.map +1 -1
  42. package/dist/service/services/user.service.d.ts +1 -1
  43. package/dist/service/services/user.service.js +5 -0
  44. package/dist/service/services/user.service.js.map +1 -1
  45. package/package.json +3 -3
  46. package/cli/api/common/extract-session-token.d.ts +0 -3
  47. package/cli/api/common/extract-session-token.js +0 -35
  48. package/cli/api/common/extract-session-token.js.map +0 -1
  49. package/cli/api/common/get-api-type.d.ts +0 -3
  50. package/cli/api/common/get-api-type.js +0 -12
  51. package/cli/api/common/get-api-type.js.map +0 -1
  52. package/cli/api/common/graphql-value-transformer.d.ts +0 -30
  53. package/cli/api/common/graphql-value-transformer.js +0 -199
  54. package/cli/api/common/graphql-value-transformer.js.map +0 -1
  55. package/cli/api/common/id-codec.d.ts +0 -11
  56. package/cli/api/common/id-codec.js +0 -94
  57. package/cli/api/common/id-codec.js.map +0 -1
  58. package/cli/api/common/id-codec.service.d.ts +0 -7
  59. package/cli/api/common/id-codec.service.js +0 -33
  60. package/cli/api/common/id-codec.service.js.map +0 -1
  61. package/cli/api/common/parse-context.d.ts +0 -16
  62. package/cli/api/common/parse-context.js +0 -39
  63. package/cli/api/common/parse-context.js.map +0 -1
  64. package/cli/api/common/request-context.d.ts +0 -55
  65. package/cli/api/common/request-context.js +0 -143
  66. package/cli/api/common/request-context.js.map +0 -1
  67. package/cli/api/common/set-session-token.d.ts +0 -9
  68. package/cli/api/common/set-session-token.js +0 -27
  69. package/cli/api/common/set-session-token.js.map +0 -1
  70. package/cli/api/decorators/allow.decorator.d.ts +0 -3
  71. package/cli/api/decorators/allow.decorator.js +0 -8
  72. package/cli/api/decorators/allow.decorator.js.map +0 -1
  73. package/cli/api/decorators/api.decorator.d.ts +0 -1
  74. package/cli/api/decorators/api.decorator.js +0 -10
  75. package/cli/api/decorators/api.decorator.js.map +0 -1
  76. package/cli/api/decorators/request-context.decorator.d.ts +0 -1
  77. package/cli/api/decorators/request-context.decorator.js +0 -14
  78. package/cli/api/decorators/request-context.decorator.js.map +0 -1
  79. package/cli/api/decorators/transaction.decorator.d.ts +0 -3
  80. package/cli/api/decorators/transaction.decorator.js +0 -11
  81. package/cli/api/decorators/transaction.decorator.js.map +0 -1
  82. package/cli/api/index.d.ts +0 -11
  83. package/cli/api/index.js +0 -23
  84. package/cli/api/index.js.map +0 -1
  85. package/cli/api/middleware/auth-guard.d.ts +0 -21
  86. package/cli/api/middleware/auth-guard.js +0 -151
  87. package/cli/api/middleware/auth-guard.js.map +0 -1
  88. package/cli/api/middleware/exception-logger.filter.d.ts +0 -6
  89. package/cli/api/middleware/exception-logger.filter.js +0 -82
  90. package/cli/api/middleware/exception-logger.filter.js.map +0 -1
  91. package/cli/api/middleware/id-interceptor.d.ts +0 -12
  92. package/cli/api/middleware/id-interceptor.js +0 -56
  93. package/cli/api/middleware/id-interceptor.js.map +0 -1
  94. package/cli/api/middleware/transaction-interceptor.d.ts +0 -12
  95. package/cli/api/middleware/transaction-interceptor.js +0 -46
  96. package/cli/api/middleware/transaction-interceptor.js.map +0 -1
  97. package/cli/api/resolvers/admin/search.resolver.d.ts +0 -17
  98. package/cli/api/resolvers/admin/search.resolver.js +0 -81
  99. package/cli/api/resolvers/admin/search.resolver.js.map +0 -1
  100. package/cli/cache/index.d.ts +0 -1
  101. package/cli/cache/index.js +0 -14
  102. package/cli/cache/index.js.map +0 -1
  103. package/cli/cache/request-context-cache.service.d.ts +0 -9
  104. package/cli/cache/request-context-cache.service.js +0 -39
  105. package/cli/cache/request-context-cache.service.js.map +0 -1
  106. package/cli/cli/cli-utils.d.ts +0 -1
  107. package/cli/cli/cli-utils.js +0 -8
  108. package/cli/cli/cli-utils.js.map +0 -1
  109. package/cli/cli/index.d.ts +0 -1
  110. package/cli/cli/index.js +0 -14
  111. package/cli/cli/index.js.map +0 -1
  112. package/cli/cli/populate.d.ts +0 -5
  113. package/cli/cli/populate.js +0 -106
  114. package/cli/cli/populate.js.map +0 -1
  115. package/cli/cli/vendure-cli.d.ts +0 -2
  116. package/cli/cli/vendure-cli.js +0 -119
  117. package/cli/cli/vendure-cli.js.map +0 -1
  118. package/cli/common/async-queue.d.ts +0 -17
  119. package/cli/common/async-queue.js +0 -56
  120. package/cli/common/async-queue.js.map +0 -1
  121. package/cli/common/calculated-decorator.d.ts +0 -12
  122. package/cli/common/calculated-decorator.js +0 -22
  123. package/cli/common/calculated-decorator.js.map +0 -1
  124. package/cli/common/configurable-operation.d.ts +0 -53
  125. package/cli/common/configurable-operation.js +0 -96
  126. package/cli/common/configurable-operation.js.map +0 -1
  127. package/cli/common/constants.d.ts +0 -7
  128. package/cli/common/constants.js +0 -66
  129. package/cli/common/constants.js.map +0 -1
  130. package/cli/common/error/error-result.d.ts +0 -8
  131. package/cli/common/error/error-result.js +0 -11
  132. package/cli/common/error/error-result.js.map +0 -1
  133. package/cli/common/error/errors.d.ts +0 -31
  134. package/cli/common/error/errors.js +0 -48
  135. package/cli/common/error/errors.js.map +0 -1
  136. package/cli/common/error/generated-graphql-admin-errors.d.ts +0 -309
  137. package/cli/common/error/generated-graphql-admin-errors.js +0 -446
  138. package/cli/common/error/generated-graphql-admin-errors.js.map +0 -1
  139. package/cli/common/error/generated-graphql-shop-errors.d.ts +0 -254
  140. package/cli/common/error/generated-graphql-shop-errors.js +0 -370
  141. package/cli/common/error/generated-graphql-shop-errors.js.map +0 -1
  142. package/cli/common/finite-state-machine/finite-state-machine.d.ts +0 -14
  143. package/cli/common/finite-state-machine/finite-state-machine.js +0 -55
  144. package/cli/common/finite-state-machine/finite-state-machine.js.map +0 -1
  145. package/cli/common/finite-state-machine/merge-transition-definitions.d.ts +0 -2
  146. package/cli/common/finite-state-machine/merge-transition-definitions.js +0 -27
  147. package/cli/common/finite-state-machine/merge-transition-definitions.js.map +0 -1
  148. package/cli/common/finite-state-machine/types.d.ts +0 -16
  149. package/cli/common/finite-state-machine/types.js +0 -3
  150. package/cli/common/finite-state-machine/types.js.map +0 -1
  151. package/cli/common/finite-state-machine/validate-transition-definition.d.ts +0 -5
  152. package/cli/common/finite-state-machine/validate-transition-definition.js +0 -41
  153. package/cli/common/finite-state-machine/validate-transition-definition.js.map +0 -1
  154. package/cli/common/generate-public-id.d.ts +0 -1
  155. package/cli/common/generate-public-id.js +0 -10
  156. package/cli/common/generate-public-id.js.map +0 -1
  157. package/cli/common/index.d.ts +0 -15
  158. package/cli/common/index.js +0 -28
  159. package/cli/common/index.js.map +0 -1
  160. package/cli/common/injector.d.ts +0 -8
  161. package/cli/common/injector.js +0 -16
  162. package/cli/common/injector.js.map +0 -1
  163. package/cli/common/permission-definition.d.ts +0 -23
  164. package/cli/common/permission-definition.js +0 -53
  165. package/cli/common/permission-definition.js.map +0 -1
  166. package/cli/common/self-refreshing-cache.d.ts +0 -15
  167. package/cli/common/self-refreshing-cache.js +0 -56
  168. package/cli/common/self-refreshing-cache.js.map +0 -1
  169. package/cli/common/tax-utils.d.ts +0 -4
  170. package/cli/common/tax-utils.js +0 -20
  171. package/cli/common/tax-utils.js.map +0 -1
  172. package/cli/common/ttl-cache.d.ts +0 -13
  173. package/cli/common/ttl-cache.js +0 -48
  174. package/cli/common/ttl-cache.js.map +0 -1
  175. package/cli/common/types/adjustment-source.d.ts +0 -14
  176. package/cli/common/types/adjustment-source.js +0 -18
  177. package/cli/common/types/adjustment-source.js.map +0 -1
  178. package/cli/common/types/common-types.d.ts +0 -97
  179. package/cli/common/types/common-types.js +0 -3
  180. package/cli/common/types/common-types.js.map +0 -1
  181. package/cli/common/types/entity-relation-paths.d.ts +0 -16
  182. package/cli/common/types/entity-relation-paths.js +0 -3
  183. package/cli/common/types/entity-relation-paths.js.map +0 -1
  184. package/cli/common/types/injectable-strategy.d.ts +0 -5
  185. package/cli/common/types/injectable-strategy.js +0 -3
  186. package/cli/common/types/injectable-strategy.js.map +0 -1
  187. package/cli/common/types/locale-types.d.ts +0 -43
  188. package/cli/common/types/locale-types.js +0 -3
  189. package/cli/common/types/locale-types.js.map +0 -1
  190. package/cli/common/utils.d.ts +0 -11
  191. package/cli/common/utils.js +0 -66
  192. package/cli/common/utils.js.map +0 -1
  193. package/cli/config/asset-naming-strategy/asset-naming-strategy.d.ts +0 -6
  194. package/cli/config/asset-naming-strategy/asset-naming-strategy.js +0 -3
  195. package/cli/config/asset-naming-strategy/asset-naming-strategy.js.map +0 -1
  196. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.d.ts +0 -11
  197. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.js +0 -55
  198. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.js.map +0 -1
  199. package/cli/config/asset-preview-strategy/asset-preview-strategy.d.ts +0 -6
  200. package/cli/config/asset-preview-strategy/asset-preview-strategy.js +0 -3
  201. package/cli/config/asset-preview-strategy/asset-preview-strategy.js.map +0 -1
  202. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.d.ts +0 -6
  203. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.js +0 -11
  204. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.js.map +0 -1
  205. package/cli/config/asset-storage-strategy/asset-storage-strategy.d.ts +0 -13
  206. package/cli/config/asset-storage-strategy/asset-storage-strategy.js +0 -3
  207. package/cli/config/asset-storage-strategy/asset-storage-strategy.js.map +0 -1
  208. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.d.ts +0 -13
  209. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.js +0 -30
  210. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.js.map +0 -1
  211. package/cli/config/auth/authentication-strategy.d.ts +0 -10
  212. package/cli/config/auth/authentication-strategy.js +0 -3
  213. package/cli/config/auth/authentication-strategy.js.map +0 -1
  214. package/cli/config/auth/bcrypt-password-hashing-strategy.d.ts +0 -7
  215. package/cli/config/auth/bcrypt-password-hashing-strategy.js +0 -21
  216. package/cli/config/auth/bcrypt-password-hashing-strategy.js.map +0 -1
  217. package/cli/config/auth/default-password-validation-strategy.d.ts +0 -10
  218. package/cli/config/auth/default-password-validation-strategy.js +0 -24
  219. package/cli/config/auth/default-password-validation-strategy.js.map +0 -1
  220. package/cli/config/auth/native-authentication-strategy.d.ts +0 -21
  221. package/cli/config/auth/native-authentication-strategy.js +0 -87
  222. package/cli/config/auth/native-authentication-strategy.js.map +0 -1
  223. package/cli/config/auth/password-hashing-strategy.d.ts +0 -5
  224. package/cli/config/auth/password-hashing-strategy.js +0 -3
  225. package/cli/config/auth/password-hashing-strategy.js.map +0 -1
  226. package/cli/config/auth/password-validation-strategy.d.ts +0 -5
  227. package/cli/config/auth/password-validation-strategy.js +0 -3
  228. package/cli/config/auth/password-validation-strategy.js.map +0 -1
  229. package/cli/config/catalog/collection-filter.d.ts +0 -13
  230. package/cli/config/catalog/collection-filter.js +0 -15
  231. package/cli/config/catalog/collection-filter.js.map +0 -1
  232. package/cli/config/catalog/default-collection-filters.d.ts +0 -52
  233. package/cli/config/catalog/default-collection-filters.js +0 -112
  234. package/cli/config/catalog/default-collection-filters.js.map +0 -1
  235. package/cli/config/catalog/default-product-variant-price-calculation-strategy.d.ts +0 -8
  236. package/cli/config/catalog/default-product-variant-price-calculation-strategy.js +0 -31
  237. package/cli/config/catalog/default-product-variant-price-calculation-strategy.js.map +0 -1
  238. package/cli/config/catalog/default-stock-display-strategy.d.ts +0 -8
  239. package/cli/config/catalog/default-stock-display-strategy.js +0 -17
  240. package/cli/config/catalog/default-stock-display-strategy.js.map +0 -1
  241. package/cli/config/catalog/product-variant-price-calculation-strategy.d.ts +0 -13
  242. package/cli/config/catalog/product-variant-price-calculation-strategy.js +0 -3
  243. package/cli/config/catalog/product-variant-price-calculation-strategy.js.map +0 -1
  244. package/cli/config/catalog/stock-display-strategy.d.ts +0 -6
  245. package/cli/config/catalog/stock-display-strategy.js +0 -3
  246. package/cli/config/catalog/stock-display-strategy.js.map +0 -1
  247. package/cli/config/config-helpers.d.ts +0 -3
  248. package/cli/config/config-helpers.js +0 -15
  249. package/cli/config/config-helpers.js.map +0 -1
  250. package/cli/config/config.module.d.ts +0 -16
  251. package/cli/config/config.module.js +0 -120
  252. package/cli/config/config.module.js.map +0 -1
  253. package/cli/config/config.service.d.ts +0 -30
  254. package/cli/config/config.service.js +0 -86
  255. package/cli/config/config.service.js.map +0 -1
  256. package/cli/config/custom-field/custom-field-types.d.ts +0 -65
  257. package/cli/config/custom-field/custom-field-types.js +0 -3
  258. package/cli/config/custom-field/custom-field-types.js.map +0 -1
  259. package/cli/config/default-config.d.ts +0 -2
  260. package/cli/config/default-config.js +0 -174
  261. package/cli/config/default-config.js.map +0 -1
  262. package/cli/config/entity-id-strategy/auto-increment-id-strategy.d.ts +0 -6
  263. package/cli/config/entity-id-strategy/auto-increment-id-strategy.js +0 -17
  264. package/cli/config/entity-id-strategy/auto-increment-id-strategy.js.map +0 -1
  265. package/cli/config/entity-id-strategy/entity-id-strategy.d.ts +0 -7
  266. package/cli/config/entity-id-strategy/entity-id-strategy.js +0 -3
  267. package/cli/config/entity-id-strategy/entity-id-strategy.js.map +0 -1
  268. package/cli/config/entity-id-strategy/uuid-id-strategy.d.ts +0 -6
  269. package/cli/config/entity-id-strategy/uuid-id-strategy.js +0 -16
  270. package/cli/config/entity-id-strategy/uuid-id-strategy.js.map +0 -1
  271. package/cli/config/fulfillment/custom-fulfillment-process.d.ts +0 -9
  272. package/cli/config/fulfillment/custom-fulfillment-process.js +0 -3
  273. package/cli/config/fulfillment/custom-fulfillment-process.js.map +0 -1
  274. package/cli/config/fulfillment/fulfillment-handler.d.ts +0 -21
  275. package/cli/config/fulfillment/fulfillment-handler.js +0 -23
  276. package/cli/config/fulfillment/fulfillment-handler.js.map +0 -1
  277. package/cli/config/fulfillment/manual-fulfillment-handler.d.ts +0 -11
  278. package/cli/config/fulfillment/manual-fulfillment-handler.js +0 -26
  279. package/cli/config/fulfillment/manual-fulfillment-handler.js.map +0 -1
  280. package/cli/config/index.d.ts +0 -61
  281. package/cli/config/index.js +0 -74
  282. package/cli/config/index.js.map +0 -1
  283. package/cli/config/job-queue/inspectable-job-queue-strategy.d.ts +0 -12
  284. package/cli/config/job-queue/inspectable-job-queue-strategy.js +0 -11
  285. package/cli/config/job-queue/inspectable-job-queue-strategy.js.map +0 -1
  286. package/cli/config/job-queue/job-queue-strategy.d.ts +0 -8
  287. package/cli/config/job-queue/job-queue-strategy.js +0 -3
  288. package/cli/config/job-queue/job-queue-strategy.js.map +0 -1
  289. package/cli/config/logger/default-logger.d.ts +0 -24
  290. package/cli/config/logger/default-logger.js +0 -90
  291. package/cli/config/logger/default-logger.js.map +0 -1
  292. package/cli/config/logger/noop-logger.d.ts +0 -8
  293. package/cli/config/logger/noop-logger.js +0 -17
  294. package/cli/config/logger/noop-logger.js.map +0 -1
  295. package/cli/config/logger/typeorm-logger.d.ts +0 -15
  296. package/cli/config/logger/typeorm-logger.js +0 -74
  297. package/cli/config/logger/typeorm-logger.js.map +0 -1
  298. package/cli/config/logger/vendure-logger.d.ts +0 -32
  299. package/cli/config/logger/vendure-logger.js +0 -68
  300. package/cli/config/logger/vendure-logger.js.map +0 -1
  301. package/cli/config/merge-config.d.ts +0 -2
  302. package/cli/config/merge-config.js +0 -34
  303. package/cli/config/merge-config.js.map +0 -1
  304. package/cli/config/order/changed-price-handling-strategy.d.ts +0 -7
  305. package/cli/config/order/changed-price-handling-strategy.js +0 -3
  306. package/cli/config/order/changed-price-handling-strategy.js.map +0 -1
  307. package/cli/config/order/custom-order-process.d.ts +0 -9
  308. package/cli/config/order/custom-order-process.js +0 -3
  309. package/cli/config/order/custom-order-process.js.map +0 -1
  310. package/cli/config/order/default-changed-price-handling-strategy.d.ts +0 -6
  311. package/cli/config/order/default-changed-price-handling-strategy.js +0 -10
  312. package/cli/config/order/default-changed-price-handling-strategy.js.map +0 -1
  313. package/cli/config/order/default-order-item-price-calculation-strategy.d.ts +0 -7
  314. package/cli/config/order/default-order-item-price-calculation-strategy.js +0 -13
  315. package/cli/config/order/default-order-item-price-calculation-strategy.js.map +0 -1
  316. package/cli/config/order/default-order-placed-strategy.d.ts +0 -7
  317. package/cli/config/order/default-order-placed-strategy.js +0 -13
  318. package/cli/config/order/default-order-placed-strategy.js.map +0 -1
  319. package/cli/config/order/default-stock-allocation-strategy.d.ts +0 -7
  320. package/cli/config/order/default-stock-allocation-strategy.js +0 -11
  321. package/cli/config/order/default-stock-allocation-strategy.js.map +0 -1
  322. package/cli/config/order/merge-orders-strategy.d.ts +0 -7
  323. package/cli/config/order/merge-orders-strategy.js +0 -29
  324. package/cli/config/order/merge-orders-strategy.js.map +0 -1
  325. package/cli/config/order/order-by-code-access-strategy.d.ts +0 -11
  326. package/cli/config/order/order-by-code-access-strategy.js +0 -25
  327. package/cli/config/order/order-by-code-access-strategy.js.map +0 -1
  328. package/cli/config/order/order-code-strategy.d.ts +0 -8
  329. package/cli/config/order/order-code-strategy.js +0 -11
  330. package/cli/config/order/order-code-strategy.js.map +0 -1
  331. package/cli/config/order/order-item-price-calculation-strategy.d.ts +0 -9
  332. package/cli/config/order/order-item-price-calculation-strategy.js +0 -3
  333. package/cli/config/order/order-item-price-calculation-strategy.js.map +0 -1
  334. package/cli/config/order/order-merge-strategy.d.ts +0 -14
  335. package/cli/config/order/order-merge-strategy.js +0 -12
  336. package/cli/config/order/order-merge-strategy.js.map +0 -1
  337. package/cli/config/order/order-placed-strategy.d.ts +0 -7
  338. package/cli/config/order/order-placed-strategy.js +0 -3
  339. package/cli/config/order/order-placed-strategy.js.map +0 -1
  340. package/cli/config/order/stock-allocation-strategy.d.ts +0 -7
  341. package/cli/config/order/stock-allocation-strategy.js +0 -3
  342. package/cli/config/order/stock-allocation-strategy.js.map +0 -1
  343. package/cli/config/order/use-existing-strategy.d.ts +0 -6
  344. package/cli/config/order/use-existing-strategy.js +0 -11
  345. package/cli/config/order/use-existing-strategy.js.map +0 -1
  346. package/cli/config/order/use-guest-if-existing-empty-strategy.d.ts +0 -6
  347. package/cli/config/order/use-guest-if-existing-empty-strategy.js +0 -13
  348. package/cli/config/order/use-guest-if-existing-empty-strategy.js.map +0 -1
  349. package/cli/config/order/use-guest-strategy.d.ts +0 -6
  350. package/cli/config/order/use-guest-strategy.js +0 -11
  351. package/cli/config/order/use-guest-strategy.js.map +0 -1
  352. package/cli/config/payment/custom-payment-process.d.ts +0 -9
  353. package/cli/config/payment/custom-payment-process.js +0 -3
  354. package/cli/config/payment/custom-payment-process.js.map +0 -1
  355. package/cli/config/payment/dummy-payment-method-handler.d.ts +0 -17
  356. package/cli/config/payment/dummy-payment-method-handler.js +0 -74
  357. package/cli/config/payment/dummy-payment-method-handler.js.map +0 -1
  358. package/cli/config/payment/example-payment-method-handler.d.ts +0 -11
  359. package/cli/config/payment/example-payment-method-handler.js +0 -59
  360. package/cli/config/payment/example-payment-method-handler.js.map +0 -1
  361. package/cli/config/payment/payment-method-eligibility-checker.d.ts +0 -13
  362. package/cli/config/payment/payment-method-eligibility-checker.js +0 -15
  363. package/cli/config/payment/payment-method-eligibility-checker.js.map +0 -1
  364. package/cli/config/payment/payment-method-handler.d.ts +0 -73
  365. package/cli/config/payment/payment-method-handler.js +0 -36
  366. package/cli/config/payment/payment-method-handler.js.map +0 -1
  367. package/cli/config/promotion/actions/buy-x-get-y-free-action.d.ts +0 -37
  368. package/cli/config/promotion/actions/buy-x-get-y-free-action.js +0 -30
  369. package/cli/config/promotion/actions/buy-x-get-y-free-action.js.map +0 -1
  370. package/cli/config/promotion/actions/facet-values-percentage-discount-action.d.ts +0 -17
  371. package/cli/config/promotion/actions/facet-values-percentage-discount-action.js +0 -39
  372. package/cli/config/promotion/actions/facet-values-percentage-discount-action.js.map +0 -1
  373. package/cli/config/promotion/actions/free-shipping-action.d.ts +0 -2
  374. package/cli/config/promotion/actions/free-shipping-action.js +0 -14
  375. package/cli/config/promotion/actions/free-shipping-action.js.map +0 -1
  376. package/cli/config/promotion/actions/order-fixed-discount-action.d.ts +0 -9
  377. package/cli/config/promotion/actions/order-fixed-discount-action.js +0 -21
  378. package/cli/config/promotion/actions/order-fixed-discount-action.js.map +0 -1
  379. package/cli/config/promotion/actions/order-percentage-discount-action.d.ts +0 -10
  380. package/cli/config/promotion/actions/order-percentage-discount-action.js +0 -23
  381. package/cli/config/promotion/actions/order-percentage-discount-action.js.map +0 -1
  382. package/cli/config/promotion/actions/product-percentage-discount-action.d.ts +0 -22
  383. package/cli/config/promotion/actions/product-percentage-discount-action.js +0 -36
  384. package/cli/config/promotion/actions/product-percentage-discount-action.js.map +0 -1
  385. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.d.ts +0 -37
  386. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.js +0 -71
  387. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.js.map +0 -1
  388. package/cli/config/promotion/conditions/contains-products-condition.d.ts +0 -19
  389. package/cli/config/promotion/conditions/contains-products-condition.js +0 -38
  390. package/cli/config/promotion/conditions/contains-products-condition.js.map +0 -1
  391. package/cli/config/promotion/conditions/customer-group-condition.d.ts +0 -14
  392. package/cli/config/promotion/conditions/customer-group-condition.js +0 -72
  393. package/cli/config/promotion/conditions/customer-group-condition.js.map +0 -1
  394. package/cli/config/promotion/conditions/has-facet-values-condition.d.ts +0 -14
  395. package/cli/config/promotion/conditions/has-facet-values-condition.js +0 -31
  396. package/cli/config/promotion/conditions/has-facet-values-condition.js.map +0 -1
  397. package/cli/config/promotion/conditions/min-order-amount-condition.d.ts +0 -14
  398. package/cli/config/promotion/conditions/min-order-amount-condition.js +0 -27
  399. package/cli/config/promotion/conditions/min-order-amount-condition.js.map +0 -1
  400. package/cli/config/promotion/index.d.ts +0 -170
  401. package/cli/config/promotion/index.js +0 -50
  402. package/cli/config/promotion/index.js.map +0 -1
  403. package/cli/config/promotion/promotion-action.d.ts +0 -56
  404. package/cli/config/promotion/promotion-action.js +0 -49
  405. package/cli/config/promotion/promotion-action.js.map +0 -1
  406. package/cli/config/promotion/promotion-condition.d.ts +0 -19
  407. package/cli/config/promotion/promotion-condition.js +0 -19
  408. package/cli/config/promotion/promotion-condition.js.map +0 -1
  409. package/cli/config/promotion/utils/facet-value-checker.d.ts +0 -9
  410. package/cli/config/promotion/utils/facet-value-checker.js +0 -31
  411. package/cli/config/promotion/utils/facet-value-checker.js.map +0 -1
  412. package/cli/config/session-cache/in-memory-session-cache-strategy.d.ts +0 -11
  413. package/cli/config/session-cache/in-memory-session-cache-strategy.js +0 -44
  414. package/cli/config/session-cache/in-memory-session-cache-strategy.js.map +0 -1
  415. package/cli/config/session-cache/noop-session-cache-strategy.d.ts +0 -7
  416. package/cli/config/session-cache/noop-session-cache-strategy.js +0 -19
  417. package/cli/config/session-cache/noop-session-cache-strategy.js.map +0 -1
  418. package/cli/config/session-cache/session-cache-strategy.d.ts +0 -25
  419. package/cli/config/session-cache/session-cache-strategy.js +0 -3
  420. package/cli/config/session-cache/session-cache-strategy.js.map +0 -1
  421. package/cli/config/shipping-method/default-shipping-calculator.d.ts +0 -51
  422. package/cli/config/shipping-method/default-shipping-calculator.js +0 -69
  423. package/cli/config/shipping-method/default-shipping-calculator.js.map +0 -1
  424. package/cli/config/shipping-method/default-shipping-eligibility-checker.d.ts +0 -19
  425. package/cli/config/shipping-method/default-shipping-eligibility-checker.js +0 -27
  426. package/cli/config/shipping-method/default-shipping-eligibility-checker.js.map +0 -1
  427. package/cli/config/shipping-method/shipping-calculator.d.ts +0 -20
  428. package/cli/config/shipping-method/shipping-calculator.js +0 -15
  429. package/cli/config/shipping-method/shipping-calculator.js.map +0 -1
  430. package/cli/config/shipping-method/shipping-eligibility-checker.d.ts +0 -19
  431. package/cli/config/shipping-method/shipping-eligibility-checker.js +0 -38
  432. package/cli/config/shipping-method/shipping-eligibility-checker.js.map +0 -1
  433. package/cli/config/tax/default-tax-line-calculation-strategy.d.ts +0 -5
  434. package/cli/config/tax/default-tax-line-calculation-strategy.js +0 -11
  435. package/cli/config/tax/default-tax-line-calculation-strategy.js.map +0 -1
  436. package/cli/config/tax/default-tax-zone-strategy.d.ts +0 -6
  437. package/cli/config/tax/default-tax-zone-strategy.js +0 -10
  438. package/cli/config/tax/default-tax-zone-strategy.js.map +0 -1
  439. package/cli/config/tax/tax-line-calculation-strategy.d.ts +0 -17
  440. package/cli/config/tax/tax-line-calculation-strategy.js +0 -3
  441. package/cli/config/tax/tax-line-calculation-strategy.js.map +0 -1
  442. package/cli/config/tax/tax-zone-strategy.d.ts +0 -6
  443. package/cli/config/tax/tax-zone-strategy.js +0 -3
  444. package/cli/config/tax/tax-zone-strategy.js.map +0 -1
  445. package/cli/config/vendure-config.d.ts +0 -192
  446. package/cli/config/vendure-config.js +0 -3
  447. package/cli/config/vendure-config.js.map +0 -1
  448. package/cli/connection/connection.module.d.ts +0 -7
  449. package/cli/connection/connection.module.js +0 -61
  450. package/cli/connection/connection.module.js.map +0 -1
  451. package/cli/connection/transaction-subscriber.d.ts +0 -19
  452. package/cli/connection/transaction-subscriber.js +0 -54
  453. package/cli/connection/transaction-subscriber.js.map +0 -1
  454. package/cli/connection/transaction-wrapper.d.ts +0 -9
  455. package/cli/connection/transaction-wrapper.js +0 -79
  456. package/cli/connection/transaction-wrapper.js.map +0 -1
  457. package/cli/connection/transactional-connection.d.ts +0 -25
  458. package/cli/connection/transactional-connection.js +0 -170
  459. package/cli/connection/transactional-connection.js.map +0 -1
  460. package/cli/connection/types.d.ts +0 -8
  461. package/cli/connection/types.js +0 -3
  462. package/cli/connection/types.js.map +0 -1
  463. package/cli/entity/address/address.entity.d.ts +0 -22
  464. package/cli/entity/address/address.entity.js +0 -80
  465. package/cli/entity/address/address.entity.js.map +0 -1
  466. package/cli/entity/administrator/administrator.entity.d.ts +0 -15
  467. package/cli/entity/administrator/administrator.entity.js +0 -52
  468. package/cli/entity/administrator/administrator.entity.js.map +0 -1
  469. package/cli/entity/asset/asset.entity.d.ts +0 -26
  470. package/cli/entity/asset/asset.entity.js +0 -79
  471. package/cli/entity/asset/asset.entity.js.map +0 -1
  472. package/cli/entity/asset/orderable-asset.entity.d.ts +0 -10
  473. package/cli/entity/asset/orderable-asset.entity.js +0 -34
  474. package/cli/entity/asset/orderable-asset.entity.js.map +0 -1
  475. package/cli/entity/authentication-method/authentication-method.entity.d.ts +0 -5
  476. package/cli/entity/authentication-method/authentication-method.entity.js +0 -27
  477. package/cli/entity/authentication-method/authentication-method.entity.js.map +0 -1
  478. package/cli/entity/authentication-method/external-authentication-method.entity.d.ts +0 -8
  479. package/cli/entity/authentication-method/external-authentication-method.entity.js +0 -37
  480. package/cli/entity/authentication-method/external-authentication-method.entity.js.map +0 -1
  481. package/cli/entity/authentication-method/native-authentication-method.entity.d.ts +0 -11
  482. package/cli/entity/authentication-method/native-authentication-method.entity.js +0 -49
  483. package/cli/entity/authentication-method/native-authentication-method.entity.js.map +0 -1
  484. package/cli/entity/base/base.entity.d.ts +0 -7
  485. package/cli/entity/base/base.entity.js +0 -37
  486. package/cli/entity/base/base.entity.js.map +0 -1
  487. package/cli/entity/channel/channel.entity.d.ts +0 -17
  488. package/cli/entity/channel/channel.entity.js +0 -67
  489. package/cli/entity/channel/channel.entity.js.map +0 -1
  490. package/cli/entity/collection/collection-asset.entity.d.ts +0 -8
  491. package/cli/entity/collection/collection-asset.entity.js +0 -34
  492. package/cli/entity/collection/collection-asset.entity.js.map +0 -1
  493. package/cli/entity/collection/collection-translation.entity.d.ts +0 -16
  494. package/cli/entity/collection/collection-translation.entity.js +0 -52
  495. package/cli/entity/collection/collection-translation.entity.js.map +0 -1
  496. package/cli/entity/collection/collection.entity.d.ts +0 -29
  497. package/cli/entity/collection/collection.entity.js +0 -81
  498. package/cli/entity/collection/collection.entity.js.map +0 -1
  499. package/cli/entity/country/country-translation.entity.d.ts +0 -14
  500. package/cli/entity/country/country-translation.entity.js +0 -44
  501. package/cli/entity/country/country-translation.entity.js.map +0 -1
  502. package/cli/entity/country/country.entity.d.ts +0 -13
  503. package/cli/entity/country/country.entity.js +0 -43
  504. package/cli/entity/country/country.entity.js.map +0 -1
  505. package/cli/entity/custom-entity-fields.d.ts +0 -68
  506. package/cli/entity/custom-entity-fields.js +0 -106
  507. package/cli/entity/custom-entity-fields.js.map +0 -1
  508. package/cli/entity/customer/customer.entity.d.ts +0 -25
  509. package/cli/entity/customer/customer.entity.js +0 -82
  510. package/cli/entity/customer/customer.entity.js.map +0 -1
  511. package/cli/entity/customer-group/customer-group.entity.d.ts +0 -11
  512. package/cli/entity/customer-group/customer-group.entity.js +0 -39
  513. package/cli/entity/customer-group/customer-group.entity.js.map +0 -1
  514. package/cli/entity/entities.d.ts +0 -124
  515. package/cli/entity/entities.js +0 -128
  516. package/cli/entity/entities.js.map +0 -1
  517. package/cli/entity/entity-id.decorator.d.ts +0 -18
  518. package/cli/entity/entity-id.decorator.js +0 -40
  519. package/cli/entity/entity-id.decorator.js.map +0 -1
  520. package/cli/entity/facet/facet-translation.entity.d.ts +0 -14
  521. package/cli/entity/facet/facet-translation.entity.js +0 -44
  522. package/cli/entity/facet/facet-translation.entity.js.map +0 -1
  523. package/cli/entity/facet/facet.entity.d.ts +0 -18
  524. package/cli/entity/facet/facet.entity.js +0 -54
  525. package/cli/entity/facet/facet.entity.js.map +0 -1
  526. package/cli/entity/facet-value/facet-value-translation.entity.d.ts +0 -13
  527. package/cli/entity/facet-value/facet-value-translation.entity.js +0 -44
  528. package/cli/entity/facet-value/facet-value-translation.entity.js.map +0 -1
  529. package/cli/entity/facet-value/facet-value.entity.d.ts +0 -17
  530. package/cli/entity/facet-value/facet-value.entity.js +0 -50
  531. package/cli/entity/facet-value/facet-value.entity.js.map +0 -1
  532. package/cli/entity/fulfillment/fulfillment.entity.d.ts +0 -15
  533. package/cli/entity/fulfillment/fulfillment.entity.js +0 -51
  534. package/cli/entity/fulfillment/fulfillment.entity.js.map +0 -1
  535. package/cli/entity/global-settings/global-settings.entity.d.ts +0 -12
  536. package/cli/entity/global-settings/global-settings.entity.js +0 -42
  537. package/cli/entity/global-settings/global-settings.entity.js.map +0 -1
  538. package/cli/entity/history-entry/customer-history-entry.entity.d.ts +0 -7
  539. package/cli/entity/history-entry/customer-history-entry.entity.js +0 -30
  540. package/cli/entity/history-entry/customer-history-entry.entity.js.map +0 -1
  541. package/cli/entity/history-entry/history-entry.entity.d.ts +0 -9
  542. package/cli/entity/history-entry/history-entry.entity.js +0 -40
  543. package/cli/entity/history-entry/history-entry.entity.js.map +0 -1
  544. package/cli/entity/history-entry/order-history-entry.entity.d.ts +0 -7
  545. package/cli/entity/history-entry/order-history-entry.entity.js +0 -30
  546. package/cli/entity/history-entry/order-history-entry.entity.js.map +0 -1
  547. package/cli/entity/index.d.ts +0 -52
  548. package/cli/entity/index.js +0 -65
  549. package/cli/entity/index.js.map +0 -1
  550. package/cli/entity/order/order.entity.d.ts +0 -48
  551. package/cli/entity/order/order.entity.js +0 -277
  552. package/cli/entity/order/order.entity.js.map +0 -1
  553. package/cli/entity/order-item/order-item.entity.d.ts +0 -35
  554. package/cli/entity/order-item/order-item.entity.js +0 -182
  555. package/cli/entity/order-item/order-item.entity.js.map +0 -1
  556. package/cli/entity/order-line/order-line.entity.d.ts +0 -44
  557. package/cli/entity/order-line/order-line.entity.js +0 -275
  558. package/cli/entity/order-line/order-line.entity.js.map +0 -1
  559. package/cli/entity/order-modification/order-modification.entity.d.ts +0 -21
  560. package/cli/entity/order-modification/order-modification.entity.js +0 -81
  561. package/cli/entity/order-modification/order-modification.entity.js.map +0 -1
  562. package/cli/entity/payment/payment.entity.d.ts +0 -17
  563. package/cli/entity/payment/payment.entity.js +0 -59
  564. package/cli/entity/payment/payment.entity.js.map +0 -1
  565. package/cli/entity/payment-method/payment-method.entity.d.ts +0 -18
  566. package/cli/entity/payment-method/payment-method.entity.js +0 -60
  567. package/cli/entity/payment-method/payment-method.entity.js.map +0 -1
  568. package/cli/entity/product/product-asset.entity.d.ts +0 -8
  569. package/cli/entity/product/product-asset.entity.js +0 -34
  570. package/cli/entity/product/product-asset.entity.js.map +0 -1
  571. package/cli/entity/product/product-translation.entity.d.ts +0 -16
  572. package/cli/entity/product/product-translation.entity.js +0 -52
  573. package/cli/entity/product/product-translation.entity.js.map +0 -1
  574. package/cli/entity/product/product.entity.d.ts +0 -28
  575. package/cli/entity/product/product.entity.js +0 -75
  576. package/cli/entity/product/product.entity.js.map +0 -1
  577. package/cli/entity/product-option/product-option-translation.entity.d.ts +0 -14
  578. package/cli/entity/product-option/product-option-translation.entity.js +0 -44
  579. package/cli/entity/product-option/product-option-translation.entity.js.map +0 -1
  580. package/cli/entity/product-option/product-option.entity.d.ts +0 -17
  581. package/cli/entity/product-option/product-option.entity.js +0 -53
  582. package/cli/entity/product-option/product-option.entity.js.map +0 -1
  583. package/cli/entity/product-option-group/product-option-group-translation.entity.d.ts +0 -14
  584. package/cli/entity/product-option-group/product-option-group-translation.entity.js +0 -44
  585. package/cli/entity/product-option-group/product-option-group-translation.entity.js.map +0 -1
  586. package/cli/entity/product-option-group/product-option-group.entity.d.ts +0 -18
  587. package/cli/entity/product-option-group/product-option-group.entity.js +0 -53
  588. package/cli/entity/product-option-group/product-option-group.entity.js.map +0 -1
  589. package/cli/entity/product-variant/product-variant-asset.entity.d.ts +0 -8
  590. package/cli/entity/product-variant/product-variant-asset.entity.js +0 -34
  591. package/cli/entity/product-variant/product-variant-asset.entity.js.map +0 -1
  592. package/cli/entity/product-variant/product-variant-price.entity.d.ts +0 -9
  593. package/cli/entity/product-variant/product-variant-price.entity.js +0 -39
  594. package/cli/entity/product-variant/product-variant-price.entity.js.map +0 -1
  595. package/cli/entity/product-variant/product-variant-translation.entity.d.ts +0 -14
  596. package/cli/entity/product-variant/product-variant-translation.entity.js +0 -44
  597. package/cli/entity/product-variant/product-variant-translation.entity.js.map +0 -1
  598. package/cli/entity/product-variant/product-variant.entity.d.ts +0 -49
  599. package/cli/entity/product-variant/product-variant.entity.js +0 -155
  600. package/cli/entity/product-variant/product-variant.entity.js.map +0 -1
  601. package/cli/entity/promotion/promotion.entity.d.ts +0 -56
  602. package/cli/entity/promotion/promotion.entity.js +0 -157
  603. package/cli/entity/promotion/promotion.entity.js.map +0 -1
  604. package/cli/entity/refund/refund.entity.d.ts +0 -21
  605. package/cli/entity/refund/refund.entity.js +0 -78
  606. package/cli/entity/refund/refund.entity.js.map +0 -1
  607. package/cli/entity/role/role.entity.d.ts +0 -12
  608. package/cli/entity/role/role.entity.js +0 -43
  609. package/cli/entity/role/role.entity.js.map +0 -1
  610. package/cli/entity/session/anonymous-session.entity.d.ts +0 -5
  611. package/cli/entity/session/anonymous-session.entity.js +0 -25
  612. package/cli/entity/session/anonymous-session.entity.js.map +0 -1
  613. package/cli/entity/session/authenticated-session.entity.d.ts +0 -8
  614. package/cli/entity/session/authenticated-session.entity.js +0 -34
  615. package/cli/entity/session/authenticated-session.entity.js.map +0 -1
  616. package/cli/entity/session/session.entity.d.ts +0 -13
  617. package/cli/entity/session/session.entity.js +0 -54
  618. package/cli/entity/session/session.entity.js.map +0 -1
  619. package/cli/entity/shipping-line/shipping-line.entity.d.ts +0 -24
  620. package/cli/entity/shipping-line/shipping-line.entity.js +0 -128
  621. package/cli/entity/shipping-line/shipping-line.entity.js.map +0 -1
  622. package/cli/entity/shipping-method/shipping-method-translation.entity.d.ts +0 -16
  623. package/cli/entity/shipping-method/shipping-method-translation.entity.js +0 -48
  624. package/cli/entity/shipping-method/shipping-method-translation.entity.js.map +0 -1
  625. package/cli/entity/shipping-method/shipping-method.entity.d.ts +0 -28
  626. package/cli/entity/shipping-method/shipping-method.entity.js +0 -92
  627. package/cli/entity/shipping-method/shipping-method.entity.js.map +0 -1
  628. package/cli/entity/stock-movement/allocation.entity.d.ts +0 -9
  629. package/cli/entity/stock-movement/allocation.entity.js +0 -32
  630. package/cli/entity/stock-movement/allocation.entity.js.map +0 -1
  631. package/cli/entity/stock-movement/cancellation.entity.d.ts +0 -9
  632. package/cli/entity/stock-movement/cancellation.entity.js +0 -32
  633. package/cli/entity/stock-movement/cancellation.entity.js.map +0 -1
  634. package/cli/entity/stock-movement/release.entity.d.ts +0 -9
  635. package/cli/entity/stock-movement/release.entity.js +0 -32
  636. package/cli/entity/stock-movement/release.entity.js.map +0 -1
  637. package/cli/entity/stock-movement/sale.entity.d.ts +0 -9
  638. package/cli/entity/stock-movement/sale.entity.js +0 -32
  639. package/cli/entity/stock-movement/sale.entity.js.map +0 -1
  640. package/cli/entity/stock-movement/stock-adjustment.entity.d.ts +0 -7
  641. package/cli/entity/stock-movement/stock-adjustment.entity.js +0 -27
  642. package/cli/entity/stock-movement/stock-adjustment.entity.js.map +0 -1
  643. package/cli/entity/stock-movement/stock-movement.entity.d.ts +0 -8
  644. package/cli/entity/stock-movement/stock-movement.entity.js +0 -36
  645. package/cli/entity/stock-movement/stock-movement.entity.js.map +0 -1
  646. package/cli/entity/surcharge/surcharge.entity.d.ts +0 -18
  647. package/cli/entity/surcharge/surcharge.entity.js +0 -82
  648. package/cli/entity/surcharge/surcharge.entity.js.map +0 -1
  649. package/cli/entity/tag/tag.entity.d.ts +0 -6
  650. package/cli/entity/tag/tag.entity.js +0 -29
  651. package/cli/entity/tag/tag.entity.js.map +0 -1
  652. package/cli/entity/tax-category/tax-category.entity.d.ts +0 -10
  653. package/cli/entity/tax-category/tax-category.entity.js +0 -38
  654. package/cli/entity/tax-category/tax-category.entity.js.map +0 -1
  655. package/cli/entity/tax-rate/tax-rate.entity.d.ts +0 -24
  656. package/cli/entity/tax-rate/tax-rate.entity.js +0 -81
  657. package/cli/entity/tax-rate/tax-rate.entity.js.map +0 -1
  658. package/cli/entity/user/user.entity.d.ts +0 -19
  659. package/cli/entity/user/user.entity.js +0 -69
  660. package/cli/entity/user/user.entity.js.map +0 -1
  661. package/cli/entity/value-transformers.d.ts +0 -5
  662. package/cli/entity/value-transformers.js +0 -13
  663. package/cli/entity/value-transformers.js.map +0 -1
  664. package/cli/entity/zone/zone.entity.d.ts +0 -11
  665. package/cli/entity/zone/zone.entity.js +0 -40
  666. package/cli/entity/zone/zone.entity.js.map +0 -1
  667. package/cli/event-bus/event-bus.d.ts +0 -15
  668. package/cli/event-bus/event-bus.js +0 -51
  669. package/cli/event-bus/event-bus.js.map +0 -1
  670. package/cli/event-bus/event-bus.module.d.ts +0 -2
  671. package/cli/event-bus/event-bus.module.js +0 -23
  672. package/cli/event-bus/event-bus.module.js.map +0 -1
  673. package/cli/event-bus/events/account-registration-event.d.ts +0 -8
  674. package/cli/event-bus/events/account-registration-event.js +0 -13
  675. package/cli/event-bus/events/account-registration-event.js.map +0 -1
  676. package/cli/event-bus/events/account-verified-event.d.ts +0 -8
  677. package/cli/event-bus/events/account-verified-event.js +0 -13
  678. package/cli/event-bus/events/account-verified-event.js.map +0 -1
  679. package/cli/event-bus/events/administrator-event.d.ts +0 -10
  680. package/cli/event-bus/events/administrator-event.js +0 -11
  681. package/cli/event-bus/events/administrator-event.js.map +0 -1
  682. package/cli/event-bus/events/asset-channel-event.d.ts +0 -11
  683. package/cli/event-bus/events/asset-channel-event.js +0 -15
  684. package/cli/event-bus/events/asset-channel-event.js.map +0 -1
  685. package/cli/event-bus/events/asset-event.d.ts +0 -11
  686. package/cli/event-bus/events/asset-event.js +0 -14
  687. package/cli/event-bus/events/asset-event.js.map +0 -1
  688. package/cli/event-bus/events/attempted-login-event.d.ts +0 -8
  689. package/cli/event-bus/events/attempted-login-event.js +0 -14
  690. package/cli/event-bus/events/attempted-login-event.js.map +0 -1
  691. package/cli/event-bus/events/change-channel-event.d.ts +0 -13
  692. package/cli/event-bus/events/change-channel-event.js +0 -16
  693. package/cli/event-bus/events/change-channel-event.js.map +0 -1
  694. package/cli/event-bus/events/channel-event.d.ts +0 -10
  695. package/cli/event-bus/events/channel-event.js +0 -11
  696. package/cli/event-bus/events/channel-event.js.map +0 -1
  697. package/cli/event-bus/events/collection-event.d.ts +0 -10
  698. package/cli/event-bus/events/collection-event.js +0 -11
  699. package/cli/event-bus/events/collection-event.js.map +0 -1
  700. package/cli/event-bus/events/collection-modification-event.d.ts +0 -10
  701. package/cli/event-bus/events/collection-modification-event.js +0 -14
  702. package/cli/event-bus/events/collection-modification-event.js.map +0 -1
  703. package/cli/event-bus/events/country-event.d.ts +0 -10
  704. package/cli/event-bus/events/country-event.js +0 -11
  705. package/cli/event-bus/events/country-event.js.map +0 -1
  706. package/cli/event-bus/events/coupon-code-event.d.ts +0 -10
  707. package/cli/event-bus/events/coupon-code-event.js +0 -15
  708. package/cli/event-bus/events/coupon-code-event.js.map +0 -1
  709. package/cli/event-bus/events/customer-address-event.d.ts +0 -15
  710. package/cli/event-bus/events/customer-address-event.js +0 -18
  711. package/cli/event-bus/events/customer-address-event.js.map +0 -1
  712. package/cli/event-bus/events/customer-event.d.ts +0 -13
  713. package/cli/event-bus/events/customer-event.js +0 -14
  714. package/cli/event-bus/events/customer-event.js.map +0 -1
  715. package/cli/event-bus/events/customer-group-entity-event.d.ts +0 -10
  716. package/cli/event-bus/events/customer-group-entity-event.js +0 -11
  717. package/cli/event-bus/events/customer-group-entity-event.js.map +0 -1
  718. package/cli/event-bus/events/customer-group-event.d.ts +0 -18
  719. package/cli/event-bus/events/customer-group-event.js +0 -25
  720. package/cli/event-bus/events/customer-group-event.js.map +0 -1
  721. package/cli/event-bus/events/facet-event.d.ts +0 -10
  722. package/cli/event-bus/events/facet-event.js +0 -11
  723. package/cli/event-bus/events/facet-event.js.map +0 -1
  724. package/cli/event-bus/events/facet-value-event.d.ts +0 -10
  725. package/cli/event-bus/events/facet-value-event.js +0 -11
  726. package/cli/event-bus/events/facet-value-event.js.map +0 -1
  727. package/cli/event-bus/events/fulfillment-event.d.ts +0 -14
  728. package/cli/event-bus/events/fulfillment-event.js +0 -11
  729. package/cli/event-bus/events/fulfillment-event.js.map +0 -1
  730. package/cli/event-bus/events/fulfillment-state-transition-event.d.ts +0 -11
  731. package/cli/event-bus/events/fulfillment-state-transition-event.js +0 -15
  732. package/cli/event-bus/events/fulfillment-state-transition-event.js.map +0 -1
  733. package/cli/event-bus/events/global-settings-event.d.ts +0 -7
  734. package/cli/event-bus/events/global-settings-event.js +0 -11
  735. package/cli/event-bus/events/global-settings-event.js.map +0 -1
  736. package/cli/event-bus/events/history-entry-event.d.ts +0 -14
  737. package/cli/event-bus/events/history-entry-event.js +0 -12
  738. package/cli/event-bus/events/history-entry-event.js.map +0 -1
  739. package/cli/event-bus/events/identifier-change-event.d.ts +0 -9
  740. package/cli/event-bus/events/identifier-change-event.js +0 -14
  741. package/cli/event-bus/events/identifier-change-event.js.map +0 -1
  742. package/cli/event-bus/events/identifier-change-request-event.d.ts +0 -8
  743. package/cli/event-bus/events/identifier-change-request-event.js +0 -13
  744. package/cli/event-bus/events/identifier-change-request-event.js.map +0 -1
  745. package/cli/event-bus/events/login-event.d.ts +0 -8
  746. package/cli/event-bus/events/login-event.js +0 -13
  747. package/cli/event-bus/events/login-event.js.map +0 -1
  748. package/cli/event-bus/events/logout-event.d.ts +0 -6
  749. package/cli/event-bus/events/logout-event.js +0 -12
  750. package/cli/event-bus/events/logout-event.js.map +0 -1
  751. package/cli/event-bus/events/order-event.d.ts +0 -9
  752. package/cli/event-bus/events/order-event.js +0 -14
  753. package/cli/event-bus/events/order-event.js.map +0 -1
  754. package/cli/event-bus/events/order-line-event.d.ts +0 -10
  755. package/cli/event-bus/events/order-line-event.js +0 -15
  756. package/cli/event-bus/events/order-line-event.js.map +0 -1
  757. package/cli/event-bus/events/order-placed-event.d.ts +0 -11
  758. package/cli/event-bus/events/order-placed-event.js +0 -15
  759. package/cli/event-bus/events/order-placed-event.js.map +0 -1
  760. package/cli/event-bus/events/order-state-transition-event.d.ts +0 -11
  761. package/cli/event-bus/events/order-state-transition-event.js +0 -15
  762. package/cli/event-bus/events/order-state-transition-event.js.map +0 -1
  763. package/cli/event-bus/events/password-reset-event.d.ts +0 -8
  764. package/cli/event-bus/events/password-reset-event.js +0 -13
  765. package/cli/event-bus/events/password-reset-event.js.map +0 -1
  766. package/cli/event-bus/events/password-reset-verified-event.d.ts +0 -8
  767. package/cli/event-bus/events/password-reset-verified-event.js +0 -13
  768. package/cli/event-bus/events/password-reset-verified-event.js.map +0 -1
  769. package/cli/event-bus/events/payment-method-event.d.ts +0 -10
  770. package/cli/event-bus/events/payment-method-event.js +0 -11
  771. package/cli/event-bus/events/payment-method-event.js.map +0 -1
  772. package/cli/event-bus/events/payment-state-transition-event.d.ts +0 -13
  773. package/cli/event-bus/events/payment-state-transition-event.js +0 -16
  774. package/cli/event-bus/events/payment-state-transition-event.js.map +0 -1
  775. package/cli/event-bus/events/product-channel-event.d.ts +0 -11
  776. package/cli/event-bus/events/product-channel-event.js +0 -15
  777. package/cli/event-bus/events/product-channel-event.js.map +0 -1
  778. package/cli/event-bus/events/product-event.d.ts +0 -11
  779. package/cli/event-bus/events/product-event.js +0 -14
  780. package/cli/event-bus/events/product-event.js.map +0 -1
  781. package/cli/event-bus/events/product-option-event.d.ts +0 -10
  782. package/cli/event-bus/events/product-option-event.js +0 -11
  783. package/cli/event-bus/events/product-option-event.js.map +0 -1
  784. package/cli/event-bus/events/product-option-group-change-event.d.ts +0 -11
  785. package/cli/event-bus/events/product-option-group-change-event.js +0 -15
  786. package/cli/event-bus/events/product-option-group-change-event.js.map +0 -1
  787. package/cli/event-bus/events/product-option-group-event.d.ts +0 -10
  788. package/cli/event-bus/events/product-option-group-event.js +0 -11
  789. package/cli/event-bus/events/product-option-group-event.js.map +0 -1
  790. package/cli/event-bus/events/product-variant-channel-event.d.ts +0 -11
  791. package/cli/event-bus/events/product-variant-channel-event.js +0 -15
  792. package/cli/event-bus/events/product-variant-channel-event.js.map +0 -1
  793. package/cli/event-bus/events/product-variant-event.d.ts +0 -11
  794. package/cli/event-bus/events/product-variant-event.js +0 -14
  795. package/cli/event-bus/events/product-variant-event.js.map +0 -1
  796. package/cli/event-bus/events/promotion-event.d.ts +0 -10
  797. package/cli/event-bus/events/promotion-event.js +0 -11
  798. package/cli/event-bus/events/promotion-event.js.map +0 -1
  799. package/cli/event-bus/events/refund-state-transition-event.d.ts +0 -13
  800. package/cli/event-bus/events/refund-state-transition-event.js +0 -16
  801. package/cli/event-bus/events/refund-state-transition-event.js.map +0 -1
  802. package/cli/event-bus/events/role-change-event.d.ts +0 -11
  803. package/cli/event-bus/events/role-change-event.js +0 -15
  804. package/cli/event-bus/events/role-change-event.js.map +0 -1
  805. package/cli/event-bus/events/role-event.d.ts +0 -10
  806. package/cli/event-bus/events/role-event.js +0 -11
  807. package/cli/event-bus/events/role-event.js.map +0 -1
  808. package/cli/event-bus/events/shipping-method-event.d.ts +0 -10
  809. package/cli/event-bus/events/shipping-method-event.js +0 -11
  810. package/cli/event-bus/events/shipping-method-event.js.map +0 -1
  811. package/cli/event-bus/events/stock-movement-event.d.ts +0 -10
  812. package/cli/event-bus/events/stock-movement-event.js +0 -15
  813. package/cli/event-bus/events/stock-movement-event.js.map +0 -1
  814. package/cli/event-bus/events/tax-category-event.d.ts +0 -10
  815. package/cli/event-bus/events/tax-category-event.js +0 -11
  816. package/cli/event-bus/events/tax-category-event.js.map +0 -1
  817. package/cli/event-bus/events/tax-rate-event.d.ts +0 -10
  818. package/cli/event-bus/events/tax-rate-event.js +0 -11
  819. package/cli/event-bus/events/tax-rate-event.js.map +0 -1
  820. package/cli/event-bus/events/tax-rate-modification-event.d.ts +0 -8
  821. package/cli/event-bus/events/tax-rate-modification-event.js +0 -13
  822. package/cli/event-bus/events/tax-rate-modification-event.js.map +0 -1
  823. package/cli/event-bus/events/zone-event.d.ts +0 -10
  824. package/cli/event-bus/events/zone-event.js +0 -11
  825. package/cli/event-bus/events/zone-event.js.map +0 -1
  826. package/cli/event-bus/events/zone-members-event.d.ts +0 -11
  827. package/cli/event-bus/events/zone-members-event.js +0 -15
  828. package/cli/event-bus/events/zone-members-event.js.map +0 -1
  829. package/cli/event-bus/index.d.ts +0 -55
  830. package/cli/event-bus/index.js +0 -68
  831. package/cli/event-bus/index.js.map +0 -1
  832. package/cli/event-bus/vendure-entity-event.d.ts +0 -9
  833. package/cli/event-bus/vendure-entity-event.js +0 -15
  834. package/cli/event-bus/vendure-entity-event.js.map +0 -1
  835. package/cli/event-bus/vendure-event.d.ts +0 -4
  836. package/cli/event-bus/vendure-event.js +0 -10
  837. package/cli/event-bus/vendure-event.js.map +0 -1
  838. package/cli/health-check/constants.d.ts +0 -1
  839. package/cli/health-check/constants.js +0 -5
  840. package/cli/health-check/constants.js.map +0 -1
  841. package/cli/i18n/i18n-error.d.ts +0 -13
  842. package/cli/i18n/i18n-error.js +0 -16
  843. package/cli/i18n/i18n-error.js.map +0 -1
  844. package/cli/job-queue/constants.d.ts +0 -1
  845. package/cli/job-queue/constants.js +0 -5
  846. package/cli/job-queue/constants.js.map +0 -1
  847. package/cli/job-queue/in-memory-job-queue-strategy.d.ts +0 -34
  848. package/cli/job-queue/in-memory-job-queue-strategy.js +0 -187
  849. package/cli/job-queue/in-memory-job-queue-strategy.js.map +0 -1
  850. package/cli/job-queue/index.d.ts +0 -11
  851. package/cli/job-queue/index.js +0 -24
  852. package/cli/job-queue/index.js.map +0 -1
  853. package/cli/job-queue/injectable-job-queue-strategy.d.ts +0 -12
  854. package/cli/job-queue/injectable-job-queue-strategy.js +0 -21
  855. package/cli/job-queue/injectable-job-queue-strategy.js.map +0 -1
  856. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.d.ts +0 -13
  857. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.js +0 -47
  858. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.js.map +0 -1
  859. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.d.ts +0 -11
  860. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.js +0 -3
  861. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.js.map +0 -1
  862. package/cli/job-queue/job-buffer/job-buffer.d.ts +0 -7
  863. package/cli/job-queue/job-buffer/job-buffer.js +0 -3
  864. package/cli/job-queue/job-buffer/job-buffer.js.map +0 -1
  865. package/cli/job-queue/job-buffer/job-buffer.service.d.ts +0 -16
  866. package/cli/job-queue/job-buffer/job-buffer.service.js +0 -76
  867. package/cli/job-queue/job-buffer/job-buffer.service.js.map +0 -1
  868. package/cli/job-queue/job-queue.d.ts +0 -16
  869. package/cli/job-queue/job-queue.js +0 -59
  870. package/cli/job-queue/job-queue.js.map +0 -1
  871. package/cli/job-queue/job-queue.service.d.ts +0 -27
  872. package/cli/job-queue/job-queue.service.js +0 -84
  873. package/cli/job-queue/job-queue.service.js.map +0 -1
  874. package/cli/job-queue/job.d.ts +0 -41
  875. package/cli/job-queue/job.js +0 -160
  876. package/cli/job-queue/job.js.map +0 -1
  877. package/cli/job-queue/polling-job-queue-strategy.d.ts +0 -26
  878. package/cli/job-queue/polling-job-queue-strategy.js +0 -163
  879. package/cli/job-queue/polling-job-queue-strategy.js.map +0 -1
  880. package/cli/job-queue/queue-name-process-storage.d.ts +0 -7
  881. package/cli/job-queue/queue-name-process-storage.js +0 -40
  882. package/cli/job-queue/queue-name-process-storage.js.map +0 -1
  883. package/cli/job-queue/subscribable-job.d.ts +0 -13
  884. package/cli/job-queue/subscribable-job.js +0 -52
  885. package/cli/job-queue/subscribable-job.js.map +0 -1
  886. package/cli/job-queue/types.d.ts +0 -22
  887. package/cli/job-queue/types.js +0 -3
  888. package/cli/job-queue/types.js.map +0 -1
  889. package/cli/process-context/process-context.d.ts +0 -7
  890. package/cli/process-context/process-context.js +0 -18
  891. package/cli/process-context/process-context.js.map +0 -1
  892. package/cli/service/helpers/config-arg/config-arg.service.d.ts +0 -31
  893. package/cli/service/helpers/config-arg/config-arg.service.js +0 -88
  894. package/cli/service/helpers/config-arg/config-arg.service.js.map +0 -1
  895. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.d.ts +0 -18
  896. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.js +0 -63
  897. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.js.map +0 -1
  898. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.d.ts +0 -21
  899. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js +0 -113
  900. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js.map +0 -1
  901. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.d.ts +0 -11
  902. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.js +0 -21
  903. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.js.map +0 -1
  904. package/cli/service/helpers/list-query-builder/connection-utils.d.ts +0 -10
  905. package/cli/service/helpers/list-query-builder/connection-utils.js +0 -26
  906. package/cli/service/helpers/list-query-builder/connection-utils.js.map +0 -1
  907. package/cli/service/helpers/list-query-builder/get-calculated-columns.d.ts +0 -3
  908. package/cli/service/helpers/list-query-builder/get-calculated-columns.js +0 -16
  909. package/cli/service/helpers/list-query-builder/get-calculated-columns.js.map +0 -1
  910. package/cli/service/helpers/list-query-builder/list-query-builder.d.ts +0 -30
  911. package/cli/service/helpers/list-query-builder/list-query-builder.js +0 -204
  912. package/cli/service/helpers/list-query-builder/list-query-builder.js.map +0 -1
  913. package/cli/service/helpers/list-query-builder/parse-channel-param.d.ts +0 -5
  914. package/cli/service/helpers/list-query-builder/parse-channel-param.js +0 -18
  915. package/cli/service/helpers/list-query-builder/parse-channel-param.js.map +0 -1
  916. package/cli/service/helpers/list-query-builder/parse-filter-params.d.ts +0 -13
  917. package/cli/service/helpers/list-query-builder/parse-filter-params.js +0 -155
  918. package/cli/service/helpers/list-query-builder/parse-filter-params.js.map +0 -1
  919. package/cli/service/helpers/list-query-builder/parse-sort-params.d.ts +0 -7
  920. package/cli/service/helpers/list-query-builder/parse-sort-params.js +0 -50
  921. package/cli/service/helpers/list-query-builder/parse-sort-params.js.map +0 -1
  922. package/cli/service/helpers/order-calculator/order-calculator.d.ts +0 -32
  923. package/cli/service/helpers/order-calculator/order-calculator.js +0 -311
  924. package/cli/service/helpers/order-calculator/order-calculator.js.map +0 -1
  925. package/cli/service/helpers/order-calculator/prorate.d.ts +0 -1
  926. package/cli/service/helpers/order-calculator/prorate.js +0 -35
  927. package/cli/service/helpers/order-calculator/prorate.js.map +0 -1
  928. package/cli/service/helpers/order-merger/order-merger.d.ts +0 -40
  929. package/cli/service/helpers/order-merger/order-merger.js +0 -97
  930. package/cli/service/helpers/order-merger/order-merger.js.map +0 -1
  931. package/cli/service/helpers/order-modifier/order-modifier.d.ts +0 -45
  932. package/cli/service/helpers/order-modifier/order-modifier.js +0 -423
  933. package/cli/service/helpers/order-modifier/order-modifier.js.map +0 -1
  934. package/cli/service/helpers/order-state-machine/order-state-machine.d.ts +0 -29
  935. package/cli/service/helpers/order-state-machine/order-state-machine.js +0 -240
  936. package/cli/service/helpers/order-state-machine/order-state-machine.js.map +0 -1
  937. package/cli/service/helpers/order-state-machine/order-state.d.ts +0 -9
  938. package/cli/service/helpers/order-state-machine/order-state.js +0 -64
  939. package/cli/service/helpers/order-state-machine/order-state.js.map +0 -1
  940. package/cli/service/helpers/password-cipher/password-cipher.d.ts +0 -7
  941. package/cli/service/helpers/password-cipher/password-cipher.js +0 -31
  942. package/cli/service/helpers/password-cipher/password-cipher.js.map +0 -1
  943. package/cli/service/helpers/payment-state-machine/payment-state-machine.d.ts +0 -20
  944. package/cli/service/helpers/payment-state-machine/payment-state-machine.js +0 -113
  945. package/cli/service/helpers/payment-state-machine/payment-state-machine.js.map +0 -1
  946. package/cli/service/helpers/payment-state-machine/payment-state.d.ts +0 -11
  947. package/cli/service/helpers/payment-state-machine/payment-state.js +0 -24
  948. package/cli/service/helpers/payment-state-machine/payment-state.js.map +0 -1
  949. package/cli/service/helpers/product-price-applicator/product-price-applicator.d.ts +0 -15
  950. package/cli/service/helpers/product-price-applicator/product-price-applicator.js +0 -64
  951. package/cli/service/helpers/product-price-applicator/product-price-applicator.js.map +0 -1
  952. package/cli/service/helpers/refund-state-machine/refund-state-machine.d.ts +0 -14
  953. package/cli/service/helpers/refund-state-machine/refund-state-machine.js +0 -65
  954. package/cli/service/helpers/refund-state-machine/refund-state-machine.js.map +0 -1
  955. package/cli/service/helpers/refund-state-machine/refund-state.d.ts +0 -11
  956. package/cli/service/helpers/refund-state-machine/refund-state.js +0 -15
  957. package/cli/service/helpers/refund-state-machine/refund-state.js.map +0 -1
  958. package/cli/service/helpers/request-context/request-context.service.d.ts +0 -29
  959. package/cli/service/helpers/request-context/request-context.service.js +0 -127
  960. package/cli/service/helpers/request-context/request-context.service.js.map +0 -1
  961. package/cli/service/helpers/shipping-calculator/shipping-calculator.d.ts +0 -18
  962. package/cli/service/helpers/shipping-calculator/shipping-calculator.js +0 -50
  963. package/cli/service/helpers/shipping-calculator/shipping-calculator.js.map +0 -1
  964. package/cli/service/helpers/translatable-saver/translatable-saver.d.ts +0 -24
  965. package/cli/service/helpers/translatable-saver/translatable-saver.js +0 -64
  966. package/cli/service/helpers/translatable-saver/translatable-saver.js.map +0 -1
  967. package/cli/service/helpers/translatable-saver/translation-differ.d.ts +0 -17
  968. package/cli/service/helpers/translatable-saver/translation-differ.js +0 -65
  969. package/cli/service/helpers/translatable-saver/translation-differ.js.map +0 -1
  970. package/cli/service/helpers/utils/address-to-line.d.ts +0 -3
  971. package/cli/service/helpers/utils/address-to-line.js +0 -21
  972. package/cli/service/helpers/utils/address-to-line.js.map +0 -1
  973. package/cli/service/helpers/utils/get-user-channels-permissions.d.ts +0 -10
  974. package/cli/service/helpers/utils/get-user-channels-permissions.js +0 -26
  975. package/cli/service/helpers/utils/get-user-channels-permissions.js.map +0 -1
  976. package/cli/service/helpers/utils/order-utils.d.ts +0 -9
  977. package/cli/service/helpers/utils/order-utils.js +0 -64
  978. package/cli/service/helpers/utils/order-utils.js.map +0 -1
  979. package/cli/service/helpers/utils/patch-entity.d.ts +0 -5
  980. package/cli/service/helpers/utils/patch-entity.js +0 -17
  981. package/cli/service/helpers/utils/patch-entity.js.map +0 -1
  982. package/cli/service/helpers/utils/samples-each.d.ts +0 -1
  983. package/cli/service/helpers/utils/samples-each.js +0 -18
  984. package/cli/service/helpers/utils/samples-each.js.map +0 -1
  985. package/cli/service/helpers/utils/translate-entity.d.ts +0 -24
  986. package/cli/service/helpers/utils/translate-entity.js +0 -99
  987. package/cli/service/helpers/utils/translate-entity.js.map +0 -1
  988. package/cli/service/helpers/verification-token-generator/verification-token-generator.d.ts +0 -7
  989. package/cli/service/helpers/verification-token-generator/verification-token-generator.js +0 -44
  990. package/cli/service/helpers/verification-token-generator/verification-token-generator.js.map +0 -1
  991. package/cli/service/services/administrator.service.d.ts +0 -36
  992. package/cli/service/services/administrator.service.js +0 -230
  993. package/cli/service/services/administrator.service.js.map +0 -1
  994. package/cli/service/services/asset.service.d.ts +0 -63
  995. package/cli/service/services/asset.service.js +0 -478
  996. package/cli/service/services/asset.service.js.map +0 -1
  997. package/cli/service/services/channel.service.d.ts +0 -38
  998. package/cli/service/services/channel.service.js +0 -222
  999. package/cli/service/services/channel.service.js.map +0 -1
  1000. package/cli/service/services/country.service.d.ts +0 -24
  1001. package/cli/service/services/country.service.js +0 -119
  1002. package/cli/service/services/country.service.js.map +0 -1
  1003. package/cli/service/services/customer.service.d.ts +0 -62
  1004. package/cli/service/services/customer.service.js +0 -662
  1005. package/cli/service/services/customer.service.js.map +0 -1
  1006. package/cli/service/services/facet-value.service.d.ts +0 -32
  1007. package/cli/service/services/facet-value.service.js +0 -151
  1008. package/cli/service/services/facet-value.service.js.map +0 -1
  1009. package/cli/service/services/fulfillment.service.d.ts +0 -32
  1010. package/cli/service/services/fulfillment.service.js +0 -106
  1011. package/cli/service/services/fulfillment.service.js.map +0 -1
  1012. package/cli/service/services/global-settings.service.d.ts +0 -17
  1013. package/cli/service/services/global-settings.service.js +0 -74
  1014. package/cli/service/services/global-settings.service.js.map +0 -1
  1015. package/cli/service/services/history.service.d.ts +0 -139
  1016. package/cli/service/services/history.service.js +0 -143
  1017. package/cli/service/services/history.service.js.map +0 -1
  1018. package/cli/service/services/order.service.d.ts +0 -136
  1019. package/cli/service/services/order.service.js +0 -1158
  1020. package/cli/service/services/order.service.js.map +0 -1
  1021. package/cli/service/services/payment-method.service.d.ts +0 -37
  1022. package/cli/service/services/payment-method.service.js +0 -178
  1023. package/cli/service/services/payment-method.service.js.map +0 -1
  1024. package/cli/service/services/payment.service.d.ts +0 -32
  1025. package/cli/service/services/payment.service.js +0 -216
  1026. package/cli/service/services/payment.service.js.map +0 -1
  1027. package/cli/service/services/product-variant.service.d.ts +0 -70
  1028. package/cli/service/services/product-variant.service.js +0 -560
  1029. package/cli/service/services/product-variant.service.js.map +0 -1
  1030. package/cli/service/services/promotion.service.d.ts +0 -41
  1031. package/cli/service/services/promotion.service.js +0 -219
  1032. package/cli/service/services/promotion.service.js.map +0 -1
  1033. package/cli/service/services/role.service.d.ts +0 -39
  1034. package/cli/service/services/role.service.js +0 -240
  1035. package/cli/service/services/role.service.js.map +0 -1
  1036. package/cli/service/services/session.service.d.ts +0 -38
  1037. package/cli/service/services/session.service.js +0 -228
  1038. package/cli/service/services/session.service.js.map +0 -1
  1039. package/cli/service/services/shipping-method.service.d.ts +0 -36
  1040. package/cli/service/services/shipping-method.service.js +0 -181
  1041. package/cli/service/services/shipping-method.service.js.map +0 -1
  1042. package/cli/service/services/stock-movement.service.d.ts +0 -39
  1043. package/cli/service/services/stock-movement.service.js +0 -214
  1044. package/cli/service/services/stock-movement.service.js.map +0 -1
  1045. package/cli/service/services/tag.service.d.ts +0 -21
  1046. package/cli/service/services/tag.service.js +0 -82
  1047. package/cli/service/services/tag.service.js.map +0 -1
  1048. package/cli/service/services/tax-category.service.d.ts +0 -16
  1049. package/cli/service/services/tax-category.service.js +0 -95
  1050. package/cli/service/services/tax-category.service.js.map +0 -1
  1051. package/cli/service/services/tax-rate.service.d.ts +0 -28
  1052. package/cli/service/services/tax-rate.service.js +0 -134
  1053. package/cli/service/services/tax-rate.service.js.map +0 -1
  1054. package/cli/service/services/user.service.d.ts +0 -37
  1055. package/cli/service/services/user.service.js +0 -287
  1056. package/cli/service/services/user.service.js.map +0 -1
  1057. package/cli/service/services/zone.service.d.ts +0 -26
  1058. package/cli/service/services/zone.service.js +0 -168
  1059. package/cli/service/services/zone.service.js.map +0 -1
@@ -1,113 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.FulfillmentStateMachine = void 0;
13
- const common_1 = require("@nestjs/common");
14
- const generated_types_1 = require("@vendure/common/lib/generated-types");
15
- const errors_1 = require("../../../common/error/errors");
16
- const finite_state_machine_1 = require("../../../common/finite-state-machine/finite-state-machine");
17
- const merge_transition_definitions_1 = require("../../../common/finite-state-machine/merge-transition-definitions");
18
- const validate_transition_definition_1 = require("../../../common/finite-state-machine/validate-transition-definition");
19
- const utils_1 = require("../../../common/utils");
20
- const config_service_1 = require("../../../config/config.service");
21
- const history_service_1 = require("../../services/history.service");
22
- const fulfillment_state_1 = require("./fulfillment-state");
23
- let FulfillmentStateMachine = class FulfillmentStateMachine {
24
- constructor(configService, historyService) {
25
- this.configService = configService;
26
- this.historyService = historyService;
27
- this.initialState = 'Created';
28
- this.config = this.initConfig();
29
- }
30
- getInitialState() {
31
- return this.initialState;
32
- }
33
- canTransition(currentState, newState) {
34
- return new finite_state_machine_1.FSM(this.config, currentState).canTransitionTo(newState);
35
- }
36
- getNextStates(fulfillment) {
37
- const fsm = new finite_state_machine_1.FSM(this.config, fulfillment.state);
38
- return fsm.getNextStates();
39
- }
40
- async transition(ctx, fulfillment, orders, state) {
41
- const fsm = new finite_state_machine_1.FSM(this.config, fulfillment.state);
42
- await fsm.transitionTo(state, { ctx, orders, fulfillment });
43
- fulfillment.state = fsm.currentState;
44
- }
45
- async onTransitionStart(fromState, toState, data) {
46
- const { fulfillmentHandlers } = this.configService.shippingOptions;
47
- const fulfillmentHandler = fulfillmentHandlers.find(h => h.code === data.fulfillment.handlerCode);
48
- if (fulfillmentHandler) {
49
- const result = await utils_1.awaitPromiseOrObservable(fulfillmentHandler.onFulfillmentTransition(fromState, toState, data));
50
- if (result === false || typeof result === 'string') {
51
- return result;
52
- }
53
- }
54
- }
55
- async onTransitionEnd(fromState, toState, data) {
56
- const historyEntryPromises = data.orders.map(order => this.historyService.createHistoryEntryForOrder({
57
- orderId: order.id,
58
- type: generated_types_1.HistoryEntryType.ORDER_FULFILLMENT_TRANSITION,
59
- ctx: data.ctx,
60
- data: {
61
- fulfillmentId: data.fulfillment.id,
62
- from: fromState,
63
- to: toState,
64
- },
65
- }));
66
- await Promise.all(historyEntryPromises);
67
- }
68
- initConfig() {
69
- var _a;
70
- const customProcesses = (_a = this.configService.shippingOptions.customFulfillmentProcess) !== null && _a !== void 0 ? _a : [];
71
- const allTransitions = customProcesses.reduce((transitions, process) => merge_transition_definitions_1.mergeTransitionDefinitions(transitions, process.transitions), fulfillment_state_1.fulfillmentStateTransitions);
72
- const validationResult = validate_transition_definition_1.validateTransitionDefinition(allTransitions, 'Pending');
73
- return {
74
- transitions: allTransitions,
75
- onTransitionStart: async (fromState, toState, data) => {
76
- for (const process of customProcesses) {
77
- if (typeof process.onTransitionStart === 'function') {
78
- const result = await utils_1.awaitPromiseOrObservable(process.onTransitionStart(fromState, toState, data));
79
- if (result === false || typeof result === 'string') {
80
- return result;
81
- }
82
- }
83
- }
84
- return this.onTransitionStart(fromState, toState, data);
85
- },
86
- onTransitionEnd: async (fromState, toState, data) => {
87
- for (const process of customProcesses) {
88
- if (typeof process.onTransitionEnd === 'function') {
89
- await utils_1.awaitPromiseOrObservable(process.onTransitionEnd(fromState, toState, data));
90
- }
91
- }
92
- await this.onTransitionEnd(fromState, toState, data);
93
- },
94
- onError: async (fromState, toState, message) => {
95
- for (const process of customProcesses) {
96
- if (typeof process.onTransitionError === 'function') {
97
- await utils_1.awaitPromiseOrObservable(process.onTransitionError(fromState, toState, message));
98
- }
99
- }
100
- throw new errors_1.IllegalOperationError(message || 'error.cannot-transition-fulfillment-from-to', {
101
- fromState,
102
- toState,
103
- });
104
- },
105
- };
106
- }
107
- };
108
- FulfillmentStateMachine = __decorate([
109
- common_1.Injectable(),
110
- __metadata("design:paramtypes", [config_service_1.ConfigService, history_service_1.HistoryService])
111
- ], FulfillmentStateMachine);
112
- exports.FulfillmentStateMachine = FulfillmentStateMachine;
113
- //# sourceMappingURL=fulfillment-state-machine.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fulfillment-state-machine.js","sourceRoot":"","sources":["../../../../src/service/helpers/fulfillment-state-machine/fulfillment-state-machine.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,yEAAuE;AAGvE,yDAAqE;AACrE,oGAAgF;AAChF,oHAA+G;AAE/G,wHAAmH;AACnH,iDAAiE;AACjE,mEAA+D;AAG/D,oEAAgE;AAEhE,2DAI6B;AAG7B,IAAa,uBAAuB,GAApC,MAAa,uBAAuB;IAIhC,YAAoB,aAA4B,EAAU,cAA8B;QAApE,kBAAa,GAAb,aAAa,CAAe;QAAU,mBAAc,GAAd,cAAc,CAAgB;QAFvE,iBAAY,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B"}
@@ -1,11 +0,0 @@
1
- import { RequestContext } from '../../../api/common/request-context';
2
- import { Transitions } from '../../../common/finite-state-machine/types';
3
- import { Fulfillment } from '../../../entity/fulfillment/fulfillment.entity';
4
- import { Order } from '../../../entity/order/order.entity';
5
- export declare type FulfillmentState = 'Created' | 'Pending' | 'Shipped' | 'Delivered' | 'Cancelled';
6
- export declare const fulfillmentStateTransitions: Transitions<FulfillmentState>;
7
- export interface FulfillmentTransitionData {
8
- ctx: RequestContext;
9
- orders: Order[];
10
- fulfillment: Fulfillment;
11
- }
@@ -1,21 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.fulfillmentStateTransitions = void 0;
4
- exports.fulfillmentStateTransitions = {
5
- Created: {
6
- to: ['Pending'],
7
- },
8
- Pending: {
9
- to: ['Shipped', 'Delivered', 'Cancelled'],
10
- },
11
- Shipped: {
12
- to: ['Delivered', 'Cancelled'],
13
- },
14
- Delivered: {
15
- to: ['Cancelled'],
16
- },
17
- Cancelled: {
18
- to: [],
19
- },
20
- };
21
- //# sourceMappingURL=fulfillment-state.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"fulfillment-state.js","sourceRoot":"","sources":["../../../../src/service/helpers/fulfillment-state-machine/fulfillment-state.ts"],"names":[],"mappings":";;;AAaa,QAAA,2BAA2B,GAAkC;IACtE,OAAO,EAAE;QACL,EAAE,EAAE,CAAC,SAAS,CAAC;KAClB;IACD,OAAO,EAAE;QACL,EAAE,EAAE,CAAC,SAAS,EAAE,WAAW,EAAE,WAAW,CAAC;KAC5C;IACD,OAAO,EAAE;QACL,EAAE,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC;KACjC;IACD,SAAS,EAAE;QACP,EAAE,EAAE,CAAC,WAAW,CAAC;KACpB;IACD,SAAS,EAAE;QACP,EAAE,EAAE,EAAE;KACT;CACJ,CAAC"}
@@ -1,10 +0,0 @@
1
- import { Type } from '@vendure/common/lib/shared-types';
2
- import { Connection } from 'typeorm';
3
- import { ColumnMetadata } from 'typeorm/metadata/ColumnMetadata';
4
- export declare function getColumnMetadata<T>(connection: Connection, entity: Type<T>): {
5
- columns: ColumnMetadata[];
6
- translationColumns: ColumnMetadata[];
7
- alias: string;
8
- };
9
- export declare function getEntityAlias<T>(connection: Connection, entity: Type<T>): string;
10
- export declare function escapeCalculatedColumnExpression(connection: Connection, expression: string): string;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.escapeCalculatedColumnExpression = exports.getEntityAlias = exports.getColumnMetadata = void 0;
4
- function getColumnMetadata(connection, entity) {
5
- const metadata = connection.getMetadata(entity);
6
- const columns = metadata.columns;
7
- let translationColumns = [];
8
- const relations = metadata.relations;
9
- const translationRelation = relations.find(r => r.propertyName === 'translations');
10
- if (translationRelation) {
11
- const translationMetadata = connection.getMetadata(translationRelation.type);
12
- translationColumns = translationColumns.concat(translationMetadata.columns.filter(c => !c.relationMetadata));
13
- }
14
- const alias = metadata.name.toLowerCase();
15
- return { columns, translationColumns, alias };
16
- }
17
- exports.getColumnMetadata = getColumnMetadata;
18
- function getEntityAlias(connection, entity) {
19
- return connection.getMetadata(entity).name.toLowerCase();
20
- }
21
- exports.getEntityAlias = getEntityAlias;
22
- function escapeCalculatedColumnExpression(connection, expression) {
23
- return expression.replace(/\b([a-z]+[A-Z]\w+)\b/g, substring => connection.driver.escape(substring));
24
- }
25
- exports.escapeCalculatedColumnExpression = escapeCalculatedColumnExpression;
26
- //# sourceMappingURL=connection-utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"connection-utils.js","sourceRoot":"","sources":["../../../../src/service/helpers/list-query-builder/connection-utils.ts"],"names":[],"mappings":";;;AAUA,SAAgB,iBAAiB,CAAI,UAAsB,EAAE,MAAe;IACxE,MAAM,QAAQ,GAAG,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAChD,MAAM,OAAO,GAAG,QAAQ,CAAC,OAAO,CAAC;IACjC,IAAI,kBAAkB,GAAqB,EAAE,CAAC;IAC9C,MAAM,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC;IAErC,MAAM,mBAAmB,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,KAAK,cAAc,CAAC,CAAC;IACnF,IAAI,mBAAmB,EAAE;QACrB,MAAM,mBAAmB,GAAG,UAAU,CAAC,WAAW,CAAC,mBAAmB,CAAC,IAAI,CAAC,CAAC;QAC7E,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,CAC1C,mBAAmB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAC/D,CAAC;KACL;IACD,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAC1C,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,CAAC;AAClD,CAAC;AAfD,8CAeC;AAED,SAAgB,cAAc,CAAI,UAAsB,EAAE,MAAe;IACrE,OAAO,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;AAC7D,CAAC;AAFD,wCAEC;AAMD,SAAgB,gCAAgC,CAAC,UAAsB,EAAE,UAAkB;IACvF,OAAO,UAAU,CAAC,OAAO,CAAC,uBAAuB,EAAE,SAAS,CAAC,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;AACzG,CAAC;AAFD,4EAEC"}
@@ -1,3 +0,0 @@
1
- import { Type } from '@vendure/common/lib/shared-types';
2
- import { CalculatedColumnDefinition } from '../../../common/calculated-decorator';
3
- export declare function getCalculatedColumns(entity: Type<any>): CalculatedColumnDefinition[];
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getCalculatedColumns = void 0;
4
- const calculated_decorator_1 = require("../../../common/calculated-decorator");
5
- function getCalculatedColumns(entity) {
6
- const calculatedColumns = [];
7
- const prototype = entity.prototype;
8
- if (prototype.hasOwnProperty(calculated_decorator_1.CALCULATED_PROPERTIES)) {
9
- for (const property of prototype[calculated_decorator_1.CALCULATED_PROPERTIES]) {
10
- calculatedColumns.push(property);
11
- }
12
- }
13
- return calculatedColumns;
14
- }
15
- exports.getCalculatedColumns = getCalculatedColumns;
16
- //# sourceMappingURL=get-calculated-columns.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-calculated-columns.js","sourceRoot":"","sources":["../../../../src/service/helpers/list-query-builder/get-calculated-columns.ts"],"names":[],"mappings":";;;AAEA,+EAAyG;AAMzG,SAAgB,oBAAoB,CAAC,MAAiB;IAClD,MAAM,iBAAiB,GAAiC,EAAE,CAAC;IAC3D,MAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;IACnC,IAAI,SAAS,CAAC,cAAc,CAAC,4CAAqB,CAAC,EAAE;QACjD,KAAK,MAAM,QAAQ,IAAI,SAAS,CAAC,4CAAqB,CAAC,EAAE;YACrD,iBAAiB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACpC;KACJ;IACD,OAAO,iBAAiB,CAAC;AAC7B,CAAC;AATD,oDASC"}
@@ -1,30 +0,0 @@
1
- import { OnApplicationBootstrap } from '@nestjs/common';
2
- import { ID, Type } from '@vendure/common/lib/shared-types';
3
- import { FindConditions, FindOneOptions, SelectQueryBuilder } from 'typeorm';
4
- import { RequestContext } from '../../../api/common/request-context';
5
- import { ListQueryOptions } from '../../../common/types/common-types';
6
- import { ConfigService } from '../../../config/config.service';
7
- import { TransactionalConnection } from '../../../connection/transactional-connection';
8
- import { VendureEntity } from '../../../entity/base/base.entity';
9
- export declare type ExtendedListQueryOptions<T extends VendureEntity> = {
10
- relations?: string[];
11
- channelId?: ID;
12
- where?: FindConditions<T>;
13
- orderBy?: FindOneOptions<T>['order'];
14
- ctx?: RequestContext;
15
- customPropertyMap?: {
16
- [name: string]: string;
17
- };
18
- };
19
- export declare class ListQueryBuilder implements OnApplicationBootstrap {
20
- private connection;
21
- private configService;
22
- constructor(connection: TransactionalConnection, configService: ConfigService);
23
- onApplicationBootstrap(): any;
24
- build<T extends VendureEntity>(entity: Type<T>, options?: ListQueryOptions<T>, extendedOptions?: ExtendedListQueryOptions<T>): SelectQueryBuilder<T>;
25
- private parseTakeSkipParams;
26
- private normalizeCustomPropertyMap;
27
- private joinCalculatedColumnRelations;
28
- private applyTranslationConditions;
29
- private registerSQLiteRegexpFunction;
30
- }
@@ -1,204 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.ListQueryBuilder = void 0;
13
- const common_1 = require("@nestjs/common");
14
- const generated_types_1 = require("@vendure/common/lib/generated-types");
15
- const unique_1 = require("@vendure/common/lib/unique");
16
- const typeorm_1 = require("typeorm");
17
- const FindOptionsUtils_1 = require("typeorm/find-options/FindOptionsUtils");
18
- const errors_1 = require("../../../common/error/errors");
19
- const config_service_1 = require("../../../config/config.service");
20
- const vendure_logger_1 = require("../../../config/logger/vendure-logger");
21
- const transactional_connection_1 = require("../../../connection/transactional-connection");
22
- const connection_utils_1 = require("./connection-utils");
23
- const get_calculated_columns_1 = require("./get-calculated-columns");
24
- const parse_channel_param_1 = require("./parse-channel-param");
25
- const parse_filter_params_1 = require("./parse-filter-params");
26
- const parse_sort_params_1 = require("./parse-sort-params");
27
- let ListQueryBuilder = class ListQueryBuilder {
28
- constructor(connection, configService) {
29
- this.connection = connection;
30
- this.configService = configService;
31
- }
32
- onApplicationBootstrap() {
33
- this.registerSQLiteRegexpFunction();
34
- }
35
- build(entity, options = {}, extendedOptions = {}) {
36
- var _a, _b, _c;
37
- const apiType = (_b = (_a = extendedOptions.ctx) === null || _a === void 0 ? void 0 : _a.apiType) !== null && _b !== void 0 ? _b : 'shop';
38
- const rawConnection = this.connection.rawConnection;
39
- const { take, skip } = this.parseTakeSkipParams(apiType, options);
40
- const repo = extendedOptions.ctx
41
- ? this.connection.getRepository(extendedOptions.ctx, entity)
42
- : this.connection.getRepository(entity);
43
- const qb = repo.createQueryBuilder(entity.name.toLowerCase());
44
- FindOptionsUtils_1.FindOptionsUtils.applyFindManyOptionsOrConditionsToQueryBuilder(qb, {
45
- relations: extendedOptions.relations,
46
- take,
47
- skip,
48
- where: extendedOptions.where || {},
49
- });
50
- FindOptionsUtils_1.FindOptionsUtils.joinEagerRelations(qb, qb.alias, qb.expressionMap.mainAlias.metadata);
51
- this.applyTranslationConditions(qb, entity, extendedOptions.ctx);
52
- this.joinCalculatedColumnRelations(qb, entity, options);
53
- const { customPropertyMap } = extendedOptions;
54
- if (customPropertyMap) {
55
- this.normalizeCustomPropertyMap(customPropertyMap, qb);
56
- }
57
- const sort = parse_sort_params_1.parseSortParams(rawConnection, entity, Object.assign({}, options.sort, extendedOptions.orderBy), customPropertyMap);
58
- const filter = parse_filter_params_1.parseFilterParams(rawConnection, entity, options.filter, customPropertyMap);
59
- if (filter.length) {
60
- const filterOperator = (_c = options.filterOperator) !== null && _c !== void 0 ? _c : generated_types_1.LogicalOperator.AND;
61
- if (filterOperator === generated_types_1.LogicalOperator.AND) {
62
- filter.forEach(({ clause, parameters }) => {
63
- qb.andWhere(clause, parameters);
64
- });
65
- }
66
- else {
67
- qb.andWhere(new typeorm_1.Brackets(qb1 => {
68
- filter.forEach(({ clause, parameters }) => {
69
- qb1.orWhere(clause, parameters);
70
- });
71
- }));
72
- }
73
- }
74
- if (extendedOptions.channelId) {
75
- const channelFilter = parse_channel_param_1.parseChannelParam(rawConnection, entity, extendedOptions.channelId);
76
- if (channelFilter) {
77
- qb.andWhere(channelFilter.clause, channelFilter.parameters);
78
- }
79
- }
80
- qb.orderBy(sort);
81
- return qb;
82
- }
83
- parseTakeSkipParams(apiType, options) {
84
- var _a, _b;
85
- const { shopListQueryLimit, adminListQueryLimit } = this.configService.apiOptions;
86
- const takeLimit = apiType === 'admin' ? adminListQueryLimit : shopListQueryLimit;
87
- if (options.take && options.take > takeLimit) {
88
- throw new errors_1.UserInputError('error.list-query-limit-exceeded', { limit: takeLimit });
89
- }
90
- const rawConnection = this.connection.rawConnection;
91
- const skip = Math.max((_a = options.skip) !== null && _a !== void 0 ? _a : 0, 0);
92
- let take = Math.min(Math.max((_b = options.take) !== null && _b !== void 0 ? _b : 0, 0), takeLimit) || takeLimit;
93
- if (options.skip !== undefined && options.take === undefined) {
94
- take = takeLimit;
95
- }
96
- return { take, skip };
97
- }
98
- normalizeCustomPropertyMap(customPropertyMap, qb) {
99
- for (const [key, value] of Object.entries(customPropertyMap)) {
100
- const parts = customPropertyMap[key].split('.');
101
- const entityPart = 2 <= parts.length ? parts[parts.length - 2] : qb.alias;
102
- const columnPart = parts[parts.length - 1];
103
- const relationAlias = qb.expressionMap.aliases.find(a => a.metadata.tableNameWithoutPrefix === entityPart);
104
- if (relationAlias) {
105
- customPropertyMap[key] = `${relationAlias.name}.${columnPart}`;
106
- }
107
- else {
108
- vendure_logger_1.Logger.error(`The customPropertyMap entry "${key}:${value}" could not be resolved to a related table`);
109
- delete customPropertyMap[key];
110
- }
111
- }
112
- }
113
- joinCalculatedColumnRelations(qb, entity, options) {
114
- const calculatedColumns = get_calculated_columns_1.getCalculatedColumns(entity);
115
- const filterAndSortFields = unique_1.unique([
116
- ...Object.keys(options.filter || {}),
117
- ...Object.keys(options.sort || {}),
118
- ]);
119
- const alias = connection_utils_1.getEntityAlias(this.connection.rawConnection, entity);
120
- for (const field of filterAndSortFields) {
121
- const calculatedColumnDef = calculatedColumns.find(c => c.name === field);
122
- const instruction = calculatedColumnDef === null || calculatedColumnDef === void 0 ? void 0 : calculatedColumnDef.listQuery;
123
- if (instruction) {
124
- const relations = instruction.relations || [];
125
- for (const relation of relations) {
126
- const relationIsAlreadyJoined = qb.expressionMap.joinAttributes.find(ja => ja.entityOrProperty === `${alias}.${relation}`);
127
- if (!relationIsAlreadyJoined) {
128
- const propertyPath = relation.includes('.') ? relation : `${alias}.${relation}`;
129
- const relationAlias = relation.includes('.')
130
- ? relation.split('.').reverse()[0]
131
- : relation;
132
- qb.innerJoinAndSelect(propertyPath, relationAlias);
133
- }
134
- }
135
- if (typeof instruction.query === 'function') {
136
- instruction.query(qb);
137
- }
138
- }
139
- }
140
- }
141
- applyTranslationConditions(qb, entity, ctx) {
142
- const languageCode = (ctx === null || ctx === void 0 ? void 0 : ctx.languageCode) || this.configService.defaultLanguageCode;
143
- const { columns, translationColumns, alias } = connection_utils_1.getColumnMetadata(this.connection.rawConnection, entity);
144
- if (translationColumns.length) {
145
- const translationsAlias = qb.connection.namingStrategy.eagerJoinRelationAlias(alias, 'translations');
146
- qb.andWhere(new typeorm_1.Brackets(qb1 => {
147
- qb1.where(`${translationsAlias}.languageCode = :languageCode`, { languageCode });
148
- if (languageCode !== this.configService.defaultLanguageCode) {
149
- qb1.orWhere(new typeorm_1.Brackets(qb2 => {
150
- const translationEntity = translationColumns[0].entityMetadata.target;
151
- const subQb1 = this.connection.rawConnection
152
- .createQueryBuilder(translationEntity, 'translation')
153
- .where(`translation.base = ${alias}.id`)
154
- .andWhere('translation.languageCode = :defaultLanguageCode');
155
- const subQb2 = this.connection.rawConnection
156
- .createQueryBuilder(translationEntity, 'translation')
157
- .where(`translation.base = ${alias}.id`)
158
- .andWhere('translation.languageCode = :nonDefaultLanguageCode');
159
- qb2.where(`EXISTS (${subQb1.getQuery()})`).andWhere(`NOT EXISTS (${subQb2.getQuery()})`);
160
- }));
161
- }
162
- else {
163
- qb1.orWhere(new typeorm_1.Brackets(qb2 => {
164
- const translationEntity = translationColumns[0].entityMetadata.target;
165
- const subQb1 = this.connection.rawConnection
166
- .createQueryBuilder(translationEntity, 'translation')
167
- .where(`translation.base = ${alias}.id`)
168
- .andWhere('translation.languageCode = :defaultLanguageCode');
169
- const subQb2 = this.connection.rawConnection
170
- .createQueryBuilder(translationEntity, 'translation')
171
- .where(`translation.base = ${alias}.id`)
172
- .andWhere('translation.languageCode != :defaultLanguageCode');
173
- qb2.where(`NOT EXISTS (${subQb1.getQuery()})`).andWhere(`EXISTS (${subQb2.getQuery()})`);
174
- }));
175
- }
176
- qb.setParameters({
177
- nonDefaultLanguageCode: languageCode,
178
- defaultLanguageCode: this.configService.defaultLanguageCode,
179
- });
180
- }));
181
- }
182
- }
183
- registerSQLiteRegexpFunction() {
184
- const regexpFn = (pattern, value) => {
185
- const result = new RegExp(`${pattern}`, 'i').test(value);
186
- return result ? 1 : 0;
187
- };
188
- const dbType = this.connection.rawConnection.options.type;
189
- if (dbType === 'better-sqlite3') {
190
- const driver = this.connection.rawConnection.driver;
191
- driver.databaseConnection.function('regexp', regexpFn);
192
- }
193
- if (dbType === 'sqljs') {
194
- const driver = this.connection.rawConnection.driver;
195
- driver.databaseConnection.create_function('regexp', regexpFn);
196
- }
197
- }
198
- };
199
- ListQueryBuilder = __decorate([
200
- common_1.Injectable(),
201
- __metadata("design:paramtypes", [transactional_connection_1.TransactionalConnection, config_service_1.ConfigService])
202
- ], ListQueryBuilder);
203
- exports.ListQueryBuilder = ListQueryBuilder;
204
- //# sourceMappingURL=list-query-builder.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"list-query-builder.js","sourceRoot":"","sources":["../../../../src/service/helpers/list-query-builder/list-query-builder.ts"],"names":[],"mappings":";;;;;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AG,IAAI,MAAM,CAAC,GAAG,OAAO,EAAE,EAAE,GAAG,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;YACzD,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1B,CAAC,CAAC;QACF,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,IAAI,CAAC;QAC1D,IAAI,MAAM,KAAK,gBAAgB,EAAE;YAC7B,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,MAA6B,CAAC;YAC3E,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;SAC1D;QACD,IAAI,MAAM,KAAK,OAAO,EAAE;YACpB,MAAM,MAAM,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,MAAqB,CAAC;YACnE,MAAM,CAAC,kBAAkB,CAAC,eAAe,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;SACjE;IACL,CAAC;CACJ,CAAA;AApQY,gBAAgB;IAD5B,mBAAU,EAAE;qCAEuB,kDAAuB,EAAyB,8BAAa;GADpF,gBAAgB,CAoQ5B;AApQY,4CAAgB"}
@@ -1,5 +0,0 @@
1
- import { ID, Type } from '@vendure/common/lib/shared-types';
2
- import { Connection } from 'typeorm';
3
- import { VendureEntity } from '../../../entity/base/base.entity';
4
- import { WhereCondition } from './parse-filter-params';
5
- export declare function parseChannelParam<T extends VendureEntity>(connection: Connection, entity: Type<T>, channelId: ID): WhereCondition | undefined;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.parseChannelParam = void 0;
4
- function parseChannelParam(connection, entity, channelId) {
5
- const metadata = connection.getMetadata(entity);
6
- const alias = metadata.name.toLowerCase();
7
- const relations = metadata.relations;
8
- const channelRelation = relations.find(r => r.propertyName === 'channels');
9
- if (!channelRelation) {
10
- return;
11
- }
12
- return {
13
- clause: `${alias}__channels.id = :channelId`,
14
- parameters: { channelId },
15
- };
16
- }
17
- exports.parseChannelParam = parseChannelParam;
18
- //# sourceMappingURL=parse-channel-param.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parse-channel-param.js","sourceRoot":"","sources":["../../../../src/service/helpers/list-query-builder/parse-channel-param.ts"],"names":[],"mappings":";;;AAWA,SAAgB,iBAAiB,CAC7B,UAAsB,EACtB,MAAe,EACf,SAAa;IAEb,MAAM,QAAQ,GAAG,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAChD,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC;IAC1C,MAAM,SAAS,GAAG,QAAQ,CAAC,SAAS,CAAC;IACrC,MAAM,eAAe,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,YAAY,KAAK,UAAU,CAAC,CAAC;IAC3E,IAAI,CAAC,eAAe,EAAE;QAClB,OAAO;KACV;IACD,OAAO;QACH,MAAM,EAAE,GAAG,KAAK,4BAA4B;QAC5C,UAAU,EAAE,EAAE,SAAS,EAAE;KAC5B,CAAC;AACN,CAAC;AAhBD,8CAgBC"}
@@ -1,13 +0,0 @@
1
- import { Type } from '@vendure/common/lib/shared-types';
2
- import { Connection } from 'typeorm';
3
- import { FilterParameter, NullOptionals } from '../../../common/types/common-types';
4
- import { VendureEntity } from '../../../entity/base/base.entity';
5
- export interface WhereCondition {
6
- clause: string;
7
- parameters: {
8
- [param: string]: string | number;
9
- };
10
- }
11
- export declare function parseFilterParams<T extends VendureEntity>(connection: Connection, entity: Type<T>, filterParams?: NullOptionals<FilterParameter<T>> | null, customPropertyMap?: {
12
- [name: string]: string;
13
- }): WhereCondition[];