@vendure/core 1.8.5 → 1.9.1
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.
- package/dist/api/config/configure-graphql-module.js +2 -0
- package/dist/api/config/configure-graphql-module.js.map +1 -1
- package/dist/api/config/generate-active-order-types.d.ts +14 -0
- package/dist/api/config/generate-active-order-types.js +90 -0
- package/dist/api/config/generate-active-order-types.js.map +1 -0
- package/dist/api/middleware/id-interceptor.js +8 -2
- package/dist/api/middleware/id-interceptor.js.map +1 -1
- package/dist/api/resolvers/admin/facet.resolver.d.ts +2 -1
- package/dist/api/resolvers/admin/facet.resolver.js +14 -0
- package/dist/api/resolvers/admin/facet.resolver.js.map +1 -1
- package/dist/api/resolvers/shop/shop-order.resolver.d.ts +22 -18
- package/dist/api/resolvers/shop/shop-order.resolver.js +32 -27
- package/dist/api/resolvers/shop/shop-order.resolver.js.map +1 -1
- package/dist/api/schema/admin-api/facet.api.graphql +8 -0
- package/dist/api/schema/common/common-types.graphql +5 -0
- package/dist/common/constants.d.ts +1 -2
- package/dist/common/types/common-types.d.ts +5 -1
- package/dist/config/config.module.js +3 -1
- package/dist/config/config.module.js.map +1 -1
- package/dist/config/default-config.js +3 -0
- package/dist/config/default-config.js.map +1 -1
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.js +2 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/order/active-order-strategy.d.ts +184 -0
- package/dist/config/order/active-order-strategy.js +5 -0
- package/dist/config/order/active-order-strategy.js.map +1 -0
- package/dist/config/order/default-active-order-strategy.d.ts +22 -0
- package/dist/config/order/default-active-order-strategy.js +75 -0
- package/dist/config/order/default-active-order-strategy.js.map +1 -0
- package/dist/config/vendure-config.d.ts +24 -0
- package/dist/data-import/providers/importer/importer.js +3 -0
- package/dist/data-import/providers/importer/importer.js.map +1 -1
- package/dist/entity/authentication-method/external-authentication-method.entity.js +3 -1
- package/dist/entity/authentication-method/external-authentication-method.entity.js.map +1 -1
- package/dist/entity/authentication-method/native-authentication-method.entity.js +3 -1
- package/dist/entity/authentication-method/native-authentication-method.entity.js.map +1 -1
- package/dist/entity/channel/channel.entity.js +5 -3
- package/dist/entity/channel/channel.entity.js.map +1 -1
- package/dist/entity/collection/collection-asset.entity.js +4 -2
- package/dist/entity/collection/collection-asset.entity.js.map +1 -1
- package/dist/entity/country/country-translation.entity.js +4 -2
- package/dist/entity/country/country-translation.entity.js.map +1 -1
- package/dist/entity/country/country.entity.js +3 -1
- package/dist/entity/country/country.entity.js.map +1 -1
- package/dist/entity/customer-group/customer-group.entity.js +3 -1
- package/dist/entity/customer-group/customer-group.entity.js.map +1 -1
- package/dist/entity/product/product-asset.entity.js +4 -2
- package/dist/entity/product/product-asset.entity.js.map +1 -1
- package/dist/entity/product-variant/product-variant-asset.entity.js +4 -2
- package/dist/entity/product-variant/product-variant-asset.entity.js.map +1 -1
- package/dist/entity/role/role.entity.js +3 -1
- package/dist/entity/role/role.entity.js.map +1 -1
- package/dist/entity/tag/tag.entity.js +3 -1
- package/dist/entity/tag/tag.entity.js.map +1 -1
- package/dist/entity/zone/zone.entity.js +3 -1
- package/dist/entity/zone/zone.entity.js.map +1 -1
- package/dist/i18n/messages/en.json +2 -0
- package/dist/service/helpers/active-order/active-order.service.d.ts +18 -2
- package/dist/service/helpers/active-order/active-order.service.js +42 -5
- package/dist/service/helpers/active-order/active-order.service.js.map +1 -1
- package/dist/service/helpers/list-query-builder/parse-filter-params.js +35 -15
- package/dist/service/helpers/list-query-builder/parse-filter-params.js.map +1 -1
- package/dist/service/helpers/order-calculator/order-calculator.js +34 -33
- package/dist/service/helpers/order-calculator/order-calculator.js.map +1 -1
- package/dist/service/helpers/order-state-machine/order-state-machine.d.ts +3 -1
- package/dist/service/helpers/order-state-machine/order-state-machine.js +17 -2
- package/dist/service/helpers/order-state-machine/order-state-machine.js.map +1 -1
- package/dist/service/initializer.service.d.ts +3 -1
- package/dist/service/initializer.service.js +5 -1
- package/dist/service/initializer.service.js.map +1 -1
- package/dist/service/services/facet-value.service.d.ts +14 -2
- package/dist/service/services/facet-value.service.js +26 -2
- package/dist/service/services/facet-value.service.js.map +1 -1
- package/dist/service/services/history.service.d.ts +94 -4
- package/dist/service/services/history.service.js +90 -0
- package/dist/service/services/history.service.js.map +1 -1
- package/dist/service/services/promotion.service.js.map +1 -1
- package/dist/service/services/tax-rate.service.d.ts +13 -3
- package/dist/service/services/tax-rate.service.js +28 -7
- package/dist/service/services/tax-rate.service.js.map +1 -1
- package/package.json +3 -3
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.NativeAuthenticationMethod = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const authentication_method_entity_1 = require("./authentication-method.entity");
|
|
15
17
|
/**
|
|
@@ -51,7 +53,7 @@ __decorate([
|
|
|
51
53
|
], NativeAuthenticationMethod.prototype, "pendingIdentifier", void 0);
|
|
52
54
|
NativeAuthenticationMethod = __decorate([
|
|
53
55
|
typeorm_1.ChildEntity(),
|
|
54
|
-
__metadata("design:paramtypes", [Object])
|
|
56
|
+
__metadata("design:paramtypes", [typeof (_a = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _a : Object])
|
|
55
57
|
], NativeAuthenticationMethod);
|
|
56
58
|
exports.NativeAuthenticationMethod = NativeAuthenticationMethod;
|
|
57
59
|
//# sourceMappingURL=native-authentication-method.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-authentication-method.entity.js","sourceRoot":"","sources":["../../../src/entity/authentication-method/native-authentication-method.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"native-authentication-method.entity.js","sourceRoot":"","sources":["../../../src/entity/authentication-method/native-authentication-method.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAA8C;AAE9C,iFAAsE;AAEtE;;;;;;;GAOG;AAEH,IAAa,0BAA0B,GAAvC,MAAa,0BAA2B,SAAQ,mDAAoB;IAChE,YAAY,KAA+C;QACvD,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CA6BJ,CAAA;AA1BG;IADC,gBAAM,EAAE;;8DACU;AAEQ;IAA1B,gBAAM,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;gEAAsB;AAGhD;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACX;AAGjC;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sEACV;AAQlC;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yEACP;AASrC;IADC,gBAAM,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qEACX;AA/BxB,0BAA0B;IADtC,qBAAW,EAAE;yDAEU,0BAAW,oBAAX,0BAAW;GADtB,0BAA0B,CAgCtC;AAhCY,gEAA0B"}
|
|
@@ -8,9 +8,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a, _b, _c;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.Channel = void 0;
|
|
13
14
|
const generated_types_1 = require("@vendure/common/lib/generated-types");
|
|
15
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
14
16
|
const typeorm_1 = require("typeorm");
|
|
15
17
|
const base_entity_1 = require("../base/base.entity");
|
|
16
18
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -44,7 +46,7 @@ __decorate([
|
|
|
44
46
|
], Channel.prototype, "token", void 0);
|
|
45
47
|
__decorate([
|
|
46
48
|
typeorm_1.Column('varchar'),
|
|
47
|
-
__metadata("design:type",
|
|
49
|
+
__metadata("design:type", typeof (_a = typeof generated_types_1.LanguageCode !== "undefined" && generated_types_1.LanguageCode) === "function" ? _a : Object)
|
|
48
50
|
], Channel.prototype, "defaultLanguageCode", void 0);
|
|
49
51
|
__decorate([
|
|
50
52
|
typeorm_1.ManyToOne(type => zone_entity_1.Zone),
|
|
@@ -56,7 +58,7 @@ __decorate([
|
|
|
56
58
|
], Channel.prototype, "defaultShippingZone", void 0);
|
|
57
59
|
__decorate([
|
|
58
60
|
typeorm_1.Column('varchar'),
|
|
59
|
-
__metadata("design:type",
|
|
61
|
+
__metadata("design:type", typeof (_b = typeof generated_types_1.CurrencyCode !== "undefined" && generated_types_1.CurrencyCode) === "function" ? _b : Object)
|
|
60
62
|
], Channel.prototype, "currencyCode", void 0);
|
|
61
63
|
__decorate([
|
|
62
64
|
typeorm_1.Column(type => custom_entity_fields_1.CustomChannelFields),
|
|
@@ -68,7 +70,7 @@ __decorate([
|
|
|
68
70
|
], Channel.prototype, "pricesIncludeTax", void 0);
|
|
69
71
|
Channel = __decorate([
|
|
70
72
|
typeorm_1.Entity(),
|
|
71
|
-
__metadata("design:paramtypes", [Object])
|
|
73
|
+
__metadata("design:paramtypes", [typeof (_c = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _c : Object])
|
|
72
74
|
], Channel);
|
|
73
75
|
exports.Channel = Channel;
|
|
74
76
|
//# sourceMappingURL=channel.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.entity.js","sourceRoot":"","sources":["../../../src/entity/channel/channel.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"channel.entity.js","sourceRoot":"","sources":["../../../src/entity/channel/channel.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yEAAiF;AACjF,mEAA+D;AAC/D,qCAAoD;AAEpD,qDAAoD;AACpD,kEAA8D;AAC9D,qDAA2C;AAE3C;;;;;;GAMG;AAEH,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,2BAAa;IACtC,YAAY,KAA4B;QACpC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE;YACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;SACrC;IACL,CAAC;IAwBO,aAAa;QACjB,MAAM,YAAY,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACpE,OAAO,GAAG,YAAY,EAAE,GAAG,YAAY,EAAE,EAAE,CAAC;IAChD,CAAC;CACJ,CAAA;AAzBG;IADC,gBAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;qCACZ;AAGb;IADC,gBAAM,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;sCACX;AAEK;IAAlB,gBAAM,CAAC,SAAS,CAAC;kDAAsB,8BAAY,oBAAZ,8BAAY;oDAAC;AAGrD;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,kBAAI,CAAC;8BACR,kBAAI;+CAAC;AAGrB;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,kBAAI,CAAC;8BACH,kBAAI;oDAAC;AAG1B;IADC,gBAAM,CAAC,SAAS,CAAC;kDACJ,8BAAY,oBAAZ,8BAAY;6CAAC;AAG3B;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,0CAAmB,CAAC;8BACtB,0CAAmB;6CAAC;AAExB;IAAT,gBAAM,EAAE;;iDAA2B;AA5B3B,OAAO;IADnB,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,OAAO,CAkCnB;AAlCY,0BAAO"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a, _b;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.CollectionAsset = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const orderable_asset_entity_1 = require("../asset/orderable-asset.entity");
|
|
15
17
|
const collection_entity_1 = require("./collection.entity");
|
|
@@ -20,7 +22,7 @@ let CollectionAsset = class CollectionAsset extends orderable_asset_entity_1.Ord
|
|
|
20
22
|
};
|
|
21
23
|
__decorate([
|
|
22
24
|
typeorm_1.Column(),
|
|
23
|
-
__metadata("design:type", Object)
|
|
25
|
+
__metadata("design:type", typeof (_a = typeof shared_types_1.ID !== "undefined" && shared_types_1.ID) === "function" ? _a : Object)
|
|
24
26
|
], CollectionAsset.prototype, "collectionId", void 0);
|
|
25
27
|
__decorate([
|
|
26
28
|
typeorm_1.ManyToOne((type) => collection_entity_1.Collection, (collection) => collection.assets, { onDelete: 'CASCADE' }),
|
|
@@ -28,7 +30,7 @@ __decorate([
|
|
|
28
30
|
], CollectionAsset.prototype, "collection", void 0);
|
|
29
31
|
CollectionAsset = __decorate([
|
|
30
32
|
typeorm_1.Entity(),
|
|
31
|
-
__metadata("design:paramtypes", [Object])
|
|
33
|
+
__metadata("design:paramtypes", [typeof (_b = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _b : Object])
|
|
32
34
|
], CollectionAsset);
|
|
33
35
|
exports.CollectionAsset = CollectionAsset;
|
|
34
36
|
//# sourceMappingURL=collection-asset.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collection-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/collection/collection-asset.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collection-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/collection/collection-asset.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAAmE;AACnE,qCAAoD;AAEpD,4EAAiE;AAEjE,2DAAiD;AAGjD,IAAa,eAAe,GAA5B,MAAa,eAAgB,SAAQ,uCAAc;IAC/C,YAAY,KAAoC;QAC5C,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAMJ,CAAA;AAJG;IADC,gBAAM,EAAE;kDACK,iBAAE,oBAAF,iBAAE;qDAAC;AAGjB;IADC,mBAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,8BAAU,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAChF,8BAAU;mDAAC;AARd,eAAe;IAD3B,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,eAAe,CAS3B;AATY,0CAAe"}
|
|
@@ -8,9 +8,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a, _b;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.CountryTranslation = void 0;
|
|
13
14
|
const generated_types_1 = require("@vendure/common/lib/generated-types");
|
|
15
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
14
16
|
const typeorm_1 = require("typeorm");
|
|
15
17
|
const base_entity_1 = require("../base/base.entity");
|
|
16
18
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -22,7 +24,7 @@ let CountryTranslation = class CountryTranslation extends base_entity_1.VendureE
|
|
|
22
24
|
};
|
|
23
25
|
__decorate([
|
|
24
26
|
typeorm_1.Column('varchar'),
|
|
25
|
-
__metadata("design:type",
|
|
27
|
+
__metadata("design:type", typeof (_a = typeof generated_types_1.LanguageCode !== "undefined" && generated_types_1.LanguageCode) === "function" ? _a : Object)
|
|
26
28
|
], CountryTranslation.prototype, "languageCode", void 0);
|
|
27
29
|
__decorate([
|
|
28
30
|
typeorm_1.Column(),
|
|
@@ -38,7 +40,7 @@ __decorate([
|
|
|
38
40
|
], CountryTranslation.prototype, "customFields", void 0);
|
|
39
41
|
CountryTranslation = __decorate([
|
|
40
42
|
typeorm_1.Entity(),
|
|
41
|
-
__metadata("design:paramtypes", [Object])
|
|
43
|
+
__metadata("design:paramtypes", [typeof (_b = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _b : Object])
|
|
42
44
|
], CountryTranslation);
|
|
43
45
|
exports.CountryTranslation = CountryTranslation;
|
|
44
46
|
//# sourceMappingURL=country-translation.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/country/country-translation.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"country-translation.entity.js","sourceRoot":"","sources":["../../../src/entity/country/country-translation.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yEAAmE;AACnE,mEAA+D;AAC/D,qCAAoD;AAIpD,qDAAoD;AACpD,kEAAyE;AAEzE,qDAA2C;AAG3C,IAAa,kBAAkB,GAA/B,MAAa,kBAAmB,SAAQ,2BAAa;IACjD,YAAY,KAAoD;QAC5D,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAWJ,CAAA;AATsB;IAAlB,gBAAM,CAAC,SAAS,CAAC;kDAAe,8BAAY,oBAAZ,8BAAY;wDAAC;AAEpC;IAAT,gBAAM,EAAE;;gDAAc;AAGvB;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,wBAAO,EAAE,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BACzE,wBAAO;gDAAC;AAGd;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,qDAA8B,CAAC;8BACjC,qDAA8B;wDAAC;AAbpC,kBAAkB;IAD9B,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,kBAAkB,CAc9B;AAdY,gDAAkB"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.Country = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const base_entity_1 = require("../base/base.entity");
|
|
15
17
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -45,7 +47,7 @@ __decorate([
|
|
|
45
47
|
], Country.prototype, "customFields", void 0);
|
|
46
48
|
Country = __decorate([
|
|
47
49
|
typeorm_1.Entity(),
|
|
48
|
-
__metadata("design:paramtypes", [Object])
|
|
50
|
+
__metadata("design:paramtypes", [typeof (_a = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _a : Object])
|
|
49
51
|
], Country);
|
|
50
52
|
exports.Country = Country;
|
|
51
53
|
//# sourceMappingURL=country.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country.entity.js","sourceRoot":"","sources":["../../../src/entity/country/country.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"country.entity.js","sourceRoot":"","sources":["../../../src/entity/country/country.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAoD;AAIpD,qDAAoD;AACpD,kEAA8D;AAE9D,6EAAkE;AAElE;;;;;;;GAOG;AAEH,IAAa,OAAO,GAApB,MAAa,OAAQ,SAAQ,2BAAa;IACtC,YAAY,KAA4B;QACpC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAaJ,CAAA;AAXa;IAAT,gBAAM,EAAE;;qCAAc;AAIb;IAAT,gBAAM,EAAE;;wCAAkB;AAG3B;IADC,mBAAS,CAAC,IAAI,CAAC,EAAE,CAAC,+CAAkB,EAAE,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;8BAC1E,KAAK;6CAAuB;AAG1C;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,0CAAmB,CAAC;8BACtB,0CAAmB;6CAAC;AAfzB,OAAO;IADnB,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,OAAO,CAgBnB;AAhBY,0BAAO"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.CustomerGroup = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const base_entity_1 = require("../base/base.entity");
|
|
15
17
|
const custom_entity_fields_1 = require("../custom-entity-fields");
|
|
@@ -40,7 +42,7 @@ __decorate([
|
|
|
40
42
|
], CustomerGroup.prototype, "customFields", void 0);
|
|
41
43
|
CustomerGroup = __decorate([
|
|
42
44
|
typeorm_1.Entity(),
|
|
43
|
-
__metadata("design:paramtypes", [Object])
|
|
45
|
+
__metadata("design:paramtypes", [typeof (_a = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _a : Object])
|
|
44
46
|
], CustomerGroup);
|
|
45
47
|
exports.CustomerGroup = CustomerGroup;
|
|
46
48
|
//# sourceMappingURL=customer-group.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customer-group.entity.js","sourceRoot":"","sources":["../../../src/entity/customer-group/customer-group.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"customer-group.entity.js","sourceRoot":"","sources":["../../../src/entity/customer-group/customer-group.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAqD;AAGrD,qDAAoD;AACpD,kEAAoE;AACpE,iEAAuD;AAEvD;;;;;;GAMG;AAEH,IAAa,aAAa,GAA1B,MAAa,aAAc,SAAQ,2BAAa;IAC5C,YAAY,KAAkC;QAC1C,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CASJ,CAAA;AAPa;IAAT,gBAAM,EAAE;;2CAAc;AAGvB;IADC,oBAAU,CAAC,IAAI,CAAC,EAAE,CAAC,0BAAQ,EAAE,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC;;gDACpC;AAGtB;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,gDAAyB,CAAC;8BAC5B,gDAAyB;mDAAC;AAX/B,aAAa;IADzB,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,aAAa,CAYzB;AAZY,sCAAa"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a, _b;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.ProductAsset = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const orderable_asset_entity_1 = require("../asset/orderable-asset.entity");
|
|
15
17
|
const product_entity_1 = require("./product.entity");
|
|
@@ -20,7 +22,7 @@ let ProductAsset = class ProductAsset extends orderable_asset_entity_1.Orderable
|
|
|
20
22
|
};
|
|
21
23
|
__decorate([
|
|
22
24
|
typeorm_1.Column(),
|
|
23
|
-
__metadata("design:type", Object)
|
|
25
|
+
__metadata("design:type", typeof (_a = typeof shared_types_1.ID !== "undefined" && shared_types_1.ID) === "function" ? _a : Object)
|
|
24
26
|
], ProductAsset.prototype, "productId", void 0);
|
|
25
27
|
__decorate([
|
|
26
28
|
typeorm_1.ManyToOne((type) => product_entity_1.Product, (product) => product.assets, { onDelete: 'CASCADE' }),
|
|
@@ -28,7 +30,7 @@ __decorate([
|
|
|
28
30
|
], ProductAsset.prototype, "product", void 0);
|
|
29
31
|
ProductAsset = __decorate([
|
|
30
32
|
typeorm_1.Entity(),
|
|
31
|
-
__metadata("design:paramtypes", [Object])
|
|
33
|
+
__metadata("design:paramtypes", [typeof (_b = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _b : Object])
|
|
32
34
|
], ProductAsset);
|
|
33
35
|
exports.ProductAsset = ProductAsset;
|
|
34
36
|
//# sourceMappingURL=product-asset.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/product/product-asset.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/product/product-asset.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAAmE;AACnE,qCAAoD;AAEpD,4EAAiE;AAEjE,qDAA2C;AAG3C,IAAa,YAAY,GAAzB,MAAa,YAAa,SAAQ,uCAAc;IAC5C,YAAY,KAAiC;QACzC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAMJ,CAAA;AAJG;IADC,gBAAM,EAAE;kDACE,iBAAE,oBAAF,iBAAE;+CAAC;AAGd;IADC,mBAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,wBAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1E,wBAAO;6CAAC;AARR,YAAY;IADxB,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,YAAY,CASxB;AATY,oCAAY"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a, _b;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.ProductVariantAsset = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const orderable_asset_entity_1 = require("../asset/orderable-asset.entity");
|
|
15
17
|
const product_variant_entity_1 = require("./product-variant.entity");
|
|
@@ -20,7 +22,7 @@ let ProductVariantAsset = class ProductVariantAsset extends orderable_asset_enti
|
|
|
20
22
|
};
|
|
21
23
|
__decorate([
|
|
22
24
|
typeorm_1.Column(),
|
|
23
|
-
__metadata("design:type", Object)
|
|
25
|
+
__metadata("design:type", typeof (_a = typeof shared_types_1.ID !== "undefined" && shared_types_1.ID) === "function" ? _a : Object)
|
|
24
26
|
], ProductVariantAsset.prototype, "productVariantId", void 0);
|
|
25
27
|
__decorate([
|
|
26
28
|
typeorm_1.ManyToOne((type) => product_variant_entity_1.ProductVariant, (variant) => variant.assets, { onDelete: 'CASCADE' }),
|
|
@@ -28,7 +30,7 @@ __decorate([
|
|
|
28
30
|
], ProductVariantAsset.prototype, "productVariant", void 0);
|
|
29
31
|
ProductVariantAsset = __decorate([
|
|
30
32
|
typeorm_1.Entity(),
|
|
31
|
-
__metadata("design:paramtypes", [Object])
|
|
33
|
+
__metadata("design:paramtypes", [typeof (_b = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _b : Object])
|
|
32
34
|
], ProductVariantAsset);
|
|
33
35
|
exports.ProductVariantAsset = ProductVariantAsset;
|
|
34
36
|
//# sourceMappingURL=product-variant-asset.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"product-variant-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/product-variant/product-variant-asset.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"product-variant-asset.entity.js","sourceRoot":"","sources":["../../../src/entity/product-variant/product-variant-asset.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAAmE;AACnE,qCAAoD;AAEpD,4EAAiE;AAEjE,qEAA0D;AAG1D,IAAa,mBAAmB,GAAhC,MAAa,mBAAoB,SAAQ,uCAAc;IACnD,YAAY,KAAwC;QAChD,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAMJ,CAAA;AAJG;IADC,gBAAM,EAAE;kDACS,iBAAE,oBAAF,iBAAE;6DAAC;AAGrB;IADC,mBAAS,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,uCAAc,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC;8BAC1E,uCAAc;2DAAC;AARtB,mBAAmB;IAD/B,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,mBAAmB,CAS/B;AATY,kDAAmB"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.Role = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const base_entity_1 = require("../base/base.entity");
|
|
15
17
|
const channel_entity_1 = require("../channel/channel.entity");
|
|
@@ -44,7 +46,7 @@ __decorate([
|
|
|
44
46
|
], Role.prototype, "channels", void 0);
|
|
45
47
|
Role = __decorate([
|
|
46
48
|
typeorm_1.Entity(),
|
|
47
|
-
__metadata("design:paramtypes", [Object])
|
|
49
|
+
__metadata("design:paramtypes", [typeof (_a = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _a : Object])
|
|
48
50
|
], Role);
|
|
49
51
|
exports.Role = Role;
|
|
50
52
|
//# sourceMappingURL=role.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../../src/entity/role/role.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../../src/entity/role/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AACA,mEAA+D;AAC/D,qCAAgE;AAGhE,qDAAoD;AACpD,8DAAoD;AAEpD;;;;;;GAMG;AAEH,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,2BAAa;IACnC,YAAY,KAAyB;QACjC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAWJ,CAAA;AATa;IAAT,gBAAM,EAAE;;kCAAc;AAEb;IAAT,gBAAM,EAAE;;yCAAqB;AAEN;IAAvB,gBAAM,CAAC,cAAc,CAAC;;yCAA2B;AAIlD;IAFC,oBAAU,CAAC,IAAI,CAAC,EAAE,CAAC,wBAAO,CAAC;IAC3B,mBAAS,EAAE;;sCACQ;AAbX,IAAI;IADhB,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,IAAI,CAchB;AAdY,oBAAI"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.Tag = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const base_entity_1 = require("../base/base.entity");
|
|
15
17
|
/**
|
|
@@ -30,7 +32,7 @@ __decorate([
|
|
|
30
32
|
], Tag.prototype, "value", void 0);
|
|
31
33
|
Tag = __decorate([
|
|
32
34
|
typeorm_1.Entity(),
|
|
33
|
-
__metadata("design:paramtypes", [Object])
|
|
35
|
+
__metadata("design:paramtypes", [typeof (_a = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _a : Object])
|
|
34
36
|
], Tag);
|
|
35
37
|
exports.Tag = Tag;
|
|
36
38
|
//# sourceMappingURL=tag.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.entity.js","sourceRoot":"","sources":["../../../src/entity/tag/tag.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tag.entity.js","sourceRoot":"","sources":["../../../src/entity/tag/tag.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAyC;AAEzC,qDAAoD;AAEpD;;;;;;GAMG;AAEH,IAAa,GAAG,GAAhB,MAAa,GAAI,SAAQ,2BAAa;IAClC,YAAY,KAAwB;QAChC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAIJ,CAAA;AADG;IADC,gBAAM,EAAE;;kCACK;AANL,GAAG;IADf,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,GAAG,CAOf;AAPY,kBAAG"}
|
|
@@ -8,8 +8,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var _a;
|
|
11
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
13
|
exports.Zone = void 0;
|
|
14
|
+
const shared_types_1 = require("@vendure/common/lib/shared-types");
|
|
13
15
|
const typeorm_1 = require("typeorm");
|
|
14
16
|
const base_entity_1 = require("../base/base.entity");
|
|
15
17
|
const country_entity_1 = require("../country/country.entity");
|
|
@@ -41,7 +43,7 @@ __decorate([
|
|
|
41
43
|
], Zone.prototype, "customFields", void 0);
|
|
42
44
|
Zone = __decorate([
|
|
43
45
|
typeorm_1.Entity(),
|
|
44
|
-
__metadata("design:paramtypes", [Object])
|
|
46
|
+
__metadata("design:paramtypes", [typeof (_a = typeof shared_types_1.DeepPartial !== "undefined" && shared_types_1.DeepPartial) === "function" ? _a : Object])
|
|
45
47
|
], Zone);
|
|
46
48
|
exports.Zone = Zone;
|
|
47
49
|
//# sourceMappingURL=zone.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zone.entity.js","sourceRoot":"","sources":["../../../src/entity/zone/zone.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zone.entity.js","sourceRoot":"","sources":["../../../src/entity/zone/zone.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,mEAA+D;AAC/D,qCAAgE;AAGhE,qDAAoD;AACpD,8DAAoD;AACpD,kEAA2D;AAE3D;;;;;;GAMG;AAEH,IAAa,IAAI,GAAjB,MAAa,IAAK,SAAQ,2BAAa;IACnC,YAAY,KAAyB;QACjC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjB,CAAC;CAUJ,CAAA;AARa;IAAT,gBAAM,EAAE;;kCAAc;AAIvB;IAFC,oBAAU,CAAC,IAAI,CAAC,EAAE,CAAC,wBAAO,CAAC;IAC3B,mBAAS,EAAE;;qCACO;AAGnB;IADC,gBAAM,CAAC,IAAI,CAAC,EAAE,CAAC,uCAAgB,CAAC;8BACnB,uCAAgB;0CAAC;AAZtB,IAAI;IADhB,gBAAM,EAAE;yDAEe,0BAAW,oBAAX,0BAAW;GADtB,IAAI,CAahB;AAbY,oBAAI"}
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"no-configurable-operation-def-with-code-found": "No { type } with the code '{ code }' could be found",
|
|
39
39
|
"no-price-found-for-channel": "No price information was found for ProductVariant ID '{ variantId}' in the Channel '{ channel }'.",
|
|
40
40
|
"no-search-plugin-configured": "No search plugin has been configured",
|
|
41
|
+
"order-could-not-be-determined-or-created": "No active Order could be determined nor created",
|
|
41
42
|
"order-does-not-contain-line-with-id": "This order does not contain an OrderLine with the id { id }",
|
|
42
43
|
"pending-identifier-missing": "Could not find the pending email address to update",
|
|
43
44
|
"permission-invalid": "The permission \"{ permission }\" may not be assigned",
|
|
@@ -107,6 +108,7 @@
|
|
|
107
108
|
"cannot-transition-order-from-to": "Cannot transition Order from \"{ fromState }\" to \"{ toState }\"",
|
|
108
109
|
"cannot-transition-no-additional-payments-needed": "Cannot transition Order to the \"ArrangingAdditionalPayment\" state as no additional payments are needed",
|
|
109
110
|
"cannot-transition-to-shipping-when-order-is-empty": "Cannot transition Order to the \"ArrangingShipping\" state when it is empty",
|
|
111
|
+
"cannot-transition-to-payment-due-to-insufficient-stock": "Cannot transition Order to the \"ArrangingPayment\" state due to insufficient stock of { productVariantNames }",
|
|
110
112
|
"cannot-transition-to-payment-without-customer": "Cannot transition Order to the \"ArrangingPayment\" state without Customer details",
|
|
111
113
|
"cannot-transition-to-payment-without-shipping-method": "Cannot transition Order to the \"ArrangingPayment\" state without a ShippingMethod",
|
|
112
114
|
"cannot-transition-unless-all-cancelled": "Cannot transition Order to the \"Cancelled\" state unless all OrderItems are cancelled",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { RequestContext } from '../../../api/common/request-context';
|
|
2
|
-
import {
|
|
2
|
+
import { ConfigService } from '../../../config/index';
|
|
3
|
+
import { TransactionalConnection } from '../../../connection/index';
|
|
3
4
|
import { Order } from '../../../entity/order/order.entity';
|
|
4
5
|
import { OrderService } from '../../services/order.service';
|
|
5
6
|
import { SessionService } from '../../services/session.service';
|
|
@@ -13,7 +14,8 @@ export declare class ActiveOrderService {
|
|
|
13
14
|
private sessionService;
|
|
14
15
|
private orderService;
|
|
15
16
|
private connection;
|
|
16
|
-
|
|
17
|
+
private configService;
|
|
18
|
+
constructor(sessionService: SessionService, orderService: OrderService, connection: TransactionalConnection, configService: ConfigService);
|
|
17
19
|
/**
|
|
18
20
|
* @description
|
|
19
21
|
* Gets the active Order object from the current Session. Optionally can create a new Order if
|
|
@@ -21,7 +23,21 @@ export declare class ActiveOrderService {
|
|
|
21
23
|
*
|
|
22
24
|
* Intended to be used at the Resolver layer for those resolvers that depend upon an active Order
|
|
23
25
|
* being present.
|
|
26
|
+
*
|
|
27
|
+
* @deprecated From v1.9.0, use the `getActiveOrder` method which uses any configured ActiveOrderStrategies
|
|
24
28
|
*/
|
|
25
29
|
getOrderFromContext(ctx: RequestContext): Promise<Order | undefined>;
|
|
26
30
|
getOrderFromContext(ctx: RequestContext, createIfNotExists: true): Promise<Order>;
|
|
31
|
+
/**
|
|
32
|
+
* @description
|
|
33
|
+
* Retrieves the active Order based on the configured {@link ActiveOrderStrategy}.
|
|
34
|
+
*
|
|
35
|
+
* @since 1.9.0
|
|
36
|
+
*/
|
|
37
|
+
getActiveOrder(ctx: RequestContext, input: {
|
|
38
|
+
[strategyName: string]: any;
|
|
39
|
+
} | undefined): Promise<Order | undefined>;
|
|
40
|
+
getActiveOrder(ctx: RequestContext, input: {
|
|
41
|
+
[strategyName: string]: any;
|
|
42
|
+
} | undefined, createIfNotExists: true): Promise<Order>;
|
|
27
43
|
}
|
|
@@ -11,8 +11,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ActiveOrderService = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
|
-
const
|
|
15
|
-
const
|
|
14
|
+
const index_1 = require("../../../common/index");
|
|
15
|
+
const index_2 = require("../../../config/index");
|
|
16
|
+
const index_3 = require("../../../connection/index");
|
|
16
17
|
const order_entity_1 = require("../../../entity/order/order.entity");
|
|
17
18
|
const order_service_1 = require("../../services/order.service");
|
|
18
19
|
const session_service_1 = require("../../services/session.service");
|
|
@@ -23,14 +24,15 @@ const session_service_1 = require("../../services/session.service");
|
|
|
23
24
|
* @docsCategory orders
|
|
24
25
|
*/
|
|
25
26
|
let ActiveOrderService = class ActiveOrderService {
|
|
26
|
-
constructor(sessionService, orderService, connection) {
|
|
27
|
+
constructor(sessionService, orderService, connection, configService) {
|
|
27
28
|
this.sessionService = sessionService;
|
|
28
29
|
this.orderService = orderService;
|
|
29
30
|
this.connection = connection;
|
|
31
|
+
this.configService = configService;
|
|
30
32
|
}
|
|
31
33
|
async getOrderFromContext(ctx, createIfNotExists = false) {
|
|
32
34
|
if (!ctx.session) {
|
|
33
|
-
throw new
|
|
35
|
+
throw new index_1.InternalServerError(`error.no-active-session`);
|
|
34
36
|
}
|
|
35
37
|
let order = ctx.session.activeOrderId
|
|
36
38
|
? await this.connection
|
|
@@ -60,12 +62,47 @@ let ActiveOrderService = class ActiveOrderService {
|
|
|
60
62
|
}
|
|
61
63
|
return order || undefined;
|
|
62
64
|
}
|
|
65
|
+
async getActiveOrder(ctx, input, createIfNotExists = false) {
|
|
66
|
+
var _a;
|
|
67
|
+
let order;
|
|
68
|
+
if (!order) {
|
|
69
|
+
const { activeOrderStrategy } = this.configService.orderOptions;
|
|
70
|
+
const strategyArray = Array.isArray(activeOrderStrategy)
|
|
71
|
+
? activeOrderStrategy
|
|
72
|
+
: [activeOrderStrategy];
|
|
73
|
+
for (const strategy of strategyArray) {
|
|
74
|
+
const strategyInput = (_a = input === null || input === void 0 ? void 0 : input[strategy.name]) !== null && _a !== void 0 ? _a : {};
|
|
75
|
+
order = await strategy.determineActiveOrder(ctx, strategyInput);
|
|
76
|
+
if (order) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
if (createIfNotExists && typeof strategy.createActiveOrder === 'function') {
|
|
80
|
+
order = await strategy.createActiveOrder(ctx, strategyInput);
|
|
81
|
+
}
|
|
82
|
+
if (order) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
if (!order && createIfNotExists) {
|
|
87
|
+
// No order has been found, and none could be created, which indicates that
|
|
88
|
+
// none of the configured strategies have a `createActiveOrder` method defined.
|
|
89
|
+
// In this case, we should throw an error because it is assumed that such a configuration
|
|
90
|
+
// indicates that an external order creation mechanism should be defined.
|
|
91
|
+
throw new index_1.UserInputError('error.order-could-not-be-determined-or-created');
|
|
92
|
+
}
|
|
93
|
+
if (order && ctx.session) {
|
|
94
|
+
await this.sessionService.setActiveOrder(ctx, ctx.session, order);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
return order || undefined;
|
|
98
|
+
}
|
|
63
99
|
};
|
|
64
100
|
ActiveOrderService = __decorate([
|
|
65
101
|
common_1.Injectable(),
|
|
66
102
|
__metadata("design:paramtypes", [session_service_1.SessionService,
|
|
67
103
|
order_service_1.OrderService,
|
|
68
|
-
|
|
104
|
+
index_3.TransactionalConnection,
|
|
105
|
+
index_2.ConfigService])
|
|
69
106
|
], ActiveOrderService);
|
|
70
107
|
exports.ActiveOrderService = ActiveOrderService;
|
|
71
108
|
//# sourceMappingURL=active-order.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"active-order.service.js","sourceRoot":"","sources":["../../../../src/service/helpers/active-order/active-order.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAG5C,
|
|
1
|
+
{"version":3,"file":"active-order.service.js","sourceRoot":"","sources":["../../../../src/service/helpers/active-order/active-order.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAG5C,iDAA4E;AAC5E,iDAAsD;AACtD,qDAAoE;AACpE,qEAA2D;AAC3D,gEAA4D;AAC5D,oEAAgE;AAEhE;;;;;GAKG;AAEH,IAAa,kBAAkB,GAA/B,MAAa,kBAAkB;IAC3B,YACY,cAA8B,EAC9B,YAA0B,EAC1B,UAAmC,EACnC,aAA4B;QAH5B,mBAAc,GAAd,cAAc,CAAgB;QAC9B,iBAAY,GAAZ,YAAY,CAAc;QAC1B,eAAU,GAAV,UAAU,CAAyB;QACnC,kBAAa,GAAb,aAAa,CAAe;IACrC,CAAC;IAcJ,KAAK,CAAC,mBAAmB,CAAC,GAAmB,EAAE,iBAAiB,GAAG,KAAK;QACpE,IAAI,CAAC,GAAG,CAAC,OAAO,EAAE;YACd,MAAM,IAAI,2BAAmB,CAAC,yBAAyB,CAAC,CAAC;SAC5D;QACD,IAAI,KAAK,GAAG,GAAG,CAAC,OAAO,CAAC,aAAa;YACjC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G9B;AA7GY,gDAAkB"}
|
|
@@ -49,7 +49,6 @@ function parseFilterParams(connection, entity, filterParams, customPropertyMap,
|
|
|
49
49
|
}
|
|
50
50
|
exports.parseFilterParams = parseFilterParams;
|
|
51
51
|
function buildWhereCondition(fieldName, operator, operand, argIndex, dbType) {
|
|
52
|
-
const emptySetPlaceholder = '___empty_set_placeholder___';
|
|
53
52
|
switch (operator) {
|
|
54
53
|
case 'eq':
|
|
55
54
|
return {
|
|
@@ -78,20 +77,36 @@ function buildWhereCondition(fieldName, operator, operand, argIndex, dbType) {
|
|
|
78
77
|
parameters: { [`arg${argIndex}`]: `%${operand.trim()}%` },
|
|
79
78
|
};
|
|
80
79
|
}
|
|
81
|
-
case 'in':
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
[`arg${argIndex}`]:
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
}
|
|
80
|
+
case 'in': {
|
|
81
|
+
if (Array.isArray(operand) && operand.length) {
|
|
82
|
+
return {
|
|
83
|
+
clause: `${fieldName} IN (:...arg${argIndex})`,
|
|
84
|
+
parameters: { [`arg${argIndex}`]: operand },
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
// "in" with an empty set should always return nothing
|
|
89
|
+
return {
|
|
90
|
+
clause: '1 = 0',
|
|
91
|
+
parameters: {},
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
case 'notIn': {
|
|
96
|
+
if (Array.isArray(operand) && operand.length) {
|
|
97
|
+
return {
|
|
98
|
+
clause: `${fieldName} NOT IN (:...arg${argIndex})`,
|
|
99
|
+
parameters: { [`arg${argIndex}`]: operand },
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
// "notIn" with an empty set should always return all
|
|
104
|
+
return {
|
|
105
|
+
clause: '1 = 1',
|
|
106
|
+
parameters: {},
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
}
|
|
95
110
|
case 'regex':
|
|
96
111
|
return {
|
|
97
112
|
clause: getRegexpClause(fieldName, argIndex, dbType),
|
|
@@ -127,6 +142,11 @@ function buildWhereCondition(fieldName, operator, operand, argIndex, dbType) {
|
|
|
127
142
|
[`arg${argIndex}_b`]: convertDate(operand.end),
|
|
128
143
|
},
|
|
129
144
|
};
|
|
145
|
+
case 'isNull':
|
|
146
|
+
return {
|
|
147
|
+
clause: operand === true ? `${fieldName} IS NULL` : `${fieldName} IS NOT NULL`,
|
|
148
|
+
parameters: {},
|
|
149
|
+
};
|
|
130
150
|
default:
|
|
131
151
|
shared_utils_1.assertNever(operator);
|
|
132
152
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-filter-params.js","sourceRoot":"","sources":["../../../../src/service/helpers/list-query-builder/parse-filter-params.ts"],"names":[],"mappings":";;;AACA,mEAA+D;AAE/D,sDAAmD;AAEnD,yDAAmF;AAYnF,yDAAyF;AACzF,qEAAgE;AAUhE,SAAgB,iBAAiB,CAC7B,UAAsB,EACtB,MAAe,EACf,YAAuD,EACvD,iBAA8C,EAC9C,WAAoB;IAEpB,IAAI,CAAC,YAAY,EAAE;QACf,OAAO,EAAE,CAAC;KACb;IACD,MAAM,EAAE,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,oCAAiB,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACnG,MAAM,KAAK,GAAG,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,YAAY,CAAC;IAC1C,MAAM,iBAAiB,GAAG,6CAAoB,CAAC,MAAM,CAAC,CAAC;IACvD,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC;IACvC,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,KA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B,CAAC,CAAC;iBAC1D;gBACD,MAAM,SAAS,GAAG,mBAAmB,CACjC,SAAS,EACT,QAAoB,EACpB,OAAO,EACP,QAAQ,EACR,MAAM,CACT,CAAC;gBACF,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;gBACvB,QAAQ,EAAE,CAAC;aACd;SACJ;KACJ;IAED,OAAO,MAAM,CAAC;AAClB,CAAC;AApDD,8CAoDC;AAED,SAAS,mBAAmB,CACxB,SAAiB,EACjB,QAAkB,EAClB,OAAY,EACZ,QAAgB,EAChB,MAAiC;IAEjC,
|
|
1
|
+
{"version":3,"file":"parse-filter-params.js","sourceRoot":"","sources":["../../../../src/service/helpers/list-query-builder/parse-filter-params.ts"],"names":[],"mappings":";;;AACA,mEAA+D;AAE/D,sDAAmD;AAEnD,yDAAmF;AAYnF,yDAAyF;AACzF,qEAAgE;AAUhE,SAAgB,iBAAiB,CAC7B,UAAsB,EACtB,MAAe,EACf,YAAuD,EACvD,iBAA8C,EAC9C,WAAoB;IAEpB,IAAI,CAAC,YAAY,EAAE;QACf,OAAO,EAAE,CAAC;KACb;IACD,MAAM,EAAE,OAAO,EAAE,kBAAkB,EAAE,KAAK,EAAE,YAAY,EAAE,GAAG,oCAAiB,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACnG,MAAM,KAAK,GAAG,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,YAAY,CAAC;IAC1C,MAAM,iBAAiB,GAAG,6CAAoB,CAAC,MAAM,CAAC,CAAC;IACvD,MAAM,MAAM,GAAqB,EAAE,CAAC;IACpC,MAAM,MAAM,GAAG,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC;IACvC,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,KAAK,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACzD,IAAI,SAAS,EAAE;YACX,MAAM,mBAAmB,GAAG,iBAAiB,CAAC,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