@nomalism-com/types 0.29.17 → 0.29.18
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.
|
@@ -36,7 +36,9 @@ export interface ITaskHistoryResponse {
|
|
|
36
36
|
changedAt: Date;
|
|
37
37
|
changedBy: string;
|
|
38
38
|
}
|
|
39
|
-
export type IFindResponse = Omit<Entity, "history"
|
|
39
|
+
export type IFindResponse = Omit<Entity, "history"> & {
|
|
40
|
+
task_read: string[];
|
|
41
|
+
};
|
|
40
42
|
export interface IFindWithMessagesResponse extends Entity {
|
|
41
43
|
messages: TaskMessage[];
|
|
42
44
|
document_headers: Pick<DocumentHeader, "id" | "document_number">[];
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import { TaskRead } from "shared/entities/stock";
|
|
3
|
+
export type Entity = TaskRead;
|
|
4
|
+
export declare const Route = "task_read";
|
|
5
|
+
export declare const UpperName = "TaskRead";
|
|
6
|
+
export declare const LowerName: string;
|
|
7
|
+
export type ICreateRequest = Pick<Entity, "user_id" | "task_id">;
|
|
8
|
+
export interface IRepository {
|
|
9
|
+
create(data: ICreateRequest): Promise<void>;
|
|
10
|
+
delete(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
11
|
+
}
|
|
12
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|