@escapenavigator/types 2.0.26 → 2.0.28
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/aggregator-companies/aggregator-quest.ro.d.ts +51 -0
- 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-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
- /package/dist/{city-attraction/attraction-content.js → aggregator-companies/aggregator-quest.ro.js} +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
-
import { ReadyRouteStopKindEnum } from './enum/ready-route-stop-kind.enum';
|
|
3
|
-
import { ReadyRouteStopContentOverride } from './ready-route-stop-content';
|
|
4
|
-
export declare class UpsertCityReadyRouteStopLocaleDto {
|
|
5
|
-
language: Languages;
|
|
6
|
-
content?: ReadyRouteStopContentOverride | null;
|
|
7
|
-
/** Озвучка guideTalk этого стопа (отдельная от аудио самой точки). */
|
|
8
|
-
guideAudioUrl?: string | null;
|
|
9
|
-
guideAudioDurationSec?: number | null;
|
|
10
|
-
}
|
|
11
|
-
export declare class UpsertCityReadyRouteStopDto {
|
|
12
|
-
order: number;
|
|
13
|
-
kind: ReadyRouteStopKindEnum;
|
|
14
|
-
attractionId?: number | null;
|
|
15
|
-
lat?: number | null;
|
|
16
|
-
lng?: number | null;
|
|
17
|
-
locales?: UpsertCityReadyRouteStopLocaleDto[];
|
|
18
|
-
}
|
|
@@ -1,86 +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.UpsertCityReadyRouteStopDto = exports.UpsertCityReadyRouteStopLocaleDto = 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 ready_route_stop_kind_enum_1 = require("./enum/ready-route-stop-kind.enum");
|
|
17
|
-
class UpsertCityReadyRouteStopLocaleDto {
|
|
18
|
-
}
|
|
19
|
-
exports.UpsertCityReadyRouteStopLocaleDto = UpsertCityReadyRouteStopLocaleDto;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
22
|
-
(0, class_transformer_1.Expose)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], UpsertCityReadyRouteStopLocaleDto.prototype, "language", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsOptional)(),
|
|
27
|
-
(0, class_transformer_1.Expose)(),
|
|
28
|
-
__metadata("design:type", Object)
|
|
29
|
-
], UpsertCityReadyRouteStopLocaleDto.prototype, "content", 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
|
-
], UpsertCityReadyRouteStopLocaleDto.prototype, "guideAudioUrl", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, class_validator_1.IsOptional)(),
|
|
38
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
39
|
-
(0, class_validator_1.IsNumber)(),
|
|
40
|
-
(0, class_transformer_1.Expose)(),
|
|
41
|
-
__metadata("design:type", Number)
|
|
42
|
-
], UpsertCityReadyRouteStopLocaleDto.prototype, "guideAudioDurationSec", void 0);
|
|
43
|
-
class UpsertCityReadyRouteStopDto {
|
|
44
|
-
}
|
|
45
|
-
exports.UpsertCityReadyRouteStopDto = UpsertCityReadyRouteStopDto;
|
|
46
|
-
__decorate([
|
|
47
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
48
|
-
(0, class_validator_1.IsInt)(),
|
|
49
|
-
(0, class_validator_1.Min)(0),
|
|
50
|
-
(0, class_transformer_1.Expose)(),
|
|
51
|
-
__metadata("design:type", Number)
|
|
52
|
-
], UpsertCityReadyRouteStopDto.prototype, "order", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, class_validator_1.IsEnum)(ready_route_stop_kind_enum_1.ReadyRouteStopKindEnum),
|
|
55
|
-
(0, class_transformer_1.Expose)(),
|
|
56
|
-
__metadata("design:type", String)
|
|
57
|
-
], UpsertCityReadyRouteStopDto.prototype, "kind", void 0);
|
|
58
|
-
__decorate([
|
|
59
|
-
(0, class_validator_1.IsOptional)(),
|
|
60
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
61
|
-
(0, class_validator_1.IsInt)(),
|
|
62
|
-
(0, class_transformer_1.Expose)(),
|
|
63
|
-
__metadata("design:type", Number)
|
|
64
|
-
], UpsertCityReadyRouteStopDto.prototype, "attractionId", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, class_validator_1.IsOptional)(),
|
|
67
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
68
|
-
(0, class_validator_1.IsNumber)(),
|
|
69
|
-
(0, class_transformer_1.Expose)(),
|
|
70
|
-
__metadata("design:type", Number)
|
|
71
|
-
], UpsertCityReadyRouteStopDto.prototype, "lat", void 0);
|
|
72
|
-
__decorate([
|
|
73
|
-
(0, class_validator_1.IsOptional)(),
|
|
74
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
75
|
-
(0, class_validator_1.IsNumber)(),
|
|
76
|
-
(0, class_transformer_1.Expose)(),
|
|
77
|
-
__metadata("design:type", Number)
|
|
78
|
-
], UpsertCityReadyRouteStopDto.prototype, "lng", void 0);
|
|
79
|
-
__decorate([
|
|
80
|
-
(0, class_validator_1.IsOptional)(),
|
|
81
|
-
(0, class_validator_1.IsArray)(),
|
|
82
|
-
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
83
|
-
(0, class_transformer_1.Type)(() => UpsertCityReadyRouteStopLocaleDto),
|
|
84
|
-
(0, class_transformer_1.Expose)(),
|
|
85
|
-
__metadata("design:type", Array)
|
|
86
|
-
], UpsertCityReadyRouteStopDto.prototype, "locales", void 0);
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare enum CityPlayerEntitlementScopeDtoEnum {
|
|
2
|
-
ROUTE = "route",
|
|
3
|
-
CITY = "city",
|
|
4
|
-
QUEST = "quest",
|
|
5
|
-
PASS = "pass"
|
|
6
|
-
}
|
|
7
|
-
export declare class CityPlayerDevGrantDto {
|
|
8
|
-
scope: CityPlayerEntitlementScopeDtoEnum;
|
|
9
|
-
scopeId?: number | null;
|
|
10
|
-
/** Matches CITY_ENTITLEMENT_DEV_SECRET when set. */
|
|
11
|
-
secret?: string;
|
|
12
|
-
}
|
|
13
|
-
export declare class CityPlayerDevRevokeDto {
|
|
14
|
-
entitlementId: number;
|
|
15
|
-
secret?: string;
|
|
16
|
-
}
|
|
17
|
-
/** After StoreKit/Play purchase via RevenueCat — grant entitlement on our side. */
|
|
18
|
-
export declare class CityPlayerIapGrantDto {
|
|
19
|
-
scope: CityPlayerEntitlementScopeDtoEnum;
|
|
20
|
-
scopeId?: number | null;
|
|
21
|
-
storeTransactionId: string;
|
|
22
|
-
productId?: string;
|
|
23
|
-
}
|
|
@@ -1,81 +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.CityPlayerIapGrantDto = exports.CityPlayerDevRevokeDto = exports.CityPlayerDevGrantDto = exports.CityPlayerEntitlementScopeDtoEnum = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
var CityPlayerEntitlementScopeDtoEnum;
|
|
16
|
-
(function (CityPlayerEntitlementScopeDtoEnum) {
|
|
17
|
-
CityPlayerEntitlementScopeDtoEnum["ROUTE"] = "route";
|
|
18
|
-
CityPlayerEntitlementScopeDtoEnum["CITY"] = "city";
|
|
19
|
-
CityPlayerEntitlementScopeDtoEnum["QUEST"] = "quest";
|
|
20
|
-
CityPlayerEntitlementScopeDtoEnum["PASS"] = "pass";
|
|
21
|
-
})(CityPlayerEntitlementScopeDtoEnum || (exports.CityPlayerEntitlementScopeDtoEnum = CityPlayerEntitlementScopeDtoEnum = {}));
|
|
22
|
-
class CityPlayerDevGrantDto {
|
|
23
|
-
}
|
|
24
|
-
exports.CityPlayerDevGrantDto = CityPlayerDevGrantDto;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsEnum)(CityPlayerEntitlementScopeDtoEnum),
|
|
27
|
-
(0, class_transformer_1.Expose)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], CityPlayerDevGrantDto.prototype, "scope", void 0);
|
|
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
|
-
], CityPlayerDevGrantDto.prototype, "scopeId", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, class_validator_1.IsOptional)(),
|
|
38
|
-
(0, class_validator_1.IsString)(),
|
|
39
|
-
(0, class_transformer_1.Expose)(),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], CityPlayerDevGrantDto.prototype, "secret", void 0);
|
|
42
|
-
class CityPlayerDevRevokeDto {
|
|
43
|
-
}
|
|
44
|
-
exports.CityPlayerDevRevokeDto = CityPlayerDevRevokeDto;
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, class_validator_1.IsInt)(),
|
|
47
|
-
(0, class_transformer_1.Expose)(),
|
|
48
|
-
__metadata("design:type", Number)
|
|
49
|
-
], CityPlayerDevRevokeDto.prototype, "entitlementId", 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
|
-
], CityPlayerDevRevokeDto.prototype, "secret", void 0);
|
|
56
|
-
/** After StoreKit/Play purchase via RevenueCat — grant entitlement on our side. */
|
|
57
|
-
class CityPlayerIapGrantDto {
|
|
58
|
-
}
|
|
59
|
-
exports.CityPlayerIapGrantDto = CityPlayerIapGrantDto;
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, class_validator_1.IsEnum)(CityPlayerEntitlementScopeDtoEnum),
|
|
62
|
-
(0, class_transformer_1.Expose)(),
|
|
63
|
-
__metadata("design:type", String)
|
|
64
|
-
], CityPlayerIapGrantDto.prototype, "scope", void 0);
|
|
65
|
-
__decorate([
|
|
66
|
-
(0, class_validator_1.IsOptional)(),
|
|
67
|
-
(0, class_validator_1.IsInt)(),
|
|
68
|
-
(0, class_transformer_1.Expose)(),
|
|
69
|
-
__metadata("design:type", Number)
|
|
70
|
-
], CityPlayerIapGrantDto.prototype, "scopeId", void 0);
|
|
71
|
-
__decorate([
|
|
72
|
-
(0, class_validator_1.IsString)(),
|
|
73
|
-
(0, class_transformer_1.Expose)(),
|
|
74
|
-
__metadata("design:type", String)
|
|
75
|
-
], CityPlayerIapGrantDto.prototype, "storeTransactionId", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, class_validator_1.IsOptional)(),
|
|
78
|
-
(0, class_validator_1.IsString)(),
|
|
79
|
-
(0, class_transformer_1.Expose)(),
|
|
80
|
-
__metadata("design:type", String)
|
|
81
|
-
], CityPlayerIapGrantDto.prototype, "productId", void 0);
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
import { AttractionCategoryEnum } from '../../city-attraction/enum/attraction-category.enum';
|
|
2
|
-
import { PersonAttractionRoleEnum } from '../../city-person/enum/person-attraction-role.enum';
|
|
3
|
-
import { PersonDomainEnum } from '../../city-person/enum/person-domain.enum';
|
|
4
|
-
import { PersonOccupationEnum } from '../../city-person/enum/person-occupation.enum';
|
|
5
|
-
import { PersonRecognitionEnum } from '../../city-person/enum/person-recognition.enum';
|
|
6
|
-
import { PersonLocaleFact } from '../../city-person/person-locale-fact';
|
|
7
|
-
/** Карточка личности в списке города. */
|
|
8
|
-
export type CityPlayerPersonListItemRO = {
|
|
9
|
-
personId: number;
|
|
10
|
-
name: string;
|
|
11
|
-
knownFor: string | null;
|
|
12
|
-
photoUrl: string | null;
|
|
13
|
-
domains: PersonDomainEnum[];
|
|
14
|
-
occupations: PersonOccupationEnum[];
|
|
15
|
-
/** Узнаваемость туристом без локальной истории. */
|
|
16
|
-
recognition: PersonRecognitionEnum;
|
|
17
|
-
birthYear: number | null;
|
|
18
|
-
deathYear: number | null;
|
|
19
|
-
};
|
|
20
|
-
export type CityPlayerPeopleRO = {
|
|
21
|
-
cityId: number;
|
|
22
|
-
city: string;
|
|
23
|
-
people: CityPlayerPersonListItemRO[];
|
|
24
|
-
};
|
|
25
|
-
/** Место, связанное с личностью. */
|
|
26
|
-
export type CityPlayerPersonPlaceRO = {
|
|
27
|
-
attractionId: number;
|
|
28
|
-
title: string;
|
|
29
|
-
knownFor: string | null;
|
|
30
|
-
photoUrl: string | null;
|
|
31
|
-
cityId: number;
|
|
32
|
-
cityTitle: string | null;
|
|
33
|
-
/** true — место в городе, с которого открыли личность. */
|
|
34
|
-
isCurrentCity: boolean;
|
|
35
|
-
role: PersonAttractionRoleEnum;
|
|
36
|
-
yearFrom: number | null;
|
|
37
|
-
yearTo: number | null;
|
|
38
|
-
note: string | null;
|
|
39
|
-
lat: number | null;
|
|
40
|
-
lng: number | null;
|
|
41
|
-
};
|
|
42
|
-
/** Детальная страница личности. */
|
|
43
|
-
export type CityPlayerPersonDetailRO = {
|
|
44
|
-
personId: number;
|
|
45
|
-
name: string;
|
|
46
|
-
knownFor: string | null;
|
|
47
|
-
description: string | null;
|
|
48
|
-
/** True when deep bio needs city pack / pass. */
|
|
49
|
-
descriptionLocked?: boolean;
|
|
50
|
-
photoUrl: string | null;
|
|
51
|
-
photos: string[];
|
|
52
|
-
domains: PersonDomainEnum[];
|
|
53
|
-
occupations: PersonOccupationEnum[];
|
|
54
|
-
birthYear: number | null;
|
|
55
|
-
deathYear: number | null;
|
|
56
|
-
facts: PersonLocaleFact[];
|
|
57
|
-
places: CityPlayerPersonPlaceRO[];
|
|
58
|
-
};
|
|
59
|
-
/** Точка на карте свободного маршрута / шторка. */
|
|
60
|
-
export type CityPlayerAttractionCardRO = {
|
|
61
|
-
emoji: string;
|
|
62
|
-
title: string;
|
|
63
|
-
body: string;
|
|
64
|
-
};
|
|
65
|
-
export type CityPlayerAttractionFunFactRO = {
|
|
66
|
-
emoji?: string;
|
|
67
|
-
title?: string;
|
|
68
|
-
body: string;
|
|
69
|
-
};
|
|
70
|
-
/** Личность, связанная с точкой на карте. */
|
|
71
|
-
export type CityPlayerAttractionPersonRO = {
|
|
72
|
-
personId: number;
|
|
73
|
-
name: string;
|
|
74
|
-
photoUrl: string | null;
|
|
75
|
-
};
|
|
76
|
-
export type CityPlayerAttractionMapItemRO = {
|
|
77
|
-
attractionId: number;
|
|
78
|
-
title: string;
|
|
79
|
-
knownFor: string | null;
|
|
80
|
-
description: string | null;
|
|
81
|
-
category: AttractionCategoryEnum;
|
|
82
|
-
address: string | null;
|
|
83
|
-
photoUrl: string | null;
|
|
84
|
-
photos: string[];
|
|
85
|
-
lat: number;
|
|
86
|
-
lng: number;
|
|
87
|
-
hook: string | null;
|
|
88
|
-
guideTalk: string | null;
|
|
89
|
-
guideAudioUrl: string | null;
|
|
90
|
-
guideAudioDurationSec: number | null;
|
|
91
|
-
cards: CityPlayerAttractionCardRO[];
|
|
92
|
-
funFact: CityPlayerAttractionFunFactRO | null;
|
|
93
|
-
lookFor: string[];
|
|
94
|
-
/** True when guide content is gated (needs city pack / pass). */
|
|
95
|
-
locked: boolean;
|
|
96
|
-
isFreePreview: boolean;
|
|
97
|
-
/**
|
|
98
|
-
* Нормированная значимость места 0..1 (fame + mustSee + wow).
|
|
99
|
-
* Управляет размером маркера на карте: топ-вехи крупнее.
|
|
100
|
-
*/
|
|
101
|
-
importance: number;
|
|
102
|
-
/** Люди, связанные с этим местом (для маркеров рядом с точкой). */
|
|
103
|
-
people: CityPlayerAttractionPersonRO[];
|
|
104
|
-
};
|
|
105
|
-
export type CityPlayerAttractionsMapRO = {
|
|
106
|
-
cityId: number;
|
|
107
|
-
city: string;
|
|
108
|
-
lat: number | null;
|
|
109
|
-
lng: number | null;
|
|
110
|
-
attractions: CityPlayerAttractionMapItemRO[];
|
|
111
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Вход через Apple (Sign in with Apple). Клиент присылает `identityToken`
|
|
3
|
-
* (JWT от Apple), бэк проверяет подпись по JWKS Apple и достаёт email/sub.
|
|
4
|
-
* Верификация stateless — работает на любом из беков (в отличие от кода
|
|
5
|
-
* подтверждения, привязанного к региону). `fullName` Apple отдаёт только
|
|
6
|
-
* при первом входе.
|
|
7
|
-
*/
|
|
8
|
-
export declare class CityPlayerAppleLoginDto {
|
|
9
|
-
identityToken: string;
|
|
10
|
-
fullName?: string;
|
|
11
|
-
}
|
|
@@ -1,35 +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.CityPlayerAppleLoginDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
/**
|
|
16
|
-
* Вход через Apple (Sign in with Apple). Клиент присылает `identityToken`
|
|
17
|
-
* (JWT от Apple), бэк проверяет подпись по JWKS Apple и достаёт email/sub.
|
|
18
|
-
* Верификация stateless — работает на любом из беков (в отличие от кода
|
|
19
|
-
* подтверждения, привязанного к региону). `fullName` Apple отдаёт только
|
|
20
|
-
* при первом входе.
|
|
21
|
-
*/
|
|
22
|
-
class CityPlayerAppleLoginDto {
|
|
23
|
-
}
|
|
24
|
-
exports.CityPlayerAppleLoginDto = CityPlayerAppleLoginDto;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsString)(),
|
|
27
|
-
(0, class_transformer_1.Expose)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], CityPlayerAppleLoginDto.prototype, "identityToken", 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
|
-
], CityPlayerAppleLoginDto.prototype, "fullName", void 0);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Обмен одноразового access-токена из письма (deep link `routale://.../g/:token`)
|
|
3
|
-
* на постоянный JWT игрока. Токен живёт ровно на одном из двух беков —
|
|
4
|
-
* приложение находит нужный failover'ом (см. player/api/failover-axios).
|
|
5
|
-
*/
|
|
6
|
-
export declare class CityPlayerLoginDto {
|
|
7
|
-
accessToken: string;
|
|
8
|
-
}
|
|
@@ -1,27 +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.CityPlayerLoginDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
/**
|
|
16
|
-
* Обмен одноразового access-токена из письма (deep link `routale://.../g/:token`)
|
|
17
|
-
* на постоянный JWT игрока. Токен живёт ровно на одном из двух беков —
|
|
18
|
-
* приложение находит нужный failover'ом (см. player/api/failover-axios).
|
|
19
|
-
*/
|
|
20
|
-
class CityPlayerLoginDto {
|
|
21
|
-
}
|
|
22
|
-
exports.CityPlayerLoginDto = CityPlayerLoginDto;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_validator_1.IsString)(),
|
|
25
|
-
(0, class_transformer_1.Expose)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], CityPlayerLoginDto.prototype, "accessToken", void 0);
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Запрос кода подтверждения для self-serve входа игрока по email.
|
|
3
|
-
* Бэк создаёт/находит игрока по email, генерирует 6-значный код и шлёт
|
|
4
|
-
* письмо. Ответ всегда 200 (анти-энумерация). Код живёт на том беке,
|
|
5
|
-
* куда ушёл запрос — verify обязан прийти на тот же регион (см.
|
|
6
|
-
* player/api/failover-axios: регион закрепляется между запросами).
|
|
7
|
-
*/
|
|
8
|
-
export declare class CityPlayerRequestCodeDto {
|
|
9
|
-
email: string;
|
|
10
|
-
/** Язык письма (ISO-2, напр. 'en' | 'ru'). По умолчанию EN. */
|
|
11
|
-
language?: string;
|
|
12
|
-
}
|
|
@@ -1,35 +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.CityPlayerRequestCodeDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
/**
|
|
16
|
-
* Запрос кода подтверждения для self-serve входа игрока по email.
|
|
17
|
-
* Бэк создаёт/находит игрока по email, генерирует 6-значный код и шлёт
|
|
18
|
-
* письмо. Ответ всегда 200 (анти-энумерация). Код живёт на том беке,
|
|
19
|
-
* куда ушёл запрос — verify обязан прийти на тот же регион (см.
|
|
20
|
-
* player/api/failover-axios: регион закрепляется между запросами).
|
|
21
|
-
*/
|
|
22
|
-
class CityPlayerRequestCodeDto {
|
|
23
|
-
}
|
|
24
|
-
exports.CityPlayerRequestCodeDto = CityPlayerRequestCodeDto;
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, class_validator_1.IsEmail)(),
|
|
27
|
-
(0, class_transformer_1.Expose)(),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], CityPlayerRequestCodeDto.prototype, "email", 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
|
-
], CityPlayerRequestCodeDto.prototype, "language", void 0);
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Проверка кода подтверждения и выдача постоянного JWT игрока. Неверный
|
|
3
|
-
* или просроченный код отдаётся как 400 (а НЕ 401/404) — иначе failover
|
|
4
|
-
* увёл бы verify на второй бек, где кода нет.
|
|
5
|
-
*/
|
|
6
|
-
export declare class CityPlayerVerifyCodeDto {
|
|
7
|
-
email: string;
|
|
8
|
-
code: string;
|
|
9
|
-
}
|
|
@@ -1,32 +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.CityPlayerVerifyCodeDto = void 0;
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
14
|
-
const class_validator_1 = require("class-validator");
|
|
15
|
-
/**
|
|
16
|
-
* Проверка кода подтверждения и выдача постоянного JWT игрока. Неверный
|
|
17
|
-
* или просроченный код отдаётся как 400 (а НЕ 401/404) — иначе failover
|
|
18
|
-
* увёл бы verify на второй бек, где кода нет.
|
|
19
|
-
*/
|
|
20
|
-
class CityPlayerVerifyCodeDto {
|
|
21
|
-
}
|
|
22
|
-
exports.CityPlayerVerifyCodeDto = CityPlayerVerifyCodeDto;
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, class_validator_1.IsEmail)(),
|
|
25
|
-
(0, class_transformer_1.Expose)(),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], CityPlayerVerifyCodeDto.prototype, "email", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, class_validator_1.IsString)(),
|
|
30
|
-
(0, class_transformer_1.Expose)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], CityPlayerVerifyCodeDto.prototype, "code", void 0);
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
import { CityQuestSessionStatusEnum } from '../../city-quest/enum/city-quest-session-status.enum';
|
|
2
|
-
import { CountriesEnum } from '../../shared/enum/countries.enum';
|
|
3
|
-
import { Languages } from '../../shared/enum/languages.enum';
|
|
4
|
-
import { PlayKeyMilestoneRO } from '../city-quest/play-state.ro';
|
|
5
|
-
export type CityPlayerRO = {
|
|
6
|
-
id: number;
|
|
7
|
-
email: string;
|
|
8
|
-
fullName?: string | null;
|
|
9
|
-
};
|
|
10
|
-
export type CityPlayerLoginRO = {
|
|
11
|
-
/** Постоянный JWT игрока (mode: 'city-player'). Хранится навсегда. */
|
|
12
|
-
token: string;
|
|
13
|
-
player: CityPlayerRO;
|
|
14
|
-
/** Access-токен, по которому вошли — чтобы сразу открыть игру. */
|
|
15
|
-
accessToken: string;
|
|
16
|
-
};
|
|
17
|
-
/** Ответ на запрос кода — всегда ok (анти-энумерация email). */
|
|
18
|
-
export type CityPlayerRequestCodeRO = {
|
|
19
|
-
ok: boolean;
|
|
20
|
-
};
|
|
21
|
-
/** Успешная проверка кода → постоянный JWT игрока. */
|
|
22
|
-
export type CityPlayerVerifyCodeRO = {
|
|
23
|
-
token: string;
|
|
24
|
-
player: CityPlayerRO;
|
|
25
|
-
};
|
|
26
|
-
/** Одна купленная игра в разделе «Мои игры». */
|
|
27
|
-
export type CityPlayerGameRO = {
|
|
28
|
-
accessToken: string;
|
|
29
|
-
cityQuestId: number;
|
|
30
|
-
title: string;
|
|
31
|
-
city?: string;
|
|
32
|
-
country?: CountriesEnum | null;
|
|
33
|
-
coverUrl?: string | null;
|
|
34
|
-
availableLanguages: Languages[];
|
|
35
|
-
/** Прогресс последней/активной сессии, если игра начата. */
|
|
36
|
-
lastSession?: {
|
|
37
|
-
sessionToken: string;
|
|
38
|
-
status: CityQuestSessionStatusEnum;
|
|
39
|
-
solvedStops: number;
|
|
40
|
-
totalStops: number;
|
|
41
|
-
} | null;
|
|
42
|
-
expiresAt?: string | null;
|
|
43
|
-
};
|
|
44
|
-
/** Карточка игры в общем каталоге (ещё не куплена). */
|
|
45
|
-
export type CityPlayerCatalogGameRO = {
|
|
46
|
-
cityQuestId: number;
|
|
47
|
-
key: string;
|
|
48
|
-
title: string;
|
|
49
|
-
tagline?: string | null;
|
|
50
|
-
coverUrl?: string | null;
|
|
51
|
-
availableLanguages: Languages[];
|
|
52
|
-
durationMinutes?: number | null;
|
|
53
|
-
distanceKm?: number | null;
|
|
54
|
-
pointsCount?: number;
|
|
55
|
-
/**
|
|
56
|
-
* Ссылка на booking-страницу виджета привязанного questroom
|
|
57
|
-
* (`{ordersDomain}/booking/{widgetUuid}`). Плеер открывает её для
|
|
58
|
-
* покупки. null — если игра ещё не привязана к questroom/виджету.
|
|
59
|
-
*/
|
|
60
|
-
bookingUrl?: string | null;
|
|
61
|
-
};
|
|
62
|
-
export type CityPlayerCatalogCityRO = {
|
|
63
|
-
/** ID города (CityEntity). */
|
|
64
|
-
cityId: number;
|
|
65
|
-
/** Название города (CityEntity.title). */
|
|
66
|
-
city: string;
|
|
67
|
-
/** Slug города (CityEntity.slug). */
|
|
68
|
-
slug: string;
|
|
69
|
-
country?: CountriesEnum | null;
|
|
70
|
-
/** Фото города из `CityEntity.photo`. */
|
|
71
|
-
photoUrl?: string | null;
|
|
72
|
-
/** Широта центра города (GeoJSON Point → lat). */
|
|
73
|
-
lat?: number | null;
|
|
74
|
-
/** Долгота центра города (GeoJSON Point → lng). */
|
|
75
|
-
lng?: number | null;
|
|
76
|
-
/**
|
|
77
|
-
* Расстояние до пользователя в км (если в catalog переданы lat/lng).
|
|
78
|
-
* null — геолокация недоступна или у города нет координат.
|
|
79
|
-
*/
|
|
80
|
-
distanceKm?: number | null;
|
|
81
|
-
/** Город в радиусе 50 км от пользователя. */
|
|
82
|
-
isNearby?: boolean;
|
|
83
|
-
games: CityPlayerCatalogGameRO[];
|
|
84
|
-
};
|
|
85
|
-
/** @deprecated Группировка по странам больше не используется в player catalog. */
|
|
86
|
-
export type CityPlayerCatalogCountryRO = {
|
|
87
|
-
country: CountriesEnum | null;
|
|
88
|
-
cities: CityPlayerCatalogCityRO[];
|
|
89
|
-
};
|
|
90
|
-
export type CityPlayerCatalogRO = {
|
|
91
|
-
cities: CityPlayerCatalogCityRO[];
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* Детальное превью квеста в каталоге (до покупки). Показывает схему
|
|
95
|
-
* маршрута по ключевым вехам и блок «что внутри».
|
|
96
|
-
*/
|
|
97
|
-
export type CityPlayerQuestPreviewRO = {
|
|
98
|
-
cityQuestId: number;
|
|
99
|
-
key: string;
|
|
100
|
-
title: string;
|
|
101
|
-
tagline?: string | null;
|
|
102
|
-
city?: string | null;
|
|
103
|
-
cityId?: number | null;
|
|
104
|
-
coverUrl?: string | null;
|
|
105
|
-
voicedBy?: string | null;
|
|
106
|
-
durationMinutes?: number | null;
|
|
107
|
-
distanceKm?: number | null;
|
|
108
|
-
pointsCount: number;
|
|
109
|
-
availableLanguages: Languages[];
|
|
110
|
-
/** Ссылка на booking-страницу привязанного questroom (покупка). */
|
|
111
|
-
bookingUrl?: string | null;
|
|
112
|
-
/** Ключевые вехи маршрута для схемы (фото + название + координаты). */
|
|
113
|
-
keyMilestones: PlayKeyMilestoneRO[];
|
|
114
|
-
/** Entitlement / IAP unlock for this quest (logged-in player). */
|
|
115
|
-
fullyUnlocked?: boolean;
|
|
116
|
-
/** Ready-to-play access token when player already owns the quest. */
|
|
117
|
-
accessToken?: string | null;
|
|
118
|
-
};
|