@cirrobio/api-client 0.1.30 → 0.2.0

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 (45) hide show
  1. package/.openapi-generator/FILES +11 -0
  2. package/README.md +1 -1
  3. package/dist/apis/SharingApi.d.ts +129 -0
  4. package/dist/apis/SharingApi.js +539 -0
  5. package/dist/apis/ToolsApi.d.ts +31 -0
  6. package/dist/apis/ToolsApi.js +137 -0
  7. package/dist/apis/index.d.ts +2 -0
  8. package/dist/apis/index.js +2 -0
  9. package/dist/models/DatasetCondition.d.ts +38 -0
  10. package/dist/models/DatasetCondition.js +54 -0
  11. package/dist/models/DatasetConditionField.d.ts +24 -0
  12. package/dist/models/DatasetConditionField.js +39 -0
  13. package/dist/models/MoveDatasetInput.d.ts +43 -0
  14. package/dist/models/MoveDatasetInput.js +56 -0
  15. package/dist/models/MoveDatasetResponse.d.ts +43 -0
  16. package/dist/models/MoveDatasetResponse.js +56 -0
  17. package/dist/models/NamedItem.d.ts +37 -0
  18. package/dist/models/NamedItem.js +53 -0
  19. package/dist/models/ProjectSettings.d.ts +6 -0
  20. package/dist/models/ProjectSettings.js +2 -0
  21. package/dist/models/Share.d.ts +86 -0
  22. package/dist/models/Share.js +78 -0
  23. package/dist/models/ShareDetail.d.ts +106 -0
  24. package/dist/models/ShareDetail.js +89 -0
  25. package/dist/models/ShareInput.d.ts +62 -0
  26. package/dist/models/ShareInput.js +65 -0
  27. package/dist/models/ShareType.d.ts +24 -0
  28. package/dist/models/ShareType.js +39 -0
  29. package/dist/models/index.d.ts +9 -0
  30. package/dist/models/index.js +9 -0
  31. package/package.json +1 -1
  32. package/src/apis/SharingApi.ts +432 -0
  33. package/src/apis/ToolsApi.ts +80 -0
  34. package/src/apis/index.ts +2 -0
  35. package/src/models/DatasetCondition.ts +82 -0
  36. package/src/models/DatasetConditionField.ts +38 -0
  37. package/src/models/MoveDatasetInput.ts +84 -0
  38. package/src/models/MoveDatasetResponse.ts +84 -0
  39. package/src/models/NamedItem.ts +75 -0
  40. package/src/models/ProjectSettings.ts +8 -0
  41. package/src/models/Share.ts +154 -0
  42. package/src/models/ShareDetail.ts +192 -0
  43. package/src/models/ShareInput.ts +116 -0
  44. package/src/models/ShareType.ts +38 -0
  45. package/src/models/index.ts +9 -0
