fead: add chat interfaces
All checks were successful
Publish / Publish Job (push) Successful in 2m23s
All checks were successful
Publish / Publish Job (push) Successful in 2m23s
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@lendry-erp/contracts",
|
"name": "@lendry-erp/contracts",
|
||||||
"version": "1.2.28",
|
"version": "1.2.29",
|
||||||
"description": "Protobuf definitions and generated TypeScript types",
|
"description": "Protobuf definitions and generated TypeScript types",
|
||||||
"type": "commonjs",
|
"type": "commonjs",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
11
src/events/users/chat.interface.ts
Normal file
11
src/events/users/chat.interface.ts
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
export interface ChatMessageCreateEvent {
|
||||||
|
chatId: string;
|
||||||
|
senderId: string;
|
||||||
|
type: string;
|
||||||
|
content: string;
|
||||||
|
replyToId?: string;
|
||||||
|
}
|
||||||
|
export interface ChatTypingEvent {
|
||||||
|
chatId: string;
|
||||||
|
userId: string;
|
||||||
|
}
|
||||||
@@ -1,2 +1,3 @@
|
|||||||
export * from "./audit-logs.interface";
|
export * from "./audit-logs.interface";
|
||||||
export * from "./search-users.interface";
|
export * from "./search-users.interface";
|
||||||
|
export * from "./chat.interface";
|
||||||
|
|||||||
Reference in New Issue
Block a user