@cirrobio/api-client 0.0.39-alpha → 0.1.1

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 (56) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +1 -1
  3. package/dist/apis/AuditApi.d.ts +44 -0
  4. package/dist/apis/AuditApi.js +175 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AuditEvent.d.ts +89 -0
  8. package/dist/models/AuditEvent.js +68 -0
  9. package/dist/models/CloudAccount.d.ts +1 -1
  10. package/dist/models/ColumnDefinition.d.ts +43 -0
  11. package/dist/models/ColumnDefinition.js +54 -0
  12. package/dist/models/DatasetAssetsManifest.d.ts +7 -0
  13. package/dist/models/DatasetAssetsManifest.js +3 -0
  14. package/dist/models/ImportDataRequest.d.ts +3 -3
  15. package/dist/models/ImportDataRequest.js +2 -2
  16. package/dist/models/LoginProvider.d.ts +49 -0
  17. package/dist/models/LoginProvider.js +59 -0
  18. package/dist/models/PipelineCode.d.ts +1 -1
  19. package/dist/models/PipelineCode.js +2 -2
  20. package/dist/models/Process.d.ts +21 -3
  21. package/dist/models/Process.js +10 -2
  22. package/dist/models/ProcessDetail.d.ts +31 -19
  23. package/dist/models/ProcessDetail.js +11 -8
  24. package/dist/models/ProjectSettings.d.ts +1 -1
  25. package/dist/models/ProjectSettings.js +2 -1
  26. package/dist/models/RunAnalysisRequest.d.ts +9 -9
  27. package/dist/models/RunAnalysisRequest.js +3 -4
  28. package/dist/models/SystemInfoResponse.d.ts +8 -1
  29. package/dist/models/SystemInfoResponse.js +7 -3
  30. package/dist/models/Table.d.ts +62 -0
  31. package/dist/models/Table.js +63 -0
  32. package/dist/models/TenantInfo.d.ts +80 -0
  33. package/dist/models/TenantInfo.js +75 -0
  34. package/dist/models/UploadDatasetRequest.d.ts +4 -4
  35. package/dist/models/UploadDatasetRequest.js +2 -2
  36. package/dist/models/index.d.ts +5 -0
  37. package/dist/models/index.js +5 -0
  38. package/package.json +1 -1
  39. package/src/apis/AuditApi.ts +106 -0
  40. package/src/apis/index.ts +1 -0
  41. package/src/models/AuditEvent.ts +137 -0
  42. package/src/models/CloudAccount.ts +1 -1
  43. package/src/models/ColumnDefinition.ts +81 -0
  44. package/src/models/DatasetAssetsManifest.ts +14 -0
  45. package/src/models/ImportDataRequest.ts +4 -5
  46. package/src/models/LoginProvider.ts +93 -0
  47. package/src/models/PipelineCode.ts +3 -2
  48. package/src/models/Process.ts +31 -5
  49. package/src/models/ProcessDetail.ts +42 -27
  50. package/src/models/ProjectSettings.ts +3 -2
  51. package/src/models/RunAnalysisRequest.ts +11 -13
  52. package/src/models/SystemInfoResponse.ts +19 -4
  53. package/src/models/Table.ts +114 -0
  54. package/src/models/TenantInfo.ts +145 -0
  55. package/src/models/UploadDatasetRequest.ts +5 -6
  56. package/src/models/index.ts +5 -0
