mirror of
https://github.com/donl/plivo-node.git
synced 2026-06-30 06:12:08 -06:00
updated types
This commit is contained in:
parent
035c7783e5
commit
bb0dc9924f
2 changed files with 2 additions and 5 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import * as _ from "lodash";
|
||||
|
||||
import {
|
||||
PlivoGenericResponse,
|
||||
PlivoResource,
|
||||
PlivoResourceInterface
|
||||
} from '../base';
|
||||
|
|
@ -10,8 +9,6 @@ import {
|
|||
validate
|
||||
} from '../utils/common.js';
|
||||
|
||||
import { type } from "os";
|
||||
|
||||
const action = 'Message/';
|
||||
const idField = 'messageUuid';
|
||||
let actionKey = Symbol('api action');
|
||||
|
|
|
|||
4
types/base.d.ts
vendored
4
types/base.d.ts
vendored
|
|
@ -3,7 +3,7 @@ export class PlivoGenericResponse {
|
|||
id: string;
|
||||
}
|
||||
export class PlivoResource {
|
||||
constructor(action: string, klass: any, idField: string, request: any);
|
||||
constructor(action: string, Klass: Symbol, 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>;
|
||||
|
|
@ -12,7 +12,7 @@ export class PlivoResource {
|
|||
getMetaResponse(url: any, method?: string, params?: {}): Promise<any>;
|
||||
}
|
||||
export class PlivoResourceInterface {
|
||||
constructor(action: string, klass: any, idField: string, request: any);
|
||||
constructor(action: string, Klass: Symbol, idField: string, request: any);
|
||||
get(id: string, params?: {}): Promise<any>;
|
||||
list(params: object): Promise<any>;
|
||||
create(params: object): Promise<any>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue