@cirrobio/api-client 0.1.11 → 0.1.13

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 (35) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +1 -1
  3. package/dist/apis/AuditApi.d.ts +18 -2
  4. package/dist/apis/AuditApi.js +23 -4
  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 +1 -1
  14. package/dist/models/ProjectAccessRequest.d.ts +81 -0
  15. package/dist/models/ProjectAccessRequest.js +76 -0
  16. package/dist/models/ProjectSettings.d.ts +6 -0
  17. package/dist/models/ProjectSettings.js +2 -0
  18. package/dist/models/RequestStatus.d.ts +24 -0
  19. package/dist/models/RequestStatus.js +39 -0
  20. package/dist/models/Sample.d.ts +5 -5
  21. package/dist/models/Sample.js +7 -10
  22. package/dist/models/index.d.ts +4 -0
  23. package/dist/models/index.js +4 -0
  24. package/package.json +1 -1
  25. package/src/apis/AuditApi.ts +27 -6
  26. package/src/apis/ProjectsApi.ts +250 -0
  27. package/src/models/ApproveAccessRequest.ts +73 -0
  28. package/src/models/ApproveProjectAccessRequest.ts +73 -0
  29. package/src/models/CreateProjectAccessRequest.ts +82 -0
  30. package/src/models/PipelineCost.ts +1 -1
  31. package/src/models/ProjectAccessRequest.ts +151 -0
  32. package/src/models/ProjectSettings.ts +8 -0
  33. package/src/models/RequestStatus.ts +38 -0
  34. package/src/models/Sample.ts +10 -14
  35. package/src/models/index.ts +4 -0
@@ -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';
@@ -51,6 +53,7 @@ export * from './PortalErrorResponse';
51
53
  export * from './Process';
52
54
  export * from './ProcessDetail';
53
55
  export * from './Project';
56
+ export * from './ProjectAccessRequest';
54
57
  export * from './ProjectDetail';
55
58
  export * from './ProjectMetrics';
56
59
  export * from './ProjectRequest';
@@ -60,6 +63,7 @@ export * from './ProjectUser';
60
63
  export * from './Reference';
61
64
  export * from './ReferenceType';
62
65
  export * from './RepositoryType';
66
+ export * from './RequestStatus';
63
67
  export * from './ResourcesInfo';
64
68
  export * from './RunAnalysisRequest';
65
69
  export * from './Sample';