@escapenavigator/types 1.10.105 → 1.10.106

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 (32) hide show
  1. package/dist/agregator/agregator-questroom.ro.d.ts +1 -1
  2. package/dist/agregator/agregator-questroom.ro.js +2 -2
  3. package/dist/cashbox/cashbox-light.ro.d.ts +27 -0
  4. package/dist/cashbox/cashbox-light.ro.js +74 -0
  5. package/dist/cashbox/cashbox.ro.d.ts +2 -15
  6. package/dist/cashbox/cashbox.ro.js +2 -48
  7. package/dist/location/location-light.ro.d.ts +37 -0
  8. package/dist/location/location-light.ro.js +109 -0
  9. package/dist/location/location.ro.d.ts +2 -25
  10. package/dist/location/location.ro.js +2 -83
  11. package/dist/questroom/create-questroom.dto.d.ts +0 -1
  12. package/dist/questroom/create-questroom.dto.js +0 -5
  13. package/dist/questroom/questroom-admin.ro.d.ts +2 -1
  14. package/dist/questroom/questroom-admin.ro.js +2 -1
  15. package/dist/questroom/questroom-light.ro.d.ts +79 -0
  16. package/dist/questroom/questroom-light.ro.js +220 -0
  17. package/dist/questroom/questroom.ro.d.ts +4 -60
  18. package/dist/questroom/questroom.ro.js +4 -190
  19. package/dist/role/role-light.ro.d.ts +14 -0
  20. package/dist/role/role-light.ro.js +34 -0
  21. package/dist/role/role.ro.d.ts +2 -4
  22. package/dist/role/role.ro.js +2 -10
  23. package/dist/tariff/tariff-light.ro.d.ts +20 -0
  24. package/dist/tariff/tariff-light.ro.js +52 -0
  25. package/dist/tariff/tariff.ro.d.ts +2 -8
  26. package/dist/tariff/tariff.ro.js +2 -26
  27. package/dist/tsconfig.build.tsbuildinfo +1 -1
  28. package/dist/user/crud/user-light.ro.d.ts +28 -0
  29. package/dist/user/crud/user-light.ro.js +81 -0
  30. package/dist/user/crud/user.ro.d.ts +2 -15
  31. package/dist/user/crud/user.ro.js +2 -54
  32. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
1
  import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
2
2
  import { QuestroomActorsEnum } from '../questroom/enum/questroom-actors.enum';
3
3
  import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
4
- import { QuestroomMode } from '../questroom/questroom.ro';
4
+ import { QuestroomLightMode as QuestroomMode } from '../questroom/questroom-light.ro';
5
5
  import { QuestroomAI } from '../questroom/questroom-meta.ro';
6
6
  import { ExpertReviewRO } from '../review/expert-review.ro';
7
7
  import { CountriesEnum } from '../shared/enum/countries.enum';
@@ -18,7 +18,7 @@ const profile_currency_1 = require("../profile/enum/profile-currency");
18
18
  const profile_step_enum_1 = require("../profile/enum/profile-step.enum");
19
19
  const questroom_actors_enum_1 = require("../questroom/enum/questroom-actors.enum");
20
20
  const questroom_type_enum_1 = require("../questroom/enum/questroom-type.enum");
21
- const questroom_ro_1 = require("../questroom/questroom.ro");
21
+ const questroom_light_ro_1 = require("../questroom/questroom-light.ro");
22
22
  const questroom_meta_ro_1 = require("../questroom/questroom-meta.ro");
23
23
  const expert_review_ro_1 = require("../review/expert-review.ro");
24
24
  const countries_enum_1 = require("../shared/enum/countries.enum");
@@ -314,7 +314,7 @@ __decorate([
314
314
  ], AgregatorQuestroomRO.prototype, "reviewsCount", void 0);
315
315
  __decorate([
316
316
  (0, class_transformer_1.Expose)(),
317
- (0, class_transformer_1.Type)(() => questroom_ro_1.QuestroomMode),
317
+ (0, class_transformer_1.Type)(() => questroom_light_ro_1.QuestroomLightMode),
318
318
  __metadata("design:type", Array)
319
319
  ], AgregatorQuestroomRO.prototype, "modes", void 0);
