@escapenavigator/types 1.9.42 → 1.9.44

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.
@@ -6,6 +6,7 @@ import { ExpertReviewRO } from '../review/expert-review.ro';
6
6
  import { CountriesEnum } from '../shared/enum/countries.enum';
7
7
  import { Languages } from '../shared/enum/languages.enum';
8
8
  import { TagsEnum } from '../shared/enum/tags.enum';
9
+ import { AgregatorQuestroomCardRO } from './agregator-questroom-card.ro';
9
10
  export declare const getRightLocale: ({ value, key, techLocales, locales, language, }: {
10
11
  value: string;
11
12
  key: string;
@@ -43,6 +44,7 @@ export declare class AgregatorQuestroomRO {
43
44
  id: number;
44
45
  createdAt: Date;
45
46
  slug: string;
47
+ alternativeScenarios: AgregatorQuestroomCardRO[];
46
48
  teaser: string;
47
49
  closed: boolean;
48
50
  title: string;
@@ -21,6 +21,7 @@ const questroom_type_enum_1 = require("../questroom/enum/questroom-type.enum");
21
21
  const expert_review_ro_1 = require("../review/expert-review.ro");
22
22
  const countries_enum_1 = require("../shared/enum/countries.enum");
23
23
  const languages_enum_1 = require("../shared/enum/languages.enum");
24
+ const agregator_questroom_card_ro_1 = require("./agregator-questroom-card.ro");
24
25
  const getRightLocale = ({ value, key, techLocales, locales, language, }) => {
25
26
  const techLocale = techLocales.find((l) => l.language === language);
26
27
  const locale = locales.find((l) => l.language === language);
@@ -137,6 +138,11 @@ __decorate([
137
138
  (0, class_transformer_1.Expose)(),
138
139
  __metadata("design:type", String)
139
140
  ], AgregatorQuestroomRO.prototype, "slug", void 0);
141
+ __decorate([
142
+ (0, class_transformer_1.Expose)(),
143
+ (0, class_transformer_1.Type)(() => agregator_questroom_card_ro_1.AgregatorQuestroomCardRO),
144
+ __metadata("design:type", Array)
145
+ ], AgregatorQuestroomRO.prototype, "alternativeScenarios", void 0);
140
146
  __decorate([
141
147
  (0, class_transformer_1.Expose)(),
142
148
  (0, class_transformer_1.Transform)(({ obj, value }) => (0, exports.getRightLocale)({
@@ -5,7 +5,6 @@ declare class Location {
5
5
  city: City;
6
6
  }
7
7
  export declare class AgregatorSitemapQuestroomRO {
8
- lastModifiedForSeo: Date;
9
8
  slug: string;
10
9
  location: Location;
11
10
  }
@@ -27,10 +27,6 @@ __decorate([
27
27
  ], Location.prototype, "city", void 0);
28
28
  class AgregatorSitemapQuestroomRO {
29
29
  }
30
- __decorate([
31
- (0, class_transformer_1.Expose)(),
32
- __metadata("design:type", Date)
33
- ], AgregatorSitemapQuestroomRO.prototype, "lastModifiedForSeo", void 0);
34
30
  __decorate([
35
31
  (0, class_transformer_1.Expose)(),
36
32
  __metadata("design:type", String)
@@ -1,6 +1,8 @@
1
1
  export declare enum LogTitleEnum {
2
2
  /** orders */
3
3
  createOrder = "createOrder",
4
+ adjustBalance = "adjustBalance",
5
+ refundBalance = "refundBalance",
4
6
  confirmOrder = "confirmOrder",
5
7
  changeOrderDate = "changeOrderDate",
6
8
  cancelOrder = "cancelOrder",
@@ -5,6 +5,8 @@ var LogTitleEnum;
5
5
  (function (LogTitleEnum) {
6
6
  /** orders */
7
7
  LogTitleEnum["createOrder"] = "createOrder";
8
+ LogTitleEnum["adjustBalance"] = "adjustBalance";
9
+ LogTitleEnum["refundBalance"] = "refundBalance";
8
10
  LogTitleEnum["confirmOrder"] = "confirmOrder";
9
11
  LogTitleEnum["changeOrderDate"] = "changeOrderDate";
10
12
  LogTitleEnum["cancelOrder"] = "cancelOrder";
@@ -0,0 +1,6 @@
1
+ import { TelegramNotificationTypeEnum } from './telegram-notification-type.enum';
2
+ export declare class CreateTelegramChanelDto {
3
+ type: TelegramNotificationTypeEnum[];
4
+ allLocations: boolean;
5
+ locationIds: number[];
6
+ }
@@ -0,0 +1,35 @@
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.CreateTelegramChanelDto = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class CreateTelegramChanelDto {
16
+ }
17
+ __decorate([
18
+ (0, class_validator_1.IsArray)(),
19
+ (0, class_validator_1.ArrayMinSize)(1),
20
+ (0, class_transformer_1.Expose)(),
21
+ __metadata("design:type", Array)
22
+ ], CreateTelegramChanelDto.prototype, "type", void 0);
23
+ __decorate([
24
+ (0, class_validator_1.IsBoolean)(),
25
+ (0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", Boolean)
28
+ ], CreateTelegramChanelDto.prototype, "allLocations", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsArray)(),
31
+ (0, class_transformer_1.Transform)(({ value }) => (value && value.length ? value : [])),
32
+ (0, class_transformer_1.Expose)(),
33
+ __metadata("design:type", Array)
34
+ ], CreateTelegramChanelDto.prototype, "locationIds", void 0);
35
+ exports.CreateTelegramChanelDto = CreateTelegramChanelDto;
@@ -0,0 +1,10 @@
1
+ import { RO } from '../../shared/ro-class';
2
+ import { TelegramNotificationTypeEnum } from './telegram-notification-type.enum';
3
+ export declare class TelegramChanelRO extends RO {
4
+ title: string;
5
+ chatId: number;
6
+ type: TelegramNotificationTypeEnum[];
7
+ allLocations: boolean;
8
+ locationIds: number[];
9
+ profileId: number;
10
+ }
@@ -0,0 +1,41 @@
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.TelegramChanelRO = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const ro_class_1 = require("../../shared/ro-class");
15
+ class TelegramChanelRO extends ro_class_1.RO {
16
+ }
17
+ __decorate([
18
+ (0, class_transformer_1.Expose)(),
19
+ __metadata("design:type", String)
20
+ ], TelegramChanelRO.prototype, "title", void 0);
21
+ __decorate([
22
+ (0, class_transformer_1.Expose)(),
23
+ __metadata("design:type", Number)
24
+ ], TelegramChanelRO.prototype, "chatId", void 0);
25
+ __decorate([
26
+ (0, class_transformer_1.Expose)(),
27
+ __metadata("design:type", Array)
28
+ ], TelegramChanelRO.prototype, "type", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ __metadata("design:type", Boolean)
32
+ ], TelegramChanelRO.prototype, "allLocations", void 0);
33
+ __decorate([
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", Array)
36
+ ], TelegramChanelRO.prototype, "locationIds", void 0);
37
+ __decorate([
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", Number)
40
+ ], TelegramChanelRO.prototype, "profileId", void 0);
41
+ exports.TelegramChanelRO = TelegramChanelRO;
@@ -0,0 +1,4 @@
1
+ export declare enum TelegramNotificationTypeEnum {
2
+ NEW_ORDER = "new-order",
3
+ CANCEL_ORDER = "cancel-order"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TelegramNotificationTypeEnum = void 0;
4
+ var TelegramNotificationTypeEnum;
5
+ (function (TelegramNotificationTypeEnum) {
6
+ TelegramNotificationTypeEnum["NEW_ORDER"] = "new-order";
7
+ TelegramNotificationTypeEnum["CANCEL_ORDER"] = "cancel-order";
8
+ })(TelegramNotificationTypeEnum = exports.TelegramNotificationTypeEnum || (exports.TelegramNotificationTypeEnum = {}));
@@ -45,5 +45,6 @@ export declare class CreateQuestroomDto {
45
45
  locales: Locale[];
46
46
  modes: Mode[];
47
47
  photoFrame: string;
48
+ alternativeScenarioIds: number[];
48
49
  }
49
50
  export {};
@@ -252,4 +252,10 @@ __decorate([
252
252
  (0, class_transformer_1.Expose)(),
253
253
  __metadata("design:type", String)
254
254
  ], CreateQuestroomDto.prototype, "photoFrame", void 0);
255
+ __decorate([
256
+ (0, class_validator_1.IsArray)(),
257
+ (0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
258
+ (0, class_transformer_1.Expose)(),
259
+ __metadata("design:type", Array)
260
+ ], CreateQuestroomDto.prototype, "alternativeScenarioIds", void 0);
255
261
  exports.CreateQuestroomDto = CreateQuestroomDto;
@@ -25,6 +25,7 @@ export declare class QuestroomRO extends RO {
25
25
  type: QuestroomTypeEnum;
26
26
  difficult: number;
27
27
  locales: QuestroomLocale[];
28
+ alternativeScenarioIds: number[];
28
29
  modes: QuestroomMode[];
29
30
  fear: number;
30
31
  minAge: number;
@@ -90,6 +90,10 @@ __decorate([
90
90
  (0, class_transformer_1.Type)(() => QuestroomLocale),
91
91
  __metadata("design:type", Array)
92
92
  ], QuestroomRO.prototype, "locales", void 0);
93
+ __decorate([
94
+ (0, class_transformer_1.Expose)(),
95
+ __metadata("design:type", Array)
96
+ ], QuestroomRO.prototype, "alternativeScenarioIds", void 0);
93
97
  __decorate([
94
98
  (0, class_transformer_1.Expose)(),
95
99
  (0, class_transformer_1.Type)(() => QuestroomMode),