/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { RestApi } from "../RestApi"; import type { VersionedRestApi } from "../../types/senselogic/sitevision/api/script/VersionedRestApi"; /** * Factory for creating server-side invokers of the local * Sitevision REST API. * *

* REST siblings note! *

* * @param script object * @author Magnus Lövgren * @since Sitevision 2024.04.2 */ export interface RestApiFactory { /** * Gets the RestApi utility. * *

* The returned utility invokes the local REST API in * {@link senselogic.sitevision.api.versioning.VersionUtil#getCurrentVersion() current version}. *

* @return the RestApi utility */ getRestApi(): RestApi; /** * Gets the Versioned RestApi utility for the ONLINE version. * *

* The returned utility always invokes the local REST API in the * {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION ONLINE version}. *

*

* Related info: URI prefix for the REST API in the ONLINE version is: /rest-api/1/1/ *

* @return the VersionedRestApi for the {@link senselogic.sitevision.api.versioning.VersionUtil#ONLINE_VERSION ONLINE version} */ getOnlineRestApi(): VersionedRestApi; /** * Gets the Versioned RestApi utility for the OFFLINE version. * *

* The returned utility always invokes the local REST API in the * {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION OFFLINE version}. *

*

* Related info: URI prefix for the REST API in the OFFLINE version is: /rest-api/1/0/ *

* @return the VersionedRestApi for the {@link senselogic.sitevision.api.versioning.VersionUtil#OFFLINE_VERSION OFFLINE version} */ getOfflineRestApi(): VersionedRestApi; } declare namespace RestApiFactory {} declare var restApiFactory: RestApiFactory; export default restApiFactory;