@ixon-cdk/types 1.21.0-next.2 → 1.22.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.
Files changed (29) hide show
  1. package/dist/types/component-context/index.d.ts +1 -1
  2. package/dist/types/ixapi/resources/agent-data-alarm-occurrence.d.ts +2 -1
  3. package/dist/types/ixapi/resources/agent-data-tag.d.ts +1 -1
  4. package/dist/types/ixapi/resources/agent-edge-app-instance-service.d.ts +1 -1
  5. package/dist/types/ixapi/resources/agent-edge-app-instance.d.ts +3 -1
  6. package/dist/types/ixapi/resources/agent-server.d.ts +3 -1
  7. package/dist/types/ixapi/resources/asset-app-config-resource.d.ts +1 -1
  8. package/dist/types/ixapi/resources/asset-app-config.d.ts +1 -1
  9. package/dist/types/ixapi/resources/asset.d.ts +1 -0
  10. package/dist/types/ixapi/resources/controlled-device-membership.d.ts +1 -1
  11. package/dist/types/ixapi/resources/controlled-device.d.ts +3 -3
  12. package/dist/types/ixapi/resources/data-deletion-request.d.ts +6 -0
  13. package/dist/types/ixapi/resources/data.d.ts +1 -1
  14. package/dist/types/ixapi/resources/edge-app.d.ts +1 -1
  15. package/dist/types/ixapi/resources/index.d.ts +4 -3
  16. package/dist/types/ixapi/resources/licence-type.d.ts +1 -1
  17. package/dist/types/ixapi/resources/menu-item.d.ts +23 -1
  18. package/dist/types/ixapi/resources/page-component-template-manifest.d.ts +1 -1
  19. package/dist/types/ixapi/resources/page-link-group.d.ts +1 -0
  20. package/dist/types/ixapi/resources/page-link.d.ts +1 -0
  21. package/dist/types/ixapi/resources/page-version.d.ts +1 -1
  22. package/dist/types/ixapi/resources/pipeline-function.d.ts +1 -1
  23. package/dist/types/ixapi/resources/web-access.d.ts +11 -1
  24. package/dist/types/logging-data/logging-data-client.d.ts +11 -3
  25. package/dist/types/logging-data/logging-data-query.d.ts +1 -1
  26. package/dist/types/resource-data/resource-data-client.d.ts +7 -2
  27. package/dist/types/resource-data/resource-data-query.d.ts +1 -1
  28. package/dist/types/resource-data/resource-data.d.ts +6 -1
  29. package/package.json +5 -1
@@ -8,7 +8,7 @@ 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
+ import type { MultiSelectPanelOptions, MultiSelectPanelResult, SingleSelectPanelOptions, SingleSelectPanelResult } from './select';
12
12
  import type { ToastOptions } from './toast';
13
13
  import type { Tooltip, TooltipOptions } from './tooltip';
14
14
  export type { ComponentContextAppData } from './app-data';
@@ -1,10 +1,11 @@
1
+ import type { AgentDataAlarm } from './agent-data-alarm';
1
2
  import type { ResLink } from './res-link';
