@giosg/pub-sdk
Advanced tools
Comparing version 0.14.0 to 0.15.0
@@ -7,2 +7,6 @@ # Changelog | ||
## 0.15.0 | ||
- Add `deleteChannelMember` function. | ||
## 0.14.0 | ||
@@ -9,0 +13,0 @@ |
@@ -25,2 +25,3 @@ import { IRealtimeSdk } from "@giosg/realtime-sdk"; | ||
patchLastSeenAtField(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid): Promise<PubChannelMember>; | ||
deleteChannelMember(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid): Promise<void>; | ||
streamChannelNotificationSettings(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid): Observable<NotificationSettings>; | ||
@@ -27,0 +28,0 @@ patchChannelNotificationSettings(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid, payload: NotificationSettingsPayload): Promise<NotificationSettings>; |
@@ -104,2 +104,9 @@ "use strict"; | ||
} | ||
deleteChannelMember(orgId, channelId, memberId) { | ||
const apiUrl = `/api/pub/v1/orgs/${orgId}/channels/${channelId}/members/${memberId}`; | ||
return this.sdk | ||
.deleteResource(apiUrl) | ||
.take(1) | ||
.toPromise(); | ||
} | ||
// Notification settings: | ||
@@ -106,0 +113,0 @@ streamChannelNotificationSettings(orgId, channelId, memberId) { |
{ | ||
"name": "@giosg/pub-sdk", | ||
"version": "0.14.0", | ||
"version": "0.15.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
29702
377