@escapenavigator/types 1.4.20 → 1.4.23

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 (47) hide show
  1. package/dist/agregator/agregator-city-questrooms.ro.d.ts +1 -1
  2. package/dist/agregator/agregator-city.ro.d.ts +1 -1
  3. package/dist/agregator/agregator-questroom-card.ro.d.ts +2 -2
  4. package/dist/agregator/agregator-questroom.ro.d.ts +8 -9
  5. package/dist/agregator/agregator-similar-questrooms-near.ro.d.ts +1 -1
  6. package/dist/agregator/dto/agregator-questrooms-by-tags-query.dto.d.ts +1 -1
  7. package/dist/agregator/dto/agregator-questrooms-search.dto.d.ts +12 -0
  8. package/dist/agregator/dto/agregator-questrooms-search.dto.js +2 -0
  9. package/dist/agregator/dto/agregator-similar-questrooms-near-query.dto.d.ts +1 -1
  10. package/dist/article/article.ro.d.ts +2 -0
  11. package/dist/article/create-article.dto.d.ts +2 -0
  12. package/dist/article/create-article.dto.js +7 -0
  13. package/dist/article/update-article.dto.js +1 -1
  14. package/dist/cashbox/create-cashbox.dto.d.ts +1 -1
  15. package/dist/certificate-sale/certificate-sale.ro.d.ts +4 -4
  16. package/dist/certificate-sale/create-certificatesale.dto.d.ts +1 -1
  17. package/dist/city/city.ro.d.ts +1 -1
  18. package/dist/city/create-city.dto.d.ts +1 -1
  19. package/dist/city/create-city.dto.js +2 -2
  20. package/dist/city/update-city.dto.d.ts +1 -1
  21. package/dist/city/update-city.dto.js +1 -1
  22. package/dist/client/client.ro.d.ts +1 -1
  23. package/dist/index.d.ts +3 -3
  24. package/dist/questroom/agregator-questroom.ro.d.ts +3 -3
  25. package/dist/questroom/create-questroom.dto.d.ts +3 -3
  26. package/dist/questroom/questroom.ro.d.ts +3 -3
  27. package/dist/review/review.ro.d.ts +10 -8
  28. package/dist/shared/enum/countries.enum.d.ts +3 -3
  29. package/dist/slot-template/update-slot-template.dto.d.ts +1 -1
  30. package/dist/slot-template/update-weekends.dto.d.ts +1 -1
  31. package/dist/tariff/tariff.ro.d.ts +1 -1
  32. package/dist/tsconfig.build.tsbuildinfo +1 -1
  33. package/dist/upload/enum/image-type.enum.d.ts +2 -1
  34. package/dist/upload/enum/image-type.enum.js +1 -0
  35. package/dist/widget-openapi/widget-openapi-certificate.ro.d.ts +22 -5
  36. package/dist/widget-openapi/widget-openapi-create-certificate.dto.d.ts +1 -1
  37. package/dist/widget-openapi/widget-openapi-create-order.dto.d.ts +1 -1
  38. package/dist/widget-openapi/widget-openapi-create-review.dto.d.ts +11 -0
  39. package/dist/widget-openapi/widget-openapi-create-review.dto.js +52 -0
  40. package/dist/widget-openapi/widget-openapi-find-reviews.dto.d.ts +4 -0
  41. package/dist/widget-openapi/widget-openapi-find-reviews.dto.js +24 -0
  42. package/dist/widget-openapi/widget-openapi-order.ro.d.ts +6 -6
  43. package/dist/widget-openapi/widget-openapi-review.ro.d.ts +9 -0
  44. package/dist/widget-openapi/widget-openapi-review.ro.js +2 -0
  45. package/dist/widget-openapi/widget-openapi-schedule-query.dto.js +1 -2
  46. package/dist/widget-openapi/widget-openapi.ro.d.ts +6 -4
  47. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
+ import { AgregatorCityRO } from './agregator-city.ro';
1
2
  import { AgregatorQuestroomCardRO } from './agregator-questroom-card.ro';
