UNPKG

@vonage/voice

Version:

The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.

42 lines 1.55 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.OutboundCallWithAnswerURL = void 0; const OutboundCall_1 = require("./OutboundCall"); const debug_1 = __importDefault(require("debug")); (0, debug_1.default)('@vonage/voice')('This class is deprecated. Please update to use the CallWithAnswerURL type'); /* istanbul ignore next */ /** * Represents an outbound call with an answer URL. * * @deprecated This class is deprecated. Please update to use the CallWithAnswerURL type */ class OutboundCallWithAnswerURL extends OutboundCall_1.OutboundCall { /** * The list of answer URLs. */ /* tslint:disable-next-line */ answer_url; /** * The list of answer URLs. * * @deprecated Use `answer_url` instead. */ answerUrl; /** * Creates a new outbound call with an answer URL. * * @param {string} answerUrl - The answer URL for the call. * @param {CallEndpoint} to - The call endpoint to which the outbound call will be made. * @param {PhoneEndpointObject} [from] - The phone endpoint object representing the caller's information. */ constructor(answerUrl, to, from) { super(to, from); this.answer_url = [answerUrl]; this.answerUrl = [answerUrl]; } } exports.OutboundCallWithAnswerURL = OutboundCallWithAnswerURL; //# sourceMappingURL=OutboundCallWithAnswerURL.js.map