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