@giosg/pub-sdk
Advanced tools
Comparing version 0.8.1 to 0.8.2
@@ -7,2 +7,7 @@ # Changelog | ||
## 0.8.2 | ||
- Fixed `patchChannelNotificationSettings` function in sdk. | ||
- Changed field `muted` to `mode` in `NotificationSettingsPayload` and `NotificationSettings` interfaces. | ||
## 0.8.1 | ||
@@ -9,0 +14,0 @@ |
@@ -85,3 +85,3 @@ import { UserUid, OrganizationUid } from "@giosg/types"; | ||
/** Notification mode of the settings */ | ||
muted: NotificationMode; | ||
mode: NotificationMode; | ||
} | ||
@@ -160,4 +160,4 @@ export interface DMChannelPayload { | ||
/** Notification mode to be applied */ | ||
muted: NotificationMode; | ||
mode: NotificationMode; | ||
} | ||
//# sourceMappingURL=groupchats.d.ts.map |
import { IRealtimeSdk } from "@giosg/realtime-sdk"; | ||
import { Observable } from "rxjs"; | ||
import { PubChannel, DMChannelPayload, PubMessage, PubChannelMember, PubChannelUid, PubMessagePayload, ChannelPayload, PubMessageUid, NotificationSettings, NotificationSettingsUid, NotificationSettingsPayload } from "./groupchats"; | ||
import { PubChannel, DMChannelPayload, PubMessage, PubChannelMember, PubChannelUid, PubMessagePayload, ChannelPayload, PubMessageUid, NotificationSettings, NotificationSettingsPayload } from "./groupchats"; | ||
import { OrganizationUid, UserUid } from "@giosg/types"; | ||
@@ -26,4 +26,4 @@ export declare class BasePubSdk { | ||
streamChannelNotificationSettings(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid): Observable<NotificationSettings>; | ||
patchChannelNotificationSettings(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid, notificatioSettingsId: NotificationSettingsUid, payload: NotificationSettingsPayload): Promise<NotificationSettings>; | ||
patchChannelNotificationSettings(orgId: OrganizationUid, channelId: PubChannelUid, memberId: UserUid, payload: NotificationSettingsPayload): Promise<NotificationSettings>; | ||
} | ||
//# sourceMappingURL=sdk.d.ts.map |
@@ -103,7 +103,7 @@ "use strict"; | ||
} | ||
patchChannelNotificationSettings(orgId, channelId, memberId, notificatioSettingsId, payload) { | ||
const apiUrl = `/api/pub/v1/orgs/${orgId}/channels/${channelId}/members/${memberId}/notification_settings/${notificatioSettingsId}`; | ||
patchChannelNotificationSettings(orgId, channelId, memberId, payload) { | ||
const apiUrl = `/api/pub/v1/orgs/${orgId}/channels/${channelId}/members/${memberId}/notification_settings`; | ||
return this.sdk | ||
.patchResource(apiUrl, { | ||
muted: payload.muted, | ||
mode: payload.mode, | ||
}) | ||
@@ -110,0 +110,0 @@ .take(1) |
{ | ||
"name": "@giosg/pub-sdk", | ||
"version": "0.8.1", | ||
"version": "0.8.2", | ||
"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
24410