@escapenavigator/types 1.10.148 → 1.10.150

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.
Files changed (93) hide show
  1. package/dist/admin/aggregator-order/create-aggregator-order.dto.d.ts +2 -0
  2. package/dist/admin/aggregator-order/create-aggregator-order.dto.js +7 -0
  3. package/dist/agb/get-for-order-service.dto.d.ts +7 -2
  4. package/dist/agb/get-for-order-service.dto.js +1 -2
  5. package/dist/city/city.ro.d.ts +1 -0
  6. package/dist/game-session/enum/game-session-event-type.enum.d.ts +12 -0
  7. package/dist/game-session/enum/game-session-event-type.enum.js +16 -0
  8. package/dist/game-session/enum/game-session-status.enum.d.ts +5 -0
  9. package/dist/game-session/enum/game-session-status.enum.js +9 -0
  10. package/dist/game-session/finish-game-session.dto.d.ts +9 -0
  11. package/dist/{profile/cross-sale/early-booking/early-booking.ro.js → game-session/finish-game-session.dto.js} +10 -17
  12. package/dist/game-session/game-session-event.dto.d.ts +7 -0
  13. package/dist/{profile/cross-sale/early-booking/early-booking.dto.js → game-session/game-session-event.dto.js} +17 -20
  14. package/dist/game-session/game-session.ro.d.ts +26 -0
  15. package/dist/game-session/game-session.ro.js +67 -0
  16. package/dist/game-session/start-game-session.dto.d.ts +5 -0
  17. package/dist/game-session/start-game-session.dto.js +29 -0
  18. package/dist/openapi/certificates/openapi-set-certificate-marketing-consent.dto.d.ts +8 -0
  19. package/dist/openapi/certificates/openapi-set-certificate-marketing-consent.dto.js +33 -0
  20. package/dist/openapi/orders/openapi-set-marketing-consent.dto.d.ts +9 -0
  21. package/dist/openapi/orders/openapi-set-marketing-consent.dto.js +34 -0
  22. package/dist/order/closing-document-generated.ro.d.ts +10 -0
  23. package/dist/order/closing-document-generated.ro.js +2 -0
  24. package/dist/order/create-order-closing-document.dto.d.ts +7 -2
  25. package/dist/order/create-order-closing-document.dto.js +8 -0
  26. package/dist/order/order.ro.d.ts +2 -4
  27. package/dist/order/waivers/order-to-sign.ro.d.ts +11 -0
  28. package/dist/order/waivers/order-to-sign.ro.js +9 -0
  29. package/dist/order-checklist/order-checklist.ro.d.ts +4 -0
  30. package/dist/order-checklist/order-checklist.ro.js +21 -0
  31. package/dist/order-checklist/update-order-checklist.dto.d.ts +3 -0
  32. package/dist/order-checklist/update-order-checklist.dto.js +23 -0
  33. package/dist/order-group/create-order-group-closing-document.dto.d.ts +7 -2
  34. package/dist/order-group/create-order-group-closing-document.dto.js +8 -0
  35. package/dist/order-group/create-order-group-invoice.dto.d.ts +13 -3
  36. package/dist/order-group/create-order-group-invoice.dto.js +15 -0
  37. package/dist/order-transaction/create-order-invoice.dto.d.ts +13 -3
  38. package/dist/order-transaction/create-order-invoice.dto.js +15 -0
  39. package/dist/order-transaction/invoice-generated.ro.d.ts +11 -0
  40. package/dist/order-transaction/invoice-generated.ro.js +2 -0
  41. package/dist/promocode/create-promocode.dto.d.ts +1 -1
  42. package/dist/promocode/promocode.ro.d.ts +0 -1
  43. package/dist/promocode/promocode.ro.js +0 -4
  44. package/dist/questroom/checklist-item.d.ts +9 -0
  45. package/dist/{profile/cross-sale/up-sale/up-sale.ro.js → questroom/checklist-item.js} +18 -18
  46. package/dist/questroom/questroom-checklist.ro.d.ts +5 -0
  47. package/dist/questroom/questroom-checklist.ro.js +23 -0
  48. package/dist/questroom/questroom-light.ro.d.ts +7 -0
  49. package/dist/questroom/questroom-light.ro.js +5 -0
  50. package/dist/questroom/update-questroom-checklist.dto.d.ts +4 -0
  51. package/dist/questroom/update-questroom-checklist.dto.js +25 -0
  52. package/dist/questroom-device/create-questroom-device.dto.d.ts +13 -0
  53. package/dist/{profile/cross-sale/retargeting/retargeting.dto.js → questroom-device/create-questroom-device.dto.js} +33 -25
  54. package/dist/questroom-device/enum/device-connection-type.enum.d.ts +5 -0
  55. package/dist/questroom-device/enum/device-connection-type.enum.js +9 -0
  56. package/dist/questroom-device/enum/device-kind.enum.d.ts +4 -0
  57. package/dist/questroom-device/enum/device-kind.enum.js +8 -0
  58. package/dist/questroom-device/questroom-device.ro.d.ts +13 -0
  59. package/dist/{profile/cross-sale/retargeting/retargeting.ro.js → questroom-device/questroom-device.ro.js} +23 -17
  60. package/dist/questroom-device/trigger-device.dto.d.ts +10 -0
  61. package/dist/questroom-device/trigger-device.dto.js +23 -0
  62. package/dist/questroom-riddle/create-questroom-riddle-locale.dto.d.ts +12 -0
  63. package/dist/questroom-riddle/create-questroom-riddle-locale.dto.js +69 -0
  64. package/dist/questroom-riddle/create-questroom-riddle.dto.d.ts +24 -0
  65. package/dist/questroom-riddle/create-questroom-riddle.dto.js +73 -0
  66. package/dist/questroom-riddle/enum/riddle-tts-mood.enum.d.ts +8 -0
  67. package/dist/questroom-riddle/enum/riddle-tts-mood.enum.js +12 -0
  68. package/dist/questroom-riddle/enum/riddle-tts-voice.enum.d.ts +12 -0
  69. package/dist/questroom-riddle/enum/riddle-tts-voice.enum.js +16 -0
  70. package/dist/questroom-riddle/enum/riddle-type.enum.d.ts +5 -0
  71. package/dist/questroom-riddle/enum/riddle-type.enum.js +9 -0
  72. package/dist/questroom-riddle/generate-riddle-audio.dto.d.ts +12 -0
  73. package/dist/{profile/cross-sale/up-sale/up-sale.dto.js → questroom-riddle/generate-riddle-audio.dto.js} +22 -24
  74. package/dist/questroom-riddle/generate-riddle-audio.ro.d.ts +3 -0
  75. package/dist/questroom-riddle/generate-riddle-audio.ro.js +2 -0
  76. package/dist/questroom-riddle/questroom-riddle.ro.d.ts +27 -0
  77. package/dist/questroom-riddle/questroom-riddle.ro.js +97 -0
  78. package/dist/role/create-role.dto.d.ts +1 -0
  79. package/dist/role/create-role.dto.js +6 -0
  80. package/dist/role/role.ro.d.ts +1 -0
  81. package/dist/role/role.ro.js +4 -0
  82. package/dist/shared/language-to-country.d.ts +16 -0
  83. package/dist/shared/language-to-country.js +54 -0
  84. package/dist/tsconfig.build.tsbuildinfo +1 -1
  85. package/dist/utm/utm-field.enum.d.ts +1 -1
  86. package/dist/utm/utm-field.enum.js +1 -1
  87. package/package.json +2 -2
  88. package/dist/profile/cross-sale/early-booking/early-booking.dto.d.ts +0 -8
  89. package/dist/profile/cross-sale/early-booking/early-booking.ro.d.ts +0 -9
  90. package/dist/profile/cross-sale/retargeting/retargeting.dto.d.ts +0 -11
  91. package/dist/profile/cross-sale/retargeting/retargeting.ro.d.ts +0 -12
  92. package/dist/profile/cross-sale/up-sale/up-sale.dto.d.ts +0 -9
  93. package/dist/profile/cross-sale/up-sale/up-sale.ro.d.ts +0 -10
