@ixon-cdk/types 1.3.0-next.0 → 1.3.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/README.md +1 -1
  2. package/dist/component-devkit/src/types/src/index.d.ts +2 -0
  3. package/dist/types/component-context/index.d.ts +20 -17
  4. package/dist/types/component-context/input.d.ts +4 -2
  5. package/dist/types/ixapi/resources/access-recover.d.ts +10 -0
  6. package/dist/types/ixapi/resources/access-token.d.ts +29 -0
  7. package/dist/types/ixapi/resources/agent-activate.d.ts +9 -0
  8. package/dist/types/ixapi/resources/agent-config.d.ts +127 -0
  9. package/dist/types/ixapi/resources/agent-data-alarm.d.ts +44 -0
  10. package/dist/types/ixapi/resources/agent-data-alarming-app.d.ts +7 -0
  11. package/dist/types/ixapi/resources/agent-data-condition.d.ts +11 -0
  12. package/dist/types/ixapi/resources/agent-data-logging-app.d.ts +7 -0
  13. package/dist/types/ixapi/resources/agent-data-monitor.d.ts +6 -0
  14. package/dist/types/ixapi/resources/agent-data-report.d.ts +8 -0
  15. package/dist/types/ixapi/resources/agent-data-source.d.ts +16 -0
  16. package/dist/types/ixapi/resources/agent-data-tag.d.ts +22 -0
  17. package/dist/types/ixapi/resources/agent-data-variable.d.ts +24 -0
  18. package/dist/types/ixapi/resources/agent-device.d.ts +11 -0
  19. package/dist/types/ixapi/resources/agent-mdr-server.d.ts +4 -0
  20. package/dist/types/ixapi/resources/agent-membership.d.ts +6 -0
  21. package/dist/types/ixapi/resources/agent-network-value.d.ts +5 -0
  22. package/dist/types/ixapi/resources/agent-pull.d.ts +4 -0
  23. package/dist/types/ixapi/resources/agent-queue-report.d.ts +17 -0
  24. package/dist/types/ixapi/resources/agent-registration-profile-membership.d.ts +7 -0
  25. package/dist/types/ixapi/resources/agent-registration-profile.d.ts +9 -0
  26. package/dist/types/ixapi/resources/agent-router-lan-wan-access-rule.d.ts +11 -0
  27. package/dist/types/ixapi/resources/agent-router-vpn-access-rule.d.ts +8 -0
  28. package/dist/types/ixapi/resources/agent-router-vpn-config.d.ts +5 -0
  29. package/dist/types/ixapi/resources/agent-server.d.ts +26 -0
  30. package/dist/types/ixapi/resources/agent-template.d.ts +4 -0
  31. package/dist/types/ixapi/resources/agent-type-file.d.ts +10 -0
  32. package/dist/types/ixapi/resources/agent-type.d.ts +24 -0
  33. package/dist/types/ixapi/resources/agent.d.ts +152 -0
  34. package/dist/types/ixapi/resources/alarming-app.d.ts +5 -0
  35. package/dist/types/ixapi/resources/app-config.d.ts +4 -0
  36. package/dist/types/ixapi/resources/asset-app-config.d.ts +8 -0
  37. package/dist/types/ixapi/resources/asset-membership.d.ts +6 -0
  38. package/dist/types/ixapi/resources/asset-type.d.ts +5 -0
  39. package/dist/types/ixapi/resources/asset.d.ts +22 -0
  40. package/dist/types/ixapi/resources/audience.d.ts +6 -0
  41. package/dist/types/ixapi/resources/audit-log.d.ts +20 -0
  42. package/dist/types/ixapi/resources/auth-token.d.ts +5 -0
  43. package/dist/types/ixapi/resources/backend-component-function.d.ts +10 -0
  44. package/dist/types/ixapi/resources/backend-component-template-config.d.ts +10 -0
  45. package/dist/types/ixapi/resources/backend-component-template-share.d.ts +5 -0
  46. package/dist/types/ixapi/resources/backend-component-template-version.d.ts +16 -0
  47. package/dist/types/ixapi/resources/backend-component-template.d.ts +11 -0
  48. package/dist/types/ixapi/resources/branding.d.ts +27 -0
  49. package/dist/types/ixapi/resources/company.d.ts +56 -0
  50. package/dist/types/ixapi/resources/component-input.d.ts +33 -0
  51. package/dist/types/ixapi/resources/custom-property.d.ts +47 -0
  52. package/dist/types/ixapi/resources/data-protocol-applied.d.ts +72 -0
  53. package/dist/types/ixapi/resources/data-protocol.d.ts +17 -0
  54. package/dist/types/ixapi/resources/data.d.ts +43 -0
  55. package/dist/types/ixapi/resources/demo-device.d.ts +8 -0
  56. package/dist/types/ixapi/resources/discovery.d.ts +4 -0
  57. package/dist/types/ixapi/resources/email-address-change.d.ts +9 -0
  58. package/dist/types/ixapi/resources/file.d.ts +4 -0
  59. package/dist/types/ixapi/resources/group-role.d.ts +6 -0
  60. package/dist/types/ixapi/resources/group-type.d.ts +6 -0
  61. package/dist/types/ixapi/resources/group.d.ts +12 -0
  62. package/dist/types/ixapi/resources/historical-data-usage.d.ts +3 -0
  63. package/dist/types/ixapi/resources/index.d.ts +106 -0
  64. package/dist/types/ixapi/resources/invite.d.ts +25 -0
  65. package/dist/types/ixapi/resources/label.d.ts +7 -0
  66. package/dist/types/ixapi/resources/licence-bundle.d.ts +10 -0
  67. package/dist/types/ixapi/resources/licence-type.d.ts +13 -0
  68. package/dist/types/ixapi/resources/licence.d.ts +27 -0
  69. package/dist/types/ixapi/resources/location.d.ts +11 -0
  70. package/dist/types/ixapi/resources/logging-app.d.ts +5 -0
  71. package/dist/types/ixapi/resources/lsi-server.d.ts +4 -0
  72. package/dist/types/ixapi/resources/menu-item.d.ts +8 -0
  73. package/dist/types/ixapi/resources/message-filter.d.ts +18 -0
  74. package/dist/types/ixapi/resources/message.d.ts +35 -0
  75. package/dist/types/ixapi/resources/mqtt-broker-client.d.ts +11 -0
  76. package/dist/types/ixapi/resources/mqtt-broker.d.ts +12 -0
  77. package/dist/types/ixapi/resources/object-storage.d.ts +40 -0
  78. package/dist/types/ixapi/resources/otp-auth.d.ts +13 -0
  79. package/dist/types/ixapi/resources/page-component-template-category.d.ts +5 -0
  80. package/dist/types/ixapi/resources/page-component-template-config.d.ts +7 -0
  81. package/dist/types/ixapi/resources/page-component-template-manifest.d.ts +57 -0
  82. package/dist/types/ixapi/resources/page-component-template-version.d.ts +10 -0
  83. package/dist/types/ixapi/resources/page-component-template.d.ts +25 -0
  84. package/dist/types/ixapi/resources/page-component.d.ts +44 -0
  85. package/dist/types/ixapi/resources/page-link-group.d.ts +7 -0
  86. package/dist/types/ixapi/resources/page-link.d.ts +12 -0
  87. package/dist/types/ixapi/resources/page-page.d.ts +6 -0
  88. package/dist/types/ixapi/resources/page-version.d.ts +22 -0
  89. package/dist/types/ixapi/resources/page.d.ts +17 -0
  90. package/dist/types/ixapi/resources/password-change.d.ts +5 -0
  91. package/dist/types/ixapi/resources/permission.d.ts +3 -0
  92. package/dist/types/ixapi/resources/platform-server.d.ts +8 -0
  93. package/dist/types/ixapi/resources/policy.d.ts +23 -0
  94. package/dist/types/ixapi/resources/registration.d.ts +26 -0
  95. package/dist/types/ixapi/resources/report-schedule.d.ts +38 -0
  96. package/dist/types/ixapi/resources/res-link.d.ts +6 -0
  97. package/dist/types/ixapi/resources/role.d.ts +9 -0
  98. package/dist/types/ixapi/resources/rsc-server.d.ts +6 -0
  99. package/dist/types/ixapi/resources/sector.d.ts +31 -0
  100. package/dist/types/ixapi/resources/sso-authentication.d.ts +12 -0
  101. package/dist/types/ixapi/resources/sso-identity-provider.d.ts +7 -0
  102. package/dist/types/ixapi/resources/support-access.d.ts +5 -0
  103. package/dist/types/ixapi/resources/translation.d.ts +7 -0
  104. package/dist/types/ixapi/resources/user-membership.d.ts +11 -0
  105. package/dist/types/ixapi/resources/user-push-device.d.ts +10 -0
  106. package/dist/types/ixapi/resources/user.d.ts +55 -0
  107. package/dist/types/ixapi/resources/vpn-protocol.d.ts +1 -0
  108. package/dist/types/ixapi/resources/vpn-usage.d.ts +11 -0
  109. package/dist/types/ixapi/resources/web-access.d.ts +3 -0
  110. package/dist/types/ixapi/resources/webhook-subscription.d.ts +7 -0
  111. package/dist/types/ixapi/resources/webhook-trigger.d.ts +12 -0
  112. package/dist/types/logging-data/logging-data-value.d.ts +1 -0
  113. package/dist/types/object-storage/index.d.ts +1 -0
  114. package/dist/types/object-storage/object-storage-client.d.ts +58 -0
  115. package/dist/types/resource-data/resource-data-client.d.ts +4 -0
  116. package/package.json +1 -1
