@vendure/core 1.7.1 → 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 (1081) 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/shop/shop-order.resolver.js +3 -11
  9. package/dist/api/resolvers/shop/shop-order.resolver.js.map +1 -1
  10. package/dist/api/schema/common/order.type.graphql +1 -0
  11. package/dist/common/constants.d.ts +2 -1
  12. package/dist/config/catalog/default-collection-filters.d.ts +19 -18
  13. package/dist/config/promotion/conditions/buy-x-get-y-free-condition.d.ts +7 -5
  14. package/dist/entity/asset/asset.entity.js +2 -4
  15. package/dist/entity/asset/asset.entity.js.map +1 -1
  16. package/dist/entity/asset/orderable-asset.entity.js +1 -3
  17. package/dist/entity/asset/orderable-asset.entity.js.map +1 -1
  18. package/dist/entity/authentication-method/external-authentication-method.entity.js +1 -3
  19. package/dist/entity/authentication-method/external-authentication-method.entity.js.map +1 -1
  20. package/dist/entity/authentication-method/native-authentication-method.entity.js +1 -3
  21. package/dist/entity/authentication-method/native-authentication-method.entity.js.map +1 -1
  22. package/dist/entity/channel/channel.entity.js +3 -5
  23. package/dist/entity/channel/channel.entity.js.map +1 -1
  24. package/dist/entity/collection/collection-asset.entity.js +2 -4
  25. package/dist/entity/collection/collection-asset.entity.js.map +1 -1
  26. package/dist/entity/collection/collection-translation.entity.js +2 -4
  27. package/dist/entity/collection/collection-translation.entity.js.map +1 -1
  28. package/dist/entity/country/country-translation.entity.js +2 -4
  29. package/dist/entity/country/country-translation.entity.js.map +1 -1
  30. package/dist/entity/country/country.entity.js +1 -3
  31. package/dist/entity/country/country.entity.js.map +1 -1
  32. package/dist/entity/customer-group/customer-group.entity.js +1 -3
  33. package/dist/entity/customer-group/customer-group.entity.js.map +1 -1
  34. package/dist/entity/fulfillment/fulfillment.entity.js +1 -3
  35. package/dist/entity/fulfillment/fulfillment.entity.js.map +1 -1
  36. package/dist/entity/global-settings/global-settings.entity.js +1 -3
  37. package/dist/entity/global-settings/global-settings.entity.js.map +1 -1
  38. package/dist/entity/product/product-asset.entity.js +2 -4
  39. package/dist/entity/product/product-asset.entity.js.map +1 -1
  40. package/dist/entity/product-variant/product-variant-asset.entity.js +2 -4
  41. package/dist/entity/product-variant/product-variant-asset.entity.js.map +1 -1
  42. package/dist/entity/role/role.entity.js +1 -3
  43. package/dist/entity/role/role.entity.js.map +1 -1
  44. package/dist/entity/tag/tag.entity.js +1 -3
  45. package/dist/entity/tag/tag.entity.js.map +1 -1
  46. package/dist/entity/user/user.entity.js +1 -3
  47. package/dist/entity/user/user.entity.js.map +1 -1
  48. package/dist/entity/zone/zone.entity.js +1 -3
  49. package/dist/entity/zone/zone.entity.js.map +1 -1
  50. package/dist/job-queue/in-memory-job-queue-strategy.d.ts +1 -1
  51. package/dist/plugin/default-search-plugin/fulltext-search.service.js +3 -0
  52. package/dist/plugin/default-search-plugin/fulltext-search.service.js.map +1 -1
  53. package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +6 -1
  54. package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js.map +1 -1
  55. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js +1 -1
  56. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js.map +1 -1
  57. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.js +4 -4
  58. package/dist/service/services/collection.service.js +3 -0
  59. package/dist/service/services/collection.service.js.map +1 -1
  60. package/dist/service/services/customer-group.service.js +1 -0
  61. package/dist/service/services/customer-group.service.js.map +1 -1
  62. package/dist/service/services/customer.service.d.ts +9 -0
  63. package/dist/service/services/customer.service.js +31 -0
  64. package/dist/service/services/customer.service.js.map +1 -1
  65. package/dist/service/services/product-variant.service.js +1 -12
  66. package/dist/service/services/product-variant.service.js.map +1 -1
  67. package/package.json +3 -3
  68. package/cli/api/common/extract-session-token.d.ts +0 -3
  69. package/cli/api/common/extract-session-token.js +0 -35
  70. package/cli/api/common/extract-session-token.js.map +0 -1
  71. package/cli/api/common/get-api-type.d.ts +0 -3
  72. package/cli/api/common/get-api-type.js +0 -12
  73. package/cli/api/common/get-api-type.js.map +0 -1
  74. package/cli/api/common/graphql-value-transformer.d.ts +0 -30
  75. package/cli/api/common/graphql-value-transformer.js +0 -199
  76. package/cli/api/common/graphql-value-transformer.js.map +0 -1
  77. package/cli/api/common/id-codec.d.ts +0 -11
  78. package/cli/api/common/id-codec.js +0 -94
  79. package/cli/api/common/id-codec.js.map +0 -1
  80. package/cli/api/common/id-codec.service.d.ts +0 -7
  81. package/cli/api/common/id-codec.service.js +0 -33
  82. package/cli/api/common/id-codec.service.js.map +0 -1
  83. package/cli/api/common/parse-context.d.ts +0 -16
  84. package/cli/api/common/parse-context.js +0 -39
  85. package/cli/api/common/parse-context.js.map +0 -1
  86. package/cli/api/common/request-context.d.ts +0 -55
  87. package/cli/api/common/request-context.js +0 -143
  88. package/cli/api/common/request-context.js.map +0 -1
  89. package/cli/api/common/set-session-token.d.ts +0 -9
  90. package/cli/api/common/set-session-token.js +0 -27
  91. package/cli/api/common/set-session-token.js.map +0 -1
  92. package/cli/api/decorators/allow.decorator.d.ts +0 -3
  93. package/cli/api/decorators/allow.decorator.js +0 -8
  94. package/cli/api/decorators/allow.decorator.js.map +0 -1
  95. package/cli/api/decorators/api.decorator.d.ts +0 -1
  96. package/cli/api/decorators/api.decorator.js +0 -10
  97. package/cli/api/decorators/api.decorator.js.map +0 -1
  98. package/cli/api/decorators/request-context.decorator.d.ts +0 -1
  99. package/cli/api/decorators/request-context.decorator.js +0 -14
  100. package/cli/api/decorators/request-context.decorator.js.map +0 -1
  101. package/cli/api/decorators/transaction.decorator.d.ts +0 -3
  102. package/cli/api/decorators/transaction.decorator.js +0 -11
  103. package/cli/api/decorators/transaction.decorator.js.map +0 -1
  104. package/cli/api/index.d.ts +0 -11
  105. package/cli/api/index.js +0 -23
  106. package/cli/api/index.js.map +0 -1
  107. package/cli/api/middleware/auth-guard.d.ts +0 -21
  108. package/cli/api/middleware/auth-guard.js +0 -151
  109. package/cli/api/middleware/auth-guard.js.map +0 -1
  110. package/cli/api/middleware/exception-logger.filter.d.ts +0 -6
  111. package/cli/api/middleware/exception-logger.filter.js +0 -82
  112. package/cli/api/middleware/exception-logger.filter.js.map +0 -1
  113. package/cli/api/middleware/id-interceptor.d.ts +0 -12
  114. package/cli/api/middleware/id-interceptor.js +0 -56
  115. package/cli/api/middleware/id-interceptor.js.map +0 -1
  116. package/cli/api/middleware/transaction-interceptor.d.ts +0 -12
  117. package/cli/api/middleware/transaction-interceptor.js +0 -46
  118. package/cli/api/middleware/transaction-interceptor.js.map +0 -1
  119. package/cli/api/resolvers/admin/search.resolver.d.ts +0 -17
  120. package/cli/api/resolvers/admin/search.resolver.js +0 -81
  121. package/cli/api/resolvers/admin/search.resolver.js.map +0 -1
  122. package/cli/cache/index.d.ts +0 -1
  123. package/cli/cache/index.js +0 -14
  124. package/cli/cache/index.js.map +0 -1
  125. package/cli/cache/request-context-cache.service.d.ts +0 -9
  126. package/cli/cache/request-context-cache.service.js +0 -39
  127. package/cli/cache/request-context-cache.service.js.map +0 -1
  128. package/cli/cli/cli-utils.d.ts +0 -1
  129. package/cli/cli/cli-utils.js +0 -8
  130. package/cli/cli/cli-utils.js.map +0 -1
  131. package/cli/cli/index.d.ts +0 -1
  132. package/cli/cli/index.js +0 -14
  133. package/cli/cli/index.js.map +0 -1
  134. package/cli/cli/populate.d.ts +0 -5
  135. package/cli/cli/populate.js +0 -106
  136. package/cli/cli/populate.js.map +0 -1
  137. package/cli/cli/vendure-cli.d.ts +0 -2
  138. package/cli/cli/vendure-cli.js +0 -119
  139. package/cli/cli/vendure-cli.js.map +0 -1
  140. package/cli/common/async-queue.d.ts +0 -17
  141. package/cli/common/async-queue.js +0 -56
  142. package/cli/common/async-queue.js.map +0 -1
  143. package/cli/common/calculated-decorator.d.ts +0 -12
  144. package/cli/common/calculated-decorator.js +0 -22
  145. package/cli/common/calculated-decorator.js.map +0 -1
  146. package/cli/common/configurable-operation.d.ts +0 -53
  147. package/cli/common/configurable-operation.js +0 -96
  148. package/cli/common/configurable-operation.js.map +0 -1
  149. package/cli/common/constants.d.ts +0 -7
  150. package/cli/common/constants.js +0 -66
  151. package/cli/common/constants.js.map +0 -1
  152. package/cli/common/error/error-result.d.ts +0 -8
  153. package/cli/common/error/error-result.js +0 -11
  154. package/cli/common/error/error-result.js.map +0 -1
  155. package/cli/common/error/errors.d.ts +0 -31
  156. package/cli/common/error/errors.js +0 -48
  157. package/cli/common/error/errors.js.map +0 -1
  158. package/cli/common/error/generated-graphql-admin-errors.d.ts +0 -309
  159. package/cli/common/error/generated-graphql-admin-errors.js +0 -446
  160. package/cli/common/error/generated-graphql-admin-errors.js.map +0 -1
  161. package/cli/common/error/generated-graphql-shop-errors.d.ts +0 -254
  162. package/cli/common/error/generated-graphql-shop-errors.js +0 -370
  163. package/cli/common/error/generated-graphql-shop-errors.js.map +0 -1
  164. package/cli/common/finite-state-machine/finite-state-machine.d.ts +0 -14
  165. package/cli/common/finite-state-machine/finite-state-machine.js +0 -55
  166. package/cli/common/finite-state-machine/finite-state-machine.js.map +0 -1
  167. package/cli/common/finite-state-machine/merge-transition-definitions.d.ts +0 -2
  168. package/cli/common/finite-state-machine/merge-transition-definitions.js +0 -27
  169. package/cli/common/finite-state-machine/merge-transition-definitions.js.map +0 -1
  170. package/cli/common/finite-state-machine/types.d.ts +0 -16
  171. package/cli/common/finite-state-machine/types.js +0 -3
  172. package/cli/common/finite-state-machine/types.js.map +0 -1
  173. package/cli/common/finite-state-machine/validate-transition-definition.d.ts +0 -5
  174. package/cli/common/finite-state-machine/validate-transition-definition.js +0 -41
  175. package/cli/common/finite-state-machine/validate-transition-definition.js.map +0 -1
  176. package/cli/common/generate-public-id.d.ts +0 -1
  177. package/cli/common/generate-public-id.js +0 -10
  178. package/cli/common/generate-public-id.js.map +0 -1
  179. package/cli/common/index.d.ts +0 -15
  180. package/cli/common/index.js +0 -28
  181. package/cli/common/index.js.map +0 -1
  182. package/cli/common/injector.d.ts +0 -8
  183. package/cli/common/injector.js +0 -16
  184. package/cli/common/injector.js.map +0 -1
  185. package/cli/common/permission-definition.d.ts +0 -23
  186. package/cli/common/permission-definition.js +0 -53
  187. package/cli/common/permission-definition.js.map +0 -1
  188. package/cli/common/self-refreshing-cache.d.ts +0 -15
  189. package/cli/common/self-refreshing-cache.js +0 -56
  190. package/cli/common/self-refreshing-cache.js.map +0 -1
  191. package/cli/common/tax-utils.d.ts +0 -4
  192. package/cli/common/tax-utils.js +0 -20
  193. package/cli/common/tax-utils.js.map +0 -1
  194. package/cli/common/ttl-cache.d.ts +0 -13
  195. package/cli/common/ttl-cache.js +0 -48
  196. package/cli/common/ttl-cache.js.map +0 -1
  197. package/cli/common/types/adjustment-source.d.ts +0 -14
  198. package/cli/common/types/adjustment-source.js +0 -18
  199. package/cli/common/types/adjustment-source.js.map +0 -1
  200. package/cli/common/types/common-types.d.ts +0 -97
  201. package/cli/common/types/common-types.js +0 -3
  202. package/cli/common/types/common-types.js.map +0 -1
  203. package/cli/common/types/entity-relation-paths.d.ts +0 -16
  204. package/cli/common/types/entity-relation-paths.js +0 -3
  205. package/cli/common/types/entity-relation-paths.js.map +0 -1
  206. package/cli/common/types/injectable-strategy.d.ts +0 -5
  207. package/cli/common/types/injectable-strategy.js +0 -3
  208. package/cli/common/types/injectable-strategy.js.map +0 -1
  209. package/cli/common/types/locale-types.d.ts +0 -43
  210. package/cli/common/types/locale-types.js +0 -3
  211. package/cli/common/types/locale-types.js.map +0 -1
  212. package/cli/common/utils.d.ts +0 -11
  213. package/cli/common/utils.js +0 -66
  214. package/cli/common/utils.js.map +0 -1
  215. package/cli/config/asset-naming-strategy/asset-naming-strategy.d.ts +0 -6
  216. package/cli/config/asset-naming-strategy/asset-naming-strategy.js +0 -3
  217. package/cli/config/asset-naming-strategy/asset-naming-strategy.js.map +0 -1
  218. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.d.ts +0 -11
  219. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.js +0 -55
  220. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.js.map +0 -1
  221. package/cli/config/asset-preview-strategy/asset-preview-strategy.d.ts +0 -6
  222. package/cli/config/asset-preview-strategy/asset-preview-strategy.js +0 -3
  223. package/cli/config/asset-preview-strategy/asset-preview-strategy.js.map +0 -1
  224. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.d.ts +0 -6
  225. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.js +0 -11
  226. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.js.map +0 -1
  227. package/cli/config/asset-storage-strategy/asset-storage-strategy.d.ts +0 -13
  228. package/cli/config/asset-storage-strategy/asset-storage-strategy.js +0 -3
  229. package/cli/config/asset-storage-strategy/asset-storage-strategy.js.map +0 -1
  230. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.d.ts +0 -13
  231. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.js +0 -30
  232. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.js.map +0 -1
  233. package/cli/config/auth/authentication-strategy.d.ts +0 -10
  234. package/cli/config/auth/authentication-strategy.js +0 -3
  235. package/cli/config/auth/authentication-strategy.js.map +0 -1
  236. package/cli/config/auth/bcrypt-password-hashing-strategy.d.ts +0 -7
  237. package/cli/config/auth/bcrypt-password-hashing-strategy.js +0 -21
  238. package/cli/config/auth/bcrypt-password-hashing-strategy.js.map +0 -1
  239. package/cli/config/auth/default-password-validation-strategy.d.ts +0 -10
  240. package/cli/config/auth/default-password-validation-strategy.js +0 -24
  241. package/cli/config/auth/default-password-validation-strategy.js.map +0 -1
  242. package/cli/config/auth/native-authentication-strategy.d.ts +0 -21
  243. package/cli/config/auth/native-authentication-strategy.js +0 -87
  244. package/cli/config/auth/native-authentication-strategy.js.map +0 -1
  245. package/cli/config/auth/password-hashing-strategy.d.ts +0 -5
  246. package/cli/config/auth/password-hashing-strategy.js +0 -3
  247. package/cli/config/auth/password-hashing-strategy.js.map +0 -1
  248. package/cli/config/auth/password-validation-strategy.d.ts +0 -5
  249. package/cli/config/auth/password-validation-strategy.js +0 -3
  250. package/cli/config/auth/password-validation-strategy.js.map +0 -1
  251. package/cli/config/catalog/collection-filter.d.ts +0 -13
  252. package/cli/config/catalog/collection-filter.js +0 -15
  253. package/cli/config/catalog/collection-filter.js.map +0 -1
  254. package/cli/config/catalog/default-collection-filters.d.ts +0 -52
  255. package/cli/config/catalog/default-collection-filters.js +0 -112
  256. package/cli/config/catalog/default-collection-filters.js.map +0 -1
  257. package/cli/config/catalog/default-product-variant-price-calculation-strategy.d.ts +0 -8
  258. package/cli/config/catalog/default-product-variant-price-calculation-strategy.js +0 -31
  259. package/cli/config/catalog/default-product-variant-price-calculation-strategy.js.map +0 -1
  260. package/cli/config/catalog/default-stock-display-strategy.d.ts +0 -8
  261. package/cli/config/catalog/default-stock-display-strategy.js +0 -17
  262. package/cli/config/catalog/default-stock-display-strategy.js.map +0 -1
  263. package/cli/config/catalog/product-variant-price-calculation-strategy.d.ts +0 -13
  264. package/cli/config/catalog/product-variant-price-calculation-strategy.js +0 -3
  265. package/cli/config/catalog/product-variant-price-calculation-strategy.js.map +0 -1
  266. package/cli/config/catalog/stock-display-strategy.d.ts +0 -6
  267. package/cli/config/catalog/stock-display-strategy.js +0 -3
  268. package/cli/config/catalog/stock-display-strategy.js.map +0 -1
  269. package/cli/config/config-helpers.d.ts +0 -3
  270. package/cli/config/config-helpers.js +0 -15
  271. package/cli/config/config-helpers.js.map +0 -1
  272. package/cli/config/config.module.d.ts +0 -16
  273. package/cli/config/config.module.js +0 -120
  274. package/cli/config/config.module.js.map +0 -1
  275. package/cli/config/config.service.d.ts +0 -30
  276. package/cli/config/config.service.js +0 -86
  277. package/cli/config/config.service.js.map +0 -1
  278. package/cli/config/custom-field/custom-field-types.d.ts +0 -65
  279. package/cli/config/custom-field/custom-field-types.js +0 -3
  280. package/cli/config/custom-field/custom-field-types.js.map +0 -1
  281. package/cli/config/default-config.d.ts +0 -2
  282. package/cli/config/default-config.js +0 -174
  283. package/cli/config/default-config.js.map +0 -1
  284. package/cli/config/entity-id-strategy/auto-increment-id-strategy.d.ts +0 -6
  285. package/cli/config/entity-id-strategy/auto-increment-id-strategy.js +0 -17
  286. package/cli/config/entity-id-strategy/auto-increment-id-strategy.js.map +0 -1
  287. package/cli/config/entity-id-strategy/entity-id-strategy.d.ts +0 -7
  288. package/cli/config/entity-id-strategy/entity-id-strategy.js +0 -3
  289. package/cli/config/entity-id-strategy/entity-id-strategy.js.map +0 -1
  290. package/cli/config/entity-id-strategy/uuid-id-strategy.d.ts +0 -6
  291. package/cli/config/entity-id-strategy/uuid-id-strategy.js +0 -16
  292. package/cli/config/entity-id-strategy/uuid-id-strategy.js.map +0 -1
  293. package/cli/config/fulfillment/custom-fulfillment-process.d.ts +0 -9
  294. package/cli/config/fulfillment/custom-fulfillment-process.js +0 -3
  295. package/cli/config/fulfillment/custom-fulfillment-process.js.map +0 -1
  296. package/cli/config/fulfillment/fulfillment-handler.d.ts +0 -21
  297. package/cli/config/fulfillment/fulfillment-handler.js +0 -23
  298. package/cli/config/fulfillment/fulfillment-handler.js.map +0 -1
  299. package/cli/config/fulfillment/manual-fulfillment-handler.d.ts +0 -11
  300. package/cli/config/fulfillment/manual-fulfillment-handler.js +0 -26
  301. package/cli/config/fulfillment/manual-fulfillment-handler.js.map +0 -1
  302. package/cli/config/index.d.ts +0 -61
  303. package/cli/config/index.js +0 -74
  304. package/cli/config/index.js.map +0 -1
  305. package/cli/config/job-queue/inspectable-job-queue-strategy.d.ts +0 -12
  306. package/cli/config/job-queue/inspectable-job-queue-strategy.js +0 -11
  307. package/cli/config/job-queue/inspectable-job-queue-strategy.js.map +0 -1
  308. package/cli/config/job-queue/job-queue-strategy.d.ts +0 -8
  309. package/cli/config/job-queue/job-queue-strategy.js +0 -3
  310. package/cli/config/job-queue/job-queue-strategy.js.map +0 -1
  311. package/cli/config/logger/default-logger.d.ts +0 -24
  312. package/cli/config/logger/default-logger.js +0 -90
  313. package/cli/config/logger/default-logger.js.map +0 -1
  314. package/cli/config/logger/noop-logger.d.ts +0 -8
  315. package/cli/config/logger/noop-logger.js +0 -17
  316. package/cli/config/logger/noop-logger.js.map +0 -1
  317. package/cli/config/logger/typeorm-logger.d.ts +0 -15
  318. package/cli/config/logger/typeorm-logger.js +0 -74
  319. package/cli/config/logger/typeorm-logger.js.map +0 -1
  320. package/cli/config/logger/vendure-logger.d.ts +0 -32
  321. package/cli/config/logger/vendure-logger.js +0 -68
  322. package/cli/config/logger/vendure-logger.js.map +0 -1
  323. package/cli/config/merge-config.d.ts +0 -2
  324. package/cli/config/merge-config.js +0 -34
  325. package/cli/config/merge-config.js.map +0 -1
  326. package/cli/config/order/changed-price-handling-strategy.d.ts +0 -7
  327. package/cli/config/order/changed-price-handling-strategy.js +0 -3
  328. package/cli/config/order/changed-price-handling-strategy.js.map +0 -1
  329. package/cli/config/order/custom-order-process.d.ts +0 -9
  330. package/cli/config/order/custom-order-process.js +0 -3
  331. package/cli/config/order/custom-order-process.js.map +0 -1
  332. package/cli/config/order/default-changed-price-handling-strategy.d.ts +0 -6
  333. package/cli/config/order/default-changed-price-handling-strategy.js +0 -10
  334. package/cli/config/order/default-changed-price-handling-strategy.js.map +0 -1
  335. package/cli/config/order/default-order-item-price-calculation-strategy.d.ts +0 -7
  336. package/cli/config/order/default-order-item-price-calculation-strategy.js +0 -13
  337. package/cli/config/order/default-order-item-price-calculation-strategy.js.map +0 -1
  338. package/cli/config/order/default-order-placed-strategy.d.ts +0 -7
  339. package/cli/config/order/default-order-placed-strategy.js +0 -13
  340. package/cli/config/order/default-order-placed-strategy.js.map +0 -1
  341. package/cli/config/order/default-stock-allocation-strategy.d.ts +0 -7
  342. package/cli/config/order/default-stock-allocation-strategy.js +0 -11
  343. package/cli/config/order/default-stock-allocation-strategy.js.map +0 -1
  344. package/cli/config/order/merge-orders-strategy.d.ts +0 -7
  345. package/cli/config/order/merge-orders-strategy.js +0 -29
  346. package/cli/config/order/merge-orders-strategy.js.map +0 -1
  347. package/cli/config/order/order-by-code-access-strategy.d.ts +0 -11
  348. package/cli/config/order/order-by-code-access-strategy.js +0 -25
  349. package/cli/config/order/order-by-code-access-strategy.js.map +0 -1
  350. package/cli/config/order/order-code-strategy.d.ts +0 -8
  351. package/cli/config/order/order-code-strategy.js +0 -11
  352. package/cli/config/order/order-code-strategy.js.map +0 -1
  353. package/cli/config/order/order-item-price-calculation-strategy.d.ts +0 -9
  354. package/cli/config/order/order-item-price-calculation-strategy.js +0 -3
  355. package/cli/config/order/order-item-price-calculation-strategy.js.map +0 -1
  356. package/cli/config/order/order-merge-strategy.d.ts +0 -14
  357. package/cli/config/order/order-merge-strategy.js +0 -12
  358. package/cli/config/order/order-merge-strategy.js.map +0 -1
  359. package/cli/config/order/order-placed-strategy.d.ts +0 -7
  360. package/cli/config/order/order-placed-strategy.js +0 -3
  361. package/cli/config/order/order-placed-strategy.js.map +0 -1
  362. package/cli/config/order/stock-allocation-strategy.d.ts +0 -7
  363. package/cli/config/order/stock-allocation-strategy.js +0 -3
  364. package/cli/config/order/stock-allocation-strategy.js.map +0 -1
  365. package/cli/config/order/use-existing-strategy.d.ts +0 -6
  366. package/cli/config/order/use-existing-strategy.js +0 -11
  367. package/cli/config/order/use-existing-strategy.js.map +0 -1
  368. package/cli/config/order/use-guest-if-existing-empty-strategy.d.ts +0 -6
  369. package/cli/config/order/use-guest-if-existing-empty-strategy.js +0 -13
  370. package/cli/config/order/use-guest-if-existing-empty-strategy.js.map +0 -1
  371. package/cli/config/order/use-guest-strategy.d.ts +0 -6
  372. package/cli/config/order/use-guest-strategy.js +0 -11
  373. package/cli/config/order/use-guest-strategy.js.map +0 -1
  374. package/cli/config/payment/custom-payment-process.d.ts +0 -9
  375. package/cli/config/payment/custom-payment-process.js +0 -3
  376. package/cli/config/payment/custom-payment-process.js.map +0 -1
  377. package/cli/config/payment/dummy-payment-method-handler.d.ts +0 -17
  378. package/cli/config/payment/dummy-payment-method-handler.js +0 -74
  379. package/cli/config/payment/dummy-payment-method-handler.js.map +0 -1
  380. package/cli/config/payment/example-payment-method-handler.d.ts +0 -11
  381. package/cli/config/payment/example-payment-method-handler.js +0 -59
  382. package/cli/config/payment/example-payment-method-handler.js.map +0 -1
  383. package/cli/config/payment/payment-method-eligibility-checker.d.ts +0 -13
  384. package/cli/config/payment/payment-method-eligibility-checker.js +0 -15
  385. package/cli/config/payment/payment-method-eligibility-checker.js.map +0 -1
  386. package/cli/config/payment/payment-method-handler.d.ts +0 -73
  387. package/cli/config/payment/payment-method-handler.js +0 -36
  388. package/cli/config/payment/payment-method-handler.js.map +0 -1
  389. package/cli/config/promotion/actions/buy-x-get-y-free-action.d.ts +0 -37
  390. package/cli/config/promotion/actions/buy-x-get-y-free-action.js +0 -30
  391. package/cli/config/promotion/actions/buy-x-get-y-free-action.js.map +0 -1
  392. package/cli/config/promotion/actions/facet-values-percentage-discount-action.d.ts +0 -17
  393. package/cli/config/promotion/actions/facet-values-percentage-discount-action.js +0 -39
  394. package/cli/config/promotion/actions/facet-values-percentage-discount-action.js.map +0 -1
  395. package/cli/config/promotion/actions/free-shipping-action.d.ts +0 -2
  396. package/cli/config/promotion/actions/free-shipping-action.js +0 -14
  397. package/cli/config/promotion/actions/free-shipping-action.js.map +0 -1
  398. package/cli/config/promotion/actions/order-fixed-discount-action.d.ts +0 -9
  399. package/cli/config/promotion/actions/order-fixed-discount-action.js +0 -21
  400. package/cli/config/promotion/actions/order-fixed-discount-action.js.map +0 -1
  401. package/cli/config/promotion/actions/order-percentage-discount-action.d.ts +0 -10
  402. package/cli/config/promotion/actions/order-percentage-discount-action.js +0 -23
  403. package/cli/config/promotion/actions/order-percentage-discount-action.js.map +0 -1
  404. package/cli/config/promotion/actions/product-percentage-discount-action.d.ts +0 -22
  405. package/cli/config/promotion/actions/product-percentage-discount-action.js +0 -36
  406. package/cli/config/promotion/actions/product-percentage-discount-action.js.map +0 -1
  407. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.d.ts +0 -37
  408. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.js +0 -71
  409. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.js.map +0 -1
  410. package/cli/config/promotion/conditions/contains-products-condition.d.ts +0 -19
  411. package/cli/config/promotion/conditions/contains-products-condition.js +0 -38
  412. package/cli/config/promotion/conditions/contains-products-condition.js.map +0 -1
  413. package/cli/config/promotion/conditions/customer-group-condition.d.ts +0 -14
  414. package/cli/config/promotion/conditions/customer-group-condition.js +0 -72
  415. package/cli/config/promotion/conditions/customer-group-condition.js.map +0 -1
  416. package/cli/config/promotion/conditions/has-facet-values-condition.d.ts +0 -14
  417. package/cli/config/promotion/conditions/has-facet-values-condition.js +0 -31
  418. package/cli/config/promotion/conditions/has-facet-values-condition.js.map +0 -1
  419. package/cli/config/promotion/conditions/min-order-amount-condition.d.ts +0 -14
  420. package/cli/config/promotion/conditions/min-order-amount-condition.js +0 -27
  421. package/cli/config/promotion/conditions/min-order-amount-condition.js.map +0 -1
  422. package/cli/config/promotion/index.d.ts +0 -170
  423. package/cli/config/promotion/index.js +0 -50
  424. package/cli/config/promotion/index.js.map +0 -1
  425. package/cli/config/promotion/promotion-action.d.ts +0 -56
  426. package/cli/config/promotion/promotion-action.js +0 -49
  427. package/cli/config/promotion/promotion-action.js.map +0 -1
  428. package/cli/config/promotion/promotion-condition.d.ts +0 -19
  429. package/cli/config/promotion/promotion-condition.js +0 -19
  430. package/cli/config/promotion/promotion-condition.js.map +0 -1
  431. package/cli/config/promotion/utils/facet-value-checker.d.ts +0 -9
  432. package/cli/config/promotion/utils/facet-value-checker.js +0 -31
  433. package/cli/config/promotion/utils/facet-value-checker.js.map +0 -1
  434. package/cli/config/session-cache/in-memory-session-cache-strategy.d.ts +0 -11
  435. package/cli/config/session-cache/in-memory-session-cache-strategy.js +0 -44
  436. package/cli/config/session-cache/in-memory-session-cache-strategy.js.map +0 -1
  437. package/cli/config/session-cache/noop-session-cache-strategy.d.ts +0 -7
  438. package/cli/config/session-cache/noop-session-cache-strategy.js +0 -19
  439. package/cli/config/session-cache/noop-session-cache-strategy.js.map +0 -1
  440. package/cli/config/session-cache/session-cache-strategy.d.ts +0 -25
  441. package/cli/config/session-cache/session-cache-strategy.js +0 -3
  442. package/cli/config/session-cache/session-cache-strategy.js.map +0 -1
  443. package/cli/config/shipping-method/default-shipping-calculator.d.ts +0 -51
  444. package/cli/config/shipping-method/default-shipping-calculator.js +0 -69
  445. package/cli/config/shipping-method/default-shipping-calculator.js.map +0 -1
  446. package/cli/config/shipping-method/default-shipping-eligibility-checker.d.ts +0 -19
  447. package/cli/config/shipping-method/default-shipping-eligibility-checker.js +0 -27
  448. package/cli/config/shipping-method/default-shipping-eligibility-checker.js.map +0 -1
  449. package/cli/config/shipping-method/shipping-calculator.d.ts +0 -20
  450. package/cli/config/shipping-method/shipping-calculator.js +0 -15
  451. package/cli/config/shipping-method/shipping-calculator.js.map +0 -1
  452. package/cli/config/shipping-method/shipping-eligibility-checker.d.ts +0 -19
  453. package/cli/config/shipping-method/shipping-eligibility-checker.js +0 -38
  454. package/cli/config/shipping-method/shipping-eligibility-checker.js.map +0 -1
  455. package/cli/config/tax/default-tax-line-calculation-strategy.d.ts +0 -5
  456. package/cli/config/tax/default-tax-line-calculation-strategy.js +0 -11
  457. package/cli/config/tax/default-tax-line-calculation-strategy.js.map +0 -1
  458. package/cli/config/tax/default-tax-zone-strategy.d.ts +0 -6
  459. package/cli/config/tax/default-tax-zone-strategy.js +0 -10
  460. package/cli/config/tax/default-tax-zone-strategy.js.map +0 -1
  461. package/cli/config/tax/tax-line-calculation-strategy.d.ts +0 -17
  462. package/cli/config/tax/tax-line-calculation-strategy.js +0 -3
  463. package/cli/config/tax/tax-line-calculation-strategy.js.map +0 -1
  464. package/cli/config/tax/tax-zone-strategy.d.ts +0 -6
  465. package/cli/config/tax/tax-zone-strategy.js +0 -3
  466. package/cli/config/tax/tax-zone-strategy.js.map +0 -1
  467. package/cli/config/vendure-config.d.ts +0 -192
  468. package/cli/config/vendure-config.js +0 -3
  469. package/cli/config/vendure-config.js.map +0 -1
  470. package/cli/connection/connection.module.d.ts +0 -7
  471. package/cli/connection/connection.module.js +0 -61
  472. package/cli/connection/connection.module.js.map +0 -1
  473. package/cli/connection/transaction-subscriber.d.ts +0 -19
  474. package/cli/connection/transaction-subscriber.js +0 -54
  475. package/cli/connection/transaction-subscriber.js.map +0 -1
  476. package/cli/connection/transaction-wrapper.d.ts +0 -9
  477. package/cli/connection/transaction-wrapper.js +0 -79
  478. package/cli/connection/transaction-wrapper.js.map +0 -1
  479. package/cli/connection/transactional-connection.d.ts +0 -25
  480. package/cli/connection/transactional-connection.js +0 -170
  481. package/cli/connection/transactional-connection.js.map +0 -1
  482. package/cli/connection/types.d.ts +0 -8
  483. package/cli/connection/types.js +0 -3
  484. package/cli/connection/types.js.map +0 -1
  485. package/cli/entity/address/address.entity.d.ts +0 -22
  486. package/cli/entity/address/address.entity.js +0 -80
  487. package/cli/entity/address/address.entity.js.map +0 -1
  488. package/cli/entity/administrator/administrator.entity.d.ts +0 -15
  489. package/cli/entity/administrator/administrator.entity.js +0 -52
  490. package/cli/entity/administrator/administrator.entity.js.map +0 -1
  491. package/cli/entity/asset/asset.entity.d.ts +0 -26
  492. package/cli/entity/asset/asset.entity.js +0 -79
  493. package/cli/entity/asset/asset.entity.js.map +0 -1
  494. package/cli/entity/asset/orderable-asset.entity.d.ts +0 -10
  495. package/cli/entity/asset/orderable-asset.entity.js +0 -34
  496. package/cli/entity/asset/orderable-asset.entity.js.map +0 -1
  497. package/cli/entity/authentication-method/authentication-method.entity.d.ts +0 -5
  498. package/cli/entity/authentication-method/authentication-method.entity.js +0 -27
  499. package/cli/entity/authentication-method/authentication-method.entity.js.map +0 -1
  500. package/cli/entity/authentication-method/external-authentication-method.entity.d.ts +0 -8
  501. package/cli/entity/authentication-method/external-authentication-method.entity.js +0 -37
  502. package/cli/entity/authentication-method/external-authentication-method.entity.js.map +0 -1
  503. package/cli/entity/authentication-method/native-authentication-method.entity.d.ts +0 -11
  504. package/cli/entity/authentication-method/native-authentication-method.entity.js +0 -49
  505. package/cli/entity/authentication-method/native-authentication-method.entity.js.map +0 -1
  506. package/cli/entity/base/base.entity.d.ts +0 -7
  507. package/cli/entity/base/base.entity.js +0 -37
  508. package/cli/entity/base/base.entity.js.map +0 -1
  509. package/cli/entity/channel/channel.entity.d.ts +0 -17
  510. package/cli/entity/channel/channel.entity.js +0 -67
  511. package/cli/entity/channel/channel.entity.js.map +0 -1
  512. package/cli/entity/collection/collection-asset.entity.d.ts +0 -8
  513. package/cli/entity/collection/collection-asset.entity.js +0 -34
  514. package/cli/entity/collection/collection-asset.entity.js.map +0 -1
  515. package/cli/entity/collection/collection-translation.entity.d.ts +0 -16
  516. package/cli/entity/collection/collection-translation.entity.js +0 -52
  517. package/cli/entity/collection/collection-translation.entity.js.map +0 -1
  518. package/cli/entity/collection/collection.entity.d.ts +0 -29
  519. package/cli/entity/collection/collection.entity.js +0 -81
  520. package/cli/entity/collection/collection.entity.js.map +0 -1
  521. package/cli/entity/country/country-translation.entity.d.ts +0 -14
  522. package/cli/entity/country/country-translation.entity.js +0 -44
  523. package/cli/entity/country/country-translation.entity.js.map +0 -1
  524. package/cli/entity/country/country.entity.d.ts +0 -13
  525. package/cli/entity/country/country.entity.js +0 -43
  526. package/cli/entity/country/country.entity.js.map +0 -1
  527. package/cli/entity/custom-entity-fields.d.ts +0 -68
  528. package/cli/entity/custom-entity-fields.js +0 -106
  529. package/cli/entity/custom-entity-fields.js.map +0 -1
  530. package/cli/entity/customer/customer.entity.d.ts +0 -25
  531. package/cli/entity/customer/customer.entity.js +0 -82
  532. package/cli/entity/customer/customer.entity.js.map +0 -1
  533. package/cli/entity/customer-group/customer-group.entity.d.ts +0 -11
  534. package/cli/entity/customer-group/customer-group.entity.js +0 -39
  535. package/cli/entity/customer-group/customer-group.entity.js.map +0 -1
  536. package/cli/entity/entities.d.ts +0 -124
  537. package/cli/entity/entities.js +0 -128
  538. package/cli/entity/entities.js.map +0 -1
  539. package/cli/entity/entity-id.decorator.d.ts +0 -18
  540. package/cli/entity/entity-id.decorator.js +0 -40
  541. package/cli/entity/entity-id.decorator.js.map +0 -1
  542. package/cli/entity/facet/facet-translation.entity.d.ts +0 -14
  543. package/cli/entity/facet/facet-translation.entity.js +0 -44
  544. package/cli/entity/facet/facet-translation.entity.js.map +0 -1
  545. package/cli/entity/facet/facet.entity.d.ts +0 -18
  546. package/cli/entity/facet/facet.entity.js +0 -54
  547. package/cli/entity/facet/facet.entity.js.map +0 -1
  548. package/cli/entity/facet-value/facet-value-translation.entity.d.ts +0 -13
  549. package/cli/entity/facet-value/facet-value-translation.entity.js +0 -44
  550. package/cli/entity/facet-value/facet-value-translation.entity.js.map +0 -1
  551. package/cli/entity/facet-value/facet-value.entity.d.ts +0 -17
  552. package/cli/entity/facet-value/facet-value.entity.js +0 -50
  553. package/cli/entity/facet-value/facet-value.entity.js.map +0 -1
  554. package/cli/entity/fulfillment/fulfillment.entity.d.ts +0 -15
  555. package/cli/entity/fulfillment/fulfillment.entity.js +0 -51
  556. package/cli/entity/fulfillment/fulfillment.entity.js.map +0 -1
  557. package/cli/entity/global-settings/global-settings.entity.d.ts +0 -12
  558. package/cli/entity/global-settings/global-settings.entity.js +0 -42
  559. package/cli/entity/global-settings/global-settings.entity.js.map +0 -1
  560. package/cli/entity/history-entry/customer-history-entry.entity.d.ts +0 -7
  561. package/cli/entity/history-entry/customer-history-entry.entity.js +0 -30
  562. package/cli/entity/history-entry/customer-history-entry.entity.js.map +0 -1
  563. package/cli/entity/history-entry/history-entry.entity.d.ts +0 -9
  564. package/cli/entity/history-entry/history-entry.entity.js +0 -40
  565. package/cli/entity/history-entry/history-entry.entity.js.map +0 -1
  566. package/cli/entity/history-entry/order-history-entry.entity.d.ts +0 -7
  567. package/cli/entity/history-entry/order-history-entry.entity.js +0 -30
  568. package/cli/entity/history-entry/order-history-entry.entity.js.map +0 -1
  569. package/cli/entity/index.d.ts +0 -52
  570. package/cli/entity/index.js +0 -65
  571. package/cli/entity/index.js.map +0 -1
  572. package/cli/entity/order/order.entity.d.ts +0 -48
  573. package/cli/entity/order/order.entity.js +0 -277
  574. package/cli/entity/order/order.entity.js.map +0 -1
  575. package/cli/entity/order-item/order-item.entity.d.ts +0 -35
  576. package/cli/entity/order-item/order-item.entity.js +0 -182
  577. package/cli/entity/order-item/order-item.entity.js.map +0 -1
  578. package/cli/entity/order-line/order-line.entity.d.ts +0 -44
  579. package/cli/entity/order-line/order-line.entity.js +0 -275
  580. package/cli/entity/order-line/order-line.entity.js.map +0 -1
  581. package/cli/entity/order-modification/order-modification.entity.d.ts +0 -21
  582. package/cli/entity/order-modification/order-modification.entity.js +0 -81
  583. package/cli/entity/order-modification/order-modification.entity.js.map +0 -1
  584. package/cli/entity/payment/payment.entity.d.ts +0 -17
  585. package/cli/entity/payment/payment.entity.js +0 -59
  586. package/cli/entity/payment/payment.entity.js.map +0 -1
  587. package/cli/entity/payment-method/payment-method.entity.d.ts +0 -18
  588. package/cli/entity/payment-method/payment-method.entity.js +0 -60
  589. package/cli/entity/payment-method/payment-method.entity.js.map +0 -1
  590. package/cli/entity/product/product-asset.entity.d.ts +0 -8
  591. package/cli/entity/product/product-asset.entity.js +0 -34
  592. package/cli/entity/product/product-asset.entity.js.map +0 -1
  593. package/cli/entity/product/product-translation.entity.d.ts +0 -16
  594. package/cli/entity/product/product-translation.entity.js +0 -52
  595. package/cli/entity/product/product-translation.entity.js.map +0 -1
  596. package/cli/entity/product/product.entity.d.ts +0 -28
  597. package/cli/entity/product/product.entity.js +0 -75
  598. package/cli/entity/product/product.entity.js.map +0 -1
  599. package/cli/entity/product-option/product-option-translation.entity.d.ts +0 -14
  600. package/cli/entity/product-option/product-option-translation.entity.js +0 -44
  601. package/cli/entity/product-option/product-option-translation.entity.js.map +0 -1
  602. package/cli/entity/product-option/product-option.entity.d.ts +0 -17
  603. package/cli/entity/product-option/product-option.entity.js +0 -53
  604. package/cli/entity/product-option/product-option.entity.js.map +0 -1
  605. package/cli/entity/product-option-group/product-option-group-translation.entity.d.ts +0 -14
  606. package/cli/entity/product-option-group/product-option-group-translation.entity.js +0 -44
  607. package/cli/entity/product-option-group/product-option-group-translation.entity.js.map +0 -1
  608. package/cli/entity/product-option-group/product-option-group.entity.d.ts +0 -18
  609. package/cli/entity/product-option-group/product-option-group.entity.js +0 -53
  610. package/cli/entity/product-option-group/product-option-group.entity.js.map +0 -1
  611. package/cli/entity/product-variant/product-variant-asset.entity.d.ts +0 -8
  612. package/cli/entity/product-variant/product-variant-asset.entity.js +0 -34
  613. package/cli/entity/product-variant/product-variant-asset.entity.js.map +0 -1
  614. package/cli/entity/product-variant/product-variant-price.entity.d.ts +0 -9
  615. package/cli/entity/product-variant/product-variant-price.entity.js +0 -39
  616. package/cli/entity/product-variant/product-variant-price.entity.js.map +0 -1
  617. package/cli/entity/product-variant/product-variant-translation.entity.d.ts +0 -14
  618. package/cli/entity/product-variant/product-variant-translation.entity.js +0 -44
  619. package/cli/entity/product-variant/product-variant-translation.entity.js.map +0 -1
  620. package/cli/entity/product-variant/product-variant.entity.d.ts +0 -49
  621. package/cli/entity/product-variant/product-variant.entity.js +0 -155
  622. package/cli/entity/product-variant/product-variant.entity.js.map +0 -1
  623. package/cli/entity/promotion/promotion.entity.d.ts +0 -56
  624. package/cli/entity/promotion/promotion.entity.js +0 -157
  625. package/cli/entity/promotion/promotion.entity.js.map +0 -1
  626. package/cli/entity/refund/refund.entity.d.ts +0 -21
  627. package/cli/entity/refund/refund.entity.js +0 -78
  628. package/cli/entity/refund/refund.entity.js.map +0 -1
  629. package/cli/entity/role/role.entity.d.ts +0 -12
  630. package/cli/entity/role/role.entity.js +0 -43
  631. package/cli/entity/role/role.entity.js.map +0 -1
  632. package/cli/entity/session/anonymous-session.entity.d.ts +0 -5
  633. package/cli/entity/session/anonymous-session.entity.js +0 -25
  634. package/cli/entity/session/anonymous-session.entity.js.map +0 -1
  635. package/cli/entity/session/authenticated-session.entity.d.ts +0 -8
  636. package/cli/entity/session/authenticated-session.entity.js +0 -34
  637. package/cli/entity/session/authenticated-session.entity.js.map +0 -1
  638. package/cli/entity/session/session.entity.d.ts +0 -13
  639. package/cli/entity/session/session.entity.js +0 -54
  640. package/cli/entity/session/session.entity.js.map +0 -1
  641. package/cli/entity/shipping-line/shipping-line.entity.d.ts +0 -24
  642. package/cli/entity/shipping-line/shipping-line.entity.js +0 -128
  643. package/cli/entity/shipping-line/shipping-line.entity.js.map +0 -1
  644. package/cli/entity/shipping-method/shipping-method-translation.entity.d.ts +0 -16
  645. package/cli/entity/shipping-method/shipping-method-translation.entity.js +0 -48
  646. package/cli/entity/shipping-method/shipping-method-translation.entity.js.map +0 -1
  647. package/cli/entity/shipping-method/shipping-method.entity.d.ts +0 -28
  648. package/cli/entity/shipping-method/shipping-method.entity.js +0 -92
  649. package/cli/entity/shipping-method/shipping-method.entity.js.map +0 -1
  650. package/cli/entity/stock-movement/allocation.entity.d.ts +0 -9
  651. package/cli/entity/stock-movement/allocation.entity.js +0 -32
  652. package/cli/entity/stock-movement/allocation.entity.js.map +0 -1
  653. package/cli/entity/stock-movement/cancellation.entity.d.ts +0 -9
  654. package/cli/entity/stock-movement/cancellation.entity.js +0 -32
  655. package/cli/entity/stock-movement/cancellation.entity.js.map +0 -1
  656. package/cli/entity/stock-movement/release.entity.d.ts +0 -9
  657. package/cli/entity/stock-movement/release.entity.js +0 -32
  658. package/cli/entity/stock-movement/release.entity.js.map +0 -1
  659. package/cli/entity/stock-movement/sale.entity.d.ts +0 -9
  660. package/cli/entity/stock-movement/sale.entity.js +0 -32
  661. package/cli/entity/stock-movement/sale.entity.js.map +0 -1
  662. package/cli/entity/stock-movement/stock-adjustment.entity.d.ts +0 -7
  663. package/cli/entity/stock-movement/stock-adjustment.entity.js +0 -27
  664. package/cli/entity/stock-movement/stock-adjustment.entity.js.map +0 -1
  665. package/cli/entity/stock-movement/stock-movement.entity.d.ts +0 -8
  666. package/cli/entity/stock-movement/stock-movement.entity.js +0 -36
  667. package/cli/entity/stock-movement/stock-movement.entity.js.map +0 -1
  668. package/cli/entity/surcharge/surcharge.entity.d.ts +0 -18
  669. package/cli/entity/surcharge/surcharge.entity.js +0 -82
  670. package/cli/entity/surcharge/surcharge.entity.js.map +0 -1
  671. package/cli/entity/tag/tag.entity.d.ts +0 -6
  672. package/cli/entity/tag/tag.entity.js +0 -29
  673. package/cli/entity/tag/tag.entity.js.map +0 -1
  674. package/cli/entity/tax-category/tax-category.entity.d.ts +0 -10
  675. package/cli/entity/tax-category/tax-category.entity.js +0 -38
  676. package/cli/entity/tax-category/tax-category.entity.js.map +0 -1
  677. package/cli/entity/tax-rate/tax-rate.entity.d.ts +0 -24
  678. package/cli/entity/tax-rate/tax-rate.entity.js +0 -81
  679. package/cli/entity/tax-rate/tax-rate.entity.js.map +0 -1
  680. package/cli/entity/user/user.entity.d.ts +0 -19
  681. package/cli/entity/user/user.entity.js +0 -69
  682. package/cli/entity/user/user.entity.js.map +0 -1
  683. package/cli/entity/value-transformers.d.ts +0 -5
  684. package/cli/entity/value-transformers.js +0 -13
  685. package/cli/entity/value-transformers.js.map +0 -1
  686. package/cli/entity/zone/zone.entity.d.ts +0 -11
  687. package/cli/entity/zone/zone.entity.js +0 -40
  688. package/cli/entity/zone/zone.entity.js.map +0 -1
  689. package/cli/event-bus/event-bus.d.ts +0 -15
  690. package/cli/event-bus/event-bus.js +0 -51
  691. package/cli/event-bus/event-bus.js.map +0 -1
  692. package/cli/event-bus/event-bus.module.d.ts +0 -2
  693. package/cli/event-bus/event-bus.module.js +0 -23
  694. package/cli/event-bus/event-bus.module.js.map +0 -1
  695. package/cli/event-bus/events/account-registration-event.d.ts +0 -8
  696. package/cli/event-bus/events/account-registration-event.js +0 -13
  697. package/cli/event-bus/events/account-registration-event.js.map +0 -1
  698. package/cli/event-bus/events/account-verified-event.d.ts +0 -8
  699. package/cli/event-bus/events/account-verified-event.js +0 -13
  700. package/cli/event-bus/events/account-verified-event.js.map +0 -1
  701. package/cli/event-bus/events/administrator-event.d.ts +0 -10
  702. package/cli/event-bus/events/administrator-event.js +0 -11
  703. package/cli/event-bus/events/administrator-event.js.map +0 -1
  704. package/cli/event-bus/events/asset-channel-event.d.ts +0 -11
  705. package/cli/event-bus/events/asset-channel-event.js +0 -15
  706. package/cli/event-bus/events/asset-channel-event.js.map +0 -1
  707. package/cli/event-bus/events/asset-event.d.ts +0 -11
  708. package/cli/event-bus/events/asset-event.js +0 -14
  709. package/cli/event-bus/events/asset-event.js.map +0 -1
  710. package/cli/event-bus/events/attempted-login-event.d.ts +0 -8
  711. package/cli/event-bus/events/attempted-login-event.js +0 -14
  712. package/cli/event-bus/events/attempted-login-event.js.map +0 -1
  713. package/cli/event-bus/events/change-channel-event.d.ts +0 -13
  714. package/cli/event-bus/events/change-channel-event.js +0 -16
  715. package/cli/event-bus/events/change-channel-event.js.map +0 -1
  716. package/cli/event-bus/events/channel-event.d.ts +0 -10
  717. package/cli/event-bus/events/channel-event.js +0 -11
  718. package/cli/event-bus/events/channel-event.js.map +0 -1
  719. package/cli/event-bus/events/collection-event.d.ts +0 -10
  720. package/cli/event-bus/events/collection-event.js +0 -11
  721. package/cli/event-bus/events/collection-event.js.map +0 -1
  722. package/cli/event-bus/events/collection-modification-event.d.ts +0 -10
  723. package/cli/event-bus/events/collection-modification-event.js +0 -14
  724. package/cli/event-bus/events/collection-modification-event.js.map +0 -1
  725. package/cli/event-bus/events/country-event.d.ts +0 -10
  726. package/cli/event-bus/events/country-event.js +0 -11
  727. package/cli/event-bus/events/country-event.js.map +0 -1
  728. package/cli/event-bus/events/coupon-code-event.d.ts +0 -10
  729. package/cli/event-bus/events/coupon-code-event.js +0 -15
  730. package/cli/event-bus/events/coupon-code-event.js.map +0 -1
  731. package/cli/event-bus/events/customer-address-event.d.ts +0 -15
  732. package/cli/event-bus/events/customer-address-event.js +0 -18
  733. package/cli/event-bus/events/customer-address-event.js.map +0 -1
  734. package/cli/event-bus/events/customer-event.d.ts +0 -13
  735. package/cli/event-bus/events/customer-event.js +0 -14
  736. package/cli/event-bus/events/customer-event.js.map +0 -1
  737. package/cli/event-bus/events/customer-group-entity-event.d.ts +0 -10
  738. package/cli/event-bus/events/customer-group-entity-event.js +0 -11
  739. package/cli/event-bus/events/customer-group-entity-event.js.map +0 -1
  740. package/cli/event-bus/events/customer-group-event.d.ts +0 -18
  741. package/cli/event-bus/events/customer-group-event.js +0 -25
  742. package/cli/event-bus/events/customer-group-event.js.map +0 -1
  743. package/cli/event-bus/events/facet-event.d.ts +0 -10
  744. package/cli/event-bus/events/facet-event.js +0 -11
  745. package/cli/event-bus/events/facet-event.js.map +0 -1
  746. package/cli/event-bus/events/facet-value-event.d.ts +0 -10
  747. package/cli/event-bus/events/facet-value-event.js +0 -11
  748. package/cli/event-bus/events/facet-value-event.js.map +0 -1
  749. package/cli/event-bus/events/fulfillment-event.d.ts +0 -14
  750. package/cli/event-bus/events/fulfillment-event.js +0 -11
  751. package/cli/event-bus/events/fulfillment-event.js.map +0 -1
  752. package/cli/event-bus/events/fulfillment-state-transition-event.d.ts +0 -11
  753. package/cli/event-bus/events/fulfillment-state-transition-event.js +0 -15
  754. package/cli/event-bus/events/fulfillment-state-transition-event.js.map +0 -1
  755. package/cli/event-bus/events/global-settings-event.d.ts +0 -7
  756. package/cli/event-bus/events/global-settings-event.js +0 -11
  757. package/cli/event-bus/events/global-settings-event.js.map +0 -1
  758. package/cli/event-bus/events/history-entry-event.d.ts +0 -14
  759. package/cli/event-bus/events/history-entry-event.js +0 -12
  760. package/cli/event-bus/events/history-entry-event.js.map +0 -1
  761. package/cli/event-bus/events/identifier-change-event.d.ts +0 -9
  762. package/cli/event-bus/events/identifier-change-event.js +0 -14
  763. package/cli/event-bus/events/identifier-change-event.js.map +0 -1
  764. package/cli/event-bus/events/identifier-change-request-event.d.ts +0 -8
  765. package/cli/event-bus/events/identifier-change-request-event.js +0 -13
  766. package/cli/event-bus/events/identifier-change-request-event.js.map +0 -1
  767. package/cli/event-bus/events/login-event.d.ts +0 -8
  768. package/cli/event-bus/events/login-event.js +0 -13
  769. package/cli/event-bus/events/login-event.js.map +0 -1
  770. package/cli/event-bus/events/logout-event.d.ts +0 -6
  771. package/cli/event-bus/events/logout-event.js +0 -12
  772. package/cli/event-bus/events/logout-event.js.map +0 -1
  773. package/cli/event-bus/events/order-event.d.ts +0 -9
  774. package/cli/event-bus/events/order-event.js +0 -14
  775. package/cli/event-bus/events/order-event.js.map +0 -1
  776. package/cli/event-bus/events/order-line-event.d.ts +0 -10
  777. package/cli/event-bus/events/order-line-event.js +0 -15
  778. package/cli/event-bus/events/order-line-event.js.map +0 -1
  779. package/cli/event-bus/events/order-placed-event.d.ts +0 -11
  780. package/cli/event-bus/events/order-placed-event.js +0 -15
  781. package/cli/event-bus/events/order-placed-event.js.map +0 -1
  782. package/cli/event-bus/events/order-state-transition-event.d.ts +0 -11
  783. package/cli/event-bus/events/order-state-transition-event.js +0 -15
  784. package/cli/event-bus/events/order-state-transition-event.js.map +0 -1
  785. package/cli/event-bus/events/password-reset-event.d.ts +0 -8
  786. package/cli/event-bus/events/password-reset-event.js +0 -13
  787. package/cli/event-bus/events/password-reset-event.js.map +0 -1
  788. package/cli/event-bus/events/password-reset-verified-event.d.ts +0 -8
  789. package/cli/event-bus/events/password-reset-verified-event.js +0 -13
  790. package/cli/event-bus/events/password-reset-verified-event.js.map +0 -1
  791. package/cli/event-bus/events/payment-method-event.d.ts +0 -10
  792. package/cli/event-bus/events/payment-method-event.js +0 -11
  793. package/cli/event-bus/events/payment-method-event.js.map +0 -1
  794. package/cli/event-bus/events/payment-state-transition-event.d.ts +0 -13
  795. package/cli/event-bus/events/payment-state-transition-event.js +0 -16
  796. package/cli/event-bus/events/payment-state-transition-event.js.map +0 -1
  797. package/cli/event-bus/events/product-channel-event.d.ts +0 -11
  798. package/cli/event-bus/events/product-channel-event.js +0 -15
  799. package/cli/event-bus/events/product-channel-event.js.map +0 -1
  800. package/cli/event-bus/events/product-event.d.ts +0 -11
  801. package/cli/event-bus/events/product-event.js +0 -14
  802. package/cli/event-bus/events/product-event.js.map +0 -1
  803. package/cli/event-bus/events/product-option-event.d.ts +0 -10
  804. package/cli/event-bus/events/product-option-event.js +0 -11
  805. package/cli/event-bus/events/product-option-event.js.map +0 -1
  806. package/cli/event-bus/events/product-option-group-change-event.d.ts +0 -11
  807. package/cli/event-bus/events/product-option-group-change-event.js +0 -15
  808. package/cli/event-bus/events/product-option-group-change-event.js.map +0 -1
  809. package/cli/event-bus/events/product-option-group-event.d.ts +0 -10
  810. package/cli/event-bus/events/product-option-group-event.js +0 -11
  811. package/cli/event-bus/events/product-option-group-event.js.map +0 -1
  812. package/cli/event-bus/events/product-variant-channel-event.d.ts +0 -11
  813. package/cli/event-bus/events/product-variant-channel-event.js +0 -15
  814. package/cli/event-bus/events/product-variant-channel-event.js.map +0 -1
  815. package/cli/event-bus/events/product-variant-event.d.ts +0 -11
  816. package/cli/event-bus/events/product-variant-event.js +0 -14
  817. package/cli/event-bus/events/product-variant-event.js.map +0 -1
  818. package/cli/event-bus/events/promotion-event.d.ts +0 -10
  819. package/cli/event-bus/events/promotion-event.js +0 -11
  820. package/cli/event-bus/events/promotion-event.js.map +0 -1
  821. package/cli/event-bus/events/refund-state-transition-event.d.ts +0 -13
  822. package/cli/event-bus/events/refund-state-transition-event.js +0 -16
  823. package/cli/event-bus/events/refund-state-transition-event.js.map +0 -1
  824. package/cli/event-bus/events/role-change-event.d.ts +0 -11
  825. package/cli/event-bus/events/role-change-event.js +0 -15
  826. package/cli/event-bus/events/role-change-event.js.map +0 -1
  827. package/cli/event-bus/events/role-event.d.ts +0 -10
  828. package/cli/event-bus/events/role-event.js +0 -11
  829. package/cli/event-bus/events/role-event.js.map +0 -1
  830. package/cli/event-bus/events/shipping-method-event.d.ts +0 -10
  831. package/cli/event-bus/events/shipping-method-event.js +0 -11
  832. package/cli/event-bus/events/shipping-method-event.js.map +0 -1
  833. package/cli/event-bus/events/stock-movement-event.d.ts +0 -10
  834. package/cli/event-bus/events/stock-movement-event.js +0 -15
  835. package/cli/event-bus/events/stock-movement-event.js.map +0 -1
  836. package/cli/event-bus/events/tax-category-event.d.ts +0 -10
  837. package/cli/event-bus/events/tax-category-event.js +0 -11
  838. package/cli/event-bus/events/tax-category-event.js.map +0 -1
  839. package/cli/event-bus/events/tax-rate-event.d.ts +0 -10
  840. package/cli/event-bus/events/tax-rate-event.js +0 -11
  841. package/cli/event-bus/events/tax-rate-event.js.map +0 -1
  842. package/cli/event-bus/events/tax-rate-modification-event.d.ts +0 -8
  843. package/cli/event-bus/events/tax-rate-modification-event.js +0 -13
  844. package/cli/event-bus/events/tax-rate-modification-event.js.map +0 -1
  845. package/cli/event-bus/events/zone-event.d.ts +0 -10
  846. package/cli/event-bus/events/zone-event.js +0 -11
  847. package/cli/event-bus/events/zone-event.js.map +0 -1
  848. package/cli/event-bus/events/zone-members-event.d.ts +0 -11
  849. package/cli/event-bus/events/zone-members-event.js +0 -15
  850. package/cli/event-bus/events/zone-members-event.js.map +0 -1
  851. package/cli/event-bus/index.d.ts +0 -55
  852. package/cli/event-bus/index.js +0 -68
  853. package/cli/event-bus/index.js.map +0 -1
  854. package/cli/event-bus/vendure-entity-event.d.ts +0 -9
  855. package/cli/event-bus/vendure-entity-event.js +0 -15
  856. package/cli/event-bus/vendure-entity-event.js.map +0 -1
  857. package/cli/event-bus/vendure-event.d.ts +0 -4
  858. package/cli/event-bus/vendure-event.js +0 -10
  859. package/cli/event-bus/vendure-event.js.map +0 -1
  860. package/cli/health-check/constants.d.ts +0 -1
  861. package/cli/health-check/constants.js +0 -5
  862. package/cli/health-check/constants.js.map +0 -1
  863. package/cli/i18n/i18n-error.d.ts +0 -13
  864. package/cli/i18n/i18n-error.js +0 -16
  865. package/cli/i18n/i18n-error.js.map +0 -1
  866. package/cli/job-queue/constants.d.ts +0 -1
  867. package/cli/job-queue/constants.js +0 -5
  868. package/cli/job-queue/constants.js.map +0 -1
  869. package/cli/job-queue/in-memory-job-queue-strategy.d.ts +0 -34
  870. package/cli/job-queue/in-memory-job-queue-strategy.js +0 -187
  871. package/cli/job-queue/in-memory-job-queue-strategy.js.map +0 -1
  872. package/cli/job-queue/index.d.ts +0 -11
  873. package/cli/job-queue/index.js +0 -24
  874. package/cli/job-queue/index.js.map +0 -1
  875. package/cli/job-queue/injectable-job-queue-strategy.d.ts +0 -12
  876. package/cli/job-queue/injectable-job-queue-strategy.js +0 -21
  877. package/cli/job-queue/injectable-job-queue-strategy.js.map +0 -1
  878. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.d.ts +0 -13
  879. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.js +0 -47
  880. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.js.map +0 -1
  881. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.d.ts +0 -11
  882. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.js +0 -3
  883. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.js.map +0 -1
  884. package/cli/job-queue/job-buffer/job-buffer.d.ts +0 -7
  885. package/cli/job-queue/job-buffer/job-buffer.js +0 -3
  886. package/cli/job-queue/job-buffer/job-buffer.js.map +0 -1
  887. package/cli/job-queue/job-buffer/job-buffer.service.d.ts +0 -16
  888. package/cli/job-queue/job-buffer/job-buffer.service.js +0 -76
  889. package/cli/job-queue/job-buffer/job-buffer.service.js.map +0 -1
  890. package/cli/job-queue/job-queue.d.ts +0 -16
  891. package/cli/job-queue/job-queue.js +0 -59
  892. package/cli/job-queue/job-queue.js.map +0 -1
  893. package/cli/job-queue/job-queue.service.d.ts +0 -27
  894. package/cli/job-queue/job-queue.service.js +0 -84
  895. package/cli/job-queue/job-queue.service.js.map +0 -1
  896. package/cli/job-queue/job.d.ts +0 -41
  897. package/cli/job-queue/job.js +0 -160
  898. package/cli/job-queue/job.js.map +0 -1
  899. package/cli/job-queue/polling-job-queue-strategy.d.ts +0 -26
  900. package/cli/job-queue/polling-job-queue-strategy.js +0 -163
  901. package/cli/job-queue/polling-job-queue-strategy.js.map +0 -1
  902. package/cli/job-queue/queue-name-process-storage.d.ts +0 -7
  903. package/cli/job-queue/queue-name-process-storage.js +0 -40
  904. package/cli/job-queue/queue-name-process-storage.js.map +0 -1
  905. package/cli/job-queue/subscribable-job.d.ts +0 -13
  906. package/cli/job-queue/subscribable-job.js +0 -52
  907. package/cli/job-queue/subscribable-job.js.map +0 -1
  908. package/cli/job-queue/types.d.ts +0 -22
  909. package/cli/job-queue/types.js +0 -3
  910. package/cli/job-queue/types.js.map +0 -1
  911. package/cli/process-context/process-context.d.ts +0 -7
  912. package/cli/process-context/process-context.js +0 -18
  913. package/cli/process-context/process-context.js.map +0 -1
  914. package/cli/service/helpers/config-arg/config-arg.service.d.ts +0 -31
  915. package/cli/service/helpers/config-arg/config-arg.service.js +0 -88
  916. package/cli/service/helpers/config-arg/config-arg.service.js.map +0 -1
  917. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.d.ts +0 -18
  918. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.js +0 -63
  919. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.js.map +0 -1
  920. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.d.ts +0 -21
  921. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js +0 -113
  922. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js.map +0 -1
  923. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.d.ts +0 -11
  924. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.js +0 -21
  925. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.js.map +0 -1
  926. package/cli/service/helpers/list-query-builder/connection-utils.d.ts +0 -10
  927. package/cli/service/helpers/list-query-builder/connection-utils.js +0 -26
  928. package/cli/service/helpers/list-query-builder/connection-utils.js.map +0 -1
  929. package/cli/service/helpers/list-query-builder/get-calculated-columns.d.ts +0 -3
  930. package/cli/service/helpers/list-query-builder/get-calculated-columns.js +0 -16
  931. package/cli/service/helpers/list-query-builder/get-calculated-columns.js.map +0 -1
  932. package/cli/service/helpers/list-query-builder/list-query-builder.d.ts +0 -30
  933. package/cli/service/helpers/list-query-builder/list-query-builder.js +0 -204
  934. package/cli/service/helpers/list-query-builder/list-query-builder.js.map +0 -1
  935. package/cli/service/helpers/list-query-builder/parse-channel-param.d.ts +0 -5
  936. package/cli/service/helpers/list-query-builder/parse-channel-param.js +0 -18
  937. package/cli/service/helpers/list-query-builder/parse-channel-param.js.map +0 -1
  938. package/cli/service/helpers/list-query-builder/parse-filter-params.d.ts +0 -13
  939. package/cli/service/helpers/list-query-builder/parse-filter-params.js +0 -155
  940. package/cli/service/helpers/list-query-builder/parse-filter-params.js.map +0 -1
  941. package/cli/service/helpers/list-query-builder/parse-sort-params.d.ts +0 -7
  942. package/cli/service/helpers/list-query-builder/parse-sort-params.js +0 -50
  943. package/cli/service/helpers/list-query-builder/parse-sort-params.js.map +0 -1
  944. package/cli/service/helpers/order-calculator/order-calculator.d.ts +0 -32
  945. package/cli/service/helpers/order-calculator/order-calculator.js +0 -311
  946. package/cli/service/helpers/order-calculator/order-calculator.js.map +0 -1
  947. package/cli/service/helpers/order-calculator/prorate.d.ts +0 -1
  948. package/cli/service/helpers/order-calculator/prorate.js +0 -35
  949. package/cli/service/helpers/order-calculator/prorate.js.map +0 -1
  950. package/cli/service/helpers/order-merger/order-merger.d.ts +0 -40
  951. package/cli/service/helpers/order-merger/order-merger.js +0 -97
  952. package/cli/service/helpers/order-merger/order-merger.js.map +0 -1
  953. package/cli/service/helpers/order-modifier/order-modifier.d.ts +0 -45
  954. package/cli/service/helpers/order-modifier/order-modifier.js +0 -423
  955. package/cli/service/helpers/order-modifier/order-modifier.js.map +0 -1
  956. package/cli/service/helpers/order-state-machine/order-state-machine.d.ts +0 -29
  957. package/cli/service/helpers/order-state-machine/order-state-machine.js +0 -240
  958. package/cli/service/helpers/order-state-machine/order-state-machine.js.map +0 -1
  959. package/cli/service/helpers/order-state-machine/order-state.d.ts +0 -9
  960. package/cli/service/helpers/order-state-machine/order-state.js +0 -64
  961. package/cli/service/helpers/order-state-machine/order-state.js.map +0 -1
  962. package/cli/service/helpers/password-cipher/password-cipher.d.ts +0 -7
  963. package/cli/service/helpers/password-cipher/password-cipher.js +0 -31
  964. package/cli/service/helpers/password-cipher/password-cipher.js.map +0 -1
  965. package/cli/service/helpers/payment-state-machine/payment-state-machine.d.ts +0 -20
  966. package/cli/service/helpers/payment-state-machine/payment-state-machine.js +0 -113
  967. package/cli/service/helpers/payment-state-machine/payment-state-machine.js.map +0 -1
  968. package/cli/service/helpers/payment-state-machine/payment-state.d.ts +0 -11
  969. package/cli/service/helpers/payment-state-machine/payment-state.js +0 -24
  970. package/cli/service/helpers/payment-state-machine/payment-state.js.map +0 -1
  971. package/cli/service/helpers/product-price-applicator/product-price-applicator.d.ts +0 -15
  972. package/cli/service/helpers/product-price-applicator/product-price-applicator.js +0 -64
  973. package/cli/service/helpers/product-price-applicator/product-price-applicator.js.map +0 -1
  974. package/cli/service/helpers/refund-state-machine/refund-state-machine.d.ts +0 -14
  975. package/cli/service/helpers/refund-state-machine/refund-state-machine.js +0 -65
  976. package/cli/service/helpers/refund-state-machine/refund-state-machine.js.map +0 -1
  977. package/cli/service/helpers/refund-state-machine/refund-state.d.ts +0 -11
  978. package/cli/service/helpers/refund-state-machine/refund-state.js +0 -15
  979. package/cli/service/helpers/refund-state-machine/refund-state.js.map +0 -1
  980. package/cli/service/helpers/request-context/request-context.service.d.ts +0 -29
  981. package/cli/service/helpers/request-context/request-context.service.js +0 -127
  982. package/cli/service/helpers/request-context/request-context.service.js.map +0 -1
  983. package/cli/service/helpers/shipping-calculator/shipping-calculator.d.ts +0 -18
  984. package/cli/service/helpers/shipping-calculator/shipping-calculator.js +0 -50
  985. package/cli/service/helpers/shipping-calculator/shipping-calculator.js.map +0 -1
  986. package/cli/service/helpers/translatable-saver/translatable-saver.d.ts +0 -24
  987. package/cli/service/helpers/translatable-saver/translatable-saver.js +0 -64
  988. package/cli/service/helpers/translatable-saver/translatable-saver.js.map +0 -1
  989. package/cli/service/helpers/translatable-saver/translation-differ.d.ts +0 -17
  990. package/cli/service/helpers/translatable-saver/translation-differ.js +0 -65
  991. package/cli/service/helpers/translatable-saver/translation-differ.js.map +0 -1
  992. package/cli/service/helpers/utils/address-to-line.d.ts +0 -3
  993. package/cli/service/helpers/utils/address-to-line.js +0 -21
  994. package/cli/service/helpers/utils/address-to-line.js.map +0 -1
  995. package/cli/service/helpers/utils/get-user-channels-permissions.d.ts +0 -10
  996. package/cli/service/helpers/utils/get-user-channels-permissions.js +0 -26
  997. package/cli/service/helpers/utils/get-user-channels-permissions.js.map +0 -1
  998. package/cli/service/helpers/utils/order-utils.d.ts +0 -9
  999. package/cli/service/helpers/utils/order-utils.js +0 -64
  1000. package/cli/service/helpers/utils/order-utils.js.map +0 -1
  1001. package/cli/service/helpers/utils/patch-entity.d.ts +0 -5
  1002. package/cli/service/helpers/utils/patch-entity.js +0 -17
  1003. package/cli/service/helpers/utils/patch-entity.js.map +0 -1
  1004. package/cli/service/helpers/utils/samples-each.d.ts +0 -1
  1005. package/cli/service/helpers/utils/samples-each.js +0 -18
  1006. package/cli/service/helpers/utils/samples-each.js.map +0 -1
  1007. package/cli/service/helpers/utils/translate-entity.d.ts +0 -24
  1008. package/cli/service/helpers/utils/translate-entity.js +0 -99
  1009. package/cli/service/helpers/utils/translate-entity.js.map +0 -1
  1010. package/cli/service/helpers/verification-token-generator/verification-token-generator.d.ts +0 -7
  1011. package/cli/service/helpers/verification-token-generator/verification-token-generator.js +0 -44
  1012. package/cli/service/helpers/verification-token-generator/verification-token-generator.js.map +0 -1
  1013. package/cli/service/services/administrator.service.d.ts +0 -36
  1014. package/cli/service/services/administrator.service.js +0 -230
  1015. package/cli/service/services/administrator.service.js.map +0 -1
  1016. package/cli/service/services/asset.service.d.ts +0 -63
  1017. package/cli/service/services/asset.service.js +0 -478
  1018. package/cli/service/services/asset.service.js.map +0 -1
  1019. package/cli/service/services/channel.service.d.ts +0 -38
  1020. package/cli/service/services/channel.service.js +0 -222
  1021. package/cli/service/services/channel.service.js.map +0 -1
  1022. package/cli/service/services/country.service.d.ts +0 -24
  1023. package/cli/service/services/country.service.js +0 -119
  1024. package/cli/service/services/country.service.js.map +0 -1
  1025. package/cli/service/services/customer.service.d.ts +0 -62
  1026. package/cli/service/services/customer.service.js +0 -662
  1027. package/cli/service/services/customer.service.js.map +0 -1
  1028. package/cli/service/services/facet-value.service.d.ts +0 -32
  1029. package/cli/service/services/facet-value.service.js +0 -151
  1030. package/cli/service/services/facet-value.service.js.map +0 -1
  1031. package/cli/service/services/fulfillment.service.d.ts +0 -32
  1032. package/cli/service/services/fulfillment.service.js +0 -106
  1033. package/cli/service/services/fulfillment.service.js.map +0 -1
  1034. package/cli/service/services/global-settings.service.d.ts +0 -17
  1035. package/cli/service/services/global-settings.service.js +0 -74
  1036. package/cli/service/services/global-settings.service.js.map +0 -1
  1037. package/cli/service/services/history.service.d.ts +0 -139
  1038. package/cli/service/services/history.service.js +0 -143
  1039. package/cli/service/services/history.service.js.map +0 -1
  1040. package/cli/service/services/order.service.d.ts +0 -136
  1041. package/cli/service/services/order.service.js +0 -1158
  1042. package/cli/service/services/order.service.js.map +0 -1
  1043. package/cli/service/services/payment-method.service.d.ts +0 -37
  1044. package/cli/service/services/payment-method.service.js +0 -178
  1045. package/cli/service/services/payment-method.service.js.map +0 -1
  1046. package/cli/service/services/payment.service.d.ts +0 -32
  1047. package/cli/service/services/payment.service.js +0 -216
  1048. package/cli/service/services/payment.service.js.map +0 -1
  1049. package/cli/service/services/product-variant.service.d.ts +0 -70
  1050. package/cli/service/services/product-variant.service.js +0 -560
  1051. package/cli/service/services/product-variant.service.js.map +0 -1
  1052. package/cli/service/services/promotion.service.d.ts +0 -41
  1053. package/cli/service/services/promotion.service.js +0 -219
  1054. package/cli/service/services/promotion.service.js.map +0 -1
  1055. package/cli/service/services/role.service.d.ts +0 -39
  1056. package/cli/service/services/role.service.js +0 -240
  1057. package/cli/service/services/role.service.js.map +0 -1
  1058. package/cli/service/services/session.service.d.ts +0 -38
  1059. package/cli/service/services/session.service.js +0 -228
  1060. package/cli/service/services/session.service.js.map +0 -1
  1061. package/cli/service/services/shipping-method.service.d.ts +0 -36
  1062. package/cli/service/services/shipping-method.service.js +0 -181
  1063. package/cli/service/services/shipping-method.service.js.map +0 -1
  1064. package/cli/service/services/stock-movement.service.d.ts +0 -39
  1065. package/cli/service/services/stock-movement.service.js +0 -214
  1066. package/cli/service/services/stock-movement.service.js.map +0 -1
  1067. package/cli/service/services/tag.service.d.ts +0 -21
  1068. package/cli/service/services/tag.service.js +0 -82
  1069. package/cli/service/services/tag.service.js.map +0 -1
  1070. package/cli/service/services/tax-category.service.d.ts +0 -16
  1071. package/cli/service/services/tax-category.service.js +0 -95
  1072. package/cli/service/services/tax-category.service.js.map +0 -1
  1073. package/cli/service/services/tax-rate.service.d.ts +0 -28
  1074. package/cli/service/services/tax-rate.service.js +0 -134
  1075. package/cli/service/services/tax-rate.service.js.map +0 -1
  1076. package/cli/service/services/user.service.d.ts +0 -37
  1077. package/cli/service/services/user.service.js +0 -287
  1078. package/cli/service/services/user.service.js.map +0 -1
  1079. package/cli/service/services/zone.service.d.ts +0 -26
  1080. package/cli/service/services/zone.service.js +0 -168
  1081. package/cli/service/services/zone.service.js.map +0 -1
