@escapenavigator/types 1.10.136 → 1.10.138
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-define-city.ro.d.ts +1 -0
- package/dist/agregator/agregator-define-city.ro.js +4 -0
- package/dist/agregator/agregator-questroom-card.ro.js +1 -0
- package/dist/agregator/map/query-locations-for-map.dto.d.ts +30 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -27,3 +27,7 @@ __decorate([
|
|
|
27
27
|
(0, class_transformer_1.Expose)(),
|
|
28
28
|
__metadata("design:type", String)
|
|
29
29
|
], AgregatorDefineCityRO.prototype, "slug", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], AgregatorDefineCityRO.prototype, "title", void 0);
|
|
@@ -110,6 +110,7 @@ __decorate([
|
|
|
110
110
|
], AgregatorQuestroomCardRO.prototype, "reviewsCount", void 0);
|
|
111
111
|
__decorate([
|
|
112
112
|
(0, class_transformer_1.Expose)(),
|
|
113
|
+
(0, class_transformer_1.Transform)(({ obj }) => { var _a; return (_a = obj.mainPhoto) !== null && _a !== void 0 ? _a : obj.photo; }),
|
|
113
114
|
__metadata("design:type", String)
|
|
114
115
|
], AgregatorQuestroomCardRO.prototype, "photo", void 0);
|
|
115
116
|
__decorate([
|
|
@@ -1,8 +1,35 @@
|
|
|
1
1
|
import { QuestroomTypeEnum } from '../../questroom/enum/questroom-type.enum';
|
|
2
2
|
import { TagsEnum, TechTagsEnum } from '../../shared/enum/tags.enum';
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
/** Difficulty buckets: beginner 1–2, medium 3–4, hard 5–6 (difficult is 1–6). */
|
|
4
|
+
export type DifficultyFilter = 'beginner' | 'medium' | 'hard';
|
|
5
|
+
/** Fear buckets: none =1, mystic 2–3, scary 4–5 (fear is 1–5). */
|
|
6
|
+
export type FearFilter = 'none' | 'mystic' | 'scary';
|
|
7
|
+
/**
|
|
8
|
+
* Shared browse filters for the aggregator catalog. Applied in a single
|
|
9
|
+
* place (`QuestroomSearchService.questroomsSubquery`) so map, map page and
|
|
10
|
+
* list view stay consistent. Within a group conditions are OR'd, between
|
|
11
|
+
* groups AND'd.
|
|
12
|
+
*/
|
|
13
|
+
export type QuestroomBrowseFiltersDTO = {
|
|
14
|
+
/** Legacy single type (kept for back-compat with marketing cards). */
|
|
5
15
|
type?: QuestroomTypeEnum;
|
|
6
|
-
|
|
16
|
+
/** Legacy single tech tag (marketing cards / popular tags). */
|
|
7
17
|
techTag?: TechTagsEnum;
|
|
18
|
+
/** Theme tags — questroom matches any (`questroomTags && ARRAY[...]`). */
|
|
19
|
+
questroomTags?: TagsEnum[];
|
|
20
|
+
/** Multi-select quest formats (OR). */
|
|
21
|
+
types?: QuestroomTypeEnum[];
|
|
22
|
+
/** Difficulty buckets (OR). */
|
|
23
|
+
difficulties?: DifficultyFilter[];
|
|
24
|
+
/** Fear buckets (OR). */
|
|
25
|
+
fears?: FearFilter[];
|
|
26
|
+
/** Only quests played with actors (`actors <> 'no'`). */
|
|
27
|
+
withActors?: boolean;
|
|
28
|
+
/** Player counts (OR). `7` means «7 and more». */
|
|
29
|
+
players?: number[];
|
|
30
|
+
/** Age bucket lower bounds (OR): 6,8,10,12,14,16,18 (`18` means 18+). */
|
|
31
|
+
ages?: number[];
|
|
8
32
|
};
|
|
33
|
+
export type QueryLocationsForMapDTO = {
|
|
34
|
+
center: string;
|
|
35
|
+
} & QuestroomBrowseFiltersDTO;
|