mirror of
https://github.com/donl/plivo-node.git
synced 2026-05-25 22:07:10 -06:00
19 lines
875 B
TypeScript
19 lines
875 B
TypeScript
export class PlivoGenericResponse {
|
|
constructor(params: object, idString: any);
|
|
id: string;
|
|
}
|
|
export class PlivoResource {
|
|
constructor(action: string, klass: any, idField: string, request: any);
|
|
update(params: object, id: string): Promise<any>;
|
|
delete(params: object): Promise<any>;
|
|
executeAction(task: string, method: string, params: {}, action: string): Promise<any>;
|
|
customexecuteAction(url: any, method?: string, params?: {}): Promise<any>;
|
|
customexecuteGetNumberAction(url: any, method?: string, params?: {}): any;
|
|
getMetaResponse(url: any, method?: string, params?: {}): Promise<any>;
|
|
}
|
|
export class PlivoResourceInterface {
|
|
constructor(action: string, klass: any, idField: string, request: any);
|
|
get(id: string, params?: {}): Promise<any>;
|
|
list(params: object): Promise<any>;
|
|
create(params: object): Promise<any>;
|
|
}
|