@escapenavigator/types 1.10.126 → 1.10.128

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,13 +1,17 @@
1
+ import { ProfileCurrencyEnum } from '../profile/enum/profile-currency';
1
2
  import { QuestroomTypeEnum } from '../questroom/enum/questroom-type.enum';
2
3
  import { Languages } from '../shared/enum/languages.enum';
3
4
  export declare class AgregatorQuestroomLocation {
4
5
  id: number;
5
6
  coordinates: [number, number];
7
+ subwayTitle?: string;
8
+ subwayColor?: string;
6
9
  }
7
10
  export declare class AgregatorQuestroomCardRO {
8
11
  id: number;
9
12
  createdAt: Date;
10
13
  title: string;
14
+ teaser: string;
11
15
  language: Languages;
12
16
  slug: string;
13
17
  top: boolean;
@@ -22,6 +26,7 @@ export declare class AgregatorQuestroomCardRO {
22
26
  playersMax: number;
23
27
  minPrice: number;
24
28
  maxPrice: number;
29
+ currency?: ProfileCurrencyEnum;
25
30
  difficult: number;
26
31
  fear: number;
27
32
  hasSchedule?: boolean;
@@ -12,7 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.AgregatorQuestroomCardRO = exports.AgregatorQuestroomLocation = void 0;
13
13
  /* eslint-disable max-classes-per-file */
14
14
  const class_transformer_1 = require("class-transformer");
15
+ const currency_by_country_1 = require("../constants/currency-by-country");
15
16
  const partner_program_enum_1 = require("../profile/enum/partner-program.enum");
17
+ const profile_currency_1 = require("../profile/enum/profile-currency");
16
18
  const profile_step_enum_1 = require("../profile/enum/profile-step.enum");
17
19
  const questroom_type_enum_1 = require("../questroom/enum/questroom-type.enum");
18
20
  const languages_enum_1 = require("../shared/enum/languages.enum");
@@ -33,6 +35,14 @@ __decorate([
33
35
  }),
34
36
  __metadata("design:type", Array)
35
37
  ], AgregatorQuestroomLocation.prototype, "coordinates", void 0);
38
+ __decorate([
39
+ (0, class_transformer_1.Expose)(),
40
+ __metadata("design:type", String)
41
+ ], AgregatorQuestroomLocation.prototype, "subwayTitle", void 0);
42
+ __decorate([
43
+ (0, class_transformer_1.Expose)(),
44
+ __metadata("design:type", String)
45
+ ], AgregatorQuestroomLocation.prototype, "subwayColor", void 0);
36
46
  class AgregatorQuestroomCardRO {
37
47
  }
38
48
  exports.AgregatorQuestroomCardRO = AgregatorQuestroomCardRO;
@@ -55,6 +65,17 @@ __decorate([
55
65
  })),
56
66
  __metadata("design:type", String)
57
67
  ], AgregatorQuestroomCardRO.prototype, "title", void 0);
