@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.
- package/dist/types/component-context/index.d.ts +24 -0
- package/dist/types/component-context/select.d.ts +33 -0
- package/dist/types/ixapi/resources/agent-router-lan-wan-access-rule.d.ts +1 -0
- package/dist/types/ixapi/resources/agent.d.ts +4 -2
- package/dist/types/ixapi/resources/asset-app-config-resource.d.ts +1 -0
- package/dist/types/ixapi/resources/controlled-device-membership.d.ts +10 -0
- package/dist/types/ixapi/resources/controlled-device.d.ts +17 -0
- package/dist/types/ixapi/resources/file-upload.d.ts +8 -0
- package/dist/types/ixapi/resources/index.d.ts +3 -0
- package/dist/types/ixapi/resources/user.d.ts +1 -0
- package/dist/types/resource-data/resource-data.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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 {};
|
|
@@ -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?:
|
|
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]:
|
|
73
|
+
[key: string]: unknown;
|
|
72
74
|
};
|
|
73
75
|
dataAudience?: Audience | null;
|
|
74
76
|
dataSources?: AgentDataSource[];
|
|
@@ -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
|
+
}
|
|
@@ -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';
|
|
@@ -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
|
}
|