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