@@ -1,5 +1,7 @@
1
1
  export declare class CreateAggregatorOrderDto {
2
2
  phone: string;
3
+ /** Согласие на маркетинговую рассылку из блока согласий виджета. */
4
+ sendAds?: boolean;
3
5
  name: string;
4
6
  surname: string;
5
7
  email: string;
@@ -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
- country: CountriesEnum;
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.IsEnum)(countries_enum_1.CountriesEnum),
23
+ (0, class_validator_1.IsString)(),
25
24
  __metadata("design:type", String)
26
25
  ], GetForOrderServiceDto.prototype, "country", void 0);
@@ -7,6 +7,7 @@ export type CityRO = {
7
7
  photo?: string;
8
8
  coordinates: [number, number];
9
9
  questroomsCount: number;
10
+ locationsCount: number;
10
11
  slug: string;
11
12
  timeZone: string;
12
13
  inTitle: string;
@@ -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,5 @@
1
+ export declare enum GameSessionStatusEnum {
2
+ RUNNING = "running",
3
+ PAUSED = "paused",
4
+ FINISHED = "finished"
5
+ }
@@ -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
+ }
@@ -9,28 +9,21 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EarlyBookingRO = void 0;
12
+ exports.FinishGameSessionDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const ro_class_1 = require("../../../shared/ro-class");
15
- const cross_sale_ro_1 = require("../cross-sale.ro");
16
- const cross_sale_status_enum_1 = require("../cross-sale-status.enum");
17
- class EarlyBookingRO extends ro_class_1.RO {
14
+ const class_validator_1 = require("class-validator");
15
+ class FinishGameSessionDto {
18
16
  }
19
- exports.EarlyBookingRO = EarlyBookingRO;
17
+ exports.FinishGameSessionDto = FinishGameSessionDto;
20
18
  __decorate([
19
+ (0, class_validator_1.IsOptional)(),
20
+ (0, class_validator_1.IsNumber)(),
21
21
  (0, class_transformer_1.Expose)(),
22
22
  __metadata("design:type", Number)
23
- ], EarlyBookingRO.prototype, "sendBefore", void 0);
24
- __decorate([
25
- (0, class_transformer_1.Expose)(),
26
- __metadata("design:type", String)
27
- ], EarlyBookingRO.prototype, "status", void 0);
23
+ ], FinishGameSessionDto.prototype, "result", void 0);
28
24
  __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsBoolean)(),
