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

19 lines 697 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SmsMessageBatch = void 0; const abstract_message_batch_1 = require("./abstract-message-batch"); /** * Implementation of SMS batch. */ class SmsMessageBatch extends abstract_message_batch_1.AbstractMessageBatch { constructor(name, from, texts, columnMapper) { super(name, 'sms', null, columnMapper); this.message = { from, contents: [], }; (typeof texts === 'string' ? [texts] : texts).forEach(text => this.message.contents.push({ type: 'text', text })); } } exports.SmsMessageBatch = SmsMessageBatch; //# sourceMappingURL=sms-message-batch.js.map