@escapenavigator/types 1.10.59 → 1.10.61
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/agregator/agregator-questroom-card.ro.d.ts +1 -0
- package/dist/agregator/agregator-questroom-card.ro.js +5 -0
- package/dist/agregator/agregator-questroom.ro.d.ts +1 -1
- package/dist/agregator/agregator-questroom.ro.js +1 -1
- package/dist/log/log-title.enum.d.ts +2 -0
- package/dist/log/log-title.enum.js +2 -0
- package/dist/order/order.ro.d.ts +2 -0
- package/dist/order/order.ro.js +6 -0
- package/dist/order-product/order-product.ro.d.ts +9 -0
- package/dist/order-product/order-product.ro.js +39 -0
- package/dist/packages/create-package.dto.d.ts +9 -0
- package/dist/packages/create-package.dto.js +58 -0
- package/dist/packages/package-discount-type.enum.d.ts +5 -0
- package/dist/packages/package-discount-type.enum.js +9 -0
- package/dist/packages/package.ro.d.ts +10 -0
- package/dist/packages/package.ro.js +42 -0
- package/dist/packages/update-package.dto.d.ts +5 -0
- package/dist/packages/update-package.dto.js +8 -0
- package/dist/product/add-product-to-order.dto.d.ts +4 -0
- package/dist/product/add-product-to-order.dto.js +27 -0
- package/dist/product/create-product.dto.d.ts +6 -0
- package/dist/product/create-product.dto.js +37 -0
- package/dist/product/product.ro.d.ts +7 -0
- package/dist/product/product.ro.js +33 -0
- package/dist/product/query-product.dto.d.ts +3 -0
- package/dist/product/query-product.dto.js +7 -0
- package/dist/product/update-product.dto.d.ts +6 -0
- package/dist/product/update-product.dto.js +40 -0
- package/dist/shared/enum/tags.enum.d.ts +2 -1
- package/dist/shared/enum/tags.enum.js +1 -0
- package/dist/shared/is-correct-players.js +2 -1
- package/dist/stock-arrival/create-stock-arrival.dto.d.ts +8 -0
- package/dist/stock-arrival/create-stock-arrival.dto.js +44 -0
- package/dist/stock-arrival/stock-arrival.ro.d.ts +12 -0
- package/dist/stock-arrival/stock-arrival.ro.js +48 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -121,6 +121,11 @@ __decorate([
|
|
|
121
121
|
(0, class_transformer_1.Transform)(({ obj }) => { var _a; return obj.templateId && ((_a = obj.profile) === null || _a === void 0 ? void 0 : _a.partnerProgram) === partner_program_enum_1.PartnerProgramEnum.ACTIVE; }),
|
|
122
122
|
__metadata("design:type", Boolean)
|
|
123
123
|
], AgregatorQuestroomCardRO.prototype, "hasSchedule", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_transformer_1.Expose)(),
|
|
126
|
+
(0, class_transformer_1.Transform)(({ obj }) => { var _a; return ((_a = obj.questroomAwards) === null || _a === void 0 ? void 0 : _a.length) || 0; }),
|
|
127
|
+
__metadata("design:type", Number)
|
|
128
|
+
], AgregatorQuestroomCardRO.prototype, "questroomAwardsCount", void 0);
|
|
124
129
|
__decorate([
|
|
125
130
|
(0, class_transformer_1.Expose)(),
|
|
126
131
|
(0, class_transformer_1.Type)(() => AgregatorQuestroomLocation),
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
2
2
|
import { QuestroomActorsEnum } from '../questroom/enum/questroom-actors.enum';
|
|
3
3
|
import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
|
|
4
|
+
import { QuestroomAI } from '../questroom/questroom-meta.ro';
|
|
4
5
|
import { QuestroomMode } from '../questroom/questroom.ro';
|
|
5
6
|
import { ExpertReviewRO } from '../review/expert-review.ro';
|
|
6
7
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
7
8
|
import { Languages } from '../shared/enum/languages.enum';
|
|
8
9
|
import { TagsEnum } from '../shared/enum/tags.enum';
|
|
9
10
|
import { AgregatorQuestroomCardRO } from './agregator-questroom-card.ro';
|
|
10
|
-
import { QuestroomAI } from '../questroom/questroom-meta.ro';
|
|
11
11
|
export declare const getRightLocale: ({ value, key, techLocales, locales, language, }: {
|
|
12
12
|
value: string;
|
|
13
13
|
key: string;
|
|
@@ -18,12 +18,12 @@ const profile_currency_1 = require("../profile/enum/profile-currency");
|
|
|
18
18
|
const profile_step_enum_1 = require("../profile/enum/profile-step.enum");
|
|
19
19
|
const questroom_actors_enum_1 = require("../questroom/enum/questroom-actors.enum");
|
|
20
20
|
const questroom_type_enum_1 = require("../questroom/enum/questroom-type.enum");
|
|
21
|
+
const questroom_meta_ro_1 = require("../questroom/questroom-meta.ro");
|
|
21
22
|
const questroom_ro_1 = require("../questroom/questroom.ro");
|
|
22
23
|
const expert_review_ro_1 = require("../review/expert-review.ro");
|
|
23
24
|
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
24
25
|
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
25
26
|
const agregator_questroom_card_ro_1 = require("./agregator-questroom-card.ro");
|
|
26
|
-
const questroom_meta_ro_1 = require("../questroom/questroom-meta.ro");
|
|
27
27
|
const getRightLocale = ({ value, key, techLocales, locales, language, }) => {
|
|
28
28
|
const techLocale = techLocales.find((l) => l.language === language);
|
|
29
29
|
const locale = locales.find((l) => l.language === language);
|
|
@@ -12,6 +12,8 @@ export declare enum LogTitleEnum {
|
|
|
12
12
|
removePenalty = "removePenalty",
|
|
13
13
|
addUpselling = "addUpselling",
|
|
14
14
|
removeUpselling = "removeUpselling",
|
|
15
|
+
addProduct = "addProduct",
|
|
16
|
+
removeProduct = "removeProduct",
|
|
15
17
|
addCertificate = "addCertificate",
|
|
16
18
|
removeCertificate = "removeCertificate",
|
|
17
19
|
addPromocode = "addPromocode",
|
|
@@ -16,6 +16,8 @@ var LogTitleEnum;
|
|
|
16
16
|
LogTitleEnum["removePenalty"] = "removePenalty";
|
|
17
17
|
LogTitleEnum["addUpselling"] = "addUpselling";
|
|
18
18
|
LogTitleEnum["removeUpselling"] = "removeUpselling";
|
|
19
|
+
LogTitleEnum["addProduct"] = "addProduct";
|
|
20
|
+
LogTitleEnum["removeProduct"] = "removeProduct";
|
|
19
21
|
LogTitleEnum["addCertificate"] = "addCertificate";
|
|
20
22
|
LogTitleEnum["removeCertificate"] = "removeCertificate";
|
|
21
23
|
LogTitleEnum["addPromocode"] = "addPromocode";
|
package/dist/order/order.ro.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ClientRO } from '../client/client.ro';
|
|
2
2
|
import { OrderPenaltyTypeEnum } from '../order-penalty/enum/order-penalty-type.enum';
|
|
3
|
+
import { OrderProductRO } from '../order-product/order-product.ro';
|
|
3
4
|
import { QuestroomCancelationTypeEnum } from '../questroom/enum/questroom-cancelation-type.enum';
|
|
4
5
|
import { Languages } from '../shared/enum/languages.enum';
|
|
5
6
|
import { RO } from '../shared/ro-class';
|
|
@@ -131,5 +132,6 @@ export declare class OrderRO extends RO {
|
|
|
131
132
|
promocodes: Promocodes[];
|
|
132
133
|
penalties: Penalties[];
|
|
133
134
|
transactions: Transactions[];
|
|
135
|
+
orderProducts: OrderProductRO[];
|
|
134
136
|
}
|
|
135
137
|
export {};
|
package/dist/order/order.ro.js
CHANGED
|
@@ -15,6 +15,7 @@ const class_transformer_1 = require("class-transformer");
|
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const client_ro_1 = require("../client/client.ro");
|
|
17
17
|
const order_penalty_type_enum_1 = require("../order-penalty/enum/order-penalty-type.enum");
|
|
18
|
+
const order_product_ro_1 = require("../order-product/order-product.ro");
|
|
18
19
|
const questroom_cancelation_type_enum_1 = require("../questroom/enum/questroom-cancelation-type.enum");
|
|
19
20
|
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
20
21
|
const ro_class_1 = require("../shared/ro-class");
|
|
@@ -449,4 +450,9 @@ __decorate([
|
|
|
449
450
|
(0, class_transformer_1.Type)(() => Transactions),
|
|
450
451
|
__metadata("design:type", Array)
|
|
451
452
|
], OrderRO.prototype, "transactions", void 0);
|
|
453
|
+
__decorate([
|
|
454
|
+
(0, class_transformer_1.Expose)(),
|
|
455
|
+
(0, class_transformer_1.Type)(() => order_product_ro_1.OrderProductRO),
|
|
456
|
+
__metadata("design:type", Array)
|
|
457
|
+
], OrderRO.prototype, "orderProducts", void 0);
|
|
452
458
|
exports.OrderRO = OrderRO;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.OrderProductRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const product_ro_1 = require("../product/product.ro");
|
|
15
|
+
const ro_class_1 = require("../shared/ro-class");
|
|
16
|
+
class OrderProductRO extends ro_class_1.RO {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], OrderProductRO.prototype, "orderId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], OrderProductRO.prototype, "productId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
(0, class_transformer_1.Type)(() => product_ro_1.ProductRO),
|
|
29
|
+
__metadata("design:type", product_ro_1.ProductRO)
|
|
30
|
+
], OrderProductRO.prototype, "product", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], OrderProductRO.prototype, "quantity", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], OrderProductRO.prototype, "price", void 0);
|
|
39
|
+
exports.OrderProductRO = OrderProductRO;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PackageDiscountTypeEnum } from './package-discount-type.enum';
|
|
2
|
+
export declare class CreatePackageDto {
|
|
3
|
+
questroomsIds: number[];
|
|
4
|
+
discountType: PackageDiscountTypeEnum;
|
|
5
|
+
discountAmount: number;
|
|
6
|
+
tariffId: number;
|
|
7
|
+
escapeRoomsCount: number;
|
|
8
|
+
physicalRoom: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreatePackageDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const package_discount_type_enum_1 = require("./package-discount-type.enum");
|
|
16
|
+
class CreatePackageDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsArray)(),
|
|
20
|
+
(0, class_validator_1.ArrayNotEmpty)(),
|
|
21
|
+
(0, class_validator_1.IsInt)({ each: true }),
|
|
22
|
+
(0, class_transformer_1.Transform)(({ value }) => (Array.isArray(value) ? value.map((item) => +item) : [])),
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", Array)
|
|
25
|
+
], CreatePackageDto.prototype, "questroomsIds", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsEnum)(package_discount_type_enum_1.PackageDiscountTypeEnum),
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], CreatePackageDto.prototype, "discountType", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.ValidateIf)((o) => o.discountType !== package_discount_type_enum_1.PackageDiscountTypeEnum.FULL),
|
|
33
|
+
(0, class_validator_1.IsNumber)(),
|
|
34
|
+
(0, class_validator_1.Min)(0),
|
|
35
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined || value === null ? 0 : Number(value))),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], CreatePackageDto.prototype, "discountAmount", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsInt)(),
|
|
41
|
+
(0, class_validator_1.Min)(1),
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], CreatePackageDto.prototype, "tariffId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsInt)(),
|
|
47
|
+
(0, class_validator_1.Min)(1),
|
|
48
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined || value === null ? 1 : Number(value))),
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], CreatePackageDto.prototype, "escapeRoomsCount", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsBoolean)(),
|
|
54
|
+
(0, class_transformer_1.Transform)(({ value }) => Boolean(value)),
|
|
55
|
+
(0, class_transformer_1.Expose)(),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], CreatePackageDto.prototype, "physicalRoom", void 0);
|
|
58
|
+
exports.CreatePackageDto = CreatePackageDto;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PackageDiscountTypeEnum = void 0;
|
|
4
|
+
var PackageDiscountTypeEnum;
|
|
5
|
+
(function (PackageDiscountTypeEnum) {
|
|
6
|
+
PackageDiscountTypeEnum["PERCENT"] = "percent";
|
|
7
|
+
PackageDiscountTypeEnum["FIXED"] = "fixed";
|
|
8
|
+
PackageDiscountTypeEnum["FULL"] = "full";
|
|
9
|
+
})(PackageDiscountTypeEnum = exports.PackageDiscountTypeEnum || (exports.PackageDiscountTypeEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RO } from '../shared/ro-class';
|
|
2
|
+
import { PackageDiscountTypeEnum } from './package-discount-type.enum';
|
|
3
|
+
export declare class PackageResponseObject extends RO {
|
|
4
|
+
questroomsIds: number[];
|
|
5
|
+
discountType: PackageDiscountTypeEnum;
|
|
6
|
+
discountAmount: number;
|
|
7
|
+
tariffId: number;
|
|
8
|
+
escapeRoomsCount: number;
|
|
9
|
+
physicalRoom: boolean;
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.PackageResponseObject = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const ro_class_1 = require("../shared/ro-class");
|
|
15
|
+
const package_discount_type_enum_1 = require("./package-discount-type.enum");
|
|
16
|
+
class PackageResponseObject extends ro_class_1.RO {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Array)
|
|
21
|
+
], PackageResponseObject.prototype, "questroomsIds", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], PackageResponseObject.prototype, "discountType", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], PackageResponseObject.prototype, "discountAmount", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], PackageResponseObject.prototype, "tariffId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], PackageResponseObject.prototype, "escapeRoomsCount", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], PackageResponseObject.prototype, "physicalRoom", void 0);
|
|
42
|
+
exports.PackageResponseObject = PackageResponseObject;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdatePackageDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_package_dto_1 = require("./create-package.dto");
|
|
6
|
+
class UpdatePackageDto extends (0, mapped_types_1.PartialType)(create_package_dto_1.CreatePackageDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdatePackageDto = UpdatePackageDto;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AddProductToOrderDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class AddProductToOrderDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], AddProductToOrderDto.prototype, "productId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNumber)(),
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], AddProductToOrderDto.prototype, "quantity", void 0);
|
|
27
|
+
exports.AddProductToOrderDto = AddProductToOrderDto;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateProductDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class CreateProductDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreateProductDto.prototype, "title", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNumber)(),
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], CreateProductDto.prototype, "price", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], CreateProductDto.prototype, "stock", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], CreateProductDto.prototype, "trackQuantity", void 0);
|
|
37
|
+
exports.CreateProductDto = CreateProductDto;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ProductRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const ro_class_1 = require("../shared/ro-class");
|
|
15
|
+
class ProductRO extends ro_class_1.RO {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_transformer_1.Expose)(),
|
|
19
|
+
__metadata("design:type", String)
|
|
20
|
+
], ProductRO.prototype, "title", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], ProductRO.prototype, "price", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], ProductRO.prototype, "stock", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", Boolean)
|
|
32
|
+
], ProductRO.prototype, "trackQuantity", void 0);
|
|
33
|
+
exports.ProductRO = ProductRO;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QueryProductDto = void 0;
|
|
4
|
+
const query_dto_1 = require("../shared/query.dto");
|
|
5
|
+
class QueryProductDto extends query_dto_1.QueryDto {
|
|
6
|
+
}
|
|
7
|
+
exports.QueryProductDto = QueryProductDto;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateProductDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class UpdateProductDto {
|
|
16
|
+
}
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsOptional)(),
|
|
19
|
+
(0, class_validator_1.IsString)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], UpdateProductDto.prototype, "title", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsNumber)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], UpdateProductDto.prototype, "price", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_validator_1.IsNumber)(),
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], UpdateProductDto.prototype, "stock", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", Boolean)
|
|
39
|
+
], UpdateProductDto.prototype, "trackQuantity", void 0);
|
|
40
|
+
exports.UpdateProductDto = UpdateProductDto;
|
|
@@ -30,7 +30,8 @@ export declare enum TagsEnum {
|
|
|
30
30
|
CORPORATE = "corporate",
|
|
31
31
|
DUELMODE = "duelmode",
|
|
32
32
|
PERFORMANCE_NO_CONTACT = "performance_no_contact",
|
|
33
|
-
INVALID = "invalid"
|
|
33
|
+
INVALID = "invalid",
|
|
34
|
+
KIDS_BIRTHDAY = "kids_birthday"
|
|
34
35
|
}
|
|
35
36
|
export declare enum TechTagsEnum {
|
|
36
37
|
KIDS = "kids",
|
|
@@ -39,6 +39,7 @@ var TagsEnum;
|
|
|
39
39
|
TagsEnum["PERFORMANCE_NO_CONTACT"] = "performance_no_contact";
|
|
40
40
|
// escape_room_special
|
|
41
41
|
TagsEnum["INVALID"] = "invalid";
|
|
42
|
+
TagsEnum["KIDS_BIRTHDAY"] = "kids_birthday";
|
|
42
43
|
// SUSPENSE = 'suspense', // Саспенс
|
|
43
44
|
// IMMERSIVE = 'immersive', // Иммерсивные квесты
|
|
44
45
|
// CLOSEDYEYS = 'closedyeyes', // Морфеус
|
|
@@ -16,7 +16,8 @@ function IsCorrectPlayers(validationOptions) {
|
|
|
16
16
|
const maxPlayers = (_b = args.object) === null || _b === void 0 ? void 0 : _b.maxPlayers;
|
|
17
17
|
const children = ((_c = args.object) === null || _c === void 0 ? void 0 : _c.children) || 0;
|
|
18
18
|
const total = value + children;
|
|
19
|
-
|
|
19
|
+
if (value < minPlayers)
|
|
20
|
+
return false;
|
|
20
21
|
if (value === undefined)
|
|
21
22
|
return false;
|
|
22
23
|
return total <= maxPlayers && total >= minPlayers;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreateStockArrivalDto = exports.CreateStockArrivalItemDto = void 0;
|
|
13
|
+
/* eslint-disable max-classes-per-file */
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
class CreateStockArrivalItemDto {
|
|
17
|
+
}
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNumber)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], CreateStockArrivalItemDto.prototype, "productId", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], CreateStockArrivalItemDto.prototype, "quantity", void 0);
|
|
28
|
+
exports.CreateStockArrivalItemDto = CreateStockArrivalItemDto;
|
|
29
|
+
class CreateStockArrivalDto {
|
|
30
|
+
}
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CreateStockArrivalDto.prototype, "comment", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsArray)(),
|
|
39
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
40
|
+
(0, class_transformer_1.Type)(() => CreateStockArrivalItemDto),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", Array)
|
|
43
|
+
], CreateStockArrivalDto.prototype, "items", void 0);
|
|
44
|
+
exports.CreateStockArrivalDto = CreateStockArrivalDto;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ProductRO } from '../product/product.ro';
|
|
2
|
+
import { RO } from '../shared/ro-class';
|
|
3
|
+
export declare class StockArrivalItemRO {
|
|
4
|
+
id: number;
|
|
5
|
+
productId: number;
|
|
6
|
+
product: ProductRO;
|
|
7
|
+
quantity: number;
|
|
8
|
+
}
|
|
9
|
+
export declare class StockArrivalRO extends RO {
|
|
10
|
+
comment: string;
|
|
11
|
+
items: StockArrivalItemRO[];
|
|
12
|
+
}
|