plivo-node/types/base.d.ts
2021-01-06 15:57:51 +05:30

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>;
}