@openremote/rest 1.6.0-snapshot.20250514060942 → 1.6.0-snapshot.20250515141253
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/dist/umd/index.bundle.js +1 -1
- package/dist/umd/index.js +1 -1
- package/lib/restclient.d.ts +567 -567
- package/lib/restclient.js +1 -1
- package/lib/restclient.js.map +1 -1
- package/package.json +3 -3
package/lib/restclient.d.ts
CHANGED
|
@@ -9,45 +9,31 @@ export interface HttpClient<O> {
|
|
|
9
9
|
options?: O;
|
|
10
10
|
}): RestResponse<R>;
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class ConfigurationResourceClient<O> {
|
|
13
13
|
protected httpClient: HttpClient<O>;
|
|
14
14
|
constructor(httpClient: HttpClient<O>);
|
|
15
15
|
/**
|
|
16
|
-
* HTTP
|
|
17
|
-
* Java method: org.openremote.model.
|
|
18
|
-
*/
|
|
19
|
-
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
20
|
-
/**
|
|
21
|
-
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
22
|
-
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
16
|
+
* HTTP GET /configuration/manager
|
|
17
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
23
18
|
*/
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
export declare class AgentResourceClient<O> {
|
|
27
|
-
protected httpClient: HttpClient<O>;
|
|
28
|
-
constructor(httpClient: HttpClient<O>);
|
|
19
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
29
20
|
/**
|
|
30
|
-
* HTTP
|
|
31
|
-
* Java method: org.openremote.model.
|
|
21
|
+
* HTTP PUT /configuration/manager
|
|
22
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
32
23
|
*/
|
|
33
|
-
|
|
34
|
-
realm?: string;
|
|
35
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
24
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
36
25
|
/**
|
|
37
|
-
* HTTP POST /
|
|
38
|
-
* Java method: org.openremote.model.
|
|
26
|
+
* HTTP POST /configuration/manager/file
|
|
27
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
39
28
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}, options?: O): RestResponse<
|
|
29
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
30
|
+
path?: string;
|
|
31
|
+
}, options?: O): RestResponse<string>;
|
|
43
32
|
/**
|
|
44
|
-
* HTTP GET /
|
|
45
|
-
* Java method: org.openremote.model.
|
|
33
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
34
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
46
35
|
*/
|
|
47
|
-
|
|
48
|
-
parentId?: string;
|
|
49
|
-
realm?: string;
|
|
50
|
-
}, options?: O): RestResponse<Model.Agent[]>;
|
|
36
|
+
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
51
37
|
}
|
|
52
38
|
export declare class SyslogResourceClient<O> {
|
|
53
39
|
protected httpClient: HttpClient<O>;
|
|
@@ -81,118 +67,132 @@ export declare class SyslogResourceClient<O> {
|
|
|
81
67
|
subCategory?: string[];
|
|
82
68
|
}, options?: O): RestResponse<any>;
|
|
83
69
|
}
|
|
84
|
-
export declare class
|
|
70
|
+
export declare class AssetDatapointResourceClient<O> {
|
|
85
71
|
protected httpClient: HttpClient<O>;
|
|
86
72
|
constructor(httpClient: HttpClient<O>);
|
|
87
73
|
/**
|
|
88
|
-
* HTTP GET /
|
|
89
|
-
* Java method: org.openremote.model.
|
|
74
|
+
* HTTP GET /asset/datapoint/export
|
|
75
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
90
76
|
*/
|
|
91
|
-
|
|
77
|
+
getDatapointExport(queryParams?: {
|
|
78
|
+
attributeRefs?: string;
|
|
79
|
+
fromTimestamp?: number;
|
|
80
|
+
toTimestamp?: number;
|
|
81
|
+
}, options?: O): RestResponse<any>;
|
|
92
82
|
/**
|
|
93
|
-
* HTTP GET /
|
|
94
|
-
* Java method: org.openremote.model.
|
|
83
|
+
* HTTP GET /asset/datapoint/periods
|
|
84
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
95
85
|
*/
|
|
96
|
-
|
|
86
|
+
getDatapointPeriod(queryParams?: {
|
|
87
|
+
assetId?: string;
|
|
88
|
+
attributeName?: string;
|
|
89
|
+
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
97
90
|
/**
|
|
98
|
-
* HTTP
|
|
99
|
-
* Java method: org.openremote.model.
|
|
91
|
+
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
92
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
100
93
|
*/
|
|
101
|
-
|
|
94
|
+
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
102
95
|
}
|
|
103
|
-
export declare class
|
|
96
|
+
export declare class AlarmResourceClient<O> {
|
|
104
97
|
protected httpClient: HttpClient<O>;
|
|
105
98
|
constructor(httpClient: HttpClient<O>);
|
|
106
99
|
/**
|
|
107
|
-
* HTTP POST /
|
|
108
|
-
* Java method: org.openremote.model.
|
|
100
|
+
* HTTP POST /alarm
|
|
101
|
+
* Java method: org.openremote.model.alarm.AlarmResource.createAlarm
|
|
109
102
|
*/
|
|
110
|
-
|
|
103
|
+
createAlarm(alarm: Model.Alarm, queryParams?: {
|
|
104
|
+
assetIds?: string[];
|
|
105
|
+
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
111
106
|
/**
|
|
112
|
-
* HTTP
|
|
113
|
-
* Java method: org.openremote.model.
|
|
107
|
+
* HTTP GET /alarm
|
|
108
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarms
|
|
114
109
|
*/
|
|
115
|
-
|
|
110
|
+
getAlarms(queryParams?: {
|
|
111
|
+
realm?: string;
|
|
112
|
+
status?: Model.AlarmStatus;
|
|
113
|
+
assetId?: string;
|
|
114
|
+
assigneeId?: string;
|
|
115
|
+
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
116
116
|
/**
|
|
117
|
-
* HTTP
|
|
118
|
-
* Java method: org.openremote.model.
|
|
117
|
+
* HTTP DELETE /alarm
|
|
118
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
|
|
119
119
|
*/
|
|
120
|
-
|
|
120
|
+
removeAlarms(ids: number[], options?: O): RestResponse<void>;
|
|
121
121
|
/**
|
|
122
|
-
* HTTP
|
|
123
|
-
* Java method: org.openremote.model.
|
|
122
|
+
* HTTP PUT /alarm/assets
|
|
123
|
+
* Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
|
|
124
124
|
*/
|
|
125
|
-
|
|
125
|
+
setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
|
|
126
126
|
/**
|
|
127
|
-
* HTTP
|
|
128
|
-
* Java method: org.openremote.model.
|
|
127
|
+
* HTTP GET /alarm/{alarmId}
|
|
128
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarm
|
|
129
129
|
*/
|
|
130
|
-
|
|
130
|
+
getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
|
|
131
131
|
/**
|
|
132
|
-
* HTTP
|
|
133
|
-
* Java method: org.openremote.model.
|
|
132
|
+
* HTTP DELETE /alarm/{alarmId}
|
|
133
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
|
|
134
134
|
*/
|
|
135
|
-
|
|
136
|
-
}
|
|
137
|
-
export declare class ProvisioningResourceClient<O> {
|
|
138
|
-
protected httpClient: HttpClient<O>;
|
|
139
|
-
constructor(httpClient: HttpClient<O>);
|
|
135
|
+
removeAlarm(alarmId: number, options?: O): RestResponse<void>;
|
|
140
136
|
/**
|
|
141
|
-
* HTTP
|
|
142
|
-
* Java method: org.openremote.model.
|
|
137
|
+
* HTTP PUT /alarm/{alarmId}
|
|
138
|
+
* Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
|
|
143
139
|
*/
|
|
144
|
-
|
|
140
|
+
updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
|
|
145
141
|
/**
|
|
146
|
-
* HTTP GET /
|
|
147
|
-
* Java method: org.openremote.model.
|
|
142
|
+
* HTTP GET /alarm/{alarmId}/assets
|
|
143
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
|
|
148
144
|
*/
|
|
149
|
-
|
|
145
|
+
getAssetLinks(alarmId: number, queryParams?: {
|
|
146
|
+
realm?: string;
|
|
147
|
+
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
148
|
+
}
|
|
149
|
+
export declare class GatewayServiceResourceClient<O> {
|
|
150
|
+
protected httpClient: HttpClient<O>;
|
|
151
|
+
constructor(httpClient: HttpClient<O>);
|
|
150
152
|
/**
|
|
151
|
-
* HTTP
|
|
152
|
-
* Java method: org.openremote.model.
|
|
153
|
+
* HTTP POST /gateway/tunnel
|
|
154
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
|
|
153
155
|
*/
|
|
154
|
-
|
|
156
|
+
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
155
157
|
/**
|
|
156
|
-
* HTTP
|
|
157
|
-
* Java method: org.openremote.model.
|
|
158
|
+
* HTTP DELETE /gateway/tunnel
|
|
159
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
158
160
|
*/
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
export declare class GatewayClientResourceClient<O> {
|
|
162
|
-
protected httpClient: HttpClient<O>;
|
|
163
|
-
constructor(httpClient: HttpClient<O>);
|
|
161
|
+
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
164
162
|
/**
|
|
165
|
-
* HTTP
|
|
166
|
-
* Java method: org.openremote.model.gateway.
|
|
163
|
+
* HTTP GET /gateway/tunnel/{realm}
|
|
164
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
167
165
|
*/
|
|
168
|
-
|
|
169
|
-
realm?: string[];
|
|
170
|
-
}, options?: O): RestResponse<void>;
|
|
166
|
+
getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
171
167
|
/**
|
|
172
|
-
* HTTP GET /gateway/
|
|
173
|
-
* Java method: org.openremote.model.gateway.
|
|
168
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
169
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
174
170
|
*/
|
|
175
|
-
|
|
171
|
+
getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
176
172
|
/**
|
|
177
|
-
* HTTP
|
|
178
|
-
* Java method: org.openremote.model.gateway.
|
|
173
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
|
|
174
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
|
|
179
175
|
*/
|
|
180
|
-
|
|
176
|
+
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
177
|
+
}
|
|
178
|
+
export declare class FlowResourceClient<O> {
|
|
179
|
+
protected httpClient: HttpClient<O>;
|
|
180
|
+
constructor(httpClient: HttpClient<O>);
|
|
181
181
|
/**
|
|
182
|
-
* HTTP GET /
|
|
183
|
-
* Java method: org.openremote.model.
|
|
182
|
+
* HTTP GET /flow
|
|
183
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
184
184
|
*/
|
|
185
|
-
|
|
185
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
186
186
|
/**
|
|
187
|
-
* HTTP
|
|
188
|
-
* Java method: org.openremote.model.
|
|
187
|
+
* HTTP GET /flow/{name}
|
|
188
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
189
189
|
*/
|
|
190
|
-
|
|
190
|
+
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
191
191
|
/**
|
|
192
|
-
* HTTP GET /
|
|
193
|
-
* Java method: org.openremote.model.
|
|
192
|
+
* HTTP GET /flow/{type}
|
|
193
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
194
194
|
*/
|
|
195
|
-
|
|
195
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
196
196
|
}
|
|
197
197
|
export declare class StatusResourceClient<O> {
|
|
198
198
|
protected httpClient: HttpClient<O>;
|
|
@@ -212,138 +212,209 @@ export declare class StatusResourceClient<O> {
|
|
|
212
212
|
[index: string]: any;
|
|
213
213
|
}>;
|
|
214
214
|
}
|
|
215
|
-
export declare class
|
|
215
|
+
export declare class AppResourceClient<O> {
|
|
216
216
|
protected httpClient: HttpClient<O>;
|
|
217
217
|
constructor(httpClient: HttpClient<O>);
|
|
218
218
|
/**
|
|
219
|
-
* HTTP
|
|
220
|
-
* Java method: org.openremote.model.
|
|
221
|
-
*/
|
|
222
|
-
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
223
|
-
/**
|
|
224
|
-
* HTTP DELETE /gateway/tunnel
|
|
225
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
226
|
-
*/
|
|
227
|
-
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
228
|
-
/**
|
|
229
|
-
* HTTP GET /gateway/tunnel/{realm}
|
|
230
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
219
|
+
* HTTP GET /apps
|
|
220
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
231
221
|
*/
|
|
232
|
-
|
|
222
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
233
223
|
/**
|
|
234
|
-
* HTTP GET /
|
|
235
|
-
* Java method: org.openremote.model.
|
|
224
|
+
* HTTP GET /apps/consoleConfig
|
|
225
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
236
226
|
*/
|
|
237
|
-
|
|
227
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
238
228
|
/**
|
|
239
|
-
* HTTP GET /
|
|
240
|
-
* Java method: org.openremote.model.
|
|
229
|
+
* HTTP GET /apps/info
|
|
230
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
241
231
|
*/
|
|
242
|
-
|
|
232
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
243
233
|
}
|
|
244
|
-
export declare class
|
|
234
|
+
export declare class ProvisioningResourceClient<O> {
|
|
245
235
|
protected httpClient: HttpClient<O>;
|
|
246
236
|
constructor(httpClient: HttpClient<O>);
|
|
247
237
|
/**
|
|
248
|
-
* HTTP POST /
|
|
249
|
-
* Java method: org.openremote.model.
|
|
238
|
+
* HTTP POST /provisioning
|
|
239
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
250
240
|
*/
|
|
251
|
-
|
|
241
|
+
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
252
242
|
/**
|
|
253
|
-
* HTTP
|
|
254
|
-
* Java method: org.openremote.model.
|
|
243
|
+
* HTTP GET /provisioning
|
|
244
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
255
245
|
*/
|
|
256
|
-
|
|
257
|
-
assetId?: string[];
|
|
258
|
-
}, options?: O): RestResponse<void>;
|
|
246
|
+
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
259
247
|
/**
|
|
260
|
-
* HTTP
|
|
261
|
-
* Java method: org.openremote.model.
|
|
248
|
+
* HTTP DELETE /provisioning/{id}
|
|
249
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
262
250
|
*/
|
|
263
|
-
|
|
251
|
+
deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
|
|
264
252
|
/**
|
|
265
|
-
* HTTP PUT /
|
|
266
|
-
* Java method: org.openremote.model.
|
|
253
|
+
* HTTP PUT /provisioning/{id}
|
|
254
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
267
255
|
*/
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
256
|
+
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
257
|
+
}
|
|
258
|
+
export declare class AgentResourceClient<O> {
|
|
259
|
+
protected httpClient: HttpClient<O>;
|
|
260
|
+
constructor(httpClient: HttpClient<O>);
|
|
261
|
+
/**
|
|
262
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
263
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
272
264
|
*/
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}, options?: O): RestResponse<
|
|
265
|
+
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
266
|
+
realm?: string;
|
|
267
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
276
268
|
/**
|
|
277
|
-
* HTTP
|
|
278
|
-
* Java method: org.openremote.model.asset.
|
|
269
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
270
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
279
271
|
*/
|
|
280
|
-
|
|
272
|
+
doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
|
|
273
|
+
realm?: string;
|
|
274
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
281
275
|
/**
|
|
282
|
-
* HTTP
|
|
283
|
-
* Java method: org.openremote.model.asset.
|
|
276
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
277
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
284
278
|
*/
|
|
285
|
-
|
|
279
|
+
doProtocolInstanceDiscovery(agentType: string, queryParams?: {
|
|
280
|
+
parentId?: string;
|
|
281
|
+
realm?: string;
|
|
282
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
283
|
+
}
|
|
284
|
+
export declare class MapResourceClient<O> {
|
|
285
|
+
protected httpClient: HttpClient<O>;
|
|
286
|
+
constructor(httpClient: HttpClient<O>);
|
|
286
287
|
/**
|
|
287
|
-
* HTTP GET /
|
|
288
|
-
* Java method: org.openremote.model.
|
|
288
|
+
* HTTP GET /map
|
|
289
|
+
* Java method: org.openremote.model.map.MapResource.getSettings
|
|
289
290
|
*/
|
|
290
|
-
|
|
291
|
+
getSettings(options?: O): RestResponse<{
|
|
292
|
+
[id: string]: unknown;
|
|
293
|
+
}>;
|
|
291
294
|
/**
|
|
292
|
-
* HTTP
|
|
293
|
-
* Java method: org.openremote.model.
|
|
295
|
+
* HTTP PUT /map
|
|
296
|
+
* Java method: org.openremote.model.map.MapResource.saveSettings
|
|
294
297
|
*/
|
|
295
|
-
|
|
298
|
+
saveSettings(mapConfig: Model.MapConfig, options?: O): RestResponse<{
|
|
299
|
+
[id: string]: unknown;
|
|
300
|
+
}>;
|
|
296
301
|
/**
|
|
297
|
-
* HTTP
|
|
298
|
-
* Java method: org.openremote.model.
|
|
302
|
+
* HTTP DELETE /map/deleteMap
|
|
303
|
+
* Java method: org.openremote.model.map.MapResource.deleteMap
|
|
299
304
|
*/
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
assetId?: string;
|
|
304
|
-
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
305
|
+
deleteMap(options?: O): RestResponse<{
|
|
306
|
+
[id: string]: unknown;
|
|
307
|
+
}>;
|
|
305
308
|
/**
|
|
306
|
-
* HTTP
|
|
307
|
-
* Java method: org.openremote.model.
|
|
309
|
+
* HTTP GET /map/getCustomMapInfo
|
|
310
|
+
* Java method: org.openremote.model.map.MapResource.getCustomMapInfo
|
|
308
311
|
*/
|
|
309
|
-
|
|
312
|
+
getCustomMapInfo(options?: O): RestResponse<{
|
|
313
|
+
[id: string]: unknown;
|
|
314
|
+
}>;
|
|
310
315
|
/**
|
|
311
|
-
* HTTP
|
|
312
|
-
* Java method: org.openremote.model.
|
|
316
|
+
* HTTP GET /map/js
|
|
317
|
+
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
313
318
|
*/
|
|
314
|
-
|
|
319
|
+
getSettingsJs(options?: O): RestResponse<{
|
|
320
|
+
[id: string]: unknown;
|
|
321
|
+
}>;
|
|
315
322
|
/**
|
|
316
|
-
* HTTP
|
|
317
|
-
* Java method: org.openremote.model.
|
|
323
|
+
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
324
|
+
* Java method: org.openremote.model.map.MapResource.getTile
|
|
318
325
|
*/
|
|
319
|
-
|
|
326
|
+
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
320
327
|
/**
|
|
321
|
-
* HTTP
|
|
322
|
-
* Java method: org.openremote.model.
|
|
328
|
+
* HTTP POST /map/upload
|
|
329
|
+
* Java method: org.openremote.model.map.MapResource.uploadMap
|
|
323
330
|
*/
|
|
324
|
-
|
|
331
|
+
uploadMap(queryParams?: {
|
|
332
|
+
filename?: string;
|
|
333
|
+
}, options?: O): RestResponse<{
|
|
334
|
+
[id: string]: unknown;
|
|
335
|
+
}>;
|
|
336
|
+
}
|
|
337
|
+
export declare class DashboardResourceClient<O> {
|
|
338
|
+
protected httpClient: HttpClient<O>;
|
|
339
|
+
constructor(httpClient: HttpClient<O>);
|
|
325
340
|
/**
|
|
326
|
-
* HTTP
|
|
327
|
-
* Java method: org.openremote.model.
|
|
341
|
+
* HTTP POST /dashboard
|
|
342
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
328
343
|
*/
|
|
329
|
-
|
|
344
|
+
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
330
345
|
/**
|
|
331
|
-
* HTTP PUT /
|
|
332
|
-
* Java method: org.openremote.model.
|
|
346
|
+
* HTTP PUT /dashboard
|
|
347
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
333
348
|
*/
|
|
334
|
-
|
|
349
|
+
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
335
350
|
/**
|
|
336
|
-
* HTTP
|
|
337
|
-
* Java method: org.openremote.model.
|
|
351
|
+
* HTTP GET /dashboard/all/{realm}
|
|
352
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
338
353
|
*/
|
|
339
|
-
|
|
354
|
+
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
340
355
|
/**
|
|
341
|
-
* HTTP
|
|
342
|
-
* Java method: org.openremote.model.
|
|
356
|
+
* HTTP POST /dashboard/query
|
|
357
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
343
358
|
*/
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
359
|
+
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
360
|
+
/**
|
|
361
|
+
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
362
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
363
|
+
*/
|
|
364
|
+
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
365
|
+
/**
|
|
366
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
367
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
368
|
+
*/
|
|
369
|
+
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
370
|
+
}
|
|
371
|
+
export declare class RealmResourceClient<O> {
|
|
372
|
+
protected httpClient: HttpClient<O>;
|
|
373
|
+
constructor(httpClient: HttpClient<O>);
|
|
374
|
+
/**
|
|
375
|
+
* HTTP POST /realm
|
|
376
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
377
|
+
*/
|
|
378
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
379
|
+
/**
|
|
380
|
+
* HTTP GET /realm
|
|
381
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
382
|
+
*/
|
|
383
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
384
|
+
/**
|
|
385
|
+
* HTTP GET /realm/accessible
|
|
386
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
387
|
+
*/
|
|
388
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
389
|
+
/**
|
|
390
|
+
* HTTP DELETE /realm/{name}
|
|
391
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
392
|
+
*/
|
|
393
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
394
|
+
/**
|
|
395
|
+
* HTTP GET /realm/{name}
|
|
396
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
397
|
+
*/
|
|
398
|
+
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
399
|
+
/**
|
|
400
|
+
* HTTP PUT /realm/{name}
|
|
401
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
402
|
+
*/
|
|
403
|
+
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
404
|
+
}
|
|
405
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
406
|
+
protected httpClient: HttpClient<O>;
|
|
407
|
+
constructor(httpClient: HttpClient<O>);
|
|
408
|
+
/**
|
|
409
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
410
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
411
|
+
*/
|
|
412
|
+
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
413
|
+
/**
|
|
414
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
415
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
416
|
+
*/
|
|
417
|
+
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
347
418
|
}
|
|
348
419
|
export declare class AssetModelResourceClient<O> {
|
|
349
420
|
protected httpClient: HttpClient<O>;
|
|
@@ -390,537 +461,466 @@ export declare class AssetModelResourceClient<O> {
|
|
|
390
461
|
[index: string]: Model.ValueDescriptor;
|
|
391
462
|
}>;
|
|
392
463
|
}
|
|
393
|
-
export declare class
|
|
464
|
+
export declare class RulesResourceClient<O> {
|
|
394
465
|
protected httpClient: HttpClient<O>;
|
|
395
466
|
constructor(httpClient: HttpClient<O>);
|
|
396
467
|
/**
|
|
397
|
-
* HTTP
|
|
398
|
-
* Java method: org.openremote.model.
|
|
468
|
+
* HTTP POST /rules
|
|
469
|
+
* Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
|
|
399
470
|
*/
|
|
400
|
-
|
|
401
|
-
attributeRefs?: string;
|
|
402
|
-
fromTimestamp?: number;
|
|
403
|
-
toTimestamp?: number;
|
|
404
|
-
}, options?: O): RestResponse<any>;
|
|
471
|
+
createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
|
|
405
472
|
/**
|
|
406
|
-
* HTTP GET /
|
|
407
|
-
* Java method: org.openremote.model.
|
|
473
|
+
* HTTP GET /rules
|
|
474
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
408
475
|
*/
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
}, options?: O): RestResponse<Model.
|
|
476
|
+
getGlobalRulesets(queryParams?: {
|
|
477
|
+
language?: Model.RulesetLang[];
|
|
478
|
+
fullyPopulate?: boolean;
|
|
479
|
+
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
413
480
|
/**
|
|
414
|
-
* HTTP POST /asset
|
|
415
|
-
* Java method: org.openremote.model.
|
|
481
|
+
* HTTP POST /rules/asset
|
|
482
|
+
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
416
483
|
*/
|
|
417
|
-
|
|
418
|
-
}
|
|
419
|
-
export declare class NotificationResourceClient<O> {
|
|
420
|
-
protected httpClient: HttpClient<O>;
|
|
421
|
-
constructor(httpClient: HttpClient<O>);
|
|
484
|
+
createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
|
|
422
485
|
/**
|
|
423
|
-
* HTTP GET /
|
|
424
|
-
* Java method: org.openremote.model.
|
|
486
|
+
* HTTP GET /rules/asset/for/{assetId}
|
|
487
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
|
|
425
488
|
*/
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
to?: number;
|
|
431
|
-
realmId?: string;
|
|
432
|
-
userId?: string;
|
|
433
|
-
assetId?: string;
|
|
434
|
-
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
489
|
+
getAssetRulesets(assetId: string, queryParams?: {
|
|
490
|
+
language?: Model.RulesetLang[];
|
|
491
|
+
fullyPopulate?: boolean;
|
|
492
|
+
}, options?: O): RestResponse<Model.AssetRuleset[]>;
|
|
435
493
|
/**
|
|
436
|
-
* HTTP DELETE /
|
|
437
|
-
* Java method: org.openremote.model.
|
|
494
|
+
* HTTP DELETE /rules/asset/{id}
|
|
495
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
|
|
438
496
|
*/
|
|
439
|
-
|
|
440
|
-
id?: number;
|
|
441
|
-
type?: string;
|
|
442
|
-
from?: number;
|
|
443
|
-
to?: number;
|
|
444
|
-
realmId?: string;
|
|
445
|
-
userId?: string;
|
|
446
|
-
assetId?: string;
|
|
447
|
-
}, options?: O): RestResponse<void>;
|
|
497
|
+
deleteAssetRuleset(id: number, options?: O): RestResponse<void>;
|
|
448
498
|
/**
|
|
449
|
-
* HTTP
|
|
450
|
-
* Java method: org.openremote.model.
|
|
499
|
+
* HTTP GET /rules/asset/{id}
|
|
500
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
|
|
451
501
|
*/
|
|
452
|
-
|
|
502
|
+
getAssetRuleset(id: number, options?: O): RestResponse<Model.AssetRuleset>;
|
|
453
503
|
/**
|
|
454
|
-
* HTTP
|
|
455
|
-
* Java method: org.openremote.model.
|
|
456
|
-
*/
|
|
457
|
-
removeNotification(notificationId: number, options?: O): RestResponse<void>;
|
|
458
|
-
/**
|
|
459
|
-
* HTTP PUT /notification/{notificationId}/acknowledged
|
|
460
|
-
* Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
|
|
461
|
-
*/
|
|
462
|
-
notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
|
|
463
|
-
targetId?: string;
|
|
464
|
-
}, options?: O): RestResponse<void>;
|
|
465
|
-
/**
|
|
466
|
-
* HTTP PUT /notification/{notificationId}/delivered
|
|
467
|
-
* Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
|
|
468
|
-
*/
|
|
469
|
-
notificationDelivered(notificationId: number, queryParams?: {
|
|
470
|
-
targetId?: string;
|
|
471
|
-
}, options?: O): RestResponse<void>;
|
|
472
|
-
}
|
|
473
|
-
export declare class ConsoleResourceClient<O> {
|
|
474
|
-
protected httpClient: HttpClient<O>;
|
|
475
|
-
constructor(httpClient: HttpClient<O>);
|
|
476
|
-
/**
|
|
477
|
-
* HTTP POST /console/register
|
|
478
|
-
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
479
|
-
*/
|
|
480
|
-
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
481
|
-
}
|
|
482
|
-
export declare class AppResourceClient<O> {
|
|
483
|
-
protected httpClient: HttpClient<O>;
|
|
484
|
-
constructor(httpClient: HttpClient<O>);
|
|
485
|
-
/**
|
|
486
|
-
* HTTP GET /apps
|
|
487
|
-
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
488
|
-
*/
|
|
489
|
-
getApps(options?: O): RestResponse<string[]>;
|
|
490
|
-
/**
|
|
491
|
-
* HTTP GET /apps/consoleConfig
|
|
492
|
-
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
504
|
+
* HTTP PUT /rules/asset/{id}
|
|
505
|
+
* Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
|
|
493
506
|
*/
|
|
494
|
-
|
|
507
|
+
updateAssetRuleset(id: number, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
|
|
495
508
|
/**
|
|
496
|
-
* HTTP GET /
|
|
497
|
-
* Java method: org.openremote.model.
|
|
509
|
+
* HTTP GET /rules/geofences/{assetId}
|
|
510
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
|
|
498
511
|
*/
|
|
499
|
-
|
|
500
|
-
}
|
|
501
|
-
export declare class ConfigurationResourceClient<O> {
|
|
502
|
-
protected httpClient: HttpClient<O>;
|
|
503
|
-
constructor(httpClient: HttpClient<O>);
|
|
512
|
+
getAssetGeofences(assetId: string, options?: O): RestResponse<Model.GeofenceDefinition[]>;
|
|
504
513
|
/**
|
|
505
|
-
* HTTP GET /
|
|
506
|
-
* Java method: org.openremote.model.
|
|
514
|
+
* HTTP GET /rules/info/asset/{assetId}
|
|
515
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
|
|
507
516
|
*/
|
|
508
|
-
|
|
517
|
+
getAssetEngineInfo(assetId: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
509
518
|
/**
|
|
510
|
-
* HTTP
|
|
511
|
-
* Java method: org.openremote.model.
|
|
519
|
+
* HTTP GET /rules/info/global
|
|
520
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
|
|
512
521
|
*/
|
|
513
|
-
|
|
522
|
+
getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
514
523
|
/**
|
|
515
|
-
* HTTP
|
|
516
|
-
* Java method: org.openremote.model.
|
|
524
|
+
* HTTP GET /rules/info/realm/{realm}
|
|
525
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
|
|
517
526
|
*/
|
|
518
|
-
|
|
519
|
-
path?: string;
|
|
520
|
-
}, options?: O): RestResponse<string>;
|
|
527
|
+
getRealmEngineInfo(realm: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
521
528
|
/**
|
|
522
|
-
* HTTP
|
|
523
|
-
* Java method: org.openremote.model.
|
|
529
|
+
* HTTP POST /rules/realm
|
|
530
|
+
* Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
|
|
524
531
|
*/
|
|
525
|
-
|
|
526
|
-
}
|
|
527
|
-
export declare class MapResourceClient<O> {
|
|
528
|
-
protected httpClient: HttpClient<O>;
|
|
529
|
-
constructor(httpClient: HttpClient<O>);
|
|
532
|
+
createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
|
|
530
533
|
/**
|
|
531
|
-
* HTTP GET /
|
|
532
|
-
* Java method: org.openremote.model.
|
|
534
|
+
* HTTP GET /rules/realm/for/{realm}
|
|
535
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
|
|
533
536
|
*/
|
|
534
|
-
|
|
535
|
-
[
|
|
536
|
-
|
|
537
|
+
getRealmRulesets(realm: string, queryParams?: {
|
|
538
|
+
language?: Model.RulesetLang[];
|
|
539
|
+
fullyPopulate?: boolean;
|
|
540
|
+
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
537
541
|
/**
|
|
538
|
-
* HTTP
|
|
539
|
-
* Java method: org.openremote.model.
|
|
542
|
+
* HTTP DELETE /rules/realm/{id}
|
|
543
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
|
|
540
544
|
*/
|
|
541
|
-
|
|
542
|
-
[id: string]: unknown;
|
|
543
|
-
}>;
|
|
545
|
+
deleteRealmRuleset(id: number, options?: O): RestResponse<void>;
|
|
544
546
|
/**
|
|
545
|
-
* HTTP
|
|
546
|
-
* Java method: org.openremote.model.
|
|
547
|
+
* HTTP GET /rules/realm/{id}
|
|
548
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
|
|
547
549
|
*/
|
|
548
|
-
|
|
549
|
-
[id: string]: unknown;
|
|
550
|
-
}>;
|
|
550
|
+
getRealmRuleset(id: number, options?: O): RestResponse<Model.RealmRuleset>;
|
|
551
551
|
/**
|
|
552
|
-
* HTTP
|
|
553
|
-
* Java method: org.openremote.model.
|
|
552
|
+
* HTTP PUT /rules/realm/{id}
|
|
553
|
+
* Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
|
|
554
554
|
*/
|
|
555
|
-
|
|
556
|
-
[id: string]: unknown;
|
|
557
|
-
}>;
|
|
555
|
+
updateRealmRuleset(id: number, ruleset: Model.RealmRuleset, options?: O): RestResponse<void>;
|
|
558
556
|
/**
|
|
559
|
-
* HTTP
|
|
560
|
-
* Java method: org.openremote.model.
|
|
557
|
+
* HTTP DELETE /rules/{id}
|
|
558
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
|
|
561
559
|
*/
|
|
562
|
-
|
|
563
|
-
[id: string]: unknown;
|
|
564
|
-
}>;
|
|
560
|
+
deleteGlobalRuleset(id: number, options?: O): RestResponse<void>;
|
|
565
561
|
/**
|
|
566
|
-
* HTTP GET /
|
|
567
|
-
* Java method: org.openremote.model.
|
|
562
|
+
* HTTP GET /rules/{id}
|
|
563
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
|
|
568
564
|
*/
|
|
569
|
-
|
|
565
|
+
getGlobalRuleset(id: number, options?: O): RestResponse<Model.GlobalRuleset>;
|
|
570
566
|
/**
|
|
571
|
-
* HTTP
|
|
572
|
-
* Java method: org.openremote.model.
|
|
567
|
+
* HTTP PUT /rules/{id}
|
|
568
|
+
* Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
|
|
573
569
|
*/
|
|
574
|
-
|
|
575
|
-
filename?: string;
|
|
576
|
-
}, options?: O): RestResponse<{
|
|
577
|
-
[id: string]: unknown;
|
|
578
|
-
}>;
|
|
570
|
+
updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
579
571
|
}
|
|
580
|
-
export declare class
|
|
572
|
+
export declare class AssetResourceClient<O> {
|
|
581
573
|
protected httpClient: HttpClient<O>;
|
|
582
574
|
constructor(httpClient: HttpClient<O>);
|
|
583
575
|
/**
|
|
584
|
-
* HTTP
|
|
585
|
-
* Java method: org.openremote.model.
|
|
586
|
-
*/
|
|
587
|
-
updateCurrentUserLocale(locale: string, options?: O): RestResponse<void>;
|
|
588
|
-
/**
|
|
589
|
-
* HTTP POST /user/query
|
|
590
|
-
* Java method: org.openremote.model.security.UserResource.query
|
|
591
|
-
*/
|
|
592
|
-
query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
|
|
593
|
-
/**
|
|
594
|
-
* HTTP GET /user/user
|
|
595
|
-
* Java method: org.openremote.model.security.UserResource.getCurrent
|
|
576
|
+
* HTTP POST /asset
|
|
577
|
+
* Java method: org.openremote.model.asset.AssetResource.create
|
|
596
578
|
*/
|
|
597
|
-
|
|
579
|
+
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
598
580
|
/**
|
|
599
|
-
* HTTP
|
|
600
|
-
* Java method: org.openremote.model.
|
|
581
|
+
* HTTP DELETE /asset
|
|
582
|
+
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
601
583
|
*/
|
|
602
|
-
|
|
584
|
+
delete(queryParams?: {
|
|
585
|
+
assetId?: string[];
|
|
586
|
+
}, options?: O): RestResponse<void>;
|
|
603
587
|
/**
|
|
604
|
-
* HTTP
|
|
605
|
-
* Java method: org.openremote.model.
|
|
588
|
+
* HTTP PUT /asset/attributes
|
|
589
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
606
590
|
*/
|
|
607
|
-
|
|
591
|
+
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
608
592
|
/**
|
|
609
|
-
* HTTP
|
|
610
|
-
* Java method: org.openremote.model.
|
|
593
|
+
* HTTP PUT /asset/attributes/timestamp
|
|
594
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
611
595
|
*/
|
|
612
|
-
|
|
596
|
+
writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
613
597
|
/**
|
|
614
|
-
* HTTP
|
|
615
|
-
* Java method: org.openremote.model.
|
|
598
|
+
* HTTP DELETE /asset/parent
|
|
599
|
+
* Java method: org.openremote.model.asset.AssetResource.updateNoneParent
|
|
616
600
|
*/
|
|
617
|
-
|
|
601
|
+
updateNoneParent(queryParams?: {
|
|
602
|
+
assetIds?: string[];
|
|
603
|
+
}, options?: O): RestResponse<void>;
|
|
618
604
|
/**
|
|
619
|
-
* HTTP GET /
|
|
620
|
-
* Java method: org.openremote.model.
|
|
605
|
+
* HTTP GET /asset/partial/{assetId}
|
|
606
|
+
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
621
607
|
*/
|
|
622
|
-
|
|
608
|
+
getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
623
609
|
/**
|
|
624
|
-
* HTTP
|
|
625
|
-
* Java method: org.openremote.model.
|
|
610
|
+
* HTTP POST /asset/query
|
|
611
|
+
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
626
612
|
*/
|
|
627
|
-
|
|
613
|
+
queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
|
|
628
614
|
/**
|
|
629
|
-
* HTTP GET /user/
|
|
630
|
-
* Java method: org.openremote.model.
|
|
615
|
+
* HTTP GET /asset/user/current
|
|
616
|
+
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
631
617
|
*/
|
|
632
|
-
|
|
618
|
+
getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
|
|
633
619
|
/**
|
|
634
|
-
* HTTP
|
|
635
|
-
* Java method: org.openremote.model.
|
|
620
|
+
* HTTP POST /asset/user/link
|
|
621
|
+
* Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
|
|
636
622
|
*/
|
|
637
|
-
|
|
623
|
+
createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
638
624
|
/**
|
|
639
|
-
* HTTP GET /user/
|
|
640
|
-
* Java method: org.openremote.model.
|
|
625
|
+
* HTTP GET /asset/user/link
|
|
626
|
+
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
641
627
|
*/
|
|
642
|
-
|
|
628
|
+
getUserAssetLinks(queryParams?: {
|
|
629
|
+
realm?: string;
|
|
630
|
+
userId?: string;
|
|
631
|
+
assetId?: string;
|
|
632
|
+
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
643
633
|
/**
|
|
644
|
-
* HTTP
|
|
645
|
-
* Java method: org.openremote.model.
|
|
634
|
+
* HTTP POST /asset/user/link/delete
|
|
635
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
|
|
646
636
|
*/
|
|
647
|
-
|
|
637
|
+
deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
648
638
|
/**
|
|
649
|
-
* HTTP
|
|
650
|
-
* Java method: org.openremote.model.
|
|
639
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}
|
|
640
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
|
|
651
641
|
*/
|
|
652
|
-
|
|
642
|
+
deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
653
643
|
/**
|
|
654
|
-
* HTTP
|
|
655
|
-
* Java method: org.openremote.model.
|
|
644
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
|
|
645
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
|
|
656
646
|
*/
|
|
657
|
-
|
|
647
|
+
deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
|
|
658
648
|
/**
|
|
659
|
-
* HTTP
|
|
660
|
-
* Java method: org.openremote.model.
|
|
649
|
+
* HTTP GET /asset/{assetId}
|
|
650
|
+
* Java method: org.openremote.model.asset.AssetResource.get
|
|
661
651
|
*/
|
|
662
|
-
|
|
652
|
+
get(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
663
653
|
/**
|
|
664
|
-
* HTTP
|
|
665
|
-
* Java method: org.openremote.model.
|
|
654
|
+
* HTTP PUT /asset/{assetId}
|
|
655
|
+
* Java method: org.openremote.model.asset.AssetResource.update
|
|
666
656
|
*/
|
|
667
|
-
|
|
657
|
+
update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
668
658
|
/**
|
|
669
|
-
* HTTP
|
|
670
|
-
* Java method: org.openremote.model.
|
|
659
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}
|
|
660
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
671
661
|
*/
|
|
672
|
-
|
|
662
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
673
663
|
/**
|
|
674
|
-
* HTTP PUT /
|
|
675
|
-
* Java method: org.openremote.model.
|
|
664
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
|
|
665
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
676
666
|
*/
|
|
677
|
-
|
|
667
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
678
668
|
/**
|
|
679
|
-
* HTTP
|
|
680
|
-
* Java method: org.openremote.model.
|
|
669
|
+
* HTTP PUT /asset/{parentAssetId}/child
|
|
670
|
+
* Java method: org.openremote.model.asset.AssetResource.updateParent
|
|
681
671
|
*/
|
|
682
|
-
|
|
672
|
+
updateParent(parentAssetId: string, queryParams?: {
|
|
673
|
+
assetIds?: string[];
|
|
674
|
+
}, options?: O): RestResponse<void>;
|
|
683
675
|
}
|
|
684
|
-
export declare class
|
|
676
|
+
export declare class GatewayClientResourceClient<O> {
|
|
685
677
|
protected httpClient: HttpClient<O>;
|
|
686
678
|
constructor(httpClient: HttpClient<O>);
|
|
687
679
|
/**
|
|
688
|
-
* HTTP
|
|
689
|
-
* Java method: org.openremote.model.
|
|
680
|
+
* HTTP DELETE /gateway/connection
|
|
681
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
690
682
|
*/
|
|
691
|
-
|
|
683
|
+
deleteConnections(queryParams?: {
|
|
684
|
+
realm?: string[];
|
|
685
|
+
}, options?: O): RestResponse<void>;
|
|
692
686
|
/**
|
|
693
|
-
* HTTP GET /
|
|
694
|
-
* Java method: org.openremote.model.
|
|
687
|
+
* HTTP GET /gateway/connection
|
|
688
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
695
689
|
*/
|
|
696
|
-
|
|
690
|
+
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
697
691
|
/**
|
|
698
|
-
* HTTP
|
|
699
|
-
* Java method: org.openremote.model.
|
|
692
|
+
* HTTP DELETE /gateway/connection/{realm}
|
|
693
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
700
694
|
*/
|
|
701
|
-
|
|
695
|
+
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
702
696
|
/**
|
|
703
|
-
* HTTP
|
|
704
|
-
* Java method: org.openremote.model.
|
|
697
|
+
* HTTP GET /gateway/connection/{realm}
|
|
698
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
705
699
|
*/
|
|
706
|
-
|
|
700
|
+
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
707
701
|
/**
|
|
708
|
-
* HTTP
|
|
709
|
-
* Java method: org.openremote.model.
|
|
702
|
+
* HTTP PUT /gateway/connection/{realm}
|
|
703
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
710
704
|
*/
|
|
711
|
-
|
|
705
|
+
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
712
706
|
/**
|
|
713
|
-
* HTTP
|
|
714
|
-
* Java method: org.openremote.model.
|
|
707
|
+
* HTTP GET /gateway/status/{realm}
|
|
708
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
715
709
|
*/
|
|
716
|
-
|
|
710
|
+
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
717
711
|
}
|
|
718
|
-
export declare class
|
|
712
|
+
export declare class ConsoleResourceClient<O> {
|
|
719
713
|
protected httpClient: HttpClient<O>;
|
|
720
714
|
constructor(httpClient: HttpClient<O>);
|
|
721
715
|
/**
|
|
722
|
-
* HTTP POST /
|
|
723
|
-
* Java method: org.openremote.model.
|
|
716
|
+
* HTTP POST /console/register
|
|
717
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
724
718
|
*/
|
|
725
|
-
|
|
719
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
720
|
+
}
|
|
721
|
+
export declare class UserResourceClient<O> {
|
|
722
|
+
protected httpClient: HttpClient<O>;
|
|
723
|
+
constructor(httpClient: HttpClient<O>);
|
|
726
724
|
/**
|
|
727
|
-
* HTTP
|
|
728
|
-
* Java method: org.openremote.model.
|
|
725
|
+
* HTTP PUT /user/locale
|
|
726
|
+
* Java method: org.openremote.model.security.UserResource.updateCurrentUserLocale
|
|
729
727
|
*/
|
|
730
|
-
|
|
731
|
-
language?: Model.RulesetLang[];
|
|
732
|
-
fullyPopulate?: boolean;
|
|
733
|
-
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
728
|
+
updateCurrentUserLocale(locale: string, options?: O): RestResponse<void>;
|
|
734
729
|
/**
|
|
735
|
-
* HTTP POST /
|
|
736
|
-
* Java method: org.openremote.model.
|
|
730
|
+
* HTTP POST /user/query
|
|
731
|
+
* Java method: org.openremote.model.security.UserResource.query
|
|
737
732
|
*/
|
|
738
|
-
|
|
733
|
+
query(query: Model.UserQuery, options?: O): RestResponse<Model.User[]>;
|
|
739
734
|
/**
|
|
740
|
-
* HTTP GET /
|
|
741
|
-
* Java method: org.openremote.model.
|
|
735
|
+
* HTTP GET /user/user
|
|
736
|
+
* Java method: org.openremote.model.security.UserResource.getCurrent
|
|
742
737
|
*/
|
|
743
|
-
|
|
744
|
-
language?: Model.RulesetLang[];
|
|
745
|
-
fullyPopulate?: boolean;
|
|
746
|
-
}, options?: O): RestResponse<Model.AssetRuleset[]>;
|
|
738
|
+
getCurrent(options?: O): RestResponse<Model.User>;
|
|
747
739
|
/**
|
|
748
|
-
* HTTP
|
|
749
|
-
* Java method: org.openremote.model.
|
|
740
|
+
* HTTP GET /user/userRealmRoles
|
|
741
|
+
* Java method: org.openremote.model.security.UserResource.getCurrentUserRealmRoles
|
|
750
742
|
*/
|
|
751
|
-
|
|
743
|
+
getCurrentUserRealmRoles(options?: O): RestResponse<string[]>;
|
|
752
744
|
/**
|
|
753
|
-
* HTTP GET /
|
|
754
|
-
* Java method: org.openremote.model.
|
|
745
|
+
* HTTP GET /user/userRoles/{clientId}
|
|
746
|
+
* Java method: org.openremote.model.security.UserResource.getCurrentUserClientRoles
|
|
747
|
+
*/
|
|
748
|
+
getCurrentUserClientRoles(clientId: string, options?: O): RestResponse<string[]>;
|
|
749
|
+
/**
|
|
750
|
+
* HTTP GET /user/{realm}/disconnect/{sessionID}
|
|
751
|
+
* Java method: org.openremote.model.security.UserResource.disconnectUserSession
|
|
752
|
+
*/
|
|
753
|
+
disconnectUserSession(realm: string, sessionID: string, options?: O): RestResponse<void>;
|
|
754
|
+
/**
|
|
755
|
+
* HTTP PUT /user/{realm}/reset-password/{userId}
|
|
756
|
+
* Java method: org.openremote.model.security.UserResource.resetPassword
|
|
755
757
|
*/
|
|
756
|
-
|
|
758
|
+
resetPassword(realm: string, userId: string, credential: Model.Credential, options?: O): RestResponse<void>;
|
|
757
759
|
/**
|
|
758
|
-
* HTTP
|
|
759
|
-
* Java method: org.openremote.model.
|
|
760
|
+
* HTTP GET /user/{realm}/reset-secret/{userId}
|
|
761
|
+
* Java method: org.openremote.model.security.UserResource.resetSecret
|
|
760
762
|
*/
|
|
761
|
-
|
|
763
|
+
resetSecret(realm: string, userId: string, options?: O): RestResponse<string>;
|
|
762
764
|
/**
|
|
763
|
-
* HTTP
|
|
764
|
-
* Java method: org.openremote.model.
|
|
765
|
+
* HTTP PUT /user/{realm}/roles
|
|
766
|
+
* Java method: org.openremote.model.security.UserResource.updateRoles
|
|
765
767
|
*/
|
|
766
|
-
|
|
768
|
+
updateRoles(realm: string, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
767
769
|
/**
|
|
768
|
-
* HTTP GET /
|
|
769
|
-
* Java method: org.openremote.model.
|
|
770
|
+
* HTTP GET /user/{realm}/userRealmRoles/{userId}
|
|
771
|
+
* Java method: org.openremote.model.security.UserResource.getUserRealmRoles
|
|
770
772
|
*/
|
|
771
|
-
|
|
773
|
+
getUserRealmRoles(realm: string, userId: string, options?: O): RestResponse<string[]>;
|
|
772
774
|
/**
|
|
773
|
-
* HTTP
|
|
774
|
-
* Java method: org.openremote.model.
|
|
775
|
+
* HTTP PUT /user/{realm}/userRealmRoles/{userId}
|
|
776
|
+
* Java method: org.openremote.model.security.UserResource.updateUserRealmRoles
|
|
775
777
|
*/
|
|
776
|
-
|
|
778
|
+
updateUserRealmRoles(realm: string, userId: string, roles: string[], options?: O): RestResponse<void>;
|
|
777
779
|
/**
|
|
778
|
-
* HTTP GET /
|
|
779
|
-
* Java method: org.openremote.model.
|
|
780
|
+
* HTTP GET /user/{realm}/userRoles/{userId}/{clientId}
|
|
781
|
+
* Java method: org.openremote.model.security.UserResource.getUserClientRoles
|
|
780
782
|
*/
|
|
781
|
-
|
|
783
|
+
getUserClientRoles(realm: string, userId: string, clientId: string, options?: O): RestResponse<string[]>;
|
|
782
784
|
/**
|
|
783
|
-
* HTTP
|
|
784
|
-
* Java method: org.openremote.model.
|
|
785
|
+
* HTTP PUT /user/{realm}/userRoles/{userId}/{clientId}
|
|
786
|
+
* Java method: org.openremote.model.security.UserResource.updateUserClientRoles
|
|
785
787
|
*/
|
|
786
|
-
|
|
788
|
+
updateUserClientRoles(realm: string, userId: string, clientId: string, roles: string[], options?: O): RestResponse<void>;
|
|
787
789
|
/**
|
|
788
|
-
* HTTP GET /
|
|
789
|
-
* Java method: org.openremote.model.
|
|
790
|
+
* HTTP GET /user/{realm}/userSessions/{userId}
|
|
791
|
+
* Java method: org.openremote.model.security.UserResource.getUserSessions
|
|
790
792
|
*/
|
|
791
|
-
|
|
792
|
-
language?: Model.RulesetLang[];
|
|
793
|
-
fullyPopulate?: boolean;
|
|
794
|
-
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
793
|
+
getUserSessions(realm: string, userId: string, options?: O): RestResponse<Model.UserSession[]>;
|
|
795
794
|
/**
|
|
796
|
-
* HTTP
|
|
797
|
-
* Java method: org.openremote.model.
|
|
795
|
+
* HTTP POST /user/{realm}/users
|
|
796
|
+
* Java method: org.openremote.model.security.UserResource.create
|
|
798
797
|
*/
|
|
799
|
-
|
|
798
|
+
create(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
|
|
800
799
|
/**
|
|
801
|
-
* HTTP
|
|
802
|
-
* Java method: org.openremote.model.
|
|
800
|
+
* HTTP PUT /user/{realm}/users
|
|
801
|
+
* Java method: org.openremote.model.security.UserResource.update
|
|
803
802
|
*/
|
|
804
|
-
|
|
803
|
+
update(realm: string, user: Model.User, options?: O): RestResponse<Model.User>;
|
|
805
804
|
/**
|
|
806
|
-
* HTTP
|
|
807
|
-
* Java method: org.openremote.model.
|
|
805
|
+
* HTTP DELETE /user/{realm}/users/{userId}
|
|
806
|
+
* Java method: org.openremote.model.security.UserResource.delete
|
|
808
807
|
*/
|
|
809
|
-
|
|
808
|
+
delete(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
810
809
|
/**
|
|
811
|
-
* HTTP
|
|
812
|
-
* Java method: org.openremote.model.
|
|
810
|
+
* HTTP GET /user/{realm}/{clientId}/roles
|
|
811
|
+
* Java method: org.openremote.model.security.UserResource.getClientRoles
|
|
813
812
|
*/
|
|
814
|
-
|
|
813
|
+
getClientRoles(realm: string, clientId: string, options?: O): RestResponse<Model.Role[]>;
|
|
815
814
|
/**
|
|
816
|
-
* HTTP
|
|
817
|
-
* Java method: org.openremote.model.
|
|
815
|
+
* HTTP PUT /user/{realm}/{clientId}/roles
|
|
816
|
+
* Java method: org.openremote.model.security.UserResource.updateClientRoles
|
|
818
817
|
*/
|
|
819
|
-
|
|
818
|
+
updateClientRoles(realm: string, clientId: string, roles: Model.Role[], options?: O): RestResponse<void>;
|
|
820
819
|
/**
|
|
821
|
-
* HTTP
|
|
822
|
-
* Java method: org.openremote.model.
|
|
820
|
+
* HTTP GET /user/{realm}/{userId}
|
|
821
|
+
* Java method: org.openremote.model.security.UserResource.get
|
|
823
822
|
*/
|
|
824
|
-
|
|
823
|
+
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
825
824
|
}
|
|
826
|
-
export declare class
|
|
825
|
+
export declare class NotificationResourceClient<O> {
|
|
827
826
|
protected httpClient: HttpClient<O>;
|
|
828
827
|
constructor(httpClient: HttpClient<O>);
|
|
829
828
|
/**
|
|
830
|
-
* HTTP
|
|
831
|
-
* Java method: org.openremote.model.
|
|
832
|
-
*/
|
|
833
|
-
createAlarm(alarm: Model.Alarm, queryParams?: {
|
|
834
|
-
assetIds?: string[];
|
|
835
|
-
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
836
|
-
/**
|
|
837
|
-
* HTTP GET /alarm
|
|
838
|
-
* Java method: org.openremote.model.alarm.AlarmResource.getAlarms
|
|
829
|
+
* HTTP GET /notification
|
|
830
|
+
* Java method: org.openremote.model.notification.NotificationResource.getNotifications
|
|
839
831
|
*/
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
832
|
+
getNotifications(queryParams?: {
|
|
833
|
+
id?: number;
|
|
834
|
+
type?: string;
|
|
835
|
+
from?: number;
|
|
836
|
+
to?: number;
|
|
837
|
+
realmId?: string;
|
|
838
|
+
userId?: string;
|
|
843
839
|
assetId?: string;
|
|
844
|
-
|
|
845
|
-
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
846
|
-
/**
|
|
847
|
-
* HTTP DELETE /alarm
|
|
848
|
-
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
|
|
849
|
-
*/
|
|
850
|
-
removeAlarms(ids: number[], options?: O): RestResponse<void>;
|
|
840
|
+
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
851
841
|
/**
|
|
852
|
-
* HTTP
|
|
853
|
-
* Java method: org.openremote.model.
|
|
842
|
+
* HTTP DELETE /notification
|
|
843
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotifications
|
|
854
844
|
*/
|
|
855
|
-
|
|
845
|
+
removeNotifications(queryParams?: {
|
|
846
|
+
id?: number;
|
|
847
|
+
type?: string;
|
|
848
|
+
from?: number;
|
|
849
|
+
to?: number;
|
|
850
|
+
realmId?: string;
|
|
851
|
+
userId?: string;
|
|
852
|
+
assetId?: string;
|
|
853
|
+
}, options?: O): RestResponse<void>;
|
|
856
854
|
/**
|
|
857
|
-
* HTTP
|
|
858
|
-
* Java method: org.openremote.model.
|
|
855
|
+
* HTTP POST /notification/alert
|
|
856
|
+
* Java method: org.openremote.model.notification.NotificationResource.sendNotification
|
|
859
857
|
*/
|
|
860
|
-
|
|
858
|
+
sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
|
|
861
859
|
/**
|
|
862
|
-
* HTTP DELETE /
|
|
863
|
-
* Java method: org.openremote.model.
|
|
860
|
+
* HTTP DELETE /notification/{notificationId}
|
|
861
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotification
|
|
864
862
|
*/
|
|
865
|
-
|
|
863
|
+
removeNotification(notificationId: number, options?: O): RestResponse<void>;
|
|
866
864
|
/**
|
|
867
|
-
* HTTP PUT /
|
|
868
|
-
* Java method: org.openremote.model.
|
|
865
|
+
* HTTP PUT /notification/{notificationId}/acknowledged
|
|
866
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
|
|
869
867
|
*/
|
|
870
|
-
|
|
868
|
+
notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
|
|
869
|
+
targetId?: string;
|
|
870
|
+
}, options?: O): RestResponse<void>;
|
|
871
871
|
/**
|
|
872
|
-
* HTTP
|
|
873
|
-
* Java method: org.openremote.model.
|
|
872
|
+
* HTTP PUT /notification/{notificationId}/delivered
|
|
873
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
|
|
874
874
|
*/
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
}, options?: O): RestResponse<
|
|
875
|
+
notificationDelivered(notificationId: number, queryParams?: {
|
|
876
|
+
targetId?: string;
|
|
877
|
+
}, options?: O): RestResponse<void>;
|
|
878
878
|
}
|
|
879
879
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
880
880
|
export declare class ApiClient {
|
|
881
|
-
protected
|
|
882
|
-
protected _agentResource: AxiosAgentResourceClient;
|
|
881
|
+
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
883
882
|
protected _syslogResource: AxiosSyslogResourceClient;
|
|
883
|
+
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
884
|
+
protected _alarmResource: AxiosAlarmResourceClient;
|
|
885
|
+
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
884
886
|
protected _flowResource: AxiosFlowResourceClient;
|
|
885
|
-
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
886
|
-
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
887
|
-
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
888
887
|
protected _statusResource: AxiosStatusResourceClient;
|
|
889
|
-
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
890
|
-
protected _assetResource: AxiosAssetResourceClient;
|
|
891
|
-
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
892
|
-
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
893
|
-
protected _notificationResource: AxiosNotificationResourceClient;
|
|
894
|
-
protected _consoleResource: AxiosConsoleResourceClient;
|
|
895
888
|
protected _appResource: AxiosAppResourceClient;
|
|
896
|
-
protected
|
|
889
|
+
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
890
|
+
protected _agentResource: AxiosAgentResourceClient;
|
|
897
891
|
protected _mapResource: AxiosMapResourceClient;
|
|
898
|
-
protected
|
|
892
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
899
893
|
protected _realmResource: AxiosRealmResourceClient;
|
|
894
|
+
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
895
|
+
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
900
896
|
protected _rulesResource: AxiosRulesResourceClient;
|
|
901
|
-
protected
|
|
897
|
+
protected _assetResource: AxiosAssetResourceClient;
|
|
898
|
+
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
899
|
+
protected _consoleResource: AxiosConsoleResourceClient;
|
|
900
|
+
protected _userResource: AxiosUserResourceClient;
|
|
901
|
+
protected _notificationResource: AxiosNotificationResourceClient;
|
|
902
902
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
903
|
-
get
|
|
904
|
-
get AgentResource(): AxiosAgentResourceClient;
|
|
903
|
+
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
905
904
|
get SyslogResource(): AxiosSyslogResourceClient;
|
|
905
|
+
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
906
|
+
get AlarmResource(): AxiosAlarmResourceClient;
|
|
907
|
+
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
906
908
|
get FlowResource(): AxiosFlowResourceClient;
|
|
907
|
-
get DashboardResource(): AxiosDashboardResourceClient;
|
|
908
|
-
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
909
|
-
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
910
909
|
get StatusResource(): AxiosStatusResourceClient;
|
|
911
|
-
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
912
|
-
get AssetResource(): AxiosAssetResourceClient;
|
|
913
|
-
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
914
|
-
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
915
|
-
get NotificationResource(): AxiosNotificationResourceClient;
|
|
916
|
-
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
917
910
|
get AppResource(): AxiosAppResourceClient;
|
|
918
|
-
get
|
|
911
|
+
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
912
|
+
get AgentResource(): AxiosAgentResourceClient;
|
|
919
913
|
get MapResource(): AxiosMapResourceClient;
|
|
920
|
-
get
|
|
914
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
921
915
|
get RealmResource(): AxiosRealmResourceClient;
|
|
916
|
+
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
917
|
+
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
922
918
|
get RulesResource(): AxiosRulesResourceClient;
|
|
923
|
-
get
|
|
919
|
+
get AssetResource(): AxiosAssetResourceClient;
|
|
920
|
+
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
921
|
+
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
922
|
+
get UserResource(): AxiosUserResourceClient;
|
|
923
|
+
get NotificationResource(): AxiosNotificationResourceClient;
|
|
924
924
|
}
|
|
925
925
|
import * as Axios from "axios";
|
|
926
926
|
declare module "axios" {
|
|
@@ -928,66 +928,66 @@ declare module "axios" {
|
|
|
928
928
|
data: R;
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
export declare class
|
|
932
|
-
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
933
|
-
}
|
|
934
|
-
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
931
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
935
932
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
936
933
|
}
|
|
937
934
|
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
938
935
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
939
936
|
}
|
|
940
|
-
export declare class
|
|
937
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
941
938
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
942
939
|
}
|
|
943
|
-
export declare class
|
|
940
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
944
941
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
945
942
|
}
|
|
946
|
-
export declare class
|
|
943
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
947
944
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
948
945
|
}
|
|
949
|
-
export declare class
|
|
946
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
950
947
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
951
948
|
}
|
|
952
949
|
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
953
950
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
954
951
|
}
|
|
955
|
-
export declare class
|
|
952
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
956
953
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
957
954
|
}
|
|
958
|
-
export declare class
|
|
955
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
959
956
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
960
957
|
}
|
|
961
|
-
export declare class
|
|
958
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
962
959
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
963
960
|
}
|
|
964
|
-
export declare class
|
|
961
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
965
962
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
966
963
|
}
|
|
967
|
-
export declare class
|
|
964
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
968
965
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
969
966
|
}
|
|
970
|
-
export declare class
|
|
967
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
971
968
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
972
969
|
}
|
|
973
|
-
export declare class
|
|
970
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
974
971
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
975
972
|
}
|
|
976
|
-
export declare class
|
|
973
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
977
974
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
978
975
|
}
|
|
979
|
-
export declare class
|
|
976
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
980
977
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
981
978
|
}
|
|
982
|
-
export declare class
|
|
979
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
983
980
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
984
981
|
}
|
|
985
|
-
export declare class
|
|
982
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
986
983
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
987
984
|
}
|
|
988
|
-
export declare class
|
|
985
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
989
986
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
990
987
|
}
|
|
991
|
-
export declare class
|
|
988
|
+
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
989
|
+
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
990
|
+
}
|
|
991
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
992
992
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
993
993
|
}
|