@@ -1,87 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
- Object.defineProperty(o, "default", { enumerable: true, value: v });
11
- }) : function(o, v) {
12
- o["default"] = v;
13
- });
14
- var __importStar = (this && this.__importStar) || function (mod) {
15
- if (mod && mod.__esModule) return mod;
16
- var result = {};
17
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
- __setModuleDefault(result, mod);
19
- return result;
20
- };
21
- var __importDefault = (this && this.__importDefault) || function (mod) {
22
- return (mod && mod.__esModule) ? mod : { "default": mod };
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.NativeAuthenticationStrategy = exports.NATIVE_AUTH_STRATEGY_NAME = void 0;
26
- const graphql_tag_1 = __importDefault(require("graphql-tag"));
27
- const transactional_connection_1 = require("../../connection/transactional-connection");
28
- const native_authentication_method_entity_1 = require("../../entity/authentication-method/native-authentication-method.entity");
29
- const user_entity_1 = require("../../entity/user/user.entity");
30
- exports.NATIVE_AUTH_STRATEGY_NAME = 'native';
31
- class NativeAuthenticationStrategy {
32
- constructor() {
33
- this.name = exports.NATIVE_AUTH_STRATEGY_NAME;
34
- }
35
- async init(injector) {
36
- this.connection = injector.get(transactional_connection_1.TransactionalConnection);
37
- const { PasswordCipher } = await Promise.resolve().then(() => __importStar(require('../../service/helpers/password-cipher/password-cipher')));
38
- this.passwordCipher = injector.get(PasswordCipher);
39
- }
40
- defineInputType() {
41
- return graphql_tag_1.default `
42
- input NativeAuthInput {
43
- username: String!
44
- password: String!
45
- }
46
- `;
47
- }
48
- async authenticate(ctx, data) {
49
- const user = await this.getUserFromIdentifier(ctx, data.username);
50
- if (!user) {
51
- return false;
52
- }
53
- const passwordMatch = await this.verifyUserPassword(ctx, user.id, data.password);
54
- if (!passwordMatch) {
55
- return false;
56
- }
57
- return user;
58
- }
59
- getUserFromIdentifier(ctx, identifier) {
60
- return this.connection.getRepository(ctx, user_entity_1.User).findOne({
61
- where: { identifier, deletedAt: null },
62
- relations: ['roles', 'roles.channels'],
63
- });
64
- }
65
- async verifyUserPassword(ctx, userId, password) {
66
- var _a, _b;
67
- const user = await this.connection.getRepository(ctx, user_entity_1.User).findOne(userId, {
68
- relations: ['authenticationMethods'],
69
- });
70
- if (!user) {
71
- return false;
72
- }
73
- const nativeAuthMethod = user.getNativeAuthenticationMethod();
74
- const pw = (_b = (_a = (await this.connection
75
- .getRepository(ctx, native_authentication_method_entity_1.NativeAuthenticationMethod)
76
- .findOne(nativeAuthMethod.id, {
77
- select: ['passwordHash'],
78
- }))) === null || _a === void 0 ? void 0 : _a.passwordHash) !== null && _b !== void 0 ? _b : '';
79
- const passwordMatches = await this.passwordCipher.check(password, pw);
80
- if (!passwordMatches) {
81
- return false;
82
- }
83
- return true;
84
- }
85
- }
86
- exports.NativeAuthenticationStrategy = NativeAuthenticationStrategy;
87
- //# sourceMappingURL=native-authentication-strategy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"native-authentication-strategy.js","sourceRoot":"","sources":["../../../src/config/auth/native-authentication-strategy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEA,8DAA8B;AAI9B,wFAAoF;AACpF,gIAAoH;AACpH,+DAAqD;AASxC,QAAA,yBAAyB,GAAG,QAAQ,CAAC;AAUlD,MAAa,4BAA4B;IAAzC;QACa,SAAI,GAAG,iCAAyB,CAAC;IAiE9C,CAAC;IA5DG,KAAK,CAAC,IAAI,CAAC,QAAkB;QACzB,IAAI,CAAC,UAAU,GAAG,QAAQ,CAAC,GAAG,CAAC,kDAAuB,CAAC,CAAC;QAExD,MAAM,EAAE,cAAc,EAAE,GAAG,wDAAa,uDAAuD,GAAC,CAAC;QACjG,IAAI,C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I,MAAM,IAAI,CAAC,UAAU;aAChB,aAAa,CAAC,GAAG,EAAE,gEAA0B,CAAC;aAC9C,OAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE;YAC1B,MAAM,EAAE,CAAC,cAAc,CAAC;SAC3B,CAAC,CACT,0CAAE,YAAY,mCAAI,EAAE,CAAC;QAC1B,MAAM,eAAe,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;QACtE,IAAI,CAAC,eAAe,EAAE;YAClB,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ;AAlED,oEAkEC"}
@@ -1,5 +0,0 @@
1
- import { InjectableStrategy } from '../../common/types/injectable-strategy';
2
- export interface PasswordHashingStrategy extends InjectableStrategy {
3
- hash(plaintext: string): Promise<string>;
4
- check(plaintext: string, hash: string): Promise<boolean>;
5
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=password-hashing-strategy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"password-hashing-strategy.js","sourceRoot":"","sources":["../../../src/config/auth/password-hashing-strategy.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- import { RequestContext } from '../../api/index';
2
- import { InjectableStrategy } from '../../common/types/injectable-strategy';
3
- export interface PasswordValidationStrategy extends InjectableStrategy {
4
- validate(ctx: RequestContext, password: string): Promise<boolean | string> | boolean | string;
5
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=password-validation-strategy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"password-validation-strategy.js","sourceRoot":"","sources":["../../../src/config/auth/password-validation-strategy.ts"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- import { ConfigArg } from '@vendure/common/lib/generated-types';
2
- import { SelectQueryBuilder } from 'typeorm';
3
- import { ConfigArgs, ConfigArgValues, ConfigurableOperationDef, ConfigurableOperationDefOptions } from '../../common/configurable-operation';
4
- import { ProductVariant } from '../../entity/product-variant/product-variant.entity';
5
- export declare type ApplyCollectionFilterFn<T extends ConfigArgs> = (qb: SelectQueryBuilder<ProductVariant>, args: ConfigArgValues<T>) => SelectQueryBuilder<ProductVariant>;
6
- export interface CollectionFilterConfig<T extends ConfigArgs> extends ConfigurableOperationDefOptions<T> {
7
- apply: ApplyCollectionFilterFn<T>;
8
- }
9
- export declare class CollectionFilter<T extends ConfigArgs = ConfigArgs> extends ConfigurableOperationDef<T> {
10
- private readonly applyFn;
11
- constructor(config: CollectionFilterConfig<T>);
12
- apply(qb: SelectQueryBuilder<ProductVariant>, args: ConfigArg[]): SelectQueryBuilder<ProductVariant>;
13
- }
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CollectionFilter = void 0;
4
- const configurable_operation_1 = require("../../common/configurable-operation");
5
- class CollectionFilter extends configurable_operation_1.ConfigurableOperationDef {
6
- constructor(config) {
7
- super(config);
8
- this.applyFn = config.apply;
9
- }
10
- apply(qb, args) {
11
- return this.applyFn(qb, this.argsArrayToHash(args));
12
- }
13
- }
14
- exports.CollectionFilter = CollectionFilter;
15
- //# sourceMappingURL=collection-filter.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collection-filter.js","sourceRoot":"","sources":["../../../src/config/catalog/collection-filter.ts"],"names":[],"mappings":";;;AAGA,gFAK6C;AAuB7C,MAAa,gBAAoD,SAAQ,iDAA2B;IAGhG,YAAY,MAAiC;QACzC,KAAK,CAAC,MAAM,CAAC,CAAC;QACd,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAChC,CAAC;IAED,KAAK,CAAC,EAAsC,EAAE,IAAiB;QAC3D,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC;IACxD,CAAC;CACJ;AAXD,4CAWC"}
@@ -1,52 +0,0 @@
1
- import { CollectionFilter } from './collection-filter';
2
- export declare const facetValueCollectionFilter: CollectionFilter<{
3
- facetValueIds: {
4
- type: "ID";
5
- list: true;
6
- ui: {
7
- component: string;
8
- };
9
- };
10
- containsAny: {
11
- type: "boolean";
12
- };
13
- }>;
14
- export declare const variantNameCollectionFilter: CollectionFilter<{
15
- operator: {
16
- type: "string";
17
- ui: {
18
- component: string;
19
- options: {
20
- value: string;
21
- }[];
22
- };
23
- };
24
- term: {
25
- type: "string";
26
- };
27
- }>;
28
- export declare const defaultCollectionFilters: (CollectionFilter<{
29
- facetValueIds: {
30
- type: "ID";
31
- list: true;
32
- ui: {
33
- component: string;
34
- };
35
- };
36
- containsAny: {
37
- type: "boolean";
38
- };
39
- }> | CollectionFilter<{
40
- operator: {
41
- type: "string";
42
- ui: {
43
- component: string;
44
- options: {
45
- value: string;
46
- }[];
47
- };
48
- };
49
- term: {
50
- type: "string";
51
- };
52
- }>)[];
@@ -1,112 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.defaultCollectionFilters = exports.variantNameCollectionFilter = exports.facetValueCollectionFilter = void 0;
4
- const generated_types_1 = require("@vendure/common/lib/generated-types");
5
- const nanoid_1 = require("nanoid");
6
- const errors_1 = require("../../common/error/errors");
7
- const product_variant_entity_1 = require("../../entity/product-variant/product-variant.entity");
8
- const collection_filter_1 = require("./collection-filter");
9
- exports.facetValueCollectionFilter = new collection_filter_1.CollectionFilter({
10
- args: {
11
- facetValueIds: {
12
- type: 'ID',
13
- list: true,
14
- ui: {
15
- component: 'facet-value-form-input',
16
- },
17
- },
18
- containsAny: { type: 'boolean' },
19
- },
20
- code: 'facet-value-filter',
21
- description: [{ languageCode: generated_types_1.LanguageCode.en, value: 'Filter by FacetValues' }],
22
- apply: (qb, args) => {
23
- const ids = args.facetValueIds;
24
- if (ids.length) {
25
- const safeIdsConcat = ids.join('_').replace(/-/g, '_');
26
- const idsName = `ids_${safeIdsConcat}`;
27
- const countName = `count_${safeIdsConcat}`;
28
- const productFacetValues = qb.connection
29
- .createQueryBuilder(product_variant_entity_1.ProductVariant, 'product_variant')
30
- .select('product_variant.id', 'variant_id')
31
- .addSelect('facet_value.id', 'facet_value_id')
32
- .leftJoin('product_variant.facetValues', 'facet_value')
33
- .where(`facet_value.id IN (:...${idsName})`);
34
- const variantFacetValues = qb.connection
35
- .createQueryBuilder(product_variant_entity_1.ProductVariant, 'product_variant')
36
- .select('product_variant.id', 'variant_id')
37
- .addSelect('facet_value.id', 'facet_value_id')
38
- .leftJoin('product_variant.product', 'product')
39
- .leftJoin('product.facetValues', 'facet_value')
40
- .where(`facet_value.id IN (:...${idsName})`);
41
- const union = qb.connection
42
- .createQueryBuilder()
43
- .select('union_table.variant_id')
44
- .from(`(${productFacetValues.getQuery()} UNION ${variantFacetValues.getQuery()})`, 'union_table')
45
- .groupBy('variant_id')
46
- .having(`COUNT(*) >= :${countName}`);
47
- const variantIds = qb.connection
48
- .createQueryBuilder()
49
- .select('variant_ids_table.variant_id')
50
- .from(`(${union.getQuery()})`, 'variant_ids_table');
51
- qb.andWhere(`productVariant.id IN (${variantIds.getQuery()})`).setParameters({
52
- [idsName]: ids,
53
- [countName]: args.containsAny ? 1 : ids.length,
54
- });
55
- }
56
- else {
57
- qb.andWhere('1 = 0');
58
- }
59
- return qb;
60
- },
61
- });
62
- exports.variantNameCollectionFilter = new collection_filter_1.CollectionFilter({
63
- args: {
64
- operator: {
65
- type: 'string',
66
- ui: {
67
- component: 'select-form-input',
68
- options: [
69
- { value: 'startsWith' },
70
- { value: 'endsWith' },
71
- { value: 'contains' },
72
- { value: 'doesNotContain' },
73
- ],
74
- },
75
- },
76
- term: { type: 'string' },
77
- },
78
- code: 'variant-name-filter',
79
- description: [{ languageCode: generated_types_1.LanguageCode.en, value: 'Filter by ProductVariant name' }],
80
- apply: (qb, args) => {
81
- const translationAlias = `variant_name_filter_translation`;
82
- const nanoid = nanoid_1.customAlphabet('123456789abcdefghijklmnopqrstuvwxyz', 6);
83
- const termName = `term_${nanoid()}`;
84
- const hasJoinOnTranslations = !!qb.expressionMap.joinAttributes.find(ja => ja.entityOrProperty === 'productVariant.translations');
85
- if (!hasJoinOnTranslations) {
86
- qb.leftJoin('productVariant.translations', translationAlias);
87
- }
88
- const LIKE = qb.connection.options.type === 'postgres' ? 'ILIKE' : 'LIKE';
89
- switch (args.operator) {
90
- case 'contains':
91
- return qb.andWhere(`${translationAlias}.name ${LIKE} :${termName}`, {
92
- [termName]: `%${args.term}%`,
93
- });
94
- case 'doesNotContain':
95
- return qb.andWhere(`${translationAlias}.name NOT ${LIKE} :${termName}`, {
96
- [termName]: `%${args.term}%`,
97
- });
98
- case 'startsWith':
99
- return qb.andWhere(`${translationAlias}.name ${LIKE} :${termName}`, {
100
- [termName]: `${args.term}%`,
101
- });
102
- case 'endsWith':
103
- return qb.andWhere(`${translationAlias}.name ${LIKE} :${termName}`, {
104
- [termName]: `%${args.term}`,
105
- });
106
- default:
107
- throw new errors_1.UserInputError(`${args.operator} is not a valid operator`);
108
- }
109
- },
110
- });
111
- exports.defaultCollectionFilters = [exports.facetValueCollectionFilter, exports.variantNameCollectionFilter];
112
- //# sourceMappingURL=default-collection-filters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-collection-filters.js","sourceRoot":"","sources":["../../../src/config/catalog/default-collection-filters.ts"],"names":[],"mappings":";;;AAAA,yEAAmE;AACnE,mCAAwC;AAExC,sDAA2D;AAC3D,gGAAqF;AAErF,2DAAuD;AAK1C,QAAA,0BAA0B,GAAG,IAAI,oCAAgB,CAAC;IAC3D,IAAI,EAAE;QACF,aAAa,EAAE;YACX,IAAI,EAAE,IAAI;YACV,IAAI,EAAE,IAAI;YACV,EAAE,EAAE;gBACA,SAAS,EAAE,wBAAwB;aACtC;SACJ;QACD,WAAW,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;KACnC;IACD,IA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YACP,KAAK,UAAU;gBACX,OAAO,EAAE,CAAC,QAAQ,CAAC,GAAG,gBAAgB,SAAS,IAAI,KAAK,QAAQ,EAAE,EAAE;oBAChE,CAAC,QAAQ,CAAC,EAAE,IAAI,IAAI,CAAC,IAAI,EAAE;iBAC9B,CAAC,CAAC;YACP;gBACI,MAAM,IAAI,uBAAc,CAAC,GAAG,IAAI,CAAC,QAAQ,0BAA0B,CAAC,CAAC;SAC5E;IACL,CAAC;CACJ,CAAC,CAAC;AAEU,QAAA,wBAAwB,GAAG,CAAC,kCAA0B,EAAE,mCAA2B,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import { Injector } from '../../common/injector';
2
- import { PriceCalculationResult } from '../../common/types/common-types';
3
- import { ProductVariantPriceCalculationArgs, ProductVariantPriceCalculationStrategy } from './product-variant-price-calculation-strategy';
4
- export declare class DefaultProductVariantPriceCalculationStrategy implements ProductVariantPriceCalculationStrategy {
5
- private taxRateService;
6
- init(injector: Injector): void;
7
- calculate(args: ProductVariantPriceCalculationArgs): Promise<PriceCalculationResult>;
8
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DefaultProductVariantPriceCalculationStrategy = void 0;
4
- const utils_1 = require("../../common/utils");
5
- const tax_rate_service_1 = require("../../service/services/tax-rate.service");
6
- class DefaultProductVariantPriceCalculationStrategy {
7
- init(injector) {
8
- this.taxRateService = injector.get(tax_rate_service_1.TaxRateService);
9
- }
10
- async calculate(args) {
11
- const { inputPrice, activeTaxZone, ctx, taxCategory } = args;
12
- let price = inputPrice;
13
- let priceIncludesTax = false;
14
- if (ctx.channel.pricesIncludeTax) {
15
- const isDefaultZone = utils_1.idsAreEqual(activeTaxZone.id, ctx.channel.defaultTaxZone.id);
16
- if (isDefaultZone) {
17
- priceIncludesTax = true;
18
- }
19
- else {
20
- const taxRateForDefaultZone = await this.taxRateService.getApplicableTaxRate(ctx, ctx.channel.defaultTaxZone, taxCategory);
21
- price = taxRateForDefaultZone.netPriceOf(inputPrice);
22
- }
23
- }
24
- return {
25
- price,
26
- priceIncludesTax,
27
- };
28
- }
29
- }
30
- exports.DefaultProductVariantPriceCalculationStrategy = DefaultProductVariantPriceCalculationStrategy;
31
- //# sourceMappingURL=default-product-variant-price-calculation-strategy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-product-variant-price-calculation-strategy.js","sourceRoot":"","sources":["../../../src/config/catalog/default-product-variant-price-calculation-strategy.ts"],"names":[],"mappings":";;;AAEA,8CAAiD;AACjD,8EAAyE;AAazE,MAAa,6CAA6C;IAGtD,IAAI,CAAC,QAAkB;QACnB,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,GAAG,CAAC,iCAAc,CAAC,CAAC;IACvD,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,IAAwC;QACpD,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;QAC7D,IAAI,KAAK,GAAG,UAAU,CAAC;QACvB,IAAI,gBAAgB,GAAG,KAAK,CAAC;QAE7B,IAAI,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC9B,MAAM,aAAa,GAAG,mBAAW,CAAC,aAAa,CAAC,EAAE,EAAE,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YACnF,IAAI,aAAa,EAAE;gBACf,gBAAgB,GAAG,IAAI,CAAC;aAC3B;iBAAM;gBACH,MAAM,qBAAqB,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,oBAAoB,CACxE,GAAG,EACH,GAAG,CAAC,OAAO,CAAC,cAAc,EAC1B,WAAW,CACd,CAAC;gBACF,KAAK,GAAG,qBAAqB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;aACxD;SACJ;QAED,OAAO;YACH,KAAK;YACL,gBAAgB;SACnB,CAAC;IACN,CAAC;CACJ;AA/BD,sGA+BC"}
@@ -1,8 +0,0 @@
1
- import { RequestContext } from '../../api/common/request-context';
2
- import { ProductVariant } from '../../entity/product-variant/product-variant.entity';
3
- import { StockDisplayStrategy } from './stock-display-strategy';
4
- export declare class DefaultStockDisplayStrategy implements StockDisplayStrategy {
5
- private lowStockLevel;
6
- constructor(lowStockLevel?: number);
7
- getStockLevel(ctx: RequestContext, productVariant: ProductVariant, saleableStockLevel: number): string;
8
- }
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DefaultStockDisplayStrategy = void 0;
4
- class DefaultStockDisplayStrategy {
5
- constructor(lowStockLevel = 2) {
6
- this.lowStockLevel = lowStockLevel;
7
- }
8
- getStockLevel(ctx, productVariant, saleableStockLevel) {
9
- return saleableStockLevel < 1
10
- ? 'OUT_OF_STOCK'
11
- : saleableStockLevel <= this.lowStockLevel
12
- ? 'LOW_STOCK'
13
- : 'IN_STOCK';
14
- }
15
- }
16
- exports.DefaultStockDisplayStrategy = DefaultStockDisplayStrategy;
17
- //# sourceMappingURL=default-stock-display-strategy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"default-stock-display-strategy.js","sourceRoot":"","sources":["../../../src/config/catalog/default-stock-display-strategy.ts"],"names":[],"mappings":";;;AAaA,MAAa,2BAA2B;IACpC,YAAoB,gBAAwB,CAAC;QAAzB,kBAAa,GAAb,aAAa,CAAY;IAAG,CAAC;IACjD,aAAa,CAAC,GAAmB,EAAE,cAA8B,EAAE,kBAA0B;QACzF,OAAO,kBAAkB,GAAG,CAAC;YACzB,CAAC,CAAC,cAAc;YAChB,CAAC,CAAC,kBAAkB,IAAI,IAAI,CAAC,aAAa;gBAC1C,CAAC,CAAC,WAAW;gBACb,CAAC,CAAC,UAAU,CAAC;IACrB,CAAC;CACJ;AATD,kEASC"}
@@ -1,13 +0,0 @@
1
- import { RequestContext } from '../../api/common/request-context';
2
- import { PriceCalculationResult } from '../../common/types/common-types';
3
- import { InjectableStrategy } from '../../common/types/injectable-strategy';
4
- import { TaxCategory, Zone } from '../../entity/index';
5
- export interface ProductVariantPriceCalculationStrategy extends InjectableStrategy {
6
- calculate(args: ProductVariantPriceCalculationArgs): Promise<PriceCalculationResult>;
7
- }
8
- export interface ProductVariantPriceCalculationArgs {
9
- inputPrice: number;
10
- taxCategory: TaxCategory;
11
- activeTaxZone: Zone;
12
- ctx: RequestContext;
13
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=product-variant-price-calculation-strategy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"product-variant-price-calculation-strategy.js","sourceRoot":"","sources":["../../../src/config/catalog/product-variant-price-calculation-strategy.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import { RequestContext } from '../../api/common/request-context';
2
- import { InjectableStrategy } from '../../common/types/injectable-strategy';
3
- import { ProductVariant } from '../../entity/product-variant/product-variant.entity';
4
- export interface StockDisplayStrategy extends InjectableStrategy {
5
- getStockLevel(ctx: RequestContext, productVariant: ProductVariant, saleableStockLevel: number): string | Promise<string>;
6
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=stock-display-strategy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"stock-display-strategy.js","sourceRoot":"","sources":["../../../src/config/catalog/stock-display-strategy.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { PartialVendureConfig, RuntimeVendureConfig } from './vendure-config';
2
- export declare function setConfig(userConfig: PartialVendureConfig): void;
3
- export declare function getConfig(): Readonly<RuntimeVendureConfig>;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getConfig = exports.setConfig = void 0;
4
- const default_config_1 = require("./default-config");
5
- const merge_config_1 = require("./merge-config");
6
- let activeConfig = default_config_1.defaultConfig;
7
- function setConfig(userConfig) {
8
- activeConfig = merge_config_1.mergeConfig(activeConfig, userConfig);
9
- }
10
- exports.setConfig = setConfig;
11
- function getConfig() {
12
- return activeConfig;
13
- }
14
- exports.getConfig = getConfig;
15
- //# sourceMappingURL=config-helpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config-helpers.js","sourceRoot":"","sources":["../../src/config/config-helpers.ts"],"names":[],"mappings":";;;AAAA,qDAAiD;AACjD,iDAA6C;AAG7C,IAAI,YAAY,GAAG,8BAAa,CAAC;AAMjC,SAAgB,SAAS,CAAC,UAAgC;IACtD,YAAY,GAAG,0BAAW,CAAC,YAAY,EAAE,UAAU,CAAC,CAAC;AACzD,CAAC;AAFD,8BAEC;AAOD,SAAgB,SAAS;IACrB,OAAO,YAAY,CAAC;AACxB,CAAC;AAFD,8BAEC"}
@@ -1,16 +0,0 @@
1
- import { OnApplicationBootstrap, OnApplicationShutdown } from '@nestjs/common';
2
- import { ModuleRef } from '@nestjs/core';
3
- import { ConfigService } from './config.service';
4
- export declare class ConfigModule implements OnApplicationBootstrap, OnApplicationShutdown {
5
- private configService;
6
- private moduleRef;
7
- constructor(configService: ConfigService, moduleRef: ModuleRef);
8
- onApplicationBootstrap(): Promise<void>;
9
- onApplicationShutdown(signal?: string): Promise<void>;
10
- private initInjectableStrategies;
11
- private destroyInjectableStrategies;
12
- private initConfigurableOperations;
13
- private destroyConfigurableOperations;
14
- private getInjectableStrategies;
15
- private getConfigurableOperations;
16
- }
@@ -1,120 +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.ConfigModule = void 0;
13
- const common_1 = require("@nestjs/common");
14
- const core_1 = require("@nestjs/core");
15
- const shared_utils_1 = require("@vendure/common/lib/shared-utils");
16
- const injector_1 = require("../common/injector");
17
- const config_service_1 = require("./config.service");
18
- let ConfigModule = class ConfigModule {
19
- constructor(configService, moduleRef) {
20
- this.configService = configService;
21
- this.moduleRef = moduleRef;
22
- }
23
- async onApplicationBootstrap() {
24
- await this.initInjectableStrategies();
25
- await this.initConfigurableOperations();
26
- }
27
- async onApplicationShutdown(signal) {
28
- await this.destroyInjectableStrategies();
29
- await this.destroyConfigurableOperations();
30
- }
31
- async initInjectableStrategies() {
32
- const injector = new injector_1.Injector(this.moduleRef);
33
- for (const strategy of this.getInjectableStrategies()) {
34
- if (typeof strategy.init === 'function') {
35
- await strategy.init(injector);
36
- }
37
- }
38
- }
39
- async destroyInjectableStrategies() {
40
- for (const strategy of this.getInjectableStrategies()) {
41
- if (typeof strategy.destroy === 'function') {
42
- await strategy.destroy();
43
- }
44
- }
45
- }
46
- async initConfigurableOperations() {
47
- const injector = new injector_1.Injector(this.moduleRef);
48
- for (const operation of this.getConfigurableOperations()) {
49
- await operation.init(injector);
50
- }
51
- }
52
- async destroyConfigurableOperations() {
53
- for (const operation of this.getConfigurableOperations()) {
54
- await operation.destroy();
55
- }
56
- }
57
- getInjectableStrategies() {
58
- const { assetNamingStrategy, assetPreviewStrategy, assetStorageStrategy } = this.configService.assetOptions;
59
- const { productVariantPriceCalculationStrategy, stockDisplayStrategy } = this.configService.catalogOptions;
60
- const { adminAuthenticationStrategy, shopAuthenticationStrategy, sessionCacheStrategy, passwordHashingStrategy, passwordValidationStrategy, } = this.configService.authOptions;
61
- const { taxZoneStrategy } = this.configService.taxOptions;
62
- const { jobQueueStrategy, jobBufferStorageStrategy } = this.configService.jobQueueOptions;
63
- const { mergeStrategy, checkoutMergeStrategy, orderItemPriceCalculationStrategy, process, orderCodeStrategy, orderByCodeAccessStrategy, stockAllocationStrategy, } = this.configService.orderOptions;
64
- const { customFulfillmentProcess } = this.configService.shippingOptions;
65
- const { customPaymentProcess } = this.configService.paymentOptions;
66
- const { entityIdStrategy: entityIdStrategyDeprecated } = this.configService;
67
- const { entityIdStrategy } = this.configService.entityOptions;
68
- return [
69
- ...adminAuthenticationStrategy,
70
- ...shopAuthenticationStrategy,
71
- sessionCacheStrategy,
72
- passwordHashingStrategy,
73
- passwordValidationStrategy,
74
- assetNamingStrategy,
75
- assetPreviewStrategy,
76
- assetStorageStrategy,
77
- taxZoneStrategy,
78
- jobQueueStrategy,
79
- jobBufferStorageStrategy,
80
- mergeStrategy,
81
- checkoutMergeStrategy,
82
- orderCodeStrategy,
83
- orderByCodeAccessStrategy,
84
- entityIdStrategyDeprecated,
85
- ...[entityIdStrategy].filter(shared_utils_1.notNullOrUndefined),
86
- productVariantPriceCalculationStrategy,
87
- orderItemPriceCalculationStrategy,
88
- ...process,
89
- ...customFulfillmentProcess,
90
- ...customPaymentProcess,
91
- stockAllocationStrategy,
92
- stockDisplayStrategy,
93
- ];
94
- }
95
- getConfigurableOperations() {
96
- const { paymentMethodHandlers, paymentMethodEligibilityCheckers } = this.configService.paymentOptions;
97
- const { collectionFilters } = this.configService.catalogOptions;
98
- const { promotionActions, promotionConditions } = this.configService.promotionOptions;
99
- const { shippingCalculators, shippingEligibilityCheckers, fulfillmentHandlers } = this.configService.shippingOptions;
100
- return [
101
- ...(paymentMethodEligibilityCheckers || []),
102
- ...paymentMethodHandlers,
103
- ...collectionFilters,
104
- ...(promotionActions || []),
105
- ...(promotionConditions || []),
106
- ...(shippingCalculators || []),
107
- ...(shippingEligibilityCheckers || []),
108
- ...(fulfillmentHandlers || []),
109
- ];
110
- }
111
- };
112
- ConfigModule = __decorate([
113
- common_1.Module({
114
- providers: [config_service_1.ConfigService],
115
- exports: [config_service_1.ConfigService],
116
- }),
117
- __metadata("design:paramtypes", [config_service_1.ConfigService, core_1.ModuleRef])
118
- ], ConfigModule);
119
- exports.ConfigModule = ConfigModule;
120
- //# sourceMappingURL=config.module.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"config.module.js","sourceRoot":"","sources":["../../src/config/config.module.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAuF;AACvF,uCAAyC;AACzC,mEAAsE;AAGtE,iDAA8C;AAG9C,qDAAiD;AAMjD,IAAa,YAAY,GAAzB,MAAa,YAAY;IACrB,YAAoB,aAA4B,EAAU,SAAoB;QAA1D,kBAAa,GAAb,aAAa,CAAe;QAAU,cAAS,GAAT,SAAS,CAAW;IAAG,CAAC;IAElF,KAAK,CAAC,sBAAsB;QACxB,MAAM,IAAI,CAAC,wBAAwB,EAAE,CAAC;QACtC,MAAM,IAAI,CAAC,0BAA0B,EAAE,CAAC;IAC5C,CAAC;IAED,KAAK,CAAC,qBAAqB,CAAC,MAAe;QACvC,MAAM,IAAI,CAAC,2BAA2B,EAAE,CAAC;QACzC,MAAM,IAAI,CAAC,6BAA6B,EAAE,CAAC;IAC/C,CAAC;IAEO,KAAK,CAAC,wBAAwB;QAClC,MAAM,QAAQ,GAAG,IAAI,mBAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC9C,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,uBAAuB,EAAE,EAAE;YACnD,IAAI,OAAO,QAAQ,CAAC,IAAI,KAAK,UAAU,EAAE;gBACrC,MAAM,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aACjC;SACJ;IACL,CAAC;IAEO,KAAK,CAAC,2BAA2B;QACrC,KAAK,MAAM,QAAQ,IAAI,IAAI,CAAC,uBAAuB,EAAE,EAAE;YACnD,IAAI,OAAO,QAAQ,CAAC,OAAO,KAAK,UAAU,EAAE;gBACxC,MAAM,QAAQ,CAAC,OAAO,EAAE,CAAC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