@openremote/rest 1.4.0-snapshot.20250314134031 → 1.4.0-snapshot.20250317153938
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 +438 -438
- 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,103 +9,162 @@ export interface HttpClient<O> {
|
|
|
9
9
|
options?: O;
|
|
10
10
|
}): RestResponse<R>;
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class FlowResourceClient<O> {
|
|
13
13
|
protected httpClient: HttpClient<O>;
|
|
14
14
|
constructor(httpClient: HttpClient<O>);
|
|
15
15
|
/**
|
|
16
|
-
* HTTP
|
|
17
|
-
* Java method: org.openremote.model.
|
|
16
|
+
* HTTP GET /flow
|
|
17
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
20
20
|
/**
|
|
21
|
-
* HTTP
|
|
22
|
-
* Java method: org.openremote.model.
|
|
21
|
+
* HTTP GET /flow/{name}
|
|
22
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
25
25
|
/**
|
|
26
|
-
* HTTP GET /
|
|
27
|
-
* Java method: org.openremote.model.
|
|
26
|
+
* HTTP GET /flow/{type}
|
|
27
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
30
|
+
}
|
|
31
|
+
export declare class ProvisioningResourceClient<O> {
|
|
32
|
+
protected httpClient: HttpClient<O>;
|
|
33
|
+
constructor(httpClient: HttpClient<O>);
|
|
30
34
|
/**
|
|
31
|
-
* HTTP POST /
|
|
32
|
-
* Java method: org.openremote.model.
|
|
35
|
+
* HTTP POST /provisioning
|
|
36
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
33
37
|
*/
|
|
34
|
-
|
|
38
|
+
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
35
39
|
/**
|
|
36
|
-
* HTTP
|
|
37
|
-
* Java method: org.openremote.model.
|
|
40
|
+
* HTTP GET /provisioning
|
|
41
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
38
42
|
*/
|
|
39
|
-
|
|
43
|
+
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
40
44
|
/**
|
|
41
|
-
* HTTP
|
|
42
|
-
* Java method: org.openremote.model.
|
|
45
|
+
* HTTP DELETE /provisioning/{id}
|
|
46
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
43
47
|
*/
|
|
44
|
-
|
|
48
|
+
deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
|
|
49
|
+
/**
|
|
50
|
+
* HTTP PUT /provisioning/{id}
|
|
51
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
52
|
+
*/
|
|
53
|
+
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
45
54
|
}
|
|
46
|
-
export declare class
|
|
55
|
+
export declare class GatewayServiceResourceClient<O> {
|
|
47
56
|
protected httpClient: HttpClient<O>;
|
|
48
57
|
constructor(httpClient: HttpClient<O>);
|
|
49
58
|
/**
|
|
50
|
-
* HTTP
|
|
51
|
-
* Java method: org.openremote.model.
|
|
59
|
+
* HTTP POST /gateway/tunnel
|
|
60
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.startTunnel
|
|
52
61
|
*/
|
|
53
|
-
|
|
54
|
-
parentId?: string;
|
|
55
|
-
parentType?: string;
|
|
56
|
-
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
62
|
+
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
57
63
|
/**
|
|
58
|
-
* HTTP
|
|
59
|
-
* Java method: org.openremote.model.
|
|
64
|
+
* HTTP DELETE /gateway/tunnel
|
|
65
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
60
66
|
*/
|
|
61
|
-
|
|
62
|
-
parentId?: string;
|
|
63
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
67
|
+
stopTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<void>;
|
|
64
68
|
/**
|
|
65
|
-
* HTTP GET /
|
|
66
|
-
* Java method: org.openremote.model.
|
|
69
|
+
* HTTP GET /gateway/tunnel/{realm}
|
|
70
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getAllActiveTunnelInfos
|
|
67
71
|
*/
|
|
68
|
-
|
|
69
|
-
parentId?: string;
|
|
70
|
-
parentType?: string;
|
|
71
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
72
|
+
getAllActiveTunnelInfos(realm: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
72
73
|
/**
|
|
73
|
-
* HTTP GET /
|
|
74
|
-
* Java method: org.openremote.model.
|
|
74
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}
|
|
75
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getGatewayActiveTunnelInfos
|
|
75
76
|
*/
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
getGatewayActiveTunnelInfos(realm: string, id: string, options?: O): RestResponse<Model.GatewayTunnelInfo[]>;
|
|
78
|
+
/**
|
|
79
|
+
* HTTP GET /gateway/tunnel/{realm}/{id}/{target}/{targetPort}
|
|
80
|
+
* Java method: org.openremote.model.gateway.GatewayServiceResource.getActiveTunnelInfo
|
|
81
|
+
*/
|
|
82
|
+
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
83
|
+
}
|
|
84
|
+
export declare class StatusResourceClient<O> {
|
|
85
|
+
protected httpClient: HttpClient<O>;
|
|
86
|
+
constructor(httpClient: HttpClient<O>);
|
|
87
|
+
/**
|
|
88
|
+
* HTTP GET /health
|
|
89
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
90
|
+
*/
|
|
91
|
+
getHealthStatus(options?: O): RestResponse<{
|
|
92
|
+
[index: string]: any;
|
|
80
93
|
}>;
|
|
81
94
|
/**
|
|
82
|
-
* HTTP GET /
|
|
83
|
-
* Java method: org.openremote.model.
|
|
95
|
+
* HTTP GET /info
|
|
96
|
+
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
84
97
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}, options?: O): RestResponse<{
|
|
88
|
-
[index: string]: Model.ValueDescriptor;
|
|
98
|
+
getInfo(options?: O): RestResponse<{
|
|
99
|
+
[index: string]: any;
|
|
89
100
|
}>;
|
|
90
101
|
}
|
|
91
|
-
export declare class
|
|
102
|
+
export declare class SyslogResourceClient<O> {
|
|
92
103
|
protected httpClient: HttpClient<O>;
|
|
93
104
|
constructor(httpClient: HttpClient<O>);
|
|
94
105
|
/**
|
|
95
|
-
* HTTP GET /
|
|
96
|
-
* Java method: org.openremote.model.
|
|
106
|
+
* HTTP GET /syslog/config
|
|
107
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
97
108
|
*/
|
|
98
|
-
|
|
109
|
+
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
99
110
|
/**
|
|
100
|
-
* HTTP
|
|
101
|
-
* Java method: org.openremote.model.
|
|
111
|
+
* HTTP PUT /syslog/config
|
|
112
|
+
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
102
113
|
*/
|
|
103
|
-
|
|
114
|
+
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
104
115
|
/**
|
|
105
|
-
* HTTP
|
|
106
|
-
* Java method: org.openremote.model.
|
|
116
|
+
* HTTP DELETE /syslog/event
|
|
117
|
+
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
107
118
|
*/
|
|
108
|
-
|
|
119
|
+
clearEvents(options?: O): RestResponse<void>;
|
|
120
|
+
/**
|
|
121
|
+
* HTTP GET /syslog/event
|
|
122
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
123
|
+
*/
|
|
124
|
+
getEvents(queryParams?: {
|
|
125
|
+
level?: Model.SyslogLevel;
|
|
126
|
+
per_page?: number;
|
|
127
|
+
page?: number;
|
|
128
|
+
from?: number;
|
|
129
|
+
to?: number;
|
|
130
|
+
category?: Model.SyslogCategory[];
|
|
131
|
+
subCategory?: string[];
|
|
132
|
+
}, options?: O): RestResponse<any>;
|
|
133
|
+
}
|
|
134
|
+
export declare class ConsoleResourceClient<O> {
|
|
135
|
+
protected httpClient: HttpClient<O>;
|
|
136
|
+
constructor(httpClient: HttpClient<O>);
|
|
137
|
+
/**
|
|
138
|
+
* HTTP POST /console/register
|
|
139
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
140
|
+
*/
|
|
141
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
142
|
+
}
|
|
143
|
+
export declare class AgentResourceClient<O> {
|
|
144
|
+
protected httpClient: HttpClient<O>;
|
|
145
|
+
constructor(httpClient: HttpClient<O>);
|
|
146
|
+
/**
|
|
147
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
148
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
149
|
+
*/
|
|
150
|
+
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
151
|
+
realm?: string;
|
|
152
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
153
|
+
/**
|
|
154
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
155
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
156
|
+
*/
|
|
157
|
+
doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
|
|
158
|
+
realm?: string;
|
|
159
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
160
|
+
/**
|
|
161
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
162
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
163
|
+
*/
|
|
164
|
+
doProtocolInstanceDiscovery(agentType: string, queryParams?: {
|
|
165
|
+
parentId?: string;
|
|
166
|
+
realm?: string;
|
|
167
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
109
168
|
}
|
|
110
169
|
export declare class UserResourceClient<O> {
|
|
111
170
|
protected httpClient: HttpClient<O>;
|
|
@@ -231,200 +290,129 @@ export declare class UserResourceClient<O> {
|
|
|
231
290
|
*/
|
|
232
291
|
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
233
292
|
}
|
|
234
|
-
export declare class
|
|
293
|
+
export declare class ConfigurationResourceClient<O> {
|
|
235
294
|
protected httpClient: HttpClient<O>;
|
|
236
295
|
constructor(httpClient: HttpClient<O>);
|
|
237
296
|
/**
|
|
238
|
-
* HTTP
|
|
239
|
-
* Java method: org.openremote.model.
|
|
240
|
-
*/
|
|
241
|
-
startTunnel(tunnelInfo: Model.GatewayTunnelInfo, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
242
|
-
/**
|
|
243
|
-
* HTTP DELETE /gateway/tunnel
|
|
244
|
-
* Java method: org.openremote.model.gateway.GatewayServiceResource.stopTunnel
|
|
297
|
+
* HTTP GET /configuration/manager
|
|
298
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
245
299
|
*/
|
|
246
|
-
|
|
300
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
247
301
|
/**
|
|
248
|
-
* HTTP
|
|
249
|
-
* Java method: org.openremote.model.
|
|
302
|
+
* HTTP PUT /configuration/manager
|
|
303
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
250
304
|
*/
|
|
251
|
-
|
|
305
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
252
306
|
/**
|
|
253
|
-
* HTTP
|
|
254
|
-
* Java method: org.openremote.model.
|
|
307
|
+
* HTTP POST /configuration/manager/file
|
|
308
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
255
309
|
*/
|
|
256
|
-
|
|
310
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
311
|
+
path?: string;
|
|
312
|
+
}, options?: O): RestResponse<string>;
|
|
257
313
|
/**
|
|
258
|
-
* HTTP GET /
|
|
259
|
-
* Java method: org.openremote.model.
|
|
314
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
315
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
260
316
|
*/
|
|
261
|
-
|
|
317
|
+
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
262
318
|
}
|
|
263
|
-
export declare class
|
|
319
|
+
export declare class DashboardResourceClient<O> {
|
|
264
320
|
protected httpClient: HttpClient<O>;
|
|
265
321
|
constructor(httpClient: HttpClient<O>);
|
|
266
322
|
/**
|
|
267
|
-
* HTTP POST /
|
|
268
|
-
* Java method: org.openremote.model.
|
|
323
|
+
* HTTP POST /dashboard
|
|
324
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
269
325
|
*/
|
|
270
|
-
|
|
326
|
+
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
271
327
|
/**
|
|
272
|
-
* HTTP PUT /
|
|
273
|
-
* Java method: org.openremote.model.
|
|
328
|
+
* HTTP PUT /dashboard
|
|
329
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
274
330
|
*/
|
|
275
|
-
|
|
276
|
-
}
|
|
277
|
-
export declare class AgentResourceClient<O> {
|
|
278
|
-
protected httpClient: HttpClient<O>;
|
|
279
|
-
constructor(httpClient: HttpClient<O>);
|
|
331
|
+
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
280
332
|
/**
|
|
281
|
-
* HTTP GET /
|
|
282
|
-
* Java method: org.openremote.model.
|
|
333
|
+
* HTTP GET /dashboard/all/{realm}
|
|
334
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
283
335
|
*/
|
|
284
|
-
|
|
285
|
-
realm?: string;
|
|
286
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
336
|
+
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
287
337
|
/**
|
|
288
|
-
* HTTP POST /
|
|
289
|
-
* Java method: org.openremote.model.
|
|
338
|
+
* HTTP POST /dashboard/query
|
|
339
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
290
340
|
*/
|
|
291
|
-
|
|
292
|
-
realm?: string;
|
|
293
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
341
|
+
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
294
342
|
/**
|
|
295
|
-
* HTTP
|
|
296
|
-
* Java method: org.openremote.model.
|
|
343
|
+
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
344
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
297
345
|
*/
|
|
298
|
-
|
|
299
|
-
parentId?: string;
|
|
300
|
-
realm?: string;
|
|
301
|
-
}, options?: O): RestResponse<Model.Agent[]>;
|
|
302
|
-
}
|
|
303
|
-
export declare class RulesResourceClient<O> {
|
|
304
|
-
protected httpClient: HttpClient<O>;
|
|
305
|
-
constructor(httpClient: HttpClient<O>);
|
|
306
|
-
/**
|
|
307
|
-
* HTTP POST /rules
|
|
308
|
-
* Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
|
|
309
|
-
*/
|
|
310
|
-
createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
|
|
311
|
-
/**
|
|
312
|
-
* HTTP GET /rules
|
|
313
|
-
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
314
|
-
*/
|
|
315
|
-
getGlobalRulesets(queryParams?: {
|
|
316
|
-
language?: Model.RulesetLang[];
|
|
317
|
-
fullyPopulate?: boolean;
|
|
318
|
-
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
319
|
-
/**
|
|
320
|
-
* HTTP POST /rules/asset
|
|
321
|
-
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
322
|
-
*/
|
|
323
|
-
createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
|
|
324
|
-
/**
|
|
325
|
-
* HTTP GET /rules/asset/for/{assetId}
|
|
326
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
|
|
327
|
-
*/
|
|
328
|
-
getAssetRulesets(assetId: string, queryParams?: {
|
|
329
|
-
language?: Model.RulesetLang[];
|
|
330
|
-
fullyPopulate?: boolean;
|
|
331
|
-
}, options?: O): RestResponse<Model.AssetRuleset[]>;
|
|
332
|
-
/**
|
|
333
|
-
* HTTP DELETE /rules/asset/{id}
|
|
334
|
-
* Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
|
|
335
|
-
*/
|
|
336
|
-
deleteAssetRuleset(id: number, options?: O): RestResponse<void>;
|
|
337
|
-
/**
|
|
338
|
-
* HTTP GET /rules/asset/{id}
|
|
339
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
|
|
340
|
-
*/
|
|
341
|
-
getAssetRuleset(id: number, options?: O): RestResponse<Model.AssetRuleset>;
|
|
342
|
-
/**
|
|
343
|
-
* HTTP PUT /rules/asset/{id}
|
|
344
|
-
* Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
|
|
345
|
-
*/
|
|
346
|
-
updateAssetRuleset(id: number, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
|
|
347
|
-
/**
|
|
348
|
-
* HTTP GET /rules/geofences/{assetId}
|
|
349
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
|
|
350
|
-
*/
|
|
351
|
-
getAssetGeofences(assetId: string, options?: O): RestResponse<Model.GeofenceDefinition[]>;
|
|
352
|
-
/**
|
|
353
|
-
* HTTP GET /rules/info/asset/{assetId}
|
|
354
|
-
* Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
|
|
355
|
-
*/
|
|
356
|
-
getAssetEngineInfo(assetId: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
357
|
-
/**
|
|
358
|
-
* HTTP GET /rules/info/global
|
|
359
|
-
* Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
|
|
360
|
-
*/
|
|
361
|
-
getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
362
|
-
/**
|
|
363
|
-
* HTTP GET /rules/info/realm/{realm}
|
|
364
|
-
* Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
|
|
365
|
-
*/
|
|
366
|
-
getRealmEngineInfo(realm: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
367
|
-
/**
|
|
368
|
-
* HTTP POST /rules/realm
|
|
369
|
-
* Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
|
|
370
|
-
*/
|
|
371
|
-
createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
|
|
372
|
-
/**
|
|
373
|
-
* HTTP GET /rules/realm/for/{realm}
|
|
374
|
-
* Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
|
|
375
|
-
*/
|
|
376
|
-
getRealmRulesets(realm: string, queryParams?: {
|
|
377
|
-
language?: Model.RulesetLang[];
|
|
378
|
-
fullyPopulate?: boolean;
|
|
379
|
-
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
346
|
+
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
380
347
|
/**
|
|
381
|
-
* HTTP
|
|
382
|
-
* Java method: org.openremote.model.
|
|
348
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
349
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
383
350
|
*/
|
|
384
|
-
|
|
351
|
+
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
352
|
+
}
|
|
353
|
+
export declare class AssetModelResourceClient<O> {
|
|
354
|
+
protected httpClient: HttpClient<O>;
|
|
355
|
+
constructor(httpClient: HttpClient<O>);
|
|
385
356
|
/**
|
|
386
|
-
* HTTP GET /
|
|
387
|
-
* Java method: org.openremote.model.
|
|
357
|
+
* HTTP GET /model/assetDescriptors
|
|
358
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
|
|
388
359
|
*/
|
|
389
|
-
|
|
360
|
+
getAssetDescriptors(queryParams?: {
|
|
361
|
+
parentId?: string;
|
|
362
|
+
parentType?: string;
|
|
363
|
+
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
390
364
|
/**
|
|
391
|
-
* HTTP
|
|
392
|
-
* Java method: org.openremote.model.
|
|
365
|
+
* HTTP GET /model/assetInfo/{assetType}
|
|
366
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
393
367
|
*/
|
|
394
|
-
|
|
368
|
+
getAssetInfo(assetType: string, queryParams?: {
|
|
369
|
+
parentId?: string;
|
|
370
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
395
371
|
/**
|
|
396
|
-
* HTTP
|
|
397
|
-
* Java method: org.openremote.model.
|
|
372
|
+
* HTTP GET /model/assetInfos
|
|
373
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
|
|
398
374
|
*/
|
|
399
|
-
|
|
375
|
+
getAssetInfos(queryParams?: {
|
|
376
|
+
parentId?: string;
|
|
377
|
+
parentType?: string;
|
|
378
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
400
379
|
/**
|
|
401
|
-
* HTTP GET /
|
|
402
|
-
* Java method: org.openremote.model.
|
|
380
|
+
* HTTP GET /model/metaItemDescriptors
|
|
381
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
403
382
|
*/
|
|
404
|
-
|
|
383
|
+
getMetaItemDescriptors(queryParams?: {
|
|
384
|
+
parentId?: string;
|
|
385
|
+
}, options?: O): RestResponse<{
|
|
386
|
+
[index: string]: Model.MetaItemDescriptor;
|
|
387
|
+
}>;
|
|
405
388
|
/**
|
|
406
|
-
* HTTP
|
|
407
|
-
* Java method: org.openremote.model.
|
|
389
|
+
* HTTP GET /model/valueDescriptors
|
|
390
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
|
|
408
391
|
*/
|
|
409
|
-
|
|
392
|
+
getValueDescriptors(queryParams?: {
|
|
393
|
+
parentId?: string;
|
|
394
|
+
}, options?: O): RestResponse<{
|
|
395
|
+
[index: string]: Model.ValueDescriptor;
|
|
396
|
+
}>;
|
|
410
397
|
}
|
|
411
|
-
export declare class
|
|
398
|
+
export declare class AppResourceClient<O> {
|
|
412
399
|
protected httpClient: HttpClient<O>;
|
|
413
400
|
constructor(httpClient: HttpClient<O>);
|
|
414
401
|
/**
|
|
415
|
-
* HTTP GET /
|
|
416
|
-
* Java method: org.openremote.model.
|
|
402
|
+
* HTTP GET /apps
|
|
403
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
417
404
|
*/
|
|
418
|
-
|
|
419
|
-
[index: string]: any;
|
|
420
|
-
}>;
|
|
405
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
421
406
|
/**
|
|
422
|
-
* HTTP GET /
|
|
423
|
-
* Java method: org.openremote.model.
|
|
407
|
+
* HTTP GET /apps/consoleConfig
|
|
408
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
424
409
|
*/
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
410
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
411
|
+
/**
|
|
412
|
+
* HTTP GET /apps/info
|
|
413
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
414
|
+
*/
|
|
415
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
428
416
|
}
|
|
429
417
|
export declare class NotificationResourceClient<O> {
|
|
430
418
|
protected httpClient: HttpClient<O>;
|
|
@@ -480,6 +468,110 @@ export declare class NotificationResourceClient<O> {
|
|
|
480
468
|
targetId?: string;
|
|
481
469
|
}, options?: O): RestResponse<void>;
|
|
482
470
|
}
|
|
471
|
+
export declare class RealmResourceClient<O> {
|
|
472
|
+
protected httpClient: HttpClient<O>;
|
|
473
|
+
constructor(httpClient: HttpClient<O>);
|
|
474
|
+
/**
|
|
475
|
+
* HTTP POST /realm
|
|
476
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
477
|
+
*/
|
|
478
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
479
|
+
/**
|
|
480
|
+
* HTTP GET /realm
|
|
481
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
482
|
+
*/
|
|
483
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
484
|
+
/**
|
|
485
|
+
* HTTP GET /realm/accessible
|
|
486
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
487
|
+
*/
|
|
488
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
489
|
+
/**
|
|
490
|
+
* HTTP DELETE /realm/{name}
|
|
491
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
492
|
+
*/
|
|
493
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
494
|
+
/**
|
|
495
|
+
* HTTP GET /realm/{name}
|
|
496
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
497
|
+
*/
|
|
498
|
+
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
499
|
+
/**
|
|
500
|
+
* HTTP PUT /realm/{name}
|
|
501
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
502
|
+
*/
|
|
503
|
+
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
504
|
+
}
|
|
505
|
+
export declare class MapResourceClient<O> {
|
|
506
|
+
protected httpClient: HttpClient<O>;
|
|
507
|
+
constructor(httpClient: HttpClient<O>);
|
|
508
|
+
/**
|
|
509
|
+
* HTTP GET /map
|
|
510
|
+
* Java method: org.openremote.model.map.MapResource.getSettings
|
|
511
|
+
*/
|
|
512
|
+
getSettings(options?: O): RestResponse<{
|
|
513
|
+
[id: string]: unknown;
|
|
514
|
+
}>;
|
|
515
|
+
/**
|
|
516
|
+
* HTTP PUT /map
|
|
517
|
+
* Java method: org.openremote.model.map.MapResource.saveSettings
|
|
518
|
+
*/
|
|
519
|
+
saveSettings(mapConfig: {
|
|
520
|
+
[index: string]: Model.MapRealmConfig;
|
|
521
|
+
}, options?: O): RestResponse<any>;
|
|
522
|
+
/**
|
|
523
|
+
* HTTP GET /map/js
|
|
524
|
+
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
525
|
+
*/
|
|
526
|
+
getSettingsJs(options?: O): RestResponse<{
|
|
527
|
+
[id: string]: unknown;
|
|
528
|
+
}>;
|
|
529
|
+
/**
|
|
530
|
+
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
531
|
+
* Java method: org.openremote.model.map.MapResource.getTile
|
|
532
|
+
*/
|
|
533
|
+
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
534
|
+
}
|
|
535
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
536
|
+
protected httpClient: HttpClient<O>;
|
|
537
|
+
constructor(httpClient: HttpClient<O>);
|
|
538
|
+
/**
|
|
539
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
540
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
541
|
+
*/
|
|
542
|
+
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
543
|
+
/**
|
|
544
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
545
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
546
|
+
*/
|
|
547
|
+
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
548
|
+
}
|
|
549
|
+
export declare class AssetDatapointResourceClient<O> {
|
|
550
|
+
protected httpClient: HttpClient<O>;
|
|
551
|
+
constructor(httpClient: HttpClient<O>);
|
|
552
|
+
/**
|
|
553
|
+
* HTTP GET /asset/datapoint/export
|
|
554
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
555
|
+
*/
|
|
556
|
+
getDatapointExport(queryParams?: {
|
|
557
|
+
attributeRefs?: string;
|
|
558
|
+
fromTimestamp?: number;
|
|
559
|
+
toTimestamp?: number;
|
|
560
|
+
}, options?: O): RestResponse<any>;
|
|
561
|
+
/**
|
|
562
|
+
* HTTP GET /asset/datapoint/periods
|
|
563
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
564
|
+
*/
|
|
565
|
+
getDatapointPeriod(queryParams?: {
|
|
566
|
+
assetId?: string;
|
|
567
|
+
attributeName?: string;
|
|
568
|
+
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
569
|
+
/**
|
|
570
|
+
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
571
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
572
|
+
*/
|
|
573
|
+
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
574
|
+
}
|
|
483
575
|
export declare class AssetResourceClient<O> {
|
|
484
576
|
protected httpClient: HttpClient<O>;
|
|
485
577
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -584,65 +676,113 @@ export declare class AssetResourceClient<O> {
|
|
|
584
676
|
assetIds?: string[];
|
|
585
677
|
}, options?: O): RestResponse<void>;
|
|
586
678
|
}
|
|
587
|
-
export declare class
|
|
679
|
+
export declare class RulesResourceClient<O> {
|
|
588
680
|
protected httpClient: HttpClient<O>;
|
|
589
681
|
constructor(httpClient: HttpClient<O>);
|
|
590
682
|
/**
|
|
591
|
-
* HTTP
|
|
592
|
-
* Java method: org.openremote.model.
|
|
683
|
+
* HTTP POST /rules
|
|
684
|
+
* Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
|
|
593
685
|
*/
|
|
594
|
-
|
|
686
|
+
createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
|
|
595
687
|
/**
|
|
596
|
-
* HTTP
|
|
597
|
-
* Java method: org.openremote.model.
|
|
688
|
+
* HTTP GET /rules
|
|
689
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
598
690
|
*/
|
|
599
|
-
|
|
691
|
+
getGlobalRulesets(queryParams?: {
|
|
692
|
+
language?: Model.RulesetLang[];
|
|
693
|
+
fullyPopulate?: boolean;
|
|
694
|
+
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
600
695
|
/**
|
|
601
|
-
* HTTP
|
|
602
|
-
* Java method: org.openremote.model.
|
|
696
|
+
* HTTP POST /rules/asset
|
|
697
|
+
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
603
698
|
*/
|
|
604
|
-
|
|
699
|
+
createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
|
|
605
700
|
/**
|
|
606
|
-
* HTTP GET /
|
|
607
|
-
* Java method: org.openremote.model.
|
|
701
|
+
* HTTP GET /rules/asset/for/{assetId}
|
|
702
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
|
|
608
703
|
*/
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
from?: number;
|
|
614
|
-
to?: number;
|
|
615
|
-
category?: Model.SyslogCategory[];
|
|
616
|
-
subCategory?: string[];
|
|
617
|
-
}, options?: O): RestResponse<any>;
|
|
618
|
-
}
|
|
619
|
-
export declare class ConsoleResourceClient<O> {
|
|
620
|
-
protected httpClient: HttpClient<O>;
|
|
621
|
-
constructor(httpClient: HttpClient<O>);
|
|
704
|
+
getAssetRulesets(assetId: string, queryParams?: {
|
|
705
|
+
language?: Model.RulesetLang[];
|
|
706
|
+
fullyPopulate?: boolean;
|
|
707
|
+
}, options?: O): RestResponse<Model.AssetRuleset[]>;
|
|
622
708
|
/**
|
|
623
|
-
* HTTP
|
|
624
|
-
* Java method: org.openremote.model.
|
|
709
|
+
* HTTP DELETE /rules/asset/{id}
|
|
710
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
|
|
711
|
+
*/
|
|
712
|
+
deleteAssetRuleset(id: number, options?: O): RestResponse<void>;
|
|
713
|
+
/**
|
|
714
|
+
* HTTP GET /rules/asset/{id}
|
|
715
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
|
|
716
|
+
*/
|
|
717
|
+
getAssetRuleset(id: number, options?: O): RestResponse<Model.AssetRuleset>;
|
|
718
|
+
/**
|
|
719
|
+
* HTTP PUT /rules/asset/{id}
|
|
720
|
+
* Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
|
|
721
|
+
*/
|
|
722
|
+
updateAssetRuleset(id: number, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
|
|
723
|
+
/**
|
|
724
|
+
* HTTP GET /rules/geofences/{assetId}
|
|
725
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
|
|
726
|
+
*/
|
|
727
|
+
getAssetGeofences(assetId: string, options?: O): RestResponse<Model.GeofenceDefinition[]>;
|
|
728
|
+
/**
|
|
729
|
+
* HTTP GET /rules/info/asset/{assetId}
|
|
730
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
|
|
731
|
+
*/
|
|
732
|
+
getAssetEngineInfo(assetId: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
733
|
+
/**
|
|
734
|
+
* HTTP GET /rules/info/global
|
|
735
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
|
|
736
|
+
*/
|
|
737
|
+
getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
738
|
+
/**
|
|
739
|
+
* HTTP GET /rules/info/realm/{realm}
|
|
740
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
|
|
741
|
+
*/
|
|
742
|
+
getRealmEngineInfo(realm: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
743
|
+
/**
|
|
744
|
+
* HTTP POST /rules/realm
|
|
745
|
+
* Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
|
|
746
|
+
*/
|
|
747
|
+
createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
|
|
748
|
+
/**
|
|
749
|
+
* HTTP GET /rules/realm/for/{realm}
|
|
750
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
|
|
751
|
+
*/
|
|
752
|
+
getRealmRulesets(realm: string, queryParams?: {
|
|
753
|
+
language?: Model.RulesetLang[];
|
|
754
|
+
fullyPopulate?: boolean;
|
|
755
|
+
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
756
|
+
/**
|
|
757
|
+
* HTTP DELETE /rules/realm/{id}
|
|
758
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
|
|
759
|
+
*/
|
|
760
|
+
deleteRealmRuleset(id: number, options?: O): RestResponse<void>;
|
|
761
|
+
/**
|
|
762
|
+
* HTTP GET /rules/realm/{id}
|
|
763
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
|
|
764
|
+
*/
|
|
765
|
+
getRealmRuleset(id: number, options?: O): RestResponse<Model.RealmRuleset>;
|
|
766
|
+
/**
|
|
767
|
+
* HTTP PUT /rules/realm/{id}
|
|
768
|
+
* Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
|
|
625
769
|
*/
|
|
626
|
-
|
|
627
|
-
}
|
|
628
|
-
export declare class FlowResourceClient<O> {
|
|
629
|
-
protected httpClient: HttpClient<O>;
|
|
630
|
-
constructor(httpClient: HttpClient<O>);
|
|
770
|
+
updateRealmRuleset(id: number, ruleset: Model.RealmRuleset, options?: O): RestResponse<void>;
|
|
631
771
|
/**
|
|
632
|
-
* HTTP
|
|
633
|
-
* Java method: org.openremote.model.rules.
|
|
772
|
+
* HTTP DELETE /rules/{id}
|
|
773
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
|
|
634
774
|
*/
|
|
635
|
-
|
|
775
|
+
deleteGlobalRuleset(id: number, options?: O): RestResponse<void>;
|
|
636
776
|
/**
|
|
637
|
-
* HTTP GET /
|
|
638
|
-
* Java method: org.openremote.model.rules.
|
|
777
|
+
* HTTP GET /rules/{id}
|
|
778
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
|
|
639
779
|
*/
|
|
640
|
-
|
|
780
|
+
getGlobalRuleset(id: number, options?: O): RestResponse<Model.GlobalRuleset>;
|
|
641
781
|
/**
|
|
642
|
-
* HTTP
|
|
643
|
-
* Java method: org.openremote.model.rules.
|
|
782
|
+
* HTTP PUT /rules/{id}
|
|
783
|
+
* Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
|
|
644
784
|
*/
|
|
645
|
-
|
|
785
|
+
updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
646
786
|
}
|
|
647
787
|
export declare class GatewayClientResourceClient<O> {
|
|
648
788
|
protected httpClient: HttpClient<O>;
|
|
@@ -680,146 +820,6 @@ export declare class GatewayClientResourceClient<O> {
|
|
|
680
820
|
*/
|
|
681
821
|
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
682
822
|
}
|
|
683
|
-
export declare class MapResourceClient<O> {
|
|
684
|
-
protected httpClient: HttpClient<O>;
|
|
685
|
-
constructor(httpClient: HttpClient<O>);
|
|
686
|
-
/**
|
|
687
|
-
* HTTP GET /map
|
|
688
|
-
* Java method: org.openremote.model.map.MapResource.getSettings
|
|
689
|
-
*/
|
|
690
|
-
getSettings(options?: O): RestResponse<{
|
|
691
|
-
[id: string]: unknown;
|
|
692
|
-
}>;
|
|
693
|
-
/**
|
|
694
|
-
* HTTP PUT /map
|
|
695
|
-
* Java method: org.openremote.model.map.MapResource.saveSettings
|
|
696
|
-
*/
|
|
697
|
-
saveSettings(mapConfig: {
|
|
698
|
-
[index: string]: Model.MapRealmConfig;
|
|
699
|
-
}, options?: O): RestResponse<any>;
|
|
700
|
-
/**
|
|
701
|
-
* HTTP GET /map/js
|
|
702
|
-
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
703
|
-
*/
|
|
704
|
-
getSettingsJs(options?: O): RestResponse<{
|
|
705
|
-
[id: string]: unknown;
|
|
706
|
-
}>;
|
|
707
|
-
/**
|
|
708
|
-
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
709
|
-
* Java method: org.openremote.model.map.MapResource.getTile
|
|
710
|
-
*/
|
|
711
|
-
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
712
|
-
}
|
|
713
|
-
export declare class AssetDatapointResourceClient<O> {
|
|
714
|
-
protected httpClient: HttpClient<O>;
|
|
715
|
-
constructor(httpClient: HttpClient<O>);
|
|
716
|
-
/**
|
|
717
|
-
* HTTP GET /asset/datapoint/export
|
|
718
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
719
|
-
*/
|
|
720
|
-
getDatapointExport(queryParams?: {
|
|
721
|
-
attributeRefs?: string;
|
|
722
|
-
fromTimestamp?: number;
|
|
723
|
-
toTimestamp?: number;
|
|
724
|
-
}, options?: O): RestResponse<any>;
|
|
725
|
-
/**
|
|
726
|
-
* HTTP GET /asset/datapoint/periods
|
|
727
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
728
|
-
*/
|
|
729
|
-
getDatapointPeriod(queryParams?: {
|
|
730
|
-
assetId?: string;
|
|
731
|
-
attributeName?: string;
|
|
732
|
-
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
733
|
-
/**
|
|
734
|
-
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
735
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
736
|
-
*/
|
|
737
|
-
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
738
|
-
}
|
|
739
|
-
export declare class ConfigurationResourceClient<O> {
|
|
740
|
-
protected httpClient: HttpClient<O>;
|
|
741
|
-
constructor(httpClient: HttpClient<O>);
|
|
742
|
-
/**
|
|
743
|
-
* HTTP GET /configuration/manager
|
|
744
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
745
|
-
*/
|
|
746
|
-
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
747
|
-
/**
|
|
748
|
-
* HTTP PUT /configuration/manager
|
|
749
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
750
|
-
*/
|
|
751
|
-
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
752
|
-
/**
|
|
753
|
-
* HTTP POST /configuration/manager/file
|
|
754
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
755
|
-
*/
|
|
756
|
-
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
757
|
-
path?: string;
|
|
758
|
-
}, options?: O): RestResponse<string>;
|
|
759
|
-
/**
|
|
760
|
-
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
761
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
762
|
-
*/
|
|
763
|
-
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
764
|
-
}
|
|
765
|
-
export declare class RealmResourceClient<O> {
|
|
766
|
-
protected httpClient: HttpClient<O>;
|
|
767
|
-
constructor(httpClient: HttpClient<O>);
|
|
768
|
-
/**
|
|
769
|
-
* HTTP POST /realm
|
|
770
|
-
* Java method: org.openremote.model.security.RealmResource.create
|
|
771
|
-
*/
|
|
772
|
-
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
773
|
-
/**
|
|
774
|
-
* HTTP GET /realm
|
|
775
|
-
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
776
|
-
*/
|
|
777
|
-
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
778
|
-
/**
|
|
779
|
-
* HTTP GET /realm/accessible
|
|
780
|
-
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
781
|
-
*/
|
|
782
|
-
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
783
|
-
/**
|
|
784
|
-
* HTTP DELETE /realm/{name}
|
|
785
|
-
* Java method: org.openremote.model.security.RealmResource.delete
|
|
786
|
-
*/
|
|
787
|
-
delete(name: string, options?: O): RestResponse<void>;
|
|
788
|
-
/**
|
|
789
|
-
* HTTP GET /realm/{name}
|
|
790
|
-
* Java method: org.openremote.model.security.RealmResource.get
|
|
791
|
-
*/
|
|
792
|
-
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
793
|
-
/**
|
|
794
|
-
* HTTP PUT /realm/{name}
|
|
795
|
-
* Java method: org.openremote.model.security.RealmResource.update
|
|
796
|
-
*/
|
|
797
|
-
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
798
|
-
}
|
|
799
|
-
export declare class ProvisioningResourceClient<O> {
|
|
800
|
-
protected httpClient: HttpClient<O>;
|
|
801
|
-
constructor(httpClient: HttpClient<O>);
|
|
802
|
-
/**
|
|
803
|
-
* HTTP POST /provisioning
|
|
804
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
805
|
-
*/
|
|
806
|
-
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
807
|
-
/**
|
|
808
|
-
* HTTP GET /provisioning
|
|
809
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
810
|
-
*/
|
|
811
|
-
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
812
|
-
/**
|
|
813
|
-
* HTTP DELETE /provisioning/{id}
|
|
814
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
815
|
-
*/
|
|
816
|
-
deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
|
|
817
|
-
/**
|
|
818
|
-
* HTTP PUT /provisioning/{id}
|
|
819
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
820
|
-
*/
|
|
821
|
-
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
822
|
-
}
|
|
823
823
|
export declare class AlarmResourceClient<O> {
|
|
824
824
|
protected httpClient: HttpClient<O>;
|
|
825
825
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -875,48 +875,48 @@ export declare class AlarmResourceClient<O> {
|
|
|
875
875
|
}
|
|
876
876
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
877
877
|
export declare class ApiClient {
|
|
878
|
-
protected
|
|
879
|
-
protected
|
|
880
|
-
protected _appResource: AxiosAppResourceClient;
|
|
881
|
-
protected _userResource: AxiosUserResourceClient;
|
|
878
|
+
protected _flowResource: AxiosFlowResourceClient;
|
|
879
|
+
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
882
880
|
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
883
|
-
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
884
|
-
protected _agentResource: AxiosAgentResourceClient;
|
|
885
|
-
protected _rulesResource: AxiosRulesResourceClient;
|
|
886
881
|
protected _statusResource: AxiosStatusResourceClient;
|
|
887
|
-
protected _notificationResource: AxiosNotificationResourceClient;
|
|
888
|
-
protected _assetResource: AxiosAssetResourceClient;
|
|
889
882
|
protected _syslogResource: AxiosSyslogResourceClient;
|
|
890
883
|
protected _consoleResource: AxiosConsoleResourceClient;
|
|
891
|
-
protected
|
|
892
|
-
protected
|
|
893
|
-
protected _mapResource: AxiosMapResourceClient;
|
|
894
|
-
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
884
|
+
protected _agentResource: AxiosAgentResourceClient;
|
|
885
|
+
protected _userResource: AxiosUserResourceClient;
|
|
895
886
|
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
887
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
888
|
+
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
889
|
+
protected _appResource: AxiosAppResourceClient;
|
|
890
|
+
protected _notificationResource: AxiosNotificationResourceClient;
|
|
896
891
|
protected _realmResource: AxiosRealmResourceClient;
|
|
897
|
-
protected
|
|
892
|
+
protected _mapResource: AxiosMapResourceClient;
|
|
893
|
+
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
894
|
+
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
895
|
+
protected _assetResource: AxiosAssetResourceClient;
|
|
896
|
+
protected _rulesResource: AxiosRulesResourceClient;
|
|
897
|
+
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
898
898
|
protected _alarmResource: AxiosAlarmResourceClient;
|
|
899
899
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
900
|
-
get
|
|
901
|
-
get
|
|
902
|
-
get AppResource(): AxiosAppResourceClient;
|
|
903
|
-
get UserResource(): AxiosUserResourceClient;
|
|
900
|
+
get FlowResource(): AxiosFlowResourceClient;
|
|
901
|
+
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
904
902
|
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
905
|
-
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
906
|
-
get AgentResource(): AxiosAgentResourceClient;
|
|
907
|
-
get RulesResource(): AxiosRulesResourceClient;
|
|
908
903
|
get StatusResource(): AxiosStatusResourceClient;
|
|
909
|
-
get NotificationResource(): AxiosNotificationResourceClient;
|
|
910
|
-
get AssetResource(): AxiosAssetResourceClient;
|
|
911
904
|
get SyslogResource(): AxiosSyslogResourceClient;
|
|
912
905
|
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
913
|
-
get
|
|
914
|
-
get
|
|
915
|
-
get MapResource(): AxiosMapResourceClient;
|
|
916
|
-
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
906
|
+
get AgentResource(): AxiosAgentResourceClient;
|
|
907
|
+
get UserResource(): AxiosUserResourceClient;
|
|
917
908
|
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
909
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
910
|
+
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
911
|
+
get AppResource(): AxiosAppResourceClient;
|
|
912
|
+
get NotificationResource(): AxiosNotificationResourceClient;
|
|
918
913
|
get RealmResource(): AxiosRealmResourceClient;
|
|
919
|
-
get
|
|
914
|
+
get MapResource(): AxiosMapResourceClient;
|
|
915
|
+
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
916
|
+
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
917
|
+
get AssetResource(): AxiosAssetResourceClient;
|
|
918
|
+
get RulesResource(): AxiosRulesResourceClient;
|
|
919
|
+
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
920
920
|
get AlarmResource(): AxiosAlarmResourceClient;
|
|
921
921
|
}
|
|
922
922
|
import * as Axios from "axios";
|
|
@@ -925,64 +925,64 @@ declare module "axios" {
|
|
|
925
925
|
data: R;
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
|
-
export declare class
|
|
928
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
929
929
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
930
930
|
}
|
|
931
|
-
export declare class
|
|
931
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<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 AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
938
938
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
939
939
|
}
|
|
940
|
-
export declare class
|
|
940
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
941
941
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
942
942
|
}
|
|
943
|
-
export declare class
|
|
943
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
944
944
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
945
945
|
}
|
|
946
946
|
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
947
947
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
948
948
|
}
|
|
949
|
-
export declare class
|
|
949
|
+
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
950
950
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
951
951
|
}
|
|
952
|
-
export declare class
|
|
952
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
953
953
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
954
954
|
}
|
|
955
|
-
export declare class
|
|
955
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
956
956
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
957
957
|
}
|
|
958
|
-
export declare class
|
|
958
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
959
959
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
960
960
|
}
|
|
961
|
-
export declare class
|
|
961
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
962
962
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
963
963
|
}
|
|
964
|
-
export declare class
|
|
964
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
965
965
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
966
966
|
}
|
|
967
|
-
export declare class
|
|
967
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
968
968
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
969
969
|
}
|
|
970
|
-
export declare class
|
|
970
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
971
971
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
972
972
|
}
|
|
973
|
-
export declare class
|
|
973
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
974
974
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
975
975
|
}
|
|
976
976
|
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
977
977
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
978
978
|
}
|
|
979
|
-
export declare class
|
|
979
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
980
980
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
981
981
|
}
|
|
982
|
-
export declare class
|
|
982
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
983
983
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
984
984
|
}
|
|
985
|
-
export declare class
|
|
985
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
986
986
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
987
987
|
}
|
|
988
988
|
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|