Skip to main content

TwinfinityApiClientWithTwin

Hierarchy

  • BimTwinfinityApiClient
    • TwinfinityApiClientWithTwin

Index

Constructors

constructor

Properties

readonlybaseUrl

baseUrl: URL

readonlylayers

layers: LayerApiClient

Access to layer operations.

readonlymapBox

mapBox: MapBoxApiClient

Access to MapBox operations.

readonlymessages

messages: MessageApiClient

Access to message operations.

readonlysettings

settings: SettingsApiClient

Access to settings operations.

readonlyupload

upload: UploadApiClient

Access to upload operations.

Accessors

id

  • get id(): string
  • Hostname of baseUrl.


    Returns string

Methods

canDelete

  • canDelete(__namedParameters: BimChange): boolean
  • @inheritDoc

    Parameters

    • __namedParameters: BimChange

    Returns boolean

deleteChanges

  • deleteChanges(changesToDelete: BimChange[]): Promise<TypedResponse<number>[]>
  • @inheritDoc

    Parameters

    • changesToDelete: BimChange[]

    Returns Promise<TypedResponse<number>[]>

get

  • get<T>(absoluteUrl: string | URL, converter: (r: Response) => TypedResponse<T>, init?: RequestInit): Promise<TypedResponse<T>>
  • @inheritDoc

    Type parameters

    • T

    Parameters

    • absoluteUrl: string | URL
    • converter: (r: Response) => TypedResponse<T>
    • optionalinit: RequestInit

    Returns Promise<TypedResponse<T>>

getChanges

  • getChanges<T>(parentOrUrl: URL | BimChange | BimContainer, options: { id: string } | { query: string } | { query: all }): Promise<TypedResponse<T[]>>
  • @inheritDoc

    Type parameters

    • T: BimChange = BimChange

    Parameters

    • parentOrUrl: URL | BimChange | BimContainer
    • options: { id: string } | { query: string } | { query: all }

    Returns Promise<TypedResponse<T[]>>

getContainerInfo

  • getContainerInfo(containerOrUrl?: URL | BimContainer): Promise<TypedResponse<BimContainerInfo>>
  • @inheritDoc

    Parameters

    • optionalcontainerOrUrl: URL | BimContainer

    Returns Promise<TypedResponse<BimContainerInfo>>

getContainers

  • getContainers(id?: string): Promise<BimContainer[]>
  • @inheritDoc

    Parameters

    • optionalid: string

    Returns Promise<BimContainer[]>

getIfcChanges

  • getIfcChanges(parentOrUrl: URL | BimChange | BimContainer): Promise<BimChangeIfc[]>
  • @inheritDoc

    Parameters

    • parentOrUrl: URL | BimChange | BimContainer

    Returns Promise<BimChangeIfc[]>

getInfo

  • getInfo(): Promise<TwinfinityInfo>
  • @inheritDoc

    Returns Promise<TwinfinityInfo>

publicgetTwinIfcChanges

  • getTwinIfcChanges(twin: Twin): Promise<BimChangeIfc[]>
  • Parameters

    Returns Promise<BimChangeIfc[]>

publicgetTwins

  • getTwins(): Promise<Twin[]>
  • Returns Promise<Twin[]>