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