2
3
  export interface AgentDataAlarmOccurrence {
3
4
  acknowledged?: boolean;
4
5
  acknowledgedBy?: ResLink | null;
5
6
  /** I.e. "2019-01-01T12:00:00Z" */
6
7
  acknowledgedOn: string | null;
7
- alarm?: ResLink;
8
+ alarm?: AgentDataAlarm;
8
9
  comment?: string | null;
9
10
  /** I.e. "2019-01-01T12:00:00Z" */
10
11
  occurredOn?: string;
@@ -11,7 +11,7 @@ export interface AgentDataTag {
11
11
  logEvent?: 'interval' | 'change' | 'trigger';
12
12
  loggingInterval?: string | null;
13
13
  logTrigger?: ResLink | null;
14
- name?: string;
14
+ name?: string | null;
15
15
  onChangeExpiry?: string | null;
16
16
  publicId: string;
17
17
  retentionPolicy?: string | null;
@@ -1,4 +1,4 @@
1
- import { ResLink } from './res-link';
1
+ import type { ResLink } from './res-link';
2
2
  export interface AgentEdgeAppInstanceServiceOverrides {
3
3
  environment?: string | null;
4
4
  }
@@ -1,5 +1,5 @@
1
1
  import type { AgentEdgeAppInstanceService } from './agent-edge-app-instance-service';
2
- import { EdgeAppFile } from './edge-app-file';
2
+ import type { EdgeAppFile } from './edge-app-file';
3
3
  import type { ResLink } from './res-link';
4
4
  export interface EdgeAppInstanceDeploymentProgress {
5
5
  files: EdgeAppInstanceProgress;
@@ -12,8 +12,10 @@ export interface EdgeAppInstanceProgress {
12
12
  export type EdgeAppInstanceDeploymentStatus = 'deleting' | 'deploying' | 'error' | 'pending' | 'running';
13
13
  export type AgentEdgeAppInstance = {
14
14
  agent?: ResLink;
15
+ differentConfigs?: boolean;
15
16
  edgeAppVersion?: ResLink;
16
17
  files?: EdgeAppFile[];
18
+ lastEvent?: string | null;
17
19
  name?: string;
18
20
  publicId: string;
19
21
  services?: AgentEdgeAppInstanceService[];
@@ -14,6 +14,7 @@ export interface AgentServer {
14
14
  port?: number;
15
15
  publicId: string;
16
16
  readOnly?: boolean | null;
17
+ recordSessions?: boolean | null;
17
18
  requireAccessApproval?: boolean;
18
19
  serviceGroup?: string | null;
19
20
  template?: AgentServerTemplate | null;
@@ -40,6 +41,7 @@ export interface AgentServerTemplate {
40
41
  port?: number;
41
42
  publicId: string;
42
43
  readOnly?: boolean | null;
44
+ recordSessions?: boolean | null;
43
45
  requireAccessApproval?: boolean;
44
46
  type?: AgentServerType;
45
47
  username?: string | null;
@@ -50,7 +52,7 @@ export interface AgentServerTemplate {
50
52
  vncRightClickOnTouchHold?: boolean;
51
53
  }
52
54
  export type AgentServerReference = Pick<AgentServer, 'name' | 'publicId'>;
53
- export type AgentServerType = 'http' | 'rdp' | 'rtsp' | 'vnc' | 'websocket';
55
+ export type AgentServerType = 'http' | 'rdp' | 'rtsp' | 'ssh' | 'vnc' | 'websocket';
54
56
  export type ConnectionQuality = 'high' | 'normal' | 'low';
55
57
  type HttpAuthenticationType = 'ntlm' | 'basic' | 'digest';
56
58
  export {};
@@ -1,4 +1,4 @@
1
- import { ResLink } from './res-link';
1
+ import type { ResLink } from './res-link';
2
2
  export interface AssetAppConfigResource {
3
3
  config?: ResLink;
4
4
  publicId: string;
@@ -1,5 +1,5 @@
1
1
  import type { ResLink } from './res-link';
2
- import { AssetAppConfigResource } from './asset-app-config-resource';
2
+ import type { AssetAppConfigResource } from './asset-app-config-resource';
3
3
  export interface AssetAppConfig {
4
4
  app?: ResLink;
5
5
  asset?: ResLink;
@@ -26,6 +26,7 @@ export interface Asset {
26
26
  publicId: string;
27
27
  resourceVariant?: AssetType;
28
28
  root?: ResLink | null;
29
+ slug?: string | null;
29
30
  }
30
31
  export interface AssetInstanceCreate {
31
32
  libraryAsset: ResLink;
@@ -1,4 +1,4 @@
1
- import { ResLink } from './res-link';
1
+ import type { ResLink } from './res-link';
2
2
  export interface ControlledDeviceMembership {
3
3
  publicId: string;
4
4
  controlledDevice?: ResLink;
@@ -1,6 +1,6 @@
1
- import { Agent } from './agent';
2
- import { ControlledDeviceMembership } from './controlled-device-membership';
3
- import { ResLink } from './res-link';
1
+ import type { Agent } from './agent';
2
+ import type { ControlledDeviceMembership } from './controlled-device-membership';
3
+ import type { ResLink } from './res-link';
4
4
  export interface ControlledDevice {
5
5
  agent?: ControlledDeviceAgentReference | null;
6
6
  memberships?: ControlledDeviceMembership[];
@@ -0,0 +1,6 @@
1
+ import type { ResLink } from './res-link';
2
+ export interface DataDeletionRequestCreate {
3
+ end: string;
4
+ source: ResLink;
5
+ start: string;
6
+ }
@@ -34,7 +34,7 @@ export interface DataQuery {
34
34
  postAggr?: string;
35
35
  postTransform?: 'difference' | null;
36
36
  ref: string;
37
- step?: number | 'day' | 'week';
37
+ step?: number | 'day' | 'week' | 'month';
38
38
  }
39
39
  export interface DataRequest {
40
40
  end?: string;
@@ -1,4 +1,4 @@
1
- import { CompanyReference } from './company';
1
+ import type { CompanyReference } from './company';
2
2
  export interface EdgeApp {
3
3
  company?: CompanyReference | null;
4
4
  description?: string | null;
@@ -58,14 +58,15 @@ export * from './company';
58
58
  export * from './controlled-device';
59
59
  export * from './controlled-device-membership';
60
60
  export * from './custom-property';
61
- export * from './data';
62
- export * from './data-protocol';
61
+ export * from './data-deletion-request';
63
62
  export * from './data-protocol-applied';
63
+ export * from './data-protocol';
64
+ export * from './data';
64
65
  export * from './demo-device';
65
66
  export * from './discovery';
66
- export * from './edge-app';
67
67
  export * from './edge-app-file';
68
68
  export * from './edge-app-version';
69
+ export * from './edge-app';
69
70
  export * from './email-address-change';
70
71
  export * from './file';
71
72
  export * from './file-upload';
@@ -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' | 'app-engine-level-3' | 'asset-management' | 'card-view' | 'connection-monitoring' | 'controlled-devices' | 'custom-branding' | 'custom-domain' | 'custom-fields' | 'custom-legal' | 'custom-legal-legacy' | 'custom-sso' | 'ixagent' | 'landing-page' | 'live-data' | 'logging' | 'm2m-cloud-cluster' | 'main-pages' | 'mobile-app' | 'mqtt-device' | 'object-storage' | 'premium-branding' | 'rdp' | 'remote-access' | 'reporting' | 'request-access' | 'rtsp' | 'sla' | 'ssh' | 'subgroups' | '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' | 'app-engine-level-3' | 'asset-management' | 'card-view' | 'connection-monitoring' | 'controlled-devices' | 'custom-branding' | 'custom-domain' | 'custom-fields' | 'custom-legal' | 'custom-legal-legacy' | 'custom-sso' | 'ixagent' | 'landing-page' | 'live-data' | 'logging' | 'm2m-cloud-cluster' | 'main-pages' | 'mobile-app' | 'mqtt-device' | 'object-storage' | 'premium-branding' | 'rdp' | 'remote-access' | 'reporting' | 'request-access' | 'rtsp' | 'scim' | 'session-recording' | 'sla' | 'ssh' | 'subgroups' | 'temporary-access' | 'vpn-access-rule' | 'vpn-usage';
3
3
  export interface LicenceType {
4
4
  companyLimit?: number | null;
5
5
  publicId: string;
@@ -1,9 +1,31 @@
1
1
  import type { Audience } from './audience';
2
2
  import type { Page } from './page';
3
+ import type { PageLink } from './page-link';
4
+ import type { ResLink } from './res-link';
3
5
  export interface MenuItem {
4
6
  audience?: Audience | null;
7
+ custom?: {
8
+ /** String reference for a material design named icon. */
9
+ glbMatIcon?: string;
10
+ };
11
+ name?: string | null;
5
12
  order?: number;
6
- page?: Page;
13
+ page?: Page | null;
14
+ pageLinks?: PageLink[];
7
15
  pinned?: boolean;
8
16
  publicId: string;
9
17
  }
18
+ export type MenuItemCreate = Pick<MenuItem, 'custom' | 'name' | 'order' | 'pinned'> & {
19
+ audience?: ResLink | null;
20
+ page?: ResLink | null;
21
+ pageLinks?: MenuItemPageLink[];
22
+ };
23
+ export type MenuItemUpdate = Pick<MenuItem, 'custom' | 'name' | 'order' | 'pinned' | 'publicId'> & {
24
+ audience?: ResLink | null;
25
+ page?: ResLink | null;
26
+ pageLinks?: MenuItemPageLink[];
27
+ };
28
+ export type MenuItemPageLink = Pick<PageLink, 'audience' | 'custom' | 'order' | 'page'> & {
29
+ audience?: ResLink | null;
30
+ group?: string | null;
31
+ };
@@ -1,5 +1,5 @@
1
1
  import type { ResLink } from './res-link';
2
- import { ComponentInput } from '../../component-input';
2
+ import type { ComponentInput } from '../../component-input';
3
3
  export interface PageComponentTemplateManifest {
4
4
  /** @deprecated */
5
5
  author?: string | null;
@@ -2,6 +2,7 @@ import type { ResLink } from './res-link';
2
2
  export interface PageLinkGroup {
3
3
  agent?: ResLink | null;
4
4
  asset?: ResLink | null;
5
+ menuItem?: ResLink | null;
5
6
  name?: string;
6
7
  publicId: string;
7
8
  }
@@ -7,6 +7,7 @@ export interface PageLink {
7
7
  audience?: Audience | null;
8
8
  custom?: {};
9
9
  group?: PageLinkGroup | null;
10
+ menuItem?: ResLink | null;
10
11
  order?: number;
11
12
  page?: ResLink;
12
13
  publicId: string;
@@ -1,7 +1,7 @@
1
1
  import type { PageComponent } from './page-component';
2
2
  import type { PagePage } from './page-page';
3
3
  import type { ResLink } from './res-link';
4
- import { UserReference } from './user';
4
+ import type { UserReference } from './user';
5
5
  export interface PageVersion {
6
6
  components?: PageComponent[];
7
7
  createdBy?: UserReference | null;
@@ -1,4 +1,4 @@
1
- import { CompanyReference } from './company';
1
+ import type { CompanyReference } from './company';
2
2
  export interface PipelineFunction {
3
3
  publicId: string;
4
4
  name?: string;
@@ -1,3 +1,13 @@
1
+ import type { Agent } from './agent';
2
+ import type { AgentServer } from './agent-server';
1
3
  export interface WebAccess {
2
- url: string;
4
+ agent?: Agent;
5
+ agentServer?: AgentServer;
6
+ closeReason?: string | null;
7
+ expiresOn?: string;
8
+ publicId: string;
9
+ }
10
+ export interface WebAccessCreateResponse {
11
+ publicId: string;
12
+ url?: string;
3
13
  }
@@ -13,10 +13,16 @@ export interface LoggingDataClient {
13
13
  */
14
14
  destroy(): void;
15
15
  /**
16
- * Starts a query for logging data. This method can be used for historic and live data depending
17
- * on the selector.
16
+ * Starts a query for logging data. Results are delivered through the `listener` callback. This method can be used
17
+ * for historic and live data depending on the selector. The `listener` may be called multiple times in multiple
18
+ * cases, including but not limited to:
18
19
  *
19
- * @returns {function()} Returns a deregistration function for the listener.
20
+ * * when new live data comes in
21
+ * * when a different time period is selected
22
+ * * when an auto-refresh is active
23
+ *
24
+ * @returns {function()} Returns a deregistration function for the listener. Until this function is called, or the
25
+ * client is destroyed, the `listener` callback will continue to get called.
20
26
  */
21
27
  query(query: LoggingDataQuery, listener: (result: LoggingDataMetric[]) => any): () => void;
22
28
  query(queries: LoggingDataQuery[], listener: (results: LoggingDataMetric[][]) => any): () => void;
@@ -26,6 +32,8 @@ export interface LoggingDataClient {
26
32
  *
27
33
  * - If `format` is `'csv'`, the result type is `LoggingDataBlob`
28
34
  * - Otherwise, the result type is `LoggingDataMetric[][]`
35
+ *
36
+ * If the `once` field is set to `true`, the query listener will be called at most once.
29
37
  */
30
38
  listener: (results: T extends {
31
39
  format: 'csv';
@@ -81,7 +81,7 @@ export interface LoggingDataQuery {
81
81
  /**
82
82
  * Number of seconds between subsequent data-points
83
83
  */
84
- step?: number | 'day' | 'week';
84
+ step?: number | 'day' | 'week' | 'month';
85
85
  /**
86
86
  * The tag to fetch the data from. Must be null if variable is set
87
87
  */
@@ -7,7 +7,7 @@ import type { ResourceDataResult } from './resource-data-result';
7
7
  import type { ResourceDataUpdate, ResourceDataUpdateSelector } from './resource-data-update';
8
8
  interface ResultDataMap {
9
9
  Agent: ResourceData.Agent;
10
- AgentDataTag: ResourceData.AgentDataTag;
10
+ AgentDataTagList: ResourceData.AgentDataTag[];
11
11
  AppConfig: ResourceData.AppConfig;
12
12
  Asset: ResourceData.Asset;
13
13
  AssetAppConfig: ResourceData.AssetAppConfig;
@@ -18,6 +18,7 @@ interface ResultDataMap {
18
18
  LicenceList: ResourceData.Licence[];
19
19
  MyCompany: ResourceData.MyCompany;
20
20
  MyUser: ResourceData.MyUser;
21
+ Page: ResourceData.Page;
21
22
  PagePage: ResourceData.PagePage;
22
23
  PageVersion: ResourceData.PageVersion;
23
24
  UserList: ResourceData.User[];
@@ -33,7 +34,11 @@ export interface ResourceDataClient {
33
34
  */
34
35
  destroy(): void;
35
36
  /**
36
- * @returns {function()} Returns a deregistration function for the listener.
37
+ * Starts a query for resource data. Results are delivered through the `listener` callback. The `listener` may be
38
+ * called multiple times when resource data changes.
39
+ *
40
+ * @returns {function()} Returns a deregistration function for the listener. Until this function is called, or the
41
+ * client is destroyed, the `listener` callback will continue to get called.
37
42
  */
38
43
  query<T extends ResourceDataQuerySelector>(query: ResourceDataQuery<T> | [ResourceDataQuery<T>], listener: (results: [ResourceDataResult<ResultDataMap[T]>]) => unknown): () => void;
39
44
  query<T1 extends ResourceDataQuerySelector, T2 extends ResourceDataQuerySelector>(query: [ResourceDataQuery<T1>, ResourceDataQuery<T2>], listener: (results: [ResourceDataResult<ResultDataMap[T1]>, ResourceDataResult<ResultDataMap[T2]>]) => unknown): () => void;
@@ -1,5 +1,5 @@
1
1
  /** @module ResourceDataQuery */
2
- export type ResourceDataQuerySelector = 'Agent' | 'AgentDataTag' | 'AppConfig' | 'Asset' | 'AssetAppConfig' | 'AssetAppConfigList' | 'Branding' | 'CustomPropertyList' | 'GroupList' | 'LicenceList' | 'MyCompany' | 'MyUser' | 'PagePage' | 'PageVersion' | 'UserList';
2
+ export type ResourceDataQuerySelector = 'Agent' | 'AgentDataTagList' | 'AppConfig' | 'Asset' | 'AssetAppConfig' | 'AssetAppConfigList' | 'Branding' | 'CustomPropertyList' | 'GroupList' | 'LicenceList' | 'MyCompany' | 'MyUser' | 'Page' | 'PagePage' | 'PageVersion' | 'UserList';
3
3
  export interface ResourceDataQuery<TSelector = ResourceDataQuerySelector> {
4
4
  /**
5
5
  * String reference unique to the query call made by the client.
@@ -100,7 +100,7 @@ interface AgentResourceData {
100
100
  publicId: string;
101
101
  requireAccessApproval?: boolean;
102
102
  serviceGroup?: string | null;
103
- type?: 'http' | 'rdp' | 'rtsp' | 'vnc' | 'websocket';
103
+ type?: 'http' | 'rdp' | 'rtsp' | 'ssh' | 'vnc' | 'websocket';
104
104
  visibleInMobileApp?: boolean;
105
105
  visibleOnWeb?: boolean;
106
106
  }[];
@@ -218,6 +218,10 @@ interface MyUserResourceData {
218
218
  support?: boolean;
219
219
  unreadMessagesCount?: number;
220
220
  }
221
+ interface PageResourceData {
222
+ applicationType?: 'sheet' | 'card' | 'report';
223
+ publicId: string;
224
+ }
221
225
  interface PagePageResourceData {
222
226
  order?: number | null;
223
227
  publicId: string;
@@ -247,6 +251,7 @@ export declare namespace ResourceData {
247
251
  type Licence = LicenceResourceData;
248
252
  type MyCompany = MyCompanyResourceData;
249
253
  type MyUser = MyUserResourceData;
254
+ type Page = PageResourceData;
250
255
  type PagePage = PagePageResourceData;
251
256
  type PageVersion = PageVersionResourceData;
252
257
  type User = UserResourceData;
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@ixon-cdk/types",
3
- "version": "1.21.0-next.2",
3
+ "version": "1.22.0-next.0",
4
4
  "description": "",
5
+ "type": "module",
5
6
  "main": "./dist/component-devkit/src/types/src/index.d.ts",
7
+ "exports": {
8
+ ".": "./dist/component-devkit/src/types/src/index.d.ts"
9
+ },
6
10
  "author": "",
7
11
  "license": "ISC",
8
12
  "files": [