1 |
|
2 | import { UsersInOrganizationData } from "../interface/organization/users.in.organization.data";
|
3 | import { OrganizationsData } from "../interface/organization/organizations.data";
|
4 | import { ChildrenData } from "../interface/organization/children.data";
|
5 | import { OrganizationService } from "../service/organization.service";
|
6 | import { RootsData } from "../interface/organization/roots.data";
|
7 | import { Data } from "../interface/data";
|
8 | import { Request } from "express";
|
9 | export declare class OrganizationResolver {
|
10 | private readonly organizationService;
|
11 | constructor(organizationService: OrganizationService);
|
12 | roots(): Promise<RootsData>;
|
13 | children(req: Request, body: {
|
14 | id: number;
|
15 | }): Promise<ChildrenData>;
|
16 | organizations(): Promise<OrganizationsData>;
|
17 | createOrganization(req: Request, body: {
|
18 | name: string;
|
19 | parentId: number;
|
20 | }): Promise<Data>;
|
21 | updateOrganization(req: Request, body: {
|
22 | id: number;
|
23 | name: string;
|
24 | parentId: number;
|
25 | }): Promise<Data>;
|
26 | deleteOrganization(req: Request, body: {
|
27 | id: number;
|
28 | }): Promise<Data>;
|
29 | usersInOrganization(req: Request, body: {
|
30 | id: number;
|
31 | }): Promise<UsersInOrganizationData>;
|
32 | addUserToOrganization(req: Request, body: {
|
33 | id: number;
|
34 | userId: number;
|
35 | }): Promise<Data>;
|
36 | addUsersToOrganization(req: Request, body: {
|
37 | id: number;
|
38 | userIds: Array<number>;
|
39 | }): Promise<Data>;
|
40 | removeUserFromOrganization(req: Request, body: {
|
41 | id: number;
|
42 | userId: number;
|
43 | }): Promise<Data>;
|
44 | removeUsersFromOrganization(req: Request, body: {
|
45 | id: number;
|
46 | userIds: Array<number>;
|
47 | }): Promise<Data>;
|
48 | }
|