@cirrobio/api-client 0.1.23 → 0.1.25

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 (41) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +1 -1
  3. package/dist/apis/GovernanceApi.d.ts +81 -0
  4. package/dist/apis/GovernanceApi.js +357 -0
  5. package/dist/apis/ProjectRequestsApi.d.ts +31 -0
  6. package/dist/apis/ProjectRequestsApi.js +137 -0
  7. package/dist/apis/ProjectsApi.d.ts +3 -3
  8. package/dist/apis/ProjectsApi.js +6 -6
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +2 -0
  11. package/dist/models/Agent.d.ts +5 -3
  12. package/dist/models/ClassificationInput.d.ts +37 -0
  13. package/dist/models/ClassificationInput.js +53 -0
  14. package/dist/models/ComputeEnvironmentConfiguration.d.ts +6 -4
  15. package/dist/models/GovernanceClassification.d.ts +61 -0
  16. package/dist/models/GovernanceClassification.js +65 -0
  17. package/dist/models/Project.d.ts +12 -0
  18. package/dist/models/Project.js +6 -0
  19. package/dist/models/ProjectDetail.d.ts +6 -0
  20. package/dist/models/ProjectDetail.js +3 -0
  21. package/dist/models/ProjectInput.d.ts +77 -0
  22. package/dist/models/ProjectInput.js +73 -0
  23. package/dist/models/ProjectRequest.d.ts +8 -18
  24. package/dist/models/ProjectRequest.js +12 -18
  25. package/dist/models/index.d.ts +3 -0
  26. package/dist/models/index.js +3 -0
  27. package/package.json +1 -1
  28. package/src/apis/GovernanceApi.ts +255 -0
  29. package/src/apis/ProjectRequestsApi.ts +80 -0
  30. package/src/apis/ProjectsApi.ts +11 -11
  31. package/src/apis/index.ts +2 -0
  32. package/src/models/Agent.ts +3 -3
  33. package/src/models/ClassificationInput.ts +75 -0
  34. package/src/models/ComputeEnvironmentConfiguration.ts +10 -10
  35. package/src/models/GovernanceClassification.ts +111 -0
  36. package/src/models/Project.ts +18 -0
  37. package/src/models/ProjectDetail.ts +9 -0
  38. package/src/models/ProjectInput.ts +151 -0
  39. package/src/models/ProjectRequest.ts +20 -52
  40. package/src/models/RunAnalysisRequest.ts +3 -3
  41. package/src/models/index.ts +3 -0
@@ -27,7 +27,7 @@ import {
27
27
  } from './EnvironmentType';
28
28
 
29
29
  /**
30
- *
30
+ *
31
31
  * @export
32
32
  * @interface ComputeEnvironmentConfiguration
33
33
  */
