@vonage/voice
Version:
The Voice API lets you create outbound calls, control in-progress calls and get information about historical calls.
34 lines • 1.32 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.OutboundCallWithNCCO = 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 CallWithNCCO type');
/* istanbul ignore next */
/**
* Represents an outbound call with NCCO (Nexmo Call Control Object).
*
* @deprecated This class is deprecated. Please update to use the CallWithNCCO type
*/
class OutboundCallWithNCCO extends OutboundCall_1.OutboundCall {
/**
* The list of NCCO actions.
*/
ncco;
/**
* Creates a new outbound call with NCCO.
*
* @param {Array<NCCOAction>} ncco - The NCCO actions 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(ncco, to, from) {
super(to, from);
this.ncco = ncco;
}
}
exports.OutboundCallWithNCCO = OutboundCallWithNCCO;
//# sourceMappingURL=OutboundCallWithNCCO.js.map