UNPKG

exactmcp

Version:

MCP server for Exact Online API integration

41 lines 1.31 kB
export interface TokenResponse { access_token: string; token_type: string; expires_in: number; refresh_token: string; expires_at: number; } export interface Division { code: string; description: string; hid: number; } export interface QueryOptions { filter?: string; select?: string; top?: number; skip?: number; } export declare class ExactOnlineClient { private clientId; private clientSecret; private redirectUri; private accessToken; private refreshToken; private expiresAt; private httpClient; private baseUrl; constructor(clientId: string, clientSecret: string, redirectUri: string); getAuthorizationUrl(): string; exchangeCodeForToken(authCode: string): Promise<TokenResponse>; refreshAccessToken(): Promise<void>; private ensureValidToken; private makeApiRequest; isAuthenticated(): boolean; getDivisions(): Promise<Division[]>; getSalesOrders(divisionCode: string, options?: QueryOptions): Promise<any[]>; getItems(divisionCode: string, options?: QueryOptions): Promise<any[]>; getAccounts(divisionCode: string, options?: QueryOptions): Promise<any[]>; getInvoices(divisionCode: string, options?: QueryOptions): Promise<any[]>; } //# sourceMappingURL=exact-client.d.ts.map