Skip to content

Commit 93fd4f5

Browse files
v2.17.1 type fixed
1 parent 5447580 commit 93fd4f5

File tree

7 files changed

+35
-30
lines changed

7 files changed

+35
-30
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Check out our [API Reference](https://quickblox.github.io/quickblox-javascript-s
1616
## Dependencies for browser
1717

1818
```html
19-
<script src="https://unpkg.com/[email protected].0/quickblox.min.js"></script>
19+
<script src="https://unpkg.com/[email protected].1/quickblox.min.js"></script>
2020
```
2121

2222
## Bower and RequireJS

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "quickblox",
33
"description": "QuickBlox JavaScript SDK",
4-
"version": "2.17.0",
4+
"version": "2.17.1",
55
"homepage": "https://quickblox.com/developers/Javascript",
66
"main": "src/qbMain.js",
77
"types": "quickblox.d.ts",

quickblox.d.ts

Lines changed: 26 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -369,29 +369,33 @@ export declare interface QBMessageStatusParams {
369369
}
370370

371371
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
380381
}
381382

382383
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+
}
395399
}
396400

397401
export declare interface QBSystemMessage {
@@ -578,6 +582,7 @@ interface QBChatModule {
578582
/** Send is delivered status. */
579583
sendDeliveredStatus(params: QBMessageStatusParams): void
580584
ping(jidOrUserId: string | number, callback: QBCallback<any>): string
585+
ping(callback: QBCallback<any>): string
581586
pingchat(callback: QBCallback<any>): string
582587

583588
dialog: {
@@ -711,7 +716,7 @@ interface QBChatModule {
711716
* Leave group chat dialog
712717
* ([read more](https://docs.quickblox.com/docs/js-chat-dialogs#retrieve-online-users)).
713718
*/
714-
listOnlineUsers(dialogJid: string, callback: QBCallback<any>): void
719+
listOnlineUsers(dialogJid: string, callback: (userIds: Array<QBUser['id']>) => void): void
715720
}
716721

717722
roster: {

quickblox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53809,8 +53809,8 @@ module.exports = StreamManagement;
5380953809
*/
5381053810

5381153811
var config = {
53812-
version: '2.17.0',
53813-
buildNumber: '1160',
53812+
version: '2.17.1',
53813+
buildNumber: '1161',
5381453814
creds: {
5381553815
'appId': 0,
5381653816
'authKey': '',

quickblox.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/qbConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
*/
1313

1414
var config = {
15-
version: '2.17.0',
16-
buildNumber: '1160',
15+
version: '2.17.1',
16+
buildNumber: '1161',
1717
creds: {
1818
'appId': 0,
1919
'authKey': '',

0 commit comments

Comments
 (0)