UNPKG

@fairmint/canton-node-sdk

Version:
41 lines 1.68 kB
import { AuthenticationManager } from './auth/AuthenticationManager'; import { HttpClient } from './http/HttpClient'; import { type ApiType, type ClientConfig, type NetworkType, type PartialProviderConfig, type ProviderType } from './types'; /** Abstract base class providing common functionality for all API clients */ export declare abstract class BaseClient { protected config: PartialProviderConfig; protected apiType: ApiType; protected clientConfig: ClientConfig; protected authManager: AuthenticationManager; protected httpClient: HttpClient; constructor(apiType: ApiType, config?: ClientConfig); authenticate(): Promise<string>; makeGetRequest<T>(url: string, config?: { contentType?: string; includeBearerToken?: boolean; }): Promise<T>; makePostRequest<T>(url: string, data: unknown, config?: { contentType?: string; includeBearerToken?: boolean; }): Promise<T>; makeDeleteRequest<T>(url: string, config?: { contentType?: string; includeBearerToken?: boolean; }): Promise<T>; makePatchRequest<T>(url: string, data: unknown, config?: { contentType?: string; includeBearerToken?: boolean; }): Promise<T>; getLogger(): import('./logging').Logger | undefined; getApiUrl(): string; getPartyId(): string; getUserId(): string | undefined; getManagedParties(): string[]; buildPartyList(additionalParties?: string[]): string[]; getNetwork(): NetworkType; getProvider(): ProviderType | undefined; getProviderName(): string; getAuthUrl(): string; getApiType(): ApiType; } //# sourceMappingURL=BaseClient.d.ts.map