@@ -0,0 +1,114 @@
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 { ColumnDefinition } from './ColumnDefinition';
17
+ import {
18
+ ColumnDefinitionFromJSON,
19
+ ColumnDefinitionFromJSONTyped,
20
+ ColumnDefinitionToJSON,
21
+ } from './ColumnDefinition';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface Table
27
+ */
28
+ export interface Table {
29
+ /**
30
+ * User-friendly name of asset
31
+ * @type {string}
32
+ * @memberof Table
33
+ */
34
+ name?: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof Table
39
+ */
40
+ desc: string;
41
+ /**
42
+ * Type of file
43
+ * @type {string}
44
+ * @memberof Table
45
+ */
46
+ type?: string;
47
+ /**
48
+ * Number of rows in table
49
+ * @type {number}
50
+ * @memberof Table
51
+ */
52
+ rows?: number;
53
+ /**
54
+ * Relative path to asset
55
+ * @type {string}
56
+ * @memberof Table
57
+ */
58
+ path?: string;
59
+ /**
60
+ *
61
+ * @type {Array<ColumnDefinition>}
62
+ * @memberof Table
63
+ */
64
+ cols: Array<ColumnDefinition>;
65
+ }
66
+
67
+ /**
68
+ * Check if a given object implements the Table interface.
69
+ */
70
+ export function instanceOfTable(value: object): boolean {
71
+ let isInstance = true;
72
+ isInstance = isInstance && "desc" in value;
73
+ isInstance = isInstance && "cols" in value;
74
+
75
+ return isInstance;
76
+ }
77
+
78
+ export function TableFromJSON(json: any): Table {
79
+ return TableFromJSONTyped(json, false);
80
+ }
81
+
82
+ export function TableFromJSONTyped(json: any, ignoreDiscriminator: boolean): Table {
83
+ if ((json === undefined) || (json === null)) {
84
+ return json;
85
+ }
86
+ return {
87
+
88
+ 'name': !exists(json, 'name') ? undefined : json['name'],
89
+ 'desc': json['desc'],
90
+ 'type': !exists(json, 'type') ? undefined : json['type'],
91
+ 'rows': !exists(json, 'rows') ? undefined : json['rows'],
92
+ 'path': !exists(json, 'path') ? undefined : json['path'],
93
+ 'cols': ((json['cols'] as Array<any>).map(ColumnDefinitionFromJSON)),
94
+ };
95
+ }
96
+
97
+ export function TableToJSON(value?: Table | null): any {
98
+ if (value === undefined) {
99
+ return undefined;
100
+ }
101
+ if (value === null) {
102
+ return null;
103
+ }
104
+ return {
105
+
106
+ 'name': value.name,
107
+ 'desc': value.desc,
108
+ 'type': value.type,
109
+ 'rows': value.rows,
110
+ 'path': value.path,
111
+ 'cols': ((value.cols as Array<any>).map(ColumnDefinitionToJSON)),
112
+ };
113
+ }
114
+
@@ -0,0 +1,145 @@
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 { LoginProvider } from './LoginProvider';
17
+ import {
18
+ LoginProviderFromJSON,
19
+ LoginProviderFromJSONTyped,
20
+ LoginProviderToJSON,
21
+ } from './LoginProvider';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface TenantInfo
27
+ */
28
+ export interface TenantInfo {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof TenantInfo
33
+ */
34
+ id: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof TenantInfo
39
+ */
40
+ name: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof TenantInfo
45
+ */
46
+ description: string;
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof TenantInfo
51
+ */
52
+ location: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof TenantInfo
57
+ */
58
+ contactEmail: string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof TenantInfo
63
+ */
64
+ tenantLogoUrl: string;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof TenantInfo
69
+ */
70
+ termsOfServiceUrl: string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof TenantInfo
75
+ */
76
+ privacyPolicyUrl: string;
77
+ /**
78
+ *
79
+ * @type {Array<LoginProvider>}
80
+ * @memberof TenantInfo
81
+ */
82
+ loginProviders: Array<LoginProvider>;
83
+ }
84
+
85
+ /**
86
+ * Check if a given object implements the TenantInfo interface.
87
+ */
88
+ export function instanceOfTenantInfo(value: object): boolean {
89
+ let isInstance = true;
90
+ isInstance = isInstance && "id" in value;
91
+ isInstance = isInstance && "name" in value;
92
+ isInstance = isInstance && "description" in value;
93
+ isInstance = isInstance && "location" in value;
94
+ isInstance = isInstance && "contactEmail" in value;
95
+ isInstance = isInstance && "tenantLogoUrl" in value;
96
+ isInstance = isInstance && "termsOfServiceUrl" in value;
97
+ isInstance = isInstance && "privacyPolicyUrl" in value;
98
+ isInstance = isInstance && "loginProviders" in value;
99
+
100
+ return isInstance;
101
+ }
102
+
103
+ export function TenantInfoFromJSON(json: any): TenantInfo {
104
+ return TenantInfoFromJSONTyped(json, false);
105
+ }
106
+
107
+ export function TenantInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): TenantInfo {
108
+ if ((json === undefined) || (json === null)) {
109
+ return json;
110
+ }
111
+ return {
112
+
113
+ 'id': json['id'],
114
+ 'name': json['name'],
115
+ 'description': json['description'],
116
+ 'location': json['location'],
117
+ 'contactEmail': json['contactEmail'],
118
+ 'tenantLogoUrl': json['tenantLogoUrl'],
119
+ 'termsOfServiceUrl': json['termsOfServiceUrl'],
120
+ 'privacyPolicyUrl': json['privacyPolicyUrl'],
121
+ 'loginProviders': ((json['loginProviders'] as Array<any>).map(LoginProviderFromJSON)),
122
+ };
123
+ }
124
+
125
+ export function TenantInfoToJSON(value?: TenantInfo | null): any {
126
+ if (value === undefined) {
127
+ return undefined;
128
+ }
129
+ if (value === null) {
130
+ return null;
131
+ }
132
+ return {
133
+
134
+ 'id': value.id,
135
+ 'name': value.name,
136
+ 'description': value.description,
137
+ 'location': value.location,
138
+ 'contactEmail': value.contactEmail,
139
+ 'tenantLogoUrl': value.tenantLogoUrl,
140
+ 'termsOfServiceUrl': value.termsOfServiceUrl,
141
+ 'privacyPolicyUrl': value.privacyPolicyUrl,
142
+ 'loginProviders': ((value.loginProviders as Array<any>).map(LoginProviderToJSON)),
143
+ };
144
+ }
145
+
@@ -20,19 +20,19 @@ import { exists, mapValues } from '../runtime';
20
20
  */
