@escapenavigator/types 1.4.36 → 1.4.37
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/create-certificatesale.dto.d.ts +1 -0
- package/dist/certificate-sale/create-certificatesale.dto.js +5 -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-create-certificate.dto.d.ts +1 -0
- package/dist/widget-openapi/widget-openapi-create-certificate.dto.js +4 -0
- 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
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { ResponseObject } from '../shared/ro';
|
|
2
|
-
import { CertificateTypeEnum } from './enum/certificate-type.enum';
|
|
3
2
|
export declare type CertificateResponseObject = ResponseObject & {
|
|
4
3
|
title: string;
|
|
5
4
|
validity: number;
|
|
6
|
-
|
|
7
|
-
type: CertificateTypeEnum;
|
|
8
|
-
templatePhoto: string;
|
|
5
|
+
nominals: number[];
|
|
9
6
|
extraPrice: number;
|
|
10
7
|
pickupPossibility: boolean;
|
|
11
8
|
deliveryPossibility: boolean;
|
|
9
|
+
emailPossibility: boolean;
|
|
12
10
|
deliveryPrice: number;
|
|
13
11
|
allQuestrooms: boolean;
|
|
14
12
|
questroomsIds: number[];
|
|
15
13
|
awailableForNavigator: boolean;
|
|
16
14
|
awailableForWidgets: boolean;
|
|
15
|
+
pdfPhoto: string;
|
|
17
16
|
photo: string;
|
|
18
17
|
photos: string[];
|
|
19
18
|
description?: string;
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import { CertificateTypeEnum } from './enum/certificate-type.enum';
|
|
2
1
|
export declare class CreateCertificateDto {
|
|
3
2
|
title: string;
|
|
4
3
|
validity: number;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
templatePhoto: string;
|
|
8
|
-
extraPrice?: number;
|
|
4
|
+
nominals: number[];
|
|
5
|
+
emailPossibility: boolean;
|
|
9
6
|
pickupPossibility: boolean;
|
|
10
7
|
deliveryPossibility: boolean;
|
|
11
8
|
deliveryPrice?: number;
|
|
9
|
+
extraPrice?: number;
|
|
12
10
|
allQuestrooms: boolean;
|
|
13
11
|
questroomsIds: number[];
|
|
14
12
|
awailableForNavigator: boolean;
|
|
15
13
|
awailableForWidgets: boolean;
|
|
16
14
|
photo: string;
|
|
15
|
+
pdfPhoto: string;
|
|
17
16
|
photos: string[];
|
|
18
17
|
description?: string;
|
|
19
18
|
pickupInfo: string;
|
|
@@ -13,7 +13,6 @@ exports.CreateCertificateDto = void 0;
|
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
15
|
const is_not_blank_1 = require("../shared/is-not-blank");
|
|
16
|
-
const certificate_type_enum_1 = require("./enum/certificate-type.enum");
|
|
17
16
|
function checkBoolean({ value }, defaultValue) {
|
|
18
17
|
return value === undefined ? defaultValue || true : value;
|
|
19
18
|
}
|
|
@@ -30,37 +29,25 @@ __decorate([
|
|
|
30
29
|
__metadata("design:type", Number)
|
|
31
30
|
], CreateCertificateDto.prototype, "validity", void 0);
|
|
32
31
|
__decorate([
|
|
33
|
-
(0, class_validator_1.
|
|
34
|
-
(0,
|
|
35
|
-
|
|
36
|
-
], CreateCertificateDto.prototype, "nominal", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, class_validator_1.IsEnum)(certificate_type_enum_1.CertificateTypeEnum),
|
|
39
|
-
(0, class_transformer_1.Transform)(({ value }) => value || certificate_type_enum_1.CertificateTypeEnum.VIRTUAL),
|
|
40
|
-
(0, class_transformer_1.Expose)(),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], CreateCertificateDto.prototype, "type", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, is_not_blank_1.IsNotBlank)(),
|
|
32
|
+
(0, class_validator_1.IsArray)(),
|
|
33
|
+
(0, class_validator_1.ArrayMinSize)(1),
|
|
34
|
+
(0, class_validator_1.IsPositive)({ each: true }),
|
|
45
35
|
(0, class_transformer_1.Expose)(),
|
|
46
|
-
__metadata("design:type",
|
|
47
|
-
], CreateCertificateDto.prototype, "
|
|
36
|
+
__metadata("design:type", Array)
|
|
37
|
+
], CreateCertificateDto.prototype, "nominals", void 0);
|
|
48
38
|
__decorate([
|
|
49
|
-
(0, class_validator_1.
|
|
50
|
-
(0,
|
|
51
|
-
(0, class_validator_1.IsNumber)(),
|
|
39
|
+
(0, class_validator_1.IsBoolean)(),
|
|
40
|
+
(0, class_transformer_1.Transform)(({ value }) => checkBoolean({ value }, false)),
|
|
52
41
|
(0, class_transformer_1.Expose)(),
|
|
53
|
-
__metadata("design:type",
|
|
54
|
-
], CreateCertificateDto.prototype, "
|
|
42
|
+
__metadata("design:type", Boolean)
|
|
43
|
+
], CreateCertificateDto.prototype, "emailPossibility", void 0);
|
|
55
44
|
__decorate([
|
|
56
|
-
(0, class_validator_1.ValidateIf)((o) => o.type === certificate_type_enum_1.CertificateTypeEnum.PHYSICAL),
|
|
57
45
|
(0, class_validator_1.IsBoolean)(),
|
|
58
46
|
(0, class_transformer_1.Transform)(({ value }) => checkBoolean({ value }, false)),
|
|
59
47
|
(0, class_transformer_1.Expose)(),
|
|
60
48
|
__metadata("design:type", Boolean)
|
|
61
49
|
], CreateCertificateDto.prototype, "pickupPossibility", void 0);
|
|
62
50
|
__decorate([
|
|
63
|
-
(0, class_validator_1.ValidateIf)((o) => o.type === certificate_type_enum_1.CertificateTypeEnum.PHYSICAL),
|
|
64
51
|
(0, class_validator_1.IsBoolean)(),
|
|
65
52
|
(0, class_transformer_1.Transform)(({ value }) => checkBoolean({ value }, false)),
|
|
66
53
|
(0, class_transformer_1.Expose)(),
|
|
@@ -68,11 +55,18 @@ __decorate([
|
|
|
68
55
|
], CreateCertificateDto.prototype, "deliveryPossibility", void 0);
|
|
69
56
|
__decorate([
|
|
70
57
|
(0, class_validator_1.IsOptional)(),
|
|
71
|
-
(0,
|
|
58
|
+
(0, class_transformer_1.Transform)(({ value }) => (+value ? +value : 0)),
|
|
72
59
|
(0, class_validator_1.IsNumber)(),
|
|
73
60
|
(0, class_transformer_1.Expose)(),
|
|
74
61
|
__metadata("design:type", Number)
|
|
75
62
|
], CreateCertificateDto.prototype, "deliveryPrice", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsOptional)(),
|
|
65
|
+
(0, class_transformer_1.Transform)(({ value }) => (+value ? +value : 0)),
|
|
66
|
+
(0, class_validator_1.IsNumber)(),
|
|
67
|
+
(0, class_transformer_1.Expose)(),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], CreateCertificateDto.prototype, "extraPrice", void 0);
|
|
76
70
|
__decorate([
|
|
77
71
|
(0, class_validator_1.IsBoolean)(),
|
|
78
72
|
(0, class_transformer_1.Transform)(checkBoolean),
|
|
@@ -99,11 +93,16 @@ __decorate([
|
|
|
99
93
|
__metadata("design:type", Boolean)
|
|
100
94
|
], CreateCertificateDto.prototype, "awailableForWidgets", void 0);
|
|
101
95
|
__decorate([
|
|
102
|
-
(0, class_validator_1.ValidateIf)((o) => o.
|
|
96
|
+
(0, class_validator_1.ValidateIf)((o) => o.deliveryPossibility || o.pickupPossibility),
|
|
103
97
|
(0, is_not_blank_1.IsNotBlank)(),
|
|
104
98
|
(0, class_transformer_1.Expose)(),
|
|
105
99
|
__metadata("design:type", String)
|
|
106
100
|
], CreateCertificateDto.prototype, "photo", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, is_not_blank_1.IsNotBlank)(),
|
|
103
|
+
(0, class_transformer_1.Expose)(),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], CreateCertificateDto.prototype, "pdfPhoto", void 0);
|
|
107
106
|
__decorate([
|
|
108
107
|
(0, class_validator_1.IsArray)(),
|
|
109
108
|
(0, class_transformer_1.Transform)(({ value }) => ((value === null || value === void 0 ? void 0 : value.length) ? value : [])),
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { CertificatesaleDeliveryTypeEnum } from './enum/certificatesales-delivery-type.enum';
|
|
2
2
|
export declare class CreateCertificatesaleDto {
|
|
3
3
|
certificateId: number;
|
|
4
|
+
nominal: number;
|
|
4
5
|
clientId: number;
|
|
5
6
|
deliveryType: CertificatesaleDeliveryTypeEnum;
|
|
6
7
|
deliveryEmail: string;
|
|
@@ -21,6 +21,11 @@ __decorate([
|
|
|
21
21
|
(0, class_transformer_1.Expose)(),
|
|
22
22
|
__metadata("design:type", Number)
|
|
23
23
|
], CreateCertificatesaleDto.prototype, "certificateId", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsPositive)(),
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
__metadata("design:type", Number)
|
|
28
|
+
], CreateCertificatesaleDto.prototype, "nominal", void 0);
|
|
24
29
|
__decorate([
|
|
25
30
|
(0, class_validator_1.IsPositive)(),
|
|
26
31
|
(0, class_transformer_1.Expose)(),
|