mirror of
https://github.com/donl/plivo-node.git
synced 2026-05-25 22:07:10 -06:00
54 lines
No EOL
1.2 KiB
TypeScript
54 lines
No EOL
1.2 KiB
TypeScript
export class RunPHLOResponse {
|
|
constructor(params: object);
|
|
apiid: string;
|
|
phloid: string;
|
|
message: string;
|
|
}
|
|
export class RetrievePHLOResponse {
|
|
constructor(params: object);
|
|
apiid: string;
|
|
phloid: string;
|
|
name: string;
|
|
createdOn: string;
|
|
}
|
|
/**
|
|
* Represents a Phlo
|
|
* @constructor
|
|
* @param {function} client - make api call
|
|
* @param {object} [data] - data of phlo
|
|
*/
|
|
export class Phlo extends PlivoResource {
|
|
constructor(client: Function, data ? : {});
|
|
client: Function;
|
|
multiPartyCall: (nodeid: string) => PhloMultiPartyCall;
|
|
/**
|
|
* run phlo
|
|
* @method
|
|
* @promise {Boolean} return true if phlo is complete
|
|
* @fail {Error} return Error
|
|
*/
|
|
run(params: object): Promise < RunPHLOResponse > ;
|
|
[clientKey]: symbol;
|
|
}
|
|
/**
|
|
* Represents a Phlo Interface
|
|
* @constructor
|
|
* @param {function} client - make api call
|
|
* @param {object} [data] - data of call
|
|
*/
|
|
export class PhloInterface extends PlivoResourceInterface {
|
|
constructor(client: Function, data?: {});
|
|
get(id: string): Promise<RetrievePHLOResponse>;
|
|
[clientKey]: symbol;
|
|
}
|
|
import {
|
|
PlivoResource
|
|
} from "../base";
|
|
import {
|
|
PhloMultiPartyCall
|
|
} from "./phloMultipartyCall";
|
|
declare const clientKey: unique symbol;
|
|
import {
|
|
PlivoResourceInterface
|
|
} from "../base";
|
|
export {}; |