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