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