@cirrobio/api-client 0.0.3-alpha → 0.0.5-alpha

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.
Files changed (53) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +1 -1
  3. package/dist/apis/MetadataApi.d.ts +29 -0
  4. package/dist/apis/MetadataApi.js +133 -0
  5. package/dist/apis/NotebooksApi.js +6 -6
  6. package/dist/apis/ProcessesApi.d.ts +26 -10
  7. package/dist/apis/ProcessesApi.js +70 -11
  8. package/dist/apis/ProjectsApi.d.ts +4 -4
  9. package/dist/apis/ProjectsApi.js +4 -4
  10. package/dist/apis/ReferencesApi.d.ts +51 -0
  11. package/dist/apis/ReferencesApi.js +239 -0
  12. package/dist/apis/SystemApi.d.ts +1 -11
  13. package/dist/apis/SystemApi.js +0 -52
  14. package/dist/apis/index.d.ts +2 -0
  15. package/dist/apis/index.js +2 -0
  16. package/dist/models/CustomPipelineSettings.d.ts +61 -0
  17. package/dist/models/CustomPipelineSettings.js +60 -0
  18. package/dist/models/Process.d.ts +19 -1
  19. package/dist/models/Process.js +8 -1
  20. package/dist/models/ProcessDetail.d.ts +99 -0
  21. package/dist/models/ProcessDetail.js +85 -0
  22. package/dist/models/ProjectMetrics.d.ts +8 -6
  23. package/dist/models/ProjectMetrics.js +3 -4
  24. package/dist/models/ProjectSettings.d.ts +24 -0
  25. package/dist/models/ProjectSettings.js +8 -0
  26. package/dist/models/Reference.d.ts +55 -0
  27. package/dist/models/Reference.js +62 -0
  28. package/dist/models/ReferenceType.d.ts +20 -0
  29. package/dist/models/ReferenceType.js +9 -0
  30. package/dist/models/Sample.d.ts +39 -0
  31. package/dist/models/Sample.js +53 -0
  32. package/dist/models/ServiceConnection.d.ts +6 -0
  33. package/dist/models/ServiceConnection.js +3 -0
  34. package/dist/models/index.d.ts +4 -0
  35. package/dist/models/index.js +4 -0
  36. package/package.json +1 -1
  37. package/src/apis/MetadataApi.ts +72 -0
  38. package/src/apis/NotebooksApi.ts +6 -6
  39. package/src/apis/ProcessesApi.ts +67 -12
  40. package/src/apis/ProjectsApi.ts +4 -4
  41. package/src/apis/ReferencesApi.ts +149 -0
  42. package/src/apis/SystemApi.ts +0 -39
  43. package/src/apis/index.ts +2 -0
  44. package/src/models/CustomPipelineSettings.ts +105 -0
  45. package/src/models/Process.ts +27 -2
  46. package/src/models/ProcessDetail.ts +177 -0
  47. package/src/models/ProjectMetrics.ts +7 -9
  48. package/src/models/ProjectSettings.ts +32 -0
  49. package/src/models/Reference.ts +102 -0
  50. package/src/models/ReferenceType.ts +27 -0
  51. package/src/models/Sample.ts +75 -0
  52. package/src/models/ServiceConnection.ts +9 -0
  53. package/src/models/index.ts +4 -0
