@fiado/type-kit 1.0.29 → 1.0.30

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.
@@ -3,7 +3,8 @@ export declare class GroupCreateRequest {
3
3
  id: string;
4
4
  name: string;
5
5
  description: string;
6
- leader?: string | null;
6
+ leaderEmail?: string | null;
7
+ leaderDirectoryId?: string | null;
7
8
  status: GroupStatus;
8
9
  codeToRefer: string | null;
9
10
  leaderNames?: string | null;
@@ -39,7 +39,13 @@ __decorate([
39
39
  (0, class_validator_1.IsEmail)(),
40
40
  (0, class_transformer_1.Transform)(({ value }) => value ?? null),
41
41
  __metadata("design:type", String)
42
- ], GroupCreateRequest.prototype, "leader", void 0);
42
+ ], GroupCreateRequest.prototype, "leaderEmail", void 0);
43
+ __decorate([
44
+ (0, class_validator_1.IsOptional)(),
45
+ (0, class_validator_1.IsUUID)(),
46
+ (0, class_transformer_1.Transform)(({ value }) => value ?? null),
47
+ __metadata("design:type", String)
48
+ ], GroupCreateRequest.prototype, "leaderDirectoryId", void 0);
43
49
  __decorate([
44
50
  (0, class_validator_1.IsEnum)(GroupStatus_1.GroupStatus),
45
51
  __metadata("design:type", String)
@@ -4,8 +4,9 @@ export declare class GroupResponse {
4
4
  name: string;
5
5
  description: string;
6
6
  status: GroupStatus;
7
- leadger: string | null;
8
7
  leaderNames: string | null;
9
8
  phoneNumber: string | null;
9
+ leaderEmail: string | null;
10
+ leaderDirectoryId: string | null;
10
11
  codesToRefer: string;
11
12
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { IsEmail, IsEnum, IsNotEmpty, IsOptional, IsString, Length } from "class-validator";
1
+ import { IsEmail, IsEnum, IsNotEmpty, IsOptional, IsString, IsUUID, Length } from "class-validator";
2
2
  import { Transform } from "class-transformer";
3
3
  import { GroupStatus } from "../enums/GroupStatus";
4
4
 
@@ -21,7 +21,12 @@ export class GroupCreateRequest {
21
21
  @IsOptional()
22
22
  @IsEmail()
23
23
  @Transform(({ value }) => value ?? null)
24
- leader?: string | null;
24
+ leaderEmail?: string | null;
25
+
26
+ @IsOptional()
27
+ @IsUUID()
28
+ @Transform(({ value }) => value ?? null)
29
+ leaderDirectoryId?: string | null;
25
30
 
26
31
  @IsEnum(GroupStatus)
27
32
  status: GroupStatus;
@@ -7,9 +7,10 @@ export class GroupResponse {
7
7
  name: string
8
8
  description: string
9
9
  status: GroupStatus
10
- leadger: string | null
11
10
  leaderNames: string | null
12
11
  phoneNumber: string | null
12
+ leaderEmail: string | null
13
+ leaderDirectoryId: string | null
13
14
  codesToRefer: string
14
15
  }
15
16