@cirrobio/api-client 0.1.15 → 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.15 --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,11 +47,17 @@ 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
  */
54
54
  category: string;
55
+ /**
56
+ * Type of pipeline
57
+ * @type {string}
58
+ * @memberof Process
59
+ */
60
+ pipelineType: string;
55
61
  /**
56
62
  * Link to pipeline documentation
57
63
  * @type {string}
@@ -25,6 +25,7 @@ function instanceOfProcess(value) {
25
25
  isInstance = isInstance && "name" in value;
26
26
  isInstance = isInstance && "executor" in value;
27
27
  isInstance = isInstance && "category" in value;
28
+ isInstance = isInstance && "pipelineType" in value;
28
29
  return isInstance;
29
30
  }
30
31
  exports.instanceOfProcess = instanceOfProcess;
@@ -43,6 +44,7 @@ function ProcessFromJSONTyped(json, ignoreDiscriminator) {
43
44
  'dataType': !(0, runtime_1.exists)(json, 'dataType') ? undefined : json['dataType'],
44
45
  'executor': (0, Executor_1.ExecutorFromJSON)(json['executor']),
45
46
  'category': json['category'],
47
+ 'pipelineType': json['pipelineType'],
46
48
  'documentationUrl': !(0, runtime_1.exists)(json, 'documentationUrl') ? undefined : json['documentationUrl'],
47
49
  'fileRequirementsMessage': !(0, runtime_1.exists)(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
48
50
  'childProcessIds': !(0, runtime_1.exists)(json, 'childProcessIds') ? undefined : json['childProcessIds'],
@@ -68,6 +70,7 @@ function ProcessToJSON(value) {
68
70
  'dataType': value.dataType,
69
71
  'executor': (0, Executor_1.ExecutorToJSON)(value.executor),
70
72
  'category': value.category,
73
+ 'pipelineType': value.pipelineType,
71
74
  'documentationUrl': value.documentationUrl,
72
75
  'fileRequirementsMessage': value.fileRequirementsMessage,
73
76
  'childProcessIds': value.childProcessIds,
@@ -50,11 +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
+ /**
59
+ * Type of pipeline
60
+ * @type {string}
61
+ * @memberof ProcessDetail
62
+ */
63
+ pipelineType?: string;
58
64
  /**
59
65
  * IDs of pipelines that can be run downstream
60
66
  * @type {Array<string>}
@@ -28,7 +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
31
  isInstance = isInstance && "childProcessIds" in value;
33
32
  isInstance = isInstance && "parentProcessIds" in value;
34
33
  isInstance = isInstance && "linkedProjectIds" in value;
@@ -49,7 +48,8 @@ function ProcessDetailFromJSONTyped(json, ignoreDiscriminator) {
49
48
  'description': json['description'],
50
49
  'dataType': !(0, runtime_1.exists)(json, 'dataType') ? undefined : json['dataType'],
51
50
  'executor': (0, Executor_1.ExecutorFromJSON)(json['executor']),
52
- 'category': json['category'],
51
+ 'category': !(0, runtime_1.exists)(json, 'category') ? undefined : json['category'],
52
+ 'pipelineType': !(0, runtime_1.exists)(json, 'pipelineType') ? undefined : json['pipelineType'],
53
53
  'childProcessIds': json['childProcessIds'],
54
54
  'parentProcessIds': json['parentProcessIds'],
55
55
  'documentationUrl': !(0, runtime_1.exists)(json, 'documentationUrl') ? undefined : json['documentationUrl'],
@@ -78,6 +78,7 @@ function ProcessDetailToJSON(value) {
78
78
  'dataType': value.dataType,
79
79
  'executor': (0, Executor_1.ExecutorToJSON)(value.executor),
80
80
  'category': value.category,
81
+ 'pipelineType': value.pipelineType,
81
82
  'childProcessIds': value.childProcessIds,
82
83
  'parentProcessIds': value.parentProcessIds,
83
84
  'documentationUrl': value.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.15",
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,11 +57,17 @@ 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
  */
