@cirrobio/api-client 0.1.22 → 0.1.24

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 (36) 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 +13 -3
  8. package/dist/apis/ProjectsApi.js +58 -6
  9. package/dist/apis/index.d.ts +2 -0
  10. package/dist/apis/index.js +2 -0
  11. package/dist/models/ClassificationInput.d.ts +37 -0
  12. package/dist/models/ClassificationInput.js +53 -0
  13. package/dist/models/GovernanceClassification.d.ts +61 -0
  14. package/dist/models/GovernanceClassification.js +65 -0
  15. package/dist/models/ProjectDetail.d.ts +6 -0
  16. package/dist/models/ProjectDetail.js +3 -0
  17. package/dist/models/ProjectInput.d.ts +77 -0
  18. package/dist/models/ProjectInput.js +73 -0
  19. package/dist/models/ProjectRequest.d.ts +8 -18
  20. package/dist/models/ProjectRequest.js +12 -18
  21. package/dist/models/Status.d.ts +2 -1
  22. package/dist/models/Status.js +1 -0
  23. package/dist/models/index.d.ts +3 -0
  24. package/dist/models/index.js +3 -0
  25. package/package.json +1 -1
  26. package/src/apis/GovernanceApi.ts +255 -0
  27. package/src/apis/ProjectRequestsApi.ts +80 -0
  28. package/src/apis/ProjectsApi.ts +50 -11
  29. package/src/apis/index.ts +2 -0
  30. package/src/models/ClassificationInput.ts +75 -0
  31. package/src/models/GovernanceClassification.ts +111 -0
  32. package/src/models/ProjectDetail.ts +9 -0
  33. package/src/models/ProjectInput.ts +151 -0
  34. package/src/models/ProjectRequest.ts +20 -52
  35. package/src/models/Status.ts +2 -1
  36. package/src/models/index.ts +3 -0
@@ -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 ClassificationInput
20
+ */
21
+ export interface ClassificationInput {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof ClassificationInput
26
+ */
27
+ name: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof ClassificationInput
32
+ */
33
+ description: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the ClassificationInput interface.
38
+ */
39
+ export function instanceOfClassificationInput(value: object): boolean {
40
+ let isInstance = true;
41
+ isInstance = isInstance && "name" in value;
42
+ isInstance = isInstance && "description" in value;
43
+
44
+ return isInstance;
45
+ }
46
+
47
+ export function ClassificationInputFromJSON(json: any): ClassificationInput {
48
+ return ClassificationInputFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function ClassificationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ClassificationInput {
52
+ if ((json === undefined) || (json === null)) {
53
+ return json;
54
+ }
55
+ return {
56
+
57
+ 'name': json['name'],
58
+ 'description': json['description'],
59
+ };
60
+ }
61
+
62
+ export function ClassificationInputToJSON(value?: ClassificationInput | null): any {
63
+ if (value === undefined) {
64
+ return undefined;
65
+ }
66
+ if (value === null) {
67
+ return null;
68
+ }
69
+ return {
70
+
71
+ 'name': value.name,
72
+ 'description': value.description,
73
+ };
74
+ }
75
+
@@ -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
+
@@ -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
 
@@ -26,7 +26,8 @@ export enum Status {
26
26
  Deleting = 'DELETING',
27
27
  Suspended = 'SUSPENDED',
28
28
  Delete = 'DELETE',
29
- Failed = 'FAILED'
29
+ Failed = 'FAILED',
30
+ Unknown = 'UNKNOWN'
30
31
  }
31
32
 
32
33
 
@@ -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';