UNPKG

appwrite

Version:

Appwrite is an open-source self-hosted backend server that abstract and simplify complex and repetitive development tasks behind a very simple REST API

30 lines (29 loc) 853 B
import { Service } from '../service'; import { Client } from '../client'; import type { Models } from '../models'; export declare class Messaging extends Service { constructor(client: Client); /** * Create subscriber * * Create a new subscriber. * * @param {string} topicId * @param {string} subscriberId * @param {string} targetId * @throws {AppwriteException} * @returns {Promise} */ createSubscriber(topicId: string, subscriberId: string, targetId: string): Promise<Models.Subscriber>; /** * Delete subscriber * * Delete a subscriber by its unique ID. * * @param {string} topicId * @param {string} subscriberId * @throws {AppwriteException} * @returns {Promise} */ deleteSubscriber(topicId: string, subscriberId: string): Promise<{}>; }