@escapenavigator/types 2.0.26 → 2.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agregator/agregator-questroom.ro.d.ts +0 -8
- package/dist/agregator/agregator-questroom.ro.js +0 -4
- package/dist/city/city.ro.d.ts +0 -2
- package/dist/city/update-city.dto.d.ts +0 -2
- package/dist/city/update-city.dto.js +0 -6
- package/dist/google-calendar/google-calendar.ro.d.ts +5 -0
- package/dist/google-calendar/google-calendar.ro.js +4 -0
- package/dist/profile/marketing-email/test-send-email-v2.dto.d.ts +10 -0
- package/dist/profile/marketing-email/test-send-email-v2.dto.js +7 -0
- package/dist/profile/profile-sms/dto/send-client-email.dto.d.ts +6 -0
- package/dist/{partners-portal/create-portal-material-order.dto.js → profile/profile-sms/dto/send-client-email.dto.js} +13 -15
- package/dist/profile/profile-sms/dto/send-client-sms.dto.d.ts +9 -0
- package/dist/{city-quest/import-city-quest.dto.js → profile/profile-sms/dto/send-client-sms.dto.js} +11 -10
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/upload/enum/image-type.enum.d.ts +1 -4
- package/dist/upload/enum/image-type.enum.js +0 -3
- package/dist/user/task/user-task.dto.d.ts +1 -0
- package/dist/user/task/user-task.dto.js +5 -0
- package/dist/user/task/user-task.ro.d.ts +7 -0
- package/dist/user/task/user-task.ro.js +23 -0
- package/package.json +2 -2
- package/dist/agregator/agregator-outdoor.ro.d.ts +0 -111
- package/dist/agregator/agregator-outdoor.ro.js +0 -11
- package/dist/city-attraction/attraction-content-languages.d.ts +0 -5
- package/dist/city-attraction/attraction-content-languages.js +0 -15
- package/dist/city-attraction/attraction-content-prompt-version.d.ts +0 -1
- package/dist/city-attraction/attraction-content-prompt-version.js +0 -5
- package/dist/city-attraction/attraction-content.d.ts +0 -24
- package/dist/city-attraction/attraction-content.js +0 -2
- package/dist/city-attraction/attraction-route-meta.d.ts +0 -21
- package/dist/city-attraction/attraction-route-meta.js +0 -2
- package/dist/city-attraction/attraction-triage.d.ts +0 -29
- package/dist/city-attraction/attraction-triage.js +0 -41
- package/dist/city-attraction/city-attraction-artifact.ro.d.ts +0 -19
- package/dist/city-attraction/city-attraction-artifact.ro.js +0 -2
- package/dist/city-attraction/city-attraction-locale.ro.d.ts +0 -18
- package/dist/city-attraction/city-attraction-locale.ro.js +0 -2
- package/dist/city-attraction/city-attraction.ro.d.ts +0 -57
- package/dist/city-attraction/city-attraction.ro.js +0 -2
- package/dist/city-attraction/create-city-attraction.dto.d.ts +0 -41
- package/dist/city-attraction/create-city-attraction.dto.js +0 -221
- package/dist/city-attraction/enum/attraction-artifact-kind.enum.d.ts +0 -13
- package/dist/city-attraction/enum/attraction-artifact-kind.enum.js +0 -17
- package/dist/city-attraction/enum/attraction-category.enum.d.ts +0 -21
- package/dist/city-attraction/enum/attraction-category.enum.js +0 -25
- package/dist/city-attraction/enum/attraction-fame.enum.d.ts +0 -10
- package/dist/city-attraction/enum/attraction-fame.enum.js +0 -14
- package/dist/city-attraction/enum/attraction-fun-fact-kind.enum.d.ts +0 -4
- package/dist/city-attraction/enum/attraction-fun-fact-kind.enum.js +0 -8
- package/dist/city-attraction/enum/attraction-indoor-outdoor.enum.d.ts +0 -5
- package/dist/city-attraction/enum/attraction-indoor-outdoor.enum.js +0 -9
- package/dist/city-attraction/enum/attraction-locale-status.enum.d.ts +0 -11
- package/dist/city-attraction/enum/attraction-locale-status.enum.js +0 -15
- package/dist/city-attraction/enum/attraction-review-status.enum.d.ts +0 -12
- package/dist/city-attraction/enum/attraction-review-status.enum.js +0 -16
- package/dist/city-attraction/enum/attraction-route-role.enum.d.ts +0 -11
- package/dist/city-attraction/enum/attraction-route-role.enum.js +0 -15
- package/dist/city-attraction/enum/attraction-source.enum.d.ts +0 -12
- package/dist/city-attraction/enum/attraction-source.enum.js +0 -16
- package/dist/city-attraction/generate-attraction-audio.dto.d.ts +0 -10
- package/dist/city-attraction/generate-attraction-audio.dto.js +0 -45
- package/dist/city-attraction/generate-attraction-audio.ro.d.ts +0 -3
- package/dist/city-attraction/generate-attraction-audio.ro.js +0 -2
- package/dist/city-attraction/moderate-city-attraction.dto.d.ts +0 -5
- package/dist/city-attraction/moderate-city-attraction.dto.js +0 -29
- package/dist/city-attraction/update-city-attraction.dto.d.ts +0 -5
- package/dist/city-attraction/update-city-attraction.dto.js +0 -8
- package/dist/city-attraction/upsert-city-attraction-artifact.dto.d.ts +0 -19
- package/dist/city-attraction/upsert-city-attraction-artifact.dto.js +0 -104
- package/dist/city-attraction/upsert-city-attraction-locale.dto.d.ts +0 -16
- package/dist/city-attraction/upsert-city-attraction-locale.dto.js +0 -75
- package/dist/city-person/city-person-attraction-link.dto.d.ts +0 -12
- package/dist/city-person/city-person-attraction-link.dto.js +0 -61
- package/dist/city-person/city-person-attraction-link.ro.d.ts +0 -15
- package/dist/city-person/city-person-attraction-link.ro.js +0 -2
- package/dist/city-person/city-person-locale.ro.d.ts +0 -15
- package/dist/city-person/city-person-locale.ro.js +0 -2
- package/dist/city-person/city-person.ro.d.ts +0 -46
- package/dist/city-person/city-person.ro.js +0 -2
- package/dist/city-person/create-city-person.dto.d.ts +0 -29
- package/dist/city-person/create-city-person.dto.js +0 -148
- package/dist/city-person/enum/person-attraction-role.enum.d.ts +0 -8
- package/dist/city-person/enum/person-attraction-role.enum.js +0 -12
- package/dist/city-person/enum/person-domain.enum.d.ts +0 -15
- package/dist/city-person/enum/person-domain.enum.js +0 -19
- package/dist/city-person/enum/person-fact-kind.enum.d.ts +0 -7
- package/dist/city-person/enum/person-fact-kind.enum.js +0 -11
- package/dist/city-person/enum/person-locale-status.enum.d.ts +0 -8
- package/dist/city-person/enum/person-locale-status.enum.js +0 -12
- package/dist/city-person/enum/person-occupation.enum.d.ts +0 -27
- package/dist/city-person/enum/person-occupation.enum.js +0 -31
- package/dist/city-person/enum/person-recognition.enum.d.ts +0 -9
- package/dist/city-person/enum/person-recognition.enum.js +0 -13
- package/dist/city-person/enum/person-review-status.enum.d.ts +0 -11
- package/dist/city-person/enum/person-review-status.enum.js +0 -15
- package/dist/city-person/enum/person-source.enum.d.ts +0 -7
- package/dist/city-person/enum/person-source.enum.js +0 -11
- package/dist/city-person/moderate-city-person.dto.d.ts +0 -5
- package/dist/city-person/moderate-city-person.dto.js +0 -29
- package/dist/city-person/person-attraction-facts.d.ts +0 -3
- package/dist/city-person/person-attraction-facts.js +0 -2
- package/dist/city-person/person-content-languages.d.ts +0 -5
- package/dist/city-person/person-content-languages.js +0 -15
- package/dist/city-person/person-content-prompt-version.d.ts +0 -2
- package/dist/city-person/person-content-prompt-version.js +0 -5
- package/dist/city-person/person-domain-color.d.ts +0 -20
- package/dist/city-person/person-domain-color.js +0 -78
- package/dist/city-person/person-locale-fact.d.ts +0 -7
- package/dist/city-person/person-locale-fact.js +0 -2
- package/dist/city-person/update-city-person.dto.d.ts +0 -5
- package/dist/city-person/update-city-person.dto.js +0 -8
- package/dist/city-person/upsert-city-person-locale.dto.d.ts +0 -21
- package/dist/city-person/upsert-city-person-locale.dto.js +0 -89
- package/dist/city-person/wikidata-autolink.d.ts +0 -23
- package/dist/city-person/wikidata-autolink.js +0 -23
- package/dist/city-quest/bind-city-quest.dto.d.ts +0 -4
- package/dist/city-quest/bind-city-quest.dto.js +0 -22
- package/dist/city-quest/city-quest-content.d.ts +0 -175
- package/dist/city-quest/city-quest-content.js +0 -2
- package/dist/city-quest/city-quest-locale-content.d.ts +0 -35
- package/dist/city-quest/city-quest-locale-content.js +0 -2
- package/dist/city-quest/city-quest-locale.ro.d.ts +0 -12
- package/dist/city-quest/city-quest-locale.ro.js +0 -2
- package/dist/city-quest/city-quest.ro.d.ts +0 -40
- package/dist/city-quest/city-quest.ro.js +0 -114
- package/dist/city-quest/enum/city-quest-locale-status.enum.d.ts +0 -11
- package/dist/city-quest/enum/city-quest-locale-status.enum.js +0 -15
- package/dist/city-quest/enum/city-quest-play-phase.enum.d.ts +0 -6
- package/dist/city-quest/enum/city-quest-play-phase.enum.js +0 -10
- package/dist/city-quest/enum/city-quest-session-event-type.enum.d.ts +0 -18
- package/dist/city-quest/enum/city-quest-session-event-type.enum.js +0 -22
- package/dist/city-quest/enum/city-quest-session-status.enum.d.ts +0 -5
- package/dist/city-quest/enum/city-quest-session-status.enum.js +0 -9
- package/dist/city-quest/enum/city-quest-status.enum.d.ts +0 -12
- package/dist/city-quest/enum/city-quest-status.enum.js +0 -16
- package/dist/city-quest/import-city-quest.dto.d.ts +0 -6
- package/dist/city-quest/quest-content-languages.d.ts +0 -5
- package/dist/city-quest/quest-content-languages.js +0 -14
- package/dist/city-quest/update-city-quest-content.dto.d.ts +0 -5
- package/dist/city-quest/update-city-quest-content.dto.js +0 -23
- package/dist/city-quest/update-city-quest-stop.dto.d.ts +0 -9
- package/dist/city-quest/update-city-quest-stop.dto.js +0 -45
- package/dist/city-quest/update-city-quest.dto.d.ts +0 -14
- package/dist/city-quest/update-city-quest.dto.js +0 -55
- package/dist/city-quest/upsert-city-quest-asset.dto.d.ts +0 -11
- package/dist/city-quest/upsert-city-quest-asset.dto.js +0 -40
- package/dist/city-quest/upsert-city-quest-locale.dto.d.ts +0 -10
- package/dist/city-quest/upsert-city-quest-locale.dto.js +0 -48
- package/dist/city-ready-route/city-ready-route-locale.ro.d.ts +0 -9
- package/dist/city-ready-route/city-ready-route-locale.ro.js +0 -2
- package/dist/city-ready-route/city-ready-route-stop.ro.d.ts +0 -24
- package/dist/city-ready-route/city-ready-route-stop.ro.js +0 -2
- package/dist/city-ready-route/city-ready-route.ro.d.ts +0 -22
- package/dist/city-ready-route/city-ready-route.ro.js +0 -2
- package/dist/city-ready-route/create-city-ready-route.dto.d.ts +0 -15
- package/dist/city-ready-route/create-city-ready-route.dto.js +0 -90
- package/dist/city-ready-route/enum/ready-route-status.enum.d.ts +0 -4
- package/dist/city-ready-route/enum/ready-route-status.enum.js +0 -8
- package/dist/city-ready-route/enum/ready-route-stop-kind.enum.d.ts +0 -4
- package/dist/city-ready-route/enum/ready-route-stop-kind.enum.js +0 -8
- package/dist/city-ready-route/estimate-ready-route-path.dto.d.ts +0 -14
- package/dist/city-ready-route/estimate-ready-route-path.dto.js +0 -39
- package/dist/city-ready-route/generate-ready-route-stop-audio.dto.d.ts +0 -13
- package/dist/city-ready-route/generate-ready-route-stop-audio.dto.js +0 -45
- package/dist/city-ready-route/ready-route-map-pool.ro.d.ts +0 -28
- package/dist/city-ready-route/ready-route-map-pool.ro.js +0 -2
- package/dist/city-ready-route/ready-route-stop-content.d.ts +0 -14
- package/dist/city-ready-route/ready-route-stop-content.js +0 -2
- package/dist/city-ready-route/update-city-ready-route.dto.d.ts +0 -5
- package/dist/city-ready-route/update-city-ready-route.dto.js +0 -8
- package/dist/city-ready-route/upsert-city-ready-route-locale.dto.d.ts +0 -7
- package/dist/city-ready-route/upsert-city-ready-route-locale.dto.js +0 -41
- package/dist/city-ready-route/upsert-city-ready-route-stop.dto.d.ts +0 -18
- package/dist/city-ready-route/upsert-city-ready-route-stop.dto.js +0 -86
- package/dist/openapi/city-player/city-entitlement.dto.d.ts +0 -23
- package/dist/openapi/city-player/city-entitlement.dto.js +0 -81
- package/dist/openapi/city-player/city-explore.ro.d.ts +0 -111
- package/dist/openapi/city-player/city-explore.ro.js +0 -2
- package/dist/openapi/city-player/city-player-apple-login.dto.d.ts +0 -11
- package/dist/openapi/city-player/city-player-apple-login.dto.js +0 -35
- package/dist/openapi/city-player/city-player-login.dto.d.ts +0 -8
- package/dist/openapi/city-player/city-player-login.dto.js +0 -27
- package/dist/openapi/city-player/city-player-request-code.dto.d.ts +0 -12
- package/dist/openapi/city-player/city-player-request-code.dto.js +0 -35
- package/dist/openapi/city-player/city-player-verify-code.dto.d.ts +0 -9
- package/dist/openapi/city-player/city-player-verify-code.dto.js +0 -32
- package/dist/openapi/city-player/city-player.ro.d.ts +0 -118
- package/dist/openapi/city-player/city-player.ro.js +0 -2
- package/dist/openapi/city-player/city-ready-route.ro.d.ts +0 -82
- package/dist/openapi/city-player/city-ready-route.ro.js +0 -2
- package/dist/openapi/city-player/free-route.d.ts +0 -35
- package/dist/openapi/city-player/free-route.js +0 -2
- package/dist/openapi/city-quest/play-answer.dto.d.ts +0 -5
- package/dist/openapi/city-quest/play-answer.dto.js +0 -30
- package/dist/openapi/city-quest/play-finale-choice.dto.d.ts +0 -3
- package/dist/openapi/city-quest/play-finale-choice.dto.js +0 -23
- package/dist/openapi/city-quest/play-hint.dto.d.ts +0 -3
- package/dist/openapi/city-quest/play-hint.dto.js +0 -22
- package/dist/openapi/city-quest/play-issue.dto.d.ts +0 -3
- package/dist/openapi/city-quest/play-issue.dto.js +0 -23
- package/dist/openapi/city-quest/play-start-session.dto.d.ts +0 -8
- package/dist/openapi/city-quest/play-start-session.dto.js +0 -41
- package/dist/openapi/city-quest/play-state.ro.d.ts +0 -201
- package/dist/openapi/city-quest/play-state.ro.js +0 -2
- package/dist/partners-portal/admin/admin-portal-partner.ro.d.ts +0 -10
- package/dist/partners-portal/admin/admin-portal-partner.ro.js +0 -2
- package/dist/partners-portal/admin/admin-update-portal-material-order.dto.d.ts +0 -5
- package/dist/partners-portal/admin/admin-update-portal-material-order.dto.js +0 -29
- package/dist/partners-portal/admin/admin-update-portal-partner.dto.d.ts +0 -6
- package/dist/partners-portal/admin/admin-update-portal-partner.dto.js +0 -37
- package/dist/partners-portal/create-partner-attraction.dto.d.ts +0 -33
- package/dist/partners-portal/create-partner-attraction.dto.js +0 -173
- package/dist/partners-portal/create-portal-material-order.dto.d.ts +0 -7
- package/dist/partners-portal/enum/portal-material-order-status.enum.d.ts +0 -7
- package/dist/partners-portal/enum/portal-material-order-status.enum.js +0 -11
- package/dist/partners-portal/enum/portal-partner-type.enum.d.ts +0 -6
- package/dist/partners-portal/enum/portal-partner-type.enum.js +0 -10
- package/dist/partners-portal/login-portal-partner.dto.d.ts +0 -4
- package/dist/partners-portal/login-portal-partner.dto.js +0 -28
- package/dist/partners-portal/partner-city-quest.dto.d.ts +0 -31
- package/dist/partners-portal/partner-city-quest.dto.js +0 -160
- package/dist/partners-portal/partner-city-quest.ro.d.ts +0 -11
- package/dist/partners-portal/partner-city-quest.ro.js +0 -2
- package/dist/partners-portal/portal-city-option.ro.d.ts +0 -7
- package/dist/partners-portal/portal-city-option.ro.js +0 -2
- package/dist/partners-portal/portal-material-order.ro.d.ts +0 -13
- package/dist/partners-portal/portal-material-order.ro.js +0 -2
- package/dist/partners-portal/portal-partner-email.dto.d.ts +0 -4
- package/dist/partners-portal/portal-partner-email.dto.js +0 -24
- package/dist/partners-portal/portal-partner.ro.d.ts +0 -25
- package/dist/partners-portal/portal-partner.ro.js +0 -2
- package/dist/partners-portal/portal-stats.ro.d.ts +0 -38
- package/dist/partners-portal/portal-stats.ro.js +0 -2
- package/dist/partners-portal/register-portal-partner.dto.d.ts +0 -12
- package/dist/partners-portal/register-portal-partner.dto.js +0 -52
- package/dist/partners-portal/reset-portal-partner-password.dto.d.ts +0 -6
- package/dist/partners-portal/reset-portal-partner-password.dto.js +0 -34
- package/dist/partners-portal/update-partner-attraction.dto.d.ts +0 -11
- package/dist/partners-portal/update-partner-attraction.dto.js +0 -35
- package/dist/partners-portal/update-portal-partner.dto.d.ts +0 -6
- package/dist/partners-portal/update-portal-partner.dto.js +0 -36
- package/dist/partners-portal/verify-portal-partner.dto.d.ts +0 -5
- package/dist/partners-portal/verify-portal-partner.dto.js +0 -29
- package/dist/shared/ai-cover.d.ts +0 -8
- package/dist/shared/ai-cover.js +0 -26
- package/dist/shared/city-pipeline.d.ts +0 -57
- package/dist/shared/city-pipeline.js +0 -64
- package/dist/shared/city-research.d.ts +0 -48
- package/dist/shared/city-research.js +0 -49
- package/dist/shared/content-batch.d.ts +0 -27
- package/dist/shared/content-batch.js +0 -41
- package/dist/shared/editorial-research.d.ts +0 -70
- package/dist/shared/editorial-research.js +0 -4
- package/dist/shared/fill-complete.d.ts +0 -26
- package/dist/shared/fill-complete.js +0 -46
- package/dist/shared/wikidata-enrichment.d.ts +0 -24
- package/dist/shared/wikidata-enrichment.js +0 -31
- package/dist/shared/wikidata-import.d.ts +0 -33
- package/dist/shared/wikidata-import.js +0 -53
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
-
/**
|
|
3
|
-
* Типы контента городского квеста (schema 1.1.0 из контент-пакета
|
|
4
|
-
* escapenaviator_city_quests). Контент хранится целиком в jsonb
|
|
5
|
-
* опубликованной версии; движок читает только описанные ниже поля,
|
|
6
|
-
* остальное прозрачно проксируется клиенту (или игнорируется).
|
|
7
|
-
*
|
|
8
|
-
* Текстовые поля могут быть либо строкой (монолингвальный контент),
|
|
9
|
-
* либо словарём переводов — движок резолвит через resolveLocalized().
|
|
10
|
-
*/
|
|
11
|
-
export type LocalizedText = string | Partial<Record<Languages, string>>;
|
|
12
|
-
export type CityQuestHint = {
|
|
13
|
-
level: number;
|
|
14
|
-
penalty: number;
|
|
15
|
-
text: LocalizedText;
|
|
16
|
-
};
|
|
17
|
-
export type CityQuestChoice = {
|
|
18
|
-
id: string;
|
|
19
|
-
label: LocalizedText;
|
|
20
|
-
};
|
|
21
|
-
export type CityQuestDynamicAnswer = {
|
|
22
|
-
/**
|
|
23
|
-
* Правила проверки, вычисляемые сервером в момент ответа:
|
|
24
|
-
* - server_compares_submitted_time_to_local_time (+ tolerance 'plus_minus_N_minutes')
|
|
25
|
-
* - server_accepts_current_hour_figure_number_on_12h_cycle
|
|
26
|
-
*/
|
|
27
|
-
rule: string;
|
|
28
|
-
tolerance?: string;
|
|
29
|
-
};
|
|
30
|
-
export type CityQuestChallenge = {
|
|
31
|
-
type: string;
|
|
32
|
-
prompt: LocalizedText;
|
|
33
|
-
choices?: CityQuestChoice[];
|
|
34
|
-
accepted_answers: string[];
|
|
35
|
-
dynamic_answer?: CityQuestDynamicAnswer;
|
|
36
|
-
team_split_roles?: Array<{
|
|
37
|
-
role: string;
|
|
38
|
-
task: LocalizedText;
|
|
39
|
-
}>;
|
|
40
|
-
audio_asset?: string;
|
|
41
|
-
normalization?: string[];
|
|
42
|
-
hints: CityQuestHint[];
|
|
43
|
-
solution_explanation: LocalizedText;
|
|
44
|
-
};
|
|
45
|
-
export type CityQuestFallback = {
|
|
46
|
-
trigger: string;
|
|
47
|
-
alternative_prompt: LocalizedText;
|
|
48
|
-
accepted_answers: string[];
|
|
49
|
-
asset_id?: string;
|
|
50
|
-
};
|
|
51
|
-
export type CityQuestStop = {
|
|
52
|
-
id: string;
|
|
53
|
-
order: number;
|
|
54
|
-
chapter_title?: LocalizedText;
|
|
55
|
-
/**
|
|
56
|
-
* Ключевая веха — точка, которую показываем на схеме маршрута в плеере
|
|
57
|
-
* (превью квеста). Помечается вручную в админке (чекбокс у точки).
|
|
58
|
-
*/
|
|
59
|
-
is_key_milestone?: boolean;
|
|
60
|
-
location: {
|
|
61
|
-
/**
|
|
62
|
-
* FK на city-attractions. Name/address/lat/lng/photos резолвятся
|
|
63
|
-
* live из каталога (admin + play). Свободная локация не допускается.
|
|
64
|
-
*/
|
|
65
|
-
attractionId: number;
|
|
66
|
-
display_name_before_solve?: string;
|
|
67
|
-
gps_radius_m: number;
|
|
68
|
-
/**
|
|
69
|
-
* @deprecated Снимок локации до каталога. Игнорируется движком,
|
|
70
|
-
* если задан attractionId; оставлен для чтения старых JSON.
|
|
71
|
-
*/
|
|
72
|
-
name?: string;
|
|
73
|
-
address?: string;
|
|
74
|
-
lat?: number;
|
|
75
|
-
lng?: number;
|
|
76
|
-
[key: string]: unknown;
|
|
77
|
-
};
|
|
78
|
-
navigation?: {
|
|
79
|
-
arrival_instruction?: LocalizedText;
|
|
80
|
-
from_previous?: LocalizedText;
|
|
81
|
-
walk_audio_asset?: string;
|
|
82
|
-
walk_micro_task?: LocalizedText;
|
|
83
|
-
};
|
|
84
|
-
story_before: LocalizedText;
|
|
85
|
-
story_after: LocalizedText;
|
|
86
|
-
historical_note?: LocalizedText;
|
|
87
|
-
challenge: CityQuestChallenge;
|
|
88
|
-
photo_challenge?: {
|
|
89
|
-
prompt: LocalizedText;
|
|
90
|
-
collage_slot?: number;
|
|
91
|
-
};
|
|
92
|
-
reward?: Record<string, unknown> & {
|
|
93
|
-
artifact_state?: string;
|
|
94
|
-
};
|
|
95
|
-
fallback: CityQuestFallback;
|
|
96
|
-
telemetry?: {
|
|
97
|
-
event_key?: string;
|
|
98
|
-
expected_solve_seconds?: number;
|
|
99
|
-
};
|
|
100
|
-
[key: string]: unknown;
|
|
101
|
-
};
|
|
102
|
-
export type CityQuestRouteEvent = {
|
|
103
|
-
id: string;
|
|
104
|
-
trigger_after_stop: string;
|
|
105
|
-
type: 'message' | 'theft_bonus' | 'timed_challenge';
|
|
106
|
-
content?: {
|
|
107
|
-
from?: string;
|
|
108
|
-
text?: LocalizedText;
|
|
109
|
-
};
|
|
110
|
-
bonus_challenge?: CityQuestChallenge;
|
|
111
|
-
bonus_points?: number;
|
|
112
|
-
soft_timer_seconds?: number;
|
|
113
|
-
[key: string]: unknown;
|
|
114
|
-
};
|
|
115
|
-
export type CityQuestFinale = {
|
|
116
|
-
final_puzzle?: CityQuestChallenge;
|
|
117
|
-
choice_prompt: LocalizedText;
|
|
118
|
-
choices: Array<{
|
|
119
|
-
id: string;
|
|
120
|
-
label: LocalizedText;
|
|
121
|
-
ending: LocalizedText;
|
|
122
|
-
}>;
|
|
123
|
-
recommended_canonical_ending?: string;
|
|
124
|
-
share_card?: unknown;
|
|
125
|
-
};
|
|
126
|
-
export type CityQuestScoring = {
|
|
127
|
-
starting_score?: number;
|
|
128
|
-
hint_penalties?: number[];
|
|
129
|
-
skip_penalty?: number;
|
|
130
|
-
wrong_answer_penalty?: number;
|
|
131
|
-
wrong_answer_rate_limit?: {
|
|
132
|
-
after_attempts: number;
|
|
133
|
-
cooldown_seconds: number;
|
|
134
|
-
};
|
|
135
|
-
bonus_points_max?: number;
|
|
136
|
-
[key: string]: unknown;
|
|
137
|
-
};
|
|
138
|
-
export type CityQuestContent = {
|
|
139
|
-
schema_version: string;
|
|
140
|
-
game_id: string;
|
|
141
|
-
status: string;
|
|
142
|
-
title: Partial<Record<Languages, string>>;
|
|
143
|
-
tagline?: Partial<Record<Languages, string>>;
|
|
144
|
-
/** Кто озвучил игру — показывается на стартовом экране плеера. */
|
|
145
|
-
voiced_by?: string;
|
|
146
|
-
locale_primary?: string;
|
|
147
|
-
supported_answer_languages?: string[];
|
|
148
|
-
/** IANA timezone города игры — нужен для time_dynamic задач. */
|
|
149
|
-
timezone?: string;
|
|
150
|
-
duration_minutes?: {
|
|
151
|
-
target: number;
|
|
152
|
-
range?: number[];
|
|
153
|
-
};
|
|
154
|
-
distance_km_approx?: number;
|
|
155
|
-
prologue?: Record<string, LocalizedText>;
|
|
156
|
-
onboarding?: unknown;
|
|
157
|
-
progress_artifact?: unknown;
|
|
158
|
-
meta_puzzle?: {
|
|
159
|
-
tokens_in_order: string[];
|
|
160
|
-
display_grouping?: string;
|
|
161
|
-
};
|
|
162
|
-
route_events?: CityQuestRouteEvent[];
|
|
163
|
-
finale: CityQuestFinale;
|
|
164
|
-
scoring?: CityQuestScoring;
|
|
165
|
-
self_guided_support?: {
|
|
166
|
-
auto_fallback_after_issue_reports?: {
|
|
167
|
-
same_stop_reports?: number;
|
|
168
|
-
window_hours?: number;
|
|
169
|
-
};
|
|
170
|
-
stuck_rescue?: unknown;
|
|
171
|
-
[key: string]: unknown;
|
|
172
|
-
};
|
|
173
|
-
stops: CityQuestStop[];
|
|
174
|
-
[key: string]: unknown;
|
|
175
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
-
import { Languages } from '../shared/enum/languages.enum';
|
|
3
|
-
import { RO } from '../shared/ro-class';
|
|
4
|
-
import { CityQuestLocaleRO } from './city-quest-locale.ro';
|
|
5
|
-
import { CityQuestStatusEnum } from './enum/city-quest-status.enum';
|
|
6
|
-
export declare class CityQuestBindingRO {
|
|
7
|
-
id: number;
|
|
8
|
-
questroomId: number;
|
|
9
|
-
profileId: number;
|
|
10
|
-
}
|
|
11
|
-
export declare class CityQuestAssetRO extends RO {
|
|
12
|
-
assetKey: string;
|
|
13
|
-
language?: Languages | null;
|
|
14
|
-
url: string;
|
|
15
|
-
transcript?: string | null;
|
|
16
|
-
}
|
|
17
|
-
export declare class CityQuestRO extends RO {
|
|
18
|
-
/** game_id из контента (esc-muc-stolen-hour-v1). */
|
|
19
|
-
key: string;
|
|
20
|
-
/** @deprecated Свободный текст города — заменён на cityId/cityTitle. */
|
|
21
|
-
city?: string;
|
|
22
|
-
/** Город каталога (FK на CityEntity). */
|
|
23
|
-
cityId?: number | null;
|
|
24
|
-
/** Название города из CityEntity — для отображения выбранного города в админке. */
|
|
25
|
-
cityTitle?: string | null;
|
|
26
|
-
country?: CountriesEnum | null;
|
|
27
|
-
/** Кто озвучил игру (content.voiced_by) — для стартового экрана. */
|
|
28
|
-
voicedBy?: string;
|
|
29
|
-
title: Partial<Record<Languages, string>>;
|
|
30
|
-
status: CityQuestStatusEnum;
|
|
31
|
-
rejectionReason?: string | null;
|
|
32
|
-
createdByPartnerId?: number | null;
|
|
33
|
-
/** Когда контент последний раз меняли. */
|
|
34
|
-
draftUpdatedAt?: Date | null;
|
|
35
|
-
stopsCount: number;
|
|
36
|
-
/** Ключи ассетов из контента, для которых не загружен файл. */
|
|
37
|
-
missingAssets?: string[];
|
|
38
|
-
bindings?: CityQuestBindingRO[];
|
|
39
|
-
locales?: CityQuestLocaleRO[];
|
|
40
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
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.CityQuestRO = exports.CityQuestAssetRO = exports.CityQuestBindingRO = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
15
|
-
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
16
|
-
const ro_class_1 = require("../shared/ro-class");
|
|
17
|
-
const city_quest_status_enum_1 = require("./enum/city-quest-status.enum");
|
|
18
|
-
class CityQuestBindingRO {
|
|
19
|
-
}
|
|
20
|
-
exports.CityQuestBindingRO = CityQuestBindingRO;
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, class_transformer_1.Expose)(),
|
|
23
|
-
__metadata("design:type", Number)
|
|
24
|
-
], CityQuestBindingRO.prototype, "id", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_transformer_1.Expose)(),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], CityQuestBindingRO.prototype, "questroomId", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_transformer_1.Expose)(),
|
|
31
|
-
__metadata("design:type", Number)
|
|
32
|
-
], CityQuestBindingRO.prototype, "profileId", void 0);
|
|
33
|
-
class CityQuestAssetRO extends ro_class_1.RO {
|
|
34
|
-
}
|
|
35
|
-
exports.CityQuestAssetRO = CityQuestAssetRO;
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, class_transformer_1.Expose)(),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], CityQuestAssetRO.prototype, "assetKey", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, class_transformer_1.Expose)(),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], CityQuestAssetRO.prototype, "language", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, class_transformer_1.Expose)(),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], CityQuestAssetRO.prototype, "url", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, class_transformer_1.Expose)(),
|
|
50
|
-
__metadata("design:type", String)
|
|
51
|
-
], CityQuestAssetRO.prototype, "transcript", void 0);
|
|
52
|
-
class CityQuestRO extends ro_class_1.RO {
|
|
53
|
-
}
|
|
54
|
-
exports.CityQuestRO = CityQuestRO;
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, class_transformer_1.Expose)(),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], CityQuestRO.prototype, "key", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, class_transformer_1.Expose)(),
|
|
61
|
-
__metadata("design:type", String)
|
|
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);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, class_transformer_1.Expose)(),
|
|
73
|
-
__metadata("design:type", String)
|
|
74
|
-
], CityQuestRO.prototype, "country", void 0);
|
|
75
|
-
__decorate([
|
|
76
|
-
(0, class_transformer_1.Expose)(),
|
|
77
|
-
__metadata("design:type", String)
|
|
78
|
-
], CityQuestRO.prototype, "voicedBy", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, class_transformer_1.Expose)(),
|
|
81
|
-
__metadata("design:type", Object)
|
|
82
|
-
], CityQuestRO.prototype, "title", void 0);
|
|
83
|
-
__decorate([
|
|
84
|
-
(0, class_transformer_1.Expose)(),
|
|
85
|
-
__metadata("design:type", String)
|
|
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);
|
|
91
|
-
__decorate([
|
|
92
|
-
(0, class_transformer_1.Expose)(),
|
|
93
|
-
__metadata("design:type", Number)
|
|
94
|
-
], CityQuestRO.prototype, "createdByPartnerId", void 0);
|
|
95
|
-
__decorate([
|
|
96
|
-
(0, class_transformer_1.Expose)(),
|
|
97
|
-
__metadata("design:type", Date)
|
|
98
|
-
], CityQuestRO.prototype, "draftUpdatedAt", void 0);
|
|
99
|
-
__decorate([
|
|
100
|
-
(0, class_transformer_1.Expose)(),
|
|
101
|
-
__metadata("design:type", Number)
|
|
102
|
-
], CityQuestRO.prototype, "stopsCount", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
(0, class_transformer_1.Expose)(),
|
|
105
|
-
__metadata("design:type", Array)
|
|
106
|
-
], CityQuestRO.prototype, "missingAssets", void 0);
|
|
107
|
-
__decorate([
|
|
108
|
-
(0, class_transformer_1.Expose)(),
|
|
109
|
-
__metadata("design:type", Array)
|
|
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);
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
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,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CityQuestPlayPhaseEnum = void 0;
|
|
4
|
-
var CityQuestPlayPhaseEnum;
|
|
5
|
-
(function (CityQuestPlayPhaseEnum) {
|
|
6
|
-
CityQuestPlayPhaseEnum["STOPS"] = "stops";
|
|
7
|
-
CityQuestPlayPhaseEnum["FINALE_PUZZLE"] = "finale_puzzle";
|
|
8
|
-
CityQuestPlayPhaseEnum["FINALE_CHOICE"] = "finale_choice";
|
|
9
|
-
CityQuestPlayPhaseEnum["FINISHED"] = "finished";
|
|
10
|
-
})(CityQuestPlayPhaseEnum || (exports.CityQuestPlayPhaseEnum = CityQuestPlayPhaseEnum = {}));
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare enum CityQuestSessionEventTypeEnum {
|
|
2
|
-
SESSION_STARTED = "session_started",
|
|
3
|
-
ARRIVAL = "arrival",
|
|
4
|
-
ANSWER_CORRECT = "answer_correct",
|
|
5
|
-
ANSWER_WRONG = "answer_wrong",
|
|
6
|
-
HINT = "hint",
|
|
7
|
-
SKIP = "skip",
|
|
8
|
-
REVEAL = "reveal",
|
|
9
|
-
FALLBACK_USED = "fallback_used",
|
|
10
|
-
ROUTE_EVENT_DELIVERED = "route_event_delivered",
|
|
11
|
-
ROUTE_EVENT_SOLVED = "route_event_solved",
|
|
12
|
-
ROUTE_EVENT_DISMISSED = "route_event_dismissed",
|
|
13
|
-
FINALE_ASSEMBLY_SOLVED = "finale_assembly_solved",
|
|
14
|
-
FINALE_CHOICE = "finale_choice",
|
|
15
|
-
PAUSE = "pause",
|
|
16
|
-
RESUME = "resume",
|
|
17
|
-
ISSUE_REPORTED = "issue_reported"
|
|
18
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CityQuestSessionEventTypeEnum = void 0;
|
|
4
|
-
var CityQuestSessionEventTypeEnum;
|
|
5
|
-
(function (CityQuestSessionEventTypeEnum) {
|
|
6
|
-
CityQuestSessionEventTypeEnum["SESSION_STARTED"] = "session_started";
|
|
7
|
-
CityQuestSessionEventTypeEnum["ARRIVAL"] = "arrival";
|
|
8
|
-
CityQuestSessionEventTypeEnum["ANSWER_CORRECT"] = "answer_correct";
|
|
9
|
-
CityQuestSessionEventTypeEnum["ANSWER_WRONG"] = "answer_wrong";
|
|
10
|
-
CityQuestSessionEventTypeEnum["HINT"] = "hint";
|
|
11
|
-
CityQuestSessionEventTypeEnum["SKIP"] = "skip";
|
|
12
|
-
CityQuestSessionEventTypeEnum["REVEAL"] = "reveal";
|
|
13
|
-
CityQuestSessionEventTypeEnum["FALLBACK_USED"] = "fallback_used";
|
|
14
|
-
CityQuestSessionEventTypeEnum["ROUTE_EVENT_DELIVERED"] = "route_event_delivered";
|
|
15
|
-
CityQuestSessionEventTypeEnum["ROUTE_EVENT_SOLVED"] = "route_event_solved";
|
|
16
|
-
CityQuestSessionEventTypeEnum["ROUTE_EVENT_DISMISSED"] = "route_event_dismissed";
|
|
17
|
-
CityQuestSessionEventTypeEnum["FINALE_ASSEMBLY_SOLVED"] = "finale_assembly_solved";
|
|
18
|
-
CityQuestSessionEventTypeEnum["FINALE_CHOICE"] = "finale_choice";
|
|
19
|
-
CityQuestSessionEventTypeEnum["PAUSE"] = "pause";
|
|
20
|
-
CityQuestSessionEventTypeEnum["RESUME"] = "resume";
|
|
21
|
-
CityQuestSessionEventTypeEnum["ISSUE_REPORTED"] = "issue_reported";
|
|
22
|
-
})(CityQuestSessionEventTypeEnum || (exports.CityQuestSessionEventTypeEnum = CityQuestSessionEventTypeEnum = {}));
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CityQuestSessionStatusEnum = void 0;
|
|
4
|
-
var CityQuestSessionStatusEnum;
|
|
5
|
-
(function (CityQuestSessionStatusEnum) {
|
|
6
|
-
CityQuestSessionStatusEnum["ACTIVE"] = "active";
|
|
7
|
-
CityQuestSessionStatusEnum["PAUSED"] = "paused";
|
|
8
|
-
CityQuestSessionStatusEnum["FINISHED"] = "finished";
|
|
9
|
-
})(CityQuestSessionStatusEnum || (exports.CityQuestSessionStatusEnum = CityQuestSessionStatusEnum = {}));
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Lifecycle of a city quest (street game).
|
|
3
|
-
* Only `ready` is visible in the player catalog and playable.
|
|
4
|
-
*/
|
|
5
|
-
export declare enum CityQuestStatusEnum {
|
|
6
|
-
DRAFT = "draft",
|
|
7
|
-
NEED_REVIEW = "need_review",
|
|
8
|
-
REJECTED = "rejected",
|
|
9
|
-
READY = "ready",
|
|
10
|
-
/** Hidden from catalog without deleting. */
|
|
11
|
-
PAUSED = "paused"
|
|
12
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
-
*/
|
|
8
|
-
var CityQuestStatusEnum;
|
|
9
|
-
(function (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. */
|
|
15
|
-
CityQuestStatusEnum["PAUSED"] = "paused";
|
|
16
|
-
})(CityQuestStatusEnum || (exports.CityQuestStatusEnum = CityQuestStatusEnum = {}));
|
|
@@ -1,5 +0,0 @@
|
|
|
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;
|
|
@@ -1,14 +0,0 @@
|
|
|
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;
|
|
@@ -1,23 +0,0 @@
|
|
|
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);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** Точечное редактирование одной точки (stop) в content квеста. */
|
|
2
|
-
export declare class UpdateCityQuestStopDto {
|
|
3
|
-
/** Ключевая веха — показывать точку на схеме маршрута в плеере. */
|
|
4
|
-
isKeyMilestone?: boolean;
|
|
5
|
-
/** Привязка к каталогу достопримечательностей. */
|
|
6
|
-
attractionId?: number;
|
|
7
|
-
gpsRadiusM?: number;
|
|
8
|
-
displayNameBeforeSolve?: string | null;
|
|
9
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
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);
|