NavVis IVION API
    Preparing search index...

    Interface PoiTypeRepositoryInterface

    The PoiTypeRepository retreives PoiTypes from the database through the REST API.

    A full list of PoiTypes can be fetched by calling findAll and a specific PoiType by calling findOne.

    interface PoiTypeRepositoryInterface {
        create(): PoiTypeInterface;
        filter(params: RestFilterInterface): Promise<PoiTypeInterface[]>;
        findAll(forceFetch?: boolean): Promise<PoiTypeInterface[]>;
        findOne(id: number, forceFetch?: boolean): Promise<PoiTypeInterface>;
        remove(item: PoiTypeInterface): Promise<void>;
        save(
            items: PoiTypeInterface | PoiTypeInterface[],
        ): Promise<PoiTypeInterface[]>;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Gets all repository items. The cached data will be returned if the data has been fetched before. Using the forceFetch parameter, a user can order a fresh copy to be fetched from the server.

      Parameters

      • OptionalforceFetch: boolean

        Whether to bypass the cache and retrieve a fresh copy from the server.

      Returns Promise<PoiTypeInterface[]>

      Promise with the repository items.

    • Get one repository item by id. The cached data will be returned if the data has been fetched before. Use the forceFetch parameter to retrieve a fresh copy from the server. In case a new record is fetched, the data and dataMap will be updated accordingly.

      Parameters

      • id: number

        Identifier of the repository item

      • OptionalforceFetch: boolean

        Whether to bypass the cache and retrieve a fresh copy from the server.

      Returns Promise<PoiTypeInterface>