@esvndev/es-react-template-chat 0.0.41 → 0.0.43

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.
@@ -1,4 +1,29 @@
1
- declare const chatApi: {
2
- getHistory: (params: any) => Promise<any>;
1
+ declare const _default: {
2
+ chatApi: {
3
+ getHistoryActive: (params: any) => Promise<any>;
4
+ getHistory: (params: any) => Promise<any>;
5
+ getMessageByGroupCursor: (id: string, params: any) => Promise<any>;
6
+ getInfo: (params: any) => Promise<any>;
7
+ groups: (params: any) => Promise<any>;
8
+ addMemberGroup: (params: any) => Promise<any>;
9
+ senMessage: (id: string, params: any, tickerDto?: any) => Promise<any>;
10
+ deleteMessage: (id: string, chatRoomId: string) => Promise<any>;
11
+ recallMessage: (id: string, chatRoomId: string) => Promise<any>;
12
+ updateGroupAvatar: (params: any) => Promise<any>;
13
+ getMessageByGroup: (params: any, paging: any) => Promise<any>;
14
+ getMessageByContact: (params: any, paging: any) => Promise<any>;
15
+ contactAdd: (params: any) => Promise<any>;
16
+ getProfile: () => Promise<any>;
17
+ getUsers: (params: any) => Promise<any>;
18
+ getContact: (params: any) => Promise<any>;
19
+ updateChatRoomMember: (params: any) => Promise<any>;
20
+ getPagingEmployeeApi: (params: any) => Promise<any>;
21
+ connectChatRoomMemberApi: (params: any) => Promise<any>;
22
+ pinMessageChatRoomApi: (params: any) => Promise<any>;
23
+ getPinMessagesByRoomApi: (chatRoomId: string) => Promise<any>;
24
+ deletePinMessageApi: (pinId: string) => Promise<any>;
25
+ updateGroupTagApi: (params: any) => Promise<any>;
26
+ createReminderApi: (params: any) => Promise<any>;
27
+ };
3
28
  };
4
- export default chatApi;
29
+ export default _default;
@@ -1,40 +1,57 @@
1
1
  declare const api: {
2
- chatApi: {
3
- getHistory: (params: any) => Promise<any>;
4
- };
5
- dynamicApi: {
6
- dynamicApi: {
7
- post: (url: string, params: any) => Promise<any>;
8
- get: (url: string, params?: any) => Promise<any>;
9
- put: (url: string, params: any) => Promise<any>;
10
- delete: (url: string, params?: any) => Promise<any>;
11
- getFormConfig: (formType: string) => Promise<any>;
12
- getOptions: (optionType: string, params?: any) => Promise<any>;
13
- getEmployees: (params?: any) => Promise<any>;
14
- getDepartments: (params?: any) => Promise<any>;
15
- getPriorityLevels: () => Promise<any>;
16
- getStatuses: (module: string) => Promise<any>;
17
- getLabels: (module: string) => Promise<any>;
18
- getCategories: (module: string) => Promise<any>;
19
- getGroupTasks: (params?: any) => Promise<any>;
20
- };
2
+ fileApi: {
3
+ uploadFile: (params: FormData, progressEvent: any) => Promise<any>;
4
+ uploadMultiFile: (params: FormData, progressEvent: any) => Promise<any>;
5
+ uploadImage: (params: FormData, progressEvent: any) => Promise<any>;
21
6
  };
22
7
  formConfigApi: {
23
- formConfigApi: {
24
- getAll: () => Promise<any>;
25
- getById: (id: string) => Promise<any>;
26
- getByType: (type: string) => Promise<any>;
27
- create: (params: import("../domain/models/FormConfig").ICreateFormConfigRequest) => Promise<any>;
28
- update: (id: string, params: import("../domain/models/FormConfig").IUpdateFormConfigRequest) => Promise<any>;
29
- delete: (id: string) => Promise<any>;
30
- };
8
+ getAll: () => Promise<any>;
9
+ getById: (id: string) => Promise<any>;
10
+ getByType: (type: string) => Promise<any>;
11
+ create: (params: import("../domain/models/FormConfig").ICreateFormConfigRequest) => Promise<any>;
12
+ update: (id: string, params: import("../domain/models/FormConfig").IUpdateFormConfigRequest) => Promise<any>;
13
+ delete: (id: string) => Promise<any>;
31
14
  };
32
- fileApi: {
33
- fileApi: {
34
- uploadFile: (params: FormData, progressEvent: any) => Promise<any>;
35
- uploadMultiFile: (params: FormData, progressEvent: any) => Promise<any>;
36
- uploadImage: (params: FormData, progressEvent: any) => Promise<any>;
37
- };
15
+ dynamicApi: {
16
+ post: (url: string, params: any) => Promise<any>;
17
+ get: (url: string, params?: any) => Promise<any>;
18
+ put: (url: string, params: any) => Promise<any>;
19
+ delete: (url: string, params?: any) => Promise<any>;
20
+ getFormConfig: (formType: string) => Promise<any>;
21
+ getOptions: (optionType: string, params?: any) => Promise<any>;
22
+ getEmployees: (params?: any) => Promise<any>;
23
+ getDepartments: (params?: any) => Promise<any>;
24
+ getPriorityLevels: () => Promise<any>;
25
+ getStatuses: (module: string) => Promise<any>;
26
+ getLabels: (module: string) => Promise<any>;
27
+ getCategories: (module: string) => Promise<any>;
28
+ getGroupTasks: (params?: any) => Promise<any>;
29
+ };
30
+ chatApi: {
31
+ getHistoryActive: (params: any) => Promise<any>;
32
+ getHistory: (params: any) => Promise<any>;
33
+ getMessageByGroupCursor: (id: string, params: any) => Promise<any>;
34
+ getInfo: (params: any) => Promise<any>;
35
+ groups: (params: any) => Promise<any>;
36
+ addMemberGroup: (params: any) => Promise<any>;
37
+ senMessage: (id: string, params: any, tickerDto?: any) => Promise<any>;
38
+ deleteMessage: (id: string, chatRoomId: string) => Promise<any>;
39
+ recallMessage: (id: string, chatRoomId: string) => Promise<any>;
40
+ updateGroupAvatar: (params: any) => Promise<any>;
41
+ getMessageByGroup: (params: any, paging: any) => Promise<any>;
42
+ getMessageByContact: (params: any, paging: any) => Promise<any>;
43
+ contactAdd: (params: any) => Promise<any>;
44
+ getProfile: () => Promise<any>;
45
+ getUsers: (params: any) => Promise<any>;
46
+ getContact: (params: any) => Promise<any>;
47
+ updateChatRoomMember: (params: any) => Promise<any>;
48
+ getPagingEmployeeApi: (params: any) => Promise<any>;
49
+ connectChatRoomMemberApi: (params: any) => Promise<any>;
50
+ pinMessageChatRoomApi: (params: any) => Promise<any>;
51
+ getPinMessagesByRoomApi: (chatRoomId: string) => Promise<any>;
52
+ deletePinMessageApi: (pinId: string) => Promise<any>;
53
+ updateGroupTagApi: (params: any) => Promise<any>;
54
+ createReminderApi: (params: any) => Promise<any>;
38
55
  };
39
56
  };
40
57
  export default api;
@@ -1,15 +1,5 @@
1
- interface IFFileState {
2
- dataUploadFile: any;
3
- status: any;
4
- }
5
- export declare const uploadFileApi: import("@reduxjs/toolkit").AsyncThunk<any, FormData, import("@reduxjs/toolkit/dist/createAsyncThunk").AsyncThunkConfig>;
6
- export declare const uploadImageApi: import("@reduxjs/toolkit").AsyncThunk<any, FormData, import("@reduxjs/toolkit/dist/createAsyncThunk").AsyncThunkConfig>;
7
- export declare const uploadMultiFileApi: import("@reduxjs/toolkit").AsyncThunk<any, FormData, import("@reduxjs/toolkit/dist/createAsyncThunk").AsyncThunkConfig>;
8
- export declare const uploadFileSlice: import("@reduxjs/toolkit").Slice<IFFileState, {
9
- handleAddUploadFile: (state: import("immer").WritableDraft<IFFileState>, action: {
10
- payload: any;
11
- type: string;
12
- }) => void;
13
- }, "uploadFile", "uploadFile", import("@reduxjs/toolkit").SliceSelectors<IFFileState>>;
14
- export declare const handleAddUploadFile: import("@reduxjs/toolkit").ActionCreatorWithPayload<any, "uploadFile/handleAddUploadFile">;
15
- export {};
1
+ export declare const uploadFileApi: any;
2
+ export declare const uploadImageApi: any;
3
+ export declare const uploadMultiFileApi: any;
4
+ export declare const uploadFileSlice: any;
5
+ export declare const handleAddUploadFile: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esvndev/es-react-template-chat",
3
- "version": "0.0.41",
3
+ "version": "0.0.43",
4
4
  "description": "This product is designed by ESVN and is only for use in products distributed by ESVN. Any product, whether for non-commercial research or commercial purposes, must have written legal approval and a digital signature from ESVN.",
5
5
  "author": "dev@esvn.com.vn",
6
6
  "license": "ESVN Limited Use License",
@@ -104,13 +104,12 @@
104
104
  "@lexical/history": "0.15.0",
105
105
  "@lexical/react": "^0.15.0",
106
106
  "@lexical/rich-text": "0.15.0",
107
- "@lexical/utils": "0.15.0",
108
- "@reduxjs/toolkit": "2.2.5"
107
+ "@lexical/utils": "0.15.0"
109
108
  },
110
109
  "peerDependencies": {
111
110
  "react": ">=16.8.6",
112
111
  "react-dom": ">=16.8.6",
113
- "@reduxjs/toolkit": "2.2.5",
112
+ "@reduxjs/toolkit": ">=1.9.0",
114
113
  "react-redux": ">=8.0.0"
115
114
  },
116
115
  "publishConfig": {