@escapenavigator/types 1.10.149 → 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 (81) 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/game-session/finish-game-session.dto.js +29 -0
  12. package/dist/game-session/game-session-event.dto.d.ts +7 -0
  13. package/dist/game-session/game-session-event.dto.js +41 -0
  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/waivers/order-to-sign.ro.d.ts +11 -0
  27. package/dist/order/waivers/order-to-sign.ro.js +9 -0
  28. package/dist/order-checklist/order-checklist.ro.d.ts +4 -0
  29. package/dist/order-checklist/order-checklist.ro.js +21 -0
  30. package/dist/order-checklist/update-order-checklist.dto.d.ts +3 -0
  31. package/dist/order-checklist/update-order-checklist.dto.js +23 -0
  32. package/dist/order-group/create-order-group-closing-document.dto.d.ts +7 -2
  33. package/dist/order-group/create-order-group-closing-document.dto.js +8 -0
  34. package/dist/order-group/create-order-group-invoice.dto.d.ts +13 -3
  35. package/dist/order-group/create-order-group-invoice.dto.js +15 -0
  36. package/dist/order-transaction/create-order-invoice.dto.d.ts +13 -3
  37. package/dist/order-transaction/create-order-invoice.dto.js +15 -0
  38. package/dist/order-transaction/invoice-generated.ro.d.ts +11 -0
  39. package/dist/order-transaction/invoice-generated.ro.js +2 -0
  40. package/dist/questroom/checklist-item.d.ts +9 -0
  41. package/dist/questroom/checklist-item.js +40 -0
  42. package/dist/questroom/questroom-checklist.ro.d.ts +5 -0
  43. package/dist/questroom/questroom-checklist.ro.js +23 -0
  44. package/dist/questroom/questroom-light.ro.d.ts +7 -0
  45. package/dist/questroom/questroom-light.ro.js +5 -0
  46. package/dist/questroom/update-questroom-checklist.dto.d.ts +4 -0
  47. package/dist/questroom/update-questroom-checklist.dto.js +25 -0
  48. package/dist/questroom-device/create-questroom-device.dto.d.ts +13 -0
  49. package/dist/questroom-device/create-questroom-device.dto.js +63 -0
  50. package/dist/questroom-device/enum/device-connection-type.enum.d.ts +5 -0
  51. package/dist/questroom-device/enum/device-connection-type.enum.js +9 -0
  52. package/dist/questroom-device/enum/device-kind.enum.d.ts +4 -0
  53. package/dist/questroom-device/enum/device-kind.enum.js +8 -0
  54. package/dist/questroom-device/questroom-device.ro.d.ts +13 -0
  55. package/dist/questroom-device/questroom-device.ro.js +51 -0
  56. package/dist/questroom-device/trigger-device.dto.d.ts +10 -0
  57. package/dist/questroom-device/trigger-device.dto.js +23 -0
  58. package/dist/questroom-riddle/create-questroom-riddle-locale.dto.d.ts +12 -0
  59. package/dist/questroom-riddle/create-questroom-riddle-locale.dto.js +69 -0
  60. package/dist/questroom-riddle/create-questroom-riddle.dto.d.ts +24 -0
  61. package/dist/questroom-riddle/create-questroom-riddle.dto.js +73 -0
  62. package/dist/questroom-riddle/enum/riddle-tts-mood.enum.d.ts +8 -0
  63. package/dist/questroom-riddle/enum/riddle-tts-mood.enum.js +12 -0
  64. package/dist/questroom-riddle/enum/riddle-tts-voice.enum.d.ts +12 -0
  65. package/dist/questroom-riddle/enum/riddle-tts-voice.enum.js +16 -0
  66. package/dist/questroom-riddle/enum/riddle-type.enum.d.ts +5 -0
  67. package/dist/questroom-riddle/enum/riddle-type.enum.js +9 -0
  68. package/dist/questroom-riddle/generate-riddle-audio.dto.d.ts +12 -0
  69. package/dist/questroom-riddle/generate-riddle-audio.dto.js +48 -0
  70. package/dist/questroom-riddle/generate-riddle-audio.ro.d.ts +3 -0
  71. package/dist/questroom-riddle/generate-riddle-audio.ro.js +2 -0
  72. package/dist/questroom-riddle/questroom-riddle.ro.d.ts +27 -0
  73. package/dist/questroom-riddle/questroom-riddle.ro.js +97 -0
  74. package/dist/role/create-role.dto.d.ts +1 -0
  75. package/dist/role/create-role.dto.js +6 -0
  76. package/dist/role/role.ro.d.ts +1 -0
  77. package/dist/role/role.ro.js +4 -0
  78. package/dist/shared/language-to-country.d.ts +16 -0
  79. package/dist/shared/language-to-country.js +54 -0
  80. package/dist/tsconfig.build.tsbuildinfo +1 -1
  81. package/package.json +2 -2