@@ -0,0 +1,85 @@
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.ProcessDetailToJSON = exports.ProcessDetailFromJSONTyped = exports.ProcessDetailFromJSON = exports.instanceOfProcessDetail = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ var CustomPipelineSettings_1 = require("./CustomPipelineSettings");
19
+ var Executor_1 = require("./Executor");
20
+ /**
21
+ * Check if a given object implements the ProcessDetail interface.
22
+ */
23
+ function instanceOfProcessDetail(value) {
24
+ var isInstance = true;
25
+ isInstance = isInstance && "id" in value;
26
+ isInstance = isInstance && "name" in value;
27
+ isInstance = isInstance && "description" in value;
28
+ isInstance = isInstance && "executor" in value;
29
+ isInstance = isInstance && "documentationUrl" in value;
30
+ isInstance = isInstance && "childProcessIds" in value;
31
+ isInstance = isInstance && "parentProcessIds" in value;
32
+ isInstance = isInstance && "owner" in value;
33
+ isInstance = isInstance && "linkedProjectIds" in value;
34
+ isInstance = isInstance && "customSettings" in value;
35
+ isInstance = isInstance && "isArchived" in value;
36
+ return isInstance;
37
+ }
38
+ exports.instanceOfProcessDetail = instanceOfProcessDetail;
39
+ function ProcessDetailFromJSON(json) {
40
+ return ProcessDetailFromJSONTyped(json, false);
41
+ }
42
+ exports.ProcessDetailFromJSON = ProcessDetailFromJSON;
43
+ function ProcessDetailFromJSONTyped(json, ignoreDiscriminator) {
44
+ if ((json === undefined) || (json === null)) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'name': json['name'],
50
+ 'description': json['description'],
51
+ 'executor': (0, Executor_1.ExecutorFromJSON)(json['executor']),
52
+ 'documentationUrl': json['documentationUrl'],
53
+ 'fileRequirementsMessage': !(0, runtime_1.exists)(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
54
+ 'childProcessIds': json['childProcessIds'],
55
+ 'parentProcessIds': json['parentProcessIds'],
56
+ 'owner': json['owner'],
57
+ 'linkedProjectIds': json['linkedProjectIds'],
58
+ 'customSettings': (0, CustomPipelineSettings_1.CustomPipelineSettingsFromJSON)(json['customSettings']),
59
+ 'isArchived': json['isArchived'],
60
+ };
61
+ }
62
+ exports.ProcessDetailFromJSONTyped = ProcessDetailFromJSONTyped;
63
+ function ProcessDetailToJSON(value) {
64
+ if (value === undefined) {
65
+ return undefined;
66
+ }
67
+ if (value === null) {
68
+ return null;
69
+ }
70
+ return {
71
+ 'id': value.id,
72
+ 'name': value.name,
73
+ 'description': value.description,
74
+ 'executor': (0, Executor_1.ExecutorToJSON)(value.executor),
75
+ 'documentationUrl': value.documentationUrl,
76
+ 'fileRequirementsMessage': value.fileRequirementsMessage,
77
+ 'childProcessIds': value.childProcessIds,
78
+ 'parentProcessIds': value.parentProcessIds,
79
+ 'owner': value.owner,
80
+ 'linkedProjectIds': value.linkedProjectIds,
81
+ 'customSettings': (0, CustomPipelineSettings_1.CustomPipelineSettingsToJSON)(value.customSettings),
82
+ 'isArchived': value.isArchived,
83
+ };
84
+ }
85
+ exports.ProcessDetailToJSON = ProcessDetailToJSON;
@@ -22,19 +22,21 @@ export interface ProjectMetrics {
22
22
  */
23
23
  projectId: string;
24
24
  /**
25
- *
26
- * @type {{ [key: string]: any; }}
25
+ * Costs by service by month
26
+ * @type {{ [key: string]: { [key: string]: number; }; }}
27
27
  * @memberof ProjectMetrics
28
28
  */
29
- costs: {
30
- [key: string]: any;
29
+ costs?: {
30
+ [key: string]: {
31
+ [key: string]: number;
32
+ };
31
33
  };
32
34
  /**
33
- *
35
+ * Storage usage by tier by day
34
36
  * @type {{ [key: string]: any; }}
35
37
  * @memberof ProjectMetrics
36
38
  */
37
- storageMetrics: {
39
+ storageMetrics?: {
38
40
  [key: string]: any;
39
41
  };
40
42
  }
@@ -14,14 +14,13 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProjectMetricsToJSON = exports.ProjectMetricsFromJSONTyped = exports.ProjectMetricsFromJSON = exports.instanceOfProjectMetrics = void 0;
17
+ var runtime_1 = require("../runtime");
17
18
  /**
18
19
  * Check if a given object implements the ProjectMetrics interface.
19
20
  */
20
21
  function instanceOfProjectMetrics(value) {
21
22
  var isInstance = true;
22
23
  isInstance = isInstance && "projectId" in value;
23
- isInstance = isInstance && "costs" in value;
24
- isInstance = isInstance && "storageMetrics" in value;
25
24
  return isInstance;
26
25
  }
27
26
  exports.instanceOfProjectMetrics = instanceOfProjectMetrics;
@@ -35,8 +34,8 @@ function ProjectMetricsFromJSONTyped(json, ignoreDiscriminator) {
35
34
  }
36
35
  return {
37
36
  'projectId': json['projectId'],
38
- 'costs': json['costs'],
39
- 'storageMetrics': json['storageMetrics'],
37
+ 'costs': !(0, runtime_1.exists)(json, 'costs') ? undefined : json['costs'],
38
+ 'storageMetrics': !(0, runtime_1.exists)(json, 'storageMetrics') ? undefined : json['storageMetrics'],
40
39
  };
41
40
  }
42
41
  exports.ProjectMetricsFromJSONTyped = ProjectMetricsFromJSONTyped;
@@ -82,6 +82,30 @@ export interface ProjectSettings {
82
82
  * @memberof ProjectSettings
83
83
  */
84
84
  serviceConnections?: Array<string>;
85
+ /**
86
+ *
87
+ * @type {boolean}
88
+ * @memberof ProjectSettings
89
+ */
90
+ createVpc?: boolean;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof ProjectSettings
95
+ */
96
+ vpcId?: string;
97
+ /**
98
+ *
99
+ * @type {Array<string>}
100
+ * @memberof ProjectSettings
101
+ */
102
+ batchSubnets?: Array<string>;
103
+ /**
104
+ *
105
+ * @type {string}
106
+ * @memberof ProjectSettings
107
+ */
108
+ kmsArn?: string;
85
109
  }
86
110
  /**
87
111
  * Check if a given object implements the ProjectSettings interface.
@@ -44,6 +44,10 @@ function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
44
44
  'maxSpotVCPU': !(0, runtime_1.exists)(json, 'maxSpotVCPU') ? undefined : json['maxSpotVCPU'],
45
45
  'retentionPolicyDays': !(0, runtime_1.exists)(json, 'retentionPolicyDays') ? undefined : json['retentionPolicyDays'],
46
46
  'serviceConnections': !(0, runtime_1.exists)(json, 'serviceConnections') ? undefined : json['serviceConnections'],
47
+ 'createVpc': !(0, runtime_1.exists)(json, 'createVpc') ? undefined : json['createVpc'],
48
+ 'vpcId': !(0, runtime_1.exists)(json, 'vpcId') ? undefined : json['vpcId'],
49
+ 'batchSubnets': !(0, runtime_1.exists)(json, 'batchSubnets') ? undefined : json['batchSubnets'],
50
+ 'kmsArn': !(0, runtime_1.exists)(json, 'kmsArn') ? undefined : json['kmsArn'],
47
51
  };
48
52
  }
49
53
  exports.ProjectSettingsFromJSONTyped = ProjectSettingsFromJSONTyped;
@@ -66,6 +70,10 @@ function ProjectSettingsToJSON(value) {
66
70
  'maxSpotVCPU': value.maxSpotVCPU,
67
71
  'retentionPolicyDays': value.retentionPolicyDays,
68
72
  'serviceConnections': value.serviceConnections,
73
+ 'createVpc': value.createVpc,
74
+ 'vpcId': value.vpcId,
75
+ 'batchSubnets': value.batchSubnets,
76
+ 'kmsArn': value.kmsArn,
69
77
  };
70
78
  }
71
79
  exports.ProjectSettingsToJSON = ProjectSettingsToJSON;
@@ -0,0 +1,55 @@
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 Reference
16
+ */
17
+ export interface Reference {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Reference
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Reference
28
+ */
29
+ referenceType: string;
30
+ /**
31
+ *
32
+ * @type {Array<string>}
33
+ * @memberof Reference
34
+ */
35
+ files: Array<string>;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof Reference
40
+ */
41
+ createdBy: string;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof Reference
46
+ */
47
+ createdAt: Date;
48
+ }
49
+ /**
50
+ * Check if a given object implements the Reference interface.
51
+ */
52
+ export declare function instanceOfReference(value: object): boolean;
53
+ export declare function ReferenceFromJSON(json: any): Reference;
54
+ export declare function ReferenceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Reference;
55
+ export declare function ReferenceToJSON(value?: Reference | null): any;
@@ -0,0 +1,62 @@
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.ReferenceToJSON = exports.ReferenceFromJSONTyped = exports.ReferenceFromJSON = exports.instanceOfReference = void 0;
17
+ /**
18
+ * Check if a given object implements the Reference interface.
19
+ */
20
+ function instanceOfReference(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "referenceType" in value;
24
+ isInstance = isInstance && "files" in value;
25
+ isInstance = isInstance && "createdBy" in value;
26
+ isInstance = isInstance && "createdAt" in value;
27
+ return isInstance;
28
+ }
29
+ exports.instanceOfReference = instanceOfReference;
30
+ function ReferenceFromJSON(json) {
31
+ return ReferenceFromJSONTyped(json, false);
32
+ }
33
+ exports.ReferenceFromJSON = ReferenceFromJSON;
34
+ function ReferenceFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'referenceType': json['referenceType'],
41
+ 'files': json['files'],
42
+ 'createdBy': json['createdBy'],
43
+ 'createdAt': (new Date(json['createdAt'])),
44
+ };
45
+ }
46
+ exports.ReferenceFromJSONTyped = ReferenceFromJSONTyped;
47
+ function ReferenceToJSON(value) {
48
+ if (value === undefined) {
49
+ return undefined;
50
+ }
51
+ if (value === null) {
52
+ return null;
53
+ }
54
+ return {
55
+ 'name': value.name,
56
+ 'referenceType': value.referenceType,
57
+ 'files': value.files,
58
+ 'createdBy': value.createdBy,
59
+ 'createdAt': (value.createdAt.toISOString()),
60
+ };
61
+ }
62
+ exports.ReferenceToJSON = ReferenceToJSON;
@@ -21,6 +21,26 @@ export interface ReferenceType {
21
21
  * @memberof ReferenceType
22
22
  */
23
23
  name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ReferenceType
28
+ */
29
+ description: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ReferenceType
34
+ */
35
+ directory: string;
36
+ /**
37
+ *
38
+ * @type {Array<{ [key: string]: any; }>}
39
+ * @memberof ReferenceType
40
+ */
41
+ validation: Array<{
42
+ [key: string]: any;
43
+ }>;
24
44
  }
