@nomalism-com/types 0.29.35 → 0.29.36
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as IShared from "../../../shared/interface";
|
|
2
|
-
import { Task, TaskMessage, DocumentHeader } from "../../../shared/entities";
|
|
2
|
+
import { Task, TaskMessage, DocumentHeader, File } from "../../../shared/entities";
|
|
3
3
|
export type Entity = Task;
|
|
4
4
|
export declare const Route = "task";
|
|
5
5
|
export declare const UpperName = "Task";
|
|
@@ -48,10 +48,14 @@ export interface ITaskHistoryResponse {
|
|
|
48
48
|
export type IFindResponse = Omit<Entity, "history"> & {
|
|
49
49
|
task_read: boolean;
|
|
50
50
|
};
|
|
51
|
+
export type ITaskFileType = Pick<File, "multimedia_id" | "filename" | "created_at" | "created_by"> & {
|
|
52
|
+
id?: string;
|
|
53
|
+
};
|
|
51
54
|
export interface IFindWithMessagesResponse extends Entity {
|
|
52
55
|
messages: TaskMessage[];
|
|
53
56
|
document_headers: Pick<DocumentHeader, "id" | "document_number">[];
|
|
54
57
|
task_read: boolean;
|
|
58
|
+
task_files: ITaskFileType[];
|
|
55
59
|
}
|
|
56
60
|
export type IFindTasksRequest = {
|
|
57
61
|
archived?: boolean;
|