@@ -10,10 +10,20 @@ export declare class CreateOrderGroupInvoiceDto {
10
10
  amount?: number;
11
11
  organizationName: string;
12
12
  organizationAddress: string;
13
- organizationTaxId: string;
13
+ organizationTaxId?: string;
14
14
  organizationRegistrationNumber?: string;
15
- contactPerson: string;
16
- contactEmail: string;
15
+ contactPerson?: string;
16
+ contactEmail?: string;
17
17
  contactPhone?: string;
18
18
  comment?: string;
19
+ /**
20
+ * Дата оказания услуги (ISO `yyyy-MM-dd`). Показывается в шапке PDF под датой
21
+ * документа. По умолчанию на форме — дата игры; оператор может изменить.
22
+ */
23
+ serviceDate?: string;
24
+ /**
25
+ * Срок оплаты в днях от даты счёта (по умолчанию 7). Из него считается
26
+ * «Срок оплаты» (dueDate) в шапке PDF.
27
+ */
28
+ paymentDays?: number;
19
29
  }
@@ -43,6 +43,7 @@ __decorate([
43
43
  ], CreateOrderGroupInvoiceDto.prototype, "organizationAddress", void 0);
44
44
  __decorate([
45
45
  (0, class_validator_1.IsString)(),
46
+ (0, class_validator_1.IsOptional)(),
46
47
  (0, class_transformer_1.Expose)(),
47
48
  __metadata("design:type", String)
48
49
  ], CreateOrderGroupInvoiceDto.prototype, "organizationTaxId", void 0);
@@ -54,11 +55,13 @@ __decorate([
54
55
  ], CreateOrderGroupInvoiceDto.prototype, "organizationRegistrationNumber", void 0);
55
56
  __decorate([
56
57
  (0, class_validator_1.IsString)(),
58
+ (0, class_validator_1.IsOptional)(),
57
59
  (0, class_transformer_1.Expose)(),
58
60
  __metadata("design:type", String)
59
61
  ], CreateOrderGroupInvoiceDto.prototype, "contactPerson", void 0);
60
62
  __decorate([
61
63
  (0, class_validator_1.IsString)(),
64
+ (0, class_validator_1.IsOptional)(),
62
65
  (0, class_transformer_1.Expose)(),
63
66
  __metadata("design:type", String)
64
67
  ], CreateOrderGroupInvoiceDto.prototype, "contactEmail", void 0);
@@ -74,3 +77,15 @@ __decorate([
74
77
  (0, class_transformer_1.Expose)(),
75
78
  __metadata("design:type", String)
76
79
  ], CreateOrderGroupInvoiceDto.prototype, "comment", void 0);
