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