@cirrobio/api-client 0.10.6 → 0.11.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 (74) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/ExecutionApi.d.ts +15 -1
  3. package/dist/apis/ExecutionApi.js +40 -0
  4. package/dist/apis/WorkspacesApi.d.ts +145 -0
  5. package/dist/apis/WorkspacesApi.js +398 -0
  6. package/dist/apis/index.d.ts +1 -0
  7. package/dist/apis/index.js +1 -0
  8. package/dist/esm/apis/ExecutionApi.d.ts +15 -1
  9. package/dist/esm/apis/ExecutionApi.js +41 -1
  10. package/dist/esm/apis/WorkspacesApi.d.ts +145 -0
  11. package/dist/esm/apis/WorkspacesApi.js +394 -0
  12. package/dist/esm/apis/index.d.ts +1 -0
  13. package/dist/esm/apis/index.js +1 -0
  14. package/dist/esm/models/CostResponse.d.ts +51 -0
  15. package/dist/esm/models/CostResponse.js +51 -0
  16. package/dist/esm/models/Dashboard.d.ts +2 -2
  17. package/dist/esm/models/Dashboard.js +3 -4
  18. package/dist/esm/models/DashboardRequest.d.ts +2 -2
  19. package/dist/esm/models/DashboardRequest.js +3 -4
  20. package/dist/esm/models/FeatureFlags.d.ts +6 -0
  21. package/dist/esm/models/FeatureFlags.js +3 -0
  22. package/dist/esm/models/GroupCost.d.ts +37 -0
  23. package/dist/esm/models/GroupCost.js +45 -0
  24. package/dist/esm/models/MountedDataset.d.ts +37 -0
  25. package/dist/esm/models/MountedDataset.js +46 -0
  26. package/dist/esm/models/ShareDetail.d.ts +0 -6
  27. package/dist/esm/models/ShareDetail.js +0 -3
  28. package/dist/esm/models/SharingType.d.ts +23 -0
  29. package/dist/esm/models/SharingType.js +32 -0
  30. package/dist/esm/models/TaskCost.d.ts +49 -0
  31. package/dist/esm/models/TaskCost.js +52 -0
  32. package/dist/esm/models/Workspace.d.ts +108 -0
  33. package/dist/esm/models/Workspace.js +84 -0
  34. package/dist/esm/models/WorkspaceComputeConfig.d.ts +63 -0
  35. package/dist/esm/models/WorkspaceComputeConfig.js +54 -0
  36. package/dist/esm/models/WorkspaceConnectionResponse.d.ts +43 -0
  37. package/dist/esm/models/WorkspaceConnectionResponse.js +49 -0
  38. package/dist/esm/models/WorkspaceInput.d.ts +58 -0
  39. package/dist/esm/models/WorkspaceInput.js +58 -0
  40. package/dist/esm/models/WorkspaceSession.d.ts +43 -0
  41. package/dist/esm/models/WorkspaceSession.js +49 -0
  42. package/dist/esm/models/index.d.ts +10 -0
  43. package/dist/esm/models/index.js +10 -0
  44. package/dist/models/CostResponse.d.ts +51 -0
  45. package/dist/models/CostResponse.js +58 -0
  46. package/dist/models/Dashboard.d.ts +2 -2
  47. package/dist/models/Dashboard.js +3 -4
  48. package/dist/models/DashboardRequest.d.ts +2 -2
  49. package/dist/models/DashboardRequest.js +3 -4
  50. package/dist/models/FeatureFlags.d.ts +6 -0
  51. package/dist/models/FeatureFlags.js +3 -0
  52. package/dist/models/GroupCost.d.ts +37 -0
  53. package/dist/models/GroupCost.js +52 -0
  54. package/dist/models/MountedDataset.d.ts +37 -0
  55. package/dist/models/MountedDataset.js +53 -0
  56. package/dist/models/ShareDetail.d.ts +0 -6
  57. package/dist/models/ShareDetail.js +0 -3
  58. package/dist/models/SharingType.d.ts +23 -0
  59. package/dist/models/SharingType.js +38 -0
  60. package/dist/models/TaskCost.d.ts +49 -0
  61. package/dist/models/TaskCost.js +59 -0
  62. package/dist/models/Workspace.d.ts +108 -0
  63. package/dist/models/Workspace.js +91 -0
  64. package/dist/models/WorkspaceComputeConfig.d.ts +63 -0
  65. package/dist/models/WorkspaceComputeConfig.js +61 -0
  66. package/dist/models/WorkspaceConnectionResponse.d.ts +43 -0
  67. package/dist/models/WorkspaceConnectionResponse.js +56 -0
  68. package/dist/models/WorkspaceInput.d.ts +58 -0
  69. package/dist/models/WorkspaceInput.js +65 -0
  70. package/dist/models/WorkspaceSession.d.ts +43 -0
  71. package/dist/models/WorkspaceSession.js +56 -0
  72. package/dist/models/index.d.ts +10 -0
  73. package/dist/models/index.js +10 -0
  74. package/package.json +1 -1
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CostResponseToJSON = exports.CostResponseFromJSONTyped = exports.CostResponseFromJSON = exports.instanceOfCostResponse = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const GroupCost_1 = require("./GroupCost");
19
+ const TaskCost_1 = require("./TaskCost");
20
+ /**
21
+ * Check if a given object implements the CostResponse interface.
22
+ */
23
+ function instanceOfCostResponse(value) {
24
+ let isInstance = true;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfCostResponse = instanceOfCostResponse;
28
+ function CostResponseFromJSON(json) {
29
+ return CostResponseFromJSONTyped(json, false);
30
+ }
31
+ exports.CostResponseFromJSON = CostResponseFromJSON;
32
+ function CostResponseFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'totalCost': !(0, runtime_1.exists)(json, 'totalCost') ? undefined : json['totalCost'],
38
+ 'groups': !(0, runtime_1.exists)(json, 'groups') ? undefined : (json['groups'].map(GroupCost_1.GroupCostFromJSON)),
39
+ 'tasks': !(0, runtime_1.exists)(json, 'tasks') ? undefined : (json['tasks'].map(TaskCost_1.TaskCostFromJSON)),
40
+ 'isEstimate': !(0, runtime_1.exists)(json, 'isEstimate') ? undefined : json['isEstimate'],
41
+ };
42
+ }
43
+ exports.CostResponseFromJSONTyped = CostResponseFromJSONTyped;
44
+ function CostResponseToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'totalCost': value.totalCost,
53
+ 'groups': value.groups === undefined ? undefined : (value.groups.map(GroupCost_1.GroupCostToJSON)),
54
+ 'tasks': value.tasks === undefined ? undefined : (value.tasks.map(TaskCost_1.TaskCostToJSON)),
55
+ 'isEstimate': value.isEstimate,
56
+ };
57
+ }
58
+ exports.CostResponseToJSON = CostResponseToJSON;
@@ -44,7 +44,7 @@ export interface Dashboard {
44
44
  * @type {{ [key: string]: any; }}
45
45
  * @memberof Dashboard
46
46
  */
47
- dashboardData: {
47
+ dashboardData?: {
48
48
  [key: string]: any;
49
49
  };
50
50
  /**
@@ -52,7 +52,7 @@ export interface Dashboard {
52
52
  * @type {{ [key: string]: any; }}
53
53
  * @memberof Dashboard
54
54
  */
55
- info: {
55
+ info?: {
56
56
  [key: string]: any;
57
57
  };
58
58
  /**
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DashboardToJSON = exports.DashboardFromJSONTyped = exports.DashboardFromJSON = exports.instanceOfDashboard = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  /**
18
19
  * Check if a given object implements the Dashboard interface.
19
20
  */
@@ -23,8 +24,6 @@ function instanceOfDashboard(value) {
23
24
  isInstance = isInstance && "name" in value;
24
25
  isInstance = isInstance && "description" in value;
25
26
  isInstance = isInstance && "processIds" in value;
26
- isInstance = isInstance && "dashboardData" in value;
27
- isInstance = isInstance && "info" in value;
28
27
  isInstance = isInstance && "createdBy" in value;
29
28
  isInstance = isInstance && "createdAt" in value;
30
29
  isInstance = isInstance && "updatedAt" in value;
@@ -44,8 +43,8 @@ function DashboardFromJSONTyped(json, ignoreDiscriminator) {
44
43
  'name': json['name'],
45
44
  'description': json['description'],
46
45
  'processIds': json['processIds'],
47
- 'dashboardData': json['dashboardData'],
48
- 'info': json['info'],
46
+ 'dashboardData': !(0, runtime_1.exists)(json, 'dashboardData') ? undefined : json['dashboardData'],
47
+ 'info': !(0, runtime_1.exists)(json, 'info') ? undefined : json['info'],
49
48
  'createdBy': json['createdBy'],
50
49
  'createdAt': (new Date(json['createdAt'])),
51
50
  'updatedAt': (new Date(json['updatedAt'])),
@@ -38,7 +38,7 @@ export interface DashboardRequest {
38
38
  * @type {{ [key: string]: any; }}
39
39
  * @memberof DashboardRequest
40
40
  */
41
- dashboardData: {
41
+ dashboardData?: {
42
42
  [key: string]: any;
43
43
  };
44
44
  /**
@@ -46,7 +46,7 @@ export interface DashboardRequest {
46
46
  * @type {{ [key: string]: any; }}
47
47
  * @memberof DashboardRequest
48
48
  */
49
- info: {
49
+ info?: {
50
50
  [key: string]: any;
51
51
  };
52
52
  }
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DashboardRequestToJSON = exports.DashboardRequestFromJSONTyped = exports.DashboardRequestFromJSON = exports.instanceOfDashboardRequest = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  /**
18
19
  * Check if a given object implements the DashboardRequest interface.
19
20
  */
@@ -22,8 +23,6 @@ function instanceOfDashboardRequest(value) {
22
23
  isInstance = isInstance && "name" in value;
23
24
  isInstance = isInstance && "description" in value;
24
25
  isInstance = isInstance && "processIds" in value;
25
- isInstance = isInstance && "dashboardData" in value;
26
- isInstance = isInstance && "info" in value;
27
26
  return isInstance;
28
27
  }
29
28
  exports.instanceOfDashboardRequest = instanceOfDashboardRequest;
@@ -39,8 +38,8 @@ function DashboardRequestFromJSONTyped(json, ignoreDiscriminator) {
39
38
  'name': json['name'],
40
39
  'description': json['description'],
41
40
  'processIds': json['processIds'],
42
- 'dashboardData': json['dashboardData'],
43
- 'info': json['info'],
41
+ 'dashboardData': !(0, runtime_1.exists)(json, 'dashboardData') ? undefined : json['dashboardData'],
42
+ 'info': !(0, runtime_1.exists)(json, 'info') ? undefined : json['info'],
44
43
  };
45
44
  }
46
45
  exports.DashboardRequestFromJSONTyped = DashboardRequestFromJSONTyped;
@@ -33,6 +33,12 @@ export interface FeatureFlags {
33
33
  * @memberof FeatureFlags
34
34
  */
35
35
  projectRequestsEnabled: boolean;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof FeatureFlags
40
+ */
41
+ workspacesEnabled: boolean;
36
42
  }
37
43
  /**
38
44
  * Check if a given object implements the FeatureFlags interface.
@@ -22,6 +22,7 @@ function instanceOfFeatureFlags(value) {
22
22
  isInstance = isInstance && "sftpEnabled" in value;
23
23
  isInstance = isInstance && "governanceEnabled" in value;
24
24
  isInstance = isInstance && "projectRequestsEnabled" in value;
25
+ isInstance = isInstance && "workspacesEnabled" in value;
25
26
  return isInstance;
26
27
  }
27
28
  exports.instanceOfFeatureFlags = instanceOfFeatureFlags;
@@ -37,6 +38,7 @@ function FeatureFlagsFromJSONTyped(json, ignoreDiscriminator) {
37
38
  'sftpEnabled': json['sftpEnabled'],
38
39
  'governanceEnabled': json['governanceEnabled'],
39
40
  'projectRequestsEnabled': json['projectRequestsEnabled'],
41
+ 'workspacesEnabled': json['workspacesEnabled'],
40
42
  };
41
43
  }
42
44
  exports.FeatureFlagsFromJSONTyped = FeatureFlagsFromJSONTyped;
@@ -51,6 +53,7 @@ function FeatureFlagsToJSON(value) {
51
53
  'sftpEnabled': value.sftpEnabled,
52
54
  'governanceEnabled': value.governanceEnabled,
53
55
  'projectRequestsEnabled': value.projectRequestsEnabled,
56
+ 'workspacesEnabled': value.workspacesEnabled,
54
57
  };
55
58
  }
56
59
  exports.FeatureFlagsToJSON = FeatureFlagsToJSON;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GroupCost
16
+ */
17
+ export interface GroupCost {
18
+ /**
19
+ * Task status group
20
+ * @type {string}
21
+ * @memberof GroupCost
22
+ */
23
+ name?: string;
24
+ /**
25
+ * Cost
26
+ * @type {number}
27
+ * @memberof GroupCost
28
+ */
29
+ cost?: number;
30
+ }
31
+ /**
32
+ * Check if a given object implements the GroupCost interface.
33
+ */
34
+ export declare function instanceOfGroupCost(value: object): boolean;
35
+ export declare function GroupCostFromJSON(json: any): GroupCost;
36
+ export declare function GroupCostFromJSONTyped(json: any, ignoreDiscriminator: boolean): GroupCost;
37
+ export declare function GroupCostToJSON(value?: GroupCost | null): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.GroupCostToJSON = exports.GroupCostFromJSONTyped = exports.GroupCostFromJSON = exports.instanceOfGroupCost = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the GroupCost interface.
20
+ */
21
+ function instanceOfGroupCost(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfGroupCost = instanceOfGroupCost;
26
+ function GroupCostFromJSON(json) {
27
+ return GroupCostFromJSONTyped(json, false);
28
+ }
29
+ exports.GroupCostFromJSON = GroupCostFromJSON;
30
+ function GroupCostFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
36
+ 'cost': !(0, runtime_1.exists)(json, 'cost') ? undefined : json['cost'],
37
+ };
38
+ }
39
+ exports.GroupCostFromJSONTyped = GroupCostFromJSONTyped;
40
+ function GroupCostToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'name': value.name,
49
+ 'cost': value.cost,
50
+ };
51
+ }
52
+ exports.GroupCostToJSON = GroupCostToJSON;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Represents a mounted dataset in a workspace
14
+ * @export
15
+ * @interface MountedDataset
16
+ */
17
+ export interface MountedDataset {
18
+ /**
19
+ * Folder name that appears in the workspace
20
+ * @type {string}
21
+ * @memberof MountedDataset
22
+ */
23
+ name: string;
24
+ /**
25
+ * Full S3 prefix to the data
26
+ * @type {string}
27
+ * @memberof MountedDataset
28
+ */
29
+ uri: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MountedDataset interface.
33
+ */
34
+ export declare function instanceOfMountedDataset(value: object): boolean;
35
+ export declare function MountedDatasetFromJSON(json: any): MountedDataset;
36
+ export declare function MountedDatasetFromJSONTyped(json: any, ignoreDiscriminator: boolean): MountedDataset;
37
+ export declare function MountedDatasetToJSON(value?: MountedDataset | null): any;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.MountedDatasetToJSON = exports.MountedDatasetFromJSONTyped = exports.MountedDatasetFromJSON = exports.instanceOfMountedDataset = void 0;
17
+ /**
18
+ * Check if a given object implements the MountedDataset interface.
19
+ */
20
+ function instanceOfMountedDataset(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "uri" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfMountedDataset = instanceOfMountedDataset;
27
+ function MountedDatasetFromJSON(json) {
28
+ return MountedDatasetFromJSONTyped(json, false);
29
+ }
30
+ exports.MountedDatasetFromJSON = MountedDatasetFromJSON;
31
+ function MountedDatasetFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'name': json['name'],
37
+ 'uri': json['uri'],
38
+ };
39
+ }
40
+ exports.MountedDatasetFromJSONTyped = MountedDatasetFromJSONTyped;
41
+ function MountedDatasetToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'name': value.name,
50
+ 'uri': value.uri,
51
+ };
52
+ }
53
+ exports.MountedDatasetToJSON = MountedDatasetToJSON;
@@ -72,12 +72,6 @@ export interface ShareDetail {
72
72
  * @memberof ShareDetail
73
73
  */
74
74
  classificationIds: Array<string>;
75
- /**
76
- *
77
- * @type {boolean}
78
- * @memberof ShareDetail
79
- */
80
- isSubscribed: boolean;
81
75
  /**
82
76
  *
83
77
  * @type {boolean}
@@ -31,7 +31,6 @@ function instanceOfShareDetail(value) {
31
31
  isInstance = isInstance && "conditions" in value;
32
32
  isInstance = isInstance && "keywords" in value;
33
33
  isInstance = isInstance && "classificationIds" in value;
34
- isInstance = isInstance && "isSubscribed" in value;
35
34
  isInstance = isInstance && "isViewRestricted" in value;
36
35
  isInstance = isInstance && "createdBy" in value;
37
36
  isInstance = isInstance && "createdAt" in value;
@@ -57,7 +56,6 @@ function ShareDetailFromJSONTyped(json, ignoreDiscriminator) {
57
56
  'conditions': (json['conditions'].map(DatasetCondition_1.DatasetConditionFromJSON)),
58
57
  'keywords': json['keywords'],
59
58
  'classificationIds': json['classificationIds'],
60
- 'isSubscribed': json['isSubscribed'],
61
59
  'isViewRestricted': json['isViewRestricted'],
62
60
  'createdBy': json['createdBy'],
63
61
  'createdAt': (new Date(json['createdAt'])),
@@ -82,7 +80,6 @@ function ShareDetailToJSON(value) {
82
80
  'conditions': (value.conditions.map(DatasetCondition_1.DatasetConditionToJSON)),
83
81
  'keywords': value.keywords,
84
82
  'classificationIds': value.classificationIds,
85
- 'isSubscribed': value.isSubscribed,
86
83
  'isViewRestricted': value.isViewRestricted,
87
84
  'createdBy': value.createdBy,
88
85
  'createdAt': (value.createdAt.toISOString()),
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @enum {string}
16
+ */
17
+ export declare enum SharingType {
18
+ Private = "PRIVATE",
19
+ ReadWrite = "READ_WRITE"
20
+ }
21
+ export declare function SharingTypeFromJSON(json: any): SharingType;
22
+ export declare function SharingTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharingType;
23
+ export declare function SharingTypeToJSON(value?: SharingType | null): any;
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.SharingTypeToJSON = exports.SharingTypeFromJSONTyped = exports.SharingTypeFromJSON = exports.SharingType = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var SharingType;
23
+ (function (SharingType) {
24
+ SharingType["Private"] = "PRIVATE";
25
+ SharingType["ReadWrite"] = "READ_WRITE";
26
+ })(SharingType = exports.SharingType || (exports.SharingType = {}));
27
+ function SharingTypeFromJSON(json) {
28
+ return SharingTypeFromJSONTyped(json, false);
29
+ }
30
+ exports.SharingTypeFromJSON = SharingTypeFromJSON;
31
+ function SharingTypeFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ exports.SharingTypeFromJSONTyped = SharingTypeFromJSONTyped;
35
+ function SharingTypeToJSON(value) {
36
+ return value;
37
+ }
38
+ exports.SharingTypeToJSON = SharingTypeToJSON;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface TaskCost
16
+ */
17
+ export interface TaskCost {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TaskCost
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TaskCost
28
+ */
29
+ taskId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof TaskCost
34
+ */
35
+ status: string;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof TaskCost
40
+ */
41
+ cost: number;
42
+ }
43
+ /**
44
+ * Check if a given object implements the TaskCost interface.
45
+ */
46
+ export declare function instanceOfTaskCost(value: object): boolean;
47
+ export declare function TaskCostFromJSON(json: any): TaskCost;
48
+ export declare function TaskCostFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskCost;
49
+ export declare function TaskCostToJSON(value?: TaskCost | null): any;
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.TaskCostToJSON = exports.TaskCostFromJSONTyped = exports.TaskCostFromJSON = exports.instanceOfTaskCost = void 0;
17
+ /**
18
+ * Check if a given object implements the TaskCost interface.
19
+ */
20
+ function instanceOfTaskCost(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "taskId" in value;
24
+ isInstance = isInstance && "status" in value;
25
+ isInstance = isInstance && "cost" in value;
26
+ return isInstance;
27
+ }
28
+ exports.instanceOfTaskCost = instanceOfTaskCost;
29
+ function TaskCostFromJSON(json) {
30
+ return TaskCostFromJSONTyped(json, false);
31
+ }
32
+ exports.TaskCostFromJSON = TaskCostFromJSON;
33
+ function TaskCostFromJSONTyped(json, ignoreDiscriminator) {
34
+ if ((json === undefined) || (json === null)) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ 'taskId': json['taskId'],
40
+ 'status': json['status'],
41
+ 'cost': json['cost'],
42
+ };
43
+ }
44
+ exports.TaskCostFromJSONTyped = TaskCostFromJSONTyped;
45
+ function TaskCostToJSON(value) {
46
+ if (value === undefined) {
47
+ return undefined;
48
+ }
49
+ if (value === null) {
50
+ return null;
51
+ }
52
+ return {
53
+ 'name': value.name,
54
+ 'taskId': value.taskId,
55
+ 'status': value.status,
56
+ 'cost': value.cost,
57
+ };
58
+ }
59
+ exports.TaskCostToJSON = TaskCostToJSON;