@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.
@@ -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 === undefined ? false : 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 === undefined ? false : 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 === undefined ? false : 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);
@@ -2,8 +2,8 @@ export declare class UpdateUserDto {
2
2
  access?: boolean;
3
3
  roleId: number;
4
4
  hoursContract?: number;
5
- allLocations: boolean;
6
- locationIds: number[];
7
5
  useTimer: boolean;
8
6
  accessToTimerByLocationIp: boolean;
7
+ allLocations: boolean;
8
+ locationIds: number[];
9
9
  }
@@ -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.IsNumber)(),
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, "allLocations", void 0);
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, "useTimer", void 0);
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, "accessToTimerByLocationIp", void 0);
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
- nominal: number;
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
  };
@@ -6,6 +6,7 @@ export declare class WidgetOpenapiCreateCertificateDto {
6
6
  email: string;
7
7
  widgetUid: string;
8
8
  certificateId: number;
9
+ nominal: number;
9
10
  clientComment: string;
10
11
  deliveryAddress: string;
11
12
  deliveryEmail: string;
@@ -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.36",
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": "a1a8084c926cdebc84c284930e3688bbb184a3a7",
23
+ "gitHead": "daf67867a92e2af14627df30d83235879c537802",
24
24
  "devDependencies": {
25
25
  "@types/validator": "13.0.0",
26
26
  "alphakit-presets-lint": "^1.0.0",
@@ -1,4 +0,0 @@
1
- export declare enum CertificateTypeEnum {
2
- VIRTUAL = "virtual",
3
- PHYSICAL = "physical"
4
- }
@@ -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 = {}));