quickblox 2.17.0 → 2.17.1

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.
package/README.md CHANGED
@@ -16,7 +16,7 @@ Check out our [API Reference](https://quickblox.github.io/quickblox-javascript-s
16
16
  ## Dependencies for browser
17
17
 
18
18
  ```html
19
- <script src="https://unpkg.com/quickblox@2.17.0/quickblox.min.js"></script>
19
+ <script src="https://unpkg.com/quickblox@2.17.1/quickblox.min.js"></script>
20
20
  ```
21
21
 
22
22
  ## Bower and RequireJS
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "quickblox",
3
3
  "description": "QuickBlox JavaScript SDK",
4
- "version": "2.17.0",
4
+ "version": "2.17.1",
5
5
  "homepage": "https://quickblox.com/developers/Javascript",
6
6
  "main": "src/qbMain.js",
7
7
  "types": "quickblox.d.ts",
package/quickblox.d.ts CHANGED
@@ -369,29 +369,33 @@ export declare interface QBMessageStatusParams {
369
369
  }
370
370
 
371
371
  export declare interface QBChatNewMessage {
372
- type: 'chat' | 'groupchat'
373
- body: string
374
- extension: {
375
- attachments?: ChatMessageAttachment[]
376
- save_to_history: 0 | 1
377
- dialog_id: QBChatDialog['_id']
378
- }
379
- markable: 0 | 1
372
+ type: 'chat' | 'groupchat'
373
+ body?: string
374
+ extension: {
375
+ attachments?: ChatMessageAttachment[]
376
+ save_to_history: 0 | 1
377
+ dialog_id: QBChatDialog['_id']
378
+ [custom_field_N: string]: any
379
+ }
380
+ markable: 0 | 1
380
381
  }
381
382
 
382
383
  export declare interface QBChatXMPPMessage {
383
- id: string
384
- dialog_id: QBChatDialog['_id']
385
- recipient_id: null
386
- type: 'chat' | 'groupchat'
387
- body: string
388
- delay: null
389
- markable: 0 | 1
390
- extension: {
391
- attachments?: ChatMessageAttachment[]
392
- date_sent: string
393
- [custom_field_N: string]: any
394
- }
384
+ id: string
385
+ dialog_id: QBChatDialog['_id']
386
+ recipient_id: QBUser['id'] | null
387
+ type: 'chat' | 'groupchat'
388
+ body: string | null
389
+ delay: null
390
+ markable: 0 | 1
391
+ extension: {
392
+ dialog_id: QBChatDialog['_id']
393
+ message_id: QBChatMessage['_id']
394
+ date_sent: string
395
+ save_to_history: string
396
+ attachments?: ChatMessageAttachment[]
397
+ [custom_field_N: string]: string | ChatMessageAttachment[]
398
+ }
395
399
  }
396
400
 
397
401
  export declare interface QBSystemMessage {
@@ -578,6 +582,7 @@ interface QBChatModule {
578
582
  /** Send is delivered status. */
579
583
  sendDeliveredStatus(params: QBMessageStatusParams): void
580
584
  ping(jidOrUserId: string | number, callback: QBCallback<any>): string
585
+ ping(callback: QBCallback<any>): string
581
586
  pingchat(callback: QBCallback<any>): string
582
587
 
583
588
  dialog: {
@@ -711,7 +716,7 @@ interface QBChatModule {
711
716
  * Leave group chat dialog
712
717
  * ([read more](https://docs.quickblox.com/docs/js-chat-dialogs#retrieve-online-users)).
713
718
  */
714
- listOnlineUsers(dialogJid: string, callback: QBCallback<any>): void
719
+ listOnlineUsers(dialogJid: string, callback: (userIds: Array<QBUser['id']>) => void): void
715
720
  }
716
721
 
717
722
  roster: {
package/quickblox.js CHANGED
@@ -53809,8 +53809,8 @@ module.exports = StreamManagement;
53809
53809
  */
53810
53810
 
53811
53811
  var config = {
53812
- version: '2.17.0',
53813
- buildNumber: '1160',
53812
+ version: '2.17.1',
53813
+ buildNumber: '1161',
53814
53814
  creds: {
53815
53815
  'appId': 0,
53816
53816
  'authKey': '',