@cirrobio/api-client 0.1.16 → 0.1.17

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.
@@ -46,6 +46,7 @@ src/models/DatasetDetail.ts
46
46
  src/models/DatasetViz.ts
47
47
  src/models/ErrorMessage.ts
48
48
  src/models/Executor.ts
49
+ src/models/FeatureFlags.ts
49
50
  src/models/FileAccessRequest.ts
50
51
  src/models/FileEntry.ts
51
52
  src/models/FileMappingRule.ts
package/README.md CHANGED
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cirrobio/api-client@0.1.16 --save
39
+ npm install @cirrobio/api-client@0.1.17 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -34,11 +34,11 @@ export interface DatasetViz {
34
34
  */
35
35
  type?: string;
36
36
  /**
37
- * Path to config file used to render viz
38
- * @type {string}
37
+ * Config or path to config used to render viz
38
+ * @type {any}
39
39
  * @memberof DatasetViz
40
40
  */
41
- config?: string;
41
+ config?: any | null;
42
42
  }
43
43
  /**
44
44
  * Check if a given object implements the DatasetViz interface.
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface FeatureFlags
16
+ */
17
+ export interface FeatureFlags {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof FeatureFlags
22
+ */
23
+ sftpEnabled: boolean;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof FeatureFlags
28
+ */
29
+ governanceEnabled: boolean;
30
+ }
31
+ /**
32
+ * Check if a given object implements the FeatureFlags interface.
33
+ */
34
+ export declare function instanceOfFeatureFlags(value: object): boolean;
35
+ export declare function FeatureFlagsFromJSON(json: any): FeatureFlags;
36
+ export declare function FeatureFlagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureFlags;
37
+ export declare function FeatureFlagsToJSON(value?: FeatureFlags | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.FeatureFlagsToJSON = exports.FeatureFlagsFromJSONTyped = exports.FeatureFlagsFromJSON = exports.instanceOfFeatureFlags = void 0;
17
+ /**
18
+ * Check if a given object implements the FeatureFlags interface.
19
+ */
20
+ function instanceOfFeatureFlags(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "sftpEnabled" in value;
23
+ isInstance = isInstance && "governanceEnabled" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfFeatureFlags = instanceOfFeatureFlags;
27
+ function FeatureFlagsFromJSON(json) {
28
+ return FeatureFlagsFromJSONTyped(json, false);
29
+ }
30
+ exports.FeatureFlagsFromJSON = FeatureFlagsFromJSON;
31
+ function FeatureFlagsFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'sftpEnabled': json['sftpEnabled'],
37
+ 'governanceEnabled': json['governanceEnabled'],
38
+ };
39
+ }
40
+ exports.FeatureFlagsFromJSONTyped = FeatureFlagsFromJSONTyped;
41
+ function FeatureFlagsToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'sftpEnabled': value.sftpEnabled,
50
+ 'governanceEnabled': value.governanceEnabled,
51
+ };
52
+ }
53
+ exports.FeatureFlagsToJSON = FeatureFlagsToJSON;
@@ -47,7 +47,7 @@ export interface Process {
47
47
  */
48
48
  executor: Executor;
49
49
  /**
50
- * Category of the pipeline
50
+ * Category of the process
51
51
  * @type {string}
52
52
  * @memberof Process
53
53
  */
@@ -50,17 +50,17 @@ export interface ProcessDetail {
50
50
  */
51
51
  executor: Executor;
52
52
  /**
53
- * Category of the pipeline
53
+ * Category of the process
54
54
  * @type {string}
55
55
  * @memberof ProcessDetail
56
56
  */
57
- category: string;
57
+ category?: string;
58
58
  /**
59
59
  * Type of pipeline
60
60
  * @type {string}
61
61
  * @memberof ProcessDetail
62
62
  */
63
- pipelineType: string;
63
+ pipelineType?: string;
64
64
  /**
65
65
  * IDs of pipelines that can be run downstream
66
66
  * @type {Array<string>}
@@ -28,8 +28,6 @@ function instanceOfProcessDetail(value) {
28
28
  isInstance = isInstance && "name" in value;
29
29
  isInstance = isInstance && "description" in value;
30
30
  isInstance = isInstance && "executor" in value;
31
- isInstance = isInstance && "category" in value;
32
- isInstance = isInstance && "pipelineType" in value;
33
31
  isInstance = isInstance && "childProcessIds" in value;
34
32
  isInstance = isInstance && "parentProcessIds" in value;
35
33
  isInstance = isInstance && "linkedProjectIds" in value;
@@ -50,8 +48,8 @@ function ProcessDetailFromJSONTyped(json, ignoreDiscriminator) {
50
48
  'description': json['description'],
51
49
  'dataType': !(0, runtime_1.exists)(json, 'dataType') ? undefined : json['dataType'],
52
50
  'executor': (0, Executor_1.ExecutorFromJSON)(json['executor']),
53
- 'category': json['category'],
54
- 'pipelineType': json['pipelineType'],
51
+ 'category': !(0, runtime_1.exists)(json, 'category') ? undefined : json['category'],
52
+ 'pipelineType': !(0, runtime_1.exists)(json, 'pipelineType') ? undefined : json['pipelineType'],
55
53
  'childProcessIds': json['childProcessIds'],
56
54
  'parentProcessIds': json['parentProcessIds'],
57
55
  'documentationUrl': !(0, runtime_1.exists)(json, 'documentationUrl') ? undefined : json['documentationUrl'],
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { FeatureFlags } from './FeatureFlags';
12
13
  import type { LoginProvider } from './LoginProvider';
13
14
  /**
14
15
  *
@@ -70,6 +71,12 @@ export interface TenantInfo {
70
71
  * @memberof TenantInfo
71
72
  */
72
73
  loginProviders: Array<LoginProvider>;
74
+ /**
75
+ *
76
+ * @type {FeatureFlags}
77
+ * @memberof TenantInfo
78
+ */
79
+ features: FeatureFlags;
73
80
  }
74
81
  /**
75
82
  * Check if a given object implements the TenantInfo interface.
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.TenantInfoToJSON = exports.TenantInfoFromJSONTyped = exports.TenantInfoFromJSON = exports.instanceOfTenantInfo = void 0;
17
+ var FeatureFlags_1 = require("./FeatureFlags");
17
18
  var LoginProvider_1 = require("./LoginProvider");
18
19
  /**
19
20
  * Check if a given object implements the TenantInfo interface.
@@ -29,6 +30,7 @@ function instanceOfTenantInfo(value) {
29
30
  isInstance = isInstance && "termsOfServiceUrl" in value;
30
31
  isInstance = isInstance && "privacyPolicyUrl" in value;
31
32
  isInstance = isInstance && "loginProviders" in value;
33
+ isInstance = isInstance && "features" in value;
32
34
  return isInstance;
33
35
  }
34
36
  exports.instanceOfTenantInfo = instanceOfTenantInfo;
@@ -50,6 +52,7 @@ function TenantInfoFromJSONTyped(json, ignoreDiscriminator) {
50
52
  'termsOfServiceUrl': json['termsOfServiceUrl'],
51
53
  'privacyPolicyUrl': json['privacyPolicyUrl'],
52
54
  'loginProviders': (json['loginProviders'].map(LoginProvider_1.LoginProviderFromJSON)),
55
+ 'features': (0, FeatureFlags_1.FeatureFlagsFromJSON)(json['features']),
53
56
  };
54
57
  }
55
58
  exports.TenantInfoFromJSONTyped = TenantInfoFromJSONTyped;
@@ -70,6 +73,7 @@ function TenantInfoToJSON(value) {
70
73
  'termsOfServiceUrl': value.termsOfServiceUrl,
71
74
  'privacyPolicyUrl': value.privacyPolicyUrl,
72
75
  'loginProviders': (value.loginProviders.map(LoginProvider_1.LoginProviderToJSON)),
76
+ 'features': (0, FeatureFlags_1.FeatureFlagsToJSON)(value.features),
73
77
  };
74
78
  }
75
79
  exports.TenantInfoToJSON = TenantInfoToJSON;
@@ -26,6 +26,7 @@ export * from './DatasetDetail';
26
26
  export * from './DatasetViz';
27
27
  export * from './ErrorMessage';
28
28
  export * from './Executor';
29
+ export * from './FeatureFlags';
29
30
  export * from './FileAccessRequest';
30
31
  export * from './FileEntry';
31
32
  export * from './FileMappingRule';
@@ -44,6 +44,7 @@ __exportStar(require("./DatasetDetail"), exports);
44
44
  __exportStar(require("./DatasetViz"), exports);
45
45
  __exportStar(require("./ErrorMessage"), exports);
46
46
  __exportStar(require("./Executor"), exports);
47
+ __exportStar(require("./FeatureFlags"), exports);
47
48
  __exportStar(require("./FileAccessRequest"), exports);
48
49
  __exportStar(require("./FileEntry"), exports);
49
50
  __exportStar(require("./FileMappingRule"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -38,11 +38,11 @@ export interface DatasetViz {
38
38
  */
39
39
  type?: string;
40
40
  /**
41
- * Path to config file used to render viz
42
- * @type {string}
41
+ * Config or path to config used to render viz
42
+ * @type {any}
43
43
  * @memberof DatasetViz
44
44
  */
45
- config?: string;
45
+ config?: any | null;
46
46
  }
