@nomalism-com/types 0.19.128 → 0.19.129
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.
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as IShared from "../../../shared/interface";
|
|
2
|
+
import { Chat } from "../../../shared/entities";
|
|
3
|
+
export type Entity = Chat;
|
|
4
|
+
export declare const Route = "chat";
|
|
5
|
+
export declare const UpperName = "Chat";
|
|
6
|
+
export declare const LowerName: string;
|
|
7
|
+
export interface ICreateRequest {
|
|
8
|
+
message: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IUpdateRequest {
|
|
11
|
+
message: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IRepository {
|
|
14
|
+
findByOwnerId(params: IShared.IFindByOwnerIdRequest): Promise<Chat[]>;
|
|
15
|
+
create(data: ICreateRequest): Promise<Chat>;
|
|
16
|
+
update(selector: IShared.IFindByIdRequest, data: IUpdateRequest): Promise<void>;
|
|
17
|
+
deleteOne(selector: IShared.IFindByIdRequest): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
export type IController = IShared.IEntityWithUserToken<IRepository>;
|
|
@@ -10,6 +10,7 @@ export import AttributeValue = Stock.AttributeValue;
|
|
|
10
10
|
export import BankData = User.BankData;
|
|
11
11
|
export import Clients = User.Clients;
|
|
12
12
|
export import ClientType = User.ClientType;
|
|
13
|
+
export import Chat = Stock.Chat;
|
|
13
14
|
export import Color = Stock.Color;
|
|
14
15
|
export import Commissioner = User.Commissioner;
|
|
15
16
|
export import Composition = Stock.Composition;
|
|
@@ -33,6 +33,17 @@ export type AttributeValue = {
|
|
|
33
33
|
created_by: string;
|
|
34
34
|
updated_by: string;
|
|
35
35
|
};
|
|
36
|
+
export type Chat = {
|
|
37
|
+
id: string;
|
|
38
|
+
document_header_id: string;
|
|
39
|
+
message: string;
|
|
40
|
+
email_sent: boolean;
|
|
41
|
+
whatsapp_sent: boolean;
|
|
42
|
+
created_by: string;
|
|
43
|
+
updated_by: string;
|
|
44
|
+
created_at: Date;
|
|
45
|
+
updated_at: Date;
|
|
46
|
+
};
|
|
36
47
|
export type Color = {
|
|
37
48
|
id: string;
|
|
38
49
|
primary_color_id: string;
|