@zenvia/sdk
Version:
This SDK for [Node.js](https://nodejs.org/) was created based on the [Zenvia](https://www.zenvia.com/) [API](https://zenvia.github.io/zenvia-openapi-spec/).
20 lines (19 loc) • 767 B
TypeScript
import { ISubscription, EventType, IWebhook, ICriteria, SubscriptionStatus } from '../../types';
/**
* Implementation of base subscription.
*/
export declare abstract class Subscription implements ISubscription {
eventType: EventType;
webhook: IWebhook;
criteria: ICriteria;
status: SubscriptionStatus;
/**
* Returns a new `Subscription` that is used to create a new subscription.
*
* @param eventType Event type. An [[EventType]] object.
* @param webhook An [[IWebhook]] object.
* @param criteria An [[ICriteria]] object.
* @param status Status of subscription. An [[SubscriptionStatus]] object.
*/
constructor(eventType: EventType, webhook: IWebhook, criteria: ICriteria, status?: SubscriptionStatus);
}