@escapenavigator/types 1.6.40 → 1.6.42

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,6 +1,6 @@
1
- import { AgregatorQuestroomCardRO } from './agregator-questroom-card.ro';
1
+ import { AgregatorQuestroomProfileCardRO } from './agregator-questroom-profile-card.ro';
2
2
  import { AgregatorProfile } from './agregator-questroom.ro';
3
3
  export declare class AgregatorOrganizationQuestroomsRO {
4
4
  organization: AgregatorProfile;
5
- questrooms: AgregatorQuestroomCardRO[];
5
+ questrooms: AgregatorQuestroomProfileCardRO[];
6
6
  }
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AgregatorOrganizationQuestroomsRO = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
- const agregator_questroom_card_ro_1 = require("./agregator-questroom-card.ro");
14
+ const agregator_questroom_profile_card_ro_1 = require("./agregator-questroom-profile-card.ro");
15
15
  const agregator_questroom_ro_1 = require("./agregator-questroom.ro");
16
16
  class AgregatorOrganizationQuestroomsRO {
17
17
  }
@@ -22,7 +22,7 @@ __decorate([
22
22
  ], AgregatorOrganizationQuestroomsRO.prototype, "organization", void 0);
23
23
  __decorate([
24
24
  (0, class_transformer_1.Expose)(),
25
- (0, class_transformer_1.Type)(() => agregator_questroom_card_ro_1.AgregatorQuestroomCardRO),
25
+ (0, class_transformer_1.Type)(() => agregator_questroom_profile_card_ro_1.AgregatorQuestroomProfileCardRO),
26
26
  __metadata("design:type", Array)
27
27
  ], AgregatorOrganizationQuestroomsRO.prototype, "questrooms", void 0);
28
28
  exports.AgregatorOrganizationQuestroomsRO = AgregatorOrganizationQuestroomsRO;
@@ -1,26 +1,17 @@
1
1
  import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
2
- import { Languages } from '../shared/enum/languages.enum';
3
- declare class Location {
4
- address: string;
5
- }
6
2
  export declare class AgregatorQuestroomCardRO {
7
3
  createdAt: Date;
8
4
  title: string;
9
5
  slug: string;
10
- location: Location;
11
6
  top: boolean;
12
7
  closed: boolean;
13
8
  type: QuestroomTypeEnum;
14
9
  rating: number;
15
- reviewsCount: number;
16
10
  photo: string;
17
- time: number;
18
11
  minAge: number;
19
12
  playersMin: number;
20
13
  playersMax: number;
21
14
  difficult: number;
22
15
  fear: number;
23
16
  hasSchedule?: boolean;
24
- languages?: Languages[];
25
17
  }
26
- export {};
@@ -10,16 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AgregatorQuestroomCardRO = void 0;
13
- /* eslint-disable max-classes-per-file */
14
13
  const class_transformer_1 = require("class-transformer");
15
14
  const partner_program_enum_1 = require("../profile/enum/partner-program.enum");
16
15
  const questroom_type_enum_1 = require("../questroom/enum/questroom-type.enum");
17
- class Location {
18
- }
19
- __decorate([
20
- (0, class_transformer_1.Expose)(),
21
- __metadata("design:type", String)
22
- ], Location.prototype, "address", void 0);
23
16
  class AgregatorQuestroomCardRO {
24
17
  }
