quickblox-react-ui-kit 0.1.2 → 0.1.4

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.
@@ -40,18 +40,29 @@ export declare function QBGetDialogById(id: string): Promise<QBGetDialogResult |
40
40
  export declare function QBCreatePrivateDialog(userId: QBUser['id'], dialogName?: string, data?: Dictionary<unknown>): Promise<QBChatDialog>;
41
41
  export declare function QBCreateGroupDialog(userIds: Array<QBUser['id']>, dialogName?: string, data?: Dictionary<unknown>): Promise<QBChatDialog>;
42
42
  export declare function QBUpdateDialog(dialogId: QBChatDialog['_id'], data: Dictionary<unknown>): Promise<QBChatDialog>;
43
- export declare function QBJoinDialog(dialogId: QBChatDialog['_id']): Promise<unknown>;
43
+ export declare function QBJoinGroupDialog(dialogId: QBChatDialog['_id']): Promise<unknown>;
44
44
  export declare function QBDeleteDialog(dialogIds: Array<QBChatDialog['_id']>): Promise<void>;
45
45
  export declare function QBLeaveDialog(dialogId: QBChatDialog['_id']): Promise<unknown>;
46
46
  export declare function QBGetInfoFile(fileId: QBContentObject['id']): Promise<unknown>;
47
47
  export declare function QBDeleteContent(contentId: QBContentObject['id']): Promise<unknown>;
48
48
  export declare function QBCreateAndUploadContent(paramContent: QBContentParam): Promise<unknown>;
49
- export declare function QBChatGetMessages(dialogId: QBChatDialog['_id'], skip?: number, limit?: number): Promise<GetMessagesResult & {
50
- dialogId: QBChatDialog['_id'];
51
- }>;
49
+ export declare function qbChatGetMessagesExtended(dialogId: QBChatDialog['_id'], params?: Partial<{
50
+ skip: number;
51
+ limit: number;
52
+ sort_desc: 'date_sent' | 'created_at' | 'updated_at';
53
+ sort_asc: 'date_sent' | 'created_at' | 'updated_at';
54
+ _id: string;
55
+ date_sent: Partial<{
56
+ lt: number;
57
+ lte: number;
58
+ gt: number;
59
+ gte: number;
60
+ }>;
61
+ }>): Promise<GetMessagesResult>;
52
62
  export declare function QBSendIsTypingStatus(dialog: QBChatDialog, senderId: QBUser['id']): void;
53
63
  export declare function QBSendIsStopTypingStatus(dialog: QBChatDialog, senderId: QBUser['id']): void;
54
- export declare function QBChatSendMessage(to: string, message: QBChatNewMessage): Promise<string>;
64
+ export declare function QBChatSendMessage(to: string | number, // artan 22.06.23
65
+ message: QBChatNewMessage): Promise<string>;
55
66
  export declare function QBChatSendSystemMessage(to: QBUser['id'] | string, message: {
56
67
  extension: QBSystemMessage['extension'];
57
68
  }): Promise<string>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quickblox-react-ui-kit",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "main": "dist/index-ui.js",
5
5
  "license": "MIT",
6
6
  "keywords": [
@@ -1,6 +0,0 @@
1
- import DefaultTheme from './DefaultTheme';
2
- export default class CustomTheme extends DefaultTheme {
3
- divider: () => string;
4
- mainText: () => string;
5
- fontFamily: () => string;
6
- }