@escapenavigator/types 1.8.8 → 1.9.0
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-city.ro.d.ts +2 -0
- package/dist/agregator/agregator-city.ro.js +8 -0
- package/dist/agregator/agregator-questroom-card.ro.d.ts +2 -0
- package/dist/agregator/agregator-questroom-card.ro.js +4 -0
- package/dist/agregator/agregator-questroom.ro.d.ts +2 -0
- package/dist/agregator/agregator-questroom.ro.js +4 -0
- package/dist/constants/award-images.d.ts +2 -0
- package/dist/constants/award-images.js +18 -0
- package/dist/forms/widget/widget-players-form.dto.d.ts +1 -0
- package/dist/forms/widget/widget-players-form.dto.js +5 -0
- package/dist/openapi/orders/openapi-create-preorder.dto.d.ts +1 -0
- package/dist/openapi/orders/openapi-create-preorder.dto.js +5 -0
- package/dist/openapi/shared/openapi-questroom.ro.d.ts +6 -0
- package/dist/openapi/shared/openapi-questroom.ro.js +15 -0
- package/dist/order/create-order.dto.d.ts +1 -0
- package/dist/order/create-order.dto.js +5 -0
- package/dist/order/order.ro.d.ts +1 -0
- package/dist/order/order.ro.js +4 -0
- package/dist/questroom/awards/award.ro.d.ts +2 -3
- package/dist/questroom/awards/award.ro.js +2 -9
- package/dist/questroom/awards/create-award.dto.d.ts +2 -3
- package/dist/questroom/awards/create-award.dto.js +3 -14
- package/dist/questroom/create-questroom.dto.d.ts +7 -1
- package/dist/questroom/create-questroom.dto.js +33 -5
- package/dist/questroom/enum/questroom-award.enum.d.ts +14 -0
- package/dist/questroom/enum/questroom-award.enum.js +18 -0
- package/dist/questroom/questroom-admin.ro.d.ts +3 -3
- package/dist/questroom/questroom-admin.ro.js +4 -6
- package/dist/questroom/questroom.ro.d.ts +7 -1
- package/dist/questroom/questroom.ro.js +23 -4
- package/dist/questroom/update-admin-questroom.dto.d.ts +36 -0
- package/dist/questroom/update-admin-questroom.dto.js +198 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -72,6 +72,14 @@ __decorate([
|
|
|
72
72
|
(0, class_transformer_1.Expose)(),
|
|
73
73
|
__metadata("design:type", Number)
|
|
74
74
|
], AgregatorCityRO.prototype, "questroomsCount", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_transformer_1.Expose)(),
|
|
77
|
+
__metadata("design:type", Number)
|
|
78
|
+
], AgregatorCityRO.prototype, "reviewsCount", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_transformer_1.Expose)(),
|
|
81
|
+
__metadata("design:type", Number)
|
|
82
|
+
], AgregatorCityRO.prototype, "rate", void 0);
|
|
75
83
|
__decorate([
|
|
76
84
|
(0, class_transformer_1.Expose)(),
|
|
77
85
|
__metadata("design:type", String)
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { QuestroomAwardEnum } from '../questroom/enum/questroom-award.enum';
|
|
1
2
|
import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
|
|
2
3
|
import { Languages } from '../shared/enum/languages.enum';
|
|
3
4
|
export declare class AgregatorQuestroomLocation {
|
|
@@ -15,6 +16,7 @@ export declare class AgregatorQuestroomCardRO {
|
|
|
15
16
|
type: QuestroomTypeEnum;
|
|
16
17
|
rate: number;
|
|
17
18
|
photo: string;
|
|
19
|
+
awards: QuestroomAwardEnum[];
|
|
18
20
|
minAge: number;
|
|
19
21
|
time: number;
|
|
20
22
|
playersMin: number;
|
|
@@ -84,6 +84,10 @@ __decorate([
|
|
|
84
84
|
(0, class_transformer_1.Expose)(),
|
|
85
85
|
__metadata("design:type", String)
|
|
86
86
|
], AgregatorQuestroomCardRO.prototype, "photo", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_transformer_1.Expose)(),
|
|
89
|
+
__metadata("design:type", Array)
|
|
90
|
+
], AgregatorQuestroomCardRO.prototype, "awards", void 0);
|
|
87
91
|
__decorate([
|
|
88
92
|
(0, class_transformer_1.Expose)(),
|
|
89
93
|
__metadata("design:type", Number)
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
|
|
2
2
|
import { QuestroomActorsEnum } from '../questroom/enum/questroom-actors.enum';
|
|
3
|
+
import { QuestroomAwardEnum } from '../questroom/enum/questroom-award.enum';
|
|
3
4
|
import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
|
|
4
5
|
import { ExpertReviewRO } from '../review/expert-review.ro';
|
|
5
6
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
@@ -48,6 +49,7 @@ export declare class AgregatorQuestroomRO {
|
|
|
48
49
|
language: Languages;
|
|
49
50
|
type: QuestroomTypeEnum;
|
|
50
51
|
profile: AgregatorProfile;
|
|
52
|
+
awards: QuestroomAwardEnum[];
|
|
51
53
|
playersMin: number;
|
|
52
54
|
playersMax: number;
|
|
53
55
|
time: number;
|
|
@@ -176,6 +176,10 @@ __decorate([
|
|
|
176
176
|
(0, class_transformer_1.Type)(() => AgregatorProfile),
|
|
177
177
|
__metadata("design:type", AgregatorProfile)
|
|
178
178
|
], AgregatorQuestroomRO.prototype, "profile", void 0);
|
|
179
|
+
__decorate([
|
|
180
|
+
(0, class_transformer_1.Expose)(),
|
|
181
|
+
__metadata("design:type", Array)
|
|
182
|
+
], AgregatorQuestroomRO.prototype, "awards", void 0);
|
|
179
183
|
__decorate([
|
|
180
184
|
(0, class_transformer_1.Expose)(),
|
|
181
185
|
__metadata("design:type", Number)
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.awardImages = void 0;
|
|
4
|
+
const questroom_award_enum_1 = require("../questroom/enum/questroom-award.enum");
|
|
5
|
+
exports.awardImages = {
|
|
6
|
+
[questroom_award_enum_1.QuestroomAwardEnum.TRIP22]: '',
|
|
7
|
+
[questroom_award_enum_1.QuestroomAwardEnum.TRIP23]: '',
|
|
8
|
+
[questroom_award_enum_1.QuestroomAwardEnum.TRIP24]: '',
|
|
9
|
+
[questroom_award_enum_1.QuestroomAwardEnum.MORTY22]: '',
|
|
10
|
+
[questroom_award_enum_1.QuestroomAwardEnum.MORTY23]: '',
|
|
11
|
+
[questroom_award_enum_1.QuestroomAwardEnum.MORTY24]: '',
|
|
12
|
+
[questroom_award_enum_1.QuestroomAwardEnum.ESCAPE_GAME_AWARDS22]: '',
|
|
13
|
+
[questroom_award_enum_1.QuestroomAwardEnum.ESCAPE_GAME_AWARDS23]: '',
|
|
14
|
+
[questroom_award_enum_1.QuestroomAwardEnum.ESCAPE_GAME_AWARDS24]: '',
|
|
15
|
+
[questroom_award_enum_1.QuestroomAwardEnum.TOP_ESCAPE_ROOM_PROJECT22]: '',
|
|
16
|
+
[questroom_award_enum_1.QuestroomAwardEnum.TOP_ESCAPE_ROOM_PROJECT23]: '',
|
|
17
|
+
[questroom_award_enum_1.QuestroomAwardEnum.TOP_ESCAPE_ROOM_PROJECT24]: '',
|
|
18
|
+
};
|
|
@@ -38,4 +38,9 @@ __decorate([
|
|
|
38
38
|
(0, class_transformer_1.Expose)(),
|
|
39
39
|
__metadata("design:type", String)
|
|
40
40
|
], WidgetPlayersFormDto.prototype, "comment", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], WidgetPlayersFormDto.prototype, "mode", void 0);
|
|
41
46
|
exports.WidgetPlayersFormDto = WidgetPlayersFormDto;
|
|
@@ -34,6 +34,11 @@ __decorate([
|
|
|
34
34
|
(0, class_transformer_1.Expose)(),
|
|
35
35
|
__metadata("design:type", Number)
|
|
36
36
|
], OpenapiCreatePreorderDto.prototype, "players", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], OpenapiCreatePreorderDto.prototype, "mode", void 0);
|
|
37
42
|
__decorate([
|
|
38
43
|
(0, class_validator_1.IsNumber)(),
|
|
39
44
|
(0, class_transformer_1.Expose)(),
|
|
@@ -24,6 +24,7 @@ export declare const transformQuestroom: ({ value, language, }: {
|
|
|
24
24
|
playersMin: number;
|
|
25
25
|
onlinePaymentsCashbox: number;
|
|
26
26
|
paypalCashbox: number;
|
|
27
|
+
modes: Mode[];
|
|
27
28
|
minAge: number;
|
|
28
29
|
};
|
|
29
30
|
declare class QuestroomLocale {
|
|
@@ -37,6 +38,10 @@ declare class LocationLocale {
|
|
|
37
38
|
prepareText: string;
|
|
38
39
|
language: Languages;
|
|
39
40
|
}
|
|
41
|
+
declare class Mode {
|
|
42
|
+
title: string;
|
|
43
|
+
description: string;
|
|
44
|
+
}
|
|
40
45
|
declare class Location {
|
|
41
46
|
address: string;
|
|
42
47
|
prepareText: string;
|
|
@@ -59,6 +64,7 @@ export declare class OpenapiQuestroomRO {
|
|
|
59
64
|
onlinePaymentsCashbox: number;
|
|
60
65
|
paypalCashbox: number;
|
|
61
66
|
importantInfo: string;
|
|
67
|
+
modes: Mode[];
|
|
62
68
|
minAge: number;
|
|
63
69
|
location: Location;
|
|
64
70
|
locales: QuestroomLocale[];
|
|
@@ -65,6 +65,16 @@ __decorate([
|
|
|
65
65
|
(0, class_transformer_1.Expose)(),
|
|
66
66
|
__metadata("design:type", String)
|
|
67
67
|
], LocationLocale.prototype, "language", void 0);
|
|
68
|
+
class Mode {
|
|
69
|
+
}
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], Mode.prototype, "title", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_transformer_1.Expose)(),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], Mode.prototype, "description", void 0);
|
|
68
78
|
class Location {
|
|
69
79
|
}
|
|
70
80
|
__decorate([
|
|
@@ -147,6 +157,11 @@ __decorate([
|
|
|
147
157
|
(0, class_transformer_1.Expose)(),
|
|
148
158
|
__metadata("design:type", String)
|
|
149
159
|
], OpenapiQuestroomRO.prototype, "importantInfo", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, class_transformer_1.Expose)(),
|
|
162
|
+
(0, class_transformer_1.Type)(() => Mode),
|
|
163
|
+
__metadata("design:type", Array)
|
|
164
|
+
], OpenapiQuestroomRO.prototype, "modes", void 0);
|
|
150
165
|
__decorate([
|
|
151
166
|
(0, class_transformer_1.Expose)(),
|
|
152
167
|
__metadata("design:type", Number)
|
|
@@ -25,6 +25,11 @@ __decorate([
|
|
|
25
25
|
(0, class_transformer_1.Expose)(),
|
|
26
26
|
__metadata("design:type", Number)
|
|
27
27
|
], CreateOrderDto.prototype, "players", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], CreateOrderDto.prototype, "mode", void 0);
|
|
28
33
|
__decorate([
|
|
29
34
|
(0, class_validator_1.IsOptional)(),
|
|
30
35
|
(0, class_transformer_1.Expose)(),
|
package/dist/order/order.ro.d.ts
CHANGED
package/dist/order/order.ro.js
CHANGED
|
@@ -253,6 +253,10 @@ __decorate([
|
|
|
253
253
|
(0, class_transformer_1.Expose)(),
|
|
254
254
|
__metadata("design:type", Object)
|
|
255
255
|
], OrderRO.prototype, "price", void 0);
|
|
256
|
+
__decorate([
|
|
257
|
+
(0, class_transformer_1.Expose)(),
|
|
258
|
+
__metadata("design:type", String)
|
|
259
|
+
], OrderRO.prototype, "mode", void 0);
|
|
256
260
|
__decorate([
|
|
257
261
|
(0, class_transformer_1.Expose)(),
|
|
258
262
|
__metadata("design:type", Number)
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AwardRO = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const questroom_award_enum_1 = require("../enum/questroom-award.enum");
|
|
14
15
|
class AwardRO {
|
|
15
16
|
}
|
|
16
17
|
__decorate([
|
|
@@ -20,15 +21,7 @@ __decorate([
|
|
|
20
21
|
__decorate([
|
|
21
22
|
(0, class_transformer_1.Expose)(),
|
|
22
23
|
__metadata("design:type", String)
|
|
23
|
-
], AwardRO.prototype, "
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_transformer_1.Expose)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], AwardRO.prototype, "type", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, class_transformer_1.Expose)(),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], AwardRO.prototype, "title", void 0);
|
|
24
|
+
], AwardRO.prototype, "award", void 0);
|
|
32
25
|
__decorate([
|
|
33
26
|
(0, class_transformer_1.Expose)(),
|
|
34
27
|
__metadata("design:type", Number)
|
|
@@ -10,27 +10,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreateAwardDto = void 0;
|
|
13
|
-
/* eslint-disable max-classes-per-file */
|
|
14
13
|
const class_transformer_1 = require("class-transformer");
|
|
15
14
|
const class_validator_1 = require("class-validator");
|
|
16
|
-
const
|
|
15
|
+
const questroom_award_enum_1 = require("../enum/questroom-award.enum");
|
|
17
16
|
class CreateAwardDto {
|
|
18
17
|
}
|
|
19
18
|
__decorate([
|
|
20
|
-
(0,
|
|
19
|
+
(0, class_validator_1.IsEnum)(questroom_award_enum_1.QuestroomAwardEnum),
|
|
21
20
|
(0, class_transformer_1.Expose)(),
|
|
22
21
|
__metadata("design:type", String)
|
|
23
|
-
], CreateAwardDto.prototype, "
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
26
|
-
(0, class_transformer_1.Expose)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], CreateAwardDto.prototype, "type", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
31
|
-
(0, class_transformer_1.Expose)(),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], CreateAwardDto.prototype, "title", void 0);
|
|
22
|
+
], CreateAwardDto.prototype, "award", void 0);
|
|
34
23
|
__decorate([
|
|
35
24
|
(0, class_validator_1.IsPositive)(),
|
|
36
25
|
(0, class_transformer_1.Expose)(),
|
|
@@ -5,12 +5,16 @@ import { QuestroomTypeEnum } from './enum/questroom-type.enum';
|
|
|
5
5
|
declare class Locale {
|
|
6
6
|
language: Languages;
|
|
7
7
|
legend: string;
|
|
8
|
+
teaser: string;
|
|
8
9
|
importantInfo: string;
|
|
9
10
|
title: string;
|
|
10
11
|
}
|
|
12
|
+
declare class Mode {
|
|
13
|
+
title: string;
|
|
14
|
+
description: string;
|
|
15
|
+
}
|
|
11
16
|
export declare class CreateQuestroomDto {
|
|
12
17
|
title: string;
|
|
13
|
-
teaser: string;
|
|
14
18
|
playersMin: number;
|
|
15
19
|
playersMax: number;
|
|
16
20
|
scheduleRef: number;
|
|
@@ -33,8 +37,10 @@ export declare class CreateQuestroomDto {
|
|
|
33
37
|
disabledLanguages: Languages[];
|
|
34
38
|
questroomTags: TagsEnum[];
|
|
35
39
|
legend: string;
|
|
40
|
+
teaser: string;
|
|
36
41
|
importantInfo: string;
|
|
37
42
|
locales: Locale[];
|
|
43
|
+
modes: Mode[];
|
|
38
44
|
photoFrame: string;
|
|
39
45
|
}
|
|
40
46
|
export {};
|
|
@@ -14,6 +14,7 @@ exports.CreateQuestroomDto = void 0;
|
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
17
|
+
const tags_enum_1 = require("../shared/enum/tags.enum");
|
|
17
18
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
18
19
|
const questroom_actors_enum_1 = require("./enum/questroom-actors.enum");
|
|
19
20
|
const questroom_type_enum_1 = require("./enum/questroom-type.enum");
|
|
@@ -31,6 +32,12 @@ __decorate([
|
|
|
31
32
|
(0, class_validator_1.MaxLength)(3000),
|
|
32
33
|
__metadata("design:type", String)
|
|
33
34
|
], Locale.prototype, "legend", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Locale.prototype, "teaser", void 0);
|
|
34
41
|
__decorate([
|
|
35
42
|
(0, class_validator_1.IsOptional)(),
|
|
36
43
|
(0, class_transformer_1.Expose)(),
|
|
@@ -42,18 +49,26 @@ __decorate([
|
|
|
42
49
|
(0, class_transformer_1.Expose)(),
|
|
43
50
|
__metadata("design:type", String)
|
|
44
51
|
], Locale.prototype, "title", void 0);
|
|
45
|
-
class
|
|
52
|
+
class Mode {
|
|
46
53
|
}
|
|
47
54
|
__decorate([
|
|
48
55
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
49
56
|
(0, class_transformer_1.Expose)(),
|
|
50
57
|
__metadata("design:type", String)
|
|
51
|
-
],
|
|
58
|
+
], Mode.prototype, "title", void 0);
|
|
52
59
|
__decorate([
|
|
53
|
-
(0,
|
|
60
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
54
61
|
(0, class_transformer_1.Expose)(),
|
|
62
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
55
63
|
__metadata("design:type", String)
|
|
56
|
-
],
|
|
64
|
+
], Mode.prototype, "description", void 0);
|
|
65
|
+
class CreateQuestroomDto {
|
|
66
|
+
}
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
69
|
+
(0, class_transformer_1.Expose)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], CreateQuestroomDto.prototype, "title", void 0);
|
|
57
72
|
__decorate([
|
|
58
73
|
(0, class_validator_1.IsPositive)(),
|
|
59
74
|
(0, class_transformer_1.Expose)(),
|
|
@@ -181,7 +196,7 @@ __decorate([
|
|
|
181
196
|
(0, class_validator_1.IsArray)(),
|
|
182
197
|
(0, class_validator_1.ArrayMinSize)(1),
|
|
183
198
|
(0, class_validator_1.ArrayMaxSize)(6),
|
|
184
|
-
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
199
|
+
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [tags_enum_1.TagsEnum.ADVENTURE])),
|
|
185
200
|
(0, class_transformer_1.Expose)(),
|
|
186
201
|
__metadata("design:type", Array)
|
|
187
202
|
], CreateQuestroomDto.prototype, "questroomTags", void 0);
|
|
@@ -192,6 +207,12 @@ __decorate([
|
|
|
192
207
|
(0, class_validator_1.MaxLength)(3000),
|
|
193
208
|
__metadata("design:type", String)
|
|
194
209
|
], CreateQuestroomDto.prototype, "legend", void 0);
|
|
210
|
+
__decorate([
|
|
211
|
+
(0, class_validator_1.IsOptional)(),
|
|
212
|
+
(0, class_transformer_1.Expose)(),
|
|
213
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
214
|
+
__metadata("design:type", String)
|
|
215
|
+
], CreateQuestroomDto.prototype, "teaser", void 0);
|
|
195
216
|
__decorate([
|
|
196
217
|
(0, class_validator_1.IsOptional)(),
|
|
197
218
|
(0, class_transformer_1.Expose)(),
|
|
@@ -204,6 +225,13 @@ __decorate([
|
|
|
204
225
|
(0, class_transformer_1.Expose)(),
|
|
205
226
|
__metadata("design:type", Array)
|
|
206
227
|
], CreateQuestroomDto.prototype, "locales", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
(0, class_transformer_1.Type)(() => Mode),
|
|
230
|
+
(0, class_validator_1.ValidateNested)(),
|
|
231
|
+
(0, class_validator_1.IsArray)(),
|
|
232
|
+
(0, class_transformer_1.Expose)(),
|
|
233
|
+
__metadata("design:type", Array)
|
|
234
|
+
], CreateQuestroomDto.prototype, "modes", void 0);
|
|
207
235
|
__decorate([
|
|
208
236
|
(0, class_validator_1.IsOptional)(),
|
|
209
237
|
(0, class_transformer_1.Expose)(),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare enum QuestroomAwardEnum {
|
|
2
|
+
TRIP22 = "trip22",
|
|
3
|
+
TRIP23 = "trip23",
|
|
4
|
+
TRIP24 = "trip24",
|
|
5
|
+
MORTY22 = "morty22",
|
|
6
|
+
MORTY23 = "morty23",
|
|
7
|
+
MORTY24 = "morty24",
|
|
8
|
+
ESCAPE_GAME_AWARDS22 = "escape_game_awards_22",
|
|
9
|
+
ESCAPE_GAME_AWARDS23 = "escape_game_awards_23",
|
|
10
|
+
ESCAPE_GAME_AWARDS24 = "escape_game_awards_24",
|
|
11
|
+
TOP_ESCAPE_ROOM_PROJECT22 = "top_escape_room_project_22",
|
|
12
|
+
TOP_ESCAPE_ROOM_PROJECT23 = "top_escape_room_project_23",
|
|
13
|
+
TOP_ESCAPE_ROOM_PROJECT24 = "top_escape_room_project_24"
|
|
14
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.QuestroomAwardEnum = void 0;
|
|
4
|
+
var QuestroomAwardEnum;
|
|
5
|
+
(function (QuestroomAwardEnum) {
|
|
6
|
+
QuestroomAwardEnum["TRIP22"] = "trip22";
|
|
7
|
+
QuestroomAwardEnum["TRIP23"] = "trip23";
|
|
8
|
+
QuestroomAwardEnum["TRIP24"] = "trip24";
|
|
9
|
+
QuestroomAwardEnum["MORTY22"] = "morty22";
|
|
10
|
+
QuestroomAwardEnum["MORTY23"] = "morty23";
|
|
11
|
+
QuestroomAwardEnum["MORTY24"] = "morty24";
|
|
12
|
+
QuestroomAwardEnum["ESCAPE_GAME_AWARDS22"] = "escape_game_awards_22";
|
|
13
|
+
QuestroomAwardEnum["ESCAPE_GAME_AWARDS23"] = "escape_game_awards_23";
|
|
14
|
+
QuestroomAwardEnum["ESCAPE_GAME_AWARDS24"] = "escape_game_awards_24";
|
|
15
|
+
QuestroomAwardEnum["TOP_ESCAPE_ROOM_PROJECT22"] = "top_escape_room_project_22";
|
|
16
|
+
QuestroomAwardEnum["TOP_ESCAPE_ROOM_PROJECT23"] = "top_escape_room_project_23";
|
|
17
|
+
QuestroomAwardEnum["TOP_ESCAPE_ROOM_PROJECT24"] = "top_escape_room_project_24";
|
|
18
|
+
})(QuestroomAwardEnum = exports.QuestroomAwardEnum || (exports.QuestroomAwardEnum = {}));
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Languages } from '../shared/enum/languages.enum';
|
|
2
2
|
import { TagsEnum } from '../shared/enum/tags.enum';
|
|
3
3
|
import { RO } from '../shared/ro-class';
|
|
4
|
-
import { AwardRO } from './awards/award.ro';
|
|
5
4
|
import { QuestroomActorsEnum } from './enum/questroom-actors.enum';
|
|
5
|
+
import { QuestroomAwardEnum } from './enum/questroom-award.enum';
|
|
6
6
|
import { QuestroomIntegrationTypeEnum } from './enum/questroom-integration-type.enum';
|
|
7
7
|
import { QuestroomTypeEnum } from './enum/questroom-type.enum';
|
|
8
8
|
export declare class QuestroomAdminRO extends RO {
|
|
@@ -10,10 +10,9 @@ export declare class QuestroomAdminRO extends RO {
|
|
|
10
10
|
deletedAt?: Date;
|
|
11
11
|
title: string;
|
|
12
12
|
locationId: number;
|
|
13
|
-
teaser: string;
|
|
14
13
|
type: QuestroomTypeEnum;
|
|
15
14
|
difficult: number;
|
|
16
|
-
awards:
|
|
15
|
+
awards: QuestroomAwardEnum[];
|
|
17
16
|
minPrice: number;
|
|
18
17
|
maxPrice: number;
|
|
19
18
|
fear: number;
|
|
@@ -25,6 +24,7 @@ export declare class QuestroomAdminRO extends RO {
|
|
|
25
24
|
photo: string;
|
|
26
25
|
photos: string[];
|
|
27
26
|
legend: string;
|
|
27
|
+
teaser: string;
|
|
28
28
|
importantInfo: string;
|
|
29
29
|
sortPosition: number;
|
|
30
30
|
actors: QuestroomActorsEnum;
|
|
@@ -13,7 +13,6 @@ exports.QuestroomAdminRO = void 0;
|
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const ro_class_1 = require("../shared/ro-class");
|
|
16
|
-
const award_ro_1 = require("./awards/award.ro");
|
|
17
16
|
const questroom_actors_enum_1 = require("./enum/questroom-actors.enum");
|
|
18
17
|
const questroom_integration_type_enum_1 = require("./enum/questroom-integration-type.enum");
|
|
19
18
|
const questroom_type_enum_1 = require("./enum/questroom-type.enum");
|
|
@@ -35,10 +34,6 @@ __decorate([
|
|
|
35
34
|
(0, class_transformer_1.Expose)(),
|
|
36
35
|
__metadata("design:type", Number)
|
|
37
36
|
], QuestroomAdminRO.prototype, "locationId", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, class_transformer_1.Expose)(),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], QuestroomAdminRO.prototype, "teaser", void 0);
|
|
42
37
|
__decorate([
|
|
43
38
|
(0, class_transformer_1.Expose)(),
|
|
44
39
|
__metadata("design:type", String)
|
|
@@ -49,7 +44,6 @@ __decorate([
|
|
|
49
44
|
], QuestroomAdminRO.prototype, "difficult", void 0);
|
|
50
45
|
__decorate([
|
|
51
46
|
(0, class_transformer_1.Expose)(),
|
|
52
|
-
(0, class_transformer_1.Type)(() => award_ro_1.AwardRO),
|
|
53
47
|
__metadata("design:type", Array)
|
|
54
48
|
], QuestroomAdminRO.prototype, "awards", void 0);
|
|
55
49
|
__decorate([
|
|
@@ -96,6 +90,10 @@ __decorate([
|
|
|
96
90
|
(0, class_transformer_1.Expose)(),
|
|
97
91
|
__metadata("design:type", String)
|
|
98
92
|
], QuestroomAdminRO.prototype, "legend", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_transformer_1.Expose)(),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], QuestroomAdminRO.prototype, "teaser", void 0);
|
|
99
97
|
__decorate([
|
|
100
98
|
(0, class_transformer_1.Expose)(),
|
|
101
99
|
__metadata("design:type", String)
|
|
@@ -8,17 +8,22 @@ declare class Locale {
|
|
|
8
8
|
language: Languages;
|
|
9
9
|
title: string;
|
|
10
10
|
legend: string;
|
|
11
|
+
teaser: string;
|
|
11
12
|
importantInfo: string;
|
|
12
13
|
}
|
|
14
|
+
declare class Mode {
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
}
|
|
13
18
|
export declare class QuestroomRO extends RO {
|
|
14
19
|
profileId: number;
|
|
15
20
|
deletedAt?: Date;
|
|
16
21
|
title: string;
|
|
17
22
|
locationId: number;
|
|
18
|
-
teaser: string;
|
|
19
23
|
type: QuestroomTypeEnum;
|
|
20
24
|
difficult: number;
|
|
21
25
|
locales: Locale[];
|
|
26
|
+
modes: Mode[];
|
|
22
27
|
fear: number;
|
|
23
28
|
minAge: number;
|
|
24
29
|
time: number;
|
|
@@ -28,6 +33,7 @@ export declare class QuestroomRO extends RO {
|
|
|
28
33
|
photo: string;
|
|
29
34
|
photos: string[];
|
|
30
35
|
legend: string;
|
|
36
|
+
teaser: string;
|
|
31
37
|
importantInfo: string;
|
|
32
38
|
sortPosition: number;
|
|
33
39
|
actors: QuestroomActorsEnum;
|
|
@@ -31,10 +31,24 @@ __decorate([
|
|
|
31
31
|
(0, class_transformer_1.Expose)(),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], Locale.prototype, "legend", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], Locale.prototype, "teaser", void 0);
|
|
34
38
|
__decorate([
|
|
35
39
|
(0, class_transformer_1.Expose)(),
|
|
36
40
|
__metadata("design:type", String)
|
|
37
41
|
], Locale.prototype, "importantInfo", void 0);
|
|
42
|
+
class Mode {
|
|
43
|
+
}
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Mode.prototype, "title", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], Mode.prototype, "description", void 0);
|
|
38
52
|
class QuestroomRO extends ro_class_1.RO {
|
|
39
53
|
}
|
|
40
54
|
__decorate([
|
|
@@ -53,10 +67,6 @@ __decorate([
|
|
|
53
67
|
(0, class_transformer_1.Expose)(),
|
|
54
68
|
__metadata("design:type", Number)
|
|
55
69
|
], QuestroomRO.prototype, "locationId", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, class_transformer_1.Expose)(),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], QuestroomRO.prototype, "teaser", void 0);
|
|
60
70
|
__decorate([
|
|
61
71
|
(0, class_transformer_1.Expose)(),
|
|
62
72
|
__metadata("design:type", String)
|
|
@@ -70,6 +80,11 @@ __decorate([
|
|
|
70
80
|
(0, class_transformer_1.Type)(() => Locale),
|
|
71
81
|
__metadata("design:type", Array)
|
|
72
82
|
], QuestroomRO.prototype, "locales", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_transformer_1.Expose)(),
|
|
85
|
+
(0, class_transformer_1.Type)(() => Mode),
|
|
86
|
+
__metadata("design:type", Array)
|
|
87
|
+
], QuestroomRO.prototype, "modes", void 0);
|
|
73
88
|
__decorate([
|
|
74
89
|
(0, class_transformer_1.Expose)(),
|
|
75
90
|
__metadata("design:type", Number)
|
|
@@ -106,6 +121,10 @@ __decorate([
|
|
|
106
121
|
(0, class_transformer_1.Expose)(),
|
|
107
122
|
__metadata("design:type", String)
|
|
108
123
|
], QuestroomRO.prototype, "legend", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, class_transformer_1.Expose)(),
|
|
126
|
+
__metadata("design:type", String)
|
|
127
|
+
], QuestroomRO.prototype, "teaser", void 0);
|
|
109
128
|
__decorate([
|
|
110
129
|
(0, class_transformer_1.Expose)(),
|
|
111
130
|
__metadata("design:type", String)
|