@giosg/pub-sdk
Advanced tools
Comparing version 0.11.0 to 0.11.1
@@ -8,9 +8,9 @@ import { IRealtimeSdk } from "@giosg/realtime-sdk"; | ||
constructor(sdk: IRealtimeSdk); | ||
streamPublicChannels(orgId: OrganizationUid, ordering?: "created_at" | "-created_at" | "updated_at" | "-updated_at"): Observable<Observable<PubChannel>>; | ||
streamPublicChannels(orgId: OrganizationUid, ordering?: "created_at" | "-created_at" | "latest_message_created_at" | "-latest_message_created_at"): Observable<Observable<PubChannel>>; | ||
postPublicChannel(orgId: OrganizationUid, payload: ChannelPayload): Promise<PubChannel>; | ||
streamChannel(orgId: OrganizationUid, channelId: PubChannelUid): Observable<PubChannel>; | ||
patchChannel(orgId: OrganizationUid, channelId: PubChannelUid, payload: ChannelPayload): Promise<PubChannel>; | ||
streamJoinedChannels(orgId: OrganizationUid, userId: UserUid, ordering?: "created_at" | "-created_at" | "updated_at" | "-updated_at"): Observable<Observable<PubChannel>>; | ||
streamJoinedChannels(orgId: OrganizationUid, userId: UserUid, ordering?: "created_at" | "-created_at" | "latest_message_created_at" | "-latest_message_created_at"): Observable<Observable<PubChannel>>; | ||
streamJoinedChannel(orgId: OrganizationUid, userId: UserUid, channelId: PubChannelUid): Observable<PubChannel>; | ||
streamUserDMChannels(orgId: OrganizationUid, userId: UserUid, ordering?: "created_at" | "-created_at" | "updated_at" | "-updated_at"): Observable<Observable<PubChannel>>; | ||
streamUserDMChannels(orgId: OrganizationUid, userId: UserUid, ordering?: "created_at" | "-created_at" | "latest_message_created_at" | "-latest_message_created_at"): Observable<Observable<PubChannel>>; | ||
postDMChannel(orgId: OrganizationUid, userId: UserUid, payload: DMChannelPayload): Promise<PubChannel>; | ||
@@ -17,0 +17,0 @@ streamUserDMChannel(orgId: OrganizationUid, userId: UserUid, channelId: PubChannelUid): Observable<PubChannel>; |
@@ -11,3 +11,3 @@ "use strict"; | ||
// Channels: | ||
streamPublicChannels(orgId, ordering = "-updated_at") { | ||
streamPublicChannels(orgId, ordering = "-latest_message_created_at") { | ||
const apiUrl = `/api/pub/v1/orgs/${orgId}/channels`; | ||
@@ -31,3 +31,3 @@ return this.sdk.streamCollection(apiUrl, { ordering }); | ||
} | ||
streamJoinedChannels(orgId, userId, ordering = "-updated_at") { | ||
streamJoinedChannels(orgId, userId, ordering = "-latest_message_created_at") { | ||
const apiUrl = `/api/pub/v1/orgs/${orgId}/users/${userId}/joined-channels`; | ||
@@ -41,3 +41,3 @@ return this.sdk.streamCollection(apiUrl, { ordering }); | ||
//DM Channels: | ||
streamUserDMChannels(orgId, userId, ordering = "-updated_at") { | ||
streamUserDMChannels(orgId, userId, ordering = "-latest_message_created_at") { | ||
const apiUrl = `/api/pub/v1/orgs/${orgId}/users/${userId}/dm-channels`; | ||
@@ -44,0 +44,0 @@ return this.sdk.streamCollection(apiUrl, { ordering }); |
{ | ||
"name": "@giosg/pub-sdk", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"description": "TypeScript interfaces for Giosg Pub", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
24930
0