@cirrobio/api-client 0.1.10 → 0.1.12

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 (38) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +1 -1
  3. package/dist/apis/ProcessesApi.d.ts +15 -1
  4. package/dist/apis/ProcessesApi.js +60 -0
  5. package/dist/apis/ProjectsApi.d.ts +68 -1
  6. package/dist/apis/ProjectsApi.js +287 -0
  7. package/dist/models/ApproveAccessRequest.d.ts +32 -0
  8. package/dist/models/ApproveAccessRequest.js +51 -0
  9. package/dist/models/ApproveProjectAccessRequest.d.ts +32 -0
  10. package/dist/models/ApproveProjectAccessRequest.js +51 -0
  11. package/dist/models/CreateProjectAccessRequest.d.ts +38 -0
  12. package/dist/models/CreateProjectAccessRequest.js +54 -0
  13. package/dist/models/PipelineCost.d.ts +43 -0
  14. package/dist/models/PipelineCost.js +54 -0
  15. package/dist/models/ProjectAccessRequest.d.ts +75 -0
  16. package/dist/models/ProjectAccessRequest.js +73 -0
  17. package/dist/models/ProjectSettings.d.ts +6 -0
  18. package/dist/models/ProjectSettings.js +2 -0
  19. package/dist/models/RequestStatus.d.ts +24 -0
  20. package/dist/models/RequestStatus.js +39 -0
  21. package/dist/models/Sample.d.ts +5 -5
  22. package/dist/models/Sample.js +7 -10
  23. package/dist/models/index.d.ts +5 -0
  24. package/dist/models/index.js +5 -0
  25. package/dist/runtime.js +1 -1
  26. package/package.json +1 -1
  27. package/src/apis/ProcessesApi.ts +55 -0
  28. package/src/apis/ProjectsApi.ts +250 -0
  29. package/src/models/ApproveAccessRequest.ts +73 -0
  30. package/src/models/ApproveProjectAccessRequest.ts +73 -0
  31. package/src/models/CreateProjectAccessRequest.ts +82 -0
  32. package/src/models/PipelineCost.ts +81 -0
  33. package/src/models/ProjectAccessRequest.ts +142 -0
  34. package/src/models/ProjectSettings.ts +8 -0
  35. package/src/models/RequestStatus.ts +38 -0
  36. package/src/models/Sample.ts +10 -14
  37. package/src/models/index.ts +5 -0
  38. package/src/runtime.ts +1 -1
