@escapenavigator/types 1.10.149 → 1.10.151
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/admin/aggregator-order/create-aggregator-order.dto.d.ts +2 -0
- package/dist/admin/aggregator-order/create-aggregator-order.dto.js +7 -0
- package/dist/agb/get-for-order-service.dto.d.ts +7 -2
- package/dist/agb/get-for-order-service.dto.js +1 -2
- package/dist/city/city.ro.d.ts +1 -0
- package/dist/game-session/enum/game-session-event-type.enum.d.ts +12 -0
- package/dist/game-session/enum/game-session-event-type.enum.js +16 -0
- package/dist/game-session/enum/game-session-status.enum.d.ts +5 -0
- package/dist/game-session/enum/game-session-status.enum.js +9 -0
- package/dist/game-session/finish-game-session.dto.d.ts +9 -0
- package/dist/game-session/finish-game-session.dto.js +29 -0
- package/dist/game-session/game-session-event.dto.d.ts +7 -0
- package/dist/game-session/game-session-event.dto.js +41 -0
- package/dist/game-session/game-session.ro.d.ts +26 -0
- package/dist/game-session/game-session.ro.js +67 -0
- package/dist/game-session/start-game-session.dto.d.ts +5 -0
- package/dist/game-session/start-game-session.dto.js +29 -0
- package/dist/openapi/certificates/openapi-set-certificate-marketing-consent.dto.d.ts +8 -0
- package/dist/openapi/certificates/openapi-set-certificate-marketing-consent.dto.js +33 -0
- package/dist/openapi/orders/openapi-set-marketing-consent.dto.d.ts +9 -0
- package/dist/openapi/orders/openapi-set-marketing-consent.dto.js +34 -0
- package/dist/order/closing-document-generated.ro.d.ts +10 -0
- package/dist/order/closing-document-generated.ro.js +2 -0
- package/dist/order/create-order-closing-document.dto.d.ts +7 -2
- package/dist/order/create-order-closing-document.dto.js +8 -0
- package/dist/order/waivers/order-to-sign.ro.d.ts +11 -0
- package/dist/order/waivers/order-to-sign.ro.js +9 -0
- package/dist/order-checklist/order-checklist.ro.d.ts +4 -0
- package/dist/order-checklist/order-checklist.ro.js +21 -0
- package/dist/order-checklist/update-order-checklist.dto.d.ts +3 -0
- package/dist/order-checklist/update-order-checklist.dto.js +23 -0
- package/dist/order-group/create-order-group-closing-document.dto.d.ts +7 -2
- package/dist/order-group/create-order-group-closing-document.dto.js +8 -0
- package/dist/order-group/create-order-group-invoice.dto.d.ts +13 -3
- package/dist/order-group/create-order-group-invoice.dto.js +15 -0
- package/dist/order-transaction/create-order-invoice.dto.d.ts +13 -3
- package/dist/order-transaction/create-order-invoice.dto.js +15 -0
- package/dist/order-transaction/invoice-generated.ro.d.ts +11 -0
- package/dist/order-transaction/invoice-generated.ro.js +2 -0
- package/dist/questroom/checklist-item.d.ts +9 -0
- package/dist/questroom/checklist-item.js +40 -0
- package/dist/questroom/questroom-checklist.ro.d.ts +5 -0
- package/dist/questroom/questroom-checklist.ro.js +23 -0
- package/dist/questroom/questroom-light.ro.d.ts +7 -0
- package/dist/questroom/questroom-light.ro.js +5 -0
- package/dist/questroom/update-questroom-checklist.dto.d.ts +4 -0
- package/dist/questroom/update-questroom-checklist.dto.js +25 -0
- package/dist/questroom-device/create-questroom-device.dto.d.ts +13 -0
- package/dist/questroom-device/create-questroom-device.dto.js +63 -0
- package/dist/questroom-device/enum/device-connection-type.enum.d.ts +5 -0
- package/dist/questroom-device/enum/device-connection-type.enum.js +9 -0
- package/dist/questroom-device/enum/device-kind.enum.d.ts +4 -0
- package/dist/questroom-device/enum/device-kind.enum.js +8 -0
- package/dist/questroom-device/questroom-device.ro.d.ts +13 -0
- package/dist/questroom-device/questroom-device.ro.js +51 -0
- package/dist/questroom-device/trigger-device.dto.d.ts +10 -0
- package/dist/questroom-device/trigger-device.dto.js +23 -0
- package/dist/questroom-riddle/create-questroom-riddle-locale.dto.d.ts +12 -0
- package/dist/questroom-riddle/create-questroom-riddle-locale.dto.js +69 -0
- package/dist/questroom-riddle/create-questroom-riddle.dto.d.ts +24 -0
- package/dist/questroom-riddle/create-questroom-riddle.dto.js +73 -0
- package/dist/questroom-riddle/enum/riddle-tts-mood.enum.d.ts +8 -0
- package/dist/questroom-riddle/enum/riddle-tts-mood.enum.js +12 -0
- package/dist/questroom-riddle/enum/riddle-tts-voice.enum.d.ts +12 -0
- package/dist/questroom-riddle/enum/riddle-tts-voice.enum.js +16 -0
- package/dist/questroom-riddle/enum/riddle-type.enum.d.ts +5 -0
- package/dist/questroom-riddle/enum/riddle-type.enum.js +9 -0
- package/dist/questroom-riddle/generate-riddle-audio.dto.d.ts +12 -0
- package/dist/questroom-riddle/generate-riddle-audio.dto.js +48 -0
- package/dist/questroom-riddle/generate-riddle-audio.ro.d.ts +3 -0
- package/dist/questroom-riddle/generate-riddle-audio.ro.js +2 -0
- package/dist/questroom-riddle/questroom-riddle.ro.d.ts +27 -0
- package/dist/questroom-riddle/questroom-riddle.ro.js +97 -0
- package/dist/role/create-role.dto.d.ts +1 -0
- package/dist/role/create-role.dto.js +6 -0
- package/dist/role/role.ro.d.ts +1 -0
- package/dist/role/role.ro.js +4 -0
- package/dist/shared/language-to-country.d.ts +16 -0
- package/dist/shared/language-to-country.js +54 -0
- package/dist/shared/source.enum.d.ts +2 -1
- package/dist/shared/source.enum.js +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -20,6 +20,13 @@ __decorate([
|
|
|
20
20
|
(0, class_transformer_1.Expose)(),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
22
|
], CreateAggregatorOrderDto.prototype, "phone", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsBoolean)(),
|
|
26
|
+
(0, class_transformer_1.Transform)(({ value }) => !!value),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", Boolean)
|
|
29
|
+
], CreateAggregatorOrderDto.prototype, "sendAds", void 0);
|
|
23
30
|
__decorate([
|
|
24
31
|
(0, class_validator_1.IsOptional)(),
|
|
25
32
|
(0, class_transformer_1.Expose)(),
|
|
@@ -1,6 +1,11 @@
|
|
|
1
|
-
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
1
|
import { AgbTypeEnum } from './agb-type.enum';
|
|
3
2
|
export declare class GetForOrderServiceDto {
|
|
4
3
|
type: AgbTypeEnum;
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Локаль-сегмент из публичного URL `/documents/:type/:country`. Принимает
|
|
6
|
+
* как код страны (`de`, `us`), так и код языка игры (`en`, `cs`): сервис
|
|
7
|
+
* сам резолвит язык в основную страну (`resolveCountryFromLocale`) с
|
|
8
|
+
* фолбэком на USA.
|
|
9
|
+
*/
|
|
10
|
+
country: string;
|
|
6
11
|
}
|
|
@@ -11,7 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.GetForOrderServiceDto = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
15
14
|
const agb_type_enum_1 = require("./agb-type.enum");
|
|
16
15
|
class GetForOrderServiceDto {
|
|
17
16
|
}
|
|
@@ -21,6 +20,6 @@ __decorate([
|
|
|
21
20
|
__metadata("design:type", String)
|
|
22
21
|
], GetForOrderServiceDto.prototype, "type", void 0);
|
|
23
22
|
__decorate([
|
|
24
|
-
(0, class_validator_1.
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
25
24
|
__metadata("design:type", String)
|
|
26
25
|
], GetForOrderServiceDto.prototype, "country", void 0);
|
package/dist/city/city.ro.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum GameSessionEventTypeEnum {
|
|
2
|
+
START = "start",
|
|
3
|
+
PAUSE = "pause",
|
|
4
|
+
RESUME = "resume",
|
|
5
|
+
HINT_PLAYED = "hint_played",
|
|
6
|
+
RIDDLE_SOLVED = "riddle_solved",
|
|
7
|
+
RIDDLE_UNSOLVED = "riddle_unsolved",
|
|
8
|
+
INTRO_PLAYED = "intro_played",
|
|
9
|
+
OUTRO_PLAYED = "outro_played",
|
|
10
|
+
DEVICE_TRIGGER = "device_trigger",
|
|
11
|
+
STOP = "stop"
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GameSessionEventTypeEnum = void 0;
|
|
4
|
+
var GameSessionEventTypeEnum;
|
|
5
|
+
(function (GameSessionEventTypeEnum) {
|
|
6
|
+
GameSessionEventTypeEnum["START"] = "start";
|
|
7
|
+
GameSessionEventTypeEnum["PAUSE"] = "pause";
|
|
8
|
+
GameSessionEventTypeEnum["RESUME"] = "resume";
|
|
9
|
+
GameSessionEventTypeEnum["HINT_PLAYED"] = "hint_played";
|
|
10
|
+
GameSessionEventTypeEnum["RIDDLE_SOLVED"] = "riddle_solved";
|
|
11
|
+
GameSessionEventTypeEnum["RIDDLE_UNSOLVED"] = "riddle_unsolved";
|
|
12
|
+
GameSessionEventTypeEnum["INTRO_PLAYED"] = "intro_played";
|
|
13
|
+
GameSessionEventTypeEnum["OUTRO_PLAYED"] = "outro_played";
|
|
14
|
+
GameSessionEventTypeEnum["DEVICE_TRIGGER"] = "device_trigger";
|
|
15
|
+
GameSessionEventTypeEnum["STOP"] = "stop";
|
|
16
|
+
})(GameSessionEventTypeEnum || (exports.GameSessionEventTypeEnum = GameSessionEventTypeEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GameSessionStatusEnum = void 0;
|
|
4
|
+
var GameSessionStatusEnum;
|
|
5
|
+
(function (GameSessionStatusEnum) {
|
|
6
|
+
GameSessionStatusEnum["RUNNING"] = "running";
|
|
7
|
+
GameSessionStatusEnum["PAUSED"] = "paused";
|
|
8
|
+
GameSessionStatusEnum["FINISHED"] = "finished";
|
|
9
|
+
})(GameSessionStatusEnum || (exports.GameSessionStatusEnum = GameSessionStatusEnum = {}));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class FinishGameSessionDto {
|
|
2
|
+
/** Итоговое время в минутах. Если не передано — считается из таймера сессии. */
|
|
3
|
+
result?: number;
|
|
4
|
+
/**
|
|
5
|
+
* Записывать ли результат в карточку брони. По умолчанию true.
|
|
6
|
+
* Если false — игра завершается, но результат в заказ не пишется.
|
|
7
|
+
*/
|
|
8
|
+
recordResult?: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.FinishGameSessionDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class FinishGameSessionDto {
|
|
16
|
+
}
|
|
17
|
+
exports.FinishGameSessionDto = FinishGameSessionDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
(0, class_validator_1.IsNumber)(),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], FinishGameSessionDto.prototype, "result", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_validator_1.IsBoolean)(),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", Boolean)
|
|
29
|
+
], FinishGameSessionDto.prototype, "recordResult", void 0);
|
|
@@ -0,0 +1,41 @@
|
|
|
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.GameSessionEventDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const game_session_event_type_enum_1 = require("./enum/game-session-event-type.enum");
|
|
16
|
+
class GameSessionEventDto {
|
|
17
|
+
}
|
|
18
|
+
exports.GameSessionEventDto = GameSessionEventDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsEnum)(game_session_event_type_enum_1.GameSessionEventTypeEnum),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], GameSessionEventDto.prototype, "type", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_validator_1.IsNumber)(),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], GameSessionEventDto.prototype, "riddleId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_validator_1.IsIn)([1, 2, 3]),
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], GameSessionEventDto.prototype, "hintLevel", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_validator_1.IsNumber)(),
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], GameSessionEventDto.prototype, "deviceId", void 0);
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
+
import { RO } from '../shared/ro-class';
|
|
3
|
+
import { GameSessionStatusEnum } from './enum/game-session-status.enum';
|
|
4
|
+
export type SolvedRiddle = {
|
|
5
|
+
riddleId: number;
|
|
6
|
+
solvedAt: string;
|
|
7
|
+
hintsUsed: number[];
|
|
8
|
+
};
|
|
9
|
+
export declare class GameSessionRO extends RO {
|
|
10
|
+
orderId: number;
|
|
11
|
+
questroomId: number;
|
|
12
|
+
/** Название квеста, который ведёт эта игра (для подписи в панели). */
|
|
13
|
+
questroomTitle?: string;
|
|
14
|
+
masterUserId?: number;
|
|
15
|
+
language: Languages;
|
|
16
|
+
status: GameSessionStatusEnum;
|
|
17
|
+
startedAt: Date;
|
|
18
|
+
finishedAt?: Date | null;
|
|
19
|
+
/** Момент последнего входа в паузу (ISO). `null` если сейчас не на паузе. */
|
|
20
|
+
pausedAt?: Date | null;
|
|
21
|
+
/** Накопленная пауза в миллисекундах. */
|
|
22
|
+
pausedAccumulatedMs: number;
|
|
23
|
+
/** Полная длительность игры в секундах (из quest.time). */
|
|
24
|
+
totalDurationSec: number;
|
|
25
|
+
solvedRiddles: SolvedRiddle[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GameSessionRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
15
|
+
const ro_class_1 = require("../shared/ro-class");
|
|
16
|
+
const game_session_status_enum_1 = require("./enum/game-session-status.enum");
|
|
17
|
+
class GameSessionRO extends ro_class_1.RO {
|
|
18
|
+
}
|
|
19
|
+
exports.GameSessionRO = GameSessionRO;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], GameSessionRO.prototype, "orderId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], GameSessionRO.prototype, "questroomId", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], GameSessionRO.prototype, "questroomTitle", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], GameSessionRO.prototype, "masterUserId", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], GameSessionRO.prototype, "language", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], GameSessionRO.prototype, "status", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
__metadata("design:type", Date)
|
|
47
|
+
], GameSessionRO.prototype, "startedAt", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_transformer_1.Expose)(),
|
|
50
|
+
__metadata("design:type", Date)
|
|
51
|
+
], GameSessionRO.prototype, "finishedAt", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
__metadata("design:type", Date)
|
|
55
|
+
], GameSessionRO.prototype, "pausedAt", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], GameSessionRO.prototype, "pausedAccumulatedMs", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_transformer_1.Expose)(),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], GameSessionRO.prototype, "totalDurationSec", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, class_transformer_1.Expose)(),
|
|
66
|
+
__metadata("design:type", Array)
|
|
67
|
+
], GameSessionRO.prototype, "solvedRiddles", void 0);
|
|
@@ -0,0 +1,29 @@
|
|
|
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.StartGameSessionDto = 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
|
+
class StartGameSessionDto {
|
|
17
|
+
}
|
|
18
|
+
exports.StartGameSessionDto = StartGameSessionDto;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_validator_1.IsPositive)(),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], StartGameSessionDto.prototype, "orderId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_validator_1.IsEnum)(languages_enum_1.Languages),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], StartGameSessionDto.prototype, "language", void 0);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Согласие клиента на маркетинговую рассылку в флоу покупки сертификата.
|
|
3
|
+
* Лёгкая точка: только проставляет `client.sendAds` (side-effect Mailchimp).
|
|
4
|
+
*/
|
|
5
|
+
export declare class OpenapiSetCertificateMarketingConsentDto {
|
|
6
|
+
certificateToken: string;
|
|
7
|
+
sendAds: boolean;
|
|
8
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.OpenapiSetCertificateMarketingConsentDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const is_not_blank_1 = require("../../shared/is-not-blank");
|
|
16
|
+
/**
|
|
17
|
+
* Согласие клиента на маркетинговую рассылку в флоу покупки сертификата.
|
|
18
|
+
* Лёгкая точка: только проставляет `client.sendAds` (side-effect Mailchimp).
|
|
19
|
+
*/
|
|
20
|
+
class OpenapiSetCertificateMarketingConsentDto {
|
|
21
|
+
}
|
|
22
|
+
exports.OpenapiSetCertificateMarketingConsentDto = OpenapiSetCertificateMarketingConsentDto;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
25
|
+
(0, class_transformer_1.Expose)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], OpenapiSetCertificateMarketingConsentDto.prototype, "certificateToken", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsBoolean)(),
|
|
30
|
+
(0, class_transformer_1.Transform)(({ value }) => !!value),
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
__metadata("design:type", Boolean)
|
|
33
|
+
], OpenapiSetCertificateMarketingConsentDto.prototype, "sendAds", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Обновление согласия клиента заказа на маркетинговую рассылку. Используется
|
|
3
|
+
* блоком согласий на экране оплаты виджета — лёгкая точка, не пересчитывает
|
|
4
|
+
* заказ, только проставляет `client.sendAds` (с side-effect в Mailchimp).
|
|
5
|
+
*/
|
|
6
|
+
export declare class OpenapiSetMarketingConsentDto {
|
|
7
|
+
orderToken: string;
|
|
8
|
+
sendAds: boolean;
|
|
9
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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.OpenapiSetMarketingConsentDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const is_not_blank_1 = require("../../shared/is-not-blank");
|
|
16
|
+
/**
|
|
17
|
+
* Обновление согласия клиента заказа на маркетинговую рассылку. Используется
|
|
18
|
+
* блоком согласий на экране оплаты виджета — лёгкая точка, не пересчитывает
|
|
19
|
+
* заказ, только проставляет `client.sendAds` (с side-effect в Mailchimp).
|
|
20
|
+
*/
|
|
21
|
+
class OpenapiSetMarketingConsentDto {
|
|
22
|
+
}
|
|
23
|
+
exports.OpenapiSetMarketingConsentDto = OpenapiSetMarketingConsentDto;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], OpenapiSetMarketingConsentDto.prototype, "orderToken", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsBoolean)(),
|
|
31
|
+
(0, class_transformer_1.Transform)(({ value }) => !!value),
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], OpenapiSetMarketingConsentDto.prototype, "sendAds", void 0);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ответ на «сформировать закрывающий документ (чек)» — первый из двух тапов.
|
|
3
|
+
* PDF сгенерирован и залит в S3, ссылка сохранена в `order.closingDocumentLink`
|
|
4
|
+
* (или `group.closingDocumentLink`), но письмо клиенту ещё НЕ отправлено.
|
|
5
|
+
* Отправка — отдельным тапом через `.../closing-document/:id/resend`.
|
|
6
|
+
*/
|
|
7
|
+
export type ClosingDocumentGeneratedRO = {
|
|
8
|
+
success: boolean;
|
|
9
|
+
closingDocumentLink: string;
|
|
10
|
+
};
|
|
@@ -10,10 +10,15 @@ export declare class CreateOrderClosingDocumentDto {
|
|
|
10
10
|
cashboxId: number;
|
|
11
11
|
organizationName: string;
|
|
12
12
|
organizationAddress: string;
|
|
13
|
-
organizationTaxId
|
|
13
|
+
organizationTaxId?: string;
|
|
14
14
|
organizationRegistrationNumber?: string;
|
|
15
|
-
contactPerson
|
|
15
|
+
contactPerson?: string;
|
|
16
16
|
contactEmail?: string;
|
|
17
17
|
contactPhone?: string;
|
|
18
18
|
comment?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Дата оказания услуги (ISO `yyyy-MM-dd`). Показывается в шапке PDF под датой
|
|
21
|
+
* документа. По умолчанию на форме — дата игры; оператор может изменить.
|
|
22
|
+
*/
|
|
23
|
+
serviceDate?: string;
|
|
19
24
|
}
|
|
@@ -40,6 +40,7 @@ __decorate([
|
|
|
40
40
|
], CreateOrderClosingDocumentDto.prototype, "organizationAddress", void 0);
|
|
41
41
|
__decorate([
|
|
42
42
|
(0, class_validator_1.IsString)(),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
43
44
|
(0, class_transformer_1.Expose)(),
|
|
44
45
|
__metadata("design:type", String)
|
|
45
46
|
], CreateOrderClosingDocumentDto.prototype, "organizationTaxId", void 0);
|
|
@@ -51,6 +52,7 @@ __decorate([
|
|
|
51
52
|
], CreateOrderClosingDocumentDto.prototype, "organizationRegistrationNumber", void 0);
|
|
52
53
|
__decorate([
|
|
53
54
|
(0, class_validator_1.IsString)(),
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
56
|
(0, class_transformer_1.Expose)(),
|
|
55
57
|
__metadata("design:type", String)
|
|
56
58
|
], CreateOrderClosingDocumentDto.prototype, "contactPerson", void 0);
|
|
@@ -72,3 +74,9 @@ __decorate([
|
|
|
72
74
|
(0, class_transformer_1.Expose)(),
|
|
73
75
|
__metadata("design:type", String)
|
|
74
76
|
], CreateOrderClosingDocumentDto.prototype, "comment", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, class_validator_1.IsString)(),
|
|
79
|
+
(0, class_validator_1.IsOptional)(),
|
|
80
|
+
(0, class_transformer_1.Expose)(),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], CreateOrderClosingDocumentDto.prototype, "serviceDate", void 0);
|
|
@@ -8,6 +8,12 @@ declare class Client {
|
|
|
8
8
|
patronymic: string;
|
|
9
9
|
email: string;
|
|
10
10
|
phone: string;
|
|
11
|
+
/**
|
|
12
|
+
* Текущее согласие клиента на маркетинговую рассылку. Если уже `true`
|
|
13
|
+
* (дал согласие при записи) — на экране подписания вейвера маркетинговый
|
|
14
|
+
* чекбокс не показываем.
|
|
15
|
+
*/
|
|
16
|
+
sendAds: boolean;
|
|
11
17
|
}
|
|
12
18
|
declare class Participant {
|
|
13
19
|
clientType: ClientTypeEnum;
|
|
@@ -31,6 +37,11 @@ export declare class OrderForSignRO extends QuestroomRow {
|
|
|
31
37
|
profileId: number;
|
|
32
38
|
profileTitle?: string;
|
|
33
39
|
profileLogo?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Slug компании оператора — нужен для публичной ссылки на клиентское
|
|
42
|
+
* соглашение (`/company/:slug/terms-of-services`) в блоке согласий.
|
|
43
|
+
*/
|
|
44
|
+
profileSlug?: string;
|
|
34
45
|
language?: Languages;
|
|
35
46
|
isRu: boolean;
|
|
36
47
|
canceledWithFine: boolean;
|
|
@@ -37,6 +37,11 @@ __decorate([
|
|
|
37
37
|
(0, class_transformer_1.Expose)(),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], Client.prototype, "phone", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
(0, class_transformer_1.Transform)(({ value }) => !!value),
|
|
43
|
+
__metadata("design:type", Boolean)
|
|
44
|
+
], Client.prototype, "sendAds", void 0);
|
|
40
45
|
class Participant {
|
|
41
46
|
}
|
|
42
47
|
__decorate([
|
|
@@ -109,6 +114,10 @@ __decorate([
|
|
|
109
114
|
(0, class_transformer_1.Expose)(),
|
|
110
115
|
__metadata("design:type", String)
|
|
111
116
|
], OrderForSignRO.prototype, "profileLogo", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, class_transformer_1.Expose)(),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], OrderForSignRO.prototype, "profileSlug", void 0);
|
|
112
121
|
__decorate([
|
|
113
122
|
(0, class_transformer_1.Expose)(),
|
|
114
123
|
__metadata("design:type", String)
|
|
@@ -0,0 +1,21 @@
|
|
|
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.OrderChecklistRO = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
/** Состояние выполнения чеклиста для конкретной брони (ленивая загрузка). */
|
|
15
|
+
class OrderChecklistRO {
|
|
16
|
+
}
|
|
17
|
+
exports.OrderChecklistRO = OrderChecklistRO;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_transformer_1.Expose)(),
|
|
20
|
+
__metadata("design:type", Array)
|
|
21
|
+
], OrderChecklistRO.prototype, "checkedItemIds", void 0);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.UpdateOrderChecklistDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class UpdateOrderChecklistDto {
|
|
16
|
+
}
|
|
17
|
+
exports.UpdateOrderChecklistDto = UpdateOrderChecklistDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsArray)(),
|
|
20
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", Array)
|
|
23
|
+
], UpdateOrderChecklistDto.prototype, "checkedItemIds", void 0);
|
|
@@ -8,10 +8,15 @@ export declare class CreateOrderGroupClosingDocumentDto {
|
|
|
8
8
|
cashboxId: number;
|
|
9
9
|
organizationName: string;
|
|
10
10
|
organizationAddress: string;
|
|
11
|
-
organizationTaxId
|
|
11
|
+
organizationTaxId?: string;
|
|
12
12
|
organizationRegistrationNumber?: string;
|
|
13
|
-
contactPerson
|
|
13
|
+
contactPerson?: string;
|
|
14
14
|
contactEmail?: string;
|
|
15
15
|
contactPhone?: string;
|
|
16
16
|
comment?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Дата оказания услуги (ISO `yyyy-MM-dd`). Показывается в шапке PDF под датой
|
|
19
|
+
* документа. По умолчанию на форме — дата игры; оператор может изменить.
|
|
20
|
+
*/
|
|
21
|
+
serviceDate?: string;
|
|
17
22
|
}
|
|
@@ -38,6 +38,7 @@ __decorate([
|
|
|
38
38
|
], CreateOrderGroupClosingDocumentDto.prototype, "organizationAddress", void 0);
|
|
39
39
|
__decorate([
|
|
40
40
|
(0, class_validator_1.IsString)(),
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
41
42
|
(0, class_transformer_1.Expose)(),
|
|
42
43
|
__metadata("design:type", String)
|
|
43
44
|
], CreateOrderGroupClosingDocumentDto.prototype, "organizationTaxId", void 0);
|
|
@@ -49,6 +50,7 @@ __decorate([
|
|
|
49
50
|
], CreateOrderGroupClosingDocumentDto.prototype, "organizationRegistrationNumber", void 0);
|
|
50
51
|
__decorate([
|
|
51
52
|
(0, class_validator_1.IsString)(),
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
54
|
(0, class_transformer_1.Expose)(),
|
|
53
55
|
__metadata("design:type", String)
|
|
54
56
|
], CreateOrderGroupClosingDocumentDto.prototype, "contactPerson", void 0);
|
|
@@ -70,3 +72,9 @@ __decorate([
|
|
|
70
72
|
(0, class_transformer_1.Expose)(),
|
|
71
73
|
__metadata("design:type", String)
|
|
72
74
|
], CreateOrderGroupClosingDocumentDto.prototype, "comment", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsString)(),
|
|
77
|
+
(0, class_validator_1.IsOptional)(),
|
|
78
|
+
(0, class_transformer_1.Expose)(),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], CreateOrderGroupClosingDocumentDto.prototype, "serviceDate", void 0);
|