@cirrobio/api-client 0.2.0 → 0.2.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 (65) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/README.md +1 -1
  3. package/dist/apis/FileApi.d.ts +14 -0
  4. package/dist/apis/FileApi.js +60 -0
  5. package/dist/apis/GovernanceApi.d.ts +127 -1
  6. package/dist/apis/GovernanceApi.js +555 -1
  7. package/dist/apis/SharingApi.d.ts +5 -3
  8. package/dist/apis/SharingApi.js +7 -1
  9. package/dist/models/AccessType.d.ts +3 -1
  10. package/dist/models/AccessType.js +2 -0
  11. package/dist/models/ClassificationInput.d.ts +6 -0
  12. package/dist/models/ClassificationInput.js +3 -0
  13. package/dist/models/ContactInput.d.ts +55 -0
  14. package/dist/models/ContactInput.js +62 -0
  15. package/dist/models/GovernanceClassification.d.ts +6 -0
  16. package/dist/models/GovernanceClassification.js +3 -0
  17. package/dist/models/GovernanceContact.d.ts +61 -0
  18. package/dist/models/GovernanceContact.js +65 -0
  19. package/dist/models/GovernanceExpiry.d.ts +44 -0
  20. package/dist/models/GovernanceExpiry.js +55 -0
  21. package/dist/models/GovernanceExpiryType.d.ts +25 -0
  22. package/dist/models/GovernanceExpiryType.js +40 -0
  23. package/dist/models/GovernanceFile.d.ts +50 -0
  24. package/dist/models/GovernanceFile.js +57 -0
  25. package/dist/models/GovernanceFileType.d.ts +23 -0
  26. package/dist/models/GovernanceFileType.js +38 -0
  27. package/dist/models/GovernanceRequirement.d.ts +108 -0
  28. package/dist/models/GovernanceRequirement.js +81 -0
  29. package/dist/models/GovernanceRequirementFile.d.ts +50 -0
  30. package/dist/models/GovernanceRequirementFile.js +57 -0
  31. package/dist/models/GovernanceScope.d.ts +23 -0
  32. package/dist/models/GovernanceScope.js +38 -0
  33. package/dist/models/GovernanceTrainingVerification.d.ts +23 -0
  34. package/dist/models/GovernanceTrainingVerification.js +38 -0
  35. package/dist/models/GovernanceType.d.ts +26 -0
  36. package/dist/models/GovernanceType.js +41 -0
  37. package/dist/models/RequirementInput.d.ts +96 -0
  38. package/dist/models/RequirementInput.js +81 -0
  39. package/dist/models/ShareDetail.d.ts +1 -1
  40. package/dist/models/ShareDetail.js +3 -3
  41. package/dist/models/index.d.ts +11 -0
  42. package/dist/models/index.js +11 -0
  43. package/dist/runtime.js +1 -1
  44. package/package.json +1 -1
  45. package/src/apis/FileApi.ts +52 -0
  46. package/src/apis/GovernanceApi.ts +457 -1
  47. package/src/apis/SharingApi.ts +16 -6
  48. package/src/models/AccessType.ts +3 -1
  49. package/src/models/ClassificationInput.ts +9 -0
  50. package/src/models/ContactInput.ts +102 -0
  51. package/src/models/GovernanceClassification.ts +9 -0
  52. package/src/models/GovernanceContact.ts +111 -0
  53. package/src/models/GovernanceExpiry.ts +88 -0
  54. package/src/models/GovernanceExpiryType.ts +39 -0
  55. package/src/models/GovernanceFile.ts +96 -0
  56. package/src/models/GovernanceFileType.ts +37 -0
  57. package/src/models/GovernanceRequirement.ts +194 -0
  58. package/src/models/GovernanceRequirementFile.ts +96 -0
  59. package/src/models/GovernanceScope.ts +37 -0
  60. package/src/models/GovernanceTrainingVerification.ts +37 -0
  61. package/src/models/GovernanceType.ts +40 -0
  62. package/src/models/RequirementInput.ts +182 -0
  63. package/src/models/ShareDetail.ts +4 -3
  64. package/src/models/index.ts +11 -0
  65. package/src/runtime.ts +1 -1
