@openremote/rest 1.4.0-snapshot.20250331133457 → 1.4.0-snapshot.20250401080352
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/umd/index.bundle.js +1 -1
- package/dist/umd/index.js +1 -1
- package/lib/restclient.d.ts +435 -435
- package/lib/restclient.js +1 -1
- package/lib/restclient.js.map +1 -1
- package/package.json +3 -3
package/lib/restclient.d.ts
CHANGED
|
@@ -9,124 +9,178 @@ 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 POST /
|
|
17
|
-
* Java method: org.openremote.model.
|
|
16
|
+
* HTTP POST /dashboard
|
|
17
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
20
20
|
/**
|
|
21
|
-
* HTTP PUT /
|
|
22
|
-
* Java method: org.openremote.model.
|
|
21
|
+
* HTTP PUT /dashboard
|
|
22
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
23
23
|
*/
|
|
24
|
-
|
|
24
|
+
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
25
|
+
/**
|
|
26
|
+
* HTTP GET /dashboard/all/{realm}
|
|
27
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
28
|
+
*/
|
|
29
|
+
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
30
|
+
/**
|
|
31
|
+
* HTTP POST /dashboard/query
|
|
32
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
33
|
+
*/
|
|
34
|
+
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
35
|
+
/**
|
|
36
|
+
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
37
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
38
|
+
*/
|
|
39
|
+
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
40
|
+
/**
|
|
41
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
42
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
43
|
+
*/
|
|
44
|
+
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
25
45
|
}
|
|
26
|
-
export declare class
|
|
46
|
+
export declare class AgentResourceClient<O> {
|
|
27
47
|
protected httpClient: HttpClient<O>;
|
|
28
48
|
constructor(httpClient: HttpClient<O>);
|
|
29
49
|
/**
|
|
30
|
-
* HTTP GET /
|
|
31
|
-
* Java method: org.openremote.model.
|
|
50
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
51
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
32
52
|
*/
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}>;
|
|
53
|
+
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
54
|
+
realm?: string;
|
|
55
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
36
56
|
/**
|
|
37
|
-
* HTTP
|
|
38
|
-
* Java method: org.openremote.model.
|
|
57
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
58
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
39
59
|
*/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}>;
|
|
60
|
+
doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
|
|
61
|
+
realm?: string;
|
|
62
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
63
|
+
/**
|
|
64
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
65
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
66
|
+
*/
|
|
67
|
+
doProtocolInstanceDiscovery(agentType: string, queryParams?: {
|
|
68
|
+
parentId?: string;
|
|
69
|
+
realm?: string;
|
|
70
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
43
71
|
}
|
|
44
|
-
export declare class
|
|
72
|
+
export declare class ConsoleResourceClient<O> {
|
|
45
73
|
protected httpClient: HttpClient<O>;
|
|
46
74
|
constructor(httpClient: HttpClient<O>);
|
|
47
75
|
/**
|
|
48
|
-
* HTTP POST /
|
|
49
|
-
* Java method: org.openremote.model.
|
|
76
|
+
* HTTP POST /console/register
|
|
77
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
50
78
|
*/
|
|
51
|
-
|
|
79
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
80
|
+
}
|
|
81
|
+
export declare class AssetResourceClient<O> {
|
|
82
|
+
protected httpClient: HttpClient<O>;
|
|
83
|
+
constructor(httpClient: HttpClient<O>);
|
|
52
84
|
/**
|
|
53
|
-
* HTTP
|
|
54
|
-
* Java method: org.openremote.model.
|
|
85
|
+
* HTTP POST /asset
|
|
86
|
+
* Java method: org.openremote.model.asset.AssetResource.create
|
|
55
87
|
*/
|
|
56
|
-
|
|
88
|
+
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
57
89
|
/**
|
|
58
|
-
* HTTP
|
|
59
|
-
* Java method: org.openremote.model.
|
|
90
|
+
* HTTP DELETE /asset
|
|
91
|
+
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
60
92
|
*/
|
|
61
|
-
|
|
93
|
+
delete(queryParams?: {
|
|
94
|
+
assetId?: string[];
|
|
95
|
+
}, options?: O): RestResponse<void>;
|
|
62
96
|
/**
|
|
63
|
-
* HTTP
|
|
64
|
-
* Java method: org.openremote.model.
|
|
97
|
+
* HTTP PUT /asset/attributes
|
|
98
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
65
99
|
*/
|
|
66
|
-
|
|
100
|
+
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
67
101
|
/**
|
|
68
|
-
* HTTP
|
|
69
|
-
* Java method: org.openremote.model.
|
|
102
|
+
* HTTP PUT /asset/attributes/timestamp
|
|
103
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
70
104
|
*/
|
|
71
|
-
|
|
105
|
+
writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
72
106
|
/**
|
|
73
|
-
* HTTP
|
|
74
|
-
* Java method: org.openremote.model.
|
|
107
|
+
* HTTP DELETE /asset/parent
|
|
108
|
+
* Java method: org.openremote.model.asset.AssetResource.updateNoneParent
|
|
75
109
|
*/
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
protected httpClient: HttpClient<O>;
|
|
80
|
-
constructor(httpClient: HttpClient<O>);
|
|
110
|
+
updateNoneParent(queryParams?: {
|
|
111
|
+
assetIds?: string[];
|
|
112
|
+
}, options?: O): RestResponse<void>;
|
|
81
113
|
/**
|
|
82
|
-
* HTTP
|
|
83
|
-
* Java method: org.openremote.model.
|
|
114
|
+
* HTTP GET /asset/partial/{assetId}
|
|
115
|
+
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
84
116
|
*/
|
|
85
|
-
|
|
86
|
-
assetIds?: string[];
|
|
87
|
-
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
117
|
+
getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
88
118
|
/**
|
|
89
|
-
* HTTP
|
|
90
|
-
* Java method: org.openremote.model.
|
|
119
|
+
* HTTP POST /asset/query
|
|
120
|
+
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
91
121
|
*/
|
|
92
|
-
|
|
122
|
+
queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
|
|
123
|
+
/**
|
|
124
|
+
* HTTP GET /asset/user/current
|
|
125
|
+
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
126
|
+
*/
|
|
127
|
+
getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
|
|
128
|
+
/**
|
|
129
|
+
* HTTP POST /asset/user/link
|
|
130
|
+
* Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
|
|
131
|
+
*/
|
|
132
|
+
createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
133
|
+
/**
|
|
134
|
+
* HTTP GET /asset/user/link
|
|
135
|
+
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
136
|
+
*/
|
|
137
|
+
getUserAssetLinks(queryParams?: {
|
|
93
138
|
realm?: string;
|
|
94
|
-
|
|
139
|
+
userId?: string;
|
|
95
140
|
assetId?: string;
|
|
96
|
-
|
|
97
|
-
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
141
|
+
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
98
142
|
/**
|
|
99
|
-
* HTTP
|
|
100
|
-
* Java method: org.openremote.model.
|
|
143
|
+
* HTTP POST /asset/user/link/delete
|
|
144
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
|
|
101
145
|
*/
|
|
102
|
-
|
|
146
|
+
deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
103
147
|
/**
|
|
104
|
-
* HTTP
|
|
105
|
-
* Java method: org.openremote.model.
|
|
148
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}
|
|
149
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
|
|
106
150
|
*/
|
|
107
|
-
|
|
151
|
+
deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
108
152
|
/**
|
|
109
|
-
* HTTP
|
|
110
|
-
* Java method: org.openremote.model.
|
|
153
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
|
|
154
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
|
|
111
155
|
*/
|
|
112
|
-
|
|
156
|
+
deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
|
|
113
157
|
/**
|
|
114
|
-
* HTTP
|
|
115
|
-
* Java method: org.openremote.model.
|
|
158
|
+
* HTTP GET /asset/{assetId}
|
|
159
|
+
* Java method: org.openremote.model.asset.AssetResource.get
|
|
116
160
|
*/
|
|
117
|
-
|
|
161
|
+
get(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
118
162
|
/**
|
|
119
|
-
* HTTP PUT /
|
|
120
|
-
* Java method: org.openremote.model.
|
|
163
|
+
* HTTP PUT /asset/{assetId}
|
|
164
|
+
* Java method: org.openremote.model.asset.AssetResource.update
|
|
121
165
|
*/
|
|
122
|
-
|
|
166
|
+
update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
123
167
|
/**
|
|
124
|
-
* HTTP
|
|
125
|
-
* Java method: org.openremote.model.
|
|
168
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}
|
|
169
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
126
170
|
*/
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
171
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
172
|
+
/**
|
|
173
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
|
|
174
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
175
|
+
*/
|
|
176
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
177
|
+
/**
|
|
178
|
+
* HTTP PUT /asset/{parentAssetId}/child
|
|
179
|
+
* Java method: org.openremote.model.asset.AssetResource.updateParent
|
|
180
|
+
*/
|
|
181
|
+
updateParent(parentAssetId: string, queryParams?: {
|
|
182
|
+
assetIds?: string[];
|
|
183
|
+
}, options?: O): RestResponse<void>;
|
|
130
184
|
}
|
|
131
185
|
export declare class UserResourceClient<O> {
|
|
132
186
|
protected httpClient: HttpClient<O>;
|
|
@@ -252,217 +306,46 @@ export declare class UserResourceClient<O> {
|
|
|
252
306
|
*/
|
|
253
307
|
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
254
308
|
}
|
|
255
|
-
export declare class
|
|
309
|
+
export declare class AppResourceClient<O> {
|
|
256
310
|
protected httpClient: HttpClient<O>;
|
|
257
311
|
constructor(httpClient: HttpClient<O>);
|
|
258
312
|
/**
|
|
259
|
-
* HTTP GET /
|
|
260
|
-
* Java method: org.openremote.model.
|
|
261
|
-
*/
|
|
262
|
-
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
263
|
-
/**
|
|
264
|
-
* HTTP PUT /syslog/config
|
|
265
|
-
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
313
|
+
* HTTP GET /apps
|
|
314
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
266
315
|
*/
|
|
267
|
-
|
|
316
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
268
317
|
/**
|
|
269
|
-
* HTTP
|
|
270
|
-
* Java method: org.openremote.model.
|
|
318
|
+
* HTTP GET /apps/consoleConfig
|
|
319
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
271
320
|
*/
|
|
272
|
-
|
|
321
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
273
322
|
/**
|
|
274
|
-
* HTTP GET /
|
|
275
|
-
* Java method: org.openremote.model.
|
|
323
|
+
* HTTP GET /apps/info
|
|
324
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
276
325
|
*/
|
|
277
|
-
|
|
278
|
-
level?: Model.SyslogLevel;
|
|
279
|
-
per_page?: number;
|
|
280
|
-
page?: number;
|
|
281
|
-
from?: number;
|
|
282
|
-
to?: number;
|
|
283
|
-
category?: Model.SyslogCategory[];
|
|
284
|
-
subCategory?: string[];
|
|
285
|
-
}, options?: O): RestResponse<any>;
|
|
326
|
+
getAppInfos(options?: O): RestResponse<any>;
|
|
286
327
|
}
|
|
287
|
-
export declare class
|
|
328
|
+
export declare class RulesResourceClient<O> {
|
|
288
329
|
protected httpClient: HttpClient<O>;
|
|
289
330
|
constructor(httpClient: HttpClient<O>);
|
|
290
331
|
/**
|
|
291
|
-
* HTTP POST /
|
|
292
|
-
* Java method: org.openremote.model.
|
|
332
|
+
* HTTP POST /rules
|
|
333
|
+
* Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
|
|
293
334
|
*/
|
|
294
|
-
|
|
335
|
+
createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
|
|
295
336
|
/**
|
|
296
|
-
* HTTP
|
|
297
|
-
* Java method: org.openremote.model.
|
|
337
|
+
* HTTP GET /rules
|
|
338
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
298
339
|
*/
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
340
|
+
getGlobalRulesets(queryParams?: {
|
|
341
|
+
language?: Model.RulesetLang[];
|
|
342
|
+
fullyPopulate?: boolean;
|
|
343
|
+
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
302
344
|
/**
|
|
303
|
-
* HTTP
|
|
304
|
-
* Java method: org.openremote.model.
|
|
345
|
+
* HTTP POST /rules/asset
|
|
346
|
+
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
305
347
|
*/
|
|
306
|
-
|
|
307
|
-
/**
|
|
308
|
-
* HTTP PUT /asset/attributes/timestamp
|
|
309
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
310
|
-
*/
|
|
311
|
-
writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
312
|
-
/**
|
|
313
|
-
* HTTP DELETE /asset/parent
|
|
314
|
-
* Java method: org.openremote.model.asset.AssetResource.updateNoneParent
|
|
315
|
-
*/
|
|
316
|
-
updateNoneParent(queryParams?: {
|
|
317
|
-
assetIds?: string[];
|
|
318
|
-
}, options?: O): RestResponse<void>;
|
|
319
|
-
/**
|
|
320
|
-
* HTTP GET /asset/partial/{assetId}
|
|
321
|
-
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
322
|
-
*/
|
|
323
|
-
getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
324
|
-
/**
|
|
325
|
-
* HTTP POST /asset/query
|
|
326
|
-
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
327
|
-
*/
|
|
328
|
-
queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
|
|
329
|
-
/**
|
|
330
|
-
* HTTP GET /asset/user/current
|
|
331
|
-
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
332
|
-
*/
|
|
333
|
-
getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
|
|
334
|
-
/**
|
|
335
|
-
* HTTP POST /asset/user/link
|
|
336
|
-
* Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
|
|
337
|
-
*/
|
|
338
|
-
createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
339
|
-
/**
|
|
340
|
-
* HTTP GET /asset/user/link
|
|
341
|
-
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
342
|
-
*/
|
|
343
|
-
getUserAssetLinks(queryParams?: {
|
|
344
|
-
realm?: string;
|
|
345
|
-
userId?: string;
|
|
346
|
-
assetId?: string;
|
|
347
|
-
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
348
|
-
/**
|
|
349
|
-
* HTTP POST /asset/user/link/delete
|
|
350
|
-
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
|
|
351
|
-
*/
|
|
352
|
-
deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
353
|
-
/**
|
|
354
|
-
* HTTP DELETE /asset/user/link/{realm}/{userId}
|
|
355
|
-
* Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
|
|
356
|
-
*/
|
|
357
|
-
deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
358
|
-
/**
|
|
359
|
-
* HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
|
|
360
|
-
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
|
|
361
|
-
*/
|
|
362
|
-
deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
|
|
363
|
-
/**
|
|
364
|
-
* HTTP GET /asset/{assetId}
|
|
365
|
-
* Java method: org.openremote.model.asset.AssetResource.get
|
|
366
|
-
*/
|
|
367
|
-
get(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
368
|
-
/**
|
|
369
|
-
* HTTP PUT /asset/{assetId}
|
|
370
|
-
* Java method: org.openremote.model.asset.AssetResource.update
|
|
371
|
-
*/
|
|
372
|
-
update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
373
|
-
/**
|
|
374
|
-
* HTTP PUT /asset/{assetId}/attribute/{attributeName}
|
|
375
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
376
|
-
*/
|
|
377
|
-
writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
378
|
-
/**
|
|
379
|
-
* HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
|
|
380
|
-
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
381
|
-
*/
|
|
382
|
-
writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
383
|
-
/**
|
|
384
|
-
* HTTP PUT /asset/{parentAssetId}/child
|
|
385
|
-
* Java method: org.openremote.model.asset.AssetResource.updateParent
|
|
386
|
-
*/
|
|
387
|
-
updateParent(parentAssetId: string, queryParams?: {
|
|
388
|
-
assetIds?: string[];
|
|
389
|
-
}, options?: O): RestResponse<void>;
|
|
390
|
-
}
|
|
391
|
-
export declare class FlowResourceClient<O> {
|
|
392
|
-
protected httpClient: HttpClient<O>;
|
|
393
|
-
constructor(httpClient: HttpClient<O>);
|
|
394
|
-
/**
|
|
395
|
-
* HTTP GET /flow
|
|
396
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
397
|
-
*/
|
|
398
|
-
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
399
|
-
/**
|
|
400
|
-
* HTTP GET /flow/{name}
|
|
401
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
402
|
-
*/
|
|
403
|
-
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
404
|
-
/**
|
|
405
|
-
* HTTP GET /flow/{type}
|
|
406
|
-
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
407
|
-
*/
|
|
408
|
-
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
409
|
-
}
|
|
410
|
-
export declare class ConsoleResourceClient<O> {
|
|
411
|
-
protected httpClient: HttpClient<O>;
|
|
412
|
-
constructor(httpClient: HttpClient<O>);
|
|
413
|
-
/**
|
|
414
|
-
* HTTP POST /console/register
|
|
415
|
-
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
416
|
-
*/
|
|
417
|
-
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
418
|
-
}
|
|
419
|
-
export declare class ConfigurationResourceClient<O> {
|
|
420
|
-
protected httpClient: HttpClient<O>;
|
|
421
|
-
constructor(httpClient: HttpClient<O>);
|
|
422
|
-
/**
|
|
423
|
-
* HTTP GET /configuration/manager
|
|
424
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
425
|
-
*/
|
|
426
|
-
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
427
|
-
/**
|
|
428
|
-
* HTTP PUT /configuration/manager
|
|
429
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
430
|
-
*/
|
|
431
|
-
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
432
|
-
/**
|
|
433
|
-
* HTTP POST /configuration/manager/file
|
|
434
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
435
|
-
*/
|
|
436
|
-
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
437
|
-
path?: string;
|
|
438
|
-
}, options?: O): RestResponse<string>;
|
|
439
|
-
/**
|
|
440
|
-
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
441
|
-
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
442
|
-
*/
|
|
443
|
-
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
444
|
-
}
|
|
445
|
-
export declare class RulesResourceClient<O> {
|
|
446
|
-
protected httpClient: HttpClient<O>;
|
|
447
|
-
constructor(httpClient: HttpClient<O>);
|
|
448
|
-
/**
|
|
449
|
-
* HTTP POST /rules
|
|
450
|
-
* Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
|
|
451
|
-
*/
|
|
452
|
-
createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
|
|
453
|
-
/**
|
|
454
|
-
* HTTP GET /rules
|
|
455
|
-
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
456
|
-
*/
|
|
457
|
-
getGlobalRulesets(queryParams?: {
|
|
458
|
-
language?: Model.RulesetLang[];
|
|
459
|
-
fullyPopulate?: boolean;
|
|
460
|
-
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
461
|
-
/**
|
|
462
|
-
* HTTP POST /rules/asset
|
|
463
|
-
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
464
|
-
*/
|
|
465
|
-
createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
|
|
348
|
+
createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
|
|
466
349
|
/**
|
|
467
350
|
* HTTP GET /rules/asset/for/{assetId}
|
|
468
351
|
* Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
|
|
@@ -550,69 +433,41 @@ export declare class RulesResourceClient<O> {
|
|
|
550
433
|
*/
|
|
551
434
|
updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
552
435
|
}
|
|
553
|
-
export declare class
|
|
554
|
-
protected httpClient: HttpClient<O>;
|
|
555
|
-
constructor(httpClient: HttpClient<O>);
|
|
556
|
-
/**
|
|
557
|
-
* HTTP GET /map
|
|
558
|
-
* Java method: org.openremote.model.map.MapResource.getSettings
|
|
559
|
-
*/
|
|
560
|
-
getSettings(options?: O): RestResponse<{
|
|
561
|
-
[id: string]: unknown;
|
|
562
|
-
}>;
|
|
563
|
-
/**
|
|
564
|
-
* HTTP PUT /map
|
|
565
|
-
* Java method: org.openremote.model.map.MapResource.saveSettings
|
|
566
|
-
*/
|
|
567
|
-
saveSettings(mapConfig: {
|
|
568
|
-
[index: string]: Model.MapRealmConfig;
|
|
569
|
-
}, options?: O): RestResponse<any>;
|
|
570
|
-
/**
|
|
571
|
-
* HTTP GET /map/js
|
|
572
|
-
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
573
|
-
*/
|
|
574
|
-
getSettingsJs(options?: O): RestResponse<{
|
|
575
|
-
[id: string]: unknown;
|
|
576
|
-
}>;
|
|
577
|
-
/**
|
|
578
|
-
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
579
|
-
* Java method: org.openremote.model.map.MapResource.getTile
|
|
580
|
-
*/
|
|
581
|
-
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
582
|
-
}
|
|
583
|
-
export declare class DashboardResourceClient<O> {
|
|
436
|
+
export declare class GatewayClientResourceClient<O> {
|
|
584
437
|
protected httpClient: HttpClient<O>;
|
|
585
438
|
constructor(httpClient: HttpClient<O>);
|
|
586
439
|
/**
|
|
587
|
-
* HTTP
|
|
588
|
-
* Java method: org.openremote.model.
|
|
440
|
+
* HTTP DELETE /gateway/connection
|
|
441
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
589
442
|
*/
|
|
590
|
-
|
|
443
|
+
deleteConnections(queryParams?: {
|
|
444
|
+
realm?: string[];
|
|
445
|
+
}, options?: O): RestResponse<void>;
|
|
591
446
|
/**
|
|
592
|
-
* HTTP
|
|
593
|
-
* Java method: org.openremote.model.
|
|
447
|
+
* HTTP GET /gateway/connection
|
|
448
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
594
449
|
*/
|
|
595
|
-
|
|
450
|
+
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
596
451
|
/**
|
|
597
|
-
* HTTP
|
|
598
|
-
* Java method: org.openremote.model.
|
|
452
|
+
* HTTP DELETE /gateway/connection/{realm}
|
|
453
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
599
454
|
*/
|
|
600
|
-
|
|
455
|
+
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
601
456
|
/**
|
|
602
|
-
* HTTP
|
|
603
|
-
* Java method: org.openremote.model.
|
|
457
|
+
* HTTP GET /gateway/connection/{realm}
|
|
458
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
604
459
|
*/
|
|
605
|
-
|
|
460
|
+
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
606
461
|
/**
|
|
607
|
-
* HTTP
|
|
608
|
-
* Java method: org.openremote.model.
|
|
462
|
+
* HTTP PUT /gateway/connection/{realm}
|
|
463
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
609
464
|
*/
|
|
610
|
-
|
|
465
|
+
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
611
466
|
/**
|
|
612
|
-
* HTTP GET /
|
|
613
|
-
* Java method: org.openremote.model.
|
|
467
|
+
* HTTP GET /gateway/status/{realm}
|
|
468
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
614
469
|
*/
|
|
615
|
-
|
|
470
|
+
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
616
471
|
}
|
|
617
472
|
export declare class GatewayServiceResourceClient<O> {
|
|
618
473
|
protected httpClient: HttpClient<O>;
|
|
@@ -643,6 +498,54 @@ export declare class GatewayServiceResourceClient<O> {
|
|
|
643
498
|
*/
|
|
644
499
|
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
645
500
|
}
|
|
501
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
502
|
+
protected httpClient: HttpClient<O>;
|
|
503
|
+
constructor(httpClient: HttpClient<O>);
|
|
504
|
+
/**
|
|
505
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
506
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
507
|
+
*/
|
|
508
|
+
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
509
|
+
/**
|
|
510
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
511
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
512
|
+
*/
|
|
513
|
+
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
514
|
+
}
|
|
515
|
+
export declare class RealmResourceClient<O> {
|
|
516
|
+
protected httpClient: HttpClient<O>;
|
|
517
|
+
constructor(httpClient: HttpClient<O>);
|
|
518
|
+
/**
|
|
519
|
+
* HTTP POST /realm
|
|
520
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
521
|
+
*/
|
|
522
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
523
|
+
/**
|
|
524
|
+
* HTTP GET /realm
|
|
525
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
526
|
+
*/
|
|
527
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
528
|
+
/**
|
|
529
|
+
* HTTP GET /realm/accessible
|
|
530
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
531
|
+
*/
|
|
532
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
533
|
+
/**
|
|
534
|
+
* HTTP DELETE /realm/{name}
|
|
535
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
536
|
+
*/
|
|
537
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
538
|
+
/**
|
|
539
|
+
* HTTP GET /realm/{name}
|
|
540
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
541
|
+
*/
|
|
542
|
+
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
543
|
+
/**
|
|
544
|
+
* HTTP PUT /realm/{name}
|
|
545
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
546
|
+
*/
|
|
547
|
+
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
548
|
+
}
|
|
646
549
|
export declare class AssetDatapointResourceClient<O> {
|
|
647
550
|
protected httpClient: HttpClient<O>;
|
|
648
551
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -669,91 +572,120 @@ export declare class AssetDatapointResourceClient<O> {
|
|
|
669
572
|
*/
|
|
670
573
|
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
671
574
|
}
|
|
672
|
-
export declare class
|
|
575
|
+
export declare class MapResourceClient<O> {
|
|
673
576
|
protected httpClient: HttpClient<O>;
|
|
674
577
|
constructor(httpClient: HttpClient<O>);
|
|
675
578
|
/**
|
|
676
|
-
* HTTP GET /
|
|
677
|
-
* Java method: org.openremote.model.
|
|
579
|
+
* HTTP GET /map
|
|
580
|
+
* Java method: org.openremote.model.map.MapResource.getSettings
|
|
678
581
|
*/
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
}
|
|
582
|
+
getSettings(options?: O): RestResponse<{
|
|
583
|
+
[id: string]: unknown;
|
|
584
|
+
}>;
|
|
682
585
|
/**
|
|
683
|
-
* HTTP
|
|
684
|
-
* Java method: org.openremote.model.
|
|
586
|
+
* HTTP PUT /map
|
|
587
|
+
* Java method: org.openremote.model.map.MapResource.saveSettings
|
|
685
588
|
*/
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
}, options?: O): RestResponse<
|
|
589
|
+
saveSettings(mapConfig: {
|
|
590
|
+
[index: string]: Model.MapRealmConfig;
|
|
591
|
+
}, options?: O): RestResponse<any>;
|
|
689
592
|
/**
|
|
690
|
-
* HTTP GET /
|
|
691
|
-
* Java method: org.openremote.model.
|
|
593
|
+
* HTTP GET /map/js
|
|
594
|
+
* Java method: org.openremote.model.map.MapResource.getSettingsJs
|
|
692
595
|
*/
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
596
|
+
getSettingsJs(options?: O): RestResponse<{
|
|
597
|
+
[id: string]: unknown;
|
|
598
|
+
}>;
|
|
599
|
+
/**
|
|
600
|
+
* HTTP GET /map/tile/{zoom}/{column}/{row}
|
|
601
|
+
* Java method: org.openremote.model.map.MapResource.getTile
|
|
602
|
+
*/
|
|
603
|
+
getTile(zoom: number, column: number, row: number, options?: O): RestResponse<any>;
|
|
697
604
|
}
|
|
698
|
-
export declare class
|
|
605
|
+
export declare class SyslogResourceClient<O> {
|
|
699
606
|
protected httpClient: HttpClient<O>;
|
|
700
607
|
constructor(httpClient: HttpClient<O>);
|
|
701
608
|
/**
|
|
702
|
-
* HTTP
|
|
703
|
-
* Java method: org.openremote.model.
|
|
609
|
+
* HTTP GET /syslog/config
|
|
610
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
704
611
|
*/
|
|
705
|
-
|
|
612
|
+
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
706
613
|
/**
|
|
707
|
-
* HTTP
|
|
708
|
-
* Java method: org.openremote.model.
|
|
614
|
+
* HTTP PUT /syslog/config
|
|
615
|
+
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
709
616
|
*/
|
|
710
|
-
|
|
617
|
+
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
711
618
|
/**
|
|
712
|
-
* HTTP DELETE /
|
|
713
|
-
* Java method: org.openremote.model.
|
|
619
|
+
* HTTP DELETE /syslog/event
|
|
620
|
+
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
714
621
|
*/
|
|
715
|
-
|
|
622
|
+
clearEvents(options?: O): RestResponse<void>;
|
|
716
623
|
/**
|
|
717
|
-
* HTTP
|
|
718
|
-
* Java method: org.openremote.model.
|
|
624
|
+
* HTTP GET /syslog/event
|
|
625
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
719
626
|
*/
|
|
720
|
-
|
|
627
|
+
getEvents(queryParams?: {
|
|
628
|
+
level?: Model.SyslogLevel;
|
|
629
|
+
per_page?: number;
|
|
630
|
+
page?: number;
|
|
631
|
+
from?: number;
|
|
632
|
+
to?: number;
|
|
633
|
+
category?: Model.SyslogCategory[];
|
|
634
|
+
subCategory?: string[];
|
|
635
|
+
}, options?: O): RestResponse<any>;
|
|
721
636
|
}
|
|
722
|
-
export declare class
|
|
637
|
+
export declare class AlarmResourceClient<O> {
|
|
723
638
|
protected httpClient: HttpClient<O>;
|
|
724
639
|
constructor(httpClient: HttpClient<O>);
|
|
725
640
|
/**
|
|
726
|
-
* HTTP
|
|
727
|
-
* Java method: org.openremote.model.
|
|
641
|
+
* HTTP POST /alarm
|
|
642
|
+
* Java method: org.openremote.model.alarm.AlarmResource.createAlarm
|
|
643
|
+
*/
|
|
644
|
+
createAlarm(alarm: Model.Alarm, queryParams?: {
|
|
645
|
+
assetIds?: string[];
|
|
646
|
+
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
647
|
+
/**
|
|
648
|
+
* HTTP GET /alarm
|
|
649
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarms
|
|
728
650
|
*/
|
|
729
|
-
|
|
730
|
-
realm?: string
|
|
731
|
-
|
|
651
|
+
getAlarms(queryParams?: {
|
|
652
|
+
realm?: string;
|
|
653
|
+
status?: Model.AlarmStatus;
|
|
654
|
+
assetId?: string;
|
|
655
|
+
assigneeId?: string;
|
|
656
|
+
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
732
657
|
/**
|
|
733
|
-
* HTTP
|
|
734
|
-
* Java method: org.openremote.model.
|
|
658
|
+
* HTTP DELETE /alarm
|
|
659
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
|
|
735
660
|
*/
|
|
736
|
-
|
|
661
|
+
removeAlarms(ids: number[], options?: O): RestResponse<void>;
|
|
737
662
|
/**
|
|
738
|
-
* HTTP
|
|
739
|
-
* Java method: org.openremote.model.
|
|
663
|
+
* HTTP PUT /alarm/assets
|
|
664
|
+
* Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
|
|
740
665
|
*/
|
|
741
|
-
|
|
666
|
+
setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
|
|
742
667
|
/**
|
|
743
|
-
* HTTP GET /
|
|
744
|
-
* Java method: org.openremote.model.
|
|
668
|
+
* HTTP GET /alarm/{alarmId}
|
|
669
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarm
|
|
745
670
|
*/
|
|
746
|
-
|
|
671
|
+
getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
|
|
747
672
|
/**
|
|
748
|
-
* HTTP
|
|
749
|
-
* Java method: org.openremote.model.
|
|
673
|
+
* HTTP DELETE /alarm/{alarmId}
|
|
674
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
|
|
750
675
|
*/
|
|
751
|
-
|
|
676
|
+
removeAlarm(alarmId: number, options?: O): RestResponse<void>;
|
|
752
677
|
/**
|
|
753
|
-
* HTTP
|
|
754
|
-
* Java method: org.openremote.model.
|
|
678
|
+
* HTTP PUT /alarm/{alarmId}
|
|
679
|
+
* Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
|
|
755
680
|
*/
|
|
756
|
-
|
|
681
|
+
updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
|
|
682
|
+
/**
|
|
683
|
+
* HTTP GET /alarm/{alarmId}/assets
|
|
684
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
|
|
685
|
+
*/
|
|
686
|
+
getAssetLinks(alarmId: number, queryParams?: {
|
|
687
|
+
realm?: string;
|
|
688
|
+
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
757
689
|
}
|
|
758
690
|
export declare class NotificationResourceClient<O> {
|
|
759
691
|
protected httpClient: HttpClient<O>;
|
|
@@ -809,25 +741,6 @@ export declare class NotificationResourceClient<O> {
|
|
|
809
741
|
targetId?: string;
|
|
810
742
|
}, options?: O): RestResponse<void>;
|
|
811
743
|
}
|
|
812
|
-
export declare class AppResourceClient<O> {
|
|
813
|
-
protected httpClient: HttpClient<O>;
|
|
814
|
-
constructor(httpClient: HttpClient<O>);
|
|
815
|
-
/**
|
|
816
|
-
* HTTP GET /apps
|
|
817
|
-
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
818
|
-
*/
|
|
819
|
-
getApps(options?: O): RestResponse<string[]>;
|
|
820
|
-
/**
|
|
821
|
-
* HTTP GET /apps/consoleConfig
|
|
822
|
-
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
823
|
-
*/
|
|
824
|
-
getConsoleConfig(options?: O): RestResponse<any>;
|
|
825
|
-
/**
|
|
826
|
-
* HTTP GET /apps/info
|
|
827
|
-
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
828
|
-
*/
|
|
829
|
-
getAppInfos(options?: O): RestResponse<any>;
|
|
830
|
-
}
|
|
831
744
|
export declare class AssetModelResourceClient<O> {
|
|
832
745
|
protected httpClient: HttpClient<O>;
|
|
833
746
|
constructor(httpClient: HttpClient<O>);
|
|
@@ -873,51 +786,138 @@ export declare class AssetModelResourceClient<O> {
|
|
|
873
786
|
[index: string]: Model.ValueDescriptor;
|
|
874
787
|
}>;
|
|
875
788
|
}
|
|
789
|
+
export declare class FlowResourceClient<O> {
|
|
790
|
+
protected httpClient: HttpClient<O>;
|
|
791
|
+
constructor(httpClient: HttpClient<O>);
|
|
792
|
+
/**
|
|
793
|
+
* HTTP GET /flow
|
|
794
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
795
|
+
*/
|
|
796
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
797
|
+
/**
|
|
798
|
+
* HTTP GET /flow/{name}
|
|
799
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
800
|
+
*/
|
|
801
|
+
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
802
|
+
/**
|
|
803
|
+
* HTTP GET /flow/{type}
|
|
804
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
805
|
+
*/
|
|
806
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
807
|
+
}
|
|
808
|
+
export declare class ProvisioningResourceClient<O> {
|
|
809
|
+
protected httpClient: HttpClient<O>;
|
|
810
|
+
constructor(httpClient: HttpClient<O>);
|
|
811
|
+
/**
|
|
812
|
+
* HTTP POST /provisioning
|
|
813
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
814
|
+
*/
|
|
815
|
+
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
816
|
+
/**
|
|
817
|
+
* HTTP GET /provisioning
|
|
818
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
819
|
+
*/
|
|
820
|
+
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
821
|
+
/**
|
|
822
|
+
* HTTP DELETE /provisioning/{id}
|
|
823
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
824
|
+
*/
|
|
825
|
+
deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
|
|
826
|
+
/**
|
|
827
|
+
* HTTP PUT /provisioning/{id}
|
|
828
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
829
|
+
*/
|
|
830
|
+
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
831
|
+
}
|
|
832
|
+
export declare class StatusResourceClient<O> {
|
|
833
|
+
protected httpClient: HttpClient<O>;
|
|
834
|
+
constructor(httpClient: HttpClient<O>);
|
|
835
|
+
/**
|
|
836
|
+
* HTTP GET /health
|
|
837
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
838
|
+
*/
|
|
839
|
+
getHealthStatus(options?: O): RestResponse<{
|
|
840
|
+
[index: string]: any;
|
|
841
|
+
}>;
|
|
842
|
+
/**
|
|
843
|
+
* HTTP GET /info
|
|
844
|
+
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
845
|
+
*/
|
|
846
|
+
getInfo(options?: O): RestResponse<{
|
|
847
|
+
[index: string]: any;
|
|
848
|
+
}>;
|
|
849
|
+
}
|
|
850
|
+
export declare class ConfigurationResourceClient<O> {
|
|
851
|
+
protected httpClient: HttpClient<O>;
|
|
852
|
+
constructor(httpClient: HttpClient<O>);
|
|
853
|
+
/**
|
|
854
|
+
* HTTP GET /configuration/manager
|
|
855
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
856
|
+
*/
|
|
857
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
858
|
+
/**
|
|
859
|
+
* HTTP PUT /configuration/manager
|
|
860
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
861
|
+
*/
|
|
862
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
863
|
+
/**
|
|
864
|
+
* HTTP POST /configuration/manager/file
|
|
865
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
866
|
+
*/
|
|
867
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
868
|
+
path?: string;
|
|
869
|
+
}, options?: O): RestResponse<string>;
|
|
870
|
+
/**
|
|
871
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
872
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
873
|
+
*/
|
|
874
|
+
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
875
|
+
}
|
|
876
876
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
877
877
|
export declare class ApiClient {
|
|
878
|
-
protected
|
|
879
|
-
protected
|
|
880
|
-
protected _realmResource: AxiosRealmResourceClient;
|
|
881
|
-
protected _alarmResource: AxiosAlarmResourceClient;
|
|
882
|
-
protected _userResource: AxiosUserResourceClient;
|
|
883
|
-
protected _syslogResource: AxiosSyslogResourceClient;
|
|
884
|
-
protected _assetResource: AxiosAssetResourceClient;
|
|
885
|
-
protected _flowResource: AxiosFlowResourceClient;
|
|
878
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
879
|
+
protected _agentResource: AxiosAgentResourceClient;
|
|
886
880
|
protected _consoleResource: AxiosConsoleResourceClient;
|
|
887
|
-
protected
|
|
881
|
+
protected _assetResource: AxiosAssetResourceClient;
|
|
882
|
+
protected _userResource: AxiosUserResourceClient;
|
|
883
|
+
protected _appResource: AxiosAppResourceClient;
|
|
888
884
|
protected _rulesResource: AxiosRulesResourceClient;
|
|
889
|
-
protected
|
|
890
|
-
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
885
|
+
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
891
886
|
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
887
|
+
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
888
|
+
protected _realmResource: AxiosRealmResourceClient;
|
|
892
889
|
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
893
|
-
protected
|
|
894
|
-
protected
|
|
895
|
-
protected
|
|
890
|
+
protected _mapResource: AxiosMapResourceClient;
|
|
891
|
+
protected _syslogResource: AxiosSyslogResourceClient;
|
|
892
|
+
protected _alarmResource: AxiosAlarmResourceClient;
|
|
896
893
|
protected _notificationResource: AxiosNotificationResourceClient;
|
|
897
|
-
protected _appResource: AxiosAppResourceClient;
|
|
898
894
|
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
895
|
+
protected _flowResource: AxiosFlowResourceClient;
|
|
896
|
+
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
897
|
+
protected _statusResource: AxiosStatusResourceClient;
|
|
898
|
+
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
899
899
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
900
|
-
get
|
|
901
|
-
get
|
|
902
|
-
get RealmResource(): AxiosRealmResourceClient;
|
|
903
|
-
get AlarmResource(): AxiosAlarmResourceClient;
|
|
904
|
-
get UserResource(): AxiosUserResourceClient;
|
|
905
|
-
get SyslogResource(): AxiosSyslogResourceClient;
|
|
906
|
-
get AssetResource(): AxiosAssetResourceClient;
|
|
907
|
-
get FlowResource(): AxiosFlowResourceClient;
|
|
900
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
901
|
+
get AgentResource(): AxiosAgentResourceClient;
|
|
908
902
|
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
909
|
-
get
|
|
903
|
+
get AssetResource(): AxiosAssetResourceClient;
|
|
904
|
+
get UserResource(): AxiosUserResourceClient;
|
|
905
|
+
get AppResource(): AxiosAppResourceClient;
|
|
910
906
|
get RulesResource(): AxiosRulesResourceClient;
|
|
911
|
-
get
|
|
912
|
-
get DashboardResource(): AxiosDashboardResourceClient;
|
|
907
|
+
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
913
908
|
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
909
|
+
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
910
|
+
get RealmResource(): AxiosRealmResourceClient;
|
|
914
911
|
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
915
|
-
get
|
|
916
|
-
get
|
|
917
|
-
get
|
|
912
|
+
get MapResource(): AxiosMapResourceClient;
|
|
913
|
+
get SyslogResource(): AxiosSyslogResourceClient;
|
|
914
|
+
get AlarmResource(): AxiosAlarmResourceClient;
|
|
918
915
|
get NotificationResource(): AxiosNotificationResourceClient;
|
|
919
|
-
get AppResource(): AxiosAppResourceClient;
|
|
920
916
|
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
917
|
+
get FlowResource(): AxiosFlowResourceClient;
|
|
918
|
+
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
919
|
+
get StatusResource(): AxiosStatusResourceClient;
|
|
920
|
+
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
921
921
|
}
|
|
922
922
|
import * as Axios from "axios";
|
|
923
923
|
declare module "axios" {
|
|
@@ -925,66 +925,66 @@ declare module "axios" {
|
|
|
925
925
|
data: R;
|
|
926
926
|
}
|
|
927
927
|
}
|
|
928
|
-
export declare class
|
|
928
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
929
929
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
930
930
|
}
|
|
931
|
-
export declare class
|
|
931
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
932
932
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
933
933
|
}
|
|
934
|
-
export declare class
|
|
934
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
935
935
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
936
936
|
}
|
|
937
|
-
export declare class
|
|
937
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
938
938
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
939
939
|
}
|
|
940
940
|
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
941
941
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
942
942
|
}
|
|
943
|
-
export declare class
|
|
943
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
944
944
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
945
945
|
}
|
|
946
|
-
export declare class
|
|
946
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
947
947
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
948
948
|
}
|
|
949
|
-
export declare class
|
|
949
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
950
950
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
951
951
|
}
|
|
952
|
-
export declare class
|
|
952
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
953
953
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
954
954
|
}
|
|
955
|
-
export declare class
|
|
955
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
956
956
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
957
957
|
}
|
|
958
|
-
export declare class
|
|
958
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
959
959
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
960
960
|
}
|
|
961
|
-
export declare class
|
|
961
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
962
962
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
963
963
|
}
|
|
964
|
-
export declare class
|
|
964
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
965
965
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
966
966
|
}
|
|
967
|
-
export declare class
|
|
967
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
968
968
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
969
969
|
}
|
|
970
|
-
export declare class
|
|
970
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
971
971
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
972
972
|
}
|
|
973
|
-
export declare class
|
|
973
|
+
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
974
974
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
975
975
|
}
|
|
976
|
-
export declare class
|
|
976
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
977
977
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
978
978
|
}
|
|
979
|
-
export declare class
|
|
979
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
980
980
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
981
981
|
}
|
|
982
|
-
export declare class
|
|
982
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
983
983
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
984
984
|
}
|
|
985
|
-
export declare class
|
|
985
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
986
986
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
987
987
|
}
|
|
988
|
-
export declare class
|
|
988
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
989
989
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
990
990
|
}
|