@ixon-cdk/types 1.3.0-next.0 → 1.3.0-next.1
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/README.md +1 -1
- package/dist/component-devkit/src/types/src/index.d.ts +2 -0
- package/dist/types/component-context/index.d.ts +24 -4
- package/dist/types/component-context/input.d.ts +4 -2
- package/dist/types/ixapi/resources/access-recover.d.ts +10 -0
- package/dist/types/ixapi/resources/access-token.d.ts +29 -0
- package/dist/types/ixapi/resources/agent-activate.d.ts +9 -0
- package/dist/types/ixapi/resources/agent-config.d.ts +125 -0
- package/dist/types/ixapi/resources/agent-data-alarm.d.ts +44 -0
- package/dist/types/ixapi/resources/agent-data-alarming-app.d.ts +7 -0
- package/dist/types/ixapi/resources/agent-data-condition.d.ts +11 -0
- package/dist/types/ixapi/resources/agent-data-logging-app.d.ts +7 -0
- package/dist/types/ixapi/resources/agent-data-monitor.d.ts +6 -0
- package/dist/types/ixapi/resources/agent-data-report.d.ts +8 -0
- package/dist/types/ixapi/resources/agent-data-source.d.ts +16 -0
- package/dist/types/ixapi/resources/agent-data-tag.d.ts +22 -0
- package/dist/types/ixapi/resources/agent-data-variable.d.ts +24 -0
- package/dist/types/ixapi/resources/agent-device.d.ts +11 -0
- package/dist/types/ixapi/resources/agent-mdr-server.d.ts +4 -0
- package/dist/types/ixapi/resources/agent-membership.d.ts +6 -0
- package/dist/types/ixapi/resources/agent-network-value.d.ts +5 -0
- package/dist/types/ixapi/resources/agent-pull.d.ts +4 -0
- package/dist/types/ixapi/resources/agent-queue-report.d.ts +16 -0
- package/dist/types/ixapi/resources/agent-router-lan-wan-access-rule.d.ts +11 -0
- package/dist/types/ixapi/resources/agent-router-vpn-access-rule.d.ts +8 -0
- package/dist/types/ixapi/resources/agent-server.d.ts +26 -0
- package/dist/types/ixapi/resources/agent-template.d.ts +3 -0
- package/dist/types/ixapi/resources/agent-type-file.d.ts +10 -0
- package/dist/types/ixapi/resources/agent-type.d.ts +24 -0
- package/dist/types/ixapi/resources/agent.d.ts +151 -0
- package/dist/types/ixapi/resources/alarming-app.d.ts +5 -0
- package/dist/types/ixapi/resources/app-config.d.ts +4 -0
- package/dist/types/ixapi/resources/asset-app-config.d.ts +8 -0
- package/dist/types/ixapi/resources/asset-membership.d.ts +6 -0
- package/dist/types/ixapi/resources/asset-type.d.ts +5 -0
- package/dist/types/ixapi/resources/asset.d.ts +22 -0
- package/dist/types/ixapi/resources/audience.d.ts +6 -0
- package/dist/types/ixapi/resources/audit-log.d.ts +20 -0
- package/dist/types/ixapi/resources/auth-token.d.ts +5 -0
- package/dist/types/ixapi/resources/backend-component-function.d.ts +10 -0
- package/dist/types/ixapi/resources/backend-component-template-config.d.ts +10 -0
- package/dist/types/ixapi/resources/backend-component-template-share.d.ts +5 -0
- package/dist/types/ixapi/resources/backend-component-template-version.d.ts +16 -0
- package/dist/types/ixapi/resources/backend-component-template.d.ts +10 -0
- package/dist/types/ixapi/resources/branding.d.ts +27 -0
- package/dist/types/ixapi/resources/company.d.ts +56 -0
- package/dist/types/ixapi/resources/component-input.d.ts +32 -0
- package/dist/types/ixapi/resources/custom-property.d.ts +47 -0
- package/dist/types/ixapi/resources/data-protocol-applied.d.ts +72 -0
- package/dist/types/ixapi/resources/data-protocol.d.ts +17 -0
- package/dist/types/ixapi/resources/data.d.ts +43 -0
- package/dist/types/ixapi/resources/demo-device.d.ts +8 -0
- package/dist/types/ixapi/resources/discovery.d.ts +4 -0
- package/dist/types/ixapi/resources/email-address-change.d.ts +9 -0
- package/dist/types/ixapi/resources/file.d.ts +4 -0
- package/dist/types/ixapi/resources/group-role.d.ts +6 -0
- package/dist/types/ixapi/resources/group-type.d.ts +6 -0
- package/dist/types/ixapi/resources/group.d.ts +11 -0
- package/dist/types/ixapi/resources/historical-data-usage.d.ts +3 -0
- package/dist/types/ixapi/resources/index.d.ts +103 -0
- package/dist/types/ixapi/resources/invite.d.ts +25 -0
- package/dist/types/ixapi/resources/label.d.ts +7 -0
- package/dist/types/ixapi/resources/licence-bundle.d.ts +10 -0
- package/dist/types/ixapi/resources/licence-type.d.ts +13 -0
- package/dist/types/ixapi/resources/licence.d.ts +27 -0
- package/dist/types/ixapi/resources/location.d.ts +11 -0
- package/dist/types/ixapi/resources/logging-app.d.ts +5 -0
- package/dist/types/ixapi/resources/lsi-server.d.ts +4 -0
- package/dist/types/ixapi/resources/menu-item.d.ts +8 -0
- package/dist/types/ixapi/resources/message-filter.d.ts +18 -0
- package/dist/types/ixapi/resources/message.d.ts +35 -0
- package/dist/types/ixapi/resources/mqtt-broker-client.d.ts +11 -0
- package/dist/types/ixapi/resources/mqtt-broker.d.ts +12 -0
- package/dist/types/ixapi/resources/object-storage.d.ts +40 -0
- package/dist/types/ixapi/resources/otp-auth.d.ts +13 -0
- package/dist/types/ixapi/resources/page-component-template-category.d.ts +5 -0
- package/dist/types/ixapi/resources/page-component-template-config.d.ts +7 -0
- package/dist/types/ixapi/resources/page-component-template-manifest.d.ts +57 -0
- package/dist/types/ixapi/resources/page-component-template-version.d.ts +10 -0
- package/dist/types/ixapi/resources/page-component-template.d.ts +25 -0
- package/dist/types/ixapi/resources/page-component.d.ts +44 -0
- package/dist/types/ixapi/resources/page-link-group.d.ts +7 -0
- package/dist/types/ixapi/resources/page-link.d.ts +12 -0
- package/dist/types/ixapi/resources/page-page.d.ts +6 -0
- package/dist/types/ixapi/resources/page-version.d.ts +22 -0
- package/dist/types/ixapi/resources/page.d.ts +17 -0
- package/dist/types/ixapi/resources/password-change.d.ts +5 -0
- package/dist/types/ixapi/resources/permission.d.ts +3 -0
- package/dist/types/ixapi/resources/platform-server.d.ts +8 -0
- package/dist/types/ixapi/resources/policy.d.ts +23 -0
- package/dist/types/ixapi/resources/registration.d.ts +26 -0
- package/dist/types/ixapi/resources/report-schedule.d.ts +37 -0
- package/dist/types/ixapi/resources/res-link.d.ts +6 -0
- package/dist/types/ixapi/resources/role.d.ts +9 -0
- package/dist/types/ixapi/resources/rsc-server.d.ts +6 -0
- package/dist/types/ixapi/resources/sector.d.ts +31 -0
- package/dist/types/ixapi/resources/sso-authentication.d.ts +12 -0
- package/dist/types/ixapi/resources/sso-identity-provider.d.ts +7 -0
- package/dist/types/ixapi/resources/support-access.d.ts +5 -0
- package/dist/types/ixapi/resources/translation.d.ts +7 -0
- package/dist/types/ixapi/resources/user-membership.d.ts +11 -0
- package/dist/types/ixapi/resources/user-push-device.d.ts +10 -0
- package/dist/types/ixapi/resources/user.d.ts +55 -0
- package/dist/types/ixapi/resources/vpn-protocol.d.ts +1 -0
- package/dist/types/ixapi/resources/vpn-usage.d.ts +11 -0
- package/dist/types/ixapi/resources/web-access.d.ts +3 -0
- package/dist/types/ixapi/resources/webhook-subscription.d.ts +7 -0
- package/dist/types/ixapi/resources/webhook-trigger.d.ts +12 -0
- package/dist/types/logging-data/logging-data-value.d.ts +1 -0
- package/dist/types/object-storage/index.d.ts +1 -0
- package/dist/types/object-storage/object-storage-client.d.ts +58 -0
- package/dist/types/resource-data/resource-data-client.d.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
# IXON Component Development Kit Types
|
|
2
2
|
|
|
3
|
-
This package can be used with the IXON Component Development Kit (CDK). It contains Type Definitions that can be used when you develop
|
|
3
|
+
This package can be used with the IXON Component Development Kit (CDK). It contains Type Definitions that can be used when you develop UI Components using [TypeScript](https://www.typescriptlang.org/).
|
|
@@ -2,6 +2,8 @@ export * from '../../../../types/component-context';
|
|
|
2
2
|
export * from '../../../../types/backend-component';
|
|
3
3
|
export * from '../../../../types/component-context';
|
|
4
4
|
export * from '../../../../types/ixapi';
|
|
5
|
+
export * from '../../../../types/ixapi/resources';
|
|
5
6
|
export * from '../../../../types/logging-data';
|
|
7
|
+
export * from '../../../../types/object-storage';
|
|
6
8
|
export * from '../../../../types/resource-data';
|
|
7
9
|
export * from '../../../../types/vpn-client';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/** @module ComponentContext */
|
|
2
2
|
import type { BackendComponentClient } from '../backend-component';
|
|
3
3
|
import type { LoggingDataClient, LoggingDataTimeRange } from '../logging-data';
|
|
4
|
+
import type { ObjectStorageClient } from '../object-storage';
|
|
4
5
|
import type { ResourceDataClient } from '../resource-data';
|
|
5
6
|
import type { VpnClientStatus } from '../vpn-client';
|
|
6
7
|
import type { ComponentContextAppData } from './app-data';
|
|
@@ -88,6 +89,16 @@ export interface ComponentContext<ComponentContextInputs extends object = {
|
|
|
88
89
|
* Every time this method is called, a new client is created.
|
|
89
90
|
*/
|
|
90
91
|
createLoggingDataClient(): LoggingDataClient;
|
|
92
|
+
/**
|
|
93
|
+
* Creates a client to communicate with object storage.
|
|
94
|
+
*
|
|
95
|
+
* Every time this method is called, a new client is created.
|
|
96
|
+
*
|
|
97
|
+
* @experimental This feature is in development. It might not be supported in your environment
|
|
98
|
+
* and might also be removed without prior notice.
|
|
99
|
+
* @ignore
|
|
100
|
+
*/
|
|
101
|
+
createObjectStorageClient(): ObjectStorageClient;
|
|
91
102
|
/**
|
|
92
103
|
* Creates a client to retrieve resource data.
|
|
93
104
|
*
|
|
@@ -100,8 +111,6 @@ export interface ComponentContext<ComponentContextInputs extends object = {
|
|
|
100
111
|
* @param target the target element
|
|
101
112
|
* @param options configures the tooltip message and other (optional) properties
|
|
102
113
|
* @returns returns the tooltip instance
|
|
103
|
-
*
|
|
104
|
-
* @experimental
|
|
105
114
|
*/
|
|
106
115
|
createTooltip(target: HTMLElement, options: TooltipOptions): Tooltip;
|
|
107
116
|
/**
|
|
@@ -194,12 +203,23 @@ export interface ComponentContext<ComponentContextInputs extends object = {
|
|
|
194
203
|
*/
|
|
195
204
|
toggleVpn(agentId: string): void;
|
|
196
205
|
/**
|
|
197
|
-
* Translate a key to the
|
|
206
|
+
* Translate a key to the user's language.
|
|
198
207
|
*
|
|
199
208
|
* @param key
|
|
200
209
|
* @param interpolateParams
|
|
210
|
+
* @param options
|
|
211
|
+
*/
|
|
212
|
+
translate(key: string, interpolateParams?: Object, options?: TranslateOptions): string;
|
|
213
|
+
translate<T extends string>(key: T[], interpolateParams?: Object, options?: TranslateOptions): Record<T, string>;
|
|
214
|
+
translate<T extends string>(key: string | T[], interpolateParams?: Object, options?: TranslateOptions): string | Record<T, string>;
|
|
215
|
+
}
|
|
216
|
+
export interface TranslateOptions {
|
|
217
|
+
/**
|
|
218
|
+
* Indicates in which translation source or sources the translation will be looked up. When provided as a list, the order defines which source takes precedence over another.
|
|
219
|
+
*
|
|
220
|
+
* Defaults to `["custom", "global"]`
|
|
201
221
|
*/
|
|
202
|
-
|
|
222
|
+
source?: 'custom' | 'global' | ('custom' | 'global')[];
|
|
203
223
|
}
|
|
204
224
|
/**
|
|
205
225
|
* A ComponentContext factory is injected into each component. Through this factory, a ComponentContext instance can be constructed.
|
|
@@ -1,11 +1,13 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
aggregator: string;
|
|
1
|
+
export interface ComponentContextRawMetricInput {
|
|
3
2
|
decimals: number | null;
|
|
4
3
|
factor: number | null;
|
|
5
4
|
selector: string;
|
|
6
5
|
transform: null;
|
|
7
6
|
unit: string | null;
|
|
8
7
|
}
|
|
8
|
+
export interface ComponentContextAggregatedMetricInput extends ComponentContextRawMetricInput {
|
|
9
|
+
aggregator: string;
|
|
10
|
+
}
|
|
9
11
|
export interface ComponentContextLiveMetricInput {
|
|
10
12
|
decimals: number | null;
|
|
11
13
|
factor: number | null;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { GeoLocation } from './location';
|
|
2
|
+
import type { SsoAuthentication } from './sso-authentication';
|
|
3
|
+
import type { MyUser } from './user';
|
|
4
|
+
export interface AccessToken {
|
|
5
|
+
created?: {
|
|
6
|
+
ip?: string;
|
|
7
|
+
/** I.e. "2019-01-01T12:00:00Z" */
|
|
8
|
+
on?: string;
|
|
9
|
+
userAgent?: string;
|
|
10
|
+
};
|
|
11
|
+
/** I.e. "2019-01-01T12:00:00Z" */
|
|
12
|
+
expiresOn?: string;
|
|
13
|
+
geoLocation?: GeoLocation | null;
|
|
14
|
+
publicId: string;
|
|
15
|
+
}
|
|
16
|
+
export interface AccessTokenCreate {
|
|
17
|
+
/** In seconds. */
|
|
18
|
+
expiresIn: number;
|
|
19
|
+
}
|
|
20
|
+
export interface AccessTokenSsoCreate extends AccessTokenCreate {
|
|
21
|
+
ssoAuthentication: SsoAuthentication;
|
|
22
|
+
}
|
|
23
|
+
export interface AccessTokenCreateResponse {
|
|
24
|
+
/** I.e. "2019-01-01T12:00:00Z" */
|
|
25
|
+
expiresOn: string;
|
|
26
|
+
publicId: string;
|
|
27
|
+
secretId: string;
|
|
28
|
+
user: MyUser;
|
|
29
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import type { ResLink } from './res-link';
|
|
2
|
+
export interface AgentConfig {
|
|
3
|
+
agent?: ResLink;
|
|
4
|
+
configFileReported?: string | null;
|
|
5
|
+
configFileReportedCellularPasswordEnabled?: boolean;
|
|
6
|
+
configFileReportedWlanKeyEnabled?: boolean;
|
|
7
|
+
configFileServer?: string | null;
|
|
8
|
+
configPushedOn?: string | null;
|
|
9
|
+
configReportedOn?: string | null;
|
|
10
|
+
/** @deprecated */
|
|
11
|
+
configsAreDifferent?: boolean;
|
|
12
|
+
differentConfigs?: boolean;
|
|
13
|
+
differentStewardConfigs?: boolean;
|
|
14
|
+
/** NOTE: This public ID is identical to the public ID of its linked agent. */
|
|
15
|
+
publicId: string;
|
|
16
|
+
routerAdditionalSubnets?: AgentRouterAdditionalSubnet[];
|
|
17
|
+
routerDisplay?: AgentConfigRouterDisplay | null;
|
|
18
|
+
routerLan?: AgentConfigRouterLan | null;
|
|
19
|
+
routerPortForwards?: AgentRouterPortForward[];
|
|
20
|
+
routerWan?: AgentConfigRouterWan | null;
|
|
21
|
+
stewardConfigFileReported?: string;
|
|
22
|
+
stewardConfigFileServer?: string;
|
|
23
|
+
stewardConfigReportedOn?: string | null;
|
|
24
|
+
/** @deprecated */
|
|
25
|
+
stewardConfigsAreDifferent?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface AgentRouterAdditionalSubnet {
|
|
28
|
+
agent?: ResLink;
|
|
29
|
+
gatewayAddress?: string;
|
|
30
|
+
networkAddress?: string;
|
|
31
|
+
networkMask?: string;
|
|
32
|
+
publicId: string;
|
|
33
|
+
}
|
|
34
|
+
export interface AgentConfigRouterDisplay {
|
|
35
|
+
agent?: ResLink;
|
|
36
|
+
lockEnabled?: boolean;
|
|
37
|
+
lockCode?: string | null;
|
|
38
|
+
}
|
|
39
|
+
export interface AgentConfigRouterLan {
|
|
40
|
+
agent?: ResLink;
|
|
41
|
+
bacnetBbmd?: string[] | null;
|
|
42
|
+
dhcpServerEnabled?: boolean;
|
|
43
|
+
dhcpServerRangeFrom?: string;
|
|
44
|
+
dhcpServerRangeTo?: string;
|
|
45
|
+
forwardLanWan?: AgentConfigRouterForwardLanWan;
|
|
46
|
+
gatewayLessRouting?: boolean;
|
|
47
|
+
ipAddress?: string;
|
|
48
|
+
netMask?: string;
|
|
49
|
+
network?: string;
|
|
50
|
+
udpBroadcastRelayPort?: number[] | null;
|
|
51
|
+
wlanChannel?: number | null /** range between 1-14 */;
|
|
52
|
+
wlanEnable?: boolean | null;
|
|
53
|
+
wlanSsid?: string | null;
|
|
54
|
+
wlanKey?: string | null;
|
|
55
|
+
}
|
|
56
|
+
export type AgentConfigRouterForwardLanWan = 'both' | 'private' | 'public' | 'neither';
|
|
57
|
+
export interface AgentRouterPortForward {
|
|
58
|
+
agent?: ResLink;
|
|
59
|
+
externalPort?: number;
|
|
60
|
+
interface?: 'VPN' | 'WAN';
|
|
61
|
+
publicId: string;
|
|
62
|
+
targetIpAddress?: string;
|
|
63
|
+
targetPort?: number;
|
|
64
|
+
}
|
|
65
|
+
export interface AgentConfigRouterWan {
|
|
66
|
+
/** @deprecated */
|
|
67
|
+
'3gApn'?: string | null;
|
|
68
|
+
/** @deprecated */
|
|
69
|
+
'3gPincode'?: string | null;
|
|
70
|
+
/** @deprecated */
|
|
71
|
+
'3gTrackInterval'?: number;
|
|
72
|
+
/** @deprecated */
|
|
73
|
+
'3gTrackIps'?: string[];
|
|
74
|
+
agent?: ResLink;
|
|
75
|
+
cellularApn?: string | null;
|
|
76
|
+
cellularMtu?: number | null;
|
|
77
|
+
cellularPincode?: string | null;
|
|
78
|
+
cellularPassword?: string | null /** @hidden */;
|
|
79
|
+
cellularTrackInterval?: number;
|
|
80
|
+
cellularTrackIps?: string[];
|
|
81
|
+
cellularUsername?: string | null;
|
|
82
|
+
digitalInputMode?: AgentConfigRouterWanDigitalInputMode;
|
|
83
|
+
dnsServer?: string | null /** @depricated */;
|
|
84
|
+
dnsServers?: string[] | null;
|
|
85
|
+
httpProxyAddress?: string | null;
|
|
86
|
+
httpProxyAuthentication?: 'none' | 'basic' | 'ntlm' | null;
|
|
87
|
+
httpProxyIsSocks5?: boolean | null;
|
|
88
|
+
httpProxyPassword?: string | null /** @hidden */;
|
|
89
|
+
httpProxyPort?: number | null;
|
|
90
|
+
httpProxyUsername?: string | null;
|
|
91
|
+
ipAddress?: string | null;
|
|
92
|
+
ipGateway?: string | null;
|
|
93
|
+
ipNetMask?: string | null;
|
|
94
|
+
ipUseDhcp?: boolean;
|
|
95
|
+
multiwanPolicy?: AgentConfigRouterMultiwanPolicy;
|
|
96
|
+
wanTrackInterval?: number;
|
|
97
|
+
wanTrackIps?: string[];
|
|
98
|
+
wlanDnsServers?: string[] | null;
|
|
99
|
+
wlanIpAddress?: string | null;
|
|
100
|
+
wlanIpGateway?: string | null;
|
|
101
|
+
wlanIpNetMask?: string | null;
|
|
102
|
+
wlanIpUseDhcp?: boolean | null;
|
|
103
|
+
wlanKey?: string | null /** @hidden */;
|
|
104
|
+
wlanSsid?: string | null;
|
|
105
|
+
wlanTrackInterval?: number;
|
|
106
|
+
wlanTrackIps?: string[];
|
|
107
|
+
}
|
|
108
|
+
export interface AgentConfigRouterCellular {
|
|
109
|
+
cellularApn?: string;
|
|
110
|
+
cellularPincode?: string | null;
|
|
111
|
+
cellularMtu?: number | null;
|
|
112
|
+
cellularUsername?: string | null;
|
|
113
|
+
cellularPassword?: string | null;
|
|
114
|
+
}
|
|
115
|
+
export interface AgentConfigRouterWlan {
|
|
116
|
+
wlanKey?: string | null /** @hidden */;
|
|
117
|
+
wlanSsid?: string | null;
|
|
118
|
+
wlanDnsServers?: string[] | null;
|
|
119
|
+
wlanIpAddress?: string | null;
|
|
120
|
+
wlanIpGateway?: string | null;
|
|
121
|
+
wlanIpNetMask?: string | null;
|
|
122
|
+
wlanIpUseDhcp?: boolean | null;
|
|
123
|
+
}
|
|
124
|
+
export type AgentConfigRouterMultiwanPolicy = 'eth_cell_wifi' | 'cell_eth_wifi' | 'eth_wifi_cell' | 'wifi_eth_cell' | 'cell_wifi_eth' | 'wifi_cell_eth';
|
|
125
|
+
export type AgentConfigRouterWanDigitalInputMode = 'disable_vpn_high' | 'disable_vpn_low' | 'disable_wan_high' | 'disable_wan_low' | null;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ResLink } from './res-link';
|
|
2
|
+
import type { User } from './user';
|
|
3
|
+
export interface AgentDataAlarm {
|
|
4
|
+
agent?: ResLink;
|
|
5
|
+
audience?: ResLink | null;
|
|
6
|
+
autoAcknowledge?: boolean | null;
|
|
7
|
+
booleanNormalValue?: boolean | null;
|
|
8
|
+
device?: ResLink;
|
|
9
|
+
/** For example: "$2 8 >=" (when variable 2 is greater than or equal to 8) */
|
|
10
|
+
formula?: string;
|
|
11
|
+
name?: string;
|
|
12
|
+
/** In milliseconds */
|
|
13
|
+
offDelay?: number | null;
|
|
14
|
+
/** In milliseconds */
|
|
15
|
+
offResetDelay?: number | null;
|
|
16
|
+
/** In milliseconds */
|
|
17
|
+
onDelay?: number | null;
|
|
18
|
+
/** In milliseconds */
|
|
19
|
+
onResetDelay?: number | null;
|
|
20
|
+
operatorInstructionRtn?: string | null;
|
|
21
|
+
outOfService?: boolean | null;
|
|
22
|
+
publicId: string;
|
|
23
|
+
severity?: 'low' | 'medium' | 'high' | null;
|
|
24
|
+
source?: ResLink;
|
|
25
|
+
type?: 'unary' | 'boolean' | 'error_bits' | 'threshold' | 'rate_of_change' | 'bit_pattern';
|
|
26
|
+
}
|
|
27
|
+
export interface AgentDataAlarmOcc {
|
|
28
|
+
publicId: string;
|
|
29
|
+
alarm?: AgentDataAlarm;
|
|
30
|
+
occuredOn?: string;
|
|
31
|
+
acknowledged?: boolean | null;
|
|
32
|
+
acknowledgedOn?: string | null;
|
|
33
|
+
acknowledgedBy?: User | null;
|
|
34
|
+
comment?: string | null;
|
|
35
|
+
silenced?: boolean;
|
|
36
|
+
rtnOn?: string | null;
|
|
37
|
+
annunciations?: AgentDataAlarmOccAnn[];
|
|
38
|
+
stillActiveOn?: string | null;
|
|
39
|
+
rateLimitTill?: string | null;
|
|
40
|
+
}
|
|
41
|
+
export interface AgentDataAlarmOccAnn {
|
|
42
|
+
user?: User;
|
|
43
|
+
announcedOn?: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ResLink } from './res-link';
|
|
2
|
+
export interface AgentDataCondition {
|
|
3
|
+
agent?: ResLink;
|
|
4
|
+
description?: string | null;
|
|
5
|
+
device?: ResLink;
|
|
6
|
+
/** For example: "#2 8 >=" (when variable 2 is greater than or equal to 8) */
|
|
7
|
+
formula?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
publicId: string;
|
|
10
|
+
source?: ResLink;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { DataProtocolAppliedUnion } from './data-protocol-applied';
|
|
2
|
+
import type { ResLink } from './res-link';
|
|
3
|
+
export interface AgentDataSource {
|
|
4
|
+
agent?: ResLink;
|
|
5
|
+
device?: ResLink;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
mqttBrokerClient?: ResLink | null;
|
|
8
|
+
mqttTopic?: string | null;
|
|
9
|
+
name?: string | null;
|
|
10
|
+
port?: number | null;
|
|
11
|
+
protocol?: DataProtocolAppliedUnion;
|
|
12
|
+
publicId: string;
|
|
13
|
+
pullDelay?: number | null;
|
|
14
|
+
slug?: string | null;
|
|
15
|
+
valuesPerHour?: number;
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { AgentDataCondition } from './agent-data-condition';
|
|
2
|
+
import type { AgentDataVariable } from './agent-data-variable';
|
|
3
|
+
import type { ResLink } from './res-link';
|
|
4
|
+
export interface AgentDataTag {
|
|
5
|
+
agent?: ResLink;
|
|
6
|
+
aggregators?: string[];
|
|
7
|
+
device?: ResLink;
|
|
8
|
+
downsamplingInterval?: boolean;
|
|
9
|
+
/** When set to null will revert to "last", "shortest" and "longest". Only applicable to strings */
|
|
10
|
+
edgeAggregator?: 'min' | 'max' | 'shortest' | 'longest' | 'mean' | 'last' | 'increase' | null;
|
|
11
|
+
logEvent?: 'interval' | 'change' | 'trigger';
|
|
12
|
+
loggingInterval?: string;
|
|
13
|
+
logTrigger?: AgentDataCondition | null;
|
|
14
|
+
name?: string;
|
|
15
|
+
publicId: string;
|
|
16
|
+
retentionPolicy?: string;
|
|
17
|
+
slug?: string | null;
|
|
18
|
+
source?: ResLink;
|
|
19
|
+
onChangeExpiry?: string | null;
|
|
20
|
+
tagId?: number;
|
|
21
|
+
variable?: AgentDataVariable;
|
|
22
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ResLink } from './res-link';
|
|
2
|
+
export interface AgentDataVariable {
|
|
3
|
+
address?: string;
|
|
4
|
+
agent?: ResLink;
|
|
5
|
+
device?: ResLink;
|
|
6
|
+
extraData?: any;
|
|
7
|
+
factor?: number | null;
|
|
8
|
+
forAlarming?: boolean;
|
|
9
|
+
forLogging?: boolean;
|
|
10
|
+
internalUse?: boolean;
|
|
11
|
+
maxStringLength?: number | null;
|
|
12
|
+
name?: string;
|
|
13
|
+
publicId: string;
|
|
14
|
+
signed?: boolean | null;
|
|
15
|
+
slug?: string | null;
|
|
16
|
+
source?: ResLink;
|
|
17
|
+
type?: AgentDataVariableType;
|
|
18
|
+
unit?: string | null;
|
|
19
|
+
updateable?: boolean;
|
|
20
|
+
variableId?: number;
|
|
21
|
+
width?: AgentDataVariableWidth | null;
|
|
22
|
+
}
|
|
23
|
+
export type AgentDataVariableType = 'bool' | 'int' | 'float' | 'str';
|
|
24
|
+
export type AgentDataVariableWidth = '8' | '16' | '32' | '64';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ResLink } from './res-link';
|
|
2
|
+
import type { AgentDataSource } from './agent-data-source';
|
|
3
|
+
export interface AgentDevice {
|
|
4
|
+
agent?: ResLink;
|
|
5
|
+
customAddress?: string | null;
|
|
6
|
+
dataSources?: AgentDataSource[];
|
|
7
|
+
ipAddress?: string | null;
|
|
8
|
+
macAddress?: string | null;
|
|
9
|
+
name?: string | null;
|
|
10
|
+
publicId: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ResLink } from './res-link';
|
|
2
|
+
export interface AgentQueueReport extends QueueReport {
|
|
3
|
+
agent: ResLink;
|
|
4
|
+
message?: string;
|
|
5
|
+
report: ResLink;
|
|
6
|
+
sendTo: string[];
|
|
7
|
+
}
|
|
8
|
+
export interface QueueDraftReport extends QueueReport {
|
|
9
|
+
agent: ResLink;
|
|
10
|
+
}
|
|
11
|
+
interface QueueReport {
|
|
12
|
+
end: string;
|
|
13
|
+
start: string;
|
|
14
|
+
timeZone: string;
|
|
15
|
+
}
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ResLink } from './res-link';
|
|
2
|
+
export interface AgentRouterLanWanAccessRule {
|
|
3
|
+
agent?: ResLink;
|
|
4
|
+
description?: string | null;
|
|
5
|
+
destinationPort?: number | null;
|
|
6
|
+
protocol?: AgentRouterTransportProtocol;
|
|
7
|
+
publicId: string;
|
|
8
|
+
sourceIpAddress?: string | null;
|
|
9
|
+
sourceMacAddress?: string | null;
|
|
10
|
+
}
|
|
11
|
+
export type AgentRouterTransportProtocol = 'all' | 'tcp' | 'udp' | 'icmp' | 'ah' | 'ax.25' | 'dccp' | 'ddp' | 'egp' | 'eigrp' | 'encap' | 'esp' | 'etherip' | 'fc' | 'ggp' | 'gre' | 'hmp' | 'idpr-cmtp' | 'idrp' | 'igmp' | 'igp' | 'ipcomp' | 'ipencap' | 'ipip' | 'ipv6' | 'ipv6-frag' | 'ipv6-icmp' | 'ipv6-nonxt' | 'ipv6-opts' | 'ipv6-route' | 'isis' | 'iso-tp4' | 'l2tp' | 'ospf' | 'pim' | 'pup' | 'rdp' | 'rspf' | 'rsvp' | 'sctp' | 'skip' | 'st' | 'vmtp' | 'vrrp' | 'xns-idp' | 'xtp';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { ResLink } from './res-link';
|
|
2
|
+
export interface AgentServer {
|
|
3
|
+
agent?: ResLink;
|
|
4
|
+
audience?: ResLink | null;
|
|
5
|
+
connectionQuality?: 'high' | 'normal' | 'low' | null;
|
|
6
|
+
custom?: {};
|
|
7
|
+
device?: ResLink;
|
|
8
|
+
httpAuthenticationType?: 'ntlm' | 'basic' | 'digest' | null;
|
|
9
|
+
landingPage?: string;
|
|
10
|
+
name?: string;
|
|
11
|
+
password?: string | null;
|
|
12
|
+
port?: number;
|
|
13
|
+
publicId: string;
|
|
14
|
+
readOnly?: boolean | null;
|
|
15
|
+
serviceGroup?: string | null;
|
|
16
|
+
template?: {
|
|
17
|
+
publicId?: string;
|
|
18
|
+
};
|
|
19
|
+
type?: 'http' | 'rdp' | 'vnc' | 'websocket';
|
|
20
|
+
username?: string | null;
|
|
21
|
+
useSsl?: boolean;
|
|
22
|
+
/** default: true */
|
|
23
|
+
visibleInMobileApp?: boolean;
|
|
24
|
+
vncEncoding?: string | null;
|
|
25
|
+
vncRightClickOnTouchHold?: boolean;
|
|
26
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { AgentServer } from './agent-server';
|
|
2
|
+
export interface AgentType {
|
|
3
|
+
additionalSubnets?: boolean;
|
|
4
|
+
allowDataPublishing?: boolean;
|
|
5
|
+
allowDemoDevice?: boolean;
|
|
6
|
+
allowReboot?: boolean;
|
|
7
|
+
allowTemplating?: boolean;
|
|
8
|
+
configPush?: boolean;
|
|
9
|
+
configFileFormat?: number;
|
|
10
|
+
customServers?: boolean;
|
|
11
|
+
deviceIdFormat?: string;
|
|
12
|
+
httpProxyPort?: number;
|
|
13
|
+
latestFirmwareFile?: any;
|
|
14
|
+
name?: string;
|
|
15
|
+
offlineConfiguration?: boolean;
|
|
16
|
+
publicId: string;
|
|
17
|
+
purchasePrice?: {
|
|
18
|
+
gratis?: boolean;
|
|
19
|
+
};
|
|
20
|
+
router?: boolean;
|
|
21
|
+
servers?: AgentServer[];
|
|
22
|
+
stunnelSupport?: boolean;
|
|
23
|
+
wanPortForwardings?: boolean;
|
|
24
|
+
}
|