@@ -0,0 +1,96 @@
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 { GovernanceFileType } from './GovernanceFileType';
17
+ import {
18
+ GovernanceFileTypeFromJSON,
19
+ GovernanceFileTypeFromJSONTyped,
20
+ GovernanceFileTypeToJSON,
21
+ } from './GovernanceFileType';
22
+
23
+ /**
24
+ * The document uploaded for the requirement: only if agreement or document object has a matching scope and authorship
25
+ * @export
26
+ * @interface GovernanceRequirementFile
27
+ */
28
+ export interface GovernanceRequirementFile {
29
+ /**
30
+ * The title of the resource visible to users
31
+ * @type {string}
32
+ * @memberof GovernanceRequirementFile
33
+ */
34
+ name?: string;
35
+ /**
36
+ * A description of the resource visible to users
37
+ * @type {string}
38
+ * @memberof GovernanceRequirementFile
39
+ */
40
+ description?: string;
41
+ /**
42
+ * The file name without path or the full link path
43
+ * @type {string}
44
+ * @memberof GovernanceRequirementFile
45
+ */
46
+ src?: string;
47
+ /**
48
+ *
49
+ * @type {GovernanceFileType}
50
+ * @memberof GovernanceRequirementFile
51
+ */
52
+ type?: GovernanceFileType;
53
+ }
54
+
55
+ /**
56
+ * Check if a given object implements the GovernanceRequirementFile interface.
57
+ */
58
+ export function instanceOfGovernanceRequirementFile(value: object): boolean {
59
+ let isInstance = true;
60
+
61
+ return isInstance;
62
+ }
63
+
64
+ export function GovernanceRequirementFileFromJSON(json: any): GovernanceRequirementFile {
65
+ return GovernanceRequirementFileFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function GovernanceRequirementFileFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceRequirementFile {
69
+ if ((json === undefined) || (json === null)) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'name': !exists(json, 'name') ? undefined : json['name'],
75
+ 'description': !exists(json, 'description') ? undefined : json['description'],
76
+ 'src': !exists(json, 'src') ? undefined : json['src'],
77
+ 'type': !exists(json, 'type') ? undefined : GovernanceFileTypeFromJSON(json['type']),
78
+ };
79
+ }
80
+
81
+ export function GovernanceRequirementFileToJSON(value?: GovernanceRequirementFile | null): any {
82
+ if (value === undefined) {
83
+ return undefined;
84
+ }
85
+ if (value === null) {
86
+ return null;
87
+ }
88
+ return {
89
+
90
+ 'name': value.name,
91
+ 'description': value.description,
92
+ 'src': value.src,
93
+ 'type': GovernanceFileTypeToJSON(value.type),
94
+ };
95
+ }
96
+
@@ -0,0 +1,37 @@
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
+ * The levels at which governance requirements can be enforced
17
+ * @export
18
+ * @enum {string}
19
+ */
20
+ export enum GovernanceScope {
21
+ Tenant = 'TENANT',
22
+ Project = 'PROJECT'
23
+ }
24
+
25
+
26
+ export function GovernanceScopeFromJSON(json: any): GovernanceScope {
27
+ return GovernanceScopeFromJSONTyped(json, false);
28
+ }
29
+
30
+ export function GovernanceScopeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceScope {
31
+ return json as GovernanceScope;
32
+ }
33
+
34
+ export function GovernanceScopeToJSON(value?: GovernanceScope | null): any {
35
+ return value as any;
36
+ }
37
+
@@ -0,0 +1,37 @@
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
+ * The ways in which the completion of training can be verified.
17
+ * @export
18
+ * @enum {string}
19
+ */
20
+ export enum GovernanceTrainingVerification {
21
+ Self = 'SELF',
22
+ Certificate = 'CERTIFICATE'
23
+ }
24
+
25
+
26
+ export function GovernanceTrainingVerificationFromJSON(json: any): GovernanceTrainingVerification {
27
+ return GovernanceTrainingVerificationFromJSONTyped(json, false);
28
+ }
29
+
30
+ export function GovernanceTrainingVerificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceTrainingVerification {
31
+ return json as GovernanceTrainingVerification;
32
+ }
33
+
34
+ export function GovernanceTrainingVerificationToJSON(value?: GovernanceTrainingVerification | null): any {
35
+ return value as any;
36
+ }
37
+
@@ -0,0 +1,40 @@
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
+ * The types of governance requirements that can be enforced
17
+ * @export
18
+ * @enum {string}
19
+ */
20
+ export enum GovernanceType {
21
+ Document = 'DOCUMENT',
22
+ Agreement = 'AGREEMENT',
23
+ Training = 'TRAINING',
24
+ Contact = 'CONTACT',
25
+ Classification = 'CLASSIFICATION'
26
+ }
27
+
28
+
29
+ export function GovernanceTypeFromJSON(json: any): GovernanceType {
30
+ return GovernanceTypeFromJSONTyped(json, false);
31
+ }
32
+
33
+ export function GovernanceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): GovernanceType {
34
+ return json as GovernanceType;
35
+ }
36
+
37
+ export function GovernanceTypeToJSON(value?: GovernanceType | null): any {
38
+ return value as any;
39
+ }
40
+
@@ -0,0 +1,182 @@
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 { GovernanceExpiry } from './GovernanceExpiry';
17
+ import {
18
+ GovernanceExpiryFromJSON,
19
+ GovernanceExpiryFromJSONTyped,
20
+ GovernanceExpiryToJSON,
21
+ } from './GovernanceExpiry';
22
+ import type { GovernanceFile } from './GovernanceFile';
23
+ import {
24
+ GovernanceFileFromJSON,
25
+ GovernanceFileFromJSONTyped,
26
+ GovernanceFileToJSON,
27
+ } from './GovernanceFile';
28
+ import type { GovernanceScope } from './GovernanceScope';
29
+ import {
30
+ GovernanceScopeFromJSON,
31
+ GovernanceScopeFromJSONTyped,
32
+ GovernanceScopeToJSON,
33
+ } from './GovernanceScope';
34
+ import type { GovernanceTrainingVerification } from './GovernanceTrainingVerification';
35
+ import {
36
+ GovernanceTrainingVerificationFromJSON,
37
+ GovernanceTrainingVerificationFromJSONTyped,
38
+ GovernanceTrainingVerificationToJSON,
39
+ } from './GovernanceTrainingVerification';
40
+ import type { GovernanceType } from './GovernanceType';
41
+ import {
42
+ GovernanceTypeFromJSON,
43
+ GovernanceTypeFromJSONTyped,
44
+ GovernanceTypeToJSON,
45
+ } from './GovernanceType';
46
+
47
+ /**
48
+ *
49
+ * @export
50
+ * @interface RequirementInput
51
+ */
52
+ export interface RequirementInput {
53
+ /**
54
+ *
55
+ * @type {string}
56
+ * @memberof RequirementInput
57
+ */
58
+ name: string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof RequirementInput
63
+ */
64
+ description: string;
65
+ /**
66
+ *
67
+ * @type {GovernanceType}
68
+ * @memberof RequirementInput
69
+ */
70
+ type: GovernanceType;
71
+ /**
72
+ *
73
+ * @type {GovernanceScope}
74
+ * @memberof RequirementInput
75
+ */
76
+ scope: GovernanceScope;
77
+ /**
78
+ *
79
+ * @type {GovernanceScope}
80
+ * @memberof RequirementInput
81
+ */
82
+ acceptance: GovernanceScope;
83
+ /**
84
+ *
85
+ * @type {Array<string>}
86
+ * @memberof RequirementInput
87
+ */
88
+ contactIds?: Array<string> | null;
89
+ /**
90
+ *
91
+ * @type {GovernanceExpiry}
92
+ * @memberof RequirementInput
93
+ */
94
+ expiration: GovernanceExpiry;
95
+ /**
96
+ *
97
+ * @type {Array<GovernanceFile>}
98
+ * @memberof RequirementInput
99
+ */
100
+ supplementalDocs?: Array<GovernanceFile> | null;
101
+ /**
102
+ *
103
+ * @type {GovernanceFile}
104
+ * @memberof RequirementInput
105
+ */
106
+ file?: GovernanceFile | null;
107
+ /**
108
+ *
109
+ * @type {GovernanceScope}
110
+ * @memberof RequirementInput
111
+ */
112
+ authorship?: GovernanceScope | null;
113
+ /**
114
+ *
115
+ * @type {GovernanceTrainingVerification}
116
+ * @memberof RequirementInput
117
+ */
118
+ verification?: GovernanceTrainingVerification | null;
119
+ }
120
+
121
+ /**
122
+ * Check if a given object implements the RequirementInput interface.
123
+ */
124
+ export function instanceOfRequirementInput(value: object): boolean {
125
+ let isInstance = true;
126
+ isInstance = isInstance && "name" in value;
127
+ isInstance = isInstance && "description" in value;
128
+ isInstance = isInstance && "type" in value;
129
+ isInstance = isInstance && "scope" in value;
130
+ isInstance = isInstance && "acceptance" in value;
131
+ isInstance = isInstance && "expiration" in value;
132
+
133
+ return isInstance;
134
+ }
135
+
136
+ export function RequirementInputFromJSON(json: any): RequirementInput {
137
+ return RequirementInputFromJSONTyped(json, false);
138
+ }
139
+
140
+ export function RequirementInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequirementInput {
141
+ if ((json === undefined) || (json === null)) {
142
+ return json;
143
+ }
144
+ return {
145
+
146
+ 'name': json['name'],
147
+ 'description': json['description'],
148
+ 'type': GovernanceTypeFromJSON(json['type']),
149
+ 'scope': GovernanceScopeFromJSON(json['scope']),
150
+ 'acceptance': GovernanceScopeFromJSON(json['acceptance']),
151
+ 'contactIds': !exists(json, 'contactIds') ? undefined : json['contactIds'],
152
+ 'expiration': GovernanceExpiryFromJSON(json['expiration']),
153
+ 'supplementalDocs': !exists(json, 'supplementalDocs') ? undefined : (json['supplementalDocs'] === null ? null : (json['supplementalDocs'] as Array<any>).map(GovernanceFileFromJSON)),
154
+ 'file': !exists(json, 'file') ? undefined : GovernanceFileFromJSON(json['file']),
155
+ 'authorship': !exists(json, 'authorship') ? undefined : GovernanceScopeFromJSON(json['authorship']),
156
+ 'verification': !exists(json, 'verification') ? undefined : GovernanceTrainingVerificationFromJSON(json['verification']),
157
+ };
158
+ }
159
+
160
+ export function RequirementInputToJSON(value?: RequirementInput | null): any {
161
+ if (value === undefined) {
162
+ return undefined;
163
+ }
164
+ if (value === null) {
165
+ return null;
166
+ }
167
+ return {
168
+
169
+ 'name': value.name,
170
+ 'description': value.description,
171
+ 'type': GovernanceTypeToJSON(value.type),
172
+ 'scope': GovernanceScopeToJSON(value.scope),
173
+ 'acceptance': GovernanceScopeToJSON(value.acceptance),
174
+ 'contactIds': value.contactIds,
175
+ 'expiration': GovernanceExpiryToJSON(value.expiration),
176
+ 'supplementalDocs': value.supplementalDocs === undefined ? undefined : (value.supplementalDocs === null ? null : (value.supplementalDocs as Array<any>).map(GovernanceFileToJSON)),
177
+ 'file': GovernanceFileToJSON(value.file),
178
+ 'authorship': GovernanceScopeToJSON(value.authorship),
179
+ 'verification': GovernanceTrainingVerificationToJSON(value.verification),
180
+ };
181
+ }
182
+
@@ -79,7 +79,7 @@ export interface ShareDetail {
79
79
  * @type {Array<DatasetCondition>}
80
80
  * @memberof ShareDetail
81
81
  */
82
- conditions?: Array<DatasetCondition>;
82
+ conditions: Array<DatasetCondition>;
83
83
  /**
84
84
  *
85
85
  * @type {Array<string>}
@@ -129,6 +129,7 @@ export function instanceOfShareDetail(value: object): boolean {
129
129
  isInstance = isInstance && "originatingProject" in value;
130
130
  isInstance = isInstance && "shareType" in value;
131
131
  isInstance = isInstance && "sharedProjects" in value;
132
+ isInstance = isInstance && "conditions" in value;
132
133
  isInstance = isInstance && "keywords" in value;
133
134
  isInstance = isInstance && "classificationIds" in value;
134
135
  isInstance = isInstance && "isSubscribed" in value;
@@ -155,7 +156,7 @@ export function ShareDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean
155
156
  'originatingProject': NamedItemFromJSON(json['originatingProject']),
156
157
  'shareType': ShareTypeFromJSON(json['shareType']),
157
158
  'sharedProjects': ((json['sharedProjects'] as Array<any>).map(NamedItemFromJSON)),
158
- 'conditions': !exists(json, 'conditions') ? undefined : ((json['conditions'] as Array<any>).map(DatasetConditionFromJSON)),
159
+ 'conditions': ((json['conditions'] as Array<any>).map(DatasetConditionFromJSON)),
159
160
  'keywords': json['keywords'],
160
161
  'classificationIds': json['classificationIds'],
161
162
  'isSubscribed': json['isSubscribed'],
@@ -180,7 +181,7 @@ export function ShareDetailToJSON(value?: ShareDetail | null): any {
180
181
  'originatingProject': NamedItemToJSON(value.originatingProject),
181
182
  'shareType': ShareTypeToJSON(value.shareType),
182
183
  'sharedProjects': ((value.sharedProjects as Array<any>).map(NamedItemToJSON)),
183
- 'conditions': value.conditions === undefined ? undefined : ((value.conditions as Array<any>).map(DatasetConditionToJSON)),
184
+ 'conditions': ((value.conditions as Array<any>).map(DatasetConditionToJSON)),
184
185
  'keywords': value.keywords,
185
186
  'classificationIds': value.classificationIds,
186
187
  'isSubscribed': value.isSubscribed,
@@ -22,6 +22,7 @@ export * from './ColumnDefinition';
22
22
  export * from './ComputeEnvironmentConfiguration';
23
23
  export * from './ComputeEnvironmentConfigurationInput';
24
24
  export * from './Contact';
25
+ export * from './ContactInput';
25
26
  export * from './CreateNotebookInstanceRequest';
26
27
  export * from './CreateProjectAccessRequest';
27
28
  export * from './CreateReferenceRequest';
@@ -49,6 +50,15 @@ export * from './FormSchema';
49
50
  export * from './GenerateSftpCredentialsRequest';
50
51
  export * from './GetExecutionLogsResponse';
51
52
  export * from './GovernanceClassification';
53
+ export * from './GovernanceContact';
54
+ export * from './GovernanceExpiry';
55
+ export * from './GovernanceExpiryType';
56
+ export * from './GovernanceFile';
57
+ export * from './GovernanceFileType';
58
+ export * from './GovernanceRequirement';
59
+ export * from './GovernanceScope';
60
+ export * from './GovernanceTrainingVerification';
61
+ export * from './GovernanceType';
52
62
  export * from './ImportDataRequest';
53
63
  export * from './InviteUserRequest';
54
64
  export * from './InviteUserResponse';
@@ -83,6 +93,7 @@ export * from './Reference';
83
93
  export * from './ReferenceType';
84
94
  export * from './RepositoryType';
85
95
  export * from './RequestStatus';
96
+ export * from './RequirementInput';
86
97
  export * from './ResourcesInfo';
87
98
  export * from './RunAnalysisRequest';
88
99
  export * from './Sample';
package/src/runtime.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- export const BASE_PATH = "https://app.cirro.bio/api".replace(/\/+$/, "");
16
+ export const BASE_PATH = "https://dev.cirro.bio/api".replace(/\/+$/, "");
17
17
 
18
18
  export interface ConfigurationParameters {
19
19
  basePath?: string; // override base path