@ixon-cdk/types 1.16.0-next.2 → 1.17.0-next.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.
@@ -8,12 +8,14 @@ import type { ComponentContextAppData } from './app-data';
8
8
  import type { ActionBottomSheetOptions, ActionBottomSheetResult } from './bottom-sheet';
9
9
  import type { AlertDialogOptions, ConfirmDialogOptions, ContentDialogOptions, FormDialogOptions, FormDialogResult } from './dialog';
10
10
  import type { ActionMenuOptions, ActionMenuResult } from './menu';
11
+ import { MultiSelectPanelOptions, MultiSelectPanelResult, SingleSelectPanelOptions, SingleSelectPanelResult } from './select';
11
12
  import type { ToastOptions } from './toast';
12
13
  import type { Tooltip, TooltipOptions } from './tooltip';
13
14
  export type { ComponentContextAppData } from './app-data';
14
15
  export type { ActionBottomSheetAction, ActionBottomSheetOptions, ActionBottomSheetResult } from './bottom-sheet';
15
16
  export type { AlertDialogOptions, ConfirmDialogOptions, ContentDialogOptions, FormDialogOptions, FormDialogResult, } from './dialog';
16
17
  export type { ActionMenuAction, ActionMenuOptions, ActionMenuResult } from './menu';
18
+ export type { MultiSelectPanelOptions, MultiSelectPanelResult, SingleSelectPanelOptions, SingleSelectPanelResult, SelectPanelOption, } from './select';
17
19
  export type { Toast, ToastOptions } from './toast';
18
20
  export type { Tooltip, TooltipOptions } from './tooltip';
19
21
  export * from './input';
