@escapenavigator/types 1.10.23 → 1.10.26

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.
@@ -7,6 +7,7 @@ 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
9
  import { AgregatorQuestroomCardRO } from './agregator-questroom-card.ro';
10
+ import { QuestroomAI } from '../questroom/questroom-meta.ro';
10
11
  export declare const getRightLocale: ({ value, key, techLocales, locales, language, }: {
11
12
  value: string;
12
13
  key: string;
@@ -49,6 +50,7 @@ export declare class AgregatorQuestroomRO {
49
50
  createdAt: Date;
50
51
  slug: string;
51
52
  alternativeScenarios: AgregatorQuestroomCardRO[];
53
+ ai: QuestroomAI;
52
54
  teaser: string;
53
55
  closed: boolean;
54
56
  title: string;
@@ -23,6 +23,7 @@ const expert_review_ro_1 = require("../review/expert-review.ro");
23
23
  const countries_enum_1 = require("../shared/enum/countries.enum");
24
24
  const languages_enum_1 = require("../shared/enum/languages.enum");
25
25
  const agregator_questroom_card_ro_1 = require("./agregator-questroom-card.ro");
26
+ const questroom_meta_ro_1 = require("../questroom/questroom-meta.ro");
26
27
  const getRightLocale = ({ value, key, techLocales, locales, language, }) => {
27
28
  const techLocale = techLocales.find((l) => l.language === language);
28
29
  const locale = locales.find((l) => l.language === language);
@@ -154,6 +155,11 @@ __decorate([
154
155
  (0, class_transformer_1.Type)(() => agregator_questroom_card_ro_1.AgregatorQuestroomCardRO),
155
156
  __metadata("design:type", Array)
156
157
  ], AgregatorQuestroomRO.prototype, "alternativeScenarios", void 0);
158
+ __decorate([
159
+ (0, class_transformer_1.Expose)(),
160
+ (0, class_transformer_1.Type)(() => questroom_meta_ro_1.QuestroomAI),
161
+ __metadata("design:type", questroom_meta_ro_1.QuestroomAI)
162
+ ], AgregatorQuestroomRO.prototype, "ai", void 0);
157
163
  __decorate([
158
164
  (0, class_transformer_1.Expose)(),
159
165
  (0, class_transformer_1.Transform)(({ obj, value }) => (0, exports.getRightLocale)({
@@ -5,6 +5,7 @@ import { PartnerProgramEnum } from './enum/partner-program.enum';
5
5
  import { ProfileSalesStatus } from './enum/profile-sales-status.enum';
6
6
  import { ProfileStatusEnum } from './enum/profile-step.enum';
7
7
  import { ProfileTagEnum } from './enum/profile-tag.enum';
8
+ import { ProfileSubscriptionEnum } from './enum/profile-subscription.enum';
8
9
  export declare class CreateProfileDto {
9
10
  country: CountriesEnum;
10
11
  salesStatus: ProfileSalesStatus;
@@ -29,4 +30,7 @@ export declare class CreateProfileDto {
29
30
  registrationRequestId: number;
30
31
  crm?: string;
31
32
  comment?: string;
33
+ subscriptionStatus: ProfileSubscriptionEnum;
34
+ bookingCommission: number;
35
+ upsalesCommission: number;
32
36
  }
@@ -19,6 +19,7 @@ const crm_verifiaction_enum_1 = require("./enum/crm-verifiaction.enum");
19
19
  const partner_program_enum_1 = require("./enum/partner-program.enum");
20
20
  const profile_sales_status_enum_1 = require("./enum/profile-sales-status.enum");
21
21
  const profile_step_enum_1 = require("./enum/profile-step.enum");
22
+ const profile_subscription_enum_1 = require("./enum/profile-subscription.enum");
22
23
  class CreateProfileDto {
23
24
  }
24
25
  __decorate([
@@ -145,4 +146,21 @@ __decorate([
145
146
  (0, class_transformer_1.Expose)(),
146
147
  __metadata("design:type", String)
147
148
  ], CreateProfileDto.prototype, "comment", void 0);
149
+ __decorate([
150
+ (0, class_validator_1.IsOptional)(),
151
+ (0, class_transformer_1.Expose)(),
152
+ __metadata("design:type", String)
153
+ ], CreateProfileDto.prototype, "subscriptionStatus", void 0);
154
+ __decorate([
155
+ (0, class_validator_1.IsOptional)(),
156
+ (0, class_validator_1.IsPositive)(),
157
+ (0, class_transformer_1.Expose)(),
158
+ __metadata("design:type", Number)
159
+ ], CreateProfileDto.prototype, "bookingCommission", void 0);
160
+ __decorate([
161
+ (0, class_validator_1.IsOptional)(),
162
+ (0, class_validator_1.IsPositive)(),
163
+ (0, class_transformer_1.Expose)(),
164
+ __metadata("design:type", Number)
165
+ ], CreateProfileDto.prototype, "upsalesCommission", void 0);
148
166
  exports.CreateProfileDto = CreateProfileDto;
@@ -10,21 +10,20 @@ export declare class Meta {
10
10
  morty: string;
11
11
  nowEscape: string;
12
12
  }
13
- declare class AI {
14
- aiReview: string;
15
- aiRating: number;
13
+ export declare class QuestroomAI {
16
14
  aiSummary: string;
17
15
  keyFindings: string;
18
16
  negatives: string;
17
+ positives: string;
19
18
  safety: string;
20
19
  fear: string;
21
20
  actors: string;
22
- setting: string;
21
+ puzzles: string;
23
22
  plot: string;
24
- venue: string;
23
+ difficulty: string;
25
24
  }
26
25
  export declare class QuestroomMetaRO {
27
26
  meta: Meta;
28
- ai: AI;
27
+ ai: QuestroomAI;
29
28
  }
30
29
  export {};
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.QuestroomMetaRO = exports.Meta = void 0;
12
+ exports.QuestroomMetaRO = exports.QuestroomAI = exports.Meta = void 0;
13
13
  /* eslint-disable max-classes-per-file */
14
14
  const class_transformer_1 = require("class-transformer");
15
15
  class Review {
@@ -50,52 +50,49 @@ __decorate([
50
50
  __metadata("design:type", String)
51
51
  ], Meta.prototype, "nowEscape", void 0);
52
52
  exports.Meta = Meta;
53
- class AI {
53
+ class QuestroomAI {
54
54
  }
55
55
  __decorate([
56
56
  (0, class_transformer_1.Expose)(),
57
57
  __metadata("design:type", String)
58
- ], AI.prototype, "aiReview", void 0);
59
- __decorate([
60
- (0, class_transformer_1.Expose)(),
61
- __metadata("design:type", Number)
62
- ], AI.prototype, "aiRating", void 0);
58
+ ], QuestroomAI.prototype, "aiSummary", void 0);
63
59
  __decorate([
64
60
  (0, class_transformer_1.Expose)(),
65
61
  __metadata("design:type", String)
66
- ], AI.prototype, "aiSummary", void 0);
62
+ ], QuestroomAI.prototype, "keyFindings", void 0);
67
63
  __decorate([
68
64
  (0, class_transformer_1.Expose)(),
69
65
  __metadata("design:type", String)
70
- ], AI.prototype, "keyFindings", void 0);
66
+ ], QuestroomAI.prototype, "negatives", void 0);
71
67
  __decorate([
72
68
  (0, class_transformer_1.Expose)(),
73
69
  __metadata("design:type", String)
74
- ], AI.prototype, "negatives", void 0);
70
+ ], QuestroomAI.prototype, "positives", void 0);
75
71
  __decorate([
76
72
  (0, class_transformer_1.Expose)(),
77
73
  __metadata("design:type", String)
78
- ], AI.prototype, "safety", void 0);
74
+ ], QuestroomAI.prototype, "safety", void 0);
79
75
  __decorate([
80
76
  (0, class_transformer_1.Expose)(),
81
77
  __metadata("design:type", String)
82
- ], AI.prototype, "fear", void 0);
78
+ ], QuestroomAI.prototype, "fear", void 0);
83
79
  __decorate([
84
80
  (0, class_transformer_1.Expose)(),
85
81
  __metadata("design:type", String)
86
- ], AI.prototype, "actors", void 0);
82
+ ], QuestroomAI.prototype, "actors", void 0);
87
83
  __decorate([
88
84
  (0, class_transformer_1.Expose)(),
89
85
  __metadata("design:type", String)
90
- ], AI.prototype, "setting", void 0);
86
+ ], QuestroomAI.prototype, "puzzles", void 0);
91
87
  __decorate([
92
88
  (0, class_transformer_1.Expose)(),
93
89
  __metadata("design:type", String)
94
- ], AI.prototype, "plot", void 0);
90
+ ], QuestroomAI.prototype, "plot", void 0);
95
91
  __decorate([
96
92
  (0, class_transformer_1.Expose)(),
97
93
  __metadata("design:type", String)
98
- ], AI.prototype, "venue", void 0);
94
+ ], QuestroomAI.prototype, "difficulty", void 0);
95
+ exports.QuestroomAI = QuestroomAI;
99
96
  class QuestroomMetaRO {
100
97
  }