21
21
  export interface UploadDatasetRequest {
22
22
  /**
23
- *
23
+ * Name of the dataset
24
24
  * @type {string}
25
25
  * @memberof UploadDatasetRequest
26
26
  */
27
27
  name: string;
28
28
  /**
29
- *
29
+ * Description of the dataset
30
30
  * @type {string}
31
31
  * @memberof UploadDatasetRequest
32
32
  */
33
- description: string;
33
+ description?: string;
34
34
  /**
35
- *
35
+ * ID of the ingest process
36
36
  * @type {string}
37
37
  * @memberof UploadDatasetRequest
38
38
  */
@@ -51,7 +51,6 @@ export interface UploadDatasetRequest {
51
51
  export function instanceOfUploadDatasetRequest(value: object): boolean {
52
52
  let isInstance = true;
53
53
  isInstance = isInstance && "name" in value;
54
- isInstance = isInstance && "description" in value;
55
54
  isInstance = isInstance && "processId" in value;
56
55
  isInstance = isInstance && "expectedFiles" in value;
57
56
 
@@ -69,7 +68,7 @@ export function UploadDatasetRequestFromJSONTyped(json: any, ignoreDiscriminator
69
68
  return {
70
69
 
71
70
  'name': json['name'],
72
- 'description': json['description'],
71
+ 'description': !exists(json, 'description') ? undefined : json['description'],
73
72
  'processId': json['processId'],
74
73
  'expectedFiles': json['expectedFiles'],
75
74
  };
@@ -3,11 +3,13 @@
3
3
  export * from './AWSCredentials';
4
4
  export * from './AccessType';
5
5
  export * from './AllowedDataType';
6
+ export * from './AuditEvent';
6
7
  export * from './BillingAccount';
7
8
  export * from './BillingAccountRequest';
8
9
  export * from './BillingMethod';
9
10
  export * from './BudgetPeriod';
10
11
  export * from './CloudAccount';
12
+ export * from './ColumnDefinition';
11
13
  export * from './Contact';
12
14
  export * from './CreateNotebookInstanceRequest';
13
15
  export * from './CreateReferenceRequest';
@@ -33,6 +35,7 @@ export * from './ImportDataRequest';
33
35
  export * from './InviteUserRequest';
34
36
  export * from './InviteUserResponse';
35
37
  export * from './LogEntry';
38
+ export * from './LoginProvider';
36
39
  export * from './MetricRecord';
37
40
  export * from './NotebookInstance';
38
41
  export * from './NotebookInstanceStatusResponse';
@@ -64,8 +67,10 @@ export * from './Status';
64
67
  export * from './StopExecutionResponse';
65
68
  export * from './SyncStatus';
66
69
  export * from './SystemInfoResponse';
70
+ export * from './Table';
67
71
  export * from './Tag';
68
72
  export * from './Task';
73
+ export * from './TenantInfo';
69
74
  export * from './UpdateDatasetRequest';
70
75
  export * from './UpdateUserRequest';
71
76
  export * from './UploadDatasetCreateResponse';