@vendure/core 1.4.3 → 1.4.7

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 (93) hide show
  1. package/dist/api/api-internal-modules.d.ts +2 -1
  2. package/dist/api/api-internal-modules.js +2 -0
  3. package/dist/api/api-internal-modules.js.map +1 -1
  4. package/dist/api/common/parse-context.js +19 -16
  5. package/dist/api/common/parse-context.js.map +1 -1
  6. package/dist/api/config/generate-resolvers.js +4 -0
  7. package/dist/api/config/generate-resolvers.js.map +1 -1
  8. package/dist/api/config/graphql-custom-fields.js +130 -129
  9. package/dist/api/config/graphql-custom-fields.js.map +1 -1
  10. package/dist/api/middleware/exception-logger.filter.d.ts +1 -1
  11. package/dist/api/middleware/exception-logger.filter.js +10 -4
  12. package/dist/api/middleware/exception-logger.filter.js.map +1 -1
  13. package/dist/api/resolvers/admin/channel.resolver.js +3 -3
  14. package/dist/api/resolvers/admin/channel.resolver.js.map +1 -1
  15. package/dist/api/resolvers/entity/order-entity.resolver.d.ts +1 -1
  16. package/dist/api/resolvers/entity/order-item-entity.resolver.d.ts +8 -0
  17. package/dist/api/resolvers/entity/order-item-entity.resolver.js +46 -0
  18. package/dist/api/resolvers/entity/order-item-entity.resolver.js.map +1 -0
  19. package/dist/api/resolvers/entity/product-entity.resolver.d.ts +1 -1
  20. package/dist/api/resolvers/entity/product-entity.resolver.js +12 -3
  21. package/dist/api/resolvers/entity/product-entity.resolver.js.map +1 -1
  22. package/dist/api/resolvers/shop/shop-auth.resolver.js +3 -0
  23. package/dist/api/resolvers/shop/shop-auth.resolver.js.map +1 -1
  24. package/dist/api/schema/admin-api/collection.api.graphql +1 -1
  25. package/dist/api/schema/admin-api/product.api.graphql +1 -1
  26. package/dist/api/schema/common/common-error-results.graphql +4 -4
  27. package/dist/api/schema/common/product-search.type.graphql +1 -1
  28. package/dist/api/schema/shop-api/shop-error-results.graphql +8 -8
  29. package/dist/api/schema/shop-api/shop.api.graphql +6 -5
  30. package/dist/common/types/entity-relation-paths.d.ts +2 -2
  31. package/dist/config/asset-storage-strategy/asset-storage-strategy.d.ts +2 -2
  32. package/dist/config/catalog/default-product-variant-price-calculation-strategy.js +0 -1
  33. package/dist/config/catalog/default-product-variant-price-calculation-strategy.js.map +1 -1
  34. package/dist/config/entity-id-strategy/uuid-id-strategy.d.ts +6 -3
  35. package/dist/config/entity-id-strategy/uuid-id-strategy.js +6 -3
  36. package/dist/config/entity-id-strategy/uuid-id-strategy.js.map +1 -1
  37. package/dist/config/index.d.ts +1 -0
  38. package/dist/config/index.js +1 -0
  39. package/dist/config/index.js.map +1 -1
  40. package/dist/config/logger/vendure-logger.d.ts +20 -1
  41. package/dist/config/logger/vendure-logger.js +35 -6
  42. package/dist/config/logger/vendure-logger.js.map +1 -1
  43. package/dist/config/order/order-item-price-calculation-strategy.d.ts +9 -4
  44. package/dist/config/promotion/promotion-action.js +2 -2
  45. package/dist/config/promotion/promotion-action.js.map +1 -1
  46. package/dist/entity/asset/orderable-asset.entity.d.ts +3 -0
  47. package/dist/entity/asset/orderable-asset.entity.js +4 -1
  48. package/dist/entity/asset/orderable-asset.entity.js.map +1 -1
  49. package/dist/entity/index.d.ts +1 -0
  50. package/dist/entity/index.js +1 -0
  51. package/dist/entity/index.js.map +1 -1
  52. package/dist/entity/order-line/order-line.entity.d.ts +6 -0
  53. package/dist/entity/order-line/order-line.entity.js +9 -1
  54. package/dist/entity/order-line/order-line.entity.js.map +1 -1
  55. package/dist/entity/register-custom-entity-fields.js +4 -1
  56. package/dist/entity/register-custom-entity-fields.js.map +1 -1
  57. package/dist/i18n/messages/pt_PT.json +1 -1
  58. package/dist/job-queue/subscribable-job.js +1 -1
  59. package/dist/job-queue/subscribable-job.js.map +1 -1
  60. package/dist/plugin/default-search-plugin/indexer/indexer.controller.d.ts +1 -0
  61. package/dist/plugin/default-search-plugin/indexer/indexer.controller.js +25 -26
  62. package/dist/plugin/default-search-plugin/indexer/indexer.controller.js.map +1 -1
  63. package/dist/plugin/default-search-plugin/search-job-buffer/collection-job-buffer.js.map +1 -1
  64. package/dist/plugin/default-search-plugin/search-job-buffer/search-index-job-buffer.js +4 -3
  65. package/dist/plugin/default-search-plugin/search-job-buffer/search-index-job-buffer.js.map +1 -1
  66. package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js +6 -6
  67. package/dist/plugin/default-search-plugin/search-strategy/mysql-search-strategy.js.map +1 -1
  68. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js +8 -8
  69. package/dist/plugin/default-search-plugin/search-strategy/postgres-search-strategy.js.map +1 -1
  70. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.d.ts +1 -0
  71. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.js +5 -1
  72. package/dist/plugin/default-search-plugin/search-strategy/search-strategy-utils.js.map +1 -1
  73. package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js +3 -3
  74. package/dist/plugin/default-search-plugin/search-strategy/sqlite-search-strategy.js.map +1 -1
  75. package/dist/service/helpers/entity-hydrator/entity-hydrator.service.js +4 -1
  76. package/dist/service/helpers/entity-hydrator/entity-hydrator.service.js.map +1 -1
  77. package/dist/service/helpers/list-query-builder/list-query-builder.d.ts +2 -2
  78. package/dist/service/helpers/list-query-builder/list-query-builder.js +2 -2
  79. package/dist/service/services/asset.service.d.ts +40 -2
  80. package/dist/service/services/asset.service.js +23 -1
  81. package/dist/service/services/asset.service.js.map +1 -1
  82. package/dist/service/services/channel.service.d.ts +11 -0
  83. package/dist/service/services/channel.service.js +18 -1
  84. package/dist/service/services/channel.service.js.map +1 -1
  85. package/dist/service/services/fulfillment.service.d.ts +5 -0
  86. package/dist/service/services/fulfillment.service.js +11 -0
  87. package/dist/service/services/fulfillment.service.js.map +1 -1
  88. package/dist/service/services/product-variant.service.js +3 -1
  89. package/dist/service/services/product-variant.service.js.map +1 -1
  90. package/dist/service/services/zone.service.d.ts +11 -0
  91. package/dist/service/services/zone.service.js +18 -1
  92. package/dist/service/services/zone.service.js.map +1 -1
  93. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"exception-logger.filter.js","sourceRoot":"","sources":["../../../src/api/middleware/exception-logger.filter.ts"],"names":[],"mappings":";;;AAAA,2CAA+E;AAE/E,yCAAgD;AAChD,4DAAkE;AAClE,sDAAkD;AAClD,2DAAuD;AAEvD;;GAEG;AACH,MAAa,qBAAqB;IAC9B,KAAK,CAAC,SAA4C,EAAE,IAAmB;QACnE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,4BAAY,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,OAAO,GAAG,EAAE,CAAC;QACjB,IAAI,UAAU,GAAG,GAAG,CAAC;QACrB,IAAI,SAAS,YAAY,sBAAS,EAAE;YAChC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;YACnD,OAAO,GAAG,GAAG,IAAI,IAAI,OAAO,KAAK,GAAG,EAAE,CAAC;YACvC,UAAU,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;YAE9C,QAAQ,QAAQ,EAAE;gBACd,KAAK,iBAAQ,CAAC,KAAK;oBACf,eAAM,CAAC,KAAK,CACR,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,EACpE,SAAS,EACT,SAAS,CAAC,KAAK,CAClB,CAAC;oBACF,MAAM;gBACV,KAAK,iBAAQ,CAAC,IAAI;oBACd,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;oBACrB,MAAM;gBACV,KAAK,iBAAQ,CAAC,IAAI;oBACd,eAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;oBACrB,MAAM;gBACV,KAAK,iBAAQ,CAAC,KAAK;oBACf,eAAM,CAAC,KAA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AqB,CAAC,SAA6B;QACvD,QAAQ,SAAS,EAAE;YACf,KAAK,WAAW;gBACZ,OAAO,GAAG,CAAC;YACf,KAAK,cAAc;gBACf,OAAO,GAAG,CAAC;YACf,KAAK,kBAAkB,CAAC;YACxB,KAAK,mBAAmB;gBACpB,OAAO,GAAG,CAAC;YACf;gBACI,OAAO,GAAG,CAAC;SAClB;IACL,CAAC;CACJ;AAjFD,sDAiFC"}
