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