@ixon-cdk/types 1.6.0 → 1.7.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.
@@ -3,4 +3,5 @@ export interface AgentPull {
3
3
  device: string;
4
4
  groups?: ResLink[];
5
5
  pullCode: string;
6
+ forced?: boolean;
6
7
  }
@@ -0,0 +1,10 @@
1
+ import type { ResLink } from './res-link';
2
+ export interface AssetLibraryVersion {
3
+ description?: string | null;
4
+ library?: ResLink;
5
+ publicId: string;
6
+ publishedBy?: ResLink;
7
+ publishedOn?: string;
8
+ renderedYaml?: boolean;
9
+ version?: number;
10
+ }
@@ -13,6 +13,9 @@ export interface Asset {
13
13
  };
14
14
  description?: string | null;
15
15
  enabled?: boolean;
16
+ hasChanges?: boolean;
17
+ isLibraryAsset?: boolean;
18
+ libraryAsset?: ResLink | null;
16
19
  memberships?: AssetMembership[];
17
20
  name?: string;
18
21
  order?: number;
@@ -21,3 +24,8 @@ export interface Asset {
21
24
  publicId: string;
22
25
  resourceVariant?: AssetType;
23
26
  }
27
+ export interface AssetInstanceCreate {
28
+ libraryAsset: ResLink;
29
+ order?: number;
30
+ parent: ResLink;
31
+ }
@@ -25,7 +25,7 @@ export interface DataQuery {
25
25
  operator?: string;
26
26
  postAggr: string;
27
27
  ref: string;
28
- step?: number;
28
+ step?: number | 'day' | 'week';
29
29
  }
30
30
  export interface DataRequest {
31
31
  end?: string;
@@ -1,5 +1,6 @@
1
1
  export interface GroupType {
2
2
  custom?: {};
3
+ color?: string | null;
3
4
  description?: string | null;
4
5
  name?: string;
5
6
  order?: number;
@@ -33,6 +33,7 @@ export * from './api-application';
33
33
  export * from './app-config';
34
34
  export * from './asset';
35
35
  export * from './asset-app-config';
36
+ export * from './asset-library-version';
36
37
  export * from './asset-membership';
37
38
  export * from './asset-type';
38
39
  export * from './audience';
@@ -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' | 'asset-management' | 'card-view' | 'connection-monitoring' | 'custom-branding' | 'custom-domain' | 'custom-fields' | 'custom-legal' | 'custom-legal-legacy' | 'custom-sso' | 'ixagent' | 'landing-page' | 'live-data' | 'logging' | 'main-pages' | 'm2m-cloud-cluster' | 'mobile-app' | 'mqtt-device' | 'object-storage' | 'premium-branding' | 'remote-access' | 'reporting' | 'sla' | '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' | 'asset-management' | 'card-view' | 'connection-monitoring' | 'custom-branding' | 'custom-domain' | 'custom-fields' | 'custom-legal' | 'custom-legal-legacy' | 'custom-sso' | 'ixagent' | 'landing-page' | 'live-data' | 'logging' | 'main-pages' | 'm2m-cloud-cluster' | 'mobile-app' | 'mqtt-device' | 'object-storage' | 'premium-branding' | 'remote-access' | 'reporting' | 'sla' | 'subgroups' | 'temporary-access' | 'vpn-access-rule' | 'vpn-usage';
3
3
  export interface LicenceType {
4
4
  companyLimit?: number | null;
5
5
  publicId: string;
@@ -44,6 +44,8 @@ export interface MyUser {
44
44
  * }
45
45
  */
46
46
  glbPrtDeviceViewSettings?: string;
47
+ /** JSON Object with timestamp of when the user skipped OTP setup, For example: "2019-01-01T12:00:00Z" */
48
+ glbSkippedOtpSetupOn?: string;
47
49
  /** JSON Object with starred agents per company, For example: { "1111-2222-3333-4444-5555": ["ixagent00001", "ixagent00003"]} */
48
50
  glbStarred?: string;
49
51
  };
@@ -3,6 +3,9 @@ import type { LoggingDataBlob } from './logging-data-blob';
3
3
  import type { LoggingDataMetric } from './logging-data-metric';
4
4
  import type { LoggingDataQuery } from './logging-data-query';
5
5
  import type { LoggingDataQueryOptions } from './logging-data-query-options';
6
+ /**
7
+ * Client to query historical logging data and live logging data.
8
+ */
6
9
  export interface LoggingDataClient {
7
10
  /**
8
11
  * Destroy the client. Always call this when the client is not used anymore. When the context is
@@ -74,7 +74,7 @@ export interface LoggingDataQuery {
74
74
  /**
75
75
  * Number of seconds between subsequent data-points
76
76
  */
77
- step?: number;
77
+ step?: number | 'day' | 'week';
78
78
  /**
79
79
  * The tag to fetch the data from. Must be null if variable is set
80
80
  */
@@ -1,10 +1,37 @@
1
1
  /** @module LoggingDataValue */
2
2
  export interface LoggingDataValue {
3
+ /**
4
+ * Set the amount of decimals used when using `toString`
5
+ *
6
+ * @param newDecimals amount of decimals to use
7
+ */
3
8
  setDecimals(newDecimals: number): void;
4
- /** @deprecated */
9
+ /**
10
+ * Set the value factor
11
+ *
12
+ * This method only has effect on `getFactor`
13
+ *
14
+ * @deprecated This method does not change the value. A new query should be
15
+ * created with the new factor
16
+ */
5
17
  setFactor(newFactor: number): void;
18
+ /**
19
+ * Overwrite the unit of measurement. Use in `toString`
20
+ *
21
+ * @param newUnit new unit to use
22
+ */
6
23
  setUnit(newUnit: string): void;
24
+ /**
25
+ * Get the values unit of measurement
26
+ */
7
27
  getUnit(): string;
28
+ /**
29
+ * Get the raw data value
30
+ */
8
31
  getValue(): boolean | number | string | null;
32
+ /**
33
+ * Get a pretty printed version of the data value. This includes the unit and
34
+ * uses the set amount of decimals
35
+ */
9
36
  toString(): string;
10
37
  }
@@ -77,6 +77,9 @@ interface AgentResourceData {
77
77
  interface AssetResourceData {
78
78
  custom?: Record<string, any>;
79
79
  description?: string | null;
80
+ libraryAsset?: {
81
+ publicId: string;
82
+ };
80
83
  memberships?: {
81
84
  group?: {
82
85
  publicId: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixon-cdk/types",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "",
5
5
  "main": "./dist/component-devkit/src/types/src/index.d.ts",
6
6
  "author": "",