UNPKG

xero-node

Version:

Xero NodeJS OAuth 2.0 client for xero-node

41 lines (40 loc) 1.44 kB
export * from '././plan'; export * from '././price'; export * from '././problemDetails'; export * from '././product'; export * from '././subscription'; export * from '././subscriptionItem'; import localVarRequest = require('request'); 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: localVarRequest.Options): Promise<void> | void; } export declare class HttpBasicAuth implements Authentication { username: string; password: string; applyToRequest(requestOptions: localVarRequest.Options): void; } export declare class ApiKeyAuth implements Authentication { private location; private paramName; apiKey: string; constructor(location: string, paramName: string); applyToRequest(requestOptions: localVarRequest.Options): void; } export declare class OAuth implements Authentication { accessToken: string; applyToRequest(requestOptions: localVarRequest.Options): void; } export declare class VoidAuth implements Authentication { username: string; password: string; applyToRequest(_: localVarRequest.Options): void; }