@flusys/nestjs-task-manager 5.3.0
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/README.md +245 -0
- package/cjs/config/index.js +19 -0
- package/cjs/config/message-keys.js +92 -0
- package/cjs/config/task-manager.constants.js +11 -0
- package/cjs/controllers/index.js +22 -0
- package/cjs/controllers/task-board.controller.js +219 -0
- package/cjs/controllers/task-comment.controller.js +103 -0
- package/cjs/controllers/task-label.controller.js +112 -0
- package/cjs/controllers/task-list.controller.js +158 -0
- package/cjs/controllers/task.controller.js +199 -0
- package/cjs/docs/index.js +18 -0
- package/cjs/docs/task-manager-swagger.config.js +43 -0
- package/cjs/dtos/index.js +22 -0
- package/cjs/dtos/task-board.dto.js +310 -0
- package/cjs/dtos/task-comment.dto.js +131 -0
- package/cjs/dtos/task-label.dto.js +120 -0
- package/cjs/dtos/task-list.dto.js +198 -0
- package/cjs/dtos/task.dto.js +367 -0
- package/cjs/entities/index.js +72 -0
- package/cjs/entities/task-activity.entity.js +98 -0
- package/cjs/entities/task-assignee.entity.js +67 -0
- package/cjs/entities/task-board-member.entity.js +94 -0
- package/cjs/entities/task-board-with-company.entity.js +57 -0
- package/cjs/entities/task-board.entity.js +88 -0
- package/cjs/entities/task-comment.entity.js +80 -0
- package/cjs/entities/task-label.entity.js +72 -0
- package/cjs/entities/task-list.entity.js +104 -0
- package/cjs/entities/task-task-label.entity.js +67 -0
- package/cjs/entities/task.entity.js +151 -0
- package/cjs/gateways/index.js +18 -0
- package/cjs/gateways/task-board.gateway.js +199 -0
- package/cjs/index.js +26 -0
- package/cjs/interfaces/index.js +19 -0
- package/cjs/interfaces/task-manager-module.interface.js +4 -0
- package/cjs/interfaces/task.interface.js +4 -0
- package/cjs/modules/index.js +18 -0
- package/cjs/modules/task-manager.module.js +131 -0
- package/cjs/services/index.js +25 -0
- package/cjs/services/task-activity.service.js +76 -0
- package/cjs/services/task-board.service.js +235 -0
- package/cjs/services/task-comment.service.js +103 -0
- package/cjs/services/task-label.service.js +97 -0
- package/cjs/services/task-list.service.js +115 -0
- package/cjs/services/task-manager-config.service.js +69 -0
- package/cjs/services/task-manager-datasource.provider.js +84 -0
- package/cjs/services/task.service.js +359 -0
- package/config/index.d.ts +2 -0
- package/config/message-keys.d.ts +65 -0
- package/config/task-manager.constants.d.ts +1 -0
- package/controllers/index.d.ts +5 -0
- package/controllers/task-board.controller.d.ts +27 -0
- package/controllers/task-comment.controller.d.ts +22 -0
- package/controllers/task-label.controller.d.ts +22 -0
- package/controllers/task-list.controller.d.ts +26 -0
- package/controllers/task.controller.d.ts +28 -0
- package/docs/index.d.ts +1 -0
- package/docs/task-manager-swagger.config.d.ts +2 -0
- package/dtos/index.d.ts +5 -0
- package/dtos/task-board.dto.d.ts +44 -0
- package/dtos/task-comment.dto.d.ts +16 -0
- package/dtos/task-label.dto.d.ts +16 -0
- package/dtos/task-list.dto.d.ts +26 -0
- package/dtos/task.dto.d.ts +48 -0
- package/entities/index.d.ts +22 -0
- package/entities/task-activity.entity.d.ts +9 -0
- package/entities/task-assignee.entity.d.ts +5 -0
- package/entities/task-board-member.entity.d.ts +12 -0
- package/entities/task-board-with-company.entity.d.ts +4 -0
- package/entities/task-board.entity.d.ts +8 -0
- package/entities/task-comment.entity.d.ts +7 -0
- package/entities/task-label.entity.d.ts +6 -0
- package/entities/task-list.entity.d.ts +9 -0
- package/entities/task-task-label.entity.d.ts +5 -0
- package/entities/task.entity.d.ts +23 -0
- package/fesm/config/index.js +2 -0
- package/fesm/config/message-keys.js +65 -0
- package/fesm/config/task-manager.constants.js +1 -0
- package/fesm/controllers/index.js +5 -0
- package/fesm/controllers/task-board.controller.js +209 -0
- package/fesm/controllers/task-comment.controller.js +93 -0
- package/fesm/controllers/task-label.controller.js +102 -0
- package/fesm/controllers/task-list.controller.js +148 -0
- package/fesm/controllers/task.controller.js +189 -0
- package/fesm/docs/index.js +1 -0
- package/fesm/docs/task-manager-swagger.config.js +33 -0
- package/fesm/dtos/index.js +5 -0
- package/fesm/dtos/task-board.dto.js +277 -0
- package/fesm/dtos/task-comment.dto.js +110 -0
- package/fesm/dtos/task-label.dto.js +99 -0
- package/fesm/dtos/task-list.dto.js +174 -0
- package/fesm/dtos/task.dto.js +337 -0
- package/fesm/entities/index.js +46 -0
- package/fesm/entities/task-activity.entity.js +88 -0
- package/fesm/entities/task-assignee.entity.js +57 -0
- package/fesm/entities/task-board-member.entity.js +76 -0
- package/fesm/entities/task-board-with-company.entity.js +47 -0
- package/fesm/entities/task-board.entity.js +78 -0
- package/fesm/entities/task-comment.entity.js +70 -0
- package/fesm/entities/task-label.entity.js +62 -0
- package/fesm/entities/task-list.entity.js +94 -0
- package/fesm/entities/task-task-label.entity.js +57 -0
- package/fesm/entities/task.entity.js +133 -0
- package/fesm/gateways/index.js +1 -0
- package/fesm/gateways/task-board.gateway.js +148 -0
- package/fesm/index.js +9 -0
- package/fesm/interfaces/index.js +2 -0
- package/fesm/interfaces/task-manager-module.interface.js +1 -0
- package/fesm/interfaces/task.interface.js +1 -0
- package/fesm/modules/index.js +1 -0
- package/fesm/modules/task-manager.module.js +121 -0
- package/fesm/services/index.js +8 -0
- package/fesm/services/task-activity.service.js +66 -0
- package/fesm/services/task-board.service.js +225 -0
- package/fesm/services/task-comment.service.js +93 -0
- package/fesm/services/task-label.service.js +87 -0
- package/fesm/services/task-list.service.js +105 -0
- package/fesm/services/task-manager-config.service.js +59 -0
- package/fesm/services/task-manager-datasource.provider.js +74 -0
- package/fesm/services/task.service.js +349 -0
- package/gateways/index.d.ts +1 -0
- package/gateways/task-board.gateway.d.ts +22 -0
- package/index.d.ts +9 -0
- package/interfaces/index.d.ts +2 -0
- package/interfaces/task-manager-module.interface.d.ts +19 -0
- package/interfaces/task.interface.d.ts +52 -0
- package/modules/index.d.ts +1 -0
- package/modules/task-manager.module.d.ts +8 -0
- package/package.json +91 -0
- package/services/index.d.ts +8 -0
- package/services/task-activity.service.d.ts +8 -0
- package/services/task-board.service.d.ts +32 -0
- package/services/task-comment.service.d.ts +18 -0
- package/services/task-label.service.d.ts +18 -0
- package/services/task-list.service.d.ts +19 -0
- package/services/task-manager-config.service.d.ts +12 -0
- package/services/task-manager-datasource.provider.d.ts +18 -0
- package/services/task.service.d.ts +44 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CreateTaskLabelDto, TaskLabelResponseDto, UpdateTaskLabelDto } from '../dtos';
|
|
2
|
+
import { TaskLabelService } from '../services/task-label.service';
|
|
3
|
+
declare const TaskLabelController_base: abstract new (service: TaskLabelService) => {
|
|
4
|
+
readonly enabledEndpoints: import("@flusys/nestjs-shared").ApiEndpoint[] | "all";
|
|
5
|
+
service: TaskLabelService;
|
|
6
|
+
isEnabled(endpoint: import("@flusys/nestjs-shared").ApiEndpoint): boolean;
|
|
7
|
+
insert(addDto: CreateTaskLabelDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").SingleResponseDto<TaskLabelResponseDto>>;
|
|
8
|
+
insertMany(addDto: CreateTaskLabelDto[], user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<TaskLabelResponseDto>>;
|
|
9
|
+
getById(id: string, body: import("@flusys/nestjs-shared").GetByIdBodyDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").SingleResponseDto<TaskLabelResponseDto>>;
|
|
10
|
+
getByIds(body: import("@flusys/nestjs-shared").GetByIdsDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").ListResponseDto<TaskLabelResponseDto>>;
|
|
11
|
+
update(updateDto: UpdateTaskLabelDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").SingleResponseDto<TaskLabelResponseDto>>;
|
|
12
|
+
updateMany(updateDtos: UpdateTaskLabelDto[], user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<TaskLabelResponseDto>>;
|
|
13
|
+
bulkUpsert(dtos: (CreateTaskLabelDto | UpdateTaskLabelDto)[], user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<TaskLabelResponseDto>>;
|
|
14
|
+
getByFilter(filter: Record<string, any>, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").SingleResponseDto<TaskLabelResponseDto>>;
|
|
15
|
+
getAll(filterAndPaginationDto: import("@flusys/nestjs-shared").FilterAndPaginationDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null, search?: string): Promise<import("@flusys/nestjs-shared").ListResponseDto<TaskLabelResponseDto>>;
|
|
16
|
+
delete(deleteDto: import("@flusys/nestjs-shared").DeleteDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").MessageResponseDto>;
|
|
17
|
+
};
|
|
18
|
+
export declare class TaskLabelController extends TaskLabelController_base {
|
|
19
|
+
protected labelService: TaskLabelService;
|
|
20
|
+
constructor(labelService: TaskLabelService);
|
|
21
|
+
}
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { MessageResponseDto } from '@flusys/nestjs-shared/dtos';
|
|
2
|
+
import { CreateTaskListDto, ReorderTaskListsDto, TaskListResponseDto, UpdateTaskListDto } from '../dtos';
|
|
3
|
+
import { TaskBoardGateway } from '../gateways/task-board.gateway';
|
|
4
|
+
import { TaskListService } from '../services/task-list.service';
|
|
5
|
+
declare const TaskListController_base: abstract new (service: TaskListService) => {
|
|
6
|
+
readonly enabledEndpoints: import("@flusys/nestjs-shared").ApiEndpoint[] | "all";
|
|
7
|
+
service: TaskListService;
|
|
8
|
+
isEnabled(endpoint: import("@flusys/nestjs-shared").ApiEndpoint): boolean;
|
|
9
|
+
insert(addDto: CreateTaskListDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").SingleResponseDto<TaskListResponseDto>>;
|
|
10
|
+
insertMany(addDto: CreateTaskListDto[], user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<TaskListResponseDto>>;
|
|
11
|
+
getById(id: string, body: import("@flusys/nestjs-shared").GetByIdBodyDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").SingleResponseDto<TaskListResponseDto>>;
|
|
12
|
+
getByIds(body: import("@flusys/nestjs-shared").GetByIdsDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").ListResponseDto<TaskListResponseDto>>;
|
|
13
|
+
update(updateDto: UpdateTaskListDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").SingleResponseDto<TaskListResponseDto>>;
|
|
14
|
+
updateMany(updateDtos: UpdateTaskListDto[], user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<TaskListResponseDto>>;
|
|
15
|
+
bulkUpsert(dtos: (CreateTaskListDto | UpdateTaskListDto)[], user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<TaskListResponseDto>>;
|
|
16
|
+
getByFilter(filter: Record<string, any>, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").SingleResponseDto<TaskListResponseDto>>;
|
|
17
|
+
getAll(filterAndPaginationDto: import("@flusys/nestjs-shared").FilterAndPaginationDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null, search?: string): Promise<import("@flusys/nestjs-shared").ListResponseDto<TaskListResponseDto>>;
|
|
18
|
+
delete(deleteDto: import("@flusys/nestjs-shared").DeleteDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<MessageResponseDto>;
|
|
19
|
+
};
|
|
20
|
+
export declare class TaskListController extends TaskListController_base {
|
|
21
|
+
protected listService: TaskListService;
|
|
22
|
+
private readonly gateway?;
|
|
23
|
+
constructor(listService: TaskListService, gateway?: TaskBoardGateway | undefined);
|
|
24
|
+
reorder(dto: ReorderTaskListsDto): Promise<MessageResponseDto>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { SingleResponseDto } from '@flusys/nestjs-shared/dtos';
|
|
2
|
+
import { ILoggedUserInfo } from '@flusys/nestjs-shared/interfaces';
|
|
3
|
+
import { AssignTaskDto, CreateTaskDto, MoveTaskDto, TaskResponseDto, UpdateTaskDto } from '../dtos';
|
|
4
|
+
import { TaskBoardGateway } from '../gateways/task-board.gateway';
|
|
5
|
+
import { TaskService } from '../services/task.service';
|
|
6
|
+
declare const TaskController_base: abstract new (service: TaskService) => {
|
|
7
|
+
readonly enabledEndpoints: import("@flusys/nestjs-shared").ApiEndpoint[] | "all";
|
|
8
|
+
service: TaskService;
|
|
9
|
+
isEnabled(endpoint: import("@flusys/nestjs-shared").ApiEndpoint): boolean;
|
|
10
|
+
insert(addDto: CreateTaskDto, user: ILoggedUserInfo | null): Promise<SingleResponseDto<TaskResponseDto>>;
|
|
11
|
+
insertMany(addDto: CreateTaskDto[], user: ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<TaskResponseDto>>;
|
|
12
|
+
getById(id: string, body: import("@flusys/nestjs-shared").GetByIdBodyDto, user: ILoggedUserInfo | null): Promise<SingleResponseDto<TaskResponseDto>>;
|
|
13
|
+
getByIds(body: import("@flusys/nestjs-shared").GetByIdsDto, user: ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").ListResponseDto<TaskResponseDto>>;
|
|
14
|
+
update(updateDto: UpdateTaskDto, user: ILoggedUserInfo | null): Promise<SingleResponseDto<TaskResponseDto>>;
|
|
15
|
+
updateMany(updateDtos: UpdateTaskDto[], user: ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<TaskResponseDto>>;
|
|
16
|
+
bulkUpsert(dtos: (CreateTaskDto | UpdateTaskDto)[], user: ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<TaskResponseDto>>;
|
|
17
|
+
getByFilter(filter: Record<string, any>, user: ILoggedUserInfo | null): Promise<SingleResponseDto<TaskResponseDto>>;
|
|
18
|
+
getAll(filterAndPaginationDto: import("@flusys/nestjs-shared").FilterAndPaginationDto, user: ILoggedUserInfo | null, search?: string): Promise<import("@flusys/nestjs-shared").ListResponseDto<TaskResponseDto>>;
|
|
19
|
+
delete(deleteDto: import("@flusys/nestjs-shared").DeleteDto, user: ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").MessageResponseDto>;
|
|
20
|
+
};
|
|
21
|
+
export declare class TaskController extends TaskController_base {
|
|
22
|
+
protected taskService: TaskService;
|
|
23
|
+
private readonly gateway?;
|
|
24
|
+
constructor(taskService: TaskService, gateway?: TaskBoardGateway | undefined);
|
|
25
|
+
moveTask(dto: MoveTaskDto, user: ILoggedUserInfo): Promise<SingleResponseDto<TaskResponseDto>>;
|
|
26
|
+
assignTask(dto: AssignTaskDto, user: ILoggedUserInfo): Promise<SingleResponseDto<TaskResponseDto>>;
|
|
27
|
+
}
|
|
28
|
+
export {};
|
package/docs/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './task-manager-swagger.config';
|
package/dtos/index.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { IdentityResponseDto } from '@flusys/nestjs-shared/dtos';
|
|
2
|
+
import { BoardMemberRole } from '../entities/task-board-member.entity';
|
|
3
|
+
export declare class CreateTaskBoardDto {
|
|
4
|
+
name: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
memberIds?: string[];
|
|
8
|
+
}
|
|
9
|
+
declare const UpdateTaskBoardDto_base: import("@nestjs/common").Type<Partial<CreateTaskBoardDto>>;
|
|
10
|
+
export declare class UpdateTaskBoardDto extends UpdateTaskBoardDto_base {
|
|
11
|
+
id: string;
|
|
12
|
+
isActive?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare class AddBoardMemberDto {
|
|
15
|
+
boardId: string;
|
|
16
|
+
userId: string;
|
|
17
|
+
role?: BoardMemberRole;
|
|
18
|
+
}
|
|
19
|
+
export declare class RemoveBoardMemberDto {
|
|
20
|
+
boardId: string;
|
|
21
|
+
userId: string;
|
|
22
|
+
}
|
|
23
|
+
export declare class GetBoardMembersDto {
|
|
24
|
+
boardId: string;
|
|
25
|
+
}
|
|
26
|
+
export declare class TaskBoardResponseDto extends IdentityResponseDto {
|
|
27
|
+
name: string;
|
|
28
|
+
description: string | null;
|
|
29
|
+
color: string;
|
|
30
|
+
isActive: boolean;
|
|
31
|
+
settings: Record<string, unknown> | null;
|
|
32
|
+
companyId?: string | null;
|
|
33
|
+
totalMembers?: number;
|
|
34
|
+
totalLists?: number;
|
|
35
|
+
totalTasks?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare class TaskBoardMemberResponseDto extends IdentityResponseDto {
|
|
38
|
+
boardId: string;
|
|
39
|
+
userId: string;
|
|
40
|
+
role: BoardMemberRole;
|
|
41
|
+
userName: string | null;
|
|
42
|
+
userEmail: string | null;
|
|
43
|
+
}
|
|
44
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IdentityResponseDto } from '@flusys/nestjs-shared/dtos';
|
|
2
|
+
export declare class CreateTaskCommentDto {
|
|
3
|
+
taskId: string;
|
|
4
|
+
content: string;
|
|
5
|
+
parentCommentId?: string | null;
|
|
6
|
+
}
|
|
7
|
+
export declare class UpdateTaskCommentDto {
|
|
8
|
+
id: string;
|
|
9
|
+
content: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class TaskCommentResponseDto extends IdentityResponseDto {
|
|
12
|
+
taskId: string;
|
|
13
|
+
userId: string;
|
|
14
|
+
content: string;
|
|
15
|
+
parentCommentId: string | null;
|
|
16
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IdentityResponseDto } from '@flusys/nestjs-shared/dtos';
|
|
2
|
+
export declare class CreateTaskLabelDto {
|
|
3
|
+
boardId: string;
|
|
4
|
+
name: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
}
|
|
7
|
+
declare const UpdateTaskLabelDto_base: import("@nestjs/common").Type<Partial<CreateTaskLabelDto>>;
|
|
8
|
+
export declare class UpdateTaskLabelDto extends UpdateTaskLabelDto_base {
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
export declare class TaskLabelResponseDto extends IdentityResponseDto {
|
|
12
|
+
boardId: string;
|
|
13
|
+
name: string;
|
|
14
|
+
color: string;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IdentityResponseDto } from '@flusys/nestjs-shared/dtos';
|
|
2
|
+
export declare class CreateTaskListDto {
|
|
3
|
+
boardId: string;
|
|
4
|
+
name: string;
|
|
5
|
+
color?: string;
|
|
6
|
+
position?: number;
|
|
7
|
+
isDoneList?: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare const UpdateTaskListDto_base: import("@nestjs/common").Type<Partial<CreateTaskListDto>>;
|
|
10
|
+
export declare class UpdateTaskListDto extends UpdateTaskListDto_base {
|
|
11
|
+
id: string;
|
|
12
|
+
isActive?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare class ReorderTaskListsDto {
|
|
15
|
+
boardId: string;
|
|
16
|
+
orderedIds: string[];
|
|
17
|
+
}
|
|
18
|
+
export declare class TaskListResponseDto extends IdentityResponseDto {
|
|
19
|
+
boardId: string;
|
|
20
|
+
name: string;
|
|
21
|
+
color: string;
|
|
22
|
+
position: number;
|
|
23
|
+
isActive: boolean;
|
|
24
|
+
isDoneList: boolean;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { IdentityResponseDto } from '@flusys/nestjs-shared/dtos';
|
|
2
|
+
import { TaskPriority } from '../entities/task.entity';
|
|
3
|
+
import { TaskLabelResponseDto } from './task-label.dto';
|
|
4
|
+
export declare class CreateTaskDto {
|
|
5
|
+
boardId: string;
|
|
6
|
+
listId: string;
|
|
7
|
+
title: string;
|
|
8
|
+
description?: string;
|
|
9
|
+
priority?: TaskPriority;
|
|
10
|
+
dueDate?: string | null;
|
|
11
|
+
assigneeIds?: string[];
|
|
12
|
+
parentTaskId?: string | null;
|
|
13
|
+
estimatedHours?: number | null;
|
|
14
|
+
labelIds?: string[];
|
|
15
|
+
}
|
|
16
|
+
declare const UpdateTaskDto_base: import("@nestjs/common").Type<Partial<CreateTaskDto>>;
|
|
17
|
+
export declare class UpdateTaskDto extends UpdateTaskDto_base {
|
|
18
|
+
id: string;
|
|
19
|
+
}
|
|
20
|
+
export declare class MoveTaskDto {
|
|
21
|
+
taskId: string;
|
|
22
|
+
targetListId: string;
|
|
23
|
+
position?: number;
|
|
24
|
+
}
|
|
25
|
+
export declare class AssignTaskDto {
|
|
26
|
+
taskId: string;
|
|
27
|
+
assigneeIds: string[];
|
|
28
|
+
}
|
|
29
|
+
export declare class TaskAssigneeResponseDto {
|
|
30
|
+
userId: string;
|
|
31
|
+
userName: string | null;
|
|
32
|
+
}
|
|
33
|
+
export declare class TaskResponseDto extends IdentityResponseDto {
|
|
34
|
+
boardId: string;
|
|
35
|
+
listId: string;
|
|
36
|
+
title: string;
|
|
37
|
+
description: string | null;
|
|
38
|
+
priority: TaskPriority;
|
|
39
|
+
dueDate: string | null;
|
|
40
|
+
position: number;
|
|
41
|
+
assignees?: TaskAssigneeResponseDto[];
|
|
42
|
+
reporterId: string | null;
|
|
43
|
+
parentTaskId: string | null;
|
|
44
|
+
estimatedHours: number | null;
|
|
45
|
+
labelIds?: string[];
|
|
46
|
+
labels?: TaskLabelResponseDto[];
|
|
47
|
+
}
|
|
48
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export * from './task-board.entity';
|
|
2
|
+
export * from './task-board-with-company.entity';
|
|
3
|
+
export * from './task-board-member.entity';
|
|
4
|
+
export * from './task-list.entity';
|
|
5
|
+
export * from './task.entity';
|
|
6
|
+
export * from './task-label.entity';
|
|
7
|
+
export * from './task-task-label.entity';
|
|
8
|
+
export * from './task-assignee.entity';
|
|
9
|
+
export * from './task-comment.entity';
|
|
10
|
+
export * from './task-activity.entity';
|
|
11
|
+
import { TaskBoard } from './task-board.entity';
|
|
12
|
+
import { TaskBoardWithCompany } from './task-board-with-company.entity';
|
|
13
|
+
import { TaskBoardMember } from './task-board-member.entity';
|
|
14
|
+
import { Task } from './task.entity';
|
|
15
|
+
import { TaskLabel } from './task-label.entity';
|
|
16
|
+
import { TaskTaskLabel } from './task-task-label.entity';
|
|
17
|
+
import { TaskAssignee } from './task-assignee.entity';
|
|
18
|
+
import { TaskActivity } from './task-activity.entity';
|
|
19
|
+
export declare const TaskManagerCoreEntities: (typeof TaskBoardMember | typeof Task | typeof TaskBoard | typeof TaskLabel | typeof TaskTaskLabel | typeof TaskAssignee | typeof TaskActivity)[];
|
|
20
|
+
export declare const TaskManagerCompanyEntities: (typeof TaskBoardMember | typeof Task | typeof TaskBoardWithCompany | typeof TaskLabel | typeof TaskTaskLabel | typeof TaskAssignee | typeof TaskActivity)[];
|
|
21
|
+
export declare function getTaskManagerEntitiesByConfig(enableCompanyFeature: boolean): any[];
|
|
22
|
+
export { TaskBoard as TaskBoardBase } from './task-board.entity';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Identity } from '@flusys/nestjs-shared/entities';
|
|
2
|
+
export declare class TaskActivity extends Identity {
|
|
3
|
+
taskId: string;
|
|
4
|
+
userId: string | null;
|
|
5
|
+
boardId: string;
|
|
6
|
+
action: string;
|
|
7
|
+
oldValue: Record<string, unknown> | null;
|
|
8
|
+
newValue: Record<string, unknown> | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Identity } from '@flusys/nestjs-shared/entities';
|
|
2
|
+
export declare enum BoardMemberRole {
|
|
3
|
+
OWNER = "OWNER",
|
|
4
|
+
ADMIN = "ADMIN",
|
|
5
|
+
MEMBER = "MEMBER",
|
|
6
|
+
VIEWER = "VIEWER"
|
|
7
|
+
}
|
|
8
|
+
export declare class TaskBoardMember extends Identity {
|
|
9
|
+
boardId: string;
|
|
10
|
+
userId: string;
|
|
11
|
+
role: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Identity } from '@flusys/nestjs-shared/entities';
|
|
2
|
+
export declare enum TaskPriority {
|
|
3
|
+
LOW = "LOW",
|
|
4
|
+
MEDIUM = "MEDIUM",
|
|
5
|
+
HIGH = "HIGH",
|
|
6
|
+
URGENT = "URGENT"
|
|
7
|
+
}
|
|
8
|
+
export declare class Task extends Identity {
|
|
9
|
+
boardId: string;
|
|
10
|
+
listId: string;
|
|
11
|
+
title: string;
|
|
12
|
+
description: string | null;
|
|
13
|
+
priority: TaskPriority;
|
|
14
|
+
dueDate: string | null;
|
|
15
|
+
position: number;
|
|
16
|
+
reporterId: string | null;
|
|
17
|
+
parentTaskId: string | null;
|
|
18
|
+
estimatedHours: number | null;
|
|
19
|
+
assignees: {
|
|
20
|
+
userId: string;
|
|
21
|
+
userName: string | null;
|
|
22
|
+
}[];
|
|
23
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
export const TASK_BOARD_MESSAGES = {
|
|
2
|
+
NOT_FOUND: 'task.board.not.found',
|
|
3
|
+
CREATE_SUCCESS: 'task.board.create.success',
|
|
4
|
+
CREATE_MANY_SUCCESS: 'task.board.create.many.success',
|
|
5
|
+
GET_SUCCESS: 'task.board.get.success',
|
|
6
|
+
GET_ALL_SUCCESS: 'task.board.get.all.success',
|
|
7
|
+
UPDATE_SUCCESS: 'task.board.update.success',
|
|
8
|
+
UPDATE_MANY_SUCCESS: 'task.board.update.many.success',
|
|
9
|
+
DELETE_SUCCESS: 'task.board.delete.success',
|
|
10
|
+
RESTORE_SUCCESS: 'task.board.restore.success',
|
|
11
|
+
MEMBER_ADDED: 'task.board.member.added',
|
|
12
|
+
MEMBER_REMOVED: 'task.board.member.removed',
|
|
13
|
+
MEMBER_NOT_FOUND: 'task.board.member.not.found',
|
|
14
|
+
MEMBER_ALREADY_EXISTS: 'task.board.member.already.exists',
|
|
15
|
+
MEMBER_GET_ALL_SUCCESS: 'task.board.member.get.all.success'
|
|
16
|
+
};
|
|
17
|
+
export const TASK_LIST_MESSAGES = {
|
|
18
|
+
NOT_FOUND: 'task.list.not.found',
|
|
19
|
+
CREATE_SUCCESS: 'task.list.create.success',
|
|
20
|
+
CREATE_MANY_SUCCESS: 'task.list.create.many.success',
|
|
21
|
+
GET_SUCCESS: 'task.list.get.success',
|
|
22
|
+
GET_ALL_SUCCESS: 'task.list.get.all.success',
|
|
23
|
+
UPDATE_SUCCESS: 'task.list.update.success',
|
|
24
|
+
UPDATE_MANY_SUCCESS: 'task.list.update.many.success',
|
|
25
|
+
DELETE_SUCCESS: 'task.list.delete.success',
|
|
26
|
+
RESTORE_SUCCESS: 'task.list.restore.success',
|
|
27
|
+
REORDER_SUCCESS: 'task.list.reorder.success'
|
|
28
|
+
};
|
|
29
|
+
export const TASK_MESSAGES = {
|
|
30
|
+
NOT_FOUND: 'task.not.found',
|
|
31
|
+
CREATE_SUCCESS: 'task.create.success',
|
|
32
|
+
CREATE_MANY_SUCCESS: 'task.create.many.success',
|
|
33
|
+
GET_SUCCESS: 'task.get.success',
|
|
34
|
+
GET_ALL_SUCCESS: 'task.get.all.success',
|
|
35
|
+
UPDATE_SUCCESS: 'task.update.success',
|
|
36
|
+
UPDATE_MANY_SUCCESS: 'task.update.many.success',
|
|
37
|
+
DELETE_SUCCESS: 'task.delete.success',
|
|
38
|
+
RESTORE_SUCCESS: 'task.restore.success',
|
|
39
|
+
MOVE_SUCCESS: 'task.move.success',
|
|
40
|
+
ASSIGN_SUCCESS: 'task.assign.success',
|
|
41
|
+
ASSIGNEE_NOT_BOARD_MEMBER: 'task.assignee.not.board.member'
|
|
42
|
+
};
|
|
43
|
+
export const TASK_LABEL_MESSAGES = {
|
|
44
|
+
NOT_FOUND: 'task.label.not.found',
|
|
45
|
+
CREATE_SUCCESS: 'task.label.create.success',
|
|
46
|
+
CREATE_MANY_SUCCESS: 'task.label.create.many.success',
|
|
47
|
+
GET_SUCCESS: 'task.label.get.success',
|
|
48
|
+
GET_ALL_SUCCESS: 'task.label.get.all.success',
|
|
49
|
+
UPDATE_SUCCESS: 'task.label.update.success',
|
|
50
|
+
UPDATE_MANY_SUCCESS: 'task.label.update.many.success',
|
|
51
|
+
DELETE_SUCCESS: 'task.label.delete.success',
|
|
52
|
+
RESTORE_SUCCESS: 'task.label.restore.success'
|
|
53
|
+
};
|
|
54
|
+
export const TASK_COMMENT_MESSAGES = {
|
|
55
|
+
NOT_FOUND: 'task.comment.not.found',
|
|
56
|
+
CREATE_SUCCESS: 'task.comment.create.success',
|
|
57
|
+
CREATE_MANY_SUCCESS: 'task.comment.create.many.success',
|
|
58
|
+
GET_SUCCESS: 'task.comment.get.success',
|
|
59
|
+
GET_ALL_SUCCESS: 'task.comment.get.all.success',
|
|
60
|
+
UPDATE_SUCCESS: 'task.comment.update.success',
|
|
61
|
+
UPDATE_MANY_SUCCESS: 'task.comment.update.many.success',
|
|
62
|
+
DELETE_SUCCESS: 'task.comment.delete.success',
|
|
63
|
+
RESTORE_SUCCESS: 'task.comment.restore.success',
|
|
64
|
+
FORBIDDEN: 'task.comment.forbidden'
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const TASK_MANAGER_MODULE_OPTIONS = 'TASK_MANAGER_MODULE_OPTIONS';
|