@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
|
@@ -78,6 +78,21 @@ __decorate([
|
|
|
78
78
|
(0, class_transformer_1.Expose)(),
|
|
79
79
|
__metadata("design:type", Number)
|
|
80
80
|
], CreateRuleDto.prototype, "minHoursForBooking", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
83
|
+
(0, class_transformer_1.Transform)(({ value, obj }) => {
|
|
84
|
+
if (value !== undefined && value !== null)
|
|
85
|
+
return value;
|
|
86
|
+
if (obj.minHoursForBooking != null)
|
|
87
|
+
return obj.minHoursForBooking * 60;
|
|
88
|
+
return 48 * 60;
|
|
89
|
+
}),
|
|
90
|
+
(0, class_validator_1.IsInt)(),
|
|
91
|
+
(0, class_validator_1.Min)(0),
|
|
92
|
+
(0, class_validator_1.Max)(10080),
|
|
93
|
+
(0, class_transformer_1.Expose)(),
|
|
94
|
+
__metadata("design:type", Number)
|
|
95
|
+
], CreateRuleDto.prototype, "minMinutesForBooking", void 0);
|
|
81
96
|
__decorate([
|
|
82
97
|
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
83
98
|
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? 2 : value)),
|
|
@@ -85,6 +100,21 @@ __decorate([
|
|
|
85
100
|
(0, class_transformer_1.Expose)(),
|
|
86
101
|
__metadata("design:type", Number)
|
|
87
102
|
], CreateRuleDto.prototype, "blockingHours", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
105
|
+
(0, class_transformer_1.Transform)(({ value, obj }) => {
|
|
106
|
+
if (value !== undefined && value !== null)
|
|
107
|
+
return value;
|
|
108
|
+
if (obj.blockingHours != null)
|
|
109
|
+
return obj.blockingHours * 60;
|
|
110
|
+
return 2 * 60;
|
|
111
|
+
}),
|
|
112
|
+
(0, class_validator_1.IsInt)(),
|
|
113
|
+
(0, class_validator_1.Min)(0),
|
|
114
|
+
(0, class_validator_1.Max)(10080),
|
|
115
|
+
(0, class_transformer_1.Expose)(),
|
|
116
|
+
__metadata("design:type", Number)
|
|
117
|
+
], CreateRuleDto.prototype, "blockingMinutes", void 0);
|
|
88
118
|
__decorate([
|
|
89
119
|
(0, class_validator_1.ValidateIf)((o) => !o.ruleId),
|
|
90
120
|
(0, class_transformer_1.Transform)(({ value }) => value !== null && value !== void 0 ? value : true),
|
|
@@ -7,8 +7,10 @@ export declare const defaultRule: {
|
|
|
7
7
|
cancelationRule: QuestroomCancelationTypeEnum;
|
|
8
8
|
minHoursForFreeCanceling: number;
|
|
9
9
|
minHoursForBooking: number;
|
|
10
|
+
minMinutesForBooking: number;
|
|
10
11
|
minHoursForFullFine: number;
|
|
11
12
|
blockingHours: number;
|
|
13
|
+
blockingMinutes: number;
|
|
12
14
|
openSlotWhenUserInCalendar: boolean;
|
|
13
15
|
clientCanCancel: boolean;
|
|
14
16
|
prepayForTourists: boolean;
|
|
@@ -10,8 +10,10 @@ exports.defaultRule = {
|
|
|
10
10
|
cancelationRule: questroom_cancelation_type_enum_1.QuestroomCancelationTypeEnum.MIN_PRICE,
|
|
11
11
|
minHoursForFreeCanceling: 8,
|
|
12
12
|
minHoursForBooking: 48,
|
|
13
|
+
minMinutesForBooking: 48 * 60,
|
|
13
14
|
minHoursForFullFine: 0,
|
|
14
15
|
blockingHours: 2,
|
|
16
|
+
blockingMinutes: 2 * 60,
|
|
15
17
|
openSlotWhenUserInCalendar: true,
|
|
16
18
|
clientCanCancel: true,
|
|
17
19
|
prepayForTourists: false,
|
|
@@ -12,7 +12,9 @@ export declare class RuleRO {
|
|
|
12
12
|
cancelationAmount: number;
|
|
13
13
|
minHoursForFreeCanceling: number;
|
|
14
14
|
minHoursForBooking: number;
|
|
15
|
+
minMinutesForBooking: number;
|
|
15
16
|
blockingHours: number;
|
|
17
|
+
blockingMinutes: number;
|
|
16
18
|
openSlotWhenUserInCalendar: boolean;
|
|
17
19
|
clientCanCancel: boolean;
|
|
18
20
|
prepayForTourists: boolean;
|
|
@@ -60,10 +60,18 @@ __decorate([
|
|
|
60
60
|
(0, class_transformer_1.Expose)(),
|
|
61
61
|
__metadata("design:type", Number)
|
|
62
62
|
], RuleRO.prototype, "minHoursForBooking", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_transformer_1.Expose)(),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], RuleRO.prototype, "minMinutesForBooking", void 0);
|
|
63
67
|
__decorate([
|
|
64
68
|
(0, class_transformer_1.Expose)(),
|
|
65
69
|
__metadata("design:type", Number)
|
|
66
70
|
], RuleRO.prototype, "blockingHours", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, class_transformer_1.Expose)(),
|
|
73
|
+
__metadata("design:type", Number)
|
|
74
|
+
], RuleRO.prototype, "blockingMinutes", void 0);
|
|
67
75
|
__decorate([
|
|
68
76
|
(0, class_transformer_1.Expose)(),
|
|
69
77
|
__metadata("design:type", Boolean)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CountriesEnum } from '../shared/enum/countries.enum';
|
|
2
|
+
export type SubwayLineRO = {
|
|
3
|
+
color: string | null;
|
|
4
|
+
ref: string | null;
|
|
5
|
+
};
|
|
6
|
+
export type SubwayStationRO = {
|
|
7
|
+
id: number;
|
|
8
|
+
title: string;
|
|
9
|
+
/**
|
|
10
|
+
* Все линии метро, к которым принадлежит станция. Пересадочные
|
|
11
|
+
* содержат >1 элемента. Первая в массиве — primary (для иконки
|
|
12
|
+
* на агрегаторе).
|
|
13
|
+
*/
|
|
14
|
+
lines: SubwayLineRO[];
|
|
15
|
+
coordinates: [number, number];
|
|
16
|
+
cityId: number;
|
|
17
|
+
cityTitle: string;
|
|
18
|
+
country: CountriesEnum;
|
|
19
|
+
externalId: string | null;
|
|
20
|
+
createdAt: string;
|
|
21
|
+
updatedAt: string;
|
|
22
|
+
};
|
|
23
|
+
export type SubwayStationCityRO = {
|
|
24
|
+
cityId: number;
|
|
25
|
+
cityTitle: string;
|
|
26
|
+
country: CountriesEnum;
|
|
27
|
+
count: number;
|
|
28
|
+
};
|
|
29
|
+
export type SyncSubwayStationsResponseRO = {
|
|
30
|
+
subwayImport: {
|
|
31
|
+
cities: number;
|
|
32
|
+
totalFetched: number;
|
|
33
|
+
totalInserted: number;
|
|
34
|
+
totalUpdated: number;
|
|
35
|
+
};
|
|
36
|
+
subway: {
|
|
37
|
+
cityIdsWithSubway: number;
|
|
38
|
+
candidates: number;
|
|
39
|
+
updated: number;
|
|
40
|
+
notFound: number;
|
|
41
|
+
errors: number;
|
|
42
|
+
};
|
|
43
|
+
};
|