@vendure/core 1.7.1 → 1.7.3

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 (1084) 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/order/order.entity.js +5 -3
  39. package/dist/entity/order/order.entity.js.map +1 -1
  40. package/dist/entity/product/product-asset.entity.js +2 -4
  41. package/dist/entity/product/product-asset.entity.js.map +1 -1
  42. package/dist/entity/product-variant/product-variant-asset.entity.js +2 -4
  43. package/dist/entity/product-variant/product-variant-asset.entity.js.map +1 -1
  44. package/dist/entity/role/role.entity.js +1 -3
  45. package/dist/entity/role/role.entity.js.map +1 -1
  46. package/dist/entity/tag/tag.entity.js +1 -3
  47. package/dist/entity/tag/tag.entity.js.map +1 -1
  48. package/dist/entity/user/user.entity.js +1 -3
  49. package/dist/entity/user/user.entity.js.map +1 -1
  50. package/dist/entity/zone/zone.entity.js +1 -3
  51. package/dist/entity/zone/zone.entity.js.map +1 -1
  52. package/dist/job-queue/in-memory-job-queue-strategy.d.ts +1 -1
  53. package/dist/plugin/default-search-plugin/fulltext-search.service.js +3 -0
  54. package/dist/plugin/default-search-plugin/fulltext-search.service.js.map +1 -1
  55. package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +10 -5
  56. package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js.map +1 -1
  57. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js +6 -6
  58. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js.map +1 -1
  59. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.js +4 -4
  60. package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js +4 -4
  61. package/dist/service/services/collection.service.js +3 -0
  62. package/dist/service/services/collection.service.js.map +1 -1
  63. package/dist/service/services/customer-group.service.js +1 -0
  64. package/dist/service/services/customer-group.service.js.map +1 -1
  65. package/dist/service/services/customer.service.d.ts +9 -0
  66. package/dist/service/services/customer.service.js +31 -0
  67. package/dist/service/services/customer.service.js.map +1 -1
  68. package/dist/service/services/product-variant.service.js +1 -12
  69. package/dist/service/services/product-variant.service.js.map +1 -1
  70. package/package.json +3 -3
  71. package/cli/api/common/extract-session-token.d.ts +0 -3
  72. package/cli/api/common/extract-session-token.js +0 -35
  73. package/cli/api/common/extract-session-token.js.map +0 -1
  74. package/cli/api/common/get-api-type.d.ts +0 -3
  75. package/cli/api/common/get-api-type.js +0 -12
  76. package/cli/api/common/get-api-type.js.map +0 -1
  77. package/cli/api/common/graphql-value-transformer.d.ts +0 -30
  78. package/cli/api/common/graphql-value-transformer.js +0 -199
  79. package/cli/api/common/graphql-value-transformer.js.map +0 -1
  80. package/cli/api/common/id-codec.d.ts +0 -11
  81. package/cli/api/common/id-codec.js +0 -94
  82. package/cli/api/common/id-codec.js.map +0 -1
  83. package/cli/api/common/id-codec.service.d.ts +0 -7
  84. package/cli/api/common/id-codec.service.js +0 -33
  85. package/cli/api/common/id-codec.service.js.map +0 -1
  86. package/cli/api/common/parse-context.d.ts +0 -16
  87. package/cli/api/common/parse-context.js +0 -39
  88. package/cli/api/common/parse-context.js.map +0 -1
  89. package/cli/api/common/request-context.d.ts +0 -55
  90. package/cli/api/common/request-context.js +0 -143
  91. package/cli/api/common/request-context.js.map +0 -1
  92. package/cli/api/common/set-session-token.d.ts +0 -9
  93. package/cli/api/common/set-session-token.js +0 -27
  94. package/cli/api/common/set-session-token.js.map +0 -1
  95. package/cli/api/decorators/allow.decorator.d.ts +0 -3
  96. package/cli/api/decorators/allow.decorator.js +0 -8
  97. package/cli/api/decorators/allow.decorator.js.map +0 -1
  98. package/cli/api/decorators/api.decorator.d.ts +0 -1
  99. package/cli/api/decorators/api.decorator.js +0 -10
  100. package/cli/api/decorators/api.decorator.js.map +0 -1
  101. package/cli/api/decorators/request-context.decorator.d.ts +0 -1
  102. package/cli/api/decorators/request-context.decorator.js +0 -14
  103. package/cli/api/decorators/request-context.decorator.js.map +0 -1
  104. package/cli/api/decorators/transaction.decorator.d.ts +0 -3
  105. package/cli/api/decorators/transaction.decorator.js +0 -11
  106. package/cli/api/decorators/transaction.decorator.js.map +0 -1
  107. package/cli/api/index.d.ts +0 -11
  108. package/cli/api/index.js +0 -23
  109. package/cli/api/index.js.map +0 -1
  110. package/cli/api/middleware/auth-guard.d.ts +0 -21
  111. package/cli/api/middleware/auth-guard.js +0 -151
  112. package/cli/api/middleware/auth-guard.js.map +0 -1
  113. package/cli/api/middleware/exception-logger.filter.d.ts +0 -6
  114. package/cli/api/middleware/exception-logger.filter.js +0 -82
  115. package/cli/api/middleware/exception-logger.filter.js.map +0 -1
  116. package/cli/api/middleware/id-interceptor.d.ts +0 -12
  117. package/cli/api/middleware/id-interceptor.js +0 -56
  118. package/cli/api/middleware/id-interceptor.js.map +0 -1
  119. package/cli/api/middleware/transaction-interceptor.d.ts +0 -12
  120. package/cli/api/middleware/transaction-interceptor.js +0 -46
  121. package/cli/api/middleware/transaction-interceptor.js.map +0 -1
  122. package/cli/api/resolvers/admin/search.resolver.d.ts +0 -17
  123. package/cli/api/resolvers/admin/search.resolver.js +0 -81
  124. package/cli/api/resolvers/admin/search.resolver.js.map +0 -1
  125. package/cli/cache/index.d.ts +0 -1
  126. package/cli/cache/index.js +0 -14
  127. package/cli/cache/index.js.map +0 -1
  128. package/cli/cache/request-context-cache.service.d.ts +0 -9
  129. package/cli/cache/request-context-cache.service.js +0 -39
  130. package/cli/cache/request-context-cache.service.js.map +0 -1
  131. package/cli/cli/cli-utils.d.ts +0 -1
  132. package/cli/cli/cli-utils.js +0 -8
  133. package/cli/cli/cli-utils.js.map +0 -1
  134. package/cli/cli/index.d.ts +0 -1
  135. package/cli/cli/index.js +0 -14
  136. package/cli/cli/index.js.map +0 -1
  137. package/cli/cli/populate.d.ts +0 -5
  138. package/cli/cli/populate.js +0 -106
  139. package/cli/cli/populate.js.map +0 -1
  140. package/cli/cli/vendure-cli.d.ts +0 -2
  141. package/cli/cli/vendure-cli.js +0 -119
  142. package/cli/cli/vendure-cli.js.map +0 -1
  143. package/cli/common/async-queue.d.ts +0 -17
  144. package/cli/common/async-queue.js +0 -56
  145. package/cli/common/async-queue.js.map +0 -1
  146. package/cli/common/calculated-decorator.d.ts +0 -12
  147. package/cli/common/calculated-decorator.js +0 -22
  148. package/cli/common/calculated-decorator.js.map +0 -1
  149. package/cli/common/configurable-operation.d.ts +0 -53
  150. package/cli/common/configurable-operation.js +0 -96
  151. package/cli/common/configurable-operation.js.map +0 -1
  152. package/cli/common/constants.d.ts +0 -7
  153. package/cli/common/constants.js +0 -66
  154. package/cli/common/constants.js.map +0 -1
  155. package/cli/common/error/error-result.d.ts +0 -8
  156. package/cli/common/error/error-result.js +0 -11
  157. package/cli/common/error/error-result.js.map +0 -1
  158. package/cli/common/error/errors.d.ts +0 -31
  159. package/cli/common/error/errors.js +0 -48
  160. package/cli/common/error/errors.js.map +0 -1
  161. package/cli/common/error/generated-graphql-admin-errors.d.ts +0 -309
  162. package/cli/common/error/generated-graphql-admin-errors.js +0 -446
  163. package/cli/common/error/generated-graphql-admin-errors.js.map +0 -1
  164. package/cli/common/error/generated-graphql-shop-errors.d.ts +0 -254
  165. package/cli/common/error/generated-graphql-shop-errors.js +0 -370
  166. package/cli/common/error/generated-graphql-shop-errors.js.map +0 -1
  167. package/cli/common/finite-state-machine/finite-state-machine.d.ts +0 -14
  168. package/cli/common/finite-state-machine/finite-state-machine.js +0 -55
  169. package/cli/common/finite-state-machine/finite-state-machine.js.map +0 -1
  170. package/cli/common/finite-state-machine/merge-transition-definitions.d.ts +0 -2
  171. package/cli/common/finite-state-machine/merge-transition-definitions.js +0 -27
  172. package/cli/common/finite-state-machine/merge-transition-definitions.js.map +0 -1
  173. package/cli/common/finite-state-machine/types.d.ts +0 -16
  174. package/cli/common/finite-state-machine/types.js +0 -3
  175. package/cli/common/finite-state-machine/types.js.map +0 -1
  176. package/cli/common/finite-state-machine/validate-transition-definition.d.ts +0 -5
  177. package/cli/common/finite-state-machine/validate-transition-definition.js +0 -41
  178. package/cli/common/finite-state-machine/validate-transition-definition.js.map +0 -1
  179. package/cli/common/generate-public-id.d.ts +0 -1
  180. package/cli/common/generate-public-id.js +0 -10
  181. package/cli/common/generate-public-id.js.map +0 -1
  182. package/cli/common/index.d.ts +0 -15
  183. package/cli/common/index.js +0 -28
  184. package/cli/common/index.js.map +0 -1
  185. package/cli/common/injector.d.ts +0 -8
  186. package/cli/common/injector.js +0 -16
  187. package/cli/common/injector.js.map +0 -1
  188. package/cli/common/permission-definition.d.ts +0 -23
  189. package/cli/common/permission-definition.js +0 -53
  190. package/cli/common/permission-definition.js.map +0 -1
  191. package/cli/common/self-refreshing-cache.d.ts +0 -15
  192. package/cli/common/self-refreshing-cache.js +0 -56
  193. package/cli/common/self-refreshing-cache.js.map +0 -1
  194. package/cli/common/tax-utils.d.ts +0 -4
  195. package/cli/common/tax-utils.js +0 -20
  196. package/cli/common/tax-utils.js.map +0 -1
  197. package/cli/common/ttl-cache.d.ts +0 -13
  198. package/cli/common/ttl-cache.js +0 -48
  199. package/cli/common/ttl-cache.js.map +0 -1
  200. package/cli/common/types/adjustment-source.d.ts +0 -14
  201. package/cli/common/types/adjustment-source.js +0 -18
  202. package/cli/common/types/adjustment-source.js.map +0 -1
  203. package/cli/common/types/common-types.d.ts +0 -97
  204. package/cli/common/types/common-types.js +0 -3
  205. package/cli/common/types/common-types.js.map +0 -1
  206. package/cli/common/types/entity-relation-paths.d.ts +0 -16
  207. package/cli/common/types/entity-relation-paths.js +0 -3
  208. package/cli/common/types/entity-relation-paths.js.map +0 -1
  209. package/cli/common/types/injectable-strategy.d.ts +0 -5
  210. package/cli/common/types/injectable-strategy.js +0 -3
  211. package/cli/common/types/injectable-strategy.js.map +0 -1
  212. package/cli/common/types/locale-types.d.ts +0 -43
  213. package/cli/common/types/locale-types.js +0 -3
  214. package/cli/common/types/locale-types.js.map +0 -1
  215. package/cli/common/utils.d.ts +0 -11
  216. package/cli/common/utils.js +0 -66
  217. package/cli/common/utils.js.map +0 -1
  218. package/cli/config/asset-naming-strategy/asset-naming-strategy.d.ts +0 -6
  219. package/cli/config/asset-naming-strategy/asset-naming-strategy.js +0 -3
  220. package/cli/config/asset-naming-strategy/asset-naming-strategy.js.map +0 -1
  221. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.d.ts +0 -11
  222. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.js +0 -55
  223. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.js.map +0 -1
  224. package/cli/config/asset-preview-strategy/asset-preview-strategy.d.ts +0 -6
  225. package/cli/config/asset-preview-strategy/asset-preview-strategy.js +0 -3
  226. package/cli/config/asset-preview-strategy/asset-preview-strategy.js.map +0 -1
  227. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.d.ts +0 -6
  228. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.js +0 -11
  229. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.js.map +0 -1
  230. package/cli/config/asset-storage-strategy/asset-storage-strategy.d.ts +0 -13
  231. package/cli/config/asset-storage-strategy/asset-storage-strategy.js +0 -3
  232. package/cli/config/asset-storage-strategy/asset-storage-strategy.js.map +0 -1
  233. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.d.ts +0 -13
  234. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.js +0 -30
  235. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.js.map +0 -1
  236. package/cli/config/auth/authentication-strategy.d.ts +0 -10
  237. package/cli/config/auth/authentication-strategy.js +0 -3
  238. package/cli/config/auth/authentication-strategy.js.map +0 -1
  239. package/cli/config/auth/bcrypt-password-hashing-strategy.d.ts +0 -7
  240. package/cli/config/auth/bcrypt-password-hashing-strategy.js +0 -21
  241. package/cli/config/auth/bcrypt-password-hashing-strategy.js.map +0 -1
  242. package/cli/config/auth/default-password-validation-strategy.d.ts +0 -10
  243. package/cli/config/auth/default-password-validation-strategy.js +0 -24
  244. package/cli/config/auth/default-password-validation-strategy.js.map +0 -1
  245. package/cli/config/auth/native-authentication-strategy.d.ts +0 -21
  246. package/cli/config/auth/native-authentication-strategy.js +0 -87
  247. package/cli/config/auth/native-authentication-strategy.js.map +0 -1
  248. package/cli/config/auth/password-hashing-strategy.d.ts +0 -5
  249. package/cli/config/auth/password-hashing-strategy.js +0 -3
  250. package/cli/config/auth/password-hashing-strategy.js.map +0 -1
  251. package/cli/config/auth/password-validation-strategy.d.ts +0 -5
  252. package/cli/config/auth/password-validation-strategy.js +0 -3
  253. package/cli/config/auth/password-validation-strategy.js.map +0 -1
  254. package/cli/config/catalog/collection-filter.d.ts +0 -13
  255. package/cli/config/catalog/collection-filter.js +0 -15
  256. package/cli/config/catalog/collection-filter.js.map +0 -1
  257. package/cli/config/catalog/default-collection-filters.d.ts +0 -52
  258. package/cli/config/catalog/default-collection-filters.js +0 -112
  259. package/cli/config/catalog/default-collection-filters.js.map +0 -1
  260. package/cli/config/catalog/default-product-variant-price-calculation-strategy.d.ts +0 -8
  261. package/cli/config/catalog/default-product-variant-price-calculation-strategy.js +0 -31
  262. package/cli/config/catalog/default-product-variant-price-calculation-strategy.js.map +0 -1
  263. package/cli/config/catalog/default-stock-display-strategy.d.ts +0 -8
  264. package/cli/config/catalog/default-stock-display-strategy.js +0 -17
  265. package/cli/config/catalog/default-stock-display-strategy.js.map +0 -1
  266. package/cli/config/catalog/product-variant-price-calculation-strategy.d.ts +0 -13
  267. package/cli/config/catalog/product-variant-price-calculation-strategy.js +0 -3
  268. package/cli/config/catalog/product-variant-price-calculation-strategy.js.map +0 -1
  269. package/cli/config/catalog/stock-display-strategy.d.ts +0 -6
  270. package/cli/config/catalog/stock-display-strategy.js +0 -3
  271. package/cli/config/catalog/stock-display-strategy.js.map +0 -1
  272. package/cli/config/config-helpers.d.ts +0 -3
  273. package/cli/config/config-helpers.js +0 -15
  274. package/cli/config/config-helpers.js.map +0 -1
  275. package/cli/config/config.module.d.ts +0 -16
  276. package/cli/config/config.module.js +0 -120
  277. package/cli/config/config.module.js.map +0 -1
  278. package/cli/config/config.service.d.ts +0 -30
  279. package/cli/config/config.service.js +0 -86
  280. package/cli/config/config.service.js.map +0 -1
  281. package/cli/config/custom-field/custom-field-types.d.ts +0 -65
  282. package/cli/config/custom-field/custom-field-types.js +0 -3
  283. package/cli/config/custom-field/custom-field-types.js.map +0 -1
  284. package/cli/config/default-config.d.ts +0 -2
  285. package/cli/config/default-config.js +0 -174
  286. package/cli/config/default-config.js.map +0 -1
  287. package/cli/config/entity-id-strategy/auto-increment-id-strategy.d.ts +0 -6
  288. package/cli/config/entity-id-strategy/auto-increment-id-strategy.js +0 -17
  289. package/cli/config/entity-id-strategy/auto-increment-id-strategy.js.map +0 -1
  290. package/cli/config/entity-id-strategy/entity-id-strategy.d.ts +0 -7
  291. package/cli/config/entity-id-strategy/entity-id-strategy.js +0 -3
  292. package/cli/config/entity-id-strategy/entity-id-strategy.js.map +0 -1
  293. package/cli/config/entity-id-strategy/uuid-id-strategy.d.ts +0 -6
  294. package/cli/config/entity-id-strategy/uuid-id-strategy.js +0 -16
  295. package/cli/config/entity-id-strategy/uuid-id-strategy.js.map +0 -1
  296. package/cli/config/fulfillment/custom-fulfillment-process.d.ts +0 -9
  297. package/cli/config/fulfillment/custom-fulfillment-process.js +0 -3
  298. package/cli/config/fulfillment/custom-fulfillment-process.js.map +0 -1
  299. package/cli/config/fulfillment/fulfillment-handler.d.ts +0 -21
  300. package/cli/config/fulfillment/fulfillment-handler.js +0 -23
  301. package/cli/config/fulfillment/fulfillment-handler.js.map +0 -1
  302. package/cli/config/fulfillment/manual-fulfillment-handler.d.ts +0 -11
  303. package/cli/config/fulfillment/manual-fulfillment-handler.js +0 -26
  304. package/cli/config/fulfillment/manual-fulfillment-handler.js.map +0 -1
  305. package/cli/config/index.d.ts +0 -61
  306. package/cli/config/index.js +0 -74
  307. package/cli/config/index.js.map +0 -1
  308. package/cli/config/job-queue/inspectable-job-queue-strategy.d.ts +0 -12
  309. package/cli/config/job-queue/inspectable-job-queue-strategy.js +0 -11
  310. package/cli/config/job-queue/inspectable-job-queue-strategy.js.map +0 -1
  311. package/cli/config/job-queue/job-queue-strategy.d.ts +0 -8
  312. package/cli/config/job-queue/job-queue-strategy.js +0 -3
  313. package/cli/config/job-queue/job-queue-strategy.js.map +0 -1
  314. package/cli/config/logger/default-logger.d.ts +0 -24
  315. package/cli/config/logger/default-logger.js +0 -90
  316. package/cli/config/logger/default-logger.js.map +0 -1
  317. package/cli/config/logger/noop-logger.d.ts +0 -8
  318. package/cli/config/logger/noop-logger.js +0 -17
  319. package/cli/config/logger/noop-logger.js.map +0 -1
  320. package/cli/config/logger/typeorm-logger.d.ts +0 -15
  321. package/cli/config/logger/typeorm-logger.js +0 -74
  322. package/cli/config/logger/typeorm-logger.js.map +0 -1
  323. package/cli/config/logger/vendure-logger.d.ts +0 -32
  324. package/cli/config/logger/vendure-logger.js +0 -68
  325. package/cli/config/logger/vendure-logger.js.map +0 -1
  326. package/cli/config/merge-config.d.ts +0 -2
  327. package/cli/config/merge-config.js +0 -34
  328. package/cli/config/merge-config.js.map +0 -1
  329. package/cli/config/order/changed-price-handling-strategy.d.ts +0 -7
  330. package/cli/config/order/changed-price-handling-strategy.js +0 -3
  331. package/cli/config/order/changed-price-handling-strategy.js.map +0 -1
  332. package/cli/config/order/custom-order-process.d.ts +0 -9
  333. package/cli/config/order/custom-order-process.js +0 -3
  334. package/cli/config/order/custom-order-process.js.map +0 -1
  335. package/cli/config/order/default-changed-price-handling-strategy.d.ts +0 -6
  336. package/cli/config/order/default-changed-price-handling-strategy.js +0 -10
  337. package/cli/config/order/default-changed-price-handling-strategy.js.map +0 -1
  338. package/cli/config/order/default-order-item-price-calculation-strategy.d.ts +0 -7
  339. package/cli/config/order/default-order-item-price-calculation-strategy.js +0 -13
  340. package/cli/config/order/default-order-item-price-calculation-strategy.js.map +0 -1
  341. package/cli/config/order/default-order-placed-strategy.d.ts +0 -7
  342. package/cli/config/order/default-order-placed-strategy.js +0 -13
  343. package/cli/config/order/default-order-placed-strategy.js.map +0 -1
  344. package/cli/config/order/default-stock-allocation-strategy.d.ts +0 -7
  345. package/cli/config/order/default-stock-allocation-strategy.js +0 -11
  346. package/cli/config/order/default-stock-allocation-strategy.js.map +0 -1
  347. package/cli/config/order/merge-orders-strategy.d.ts +0 -7
  348. package/cli/config/order/merge-orders-strategy.js +0 -29
  349. package/cli/config/order/merge-orders-strategy.js.map +0 -1
  350. package/cli/config/order/order-by-code-access-strategy.d.ts +0 -11
  351. package/cli/config/order/order-by-code-access-strategy.js +0 -25
  352. package/cli/config/order/order-by-code-access-strategy.js.map +0 -1
  353. package/cli/config/order/order-code-strategy.d.ts +0 -8
  354. package/cli/config/order/order-code-strategy.js +0 -11
  355. package/cli/config/order/order-code-strategy.js.map +0 -1
  356. package/cli/config/order/order-item-price-calculation-strategy.d.ts +0 -9
  357. package/cli/config/order/order-item-price-calculation-strategy.js +0 -3
  358. package/cli/config/order/order-item-price-calculation-strategy.js.map +0 -1
  359. package/cli/config/order/order-merge-strategy.d.ts +0 -14
  360. package/cli/config/order/order-merge-strategy.js +0 -12
  361. package/cli/config/order/order-merge-strategy.js.map +0 -1
  362. package/cli/config/order/order-placed-strategy.d.ts +0 -7
  363. package/cli/config/order/order-placed-strategy.js +0 -3
  364. package/cli/config/order/order-placed-strategy.js.map +0 -1
  365. package/cli/config/order/stock-allocation-strategy.d.ts +0 -7
  366. package/cli/config/order/stock-allocation-strategy.js +0 -3
  367. package/cli/config/order/stock-allocation-strategy.js.map +0 -1
  368. package/cli/config/order/use-existing-strategy.d.ts +0 -6
  369. package/cli/config/order/use-existing-strategy.js +0 -11
  370. package/cli/config/order/use-existing-strategy.js.map +0 -1
  371. package/cli/config/order/use-guest-if-existing-empty-strategy.d.ts +0 -6
  372. package/cli/config/order/use-guest-if-existing-empty-strategy.js +0 -13
  373. package/cli/config/order/use-guest-if-existing-empty-strategy.js.map +0 -1
  374. package/cli/config/order/use-guest-strategy.d.ts +0 -6
  375. package/cli/config/order/use-guest-strategy.js +0 -11
  376. package/cli/config/order/use-guest-strategy.js.map +0 -1
  377. package/cli/config/payment/custom-payment-process.d.ts +0 -9
  378. package/cli/config/payment/custom-payment-process.js +0 -3
  379. package/cli/config/payment/custom-payment-process.js.map +0 -1
  380. package/cli/config/payment/dummy-payment-method-handler.d.ts +0 -17
  381. package/cli/config/payment/dummy-payment-method-handler.js +0 -74
  382. package/cli/config/payment/dummy-payment-method-handler.js.map +0 -1
  383. package/cli/config/payment/example-payment-method-handler.d.ts +0 -11
  384. package/cli/config/payment/example-payment-method-handler.js +0 -59
  385. package/cli/config/payment/example-payment-method-handler.js.map +0 -1
  386. package/cli/config/payment/payment-method-eligibility-checker.d.ts +0 -13
  387. package/cli/config/payment/payment-method-eligibility-checker.js +0 -15
  388. package/cli/config/payment/payment-method-eligibility-checker.js.map +0 -1
  389. package/cli/config/payment/payment-method-handler.d.ts +0 -73
  390. package/cli/config/payment/payment-method-handler.js +0 -36
  391. package/cli/config/payment/payment-method-handler.js.map +0 -1
  392. package/cli/config/promotion/actions/buy-x-get-y-free-action.d.ts +0 -37
  393. package/cli/config/promotion/actions/buy-x-get-y-free-action.js +0 -30
  394. package/cli/config/promotion/actions/buy-x-get-y-free-action.js.map +0 -1
  395. package/cli/config/promotion/actions/facet-values-percentage-discount-action.d.ts +0 -17
  396. package/cli/config/promotion/actions/facet-values-percentage-discount-action.js +0 -39
  397. package/cli/config/promotion/actions/facet-values-percentage-discount-action.js.map +0 -1
  398. package/cli/config/promotion/actions/free-shipping-action.d.ts +0 -2
  399. package/cli/config/promotion/actions/free-shipping-action.js +0 -14
  400. package/cli/config/promotion/actions/free-shipping-action.js.map +0 -1
  401. package/cli/config/promotion/actions/order-fixed-discount-action.d.ts +0 -9
  402. package/cli/config/promotion/actions/order-fixed-discount-action.js +0 -21
  403. package/cli/config/promotion/actions/order-fixed-discount-action.js.map +0 -1
  404. package/cli/config/promotion/actions/order-percentage-discount-action.d.ts +0 -10
  405. package/cli/config/promotion/actions/order-percentage-discount-action.js +0 -23
  406. package/cli/config/promotion/actions/order-percentage-discount-action.js.map +0 -1
  407. package/cli/config/promotion/actions/product-percentage-discount-action.d.ts +0 -22
  408. package/cli/config/promotion/actions/product-percentage-discount-action.js +0 -36
  409. package/cli/config/promotion/actions/product-percentage-discount-action.js.map +0 -1
  410. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.d.ts +0 -37
  411. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.js +0 -71
  412. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.js.map +0 -1
  413. package/cli/config/promotion/conditions/contains-products-condition.d.ts +0 -19
  414. package/cli/config/promotion/conditions/contains-products-condition.js +0 -38
  415. package/cli/config/promotion/conditions/contains-products-condition.js.map +0 -1
  416. package/cli/config/promotion/conditions/customer-group-condition.d.ts +0 -14
  417. package/cli/config/promotion/conditions/customer-group-condition.js +0 -72
  418. package/cli/config/promotion/conditions/customer-group-condition.js.map +0 -1
  419. package/cli/config/promotion/conditions/has-facet-values-condition.d.ts +0 -14
  420. package/cli/config/promotion/conditions/has-facet-values-condition.js +0 -31
  421. package/cli/config/promotion/conditions/has-facet-values-condition.js.map +0 -1
  422. package/cli/config/promotion/conditions/min-order-amount-condition.d.ts +0 -14
  423. package/cli/config/promotion/conditions/min-order-amount-condition.js +0 -27
  424. package/cli/config/promotion/conditions/min-order-amount-condition.js.map +0 -1
  425. package/cli/config/promotion/index.d.ts +0 -170
  426. package/cli/config/promotion/index.js +0 -50
  427. package/cli/config/promotion/index.js.map +0 -1
  428. package/cli/config/promotion/promotion-action.d.ts +0 -56
  429. package/cli/config/promotion/promotion-action.js +0 -49
  430. package/cli/config/promotion/promotion-action.js.map +0 -1
  431. package/cli/config/promotion/promotion-condition.d.ts +0 -19
  432. package/cli/config/promotion/promotion-condition.js +0 -19
  433. package/cli/config/promotion/promotion-condition.js.map +0 -1
  434. package/cli/config/promotion/utils/facet-value-checker.d.ts +0 -9
  435. package/cli/config/promotion/utils/facet-value-checker.js +0 -31
  436. package/cli/config/promotion/utils/facet-value-checker.js.map +0 -1
  437. package/cli/config/session-cache/in-memory-session-cache-strategy.d.ts +0 -11
  438. package/cli/config/session-cache/in-memory-session-cache-strategy.js +0 -44
  439. package/cli/config/session-cache/in-memory-session-cache-strategy.js.map +0 -1
  440. package/cli/config/session-cache/noop-session-cache-strategy.d.ts +0 -7
  441. package/cli/config/session-cache/noop-session-cache-strategy.js +0 -19
  442. package/cli/config/session-cache/noop-session-cache-strategy.js.map +0 -1
  443. package/cli/config/session-cache/session-cache-strategy.d.ts +0 -25
  444. package/cli/config/session-cache/session-cache-strategy.js +0 -3
  445. package/cli/config/session-cache/session-cache-strategy.js.map +0 -1
  446. package/cli/config/shipping-method/default-shipping-calculator.d.ts +0 -51
  447. package/cli/config/shipping-method/default-shipping-calculator.js +0 -69
  448. package/cli/config/shipping-method/default-shipping-calculator.js.map +0 -1
  449. package/cli/config/shipping-method/default-shipping-eligibility-checker.d.ts +0 -19
  450. package/cli/config/shipping-method/default-shipping-eligibility-checker.js +0 -27
  451. package/cli/config/shipping-method/default-shipping-eligibility-checker.js.map +0 -1
  452. package/cli/config/shipping-method/shipping-calculator.d.ts +0 -20
  453. package/cli/config/shipping-method/shipping-calculator.js +0 -15
  454. package/cli/config/shipping-method/shipping-calculator.js.map +0 -1
  455. package/cli/config/shipping-method/shipping-eligibility-checker.d.ts +0 -19
  456. package/cli/config/shipping-method/shipping-eligibility-checker.js +0 -38
  457. package/cli/config/shipping-method/shipping-eligibility-checker.js.map +0 -1
  458. package/cli/config/tax/default-tax-line-calculation-strategy.d.ts +0 -5
  459. package/cli/config/tax/default-tax-line-calculation-strategy.js +0 -11
  460. package/cli/config/tax/default-tax-line-calculation-strategy.js.map +0 -1
  461. package/cli/config/tax/default-tax-zone-strategy.d.ts +0 -6
  462. package/cli/config/tax/default-tax-zone-strategy.js +0 -10
  463. package/cli/config/tax/default-tax-zone-strategy.js.map +0 -1
  464. package/cli/config/tax/tax-line-calculation-strategy.d.ts +0 -17
  465. package/cli/config/tax/tax-line-calculation-strategy.js +0 -3
  466. package/cli/config/tax/tax-line-calculation-strategy.js.map +0 -1
  467. package/cli/config/tax/tax-zone-strategy.d.ts +0 -6
  468. package/cli/config/tax/tax-zone-strategy.js +0 -3
  469. package/cli/config/tax/tax-zone-strategy.js.map +0 -1
  470. package/cli/config/vendure-config.d.ts +0 -192
  471. package/cli/config/vendure-config.js +0 -3
  472. package/cli/config/vendure-config.js.map +0 -1
  473. package/cli/connection/connection.module.d.ts +0 -7
  474. package/cli/connection/connection.module.js +0 -61
  475. package/cli/connection/connection.module.js.map +0 -1
  476. package/cli/connection/transaction-subscriber.d.ts +0 -19
  477. package/cli/connection/transaction-subscriber.js +0 -54
  478. package/cli/connection/transaction-subscriber.js.map +0 -1
  479. package/cli/connection/transaction-wrapper.d.ts +0 -9
  480. package/cli/connection/transaction-wrapper.js +0 -79
  481. package/cli/connection/transaction-wrapper.js.map +0 -1
  482. package/cli/connection/transactional-connection.d.ts +0 -25
  483. package/cli/connection/transactional-connection.js +0 -170
  484. package/cli/connection/transactional-connection.js.map +0 -1
  485. package/cli/connection/types.d.ts +0 -8
  486. package/cli/connection/types.js +0 -3
  487. package/cli/connection/types.js.map +0 -1
  488. package/cli/entity/address/address.entity.d.ts +0 -22
  489. package/cli/entity/address/address.entity.js +0 -80
  490. package/cli/entity/address/address.entity.js.map +0 -1
  491. package/cli/entity/administrator/administrator.entity.d.ts +0 -15
  492. package/cli/entity/administrator/administrator.entity.js +0 -52
  493. package/cli/entity/administrator/administrator.entity.js.map +0 -1
  494. package/cli/entity/asset/asset.entity.d.ts +0 -26
  495. package/cli/entity/asset/asset.entity.js +0 -79
  496. package/cli/entity/asset/asset.entity.js.map +0 -1
  497. package/cli/entity/asset/orderable-asset.entity.d.ts +0 -10
  498. package/cli/entity/asset/orderable-asset.entity.js +0 -34
  499. package/cli/entity/asset/orderable-asset.entity.js.map +0 -1
  500. package/cli/entity/authentication-method/authentication-method.entity.d.ts +0 -5
  501. package/cli/entity/authentication-method/authentication-method.entity.js +0 -27
  502. package/cli/entity/authentication-method/authentication-method.entity.js.map +0 -1
  503. package/cli/entity/authentication-method/external-authentication-method.entity.d.ts +0 -8
  504. package/cli/entity/authentication-method/external-authentication-method.entity.js +0 -37
  505. package/cli/entity/authentication-method/external-authentication-method.entity.js.map +0 -1
  506. package/cli/entity/authentication-method/native-authentication-method.entity.d.ts +0 -11
  507. package/cli/entity/authentication-method/native-authentication-method.entity.js +0 -49
  508. package/cli/entity/authentication-method/native-authentication-method.entity.js.map +0 -1
  509. package/cli/entity/base/base.entity.d.ts +0 -7
  510. package/cli/entity/base/base.entity.js +0 -37
  511. package/cli/entity/base/base.entity.js.map +0 -1
  512. package/cli/entity/channel/channel.entity.d.ts +0 -17
  513. package/cli/entity/channel/channel.entity.js +0 -67
  514. package/cli/entity/channel/channel.entity.js.map +0 -1
  515. package/cli/entity/collection/collection-asset.entity.d.ts +0 -8
  516. package/cli/entity/collection/collection-asset.entity.js +0 -34
  517. package/cli/entity/collection/collection-asset.entity.js.map +0 -1
  518. package/cli/entity/collection/collection-translation.entity.d.ts +0 -16
  519. package/cli/entity/collection/collection-translation.entity.js +0 -52
  520. package/cli/entity/collection/collection-translation.entity.js.map +0 -1
  521. package/cli/entity/collection/collection.entity.d.ts +0 -29
  522. package/cli/entity/collection/collection.entity.js +0 -81
  523. package/cli/entity/collection/collection.entity.js.map +0 -1
  524. package/cli/entity/country/country-translation.entity.d.ts +0 -14
  525. package/cli/entity/country/country-translation.entity.js +0 -44
  526. package/cli/entity/country/country-translation.entity.js.map +0 -1
  527. package/cli/entity/country/country.entity.d.ts +0 -13
  528. package/cli/entity/country/country.entity.js +0 -43
  529. package/cli/entity/country/country.entity.js.map +0 -1
  530. package/cli/entity/custom-entity-fields.d.ts +0 -68
  531. package/cli/entity/custom-entity-fields.js +0 -106
  532. package/cli/entity/custom-entity-fields.js.map +0 -1
  533. package/cli/entity/customer/customer.entity.d.ts +0 -25
  534. package/cli/entity/customer/customer.entity.js +0 -82
  535. package/cli/entity/customer/customer.entity.js.map +0 -1
  536. package/cli/entity/customer-group/customer-group.entity.d.ts +0 -11
  537. package/cli/entity/customer-group/customer-group.entity.js +0 -39
  538. package/cli/entity/customer-group/customer-group.entity.js.map +0 -1
  539. package/cli/entity/entities.d.ts +0 -124
  540. package/cli/entity/entities.js +0 -128
  541. package/cli/entity/entities.js.map +0 -1
  542. package/cli/entity/entity-id.decorator.d.ts +0 -18
  543. package/cli/entity/entity-id.decorator.js +0 -40
  544. package/cli/entity/entity-id.decorator.js.map +0 -1
  545. package/cli/entity/facet/facet-translation.entity.d.ts +0 -14
  546. package/cli/entity/facet/facet-translation.entity.js +0 -44
  547. package/cli/entity/facet/facet-translation.entity.js.map +0 -1
  548. package/cli/entity/facet/facet.entity.d.ts +0 -18
  549. package/cli/entity/facet/facet.entity.js +0 -54
  550. package/cli/entity/facet/facet.entity.js.map +0 -1
  551. package/cli/entity/facet-value/facet-value-translation.entity.d.ts +0 -13
  552. package/cli/entity/facet-value/facet-value-translation.entity.js +0 -44
  553. package/cli/entity/facet-value/facet-value-translation.entity.js.map +0 -1
  554. package/cli/entity/facet-value/facet-value.entity.d.ts +0 -17
  555. package/cli/entity/facet-value/facet-value.entity.js +0 -50
  556. package/cli/entity/facet-value/facet-value.entity.js.map +0 -1
  557. package/cli/entity/fulfillment/fulfillment.entity.d.ts +0 -15
  558. package/cli/entity/fulfillment/fulfillment.entity.js +0 -51
  559. package/cli/entity/fulfillment/fulfillment.entity.js.map +0 -1
  560. package/cli/entity/global-settings/global-settings.entity.d.ts +0 -12
  561. package/cli/entity/global-settings/global-settings.entity.js +0 -42
  562. package/cli/entity/global-settings/global-settings.entity.js.map +0 -1
  563. package/cli/entity/history-entry/customer-history-entry.entity.d.ts +0 -7
  564. package/cli/entity/history-entry/customer-history-entry.entity.js +0 -30
  565. package/cli/entity/history-entry/customer-history-entry.entity.js.map +0 -1
  566. package/cli/entity/history-entry/history-entry.entity.d.ts +0 -9
  567. package/cli/entity/history-entry/history-entry.entity.js +0 -40
  568. package/cli/entity/history-entry/history-entry.entity.js.map +0 -1
  569. package/cli/entity/history-entry/order-history-entry.entity.d.ts +0 -7
  570. package/cli/entity/history-entry/order-history-entry.entity.js +0 -30
  571. package/cli/entity/history-entry/order-history-entry.entity.js.map +0 -1
  572. package/cli/entity/index.d.ts +0 -52
  573. package/cli/entity/index.js +0 -65
  574. package/cli/entity/index.js.map +0 -1
  575. package/cli/entity/order/order.entity.d.ts +0 -48
  576. package/cli/entity/order/order.entity.js +0 -277
  577. package/cli/entity/order/order.entity.js.map +0 -1
  578. package/cli/entity/order-item/order-item.entity.d.ts +0 -35
  579. package/cli/entity/order-item/order-item.entity.js +0 -182
  580. package/cli/entity/order-item/order-item.entity.js.map +0 -1
  581. package/cli/entity/order-line/order-line.entity.d.ts +0 -44
  582. package/cli/entity/order-line/order-line.entity.js +0 -275
  583. package/cli/entity/order-line/order-line.entity.js.map +0 -1
  584. package/cli/entity/order-modification/order-modification.entity.d.ts +0 -21
  585. package/cli/entity/order-modification/order-modification.entity.js +0 -81
  586. package/cli/entity/order-modification/order-modification.entity.js.map +0 -1
  587. package/cli/entity/payment/payment.entity.d.ts +0 -17
  588. package/cli/entity/payment/payment.entity.js +0 -59
  589. package/cli/entity/payment/payment.entity.js.map +0 -1
  590. package/cli/entity/payment-method/payment-method.entity.d.ts +0 -18
  591. package/cli/entity/payment-method/payment-method.entity.js +0 -60
  592. package/cli/entity/payment-method/payment-method.entity.js.map +0 -1
  593. package/cli/entity/product/product-asset.entity.d.ts +0 -8
  594. package/cli/entity/product/product-asset.entity.js +0 -34
  595. package/cli/entity/product/product-asset.entity.js.map +0 -1
  596. package/cli/entity/product/product-translation.entity.d.ts +0 -16
  597. package/cli/entity/product/product-translation.entity.js +0 -52
  598. package/cli/entity/product/product-translation.entity.js.map +0 -1
  599. package/cli/entity/product/product.entity.d.ts +0 -28
  600. package/cli/entity/product/product.entity.js +0 -75
  601. package/cli/entity/product/product.entity.js.map +0 -1
  602. package/cli/entity/product-option/product-option-translation.entity.d.ts +0 -14
  603. package/cli/entity/product-option/product-option-translation.entity.js +0 -44
  604. package/cli/entity/product-option/product-option-translation.entity.js.map +0 -1
  605. package/cli/entity/product-option/product-option.entity.d.ts +0 -17
  606. package/cli/entity/product-option/product-option.entity.js +0 -53
  607. package/cli/entity/product-option/product-option.entity.js.map +0 -1
  608. package/cli/entity/product-option-group/product-option-group-translation.entity.d.ts +0 -14
  609. package/cli/entity/product-option-group/product-option-group-translation.entity.js +0 -44
  610. package/cli/entity/product-option-group/product-option-group-translation.entity.js.map +0 -1
  611. package/cli/entity/product-option-group/product-option-group.entity.d.ts +0 -18
  612. package/cli/entity/product-option-group/product-option-group.entity.js +0 -53
  613. package/cli/entity/product-option-group/product-option-group.entity.js.map +0 -1
  614. package/cli/entity/product-variant/product-variant-asset.entity.d.ts +0 -8
  615. package/cli/entity/product-variant/product-variant-asset.entity.js +0 -34
  616. package/cli/entity/product-variant/product-variant-asset.entity.js.map +0 -1
  617. package/cli/entity/product-variant/product-variant-price.entity.d.ts +0 -9
  618. package/cli/entity/product-variant/product-variant-price.entity.js +0 -39
  619. package/cli/entity/product-variant/product-variant-price.entity.js.map +0 -1
  620. package/cli/entity/product-variant/product-variant-translation.entity.d.ts +0 -14
  621. package/cli/entity/product-variant/product-variant-translation.entity.js +0 -44
  622. package/cli/entity/product-variant/product-variant-translation.entity.js.map +0 -1
  623. package/cli/entity/product-variant/product-variant.entity.d.ts +0 -49
  624. package/cli/entity/product-variant/product-variant.entity.js +0 -155
  625. package/cli/entity/product-variant/product-variant.entity.js.map +0 -1
  626. package/cli/entity/promotion/promotion.entity.d.ts +0 -56
  627. package/cli/entity/promotion/promotion.entity.js +0 -157
  628. package/cli/entity/promotion/promotion.entity.js.map +0 -1
  629. package/cli/entity/refund/refund.entity.d.ts +0 -21
  630. package/cli/entity/refund/refund.entity.js +0 -78
  631. package/cli/entity/refund/refund.entity.js.map +0 -1
  632. package/cli/entity/role/role.entity.d.ts +0 -12
  633. package/cli/entity/role/role.entity.js +0 -43
  634. package/cli/entity/role/role.entity.js.map +0 -1
  635. package/cli/entity/session/anonymous-session.entity.d.ts +0 -5
  636. package/cli/entity/session/anonymous-session.entity.js +0 -25
  637. package/cli/entity/session/anonymous-session.entity.js.map +0 -1
  638. package/cli/entity/session/authenticated-session.entity.d.ts +0 -8
  639. package/cli/entity/session/authenticated-session.entity.js +0 -34
  640. package/cli/entity/session/authenticated-session.entity.js.map +0 -1
  641. package/cli/entity/session/session.entity.d.ts +0 -13
  642. package/cli/entity/session/session.entity.js +0 -54
  643. package/cli/entity/session/session.entity.js.map +0 -1
  644. package/cli/entity/shipping-line/shipping-line.entity.d.ts +0 -24
  645. package/cli/entity/shipping-line/shipping-line.entity.js +0 -128
  646. package/cli/entity/shipping-line/shipping-line.entity.js.map +0 -1
  647. package/cli/entity/shipping-method/shipping-method-translation.entity.d.ts +0 -16
  648. package/cli/entity/shipping-method/shipping-method-translation.entity.js +0 -48
  649. package/cli/entity/shipping-method/shipping-method-translation.entity.js.map +0 -1
  650. package/cli/entity/shipping-method/shipping-method.entity.d.ts +0 -28
  651. package/cli/entity/shipping-method/shipping-method.entity.js +0 -92
  652. package/cli/entity/shipping-method/shipping-method.entity.js.map +0 -1
  653. package/cli/entity/stock-movement/allocation.entity.d.ts +0 -9
  654. package/cli/entity/stock-movement/allocation.entity.js +0 -32
  655. package/cli/entity/stock-movement/allocation.entity.js.map +0 -1
  656. package/cli/entity/stock-movement/cancellation.entity.d.ts +0 -9
  657. package/cli/entity/stock-movement/cancellation.entity.js +0 -32
  658. package/cli/entity/stock-movement/cancellation.entity.js.map +0 -1
  659. package/cli/entity/stock-movement/release.entity.d.ts +0 -9
  660. package/cli/entity/stock-movement/release.entity.js +0 -32
  661. package/cli/entity/stock-movement/release.entity.js.map +0 -1
  662. package/cli/entity/stock-movement/sale.entity.d.ts +0 -9
  663. package/cli/entity/stock-movement/sale.entity.js +0 -32
  664. package/cli/entity/stock-movement/sale.entity.js.map +0 -1
  665. package/cli/entity/stock-movement/stock-adjustment.entity.d.ts +0 -7
  666. package/cli/entity/stock-movement/stock-adjustment.entity.js +0 -27
  667. package/cli/entity/stock-movement/stock-adjustment.entity.js.map +0 -1
  668. package/cli/entity/stock-movement/stock-movement.entity.d.ts +0 -8
  669. package/cli/entity/stock-movement/stock-movement.entity.js +0 -36
  670. package/cli/entity/stock-movement/stock-movement.entity.js.map +0 -1
  671. package/cli/entity/surcharge/surcharge.entity.d.ts +0 -18
  672. package/cli/entity/surcharge/surcharge.entity.js +0 -82
  673. package/cli/entity/surcharge/surcharge.entity.js.map +0 -1
  674. package/cli/entity/tag/tag.entity.d.ts +0 -6
  675. package/cli/entity/tag/tag.entity.js +0 -29
  676. package/cli/entity/tag/tag.entity.js.map +0 -1
  677. package/cli/entity/tax-category/tax-category.entity.d.ts +0 -10
  678. package/cli/entity/tax-category/tax-category.entity.js +0 -38
  679. package/cli/entity/tax-category/tax-category.entity.js.map +0 -1
  680. package/cli/entity/tax-rate/tax-rate.entity.d.ts +0 -24
  681. package/cli/entity/tax-rate/tax-rate.entity.js +0 -81
  682. package/cli/entity/tax-rate/tax-rate.entity.js.map +0 -1
  683. package/cli/entity/user/user.entity.d.ts +0 -19
  684. package/cli/entity/user/user.entity.js +0 -69
  685. package/cli/entity/user/user.entity.js.map +0 -1
  686. package/cli/entity/value-transformers.d.ts +0 -5
  687. package/cli/entity/value-transformers.js +0 -13
  688. package/cli/entity/value-transformers.js.map +0 -1
  689. package/cli/entity/zone/zone.entity.d.ts +0 -11
  690. package/cli/entity/zone/zone.entity.js +0 -40
  691. package/cli/entity/zone/zone.entity.js.map +0 -1
  692. package/cli/event-bus/event-bus.d.ts +0 -15
  693. package/cli/event-bus/event-bus.js +0 -51
  694. package/cli/event-bus/event-bus.js.map +0 -1
  695. package/cli/event-bus/event-bus.module.d.ts +0 -2
  696. package/cli/event-bus/event-bus.module.js +0 -23
  697. package/cli/event-bus/event-bus.module.js.map +0 -1
  698. package/cli/event-bus/events/account-registration-event.d.ts +0 -8
  699. package/cli/event-bus/events/account-registration-event.js +0 -13
  700. package/cli/event-bus/events/account-registration-event.js.map +0 -1
  701. package/cli/event-bus/events/account-verified-event.d.ts +0 -8
  702. package/cli/event-bus/events/account-verified-event.js +0 -13
  703. package/cli/event-bus/events/account-verified-event.js.map +0 -1
  704. package/cli/event-bus/events/administrator-event.d.ts +0 -10
  705. package/cli/event-bus/events/administrator-event.js +0 -11
  706. package/cli/event-bus/events/administrator-event.js.map +0 -1
  707. package/cli/event-bus/events/asset-channel-event.d.ts +0 -11
  708. package/cli/event-bus/events/asset-channel-event.js +0 -15
  709. package/cli/event-bus/events/asset-channel-event.js.map +0 -1
  710. package/cli/event-bus/events/asset-event.d.ts +0 -11
  711. package/cli/event-bus/events/asset-event.js +0 -14
  712. package/cli/event-bus/events/asset-event.js.map +0 -1
  713. package/cli/event-bus/events/attempted-login-event.d.ts +0 -8
  714. package/cli/event-bus/events/attempted-login-event.js +0 -14
  715. package/cli/event-bus/events/attempted-login-event.js.map +0 -1
  716. package/cli/event-bus/events/change-channel-event.d.ts +0 -13
  717. package/cli/event-bus/events/change-channel-event.js +0 -16
  718. package/cli/event-bus/events/change-channel-event.js.map +0 -1
  719. package/cli/event-bus/events/channel-event.d.ts +0 -10
  720. package/cli/event-bus/events/channel-event.js +0 -11
  721. package/cli/event-bus/events/channel-event.js.map +0 -1
  722. package/cli/event-bus/events/collection-event.d.ts +0 -10
  723. package/cli/event-bus/events/collection-event.js +0 -11
  724. package/cli/event-bus/events/collection-event.js.map +0 -1
  725. package/cli/event-bus/events/collection-modification-event.d.ts +0 -10
  726. package/cli/event-bus/events/collection-modification-event.js +0 -14
  727. package/cli/event-bus/events/collection-modification-event.js.map +0 -1
  728. package/cli/event-bus/events/country-event.d.ts +0 -10
  729. package/cli/event-bus/events/country-event.js +0 -11
  730. package/cli/event-bus/events/country-event.js.map +0 -1
  731. package/cli/event-bus/events/coupon-code-event.d.ts +0 -10
  732. package/cli/event-bus/events/coupon-code-event.js +0 -15
  733. package/cli/event-bus/events/coupon-code-event.js.map +0 -1
  734. package/cli/event-bus/events/customer-address-event.d.ts +0 -15
  735. package/cli/event-bus/events/customer-address-event.js +0 -18
  736. package/cli/event-bus/events/customer-address-event.js.map +0 -1
  737. package/cli/event-bus/events/customer-event.d.ts +0 -13
  738. package/cli/event-bus/events/customer-event.js +0 -14
  739. package/cli/event-bus/events/customer-event.js.map +0 -1
  740. package/cli/event-bus/events/customer-group-entity-event.d.ts +0 -10
  741. package/cli/event-bus/events/customer-group-entity-event.js +0 -11
  742. package/cli/event-bus/events/customer-group-entity-event.js.map +0 -1
  743. package/cli/event-bus/events/customer-group-event.d.ts +0 -18
  744. package/cli/event-bus/events/customer-group-event.js +0 -25
  745. package/cli/event-bus/events/customer-group-event.js.map +0 -1
  746. package/cli/event-bus/events/facet-event.d.ts +0 -10
  747. package/cli/event-bus/events/facet-event.js +0 -11
  748. package/cli/event-bus/events/facet-event.js.map +0 -1
  749. package/cli/event-bus/events/facet-value-event.d.ts +0 -10
  750. package/cli/event-bus/events/facet-value-event.js +0 -11
  751. package/cli/event-bus/events/facet-value-event.js.map +0 -1
  752. package/cli/event-bus/events/fulfillment-event.d.ts +0 -14
  753. package/cli/event-bus/events/fulfillment-event.js +0 -11
  754. package/cli/event-bus/events/fulfillment-event.js.map +0 -1
  755. package/cli/event-bus/events/fulfillment-state-transition-event.d.ts +0 -11
  756. package/cli/event-bus/events/fulfillment-state-transition-event.js +0 -15
  757. package/cli/event-bus/events/fulfillment-state-transition-event.js.map +0 -1
  758. package/cli/event-bus/events/global-settings-event.d.ts +0 -7
  759. package/cli/event-bus/events/global-settings-event.js +0 -11
  760. package/cli/event-bus/events/global-settings-event.js.map +0 -1
  761. package/cli/event-bus/events/history-entry-event.d.ts +0 -14
  762. package/cli/event-bus/events/history-entry-event.js +0 -12
  763. package/cli/event-bus/events/history-entry-event.js.map +0 -1
  764. package/cli/event-bus/events/identifier-change-event.d.ts +0 -9
  765. package/cli/event-bus/events/identifier-change-event.js +0 -14
  766. package/cli/event-bus/events/identifier-change-event.js.map +0 -1
  767. package/cli/event-bus/events/identifier-change-request-event.d.ts +0 -8
  768. package/cli/event-bus/events/identifier-change-request-event.js +0 -13
  769. package/cli/event-bus/events/identifier-change-request-event.js.map +0 -1
  770. package/cli/event-bus/events/login-event.d.ts +0 -8
  771. package/cli/event-bus/events/login-event.js +0 -13
  772. package/cli/event-bus/events/login-event.js.map +0 -1
  773. package/cli/event-bus/events/logout-event.d.ts +0 -6
  774. package/cli/event-bus/events/logout-event.js +0 -12
  775. package/cli/event-bus/events/logout-event.js.map +0 -1
  776. package/cli/event-bus/events/order-event.d.ts +0 -9
  777. package/cli/event-bus/events/order-event.js +0 -14
  778. package/cli/event-bus/events/order-event.js.map +0 -1
  779. package/cli/event-bus/events/order-line-event.d.ts +0 -10
  780. package/cli/event-bus/events/order-line-event.js +0 -15
  781. package/cli/event-bus/events/order-line-event.js.map +0 -1
  782. package/cli/event-bus/events/order-placed-event.d.ts +0 -11
  783. package/cli/event-bus/events/order-placed-event.js +0 -15
  784. package/cli/event-bus/events/order-placed-event.js.map +0 -1
  785. package/cli/event-bus/events/order-state-transition-event.d.ts +0 -11
  786. package/cli/event-bus/events/order-state-transition-event.js +0 -15
  787. package/cli/event-bus/events/order-state-transition-event.js.map +0 -1
  788. package/cli/event-bus/events/password-reset-event.d.ts +0 -8
  789. package/cli/event-bus/events/password-reset-event.js +0 -13
  790. package/cli/event-bus/events/password-reset-event.js.map +0 -1
  791. package/cli/event-bus/events/password-reset-verified-event.d.ts +0 -8
  792. package/cli/event-bus/events/password-reset-verified-event.js +0 -13
  793. package/cli/event-bus/events/password-reset-verified-event.js.map +0 -1
  794. package/cli/event-bus/events/payment-method-event.d.ts +0 -10
  795. package/cli/event-bus/events/payment-method-event.js +0 -11
  796. package/cli/event-bus/events/payment-method-event.js.map +0 -1
  797. package/cli/event-bus/events/payment-state-transition-event.d.ts +0 -13
  798. package/cli/event-bus/events/payment-state-transition-event.js +0 -16
  799. package/cli/event-bus/events/payment-state-transition-event.js.map +0 -1
  800. package/cli/event-bus/events/product-channel-event.d.ts +0 -11
  801. package/cli/event-bus/events/product-channel-event.js +0 -15
  802. package/cli/event-bus/events/product-channel-event.js.map +0 -1
  803. package/cli/event-bus/events/product-event.d.ts +0 -11
  804. package/cli/event-bus/events/product-event.js +0 -14
  805. package/cli/event-bus/events/product-event.js.map +0 -1
  806. package/cli/event-bus/events/product-option-event.d.ts +0 -10
  807. package/cli/event-bus/events/product-option-event.js +0 -11
  808. package/cli/event-bus/events/product-option-event.js.map +0 -1
  809. package/cli/event-bus/events/product-option-group-change-event.d.ts +0 -11
  810. package/cli/event-bus/events/product-option-group-change-event.js +0 -15
  811. package/cli/event-bus/events/product-option-group-change-event.js.map +0 -1
  812. package/cli/event-bus/events/product-option-group-event.d.ts +0 -10
  813. package/cli/event-bus/events/product-option-group-event.js +0 -11
  814. package/cli/event-bus/events/product-option-group-event.js.map +0 -1
  815. package/cli/event-bus/events/product-variant-channel-event.d.ts +0 -11
  816. package/cli/event-bus/events/product-variant-channel-event.js +0 -15
  817. package/cli/event-bus/events/product-variant-channel-event.js.map +0 -1
  818. package/cli/event-bus/events/product-variant-event.d.ts +0 -11
  819. package/cli/event-bus/events/product-variant-event.js +0 -14
  820. package/cli/event-bus/events/product-variant-event.js.map +0 -1
  821. package/cli/event-bus/events/promotion-event.d.ts +0 -10
  822. package/cli/event-bus/events/promotion-event.js +0 -11
  823. package/cli/event-bus/events/promotion-event.js.map +0 -1
  824. package/cli/event-bus/events/refund-state-transition-event.d.ts +0 -13
  825. package/cli/event-bus/events/refund-state-transition-event.js +0 -16
  826. package/cli/event-bus/events/refund-state-transition-event.js.map +0 -1
  827. package/cli/event-bus/events/role-change-event.d.ts +0 -11
  828. package/cli/event-bus/events/role-change-event.js +0 -15
  829. package/cli/event-bus/events/role-change-event.js.map +0 -1
  830. package/cli/event-bus/events/role-event.d.ts +0 -10
  831. package/cli/event-bus/events/role-event.js +0 -11
  832. package/cli/event-bus/events/role-event.js.map +0 -1
  833. package/cli/event-bus/events/shipping-method-event.d.ts +0 -10
  834. package/cli/event-bus/events/shipping-method-event.js +0 -11
  835. package/cli/event-bus/events/shipping-method-event.js.map +0 -1
  836. package/cli/event-bus/events/stock-movement-event.d.ts +0 -10
  837. package/cli/event-bus/events/stock-movement-event.js +0 -15
  838. package/cli/event-bus/events/stock-movement-event.js.map +0 -1
  839. package/cli/event-bus/events/tax-category-event.d.ts +0 -10
  840. package/cli/event-bus/events/tax-category-event.js +0 -11
  841. package/cli/event-bus/events/tax-category-event.js.map +0 -1
  842. package/cli/event-bus/events/tax-rate-event.d.ts +0 -10
  843. package/cli/event-bus/events/tax-rate-event.js +0 -11
  844. package/cli/event-bus/events/tax-rate-event.js.map +0 -1
  845. package/cli/event-bus/events/tax-rate-modification-event.d.ts +0 -8
  846. package/cli/event-bus/events/tax-rate-modification-event.js +0 -13
  847. package/cli/event-bus/events/tax-rate-modification-event.js.map +0 -1
  848. package/cli/event-bus/events/zone-event.d.ts +0 -10
  849. package/cli/event-bus/events/zone-event.js +0 -11
  850. package/cli/event-bus/events/zone-event.js.map +0 -1
  851. package/cli/event-bus/events/zone-members-event.d.ts +0 -11
  852. package/cli/event-bus/events/zone-members-event.js +0 -15
  853. package/cli/event-bus/events/zone-members-event.js.map +0 -1
  854. package/cli/event-bus/index.d.ts +0 -55
  855. package/cli/event-bus/index.js +0 -68
  856. package/cli/event-bus/index.js.map +0 -1
  857. package/cli/event-bus/vendure-entity-event.d.ts +0 -9
  858. package/cli/event-bus/vendure-entity-event.js +0 -15
  859. package/cli/event-bus/vendure-entity-event.js.map +0 -1
  860. package/cli/event-bus/vendure-event.d.ts +0 -4
  861. package/cli/event-bus/vendure-event.js +0 -10
  862. package/cli/event-bus/vendure-event.js.map +0 -1
  863. package/cli/health-check/constants.d.ts +0 -1
  864. package/cli/health-check/constants.js +0 -5
  865. package/cli/health-check/constants.js.map +0 -1
  866. package/cli/i18n/i18n-error.d.ts +0 -13
  867. package/cli/i18n/i18n-error.js +0 -16
  868. package/cli/i18n/i18n-error.js.map +0 -1
  869. package/cli/job-queue/constants.d.ts +0 -1
  870. package/cli/job-queue/constants.js +0 -5
  871. package/cli/job-queue/constants.js.map +0 -1
  872. package/cli/job-queue/in-memory-job-queue-strategy.d.ts +0 -34
  873. package/cli/job-queue/in-memory-job-queue-strategy.js +0 -187
  874. package/cli/job-queue/in-memory-job-queue-strategy.js.map +0 -1
  875. package/cli/job-queue/index.d.ts +0 -11
  876. package/cli/job-queue/index.js +0 -24
  877. package/cli/job-queue/index.js.map +0 -1
  878. package/cli/job-queue/injectable-job-queue-strategy.d.ts +0 -12
  879. package/cli/job-queue/injectable-job-queue-strategy.js +0 -21
  880. package/cli/job-queue/injectable-job-queue-strategy.js.map +0 -1
  881. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.d.ts +0 -13
  882. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.js +0 -47
  883. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.js.map +0 -1
  884. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.d.ts +0 -11
  885. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.js +0 -3
  886. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.js.map +0 -1
  887. package/cli/job-queue/job-buffer/job-buffer.d.ts +0 -7
  888. package/cli/job-queue/job-buffer/job-buffer.js +0 -3
  889. package/cli/job-queue/job-buffer/job-buffer.js.map +0 -1
  890. package/cli/job-queue/job-buffer/job-buffer.service.d.ts +0 -16
  891. package/cli/job-queue/job-buffer/job-buffer.service.js +0 -76
  892. package/cli/job-queue/job-buffer/job-buffer.service.js.map +0 -1
  893. package/cli/job-queue/job-queue.d.ts +0 -16
  894. package/cli/job-queue/job-queue.js +0 -59
  895. package/cli/job-queue/job-queue.js.map +0 -1
  896. package/cli/job-queue/job-queue.service.d.ts +0 -27
  897. package/cli/job-queue/job-queue.service.js +0 -84
  898. package/cli/job-queue/job-queue.service.js.map +0 -1
  899. package/cli/job-queue/job.d.ts +0 -41
  900. package/cli/job-queue/job.js +0 -160
  901. package/cli/job-queue/job.js.map +0 -1
  902. package/cli/job-queue/polling-job-queue-strategy.d.ts +0 -26
  903. package/cli/job-queue/polling-job-queue-strategy.js +0 -163
  904. package/cli/job-queue/polling-job-queue-strategy.js.map +0 -1
  905. package/cli/job-queue/queue-name-process-storage.d.ts +0 -7
  906. package/cli/job-queue/queue-name-process-storage.js +0 -40
  907. package/cli/job-queue/queue-name-process-storage.js.map +0 -1
  908. package/cli/job-queue/subscribable-job.d.ts +0 -13
  909. package/cli/job-queue/subscribable-job.js +0 -52
  910. package/cli/job-queue/subscribable-job.js.map +0 -1
  911. package/cli/job-queue/types.d.ts +0 -22
  912. package/cli/job-queue/types.js +0 -3
  913. package/cli/job-queue/types.js.map +0 -1
  914. package/cli/process-context/process-context.d.ts +0 -7
  915. package/cli/process-context/process-context.js +0 -18
  916. package/cli/process-context/process-context.js.map +0 -1
  917. package/cli/service/helpers/config-arg/config-arg.service.d.ts +0 -31
  918. package/cli/service/helpers/config-arg/config-arg.service.js +0 -88
  919. package/cli/service/helpers/config-arg/config-arg.service.js.map +0 -1
  920. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.d.ts +0 -18
  921. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.js +0 -63
  922. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.js.map +0 -1
  923. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.d.ts +0 -21
  924. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js +0 -113
  925. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js.map +0 -1
  926. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.d.ts +0 -11
  927. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.js +0 -21
  928. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.js.map +0 -1
  929. package/cli/service/helpers/list-query-builder/connection-utils.d.ts +0 -10
  930. package/cli/service/helpers/list-query-builder/connection-utils.js +0 -26
  931. package/cli/service/helpers/list-query-builder/connection-utils.js.map +0 -1
  932. package/cli/service/helpers/list-query-builder/get-calculated-columns.d.ts +0 -3
  933. package/cli/service/helpers/list-query-builder/get-calculated-columns.js +0 -16
  934. package/cli/service/helpers/list-query-builder/get-calculated-columns.js.map +0 -1
  935. package/cli/service/helpers/list-query-builder/list-query-builder.d.ts +0 -30
  936. package/cli/service/helpers/list-query-builder/list-query-builder.js +0 -204
  937. package/cli/service/helpers/list-query-builder/list-query-builder.js.map +0 -1
  938. package/cli/service/helpers/list-query-builder/parse-channel-param.d.ts +0 -5
  939. package/cli/service/helpers/list-query-builder/parse-channel-param.js +0 -18
  940. package/cli/service/helpers/list-query-builder/parse-channel-param.js.map +0 -1
  941. package/cli/service/helpers/list-query-builder/parse-filter-params.d.ts +0 -13
  942. package/cli/service/helpers/list-query-builder/parse-filter-params.js +0 -155
  943. package/cli/service/helpers/list-query-builder/parse-filter-params.js.map +0 -1
  944. package/cli/service/helpers/list-query-builder/parse-sort-params.d.ts +0 -7
  945. package/cli/service/helpers/list-query-builder/parse-sort-params.js +0 -50
  946. package/cli/service/helpers/list-query-builder/parse-sort-params.js.map +0 -1
  947. package/cli/service/helpers/order-calculator/order-calculator.d.ts +0 -32
  948. package/cli/service/helpers/order-calculator/order-calculator.js +0 -311
  949. package/cli/service/helpers/order-calculator/order-calculator.js.map +0 -1
  950. package/cli/service/helpers/order-calculator/prorate.d.ts +0 -1
  951. package/cli/service/helpers/order-calculator/prorate.js +0 -35
  952. package/cli/service/helpers/order-calculator/prorate.js.map +0 -1
  953. package/cli/service/helpers/order-merger/order-merger.d.ts +0 -40
  954. package/cli/service/helpers/order-merger/order-merger.js +0 -97
  955. package/cli/service/helpers/order-merger/order-merger.js.map +0 -1
  956. package/cli/service/helpers/order-modifier/order-modifier.d.ts +0 -45
  957. package/cli/service/helpers/order-modifier/order-modifier.js +0 -423
  958. package/cli/service/helpers/order-modifier/order-modifier.js.map +0 -1
  959. package/cli/service/helpers/order-state-machine/order-state-machine.d.ts +0 -29
  960. package/cli/service/helpers/order-state-machine/order-state-machine.js +0 -240
  961. package/cli/service/helpers/order-state-machine/order-state-machine.js.map +0 -1
  962. package/cli/service/helpers/order-state-machine/order-state.d.ts +0 -9
  963. package/cli/service/helpers/order-state-machine/order-state.js +0 -64
  964. package/cli/service/helpers/order-state-machine/order-state.js.map +0 -1
  965. package/cli/service/helpers/password-cipher/password-cipher.d.ts +0 -7
  966. package/cli/service/helpers/password-cipher/password-cipher.js +0 -31
  967. package/cli/service/helpers/password-cipher/password-cipher.js.map +0 -1
  968. package/cli/service/helpers/payment-state-machine/payment-state-machine.d.ts +0 -20
  969. package/cli/service/helpers/payment-state-machine/payment-state-machine.js +0 -113
  970. package/cli/service/helpers/payment-state-machine/payment-state-machine.js.map +0 -1
  971. package/cli/service/helpers/payment-state-machine/payment-state.d.ts +0 -11
  972. package/cli/service/helpers/payment-state-machine/payment-state.js +0 -24
  973. package/cli/service/helpers/payment-state-machine/payment-state.js.map +0 -1
  974. package/cli/service/helpers/product-price-applicator/product-price-applicator.d.ts +0 -15
  975. package/cli/service/helpers/product-price-applicator/product-price-applicator.js +0 -64
  976. package/cli/service/helpers/product-price-applicator/product-price-applicator.js.map +0 -1
  977. package/cli/service/helpers/refund-state-machine/refund-state-machine.d.ts +0 -14
  978. package/cli/service/helpers/refund-state-machine/refund-state-machine.js +0 -65
  979. package/cli/service/helpers/refund-state-machine/refund-state-machine.js.map +0 -1
  980. package/cli/service/helpers/refund-state-machine/refund-state.d.ts +0 -11
  981. package/cli/service/helpers/refund-state-machine/refund-state.js +0 -15
  982. package/cli/service/helpers/refund-state-machine/refund-state.js.map +0 -1
  983. package/cli/service/helpers/request-context/request-context.service.d.ts +0 -29
  984. package/cli/service/helpers/request-context/request-context.service.js +0 -127
  985. package/cli/service/helpers/request-context/request-context.service.js.map +0 -1
  986. package/cli/service/helpers/shipping-calculator/shipping-calculator.d.ts +0 -18
  987. package/cli/service/helpers/shipping-calculator/shipping-calculator.js +0 -50
  988. package/cli/service/helpers/shipping-calculator/shipping-calculator.js.map +0 -1
  989. package/cli/service/helpers/translatable-saver/translatable-saver.d.ts +0 -24
  990. package/cli/service/helpers/translatable-saver/translatable-saver.js +0 -64
  991. package/cli/service/helpers/translatable-saver/translatable-saver.js.map +0 -1
  992. package/cli/service/helpers/translatable-saver/translation-differ.d.ts +0 -17
  993. package/cli/service/helpers/translatable-saver/translation-differ.js +0 -65
  994. package/cli/service/helpers/translatable-saver/translation-differ.js.map +0 -1
  995. package/cli/service/helpers/utils/address-to-line.d.ts +0 -3
  996. package/cli/service/helpers/utils/address-to-line.js +0 -21
  997. package/cli/service/helpers/utils/address-to-line.js.map +0 -1
  998. package/cli/service/helpers/utils/get-user-channels-permissions.d.ts +0 -10
  999. package/cli/service/helpers/utils/get-user-channels-permissions.js +0 -26
  1000. package/cli/service/helpers/utils/get-user-channels-permissions.js.map +0 -1
  1001. package/cli/service/helpers/utils/order-utils.d.ts +0 -9
  1002. package/cli/service/helpers/utils/order-utils.js +0 -64
  1003. package/cli/service/helpers/utils/order-utils.js.map +0 -1
  1004. package/cli/service/helpers/utils/patch-entity.d.ts +0 -5
  1005. package/cli/service/helpers/utils/patch-entity.js +0 -17
  1006. package/cli/service/helpers/utils/patch-entity.js.map +0 -1
  1007. package/cli/service/helpers/utils/samples-each.d.ts +0 -1
  1008. package/cli/service/helpers/utils/samples-each.js +0 -18
  1009. package/cli/service/helpers/utils/samples-each.js.map +0 -1
  1010. package/cli/service/helpers/utils/translate-entity.d.ts +0 -24
  1011. package/cli/service/helpers/utils/translate-entity.js +0 -99
  1012. package/cli/service/helpers/utils/translate-entity.js.map +0 -1
  1013. package/cli/service/helpers/verification-token-generator/verification-token-generator.d.ts +0 -7
  1014. package/cli/service/helpers/verification-token-generator/verification-token-generator.js +0 -44
  1015. package/cli/service/helpers/verification-token-generator/verification-token-generator.js.map +0 -1
  1016. package/cli/service/services/administrator.service.d.ts +0 -36
  1017. package/cli/service/services/administrator.service.js +0 -230
  1018. package/cli/service/services/administrator.service.js.map +0 -1
  1019. package/cli/service/services/asset.service.d.ts +0 -63
  1020. package/cli/service/services/asset.service.js +0 -478
  1021. package/cli/service/services/asset.service.js.map +0 -1
  1022. package/cli/service/services/channel.service.d.ts +0 -38
  1023. package/cli/service/services/channel.service.js +0 -222
  1024. package/cli/service/services/channel.service.js.map +0 -1
  1025. package/cli/service/services/country.service.d.ts +0 -24
  1026. package/cli/service/services/country.service.js +0 -119
  1027. package/cli/service/services/country.service.js.map +0 -1
  1028. package/cli/service/services/customer.service.d.ts +0 -62
  1029. package/cli/service/services/customer.service.js +0 -662
  1030. package/cli/service/services/customer.service.js.map +0 -1
  1031. package/cli/service/services/facet-value.service.d.ts +0 -32
  1032. package/cli/service/services/facet-value.service.js +0 -151
  1033. package/cli/service/services/facet-value.service.js.map +0 -1
  1034. package/cli/service/services/fulfillment.service.d.ts +0 -32
  1035. package/cli/service/services/fulfillment.service.js +0 -106
  1036. package/cli/service/services/fulfillment.service.js.map +0 -1
  1037. package/cli/service/services/global-settings.service.d.ts +0 -17
  1038. package/cli/service/services/global-settings.service.js +0 -74
  1039. package/cli/service/services/global-settings.service.js.map +0 -1
  1040. package/cli/service/services/history.service.d.ts +0 -139
  1041. package/cli/service/services/history.service.js +0 -143
  1042. package/cli/service/services/history.service.js.map +0 -1
  1043. package/cli/service/services/order.service.d.ts +0 -136
  1044. package/cli/service/services/order.service.js +0 -1158
  1045. package/cli/service/services/order.service.js.map +0 -1
  1046. package/cli/service/services/payment-method.service.d.ts +0 -37
  1047. package/cli/service/services/payment-method.service.js +0 -178
  1048. package/cli/service/services/payment-method.service.js.map +0 -1
  1049. package/cli/service/services/payment.service.d.ts +0 -32
  1050. package/cli/service/services/payment.service.js +0 -216
  1051. package/cli/service/services/payment.service.js.map +0 -1
  1052. package/cli/service/services/product-variant.service.d.ts +0 -70
  1053. package/cli/service/services/product-variant.service.js +0 -560
  1054. package/cli/service/services/product-variant.service.js.map +0 -1
  1055. package/cli/service/services/promotion.service.d.ts +0 -41
  1056. package/cli/service/services/promotion.service.js +0 -219
  1057. package/cli/service/services/promotion.service.js.map +0 -1
  1058. package/cli/service/services/role.service.d.ts +0 -39
  1059. package/cli/service/services/role.service.js +0 -240
  1060. package/cli/service/services/role.service.js.map +0 -1
  1061. package/cli/service/services/session.service.d.ts +0 -38
  1062. package/cli/service/services/session.service.js +0 -228
  1063. package/cli/service/services/session.service.js.map +0 -1
  1064. package/cli/service/services/shipping-method.service.d.ts +0 -36
  1065. package/cli/service/services/shipping-method.service.js +0 -181
  1066. package/cli/service/services/shipping-method.service.js.map +0 -1
  1067. package/cli/service/services/stock-movement.service.d.ts +0 -39
  1068. package/cli/service/services/stock-movement.service.js +0 -214
  1069. package/cli/service/services/stock-movement.service.js.map +0 -1
  1070. package/cli/service/services/tag.service.d.ts +0 -21
  1071. package/cli/service/services/tag.service.js +0 -82
  1072. package/cli/service/services/tag.service.js.map +0 -1
  1073. package/cli/service/services/tax-category.service.d.ts +0 -16
  1074. package/cli/service/services/tax-category.service.js +0 -95
  1075. package/cli/service/services/tax-category.service.js.map +0 -1
  1076. package/cli/service/services/tax-rate.service.d.ts +0 -28
  1077. package/cli/service/services/tax-rate.service.js +0 -134
  1078. package/cli/service/services/tax-rate.service.js.map +0 -1
  1079. package/cli/service/services/user.service.d.ts +0 -37
  1080. package/cli/service/services/user.service.js +0 -287
  1081. package/cli/service/services/user.service.js.map +0 -1
  1082. package/cli/service/services/zone.service.d.ts +0 -26
  1083. package/cli/service/services/zone.service.js +0 -168
  1084. package/cli/service/services/zone.service.js.map +0 -1