25
45
  /**
26
46
  * Check if a given object implements the ReferenceType interface.
@@ -20,6 +20,9 @@ exports.ReferenceTypeToJSON = exports.ReferenceTypeFromJSONTyped = exports.Refer
20
20
  function instanceOfReferenceType(value) {
21
21
  var isInstance = true;
22
22
  isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "description" in value;
24
+ isInstance = isInstance && "directory" in value;
25
+ isInstance = isInstance && "validation" in value;
23
26
  return isInstance;
24
27
  }
25
28
  exports.instanceOfReferenceType = instanceOfReferenceType;
@@ -33,6 +36,9 @@ function ReferenceTypeFromJSONTyped(json, ignoreDiscriminator) {
33
36
  }
34
37
  return {
35
38
  'name': json['name'],
39
+ 'description': json['description'],
40
+ 'directory': json['directory'],
41
+ 'validation': json['validation'],
36
42
  };
37
43
  }
38
44
  exports.ReferenceTypeFromJSONTyped = ReferenceTypeFromJSONTyped;
@@ -45,6 +51,9 @@ function ReferenceTypeToJSON(value) {
45
51
  }
46
52
  return {
47
53
  'name': value.name,
54
+ 'description': value.description,
55
+ 'directory': value.directory,
56
+ 'validation': value.validation,
48
57
  };
49
58
  }
50
59
  exports.ReferenceTypeToJSON = ReferenceTypeToJSON;
@@ -0,0 +1,39 @@
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 Sample
16
+ */
17
+ export interface Sample {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Sample
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: any; }}
27
+ * @memberof Sample
28
+ */
29
+ metadata: {
30
+ [key: string]: any;
31
+ };
32
+ }
33
+ /**
34
+ * Check if a given object implements the Sample interface.
35
+ */
36
+ export declare function instanceOfSample(value: object): boolean;
37
+ export declare function SampleFromJSON(json: any): Sample;
38
+ export declare function SampleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sample;
39
+ export declare function SampleToJSON(value?: Sample | 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.SampleToJSON = exports.SampleFromJSONTyped = exports.SampleFromJSON = exports.instanceOfSample = void 0;
17
+ /**
18
+ * Check if a given object implements the Sample interface.
19
+ */
20
+ function instanceOfSample(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "metadata" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfSample = instanceOfSample;
27
+ function SampleFromJSON(json) {
28
+ return SampleFromJSONTyped(json, false);
29
+ }
30
+ exports.SampleFromJSON = SampleFromJSON;
31
+ function SampleFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'name': json['name'],
37
+ 'metadata': json['metadata'],
38
+ };
39
+ }
40
+ exports.SampleFromJSONTyped = SampleFromJSONTyped;
41
+ function SampleToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'name': value.name,
50
+ 'metadata': value.metadata,
51
+ };
52
+ }
53
+ exports.SampleToJSON = SampleToJSON;
@@ -21,6 +21,12 @@ export interface ServiceConnection {
21
21
  * @memberof ServiceConnection
22
22
  */
23
23
  name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ServiceConnection
28
+ */
29
+ description: string;
24
30
  }
