@ixon-cdk/types 1.10.0-next.1 → 1.10.0

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.
@@ -154,6 +154,16 @@ export interface ComponentContext<ComponentContextInputs extends object = {
154
154
  * @param options configures the form dialog
155
155
  */
156
156
  openFormDialog(options: FormDialogOptions): Promise<FormDialogResult | false | undefined>;
157
+ /**
158
+ * Helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing the passed HTML, removing any potentially unsafe content.
159
+ *
160
+ * @param html the HTML to sanitize
161
+ *
162
+ * @param options allowStyleAtrr: if set to true, the style attribute will be allowed in the HTML. Defaults to false
163
+ */
164
+ sanitizeHtml(html: string, options?: {
165
+ allowStyleAtrr?: boolean;
166
+ }): string | null;
157
167
  /**
158
168
  * Save a file.
159
169
  *
@@ -20,7 +20,7 @@ import type { LoggingApp } from './logging-app';
20
20
  import type { LsiServer } from './lsi-server';
21
21
  import type { PageLink } from './page-link';
22
22
  import type { ResLink } from './res-link';
23
- import type { User } from './user';
23
+ import type { UserReference } from './user-reference';
24
24
  import type { VpnProtocol } from './vpn-protocol';
25
25
  import type { VpnSession } from './vpn-session';
26
26
  export interface Agent extends AgentLike {
@@ -30,7 +30,7 @@ export interface Agent extends AgentLike {
30
30
  alarmingApp?: AlarmingApp;
31
31
  assets?: ResLink[];
32
32
  company?: ResLink;
33
- connectedUsers?: User[];
33
+ connectedUsers?: UserReference[];
34
34
  demoDevice?: DemoDevice | null;
35
35
  deviceId?: string | null;
36
36
  fixedVpnAddress?: string | null;
@@ -1,9 +1,11 @@
1
1
  import type { ResLink } from './res-link';
2
+ import type { UserReference } from './user-reference';
2
3
  export interface BackendComponentTemplateVersion {
3
4
  template?: ResLink;
4
5
  publicId: string;
5
6
  number?: string;
6
7
  publishedOn?: string | null;
8
+ createdBy?: UserReference;
7
9
  createdOn?: string;
8
10
  }
9
11
  export type BackendComponentTemplateConfiguredVersion = Pick<BackendComponentTemplateVersion, 'number' | 'publicId'>;
@@ -105,6 +105,7 @@ export * from './trusted-device';
105
105
  export * from './user';
106
106
  export * from './user-membership';
107
107
  export * from './user-push-device';
108
+ export * from './user-reference';
108
109
  export * from './vpn-protocol';
109
110
  export * from './vpn-session';
110
111
  export * from './vpn-usage';
@@ -1,5 +1,7 @@
1
1
  import type { ResLink } from './res-link';
2
+ import type { UserReference } from './user-reference';
2
3
  export interface PageComponentTemplateVersion {
4
+ createdBy?: UserReference;
3
5
  createdOn?: string | null;
4
6
  mainPath?: string;
5
7
  notes?: string | null;
@@ -7,7 +7,6 @@ export interface Sector {
7
7
  corporateWebsite?: string | null;
8
8
  custom?: {
9
9
  glbRouterConfigName?: string;
10
- glbShowCustomComponents?: boolean;
11
10
  /** @deprecated */
12
11
  glbSlaDownloadUrl?: string;
13
12
  glbSupportedPlatforms?: string;
@@ -0,0 +1,2 @@
1
+ import type { User } from './user';
2
+ export type UserReference = Pick<User, 'publicId' | 'name'>;
@@ -22,6 +22,8 @@ export interface User {
22
22
  export interface MyUser {
23
23
  acceptedTermsOfUsePolicies?: AcceptedTermsOfUsePolicy[];
24
24
  custom?: {
25
+ /** JSON Object with view settings per company, For example: { "1111-2222-3333-4444-5555": { "subgroupHierarchyLayout": "top"}} */
26
+ glbAdmViewSettings?: string;
25
27
  /** JSON Object with user columns per company, For example: { "1111-2222-3333-4444-5555": ["status", "name", "lastOnline"]} */
26
28
  glbFltDeviceTableCols?: string;
27
29
  /** JSON Object with view settings per company,
@@ -71,6 +71,7 @@ interface AgentResourceData {
71
71
  name?: string;
72
72
  publicId: string;
73
73
  };
74
+ vpnChangedOn?: string | null;
74
75
  vpnVisibleInMobileApp?: boolean;
75
76
  vpnVisibleOnWeb?: boolean;
76
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixon-cdk/types",
3
- "version": "1.10.0-next.1",
3
+ "version": "1.10.0",
4
4
  "description": "",
5
5
  "main": "./dist/component-devkit/src/types/src/index.d.ts",
6
6
  "author": "",