@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,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locale readiness for attraction 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 AttractionLocaleStatusEnum {
|
|
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.AttractionLocaleStatusEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Locale readiness for attraction content.
|
|
6
|
+
* empty — no package yet
|
|
7
|
+
* generated — AI wrote it, not human-reviewed
|
|
8
|
+
* reviewed — moderator accepted this language
|
|
9
|
+
*/
|
|
10
|
+
var AttractionLocaleStatusEnum;
|
|
11
|
+
(function (AttractionLocaleStatusEnum) {
|
|
12
|
+
AttractionLocaleStatusEnum["EMPTY"] = "empty";
|
|
13
|
+
AttractionLocaleStatusEnum["GENERATED"] = "generated";
|
|
14
|
+
AttractionLocaleStatusEnum["REVIEWED"] = "reviewed";
|
|
15
|
+
})(AttractionLocaleStatusEnum || (exports.AttractionLocaleStatusEnum = AttractionLocaleStatusEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moderation status for city attractions.
|
|
3
|
+
* Seed/admin entries are created as `approved`.
|
|
4
|
+
* Partner-created points start as `needReview`.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum AttractionReviewStatusEnum {
|
|
7
|
+
APPROVED = "approved",
|
|
8
|
+
NEED_REVIEW = "needReview",
|
|
9
|
+
REJECTED = "rejected"
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttractionReviewStatusEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Moderation status for city attractions.
|
|
6
|
+
* Seed/admin entries are created as `approved`.
|
|
7
|
+
* Partner-created points start as `needReview`.
|
|
8
|
+
*/
|
|
9
|
+
var AttractionReviewStatusEnum;
|
|
10
|
+
(function (AttractionReviewStatusEnum) {
|
|
11
|
+
AttractionReviewStatusEnum["APPROVED"] = "approved";
|
|
12
|
+
AttractionReviewStatusEnum["NEED_REVIEW"] = "needReview";
|
|
13
|
+
AttractionReviewStatusEnum["REJECTED"] = "rejected";
|
|
14
|
+
})(AttractionReviewStatusEnum || (exports.AttractionReviewStatusEnum = AttractionReviewStatusEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Роль точки в типичном пешеходном маршруте city-quest.
|
|
3
|
+
* Согласовано с seed (`todo/city-attractions`): well_known → primary.
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AttractionRouteRoleEnum {
|
|
6
|
+
ANCHOR = "anchor",
|
|
7
|
+
PRIMARY = "primary",
|
|
8
|
+
CONNECTOR = "connector",
|
|
9
|
+
OPTIONAL = "optional",
|
|
10
|
+
DETOUR = "detour"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttractionRouteRoleEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Роль точки в типичном пешеходном маршруте city-quest.
|
|
6
|
+
* Согласовано с seed (`todo/city-attractions`): well_known → primary.
|
|
7
|
+
*/
|
|
8
|
+
var AttractionRouteRoleEnum;
|
|
9
|
+
(function (AttractionRouteRoleEnum) {
|
|
10
|
+
AttractionRouteRoleEnum["ANCHOR"] = "anchor";
|
|
11
|
+
AttractionRouteRoleEnum["PRIMARY"] = "primary";
|
|
12
|
+
AttractionRouteRoleEnum["CONNECTOR"] = "connector";
|
|
13
|
+
AttractionRouteRoleEnum["OPTIONAL"] = "optional";
|
|
14
|
+
AttractionRouteRoleEnum["DETOUR"] = "detour";
|
|
15
|
+
})(AttractionRouteRoleEnum || (exports.AttractionRouteRoleEnum = AttractionRouteRoleEnum = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum AttractionSourceEnum {
|
|
2
|
+
EXCEL = "excel",
|
|
3
|
+
WIKIDATA = "wikidata",
|
|
4
|
+
MANUAL = "manual",
|
|
5
|
+
PLACES = "places",
|
|
6
|
+
/** Created by a partner author in the story editor. */
|
|
7
|
+
PARTNER = "partner",
|
|
8
|
+
/** Created by seed / placeHints gap-fill. */
|
|
9
|
+
SEED = "seed",
|
|
10
|
+
/** Candidate found by the AI city researcher (web search). */
|
|
11
|
+
AI_RESEARCH = "ai_research"
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AttractionSourceEnum = void 0;
|
|
4
|
+
var AttractionSourceEnum;
|
|
5
|
+
(function (AttractionSourceEnum) {
|
|
6
|
+
AttractionSourceEnum["EXCEL"] = "excel";
|
|
7
|
+
AttractionSourceEnum["WIKIDATA"] = "wikidata";
|
|
8
|
+
AttractionSourceEnum["MANUAL"] = "manual";
|
|
9
|
+
AttractionSourceEnum["PLACES"] = "places";
|
|
10
|
+
/** Created by a partner author in the story editor. */
|
|
11
|
+
AttractionSourceEnum["PARTNER"] = "partner";
|
|
12
|
+
/** Created by seed / placeHints gap-fill. */
|
|
13
|
+
AttractionSourceEnum["SEED"] = "seed";
|
|
14
|
+
/** Candidate found by the AI city researcher (web search). */
|
|
15
|
+
AttractionSourceEnum["AI_RESEARCH"] = "ai_research";
|
|
16
|
+
})(AttractionSourceEnum || (exports.AttractionSourceEnum = AttractionSourceEnum = {}));
|
|
@@ -9,27 +9,21 @@ 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.ModerateCityAttractionDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
16
|
-
class
|
|
15
|
+
const attraction_review_status_enum_1 = require("./enum/attraction-review-status.enum");
|
|
16
|
+
class ModerateCityAttractionDto {
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
18
|
+
exports.ModerateCityAttractionDto = ModerateCityAttractionDto;
|
|
19
19
|
__decorate([
|
|
20
|
-
(0, class_validator_1.IsEnum)(
|
|
20
|
+
(0, class_validator_1.IsEnum)(attraction_review_status_enum_1.AttractionReviewStatusEnum),
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
|
-
],
|
|
23
|
+
], ModerateCityAttractionDto.prototype, "reviewStatus", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, class_validator_1.IsOptional)(),
|
|
26
26
|
(0, class_validator_1.IsString)(),
|
|
27
27
|
(0, class_transformer_1.Expose)(),
|
|
28
28
|
__metadata("design:type", String)
|
|
29
|
-
],
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, class_validator_1.IsOptional)(),
|
|
32
|
-
(0, class_validator_1.IsInt)(),
|
|
33
|
-
(0, class_transformer_1.Expose)(),
|
|
34
|
-
__metadata("design:type", Number)
|
|
35
|
-
], AdminModeratePortalStoryDto.prototype, "cityQuestId", void 0);
|
|
29
|
+
], ModerateCityAttractionDto.prototype, "rejectionReason", void 0);
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CreateCityAttractionDto } from './create-city-attraction.dto';
|
|
2
|
+
declare const UpdateCityAttractionDto_base: import("@nestjs/mapped-types").MappedType<Partial<CreateCityAttractionDto>>;
|
|
3
|
+
export declare class UpdateCityAttractionDto extends UpdateCityAttractionDto_base {
|
|
4
|
+
}
|
|
5
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UpdateCityAttractionDto = void 0;
|
|
4
|
+
const mapped_types_1 = require("@nestjs/mapped-types");
|
|
5
|
+
const create_city_attraction_dto_1 = require("./create-city-attraction.dto");
|
|
6
|
+
class UpdateCityAttractionDto extends (0, mapped_types_1.PartialType)(create_city_attraction_dto_1.CreateCityAttractionDto) {
|
|
7
|
+
}
|
|
8
|
+
exports.UpdateCityAttractionDto = UpdateCityAttractionDto;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
import { AttractionArtifactKindEnum } from './enum/attraction-artifact-kind.enum';
|
|
3
|
+
export declare class UpsertCityAttractionArtifactDto {
|
|
4
|
+
id?: number;
|
|
5
|
+
kind: AttractionArtifactKindEnum;
|
|
6
|
+
title: string;
|
|
7
|
+
description?: string | null;
|
|
8
|
+
knownFor?: string | null;
|
|
9
|
+
findHint?: string | null;
|
|
10
|
+
personId?: number | null;
|
|
11
|
+
wikidataId?: string | null;
|
|
12
|
+
photos?: string[];
|
|
13
|
+
sortOrder?: number;
|
|
14
|
+
archived?: boolean;
|
|
15
|
+
titles?: Partial<Record<Languages, string>> | null;
|
|
16
|
+
}
|
|
17
|
+
export declare class ReplaceCityAttractionArtifactsDto {
|
|
18
|
+
artifacts: UpsertCityAttractionArtifactDto[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
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.ReplaceCityAttractionArtifactsDto = exports.UpsertCityAttractionArtifactDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
|
+
const attraction_artifact_kind_enum_1 = require("./enum/attraction-artifact-kind.enum");
|
|
17
|
+
class UpsertCityAttractionArtifactDto {
|
|
18
|
+
}
|
|
19
|
+
exports.UpsertCityAttractionArtifactDto = UpsertCityAttractionArtifactDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
23
|
+
(0, class_validator_1.IsInt)(),
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], UpsertCityAttractionArtifactDto.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsEnum)(attraction_artifact_kind_enum_1.AttractionArtifactKindEnum),
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], UpsertCityAttractionArtifactDto.prototype, "kind", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], UpsertCityAttractionArtifactDto.prototype, "title", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], UpsertCityAttractionArtifactDto.prototype, "description", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], UpsertCityAttractionArtifactDto.prototype, "knownFor", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsString)(),
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], UpsertCityAttractionArtifactDto.prototype, "findHint", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
58
|
+
(0, class_validator_1.IsInt)(),
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], UpsertCityAttractionArtifactDto.prototype, "personId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], UpsertCityAttractionArtifactDto.prototype, "wikidataId", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
(0, class_validator_1.IsArray)(),
|
|
71
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
__metadata("design:type", Array)
|
|
74
|
+
], UpsertCityAttractionArtifactDto.prototype, "photos", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
78
|
+
(0, class_validator_1.IsInt)(),
|
|
79
|
+
(0, class_validator_1.Min)(0),
|
|
80
|
+
(0, class_transformer_1.Expose)(),
|
|
81
|
+
__metadata("design:type", Number)
|
|
82
|
+
], UpsertCityAttractionArtifactDto.prototype, "sortOrder", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_validator_1.IsOptional)(),
|
|
85
|
+
(0, class_validator_1.IsBoolean)(),
|
|
86
|
+
(0, class_transformer_1.Expose)(),
|
|
87
|
+
__metadata("design:type", Boolean)
|
|
88
|
+
], UpsertCityAttractionArtifactDto.prototype, "archived", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_validator_1.IsOptional)(),
|
|
91
|
+
(0, class_validator_1.IsObject)(),
|
|
92
|
+
(0, class_transformer_1.Expose)(),
|
|
93
|
+
__metadata("design:type", Object)
|
|
94
|
+
], UpsertCityAttractionArtifactDto.prototype, "titles", void 0);
|
|
95
|
+
class ReplaceCityAttractionArtifactsDto {
|
|
96
|
+
}
|
|
97
|
+
exports.ReplaceCityAttractionArtifactsDto = ReplaceCityAttractionArtifactsDto;
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, class_validator_1.IsArray)(),
|
|
100
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
101
|
+
(0, class_transformer_1.Type)(() => UpsertCityAttractionArtifactDto),
|
|
102
|
+
(0, class_transformer_1.Expose)(),
|
|
103
|
+
__metadata("design:type", Array)
|
|
104
|
+
], ReplaceCityAttractionArtifactsDto.prototype, "artifacts", void 0);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
import { AttractionContent } from './attraction-content';
|
|
3
|
+
import { AttractionLocaleStatusEnum } from './enum/attraction-locale-status.enum';
|
|
4
|
+
export declare class UpsertCityAttractionLocaleDto {
|
|
5
|
+
language: Languages;
|
|
6
|
+
title?: string;
|
|
7
|
+
description?: string | null;
|
|
8
|
+
knownFor?: string | null;
|
|
9
|
+
content?: AttractionContent | null;
|
|
10
|
+
status?: AttractionLocaleStatusEnum;
|
|
11
|
+
}
|
|
12
|
+
export declare class GenerateAttractionContentDto {
|
|
13
|
+
language: Languages;
|
|
14
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.GenerateAttractionContentDto = exports.UpsertCityAttractionLocaleDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
16
|
+
const attraction_locale_status_enum_1 = require("./enum/attraction-locale-status.enum");
|
|
17
|
+
class UpsertCityAttractionLocaleDto {
|
|
18
|
+
}
|
|
19
|
+
exports.UpsertCityAttractionLocaleDto = UpsertCityAttractionLocaleDto;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], UpsertCityAttractionLocaleDto.prototype, "language", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsOptional)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], UpsertCityAttractionLocaleDto.prototype, "title", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], UpsertCityAttractionLocaleDto.prototype, "description", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_validator_1.IsString)(),
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], UpsertCityAttractionLocaleDto.prototype, "knownFor", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsObject)(),
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], UpsertCityAttractionLocaleDto.prototype, "content", void 0);
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, class_validator_1.IsOptional)(),
|
|
51
|
+
(0, class_validator_1.IsEnum)(attraction_locale_status_enum_1.AttractionLocaleStatusEnum),
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
__metadata("design:type", String)
|
|
54
|
+
], UpsertCityAttractionLocaleDto.prototype, "status", void 0);
|
|
55
|
+
class GenerateAttractionContentDto {
|
|
56
|
+
}
|
|
57
|
+
exports.GenerateAttractionContentDto = GenerateAttractionContentDto;
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], GenerateAttractionContentDto.prototype, "language", void 0);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { PersonAttractionFactsByLang } from './person-attraction-facts';
|
|
2
|
+
import { PersonAttractionRoleEnum } from './enum/person-attraction-role.enum';
|
|
3
|
+
export declare class CityPersonAttractionLinkDto {
|
|
4
|
+
attractionId: number;
|
|
5
|
+
role: PersonAttractionRoleEnum;
|
|
6
|
+
yearFrom?: number | null;
|
|
7
|
+
yearTo?: number | null;
|
|
8
|
+
isPrimary?: boolean;
|
|
9
|
+
note?: string | null;
|
|
10
|
+
/** Free-text facts keyed by language code. */
|
|
11
|
+
facts?: PersonAttractionFactsByLang | null;
|
|
12
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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.CityPersonAttractionLinkDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const person_attraction_role_enum_1 = require("./enum/person-attraction-role.enum");
|
|
16
|
+
class CityPersonAttractionLinkDto {
|
|
17
|
+
}
|
|
18
|
+
exports.CityPersonAttractionLinkDto = CityPersonAttractionLinkDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
21
|
+
(0, class_validator_1.IsInt)(),
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], CityPersonAttractionLinkDto.prototype, "attractionId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsEnum)(person_attraction_role_enum_1.PersonAttractionRoleEnum),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CityPersonAttractionLinkDto.prototype, "role", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
33
|
+
(0, class_validator_1.IsInt)(),
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], CityPersonAttractionLinkDto.prototype, "yearFrom", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsOptional)(),
|
|
39
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
40
|
+
(0, class_validator_1.IsInt)(),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], CityPersonAttractionLinkDto.prototype, "yearTo", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsBoolean)(),
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], CityPersonAttractionLinkDto.prototype, "isPrimary", 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
|
+
], CityPersonAttractionLinkDto.prototype, "note", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsObject)(),
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
|
+
], CityPersonAttractionLinkDto.prototype, "facts", void 0);
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ResponseObject } from '../shared/ro';
|
|
2
|
+
import { PersonAttractionFactsByLang } from './person-attraction-facts';
|
|
3
|
+
import { PersonAttractionRoleEnum } from './enum/person-attraction-role.enum';
|
|
4
|
+
export type CityPersonAttractionLinkRO = ResponseObject & {
|
|
5
|
+
personId: number;
|
|
6
|
+
attractionId: number;
|
|
7
|
+
attractionTitle?: string | null;
|
|
8
|
+
attractionCityTitle?: string | null;
|
|
9
|
+
role: PersonAttractionRoleEnum;
|
|
10
|
+
yearFrom: number | null;
|
|
11
|
+
yearTo: number | null;
|
|
12
|
+
isPrimary: boolean;
|
|
13
|
+
note: string | null;
|
|
14
|
+
facts: PersonAttractionFactsByLang | null;
|
|
15
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
import { ResponseObject } from '../shared/ro';
|
|
3
|
+
import { PersonLocaleFact } from './person-locale-fact';
|
|
4
|
+
import { PersonLocaleStatusEnum } from './enum/person-locale-status.enum';
|
|
5
|
+
export type CityPersonLocaleRO = ResponseObject & {
|
|
6
|
+
personId: number;
|
|
7
|
+
language: Languages;
|
|
8
|
+
name: string;
|
|
9
|
+
description: string | null;
|
|
10
|
+
knownFor: string | null;
|
|
11
|
+
facts: PersonLocaleFact[] | null;
|
|
12
|
+
status: PersonLocaleStatusEnum;
|
|
13
|
+
contentGeneratedAt: Date | string | null;
|
|
14
|
+
contentPromptVersion: string | null;
|
|
15
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AttractionFameEnum } from '../city-attraction/enum/attraction-fame.enum';
|
|
2
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
3
|
+
import { ResponseObject } from '../shared/ro';
|
|
4
|
+
import { CityPersonAttractionLinkRO } from './city-person-attraction-link.ro';
|
|
5
|
+
import { CityPersonLocaleRO } from './city-person-locale.ro';
|
|
6
|
+
import { PersonDomainEnum } from './enum/person-domain.enum';
|
|
7
|
+
import { PersonOccupationEnum } from './enum/person-occupation.enum';
|
|
8
|
+
import { PersonSourceEnum } from './enum/person-source.enum';
|
|
9
|
+
export type CityPersonRO = ResponseObject & {
|
|
10
|
+
name: string;
|
|
11
|
+
slug: string;
|
|
12
|
+
domains: PersonDomainEnum[];
|
|
13
|
+
occupations: PersonOccupationEnum[];
|
|
14
|
+
fame: AttractionFameEnum;
|
|
15
|
+
birthYear: number | null;
|
|
16
|
+
deathYear: number | null;
|
|
17
|
+
wikidataId: string | null;
|
|
18
|
+
photos: string[];
|
|
19
|
+
coverPhotoIndex: number | null;
|
|
20
|
+
/** Языки, на которых уже есть готовый контент локали (description). */
|
|
21
|
+
languages?: string[];
|
|
22
|
+
tags: string[];
|
|
23
|
+
primaryCityId: number | null;
|
|
24
|
+
primaryCityTitle?: string | null;
|
|
25
|
+
country: CountriesEnum | null;
|
|
26
|
+
archived: boolean;
|
|
27
|
+
source: PersonSourceEnum;
|
|
28
|
+
attractionsCount?: number;
|
|
29
|
+
locales?: CityPersonLocaleRO[];
|
|
30
|
+
attractions?: CityPersonAttractionLinkRO[];
|
|
31
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AttractionFameEnum } from '../city-attraction/enum/attraction-fame.enum';
|
|
2
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
3
|
+
import { CityPersonAttractionLinkDto } from './city-person-attraction-link.dto';
|
|
4
|
+
import { PersonDomainEnum } from './enum/person-domain.enum';
|
|
5
|
+
import { PersonOccupationEnum } from './enum/person-occupation.enum';
|
|
6
|
+
import { PersonSourceEnum } from './enum/person-source.enum';
|
|
7
|
+
export declare class CreateCityPersonDto {
|
|
8
|
+
name: string;
|
|
9
|
+
slug?: string | null;
|
|
10
|
+
domains: PersonDomainEnum[];
|
|
11
|
+
occupations?: PersonOccupationEnum[];
|
|
12
|
+
fame: AttractionFameEnum;
|
|
13
|
+
birthYear?: number | null;
|
|
14
|
+
deathYear?: number | null;
|
|
15
|
+
wikidataId?: string | null;
|
|
16
|
+
photos?: string[];
|
|
17
|
+
coverPhotoIndex?: number | null;
|
|
18
|
+
tags?: string[];
|
|
19
|
+
primaryCityId?: number | null;
|
|
20
|
+
country?: CountriesEnum | null;
|
|
21
|
+
archived?: boolean;
|
|
22
|
+
source?: PersonSourceEnum;
|
|
23
|
+
attractions?: CityPersonAttractionLinkDto[];
|
|
24
|
+
}
|