@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.
@@ -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 {};
@@ -0,0 +1,6 @@
1
+ import type { ResLink } from './res-link';
2
+ export interface AgentLicenceBundleActivate {
3
+ publicId: string;
4
+ couponCode?: string;
5
+ bundle?: ResLink | null;
6
+ }
@@ -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
  }
@@ -86,6 +86,8 @@ export interface AgentLike {
86
86
  vpnProtocol?: VpnProtocol;
87
87
  /** default: false */
88
88
  vpnVisibleInMobileApp?: boolean;
89
+ /** default: true */
90
+ vpnVisibleOnWeb?: boolean;
89
91
  }
90
92
  export interface AgentLocalIp {
91
93
  reportedOn?: string;
@@ -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;
@@ -4,5 +4,6 @@ export interface MenuItem {
4
4
  audience?: Audience | null;
5
5
  order?: number;
6
6
  page?: Page;
7
+ pinned?: boolean;
7
8
  publicId: string;
8
9
  }
@@ -1,35 +1,35 @@
1
1
  export interface Message {
2
- company?: string;
3
- createdOn?: string;
4
- code?: string;
5
- longContent?: MessageLongContent;
2
+ /** I.e. "2019-01-01T12:00:00Z" */
3
+ createdOn: string;
4
+ longContent: MessageLongContent;
6
5
  publicId: string;
7
- read?: boolean;
8
- shortContent?: MessageShortContent;
9
- systemLabel?: MessageSystemLabel;
10
- systemResult?: MessageSystemResult[];
11
- userLabels?: any[];
6
+ read: boolean;
7
+ shortContent: MessageShortContent;
8
+ systemLabel: MessageSystemLabel | null;
9
+ systemResult: MessageSystemResult[];
12
10
  }
13
11
  export interface MessageShortContent {
14
- code: string;
15
- /** @deprecated */
16
- message?: string;
17
- toTranslate?: boolean;
18
- [key: string]: any;
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
- /** @deprecated */
24
- message?: string;
25
- toTranslate?: boolean;
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
- type: 'string' | 'date';
31
- toTranslate?: boolean;
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';
@@ -31,4 +31,4 @@ export interface PageComponentTemplate {
31
31
  /** @deprecated */
32
32
  version?: string | null;
33
33
  }
34
- export type PageComponentTemplateIntent = 'asset-configuration';
34
+ export type PageComponentTemplateIntent = 'asset-configuration' | 'landing-page';
@@ -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?: object | null;
94
- values?: object | null;
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixon-cdk/types",
3
- "version": "1.4.0",
3
+ "version": "1.5.0-next.1",
4
4
  "description": "",
5
5
  "main": "./dist/component-devkit/src/types/src/index.d.ts",
6
6
  "author": "",
@@ -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 {};