ngx-appwrite
Version:
A wrapper around the Appwrite WebSDK for easier implementation in Angular 16+ projects. The goal is to make the whole SDK accessible as well as provide some convenience functionality like RxJS streams where appropriate.
31 lines (30 loc) • 931 B
TypeScript
import { Models } from 'appwrite';
import * as i0 from "@angular/core";
export declare class MessagingService {
private _messaging;
/**
* 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<{}>;
static ɵfac: i0.ɵɵFactoryDeclaration<MessagingService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<MessagingService>;
}