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