101
98
  __decorate([
@@ -105,7 +102,7 @@ __decorate([
105
102
  ], QuestroomMetaRO.prototype, "meta", void 0);
106
103
  __decorate([
107
104
  (0, class_transformer_1.Expose)(),
108
- (0, class_transformer_1.Type)(() => AI),
109
- __metadata("design:type", AI)
105
+ (0, class_transformer_1.Type)(() => QuestroomAI),
106
+ __metadata("design:type", QuestroomAI)
110
107
  ], QuestroomMetaRO.prototype, "ai", void 0);
111
108
  exports.QuestroomMetaRO = QuestroomMetaRO;
@@ -0,0 +1,19 @@
1
+ import { RO } from '../shared/ro-class';
2
+ declare class Questroom {
3
+ id: number;
4
+ photo: string;
5
+ title: string;
6
+ }
7
+ export declare class AggregatorSocialReviewRO extends RO {
8
+ text: string;
9
+ language?: string;
10
+ original: boolean;
11
+ response: string;
12
+ nickname: string;
13
+ accepted: boolean;
14
+ questroom: Questroom;
15
+ rating: number;
16
+ profileId: number;
17
+ cityId: number;
18
+ }
19
+ export {};
@@ -0,0 +1,73 @@
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.AggregatorSocialReviewRO = void 0;
13
+ /* eslint-disable max-classes-per-file */
14
+ const class_transformer_1 = require("class-transformer");
15
+ const ro_class_1 = require("../shared/ro-class");
16
+ class Questroom {
17
+ }
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)(),
20
+ __metadata("design:type", Number)
21
+ ], Questroom.prototype, "id", void 0);
22
+ __decorate([
23
+ (0, class_transformer_1.Expose)(),
24
+ __metadata("design:type", String)
25
+ ], Questroom.prototype, "photo", void 0);
26
+ __decorate([
27
+ (0, class_transformer_1.Expose)(),
28
+ __metadata("design:type", String)
29
+ ], Questroom.prototype, "title", void 0);
30
+ class AggregatorSocialReviewRO extends ro_class_1.RO {
31
+ }
32
+ __decorate([
33
+ (0, class_transformer_1.Expose)(),
34
+ __metadata("design:type", String)
35
+ ], AggregatorSocialReviewRO.prototype, "text", void 0);
36
+ __decorate([
37
+ (0, class_transformer_1.Expose)(),
38
+ __metadata("design:type", String)
39
+ ], AggregatorSocialReviewRO.prototype, "language", void 0);
40
+ __decorate([
41
+ (0, class_transformer_1.Expose)(),
42
+ __metadata("design:type", Boolean)
43
+ ], AggregatorSocialReviewRO.prototype, "original", void 0);
44
+ __decorate([
45
+ (0, class_transformer_1.Expose)(),
46
+ __metadata("design:type", String)
47
+ ], AggregatorSocialReviewRO.prototype, "response", void 0);
48
+ __decorate([
49
+ (0, class_transformer_1.Expose)(),
50
+ __metadata("design:type", String)
51
+ ], AggregatorSocialReviewRO.prototype, "nickname", void 0);
52
+ __decorate([
53
+ (0, class_transformer_1.Expose)(),
54
+ __metadata("design:type", Boolean)
55
+ ], AggregatorSocialReviewRO.prototype, "accepted", void 0);
56
+ __decorate([
57
+ (0, class_transformer_1.Expose)(),
58
+ (0, class_transformer_1.Type)(() => Questroom),
59
+ __metadata("design:type", Questroom)
60
+ ], AggregatorSocialReviewRO.prototype, "questroom", void 0);
61
+ __decorate([
62
+ (0, class_transformer_1.Expose)(),
63
+ __metadata("design:type", Number)
64
+ ], AggregatorSocialReviewRO.prototype, "rating", void 0);
65
+ __decorate([
66
+ (0, class_transformer_1.Expose)(),
67
+ __metadata("design:type", Number)
68
+ ], AggregatorSocialReviewRO.prototype, "profileId", void 0);
69
+ __decorate([
70
+ (0, class_transformer_1.Expose)(),
71
+ __metadata("design:type", Number)
72
+ ], AggregatorSocialReviewRO.prototype, "cityId", void 0);
73
+ exports.AggregatorSocialReviewRO = AggregatorSocialReviewRO;
@@ -5,6 +5,10 @@ declare class Questroom {
5
5
  photo: string;
6
6
  title: string;
7
7
  }