2
- import { AgregatorCityRO } from "./agregator-city.ro";
3
3
  export declare type AgregatorCityQuestroomsRO = {
4
4
  city: AgregatorCityRO;
5
5
  questrooms: AgregatorQuestroomCardRO[];
@@ -1,4 +1,4 @@
1
- import { CountriesEnum } from './../shared/enum/countries.enum';
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
2
2
  export declare type AgregatorCityRO = {
3
3
  id: number;
4
4
  title: string;
@@ -1,5 +1,5 @@
1
- import { QuestroomTypeEnum } from "../questroom/enum/questroom-type.enum";
2
- import { Languages } from "../shared/enum/languages.enum";
1
+ import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
2
+ import { Languages } from '../shared/enum/languages.enum';
3
3
  export declare type AgregatorQuestroomCardRO = {
4
4
  slug: string;
5
5
  title: string;
@@ -1,10 +1,9 @@
1
- import { QuestroomTypeEnum } from "./../questroom/enum/questroom-type.enum";
2
- import { Languages } from "../shared/enum/languages.enum";
3
- import { ProfileCurrencyEnum } from "../profile/enum/profile-currency";
4
- import { TagsEnum } from "../shared/enum/tags.enum";
5
- import { ReviewResponseObject } from "../review/review.ro";
6
- import { UpsellingResponseObject } from "../upselling/upselling.ro";
7
- import { AgregatorCityRO } from "./agregator-city.ro";
1
+ import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
2
+ import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
3
+ import { Languages } from '../shared/enum/languages.enum';
4
+ import { TagsEnum } from '../shared/enum/tags.enum';
5
+ import { UpsellingResponseObject } from '../upselling/upselling.ro';
6
+ import { AgregatorCityRO } from './agregator-city.ro';
8
7
  export declare type AgregatorQuestroomRO = {
9
8
  slug: string;
10
9
  title: string;
@@ -42,12 +41,12 @@ export declare type AgregatorQuestroomRO = {
42
41
  photos: string[];
43
42
  video?: string;
44
43
  tags: TagsEnum[];
45
- upsellings: Pick<UpsellingResponseObject, "title" | "price" | "description">[];
44
+ upsellings: Array<Pick<UpsellingResponseObject, 'title' | 'price' | 'description'>>;
46
45
  minHoursForFreeCanceling: number;
47
46
  actors: boolean;
48
47
  languages?: Languages[];
49
48
  defaultLanguage?: Languages;
50
- reviews: ReviewResponseObject[];
49
+ reviews: [];
51
50
  reviewsCount: number;
52
51
  rating: number;
53
52
  plot: number;
@@ -1,5 +1,5 @@
1
- import { AgregatorQuestroomCardRO } from './agregator-questroom-card.ro';
2
1
  import { AgregatorCityRO } from './agregator-city.ro';
2
+ import { AgregatorQuestroomCardRO } from './agregator-questroom-card.ro';
3
3
  export declare type AgregatorSimilarQuestroomsNearRO = {
4
4
  city: AgregatorCityRO;
5
5
  questrooms: AgregatorQuestroomCardRO[];
@@ -1,4 +1,4 @@
1
- import { TagsEnum } from "../../shared/enum/tags.enum";
1
+ import { TagsEnum } from '../../shared/enum/tags.enum';
2
2
  export declare type AgregatorQuestroomsByTagsQueryDTO = {
3
3
  skip: number;
4
4
  limit: number;
@@ -0,0 +1,12 @@
1
+ export declare type AgregatorQuestroomsSearchDTO = {
2
+ skip?: number;
3
+ country: string;
4
+ coordinates: [number, number];
5
+ players?: string;
6
+ rating?: string;
7
+ category?: string;
8
+ language?: string;
9
+ difficult?: string;
10
+ fear?: string;
11
+ age?: string;
12
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,4 +1,4 @@
1
- import { TagsEnum } from "../../shared/enum/tags.enum";
1
+ import { TagsEnum } from '../../shared/enum/tags.enum';
2
2
  export declare type AgregatorSimilarQuestromsNearQueryDTO = {
3
3
  citySlug: string;
4
4
  tags: TagsEnum[];
@@ -1,3 +1,4 @@
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
1
2
  import { ResponseObject } from '../shared/ro';
2
3
  export declare type ArticleResponseObject = ResponseObject & {
3
4
  title: string;
@@ -8,4 +9,5 @@ export declare type ArticleResponseObject = ResponseObject & {
8
9
  color: string;
9
10
  time: string;
10
11
  preview: string;
12
+ languages: CountriesEnum[];
11
13
  };
@@ -1,3 +1,4 @@
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
1
2
  export declare class CreateArticleDto {
2
3
  title: string;
3
4
  description: string;
@@ -6,4 +7,5 @@ export declare class CreateArticleDto {
6
7
  color: string;
7
8
  time: string;
8
9
  preview: string;
10
+ languages: CountriesEnum[];
9
11
  }
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateArticleDto = void 0;
13
13
  const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
14
15
  const is_not_blank_string_1 = require("../shared/is-not-blank-string");
15
16
  class CreateArticleDto {
16
17
  }
@@ -49,4 +50,10 @@ __decorate([
49
50
  (0, class_transformer_1.Expose)(),
50
51
  __metadata("design:type", String)
51
52
  ], CreateArticleDto.prototype, "preview", void 0);
53
+ __decorate([
54
+ (0, class_validator_1.IsArray)(),
55
+ (0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
56
+ (0, class_transformer_1.Expose)(),
57
+ __metadata("design:type", Array)
58
+ ], CreateArticleDto.prototype, "languages", void 0);
52
59
  exports.CreateArticleDto = CreateArticleDto;
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UpdateArticleDto = void 0;
4
- const create_article_dto_1 = require("./create-article.dto");
5
4
  const mapped_types_1 = require("@nestjs/mapped-types");
5
+ const create_article_dto_1 = require("./create-article.dto");
6
6
  class UpdateArticleDto extends (0, mapped_types_1.PartialType)(create_article_dto_1.CreateArticleDto) {
7
7
  }
8
8
  exports.UpdateArticleDto = UpdateArticleDto;
@@ -1,4 +1,4 @@
1
- import { CashboxTypeEnum } from "./enum/cashbox-type.enum";
1
+ import { CashboxTypeEnum } from './enum/cashbox-type.enum';
2
2
  export declare class CreateCashboxDto {
3
3
  title: string;
4
4
  type: CashboxTypeEnum;
@@ -1,7 +1,7 @@
1
- import { ResponseObject } from "../shared/ro";
2
- import { CertificatesaleSourceEnum } from "./enum/certificatesale-source.enum";
3
- import { CertificatesaleDeliveryTypeEnum } from "./enum/certificatesales-delivery-type.enum";
4
- import { CertificatesaleStatusEnum } from "./enum/certificatessales-status.enum";
1
+ import { ResponseObject } from '../shared/ro';
2
+ import { CertificatesaleSourceEnum } from './enum/certificatesale-source.enum';
3
+ import { CertificatesaleDeliveryTypeEnum } from './enum/certificatesales-delivery-type.enum';
4
+ import { CertificatesaleStatusEnum } from './enum/certificatessales-status.enum';
5
5
  export declare type CertificateSaleResponseObject = ResponseObject & {
6
6
  status: CertificatesaleStatusEnum;
7
7
  expireDate: string;
@@ -1,4 +1,4 @@
1
- import { CertificatesaleDeliveryTypeEnum } from "./enum/certificatesales-delivery-type.enum";
1
+ import { CertificatesaleDeliveryTypeEnum } from './enum/certificatesales-delivery-type.enum';
2
2
  export declare class CreateCertificatesaleDto {
3
3
  certificateId: number;
4
4
  clientId: number;
@@ -1,4 +1,4 @@
1
- import { CountriesEnum } from './../shared/enum/countries.enum';
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
2
2
  export declare type CityResponseObject = {
3
3
  title: string;
4
4
  country: CountriesEnum;
@@ -1,4 +1,4 @@
1
- import { CountriesEnum } from "../shared/enum/countries.enum";
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
2
2
  export declare class CreateCityDto {
3
3
  title: string;
4
4
  country: CountriesEnum;
@@ -10,10 +10,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.CreateCityDto = void 0;
13
- const countries_enum_1 = require("../shared/enum/countries.enum");
14
- const is_not_blank_string_1 = require("../shared/is-not-blank-string");
15
13
  const class_transformer_1 = require("class-transformer");
16
14
  const class_validator_1 = require("class-validator");
15
+ const countries_enum_1 = require("../shared/enum/countries.enum");
16
+ const is_not_blank_string_1 = require("../shared/is-not-blank-string");
17
17
  class CreateCityDto {
18
18
  }
19
19
  __decorate([
@@ -1,4 +1,4 @@
1
- import { CountriesEnum } from "../shared/enum/countries.enum";
1
+ import { CountriesEnum } from '../shared/enum/countries.enum';
2
2
  export declare class UpdateCityDto {
3
3
  title: string;
4
4
  country: CountriesEnum;
@@ -10,9 +10,9 @@ var __metadata = (this && this.__metadata) || function (k, v) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UpdateCityDto = void 0;
13
- const countries_enum_1 = require("../shared/enum/countries.enum");
14
13
  const class_transformer_1 = require("class-transformer");
15
14
  const class_validator_1 = require("class-validator");
15
+ const countries_enum_1 = require("../shared/enum/countries.enum");
16
16
  class UpdateCityDto {
17
17
  }
18
18
  __decorate([
@@ -1,4 +1,4 @@
1
- import { ResponseObject } from "../shared/ro";
1
+ import { ResponseObject } from '../shared/ro';
2
2
  export declare type ClientResponseObject = ResponseObject & {
3
3
  name: string;
4
4
  surname: string;
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export * from "./cashbox/cashbox.ro";
2
- export * from "./cashbox/create-cashbox.dto";
3
- export * from "./cashbox/enum/cashbox-type.enum";
1
+ export * from './cashbox/cashbox.ro';
2
+ export * from './cashbox/create-cashbox.dto';
3
+ export * from './cashbox/enum/cashbox-type.enum';
@@ -1,6 +1,6 @@
1
- import { TagsEnum } from "./../shared/enum/tags.enum";
2
- import { Languages } from "../shared/enum/languages.enum";
3
- import { ResponseObject } from "../shared/ro";
1
+ import { Languages } from '../shared/enum/languages.enum';
2
+ import { TagsEnum } from '../shared/enum/tags.enum';
3
+ import { ResponseObject } from '../shared/ro';
4
4
  export declare type AgregatorQuestroomResponseObject = ResponseObject & {
5
5
  title: string;
6
6
  video?: string;
@@ -1,6 +1,6 @@
1
- import { TagsEnum } from "./../shared/enum/tags.enum";
2
- import { Languages } from "../shared/enum/languages.enum";
3
- import { QuestroomTypeEnum } from "./enum/questroom-type.enum";
1
+ import { Languages } from '../shared/enum/languages.enum';
2
+ import { TagsEnum } from '../shared/enum/tags.enum';
3
+ import { QuestroomTypeEnum } from './enum/questroom-type.enum';
4
4
  export declare class CreateQuestroomDto {
5
5
  title: string;
6
6
  locationId: number;
@@ -1,6 +1,6 @@
1
- import { TagsEnum } from "./../shared/enum/tags.enum";
2
- import { Languages } from "../shared/enum/languages.enum";
3
- import { ResponseObject } from "../shared/ro";
1
+ import { Languages } from '../shared/enum/languages.enum';
2
+ import { TagsEnum } from '../shared/enum/tags.enum';
3
+ import { ResponseObject } from '../shared/ro';
4
4
  export declare type QuestroomResponseObject = ResponseObject & {
5
5
  title: string;
6
6
  video?: string;
@@ -1,10 +1,12 @@
1
- export declare type ReviewResponseObject = {
2
- createdAt: string;
3
- playerName: string;
4
- playerPhoto: string;
1
+ export declare type ReviewRO = {
2
+ id: number;
3
+ createdAt: number;
4
+ questroomId: number;
5
+ profileId: number;
6
+ clientId: number;
7
+ fullName: string;
8
+ photo: string;
9
+ rating: number;
5
10
  text: string;
6
- questroomId: string;
7
- profileId: string;
8
- playerId: string;
9
- delta?: number;
11
+ response: string;
10
12
  };
@@ -1,5 +1,5 @@
1
1
  export declare enum CountriesEnum {
2
- GERMANY = 'de',
3
- AUSTRIA = 'at',
4
- RUSSIA = 'ru',
2
+ GERMANY = "de",
3
+ AUSTRIA = "at",
4
+ RUSSIA = "ru"
5
5
  }
@@ -1,4 +1,4 @@
1
- import { SlotTemplateElement } from "./slot-template-element";
1
+ import { SlotTemplateElement } from './slot-template-element';
2
2
  export declare class UpdateSlotTemplateDto {
3
3
  slots: SlotTemplateElement[];
4
4
  start: string;
@@ -1,4 +1,4 @@
1
- import { SlotTemplateElement } from "./slot-template-element";
1
+ import { SlotTemplateElement } from './slot-template-element';
2
2
  export declare class UpdateWeelendsDto {
3
3
  slots: SlotTemplateElement[];
4
4
  start: string;
@@ -1,4 +1,4 @@
1
- import { ResponseObject } from "../shared/ro";
1
+ import { ResponseObject } from '../shared/ro';
2
2
  export declare type TariffResponseObject = ResponseObject & {
3
3
  title: string;
4
4
  price: {