@ixon-cdk/types 1.14.0-next.1 → 1.14.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,10 +3,8 @@ import type { BackendComponentResult } from './backend-component-result';
3
3
  export interface BackendComponentClient {
4
4
  destroy(): void;
5
5
  /**
6
- * @param {string} functionName The name of the Custom Backend Component function you want to call
7
- * @param {{ [key: string]: any }} functionArguments The arguments you want to pass to the Custom Backend Component function
6
+ * @param functionName The name of the Custom Backend Component function you want to call
7
+ * @param functionArguments The arguments you want to pass to the Custom Backend Component function
8
8
  */
9
- call(functionName: string, functionArguments?: {
10
- [key: string]: any;
11
- }): Promise<BackendComponentResult>;
9
+ call<T = any>(functionName: string, functionArguments?: Record<string, any>): Promise<BackendComponentResult<T>>;
12
10
  }
@@ -1,6 +1,6 @@
1
1
  /** @module BackendComponentResult */
2
2
  import type { BackendComponentCall } from './backend-component-call';
3
- export interface BackendComponentResult {
3
+ export interface BackendComponentResult<T = any> {
4
4
  call: BackendComponentCall;
5
- data: any;
5
+ data: T;
6
6
  }
@@ -25,6 +25,7 @@ export interface Asset {
25
25
  parent?: ResLink | null;
26
26
  publicId: string;
27
27
  resourceVariant?: AssetType;
28
+ root?: ResLink | null;
28
29
  }
29
30
  export interface AssetInstanceCreate {
30
31
  libraryAsset: ResLink;
@@ -92,6 +92,7 @@ export * from './page-page';
92
92
  export * from './page-version';
93
93
  export * from './password-change';
94
94
  export * from './permission';
95
+ export * from './pipeline-function';
95
96
  export * from './platform-server';
96
97
  export * from './policy';
97
98
  export * from './registration';
@@ -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' | 'request-access' | 'sla' | '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' | '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' | 'request-access' | 'sla' | 'subgroups' | 'temporary-access' | 'vpn-access-rule' | 'vpn-usage';
3
3
  export interface LicenceType {
4
4
  companyLimit?: number | null;
5
5
  publicId: string;
@@ -38,3 +38,8 @@ export interface ObjectStorageObjectMeta {
38
38
  tags: ObjectStorageTags;
39
39
  uuid: string;
40
40
  }
41
+ export interface ObjectStorageObjectMetaUpdate {
42
+ tags: ObjectStorageTags;
43
+ template: ResLink;
44
+ uuid: string;
45
+ }
@@ -0,0 +1,7 @@
1
+ import { CompanyReference } from './company';
2
+ export interface PipelineFunction {
3
+ publicId: string;
4
+ name?: string;
5
+ company?: CompanyReference | null;
6
+ description?: string | null;
7
+ }
@@ -36,6 +36,13 @@ export interface ObjectStorageClient {
36
36
  * destroyed, this is called automatically
37
37
  */
38
38
  destroy(): void;
39
+ /**
40
+ * Update the tags of an object.
41
+ *
42
+ * @param objectMeta Object meta information
43
+ * @param tags All tags to set on the object, also the ones that are not changed
44
+ */
45
+ update(objectMeta: ObjectStorageObjectMeta, options: ObjectStorageStoreOptions): Promise<void>;
39
46
  }
40
47
  export interface ObjectStorageOptions {
41
48
  /**
@@ -101,9 +101,13 @@ interface AgentResourceData {
101
101
  interface AssetResourceData {
102
102
  custom?: Record<string, any>;
103
103
  description?: string | null;
104
+ isLibraryAsset?: boolean;
104
105
  libraryAsset?: {
105
106
  publicId: string;
106
107
  };
108
+ libraryVersion?: {
109
+ publicId: string;
110
+ };
107
111
  memberships?: {
108
112
  group?: {
109
113
  publicId: string;
@@ -111,13 +115,22 @@ interface AssetResourceData {
111
115
  publicId: string;
112
116
  }[];
113
117
  name?: string;
118
+ parent?: {
119
+ publicId: string;
120
+ } | null;
114
121
  permissions?: string[];
115
122
  publicId: string;
116
123
  resourceVariant?: {
117
124
  publicId: string;
118
125
  };
126
+ root?: {
127
+ publicId: string;
128
+ } | null;
119
129
  }
120
130
  interface AssetAppConfigResourceData<TValues = any, TStateValues = any> {
131
+ app?: {
132
+ publicId: string;
133
+ };
121
134
  publicId: string;
122
135
  stateValues?: TStateValues | null;
123
136
  values?: TValues | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ixon-cdk/types",
3
- "version": "1.14.0-next.1",
3
+ "version": "1.14.0",
4
4
  "description": "",
5
5
  "main": "./dist/component-devkit/src/types/src/index.d.ts",
6
6
  "author": "",