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