@@ -1,40 +0,0 @@
1
- import { ID } from '@vendure/common/lib/shared-types';
2
- import { RequestContext } from '../../../api/common/request-context';
3
- import { ConfigService } from '../../../config/config.service';
4
- import { OrderLine } from '../../../entity/order-line/order-line.entity';
5
- import { Order } from '../../../entity/order/order.entity';
6
- export declare type OrderWithNoLines = Order & {
7
- lines: undefined;
8
- };
9
- export declare type OrderWithEmptyLines = Order & {
10
- lines: ArrayLike<OrderLine> & {
11
- length: 0;
12
- };
13
- };
14
- export declare type EmptyOrder = OrderWithEmptyLines | OrderWithNoLines;
15
- export declare type MergeResult = {
16
- order?: Order;
17
- linesToInsert?: Array<{
18
- productVariantId: ID;
19
- quantity: number;
20
- customFields?: any;
21
- }>;
22
- linesToModify?: Array<{
23
- orderLineId: ID;
24
- quantity: number;
25
- customFields?: any;
26
- }>;
27
- linesToDelete?: Array<{
28
- orderLineId: ID;
29
- }>;
30
- orderToDelete?: Order;
31
- };
32
- export declare class OrderMerger {
33
- private configService;
34
- constructor(configService: ConfigService);
35
- merge(ctx: RequestContext, guestOrder?: Order, existingOrder?: Order): MergeResult;
36
- private getLinesToInsert;
37
- private getLinesToModify;
38
- private getLinesToDelete;
39
- private orderEmpty;
40
- }
@@ -1,97 +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.OrderMerger = void 0;
13
- const common_1 = require("@nestjs/common");
14
- const shared_utils_1 = require("@vendure/common/lib/shared-utils");
15
- const utils_1 = require("../../../common/utils");
16
- const config_service_1 = require("../../../config/config.service");
17
- let OrderMerger = class OrderMerger {
18
- constructor(configService) {
19
- this.configService = configService;
20
- }
21
- merge(ctx, guestOrder, existingOrder) {
22
- if (guestOrder && !this.orderEmpty(guestOrder) && existingOrder && !this.orderEmpty(existingOrder)) {
23
- const { mergeStrategy } = this.configService.orderOptions;
24
- const mergedLines = mergeStrategy.merge(ctx, guestOrder, existingOrder);
25
- return {
26
- order: existingOrder,
27
- linesToInsert: this.getLinesToInsert(guestOrder, existingOrder, mergedLines),
28
- linesToModify: this.getLinesToModify(guestOrder, existingOrder, mergedLines),
29
- linesToDelete: this.getLinesToDelete(guestOrder, existingOrder, mergedLines),
30
- orderToDelete: guestOrder,
31
- };
32
- }
33
- else if (guestOrder &&
34
- !this.orderEmpty(guestOrder) &&
35
- (!existingOrder || (existingOrder && this.orderEmpty(existingOrder)))) {
36
- return {
37
- order: guestOrder,
38
- orderToDelete: existingOrder,
39
- };
40
- }
41
- else {
42
- return {
43
- order: existingOrder,
44
- orderToDelete: guestOrder,
45
- };
46
- }
47
- }
48
- getLinesToInsert(guestOrder, existingOrder, mergedLines) {
49
- return guestOrder.lines
50
- .map(guestLine => {
51
- const mergedLine = mergedLines.find(ml => utils_1.idsAreEqual(ml.orderLineId, guestLine.id));
52
- if (!mergedLine) {
53
- return;
54
- }
55
- return {
56
- productVariantId: guestLine.productVariant.id,
57
- quantity: mergedLine.quantity,
58
- customFields: mergedLine.customFields,
59
- };
60
- })
61
- .filter(shared_utils_1.notNullOrUndefined);
62
- }
63
- getLinesToModify(guestOrder, existingOrder, mergedLines) {
64
- return existingOrder.lines
65
- .map(existingLine => {
66
- const mergedLine = mergedLines.find(ml => utils_1.idsAreEqual(ml.orderLineId, existingLine.id));
67
- if (!mergedLine) {
68
- return;
69
- }
70
- const lineIsModified = mergedLine.quantity !== existingLine.quantity ||
71
- JSON.stringify(mergedLine.customFields) !== JSON.stringify(existingLine.customFields);
72
- if (!lineIsModified) {
73
- return;
74
- }
75
- return {
76
- orderLineId: mergedLine.orderLineId,
77
- quantity: mergedLine.quantity,
78
- customFields: mergedLine.customFields,
79
- };
80
- })
81
- .filter(shared_utils_1.notNullOrUndefined);
82
- }
83
- getLinesToDelete(guestOrder, existingOrder, mergedLines) {
84
- return existingOrder.lines
85
- .filter(existingLine => !mergedLines.find(ml => utils_1.idsAreEqual(ml.orderLineId, existingLine.id)))
86
- .map(existingLine => ({ orderLineId: existingLine.id }));
87
- }
88
- orderEmpty(order) {
89
- return !order || !order.lines || !order.lines.length;
90
- }
91
- };
92
- OrderMerger = __decorate([
93
- common_1.Injectable(),
94
- __metadata("design:paramtypes", [config_service_1.ConfigService])
95
- ], OrderMerger);
96
- exports.OrderMerger = OrderMerger;
97
- //# sourceMappingURL=order-merger.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"order-merger.js","sourceRoot":"","sources":["../../../../src/service/helpers/order-merger/order-merger.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAE5C,mEAAsE;AAGtE,iDAAoD;AACpD,mEAA+D;AAiB/D,IAAa,WAAW,GAAxB,MAAa,WAAW;IACpB,YAAoB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAAG,CAAC;IAMpD,KAAK,CAAC,GAAmB,EAAE,UAAkB,EAAE,aAAqB;QAChE,IAAI,UAAU,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,aAAa,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE;YAChG,MAAM,EAAE,aAAa,EAAE,GAAG,IAAI,CAAC,aAAa,CAAC,YAAY,CAAC;YAC1D,MAAM,WAAW,GAAG,aAAa,CAAC,KAAK,CAAC,GAAG,EAAE,UAAU,EAAE,a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M,CAAC;IACzD,CAAC;CACJ,CAAA;AA9FY,WAAW;IADvB,mBAAU,EAAE;qCAE0B,8BAAa;GADvC,WAAW,CA8FvB;AA9FY,kCAAW"}
@@ -1,45 +0,0 @@
1
- import { ModifyOrderInput, ModifyOrderResult } from '@vendure/common/lib/generated-types';
2
- import { ID } from '@vendure/common/lib/shared-types';
3
- import { RequestContext } from '../../../api/common/request-context';
4
- import { JustErrorResults } from '../../../common/error/error-result';
5
- import { ConfigService } from '../../../config/config.service';
6
- import { TransactionalConnection } from '../../../connection/transactional-connection';
7
- import { OrderLine } from '../../../entity/order-line/order-line.entity';
8
- import { OrderModification } from '../../../entity/order-modification/order-modification.entity';
9
- import { Order } from '../../../entity/order/order.entity';
10
- import { ProductVariant } from '../../../entity/product-variant/product-variant.entity';
11
- import { EventBus } from '../../../event-bus/event-bus';
12
- import { CountryService } from '../../services/country.service';
13
- import { PaymentService } from '../../services/payment.service';
14
- import { ProductVariantService } from '../../services/product-variant.service';
15
- import { StockMovementService } from '../../services/stock-movement.service';
16
- import { CustomFieldRelationService } from '../custom-field-relation/custom-field-relation.service';
17
- import { OrderCalculator } from '../order-calculator/order-calculator';
18
- export declare class OrderModifier {
19
- private connection;
20
- private configService;
21
- private orderCalculator;
22
- private paymentService;
23
- private countryService;
24
- private stockMovementService;
25
- private productVariantService;
26
- private customFieldRelationService;
27
- private eventBus;
28
- constructor(connection: TransactionalConnection, configService: ConfigService, orderCalculator: OrderCalculator, paymentService: PaymentService, countryService: CountryService, stockMovementService: StockMovementService, productVariantService: ProductVariantService, customFieldRelationService: CustomFieldRelationService, eventBus: EventBus);
29
- constrainQuantityToSaleable(ctx: RequestContext, variant: ProductVariant, quantity: number, existingQuantity?: number): Promise<number>;
30
- getExistingOrderLine(ctx: RequestContext, order: Order, productVariantId: ID, customFields?: {
31
- [key: string]: any;
32
- }): Promise<OrderLine | undefined>;
33
- getOrCreateOrderLine(ctx: RequestContext, order: Order, productVariantId: ID, customFields?: {
34
- [key: string]: any;
35
- }): Promise<OrderLine>;
36
- updateOrderLineQuantity(ctx: RequestContext, orderLine: OrderLine, quantity: number, order: Order): Promise<OrderLine>;
37
- modifyOrder(ctx: RequestContext, input: ModifyOrderInput, order: Order): Promise<JustErrorResults<ModifyOrderResult> | {
38
- order: Order;
39
- modification: OrderModification;
40
- }>;
41
- private noChangesSpecified;
42
- private getOrderPayments;
43
- private customFieldsAreEqual;
44
- private getProductVariantOrThrow;
45
- }
@@ -1,423 +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.OrderModifier = void 0;
13
- const common_1 = require("@nestjs/common");
14
- const shared_utils_1 = require("@vendure/common/lib/shared-utils");
15
- const error_result_1 = require("../../../common/error/error-result");
16
- const errors_1 = require("../../../common/error/errors");
17
- const generated_graphql_admin_errors_1 = require("../../../common/error/generated-graphql-admin-errors");
18
- const generated_graphql_shop_errors_1 = require("../../../common/error/generated-graphql-shop-errors");
19
- const utils_1 = require("../../../common/utils");
20
- const config_service_1 = require("../../../config/config.service");
21
- const transactional_connection_1 = require("../../../connection/transactional-connection");
22
- const order_item_entity_1 = require("../../../entity/order-item/order-item.entity");
23
- const order_line_entity_1 = require("../../../entity/order-line/order-line.entity");
24
- const order_modification_entity_1 = require("../../../entity/order-modification/order-modification.entity");
25
- const order_entity_1 = require("../../../entity/order/order.entity");
26
- const payment_entity_1 = require("../../../entity/payment/payment.entity");
27
- const promotion_entity_1 = require("../../../entity/promotion/promotion.entity");
28
- const shipping_line_entity_1 = require("../../../entity/shipping-line/shipping-line.entity");
29
- const surcharge_entity_1 = require("../../../entity/surcharge/surcharge.entity");
30
- const event_bus_1 = require("../../../event-bus/event-bus");
31
- const index_1 = require("../../../event-bus/index");
32
- const country_service_1 = require("../../services/country.service");
33
- const payment_service_1 = require("../../services/payment.service");
34
- const product_variant_service_1 = require("../../services/product-variant.service");
35
- const stock_movement_service_1 = require("../../services/stock-movement.service");
36
- const custom_field_relation_service_1 = require("../custom-field-relation/custom-field-relation.service");
37
- const order_calculator_1 = require("../order-calculator/order-calculator");
38
- const patch_entity_1 = require("../utils/patch-entity");
39
- const translate_entity_1 = require("../utils/translate-entity");
40
- let OrderModifier = class OrderModifier {
41
- constructor(connection, configService, orderCalculator, paymentService, countryService, stockMovementService, productVariantService, customFieldRelationService, eventBus) {
42
- this.connection = connection;
43
- this.configService = configService;
44
- this.orderCalculator = orderCalculator;
45
- this.paymentService = paymentService;
46
- this.countryService = countryService;
47
- this.stockMovementService = stockMovementService;
48
- this.productVariantService = productVariantService;
49
- this.customFieldRelationService = customFieldRelationService;
50
- this.eventBus = eventBus;
51
- }
52
- async constrainQuantityToSaleable(ctx, variant, quantity, existingQuantity = 0) {
53
- let correctedQuantity = quantity + existingQuantity;
54
- const saleableStockLevel = await this.productVariantService.getSaleableStockLevel(ctx, variant);
55
- if (saleableStockLevel < correctedQuantity) {
56
- correctedQuantity = Math.max(saleableStockLevel - existingQuantity, 0);
57
- }
58
- return correctedQuantity;
59
- }
60
- async getExistingOrderLine(ctx, order, productVariantId, customFields) {
61
- for (const line of order.lines) {
62
- const match = utils_1.idsAreEqual(line.productVariant.id, productVariantId) &&
63
- (await this.customFieldsAreEqual(ctx, line, customFields, line.customFields));
64
- if (match) {
65
- return line;
66
- }
67
- }
68
- }
69
- async getOrCreateOrderLine(ctx, order, productVariantId, customFields) {
70
- const existingOrderLine = await this.getExistingOrderLine(ctx, order, productVariantId, customFields);
71
- if (existingOrderLine) {
72
- return existingOrderLine;
73
- }
74
- const productVariant = await this.getProductVariantOrThrow(ctx, productVariantId);
75
- const orderLine = await this.connection.getRepository(ctx, order_line_entity_1.OrderLine).save(new order_line_entity_1.OrderLine({
76
- productVariant,
77
- taxCategory: productVariant.taxCategory,
78
- featuredAsset: productVariant.product.featuredAsset,
79
- customFields,
80
- }));
81
- await this.customFieldRelationService.updateRelations(ctx, order_line_entity_1.OrderLine, { customFields }, orderLine);
82
- const lineWithRelations = await this.connection.getEntityOrThrow(ctx, order_line_entity_1.OrderLine, orderLine.id, {
83
- relations: [
84
- 'items',
85
- 'taxCategory',
86
- 'productVariant',
87
- 'productVariant.productVariantPrices',
88
- 'productVariant.taxCategory',
89
- ],
90
- });
91
- lineWithRelations.productVariant = translate_entity_1.translateDeep(await this.productVariantService.applyChannelPriceAndTax(lineWithRelations.productVariant, ctx, order), ctx.languageCode);
92
- order.lines.push(lineWithRelations);
93
- await this.connection.getRepository(ctx, order_entity_1.Order).save(order, { reload: false });
94
- this.eventBus.publish(new index_1.OrderLineEvent(ctx, order, lineWithRelations, 'created'));
95
- return lineWithRelations;
96
- }
97
- async updateOrderLineQuantity(ctx, orderLine, quantity, order) {
98
- const currentQuantity = orderLine.quantity;
99
- if (currentQuantity < quantity) {
100
- if (!orderLine.items) {
101
- orderLine.items = [];
102
- }
103
- const newOrderItems = [];
104
- for (let i = currentQuantity; i < quantity; i++) {
105
- newOrderItems.push(new order_item_entity_1.OrderItem({
106
- listPrice: orderLine.productVariant.listPrice,
107
- listPriceIncludesTax: orderLine.productVariant.listPriceIncludesTax,
108
- adjustments: [],
109
- taxLines: [],
110
- lineId: orderLine.id,
111
- }));
112
- }
113
- const { identifiers } = await this.connection
114
- .getRepository(ctx, order_item_entity_1.OrderItem)
115
- .createQueryBuilder()
116
- .insert()
117
- .into(order_item_entity_1.OrderItem)
118
- .values(newOrderItems)
119
- .execute();
120
- newOrderItems.forEach((item, i) => (item.id = identifiers[i].id));
121
- orderLine.items = await this.connection
122
- .getRepository(ctx, order_item_entity_1.OrderItem)
123
- .find({ where: { line: orderLine } });
124
- if (!order.active) {
125
- await this.stockMovementService.createAllocationsForOrderLines(ctx, [
126
- {
127
- orderLine,
128
- quantity: quantity - currentQuantity,
129
- },
130
- ]);
131
- }
132
- }
133
- else if (quantity < currentQuantity) {
134
- if (order.active) {
135
- const keepItems = orderLine.items.slice(0, quantity);
136
- const removeItems = orderLine.items.slice(quantity);
137
- orderLine.items = keepItems;
138
- await this.connection
139
- .getRepository(ctx, order_item_entity_1.OrderItem)
140
- .createQueryBuilder()
141
- .delete()
142
- .whereInIds(removeItems.map(i => i.id))
143
- .execute();
144
- }
145
- else {
146
- const toSetAsCancelled = orderLine.items.filter(i => !i.cancelled).slice(quantity);
147
- const fulfilledItems = toSetAsCancelled.filter(i => !!i.fulfillment);
148
- const allocatedItems = toSetAsCancelled.filter(i => !i.fulfillment);
149
- await this.stockMovementService.createCancellationsForOrderItems(ctx, fulfilledItems);
150
- await this.stockMovementService.createReleasesForOrderItems(ctx, allocatedItems);
151
- toSetAsCancelled.forEach(i => (i.cancelled = true));
152
- await this.connection.getRepository(ctx, order_item_entity_1.OrderItem).save(toSetAsCancelled, { reload: false });
153
- }
154
- }
155
- await this.connection.getRepository(ctx, order_line_entity_1.OrderLine).save(orderLine);
156
- this.eventBus.publish(new index_1.OrderLineEvent(ctx, order, orderLine, 'updated'));
157
- return orderLine;
158
- }
159
- async modifyOrder(ctx, input, order) {
160
- var _a, _b, _c, _d, _e, _f, _g;
161
- const { dryRun } = input;
162
- const modification = new order_modification_entity_1.OrderModification({
163
- order,
164
- note: input.note || '',
165
- orderItems: [],
166
- surcharges: [],
167
- });
168
- const initialTotalWithTax = order.totalWithTax;
169
- const initialShippingWithTax = order.shippingWithTax;
170
- if (order.state !== 'Modifying') {
171
- return new generated_graphql_admin_errors_1.OrderModificationStateError();
172
- }
173
- if (this.noChangesSpecified(input)) {
174
- return new generated_graphql_admin_errors_1.NoChangesSpecifiedError();
175
- }
176
- const { orderItemsLimit } = this.configService.orderOptions;
177
- let currentItemsCount = shared_utils_1.summate(order.lines, 'quantity');
178
- const updatedOrderLineIds = [];
179
- const refundInput = {
180
- lines: [],
181
- adjustment: 0,
182
- shipping: 0,
183
- paymentId: ((_a = input.refund) === null || _a === void 0 ? void 0 : _a.paymentId) || '',
184
- reason: ((_b = input.refund) === null || _b === void 0 ? void 0 : _b.reason) || input.note,
185
- orderItems: [],
186
- };
187
- for (const row of (_c = input.addItems) !== null && _c !== void 0 ? _c : []) {
188
- const { productVariantId, quantity } = row;
189
- if (quantity < 0) {
190
- return new generated_graphql_shop_errors_1.NegativeQuantityError();
191
- }
192
- const customFields = row.customFields || {};
193
- const orderLine = await this.getOrCreateOrderLine(ctx, order, productVariantId, customFields);
194
- const correctedQuantity = await this.constrainQuantityToSaleable(ctx, orderLine.productVariant, quantity);
195
- if (orderItemsLimit < currentItemsCount + correctedQuantity) {
196
- return new generated_graphql_shop_errors_1.OrderLimitError(orderItemsLimit);
197
- }
198
- else {
199
- currentItemsCount += correctedQuantity;
200
- }
201
- if (correctedQuantity < quantity) {
202
- return new generated_graphql_shop_errors_1.InsufficientStockError(correctedQuantity, order);
203
- }
204
- updatedOrderLineIds.push(orderLine.id);
205
- const initialQuantity = orderLine.quantity;
206
- await this.updateOrderLineQuantity(ctx, orderLine, initialQuantity + correctedQuantity, order);
207
- modification.orderItems.push(...orderLine.items.slice(initialQuantity));
208
- }
209
- for (const row of (_d = input.adjustOrderLines) !== null && _d !== void 0 ? _d : []) {
210
- const { orderLineId, quantity } = row;
211
- if (quantity < 0) {
212
- return new generated_graphql_shop_errors_1.NegativeQuantityError();
213
- }
214
- const orderLine = order.lines.find(line => utils_1.idsAreEqual(line.id, orderLineId));
215
- if (!orderLine) {
216
- throw new errors_1.UserInputError(`error.order-does-not-contain-line-with-id`, { id: orderLineId });
217
- }
218
- const initialLineQuantity = orderLine.quantity;
219
- let correctedQuantity = quantity;
220
- if (initialLineQuantity < quantity) {
221
- const additionalQuantity = await this.constrainQuantityToSaleable(ctx, orderLine.productVariant, quantity - initialLineQuantity);
222
- correctedQuantity = initialLineQuantity + additionalQuantity;
223
- }
224
- const resultingOrderTotalQuantity = currentItemsCount + correctedQuantity - orderLine.quantity;
225
- if (orderItemsLimit < resultingOrderTotalQuantity) {
226
- return new generated_graphql_shop_errors_1.OrderLimitError(orderItemsLimit);
227
- }
228
- else {
229
- currentItemsCount += correctedQuantity;
230
- }
231
- if (correctedQuantity < quantity) {
232
- return new generated_graphql_shop_errors_1.InsufficientStockError(correctedQuantity, order);
233
- }
234
- else {
235
- const customFields = row.customFields;
236
- if (customFields) {
237
- patch_entity_1.patchEntity(orderLine, { customFields });
238
- }
239
- await this.updateOrderLineQuantity(ctx, orderLine, quantity, order);
240
- if (correctedQuantity < initialLineQuantity) {
241
- const qtyDelta = initialLineQuantity - correctedQuantity;
242
- refundInput.lines.push({
243
- orderLineId: orderLine.id,
244
- quantity,
245
- });
246
- const cancelledOrderItems = orderLine.items.filter(i => i.cancelled).slice(0, qtyDelta);
247
- refundInput.orderItems.push(...cancelledOrderItems);
248
- modification.orderItems.push(...cancelledOrderItems);
249
- }
250
- else {
251
- const addedOrderItems = orderLine.items
252
- .filter(i => !i.cancelled)
253
- .slice(initialLineQuantity);
254
- modification.orderItems.push(...addedOrderItems);
255
- }
256
- }
257
- updatedOrderLineIds.push(orderLine.id);
258
- }
259
- for (const surchargeInput of (_e = input.surcharges) !== null && _e !== void 0 ? _e : []) {
260
- const taxLines = surchargeInput.taxRate != null
261
- ? [
262
- {
263
- taxRate: surchargeInput.taxRate,
264
- description: surchargeInput.taxDescription || '',
265
- },
266
- ]
267
- : [];
268
- const surcharge = await this.connection.getRepository(ctx, surcharge_entity_1.Surcharge).save(new surcharge_entity_1.Surcharge({
269
- sku: surchargeInput.sku || '',
270
- description: surchargeInput.description,
271
- listPrice: surchargeInput.price,
272
- listPriceIncludesTax: surchargeInput.priceIncludesTax,
273
- taxLines,
274
- order,
275
- }));
276
- order.surcharges.push(surcharge);
277
- modification.surcharges.push(surcharge);
278
- if (surcharge.priceWithTax < 0) {
279
- refundInput.adjustment += Math.abs(surcharge.priceWithTax);
280
- }
281
- }
282
- if ((_f = input.surcharges) === null || _f === void 0 ? void 0 : _f.length) {
283
- await this.connection.getRepository(ctx, order_entity_1.Order).save(order, { reload: false });
284
- }
285
- if (input.updateShippingAddress) {
286
- order.shippingAddress = Object.assign(Object.assign({}, order.shippingAddress), input.updateShippingAddress);
287
- if (input.updateShippingAddress.countryCode) {
288
- const country = await this.countryService.findOneByCode(ctx, input.updateShippingAddress.countryCode);
289
- order.shippingAddress.country = country.name;
290
- }
291
- await this.connection.getRepository(ctx, order_entity_1.Order).save(order, { reload: false });
292
- modification.shippingAddressChange = input.updateShippingAddress;
293
- }
294
- if (input.updateBillingAddress) {
295
- order.billingAddress = Object.assign(Object.assign({}, order.billingAddress), input.updateBillingAddress);
296
- if (input.updateBillingAddress.countryCode) {
297
- const country = await this.countryService.findOneByCode(ctx, input.updateBillingAddress.countryCode);
298
- order.billingAddress.country = country.name;
299
- }
300
- await this.connection.getRepository(ctx, order_entity_1.Order).save(order, { reload: false });
301
- modification.billingAddressChange = input.updateBillingAddress;
302
- }
303
- const updatedOrderLines = order.lines.filter(l => updatedOrderLineIds.includes(l.id));
304
- const promotions = await this.connection.getRepository(ctx, promotion_entity_1.Promotion).find({
305
- where: { enabled: true, deletedAt: null },
306
- order: { priorityScore: 'ASC' },
307
- });
308
- await this.orderCalculator.applyPriceAdjustments(ctx, order, promotions, updatedOrderLines, {
309
- recalculateShipping: (_g = input.options) === null || _g === void 0 ? void 0 : _g.recalculateShipping,
310
- });
311
- const orderCustomFields = input.customFields;
312
- if (orderCustomFields) {
313
- patch_entity_1.patchEntity(order, { customFields: orderCustomFields });
314
- }
315
- if (dryRun) {
316
- return { order, modification };
317
- }
318
- const newTotalWithTax = order.totalWithTax;
319
- const delta = newTotalWithTax - initialTotalWithTax;
320
- if (delta < 0) {
321
- if (!input.refund) {
322
- return new generated_graphql_admin_errors_1.RefundPaymentIdMissingError();
323
- }
324
- const shippingDelta = order.shippingWithTax - initialShippingWithTax;
325
- if (shippingDelta < 0) {
326
- refundInput.shipping = shippingDelta * -1;
327
- }
328
- const existingPayments = await this.getOrderPayments(ctx, order.id);
329
- const payment = existingPayments.find(p => { var _a; return utils_1.idsAreEqual(p.id, (_a = input.refund) === null || _a === void 0 ? void 0 : _a.paymentId); });
330
- if (payment) {
331
- const refund = await this.paymentService.createRefund(ctx, refundInput, order, refundInput.orderItems, payment);
332
- if (!error_result_1.isGraphQlErrorResult(refund)) {
333
- modification.refund = refund;
334
- }
335
- else {
336
- throw new errors_1.InternalServerError(refund.message);
337
- }
338
- }
339
- }
340
- modification.priceChange = delta;
341
- const createdModification = await this.connection
342
- .getRepository(ctx, order_modification_entity_1.OrderModification)
343
- .save(modification);
344
- await this.connection.getRepository(ctx, order_entity_1.Order).save(order);
345
- await this.connection.getRepository(ctx, order_item_entity_1.OrderItem).save(modification.orderItems, { reload: false });
346
- await this.connection.getRepository(ctx, shipping_line_entity_1.ShippingLine).save(order.shippingLines, { reload: false });
347
- return { order, modification: createdModification };
348
- }
349
- noChangesSpecified(input) {
350
- var _a, _b, _c;
351
- const noChanges = !((_a = input.adjustOrderLines) === null || _a === void 0 ? void 0 : _a.length) &&
352
- !((_b = input.addItems) === null || _b === void 0 ? void 0 : _b.length) &&
353
- !((_c = input.surcharges) === null || _c === void 0 ? void 0 : _c.length) &&
354
- !input.updateShippingAddress &&
355
- !input.updateBillingAddress &&
356
- !input.customFields;
357
- return noChanges;
358
- }
359
- getOrderPayments(ctx, orderId) {
360
- return this.connection.getRepository(ctx, payment_entity_1.Payment).find({
361
- relations: ['refunds'],
362
- where: {
363
- order: { id: orderId },
364
- },
365
- });
366
- }
367
- async customFieldsAreEqual(ctx, orderLine, inputCustomFields, existingCustomFields) {
368
- if (inputCustomFields == null && typeof existingCustomFields === 'object') {
369
- return Object.values(existingCustomFields).every(v => v === null);
370
- }
371
- const customFieldDefs = this.configService.customFields.OrderLine;
372
- const customFieldRelations = customFieldDefs.filter(d => d.type === 'relation');
373
- let lineWithCustomFieldRelations;
374
- if (customFieldRelations.length) {
375
- lineWithCustomFieldRelations = await this.connection
376
- .getRepository(ctx, order_line_entity_1.OrderLine)
377
- .findOne(orderLine.id, {
378
- relations: customFieldRelations.map(r => `customFields.${r.name}`),
379
- });
380
- }
381
- for (const def of customFieldDefs) {
382
- const key = def.name;
383
- const existingValue = existingCustomFields === null || existingCustomFields === void 0 ? void 0 : existingCustomFields[key];
384
- if (existingValue !== undefined) {
385
- const valuesMatch = JSON.stringify(inputCustomFields === null || inputCustomFields === void 0 ? void 0 : inputCustomFields[key]) === JSON.stringify(existingValue);
386
- const undefinedMatchesNull = existingValue === null && (inputCustomFields === null || inputCustomFields === void 0 ? void 0 : inputCustomFields[key]) === undefined;
387
- if (!valuesMatch && !undefinedMatchesNull) {
388
- return false;
389
- }
390
- }
391
- else if (def.type === 'relation') {
392
- const inputId = `${key}Id`;
393
- const inputValue = inputCustomFields === null || inputCustomFields === void 0 ? void 0 : inputCustomFields[inputId];
394
- const existingRelation = lineWithCustomFieldRelations.customFields[key];
395
- if (inputValue && inputValue !== (existingRelation === null || existingRelation === void 0 ? void 0 : existingRelation.id)) {
396
- return false;
397
- }
398
- }
399
- }
400
- return true;
401
- }
402
- async getProductVariantOrThrow(ctx, productVariantId) {
403
- const productVariant = await this.productVariantService.findOne(ctx, productVariantId);
404
- if (!productVariant) {
405
- throw new errors_1.EntityNotFoundError('ProductVariant', productVariantId);
406
- }
407
- return productVariant;
408
- }
409
- };
410
- OrderModifier = __decorate([
411
- common_1.Injectable(),
412
- __metadata("design:paramtypes", [transactional_connection_1.TransactionalConnection,
413
- config_service_1.ConfigService,
414
- order_calculator_1.OrderCalculator,
415
- payment_service_1.PaymentService,
416
- country_service_1.CountryService,
417
- stock_movement_service_1.StockMovementService,
418
- product_variant_service_1.ProductVariantService,
419
- custom_field_relation_service_1.CustomFieldRelationService,
420
- event_bus_1.EventBus])
421
- ], OrderModifier);
422
- exports.OrderModifier = OrderModifier;
423
- //# sourceMappingURL=order-modifier.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"order-modifier.js","sourceRoot":"","sources":["../../../../src/service/helpers/order-modifier/order-modifier.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAG5C,mEAA2D;AAG3D,qEAA4F;AAC5F,yDAAwG;AACxG,yGAI8D;AAC9D,uGAI6D;AAC7D,iDAAoD;AACpD,mEAA+D;AAC/D,2FAAuF;AACvF,oFAAyE;AACzE,oFAAyE;AACzE,4GAAiG;AACjG,qEAA2D;AAC3D,2EAAiE;AAEjE,iFAAuE;AACvE,6FAAkF;AAClF,iFAAuE;AACvE,4DAAwD;AACxD,oDAA0D;AAC1D,oEAAgE;AAChE,oEAAgE;AAChE,oFAA+E;AAC/E,kFAA6E;AAC7E,0GAAoG;AACpG,2EAAuE;AACvE,wDAAoD;AACpD,gEAA0D;AAc1D,IAAa,aAAa,GAA1B,MAAa,aAAa;IACtB,YACY,UAAmC,EACnC,aAA4B,EAC5B,eAAgC,EAChC,cAA8B,EAC9B,cAA8B,EAC9B,oBAA0C,EAC1C,qBAA4C,EAC5C,0BAAsD,EACtD,QAAkB;QARlB,eAAU,GAAV,UAAU,CAAyB;QACnC,kBAAa,GAAb,aAAa,CAAe;QAC5B,oBAAe,GAAf,eAAe,CAAiB;QAChC,mBAAc,GAAd,cAAc,CAAgB;QAC9B,mBAAc,GAAd,cAAc,CAAgB;QAC9B,yBAAoB,GAApB,oBAAoB,CAAsB;QAC1C,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,+BAA0B,GAA1B,0BAA0B,CAA4B;QACtD,aAAQ,GAAR,QAAQ,CAAU;IAC3B,CAAC;IAMJ,KAAK,CAAC,2B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