320
320
  __decorate([
@@ -0,0 +1,27 @@
1
+ import { RO } from '../shared/ro-class';
2
+ import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
3
+ import { CashboxTypeEnum } from './enum/cashbox-type.enum';
4
+ /**
5
+ * Лёгкий RO кассы для bootstrap'а. В сторе нужны:
6
+ * - `title`, `type`, `total`, `allLocations`, `locationIds` — список касс
7
+ * на `finance/cashboxes-settings`, фильтры в селектах оплаты;
8
+ * - `identificator`, `increase`, `increaseType` — список онлайн-касс
9
+ * на `settings/booking-settings/online-payments`;
10
+ * - `bankName`, `bic`, `iban` — отбор «полных» банк-касс для счетов
11
+ * (`order/sub-modals/invoice` и `closing-document`).
12
+ * Полный `CashboxRO` (с `squareLocationId`) тянется в
13
+ * `CashboxModal`/`CashboxOnlineModal` через `useGetOne`.
14
+ */
15
+ export declare class CashboxLightRO extends RO {
16
+ title: string;
17
+ type: CashboxTypeEnum;
18
+ identificator?: string;
19
+ increase: number;
20
+ allLocations: boolean;
21
+ locationIds: number[];
22
+ increaseType: PrepaymentTypeEnum;
23
+ total: number;
24
+ bankName?: string;
25
+ bic?: string;
26
+ iban?: string;
27
+ }
@@ -0,0 +1,74 @@
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.CashboxLightRO = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const ro_class_1 = require("../shared/ro-class");
15
+ const prepayment_type_enum_1 = require("../slot/enum/prepayment-type.enum");
16
+ const cashbox_type_enum_1 = require("./enum/cashbox-type.enum");
17
+ /**
18
+ * Лёгкий RO кассы для bootstrap'а. В сторе нужны:
19
+ * - `title`, `type`, `total`, `allLocations`, `locationIds` — список касс
20
+ * на `finance/cashboxes-settings`, фильтры в селектах оплаты;
21
+ * - `identificator`, `increase`, `increaseType` — список онлайн-касс
22
+ * на `settings/booking-settings/online-payments`;
23
+ * - `bankName`, `bic`, `iban` — отбор «полных» банк-касс для счетов
24
+ * (`order/sub-modals/invoice` и `closing-document`).
25
+ * Полный `CashboxRO` (с `squareLocationId`) тянется в
26
+ * `CashboxModal`/`CashboxOnlineModal` через `useGetOne`.
27
+ */
28
+ class CashboxLightRO extends ro_class_1.RO {
29
+ }
30
+ exports.CashboxLightRO = CashboxLightRO;
31
+ __decorate([
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], CashboxLightRO.prototype, "title", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", String)
38
+ ], CashboxLightRO.prototype, "type", void 0);
39
+ __decorate([
40
+ (0, class_transformer_1.Expose)(),
41
+ __metadata("design:type", String)
42
+ ], CashboxLightRO.prototype, "identificator", void 0);
43
+ __decorate([
44
+ (0, class_transformer_1.Expose)(),
45
+ __metadata("design:type", Number)
46
+ ], CashboxLightRO.prototype, "increase", void 0);
47
+ __decorate([
48
+ (0, class_transformer_1.Expose)(),
49
+ __metadata("design:type", Boolean)
50
+ ], CashboxLightRO.prototype, "allLocations", void 0);
51
+ __decorate([
52
+ (0, class_transformer_1.Expose)(),
53
+ __metadata("design:type", Array)
54
+ ], CashboxLightRO.prototype, "locationIds", void 0);
55
+ __decorate([
56
+ (0, class_transformer_1.Expose)(),
57
+ __metadata("design:type", String)
58
+ ], CashboxLightRO.prototype, "increaseType", void 0);
59
+ __decorate([
60
+ (0, class_transformer_1.Expose)(),
61
+ __metadata("design:type", Number)
62
+ ], CashboxLightRO.prototype, "total", void 0);
63
+ __decorate([
64
+ (0, class_transformer_1.Expose)(),
65
+ __metadata("design:type", String)
66
+ ], CashboxLightRO.prototype, "bankName", void 0);
67
+ __decorate([
68
+ (0, class_transformer_1.Expose)(),
69
+ __metadata("design:type", String)
70
+ ], CashboxLightRO.prototype, "bic", void 0);
71
+ __decorate([
72
+ (0, class_transformer_1.Expose)(),
73
+ __metadata("design:type", String)
74
+ ], CashboxLightRO.prototype, "iban", void 0);
@@ -1,17 +1,4 @@
1
- import { RO } from '../shared/ro-class';
2
- import { PrepaymentTypeEnum } from '../slot/enum/prepayment-type.enum';
3
- import { CashboxTypeEnum } from './enum/cashbox-type.enum';
4
- export declare class CashboxRO extends RO {
5
- title: string;
6
- type: CashboxTypeEnum;
7
- identificator?: string;
8
- increase: number;
9
- allLocations: boolean;
10
- locationIds: number[];
11
- increaseType: PrepaymentTypeEnum;
12
- total: number;
1
+ import { CashboxLightRO } from './cashbox-light.ro';
2
+ export declare class CashboxRO extends CashboxLightRO {
13
3
  squareLocationId: string;
14
- bankName?: string;
15
- bic?: string;
16
- iban?: string;
17
4
  }
@@ -11,57 +11,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CashboxRO = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const ro_class_1 = require("../shared/ro-class");
15
- const prepayment_type_enum_1 = require("../slot/enum/prepayment-type.enum");
16
- const cashbox_type_enum_1 = require("./enum/cashbox-type.enum");
17
- class CashboxRO extends ro_class_1.RO {
14
+ const cashbox_light_ro_1 = require("./cashbox-light.ro");
15
+ class CashboxRO extends cashbox_light_ro_1.CashboxLightRO {
18
16
  }
19
17
  exports.CashboxRO = CashboxRO;
20
- __decorate([
21
- (0, class_transformer_1.Expose)(),
22
- __metadata("design:type", String)
23
- ], CashboxRO.prototype, "title", void 0);
24
- __decorate([
25
- (0, class_transformer_1.Expose)(),
26
- __metadata("design:type", String)
27
- ], CashboxRO.prototype, "type", void 0);
28
- __decorate([
29
- (0, class_transformer_1.Expose)(),
30
- __metadata("design:type", String)
31
- ], CashboxRO.prototype, "identificator", void 0);
32
- __decorate([
33
- (0, class_transformer_1.Expose)(),
34
- __metadata("design:type", Number)
35
- ], CashboxRO.prototype, "increase", void 0);
36
- __decorate([
37
- (0, class_transformer_1.Expose)(),
38
- __metadata("design:type", Boolean)
39
- ], CashboxRO.prototype, "allLocations", void 0);
40
- __decorate([
41
- (0, class_transformer_1.Expose)(),
42
- __metadata("design:type", Array)
43
- ], CashboxRO.prototype, "locationIds", void 0);
44
- __decorate([
45
- (0, class_transformer_1.Expose)(),
46
- __metadata("design:type", String)
47
- ], CashboxRO.prototype, "increaseType", void 0);
48
- __decorate([
49
- (0, class_transformer_1.Expose)(),
50
- __metadata("design:type", Number)
51
- ], CashboxRO.prototype, "total", void 0);
52
18
  __decorate([
53
19
  (0, class_transformer_1.Expose)(),
54
20
  __metadata("design:type", String)
55
21
  ], CashboxRO.prototype, "squareLocationId", void 0);
56
- __decorate([
57
- (0, class_transformer_1.Expose)(),
58
- __metadata("design:type", String)
59
- ], CashboxRO.prototype, "bankName", void 0);
60
- __decorate([
61
- (0, class_transformer_1.Expose)(),
62
- __metadata("design:type", String)
63
- ], CashboxRO.prototype, "bic", void 0);
64
- __decorate([
65
- (0, class_transformer_1.Expose)(),
66
- __metadata("design:type", String)
67
- ], CashboxRO.prototype, "iban", void 0);
@@ -0,0 +1,37 @@
1
+ import { Languages } from '../shared/enum/languages.enum';
2
+ import { RO } from '../shared/ro-class';
3
+ declare class LocationLocaleLight {
4
+ id: number;
5
+ language: Languages;
6
+ howToFind: string;
7
+ prepareText: string;
8
+ }
9
+ /**
10
+ * Лёгкий RO локации для bootstrap'а. Локаций у профиля макс 4 штуки,
11
+ * поэтому абсолютная экономия маленькая, но архитектура остаётся
12
+ * единообразной (Full extends Light). Из payload'а выкинут только
13
+ * `ip` — он нигде в @escapenavigator/app не читается, нужен лишь
14
+ * в `modals/location` (edit-форме), которая тянет полный RO через
15
+ * `useGetOne(roles.getOne)`. Все остальные поля (включая `locales`,
16
+ * `wifi`, `wardrobe`, `parking`, `waitingArea`, `waitingAreaSize`,
17
+ * `site`) используются в settings/verify-company/email-example
18
+ * напрямую из стора, поэтому остаются здесь.
19
+ */
20
+ export declare class LocationLightRO extends RO {
21
+ title: string;
22
+ sortPosition: number;
23
+ address: string;
24
+ phone: string;
25
+ howToFind: string;
26
+ prepareText: string;
27
+ wifi: boolean;
28
+ wardrobe: boolean;
29
+ freeParking: boolean;
30
+ parking: boolean;
31
+ waitingArea: boolean;
32
+ waitingAreaSize: number;
33
+ site: string;
34
+ timeZone: string;
35
+ locales: LocationLocaleLight[];
36
+ }
37
+ export {};
@@ -0,0 +1,109 @@
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.LocationLightRO = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ const class_transformer_1 = require("class-transformer");
15
+ const languages_enum_1 = require("../shared/enum/languages.enum");
16
+ const ro_class_1 = require("../shared/ro-class");
17
+ class LocationLocaleLight {
18
+ }
19
+ __decorate([
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", Number)
22
+ ], LocationLocaleLight.prototype, "id", void 0);
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", String)
26
+ ], LocationLocaleLight.prototype, "language", void 0);
27
+ __decorate([
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", String)
30
+ ], LocationLocaleLight.prototype, "howToFind", void 0);
31
+ __decorate([
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], LocationLocaleLight.prototype, "prepareText", void 0);
35
+ /**
36
+ * Лёгкий RO локации для bootstrap'а. Локаций у профиля макс 4 штуки,
37
+ * поэтому абсолютная экономия маленькая, но архитектура остаётся
38
+ * единообразной (Full extends Light). Из payload'а выкинут только
39
+ * `ip` — он нигде в @escapenavigator/app не читается, нужен лишь
40
+ * в `modals/location` (edit-форме), которая тянет полный RO через
41
+ * `useGetOne(roles.getOne)`. Все остальные поля (включая `locales`,
42
+ * `wifi`, `wardrobe`, `parking`, `waitingArea`, `waitingAreaSize`,
43
+ * `site`) используются в settings/verify-company/email-example
44
+ * напрямую из стора, поэтому остаются здесь.
45
+ */
46
+ class LocationLightRO extends ro_class_1.RO {
47
+ }
48
+ exports.LocationLightRO = LocationLightRO;
49
+ __decorate([
50
+ (0, class_transformer_1.Expose)(),
51
+ __metadata("design:type", String)
52
+ ], LocationLightRO.prototype, "title", void 0);
53
+ __decorate([
54
+ (0, class_transformer_1.Expose)(),
55
+ __metadata("design:type", Number)
56
+ ], LocationLightRO.prototype, "sortPosition", void 0);
57
+ __decorate([
58
+ (0, class_transformer_1.Expose)(),
59
+ __metadata("design:type", String)
60
+ ], LocationLightRO.prototype, "address", void 0);
61
+ __decorate([
62
+ (0, class_transformer_1.Expose)(),
63
+ __metadata("design:type", String)
64
+ ], LocationLightRO.prototype, "phone", void 0);
65
+ __decorate([
66
+ (0, class_transformer_1.Expose)(),
67
+ __metadata("design:type", String)
68
+ ], LocationLightRO.prototype, "howToFind", void 0);
69
+ __decorate([
70
+ (0, class_transformer_1.Expose)(),
71
+ __metadata("design:type", String)
72
+ ], LocationLightRO.prototype, "prepareText", void 0);
73
+ __decorate([
74
+ (0, class_transformer_1.Expose)(),
75
+ __metadata("design:type", Boolean)
76
+ ], LocationLightRO.prototype, "wifi", void 0);
77
+ __decorate([
78
+ (0, class_transformer_1.Expose)(),
79
+ __metadata("design:type", Boolean)
80
+ ], LocationLightRO.prototype, "wardrobe", void 0);
81
+ __decorate([
82
+ (0, class_transformer_1.Expose)(),
83
+ __metadata("design:type", Boolean)
84
+ ], LocationLightRO.prototype, "freeParking", void 0);
85
+ __decorate([
86
+ (0, class_transformer_1.Expose)(),
87
+ __metadata("design:type", Boolean)
88
+ ], LocationLightRO.prototype, "parking", void 0);
89
+ __decorate([
90
+ (0, class_transformer_1.Expose)(),
91
+ __metadata("design:type", Boolean)
92
+ ], LocationLightRO.prototype, "waitingArea", void 0);
93
+ __decorate([
94
+ (0, class_transformer_1.Expose)(),
95
+ __metadata("design:type", Number)
96
+ ], LocationLightRO.prototype, "waitingAreaSize", void 0);
97
+ __decorate([
98
+ (0, class_transformer_1.Expose)(),
99
+ __metadata("design:type", String)
100
+ ], LocationLightRO.prototype, "site", void 0);
101
+ __decorate([
102
+ (0, class_transformer_1.Expose)(),
103
+ __metadata("design:type", String)
104
+ ], LocationLightRO.prototype, "timeZone", void 0);
105
+ __decorate([
106
+ (0, class_transformer_1.Expose)(),
107
+ (0, class_transformer_1.Type)(() => LocationLocaleLight),
108
+ __metadata("design:type", Array)
109
+ ], LocationLightRO.prototype, "locales", void 0);
@@ -1,27 +1,4 @@
1
- import { Languages } from '../shared/enum/languages.enum';
2
- import { RO } from '../shared/ro-class';
3
- declare class LocationLocale {
4
- id: number;
5
- language: Languages;
6
- howToFind: string;
7
- prepareText: string;
8
- }
9
- export declare class LocationRO extends RO {
10
- title: string;
11
- sortPosition: number;
12
- address: string;
13
- phone: string;
1
+ import { LocationLightRO } from './location-light.ro';
2
+ export declare class LocationRO extends LocationLightRO {
14
3
  ip: string;
15
- howToFind: string;
16
- prepareText: string;
17
- wifi: boolean;
18
- wardrobe: boolean;
19
- freeParking: boolean;
20
- parking: boolean;
21
- waitingArea: boolean;
22
- site: string;
23
- waitingAreaSize: number;
24
- timeZone: string;
25
- locales: LocationLocale[];
26
4
  }
27
- export {};
@@ -10,93 +10,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.LocationRO = void 0;
13
- /* eslint-disable max-classes-per-file */
14
13
  const class_transformer_1 = require("class-transformer");
15
- const languages_enum_1 = require("../shared/enum/languages.enum");
16
- const ro_class_1 = require("../shared/ro-class");
17
- class LocationLocale {
18
- }
19
- __decorate([
20
- (0, class_transformer_1.Expose)(),
21
- __metadata("design:type", Number)
22
- ], LocationLocale.prototype, "id", void 0);
23
- __decorate([
24
- (0, class_transformer_1.Expose)(),
25
- __metadata("design:type", String)
26
- ], LocationLocale.prototype, "language", void 0);
27
- __decorate([
28
- (0, class_transformer_1.Expose)(),
29
- __metadata("design:type", String)
30
- ], LocationLocale.prototype, "howToFind", void 0);
31
- __decorate([
32
- (0, class_transformer_1.Expose)(),
33
- __metadata("design:type", String)
34
- ], LocationLocale.prototype, "prepareText", void 0);
35
- class LocationRO extends ro_class_1.RO {
14
+ const location_light_ro_1 = require("./location-light.ro");
15
+ class LocationRO extends location_light_ro_1.LocationLightRO {
36
16
  }
37
17
  exports.LocationRO = LocationRO;
38
- __decorate([
39
- (0, class_transformer_1.Expose)(),
40
- __metadata("design:type", String)
41
- ], LocationRO.prototype, "title", void 0);
42
- __decorate([
43
- (0, class_transformer_1.Expose)(),
44
- __metadata("design:type", Number)
45
- ], LocationRO.prototype, "sortPosition", void 0);
46
- __decorate([
47
- (0, class_transformer_1.Expose)(),
48
- __metadata("design:type", String)
49
- ], LocationRO.prototype, "address", void 0);
50
- __decorate([
51
- (0, class_transformer_1.Expose)(),
52
- __metadata("design:type", String)
53
- ], LocationRO.prototype, "phone", void 0);
54
18
  __decorate([
55
19
  (0, class_transformer_1.Expose)(),
56
20
  __metadata("design:type", String)
57
21
  ], LocationRO.prototype, "ip", void 0);
58
- __decorate([
59
- (0, class_transformer_1.Expose)(),
60
- __metadata("design:type", String)
61
- ], LocationRO.prototype, "howToFind", void 0);
62
- __decorate([
63
- (0, class_transformer_1.Expose)(),
64
- __metadata("design:type", String)
65
- ], LocationRO.prototype, "prepareText", void 0);
66
- __decorate([
67
- (0, class_transformer_1.Expose)(),
68
- __metadata("design:type", Boolean)
69
- ], LocationRO.prototype, "wifi", void 0);
70
- __decorate([
71
- (0, class_transformer_1.Expose)(),
72
- __metadata("design:type", Boolean)
73
- ], LocationRO.prototype, "wardrobe", void 0);
74
- __decorate([
75
- (0, class_transformer_1.Expose)(),
76
- __metadata("design:type", Boolean)
77
- ], LocationRO.prototype, "freeParking", void 0);
78
- __decorate([
79
- (0, class_transformer_1.Expose)(),
80
- __metadata("design:type", Boolean)
81
- ], LocationRO.prototype, "parking", void 0);
82
- __decorate([
83
- (0, class_transformer_1.Expose)(),
84
- __metadata("design:type", Boolean)
85
- ], LocationRO.prototype, "waitingArea", void 0);
86
- __decorate([
87
- (0, class_transformer_1.Expose)(),
88
- __metadata("design:type", String)
89
- ], LocationRO.prototype, "site", void 0);
90
- __decorate([
91
- (0, class_transformer_1.Expose)(),
92
- __metadata("design:type", Number)
93
- ], LocationRO.prototype, "waitingAreaSize", void 0);
94
- __decorate([
95
- (0, class_transformer_1.Expose)(),
96
- __metadata("design:type", String)
97
- ], LocationRO.prototype, "timeZone", void 0);
98
- __decorate([
99
- (0, class_transformer_1.Expose)(),
100
- (0, class_transformer_1.Type)(() => LocationLocale),
101
- __metadata("design:type", Array)
102
- ], LocationRO.prototype, "locales", void 0);
@@ -16,7 +16,6 @@ declare class Mode {
16
16
  }
17
17
  export declare class CreateQuestroomDto {
18
18
  title: string;
19
- roomId: number;
20
19
  requiredPositionsIds: number[];
21
20
  playersMin: number;
22
21
  playersMax: number;
@@ -71,11 +71,6 @@ __decorate([
71
71
  (0, class_transformer_1.Expose)(),
72
72
  __metadata("design:type", String)
73
73
  ], CreateQuestroomDto.prototype, "title", void 0);
74
- __decorate([
75
- (0, class_validator_1.IsOptional)(),
76
- (0, class_transformer_1.Expose)(),
77
- __metadata("design:type", Number)
78
- ], CreateQuestroomDto.prototype, "roomId", void 0);
79
74
  __decorate([
80
75
  (0, class_validator_1.IsOptional)(),
81
76
  (0, class_transformer_1.Expose)(),
@@ -1,6 +1,7 @@
1
1
  import { LocationRO } from '../location/location.ro';
2
2
  import { ProfileRO } from '../profile/profile.ro';
3
- import { QuestroomLocale, QuestroomRO } from './questroom.ro';
3
+ import { QuestroomLightLocale as QuestroomLocale } from './questroom-light.ro';
4
+ import { QuestroomRO } from './questroom.ro';
4
5
  declare class City {
5
6
  title: string;
6
7
  }
@@ -14,6 +14,7 @@ exports.QuestroomAdminRO = exports.LocationAdminRO = void 0;
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  const location_ro_1 = require("../location/location.ro");
16
16
  const profile_ro_1 = require("../profile/profile.ro");
17
+ const questroom_light_ro_1 = require("./questroom-light.ro");
17
18
  const questroom_ro_1 = require("./questroom.ro");
18
19
  class City {
19
20
  }
@@ -82,7 +83,7 @@ __decorate([
82
83
  ], QuestroomAdminRO.prototype, "location", void 0);
83
84
  __decorate([
84
85
  (0, class_transformer_1.Expose)(),
85
- (0, class_transformer_1.Type)(() => questroom_ro_1.QuestroomLocale),
86
+ (0, class_transformer_1.Type)(() => questroom_light_ro_1.QuestroomLightLocale),
86
87
  __metadata("design:type", Array)
87
88
  ], QuestroomAdminRO.prototype, "techlocales", void 0);
88
89
  __decorate([
@@ -0,0 +1,79 @@
1
+ import { Languages } from '../shared/enum/languages.enum';
2
+ import { TagsEnum } from '../shared/enum/tags.enum';
3
+ import { RO } from '../shared/ro-class';
4
+ import { SlotTemplateType } from '../slot-template/slot-template-type';
5
+ import { QuestroomActorsEnum } from './enum/questroom-actors.enum';
6
+ import { QuestroomConfirmTypeEnum } from './enum/questroom-confirm-type.enum';
7
+ import { QuestroomTypeEnum } from './enum/questroom-type.enum';
8
+ export declare class QuestroomLightLocale {
9
+ id: number;
10
+ language: Languages;
11
+ title: string;
12
+ legend: string;
13
+ teaser: string;
14
+ importantInfo: string;
15
+ }
16
+ export declare class QuestroomLightMode {
17
+ id: number;
18
+ title: string;
19
+ description: string;
20
+ }
21
+ /**
22
+ * Лёгкий RO квеста для bootstrap'а. Это самая большая сущность из
23
+ * шести (до 50 записей), поэтому экономия здесь самая ощутимая.
24
+ *
25
+ * Из payload'а выкинуты поля, которые в @escapenavigator/app
26
+ * читаются только в модалках через `useGetOne` или вообще не
27
+ * используются (widget/aggregator/navigator-only):
28
+ * - `video`, `slug`, `navigatorReviewId`, `photoFrame`
29
+ * - `awailableForNavigator`, `awailableForWidgets`, `reviewsCount`,
30
+ * `rate`, `top`
31
+ * - `disabledLanguages`, `alternativeScenarioIds`,
32
+ * `requiredPositionsIds`
33
+ * - `profileId` (нигде в app-сторе не читается)
34
+ *
35
+ * Остальное (включая `photos`, `legend`, `importantInfo`, `modes`,
36
+ * `actors` и т.д.) используется в verify-company onboarding,
37
+ * order-new, calendar и settings — поэтому остаётся в light.
38
+ */
39
+ export declare class QuestroomLightRO extends RO {
40
+ deletedAt?: Date;
41
+ title: string;
42
+ locationId: number;
43
+ type: QuestroomTypeEnum;
44
+ difficult: number;
45
+ locales: QuestroomLightLocale[];
46
+ modes: QuestroomLightMode[];
47
+ fear: number;
48
+ minAge: number;
49
+ time: number;
50
+ templateId: number;
51
+ /**
52
+ * Type of the linked SlotTemplate (`fixed` or `flex`). Denormalized from
53
+ * `SlotTemplate.type` so consumers (calendar, schedule editor) can branch
54
+ * on the schedule kind without an extra fetch.
55
+ */
56
+ templateType?: SlotTemplateType;
57
+ ticketSystem: boolean;
58
+ resourceUnitsTotal: number;
59
+ resourceUnitSize: number;
60
+ photo: string;
61
+ photos: string[];
62
+ legend: string;
63
+ importantInfo: string;
64
+ sortPosition: number;
65
+ actors: QuestroomActorsEnum;
66
+ questroomTags: TagsEnum[];
67
+ playersMin: number;
68
+ playersMax: number;
69
+ closed: boolean;
70
+ paypalCashbox: number;
71
+ onlinePaymentsCashbox: number;
72
+ squareCashbox: number;
73
+ confirmType: QuestroomConfirmTypeEnum;
74
+ daysForBooking: number;
75
+ bsCashbox: number;
76
+ onlinePaymentsAvailable: boolean;
77
+ awailableForWidgets: boolean;
78
+ slotStepMinutes: number;
79
+ }