@giosg/pub-sdk
Advanced tools
Comparing version 0.18.0 to 0.19.0
@@ -26,2 +26,3 @@ import { IRealtimeSdk } from "@giosg/realtime-sdk"; | ||
deleteChannelMember(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid): Promise<void>; | ||
deleteChannel(orgId: OrganizationUid, channelId: PubChannelUid): Promise<void>; | ||
streamChannelNotificationSettings(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid): Observable<NotificationSettings>; | ||
@@ -28,0 +29,0 @@ patchChannelNotificationSettings(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid, payload: NotificationSettingsPayload): Promise<NotificationSettings>; |
@@ -111,2 +111,9 @@ "use strict"; | ||
} | ||
deleteChannel(orgId, channelId) { | ||
const apiUrl = `/api/pub/v1/orgs/${orgId}/channels/${channelId}`; | ||
return this.sdk | ||
.deleteResource(apiUrl) | ||
.take(1) | ||
.toPromise(); | ||
} | ||
// Notification settings: | ||
@@ -113,0 +120,0 @@ streamChannelNotificationSettings(orgId, channelId, memberId) { |
{ | ||
"name": "@giosg/pub-sdk", | ||
"version": "0.18.0", | ||
"version": "0.19.0", | ||
"description": "TypeScript interfaces for Giosg Pub", | ||
@@ -39,3 +39,3 @@ "main": "lib/index.js", | ||
"ts-node": "^8.5.4", | ||
"typescript": "^4.3.5" | ||
"typescript": "^4.0.3" | ||
}, | ||
@@ -42,0 +42,0 @@ "peerDependencies": { |
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
399
0
27866
11