xero-node
Version:
Xero NodeJS OAuth 2.0 client for xero-node
47 lines (46 loc) • 1.66 kB
TypeScript
export * from '././asset';
export * from '././assetStatus';
export * from '././assetStatusQueryParam';
export * from '././assetType';
export * from '././assets';
export * from '././bookDepreciationDetail';
export * from '././bookDepreciationSetting';
export * from '././fieldValidationErrorsElement';
export * from '././modelError';
export * from '././pagination';
export * from '././resourceValidationErrorsElement';
export * from '././setting';
import { AxiosRequestConfig } from 'axios';
export declare class ObjectSerializer {
static findCorrectType(data: any, expectedType: string): any;
static serialize(data: any, type: string): any;
static deserializeDateFormats(type: string, data: any): Date;
static deserialize(data: any, type: string): any;
}
export interface Authentication {
/**
* Apply authentication settings to header and query params.
*/
applyToRequest(requestOptions: AxiosRequestConfig): Promise<void> | void;
}
export declare class HttpBasicAuth implements Authentication {
username: string;
password: string;
applyToRequest(requestOptions: AxiosRequestConfig): void;
}
export declare class ApiKeyAuth implements Authentication {
private location;
private paramName;
apiKey: string;
constructor(location: string, paramName: string);
applyToRequest(requestOptions: AxiosRequestConfig): void;
}
export declare class OAuth implements Authentication {
accessToken: string;
applyToRequest(requestOptions: AxiosRequestConfig): void;
}
export declare class VoidAuth implements Authentication {
username: string;
password: string;
applyToRequest(_: any): void;
}