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