@ixon-cdk/types 1.24.0 → 1.25.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.
@@ -18,7 +18,7 @@ export interface ComponentInput {
18
18
  * Only applicable to type `Group`.
19
19
  */
20
20
  children?: ComponentInput[];
21
- defaultValue?: any;
21
+ defaultValue?: unknown;
22
22
  description?: string;
23
23
  /**
24
24
  * @default false
@@ -47,7 +47,7 @@ export interface ComponentInput {
47
47
  options?: {
48
48
  label: string;
49
49
  shortLabel?: string;
50
- value: any;
50
+ value: unknown;
51
51
  }[];
52
52
  /**
53
53
  * Only applicable to type `String`.
@@ -86,5 +86,8 @@ export interface ComponentInput {
86
86
  */
87
87
  translate?: boolean;
88
88
  type: ComponentInputType;
89
+ metric?: {
90
+ source: 'auto' | 'app';
91
+ };
89
92
  }
90
93
  export {};
@@ -12,7 +12,7 @@ export interface Asset {
12
12
  card?: ResLink;
13
13
  company?: ResLink;
14
14
  custom?: {
15
- [key: string]: any;
15
+ [key: string]: unknown;
16
16
  };
17
17
  description?: string | null;
18
18
  enabled?: boolean;
@@ -40,7 +40,7 @@ export interface AssetTreeUpdateNodeReference extends AssetTreeUpdateNodeBase {
40
40
  }
41
41
  export interface AssetTreeUpdateNodeCreate extends AssetTreeUpdateNodeBase {
42
42
  name: string;
43
- resourceVariant: AssetType;
43
+ resourceVariant: ResLink;
44
44
  }
45
45
  export type AssetTreeUpdateNode = AssetTreeUpdateNodeReference | AssetTreeUpdateNodeCreate;
46
46
  export interface AssetTreeUpdateNodeBase {
@@ -1,3 +1,4 @@
1
+ import type { ApiApplication } from './api-application';
1
2
  import type { EmailAddressChange } from './email-address-change';
2
3
  import type { Invite } from './invite';
3
4
  import type { OtpAuth } from './otp-auth';
@@ -17,8 +18,6 @@ export interface User {
17
18
  /** Whether the user has two-factor authentication activated for their account. */
18
19
  otpauthRequired?: boolean;
19
20
  publicId: string;
20
- /** Set for service accounts only */
21
- registeredBy?: User | null;
22
21
  support?: boolean;
23
22
  type?: 'person' | 'service_account';
24
23
  }
@@ -82,3 +81,10 @@ export interface MyUserCreate extends Pick<MyUser, 'name' | 'language' | 'locali
82
81
  termsOfUsePolicy?: ResLink | null;
83
82
  }
84
83
  export type UserReference = Pick<User, 'name' | 'publicId'>;
84
+ export interface ServiceAccount extends User {
85
+ apiApplications?: ApiApplication[];
86
+ registeredBy?: User;
87
+ /** For example 2019-01-01T12:00:00Z */
88
+ registeredOn?: string;
89
+ type: 'service_account';
90
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixon-cdk/types",
3
- "version": "1.24.0",
3
+ "version": "1.25.0-next.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/component-devkit/src/types/src/index.d.ts",