@escapenavigator/types 1.10.164 → 1.10.165
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.
|
@@ -20,6 +20,17 @@ export declare class AgregatorQuestroomLocation {
|
|
|
20
20
|
*/
|
|
21
21
|
subwayLines?: SubwayLineRO[];
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* Минимальные данные организатора на карточке квеста — нужны
|
|
25
|
+
* исключительно для внутренней перелинковки (SSR-блок «Организаторы
|
|
26
|
+
* в городе» на странице города собирает уникальные компании из
|
|
27
|
+
* квестов и линкует на `/company/{slug}`). Полный профиль на карточке
|
|
28
|
+
* не отдаём — только slug + отображаемое название.
|
|
29
|
+
*/
|
|
30
|
+
export declare class AgregatorQuestroomCardProfile {
|
|
31
|
+
slug: string;
|
|
32
|
+
title: string;
|
|
33
|
+
}
|
|
23
34
|
export declare class AgregatorQuestroomCardRO {
|
|
24
35
|
id: number;
|
|
25
36
|
createdAt: Date;
|
|
@@ -45,4 +56,11 @@ export declare class AgregatorQuestroomCardRO {
|
|
|
45
56
|
hasSchedule?: boolean;
|
|
46
57
|
questroomAwardsCount: number;
|
|
47
58
|
location: AgregatorQuestroomLocation;
|
|
59
|
+
/**
|
|
60
|
+
* Организатор квеста (slug + название) для перелинковки на страницу
|
|
61
|
+
* компании. Заполняется, если endpoint грузит `relations: ['profile']`
|
|
62
|
+
* (см. `cityOtherQuestrooms`). Опционально — старые потребители карточки
|
|
63
|
+
* без этой связи продолжают работать.
|
|
64
|
+
*/
|
|
65
|
+
profile?: AgregatorQuestroomCardProfile;
|
|
48
66
|
}
|
|
@@ -9,7 +9,7 @@ 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
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.AgregatorQuestroomCardRO = exports.AgregatorQuestroomLocation = void 0;
|
|
12
|
+
exports.AgregatorQuestroomCardRO = exports.AgregatorQuestroomCardProfile = exports.AgregatorQuestroomLocation = void 0;
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const currency_by_country_1 = require("../constants/currency-by-country");
|
|
@@ -45,6 +45,24 @@ __decorate([
|
|
|
45
45
|
(0, class_transformer_1.Transform)(({ obj }) => { var _a, _b; return (_b = (_a = obj === null || obj === void 0 ? void 0 : obj.subwayStation) === null || _a === void 0 ? void 0 : _a.lines) !== null && _b !== void 0 ? _b : undefined; }),
|
|
46
46
|
__metadata("design:type", Array)
|
|
47
47
|
], AgregatorQuestroomLocation.prototype, "subwayLines", void 0);
|
|
48
|
+
/**
|
|
49
|
+
* Минимальные данные организатора на карточке квеста — нужны
|
|
50
|
+
* исключительно для внутренней перелинковки (SSR-блок «Организаторы
|
|
51
|
+
* в городе» на странице города собирает уникальные компании из
|
|
52
|
+
* квестов и линкует на `/company/{slug}`). Полный профиль на карточке
|
|
53
|
+
* не отдаём — только slug + отображаемое название.
|
|
54
|
+
*/
|
|
55
|
+
class AgregatorQuestroomCardProfile {
|
|
56
|
+
}
|
|
57
|
+
exports.AgregatorQuestroomCardProfile = AgregatorQuestroomCardProfile;
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], AgregatorQuestroomCardProfile.prototype, "slug", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_transformer_1.Expose)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], AgregatorQuestroomCardProfile.prototype, "title", void 0);
|
|
48
66
|
class AgregatorQuestroomCardRO {
|
|
49
67
|
}
|
|
50
68
|
exports.AgregatorQuestroomCardRO = AgregatorQuestroomCardRO;
|
|
@@ -169,3 +187,8 @@ __decorate([
|
|
|
169
187
|
(0, class_transformer_1.Type)(() => AgregatorQuestroomLocation),
|
|
170
188
|
__metadata("design:type", AgregatorQuestroomLocation)
|
|
171
189
|
], AgregatorQuestroomCardRO.prototype, "location", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, class_transformer_1.Expose)(),
|
|
192
|
+
(0, class_transformer_1.Type)(() => AgregatorQuestroomCardProfile),
|
|
193
|
+
__metadata("design:type", AgregatorQuestroomCardProfile)
|
|
194
|
+
], AgregatorQuestroomCardRO.prototype, "profile", void 0);
|