TwinfinityApiClientWithTwin
Hierarchy
- BimTwinfinityApiClient
- TwinfinityApiClientWithTwin
Index
Constructors
constructor
Parameters
baseUrl: URL
Url to twinfinity. Example: https://bim.demo.projektstruktur.se or https://bim.demo.projektstruktur.se/sites/portal/projects/projectA
Returns TwinfinityApiClientWithTwin
Properties
readonlybaseUrl
readonlylayers
Access to layer operations.
readonlymapBox
Access to MapBox operations.
readonlymessages
Access to message operations.
readonlysettings
Access to settings operations.
readonlyupload
Access to upload operations.
Accessors
id
Hostname of baseUrl.
Returns string
Methods
canDelete
Parameters
__namedParameters: BimChange
Returns boolean
deleteChanges
Parameters
changesToDelete: BimChange[]
Returns Promise<TypedResponse<number>[]>
get
Type parameters
- T
Parameters
absoluteUrl: string | URL
converter: (r: Response) => TypedResponse<T>
optionalinit: RequestInit
Returns Promise<TypedResponse<T>>
getChanges
Type parameters
- T: BimChange = BimChange
Parameters
parentOrUrl: URL | BimChange | BimContainer
options: { id: string } | { query: string } | { query: all }
Returns Promise<TypedResponse<T[]>>
getContainerInfo
Parameters
optionalcontainerOrUrl: URL | BimContainer
Returns Promise<TypedResponse<BimContainerInfo>>
getContainers
Parameters
optionalid: string
Returns Promise<BimContainer[]>
getIfcChanges
Parameters
parentOrUrl: URL | BimChange | BimContainer
Returns Promise<BimChangeIfc[]>
getInfo
Returns Promise<TwinfinityInfo>
publicgetTwinIfcChanges
Parameters
twin: Twin
Returns Promise<BimChangeIfc[]>
publicgetTwins
Returns Promise<Twin[]>
Constructor