@escapenavigator/types 1.10.165 → 1.10.166
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 +0 -18
- package/dist/agregator/agregator-questroom-card.ro.js +1 -24
- package/dist/agregator/agregator-questrooms-and-cities.ro.d.ts +18 -0
- package/dist/agregator/agregator-questrooms-and-cities.ro.js +25 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -20,17 +20,6 @@ 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
|
-
}
|
|
34
23
|
export declare class AgregatorQuestroomCardRO {
|
|
35
24
|
id: number;
|
|
36
25
|
createdAt: Date;
|
|
@@ -56,11 +45,4 @@ export declare class AgregatorQuestroomCardRO {
|
|
|
56
45
|
hasSchedule?: boolean;
|
|
57
46
|
questroomAwardsCount: number;
|
|
58
47
|
location: AgregatorQuestroomLocation;
|
|
59
|
-
/**
|
|
60
|
-
* Организатор квеста (slug + название) для перелинковки на страницу
|
|
61
|
-
* компании. Заполняется, если endpoint грузит `relations: ['profile']`
|
|
62
|
-
* (см. `cityOtherQuestrooms`). Опционально — старые потребители карточки
|
|
63
|
-
* без этой связи продолжают работать.
|
|
64
|
-
*/
|
|
65
|
-
profile?: AgregatorQuestroomCardProfile;
|
|
66
48
|
}
|
|
@@ -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.
|
|
12
|
+
exports.AgregatorQuestroomCardRO = 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,24 +45,6 @@ __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);
|
|
66
48
|
class AgregatorQuestroomCardRO {
|
|
67
49
|
}
|
|
68
50
|
exports.AgregatorQuestroomCardRO = AgregatorQuestroomCardRO;
|
|
@@ -187,8 +169,3 @@ __decorate([
|
|
|
187
169
|
(0, class_transformer_1.Type)(() => AgregatorQuestroomLocation),
|
|
188
170
|
__metadata("design:type", AgregatorQuestroomLocation)
|
|
189
171
|
], 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);
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
import { AgregatorCityRO } from './agregator-city.ro';
|
|
2
2
|
import { AgregatorQuestroomCardRO } from './agregator-questroom-card.ro';
|
|
3
|
+
/**
|
|
4
|
+
* Организатор города (slug + название) для блока перелинковки
|
|
5
|
+
* «Организаторы в городе» на странице города. Дедуплицированный
|
|
6
|
+
* список — компания встречается один раз независимо от числа её
|
|
7
|
+
* квестов (в городе 200 квестов ≈ 30–60 компаний), поэтому держим
|
|
8
|
+
* его отдельным полем, а не дублируем `profile` в каждой карточке
|
|
9
|
+
* (карточка отдаётся ещё и горячим viewport-endpoint'ом карты).
|
|
10
|
+
*/
|
|
11
|
+
export declare class AgregatorCityCompanyRO {
|
|
12
|
+
slug: string;
|
|
13
|
+
title: string;
|
|
14
|
+
}
|
|
3
15
|
export declare class AgregatorQuestroomsAndCitiesRO {
|
|
4
16
|
city: AgregatorCityRO;
|
|
5
17
|
questrooms: AgregatorQuestroomCardRO[];
|
|
18
|
+
/**
|
|
19
|
+
* Уникальные организаторы города. Заполняется только для главного
|
|
20
|
+
* города ответа (для соседних — не нужен). Считается на бэке из уже
|
|
21
|
+
* загруженного `relations: ['profile']`, доп. запросов нет.
|
|
22
|
+
*/
|
|
23
|
+
companies?: AgregatorCityCompanyRO[];
|
|
6
24
|
}
|
|
@@ -9,10 +9,29 @@ 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.AgregatorQuestroomsAndCitiesRO = void 0;
|
|
12
|
+
exports.AgregatorQuestroomsAndCitiesRO = exports.AgregatorCityCompanyRO = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const agregator_city_ro_1 = require("./agregator-city.ro");
|
|
15
15
|
const agregator_questroom_card_ro_1 = require("./agregator-questroom-card.ro");
|
|
16
|
+
/**
|
|
17
|
+
* Организатор города (slug + название) для блока перелинковки
|
|
18
|
+
* «Организаторы в городе» на странице города. Дедуплицированный
|
|
19
|
+
* список — компания встречается один раз независимо от числа её
|
|
20
|
+
* квестов (в городе 200 квестов ≈ 30–60 компаний), поэтому держим
|
|
21
|
+
* его отдельным полем, а не дублируем `profile` в каждой карточке
|
|
22
|
+
* (карточка отдаётся ещё и горячим viewport-endpoint'ом карты).
|
|
23
|
+
*/
|
|
24
|
+
class AgregatorCityCompanyRO {
|
|
25
|
+
}
|
|
26
|
+
exports.AgregatorCityCompanyRO = AgregatorCityCompanyRO;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], AgregatorCityCompanyRO.prototype, "slug", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], AgregatorCityCompanyRO.prototype, "title", void 0);
|
|
16
35
|
class AgregatorQuestroomsAndCitiesRO {
|
|
17
36
|
}
|
|
18
37
|
exports.AgregatorQuestroomsAndCitiesRO = AgregatorQuestroomsAndCitiesRO;
|
|
@@ -26,3 +45,8 @@ __decorate([
|
|
|
26
45
|
(0, class_transformer_1.Type)(() => agregator_questroom_card_ro_1.AgregatorQuestroomCardRO),
|
|
27
46
|
__metadata("design:type", Array)
|
|
28
47
|
], AgregatorQuestroomsAndCitiesRO.prototype, "questrooms", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
(0, class_transformer_1.Type)(() => AgregatorCityCompanyRO),
|
|
51
|
+
__metadata("design:type", Array)
|
|
52
|
+
], AgregatorQuestroomsAndCitiesRO.prototype, "companies", void 0);
|