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