@escapenavigator/types 1.4.64 → 1.4.66

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,3 +1,5 @@
1
- export declare type AgregatorFavoritesDTO = {
1
+ import { CountriesEnum } from '../../shared/enum/countries.enum';
2
+ export declare class AgregatorFavoritesDTO {
2
3
  slugs: string[];
3
- };
4
+ country: CountriesEnum;
5
+ }
@@ -1,2 +1,27 @@
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.AgregatorFavoritesDTO = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const countries_enum_1 = require("../../shared/enum/countries.enum");
16
+ class AgregatorFavoritesDTO {
17
+ }
18
+ __decorate([
19
+ (0, class_validator_1.IsArray)(),
20
+ __metadata("design:type", Array)
21
+ ], AgregatorFavoritesDTO.prototype, "slugs", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsEnum)(countries_enum_1.CountriesEnum),
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", String)
26
+ ], AgregatorFavoritesDTO.prototype, "country", void 0);
27
+ exports.AgregatorFavoritesDTO = AgregatorFavoritesDTO;
@@ -0,0 +1,4 @@
1
+ import { CountriesEnum } from '../../shared/enum/countries.enum';
2
+ export declare class AgregatorFindCityByIpDto {
3
+ country: CountriesEnum;
4
+ }
@@ -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.AgregatorFindCityByIpDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const countries_enum_1 = require("../../shared/enum/countries.enum");
16
+ class AgregatorFindCityByIpDto {
17
+ }
18
+ __decorate([
19
+ (0, class_validator_1.IsEnum)(countries_enum_1.CountriesEnum),
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", String)
22
+ ], AgregatorFindCityByIpDto.prototype, "country", void 0);
23
+ exports.AgregatorFindCityByIpDto = AgregatorFindCityByIpDto;
@@ -0,0 +1,5 @@
1
+ import { CountriesEnum } from '../../shared/enum/countries.enum';
2
+ export declare class AgregatorFindQuestroomByTitleDto {
3
+ text: string;
4
+ country: CountriesEnum;
5
+ }
@@ -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.AgregatorFindQuestroomByTitleDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const countries_enum_1 = require("../../shared/enum/countries.enum");
16
+ const is_not_blank_1 = require("../../shared/is-not-blank");
17
+ class AgregatorFindQuestroomByTitleDto {
18
+ }
19
+ __decorate([
20
+ (0, is_not_blank_1.IsNotBlank)(),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], AgregatorFindQuestroomByTitleDto.prototype, "text", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsEnum)(countries_enum_1.CountriesEnum),
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], AgregatorFindQuestroomByTitleDto.prototype, "country", void 0);
29
+ exports.AgregatorFindQuestroomByTitleDto = AgregatorFindQuestroomByTitleDto;
@@ -0,0 +1,5 @@
1
+ import { CountriesEnum } from '../../shared/enum/countries.enum';
2
+ export declare class AgregatorFindQuestroomsForCityDto {
3
+ slug: string;
4
+ country: CountriesEnum;
5
+ }
@@ -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.AgregatorFindQuestroomsForCityDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ const countries_enum_1 = require("../../shared/enum/countries.enum");
16
+ const is_not_blank_1 = require("../../shared/is-not-blank");
17
+ class AgregatorFindQuestroomsForCityDto {
18
+ }
19
+ __decorate([
20
+ (0, is_not_blank_1.IsNotBlank)(),
21
+ (0, class_transformer_1.Expose)(),
22
+ __metadata("design:type", String)
23
+ ], AgregatorFindQuestroomsForCityDto.prototype, "slug", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsEnum)(countries_enum_1.CountriesEnum),
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", String)
28
+ ], AgregatorFindQuestroomsForCityDto.prototype, "country", void 0);
29
+ exports.AgregatorFindQuestroomsForCityDto = AgregatorFindQuestroomsForCityDto;
@@ -1,7 +1,9 @@
1
+ import { CountriesEnum } from '../../shared/enum/countries.enum';
1
2
  import { TagsEnum } from '../../shared/enum/tags.enum';
2
3
  export declare type AgregatorQuestroomsByTagsQueryDTO = {
3
4
  skip: number;
4
5
  limit: number;
5
6
  coordinates: [number, number];
6
7
  tag: TagsEnum;
8
+ country: CountriesEnum;
7
9
  };
@@ -1,7 +1,8 @@
1
+ import { CountriesEnum } from '../../shared/enum/countries.enum';
1
2
  import { TagsEnum } from '../../shared/enum/tags.enum';
2
3
  export declare type AgregatorQuestroomsSearchDTO = {
3
4
  skip?: number;
4
- country: string;
5
+ country: CountriesEnum;
5
6
  coordinates: [number, number];
6
7
  players?: string;
7
8
  rating?: string;
@@ -1,9 +1,12 @@
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
1
2
  import { Languages } from '../shared/enum/languages.enum';
2
3
  import { TagsEnum } from '../shared/enum/tags.enum';
3
4
  import { ResponseObject } from '../shared/ro';
4
5
  import { QuestroomCancelationTypeEnum } from './enum/questroom-cancelation-type.enum';
5
6
  export declare type QuestroomRO = ResponseObject & {
6
7
  title: string;
8
+ country: CountriesEnum;
9
+ slug: string;
7
10
  video?: string;
8
11
  photo: string;
9
12
  webLink: string;
@@ -31,4 +34,5 @@ export declare type QuestroomRO = ResponseObject & {
31
34
  tags: TagsEnum[];
32
35
  locationId: number;
33
36
  sortPosition: number;
37
+ navigatorReviewId: number;
34
38
  };
@@ -2,7 +2,6 @@ export declare class NavigatorReviewDto {
2
2
  questroomId: number;
3
3
  title: string;
4
4
  text: string;
5
- phone: string;
6
5
  plot: number;
7
6
  mobility: number;
8
7
  atmosphere: number;
@@ -30,11 +30,6 @@ __decorate([
30
30
  (0, class_transformer_1.Expose)(),
31
31
  __metadata("design:type", String)
32
32
  ], NavigatorReviewDto.prototype, "text", void 0);
33
- __decorate([
34
- (0, is_not_blank_1.IsNotBlank)(),
35
- (0, class_transformer_1.Expose)(),
36
- __metadata("design:type", String)
37
- ], NavigatorReviewDto.prototype, "phone", void 0);
38
33
  __decorate([
39
34
  (0, class_validator_1.IsPositive)(),
40
35
  (0, class_transformer_1.Expose)(),
@@ -1,7 +1,7 @@
1
+ import { QuestroomRO } from '../questroom/questroom.ro';
1
2
  export declare type NavigatorReviewRO = {
2
3
  id: number;
3
4
  createdAt: Date;
4
- questroomId: number;
5
5
  title: string;
6
6
  text: string;
7
7
  plot: number;
@@ -10,4 +10,5 @@ export declare type NavigatorReviewRO = {
10
10
  clean: number;
11
11
  puzzle: number;
12
12
  team: number;
13
+ questroom?: QuestroomRO;
13
14
  };