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