@escapenavigator/types 2.0.31 → 2.0.32
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/parse-results/parse-result-payload.d.ts +30 -2
- package/dist/parse-results/parse-result.ro.d.ts +3 -0
- package/dist/parse-results/parse-result.ro.js +9 -0
- package/dist/questroom/create-questroom-admin.dto.js +5 -4
- package/dist/questroom/create-questroom.dto.js +5 -4
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
|
|
2
|
+
import { TagsEnum } from '../shared/enum/tags.enum';
|
|
2
3
|
/** Кандидат матча для модератора (локация или квест). */
|
|
3
4
|
export type ParseMatchCandidate = {
|
|
4
5
|
id: number;
|
|
@@ -14,12 +15,27 @@ export type ParsedQuest = {
|
|
|
14
15
|
playersMax?: number;
|
|
15
16
|
/** Длительность, минуты. */
|
|
16
17
|
time?: number;
|
|
17
|
-
/** Сложность 1-6. */
|
|
18
|
+
/** Сложность 1-6 (после пересчёта из шкалы сайта). */
|
|
18
19
|
difficult?: number;
|
|
19
|
-
/**
|
|
20
|
+
/** Оценка сложности как она указана на сайте (например 4 из 5). */
|
|
21
|
+
difficultRaw?: number;
|
|
22
|
+
/** Максимум шкалы сложности сайта (5 в примере выше). */
|
|
23
|
+
difficultScale?: number;
|
|
24
|
+
/** Страх 1-5 (после пересчёта из шкалы сайта). */
|
|
20
25
|
fear?: number;
|
|
26
|
+
/** Оценка «страшности» как она указана на сайте. */
|
|
27
|
+
fearRaw?: number;
|
|
28
|
+
/** Максимум шкалы страха сайта. */
|
|
29
|
+
fearScale?: number;
|
|
30
|
+
/** Возраст, приведённый к разрешённым в форме значениям. */
|
|
21
31
|
minAge?: number;
|
|
32
|
+
/** Возраст, как он написан на сайте (до приведения к лестнице). */
|
|
33
|
+
minAgeRaw?: number;
|
|
22
34
|
type?: QuestroomTypeEnum;
|
|
35
|
+
/** Тематические теги квеста. */
|
|
36
|
+
tags?: TagsEnum[];
|
|
37
|
+
/** Важная информация для посетителей (ограничения, что взять с собой). */
|
|
38
|
+
importantInfo?: string;
|
|
23
39
|
/** URL фото с сайта-источника (в S3 загружаются при применении). */
|
|
24
40
|
photos?: string[];
|
|
25
41
|
/** URL страницы квеста. */
|
|
@@ -33,6 +49,12 @@ export type ParsedQuest = {
|
|
|
33
49
|
};
|
|
34
50
|
export type ParsedLocation = {
|
|
35
51
|
address: string;
|
|
52
|
+
/**
|
|
53
|
+
* Город площадки. У сетевых компаний адрес на городской подстранице часто
|
|
54
|
+
* написан без города, а без него геокодер уводит локацию в другой город.
|
|
55
|
+
*/
|
|
56
|
+
city?: string;
|
|
57
|
+
postalCode?: string;
|
|
36
58
|
phone?: string;
|
|
37
59
|
/** ID существующей локации, если сматчена по координатам/адресу. */
|
|
38
60
|
matchedLocationId?: number;
|
|
@@ -61,6 +83,12 @@ export type ParseDiffOperation = {
|
|
|
61
83
|
from: unknown;
|
|
62
84
|
to: unknown;
|
|
63
85
|
}>;
|
|
86
|
+
/**
|
|
87
|
+
* Поля из changes, которые применять не нужно. Переименование квеста и
|
|
88
|
+
* замена легенды попадают сюда сразу: это подсказка модератору, а не
|
|
89
|
+
* автоматическое действие.
|
|
90
|
+
*/
|
|
91
|
+
excludedFields?: string[];
|
|
64
92
|
/** Исключена модератором из Apply. */
|
|
65
93
|
excluded?: boolean;
|
|
66
94
|
/** Score матча (если применимо). */
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
1
2
|
import { ParseDiffOperation, ParseResultPayload } from './parse-result-payload';
|
|
2
3
|
import { ParseResultSourceEnum } from './parse-result-source.enum';
|
|
3
4
|
import { ParseResultStatusEnum } from './parse-result-status.enum';
|
|
@@ -5,6 +6,8 @@ declare class ParseResultProfile {
|
|
|
5
6
|
id: number;
|
|
6
7
|
title: string;
|
|
7
8
|
site: string;
|
|
9
|
+
country: CountriesEnum;
|
|
10
|
+
mainEmail: string;
|
|
8
11
|
}
|
|
9
12
|
export declare class ParseResultRO {
|
|
10
13
|
id: number;
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.ParseResultRO = void 0;
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
15
16
|
const parse_result_source_enum_1 = require("./parse-result-source.enum");
|
|
16
17
|
const parse_result_status_enum_1 = require("./parse-result-status.enum");
|
|
17
18
|
class ParseResultProfile {
|
|
@@ -28,6 +29,14 @@ __decorate([
|
|
|
28
29
|
(0, class_transformer_1.Expose)(),
|
|
29
30
|
__metadata("design:type", String)
|
|
30
31
|
], ParseResultProfile.prototype, "site", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], ParseResultProfile.prototype, "country", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], ParseResultProfile.prototype, "mainEmail", void 0);
|
|
31
40
|
class ParseResultRO {
|
|
32
41
|
}
|
|
33
42
|
exports.ParseResultRO = ParseResultRO;
|
|
@@ -87,7 +87,7 @@ __decorate([
|
|
|
87
87
|
(0, class_validator_1.IsPositive)(),
|
|
88
88
|
(0, class_validator_1.Max)(6),
|
|
89
89
|
(0, class_validator_1.Min)(1),
|
|
90
|
-
(0, class_transformer_1.Transform)(({ value }) => value
|
|
90
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : 6),
|
|
91
91
|
(0, class_transformer_1.Expose)(),
|
|
92
92
|
__metadata("design:type", Number)
|
|
93
93
|
], CreateQuestroomAdminDto.prototype, "difficult", void 0);
|
|
@@ -96,21 +96,22 @@ __decorate([
|
|
|
96
96
|
(0, class_validator_1.IsPositive)(),
|
|
97
97
|
(0, class_validator_1.Max)(5),
|
|
98
98
|
(0, class_validator_1.Min)(1),
|
|
99
|
-
(0, class_transformer_1.Transform)(({ value }) => value
|
|
99
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : 1),
|
|
100
100
|
(0, class_transformer_1.Expose)(),
|
|
101
101
|
__metadata("design:type", Number)
|
|
102
102
|
], CreateQuestroomAdminDto.prototype, "fear", void 0);
|
|
103
103
|
__decorate([
|
|
104
104
|
(0, class_validator_1.ValidateIf)(lounge_questroom_1.isClassicQuestroomFieldsRequired),
|
|
105
105
|
(0, class_validator_1.IsInt)(),
|
|
106
|
-
(0,
|
|
106
|
+
(0, class_validator_1.Min)(0),
|
|
107
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : 12),
|
|
107
108
|
(0, class_transformer_1.Expose)(),
|
|
108
109
|
__metadata("design:type", Number)
|
|
109
110
|
], CreateQuestroomAdminDto.prototype, "minAge", void 0);
|
|
110
111
|
__decorate([
|
|
111
112
|
(0, class_validator_1.ValidateIf)(lounge_questroom_1.isClassicQuestroomFieldsRequired),
|
|
112
113
|
(0, class_validator_1.IsPositive)(),
|
|
113
|
-
(0, class_transformer_1.Transform)(({ value }) => value
|
|
114
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : 60),
|
|
114
115
|
(0, class_transformer_1.Expose)(),
|
|
115
116
|
__metadata("design:type", Number)
|
|
116
117
|
], CreateQuestroomAdminDto.prototype, "time", void 0);
|
|
@@ -122,7 +122,7 @@ __decorate([
|
|
|
122
122
|
(0, class_validator_1.IsPositive)(),
|
|
123
123
|
(0, class_validator_1.Max)(6),
|
|
124
124
|
(0, class_validator_1.Min)(1),
|
|
125
|
-
(0, class_transformer_1.Transform)(({ value }) => value
|
|
125
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : 6),
|
|
126
126
|
(0, class_transformer_1.Expose)(),
|
|
127
127
|
__metadata("design:type", Number)
|
|
128
128
|
], CreateQuestroomDto.prototype, "difficult", void 0);
|
|
@@ -131,14 +131,15 @@ __decorate([
|
|
|
131
131
|
(0, class_validator_1.IsPositive)(),
|
|
132
132
|
(0, class_validator_1.Max)(5),
|
|
133
133
|
(0, class_validator_1.Min)(1),
|
|
134
|
-
(0, class_transformer_1.Transform)(({ value }) => value
|
|
134
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : 1),
|
|
135
135
|
(0, class_transformer_1.Expose)(),
|
|
136
136
|
__metadata("design:type", Number)
|
|
137
137
|
], CreateQuestroomDto.prototype, "fear", void 0);
|
|
138
138
|
__decorate([
|
|
139
139
|
(0, class_validator_1.ValidateIf)(lounge_questroom_1.isClassicQuestroomFieldsRequired),
|
|
140
140
|
(0, class_validator_1.IsInt)(),
|
|
141
|
-
(0,
|
|
141
|
+
(0, class_validator_1.Min)(0),
|
|
142
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : 12),
|
|
142
143
|
(0, class_transformer_1.Expose)(),
|
|
143
144
|
__metadata("design:type", Number)
|
|
144
145
|
], CreateQuestroomDto.prototype, "minAge", void 0);
|
|
@@ -194,7 +195,7 @@ __decorate([
|
|
|
194
195
|
__decorate([
|
|
195
196
|
(0, class_validator_1.ValidateIf)(lounge_questroom_1.isClassicQuestroomFieldsRequired),
|
|
196
197
|
(0, class_validator_1.IsPositive)(),
|
|
197
|
-
(0, class_transformer_1.Transform)(({ value }) => value
|
|
198
|
+
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : 60),
|
|
198
199
|
(0, class_transformer_1.Expose)(),
|
|
199
200
|
__metadata("design:type", Number)
|
|
200
201
|
], CreateQuestroomDto.prototype, "time", void 0);
|