@amityco/ts-sdk
Version:
Amity Social Cloud Typescript SDK
27 lines • 1.01 kB
TypeScript
declare class ChannelNotifications {
private readonly channelId;
constructor(channelId: string);
enable(): Promise<void>;
disable(): Promise<void>;
getSettings(): Promise<Amity.ChannelNotificationSettings>;
}
declare class UserNotifications {
enable(modules?: Amity.UserNotificationModule[]): Promise<void>;
disableAllNotifications(): Promise<void>;
getSettings(): Promise<Amity.UserNotificationSettings>;
}
declare class CommunityNotifications {
private readonly communityId;
constructor(communityId: string);
enable(events?: Amity.CommunityNotificationEvent[]): Promise<void>;
disable(): Promise<void>;
getSettings(): Promise<Amity.CommunityNotificationSettings>;
}
declare class Notifications {
user(): UserNotifications;
community(communityId: string): CommunityNotifications;
channel(channelId: string): ChannelNotifications;
}
export declare const notifications: () => Notifications;
export {};
//# sourceMappingURL=notifications.d.ts.map