@vendure/core 2.0.0-next.2 → 2.0.0-next.21

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 (1580) hide show
  1. package/dist/api/api-internal-modules.d.ts +2 -1
  2. package/dist/api/api-internal-modules.js +4 -0
  3. package/dist/api/api-internal-modules.js.map +1 -1
  4. package/dist/api/common/configurable-operation-codec.js +2 -2
  5. package/dist/api/common/configurable-operation-codec.js.map +1 -1
  6. package/dist/api/common/custom-field-relation-resolver.service.d.ts +3 -1
  7. package/dist/api/common/custom-field-relation-resolver.service.js +7 -5
  8. package/dist/api/common/custom-field-relation-resolver.service.js.map +1 -1
  9. package/dist/api/common/id-codec.js +6 -2
  10. package/dist/api/common/id-codec.js.map +1 -1
  11. package/dist/api/config/generate-permissions.js +29 -4
  12. package/dist/api/config/generate-permissions.js.map +1 -1
  13. package/dist/api/config/generate-resolvers.d.ts +21 -0
  14. package/dist/api/config/generate-resolvers.js +16 -5
  15. package/dist/api/config/generate-resolvers.js.map +1 -1
  16. package/dist/api/config/graphql-custom-fields.js +16 -0
  17. package/dist/api/config/graphql-custom-fields.js.map +1 -1
  18. package/dist/api/decorators/allow.decorator.d.ts +11 -0
  19. package/dist/api/decorators/allow.decorator.js +11 -0
  20. package/dist/api/decorators/allow.decorator.js.map +1 -1
  21. package/dist/api/decorators/relations.decorator.d.ts +116 -0
  22. package/dist/api/decorators/relations.decorator.js +202 -0
  23. package/dist/api/decorators/relations.decorator.js.map +1 -0
  24. package/dist/api/decorators/request-context.decorator.js +9 -2
  25. package/dist/api/decorators/request-context.decorator.js.map +1 -1
  26. package/dist/api/index.d.ts +1 -0
  27. package/dist/api/index.js +1 -0
  28. package/dist/api/index.js.map +1 -1
  29. package/dist/api/middleware/transaction-interceptor.d.ts +9 -0
  30. package/dist/api/middleware/transaction-interceptor.js +16 -1
  31. package/dist/api/middleware/transaction-interceptor.js.map +1 -1
  32. package/dist/api/resolvers/admin/administrator.resolver.d.ts +3 -2
  33. package/dist/api/resolvers/admin/administrator.resolver.js +10 -6
  34. package/dist/api/resolvers/admin/administrator.resolver.js.map +1 -1
  35. package/dist/api/resolvers/admin/asset.resolver.d.ts +3 -2
  36. package/dist/api/resolvers/admin/asset.resolver.js +10 -6
  37. package/dist/api/resolvers/admin/asset.resolver.js.map +1 -1
  38. package/dist/api/resolvers/admin/channel.resolver.js +2 -2
  39. package/dist/api/resolvers/admin/channel.resolver.js.map +1 -1
  40. package/dist/api/resolvers/admin/collection.resolver.d.ts +8 -7
  41. package/dist/api/resolvers/admin/collection.resolver.js +73 -23
  42. package/dist/api/resolvers/admin/collection.resolver.js.map +1 -1
  43. package/dist/api/resolvers/admin/country.resolver.d.ts +3 -2
  44. package/dist/api/resolvers/admin/country.resolver.js +10 -6
  45. package/dist/api/resolvers/admin/country.resolver.js.map +1 -1
  46. package/dist/api/resolvers/admin/customer-group.resolver.d.ts +3 -2
  47. package/dist/api/resolvers/admin/customer-group.resolver.js +8 -4
  48. package/dist/api/resolvers/admin/customer-group.resolver.js.map +1 -1
  49. package/dist/api/resolvers/admin/customer.resolver.d.ts +6 -3
  50. package/dist/api/resolvers/admin/customer.resolver.js +23 -8
  51. package/dist/api/resolvers/admin/customer.resolver.js.map +1 -1
  52. package/dist/api/resolvers/admin/draft-order.resolver.d.ts +25 -0
  53. package/dist/api/resolvers/admin/draft-order.resolver.js +232 -0
  54. package/dist/api/resolvers/admin/draft-order.resolver.js.map +1 -0
  55. package/dist/api/resolvers/admin/facet.resolver.d.ts +8 -3
  56. package/dist/api/resolvers/admin/facet.resolver.js +49 -7
  57. package/dist/api/resolvers/admin/facet.resolver.js.map +1 -1
  58. package/dist/api/resolvers/admin/order.resolver.d.ts +8 -6
  59. package/dist/api/resolvers/admin/order.resolver.js +37 -11
  60. package/dist/api/resolvers/admin/order.resolver.js.map +1 -1
  61. package/dist/api/resolvers/admin/payment-method.resolver.d.ts +3 -2
  62. package/dist/api/resolvers/admin/payment-method.resolver.js +10 -6
  63. package/dist/api/resolvers/admin/payment-method.resolver.js.map +1 -1
  64. package/dist/api/resolvers/admin/product-option.resolver.d.ts +5 -3
  65. package/dist/api/resolvers/admin/product-option.resolver.js +21 -4
  66. package/dist/api/resolvers/admin/product-option.resolver.js.map +1 -1
  67. package/dist/api/resolvers/admin/product.resolver.d.ts +8 -4
  68. package/dist/api/resolvers/admin/product.resolver.js +56 -10
  69. package/dist/api/resolvers/admin/product.resolver.js.map +1 -1
  70. package/dist/api/resolvers/admin/promotion.resolver.d.ts +3 -2
  71. package/dist/api/resolvers/admin/promotion.resolver.js +9 -6
  72. package/dist/api/resolvers/admin/promotion.resolver.js.map +1 -1
  73. package/dist/api/resolvers/admin/role.resolver.d.ts +3 -2
  74. package/dist/api/resolvers/admin/role.resolver.js +10 -6
  75. package/dist/api/resolvers/admin/role.resolver.js.map +1 -1
  76. package/dist/api/resolvers/admin/shipping-method.resolver.d.ts +3 -2
  77. package/dist/api/resolvers/admin/shipping-method.resolver.js +10 -6
  78. package/dist/api/resolvers/admin/shipping-method.resolver.js.map +1 -1
  79. package/dist/api/resolvers/admin/tax-rate.resolver.d.ts +3 -2
  80. package/dist/api/resolvers/admin/tax-rate.resolver.js +10 -6
  81. package/dist/api/resolvers/admin/tax-rate.resolver.js.map +1 -1
  82. package/dist/api/resolvers/base/base-auth.resolver.d.ts +2 -2
  83. package/dist/api/resolvers/base/base-auth.resolver.js.map +1 -1
  84. package/dist/api/resolvers/entity/collection-entity.resolver.d.ts +8 -3
  85. package/dist/api/resolvers/entity/collection-entity.resolver.js +41 -6
  86. package/dist/api/resolvers/entity/collection-entity.resolver.js.map +1 -1
  87. package/dist/api/resolvers/entity/country-entity.resolver.d.ts +1 -0
  88. package/dist/api/resolvers/entity/country-entity.resolver.js +11 -0
  89. package/dist/api/resolvers/entity/country-entity.resolver.js.map +1 -1
  90. package/dist/api/resolvers/entity/customer-entity.resolver.d.ts +2 -1
  91. package/dist/api/resolvers/entity/customer-entity.resolver.js +5 -3
  92. package/dist/api/resolvers/entity/customer-entity.resolver.js.map +1 -1
  93. package/dist/api/resolvers/entity/facet-entity.resolver.d.ts +1 -0
  94. package/dist/api/resolvers/entity/facet-entity.resolver.js +11 -0
  95. package/dist/api/resolvers/entity/facet-entity.resolver.js.map +1 -1
  96. package/dist/api/resolvers/entity/facet-value-entity.resolver.d.ts +1 -0
  97. package/dist/api/resolvers/entity/facet-value-entity.resolver.js +11 -0
  98. package/dist/api/resolvers/entity/facet-value-entity.resolver.js.map +1 -1
  99. package/dist/api/resolvers/entity/fulfillment-entity.resolver.d.ts +8 -2
  100. package/dist/api/resolvers/entity/fulfillment-entity.resolver.js +17 -3
  101. package/dist/api/resolvers/entity/fulfillment-entity.resolver.js.map +1 -1
  102. package/dist/api/resolvers/entity/order-item-entity.resolver.d.ts +3 -1
  103. package/dist/api/resolvers/entity/order-item-entity.resolver.js +9 -3
  104. package/dist/api/resolvers/entity/order-item-entity.resolver.js.map +1 -1
  105. package/dist/api/resolvers/entity/order-line-entity.resolver.d.ts +8 -3
  106. package/dist/api/resolvers/entity/order-line-entity.resolver.js +36 -2
  107. package/dist/api/resolvers/entity/order-line-entity.resolver.js.map +1 -1
  108. package/dist/api/resolvers/entity/payment-entity.resolver.d.ts +3 -1
  109. package/dist/api/resolvers/entity/payment-entity.resolver.js +6 -3
  110. package/dist/api/resolvers/entity/payment-entity.resolver.js.map +1 -1
  111. package/dist/api/resolvers/entity/product-entity.resolver.d.ts +4 -2
  112. package/dist/api/resolvers/entity/product-entity.resolver.js +21 -6
  113. package/dist/api/resolvers/entity/product-entity.resolver.js.map +1 -1
  114. package/dist/api/resolvers/entity/product-option-entity.resolver.d.ts +1 -0
  115. package/dist/api/resolvers/entity/product-option-entity.resolver.js +11 -0
  116. package/dist/api/resolvers/entity/product-option-entity.resolver.js.map +1 -1
  117. package/dist/api/resolvers/entity/product-option-group-entity.resolver.d.ts +1 -0
  118. package/dist/api/resolvers/entity/product-option-group-entity.resolver.js +19 -3
  119. package/dist/api/resolvers/entity/product-option-group-entity.resolver.js.map +1 -1
  120. package/dist/api/resolvers/entity/product-variant-entity.resolver.d.ts +1 -0
  121. package/dist/api/resolvers/entity/product-variant-entity.resolver.js +12 -0
  122. package/dist/api/resolvers/entity/product-variant-entity.resolver.js.map +1 -1
  123. package/dist/api/resolvers/entity/shipping-method-entity.resolver.d.ts +10 -0
  124. package/dist/api/resolvers/entity/shipping-method-entity.resolver.js +64 -0
  125. package/dist/api/resolvers/entity/shipping-method-entity.resolver.js.map +1 -0
  126. package/dist/api/resolvers/shop/shop-order.resolver.d.ts +4 -3
  127. package/dist/api/resolvers/shop/shop-order.resolver.js +19 -19
  128. package/dist/api/resolvers/shop/shop-order.resolver.js.map +1 -1
  129. package/dist/api/resolvers/shop/shop-products.resolver.d.ts +8 -8
  130. package/dist/api/resolvers/shop/shop-products.resolver.js +38 -21
  131. package/dist/api/resolvers/shop/shop-products.resolver.js.map +1 -1
  132. package/dist/api/schema/admin-api/collection.api.graphql +27 -0
  133. package/dist/api/schema/admin-api/facet.api.graphql +30 -0
  134. package/dist/api/schema/admin-api/order.api.graphql +51 -0
  135. package/dist/api/schema/admin-api/product-option-group.api.graphql +2 -0
  136. package/dist/api/schema/admin-api/product.api.graphql +9 -0
  137. package/dist/api/schema/common/common-error-results.graphql +21 -0
  138. package/dist/api/schema/common/common-types.graphql +15 -0
  139. package/dist/api/schema/common/order.type.graphql +8 -0
  140. package/dist/api/schema/common/shipping-method.type.graphql +1 -0
  141. package/dist/api/schema/shop-api/shop-error-results.graphql +0 -21
  142. package/dist/api/schema/shop-api/shop.api.graphql +0 -13
  143. package/dist/bootstrap.js +10 -6
  144. package/dist/bootstrap.js.map +1 -1
  145. package/dist/common/calculated-decorator.d.ts +16 -3
  146. package/dist/common/calculated-decorator.js +3 -0
  147. package/dist/common/calculated-decorator.js.map +1 -1
  148. package/dist/common/configurable-operation.js +10 -5
  149. package/dist/common/configurable-operation.js.map +1 -1
  150. package/dist/common/constants.d.ts +1 -0
  151. package/dist/common/constants.js +2 -1
  152. package/dist/common/constants.js.map +1 -1
  153. package/dist/common/error/errors.d.ts +1 -0
  154. package/dist/common/error/errors.js.map +1 -1
  155. package/dist/common/error/generated-graphql-admin-errors.d.ts +61 -0
  156. package/dist/common/error/generated-graphql-admin-errors.js +86 -2
  157. package/dist/common/error/generated-graphql-admin-errors.js.map +1 -1
  158. package/dist/common/self-refreshing-cache.d.ts +5 -2
  159. package/dist/common/self-refreshing-cache.js +9 -7
  160. package/dist/common/self-refreshing-cache.js.map +1 -1
  161. package/dist/common/types/entity-relation-paths.d.ts +1 -1
  162. package/dist/config/asset-import-strategy/asset-import-strategy.d.ts +24 -0
  163. package/{cli/common/finite-state-machine/types.js → dist/config/asset-import-strategy/asset-import-strategy.js} +1 -1
  164. package/dist/config/asset-import-strategy/asset-import-strategy.js.map +1 -0
  165. package/dist/config/asset-import-strategy/default-asset-import-strategy.d.ts +24 -0
  166. package/dist/config/asset-import-strategy/default-asset-import-strategy.js +89 -0
  167. package/dist/config/asset-import-strategy/default-asset-import-strategy.js.map +1 -0
  168. package/dist/config/asset-naming-strategy/default-asset-naming-strategy.js +1 -1
  169. package/dist/config/asset-naming-strategy/default-asset-naming-strategy.js.map +1 -1
  170. package/dist/config/catalog/collection-filter.d.ts +32 -0
  171. package/dist/config/catalog/collection-filter.js +32 -0
  172. package/dist/config/catalog/collection-filter.js.map +1 -1
  173. package/dist/config/catalog/default-collection-filters.d.ts +100 -0
  174. package/dist/config/catalog/default-collection-filters.js +154 -21
  175. package/dist/config/catalog/default-collection-filters.js.map +1 -1
  176. package/dist/config/config-helpers.d.ts +4 -0
  177. package/dist/config/config-helpers.js +8 -1
  178. package/dist/config/config-helpers.js.map +1 -1
  179. package/dist/config/config.module.js +13 -0
  180. package/dist/config/config.module.js.map +1 -1
  181. package/dist/config/config.service.d.ts +2 -1
  182. package/dist/config/config.service.js +3 -0
  183. package/dist/config/config.service.js.map +1 -1
  184. package/dist/config/custom-field/custom-field-types.d.ts +3 -0
  185. package/dist/config/default-config.js +7 -0
  186. package/dist/config/default-config.js.map +1 -1
  187. package/dist/config/entity-id-strategy/entity-id-strategy.d.ts +7 -0
  188. package/dist/config/entity-metadata/add-foreign-key-indices.d.ts +12 -0
  189. package/dist/config/entity-metadata/add-foreign-key-indices.js +33 -0
  190. package/dist/config/entity-metadata/add-foreign-key-indices.js.map +1 -0
  191. package/dist/config/entity-metadata/entity-metadata-modifier.d.ts +55 -0
  192. package/{cli/common/types/injectable-strategy.js → dist/config/entity-metadata/entity-metadata-modifier.js} +1 -1
  193. package/dist/config/entity-metadata/entity-metadata-modifier.js.map +1 -0
  194. package/dist/config/fulfillment/custom-fulfillment-process.d.ts +2 -2
  195. package/dist/config/index.d.ts +4 -0
  196. package/dist/config/index.js +4 -0
  197. package/dist/config/index.js.map +1 -1
  198. package/dist/config/logger/vendure-logger.d.ts +1 -0
  199. package/dist/config/logger/vendure-logger.js.map +1 -1
  200. package/dist/config/order/changed-price-handling-strategy.d.ts +2 -1
  201. package/dist/config/order/custom-order-process.d.ts +2 -2
  202. package/dist/config/order/order-item-price-calculation-strategy.d.ts +5 -1
  203. package/dist/config/payment/custom-payment-process.d.ts +2 -2
  204. package/dist/config/payment/dummy-payment-method-handler.js +10 -2
  205. package/dist/config/payment/dummy-payment-method-handler.js.map +1 -1
  206. package/dist/config/payment/example-payment-method-handler.js +2 -2
  207. package/dist/config/payment/example-payment-method-handler.js.map +1 -1
  208. package/dist/config/payment/payment-method-eligibility-checker.d.ts +3 -3
  209. package/dist/config/payment/payment-method-eligibility-checker.js +2 -2
  210. package/dist/config/payment/payment-method-eligibility-checker.js.map +1 -1
  211. package/dist/config/payment/payment-method-handler.d.ts +73 -8
  212. package/dist/config/payment/payment-method-handler.js +17 -7
  213. package/dist/config/payment/payment-method-handler.js.map +1 -1
  214. package/dist/config/promotion/actions/facet-values-percentage-discount-action.d.ts +1 -1
  215. package/dist/config/promotion/actions/facet-values-percentage-discount-action.js +2 -2
  216. package/dist/config/promotion/actions/facet-values-percentage-discount-action.js.map +1 -1
  217. package/dist/config/promotion/actions/order-fixed-discount-action.js +2 -1
  218. package/dist/config/promotion/actions/order-fixed-discount-action.js.map +1 -1
  219. package/dist/config/promotion/actions/order-percentage-discount-action.d.ts +1 -1
  220. package/dist/config/promotion/actions/order-percentage-discount-action.js +1 -1
  221. package/dist/config/promotion/actions/order-percentage-discount-action.js.map +1 -1
  222. package/dist/config/promotion/actions/product-percentage-discount-action.d.ts +1 -1
  223. package/dist/config/promotion/actions/product-percentage-discount-action.js +1 -1
  224. package/dist/config/promotion/actions/product-percentage-discount-action.js.map +1 -1
  225. package/dist/config/promotion/conditions/has-facet-values-condition.js +1 -1
  226. package/dist/config/promotion/conditions/has-facet-values-condition.js.map +1 -1
  227. package/dist/config/promotion/index.d.ts +10 -2
  228. package/dist/config/promotion/promotion-action.d.ts +55 -7
  229. package/dist/config/promotion/promotion-action.js +24 -8
  230. package/dist/config/promotion/promotion-action.js.map +1 -1
  231. package/dist/config/promotion/promotion-condition.d.ts +3 -2
  232. package/dist/config/promotion/promotion-condition.js +2 -2
  233. package/dist/config/promotion/promotion-condition.js.map +1 -1
  234. package/dist/config/promotion/utils/facet-value-checker.d.ts +2 -1
  235. package/dist/config/promotion/utils/facet-value-checker.js +2 -2
  236. package/dist/config/promotion/utils/facet-value-checker.js.map +1 -1
  237. package/dist/config/session-cache/session-cache-strategy.d.ts +75 -1
  238. package/dist/config/shipping-method/shipping-calculator.d.ts +3 -3
  239. package/dist/config/shipping-method/shipping-calculator.js +2 -2
  240. package/dist/config/shipping-method/shipping-calculator.js.map +1 -1
  241. package/dist/config/shipping-method/shipping-eligibility-checker.d.ts +4 -4
  242. package/dist/config/shipping-method/shipping-eligibility-checker.js +5 -5
  243. package/dist/config/shipping-method/shipping-eligibility-checker.js.map +1 -1
  244. package/dist/config/system/health-check-strategy.d.ts +47 -0
  245. package/{cli/common/types/common-types.js → dist/config/system/health-check-strategy.js} +1 -1
  246. package/dist/config/system/health-check-strategy.js.map +1 -0
  247. package/dist/config/vendure-config.d.ts +57 -0
  248. package/dist/connection/connection.module.d.ts +1 -1
  249. package/dist/connection/remove-custom-fields-with-eager-relations.d.ts +34 -0
  250. package/dist/connection/remove-custom-fields-with-eager-relations.js +58 -0
  251. package/dist/connection/remove-custom-fields-with-eager-relations.js.map +1 -0
  252. package/dist/connection/transaction-subscriber.d.ts +16 -2
  253. package/dist/connection/transaction-subscriber.js +27 -6
  254. package/dist/connection/transaction-subscriber.js.map +1 -1
  255. package/dist/connection/transaction-wrapper.d.ts +5 -1
  256. package/dist/connection/transaction-wrapper.js +14 -11
  257. package/dist/connection/transaction-wrapper.js.map +1 -1
  258. package/dist/connection/transactional-connection.d.ts +9 -3
  259. package/dist/connection/transactional-connection.js +27 -8
  260. package/dist/connection/transactional-connection.js.map +1 -1
  261. package/dist/data-import/providers/asset-importer/asset-importer.js +12 -18
  262. package/dist/data-import/providers/asset-importer/asset-importer.js.map +1 -1
  263. package/dist/data-import/providers/importer/fast-importer.service.js +11 -5
  264. package/dist/data-import/providers/importer/fast-importer.service.js.map +1 -1
  265. package/dist/data-import/providers/importer/importer.d.ts +3 -2
  266. package/dist/data-import/providers/importer/importer.js +15 -9
  267. package/dist/data-import/providers/importer/importer.js.map +1 -1
  268. package/dist/data-import/providers/populator/populator.js +1 -1
  269. package/dist/data-import/providers/populator/populator.js.map +1 -1
  270. package/dist/entity/address/address.entity.js +2 -0
  271. package/dist/entity/address/address.entity.js.map +1 -1
  272. package/dist/entity/asset/orderable-asset.entity.js +1 -0
  273. package/dist/entity/asset/orderable-asset.entity.js.map +1 -1
  274. package/dist/entity/authentication-method/authentication-method.entity.js +1 -0
  275. package/dist/entity/authentication-method/authentication-method.entity.js.map +1 -1
  276. package/dist/entity/channel/channel.entity.js +2 -0
  277. package/dist/entity/channel/channel.entity.js.map +1 -1
  278. package/dist/entity/collection/collection-translation.entity.js +2 -0
  279. package/dist/entity/collection/collection-translation.entity.js.map +1 -1
  280. package/dist/entity/collection/collection.entity.js +1 -0
  281. package/dist/entity/collection/collection.entity.js.map +1 -1
  282. package/dist/entity/country/country-translation.entity.js +1 -0
  283. package/dist/entity/country/country-translation.entity.js.map +1 -1
  284. package/dist/entity/facet/facet-translation.entity.js +1 -0
  285. package/dist/entity/facet/facet-translation.entity.js.map +1 -1
  286. package/dist/entity/facet-value/facet-value-translation.entity.js +1 -0
  287. package/dist/entity/facet-value/facet-value-translation.entity.js.map +1 -1
  288. package/dist/entity/facet-value/facet-value.entity.js +1 -0
  289. package/dist/entity/facet-value/facet-value.entity.js.map +1 -1
  290. package/dist/entity/history-entry/customer-history-entry.entity.js +1 -0
  291. package/dist/entity/history-entry/customer-history-entry.entity.js.map +1 -1
  292. package/dist/entity/history-entry/history-entry.entity.js +1 -0
  293. package/dist/entity/history-entry/history-entry.entity.js.map +1 -1
  294. package/dist/entity/history-entry/order-history-entry.entity.js +1 -0
  295. package/dist/entity/history-entry/order-history-entry.entity.js.map +1 -1
  296. package/dist/entity/order/order.entity.js +10 -5
  297. package/dist/entity/order/order.entity.js.map +1 -1
  298. package/dist/entity/order-item/order-item.entity.js +2 -0
  299. package/dist/entity/order-item/order-item.entity.js.map +1 -1
  300. package/dist/entity/order-line/order-line.entity.js +30 -22
  301. package/dist/entity/order-line/order-line.entity.js.map +1 -1
  302. package/dist/entity/order-modification/order-modification.entity.js +1 -0
  303. package/dist/entity/order-modification/order-modification.entity.js.map +1 -1
  304. package/dist/entity/payment/payment.entity.js +1 -0
  305. package/dist/entity/payment/payment.entity.js.map +1 -1
  306. package/dist/entity/product/product-translation.entity.js +2 -0
  307. package/dist/entity/product/product-translation.entity.js.map +1 -1
  308. package/dist/entity/product/product.entity.js +1 -0
  309. package/dist/entity/product/product.entity.js.map +1 -1
  310. package/dist/entity/product-option/product-option-translation.entity.js +1 -0
  311. package/dist/entity/product-option/product-option-translation.entity.js.map +1 -1
  312. package/dist/entity/product-option/product-option.entity.js +1 -0
  313. package/dist/entity/product-option/product-option.entity.js.map +1 -1
  314. package/dist/entity/product-option-group/product-option-group-translation.entity.js +1 -0
  315. package/dist/entity/product-option-group/product-option-group-translation.entity.js.map +1 -1
  316. package/dist/entity/product-option-group/product-option-group.entity.js +1 -0
  317. package/dist/entity/product-option-group/product-option-group.entity.js.map +1 -1
  318. package/dist/entity/product-variant/product-variant-price.entity.js +1 -0
  319. package/dist/entity/product-variant/product-variant-price.entity.js.map +1 -1
  320. package/dist/entity/product-variant/product-variant-translation.entity.js +1 -0
  321. package/dist/entity/product-variant/product-variant-translation.entity.js.map +1 -1
  322. package/dist/entity/product-variant/product-variant.entity.js +3 -0
  323. package/dist/entity/product-variant/product-variant.entity.js.map +1 -1
  324. package/dist/entity/promotion/promotion.entity.d.ts +2 -0
  325. package/dist/entity/promotion/promotion.entity.js +16 -4
  326. package/dist/entity/promotion/promotion.entity.js.map +1 -1
  327. package/dist/entity/refund/refund.entity.js +1 -0
  328. package/dist/entity/refund/refund.entity.js.map +1 -1
  329. package/dist/entity/register-custom-entity-fields.js +17 -2
  330. package/dist/entity/register-custom-entity-fields.js.map +1 -1
  331. package/dist/entity/run-entity-metadata-modifiers.d.ts +2 -0
  332. package/dist/entity/run-entity-metadata-modifiers.js +15 -0
  333. package/dist/entity/run-entity-metadata-modifiers.js.map +1 -0
  334. package/dist/entity/session/authenticated-session.entity.js +1 -0
  335. package/dist/entity/session/authenticated-session.entity.js.map +1 -1
  336. package/dist/entity/session/session.entity.js +2 -0
  337. package/dist/entity/session/session.entity.js.map +1 -1
  338. package/dist/entity/shipping-line/shipping-line.entity.js +2 -0
  339. package/dist/entity/shipping-line/shipping-line.entity.js.map +1 -1
  340. package/dist/entity/shipping-method/shipping-method-translation.entity.js +1 -0
  341. package/dist/entity/shipping-method/shipping-method-translation.entity.js.map +1 -1
  342. package/dist/entity/shipping-method/shipping-method.entity.js +2 -2
  343. package/dist/entity/shipping-method/shipping-method.entity.js.map +1 -1
  344. package/dist/entity/stock-movement/allocation.entity.js +1 -0
  345. package/dist/entity/stock-movement/allocation.entity.js.map +1 -1
  346. package/dist/entity/stock-movement/cancellation.entity.js.map +1 -1
  347. package/dist/entity/stock-movement/release.entity.js +1 -0
  348. package/dist/entity/stock-movement/release.entity.js.map +1 -1
  349. package/dist/entity/stock-movement/sale.entity.js.map +1 -1
  350. package/dist/entity/stock-movement/stock-movement.entity.js +1 -0
  351. package/dist/entity/stock-movement/stock-movement.entity.js.map +1 -1
  352. package/dist/entity/surcharge/surcharge.entity.js +2 -0
  353. package/dist/entity/surcharge/surcharge.entity.js.map +1 -1
  354. package/dist/entity/tax-rate/tax-rate.entity.js +3 -0
  355. package/dist/entity/tax-rate/tax-rate.entity.js.map +1 -1
  356. package/dist/event-bus/event-bus.js +24 -4
  357. package/dist/event-bus/event-bus.js.map +1 -1
  358. package/dist/event-bus/events/initializer-event.d.ts +12 -0
  359. package/dist/event-bus/events/initializer-event.js +19 -0
  360. package/dist/event-bus/events/initializer-event.js.map +1 -0
  361. package/dist/event-bus/events/product-option-event.d.ts +1 -1
  362. package/dist/event-bus/events/product-option-event.js.map +1 -1
  363. package/dist/event-bus/events/product-option-group-event.d.ts +1 -1
  364. package/dist/event-bus/events/product-option-group-event.js.map +1 -1
  365. package/dist/event-bus/events/role-event.d.ts +1 -1
  366. package/dist/event-bus/events/role-event.js +1 -1
  367. package/dist/event-bus/events/search-event.d.ts +20 -0
  368. package/dist/event-bus/events/search-event.js +21 -0
  369. package/dist/event-bus/events/search-event.js.map +1 -0
  370. package/dist/event-bus/index.d.ts +2 -0
  371. package/dist/event-bus/index.js +2 -0
  372. package/dist/event-bus/index.js.map +1 -1
  373. package/dist/health-check/health-check-registry.service.d.ts +7 -1
  374. package/dist/health-check/health-check-registry.service.js +7 -1
  375. package/dist/health-check/health-check-registry.service.js.map +1 -1
  376. package/dist/health-check/health-check.module.d.ts +1 -3
  377. package/dist/health-check/health-check.module.js +6 -5
  378. package/dist/health-check/health-check.module.js.map +1 -1
  379. package/dist/health-check/http-health-check-strategy.d.ts +36 -0
  380. package/dist/health-check/http-health-check-strategy.js +41 -0
  381. package/dist/health-check/http-health-check-strategy.js.map +1 -0
  382. package/dist/health-check/index.d.ts +2 -0
  383. package/dist/health-check/index.js +2 -0
  384. package/dist/health-check/index.js.map +1 -1
  385. package/dist/health-check/typeorm-health-check-strategy.d.ts +36 -0
  386. package/dist/health-check/typeorm-health-check-strategy.js +44 -0
  387. package/dist/health-check/typeorm-health-check-strategy.js.map +1 -0
  388. package/dist/i18n/messages/en.json +8 -1
  389. package/dist/job-queue/subscribable-job.d.ts +23 -6
  390. package/dist/job-queue/subscribable-job.js +4 -4
  391. package/dist/job-queue/subscribable-job.js.map +1 -1
  392. package/dist/migrate.js +14 -0
  393. package/dist/migrate.js.map +1 -1
  394. package/dist/plugin/default-job-queue-plugin/sql-job-buffer-storage-strategy.js +5 -3
  395. package/dist/plugin/default-job-queue-plugin/sql-job-buffer-storage-strategy.js.map +1 -1
  396. package/dist/plugin/default-search-plugin/default-search-plugin.d.ts +9 -3
  397. package/dist/plugin/default-search-plugin/default-search-plugin.js +25 -2
  398. package/dist/plugin/default-search-plugin/default-search-plugin.js.map +1 -1
  399. package/dist/plugin/default-search-plugin/fulltext-search.service.d.ts +3 -1
  400. package/dist/plugin/default-search-plugin/fulltext-search.service.js +32 -19
  401. package/dist/plugin/default-search-plugin/fulltext-search.service.js.map +1 -1
  402. package/dist/plugin/default-search-plugin/indexer/indexer.controller.js +31 -25
  403. package/dist/plugin/default-search-plugin/indexer/indexer.controller.js.map +1 -1
  404. package/dist/plugin/default-search-plugin/indexer/search-index.service.js +1 -1
  405. package/dist/plugin/default-search-plugin/indexer/search-index.service.js.map +1 -1
  406. package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.d.ts +4 -4
  407. package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +57 -43
  408. package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js.map +1 -1
  409. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.d.ts +4 -4
  410. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js +19 -15
  411. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js.map +1 -1
  412. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-common.d.ts +1 -0
  413. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-common.js +8 -1
  414. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-common.js.map +1 -1
  415. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.d.ts +11 -1
  416. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.js +31 -1
  417. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.js.map +1 -1
  418. package/dist/plugin/default-search-plugin/search-strategy/search-strategy.d.ts +2 -1
  419. package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.d.ts +4 -4
  420. package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js +40 -36
  421. package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js.map +1 -1
  422. package/dist/plugin/default-search-plugin/types.d.ts +85 -1
  423. package/dist/plugin/plugin-metadata.js +2 -1
  424. package/dist/plugin/plugin-metadata.js.map +1 -1
  425. package/dist/plugin/vendure-plugin.d.ts +11 -2
  426. package/dist/plugin/vendure-plugin.js.map +1 -1
  427. package/dist/service/helpers/config-arg/config-arg.service.d.ts +1 -0
  428. package/dist/service/helpers/config-arg/config-arg.service.js +12 -1
  429. package/dist/service/helpers/config-arg/config-arg.service.js.map +1 -1
  430. package/dist/service/helpers/entity-hydrator/entity-hydrator.service.d.ts +3 -1
  431. package/dist/service/helpers/entity-hydrator/entity-hydrator.service.js +6 -4
  432. package/dist/service/helpers/entity-hydrator/entity-hydrator.service.js.map +1 -1
  433. package/dist/service/helpers/external-authentication/external-authentication.service.js +1 -1
  434. package/dist/service/helpers/external-authentication/external-authentication.service.js.map +1 -1
  435. package/dist/service/helpers/fulfillment-state-machine/fulfillment-state.d.ts +9 -1
  436. package/dist/service/helpers/fulfillment-state-machine/fulfillment-state.js.map +1 -1
  437. package/dist/service/helpers/list-query-builder/connection-utils.js +7 -1
  438. package/dist/service/helpers/list-query-builder/connection-utils.js.map +1 -1
  439. package/dist/service/helpers/list-query-builder/list-query-builder.d.ts +61 -6
  440. package/dist/service/helpers/list-query-builder/list-query-builder.js +204 -29
  441. package/dist/service/helpers/list-query-builder/list-query-builder.js.map +1 -1
  442. package/dist/service/helpers/list-query-builder/parse-channel-param.d.ts +1 -1
  443. package/dist/service/helpers/list-query-builder/parse-channel-param.js +2 -2
  444. package/dist/service/helpers/list-query-builder/parse-channel-param.js.map +1 -1
  445. package/dist/service/helpers/list-query-builder/parse-filter-params.d.ts +1 -1
  446. package/dist/service/helpers/list-query-builder/parse-filter-params.js +3 -2
  447. package/dist/service/helpers/list-query-builder/parse-filter-params.js.map +1 -1
  448. package/dist/service/helpers/list-query-builder/parse-sort-params.d.ts +2 -1
  449. package/dist/service/helpers/list-query-builder/parse-sort-params.js +12 -4
  450. package/dist/service/helpers/list-query-builder/parse-sort-params.js.map +1 -1
  451. package/dist/service/helpers/locale-string-hydrator/locale-string-hydrator.d.ts +7 -2
  452. package/dist/service/helpers/locale-string-hydrator/locale-string-hydrator.js +10 -5
  453. package/dist/service/helpers/locale-string-hydrator/locale-string-hydrator.js.map +1 -1
  454. package/dist/service/helpers/order-calculator/order-calculator.d.ts +19 -0
  455. package/dist/service/helpers/order-calculator/order-calculator.js +33 -4
  456. package/dist/service/helpers/order-calculator/order-calculator.js.map +1 -1
  457. package/dist/service/helpers/order-calculator/prorate.js +1 -1
  458. package/dist/service/helpers/order-calculator/prorate.js.map +1 -1
  459. package/dist/service/helpers/order-modifier/order-modifier.d.ts +19 -1
  460. package/dist/service/helpers/order-modifier/order-modifier.js +67 -26
  461. package/dist/service/helpers/order-modifier/order-modifier.js.map +1 -1
  462. package/dist/service/helpers/order-state-machine/order-state-machine.js +1 -2
  463. package/dist/service/helpers/order-state-machine/order-state-machine.js.map +1 -1
  464. package/dist/service/helpers/order-state-machine/order-state.d.ts +9 -1
  465. package/dist/service/helpers/order-state-machine/order-state.js +4 -1
  466. package/dist/service/helpers/order-state-machine/order-state.js.map +1 -1
  467. package/dist/service/helpers/payment-state-machine/payment-state.d.ts +9 -1
  468. package/dist/service/helpers/payment-state-machine/payment-state.js.map +1 -1
  469. package/dist/service/helpers/product-price-applicator/product-price-applicator.d.ts +26 -2
  470. package/dist/service/helpers/product-price-applicator/product-price-applicator.js +26 -2
  471. package/dist/service/helpers/product-price-applicator/product-price-applicator.js.map +1 -1
  472. package/dist/service/helpers/slug-validator/slug-validator.d.ts +16 -0
  473. package/dist/service/helpers/slug-validator/slug-validator.js +26 -7
  474. package/dist/service/helpers/slug-validator/slug-validator.js.map +1 -1
  475. package/dist/service/helpers/translatable-saver/translatable-saver.d.ts +28 -1
  476. package/dist/service/helpers/translatable-saver/translatable-saver.js +28 -1
  477. package/dist/service/helpers/translatable-saver/translatable-saver.js.map +1 -1
  478. package/dist/service/helpers/translator/translator.service.d.ts +10 -0
  479. package/{cli/service/helpers/password-cipher/password-cipher.js → dist/service/helpers/translator/translator.service.js} +12 -14
  480. package/dist/service/helpers/translator/translator.service.js.map +1 -0
  481. package/dist/service/helpers/utils/translate-entity.d.ts +3 -3
  482. package/dist/service/helpers/utils/translate-entity.js +12 -4
  483. package/dist/service/helpers/utils/translate-entity.js.map +1 -1
  484. package/dist/service/index.d.ts +3 -0
  485. package/dist/service/index.js +3 -0
  486. package/dist/service/index.js.map +1 -1
  487. package/dist/service/initializer.service.d.ts +3 -1
  488. package/dist/service/initializer.service.js +8 -3
  489. package/dist/service/initializer.service.js.map +1 -1
  490. package/dist/service/service.module.js +2 -0
  491. package/dist/service/service.module.js.map +1 -1
  492. package/dist/service/services/administrator.service.d.ts +4 -3
  493. package/dist/service/services/administrator.service.js +16 -13
  494. package/dist/service/services/administrator.service.js.map +1 -1
  495. package/dist/service/services/asset.service.d.ts +5 -3
  496. package/dist/service/services/asset.service.js +25 -8
  497. package/dist/service/services/asset.service.js.map +1 -1
  498. package/dist/service/services/channel.service.d.ts +2 -1
  499. package/dist/service/services/channel.service.js +29 -18
  500. package/dist/service/services/channel.service.js.map +1 -1
  501. package/dist/service/services/collection.service.d.ts +23 -6
  502. package/dist/service/services/collection.service.js +133 -30
  503. package/dist/service/services/collection.service.js.map +1 -1
  504. package/dist/service/services/country.service.d.ts +6 -3
  505. package/dist/service/services/country.service.js +13 -11
  506. package/dist/service/services/country.service.js.map +1 -1
  507. package/dist/service/services/customer-group.service.d.ts +6 -3
  508. package/dist/service/services/customer-group.service.js +13 -7
  509. package/dist/service/services/customer-group.service.js.map +1 -1
  510. package/dist/service/services/customer.service.d.ts +15 -3
  511. package/dist/service/services/customer.service.js +44 -11
  512. package/dist/service/services/customer.service.js.map +1 -1
  513. package/dist/service/services/facet-value.service.d.ts +8 -2
  514. package/dist/service/services/facet-value.service.js +38 -16
  515. package/dist/service/services/facet-value.service.js.map +1 -1
  516. package/dist/service/services/facet.service.d.ts +24 -4
  517. package/dist/service/services/facet.service.js +109 -16
  518. package/dist/service/services/facet.service.js.map +1 -1
  519. package/dist/service/services/fulfillment.service.d.ts +9 -0
  520. package/dist/service/services/fulfillment.service.js +48 -8
  521. package/dist/service/services/fulfillment.service.js.map +1 -1
  522. package/dist/service/services/global-settings.service.js +5 -3
  523. package/dist/service/services/global-settings.service.js.map +1 -1
  524. package/dist/service/services/order-testing.service.d.ts +3 -1
  525. package/dist/service/services/order-testing.service.js +7 -5
  526. package/dist/service/services/order-testing.service.js.map +1 -1
  527. package/dist/service/services/order.service.d.ts +29 -10
  528. package/dist/service/services/order.service.js +188 -106
  529. package/dist/service/services/order.service.js.map +1 -1
  530. package/dist/service/services/payment-method.service.d.ts +6 -3
  531. package/dist/service/services/payment-method.service.js +15 -8
  532. package/dist/service/services/payment-method.service.js.map +1 -1
  533. package/dist/service/services/payment.service.d.ts +2 -0
  534. package/dist/service/services/payment.service.js +34 -14
  535. package/dist/service/services/payment.service.js.map +1 -1
  536. package/dist/service/services/product-option-group.service.d.ts +27 -4
  537. package/dist/service/services/product-option-group.service.js +96 -10
  538. package/dist/service/services/product-option-group.service.js.map +1 -1
  539. package/dist/service/services/product-option.service.d.ts +15 -2
  540. package/dist/service/services/product-option.service.js +66 -5
  541. package/dist/service/services/product-option.service.js.map +1 -1
  542. package/dist/service/services/product-variant.service.d.ts +14 -4
  543. package/dist/service/services/product-variant.service.js +69 -62
  544. package/dist/service/services/product-variant.service.js.map +1 -1
  545. package/dist/service/services/product.service.d.ts +10 -5
  546. package/dist/service/services/product.service.js +74 -34
  547. package/dist/service/services/product.service.js.map +1 -1
  548. package/dist/service/services/promotion.service.d.ts +11 -3
  549. package/dist/service/services/promotion.service.js +57 -9
  550. package/dist/service/services/promotion.service.js.map +1 -1
  551. package/dist/service/services/role.service.d.ts +10 -4
  552. package/dist/service/services/role.service.js +29 -14
  553. package/dist/service/services/role.service.js.map +1 -1
  554. package/dist/service/services/session.service.js +7 -7
  555. package/dist/service/services/session.service.js.map +1 -1
  556. package/dist/service/services/shipping-method.service.d.ts +6 -3
  557. package/dist/service/services/shipping-method.service.js +14 -12
  558. package/dist/service/services/shipping-method.service.js.map +1 -1
  559. package/dist/service/services/stock-movement.service.js +8 -7
  560. package/dist/service/services/stock-movement.service.js.map +1 -1
  561. package/dist/service/services/tax-rate.service.d.ts +3 -2
  562. package/dist/service/services/tax-rate.service.js +4 -4
  563. package/dist/service/services/tax-rate.service.js.map +1 -1
  564. package/dist/service/services/user.service.d.ts +1 -1
  565. package/dist/service/services/user.service.js +15 -1
  566. package/dist/service/services/user.service.js.map +1 -1
  567. package/dist/service/services/zone.service.d.ts +5 -3
  568. package/dist/service/services/zone.service.js +10 -8
  569. package/dist/service/services/zone.service.js.map +1 -1
  570. package/package.json +6 -5
  571. package/cli/api/common/extract-session-token.d.ts +0 -3
  572. package/cli/api/common/extract-session-token.js +0 -35
  573. package/cli/api/common/extract-session-token.js.map +0 -1
  574. package/cli/api/common/get-api-type.d.ts +0 -3
  575. package/cli/api/common/get-api-type.js +0 -12
  576. package/cli/api/common/get-api-type.js.map +0 -1
  577. package/cli/api/common/graphql-value-transformer.d.ts +0 -30
  578. package/cli/api/common/graphql-value-transformer.js +0 -199
  579. package/cli/api/common/graphql-value-transformer.js.map +0 -1
  580. package/cli/api/common/id-codec.d.ts +0 -11
  581. package/cli/api/common/id-codec.js +0 -94
  582. package/cli/api/common/id-codec.js.map +0 -1
  583. package/cli/api/common/id-codec.service.d.ts +0 -7
  584. package/cli/api/common/id-codec.service.js +0 -33
  585. package/cli/api/common/id-codec.service.js.map +0 -1
  586. package/cli/api/common/parse-context.d.ts +0 -16
  587. package/cli/api/common/parse-context.js +0 -39
  588. package/cli/api/common/parse-context.js.map +0 -1
  589. package/cli/api/common/request-context.d.ts +0 -55
  590. package/cli/api/common/request-context.js +0 -143
  591. package/cli/api/common/request-context.js.map +0 -1
  592. package/cli/api/common/set-session-token.d.ts +0 -9
  593. package/cli/api/common/set-session-token.js +0 -27
  594. package/cli/api/common/set-session-token.js.map +0 -1
  595. package/cli/api/decorators/allow.decorator.d.ts +0 -3
  596. package/cli/api/decorators/allow.decorator.js +0 -8
  597. package/cli/api/decorators/allow.decorator.js.map +0 -1
  598. package/cli/api/decorators/api.decorator.d.ts +0 -1
  599. package/cli/api/decorators/api.decorator.js +0 -10
  600. package/cli/api/decorators/api.decorator.js.map +0 -1
  601. package/cli/api/decorators/request-context.decorator.d.ts +0 -1
  602. package/cli/api/decorators/request-context.decorator.js +0 -14
  603. package/cli/api/decorators/request-context.decorator.js.map +0 -1
  604. package/cli/api/decorators/transaction.decorator.d.ts +0 -3
  605. package/cli/api/decorators/transaction.decorator.js +0 -11
  606. package/cli/api/decorators/transaction.decorator.js.map +0 -1
  607. package/cli/api/index.d.ts +0 -11
  608. package/cli/api/index.js +0 -23
  609. package/cli/api/index.js.map +0 -1
  610. package/cli/api/middleware/auth-guard.d.ts +0 -21
  611. package/cli/api/middleware/auth-guard.js +0 -151
  612. package/cli/api/middleware/auth-guard.js.map +0 -1
  613. package/cli/api/middleware/exception-logger.filter.d.ts +0 -6
  614. package/cli/api/middleware/exception-logger.filter.js +0 -82
  615. package/cli/api/middleware/exception-logger.filter.js.map +0 -1
  616. package/cli/api/middleware/id-interceptor.d.ts +0 -12
  617. package/cli/api/middleware/id-interceptor.js +0 -56
  618. package/cli/api/middleware/id-interceptor.js.map +0 -1
  619. package/cli/api/middleware/transaction-interceptor.d.ts +0 -12
  620. package/cli/api/middleware/transaction-interceptor.js +0 -46
  621. package/cli/api/middleware/transaction-interceptor.js.map +0 -1
  622. package/cli/api/resolvers/admin/search.resolver.d.ts +0 -17
  623. package/cli/api/resolvers/admin/search.resolver.js +0 -81
  624. package/cli/api/resolvers/admin/search.resolver.js.map +0 -1
  625. package/cli/cache/index.d.ts +0 -1
  626. package/cli/cache/index.js +0 -14
  627. package/cli/cache/index.js.map +0 -1
  628. package/cli/cache/request-context-cache.service.d.ts +0 -9
  629. package/cli/cache/request-context-cache.service.js +0 -39
  630. package/cli/cache/request-context-cache.service.js.map +0 -1
  631. package/cli/cli/cli-utils.d.ts +0 -1
  632. package/cli/cli/cli-utils.js +0 -8
  633. package/cli/cli/cli-utils.js.map +0 -1
  634. package/cli/cli/index.d.ts +0 -1
  635. package/cli/cli/index.js +0 -14
  636. package/cli/cli/index.js.map +0 -1
  637. package/cli/cli/populate.d.ts +0 -5
  638. package/cli/cli/populate.js +0 -106
  639. package/cli/cli/populate.js.map +0 -1
  640. package/cli/cli/vendure-cli.d.ts +0 -2
  641. package/cli/cli/vendure-cli.js +0 -119
  642. package/cli/cli/vendure-cli.js.map +0 -1
  643. package/cli/common/async-queue.d.ts +0 -17
  644. package/cli/common/async-queue.js +0 -56
  645. package/cli/common/async-queue.js.map +0 -1
  646. package/cli/common/calculated-decorator.d.ts +0 -12
  647. package/cli/common/calculated-decorator.js +0 -22
  648. package/cli/common/calculated-decorator.js.map +0 -1
  649. package/cli/common/configurable-operation.d.ts +0 -53
  650. package/cli/common/configurable-operation.js +0 -96
  651. package/cli/common/configurable-operation.js.map +0 -1
  652. package/cli/common/constants.d.ts +0 -7
  653. package/cli/common/constants.js +0 -66
  654. package/cli/common/constants.js.map +0 -1
  655. package/cli/common/error/error-result.d.ts +0 -8
  656. package/cli/common/error/error-result.js +0 -11
  657. package/cli/common/error/error-result.js.map +0 -1
  658. package/cli/common/error/errors.d.ts +0 -31
  659. package/cli/common/error/errors.js +0 -48
  660. package/cli/common/error/errors.js.map +0 -1
  661. package/cli/common/error/generated-graphql-admin-errors.d.ts +0 -309
  662. package/cli/common/error/generated-graphql-admin-errors.js +0 -446
  663. package/cli/common/error/generated-graphql-admin-errors.js.map +0 -1
  664. package/cli/common/error/generated-graphql-shop-errors.d.ts +0 -254
  665. package/cli/common/error/generated-graphql-shop-errors.js +0 -370
  666. package/cli/common/error/generated-graphql-shop-errors.js.map +0 -1
  667. package/cli/common/finite-state-machine/finite-state-machine.d.ts +0 -14
  668. package/cli/common/finite-state-machine/finite-state-machine.js +0 -55
  669. package/cli/common/finite-state-machine/finite-state-machine.js.map +0 -1
  670. package/cli/common/finite-state-machine/merge-transition-definitions.d.ts +0 -2
  671. package/cli/common/finite-state-machine/merge-transition-definitions.js +0 -27
  672. package/cli/common/finite-state-machine/merge-transition-definitions.js.map +0 -1
  673. package/cli/common/finite-state-machine/types.d.ts +0 -16
  674. package/cli/common/finite-state-machine/types.js.map +0 -1
  675. package/cli/common/finite-state-machine/validate-transition-definition.d.ts +0 -5
  676. package/cli/common/finite-state-machine/validate-transition-definition.js +0 -41
  677. package/cli/common/finite-state-machine/validate-transition-definition.js.map +0 -1
  678. package/cli/common/generate-public-id.d.ts +0 -1
  679. package/cli/common/generate-public-id.js +0 -10
  680. package/cli/common/generate-public-id.js.map +0 -1
  681. package/cli/common/index.d.ts +0 -15
  682. package/cli/common/index.js +0 -28
  683. package/cli/common/index.js.map +0 -1
  684. package/cli/common/injector.d.ts +0 -8
  685. package/cli/common/injector.js +0 -16
  686. package/cli/common/injector.js.map +0 -1
  687. package/cli/common/permission-definition.d.ts +0 -23
  688. package/cli/common/permission-definition.js +0 -53
  689. package/cli/common/permission-definition.js.map +0 -1
  690. package/cli/common/self-refreshing-cache.d.ts +0 -15
  691. package/cli/common/self-refreshing-cache.js +0 -56
  692. package/cli/common/self-refreshing-cache.js.map +0 -1
  693. package/cli/common/tax-utils.d.ts +0 -4
  694. package/cli/common/tax-utils.js +0 -20
  695. package/cli/common/tax-utils.js.map +0 -1
  696. package/cli/common/ttl-cache.d.ts +0 -13
  697. package/cli/common/ttl-cache.js +0 -48
  698. package/cli/common/ttl-cache.js.map +0 -1
  699. package/cli/common/types/adjustment-source.d.ts +0 -14
  700. package/cli/common/types/adjustment-source.js +0 -18
  701. package/cli/common/types/adjustment-source.js.map +0 -1
  702. package/cli/common/types/common-types.d.ts +0 -97
  703. package/cli/common/types/common-types.js.map +0 -1
  704. package/cli/common/types/entity-relation-paths.d.ts +0 -16
  705. package/cli/common/types/entity-relation-paths.js +0 -3
  706. package/cli/common/types/entity-relation-paths.js.map +0 -1
  707. package/cli/common/types/injectable-strategy.d.ts +0 -5
  708. package/cli/common/types/injectable-strategy.js.map +0 -1
  709. package/cli/common/types/locale-types.d.ts +0 -43
  710. package/cli/common/types/locale-types.js +0 -3
  711. package/cli/common/types/locale-types.js.map +0 -1
  712. package/cli/common/utils.d.ts +0 -11
  713. package/cli/common/utils.js +0 -66
  714. package/cli/common/utils.js.map +0 -1
  715. package/cli/config/asset-naming-strategy/asset-naming-strategy.d.ts +0 -6
  716. package/cli/config/asset-naming-strategy/asset-naming-strategy.js +0 -3
  717. package/cli/config/asset-naming-strategy/asset-naming-strategy.js.map +0 -1
  718. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.d.ts +0 -11
  719. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.js +0 -55
  720. package/cli/config/asset-naming-strategy/default-asset-naming-strategy.js.map +0 -1
  721. package/cli/config/asset-preview-strategy/asset-preview-strategy.d.ts +0 -6
  722. package/cli/config/asset-preview-strategy/asset-preview-strategy.js +0 -3
  723. package/cli/config/asset-preview-strategy/asset-preview-strategy.js.map +0 -1
  724. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.d.ts +0 -6
  725. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.js +0 -11
  726. package/cli/config/asset-preview-strategy/no-asset-preview-strategy.js.map +0 -1
  727. package/cli/config/asset-storage-strategy/asset-storage-strategy.d.ts +0 -13
  728. package/cli/config/asset-storage-strategy/asset-storage-strategy.js +0 -3
  729. package/cli/config/asset-storage-strategy/asset-storage-strategy.js.map +0 -1
  730. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.d.ts +0 -13
  731. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.js +0 -30
  732. package/cli/config/asset-storage-strategy/no-asset-storage-strategy.js.map +0 -1
  733. package/cli/config/auth/authentication-strategy.d.ts +0 -10
  734. package/cli/config/auth/authentication-strategy.js +0 -3
  735. package/cli/config/auth/authentication-strategy.js.map +0 -1
  736. package/cli/config/auth/bcrypt-password-hashing-strategy.d.ts +0 -7
  737. package/cli/config/auth/bcrypt-password-hashing-strategy.js +0 -21
  738. package/cli/config/auth/bcrypt-password-hashing-strategy.js.map +0 -1
  739. package/cli/config/auth/default-password-validation-strategy.d.ts +0 -10
  740. package/cli/config/auth/default-password-validation-strategy.js +0 -24
  741. package/cli/config/auth/default-password-validation-strategy.js.map +0 -1
  742. package/cli/config/auth/native-authentication-strategy.d.ts +0 -21
  743. package/cli/config/auth/native-authentication-strategy.js +0 -87
  744. package/cli/config/auth/native-authentication-strategy.js.map +0 -1
  745. package/cli/config/auth/password-hashing-strategy.d.ts +0 -5
  746. package/cli/config/auth/password-hashing-strategy.js +0 -3
  747. package/cli/config/auth/password-hashing-strategy.js.map +0 -1
  748. package/cli/config/auth/password-validation-strategy.d.ts +0 -5
  749. package/cli/config/auth/password-validation-strategy.js +0 -3
  750. package/cli/config/auth/password-validation-strategy.js.map +0 -1
  751. package/cli/config/catalog/collection-filter.d.ts +0 -13
  752. package/cli/config/catalog/collection-filter.js +0 -15
  753. package/cli/config/catalog/collection-filter.js.map +0 -1
  754. package/cli/config/catalog/default-collection-filters.d.ts +0 -52
  755. package/cli/config/catalog/default-collection-filters.js +0 -112
  756. package/cli/config/catalog/default-collection-filters.js.map +0 -1
  757. package/cli/config/catalog/default-product-variant-price-calculation-strategy.d.ts +0 -8
  758. package/cli/config/catalog/default-product-variant-price-calculation-strategy.js +0 -31
  759. package/cli/config/catalog/default-product-variant-price-calculation-strategy.js.map +0 -1
  760. package/cli/config/catalog/default-stock-display-strategy.d.ts +0 -8
  761. package/cli/config/catalog/default-stock-display-strategy.js +0 -17
  762. package/cli/config/catalog/default-stock-display-strategy.js.map +0 -1
  763. package/cli/config/catalog/product-variant-price-calculation-strategy.d.ts +0 -13
  764. package/cli/config/catalog/product-variant-price-calculation-strategy.js +0 -3
  765. package/cli/config/catalog/product-variant-price-calculation-strategy.js.map +0 -1
  766. package/cli/config/catalog/stock-display-strategy.d.ts +0 -6
  767. package/cli/config/catalog/stock-display-strategy.js +0 -3
  768. package/cli/config/catalog/stock-display-strategy.js.map +0 -1
  769. package/cli/config/config-helpers.d.ts +0 -3
  770. package/cli/config/config-helpers.js +0 -15
  771. package/cli/config/config-helpers.js.map +0 -1
  772. package/cli/config/config.module.d.ts +0 -16
  773. package/cli/config/config.module.js +0 -120
  774. package/cli/config/config.module.js.map +0 -1
  775. package/cli/config/config.service.d.ts +0 -30
  776. package/cli/config/config.service.js +0 -86
  777. package/cli/config/config.service.js.map +0 -1
  778. package/cli/config/custom-field/custom-field-types.d.ts +0 -65
  779. package/cli/config/custom-field/custom-field-types.js +0 -3
  780. package/cli/config/custom-field/custom-field-types.js.map +0 -1
  781. package/cli/config/default-config.d.ts +0 -2
  782. package/cli/config/default-config.js +0 -174
  783. package/cli/config/default-config.js.map +0 -1
  784. package/cli/config/entity-id-strategy/auto-increment-id-strategy.d.ts +0 -6
  785. package/cli/config/entity-id-strategy/auto-increment-id-strategy.js +0 -17
  786. package/cli/config/entity-id-strategy/auto-increment-id-strategy.js.map +0 -1
  787. package/cli/config/entity-id-strategy/entity-id-strategy.d.ts +0 -7
  788. package/cli/config/entity-id-strategy/entity-id-strategy.js +0 -3
  789. package/cli/config/entity-id-strategy/entity-id-strategy.js.map +0 -1
  790. package/cli/config/entity-id-strategy/uuid-id-strategy.d.ts +0 -6
  791. package/cli/config/entity-id-strategy/uuid-id-strategy.js +0 -16
  792. package/cli/config/entity-id-strategy/uuid-id-strategy.js.map +0 -1
  793. package/cli/config/fulfillment/custom-fulfillment-process.d.ts +0 -9
  794. package/cli/config/fulfillment/custom-fulfillment-process.js +0 -3
  795. package/cli/config/fulfillment/custom-fulfillment-process.js.map +0 -1
  796. package/cli/config/fulfillment/fulfillment-handler.d.ts +0 -21
  797. package/cli/config/fulfillment/fulfillment-handler.js +0 -23
  798. package/cli/config/fulfillment/fulfillment-handler.js.map +0 -1
  799. package/cli/config/fulfillment/manual-fulfillment-handler.d.ts +0 -11
  800. package/cli/config/fulfillment/manual-fulfillment-handler.js +0 -26
  801. package/cli/config/fulfillment/manual-fulfillment-handler.js.map +0 -1
  802. package/cli/config/index.d.ts +0 -61
  803. package/cli/config/index.js +0 -74
  804. package/cli/config/index.js.map +0 -1
  805. package/cli/config/job-queue/inspectable-job-queue-strategy.d.ts +0 -12
  806. package/cli/config/job-queue/inspectable-job-queue-strategy.js +0 -11
  807. package/cli/config/job-queue/inspectable-job-queue-strategy.js.map +0 -1
  808. package/cli/config/job-queue/job-queue-strategy.d.ts +0 -8
  809. package/cli/config/job-queue/job-queue-strategy.js +0 -3
  810. package/cli/config/job-queue/job-queue-strategy.js.map +0 -1
  811. package/cli/config/logger/default-logger.d.ts +0 -24
  812. package/cli/config/logger/default-logger.js +0 -90
  813. package/cli/config/logger/default-logger.js.map +0 -1
  814. package/cli/config/logger/noop-logger.d.ts +0 -8
  815. package/cli/config/logger/noop-logger.js +0 -17
  816. package/cli/config/logger/noop-logger.js.map +0 -1
  817. package/cli/config/logger/typeorm-logger.d.ts +0 -15
  818. package/cli/config/logger/typeorm-logger.js +0 -74
  819. package/cli/config/logger/typeorm-logger.js.map +0 -1
  820. package/cli/config/logger/vendure-logger.d.ts +0 -32
  821. package/cli/config/logger/vendure-logger.js +0 -68
  822. package/cli/config/logger/vendure-logger.js.map +0 -1
  823. package/cli/config/merge-config.d.ts +0 -2
  824. package/cli/config/merge-config.js +0 -34
  825. package/cli/config/merge-config.js.map +0 -1
  826. package/cli/config/order/changed-price-handling-strategy.d.ts +0 -7
  827. package/cli/config/order/changed-price-handling-strategy.js +0 -3
  828. package/cli/config/order/changed-price-handling-strategy.js.map +0 -1
  829. package/cli/config/order/custom-order-process.d.ts +0 -9
  830. package/cli/config/order/custom-order-process.js +0 -3
  831. package/cli/config/order/custom-order-process.js.map +0 -1
  832. package/cli/config/order/default-changed-price-handling-strategy.d.ts +0 -6
  833. package/cli/config/order/default-changed-price-handling-strategy.js +0 -10
  834. package/cli/config/order/default-changed-price-handling-strategy.js.map +0 -1
  835. package/cli/config/order/default-order-item-price-calculation-strategy.d.ts +0 -7
  836. package/cli/config/order/default-order-item-price-calculation-strategy.js +0 -13
  837. package/cli/config/order/default-order-item-price-calculation-strategy.js.map +0 -1
  838. package/cli/config/order/default-order-placed-strategy.d.ts +0 -7
  839. package/cli/config/order/default-order-placed-strategy.js +0 -13
  840. package/cli/config/order/default-order-placed-strategy.js.map +0 -1
  841. package/cli/config/order/default-stock-allocation-strategy.d.ts +0 -7
  842. package/cli/config/order/default-stock-allocation-strategy.js +0 -11
  843. package/cli/config/order/default-stock-allocation-strategy.js.map +0 -1
  844. package/cli/config/order/merge-orders-strategy.d.ts +0 -7
  845. package/cli/config/order/merge-orders-strategy.js +0 -29
  846. package/cli/config/order/merge-orders-strategy.js.map +0 -1
  847. package/cli/config/order/order-by-code-access-strategy.d.ts +0 -11
  848. package/cli/config/order/order-by-code-access-strategy.js +0 -25
  849. package/cli/config/order/order-by-code-access-strategy.js.map +0 -1
  850. package/cli/config/order/order-code-strategy.d.ts +0 -8
  851. package/cli/config/order/order-code-strategy.js +0 -11
  852. package/cli/config/order/order-code-strategy.js.map +0 -1
  853. package/cli/config/order/order-item-price-calculation-strategy.d.ts +0 -9
  854. package/cli/config/order/order-item-price-calculation-strategy.js +0 -3
  855. package/cli/config/order/order-item-price-calculation-strategy.js.map +0 -1
  856. package/cli/config/order/order-merge-strategy.d.ts +0 -14
  857. package/cli/config/order/order-merge-strategy.js +0 -12
  858. package/cli/config/order/order-merge-strategy.js.map +0 -1
  859. package/cli/config/order/order-placed-strategy.d.ts +0 -7
  860. package/cli/config/order/order-placed-strategy.js +0 -3
  861. package/cli/config/order/order-placed-strategy.js.map +0 -1
  862. package/cli/config/order/stock-allocation-strategy.d.ts +0 -7
  863. package/cli/config/order/stock-allocation-strategy.js +0 -3
  864. package/cli/config/order/stock-allocation-strategy.js.map +0 -1
  865. package/cli/config/order/use-existing-strategy.d.ts +0 -6
  866. package/cli/config/order/use-existing-strategy.js +0 -11
  867. package/cli/config/order/use-existing-strategy.js.map +0 -1
  868. package/cli/config/order/use-guest-if-existing-empty-strategy.d.ts +0 -6
  869. package/cli/config/order/use-guest-if-existing-empty-strategy.js +0 -13
  870. package/cli/config/order/use-guest-if-existing-empty-strategy.js.map +0 -1
  871. package/cli/config/order/use-guest-strategy.d.ts +0 -6
  872. package/cli/config/order/use-guest-strategy.js +0 -11
  873. package/cli/config/order/use-guest-strategy.js.map +0 -1
  874. package/cli/config/payment/custom-payment-process.d.ts +0 -9
  875. package/cli/config/payment/custom-payment-process.js +0 -3
  876. package/cli/config/payment/custom-payment-process.js.map +0 -1
  877. package/cli/config/payment/dummy-payment-method-handler.d.ts +0 -17
  878. package/cli/config/payment/dummy-payment-method-handler.js +0 -74
  879. package/cli/config/payment/dummy-payment-method-handler.js.map +0 -1
  880. package/cli/config/payment/example-payment-method-handler.d.ts +0 -11
  881. package/cli/config/payment/example-payment-method-handler.js +0 -59
  882. package/cli/config/payment/example-payment-method-handler.js.map +0 -1
  883. package/cli/config/payment/payment-method-eligibility-checker.d.ts +0 -13
  884. package/cli/config/payment/payment-method-eligibility-checker.js +0 -15
  885. package/cli/config/payment/payment-method-eligibility-checker.js.map +0 -1
  886. package/cli/config/payment/payment-method-handler.d.ts +0 -73
  887. package/cli/config/payment/payment-method-handler.js +0 -36
  888. package/cli/config/payment/payment-method-handler.js.map +0 -1
  889. package/cli/config/promotion/actions/buy-x-get-y-free-action.d.ts +0 -37
  890. package/cli/config/promotion/actions/buy-x-get-y-free-action.js +0 -30
  891. package/cli/config/promotion/actions/buy-x-get-y-free-action.js.map +0 -1
  892. package/cli/config/promotion/actions/facet-values-percentage-discount-action.d.ts +0 -17
  893. package/cli/config/promotion/actions/facet-values-percentage-discount-action.js +0 -39
  894. package/cli/config/promotion/actions/facet-values-percentage-discount-action.js.map +0 -1
  895. package/cli/config/promotion/actions/free-shipping-action.d.ts +0 -2
  896. package/cli/config/promotion/actions/free-shipping-action.js +0 -14
  897. package/cli/config/promotion/actions/free-shipping-action.js.map +0 -1
  898. package/cli/config/promotion/actions/order-fixed-discount-action.d.ts +0 -9
  899. package/cli/config/promotion/actions/order-fixed-discount-action.js +0 -21
  900. package/cli/config/promotion/actions/order-fixed-discount-action.js.map +0 -1
  901. package/cli/config/promotion/actions/order-percentage-discount-action.d.ts +0 -10
  902. package/cli/config/promotion/actions/order-percentage-discount-action.js +0 -23
  903. package/cli/config/promotion/actions/order-percentage-discount-action.js.map +0 -1
  904. package/cli/config/promotion/actions/product-percentage-discount-action.d.ts +0 -22
  905. package/cli/config/promotion/actions/product-percentage-discount-action.js +0 -36
  906. package/cli/config/promotion/actions/product-percentage-discount-action.js.map +0 -1
  907. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.d.ts +0 -37
  908. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.js +0 -71
  909. package/cli/config/promotion/conditions/buy-x-get-y-free-condition.js.map +0 -1
  910. package/cli/config/promotion/conditions/contains-products-condition.d.ts +0 -19
  911. package/cli/config/promotion/conditions/contains-products-condition.js +0 -38
  912. package/cli/config/promotion/conditions/contains-products-condition.js.map +0 -1
  913. package/cli/config/promotion/conditions/customer-group-condition.d.ts +0 -14
  914. package/cli/config/promotion/conditions/customer-group-condition.js +0 -72
  915. package/cli/config/promotion/conditions/customer-group-condition.js.map +0 -1
  916. package/cli/config/promotion/conditions/has-facet-values-condition.d.ts +0 -14
  917. package/cli/config/promotion/conditions/has-facet-values-condition.js +0 -31
  918. package/cli/config/promotion/conditions/has-facet-values-condition.js.map +0 -1
  919. package/cli/config/promotion/conditions/min-order-amount-condition.d.ts +0 -14
  920. package/cli/config/promotion/conditions/min-order-amount-condition.js +0 -27
  921. package/cli/config/promotion/conditions/min-order-amount-condition.js.map +0 -1
  922. package/cli/config/promotion/index.d.ts +0 -170
  923. package/cli/config/promotion/index.js +0 -50
  924. package/cli/config/promotion/index.js.map +0 -1
  925. package/cli/config/promotion/promotion-action.d.ts +0 -56
  926. package/cli/config/promotion/promotion-action.js +0 -49
  927. package/cli/config/promotion/promotion-action.js.map +0 -1
  928. package/cli/config/promotion/promotion-condition.d.ts +0 -19
  929. package/cli/config/promotion/promotion-condition.js +0 -19
  930. package/cli/config/promotion/promotion-condition.js.map +0 -1
  931. package/cli/config/promotion/utils/facet-value-checker.d.ts +0 -9
  932. package/cli/config/promotion/utils/facet-value-checker.js +0 -31
  933. package/cli/config/promotion/utils/facet-value-checker.js.map +0 -1
  934. package/cli/config/session-cache/in-memory-session-cache-strategy.d.ts +0 -11
  935. package/cli/config/session-cache/in-memory-session-cache-strategy.js +0 -44
  936. package/cli/config/session-cache/in-memory-session-cache-strategy.js.map +0 -1
  937. package/cli/config/session-cache/noop-session-cache-strategy.d.ts +0 -7
  938. package/cli/config/session-cache/noop-session-cache-strategy.js +0 -19
  939. package/cli/config/session-cache/noop-session-cache-strategy.js.map +0 -1
  940. package/cli/config/session-cache/session-cache-strategy.d.ts +0 -25
  941. package/cli/config/session-cache/session-cache-strategy.js +0 -3
  942. package/cli/config/session-cache/session-cache-strategy.js.map +0 -1
  943. package/cli/config/shipping-method/default-shipping-calculator.d.ts +0 -51
  944. package/cli/config/shipping-method/default-shipping-calculator.js +0 -69
  945. package/cli/config/shipping-method/default-shipping-calculator.js.map +0 -1
  946. package/cli/config/shipping-method/default-shipping-eligibility-checker.d.ts +0 -19
  947. package/cli/config/shipping-method/default-shipping-eligibility-checker.js +0 -27
  948. package/cli/config/shipping-method/default-shipping-eligibility-checker.js.map +0 -1
  949. package/cli/config/shipping-method/shipping-calculator.d.ts +0 -20
  950. package/cli/config/shipping-method/shipping-calculator.js +0 -15
  951. package/cli/config/shipping-method/shipping-calculator.js.map +0 -1
  952. package/cli/config/shipping-method/shipping-eligibility-checker.d.ts +0 -19
  953. package/cli/config/shipping-method/shipping-eligibility-checker.js +0 -38
  954. package/cli/config/shipping-method/shipping-eligibility-checker.js.map +0 -1
  955. package/cli/config/tax/default-tax-line-calculation-strategy.d.ts +0 -5
  956. package/cli/config/tax/default-tax-line-calculation-strategy.js +0 -11
  957. package/cli/config/tax/default-tax-line-calculation-strategy.js.map +0 -1
  958. package/cli/config/tax/default-tax-zone-strategy.d.ts +0 -6
  959. package/cli/config/tax/default-tax-zone-strategy.js +0 -10
  960. package/cli/config/tax/default-tax-zone-strategy.js.map +0 -1
  961. package/cli/config/tax/tax-line-calculation-strategy.d.ts +0 -17
  962. package/cli/config/tax/tax-line-calculation-strategy.js +0 -3
  963. package/cli/config/tax/tax-line-calculation-strategy.js.map +0 -1
  964. package/cli/config/tax/tax-zone-strategy.d.ts +0 -6
  965. package/cli/config/tax/tax-zone-strategy.js +0 -3
  966. package/cli/config/tax/tax-zone-strategy.js.map +0 -1
  967. package/cli/config/vendure-config.d.ts +0 -192
  968. package/cli/config/vendure-config.js +0 -3
  969. package/cli/config/vendure-config.js.map +0 -1
  970. package/cli/connection/connection.module.d.ts +0 -7
  971. package/cli/connection/connection.module.js +0 -61
  972. package/cli/connection/connection.module.js.map +0 -1
  973. package/cli/connection/transaction-subscriber.d.ts +0 -19
  974. package/cli/connection/transaction-subscriber.js +0 -54
  975. package/cli/connection/transaction-subscriber.js.map +0 -1
  976. package/cli/connection/transaction-wrapper.d.ts +0 -9
  977. package/cli/connection/transaction-wrapper.js +0 -79
  978. package/cli/connection/transaction-wrapper.js.map +0 -1
  979. package/cli/connection/transactional-connection.d.ts +0 -25
  980. package/cli/connection/transactional-connection.js +0 -170
  981. package/cli/connection/transactional-connection.js.map +0 -1
  982. package/cli/connection/types.d.ts +0 -8
  983. package/cli/connection/types.js +0 -3
  984. package/cli/connection/types.js.map +0 -1
  985. package/cli/entity/address/address.entity.d.ts +0 -22
  986. package/cli/entity/address/address.entity.js +0 -80
  987. package/cli/entity/address/address.entity.js.map +0 -1
  988. package/cli/entity/administrator/administrator.entity.d.ts +0 -15
  989. package/cli/entity/administrator/administrator.entity.js +0 -52
  990. package/cli/entity/administrator/administrator.entity.js.map +0 -1
  991. package/cli/entity/asset/asset.entity.d.ts +0 -26
  992. package/cli/entity/asset/asset.entity.js +0 -79
  993. package/cli/entity/asset/asset.entity.js.map +0 -1
  994. package/cli/entity/asset/orderable-asset.entity.d.ts +0 -10
  995. package/cli/entity/asset/orderable-asset.entity.js +0 -34
  996. package/cli/entity/asset/orderable-asset.entity.js.map +0 -1
  997. package/cli/entity/authentication-method/authentication-method.entity.d.ts +0 -5
  998. package/cli/entity/authentication-method/authentication-method.entity.js +0 -27
  999. package/cli/entity/authentication-method/authentication-method.entity.js.map +0 -1
  1000. package/cli/entity/authentication-method/external-authentication-method.entity.d.ts +0 -8
  1001. package/cli/entity/authentication-method/external-authentication-method.entity.js +0 -37
  1002. package/cli/entity/authentication-method/external-authentication-method.entity.js.map +0 -1
  1003. package/cli/entity/authentication-method/native-authentication-method.entity.d.ts +0 -11
  1004. package/cli/entity/authentication-method/native-authentication-method.entity.js +0 -49
  1005. package/cli/entity/authentication-method/native-authentication-method.entity.js.map +0 -1
  1006. package/cli/entity/base/base.entity.d.ts +0 -7
  1007. package/cli/entity/base/base.entity.js +0 -37
  1008. package/cli/entity/base/base.entity.js.map +0 -1
  1009. package/cli/entity/channel/channel.entity.d.ts +0 -17
  1010. package/cli/entity/channel/channel.entity.js +0 -67
  1011. package/cli/entity/channel/channel.entity.js.map +0 -1
  1012. package/cli/entity/collection/collection-asset.entity.d.ts +0 -8
  1013. package/cli/entity/collection/collection-asset.entity.js +0 -34
  1014. package/cli/entity/collection/collection-asset.entity.js.map +0 -1
  1015. package/cli/entity/collection/collection-translation.entity.d.ts +0 -16
  1016. package/cli/entity/collection/collection-translation.entity.js +0 -52
  1017. package/cli/entity/collection/collection-translation.entity.js.map +0 -1
  1018. package/cli/entity/collection/collection.entity.d.ts +0 -29
  1019. package/cli/entity/collection/collection.entity.js +0 -81
  1020. package/cli/entity/collection/collection.entity.js.map +0 -1
  1021. package/cli/entity/country/country-translation.entity.d.ts +0 -14
  1022. package/cli/entity/country/country-translation.entity.js +0 -44
  1023. package/cli/entity/country/country-translation.entity.js.map +0 -1
  1024. package/cli/entity/country/country.entity.d.ts +0 -13
  1025. package/cli/entity/country/country.entity.js +0 -43
  1026. package/cli/entity/country/country.entity.js.map +0 -1
  1027. package/cli/entity/custom-entity-fields.d.ts +0 -68
  1028. package/cli/entity/custom-entity-fields.js +0 -106
  1029. package/cli/entity/custom-entity-fields.js.map +0 -1
  1030. package/cli/entity/customer/customer.entity.d.ts +0 -25
  1031. package/cli/entity/customer/customer.entity.js +0 -82
  1032. package/cli/entity/customer/customer.entity.js.map +0 -1
  1033. package/cli/entity/customer-group/customer-group.entity.d.ts +0 -11
  1034. package/cli/entity/customer-group/customer-group.entity.js +0 -39
  1035. package/cli/entity/customer-group/customer-group.entity.js.map +0 -1
  1036. package/cli/entity/entities.d.ts +0 -124
  1037. package/cli/entity/entities.js +0 -128
  1038. package/cli/entity/entities.js.map +0 -1
  1039. package/cli/entity/entity-id.decorator.d.ts +0 -18
  1040. package/cli/entity/entity-id.decorator.js +0 -40
  1041. package/cli/entity/entity-id.decorator.js.map +0 -1
  1042. package/cli/entity/facet/facet-translation.entity.d.ts +0 -14
  1043. package/cli/entity/facet/facet-translation.entity.js +0 -44
  1044. package/cli/entity/facet/facet-translation.entity.js.map +0 -1
  1045. package/cli/entity/facet/facet.entity.d.ts +0 -18
  1046. package/cli/entity/facet/facet.entity.js +0 -54
  1047. package/cli/entity/facet/facet.entity.js.map +0 -1
  1048. package/cli/entity/facet-value/facet-value-translation.entity.d.ts +0 -13
  1049. package/cli/entity/facet-value/facet-value-translation.entity.js +0 -44
  1050. package/cli/entity/facet-value/facet-value-translation.entity.js.map +0 -1
  1051. package/cli/entity/facet-value/facet-value.entity.d.ts +0 -17
  1052. package/cli/entity/facet-value/facet-value.entity.js +0 -50
  1053. package/cli/entity/facet-value/facet-value.entity.js.map +0 -1
  1054. package/cli/entity/fulfillment/fulfillment.entity.d.ts +0 -15
  1055. package/cli/entity/fulfillment/fulfillment.entity.js +0 -51
  1056. package/cli/entity/fulfillment/fulfillment.entity.js.map +0 -1
  1057. package/cli/entity/global-settings/global-settings.entity.d.ts +0 -12
  1058. package/cli/entity/global-settings/global-settings.entity.js +0 -42
  1059. package/cli/entity/global-settings/global-settings.entity.js.map +0 -1
  1060. package/cli/entity/history-entry/customer-history-entry.entity.d.ts +0 -7
  1061. package/cli/entity/history-entry/customer-history-entry.entity.js +0 -30
  1062. package/cli/entity/history-entry/customer-history-entry.entity.js.map +0 -1
  1063. package/cli/entity/history-entry/history-entry.entity.d.ts +0 -9
  1064. package/cli/entity/history-entry/history-entry.entity.js +0 -40
  1065. package/cli/entity/history-entry/history-entry.entity.js.map +0 -1
  1066. package/cli/entity/history-entry/order-history-entry.entity.d.ts +0 -7
  1067. package/cli/entity/history-entry/order-history-entry.entity.js +0 -30
  1068. package/cli/entity/history-entry/order-history-entry.entity.js.map +0 -1
  1069. package/cli/entity/index.d.ts +0 -52
  1070. package/cli/entity/index.js +0 -65
  1071. package/cli/entity/index.js.map +0 -1
  1072. package/cli/entity/order/order.entity.d.ts +0 -48
  1073. package/cli/entity/order/order.entity.js +0 -277
  1074. package/cli/entity/order/order.entity.js.map +0 -1
  1075. package/cli/entity/order-item/order-item.entity.d.ts +0 -35
  1076. package/cli/entity/order-item/order-item.entity.js +0 -182
  1077. package/cli/entity/order-item/order-item.entity.js.map +0 -1
  1078. package/cli/entity/order-line/order-line.entity.d.ts +0 -44
  1079. package/cli/entity/order-line/order-line.entity.js +0 -275
  1080. package/cli/entity/order-line/order-line.entity.js.map +0 -1
  1081. package/cli/entity/order-modification/order-modification.entity.d.ts +0 -21
  1082. package/cli/entity/order-modification/order-modification.entity.js +0 -81
  1083. package/cli/entity/order-modification/order-modification.entity.js.map +0 -1
  1084. package/cli/entity/payment/payment.entity.d.ts +0 -17
  1085. package/cli/entity/payment/payment.entity.js +0 -59
  1086. package/cli/entity/payment/payment.entity.js.map +0 -1
  1087. package/cli/entity/payment-method/payment-method.entity.d.ts +0 -18
  1088. package/cli/entity/payment-method/payment-method.entity.js +0 -60
  1089. package/cli/entity/payment-method/payment-method.entity.js.map +0 -1
  1090. package/cli/entity/product/product-asset.entity.d.ts +0 -8
  1091. package/cli/entity/product/product-asset.entity.js +0 -34
  1092. package/cli/entity/product/product-asset.entity.js.map +0 -1
  1093. package/cli/entity/product/product-translation.entity.d.ts +0 -16
  1094. package/cli/entity/product/product-translation.entity.js +0 -52
  1095. package/cli/entity/product/product-translation.entity.js.map +0 -1
  1096. package/cli/entity/product/product.entity.d.ts +0 -28
  1097. package/cli/entity/product/product.entity.js +0 -75
  1098. package/cli/entity/product/product.entity.js.map +0 -1
  1099. package/cli/entity/product-option/product-option-translation.entity.d.ts +0 -14
  1100. package/cli/entity/product-option/product-option-translation.entity.js +0 -44
  1101. package/cli/entity/product-option/product-option-translation.entity.js.map +0 -1
  1102. package/cli/entity/product-option/product-option.entity.d.ts +0 -17
  1103. package/cli/entity/product-option/product-option.entity.js +0 -53
  1104. package/cli/entity/product-option/product-option.entity.js.map +0 -1
  1105. package/cli/entity/product-option-group/product-option-group-translation.entity.d.ts +0 -14
  1106. package/cli/entity/product-option-group/product-option-group-translation.entity.js +0 -44
  1107. package/cli/entity/product-option-group/product-option-group-translation.entity.js.map +0 -1
  1108. package/cli/entity/product-option-group/product-option-group.entity.d.ts +0 -18
  1109. package/cli/entity/product-option-group/product-option-group.entity.js +0 -53
  1110. package/cli/entity/product-option-group/product-option-group.entity.js.map +0 -1
  1111. package/cli/entity/product-variant/product-variant-asset.entity.d.ts +0 -8
  1112. package/cli/entity/product-variant/product-variant-asset.entity.js +0 -34
  1113. package/cli/entity/product-variant/product-variant-asset.entity.js.map +0 -1
  1114. package/cli/entity/product-variant/product-variant-price.entity.d.ts +0 -9
  1115. package/cli/entity/product-variant/product-variant-price.entity.js +0 -39
  1116. package/cli/entity/product-variant/product-variant-price.entity.js.map +0 -1
  1117. package/cli/entity/product-variant/product-variant-translation.entity.d.ts +0 -14
  1118. package/cli/entity/product-variant/product-variant-translation.entity.js +0 -44
  1119. package/cli/entity/product-variant/product-variant-translation.entity.js.map +0 -1
  1120. package/cli/entity/product-variant/product-variant.entity.d.ts +0 -49
  1121. package/cli/entity/product-variant/product-variant.entity.js +0 -155
  1122. package/cli/entity/product-variant/product-variant.entity.js.map +0 -1
  1123. package/cli/entity/promotion/promotion.entity.d.ts +0 -56
  1124. package/cli/entity/promotion/promotion.entity.js +0 -157
  1125. package/cli/entity/promotion/promotion.entity.js.map +0 -1
  1126. package/cli/entity/refund/refund.entity.d.ts +0 -21
  1127. package/cli/entity/refund/refund.entity.js +0 -78
  1128. package/cli/entity/refund/refund.entity.js.map +0 -1
  1129. package/cli/entity/role/role.entity.d.ts +0 -12
  1130. package/cli/entity/role/role.entity.js +0 -43
  1131. package/cli/entity/role/role.entity.js.map +0 -1
  1132. package/cli/entity/session/anonymous-session.entity.d.ts +0 -5
  1133. package/cli/entity/session/anonymous-session.entity.js +0 -25
  1134. package/cli/entity/session/anonymous-session.entity.js.map +0 -1
  1135. package/cli/entity/session/authenticated-session.entity.d.ts +0 -8
  1136. package/cli/entity/session/authenticated-session.entity.js +0 -34
  1137. package/cli/entity/session/authenticated-session.entity.js.map +0 -1
  1138. package/cli/entity/session/session.entity.d.ts +0 -13
  1139. package/cli/entity/session/session.entity.js +0 -54
  1140. package/cli/entity/session/session.entity.js.map +0 -1
  1141. package/cli/entity/shipping-line/shipping-line.entity.d.ts +0 -24
  1142. package/cli/entity/shipping-line/shipping-line.entity.js +0 -128
  1143. package/cli/entity/shipping-line/shipping-line.entity.js.map +0 -1
  1144. package/cli/entity/shipping-method/shipping-method-translation.entity.d.ts +0 -16
  1145. package/cli/entity/shipping-method/shipping-method-translation.entity.js +0 -48
  1146. package/cli/entity/shipping-method/shipping-method-translation.entity.js.map +0 -1
  1147. package/cli/entity/shipping-method/shipping-method.entity.d.ts +0 -28
  1148. package/cli/entity/shipping-method/shipping-method.entity.js +0 -92
  1149. package/cli/entity/shipping-method/shipping-method.entity.js.map +0 -1
  1150. package/cli/entity/stock-movement/allocation.entity.d.ts +0 -9
  1151. package/cli/entity/stock-movement/allocation.entity.js +0 -32
  1152. package/cli/entity/stock-movement/allocation.entity.js.map +0 -1
  1153. package/cli/entity/stock-movement/cancellation.entity.d.ts +0 -9
  1154. package/cli/entity/stock-movement/cancellation.entity.js +0 -32
  1155. package/cli/entity/stock-movement/cancellation.entity.js.map +0 -1
  1156. package/cli/entity/stock-movement/release.entity.d.ts +0 -9
  1157. package/cli/entity/stock-movement/release.entity.js +0 -32
  1158. package/cli/entity/stock-movement/release.entity.js.map +0 -1
  1159. package/cli/entity/stock-movement/sale.entity.d.ts +0 -9
  1160. package/cli/entity/stock-movement/sale.entity.js +0 -32
  1161. package/cli/entity/stock-movement/sale.entity.js.map +0 -1
  1162. package/cli/entity/stock-movement/stock-adjustment.entity.d.ts +0 -7
  1163. package/cli/entity/stock-movement/stock-adjustment.entity.js +0 -27
  1164. package/cli/entity/stock-movement/stock-adjustment.entity.js.map +0 -1
  1165. package/cli/entity/stock-movement/stock-movement.entity.d.ts +0 -8
  1166. package/cli/entity/stock-movement/stock-movement.entity.js +0 -36
  1167. package/cli/entity/stock-movement/stock-movement.entity.js.map +0 -1
  1168. package/cli/entity/surcharge/surcharge.entity.d.ts +0 -18
  1169. package/cli/entity/surcharge/surcharge.entity.js +0 -82
  1170. package/cli/entity/surcharge/surcharge.entity.js.map +0 -1
  1171. package/cli/entity/tag/tag.entity.d.ts +0 -6
  1172. package/cli/entity/tag/tag.entity.js +0 -29
  1173. package/cli/entity/tag/tag.entity.js.map +0 -1
  1174. package/cli/entity/tax-category/tax-category.entity.d.ts +0 -10
  1175. package/cli/entity/tax-category/tax-category.entity.js +0 -38
  1176. package/cli/entity/tax-category/tax-category.entity.js.map +0 -1
  1177. package/cli/entity/tax-rate/tax-rate.entity.d.ts +0 -24
  1178. package/cli/entity/tax-rate/tax-rate.entity.js +0 -81
  1179. package/cli/entity/tax-rate/tax-rate.entity.js.map +0 -1
  1180. package/cli/entity/user/user.entity.d.ts +0 -19
  1181. package/cli/entity/user/user.entity.js +0 -69
  1182. package/cli/entity/user/user.entity.js.map +0 -1
  1183. package/cli/entity/value-transformers.d.ts +0 -5
  1184. package/cli/entity/value-transformers.js +0 -13
  1185. package/cli/entity/value-transformers.js.map +0 -1
  1186. package/cli/entity/zone/zone.entity.d.ts +0 -11
  1187. package/cli/entity/zone/zone.entity.js +0 -40
  1188. package/cli/entity/zone/zone.entity.js.map +0 -1
  1189. package/cli/event-bus/event-bus.d.ts +0 -15
  1190. package/cli/event-bus/event-bus.js +0 -51
  1191. package/cli/event-bus/event-bus.js.map +0 -1
  1192. package/cli/event-bus/event-bus.module.d.ts +0 -2
  1193. package/cli/event-bus/event-bus.module.js +0 -23
  1194. package/cli/event-bus/event-bus.module.js.map +0 -1
  1195. package/cli/event-bus/events/account-registration-event.d.ts +0 -8
  1196. package/cli/event-bus/events/account-registration-event.js +0 -13
  1197. package/cli/event-bus/events/account-registration-event.js.map +0 -1
  1198. package/cli/event-bus/events/account-verified-event.d.ts +0 -8
  1199. package/cli/event-bus/events/account-verified-event.js +0 -13
  1200. package/cli/event-bus/events/account-verified-event.js.map +0 -1
  1201. package/cli/event-bus/events/administrator-event.d.ts +0 -10
  1202. package/cli/event-bus/events/administrator-event.js +0 -11
  1203. package/cli/event-bus/events/administrator-event.js.map +0 -1
  1204. package/cli/event-bus/events/asset-channel-event.d.ts +0 -11
  1205. package/cli/event-bus/events/asset-channel-event.js +0 -15
  1206. package/cli/event-bus/events/asset-channel-event.js.map +0 -1
  1207. package/cli/event-bus/events/asset-event.d.ts +0 -11
  1208. package/cli/event-bus/events/asset-event.js +0 -14
  1209. package/cli/event-bus/events/asset-event.js.map +0 -1
  1210. package/cli/event-bus/events/attempted-login-event.d.ts +0 -8
  1211. package/cli/event-bus/events/attempted-login-event.js +0 -14
  1212. package/cli/event-bus/events/attempted-login-event.js.map +0 -1
  1213. package/cli/event-bus/events/change-channel-event.d.ts +0 -13
  1214. package/cli/event-bus/events/change-channel-event.js +0 -16
  1215. package/cli/event-bus/events/change-channel-event.js.map +0 -1
  1216. package/cli/event-bus/events/channel-event.d.ts +0 -10
  1217. package/cli/event-bus/events/channel-event.js +0 -11
  1218. package/cli/event-bus/events/channel-event.js.map +0 -1
  1219. package/cli/event-bus/events/collection-event.d.ts +0 -10
  1220. package/cli/event-bus/events/collection-event.js +0 -11
  1221. package/cli/event-bus/events/collection-event.js.map +0 -1
  1222. package/cli/event-bus/events/collection-modification-event.d.ts +0 -10
  1223. package/cli/event-bus/events/collection-modification-event.js +0 -14
  1224. package/cli/event-bus/events/collection-modification-event.js.map +0 -1
  1225. package/cli/event-bus/events/country-event.d.ts +0 -10
  1226. package/cli/event-bus/events/country-event.js +0 -11
  1227. package/cli/event-bus/events/country-event.js.map +0 -1
  1228. package/cli/event-bus/events/coupon-code-event.d.ts +0 -10
  1229. package/cli/event-bus/events/coupon-code-event.js +0 -15
  1230. package/cli/event-bus/events/coupon-code-event.js.map +0 -1
  1231. package/cli/event-bus/events/customer-address-event.d.ts +0 -15
  1232. package/cli/event-bus/events/customer-address-event.js +0 -18
  1233. package/cli/event-bus/events/customer-address-event.js.map +0 -1
  1234. package/cli/event-bus/events/customer-event.d.ts +0 -13
  1235. package/cli/event-bus/events/customer-event.js +0 -14
  1236. package/cli/event-bus/events/customer-event.js.map +0 -1
  1237. package/cli/event-bus/events/customer-group-entity-event.d.ts +0 -10
  1238. package/cli/event-bus/events/customer-group-entity-event.js +0 -11
  1239. package/cli/event-bus/events/customer-group-entity-event.js.map +0 -1
  1240. package/cli/event-bus/events/customer-group-event.d.ts +0 -18
  1241. package/cli/event-bus/events/customer-group-event.js +0 -25
  1242. package/cli/event-bus/events/customer-group-event.js.map +0 -1
  1243. package/cli/event-bus/events/facet-event.d.ts +0 -10
  1244. package/cli/event-bus/events/facet-event.js +0 -11
  1245. package/cli/event-bus/events/facet-event.js.map +0 -1
  1246. package/cli/event-bus/events/facet-value-event.d.ts +0 -10
  1247. package/cli/event-bus/events/facet-value-event.js +0 -11
  1248. package/cli/event-bus/events/facet-value-event.js.map +0 -1
  1249. package/cli/event-bus/events/fulfillment-event.d.ts +0 -14
  1250. package/cli/event-bus/events/fulfillment-event.js +0 -11
  1251. package/cli/event-bus/events/fulfillment-event.js.map +0 -1
  1252. package/cli/event-bus/events/fulfillment-state-transition-event.d.ts +0 -11
  1253. package/cli/event-bus/events/fulfillment-state-transition-event.js +0 -15
  1254. package/cli/event-bus/events/fulfillment-state-transition-event.js.map +0 -1
  1255. package/cli/event-bus/events/global-settings-event.d.ts +0 -7
  1256. package/cli/event-bus/events/global-settings-event.js +0 -11
  1257. package/cli/event-bus/events/global-settings-event.js.map +0 -1
  1258. package/cli/event-bus/events/history-entry-event.d.ts +0 -14
  1259. package/cli/event-bus/events/history-entry-event.js +0 -12
  1260. package/cli/event-bus/events/history-entry-event.js.map +0 -1
  1261. package/cli/event-bus/events/identifier-change-event.d.ts +0 -9
  1262. package/cli/event-bus/events/identifier-change-event.js +0 -14
  1263. package/cli/event-bus/events/identifier-change-event.js.map +0 -1
  1264. package/cli/event-bus/events/identifier-change-request-event.d.ts +0 -8
  1265. package/cli/event-bus/events/identifier-change-request-event.js +0 -13
  1266. package/cli/event-bus/events/identifier-change-request-event.js.map +0 -1
  1267. package/cli/event-bus/events/login-event.d.ts +0 -8
  1268. package/cli/event-bus/events/login-event.js +0 -13
  1269. package/cli/event-bus/events/login-event.js.map +0 -1
  1270. package/cli/event-bus/events/logout-event.d.ts +0 -6
  1271. package/cli/event-bus/events/logout-event.js +0 -12
  1272. package/cli/event-bus/events/logout-event.js.map +0 -1
  1273. package/cli/event-bus/events/order-event.d.ts +0 -9
  1274. package/cli/event-bus/events/order-event.js +0 -14
  1275. package/cli/event-bus/events/order-event.js.map +0 -1
  1276. package/cli/event-bus/events/order-line-event.d.ts +0 -10
  1277. package/cli/event-bus/events/order-line-event.js +0 -15
  1278. package/cli/event-bus/events/order-line-event.js.map +0 -1
  1279. package/cli/event-bus/events/order-placed-event.d.ts +0 -11
  1280. package/cli/event-bus/events/order-placed-event.js +0 -15
  1281. package/cli/event-bus/events/order-placed-event.js.map +0 -1
  1282. package/cli/event-bus/events/order-state-transition-event.d.ts +0 -11
  1283. package/cli/event-bus/events/order-state-transition-event.js +0 -15
  1284. package/cli/event-bus/events/order-state-transition-event.js.map +0 -1
  1285. package/cli/event-bus/events/password-reset-event.d.ts +0 -8
  1286. package/cli/event-bus/events/password-reset-event.js +0 -13
  1287. package/cli/event-bus/events/password-reset-event.js.map +0 -1
  1288. package/cli/event-bus/events/password-reset-verified-event.d.ts +0 -8
  1289. package/cli/event-bus/events/password-reset-verified-event.js +0 -13
  1290. package/cli/event-bus/events/password-reset-verified-event.js.map +0 -1
  1291. package/cli/event-bus/events/payment-method-event.d.ts +0 -10
  1292. package/cli/event-bus/events/payment-method-event.js +0 -11
  1293. package/cli/event-bus/events/payment-method-event.js.map +0 -1
  1294. package/cli/event-bus/events/payment-state-transition-event.d.ts +0 -13
  1295. package/cli/event-bus/events/payment-state-transition-event.js +0 -16
  1296. package/cli/event-bus/events/payment-state-transition-event.js.map +0 -1
  1297. package/cli/event-bus/events/product-channel-event.d.ts +0 -11
  1298. package/cli/event-bus/events/product-channel-event.js +0 -15
  1299. package/cli/event-bus/events/product-channel-event.js.map +0 -1
  1300. package/cli/event-bus/events/product-event.d.ts +0 -11
  1301. package/cli/event-bus/events/product-event.js +0 -14
  1302. package/cli/event-bus/events/product-event.js.map +0 -1
  1303. package/cli/event-bus/events/product-option-event.d.ts +0 -10
  1304. package/cli/event-bus/events/product-option-event.js +0 -11
  1305. package/cli/event-bus/events/product-option-event.js.map +0 -1
  1306. package/cli/event-bus/events/product-option-group-change-event.d.ts +0 -11
  1307. package/cli/event-bus/events/product-option-group-change-event.js +0 -15
  1308. package/cli/event-bus/events/product-option-group-change-event.js.map +0 -1
  1309. package/cli/event-bus/events/product-option-group-event.d.ts +0 -10
  1310. package/cli/event-bus/events/product-option-group-event.js +0 -11
  1311. package/cli/event-bus/events/product-option-group-event.js.map +0 -1
  1312. package/cli/event-bus/events/product-variant-channel-event.d.ts +0 -11
  1313. package/cli/event-bus/events/product-variant-channel-event.js +0 -15
  1314. package/cli/event-bus/events/product-variant-channel-event.js.map +0 -1
  1315. package/cli/event-bus/events/product-variant-event.d.ts +0 -11
  1316. package/cli/event-bus/events/product-variant-event.js +0 -14
  1317. package/cli/event-bus/events/product-variant-event.js.map +0 -1
  1318. package/cli/event-bus/events/promotion-event.d.ts +0 -10
  1319. package/cli/event-bus/events/promotion-event.js +0 -11
  1320. package/cli/event-bus/events/promotion-event.js.map +0 -1
  1321. package/cli/event-bus/events/refund-state-transition-event.d.ts +0 -13
  1322. package/cli/event-bus/events/refund-state-transition-event.js +0 -16
  1323. package/cli/event-bus/events/refund-state-transition-event.js.map +0 -1
  1324. package/cli/event-bus/events/role-change-event.d.ts +0 -11
  1325. package/cli/event-bus/events/role-change-event.js +0 -15
  1326. package/cli/event-bus/events/role-change-event.js.map +0 -1
  1327. package/cli/event-bus/events/role-event.d.ts +0 -10
  1328. package/cli/event-bus/events/role-event.js +0 -11
  1329. package/cli/event-bus/events/role-event.js.map +0 -1
  1330. package/cli/event-bus/events/shipping-method-event.d.ts +0 -10
  1331. package/cli/event-bus/events/shipping-method-event.js +0 -11
  1332. package/cli/event-bus/events/shipping-method-event.js.map +0 -1
  1333. package/cli/event-bus/events/stock-movement-event.d.ts +0 -10
  1334. package/cli/event-bus/events/stock-movement-event.js +0 -15
  1335. package/cli/event-bus/events/stock-movement-event.js.map +0 -1
  1336. package/cli/event-bus/events/tax-category-event.d.ts +0 -10
  1337. package/cli/event-bus/events/tax-category-event.js +0 -11
  1338. package/cli/event-bus/events/tax-category-event.js.map +0 -1
  1339. package/cli/event-bus/events/tax-rate-event.d.ts +0 -10
  1340. package/cli/event-bus/events/tax-rate-event.js +0 -11
  1341. package/cli/event-bus/events/tax-rate-event.js.map +0 -1
  1342. package/cli/event-bus/events/tax-rate-modification-event.d.ts +0 -8
  1343. package/cli/event-bus/events/tax-rate-modification-event.js +0 -13
  1344. package/cli/event-bus/events/tax-rate-modification-event.js.map +0 -1
  1345. package/cli/event-bus/events/zone-event.d.ts +0 -10
  1346. package/cli/event-bus/events/zone-event.js +0 -11
  1347. package/cli/event-bus/events/zone-event.js.map +0 -1
  1348. package/cli/event-bus/events/zone-members-event.d.ts +0 -11
  1349. package/cli/event-bus/events/zone-members-event.js +0 -15
  1350. package/cli/event-bus/events/zone-members-event.js.map +0 -1
  1351. package/cli/event-bus/index.d.ts +0 -55
  1352. package/cli/event-bus/index.js +0 -68
  1353. package/cli/event-bus/index.js.map +0 -1
  1354. package/cli/event-bus/vendure-entity-event.d.ts +0 -9
  1355. package/cli/event-bus/vendure-entity-event.js +0 -15
  1356. package/cli/event-bus/vendure-entity-event.js.map +0 -1
  1357. package/cli/event-bus/vendure-event.d.ts +0 -4
  1358. package/cli/event-bus/vendure-event.js +0 -10
  1359. package/cli/event-bus/vendure-event.js.map +0 -1
  1360. package/cli/health-check/constants.d.ts +0 -1
  1361. package/cli/health-check/constants.js +0 -5
  1362. package/cli/health-check/constants.js.map +0 -1
  1363. package/cli/i18n/i18n-error.d.ts +0 -13
  1364. package/cli/i18n/i18n-error.js +0 -16
  1365. package/cli/i18n/i18n-error.js.map +0 -1
  1366. package/cli/job-queue/constants.d.ts +0 -1
  1367. package/cli/job-queue/constants.js +0 -5
  1368. package/cli/job-queue/constants.js.map +0 -1
  1369. package/cli/job-queue/in-memory-job-queue-strategy.d.ts +0 -34
  1370. package/cli/job-queue/in-memory-job-queue-strategy.js +0 -187
  1371. package/cli/job-queue/in-memory-job-queue-strategy.js.map +0 -1
  1372. package/cli/job-queue/index.d.ts +0 -11
  1373. package/cli/job-queue/index.js +0 -24
  1374. package/cli/job-queue/index.js.map +0 -1
  1375. package/cli/job-queue/injectable-job-queue-strategy.d.ts +0 -12
  1376. package/cli/job-queue/injectable-job-queue-strategy.js +0 -21
  1377. package/cli/job-queue/injectable-job-queue-strategy.js.map +0 -1
  1378. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.d.ts +0 -13
  1379. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.js +0 -47
  1380. package/cli/job-queue/job-buffer/in-memory-job-buffer-storage-strategy.js.map +0 -1
  1381. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.d.ts +0 -11
  1382. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.js +0 -3
  1383. package/cli/job-queue/job-buffer/job-buffer-storage-strategy.js.map +0 -1
  1384. package/cli/job-queue/job-buffer/job-buffer.d.ts +0 -7
  1385. package/cli/job-queue/job-buffer/job-buffer.js +0 -3
  1386. package/cli/job-queue/job-buffer/job-buffer.js.map +0 -1
  1387. package/cli/job-queue/job-buffer/job-buffer.service.d.ts +0 -16
  1388. package/cli/job-queue/job-buffer/job-buffer.service.js +0 -76
  1389. package/cli/job-queue/job-buffer/job-buffer.service.js.map +0 -1
  1390. package/cli/job-queue/job-queue.d.ts +0 -16
  1391. package/cli/job-queue/job-queue.js +0 -59
  1392. package/cli/job-queue/job-queue.js.map +0 -1
  1393. package/cli/job-queue/job-queue.service.d.ts +0 -27
  1394. package/cli/job-queue/job-queue.service.js +0 -84
  1395. package/cli/job-queue/job-queue.service.js.map +0 -1
  1396. package/cli/job-queue/job.d.ts +0 -41
  1397. package/cli/job-queue/job.js +0 -160
  1398. package/cli/job-queue/job.js.map +0 -1
  1399. package/cli/job-queue/polling-job-queue-strategy.d.ts +0 -26
  1400. package/cli/job-queue/polling-job-queue-strategy.js +0 -163
  1401. package/cli/job-queue/polling-job-queue-strategy.js.map +0 -1
  1402. package/cli/job-queue/queue-name-process-storage.d.ts +0 -7
  1403. package/cli/job-queue/queue-name-process-storage.js +0 -40
  1404. package/cli/job-queue/queue-name-process-storage.js.map +0 -1
  1405. package/cli/job-queue/subscribable-job.d.ts +0 -13
  1406. package/cli/job-queue/subscribable-job.js +0 -52
  1407. package/cli/job-queue/subscribable-job.js.map +0 -1
  1408. package/cli/job-queue/types.d.ts +0 -22
  1409. package/cli/job-queue/types.js +0 -3
  1410. package/cli/job-queue/types.js.map +0 -1
  1411. package/cli/process-context/process-context.d.ts +0 -7
  1412. package/cli/process-context/process-context.js +0 -18
  1413. package/cli/process-context/process-context.js.map +0 -1
  1414. package/cli/service/helpers/config-arg/config-arg.service.d.ts +0 -31
  1415. package/cli/service/helpers/config-arg/config-arg.service.js +0 -88
  1416. package/cli/service/helpers/config-arg/config-arg.service.js.map +0 -1
  1417. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.d.ts +0 -18
  1418. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.js +0 -63
  1419. package/cli/service/helpers/custom-field-relation/custom-field-relation.service.js.map +0 -1
  1420. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.d.ts +0 -21
  1421. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js +0 -113
  1422. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state-machine.js.map +0 -1
  1423. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.d.ts +0 -11
  1424. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.js +0 -21
  1425. package/cli/service/helpers/fulfillment-state-machine/fulfillment-state.js.map +0 -1
  1426. package/cli/service/helpers/list-query-builder/connection-utils.d.ts +0 -10
  1427. package/cli/service/helpers/list-query-builder/connection-utils.js +0 -26
  1428. package/cli/service/helpers/list-query-builder/connection-utils.js.map +0 -1
  1429. package/cli/service/helpers/list-query-builder/get-calculated-columns.d.ts +0 -3
  1430. package/cli/service/helpers/list-query-builder/get-calculated-columns.js +0 -16
  1431. package/cli/service/helpers/list-query-builder/get-calculated-columns.js.map +0 -1
  1432. package/cli/service/helpers/list-query-builder/list-query-builder.d.ts +0 -30
  1433. package/cli/service/helpers/list-query-builder/list-query-builder.js +0 -204
  1434. package/cli/service/helpers/list-query-builder/list-query-builder.js.map +0 -1
  1435. package/cli/service/helpers/list-query-builder/parse-channel-param.d.ts +0 -5
  1436. package/cli/service/helpers/list-query-builder/parse-channel-param.js +0 -18
  1437. package/cli/service/helpers/list-query-builder/parse-channel-param.js.map +0 -1
  1438. package/cli/service/helpers/list-query-builder/parse-filter-params.d.ts +0 -13
  1439. package/cli/service/helpers/list-query-builder/parse-filter-params.js +0 -155
  1440. package/cli/service/helpers/list-query-builder/parse-filter-params.js.map +0 -1
  1441. package/cli/service/helpers/list-query-builder/parse-sort-params.d.ts +0 -7
  1442. package/cli/service/helpers/list-query-builder/parse-sort-params.js +0 -50
  1443. package/cli/service/helpers/list-query-builder/parse-sort-params.js.map +0 -1
  1444. package/cli/service/helpers/order-calculator/order-calculator.d.ts +0 -32
  1445. package/cli/service/helpers/order-calculator/order-calculator.js +0 -311
  1446. package/cli/service/helpers/order-calculator/order-calculator.js.map +0 -1
  1447. package/cli/service/helpers/order-calculator/prorate.d.ts +0 -1
  1448. package/cli/service/helpers/order-calculator/prorate.js +0 -35
  1449. package/cli/service/helpers/order-calculator/prorate.js.map +0 -1
  1450. package/cli/service/helpers/order-merger/order-merger.d.ts +0 -40
  1451. package/cli/service/helpers/order-merger/order-merger.js +0 -97
  1452. package/cli/service/helpers/order-merger/order-merger.js.map +0 -1
  1453. package/cli/service/helpers/order-modifier/order-modifier.d.ts +0 -45
  1454. package/cli/service/helpers/order-modifier/order-modifier.js +0 -423
  1455. package/cli/service/helpers/order-modifier/order-modifier.js.map +0 -1
  1456. package/cli/service/helpers/order-state-machine/order-state-machine.d.ts +0 -29
  1457. package/cli/service/helpers/order-state-machine/order-state-machine.js +0 -240
  1458. package/cli/service/helpers/order-state-machine/order-state-machine.js.map +0 -1
  1459. package/cli/service/helpers/order-state-machine/order-state.d.ts +0 -9
  1460. package/cli/service/helpers/order-state-machine/order-state.js +0 -64
  1461. package/cli/service/helpers/order-state-machine/order-state.js.map +0 -1
  1462. package/cli/service/helpers/password-cipher/password-cipher.d.ts +0 -7
  1463. package/cli/service/helpers/password-cipher/password-cipher.js.map +0 -1
  1464. package/cli/service/helpers/payment-state-machine/payment-state-machine.d.ts +0 -20
  1465. package/cli/service/helpers/payment-state-machine/payment-state-machine.js +0 -113
  1466. package/cli/service/helpers/payment-state-machine/payment-state-machine.js.map +0 -1
  1467. package/cli/service/helpers/payment-state-machine/payment-state.d.ts +0 -11
  1468. package/cli/service/helpers/payment-state-machine/payment-state.js +0 -24
  1469. package/cli/service/helpers/payment-state-machine/payment-state.js.map +0 -1
  1470. package/cli/service/helpers/product-price-applicator/product-price-applicator.d.ts +0 -15
  1471. package/cli/service/helpers/product-price-applicator/product-price-applicator.js +0 -64
  1472. package/cli/service/helpers/product-price-applicator/product-price-applicator.js.map +0 -1
  1473. package/cli/service/helpers/refund-state-machine/refund-state-machine.d.ts +0 -14
  1474. package/cli/service/helpers/refund-state-machine/refund-state-machine.js +0 -65
  1475. package/cli/service/helpers/refund-state-machine/refund-state-machine.js.map +0 -1
  1476. package/cli/service/helpers/refund-state-machine/refund-state.d.ts +0 -11
  1477. package/cli/service/helpers/refund-state-machine/refund-state.js +0 -15
  1478. package/cli/service/helpers/refund-state-machine/refund-state.js.map +0 -1
  1479. package/cli/service/helpers/request-context/request-context.service.d.ts +0 -29
  1480. package/cli/service/helpers/request-context/request-context.service.js +0 -127
  1481. package/cli/service/helpers/request-context/request-context.service.js.map +0 -1
  1482. package/cli/service/helpers/shipping-calculator/shipping-calculator.d.ts +0 -18
  1483. package/cli/service/helpers/shipping-calculator/shipping-calculator.js +0 -50
  1484. package/cli/service/helpers/shipping-calculator/shipping-calculator.js.map +0 -1
  1485. package/cli/service/helpers/translatable-saver/translatable-saver.d.ts +0 -24
  1486. package/cli/service/helpers/translatable-saver/translatable-saver.js +0 -64
  1487. package/cli/service/helpers/translatable-saver/translatable-saver.js.map +0 -1
  1488. package/cli/service/helpers/translatable-saver/translation-differ.d.ts +0 -17
  1489. package/cli/service/helpers/translatable-saver/translation-differ.js +0 -65
  1490. package/cli/service/helpers/translatable-saver/translation-differ.js.map +0 -1
  1491. package/cli/service/helpers/utils/address-to-line.d.ts +0 -3
  1492. package/cli/service/helpers/utils/address-to-line.js +0 -21
  1493. package/cli/service/helpers/utils/address-to-line.js.map +0 -1
  1494. package/cli/service/helpers/utils/get-user-channels-permissions.d.ts +0 -10
  1495. package/cli/service/helpers/utils/get-user-channels-permissions.js +0 -26
  1496. package/cli/service/helpers/utils/get-user-channels-permissions.js.map +0 -1
  1497. package/cli/service/helpers/utils/order-utils.d.ts +0 -9
  1498. package/cli/service/helpers/utils/order-utils.js +0 -64
  1499. package/cli/service/helpers/utils/order-utils.js.map +0 -1
  1500. package/cli/service/helpers/utils/patch-entity.d.ts +0 -5
  1501. package/cli/service/helpers/utils/patch-entity.js +0 -17
  1502. package/cli/service/helpers/utils/patch-entity.js.map +0 -1
  1503. package/cli/service/helpers/utils/samples-each.d.ts +0 -1
  1504. package/cli/service/helpers/utils/samples-each.js +0 -18
  1505. package/cli/service/helpers/utils/samples-each.js.map +0 -1
  1506. package/cli/service/helpers/utils/translate-entity.d.ts +0 -24
  1507. package/cli/service/helpers/utils/translate-entity.js +0 -99
  1508. package/cli/service/helpers/utils/translate-entity.js.map +0 -1
  1509. package/cli/service/helpers/verification-token-generator/verification-token-generator.d.ts +0 -7
  1510. package/cli/service/helpers/verification-token-generator/verification-token-generator.js +0 -44
  1511. package/cli/service/helpers/verification-token-generator/verification-token-generator.js.map +0 -1
  1512. package/cli/service/services/administrator.service.d.ts +0 -36
  1513. package/cli/service/services/administrator.service.js +0 -230
  1514. package/cli/service/services/administrator.service.js.map +0 -1
  1515. package/cli/service/services/asset.service.d.ts +0 -63
  1516. package/cli/service/services/asset.service.js +0 -478
  1517. package/cli/service/services/asset.service.js.map +0 -1
  1518. package/cli/service/services/channel.service.d.ts +0 -38
  1519. package/cli/service/services/channel.service.js +0 -222
  1520. package/cli/service/services/channel.service.js.map +0 -1
  1521. package/cli/service/services/country.service.d.ts +0 -24
  1522. package/cli/service/services/country.service.js +0 -119
  1523. package/cli/service/services/country.service.js.map +0 -1
  1524. package/cli/service/services/customer.service.d.ts +0 -62
  1525. package/cli/service/services/customer.service.js +0 -662
  1526. package/cli/service/services/customer.service.js.map +0 -1
  1527. package/cli/service/services/facet-value.service.d.ts +0 -32
  1528. package/cli/service/services/facet-value.service.js +0 -151
  1529. package/cli/service/services/facet-value.service.js.map +0 -1
  1530. package/cli/service/services/fulfillment.service.d.ts +0 -32
  1531. package/cli/service/services/fulfillment.service.js +0 -106
  1532. package/cli/service/services/fulfillment.service.js.map +0 -1
  1533. package/cli/service/services/global-settings.service.d.ts +0 -17
  1534. package/cli/service/services/global-settings.service.js +0 -74
  1535. package/cli/service/services/global-settings.service.js.map +0 -1
  1536. package/cli/service/services/history.service.d.ts +0 -139
  1537. package/cli/service/services/history.service.js +0 -143
  1538. package/cli/service/services/history.service.js.map +0 -1
  1539. package/cli/service/services/order.service.d.ts +0 -136
  1540. package/cli/service/services/order.service.js +0 -1158
  1541. package/cli/service/services/order.service.js.map +0 -1
  1542. package/cli/service/services/payment-method.service.d.ts +0 -37
  1543. package/cli/service/services/payment-method.service.js +0 -178
  1544. package/cli/service/services/payment-method.service.js.map +0 -1
  1545. package/cli/service/services/payment.service.d.ts +0 -32
  1546. package/cli/service/services/payment.service.js +0 -216
  1547. package/cli/service/services/payment.service.js.map +0 -1
  1548. package/cli/service/services/product-variant.service.d.ts +0 -70
  1549. package/cli/service/services/product-variant.service.js +0 -560
  1550. package/cli/service/services/product-variant.service.js.map +0 -1
  1551. package/cli/service/services/promotion.service.d.ts +0 -41
  1552. package/cli/service/services/promotion.service.js +0 -219
  1553. package/cli/service/services/promotion.service.js.map +0 -1
  1554. package/cli/service/services/role.service.d.ts +0 -39
  1555. package/cli/service/services/role.service.js +0 -240
  1556. package/cli/service/services/role.service.js.map +0 -1
  1557. package/cli/service/services/session.service.d.ts +0 -38
  1558. package/cli/service/services/session.service.js +0 -228
  1559. package/cli/service/services/session.service.js.map +0 -1
  1560. package/cli/service/services/shipping-method.service.d.ts +0 -36
  1561. package/cli/service/services/shipping-method.service.js +0 -181
  1562. package/cli/service/services/shipping-method.service.js.map +0 -1
  1563. package/cli/service/services/stock-movement.service.d.ts +0 -39
  1564. package/cli/service/services/stock-movement.service.js +0 -214
  1565. package/cli/service/services/stock-movement.service.js.map +0 -1
  1566. package/cli/service/services/tag.service.d.ts +0 -21
  1567. package/cli/service/services/tag.service.js +0 -82
  1568. package/cli/service/services/tag.service.js.map +0 -1
  1569. package/cli/service/services/tax-category.service.d.ts +0 -16
  1570. package/cli/service/services/tax-category.service.js +0 -95
  1571. package/cli/service/services/tax-category.service.js.map +0 -1
  1572. package/cli/service/services/tax-rate.service.d.ts +0 -28
  1573. package/cli/service/services/tax-rate.service.js +0 -134
  1574. package/cli/service/services/tax-rate.service.js.map +0 -1
  1575. package/cli/service/services/user.service.d.ts +0 -37
  1576. package/cli/service/services/user.service.js +0 -287
  1577. package/cli/service/services/user.service.js.map +0 -1
  1578. package/cli/service/services/zone.service.d.ts +0 -26
  1579. package/cli/service/services/zone.service.js +0 -168
  1580. package/cli/service/services/zone.service.js.map +0 -1
