@cirrobio/api-client 0.0.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.
- package/.openapi-generator/FILES +54 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +45 -0
- package/dist/apis/BillingApi.d.ts +68 -0
- package/dist/apis/BillingApi.js +264 -0
- package/dist/apis/DatasetsApi.d.ts +88 -0
- package/dist/apis/DatasetsApi.js +335 -0
- package/dist/apis/ExecutionApi.d.ts +96 -0
- package/dist/apis/ExecutionApi.js +394 -0
- package/dist/apis/MetricsApi.d.ts +31 -0
- package/dist/apis/MetricsApi.js +126 -0
- package/dist/apis/NotebooksApi.d.ts +77 -0
- package/dist/apis/NotebooksApi.js +351 -0
- package/dist/apis/ProcessesApi.d.ts +41 -0
- package/dist/apis/ProcessesApi.js +169 -0
- package/dist/apis/ProjectsApi.d.ts +97 -0
- package/dist/apis/ProjectsApi.js +369 -0
- package/dist/apis/SystemApi.d.ts +46 -0
- package/dist/apis/SystemApi.js +207 -0
- package/dist/apis/UsersApi.d.ts +58 -0
- package/dist/apis/UsersApi.js +226 -0
- package/dist/apis/index.d.ts +9 -0
- package/dist/apis/index.js +27 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/BillingAccount.d.ts +82 -0
- package/dist/models/BillingAccount.js +77 -0
- package/dist/models/BillingMethod.d.ts +24 -0
- package/dist/models/BillingMethod.js +37 -0
- package/dist/models/BudgetPeriod.d.ts +24 -0
- package/dist/models/BudgetPeriod.js +37 -0
- package/dist/models/CloudAccount.d.ts +50 -0
- package/dist/models/CloudAccount.js +57 -0
- package/dist/models/Contact.d.ts +49 -0
- package/dist/models/Contact.js +56 -0
- package/dist/models/CreateNotebookInstanceRequest.d.ts +49 -0
- package/dist/models/CreateNotebookInstanceRequest.js +59 -0
- package/dist/models/CreateResponse.d.ts +37 -0
- package/dist/models/CreateResponse.js +53 -0
- package/dist/models/CustomerType.d.ts +25 -0
- package/dist/models/CustomerType.js +38 -0
- package/dist/models/Dataset.d.ts +86 -0
- package/dist/models/Dataset.js +78 -0
- package/dist/models/DatasetDetail.d.ts +114 -0
- package/dist/models/DatasetDetail.js +90 -0
- package/dist/models/DatasetType.d.ts +23 -0
- package/dist/models/DatasetType.js +36 -0
- package/dist/models/Executor.d.ts +24 -0
- package/dist/models/Executor.js +37 -0
- package/dist/models/FormSchema.d.ts +41 -0
- package/dist/models/FormSchema.js +52 -0
- package/dist/models/GetExecutionLogsResponse.d.ts +32 -0
- package/dist/models/GetExecutionLogsResponse.js +51 -0
- package/dist/models/LogEntry.d.ts +37 -0
- package/dist/models/LogEntry.js +53 -0
- package/dist/models/NotebookInstance.d.ts +43 -0
- package/dist/models/NotebookInstance.js +56 -0
- package/dist/models/OpenNotebookInstanceResponse.d.ts +37 -0
- package/dist/models/OpenNotebookInstanceResponse.js +53 -0
- package/dist/models/Process.d.ts +68 -0
- package/dist/models/Process.js +63 -0
- package/dist/models/Project.d.ts +49 -0
- package/dist/models/Project.js +59 -0
- package/dist/models/ProjectDetail.d.ts +100 -0
- package/dist/models/ProjectDetail.js +86 -0
- package/dist/models/ProjectMetrics.d.ts +47 -0
- package/dist/models/ProjectMetrics.js +56 -0
- package/dist/models/ProjectRequest.d.ts +71 -0
- package/dist/models/ProjectRequest.js +72 -0
- package/dist/models/ProjectRole.d.ts +25 -0
- package/dist/models/ProjectRole.js +38 -0
- package/dist/models/ProjectSettings.d.ts +92 -0
- package/dist/models/ProjectSettings.js +71 -0
- package/dist/models/ReferenceType.d.ts +31 -0
- package/dist/models/ReferenceType.js +50 -0
- package/dist/models/Region.d.ts +31 -0
- package/dist/models/Region.js +50 -0
- package/dist/models/RegisterDatasetRequest.d.ts +31 -0
- package/dist/models/RegisterDatasetRequest.js +50 -0
- package/dist/models/ServiceConnection.d.ts +31 -0
- package/dist/models/ServiceConnection.js +50 -0
- package/dist/models/SetUserProjectRoleRequest.d.ts +31 -0
- package/dist/models/SetUserProjectRoleRequest.js +50 -0
- package/dist/models/StopExecutionResponse.d.ts +37 -0
- package/dist/models/StopExecutionResponse.js +52 -0
- package/dist/models/SystemInfoResponse.d.ts +55 -0
- package/dist/models/SystemInfoResponse.js +62 -0
- package/dist/models/Tag.d.ts +37 -0
- package/dist/models/Tag.js +53 -0
- package/dist/models/Task.d.ts +73 -0
- package/dist/models/Task.js +68 -0
- package/dist/models/UpdateDatasetRequest.d.ts +31 -0
- package/dist/models/UpdateDatasetRequest.js +50 -0
- package/dist/models/UpdateUserRequest.d.ts +57 -0
- package/dist/models/UpdateUserRequest.js +62 -0
- package/dist/models/User.d.ts +49 -0
- package/dist/models/User.js +59 -0
- package/dist/models/index.d.ts +36 -0
- package/dist/models/index.js +54 -0
- package/dist/runtime.d.ts +182 -0
- package/dist/runtime.js +562 -0
- package/package.json +22 -0
- package/src/apis/BillingApi.ts +178 -0
- package/src/apis/DatasetsApi.ts +257 -0
- package/src/apis/ExecutionApi.ts +317 -0
- package/src/apis/MetricsApi.ts +66 -0
- package/src/apis/NotebooksApi.ts +261 -0
- package/src/apis/ProcessesApi.ts +97 -0
- package/src/apis/ProjectsApi.ts +283 -0
- package/src/apis/SystemApi.ts +118 -0
- package/src/apis/UsersApi.ts +153 -0
- package/src/apis/index.ts +11 -0
- package/src/index.ts +5 -0
- package/src/models/BillingAccount.ts +157 -0
- package/src/models/BillingMethod.ts +39 -0
- package/src/models/BudgetPeriod.ts +39 -0
- package/src/models/CloudAccount.ts +96 -0
- package/src/models/Contact.ts +89 -0
- package/src/models/CreateNotebookInstanceRequest.ts +93 -0
- package/src/models/CreateResponse.ts +75 -0
- package/src/models/CustomerType.ts +40 -0
- package/src/models/Dataset.ts +154 -0
- package/src/models/DatasetDetail.ts +190 -0
- package/src/models/DatasetType.ts +38 -0
- package/src/models/Executor.ts +39 -0
- package/src/models/FormSchema.ts +73 -0
- package/src/models/GetExecutionLogsResponse.ts +73 -0
- package/src/models/LogEntry.ts +74 -0
- package/src/models/NotebookInstance.ts +84 -0
- package/src/models/OpenNotebookInstanceResponse.ts +75 -0
- package/src/models/Process.ts +120 -0
- package/src/models/Project.ts +93 -0
- package/src/models/ProjectDetail.ts +184 -0
- package/src/models/ProjectMetrics.ts +84 -0
- package/src/models/ProjectRequest.ts +145 -0
- package/src/models/ProjectRole.ts +40 -0
- package/src/models/ProjectSettings.ts +152 -0
- package/src/models/ReferenceType.ts +66 -0
- package/src/models/Region.ts +65 -0
- package/src/models/RegisterDatasetRequest.ts +65 -0
- package/src/models/ServiceConnection.ts +66 -0
- package/src/models/SetUserProjectRoleRequest.ts +65 -0
- package/src/models/StopExecutionResponse.ts +73 -0
- package/src/models/SystemInfoResponse.ts +102 -0
- package/src/models/Tag.ts +75 -0
- package/src/models/Task.ts +125 -0
- package/src/models/UpdateDatasetRequest.ts +65 -0
- package/src/models/UpdateUserRequest.ts +102 -0
- package/src/models/User.ts +93 -0
- package/src/models/index.ts +38 -0
- package/src/runtime.ts +431 -0
- package/templates/README.mustache +45 -0
- package/templates/package.mustache +43 -0
- package/tsconfig.json +20 -0
|
@@ -0,0 +1,84 @@
|
|
|
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 NotebookInstance
|
|
20
|
+
*/
|
|
21
|
+
export interface NotebookInstance {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof NotebookInstance
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof NotebookInstance
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof NotebookInstance
|
|
38
|
+
*/
|
|
39
|
+
createdBy: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the NotebookInstance interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfNotebookInstance(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "id" in value;
|
|
48
|
+
isInstance = isInstance && "name" in value;
|
|
49
|
+
isInstance = isInstance && "createdBy" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function NotebookInstanceFromJSON(json: any): NotebookInstance {
|
|
55
|
+
return NotebookInstanceFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function NotebookInstanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotebookInstance {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'id': json['id'],
|
|
65
|
+
'name': json['name'],
|
|
66
|
+
'createdBy': json['createdBy'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function NotebookInstanceToJSON(value?: NotebookInstance | null): any {
|
|
71
|
+
if (value === undefined) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
if (value === null) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value.id,
|
|
80
|
+
'name': value.name,
|
|
81
|
+
'createdBy': value.createdBy,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
@@ -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 OpenNotebookInstanceResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface OpenNotebookInstanceResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof OpenNotebookInstanceResponse
|
|
26
|
+
*/
|
|
27
|
+
url: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof OpenNotebookInstanceResponse
|
|
32
|
+
*/
|
|
33
|
+
message: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Check if a given object implements the OpenNotebookInstanceResponse interface.
|
|
38
|
+
*/
|
|
39
|
+
export function instanceOfOpenNotebookInstanceResponse(value: object): boolean {
|
|
40
|
+
let isInstance = true;
|
|
41
|
+
isInstance = isInstance && "url" in value;
|
|
42
|
+
isInstance = isInstance && "message" in value;
|
|
43
|
+
|
|
44
|
+
return isInstance;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function OpenNotebookInstanceResponseFromJSON(json: any): OpenNotebookInstanceResponse {
|
|
48
|
+
return OpenNotebookInstanceResponseFromJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function OpenNotebookInstanceResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OpenNotebookInstanceResponse {
|
|
52
|
+
if ((json === undefined) || (json === null)) {
|
|
53
|
+
return json;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
|
|
57
|
+
'url': json['url'],
|
|
58
|
+
'message': json['message'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function OpenNotebookInstanceResponseToJSON(value?: OpenNotebookInstanceResponse | null): any {
|
|
63
|
+
if (value === undefined) {
|
|
64
|
+
return undefined;
|
|
65
|
+
}
|
|
66
|
+
if (value === null) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'url': value.url,
|
|
72
|
+
'message': value.message,
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
@@ -0,0 +1,120 @@
|
|
|
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 { Executor } from './Executor';
|
|
17
|
+
import {
|
|
18
|
+
ExecutorFromJSON,
|
|
19
|
+
ExecutorFromJSONTyped,
|
|
20
|
+
ExecutorToJSON,
|
|
21
|
+
} from './Executor';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface Process
|
|
27
|
+
*/
|
|
28
|
+
export interface Process {
|
|
29
|
+
/**
|
|
30
|
+
* Unique ID of the Process
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Process
|
|
33
|
+
*/
|
|
34
|
+
id?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof Process
|
|
39
|
+
*/
|
|
40
|
+
name?: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof Process
|
|
45
|
+
*/
|
|
46
|
+
description?: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Executor}
|
|
50
|
+
* @memberof Process
|
|
51
|
+
*/
|
|
52
|
+
executor?: Executor;
|
|
53
|
+
/**
|
|
54
|
+
* Link to pipeline documentation
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof Process
|
|
57
|
+
*/
|
|
58
|
+
documentationUrl?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Description of the files to be uploaded (optional)
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof Process
|
|
63
|
+
*/
|
|
64
|
+
fileRequirementsMessage?: string;
|
|
65
|
+
/**
|
|
66
|
+
* IDs of pipelines that can be ran downstream
|
|
67
|
+
* @type {Array<string>}
|
|
68
|
+
* @memberof Process
|
|
69
|
+
*/
|
|
70
|
+
childProcessIds?: Array<string>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the Process interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfProcess(value: object): boolean {
|
|
77
|
+
let isInstance = true;
|
|
78
|
+
|
|
79
|
+
return isInstance;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function ProcessFromJSON(json: any): Process {
|
|
83
|
+
return ProcessFromJSONTyped(json, false);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export function ProcessFromJSONTyped(json: any, ignoreDiscriminator: boolean): Process {
|
|
87
|
+
if ((json === undefined) || (json === null)) {
|
|
88
|
+
return json;
|
|
89
|
+
}
|
|
90
|
+
return {
|
|
91
|
+
|
|
92
|
+
'id': !exists(json, 'id') ? undefined : json['id'],
|
|
93
|
+
'name': !exists(json, 'name') ? undefined : json['name'],
|
|
94
|
+
'description': !exists(json, 'description') ? undefined : json['description'],
|
|
95
|
+
'executor': !exists(json, 'executor') ? undefined : ExecutorFromJSON(json['executor']),
|
|
96
|
+
'documentationUrl': !exists(json, 'documentationUrl') ? undefined : json['documentationUrl'],
|
|
97
|
+
'fileRequirementsMessage': !exists(json, 'fileRequirementsMessage') ? undefined : json['fileRequirementsMessage'],
|
|
98
|
+
'childProcessIds': !exists(json, 'childProcessIds') ? undefined : json['childProcessIds'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function ProcessToJSON(value?: Process | null): any {
|
|
103
|
+
if (value === undefined) {
|
|
104
|
+
return undefined;
|
|
105
|
+
}
|
|
106
|
+
if (value === null) {
|
|
107
|
+
return null;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'id': value.id,
|
|
112
|
+
'name': value.name,
|
|
113
|
+
'description': value.description,
|
|
114
|
+
'executor': ExecutorToJSON(value.executor),
|
|
115
|
+
'documentationUrl': value.documentationUrl,
|
|
116
|
+
'fileRequirementsMessage': value.fileRequirementsMessage,
|
|
117
|
+
'childProcessIds': value.childProcessIds,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
@@ -0,0 +1,93 @@
|
|
|
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 Project
|
|
20
|
+
*/
|
|
21
|
+
export interface Project {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Project
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof Project
|
|
32
|
+
*/
|
|
33
|
+
name: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof Project
|
|
38
|
+
*/
|
|
39
|
+
description: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {string}
|
|
43
|
+
* @memberof Project
|
|
44
|
+
*/
|
|
45
|
+
status: string;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the Project interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfProject(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "id" in value;
|
|
54
|
+
isInstance = isInstance && "name" in value;
|
|
55
|
+
isInstance = isInstance && "description" in value;
|
|
56
|
+
isInstance = isInstance && "status" in value;
|
|
57
|
+
|
|
58
|
+
return isInstance;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function ProjectFromJSON(json: any): Project {
|
|
62
|
+
return ProjectFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): Project {
|
|
66
|
+
if ((json === undefined) || (json === null)) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'id': json['id'],
|
|
72
|
+
'name': json['name'],
|
|
73
|
+
'description': json['description'],
|
|
74
|
+
'status': json['status'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function ProjectToJSON(value?: Project | null): any {
|
|
79
|
+
if (value === undefined) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
if (value === null) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'id': value.id,
|
|
88
|
+
'name': value.name,
|
|
89
|
+
'description': value.description,
|
|
90
|
+
'status': value.status,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
@@ -0,0 +1,184 @@
|
|
|
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 { Contact } from './Contact';
|
|
17
|
+
import {
|
|
18
|
+
ContactFromJSON,
|
|
19
|
+
ContactFromJSONTyped,
|
|
20
|
+
ContactToJSON,
|
|
21
|
+
} from './Contact';
|
|
22
|
+
import type { ProjectSettings } from './ProjectSettings';
|
|
23
|
+
import {
|
|
24
|
+
ProjectSettingsFromJSON,
|
|
25
|
+
ProjectSettingsFromJSONTyped,
|
|
26
|
+
ProjectSettingsToJSON,
|
|
27
|
+
} from './ProjectSettings';
|
|
28
|
+
import type { Tag } from './Tag';
|
|
29
|
+
import {
|
|
30
|
+
TagFromJSON,
|
|
31
|
+
TagFromJSONTyped,
|
|
32
|
+
TagToJSON,
|
|
33
|
+
} from './Tag';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface ProjectDetail
|
|
39
|
+
*/
|
|
40
|
+
export interface ProjectDetail {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof ProjectDetail
|
|
45
|
+
*/
|
|
46
|
+
id: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof ProjectDetail
|
|
51
|
+
*/
|
|
52
|
+
name: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof ProjectDetail
|
|
57
|
+
*/
|
|
58
|
+
description: string;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof ProjectDetail
|
|
63
|
+
*/
|
|
64
|
+
billingAccountId: string;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {Contact}
|
|
68
|
+
* @memberof ProjectDetail
|
|
69
|
+
*/
|
|
70
|
+
contact: Contact;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof ProjectDetail
|
|
75
|
+
*/
|
|
76
|
+
status: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {ProjectSettings}
|
|
80
|
+
* @memberof ProjectDetail
|
|
81
|
+
*/
|
|
82
|
+
settings: ProjectSettings;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof ProjectDetail
|
|
87
|
+
*/
|
|
88
|
+
statusMessage: string;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Array<Tag>}
|
|
92
|
+
* @memberof ProjectDetail
|
|
93
|
+
*/
|
|
94
|
+
tags: Array<Tag>;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {string}
|
|
98
|
+
* @memberof ProjectDetail
|
|
99
|
+
*/
|
|
100
|
+
createdBy: string;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof ProjectDetail
|
|
105
|
+
*/
|
|
106
|
+
createdAt: string;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof ProjectDetail
|
|
111
|
+
*/
|
|
112
|
+
updatedAt: string;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Check if a given object implements the ProjectDetail interface.
|
|
117
|
+
*/
|
|
118
|
+
export function instanceOfProjectDetail(value: object): boolean {
|
|
119
|
+
let isInstance = true;
|
|
120
|
+
isInstance = isInstance && "id" in value;
|
|
121
|
+
isInstance = isInstance && "name" in value;
|
|
122
|
+
isInstance = isInstance && "description" in value;
|
|
123
|
+
isInstance = isInstance && "billingAccountId" in value;
|
|
124
|
+
isInstance = isInstance && "contact" in value;
|
|
125
|
+
isInstance = isInstance && "status" in value;
|
|
126
|
+
isInstance = isInstance && "settings" in value;
|
|
127
|
+
isInstance = isInstance && "statusMessage" in value;
|
|
128
|
+
isInstance = isInstance && "tags" in value;
|
|
129
|
+
isInstance = isInstance && "createdBy" in value;
|
|
130
|
+
isInstance = isInstance && "createdAt" in value;
|
|
131
|
+
isInstance = isInstance && "updatedAt" in value;
|
|
132
|
+
|
|
133
|
+
return isInstance;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export function ProjectDetailFromJSON(json: any): ProjectDetail {
|
|
137
|
+
return ProjectDetailFromJSONTyped(json, false);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function ProjectDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectDetail {
|
|
141
|
+
if ((json === undefined) || (json === null)) {
|
|
142
|
+
return json;
|
|
143
|
+
}
|
|
144
|
+
return {
|
|
145
|
+
|
|
146
|
+
'id': json['id'],
|
|
147
|
+
'name': json['name'],
|
|
148
|
+
'description': json['description'],
|
|
149
|
+
'billingAccountId': json['billingAccountId'],
|
|
150
|
+
'contact': ContactFromJSON(json['contact']),
|
|
151
|
+
'status': json['status'],
|
|
152
|
+
'settings': ProjectSettingsFromJSON(json['settings']),
|
|
153
|
+
'statusMessage': json['statusMessage'],
|
|
154
|
+
'tags': ((json['tags'] as Array<any>).map(TagFromJSON)),
|
|
155
|
+
'createdBy': json['createdBy'],
|
|
156
|
+
'createdAt': json['createdAt'],
|
|
157
|
+
'updatedAt': json['updatedAt'],
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export function ProjectDetailToJSON(value?: ProjectDetail | null): any {
|
|
162
|
+
if (value === undefined) {
|
|
163
|
+
return undefined;
|
|
164
|
+
}
|
|
165
|
+
if (value === null) {
|
|
166
|
+
return null;
|
|
167
|
+
}
|
|
168
|
+
return {
|
|
169
|
+
|
|
170
|
+
'id': value.id,
|
|
171
|
+
'name': value.name,
|
|
172
|
+
'description': value.description,
|
|
173
|
+
'billingAccountId': value.billingAccountId,
|
|
174
|
+
'contact': ContactToJSON(value.contact),
|
|
175
|
+
'status': value.status,
|
|
176
|
+
'settings': ProjectSettingsToJSON(value.settings),
|
|
177
|
+
'statusMessage': value.statusMessage,
|
|
178
|
+
'tags': ((value.tags as Array<any>).map(TagToJSON)),
|
|
179
|
+
'createdBy': value.createdBy,
|
|
180
|
+
'createdAt': value.createdAt,
|
|
181
|
+
'updatedAt': value.updatedAt,
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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 ProjectMetrics
|
|
20
|
+
*/
|
|
21
|
+
export interface ProjectMetrics {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof ProjectMetrics
|
|
26
|
+
*/
|
|
27
|
+
projectId: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {{ [key: string]: any; }}
|
|
31
|
+
* @memberof ProjectMetrics
|
|
32
|
+
*/
|
|
33
|
+
costs: { [key: string]: any; };
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {{ [key: string]: any; }}
|
|
37
|
+
* @memberof ProjectMetrics
|
|
38
|
+
*/
|
|
39
|
+
storageMetrics: { [key: string]: any; };
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the ProjectMetrics interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfProjectMetrics(value: object): boolean {
|
|
46
|
+
let isInstance = true;
|
|
47
|
+
isInstance = isInstance && "projectId" in value;
|
|
48
|
+
isInstance = isInstance && "costs" in value;
|
|
49
|
+
isInstance = isInstance && "storageMetrics" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function ProjectMetricsFromJSON(json: any): ProjectMetrics {
|
|
55
|
+
return ProjectMetricsFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function ProjectMetricsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectMetrics {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'projectId': json['projectId'],
|
|
65
|
+
'costs': json['costs'],
|
|
66
|
+
'storageMetrics': json['storageMetrics'],
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function ProjectMetricsToJSON(value?: ProjectMetrics | null): any {
|
|
71
|
+
if (value === undefined) {
|
|
72
|
+
return undefined;
|
|
73
|
+
}
|
|
74
|
+
if (value === null) {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'projectId': value.projectId,
|
|
80
|
+
'costs': value.costs,
|
|
81
|
+
'storageMetrics': value.storageMetrics,
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|