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