// This is Generated Source. import ExtensionActiveCallsResponse from "../definitions/ExtensionActiveCallsResponse"; import PathSegment from "../PathSegment"; export default class ActiveCalls extends PathSegment { constructor(prv: PathSegment, id?: string, service?) { super("active-calls", id, prv, service); } /** *

Since 1.0.13 (Release 6.5)

Returns records of all extension calls that are in progress, ordered by start time in descending order.

Required Permissions

PermissionDescription
ReadCallLogViewing user call logs

Usage Plan Group

Heavy

*/ list(query?: ListQuery): Promise { return this._send({ body: undefined, ignoreId: false, method: "get", query: query, }).then((res) => { return res.json(); }); } /** *

Since 1.0.13 (Release 6.5)

Returns records of all extension calls that are in progress, ordered by start time in descending order.

Required Permissions

PermissionDescription
ReadCallLogViewing user call logs

Usage Plan Group

Heavy

* return {ApiResponse} */ listRaw(query?: ListQuery): Promise { return this._send({ body: undefined, ignoreId: false, method: "get", query: query, }); } } export interface ListQuery { /** * The direction for the result records. It is allowed to specify more than one direction. If not specified, both inbound and outbound records are returned. Multiple values are accepted */ direction?: ("Inbound" | "Outbound")[]; /** * Call type of a record. It is allowed to specify more than one type. If not specified, all call types are returned. Multiple values are accepted */ type?: ("Voice" | "Fax")[]; /** * Indicates the page number to retrieve. Only positive number values are allowed. Default value is '1' */ page?: number; /** * Indicates the page size (number of items). If not specified, the value is '100' by default */ perPage?: number; }