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