@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.
- package/bin/group/dtos/GroupCreateRequest.d.ts +2 -1
- package/bin/group/dtos/GroupCreateRequest.js +7 -1
- package/bin/group/dtos/GroupDirectoryRelationsResponse.d.ts +1 -0
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.d.ts +3 -0
- package/bin/group/dtos/GroupDirectoryRetationsUpdateRequest.js +22 -0
- package/bin/group/dtos/GroupResponse.d.ts +2 -1
- package/bin/group/index.d.ts +1 -0
- package/bin/group/index.js +1 -0
- package/package.json +1 -1
- package/src/group/dtos/GroupCreateRequest.ts +7 -2
- package/src/group/dtos/GroupDirectoryRelationsResponse.ts +1 -0
- package/src/group/dtos/GroupDirectoryRetationsUpdateRequest.ts +11 -0
- package/src/group/dtos/GroupResponse.ts +2 -1
- package/src/group/index.ts +1 -0
|
@@ -3,7 +3,8 @@ export declare class GroupCreateRequest {
|
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
6
|
-
|
|
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, "
|
|
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)
|
|
@@ -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
|
}
|
package/bin/group/index.d.ts
CHANGED
|
@@ -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';
|
package/bin/group/index.js
CHANGED
|
@@ -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,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
|
-
|
|
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
|
|
package/src/group/index.ts
CHANGED
|
@@ -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
|