64
64
  category: string;
65
+ /**
66
+ * Type of pipeline
67
+ * @type {string}
68
+ * @memberof Process
69
+ */
70
+ pipelineType: string;
65
71
  /**
66
72
  * Link to pipeline documentation
67
73
  * @type {string}
@@ -121,6 +127,7 @@ export function instanceOfProcess(value: object): boolean {
121
127
  isInstance = isInstance && "name" in value;
122
128
  isInstance = isInstance && "executor" in value;
123
129
  isInstance = isInstance && "category" in value;
130
+ isInstance = isInstance && "pipelineType" in value;
124
131
 
125
132
  return isInstance;
126
133
  }
@@ -141,6 +148,7 @@ export function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
141
148
  'dataType': !exists(json, 'dataType') ? undefined : json['dataType'],
142
149
  'executor': ExecutorFromJSON(json['executor']),
143
150
  'category': json['category'],
151
+ 'pipelineType': json['pipelineType'],
144
152
  'documentationUrl': !exists(json, 'documentationUrl') ? undefined : json['documentationUrl'],
145
153
  'fileRequirementsMessage': !exists(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
146
154
  'childProcessIds': !exists(json, 'childProcessIds') ? undefined : json['childProcessIds'],
@@ -167,6 +175,7 @@ export function ProcessToJSON(value?: Process | null): any {
167
175
  'dataType': value.dataType,
168
176
  'executor': ExecutorToJSON(value.executor),
169
177
  'category': value.category,
178
+ 'pipelineType': value.pipelineType,
170
179
  'documentationUrl': value.documentationUrl,
171
180
  'fileRequirementsMessage': value.fileRequirementsMessage,
172
181
  'childProcessIds': value.childProcessIds,
@@ -75,11 +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
+ /**
84
+ * Type of pipeline
85
+ * @type {string}
86
+ * @memberof ProcessDetail
87
+ */
88
+ pipelineType?: string;
83
89
  /**
84
90
  * IDs of pipelines that can be run downstream
85
91
  * @type {Array<string>}
@@ -157,7 +163,6 @@ export function instanceOfProcessDetail(value: object): boolean {
157
163
  isInstance = isInstance && "name" in value;
158
164
  isInstance = isInstance && "description" in value;
159
165
  isInstance = isInstance && "executor" in value;
160
- isInstance = isInstance && "category" in value;
161
166
  isInstance = isInstance && "childProcessIds" in value;
162
167
  isInstance = isInstance && "parentProcessIds" in value;
163
168
  isInstance = isInstance && "linkedProjectIds" in value;
@@ -180,7 +185,8 @@ export function ProcessDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
180
185
  'description': json['description'],
181
186
  'dataType': !exists(json, 'dataType') ? undefined : json['dataType'],
182
187
  'executor': ExecutorFromJSON(json['executor']),
183
- 'category': json['category'],
188
+ 'category': !exists(json, 'category') ? undefined : json['category'],
189
+ 'pipelineType': !exists(json, 'pipelineType') ? undefined : json['pipelineType'],
184
190
  'childProcessIds': json['childProcessIds'],
185
191
  'parentProcessIds': json['parentProcessIds'],
186
192
  'documentationUrl': !exists(json, 'documentationUrl') ? undefined : json['documentationUrl'],
@@ -210,6 +216,7 @@ export function ProcessDetailToJSON(value?: ProcessDetail | null): any {
210
216
  'dataType': value.dataType,
211
217
  'executor': ExecutorToJSON(value.executor),
212
218
  'category': value.category,
219
+ 'pipelineType': value.pipelineType,
213
220
  'childProcessIds': value.childProcessIds,
214
221
  'parentProcessIds': value.parentProcessIds,
215
222
  'documentationUrl': value.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';