25
18
  __decorate([
@@ -34,11 +27,6 @@ __decorate([
34
27
  (0, class_transformer_1.Expose)(),
35
28
  __metadata("design:type", String)
36
29
  ], AgregatorQuestroomCardRO.prototype, "slug", void 0);
37
- __decorate([
38
- (0, class_transformer_1.Expose)(),
39
- (0, class_transformer_1.Type)(() => Location),
40
- __metadata("design:type", Location)
41
- ], AgregatorQuestroomCardRO.prototype, "location", void 0);
42
30
  __decorate([
43
31
  (0, class_transformer_1.Expose)(),
44
32
  __metadata("design:type", Boolean)
@@ -55,18 +43,10 @@ __decorate([
55
43
  (0, class_transformer_1.Expose)(),
56
44
  __metadata("design:type", Number)
57
45
  ], AgregatorQuestroomCardRO.prototype, "rating", void 0);
58
- __decorate([
59
- (0, class_transformer_1.Expose)(),
60
- __metadata("design:type", Number)
61
- ], AgregatorQuestroomCardRO.prototype, "reviewsCount", void 0);
62
46
  __decorate([
63
47
  (0, class_transformer_1.Expose)(),
64
48
  __metadata("design:type", String)
65
49
  ], AgregatorQuestroomCardRO.prototype, "photo", void 0);
66
- __decorate([
67
- (0, class_transformer_1.Expose)(),
68
- __metadata("design:type", Number)
69
- ], AgregatorQuestroomCardRO.prototype, "time", void 0);
70
50
  __decorate([
71
51
  (0, class_transformer_1.Expose)(),
72
52
  __metadata("design:type", Number)
@@ -92,8 +72,4 @@ __decorate([
92
72
  (0, class_transformer_1.Transform)(({ obj }) => { var _a; return obj.templateId && ((_a = obj.profile) === null || _a === void 0 ? void 0 : _a.partnerProgram) === partner_program_enum_1.PartnerProgramEnum.ACTIVE; }),
93
73
  __metadata("design:type", Boolean)
94
74
  ], AgregatorQuestroomCardRO.prototype, "hasSchedule", void 0);
95
- __decorate([
96
- (0, class_transformer_1.Expose)(),
97
- __metadata("design:type", Array)
98
- ], AgregatorQuestroomCardRO.prototype, "languages", void 0);
99
75
  exports.AgregatorQuestroomCardRO = AgregatorQuestroomCardRO;
@@ -0,0 +1,8 @@
1
+ import { AgregatorQuestroomCardRO } from './agregator-questroom-card.ro';
2
+ declare class Location {
3
+ address: string;
4
+ }
5
+ export declare class AgregatorQuestroomProfileCardRO extends AgregatorQuestroomCardRO {
6
+ location: Location;
7
+ }
8
+ export {};
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.AgregatorQuestroomProfileCardRO = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ const class_transformer_1 = require("class-transformer");
15
+ const agregator_questroom_card_ro_1 = require("./agregator-questroom-card.ro");
16
+ class Location {
17
+ }
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", String)
21
+ ], Location.prototype, "address", void 0);
22
+ class AgregatorQuestroomProfileCardRO extends agregator_questroom_card_ro_1.AgregatorQuestroomCardRO {
23
+ }
24
+ __decorate([
25
+ (0, class_transformer_1.Expose)(),
26
+ (0, class_transformer_1.Type)(() => Location),
27
+ __metadata("design:type", Location)
28
+ ], AgregatorQuestroomProfileCardRO.prototype, "location", void 0);
29
+ exports.AgregatorQuestroomProfileCardRO = AgregatorQuestroomProfileCardRO;
@@ -31,9 +31,9 @@ __decorate([
31
31
  ], AgregatorProfile.prototype, "slug", void 0);
32
32
  __decorate([
33
33
  (0, class_transformer_1.Expose)(),
34
- (0, class_transformer_1.Transform)(({ value }) => value.status === profile_step_enum_1.ProfileStatusEnum.VERIFIED ||
35
- value.status === profile_step_enum_1.ProfileStatusEnum.CLOSED ||
36
- value.status === profile_step_enum_1.ProfileStatusEnum.CANCELED),
34
+ (0, class_transformer_1.Transform)(({ obj }) => (obj === null || obj === void 0 ? void 0 : obj.status) === profile_step_enum_1.ProfileStatusEnum.VERIFIED ||
35
+ (obj === null || obj === void 0 ? void 0 : obj.status) === profile_step_enum_1.ProfileStatusEnum.CLOSED ||
36
+ (obj === null || obj === void 0 ? void 0 : obj.status) === profile_step_enum_1.ProfileStatusEnum.CANCELED),
37
37
  __metadata("design:type", Boolean)
38
38
  ], AgregatorProfile.prototype, "verified", void 0);
39
39
  exports.AgregatorProfile = AgregatorProfile;
@@ -208,7 +208,7 @@ __decorate([
208
208
  ], AgregatorQuestroomRO.prototype, "reviewsCount", void 0);
209
209
  __decorate([
210
210
  (0, class_transformer_1.Expose)(),
211
- (0, class_transformer_1.Transform)(({ obj }) => currency_by_country_1.currencyByCountry[obj.profile.countery]),
211
+ (0, class_transformer_1.Transform)(({ obj }) => { var _a; return currency_by_country_1.currencyByCountry[(_a = obj.profile) === null || _a === void 0 ? void 0 : _a.countery]; }),
212
212
  __metadata("design:type", String)
213
213
  ], AgregatorQuestroomRO.prototype, "currency", void 0);
214
214
  __decorate([
@@ -3,6 +3,7 @@ import { Languages } from '../../shared/enum/languages.enum';
3
3
  import { TagsEnum, TechTagsEnum } from '../../shared/enum/tags.enum';
4
4
  export declare type AgregatorQuestroomsSearchDTO = {
5
5
  skip?: number;
6
+ limit: number;
6
7
  country: CountriesEnum;
7
8
  coordinates: [number, number];
8
9
  players?: string;