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