"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.notify = notify;
const authenticate_request_1 = require("./utils/authenticate-request");
const orval_newsletters_scheduler_1 = require("./orval/api/orval-newsletters-scheduler");
/**
 * Notify (schedule) subscriptions to recipients
 *
 * @param {INotifyParams} options
 * @return {Promise<ISubscription[]>}
 */
async function notify(options) {
    options.token = await (0, authenticate_request_1.authenticateRequest)(options);
    return (0, orval_newsletters_scheduler_1.notify)(options.data, options);
}
//# sourceMappingURL=subscriptions.js.map