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