@fiado/type-kit 1.0.34 → 1.0.36
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.
|
@@ -29,20 +29,18 @@ __decorate([
|
|
|
29
29
|
__metadata("design:type", String)
|
|
30
30
|
], GroupCreateRequest.prototype, "name", void 0);
|
|
31
31
|
__decorate([
|
|
32
|
-
(0, class_validator_1.
|
|
32
|
+
(0, class_validator_1.IsOptional)(),
|
|
33
33
|
(0, class_validator_1.IsString)(),
|
|
34
|
-
(0, class_validator_1.Length)(
|
|
34
|
+
(0, class_validator_1.Length)(0, 200),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
36
|
], GroupCreateRequest.prototype, "description", void 0);
|
|
37
37
|
__decorate([
|
|
38
38
|
(0, class_validator_1.IsOptional)(),
|
|
39
|
-
(0, class_validator_1.IsEmail)(),
|
|
40
39
|
(0, class_transformer_1.Transform)(({ value }) => value ?? null),
|
|
41
40
|
__metadata("design:type", String)
|
|
42
41
|
], GroupCreateRequest.prototype, "leaderEmail", void 0);
|
|
43
42
|
__decorate([
|
|
44
43
|
(0, class_validator_1.IsOptional)(),
|
|
45
|
-
(0, class_validator_1.IsUUID)(),
|
|
46
44
|
(0, class_transformer_1.Transform)(({ value }) => value ?? null),
|
|
47
45
|
__metadata("design:type", String)
|
|
48
46
|
], GroupCreateRequest.prototype, "leaderDirectoryId", void 0);
|
|
@@ -52,21 +50,21 @@ __decorate([
|
|
|
52
50
|
], GroupCreateRequest.prototype, "status", void 0);
|
|
53
51
|
__decorate([
|
|
54
52
|
(0, class_validator_1.IsOptional)(),
|
|
55
|
-
(0, class_validator_1.Length)(
|
|
53
|
+
(0, class_validator_1.Length)(0, 20),
|
|
56
54
|
(0, class_transformer_1.Transform)(({ value }) => value ?? null),
|
|
57
55
|
__metadata("design:type", String)
|
|
58
56
|
], GroupCreateRequest.prototype, "codeToRefer", void 0);
|
|
59
57
|
__decorate([
|
|
60
58
|
(0, class_validator_1.IsOptional)(),
|
|
61
59
|
(0, class_validator_1.IsString)(),
|
|
62
|
-
(0, class_validator_1.Length)(
|
|
60
|
+
(0, class_validator_1.Length)(0, 100),
|
|
63
61
|
(0, class_transformer_1.Transform)(({ value }) => value ?? null),
|
|
64
62
|
__metadata("design:type", String)
|
|
65
63
|
], GroupCreateRequest.prototype, "leaderNames", void 0);
|
|
66
64
|
__decorate([
|
|
67
65
|
(0, class_validator_1.IsOptional)(),
|
|
68
66
|
(0, class_validator_1.IsString)(),
|
|
69
|
-
(0, class_validator_1.Length)(
|
|
67
|
+
(0, class_validator_1.Length)(0, 15),
|
|
70
68
|
(0, class_transformer_1.Transform)(({ value }) => value ?? null),
|
|
71
69
|
__metadata("design:type", String)
|
|
72
70
|
], GroupCreateRequest.prototype, "phoneNumber", void 0);
|
package/package.json
CHANGED
|
@@ -13,18 +13,16 @@ export class GroupCreateRequest {
|
|
|
13
13
|
@Length(1, 50)
|
|
14
14
|
name: string;
|
|
15
15
|
|
|
16
|
-
@
|
|
16
|
+
@IsOptional()
|
|
17
17
|
@IsString()
|
|
18
|
-
@Length(
|
|
18
|
+
@Length(0, 200)
|
|
19
19
|
description: string;
|
|
20
20
|
|
|
21
21
|
@IsOptional()
|
|
22
|
-
@IsEmail()
|
|
23
22
|
@Transform(({ value }) => value ?? null)
|
|
24
23
|
leaderEmail?: string | null;
|
|
25
24
|
|
|
26
25
|
@IsOptional()
|
|
27
|
-
@IsUUID()
|
|
28
26
|
@Transform(({ value }) => value ?? null)
|
|
29
27
|
leaderDirectoryId?: string | null;
|
|
30
28
|
|
|
@@ -32,19 +30,19 @@ export class GroupCreateRequest {
|
|
|
32
30
|
status: GroupStatus;
|
|
33
31
|
|
|
34
32
|
@IsOptional()
|
|
35
|
-
@Length(
|
|
33
|
+
@Length(0, 20)
|
|
36
34
|
@Transform(({ value }) => value ?? null)
|
|
37
35
|
codeToRefer: string | null;
|
|
38
36
|
|
|
39
37
|
@IsOptional()
|
|
40
38
|
@IsString()
|
|
41
|
-
@Length(
|
|
39
|
+
@Length(0, 100)
|
|
42
40
|
@Transform(({ value }) => value ?? null)
|
|
43
41
|
leaderNames?: string | null;
|
|
44
42
|
|
|
45
43
|
@IsOptional()
|
|
46
44
|
@IsString()
|
|
47
|
-
@Length(
|
|
45
|
+
@Length(0, 15)
|
|
48
46
|
@Transform(({ value }) => value ?? null)
|
|
49
47
|
phoneNumber?: string | null;
|
|
50
48
|
}
|