@nomalism-com/types 0.29.16 → 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>;
@@ -0,0 +1,2 @@
1
+ import joi from "joi";
2
+ export declare const createBody: joi.ObjectSchema<any>;
@@ -68,6 +68,7 @@ export type ISendEmailDocumentRequest = IShared.RequireOnlyOne<ISendEmailDocumen
68
68
  export interface IFindByTokenResponse {
69
69
  id: string;
70
70
  label: string;
71
+ clients_proposals: string[];
71
72
  emission_date: Date;
72
73
  pdf_link: string;
73
74
  document_header_notes: DocumentHeaderNote[];
@@ -953,3 +953,9 @@ export interface TaskMessage {
953
953
  created_by: string;
954
954
  updated_by: string;
955
955
  }
956
+ export interface TaskRead {
957
+ id: string;
958
+ task_id: string;
959
+ user_id: string;
960
+ created_at: Date;
961
+ }
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.29.16",
12
+ "version": "0.29.18",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [