IFClite TypeScript API
    Preparing search index...

    Class BcfApiClient

    Typed client for the buildingSMART BCF API (OpenCDE) REST services. Implements the BCF API 2.1 routes; the version option exists because 3.0 servers share these shapes and paths for everything the client uses.

    Extends FoundationApiClient: URL building, Bearer token injection, and error mapping, plus getVersions/getAuthInfo/getCurrentUser, are the Foundation API's own and are inherited rather than reimplemented here.

    Hierarchy (View Summary)

    Index
    baseUrl: string
    errorLabel: string
    errorNamespace: string | undefined
    fetchFn: FetchLike
    getAccessToken?: BcfTokenProvider
    version: string
    • Parameters

      • path: string
      • Optionalquery: Record<string, string | number | undefined>

      Returns string

    • Parameters

      • projectId: string
      • topicGuid: string
      • viewpointGuid: string

      Returns Promise<BcfColoringResponse>

    • Parameters

      • projectId: string
      • topicGuid: string

      Returns Promise<BcfViewpointDto[]>

    • Parameters

      • projectId: string
      • topicGuid: string
      • viewpointGuid: string

      Returns Promise<BcfSelectionResponse>

    • Snapshot image (PNG/JPEG) of a viewpoint, as served by the server.

      Parameters

      • projectId: string
      • topicGuid: string
      • viewpointGuid: string

      Returns Promise<Blob>

    • Parameters

      • projectId: string
      • topicGuid: string
      • viewpointGuid: string

      Returns Promise<BcfVisibilityResponse>