@@ -15,20 +15,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.PaymentMethodResolver = void 0;
16
16
  const graphql_1 = require("@nestjs/graphql");
17
17
  const generated_types_1 = require("@vendure/common/lib/generated-types");
18
+ const payment_method_entity_1 = require("../../../entity/payment-method/payment-method.entity");
18
19
  const payment_method_service_1 = require("../../../service/services/payment-method.service");
19
20
  const request_context_1 = require("../../common/request-context");
20
21
  const allow_decorator_1 = require("../../decorators/allow.decorator");
22
+ const relations_decorator_1 = require("../../decorators/relations.decorator");
21
23
  const request_context_decorator_1 = require("../../decorators/request-context.decorator");
22
24
  const transaction_decorator_1 = require("../../decorators/transaction.decorator");
23
25
  let PaymentMethodResolver = class PaymentMethodResolver {
24
26
  constructor(paymentMethodService) {
25
27
  this.paymentMethodService = paymentMethodService;
26
28
  }
27
- paymentMethods(ctx, args) {
28
- return this.paymentMethodService.findAll(ctx, args.options || undefined);
29
+ paymentMethods(ctx, args, relations) {
30
+ return this.paymentMethodService.findAll(ctx, args.options || undefined, relations);
29
31
  }
30
- paymentMethod(ctx, args) {
31
- return this.paymentMethodService.findOne(ctx, args.id);
32
+ paymentMethod(ctx, args, relations) {
33
+ return this.paymentMethodService.findOne(ctx, args.id, relations);
32
34
  }
33
35
  createPaymentMethod(ctx, args) {
34
36
  return this.paymentMethodService.create(ctx, args.input);
@@ -51,8 +53,9 @@ __decorate([
51
53
  (0, allow_decorator_1.Allow)(generated_types_1.Permission.ReadSettings, generated_types_1.Permission.ReadPaymentMethod),
52
54
  __param(0, (0, request_context_decorator_1.Ctx)()),
53
55
  __param(1, (0, graphql_1.Args)()),
56
+ __param(2, (0, relations_decorator_1.Relations)(payment_method_entity_1.PaymentMethod)),
54
57
  __metadata("design:type", Function),
55
- __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
58
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object, Array]),
56
59
  __metadata("design:returntype", Promise)
57
60
  ], PaymentMethodResolver.prototype, "paymentMethods", null);
58
61
  __decorate([
@@ -60,8 +63,9 @@ __decorate([
60
63
  (0, allow_decorator_1.Allow)(generated_types_1.Permission.ReadSettings, generated_types_1.Permission.ReadPaymentMethod),
61
64
  __param(0, (0, request_context_decorator_1.Ctx)()),
62
65
  __param(1, (0, graphql_1.Args)()),
66
+ __param(2, (0, relations_decorator_1.Relations)(payment_method_entity_1.PaymentMethod)),
63
67
  __metadata("design:type", Function),
64
- __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
68
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object, Array]),
65
69
  __metadata("design:returntype", Promise)
66
70
  ], PaymentMethodResolver.prototype, "paymentMethod", null);
67
71
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"payment-method.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/admin/payment-method.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAkE;AAClE,yEAS6C;AAI7C,6FAAwF;AACxF,kEAA8D;AAC9D,sEAAyD;AACzD,0FAAiE;AACjE,kFAAqE;AAGrE,IAAa,qBAAqB,GAAlC,MAAa,qBAAqB;IAC9B,YAAoB,oBAA0C;QAA1C,yBAAoB,GAApB,oBAAoB,CAAsB;IAAG,CAAC;IAIlE,cAAc,CACH,GAAmB,EAClB,IAA6B;QAErC,OAAO,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC;IAC7E,CAAC;IAID,aAAa,CACF,GAAmB,EAClB,IAA4B;QAEpC,OAAO,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;IAC3D,CAAC;IAKD,mBAAmB,CACR,GAAmB,EAClB,IAAqC;Q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AAA;IACL,WAAA,IAAA,cAAI,GAAE,CAAA;;qCADK,gCAAc;;gEAI7B;AAKD;IAHC,IAAA,mCAAW,GAAE;IACb,IAAA,kBAAQ,GAAE;IACV,IAAA,uBAAK,EAAC,4BAAU,CAAC,cAAc,EAAE,4BAAU,CAAC,mBAAmB,CAAC;IAE5D,WAAA,IAAA,+BAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAI,GAAE,CAAA;;qCADK,gCAAc;;gEAI7B;AAKD;IAHC,IAAA,mCAAW,GAAE;IACb,IAAA,kBAAQ,GAAE;IACV,IAAA,uBAAK,EAAC,4BAAU,CAAC,cAAc,EAAE,4BAAU,CAAC,mBAAmB,CAAC;IAE5D,WAAA,IAAA,+BAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAI,GAAE,CAAA;;qCADK,gCAAc;;gEAI7B;AAID;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,uBAAK,EAAC,4BAAU,CAAC,YAAY,EAAE,4BAAU,CAAC,iBAAiB,CAAC;IACtC,WAAA,IAAA,+BAAG,GAAE,CAAA;;qCAAM,gCAAc;;kEAE/C;AAID;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,uBAAK,EAAC,4BAAU,CAAC,YAAY,EAAE,4BAAU,CAAC,iBAAiB,CAAC;IAC3B,WAAA,IAAA,+BAAG,GAAE,CAAA;;qCAAM,gCAAc;;6EAE1D;AA7DQ,qBAAqB;IADjC,IAAA,kBAAQ,EAAC,eAAe,CAAC;qCAEoB,6CAAoB;GADrD,qBAAqB,CA8DjC;AA9DY,sDAAqB"}
1
+ {"version":3,"file":"payment-method.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/admin/payment-method.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAkE;AAClE,yEAS6C;AAG7C,gGAAqF;AACrF,6FAAwF;AACxF,kEAA8D;AAC9D,sEAAyD;AACzD,8EAAgF;AAChF,0FAAiE;AACjE,kFAAqE;AAGrE,IAAa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AA,IAAA,+BAAG,GAAE,CAAA;;qCAAM,gCAAc;;kEAE/C;AAID;IAFC,IAAA,eAAK,GAAE;IACP,IAAA,uBAAK,EAAC,4BAAU,CAAC,YAAY,EAAE,4BAAU,CAAC,iBAAiB,CAAC;IAC3B,WAAA,IAAA,+BAAG,GAAE,CAAA;;qCAAM,gCAAc;;6EAE1D;AA/DQ,qBAAqB;IADjC,IAAA,kBAAQ,EAAC,eAAe,CAAC;qCAEoB,6CAAoB;GADrD,qBAAqB,CAgEjC;AAhEY,sDAAqB"}
@@ -1,18 +1,20 @@
1
- import { MutationCreateProductOptionArgs, MutationCreateProductOptionGroupArgs, MutationUpdateProductOptionArgs, MutationUpdateProductOptionGroupArgs, QueryProductOptionGroupArgs, QueryProductOptionGroupsArgs } from '@vendure/common/lib/generated-types';
1
+ import { DeletionResponse, MutationCreateProductOptionArgs, MutationCreateProductOptionGroupArgs, MutationDeleteProductOptionArgs, MutationUpdateProductOptionArgs, MutationUpdateProductOptionGroupArgs, QueryProductOptionGroupArgs, QueryProductOptionGroupsArgs } from '@vendure/common/lib/generated-types';
2
2
  import { Translated } from '../../../common/types/locale-types';
3
3
  import { ProductOptionGroup } from '../../../entity/product-option-group/product-option-group.entity';
4
4
  import { ProductOption } from '../../../entity/product-option/product-option.entity';
5
5
  import { ProductOptionGroupService } from '../../../service/services/product-option-group.service';
6
6
  import { ProductOptionService } from '../../../service/services/product-option.service';
7
7
  import { RequestContext } from '../../common/request-context';
8
+ import { RelationPaths } from '../../decorators/relations.decorator';
8
9
  export declare class ProductOptionResolver {
9
10
  private productOptionGroupService;
10
11
  private productOptionService;
11
12
  constructor(productOptionGroupService: ProductOptionGroupService, productOptionService: ProductOptionService);
12
- productOptionGroups(ctx: RequestContext, args: QueryProductOptionGroupsArgs): Promise<Array<Translated<ProductOptionGroup>>>;
13
- productOptionGroup(ctx: RequestContext, args: QueryProductOptionGroupArgs): Promise<Translated<ProductOptionGroup> | undefined>;
13
+ productOptionGroups(ctx: RequestContext, args: QueryProductOptionGroupsArgs, relations: RelationPaths<ProductOptionGroup>): Promise<Array<Translated<ProductOptionGroup>>>;
14
+ productOptionGroup(ctx: RequestContext, args: QueryProductOptionGroupArgs, relations: RelationPaths<ProductOptionGroup>): Promise<Translated<ProductOptionGroup> | undefined>;
14
15
  createProductOptionGroup(ctx: RequestContext, args: MutationCreateProductOptionGroupArgs): Promise<Translated<ProductOptionGroup>>;
15
16
  updateProductOptionGroup(ctx: RequestContext, args: MutationUpdateProductOptionGroupArgs): Promise<Translated<ProductOptionGroup>>;
16
17
  createProductOption(ctx: RequestContext, args: MutationCreateProductOptionArgs): Promise<Translated<ProductOption>>;
17
18
  updateProductOption(ctx: RequestContext, args: MutationUpdateProductOptionArgs): Promise<Translated<ProductOption>>;
19
+ deleteProductOption(ctx: RequestContext, { id }: MutationDeleteProductOptionArgs): Promise<DeletionResponse>;
18
20
  }
@@ -15,10 +15,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.ProductOptionResolver = void 0;
16
16
  const graphql_1 = require("@nestjs/graphql");
17
17
  const generated_types_1 = require("@vendure/common/lib/generated-types");
18
+ const product_option_group_entity_1 = require("../../../entity/product-option-group/product-option-group.entity");
18
19
  const product_option_group_service_1 = require("../../../service/services/product-option-group.service");
19
20
  const product_option_service_1 = require("../../../service/services/product-option.service");
20
21
  const request_context_1 = require("../../common/request-context");
21
22
  const allow_decorator_1 = require("../../decorators/allow.decorator");
23
+ const relations_decorator_1 = require("../../decorators/relations.decorator");
22
24
  const request_context_decorator_1 = require("../../decorators/request-context.decorator");
23
25
  const transaction_decorator_1 = require("../../decorators/transaction.decorator");
24
26
  let ProductOptionResolver = class ProductOptionResolver {
@@ -26,10 +28,10 @@ let ProductOptionResolver = class ProductOptionResolver {
26
28
  this.productOptionGroupService = productOptionGroupService;
27
29
  this.productOptionService = productOptionService;
28
30
  }
29
- productOptionGroups(ctx, args) {
31
+ productOptionGroups(ctx, args, relations) {
30
32
  return this.productOptionGroupService.findAll(ctx, args.filterTerm || undefined);
31
33
  }
32
- productOptionGroup(ctx, args) {
34
+ productOptionGroup(ctx, args, relations) {
33
35
  return this.productOptionGroupService.findOne(ctx, args.id);
34
36
  }
35
37
  async createProductOptionGroup(ctx, args) {
@@ -55,14 +57,18 @@ let ProductOptionResolver = class ProductOptionResolver {
55
57
  const { input } = args;
56
58
  return this.productOptionService.update(ctx, input);
57
59
  }
60
+ async deleteProductOption(ctx, { id }) {
61
+ return this.productOptionService.delete(ctx, id);
62
+ }
58
63
  };
59
64
  __decorate([
60
65
  (0, graphql_1.Query)(),
61
66
  (0, allow_decorator_1.Allow)(generated_types_1.Permission.ReadCatalog, generated_types_1.Permission.ReadProduct),
62
67
  __param(0, (0, request_context_decorator_1.Ctx)()),
63
68
  __param(1, (0, graphql_1.Args)()),
69
+ __param(2, (0, relations_decorator_1.Relations)(product_option_group_entity_1.ProductOptionGroup)),
64
70
  __metadata("design:type", Function),
65
- __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
71
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object, Array]),
66
72
  __metadata("design:returntype", Promise)
67
73
  ], ProductOptionResolver.prototype, "productOptionGroups", null);
68
74
  __decorate([
@@ -70,8 +76,9 @@ __decorate([
70
76
  (0, allow_decorator_1.Allow)(generated_types_1.Permission.ReadCatalog, generated_types_1.Permission.ReadProduct),
71
77
  __param(0, (0, request_context_decorator_1.Ctx)()),
72
78
  __param(1, (0, graphql_1.Args)()),
79
+ __param(2, (0, relations_decorator_1.Relations)(product_option_group_entity_1.ProductOptionGroup)),
73
80
  __metadata("design:type", Function),
74
- __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
81
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object, Array]),
75
82
  __metadata("design:returntype", Promise)
76
83
  ], ProductOptionResolver.prototype, "productOptionGroup", null);
77
84
  __decorate([
@@ -114,6 +121,16 @@ __decorate([
114
121
  __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
115
122
  __metadata("design:returntype", Promise)
116
123
  ], ProductOptionResolver.prototype, "updateProductOption", null);
124
+ __decorate([
125
+ (0, transaction_decorator_1.Transaction)(),
126
+ (0, graphql_1.Mutation)(),
127
+ (0, allow_decorator_1.Allow)(generated_types_1.Permission.DeleteCatalog, generated_types_1.Permission.DeleteProduct),
128
+ __param(0, (0, request_context_decorator_1.Ctx)()),
129
+ __param(1, (0, graphql_1.Args)()),
130
+ __metadata("design:type", Function),
131
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
132
+ __metadata("design:returntype", Promise)
133
+ ], ProductOptionResolver.prototype, "deleteProductOption", null);
117
134
  ProductOptionResolver = __decorate([
118
135
  (0, graphql_1.Resolver)(),
119
136
  __metadata("design:paramtypes", [product_option_group_service_1.ProductOptionGroupService,
@@ -1 +1 @@
1
- {"version":3,"file":"product-option.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/admin/product-option.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAkE;AAClE,yEAQ6C;AAK7C,yGAAmG;AACnG,6FAAwF;AACxF,kEAA8D;AAC9D,sEAAyD;AACzD,0FAAiE;AACjE,kFAAqE;AAGrE,IAAa,qBAAqB,GAAlC,MAAa,qBAAqB;IAC9B,YACY,yBAAoD,EACpD,oBAA0C;QAD1C,8BAAyB,GAAzB,yBAAyB,CAA2B;QACpD,yBAAoB,GAApB,oBAAoB,CAAsB;IACnD,CAAC;IAIJ,mBAAmB,CACR,GAAmB,EAClB,IAAkC;QAE1C,OAAO,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC;IACrF,CAAC;IAID,kBAAkB,CACP,GAAmB,EAClB,IAAiC;QAEzC,OAAO,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;IAChE,CAAC;IAKD,KAAK,CAAC,wBAAwB,CACn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AAqB;IADjC,IAAA,kBAAQ,GAAE;qCAGgC,wDAAyB;QAC9B,6CAAoB;GAH7C,qBAAqB,CA2EjC;AA3EY,sDAAqB"}
1
+ {"version":3,"file":"product-option.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/admin/product-option.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAkE;AAClE,yEAW6C;AAG7C,kHAAsG;AAEtG,yGAAmG;AACnG,6FAAwF;AACxF,kEAA8D;AAC9D,sEAAyD;AACzD,8EAAgF;AAChF,0FAAiE;AACjE,kFAAqE;AAGrE,IAAa,qBAAqB,GAAlC,MAAa,qBAAqB;IAC9B,YACY,yBAAoD,EACpD,oBAA0C;QAD1C,8BAAyB,GAAzB,yBAAyB,CAA2B;QACpD,yBAAoB,GAApB,oBAAoB,CAAsB;IACnD,CAAC;IAIJ,mBAAmB,CACR,GAAmB,EAClB,IAAkC,EACX,SAA4C;QAE3E,OAAO,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,UAAU,IAAI,SAAS,CAAC,CAAC;IACrF,CAAC;IAID,kBAAkB,CACP,GAAmB,EAClB,IAAiC,EACV,SAA4C;QAE3E,OAAO,IAAI,CAAC,yBAAyB,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;IAChE,CAAC;IAKD,KAAK,CAAC,wBAAwB,CACnB,GAAmB,EAClB,IAA0C;QAElD,MAAM,EAAE,KAAK,EAAE,GAAG,IAAI,CAAC;QACvB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;QAEtE,IAAI,KAAK,CAAC,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,EAAE;YACvC,KAAK,MAAM,MAAM,IAAI,KAAK,CAAC,OAAO,EAAE;gBAChC,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,oBAAo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aAAa,EAAE,4BAAU,CAAC,aAAa,CAAC;IAErD,WAAA,IAAA,+BAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAI,GAAE,CAAA;;qCADK,gCAAc;;gEAI7B;AAtFQ,qBAAqB;IADjC,IAAA,kBAAQ,GAAE;qCAGgC,wDAAyB;QAC9B,6CAAoB;GAH7C,qBAAqB,CAuFjC;AAvFY,sDAAqB"}
@@ -1,4 +1,4 @@
1
- import { DeletionResponse, MutationAddOptionGroupToProductArgs, MutationAssignProductsToChannelArgs, MutationAssignProductVariantsToChannelArgs, MutationCreateProductArgs, MutationCreateProductVariantsArgs, MutationDeleteProductArgs, MutationDeleteProductVariantArgs, MutationRemoveOptionGroupFromProductArgs, MutationRemoveProductsFromChannelArgs, MutationRemoveProductVariantsFromChannelArgs, MutationUpdateProductArgs, MutationUpdateProductVariantsArgs, QueryProductArgs, QueryProductsArgs, QueryProductVariantArgs, QueryProductVariantsArgs, RemoveOptionGroupFromProductResult } from '@vendure/common/lib/generated-types';
1
+ import { DeletionResponse, MutationAddOptionGroupToProductArgs, MutationAssignProductsToChannelArgs, MutationAssignProductVariantsToChannelArgs, MutationCreateProductArgs, MutationCreateProductVariantsArgs, MutationDeleteProductArgs, MutationDeleteProductsArgs, MutationDeleteProductVariantArgs, MutationDeleteProductVariantsArgs, MutationRemoveOptionGroupFromProductArgs, MutationRemoveProductsFromChannelArgs, MutationRemoveProductVariantsFromChannelArgs, MutationUpdateProductArgs, MutationUpdateProductsArgs, MutationUpdateProductVariantsArgs, QueryProductArgs, QueryProductsArgs, QueryProductVariantArgs, QueryProductVariantsArgs, RemoveOptionGroupFromProductResult } from '@vendure/common/lib/generated-types';
2
2
  import { PaginatedList } from '@vendure/common/lib/shared-types';
3
3
  import { ErrorResultUnion } from '../../../common/error/error-result';
4
4
  import { Translated } from '../../../common/types/locale-types';
@@ -8,23 +8,27 @@ import { FacetValueService } from '../../../service/services/facet-value.service
8
8
  import { ProductVariantService } from '../../../service/services/product-variant.service';
9
9
  import { ProductService } from '../../../service/services/product.service';
10
10
  import { RequestContext } from '../../common/request-context';
11
+ import { RelationPaths } from '../../decorators/relations.decorator';
11
12
  export declare class ProductResolver {
12
13
  private productService;
13
14
  private productVariantService;
14
15
  private facetValueService;
15
16
  constructor(productService: ProductService, productVariantService: ProductVariantService, facetValueService: FacetValueService);
16
- products(ctx: RequestContext, args: QueryProductsArgs): Promise<PaginatedList<Translated<Product>>>;
17
- product(ctx: RequestContext, args: QueryProductArgs): Promise<Translated<Product> | undefined>;
18
- productVariants(ctx: RequestContext, args: QueryProductVariantsArgs): Promise<PaginatedList<Translated<ProductVariant>>>;
17
+ products(ctx: RequestContext, args: QueryProductsArgs, relations: RelationPaths<Product>): Promise<PaginatedList<Translated<Product>>>;
18
+ product(ctx: RequestContext, args: QueryProductArgs, relations: RelationPaths<Product>): Promise<Translated<Product> | undefined>;
19
+ productVariants(ctx: RequestContext, args: QueryProductVariantsArgs, relations: RelationPaths<ProductVariant>): Promise<PaginatedList<Translated<ProductVariant>>>;
19
20
  productVariant(ctx: RequestContext, args: QueryProductVariantArgs): Promise<Translated<ProductVariant> | undefined>;
20
21
  createProduct(ctx: RequestContext, args: MutationCreateProductArgs): Promise<Translated<Product>>;
21
22
  updateProduct(ctx: RequestContext, args: MutationUpdateProductArgs): Promise<Translated<Product>>;
23
+ updateProducts(ctx: RequestContext, args: MutationUpdateProductsArgs): Promise<Array<Translated<Product>>>;
22
24
  deleteProduct(ctx: RequestContext, args: MutationDeleteProductArgs): Promise<DeletionResponse>;
25
+ deleteProducts(ctx: RequestContext, args: MutationDeleteProductsArgs): Promise<DeletionResponse[]>;
23
26
  addOptionGroupToProduct(ctx: RequestContext, args: MutationAddOptionGroupToProductArgs): Promise<Translated<Product>>;
24
27
  removeOptionGroupFromProduct(ctx: RequestContext, args: MutationRemoveOptionGroupFromProductArgs): Promise<ErrorResultUnion<RemoveOptionGroupFromProductResult, Translated<Product>>>;
25
28
  createProductVariants(ctx: RequestContext, args: MutationCreateProductVariantsArgs): Promise<Array<Translated<ProductVariant>>>;
26
29
  updateProductVariants(ctx: RequestContext, args: MutationUpdateProductVariantsArgs): Promise<Array<Translated<ProductVariant>>>;
27
30
  deleteProductVariant(ctx: RequestContext, args: MutationDeleteProductVariantArgs): Promise<DeletionResponse>;
31
+ deleteProductVariants(ctx: RequestContext, args: MutationDeleteProductVariantsArgs): Promise<DeletionResponse[]>;
28
32
  assignProductsToChannel(ctx: RequestContext, args: MutationAssignProductsToChannelArgs): Promise<Array<Translated<Product>>>;
29
33
  removeProductsFromChannel(ctx: RequestContext, args: MutationRemoveProductsFromChannelArgs): Promise<Array<Translated<Product>>>;
30
34
  assignProductVariantsToChannel(ctx: RequestContext, args: MutationAssignProductVariantsToChannelArgs): Promise<Array<Translated<ProductVariant>>>;
@@ -16,11 +16,14 @@ exports.ProductResolver = void 0;
16
16
  const graphql_1 = require("@nestjs/graphql");
17
17
  const generated_types_1 = require("@vendure/common/lib/generated-types");
18
18
  const errors_1 = require("../../../common/error/errors");
19
+ const product_variant_entity_1 = require("../../../entity/product-variant/product-variant.entity");
20
+ const product_entity_1 = require("../../../entity/product/product.entity");
19
21
  const facet_value_service_1 = require("../../../service/services/facet-value.service");
20
22
  const product_variant_service_1 = require("../../../service/services/product-variant.service");
21
23
  const product_service_1 = require("../../../service/services/product.service");
22
24
  const request_context_1 = require("../../common/request-context");
23
25
  const allow_decorator_1 = require("../../decorators/allow.decorator");
26
+ const relations_decorator_1 = require("../../decorators/relations.decorator");
24
27
  const request_context_decorator_1 = require("../../decorators/request-context.decorator");
25
28
  const transaction_decorator_1 = require("../../decorators/transaction.decorator");
26
29
  let ProductResolver = class ProductResolver {
@@ -29,27 +32,27 @@ let ProductResolver = class ProductResolver {
29
32
  this.productVariantService = productVariantService;
30
33
  this.facetValueService = facetValueService;
31
34
  }
32
- async products(ctx, args) {
33
- return this.productService.findAll(ctx, args.options || undefined);
35
+ async products(ctx, args, relations) {
36
+ return this.productService.findAll(ctx, args.options || undefined, relations);
34
37
  }
35
- async product(ctx, args) {
38
+ async product(ctx, args, relations) {
36
39
  if (args.id) {
37
- const product = await this.productService.findOne(ctx, args.id);
40
+ const product = await this.productService.findOne(ctx, args.id, relations);
38
41
  if (args.slug && product && product.slug !== args.slug) {
39
42
  throw new errors_1.UserInputError(`error.product-id-slug-mismatch`);
40
43
  }
41
44
  return product;
42
45
  }
43
46
  else if (args.slug) {
44
- return this.productService.findOneBySlug(ctx, args.slug);
47
+ return this.productService.findOneBySlug(ctx, args.slug, relations);
45
48
  }
46
49
  else {
47
50
  throw new errors_1.UserInputError(`error.product-id-or-slug-must-be-provided`);
48
51
  }
49
52
  }
50
- async productVariants(ctx, args) {
53
+ async productVariants(ctx, args, relations) {
51
54
  if (args.productId) {
52
- return this.productVariantService.getVariantsByProductId(ctx, args.productId, args.options || undefined);
55
+ return this.productVariantService.getVariantsByProductId(ctx, args.productId, args.options || undefined, relations);
53
56
  }
54
57
  return this.productVariantService.findAll(ctx, args.options || undefined);
55
58
  }
@@ -64,9 +67,16 @@ let ProductResolver = class ProductResolver {
64
67
  const { input } = args;
65
68
  return await this.productService.update(ctx, input);
66
69
  }
70
+ async updateProducts(ctx, args) {
71
+ const { input } = args;
72
+ return await Promise.all(args.input.map(i => this.productService.update(ctx, i)));
73
+ }
67
74
  async deleteProduct(ctx, args) {
68
75
  return this.productService.softDelete(ctx, args.id);
69
76
  }
77
+ async deleteProducts(ctx, args) {
78
+ return Promise.all(args.ids.map(id => this.productService.softDelete(ctx, id)));
79
+ }
70
80
  async addOptionGroupToProduct(ctx, args) {
71
81
  const { productId, optionGroupId } = args;
72
82
  return this.productService.addOptionGroupToProduct(ctx, productId, optionGroupId);
@@ -86,6 +96,9 @@ let ProductResolver = class ProductResolver {
86
96
  async deleteProductVariant(ctx, args) {
87
97
  return this.productVariantService.softDelete(ctx, args.id);
88
98
  }
99
+ async deleteProductVariants(ctx, args) {
100
+ return Promise.all(args.ids.map(id => this.productVariantService.softDelete(ctx, id)));
101
+ }
89
102
  async assignProductsToChannel(ctx, args) {
90
103
  return this.productService.assignProductsToChannel(ctx, args.input);
91
104
  }
@@ -104,8 +117,9 @@ __decorate([
104
117
  (0, allow_decorator_1.Allow)(generated_types_1.Permission.ReadCatalog, generated_types_1.Permission.ReadProduct),
105
118
  __param(0, (0, request_context_decorator_1.Ctx)()),
106
119
  __param(1, (0, graphql_1.Args)()),
120
+ __param(2, (0, relations_decorator_1.Relations)({ entity: product_entity_1.Product, omit: ['variants', 'assets'] })),
107
121
  __metadata("design:type", Function),
108
- __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
122
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object, Array]),
109
123
  __metadata("design:returntype", Promise)
110
124
  ], ProductResolver.prototype, "products", null);
111
125
  __decorate([
@@ -113,8 +127,9 @@ __decorate([
113
127
  (0, allow_decorator_1.Allow)(generated_types_1.Permission.ReadCatalog, generated_types_1.Permission.ReadProduct),
114
128
  __param(0, (0, request_context_decorator_1.Ctx)()),
115
129
  __param(1, (0, graphql_1.Args)()),
130
+ __param(2, (0, relations_decorator_1.Relations)({ entity: product_entity_1.Product, omit: ['variants', 'assets'] })),
116
131
  __metadata("design:type", Function),
117
- __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
132
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object, Array]),
118
133
  __metadata("design:returntype", Promise)
119
134
  ], ProductResolver.prototype, "product", null);
120
135
  __decorate([
@@ -122,8 +137,9 @@ __decorate([
122
137
  (0, allow_decorator_1.Allow)(generated_types_1.Permission.ReadCatalog, generated_types_1.Permission.ReadProduct),
123
138
  __param(0, (0, request_context_decorator_1.Ctx)()),
124
139
  __param(1, (0, graphql_1.Args)()),
140
+ __param(2, (0, relations_decorator_1.Relations)({ entity: product_variant_entity_1.ProductVariant, omit: ['assets'] })),
125
141
  __metadata("design:type", Function),
126
- __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
142
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object, Array]),
127
143
  __metadata("design:returntype", Promise)
128
144
  ], ProductResolver.prototype, "productVariants", null);
129
145
  __decorate([
@@ -155,6 +171,16 @@ __decorate([
155
171
  __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
156
172
  __metadata("design:returntype", Promise)
157
173
  ], ProductResolver.prototype, "updateProduct", null);
174
+ __decorate([
175
+ (0, transaction_decorator_1.Transaction)(),
176
+ (0, graphql_1.Mutation)(),
177
+ (0, allow_decorator_1.Allow)(generated_types_1.Permission.UpdateCatalog, generated_types_1.Permission.UpdateProduct),
178
+ __param(0, (0, request_context_decorator_1.Ctx)()),
179
+ __param(1, (0, graphql_1.Args)()),
180
+ __metadata("design:type", Function),
181
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
182
+ __metadata("design:returntype", Promise)
183
+ ], ProductResolver.prototype, "updateProducts", null);
158
184
  __decorate([
159
185
  (0, transaction_decorator_1.Transaction)(),
160
186
  (0, graphql_1.Mutation)(),
@@ -165,6 +191,16 @@ __decorate([
165
191
  __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
166
192
  __metadata("design:returntype", Promise)
167
193
  ], ProductResolver.prototype, "deleteProduct", null);
194
+ __decorate([
195
+ (0, transaction_decorator_1.Transaction)(),
196
+ (0, graphql_1.Mutation)(),
197
+ (0, allow_decorator_1.Allow)(generated_types_1.Permission.DeleteCatalog, generated_types_1.Permission.DeleteProduct),
198
+ __param(0, (0, request_context_decorator_1.Ctx)()),
199
+ __param(1, (0, graphql_1.Args)()),
200
+ __metadata("design:type", Function),
201
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
202
+ __metadata("design:returntype", Promise)
203
+ ], ProductResolver.prototype, "deleteProducts", null);
168
204
  __decorate([
169
205
  (0, transaction_decorator_1.Transaction)(),
170
206
  (0, graphql_1.Mutation)(),
@@ -215,6 +251,16 @@ __decorate([
215
251
  __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
216
252
  __metadata("design:returntype", Promise)
217
253
  ], ProductResolver.prototype, "deleteProductVariant", null);
254
+ __decorate([
255
+ (0, transaction_decorator_1.Transaction)(),
256
+ (0, graphql_1.Mutation)(),
257
+ (0, allow_decorator_1.Allow)(generated_types_1.Permission.DeleteCatalog, generated_types_1.Permission.DeleteProduct),
258
+ __param(0, (0, request_context_decorator_1.Ctx)()),
259
+ __param(1, (0, graphql_1.Args)()),
260
+ __metadata("design:type", Function),
261
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
262
+ __metadata("design:returntype", Promise)
263
+ ], ProductResolver.prototype, "deleteProductVariants", null);
218
264
  __decorate([
219
265
  (0, transaction_decorator_1.Transaction)(),
220
266
  (0, graphql_1.Mutation)(),
@@ -1 +1 @@
1
- {"version":3,"file":"product.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/admin/product.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAkE;AAClE,yEAoB6C;AAI7C,yDAA8D;AAI9D,uFAAkF;AAClF,+FAA0F;AAC1F,+EAA2E;AAC3E,kEAA8D;AAC9D,sEAAyD;AACzD,0FAAiE;AACjE,kFAAqE;AAGrE,IAAa,eAAe,GAA5B,MAAa,eAAe;IACxB,YACY,cAA8B,EAC9B,qBAA4C,EAC5C,iBAAoC;QAFpC,mBAAc,GAAd,cAAc,CAAgB;QAC9B,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,sBAAiB,GAAjB,iBAAiB,CAAmB;IAC7C,CAAC;IAIJ,KAAK,CAAC,QAAQ,CACH,GAAmB,EAClB,IAAuB;QAE/B,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC;IACvE,CAAC;IAID,KAAK,CAAC,OAAO,CACF,GAAmB,EAClB,IAAsB;QAE9B,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAA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AA;;qCADK,gCAAc;;gEAI7B;AAKD;IAHC,IAAA,mCAAW,GAAE;IACb,IAAA,kBAAQ,GAAE;IACV,IAAA,uBAAK,EAAC,4BAAU,CAAC,aAAa,EAAE,4BAAU,CAAC,aAAa,CAAC;IAErD,WAAA,IAAA,+BAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAI,GAAE,CAAA;;qCADK,gCAAc;;qEAI7B;AAKD;IAHC,IAAA,mCAAW,GAAE;IACb,IAAA,kBAAQ,GAAE;IACV,IAAA,uBAAK,EAAC,4BAAU,CAAC,aAAa,EAAE,4BAAU,CAAC,aAAa,CAAC;IAErD,WAAA,IAAA,+BAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAI,GAAE,CAAA;;qCADK,gCAAc;;uEAI7B;AAzLQ,eAAe;IAD3B,IAAA,kBAAQ,GAAE;qCAGqB,gCAAc;QACP,+CAAqB;QACzB,uCAAiB;GAJvC,eAAe,CA0L3B;AA1LY,0CAAe"}
1
+ {"version":3,"file":"product.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/admin/product.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAkE;AAClE,yEAuB6C;AAI7C,yDAA8D;AAE9D,mGAAwF;AACxF,2EAAiE;AACjE,uFAAkF;AAClF,+FAA0F;AAC1F,+EAA2E;AAC3E,kEAA8D;AAC9D,sEAAyD;AACzD,8EAAgF;AAChF,0FAAiE;AACjE,kFAAqE;AAGrE,IAAa,eAAe,GAA5B,MAAa,eAAe;IACxB,YACY,cAA8B,EAC9B,qBAA4C,EAC5C,iBAAoC;QAFpC,mBAAc,GAAd,cAAc,CAAgB;QAC9B,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,sBAAiB,GAAjB,iBAAiB,CAAmB;IAC7C,CAAC;IAIJ,KAAK,CAAC,QAAQ,CACH,GAAmB,EAClB,IAAuB,EAC+B,SAAiC;QAE/F,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,G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AAU,CAAC,aAAa,CAAC;IAErD,WAAA,IAAA,+BAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAI,GAAE,CAAA;;qCADK,gCAAc;;uEAI7B;AA5NQ,eAAe;IAD3B,IAAA,kBAAQ,GAAE;qCAGqB,gCAAc;QACP,+CAAqB;QACzB,uCAAiB;GAJvC,eAAe,CA6N3B;AA7NY,0CAAe"}
@@ -5,12 +5,13 @@ import { Promotion } from '../../../entity/promotion/promotion.entity';
5
5
  import { PromotionService } from '../../../service/services/promotion.service';
6
6
  import { ConfigurableOperationCodec } from '../../common/configurable-operation-codec';
7
7
  import { RequestContext } from '../../common/request-context';
8
+ import { RelationPaths } from '../../decorators/relations.decorator';
8
9
  export declare class PromotionResolver {
9
10
  private promotionService;
10
11
  private configurableOperationCodec;
11
12
  constructor(promotionService: PromotionService, configurableOperationCodec: ConfigurableOperationCodec);
12
- promotions(ctx: RequestContext, args: QueryPromotionsArgs): Promise<PaginatedList<Promotion>>;
13
- promotion(ctx: RequestContext, args: QueryPromotionArgs): Promise<Promotion | undefined>;
13
+ promotions(ctx: RequestContext, args: QueryPromotionsArgs, relations: RelationPaths<Promotion>): Promise<PaginatedList<Promotion>>;
14
+ promotion(ctx: RequestContext, args: QueryPromotionArgs, relations: RelationPaths<Promotion>): Promise<Promotion | undefined>;
14
15
  promotionConditions(ctx: RequestContext): import("@vendure/common/lib/generated-types").ConfigurableOperationDefinition[];
15
16
  promotionActions(ctx: RequestContext): import("@vendure/common/lib/generated-types").ConfigurableOperationDefinition[];
16
17
  createPromotion(ctx: RequestContext, args: MutationCreatePromotionArgs): Promise<ErrorResultUnion<CreatePromotionResult, Promotion>>;
@@ -22,6 +22,7 @@ const promotion_service_1 = require("../../../service/services/promotion.service
22
22
  const configurable_operation_codec_1 = require("../../common/configurable-operation-codec");
23
23
  const request_context_1 = require("../../common/request-context");
24
24
  const allow_decorator_1 = require("../../decorators/allow.decorator");
25
+ const relations_decorator_1 = require("../../decorators/relations.decorator");
25
26
  const request_context_decorator_1 = require("../../decorators/request-context.decorator");
26
27
  const transaction_decorator_1 = require("../../decorators/transaction.decorator");
27
28
  let PromotionResolver = class PromotionResolver {
@@ -39,14 +40,14 @@ let PromotionResolver = class PromotionResolver {
39
40
  return maybePromotion;
40
41
  };
41
42
  }
42
- promotions(ctx, args) {
43
- return this.promotionService.findAll(ctx, args.options || undefined).then(res => {
43
+ promotions(ctx, args, relations) {
44
+ return this.promotionService.findAll(ctx, args.options || undefined, relations).then(res => {
44
45
  res.items.forEach(this.encodeConditionsAndActions);
45
46
  return res;
46
47
  });
47
48
  }
48
- promotion(ctx, args) {
49
- return this.promotionService.findOne(ctx, args.id).then(this.encodeConditionsAndActions);
49
+ promotion(ctx, args, relations) {
50
+ return this.promotionService.findOne(ctx, args.id, relations).then(this.encodeConditionsAndActions);
50
51
  }
51
52
  promotionConditions(ctx) {
52
53
  return this.promotionService.getPromotionConditions(ctx);
@@ -80,8 +81,9 @@ __decorate([
80
81
  (0, allow_decorator_1.Allow)(generated_types_1.Permission.ReadPromotion, generated_types_1.Permission.ReadPromotion),
81
82
  __param(0, (0, request_context_decorator_1.Ctx)()),
82
83
  __param(1, (0, graphql_1.Args)()),
84
+ __param(2, (0, relations_decorator_1.Relations)(promotion_entity_1.Promotion)),
83
85
  __metadata("design:type", Function),
84
- __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
86
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object, Array]),
85
87
  __metadata("design:returntype", Promise)
86
88
  ], PromotionResolver.prototype, "promotions", null);
87
89
  __decorate([
@@ -89,8 +91,9 @@ __decorate([
89
91
  (0, allow_decorator_1.Allow)(generated_types_1.Permission.ReadPromotion, generated_types_1.Permission.ReadPromotion),
90
92
  __param(0, (0, request_context_decorator_1.Ctx)()),
91
93
  __param(1, (0, graphql_1.Args)()),
94
+ __param(2, (0, relations_decorator_1.Relations)(promotion_entity_1.Promotion)),
92
95
  __metadata("design:type", Function),
93
- __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
96
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object, Array]),
94
97
  __metadata("design:returntype", Promise)
95
98
  ], PromotionResolver.prototype, "promotion", null);
96
99
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"promotion.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/admin/promotion.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAkE;AAClE,yEAY6C;AAI7C,iFAAuG;AACvG,uFAAmF;AACnF,iFAAuE;AACvE,mFAA+E;AAC/E,4FAAuF;AACvF,kEAA8D;AAC9D,sEAAyD;AACzD,0FAAiE;AACjE,kFAAqE;AAGrE,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAC1B,YACY,gBAAkC,EAClC,0BAAsD;QADtD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,+BAA0B,GAA1B,0BAA0B,CAA4B;QAuGlE;;WAEG;QACK,+BAA0B,GAAG,CAGjC,cAAiB,EAChB,EAAE;YACH,IAAI,cAAc,YAAY,4BAAS,EAAE;gBACrC,IAAI,CAAC,0BAA0B,CAAC,8BAA8B,CAC1D,uCAAoB,EACpB,cAAc,CAAC,OAAO,CACzB,CAAC;gBACF,IAAI,CAAC,0BAA0B,CAAC,8BAA8B,CAC1D,wCAAkB,EAClB,cAAc,CAAC,UAAU,CAC5B,CAAC;aACL;YACD,OAAO,cAAc,CAAC;QAC1B,CAAC,CAAC;IAzHC,CAAC;IAIJ,UAAU,CACC,GAAmB,EAClB,IAAyB;QAEjC,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,IAAI,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;YAC5E,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;YACnD,OAAO,GAAG,CAAC;QACf,CAAC,CAAC,CAAC;IACP,CAAC;IAID,S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BAAiB;IAD7B,IAAA,kBAAQ,EAAC,WAAW,CAAC;qCAGY,oCAAgB;QACN,yDAA0B;GAHzD,iBAAiB,CA8H7B;AA9HY,8CAAiB"}
1
+ {"version":3,"file":"promotion.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/admin/promotion.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAkE;AAClE,yEAY6C;AAI7C,iFAAuG;AACvG,uFAAmF;AACnF,iFAAuE;AACvE,mFAA+E;AAC/E,4FAAuF;AACvF,kEAA8D;AAC9D,sEAAyD;AACzD,8EAAgF;AAChF,0FAAiE;AACjE,kFAAqE;AAGrE,IAAa,iBAAiB,GAA9B,MAAa,iBAAiB;IAC1B,YACY,gBAAkC,EAClC,0BAAsD;QADtD,qBAAgB,GAAhB,gBAAgB,CAAkB;QAClC,+BAA0B,GAA1B,0BAA0B,CAA4B;QA4GlE;;WAEG;QACK,+BAA0B,GAAG,CAGjC,cAAiB,EAChB,EAAE;YACH,IAAI,cAAc,YAAY,4BAAS,EAAE;gBACrC,IAAI,CAAC,0BAA0B,CAAC,8BAA8B,CAC1D,uCAAoB,EACpB,cAAc,CAAC,OAAO,CACzB,CAAC;gBACF,IAAI,CAAC,0BAA0B,CAAC,8BAA8B,CAC1D,wCAAkB,EAClB,cAAc,CAAC,UAAU,CAC5B,CAAC;aACL;YACD,OAAO,cAAc,CAAC;QAC1B,CAAC,CAAC;IA9HC,CAAC;IAIJ,UAAU,CACC,GAAmB,EAClB,IAAyB,EACX,SAAmC;QAEzD,OAAO,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,OAAO,IAAI,SAAS,EAAE,SAAS,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;YACvF,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,CAAC,CAAC;YACnD,OAAO,GAAG,CAAC;QACf,CAAC,CAAC,CAAC;IACP,CAAC;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AAC,eAAe,CAAC;IAEzD,WAAA,IAAA,+BAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAI,GAAE,CAAA;;qCADK,gCAAc;;oEAI7B;AA7GQ,iBAAiB;IAD7B,IAAA,kBAAQ,EAAC,WAAW,CAAC;qCAGY,oCAAgB;QACN,yDAA0B;GAHzD,iBAAiB,CAmI7B;AAnIY,8CAAiB"}
@@ -3,11 +3,12 @@ import { PaginatedList } from '@vendure/common/lib/shared-types';
3
3
  import { Role } from '../../../entity/role/role.entity';
4
4
  import { RoleService } from '../../../service/services/role.service';
5
5
  import { RequestContext } from '../../common/request-context';
6
+ import { RelationPaths } from '../../decorators/relations.decorator';
6
7
  export declare class RoleResolver {
7
8
  private roleService;
8
9
  constructor(roleService: RoleService);
9
- roles(ctx: RequestContext, args: QueryRolesArgs): Promise<PaginatedList<Role>>;
10
- role(ctx: RequestContext, args: QueryRoleArgs): Promise<Role | undefined>;
10
+ roles(ctx: RequestContext, args: QueryRolesArgs, relations: RelationPaths<Role>): Promise<PaginatedList<Role>>;
11
+ role(ctx: RequestContext, args: QueryRoleArgs, relations: RelationPaths<Role>): Promise<Role | undefined>;
11
12
  createRole(ctx: RequestContext, args: MutationCreateRoleArgs): Promise<Role>;
12
13
  updateRole(ctx: RequestContext, args: MutationUpdateRoleArgs): Promise<Role>;
13
14
  deleteRole(ctx: RequestContext, args: MutationDeleteRoleArgs): Promise<DeletionResponse>;
@@ -15,20 +15,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.RoleResolver = void 0;
16
16
  const graphql_1 = require("@nestjs/graphql");
17
17
  const generated_types_1 = require("@vendure/common/lib/generated-types");
18
+ const role_entity_1 = require("../../../entity/role/role.entity");
18
19
  const role_service_1 = require("../../../service/services/role.service");
19
20
  const request_context_1 = require("../../common/request-context");
20
21
  const allow_decorator_1 = require("../../decorators/allow.decorator");
22
+ const relations_decorator_1 = require("../../decorators/relations.decorator");
21
23
  const request_context_decorator_1 = require("../../decorators/request-context.decorator");
22
24
  const transaction_decorator_1 = require("../../decorators/transaction.decorator");
23
25
  let RoleResolver = class RoleResolver {
24
26
  constructor(roleService) {
25
27
  this.roleService = roleService;
26
28
  }
27
- roles(ctx, args) {
28
- return this.roleService.findAll(ctx, args.options || undefined);
29
+ roles(ctx, args, relations) {
30
+ return this.roleService.findAll(ctx, args.options || undefined, relations);
29
31
  }
30
- role(ctx, args) {
31
- return this.roleService.findOne(ctx, args.id);
32
+ role(ctx, args, relations) {
33
+ return this.roleService.findOne(ctx, args.id, relations);
32
34
  }
33
35
  createRole(ctx, args) {
34
36
  const { input } = args;
@@ -48,8 +50,9 @@ __decorate([
48
50
  (0, allow_decorator_1.Allow)(generated_types_1.Permission.ReadAdministrator),
49
51
  __param(0, (0, request_context_decorator_1.Ctx)()),
50
52
  __param(1, (0, graphql_1.Args)()),
53
+ __param(2, (0, relations_decorator_1.Relations)(role_entity_1.Role)),
51
54
  __metadata("design:type", Function),
52
- __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
55
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object, Array]),
53
56
  __metadata("design:returntype", Promise)
54
57
  ], RoleResolver.prototype, "roles", null);
55
58
  __decorate([
@@ -57,8 +60,9 @@ __decorate([
57
60
  (0, allow_decorator_1.Allow)(generated_types_1.Permission.ReadAdministrator),
58
61
  __param(0, (0, request_context_decorator_1.Ctx)()),
59
62
  __param(1, (0, graphql_1.Args)()),
63
+ __param(2, (0, relations_decorator_1.Relations)(role_entity_1.Role)),
60
64
  __metadata("design:type", Function),
61
- __metadata("design:paramtypes", [request_context_1.RequestContext, Object]),
65
+ __metadata("design:paramtypes", [request_context_1.RequestContext, Object, Array]),
62
66
  __metadata("design:returntype", Promise)
63
67
  ], RoleResolver.prototype, "role", null);
64
68
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"role.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/admin/role.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AA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B,CAAC;IAE/B,WAAA,IAAA,+BAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAI,GAAE,CAAA;IACN,WAAA,IAAA,+BAAS,EAAC,kBAAI,CAAC,CAAA;;qCAFJ,gCAAc;;wCAK7B;AAKD;IAHC,IAAA,mCAAW,GAAE;IACb,IAAA,kBAAQ,GAAE;IACV,IAAA,uBAAK,EAAC,4BAAU,CAAC,mBAAmB,CAAC;IAC1B,WAAA,IAAA,+BAAG,GAAE,CAAA;IAAuB,WAAA,IAAA,cAAI,GAAE,CAAA;;qCAAvB,gCAAc;;8CAGpC;AAKD;IAHC,IAAA,mCAAW,GAAE;IACb,IAAA,kBAAQ,GAAE;IACV,IAAA,uBAAK,EAAC,4BAAU,CAAC,mBAAmB,CAAC;IAC1B,WAAA,IAAA,+BAAG,GAAE,CAAA;IAAuB,WAAA,IAAA,cAAI,GAAE,CAAA;;qCAAvB,gCAAc;;8CAGpC;AAKD;IAHC,IAAA,mCAAW,GAAE;IACb,IAAA,kBAAQ,GAAE;IACV,IAAA,uBAAK,EAAC,4BAAU,CAAC,mBAAmB,CAAC;IAC1B,WAAA,IAAA,+BAAG,GAAE,CAAA;IAAuB,WAAA,IAAA,cAAI,GAAE,CAAA;;qCAAvB,gCAAc;;8CAGpC;AA7CQ,YAAY;IADxB,IAAA,kBAAQ,EAAC,OAAO,CAAC;qCAEmB,0BAAW;GADnC,YAAY,CA8CxB;AA9CY,oCAAY"}
@@ -4,12 +4,13 @@ import { ShippingMethod } from '../../../entity/shipping-method/shipping-method.
4
4
  import { OrderTestingService } from '../../../service/services/order-testing.service';
5
5
  import { ShippingMethodService } from '../../../service/services/shipping-method.service';
6
6
  import { RequestContext } from '../../common/request-context';
7
+ import { RelationPaths } from '../../decorators/relations.decorator';
7
8
  export declare class ShippingMethodResolver {
8
9
  private shippingMethodService;
9
10
  private orderTestingService;
10
11
  constructor(shippingMethodService: ShippingMethodService, orderTestingService: OrderTestingService);
11
- shippingMethods(ctx: RequestContext, args: QueryShippingMethodsArgs): Promise<PaginatedList<ShippingMethod>>;
12
- shippingMethod(ctx: RequestContext, args: QueryShippingMethodArgs): Promise<ShippingMethod | undefined>;
12
+ shippingMethods(ctx: RequestContext, args: QueryShippingMethodsArgs, relations: RelationPaths<ShippingMethod>): Promise<PaginatedList<ShippingMethod>>;
13
+ shippingMethod(ctx: RequestContext, args: QueryShippingMethodArgs, relations: RelationPaths<ShippingMethod>): Promise<ShippingMethod | undefined>;
13
14
  shippingEligibilityCheckers(ctx: RequestContext): ConfigurableOperationDefinition[];
14
15
  shippingCalculators(ctx: RequestContext): ConfigurableOperationDefinition[];
15
16
  fulfillmentHandlers(ctx: RequestContext): ConfigurableOperationDefinition[];