@giosg/pub-sdk
Advanced tools
Comparing version 0.28.0 to 0.29.0
@@ -266,3 +266,12 @@ import { UserUid, OrganizationUid } from "@giosg/types"; | ||
} | ||
export interface ConferenceParticipant { | ||
jid: string; | ||
display_name: string; | ||
email: string; | ||
} | ||
export interface Conference { | ||
id: PubChannelUid; | ||
participants: ConferenceParticipant[]; | ||
} | ||
export {}; | ||
//# sourceMappingURL=groupchats.d.ts.map |
@@ -1,3 +0,3 @@ | ||
export { PubChannel, PubChannelMember, PubMessage, PubReportingMessage, PubReportingBody, PubUserMessage, PubCallLeaveMessage, PubSystemMessage, PubDeletedMessage, PubCallRequestMessage, DMChannelPayload, PubChannelUid, PubChannelMemberUid, PubMessageUid, NotificationSettingsUid, NotificationMode, NotificationSettings, NotificationSettingsPayload, PubCallRequestPayload, PubCallLeavePayload, PubUserMessagePayload, PubSystemMessagePayload, PubMessagePayload, ChannelPayload, TextChunk, VoiceChunk, FileChunk, ImageChunk, LinkChunk, VideoChunk, ChunkV2, ChunkV3, ExternalViewV1, PubMessageBody, PubMessageBodyV1, PubMessageBodyV2, PubMessageBodyV3, CallRequestBody, ConferenceTokenContext, ConferenceTokenResponse, } from "./groupchats"; | ||
export { PubChannel, PubChannelMember, PubMessage, PubReportingMessage, PubReportingBody, PubUserMessage, PubCallLeaveMessage, PubSystemMessage, PubDeletedMessage, PubCallRequestMessage, DMChannelPayload, PubChannelUid, PubChannelMemberUid, PubMessageUid, NotificationSettingsUid, NotificationMode, NotificationSettings, NotificationSettingsPayload, PubCallRequestPayload, PubCallLeavePayload, PubUserMessagePayload, PubSystemMessagePayload, PubMessagePayload, ChannelPayload, TextChunk, VoiceChunk, FileChunk, ImageChunk, LinkChunk, VideoChunk, ChunkV2, ChunkV3, ExternalViewV1, PubMessageBody, PubMessageBodyV1, PubMessageBodyV2, PubMessageBodyV3, CallRequestBody, ConferenceTokenContext, ConferenceTokenResponse, ConferenceParticipant, Conference, } from "./groupchats"; | ||
export { BasePubSdk } from "./sdk"; | ||
//# sourceMappingURL=index.d.ts.map |
import { IRealtimeSdk } from "@giosg/realtime-sdk"; | ||
import { Observable } from "rxjs"; | ||
import { PubChannel, DMChannelPayload, PubMessage, PubChannelMember, PubChannelUid, PubMessagePayload, ChannelPayload, PubMessageUid, NotificationSettings, NotificationSettingsPayload, ConferenceTokenResponse, ConferenceTokenContext } from "./groupchats"; | ||
import { PubChannel, DMChannelPayload, PubMessage, PubChannelMember, PubChannelUid, PubMessagePayload, ChannelPayload, PubMessageUid, NotificationSettings, NotificationSettingsPayload, ConferenceTokenResponse, ConferenceTokenContext, ConferenceParticipant, Conference } from "./groupchats"; | ||
import { OrganizationUid, UserUid } from "@giosg/types"; | ||
@@ -32,3 +32,5 @@ export declare class BasePubSdk { | ||
getConferenceToken(orgId: OrganizationUid, channelId: PubChannelUid, payload: ConferenceTokenContext): Promise<ConferenceTokenResponse>; | ||
getConferenceParticipants(orgId: OrganizationUid, channelId: PubChannelUid): Observable<Observable<ConferenceParticipant>>; | ||
getConferences(orgId: OrganizationUid, userId: UserUid): Observable<Observable<Conference>>; | ||
} | ||
//# sourceMappingURL=sdk.d.ts.map |
@@ -146,3 +146,11 @@ "use strict"; | ||
} | ||
getConferenceParticipants(orgId, channelId) { | ||
const apiUrl = `/api/pub/v1/orgs/${orgId}/channels/${channelId}/conference/participants`; | ||
return this.sdk.streamCollection(apiUrl); | ||
} | ||
getConferences(orgId, userId) { | ||
const apiUrl = `/api/pub/v1/orgs/${orgId}/users/${userId}/conferences`; | ||
return this.sdk.streamCollection(apiUrl); | ||
} | ||
} | ||
exports.BasePubSdk = BasePubSdk; |
{ | ||
"name": "@giosg/pub-sdk", | ||
"version": "0.28.0", | ||
"version": "0.29.0", | ||
"description": "TypeScript interfaces for Giosg Pub", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
38417
12
476