@escapenavigator/types 1.4.36 → 1.4.38
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 -4
- package/dist/certificate/create-certificate.dto.d.ts +4 -5
- package/dist/certificate/create-certificate.dto.js +23 -24
- package/dist/certificate-sale/certificate-sale-resend.dto.d.ts +4 -0
- package/dist/certificate-sale/certificate-sale-resend.dto.js +24 -0
- package/dist/certificate-sale/certificate-sale.ro.d.ts +4 -7
- package/dist/certificate-sale/create-certificatesale.dto.d.ts +9 -6
- package/dist/certificate-sale/create-certificatesale.dto.js +36 -20
- package/dist/certificate-sale/{update-certificatesale-delivery-info.dto.d.ts → legacy/update-certificatesale-delivery-info.dto.d.ts} +9 -7
- package/dist/certificate-sale/{update-certificatesale-delivery-info.dto.js → legacy/update-certificatesale-delivery-info.dto.js} +31 -20
- package/dist/certificate-sale/update-certificatesale-tracking-info.dto.d.ts +1 -2
- package/dist/certificate-sale/update-certificatesale-tracking-info.dto.js +1 -6
- package/dist/client/client.ro.d.ts +1 -3
- package/dist/client/create-client.dto.d.ts +1 -3
- package/dist/client/create-client.dto.js +1 -14
- package/dist/client/update-client.dto.d.ts +0 -2
- package/dist/client/update-client.dto.js +0 -12
- package/dist/order/order.ro.d.ts +2 -2
- package/dist/order-upselling/create-order-upselling.dto.d.ts +1 -0
- package/dist/questroom/create-questroom.dto.d.ts +1 -0
- package/dist/questroom/create-questroom.dto.js +5 -0
- package/dist/questroom/questroom.ro.d.ts +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/user/create-user.dto.js +3 -3
- package/dist/user/update-user.dto.d.ts +2 -2
- package/dist/user/update-user.dto.js +13 -11
- package/dist/widget-openapi/widget-openapi-certificate-card.ro.d.ts +3 -3
- package/dist/widget-openapi/widget-openapi-certificate.ro.d.ts +2 -1
- package/dist/widget-openapi/widget-openapi-create-certificate.dto.d.ts +10 -7
- package/dist/widget-openapi/widget-openapi-create-certificate.dto.js +69 -36
- package/dist/widget-openapi/widget-openapi-create-order.dto.d.ts +1 -0
- package/dist/widget-openapi/widget-openapi-create-order.dto.js +4 -0
- package/dist/widget-openapi/widget-openapi-order.ro.d.ts +1 -2
- package/package.json +2 -2
- package/dist/certificate/enum/certificate-type.enum.d.ts +0 -4
- package/dist/certificate/enum/certificate-type.enum.js +0 -8
|
@@ -50,19 +50,19 @@ __decorate([
|
|
|
50
50
|
], CreateUserDto.prototype, "hoursContract", void 0);
|
|
51
51
|
__decorate([
|
|
52
52
|
(0, class_validator_1.IsBoolean)(),
|
|
53
|
-
(0, class_transformer_1.Transform)(({ value }) => (value ===
|
|
53
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
54
54
|
(0, class_transformer_1.Expose)(),
|
|
55
55
|
__metadata("design:type", Boolean)
|
|
56
56
|
], CreateUserDto.prototype, "useTimer", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, class_validator_1.IsBoolean)(),
|
|
59
|
-
(0, class_transformer_1.Transform)(({ value }) => (value ===
|
|
59
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
60
60
|
(0, class_transformer_1.Expose)(),
|
|
61
61
|
__metadata("design:type", Boolean)
|
|
62
62
|
], CreateUserDto.prototype, "accessToTimerByLocationIp", void 0);
|
|
63
63
|
__decorate([
|
|
64
64
|
(0, class_validator_1.IsBoolean)(),
|
|
65
|
-
(0, class_transformer_1.Transform)(({ value }) => (value ===
|
|
65
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : true)),
|
|
66
66
|
(0, class_transformer_1.Expose)(),
|
|
67
67
|
__metadata("design:type", Boolean)
|
|
68
68
|
], CreateUserDto.prototype, "allLocations", void 0);
|
|
@@ -28,30 +28,32 @@ __decorate([
|
|
|
28
28
|
], UpdateUserDto.prototype, "roleId", void 0);
|
|
29
29
|
__decorate([
|
|
30
30
|
(0, class_validator_1.IsOptional)(),
|
|
31
|
-
(0, class_validator_1.
|
|
31
|
+
(0, class_validator_1.IsInt)(),
|
|
32
32
|
(0, class_transformer_1.Expose)(),
|
|
33
33
|
__metadata("design:type", Number)
|
|
34
34
|
], UpdateUserDto.prototype, "hoursContract", void 0);
|
|
35
35
|
__decorate([
|
|
36
|
-
(0, class_validator_1.IsOptional)(),
|
|
37
36
|
(0, class_validator_1.IsBoolean)(),
|
|
37
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
38
38
|
(0, class_transformer_1.Expose)(),
|
|
39
39
|
__metadata("design:type", Boolean)
|
|
40
|
-
], UpdateUserDto.prototype, "
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, class_validator_1.IsOptional)(),
|
|
43
|
-
(0, class_validator_1.IsArray)(),
|
|
44
|
-
(0, class_transformer_1.Expose)(),
|
|
45
|
-
__metadata("design:type", Array)
|
|
46
|
-
], UpdateUserDto.prototype, "locationIds", void 0);
|
|
40
|
+
], UpdateUserDto.prototype, "useTimer", void 0);
|
|
47
41
|
__decorate([
|
|
48
42
|
(0, class_validator_1.IsBoolean)(),
|
|
43
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : false)),
|
|
49
44
|
(0, class_transformer_1.Expose)(),
|
|
50
45
|
__metadata("design:type", Boolean)
|
|
51
|
-
], UpdateUserDto.prototype, "
|
|
46
|
+
], UpdateUserDto.prototype, "accessToTimerByLocationIp", void 0);
|
|
52
47
|
__decorate([
|
|
53
48
|
(0, class_validator_1.IsBoolean)(),
|
|
49
|
+
(0, class_transformer_1.Transform)(({ value }) => (typeof value === 'boolean' ? value : true)),
|
|
54
50
|
(0, class_transformer_1.Expose)(),
|
|
55
51
|
__metadata("design:type", Boolean)
|
|
56
|
-
], UpdateUserDto.prototype, "
|
|
52
|
+
], UpdateUserDto.prototype, "allLocations", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsArray)(),
|
|
55
|
+
(0, class_transformer_1.Transform)(({ value }) => (value && value.length ? value : [])),
|
|
56
|
+
(0, class_transformer_1.Expose)(),
|
|
57
|
+
__metadata("design:type", Array)
|
|
58
|
+
], UpdateUserDto.prototype, "locationIds", void 0);
|
|
57
59
|
exports.UpdateUserDto = UpdateUserDto;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { CertificateTypeEnum } from '../certificate/enum/certificate-type.enum';
|
|
2
1
|
export declare type WidgetOpenApiCertificateCardRO = {
|
|
3
2
|
id: number;
|
|
4
3
|
title: string;
|
|
5
4
|
photo: string;
|
|
5
|
+
pdfPhoto: string;
|
|
6
6
|
validity: number;
|
|
7
|
-
|
|
7
|
+
nominals: number[];
|
|
8
8
|
deliveryPrice: number;
|
|
9
9
|
extraPrice: number;
|
|
10
10
|
deliveryPossibility: boolean;
|
|
11
11
|
pickupPossibility: boolean;
|
|
12
|
+
emailPossibility: boolean;
|
|
12
13
|
description?: string;
|
|
13
14
|
pickupInfo: string;
|
|
14
15
|
deliveryInfo: string;
|
|
15
|
-
type: CertificateTypeEnum;
|
|
16
16
|
};
|
|
@@ -12,7 +12,8 @@ export declare type WidgetOpenapiCertificateRO = {
|
|
|
12
12
|
deliveryCity?: string;
|
|
13
13
|
deliveryPostCode?: string;
|
|
14
14
|
deliveryEmail?: string;
|
|
15
|
-
|
|
15
|
+
deliveryName?: string;
|
|
16
|
+
deliverySurname?: string;
|
|
16
17
|
deliveryMessage?: string;
|
|
17
18
|
deliveryType?: CertificatesaleDeliveryTypeEnum;
|
|
18
19
|
sendingDate?: string;
|
|
@@ -4,17 +4,20 @@ export declare class WidgetOpenapiCreateCertificateDto {
|
|
|
4
4
|
surname: string;
|
|
5
5
|
phone: string;
|
|
6
6
|
email: string;
|
|
7
|
+
address: string;
|
|
7
8
|
widgetUid: string;
|
|
8
9
|
certificateId: number;
|
|
10
|
+
nominal: number;
|
|
9
11
|
clientComment: string;
|
|
10
|
-
|
|
12
|
+
sameRecipient: boolean;
|
|
13
|
+
sendAfterPayment: boolean;
|
|
14
|
+
deliveryType: CertificatesaleDeliveryTypeEnum;
|
|
11
15
|
deliveryEmail: string;
|
|
16
|
+
deliveryName: string;
|
|
17
|
+
deliverySurname: string;
|
|
18
|
+
deliveryPhone: string;
|
|
19
|
+
deliveryAddress: string;
|
|
20
|
+
deliveryMessage: string;
|
|
12
21
|
sendingDate: string;
|
|
13
22
|
sendingTime: string;
|
|
14
|
-
deliveryMessage: string;
|
|
15
|
-
deliveryFullname: string;
|
|
16
|
-
deliveryPhone: string;
|
|
17
|
-
deliveryCity: string;
|
|
18
|
-
deliveryPostCode: string;
|
|
19
|
-
deliveryType: CertificatesaleDeliveryTypeEnum;
|
|
20
23
|
}
|
|
@@ -10,88 +10,121 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.WidgetOpenapiCreateCertificateDto = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
13
14
|
const class_validator_1 = require("class-validator");
|
|
14
15
|
const certificatesales_delivery_type_enum_1 = require("../certificate-sale/enum/certificatesales-delivery-type.enum");
|
|
16
|
+
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
15
17
|
class WidgetOpenapiCreateCertificateDto {
|
|
16
18
|
}
|
|
17
19
|
__decorate([
|
|
18
|
-
(0,
|
|
20
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
19
22
|
__metadata("design:type", String)
|
|
20
23
|
], WidgetOpenapiCreateCertificateDto.prototype, "name", void 0);
|
|
21
24
|
__decorate([
|
|
22
|
-
(0,
|
|
25
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
23
27
|
__metadata("design:type", String)
|
|
24
28
|
], WidgetOpenapiCreateCertificateDto.prototype, "surname", void 0);
|
|
25
29
|
__decorate([
|
|
26
|
-
(0,
|
|
30
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
27
32
|
__metadata("design:type", String)
|
|
28
33
|
], WidgetOpenapiCreateCertificateDto.prototype, "phone", void 0);
|
|
29
34
|
__decorate([
|
|
30
|
-
(0,
|
|
35
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
31
37
|
__metadata("design:type", String)
|
|
32
38
|
], WidgetOpenapiCreateCertificateDto.prototype, "email", void 0);
|
|
33
39
|
__decorate([
|
|
34
|
-
(0,
|
|
40
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
41
|
+
(0, class_transformer_1.Expose)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], WidgetOpenapiCreateCertificateDto.prototype, "address", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
35
47
|
__metadata("design:type", String)
|
|
36
48
|
], WidgetOpenapiCreateCertificateDto.prototype, "widgetUid", void 0);
|
|
37
49
|
__decorate([
|
|
38
|
-
(0, class_validator_1.
|
|
50
|
+
(0, class_validator_1.IsPositive)(),
|
|
51
|
+
(0, class_transformer_1.Expose)(),
|
|
39
52
|
__metadata("design:type", Number)
|
|
40
53
|
], WidgetOpenapiCreateCertificateDto.prototype, "certificateId", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
56
|
+
(0, class_transformer_1.Expose)(),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], WidgetOpenapiCreateCertificateDto.prototype, "nominal", void 0);
|
|
41
59
|
__decorate([
|
|
42
60
|
(0, class_validator_1.IsString)(),
|
|
43
61
|
(0, class_validator_1.IsOptional)(),
|
|
44
62
|
(0, class_validator_1.MaxLength)(600),
|
|
63
|
+
(0, class_transformer_1.Expose)(),
|
|
45
64
|
__metadata("design:type", String)
|
|
46
65
|
], WidgetOpenapiCreateCertificateDto.prototype, "clientComment", void 0);
|
|
47
66
|
__decorate([
|
|
48
|
-
(0, class_validator_1.
|
|
49
|
-
(0,
|
|
50
|
-
|
|
51
|
-
|
|
67
|
+
(0, class_validator_1.IsBoolean)(),
|
|
68
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? false : value)),
|
|
69
|
+
(0, class_transformer_1.Expose)(),
|
|
70
|
+
__metadata("design:type", Boolean)
|
|
71
|
+
], WidgetOpenapiCreateCertificateDto.prototype, "sameRecipient", void 0);
|
|
52
72
|
__decorate([
|
|
53
|
-
(0, class_validator_1.
|
|
54
|
-
(0,
|
|
55
|
-
|
|
56
|
-
|
|
73
|
+
(0, class_validator_1.IsBoolean)(),
|
|
74
|
+
(0, class_transformer_1.Transform)(({ value }) => (value === undefined ? true : value)),
|
|
75
|
+
(0, class_transformer_1.Expose)(),
|
|
76
|
+
__metadata("design:type", Boolean)
|
|
77
|
+
], WidgetOpenapiCreateCertificateDto.prototype, "sendAfterPayment", void 0);
|
|
57
78
|
__decorate([
|
|
58
|
-
(0, class_validator_1.
|
|
59
|
-
(0,
|
|
79
|
+
(0, class_validator_1.IsEnum)(certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum),
|
|
80
|
+
(0, class_transformer_1.Expose)(),
|
|
60
81
|
__metadata("design:type", String)
|
|
61
|
-
], WidgetOpenapiCreateCertificateDto.prototype, "
|
|
82
|
+
], WidgetOpenapiCreateCertificateDto.prototype, "deliveryType", void 0);
|
|
62
83
|
__decorate([
|
|
63
|
-
(0, class_validator_1.
|
|
64
|
-
(0, class_validator_1.
|
|
84
|
+
(0, class_validator_1.IsEmail)(),
|
|
85
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
86
|
+
(0, class_transformer_1.Expose)(),
|
|
65
87
|
__metadata("design:type", String)
|
|
66
|
-
], WidgetOpenapiCreateCertificateDto.prototype, "
|
|
88
|
+
], WidgetOpenapiCreateCertificateDto.prototype, "deliveryEmail", void 0);
|
|
67
89
|
__decorate([
|
|
68
|
-
(0,
|
|
69
|
-
(0, class_validator_1.
|
|
90
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
91
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
92
|
+
(0, class_transformer_1.Expose)(),
|
|
70
93
|
__metadata("design:type", String)
|
|
71
|
-
], WidgetOpenapiCreateCertificateDto.prototype, "
|
|
94
|
+
], WidgetOpenapiCreateCertificateDto.prototype, "deliveryName", void 0);
|
|
72
95
|
__decorate([
|
|
73
|
-
(0,
|
|
74
|
-
(0, class_validator_1.
|
|
96
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
97
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
98
|
+
(0, class_transformer_1.Expose)(),
|
|
75
99
|
__metadata("design:type", String)
|
|
76
|
-
], WidgetOpenapiCreateCertificateDto.prototype, "
|
|
100
|
+
], WidgetOpenapiCreateCertificateDto.prototype, "deliverySurname", void 0);
|
|
77
101
|
__decorate([
|
|
78
|
-
(0, class_validator_1.
|
|
79
|
-
(0,
|
|
102
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
103
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
104
|
+
(0, class_transformer_1.Expose)(),
|
|
80
105
|
__metadata("design:type", String)
|
|
81
106
|
], WidgetOpenapiCreateCertificateDto.prototype, "deliveryPhone", void 0);
|
|
82
107
|
__decorate([
|
|
83
|
-
(0,
|
|
84
|
-
(0, class_validator_1.
|
|
108
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
109
|
+
(0, class_validator_1.ValidateIf)((row) => row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.POST),
|
|
110
|
+
(0, class_transformer_1.Expose)(),
|
|
85
111
|
__metadata("design:type", String)
|
|
86
|
-
], WidgetOpenapiCreateCertificateDto.prototype, "
|
|
112
|
+
], WidgetOpenapiCreateCertificateDto.prototype, "deliveryAddress", void 0);
|
|
87
113
|
__decorate([
|
|
88
|
-
(0, class_validator_1.IsString)(),
|
|
89
114
|
(0, class_validator_1.IsOptional)(),
|
|
115
|
+
(0, class_transformer_1.Expose)(),
|
|
90
116
|
__metadata("design:type", String)
|
|
91
|
-
], WidgetOpenapiCreateCertificateDto.prototype, "
|
|
117
|
+
], WidgetOpenapiCreateCertificateDto.prototype, "deliveryMessage", void 0);
|
|
92
118
|
__decorate([
|
|
93
|
-
(0,
|
|
94
|
-
(0, class_validator_1.
|
|
119
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
120
|
+
(0, class_validator_1.ValidateIf)((row) => !row.sendAfterPayment && row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
121
|
+
(0, class_transformer_1.Expose)(),
|
|
95
122
|
__metadata("design:type", String)
|
|
96
|
-
], WidgetOpenapiCreateCertificateDto.prototype, "
|
|
123
|
+
], WidgetOpenapiCreateCertificateDto.prototype, "sendingDate", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
126
|
+
(0, class_validator_1.ValidateIf)((row) => !row.sendAfterPayment && row.deliveryType === certificatesales_delivery_type_enum_1.CertificatesaleDeliveryTypeEnum.EMAIL),
|
|
127
|
+
(0, class_transformer_1.Expose)(),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], WidgetOpenapiCreateCertificateDto.prototype, "sendingTime", void 0);
|
|
97
130
|
exports.WidgetOpenapiCreateCertificateDto = WidgetOpenapiCreateCertificateDto;
|
|
@@ -31,6 +31,10 @@ __decorate([
|
|
|
31
31
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
32
32
|
__metadata("design:type", String)
|
|
33
33
|
], WidgetOpenapiCreateOrderDto.prototype, "phone", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], WidgetOpenapiCreateOrderDto.prototype, "address", void 0);
|
|
34
38
|
__decorate([
|
|
35
39
|
(0, class_validator_1.IsNumber)(),
|
|
36
40
|
__metadata("design:type", Number)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/types",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.38",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"class-transformer": "^0.5.1",
|
|
21
21
|
"class-validator": "^0.13.1"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "d75580da1dcea4876eda67d8a714d1596db9d2dc",
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@types/validator": "13.0.0",
|
|
26
26
|
"alphakit-presets-lint": "^1.0.0",
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CertificateTypeEnum = void 0;
|
|
4
|
-
var CertificateTypeEnum;
|
|
5
|
-
(function (CertificateTypeEnum) {
|
|
6
|
-
CertificateTypeEnum["VIRTUAL"] = "virtual";
|
|
7
|
-
CertificateTypeEnum["PHYSICAL"] = "physical";
|
|
8
|
-
})(CertificateTypeEnum = exports.CertificateTypeEnum || (exports.CertificateTypeEnum = {}));
|