80
+ __decorate([
81
+ (0, class_validator_1.IsString)(),
82
+ (0, class_validator_1.IsOptional)(),
83
+ (0, class_transformer_1.Expose)(),
84
+ __metadata("design:type", String)
85
+ ], CreateOrderGroupInvoiceDto.prototype, "serviceDate", void 0);
86
+ __decorate([
87
+ (0, class_validator_1.IsNumber)(),
88
+ (0, class_validator_1.IsOptional)(),
89
+ (0, class_transformer_1.Expose)(),
90
+ __metadata("design:type", Number)
91
+ ], CreateOrderGroupInvoiceDto.prototype, "paymentDays", void 0);
@@ -4,10 +4,20 @@ export declare class CreateOrderInvoiceDto {
4
4
  amount?: number;
5
5
  organizationName: string;
6
6
  organizationAddress: string;
7
- organizationTaxId: string;
7
+ organizationTaxId?: string;
8
8
  organizationRegistrationNumber?: string;
9
- contactPerson: string;
10
- contactEmail: string;
9
+ contactPerson?: string;
10
+ contactEmail?: string;
11
11
  contactPhone?: string;
12
12
  comment?: string;
13
+ /**
14
+ * Дата оказания услуги (ISO `yyyy-MM-dd`). Показывается в шапке PDF под датой
15
+ * документа. По умолчанию на форме — дата игры; оператор может изменить.
16
+ */
17
+ serviceDate?: string;
18
+ /**
19
+ * Срок оплаты в днях от даты счёта (по умолчанию 7). Из него считается
20
+ * «Срок оплаты» (dueDate) в шапке PDF.
21
+ */
22
+ paymentDays?: number;
13
23
  }
@@ -43,6 +43,7 @@ __decorate([
43
43
  ], CreateOrderInvoiceDto.prototype, "organizationAddress", void 0);
44
44
  __decorate([
45
45
  (0, class_validator_1.IsString)(),
46
+ (0, class_validator_1.IsOptional)(),
46
47
  (0, class_transformer_1.Expose)(),
47
48
  __metadata("design:type", String)
48
49
  ], CreateOrderInvoiceDto.prototype, "organizationTaxId", void 0);
@@ -54,11 +55,13 @@ __decorate([
54
55
  ], CreateOrderInvoiceDto.prototype, "organizationRegistrationNumber", void 0);
55
56
  __decorate([
56
57
  (0, class_validator_1.IsString)(),
58
+ (0, class_validator_1.IsOptional)(),
57
59
  (0, class_transformer_1.Expose)(),
58
60
  __metadata("design:type", String)
59
61
  ], CreateOrderInvoiceDto.prototype, "contactPerson", void 0);
60
62
  __decorate([
61
63
  (0, class_validator_1.IsString)(),
64
+ (0, class_validator_1.IsOptional)(),
62
65
  (0, class_transformer_1.Expose)(),
63
66
  __metadata("design:type", String)
64
67
  ], CreateOrderInvoiceDto.prototype, "contactEmail", void 0);
@@ -74,3 +77,15 @@ __decorate([
74
77
  (0, class_transformer_1.Expose)(),
75
78
  __metadata("design:type", String)
76
79
  ], CreateOrderInvoiceDto.prototype, "comment", void 0);
