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