@openremote/model 1.0.3 → 1.2.0-snapshot.20240512143659
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/lib/index.d.ts +2 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -0
- package/lib/model.d.ts +2484 -0
- package/lib/model.js +1 -0
- package/lib/model.js.map +1 -0
- package/lib/util.d.ts +20 -0
- package/lib/util.js +1 -0
- package/lib/util.js.map +1 -0
- package/package.json +15 -12
- package/dist/.tsbuildinfo +0 -9058
- package/dist/index.d.ts +0 -1644
- package/dist/index.js +0 -560
- package/dist/index.js.map +0 -1
package/dist/index.d.ts
DELETED
|
@@ -1,1644 +0,0 @@
|
|
|
1
|
-
export interface AbstractValueHolder extends ValueHolder {
|
|
2
|
-
value?: any;
|
|
3
|
-
}
|
|
4
|
-
export interface AbstractValueTimestampHolder extends AbstractValueHolder {
|
|
5
|
-
valueTimestamp?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface Constants {
|
|
8
|
-
}
|
|
9
|
-
export interface HasUniqueResourceName {
|
|
10
|
-
}
|
|
11
|
-
export interface IdentifiableEntity {
|
|
12
|
-
}
|
|
13
|
-
export interface ModelModule extends SimpleModule {
|
|
14
|
-
}
|
|
15
|
-
export interface ModelModuleAttributeValueDescriptorSerializer extends JsonSerializer<Position> {
|
|
16
|
-
}
|
|
17
|
-
export interface ModelModuleDescriptorDeserializer<T, U> extends JsonDeserializer<T> {
|
|
18
|
-
descriptorNameFinder?: Function<string, T>;
|
|
19
|
-
implClass?: Class<U>;
|
|
20
|
-
}
|
|
21
|
-
export interface ModelModulePositionDeserializer extends JsonDeserializer<Position> {
|
|
22
|
-
}
|
|
23
|
-
export interface ModelModulePositionSerializer extends JsonSerializer<Position> {
|
|
24
|
-
}
|
|
25
|
-
export interface ModelModuleValueJsonDeserializer<T> extends StdDeserializer<T> {
|
|
26
|
-
}
|
|
27
|
-
export interface ModelModuleValueJsonSerializer extends JsonSerializer<any> {
|
|
28
|
-
}
|
|
29
|
-
export interface ValidationFailure {
|
|
30
|
-
reason?: ValidationFailureReason;
|
|
31
|
-
parameter?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface ValidationFailureReason {
|
|
34
|
-
name?: string;
|
|
35
|
-
}
|
|
36
|
-
export interface ValidationFailureReasonImpl extends ValidationFailureReason {
|
|
37
|
-
}
|
|
38
|
-
export interface ValueHolder {
|
|
39
|
-
}
|
|
40
|
-
export interface ConsoleAppConfig {
|
|
41
|
-
id?: number;
|
|
42
|
-
realm?: string;
|
|
43
|
-
initialUrl?: string;
|
|
44
|
-
url?: string;
|
|
45
|
-
menuEnabled?: boolean;
|
|
46
|
-
menuPosition?: ConsoleAppConfigMenuPosition;
|
|
47
|
-
menuImage?: string;
|
|
48
|
-
primaryColor?: string;
|
|
49
|
-
secondaryColor?: string;
|
|
50
|
-
links?: any[];
|
|
51
|
-
}
|
|
52
|
-
export interface Asset extends IdentifiableEntity {
|
|
53
|
-
id?: string;
|
|
54
|
-
version?: number;
|
|
55
|
-
createdOn?: DateAsNumber;
|
|
56
|
-
name?: string;
|
|
57
|
-
type?: string;
|
|
58
|
-
accessPublicRead?: boolean;
|
|
59
|
-
parentId?: string;
|
|
60
|
-
parentName?: string;
|
|
61
|
-
parentType?: string;
|
|
62
|
-
realm?: string;
|
|
63
|
-
path?: string[];
|
|
64
|
-
attributes?: {
|
|
65
|
-
[id: string]: any;
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
export interface AssetAttribute extends Attribute {
|
|
69
|
-
assetId?: string;
|
|
70
|
-
}
|
|
71
|
-
export interface AssetDescriptor {
|
|
72
|
-
color?: string;
|
|
73
|
-
icon?: string;
|
|
74
|
-
accessPublicRead?: boolean;
|
|
75
|
-
attributeDescriptors?: AttributeDescriptor[];
|
|
76
|
-
name?: string;
|
|
77
|
-
type?: string;
|
|
78
|
-
}
|
|
79
|
-
export interface AssetDescriptorImpl extends AssetDescriptor {
|
|
80
|
-
}
|
|
81
|
-
export interface AssetEvent extends SharedEvent, AssetInfo {
|
|
82
|
-
eventType: "asset";
|
|
83
|
-
cause?: AssetEventCause;
|
|
84
|
-
asset?: Asset;
|
|
85
|
-
updatedProperties?: string[];
|
|
86
|
-
}
|
|
87
|
-
export interface AssetFilter<T> {
|
|
88
|
-
filterType: "asset";
|
|
89
|
-
assetIds?: string[];
|
|
90
|
-
realm?: string;
|
|
91
|
-
parentIds?: string[];
|
|
92
|
-
attributeNames?: string[];
|
|
93
|
-
}
|
|
94
|
-
export interface AssetModelProvider {
|
|
95
|
-
}
|
|
96
|
-
export interface AssetResourceUtil {
|
|
97
|
-
}
|
|
98
|
-
export interface AssetTreeModifiedEvent extends TenantScopedEvent {
|
|
99
|
-
eventType: "asset-tree-modified";
|
|
100
|
-
assetId?: string;
|
|
101
|
-
newAssetChildren?: boolean;
|
|
102
|
-
}
|
|
103
|
-
export interface AssetTreeNode {
|
|
104
|
-
asset?: Asset;
|
|
105
|
-
children?: AssetTreeNode[];
|
|
106
|
-
}
|
|
107
|
-
export interface AssetsEvent extends SharedEvent {
|
|
108
|
-
eventType: "assets";
|
|
109
|
-
assets?: Asset[];
|
|
110
|
-
}
|
|
111
|
-
export interface DefaultAssetModelProvider extends AssetModelProvider {
|
|
112
|
-
}
|
|
113
|
-
export interface DeleteAssetsRequestEvent extends SharedEvent {
|
|
114
|
-
eventType: "delete-assets-request";
|
|
115
|
-
assetIds?: string[];
|
|
116
|
-
}
|
|
117
|
-
export interface DeleteAssetsResponseEvent extends SharedEvent {
|
|
118
|
-
eventType: "delete-assets-response";
|
|
119
|
-
deleted?: boolean;
|
|
120
|
-
assetIds?: string[];
|
|
121
|
-
}
|
|
122
|
-
export interface ReadAssetAttributeEvent extends SharedEvent {
|
|
123
|
-
eventType: "read-asset-attribute";
|
|
124
|
-
attributeRef?: AttributeRef;
|
|
125
|
-
}
|
|
126
|
-
export interface ReadAssetEvent extends SharedEvent {
|
|
127
|
-
eventType: "read-asset";
|
|
128
|
-
assetId?: string;
|
|
129
|
-
}
|
|
130
|
-
export interface ReadAssetsEvent extends SharedEvent {
|
|
131
|
-
eventType: "read-assets";
|
|
132
|
-
assetQuery?: AssetQuery;
|
|
133
|
-
}
|
|
134
|
-
export interface UserAsset {
|
|
135
|
-
id?: UserAssetId;
|
|
136
|
-
createdOn?: DateAsNumber;
|
|
137
|
-
assetName?: string;
|
|
138
|
-
parentAssetName?: string;
|
|
139
|
-
userFullName?: string;
|
|
140
|
-
}
|
|
141
|
-
export interface UserAssetId extends Serializable {
|
|
142
|
-
realm?: string;
|
|
143
|
-
userId?: string;
|
|
144
|
-
assetId?: string;
|
|
145
|
-
}
|
|
146
|
-
export interface Agent {
|
|
147
|
-
asset?: Asset;
|
|
148
|
-
}
|
|
149
|
-
export interface AgentLink {
|
|
150
|
-
}
|
|
151
|
-
export interface AgentStatusEvent extends TenantScopedEvent {
|
|
152
|
-
eventType: "agent-status";
|
|
153
|
-
protocolConfiguration?: AttributeRef;
|
|
154
|
-
connectionStatus?: ConnectionStatus;
|
|
155
|
-
}
|
|
156
|
-
export interface ProtocolConfiguration {
|
|
157
|
-
}
|
|
158
|
-
export interface ProtocolDescriptor {
|
|
159
|
-
name?: string;
|
|
160
|
-
displayName?: string;
|
|
161
|
-
version?: string;
|
|
162
|
-
configurationDiscovery?: boolean;
|
|
163
|
-
configurationImport?: boolean;
|
|
164
|
-
protocolLinkDiscovery?: boolean;
|
|
165
|
-
deviceImport?: boolean;
|
|
166
|
-
configurationTemplate?: AssetAttribute;
|
|
167
|
-
protocolConfigurationMetaItems?: MetaItemDescriptor[];
|
|
168
|
-
linkedAttributeMetaItems?: MetaItemDescriptor[];
|
|
169
|
-
}
|
|
170
|
-
export interface Attribute extends AbstractValueTimestampHolder {
|
|
171
|
-
name?: string;
|
|
172
|
-
type?: AttributeValueDescriptor;
|
|
173
|
-
meta?: MetaItem[];
|
|
174
|
-
}
|
|
175
|
-
export interface AttributeDescriptor {
|
|
176
|
-
attributeName?: string;
|
|
177
|
-
initialValue?: any;
|
|
178
|
-
valueDescriptor?: AttributeValueDescriptor;
|
|
179
|
-
metaItemDescriptors?: MetaItemDescriptor[];
|
|
180
|
-
}
|
|
181
|
-
export interface AttributeDescriptorImpl extends AttributeDescriptor {
|
|
182
|
-
}
|
|
183
|
-
export interface AttributeEvent extends SharedEvent, AssetInfo {
|
|
184
|
-
eventType: "attribute";
|
|
185
|
-
attributeState?: AttributeState;
|
|
186
|
-
realm?: string;
|
|
187
|
-
parentId?: string;
|
|
188
|
-
}
|
|
189
|
-
export interface AttributeLink {
|
|
190
|
-
attributeRef?: AttributeRef;
|
|
191
|
-
converter?: {
|
|
192
|
-
[id: string]: any;
|
|
193
|
-
};
|
|
194
|
-
filters?: ValueFilter<any>[];
|
|
195
|
-
}
|
|
196
|
-
export interface AttributeRef {
|
|
197
|
-
entityId?: string;
|
|
198
|
-
attributeName?: string;
|
|
199
|
-
}
|
|
200
|
-
export interface AttributeState {
|
|
201
|
-
attributeRef?: AttributeRef;
|
|
202
|
-
value?: any;
|
|
203
|
-
deleted?: boolean;
|
|
204
|
-
}
|
|
205
|
-
export interface AttributeValidationResult {
|
|
206
|
-
attributeName?: string;
|
|
207
|
-
attributeFailures?: ValidationFailure[];
|
|
208
|
-
metaFailures?: {
|
|
209
|
-
[index: string]: ValidationFailure[];
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
export interface AttributeValueDescriptor {
|
|
213
|
-
valueType?: ValueType;
|
|
214
|
-
icon?: string;
|
|
215
|
-
metaItemDescriptors?: MetaItemDescriptor[];
|
|
216
|
-
name?: string;
|
|
217
|
-
}
|
|
218
|
-
export interface AttributeValueDescriptorImpl extends AttributeValueDescriptor {
|
|
219
|
-
}
|
|
220
|
-
export interface ColorRGB {
|
|
221
|
-
red?: number;
|
|
222
|
-
green?: number;
|
|
223
|
-
blue?: number;
|
|
224
|
-
}
|
|
225
|
-
export interface LinkedAttributeDescriptor {
|
|
226
|
-
name?: string;
|
|
227
|
-
displayName?: string;
|
|
228
|
-
attributeValueDescriptor?: AttributeValueDescriptor;
|
|
229
|
-
readOnly?: boolean;
|
|
230
|
-
executable?: boolean;
|
|
231
|
-
metaItems?: MetaItem[];
|
|
232
|
-
}
|
|
233
|
-
export interface MetaItem extends AbstractValueHolder {
|
|
234
|
-
name?: string;
|
|
235
|
-
}
|
|
236
|
-
export interface MetaItemDescriptor extends HasUniqueResourceName {
|
|
237
|
-
valueType?: ValueType;
|
|
238
|
-
patternFailureMessage?: string;
|
|
239
|
-
valueFixed?: boolean;
|
|
240
|
-
allowedMin?: any;
|
|
241
|
-
allowedMax?: any;
|
|
242
|
-
secret?: boolean;
|
|
243
|
-
maxPerAttribute?: number;
|
|
244
|
-
allowedValues?: any[];
|
|
245
|
-
urn?: string;
|
|
246
|
-
initialValue?: any;
|
|
247
|
-
pattern?: string;
|
|
248
|
-
access?: MetaItemDescriptorAccess;
|
|
249
|
-
required?: boolean;
|
|
250
|
-
}
|
|
251
|
-
export interface MetaItemDescriptorAccess {
|
|
252
|
-
restrictedRead?: boolean;
|
|
253
|
-
restrictedWrite?: boolean;
|
|
254
|
-
publicRead?: boolean;
|
|
255
|
-
}
|
|
256
|
-
export interface MetaItemDescriptorImpl extends MetaItemDescriptor {
|
|
257
|
-
isSecret?: boolean;
|
|
258
|
-
}
|
|
259
|
-
export interface CalendarEvent {
|
|
260
|
-
start?: DateAsNumber;
|
|
261
|
-
end?: DateAsNumber;
|
|
262
|
-
recurrence?: RecurrenceRule;
|
|
263
|
-
}
|
|
264
|
-
export interface RecurrenceRule {
|
|
265
|
-
frequency?: RecurrenceRuleFrequency;
|
|
266
|
-
interval?: number;
|
|
267
|
-
count?: number;
|
|
268
|
-
until?: DateAsNumber;
|
|
269
|
-
}
|
|
270
|
-
export interface ConsoleConfiguration {
|
|
271
|
-
}
|
|
272
|
-
export interface ConsoleProvider {
|
|
273
|
-
version?: string;
|
|
274
|
-
requiresPermission?: boolean;
|
|
275
|
-
hasPermission?: boolean;
|
|
276
|
-
success?: boolean;
|
|
277
|
-
enabled?: boolean;
|
|
278
|
-
disabled?: boolean;
|
|
279
|
-
data?: {
|
|
280
|
-
[id: string]: any;
|
|
281
|
-
};
|
|
282
|
-
}
|
|
283
|
-
export interface ConsoleRegistration {
|
|
284
|
-
id?: string;
|
|
285
|
-
name?: string;
|
|
286
|
-
version?: string;
|
|
287
|
-
platform?: string;
|
|
288
|
-
providers?: {
|
|
289
|
-
[index: string]: ConsoleProvider;
|
|
290
|
-
};
|
|
291
|
-
model?: string;
|
|
292
|
-
apps?: string[];
|
|
293
|
-
}
|
|
294
|
-
export interface AssetDatapoint extends Datapoint {
|
|
295
|
-
}
|
|
296
|
-
export interface Datapoint extends Serializable {
|
|
297
|
-
entityId?: string;
|
|
298
|
-
attributeName?: string;
|
|
299
|
-
timestamp?: DateAsNumber;
|
|
300
|
-
value?: any;
|
|
301
|
-
}
|
|
302
|
-
export interface ValueDatapoint<T> {
|
|
303
|
-
x?: number;
|
|
304
|
-
y?: T;
|
|
305
|
-
}
|
|
306
|
-
export interface Event {
|
|
307
|
-
timestamp?: DateAsNumber;
|
|
308
|
-
}
|
|
309
|
-
export interface TriggeredEventSubscription<T> {
|
|
310
|
-
events?: T[];
|
|
311
|
-
subscriptionId?: string;
|
|
312
|
-
}
|
|
313
|
-
export interface EventBus {
|
|
314
|
-
registrations?: EventRegistration<any>[];
|
|
315
|
-
}
|
|
316
|
-
export interface EventListener<E> {
|
|
317
|
-
}
|
|
318
|
-
export interface EventRegistration<E> {
|
|
319
|
-
prepare?: boolean;
|
|
320
|
-
eventClass?: Class<E>;
|
|
321
|
-
listener?: EventListener<E>;
|
|
322
|
-
}
|
|
323
|
-
export interface VetoEventException extends RuntimeException {
|
|
324
|
-
}
|
|
325
|
-
export interface AssetInfo {
|
|
326
|
-
}
|
|
327
|
-
export interface CancelEventSubscription {
|
|
328
|
-
eventType?: string;
|
|
329
|
-
subscriptionId?: string;
|
|
330
|
-
}
|
|
331
|
-
export interface EventRequestResponseWrapper<T> {
|
|
332
|
-
messageId?: string;
|
|
333
|
-
event?: T;
|
|
334
|
-
}
|
|
335
|
-
export interface EventSubscription<E> {
|
|
336
|
-
eventType?: string;
|
|
337
|
-
filter?: any;
|
|
338
|
-
subscriptionId?: string;
|
|
339
|
-
}
|
|
340
|
-
export interface SharedEvent extends Event {
|
|
341
|
-
eventType: "asset" | "assets" | "delete-assets-request" | "delete-assets-response" | "read-asset-attribute" | "read-asset" | "read-assets" | "attribute" | "asset-tree-modified" | "agent-status" | "gateway-connection-status" | "gateway-disconnect" | "rules-engine-status" | "ruleset-changed" | "request-simulator-state" | "simulator-state" | "syslog";
|
|
342
|
-
}
|
|
343
|
-
export interface TenantScopedEvent extends SharedEvent {
|
|
344
|
-
eventType: "asset-tree-modified" | "agent-status" | "gateway-connection-status";
|
|
345
|
-
realm?: string;
|
|
346
|
-
}
|
|
347
|
-
export interface UnauthorizedEventSubscription<E> {
|
|
348
|
-
subscription?: EventSubscription<any>;
|
|
349
|
-
}
|
|
350
|
-
export interface FileInfo {
|
|
351
|
-
name?: string;
|
|
352
|
-
contents?: string;
|
|
353
|
-
binary?: boolean;
|
|
354
|
-
}
|
|
355
|
-
export interface GatewayConnection {
|
|
356
|
-
localRealm?: string;
|
|
357
|
-
host?: string;
|
|
358
|
-
port?: number;
|
|
359
|
-
realm?: string;
|
|
360
|
-
clientId?: string;
|
|
361
|
-
clientSecret?: string;
|
|
362
|
-
secured?: boolean;
|
|
363
|
-
disabled?: boolean;
|
|
364
|
-
}
|
|
365
|
-
export interface GatewayConnectionStatusEvent extends TenantScopedEvent {
|
|
366
|
-
eventType: "gateway-connection-status";
|
|
367
|
-
connectionStatus?: ConnectionStatus;
|
|
368
|
-
}
|
|
369
|
-
export interface GatewayDisconnectEvent extends SharedEvent {
|
|
370
|
-
eventType: "gateway-disconnect";
|
|
371
|
-
reason?: GatewayDisconnectEventReason;
|
|
372
|
-
}
|
|
373
|
-
export interface GeoJSON {
|
|
374
|
-
type?: string;
|
|
375
|
-
}
|
|
376
|
-
export interface GeoJSONFeature extends GeoJSON {
|
|
377
|
-
geometry?: GeoJSONGeometryUnion;
|
|
378
|
-
properties?: {
|
|
379
|
-
[index: string]: string;
|
|
380
|
-
};
|
|
381
|
-
}
|
|
382
|
-
export interface GeoJSONFeatureCollection extends GeoJSON {
|
|
383
|
-
features?: GeoJSONFeature[];
|
|
384
|
-
}
|
|
385
|
-
export interface GeoJSONGeometry extends GeoJSON {
|
|
386
|
-
}
|
|
387
|
-
export interface GeoJSONPoint extends GeoJSONGeometry {
|
|
388
|
-
coordinates?: Position;
|
|
389
|
-
}
|
|
390
|
-
export interface Position {
|
|
391
|
-
values?: number[];
|
|
392
|
-
}
|
|
393
|
-
export interface BadRequestError extends RequestError {
|
|
394
|
-
constraintViolationReport?: any;
|
|
395
|
-
}
|
|
396
|
-
export interface ConflictRequestError extends RequestError {
|
|
397
|
-
}
|
|
398
|
-
export interface EntityMarshallingRequestError extends RequestError {
|
|
399
|
-
}
|
|
400
|
-
export interface NoResponseError extends RequestError {
|
|
401
|
-
}
|
|
402
|
-
export interface NotFoundRequestError extends RequestError {
|
|
403
|
-
}
|
|
404
|
-
export interface Request {
|
|
405
|
-
}
|
|
406
|
-
export interface RequestXMLHttpRequest {
|
|
407
|
-
}
|
|
408
|
-
export interface RequestCallback {
|
|
409
|
-
}
|
|
410
|
-
export interface RequestError {
|
|
411
|
-
statusCode?: number;
|
|
412
|
-
message?: string;
|
|
413
|
-
}
|
|
414
|
-
export interface RequestParams<IN, OUT> {
|
|
415
|
-
authorization?: string;
|
|
416
|
-
forwardedProtoHeader?: string;
|
|
417
|
-
forwardedHostHeader?: string;
|
|
418
|
-
forwardedPortHeader?: number;
|
|
419
|
-
uriInfo?: UriInfo;
|
|
420
|
-
entity?: string;
|
|
421
|
-
entityWriter?: any;
|
|
422
|
-
contentType?: string;
|
|
423
|
-
accepts?: string;
|
|
424
|
-
apiURL?: string;
|
|
425
|
-
username?: string;
|
|
426
|
-
password?: string;
|
|
427
|
-
callback?: RequestCallback;
|
|
428
|
-
async?: boolean;
|
|
429
|
-
}
|
|
430
|
-
export interface UnauthorizedRequestError extends RequestError {
|
|
431
|
-
}
|
|
432
|
-
export interface UnexpectedStatusRequestError extends RequestError {
|
|
433
|
-
expectedStatusCodes?: number[];
|
|
434
|
-
}
|
|
435
|
-
export interface AbstractNotificationMessage {
|
|
436
|
-
type?: string;
|
|
437
|
-
}
|
|
438
|
-
export interface EmailNotificationMessage extends AbstractNotificationMessage {
|
|
439
|
-
from?: EmailNotificationMessageRecipient;
|
|
440
|
-
replyTo?: EmailNotificationMessageRecipient;
|
|
441
|
-
subject?: string;
|
|
442
|
-
text?: string;
|
|
443
|
-
html?: string;
|
|
444
|
-
to?: EmailNotificationMessageRecipient[];
|
|
445
|
-
cc?: EmailNotificationMessageRecipient[];
|
|
446
|
-
bcc?: EmailNotificationMessageRecipient[];
|
|
447
|
-
}
|
|
448
|
-
export interface EmailNotificationMessageRecipient {
|
|
449
|
-
name?: string;
|
|
450
|
-
address?: string;
|
|
451
|
-
}
|
|
452
|
-
export interface Notification {
|
|
453
|
-
name?: string;
|
|
454
|
-
message?: AbstractNotificationMessageUnion;
|
|
455
|
-
targets?: NotificationTarget[];
|
|
456
|
-
repeatFrequency?: RepeatFrequency;
|
|
457
|
-
repeatInterval?: string;
|
|
458
|
-
}
|
|
459
|
-
export interface NotificationTarget {
|
|
460
|
-
type?: NotificationTargetType;
|
|
461
|
-
id?: string;
|
|
462
|
-
}
|
|
463
|
-
export interface NotificationSendResult {
|
|
464
|
-
success?: boolean;
|
|
465
|
-
message?: string;
|
|
466
|
-
}
|
|
467
|
-
export interface PushNotificationAction {
|
|
468
|
-
url?: string;
|
|
469
|
-
data?: any;
|
|
470
|
-
silent?: boolean;
|
|
471
|
-
openInBrowser?: boolean;
|
|
472
|
-
httpMethod?: string;
|
|
473
|
-
}
|
|
474
|
-
export interface PushNotificationButton {
|
|
475
|
-
title?: string;
|
|
476
|
-
action?: PushNotificationAction;
|
|
477
|
-
}
|
|
478
|
-
export interface PushNotificationMessage extends AbstractNotificationMessage {
|
|
479
|
-
title?: string;
|
|
480
|
-
body?: string;
|
|
481
|
-
action?: PushNotificationAction;
|
|
482
|
-
buttons?: PushNotificationButton[];
|
|
483
|
-
data?: {
|
|
484
|
-
[id: string]: any;
|
|
485
|
-
};
|
|
486
|
-
priority?: PushNotificationMessageMessagePriority;
|
|
487
|
-
targetType?: PushNotificationMessageTargetType;
|
|
488
|
-
target?: string;
|
|
489
|
-
expiration?: number;
|
|
490
|
-
}
|
|
491
|
-
export interface SentNotification {
|
|
492
|
-
id?: number;
|
|
493
|
-
name?: string;
|
|
494
|
-
type?: string;
|
|
495
|
-
target?: NotificationTargetType;
|
|
496
|
-
targetId?: string;
|
|
497
|
-
source?: NotificationSource;
|
|
498
|
-
sourceId?: string;
|
|
499
|
-
message?: {
|
|
500
|
-
[id: string]: any;
|
|
501
|
-
};
|
|
502
|
-
error?: string;
|
|
503
|
-
sentOn?: DateAsNumber;
|
|
504
|
-
deliveredOn?: DateAsNumber;
|
|
505
|
-
acknowledgedOn?: DateAsNumber;
|
|
506
|
-
acknowledgement?: string;
|
|
507
|
-
}
|
|
508
|
-
export interface AssetPredictedDatapoint extends Datapoint {
|
|
509
|
-
}
|
|
510
|
-
export interface AssetQuery {
|
|
511
|
-
recursive?: boolean;
|
|
512
|
-
select?: AssetQuerySelect;
|
|
513
|
-
access?: AssetQueryAccess;
|
|
514
|
-
ids?: string[];
|
|
515
|
-
names?: StringPredicate[];
|
|
516
|
-
parents?: ParentPredicate[];
|
|
517
|
-
paths?: PathPredicate[];
|
|
518
|
-
tenant?: TenantPredicate;
|
|
519
|
-
userIds?: string[];
|
|
520
|
-
types?: StringPredicate[];
|
|
521
|
-
attributes?: LogicGroup<AttributePredicate>;
|
|
522
|
-
attributeMeta?: MetaPredicate[];
|
|
523
|
-
orderBy?: AssetQueryOrderBy;
|
|
524
|
-
limit?: number;
|
|
525
|
-
}
|
|
526
|
-
export interface AssetQueryOrderBy {
|
|
527
|
-
property?: AssetQueryOrderBy$Property;
|
|
528
|
-
descending?: boolean;
|
|
529
|
-
}
|
|
530
|
-
export interface AssetQuerySelect {
|
|
531
|
-
attributes?: string[];
|
|
532
|
-
meta?: string[];
|
|
533
|
-
excludePath?: boolean;
|
|
534
|
-
excludeAttributeMeta?: boolean;
|
|
535
|
-
excludeAttributes?: boolean;
|
|
536
|
-
excludeAttributeValue?: boolean;
|
|
537
|
-
excludeAttributeTimestamp?: boolean;
|
|
538
|
-
excludeAttributeType?: boolean;
|
|
539
|
-
excludeParentInfo?: boolean;
|
|
540
|
-
}
|
|
541
|
-
export interface LogicGroup<T> {
|
|
542
|
-
operator?: LogicGroupOperator;
|
|
543
|
-
items?: T[];
|
|
544
|
-
groups?: LogicGroup<T>[];
|
|
545
|
-
}
|
|
546
|
-
export interface RulesetQuery {
|
|
547
|
-
ids?: number[];
|
|
548
|
-
meta?: MetaPredicate[];
|
|
549
|
-
limit?: number;
|
|
550
|
-
languages?: RulesetLang[];
|
|
551
|
-
fullyPopulate?: boolean;
|
|
552
|
-
publicOnly?: boolean;
|
|
553
|
-
enabledOnly?: boolean;
|
|
554
|
-
realm?: string;
|
|
555
|
-
assetIds?: string[];
|
|
556
|
-
}
|
|
557
|
-
export interface UserQuery {
|
|
558
|
-
tenantPredicate?: TenantPredicate;
|
|
559
|
-
assetPredicate?: UserAssetPredicate;
|
|
560
|
-
pathPredicate?: PathPredicate;
|
|
561
|
-
ids?: string[];
|
|
562
|
-
usernames?: string[];
|
|
563
|
-
limit?: number;
|
|
564
|
-
}
|
|
565
|
-
export interface ArrayPredicate extends ValuePredicate {
|
|
566
|
-
predicateType: "array";
|
|
567
|
-
value?: any;
|
|
568
|
-
index?: number;
|
|
569
|
-
lengthEquals?: number;
|
|
570
|
-
lengthGreaterThan?: number;
|
|
571
|
-
lengthLessThan?: number;
|
|
572
|
-
negated?: boolean;
|
|
573
|
-
}
|
|
574
|
-
export interface AttributePredicate {
|
|
575
|
-
name?: StringPredicate;
|
|
576
|
-
notExists?: boolean;
|
|
577
|
-
value?: ValuePredicateUnion;
|
|
578
|
-
}
|
|
579
|
-
export interface BooleanPredicate extends ValuePredicate {
|
|
580
|
-
predicateType: "boolean";
|
|
581
|
-
value?: boolean;
|
|
582
|
-
}
|
|
583
|
-
export interface CalendarEventPredicate extends ValuePredicate {
|
|
584
|
-
predicateType: "calendar-event";
|
|
585
|
-
timestamp?: DateAsNumber;
|
|
586
|
-
}
|
|
587
|
-
export interface DateTimePredicate extends ValuePredicate {
|
|
588
|
-
predicateType: "datetime";
|
|
589
|
-
value?: string;
|
|
590
|
-
rangeValue?: string;
|
|
591
|
-
operator?: AssetQueryOperator;
|
|
592
|
-
negate?: boolean;
|
|
593
|
-
}
|
|
594
|
-
export interface GeofencePredicate extends ValuePredicate {
|
|
595
|
-
predicateType: "radial" | "rect";
|
|
596
|
-
negated?: boolean;
|
|
597
|
-
}
|
|
598
|
-
export interface LocationAttributePredicate extends AttributePredicate {
|
|
599
|
-
}
|
|
600
|
-
export interface MetaPredicate {
|
|
601
|
-
itemNamePredicate?: StringPredicate;
|
|
602
|
-
itemValuePredicate?: ValuePredicateUnion;
|
|
603
|
-
}
|
|
604
|
-
export interface NewAttributePredicate extends AttributePredicate {
|
|
605
|
-
meta?: MetaPredicate[];
|
|
606
|
-
lastValue?: ValuePredicateUnion;
|
|
607
|
-
valueTimestamp?: DateTimePredicate;
|
|
608
|
-
}
|
|
609
|
-
export interface NumberPredicate extends ValuePredicate {
|
|
610
|
-
predicateType: "number";
|
|
611
|
-
value?: number;
|
|
612
|
-
rangeValue?: number;
|
|
613
|
-
operator?: AssetQueryOperator;
|
|
614
|
-
numberType?: AssetQueryNumberType;
|
|
615
|
-
negate?: boolean;
|
|
616
|
-
}
|
|
617
|
-
export interface ObjectValueKeyPredicate extends ValuePredicate {
|
|
618
|
-
predicateType: "object-value-key";
|
|
619
|
-
key?: string;
|
|
620
|
-
negated?: boolean;
|
|
621
|
-
}
|
|
622
|
-
export interface ParentPredicate {
|
|
623
|
-
id?: string;
|
|
624
|
-
type?: string;
|
|
625
|
-
name?: string;
|
|
626
|
-
noParent?: boolean;
|
|
627
|
-
}
|
|
628
|
-
export interface PathPredicate {
|
|
629
|
-
path?: string[];
|
|
630
|
-
}
|
|
631
|
-
export interface RadialGeofencePredicate extends GeofencePredicate {
|
|
632
|
-
predicateType: "radial";
|
|
633
|
-
radius?: number;
|
|
634
|
-
lat?: number;
|
|
635
|
-
lng?: number;
|
|
636
|
-
}
|
|
637
|
-
export interface RectangularGeofencePredicate extends GeofencePredicate {
|
|
638
|
-
predicateType: "rect";
|
|
639
|
-
latMin?: number;
|
|
640
|
-
lngMin?: number;
|
|
641
|
-
latMax?: number;
|
|
642
|
-
lngMax?: number;
|
|
643
|
-
}
|
|
644
|
-
export interface RefPredicate extends MetaPredicate {
|
|
645
|
-
}
|
|
646
|
-
export interface StringArrayPredicate extends ValuePredicate {
|
|
647
|
-
predicateType: "string-array";
|
|
648
|
-
predicates?: StringPredicate[];
|
|
649
|
-
}
|
|
650
|
-
export interface StringPredicate extends ValuePredicate {
|
|
651
|
-
predicateType: "string";
|
|
652
|
-
match?: AssetQueryMatch;
|
|
653
|
-
caseSensitive?: boolean;
|
|
654
|
-
value?: string;
|
|
655
|
-
negate?: boolean;
|
|
656
|
-
}
|
|
657
|
-
export interface TenantPredicate {
|
|
658
|
-
realm?: string;
|
|
659
|
-
}
|
|
660
|
-
export interface UserAssetPredicate {
|
|
661
|
-
id?: string;
|
|
662
|
-
}
|
|
663
|
-
export interface ValueEmptyPredicate extends ValuePredicate {
|
|
664
|
-
predicateType: "value-empty";
|
|
665
|
-
}
|
|
666
|
-
export interface ValueNotEmptyPredicate extends ValuePredicate {
|
|
667
|
-
predicateType: "value-not-empty";
|
|
668
|
-
}
|
|
669
|
-
export interface ValuePredicate {
|
|
670
|
-
predicateType: "array" | "boolean" | "calendar-event" | "datetime" | "radial" | "rect" | "number" | "object-value-key" | "string-array" | "string" | "value-empty" | "value-not-empty";
|
|
671
|
-
}
|
|
672
|
-
export interface AssetRuleset extends Ruleset {
|
|
673
|
-
type: "asset";
|
|
674
|
-
assetId?: string;
|
|
675
|
-
accessPublicRead?: boolean;
|
|
676
|
-
realm?: string;
|
|
677
|
-
}
|
|
678
|
-
export interface AssetState extends Comparable<AssetState> {
|
|
679
|
-
attributeName?: string;
|
|
680
|
-
attributeValueType?: AttributeValueDescriptor;
|
|
681
|
-
value?: any;
|
|
682
|
-
timestamp?: number;
|
|
683
|
-
source?: AttributeEventSource;
|
|
684
|
-
oldValue?: any;
|
|
685
|
-
oldValueTimestamp?: number;
|
|
686
|
-
id?: string;
|
|
687
|
-
name?: string;
|
|
688
|
-
typeString?: string;
|
|
689
|
-
type?: AssetType;
|
|
690
|
-
createdOn?: DateAsNumber;
|
|
691
|
-
path?: string[];
|
|
692
|
-
parentId?: string;
|
|
693
|
-
parentName?: string;
|
|
694
|
-
parentTypeString?: string;
|
|
695
|
-
parentType?: AssetType;
|
|
696
|
-
realm?: string;
|
|
697
|
-
meta?: MetaItem[];
|
|
698
|
-
}
|
|
699
|
-
export interface Assets {
|
|
700
|
-
}
|
|
701
|
-
export interface GlobalRuleset extends Ruleset {
|
|
702
|
-
type: "global";
|
|
703
|
-
}
|
|
704
|
-
export interface HistoricDatapoints {
|
|
705
|
-
}
|
|
706
|
-
export interface Notifications {
|
|
707
|
-
}
|
|
708
|
-
export interface PredictedDatapoints {
|
|
709
|
-
}
|
|
710
|
-
export interface RulesEngineInfo {
|
|
711
|
-
status?: RulesEngineStatus;
|
|
712
|
-
compilationErrorCount?: number;
|
|
713
|
-
executionErrorCount?: number;
|
|
714
|
-
}
|
|
715
|
-
export interface RulesEngineStatusEvent extends SharedEvent {
|
|
716
|
-
eventType: "rules-engine-status";
|
|
717
|
-
engineId?: string;
|
|
718
|
-
engineInfo?: RulesEngineInfo;
|
|
719
|
-
}
|
|
720
|
-
export interface Ruleset {
|
|
721
|
-
type: "asset" | "global" | "tenant";
|
|
722
|
-
id?: number;
|
|
723
|
-
version?: number;
|
|
724
|
-
createdOn?: DateAsNumber;
|
|
725
|
-
lastModified?: DateAsNumber;
|
|
726
|
-
name?: string;
|
|
727
|
-
enabled?: boolean;
|
|
728
|
-
rules?: string;
|
|
729
|
-
lang?: RulesetLang;
|
|
730
|
-
meta?: {
|
|
731
|
-
[id: string]: any;
|
|
732
|
-
};
|
|
733
|
-
status?: RulesetStatus;
|
|
734
|
-
error?: string;
|
|
735
|
-
}
|
|
736
|
-
export interface RulesetChangedEvent extends SharedEvent {
|
|
737
|
-
eventType: "ruleset-changed";
|
|
738
|
-
engineId?: string;
|
|
739
|
-
ruleset?: RulesetUnion;
|
|
740
|
-
}
|
|
741
|
-
export interface TemporaryFact<T> extends Event {
|
|
742
|
-
expirationMilliseconds?: number;
|
|
743
|
-
fact?: T;
|
|
744
|
-
time?: DateAsNumber;
|
|
745
|
-
expirationTime?: DateAsNumber;
|
|
746
|
-
}
|
|
747
|
-
export interface TenantRuleset extends Ruleset {
|
|
748
|
-
type: "tenant";
|
|
749
|
-
realm?: string;
|
|
750
|
-
accessPublicRead?: boolean;
|
|
751
|
-
}
|
|
752
|
-
export interface Users {
|
|
753
|
-
}
|
|
754
|
-
export interface AssetAttributeInternalValue {
|
|
755
|
-
assetId?: string;
|
|
756
|
-
attributeName?: string;
|
|
757
|
-
}
|
|
758
|
-
export interface Node {
|
|
759
|
-
id?: string;
|
|
760
|
-
type?: NodeType;
|
|
761
|
-
name?: string;
|
|
762
|
-
position?: NodePosition;
|
|
763
|
-
size?: NodePosition;
|
|
764
|
-
internals?: NodeInternal[];
|
|
765
|
-
inputs?: NodeSocket[];
|
|
766
|
-
outputs?: NodeSocket[];
|
|
767
|
-
displayCharacter?: string;
|
|
768
|
-
}
|
|
769
|
-
export interface NodeCollection {
|
|
770
|
-
name?: string;
|
|
771
|
-
description?: string;
|
|
772
|
-
nodes?: Node[];
|
|
773
|
-
connections?: NodeConnection[];
|
|
774
|
-
}
|
|
775
|
-
export interface NodeConnection {
|
|
776
|
-
from?: string;
|
|
777
|
-
to?: string;
|
|
778
|
-
}
|
|
779
|
-
export interface NodeInternal {
|
|
780
|
-
name?: string;
|
|
781
|
-
picker?: Picker;
|
|
782
|
-
value?: any;
|
|
783
|
-
}
|
|
784
|
-
export interface NodePosition {
|
|
785
|
-
x?: number;
|
|
786
|
-
y?: number;
|
|
787
|
-
}
|
|
788
|
-
export interface NodeSocket {
|
|
789
|
-
id?: string;
|
|
790
|
-
name?: string;
|
|
791
|
-
type?: NodeDataType;
|
|
792
|
-
nodeId?: string;
|
|
793
|
-
index?: number;
|
|
794
|
-
}
|
|
795
|
-
export interface Option {
|
|
796
|
-
name?: string;
|
|
797
|
-
value?: any;
|
|
798
|
-
}
|
|
799
|
-
export interface Picker {
|
|
800
|
-
type?: PickerType;
|
|
801
|
-
options?: Option[];
|
|
802
|
-
}
|
|
803
|
-
export interface GeofenceDefinition {
|
|
804
|
-
id?: string;
|
|
805
|
-
lat?: number;
|
|
806
|
-
lng?: number;
|
|
807
|
-
radius?: number;
|
|
808
|
-
httpMethod?: string;
|
|
809
|
-
url?: string;
|
|
810
|
-
}
|
|
811
|
-
export interface JsonRule {
|
|
812
|
-
name?: string;
|
|
813
|
-
description?: string;
|
|
814
|
-
priority?: number;
|
|
815
|
-
when?: LogicGroup<RuleCondition>;
|
|
816
|
-
then?: RuleActionUnion[];
|
|
817
|
-
otherwise?: RuleActionUnion[];
|
|
818
|
-
recurrence?: RuleRecurrence;
|
|
819
|
-
onStart?: RuleActionUnion[];
|
|
820
|
-
onStop?: RuleActionUnion[];
|
|
821
|
-
}
|
|
822
|
-
export interface JsonRulesetDefinition {
|
|
823
|
-
rules?: JsonRule[];
|
|
824
|
-
meta?: {
|
|
825
|
-
[id: string]: any;
|
|
826
|
-
};
|
|
827
|
-
}
|
|
828
|
-
export interface RuleAction {
|
|
829
|
-
action: "notification" | "update-attribute" | "wait" | "write-attribute";
|
|
830
|
-
target?: RuleActionTarget;
|
|
831
|
-
}
|
|
832
|
-
export interface RuleActionNotification extends RuleAction {
|
|
833
|
-
action: "notification";
|
|
834
|
-
notification?: Notification;
|
|
835
|
-
}
|
|
836
|
-
export interface RuleActionTarget {
|
|
837
|
-
ruleConditionTag?: string;
|
|
838
|
-
matchedAssets?: AssetQuery;
|
|
839
|
-
assets?: AssetQuery;
|
|
840
|
-
users?: UserQuery;
|
|
841
|
-
}
|
|
842
|
-
export interface RuleActionUpdateAttribute extends RuleAction {
|
|
843
|
-
action: "update-attribute";
|
|
844
|
-
attributeName?: string;
|
|
845
|
-
value?: any;
|
|
846
|
-
key?: string;
|
|
847
|
-
index?: number;
|
|
848
|
-
updateAction?: RuleActionUpdateAttributeUpdateAction;
|
|
849
|
-
}
|
|
850
|
-
export interface RuleActionWait extends RuleAction {
|
|
851
|
-
action: "wait";
|
|
852
|
-
millis?: number;
|
|
853
|
-
}
|
|
854
|
-
export interface RuleActionWriteAttribute extends RuleAction {
|
|
855
|
-
action: "write-attribute";
|
|
856
|
-
attributeName?: string;
|
|
857
|
-
value?: any;
|
|
858
|
-
}
|
|
859
|
-
export interface RuleCondition {
|
|
860
|
-
timer?: string;
|
|
861
|
-
assets?: AssetQuery;
|
|
862
|
-
tag?: string;
|
|
863
|
-
}
|
|
864
|
-
export interface RuleRecurrence {
|
|
865
|
-
scope?: RuleRecurrenceScope;
|
|
866
|
-
mins?: number;
|
|
867
|
-
}
|
|
868
|
-
export interface RuleTemplate<T> {
|
|
869
|
-
name?: string;
|
|
870
|
-
value?: T;
|
|
871
|
-
}
|
|
872
|
-
export interface Credential {
|
|
873
|
-
type?: string;
|
|
874
|
-
value?: string;
|
|
875
|
-
temporary?: boolean;
|
|
876
|
-
}
|
|
877
|
-
export interface Role {
|
|
878
|
-
id?: string;
|
|
879
|
-
name?: string;
|
|
880
|
-
composite?: boolean;
|
|
881
|
-
assigned?: boolean;
|
|
882
|
-
}
|
|
883
|
-
export interface Tenant {
|
|
884
|
-
id?: string;
|
|
885
|
-
realm?: string;
|
|
886
|
-
displayName?: string;
|
|
887
|
-
enabled?: boolean;
|
|
888
|
-
notBefore?: number;
|
|
889
|
-
resetPasswordAllowed?: boolean;
|
|
890
|
-
duplicateEmailsAllowed?: boolean;
|
|
891
|
-
rememberMe?: boolean;
|
|
892
|
-
loginTheme?: string;
|
|
893
|
-
accountTheme?: string;
|
|
894
|
-
adminTheme?: string;
|
|
895
|
-
emailTheme?: string;
|
|
896
|
-
accessTokenLifespan?: number;
|
|
897
|
-
}
|
|
898
|
-
export interface User {
|
|
899
|
-
realm?: string;
|
|
900
|
-
realmId?: string;
|
|
901
|
-
id?: string;
|
|
902
|
-
username?: string;
|
|
903
|
-
firstName?: string;
|
|
904
|
-
lastName?: string;
|
|
905
|
-
email?: string;
|
|
906
|
-
enabled?: boolean;
|
|
907
|
-
}
|
|
908
|
-
export interface UserPasswordCredentials {
|
|
909
|
-
username?: string;
|
|
910
|
-
password?: string;
|
|
911
|
-
}
|
|
912
|
-
export interface RequestSimulatorState extends SharedEvent {
|
|
913
|
-
eventType: "request-simulator-state";
|
|
914
|
-
configurations?: AttributeRef[];
|
|
915
|
-
}
|
|
916
|
-
export interface SimulatorElement extends ValueHolder {
|
|
917
|
-
elementType: "color" | "number" | "replay" | "switch";
|
|
918
|
-
attributeRef?: AttributeRef;
|
|
919
|
-
expectedType?: AttributeValueDescriptor;
|
|
920
|
-
value?: any;
|
|
921
|
-
}
|
|
922
|
-
export interface SimulatorState extends SharedEvent {
|
|
923
|
-
eventType: "simulator-state";
|
|
924
|
-
assetIdAndName?: {
|
|
925
|
-
[index: string]: string;
|
|
926
|
-
};
|
|
927
|
-
protocolConfigurationRef?: AttributeRef;
|
|
928
|
-
elements?: SimulatorElementUnion[];
|
|
929
|
-
}
|
|
930
|
-
export interface SimulatorStateConfigurationFilter {
|
|
931
|
-
filterType: "simulator-state-configuration";
|
|
932
|
-
configurations?: AttributeRef[];
|
|
933
|
-
}
|
|
934
|
-
export interface ColorSimulatorElement extends SimulatorElement {
|
|
935
|
-
elementType: "color";
|
|
936
|
-
}
|
|
937
|
-
export interface NumberSimulatorElement extends SimulatorElement {
|
|
938
|
-
elementType: "number";
|
|
939
|
-
min?: number;
|
|
940
|
-
max?: number;
|
|
941
|
-
}
|
|
942
|
-
export interface ReplaySimulatorElement extends SimulatorElement {
|
|
943
|
-
elementType: "replay";
|
|
944
|
-
}
|
|
945
|
-
export interface ReplaySimulatorElementReplaySimulatorDatapoint {
|
|
946
|
-
timestamp?: number;
|
|
947
|
-
value?: any;
|
|
948
|
-
}
|
|
949
|
-
export interface SwitchSimulatorElement extends SimulatorElement {
|
|
950
|
-
elementType: "switch";
|
|
951
|
-
}
|
|
952
|
-
export interface SyslogConfig {
|
|
953
|
-
storedLevel?: SyslogLevel;
|
|
954
|
-
storedCategories?: SyslogCategory[];
|
|
955
|
-
storedMaxAgeMinutes?: number;
|
|
956
|
-
}
|
|
957
|
-
export interface SyslogEvent extends SharedEvent {
|
|
958
|
-
eventType: "syslog";
|
|
959
|
-
id?: number;
|
|
960
|
-
level?: SyslogLevel;
|
|
961
|
-
category?: SyslogCategory;
|
|
962
|
-
subCategory?: string;
|
|
963
|
-
message?: string;
|
|
964
|
-
}
|
|
965
|
-
export interface SyslogEventLevelCategoryFilter {
|
|
966
|
-
filterType: "level-category-filter";
|
|
967
|
-
level?: SyslogLevel;
|
|
968
|
-
categories?: SyslogCategory[];
|
|
969
|
-
}
|
|
970
|
-
export interface HealthStatusProvider {
|
|
971
|
-
}
|
|
972
|
-
export interface ConstraintViolation extends Serializable {
|
|
973
|
-
constraintType?: ConstraintViolationType;
|
|
974
|
-
path?: string;
|
|
975
|
-
message?: string;
|
|
976
|
-
value?: string;
|
|
977
|
-
}
|
|
978
|
-
export interface ConstraintViolationReport extends Serializable {
|
|
979
|
-
exception?: string;
|
|
980
|
-
fieldViolations?: ConstraintViolation[];
|
|
981
|
-
propertyViolations?: ConstraintViolation[];
|
|
982
|
-
classViolations?: ConstraintViolation[];
|
|
983
|
-
parameterViolations?: ConstraintViolation[];
|
|
984
|
-
returnValueViolations?: ConstraintViolation[];
|
|
985
|
-
}
|
|
986
|
-
export interface JsonPathFilter extends ValueFilter<any> {
|
|
987
|
-
type: "regex";
|
|
988
|
-
path?: string;
|
|
989
|
-
returnFirst?: boolean;
|
|
990
|
-
returnLast?: boolean;
|
|
991
|
-
}
|
|
992
|
-
export interface RegexValueFilter extends ValueFilter<string> {
|
|
993
|
-
type: "regex";
|
|
994
|
-
pattern?: Pattern;
|
|
995
|
-
matchGroup?: number;
|
|
996
|
-
matchIndex?: number;
|
|
997
|
-
}
|
|
998
|
-
export interface SubStringValueFilter extends ValueFilter<string> {
|
|
999
|
-
type: "substring";
|
|
1000
|
-
beginIndex?: number;
|
|
1001
|
-
endIndex?: number;
|
|
1002
|
-
}
|
|
1003
|
-
export interface ValueException extends RuntimeException {
|
|
1004
|
-
}
|
|
1005
|
-
export interface ValueFactory {
|
|
1006
|
-
}
|
|
1007
|
-
export interface ValueFilter<T> {
|
|
1008
|
-
type: "regex" | "substring";
|
|
1009
|
-
}
|
|
1010
|
-
export interface Values {
|
|
1011
|
-
}
|
|
1012
|
-
export interface Version extends Comparable<Version>, Serializable {
|
|
1013
|
-
_majorVersion?: number;
|
|
1014
|
-
_minorVersion?: number;
|
|
1015
|
-
_patchLevel?: number;
|
|
1016
|
-
_groupId?: string;
|
|
1017
|
-
_artifactId?: string;
|
|
1018
|
-
_snapshotInfo?: string;
|
|
1019
|
-
}
|
|
1020
|
-
export interface SimpleSerializers extends SerializersBase, Serializable {
|
|
1021
|
-
_classMappings?: {
|
|
1022
|
-
[index: string]: JsonSerializer<any>;
|
|
1023
|
-
};
|
|
1024
|
-
_interfaceMappings?: {
|
|
1025
|
-
[index: string]: JsonSerializer<any>;
|
|
1026
|
-
};
|
|
1027
|
-
_hasEnumSerializer?: boolean;
|
|
1028
|
-
}
|
|
1029
|
-
export interface SimpleDeserializers extends Deserializers, Serializable {
|
|
1030
|
-
_classMappings?: {
|
|
1031
|
-
[index: string]: JsonDeserializer<any>;
|
|
1032
|
-
};
|
|
1033
|
-
_hasEnumDeserializer?: boolean;
|
|
1034
|
-
}
|
|
1035
|
-
export interface SimpleKeyDeserializers extends KeyDeserializers, Serializable {
|
|
1036
|
-
_classMappings?: {
|
|
1037
|
-
[index: string]: KeyDeserializer;
|
|
1038
|
-
};
|
|
1039
|
-
}
|
|
1040
|
-
export interface SimpleAbstractTypeResolver extends AbstractTypeResolver, Serializable {
|
|
1041
|
-
_mappings?: {
|
|
1042
|
-
[index: string]: Class<any>;
|
|
1043
|
-
};
|
|
1044
|
-
}
|
|
1045
|
-
export interface SimpleValueInstantiators extends ValueInstantiatorsBase, Serializable {
|
|
1046
|
-
_classMappings?: {
|
|
1047
|
-
[index: string]: ValueInstantiator;
|
|
1048
|
-
};
|
|
1049
|
-
}
|
|
1050
|
-
export interface BeanDeserializerModifier {
|
|
1051
|
-
}
|
|
1052
|
-
export interface BeanSerializerModifier {
|
|
1053
|
-
}
|
|
1054
|
-
export interface Class<T> extends Serializable, GenericDeclaration, Type, AnnotatedElement {
|
|
1055
|
-
}
|
|
1056
|
-
export interface NamedType extends Serializable {
|
|
1057
|
-
_class?: Class<any>;
|
|
1058
|
-
_hashCode?: number;
|
|
1059
|
-
_name?: string;
|
|
1060
|
-
}
|
|
1061
|
-
export interface PropertyNamingStrategy extends Serializable {
|
|
1062
|
-
}
|
|
1063
|
-
export interface SimpleModule extends Module, Serializable {
|
|
1064
|
-
_name?: string;
|
|
1065
|
-
_version?: Version;
|
|
1066
|
-
_serializers?: SimpleSerializers;
|
|
1067
|
-
_deserializers?: SimpleDeserializers;
|
|
1068
|
-
_keySerializers?: SimpleSerializers;
|
|
1069
|
-
_keyDeserializers?: SimpleKeyDeserializers;
|
|
1070
|
-
_abstractTypes?: SimpleAbstractTypeResolver;
|
|
1071
|
-
_valueInstantiators?: SimpleValueInstantiators;
|
|
1072
|
-
_deserializerModifier?: BeanDeserializerModifier;
|
|
1073
|
-
_serializerModifier?: BeanSerializerModifier;
|
|
1074
|
-
_mixins?: {
|
|
1075
|
-
[index: string]: Class<any>;
|
|
1076
|
-
};
|
|
1077
|
-
_subtypes?: NamedType[];
|
|
1078
|
-
_namingStrategy?: PropertyNamingStrategy;
|
|
1079
|
-
}
|
|
1080
|
-
export interface Function<T, R> {
|
|
1081
|
-
}
|
|
1082
|
-
export interface Serializable {
|
|
1083
|
-
}
|
|
1084
|
-
export interface Throwable extends Serializable {
|
|
1085
|
-
detailMessage?: string;
|
|
1086
|
-
cause?: Throwable;
|
|
1087
|
-
stackTrace?: StackTraceElement[];
|
|
1088
|
-
suppressedExceptions?: Throwable[];
|
|
1089
|
-
}
|
|
1090
|
-
export interface StackTraceElement extends Serializable {
|
|
1091
|
-
classLoaderName?: string;
|
|
1092
|
-
moduleName?: string;
|
|
1093
|
-
moduleVersion?: string;
|
|
1094
|
-
declaringClass?: string;
|
|
1095
|
-
methodName?: string;
|
|
1096
|
-
fileName?: string;
|
|
1097
|
-
lineNumber?: number;
|
|
1098
|
-
format?: number;
|
|
1099
|
-
}
|
|
1100
|
-
export interface RuntimeException extends Exception {
|
|
1101
|
-
}
|
|
1102
|
-
export interface UriInfo {
|
|
1103
|
-
}
|
|
1104
|
-
export interface Pattern extends Serializable {
|
|
1105
|
-
}
|
|
1106
|
-
export interface JsonSerializer<T> extends JsonFormatVisitable {
|
|
1107
|
-
}
|
|
1108
|
-
export interface SerializersBase extends Serializers {
|
|
1109
|
-
}
|
|
1110
|
-
export interface JsonDeserializer<T> extends NullValueProvider {
|
|
1111
|
-
}
|
|
1112
|
-
export interface Deserializers {
|
|
1113
|
-
}
|
|
1114
|
-
export interface KeyDeserializer {
|
|
1115
|
-
}
|
|
1116
|
-
export interface KeyDeserializers {
|
|
1117
|
-
}
|
|
1118
|
-
export interface AbstractTypeResolver {
|
|
1119
|
-
}
|
|
1120
|
-
export interface ValueInstantiator {
|
|
1121
|
-
}
|
|
1122
|
-
export interface ValueInstantiatorsBase extends ValueInstantiators {
|
|
1123
|
-
}
|
|
1124
|
-
export interface GenericDeclaration extends AnnotatedElement {
|
|
1125
|
-
}
|
|
1126
|
-
export interface Type {
|
|
1127
|
-
}
|
|
1128
|
-
export interface AnnotatedElement {
|
|
1129
|
-
}
|
|
1130
|
-
export interface Module extends Versioned {
|
|
1131
|
-
}
|
|
1132
|
-
export interface StdDeserializer<T> extends JsonDeserializer<T>, Serializable {
|
|
1133
|
-
_valueClass?: Class<any>;
|
|
1134
|
-
}
|
|
1135
|
-
export interface Exception extends Throwable {
|
|
1136
|
-
}
|
|
1137
|
-
export interface Comparable<T> {
|
|
1138
|
-
}
|
|
1139
|
-
export interface JsonFormatVisitable {
|
|
1140
|
-
}
|
|
1141
|
-
export interface Serializers {
|
|
1142
|
-
}
|
|
1143
|
-
export interface NullValueProvider {
|
|
1144
|
-
}
|
|
1145
|
-
export interface ValueInstantiators {
|
|
1146
|
-
}
|
|
1147
|
-
export interface Versioned {
|
|
1148
|
-
}
|
|
1149
|
-
export declare type DateAsNumber = number;
|
|
1150
|
-
export declare type SharedEventUnion = SyslogEvent | AttributeEvent | AssetEvent | AssetsEvent | ReadAssetAttributeEvent | ReadAssetEvent | ReadAssetsEvent | AssetTreeModifiedEvent | SimulatorState | RequestSimulatorState | AgentStatusEvent | RulesEngineStatusEvent | RulesetChangedEvent | GatewayDisconnectEvent | GatewayConnectionStatusEvent | DeleteAssetsRequestEvent | DeleteAssetsResponseEvent;
|
|
1151
|
-
export declare type GeoJSONUnion = GeoJSONFeatureCollection | GeoJSONFeature;
|
|
1152
|
-
export declare type GeoJSONGeometryUnion = GeoJSONPoint;
|
|
1153
|
-
export declare type AbstractNotificationMessageUnion = PushNotificationMessage | EmailNotificationMessage;
|
|
1154
|
-
export declare type ValuePredicateUnion = StringPredicate | BooleanPredicate | StringArrayPredicate | DateTimePredicate | NumberPredicate | RadialGeofencePredicate | RectangularGeofencePredicate | ObjectValueKeyPredicate | ArrayPredicate | ValueEmptyPredicate | ValueNotEmptyPredicate | CalendarEventPredicate;
|
|
1155
|
-
export declare type RulesetUnion = AssetRuleset | TenantRuleset | GlobalRuleset;
|
|
1156
|
-
export declare type RuleActionUnion = RuleActionWait | RuleActionWriteAttribute | RuleActionNotification | RuleActionUpdateAttribute;
|
|
1157
|
-
export declare type SimulatorElementUnion = NumberSimulatorElement | SwitchSimulatorElement | ColorSimulatorElement | ReplaySimulatorElement;
|
|
1158
|
-
export declare type ValueFilterUnion = RegexValueFilter | SubStringValueFilter | JsonPathFilter;
|
|
1159
|
-
export declare const enum ConsoleAppConfigMenuPosition {
|
|
1160
|
-
BOTTOM_LEFT = "BOTTOM_LEFT",
|
|
1161
|
-
BOTTOM_RIGHT = "BOTTOM_RIGHT",
|
|
1162
|
-
TOP_LEFT = "TOP_LEFT",
|
|
1163
|
-
TOP_RIGHT = "TOP_RIGHT"
|
|
1164
|
-
}
|
|
1165
|
-
export declare const enum AssetEventCause {
|
|
1166
|
-
CREATE = "CREATE",
|
|
1167
|
-
READ = "READ",
|
|
1168
|
-
UPDATE = "UPDATE",
|
|
1169
|
-
DELETE = "DELETE"
|
|
1170
|
-
}
|
|
1171
|
-
export declare const enum ElectricityChargerConnectionType {
|
|
1172
|
-
YAZAKI = "YAZAKI",
|
|
1173
|
-
MENNEKES = "MENNEKES",
|
|
1174
|
-
LE_GRAND = "LE_GRAND",
|
|
1175
|
-
CHADEMO = "CHADEMO",
|
|
1176
|
-
COMBO = "COMBO",
|
|
1177
|
-
SCHUKO = "SCHUKO"
|
|
1178
|
-
}
|
|
1179
|
-
export declare const enum ElectricityConsumerDemandResponseType {
|
|
1180
|
-
NONE = "NONE",
|
|
1181
|
-
FORECAST = "FORECAST",
|
|
1182
|
-
SETPOINT = "SETPOINT"
|
|
1183
|
-
}
|
|
1184
|
-
export declare const enum ElectricityProducerOrientationType {
|
|
1185
|
-
SOUTH = "SOUTH",
|
|
1186
|
-
EAST_WEST = "EAST_WEST"
|
|
1187
|
-
}
|
|
1188
|
-
export declare const enum ConnectionStatus {
|
|
1189
|
-
UNKNOWN = "UNKNOWN",
|
|
1190
|
-
DISCONNECTED = "DISCONNECTED",
|
|
1191
|
-
CONNECTING = "CONNECTING",
|
|
1192
|
-
DISCONNECTING = "DISCONNECTING",
|
|
1193
|
-
CONNECTED = "CONNECTED",
|
|
1194
|
-
DISABLED = "DISABLED",
|
|
1195
|
-
WAITING = "WAITING",
|
|
1196
|
-
ERROR_AUTHENTICATION = "ERROR_AUTHENTICATION",
|
|
1197
|
-
ERROR_CONFIGURATION = "ERROR_CONFIGURATION",
|
|
1198
|
-
ERROR = "ERROR"
|
|
1199
|
-
}
|
|
1200
|
-
export declare const enum AttributeEventSource {
|
|
1201
|
-
CLIENT = "CLIENT",
|
|
1202
|
-
INTERNAL = "INTERNAL",
|
|
1203
|
-
ATTRIBUTE_LINKING_SERVICE = "ATTRIBUTE_LINKING_SERVICE",
|
|
1204
|
-
SENSOR = "SENSOR",
|
|
1205
|
-
GATEWAY = "GATEWAY"
|
|
1206
|
-
}
|
|
1207
|
-
export declare const enum AttributeExecuteStatus {
|
|
1208
|
-
REQUEST_START = "REQUEST_START",
|
|
1209
|
-
REQUEST_REPEATING = "REQUEST_REPEATING",
|
|
1210
|
-
REQUEST_CANCEL = "REQUEST_CANCEL",
|
|
1211
|
-
READY = "READY",
|
|
1212
|
-
COMPLETED = "COMPLETED",
|
|
1213
|
-
RUNNING = "RUNNING",
|
|
1214
|
-
CANCELLED = "CANCELLED",
|
|
1215
|
-
ERROR = "ERROR",
|
|
1216
|
-
DISABLED = "DISABLED"
|
|
1217
|
-
}
|
|
1218
|
-
export declare const enum AttributeLinkConverterType {
|
|
1219
|
-
TOGGLE = "TOGGLE",
|
|
1220
|
-
INCREMENT = "INCREMENT",
|
|
1221
|
-
DECREMENT = "DECREMENT"
|
|
1222
|
-
}
|
|
1223
|
-
export declare const enum MetaItemDescriptorPatternFailure {
|
|
1224
|
-
INTEGER = "INTEGER",
|
|
1225
|
-
INTEGER_NON_ZERO = "INTEGER_NON_ZERO",
|
|
1226
|
-
INTEGER_POSITIVE = "INTEGER_POSITIVE",
|
|
1227
|
-
INTEGER_NEGATIVE = "INTEGER_NEGATIVE",
|
|
1228
|
-
INTEGER_POSITIVE_NON_ZERO = "INTEGER_POSITIVE_NON_ZERO",
|
|
1229
|
-
INTEGER_NEGATIVE_NON_ZERO = "INTEGER_NEGATIVE_NON_ZERO",
|
|
1230
|
-
DOUBLE = "DOUBLE",
|
|
1231
|
-
DOUBLE_POSITIVE = "DOUBLE_POSITIVE",
|
|
1232
|
-
DOUBLE_NEGATIVE = "DOUBLE_NEGATIVE",
|
|
1233
|
-
DOUBLE_POSITIVE_NON_ZERO = "DOUBLE_POSITIVE_NON_ZERO",
|
|
1234
|
-
DOUBLE_NEGATIVE_NON_ZERO = "DOUBLE_NEGATIVE_NON_ZERO",
|
|
1235
|
-
CRON_EXPRESSION = "CRON_EXPRESSION",
|
|
1236
|
-
DAYS_HOURS_MINS_SECONDS = "DAYS_HOURS_MINS_SECONDS",
|
|
1237
|
-
STRING_EMPTY = "STRING_EMPTY",
|
|
1238
|
-
STRING_EMPTY_OR_CONTAINS_WHITESPACE = "STRING_EMPTY_OR_CONTAINS_WHITESPACE",
|
|
1239
|
-
HTTP_URL = "HTTP_URL"
|
|
1240
|
-
}
|
|
1241
|
-
export declare const enum RecurrenceRuleFrequency {
|
|
1242
|
-
YEARLY = "YEARLY",
|
|
1243
|
-
MONTHLY = "MONTHLY",
|
|
1244
|
-
WEEKLY = "WEEKLY",
|
|
1245
|
-
DAILY = "DAILY"
|
|
1246
|
-
}
|
|
1247
|
-
export declare const enum DatapointInterval {
|
|
1248
|
-
NONE = "NONE",
|
|
1249
|
-
MINUTE = "MINUTE",
|
|
1250
|
-
HOUR = "HOUR",
|
|
1251
|
-
DAY = "DAY",
|
|
1252
|
-
WEEK = "WEEK",
|
|
1253
|
-
MONTH = "MONTH",
|
|
1254
|
-
YEAR = "YEAR"
|
|
1255
|
-
}
|
|
1256
|
-
export declare const enum GatewayDisconnectEventReason {
|
|
1257
|
-
TERMINATING = "TERMINATING",
|
|
1258
|
-
DISABLED = "DISABLED",
|
|
1259
|
-
ALREADY_CONNECTED = "ALREADY_CONNECTED",
|
|
1260
|
-
UNRECOGNISED = "UNRECOGNISED",
|
|
1261
|
-
PERMANENT_ERROR = "PERMANENT_ERROR"
|
|
1262
|
-
}
|
|
1263
|
-
export declare const enum NotificationSource {
|
|
1264
|
-
INTERNAL = "INTERNAL",
|
|
1265
|
-
CLIENT = "CLIENT",
|
|
1266
|
-
GLOBAL_RULESET = "GLOBAL_RULESET",
|
|
1267
|
-
TENANT_RULESET = "TENANT_RULESET",
|
|
1268
|
-
ASSET_RULESET = "ASSET_RULESET"
|
|
1269
|
-
}
|
|
1270
|
-
export declare const enum NotificationTargetType {
|
|
1271
|
-
TENANT = "TENANT",
|
|
1272
|
-
USER = "USER",
|
|
1273
|
-
ASSET = "ASSET",
|
|
1274
|
-
CUSTOM = "CUSTOM"
|
|
1275
|
-
}
|
|
1276
|
-
export declare const enum PushNotificationMessageMessagePriority {
|
|
1277
|
-
NORMAL = "NORMAL",
|
|
1278
|
-
HIGH = "HIGH"
|
|
1279
|
-
}
|
|
1280
|
-
export declare const enum PushNotificationMessageTargetType {
|
|
1281
|
-
DEVICE = "DEVICE",
|
|
1282
|
-
TOPIC = "TOPIC",
|
|
1283
|
-
CONDITION = "CONDITION"
|
|
1284
|
-
}
|
|
1285
|
-
export declare const enum RepeatFrequency {
|
|
1286
|
-
ALWAYS = "ALWAYS",
|
|
1287
|
-
ONCE = "ONCE",
|
|
1288
|
-
HOURLY = "HOURLY",
|
|
1289
|
-
DAILY = "DAILY",
|
|
1290
|
-
WEEKLY = "WEEKLY",
|
|
1291
|
-
MONTHLY = "MONTHLY",
|
|
1292
|
-
ANNUALLY = "ANNUALLY"
|
|
1293
|
-
}
|
|
1294
|
-
export declare const enum AssetQueryAccess {
|
|
1295
|
-
PRIVATE = "PRIVATE",
|
|
1296
|
-
PROTECTED = "PROTECTED",
|
|
1297
|
-
PUBLIC = "PUBLIC"
|
|
1298
|
-
}
|
|
1299
|
-
export declare const enum AssetQueryMatch {
|
|
1300
|
-
EXACT = "EXACT",
|
|
1301
|
-
BEGIN = "BEGIN",
|
|
1302
|
-
END = "END",
|
|
1303
|
-
CONTAINS = "CONTAINS"
|
|
1304
|
-
}
|
|
1305
|
-
export declare const enum AssetQueryNumberType {
|
|
1306
|
-
DOUBLE = "DOUBLE",
|
|
1307
|
-
INTEGER = "INTEGER"
|
|
1308
|
-
}
|
|
1309
|
-
export declare const enum AssetQueryOperator {
|
|
1310
|
-
EQUALS = "EQUALS",
|
|
1311
|
-
GREATER_THAN = "GREATER_THAN",
|
|
1312
|
-
GREATER_EQUALS = "GREATER_EQUALS",
|
|
1313
|
-
LESS_THAN = "LESS_THAN",
|
|
1314
|
-
LESS_EQUALS = "LESS_EQUALS",
|
|
1315
|
-
BETWEEN = "BETWEEN"
|
|
1316
|
-
}
|
|
1317
|
-
export declare const enum AssetQueryOrderBy$Property {
|
|
1318
|
-
CREATED_ON = "CREATED_ON",
|
|
1319
|
-
NAME = "NAME",
|
|
1320
|
-
ASSET_TYPE = "ASSET_TYPE",
|
|
1321
|
-
PARENT_ID = "PARENT_ID",
|
|
1322
|
-
REALM = "REALM"
|
|
1323
|
-
}
|
|
1324
|
-
export declare const enum LogicGroupOperator {
|
|
1325
|
-
AND = "AND",
|
|
1326
|
-
OR = "OR"
|
|
1327
|
-
}
|
|
1328
|
-
export declare const enum RulesEngineStatus {
|
|
1329
|
-
STOPPED = "STOPPED",
|
|
1330
|
-
RUNNING = "RUNNING",
|
|
1331
|
-
ERROR = "ERROR"
|
|
1332
|
-
}
|
|
1333
|
-
export declare const enum RulesetLang {
|
|
1334
|
-
JAVASCRIPT = "JAVASCRIPT",
|
|
1335
|
-
GROOVY = "GROOVY",
|
|
1336
|
-
JSON = "JSON",
|
|
1337
|
-
FLOW = "FLOW"
|
|
1338
|
-
}
|
|
1339
|
-
export declare const enum RulesetStatus {
|
|
1340
|
-
READY = "READY",
|
|
1341
|
-
DEPLOYED = "DEPLOYED",
|
|
1342
|
-
COMPILATION_ERROR = "COMPILATION_ERROR",
|
|
1343
|
-
EXECUTION_ERROR = "EXECUTION_ERROR",
|
|
1344
|
-
LOOP_ERROR = "LOOP_ERROR",
|
|
1345
|
-
DISABLED = "DISABLED",
|
|
1346
|
-
PAUSED = "PAUSED",
|
|
1347
|
-
EXPIRED = "EXPIRED",
|
|
1348
|
-
REMOVED = "REMOVED",
|
|
1349
|
-
EMPTY = "EMPTY"
|
|
1350
|
-
}
|
|
1351
|
-
export declare const enum NodeDataType {
|
|
1352
|
-
NUMBER = "NUMBER",
|
|
1353
|
-
STRING = "STRING",
|
|
1354
|
-
BOOLEAN = "BOOLEAN",
|
|
1355
|
-
TRIGGER = "TRIGGER",
|
|
1356
|
-
COLOR = "COLOR",
|
|
1357
|
-
ANY = "ANY"
|
|
1358
|
-
}
|
|
1359
|
-
export declare const enum NodeType {
|
|
1360
|
-
INPUT = "INPUT",
|
|
1361
|
-
PROCESSOR = "PROCESSOR",
|
|
1362
|
-
OUTPUT = "OUTPUT",
|
|
1363
|
-
THEN = "THEN"
|
|
1364
|
-
}
|
|
1365
|
-
export declare const enum PickerType {
|
|
1366
|
-
TEXT = "TEXT",
|
|
1367
|
-
MULTILINE = "MULTILINE",
|
|
1368
|
-
NUMBER = "NUMBER",
|
|
1369
|
-
DROPDOWN = "DROPDOWN",
|
|
1370
|
-
DOUBLE_DROPDOWN = "DOUBLE_DROPDOWN",
|
|
1371
|
-
CHECKBOX = "CHECKBOX",
|
|
1372
|
-
ASSET_ATTRIBUTE = "ASSET_ATTRIBUTE",
|
|
1373
|
-
COLOR = "COLOR"
|
|
1374
|
-
}
|
|
1375
|
-
export declare const enum RuleActionUpdateAttributeUpdateAction {
|
|
1376
|
-
ADD = "ADD",
|
|
1377
|
-
ADD_OR_REPLACE = "ADD_OR_REPLACE",
|
|
1378
|
-
REPLACE = "REPLACE",
|
|
1379
|
-
DELETE = "DELETE",
|
|
1380
|
-
CLEAR = "CLEAR"
|
|
1381
|
-
}
|
|
1382
|
-
export declare const enum RuleRecurrenceScope {
|
|
1383
|
-
PER_ASSET = "PER_ASSET",
|
|
1384
|
-
GLOBAL = "GLOBAL"
|
|
1385
|
-
}
|
|
1386
|
-
export declare const enum ClientRole {
|
|
1387
|
-
READ_ADMIN = "read:admin",
|
|
1388
|
-
READ_LOGS = "read:logs",
|
|
1389
|
-
READ_USERS = "read:users",
|
|
1390
|
-
READ_MAP = "read:map",
|
|
1391
|
-
READ_ASSETS = "read:assets",
|
|
1392
|
-
READ_RULES = "read:rules",
|
|
1393
|
-
READ_APPS = "read:apps",
|
|
1394
|
-
WRITE_USER = "write:user",
|
|
1395
|
-
WRITE_ADMIN = "write:admin",
|
|
1396
|
-
WRITE_LOGS = "write:logs",
|
|
1397
|
-
WRITE_ASSETS = "write:assets",
|
|
1398
|
-
WRITE_ATTRIBUTES = "write:attributes",
|
|
1399
|
-
WRITE_RULES = "write:rules",
|
|
1400
|
-
READ = "read",
|
|
1401
|
-
WRITE = "write"
|
|
1402
|
-
}
|
|
1403
|
-
export declare const enum SyslogCategory {
|
|
1404
|
-
ASSET = "ASSET",
|
|
1405
|
-
AGENT = "AGENT",
|
|
1406
|
-
NOTIFICATION = "NOTIFICATION",
|
|
1407
|
-
RULES = "RULES",
|
|
1408
|
-
PROTOCOL = "PROTOCOL",
|
|
1409
|
-
GATEWAY = "GATEWAY"
|
|
1410
|
-
}
|
|
1411
|
-
export declare const enum SyslogLevel {
|
|
1412
|
-
INFO = "INFO",
|
|
1413
|
-
WARN = "WARN",
|
|
1414
|
-
ERROR = "ERROR"
|
|
1415
|
-
}
|
|
1416
|
-
export declare const enum ConstraintViolationType {
|
|
1417
|
-
CLASS = "CLASS",
|
|
1418
|
-
FIELD = "FIELD",
|
|
1419
|
-
PROPERTY = "PROPERTY",
|
|
1420
|
-
PARAMETER = "PARAMETER",
|
|
1421
|
-
RETURN_VALUE = "RETURN_VALUE"
|
|
1422
|
-
}
|
|
1423
|
-
export declare const enum ValueType {
|
|
1424
|
-
ANY = "ANY",
|
|
1425
|
-
OBJECT = "OBJECT",
|
|
1426
|
-
ARRAY = "ARRAY",
|
|
1427
|
-
STRING = "STRING",
|
|
1428
|
-
NUMBER = "NUMBER",
|
|
1429
|
-
BOOLEAN = "BOOLEAN"
|
|
1430
|
-
}
|
|
1431
|
-
export declare class ValueHolderValueFailureReason implements ValidationFailureReason {
|
|
1432
|
-
readonly name: string;
|
|
1433
|
-
static readonly VALUE_PERCENTAGE_OUT_OF_RANGE: ValueHolderValueFailureReason;
|
|
1434
|
-
static readonly VALUE_INVALID_COLOR_FORMAT: ValueHolderValueFailureReason;
|
|
1435
|
-
static readonly VALUE_TEMPERATURE_OUT_OF_RANGE: ValueHolderValueFailureReason;
|
|
1436
|
-
static readonly VALUE_NUMBER_OUT_OF_RANGE: ValueHolderValueFailureReason;
|
|
1437
|
-
static readonly VALUE_INVALID_EMAIL_FORMAT: ValueHolderValueFailureReason;
|
|
1438
|
-
static readonly VALUE_INVALID: ValueHolderValueFailureReason;
|
|
1439
|
-
static readonly VALUE_MISMATCH: ValueHolderValueFailureReason;
|
|
1440
|
-
static readonly VALUE_REQUIRED: ValueHolderValueFailureReason;
|
|
1441
|
-
static readonly VALUE_SOUND_OUT_OF_RANGE: ValueHolderValueFailureReason;
|
|
1442
|
-
private constructor();
|
|
1443
|
-
toString(): string;
|
|
1444
|
-
}
|
|
1445
|
-
export declare class AssetAssetTypeFailureReason implements ValidationFailureReason {
|
|
1446
|
-
readonly name: string;
|
|
1447
|
-
static readonly ASSET_TYPE_MISMATCH: AssetAssetTypeFailureReason;
|
|
1448
|
-
static readonly ASSET_TYPE_NOT_SUPPORTED: AssetAssetTypeFailureReason;
|
|
1449
|
-
private constructor();
|
|
1450
|
-
toString(): string;
|
|
1451
|
-
}
|
|
1452
|
-
export declare class ProtocolConfigurationValidationFailureReason implements ValidationFailureReason {
|
|
1453
|
-
readonly name: string;
|
|
1454
|
-
static readonly VALUE_NOT_A_VALID_PROTOCOL_URN: ProtocolConfigurationValidationFailureReason;
|
|
1455
|
-
private constructor();
|
|
1456
|
-
toString(): string;
|
|
1457
|
-
}
|
|
1458
|
-
export declare class AttributeAttributeFailureReason implements ValidationFailureReason {
|
|
1459
|
-
readonly name: string;
|
|
1460
|
-
static readonly ATTRIBUTE_NAME_INVALID: AttributeAttributeFailureReason;
|
|
1461
|
-
static readonly ATTRIBUTE_TYPE_MISSING: AttributeAttributeFailureReason;
|
|
1462
|
-
static readonly ATTRIBUTE_VALUE_TIMESTAMP_MISSING: AttributeAttributeFailureReason;
|
|
1463
|
-
private constructor();
|
|
1464
|
-
toString(): string;
|
|
1465
|
-
}
|
|
1466
|
-
export declare class AttributeValueTypeAttributeValueTypeFailureReason implements ValidationFailureReason {
|
|
1467
|
-
readonly name: string;
|
|
1468
|
-
static readonly ATTRIBUTE_TYPE_VALUE_DOES_NOT_MATCH: AttributeValueTypeAttributeValueTypeFailureReason;
|
|
1469
|
-
private constructor();
|
|
1470
|
-
toString(): string;
|
|
1471
|
-
}
|
|
1472
|
-
export declare class MetaItemMetaItemFailureReason implements ValidationFailureReason {
|
|
1473
|
-
readonly name: string;
|
|
1474
|
-
static readonly META_ITEM_NAME_IS_REQUIRED: MetaItemMetaItemFailureReason;
|
|
1475
|
-
static readonly META_ITEM_VALUE_IS_REQUIRED: MetaItemMetaItemFailureReason;
|
|
1476
|
-
static readonly META_ITEM_MISSING: MetaItemMetaItemFailureReason;
|
|
1477
|
-
static readonly META_ITEM_DUPLICATION: MetaItemMetaItemFailureReason;
|
|
1478
|
-
static readonly META_ITEM_VALUE_MISMATCH: MetaItemMetaItemFailureReason;
|
|
1479
|
-
private constructor();
|
|
1480
|
-
toString(): string;
|
|
1481
|
-
}
|
|
1482
|
-
export declare class MetaItemType implements MetaItemDescriptor {
|
|
1483
|
-
readonly name: string;
|
|
1484
|
-
readonly isSecret?: boolean | undefined;
|
|
1485
|
-
readonly urn?: string | undefined;
|
|
1486
|
-
readonly access?: MetaItemDescriptorAccess | undefined;
|
|
1487
|
-
readonly valueType?: ValueType | undefined;
|
|
1488
|
-
readonly initialValue?: any;
|
|
1489
|
-
readonly allowedMin?: any;
|
|
1490
|
-
readonly allowedMax?: any;
|
|
1491
|
-
readonly allowedValues?: any[] | undefined;
|
|
1492
|
-
readonly valueFixed?: boolean | undefined;
|
|
1493
|
-
readonly maxPerAttribute?: number | undefined;
|
|
1494
|
-
readonly required?: boolean | undefined;
|
|
1495
|
-
readonly pattern?: string | undefined;
|
|
1496
|
-
readonly patternFailureMessage?: string | undefined;
|
|
1497
|
-
static readonly PROTOCOL_CONFIGURATION: MetaItemType;
|
|
1498
|
-
static readonly AGENT_LINK: MetaItemType;
|
|
1499
|
-
static readonly ATTRIBUTE_LINK: MetaItemType;
|
|
1500
|
-
static readonly LABEL: MetaItemType;
|
|
1501
|
-
static readonly SHOW_ON_DASHBOARD: MetaItemType;
|
|
1502
|
-
static readonly FORMAT: MetaItemType;
|
|
1503
|
-
static readonly DESCRIPTION: MetaItemType;
|
|
1504
|
-
static readonly ABOUT: MetaItemType;
|
|
1505
|
-
static readonly READ_ONLY: MetaItemType;
|
|
1506
|
-
static readonly ACCESS_RESTRICTED_READ: MetaItemType;
|
|
1507
|
-
static readonly ACCESS_RESTRICTED_WRITE: MetaItemType;
|
|
1508
|
-
static readonly ACCESS_PUBLIC_READ: MetaItemType;
|
|
1509
|
-
static readonly ACCESS_PUBLIC_WRITE: MetaItemType;
|
|
1510
|
-
static readonly RANGE_MIN: MetaItemType;
|
|
1511
|
-
static readonly RANGE_MAX: MetaItemType;
|
|
1512
|
-
static readonly STEP: MetaItemType;
|
|
1513
|
-
static readonly PATTERN: MetaItemType;
|
|
1514
|
-
static readonly MULTILINE: MetaItemType;
|
|
1515
|
-
static readonly STORE_DATA_POINTS: MetaItemType;
|
|
1516
|
-
static readonly DATA_POINTS_MAX_AGE_DAYS: MetaItemType;
|
|
1517
|
-
static readonly RULE_STATE: MetaItemType;
|
|
1518
|
-
static readonly RULE_EVENT: MetaItemType;
|
|
1519
|
-
static readonly RULE_EVENT_EXPIRES: MetaItemType;
|
|
1520
|
-
static readonly DISABLED: MetaItemType;
|
|
1521
|
-
static readonly EXECUTABLE: MetaItemType;
|
|
1522
|
-
static readonly ALLOWED_VALUES: MetaItemType;
|
|
1523
|
-
static readonly UNIT_TYPE: MetaItemType;
|
|
1524
|
-
static readonly HAS_PREDICTED_DATA_POINTS: MetaItemType;
|
|
1525
|
-
static readonly SECRET: MetaItemType;
|
|
1526
|
-
private constructor();
|
|
1527
|
-
toString(): string;
|
|
1528
|
-
}
|
|
1529
|
-
export declare class AttributeValueType implements AttributeValueDescriptor {
|
|
1530
|
-
readonly name: string;
|
|
1531
|
-
readonly icon?: string | undefined;
|
|
1532
|
-
readonly valueType?: ValueType | undefined;
|
|
1533
|
-
readonly metaItemDescriptors?: MetaItemDescriptor[] | undefined;
|
|
1534
|
-
static readonly STRING: AttributeValueType;
|
|
1535
|
-
static readonly NUMBER: AttributeValueType;
|
|
1536
|
-
static readonly INTEGER: AttributeValueType;
|
|
1537
|
-
static readonly BOOLEAN: AttributeValueType;
|
|
1538
|
-
static readonly SWITCH_TOGGLE: AttributeValueType;
|
|
1539
|
-
static readonly SWITCH_MOMENTARY: AttributeValueType;
|
|
1540
|
-
static readonly OBJECT: AttributeValueType;
|
|
1541
|
-
static readonly ARRAY: AttributeValueType;
|
|
1542
|
-
static readonly PERCENTAGE: AttributeValueType;
|
|
1543
|
-
static readonly LEVEL_UINT8: AttributeValueType;
|
|
1544
|
-
static readonly TIMESTAMP: AttributeValueType;
|
|
1545
|
-
static readonly TIMESTAMP_ISO8601: AttributeValueType;
|
|
1546
|
-
static readonly DURATION: AttributeValueType;
|
|
1547
|
-
static readonly DURATION_STRING: AttributeValueType;
|
|
1548
|
-
static readonly COLOR_RGB: AttributeValueType;
|
|
1549
|
-
static readonly COLOR_RGBW: AttributeValueType;
|
|
1550
|
-
static readonly COLOR_ARGB: AttributeValueType;
|
|
1551
|
-
static readonly COLOR_HEX: AttributeValueType;
|
|
1552
|
-
static readonly SOUND: AttributeValueType;
|
|
1553
|
-
static readonly TEMPERATURE: AttributeValueType;
|
|
1554
|
-
static readonly CURRENCY: AttributeValueType;
|
|
1555
|
-
static readonly RAINFALL: AttributeValueType;
|
|
1556
|
-
static readonly BRIGHTNESS: AttributeValueType;
|
|
1557
|
-
static readonly DISTANCE: AttributeValueType;
|
|
1558
|
-
static readonly SPEED: AttributeValueType;
|
|
1559
|
-
static readonly CO2: AttributeValueType;
|
|
1560
|
-
static readonly HUMIDITY: AttributeValueType;
|
|
1561
|
-
static readonly POWER: AttributeValueType;
|
|
1562
|
-
static readonly CHARGE: AttributeValueType;
|
|
1563
|
-
static readonly ENERGY: AttributeValueType;
|
|
1564
|
-
static readonly FLOW: AttributeValueType;
|
|
1565
|
-
static readonly DIRECTION: AttributeValueType;
|
|
1566
|
-
static readonly GEO_JSON_POINT: AttributeValueType;
|
|
1567
|
-
static readonly EMAIL: AttributeValueType;
|
|
1568
|
-
static readonly RULES_TEMPLATE_FILTER: AttributeValueType;
|
|
1569
|
-
static readonly ASSET_STATUS: AttributeValueType;
|
|
1570
|
-
static readonly CALENDAR_EVENT: AttributeValueType;
|
|
1571
|
-
static readonly EXECUTION_STATUS: AttributeValueType;
|
|
1572
|
-
static readonly CONNECTION_STATUS: AttributeValueType;
|
|
1573
|
-
static readonly MASS: AttributeValueType;
|
|
1574
|
-
static readonly DENSITY: AttributeValueType;
|
|
1575
|
-
static readonly RATE: AttributeValueType;
|
|
1576
|
-
private constructor();
|
|
1577
|
-
toString(): string;
|
|
1578
|
-
}
|
|
1579
|
-
export declare class AttributeType implements AttributeDescriptor {
|
|
1580
|
-
readonly name: string;
|
|
1581
|
-
readonly attributeName?: string | undefined;
|
|
1582
|
-
readonly valueDescriptor?: AttributeValueDescriptor | undefined;
|
|
1583
|
-
readonly initialValue?: any;
|
|
1584
|
-
readonly metaItemDescriptors?: MetaItemDescriptor[] | undefined;
|
|
1585
|
-
static readonly CONSOLE_NAME: AttributeType;
|
|
1586
|
-
static readonly CONSOLE_VERSION: AttributeType;
|
|
1587
|
-
static readonly CONSOLE_PLATFORM: AttributeType;
|
|
1588
|
-
static readonly CONSOLE_PROVIDERS: AttributeType;
|
|
1589
|
-
static readonly EMAIL: AttributeType;
|
|
1590
|
-
static readonly GEO_CITY: AttributeType;
|
|
1591
|
-
static readonly GEO_COUNTRY: AttributeType;
|
|
1592
|
-
static readonly GEO_POSTAL_CODE: AttributeType;
|
|
1593
|
-
static readonly GEO_STREET: AttributeType;
|
|
1594
|
-
static readonly LOCATION: AttributeType;
|
|
1595
|
-
static readonly SURFACE_AREA: AttributeType;
|
|
1596
|
-
static readonly ASSET_STATUS: AttributeType;
|
|
1597
|
-
static readonly TAGS: AttributeType;
|
|
1598
|
-
private constructor();
|
|
1599
|
-
toString(): string;
|
|
1600
|
-
}
|
|
1601
|
-
export declare class AssetType implements AssetDescriptor {
|
|
1602
|
-
readonly name: string;
|
|
1603
|
-
readonly type?: string | undefined;
|
|
1604
|
-
readonly icon?: string | undefined;
|
|
1605
|
-
readonly color?: string | undefined;
|
|
1606
|
-
readonly accessPublicRead?: boolean | undefined;
|
|
1607
|
-
readonly attributeDescriptors?: AttributeDescriptor[] | undefined;
|
|
1608
|
-
static readonly BUILDING: AssetType;
|
|
1609
|
-
static readonly CITY: AssetType;
|
|
1610
|
-
static readonly AREA: AssetType;
|
|
1611
|
-
static readonly FLOOR: AssetType;
|
|
1612
|
-
static readonly RESIDENCE: AssetType;
|
|
1613
|
-
static readonly ROOM: AssetType;
|
|
1614
|
-
static readonly AGENT: AssetType;
|
|
1615
|
-
static readonly CONSOLE: AssetType;
|
|
1616
|
-
static readonly MICROPHONE: AssetType;
|
|
1617
|
-
static readonly SOUND_EVENT: AssetType;
|
|
1618
|
-
static readonly ENVIRONMENT_SENSOR: AssetType;
|
|
1619
|
-
static readonly LIGHT: AssetType;
|
|
1620
|
-
static readonly LIGHT_CONTROLLER: AssetType;
|
|
1621
|
-
static readonly PARKING: AssetType;
|
|
1622
|
-
static readonly GROUNDWATER: AssetType;
|
|
1623
|
-
static readonly PEOPLE_COUNTER: AssetType;
|
|
1624
|
-
static readonly GATEWAY: AssetType;
|
|
1625
|
-
static readonly GROUP: AssetType;
|
|
1626
|
-
static readonly THING: AssetType;
|
|
1627
|
-
static readonly ELECTRICITY_CONSUMER: AssetType;
|
|
1628
|
-
static readonly ELECTRICITY_CHARGER: AssetType;
|
|
1629
|
-
static readonly ELECTRICITY_PRODUCER: AssetType;
|
|
1630
|
-
static readonly ELECTRICITY_STORAGE: AssetType;
|
|
1631
|
-
static readonly ELECTRICITY_SUPPLIER: AssetType;
|
|
1632
|
-
static readonly WEATHER: AssetType;
|
|
1633
|
-
private constructor();
|
|
1634
|
-
toString(): string;
|
|
1635
|
-
}
|
|
1636
|
-
export declare class ConsoleConfigurationValidationFailureReason implements ValidationFailureReason {
|
|
1637
|
-
readonly name: string;
|
|
1638
|
-
static readonly NAME_MISSING_OR_INVALID: ConsoleConfigurationValidationFailureReason;
|
|
1639
|
-
static readonly VERSION_MISSING_OR_INVALID: ConsoleConfigurationValidationFailureReason;
|
|
1640
|
-
static readonly PLATFORM_MISSING_OR_INVALID: ConsoleConfigurationValidationFailureReason;
|
|
1641
|
-
static readonly PROVIDERS_INVALID: ConsoleConfigurationValidationFailureReason;
|
|
1642
|
-
private constructor();
|
|
1643
|
-
toString(): string;
|
|
1644
|
-
}
|