@nomalism-com/types 0.30.19 → 0.30.20

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,24 @@
1
+ export declare const Route = "chat_rapid_message";
2
+ export declare const UpperName = "ChatRapidMessage";
3
+ export declare const LowerName: string;
4
+ import { ChatRapidMessage } from "../../../shared/entities";
5
+ import * as IShared from "../../../shared/interface";
6
+ export type Entity = ChatRapidMessage;
7
+ export interface ICreateRequest {
8
+ title: string;
9
+ text: string;
10
+ }
11
+ export interface IUpdateRequest {
12
+ title: string;
13
+ text: string;
14
+ }
15
+ export interface IFindMinifiedResponse {
16
+ title: string;
17
+ }
18
+ export interface IRepository {
19
+ create(data: ICreateRequest): Promise<Entity>;
20
+ update(selector: IShared.IFindByIdRequest, data: ICreateRequest): Promise<Entity | null>;
21
+ delete(selector: IShared.IFindByIdRequest): Promise<Entity>;
22
+ findMinified(): Promise<IFindMinifiedResponse[]>;
23
+ findById(selector: IShared.IFindByIdRequest): Promise<IFindMinifiedResponse>;
24
+ }
@@ -0,0 +1,3 @@
1
+ import joi from "joi";
2
+ export declare const createBody: joi.ObjectSchema<any>;
3
+ export declare const updateBody: joi.ObjectSchema<any>;
@@ -106,3 +106,4 @@ export import EmailVerification = Integration.EmailVerification;
106
106
  export import Task = Stock.Task;
107
107
  export import TaskMessage = Stock.TaskMessage;
108
108
  export import Theme = User.Theme;
109
+ export import ChatRapidMessage = Stock.ChatRapidMessage;
@@ -962,3 +962,12 @@ export interface TaskRead {
962
962
  user_id: string;
963
963
  created_at: Date;
964
964
  }
965
+ export type ChatRapidMessage = {
966
+ id: string;
967
+ title: unknown;
968
+ text: string;
969
+ created_at: Date;
970
+ updated_at: Date;
971
+ created_by: string;
972
+ updated_by: string;
973
+ };
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "typescript",
10
10
  "helper"
11
11
  ],
12
- "version": "0.30.19",
12
+ "version": "0.30.20",
13
13
  "main": "./dist/index.min.js",
14
14
  "types": "./dist/index.d.ts",
15
15
  "files": [