Skip to content

Commit 8794e01

Browse files
committed
1.7.0
1 parent b9e3502 commit 8794e01

File tree

6 files changed

+56
-7
lines changed

6 files changed

+56
-7
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# Change Log
22

3+
# 1.7.0 (June 4, 2021 UTC)
4+
* Added capability to query rooms.
5+
* Below interfaces are added in `SendBirdCall`
6+
* `RoomListQuery`
7+
* `RoomListQueryParams`
8+
* Below methods are added in `SendBirdCall`
9+
* `createRoomListQuery(params: RoomListQueryParams): RoomListQuery`
10+
* Added support for customized host URL
11+
* Now, you can customize API/WebSocket host URL when `init()`.
12+
* Below method is changed in `SendBirdCall`
13+
* `init(appId: string, apiHost?: string, websocketHost?: string): void`
14+
* Improved security.
15+
* Improved stability.
16+
317
### 1.6.1 (May 21, 2021 UTC)
418
* Bug fix
519
* Fixed the error and undefined behavior in recording feature.

SendBirdCall.min.d.ts

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
/** 1.6.1 */
1+
/** 1.7.0 */
22
// eslint-disable-next-line no-undef,max-classes-per-file
33
export as namespace SendBirdCall;
44

5-
export function init(appId: string): void;
5+
export function init(appId: string, apiHost?: string, websocketHost?: string): void;
66
export function authenticate(authOption: AuthOption, handler?: AuthHandler): Promise<User>;
77
export function deauthenticate(): void;
88
export function connectWebSocket(): Promise<void>;
@@ -39,6 +39,7 @@ export function getCall(callId: string): DirectCall;
3939
export function createRoom(params: RoomParams): Promise<Room>;
4040
export function getCachedRoomById(roomId: string): Room;
4141
export function fetchRoomById(roomId: string): Promise<Room>;
42+
export function createRoomListQuery(params: RoomListQueryParams): RoomListQuery;
4243
export const sdkVersion: string;
4344
export const appId: string;
4445
export const currentUser: User;
@@ -363,12 +364,30 @@ export interface User {
363364
readonly isActive: string;
364365
}
365366

367+
export interface RoomListQuery {
368+
prev(): Promise<Room[]>;
369+
next(): Promise<Room[]>;
370+
readonly isLoading: boolean;
371+
readonly hasPrev: boolean;
372+
readonly hasNext: boolean;
373+
}
374+
366375
export interface DirectCallLogListQueryParams {
367376
myRole?: DirectCallUserRole;
368377
endResults?: DirectCallEndResult[];
369378
limit?: number;
370379
}
371380

381+
export interface RoomListQueryParams {
382+
type?: RoomType | 'all'
383+
limit?: number;
384+
state?: RoomState;
385+
currentParticipantCount?: [number | undefined, number | undefined];
386+
createdByUserIds?: string[]
387+
roomIds?: string[]
388+
createdAt?: [number | undefined, number | undefined];
389+
}
390+
372391
export interface CustomItems {
373392
[key: string]: string;
374393
}
@@ -473,13 +492,29 @@ export enum RoomType {
473492
SMALL_ROOM_FOR_VIDEO = 'small_room_for_video',
474493
}
475494

495+
export enum RoomState {
496+
/**
497+
* Indicates a room is open and available for group calls.
498+
*/
499+
OPEN = 'open',
500+
/**
501+
* Indicates a room is deleted.
502+
*/
503+
DELETED = 'deleted',
504+
}
505+
476506
export declare class Room extends EventTarget<RoomEventMap> {
477507

478508
/**
479509
* The ID of room
480510
*/
481511
readonly roomId: string;
482512

513+
/**
514+
* The state of room
515+
*/
516+
readonly state: RoomState;
517+
483518
/**
484519
* Room type
485520
*/

SendBirdCall.min.js

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

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird-calls",
3-
"version": "1.6.1",
3+
"version": "1.7.0",
44
"authors": [
55
"SendBird <[email protected]>"
66
],

package-lock.json

Lines changed: 1 addition & 1 deletion
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,6 +1,6 @@
11
{
22
"name": "sendbird-calls",
3-
"version": "1.6.1",
3+
"version": "1.7.0",
44
"description": "SendBird Calls JavaScript SDK",
55
"main": "SendBirdCall.min.js",
66
"types": "SendBirdCall.min.d.ts",

0 commit comments

Comments
 (0)