@escapenavigator/types 1.6.24 → 1.6.25

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,5 +1,5 @@
1
1
  import { CountriesEnum } from '../shared/enum/countries.enum';
2
- export declare type AgregatorCityRO = {
2
+ export declare class AgregatorCityRO {
3
3
  id: number;
4
4
  title: string;
5
5
  country: CountriesEnum;
@@ -7,4 +7,4 @@ export declare type AgregatorCityRO = {
7
7
  coordinates: [number, number];
8
8
  questroomsCount: number;
9
9
  slug: string;
10
- };
10
+ }
@@ -1,2 +1,45 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AgregatorCityRO = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const countries_enum_1 = require("../shared/enum/countries.enum");
15
+ class AgregatorCityRO {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Expose)(),
19
+ __metadata("design:type", Number)
20
+ ], AgregatorCityRO.prototype, "id", void 0);
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], AgregatorCityRO.prototype, "title", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], AgregatorCityRO.prototype, "country", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", String)
32
+ ], AgregatorCityRO.prototype, "photo", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", Array)
36
+ ], AgregatorCityRO.prototype, "coordinates", void 0);
37
+ __decorate([
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", Number)
40
+ ], AgregatorCityRO.prototype, "questroomsCount", void 0);
41
+ __decorate([
42
+ (0, class_transformer_1.Expose)(),
43
+ __metadata("design:type", String)
44
+ ], AgregatorCityRO.prototype, "slug", void 0);
45
+ exports.AgregatorCityRO = AgregatorCityRO;
@@ -1,11 +1,6 @@
1
1
  import { AgregatorQuestroomCardRO } from './agregator-questroom-card.ro';
2
- export declare type AgregatorOrganizationQuestroomsRO = {
3
- organization: {
4
- title: string;
5
- slug: string;
6
- verified: boolean;
7
- };
8
- questrooms: Array<AgregatorQuestroomCardRO & {
9
- address: string;
10
- }>;
11
- };
2
+ import { AgregatorProfile } from './agregator-questroom.ro';
3
+ export declare class AgregatorOrganizationQuestroomsRO {
4
+ organization: AgregatorProfile;
5
+ questrooms: AgregatorQuestroomCardRO[];
6
+ }
@@ -1,2 +1,28 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AgregatorOrganizationQuestroomsRO = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const agregator_questroom_card_ro_1 = require("./agregator-questroom-card.ro");
15
+ const agregator_questroom_ro_1 = require("./agregator-questroom.ro");
16
+ class AgregatorOrganizationQuestroomsRO {
17
+ }
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)(),
20
+ (0, class_transformer_1.Type)(() => agregator_questroom_ro_1.AgregatorProfile),
21
+ __metadata("design:type", agregator_questroom_ro_1.AgregatorProfile)
22
+ ], AgregatorOrganizationQuestroomsRO.prototype, "organization", void 0);
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ (0, class_transformer_1.Type)(() => agregator_questroom_card_ro_1.AgregatorQuestroomCardRO),
26
+ __metadata("design:type", Array)
27
+ ], AgregatorOrganizationQuestroomsRO.prototype, "questrooms", void 0);
28
+ exports.AgregatorOrganizationQuestroomsRO = AgregatorOrganizationQuestroomsRO;
@@ -2,24 +2,42 @@ 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
4
  import { NavigatorReviewRO } from '../review/navigator-review.ro';
5
+ import { CountriesEnum } from '../shared/enum/countries.enum';
5
6
  import { Languages } from '../shared/enum/languages.enum';
6
7
  import { TagsEnum } from '../shared/enum/tags.enum';
