@ixon-cdk/types 1.4.0 → 1.5.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/dist/component-devkit/src/types/src/index.d.ts +1 -0
- package/dist/types/component-input.d.ts +72 -0
- package/dist/types/ixapi/resources/agent-licence-bundle.d.ts +6 -0
- package/dist/types/ixapi/resources/agent-server.d.ts +3 -0
- package/dist/types/ixapi/resources/agent.d.ts +2 -0
- package/dist/types/ixapi/resources/audit-log.d.ts +2 -0
- package/dist/types/ixapi/resources/branding.d.ts +2 -0
- package/dist/types/ixapi/resources/company.d.ts +0 -9
- package/dist/types/ixapi/resources/index.d.ts +1 -1
- package/dist/types/ixapi/resources/licence-type.d.ts +1 -1
- package/dist/types/ixapi/resources/menu-item.d.ts +1 -0
- package/dist/types/ixapi/resources/message.d.ts +25 -25
- package/dist/types/ixapi/resources/page-component-template.d.ts +1 -1
- package/dist/types/resource-data/resource-data.d.ts +6 -4
- package/package.json +1 -1
- package/dist/types/ixapi/resources/component-input.d.ts +0 -35
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from '../../../../types/component-context';
|
|
2
2
|
export * from '../../../../types/backend-component';
|
|
3
3
|
export * from '../../../../types/component-context';
|
|
4
|
+
export * from '../../../../types/component-input';
|
|
4
5
|
export * from '../../../../types/ixapi';
|
|
5
6
|
export * from '../../../../types/ixapi/resources';
|
|
6
7
|
export * from '../../../../types/logging-data';
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
type ComponentInputType = 'AggregatedMetric' | 'Checkbox' | 'Color' | 'Date' | 'File' | 'Group' | 'Icon' | 'Image' | 'List' | 'LiveMetric' | 'MaterialIcon' | 'Number' | 'RawMetric' | 'Selection' | 'String' | 'Text';
|
|
2
|
+
export interface ComponentInputSummary {
|
|
3
|
+
colorField?: string;
|
|
4
|
+
label: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ComponentInput {
|
|
7
|
+
/**
|
|
8
|
+
* The types of tags or variables that are allowed for this metric. All types are allowed if empty ([]), null or not specified.
|
|
9
|
+
*
|
|
10
|
+
* Only applicable to types `RawMetric`, `AggregatedMetric` and `LiveMetric`.
|
|
11
|
+
*/
|
|
12
|
+
allowedTypes?: ('bool' | 'int' | 'float' | 'str')[];
|
|
13
|
+
/**
|
|
14
|
+
* Only applicable to type `Group`.
|
|
15
|
+
*/
|
|
16
|
+
children?: ComponentInput[];
|
|
17
|
+
defaultValue?: any;
|
|
18
|
+
description?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @default false
|
|
21
|
+
*/
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
hint?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Specifies the type for every list-item.
|
|
26
|
+
*
|
|
27
|
+
* Only applicable to type `List`.
|
|
28
|
+
*/
|
|
29
|
+
itemType?: ComponentInput;
|
|
30
|
+
key: string;
|
|
31
|
+
label?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Only applicable to type `Number`.
|
|
34
|
+
*/
|
|
35
|
+
max?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Only applicable to type `Number`.
|
|
38
|
+
*/
|
|
39
|
+
min?: number;
|
|
40
|
+
/**
|
|
41
|
+
* Only applicable to type `Selection`.
|
|
42
|
+
*/
|
|
43
|
+
options?: {
|
|
44
|
+
label: string;
|
|
45
|
+
shortLabel?: string;
|
|
46
|
+
value: any;
|
|
47
|
+
}[];
|
|
48
|
+
placeholder?: string;
|
|
49
|
+
/**
|
|
50
|
+
* @default false
|
|
51
|
+
*/
|
|
52
|
+
required?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Only applicable to type `File`.
|
|
55
|
+
*/
|
|
56
|
+
size?: {
|
|
57
|
+
max: number;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* Only applicable to type `Number`.
|
|
61
|
+
*/
|
|
62
|
+
step?: number;
|
|
63
|
+
summary?: ComponentInputSummary;
|
|
64
|
+
/**
|
|
65
|
+
* Only applicable to types `String` and `Text`.
|
|
66
|
+
*
|
|
67
|
+
* @default true
|
|
68
|
+
*/
|
|
69
|
+
translate?: boolean;
|
|
70
|
+
type: ComponentInputType;
|
|
71
|
+
}
|
|
72
|
+
export {};
|
|
@@ -20,6 +20,8 @@ export interface AgentServer {
|
|
|
20
20
|
useSsl?: boolean;
|
|
21
21
|
/** default: true */
|
|
22
22
|
visibleInMobileApp?: boolean;
|
|
23
|
+
/** default: true */
|
|
24
|
+
visibleOnWeb?: boolean;
|
|
23
25
|
vncEncoding?: string | null;
|
|
24
26
|
vncRightClickOnTouchHold?: boolean;
|
|
25
27
|
}
|
|
@@ -39,6 +41,7 @@ export interface AgentServerTemplate {
|
|
|
39
41
|
username?: string | null;
|
|
40
42
|
useSsl?: boolean;
|
|
41
43
|
visibleInMobileApp?: boolean;
|
|
44
|
+
visibleOnWeb?: boolean;
|
|
42
45
|
vncEncoding?: string | null;
|
|
43
46
|
vncRightClickOnTouchHold?: boolean;
|
|
44
47
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { GeoLocation } from './location';
|
|
1
2
|
export interface AuditLog {
|
|
2
3
|
action: AuditLogAction;
|
|
3
4
|
actor: AuditLogActor;
|
|
@@ -16,6 +17,7 @@ export interface AuditLog {
|
|
|
16
17
|
export type AuditLogAction = 'CREATE' | 'UPDATE' | 'DELETE' | 'TRIGGER';
|
|
17
18
|
interface AuditLogRequest {
|
|
18
19
|
fromName: string | null;
|
|
20
|
+
geoLocation: GeoLocation | null;
|
|
19
21
|
ipAddress: string;
|
|
20
22
|
}
|
|
21
23
|
interface AuditLogActor {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { PageComponentTemplate } from './page-component-template';
|
|
1
2
|
export interface Branding {
|
|
2
3
|
appleAppStoreLink?: string | null;
|
|
3
4
|
/** @deprecated */
|
|
@@ -10,6 +11,7 @@ export interface Branding {
|
|
|
10
11
|
favicon?: string | null;
|
|
11
12
|
fqdn?: string | null;
|
|
12
13
|
googlePlayStoreLink?: string | null;
|
|
14
|
+
landingPageComponentTemplate?: PageComponentTemplate | null;
|
|
13
15
|
logo?: string | null;
|
|
14
16
|
name?: string | null;
|
|
15
17
|
publicId: string;
|
|
@@ -44,13 +44,4 @@ export interface MyCompany extends Company {
|
|
|
44
44
|
/** @deprecated */
|
|
45
45
|
vpnUsageLicence?: Licence | null;
|
|
46
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
47
|
export type CompanyReference = Pick<Company, 'publicId' | 'name'>;
|
|
@@ -12,6 +12,7 @@ export * from './agent-data-source';
|
|
|
12
12
|
export * from './agent-data-tag';
|
|
13
13
|
export * from './agent-data-variable';
|
|
14
14
|
export * from './agent-device';
|
|
15
|
+
export * from './agent-licence-bundle';
|
|
15
16
|
export * from './agent-mdr-server';
|
|
16
17
|
export * from './agent-membership';
|
|
17
18
|
export * from './agent-network-value';
|
|
@@ -44,7 +45,6 @@ export * from './backend-component-template-share';
|
|
|
44
45
|
export * from './backend-component-template-version';
|
|
45
46
|
export * from './branding';
|
|
46
47
|
export * from './company';
|
|
47
|
-
export * from './component-input';
|
|
48
48
|
export * from './custom-property';
|
|
49
49
|
export * from './data';
|
|
50
50
|
export * from './data-protocol';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type LicenceTypeScope = 'agent' | 'company';
|
|
2
|
-
export type LicenceUsageType = 'advanced-user-management' | 'agent-registration-profile' | 'alarming' | 'api-integrations' | 'app-engine-level-1' | 'app-engine-level-2' | 'asset-management' | 'card-view' | 'connection-monitoring' | 'custom-branding' | 'custom-domain' | 'custom-fields' | 'custom-legal' | 'custom-legal-legacy' | 'custom-sso' | 'ixagent' | 'live-data' | 'logging' | 'main-pages' | 'm2m-cloud-cluster' | 'mobile-app' | 'mqtt-device' | 'object-storage' | 'premium-branding' | 'remote-access' | 'reporting' | 'sla' | 'temporary-access' | 'vpn-access-rule' | 'vpn-usage';
|
|
2
|
+
export type LicenceUsageType = 'advanced-user-management' | 'agent-registration-profile' | 'alarming' | 'api-integrations' | 'app-engine-level-1' | 'app-engine-level-2' | 'asset-management' | 'card-view' | 'connection-monitoring' | 'custom-branding' | 'custom-domain' | 'custom-fields' | 'custom-legal' | 'custom-legal-legacy' | 'custom-sso' | 'ixagent' | 'landing-page' | 'live-data' | 'logging' | 'main-pages' | 'm2m-cloud-cluster' | 'mobile-app' | 'mqtt-device' | 'object-storage' | 'premium-branding' | 'remote-access' | 'reporting' | 'sla' | 'temporary-access' | 'vpn-access-rule' | 'vpn-usage';
|
|
3
3
|
export interface LicenceType {
|
|
4
4
|
companyLimit?: number | null;
|
|
5
5
|
publicId: string;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
export interface Message {
|
|
2
|
-
|
|
3
|
-
createdOn
|
|
4
|
-
|
|
5
|
-
longContent?: MessageLongContent;
|
|
2
|
+
/** I.e. "2019-01-01T12:00:00Z" */
|
|
3
|
+
createdOn: string;
|
|
4
|
+
longContent: MessageLongContent;
|
|
6
5
|
publicId: string;
|
|
7
|
-
read
|
|
8
|
-
shortContent
|
|
9
|
-
systemLabel
|
|
10
|
-
systemResult
|
|
11
|
-
userLabels?: any[];
|
|
6
|
+
read: boolean;
|
|
7
|
+
shortContent: MessageShortContent;
|
|
8
|
+
systemLabel: MessageSystemLabel | null;
|
|
9
|
+
systemResult: MessageSystemResult[];
|
|
12
10
|
}
|
|
13
11
|
export interface MessageShortContent {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
agentName?: string | null;
|
|
13
|
+
alarmName?: string | null;
|
|
14
|
+
code: string | null;
|
|
15
|
+
companyName?: string | null;
|
|
16
|
+
name?: string | null;
|
|
17
|
+
/** I.e. "2019-01-01T12:00:00Z" */
|
|
18
|
+
occurredOn?: string;
|
|
19
|
+
toTranslate: boolean;
|
|
19
20
|
}
|
|
20
21
|
export interface MessageLongContent {
|
|
21
|
-
code: string;
|
|
22
|
+
code: string | null;
|
|
22
23
|
extraInformation: MessageExtraInformation[];
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
toTranslate
|
|
26
|
-
[key: string]: any;
|
|
24
|
+
instructions?: string;
|
|
25
|
+
name?: string | null;
|
|
26
|
+
toTranslate: boolean;
|
|
27
27
|
}
|
|
28
28
|
export interface MessageExtraInformation {
|
|
29
|
-
key: string;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
value: string;
|
|
29
|
+
key: string | null;
|
|
30
|
+
toTranslate: boolean;
|
|
31
|
+
type: 'bool' | 'date' | 'float' | 'int' | 'string' | null;
|
|
32
|
+
value: boolean | number | string;
|
|
33
33
|
}
|
|
34
|
-
export type MessageSystemLabel = 'alarm-low' | 'alarm-medium' | 'alarm-high' | 'router-pulled';
|
|
35
|
-
export type MessageSystemResult = 'forward-to-mail' | 'send-push-notification' | 'send-webhook-trigger';
|
|
34
|
+
export type MessageSystemLabel = 'alarm-low' | 'alarm-medium' | 'alarm-high' | 'anti-theft-notification' | 'router-pulled';
|
|
35
|
+
export type MessageSystemResult = 'forward-to-mail' | 'mark-as-read' | 'send-push-notification' | 'send-webhook-trigger';
|
|
@@ -65,12 +65,14 @@ interface AgentResourceData {
|
|
|
65
65
|
serviceGroup?: string | null;
|
|
66
66
|
type?: 'http' | 'rdp' | 'vnc' | 'websocket';
|
|
67
67
|
visibleInMobileApp?: boolean;
|
|
68
|
+
visibleOnWeb?: boolean;
|
|
68
69
|
}[];
|
|
69
70
|
type?: {
|
|
70
71
|
name?: string;
|
|
71
72
|
publicId: string;
|
|
72
73
|
};
|
|
73
74
|
vpnVisibleInMobileApp?: boolean;
|
|
75
|
+
vpnVisibleOnWeb?: boolean;
|
|
74
76
|
}
|
|
75
77
|
interface AssetResourceData {
|
|
76
78
|
custom?: Record<string, any>;
|
|
@@ -88,10 +90,10 @@ interface AssetResourceData {
|
|
|
88
90
|
publicId: string;
|
|
89
91
|
};
|
|
90
92
|
}
|
|
91
|
-
interface AssetAppConfigResourceData {
|
|
93
|
+
interface AssetAppConfigResourceData<TValues = any, TStateValues = any> {
|
|
92
94
|
publicId: string;
|
|
93
|
-
stateValues?:
|
|
94
|
-
values?:
|
|
95
|
+
stateValues?: TStateValues | null;
|
|
96
|
+
values?: TValues | null;
|
|
95
97
|
}
|
|
96
98
|
interface BrandingResourceData {
|
|
97
99
|
logo?: string | null;
|
|
@@ -149,7 +151,7 @@ interface UserResourceData {
|
|
|
149
151
|
export declare namespace ResourceData {
|
|
150
152
|
type Agent = AgentResourceData;
|
|
151
153
|
type Asset = AssetResourceData;
|
|
152
|
-
type AssetAppConfig = AssetAppConfigResourceData
|
|
154
|
+
type AssetAppConfig<TValues = any, TStateValues = any> = AssetAppConfigResourceData<TValues, TStateValues>;
|
|
153
155
|
type Branding = BrandingResourceData;
|
|
154
156
|
type CustomProperty = CustomPropertyResourceData;
|
|
155
157
|
type Group = GroupResourceData;
|
package/package.json
CHANGED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
type ComponentInputType = 'AggregatedMetric' | 'Checkbox' | 'Color' | 'Date' | '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
|
-
disabled?: boolean;
|
|
11
|
-
hint?: string;
|
|
12
|
-
itemType?: ComponentInput;
|
|
13
|
-
key: string;
|
|
14
|
-
label?: string;
|
|
15
|
-
max?: number;
|
|
16
|
-
maxLength?: number;
|
|
17
|
-
min?: number;
|
|
18
|
-
minLength?: number;
|
|
19
|
-
options?: {
|
|
20
|
-
label: string;
|
|
21
|
-
shortLabel?: string;
|
|
22
|
-
value: any;
|
|
23
|
-
}[];
|
|
24
|
-
pattern?: RegExp;
|
|
25
|
-
placeholder?: string;
|
|
26
|
-
required?: boolean;
|
|
27
|
-
step?: number;
|
|
28
|
-
summary?: ComponentInputSummary;
|
|
29
|
-
size?: {
|
|
30
|
-
max: number;
|
|
31
|
-
};
|
|
32
|
-
translate?: boolean;
|
|
33
|
-
type?: ComponentInputType;
|
|
34
|
-
}
|
|
35
|
-
export {};
|