@ixon-cdk/types 1.12.0 → 1.13.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.
@@ -23,6 +23,18 @@ export interface ConfirmDialogOptions extends DialogOptions {
23
23
  export interface ContentDialogOptions {
24
24
  /** HTML content of the dialog. */
25
25
  htmlContent: HTMLElement | string;
26
+ pagination?: {
27
+ /** Index of the initially selected page. Defaults to `0`. */
28
+ initialPageIndex?: number;
29
+ /** The total amount of pages. */
30
+ pageCount: number;
31
+ /**
32
+ * Called when the page is changed.
33
+ *
34
+ * @param newPageIndex The newly selected page index.
35
+ */
36
+ onpagechange?: (newPageIndex: number) => void;
37
+ };
26
38
  /** CSS styles for the dialog content. */
27
39
  styles?: string;
28
40
  /** Title of the dialog. */
@@ -0,0 +1,22 @@
1
+ import type { AgentServerReference } from './agent-server';
2
+ import type { ResLink } from './res-link';
3
+ import type { UserReference } from './user';
4
+ export interface AgentAccessRequest {
5
+ agent?: ResLink;
6
+ allowedApprovers?: UserReference[];
7
+ approver?: UserReference | null;
8
+ /** I.e. "2019-01-01T12:00:00Z" */
9
+ end?: string;
10
+ publicId: string;
11
+ reason?: string;
12
+ servers?: AgentServerReference[];
13
+ /** I.e. "2019-01-01T12:00:00Z" */
14
+ start?: string;
15
+ status?: AgentAccessRequestStatus;
16
+ /** I.e. "2019-01-01T12:00:00Z" */
17
+ updatedOn?: string | null;
18
+ user?: UserReference;
19
+ vpn?: boolean;
20
+ }
21
+ type AgentAccessRequestStatus = 'approved' | 'pending' | 'rejected';
22
+ export {};
@@ -42,6 +42,7 @@ export interface AgentConfigRouterLan {
42
42
  dhcpServerRangeFrom?: string | null;
43
43
  dhcpServerRangeTo?: string | null;
44
44
  forwardLanWan?: AgentConfigRouterForwardLanWan;
45
+ forwardLanWan2?: AgentConfigRouterForwardLanWan;
45
46
  gatewayLessRouting?: boolean;
46
47
  ipAddress?: string;
47
48
  netMask?: string;
@@ -56,7 +57,7 @@ export type AgentConfigRouterForwardLanWan = 'both' | 'private' | 'public' | 'ne
56
57
  export interface AgentRouterPortForward {
57
58
  agent?: ResLink;
58
59
  externalPort?: number;
59
- interface?: 'VPN' | 'WAN';
60
+ interface?: 'VPN' | 'WAN' | 'WAN2';
60
61
  publicId: string;
61
62
  targetIpAddress?: string;
62
63
  targetPort?: number;
@@ -47,6 +47,7 @@ export interface AgentServerTemplate {
47
47
  vncEncoding?: string | null;
48
48
  vncRightClickOnTouchHold?: boolean;
49
49
  }
50
+ export type AgentServerReference = Pick<AgentServer, 'name' | 'publicId'>;
50
51
  type AgentServerType = 'http' | 'rdp' | 'vnc' | 'websocket';
51
52
  type ConnectionQuality = 'high' | 'normal' | 'low';
52
53
  type HttpAuthenticationType = 'ntlm' | 'basic' | 'digest';
@@ -10,6 +10,7 @@ export interface AgentType {
10
10
  custom?: {};
11
11
  customServers?: boolean;
12
12
  deviceIdFormat?: string;
13
+ hasSecondWanPort?: boolean;
13
14
  httpProxyPort?: number | null;
14
15
  latestFirmwareFile?: any;
15
16
  name?: string;
@@ -1,3 +1,4 @@
1
+ import type { AgentAccessRequest } from './agent-access-request';
1
2
  import type { AgentConfig } from './agent-config';
2
3
  import type { AgentDataSource } from './agent-data-source';
3
4
  import type { AgentDevice } from './agent-device';
@@ -20,10 +21,11 @@ import type { LoggingApp } from './logging-app';
20
21
  import type { LsiServer } from './lsi-server';
21
22
  import type { PageLink } from './page-link';
22
23
  import type { ResLink } from './res-link';
23
- import type { UserReference } from './user-reference';
24
+ import type { UserReference } from './user';
24
25
  import type { VpnProtocol } from './vpn-protocol';
25
26
  import type { VpnSession } from './vpn-session';
26
27
  export interface Agent extends AgentLike {
28
+ accessRequests?: AgentAccessRequest[];
27
29
  activationLicence?: Licence | null;
28
30
  activeStatus?: 'active' | 'inactive';
29
31
  activeVpnSession?: VpnSession | null;
@@ -1,7 +1,4 @@
1
- import type { AgentReference, AssetReference } from './reference';
2
1
  export interface Audience {
3
- agents?: AgentReference[];
4
- assets?: AssetReference[];
5
2
  custom?: {};
6
3
  default?: boolean;
7
4
  description?: string | null;
@@ -1,5 +1,5 @@
1
1
  import type { ResLink } from './res-link';
2
- import type { UserReference } from './user-reference';
2
+ import type { UserReference } from './user';
3
3
  export interface BackendComponentTemplateVersion {
4
4
  template?: ResLink;
5
5
  publicId: string;
@@ -1,4 +1,5 @@
1
1
  export * from './access-recover';
2
+ export * from './agent-access-request';
2
3
  export * from './access-token';
3
4
  export * from './agent';
4
5
  export * from './agent-activate';
@@ -91,7 +92,6 @@ export * from './password-change';
91
92
  export * from './permission';
92
93
  export * from './platform-server';
93
94
  export * from './policy';
94
- export * from './reference';
95
95
  export * from './registration';
96
96
  export * from './report-recurrence';
97
97
  export * from './report-schedule';
@@ -107,7 +107,6 @@ export * from './trusted-device';
107
107
  export * from './user';
108
108
  export * from './user-membership';
109
109
  export * from './user-push-device';
110
- export * from './user-reference';
111
110
  export * from './vpn-protocol';
112
111
  export * from './vpn-session';
113
112
  export * from './vpn-usage';
@@ -1,5 +1,5 @@
1
1
  import type { ResLink } from './res-link';
2
- import type { UserReference } from './user-reference';
2
+ import type { UserReference } from './user';
3
3
  export interface PageComponentTemplateVersion {
4
4
  createdBy?: UserReference;
5
5
  createdOn?: string | null;
@@ -74,3 +74,4 @@ export interface MyUserCreate extends Pick<MyUser, 'name' | 'language' | 'locali
74
74
  ssoAuthentication?: SsoAuthentication;
75
75
  termsOfUsePolicy?: ResLink | null;
76
76
  }
77
+ export type UserReference = Pick<User, 'name' | 'publicId'>;
@@ -1,4 +1,24 @@
1
1
  interface AgentResourceData {
2
+ accessRequests?: {
3
+ approver?: {
4
+ name?: string;
5
+ publicId: string;
6
+ } | null;
7
+ end?: string;
8
+ publicId: string;
9
+ servers?: {
10
+ name?: string;
11
+ publicId: string;
12
+ }[];
13
+ start?: string;
14
+ status?: 'approved' | 'pending' | 'rejected';
15
+ updatedOn?: string | null;
16
+ user?: {
17
+ name?: string;
18
+ publicId: string;
19
+ };
20
+ vpn?: boolean;
21
+ }[];
2
22
  activeVpnSession?: {
3
23
  rscServer?: {
4
24
  name?: string;
@@ -62,6 +82,7 @@ interface AgentResourceData {
62
82
  custom?: Record<string, any>;
63
83
  name?: string;
64
84
  publicId: string;
85
+ requireAccessApproval?: boolean;
65
86
  serviceGroup?: string | null;
66
87
  type?: 'http' | 'rdp' | 'vnc' | 'websocket';
67
88
  visibleInMobileApp?: boolean;
@@ -72,6 +93,7 @@ interface AgentResourceData {
72
93
  publicId: string;
73
94
  };
74
95
  vpnChangedOn?: string | null;
96
+ vpnRequireAccessApproval?: boolean;
75
97
  vpnVisibleInMobileApp?: boolean;
76
98
  vpnVisibleOnWeb?: boolean;
77
99
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixon-cdk/types",
3
- "version": "1.12.0",
3
+ "version": "1.13.0-next.1",
4
4
  "description": "",
5
5
  "main": "./dist/component-devkit/src/types/src/index.d.ts",
6
6
  "author": "",
@@ -1,8 +0,0 @@
1
- export interface AgentReference {
2
- publicId: string;
3
- name?: string | null;
4
- }
5
- export interface AssetReference {
6
- publicId: string;
7
- name?: string;
8
- }
@@ -1,2 +0,0 @@
1
- import type { User } from './user';
2
- export type UserReference = Pick<User, 'publicId' | 'name'>;