7
- import { UpsellingResponseObject } from '../upselling/upselling.ro';
8
- import { AgregatorCityRO } from './agregator-city.ro';
9
- export declare type AgregatorQuestroomRO = {
8
+ export declare class AgregatorProfile {
9
+ title: string;
10
+ slug: string;
11
+ verified?: boolean;
12
+ }
13
+ declare class City {
14
+ title: string;
15
+ country: CountriesEnum;
16
+ }
17
+ declare class Location {
18
+ address: string;
19
+ id: number;
20
+ phone: string;
21
+ coordinates: [number, number];
22
+ howToFind: string;
23
+ prepareText: string;
24
+ wifi: boolean;
25
+ wardrobe: boolean;
26
+ freeParking: boolean;
27
+ parking: boolean;
28
+ waitingAreaSize: number;
29
+ city: City;
30
+ }
31
+ export declare class AgregatorQuestroomRO {
10
32
  id: number;
33
+ currency: ProfileCurrencyEnum;
11
34
  createdAt: Date;
12
35
  slug: string;
13
36
  teaser: string;
14
37
  closed: boolean;
15
38
  title: string;
16
39
  type: QuestroomTypeEnum;
17
- organization: {
18
- title: string;
19
- currency: ProfileCurrencyEnum;
20
- slug: string;
21
- verified: boolean;
22
- };
40
+ profile: AgregatorProfile;
23
41
  playersMin: number;
24
42
  playersMax: number;
25
43
  time: number;
@@ -27,20 +45,7 @@ export declare type AgregatorQuestroomRO = {
27
45
  difficult: number;
28
46
  fear: number;
29
47
  minAge: number;
30
- location: {
31
- address: string;
32
- id: number;
33
- phone: string;
34
- coordinates: [number, number];
35
- howToFind: string;
36
- prepareText: string;
37
- wifi: boolean;
38
- wardrobe: boolean;
39
- freeParking: boolean;
40
- parking: boolean;
41
- waitingAreaSize: number;
42
- city: AgregatorCityRO;
43
- };
48
+ location: Location;
44
49
  legend?: string;
45
50
  importantInfo?: string;
46
51
  actors: QuestroomActorsEnum;
@@ -48,12 +53,11 @@ export declare type AgregatorQuestroomRO = {
48
53
  photo: string;
49
54
  photos: string[];
50
55
  video?: string;
51
- upsellings: Array<Pick<UpsellingResponseObject, 'title' | 'price' | 'description'>>;
52
56
  languages?: Languages[];
53
- defaultLanguage?: Languages;
54
57
  rating: number;
55
58
  reviewsCount: number;
56
59
  hasSchedule: boolean;
57
60
  top: boolean;
58
61
  navigatorReview?: NavigatorReviewRO;
59
- };
62
+ }
63
+ export {};
@@ -1,2 +1,227 @@
1
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
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AgregatorQuestroomRO = exports.AgregatorProfile = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ const class_transformer_1 = require("class-transformer");
15
+ const profile_currency_1 = require("../profile/enum/profile-currency");
16
+ const questroom_actors_enum_1 = require("../questroom/enum/questroom-actors.enum");
17
+ const questroom_type_enum_1 = require("../questroom/enum/questroom-type.enum");
18
+ const countries_enum_1 = require("../shared/enum/countries.enum");
19
+ class AgregatorProfile {
20
+ }
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", String)
24
+ ], AgregatorProfile.prototype, "title", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], AgregatorProfile.prototype, "slug", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ (0, class_transformer_1.Transform)(({ obj }) => {
32
+ const [type] = obj.step.split('_')[0];
33
+ return type === 'integrated' || type === 'CRM' || type === 'canceled' || type === 'closed';
34
+ }),
35
+ __metadata("design:type", Boolean)
36
+ ], AgregatorProfile.prototype, "verified", void 0);
37
+ exports.AgregatorProfile = AgregatorProfile;
38
+ class City {
39
+ }
40
+ __decorate([
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", String)
43
+ ], City.prototype, "title", void 0);
44
+ __decorate([
45
+ (0, class_transformer_1.Expose)(),
46
+ __metadata("design:type", String)
47
+ ], City.prototype, "country", void 0);
48
+ class Location {
49
+ }
50
+ __decorate([
51
+ (0, class_transformer_1.Expose)(),
52
+ __metadata("design:type", String)
53
+ ], Location.prototype, "address", void 0);
54
+ __decorate([
55
+ (0, class_transformer_1.Expose)(),
56
+ __metadata("design:type", Number)
57
+ ], Location.prototype, "id", void 0);
58
+ __decorate([
59
+ (0, class_transformer_1.Expose)(),
60
+ __metadata("design:type", String)
61
+ ], Location.prototype, "phone", void 0);
62
+ __decorate([
63
+ (0, class_transformer_1.Expose)(),
64
+ __metadata("design:type", Array)
65
+ ], Location.prototype, "coordinates", void 0);
66
+ __decorate([
67
+ (0, class_transformer_1.Expose)(),
68
+ __metadata("design:type", String)
69
+ ], Location.prototype, "howToFind", void 0);
70
+ __decorate([
71
+ (0, class_transformer_1.Expose)(),
72
+ __metadata("design:type", String)
73
+ ], Location.prototype, "prepareText", void 0);
74
+ __decorate([
75
+ (0, class_transformer_1.Expose)(),
76
+ __metadata("design:type", Boolean)
77
+ ], Location.prototype, "wifi", void 0);
78
+ __decorate([
79
+ (0, class_transformer_1.Expose)(),
80
+ __metadata("design:type", Boolean)
81
+ ], Location.prototype, "wardrobe", void 0);
82
+ __decorate([
83
+ (0, class_transformer_1.Expose)(),
84
+ __metadata("design:type", Boolean)
85
+ ], Location.prototype, "freeParking", void 0);
86
+ __decorate([
87
+ (0, class_transformer_1.Expose)(),
88
+ __metadata("design:type", Boolean)
89
+ ], Location.prototype, "parking", void 0);
90
+ __decorate([
91
+ (0, class_transformer_1.Expose)(),
92
+ __metadata("design:type", Number)
93
+ ], Location.prototype, "waitingAreaSize", void 0);
94
+ __decorate([
95
+ (0, class_transformer_1.Expose)(),
96
+ (0, class_transformer_1.Type)(() => City),
97
+ __metadata("design:type", City)
98
+ ], Location.prototype, "city", void 0);
99
+ class AgregatorQuestroomRO {
100
+ }
101
+ __decorate([
102
+ (0, class_transformer_1.Expose)(),
103
+ __metadata("design:type", Number)
104
+ ], AgregatorQuestroomRO.prototype, "id", void 0);
105
+ __decorate([
106
+ (0, class_transformer_1.Expose)(),
107
+ __metadata("design:type", String)
108
+ ], AgregatorQuestroomRO.prototype, "currency", void 0);
109
+ __decorate([
110
+ (0, class_transformer_1.Expose)(),
111
+ __metadata("design:type", Date)
112
+ ], AgregatorQuestroomRO.prototype, "createdAt", void 0);
113
+ __decorate([
114
+ (0, class_transformer_1.Expose)(),
115
+ __metadata("design:type", String)
116
+ ], AgregatorQuestroomRO.prototype, "slug", void 0);
117
+ __decorate([
118
+ (0, class_transformer_1.Expose)(),
119
+ __metadata("design:type", String)
120
+ ], AgregatorQuestroomRO.prototype, "teaser", void 0);
121
+ __decorate([
122
+ (0, class_transformer_1.Expose)(),
123
+ __metadata("design:type", Boolean)
124
+ ], AgregatorQuestroomRO.prototype, "closed", void 0);
125
+ __decorate([
126
+ (0, class_transformer_1.Expose)(),
127
+ __metadata("design:type", String)
128
+ ], AgregatorQuestroomRO.prototype, "title", void 0);
129
+ __decorate([
130
+ (0, class_transformer_1.Expose)(),
131
+ __metadata("design:type", String)
132
+ ], AgregatorQuestroomRO.prototype, "type", void 0);
133
+ __decorate([
134
+ (0, class_transformer_1.Expose)(),
135
+ (0, class_transformer_1.Type)(() => AgregatorProfile),
136
+ __metadata("design:type", AgregatorProfile)
137
+ ], AgregatorQuestroomRO.prototype, "profile", void 0);
138
+ __decorate([
139
+ (0, class_transformer_1.Expose)(),
140
+ __metadata("design:type", Number)
141
+ ], AgregatorQuestroomRO.prototype, "playersMin", void 0);
142
+ __decorate([
143
+ (0, class_transformer_1.Expose)(),
144
+ __metadata("design:type", Number)
145
+ ], AgregatorQuestroomRO.prototype, "playersMax", void 0);
146
+ __decorate([
147
+ (0, class_transformer_1.Expose)(),
148
+ __metadata("design:type", Number)
149
+ ], AgregatorQuestroomRO.prototype, "time", void 0);
150
+ __decorate([
151
+ (0, class_transformer_1.Expose)(),
152
+ __metadata("design:type", Number)
153
+ ], AgregatorQuestroomRO.prototype, "price", void 0);
154
+ __decorate([
155
+ (0, class_transformer_1.Expose)(),
156
+ __metadata("design:type", Number)
157
+ ], AgregatorQuestroomRO.prototype, "difficult", void 0);
158
+ __decorate([
159
+ (0, class_transformer_1.Expose)(),
160
+ __metadata("design:type", Number)
161
+ ], AgregatorQuestroomRO.prototype, "fear", void 0);
162
+ __decorate([
163
+ (0, class_transformer_1.Expose)(),
164
+ __metadata("design:type", Number)
165
+ ], AgregatorQuestroomRO.prototype, "minAge", void 0);
166
+ __decorate([
167
+ (0, class_transformer_1.Expose)(),
168
+ (0, class_transformer_1.Type)(() => Location),
169
+ __metadata("design:type", Location)
170
+ ], AgregatorQuestroomRO.prototype, "location", void 0);
171
+ __decorate([
172
+ (0, class_transformer_1.Expose)(),
173
+ __metadata("design:type", String)
174
+ ], AgregatorQuestroomRO.prototype, "legend", void 0);
175
+ __decorate([
176
+ (0, class_transformer_1.Expose)(),
177
+ __metadata("design:type", String)
178
+ ], AgregatorQuestroomRO.prototype, "importantInfo", void 0);
179
+ __decorate([
180
+ (0, class_transformer_1.Expose)(),
181
+ __metadata("design:type", String)
182
+ ], AgregatorQuestroomRO.prototype, "actors", void 0);
183
+ __decorate([
184
+ (0, class_transformer_1.Expose)(),
185
+ __metadata("design:type", Array)
186
+ ], AgregatorQuestroomRO.prototype, "questroomTags", void 0);
187
+ __decorate([
188
+ (0, class_transformer_1.Expose)(),
189
+ __metadata("design:type", String)
190
+ ], AgregatorQuestroomRO.prototype, "photo", void 0);
191
+ __decorate([
192
+ (0, class_transformer_1.Expose)(),
193
+ __metadata("design:type", Array)
194
+ ], AgregatorQuestroomRO.prototype, "photos", void 0);
195
+ __decorate([
196
+ (0, class_transformer_1.Expose)(),
197
+ __metadata("design:type", String)
198
+ ], AgregatorQuestroomRO.prototype, "video", void 0);
199
+ __decorate([
200
+ (0, class_transformer_1.Expose)(),
201
+ __metadata("design:type", Array)
202
+ ], AgregatorQuestroomRO.prototype, "languages", void 0);
203
+ __decorate([
204
+ (0, class_transformer_1.Expose)(),
205
+ __metadata("design:type", Number)
206
+ ], AgregatorQuestroomRO.prototype, "rating", void 0);
207
+ __decorate([
208
+ (0, class_transformer_1.Expose)(),
209
+ __metadata("design:type", Number)
210
+ ], AgregatorQuestroomRO.prototype, "reviewsCount", void 0);
211
+ __decorate([
212
+ (0, class_transformer_1.Expose)(),
213
+ (0, class_transformer_1.Transform)(({ obj }) => {
214
+ const [type] = obj.profile.step.split('_')[0];
215
+ return obj.hasSchedule && (type === 'integrated' || type === 'CRM');
216
+ }),
217
+ __metadata("design:type", Boolean)
218
+ ], AgregatorQuestroomRO.prototype, "hasSchedule", void 0);
219
+ __decorate([
220
+ (0, class_transformer_1.Expose)(),
221
+ __metadata("design:type", Boolean)
222
+ ], AgregatorQuestroomRO.prototype, "top", void 0);
223
+ __decorate([
224
+ (0, class_transformer_1.Expose)(),
225
+ __metadata("design:type", Object)
226
+ ], AgregatorQuestroomRO.prototype, "navigatorReview", void 0);
227
+ exports.AgregatorQuestroomRO = AgregatorQuestroomRO;
@@ -7,6 +7,7 @@ import { SourceEnum } from '../shared/source.enum';
7
7
  import { CertificatesaleDeliveryTypeEnum } from './enum/certificatesales-delivery-type.enum';
8
8
  export declare class CertificateSaleRO extends RO {
9
9
  profileId: number;
10
+ updatedAt: Date;
10
11
  sended: boolean;
11
12
  expireDate: string;
12
13
  certificate: CertificateRO;
@@ -22,6 +22,10 @@ __decorate([
22
22
  (0, class_transformer_1.Expose)(),
23
23
  __metadata("design:type", Number)
24
24
  ], CertificateSaleRO.prototype, "profileId", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", Date)
28
+ ], CertificateSaleRO.prototype, "updatedAt", void 0);
25
29
  __decorate([
26
30
  (0, class_transformer_1.Expose)(),
27
31
  __metadata("design:type", Boolean)