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