@openremote/rest 1.8.0-snapshot.20250725070921 → 1.8.0-snapshot.20250725120000

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/restclient.js CHANGED
@@ -1 +1,1341 @@
1
- export class DashboardResourceClient{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`dashboard`,data:t,options:e})}update(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`dashboard`,data:t,options:e})}getAllRealmDashboards(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`dashboard/all/${t}`,options:e})}query(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`dashboard/query`,data:t,options:e})}delete(t,e,s){return this.httpClient.request({method:"DELETE",url:uriEncoding`dashboard/${t}/${e}`,options:s})}get(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`dashboard/${t}/${e}`,options:s})}}export class AgentResourceClient{constructor(t){this.httpClient=t}doProtocolAssetDiscovery(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`agent/assetDiscovery/${t}`,queryParams:e,options:s})}doProtocolAssetImport(t,e,s,r){return this.httpClient.request({method:"POST",url:uriEncoding`agent/assetImport/${t}`,queryParams:s,data:e,options:r})}doProtocolInstanceDiscovery(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`agent/instanceDiscovery/${t}`,queryParams:e,options:s})}}export class AppResourceClient{constructor(t){this.httpClient=t}getApps(t){return this.httpClient.request({method:"GET",url:uriEncoding`apps`,options:t})}getConsoleConfig(t){return this.httpClient.request({method:"GET",url:uriEncoding`apps/consoleConfig`,options:t})}getAppInfos(t){return this.httpClient.request({method:"GET",url:uriEncoding`apps/info`,options:t})}}export class AssetPredictedDatapointResourceClient{constructor(t){this.httpClient=t}getPredictedDatapoints(t,e,s,r){return this.httpClient.request({method:"POST",url:uriEncoding`asset/predicted/${t}/${e}`,data:s,options:r})}writePredictedDatapoints(t,e,s,r){return this.httpClient.request({method:"PUT",url:uriEncoding`asset/predicted/${t}/${e}`,data:s,options:r})}}export class GatewayServiceResourceClient{constructor(t){this.httpClient=t}startTunnel(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`gateway/tunnel`,data:t,options:e})}stopTunnel(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`gateway/tunnel`,data:t,options:e})}getAllActiveTunnelInfos(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`gateway/tunnel/${t}`,options:e})}getGatewayActiveTunnelInfos(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`gateway/tunnel/${t}/${e}`,options:s})}getActiveTunnelInfo(t,e,s,r,n){return this.httpClient.request({method:"GET",url:uriEncoding`gateway/tunnel/${t}/${e}/${s}/${r}`,options:n})}}export class ConfigurationResourceClient{constructor(t){this.httpClient=t}getManagerConfig(t){return this.httpClient.request({method:"GET",url:uriEncoding`configuration/manager`,options:t})}update(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`configuration/manager`,data:t,options:e})}fileUpload(t,e,s){return this.httpClient.request({method:"POST",url:uriEncoding`configuration/manager/file`,queryParams:e,data:t,options:s})}getManagerConfigImage(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`configuration/manager/image/${t}`,options:e})}}export class AssetDatapointResourceClient{constructor(t){this.httpClient=t}getDatapointExport(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`asset/datapoint/export`,queryParams:t,options:e})}getDatapointPeriod(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`asset/datapoint/periods`,queryParams:t,options:e})}getDatapoints(t,e,s,r){return this.httpClient.request({method:"POST",url:uriEncoding`asset/datapoint/${t}/${e}`,data:s,options:r})}}export class SyslogResourceClient{constructor(t){this.httpClient=t}getConfig(t){return this.httpClient.request({method:"GET",url:uriEncoding`syslog/config`,options:t})}updateConfig(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`syslog/config`,data:t,options:e})}clearEvents(t){return this.httpClient.request({method:"DELETE",url:uriEncoding`syslog/event`,options:t})}getEvents(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`syslog/event`,queryParams:t,options:e})}}export class ConsoleResourceClient{constructor(t){this.httpClient=t}register(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`console/register`,data:t,options:e})}}export class AssetResourceClient{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`asset`,data:t,options:e})}delete(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`asset`,queryParams:t,options:e})}writeAttributeValues(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`asset/attributes`,data:t,options:e})}writeAttributeEvents(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`asset/attributes/timestamp`,data:t,options:e})}updateNoneParent(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`asset/parent`,queryParams:t,options:e})}getPartial(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`asset/partial/${t}`,options:e})}queryAssets(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`asset/query`,data:t,options:e})}getCurrentUserAssets(t){return this.httpClient.request({method:"GET",url:uriEncoding`asset/user/current`,options:t})}createUserAssetLinks(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`asset/user/link`,data:t,options:e})}getUserAssetLinks(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`asset/user/link`,queryParams:t,options:e})}deleteUserAssetLinks(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`asset/user/link/delete`,data:t,options:e})}deleteAllUserAssetLinks(t,e,s){return this.httpClient.request({method:"DELETE",url:uriEncoding`asset/user/link/${t}/${e}`,options:s})}deleteUserAssetLink(t,e,s,r){return this.httpClient.request({method:"DELETE",url:uriEncoding`asset/user/link/${t}/${e}/${s}`,options:r})}get(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`asset/${t}`,options:e})}update(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`asset/${t}`,data:e,options:s})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName(t,e,s,r){return this.httpClient.request({method:"PUT",url:uriEncoding`asset/${t}/attribute/${e}`,data:s,options:r})}writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(t,e,s,r,n){return this.httpClient.request({method:"PUT",url:uriEncoding`asset/${t}/attribute/${e}/${s}`,data:r,options:n})}updateParent(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`asset/${t}/child`,queryParams:e,options:s})}}export class FlowResourceClient{constructor(t){this.httpClient=t}getAllNodeDefinitions(t){return this.httpClient.request({method:"GET",url:uriEncoding`flow`,options:t})}getNodeDefinition(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`flow/${t}`,options:e})}getAllNodeDefinitionsByType(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`flow/${t}`,options:e})}}export class UserResourceClient{constructor(t){this.httpClient=t}updateCurrentUserLocale(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`user/locale`,data:t,options:e})}query(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`user/query`,data:t,options:e})}requestPasswordResetCurrent(t){return this.httpClient.request({method:"PUT",url:uriEncoding`user/request-password-reset`,options:t})}updatePasswordCurrent(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`user/reset-password`,data:t,options:e})}updateCurrent(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`user/update`,data:t,options:e})}getCurrent(t){return this.httpClient.request({method:"GET",url:uriEncoding`user/user`,options:t})}getCurrentUserRealmRoles(t){return this.httpClient.request({method:"GET",url:uriEncoding`user/userRealmRoles`,options:t})}getCurrentUserClientRoles(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`user/userRoles/${t}`,options:e})}disconnectUserSession(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`user/${t}/disconnect/${e}`,options:s})}requestPasswordReset(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`user/${t}/request-password-reset/${e}`,options:s})}updatePassword(t,e,s,r){return this.httpClient.request({method:"PUT",url:uriEncoding`user/${t}/reset-password/${e}`,data:s,options:r})}resetSecret(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`user/${t}/reset-secret/${e}`,options:s})}updateRoles(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`user/${t}/roles`,data:e,options:s})}getUserRealmRoles(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`user/${t}/userRealmRoles/${e}`,options:s})}updateUserRealmRoles(t,e,s,r){return this.httpClient.request({method:"PUT",url:uriEncoding`user/${t}/userRealmRoles/${e}`,data:s,options:r})}getUserClientRoles(t,e,s,r){return this.httpClient.request({method:"GET",url:uriEncoding`user/${t}/userRoles/${e}/${s}`,options:r})}updateUserClientRoles(t,e,s,r,n){return this.httpClient.request({method:"PUT",url:uriEncoding`user/${t}/userRoles/${e}/${s}`,data:r,options:n})}getUserSessions(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`user/${t}/userSessions/${e}`,options:s})}create(t,e,s){return this.httpClient.request({method:"POST",url:uriEncoding`user/${t}/users`,data:e,options:s})}update(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`user/${t}/users`,data:e,options:s})}delete(t,e,s){return this.httpClient.request({method:"DELETE",url:uriEncoding`user/${t}/users/${e}`,options:s})}getClientRoles(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`user/${t}/${e}/roles`,options:s})}updateClientRoles(t,e,s,r){return this.httpClient.request({method:"PUT",url:uriEncoding`user/${t}/${e}/roles`,data:s,options:r})}get(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`user/${t}/${e}`,options:s})}}export class ProvisioningResourceClient{constructor(t){this.httpClient=t}createProvisioningConfig(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`provisioning`,data:t,options:e})}getProvisioningConfigs(t){return this.httpClient.request({method:"GET",url:uriEncoding`provisioning`,options:t})}deleteProvisioningConfig(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`provisioning/${t}`,options:e})}updateProvisioningConfig(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`provisioning/${t}`,data:e,options:s})}}export class RulesResourceClient{constructor(t){this.httpClient=t}createGlobalRuleset(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`rules`,data:t,options:e})}getGlobalRulesets(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`rules`,queryParams:t,options:e})}createAssetRuleset(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`rules/asset`,data:t,options:e})}getAssetRulesets(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`rules/asset/for/${t}`,queryParams:e,options:s})}deleteAssetRuleset(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`rules/asset/${t}`,options:e})}getAssetRuleset(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`rules/asset/${t}`,options:e})}updateAssetRuleset(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`rules/asset/${t}`,data:e,options:s})}getAssetGeofences(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`rules/geofences/${t}`,options:e})}getAssetEngineInfo(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`rules/info/asset/${t}`,options:e})}getGlobalEngineInfo(t){return this.httpClient.request({method:"GET",url:uriEncoding`rules/info/global`,options:t})}getRealmEngineInfo(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`rules/info/realm/${t}`,options:e})}createRealmRuleset(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`rules/realm`,data:t,options:e})}getRealmRulesets(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`rules/realm/for/${t}`,queryParams:e,options:s})}deleteRealmRuleset(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`rules/realm/${t}`,options:e})}getRealmRuleset(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`rules/realm/${t}`,options:e})}updateRealmRuleset(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`rules/realm/${t}`,data:e,options:s})}deleteGlobalRuleset(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`rules/${t}`,options:e})}getGlobalRuleset(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`rules/${t}`,options:e})}updateGlobalRuleset(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`rules/${t}`,data:e,options:s})}}export class AssetModelResourceClient{constructor(t){this.httpClient=t}getAssetDescriptors(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`model/assetDescriptors`,queryParams:t,options:e})}getAssetInfo(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`model/assetInfo/${t}`,queryParams:e,options:s})}getAssetInfos(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`model/assetInfos`,queryParams:t,options:e})}getMetaItemDescriptors(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`model/metaItemDescriptors`,queryParams:t,options:e})}getValueDescriptors(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`model/valueDescriptors`,queryParams:t,options:e})}}export class AlarmResourceClient{constructor(t){this.httpClient=t}createAlarm(t,e,s){return this.httpClient.request({method:"POST",url:uriEncoding`alarm`,queryParams:e,data:t,options:s})}getAlarms(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`alarm`,queryParams:t,options:e})}removeAlarms(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`alarm`,data:t,options:e})}setAssetLinks(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`alarm/assets`,data:t,options:e})}getAlarm(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`alarm/${t}`,options:e})}removeAlarm(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`alarm/${t}`,options:e})}updateAlarm(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`alarm/${t}`,data:e,options:s})}getAssetLinks(t,e,s){return this.httpClient.request({method:"GET",url:uriEncoding`alarm/${t}/assets`,queryParams:e,options:s})}}export class RealmResourceClient{constructor(t){this.httpClient=t}create(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`realm`,data:t,options:e})}getAll(t){return this.httpClient.request({method:"GET",url:uriEncoding`realm`,options:t})}getAccessible(t){return this.httpClient.request({method:"GET",url:uriEncoding`realm/accessible`,options:t})}delete(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`realm/${t}`,options:e})}get(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`realm/${t}`,options:e})}update(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`realm/${t}`,data:e,options:s})}}export class MapResourceClient{constructor(t){this.httpClient=t}getSettings(t){return this.httpClient.request({method:"GET",url:uriEncoding`map`,options:t})}saveSettings(t,e){return this.httpClient.request({method:"PUT",url:uriEncoding`map`,data:t,options:e})}deleteMap(t){return this.httpClient.request({method:"DELETE",url:uriEncoding`map/deleteMap`,options:t})}getCustomMapInfo(t){return this.httpClient.request({method:"GET",url:uriEncoding`map/getCustomMapInfo`,options:t})}getSettingsJs(t){return this.httpClient.request({method:"GET",url:uriEncoding`map/js`,options:t})}getTile(t,e,s,r){return this.httpClient.request({method:"GET",url:uriEncoding`map/tile/${t}/${e}/${s}`,options:r})}uploadMap(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`map/upload`,queryParams:t,options:e})}}export class GatewayClientResourceClient{constructor(t){this.httpClient=t}deleteConnections(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`gateway/connection`,queryParams:t,options:e})}getConnections(t){return this.httpClient.request({method:"GET",url:uriEncoding`gateway/connection`,options:t})}deleteConnection(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`gateway/connection/${t}`,options:e})}getConnection(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`gateway/connection/${t}`,options:e})}setConnection(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`gateway/connection/${t}`,data:e,options:s})}getConnectionStatus(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`gateway/status/${t}`,options:e})}}export class StatusResourceClient{constructor(t){this.httpClient=t}getHealthStatus(t){return this.httpClient.request({method:"GET",url:uriEncoding`health`,options:t})}getInfo(t){return this.httpClient.request({method:"GET",url:uriEncoding`info`,options:t})}}export class NotificationResourceClient{constructor(t){this.httpClient=t}getNotifications(t,e){return this.httpClient.request({method:"GET",url:uriEncoding`notification`,queryParams:t,options:e})}removeNotifications(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`notification`,queryParams:t,options:e})}sendNotification(t,e){return this.httpClient.request({method:"POST",url:uriEncoding`notification/alert`,data:t,options:e})}removeNotification(t,e){return this.httpClient.request({method:"DELETE",url:uriEncoding`notification/${t}`,options:e})}notificationAcknowledged(t,e,s,r){return this.httpClient.request({method:"PUT",url:uriEncoding`notification/${t}/acknowledged`,queryParams:s,data:e,options:r})}notificationDelivered(t,e,s){return this.httpClient.request({method:"PUT",url:uriEncoding`notification/${t}/delivered`,queryParams:e,options:s})}}function uriEncoding(t,...e){let s="";for(let r=0;r<e.length;r++)s+=t[r],s+=encodeURIComponent(e[r]);return s+t[t.length-1]}export class ApiClient{constructor(e,s=t.create()){this._dashboardResource=new AxiosDashboardResourceClient(e,s),this._agentResource=new AxiosAgentResourceClient(e,s),this._appResource=new AxiosAppResourceClient(e,s),this._assetPredictedDatapointResource=new AxiosAssetPredictedDatapointResourceClient(e,s),this._gatewayServiceResource=new AxiosGatewayServiceResourceClient(e,s),this._configurationResource=new AxiosConfigurationResourceClient(e,s),this._assetDatapointResource=new AxiosAssetDatapointResourceClient(e,s),this._syslogResource=new AxiosSyslogResourceClient(e,s),this._consoleResource=new AxiosConsoleResourceClient(e,s),this._assetResource=new AxiosAssetResourceClient(e,s),this._flowResource=new AxiosFlowResourceClient(e,s),this._userResource=new AxiosUserResourceClient(e,s),this._provisioningResource=new AxiosProvisioningResourceClient(e,s),this._rulesResource=new AxiosRulesResourceClient(e,s),this._assetModelResource=new AxiosAssetModelResourceClient(e,s),this._alarmResource=new AxiosAlarmResourceClient(e,s),this._realmResource=new AxiosRealmResourceClient(e,s),this._mapResource=new AxiosMapResourceClient(e,s),this._gatewayClientResource=new AxiosGatewayClientResourceClient(e,s),this._statusResource=new AxiosStatusResourceClient(e,s),this._notificationResource=new AxiosNotificationResourceClient(e,s),this._assetResource=new AxiosAssetResourceClient(e,s)}get DashboardResource(){return this._dashboardResource}get AgentResource(){return this._agentResource}get AppResource(){return this._appResource}get AssetPredictedDatapointResource(){return this._assetPredictedDatapointResource}get GatewayServiceResource(){return this._gatewayServiceResource}get ConfigurationResource(){return this._configurationResource}get AssetDatapointResource(){return this._assetDatapointResource}get SyslogResource(){return this._syslogResource}get ConsoleResource(){return this._consoleResource}get AssetResource(){return this._assetResource}get FlowResource(){return this._flowResource}get UserResource(){return this._userResource}get ProvisioningResource(){return this._provisioningResource}get RulesResource(){return this._rulesResource}get AssetModelResource(){return this._assetModelResource}get AlarmResource(){return this._alarmResource}get RealmResource(){return this._realmResource}get MapResource(){return this._mapResource}get GatewayClientResource(){return this._gatewayClientResource}get StatusResource(){return this._statusResource}get NotificationResource(){return this._notificationResource}}import t from"axios";class AxiosHttpClient{constructor(t){this.axios=t}request(t){let e={};e.method=t.method,e.url=t.url,e.params=t.queryParams,e.data=t.data,function(t,e){if(void 0!=e)for(let s in e)e.hasOwnProperty(s)&&(t[s]=e[s])}(e,t.options);let s=t.copyFn;return this.axios.request(e).then(t=>(s&&t.data&&(t.originalData=t.data,t.data=s(t.data)),t))}}export class AxiosDashboardResourceClient extends DashboardResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosAgentResourceClient extends AgentResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosAppResourceClient extends AppResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosConfigurationResourceClient extends ConfigurationResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosSyslogResourceClient extends SyslogResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosConsoleResourceClient extends ConsoleResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosAssetResourceClient extends AssetResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosFlowResourceClient extends FlowResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosUserResourceClient extends UserResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosProvisioningResourceClient extends ProvisioningResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosRulesResourceClient extends RulesResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosAssetModelResourceClient extends AssetModelResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosAlarmResourceClient extends AlarmResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosRealmResourceClient extends RealmResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosMapResourceClient extends MapResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosGatewayClientResourceClient extends GatewayClientResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosStatusResourceClient extends StatusResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}export class AxiosNotificationResourceClient extends NotificationResourceClient{constructor(e,s=t.create()){s.defaults.baseURL=e,super(new AxiosHttpClient(s))}}
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ // Generated using typescript-generator version 3.2.1263 on 2025-07-25 10:49:04.
4
+ export class AssetModelResourceClient {
5
+ constructor(httpClient) {
6
+ this.httpClient = httpClient;
7
+ }
8
+ /**
9
+ * HTTP GET /model/assetDescriptors
10
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
11
+ */
12
+ getAssetDescriptors(queryParams, options) {
13
+ return this.httpClient.request({ method: "GET", url: uriEncoding `model/assetDescriptors`, queryParams: queryParams, options: options });
14
+ }
15
+ /**
16
+ * HTTP GET /model/assetInfo/{assetType}
17
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
18
+ */
19
+ getAssetInfo(assetType, queryParams, options) {
20
+ return this.httpClient.request({ method: "GET", url: uriEncoding `model/assetInfo/${assetType}`, queryParams: queryParams, options: options });
21
+ }
22
+ /**
23
+ * HTTP GET /model/assetInfos
24
+ * Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
25
+ */
26
+ getAssetInfos(queryParams, options) {
27
+ return this.httpClient.request({ method: "GET", url: uriEncoding `model/assetInfos`, queryParams: queryParams, options: options });
28
+ }
29
+ /**
30
+ * HTTP GET /model/metaItemDescriptors
31
+ * Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
32
+ */
33
+ getMetaItemDescriptors(queryParams, options) {
34
+ return this.httpClient.request({ method: "GET", url: uriEncoding `model/metaItemDescriptors`, queryParams: queryParams, options: options });
35
+ }
36
+ /**
37
+ * HTTP GET /model/valueDescriptors
38
+ * Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
39
+ */
40
+ getValueDescriptors(queryParams, options) {
41
+ return this.httpClient.request({ method: "GET", url: uriEncoding `model/valueDescriptors`, queryParams: queryParams, options: options });
42
+ }
43
+ }
44
+ export class AssetDatapointResourceClient {
45
+ constructor(httpClient) {
46
+ this.httpClient = httpClient;
47
+ }
48
+ /**
49
+ * HTTP GET /asset/datapoint/export
50
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
51
+ */
52
+ getDatapointExport(queryParams, options) {
53
+ return this.httpClient.request({ method: "GET", url: uriEncoding `asset/datapoint/export`, queryParams: queryParams, options: options });
54
+ }
55
+ /**
56
+ * HTTP GET /asset/datapoint/periods
57
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
58
+ */
59
+ getDatapointPeriod(queryParams, options) {
60
+ return this.httpClient.request({ method: "GET", url: uriEncoding `asset/datapoint/periods`, queryParams: queryParams, options: options });
61
+ }
62
+ /**
63
+ * HTTP POST /asset/datapoint/{assetId}/{attributeName}
64
+ * Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
65
+ */
66
+ getDatapoints(assetId, attributeName, query, options) {
67
+ return this.httpClient.request({ method: "POST", url: uriEncoding `asset/datapoint/${assetId}/${attributeName}`, data: query, options: options });
68
+ }
69
+ }
70
+ export class ConsoleResourceClient {
71
+ constructor(httpClient) {
72
+ this.httpClient = httpClient;
73
+ }
74
+ /**
75
+ * HTTP POST /console/register
76
+ * Java method: org.openremote.model.console.ConsoleResource.register
77
+ */
78
+ register(consoleRegistration, options) {
79
+ return this.httpClient.request({ method: "POST", url: uriEncoding `console/register`, data: consoleRegistration, options: options });
80
+ }
81
+ }
82
+ export class GatewayServiceResourceClient {
83
+ constructor(httpClient) {
84
+ this.httpClient = httpClient;
85
+ }
86
+ /**
87
+ * HTTP POST /gateway/tunnel
88
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
89
+ */
90
+ startTunnel(tunnelInfo, options) {
91
+ return this.httpClient.request({ method: "POST", url: uriEncoding `gateway/tunnel`, data: tunnelInfo, options: options });
92
+ }
93
+ /**
94
+ * HTTP DELETE /gateway/tunnel
95
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
96
+ */
97
+ stopTunnel(tunnelInfo, options) {
98
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `gateway/tunnel`, data: tunnelInfo, options: options });
99
+ }
100
+ /**
101
+ * HTTP GET /gateway/tunnel/{realm}
102
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
103
+ */
104
+ getAllActiveTunnelInfos(realm, options) {
105
+ return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/tunnel/${realm}`, options: options });
106
+ }
107
+ /**
108
+ * HTTP GET /gateway/tunnel/{realm}/{id}
109
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
110
+ */
111
+ getGatewayActiveTunnelInfos(realm, id, options) {
112
+ return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/tunnel/${realm}/${id}`, options: options });
113
+ }
114
+ /**
115
+ * HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
116
+ * Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
117
+ */
118
+ getActiveTunnelInfo(realm, id, target, targetPort, options) {
119
+ return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/tunnel/${realm}/${id}/${target}/${targetPort}`, options: options });
120
+ }
121
+ }
122
+ export class ProvisioningResourceClient {
123
+ constructor(httpClient) {
124
+ this.httpClient = httpClient;
125
+ }
126
+ /**
127
+ * HTTP POST /provisioning
128
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
129
+ */
130
+ createProvisioningConfig(provisioningConfig, options) {
131
+ return this.httpClient.request({ method: "POST", url: uriEncoding `provisioning`, data: provisioningConfig, options: options });
132
+ }
133
+ /**
134
+ * HTTP GET /provisioning
135
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
136
+ */
137
+ getProvisioningConfigs(options) {
138
+ return this.httpClient.request({ method: "GET", url: uriEncoding `provisioning`, options: options });
139
+ }
140
+ /**
141
+ * HTTP DELETE /provisioning/{id}
142
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
143
+ */
144
+ deleteProvisioningConfig(id, options) {
145
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `provisioning/${id}`, options: options });
146
+ }
147
+ /**
148
+ * HTTP PUT /provisioning/{id}
149
+ * Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
150
+ */
151
+ updateProvisioningConfig(id, provisioningConfig, options) {
152
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `provisioning/${id}`, data: provisioningConfig, options: options });
153
+ }
154
+ }
155
+ export class NotificationResourceClient {
156
+ constructor(httpClient) {
157
+ this.httpClient = httpClient;
158
+ }
159
+ /**
160
+ * HTTP GET /notification
161
+ * Java method: org.openremote.model.notification.NotificationResource.getNotifications
162
+ */
163
+ getNotifications(queryParams, options) {
164
+ return this.httpClient.request({ method: "GET", url: uriEncoding `notification`, queryParams: queryParams, options: options });
165
+ }
166
+ /**
167
+ * HTTP DELETE /notification
168
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotifications
169
+ */
170
+ removeNotifications(queryParams, options) {
171
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `notification`, queryParams: queryParams, options: options });
172
+ }
173
+ /**
174
+ * HTTP POST /notification/alert
175
+ * Java method: org.openremote.model.notification.NotificationResource.sendNotification
176
+ */
177
+ sendNotification(notification, options) {
178
+ return this.httpClient.request({ method: "POST", url: uriEncoding `notification/alert`, data: notification, options: options });
179
+ }
180
+ /**
181
+ * HTTP DELETE /notification/{notificationId}
182
+ * Java method: org.openremote.model.notification.NotificationResource.removeNotification
183
+ */
184
+ removeNotification(notificationId, options) {
185
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `notification/${notificationId}`, options: options });
186
+ }
187
+ /**
188
+ * HTTP PUT /notification/{notificationId}/acknowledged
189
+ * Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
190
+ */
191
+ notificationAcknowledged(notificationId, acknowledgement, queryParams, options) {
192
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `notification/${notificationId}/acknowledged`, queryParams: queryParams, data: acknowledgement, options: options });
193
+ }
194
+ /**
195
+ * HTTP PUT /notification/{notificationId}/delivered
196
+ * Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
197
+ */
198
+ notificationDelivered(notificationId, queryParams, options) {
199
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `notification/${notificationId}/delivered`, queryParams: queryParams, options: options });
200
+ }
201
+ }
202
+ export class RulesResourceClient {
203
+ constructor(httpClient) {
204
+ this.httpClient = httpClient;
205
+ }
206
+ /**
207
+ * HTTP POST /rules
208
+ * Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
209
+ */
210
+ createGlobalRuleset(ruleset, options) {
211
+ return this.httpClient.request({ method: "POST", url: uriEncoding `rules`, data: ruleset, options: options });
212
+ }
213
+ /**
214
+ * HTTP GET /rules
215
+ * Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
216
+ */
217
+ getGlobalRulesets(queryParams, options) {
218
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules`, queryParams: queryParams, options: options });
219
+ }
220
+ /**
221
+ * HTTP POST /rules/asset
222
+ * Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
223
+ */
224
+ createAssetRuleset(ruleset, options) {
225
+ return this.httpClient.request({ method: "POST", url: uriEncoding `rules/asset`, data: ruleset, options: options });
226
+ }
227
+ /**
228
+ * HTTP GET /rules/asset/for/{assetId}
229
+ * Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
230
+ */
231
+ getAssetRulesets(assetId, queryParams, options) {
232
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/asset/for/${assetId}`, queryParams: queryParams, options: options });
233
+ }
234
+ /**
235
+ * HTTP DELETE /rules/asset/{id}
236
+ * Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
237
+ */
238
+ deleteAssetRuleset(id, options) {
239
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/asset/${id}`, options: options });
240
+ }
241
+ /**
242
+ * HTTP GET /rules/asset/{id}
243
+ * Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
244
+ */
245
+ getAssetRuleset(id, options) {
246
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/asset/${id}`, options: options });
247
+ }
248
+ /**
249
+ * HTTP PUT /rules/asset/{id}
250
+ * Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
251
+ */
252
+ updateAssetRuleset(id, ruleset, options) {
253
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/asset/${id}`, data: ruleset, options: options });
254
+ }
255
+ /**
256
+ * HTTP GET /rules/geofences/{assetId}
257
+ * Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
258
+ */
259
+ getAssetGeofences(assetId, options) {
260
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/geofences/${assetId}`, options: options });
261
+ }
262
+ /**
263
+ * HTTP GET /rules/info/asset/{assetId}
264
+ * Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
265
+ */
266
+ getAssetEngineInfo(assetId, options) {
267
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/asset/${assetId}`, options: options });
268
+ }
269
+ /**
270
+ * HTTP GET /rules/info/global
271
+ * Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
272
+ */
273
+ getGlobalEngineInfo(options) {
274
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/global`, options: options });
275
+ }
276
+ /**
277
+ * HTTP GET /rules/info/realm/{realm}
278
+ * Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
279
+ */
280
+ getRealmEngineInfo(realm, options) {
281
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/info/realm/${realm}`, options: options });
282
+ }
283
+ /**
284
+ * HTTP POST /rules/realm
285
+ * Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
286
+ */
287
+ createRealmRuleset(ruleset, options) {
288
+ return this.httpClient.request({ method: "POST", url: uriEncoding `rules/realm`, data: ruleset, options: options });
289
+ }
290
+ /**
291
+ * HTTP GET /rules/realm/for/{realm}
292
+ * Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
293
+ */
294
+ getRealmRulesets(realm, queryParams, options) {
295
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/realm/for/${realm}`, queryParams: queryParams, options: options });
296
+ }
297
+ /**
298
+ * HTTP DELETE /rules/realm/{id}
299
+ * Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
300
+ */
301
+ deleteRealmRuleset(id, options) {
302
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/realm/${id}`, options: options });
303
+ }
304
+ /**
305
+ * HTTP GET /rules/realm/{id}
306
+ * Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
307
+ */
308
+ getRealmRuleset(id, options) {
309
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/realm/${id}`, options: options });
310
+ }
311
+ /**
312
+ * HTTP PUT /rules/realm/{id}
313
+ * Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
314
+ */
315
+ updateRealmRuleset(id, ruleset, options) {
316
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/realm/${id}`, data: ruleset, options: options });
317
+ }
318
+ /**
319
+ * HTTP DELETE /rules/{id}
320
+ * Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
321
+ */
322
+ deleteGlobalRuleset(id, options) {
323
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `rules/${id}`, options: options });
324
+ }
325
+ /**
326
+ * HTTP GET /rules/{id}
327
+ * Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
328
+ */
329
+ getGlobalRuleset(id, options) {
330
+ return this.httpClient.request({ method: "GET", url: uriEncoding `rules/${id}`, options: options });
331
+ }
332
+ /**
333
+ * HTTP PUT /rules/{id}
334
+ * Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
335
+ */
336
+ updateGlobalRuleset(id, ruleset, options) {
337
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `rules/${id}`, data: ruleset, options: options });
338
+ }
339
+ }
340
+ export class FlowResourceClient {
341
+ constructor(httpClient) {
342
+ this.httpClient = httpClient;
343
+ }
344
+ /**
345
+ * HTTP GET /flow
346
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
347
+ */
348
+ getAllNodeDefinitions(options) {
349
+ return this.httpClient.request({ method: "GET", url: uriEncoding `flow`, options: options });
350
+ }
351
+ /**
352
+ * HTTP GET /flow/{name}
353
+ * Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
354
+ */
355
+ getNodeDefinition(name, options) {
356
+ return this.httpClient.request({ method: "GET", url: uriEncoding `flow/${name}`, options: options });
357
+ }
358
+ /**
359
+ * HTTP GET /flow/{type}
360
+ * Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
361
+ */
362
+ getAllNodeDefinitionsByType(type, options) {
363
+ return this.httpClient.request({ method: "GET", url: uriEncoding `flow/${type}`, options: options });
364
+ }
365
+ }
366
+ export class AgentResourceClient {
367
+ constructor(httpClient) {
368
+ this.httpClient = httpClient;
369
+ }
370
+ /**
371
+ * HTTP GET /agent/assetDiscovery/{agentId}
372
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
373
+ */
374
+ doProtocolAssetDiscovery(agentId, queryParams, options) {
375
+ return this.httpClient.request({ method: "GET", url: uriEncoding `agent/assetDiscovery/${agentId}`, queryParams: queryParams, options: options });
376
+ }
377
+ /**
378
+ * HTTP POST /agent/assetImport/{agentId}
379
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
380
+ */
381
+ doProtocolAssetImport(agentId, fileInfo, queryParams, options) {
382
+ return this.httpClient.request({ method: "POST", url: uriEncoding `agent/assetImport/${agentId}`, queryParams: queryParams, data: fileInfo, options: options });
383
+ }
384
+ /**
385
+ * HTTP GET /agent/instanceDiscovery/{agentType}
386
+ * Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
387
+ */
388
+ doProtocolInstanceDiscovery(agentType, queryParams, options) {
389
+ return this.httpClient.request({ method: "GET", url: uriEncoding `agent/instanceDiscovery/${agentType}`, queryParams: queryParams, options: options });
390
+ }
391
+ }
392
+ export class StatusResourceClient {
393
+ constructor(httpClient) {
394
+ this.httpClient = httpClient;
395
+ }
396
+ /**
397
+ * HTTP GET /health
398
+ * Java method: org.openremote.model.system.StatusResource.getHealthStatus
399
+ */
400
+ getHealthStatus(options) {
401
+ return this.httpClient.request({ method: "GET", url: uriEncoding `health`, options: options });
402
+ }
403
+ /**
404
+ * HTTP GET /info
405
+ * Java method: org.openremote.model.system.StatusResource.getInfo
406
+ */
407
+ getInfo(options) {
408
+ return this.httpClient.request({ method: "GET", url: uriEncoding `info`, options: options });
409
+ }
410
+ }
411
+ export class MapResourceClient {
412
+ constructor(httpClient) {
413
+ this.httpClient = httpClient;
414
+ }
415
+ /**
416
+ * HTTP GET /map
417
+ * Java method: org.openremote.model.map.MapResource.getSettings
418
+ */
419
+ getSettings(options) {
420
+ return this.httpClient.request({ method: "GET", url: uriEncoding `map`, options: options });
421
+ }
422
+ /**
423
+ * HTTP PUT /map
424
+ * Java method: org.openremote.model.map.MapResource.saveSettings
425
+ */
426
+ saveSettings(mapConfig, options) {
427
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `map`, data: mapConfig, options: options });
428
+ }
429
+ /**
430
+ * HTTP DELETE /map/deleteMap
431
+ * Java method: org.openremote.model.map.MapResource.deleteMap
432
+ */
433
+ deleteMap(options) {
434
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `map/deleteMap`, options: options });
435
+ }
436
+ /**
437
+ * HTTP GET /map/getCustomMapInfo
438
+ * Java method: org.openremote.model.map.MapResource.getCustomMapInfo
439
+ */
440
+ getCustomMapInfo(options) {
441
+ return this.httpClient.request({ method: "GET", url: uriEncoding `map/getCustomMapInfo`, options: options });
442
+ }
443
+ /**
444
+ * HTTP GET /map/js
445
+ * Java method: org.openremote.model.map.MapResource.getSettingsJs
446
+ */
447
+ getSettingsJs(options) {
448
+ return this.httpClient.request({ method: "GET", url: uriEncoding `map/js`, options: options });
449
+ }
450
+ /**
451
+ * HTTP GET /map/tile/{zoom}/{column}/{row}
452
+ * Java method: org.openremote.model.map.MapResource.getTile
453
+ */
454
+ getTile(zoom, column, row, options) {
455
+ return this.httpClient.request({ method: "GET", url: uriEncoding `map/tile/${zoom}/${column}/${row}`, options: options });
456
+ }
457
+ /**
458
+ * HTTP POST /map/upload
459
+ * Java method: org.openremote.model.map.MapResource.uploadMap
460
+ */
461
+ uploadMap(queryParams, options) {
462
+ return this.httpClient.request({ method: "POST", url: uriEncoding `map/upload`, queryParams: queryParams, options: options });
463
+ }
464
+ }
465
+ export class ConfigurationResourceClient {
466
+ constructor(httpClient) {
467
+ this.httpClient = httpClient;
468
+ }
469
+ /**
470
+ * HTTP GET /configuration/manager
471
+ * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
472
+ */
473
+ getManagerConfig(options) {
474
+ return this.httpClient.request({ method: "GET", url: uriEncoding `configuration/manager`, options: options });
475
+ }
476
+ /**
477
+ * HTTP PUT /configuration/manager
478
+ * Java method: org.openremote.model.manager.ConfigurationResource.update
479
+ */
480
+ update(managerConfiguration, options) {
481
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `configuration/manager`, data: managerConfiguration, options: options });
482
+ }
483
+ /**
484
+ * HTTP POST /configuration/manager/file
485
+ * Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
486
+ */
487
+ fileUpload(fileInfo, queryParams, options) {
488
+ return this.httpClient.request({ method: "POST", url: uriEncoding `configuration/manager/file`, queryParams: queryParams, data: fileInfo, options: options });
489
+ }
490
+ /**
491
+ * HTTP GET /configuration/manager/image/{filename: .+}
492
+ * Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
493
+ */
494
+ getManagerConfigImage(filename, options) {
495
+ return this.httpClient.request({ method: "GET", url: uriEncoding `configuration/manager/image/${filename}`, options: options });
496
+ }
497
+ }
498
+ export class AlarmResourceClient {
499
+ constructor(httpClient) {
500
+ this.httpClient = httpClient;
501
+ }
502
+ /**
503
+ * HTTP POST /alarm
504
+ * Java method: org.openremote.model.alarm.AlarmResource.createAlarm
505
+ */
506
+ createAlarm(alarm, queryParams, options) {
507
+ return this.httpClient.request({ method: "POST", url: uriEncoding `alarm`, queryParams: queryParams, data: alarm, options: options });
508
+ }
509
+ /**
510
+ * HTTP GET /alarm
511
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarms
512
+ */
513
+ getAlarms(queryParams, options) {
514
+ return this.httpClient.request({ method: "GET", url: uriEncoding `alarm`, queryParams: queryParams, options: options });
515
+ }
516
+ /**
517
+ * HTTP DELETE /alarm
518
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
519
+ */
520
+ removeAlarms(ids, options) {
521
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `alarm`, data: ids, options: options });
522
+ }
523
+ /**
524
+ * HTTP PUT /alarm/assets
525
+ * Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
526
+ */
527
+ setAssetLinks(links, options) {
528
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `alarm/assets`, data: links, options: options });
529
+ }
530
+ /**
531
+ * HTTP GET /alarm/{alarmId}
532
+ * Java method: org.openremote.model.alarm.AlarmResource.getAlarm
533
+ */
534
+ getAlarm(alarmId, options) {
535
+ return this.httpClient.request({ method: "GET", url: uriEncoding `alarm/${alarmId}`, options: options });
536
+ }
537
+ /**
538
+ * HTTP DELETE /alarm/{alarmId}
539
+ * Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
540
+ */
541
+ removeAlarm(alarmId, options) {
542
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `alarm/${alarmId}`, options: options });
543
+ }
544
+ /**
545
+ * HTTP PUT /alarm/{alarmId}
546
+ * Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
547
+ */
548
+ updateAlarm(alarmId, alarm, options) {
549
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `alarm/${alarmId}`, data: alarm, options: options });
550
+ }
551
+ /**
552
+ * HTTP GET /alarm/{alarmId}/assets
553
+ * Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
554
+ */
555
+ getAssetLinks(alarmId, queryParams, options) {
556
+ return this.httpClient.request({ method: "GET", url: uriEncoding `alarm/${alarmId}/assets`, queryParams: queryParams, options: options });
557
+ }
558
+ }
559
+ export class AssetResourceClient {
560
+ constructor(httpClient) {
561
+ this.httpClient = httpClient;
562
+ }
563
+ /**
564
+ * HTTP POST /asset
565
+ * Java method: org.openremote.model.asset.AssetResource.create
566
+ */
567
+ create(asset, options) {
568
+ return this.httpClient.request({ method: "POST", url: uriEncoding `asset`, data: asset, options: options });
569
+ }
570
+ /**
571
+ * HTTP DELETE /asset
572
+ * Java method: org.openremote.model.asset.AssetResource.delete
573
+ */
574
+ delete(queryParams, options) {
575
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset`, queryParams: queryParams, options: options });
576
+ }
577
+ /**
578
+ * HTTP PUT /asset/attributes
579
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
580
+ */
581
+ writeAttributeValues(attributeStates, options) {
582
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/attributes`, data: attributeStates, options: options });
583
+ }
584
+ /**
585
+ * HTTP PUT /asset/attributes/timestamp
586
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
587
+ */
588
+ writeAttributeEvents(attributeEvents, options) {
589
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/attributes/timestamp`, data: attributeEvents, options: options });
590
+ }
591
+ /**
592
+ * HTTP DELETE /asset/parent
593
+ * Java method: org.openremote.model.asset.AssetResource.updateNoneParent
594
+ */
595
+ updateNoneParent(queryParams, options) {
596
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset/parent`, queryParams: queryParams, options: options });
597
+ }
598
+ /**
599
+ * HTTP GET /asset/partial/{assetId}
600
+ * Java method: org.openremote.model.asset.AssetResource.getPartial
601
+ */
602
+ getPartial(assetId, options) {
603
+ return this.httpClient.request({ method: "GET", url: uriEncoding `asset/partial/${assetId}`, options: options });
604
+ }
605
+ /**
606
+ * HTTP POST /asset/query
607
+ * Java method: org.openremote.model.asset.AssetResource.queryAssets
608
+ */
609
+ queryAssets(query, options) {
610
+ return this.httpClient.request({ method: "POST", url: uriEncoding `asset/query`, data: query, options: options });
611
+ }
612
+ /**
613
+ * HTTP GET /asset/user/current
614
+ * Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
615
+ */
616
+ getCurrentUserAssets(options) {
617
+ return this.httpClient.request({ method: "GET", url: uriEncoding `asset/user/current`, options: options });
618
+ }
619
+ /**
620
+ * HTTP POST /asset/user/link
621
+ * Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
622
+ */
623
+ createUserAssetLinks(userAssets, options) {
624
+ return this.httpClient.request({ method: "POST", url: uriEncoding `asset/user/link`, data: userAssets, options: options });
625
+ }
626
+ /**
627
+ * HTTP GET /asset/user/link
628
+ * Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
629
+ */
630
+ getUserAssetLinks(queryParams, options) {
631
+ return this.httpClient.request({ method: "GET", url: uriEncoding `asset/user/link`, queryParams: queryParams, options: options });
632
+ }
633
+ /**
634
+ * HTTP POST /asset/user/link/delete
635
+ * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
636
+ */
637
+ deleteUserAssetLinks(userAssets, options) {
638
+ return this.httpClient.request({ method: "POST", url: uriEncoding `asset/user/link/delete`, data: userAssets, options: options });
639
+ }
640
+ /**
641
+ * HTTP DELETE /asset/user/link/{realm}/{userId}
642
+ * Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
643
+ */
644
+ deleteAllUserAssetLinks(realm, userId, options) {
645
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset/user/link/${realm}/${userId}`, options: options });
646
+ }
647
+ /**
648
+ * HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
649
+ * Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
650
+ */
651
+ deleteUserAssetLink(realm, userId, assetId, options) {
652
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `asset/user/link/${realm}/${userId}/${assetId}`, options: options });
653
+ }
654
+ /**
655
+ * HTTP GET /asset/{assetId}
656
+ * Java method: org.openremote.model.asset.AssetResource.get
657
+ */
658
+ get(assetId, options) {
659
+ return this.httpClient.request({ method: "GET", url: uriEncoding `asset/${assetId}`, options: options });
660
+ }
661
+ /**
662
+ * HTTP PUT /asset/{assetId}
663
+ * Java method: org.openremote.model.asset.AssetResource.update
664
+ */
665
+ update(assetId, asset, options) {
666
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${assetId}`, data: asset, options: options });
667
+ }
668
+ /**
669
+ * HTTP PUT /asset/{assetId}/attribute/{attributeName}
670
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
671
+ */
672
+ writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId, attributeName, value, options) {
673
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${assetId}/attribute/${attributeName}`, data: value, options: options });
674
+ }
675
+ /**
676
+ * HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
677
+ * Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
678
+ */
679
+ writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId, attributeName, timestamp, value, options) {
680
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${assetId}/attribute/${attributeName}/${timestamp}`, data: value, options: options });
681
+ }
682
+ /**
683
+ * HTTP PUT /asset/{parentAssetId}/child
684
+ * Java method: org.openremote.model.asset.AssetResource.updateParent
685
+ */
686
+ updateParent(parentAssetId, queryParams, options) {
687
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/${parentAssetId}/child`, queryParams: queryParams, options: options });
688
+ }
689
+ }
690
+ export class SyslogResourceClient {
691
+ constructor(httpClient) {
692
+ this.httpClient = httpClient;
693
+ }
694
+ /**
695
+ * HTTP GET /syslog/config
696
+ * Java method: org.openremote.model.syslog.SyslogResource.getConfig
697
+ */
698
+ getConfig(options) {
699
+ return this.httpClient.request({ method: "GET", url: uriEncoding `syslog/config`, options: options });
700
+ }
701
+ /**
702
+ * HTTP PUT /syslog/config
703
+ * Java method: org.openremote.model.syslog.SyslogResource.updateConfig
704
+ */
705
+ updateConfig(config, options) {
706
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `syslog/config`, data: config, options: options });
707
+ }
708
+ /**
709
+ * HTTP DELETE /syslog/event
710
+ * Java method: org.openremote.model.syslog.SyslogResource.clearEvents
711
+ */
712
+ clearEvents(options) {
713
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `syslog/event`, options: options });
714
+ }
715
+ /**
716
+ * HTTP GET /syslog/event
717
+ * Java method: org.openremote.model.syslog.SyslogResource.getEvents
718
+ */
719
+ getEvents(queryParams, options) {
720
+ return this.httpClient.request({ method: "GET", url: uriEncoding `syslog/event`, queryParams: queryParams, options: options });
721
+ }
722
+ }
723
+ export class AssetPredictedDatapointResourceClient {
724
+ constructor(httpClient) {
725
+ this.httpClient = httpClient;
726
+ }
727
+ /**
728
+ * HTTP POST /asset/predicted/{assetId}/{attributeName}
729
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
730
+ */
731
+ getPredictedDatapoints(assetId, attributeName, query, options) {
732
+ return this.httpClient.request({ method: "POST", url: uriEncoding `asset/predicted/${assetId}/${attributeName}`, data: query, options: options });
733
+ }
734
+ /**
735
+ * HTTP PUT /asset/predicted/{assetId}/{attributeName}
736
+ * Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
737
+ */
738
+ writePredictedDatapoints(assetId, attributeName, predictedDatapoints, options) {
739
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `asset/predicted/${assetId}/${attributeName}`, data: predictedDatapoints, options: options });
740
+ }
741
+ }
742
+ export class UserResourceClient {
743
+ constructor(httpClient) {
744
+ this.httpClient = httpClient;
745
+ }
746
+ /**
747
+ * HTTP PUT /user/locale
748
+ * Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
749
+ */
750
+ updateCurrentUserLocale(locale, options) {
751
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `user/locale`, data: locale, options: options });
752
+ }
753
+ /**
754
+ * HTTP POST /user/query
755
+ * Java method: org.openremote.model.security.UserResource.query
756
+ */
757
+ query(query, options) {
758
+ return this.httpClient.request({ method: "POST", url: uriEncoding `user/query`, data: query, options: options });
759
+ }
760
+ /**
761
+ * HTTP PUT /user/request-password-reset
762
+ * Java method: org.openremote.model.security.UserResource.requestPasswordResetCurrent
763
+ */
764
+ requestPasswordResetCurrent(options) {
765
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `user/request-password-reset`, options: options });
766
+ }
767
+ /**
768
+ * HTTP PUT /user/reset-password
769
+ * Java method: org.openremote.model.security.UserResource.updatePasswordCurrent
770
+ */
771
+ updatePasswordCurrent(credential, options) {
772
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `user/reset-password`, data: credential, options: options });
773
+ }
774
+ /**
775
+ * HTTP PUT /user/update
776
+ * Java method: org.openremote.model.security.UserResource.updateCurrent
777
+ */
778
+ updateCurrent(user, options) {
779
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `user/update`, data: user, options: options });
780
+ }
781
+ /**
782
+ * HTTP GET /user/user
783
+ * Java method: org.openremote.model.security.UserResource.getCurrent
784
+ */
785
+ getCurrent(options) {
786
+ return this.httpClient.request({ method: "GET", url: uriEncoding `user/user`, options: options });
787
+ }
788
+ /**
789
+ * HTTP GET /user/userRealmRoles
790
+ * Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
791
+ */
792
+ getCurrentUserRealmRoles(options) {
793
+ return this.httpClient.request({ method: "GET", url: uriEncoding `user/userRealmRoles`, options: options });
794
+ }
795
+ /**
796
+ * HTTP GET /user/userRoles/{clientId}
797
+ * Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
798
+ */
799
+ getCurrentUserClientRoles(clientId, options) {
800
+ return this.httpClient.request({ method: "GET", url: uriEncoding `user/userRoles/${clientId}`, options: options });
801
+ }
802
+ /**
803
+ * HTTP GET /user/{realm}/disconnect/{sessionID}
804
+ * Java method: org.openremote.model.security.UserResource.disconnectUserSession
805
+ */
806
+ disconnectUserSession(realm, sessionID, options) {
807
+ return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/disconnect/${sessionID}`, options: options });
808
+ }
809
+ /**
810
+ * HTTP PUT /user/{realm}/request-password-reset/{userId}
811
+ * Java method: org.openremote.model.security.UserResource.requestPasswordReset
812
+ */
813
+ requestPasswordReset(realm, userId, options) {
814
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/request-password-reset/${userId}`, options: options });
815
+ }
816
+ /**
817
+ * HTTP PUT /user/{realm}/reset-password/{userId}
818
+ * Java method: org.openremote.model.security.UserResource.updatePassword
819
+ */
820
+ updatePassword(realm, userId, credential, options) {
821
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/reset-password/${userId}`, data: credential, options: options });
822
+ }
823
+ /**
824
+ * HTTP GET /user/{realm}/reset-secret/{userId}
825
+ * Java method: org.openremote.model.security.UserResource.resetSecret
826
+ */
827
+ resetSecret(realm, userId, options) {
828
+ return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/reset-secret/${userId}`, options: options });
829
+ }
830
+ /**
831
+ * HTTP PUT /user/{realm}/roles
832
+ * Java method: org.openremote.model.security.UserResource.updateRoles
833
+ */
834
+ updateRoles(realm, roles, options) {
835
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/roles`, data: roles, options: options });
836
+ }
837
+ /**
838
+ * HTTP GET /user/{realm}/userRealmRoles/{userId}
839
+ * Java method: org.openremote.model.security.UserResource.getUserRealmRoles
840
+ */
841
+ getUserRealmRoles(realm, userId, options) {
842
+ return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/userRealmRoles/${userId}`, options: options });
843
+ }
844
+ /**
845
+ * HTTP PUT /user/{realm}/userRealmRoles/{userId}
846
+ * Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
847
+ */
848
+ updateUserRealmRoles(realm, userId, roles, options) {
849
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/userRealmRoles/${userId}`, data: roles, options: options });
850
+ }
851
+ /**
852
+ * HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
853
+ * Java method: org.openremote.model.security.UserResource.getUserClientRoles
854
+ */
855
+ getUserClientRoles(realm, userId, clientId, options) {
856
+ return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/userRoles/${userId}/${clientId}`, options: options });
857
+ }
858
+ /**
859
+ * HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
860
+ * Java method: org.openremote.model.security.UserResource.updateUserClientRoles
861
+ */
862
+ updateUserClientRoles(realm, userId, clientId, roles, options) {
863
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/userRoles/${userId}/${clientId}`, data: roles, options: options });
864
+ }
865
+ /**
866
+ * HTTP GET /user/{realm}/userSessions/{userId}
867
+ * Java method: org.openremote.model.security.UserResource.getUserSessions
868
+ */
869
+ getUserSessions(realm, userId, options) {
870
+ return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/userSessions/${userId}`, options: options });
871
+ }
872
+ /**
873
+ * HTTP POST /user/{realm}/users
874
+ * Java method: org.openremote.model.security.UserResource.create
875
+ */
876
+ create(realm, user, options) {
877
+ return this.httpClient.request({ method: "POST", url: uriEncoding `user/${realm}/users`, data: user, options: options });
878
+ }
879
+ /**
880
+ * HTTP PUT /user/{realm}/users
881
+ * Java method: org.openremote.model.security.UserResource.update
882
+ */
883
+ update(realm, user, options) {
884
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/users`, data: user, options: options });
885
+ }
886
+ /**
887
+ * HTTP DELETE /user/{realm}/users/{userId}
888
+ * Java method: org.openremote.model.security.UserResource.delete
889
+ */
890
+ delete(realm, userId, options) {
891
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `user/${realm}/users/${userId}`, options: options });
892
+ }
893
+ /**
894
+ * HTTP GET /user/{realm}/{clientId}/roles
895
+ * Java method: org.openremote.model.security.UserResource.getClientRoles
896
+ */
897
+ getClientRoles(realm, clientId, options) {
898
+ return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/${clientId}/roles`, options: options });
899
+ }
900
+ /**
901
+ * HTTP PUT /user/{realm}/{clientId}/roles
902
+ * Java method: org.openremote.model.security.UserResource.updateClientRoles
903
+ */
904
+ updateClientRoles(realm, clientId, roles, options) {
905
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `user/${realm}/${clientId}/roles`, data: roles, options: options });
906
+ }
907
+ /**
908
+ * HTTP GET /user/{realm}/{userId}
909
+ * Java method: org.openremote.model.security.UserResource.get
910
+ */
911
+ get(realm, userId, options) {
912
+ return this.httpClient.request({ method: "GET", url: uriEncoding `user/${realm}/${userId}`, options: options });
913
+ }
914
+ }
915
+ export class RealmResourceClient {
916
+ constructor(httpClient) {
917
+ this.httpClient = httpClient;
918
+ }
919
+ /**
920
+ * HTTP POST /realm
921
+ * Java method: org.openremote.model.security.RealmResource.create
922
+ */
923
+ create(realm, options) {
924
+ return this.httpClient.request({ method: "POST", url: uriEncoding `realm`, data: realm, options: options });
925
+ }
926
+ /**
927
+ * HTTP GET /realm
928
+ * Java method: org.openremote.model.security.RealmResource.getAll
929
+ */
930
+ getAll(options) {
931
+ return this.httpClient.request({ method: "GET", url: uriEncoding `realm`, options: options });
932
+ }
933
+ /**
934
+ * HTTP GET /realm/accessible
935
+ * Java method: org.openremote.model.security.RealmResource.getAccessible
936
+ */
937
+ getAccessible(options) {
938
+ return this.httpClient.request({ method: "GET", url: uriEncoding `realm/accessible`, options: options });
939
+ }
940
+ /**
941
+ * HTTP DELETE /realm/{name}
942
+ * Java method: org.openremote.model.security.RealmResource.delete
943
+ */
944
+ delete(name, options) {
945
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `realm/${name}`, options: options });
946
+ }
947
+ /**
948
+ * HTTP GET /realm/{name}
949
+ * Java method: org.openremote.model.security.RealmResource.get
950
+ */
951
+ get(name, options) {
952
+ return this.httpClient.request({ method: "GET", url: uriEncoding `realm/${name}`, options: options });
953
+ }
954
+ /**
955
+ * HTTP PUT /realm/{name}
956
+ * Java method: org.openremote.model.security.RealmResource.update
957
+ */
958
+ update(name, realm, options) {
959
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `realm/${name}`, data: realm, options: options });
960
+ }
961
+ }
962
+ export class GatewayClientResourceClient {
963
+ constructor(httpClient) {
964
+ this.httpClient = httpClient;
965
+ }
966
+ /**
967
+ * HTTP DELETE /gateway/connection
968
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
969
+ */
970
+ deleteConnections(queryParams, options) {
971
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `gateway/connection`, queryParams: queryParams, options: options });
972
+ }
973
+ /**
974
+ * HTTP GET /gateway/connection
975
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
976
+ */
977
+ getConnections(options) {
978
+ return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/connection`, options: options });
979
+ }
980
+ /**
981
+ * HTTP DELETE /gateway/connection/{realm}
982
+ * Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
983
+ */
984
+ deleteConnection(realm, options) {
985
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `gateway/connection/${realm}`, options: options });
986
+ }
987
+ /**
988
+ * HTTP GET /gateway/connection/{realm}
989
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
990
+ */
991
+ getConnection(realm, options) {
992
+ return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/connection/${realm}`, options: options });
993
+ }
994
+ /**
995
+ * HTTP PUT /gateway/connection/{realm}
996
+ * Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
997
+ */
998
+ setConnection(realm, connection, options) {
999
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `gateway/connection/${realm}`, data: connection, options: options });
1000
+ }
1001
+ /**
1002
+ * HTTP GET /gateway/status/{realm}
1003
+ * Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
1004
+ */
1005
+ getConnectionStatus(realm, options) {
1006
+ return this.httpClient.request({ method: "GET", url: uriEncoding `gateway/status/${realm}`, options: options });
1007
+ }
1008
+ }
1009
+ export class DashboardResourceClient {
1010
+ constructor(httpClient) {
1011
+ this.httpClient = httpClient;
1012
+ }
1013
+ /**
1014
+ * HTTP POST /dashboard
1015
+ * Java method: org.openremote.model.dashboard.DashboardResource.create
1016
+ */
1017
+ create(dashboard, options) {
1018
+ return this.httpClient.request({ method: "POST", url: uriEncoding `dashboard`, data: dashboard, options: options });
1019
+ }
1020
+ /**
1021
+ * HTTP PUT /dashboard
1022
+ * Java method: org.openremote.model.dashboard.DashboardResource.update
1023
+ */
1024
+ update(dashboard, options) {
1025
+ return this.httpClient.request({ method: "PUT", url: uriEncoding `dashboard`, data: dashboard, options: options });
1026
+ }
1027
+ /**
1028
+ * HTTP GET /dashboard/all/{realm}
1029
+ * Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
1030
+ */
1031
+ getAllRealmDashboards(realm, options) {
1032
+ return this.httpClient.request({ method: "GET", url: uriEncoding `dashboard/all/${realm}`, options: options });
1033
+ }
1034
+ /**
1035
+ * HTTP POST /dashboard/query
1036
+ * Java method: org.openremote.model.dashboard.DashboardResource.query
1037
+ */
1038
+ query(dashboardQuery, options) {
1039
+ return this.httpClient.request({ method: "POST", url: uriEncoding `dashboard/query`, data: dashboardQuery, options: options });
1040
+ }
1041
+ /**
1042
+ * HTTP DELETE /dashboard/{realm}/{dashboardId}
1043
+ * Java method: org.openremote.model.dashboard.DashboardResource.delete
1044
+ */
1045
+ delete(realm, dashboardId, options) {
1046
+ return this.httpClient.request({ method: "DELETE", url: uriEncoding `dashboard/${realm}/${dashboardId}`, options: options });
1047
+ }
1048
+ /**
1049
+ * HTTP GET /dashboard/{realm}/{dashboardId}
1050
+ * Java method: org.openremote.model.dashboard.DashboardResource.get
1051
+ */
1052
+ get(realm, dashboardId, options) {
1053
+ return this.httpClient.request({ method: "GET", url: uriEncoding `dashboard/${realm}/${dashboardId}`, options: options });
1054
+ }
1055
+ }
1056
+ export class AppResourceClient {
1057
+ constructor(httpClient) {
1058
+ this.httpClient = httpClient;
1059
+ }
1060
+ /**
1061
+ * HTTP GET /apps
1062
+ * Java method: org.openremote.model.apps.AppResource.getApps
1063
+ */
1064
+ getApps(options) {
1065
+ return this.httpClient.request({ method: "GET", url: uriEncoding `apps`, options: options });
1066
+ }
1067
+ /**
1068
+ * HTTP GET /apps/consoleConfig
1069
+ * Java method: org.openremote.model.apps.AppResource.getConsoleConfig
1070
+ */
1071
+ getConsoleConfig(options) {
1072
+ return this.httpClient.request({ method: "GET", url: uriEncoding `apps/consoleConfig`, options: options });
1073
+ }
1074
+ /**
1075
+ * HTTP GET /apps/info
1076
+ * Java method: org.openremote.model.apps.AppResource.getAppInfos
1077
+ */
1078
+ getAppInfos(options) {
1079
+ return this.httpClient.request({ method: "GET", url: uriEncoding `apps/info`, options: options });
1080
+ }
1081
+ }
1082
+ function uriEncoding(template, ...substitutions) {
1083
+ let result = "";
1084
+ for (let i = 0; i < substitutions.length; i++) {
1085
+ result += template[i];
1086
+ result += encodeURIComponent(substitutions[i]);
1087
+ }
1088
+ result += template[template.length - 1];
1089
+ return result;
1090
+ }
1091
+ // Added by 'AggregatedApiClient' extension
1092
+ export class ApiClient {
1093
+ constructor(baseURL, axiosInstance = axios.create()) {
1094
+ this._assetModelResource = new AxiosAssetModelResourceClient(baseURL, axiosInstance);
1095
+ this._assetDatapointResource = new AxiosAssetDatapointResourceClient(baseURL, axiosInstance);
1096
+ this._consoleResource = new AxiosConsoleResourceClient(baseURL, axiosInstance);
1097
+ this._gatewayServiceResource = new AxiosGatewayServiceResourceClient(baseURL, axiosInstance);
1098
+ this._provisioningResource = new AxiosProvisioningResourceClient(baseURL, axiosInstance);
1099
+ this._notificationResource = new AxiosNotificationResourceClient(baseURL, axiosInstance);
1100
+ this._rulesResource = new AxiosRulesResourceClient(baseURL, axiosInstance);
1101
+ this._flowResource = new AxiosFlowResourceClient(baseURL, axiosInstance);
1102
+ this._agentResource = new AxiosAgentResourceClient(baseURL, axiosInstance);
1103
+ this._statusResource = new AxiosStatusResourceClient(baseURL, axiosInstance);
1104
+ this._mapResource = new AxiosMapResourceClient(baseURL, axiosInstance);
1105
+ this._configurationResource = new AxiosConfigurationResourceClient(baseURL, axiosInstance);
1106
+ this._alarmResource = new AxiosAlarmResourceClient(baseURL, axiosInstance);
1107
+ this._assetResource = new AxiosAssetResourceClient(baseURL, axiosInstance);
1108
+ this._syslogResource = new AxiosSyslogResourceClient(baseURL, axiosInstance);
1109
+ this._assetPredictedDatapointResource = new AxiosAssetPredictedDatapointResourceClient(baseURL, axiosInstance);
1110
+ this._userResource = new AxiosUserResourceClient(baseURL, axiosInstance);
1111
+ this._realmResource = new AxiosRealmResourceClient(baseURL, axiosInstance);
1112
+ this._gatewayClientResource = new AxiosGatewayClientResourceClient(baseURL, axiosInstance);
1113
+ this._dashboardResource = new AxiosDashboardResourceClient(baseURL, axiosInstance);
1114
+ this._appResource = new AxiosAppResourceClient(baseURL, axiosInstance);
1115
+ this._assetResource = new AxiosAssetResourceClient(baseURL, axiosInstance);
1116
+ }
1117
+ get AssetModelResource() {
1118
+ return this._assetModelResource;
1119
+ }
1120
+ get AssetDatapointResource() {
1121
+ return this._assetDatapointResource;
1122
+ }
1123
+ get ConsoleResource() {
1124
+ return this._consoleResource;
1125
+ }
1126
+ get GatewayServiceResource() {
1127
+ return this._gatewayServiceResource;
1128
+ }
1129
+ get ProvisioningResource() {
1130
+ return this._provisioningResource;
1131
+ }
1132
+ get NotificationResource() {
1133
+ return this._notificationResource;
1134
+ }
1135
+ get RulesResource() {
1136
+ return this._rulesResource;
1137
+ }
1138
+ get FlowResource() {
1139
+ return this._flowResource;
1140
+ }
1141
+ get AgentResource() {
1142
+ return this._agentResource;
1143
+ }
1144
+ get StatusResource() {
1145
+ return this._statusResource;
1146
+ }
1147
+ get MapResource() {
1148
+ return this._mapResource;
1149
+ }
1150
+ get ConfigurationResource() {
1151
+ return this._configurationResource;
1152
+ }
1153
+ get AlarmResource() {
1154
+ return this._alarmResource;
1155
+ }
1156
+ get AssetResource() {
1157
+ return this._assetResource;
1158
+ }
1159
+ get SyslogResource() {
1160
+ return this._syslogResource;
1161
+ }
1162
+ get AssetPredictedDatapointResource() {
1163
+ return this._assetPredictedDatapointResource;
1164
+ }
1165
+ get UserResource() {
1166
+ return this._userResource;
1167
+ }
1168
+ get RealmResource() {
1169
+ return this._realmResource;
1170
+ }
1171
+ get GatewayClientResource() {
1172
+ return this._gatewayClientResource;
1173
+ }
1174
+ get DashboardResource() {
1175
+ return this._dashboardResource;
1176
+ }
1177
+ get AppResource() {
1178
+ return this._appResource;
1179
+ }
1180
+ }
1181
+ // Added by 'AxiosClientExtension' extension
1182
+ import axios from "axios";
1183
+ class AxiosHttpClient {
1184
+ constructor(axios) {
1185
+ this.axios = axios;
1186
+ }
1187
+ request(requestConfig) {
1188
+ function assign(target, source) {
1189
+ if (source != undefined) {
1190
+ for (const key in source) {
1191
+ if (source.hasOwnProperty(key)) {
1192
+ target[key] = source[key];
1193
+ }
1194
+ }
1195
+ }
1196
+ return target;
1197
+ }
1198
+ const config = {};
1199
+ config.method = requestConfig.method; // `string` in axios 0.16.0, `Method` in axios 0.19.0
1200
+ config.url = requestConfig.url;
1201
+ config.params = requestConfig.queryParams;
1202
+ config.data = requestConfig.data;
1203
+ assign(config, requestConfig.options);
1204
+ const copyFn = requestConfig.copyFn;
1205
+ const axiosResponse = this.axios.request(config);
1206
+ return axiosResponse.then(axiosResponse => {
1207
+ if (copyFn && axiosResponse.data) {
1208
+ axiosResponse.originalData = axiosResponse.data;
1209
+ axiosResponse.data = copyFn(axiosResponse.data);
1210
+ }
1211
+ return axiosResponse;
1212
+ });
1213
+ }
1214
+ }
1215
+ export class AxiosAssetModelResourceClient extends AssetModelResourceClient {
1216
+ constructor(baseURL, axiosInstance = axios.create()) {
1217
+ axiosInstance.defaults.baseURL = baseURL;
1218
+ super(new AxiosHttpClient(axiosInstance));
1219
+ }
1220
+ }
1221
+ export class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient {
1222
+ constructor(baseURL, axiosInstance = axios.create()) {
1223
+ axiosInstance.defaults.baseURL = baseURL;
1224
+ super(new AxiosHttpClient(axiosInstance));
1225
+ }
1226
+ }
1227
+ export class AxiosConsoleResourceClient extends ConsoleResourceClient {
1228
+ constructor(baseURL, axiosInstance = axios.create()) {
1229
+ axiosInstance.defaults.baseURL = baseURL;
1230
+ super(new AxiosHttpClient(axiosInstance));
1231
+ }
1232
+ }
1233
+ export class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient {
1234
+ constructor(baseURL, axiosInstance = axios.create()) {
1235
+ axiosInstance.defaults.baseURL = baseURL;
1236
+ super(new AxiosHttpClient(axiosInstance));
1237
+ }
1238
+ }
1239
+ export class AxiosProvisioningResourceClient extends ProvisioningResourceClient {
1240
+ constructor(baseURL, axiosInstance = axios.create()) {
1241
+ axiosInstance.defaults.baseURL = baseURL;
1242
+ super(new AxiosHttpClient(axiosInstance));
1243
+ }
1244
+ }
1245
+ export class AxiosNotificationResourceClient extends NotificationResourceClient {
1246
+ constructor(baseURL, axiosInstance = axios.create()) {
1247
+ axiosInstance.defaults.baseURL = baseURL;
1248
+ super(new AxiosHttpClient(axiosInstance));
1249
+ }
1250
+ }
1251
+ export class AxiosRulesResourceClient extends RulesResourceClient {
1252
+ constructor(baseURL, axiosInstance = axios.create()) {
1253
+ axiosInstance.defaults.baseURL = baseURL;
1254
+ super(new AxiosHttpClient(axiosInstance));
1255
+ }
1256
+ }
1257
+ export class AxiosFlowResourceClient extends FlowResourceClient {
1258
+ constructor(baseURL, axiosInstance = axios.create()) {
1259
+ axiosInstance.defaults.baseURL = baseURL;
1260
+ super(new AxiosHttpClient(axiosInstance));
1261
+ }
1262
+ }
1263
+ export class AxiosAgentResourceClient extends AgentResourceClient {
1264
+ constructor(baseURL, axiosInstance = axios.create()) {
1265
+ axiosInstance.defaults.baseURL = baseURL;
1266
+ super(new AxiosHttpClient(axiosInstance));
1267
+ }
1268
+ }
1269
+ export class AxiosStatusResourceClient extends StatusResourceClient {
1270
+ constructor(baseURL, axiosInstance = axios.create()) {
1271
+ axiosInstance.defaults.baseURL = baseURL;
1272
+ super(new AxiosHttpClient(axiosInstance));
1273
+ }
1274
+ }
1275
+ export class AxiosMapResourceClient extends MapResourceClient {
1276
+ constructor(baseURL, axiosInstance = axios.create()) {
1277
+ axiosInstance.defaults.baseURL = baseURL;
1278
+ super(new AxiosHttpClient(axiosInstance));
1279
+ }
1280
+ }
1281
+ export class AxiosConfigurationResourceClient extends ConfigurationResourceClient {
1282
+ constructor(baseURL, axiosInstance = axios.create()) {
1283
+ axiosInstance.defaults.baseURL = baseURL;
1284
+ super(new AxiosHttpClient(axiosInstance));
1285
+ }
1286
+ }
1287
+ export class AxiosAlarmResourceClient extends AlarmResourceClient {
1288
+ constructor(baseURL, axiosInstance = axios.create()) {
1289
+ axiosInstance.defaults.baseURL = baseURL;
1290
+ super(new AxiosHttpClient(axiosInstance));
1291
+ }
1292
+ }
1293
+ export class AxiosAssetResourceClient extends AssetResourceClient {
1294
+ constructor(baseURL, axiosInstance = axios.create()) {
1295
+ axiosInstance.defaults.baseURL = baseURL;
1296
+ super(new AxiosHttpClient(axiosInstance));
1297
+ }
1298
+ }
1299
+ export class AxiosSyslogResourceClient extends SyslogResourceClient {
1300
+ constructor(baseURL, axiosInstance = axios.create()) {
1301
+ axiosInstance.defaults.baseURL = baseURL;
1302
+ super(new AxiosHttpClient(axiosInstance));
1303
+ }
1304
+ }
1305
+ export class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient {
1306
+ constructor(baseURL, axiosInstance = axios.create()) {
1307
+ axiosInstance.defaults.baseURL = baseURL;
1308
+ super(new AxiosHttpClient(axiosInstance));
1309
+ }
1310
+ }
1311
+ export class AxiosUserResourceClient extends UserResourceClient {
1312
+ constructor(baseURL, axiosInstance = axios.create()) {
1313
+ axiosInstance.defaults.baseURL = baseURL;
1314
+ super(new AxiosHttpClient(axiosInstance));
1315
+ }
1316
+ }
1317
+ export class AxiosRealmResourceClient extends RealmResourceClient {
1318
+ constructor(baseURL, axiosInstance = axios.create()) {
1319
+ axiosInstance.defaults.baseURL = baseURL;
1320
+ super(new AxiosHttpClient(axiosInstance));
1321
+ }
1322
+ }
1323
+ export class AxiosGatewayClientResourceClient extends GatewayClientResourceClient {
1324
+ constructor(baseURL, axiosInstance = axios.create()) {
1325
+ axiosInstance.defaults.baseURL = baseURL;
1326
+ super(new AxiosHttpClient(axiosInstance));
1327
+ }
1328
+ }
1329
+ export class AxiosDashboardResourceClient extends DashboardResourceClient {
1330
+ constructor(baseURL, axiosInstance = axios.create()) {
1331
+ axiosInstance.defaults.baseURL = baseURL;
1332
+ super(new AxiosHttpClient(axiosInstance));
1333
+ }
1334
+ }
1335
+ export class AxiosAppResourceClient extends AppResourceClient {
1336
+ constructor(baseURL, axiosInstance = axios.create()) {
1337
+ axiosInstance.defaults.baseURL = baseURL;
1338
+ super(new AxiosHttpClient(axiosInstance));
1339
+ }
1340
+ }
1341
+ //# sourceMappingURL=restclient.js.map