@escapenavigator/types 1.4.32 → 1.4.34
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/certificate/certificate.ro.d.ts +3 -1
- package/dist/certificate/create-certificate.dto.d.ts +3 -1
- package/dist/certificate/create-certificate.dto.js +14 -3
- package/dist/certificate-sale/create-certificatesale.dto.js +12 -12
- package/dist/location/create-location.dto.d.ts +2 -0
- package/dist/location/create-location.dto.js +10 -0
- package/dist/location/location.ro.d.ts +2 -0
- package/dist/log/log.ro.d.ts +1 -1
- package/dist/profile/create-profile.dto.d.ts +1 -0
- package/dist/profile/create-profile.dto.js +5 -0
- package/dist/profile/profile.ro.d.ts +1 -0
- package/dist/profile/update-profile.dto.d.ts +2 -2
- package/dist/profile/update-profile.dto.js +10 -5
- package/dist/questroom/create-questroom.dto.js +3 -3
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/widget/create-widget.dto.d.ts +1 -2
- package/dist/widget/create-widget.dto.js +1 -7
- package/dist/widget/widget.ro.d.ts +1 -2
- package/dist/widget-openapi/widget-openapi-certificate-card.ro.d.ts +3 -1
- package/dist/widget-openapi/widget-openapi-day-schedule.dto.d.ts +4 -0
- package/dist/widget-openapi/{widget-openapi-weekly-query.dto.js → widget-openapi-day-schedule.dto.js} +7 -7
- package/dist/widget-openapi/widget-openapi-questroom.ro.d.ts +0 -7
- package/dist/widget-openapi/widget-openapi-week-schedule.dto.d.ts +4 -0
- package/dist/widget-openapi/{widget-openapi-schedule-query.dto.js → widget-openapi-week-schedule.dto.js} +6 -11
- package/dist/widget-openapi/widget-openapi.ro.d.ts +32 -6
- package/package.json +2 -2
- package/dist/widget-openapi/widget-openapi-schedule-query.dto.d.ts +0 -5
- package/dist/widget-openapi/widget-openapi-weekly-query.dto.d.ts +0 -4
|
@@ -41,7 +41,6 @@ __decorate([
|
|
|
41
41
|
__metadata("design:type", String)
|
|
42
42
|
], CreateCertificateDto.prototype, "type", void 0);
|
|
43
43
|
__decorate([
|
|
44
|
-
(0, class_validator_1.IsOptional)(),
|
|
45
44
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
46
45
|
(0, class_transformer_1.Expose)(),
|
|
47
46
|
__metadata("design:type", String)
|
|
@@ -63,7 +62,7 @@ __decorate([
|
|
|
63
62
|
__decorate([
|
|
64
63
|
(0, class_validator_1.ValidateIf)((o) => o.type === certificate_type_enum_1.CertificateTypeEnum.PHYSICAL),
|
|
65
64
|
(0, class_validator_1.IsBoolean)(),
|
|
66
|
-
(0, class_transformer_1.Transform)(checkBoolean),
|
|
65
|
+
(0, class_transformer_1.Transform)(({ value }) => checkBoolean({ value }, false)),
|
|
67
66
|
(0, class_transformer_1.Expose)(),
|
|
68
67
|
__metadata("design:type", Boolean)
|
|
69
68
|
], CreateCertificateDto.prototype, "deliveryPossibility", void 0);
|
|
@@ -116,5 +115,17 @@ __decorate([
|
|
|
116
115
|
(0, class_validator_1.IsString)(),
|
|
117
116
|
(0, class_transformer_1.Expose)(),
|
|
118
117
|
__metadata("design:type", String)
|
|
119
|
-
], CreateCertificateDto.prototype, "
|
|
118
|
+
], CreateCertificateDto.prototype, "description", void 0);
|
|
119
|
+
__decorate([
|
|
120
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
121
|
+
(0, class_validator_1.ValidateIf)((o) => o.pickupPossibility === true),
|
|
122
|
+
(0, class_transformer_1.Expose)(),
|
|
123
|
+
__metadata("design:type", String)
|
|
124
|
+
], CreateCertificateDto.prototype, "pickupInfo", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
127
|
+
(0, class_validator_1.ValidateIf)((o) => o.pickupPossibility === true),
|
|
128
|
+
(0, class_transformer_1.Expose)(),
|
|
129
|
+
__metadata("design:type", String)
|
|
130
|
+
], CreateCertificateDto.prototype, "deliveryInfo", void 0);
|
|
120
131
|
exports.CreateCertificateDto = CreateCertificateDto;
|
|
@@ -17,12 +17,12 @@ const certificatesales_delivery_type_enum_1 = require("./enum/certificatesales-d
|
|
|
17
17
|
class CreateCertificatesaleDto {
|
|
18
18
|
}
|
|
19
19
|
__decorate([
|
|
20
|
-
(0,
|
|
20
|
+
(0, class_validator_1.IsPositive)(),
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", Number)
|
|
23
23
|
], CreateCertificatesaleDto.prototype, "certificateId", void 0);
|
|
24
24
|
__decorate([
|
|
25
|
-
(0,
|
|
25
|
+
(0, class_validator_1.IsPositive)(),
|
|
26
26
|
(0, class_transformer_1.Expose)(),
|
|
27
27
|
__metadata("design:type", Number)
|
|
28
28
|
], CreateCertificatesaleDto.prototype, "clientId", void 0);
|
|
@@ -32,56 +32,56 @@ __decorate([
|
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], CreateCertificatesaleDto.prototype, "deliveryType", void 0);
|
|
34
34
|
__decorate([
|
|
35
|
-
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
36
35
|
(0, class_validator_1.IsEmail)(),
|
|
36
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
37
37
|
(0, class_transformer_1.Expose)(),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
39
|
], CreateCertificatesaleDto.prototype, "deliveryEmail", void 0);
|
|
40
40
|
__decorate([
|
|
41
|
-
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
42
41
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
42
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
43
43
|
(0, class_transformer_1.Expose)(),
|
|
44
44
|
__metadata("design:type", String)
|
|
45
45
|
], CreateCertificatesaleDto.prototype, "sendingDate", void 0);
|
|
46
46
|
__decorate([
|
|
47
|
-
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
48
47
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
48
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
49
49
|
(0, class_transformer_1.Expose)(),
|
|
50
50
|
__metadata("design:type", String)
|
|
51
51
|
], CreateCertificatesaleDto.prototype, "sendingTime", void 0);
|
|
52
52
|
__decorate([
|
|
53
|
-
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
54
53
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
54
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
55
55
|
(0, class_transformer_1.Expose)(),
|
|
56
56
|
__metadata("design:type", String)
|
|
57
57
|
], CreateCertificatesaleDto.prototype, "deliveryMessage", void 0);
|
|
58
58
|
__decorate([
|
|
59
|
-
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST, { always: true }),
|
|
60
59
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
60
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
61
61
|
(0, class_transformer_1.Expose)(),
|
|
62
62
|
__metadata("design:type", String)
|
|
63
63
|
], CreateCertificatesaleDto.prototype, "deliveryFullname", void 0);
|
|
64
64
|
__decorate([
|
|
65
|
-
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST
|
|
66
|
-
(0, class_transformer_1.Expose)(),
|
|
65
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
67
66
|
(0, class_validator_1.IsPhoneNumber)(),
|
|
67
|
+
(0, class_transformer_1.Expose)(),
|
|
68
68
|
__metadata("design:type", String)
|
|
69
69
|
], CreateCertificatesaleDto.prototype, "deliveryPhone", void 0);
|
|
70
70
|
__decorate([
|
|
71
|
-
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST, { always: true }),
|
|
72
71
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
72
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
73
73
|
(0, class_transformer_1.Expose)(),
|
|
74
74
|
__metadata("design:type", String)
|
|
75
75
|
], CreateCertificatesaleDto.prototype, "deliveryAddress", void 0);
|
|
76
76
|
__decorate([
|
|
77
|
-
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST, { always: true }),
|
|
78
77
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
78
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
79
79
|
(0, class_transformer_1.Expose)(),
|
|
80
80
|
__metadata("design:type", String)
|
|
81
81
|
], CreateCertificatesaleDto.prototype, "deliveryCity", void 0);
|
|
82
82
|
__decorate([
|
|
83
|
-
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST, { always: true }),
|
|
84
83
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
84
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
85
85
|
(0, class_transformer_1.Expose)(),
|
|
86
86
|
__metadata("design:type", String)
|
|
87
87
|
], CreateCertificatesaleDto.prototype, "deliveryPostCode", void 0);
|
|
@@ -32,6 +32,16 @@ __decorate([
|
|
|
32
32
|
(0, class_transformer_1.Expose)(),
|
|
33
33
|
__metadata("design:type", String)
|
|
34
34
|
], CreateLocationDto.prototype, "howToFind", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], CreateLocationDto.prototype, "prepareInfo", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], CreateLocationDto.prototype, "feedBackInfo", void 0);
|
|
35
45
|
__decorate([
|
|
36
46
|
(0, class_validator_1.IsEnum)(desinfection_enum_1.DisinfectionTypeEnum),
|
|
37
47
|
(0, class_transformer_1.Transform)(({ value }) => value || desinfection_enum_1.DisinfectionTypeEnum.AFTER_EACH_GAME),
|
package/dist/log/log.ro.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { LogTitleEnum } from './log-title.enum';
|
|
|
3
3
|
import { LogTypeEnum } from './log-type.enum';
|
|
4
4
|
export declare type LogRO = ResponseObject & {
|
|
5
5
|
title: LogTitleEnum;
|
|
6
|
-
|
|
6
|
+
type: LogTypeEnum[];
|
|
7
7
|
userId?: number;
|
|
8
8
|
modelId?: number;
|
|
9
9
|
modelName?: string;
|
|
@@ -16,6 +16,11 @@ const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
|
16
16
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
17
17
|
class CreateProfileDto {
|
|
18
18
|
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
__metadata("design:type", String)
|
|
23
|
+
], CreateProfileDto.prototype, "color", void 0);
|
|
19
24
|
__decorate([
|
|
20
25
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
26
|
(0, class_transformer_1.Expose)(),
|
|
@@ -4,6 +4,7 @@ import { ProfileCurrencyEnum } from './enum/profile-currency';
|
|
|
4
4
|
import { ProfileStatusEnum } from './enum/profile-status.enum';
|
|
5
5
|
export declare type ProfileResponseObject = ResponseObject & {
|
|
6
6
|
title: string;
|
|
7
|
+
color: string;
|
|
7
8
|
legalTitle: string;
|
|
8
9
|
phone: string;
|
|
9
10
|
email: string;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Languages } from '../shared/enum/languages.enum';
|
|
2
|
-
import { ProfileCurrencyEnum } from './enum/profile-currency';
|
|
3
2
|
export declare class UpdateProfileDto {
|
|
3
|
+
color: string;
|
|
4
4
|
title: string;
|
|
5
5
|
legalTitle: string;
|
|
6
|
+
registrationRequestId: number;
|
|
6
7
|
phone: string;
|
|
7
8
|
contactPhone: string;
|
|
8
9
|
contactName: string;
|
|
@@ -10,7 +11,6 @@ export declare class UpdateProfileDto {
|
|
|
10
11
|
site: string;
|
|
11
12
|
address: string;
|
|
12
13
|
language: Languages;
|
|
13
|
-
currency: ProfileCurrencyEnum;
|
|
14
14
|
facebook?: string;
|
|
15
15
|
instagram?: string;
|
|
16
16
|
comment?: string;
|
|
@@ -10,12 +10,16 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.UpdateProfileDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
const languages_enum_1 = require("../shared/enum/languages.enum");
|
|
15
16
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
|
-
const profile_currency_1 = require("./enum/profile-currency");
|
|
17
17
|
class UpdateProfileDto {
|
|
18
18
|
}
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], UpdateProfileDto.prototype, "color", void 0);
|
|
19
23
|
__decorate([
|
|
20
24
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
25
|
__metadata("design:type", String)
|
|
@@ -24,6 +28,11 @@ __decorate([
|
|
|
24
28
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
25
29
|
__metadata("design:type", String)
|
|
26
30
|
], UpdateProfileDto.prototype, "legalTitle", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_validator_1.IsNumber)(),
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], UpdateProfileDto.prototype, "registrationRequestId", void 0);
|
|
27
36
|
__decorate([
|
|
28
37
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
29
38
|
__metadata("design:type", String)
|
|
@@ -52,10 +61,6 @@ __decorate([
|
|
|
52
61
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
53
62
|
__metadata("design:type", String)
|
|
54
63
|
], UpdateProfileDto.prototype, "language", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], UpdateProfileDto.prototype, "currency", void 0);
|
|
59
64
|
__decorate([
|
|
60
65
|
(0, class_validator_1.IsOptional)(),
|
|
61
66
|
__metadata("design:type", String)
|
|
@@ -89,17 +89,17 @@ __decorate([
|
|
|
89
89
|
__metadata("design:type", String)
|
|
90
90
|
], CreateQuestroomDto.prototype, "defaultLanguage", void 0);
|
|
91
91
|
__decorate([
|
|
92
|
-
(0,
|
|
92
|
+
(0, class_validator_1.IsPositive)(),
|
|
93
93
|
(0, class_transformer_1.Expose)(),
|
|
94
94
|
__metadata("design:type", Number)
|
|
95
95
|
], CreateQuestroomDto.prototype, "onlinePaymentsCashbox", void 0);
|
|
96
96
|
__decorate([
|
|
97
|
-
(0,
|
|
97
|
+
(0, class_validator_1.IsPositive)(),
|
|
98
98
|
(0, class_transformer_1.Expose)(),
|
|
99
99
|
__metadata("design:type", Number)
|
|
100
100
|
], CreateQuestroomDto.prototype, "cashPaymentsCashbox", void 0);
|
|
101
101
|
__decorate([
|
|
102
|
-
(0,
|
|
102
|
+
(0, class_validator_1.IsPositive)(),
|
|
103
103
|
(0, class_transformer_1.Expose)(),
|
|
104
104
|
__metadata("design:type", Number)
|
|
105
105
|
], CreateQuestroomDto.prototype, "cardPaymentsCashbox", void 0);
|