68
+ __decorate([
69
+ (0, class_transformer_1.Expose)(),
70
+ (0, class_transformer_1.Transform)(({ obj, value }) => (0, agregator_questroom_ro_1.getRightLocale)({
71
+ value,
72
+ locales: obj.locales,
73
+ techLocales: obj.techlocales,
74
+ language: obj.language,
75
+ key: 'teaser',
76
+ })),
77
+ __metadata("design:type", String)
78
+ ], AgregatorQuestroomCardRO.prototype, "teaser", void 0);
58
79
  __decorate([
59
80
  (0, class_transformer_1.Expose)(),
60
81
  __metadata("design:type", String)
@@ -113,6 +134,11 @@ __decorate([
113
134
  (0, class_transformer_1.Expose)(),
114
135
  __metadata("design:type", Number)
115
136
  ], AgregatorQuestroomCardRO.prototype, "maxPrice", void 0);
137
+ __decorate([
138
+ (0, class_transformer_1.Expose)(),
139
+ (0, class_transformer_1.Transform)(({ obj }) => { var _a; return currency_by_country_1.currencyByCountry[(_a = obj.profile) === null || _a === void 0 ? void 0 : _a.country]; }),
140
+ __metadata("design:type", String)
141
+ ], AgregatorQuestroomCardRO.prototype, "currency", void 0);
116
142
  __decorate([
117
143
  (0, class_transformer_1.Expose)(),
118
144
  __metadata("design:type", Number)
@@ -319,7 +319,7 @@ __decorate([
319
319
  ], AgregatorQuestroomRO.prototype, "modes", void 0);
320
320
  __decorate([
321
321
  (0, class_transformer_1.Expose)(),
322
- (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]; }),
322
+ (0, class_transformer_1.Transform)(({ obj }) => { var _a; return currency_by_country_1.currencyByCountry[(_a = obj.profile) === null || _a === void 0 ? void 0 : _a.country]; }),
323
323
  __metadata("design:type", String)
324
324
  ], AgregatorQuestroomRO.prototype, "currency", void 0);
325
325
  __decorate([
@@ -2,6 +2,8 @@ import { RO } from '../shared/ro-class';
2
2
  import { BalanceItemTypeEnum } from './balance-item-type.enum';
3
3
  export declare class BalanceItemRO extends RO {
4
4
  orderId?: number;
5
+ groupId?: number;
6
+ certificatesaleId?: number;
5
7
  aggregatorOrderId?: number;
6
8
  amount: number;
7
9
  oldTotal: number;
@@ -20,6 +20,14 @@ __decorate([
20
20
  (0, class_transformer_1.Expose)(),
21
21
  __metadata("design:type", Number)
22
22
  ], BalanceItemRO.prototype, "orderId", void 0);
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ __metadata("design:type", Number)
26
+ ], BalanceItemRO.prototype, "groupId", void 0);
27
+ __decorate([
28
+ (0, class_transformer_1.Expose)(),
29
+ __metadata("design:type", Number)
30
+ ], BalanceItemRO.prototype, "certificatesaleId", void 0);
23
31
  __decorate([
24
32
  (0, class_transformer_1.Expose)(),
25
33
  __metadata("design:type", Number)
@@ -14,6 +14,7 @@ declare class OrderParticipant {
14
14
  }
15
15
  declare class Profile {
16
16
  title: string;
17
+ logo?: string;
17
18
  availableLanguages: Languages[];
18
19
  }
19
20
  export declare class OpenapiOrderForOrderServiceRO extends OpenapiOrderRO {
@@ -54,6 +54,10 @@ __decorate([
54
54
  (0, class_transformer_1.Expose)(),
55
55
  __metadata("design:type", String)
56
56
  ], Profile.prototype, "title", void 0);
57
+ __decorate([
58
+ (0, class_transformer_1.Expose)(),
59
+ __metadata("design:type", String)
60
+ ], Profile.prototype, "logo", void 0);
57
61
  __decorate([
58
62
  (0, class_transformer_1.Expose)(),
59
63
  __metadata("design:type", Array)
@@ -13,7 +13,7 @@ import { OpenapiUpsellingRO } from '../upsellings/openapi-upselling.ro';
13
13
  declare class Customization {
14
14
  showBookedSlots: boolean;
15
15
  showWrapper: boolean;
16
- showOtherQuests: boolean;
16
+ showPricesInSchedule: boolean;
17
17
  showCertificatesButton: boolean;
18
18
  mainColor: string;
19
19
  style: WidgetStyleEnum;
@@ -78,6 +78,7 @@ export declare class OpenapiWidgetInfoRO {
78
78
  mailchimp?: string | Mailchimp;
79
79
  daysAhead?: number;
80
80
  buttonTooltipText?: string;
81
+ showOtherQuests?: boolean;
81
82
  /**
82
83
  * Bearer-токен для protected widget endpoints. Эквивалентен значению
83
84
  * `widget-token` cookie (та же подпись и payload) и нужен для случаев,
@@ -37,7 +37,7 @@ __decorate([
37
37
  __decorate([
38
38
  (0, class_transformer_1.Expose)(),
39
39
  __metadata("design:type", Boolean)
40
- ], Customization.prototype, "showOtherQuests", void 0);
40
+ ], Customization.prototype, "showPricesInSchedule", void 0);
41
41
  __decorate([
42
42
  (0, class_transformer_1.Expose)(),
43
43
  __metadata("design:type", Boolean)
@@ -245,6 +245,10 @@ __decorate([
245
245
  (0, class_transformer_1.Expose)(),
246
246
  __metadata("design:type", String)
247
247
  ], OpenapiWidgetInfoRO.prototype, "buttonTooltipText", void 0);
248
+ __decorate([
249
+ (0, class_transformer_1.Expose)(),
250
+ __metadata("design:type", Boolean)
251
+ ], OpenapiWidgetInfoRO.prototype, "showOtherQuests", void 0);
248
252
  __decorate([
249
253
  (0, class_transformer_1.Expose)(),
250
254
  __metadata("design:type", String)
@@ -24,6 +24,8 @@ declare class OrderParticipant {
24
24
  export declare class OrderForSignRO extends QuestroomRow {
25
25
  code: string;
26
26
  profileId: number;
27
+ profileTitle?: string;
28
+ profileLogo?: string;
27
29
  language?: Languages;
28
30
  isRu: boolean;
29
31
  canceledWithFine: boolean;
@@ -87,6 +87,14 @@ __decorate([
87
87
  (0, class_transformer_1.Expose)(),
88
88
  __metadata("design:type", Number)
89
89
  ], OrderForSignRO.prototype, "profileId", void 0);
90
+ __decorate([
91
+ (0, class_transformer_1.Expose)(),
92
+ __metadata("design:type", String)
93
+ ], OrderForSignRO.prototype, "profileTitle", void 0);
94
+ __decorate([
95
+ (0, class_transformer_1.Expose)(),
96
+ __metadata("design:type", String)
97
+ ], OrderForSignRO.prototype, "profileLogo", void 0);
90
98
  __decorate([
91
99
  (0, class_transformer_1.Expose)(),
92
100
  __metadata("design:type", String)
@@ -6,7 +6,7 @@ export declare class UpdateWidgetCustomizationDto {
6
6
  showWrapper: boolean;
7
7
  style: WidgetStyleEnum;
8
8
  view: WidgetViewEnum;
9
- showOtherQuests: boolean;
9
+ showPricesInSchedule: boolean;
10
10
  showCertificatesButton: boolean;
11
11
  mainColor: string;
12
12
  roundness: WidgetRoundnessEnum;
@@ -42,7 +42,7 @@ __decorate([
42
42
  (0, class_validator_1.IsBoolean)(),
43
43
  (0, class_transformer_1.Expose)(),
44
44
  __metadata("design:type", Boolean)
45
- ], UpdateWidgetCustomizationDto.prototype, "showOtherQuests", void 0);
45
+ ], UpdateWidgetCustomizationDto.prototype, "showPricesInSchedule", void 0);
46
46
  __decorate([
47
47
  (0, class_validator_1.IsBoolean)(),
48
48
  (0, class_transformer_1.Expose)(),
@@ -4,7 +4,7 @@ import { WidgetViewEnum } from './enum/widget-view.enum';
4
4
  export declare class WidgetCustomizationRO {
5
5
  showBookedSlots: boolean;
6
6
  showWrapper: boolean;
7
- showOtherQuests: boolean;
7
+ showPricesInSchedule: boolean;
8
8
  showCertificatesButton: boolean;
9
9
  mainColor: string;
10
10
  style: WidgetStyleEnum;
@@ -28,7 +28,7 @@ __decorate([
28
28
  __decorate([
29
29
  (0, class_transformer_1.Expose)(),
30
30
  __metadata("design:type", Boolean)
31
- ], WidgetCustomizationRO.prototype, "showOtherQuests", void 0);
31
+ ], WidgetCustomizationRO.prototype, "showPricesInSchedule", void 0);
32
32
  __decorate([
33
33
  (0, class_transformer_1.Expose)(),
34
34
  __metadata("design:type", Boolean)