|
|
|
@ -53,22 +53,23 @@ export interface ITaskWithExecutorPreviewResponse extends ITaskPreviewResponse {
@@ -53,22 +53,23 @@ export interface ITaskWithExecutorPreviewResponse extends ITaskPreviewResponse {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export interface IFetchMyTasksResponse |
|
|
|
|
extends IPaginationResult<ITaskPreviewResponse> { } |
|
|
|
|
extends IPaginationResult<ITaskPreviewResponse> {} |
|
|
|
|
|
|
|
|
|
export interface IFetchUserTasksResponse |
|
|
|
|
extends IPaginationResult<ITaskPreviewResponse> { } |
|
|
|
|
extends IPaginationResult<ITaskPreviewResponse> {} |
|
|
|
|
|
|
|
|
|
export interface IFetchGroupTasksResponse |
|
|
|
|
extends IPaginationResult<ITaskWithExecutorPreviewResponse> { } |
|
|
|
|
extends IPaginationResult<ITaskWithExecutorPreviewResponse> {} |
|
|
|
|
|
|
|
|
|
export interface IFetchTasksResponse |
|
|
|
|
extends IPaginationResult<ITaskPreviewResponse> { } |
|
|
|
|
extends IPaginationResult<ITaskPreviewResponse> {} |
|
|
|
|
|
|
|
|
|
export interface IUserInTask { |
|
|
|
|
userId: number |
|
|
|
|
firstName: string |
|
|
|
|
lastName: string |
|
|
|
|
position?: string |
|
|
|
|
factoryName?: string |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export interface IExecutorInTask extends IUserInTask { |
|
|
|
@ -105,12 +106,13 @@ export interface IFetchTaskDetailsResponse {
@@ -105,12 +106,13 @@ export interface IFetchTaskDetailsResponse {
|
|
|
|
|
createdAt: string |
|
|
|
|
updatedAt: string |
|
|
|
|
isRead: boolean |
|
|
|
|
factoryName?: string |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export interface ITaskExecutorResponse extends ITaskExecutor { } |
|
|
|
|
export interface ITaskExecutorResponse extends ITaskExecutor {} |
|
|
|
|
|
|
|
|
|
export interface IFetchPotentialTasksExecutorsResponse |
|
|
|
|
extends IPaginationResult<ITaskExecutorResponse> { } |
|
|
|
|
extends IPaginationResult<ITaskExecutorResponse> {} |
|
|
|
|
|
|
|
|
|
export interface IUpdateTaskResponse { |
|
|
|
|
id: number |
|
|
|
@ -129,10 +131,11 @@ export interface IGetUnreadTasksCountResponse {
@@ -129,10 +131,11 @@ export interface IGetUnreadTasksCountResponse {
|
|
|
|
|
count: number |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
export interface IGetAllTasksResponseItem extends Omit<ITaskDetails, 'documents'> { |
|
|
|
|
export interface IGetAllTasksResponseItem |
|
|
|
|
extends Omit<ITaskDetails, 'documents'> { |
|
|
|
|
isFavorite: boolean |
|
|
|
|
isRead: boolean |
|
|
|
|
events: Record<string, TaskEvent>[] |
|
|
|
|
comments: IComment[] |
|
|
|
|
documents: ITaskDocument[] |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|