xero-node
Version:
Xero NodeJS OAuth 2.0 client for xero-node
124 lines (123 loc) • 4.51 kB
TypeScript
export * from '././aPIException';
export * from '././account';
export * from '././accountType';
export * from '././allowanceCategory';
export * from '././allowanceType';
export * from '././bankAccount';
export * from '././calendarType';
export * from '././countryOfResidence';
export * from '././deductionLine';
export * from '././deductionType';
export * from '././deductionTypeCalculationType';
export * from '././earningsLine';
export * from '././earningsRate';
export * from '././earningsRateCalculationType';
export * from '././earningsType';
export * from '././employee';
export * from '././employeeStatus';
export * from '././employees';
export * from '././employmentBasis';
export * from '././employmentTerminationPaymentType';
export * from '././employmentType';
export * from '././entitlementFinalPayPayoutType';
export * from '././homeAddress';
export * from '././incomeType';
export * from '././leaveAccrualLine';
export * from '././leaveApplication';
export * from '././leaveApplications';
export * from '././leaveBalance';
export * from '././leaveCategoryCode';
export * from '././leaveEarningsLine';
export * from '././leaveLine';
export * from '././leaveLineCalculationType';
export * from '././leaveLines';
export * from '././leavePeriod';
export * from '././leavePeriodStatus';
export * from '././leaveType';
export * from '././leaveTypeContributionType';
export * from '././manualTaxType';
export * from '././openingBalanceLeaveLine';
export * from '././openingBalances';
export * from '././paidLeaveEarningsLine';
export * from '././payItem';
export * from '././payItems';
export * from '././payOutType';
export * from '././payRun';
export * from '././payRunStatus';
export * from '././payRuns';
export * from '././payTemplate';
export * from '././paymentFrequencyType';
export * from '././payrollCalendar';
export * from '././payrollCalendars';
export * from '././payslip';
export * from '././payslipLines';
export * from '././payslipObject';
export * from '././payslipSummary';
export * from '././payslips';
export * from '././rateType';
export * from '././reimbursementLine';
export * from '././reimbursementLines';
export * from '././reimbursementType';
export * from '././residencyStatus';
export * from '././seniorMaritalStatus';
export * from '././settings';
export * from '././settingsObject';
export * from '././settingsTrackingCategories';
export * from '././settingsTrackingCategoriesEmployeeGroups';
export * from '././settingsTrackingCategoriesTimesheetCategories';
export * from '././state';
export * from '././superFund';
export * from '././superFundProduct';
export * from '././superFundProducts';
export * from '././superFundType';
export * from '././superFunds';
export * from '././superLine';
export * from '././superMembership';
export * from '././superannuationCalculationType';
export * from '././superannuationContributionType';
export * from '././superannuationLine';
export * from '././tFNExemptionType';
export * from '././taxDeclaration';
export * from '././taxLine';
export * from '././taxScaleType';
export * from '././timesheet';
export * from '././timesheetLine';
export * from '././timesheetObject';
export * from '././timesheetStatus';
export * from '././timesheets';
export * from '././validationError';
export * from '././workCondition';
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;
}