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