80
+ __decorate([
81
+ (0, class_validator_1.IsString)(),
82
+ (0, class_validator_1.IsOptional)(),
83
+ (0, class_transformer_1.Expose)(),
84
+ __metadata("design:type", String)
85
+ ], CreateOrderInvoiceDto.prototype, "serviceDate", void 0);
86
+ __decorate([
87
+ (0, class_validator_1.IsNumber)(),
88
+ (0, class_validator_1.IsOptional)(),
89
+ (0, class_transformer_1.Expose)(),
90
+ __metadata("design:type", Number)
91
+ ], CreateOrderInvoiceDto.prototype, "paymentDays", void 0);
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Ответ на «сформировать счёт» (первый из двух тапов). PDF сгенерирован и
3
+ * залит в S3, создан/обновлён черновик-транзакция (type=CREATED), но письмо
4
+ * клиенту ещё НЕ отправлено. Фронт показывает превью и отдельным тапом дёргает
5
+ * `POST /order-transactions/invoice/:id/send`, чтобы отправить на email.
6
+ */
7
+ export type InvoiceGeneratedRO = {
8
+ success: boolean;
9
+ invoiceLink: string;
10
+ transactionId: number;
11
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /** Один пункт чеклиста подготовки квеста к игре (например, «завести кассу»). */
2
+ export declare class ChecklistItemRO {
3
+ id: string;
4
+ label: string;
5
+ }
6
+ export declare class ChecklistItemDto {
7
+ id: string;
8
+ label: string;
9
+ }
@@ -0,0 +1,40 @@
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.ChecklistItemDto = exports.ChecklistItemRO = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ const class_transformer_1 = require("class-transformer");
15
+ const class_validator_1 = require("class-validator");
16
+ /** Один пункт чеклиста подготовки квеста к игре (например, «завести кассу»). */
17
+ class ChecklistItemRO {
18
+ }
19
+ exports.ChecklistItemRO = ChecklistItemRO;
20
+ __decorate([
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], ChecklistItemRO.prototype, "id", void 0);
24
+ __decorate([
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", String)
27
+ ], ChecklistItemRO.prototype, "label", void 0);
28
+ class ChecklistItemDto {
29
+ }
30
+ exports.ChecklistItemDto = ChecklistItemDto;
31
+ __decorate([
32
+ (0, class_validator_1.IsString)(),
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", String)
35
+ ], ChecklistItemDto.prototype, "id", void 0);
36
+ __decorate([
37
+ (0, class_validator_1.IsString)(),
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], ChecklistItemDto.prototype, "label", void 0);
@@ -0,0 +1,5 @@
1
+ import { ChecklistItemRO } from './checklist-item';
2
+ /** Шаблон чеклиста подготовки квеста (ленивая загрузка, вне light RO). */
3
+ export declare class QuestroomChecklistRO {
4
+ items: ChecklistItemRO[];
5
+ }
@@ -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.QuestroomChecklistRO = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const checklist_item_1 = require("./checklist-item");
15
+ /** Шаблон чеклиста подготовки квеста (ленивая загрузка, вне light RO). */
16
+ class QuestroomChecklistRO {
17
+ }
18
+ exports.QuestroomChecklistRO = QuestroomChecklistRO;
19
+ __decorate([
20
+ (0, class_transformer_1.Expose)(),
21
+ (0, class_transformer_1.Type)(() => checklist_item_1.ChecklistItemRO),
22
+ __metadata("design:type", Array)
23
+ ], QuestroomChecklistRO.prototype, "items", void 0);
@@ -76,4 +76,11 @@ export declare class QuestroomLightRO extends RO {
76
76
  awailableForWidgets: boolean;
77
77
  slotStepMinutes: number;
78
78
  questOpeningDate?: string;
79
+ /**
80
+ * Есть ли у квеста чеклист подготовки. Сам список не тянем в light RO
81
+ * (он нужен только в модалке настроек и при открытии чеклиста игры) —
82
+ * грузим его лениво отдельным запросом. Здесь — только флаг для
83
+ * показа/скрытия кнопки «Чеклист» в карточке брони.
84
+ */
85
+ hasChecklist?: boolean;
79
86
  }
@@ -218,3 +218,8 @@ __decorate([
218
218
  (0, class_transformer_1.Expose)(),
219
219
  __metadata("design:type", String)
220
220
  ], QuestroomLightRO.prototype, "questOpeningDate", void 0);
221
+ __decorate([
222
+ (0, class_transformer_1.Expose)(),
223
+ (0, class_transformer_1.Transform)(({ obj }) => Array.isArray(obj.checklist) && obj.checklist.length > 0),
224
+ __metadata("design:type", Boolean)
225
+ ], QuestroomLightRO.prototype, "hasChecklist", void 0);
@@ -0,0 +1,4 @@
1
+ import { ChecklistItemDto } from './checklist-item';
2
+ export declare class UpdateQuestroomChecklistDto {
3
+ items: ChecklistItemDto[];
4
+ }
@@ -0,0 +1,25 @@
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.UpdateQuestroomChecklistDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const checklist_item_1 = require("./checklist-item");
16
+ class UpdateQuestroomChecklistDto {
17
+ }
18
+ exports.UpdateQuestroomChecklistDto = UpdateQuestroomChecklistDto;
19
+ __decorate([
20
+ (0, class_validator_1.IsArray)(),
21
+ (0, class_validator_1.ValidateNested)({ each: true }),
22
+ (0, class_transformer_1.Type)(() => checklist_item_1.ChecklistItemDto),
23
+ (0, class_transformer_1.Expose)(),
24
+ __metadata("design:type", Array)
25
+ ], UpdateQuestroomChecklistDto.prototype, "items", void 0);
@@ -0,0 +1,13 @@
1
+ import { DeviceConnectionTypeEnum } from './enum/device-connection-type.enum';
2
+ import { DeviceKindEnum } from './enum/device-kind.enum';
3
+ export declare class CreateQuestroomDeviceDto {
4
+ questroomId: number;
5
+ kind: DeviceKindEnum;
6
+ title: string;
7
+ connectionType: DeviceConnectionTypeEnum;
8
+ /** URL потока для камеры (HLS/MJPEG/WebRTC) или IP:port для контроллера. */
9
+ address?: string;
10
+ config?: Record<string, unknown> | null;
11
+ enabled?: boolean;
12
+ sortPosition?: number;
13
+ }
@@ -0,0 +1,63 @@
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.CreateQuestroomDeviceDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const device_connection_type_enum_1 = require("./enum/device-connection-type.enum");
16
+ const device_kind_enum_1 = require("./enum/device-kind.enum");
17
+ class CreateQuestroomDeviceDto {
18
+ }
19
+ exports.CreateQuestroomDeviceDto = CreateQuestroomDeviceDto;
20
+ __decorate([
21
+ (0, class_validator_1.IsPositive)(),
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", Number)
24
+ ], CreateQuestroomDeviceDto.prototype, "questroomId", void 0);
25
+ __decorate([
26
+ (0, class_validator_1.IsEnum)(device_kind_enum_1.DeviceKindEnum),
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", String)
29
+ ], CreateQuestroomDeviceDto.prototype, "kind", void 0);
30
+ __decorate([
31
+ (0, class_validator_1.IsString)(),
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], CreateQuestroomDeviceDto.prototype, "title", void 0);
35
+ __decorate([
36
+ (0, class_validator_1.IsEnum)(device_connection_type_enum_1.DeviceConnectionTypeEnum),
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", String)
39
+ ], CreateQuestroomDeviceDto.prototype, "connectionType", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsString)(),
43
+ (0, class_transformer_1.Expose)(),
44
+ __metadata("design:type", String)
45
+ ], CreateQuestroomDeviceDto.prototype, "address", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, class_validator_1.IsObject)(),
49
+ (0, class_transformer_1.Expose)(),
50
+ __metadata("design:type", Object)
51
+ ], CreateQuestroomDeviceDto.prototype, "config", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsOptional)(),
54
+ (0, class_validator_1.IsBoolean)(),
55
+ (0, class_transformer_1.Expose)(),
56
+ __metadata("design:type", Boolean)
57
+ ], CreateQuestroomDeviceDto.prototype, "enabled", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsOptional)(),
60
+ (0, class_validator_1.IsNumber)(),
61
+ (0, class_transformer_1.Expose)(),
62
+ __metadata("design:type", Number)
63
+ ], CreateQuestroomDeviceDto.prototype, "sortPosition", void 0);
@@ -0,0 +1,5 @@
1
+ export declare enum DeviceConnectionTypeEnum {
2
+ WIFI = "wifi",
3
+ LAN = "lan",
4
+ CLOUD = "cloud"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeviceConnectionTypeEnum = void 0;
4
+ var DeviceConnectionTypeEnum;
5
+ (function (DeviceConnectionTypeEnum) {
6
+ DeviceConnectionTypeEnum["WIFI"] = "wifi";
7
+ DeviceConnectionTypeEnum["LAN"] = "lan";
8
+ DeviceConnectionTypeEnum["CLOUD"] = "cloud";
9
+ })(DeviceConnectionTypeEnum || (exports.DeviceConnectionTypeEnum = DeviceConnectionTypeEnum = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum DeviceKindEnum {
2
+ CAMERA = "camera",
3
+ CONTROLLER = "controller"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DeviceKindEnum = void 0;
4
+ var DeviceKindEnum;
5
+ (function (DeviceKindEnum) {
6
+ DeviceKindEnum["CAMERA"] = "camera";
7
+ DeviceKindEnum["CONTROLLER"] = "controller";
8
+ })(DeviceKindEnum || (exports.DeviceKindEnum = DeviceKindEnum = {}));
@@ -0,0 +1,13 @@
1
+ import { RO } from '../shared/ro-class';
2
+ import { DeviceConnectionTypeEnum } from './enum/device-connection-type.enum';
3
+ import { DeviceKindEnum } from './enum/device-kind.enum';
4
+ export declare class QuestroomDeviceRO extends RO {
5
+ questroomId: number;
6
+ kind: DeviceKindEnum;
7
+ title: string;
8
+ connectionType: DeviceConnectionTypeEnum;
9
+ address?: string;
10
+ config?: Record<string, unknown> | null;
11
+ enabled: boolean;
12
+ sortPosition: number;
13
+ }
@@ -0,0 +1,51 @@
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.QuestroomDeviceRO = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const ro_class_1 = require("../shared/ro-class");
15
+ const device_connection_type_enum_1 = require("./enum/device-connection-type.enum");
16
+ const device_kind_enum_1 = require("./enum/device-kind.enum");
17
+ class QuestroomDeviceRO extends ro_class_1.RO {
18
+ }
19
+ exports.QuestroomDeviceRO = QuestroomDeviceRO;
20
+ __decorate([
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", Number)
23
+ ], QuestroomDeviceRO.prototype, "questroomId", void 0);
24
+ __decorate([
25
+ (0, class_transformer_1.Expose)(),
26
+ __metadata("design:type", String)
27
+ ], QuestroomDeviceRO.prototype, "kind", void 0);
28
+ __decorate([
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", String)
31
+ ], QuestroomDeviceRO.prototype, "title", void 0);
32
+ __decorate([
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", String)
35
+ ], QuestroomDeviceRO.prototype, "connectionType", void 0);
36
+ __decorate([
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", String)
39
+ ], QuestroomDeviceRO.prototype, "address", void 0);
40
+ __decorate([
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", Object)
43
+ ], QuestroomDeviceRO.prototype, "config", void 0);
44
+ __decorate([
45
+ (0, class_transformer_1.Expose)(),
46
+ __metadata("design:type", Boolean)
47
+ ], QuestroomDeviceRO.prototype, "enabled", void 0);
48
+ __decorate([
49
+ (0, class_transformer_1.Expose)(),
50
+ __metadata("design:type", Number)
51
+ ], QuestroomDeviceRO.prototype, "sortPosition", void 0);
@@ -0,0 +1,10 @@
1
+ export declare class TriggerDeviceDto {
2
+ /** Произвольное действие контроллера (напр. "open", "reset"). Заглушка. */
3
+ action?: string;
4
+ }
5
+ export type DeviceActionRO = {
6
+ ok: boolean;
7
+ /** Признак того, что реальная интеграция ещё не реализована. */
8
+ stub: boolean;
9
+ message?: string;
10
+ };
@@ -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.TriggerDeviceDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class TriggerDeviceDto {
16
+ }
17
+ exports.TriggerDeviceDto = TriggerDeviceDto;
18
+ __decorate([
19
+ (0, class_validator_1.IsOptional)(),
20
+ (0, class_validator_1.IsString)(),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], TriggerDeviceDto.prototype, "action", void 0);
@@ -0,0 +1,12 @@
1
+ import { Languages } from '../shared/enum/languages.enum';
2
+ export declare class CreateQuestroomRiddleLocaleDto {
3
+ id?: number;
4
+ language: Languages;
5
+ title: string;
6
+ hint1Text?: string;
7
+ hint2Text?: string;
8
+ hint3Text?: string;
9
+ hint1Audio?: string;
10
+ hint2Audio?: string;
11
+ hint3Audio?: string;
12
+ }
@@ -0,0 +1,69 @@
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.CreateQuestroomRiddleLocaleDto = 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 CreateQuestroomRiddleLocaleDto {
17
+ }
18
+ exports.CreateQuestroomRiddleLocaleDto = CreateQuestroomRiddleLocaleDto;
19
+ __decorate([
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", Number)
23
+ ], CreateQuestroomRiddleLocaleDto.prototype, "id", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsEnum)(languages_enum_1.Languages),
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], CreateQuestroomRiddleLocaleDto.prototype, "language", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ (0, class_transformer_1.Expose)(),
32
+ __metadata("design:type", String)
33
+ ], CreateQuestroomRiddleLocaleDto.prototype, "title", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsOptional)(),
36
+ (0, class_validator_1.IsString)(),
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", String)
39
+ ], CreateQuestroomRiddleLocaleDto.prototype, "hint1Text", void 0);
40
+ __decorate([
41
+ (0, class_validator_1.IsOptional)(),
42
+ (0, class_validator_1.IsString)(),
43
+ (0, class_transformer_1.Expose)(),
44
+ __metadata("design:type", String)
45
+ ], CreateQuestroomRiddleLocaleDto.prototype, "hint2Text", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsOptional)(),
48
+ (0, class_validator_1.IsString)(),
49
+ (0, class_transformer_1.Expose)(),
50
+ __metadata("design:type", String)
51
+ ], CreateQuestroomRiddleLocaleDto.prototype, "hint3Text", void 0);
52
+ __decorate([
53
+ (0, class_validator_1.IsOptional)(),
54
+ (0, class_validator_1.IsString)(),
55
+ (0, class_transformer_1.Expose)(),
56
+ __metadata("design:type", String)
57
+ ], CreateQuestroomRiddleLocaleDto.prototype, "hint1Audio", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsOptional)(),
60
+ (0, class_validator_1.IsString)(),
61
+ (0, class_transformer_1.Expose)(),
62
+ __metadata("design:type", String)
63
+ ], CreateQuestroomRiddleLocaleDto.prototype, "hint2Audio", void 0);
64
+ __decorate([
65
+ (0, class_validator_1.IsOptional)(),
66
+ (0, class_validator_1.IsString)(),
67
+ (0, class_transformer_1.Expose)(),
68
+ __metadata("design:type", String)
69
+ ], CreateQuestroomRiddleLocaleDto.prototype, "hint3Audio", void 0);
@@ -0,0 +1,24 @@
1
+ import { CreateQuestroomRiddleLocaleDto } from './create-questroom-riddle-locale.dto';
2
+ import { RiddleTtsMoodEnum } from './enum/riddle-tts-mood.enum';
3
+ import { RiddleTtsVoiceEnum } from './enum/riddle-tts-voice.enum';
4
+ import { RiddleTypeEnum } from './enum/riddle-type.enum';
5
+ export declare class CreateQuestroomRiddleDto {
6
+ questroomId: number;
7
+ type: RiddleTypeEnum;
8
+ internalTitle: string;
9
+ /**
10
+ * Подробное внутреннее описание: что именно должны сделать игроки. На его
11
+ * основе ИИ генерирует подсказки (генерация доступна только если поле
12
+ * заполнено).
13
+ */
14
+ internalDescription?: string;
15
+ /**
16
+ * Плановая отметка на таймлайне в минутах от старта игры. `null` для
17
+ * INTRO/OUTRO (у них нет позиции на таймлайне).
18
+ */
19
+ offsetMinutes?: number | null;
20
+ sortPosition?: number;
21
+ ttsVoice: RiddleTtsVoiceEnum;
22
+ ttsMood: RiddleTtsMoodEnum;
23
+ locales?: CreateQuestroomRiddleLocaleDto[];
24
+ }