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