api.client.d.ts 771 B

1234567891011121314151617181920212223
  1. export interface IParamObject {
  2. [key: string]: string | string[] | number | boolean;
  3. }
  4. export interface IPaginatedResponse<T = unknown> {
  5. data: T[];
  6. hasMore: boolean;
  7. totalCount: number;
  8. pageSize: number;
  9. page: number;
  10. }
  11. export declare class HttpClient {
  12. private backendUrl;
  13. private axiosClient;
  14. constructor(backendUrl: string);
  15. setAuthorizationToken(token: string): void;
  16. disposeAuthorizationToken(): void;
  17. getFullResponse(url: string, params?: IParamObject): Promise<any>;
  18. get(url: string, params?: IParamObject): Promise<any>;
  19. post(url: string, body?: {}): Promise<any>;
  20. patch(url: string, body?: {}): Promise<any>;
  21. delete(url: string, body?: {}): Promise<any>;
  22. }
  23. //# sourceMappingURL=api.client.d.ts.map