@@ -0,0 +1,116 @@
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 { DatasetCondition } from './DatasetCondition';
17
+ import {
18
+ DatasetConditionFromJSON,
19
+ DatasetConditionFromJSONTyped,
20
+ DatasetConditionToJSON,
21
+ } from './DatasetCondition';
22
+
23
+ /**
24
+ *
25
+ * @export
26
+ * @interface ShareInput
27
+ */
28
+ export interface ShareInput {
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof ShareInput
33
+ */
34
+ name: string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof ShareInput
39
+ */
40
+ description: string;
41
+ /**
42
+ * Data classification IDs for the share
43
+ * @type {Array<string>}
44
+ * @memberof ShareInput
45
+ */
46
+ classificationIds: Array<string>;
47
+ /**
48
+ * The conditions under which the dataset is shared
49
+ * @type {Array<DatasetCondition>}
50
+ * @memberof ShareInput
51
+ */
52
+ conditions: Array<DatasetCondition>;
53
+ /**
54
+ * Search keywords for the share
55
+ * @type {Array<string>}
56
+ * @memberof ShareInput
57
+ */
58
+ keywords?: Array<string>;
59
+ /**
60
+ * The project IDs that can access this share
61
+ * @type {Array<string>}
62
+ * @memberof ShareInput
63
+ */
64
+ sharedProjectIds?: Array<string>;
65
+ }
66
+
67
+ /**
68
+ * Check if a given object implements the ShareInput interface.
69
+ */
70
+ export function instanceOfShareInput(value: object): boolean {
71
+ let isInstance = true;
72
+ isInstance = isInstance && "name" in value;
73
+ isInstance = isInstance && "description" in value;
74
+ isInstance = isInstance && "classificationIds" in value;
75
+ isInstance = isInstance && "conditions" in value;
76
+
77
+ return isInstance;
78
+ }
79
+
80
+ export function ShareInputFromJSON(json: any): ShareInput {
81
+ return ShareInputFromJSONTyped(json, false);
82
+ }
83
+
84
+ export function ShareInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareInput {
85
+ if ((json === undefined) || (json === null)) {
86
+ return json;
87
+ }
88
+ return {
89
+
90
+ 'name': json['name'],
91
+ 'description': json['description'],
92
+ 'classificationIds': json['classificationIds'],
93
+ 'conditions': ((json['conditions'] as Array<any>).map(DatasetConditionFromJSON)),
94
+ 'keywords': !exists(json, 'keywords') ? undefined : json['keywords'],
95
+ 'sharedProjectIds': !exists(json, 'sharedProjectIds') ? undefined : json['sharedProjectIds'],
96
+ };
97
+ }
98
+
99
+ export function ShareInputToJSON(value?: ShareInput | null): any {
100
+ if (value === undefined) {
101
+ return undefined;
102
+ }
103
+ if (value === null) {
104
+ return null;
105
+ }
106
+ return {
107
+
108
+ 'name': value.name,
109
+ 'description': value.description,
110
+ 'classificationIds': value.classificationIds,
111
+ 'conditions': ((value.conditions as Array<any>).map(DatasetConditionToJSON)),
112
+ 'keywords': value.keywords,
113
+ 'sharedProjectIds': value.sharedProjectIds,
114
+ };
115
+ }
116
+
@@ -0,0 +1,38 @@
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
+ *
17
+ * @export
18
+ * @enum {string}
19
+ */
20
+ export enum ShareType {
21
+ Publisher = 'PUBLISHER',
22
+ Subscriber = 'SUBSCRIBER',
23
+ Available = 'AVAILABLE'
24
+ }
25
+
26
+
27
+ export function ShareTypeFromJSON(json: any): ShareType {
28
+ return ShareTypeFromJSONTyped(json, false);
29
+ }
30
+
31
+ export function ShareTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareType {
32
+ return json as ShareType;
33
+ }
34
+
35
+ export function ShareTypeToJSON(value?: ShareType | null): any {
36
+ return value as any;
37
+ }
38
+
@@ -32,6 +32,8 @@ export * from './Dashboard';
32
32
  export * from './DashboardRequest';
33
33
  export * from './Dataset';
34
34
  export * from './DatasetAssetsManifest';
35
+ export * from './DatasetCondition';
36
+ export * from './DatasetConditionField';
35
37
  export * from './DatasetDetail';
36
38
  export * from './DatasetViz';
37
39
  export * from './EnvironmentType';
@@ -53,6 +55,9 @@ export * from './InviteUserResponse';
53
55
  export * from './LogEntry';
54
56
  export * from './LoginProvider';
55
57
  export * from './MetricRecord';
58
+ export * from './MoveDatasetInput';
59
+ export * from './MoveDatasetResponse';
60
+ export * from './NamedItem';
56
61
  export * from './NotebookInstance';
57
62
  export * from './NotebookInstanceStatusResponse';
58
63
  export * from './OpenNotebookInstanceResponse';
@@ -85,6 +90,10 @@ export * from './SampleRequest';
85
90
  export * from './ServiceConnection';
86
91
  export * from './SetUserProjectRoleRequest';
87
92
  export * from './SftpCredentials';
93
+ export * from './Share';
94
+ export * from './ShareDetail';
95
+ export * from './ShareInput';
96
+ export * from './ShareType';
88
97
  export * from './Status';
89
98
  export * from './StopExecutionResponse';
90
99
  export * from './SyncStatus';