@openremote/rest 1.9.0-snapshot.20250828120203 → 1.9.0-snapshot.20250828123218
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/umd/index.bundle.js +1 -1
- package/dist/umd/index.bundle.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/lib/restclient.d.ts +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,109 +9,188 @@ export interface HttpClient<O> {
|
|
|
9
9
|
options?: O;
|
|
10
10
|
}): RestResponse<R>;
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
13
13
|
protected httpClient: HttpClient<O>;
|
|
14
14
|
constructor(httpClient: HttpClient<O>);
|
|
15
15
|
/**
|
|
16
|
-
* HTTP POST /asset
|
|
17
|
-
* Java method: org.openremote.model.
|
|
16
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
17
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
20
20
|
/**
|
|
21
|
-
* HTTP
|
|
22
|
-
* Java method: org.openremote.model.
|
|
21
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
22
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
25
|
+
}
|
|
26
|
+
export declare class AssetModelResourceClient<O> {
|
|
27
|
+
protected httpClient: HttpClient<O>;
|
|
28
|
+
constructor(httpClient: HttpClient<O>);
|
|
27
29
|
/**
|
|
28
|
-
* HTTP
|
|
29
|
-
* Java method: org.openremote.model.asset.
|
|
30
|
+
* HTTP GET /model/assetDescriptors
|
|
31
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
|
|
30
32
|
*/
|
|
31
|
-
|
|
33
|
+
getAssetDescriptors(queryParams?: {
|
|
34
|
+
parentId?: string;
|
|
35
|
+
parentType?: string;
|
|
36
|
+
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
32
37
|
/**
|
|
33
|
-
* HTTP
|
|
34
|
-
* Java method: org.openremote.model.asset.
|
|
38
|
+
* HTTP GET /model/assetInfo/{assetType}
|
|
39
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
35
40
|
*/
|
|
36
|
-
|
|
41
|
+
getAssetInfo(assetType: string, queryParams?: {
|
|
42
|
+
parentId?: string;
|
|
43
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
37
44
|
/**
|
|
38
|
-
* HTTP
|
|
39
|
-
* Java method: org.openremote.model.asset.
|
|
45
|
+
* HTTP GET /model/assetInfos
|
|
46
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
|
|
40
47
|
*/
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
48
|
+
getAssetInfos(queryParams?: {
|
|
49
|
+
parentId?: string;
|
|
50
|
+
parentType?: string;
|
|
51
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
44
52
|
/**
|
|
45
|
-
* HTTP GET /
|
|
46
|
-
* Java method: org.openremote.model.asset.
|
|
53
|
+
* HTTP GET /model/metaItemDescriptors
|
|
54
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
47
55
|
*/
|
|
48
|
-
|
|
56
|
+
getMetaItemDescriptors(queryParams?: {
|
|
57
|
+
parentId?: string;
|
|
58
|
+
}, options?: O): RestResponse<{
|
|
59
|
+
[index: string]: Model.MetaItemDescriptor;
|
|
60
|
+
}>;
|
|
49
61
|
/**
|
|
50
|
-
* HTTP
|
|
51
|
-
* Java method: org.openremote.model.asset.
|
|
62
|
+
* HTTP GET /model/valueDescriptors
|
|
63
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
|
|
52
64
|
*/
|
|
53
|
-
|
|
65
|
+
getValueDescriptors(queryParams?: {
|
|
66
|
+
parentId?: string;
|
|
67
|
+
}, options?: O): RestResponse<{
|
|
68
|
+
[index: string]: Model.ValueDescriptor;
|
|
69
|
+
}>;
|
|
70
|
+
}
|
|
71
|
+
export declare class FlowResourceClient<O> {
|
|
72
|
+
protected httpClient: HttpClient<O>;
|
|
73
|
+
constructor(httpClient: HttpClient<O>);
|
|
54
74
|
/**
|
|
55
|
-
* HTTP GET /
|
|
56
|
-
* Java method: org.openremote.model.
|
|
75
|
+
* HTTP GET /flow
|
|
76
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
57
77
|
*/
|
|
58
|
-
|
|
78
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
59
79
|
/**
|
|
60
|
-
* HTTP
|
|
61
|
-
* Java method: org.openremote.model.
|
|
80
|
+
* HTTP GET /flow/{name}
|
|
81
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
62
82
|
*/
|
|
63
|
-
|
|
83
|
+
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
64
84
|
/**
|
|
65
|
-
* HTTP GET /
|
|
66
|
-
* Java method: org.openremote.model.
|
|
85
|
+
* HTTP GET /flow/{type}
|
|
86
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
67
87
|
*/
|
|
68
|
-
|
|
88
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
89
|
+
}
|
|
90
|
+
export declare class AgentResourceClient<O> {
|
|
91
|
+
protected httpClient: HttpClient<O>;
|
|
92
|
+
constructor(httpClient: HttpClient<O>);
|
|
93
|
+
/**
|
|
94
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
95
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
96
|
+
*/
|
|
97
|
+
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
69
98
|
realm?: string;
|
|
70
|
-
|
|
71
|
-
assetId?: string;
|
|
72
|
-
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
99
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
73
100
|
/**
|
|
74
|
-
* HTTP POST /
|
|
75
|
-
* Java method: org.openremote.model.asset.
|
|
101
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
102
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
76
103
|
*/
|
|
77
|
-
|
|
104
|
+
doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
|
|
105
|
+
realm?: string;
|
|
106
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
78
107
|
/**
|
|
79
|
-
* HTTP
|
|
80
|
-
* Java method: org.openremote.model.asset.
|
|
108
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
109
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
81
110
|
*/
|
|
82
|
-
|
|
111
|
+
doProtocolInstanceDiscovery(agentType: string, queryParams?: {
|
|
112
|
+
parentId?: string;
|
|
113
|
+
realm?: string;
|
|
114
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
115
|
+
}
|
|
116
|
+
export declare class ConfigurationResourceClient<O> {
|
|
117
|
+
protected httpClient: HttpClient<O>;
|
|
118
|
+
constructor(httpClient: HttpClient<O>);
|
|
83
119
|
/**
|
|
84
|
-
* HTTP
|
|
85
|
-
* Java method: org.openremote.model.
|
|
120
|
+
* HTTP GET /configuration/manager
|
|
121
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
86
122
|
*/
|
|
87
|
-
|
|
123
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
88
124
|
/**
|
|
89
|
-
* HTTP
|
|
90
|
-
* Java method: org.openremote.model.
|
|
125
|
+
* HTTP PUT /configuration/manager
|
|
126
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
91
127
|
*/
|
|
92
|
-
|
|
128
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
93
129
|
/**
|
|
94
|
-
* HTTP
|
|
95
|
-
* Java method: org.openremote.model.
|
|
130
|
+
* HTTP POST /configuration/manager/file
|
|
131
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
96
132
|
*/
|
|
97
|
-
|
|
133
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
134
|
+
path?: string;
|
|
135
|
+
}, options?: O): RestResponse<string>;
|
|
98
136
|
/**
|
|
99
|
-
* HTTP
|
|
100
|
-
* Java method: org.openremote.model.
|
|
137
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
138
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
101
139
|
*/
|
|
102
|
-
|
|
140
|
+
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
141
|
+
}
|
|
142
|
+
export declare class MapResourceClient<O> {
|
|
143
|
+
protected httpClient: HttpClient<O>;
|
|
144
|
+
constructor(httpClient: HttpClient<O>);
|
|
103
145
|
/**
|
|
104
|
-
* HTTP
|
|
105
|
-
* Java method: org.openremote.model.
|
|
146
|
+
* HTTP GET /map
|
|
147
|
+
* Java method: org.openremote.model.map.MapResource.getSettings
|
|
106
148
|
*/
|
|
107
|
-
|
|
149
|
+
getSettings(options?: O): RestResponse<{
|
|
150
|
+
[id: string]: unknown;
|
|
151
|
+
}>;
|
|
108
152
|
/**
|
|
109
|
-
* HTTP PUT /
|
|
110
|
-
* Java method: org.openremote.model.
|
|
153
|
+
* HTTP PUT /map
|
|
154
|
+
* Java method: org.openremote.model.map.MapResource.saveSettings
|
|
111
155
|
*/
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
}
|
|
156
|
+
saveSettings(mapConfig: Model.MapConfig, options?: O): RestResponse<{
|
|
157
|
+
[id: string]: unknown;
|
|
158
|
+
}>;
|
|
159
|
+
/**
|
|
160
|
+
* HTTP DELETE /map/deleteMap
|
|
161
|
+
* Java method: org.openremote.model.map.MapResource.deleteMap
|
|
162
|
+
*/
|
|
163
|
+
deleteMap(options?: O): RestResponse<{
|
|
164
|
+
[id: string]: unknown;
|
|
165
|
+
}>;
|
|
166
|
+
/**
|
|
167
|
+
* HTTP GET /map/getCustomMapInfo
|
|
168
|
+
* Java method: org.openremote.model.map.MapResource.getCustomMapInfo
|
|
169
|
+
*/
|
|
170
|
+
getCustomMapInfo(options?: O): RestResponse<{
|
|
171
|
+
[id: string]: unknown;
|
|
172
|
+
}>;
|
|
173
|
+
/**
|
|
174
|
+
* HTTP GET /map/js
|
|
175
|
+
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
176
|
+
*/
|
|
177
|
+
getSettingsJs(options?: O): RestResponse<{
|
|
178
|
+
[id: string]: unknown;
|
|
179
|
+
}>;
|
|
180
|
+
/**
|
|
181
|
+
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
182
|
+
* Java method: org.openremote.model.map.MapResource.getTile
|
|
183
|
+
*/
|
|
184
|
+
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
185
|
+
/**
|
|
186
|
+
* HTTP POST /map/upload
|
|
187
|
+
* Java method: org.openremote.model.map.MapResource.uploadMap
|
|
188
|
+
*/
|
|
189
|
+
uploadMap(queryParams?: {
|
|
190
|
+
filename?: string;
|
|
191
|
+
}, options?: O): RestResponse<{
|
|
192
|
+
[id: string]: unknown;
|
|
193
|
+
}>;
|
|
115
194
|
}
|
|
116
195
|
export declare class GatewayServiceResourceClient<O> {
|
|
117
196
|
protected httpClient: HttpClient<O>;
|
|
@@ -151,66 +230,6 @@ export declare class ConsoleResourceClient<O> {
|
|
|
151
230
|
*/
|
|
152
231
|
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
153
232
|
}
|
|
154
|
-
export declare class RealmResourceClient<O> {
|
|
155
|
-
protected httpClient: HttpClient<O>;
|
|
156
|
-
constructor(httpClient: HttpClient<O>);
|
|
157
|
-
/**
|
|
158
|
-
* HTTP POST /realm
|
|
159
|
-
* Java method: org.openremote.model.security.RealmResource.create
|
|
160
|
-
*/
|
|
161
|
-
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
162
|
-
/**
|
|
163
|
-
* HTTP GET /realm
|
|
164
|
-
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
165
|
-
*/
|
|
166
|
-
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
167
|
-
/**
|
|
168
|
-
* HTTP GET /realm/accessible
|
|
169
|
-
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
170
|
-
*/
|
|
171
|
-
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
172
|
-
/**
|
|
173
|
-
* HTTP DELETE /realm/{name}
|
|
174
|
-
* Java method: org.openremote.model.security.RealmResource.delete
|
|
175
|
-
*/
|
|
176
|
-
delete(name: string, options?: O): RestResponse<void>;
|
|
177
|
-
/**
|
|
178
|
-
* HTTP GET /realm/{name}
|
|
179
|
-
* Java method: org.openremote.model.security.RealmResource.get
|
|
180
|
-
*/
|
|
181
|
-
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
182
|
-
/**
|
|
183
|
-
* HTTP PUT /realm/{name}
|
|
184
|
-
* Java method: org.openremote.model.security.RealmResource.update
|
|
185
|
-
*/
|
|
186
|
-
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
187
|
-
}
|
|
188
|
-
export declare class AssetDatapointResourceClient<O> {
|
|
189
|
-
protected httpClient: HttpClient<O>;
|
|
190
|
-
constructor(httpClient: HttpClient<O>);
|
|
191
|
-
/**
|
|
192
|
-
* HTTP GET /asset/datapoint/export
|
|
193
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
194
|
-
*/
|
|
195
|
-
getDatapointExport(queryParams?: {
|
|
196
|
-
attributeRefs?: string;
|
|
197
|
-
fromTimestamp?: number;
|
|
198
|
-
toTimestamp?: number;
|
|
199
|
-
}, options?: O): RestResponse<any>;
|
|
200
|
-
/**
|
|
201
|
-
* HTTP GET /asset/datapoint/periods
|
|
202
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
203
|
-
*/
|
|
204
|
-
getDatapointPeriod(queryParams?: {
|
|
205
|
-
assetId?: string;
|
|
206
|
-
attributeName?: string;
|
|
207
|
-
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
208
|
-
/**
|
|
209
|
-
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
210
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
211
|
-
*/
|
|
212
|
-
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
213
|
-
}
|
|
214
233
|
export declare class AlarmResourceClient<O> {
|
|
215
234
|
protected httpClient: HttpClient<O>;
|
|
216
235
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -264,82 +283,29 @@ export declare class AlarmResourceClient<O> {
|
|
|
264
283
|
realm?: string;
|
|
265
284
|
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
266
285
|
}
|
|
267
|
-
export declare class
|
|
268
|
-
protected httpClient: HttpClient<O>;
|
|
269
|
-
constructor(httpClient: HttpClient<O>);
|
|
270
|
-
/**
|
|
271
|
-
* HTTP GET /syslog/config
|
|
272
|
-
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
273
|
-
*/
|
|
274
|
-
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
275
|
-
/**
|
|
276
|
-
* HTTP PUT /syslog/config
|
|
277
|
-
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
278
|
-
*/
|
|
279
|
-
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
280
|
-
/**
|
|
281
|
-
* HTTP DELETE /syslog/event
|
|
282
|
-
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
283
|
-
*/
|
|
284
|
-
clearEvents(options?: O): RestResponse<void>;
|
|
285
|
-
/**
|
|
286
|
-
* HTTP GET /syslog/event
|
|
287
|
-
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
288
|
-
*/
|
|
289
|
-
getEvents(queryParams?: {
|
|
290
|
-
level?: Model.SyslogLevel;
|
|
291
|
-
per_page?: number;
|
|
292
|
-
page?: number;
|
|
293
|
-
from?: number;
|
|
294
|
-
to?: number;
|
|
295
|
-
category?: Model.SyslogCategory[];
|
|
296
|
-
subCategory?: string[];
|
|
297
|
-
}, options?: O): RestResponse<any>;
|
|
298
|
-
}
|
|
299
|
-
export declare class AssetModelResourceClient<O> {
|
|
286
|
+
export declare class ProvisioningResourceClient<O> {
|
|
300
287
|
protected httpClient: HttpClient<O>;
|
|
301
288
|
constructor(httpClient: HttpClient<O>);
|
|
302
289
|
/**
|
|
303
|
-
* HTTP
|
|
304
|
-
* Java method: org.openremote.model.
|
|
305
|
-
*/
|
|
306
|
-
getAssetDescriptors(queryParams?: {
|
|
307
|
-
parentId?: string;
|
|
308
|
-
parentType?: string;
|
|
309
|
-
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
310
|
-
/**
|
|
311
|
-
* HTTP GET /model/assetInfo/{assetType}
|
|
312
|
-
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
290
|
+
* HTTP POST /provisioning
|
|
291
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
313
292
|
*/
|
|
314
|
-
|
|
315
|
-
parentId?: string;
|
|
316
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
293
|
+
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
317
294
|
/**
|
|
318
|
-
* HTTP GET /
|
|
319
|
-
* Java method: org.openremote.model.
|
|
295
|
+
* HTTP GET /provisioning
|
|
296
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
320
297
|
*/
|
|
321
|
-
|
|
322
|
-
parentId?: string;
|
|
323
|
-
parentType?: string;
|
|
324
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
298
|
+
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
325
299
|
/**
|
|
326
|
-
* HTTP
|
|
327
|
-
* Java method: org.openremote.model.
|
|
300
|
+
* HTTP DELETE /provisioning/{id}
|
|
301
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
328
302
|
*/
|
|
329
|
-
|
|
330
|
-
parentId?: string;
|
|
331
|
-
}, options?: O): RestResponse<{
|
|
332
|
-
[index: string]: Model.MetaItemDescriptor;
|
|
333
|
-
}>;
|
|
303
|
+
deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
|
|
334
304
|
/**
|
|
335
|
-
* HTTP
|
|
336
|
-
* Java method: org.openremote.model.
|
|
305
|
+
* HTTP PUT /provisioning/{id}
|
|
306
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
337
307
|
*/
|
|
338
|
-
|
|
339
|
-
parentId?: string;
|
|
340
|
-
}, options?: O): RestResponse<{
|
|
341
|
-
[index: string]: Model.ValueDescriptor;
|
|
342
|
-
}>;
|
|
308
|
+
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
343
309
|
}
|
|
344
310
|
export declare class UserResourceClient<O> {
|
|
345
311
|
protected httpClient: HttpClient<O>;
|
|
@@ -465,58 +431,57 @@ export declare class UserResourceClient<O> {
|
|
|
465
431
|
*/
|
|
466
432
|
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
467
433
|
}
|
|
468
|
-
export declare class
|
|
434
|
+
export declare class StatusResourceClient<O> {
|
|
469
435
|
protected httpClient: HttpClient<O>;
|
|
470
436
|
constructor(httpClient: HttpClient<O>);
|
|
471
437
|
/**
|
|
472
|
-
* HTTP GET /
|
|
473
|
-
* Java method: org.openremote.model.
|
|
438
|
+
* HTTP GET /health
|
|
439
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
474
440
|
*/
|
|
475
|
-
|
|
476
|
-
[
|
|
441
|
+
getHealthStatus(options?: O): RestResponse<{
|
|
442
|
+
[index: string]: any;
|
|
477
443
|
}>;
|
|
478
444
|
/**
|
|
479
|
-
* HTTP
|
|
480
|
-
* Java method: org.openremote.model.
|
|
445
|
+
* HTTP GET /info
|
|
446
|
+
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
481
447
|
*/
|
|
482
|
-
|
|
483
|
-
[
|
|
448
|
+
getInfo(options?: O): RestResponse<{
|
|
449
|
+
[index: string]: any;
|
|
484
450
|
}>;
|
|
451
|
+
}
|
|
452
|
+
export declare class RealmResourceClient<O> {
|
|
453
|
+
protected httpClient: HttpClient<O>;
|
|
454
|
+
constructor(httpClient: HttpClient<O>);
|
|
455
|
+
/**
|
|
456
|
+
* HTTP POST /realm
|
|
457
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
458
|
+
*/
|
|
459
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
485
460
|
/**
|
|
486
|
-
* HTTP
|
|
487
|
-
* Java method: org.openremote.model.
|
|
461
|
+
* HTTP GET /realm
|
|
462
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
488
463
|
*/
|
|
489
|
-
|
|
490
|
-
[id: string]: unknown;
|
|
491
|
-
}>;
|
|
464
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
492
465
|
/**
|
|
493
|
-
* HTTP GET /
|
|
494
|
-
* Java method: org.openremote.model.
|
|
466
|
+
* HTTP GET /realm/accessible
|
|
467
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
495
468
|
*/
|
|
496
|
-
|
|
497
|
-
[id: string]: unknown;
|
|
498
|
-
}>;
|
|
469
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
499
470
|
/**
|
|
500
|
-
* HTTP
|
|
501
|
-
* Java method: org.openremote.model.
|
|
471
|
+
* HTTP DELETE /realm/{name}
|
|
472
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
502
473
|
*/
|
|
503
|
-
|
|
504
|
-
[id: string]: unknown;
|
|
505
|
-
}>;
|
|
474
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
506
475
|
/**
|
|
507
|
-
* HTTP GET /
|
|
508
|
-
* Java method: org.openremote.model.
|
|
476
|
+
* HTTP GET /realm/{name}
|
|
477
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
509
478
|
*/
|
|
510
|
-
|
|
479
|
+
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
511
480
|
/**
|
|
512
|
-
* HTTP
|
|
513
|
-
* Java method: org.openremote.model.
|
|
481
|
+
* HTTP PUT /realm/{name}
|
|
482
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
514
483
|
*/
|
|
515
|
-
|
|
516
|
-
filename?: string;
|
|
517
|
-
}, options?: O): RestResponse<{
|
|
518
|
-
[id: string]: unknown;
|
|
519
|
-
}>;
|
|
484
|
+
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
520
485
|
}
|
|
521
486
|
export declare class GatewayClientResourceClient<O> {
|
|
522
487
|
protected httpClient: HttpClient<O>;
|
|
@@ -554,239 +519,189 @@ export declare class GatewayClientResourceClient<O> {
|
|
|
554
519
|
*/
|
|
555
520
|
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
556
521
|
}
|
|
557
|
-
export declare class
|
|
558
|
-
protected httpClient: HttpClient<O>;
|
|
559
|
-
constructor(httpClient: HttpClient<O>);
|
|
560
|
-
/**
|
|
561
|
-
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
562
|
-
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
563
|
-
*/
|
|
564
|
-
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
565
|
-
realm?: string;
|
|
566
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
567
|
-
/**
|
|
568
|
-
* HTTP POST /agent/assetImport/{agentId}
|
|
569
|
-
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
570
|
-
*/
|
|
571
|
-
doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
|
|
572
|
-
realm?: string;
|
|
573
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
574
|
-
/**
|
|
575
|
-
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
576
|
-
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
577
|
-
*/
|
|
578
|
-
doProtocolInstanceDiscovery(agentType: string, queryParams?: {
|
|
579
|
-
parentId?: string;
|
|
580
|
-
realm?: string;
|
|
581
|
-
}, options?: O): RestResponse<Model.Agent[]>;
|
|
582
|
-
}
|
|
583
|
-
export declare class NotificationResourceClient<O> {
|
|
522
|
+
export declare class AssetResourceClient<O> {
|
|
584
523
|
protected httpClient: HttpClient<O>;
|
|
585
524
|
constructor(httpClient: HttpClient<O>);
|
|
586
525
|
/**
|
|
587
|
-
* HTTP
|
|
588
|
-
* Java method: org.openremote.model.
|
|
526
|
+
* HTTP POST /asset
|
|
527
|
+
* Java method: org.openremote.model.asset.AssetResource.create
|
|
589
528
|
*/
|
|
590
|
-
|
|
591
|
-
id?: number;
|
|
592
|
-
type?: string;
|
|
593
|
-
from?: number;
|
|
594
|
-
to?: number;
|
|
595
|
-
realmId?: string;
|
|
596
|
-
userId?: string;
|
|
597
|
-
assetId?: string;
|
|
598
|
-
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
529
|
+
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
599
530
|
/**
|
|
600
|
-
* HTTP DELETE /
|
|
601
|
-
* Java method: org.openremote.model.
|
|
531
|
+
* HTTP DELETE /asset
|
|
532
|
+
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
602
533
|
*/
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
type?: string;
|
|
606
|
-
from?: number;
|
|
607
|
-
to?: number;
|
|
608
|
-
realmId?: string;
|
|
609
|
-
userId?: string;
|
|
610
|
-
assetId?: string;
|
|
534
|
+
delete(queryParams?: {
|
|
535
|
+
assetId?: string[];
|
|
611
536
|
}, options?: O): RestResponse<void>;
|
|
612
537
|
/**
|
|
613
|
-
* HTTP
|
|
614
|
-
* Java method: org.openremote.model.
|
|
538
|
+
* HTTP PUT /asset/attributes
|
|
539
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
615
540
|
*/
|
|
616
|
-
|
|
541
|
+
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
617
542
|
/**
|
|
618
|
-
* HTTP
|
|
619
|
-
* Java method: org.openremote.model.
|
|
543
|
+
* HTTP PUT /asset/attributes/timestamp
|
|
544
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
620
545
|
*/
|
|
621
|
-
|
|
546
|
+
writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
622
547
|
/**
|
|
623
|
-
* HTTP
|
|
624
|
-
* Java method: org.openremote.model.
|
|
548
|
+
* HTTP DELETE /asset/parent
|
|
549
|
+
* Java method: org.openremote.model.asset.AssetResource.updateNoneParent
|
|
625
550
|
*/
|
|
626
|
-
|
|
627
|
-
|
|
551
|
+
updateNoneParent(queryParams?: {
|
|
552
|
+
assetIds?: string[];
|
|
628
553
|
}, options?: O): RestResponse<void>;
|
|
629
554
|
/**
|
|
630
|
-
* HTTP
|
|
631
|
-
* Java method: org.openremote.model.
|
|
555
|
+
* HTTP GET /asset/partial/{assetId}
|
|
556
|
+
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
632
557
|
*/
|
|
633
|
-
|
|
634
|
-
targetId?: string;
|
|
635
|
-
}, options?: O): RestResponse<void>;
|
|
636
|
-
}
|
|
637
|
-
export declare class DashboardResourceClient<O> {
|
|
638
|
-
protected httpClient: HttpClient<O>;
|
|
639
|
-
constructor(httpClient: HttpClient<O>);
|
|
558
|
+
getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
640
559
|
/**
|
|
641
|
-
* HTTP POST /
|
|
642
|
-
* Java method: org.openremote.model.
|
|
560
|
+
* HTTP POST /asset/query
|
|
561
|
+
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
643
562
|
*/
|
|
644
|
-
|
|
563
|
+
queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
|
|
645
564
|
/**
|
|
646
|
-
* HTTP
|
|
647
|
-
* Java method: org.openremote.model.
|
|
565
|
+
* HTTP GET /asset/user/current
|
|
566
|
+
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
648
567
|
*/
|
|
649
|
-
|
|
568
|
+
getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
|
|
650
569
|
/**
|
|
651
|
-
* HTTP
|
|
652
|
-
* Java method: org.openremote.model.
|
|
570
|
+
* HTTP POST /asset/user/link
|
|
571
|
+
* Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
|
|
653
572
|
*/
|
|
654
|
-
|
|
573
|
+
createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
655
574
|
/**
|
|
656
|
-
* HTTP
|
|
657
|
-
* Java method: org.openremote.model.
|
|
575
|
+
* HTTP GET /asset/user/link
|
|
576
|
+
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
658
577
|
*/
|
|
659
|
-
|
|
578
|
+
getUserAssetLinks(queryParams?: {
|
|
579
|
+
realm?: string;
|
|
580
|
+
userId?: string;
|
|
581
|
+
assetId?: string;
|
|
582
|
+
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
660
583
|
/**
|
|
661
|
-
* HTTP
|
|
662
|
-
* Java method: org.openremote.model.
|
|
584
|
+
* HTTP POST /asset/user/link/delete
|
|
585
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
|
|
663
586
|
*/
|
|
664
|
-
|
|
587
|
+
deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
665
588
|
/**
|
|
666
|
-
* HTTP
|
|
667
|
-
* Java method: org.openremote.model.
|
|
589
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}
|
|
590
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
|
|
668
591
|
*/
|
|
669
|
-
|
|
670
|
-
}
|
|
671
|
-
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
672
|
-
protected httpClient: HttpClient<O>;
|
|
673
|
-
constructor(httpClient: HttpClient<O>);
|
|
592
|
+
deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
674
593
|
/**
|
|
675
|
-
* HTTP
|
|
676
|
-
* Java method: org.openremote.model.
|
|
594
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
|
|
595
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
|
|
677
596
|
*/
|
|
678
|
-
|
|
597
|
+
deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
|
|
679
598
|
/**
|
|
680
|
-
* HTTP
|
|
681
|
-
* Java method: org.openremote.model.
|
|
599
|
+
* HTTP GET /asset/{assetId}
|
|
600
|
+
* Java method: org.openremote.model.asset.AssetResource.get
|
|
682
601
|
*/
|
|
683
|
-
|
|
684
|
-
}
|
|
685
|
-
export declare class ConfigurationResourceClient<O> {
|
|
686
|
-
protected httpClient: HttpClient<O>;
|
|
687
|
-
constructor(httpClient: HttpClient<O>);
|
|
602
|
+
get(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
688
603
|
/**
|
|
689
|
-
* HTTP
|
|
690
|
-
* Java method: org.openremote.model.
|
|
604
|
+
* HTTP PUT /asset/{assetId}
|
|
605
|
+
* Java method: org.openremote.model.asset.AssetResource.update
|
|
691
606
|
*/
|
|
692
|
-
|
|
607
|
+
update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
693
608
|
/**
|
|
694
|
-
* HTTP PUT /
|
|
695
|
-
* Java method: org.openremote.model.
|
|
609
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}
|
|
610
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
696
611
|
*/
|
|
697
|
-
|
|
612
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
698
613
|
/**
|
|
699
|
-
* HTTP
|
|
700
|
-
* Java method: org.openremote.model.
|
|
614
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
|
|
615
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
701
616
|
*/
|
|
702
|
-
|
|
703
|
-
path?: string;
|
|
704
|
-
}, options?: O): RestResponse<string>;
|
|
617
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
705
618
|
/**
|
|
706
|
-
* HTTP
|
|
707
|
-
* Java method: org.openremote.model.
|
|
619
|
+
* HTTP PUT /asset/{parentAssetId}/child
|
|
620
|
+
* Java method: org.openremote.model.asset.AssetResource.updateParent
|
|
708
621
|
*/
|
|
709
|
-
|
|
622
|
+
updateParent(parentAssetId: string, queryParams?: {
|
|
623
|
+
assetIds?: string[];
|
|
624
|
+
}, options?: O): RestResponse<void>;
|
|
710
625
|
}
|
|
711
|
-
export declare class
|
|
626
|
+
export declare class NotificationResourceClient<O> {
|
|
712
627
|
protected httpClient: HttpClient<O>;
|
|
713
628
|
constructor(httpClient: HttpClient<O>);
|
|
714
629
|
/**
|
|
715
|
-
* HTTP
|
|
716
|
-
* Java method: org.openremote.model.
|
|
717
|
-
*/
|
|
718
|
-
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
719
|
-
/**
|
|
720
|
-
* HTTP GET /provisioning
|
|
721
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
722
|
-
*/
|
|
723
|
-
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
724
|
-
/**
|
|
725
|
-
* HTTP DELETE /provisioning/{id}
|
|
726
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
727
|
-
*/
|
|
728
|
-
deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
|
|
729
|
-
/**
|
|
730
|
-
* HTTP PUT /provisioning/{id}
|
|
731
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
630
|
+
* HTTP GET /notification
|
|
631
|
+
* Java method: org.openremote.model.notification.NotificationResource.getNotifications
|
|
732
632
|
*/
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
633
|
+
getNotifications(queryParams?: {
|
|
634
|
+
id?: number;
|
|
635
|
+
type?: string;
|
|
636
|
+
from?: number;
|
|
637
|
+
to?: number;
|
|
638
|
+
realmId?: string;
|
|
639
|
+
userId?: string;
|
|
640
|
+
assetId?: string;
|
|
641
|
+
}, options?: O): RestResponse<Model.SentNotification[]>;
|
|
738
642
|
/**
|
|
739
|
-
* HTTP
|
|
740
|
-
* Java method: org.openremote.model.
|
|
643
|
+
* HTTP DELETE /notification
|
|
644
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotifications
|
|
741
645
|
*/
|
|
742
|
-
|
|
646
|
+
removeNotifications(queryParams?: {
|
|
647
|
+
id?: number;
|
|
648
|
+
type?: string;
|
|
649
|
+
from?: number;
|
|
650
|
+
to?: number;
|
|
651
|
+
realmId?: string;
|
|
652
|
+
userId?: string;
|
|
653
|
+
assetId?: string;
|
|
654
|
+
}, options?: O): RestResponse<void>;
|
|
743
655
|
/**
|
|
744
|
-
* HTTP
|
|
745
|
-
* Java method: org.openremote.model.
|
|
656
|
+
* HTTP POST /notification/alert
|
|
657
|
+
* Java method: org.openremote.model.notification.NotificationResource.sendNotification
|
|
746
658
|
*/
|
|
747
|
-
|
|
659
|
+
sendNotification(notification: Model.Notification, options?: O): RestResponse<void>;
|
|
748
660
|
/**
|
|
749
|
-
* HTTP
|
|
750
|
-
* Java method: org.openremote.model.
|
|
661
|
+
* HTTP DELETE /notification/{notificationId}
|
|
662
|
+
* Java method: org.openremote.model.notification.NotificationResource.removeNotification
|
|
751
663
|
*/
|
|
752
|
-
|
|
753
|
-
}
|
|
754
|
-
export declare class StatusResourceClient<O> {
|
|
755
|
-
protected httpClient: HttpClient<O>;
|
|
756
|
-
constructor(httpClient: HttpClient<O>);
|
|
664
|
+
removeNotification(notificationId: number, options?: O): RestResponse<void>;
|
|
757
665
|
/**
|
|
758
|
-
* HTTP
|
|
759
|
-
* Java method: org.openremote.model.
|
|
666
|
+
* HTTP PUT /notification/{notificationId}/acknowledged
|
|
667
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationAcknowledged
|
|
760
668
|
*/
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
}>;
|
|
669
|
+
notificationAcknowledged(notificationId: number, acknowledgement: any, queryParams?: {
|
|
670
|
+
targetId?: string;
|
|
671
|
+
}, options?: O): RestResponse<void>;
|
|
764
672
|
/**
|
|
765
|
-
* HTTP
|
|
766
|
-
* Java method: org.openremote.model.
|
|
673
|
+
* HTTP PUT /notification/{notificationId}/delivered
|
|
674
|
+
* Java method: org.openremote.model.notification.NotificationResource.notificationDelivered
|
|
767
675
|
*/
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
}>;
|
|
676
|
+
notificationDelivered(notificationId: number, queryParams?: {
|
|
677
|
+
targetId?: string;
|
|
678
|
+
}, options?: O): RestResponse<void>;
|
|
771
679
|
}
|
|
772
|
-
export declare class
|
|
680
|
+
export declare class AssetDatapointResourceClient<O> {
|
|
773
681
|
protected httpClient: HttpClient<O>;
|
|
774
682
|
constructor(httpClient: HttpClient<O>);
|
|
775
683
|
/**
|
|
776
|
-
* HTTP GET /
|
|
777
|
-
* Java method: org.openremote.model.
|
|
684
|
+
* HTTP GET /asset/datapoint/export
|
|
685
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
778
686
|
*/
|
|
779
|
-
|
|
687
|
+
getDatapointExport(queryParams?: {
|
|
688
|
+
attributeRefs?: string;
|
|
689
|
+
fromTimestamp?: number;
|
|
690
|
+
toTimestamp?: number;
|
|
691
|
+
}, options?: O): RestResponse<any>;
|
|
780
692
|
/**
|
|
781
|
-
* HTTP GET /
|
|
782
|
-
* Java method: org.openremote.model.
|
|
693
|
+
* HTTP GET /asset/datapoint/periods
|
|
694
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
783
695
|
*/
|
|
784
|
-
|
|
696
|
+
getDatapointPeriod(queryParams?: {
|
|
697
|
+
assetId?: string;
|
|
698
|
+
attributeName?: string;
|
|
699
|
+
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
785
700
|
/**
|
|
786
|
-
* HTTP
|
|
787
|
-
* Java method: org.openremote.model.
|
|
701
|
+
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
702
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
788
703
|
*/
|
|
789
|
-
|
|
704
|
+
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
790
705
|
}
|
|
791
706
|
export declare class RulesResourceClient<O> {
|
|
792
707
|
protected httpClient: HttpClient<O>;
|
|
@@ -896,51 +811,136 @@ export declare class RulesResourceClient<O> {
|
|
|
896
811
|
*/
|
|
897
812
|
updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
898
813
|
}
|
|
814
|
+
export declare class AppResourceClient<O> {
|
|
815
|
+
protected httpClient: HttpClient<O>;
|
|
816
|
+
constructor(httpClient: HttpClient<O>);
|
|
817
|
+
/**
|
|
818
|
+
* HTTP GET /apps
|
|
819
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
820
|
+
*/
|
|
821
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
822
|
+
/**
|
|
823
|
+
* HTTP GET /apps/consoleConfig
|
|
824
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
825
|
+
*/
|
|
826
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
827
|
+
/**
|
|
828
|
+
* HTTP GET /apps/info
|
|
829
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
830
|
+
*/
|
|
831
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
832
|
+
}
|
|
833
|
+
export declare class SyslogResourceClient<O> {
|
|
834
|
+
protected httpClient: HttpClient<O>;
|
|
835
|
+
constructor(httpClient: HttpClient<O>);
|
|
836
|
+
/**
|
|
837
|
+
* HTTP GET /syslog/config
|
|
838
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
839
|
+
*/
|
|
840
|
+
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
841
|
+
/**
|
|
842
|
+
* HTTP PUT /syslog/config
|
|
843
|
+
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
844
|
+
*/
|
|
845
|
+
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
846
|
+
/**
|
|
847
|
+
* HTTP DELETE /syslog/event
|
|
848
|
+
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
849
|
+
*/
|
|
850
|
+
clearEvents(options?: O): RestResponse<void>;
|
|
851
|
+
/**
|
|
852
|
+
* HTTP GET /syslog/event
|
|
853
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
854
|
+
*/
|
|
855
|
+
getEvents(queryParams?: {
|
|
856
|
+
level?: Model.SyslogLevel;
|
|
857
|
+
per_page?: number;
|
|
858
|
+
page?: number;
|
|
859
|
+
from?: number;
|
|
860
|
+
to?: number;
|
|
861
|
+
category?: Model.SyslogCategory[];
|
|
862
|
+
subCategory?: string[];
|
|
863
|
+
}, options?: O): RestResponse<any>;
|
|
864
|
+
}
|
|
865
|
+
export declare class DashboardResourceClient<O> {
|
|
866
|
+
protected httpClient: HttpClient<O>;
|
|
867
|
+
constructor(httpClient: HttpClient<O>);
|
|
868
|
+
/**
|
|
869
|
+
* HTTP POST /dashboard
|
|
870
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
871
|
+
*/
|
|
872
|
+
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
873
|
+
/**
|
|
874
|
+
* HTTP PUT /dashboard
|
|
875
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
876
|
+
*/
|
|
877
|
+
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
878
|
+
/**
|
|
879
|
+
* HTTP GET /dashboard/all/{realm}
|
|
880
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
881
|
+
*/
|
|
882
|
+
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
883
|
+
/**
|
|
884
|
+
* HTTP POST /dashboard/query
|
|
885
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
886
|
+
*/
|
|
887
|
+
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
888
|
+
/**
|
|
889
|
+
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
890
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
891
|
+
*/
|
|
892
|
+
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
893
|
+
/**
|
|
894
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
895
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
896
|
+
*/
|
|
897
|
+
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
898
|
+
}
|
|
899
899
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
900
900
|
export declare class ApiClient {
|
|
901
|
-
protected
|
|
901
|
+
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
902
|
+
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
903
|
+
protected _flowResource: AxiosFlowResourceClient;
|
|
904
|
+
protected _agentResource: AxiosAgentResourceClient;
|
|
905
|
+
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
906
|
+
protected _mapResource: AxiosMapResourceClient;
|
|
902
907
|
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
903
908
|
protected _consoleResource: AxiosConsoleResourceClient;
|
|
904
|
-
protected _realmResource: AxiosRealmResourceClient;
|
|
905
|
-
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
906
909
|
protected _alarmResource: AxiosAlarmResourceClient;
|
|
907
|
-
protected
|
|
908
|
-
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
910
|
+
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
909
911
|
protected _userResource: AxiosUserResourceClient;
|
|
910
|
-
protected
|
|
912
|
+
protected _statusResource: AxiosStatusResourceClient;
|
|
913
|
+
protected _realmResource: AxiosRealmResourceClient;
|
|
911
914
|
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
912
|
-
protected
|
|
915
|
+
protected _assetResource: AxiosAssetResourceClient;
|
|
913
916
|
protected _notificationResource: AxiosNotificationResourceClient;
|
|
914
|
-
protected
|
|
915
|
-
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
916
|
-
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
917
|
-
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
918
|
-
protected _appResource: AxiosAppResourceClient;
|
|
919
|
-
protected _statusResource: AxiosStatusResourceClient;
|
|
920
|
-
protected _flowResource: AxiosFlowResourceClient;
|
|
917
|
+
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
921
918
|
protected _rulesResource: AxiosRulesResourceClient;
|
|
919
|
+
protected _appResource: AxiosAppResourceClient;
|
|
920
|
+
protected _syslogResource: AxiosSyslogResourceClient;
|
|
921
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
922
922
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
923
|
-
get
|
|
923
|
+
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
924
|
+
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
925
|
+
get FlowResource(): AxiosFlowResourceClient;
|
|
926
|
+
get AgentResource(): AxiosAgentResourceClient;
|
|
927
|
+
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
928
|
+
get MapResource(): AxiosMapResourceClient;
|
|
924
929
|
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
925
930
|
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
926
|
-
get RealmResource(): AxiosRealmResourceClient;
|
|
927
|
-
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
928
931
|
get AlarmResource(): AxiosAlarmResourceClient;
|
|
929
|
-
get
|
|
930
|
-
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
932
|
+
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
931
933
|
get UserResource(): AxiosUserResourceClient;
|
|
932
|
-
get
|
|
934
|
+
get StatusResource(): AxiosStatusResourceClient;
|
|
935
|
+
get RealmResource(): AxiosRealmResourceClient;
|
|
933
936
|
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
934
|
-
get
|
|
937
|
+
get AssetResource(): AxiosAssetResourceClient;
|
|
935
938
|
get NotificationResource(): AxiosNotificationResourceClient;
|
|
936
|
-
get
|
|
937
|
-
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
938
|
-
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
939
|
-
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
940
|
-
get AppResource(): AxiosAppResourceClient;
|
|
941
|
-
get StatusResource(): AxiosStatusResourceClient;
|
|
942
|
-
get FlowResource(): AxiosFlowResourceClient;
|
|
939
|
+
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
943
940
|
get RulesResource(): AxiosRulesResourceClient;
|
|
941
|
+
get AppResource(): AxiosAppResourceClient;
|
|
942
|
+
get SyslogResource(): AxiosSyslogResourceClient;
|
|
943
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
944
944
|
}
|
|
945
945
|
import * as Axios from "axios";
|
|
946
946
|
declare module "axios" {
|
|
@@ -948,66 +948,66 @@ declare module "axios" {
|
|
|
948
948
|
data: R;
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
|
-
export declare class
|
|
951
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
952
952
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
953
953
|
}
|
|
954
|
-
export declare class
|
|
954
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
955
955
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
956
956
|
}
|
|
957
|
-
export declare class
|
|
957
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
958
958
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
959
959
|
}
|
|
960
|
-
export declare class
|
|
960
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
961
961
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
962
962
|
}
|
|
963
|
-
export declare class
|
|
963
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
964
964
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
965
965
|
}
|
|
966
|
-
export declare class
|
|
966
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
967
967
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
968
968
|
}
|
|
969
|
-
export declare class
|
|
969
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
970
970
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
971
971
|
}
|
|
972
|
-
export declare class
|
|
972
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
973
973
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
974
974
|
}
|
|
975
|
-
export declare class
|
|
975
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
976
976
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
977
977
|
}
|
|
978
|
-
export declare class
|
|
978
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
979
979
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
980
980
|
}
|
|
981
|
-
export declare class
|
|
981
|
+
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
982
982
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
983
983
|
}
|
|
984
|
-
export declare class
|
|
984
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
985
985
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
986
986
|
}
|
|
987
|
-
export declare class
|
|
987
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
988
988
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
989
989
|
}
|
|
990
|
-
export declare class
|
|
990
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
991
991
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
992
992
|
}
|
|
993
|
-
export declare class
|
|
993
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
994
994
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
995
995
|
}
|
|
996
|
-
export declare class
|
|
996
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
997
997
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
998
998
|
}
|
|
999
|
-
export declare class
|
|
999
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
1000
1000
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1001
1001
|
}
|
|
1002
|
-
export declare class
|
|
1002
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
1003
1003
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1004
1004
|
}
|
|
1005
|
-
export declare class
|
|
1005
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
1006
1006
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1007
1007
|
}
|
|
1008
|
-
export declare class
|
|
1008
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
1009
1009
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1010
1010
|
}
|
|
1011
|
-
export declare class
|
|
1011
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
1012
1012
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1013
1013
|
}
|