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