@ixon-cdk/types 1.6.0-next.2 → 1.7.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.
@@ -1,10 +1,8 @@
1
1
  import type { GeoLocation } from './location';
2
- import type { ResLink } from './res-link';
3
2
  import type { SsoAuthentication } from './sso-authentication';
4
3
  import type { SsoIdentityProvider } from './sso-identity-provider';
5
4
  import type { MyUser } from './user';
6
5
  export interface AccessToken {
7
- company?: ResLink | null;
8
6
  created?: {
9
7
  ip?: string | null;
10
8
  /** I.e. "2019-01-01T12:00:00Z" */
@@ -27,7 +25,6 @@ export interface AccessTokenSsoCreate extends AccessTokenCreate {
27
25
  ssoAuthentication: SsoAuthentication;
28
26
  }
29
27
  export interface AccessTokenCreateResponse {
30
- company?: ResLink | null;
31
28
  /** I.e. "2019-01-01T12:00:00Z" */
32
29
  expiresOn: string;
33
30
  publicId: string;
@@ -3,4 +3,5 @@ export interface AgentPull {
3
3
  device: string;
4
4
  groups?: ResLink[];
5
5
  pullCode: string;
6
+ forced?: boolean;
6
7
  }
@@ -13,6 +13,8 @@ export interface Asset {
13
13
  };
14
14
  description?: string | null;
15
15
  enabled?: boolean;
16
+ isLibraryAsset?: boolean;
17
+ libraryAsset?: ResLink | null;
16
18
  memberships?: AssetMembership[];
17
19
  name?: string;
18
20
  order?: number;
@@ -21,3 +23,8 @@ export interface Asset {
21
23
  publicId: string;
22
24
  resourceVariant?: AssetType;
23
25
  }
26
+ export interface AssetInstanceCreate {
27
+ libraryAsset: ResLink;
28
+ order?: number;
29
+ parent: ResLink;
30
+ }
@@ -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,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;
@@ -3,6 +3,7 @@ export interface OtpAuth {
3
3
  registeredOn?: string | null;
4
4
  required?: boolean;
5
5
  tokenExpiresOn?: string | null;
6
+ type?: 'app' | 'sms' | null;
6
7
  }
7
8
  export interface OtpAuthEnableResponse {
8
9
  secret: string;
@@ -1,6 +1,6 @@
1
1
  import type { ResLink } from './res-link';
2
2
  export interface SsoIdentityProvider {
3
- company?: ResLink | null;
3
+ companies?: ResLink[];
4
4
  logo?: string | null;
5
5
  name?: string;
6
6
  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
  };
@@ -57,6 +59,7 @@ export interface MyUser {
57
59
  localisation?: string | null;
58
60
  name?: string;
59
61
  otpAuth?: OtpAuth | null;
62
+ phoneNumber?: string | null;
60
63
  publicId: string;
61
64
  /** For example 2019-01-01T12:00:00Z */
62
65
  registeredOn?: string;
@@ -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-next.2",
3
+ "version": "1.7.0-next.0",
4
4
  "description": "",
5
5
  "main": "./dist/component-devkit/src/types/src/index.d.ts",
6
6
  "author": "",