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