@fiado/type-kit 1.0.29 → 1.0.31

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)
@@ -7,4 +7,5 @@ export declare class GroupDirectoryRelationsResponse {
7
7
  groupId: string;
8
8
  relationType: RelationType;
9
9
  status: RelationStatus;
10
+ agent: string;
10
11
  }
@@ -0,0 +1,3 @@
1
+ export declare class GroupDirectoryRetationsUpdateRequest {
2
+ agent: string;
3
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.GroupDirectoryRetationsUpdateRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class GroupDirectoryRetationsUpdateRequest {
15
+ }
16
+ exports.GroupDirectoryRetationsUpdateRequest = GroupDirectoryRetationsUpdateRequest;
17
+ __decorate([
18
+ (0, class_validator_1.IsOptional)(),
19
+ (0, class_validator_1.IsString)(),
20
+ (0, class_validator_1.Length)(1, 20),
21
+ __metadata("design:type", String)
22
+ ], GroupDirectoryRetationsUpdateRequest.prototype, "agent", void 0);
@@ -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
  }
@@ -3,6 +3,7 @@ export * from './dtos/GroupCreateRequest';
3
3
  export * from './dtos/GroupDirectoryRelationsResponse';
4
4
  export * from './dtos/GroupUpdateRequest';
5
5
  export * from './dtos/GroupAddDirectoryRequest';
6
+ export * from './dtos/GroupDirectoryRetationsUpdateRequest';
6
7
  export * from './enums/GroupStatus';
7
8
  export * from './enums/RelationType';
8
9
  export * from './enums/RelationStatus';
@@ -20,6 +20,7 @@ __exportStar(require("./dtos/GroupCreateRequest"), exports);
20
20
  __exportStar(require("./dtos/GroupDirectoryRelationsResponse"), exports);
21
21
  __exportStar(require("./dtos/GroupUpdateRequest"), exports);
22
22
  __exportStar(require("./dtos/GroupAddDirectoryRequest"), exports);
23
+ __exportStar(require("./dtos/GroupDirectoryRetationsUpdateRequest"), exports);
23
24
  //enums
24
25
  __exportStar(require("./enums/GroupStatus"), exports);
25
26
  __exportStar(require("./enums/RelationType"), exports);
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.31",
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;
@@ -11,4 +11,5 @@ export class GroupDirectoryRelationsResponse {
11
11
  groupId: string
12
12
  relationType: RelationType
13
13
  status: RelationStatus
14
+ agent: string
14
15
  }
@@ -0,0 +1,11 @@
1
+ import { IsOptional, IsString, Length } from "class-validator";
2
+
3
+
4
+ export class GroupDirectoryRetationsUpdateRequest {
5
+
6
+ @IsOptional()
7
+ @IsString()
8
+ @Length(1, 20)
9
+ agent: string
10
+
11
+ }
@@ -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
 
@@ -6,6 +6,7 @@ export * from './dtos/GroupCreateRequest';
6
6
  export * from './dtos/GroupDirectoryRelationsResponse';
7
7
  export * from './dtos/GroupUpdateRequest';
8
8
  export * from './dtos/GroupAddDirectoryRequest';
9
+ export * from './dtos/GroupDirectoryRetationsUpdateRequest';
9
10
 
10
11
 
11
12
  //enums