@escapenavigator/types 2.0.13 → 2.0.15
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/city-attraction/attraction-content-languages.d.ts +5 -0
- package/dist/city-attraction/attraction-content-languages.js +14 -0
- package/dist/city-attraction/attraction-content-prompt-version.d.ts +1 -0
- package/dist/city-attraction/attraction-content-prompt-version.js +5 -0
- package/dist/city-attraction/attraction-content.d.ts +24 -0
- package/dist/city-attraction/attraction-route-meta.d.ts +21 -0
- package/dist/city-attraction/attraction-triage.d.ts +29 -0
- package/dist/city-attraction/attraction-triage.js +41 -0
- package/dist/city-attraction/city-attraction-artifact.ro.d.ts +19 -0
- package/dist/city-attraction/city-attraction-artifact.ro.js +2 -0
- package/dist/city-attraction/city-attraction-locale.ro.d.ts +15 -0
- package/dist/city-attraction/city-attraction-locale.ro.js +2 -0
- package/dist/city-attraction/city-attraction.ro.d.ts +49 -0
- package/dist/city-attraction/city-attraction.ro.js +2 -0
- package/dist/city-attraction/create-city-attraction.dto.d.ts +40 -0
- package/dist/city-attraction/create-city-attraction.dto.js +215 -0
- package/dist/city-attraction/enum/attraction-artifact-kind.enum.d.ts +13 -0
- package/dist/city-attraction/enum/attraction-artifact-kind.enum.js +17 -0
- package/dist/city-attraction/enum/attraction-category.enum.d.ts +21 -0
- package/dist/city-attraction/enum/attraction-category.enum.js +25 -0
- package/dist/city-attraction/enum/attraction-fame.enum.d.ts +10 -0
- package/dist/city-attraction/enum/attraction-fame.enum.js +14 -0
- package/dist/city-attraction/enum/attraction-fun-fact-kind.enum.d.ts +4 -0
- package/dist/city-attraction/enum/attraction-fun-fact-kind.enum.js +8 -0
- package/dist/city-attraction/enum/attraction-indoor-outdoor.enum.d.ts +5 -0
- package/dist/city-attraction/enum/attraction-indoor-outdoor.enum.js +9 -0
- package/dist/city-attraction/enum/attraction-locale-status.enum.d.ts +11 -0
- package/dist/city-attraction/enum/attraction-locale-status.enum.js +15 -0
- package/dist/city-attraction/enum/attraction-review-status.enum.d.ts +10 -0
- package/dist/city-attraction/enum/attraction-review-status.enum.js +14 -0
- package/dist/city-attraction/enum/attraction-route-role.enum.d.ts +11 -0
- package/dist/city-attraction/enum/attraction-route-role.enum.js +15 -0
- package/dist/city-attraction/enum/attraction-source.enum.d.ts +12 -0
- package/dist/city-attraction/enum/attraction-source.enum.js +16 -0
- package/dist/city-attraction/moderate-city-attraction.dto.d.ts +5 -0
- package/dist/{partners-portal/admin/admin-moderate-portal-story.dto.js → city-attraction/moderate-city-attraction.dto.js} +7 -13
- package/dist/city-attraction/update-city-attraction.dto.d.ts +5 -0
- package/dist/city-attraction/update-city-attraction.dto.js +8 -0
- package/dist/city-attraction/upsert-city-attraction-artifact.dto.d.ts +19 -0
- package/dist/city-attraction/upsert-city-attraction-artifact.dto.js +104 -0
- package/dist/city-attraction/upsert-city-attraction-locale.dto.d.ts +14 -0
- package/dist/city-attraction/upsert-city-attraction-locale.dto.js +62 -0
- package/dist/city-person/city-person-attraction-link.dto.d.ts +12 -0
- package/dist/city-person/city-person-attraction-link.dto.js +61 -0
- package/dist/city-person/city-person-attraction-link.ro.d.ts +15 -0
- package/dist/city-person/city-person-attraction-link.ro.js +2 -0
- package/dist/city-person/city-person-locale.ro.d.ts +15 -0
- package/dist/city-person/city-person-locale.ro.js +2 -0
- package/dist/city-person/city-person.ro.d.ts +31 -0
- package/dist/city-person/city-person.ro.js +2 -0
- package/dist/city-person/create-city-person.dto.d.ts +24 -0
- package/dist/city-person/create-city-person.dto.js +128 -0
- package/dist/city-person/enum/person-attraction-role.enum.d.ts +8 -0
- package/dist/city-person/enum/person-attraction-role.enum.js +12 -0
- package/dist/city-person/enum/person-domain.enum.d.ts +5 -0
- package/dist/city-person/enum/person-domain.enum.js +9 -0
- package/dist/city-person/enum/person-fact-kind.enum.d.ts +7 -0
- package/dist/city-person/enum/person-fact-kind.enum.js +11 -0
- package/dist/city-person/enum/person-locale-status.enum.d.ts +8 -0
- package/dist/city-person/enum/person-locale-status.enum.js +12 -0
- package/dist/city-person/enum/person-occupation.enum.d.ts +21 -0
- package/dist/city-person/enum/person-occupation.enum.js +25 -0
- package/dist/city-person/enum/person-source.enum.d.ts +7 -0
- package/dist/city-person/enum/person-source.enum.js +11 -0
- package/dist/city-person/person-attraction-facts.d.ts +3 -0
- package/dist/city-person/person-attraction-facts.js +2 -0
- package/dist/city-person/person-content-languages.d.ts +5 -0
- package/dist/city-person/person-content-languages.js +14 -0
- package/dist/city-person/person-content-prompt-version.d.ts +2 -0
- package/dist/city-person/person-content-prompt-version.js +5 -0
- package/dist/city-person/person-locale-fact.d.ts +7 -0
- package/dist/city-person/person-locale-fact.js +2 -0
- package/dist/city-person/update-city-person.dto.d.ts +5 -0
- package/dist/city-person/update-city-person.dto.js +8 -0
- package/dist/city-person/upsert-city-person-locale.dto.d.ts +21 -0
- package/dist/{partners-portal/create-portal-story.dto.js → city-person/upsert-city-person-locale.dto.js} +35 -32
- package/dist/city-person/wikidata-autolink.d.ts +23 -0
- package/dist/city-person/wikidata-autolink.js +23 -0
- package/dist/city-quest/city-quest-content.d.ts +19 -5
- package/dist/city-quest/city-quest-locale-content.d.ts +35 -0
- package/dist/city-quest/city-quest-locale-content.js +2 -0
- package/dist/city-quest/city-quest-locale.ro.d.ts +12 -0
- package/dist/city-quest/city-quest-locale.ro.js +2 -0
- package/dist/city-quest/city-quest.ro.d.ts +11 -4
- package/dist/city-quest/city-quest.ro.js +17 -1
- package/dist/city-quest/enum/city-quest-locale-status.enum.d.ts +11 -0
- package/dist/city-quest/enum/city-quest-locale-status.enum.js +15 -0
- package/dist/city-quest/enum/city-quest-status.enum.d.ts +10 -5
- package/dist/city-quest/enum/city-quest-status.enum.js +9 -4
- package/dist/city-quest/quest-content-languages.d.ts +5 -0
- package/dist/city-quest/quest-content-languages.js +14 -0
- package/dist/city-quest/update-city-quest-content.dto.d.ts +5 -0
- package/dist/city-quest/update-city-quest-content.dto.js +23 -0
- package/dist/city-quest/update-city-quest-stop.dto.d.ts +9 -0
- package/dist/city-quest/update-city-quest-stop.dto.js +45 -0
- package/dist/city-quest/update-city-quest.dto.d.ts +6 -1
- package/dist/city-quest/update-city-quest.dto.js +12 -0
- package/dist/city-quest/upsert-city-quest-locale.dto.d.ts +10 -0
- package/dist/{partners-portal/update-portal-story.dto.js → city-quest/upsert-city-quest-locale.dto.js} +14 -17
- package/dist/google-places/apply-google-places-match.dto.d.ts +4 -0
- package/dist/google-places/apply-google-places-match.dto.js +25 -0
- package/dist/google-places/google-places-country-stats.ro.d.ts +10 -0
- package/dist/google-places/google-places-country-stats.ro.js +45 -0
- package/dist/google-places/google-places-match-preview.ro.d.ts +19 -0
- package/dist/google-places/google-places-match-preview.ro.js +67 -0
- package/dist/google-places/google-places.ro.d.ts +7 -0
- package/dist/google-places/google-places.ro.js +25 -1
- package/dist/google-places/update-google-places.dto.d.ts +2 -2
- package/dist/google-places/update-google-places.dto.js +2 -0
- package/dist/openapi/city-player/city-player.ro.d.ts +27 -0
- package/dist/openapi/city-player/free-route.d.ts +35 -0
- package/dist/openapi/city-player/free-route.js +2 -0
- package/dist/openapi/city-quest/play-state.ro.d.ts +15 -0
- package/dist/partners-portal/admin/admin-portal-partner.ro.d.ts +3 -3
- package/dist/partners-portal/create-partner-attraction.dto.d.ts +33 -0
- package/dist/partners-portal/create-partner-attraction.dto.js +173 -0
- package/dist/partners-portal/partner-city-quest.dto.d.ts +31 -0
- package/dist/partners-portal/partner-city-quest.dto.js +160 -0
- package/dist/partners-portal/partner-city-quest.ro.d.ts +11 -0
- package/dist/partners-portal/partner-city-quest.ro.js +2 -0
- package/dist/partners-portal/portal-stats.ro.d.ts +6 -6
- package/dist/partners-portal/update-partner-attraction.dto.d.ts +11 -0
- package/dist/partners-portal/update-partner-attraction.dto.js +35 -0
- package/dist/shared/ai-cover.d.ts +8 -0
- package/dist/shared/ai-cover.js +26 -0
- package/dist/shared/city-pipeline.d.ts +40 -0
- package/dist/shared/city-pipeline.js +52 -0
- package/dist/shared/city-research.d.ts +46 -0
- package/dist/shared/city-research.js +49 -0
- package/dist/shared/content-batch.d.ts +27 -0
- package/dist/shared/content-batch.js +41 -0
- package/dist/shared/wikidata-enrichment.d.ts +24 -0
- package/dist/shared/wikidata-enrichment.js +31 -0
- package/dist/shared/wikidata-import.d.ts +33 -0
- package/dist/shared/wikidata-import.js +53 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/upload/enum/image-type.enum.d.ts +3 -1
- package/dist/upload/enum/image-type.enum.js +2 -0
- package/dist/user/crud/create-user.dto.js +1 -0
- package/dist/user/crud/update-user.dto.js +1 -0
- package/package.json +2 -2
- package/dist/partners-portal/admin/admin-moderate-portal-story.dto.d.ts +0 -8
- package/dist/partners-portal/create-portal-story.dto.d.ts +0 -18
- package/dist/partners-portal/enum/portal-story-status.enum.d.ts +0 -12
- package/dist/partners-portal/enum/portal-story-status.enum.js +0 -16
- package/dist/partners-portal/portal-story-step.d.ts +0 -19
- package/dist/partners-portal/portal-story.ro.d.ts +0 -19
- package/dist/partners-portal/update-portal-story.dto.d.ts +0 -9
- /package/dist/{partners-portal/portal-story-step.js → city-attraction/attraction-content.js} +0 -0
- /package/dist/{partners-portal/portal-story.ro.js → city-attraction/attraction-route-meta.js} +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
2
|
import { Languages } from '../shared/enum/languages.enum';
|
|
3
3
|
import { RO } from '../shared/ro-class';
|
|
4
|
+
import { CityQuestLocaleRO } from './city-quest-locale.ro';
|
|
4
5
|
import { CityQuestStatusEnum } from './enum/city-quest-status.enum';
|
|
5
6
|
export declare class CityQuestBindingRO {
|
|
6
7
|
id: number;
|
|
@@ -16,18 +17,24 @@ export declare class CityQuestAssetRO extends RO {
|
|
|
16
17
|
export declare class CityQuestRO extends RO {
|
|
17
18
|
/** game_id из контента (esc-muc-stolen-hour-v1). */
|
|
18
19
|
key: string;
|
|
20
|
+
/** @deprecated Свободный текст города — заменён на cityId/cityTitle. */
|
|
19
21
|
city?: string;
|
|
22
|
+
/** Город каталога (FK на CityEntity). */
|
|
23
|
+
cityId?: number | null;
|
|
24
|
+
/** Название города из CityEntity — для отображения выбранного города в админке. */
|
|
25
|
+
cityTitle?: string | null;
|
|
20
26
|
country?: CountriesEnum | null;
|
|
21
|
-
/** Кто озвучил игру (
|
|
27
|
+
/** Кто озвучил игру (content.voiced_by) — для стартового экрана. */
|
|
22
28
|
voicedBy?: string;
|
|
23
29
|
title: Partial<Record<Languages, string>>;
|
|
24
30
|
status: CityQuestStatusEnum;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/**
|
|
31
|
+
rejectionReason?: string | null;
|
|
32
|
+
createdByPartnerId?: number | null;
|
|
33
|
+
/** Когда контент последний раз меняли. */
|
|
28
34
|
draftUpdatedAt?: Date | null;
|
|
29
35
|
stopsCount: number;
|
|
30
36
|
/** Ключи ассетов из контента, для которых не загружен файл. */
|
|
31
37
|
missingAssets?: string[];
|
|
32
38
|
bindings?: CityQuestBindingRO[];
|
|
39
|
+
locales?: CityQuestLocaleRO[];
|
|
33
40
|
}
|
|
@@ -60,6 +60,14 @@ __decorate([
|
|
|
60
60
|
(0, class_transformer_1.Expose)(),
|
|
61
61
|
__metadata("design:type", String)
|
|
62
62
|
], CityQuestRO.prototype, "city", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_transformer_1.Expose)(),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], CityQuestRO.prototype, "cityId", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_transformer_1.Expose)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], CityQuestRO.prototype, "cityTitle", void 0);
|
|
63
71
|
__decorate([
|
|
64
72
|
(0, class_transformer_1.Expose)(),
|
|
65
73
|
__metadata("design:type", String)
|
|
@@ -76,10 +84,14 @@ __decorate([
|
|
|
76
84
|
(0, class_transformer_1.Expose)(),
|
|
77
85
|
__metadata("design:type", String)
|
|
78
86
|
], CityQuestRO.prototype, "status", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, class_transformer_1.Expose)(),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], CityQuestRO.prototype, "rejectionReason", void 0);
|
|
79
91
|
__decorate([
|
|
80
92
|
(0, class_transformer_1.Expose)(),
|
|
81
93
|
__metadata("design:type", Number)
|
|
82
|
-
], CityQuestRO.prototype, "
|
|
94
|
+
], CityQuestRO.prototype, "createdByPartnerId", void 0);
|
|
83
95
|
__decorate([
|
|
84
96
|
(0, class_transformer_1.Expose)(),
|
|
85
97
|
__metadata("design:type", Date)
|
|
@@ -96,3 +108,7 @@ __decorate([
|
|
|
96
108
|
(0, class_transformer_1.Expose)(),
|
|
97
109
|
__metadata("design:type", Array)
|
|
98
110
|
], CityQuestRO.prototype, "bindings", void 0);
|
|
111
|
+
__decorate([
|
|
112
|
+
(0, class_transformer_1.Expose)(),
|
|
113
|
+
__metadata("design:type", Array)
|
|
114
|
+
], CityQuestRO.prototype, "locales", void 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locale readiness for quest narrative content.
|
|
3
|
+
* empty — no package yet
|
|
4
|
+
* generated — AI wrote it, not human-reviewed
|
|
5
|
+
* reviewed — moderator accepted this language
|
|
6
|
+
*/
|
|
7
|
+
export declare enum CityQuestLocaleStatusEnum {
|
|
8
|
+
EMPTY = "empty",
|
|
9
|
+
GENERATED = "generated",
|
|
10
|
+
REVIEWED = "reviewed"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CityQuestLocaleStatusEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Locale readiness for quest narrative content.
|
|
6
|
+
* empty — no package yet
|
|
7
|
+
* generated — AI wrote it, not human-reviewed
|
|
8
|
+
* reviewed — moderator accepted this language
|
|
9
|
+
*/
|
|
10
|
+
var CityQuestLocaleStatusEnum;
|
|
11
|
+
(function (CityQuestLocaleStatusEnum) {
|
|
12
|
+
CityQuestLocaleStatusEnum["EMPTY"] = "empty";
|
|
13
|
+
CityQuestLocaleStatusEnum["GENERATED"] = "generated";
|
|
14
|
+
CityQuestLocaleStatusEnum["REVIEWED"] = "reviewed";
|
|
15
|
+
})(CityQuestLocaleStatusEnum || (exports.CityQuestLocaleStatusEnum = CityQuestLocaleStatusEnum = {}));
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lifecycle of a city quest (street game).
|
|
3
|
+
* Only `ready` is visible in the player catalog and playable.
|
|
4
|
+
*/
|
|
1
5
|
export declare enum CityQuestStatusEnum {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
6
|
+
DRAFT = "draft",
|
|
7
|
+
NEED_REVIEW = "need_review",
|
|
8
|
+
REJECTED = "rejected",
|
|
9
|
+
READY = "ready",
|
|
10
|
+
/** Hidden from catalog without deleting. */
|
|
11
|
+
PAUSED = "paused"
|
|
7
12
|
}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CityQuestStatusEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Lifecycle of a city quest (street game).
|
|
6
|
+
* Only `ready` is visible in the player catalog and playable.
|
|
7
|
+
*/
|
|
4
8
|
var CityQuestStatusEnum;
|
|
5
9
|
(function (CityQuestStatusEnum) {
|
|
6
|
-
CityQuestStatusEnum["
|
|
7
|
-
CityQuestStatusEnum["
|
|
8
|
-
CityQuestStatusEnum["
|
|
10
|
+
CityQuestStatusEnum["DRAFT"] = "draft";
|
|
11
|
+
CityQuestStatusEnum["NEED_REVIEW"] = "need_review";
|
|
12
|
+
CityQuestStatusEnum["REJECTED"] = "rejected";
|
|
13
|
+
CityQuestStatusEnum["READY"] = "ready";
|
|
14
|
+
/** Hidden from catalog without deleting. */
|
|
9
15
|
CityQuestStatusEnum["PAUSED"] = "paused";
|
|
10
|
-
CityQuestStatusEnum["RETIRED"] = "retired";
|
|
11
16
|
})(CityQuestStatusEnum || (exports.CityQuestStatusEnum = CityQuestStatusEnum = {}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
/** First-wave languages for quest narrative locales (same set as attractions). */
|
|
3
|
+
export declare const QUEST_CONTENT_LANGUAGES: readonly [Languages.EN, Languages.RU, Languages.DE, Languages.FR, Languages.ES];
|
|
4
|
+
export type QuestContentLanguage = (typeof QUEST_CONTENT_LANGUAGES)[number];
|
|
5
|
+
export declare const isQuestContentLanguage: (lang: string) => lang is QuestContentLanguage;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isQuestContentLanguage = exports.QUEST_CONTENT_LANGUAGES = void 0;
|
|
4
|
+
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
5
|
+
/** First-wave languages for quest narrative locales (same set as attractions). */
|
|
6
|
+
exports.QUEST_CONTENT_LANGUAGES = [
|
|
7
|
+
languages_enum_1.Languages.EN,
|
|
8
|
+
languages_enum_1.Languages.RU,
|
|
9
|
+
languages_enum_1.Languages.DE,
|
|
10
|
+
languages_enum_1.Languages.FR,
|
|
11
|
+
languages_enum_1.Languages.ES,
|
|
12
|
+
];
|
|
13
|
+
const isQuestContentLanguage = (lang) => exports.QUEST_CONTENT_LANGUAGES.includes(lang);
|
|
14
|
+
exports.isQuestContentLanguage = isQuestContentLanguage;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateCityQuestContentDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/** Replace live quest content (admin / shared builder). */
|
|
16
|
+
class UpdateCityQuestContentDto {
|
|
17
|
+
}
|
|
18
|
+
exports.UpdateCityQuestContentDto = UpdateCityQuestContentDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsObject)(),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", Object)
|
|
23
|
+
], UpdateCityQuestContentDto.prototype, "content", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Точечное редактирование одной точки (stop) в content квеста. */
|
|
2
|
+
export declare class UpdateCityQuestStopDto {
|
|
3
|
+
/** Ключевая веха — показывать точку на схеме маршрута в плеере. */
|
|
4
|
+
isKeyMilestone?: boolean;
|
|
5
|
+
/** Привязка к каталогу достопримечательностей. */
|
|
6
|
+
attractionId?: number;
|
|
7
|
+
gpsRadiusM?: number;
|
|
8
|
+
displayNameBeforeSolve?: string | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateCityQuestStopDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/** Точечное редактирование одной точки (stop) в content квеста. */
|
|
16
|
+
class UpdateCityQuestStopDto {
|
|
17
|
+
}
|
|
18
|
+
exports.UpdateCityQuestStopDto = UpdateCityQuestStopDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsOptional)(),
|
|
21
|
+
(0, class_validator_1.IsBoolean)(),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", Boolean)
|
|
24
|
+
], UpdateCityQuestStopDto.prototype, "isKeyMilestone", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
28
|
+
(0, class_validator_1.IsInt)(),
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], UpdateCityQuestStopDto.prototype, "attractionId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
35
|
+
(0, class_validator_1.IsNumber)(),
|
|
36
|
+
(0, class_validator_1.Min)(1),
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], UpdateCityQuestStopDto.prototype, "gpsRadiusM", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsString)(),
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], UpdateCityQuestStopDto.prototype, "displayNameBeforeSolve", void 0);
|
|
@@ -2,8 +2,13 @@ import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
|
2
2
|
import { CityQuestStatusEnum } from './enum/city-quest-status.enum';
|
|
3
3
|
export declare class UpdateCityQuestDto {
|
|
4
4
|
status?: CityQuestStatusEnum;
|
|
5
|
+
/** @deprecated Свободный текст города — заменён на cityId. */
|
|
5
6
|
city?: string;
|
|
7
|
+
/** Город каталога (FK на CityEntity). null — отвязать. */
|
|
8
|
+
cityId?: number | null;
|
|
6
9
|
country?: CountriesEnum;
|
|
7
|
-
/** Кто озвучил игру — пишется в
|
|
10
|
+
/** Кто озвучил игру — пишется в content.voiced_by. */
|
|
8
11
|
voicedBy?: string;
|
|
12
|
+
/** Required when status=rejected. */
|
|
13
|
+
rejectionReason?: string | null;
|
|
9
14
|
}
|
|
@@ -29,6 +29,12 @@ __decorate([
|
|
|
29
29
|
(0, class_transformer_1.Expose)(),
|
|
30
30
|
__metadata("design:type", String)
|
|
31
31
|
], UpdateCityQuestDto.prototype, "city", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsNumber)(),
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], UpdateCityQuestDto.prototype, "cityId", void 0);
|
|
32
38
|
__decorate([
|
|
33
39
|
(0, class_validator_1.IsOptional)(),
|
|
34
40
|
(0, class_validator_1.IsEnum)(countries_enum_1.CountriesEnum),
|
|
@@ -41,3 +47,9 @@ __decorate([
|
|
|
41
47
|
(0, class_transformer_1.Expose)(),
|
|
42
48
|
__metadata("design:type", String)
|
|
43
49
|
], UpdateCityQuestDto.prototype, "voicedBy", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_validator_1.IsString)(),
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], UpdateCityQuestDto.prototype, "rejectionReason", void 0);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
import { CityQuestLocaleContent } from './city-quest-locale-content';
|
|
3
|
+
import { CityQuestLocaleStatusEnum } from './enum/city-quest-locale-status.enum';
|
|
4
|
+
export declare class UpsertCityQuestLocaleDto {
|
|
5
|
+
language: Languages;
|
|
6
|
+
title?: string;
|
|
7
|
+
tagline?: string | null;
|
|
8
|
+
content?: CityQuestLocaleContent | null;
|
|
9
|
+
status?: CityQuestLocaleStatusEnum;
|
|
10
|
+
}
|
|
@@ -9,43 +9,40 @@ 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.
|
|
12
|
+
exports.UpsertCityQuestLocaleDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
16
|
-
const
|
|
17
|
-
class
|
|
16
|
+
const city_quest_locale_status_enum_1 = require("./enum/city-quest-locale-status.enum");
|
|
17
|
+
class UpsertCityQuestLocaleDto {
|
|
18
18
|
}
|
|
19
|
-
exports.
|
|
19
|
+
exports.UpsertCityQuestLocaleDto = UpsertCityQuestLocaleDto;
|
|
20
20
|
__decorate([
|
|
21
|
-
(0, class_validator_1.
|
|
22
|
-
(0, class_validator_1.IsString)(),
|
|
21
|
+
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
23
22
|
(0, class_transformer_1.Expose)(),
|
|
24
23
|
__metadata("design:type", String)
|
|
25
|
-
],
|
|
24
|
+
], UpsertCityQuestLocaleDto.prototype, "language", void 0);
|
|
26
25
|
__decorate([
|
|
27
26
|
(0, class_validator_1.IsOptional)(),
|
|
28
27
|
(0, class_validator_1.IsString)(),
|
|
29
28
|
(0, class_transformer_1.Expose)(),
|
|
30
29
|
__metadata("design:type", String)
|
|
31
|
-
],
|
|
30
|
+
], UpsertCityQuestLocaleDto.prototype, "title", void 0);
|
|
32
31
|
__decorate([
|
|
33
32
|
(0, class_validator_1.IsOptional)(),
|
|
34
33
|
(0, class_validator_1.IsString)(),
|
|
35
34
|
(0, class_transformer_1.Expose)(),
|
|
36
35
|
__metadata("design:type", String)
|
|
37
|
-
],
|
|
36
|
+
], UpsertCityQuestLocaleDto.prototype, "tagline", void 0);
|
|
38
37
|
__decorate([
|
|
39
38
|
(0, class_validator_1.IsOptional)(),
|
|
40
|
-
(0, class_validator_1.
|
|
39
|
+
(0, class_validator_1.IsObject)(),
|
|
41
40
|
(0, class_transformer_1.Expose)(),
|
|
42
|
-
__metadata("design:type",
|
|
43
|
-
],
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], UpsertCityQuestLocaleDto.prototype, "content", void 0);
|
|
44
43
|
__decorate([
|
|
45
44
|
(0, class_validator_1.IsOptional)(),
|
|
46
|
-
(0, class_validator_1.
|
|
47
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
48
|
-
(0, class_transformer_1.Type)(() => create_portal_story_dto_1.PortalStoryStepDto),
|
|
45
|
+
(0, class_validator_1.IsEnum)(city_quest_locale_status_enum_1.CityQuestLocaleStatusEnum),
|
|
49
46
|
(0, class_transformer_1.Expose)(),
|
|
50
|
-
__metadata("design:type",
|
|
51
|
-
],
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], UpsertCityQuestLocaleDto.prototype, "status", void 0);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ApplyGooglePlacesMatchDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ApplyGooglePlacesMatchDto {
|
|
15
|
+
}
|
|
16
|
+
exports.ApplyGooglePlacesMatchDto = ApplyGooglePlacesMatchDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], ApplyGooglePlacesMatchDto.prototype, "profileId", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
(0, class_validator_1.IsOptional)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], ApplyGooglePlacesMatchDto.prototype, "locationId", void 0);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
+
export declare class GooglePlacesCountryStatsRO {
|
|
3
|
+
country: CountriesEnum;
|
|
4
|
+
total: number;
|
|
5
|
+
resolved: number;
|
|
6
|
+
conflict: number;
|
|
7
|
+
newLocation: number;
|
|
8
|
+
noLocation: number;
|
|
9
|
+
needsReview: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GooglePlacesCountryStatsRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
15
|
+
class GooglePlacesCountryStatsRO {
|
|
16
|
+
}
|
|
17
|
+
exports.GooglePlacesCountryStatsRO = GooglePlacesCountryStatsRO;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], GooglePlacesCountryStatsRO.prototype, "country", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", Number)
|
|
25
|
+
], GooglePlacesCountryStatsRO.prototype, "total", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], GooglePlacesCountryStatsRO.prototype, "resolved", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", Number)
|
|
33
|
+
], GooglePlacesCountryStatsRO.prototype, "conflict", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_transformer_1.Expose)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], GooglePlacesCountryStatsRO.prototype, "newLocation", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], GooglePlacesCountryStatsRO.prototype, "noLocation", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], GooglePlacesCountryStatsRO.prototype, "needsReview", void 0);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { GooglePlacesStatusEnum } from './google-places-status.enum';
|
|
2
|
+
export type GooglePlacesMatchType = 'location' | 'domain' | 'name' | 'address' | 'none';
|
|
3
|
+
export declare class GooglePlacesMatchProfile {
|
|
4
|
+
id: number;
|
|
5
|
+
title: string;
|
|
6
|
+
site: string;
|
|
7
|
+
}
|
|
8
|
+
export declare class GooglePlacesMatchLocation {
|
|
9
|
+
id: number;
|
|
10
|
+
title: string;
|
|
11
|
+
address: string;
|
|
12
|
+
}
|
|
13
|
+
export declare class GooglePlacesMatchPreviewRO {
|
|
14
|
+
found: boolean;
|
|
15
|
+
matchType: GooglePlacesMatchType;
|
|
16
|
+
profile: GooglePlacesMatchProfile | null;
|
|
17
|
+
location: GooglePlacesMatchLocation | null;
|
|
18
|
+
status: GooglePlacesStatusEnum | null;
|
|
19
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GooglePlacesMatchPreviewRO = exports.GooglePlacesMatchLocation = exports.GooglePlacesMatchProfile = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const google_places_status_enum_1 = require("./google-places-status.enum");
|
|
15
|
+
class GooglePlacesMatchProfile {
|
|
16
|
+
}
|
|
17
|
+
exports.GooglePlacesMatchProfile = GooglePlacesMatchProfile;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
|
+
], GooglePlacesMatchProfile.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_transformer_1.Expose)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], GooglePlacesMatchProfile.prototype, "title", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], GooglePlacesMatchProfile.prototype, "site", void 0);
|
|
30
|
+
class GooglePlacesMatchLocation {
|
|
31
|
+
}
|
|
32
|
+
exports.GooglePlacesMatchLocation = GooglePlacesMatchLocation;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], GooglePlacesMatchLocation.prototype, "id", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_transformer_1.Expose)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], GooglePlacesMatchLocation.prototype, "title", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], GooglePlacesMatchLocation.prototype, "address", void 0);
|
|
45
|
+
class GooglePlacesMatchPreviewRO {
|
|
46
|
+
}
|
|
47
|
+
exports.GooglePlacesMatchPreviewRO = GooglePlacesMatchPreviewRO;
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], GooglePlacesMatchPreviewRO.prototype, "found", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], GooglePlacesMatchPreviewRO.prototype, "matchType", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", GooglePlacesMatchProfile)
|
|
59
|
+
], GooglePlacesMatchPreviewRO.prototype, "profile", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
__metadata("design:type", GooglePlacesMatchLocation)
|
|
63
|
+
], GooglePlacesMatchPreviewRO.prototype, "location", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], GooglePlacesMatchPreviewRO.prototype, "status", void 0);
|
|
@@ -6,6 +6,11 @@ export declare class Profile {
|
|
|
6
6
|
title: string;
|
|
7
7
|
status: ProfileStatusEnum;
|
|
8
8
|
}
|
|
9
|
+
export declare class Location {
|
|
10
|
+
id: number;
|
|
11
|
+
title: string;
|
|
12
|
+
address: string;
|
|
13
|
+
}
|
|
9
14
|
export declare class GooglePlacesRO {
|
|
10
15
|
id: number;
|
|
11
16
|
placeId: string;
|
|
@@ -22,9 +27,11 @@ export declare class GooglePlacesRO {
|
|
|
22
27
|
country: CountriesEnum;
|
|
23
28
|
profile: Profile;
|
|
24
29
|
profileId: number;
|
|
30
|
+
location: Location;
|
|
25
31
|
locationId: number;
|
|
26
32
|
lat: number;
|
|
27
33
|
lng: number;
|
|
34
|
+
types: string[];
|
|
28
35
|
lastCheckedAt: Date;
|
|
29
36
|
createdAt: Date;
|
|
30
37
|
updatedAt: Date;
|
|
@@ -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.GooglePlacesRO = exports.Profile = void 0;
|
|
12
|
+
exports.GooglePlacesRO = exports.Location = exports.Profile = void 0;
|
|
13
13
|
/* eslint-disable max-classes-per-file */
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const profile_step_enum_1 = require("../profile/enum/profile-step.enum");
|
|
@@ -30,6 +30,21 @@ __decorate([
|
|
|
30
30
|
(0, class_transformer_1.Expose)(),
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], Profile.prototype, "status", void 0);
|
|
33
|
+
class Location {
|
|
34
|
+
}
|
|
35
|
+
exports.Location = Location;
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], Location.prototype, "id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Location.prototype, "title", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Location.prototype, "address", void 0);
|
|
33
48
|
class GooglePlacesRO {
|
|
34
49
|
}
|
|
35
50
|
exports.GooglePlacesRO = GooglePlacesRO;
|
|
@@ -94,6 +109,11 @@ __decorate([
|
|
|
94
109
|
(0, class_transformer_1.Expose)(),
|
|
95
110
|
__metadata("design:type", Number)
|
|
96
111
|
], GooglePlacesRO.prototype, "profileId", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, class_transformer_1.Expose)(),
|
|
114
|
+
(0, class_transformer_1.Type)(() => Location),
|
|
115
|
+
__metadata("design:type", Location)
|
|
116
|
+
], GooglePlacesRO.prototype, "location", void 0);
|
|
97
117
|
__decorate([
|
|
98
118
|
(0, class_transformer_1.Expose)(),
|
|
99
119
|
__metadata("design:type", Number)
|
|
@@ -106,6 +126,10 @@ __decorate([
|
|
|
106
126
|
(0, class_transformer_1.Expose)(),
|
|
107
127
|
__metadata("design:type", Number)
|
|
108
128
|
], GooglePlacesRO.prototype, "lng", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, class_transformer_1.Expose)(),
|
|
131
|
+
__metadata("design:type", Array)
|
|
132
|
+
], GooglePlacesRO.prototype, "types", void 0);
|
|
109
133
|
__decorate([
|
|
110
134
|
(0, class_transformer_1.Expose)(),
|
|
111
135
|
__metadata("design:type", Date)
|
|
@@ -31,11 +31,13 @@ __decorate([
|
|
|
31
31
|
__metadata("design:type", String)
|
|
32
32
|
], UpdateGooglePlacesDto.prototype, "website", void 0);
|
|
33
33
|
__decorate([
|
|
34
|
+
(0, class_validator_1.ValidateIf)((_, value) => value !== null),
|
|
34
35
|
(0, class_validator_1.IsNumber)(),
|
|
35
36
|
(0, class_validator_1.IsOptional)(),
|
|
36
37
|
__metadata("design:type", Number)
|
|
37
38
|
], UpdateGooglePlacesDto.prototype, "profileId", void 0);
|
|
38
39
|
__decorate([
|
|
40
|
+
(0, class_validator_1.ValidateIf)((_, value) => value !== null),
|
|
39
41
|
(0, class_validator_1.IsNumber)(),
|
|
40
42
|
(0, class_validator_1.IsOptional)(),
|
|
41
43
|
__metadata("design:type", Number)
|