BimCoreApiClient
Hierarchy
- BimCoreApiClient
Index
Properties
Methods
Properties
readonlyid
Uniquely identifies the backend the client connects to. If the client connects to a REST API its probably the host name of the API.
readonlylayers
API to handle layer functionality. A Layer is a way to enrich an existing change in the database with extra data. This data will be versioned separately from the change the layer is attached to.
readonlymapBox
API to access MapBox functionality.
Methods
get
Issues an HTTP GET specified url.
Type parameters
- T
The type of data the specified converter will convert the HTTP response body to.
Parameters
absoluteOrRelativeUrl: string | URL
Url to issue HTTP GET to.
converter: (r: Response) => TypedResponse<T>
Converter for response. See HttpResponseType for predefined converters.
optionalinit: RequestInit
Optional settings for to HTTP GET (fetch).
Returns Promise<TypedResponse<T>>
a TypedResponse containing the status code and the response value that resulted from using the specified converter.
- T
getChanges
Retrieves all changes in and below a specified parent change and that matches a specific query. Use typescript type inference cast directly to a specific BimChange type if you know exactly which types the query will return
Type parameters
Parameters
parent: URL | BimChange | BimContainer
Parent to get changes from.
query: BimChangeIdQuery<T> | BimChangeMetadataQuery<T>
example:
ifc.status=processed
,dwg.status=processed
or_system.layers.format=sensors
Returns Promise<TypedResponse<T[]>>
Changes in container that matched the filterQuery.
getContainers
Gets all containers or just a specific one.
Parameters
optionalid: string
If given, only container with specific id is returned. Otherwise all containers are returned.
Returns Promise<BimContainer[]>
List of containers. May be empty if no containers were found or matched the specified id.
getIfcChanges
Retrieves all (successfully processed) IFC changes located in and below a specified parent.
Parameters
parent: URL | BimChange | BimContainer
Parent change to get IFC changes from.
Returns Promise<BimChangeIfc[]>
All successfully processed IFC changes in the specified container.
Implementing this interface allows the developer to customize where the container and IFC data is loaded from.