@openremote/rest 1.27.0 → 1.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/umd/index.bundle.js +1 -1
- package/dist/umd/index.bundle.js.map +1 -1
- package/dist/umd/index.js +1 -1
- package/dist/umd/index.js.map +1 -1
- package/lib/restclient.d.ts +563 -563
- package/lib/restclient.d.ts.map +1 -1
- package/lib/restclient.js +1 -1
- package/lib/restclient.js.map +1 -1
- package/package.json +2 -2
package/lib/restclient.d.ts
CHANGED
|
@@ -9,167 +9,175 @@ export interface HttpClient<O> {
|
|
|
9
9
|
options?: O;
|
|
10
10
|
}): RestResponse<R>;
|
|
11
11
|
}
|
|
12
|
-
export declare class
|
|
12
|
+
export declare class RulesResourceClient<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 /rules
|
|
17
|
+
* Java method: org.openremote.model.rules.RulesResource.createGlobalRuleset
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
createGlobalRuleset(ruleset: Model.GlobalRuleset, options?: O): RestResponse<number>;
|
|
20
20
|
/**
|
|
21
|
-
* HTTP
|
|
22
|
-
* Java method: org.openremote.model.
|
|
21
|
+
* HTTP GET /rules
|
|
22
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRulesets
|
|
23
23
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
constructor(httpClient: HttpClient<O>);
|
|
24
|
+
getGlobalRulesets(queryParams?: {
|
|
25
|
+
language?: Model.RulesetLang[];
|
|
26
|
+
fullyPopulate?: boolean;
|
|
27
|
+
}, options?: O): RestResponse<Model.GlobalRuleset[]>;
|
|
29
28
|
/**
|
|
30
|
-
* HTTP POST /asset
|
|
31
|
-
* Java method: org.openremote.model.
|
|
29
|
+
* HTTP POST /rules/asset
|
|
30
|
+
* Java method: org.openremote.model.rules.RulesResource.createAssetRuleset
|
|
32
31
|
*/
|
|
33
|
-
|
|
32
|
+
createAssetRuleset(ruleset: Model.AssetRuleset, options?: O): RestResponse<number>;
|
|
34
33
|
/**
|
|
35
|
-
* HTTP
|
|
36
|
-
* Java method: org.openremote.model.
|
|
34
|
+
* HTTP GET /rules/asset/for/{assetId}
|
|
35
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRulesets
|
|
37
36
|
*/
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
getAssetRulesets(assetId: string, queryParams?: {
|
|
38
|
+
language?: Model.RulesetLang[];
|
|
39
|
+
fullyPopulate?: boolean;
|
|
40
|
+
}, options?: O): RestResponse<Model.AssetRuleset[]>;
|
|
41
41
|
/**
|
|
42
|
-
* HTTP
|
|
43
|
-
* Java method: org.openremote.model.
|
|
42
|
+
* HTTP DELETE /rules/asset/{id}
|
|
43
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteAssetRuleset
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
deleteAssetRuleset(id: number, options?: O): RestResponse<void>;
|
|
46
46
|
/**
|
|
47
|
-
* HTTP
|
|
48
|
-
* Java method: org.openremote.model.
|
|
47
|
+
* HTTP GET /rules/asset/{id}
|
|
48
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetRuleset
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
getAssetRuleset(id: number, options?: O): RestResponse<Model.AssetRuleset>;
|
|
51
51
|
/**
|
|
52
|
-
* HTTP
|
|
53
|
-
* Java method: org.openremote.model.
|
|
52
|
+
* HTTP PUT /rules/asset/{id}
|
|
53
|
+
* Java method: org.openremote.model.rules.RulesResource.updateAssetRuleset
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
updateAssetRuleset(id: number, ruleset: Model.AssetRuleset, options?: O): RestResponse<void>;
|
|
56
56
|
/**
|
|
57
|
-
* HTTP
|
|
58
|
-
* Java method: org.openremote.model.
|
|
57
|
+
* HTTP GET /rules/geofences/{assetId}
|
|
58
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetGeofences
|
|
59
59
|
*/
|
|
60
|
-
|
|
61
|
-
assetIds?: string[];
|
|
62
|
-
}, options?: O): RestResponse<void>;
|
|
60
|
+
getAssetGeofences(assetId: string, options?: O): RestResponse<Model.GeofenceDefinition[]>;
|
|
63
61
|
/**
|
|
64
|
-
* HTTP GET /asset/
|
|
65
|
-
* Java method: org.openremote.model.
|
|
62
|
+
* HTTP GET /rules/info/asset/{assetId}
|
|
63
|
+
* Java method: org.openremote.model.rules.RulesResource.getAssetEngineInfo
|
|
66
64
|
*/
|
|
67
|
-
|
|
65
|
+
getAssetEngineInfo(assetId: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
68
66
|
/**
|
|
69
|
-
* HTTP
|
|
70
|
-
* Java method: org.openremote.model.
|
|
67
|
+
* HTTP GET /rules/info/global
|
|
68
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalEngineInfo
|
|
71
69
|
*/
|
|
72
|
-
|
|
70
|
+
getGlobalEngineInfo(options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
73
71
|
/**
|
|
74
|
-
* HTTP
|
|
75
|
-
* Java method: org.openremote.model.
|
|
72
|
+
* HTTP GET /rules/info/realm/{realm}
|
|
73
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmEngineInfo
|
|
76
74
|
*/
|
|
77
|
-
|
|
75
|
+
getRealmEngineInfo(realm: string, options?: O): RestResponse<Model.RulesEngineInfo>;
|
|
78
76
|
/**
|
|
79
|
-
* HTTP
|
|
80
|
-
* Java method: org.openremote.model.
|
|
77
|
+
* HTTP POST /rules/realm
|
|
78
|
+
* Java method: org.openremote.model.rules.RulesResource.createRealmRuleset
|
|
81
79
|
*/
|
|
82
|
-
|
|
80
|
+
createRealmRuleset(ruleset: Model.RealmRuleset, options?: O): RestResponse<number>;
|
|
83
81
|
/**
|
|
84
|
-
* HTTP
|
|
85
|
-
* Java method: org.openremote.model.
|
|
82
|
+
* HTTP GET /rules/realm/for/{realm}
|
|
83
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRulesets
|
|
86
84
|
*/
|
|
87
|
-
|
|
85
|
+
getRealmRulesets(realm: string, queryParams?: {
|
|
86
|
+
language?: Model.RulesetLang[];
|
|
87
|
+
fullyPopulate?: boolean;
|
|
88
|
+
}, options?: O): RestResponse<Model.RealmRuleset[]>;
|
|
88
89
|
/**
|
|
89
|
-
* HTTP
|
|
90
|
-
* Java method: org.openremote.model.
|
|
90
|
+
* HTTP DELETE /rules/realm/{id}
|
|
91
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteRealmRuleset
|
|
91
92
|
*/
|
|
92
|
-
|
|
93
|
-
realm?: string;
|
|
94
|
-
userId?: string;
|
|
95
|
-
assetId?: string;
|
|
96
|
-
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
93
|
+
deleteRealmRuleset(id: number, options?: O): RestResponse<void>;
|
|
97
94
|
/**
|
|
98
|
-
* HTTP
|
|
99
|
-
* Java method: org.openremote.model.
|
|
95
|
+
* HTTP GET /rules/realm/{id}
|
|
96
|
+
* Java method: org.openremote.model.rules.RulesResource.getRealmRuleset
|
|
100
97
|
*/
|
|
101
|
-
|
|
98
|
+
getRealmRuleset(id: number, options?: O): RestResponse<Model.RealmRuleset>;
|
|
102
99
|
/**
|
|
103
|
-
* HTTP
|
|
104
|
-
* Java method: org.openremote.model.
|
|
100
|
+
* HTTP PUT /rules/realm/{id}
|
|
101
|
+
* Java method: org.openremote.model.rules.RulesResource.updateRealmRuleset
|
|
105
102
|
*/
|
|
106
|
-
|
|
103
|
+
updateRealmRuleset(id: number, ruleset: Model.RealmRuleset, options?: O): RestResponse<void>;
|
|
107
104
|
/**
|
|
108
|
-
* HTTP DELETE /
|
|
109
|
-
* Java method: org.openremote.model.
|
|
105
|
+
* HTTP DELETE /rules/{id}
|
|
106
|
+
* Java method: org.openremote.model.rules.RulesResource.deleteGlobalRuleset
|
|
110
107
|
*/
|
|
111
|
-
|
|
108
|
+
deleteGlobalRuleset(id: number, options?: O): RestResponse<void>;
|
|
112
109
|
/**
|
|
113
|
-
* HTTP GET /
|
|
114
|
-
* Java method: org.openremote.model.
|
|
110
|
+
* HTTP GET /rules/{id}
|
|
111
|
+
* Java method: org.openremote.model.rules.RulesResource.getGlobalRuleset
|
|
115
112
|
*/
|
|
116
|
-
|
|
113
|
+
getGlobalRuleset(id: number, options?: O): RestResponse<Model.GlobalRuleset>;
|
|
117
114
|
/**
|
|
118
|
-
* HTTP PUT /
|
|
119
|
-
* Java method: org.openremote.model.
|
|
115
|
+
* HTTP PUT /rules/{id}
|
|
116
|
+
* Java method: org.openremote.model.rules.RulesResource.updateGlobalRuleset
|
|
120
117
|
*/
|
|
121
|
-
|
|
118
|
+
updateGlobalRuleset(id: number, ruleset: Model.GlobalRuleset, options?: O): RestResponse<void>;
|
|
119
|
+
}
|
|
120
|
+
export declare class AgentResourceClient<O> {
|
|
121
|
+
protected httpClient: HttpClient<O>;
|
|
122
|
+
constructor(httpClient: HttpClient<O>);
|
|
122
123
|
/**
|
|
123
|
-
* HTTP
|
|
124
|
-
* Java method: org.openremote.model.asset.
|
|
124
|
+
* HTTP GET /agent/assetDiscovery/{agentId}
|
|
125
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetDiscovery
|
|
125
126
|
*/
|
|
126
|
-
|
|
127
|
+
doProtocolAssetDiscovery(agentId: string, queryParams?: {
|
|
128
|
+
realm?: string;
|
|
129
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
127
130
|
/**
|
|
128
|
-
* HTTP
|
|
129
|
-
* Java method: org.openremote.model.asset.
|
|
131
|
+
* HTTP POST /agent/assetImport/{agentId}
|
|
132
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolAssetImport
|
|
130
133
|
*/
|
|
131
|
-
|
|
134
|
+
doProtocolAssetImport(agentId: string, fileInfo: Model.FileInfo, queryParams?: {
|
|
135
|
+
realm?: string;
|
|
136
|
+
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
132
137
|
/**
|
|
133
|
-
* HTTP
|
|
134
|
-
* Java method: org.openremote.model.asset.
|
|
138
|
+
* HTTP GET /agent/instanceDiscovery/{agentType}
|
|
139
|
+
* Java method: org.openremote.model.asset.agent.AgentResource.doProtocolInstanceDiscovery
|
|
135
140
|
*/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
141
|
+
doProtocolInstanceDiscovery(agentType: string, queryParams?: {
|
|
142
|
+
parentId?: string;
|
|
143
|
+
realm?: string;
|
|
144
|
+
}, options?: O): RestResponse<Model.Agent[]>;
|
|
139
145
|
}
|
|
140
|
-
export declare class
|
|
146
|
+
export declare class GatewayClientResourceClient<O> {
|
|
141
147
|
protected httpClient: HttpClient<O>;
|
|
142
148
|
constructor(httpClient: HttpClient<O>);
|
|
143
149
|
/**
|
|
144
|
-
* HTTP
|
|
145
|
-
* Java method: org.openremote.model.
|
|
150
|
+
* HTTP DELETE /gateway/connection
|
|
151
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
146
152
|
*/
|
|
147
|
-
|
|
153
|
+
deleteConnections(queryParams?: {
|
|
154
|
+
realm?: string[];
|
|
155
|
+
}, options?: O): RestResponse<void>;
|
|
148
156
|
/**
|
|
149
|
-
* HTTP
|
|
150
|
-
* Java method: org.openremote.model.
|
|
157
|
+
* HTTP GET /gateway/connection
|
|
158
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
151
159
|
*/
|
|
152
|
-
|
|
160
|
+
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
153
161
|
/**
|
|
154
|
-
* HTTP
|
|
155
|
-
* Java method: org.openremote.model.
|
|
162
|
+
* HTTP DELETE /gateway/connection/{realm}
|
|
163
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
156
164
|
*/
|
|
157
|
-
|
|
165
|
+
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
158
166
|
/**
|
|
159
|
-
* HTTP
|
|
160
|
-
* Java method: org.openremote.model.
|
|
167
|
+
* HTTP GET /gateway/connection/{realm}
|
|
168
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
161
169
|
*/
|
|
162
|
-
|
|
170
|
+
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
163
171
|
/**
|
|
164
|
-
* HTTP
|
|
165
|
-
* Java method: org.openremote.model.
|
|
172
|
+
* HTTP PUT /gateway/connection/{realm}
|
|
173
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
166
174
|
*/
|
|
167
|
-
|
|
175
|
+
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
168
176
|
/**
|
|
169
|
-
* HTTP GET /
|
|
170
|
-
* Java method: org.openremote.model.
|
|
177
|
+
* HTTP GET /gateway/status/{realm}
|
|
178
|
+
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
171
179
|
*/
|
|
172
|
-
|
|
180
|
+
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
173
181
|
}
|
|
174
182
|
export declare class NotificationResourceClient<O> {
|
|
175
183
|
protected httpClient: HttpClient<O>;
|
|
@@ -225,379 +233,344 @@ export declare class NotificationResourceClient<O> {
|
|
|
225
233
|
targetId?: string;
|
|
226
234
|
}, options?: O): RestResponse<void>;
|
|
227
235
|
}
|
|
228
|
-
export declare class
|
|
229
|
-
protected httpClient: HttpClient<O>;
|
|
230
|
-
constructor(httpClient: HttpClient<O>);
|
|
231
|
-
/**
|
|
232
|
-
* HTTP POST /console/register
|
|
233
|
-
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
234
|
-
*/
|
|
235
|
-
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
236
|
-
}
|
|
237
|
-
export declare class SyslogResourceClient<O> {
|
|
236
|
+
export declare class ConfigurationResourceClient<O> {
|
|
238
237
|
protected httpClient: HttpClient<O>;
|
|
239
238
|
constructor(httpClient: HttpClient<O>);
|
|
240
239
|
/**
|
|
241
|
-
* HTTP GET /
|
|
242
|
-
* Java method: org.openremote.model.
|
|
240
|
+
* HTTP GET /configuration/manager
|
|
241
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfig
|
|
243
242
|
*/
|
|
244
|
-
|
|
243
|
+
getManagerConfig(options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
245
244
|
/**
|
|
246
|
-
* HTTP PUT /
|
|
247
|
-
* Java method: org.openremote.model.
|
|
245
|
+
* HTTP PUT /configuration/manager
|
|
246
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.update
|
|
248
247
|
*/
|
|
249
|
-
|
|
248
|
+
update(managerConfiguration: Model.ManagerAppConfig, options?: O): RestResponse<Model.ManagerAppConfig>;
|
|
250
249
|
/**
|
|
251
|
-
* HTTP
|
|
252
|
-
* Java method: org.openremote.model.
|
|
250
|
+
* HTTP POST /configuration/manager/file
|
|
251
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.fileUpload
|
|
253
252
|
*/
|
|
254
|
-
|
|
253
|
+
fileUpload(fileInfo: Model.FileInfo, queryParams?: {
|
|
254
|
+
path?: string;
|
|
255
|
+
}, options?: O): RestResponse<string>;
|
|
255
256
|
/**
|
|
256
|
-
* HTTP GET /
|
|
257
|
-
* Java method: org.openremote.model.
|
|
257
|
+
* HTTP GET /configuration/manager/image/{filename: .+}
|
|
258
|
+
* Java method: org.openremote.model.manager.ConfigurationResource.getManagerConfigImage
|
|
258
259
|
*/
|
|
259
|
-
|
|
260
|
-
level?: Model.SyslogLevel;
|
|
261
|
-
per_page?: number;
|
|
262
|
-
page?: number;
|
|
263
|
-
from?: number;
|
|
264
|
-
to?: number;
|
|
265
|
-
category?: Model.SyslogCategory[];
|
|
266
|
-
subCategory?: string[];
|
|
267
|
-
}, options?: O): RestResponse<any>;
|
|
260
|
+
getManagerConfigImage(filename: string, options?: O): RestResponse<any>;
|
|
268
261
|
}
|
|
269
|
-
export declare class
|
|
262
|
+
export declare class ProvisioningResourceClient<O> {
|
|
270
263
|
protected httpClient: HttpClient<O>;
|
|
271
264
|
constructor(httpClient: HttpClient<O>);
|
|
272
265
|
/**
|
|
273
|
-
* HTTP
|
|
274
|
-
* Java method: org.openremote.model.
|
|
266
|
+
* HTTP POST /provisioning
|
|
267
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
275
268
|
*/
|
|
276
|
-
|
|
269
|
+
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
277
270
|
/**
|
|
278
|
-
* HTTP GET /
|
|
279
|
-
* Java method: org.openremote.model.
|
|
271
|
+
* HTTP GET /provisioning
|
|
272
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
280
273
|
*/
|
|
281
|
-
|
|
274
|
+
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
282
275
|
/**
|
|
283
|
-
* HTTP
|
|
284
|
-
* Java method: org.openremote.model.
|
|
276
|
+
* HTTP DELETE /provisioning/{id}
|
|
277
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
285
278
|
*/
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
279
|
+
deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
|
|
280
|
+
/**
|
|
281
|
+
* HTTP PUT /provisioning/{id}
|
|
282
|
+
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
283
|
+
*/
|
|
284
|
+
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
289
285
|
}
|
|
290
|
-
export declare class
|
|
286
|
+
export declare class AssetResourceClient<O> {
|
|
291
287
|
protected httpClient: HttpClient<O>;
|
|
292
288
|
constructor(httpClient: HttpClient<O>);
|
|
293
289
|
/**
|
|
294
|
-
* HTTP
|
|
295
|
-
* Java method: org.openremote.model.
|
|
290
|
+
* HTTP POST /asset
|
|
291
|
+
* Java method: org.openremote.model.asset.AssetResource.create
|
|
296
292
|
*/
|
|
297
|
-
|
|
298
|
-
[index: string]: any;
|
|
299
|
-
}>;
|
|
293
|
+
create(asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
300
294
|
/**
|
|
301
|
-
* HTTP
|
|
302
|
-
* Java method: org.openremote.model.
|
|
295
|
+
* HTTP DELETE /asset
|
|
296
|
+
* Java method: org.openremote.model.asset.AssetResource.delete
|
|
303
297
|
*/
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
}>;
|
|
307
|
-
}
|
|
308
|
-
export declare class AssetModelResourceClient<O> {
|
|
309
|
-
protected httpClient: HttpClient<O>;
|
|
310
|
-
constructor(httpClient: HttpClient<O>);
|
|
298
|
+
delete(queryParams?: {
|
|
299
|
+
assetId?: string[];
|
|
300
|
+
}, options?: O): RestResponse<void>;
|
|
311
301
|
/**
|
|
312
|
-
* HTTP
|
|
313
|
-
* Java method: org.openremote.model.asset.
|
|
302
|
+
* HTTP PUT /asset/attributes
|
|
303
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValues
|
|
314
304
|
*/
|
|
315
|
-
|
|
316
|
-
parentId?: string;
|
|
317
|
-
parentType?: string;
|
|
318
|
-
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
305
|
+
writeAttributeValues(attributeStates: Model.AttributeState[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
319
306
|
/**
|
|
320
|
-
* HTTP
|
|
321
|
-
* Java method: org.openremote.model.asset.
|
|
307
|
+
* HTTP PUT /asset/attributes/timestamp
|
|
308
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeEvents
|
|
322
309
|
*/
|
|
323
|
-
|
|
324
|
-
parentId?: string;
|
|
325
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
310
|
+
writeAttributeEvents(attributeEvents: Model.AttributeEvent[], options?: O): RestResponse<Model.AttributeWriteResult[]>;
|
|
326
311
|
/**
|
|
327
|
-
* HTTP
|
|
328
|
-
* Java method: org.openremote.model.asset.
|
|
312
|
+
* HTTP POST /asset/count
|
|
313
|
+
* Java method: org.openremote.model.asset.AssetResource.queryCount
|
|
329
314
|
*/
|
|
330
|
-
|
|
331
|
-
parentId?: string;
|
|
332
|
-
parentType?: string;
|
|
333
|
-
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
315
|
+
queryCount(query: Model.AssetQuery, options?: O): RestResponse<number>;
|
|
334
316
|
/**
|
|
335
|
-
* HTTP
|
|
336
|
-
* Java method: org.openremote.model.asset.
|
|
317
|
+
* HTTP DELETE /asset/parent
|
|
318
|
+
* Java method: org.openremote.model.asset.AssetResource.updateNoneParent
|
|
337
319
|
*/
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
}, options?: O): RestResponse<
|
|
320
|
+
updateNoneParent(queryParams?: {
|
|
321
|
+
assetIds?: string[];
|
|
322
|
+
}, options?: O): RestResponse<void>;
|
|
341
323
|
/**
|
|
342
|
-
* HTTP GET /
|
|
343
|
-
* Java method: org.openremote.model.asset.
|
|
324
|
+
* HTTP GET /asset/partial/{assetId}
|
|
325
|
+
* Java method: org.openremote.model.asset.AssetResource.getPartial
|
|
344
326
|
*/
|
|
345
|
-
|
|
346
|
-
parentId?: string;
|
|
347
|
-
}, options?: O): RestResponse<{
|
|
348
|
-
[index: string]: Model.MetaItemDescriptor;
|
|
349
|
-
}>;
|
|
327
|
+
getPartial(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
350
328
|
/**
|
|
351
|
-
* HTTP
|
|
352
|
-
* Java method: org.openremote.model.asset.
|
|
329
|
+
* HTTP POST /asset/query
|
|
330
|
+
* Java method: org.openremote.model.asset.AssetResource.queryAssets
|
|
353
331
|
*/
|
|
354
|
-
|
|
355
|
-
parentId?: string;
|
|
356
|
-
}, options?: O): RestResponse<{
|
|
357
|
-
[index: string]: Model.ValueDescriptor;
|
|
358
|
-
}>;
|
|
359
|
-
}
|
|
360
|
-
export declare class RealmResourceClient<O> {
|
|
361
|
-
protected httpClient: HttpClient<O>;
|
|
362
|
-
constructor(httpClient: HttpClient<O>);
|
|
332
|
+
queryAssets(query: Model.AssetQuery, options?: O): RestResponse<Model.Asset[]>;
|
|
363
333
|
/**
|
|
364
|
-
* HTTP POST /
|
|
365
|
-
* Java method: org.openremote.model.
|
|
334
|
+
* HTTP POST /asset/tree
|
|
335
|
+
* Java method: org.openremote.model.asset.AssetResource.queryAssetTree
|
|
366
336
|
*/
|
|
367
|
-
|
|
337
|
+
queryAssetTree(query: Model.AssetQuery, options?: O): RestResponse<Model.AssetTree>;
|
|
368
338
|
/**
|
|
369
|
-
* HTTP GET /
|
|
370
|
-
* Java method: org.openremote.model.
|
|
339
|
+
* HTTP GET /asset/user/current
|
|
340
|
+
* Java method: org.openremote.model.asset.AssetResource.getCurrentUserAssets
|
|
371
341
|
*/
|
|
372
|
-
|
|
342
|
+
getCurrentUserAssets(options?: O): RestResponse<Model.Asset[]>;
|
|
373
343
|
/**
|
|
374
|
-
* HTTP
|
|
375
|
-
* Java method: org.openremote.model.
|
|
344
|
+
* HTTP POST /asset/user/link
|
|
345
|
+
* Java method: org.openremote.model.asset.AssetResource.createUserAssetLinks
|
|
376
346
|
*/
|
|
377
|
-
|
|
347
|
+
createUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
378
348
|
/**
|
|
379
|
-
* HTTP
|
|
380
|
-
* Java method: org.openremote.model.
|
|
349
|
+
* HTTP GET /asset/user/link
|
|
350
|
+
* Java method: org.openremote.model.asset.AssetResource.getUserAssetLinks
|
|
381
351
|
*/
|
|
382
|
-
|
|
352
|
+
getUserAssetLinks(queryParams?: {
|
|
353
|
+
realm?: string;
|
|
354
|
+
userId?: string;
|
|
355
|
+
assetId?: string;
|
|
356
|
+
}, options?: O): RestResponse<Model.UserAssetLink[]>;
|
|
383
357
|
/**
|
|
384
|
-
* HTTP
|
|
385
|
-
* Java method: org.openremote.model.
|
|
358
|
+
* HTTP POST /asset/user/link/delete
|
|
359
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLinks
|
|
386
360
|
*/
|
|
387
|
-
|
|
361
|
+
deleteUserAssetLinks(userAssets: Model.UserAssetLink[], options?: O): RestResponse<void>;
|
|
388
362
|
/**
|
|
389
|
-
* HTTP
|
|
390
|
-
* Java method: org.openremote.model.
|
|
363
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}
|
|
364
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteAllUserAssetLinks
|
|
391
365
|
*/
|
|
392
|
-
|
|
393
|
-
}
|
|
394
|
-
export declare class FlowResourceClient<O> {
|
|
395
|
-
protected httpClient: HttpClient<O>;
|
|
396
|
-
constructor(httpClient: HttpClient<O>);
|
|
366
|
+
deleteAllUserAssetLinks(realm: string, userId: string, options?: O): RestResponse<void>;
|
|
397
367
|
/**
|
|
398
|
-
* HTTP
|
|
399
|
-
* Java method: org.openremote.model.
|
|
368
|
+
* HTTP DELETE /asset/user/link/{realm}/{userId}/{assetId}
|
|
369
|
+
* Java method: org.openremote.model.asset.AssetResource.deleteUserAssetLink
|
|
400
370
|
*/
|
|
401
|
-
|
|
371
|
+
deleteUserAssetLink(realm: string, userId: string, assetId: string, options?: O): RestResponse<void>;
|
|
402
372
|
/**
|
|
403
|
-
* HTTP GET /
|
|
404
|
-
* Java method: org.openremote.model.
|
|
373
|
+
* HTTP GET /asset/{assetId}
|
|
374
|
+
* Java method: org.openremote.model.asset.AssetResource.get
|
|
405
375
|
*/
|
|
406
|
-
|
|
376
|
+
get(assetId: string, options?: O): RestResponse<Model.Asset>;
|
|
407
377
|
/**
|
|
408
|
-
* HTTP
|
|
409
|
-
* Java method: org.openremote.model.
|
|
378
|
+
* HTTP PUT /asset/{assetId}
|
|
379
|
+
* Java method: org.openremote.model.asset.AssetResource.update
|
|
410
380
|
*/
|
|
411
|
-
|
|
412
|
-
}
|
|
413
|
-
export declare class AgentResourceClient<O> {
|
|
414
|
-
protected httpClient: HttpClient<O>;
|
|
415
|
-
constructor(httpClient: HttpClient<O>);
|
|
381
|
+
update(assetId: string, asset: Model.Asset, options?: O): RestResponse<Model.Asset>;
|
|
416
382
|
/**
|
|
417
|
-
* HTTP
|
|
418
|
-
* Java method: org.openremote.model.asset.
|
|
383
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}
|
|
384
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
419
385
|
*/
|
|
420
|
-
|
|
421
|
-
realm?: string;
|
|
422
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
386
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName(assetId: string, attributeName: string, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
423
387
|
/**
|
|
424
|
-
* HTTP
|
|
425
|
-
* Java method: org.openremote.model.asset.
|
|
388
|
+
* HTTP PUT /asset/{assetId}/attribute/{attributeName}/{timestamp}
|
|
389
|
+
* Java method: org.openremote.model.asset.AssetResource.writeAttributeValue
|
|
426
390
|
*/
|
|
427
|
-
|
|
428
|
-
realm?: string;
|
|
429
|
-
}, options?: O): RestResponse<Model.AssetTreeNode[]>;
|
|
391
|
+
writeAttributeValue$PUT$asset_assetId_attribute_attributeName_timestamp(assetId: string, attributeName: string, timestamp: number, value: any, options?: O): RestResponse<Model.AttributeWriteResult>;
|
|
430
392
|
/**
|
|
431
|
-
* HTTP
|
|
432
|
-
* Java method: org.openremote.model.asset.
|
|
393
|
+
* HTTP PUT /asset/{parentAssetId}/child
|
|
394
|
+
* Java method: org.openremote.model.asset.AssetResource.updateParent
|
|
433
395
|
*/
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
}, options?: O): RestResponse<Model.Agent[]>;
|
|
396
|
+
updateParent(parentAssetId: string, queryParams?: {
|
|
397
|
+
assetIds?: string[];
|
|
398
|
+
}, options?: O): RestResponse<void>;
|
|
438
399
|
}
|
|
439
|
-
export declare class
|
|
400
|
+
export declare class AppResourceClient<O> {
|
|
440
401
|
protected httpClient: HttpClient<O>;
|
|
441
402
|
constructor(httpClient: HttpClient<O>);
|
|
442
403
|
/**
|
|
443
|
-
*
|
|
444
|
-
*
|
|
445
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.getServices
|
|
404
|
+
* HTTP GET /apps
|
|
405
|
+
* Java method: org.openremote.model.apps.AppResource.getApps
|
|
446
406
|
*/
|
|
447
|
-
|
|
448
|
-
realm?: string;
|
|
449
|
-
}, options?: O): RestResponse<Model.ExternalService[]>;
|
|
407
|
+
getApps(options?: O): RestResponse<string[]>;
|
|
450
408
|
/**
|
|
451
|
-
*
|
|
452
|
-
*
|
|
453
|
-
* Response code 409 - ExternalService instance already registered
|
|
454
|
-
* HTTP POST /service
|
|
455
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.registerService
|
|
409
|
+
* HTTP GET /apps/consoleConfig
|
|
410
|
+
* Java method: org.openremote.model.apps.AppResource.getConsoleConfig
|
|
456
411
|
*/
|
|
457
|
-
|
|
412
|
+
getConsoleConfig(options?: O): RestResponse<any>;
|
|
458
413
|
/**
|
|
459
|
-
*
|
|
460
|
-
*
|
|
461
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.getGlobalServices
|
|
414
|
+
* HTTP GET /apps/info
|
|
415
|
+
* Java method: org.openremote.model.apps.AppResource.getAppInfos
|
|
462
416
|
*/
|
|
463
|
-
|
|
417
|
+
getAppInfos(options?: O): RestResponse<{
|
|
418
|
+
[index: string]: any;
|
|
419
|
+
}>;
|
|
420
|
+
}
|
|
421
|
+
export declare class DashboardResourceClient<O> {
|
|
422
|
+
protected httpClient: HttpClient<O>;
|
|
423
|
+
constructor(httpClient: HttpClient<O>);
|
|
464
424
|
/**
|
|
465
|
-
*
|
|
466
|
-
*
|
|
467
|
-
* Response code 409 - ExternalService instance already registered
|
|
468
|
-
* HTTP POST /service/global
|
|
469
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.registerGlobalService
|
|
425
|
+
* HTTP POST /dashboard
|
|
426
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.create
|
|
470
427
|
*/
|
|
471
|
-
|
|
428
|
+
create(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
472
429
|
/**
|
|
473
|
-
*
|
|
474
|
-
*
|
|
475
|
-
* HTTP DELETE /service/{serviceId}/{instanceId}
|
|
476
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.deregisterService
|
|
430
|
+
* HTTP PUT /dashboard
|
|
431
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.update
|
|
477
432
|
*/
|
|
478
|
-
|
|
433
|
+
update(dashboard: Model.Dashboard, options?: O): RestResponse<Model.Dashboard>;
|
|
479
434
|
/**
|
|
480
|
-
*
|
|
481
|
-
*
|
|
482
|
-
* HTTP GET /service/{serviceId}/{instanceId}
|
|
483
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.getService
|
|
435
|
+
* HTTP GET /dashboard/all/{realm}
|
|
436
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.getAllRealmDashboards
|
|
484
437
|
*/
|
|
485
|
-
|
|
438
|
+
getAllRealmDashboards(realm: string, options?: O): RestResponse<Model.Dashboard[]>;
|
|
486
439
|
/**
|
|
487
|
-
*
|
|
488
|
-
*
|
|
489
|
-
* HTTP PUT /service/{serviceId}/{instanceId}
|
|
490
|
-
* Java method: org.openremote.model.services.ExternalServiceResource.heartbeat
|
|
440
|
+
* HTTP POST /dashboard/query
|
|
441
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.query
|
|
491
442
|
*/
|
|
492
|
-
|
|
493
|
-
}
|
|
494
|
-
export declare class RulesResourceClient<O> {
|
|
495
|
-
protected httpClient: HttpClient<O>;
|
|
496
|
-
constructor(httpClient: HttpClient<O>);
|
|
443
|
+
query(dashboardQuery: Model.DashboardQuery, options?: O): RestResponse<Model.Dashboard[]>;
|
|
497
444
|
/**
|
|
498
|
-
* HTTP
|
|
499
|
-
* Java method: org.openremote.model.
|
|
445
|
+
* HTTP DELETE /dashboard/{realm}/{dashboardId}
|
|
446
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.delete
|
|
500
447
|
*/
|
|
501
|
-
|
|
448
|
+
delete(realm: string, dashboardId: string, options?: O): RestResponse<void>;
|
|
502
449
|
/**
|
|
503
|
-
* HTTP GET /
|
|
504
|
-
* Java method: org.openremote.model.
|
|
450
|
+
* HTTP GET /dashboard/{realm}/{dashboardId}
|
|
451
|
+
* Java method: org.openremote.model.dashboard.DashboardResource.get
|
|
505
452
|
*/
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
453
|
+
get(realm: string, dashboardId: string, options?: O): RestResponse<Model.Dashboard>;
|
|
454
|
+
}
|
|
455
|
+
export declare class FlowResourceClient<O> {
|
|
456
|
+
protected httpClient: HttpClient<O>;
|
|
457
|
+
constructor(httpClient: HttpClient<O>);
|
|
510
458
|
/**
|
|
511
|
-
* HTTP
|
|
512
|
-
* Java method: org.openremote.model.rules.
|
|
459
|
+
* HTTP GET /flow
|
|
460
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitions
|
|
513
461
|
*/
|
|
514
|
-
|
|
462
|
+
getAllNodeDefinitions(options?: O): RestResponse<Model.Node[]>;
|
|
515
463
|
/**
|
|
516
|
-
* HTTP GET /
|
|
517
|
-
* Java method: org.openremote.model.rules.
|
|
464
|
+
* HTTP GET /flow/{name}
|
|
465
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getNodeDefinition
|
|
518
466
|
*/
|
|
519
|
-
|
|
520
|
-
language?: Model.RulesetLang[];
|
|
521
|
-
fullyPopulate?: boolean;
|
|
522
|
-
}, options?: O): RestResponse<Model.AssetRuleset[]>;
|
|
467
|
+
getNodeDefinition(name: string, options?: O): RestResponse<Model.Node>;
|
|
523
468
|
/**
|
|
524
|
-
* HTTP
|
|
525
|
-
* Java method: org.openremote.model.rules.
|
|
469
|
+
* HTTP GET /flow/{type}
|
|
470
|
+
* Java method: org.openremote.model.rules.flow.FlowResource.getAllNodeDefinitionsByType
|
|
526
471
|
*/
|
|
527
|
-
|
|
472
|
+
getAllNodeDefinitionsByType(type: Model.NodeType, options?: O): RestResponse<Model.Node[]>;
|
|
473
|
+
}
|
|
474
|
+
export declare class AlarmResourceClient<O> {
|
|
475
|
+
protected httpClient: HttpClient<O>;
|
|
476
|
+
constructor(httpClient: HttpClient<O>);
|
|
528
477
|
/**
|
|
529
|
-
* HTTP
|
|
530
|
-
* Java method: org.openremote.model.
|
|
478
|
+
* HTTP POST /alarm
|
|
479
|
+
* Java method: org.openremote.model.alarm.AlarmResource.createAlarm
|
|
531
480
|
*/
|
|
532
|
-
|
|
481
|
+
createAlarm(alarm: Model.Alarm, queryParams?: {
|
|
482
|
+
assetIds?: string[];
|
|
483
|
+
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
533
484
|
/**
|
|
534
|
-
* HTTP
|
|
535
|
-
* Java method: org.openremote.model.
|
|
485
|
+
* HTTP GET /alarm
|
|
486
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarms
|
|
536
487
|
*/
|
|
537
|
-
|
|
488
|
+
getAlarms(queryParams?: {
|
|
489
|
+
realm?: string;
|
|
490
|
+
status?: Model.AlarmStatus;
|
|
491
|
+
assetId?: string;
|
|
492
|
+
assigneeId?: string;
|
|
493
|
+
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
538
494
|
/**
|
|
539
|
-
* HTTP
|
|
540
|
-
* Java method: org.openremote.model.
|
|
495
|
+
* HTTP DELETE /alarm
|
|
496
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
|
|
541
497
|
*/
|
|
542
|
-
|
|
498
|
+
removeAlarms(ids: number[], options?: O): RestResponse<void>;
|
|
543
499
|
/**
|
|
544
|
-
*
|
|
545
|
-
|
|
500
|
+
* Adds links between assets and one existing alarm.
|
|
501
|
+
|
|
502
|
+
The request body is a list for backward compatibility, but this operation now has single-alarm semantics:
|
|
503
|
+
every item must contain the same `id.realm` and the same `id.alarmId`. The alarm must exist in that realm,
|
|
504
|
+
every asset must exist in the same realm, and the authenticated user must have access to that realm.
|
|
505
|
+
|
|
506
|
+
Existing links are left unchanged; duplicate links in the request or links that already exist are ignored.
|
|
507
|
+
This operation does not remove existing links from the alarm.
|
|
508
|
+
|
|
509
|
+
* Response code 204 - Asset links were added, or already existed
|
|
510
|
+
* Response code 400 - Invalid request body, multiple alarm IDs or realms were provided, or the alarm/assets are not all in the same realm
|
|
511
|
+
* Response code 401 - Authentication is required
|
|
512
|
+
* Response code 403 - The authenticated user is not allowed to write alarms in the requested realm
|
|
513
|
+
* Response code 404 - The alarm or one or more assets do not exist
|
|
514
|
+
* HTTP PUT /alarm/assets
|
|
515
|
+
* Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
|
|
546
516
|
*/
|
|
547
|
-
|
|
517
|
+
setAssetLinks(links: Model.AlarmAssetLink[], options?: O): RestResponse<void>;
|
|
548
518
|
/**
|
|
549
|
-
* HTTP GET /
|
|
550
|
-
* Java method: org.openremote.model.
|
|
519
|
+
* HTTP GET /alarm/{alarmId}
|
|
520
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAlarm
|
|
551
521
|
*/
|
|
552
|
-
|
|
522
|
+
getAlarm(alarmId: number, options?: O): RestResponse<Model.SentAlarm>;
|
|
553
523
|
/**
|
|
554
|
-
* HTTP
|
|
555
|
-
* Java method: org.openremote.model.
|
|
524
|
+
* HTTP DELETE /alarm/{alarmId}
|
|
525
|
+
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarm
|
|
556
526
|
*/
|
|
557
|
-
|
|
527
|
+
removeAlarm(alarmId: number, options?: O): RestResponse<void>;
|
|
558
528
|
/**
|
|
559
|
-
* HTTP
|
|
560
|
-
* Java method: org.openremote.model.
|
|
529
|
+
* HTTP PUT /alarm/{alarmId}
|
|
530
|
+
* Java method: org.openremote.model.alarm.AlarmResource.updateAlarm
|
|
561
531
|
*/
|
|
562
|
-
|
|
532
|
+
updateAlarm(alarmId: number, alarm: Model.SentAlarm, options?: O): RestResponse<void>;
|
|
563
533
|
/**
|
|
564
|
-
* HTTP GET /
|
|
565
|
-
* Java method: org.openremote.model.
|
|
534
|
+
* HTTP GET /alarm/{alarmId}/assets
|
|
535
|
+
* Java method: org.openremote.model.alarm.AlarmResource.getAssetLinks
|
|
566
536
|
*/
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
537
|
+
getAssetLinks(alarmId: number, queryParams?: {
|
|
538
|
+
realm?: string;
|
|
539
|
+
}, options?: O): RestResponse<Model.AlarmAssetLink[]>;
|
|
540
|
+
}
|
|
541
|
+
export declare class RealmResourceClient<O> {
|
|
542
|
+
protected httpClient: HttpClient<O>;
|
|
543
|
+
constructor(httpClient: HttpClient<O>);
|
|
571
544
|
/**
|
|
572
|
-
* HTTP
|
|
573
|
-
* Java method: org.openremote.model.
|
|
545
|
+
* HTTP POST /realm
|
|
546
|
+
* Java method: org.openremote.model.security.RealmResource.create
|
|
574
547
|
*/
|
|
575
|
-
|
|
548
|
+
create(realm: Model.Realm, options?: O): RestResponse<void>;
|
|
576
549
|
/**
|
|
577
|
-
* HTTP GET /
|
|
578
|
-
* Java method: org.openremote.model.
|
|
550
|
+
* HTTP GET /realm
|
|
551
|
+
* Java method: org.openremote.model.security.RealmResource.getAll
|
|
579
552
|
*/
|
|
580
|
-
|
|
553
|
+
getAll(options?: O): RestResponse<Model.Realm[]>;
|
|
581
554
|
/**
|
|
582
|
-
* HTTP
|
|
583
|
-
* Java method: org.openremote.model.
|
|
555
|
+
* HTTP GET /realm/accessible
|
|
556
|
+
* Java method: org.openremote.model.security.RealmResource.getAccessible
|
|
584
557
|
*/
|
|
585
|
-
|
|
558
|
+
getAccessible(options?: O): RestResponse<Model.Realm[]>;
|
|
586
559
|
/**
|
|
587
|
-
* HTTP DELETE /
|
|
588
|
-
* Java method: org.openremote.model.
|
|
560
|
+
* HTTP DELETE /realm/{name}
|
|
561
|
+
* Java method: org.openremote.model.security.RealmResource.delete
|
|
589
562
|
*/
|
|
590
|
-
|
|
563
|
+
delete(name: string, options?: O): RestResponse<void>;
|
|
591
564
|
/**
|
|
592
|
-
* HTTP GET /
|
|
593
|
-
* Java method: org.openremote.model.
|
|
565
|
+
* HTTP GET /realm/{name}
|
|
566
|
+
* Java method: org.openremote.model.security.RealmResource.get
|
|
594
567
|
*/
|
|
595
|
-
|
|
568
|
+
get(name: string, options?: O): RestResponse<Model.Realm>;
|
|
596
569
|
/**
|
|
597
|
-
* HTTP PUT /
|
|
598
|
-
* Java method: org.openremote.model.
|
|
570
|
+
* HTTP PUT /realm/{name}
|
|
571
|
+
* Java method: org.openremote.model.security.RealmResource.update
|
|
599
572
|
*/
|
|
600
|
-
|
|
573
|
+
update(name: string, realm: Model.Realm, options?: O): RestResponse<void>;
|
|
601
574
|
}
|
|
602
575
|
export declare class GatewayServiceResourceClient<O> {
|
|
603
576
|
protected httpClient: HttpClient<O>;
|
|
@@ -628,31 +601,57 @@ export declare class GatewayServiceResourceClient<O> {
|
|
|
628
601
|
*/
|
|
629
602
|
getActiveTunnelInfo(realm: string, id: string, target: string, targetPort: number, options?: O): RestResponse<Model.GatewayTunnelInfo>;
|
|
630
603
|
}
|
|
631
|
-
export declare class
|
|
604
|
+
export declare class AssetModelResourceClient<O> {
|
|
632
605
|
protected httpClient: HttpClient<O>;
|
|
633
606
|
constructor(httpClient: HttpClient<O>);
|
|
634
607
|
/**
|
|
635
|
-
* HTTP GET /
|
|
636
|
-
* Java method: org.openremote.model.
|
|
608
|
+
* HTTP GET /model/assetDescriptors
|
|
609
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetDescriptors
|
|
637
610
|
*/
|
|
638
|
-
|
|
611
|
+
getAssetDescriptors(queryParams?: {
|
|
612
|
+
parentId?: string;
|
|
613
|
+
parentType?: string;
|
|
614
|
+
}, options?: O): RestResponse<Model.AssetDescriptor[]>;
|
|
639
615
|
/**
|
|
640
|
-
* HTTP
|
|
641
|
-
* Java method: org.openremote.model.
|
|
616
|
+
* HTTP GET /model/assetInfo/{assetType}
|
|
617
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfo
|
|
642
618
|
*/
|
|
643
|
-
|
|
619
|
+
getAssetInfo(assetType: string, queryParams?: {
|
|
620
|
+
parentId?: string;
|
|
621
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo>;
|
|
644
622
|
/**
|
|
645
|
-
* HTTP
|
|
646
|
-
* Java method: org.openremote.model.
|
|
623
|
+
* HTTP GET /model/assetInfos
|
|
624
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getAssetInfos
|
|
647
625
|
*/
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
626
|
+
getAssetInfos(queryParams?: {
|
|
627
|
+
parentId?: string;
|
|
628
|
+
parentType?: string;
|
|
629
|
+
}, options?: O): RestResponse<Model.AssetTypeInfo[]>;
|
|
651
630
|
/**
|
|
652
|
-
* HTTP GET /
|
|
653
|
-
* Java method: org.openremote.model.
|
|
631
|
+
* HTTP GET /model/getValueDescriptorSchema
|
|
632
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptorSchema
|
|
654
633
|
*/
|
|
655
|
-
|
|
634
|
+
getValueDescriptorSchema(queryParams?: {
|
|
635
|
+
name?: string;
|
|
636
|
+
}, options?: O): RestResponse<any>;
|
|
637
|
+
/**
|
|
638
|
+
* HTTP GET /model/metaItemDescriptors
|
|
639
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getMetaItemDescriptors
|
|
640
|
+
*/
|
|
641
|
+
getMetaItemDescriptors(queryParams?: {
|
|
642
|
+
parentId?: string;
|
|
643
|
+
}, options?: O): RestResponse<{
|
|
644
|
+
[index: string]: Model.MetaItemDescriptor;
|
|
645
|
+
}>;
|
|
646
|
+
/**
|
|
647
|
+
* HTTP GET /model/valueDescriptors
|
|
648
|
+
* Java method: org.openremote.model.asset.AssetModelResource.getValueDescriptors
|
|
649
|
+
*/
|
|
650
|
+
getValueDescriptors(queryParams?: {
|
|
651
|
+
parentId?: string;
|
|
652
|
+
}, options?: O): RestResponse<{
|
|
653
|
+
[index: string]: Model.ValueDescriptor;
|
|
654
|
+
}>;
|
|
656
655
|
}
|
|
657
656
|
export declare class UserResourceClient<O> {
|
|
658
657
|
protected httpClient: HttpClient<O>;
|
|
@@ -778,159 +777,64 @@ export declare class UserResourceClient<O> {
|
|
|
778
777
|
*/
|
|
779
778
|
get(realm: string, userId: string, options?: O): RestResponse<Model.User>;
|
|
780
779
|
}
|
|
781
|
-
export declare class
|
|
782
|
-
protected httpClient: HttpClient<O>;
|
|
783
|
-
constructor(httpClient: HttpClient<O>);
|
|
784
|
-
/**
|
|
785
|
-
* HTTP POST /provisioning
|
|
786
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.createProvisioningConfig
|
|
787
|
-
*/
|
|
788
|
-
createProvisioningConfig(provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<number>;
|
|
789
|
-
/**
|
|
790
|
-
* HTTP GET /provisioning
|
|
791
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.getProvisioningConfigs
|
|
792
|
-
*/
|
|
793
|
-
getProvisioningConfigs(options?: O): RestResponse<Model.ProvisioningConfigUnion<any, any>[]>;
|
|
794
|
-
/**
|
|
795
|
-
* HTTP DELETE /provisioning/{id}
|
|
796
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.deleteProvisioningConfig
|
|
797
|
-
*/
|
|
798
|
-
deleteProvisioningConfig(id: number, options?: O): RestResponse<void>;
|
|
799
|
-
/**
|
|
800
|
-
* HTTP PUT /provisioning/{id}
|
|
801
|
-
* Java method: org.openremote.model.provisioning.ProvisioningResource.updateProvisioningConfig
|
|
802
|
-
*/
|
|
803
|
-
updateProvisioningConfig(id: number, provisioningConfig: Model.ProvisioningConfigUnion<any, any>, options?: O): RestResponse<void>;
|
|
804
|
-
}
|
|
805
|
-
export declare class GatewayClientResourceClient<O> {
|
|
806
|
-
protected httpClient: HttpClient<O>;
|
|
807
|
-
constructor(httpClient: HttpClient<O>);
|
|
808
|
-
/**
|
|
809
|
-
* HTTP DELETE /gateway/connection
|
|
810
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnections
|
|
811
|
-
*/
|
|
812
|
-
deleteConnections(queryParams?: {
|
|
813
|
-
realm?: string[];
|
|
814
|
-
}, options?: O): RestResponse<void>;
|
|
815
|
-
/**
|
|
816
|
-
* HTTP GET /gateway/connection
|
|
817
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnections
|
|
818
|
-
*/
|
|
819
|
-
getConnections(options?: O): RestResponse<Model.GatewayConnection[]>;
|
|
820
|
-
/**
|
|
821
|
-
* HTTP DELETE /gateway/connection/{realm}
|
|
822
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.deleteConnection
|
|
823
|
-
*/
|
|
824
|
-
deleteConnection(realm: string, options?: O): RestResponse<void>;
|
|
825
|
-
/**
|
|
826
|
-
* HTTP GET /gateway/connection/{realm}
|
|
827
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnection
|
|
828
|
-
*/
|
|
829
|
-
getConnection(realm: string, options?: O): RestResponse<Model.GatewayConnection>;
|
|
830
|
-
/**
|
|
831
|
-
* HTTP PUT /gateway/connection/{realm}
|
|
832
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.setConnection
|
|
833
|
-
*/
|
|
834
|
-
setConnection(realm: string, connection: Model.GatewayConnection, options?: O): RestResponse<void>;
|
|
835
|
-
/**
|
|
836
|
-
* HTTP GET /gateway/status/{realm}
|
|
837
|
-
* Java method: org.openremote.model.gateway.GatewayClientResource.getConnectionStatus
|
|
838
|
-
*/
|
|
839
|
-
getConnectionStatus(realm: string, options?: O): RestResponse<Model.ConnectionStatus>;
|
|
840
|
-
}
|
|
841
|
-
export declare class AssetDatapointResourceClient<O> {
|
|
780
|
+
export declare class ConsoleResourceClient<O> {
|
|
842
781
|
protected httpClient: HttpClient<O>;
|
|
843
782
|
constructor(httpClient: HttpClient<O>);
|
|
844
783
|
/**
|
|
845
|
-
* HTTP
|
|
846
|
-
* Java method: org.openremote.model.
|
|
847
|
-
*/
|
|
848
|
-
getDatapointExport(queryParams?: {
|
|
849
|
-
attributeRefs?: string;
|
|
850
|
-
fromTimestamp?: number;
|
|
851
|
-
toTimestamp?: number;
|
|
852
|
-
format?: Model.DatapointExportFormat;
|
|
853
|
-
}, options?: O): RestResponse<any>;
|
|
854
|
-
/**
|
|
855
|
-
* HTTP GET /asset/datapoint/periods
|
|
856
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
857
|
-
*/
|
|
858
|
-
getDatapointPeriod(queryParams?: {
|
|
859
|
-
assetId?: string;
|
|
860
|
-
attributeName?: string;
|
|
861
|
-
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
862
|
-
/**
|
|
863
|
-
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
864
|
-
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
784
|
+
* HTTP POST /console/register
|
|
785
|
+
* Java method: org.openremote.model.console.ConsoleResource.register
|
|
865
786
|
*/
|
|
866
|
-
|
|
787
|
+
register(consoleRegistration: Model.ConsoleRegistration, options?: O): RestResponse<Model.ConsoleRegistration>;
|
|
867
788
|
}
|
|
868
|
-
export declare class
|
|
869
|
-
protected httpClient: HttpClient<O>;
|
|
870
|
-
constructor(httpClient: HttpClient<O>);
|
|
871
|
-
/**
|
|
872
|
-
* HTTP
|
|
873
|
-
* Java method: org.openremote.model.
|
|
874
|
-
*/
|
|
875
|
-
createAlarm(alarm: Model.Alarm, queryParams?: {
|
|
876
|
-
assetIds?: string[];
|
|
877
|
-
}, options?: O): RestResponse<Model.SentAlarm>;
|
|
878
|
-
/**
|
|
879
|
-
* HTTP GET /alarm
|
|
880
|
-
* Java method: org.openremote.model.alarm.AlarmResource.getAlarms
|
|
881
|
-
*/
|
|
882
|
-
getAlarms(queryParams?: {
|
|
883
|
-
realm?: string;
|
|
884
|
-
status?: Model.AlarmStatus;
|
|
885
|
-
assetId?: string;
|
|
886
|
-
assigneeId?: string;
|
|
887
|
-
}, options?: O): RestResponse<Model.SentAlarm[]>;
|
|
888
|
-
/**
|
|
889
|
-
* HTTP DELETE /alarm
|
|
890
|
-
* Java method: org.openremote.model.alarm.AlarmResource.removeAlarms
|
|
891
|
-
*/
|
|
892
|
-
removeAlarms(ids: number[], options?: O): RestResponse<void>;
|
|
893
|
-
/**
|
|
894
|
-
* Adds links between assets and one existing alarm.
|
|
895
|
-
|
|
896
|
-
The request body is a list for backward compatibility, but this operation now has single-alarm semantics:
|
|
897
|
-
every item must contain the same `id.realm` and the same `id.alarmId`. The alarm must exist in that realm,
|
|
898
|
-
every asset must exist in the same realm, and the authenticated user must have access to that realm.
|
|
899
|
-
|
|
900
|
-
Existing links are left unchanged; duplicate links in the request or links that already exist are ignored.
|
|
901
|
-
This operation does not remove existing links from the alarm.
|
|
902
|
-
|
|
903
|
-
* Response code 204 - Asset links were added, or already existed
|
|
904
|
-
* Response code 400 - Invalid request body, multiple alarm IDs or realms were provided, or the alarm/assets are not all in the same realm
|
|
905
|
-
* Response code 401 - Authentication is required
|
|
906
|
-
* Response code 403 - The authenticated user is not allowed to write alarms in the requested realm
|
|
907
|
-
* Response code 404 - The alarm or one or more assets do not exist
|
|
908
|
-
* HTTP PUT /alarm/assets
|
|
909
|
-
* Java method: org.openremote.model.alarm.AlarmResource.setAssetLinks
|
|
789
|
+
export declare class StatusResourceClient<O> {
|
|
790
|
+
protected httpClient: HttpClient<O>;
|
|
791
|
+
constructor(httpClient: HttpClient<O>);
|
|
792
|
+
/**
|
|
793
|
+
* HTTP GET /health
|
|
794
|
+
* Java method: org.openremote.model.system.StatusResource.getHealthStatus
|
|
910
795
|
*/
|
|
911
|
-
|
|
796
|
+
getHealthStatus(options?: O): RestResponse<{
|
|
797
|
+
[index: string]: any;
|
|
798
|
+
}>;
|
|
912
799
|
/**
|
|
913
|
-
* HTTP GET /
|
|
914
|
-
* Java method: org.openremote.model.
|
|
800
|
+
* HTTP GET /info
|
|
801
|
+
* Java method: org.openremote.model.system.StatusResource.getInfo
|
|
915
802
|
*/
|
|
916
|
-
|
|
803
|
+
getInfo(options?: O): RestResponse<{
|
|
804
|
+
[index: string]: any;
|
|
805
|
+
}>;
|
|
806
|
+
}
|
|
807
|
+
export declare class SyslogResourceClient<O> {
|
|
808
|
+
protected httpClient: HttpClient<O>;
|
|
809
|
+
constructor(httpClient: HttpClient<O>);
|
|
917
810
|
/**
|
|
918
|
-
* HTTP
|
|
919
|
-
* Java method: org.openremote.model.
|
|
811
|
+
* HTTP GET /syslog/config
|
|
812
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getConfig
|
|
920
813
|
*/
|
|
921
|
-
|
|
814
|
+
getConfig(options?: O): RestResponse<Model.SyslogConfig>;
|
|
922
815
|
/**
|
|
923
|
-
* HTTP PUT /
|
|
924
|
-
* Java method: org.openremote.model.
|
|
816
|
+
* HTTP PUT /syslog/config
|
|
817
|
+
* Java method: org.openremote.model.syslog.SyslogResource.updateConfig
|
|
925
818
|
*/
|
|
926
|
-
|
|
819
|
+
updateConfig(config: Model.SyslogConfig, options?: O): RestResponse<void>;
|
|
927
820
|
/**
|
|
928
|
-
* HTTP
|
|
929
|
-
* Java method: org.openremote.model.
|
|
821
|
+
* HTTP DELETE /syslog/event
|
|
822
|
+
* Java method: org.openremote.model.syslog.SyslogResource.clearEvents
|
|
930
823
|
*/
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
824
|
+
clearEvents(options?: O): RestResponse<void>;
|
|
825
|
+
/**
|
|
826
|
+
* HTTP GET /syslog/event
|
|
827
|
+
* Java method: org.openremote.model.syslog.SyslogResource.getEvents
|
|
828
|
+
*/
|
|
829
|
+
getEvents(queryParams?: {
|
|
830
|
+
level?: Model.SyslogLevel;
|
|
831
|
+
per_page?: number;
|
|
832
|
+
page?: number;
|
|
833
|
+
from?: number;
|
|
834
|
+
to?: number;
|
|
835
|
+
category?: Model.SyslogCategory[];
|
|
836
|
+
subCategory?: string[];
|
|
837
|
+
}, options?: O): RestResponse<any>;
|
|
934
838
|
}
|
|
935
839
|
export declare class MapResourceClient<O> {
|
|
936
840
|
protected httpClient: HttpClient<O>;
|
|
@@ -978,53 +882,149 @@ export declare class MapResourceClient<O> {
|
|
|
978
882
|
[id: string]: unknown;
|
|
979
883
|
}>;
|
|
980
884
|
}
|
|
885
|
+
export declare class ExternalServiceResourceClient<O> {
|
|
886
|
+
protected httpClient: HttpClient<O>;
|
|
887
|
+
constructor(httpClient: HttpClient<O>);
|
|
888
|
+
/**
|
|
889
|
+
* Response code 200 - List of registered external services
|
|
890
|
+
* HTTP GET /service
|
|
891
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.getServices
|
|
892
|
+
*/
|
|
893
|
+
getServices(queryParams?: {
|
|
894
|
+
realm?: string;
|
|
895
|
+
}, options?: O): RestResponse<Model.ExternalService[]>;
|
|
896
|
+
/**
|
|
897
|
+
* Response code 200 - Service registered successfully
|
|
898
|
+
* Response code 400 - Invalid external service object
|
|
899
|
+
* Response code 409 - ExternalService instance already registered
|
|
900
|
+
* HTTP POST /service
|
|
901
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.registerService
|
|
902
|
+
*/
|
|
903
|
+
registerService(service: Model.ExternalService, options?: O): RestResponse<Model.ExternalService>;
|
|
904
|
+
/**
|
|
905
|
+
* Response code 200 - List of registered external services
|
|
906
|
+
* HTTP GET /service/global
|
|
907
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.getGlobalServices
|
|
908
|
+
*/
|
|
909
|
+
getGlobalServices(options?: O): RestResponse<Model.ExternalService[]>;
|
|
910
|
+
/**
|
|
911
|
+
* Response code 200 - Service registered successfully
|
|
912
|
+
* Response code 400 - Invalid external service object
|
|
913
|
+
* Response code 409 - ExternalService instance already registered
|
|
914
|
+
* HTTP POST /service/global
|
|
915
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.registerGlobalService
|
|
916
|
+
*/
|
|
917
|
+
registerGlobalService(service: Model.ExternalService, options?: O): RestResponse<Model.ExternalService>;
|
|
918
|
+
/**
|
|
919
|
+
* Response code 204 - Service deregistered successfully
|
|
920
|
+
* Response code 404 - Service instance not found
|
|
921
|
+
* HTTP DELETE /service/{serviceId}/{instanceId}
|
|
922
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.deregisterService
|
|
923
|
+
*/
|
|
924
|
+
deregisterService(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
|
|
925
|
+
/**
|
|
926
|
+
* Response code 200 - ExternalService retrieved successfully
|
|
927
|
+
* Response code 404 - ExternalService not found
|
|
928
|
+
* HTTP GET /service/{serviceId}/{instanceId}
|
|
929
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.getService
|
|
930
|
+
*/
|
|
931
|
+
getService(serviceId: string, instanceId: number, options?: O): RestResponse<Model.ExternalService>;
|
|
932
|
+
/**
|
|
933
|
+
* Response code 204 - Heartbeat sent successfully
|
|
934
|
+
* Response code 404 - Service instance not found
|
|
935
|
+
* HTTP PUT /service/{serviceId}/{instanceId}
|
|
936
|
+
* Java method: org.openremote.model.services.ExternalServiceResource.heartbeat
|
|
937
|
+
*/
|
|
938
|
+
heartbeat(serviceId: string, instanceId: number, options?: O): RestResponse<void>;
|
|
939
|
+
}
|
|
940
|
+
export declare class AssetDatapointResourceClient<O> {
|
|
941
|
+
protected httpClient: HttpClient<O>;
|
|
942
|
+
constructor(httpClient: HttpClient<O>);
|
|
943
|
+
/**
|
|
944
|
+
* HTTP GET /asset/datapoint/export
|
|
945
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointExport
|
|
946
|
+
*/
|
|
947
|
+
getDatapointExport(queryParams?: {
|
|
948
|
+
attributeRefs?: string;
|
|
949
|
+
fromTimestamp?: number;
|
|
950
|
+
toTimestamp?: number;
|
|
951
|
+
format?: Model.DatapointExportFormat;
|
|
952
|
+
}, options?: O): RestResponse<any>;
|
|
953
|
+
/**
|
|
954
|
+
* HTTP GET /asset/datapoint/periods
|
|
955
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapointPeriod
|
|
956
|
+
*/
|
|
957
|
+
getDatapointPeriod(queryParams?: {
|
|
958
|
+
assetId?: string;
|
|
959
|
+
attributeName?: string;
|
|
960
|
+
}, options?: O): RestResponse<Model.DatapointPeriod>;
|
|
961
|
+
/**
|
|
962
|
+
* HTTP POST /asset/datapoint/{assetId}/{attributeName}
|
|
963
|
+
* Java method: org.openremote.model.datapoint.AssetDatapointResource.getDatapoints
|
|
964
|
+
*/
|
|
965
|
+
getDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
966
|
+
}
|
|
967
|
+
export declare class AssetPredictedDatapointResourceClient<O> {
|
|
968
|
+
protected httpClient: HttpClient<O>;
|
|
969
|
+
constructor(httpClient: HttpClient<O>);
|
|
970
|
+
/**
|
|
971
|
+
* HTTP POST /asset/predicted/{assetId}/{attributeName}
|
|
972
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.getPredictedDatapoints
|
|
973
|
+
*/
|
|
974
|
+
getPredictedDatapoints(assetId: string, attributeName: string, query: Model.AssetDatapointQueryUnion, options?: O): RestResponse<Model.ValueDatapoint<any>[]>;
|
|
975
|
+
/**
|
|
976
|
+
* HTTP PUT /asset/predicted/{assetId}/{attributeName}
|
|
977
|
+
* Java method: org.openremote.model.datapoint.AssetPredictedDatapointResource.writePredictedDatapoints
|
|
978
|
+
*/
|
|
979
|
+
writePredictedDatapoints(assetId: string, attributeName: string, predictedDatapoints: Model.ValueDatapoint<any>[], options?: O): RestResponse<void>;
|
|
980
|
+
}
|
|
981
981
|
export type RestResponse<R> = Promise<Axios.GenericAxiosResponse<R>>;
|
|
982
982
|
export declare class ApiClient {
|
|
983
|
-
protected
|
|
984
|
-
protected
|
|
985
|
-
protected
|
|
983
|
+
protected _rulesResource: AxiosRulesResourceClient;
|
|
984
|
+
protected _agentResource: AxiosAgentResourceClient;
|
|
985
|
+
protected _gatewayClientResource: AxiosGatewayClientResourceClient;
|
|
986
986
|
protected _notificationResource: AxiosNotificationResourceClient;
|
|
987
|
-
protected
|
|
988
|
-
protected
|
|
987
|
+
protected _configurationResource: AxiosConfigurationResourceClient;
|
|
988
|
+
protected _provisioningResource: AxiosProvisioningResourceClient;
|
|
989
|
+
protected _assetResource: AxiosAssetResourceClient;
|
|
989
990
|
protected _appResource: AxiosAppResourceClient;
|
|
990
|
-
protected
|
|
991
|
-
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
992
|
-
protected _realmResource: AxiosRealmResourceClient;
|
|
991
|
+
protected _dashboardResource: AxiosDashboardResourceClient;
|
|
993
992
|
protected _flowResource: AxiosFlowResourceClient;
|
|
994
|
-
protected
|
|
995
|
-
protected
|
|
996
|
-
protected _rulesResource: AxiosRulesResourceClient;
|
|
993
|
+
protected _alarmResource: AxiosAlarmResourceClient;
|
|
994
|
+
protected _realmResource: AxiosRealmResourceClient;
|
|
997
995
|
protected _gatewayServiceResource: AxiosGatewayServiceResourceClient;
|
|
998
|
-
protected
|
|
996
|
+
protected _assetModelResource: AxiosAssetModelResourceClient;
|
|
999
997
|
protected _userResource: AxiosUserResourceClient;
|
|
1000
|
-
protected
|
|
1001
|
-
protected
|
|
1002
|
-
protected
|
|
1003
|
-
protected _alarmResource: AxiosAlarmResourceClient;
|
|
998
|
+
protected _consoleResource: AxiosConsoleResourceClient;
|
|
999
|
+
protected _statusResource: AxiosStatusResourceClient;
|
|
1000
|
+
protected _syslogResource: AxiosSyslogResourceClient;
|
|
1004
1001
|
protected _mapResource: AxiosMapResourceClient;
|
|
1002
|
+
protected _externalServiceResource: AxiosExternalServiceResourceClient;
|
|
1003
|
+
protected _assetDatapointResource: AxiosAssetDatapointResourceClient;
|
|
1004
|
+
protected _assetPredictedDatapointResource: AxiosAssetPredictedDatapointResourceClient;
|
|
1005
1005
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1006
|
-
get
|
|
1007
|
-
get
|
|
1008
|
-
get
|
|
1006
|
+
get RulesResource(): AxiosRulesResourceClient;
|
|
1007
|
+
get AgentResource(): AxiosAgentResourceClient;
|
|
1008
|
+
get GatewayClientResource(): AxiosGatewayClientResourceClient;
|
|
1009
1009
|
get NotificationResource(): AxiosNotificationResourceClient;
|
|
1010
|
-
get
|
|
1011
|
-
get
|
|
1010
|
+
get ConfigurationResource(): AxiosConfigurationResourceClient;
|
|
1011
|
+
get ProvisioningResource(): AxiosProvisioningResourceClient;
|
|
1012
|
+
get AssetResource(): AxiosAssetResourceClient;
|
|
1012
1013
|
get AppResource(): AxiosAppResourceClient;
|
|
1013
|
-
get
|
|
1014
|
-
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
1015
|
-
get RealmResource(): AxiosRealmResourceClient;
|
|
1014
|
+
get DashboardResource(): AxiosDashboardResourceClient;
|
|
1016
1015
|
get FlowResource(): AxiosFlowResourceClient;
|
|
1017
|
-
get
|
|
1018
|
-
get
|
|
1019
|
-
get RulesResource(): AxiosRulesResourceClient;
|
|
1016
|
+
get AlarmResource(): AxiosAlarmResourceClient;
|
|
1017
|
+
get RealmResource(): AxiosRealmResourceClient;
|
|
1020
1018
|
get GatewayServiceResource(): AxiosGatewayServiceResourceClient;
|
|
1021
|
-
get
|
|
1019
|
+
get AssetModelResource(): AxiosAssetModelResourceClient;
|
|
1022
1020
|
get UserResource(): AxiosUserResourceClient;
|
|
1023
|
-
get
|
|
1024
|
-
get
|
|
1025
|
-
get
|
|
1026
|
-
get AlarmResource(): AxiosAlarmResourceClient;
|
|
1021
|
+
get ConsoleResource(): AxiosConsoleResourceClient;
|
|
1022
|
+
get StatusResource(): AxiosStatusResourceClient;
|
|
1023
|
+
get SyslogResource(): AxiosSyslogResourceClient;
|
|
1027
1024
|
get MapResource(): AxiosMapResourceClient;
|
|
1025
|
+
get ExternalServiceResource(): AxiosExternalServiceResourceClient;
|
|
1026
|
+
get AssetDatapointResource(): AxiosAssetDatapointResourceClient;
|
|
1027
|
+
get AssetPredictedDatapointResource(): AxiosAssetPredictedDatapointResourceClient;
|
|
1028
1028
|
}
|
|
1029
1029
|
import * as Axios from "axios";
|
|
1030
1030
|
declare module "axios" {
|
|
@@ -1032,70 +1032,70 @@ declare module "axios" {
|
|
|
1032
1032
|
data: R;
|
|
1033
1033
|
}
|
|
1034
1034
|
}
|
|
1035
|
-
export declare class
|
|
1035
|
+
export declare class AxiosRulesResourceClient extends RulesResourceClient<Axios.AxiosRequestConfig> {
|
|
1036
1036
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1037
1037
|
}
|
|
1038
|
-
export declare class
|
|
1038
|
+
export declare class AxiosAgentResourceClient extends AgentResourceClient<Axios.AxiosRequestConfig> {
|
|
1039
1039
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1040
1040
|
}
|
|
1041
|
-
export declare class
|
|
1041
|
+
export declare class AxiosGatewayClientResourceClient extends GatewayClientResourceClient<Axios.AxiosRequestConfig> {
|
|
1042
1042
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1043
1043
|
}
|
|
1044
1044
|
export declare class AxiosNotificationResourceClient extends NotificationResourceClient<Axios.AxiosRequestConfig> {
|
|
1045
1045
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1046
1046
|
}
|
|
1047
|
-
export declare class
|
|
1047
|
+
export declare class AxiosConfigurationResourceClient extends ConfigurationResourceClient<Axios.AxiosRequestConfig> {
|
|
1048
1048
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1049
1049
|
}
|
|
1050
|
-
export declare class
|
|
1050
|
+
export declare class AxiosProvisioningResourceClient extends ProvisioningResourceClient<Axios.AxiosRequestConfig> {
|
|
1051
1051
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1052
1052
|
}
|
|
1053
|
-
export declare class
|
|
1053
|
+
export declare class AxiosAssetResourceClient extends AssetResourceClient<Axios.AxiosRequestConfig> {
|
|
1054
1054
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1055
1055
|
}
|
|
1056
|
-
export declare class
|
|
1056
|
+
export declare class AxiosAppResourceClient extends AppResourceClient<Axios.AxiosRequestConfig> {
|
|
1057
1057
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1058
1058
|
}
|
|
1059
|
-
export declare class
|
|
1059
|
+
export declare class AxiosDashboardResourceClient extends DashboardResourceClient<Axios.AxiosRequestConfig> {
|
|
1060
1060
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1061
1061
|
}
|
|
1062
|
-
export declare class
|
|
1062
|
+
export declare class AxiosFlowResourceClient extends FlowResourceClient<Axios.AxiosRequestConfig> {
|
|
1063
1063
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1064
1064
|
}
|
|
1065
|
-
export declare class
|
|
1065
|
+
export declare class AxiosAlarmResourceClient extends AlarmResourceClient<Axios.AxiosRequestConfig> {
|
|
1066
1066
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1067
1067
|
}
|
|
1068
|
-
export declare class
|
|
1068
|
+
export declare class AxiosRealmResourceClient extends RealmResourceClient<Axios.AxiosRequestConfig> {
|
|
1069
1069
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1070
1070
|
}
|
|
1071
|
-
export declare class
|
|
1071
|
+
export declare class AxiosGatewayServiceResourceClient extends GatewayServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
1072
1072
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1073
1073
|
}
|
|
1074
|
-
export declare class
|
|
1074
|
+
export declare class AxiosAssetModelResourceClient extends AssetModelResourceClient<Axios.AxiosRequestConfig> {
|
|
1075
1075
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1076
1076
|
}
|
|
1077
|
-
export declare class
|
|
1077
|
+
export declare class AxiosUserResourceClient extends UserResourceClient<Axios.AxiosRequestConfig> {
|
|
1078
1078
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1079
1079
|
}
|
|
1080
|
-
export declare class
|
|
1080
|
+
export declare class AxiosConsoleResourceClient extends ConsoleResourceClient<Axios.AxiosRequestConfig> {
|
|
1081
1081
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1082
1082
|
}
|
|
1083
|
-
export declare class
|
|
1083
|
+
export declare class AxiosStatusResourceClient extends StatusResourceClient<Axios.AxiosRequestConfig> {
|
|
1084
1084
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1085
1085
|
}
|
|
1086
|
-
export declare class
|
|
1086
|
+
export declare class AxiosSyslogResourceClient extends SyslogResourceClient<Axios.AxiosRequestConfig> {
|
|
1087
1087
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1088
1088
|
}
|
|
1089
|
-
export declare class
|
|
1089
|
+
export declare class AxiosMapResourceClient extends MapResourceClient<Axios.AxiosRequestConfig> {
|
|
1090
1090
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1091
1091
|
}
|
|
1092
|
-
export declare class
|
|
1092
|
+
export declare class AxiosExternalServiceResourceClient extends ExternalServiceResourceClient<Axios.AxiosRequestConfig> {
|
|
1093
1093
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1094
1094
|
}
|
|
1095
|
-
export declare class
|
|
1095
|
+
export declare class AxiosAssetDatapointResourceClient extends AssetDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
1096
1096
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1097
1097
|
}
|
|
1098
|
-
export declare class
|
|
1098
|
+
export declare class AxiosAssetPredictedDatapointResourceClient extends AssetPredictedDatapointResourceClient<Axios.AxiosRequestConfig> {
|
|
1099
1099
|
constructor(baseURL: string, axiosInstance?: Axios.AxiosInstance);
|
|
1100
1100
|
}
|
|
1101
1101
|
//# sourceMappingURL=restclient.d.ts.map
|