29
27
  (0, class_transformer_1.Expose)(),
30
28
  __metadata("design:type", Boolean)
31
- ], EarlyBookingRO.prototype, "sendToAllParticipants", void 0);
32
- __decorate([
33
- (0, class_transformer_1.Expose)(),
34
- (0, class_transformer_1.Type)(() => cross_sale_ro_1.CrossSaleLocaleRO),
35
- __metadata("design:type", Array)
36
- ], EarlyBookingRO.prototype, "locales", void 0);
29
+ ], FinishGameSessionDto.prototype, "recordResult", void 0);
@@ -0,0 +1,7 @@
1
+ import { GameSessionEventTypeEnum } from './enum/game-session-event-type.enum';
2
+ export declare class GameSessionEventDto {
3
+ type: GameSessionEventTypeEnum;
4
+ riddleId?: number;
5
+ hintLevel?: 1 | 2 | 3;
6
+ deviceId?: number;
7
+ }
@@ -9,36 +9,33 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.EarlyBookingDto = void 0;
12
+ exports.GameSessionEventDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const class_validator_1 = require("class-validator");
15
- const cross_sale_dto_1 = require("../cross-sale.dto");
16
- const cross_sale_status_enum_1 = require("../cross-sale-status.enum");
17
- class EarlyBookingDto {
15
+ const game_session_event_type_enum_1 = require("./enum/game-session-event-type.enum");
16
+ class GameSessionEventDto {
18
17
  }
19
- exports.EarlyBookingDto = EarlyBookingDto;
18
+ exports.GameSessionEventDto = GameSessionEventDto;
20
19
  __decorate([
21
- (0, class_validator_1.IsEnum)(cross_sale_status_enum_1.CrossSaleStatusEnum),
20
+ (0, class_validator_1.IsEnum)(game_session_event_type_enum_1.GameSessionEventTypeEnum),
22
21
  (0, class_transformer_1.Expose)(),
23
22
  __metadata("design:type", String)
24
- ], EarlyBookingDto.prototype, "status", void 0);
23
+ ], GameSessionEventDto.prototype, "type", void 0);
25
24
  __decorate([
26
- (0, class_validator_1.IsPositive)(),
27
- (0, class_validator_1.Min)(2),
28
- (0, class_validator_1.Max)(7),
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsNumber)(),
29
27
  (0, class_transformer_1.Expose)(),
30
28
  __metadata("design:type", Number)
31
- ], EarlyBookingDto.prototype, "sendBefore", void 0);
29
+ ], GameSessionEventDto.prototype, "riddleId", void 0);
32
30
  __decorate([
33
- (0, class_validator_1.IsBoolean)(),
34
- (0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : true),
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsIn)([1, 2, 3]),
35
33
  (0, class_transformer_1.Expose)(),
36
- __metadata("design:type", Boolean)
37
- ], EarlyBookingDto.prototype, "sendToAllParticipants", void 0);
34
+ __metadata("design:type", Number)
35
+ ], GameSessionEventDto.prototype, "hintLevel", void 0);
38
36
  __decorate([
39
- (0, class_transformer_1.Type)(() => cross_sale_dto_1.CrossSaleLocaleDto),
40
- (0, class_validator_1.IsArray)(),
41
- (0, class_validator_1.ValidateNested)(),
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_validator_1.IsNumber)(),
42
39
  (0, class_transformer_1.Expose)(),
43
- __metadata("design:type", Array)
44
- ], EarlyBookingDto.prototype, "locales", void 0);
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,5 @@
1
+ import { Languages } from '../shared/enum/languages.enum';
2
+ export declare class StartGameSessionDto {
3
+ orderId: number;
4
+ language?: Languages;
5
+ }
@@ -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
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,10 +10,15 @@ export declare class CreateOrderClosingDocumentDto {
10
10
  cashboxId: number;
11
11
  organizationName: string;
12
12
  organizationAddress: string;
13
- organizationTaxId: string;
13
+ organizationTaxId?: string;
14
14
  organizationRegistrationNumber?: string;
15
- contactPerson: string;
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);
@@ -108,10 +108,8 @@ declare class ReturnedPromocode {
108
108
  }
109
109
  export declare class OrderRO extends RO {
110
110
  /**
111
- * UTM-метки — flat-поля прямо на ордере. Источник истины:
112
- * денормализованные колонки `OrderEntity.utm*`. Legacy-relation
113
- * `OrderEntity.utm` (eager:false) и сам `OrderUtmEntity` остались
114
- * только под refill, в RO/UI больше не пробрасываются.
111
+ * UTM-метки — flat-поля прямо на ордере. Источник истины —
112
+ * денормализованные колонки `OrderEntity.utm*`.
115
113
  */
116
114
  utmSource?: string | null;
117
115
  utmMedium?: string | null;
@@ -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,4 @@
1
+ /** Состояние выполнения чеклиста для конкретной брони (ленивая загрузка). */
2
+ export declare class OrderChecklistRO {
3
+ checkedItemIds: string[];
4
+ }
@@ -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,3 @@
1
+ export declare class UpdateOrderChecklistDto {
2
+ checkedItemIds: string[];
3
+ }
@@ -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);