@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
|
@@ -0,0 +1,128 @@
|
|
|
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.CreateCityPersonDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const attraction_fame_enum_1 = require("../city-attraction/enum/attraction-fame.enum");
|
|
16
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
17
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
18
|
+
const city_person_attraction_link_dto_1 = require("./city-person-attraction-link.dto");
|
|
19
|
+
const person_domain_enum_1 = require("./enum/person-domain.enum");
|
|
20
|
+
const person_occupation_enum_1 = require("./enum/person-occupation.enum");
|
|
21
|
+
const person_source_enum_1 = require("./enum/person-source.enum");
|
|
22
|
+
class CreateCityPersonDto {
|
|
23
|
+
}
|
|
24
|
+
exports.CreateCityPersonDto = CreateCityPersonDto;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreateCityPersonDto.prototype, "name", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], CreateCityPersonDto.prototype, "slug", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsArray)(),
|
|
38
|
+
(0, class_validator_1.IsEnum)(person_domain_enum_1.PersonDomainEnum, { each: true }),
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", Array)
|
|
41
|
+
], CreateCityPersonDto.prototype, "domains", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsArray)(),
|
|
45
|
+
(0, class_validator_1.IsEnum)(person_occupation_enum_1.PersonOccupationEnum, { each: true }),
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
__metadata("design:type", Array)
|
|
48
|
+
], CreateCityPersonDto.prototype, "occupations", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsEnum)(attraction_fame_enum_1.AttractionFameEnum),
|
|
51
|
+
(0, class_transformer_1.Expose)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], CreateCityPersonDto.prototype, "fame", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
57
|
+
(0, class_validator_1.IsInt)(),
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
__metadata("design:type", Number)
|
|
60
|
+
], CreateCityPersonDto.prototype, "birthYear", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
64
|
+
(0, class_validator_1.IsInt)(),
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
__metadata("design:type", Number)
|
|
67
|
+
], CreateCityPersonDto.prototype, "deathYear", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], CreateCityPersonDto.prototype, "wikidataId", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
(0, class_validator_1.IsArray)(),
|
|
77
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
78
|
+
(0, class_transformer_1.Expose)(),
|
|
79
|
+
__metadata("design:type", Array)
|
|
80
|
+
], CreateCityPersonDto.prototype, "photos", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
84
|
+
(0, class_validator_1.IsInt)(),
|
|
85
|
+
(0, class_validator_1.Min)(0),
|
|
86
|
+
(0, class_transformer_1.Expose)(),
|
|
87
|
+
__metadata("design:type", Number)
|
|
88
|
+
], CreateCityPersonDto.prototype, "coverPhotoIndex", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_validator_1.IsOptional)(),
|
|
91
|
+
(0, class_validator_1.IsArray)(),
|
|
92
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
93
|
+
(0, class_transformer_1.Expose)(),
|
|
94
|
+
__metadata("design:type", Array)
|
|
95
|
+
], CreateCityPersonDto.prototype, "tags", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, class_validator_1.IsOptional)(),
|
|
98
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
99
|
+
(0, class_validator_1.IsInt)(),
|
|
100
|
+
(0, class_transformer_1.Expose)(),
|
|
101
|
+
__metadata("design:type", Number)
|
|
102
|
+
], CreateCityPersonDto.prototype, "primaryCityId", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, class_validator_1.IsOptional)(),
|
|
105
|
+
(0, class_validator_1.IsEnum)(countries_enum_1.CountriesEnum),
|
|
106
|
+
(0, class_transformer_1.Expose)(),
|
|
107
|
+
__metadata("design:type", String)
|
|
108
|
+
], CreateCityPersonDto.prototype, "country", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, class_validator_1.IsOptional)(),
|
|
111
|
+
(0, class_validator_1.IsBoolean)(),
|
|
112
|
+
(0, class_transformer_1.Expose)(),
|
|
113
|
+
__metadata("design:type", Boolean)
|
|
114
|
+
], CreateCityPersonDto.prototype, "archived", void 0);
|
|
115
|
+
__decorate([
|
|
116
|
+
(0, class_validator_1.IsOptional)(),
|
|
117
|
+
(0, class_validator_1.IsEnum)(person_source_enum_1.PersonSourceEnum),
|
|
118
|
+
(0, class_transformer_1.Expose)(),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], CreateCityPersonDto.prototype, "source", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, class_validator_1.IsOptional)(),
|
|
123
|
+
(0, class_validator_1.IsArray)(),
|
|
124
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
125
|
+
(0, class_transformer_1.Type)(() => city_person_attraction_link_dto_1.CityPersonAttractionLinkDto),
|
|
126
|
+
(0, class_transformer_1.Expose)(),
|
|
127
|
+
__metadata("design:type", Array)
|
|
128
|
+
], CreateCityPersonDto.prototype, "attractions", void 0);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PersonAttractionRoleEnum = void 0;
|
|
4
|
+
var PersonAttractionRoleEnum;
|
|
5
|
+
(function (PersonAttractionRoleEnum) {
|
|
6
|
+
PersonAttractionRoleEnum["LIVED"] = "lived";
|
|
7
|
+
PersonAttractionRoleEnum["CREATED"] = "created";
|
|
8
|
+
PersonAttractionRoleEnum["PERFORMED"] = "performed";
|
|
9
|
+
PersonAttractionRoleEnum["BURIED"] = "buried";
|
|
10
|
+
PersonAttractionRoleEnum["STUDIED"] = "studied";
|
|
11
|
+
PersonAttractionRoleEnum["DEPICTED"] = "depicted";
|
|
12
|
+
})(PersonAttractionRoleEnum || (exports.PersonAttractionRoleEnum = PersonAttractionRoleEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PersonDomainEnum = void 0;
|
|
4
|
+
var PersonDomainEnum;
|
|
5
|
+
(function (PersonDomainEnum) {
|
|
6
|
+
PersonDomainEnum["MUSIC"] = "music";
|
|
7
|
+
PersonDomainEnum["LITERATURE"] = "literature";
|
|
8
|
+
PersonDomainEnum["VISUAL_ART"] = "visual_art";
|
|
9
|
+
})(PersonDomainEnum || (exports.PersonDomainEnum = PersonDomainEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PersonFactKindEnum = void 0;
|
|
4
|
+
var PersonFactKindEnum;
|
|
5
|
+
(function (PersonFactKindEnum) {
|
|
6
|
+
PersonFactKindEnum["BIO"] = "bio";
|
|
7
|
+
PersonFactKindEnum["ANECDOTE"] = "anecdote";
|
|
8
|
+
PersonFactKindEnum["WORK"] = "work";
|
|
9
|
+
PersonFactKindEnum["QUOTE"] = "quote";
|
|
10
|
+
PersonFactKindEnum["PLACE"] = "place";
|
|
11
|
+
})(PersonFactKindEnum || (exports.PersonFactKindEnum = PersonFactKindEnum = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PersonLocaleStatusEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Locale readiness for person content — mirrors attraction locale statuses.
|
|
6
|
+
*/
|
|
7
|
+
var PersonLocaleStatusEnum;
|
|
8
|
+
(function (PersonLocaleStatusEnum) {
|
|
9
|
+
PersonLocaleStatusEnum["EMPTY"] = "empty";
|
|
10
|
+
PersonLocaleStatusEnum["GENERATED"] = "generated";
|
|
11
|
+
PersonLocaleStatusEnum["REVIEWED"] = "reviewed";
|
|
12
|
+
})(PersonLocaleStatusEnum || (exports.PersonLocaleStatusEnum = PersonLocaleStatusEnum = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare enum PersonOccupationEnum {
|
|
2
|
+
COMPOSER = "composer",
|
|
3
|
+
MUSICIAN = "musician",
|
|
4
|
+
SINGER = "singer",
|
|
5
|
+
PIANIST = "pianist",
|
|
6
|
+
CONDUCTOR = "conductor",
|
|
7
|
+
CELLIST = "cellist",
|
|
8
|
+
LIBRETTIST = "librettist",
|
|
9
|
+
POET = "poet",
|
|
10
|
+
WRITER = "writer",
|
|
11
|
+
PLAYWRIGHT = "playwright",
|
|
12
|
+
DIARIST = "diarist",
|
|
13
|
+
PHILOSOPHER = "philosopher",
|
|
14
|
+
PAINTER = "painter",
|
|
15
|
+
SCULPTOR = "sculptor",
|
|
16
|
+
ARCHITECT = "architect",
|
|
17
|
+
ENGRAVER = "engraver",
|
|
18
|
+
GRAPHIC_ARTIST = "graphic_artist",
|
|
19
|
+
DANCER = "dancer",
|
|
20
|
+
ACTRESS = "actress"
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PersonOccupationEnum = void 0;
|
|
4
|
+
var PersonOccupationEnum;
|
|
5
|
+
(function (PersonOccupationEnum) {
|
|
6
|
+
PersonOccupationEnum["COMPOSER"] = "composer";
|
|
7
|
+
PersonOccupationEnum["MUSICIAN"] = "musician";
|
|
8
|
+
PersonOccupationEnum["SINGER"] = "singer";
|
|
9
|
+
PersonOccupationEnum["PIANIST"] = "pianist";
|
|
10
|
+
PersonOccupationEnum["CONDUCTOR"] = "conductor";
|
|
11
|
+
PersonOccupationEnum["CELLIST"] = "cellist";
|
|
12
|
+
PersonOccupationEnum["LIBRETTIST"] = "librettist";
|
|
13
|
+
PersonOccupationEnum["POET"] = "poet";
|
|
14
|
+
PersonOccupationEnum["WRITER"] = "writer";
|
|
15
|
+
PersonOccupationEnum["PLAYWRIGHT"] = "playwright";
|
|
16
|
+
PersonOccupationEnum["DIARIST"] = "diarist";
|
|
17
|
+
PersonOccupationEnum["PHILOSOPHER"] = "philosopher";
|
|
18
|
+
PersonOccupationEnum["PAINTER"] = "painter";
|
|
19
|
+
PersonOccupationEnum["SCULPTOR"] = "sculptor";
|
|
20
|
+
PersonOccupationEnum["ARCHITECT"] = "architect";
|
|
21
|
+
PersonOccupationEnum["ENGRAVER"] = "engraver";
|
|
22
|
+
PersonOccupationEnum["GRAPHIC_ARTIST"] = "graphic_artist";
|
|
23
|
+
PersonOccupationEnum["DANCER"] = "dancer";
|
|
24
|
+
PersonOccupationEnum["ACTRESS"] = "actress";
|
|
25
|
+
})(PersonOccupationEnum || (exports.PersonOccupationEnum = PersonOccupationEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PersonSourceEnum = void 0;
|
|
4
|
+
var PersonSourceEnum;
|
|
5
|
+
(function (PersonSourceEnum) {
|
|
6
|
+
PersonSourceEnum["MANUAL"] = "manual";
|
|
7
|
+
PersonSourceEnum["WIKIDATA"] = "wikidata";
|
|
8
|
+
PersonSourceEnum["SEED"] = "seed";
|
|
9
|
+
/** Candidate found by the AI city researcher (web search). */
|
|
10
|
+
PersonSourceEnum["AI_RESEARCH"] = "ai_research";
|
|
11
|
+
})(PersonSourceEnum || (exports.PersonSourceEnum = PersonSourceEnum = {}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
/** First-wave languages for person content (same set as attractions). */
|
|
3
|
+
export declare const PERSON_CONTENT_LANGUAGES: readonly [Languages.EN, Languages.RU, Languages.DE, Languages.FR, Languages.ES];
|
|
4
|
+
export type PersonContentLanguage = (typeof PERSON_CONTENT_LANGUAGES)[number];
|
|
5
|
+
export declare const isPersonContentLanguage: (lang: string) => lang is PersonContentLanguage;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isPersonContentLanguage = exports.PERSON_CONTENT_LANGUAGES = void 0;
|
|
4
|
+
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
5
|
+
/** First-wave languages for person content (same set as attractions). */
|
|
6
|
+
exports.PERSON_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 isPersonContentLanguage = (lang) => exports.PERSON_CONTENT_LANGUAGES.includes(lang);
|
|
14
|
+
exports.isPersonContentLanguage = isPersonContentLanguage;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CreateCityPersonDto } from './create-city-person.dto';
|
|
2
|
+
declare const UpdateCityPersonDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateCityPersonDto>>;
|
|
3
|
+
export declare class UpdateCityPersonDto extends UpdateCityPersonDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateCityPersonDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_city_person_dto_1 = require("./create-city-person.dto");
|
|
6
|
+
class UpdateCityPersonDto extends (0, mapped_types_1.PartialType)(create_city_person_dto_1.CreateCityPersonDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateCityPersonDto = UpdateCityPersonDto;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
import { PersonLocaleFact } from './person-locale-fact';
|
|
3
|
+
import { PersonFactKindEnum } from './enum/person-fact-kind.enum';
|
|
4
|
+
import { PersonLocaleStatusEnum } from './enum/person-locale-status.enum';
|
|
5
|
+
export declare class PersonLocaleFactDto {
|
|
6
|
+
id: string;
|
|
7
|
+
kind: PersonFactKindEnum;
|
|
8
|
+
title?: string;
|
|
9
|
+
body: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class UpsertCityPersonLocaleDto {
|
|
12
|
+
language: Languages;
|
|
13
|
+
name?: string;
|
|
14
|
+
description?: string | null;
|
|
15
|
+
knownFor?: string | null;
|
|
16
|
+
facts?: PersonLocaleFact[] | null;
|
|
17
|
+
status?: PersonLocaleStatusEnum;
|
|
18
|
+
}
|
|
19
|
+
export declare class GeneratePersonContentDto {
|
|
20
|
+
language: Languages;
|
|
21
|
+
}
|
|
@@ -9,78 +9,81 @@ 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.GeneratePersonContentDto = exports.UpsertCityPersonLocaleDto = exports.PersonLocaleFactDto = 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
|
-
|
|
16
|
+
const person_fact_kind_enum_1 = require("./enum/person-fact-kind.enum");
|
|
17
|
+
const person_locale_status_enum_1 = require("./enum/person-locale-status.enum");
|
|
18
|
+
class PersonLocaleFactDto {
|
|
18
19
|
}
|
|
19
|
-
exports.
|
|
20
|
+
exports.PersonLocaleFactDto = PersonLocaleFactDto;
|
|
20
21
|
__decorate([
|
|
21
|
-
(0,
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
22
23
|
(0, class_transformer_1.Expose)(),
|
|
23
24
|
__metadata("design:type", String)
|
|
24
|
-
],
|
|
25
|
+
], PersonLocaleFactDto.prototype, "id", void 0);
|
|
25
26
|
__decorate([
|
|
26
|
-
(0, class_validator_1.
|
|
27
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsEnum)(person_fact_kind_enum_1.PersonFactKindEnum),
|
|
28
28
|
(0, class_transformer_1.Expose)(),
|
|
29
29
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
30
|
+
], PersonLocaleFactDto.prototype, "kind", void 0);
|
|
31
31
|
__decorate([
|
|
32
32
|
(0, class_validator_1.IsOptional)(),
|
|
33
33
|
(0, class_validator_1.IsString)(),
|
|
34
34
|
(0, class_transformer_1.Expose)(),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
|
-
],
|
|
36
|
+
], PersonLocaleFactDto.prototype, "title", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, class_validator_1.IsOptional)(),
|
|
39
38
|
(0, class_validator_1.IsString)(),
|
|
40
39
|
(0, class_transformer_1.Expose)(),
|
|
41
40
|
__metadata("design:type", String)
|
|
42
|
-
],
|
|
41
|
+
], PersonLocaleFactDto.prototype, "body", void 0);
|
|
42
|
+
class UpsertCityPersonLocaleDto {
|
|
43
|
+
}
|
|
44
|
+
exports.UpsertCityPersonLocaleDto = UpsertCityPersonLocaleDto;
|
|
43
45
|
__decorate([
|
|
44
|
-
(0, class_validator_1.
|
|
45
|
-
(0, class_validator_1.IsString)(),
|
|
46
|
+
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
46
47
|
(0, class_transformer_1.Expose)(),
|
|
47
48
|
__metadata("design:type", String)
|
|
48
|
-
],
|
|
49
|
+
], UpsertCityPersonLocaleDto.prototype, "language", void 0);
|
|
49
50
|
__decorate([
|
|
50
51
|
(0, class_validator_1.IsOptional)(),
|
|
51
52
|
(0, class_validator_1.IsString)(),
|
|
52
53
|
(0, class_transformer_1.Expose)(),
|
|
53
54
|
__metadata("design:type", String)
|
|
54
|
-
],
|
|
55
|
-
class CreatePortalStoryDto {
|
|
56
|
-
}
|
|
57
|
-
exports.CreatePortalStoryDto = CreatePortalStoryDto;
|
|
55
|
+
], UpsertCityPersonLocaleDto.prototype, "name", void 0);
|
|
58
56
|
__decorate([
|
|
59
|
-
(0,
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
60
59
|
(0, class_transformer_1.Expose)(),
|
|
61
60
|
__metadata("design:type", String)
|
|
62
|
-
],
|
|
61
|
+
], UpsertCityPersonLocaleDto.prototype, "description", void 0);
|
|
63
62
|
__decorate([
|
|
64
63
|
(0, class_validator_1.IsOptional)(),
|
|
65
64
|
(0, class_validator_1.IsString)(),
|
|
66
65
|
(0, class_transformer_1.Expose)(),
|
|
67
66
|
__metadata("design:type", String)
|
|
68
|
-
],
|
|
67
|
+
], UpsertCityPersonLocaleDto.prototype, "knownFor", void 0);
|
|
69
68
|
__decorate([
|
|
70
69
|
(0, class_validator_1.IsOptional)(),
|
|
71
|
-
(0, class_validator_1.
|
|
70
|
+
(0, class_validator_1.IsArray)(),
|
|
71
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
72
|
+
(0, class_transformer_1.Type)(() => PersonLocaleFactDto),
|
|
72
73
|
(0, class_transformer_1.Expose)(),
|
|
73
|
-
__metadata("design:type",
|
|
74
|
-
],
|
|
74
|
+
__metadata("design:type", Array)
|
|
75
|
+
], UpsertCityPersonLocaleDto.prototype, "facts", void 0);
|
|
75
76
|
__decorate([
|
|
76
|
-
(0, class_validator_1.
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
(0, class_validator_1.IsEnum)(person_locale_status_enum_1.PersonLocaleStatusEnum),
|
|
77
79
|
(0, class_transformer_1.Expose)(),
|
|
78
80
|
__metadata("design:type", String)
|
|
79
|
-
],
|
|
81
|
+
], UpsertCityPersonLocaleDto.prototype, "status", void 0);
|
|
82
|
+
class GeneratePersonContentDto {
|
|
83
|
+
}
|
|
84
|
+
exports.GeneratePersonContentDto = GeneratePersonContentDto;
|
|
80
85
|
__decorate([
|
|
81
|
-
(0, class_validator_1.
|
|
82
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
83
|
-
(0, class_transformer_1.Type)(() => PortalStoryStepDto),
|
|
86
|
+
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
84
87
|
(0, class_transformer_1.Expose)(),
|
|
85
|
-
__metadata("design:type",
|
|
86
|
-
],
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], GeneratePersonContentDto.prototype, "language", void 0);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { PersonAttractionRoleEnum } from './enum/person-attraction-role.enum';
|
|
2
|
+
/** Автосвязывание — только вручную и по конкретному городу. */
|
|
3
|
+
export declare class AutolinkDto {
|
|
4
|
+
cityId: number;
|
|
5
|
+
}
|
|
6
|
+
export type WikidataAutolinkItemRO = {
|
|
7
|
+
personId: number;
|
|
8
|
+
personName: string;
|
|
9
|
+
attractionId: number;
|
|
10
|
+
attractionTitle: string;
|
|
11
|
+
role: PersonAttractionRoleEnum;
|
|
12
|
+
/** Wikidata property, по которому найдена связь (P119, P138, …). */
|
|
13
|
+
property: string;
|
|
14
|
+
};
|
|
15
|
+
/** Отчёт автосвязывания личностей и атракшенов по Wikidata-свойствам. */
|
|
16
|
+
export type WikidataAutolinkReportRO = {
|
|
17
|
+
personsScanned: number;
|
|
18
|
+
attractionsScanned: number;
|
|
19
|
+
linksCreated: number;
|
|
20
|
+
/** Пары, уже связанные вручную или прошлым прогоном. */
|
|
21
|
+
alreadyLinked: number;
|
|
22
|
+
items: WikidataAutolinkItemRO[];
|
|
23
|
+
};
|
|
@@ -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.AutolinkDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/** Автосвязывание — только вручную и по конкретному городу. */
|
|
16
|
+
class AutolinkDto {
|
|
17
|
+
}
|
|
18
|
+
exports.AutolinkDto = AutolinkDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsInt)(),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], AutolinkDto.prototype, "cityId", void 0);
|
|
@@ -52,18 +52,32 @@ export type CityQuestStop = {
|
|
|
52
52
|
id: string;
|
|
53
53
|
order: number;
|
|
54
54
|
chapter_title?: LocalizedText;
|
|
55
|
+
/**
|
|
56
|
+
* Ключевая веха — точка, которую показываем на схеме маршрута в плеере
|
|
57
|
+
* (превью квеста). Помечается вручную в админке (чекбокс у точки).
|
|
58
|
+
*/
|
|
59
|
+
is_key_milestone?: boolean;
|
|
55
60
|
location: {
|
|
56
|
-
|
|
61
|
+
/**
|
|
62
|
+
* FK на city-attractions. Name/address/lat/lng/photos резолвятся
|
|
63
|
+
* live из каталога (admin + play). Свободная локация не допускается.
|
|
64
|
+
*/
|
|
65
|
+
attractionId: number;
|
|
57
66
|
display_name_before_solve?: string;
|
|
58
|
-
address?: string;
|
|
59
|
-
lat: number;
|
|
60
|
-
lng: number;
|
|
61
67
|
gps_radius_m: number;
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated Снимок локации до каталога. Игнорируется движком,
|
|
70
|
+
* если задан attractionId; оставлен для чтения старых JSON.
|
|
71
|
+
*/
|
|
72
|
+
name?: string;
|
|
73
|
+
address?: string;
|
|
74
|
+
lat?: number;
|
|
75
|
+
lng?: number;
|
|
62
76
|
[key: string]: unknown;
|
|
63
77
|
};
|
|
64
78
|
navigation?: {
|
|
65
79
|
arrival_instruction?: LocalizedText;
|
|
66
|
-
from_previous?:
|
|
80
|
+
from_previous?: LocalizedText;
|
|
67
81
|
walk_audio_asset?: string;
|
|
68
82
|
walk_micro_task?: LocalizedText;
|
|
69
83
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Monolingual narrative overlay for one quest locale.
|
|
3
|
+
* Mechanics (ids, attractionId, gps, scoring) stay on root CityQuest.content.
|
|
4
|
+
*/
|
|
5
|
+
export type CityQuestLocaleStopTexts = {
|
|
6
|
+
id: string;
|
|
7
|
+
chapter_title?: string | null;
|
|
8
|
+
story_before?: string | null;
|
|
9
|
+
story_after?: string | null;
|
|
10
|
+
arrival_instruction?: string | null;
|
|
11
|
+
from_previous?: string | null;
|
|
12
|
+
walk_micro_task?: string | null;
|
|
13
|
+
challenge_prompt?: string | null;
|
|
14
|
+
hint?: string | null;
|
|
15
|
+
solution_explanation?: string | null;
|
|
16
|
+
historical_note?: string | null;
|
|
17
|
+
fallback_prompt?: string | null;
|
|
18
|
+
};
|
|
19
|
+
export type CityQuestLocaleContent = {
|
|
20
|
+
prologue?: Record<string, string>;
|
|
21
|
+
stops?: CityQuestLocaleStopTexts[];
|
|
22
|
+
finale?: {
|
|
23
|
+
choice_prompt?: string | null;
|
|
24
|
+
choices?: Array<{
|
|
25
|
+
id: string;
|
|
26
|
+
label?: string | null;
|
|
27
|
+
ending?: string | null;
|
|
28
|
+
}>;
|
|
29
|
+
final_puzzle_prompt?: string | null;
|
|
30
|
+
};
|
|
31
|
+
route_events?: Array<{
|
|
32
|
+
id: string;
|
|
33
|
+
text?: string | null;
|
|
34
|
+
}>;
|
|
35
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
import { ResponseObject } from '../shared/ro';
|
|
3
|
+
import { CityQuestLocaleContent } from './city-quest-locale-content';
|
|
4
|
+
import { CityQuestLocaleStatusEnum } from './enum/city-quest-locale-status.enum';
|
|
5
|
+
export type CityQuestLocaleRO = ResponseObject & {
|
|
6
|
+
questId: number;
|
|
7
|
+
language: Languages;
|
|
8
|
+
title: string;
|
|
9
|
+
tagline: string | null;
|
|
10
|
+
content: CityQuestLocaleContent | null;
|
|
11
|
+
status: CityQuestLocaleStatusEnum;
|
|
12
|
+
};
|