@escapenavigator/types 1.10.13 → 1.10.15

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.
@@ -1,4 +1,3 @@
1
- import { QuestroomAwardEnum } from '../questroom/enum/questroom-award.enum';
2
1
  import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
3
2
  import { Languages } from '../shared/enum/languages.enum';
4
3
  export declare class AgregatorQuestroomLocation {
@@ -16,7 +15,6 @@ export declare class AgregatorQuestroomCardRO {
16
15
  type: QuestroomTypeEnum;
17
16
  rate: number;
18
17
  photo: string;
19
- awards: QuestroomAwardEnum[];
20
18
  minAge: number;
21
19
  time: number;
22
20
  playersMin: number;
@@ -84,10 +84,6 @@ __decorate([
84
84
  (0, class_transformer_1.Expose)(),
85
85
  __metadata("design:type", String)
86
86
  ], AgregatorQuestroomCardRO.prototype, "photo", void 0);
87
- __decorate([
88
- (0, class_transformer_1.Expose)(),
89
- __metadata("design:type", Array)
90
- ], AgregatorQuestroomCardRO.prototype, "awards", void 0);
91
87
  __decorate([
92
88
  (0, class_transformer_1.Expose)(),
93
89
  __metadata("design:type", Number)
@@ -1,6 +1,5 @@
1
1
  import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
2
2
  import { QuestroomActorsEnum } from '../questroom/enum/questroom-actors.enum';
3
- import { QuestroomAwardEnum } from '../questroom/enum/questroom-award.enum';
4
3
  import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
5
4
  import { QuestroomMode } from '../questroom/questroom.ro';
6
5
  import { ExpertReviewRO } from '../review/expert-review.ro';
@@ -23,6 +22,10 @@ export declare class AgregatorProfile {
23
22
  availableLanguages: Languages[];
24
23
  verified?: boolean;
25
24
  }
25
+ declare class AwardRO {
26
+ award: string;
27
+ host: string;
28
+ }
26
29
  declare class City {
27
30
  title: string;
28
31
  country: CountriesEnum;
@@ -52,7 +55,7 @@ export declare class AgregatorQuestroomRO {
52
55
  language: Languages;
53
56
  type: QuestroomTypeEnum;
54
57
  profile: AgregatorProfile;
55
- awards: QuestroomAwardEnum[];
58
+ questroomAwards: AwardRO[];
56
59
  playersMin: number;
57
60
  playersMax: number;
58
61
  time: number;
@@ -64,6 +64,16 @@ __decorate([
64
64
  __metadata("design:type", Boolean)
65
65
  ], AgregatorProfile.prototype, "verified", void 0);
66
66
  exports.AgregatorProfile = AgregatorProfile;
67
+ class AwardRO {
68
+ }
69
+ __decorate([
70
+ (0, class_transformer_1.Expose)(),
71
+ __metadata("design:type", String)
72
+ ], AwardRO.prototype, "award", void 0);
73
+ __decorate([
74
+ (0, class_transformer_1.Expose)(),
75
+ __metadata("design:type", String)
76
+ ], AwardRO.prototype, "host", void 0);
67
77
  class City {
68
78
  }
69
79
  __decorate([
@@ -186,8 +196,9 @@ __decorate([
186
196
  ], AgregatorQuestroomRO.prototype, "profile", void 0);
187
197
  __decorate([
188
198
  (0, class_transformer_1.Expose)(),
199
+ (0, class_transformer_1.Type)(() => AwardRO),
189
200
  __metadata("design:type", Array)
190
- ], AgregatorQuestroomRO.prototype, "awards", void 0);
201
+ ], AgregatorQuestroomRO.prototype, "questroomAwards", void 0);
191
202
  __decorate([
192
203
  (0, class_transformer_1.Expose)(),
193
204
  __metadata("design:type", Number)
@@ -28,5 +28,6 @@ export declare class ClientRO extends RO {
28
28
  blockedDate?: string;
29
29
  previousData: PrevData[];
30
30
  parent: ParentRO;
31
+ prevOrders?: any;
31
32
  }
32
33
  export {};
@@ -118,4 +118,8 @@ __decorate([
118
118
  (0, class_transformer_1.Type)(() => ParentRO),
119
119
  __metadata("design:type", ParentRO)
120
120
  ], ClientRO.prototype, "parent", void 0);
121
+ __decorate([
122
+ (0, class_transformer_1.Expose)(),
123
+ __metadata("design:type", Object)
124
+ ], ClientRO.prototype, "prevOrders", void 0);
121
125
  exports.ClientRO = ClientRO;
@@ -1,5 +1,5 @@
1
- import { QuestroomAwardEnum } from '../enum/questroom-award.enum';
2
1
  export declare class CreateAwardDto {
3
- award: QuestroomAwardEnum;
2
+ award: string;
3
+ host: string;
4
4
  questroomId: number;
5
5
  }
@@ -12,14 +12,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateAwardDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
14
  const class_validator_1 = require("class-validator");
15
- const questroom_award_enum_1 = require("../enum/questroom-award.enum");
16
15
  class CreateAwardDto {
17
16
  }
18
17
  __decorate([
19
- (0, class_validator_1.IsEnum)(questroom_award_enum_1.QuestroomAwardEnum),
20
18
  (0, class_transformer_1.Expose)(),
19
+ (0, class_validator_1.IsNotEmpty)(),
21
20
  __metadata("design:type", String)
22
21
  ], CreateAwardDto.prototype, "award", void 0);
22
+ __decorate([
23
+ (0, class_transformer_1.Expose)(),
24
+ (0, class_validator_1.IsNotEmpty)(),
25
+ __metadata("design:type", String)
26
+ ], CreateAwardDto.prototype, "host", void 0);
23
27
  __decorate([
24
28
  (0, class_validator_1.IsPositive)(),
25
29
  (0, class_transformer_1.Expose)(),
@@ -1,12 +1,16 @@
1
1
  import { LocationRO } from '../location/location.ro';
2
2
  import { ProfileRO } from '../profile/profile.ro';
3
- import { QuestroomAwardEnum } from './enum/questroom-award.enum';
4
3
  import { QuestroomLocale, QuestroomRO } from './questroom.ro';
5
4
  export declare class LocationAdminRO extends LocationRO {
6
5
  cityId: number;
7
6
  }
7
+ declare class AwardRO {
8
+ id: number;
9
+ award: string;
10
+ host: string;
11
+ }
8
12
  export declare class QuestroomAdminRO extends QuestroomRO {
9
- awards: QuestroomAwardEnum[];
13
+ questroomAwards: AwardRO[];
10
14
  minPrice: number;
11
15
  maxPrice: number;
12
16
  oldData: string;
@@ -16,3 +20,4 @@ export declare class QuestroomAdminRO extends QuestroomRO {
16
20
  techlocales: QuestroomLocale[];
17
21
  profile: ProfileRO;
18
22
  }
23
+ export {};
@@ -22,12 +22,27 @@ __decorate([
22
22
  __metadata("design:type", Number)
23
23
  ], LocationAdminRO.prototype, "cityId", void 0);
24
24
  exports.LocationAdminRO = LocationAdminRO;
25
+ class AwardRO {
26
+ }
27
+ __decorate([
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", Number)
30
+ ], AwardRO.prototype, "id", void 0);
31
+ __decorate([
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", String)
34
+ ], AwardRO.prototype, "award", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Expose)(),
37
+ __metadata("design:type", String)
38
+ ], AwardRO.prototype, "host", void 0);
25
39
  class QuestroomAdminRO extends questroom_ro_1.QuestroomRO {
26
40
  }
27
41
  __decorate([
28
42
  (0, class_transformer_1.Expose)(),
43
+ (0, class_transformer_1.Type)(() => AwardRO),
29
44
  __metadata("design:type", Array)
30
- ], QuestroomAdminRO.prototype, "awards", void 0);
45
+ ], QuestroomAdminRO.prototype, "questroomAwards", void 0);
31
46
  __decorate([
32
47
  (0, class_transformer_1.Expose)(),
33
48
  __metadata("design:type", Number)
@@ -0,0 +1,20 @@
1
+ declare class Review {
2
+ rating?: number;
3
+ review: string;
4
+ }
5
+ export declare class Meta {
6
+ reviews: Review[];
7
+ mk: string;
8
+ morty: string;
9
+ nowEscape: string;
10
+ }
11
+ declare class AI {
12
+ aiReview: string;
13
+ aiRating: number;
14
+ aiSummary: string;
15
+ }
16
+ export declare class QuestroomMetaRO {
17
+ meta: Meta;
18
+ ai: AI;
19
+ }
20
+ export {};
@@ -0,0 +1,71 @@
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.QuestroomMetaRO = exports.Meta = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ const class_transformer_1 = require("class-transformer");
15
+ class Review {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Expose)(),
19
+ __metadata("design:type", Number)
20
+ ], Review.prototype, "rating", void 0);
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], Review.prototype, "review", void 0);
25
+ class Meta {
26
+ }
27
+ __decorate([
28
+ (0, class_transformer_1.Expose)(),
29
+ (0, class_transformer_1.Type)(() => Review),
30
+ __metadata("design:type", Array)
31
+ ], Meta.prototype, "reviews", void 0);
32
+ __decorate([
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", String)
35
+ ], Meta.prototype, "mk", void 0);
36
+ __decorate([
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", String)
39
+ ], Meta.prototype, "morty", void 0);
40
+ __decorate([
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", String)
43
+ ], Meta.prototype, "nowEscape", void 0);
44
+ exports.Meta = Meta;
45
+ class AI {
46
+ }
47
+ __decorate([
48
+ (0, class_transformer_1.Expose)(),
49
+ __metadata("design:type", String)
50
+ ], AI.prototype, "aiReview", void 0);
51
+ __decorate([
52
+ (0, class_transformer_1.Expose)(),
53
+ __metadata("design:type", Number)
54
+ ], AI.prototype, "aiRating", void 0);
55
+ __decorate([
56
+ (0, class_transformer_1.Expose)(),
57
+ __metadata("design:type", String)
58
+ ], AI.prototype, "aiSummary", void 0);
59
+ class QuestroomMetaRO {
60
+ }
61
+ __decorate([
62
+ (0, class_transformer_1.Expose)(),
63
+ (0, class_transformer_1.Type)(() => Meta),
64
+ __metadata("design:type", Meta)
65
+ ], QuestroomMetaRO.prototype, "meta", void 0);
66
+ __decorate([
67
+ (0, class_transformer_1.Expose)(),
68
+ (0, class_transformer_1.Type)(() => AI),
69
+ __metadata("design:type", AI)
70
+ ], QuestroomMetaRO.prototype, "ai", void 0);
71
+ exports.QuestroomMetaRO = QuestroomMetaRO;
@@ -0,0 +1,30 @@
1
+ declare class ProfileRO {
2
+ country: string;
3
+ title: string;
4
+ }
5
+ declare class CityRO {
6
+ title: string;
7
+ }
8
+ declare class LocationRO {
9
+ cityId: number;
10
+ city: CityRO;
11
+ }
12
+ declare class MetaRO {
13
+ mk: string;
14
+ morty: string;
15
+ nowEscape: string;
16
+ }
17
+ export declare class AdminQuestroomsListRO {
18
+ id: number;
19
+ profileId: number;
20
+ title: string;
21
+ verified: boolean;
22
+ slug: string;
23
+ photo: string;
24
+ teaser: string;
25
+ navigatorReviewId: number;
26
+ profile: ProfileRO;
27
+ location: LocationRO;
28
+ meta: MetaRO;
29
+ }
30
+ export {};
@@ -0,0 +1,106 @@
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.AdminQuestroomsListRO = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ // questroom.ro.ts
15
+ const class_transformer_1 = require("class-transformer");
16
+ class ProfileRO {
17
+ }
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", String)
21
+ ], ProfileRO.prototype, "country", void 0);
22
+ __decorate([
23
+ (0, class_transformer_1.Expose)(),
24
+ __metadata("design:type", String)
25
+ ], ProfileRO.prototype, "title", void 0);
26
+ class CityRO {
27
+ }
28
+ __decorate([
29
+ (0, class_transformer_1.Expose)(),
30
+ __metadata("design:type", String)
31
+ ], CityRO.prototype, "title", void 0);
32
+ class LocationRO {
33
+ }
34
+ __decorate([
35
+ (0, class_transformer_1.Expose)(),
36
+ __metadata("design:type", Number)
37
+ ], LocationRO.prototype, "cityId", void 0);
38
+ __decorate([
39
+ (0, class_transformer_1.Type)(() => CityRO),
40
+ (0, class_transformer_1.Expose)(),
41
+ __metadata("design:type", CityRO)
42
+ ], LocationRO.prototype, "city", void 0);
43
+ class MetaRO {
44
+ }
45
+ __decorate([
46
+ (0, class_transformer_1.Expose)(),
47
+ __metadata("design:type", String)
48
+ ], MetaRO.prototype, "mk", void 0);
49
+ __decorate([
50
+ (0, class_transformer_1.Expose)(),
51
+ __metadata("design:type", String)
52
+ ], MetaRO.prototype, "morty", void 0);
53
+ __decorate([
54
+ (0, class_transformer_1.Expose)(),
55
+ __metadata("design:type", String)
56
+ ], MetaRO.prototype, "nowEscape", void 0);
57
+ class AdminQuestroomsListRO {
58
+ }
59
+ __decorate([
60
+ (0, class_transformer_1.Expose)(),
61
+ __metadata("design:type", Number)
62
+ ], AdminQuestroomsListRO.prototype, "id", void 0);
63
+ __decorate([
64
+ (0, class_transformer_1.Expose)(),
65
+ __metadata("design:type", Number)
66
+ ], AdminQuestroomsListRO.prototype, "profileId", void 0);
67
+ __decorate([
68
+ (0, class_transformer_1.Expose)(),
69
+ __metadata("design:type", String)
70
+ ], AdminQuestroomsListRO.prototype, "title", void 0);
71
+ __decorate([
72
+ (0, class_transformer_1.Expose)(),
73
+ __metadata("design:type", Boolean)
74
+ ], AdminQuestroomsListRO.prototype, "verified", void 0);
75
+ __decorate([
76
+ (0, class_transformer_1.Expose)(),
77
+ __metadata("design:type", String)
78
+ ], AdminQuestroomsListRO.prototype, "slug", void 0);
79
+ __decorate([
80
+ (0, class_transformer_1.Expose)(),
81
+ __metadata("design:type", String)
82
+ ], AdminQuestroomsListRO.prototype, "photo", void 0);
83
+ __decorate([
84
+ (0, class_transformer_1.Expose)(),
85
+ __metadata("design:type", String)
86
+ ], AdminQuestroomsListRO.prototype, "teaser", void 0);
87
+ __decorate([
88
+ (0, class_transformer_1.Expose)(),
89
+ __metadata("design:type", Number)
90
+ ], AdminQuestroomsListRO.prototype, "navigatorReviewId", void 0);
91
+ __decorate([
92
+ (0, class_transformer_1.Type)(() => ProfileRO),
93
+ (0, class_transformer_1.Expose)(),
94
+ __metadata("design:type", ProfileRO)
95
+ ], AdminQuestroomsListRO.prototype, "profile", void 0);
96
+ __decorate([
97
+ (0, class_transformer_1.Type)(() => LocationRO),
98
+ (0, class_transformer_1.Expose)(),
99
+ __metadata("design:type", LocationRO)
100
+ ], AdminQuestroomsListRO.prototype, "location", void 0);
101
+ __decorate([
102
+ (0, class_transformer_1.Type)(() => MetaRO),
103
+ (0, class_transformer_1.Expose)(),
104
+ __metadata("design:type", MetaRO)
105
+ ], AdminQuestroomsListRO.prototype, "meta", void 0);
106
+ exports.AdminQuestroomsListRO = AdminQuestroomsListRO;
@@ -0,0 +1,5 @@
1
+ export declare class UpdateMetaDto {
2
+ mk: string;
3
+ morty: string;
4
+ nowEscape: string;
5
+ }
@@ -9,21 +9,27 @@ 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.AwardRO = void 0;
12
+ exports.UpdateMetaDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const questroom_award_enum_1 = require("../enum/questroom-award.enum");
15
- class AwardRO {
14
+ const class_validator_1 = require("class-validator");
15
+ class UpdateMetaDto {
16
16
  }
17
17
  __decorate([
18
+ (0, class_validator_1.IsUrl)(),
19
+ (0, class_validator_1.ValidateIf)((_, val) => !!val),
18
20
  (0, class_transformer_1.Expose)(),
19
- __metadata("design:type", Number)
20
- ], AwardRO.prototype, "id", void 0);
21
+ __metadata("design:type", String)
22
+ ], UpdateMetaDto.prototype, "mk", void 0);
21
23
  __decorate([
24
+ (0, class_validator_1.IsUrl)(),
22
25
  (0, class_transformer_1.Expose)(),
26
+ (0, class_validator_1.ValidateIf)((_, val) => !!val),
23
27
  __metadata("design:type", String)
24
- ], AwardRO.prototype, "award", void 0);
28
+ ], UpdateMetaDto.prototype, "morty", void 0);
25
29
  __decorate([
30
+ (0, class_validator_1.IsUrl)(),
31
+ (0, class_validator_1.ValidateIf)((_, val) => !!val),
26
32
  (0, class_transformer_1.Expose)(),
27
- __metadata("design:type", Number)
28
- ], AwardRO.prototype, "questroomId", void 0);
29
- exports.AwardRO = AwardRO;
33
+ __metadata("design:type", String)
34
+ ], UpdateMetaDto.prototype, "nowEscape", void 0);
35
+ exports.UpdateMetaDto = UpdateMetaDto;