@@ -0,0 +1,142 @@
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
+ import type { ProjectRole } from './ProjectRole';
17
+ import {
18
+ ProjectRoleFromJSON,
19
+ ProjectRoleFromJSONTyped,
20
+ ProjectRoleToJSON,
21
+ } from './ProjectRole';
22
+ import type { RequestStatus } from './RequestStatus';
23
+ import {
24
+ RequestStatusFromJSON,
25
+ RequestStatusFromJSONTyped,
26
+ RequestStatusToJSON,
27
+ } from './RequestStatus';
28
+
29
+ /**
30
+ *
31
+ * @export
32
+ * @interface ProjectAccessRequest
33
+ */
34
+ export interface ProjectAccessRequest {
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof ProjectAccessRequest
39
+ */
40
+ id: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof ProjectAccessRequest
45
+ */
46
+ username: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof ProjectAccessRequest
51
+ */
52
+ projectId: string;
53
+ /**
54
+ *
55
+ * @type {ProjectRole}
56
+ * @memberof ProjectAccessRequest
57
+ */
58
+ role: ProjectRole;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof ProjectAccessRequest
63
+ */
64
+ message: string;
65
+ /**
66
+ *
67
+ * @type {RequestStatus}
68
+ * @memberof ProjectAccessRequest
69
+ */
70
+ status: RequestStatus;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof ProjectAccessRequest
75
+ */
76
+ reviewerUsername: string;
77
+ /**
78
+ *
79
+ * @type {Date}
80
+ * @memberof ProjectAccessRequest
81
+ */
82
+ createdAt: Date;
83
+ }
84
+
85
+ /**
86
+ * Check if a given object implements the ProjectAccessRequest interface.
87
+ */
88
+ export function instanceOfProjectAccessRequest(value: object): boolean {
89
+ let isInstance = true;
90
+ isInstance = isInstance && "id" in value;
91
+ isInstance = isInstance && "username" in value;
92
+ isInstance = isInstance && "projectId" in value;
93
+ isInstance = isInstance && "role" in value;
94
+ isInstance = isInstance && "message" in value;
95
+ isInstance = isInstance && "status" in value;
96
+ isInstance = isInstance && "reviewerUsername" in value;
97
+ isInstance = isInstance && "createdAt" in value;
98
+
99
+ return isInstance;
100
+ }
101
+
102
+ export function ProjectAccessRequestFromJSON(json: any): ProjectAccessRequest {
103
+ return ProjectAccessRequestFromJSONTyped(json, false);
104
+ }
105
+
106
+ export function ProjectAccessRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectAccessRequest {
107
+ if ((json === undefined) || (json === null)) {
108
+ return json;
109
+ }
110
+ return {
111
+
112
+ 'id': json['id'],
113
+ 'username': json['username'],
114
+ 'projectId': json['projectId'],
115
+ 'role': ProjectRoleFromJSON(json['role']),
116
+ 'message': json['message'],
117
+ 'status': RequestStatusFromJSON(json['status']),
118
+ 'reviewerUsername': json['reviewerUsername'],
119
+ 'createdAt': (new Date(json['createdAt'])),
120
+ };
121
+ }
122
+
123
+ export function ProjectAccessRequestToJSON(value?: ProjectAccessRequest | null): any {
124
+ if (value === undefined) {
125
+ return undefined;
126
+ }
127
+ if (value === null) {
128
+ return null;
129
+ }
130
+ return {
131
+
132
+ 'id': value.id,
133
+ 'username': value.username,
134
+ 'projectId': value.projectId,
135
+ 'role': ProjectRoleToJSON(value.role),
136
+ 'message': value.message,
137
+ 'status': RequestStatusToJSON(value.status),
138
+ 'reviewerUsername': value.reviewerUsername,
139
+ 'createdAt': (value.createdAt.toISOString()),
140
+ };
141
+ }
142
+
@@ -116,6 +116,12 @@ export interface ProjectSettings {
116
116
  * @memberof ProjectSettings
117
117
  */
118
118
  kmsArn?: string | null;
119
+ /**
120
+ * Enables the project to be discoverable by other users
121
+ * @type {boolean}
122
+ * @memberof ProjectSettings
123
+ */
124
+ isDiscoverable?: boolean | null;
119
125
  }
120
126
 
121
127
  /**
@@ -154,6 +160,7 @@ export function ProjectSettingsFromJSONTyped(json: any, ignoreDiscriminator: boo
154
160
  'batchSubnets': !exists(json, 'batchSubnets') ? undefined : json['batchSubnets'],
155
161
  'sagemakerSubnets': !exists(json, 'sagemakerSubnets') ? undefined : json['sagemakerSubnets'],
156
162
  'kmsArn': !exists(json, 'kmsArn') ? undefined : json['kmsArn'],
163
+ 'isDiscoverable': !exists(json, 'isDiscoverable') ? undefined : json['isDiscoverable'],
157
164
  };
158
165
  }
159
166
 
@@ -181,6 +188,7 @@ export function ProjectSettingsToJSON(value?: ProjectSettings | null): any {
181
188
  'batchSubnets': value.batchSubnets,
182
189
  'sagemakerSubnets': value.sagemakerSubnets,
183
190
  'kmsArn': value.kmsArn,
191
+ 'isDiscoverable': value.isDiscoverable,
184
192
  };
185
193
  }
186
194
 
@@ -0,0 +1,38 @@
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
+ *
17
+ * @export
18
+ * @enum {string}
19
+ */
20
+ export enum RequestStatus {
21
+ Pending = 'PENDING',
22
+ Accepted = 'ACCEPTED',
23
+ Denied = 'DENIED'
24
+ }
25
+
26
+
27
+ export function RequestStatusFromJSON(json: any): RequestStatus {
28
+ return RequestStatusFromJSONTyped(json, false);
29
+ }
30
+
31
+ export function RequestStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestStatus {
32
+ return json as RequestStatus;
33
+ }
34
+
35
+ export function RequestStatusToJSON(value?: RequestStatus | null): any {
36
+ return value as any;
37
+ }
38
+
@@ -36,25 +36,25 @@ export interface Sample {
36
36
  * @type {{ [key: string]: any; }}
37
37
  * @memberof Sample
38
38
  */
39
- metadata: { [key: string]: any; };
39
+ metadata?: { [key: string]: any; } | null;
40
40
  /**
41
41
  *
42
42
  * @type {Array<string>}
43
43
  * @memberof Sample
44
44
  */
45
- datasetIds: Array<string>;
45
+ datasetIds?: Array<string> | null;
46
46
  /**
47
47
  *
48
48
  * @type {Date}
49
49
  * @memberof Sample
50
50
  */
51
- createdAt: Date;
51
+ createdAt?: Date | null;
52
52
  /**
53
53
  *
54
54
  * @type {Date}
55
55
  * @memberof Sample
56
56
  */
57
- updatedAt: Date;
57
+ updatedAt?: Date | null;
58
58
  }