25
31
  /**
26
32
  * Check if a given object implements the ServiceConnection interface.
@@ -20,6 +20,7 @@ exports.ServiceConnectionToJSON = exports.ServiceConnectionFromJSONTyped = expor
20
20
  function instanceOfServiceConnection(value) {
21
21
  var isInstance = true;
22
22
  isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "description" in value;
23
24
  return isInstance;
24
25
  }
25
26
  exports.instanceOfServiceConnection = instanceOfServiceConnection;
@@ -33,6 +34,7 @@ function ServiceConnectionFromJSONTyped(json, ignoreDiscriminator) {
33
34
  }
34
35
  return {
35
36
  'name': json['name'],
37
+ 'description': json['description'],
36
38
  };
37
39
  }
38
40
  exports.ServiceConnectionFromJSONTyped = ServiceConnectionFromJSONTyped;
@@ -45,6 +47,7 @@ function ServiceConnectionToJSON(value) {
45
47
  }
46
48
  return {
47
49
  'name': value.name,
50
+ 'description': value.description,
48
51
  };
49
52
  }
50
53
  exports.ServiceConnectionToJSON = ServiceConnectionToJSON;
@@ -5,6 +5,7 @@ export * from './CloudAccount';
5
5
  export * from './Contact';
6
6
  export * from './CreateNotebookInstanceRequest';
7
7
  export * from './CreateResponse';
8
+ export * from './CustomPipelineSettings';
8
9
  export * from './CustomerType';
9
10
  export * from './Dataset';
10
11
  export * from './DatasetDetail';
@@ -16,15 +17,18 @@ export * from './LogEntry';
16
17
  export * from './NotebookInstance';
17
18
  export * from './OpenNotebookInstanceResponse';
18
19
  export * from './Process';
20
+ export * from './ProcessDetail';
19
21
  export * from './Project';
20
22
  export * from './ProjectDetail';
21
23
  export * from './ProjectMetrics';
22
24
  export * from './ProjectRequest';
23
25
  export * from './ProjectRole';
24
26
  export * from './ProjectSettings';
27
+ export * from './Reference';
25
28
  export * from './ReferenceType';
26
29
  export * from './Region';
27
30
  export * from './RegisterDatasetRequest';
31
+ export * from './Sample';
28
32
  export * from './ServiceConnection';
29
33
  export * from './SetUserProjectRoleRequest';
30
34
  export * from './StopExecutionResponse';
@@ -23,6 +23,7 @@ __exportStar(require("./CloudAccount"), exports);
23
23
  __exportStar(require("./Contact"), exports);
24
24
  __exportStar(require("./CreateNotebookInstanceRequest"), exports);
25
25
  __exportStar(require("./CreateResponse"), exports);
26
+ __exportStar(require("./CustomPipelineSettings"), exports);
26
27
  __exportStar(require("./CustomerType"), exports);
27
28
  __exportStar(require("./Dataset"), exports);
28
29
  __exportStar(require("./DatasetDetail"), exports);
@@ -34,15 +35,18 @@ __exportStar(require("./LogEntry"), exports);
34
35
  __exportStar(require("./NotebookInstance"), exports);
35
36
  __exportStar(require("./OpenNotebookInstanceResponse"), exports);
36
37
  __exportStar(require("./Process"), exports);
38
+ __exportStar(require("./ProcessDetail"), exports);
37
39
  __exportStar(require("./Project"), exports);
38
40
  __exportStar(require("./ProjectDetail"), exports);
39
41
  __exportStar(require("./ProjectMetrics"), exports);
40
42
  __exportStar(require("./ProjectRequest"), exports);
41
43
  __exportStar(require("./ProjectRole"), exports);
42
44
  __exportStar(require("./ProjectSettings"), exports);
45
+ __exportStar(require("./Reference"), exports);
43
46
  __exportStar(require("./ReferenceType"), exports);
44
47
  __exportStar(require("./Region"), exports);
45
48
  __exportStar(require("./RegisterDatasetRequest"), exports);
49
+ __exportStar(require("./Sample"), exports);
46
50
  __exportStar(require("./ServiceConnection"), exports);
47
51
  __exportStar(require("./SetUserProjectRoleRequest"), exports);
48
52
  __exportStar(require("./StopExecutionResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.0.3-alpha",
3
+ "version": "0.0.5-alpha",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -0,0 +1,72 @@
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
+
16
+ import * as runtime from '../runtime';
17
+ import type {
18
+ Sample,
19
+ } from '../models/index';
20
+ import {
21
+ SampleFromJSON,
22
+ SampleToJSON,
23
+ } from '../models/index';
24
+
25
+ export interface GetProjectSamplesRequest {
26
+ projectId: string;
27
+ }
28
+
29
+ /**
30
+ *
31
+ */
32
+ export class MetadataApi extends runtime.BaseAPI {
33
+
34
+ /**
35
+ * Get project samples
36
+ */
37
+ async getProjectSamplesRaw(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Sample>>> {
38
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
39
+ throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getProjectSamples.');
40
+ }
41
+
42
+ const queryParameters: any = {};
43
+
44
+ const headerParameters: runtime.HTTPHeaders = {};
45
+
46
+ if (this.configuration && this.configuration.accessToken) {
47
+ const token = this.configuration.accessToken;
48
+ const tokenString = await token("accessToken", []);
49
+
50
+ if (tokenString) {
51
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
52
+ }
53
+ }
54
+ const response = await this.request({
55
+ path: `/projects/{projectId}/metadata/samples`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
56
+ method: 'GET',
57
+ headers: headerParameters,
58
+ query: queryParameters,
59
+ }, initOverrides);
60
+
61
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SampleFromJSON));
62
+ }
63
+
64
+ /**
65
+ * Get project samples
66
+ */
67
+ async getProjectSamples(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Sample>> {
68
+ const response = await this.getProjectSamplesRaw(requestParameters, initOverrides);
69
+ return await response.value();
70
+ }
71
+
72
+ }