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