59
59
 
60
60
  /**
@@ -64,10 +64,6 @@ export function instanceOfSample(value: object): boolean {
64
64
  let isInstance = true;
65
65
  isInstance = isInstance && "id" in value;
66
66
  isInstance = isInstance && "name" in value;
67
- isInstance = isInstance && "metadata" in value;
68
- isInstance = isInstance && "datasetIds" in value;
69
- isInstance = isInstance && "createdAt" in value;
70
- isInstance = isInstance && "updatedAt" in value;
71
67
 
72
68
  return isInstance;
73
69
  }
@@ -84,10 +80,10 @@ export function SampleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sa
84
80
 
85
81
  'id': json['id'],
86
82
  'name': json['name'],
87
- 'metadata': json['metadata'],
88
- 'datasetIds': json['datasetIds'],
89
- 'createdAt': (new Date(json['createdAt'])),
90
- 'updatedAt': (new Date(json['updatedAt'])),
83
+ 'metadata': !exists(json, 'metadata') ? undefined : json['metadata'],
84
+ 'datasetIds': !exists(json, 'datasetIds') ? undefined : json['datasetIds'],
85
+ 'createdAt': !exists(json, 'createdAt') ? undefined : (json['createdAt'] === null ? null : new Date(json['createdAt'])),
86
+ 'updatedAt': !exists(json, 'updatedAt') ? undefined : (json['updatedAt'] === null ? null : new Date(json['updatedAt'])),
91
87
  };
92
88
  }
93
89
 
@@ -104,8 +100,8 @@ export function SampleToJSON(value?: Sample | null): any {
104
100
  'name': value.name,
105
101
  'metadata': value.metadata,
106
102
  'datasetIds': value.datasetIds,
107
- 'createdAt': (value.createdAt.toISOString()),
108
- 'updatedAt': (value.updatedAt.toISOString()),
103
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt === null ? null : value.createdAt.toISOString()),
104
+ 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt === null ? null : value.updatedAt.toISOString()),
109
105
  };
110
106
  }
111
107
 
@@ -3,6 +3,7 @@
3
3
  export * from './AWSCredentials';
4
4
  export * from './AccessType';
5
5
  export * from './AllowedDataType';
6
+ export * from './ApproveProjectAccessRequest';
6
7
  export * from './AuditEvent';
7
8
  export * from './AuthInfo';
8
9
  export * from './BillingAccount';
@@ -14,6 +15,7 @@ export * from './CloudAccountType';
14
15
  export * from './ColumnDefinition';
15
16
  export * from './Contact';
16
17
  export * from './CreateNotebookInstanceRequest';
18
+ export * from './CreateProjectAccessRequest';
17
19
  export * from './CreateReferenceRequest';
18
20
  export * from './CreateResponse';
19
21
  export * from './CustomPipelineSettings';
@@ -46,10 +48,12 @@ export * from './OpenNotebookInstanceResponse';
46
48
  export * from './PaginatedResponseDatasetListDto';
47
49
  export * from './PaginatedResponseSampleDto';
48
50
  export * from './PipelineCode';
51
+ export * from './PipelineCost';
49
52
  export * from './PortalErrorResponse';
50
53
  export * from './Process';
51
54
  export * from './ProcessDetail';
52
55
  export * from './Project';
56
+ export * from './ProjectAccessRequest';
53
57
  export * from './ProjectDetail';
54
58
  export * from './ProjectMetrics';
55
59
  export * from './ProjectRequest';
@@ -59,6 +63,7 @@ export * from './ProjectUser';
59
63
  export * from './Reference';
60
64
  export * from './ReferenceType';
61
65
  export * from './RepositoryType';
66
+ export * from './RequestStatus';
62
67
  export * from './ResourcesInfo';
63
68
  export * from './RunAnalysisRequest';
64
69
  export * from './Sample';
package/src/runtime.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- export const BASE_PATH = "https://dev.cirro.bio/api".replace(/\/+$/, "");
16
+ export const BASE_PATH = "https://app.cirro.bio/api".replace(/\/+$/, "");
17
17
 
18
18
  export interface ConfigurationParameters {
19
19
  basePath?: string; // override base path