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