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