@escapenavigator/types 1.8.6 → 1.8.7
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/client/client-form.dto.d.ts +1 -1
- package/dist/client/client-form.dto.js +4 -4
- package/dist/forms/widget/widget-client-form.dto.d.ts +3 -0
- package/dist/forms/widget/widget-client-form.dto.js +17 -0
- package/dist/profile/enum/profile-tag.enum.d.ts +2 -1
- package/dist/profile/enum/profile-tag.enum.js +1 -0
- package/dist/profile/profile.ro.d.ts +1 -0
- package/dist/profile/profile.ro.js +4 -0
- package/dist/profile/update-current-ga.dto.d.ts +0 -6
- package/dist/profile/update-current-ga.dto.js +0 -26
- package/dist/profile/update-current.dto.d.ts +1 -0
- package/dist/profile/update-current.dto.js +6 -0
- package/dist/slot/update-breaks.dto.js +2 -0
- package/dist/statistics/general.d.ts +8 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -35,17 +35,17 @@ __decorate([
|
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], ClientFormDto.prototype, "email", void 0);
|
|
37
37
|
__decorate([
|
|
38
|
-
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.
|
|
38
|
+
(0, class_validator_1.ValidateIf)(({ fields, clientType }) => clientType === client_type_enum_1.ClientTypeEnum.MINOR || fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.BIRTHDAY)),
|
|
39
39
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
40
40
|
(0, class_transformer_1.Expose)(),
|
|
41
41
|
__metadata("design:type", String)
|
|
42
|
-
], ClientFormDto.prototype, "
|
|
42
|
+
], ClientFormDto.prototype, "birthday", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(0, class_validator_1.ValidateIf)(({ fields
|
|
44
|
+
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.NAME)),
|
|
45
45
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
46
46
|
(0, class_transformer_1.Expose)(),
|
|
47
47
|
__metadata("design:type", String)
|
|
48
|
-
], ClientFormDto.prototype, "
|
|
48
|
+
], ClientFormDto.prototype, "name", void 0);
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.SURNAME)),
|
|
51
51
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
@@ -3,9 +3,12 @@ export declare class WidgetClientFormDto {
|
|
|
3
3
|
fields: WidgetBookingFiledEnum[];
|
|
4
4
|
name: string;
|
|
5
5
|
surname: string;
|
|
6
|
+
birthday: string;
|
|
6
7
|
email: string;
|
|
7
8
|
phone: string;
|
|
8
9
|
address: string;
|
|
10
|
+
asCompany: boolean;
|
|
11
|
+
companyName: string;
|
|
9
12
|
postcode: string;
|
|
10
13
|
city: string;
|
|
11
14
|
sendAds: boolean;
|
|
@@ -34,6 +34,13 @@ __decorate([
|
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], WidgetClientFormDto.prototype, "surname", void 0);
|
|
36
36
|
__decorate([
|
|
37
|
+
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.BIRTHDAY)),
|
|
38
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
39
|
+
(0, class_transformer_1.Expose)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], WidgetClientFormDto.prototype, "birthday", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.EMAIL)),
|
|
37
44
|
(0, class_validator_1.IsEmail)(),
|
|
38
45
|
(0, class_transformer_1.Transform)(({ value }) => value === null || value === void 0 ? void 0 : value.trim().toLowerCase()),
|
|
39
46
|
(0, class_transformer_1.Expose)(),
|
|
@@ -51,6 +58,16 @@ __decorate([
|
|
|
51
58
|
(0, class_transformer_1.Expose)(),
|
|
52
59
|
__metadata("design:type", String)
|
|
53
60
|
], WidgetClientFormDto.prototype, "address", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_transformer_1.Expose)(),
|
|
64
|
+
__metadata("design:type", Boolean)
|
|
65
|
+
], WidgetClientFormDto.prototype, "asCompany", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_transformer_1.Expose)(),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], WidgetClientFormDto.prototype, "companyName", void 0);
|
|
54
71
|
__decorate([
|
|
55
72
|
(0, class_validator_1.ValidateIf)(({ fields }) => fields.includes(widget_booking_filed_enum_1.WidgetBookingFiledEnum.ADDRESS)),
|
|
56
73
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
@@ -138,4 +138,8 @@ __decorate([
|
|
|
138
138
|
(0, class_transformer_1.Expose)(),
|
|
139
139
|
__metadata("design:type", Array)
|
|
140
140
|
], ProfileRO.prototype, "bookingFields", void 0);
|
|
141
|
+
__decorate([
|
|
142
|
+
(0, class_transformer_1.Expose)(),
|
|
143
|
+
__metadata("design:type", Array)
|
|
144
|
+
], ProfileRO.prototype, "adminBookingFields", void 0);
|
|
141
145
|
exports.ProfileRO = ProfileRO;
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import { WidgetBookingFiledEnum } from '../widget/enum/widget-booking-filed.enum';
|
|
2
1
|
import { UpdateCurrentBaseDto } from './update-current-base.dto';
|
|
3
2
|
export declare class UpdateCurrentGaDto extends UpdateCurrentBaseDto {
|
|
4
|
-
agreementLink: string;
|
|
5
|
-
site: string;
|
|
6
|
-
bookingFields: WidgetBookingFiledEnum[];
|
|
7
|
-
logo: string;
|
|
8
3
|
gaEnabled: boolean;
|
|
9
4
|
ga4Id: string;
|
|
10
5
|
gaCoversationId: string;
|
|
11
6
|
gaCoversationLabel: string;
|
|
12
|
-
nowEscape: boolean;
|
|
13
7
|
}
|
|
@@ -16,27 +16,6 @@ const is_not_blank_1 = require("../shared/is-not-blank");
|
|
|
16
16
|
const update_current_base_dto_1 = require("./update-current-base.dto");
|
|
17
17
|
class UpdateCurrentGaDto extends update_current_base_dto_1.UpdateCurrentBaseDto {
|
|
18
18
|
}
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, class_validator_1.IsUrl)(),
|
|
21
|
-
(0, class_transformer_1.Expose)(),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], UpdateCurrentGaDto.prototype, "agreementLink", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, class_validator_1.IsUrl)(),
|
|
26
|
-
(0, class_transformer_1.Expose)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], UpdateCurrentGaDto.prototype, "site", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, class_validator_1.IsArray)(),
|
|
31
|
-
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
32
|
-
(0, class_transformer_1.Expose)(),
|
|
33
|
-
__metadata("design:type", Array)
|
|
34
|
-
], UpdateCurrentGaDto.prototype, "bookingFields", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
|
37
|
-
(0, class_transformer_1.Expose)(),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], UpdateCurrentGaDto.prototype, "logo", void 0);
|
|
40
19
|
__decorate([
|
|
41
20
|
(0, class_validator_1.IsOptional)(),
|
|
42
21
|
(0, class_transformer_1.Expose)(),
|
|
@@ -60,9 +39,4 @@ __decorate([
|
|
|
60
39
|
(0, class_transformer_1.Expose)(),
|
|
61
40
|
__metadata("design:type", String)
|
|
62
41
|
], UpdateCurrentGaDto.prototype, "gaCoversationLabel", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, class_validator_1.IsOptional)(),
|
|
65
|
-
(0, class_transformer_1.Expose)(),
|
|
66
|
-
__metadata("design:type", Boolean)
|
|
67
|
-
], UpdateCurrentGaDto.prototype, "nowEscape", void 0);
|
|
68
42
|
exports.UpdateCurrentGaDto = UpdateCurrentGaDto;
|
|
@@ -31,6 +31,12 @@ __decorate([
|
|
|
31
31
|
(0, class_transformer_1.Expose)(),
|
|
32
32
|
__metadata("design:type", Array)
|
|
33
33
|
], UpdateCurrentDto.prototype, "bookingFields", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsArray)(),
|
|
36
|
+
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", Array)
|
|
39
|
+
], UpdateCurrentDto.prototype, "adminBookingFields", void 0);
|
|
34
40
|
__decorate([
|
|
35
41
|
(0, class_validator_1.IsOptional)(),
|
|
36
42
|
(0, class_transformer_1.Expose)(),
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.UpdateBreaksDto = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
+
const is_bigger_than_1 = require("../shared/is-bigger-than");
|
|
15
16
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
17
|
class UpdateBreaksDto {
|
|
17
18
|
}
|
|
@@ -49,6 +50,7 @@ __decorate([
|
|
|
49
50
|
], UpdateBreaksDto.prototype, "startTime", void 0);
|
|
50
51
|
__decorate([
|
|
51
52
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
53
|
+
(0, is_bigger_than_1.IsBiggerThan)('startTime'),
|
|
52
54
|
(0, class_transformer_1.Expose)(),
|
|
53
55
|
__metadata("design:type", String)
|
|
54
56
|
], UpdateBreaksDto.prototype, "endTime", void 0);
|
|
@@ -10,6 +10,10 @@ export declare type GeneralStatiscticsRO = {
|
|
|
10
10
|
newBookingsByQuestroomAndDate: Array<{
|
|
11
11
|
name: string;
|
|
12
12
|
} & Record<string, number>>;
|
|
13
|
+
bookingsByUpselling: Array<{
|
|
14
|
+
name: string;
|
|
15
|
+
value: number;
|
|
16
|
+
}>;
|
|
13
17
|
newBookingsStructure: Array<{
|
|
14
18
|
name: string;
|
|
15
19
|
widget: number;
|
|
@@ -37,6 +41,10 @@ export declare type GeneralStatiscticsRO = {
|
|
|
37
41
|
count: number;
|
|
38
42
|
revenue: number;
|
|
39
43
|
};
|
|
44
|
+
upsellings: {
|
|
45
|
+
count: number;
|
|
46
|
+
revenue: number;
|
|
47
|
+
};
|
|
40
48
|
promocodes: {
|
|
41
49
|
count: number;
|
|
42
50
|
revenue: number;
|