@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
|
@@ -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
|
};
|
|
@@ -38,6 +38,10 @@ __decorate([
|
|
|
38
38
|
(0, class_validator_1.IsNumber)(),
|
|
39
39
|
__metadata("design:type", Number)
|
|
40
40
|
], WidgetOpenapiCreateCertificateDto.prototype, "certificateId", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsNumber)(),
|
|
43
|
+
__metadata("design:type", Number)
|
|
44
|
+
], WidgetOpenapiCreateCertificateDto.prototype, "nominal", void 0);
|
|
41
45
|
__decorate([
|
|
42
46
|
(0, class_validator_1.IsString)(),
|
|
43
47
|
(0, class_validator_1.IsOptional)(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@escapenavigator/types",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.37",
|
|
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": "daf67867a92e2af14627df30d83235879c537802",
|
|
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 = {}));
|