8
+ declare class Locale {
9
+ text: string;
10
+ language: string;
11
+ }
8
12
  export declare class SocialReviewRO extends RO {
9
13
  text: string;
10
14
  response: string;
@@ -13,6 +17,7 @@ export declare class SocialReviewRO extends RO {
13
17
  questroom: Questroom;
14
18
  player: PlayerCardRO;
15
19
  rating: number;
20
+ locales: Locale[];
16
21
  profileId: number;
17
22
  cityId: number;
18
23
  }
@@ -28,6 +28,16 @@ __decorate([
28
28
  (0, class_transformer_1.Expose)(),
29
29
  __metadata("design:type", String)
30
30
  ], Questroom.prototype, "title", void 0);
31
+ class Locale {
32
+ }
33
+ __decorate([
34
+ (0, class_transformer_1.Expose)(),
35
+ __metadata("design:type", String)
36
+ ], Locale.prototype, "text", void 0);
37
+ __decorate([
38
+ (0, class_transformer_1.Expose)(),
39
+ __metadata("design:type", String)
40
+ ], Locale.prototype, "language", void 0);
31
41
  class SocialReviewRO extends ro_class_1.RO {
32
42
  }
33
43
  __decorate([
@@ -60,6 +70,11 @@ __decorate([
60
70
  (0, class_transformer_1.Expose)(),
61
71
  __metadata("design:type", Number)
62
72
  ], SocialReviewRO.prototype, "rating", void 0);
73
+ __decorate([
74
+ (0, class_transformer_1.Expose)(),
75
+ (0, class_transformer_1.Type)(() => Locale),
76
+ __metadata("design:type", Array)
77
+ ], SocialReviewRO.prototype, "locales", void 0);
63
78
  __decorate([
64
79
  (0, class_transformer_1.Expose)(),
65
80
  __metadata("design:type", Number)
@@ -34,6 +34,7 @@ export declare class TransactionRO extends RO {
34
34
  type: TransactionTypeEnum;
35
35
  userId: number;
36
36
  cashbox: Cashbox;
37
+ toCashbox: Cashbox;
37
38
  deleted: boolean;
38
39
  financeitem: FinanceItem;
39
40
  employee: User;
@@ -104,6 +104,11 @@ __decorate([
104
104
  (0, class_transformer_1.Type)(() => Cashbox),
105
105
  __metadata("design:type", Cashbox)
106
106
  ], TransactionRO.prototype, "cashbox", void 0);
107
+ __decorate([
108
+ (0, class_transformer_1.Expose)(),
109
+ (0, class_transformer_1.Type)(() => Cashbox),
110
+ __metadata("design:type", Cashbox)
111
+ ], TransactionRO.prototype, "toCashbox", void 0);
107
112
  __decorate([
108
113
  (0, class_transformer_1.Expose)(),
109
114
  __metadata("design:type", Boolean)