@@ -0,0 +1,152 @@
1
+ import type { AgentConfig } from './agent-config';
2
+ import type { AgentDataSource } from './agent-data-source';
3
+ import type { AgentDevice } from './agent-device';
4
+ import type { AgentMdrServer } from './agent-mdr-server';
5
+ import type { AgentMembership } from './agent-membership';
6
+ import type { AgentNetworkValue } from './agent-network-value';
7
+ import type { AgentServer } from './agent-server';
8
+ import type { AgentTemplate } from './agent-template';
9
+ import type { AgentType } from './agent-type';
10
+ import type { AlarmingApp } from './alarming-app';
11
+ import type { Audience } from './audience';
12
+ import type { DemoDevice } from './demo-device';
13
+ import type { Invite } from './invite';
14
+ import type { Licence } from './licence';
15
+ import type { LsiServer } from './lsi-server';
16
+ import type { GeoLocation, Location } from './location';
17
+ import type { LoggingApp } from './logging-app';
18
+ import type { PageLink } from './page-link';
19
+ import type { ResLink } from './res-link';
20
+ import type { RscServer } from './rsc-server';
21
+ import type { User } from './user';
22
+ import type { VpnProtocol } from './vpn-protocol';
23
+ import type { AgentRouterVpnAccessRule } from './agent-router-vpn-access-rule';
24
+ export interface Agent extends AgentLike {
25
+ activationLicence?: Licence | null;
26
+ activeStatus?: 'active' | 'inactive';
27
+ activeVpnSession?: AgentVpnSession | null;
28
+ alarmingApp?: AlarmingApp;
29
+ assets?: ResLink[];
30
+ company?: ResLink;
31
+ connectedUsers?: User[];
32
+ demoDevice?: DemoDevice | null;
33
+ deviceId?: string | null;
34
+ fixedVpnAddress?: string | null;
35
+ geoLocation?: GeoLocation | null;
36
+ invitesWithAccess?: Invite[];
37
+ lastSeenAgentUserAgent?: AgentUserAgent | null;
38
+ location?: Location | null;
39
+ loggingApp?: LoggingApp;
40
+ loggingMdrServer?: AgentMdrServer | null;
41
+ loggingMqttChangedOn?: string | null;
42
+ lsiServer?: LsiServer | null;
43
+ macAddress?: string | null;
44
+ mdrServer?: AgentMdrServer | null;
45
+ memberships?: AgentMembership[];
46
+ mqttChangedOn?: string | null;
47
+ networkReportedOn?: string | null;
48
+ networkValues?: AgentNetworkValue[] | null;
49
+ pendingRegistration?: boolean | null;
50
+ /** default: false */
51
+ preferLocationOverGeoip?: boolean;
52
+ pullCodeGeneratedOn?: string | null;
53
+ rateLimiting?: AgentRateLimiting;
54
+ replaceMacAddress?: string | null;
55
+ replaceRegistration?: boolean;
56
+ reRegistration?: boolean;
57
+ serialNumber?: string | null;
58
+ timeZone?: string | null;
59
+ valuesPerHour?: number;
60
+ }
61
+ export interface AgentLike {
62
+ card?: ResLink | null;
63
+ config?: AgentConfig | null;
64
+ custom?: {
65
+ [key: string]: any;
66
+ };
67
+ dataAudience?: Audience | null;
68
+ dataSources?: AgentDataSource[];
69
+ description?: string | null;
70
+ devices?: AgentDevice[];
71
+ name?: string;
72
+ pageLinks?: PageLink[];
73
+ publicId: string;
74
+ servers?: AgentServer[];
75
+ type?: AgentType;
76
+ /** default: false */
77
+ useStunnel?: boolean;
78
+ preferLocationOverGeoip?: boolean;
79
+ vpnAccessRules?: AgentRouterVpnAccessRule[];
80
+ vpnAudience?: Audience | null;
81
+ /** default: 'tcp' */
82
+ vpnProtocol?: VpnProtocol;
83
+ /** default: false */
84
+ vpnVisibleInMobileApp?: boolean;
85
+ }
86
+ export interface AgentLocalIp {
87
+ reportedOn?: string;
88
+ dnsServers?: string[];
89
+ addresses?: string[];
90
+ gateways?: string[];
91
+ }
92
+ export interface AgentUserAgent {
93
+ appName?: string;
94
+ appVersion?: string | null;
95
+ configName?: string | null;
96
+ configVersion?: string | null;
97
+ firmwareVersion?: string | null;
98
+ hardware?: string | null;
99
+ hardwareCode?: string | null;
100
+ hardwareVersion?: string | null;
101
+ libixagentVersion?: string;
102
+ libixloggerVersion?: string;
103
+ opensslVersion?: string | null;
104
+ osName?: string | null;
105
+ osVersion?: string | null;
106
+ publicId: string;
107
+ }
108
+ export interface AgentRateLimiting {
109
+ configMqttCommandCounter?: number;
110
+ configMqttCommandLastHit?: string;
111
+ configMqttCommandLimit?: AgentRateLimitingStatus;
112
+ configMqttDataCounter?: number;
113
+ configMqttDataLastHit?: string;
114
+ configMqttDataLimit?: AgentRateLimitingStatus;
115
+ configOpenvpnCounter?: number;
116
+ configOpenvpnLastHit?: string;
117
+ configOpenvpnLimit?: AgentRateLimitingStatus;
118
+ }
119
+ /**
120
+ * - `null` when ratelimiting is not applicable.
121
+ * - `"soft"` when it is periodically retrying.
122
+ * - `"hard"` when a user must manually force a retry.
123
+ * - `"lock"` when it manually locked by R&D and the user unable to retry.
124
+ */
125
+ export type AgentRateLimitingStatus = null | 'soft' | 'hard' | 'lock';
126
+ export interface AgentVpnSession {
127
+ bytesReceived?: number;
128
+ bytesSent?: number;
129
+ duration?: number;
130
+ startedOn?: number;
131
+ rscServer?: RscServer | null;
132
+ vpnAddress?: string;
133
+ }
134
+ export interface AgentFromTemplate {
135
+ publicId: string;
136
+ template: AgentTemplate;
137
+ importLanSettings: boolean;
138
+ importFirewallSettings: boolean;
139
+ importVpnSettings: boolean;
140
+ importPageLinks: boolean;
141
+ importServices: boolean;
142
+ importDataSettings: boolean;
143
+ importCustomProperties: boolean;
144
+ }
145
+ export interface ShellAgentCreate {
146
+ registrationCode: string;
147
+ name?: string | null;
148
+ couponCode?: string | null;
149
+ licence?: ResLink | null;
150
+ groups?: ResLink[];
151
+ template?: ResLink | null;
152
+ }
@@ -0,0 +1,5 @@
1
+ import type { Licence } from './licence';
2
+ export interface AlarmingApp {
3
+ enabled?: boolean;
4
+ licence?: Licence | null;
5
+ }
@@ -0,0 +1,4 @@
1
+ export interface AppConfigUpdate {
2
+ enabled?: boolean;
3
+ publicId: string;
4
+ }
@@ -0,0 +1,8 @@
1
+ import type { ResLink } from './res-link';
2
+ export interface AssetAppConfig {
3
+ app?: ResLink;
4
+ asset?: ResLink;
5
+ publicId: string;
6
+ stateValues?: string | null;
7
+ values?: string | null;
8
+ }
@@ -0,0 +1,6 @@
1
+ import type { ResLink } from './res-link';
2
+ export interface AssetMembership {
3
+ asset?: ResLink;
4
+ group?: ResLink;
5
+ publicId: string;
6
+ }
@@ -0,0 +1,5 @@
1
+ export interface AssetType {
2
+ name?: string;
3
+ order?: number;
4
+ publicId: string;
5
+ }
@@ -0,0 +1,22 @@
1
+ import type { AssetAppConfig } from './asset-app-config';
2
+ import type { AssetMembership } from './asset-membership';
3
+ import type { AssetType } from './asset-type';
4
+ import type { PageLink } from './page-link';
5
+ import type { ResLink } from './res-link';
6
+ export interface Asset {
7
+ agent?: ResLink | null;
8
+ appConfigs?: AssetAppConfig[];
9
+ card?: ResLink;
10
+ custom?: {
11
+ [key: string]: any;
12
+ };
13
+ description?: string | null;
14
+ enabled?: boolean;
15
+ memberships?: AssetMembership[];
16
+ name?: string;
17
+ order?: number;
18
+ pageLinks?: PageLink[];
19
+ parent?: ResLink | null;
20
+ publicId: string;
21
+ resourceVariant?: AssetType;
22
+ }
@@ -0,0 +1,6 @@
1
+ export interface Audience {
2
+ default?: boolean;
3
+ description?: string | null;
4
+ name?: string;
5
+ publicId: string;
6
+ }
@@ -0,0 +1,20 @@
1
+ export interface AuditLog {
2
+ action: AuditLogAction;
3
+ actor: {
4
+ resource: any;
5
+ type: string;
6
+ };
7
+ after: any[];
8
+ application?: {
9
+ name: string;
10
+ };
11
+ before: any[];
12
+ publicId: string;
13
+ request?: {
14
+ fromName: string;
15
+ };
16
+ target: string;
17
+ time: string /** I.e. "2019-01-01T12:00:00.000000Z" */;
18
+ topic: any;
19
+ }
20
+ export type AuditLogAction = 'CREATE' | 'UPDATE' | 'DELETE' | 'TRIGGER';
@@ -0,0 +1,5 @@
1
+ export interface AuthToken {
2
+ expiresOn: string;
3
+ publicId: string;
4
+ secretId: string;
5
+ }
@@ -0,0 +1,10 @@
1
+ import type { ResLink } from './res-link';
2
+ export type BackendComponentFunctionCallArgs = Record<string, string | boolean | number>;
3
+ export interface BackendComponentFunctionCall {
4
+ template?: ResLink;
5
+ name?: string;
6
+ arguments?: BackendComponentFunctionCallArgs | null;
7
+ }
8
+ export interface BackendComponentFunctionResult {
9
+ value?: any;
10
+ }
@@ -0,0 +1,10 @@
1
+ import type { ResLink } from './res-link';
2
+ export interface BackendComponentTemplateConfig {
3
+ allowDraft?: boolean;
4
+ company?: ResLink;
5
+ enabled?: boolean;
6
+ pinnedVersion?: ResLink;
7
+ publicId: string;
8
+ template?: ResLink;
9
+ values?: string | null;
10
+ }
@@ -0,0 +1,5 @@
1
+ import type { ResLink } from "./res-link";
2
+ export interface BackendComponentTemplateShare {
3
+ company: ResLink;
4
+ template: ResLink;
5
+ }
@@ -0,0 +1,16 @@
1
+ import type { ResLink } from './res-link';
2
+ export interface BackendComponentTemplateConfiguredVersion {
3
+ publicId: string;
4
+ number?: string;
5
+ }
6
+ export interface BackendComponentTemplateVersion {
7
+ template?: ResLink;
8
+ publicId: string;
9
+ number?: string;
10
+ publishedOn?: string;
11
+ createdOn?: string;
12
+ }
13
+ export interface BackendComponentTemplateVersionUpdate {
14
+ publicId: string;
15
+ published?: boolean;
16
+ }
@@ -0,0 +1,11 @@
1
+ import type { CompanyReference } from './company';
2
+ import type { ResLink } from './res-link';
3
+ export interface BackendComponentTemplate {
4
+ company?: CompanyReference | null;
5
+ description?: string | null;
6
+ draft?: ResLink | null;
7
+ name?: string;
8
+ ownerName?: string;
9
+ publicId: string;
10
+ published?: ResLink | null;
11
+ }
@@ -0,0 +1,27 @@
1
+ export interface Branding {
2
+ appleAppStoreLink?: string | null;
3
+ /** @deprecated */
4
+ appleTouchIcon?: string | null;
5
+ custom?: {
6
+ /** @deprecated */
7
+ glbAppleMobileWebAppTitle?: string | null;
8
+ glbBrowserTitle?: string | null;
9
+ };
10
+ favicon?: string | null;
11
+ fqdn?: string | null;
12
+ googlePlayStoreLink?: string | null;
13
+ logo?: string | null;
14
+ name?: string;
15
+ publicId: string;
16
+ theme?: BrandingTheme | null;
17
+ }
18
+ export interface BrandingTheme {
19
+ accentColor?: string;
20
+ accentTextColor?: string;
21
+ dark?: boolean;
22
+ headerColor?: string;
23
+ headerLineColor?: string;
24
+ logoHasBackgroundColor?: boolean;
25
+ primaryColor?: string;
26
+ primaryTextColor?: string;
27
+ }
@@ -0,0 +1,56 @@
1
+ import type { Branding } from './branding';
2
+ import type { Licence } from './licence';
3
+ import type { ResLink } from './res-link';
4
+ export interface Company {
5
+ branding?: Branding | null;
6
+ custom?: {};
7
+ customPrivacyStatement?: 'sector' | 'company' | 'disabled';
8
+ customTermsOfUse?: 'sector' | 'company' | 'disabled';
9
+ name?: string;
10
+ publicId: string;
11
+ }
12
+ export interface MyCompany {
13
+ alarmingTrialUsed?: boolean;
14
+ /** @deprecated */
15
+ assetManagementLicence?: Licence | null;
16
+ branding?: Branding | null;
17
+ country?: string | null;
18
+ custom?: {
19
+ glbPrtDeviceTableColsDefault?: string | null;
20
+ };
21
+ customPrivacyStatement?: 'sector' | 'company' | 'disabled';
22
+ customTermsOfUse?: 'sector' | 'company' | 'disabled';
23
+ defaultUserInviteLanguage?: string;
24
+ licenceModel?: 'legacy' | 'modules';
25
+ loggingTrialUsed?: boolean;
26
+ /** @deprecated */
27
+ mobileAppLicence?: Licence | null;
28
+ mobileAppLicenceStatus?: 'not-configured' | 'pending' | 'activated' | null;
29
+ name?: string;
30
+ /** @deprecated */
31
+ reportingLicence?: Licence | null;
32
+ /** @deprecated */
33
+ premiumLicence?: Licence | null;
34
+ premiumLicenceStatus?: 'not-configured' | 'pending' | 'activated' | null;
35
+ publicId: string;
36
+ requireDedicatedRscServer?: boolean;
37
+ screensaver?: ResLink | null;
38
+ shellAgentLimit?: number | null;
39
+ /** @deprecated */
40
+ slaLicence?: Licence | null;
41
+ supportAccessExpiresOn?: string | null /** "2021-01-01T12:00:00Z" */;
42
+ /** @deprecated */
43
+ vpnAccessRuleLicence?: Licence | null;
44
+ /** @deprecated */
45
+ vpnUsageLicence?: Licence | null;
46
+ }
47
+ export interface LegacyCompany {
48
+ branding?: {
49
+ fqdn: null | string;
50
+ } | null;
51
+ name?: string;
52
+ parentCompany?: LegacyCompany | null;
53
+ publicId: string;
54
+ starred?: boolean;
55
+ }
56
+ export type CompanyReference = Pick<Company, 'publicId' | 'name'>;
@@ -0,0 +1,33 @@
1
+ type ComponentInputType = 'AggregatedMetric' | 'Checkbox' | 'Color' | 'File' | 'Group' | 'Image' | 'Icon' | 'MaterialIcon' | 'LiveMetric' | 'List' | 'Number' | 'RawMetric' | 'Selection' | 'String' | 'Text';
2
+ export interface ComponentInputSummary {
3
+ label?: string;
4
+ colorField?: string;
5
+ }
6
+ export interface ComponentInput {
7
+ children?: ComponentInput[];
8
+ defaultValue?: any;
9
+ description?: string;
10
+ hint?: string;
11
+ itemType?: ComponentInput;
12
+ key: string;
13
+ label?: string;
14
+ max?: number;
15
+ maxLength?: number;
16
+ min?: number;
17
+ minLength?: number;
18
+ options?: {
19
+ label: string;
20
+ value: any;
21
+ }[];
22
+ pattern?: RegExp;
23
+ placeholder?: string;
24
+ required?: boolean;
25
+ step?: number;
26
+ summary?: ComponentInputSummary;
27
+ size?: {
28
+ max: number;
29
+ };
30
+ translate?: boolean;
31
+ type?: ComponentInputType;
32
+ }
33
+ export {};
@@ -0,0 +1,47 @@
1
+ export interface CustomProperty {
2
+ description?: string | null;
3
+ flags?: string[];
4
+ name?: string;
5
+ publicId: string;
6
+ required?: boolean;
7
+ resourceType?: string;
8
+ resourceVariant?: string | null;
9
+ scopeType?: CustomPropertyScopeType;
10
+ slug?: string;
11
+ validation?: CustomPropertyValidationUnion;
12
+ }
13
+ export interface CustomPropertyValidationBool {
14
+ type: 'bool';
15
+ }
16
+ export interface CustomPropertyValidationDateTime {
17
+ type: 'datetime';
18
+ }
19
+ export interface CustomPropertyValidationEmailAddress {
20
+ type: 'emailaddress';
21
+ }
22
+ export interface CustomPropertyValidationInt {
23
+ type: 'int';
24
+ minValue?: number | null;
25
+ maxValue?: number | null;
26
+ }
27
+ export interface CustomPropertyValidationLocale {
28
+ type: 'locale';
29
+ }
30
+ export interface CustomPropertyValidationEnum {
31
+ type: 'enum';
32
+ options?: string[];
33
+ }
34
+ export interface CustomPropertyValidationStr {
35
+ type: 'str';
36
+ minLength?: number | null;
37
+ maxLength?: number | null;
38
+ regex?: string | null;
39
+ }
40
+ export interface CustomPropertyValidationTimeZone {
41
+ type: 'timezone';
42
+ }
43
+ export interface CustomPropertyValidationUrl {
44
+ type: 'url';
45
+ }
46
+ export type CustomPropertyScopeType = 'glb' | 'app' | 'sct' | 'usr' | 'com';
47
+ export type CustomPropertyValidationUnion = CustomPropertyValidationBool | CustomPropertyValidationDateTime | CustomPropertyValidationEmailAddress | CustomPropertyValidationEnum | CustomPropertyValidationInt | CustomPropertyValidationLocale | CustomPropertyValidationStr | CustomPropertyValidationTimeZone | CustomPropertyValidationUrl;
@@ -0,0 +1,72 @@
1
+ export type EthernetIpCpu = 'compactlogix' | 'controllogix' | 'flexlogix' | 'micro800' | 'micrologix' | 'micrologix800';
2
+ export type McProtocolAuthenticationType = 'none' | 'password';
3
+ export type McProtocolCpu = 'FX5U' | 'IQR' | 'L' | 'Q' | 'QNUCPU';
4
+ export type McProtocolProtocol = 'TCP' | 'UDP';
5
+ export type ModbusFormat = 'ABCD' | 'BADC' | 'CDAB' | 'DCBA';
6
+ export type OpcUaAuthenticationType = 'anonymous' | 'username' | 'certificate';
7
+ export interface DataProtocolAppliedBacnetIp {
8
+ publicId: 'bacnet-ip';
9
+ }
10
+ export interface DataProtocolAppliedCustom {
11
+ password?: string | null;
12
+ publicId: 'custom';
13
+ }
14
+ export interface DataProtocolAppliedEthernetIp {
15
+ cpu: EthernetIpCpu | null;
16
+ publicId: 'ethernet-ip';
17
+ /** only used when cpu in [compactlogix|controllogix|flexlogix]. default is 0 */
18
+ rack?: number | null;
19
+ /** only used when cpu in [compactlogix|controllogix|flexlogix]. default is 0 */
20
+ slot?: number | null;
21
+ }
22
+ export interface DataProtocolAppliedHost {
23
+ publicId: 'host';
24
+ }
25
+ export interface DataProtocolAppliedMcProtocol {
26
+ authenticationType?: McProtocolAuthenticationType;
27
+ /** default is "Q" */
28
+ cpu?: McProtocolCpu | null;
29
+ /** default is 120 */
30
+ maxBlocks?: number;
31
+ /** default is 960 */
32
+ maxPoints?: number;
33
+ /** default is 0 */
34
+ networkNo?: number;
35
+ /** defualt is "" */
36
+ password?: string;
37
+ /** default is "FF" */
38
+ pcNo?: string;
39
+ /** default is "TCP" */
40
+ protocol?: McProtocolProtocol;
41
+ publicId: 'mc-protocol';
42
+ /** default is 500 */
43
+ reconnectDelay?: number;
44
+ /** default is "03FF" */
45
+ requestDestIoNr?: string;
46
+ /** default is 0 */
47
+ requestDestModuleStatNr?: number;
48
+ }
49
+ export interface DataProtocolAppliedModbus {
50
+ /** default is "CDAB" */
51
+ format?: ModbusFormat;
52
+ publicId: 'modbus';
53
+ /** default is 0 */
54
+ slave?: number;
55
+ readMode?: 'single_value' | 'consecutive_values' | 'gapped_values' | null;
56
+ }
57
+ export interface DataProtocolAppliedOpcUa {
58
+ authenticationType?: OpcUaAuthenticationType;
59
+ password?: string;
60
+ publicId: 'opc-ua';
61
+ username?: string;
62
+ }
63
+ export interface DataProtocolAppliedSiemensStep7 {
64
+ /** default is 0 */
65
+ pdu?: number;
66
+ publicId: 'siemens-step7';
67
+ /** range is 0-7. default is 0 */
68
+ rack?: number | null;
69
+ /** range is 0-31. default is 0 */
70
+ slot?: number | null;
71
+ }
72
+ export type DataProtocolAppliedUnion = DataProtocolAppliedBacnetIp | DataProtocolAppliedCustom | DataProtocolAppliedEthernetIp | DataProtocolAppliedHost | DataProtocolAppliedMcProtocol | DataProtocolAppliedModbus | DataProtocolAppliedOpcUa | DataProtocolAppliedSiemensStep7;
@@ -0,0 +1,17 @@
1
+ export interface DataProtocol {
2
+ publicId: DataProtocolId;
3
+ name?: string;
4
+ defaultPort?: number;
5
+ }
6
+ export type DataProtocolId = 'bacnet-ip' | 'custom' | 'ethernet-ip' | 'host' | 'mc-protocol' | 'modbus' | 'opc-ua' | 'siemens-step7';
7
+ export interface DataProtocolType {
8
+ code?: DataProtocolTypeCode;
9
+ description?: string;
10
+ signed?: boolean;
11
+ width?: string;
12
+ }
13
+ export type DataProtocolTypeCode = 'bool' | 'int' | 'float' | 'str';
14
+ /** @deprecated */
15
+ export interface DataProtocolOptions {
16
+ cpu?: string;
17
+ }
@@ -0,0 +1,43 @@
1
+ import type { ResLink } from './res-link';
2
+ export interface Data {
3
+ points: DataPoint[];
4
+ end: string;
5
+ source: ResLink;
6
+ start: string;
7
+ timeZone: string;
8
+ }
9
+ export interface DataPoint {
10
+ values: {
11
+ [ref: string]: any;
12
+ };
13
+ /** "2019-01-01T12:00:00Z" */
14
+ time: string;
15
+ }
16
+ export interface DataQuery {
17
+ /** Defaults to 2 */
18
+ decimals?: number;
19
+ /** Defaults to false */
20
+ extendedBoundary?: boolean;
21
+ factor?: number;
22
+ /** Defaults to 5000 */
23
+ limit?: number;
24
+ postAggr: string;
25
+ ref: string;
26
+ step?: number;
27
+ offset?: number;
28
+ operator?: string;
29
+ }
30
+ export interface DataRequest {
31
+ source: ResLink;
32
+ start?: string;
33
+ end?: string;
34
+ tags: Tag[];
35
+ }
36
+ export type Tag = {
37
+ preAggr?: string;
38
+ queries: DataQuery[];
39
+ } & ({
40
+ id: number;
41
+ } | {
42
+ slug: string;
43
+ });
@@ -0,0 +1,8 @@
1
+ import type { AgentType } from './agent-type';
2
+ export interface DemoDevice {
3
+ agentType?: AgentType;
4
+ containerId?: string;
5
+ dmvServer?: any;
6
+ expiresOn?: string;
7
+ publicId: string;
8
+ }
@@ -0,0 +1,4 @@
1
+ export interface Discovery {
2
+ rel: string;
3
+ href: string;
4
+ }
@@ -0,0 +1,9 @@
1
+ export interface EmailAddressChange {
2
+ expiresOn?: string /** "2019-01-01T12:00:00Z" */;
3
+ newEmailAddress?: string;
4
+ oldEmailAddress?: string;
5
+ publicId: string;
6
+ }
7
+ export interface EmailAddressChangeCreate {
8
+ newEmailAddress: string;
9
+ }
@@ -0,0 +1,4 @@
1
+ export interface File {
2
+ contentType?: string;
3
+ publicId: string;
4
+ }
@@ -0,0 +1,6 @@
1
+ import type { ResLink } from './res-link';
2
+ import type { Role } from './role';
3
+ export interface GroupRole {
4
+ group: ResLink | null;
5
+ roles: Role[];
6
+ }
@@ -0,0 +1,6 @@
1
+ export interface GroupType {
2
+ description?: string | null;
3
+ name?: string;
4
+ order?: number;
5
+ publicId: string;
6
+ }
@@ -0,0 +1,12 @@
1
+ import type { GroupType } from './group-type';
2
+ import type { ResLink } from './res-link';
3
+ export interface Group {
4
+ agent?: ResLink | null;
5
+ isCompanyGroup?: boolean;
6
+ managedBy?: ManagedByGroup | null;
7
+ name?: string | null;
8
+ publicId: string;
9
+ type?: GroupType | null;
10
+ }
11
+ export type AgentRegistrationProfileGroup = Pick<Group, 'publicId' | 'name' | 'type'>;
12
+ export type ManagedByGroup = Pick<Group, 'publicId' | 'name' | 'type'>;