@openremote/rest 1.7.0-snapshot.20250624090028 → 1.7.0-snapshot.20250624092918
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 +442 -442
- 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,6 +9,88 @@ export interface HttpClient<O> {
|
|
|
9
9
|
options?: O;
|
|
10
10
|
}): RestResponse<R>;
|
|
11
11
|
}
|
|
12
|
+
export declare class AppResourceClient<O> {
|
|
13
|
+
protected httpClient: HttpClient<O>;
|
|
14
|
+
constructor(httpClient: HttpClient<O>);
|
|
15
|
+
/**
|
|
16
|
+
* HTTP GET /apps
|
|
17
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
18
|
+
*/
|
|
19
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
20
|
+
/**
|
|
21
|
+
* HTTP GET /apps/consoleConfig
|
|
22
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
23
|
+
*/
|
|
24
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
25
|
+
/**
|
|
26
|
+
* HTTP GET /apps/info
|
|
27
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
28
|
+
*/
|
|
29
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
30
|
+
}
|
|
31
|
+
export declare class GatewayServiceResourceClient<O> {
|
|
32
|
+
protected httpClient: HttpClient<O>;
|
|
33
|
+
constructor(httpClient: HttpClient<O>);
|
|
34
|
+
/**
|
|
35
|
+
* HTTP POST /gateway/tunnel
|
|
36
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
|
|
37
|
+
*/
|
|
38
|
+
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
39
|
+
/**
|
|
40
|
+
* HTTP DELETE /gateway/tunnel
|
|
41
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
42
|
+
*/
|
|
43
|
+
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
44
|
+
/**
|
|
45
|
+
* HTTP GET /gateway/tunnel/{realm}
|
|
46
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
47
|
+
*/
|
|
48
|
+
getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
49
|
+
/**
|
|
50
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
51
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
52
|
+
*/
|
|
53
|
+
getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
54
|
+
/**
|
|
55
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
|
|
56
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
|
|
57
|
+
*/
|
|
58
|
+
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
59
|
+
}
|
|
60
|
+
export declare class DashboardResourceClient<O> {
|
|
61
|
+
protected httpClient: HttpClient<O>;
|
|
62
|
+
constructor(httpClient: HttpClient<O>);
|
|
63
|
+
/**
|
|
64
|
+
* HTTP POST /dashboard
|
|
65
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
66
|
+
*/
|
|
67
|
+
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
68
|
+
/**
|
|
69
|
+
* HTTP PUT /dashboard
|
|
70
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
71
|
+
*/
|
|
72
|
+
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
73
|
+
/**
|
|
74
|
+
* HTTP GET /dashboard/all/{realm}
|
|
75
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
76
|
+
*/
|
|
77
|
+
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
78
|
+
/**
|
|
79
|
+
* HTTP POST /dashboard/query
|
|
80
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
81
|
+
*/
|
|
82
|
+
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
83
|
+
/**
|
|
84
|
+
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
85
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
86
|
+
*/
|
|
87
|
+
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
88
|
+
/**
|
|
89
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
90
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
91
|
+
*/
|
|
92
|
+
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
93
|
+
}
|
|
12
94
|
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
13
95
|
protected httpClient: HttpClient<O>;
|
|
14
96
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -23,6 +105,88 @@ export declare class AssetPredictedDatapointResourceClient<O> {
|
|
|
23
105
|
*/
|
|
24
106
|
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
25
107
|
}
|
|
108
|
+
export declare class ProvisioningResourceClient<O> {
|
|
109
|
+
protected httpClient: HttpClient<O>;
|
|
110
|
+
constructor(httpClient: HttpClient<O>);
|
|
111
|
+
/**
|
|
112
|
+
* HTTP POST /provisioning
|
|
113
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
114
|
+
*/
|
|
115
|
+
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
116
|
+
/**
|
|
117
|
+
* HTTP GET /provisioning
|
|
118
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
119
|
+
*/
|
|
120
|
+
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
121
|
+
/**
|
|
122
|
+
* HTTP DELETE /provisioning/{id}
|
|
123
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
124
|
+
*/
|
|
125
|
+
deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
|
|
126
|
+
/**
|
|
127
|
+
* HTTP PUT /provisioning/{id}
|
|
128
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
129
|
+
*/
|
|
130
|
+
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
131
|
+
}
|
|
132
|
+
export declare class SyslogResourceClient<O> {
|
|
133
|
+
protected httpClient: HttpClient<O>;
|
|
134
|
+
constructor(httpClient: HttpClient<O>);
|
|
135
|
+
/**
|
|
136
|
+
* HTTP GET /syslog/config
|
|
137
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
138
|
+
*/
|
|
139
|
+
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
140
|
+
/**
|
|
141
|
+
* HTTP PUT /syslog/config
|
|
142
|
+
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
143
|
+
*/
|
|
144
|
+
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
145
|
+
/**
|
|
146
|
+
* HTTP DELETE /syslog/event
|
|
147
|
+
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
148
|
+
*/
|
|
149
|
+
clearEvents(options?: O): RestResponse<void>;
|
|
150
|
+
/**
|
|
151
|
+
* HTTP GET /syslog/event
|
|
152
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
153
|
+
*/
|
|
154
|
+
getEvents(queryParams?: {
|
|
155
|
+
level?: Model.SyslogLevel;
|
|
156
|
+
per_page?: number;
|
|
157
|
+
page?: number;
|
|
158
|
+
from?: number;
|
|
159
|
+
to?: number;
|
|
160
|
+
category?: Model.SyslogCategory[];
|
|
161
|
+
subCategory?: string[];
|
|
162
|
+
}, options?: O): RestResponse<any>;
|
|
163
|
+
}
|
|
164
|
+
export declare class ConfigurationResourceClient<O> {
|
|
165
|
+
protected httpClient: HttpClient<O>;
|
|
166
|
+
constructor(httpClient: HttpClient<O>);
|
|
167
|
+
/**
|
|
168
|
+
* HTTP GET /configuration/manager
|
|
169
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
170
|
+
*/
|
|
171
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
172
|
+
/**
|
|
173
|
+
* HTTP PUT /configuration/manager
|
|
174
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
175
|
+
*/
|
|
176
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
177
|
+
/**
|
|
178
|
+
* HTTP POST /configuration/manager/file
|
|
179
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
180
|
+
*/
|
|
181
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
182
|
+
path?: string;
|
|
183
|
+
}, options?: O): RestResponse<string>;
|
|
184
|
+
/**
|
|
185
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
186
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
187
|
+
*/
|
|
188
|
+
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
189
|
+
}
|
|
26
190
|
export declare class AssetResourceClient<O> {
|
|
27
191
|
protected httpClient: HttpClient<O>;
|
|
28
192
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -127,90 +291,6 @@ export declare class AssetResourceClient<O> {
|
|
|
127
291
|
assetIds?: string[];
|
|
128
292
|
}, options?: O): RestResponse<void>;
|
|
129
293
|
}
|
|
130
|
-
export declare class StatusResourceClient<O> {
|
|
131
|
-
protected httpClient: HttpClient<O>;
|
|
132
|
-
constructor(httpClient: HttpClient<O>);
|
|
133
|
-
/**
|
|
134
|
-
* HTTP GET /health
|
|
135
|
-
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
136
|
-
*/
|
|
137
|
-
getHealthStatus(options?: O): RestResponse<{
|
|
138
|
-
[index: string]: any;
|
|
139
|
-
}>;
|
|
140
|
-
/**
|
|
141
|
-
* HTTP GET /info
|
|
142
|
-
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
143
|
-
*/
|
|
144
|
-
getInfo(options?: O): RestResponse<{
|
|
145
|
-
[index: string]: any;
|
|
146
|
-
}>;
|
|
147
|
-
}
|
|
148
|
-
export declare class SyslogResourceClient<O> {
|
|
149
|
-
protected httpClient: HttpClient<O>;
|
|
150
|
-
constructor(httpClient: HttpClient<O>);
|
|
151
|
-
/**
|
|
152
|
-
* HTTP GET /syslog/config
|
|
153
|
-
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
154
|
-
*/
|
|
155
|
-
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
156
|
-
/**
|
|
157
|
-
* HTTP PUT /syslog/config
|
|
158
|
-
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
159
|
-
*/
|
|
160
|
-
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
161
|
-
/**
|
|
162
|
-
* HTTP DELETE /syslog/event
|
|
163
|
-
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
164
|
-
*/
|
|
165
|
-
clearEvents(options?: O): RestResponse<void>;
|
|
166
|
-
/**
|
|
167
|
-
* HTTP GET /syslog/event
|
|
168
|
-
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
169
|
-
*/
|
|
170
|
-
getEvents(queryParams?: {
|
|
171
|
-
level?: Model.SyslogLevel;
|
|
172
|
-
per_page?: number;
|
|
173
|
-
page?: number;
|
|
174
|
-
from?: number;
|
|
175
|
-
to?: number;
|
|
176
|
-
category?: Model.SyslogCategory[];
|
|
177
|
-
subCategory?: string[];
|
|
178
|
-
}, options?: O): RestResponse<any>;
|
|
179
|
-
}
|
|
180
|
-
export declare class RealmResourceClient<O> {
|
|
181
|
-
protected httpClient: HttpClient<O>;
|
|
182
|
-
constructor(httpClient: HttpClient<O>);
|
|
183
|
-
/**
|
|
184
|
-
* HTTP POST /realm
|
|
185
|
-
* Java method: org.openremote.model.security.RealmResource.create
|
|
186
|
-
*/
|
|
187
|
-
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
188
|
-
/**
|
|
189
|
-
* HTTP GET /realm
|
|
190
|
-
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
191
|
-
*/
|
|
192
|
-
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
193
|
-
/**
|
|
194
|
-
* HTTP GET /realm/accessible
|
|
195
|
-
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
196
|
-
*/
|
|
197
|
-
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
198
|
-
/**
|
|
199
|
-
* HTTP DELETE /realm/{name}
|
|
200
|
-
* Java method: org.openremote.model.security.RealmResource.delete
|
|
201
|
-
*/
|
|
202
|
-
delete(name: string, options?: O): RestResponse<void>;
|
|
203
|
-
/**
|
|
204
|
-
* HTTP GET /realm/{name}
|
|
205
|
-
* Java method: org.openremote.model.security.RealmResource.get
|
|
206
|
-
*/
|
|
207
|
-
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
208
|
-
/**
|
|
209
|
-
* HTTP PUT /realm/{name}
|
|
210
|
-
* Java method: org.openremote.model.security.RealmResource.update
|
|
211
|
-
*/
|
|
212
|
-
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
213
|
-
}
|
|
214
294
|
export declare class AlarmResourceClient<O> {
|
|
215
295
|
protected httpClient: HttpClient<O>;
|
|
216
296
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -264,158 +344,94 @@ export declare class AlarmResourceClient<O> {
|
|
|
264
344
|
realm?: string;
|
|
265
345
|
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
266
346
|
}
|
|
267
|
-
export declare class
|
|
347
|
+
export declare class ConsoleResourceClient<O> {
|
|
268
348
|
protected httpClient: HttpClient<O>;
|
|
269
349
|
constructor(httpClient: HttpClient<O>);
|
|
270
350
|
/**
|
|
271
|
-
* HTTP
|
|
272
|
-
* Java method: org.openremote.model.
|
|
351
|
+
* HTTP POST /console/register
|
|
352
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
273
353
|
*/
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
* HTTP GET /model/assetInfo/{assetType}
|
|
280
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
281
|
-
*/
|
|
282
|
-
getAssetInfo(assetType: string, queryParams?: {
|
|
283
|
-
parentId?: string;
|
|
284
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
285
|
-
/**
|
|
286
|
-
* HTTP GET /model/assetInfos
|
|
287
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
|
|
288
|
-
*/
|
|
289
|
-
getAssetInfos(queryParams?: {
|
|
290
|
-
parentId?: string;
|
|
291
|
-
parentType?: string;
|
|
292
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
354
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
355
|
+
}
|
|
356
|
+
export declare class StatusResourceClient<O> {
|
|
357
|
+
protected httpClient: HttpClient<O>;
|
|
358
|
+
constructor(httpClient: HttpClient<O>);
|
|
293
359
|
/**
|
|
294
|
-
* HTTP GET /
|
|
295
|
-
* Java method: org.openremote.model.
|
|
360
|
+
* HTTP GET /health
|
|
361
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
296
362
|
*/
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
}, options?: O): RestResponse<{
|
|
300
|
-
[index: string]: Model.MetaItemDescriptor;
|
|
363
|
+
getHealthStatus(options?: O): RestResponse<{
|
|
364
|
+
[index: string]: any;
|
|
301
365
|
}>;
|
|
302
366
|
/**
|
|
303
|
-
* HTTP GET /
|
|
304
|
-
* Java method: org.openremote.model.
|
|
367
|
+
* HTTP GET /info
|
|
368
|
+
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
305
369
|
*/
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
}, options?: O): RestResponse<{
|
|
309
|
-
[index: string]: Model.ValueDescriptor;
|
|
370
|
+
getInfo(options?: O): RestResponse<{
|
|
371
|
+
[index: string]: any;
|
|
310
372
|
}>;
|
|
311
373
|
}
|
|
312
|
-
export declare class
|
|
374
|
+
export declare class GatewayClientResourceClient<O> {
|
|
313
375
|
protected httpClient: HttpClient<O>;
|
|
314
376
|
constructor(httpClient: HttpClient<O>);
|
|
315
377
|
/**
|
|
316
|
-
* HTTP
|
|
317
|
-
* Java method: org.openremote.model.
|
|
318
|
-
*/
|
|
319
|
-
createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
|
|
320
|
-
/**
|
|
321
|
-
* HTTP GET /rules
|
|
322
|
-
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
323
|
-
*/
|
|
324
|
-
getGlobalRulesets(queryParams?: {
|
|
325
|
-
language?: Model.RulesetLang[];
|
|
326
|
-
fullyPopulate?: boolean;
|
|
327
|
-
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
328
|
-
/**
|
|
329
|
-
* HTTP POST /rules/asset
|
|
330
|
-
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
331
|
-
*/
|
|
332
|
-
createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
|
|
333
|
-
/**
|
|
334
|
-
* HTTP GET /rules/asset/for/{assetId}
|
|
335
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
|
|
336
|
-
*/
|
|
337
|
-
getAssetRulesets(assetId: string, queryParams?: {
|
|
338
|
-
language?: Model.RulesetLang[];
|
|
339
|
-
fullyPopulate?: boolean;
|
|
340
|
-
}, options?: O): RestResponse<Model.AssetRuleset[]>;
|
|
341
|
-
/**
|
|
342
|
-
* HTTP DELETE /rules/asset/{id}
|
|
343
|
-
* Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
|
|
344
|
-
*/
|
|
345
|
-
deleteAssetRuleset(id: number, options?: O): RestResponse<void>;
|
|
346
|
-
/**
|
|
347
|
-
* HTTP GET /rules/asset/{id}
|
|
348
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
|
|
349
|
-
*/
|
|
350
|
-
getAssetRuleset(id: number, options?: O): RestResponse<Model.AssetRuleset>;
|
|
351
|
-
/**
|
|
352
|
-
* HTTP PUT /rules/asset/{id}
|
|
353
|
-
* Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
|
|
354
|
-
*/
|
|
355
|
-
updateAssetRuleset(id: number, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
|
|
356
|
-
/**
|
|
357
|
-
* HTTP GET /rules/geofences/{assetId}
|
|
358
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
|
|
359
|
-
*/
|
|
360
|
-
getAssetGeofences(assetId: string, options?: O): RestResponse<Model.GeofenceDefinition[]>;
|
|
361
|
-
/**
|
|
362
|
-
* HTTP GET /rules/info/asset/{assetId}
|
|
363
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
|
|
364
|
-
*/
|
|
365
|
-
getAssetEngineInfo(assetId: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
366
|
-
/**
|
|
367
|
-
* HTTP GET /rules/info/global
|
|
368
|
-
* Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
|
|
369
|
-
*/
|
|
370
|
-
getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
371
|
-
/**
|
|
372
|
-
* HTTP GET /rules/info/realm/{realm}
|
|
373
|
-
* Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
|
|
378
|
+
* HTTP DELETE /gateway/connection
|
|
379
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
374
380
|
*/
|
|
375
|
-
|
|
381
|
+
deleteConnections(queryParams?: {
|
|
382
|
+
realm?: string[];
|
|
383
|
+
}, options?: O): RestResponse<void>;
|
|
376
384
|
/**
|
|
377
|
-
* HTTP
|
|
378
|
-
* Java method: org.openremote.model.
|
|
385
|
+
* HTTP GET /gateway/connection
|
|
386
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
379
387
|
*/
|
|
380
|
-
|
|
388
|
+
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
381
389
|
/**
|
|
382
|
-
* HTTP
|
|
383
|
-
* Java method: org.openremote.model.
|
|
390
|
+
* HTTP DELETE /gateway/connection/{realm}
|
|
391
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
384
392
|
*/
|
|
385
|
-
|
|
386
|
-
language?: Model.RulesetLang[];
|
|
387
|
-
fullyPopulate?: boolean;
|
|
388
|
-
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
393
|
+
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
389
394
|
/**
|
|
390
|
-
* HTTP
|
|
391
|
-
* Java method: org.openremote.model.
|
|
395
|
+
* HTTP GET /gateway/connection/{realm}
|
|
396
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
392
397
|
*/
|
|
393
|
-
|
|
398
|
+
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
394
399
|
/**
|
|
395
|
-
* HTTP
|
|
396
|
-
* Java method: org.openremote.model.
|
|
400
|
+
* HTTP PUT /gateway/connection/{realm}
|
|
401
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
397
402
|
*/
|
|
398
|
-
|
|
403
|
+
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
399
404
|
/**
|
|
400
|
-
* HTTP
|
|
401
|
-
* Java method: org.openremote.model.
|
|
405
|
+
* HTTP GET /gateway/status/{realm}
|
|
406
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
402
407
|
*/
|
|
403
|
-
|
|
408
|
+
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
409
|
+
}
|
|
410
|
+
export declare class AssetDatapointResourceClient<O> {
|
|
411
|
+
protected httpClient: HttpClient<O>;
|
|
412
|
+
constructor(httpClient: HttpClient<O>);
|
|
404
413
|
/**
|
|
405
|
-
* HTTP
|
|
406
|
-
* Java method: org.openremote.model.
|
|
414
|
+
* HTTP GET /asset/datapoint/export
|
|
415
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
407
416
|
*/
|
|
408
|
-
|
|
417
|
+
getDatapointExport(queryParams?: {
|
|
418
|
+
attributeRefs?: string;
|
|
419
|
+
fromTimestamp?: number;
|
|
420
|
+
toTimestamp?: number;
|
|
421
|
+
}, options?: O): RestResponse<any>;
|
|
409
422
|
/**
|
|
410
|
-
* HTTP GET /
|
|
411
|
-
* Java method: org.openremote.model.
|
|
423
|
+
* HTTP GET /asset/datapoint/periods
|
|
424
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
412
425
|
*/
|
|
413
|
-
|
|
426
|
+
getDatapointPeriod(queryParams?: {
|
|
427
|
+
assetId?: string;
|
|
428
|
+
attributeName?: string;
|
|
429
|
+
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
414
430
|
/**
|
|
415
|
-
* HTTP
|
|
416
|
-
* Java method: org.openremote.model.
|
|
431
|
+
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
432
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
417
433
|
*/
|
|
418
|
-
|
|
434
|
+
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
419
435
|
}
|
|
420
436
|
export declare class AgentResourceClient<O> {
|
|
421
437
|
protected httpClient: HttpClient<O>;
|
|
@@ -443,84 +459,93 @@ export declare class AgentResourceClient<O> {
|
|
|
443
459
|
realm?: string;
|
|
444
460
|
}, options?: O): RestResponse<Model.Agent[]>;
|
|
445
461
|
}
|
|
446
|
-
export declare class
|
|
462
|
+
export declare class RealmResourceClient<O> {
|
|
447
463
|
protected httpClient: HttpClient<O>;
|
|
448
464
|
constructor(httpClient: HttpClient<O>);
|
|
449
465
|
/**
|
|
450
|
-
* HTTP
|
|
451
|
-
* Java method: org.openremote.model.
|
|
452
|
-
*/
|
|
453
|
-
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
454
|
-
/**
|
|
455
|
-
* HTTP PUT /configuration/manager
|
|
456
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
466
|
+
* HTTP POST /realm
|
|
467
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
457
468
|
*/
|
|
458
|
-
|
|
469
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
459
470
|
/**
|
|
460
|
-
* HTTP
|
|
461
|
-
* Java method: org.openremote.model.
|
|
471
|
+
* HTTP GET /realm
|
|
472
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
462
473
|
*/
|
|
463
|
-
|
|
464
|
-
path?: string;
|
|
465
|
-
}, options?: O): RestResponse<string>;
|
|
474
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
466
475
|
/**
|
|
467
|
-
* HTTP GET /
|
|
468
|
-
* Java method: org.openremote.model.
|
|
476
|
+
* HTTP GET /realm/accessible
|
|
477
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
469
478
|
*/
|
|
470
|
-
|
|
471
|
-
}
|
|
472
|
-
export declare class DashboardResourceClient<O> {
|
|
473
|
-
protected httpClient: HttpClient<O>;
|
|
474
|
-
constructor(httpClient: HttpClient<O>);
|
|
479
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
475
480
|
/**
|
|
476
|
-
* HTTP
|
|
477
|
-
* Java method: org.openremote.model.
|
|
481
|
+
* HTTP DELETE /realm/{name}
|
|
482
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
478
483
|
*/
|
|
479
|
-
|
|
484
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
480
485
|
/**
|
|
481
|
-
* HTTP
|
|
482
|
-
* Java method: org.openremote.model.
|
|
486
|
+
* HTTP GET /realm/{name}
|
|
487
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
483
488
|
*/
|
|
484
|
-
|
|
489
|
+
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
485
490
|
/**
|
|
486
|
-
* HTTP
|
|
487
|
-
* Java method: org.openremote.model.
|
|
491
|
+
* HTTP PUT /realm/{name}
|
|
492
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
488
493
|
*/
|
|
489
|
-
|
|
494
|
+
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
495
|
+
}
|
|
496
|
+
export declare class NotificationResourceClient<O> {
|
|
497
|
+
protected httpClient: HttpClient<O>;
|
|
498
|
+
constructor(httpClient: HttpClient<O>);
|
|
490
499
|
/**
|
|
491
|
-
* HTTP
|
|
492
|
-
* Java method: org.openremote.model.
|
|
500
|
+
* HTTP GET /notification
|
|
501
|
+
* Java method: org.openremote.model.notification.NotificationResource.getNotifications
|
|
493
502
|
*/
|
|
494
|
-
|
|
503
|
+
getNotifications(queryParams?: {
|
|
504
|
+
id?: number;
|
|
505
|
+
type?: string;
|
|
506
|
+
from?: number;
|
|
507
|
+
to?: number;
|
|
508
|
+
realmId?: string;
|
|
509
|
+
userId?: string;
|
|
510
|
+
assetId?: string;
|
|
511
|
+
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
495
512
|
/**
|
|
496
|
-
* HTTP DELETE /
|
|
497
|
-
* Java method: org.openremote.model.
|
|
513
|
+
* HTTP DELETE /notification
|
|
514
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotifications
|
|
498
515
|
*/
|
|
499
|
-
|
|
516
|
+
removeNotifications(queryParams?: {
|
|
517
|
+
id?: number;
|
|
518
|
+
type?: string;
|
|
519
|
+
from?: number;
|
|
520
|
+
to?: number;
|
|
521
|
+
realmId?: string;
|
|
522
|
+
userId?: string;
|
|
523
|
+
assetId?: string;
|
|
524
|
+
}, options?: O): RestResponse<void>;
|
|
500
525
|
/**
|
|
501
|
-
* HTTP
|
|
502
|
-
* Java method: org.openremote.model.
|
|
526
|
+
* HTTP POST /notification/alert
|
|
527
|
+
* Java method: org.openremote.model.notification.NotificationResource.sendNotification
|
|
503
528
|
*/
|
|
504
|
-
|
|
505
|
-
}
|
|
506
|
-
export declare class FlowResourceClient<O> {
|
|
507
|
-
protected httpClient: HttpClient<O>;
|
|
508
|
-
constructor(httpClient: HttpClient<O>);
|
|
529
|
+
sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
|
|
509
530
|
/**
|
|
510
|
-
* HTTP
|
|
511
|
-
* Java method: org.openremote.model.
|
|
531
|
+
* HTTP DELETE /notification/{notificationId}
|
|
532
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotification
|
|
512
533
|
*/
|
|
513
|
-
|
|
534
|
+
removeNotification(notificationId: number, options?: O): RestResponse<void>;
|
|
514
535
|
/**
|
|
515
|
-
* HTTP
|
|
516
|
-
* Java method: org.openremote.model.
|
|
536
|
+
* HTTP PUT /notification/{notificationId}/acknowledged
|
|
537
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
|
|
517
538
|
*/
|
|
518
|
-
|
|
539
|
+
notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
|
|
540
|
+
targetId?: string;
|
|
541
|
+
}, options?: O): RestResponse<void>;
|
|
519
542
|
/**
|
|
520
|
-
* HTTP
|
|
521
|
-
* Java method: org.openremote.model.
|
|
543
|
+
* HTTP PUT /notification/{notificationId}/delivered
|
|
544
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
|
|
522
545
|
*/
|
|
523
|
-
|
|
546
|
+
notificationDelivered(notificationId: number, queryParams?: {
|
|
547
|
+
targetId?: string;
|
|
548
|
+
}, options?: O): RestResponse<void>;
|
|
524
549
|
}
|
|
525
550
|
export declare class MapResourceClient<O> {
|
|
526
551
|
protected httpClient: HttpClient<O>;
|
|
@@ -575,173 +600,132 @@ export declare class MapResourceClient<O> {
|
|
|
575
600
|
[id: string]: unknown;
|
|
576
601
|
}>;
|
|
577
602
|
}
|
|
578
|
-
export declare class
|
|
603
|
+
export declare class FlowResourceClient<O> {
|
|
579
604
|
protected httpClient: HttpClient<O>;
|
|
580
605
|
constructor(httpClient: HttpClient<O>);
|
|
581
606
|
/**
|
|
582
|
-
* HTTP
|
|
583
|
-
* Java method: org.openremote.model.
|
|
584
|
-
*/
|
|
585
|
-
deleteConnections(queryParams?: {
|
|
586
|
-
realm?: string[];
|
|
587
|
-
}, options?: O): RestResponse<void>;
|
|
588
|
-
/**
|
|
589
|
-
* HTTP GET /gateway/connection
|
|
590
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
591
|
-
*/
|
|
592
|
-
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
593
|
-
/**
|
|
594
|
-
* HTTP DELETE /gateway/connection/{realm}
|
|
595
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
596
|
-
*/
|
|
597
|
-
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
598
|
-
/**
|
|
599
|
-
* HTTP GET /gateway/connection/{realm}
|
|
600
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
607
|
+
* HTTP GET /flow
|
|
608
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
601
609
|
*/
|
|
602
|
-
|
|
610
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
603
611
|
/**
|
|
604
|
-
* HTTP
|
|
605
|
-
* Java method: org.openremote.model.
|
|
612
|
+
* HTTP GET /flow/{name}
|
|
613
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
606
614
|
*/
|
|
607
|
-
|
|
615
|
+
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
608
616
|
/**
|
|
609
|
-
* HTTP GET /
|
|
610
|
-
* Java method: org.openremote.model.
|
|
617
|
+
* HTTP GET /flow/{type}
|
|
618
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
611
619
|
*/
|
|
612
|
-
|
|
620
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
613
621
|
}
|
|
614
|
-
export declare class
|
|
622
|
+
export declare class RulesResourceClient<O> {
|
|
615
623
|
protected httpClient: HttpClient<O>;
|
|
616
624
|
constructor(httpClient: HttpClient<O>);
|
|
617
625
|
/**
|
|
618
|
-
* HTTP
|
|
619
|
-
* Java method: org.openremote.model.
|
|
626
|
+
* HTTP POST /rules
|
|
627
|
+
* Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
|
|
620
628
|
*/
|
|
621
|
-
|
|
622
|
-
attributeRefs?: string;
|
|
623
|
-
fromTimestamp?: number;
|
|
624
|
-
toTimestamp?: number;
|
|
625
|
-
}, options?: O): RestResponse<any>;
|
|
629
|
+
createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
|
|
626
630
|
/**
|
|
627
|
-
* HTTP GET /
|
|
628
|
-
* Java method: org.openremote.model.
|
|
631
|
+
* HTTP GET /rules
|
|
632
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
629
633
|
*/
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}, options?: O): RestResponse<Model.
|
|
634
|
+
getGlobalRulesets(queryParams?: {
|
|
635
|
+
language?: Model.RulesetLang[];
|
|
636
|
+
fullyPopulate?: boolean;
|
|
637
|
+
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
634
638
|
/**
|
|
635
|
-
* HTTP POST /asset
|
|
636
|
-
* Java method: org.openremote.model.
|
|
639
|
+
* HTTP POST /rules/asset
|
|
640
|
+
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
637
641
|
*/
|
|
638
|
-
|
|
639
|
-
}
|
|
640
|
-
export declare class NotificationResourceClient<O> {
|
|
641
|
-
protected httpClient: HttpClient<O>;
|
|
642
|
-
constructor(httpClient: HttpClient<O>);
|
|
642
|
+
createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
|
|
643
643
|
/**
|
|
644
|
-
* HTTP GET /
|
|
645
|
-
* Java method: org.openremote.model.
|
|
644
|
+
* HTTP GET /rules/asset/for/{assetId}
|
|
645
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
|
|
646
646
|
*/
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
647
|
+
getAssetRulesets(assetId: string, queryParams?: {
|
|
648
|
+
language?: Model.RulesetLang[];
|
|
649
|
+
fullyPopulate?: boolean;
|
|
650
|
+
}, options?: O): RestResponse<Model.AssetRuleset[]>;
|
|
651
|
+
/**
|
|
652
|
+
* HTTP DELETE /rules/asset/{id}
|
|
653
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
|
|
654
|
+
*/
|
|
655
|
+
deleteAssetRuleset(id: number, options?: O): RestResponse<void>;
|
|
656
656
|
/**
|
|
657
|
-
* HTTP
|
|
658
|
-
* Java method: org.openremote.model.
|
|
657
|
+
* HTTP GET /rules/asset/{id}
|
|
658
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
|
|
659
659
|
*/
|
|
660
|
-
|
|
661
|
-
id?: number;
|
|
662
|
-
type?: string;
|
|
663
|
-
from?: number;
|
|
664
|
-
to?: number;
|
|
665
|
-
realmId?: string;
|
|
666
|
-
userId?: string;
|
|
667
|
-
assetId?: string;
|
|
668
|
-
}, options?: O): RestResponse<void>;
|
|
660
|
+
getAssetRuleset(id: number, options?: O): RestResponse<Model.AssetRuleset>;
|
|
669
661
|
/**
|
|
670
|
-
* HTTP
|
|
671
|
-
* Java method: org.openremote.model.
|
|
662
|
+
* HTTP PUT /rules/asset/{id}
|
|
663
|
+
* Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
|
|
672
664
|
*/
|
|
673
|
-
|
|
665
|
+
updateAssetRuleset(id: number, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
|
|
674
666
|
/**
|
|
675
|
-
* HTTP
|
|
676
|
-
* Java method: org.openremote.model.
|
|
667
|
+
* HTTP GET /rules/geofences/{assetId}
|
|
668
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
|
|
677
669
|
*/
|
|
678
|
-
|
|
670
|
+
getAssetGeofences(assetId: string, options?: O): RestResponse<Model.GeofenceDefinition[]>;
|
|
679
671
|
/**
|
|
680
|
-
* HTTP
|
|
681
|
-
* Java method: org.openremote.model.
|
|
672
|
+
* HTTP GET /rules/info/asset/{assetId}
|
|
673
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
|
|
682
674
|
*/
|
|
683
|
-
|
|
684
|
-
targetId?: string;
|
|
685
|
-
}, options?: O): RestResponse<void>;
|
|
675
|
+
getAssetEngineInfo(assetId: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
686
676
|
/**
|
|
687
|
-
* HTTP
|
|
688
|
-
* Java method: org.openremote.model.
|
|
677
|
+
* HTTP GET /rules/info/global
|
|
678
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
|
|
689
679
|
*/
|
|
690
|
-
|
|
691
|
-
targetId?: string;
|
|
692
|
-
}, options?: O): RestResponse<void>;
|
|
693
|
-
}
|
|
694
|
-
export declare class ProvisioningResourceClient<O> {
|
|
695
|
-
protected httpClient: HttpClient<O>;
|
|
696
|
-
constructor(httpClient: HttpClient<O>);
|
|
680
|
+
getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
697
681
|
/**
|
|
698
|
-
* HTTP
|
|
699
|
-
* Java method: org.openremote.model.
|
|
682
|
+
* HTTP GET /rules/info/realm/{realm}
|
|
683
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
|
|
700
684
|
*/
|
|
701
|
-
|
|
685
|
+
getRealmEngineInfo(realm: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
702
686
|
/**
|
|
703
|
-
* HTTP
|
|
704
|
-
* Java method: org.openremote.model.
|
|
687
|
+
* HTTP POST /rules/realm
|
|
688
|
+
* Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
|
|
705
689
|
*/
|
|
706
|
-
|
|
690
|
+
createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
|
|
707
691
|
/**
|
|
708
|
-
* HTTP
|
|
709
|
-
* Java method: org.openremote.model.
|
|
692
|
+
* HTTP GET /rules/realm/for/{realm}
|
|
693
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
|
|
710
694
|
*/
|
|
711
|
-
|
|
695
|
+
getRealmRulesets(realm: string, queryParams?: {
|
|
696
|
+
language?: Model.RulesetLang[];
|
|
697
|
+
fullyPopulate?: boolean;
|
|
698
|
+
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
712
699
|
/**
|
|
713
|
-
* HTTP
|
|
714
|
-
* Java method: org.openremote.model.
|
|
700
|
+
* HTTP DELETE /rules/realm/{id}
|
|
701
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
|
|
715
702
|
*/
|
|
716
|
-
|
|
717
|
-
}
|
|
718
|
-
export declare class ConsoleResourceClient<O> {
|
|
719
|
-
protected httpClient: HttpClient<O>;
|
|
720
|
-
constructor(httpClient: HttpClient<O>);
|
|
703
|
+
deleteRealmRuleset(id: number, options?: O): RestResponse<void>;
|
|
721
704
|
/**
|
|
722
|
-
* HTTP
|
|
723
|
-
* Java method: org.openremote.model.
|
|
705
|
+
* HTTP GET /rules/realm/{id}
|
|
706
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
|
|
724
707
|
*/
|
|
725
|
-
|
|
726
|
-
}
|
|
727
|
-
export declare class AppResourceClient<O> {
|
|
728
|
-
protected httpClient: HttpClient<O>;
|
|
729
|
-
constructor(httpClient: HttpClient<O>);
|
|
708
|
+
getRealmRuleset(id: number, options?: O): RestResponse<Model.RealmRuleset>;
|
|
730
709
|
/**
|
|
731
|
-
* HTTP
|
|
732
|
-
* Java method: org.openremote.model.
|
|
710
|
+
* HTTP PUT /rules/realm/{id}
|
|
711
|
+
* Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
|
|
733
712
|
*/
|
|
734
|
-
|
|
713
|
+
updateRealmRuleset(id: number, ruleset: Model.RealmRuleset, options?: O): RestResponse<void>;
|
|
735
714
|
/**
|
|
736
|
-
* HTTP
|
|
737
|
-
* Java method: org.openremote.model.
|
|
715
|
+
* HTTP DELETE /rules/{id}
|
|
716
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
|
|
738
717
|
*/
|
|
739
|
-
|
|
718
|
+
deleteGlobalRuleset(id: number, options?: O): RestResponse<void>;
|
|
740
719
|
/**
|
|
741
|
-
* HTTP GET /
|
|
742
|
-
* Java method: org.openremote.model.
|
|
720
|
+
* HTTP GET /rules/{id}
|
|
721
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
|
|
743
722
|
*/
|
|
744
|
-
|
|
723
|
+
getGlobalRuleset(id: number, options?: O): RestResponse<Model.GlobalRuleset>;
|
|
724
|
+
/**
|
|
725
|
+
* HTTP PUT /rules/{id}
|
|
726
|
+
* Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
|
|
727
|
+
*/
|
|
728
|
+
updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
745
729
|
}
|
|
746
730
|
export declare class UserResourceClient<O> {
|
|
747
731
|
protected httpClient: HttpClient<O>;
|
|
@@ -847,80 +831,96 @@ export declare class UserResourceClient<O> {
|
|
|
847
831
|
*/
|
|
848
832
|
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
849
833
|
}
|
|
850
|
-
export declare class
|
|
834
|
+
export declare class AssetModelResourceClient<O> {
|
|
851
835
|
protected httpClient: HttpClient<O>;
|
|
852
836
|
constructor(httpClient: HttpClient<O>);
|
|
853
837
|
/**
|
|
854
|
-
* HTTP
|
|
855
|
-
* Java method: org.openremote.model.
|
|
838
|
+
* HTTP GET /model/assetDescriptors
|
|
839
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
|
|
856
840
|
*/
|
|
857
|
-
|
|
841
|
+
getAssetDescriptors(queryParams?: {
|
|
842
|
+
parentId?: string;
|
|
843
|
+
parentType?: string;
|
|
844
|
+
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
858
845
|
/**
|
|
859
|
-
* HTTP
|
|
860
|
-
* Java method: org.openremote.model.
|
|
846
|
+
* HTTP GET /model/assetInfo/{assetType}
|
|
847
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
861
848
|
*/
|
|
862
|
-
|
|
849
|
+
getAssetInfo(assetType: string, queryParams?: {
|
|
850
|
+
parentId?: string;
|
|
851
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
863
852
|
/**
|
|
864
|
-
* HTTP GET /
|
|
865
|
-
* Java method: org.openremote.model.
|
|
853
|
+
* HTTP GET /model/assetInfos
|
|
854
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
|
|
866
855
|
*/
|
|
867
|
-
|
|
856
|
+
getAssetInfos(queryParams?: {
|
|
857
|
+
parentId?: string;
|
|
858
|
+
parentType?: string;
|
|
859
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
868
860
|
/**
|
|
869
|
-
* HTTP GET /
|
|
870
|
-
* Java method: org.openremote.model.
|
|
861
|
+
* HTTP GET /model/metaItemDescriptors
|
|
862
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
871
863
|
*/
|
|
872
|
-
|
|
864
|
+
getMetaItemDescriptors(queryParams?: {
|
|
865
|
+
parentId?: string;
|
|
866
|
+
}, options?: O): RestResponse<{
|
|
867
|
+
[index: string]: Model.MetaItemDescriptor;
|
|
868
|
+
}>;
|
|
873
869
|
/**
|
|
874
|
-
* HTTP GET /
|
|
875
|
-
* Java method: org.openremote.model.
|
|
870
|
+
* HTTP GET /model/valueDescriptors
|
|
871
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
|
|
876
872
|
*/
|
|
877
|
-
|
|
873
|
+
getValueDescriptors(queryParams?: {
|
|
874
|
+
parentId?: string;
|
|
875
|
+
}, options?: O): RestResponse<{
|
|
876
|
+
[index: string]: Model.ValueDescriptor;
|
|
877
|
+
}>;
|
|
878
878
|
}
|
|
879
879
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
880
880
|
export declare class ApiClient {
|
|
881
|
+
protected _appResource: AxiosAppResourceClient;
|
|
882
|
+
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
883
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
881
884
|
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
882
|
-
protected
|
|
883
|
-
protected _statusResource: AxiosStatusResourceClient;
|
|
885
|
+
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
884
886
|
protected _syslogResource: AxiosSyslogResourceClient;
|
|
885
|
-
protected _realmResource: AxiosRealmResourceClient;
|
|
886
|
-
protected _alarmResource: AxiosAlarmResourceClient;
|
|
887
|
-
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
888
|
-
protected _rulesResource: AxiosRulesResourceClient;
|
|
889
|
-
protected _agentResource: AxiosAgentResourceClient;
|
|
890
887
|
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
891
|
-
protected
|
|
892
|
-
protected
|
|
893
|
-
protected
|
|
888
|
+
protected _assetResource: AxiosAssetResourceClient;
|
|
889
|
+
protected _alarmResource: AxiosAlarmResourceClient;
|
|
890
|
+
protected _consoleResource: AxiosConsoleResourceClient;
|
|
891
|
+
protected _statusResource: AxiosStatusResourceClient;
|
|
894
892
|
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
895
893
|
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
894
|
+
protected _agentResource: AxiosAgentResourceClient;
|
|
895
|
+
protected _realmResource: AxiosRealmResourceClient;
|
|
896
896
|
protected _notificationResource: AxiosNotificationResourceClient;
|
|
897
|
-
protected
|
|
898
|
-
protected
|
|
899
|
-
protected
|
|
897
|
+
protected _mapResource: AxiosMapResourceClient;
|
|
898
|
+
protected _flowResource: AxiosFlowResourceClient;
|
|
899
|
+
protected _rulesResource: AxiosRulesResourceClient;
|
|
900
900
|
protected _userResource: AxiosUserResourceClient;
|
|
901
|
-
protected
|
|
901
|
+
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
902
902
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
903
|
+
get AppResource(): AxiosAppResourceClient;
|
|
904
|
+
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
905
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
903
906
|
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
904
|
-
get
|
|
905
|
-
get StatusResource(): AxiosStatusResourceClient;
|
|
907
|
+
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
906
908
|
get SyslogResource(): AxiosSyslogResourceClient;
|
|
907
|
-
get RealmResource(): AxiosRealmResourceClient;
|
|
908
|
-
get AlarmResource(): AxiosAlarmResourceClient;
|
|
909
|
-
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
910
|
-
get RulesResource(): AxiosRulesResourceClient;
|
|
911
|
-
get AgentResource(): AxiosAgentResourceClient;
|
|
912
909
|
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
913
|
-
get
|
|
914
|
-
get
|
|
915
|
-
get
|
|
910
|
+
get AssetResource(): AxiosAssetResourceClient;
|
|
911
|
+
get AlarmResource(): AxiosAlarmResourceClient;
|
|
912
|
+
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
913
|
+
get StatusResource(): AxiosStatusResourceClient;
|
|
916
914
|
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
917
915
|
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
916
|
+
get AgentResource(): AxiosAgentResourceClient;
|
|
917
|
+
get RealmResource(): AxiosRealmResourceClient;
|
|
918
918
|
get NotificationResource(): AxiosNotificationResourceClient;
|
|
919
|
-
get
|
|
920
|
-
get
|
|
921
|
-
get
|
|
919
|
+
get MapResource(): AxiosMapResourceClient;
|
|
920
|
+
get FlowResource(): AxiosFlowResourceClient;
|
|
921
|
+
get RulesResource(): AxiosRulesResourceClient;
|
|
922
922
|
get UserResource(): AxiosUserResourceClient;
|
|
923
|
-
get
|
|
923
|
+
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
924
924
|
}
|
|
925
925
|
import * as Axios from "axios";
|
|
926
926
|
declare module "axios" {
|
|
@@ -928,66 +928,66 @@ declare module "axios" {
|
|
|
928
928
|
data: R;
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
export declare class
|
|
931
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
932
932
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
933
933
|
}
|
|
934
|
-
export declare class
|
|
934
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
935
935
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
936
936
|
}
|
|
937
|
-
export declare class
|
|
937
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
938
938
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
939
939
|
}
|
|
940
|
-
export declare class
|
|
940
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
941
941
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
942
942
|
}
|
|
943
|
-
export declare class
|
|
943
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
944
944
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
945
945
|
}
|
|
946
|
-
export declare class
|
|
946
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
947
947
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
948
948
|
}
|
|
949
|
-
export declare class
|
|
949
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
950
950
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
951
951
|
}
|
|
952
|
-
export declare class
|
|
952
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
953
953
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
954
954
|
}
|
|
955
|
-
export declare class
|
|
955
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
956
956
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
957
957
|
}
|
|
958
|
-
export declare class
|
|
958
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
959
959
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
960
960
|
}
|
|
961
|
-
export declare class
|
|
961
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
962
962
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
963
963
|
}
|
|
964
|
-
export declare class
|
|
964
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
965
965
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
966
966
|
}
|
|
967
|
-
export declare class
|
|
967
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
968
968
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
969
969
|
}
|
|
970
|
-
export declare class
|
|
970
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
971
971
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
972
972
|
}
|
|
973
|
-
export declare class
|
|
973
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
974
974
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
975
975
|
}
|
|
976
976
|
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
977
977
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
978
978
|
}
|
|
979
|
-
export declare class
|
|
979
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
980
980
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
981
981
|
}
|
|
982
|
-
export declare class
|
|
982
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
983
983
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
984
984
|
}
|
|
985
|
-
export declare class
|
|
985
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
986
986
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
987
987
|
}
|
|
988
988
|
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
989
989
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
990
990
|
}
|
|
991
|
-
export declare class
|
|
991
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
992
992
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
993
993
|
}
|