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