@@ -45,19 +45,19 @@ export interface ComputeEnvironmentConfiguration {
45
45
  */
46
46
  name?: string;
47
47
  /**
48
- *
49
- * @type {any}
48
+ * Configuration properties passed to the environment
49
+ * @type {{ [key: string]: string; }}
50
50
  * @memberof ComputeEnvironmentConfiguration
51
51
  */
52
- properties?: any;
52
+ properties?: { [key: string]: string; };
53
53
  /**
54
- *
54
+ *
55
55
  * @type {EnvironmentType}
56
56
  * @memberof ComputeEnvironmentConfiguration
57
57
  */
58
58
  environmentType: EnvironmentType;
59
59
  /**
60
- * The agent associated with this environment (if applicable)
60
+ *
61
61
  * @type {Agent}
62
62
  * @memberof ComputeEnvironmentConfiguration
63
63
  */
@@ -69,13 +69,13 @@ export interface ComputeEnvironmentConfiguration {
69
69
  */
70
70
  createdBy?: string;
71
71
  /**
72
- *
72
+ *
73
73
  * @type {Date}
74
74
  * @memberof ComputeEnvironmentConfiguration
75
75
  */
76
76
  createdAt: Date;
77
77
  /**
78
- *
78
+ *
79
79
  * @type {Date}
80
80
  * @memberof ComputeEnvironmentConfiguration
81
81
  */
@@ -103,7 +103,7 @@ export function ComputeEnvironmentConfigurationFromJSONTyped(json: any, ignoreDi
103
103
  return json;
104
104
  }
105
105
  return {
106
-
106
+
107
107
  'id': !exists(json, 'id') ? undefined : json['id'],
108
108
  'name': !exists(json, 'name') ? undefined : json['name'],
109
109
  'properties': !exists(json, 'properties') ? undefined : json['properties'],
@@ -123,7 +123,7 @@ export function ComputeEnvironmentConfigurationToJSON(value?: ComputeEnvironment
123
123
  return null;
124
124
  }
125
125
  return {
126
-
126
+
127
127
  'id': value.id,
128
128
  'name': value.name,
129
129
  'properties': value.properties,
@@ -0,0 +1,111 @@
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 GovernanceClassification
20
+ */
21
+ export interface GovernanceClassification {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof GovernanceClassification
26
+ */
27
+ id: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof GovernanceClassification
32
+ */
33
+ name: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof GovernanceClassification
38
+ */
39
+ description: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof GovernanceClassification
44
+ */
45
+ createdBy: string;
46
+ /**
47
+ *
48
+ * @type {Date}
49
+ * @memberof GovernanceClassification
50
+ */
51
+ createdAt: Date;
52
+ /**
53
+ *
54
+ * @type {Date}
55
+ * @memberof GovernanceClassification
56
+ */
57
+ updatedAt: Date;
58
+ }
59
+
60
+ /**
61
+ * Check if a given object implements the GovernanceClassification interface.
62
+ */
63
+ export function instanceOfGovernanceClassification(value: object): boolean {
64
+ let isInstance = true;
65
+ isInstance = isInstance && "id" in value;
66
+ isInstance = isInstance && "name" in value;
67
+ isInstance = isInstance && "description" in value;
68
+ isInstance = isInstance && "createdBy" in value;
69
+ isInstance = isInstance && "createdAt" in value;
70
+ isInstance = isInstance && "updatedAt" in value;
71
+
72
+ return isInstance;
73
+ }
74
+
75
+ export function GovernanceClassificationFromJSON(json: any): GovernanceClassification {
76
+ return GovernanceClassificationFromJSONTyped(json, false);
77
+ }
78
+
79
+ export function GovernanceClassificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceClassification {
80
+ if ((json === undefined) || (json === null)) {
81
+ return json;
82
+ }
83
+ return {
84
+
85
+ 'id': json['id'],
86
+ 'name': json['name'],
87
+ 'description': json['description'],
88
+ 'createdBy': json['createdBy'],
89
+ 'createdAt': (new Date(json['createdAt'])),
90
+ 'updatedAt': (new Date(json['updatedAt'])),
91
+ };
92
+ }
93
+
94
+ export function GovernanceClassificationToJSON(value?: GovernanceClassification | null): any {
95
+ if (value === undefined) {
96
+ return undefined;
97
+ }
98
+ if (value === null) {
99
+ return null;
100
+ }
101
+ return {
102
+
103
+ 'id': value.id,
104
+ 'name': value.name,
105
+ 'description': value.description,
106
+ 'createdBy': value.createdBy,
107
+ 'createdAt': (value.createdAt.toISOString()),
108
+ 'updatedAt': (value.updatedAt.toISOString()),
109
+ };
110
+ }
111
+
@@ -62,6 +62,18 @@ export interface Project {
62
62
  * @memberof Project
63
63
  */
64
64
  tags: Array<Tag>;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof Project
69
+ */
70
+ organization: string;
71
+ /**
72
+ *
73
+ * @type {Array<string>}
74
+ * @memberof Project
75
+ */
76
+ classificationIds: Array<string>;
65
77
  /**
66
78
  *
67
79
  * @type {string}
@@ -80,6 +92,8 @@ export function instanceOfProject(value: object): boolean {
80
92
  isInstance = isInstance && "description" in value;
81
93
  isInstance = isInstance && "status" in value;
82
94
  isInstance = isInstance && "tags" in value;
95
+ isInstance = isInstance && "organization" in value;
96
+ isInstance = isInstance && "classificationIds" in value;
83
97
  isInstance = isInstance && "billingAccountId" in value;
84
98
 
85
99
  return isInstance;
@@ -100,6 +114,8 @@ export function ProjectFromJSONTyped(json: any, ignoreDiscriminator: boolean): P
100
114
  'description': json['description'],
101
115
  'status': StatusFromJSON(json['status']),
102
116
  'tags': ((json['tags'] as Array<any>).map(TagFromJSON)),
117
+ 'organization': json['organization'],
118
+ 'classificationIds': json['classificationIds'],
103
119
  'billingAccountId': json['billingAccountId'],
104
120
  };
105
121
  }
@@ -118,6 +134,8 @@ export function ProjectToJSON(value?: Project | null): any {
118
134
  'description': value.description,
119
135
  'status': StatusToJSON(value.status),
120
136
  'tags': ((value.tags as Array<any>).map(TagToJSON)),
137
+ 'organization': value.organization,
138
+ 'classificationIds': value.classificationIds,
121
139
  'billingAccountId': value.billingAccountId,
122
140
  };
123
141
  }
@@ -110,6 +110,12 @@ export interface ProjectDetail {
110
110
  * @memberof ProjectDetail
111
111
  */
112
112
  tags: Array<Tag>;
113
+ /**
114
+ *
115
+ * @type {Array<string>}
116
+ * @memberof ProjectDetail
117
+ */
118
+ classificationIds: Array<string>;
113
119
  /**
114
120
  *
115
121
  * @type {string}
@@ -144,6 +150,7 @@ export function instanceOfProjectDetail(value: object): boolean {
144
150
  isInstance = isInstance && "settings" in value;
145
151
  isInstance = isInstance && "statusMessage" in value;
146
152
  isInstance = isInstance && "tags" in value;
153
+ isInstance = isInstance && "classificationIds" in value;
147
154
  isInstance = isInstance && "createdBy" in value;
148
155
  isInstance = isInstance && "createdAt" in value;
149
156
  isInstance = isInstance && "updatedAt" in value;
@@ -171,6 +178,7 @@ export function ProjectDetailFromJSONTyped(json: any, ignoreDiscriminator: boole
171
178
  'account': !exists(json, 'account') ? undefined : CloudAccountFromJSON(json['account']),
172
179
  'statusMessage': json['statusMessage'],
173
180
  'tags': ((json['tags'] as Array<any>).map(TagFromJSON)),
181
+ 'classificationIds': json['classificationIds'],
174
182
  'createdBy': json['createdBy'],
175
183
  'createdAt': (new Date(json['createdAt'])),
176
184
  'updatedAt': (new Date(json['updatedAt'])),
@@ -196,6 +204,7 @@ export function ProjectDetailToJSON(value?: ProjectDetail | null): any {
196
204
  'account': CloudAccountToJSON(value.account),
197
205
  'statusMessage': value.statusMessage,
198
206
  'tags': ((value.tags as Array<any>).map(TagToJSON)),
207
+ 'classificationIds': value.classificationIds,
199
208
  'createdBy': value.createdBy,
200
209
  'createdAt': (value.createdAt.toISOString()),
201
210
  'updatedAt': (value.updatedAt.toISOString()),
@@ -0,0 +1,151 @@
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 { CloudAccount } from './CloudAccount';
17
+ import {
18
+ CloudAccountFromJSON,
19
+ CloudAccountFromJSONTyped,
20
+ CloudAccountToJSON,
21
+ } from './CloudAccount';
22
+ import type { Contact } from './Contact';
23
+ import {
24
+ ContactFromJSON,
25
+ ContactFromJSONTyped,
26
+ ContactToJSON,
27
+ } from './Contact';
28
+ import type { ProjectSettings } from './ProjectSettings';
29
+ import {
30
+ ProjectSettingsFromJSON,
31
+ ProjectSettingsFromJSONTyped,
32
+ ProjectSettingsToJSON,
33
+ } from './ProjectSettings';
34
+ import type { Tag } from './Tag';
35
+ import {
36
+ TagFromJSON,
37
+ TagFromJSONTyped,
38
+ TagToJSON,
39
+ } from './Tag';
40
+
41
+ /**
42
+ *
43
+ * @export
44
+ * @interface ProjectInput
45
+ */
46
+ export interface ProjectInput {
47
+ /**
48
+ *
49
+ * @type {string}
50
+ * @memberof ProjectInput
51
+ */
52
+ name: string;
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof ProjectInput
57
+ */
58
+ description: string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof ProjectInput
63
+ */
64
+ billingAccountId: string;
65
+ /**
66
+ *
67
+ * @type {ProjectSettings}
68
+ * @memberof ProjectInput
69
+ */
70
+ settings: ProjectSettings;
71
+ /**
72
+ *
73
+ * @type {Array<Contact>}
74
+ * @memberof ProjectInput
75
+ */
76
+ contacts: Array<Contact>;
77
+ /**
78
+ *
79
+ * @type {CloudAccount}
80
+ * @memberof ProjectInput
81
+ */
82
+ account?: CloudAccount | null;
83
+ /**
84
+ *
85
+ * @type {Array<string>}
86
+ * @memberof ProjectInput
87
+ */
88
+ classificationIds?: Array<string> | null;
89
+ /**
90
+ *
91
+ * @type {Array<Tag>}
92
+ * @memberof ProjectInput
93
+ */
94
+ tags?: Array<Tag> | null;
95
+ }
96
+
97
+ /**
98
+ * Check if a given object implements the ProjectInput interface.
99
+ */
100
+ export function instanceOfProjectInput(value: object): boolean {
101
+ let isInstance = true;
102
+ isInstance = isInstance && "name" in value;
103
+ isInstance = isInstance && "description" in value;
104
+ isInstance = isInstance && "billingAccountId" in value;
105
+ isInstance = isInstance && "settings" in value;
106
+ isInstance = isInstance && "contacts" in value;
107
+
108
+ return isInstance;
109
+ }
110
+
111
+ export function ProjectInputFromJSON(json: any): ProjectInput {
112
+ return ProjectInputFromJSONTyped(json, false);
113
+ }
114
+
115
+ export function ProjectInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectInput {
116
+ if ((json === undefined) || (json === null)) {
117
+ return json;
118
+ }
119
+ return {
120
+
121
+ 'name': json['name'],
122
+ 'description': json['description'],
123
+ 'billingAccountId': json['billingAccountId'],
124
+ 'settings': ProjectSettingsFromJSON(json['settings']),
125
+ 'contacts': ((json['contacts'] as Array<any>).map(ContactFromJSON)),
126
+ 'account': !exists(json, 'account') ? undefined : CloudAccountFromJSON(json['account']),
127
+ 'classificationIds': !exists(json, 'classificationIds') ? undefined : json['classificationIds'],
128
+ 'tags': !exists(json, 'tags') ? undefined : (json['tags'] === null ? null : (json['tags'] as Array<any>).map(TagFromJSON)),
129
+ };
130
+ }
131
+
132
+ export function ProjectInputToJSON(value?: ProjectInput | null): any {
133
+ if (value === undefined) {
134
+ return undefined;
135
+ }
136
+ if (value === null) {
137
+ return null;
138
+ }
139
+ return {
140
+
141
+ 'name': value.name,
142
+ 'description': value.description,
143
+ 'billingAccountId': value.billingAccountId,
144
+ 'settings': ProjectSettingsToJSON(value.settings),
145
+ 'contacts': ((value.contacts as Array<any>).map(ContactToJSON)),
146
+ 'account': CloudAccountToJSON(value.account),
147
+ 'classificationIds': value.classificationIds,
148
+ 'tags': value.tags === undefined ? undefined : (value.tags === null ? null : (value.tags as Array<any>).map(TagToJSON)),
149
+ };
150
+ }
151
+
@@ -13,31 +13,6 @@
13
13
  */
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
- import type { CloudAccount } from './CloudAccount';
17
- import {
18
- CloudAccountFromJSON,
19
- CloudAccountFromJSONTyped,
20
- CloudAccountToJSON,
21
- } from './CloudAccount';
22
- import type { Contact } from './Contact';
23
- import {
24
- ContactFromJSON,
25
- ContactFromJSONTyped,
26
- ContactToJSON,
27
- } from './Contact';
28
- import type { ProjectSettings } from './ProjectSettings';
29
- import {
30
- ProjectSettingsFromJSON,
31
- ProjectSettingsFromJSONTyped,
32
- ProjectSettingsToJSON,
33
- } from './ProjectSettings';
34
- import type { Tag } from './Tag';
35
- import {
36
- TagFromJSON,
37
- TagFromJSONTyped,
38
- TagToJSON,
39
- } from './Tag';
40
-
41
16
  /**
42
17
  *
43
18
  * @export
@@ -58,34 +33,28 @@ export interface ProjectRequest {
58
33
  description: string;
59
34
  /**
60
35
  *
61
- * @type {string}
36
+ * @type {Array<string>}
62
37
  * @memberof ProjectRequest
63
38
  */
64
- billingAccountId: string;
39
+ classificationIds: Array<string>;
65
40
  /**
66
41
  *
67
- * @type {ProjectSettings}
68
- * @memberof ProjectRequest
69
- */
70
- settings: ProjectSettings;
71
- /**
72
- *
73
- * @type {Array<Contact>}
42
+ * @type {string}
74
43
  * @memberof ProjectRequest
75
44
  */
76
- contacts: Array<Contact>;
45
+ billingInfo: string;
77
46
  /**
78
47
  *
79
- * @type {CloudAccount}
48
+ * @type {string}
80
49
  * @memberof ProjectRequest
81
50
  */
82
- account?: CloudAccount | null;
51
+ adminUsername: string;
83
52
  /**
84
53
  *
85
- * @type {Array<Tag>}
54
+ * @type {string}
86
55
  * @memberof ProjectRequest
87
56
  */
88
- tags?: Array<Tag> | null;
57
+ message: string;
89
58
  }
90
59
 
91
60
  /**
@@ -95,9 +64,10 @@ export function instanceOfProjectRequest(value: object): boolean {
95
64
  let isInstance = true;
96
65
  isInstance = isInstance && "name" in value;
97
66
  isInstance = isInstance && "description" in value;
98
- isInstance = isInstance && "billingAccountId" in value;
99
- isInstance = isInstance && "settings" in value;
100
- isInstance = isInstance && "contacts" in value;
67
+ isInstance = isInstance && "classificationIds" in value;
68
+ isInstance = isInstance && "billingInfo" in value;
69
+ isInstance = isInstance && "adminUsername" in value;
70
+ isInstance = isInstance && "message" in value;
101
71
 
102
72
  return isInstance;
103
73
  }
@@ -114,11 +84,10 @@ export function ProjectRequestFromJSONTyped(json: any, ignoreDiscriminator: bool
114
84
 
115
85
  'name': json['name'],
116
86
  'description': json['description'],
117
- 'billingAccountId': json['billingAccountId'],
118
- 'settings': ProjectSettingsFromJSON(json['settings']),
119
- 'contacts': ((json['contacts'] as Array<any>).map(ContactFromJSON)),
120
- 'account': !exists(json, 'account') ? undefined : CloudAccountFromJSON(json['account']),
121
- 'tags': !exists(json, 'tags') ? undefined : (json['tags'] === null ? null : (json['tags'] as Array<any>).map(TagFromJSON)),
87
+ 'classificationIds': json['classificationIds'],
88
+ 'billingInfo': json['billingInfo'],
89
+ 'adminUsername': json['adminUsername'],
90
+ 'message': json['message'],
122
91
  };
123
92
  }
124
93
 
@@ -133,11 +102,10 @@ export function ProjectRequestToJSON(value?: ProjectRequest | null): any {
133
102
 
134
103
  'name': value.name,
135
104
  'description': value.description,
136
- 'billingAccountId': value.billingAccountId,
137
- 'settings': ProjectSettingsToJSON(value.settings),
138
- 'contacts': ((value.contacts as Array<any>).map(ContactToJSON)),
139
- 'account': CloudAccountToJSON(value.account),
140
- 'tags': value.tags === undefined ? undefined : (value.tags === null ? null : (value.tags as Array<any>).map(TagToJSON)),
105
+ 'classificationIds': value.classificationIds,
106
+ 'billingInfo': value.billingInfo,
107
+ 'adminUsername': value.adminUsername,
108
+ 'message': value.message,
141
109
  };
142
110
  }
143
111
 
@@ -14,7 +14,7 @@
14
14
 
15
15
  import { exists, mapValues } from '../runtime';
16
16
  /**
17
- *
17
+ *
18
18
  * @export
19
19
  * @interface RunAnalysisRequest
20
20
  */
@@ -92,7 +92,7 @@ export function RunAnalysisRequestFromJSONTyped(json: any, ignoreDiscriminator:
92
92
  return json;
93
93
  }
94
94
  return {
95
-
95
+
96
96
  'name': json['name'],
97
97
  'description': !exists(json, 'description') ? undefined : json['description'],
98
98
  'processId': json['processId'],
@@ -112,7 +112,7 @@ export function RunAnalysisRequestToJSON(value?: RunAnalysisRequest | null): any
112
112
  return null;
113
113
  }
114
114
  return {
115
-
115
+
116
116
  'name': value.name,
117
117
  'description': value.description,
118
118
  'processId': value.processId,
@@ -12,6 +12,7 @@ export * from './BillingAccount';
12
12
  export * from './BillingAccountRequest';
13
13
  export * from './BillingMethod';
14
14
  export * from './BudgetPeriod';
15
+ export * from './ClassificationInput';
15
16
  export * from './CloudAccount';
16
17
  export * from './CloudAccountType';
17
18
  export * from './ColumnDefinition';
@@ -41,6 +42,7 @@ export * from './FileRequirements';
41
42
  export * from './FormSchema';
42
43
  export * from './GenerateSftpCredentialsRequest';
43
44
  export * from './GetExecutionLogsResponse';
45
+ export * from './GovernanceClassification';
44
46
  export * from './ImportDataRequest';
45
47
  export * from './InviteUserRequest';
46
48
  export * from './InviteUserResponse';
@@ -61,6 +63,7 @@ export * from './Project';
61
63
  export * from './ProjectAccessRequest';
62
64
  export * from './ProjectCreateOptions';
63
65
  export * from './ProjectDetail';
66
+ export * from './ProjectInput';
64
67
  export * from './ProjectMetrics';
65
68
  export * from './ProjectRequest';
66
69
  export * from './ProjectRole';