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