bulbul-chat
Advanced tools
Comparing version 2.9.1 to 2.9.2
{ | ||
"name": "bulbul-chat", | ||
"version": "2.9.1", | ||
"version": "2.9.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -141,2 +141,3 @@ export declare type ChatMessageType = 'plaintext' | 'image' | 'video' | 'audio' | 'document' | 'location' | 'contact' | 'file' | 'url' | 'card'; | ||
metadata?: Record<string, string>; | ||
perPage?: number; | ||
}): Promise<ChatChannel[]>; | ||
@@ -143,0 +144,0 @@ loadMessagesBeforeId(channelId: string, messageIdBefore: number, size: number): Promise<ChatMessage[]>; |
@@ -372,3 +372,3 @@ "use strict"; | ||
filters['metadata'] = JSON.stringify(filter.metadata); | ||
return [4 /*yield*/, this.executeHTTP('GET', '/api/client/chat/channels', { filter: __assign(__assign({}, filters), filter) }, {})]; | ||
return [4 /*yield*/, this.executeHTTP('GET', '/api/client/chat/channels', { filter: __assign(__assign({}, filters), filter), perPage: (filter === null || filter === void 0 ? void 0 : filter.perPage) || 100 }, {})]; | ||
case 1: | ||
@@ -375,0 +375,0 @@ channels = _a.sent(); |
@@ -46,2 +46,3 @@ import ChannelMessageStorage from './ChannelMessageStorage'; | ||
metadata?: Record<any, any>; | ||
perPage?: number; | ||
}): Promise<ChatChannel[]>; | ||
@@ -48,0 +49,0 @@ } |
{ | ||
"name": "bulbul-chat", | ||
"version": "2.9.1", | ||
"version": "2.9.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -474,2 +474,3 @@ import * as qs from 'qs'; | ||
metadata?: Record<string, string>; | ||
perPage?: number; | ||
}): Promise<ChatChannel[]> { | ||
@@ -483,3 +484,3 @@ try { | ||
'/api/client/chat/channels', | ||
{ filter: { ...filters, ...filter } }, | ||
{ filter: { ...filters, ...filter }, perPage: filter?.perPage || 100 }, | ||
{} | ||
@@ -486,0 +487,0 @@ ); |
@@ -528,2 +528,3 @@ import { diffInSeconds } from './utils'; | ||
metadata?: Record<any, any>; | ||
perPage?: number; | ||
}): Promise<ChatChannel[]> { | ||
@@ -530,0 +531,0 @@ return this.chatClient.getChannels(filter); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
252298
4583