@escapenavigator/types 1.10.127 → 1.10.129
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.
- package/dist/agregator/agregator-city.ro.d.ts +25 -0
- package/dist/agregator/agregator-city.ro.js +8 -0
- package/dist/agregator/agregator-questroom-card.ro.d.ts +18 -0
- package/dist/agregator/agregator-questroom-card.ro.js +28 -0
- package/dist/agregator/agregator-questroom.ro.js +1 -1
- package/dist/city/city.ro.d.ts +3 -0
- package/dist/city/update-city.dto.d.ts +13 -0
- package/dist/city/update-city.dto.js +19 -0
- package/dist/openapi/shared/openapi-questroom.ro.d.ts +2 -0
- package/dist/openapi/shared/openapi-questroom.ro.js +4 -0
- package/dist/profile/action/create-profile-action.dto.d.ts +4 -3
- package/dist/profile/action/create-profile-action.dto.js +16 -8
- package/dist/profile/create-profile.dto.d.ts +0 -9
- package/dist/profile/create-profile.dto.js +0 -63
- package/dist/profile/profile-crm/create-profile-crm.dto.d.ts +3 -0
- package/dist/profile/profile-crm/create-profile-crm.dto.js +22 -0
- package/dist/profile/update-profile-commission.dto.d.ts +11 -0
- package/dist/profile/update-profile-commission.dto.js +71 -0
- package/dist/questroom/create-questroom.dto.d.ts +1 -0
- package/dist/questroom/create-questroom.dto.js +6 -0
- package/dist/questroom/questroom-admin.ro.d.ts +17 -0
- package/dist/questroom/questroom-admin.ro.js +61 -0
- package/dist/questroom/questroom-light.ro.d.ts +1 -0
- package/dist/questroom/questroom-light.ro.js +4 -0
- package/dist/slot/slot.ro.d.ts +1 -0
- package/dist/slot-rule/create-rule.dto.d.ts +2 -0
- package/dist/slot-rule/create-rule.dto.js +30 -0
- package/dist/slot-rule/defailt-rule.d.ts +2 -0
- package/dist/slot-rule/defailt-rule.js +2 -0
- package/dist/slot-rule/rule.ro.d.ts +2 -0
- package/dist/slot-rule/rule.ro.js +8 -0
- package/dist/subway-station/subway-station.ro.d.ts +43 -0
- package/dist/subway-station/subway-station.ro.js +2 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/task/user-task.dto.d.ts +2 -2
- package/dist/user/task/user-task.ro.d.ts +1 -0
- package/dist/user/task/user-task.ro.js +4 -0
- package/package.json +2 -2
|
@@ -10,6 +10,31 @@ export declare class AgregatorCityRO {
|
|
|
10
10
|
country: CountriesEnum;
|
|
11
11
|
coordinates: [number, number];
|
|
12
12
|
questroomsCount: number;
|
|
13
|
+
/**
|
|
14
|
+
* Сколько квестов реально показывается на странице города. Для
|
|
15
|
+
* городов-центров (`isAgglomeration = true`) это сумма собственных
|
|
16
|
+
* + всех городов-спутников (`parentCityId = this.id`); для всех
|
|
17
|
+
* остальных совпадает с `questroomsCount`. Считается на лету в
|
|
18
|
+
* `AgregatorCityController.findCityBySlug` / `findPopularCitiesByCountry`
|
|
19
|
+
* через `cityService.getEffectiveQuestroomsCountMap`, чтобы цифра
|
|
20
|
+
* совпала с тем, что отдаёт `cityOtherQuestrooms` (там фильтр
|
|
21
|
+
* `cityId IN (getAgglomerationCityIds(rootId))` по той же иерархии).
|
|
22
|
+
*
|
|
23
|
+
* Поле опциональное: только основные ручки (страница города и
|
|
24
|
+
* popular-cities) считают его сейчас. «Тяжёлые» листинги
|
|
25
|
+
* (`findCitiesByCountry`, `cityOtherQuestrooms.city`) пока отдают
|
|
26
|
+
* `undefined` — фронт должен делать `effectiveQuestroomsCount ??
|
|
27
|
+
* questroomsCount` как fallback.
|
|
28
|
+
*/
|
|
29
|
+
effectiveQuestroomsCount?: number;
|
|
30
|
+
/**
|
|
31
|
+
* Город — центр агломерации. Используется фронтом для решения,
|
|
32
|
+
* показывать ли блок «другие города агломерации» / подпись «и
|
|
33
|
+
* пригороды», а также для тонкой настройки SEO-страниц. Поле
|
|
34
|
+
* опциональное по тем же причинам, что и `effectiveQuestroomsCount`
|
|
35
|
+
* — приходит только из ручек, которые явно проставляют.
|
|
36
|
+
*/
|
|
37
|
+
isAgglomeration?: boolean;
|
|
13
38
|
reviewsCount: number;
|
|
14
39
|
rate: number;
|
|
15
40
|
slug: string;
|
|
@@ -73,6 +73,14 @@ __decorate([
|
|
|
73
73
|
(0, class_transformer_1.Expose)(),
|
|
74
74
|
__metadata("design:type", Number)
|
|
75
75
|
], AgregatorCityRO.prototype, "questroomsCount", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, class_transformer_1.Expose)(),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], AgregatorCityRO.prototype, "effectiveQuestroomsCount", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, class_transformer_1.Expose)(),
|
|
82
|
+
__metadata("design:type", Boolean)
|
|
83
|
+
], AgregatorCityRO.prototype, "isAgglomeration", void 0);
|
|
76
84
|
__decorate([
|
|
77
85
|
(0, class_transformer_1.Expose)(),
|
|
78
86
|
__metadata("design:type", Number)
|
|
@@ -1,13 +1,30 @@
|
|
|
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';
|
|
4
|
+
import { SubwayLineRO } from '../subway-station/subway-station.ro';
|
|
3
5
|
export declare class AgregatorQuestroomLocation {
|
|
4
6
|
id: number;
|
|
5
7
|
coordinates: [number, number];
|
|
8
|
+
/**
|
|
9
|
+
* Название ближайшей станции метро (из `location.subwayStation`).
|
|
10
|
+
* Endpoint, отдающий `AgregatorQuestroomCardRO`, должен включать
|
|
11
|
+
* `'location.subwayStation'` в `relations`, иначе придёт `undefined`.
|
|
12
|
+
*/
|
|
13
|
+
subwayTitle?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Все ветки метро на этой станции (для пересадочных — несколько).
|
|
16
|
+
* Каждый элемент — `{ color: '#RRGGBB' | null, ref: 'U3' | null }`.
|
|
17
|
+
* Массив отсортирован в `overpass-import.ts.sortLines`: сначала
|
|
18
|
+
* цветные, дальше по `ref` алфавитно. На фронте рендерить как
|
|
19
|
+
* `lines.map(l => <Circle color={l.color}/>)` + `l.ref`.
|
|
20
|
+
*/
|
|
21
|
+
subwayLines?: SubwayLineRO[];
|
|
6
22
|
}
|
|
7
23
|
export declare class AgregatorQuestroomCardRO {
|
|
8
24
|
id: number;
|
|
9
25
|
createdAt: Date;
|
|
10
26
|
title: string;
|
|
27
|
+
teaser: string;
|
|
11
28
|
language: Languages;
|
|
12
29
|
slug: string;
|
|
13
30
|
top: boolean;
|
|
@@ -22,6 +39,7 @@ export declare class AgregatorQuestroomCardRO {
|
|
|
22
39
|
playersMax: number;
|
|
23
40
|
minPrice: number;
|
|
24
41
|
maxPrice: number;
|
|
42
|
+
currency?: ProfileCurrencyEnum;
|
|
25
43
|
difficult: number;
|
|
26
44
|
fear: number;
|
|
27
45
|
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,16 @@ __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
|
+
(0, class_transformer_1.Transform)(({ obj }) => { var _a, _b; return (_b = (_a = obj === null || obj === void 0 ? void 0 : obj.subwayStation) === null || _a === void 0 ? void 0 : _a.title) !== null && _b !== void 0 ? _b : undefined; }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], AgregatorQuestroomLocation.prototype, "subwayTitle", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_transformer_1.Expose)(),
|
|
45
|
+
(0, class_transformer_1.Transform)(({ obj }) => { var _a, _b; return (_b = (_a = obj === null || obj === void 0 ? void 0 : obj.subwayStation) === null || _a === void 0 ? void 0 : _a.lines) !== null && _b !== void 0 ? _b : undefined; }),
|
|
46
|
+
__metadata("design:type", Array)
|
|
47
|
+
], AgregatorQuestroomLocation.prototype, "subwayLines", void 0);
|
|
36
48
|
class AgregatorQuestroomCardRO {
|
|
37
49
|
}
|
|
38
50
|
exports.AgregatorQuestroomCardRO = AgregatorQuestroomCardRO;
|
|
@@ -55,6 +67,17 @@ __decorate([
|
|
|
55
67
|
})),
|
|
56
68
|
__metadata("design:type", String)
|
|
57
69
|
], AgregatorQuestroomCardRO.prototype, "title", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_transformer_1.Expose)(),
|
|
72
|
+
(0, class_transformer_1.Transform)(({ obj, value }) => (0, agregator_questroom_ro_1.getRightLocale)({
|
|
73
|
+
value,
|
|
74
|
+
locales: obj.locales,
|
|
75
|
+
techLocales: obj.techlocales,
|
|
76
|
+
language: obj.language,
|
|
77
|
+
key: 'teaser',
|
|
78
|
+
})),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], AgregatorQuestroomCardRO.prototype, "teaser", void 0);
|
|
58
81
|
__decorate([
|
|
59
82
|
(0, class_transformer_1.Expose)(),
|
|
60
83
|
__metadata("design:type", String)
|
|
@@ -113,6 +136,11 @@ __decorate([
|
|
|
113
136
|
(0, class_transformer_1.Expose)(),
|
|
114
137
|
__metadata("design:type", Number)
|
|
115
138
|
], AgregatorQuestroomCardRO.prototype, "maxPrice", void 0);
|
|
139
|
+
__decorate([
|
|
140
|
+
(0, class_transformer_1.Expose)(),
|
|
141
|
+
(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]; }),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], AgregatorQuestroomCardRO.prototype, "currency", void 0);
|
|
116
144
|
__decorate([
|
|
117
145
|
(0, class_transformer_1.Expose)(),
|
|
118
146
|
__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.
|
|
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([
|
package/dist/city/city.ro.d.ts
CHANGED
|
@@ -5,4 +5,17 @@ export declare class UpdateCityDto {
|
|
|
5
5
|
country: CountriesEnum;
|
|
6
6
|
photo: string;
|
|
7
7
|
locales?: UpdateCityLocaleDto[];
|
|
8
|
+
/**
|
|
9
|
+
* Центр агломерации. Семантические инварианты (плоская иерархия,
|
|
10
|
+
* валидный parent, та же страна) проверяются на бэке в
|
|
11
|
+
* `validateAgglomerationChange`, отсюда — только базовая type-validation.
|
|
12
|
+
*/
|
|
13
|
+
isAgglomeration?: boolean;
|
|
14
|
+
/** В городе есть метро. Управляет fetch-ом Places API для локаций. */
|
|
15
|
+
hasSubway?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Город-родитель в агломерации. `null` снимает привязку.
|
|
18
|
+
* Положительное число — id центра в той же стране (валидируется на бэке).
|
|
19
|
+
*/
|
|
20
|
+
parentCityId?: number | null;
|
|
8
21
|
}
|
|
@@ -41,3 +41,22 @@ __decorate([
|
|
|
41
41
|
(0, class_transformer_1.Expose)(),
|
|
42
42
|
__metadata("design:type", Array)
|
|
43
43
|
], UpdateCityDto.prototype, "locales", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsBoolean)(),
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], UpdateCityDto.prototype, "isAgglomeration", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsOptional)(),
|
|
52
|
+
(0, class_validator_1.IsBoolean)(),
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], UpdateCityDto.prototype, "hasSubway", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsInt)(),
|
|
59
|
+
(0, class_validator_1.Min)(1),
|
|
60
|
+
(0, class_transformer_1.Expose)(),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], UpdateCityDto.prototype, "parentCityId", void 0);
|
|
@@ -43,6 +43,7 @@ export declare const transformQuestroom: ({ value, language, }: {
|
|
|
43
43
|
minAge: number;
|
|
44
44
|
flexPlayersSelect: boolean;
|
|
45
45
|
slotStepMinutes: number;
|
|
46
|
+
questOpeningDate?: string;
|
|
46
47
|
};
|
|
47
48
|
declare class QuestroomLocale {
|
|
48
49
|
title: string;
|
|
@@ -100,6 +101,7 @@ export declare class OpenapiQuestroomRO {
|
|
|
100
101
|
locales: QuestroomLocale[];
|
|
101
102
|
flexPlayersSelect: boolean;
|
|
102
103
|
slotStepMinutes: number;
|
|
104
|
+
questOpeningDate?: string;
|
|
103
105
|
}
|
|
104
106
|
export declare class QuestroomRow {
|
|
105
107
|
questroom: OpenapiQuestroomRO;
|
|
@@ -218,6 +218,10 @@ __decorate([
|
|
|
218
218
|
(0, class_transformer_1.Expose)(),
|
|
219
219
|
__metadata("design:type", Number)
|
|
220
220
|
], OpenapiQuestroomRO.prototype, "slotStepMinutes", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, class_transformer_1.Expose)(),
|
|
223
|
+
__metadata("design:type", String)
|
|
224
|
+
], OpenapiQuestroomRO.prototype, "questOpeningDate", void 0);
|
|
221
225
|
class QuestroomRow {
|
|
222
226
|
}
|
|
223
227
|
exports.QuestroomRow = QuestroomRow;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ProfileSalesStatus } from '../enum/profile-sales-status.enum';
|
|
2
2
|
export declare class CreateProfileActionRO {
|
|
3
|
-
|
|
3
|
+
profileId: number;
|
|
4
4
|
type: string;
|
|
5
5
|
description: string;
|
|
6
6
|
date: string;
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
done?: boolean;
|
|
8
|
+
time?: string;
|
|
9
|
+
salesStatus?: ProfileSalesStatus;
|
|
9
10
|
}
|
|
@@ -18,10 +18,10 @@ class CreateProfileActionRO {
|
|
|
18
18
|
}
|
|
19
19
|
exports.CreateProfileActionRO = CreateProfileActionRO;
|
|
20
20
|
__decorate([
|
|
21
|
-
(0, class_validator_1.
|
|
21
|
+
(0, class_validator_1.IsPositive)(),
|
|
22
22
|
(0, class_transformer_1.Expose)(),
|
|
23
|
-
__metadata("design:type",
|
|
24
|
-
], CreateProfileActionRO.prototype, "
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], CreateProfileActionRO.prototype, "profileId", void 0);
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
27
27
|
(0, class_transformer_1.Expose)(),
|
|
@@ -38,14 +38,22 @@ __decorate([
|
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], CreateProfileActionRO.prototype, "date", void 0);
|
|
40
40
|
__decorate([
|
|
41
|
-
(0, class_validator_1.
|
|
42
|
-
(0,
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsBoolean)(),
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], CreateProfileActionRO.prototype, "done", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === '' ? undefined : value)),
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
(0, class_validator_1.ValidateIf)((o) => o.time != null && o.time !== ''),
|
|
43
50
|
(0, class_validator_1.IsMilitaryTime)(),
|
|
44
51
|
(0, class_transformer_1.Expose)(),
|
|
45
52
|
__metadata("design:type", String)
|
|
46
53
|
], CreateProfileActionRO.prototype, "time", void 0);
|
|
47
54
|
__decorate([
|
|
48
|
-
(0, class_validator_1.
|
|
55
|
+
(0, class_validator_1.IsOptional)(),
|
|
56
|
+
(0, class_validator_1.IsEnum)(profile_sales_status_enum_1.ProfileSalesStatus),
|
|
49
57
|
(0, class_transformer_1.Expose)(),
|
|
50
|
-
__metadata("design:type",
|
|
51
|
-
], CreateProfileActionRO.prototype, "
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], CreateProfileActionRO.prototype, "salesStatus", void 0);
|
|
@@ -41,13 +41,4 @@ export declare class CreateProfileDto {
|
|
|
41
41
|
comment?: string;
|
|
42
42
|
subscriptionStatus: ProfileSubscriptionEnum;
|
|
43
43
|
subscriptionType?: ProfileSubscriptionTypeEnum;
|
|
44
|
-
bookingCommission: number;
|
|
45
|
-
upsalesCommission: number;
|
|
46
|
-
bookingCommissionExternal?: number;
|
|
47
|
-
bookingCommissionFreePlan?: number;
|
|
48
|
-
crmCommissionFree?: number;
|
|
49
|
-
crmCommissionPro?: number;
|
|
50
|
-
crmCommissionGrowth?: number;
|
|
51
|
-
stripeWidgetApplicationFeePercent?: number;
|
|
52
|
-
stripeCertificateServiceApplicationFeeFixed?: number;
|
|
53
44
|
}
|
|
@@ -188,66 +188,3 @@ __decorate([
|
|
|
188
188
|
(0, class_transformer_1.Expose)(),
|
|
189
189
|
__metadata("design:type", String)
|
|
190
190
|
], CreateProfileDto.prototype, "subscriptionType", void 0);
|
|
191
|
-
__decorate([
|
|
192
|
-
(0, class_validator_1.IsOptional)(),
|
|
193
|
-
(0, class_validator_1.IsNumber)(),
|
|
194
|
-
(0, class_validator_1.Min)(0),
|
|
195
|
-
(0, class_transformer_1.Expose)(),
|
|
196
|
-
__metadata("design:type", Number)
|
|
197
|
-
], CreateProfileDto.prototype, "bookingCommission", void 0);
|
|
198
|
-
__decorate([
|
|
199
|
-
(0, class_validator_1.IsOptional)(),
|
|
200
|
-
(0, class_validator_1.IsNumber)(),
|
|
201
|
-
(0, class_validator_1.Min)(0),
|
|
202
|
-
(0, class_transformer_1.Expose)(),
|
|
203
|
-
__metadata("design:type", Number)
|
|
204
|
-
], CreateProfileDto.prototype, "upsalesCommission", void 0);
|
|
205
|
-
__decorate([
|
|
206
|
-
(0, class_validator_1.IsOptional)(),
|
|
207
|
-
(0, class_validator_1.IsNumber)(),
|
|
208
|
-
(0, class_validator_1.Min)(0),
|
|
209
|
-
(0, class_transformer_1.Expose)(),
|
|
210
|
-
__metadata("design:type", Number)
|
|
211
|
-
], CreateProfileDto.prototype, "bookingCommissionExternal", void 0);
|
|
212
|
-
__decorate([
|
|
213
|
-
(0, class_validator_1.IsOptional)(),
|
|
214
|
-
(0, class_validator_1.IsNumber)(),
|
|
215
|
-
(0, class_validator_1.Min)(0),
|
|
216
|
-
(0, class_transformer_1.Expose)(),
|
|
217
|
-
__metadata("design:type", Number)
|
|
218
|
-
], CreateProfileDto.prototype, "bookingCommissionFreePlan", void 0);
|
|
219
|
-
__decorate([
|
|
220
|
-
(0, class_validator_1.IsOptional)(),
|
|
221
|
-
(0, class_validator_1.IsNumber)(),
|
|
222
|
-
(0, class_validator_1.Min)(0),
|
|
223
|
-
(0, class_transformer_1.Expose)(),
|
|
224
|
-
__metadata("design:type", Number)
|
|
225
|
-
], CreateProfileDto.prototype, "crmCommissionFree", void 0);
|
|
226
|
-
__decorate([
|
|
227
|
-
(0, class_validator_1.IsOptional)(),
|
|
228
|
-
(0, class_validator_1.IsNumber)(),
|
|
229
|
-
(0, class_validator_1.Min)(0),
|
|
230
|
-
(0, class_transformer_1.Expose)(),
|
|
231
|
-
__metadata("design:type", Number)
|
|
232
|
-
], CreateProfileDto.prototype, "crmCommissionPro", void 0);
|
|
233
|
-
__decorate([
|
|
234
|
-
(0, class_validator_1.IsOptional)(),
|
|
235
|
-
(0, class_validator_1.IsNumber)(),
|
|
236
|
-
(0, class_validator_1.Min)(0),
|
|
237
|
-
(0, class_transformer_1.Expose)(),
|
|
238
|
-
__metadata("design:type", Number)
|
|
239
|
-
], CreateProfileDto.prototype, "crmCommissionGrowth", void 0);
|
|
240
|
-
__decorate([
|
|
241
|
-
(0, class_validator_1.IsOptional)(),
|
|
242
|
-
(0, class_validator_1.IsNumber)(),
|
|
243
|
-
(0, class_validator_1.Min)(0),
|
|
244
|
-
(0, class_transformer_1.Expose)(),
|
|
245
|
-
__metadata("design:type", Number)
|
|
246
|
-
], CreateProfileDto.prototype, "stripeWidgetApplicationFeePercent", void 0);
|
|
247
|
-
__decorate([
|
|
248
|
-
(0, class_validator_1.IsOptional)(),
|
|
249
|
-
(0, class_validator_1.IsNumber)(),
|
|
250
|
-
(0, class_validator_1.Min)(0),
|
|
251
|
-
(0, class_transformer_1.Expose)(),
|
|
252
|
-
__metadata("design:type", Number)
|
|
253
|
-
], CreateProfileDto.prototype, "stripeCertificateServiceApplicationFeeFixed", void 0);
|
|
@@ -0,0 +1,22 @@
|
|
|
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.CreateProfileCrmDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const is_not_blank_1 = require("../../shared/is-not-blank");
|
|
15
|
+
class CreateProfileCrmDto {
|
|
16
|
+
}
|
|
17
|
+
exports.CreateProfileCrmDto = CreateProfileCrmDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], CreateProfileCrmDto.prototype, "title", void 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class UpdateProfileCommissionDto {
|
|
2
|
+
bookingCommissionExternal: number;
|
|
3
|
+
bookingCommission: number;
|
|
4
|
+
bookingCommissionFreePlan: number;
|
|
5
|
+
upsalesCommission: number;
|
|
6
|
+
crmCommissionFree: number;
|
|
7
|
+
crmCommissionPro: number;
|
|
8
|
+
crmCommissionGrowth: number;
|
|
9
|
+
stripeWidgetApplicationFeePercent: number;
|
|
10
|
+
stripeCertificateServiceApplicationFeeFixed: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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.UpdateProfileCommissionDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
class UpdateProfileCommissionDto {
|
|
16
|
+
}
|
|
17
|
+
exports.UpdateProfileCommissionDto = UpdateProfileCommissionDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsNumber)(),
|
|
20
|
+
(0, class_validator_1.Min)(0),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], UpdateProfileCommissionDto.prototype, "bookingCommissionExternal", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsNumber)(),
|
|
26
|
+
(0, class_validator_1.Min)(0),
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
__metadata("design:type", Number)
|
|
29
|
+
], UpdateProfileCommissionDto.prototype, "bookingCommission", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsNumber)(),
|
|
32
|
+
(0, class_validator_1.Min)(0),
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], UpdateProfileCommissionDto.prototype, "bookingCommissionFreePlan", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_validator_1.IsNumber)(),
|
|
38
|
+
(0, class_validator_1.Min)(0),
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], UpdateProfileCommissionDto.prototype, "upsalesCommission", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsNumber)(),
|
|
44
|
+
(0, class_validator_1.Min)(0),
|
|
45
|
+
(0, class_transformer_1.Expose)(),
|
|
46
|
+
__metadata("design:type", Number)
|
|
47
|
+
], UpdateProfileCommissionDto.prototype, "crmCommissionFree", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsNumber)(),
|
|
50
|
+
(0, class_validator_1.Min)(0),
|
|
51
|
+
(0, class_transformer_1.Expose)(),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], UpdateProfileCommissionDto.prototype, "crmCommissionPro", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsNumber)(),
|
|
56
|
+
(0, class_validator_1.Min)(0),
|
|
57
|
+
(0, class_transformer_1.Expose)(),
|
|
58
|
+
__metadata("design:type", Number)
|
|
59
|
+
], UpdateProfileCommissionDto.prototype, "crmCommissionGrowth", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, class_validator_1.IsNumber)(),
|
|
62
|
+
(0, class_validator_1.Min)(0),
|
|
63
|
+
(0, class_transformer_1.Expose)(),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], UpdateProfileCommissionDto.prototype, "stripeWidgetApplicationFeePercent", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsNumber)(),
|
|
68
|
+
(0, class_validator_1.Min)(0),
|
|
69
|
+
(0, class_transformer_1.Expose)(),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], UpdateProfileCommissionDto.prototype, "stripeCertificateServiceApplicationFeeFixed", void 0);
|
|
@@ -295,3 +295,9 @@ __decorate([
|
|
|
295
295
|
(0, class_transformer_1.Expose)(),
|
|
296
296
|
__metadata("design:type", Number)
|
|
297
297
|
], CreateQuestroomDto.prototype, "slotStepMinutes", void 0);
|
|
298
|
+
__decorate([
|
|
299
|
+
(0, class_validator_1.IsOptional)(),
|
|
300
|
+
(0, class_validator_1.IsString)(),
|
|
301
|
+
(0, class_transformer_1.Expose)(),
|
|
302
|
+
__metadata("design:type", String)
|
|
303
|
+
], CreateQuestroomDto.prototype, "questOpeningDate", void 0);
|
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
import { LocationRO } from '../location/location.ro';
|
|
2
2
|
import { ProfileRO } from '../profile/profile.ro';
|
|
3
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
3
4
|
import { QuestroomRO } from './questroom.ro';
|
|
4
5
|
import { QuestroomLightLocale as QuestroomLocale } from './questroom-light.ro';
|
|
5
6
|
declare class City {
|
|
6
7
|
title: string;
|
|
7
8
|
}
|
|
9
|
+
declare class SubwayLineAdmin {
|
|
10
|
+
color: string | null;
|
|
11
|
+
ref: string | null;
|
|
12
|
+
}
|
|
13
|
+
declare class SubwayStationAdmin {
|
|
14
|
+
id: number;
|
|
15
|
+
title: string;
|
|
16
|
+
lines: SubwayLineAdmin[];
|
|
17
|
+
coordinates: [number, number];
|
|
18
|
+
cityId: number;
|
|
19
|
+
cityTitle: string;
|
|
20
|
+
country: CountriesEnum;
|
|
21
|
+
externalId: string | null;
|
|
22
|
+
}
|
|
8
23
|
export declare class LocationAdminRO extends LocationRO {
|
|
9
24
|
cityId: number;
|
|
10
25
|
city: City;
|
|
26
|
+
subwayStationId: number | null;
|
|
27
|
+
subwayStation: SubwayStationAdmin | null;
|
|
11
28
|
}
|
|
12
29
|
declare class AwardRO {
|
|
13
30
|
id: number;
|
|
@@ -14,6 +14,7 @@ exports.QuestroomAdminRO = exports.LocationAdminRO = void 0;
|
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const location_ro_1 = require("../location/location.ro");
|
|
16
16
|
const profile_ro_1 = require("../profile/profile.ro");
|
|
17
|
+
const countries_enum_1 = require("../shared/enum/countries.enum");
|
|
17
18
|
const questroom_ro_1 = require("./questroom.ro");
|
|
18
19
|
const questroom_light_ro_1 = require("./questroom-light.ro");
|
|
19
20
|
class City {
|
|
@@ -22,6 +23,57 @@ __decorate([
|
|
|
22
23
|
(0, class_transformer_1.Expose)(),
|
|
23
24
|
__metadata("design:type", String)
|
|
24
25
|
], City.prototype, "title", void 0);
|
|
26
|
+
class SubwayLineAdmin {
|
|
27
|
+
}
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SubwayLineAdmin.prototype, "color", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", String)
|
|
35
|
+
], SubwayLineAdmin.prototype, "ref", void 0);
|
|
36
|
+
class SubwayStationAdmin {
|
|
37
|
+
}
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], SubwayStationAdmin.prototype, "id", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_transformer_1.Expose)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], SubwayStationAdmin.prototype, "title", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
(0, class_transformer_1.Type)(() => SubwayLineAdmin),
|
|
49
|
+
__metadata("design:type", Array)
|
|
50
|
+
], SubwayStationAdmin.prototype, "lines", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
(0, class_transformer_1.Transform)(({ value }) => {
|
|
54
|
+
var _a, _b;
|
|
55
|
+
if (typeof value === 'object')
|
|
56
|
+
return value === null || value === void 0 ? void 0 : value.coordinates;
|
|
57
|
+
return (_b = (_a = value === null || value === void 0 ? void 0 : value.slice) === null || _a === void 0 ? void 0 : _a.call(value, 1, -1)) === null || _b === void 0 ? void 0 : _b.split(',');
|
|
58
|
+
}),
|
|
59
|
+
__metadata("design:type", Array)
|
|
60
|
+
], SubwayStationAdmin.prototype, "coordinates", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_transformer_1.Expose)(),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], SubwayStationAdmin.prototype, "cityId", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], SubwayStationAdmin.prototype, "cityTitle", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_transformer_1.Expose)(),
|
|
71
|
+
__metadata("design:type", String)
|
|
72
|
+
], SubwayStationAdmin.prototype, "country", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_transformer_1.Expose)(),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], SubwayStationAdmin.prototype, "externalId", void 0);
|
|
25
77
|
class LocationAdminRO extends location_ro_1.LocationRO {
|
|
26
78
|
}
|
|
27
79
|
exports.LocationAdminRO = LocationAdminRO;
|
|
@@ -34,6 +86,15 @@ __decorate([
|
|
|
34
86
|
(0, class_transformer_1.Type)(() => City),
|
|
35
87
|
__metadata("design:type", City)
|
|
36
88
|
], LocationAdminRO.prototype, "city", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, class_transformer_1.Expose)(),
|
|
91
|
+
__metadata("design:type", Number)
|
|
92
|
+
], LocationAdminRO.prototype, "subwayStationId", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_transformer_1.Expose)(),
|
|
95
|
+
(0, class_transformer_1.Type)(() => SubwayStationAdmin),
|
|
96
|
+
__metadata("design:type", SubwayStationAdmin)
|
|
97
|
+
], LocationAdminRO.prototype, "subwayStation", void 0);
|
|
37
98
|
class AwardRO {
|
|
38
99
|
}
|
|
39
100
|
__decorate([
|
|
@@ -214,3 +214,7 @@ __decorate([
|
|
|
214
214
|
(0, class_transformer_1.Expose)(),
|
|
215
215
|
__metadata("design:type", Number)
|
|
216
216
|
], QuestroomLightRO.prototype, "slotStepMinutes", void 0);
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, class_transformer_1.Expose)(),
|
|
219
|
+
__metadata("design:type", String)
|
|
220
|
+
], QuestroomLightRO.prototype, "questOpeningDate", void 0);
|
package/dist/slot/slot.ro.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { PrepaymentTypeEnum } from './enum/prepayment-type.enum';
|
|
|
3
3
|
export type SlotRuleSummaryRO = {
|
|
4
4
|
title: string;
|
|
5
5
|
minHoursForBooking: number;
|
|
6
|
+
minMinutesForBooking: number;
|
|
6
7
|
prepayment: number;
|
|
7
8
|
prepaymentType: PrepaymentTypeEnum;
|
|
8
9
|
cancelationRule: QuestroomCancelationTypeEnum;
|
|
@@ -10,7 +10,9 @@ export declare class CreateRuleDto {
|
|
|
10
10
|
cancelationAmount: number;
|
|
11
11
|
minHoursForFreeCanceling: number;
|
|
12
12
|
minHoursForBooking: number;
|
|
13
|
+
minMinutesForBooking: number;
|
|
13
14
|
blockingHours: number;
|
|
15
|
+
blockingMinutes: number;
|
|
14
16
|
openSlotWhenUserInCalendar: boolean;
|
|
15
17
|
clientCanCancel: boolean;
|
|
16
18
|
prepayForTourists: boolean;
|