UNPKG

@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/).

21 lines 749 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.MessageSubscription = void 0; const base_1 = require("./base"); /** * Implementation of message subscription. */ class MessageSubscription extends base_1.Subscription { /** * Returns a new `MessageSubscription` that is used to create a new message subscription. * * @param webhook An [[IWebhook]] object. * @param criteria An [[ICriteria]] object. * @param status Status of subscription. An [[SubscriptionStatus]] object. */ constructor(webhook, criteria, status = 'ACTIVE') { super('MESSAGE', webhook, criteria, status); } } exports.MessageSubscription = MessageSubscription; //# sourceMappingURL=message.js.map