1
+ {"version":3,"file":"exception-logger.filter.js","sourceRoot":"","sources":["../../../src/api/middleware/exception-logger.filter.ts"],"names":[],"mappings":";;;AAAA,2CAA+E;AAE/E,yCAAgD;AAChD,4DAAkE;AAClE,sDAAkD;AAClD,2DAAuD;AAEvD;;GAEG;AACH,MAAa,qBAAqB;IAC9B,KAAK,CAAC,SAA4C,EAAE,IAAmB;QACnE,MAAM,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,4BAAY,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,OAAO,GAAG,EAAE,CAAC;QACjB,IAAI,UAAU,GAAG,GAAG,CAAC;QACrB,IAAI,SAAS,YAAY,sBAAS,EAAE;YAChC,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,SAAS,CAAC;YACnD,OAAO,GAAG,GAAG,IAAI,IAAI,OAAO,KAAK,GAAG,EAAE,CAAC;YACvC,UAAU,GAAG,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;YAE9C,QAAQ,QAAQ,EAAE;gBACd,KAAK,iBAAQ,CAAC,KAAK;oBACf,eAAM,CAAC,KAAK,CACR,IAAI,CAAC,SAAS,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,EACpE,SAAS,EACT,SAAS,CAAC,KAAK,CAClB,CAAC;oBACF,MAAM;gBACV,KAAK,iBAAQ,CAAC,IAAI;oBACd,eAAM,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AAS,EAAE;YACnB,oDAAoD;YACpD,sDAAsD;YACtD,0DAA0D;YAC1D,6DAA6D;YAC7D,aAAa;YACb,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC;gBACxB,UAAU;gBACV,OAAO;gBACP,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;gBACnC,IAAI,EAAE,GAAG,CAAC,GAAG;aAChB,CAAC,CAAC;SACN;IACL,CAAC;IAED;;;OAGG;IACK,qBAAqB,CAAC,SAA6B;QACvD,QAAQ,SAAS,EAAE;YACf,KAAK,WAAW;gBACZ,OAAO,GAAG,CAAC;YACf,KAAK,cAAc;gBACf,OAAO,GAAG,CAAC;YACf,KAAK,kBAAkB,CAAC;YACxB,KAAK,mBAAmB;gBACpB,OAAO,GAAG,CAAC;YACf;gBACI,OAAO,GAAG,CAAC;SAClB;IACL,CAAC;CACJ;AAtFD,sDAsFC"}
@@ -86,7 +86,7 @@ __decorate([
86
86
  __decorate([
87
87
  transaction_decorator_1.Transaction(),
88
88
  graphql_1.Mutation(),
89
- allow_decorator_1.Allow(generated_types_1.Permission.SuperAdmin),
89
+ allow_decorator_1.Allow(generated_types_1.Permission.SuperAdmin, generated_types_1.Permission.CreateChannel),
90
90
  __param(0, request_context_decorator_1.Ctx()),
91
91
  __param(1, graphql_1.Args()),
92
92
  __metadata("design:type", Function),
@@ -96,7 +96,7 @@ __decorate([
96
96
  __decorate([
97
97
  transaction_decorator_1.Transaction(),
98
98
  graphql_1.Mutation(),
99
- allow_decorator_1.Allow(generated_types_1.Permission.SuperAdmin),
99
+ allow_decorator_1.Allow(generated_types_1.Permission.SuperAdmin, generated_types_1.Permission.UpdateChannel),
100
100
  __param(0, request_context_decorator_1.Ctx()),
101
101
  __param(1, graphql_1.Args()),
102
102
  __metadata("design:type", Function),
@@ -106,7 +106,7 @@ __decorate([
106
106
  __decorate([
107
107
  transaction_decorator_1.Transaction(),
108
108
  graphql_1.Mutation(),
109
- allow_decorator_1.Allow(generated_types_1.Permission.SuperAdmin),
109
+ allow_decorator_1.Allow(generated_types_1.Permission.SuperAdmin, generated_types_1.Permission.DeleteChannel),
110
110
  __param(0, request_context_decorator_1.Ctx()),
111
111
  __param(1, graphql_1.Args()),
112
112
  __metadata("design:type", Function),
@@ -1 +1 @@
1
- {"version":3,"file":"channel.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/admin/channel.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAkE;AAClE,yEAS6C;AAE7C,qEAA4F;AAE5F,+EAA2E;AAC3E,yEAAqE;AACrE,kEAA8D;AAC9D,sEAAyD;AACzD,0FAAiE;AACjE,kFAAqE;AAGrE,IAAa,eAAe,GAA5B,MAAa,eAAe;IACxB,YAAoB,cAA8B,EAAU,WAAwB;QAAhE,mBAAc,GAAd,cAAc,CAAgB;QAAU,gBAAW,GAAX,WAAW,CAAa;IAAG,CAAC;IAIxF,QAAQ,CAAQ,GAAmB;QAC/B,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAC5C,CAAC;IAID,KAAK,CAAC,OAAO,CAAQ,GAAmB,EAAU,IAAsB;QACpE,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC;IACrD,CAAC;IAID,KAAK,CAAC,aAAa,CAAQ,GAAmB;QAC1C,OAAO,GAAG,CAAC,OAAO,CAAC;IACvB,CAAC;IAKD,KAAK,CAAC,aAAa,CACR,GAAmB,EAClB,IAA+B;QAEvC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QACjE,IAAI,mCAAoB,CAAC,MAAM,CAAC,EAAE;YAC9B,OAAO,MAAM,CAAC;SACjB;QACD,MAAM,cAAc,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,iBAAiB,EA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Service: OrderService, shippingMethodService: ShippingMethodService, historyService: HistoryService);
13
13
  payments(ctx: RequestContext, order: Order): Promise<import("../../..").Payment[]>;
14
- fulfillments(ctx: RequestContext, order: Order): Promise<import("../../../entity/fulfillment/fulfillment.entity").Fulfillment[]>;
14
+ fulfillments(ctx: RequestContext, order: Order): Promise<import("../../..").Fulfillment[]>;
15
15
  surcharges(ctx: RequestContext, order: Order): Promise<import("../../..").Surcharge[]>;
16
16
  lines(ctx: RequestContext, order: Order): Promise<import("../../..").OrderLine[]>;
17
17
  history(ctx: RequestContext, apiType: ApiType, order: Order, args: OrderHistoryArgs): Promise<import("@vendure/common/lib/shared-types").PaginatedList<import("../../../entity/history-entry/order-history-entry.entity").OrderHistoryEntry>>;
@@ -0,0 +1,8 @@
1
+ import { Fulfillment, OrderItem } from '../../../entity';
2
+ import { FulfillmentService } from '../../../service';
3
+ import { RequestContext } from '../../common/request-context';
4
+ export declare class OrderItemEntityResolver {
5
+ private fulfillmentService;
6
+ constructor(fulfillmentService: FulfillmentService);
7
+ fulfillment(ctx: RequestContext, orderItem: OrderItem): Promise<Fulfillment | undefined>;
8
+ }
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.OrderItemEntityResolver = void 0;
16
+ const graphql_1 = require("@nestjs/graphql");
17
+ const entity_1 = require("../../../entity");
18
+ const service_1 = require("../../../service");
19
+ const request_context_1 = require("../../common/request-context");
20
+ const request_context_decorator_1 = require("../../decorators/request-context.decorator");
21
+ let OrderItemEntityResolver = class OrderItemEntityResolver {
22
+ constructor(fulfillmentService) {
23
+ this.fulfillmentService = fulfillmentService;
24
+ }
25
+ async fulfillment(ctx, orderItem) {
26
+ if (orderItem.fulfillment) {
27
+ return orderItem.fulfillment;
28
+ }
29
+ return this.fulfillmentService.getFulfillmentByOrderItemId(ctx, orderItem.id);
30
+ }
31
+ };
32
+ __decorate([
33
+ graphql_1.ResolveField(),
34
+ __param(0, request_context_decorator_1.Ctx()),
35
+ __param(1, graphql_1.Parent()),
36
+ __metadata("design:type", Function),
37
+ __metadata("design:paramtypes", [request_context_1.RequestContext,
38
+ entity_1.OrderItem]),
39
+ __metadata("design:returntype", Promise)
40
+ ], OrderItemEntityResolver.prototype, "fulfillment", null);
41
+ OrderItemEntityResolver = __decorate([
42
+ graphql_1.Resolver('OrderItem'),
43
+ __metadata("design:paramtypes", [service_1.FulfillmentService])
44
+ ], OrderItemEntityResolver);
45
+ exports.OrderItemEntityResolver = OrderItemEntityResolver;
46
+ //# sourceMappingURL=order-item-entity.resolver.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"order-item-entity.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/entity/order-item-entity.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAAiE;AAEjE,4CAAyD;AACzD,8CAAsD;AACtD,kEAA8D;AAC9D,0FAAiE;AAGjE,IAAa,uBAAuB,GAApC,MAAa,uBAAuB;IAChC,YAAoB,kBAAsC;QAAtC,uBAAkB,GAAlB,kBAAkB,CAAoB;IAAG,CAAC;IAG9D,KAAK,CAAC,WAAW,CACN,GAAmB,EAChB,SAAoB;QAE9B,IAAI,SAAS,CAAC,WAAW,EAAE;YACvB,OAAO,SAAS,CAAC,WAAW,CAAC;SAChC;QACD,OAAO,IAAI,CAAC,kBAAkB,CAAC,2BAA2B,CAAC,GAAG,EAAE,SAAS,CAAC,EAAE,CAAC,CAAC;IAClF,CAAC;CACJ,CAAA;AATG;IADC,sBAAY,EAAE;IAEV,WAAA,+BAAG,EAAE,CAAA;IACL,WAAA,gBAAM,EAAE,CAAA;;qCADG,gCAAc;QACL,kBAAS;;0DAMjC;AAZQ,uBAAuB;IADnC,kBAAQ,CAAC,WAAW,CAAC;qCAEsB,4BAAkB;GADjD,uBAAuB,CAanC;AAbY,0DAAuB"}
@@ -33,7 +33,7 @@ export declare class ProductEntityResolver {
33
33
  }): Promise<PaginatedList<ProductVariant>>;
34
34
  collections(ctx: RequestContext, product: Product, apiType: ApiType): Promise<Array<Translated<Collection>>>;
35
35
  optionGroups(info: any, ctx: RequestContext, product: Product): Promise<Array<Translated<ProductOptionGroup>>>;
36
- facetValues(ctx: RequestContext, product: Product): Promise<Array<Translated<FacetValue>>>;
36
+ facetValues(ctx: RequestContext, product: Product, apiType: ApiType): Promise<Array<Translated<FacetValue>>>;
37
37
  featuredAsset(ctx: RequestContext, product: Product): Promise<Asset | undefined>;
38
38
  assets(ctx: RequestContext, product: Product): Promise<Asset[] | undefined>;
39
39
  }
@@ -57,7 +57,7 @@ let ProductEntityResolver = class ProductEntityResolver {
57
57
  async optionGroups(info, ctx, product) {
58
58
  return this.productOptionGroupService.getOptionGroupsByProductId(ctx, product.id);
59
59
  }
60
- async facetValues(ctx, product) {
60
+ async facetValues(ctx, product, apiType) {
61
61
  var _a, _b, _c;
62
62
  if (((_a = product.facetValues) === null || _a === void 0 ? void 0 : _a.length) === 0) {
63
63
  return [];
@@ -69,7 +69,15 @@ let ProductEntityResolver = class ProductEntityResolver {
69
69
  else {
70
70
  facetValues = await this.productService.getFacetValuesForProduct(ctx, product.id);
71
71
  }
72
- return facetValues.filter(fv => fv.channels.find(c => utils_1.idsAreEqual(c.id, ctx.channelId)));
72
+ return facetValues.filter(fv => {
73
+ if (!fv.channels.find(c => utils_1.idsAreEqual(c.id, ctx.channelId))) {
74
+ return false;
75
+ }
76
+ if (apiType === 'shop' && fv.facet.isPrivate) {
77
+ return false;
78
+ }
79
+ return true;
80
+ });
73
81
  }
74
82
  async featuredAsset(ctx, product) {
75
83
  if (product.featuredAsset) {
@@ -148,9 +156,10 @@ __decorate([
148
156
  graphql_1.ResolveField(),
149
157
  __param(0, request_context_decorator_1.Ctx()),
150
158
  __param(1, graphql_1.Parent()),
159
+ __param(2, api_decorator_1.Api()),
151
160
  __metadata("design:type", Function),
152
161
  __metadata("design:paramtypes", [request_context_1.RequestContext,
153
- product_entity_1.Product]),
162
+ product_entity_1.Product, String]),
154
163
  __metadata("design:returntype", Promise)
155
164
  ], ProductEntityResolver.prototype, "facetValues", null);
156
165
  __decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"product-entity.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/entity/product-entity.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAA6E;AAE7E,2EAA4E;AAI5E,iDAAoD;AAOpD,2EAAiE;AACjE,mHAA8G;AAC9G,2EAAuE;AACvE,qFAAiF;AACjF,yGAAmG;AACnG,+FAA0F;AAC1F,+EAA2E;AAE3E,kEAA8D;AAC9D,kEAAqD;AACrD,0FAAiE;AAGjE,IAAa,qBAAqB,GAAlC,MAAa,qBAAqB;IAC9B,YACY,qBAA4C,EAC5C,iBAAoC,EACpC,yBAAoD,EACpD,YAA0B,EAC1B,cAA8B,EAC9B,oBAA0C;QAL1C,0BAAqB,GAArB,qBAAqB,CAAuB;QAC5C,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,8BAAyB,GAAzB,yBAAyB,CAA2B;QACpD,iBAAY,GAAZ,YAAY,CAAc;QAC1B,mBAAc,GAAd,cAAc,CAAgB;QAC9B,yBAAoB,GAAp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ACT,wDAAyB;QACtC,4BAAY;QACV,gCAAc;QACR,6CAAoB;GAP7C,qBAAqB,CA0FjC;AA1FY,sDAAqB;AA6FlC,IAAa,0BAA0B,GAAvC,MAAa,0BAA0B;IACnC,YAAoB,cAA8B;QAA9B,mBAAc,GAAd,cAAc,CAAgB;IAAG,CAAC;IAGtD,KAAK,CAAC,QAAQ,CAAQ,GAAmB,EAAY,OAAgB;QACjE,MAAM,gBAAgB,GAAG,GAAG,CAAC,OAAO,CAAC,IAAI,KAAK,uCAAoB,CAAC;QACnE,MAAM,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,kBAAkB,CAAC,GAAG,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;QACrG,OAAO,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,mBAAW,CAAC,OAAO,CAAC,EAAE,EAAE,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAC1G,CAAC;CACJ,CAAA;AALG;IADC,sBAAY,EAAE;IACC,WAAA,+BAAG,EAAE,CAAA;IAAuB,WAAA,gBAAM,EAAE,CAAA;;qCAAzB,gCAAc,EAAqB,wBAAO;;0DAIpE;AARQ,0BAA0B;IADtC,kBAAQ,CAAC,SAAS,CAAC;qCAEoB,gCAAc;GADzC,0BAA0B,CAStC;AATY,gEAA0B"}
1
+ {"version":3,"file":"product-entity.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/entity/product-entity.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAA6E;AAE7E,2EAA4E;AAI5E,iDAAoD;AAOpD,2EAAiE;AACjE,mHAA8G;AAC9G,2EAAuE;AACvE,qFAAiF;AACjF,yGAAmG;AACnG,+FAA0F;AAC1F,+EAA2E;AAE3E,kEAA8D;AAC9D,kEAAqD;AACrD,0FAA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,CAAC,CAAC,CAAC;IAC1G,CAAC;CACJ,CAAA;AALG;IADC,sBAAY,EAAE;IACC,WAAA,+BAAG,EAAE,CAAA;IAAuB,WAAA,gBAAM,EAAE,CAAA;;qCAAzB,gCAAc,EAAqB,wBAAO;;0DAIpE;AARQ,0BAA0B;IADtC,kBAAQ,CAAC,SAAS,CAAC;qCAEoB,gCAAc;GADzC,0BAA0B,CAStC;AATY,gEAA0B"}
@@ -135,6 +135,9 @@ let ShopAuthResolver = class ShopAuthResolver extends base_auth_resolver_1.BaseA
135
135
  },
136
136
  },
137
137
  }, req, res);
138
+ if (error_result_1.isGraphQlErrorResult(authResult) && authResult.__typename === 'NotVerifiedError') {
139
+ return authResult;
140
+ }
138
141
  if (error_result_1.isGraphQlErrorResult(authResult)) {
139
142
  // This should never occur in theory
140
143
  throw authResult;
@@ -1 +1 @@
1
- {"version":3,"file":"shop-auth.resolver.js","sourceRoot":"","sources":["../../../../src/api/resolvers/shop/shop-auth.resolver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,6CAA2E;AAC3E,mFA0BkD;AAClD,yEAAuE;AAGvE,qEAA0E;AAC1E,yDAA8D;AAE9D,wGAAgG;AAChG,mEAA+D;AAC/D,2FAAuF;AACvF,yEAAqE;AACrE,iFAA6E;AAC7E,+EAA2E;AAC3E,yEAAqE;AACrE,kEAA8D;AAC9D,sEAAiE;AACjE,sEAAyD;AACzD,0FAAiE;AACjE,kFAAqE;AACrE,mEAA8D;AAG9D,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,qCAAgB;IAClD,YACI,WAAwB,EACxB,WAAwB,EACxB,oBAA0C,EAC1C,aAA4B,EAClB,eAAgC,EAChC,cAA8B;QAExC,KAAK,CAAC,WAAW,EAAE,WAAW,EAAE,oBAAoB,EAAE,aAAa,CAAC,CAAC;QAH3D,oBAAe,GAAf,eAAe,CAAiB;QAChC,mBAAc,GAAd,cAAc,CAAgB;IAG5C,CAAC;IAKD,KAAK,CAAC,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AC;IAEnB,WAAA,+BAAG,EAAE,CAAA;IACL,WAAA,cAAI,EAAE,CAAA;;qCADK,gCAAc;;yEAyB7B;AAKD;IAHC,mCAAW,EAAE;IACb,kBAAQ,EAAE;IACV,uBAAK,CAAC,iCAAU,CAAC,KAAK,CAAC;IAEnB,WAAA,+BAAG,EAAE,CAAA;IACL,WAAA,cAAI,EAAE,CAAA;;qCADK,gCAAc;;kEAY7B;AApRQ,gBAAgB;IAD5B,kBAAQ,EAAE;qCAGU,0BAAW;QACX,0BAAW;QACF,4CAAoB;QAC3B,8BAAa;QACD,kCAAe;QAChB,gCAAc;GAPnC,gBAAgB,CAyR5B;AAzRY,4CAAgB"}
@@ -1,6 +1,6 @@
1
1
  type Query {
2
2
  collections(options: CollectionListOptions): CollectionList!
3
- "Get a Collection either by id or slug. If neither id nor slug is speicified, an error will result."
3
+ "Get a Collection either by id or slug. If neither id nor slug is specified, an error will result."
4
4
  collection(id: ID, slug: String): Collection
5
5
  collectionFilters: [ConfigurableOperationDefinition!]!
6
6
  }
@@ -1,7 +1,7 @@
1
1
  type Query {
2
2
  "List Products"
3
3
  products(options: ProductListOptions): ProductList!
4
- "Get a Product either by id or slug. If neither id nor slug is speicified, an error will result."
4
+ "Get a Product either by id or slug. If neither id nor slug is specified, an error will result."
5
5
  product(id: ID, slug: String): Product
6
6
  "List ProductVariants either all or for the specific product."
7
7
  productVariants(options: ProductVariantListOptions, productId: ID): ProductVariantList!
@@ -1,4 +1,4 @@
1
- "Retured when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured."
1
+ "Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured."
2
2
  type NativeAuthStrategyError implements ErrorResult {
3
3
  errorCode: ErrorCode!
4
4
  message: String!
@@ -20,20 +20,20 @@ type OrderStateTransitionError implements ErrorResult {
20
20
  toState: String!
21
21
  }
22
22
 
23
- "Retured when attemting to create a Customer with an email address already registered to an existing User."
23
+ "Returned when attempting to create a Customer with an email address already registered to an existing User."
24
24
  type EmailAddressConflictError implements ErrorResult {
25
25
  errorCode: ErrorCode!
26
26
  message: String!
27
27
  }
28
28
 
29
- "Retured when the maximum order size limit has been reached."
29
+ "Returned when the maximum order size limit has been reached."
30
30
  type OrderLimitError implements ErrorResult {
31
31
  errorCode: ErrorCode!
32
32
  message: String!
33
33
  maxItems: Int!
34
34
  }
35
35
 
36
- "Retured when attemting to set a negative OrderLine quantity."
36
+ "Returned when attempting to set a negative OrderLine quantity."
37
37
  type NegativeQuantityError implements ErrorResult {
38
38
  errorCode: ErrorCode!
39
39
  message: String!
@@ -50,7 +50,7 @@ type SearchResult {
50
50
  facetValueIds: [ID!]!
51
51
  "An array of ids of the Collections in which this result appears"
52
52
  collectionIds: [ID!]!
53
- "A relevence score for the result. Differs between database implementations"
53
+ "A relevance score for the result. Differs between database implementations"
54
54
  score: Float!
55
55
  }
56
56
 
@@ -66,26 +66,26 @@ type CouponCodeLimitError implements ErrorResult {
66
66
  limit: Int!
67
67
  }
68
68
 
69
- "Retured when attemting to set the Customer for an Order when already logged in."
69
+ "Returned when attempting to set the Customer for an Order when already logged in."
70
70
  type AlreadyLoggedInError implements ErrorResult {
71
71
  errorCode: ErrorCode!
72
72
  message: String!
73
73
  }
74
74
 
75
- "Retured when attemting to register or verify a customer account without a password, when one is required."
75
+ "Returned when attempting to register or verify a customer account without a password, when one is required."
76
76
  type MissingPasswordError implements ErrorResult {
77
77
  errorCode: ErrorCode!
78
78
  message: String!
79
79
  }
80
80
 
81
- "Retured when attemting to verify a customer account with a password, when a password has already been set."
81
+ "Returned when attempting to verify a customer account with a password, when a password has already been set."
82
82
  type PasswordAlreadySetError implements ErrorResult {
83
83
  errorCode: ErrorCode!
84
84
  message: String!
85
85
  }
86
86
 
87
87
  """
88
- Retured if the verification token (used to verify a Customer's email address) is either
88
+ Returned if the verification token (used to verify a Customer's email address) is either
89
89
  invalid or does not match any expected tokens.
90
90
  """
91
91
  type VerificationTokenInvalidError implements ErrorResult {
@@ -103,7 +103,7 @@ type VerificationTokenExpiredError implements ErrorResult {
103
103
  }
104
104
 
105
105
  """
106
- Retured if the token used to change a Customer's email address is either
106
+ Returned if the token used to change a Customer's email address is either
107
107
  invalid or does not match any expected tokens.
108
108
  """
109
109
  type IdentifierChangeTokenInvalidError implements ErrorResult {
@@ -112,7 +112,7 @@ type IdentifierChangeTokenInvalidError implements ErrorResult {
112
112
  }
113
113
 
114
114
  """
115
- Retured if the token used to change a Customer's email address is valid, but has
115
+ Returned if the token used to change a Customer's email address is valid, but has
116
116
  expired according to the `verificationTokenDuration` setting in the AuthOptions.
117
117
  """
118
118
  type IdentifierChangeTokenExpiredError implements ErrorResult {
@@ -121,7 +121,7 @@ type IdentifierChangeTokenExpiredError implements ErrorResult {
121
121
  }
122
122
 
123
123
  """
124
- Retured if the token used to reset a Customer's password is either
124
+ Returned if the token used to reset a Customer's password is either
125
125
  invalid or does not match any expected tokens.
126
126
  """
127
127
  type PasswordResetTokenInvalidError implements ErrorResult {
@@ -130,7 +130,7 @@ type PasswordResetTokenInvalidError implements ErrorResult {
130
130
  }
131
131
 
132
132
  """
133
- Retured if the token used to reset a Customer's password is valid, but has
133
+ Returned if the token used to reset a Customer's password is valid, but has
134
134
  expired according to the `verificationTokenDuration` setting in the AuthOptions.
135
135
  """
136
136
  type PasswordResetTokenExpiredError implements ErrorResult {
@@ -5,7 +5,7 @@ type Query {
5
5
  activeCustomer: Customer
6
6
  """
7
7
  The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the
8
- state of `PaymentApproved` or `PaymentSettled`, then that Order is no longer considered "active" and this
8
+ state of `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered "active" and this
9
9
  query will once again return `null`.
10
10
  """
11
11
  activeOrder: Order
@@ -13,7 +13,7 @@ type Query {
13
13
  availableCountries: [Country!]!
14
14
  "A list of Collections available to the shop"
15
15
  collections(options: CollectionListOptions): CollectionList!
16
- "Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is speicified, an error will result."
16
+ "Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result."
17
17
  collection(id: ID, slug: String): Collection
18
18
  "Returns a list of eligible shipping methods based on the current active Order"
19
19
  eligibleShippingMethods: [ShippingMethodQuote!]!
@@ -39,7 +39,7 @@ type Query {
39
39
  general anonymous access to Order data.
40
40
  """
41
41
  orderByCode(code: String!): Order
42
- "Get a Product either by id or slug. If neither 'id' nor 'slug' is speicified, an error will result."
42
+ "Get a Product either by id or slug. If neither 'id' nor 'slug' is specified, an error will result."
43
43
  product(id: ID, slug: String): Product
44
44
  "Get a list of Products"
45
45
  products(options: ProductListOptions): ProductList!
@@ -89,7 +89,7 @@ type Mutation {
89
89
  verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then
90
90
  verified and authenticated in one step.
91
91
  2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That
92
- verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosed password of the Customer. The Customer is then
92
+ verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then
93
93
  verified and authenticated in one step.
94
94
 
95
95
  _If `authOptions.requireVerification` is set to `false`:_
@@ -110,7 +110,7 @@ type Mutation {
110
110
  """
111
111
  Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true.
112
112
 
113
- If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the a password _must_ be
113
+ If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be
114
114
  provided here.
115
115
  """
116
116
  verifyCustomerAccount(token: String!, password: String): VerifyCustomerAccountResult!
@@ -239,6 +239,7 @@ union ResetPasswordResult =
239
239
  | PasswordResetTokenInvalidError
240
240
  | PasswordResetTokenExpiredError
241
241
  | NativeAuthStrategyError
242
+ | NotVerifiedError
242
243
  union NativeAuthenticationResult =
243
244
  CurrentUser
244
245
  | InvalidCredentialsError
@@ -21,7 +21,7 @@ import { VendureEntity } from '../../entity/base/base.entity';
21
21
  */
22
22
  export declare type EntityRelationPaths<T extends VendureEntity> = `customFields.${string}` | PathsToStringProps1<T> | Join<PathsToStringProps2<T>, '.'> | TripleDotPath;
23
23
  export declare type EntityRelationKeys<T extends VendureEntity> = {
24
- [K in Extract<keyof T, string>]: Required<T>[K] extends VendureEntity ? K : Required<T>[K] extends VendureEntity[] ? K : never;
24
+ [K in Extract<keyof T, string>]: Required<T>[K] extends VendureEntity | null ? K : Required<T>[K] extends VendureEntity[] ? K : never;
25
25
  }[Extract<keyof T, string>];
26
26
  export declare type EntityRelations<T extends VendureEntity> = {
27
27
  [K in EntityRelationKeys<T>]: T[K];
@@ -30,7 +30,7 @@ export declare type PathsToStringProps1<T extends VendureEntity> = T extends str
30
30
  [K in EntityRelationKeys<T>]: K;
31
31
  }[Extract<EntityRelationKeys<T>, string>];
32
32
  export declare type PathsToStringProps2<T extends VendureEntity> = T extends string ? never : {
33
- [K in EntityRelationKeys<T>]: T[K] extends VendureEntity[] ? [K, PathsToStringProps1<T[K][number]>] : [K, PathsToStringProps1<T[K]>];
33
+ [K in EntityRelationKeys<T>]: T[K] extends VendureEntity[] ? [K, PathsToStringProps1<T[K][number]>] : T[K] extends VendureEntity ? [K, PathsToStringProps1<T[K]>] : never;
34
34
  }[Extract<EntityRelationKeys<T>, string>];
35
35
  export declare type TripleDotPath = `${string}.${string}.${string}`;
36
36
  export declare type Join<T extends Array<string | any>, D extends string> = T extends [] ? never : T extends [infer F] ? F : T extends [infer F, ...infer R] ? F extends string ? `${F}${D}${Join<Extract<R, string[]>, D>}` : never : string;
@@ -24,13 +24,13 @@ export interface AssetStorageStrategy extends InjectableStrategy {
24
24
  writeFileFromStream(fileName: string, data: Stream): Promise<string>;
25
25
  /**
26
26
  * @description
27
- * Reads a file based on an identifier which was generated by the a writeFile
27
+ * Reads a file based on an identifier which was generated by the writeFile
28
28
  * method, and returns the as a Buffer.
29
29
  */
30
30
  readFileToBuffer(identifier: string): Promise<Buffer>;
31
31
  /**
32
32
  * @description
33
- * Reads a file based on an identifier which was generated by the a writeFile
33
+ * Reads a file based on an identifier which was generated by the writeFile
34
34
  * method, and returns the file as a Stream.
35
35
  */
36
36
  readFileToStream(identifier: string): Promise<Stream>;
@@ -17,7 +17,6 @@ class DefaultProductVariantPriceCalculationStrategy {
17
17
  const { inputPrice, activeTaxZone, ctx, taxCategory } = args;
18
18
  let price = inputPrice;
19
19
  let priceIncludesTax = false;
20
- const taxRate = await this.taxRateService.getApplicableTaxRate(ctx, activeTaxZone, taxCategory);
21
20
  if (ctx.channel.pricesIncludeTax) {
22
21
  const isDefaultZone = utils_1.idsAreEqual(activeTaxZone.id, ctx.channel.defaultTaxZone.id);
23
22
  if (isDefaultZone) {
@@ -1 +1 @@
1
- {"version":3,"file":"default-product-variant-price-calculation-strategy.js","sourceRoot":"","sources":["../../../src/config/catalog/default-product-variant-price-calculation-strategy.ts"],"names":[],"mappings":";;;AAEA,8CAAiD;AACjD,8EAAyE;AAOzE;;;;;GAKG;AACH,MAAa,6CAA6C;IAGtD,IAAI,CAAC,QAAkB;QACnB,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,GAAG,CAAC,iCAAc,CAAC,CAAC;IACvD,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,IAAwC;QACpD,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;QAC7D,IAAI,KAAK,GAAG,UAAU,CAAC;QACvB,IAAI,gBAAgB,GAAG,KAAK,CAAC;QAC7B,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,oBAAoB,CAAC,GAAG,EAAE,aAAa,EAAE,WAAW,CAAC,CAAC;QAEhG,IAAI,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC9B,MAAM,aAAa,GAAG,mBAAW,CAAC,aAAa,CAAC,EAAE,EAAE,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YACnF,IAAI,aAAa,EAAE;gBACf,gBAAgB,GAAG,IAAI,CAAC;aAC3B;iBAAM;gBACH,MAAM,qBAAqB,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,oBAAoB,CACxE,GAAG,EACH,GAAG,CAAC,OAAO,CAAC,cAAc,EAC1B,WAAW,CACd,CAAC;gBACF,KAAK,GAAG,qBAAqB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;aACxD;SACJ;QAED,OAAO;YACH,KAAK;YACL,gBAAgB;SACnB,CAAC;IACN,CAAC;CACJ;AAhCD,sGAgCC"}
1
+ {"version":3,"file":"default-product-variant-price-calculation-strategy.js","sourceRoot":"","sources":["../../../src/config/catalog/default-product-variant-price-calculation-strategy.ts"],"names":[],"mappings":";;;AAEA,8CAAiD;AACjD,8EAAyE;AAOzE;;;;;GAKG;AACH,MAAa,6CAA6C;IAGtD,IAAI,CAAC,QAAkB;QACnB,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,GAAG,CAAC,iCAAc,CAAC,CAAC;IACvD,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,IAAwC;QACpD,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,EAAE,WAAW,EAAE,GAAG,IAAI,CAAC;QAC7D,IAAI,KAAK,GAAG,UAAU,CAAC;QACvB,IAAI,gBAAgB,GAAG,KAAK,CAAC;QAE7B,IAAI,GAAG,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC9B,MAAM,aAAa,GAAG,mBAAW,CAAC,aAAa,CAAC,EAAE,EAAE,GAAG,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;YACnF,IAAI,aAAa,EAAE;gBACf,gBAAgB,GAAG,IAAI,CAAC;aAC3B;iBAAM;gBACH,MAAM,qBAAqB,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC,oBAAoB,CACxE,GAAG,EACH,GAAG,CAAC,OAAO,CAAC,cAAc,EAC1B,WAAW,CACd,CAAC;gBACF,KAAK,GAAG,qBAAqB,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC;aACxD;SACJ;QAED,OAAO;YACH,KAAK;YACL,gBAAgB;SACnB,CAAC;IACN,CAAC;CACJ;AA/BD,sGA+BC"}
@@ -3,15 +3,18 @@ import { EntityIdStrategy } from './entity-id-strategy';
3
3
  * @description
4
4
  * An id strategy which uses string uuids as primary keys
5
5
  * for all entities. This strategy can be configured with the
6
- * `entityIdStrategy` property of the {@link VendureConfig}.
6
+ * `entityIdStrategy` property of the `entityOptions` property
7
+ * of {@link VendureConfig}.
7
8
  *
8
9
  * @example
9
10
  * ```TypeScript
10
11
  * import { UuidIdStrategy, VendureConfig } from '\@vendure/core';
11
12
  *
12
13
  * export const config: VendureConfig = {
13
- * entityIdStrategy: new UuidIdStrategy(),
14
- * // ...
14
+ * entityOptions: {
15
+ * entityIdStrategy: new UuidIdStrategy(),
16
+ * // ...
17
+ * }
15
18
  * }
16
19
  * ```
17
20
  *
@@ -5,15 +5,18 @@ exports.UuidIdStrategy = void 0;
5
5
  * @description
6
6
  * An id strategy which uses string uuids as primary keys
7
7
  * for all entities. This strategy can be configured with the
8
- * `entityIdStrategy` property of the {@link VendureConfig}.
8
+ * `entityIdStrategy` property of the `entityOptions` property
9
+ * of {@link VendureConfig}.
9
10
  *
10
11
  * @example
11
12
  * ```TypeScript
12
13
  * import { UuidIdStrategy, VendureConfig } from '\@vendure/core';
13
14
  *
14
15
  * export const config: VendureConfig = {
15
- * entityIdStrategy: new UuidIdStrategy(),
16
- * // ...
16
+ * entityOptions: {
17
+ * entityIdStrategy: new UuidIdStrategy(),
18
+ * // ...
19
+ * }
17
20
  * }
18
21
  * ```
19
22
  *
@@ -1 +1 @@
1
- {"version":3,"file":"uuid-id-strategy.js","sourceRoot":"","sources":["../../../src/config/entity-id-strategy/uuid-id-strategy.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAa,cAAc;IAA3B;QACa,mBAAc,GAAG,MAAM,CAAC;IAOrC,CAAC;IANG,QAAQ,CAAC,EAAU;QACf,OAAO,EAAE,CAAC;IACd,CAAC;IACD,QAAQ,CAAC,UAAkB;QACvB,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AARD,wCAQC"}
1
+ {"version":3,"file":"uuid-id-strategy.js","sourceRoot":"","sources":["../../../src/config/entity-id-strategy/uuid-id-strategy.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAa,cAAc;IAA3B;QACa,mBAAc,GAAG,MAAM,CAAC;IAOrC,CAAC;IANG,QAAQ,CAAC,EAAU;QACf,OAAO,EAAE,CAAC;IACd,CAAC;IACD,QAAQ,CAAC,UAAkB;QACvB,OAAO,UAAU,CAAC;IACtB,CAAC;CACJ;AARD,wCAQC"}
@@ -6,6 +6,7 @@ export * from './auth/authentication-strategy';
6
6
  export * from './auth/native-authentication-strategy';
7
7
  export * from './catalog/collection-filter';
8
8
  export * from './catalog/default-collection-filters';
9
+ export * from './catalog/product-variant-price-calculation-strategy';
9
10
  export * from './config.module';
10
11
  export * from './config.service';
11
12
  export * from './custom-field/custom-field-types';
@@ -18,6 +18,7 @@ __exportStar(require("./auth/authentication-strategy"), exports);
18
18
  __exportStar(require("./auth/native-authentication-strategy"), exports);
19
19
  __exportStar(require("./catalog/collection-filter"), exports);
20
20
  __exportStar(require("./catalog/default-collection-filters"), exports);
21
+ __exportStar(require("./catalog/product-variant-price-calculation-strategy"), exports);
21
22
  __exportStar(require("./config.module"), exports);
22
23
  __exportStar(require("./config.service"), exports);
23
24
  __exportStar(require("./custom-field/custom-field-types"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gFAA8D;AAC9D,wFAAsE;AACtE,kFAAgE;AAChE,kFAAgE;AAChE,iEAA+C;AAC/C,wEAAsD;AACtD,8DAA4C;AAC5C,uEAAqD;AACrD,kDAAgC;AAChC,mDAAiC;AACjC,oEAAkD;AAClD,mDAAiC;AACjC,kFAAgE;AAChE,0EAAwD;AACxD,wEAAsD;AACtD,2EAAyD;AACzD,oEAAkD;AAClD,2EAAyD;AACzD,6EAA2D;AAC3D,iEAA+C;AAC/C,0DAAwC;AACxC,uDAAqC;AACrC,0DAAwC;AACxC,iDAA+B;AAC/B,0EAAwD;AACxD,+DAA6C;AAC7C,kFAAgE;AAChE,wEAAsD;AACtD,4EAA0D;AAC1D,gEAA8C;AAC9C,8DAA4C;AAC5C,gFAA8D;AAC9D,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,gEAA8C;AAC9C,+EAA6D;AAC7D,6DAA2C;AAC3C,mEAAiD;AACjD,yEAAuD;AACvD,2EAAyD;AACzD,+EAA6D;AAC7D,mEAAiD;AACjD,8CAA4B;AAC5B,mFAAiE;AACjE,8EAA4D;AAC5D,yEAAuD;AACvD,gFAA8D;AAC9D,yFAAuE;AACvE,wEAAsD;AACtD,iFAA+D;AAC/D,8EAA4D;AAC5D,kEAAgD;AAChD,sEAAoD;AACpD,0DAAwC;AACxC,mDAAiC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,gFAA8D;AAC9D,wFAAsE;AACtE,kFAAgE;AAChE,kFAAgE;AAChE,iEAA+C;AAC/C,wEAAsD;AACtD,8DAA4C;AAC5C,uEAAqD;AACrD,uFAAqE;AACrE,kDAAgC;AAChC,mDAAiC;AACjC,oEAAkD;AAClD,mDAAiC;AACjC,kFAAgE;AAChE,0EAAwD;AACxD,wEAAsD;AACtD,2EAAyD;AACzD,oEAAkD;AAClD,2EAAyD;AACzD,6EAA2D;AAC3D,iEAA+C;AAC/C,0DAAwC;AACxC,uDAAqC;AACrC,0DAAwC;AACxC,iDAA+B;AAC/B,0EAAwD;AACxD,+DAA6C;AAC7C,kFAAgE;AAChE,wEAAsD;AACtD,4EAA0D;AAC1D,gEAA8C;AAC9C,8DAA4C;AAC5C,gFAA8D;AAC9D,+DAA6C;AAC7C,gEAA8C;AAC9C,oEAAkD;AAClD,gEAA8C;AAC9C,+EAA6D;AAC7D,6DAA2C;AAC3C,mEAAiD;AACjD,yEAAuD;AACvD,2EAAyD;AACzD,+EAA6D;AAC7D,mEAAiD;AACjD,8CAA4B;AAC5B,mFAAiE;AACjE,8EAA4D;AAC5D,yEAAuD;AACvD,gFAA8D;AAC9D,yFAAuE;AACvE,wEAAsD;AACtD,iFAA+D;AAC/D,8EAA4D;AAC5D,kEAAgD;AAChD,sEAAoD;AACpD,0DAAwC;AACxC,mDAAiC"}
@@ -8,12 +8,31 @@ import { LoggerService } from '@nestjs/common';
8
8
  export declare enum LogLevel {
9
9
  /**
10
10
  * @description
11
- * Log Errors only.
11
+ * Log Errors only. These are usually indicative of some potentially
12
+ * serious issue, so should be acted upon.
12
13
  */
13
14
  Error = 0,
15
+ /**
16
+ * @description
17
+ * Warnings indicate that some situation may require investigation
18
+ * and handling. But not as serious as an Error.
19
+ */
14
20
  Warn = 1,
21
+ /**
22
+ * @description
23
+ * Logs general information such as startup messages.
24
+ */
15
25
  Info = 2,
26
+ /**
27
+ * @description
28
+ * Logs additional information
29
+ */
16
30
  Verbose = 3,
31
+ /**
32
+ * @description
33
+ * Logs detailed info useful in debug scenarios, including stack traces for
34
+ * all errors. In production this would probably generate too much noise.
35
+ */
17
36
  Debug = 4
18
37
  }
19
38
  /**