47
47
 
48
48
  /**
@@ -0,0 +1,75 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { exists, mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface FeatureFlags
20
+ */
21
+ export interface FeatureFlags {
22
+ /**
23
+ *
24
+ * @type {boolean}
25
+ * @memberof FeatureFlags
26
+ */
27
+ sftpEnabled: boolean;
28
+ /**
29
+ *
30
+ * @type {boolean}
31
+ * @memberof FeatureFlags
32
+ */
33
+ governanceEnabled: boolean;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the FeatureFlags interface.
38
+ */
39
+ export function instanceOfFeatureFlags(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "sftpEnabled" in value;
42
+ isInstance = isInstance && "governanceEnabled" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function FeatureFlagsFromJSON(json: any): FeatureFlags {
48
+ return FeatureFlagsFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function FeatureFlagsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FeatureFlags {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'sftpEnabled': json['sftpEnabled'],
58
+ 'governanceEnabled': json['governanceEnabled'],
59
+ };
60
+ }
61
+
62
+ export function FeatureFlagsToJSON(value?: FeatureFlags | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'sftpEnabled': value.sftpEnabled,
72
+ 'governanceEnabled': value.governanceEnabled,
73
+ };
74
+ }
75
+
@@ -57,7 +57,7 @@ export interface Process {
57
57
  */
58
58
  executor: Executor;
59
59
  /**
60
- * Category of the pipeline
60
+ * Category of the process
61
61
  * @type {string}
62
62
  * @memberof Process
63
63
  */
@@ -75,17 +75,17 @@ export interface ProcessDetail {
75
75
  */
76
76
  executor: Executor;
77
77
  /**
78
- * Category of the pipeline
78
+ * Category of the process
79
79
  * @type {string}
80
80
  * @memberof ProcessDetail
81
81
  */
82
- category: string;
82
+ category?: string;
83
83
  /**
84
84
  * Type of pipeline
85
85
  * @type {string}
86
86
  * @memberof ProcessDetail
87
87
  */
88
- pipelineType: string;
88
+ pipelineType?: string;
89
89
  /**
90
90
  * IDs of pipelines that can be run downstream
91
91
  * @type {Array<string>}
@@ -163,8 +163,6 @@ export function instanceOfProcessDetail(value: object): boolean {
163
163
  isInstance = isInstance && "name" in value;
164
164
  isInstance = isInstance && "description" in value;
165
165
  isInstance = isInstance && "executor" in value;
166
- isInstance = isInstance && "category" in value;
167
- isInstance = isInstance && "pipelineType" in value;
168
166
  isInstance = isInstance && "childProcessIds" in value;
169
167
  isInstance = isInstance && "parentProcessIds" in value;
170
168
  isInstance = isInstance && "linkedProjectIds" in value;
@@ -187,8 +185,8 @@ export function ProcessDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
187
185
  'description': json['description'],
188
186
  'dataType': !exists(json, 'dataType') ? undefined : json['dataType'],
189
187
  'executor': ExecutorFromJSON(json['executor']),
190
- 'category': json['category'],
191
- 'pipelineType': json['pipelineType'],
188
+ 'category': !exists(json, 'category') ? undefined : json['category'],
189
+ 'pipelineType': !exists(json, 'pipelineType') ? undefined : json['pipelineType'],
192
190
  'childProcessIds': json['childProcessIds'],
193
191
  'parentProcessIds': json['parentProcessIds'],
194
192
  'documentationUrl': !exists(json, 'documentationUrl') ? undefined : json['documentationUrl'],
@@ -13,6 +13,12 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
+ import type { FeatureFlags } from './FeatureFlags';
17
+ import {
18
+ FeatureFlagsFromJSON,
19
+ FeatureFlagsFromJSONTyped,
20
+ FeatureFlagsToJSON,
21
+ } from './FeatureFlags';
16
22
  import type { LoginProvider } from './LoginProvider';
17
23
  import {
18
24
  LoginProviderFromJSON,
@@ -80,6 +86,12 @@ export interface TenantInfo {
80
86
  * @memberof TenantInfo
81
87
  */
82
88
  loginProviders: Array<LoginProvider>;
89
+ /**
90
+ *
91
+ * @type {FeatureFlags}
92
+ * @memberof TenantInfo
93
+ */
94
+ features: FeatureFlags;
83
95
  }
84
96
 
85
97
  /**
@@ -96,6 +108,7 @@ export function instanceOfTenantInfo(value: object): boolean {
96
108
  isInstance = isInstance && "termsOfServiceUrl" in value;
97
109
  isInstance = isInstance && "privacyPolicyUrl" in value;
98
110
  isInstance = isInstance && "loginProviders" in value;
111
+ isInstance = isInstance && "features" in value;
99
112
 
100
113
  return isInstance;
101
114
  }
@@ -119,6 +132,7 @@ export function TenantInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean)
119
132
  'termsOfServiceUrl': json['termsOfServiceUrl'],
120
133
  'privacyPolicyUrl': json['privacyPolicyUrl'],
121
134
  'loginProviders': ((json['loginProviders'] as Array<any>).map(LoginProviderFromJSON)),
135
+ 'features': FeatureFlagsFromJSON(json['features']),
122
136
  };
123
137
  }
124
138
 
@@ -140,6 +154,7 @@ export function TenantInfoToJSON(value?: TenantInfo | null): any {
140
154
  'termsOfServiceUrl': value.termsOfServiceUrl,
141
155
  'privacyPolicyUrl': value.privacyPolicyUrl,
142
156
  'loginProviders': ((value.loginProviders as Array<any>).map(LoginProviderToJSON)),
157
+ 'features': FeatureFlagsToJSON(value.features),
143
158
  };
144
159
  }
145
160
 
@@ -28,6 +28,7 @@ export * from './DatasetDetail';
28
28
  export * from './DatasetViz';
29
29
  export * from './ErrorMessage';
30
30
  export * from './Executor';
31
+ export * from './FeatureFlags';
31
32
  export * from './FileAccessRequest';
32
33
  export * from './FileEntry';
33
34
  export * from './FileMappingRule';