@fiado/type-kit 2.1.18 → 2.1.19

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.
@@ -7,4 +7,6 @@ export declare class GroupAddDirectoryRequest {
7
7
  relationType: RelationType;
8
8
  status: RelationStatus;
9
9
  action: GroupAction;
10
+ parentGroupId?: string;
11
+ groupPath: string;
10
12
  }
@@ -46,3 +46,13 @@ __decorate([
46
46
  (0, class_validator_1.IsEnum)(GroupAction_1.GroupAction),
47
47
  __metadata("design:type", String)
48
48
  ], GroupAddDirectoryRequest.prototype, "action", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsString)(),
51
+ (0, class_validator_1.Length)(0, 100),
52
+ __metadata("design:type", String)
53
+ ], GroupAddDirectoryRequest.prototype, "parentGroupId", void 0);
54
+ __decorate([
55
+ (0, class_validator_1.IsString)(),
56
+ (0, class_validator_1.Length)(0, 100),
57
+ __metadata("design:type", String)
58
+ ], GroupAddDirectoryRequest.prototype, "groupPath", void 0);
@@ -12,4 +12,6 @@ export declare class GroupCreateRequest {
12
12
  leaderNames?: string | null;
13
13
  phoneNumber?: string | null;
14
14
  category?: string | null;
15
+ parentGroupId?: string;
16
+ groupPath: string;
15
17
  }
@@ -81,3 +81,15 @@ __decorate([
81
81
  (0, class_transformer_1.Transform)(({ value }) => value ?? null),
82
82
  __metadata("design:type", String)
83
83
  ], GroupCreateRequest.prototype, "category", void 0);
84
+ __decorate([
85
+ (0, class_validator_1.IsOptional)(),
86
+ (0, class_validator_1.IsString)(),
87
+ (0, class_validator_1.Length)(0, 100),
88
+ (0, class_transformer_1.Transform)(({ value }) => value ?? "ROOT"),
89
+ __metadata("design:type", String)
90
+ ], GroupCreateRequest.prototype, "parentGroupId", void 0);
91
+ __decorate([
92
+ (0, class_validator_1.IsString)(),
93
+ (0, class_validator_1.Length)(0, 100),
94
+ __metadata("design:type", String)
95
+ ], GroupCreateRequest.prototype, "groupPath", void 0);
@@ -13,4 +13,6 @@ export declare class GroupDirectoryRelationsResponse {
13
13
  phoneNumber: string;
14
14
  operationId: string;
15
15
  indexName: string;
16
+ parentGroupId: string;
17
+ groupPath: string;
16
18
  }
@@ -14,4 +14,6 @@ export declare class GroupResponse {
14
14
  category: string;
15
15
  imageUrl?: string | null;
16
16
  imageUrlSigned?: string | null;
17
+ parentGroupId: string;
18
+ groupPath: string;
17
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "2.1.18",
3
+ "version": "2.1.19",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -24,4 +24,14 @@ export class GroupAddDirectoryRequest {
24
24
  @IsEnum(GroupAction)
25
25
  action: GroupAction;
26
26
 
27
+ @IsString()
28
+ @Length(0, 100)
29
+ parentGroupId?: string;
30
+
31
+ @IsString()
32
+ @Length(0, 100)
33
+ groupPath: string;
34
+
35
+
36
+
27
37
  }
@@ -55,4 +55,14 @@ export class GroupCreateRequest {
55
55
  @Length(0, 100)
56
56
  @Transform(({value}) => value ?? null)
57
57
  category?: string | null;
58
+
59
+ @IsOptional()
60
+ @IsString()
61
+ @Length(0, 100)
62
+ @Transform(({value}) => value ?? "ROOT")
63
+ parentGroupId?: string;
64
+
65
+ @IsString()
66
+ @Length(0, 100)
67
+ groupPath: string;
58
68
  }
@@ -17,5 +17,7 @@ export class GroupDirectoryRelationsResponse {
17
17
  phoneNumber: string
18
18
  operationId: string
19
19
  indexName: string
20
+ parentGroupId: string
21
+ groupPath: string
20
22
 
21
23
  }
@@ -16,6 +16,8 @@ export class GroupResponse {
16
16
  category: string
17
17
  imageUrl?: string | null
18
18
  imageUrlSigned?: string | null
19
+ parentGroupId: string
20
+ groupPath: string
19
21
  }
20
22
 
21
23