@escapenavigator/types 1.8.7 → 1.8.9
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/forms/widget/widget-players-form.dto.d.ts +1 -0
- package/dist/forms/widget/widget-players-form.dto.js +5 -0
- package/dist/location/create-location.dto.js +4 -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/create-questroom.dto.d.ts +7 -1
- package/dist/questroom/create-questroom.dto.js +37 -5
- package/dist/questroom/questroom-admin.ro.d.ts +1 -1
- package/dist/questroom/questroom-admin.ro.js +4 -4
- package/dist/questroom/questroom.ro.d.ts +7 -1
- package/dist/questroom/questroom.ro.js +23 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -25,11 +25,13 @@ __decorate([
|
|
|
25
25
|
], Locale.prototype, "language", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
28
29
|
(0, class_transformer_1.Expose)(),
|
|
29
30
|
__metadata("design:type", String)
|
|
30
31
|
], Locale.prototype, "howToFind", void 0);
|
|
31
32
|
__decorate([
|
|
32
33
|
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
33
35
|
(0, class_transformer_1.Expose)(),
|
|
34
36
|
__metadata("design:type", String)
|
|
35
37
|
], Locale.prototype, "prepareText", void 0);
|
|
@@ -58,11 +60,13 @@ __decorate([
|
|
|
58
60
|
__decorate([
|
|
59
61
|
(0, class_validator_1.IsOptional)(),
|
|
60
62
|
(0, class_validator_1.IsString)(),
|
|
63
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
61
64
|
(0, class_transformer_1.Expose)(),
|
|
62
65
|
__metadata("design:type", String)
|
|
63
66
|
], CreateLocationDto.prototype, "howToFind", void 0);
|
|
64
67
|
__decorate([
|
|
65
68
|
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
66
70
|
(0, class_transformer_1.Expose)(),
|
|
67
71
|
__metadata("design:type", String)
|
|
68
72
|
], CreateLocationDto.prototype, "prepareText", void 0);
|
|
@@ -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)
|
|
@@ -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");
|
|
@@ -28,11 +29,19 @@ __decorate([
|
|
|
28
29
|
__decorate([
|
|
29
30
|
(0, class_validator_1.IsOptional)(),
|
|
30
31
|
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.MaxLength)(3000),
|
|
31
33
|
__metadata("design:type", String)
|
|
32
34
|
], Locale.prototype, "legend", void 0);
|
|
33
35
|
__decorate([
|
|
34
36
|
(0, class_validator_1.IsOptional)(),
|
|
35
37
|
(0, class_transformer_1.Expose)(),
|
|
38
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], Locale.prototype, "teaser", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
36
45
|
__metadata("design:type", String)
|
|
37
46
|
], Locale.prototype, "importantInfo", void 0);
|
|
38
47
|
__decorate([
|
|
@@ -40,18 +49,26 @@ __decorate([
|
|
|
40
49
|
(0, class_transformer_1.Expose)(),
|
|
41
50
|
__metadata("design:type", String)
|
|
42
51
|
], Locale.prototype, "title", void 0);
|
|
43
|
-
class
|
|
52
|
+
class Mode {
|
|
44
53
|
}
|
|
45
54
|
__decorate([
|
|
46
55
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
47
56
|
(0, class_transformer_1.Expose)(),
|
|
48
57
|
__metadata("design:type", String)
|
|
49
|
-
],
|
|
58
|
+
], Mode.prototype, "title", void 0);
|
|
50
59
|
__decorate([
|
|
51
|
-
(0,
|
|
60
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
52
61
|
(0, class_transformer_1.Expose)(),
|
|
62
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
53
63
|
__metadata("design:type", String)
|
|
54
|
-
],
|
|
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);
|
|
55
72
|
__decorate([
|
|
56
73
|
(0, class_validator_1.IsPositive)(),
|
|
57
74
|
(0, class_transformer_1.Expose)(),
|
|
@@ -179,7 +196,7 @@ __decorate([
|
|
|
179
196
|
(0, class_validator_1.IsArray)(),
|
|
180
197
|
(0, class_validator_1.ArrayMinSize)(1),
|
|
181
198
|
(0, class_validator_1.ArrayMaxSize)(6),
|
|
182
|
-
(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])),
|
|
183
200
|
(0, class_transformer_1.Expose)(),
|
|
184
201
|
__metadata("design:type", Array)
|
|
185
202
|
], CreateQuestroomDto.prototype, "questroomTags", void 0);
|
|
@@ -187,11 +204,19 @@ __decorate([
|
|
|
187
204
|
(0, class_validator_1.ValidateIf)((o) => !o.closed),
|
|
188
205
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
189
206
|
(0, class_transformer_1.Expose)(),
|
|
207
|
+
(0, class_validator_1.MaxLength)(3000),
|
|
190
208
|
__metadata("design:type", String)
|
|
191
209
|
], CreateQuestroomDto.prototype, "legend", void 0);
|
|
192
210
|
__decorate([
|
|
193
211
|
(0, class_validator_1.IsOptional)(),
|
|
194
212
|
(0, class_transformer_1.Expose)(),
|
|
213
|
+
(0, class_validator_1.MaxLength)(1000),
|
|
214
|
+
__metadata("design:type", String)
|
|
215
|
+
], CreateQuestroomDto.prototype, "teaser", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, class_validator_1.IsOptional)(),
|
|
218
|
+
(0, class_transformer_1.Expose)(),
|
|
219
|
+
(0, class_validator_1.MaxLength)(2000),
|
|
195
220
|
__metadata("design:type", String)
|
|
196
221
|
], CreateQuestroomDto.prototype, "importantInfo", void 0);
|
|
197
222
|
__decorate([
|
|
@@ -200,6 +225,13 @@ __decorate([
|
|
|
200
225
|
(0, class_transformer_1.Expose)(),
|
|
201
226
|
__metadata("design:type", Array)
|
|
202
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);
|
|
203
235
|
__decorate([
|
|
204
236
|
(0, class_validator_1.IsOptional)(),
|
|
205
237
|
(0, class_transformer_1.Expose)(),
|
|
@@ -10,7 +10,6 @@ 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
15
|
awards: AwardRO[];
|
|
@@ -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;
|
|
@@ -35,10 +35,6 @@ __decorate([
|
|
|
35
35
|
(0, class_transformer_1.Expose)(),
|
|
36
36
|
__metadata("design:type", Number)
|
|
37
37
|
], 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
38
|
__decorate([
|
|
43
39
|
(0, class_transformer_1.Expose)(),
|
|
44
40
|
__metadata("design:type", String)
|
|
@@ -96,6 +92,10 @@ __decorate([
|
|
|
96
92
|
(0, class_transformer_1.Expose)(),
|
|
97
93
|
__metadata("design:type", String)
|
|
98
94
|
], QuestroomAdminRO.prototype, "legend", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, class_transformer_1.Expose)(),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], QuestroomAdminRO.prototype, "teaser", void 0);
|
|
99
99
|
__decorate([
|
|
100
100
|
(0, class_transformer_1.Expose)(),
|
|
101
101
|
__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)
|