@@ -177,6 +179,28 @@ export interface ComponentContext<ComponentContextInputs extends object = {
177
179
  * @param options configures the form dialog
178
180
  */
179
181
  openFormDialog(options: FormDialogOptions): Promise<FormDialogResult | false | undefined>;
182
+ /**
183
+ * Opens a select panel.
184
+ *
185
+ * @param target the target element
186
+ * @param options configures the select panel
187
+ * @returns A promise that resolves with the index of the option that is selected, or `undefined` otherwise.
188
+ *
189
+ * @experimental
190
+ * @ignore
191
+ */
192
+ openSelectPanel(target: HTMLElement, options: SingleSelectPanelOptions): Promise<SingleSelectPanelResult | undefined>;
193
+ /**
194
+ * Opens a multi-select panel.
195
+ *
196
+ * @param target the target element
197
+ * @param options configures the multi-select panel
198
+ * @returns A promise that resolves with the indexes of the options that are selected, or `undefined` otherwise.
199
+ *
200
+ * @experimental
201
+ * @ignore
202
+ */
203
+ openSelectPanel(target: HTMLElement, options: MultiSelectPanelOptions): Promise<MultiSelectPanelResult | undefined>;
180
204
  /**
181
205
  * Opens a toast notification.
182
206
  *
@@ -0,0 +1,33 @@
1
+ interface SelectPanelOptions {
2
+ /** List of options. */
3
+ options: SelectPanelOption[];
4
+ /** Indicates whether a search input is shown. Defaults to false. */
5
+ search?: boolean;
6
+ /** Text to use for the search input placeholder. Defaults to "Search". */
7
+ searchPlaceholderText?: string;
8
+ }
9
+ export interface SingleSelectPanelOptions extends SelectPanelOptions {
10
+ /** Indicates a single option can be selected. */
11
+ multiple?: false;
12
+ /** The indexes of the options that are selected (optional) */
13
+ selected?: number;
14
+ }
15
+ export interface MultiSelectPanelOptions extends SelectPanelOptions {
16
+ /** Indicates multiple options can be selected. */
17
+ multiple: true;
18
+ /** The indexes of the options that are selected (optional) */
19
+ selected?: number[];
20
+ }
21
+ export interface SelectPanelOption {
22
+ /** Label of the option. */
23
+ text: string;
24
+ }
25
+ export interface SingleSelectPanelResult {
26
+ /** The index of the option that was selected (zero-based). */
27
+ index: number;
28
+ }
29
+ export interface MultiSelectPanelResult {
30
+ /** The indexes of the options that were selected (zero-based). */
31
+ indexes: number[];
32
+ }
33
+ export {};
@@ -3,6 +3,7 @@ export interface AgentRouterLanWanAccessRule {
3
3
  agent?: ResLink;
4
4
  description?: string | null;
5
5
  destinationPort?: number | null;
6
+ destinationIpAddress?: string | null;
6
7
  protocol?: AgentRouterTransportProtocol;
7
8
  publicId: string;
8
9
  sourceIpAddress?: string | null;
@@ -14,6 +14,7 @@ import type { AgentTemplate } from './agent-template';
14
14
  import type { AgentType } from './agent-type';
15
15
  import type { AlarmingApp } from './alarming-app';
16
16
  import type { Audience } from './audience';
17
+ import type { CompanyReference } from './company';
17
18
  import type { DemoDevice } from './demo-device';
18
19
  import type { Licence } from './licence';
19
20
  import type { GeoLocation, Location } from './location';
@@ -30,9 +31,10 @@ export interface Agent extends AgentLike {
30
31
  activeVpnSession?: VpnSession | null;
31
32
  alarmingApp?: AlarmingApp;
32
33
  assets?: ResLink[];
33
- company?: ResLink;
34
+ company?: CompanyReference;
34
35
  connectedUsers?: UserReference[];
35
36
  controlKeyGeneratedOn?: string | null;
37
+ controlledBy?: CompanyReference | null;
36
38
  demoDevice?: DemoDevice | null;
37
39
  deviceId?: string | null;
38
40
  fixedVpnAddress?: string | null;
@@ -68,7 +70,7 @@ export interface AgentLike {
68
70
  card?: ResLink | null;
69
71
  config?: AgentConfig | null;
70
72
  custom?: {
71
- [key: string]: any;
73
+ [key: string]: unknown;
72
74
  };
73
75
  dataAudience?: Audience | null;
74
76
  dataSources?: AgentDataSource[];
@@ -4,6 +4,7 @@ export interface AssetAppConfigResource {
4
4
  publicId: string;
5
5
  resourcePublicId?: string | null;
6
6
  resourceType?: string;
7
+ slug?: string;
7
8
  stateValues?: string | null;
8
9
  values?: string | null;
9
10
  }
@@ -0,0 +1,10 @@
1
+ import { ResLink } from './res-link';
2
+ export interface ControlledDeviceMembership {
3
+ publicId: string;
4
+ controlledDevice?: ResLink;
5
+ group?: ResLink;
6
+ }
7
+ export interface ControlledDeviceMembershipCreate {
8
+ controlledDevice: ResLink;
9
+ group: ResLink;
10
+ }
@@ -0,0 +1,17 @@
1
+ import { Agent } from './agent';
2
+ import { ControlledDeviceMembership } from './controlled-device-membership';
3
+ import { ResLink } from './res-link';
4
+ export interface ControlledDevice {
5
+ agent?: ControlledDeviceAgentReference | null;
6
+ memberships?: ControlledDeviceMembership[];
7
+ name?: string;
8
+ publicId: string;
9
+ }
10
+ /** @check controlleddevice*/
11
+ export type ControlledDeviceAgentReference = Pick<Agent, 'activeVpnSession' | 'company' | 'deviceId' | 'lastSeenAgentUserAgent' | 'macAddress' | 'mdrServer' | 'mqttChangedOn' | 'publicId' | 'serialNumber' | 'type' | 'vpnChangedOn'>;
12
+ export interface ControlledDeviceCreate {
13
+ controlKey: string;
14
+ device: string;
15
+ groups?: ResLink[];
16
+ name: string;
17
+ }
@@ -0,0 +1,8 @@
1
+ import type { ResLink } from './res-link';
2
+ export interface FileUpload {
3
+ company: ResLink;
4
+ publicId: string;
5
+ size: number;
6
+ type: string;
7
+ url: string;
8
+ }
@@ -52,6 +52,8 @@ export * from './backend-component-template-share';
52
52
  export * from './backend-component-template-version';
53
53
  export * from './branding';
54
54
  export * from './company';
55
+ export * from './controlled-device-membership';
56
+ export * from './controlled-device';
55
57
  export * from './custom-property';
56
58
  export * from './data';
57
59
  export * from './data-protocol';
@@ -60,6 +62,7 @@ export * from './demo-device';
60
62
  export * from './discovery';
61
63
  export * from './email-address-change';
62
64
  export * from './file';
65
+ export * from './file-upload';
63
66
  export * from './group';
64
67
  export * from './group-role';
65
68
  export * from './group-type';
@@ -53,6 +53,7 @@ export interface MyUser {
53
53
  };
54
54
  emailAddress?: string;
55
55
  emailAddressChanges?: EmailAddressChange[];
56
+ externallyManaged?: boolean;
56
57
  hasPassword?: boolean;
57
58
  invites?: Invite[];
58
59
  language?: string;
@@ -140,6 +140,7 @@ interface AssetAppConfigResourceData<TValues = unknown, TStateValues = unknown,
140
140
  publicId: string;
141
141
  resourcePublicId?: string | null;
142
142
  resourceType?: string;
143
+ slug?: string;
143
144
  stateValues?: TResourceStateValues | null;
144
145
  values?: TResourceValues | null;
145
146
  }[];
@@ -150,6 +151,7 @@ interface AssetAppConfigResourceResourceData<TValues = unknown, TStateValues = u
150
151
  publicId: string;
151
152
  resourcePublicId?: string | null;
152
153
  resourceType?: string;
154
+ slug?: string;
153
155
  stateValues?: TStateValues | null;
154
156
  values?: TValues | null;
155
157
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixon-cdk/types",
3
- "version": "1.16.0-next.2",
3
+ "version": "1.17.0-next.0",
4
4
  "description": "",
5
5
  "main": "./dist/component-devkit/src/types/src/index.d.ts",
6
6
  "author": "",