diff --git a/packages/aidbox-client/src/client.ts b/packages/aidbox-client/src/client.ts index 30f9d214..e5c25e71 100644 --- a/packages/aidbox-client/src/client.ts +++ b/packages/aidbox-client/src/client.ts @@ -25,8 +25,8 @@ import type { import type { OperationOutcome } from "./fhir-types/hl7-fhir-r4-core"; import { Err, Ok, type Result } from "./result"; import type { + AidboxClient, ClientParams, - FhirServerClient, RequestParams, ResourceResponse, ResponseWithMeta, @@ -101,7 +101,7 @@ const basePath = "fhir"; export function makeClient({ baseUrl, authProvider, -}: ClientParams): FhirServerClient { +}: ClientParams): AidboxClient { const getBaseUrl = (): string => { return baseUrl; }; diff --git a/packages/aidbox-client/src/types.ts b/packages/aidbox-client/src/types.ts index 4c81c6b9..fa2fbb7d 100644 --- a/packages/aidbox-client/src/types.ts +++ b/packages/aidbox-client/src/types.ts @@ -92,7 +92,7 @@ export class ErrorResponse extends Error { } } -export type FhirServerClient< +export type AidboxClient< TBundle = Bundle, TOperationOutcome = OperationOutcome, TUser = User,