@cirrobio/api-client 0.11.0 → 0.11.2

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 (34) 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 +11 -1
  5. package/dist/apis/WorkspacesApi.js +34 -0
  6. package/dist/esm/apis/ExecutionApi.d.ts +15 -1
  7. package/dist/esm/apis/ExecutionApi.js +41 -1
  8. package/dist/esm/apis/WorkspacesApi.d.ts +11 -1
  9. package/dist/esm/apis/WorkspacesApi.js +35 -1
  10. package/dist/esm/models/CostResponse.d.ts +51 -0
  11. package/dist/esm/models/CostResponse.js +51 -0
  12. package/dist/esm/models/FeatureFlags.d.ts +6 -0
  13. package/dist/esm/models/FeatureFlags.js +3 -0
  14. package/dist/esm/models/GroupCost.d.ts +37 -0
  15. package/dist/esm/models/GroupCost.js +45 -0
  16. package/dist/esm/models/TaskCost.d.ts +49 -0
  17. package/dist/esm/models/TaskCost.js +52 -0
  18. package/dist/esm/models/WorkspaceEnvironment.d.ts +62 -0
  19. package/dist/esm/models/WorkspaceEnvironment.js +59 -0
  20. package/dist/esm/models/index.d.ts +4 -0
  21. package/dist/esm/models/index.js +4 -0
  22. package/dist/models/CostResponse.d.ts +51 -0
  23. package/dist/models/CostResponse.js +58 -0
  24. package/dist/models/FeatureFlags.d.ts +6 -0
  25. package/dist/models/FeatureFlags.js +3 -0
  26. package/dist/models/GroupCost.d.ts +37 -0
  27. package/dist/models/GroupCost.js +52 -0
  28. package/dist/models/TaskCost.d.ts +49 -0
  29. package/dist/models/TaskCost.js +59 -0
  30. package/dist/models/WorkspaceEnvironment.d.ts +62 -0
  31. package/dist/models/WorkspaceEnvironment.js +66 -0
  32. package/dist/models/index.d.ts +4 -0
  33. package/dist/models/index.js +4 -0
  34. package/package.json +1 -1
package/README.md CHANGED
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cirrobio/api-client@0.11.0 --save
39
+ npm install @cirrobio/api-client@0.11.2 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,7 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateResponse, GetExecutionLogsResponse, RunAnalysisRequest, StopExecutionResponse, Task } from '../models/index';
13
+ import type { CostResponse, CreateResponse, GetExecutionLogsResponse, RunAnalysisRequest, StopExecutionResponse, Task } from '../models/index';
14
+ export interface CalculateCostRequest {
15
+ projectId: string;
16
+ datasetId: string;
17
+ }
14
18
  export interface GetExecutionLogsRequest {
15
19
  datasetId: string;
16
20
  projectId: string;
@@ -43,6 +47,16 @@ export interface StopAnalysisRequest {
43
47
  *
44
48
  */
45
49
  export declare class ExecutionApi extends runtime.BaseAPI {
50
+ /**
51
+ * Calculate cost of an execution run
52
+ * Calculate cost
53
+ */
54
+ calculateCostRaw(requestParameters: CalculateCostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CostResponse>>;
55
+ /**
56
+ * Calculate cost of an execution run
57
+ * Calculate cost
58
+ */
59
+ calculateCost(requestParameters: CalculateCostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CostResponse>;
46
60
  /**
47
61
  * Gets live logs from main execution task
48
62
  * Get execution logs
@@ -29,6 +29,46 @@ const index_1 = require("../models/index");
29
29
  *
30
30
  */
31
31
  class ExecutionApi extends runtime.BaseAPI {
32
+ /**
33
+ * Calculate cost of an execution run
34
+ * Calculate cost
35
+ */
36
+ calculateCostRaw(requestParameters, initOverrides) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
39
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling calculateCost.');
40
+ }
41
+ if (requestParameters.datasetId === null || requestParameters.datasetId === undefined) {
42
+ throw new runtime.RequiredError('datasetId', 'Required parameter requestParameters.datasetId was null or undefined when calling calculateCost.');
43
+ }
44
+ const queryParameters = {};
45
+ const headerParameters = {};
46
+ if (this.configuration && this.configuration.accessToken) {
47
+ const token = this.configuration.accessToken;
48
+ const tokenString = yield token("accessToken", []);
49
+ if (tokenString) {
50
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
51
+ }
52
+ }
53
+ const response = yield this.request({
54
+ path: `/projects/{projectId}/execution/{datasetId}/cost`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"datasetId"}}`, encodeURIComponent(String(requestParameters.datasetId))),
55
+ method: 'GET',
56
+ headers: headerParameters,
57
+ query: queryParameters,
58
+ }, initOverrides);
59
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CostResponseFromJSON)(jsonValue));
60
+ });
61
+ }
62
+ /**
63
+ * Calculate cost of an execution run
64
+ * Calculate cost
65
+ */
66
+ calculateCost(requestParameters, initOverrides) {
67
+ return __awaiter(this, void 0, void 0, function* () {
68
+ const response = yield this.calculateCostRaw(requestParameters, initOverrides);
69
+ return yield response.value();
70
+ });
71
+ }
32
72
  /**
33
73
  * Gets live logs from main execution task
34
74
  * Get execution logs
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateResponse, Workspace, WorkspaceConnectionResponse, WorkspaceInput } from '../models/index';
13
+ import type { CreateResponse, Workspace, WorkspaceConnectionResponse, WorkspaceEnvironment, WorkspaceInput } from '../models/index';
14
14
  export interface ConnectWorkspaceRequest {
15
15
  projectId: string;
16
16
  workspaceId: string;
@@ -102,6 +102,16 @@ export declare class WorkspacesApi extends runtime.BaseAPI {
102
102
  * Get workspace
103
103
  */
104
104
  getWorkspace(requestParameters: GetWorkspaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Workspace>;
105
+ /**
106
+ * Retrieves a list of pre-defined workspace environments available to use
107
+ * Get workspace environments
108
+ */
109
+ getWorkspaceEnvironmentsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<WorkspaceEnvironment>>>;
110
+ /**
111
+ * Retrieves a list of pre-defined workspace environments available to use
112
+ * Get workspace environments
113
+ */
114
+ getWorkspaceEnvironments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WorkspaceEnvironment>>;
105
115
  /**
106
116
  * Retrieves a list of workspaces that the user has access to
107
117
  * Get workspaces
@@ -235,6 +235,40 @@ class WorkspacesApi extends runtime.BaseAPI {
235
235
  return yield response.value();
236
236
  });
237
237
  }
238
+ /**
239
+ * Retrieves a list of pre-defined workspace environments available to use
240
+ * Get workspace environments
241
+ */
242
+ getWorkspaceEnvironmentsRaw(initOverrides) {
243
+ return __awaiter(this, void 0, void 0, function* () {
244
+ const queryParameters = {};
245
+ const headerParameters = {};
246
+ if (this.configuration && this.configuration.accessToken) {
247
+ const token = this.configuration.accessToken;
248
+ const tokenString = yield token("accessToken", []);
249
+ if (tokenString) {
250
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
251
+ }
252
+ }
253
+ const response = yield this.request({
254
+ path: `/workspace-environments`,
255
+ method: 'GET',
256
+ headers: headerParameters,
257
+ query: queryParameters,
258
+ }, initOverrides);
259
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.WorkspaceEnvironmentFromJSON));
260
+ });
261
+ }
262
+ /**
263
+ * Retrieves a list of pre-defined workspace environments available to use
264
+ * Get workspace environments
265
+ */
266
+ getWorkspaceEnvironments(initOverrides) {
267
+ return __awaiter(this, void 0, void 0, function* () {
268
+ const response = yield this.getWorkspaceEnvironmentsRaw(initOverrides);
269
+ return yield response.value();
270
+ });
271
+ }
238
272
  /**
239
273
  * Retrieves a list of workspaces that the user has access to
240
274
  * Get workspaces
@@ -10,7 +10,11 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateResponse, GetExecutionLogsResponse, RunAnalysisRequest, StopExecutionResponse, Task } from '../models/index';
13
+ import type { CostResponse, CreateResponse, GetExecutionLogsResponse, RunAnalysisRequest, StopExecutionResponse, Task } from '../models/index';
14
+ export interface CalculateCostRequest {
15
+ projectId: string;
16
+ datasetId: string;
17
+ }
14
18
  export interface GetExecutionLogsRequest {
15
19
  datasetId: string;
16
20
  projectId: string;
@@ -43,6 +47,16 @@ export interface StopAnalysisRequest {
43
47
  *
44
48
  */
45
49
  export declare class ExecutionApi extends runtime.BaseAPI {
50
+ /**
51
+ * Calculate cost of an execution run
52
+ * Calculate cost
53
+ */
54
+ calculateCostRaw(requestParameters: CalculateCostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CostResponse>>;
55
+ /**
56
+ * Calculate cost of an execution run
57
+ * Calculate cost
58
+ */
59
+ calculateCost(requestParameters: CalculateCostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CostResponse>;
46
60
  /**
47
61
  * Gets live logs from main execution task
48
62
  * Get execution logs
@@ -21,11 +21,51 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { CreateResponseFromJSON, GetExecutionLogsResponseFromJSON, RunAnalysisRequestToJSON, StopExecutionResponseFromJSON, TaskFromJSON, } from '../models/index';
24
+ import { CostResponseFromJSON, CreateResponseFromJSON, GetExecutionLogsResponseFromJSON, RunAnalysisRequestToJSON, StopExecutionResponseFromJSON, TaskFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
28
28
  export class ExecutionApi extends runtime.BaseAPI {
29
+ /**
30
+ * Calculate cost of an execution run
31
+ * Calculate cost
32
+ */
33
+ calculateCostRaw(requestParameters, initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
36
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling calculateCost.');
37
+ }
38
+ if (requestParameters.datasetId === null || requestParameters.datasetId === undefined) {
39
+ throw new runtime.RequiredError('datasetId', 'Required parameter requestParameters.datasetId was null or undefined when calling calculateCost.');
40
+ }
41
+ const queryParameters = {};
42
+ const headerParameters = {};
43
+ if (this.configuration && this.configuration.accessToken) {
44
+ const token = this.configuration.accessToken;
45
+ const tokenString = yield token("accessToken", []);
46
+ if (tokenString) {
47
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
48
+ }
49
+ }
50
+ const response = yield this.request({
51
+ path: `/projects/{projectId}/execution/{datasetId}/cost`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"datasetId"}}`, encodeURIComponent(String(requestParameters.datasetId))),
52
+ method: 'GET',
53
+ headers: headerParameters,
54
+ query: queryParameters,
55
+ }, initOverrides);
56
+ return new runtime.JSONApiResponse(response, (jsonValue) => CostResponseFromJSON(jsonValue));
57
+ });
58
+ }
59
+ /**
60
+ * Calculate cost of an execution run
61
+ * Calculate cost
62
+ */
63
+ calculateCost(requestParameters, initOverrides) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ const response = yield this.calculateCostRaw(requestParameters, initOverrides);
66
+ return yield response.value();
67
+ });
68
+ }
29
69
  /**
30
70
  * Gets live logs from main execution task
31
71
  * Get execution logs
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateResponse, Workspace, WorkspaceConnectionResponse, WorkspaceInput } from '../models/index';
13
+ import type { CreateResponse, Workspace, WorkspaceConnectionResponse, WorkspaceEnvironment, WorkspaceInput } from '../models/index';
14
14
  export interface ConnectWorkspaceRequest {
15
15
  projectId: string;
16
16
  workspaceId: string;
@@ -102,6 +102,16 @@ export declare class WorkspacesApi extends runtime.BaseAPI {
102
102
  * Get workspace
103
103
  */
104
104
  getWorkspace(requestParameters: GetWorkspaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Workspace>;
105
+ /**
106
+ * Retrieves a list of pre-defined workspace environments available to use
107
+ * Get workspace environments
108
+ */
109
+ getWorkspaceEnvironmentsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<WorkspaceEnvironment>>>;
110
+ /**
111
+ * Retrieves a list of pre-defined workspace environments available to use
112
+ * Get workspace environments
113
+ */
114
+ getWorkspaceEnvironments(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<WorkspaceEnvironment>>;
105
115
  /**
106
116
  * Retrieves a list of workspaces that the user has access to
107
117
  * Get workspaces
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { CreateResponseFromJSON, WorkspaceFromJSON, WorkspaceConnectionResponseFromJSON, WorkspaceInputToJSON, } from '../models/index';
24
+ import { CreateResponseFromJSON, WorkspaceFromJSON, WorkspaceConnectionResponseFromJSON, WorkspaceEnvironmentFromJSON, WorkspaceInputToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -232,6 +232,40 @@ export class WorkspacesApi extends runtime.BaseAPI {
232
232
  return yield response.value();
233
233
  });
234
234
  }
235
+ /**
236
+ * Retrieves a list of pre-defined workspace environments available to use
237
+ * Get workspace environments
238
+ */
239
+ getWorkspaceEnvironmentsRaw(initOverrides) {
240
+ return __awaiter(this, void 0, void 0, function* () {
241
+ const queryParameters = {};
242
+ const headerParameters = {};
243
+ if (this.configuration && this.configuration.accessToken) {
244
+ const token = this.configuration.accessToken;
245
+ const tokenString = yield token("accessToken", []);
246
+ if (tokenString) {
247
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
248
+ }
249
+ }
250
+ const response = yield this.request({
251
+ path: `/workspace-environments`,
252
+ method: 'GET',
253
+ headers: headerParameters,
254
+ query: queryParameters,
255
+ }, initOverrides);
256
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(WorkspaceEnvironmentFromJSON));
257
+ });
258
+ }
259
+ /**
260
+ * Retrieves a list of pre-defined workspace environments available to use
261
+ * Get workspace environments
262
+ */
263
+ getWorkspaceEnvironments(initOverrides) {
264
+ return __awaiter(this, void 0, void 0, function* () {
265
+ const response = yield this.getWorkspaceEnvironmentsRaw(initOverrides);
266
+ return yield response.value();
267
+ });
268
+ }
235
269
  /**
236
270
  * Retrieves a list of workspaces that the user has access to
237
271
  * Get workspaces
@@ -0,0 +1,51 @@
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
+ import type { GroupCost } from './GroupCost';
13
+ import type { TaskCost } from './TaskCost';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface CostResponse
18
+ */
19
+ export interface CostResponse {
20
+ /**
21
+ * Total cost
22
+ * @type {number}
23
+ * @memberof CostResponse
24
+ */
25
+ totalCost?: number;
26
+ /**
27
+ * Costs grouped by the task status
28
+ * @type {Array<GroupCost>}
29
+ * @memberof CostResponse
30
+ */
31
+ groups?: Array<GroupCost>;
32
+ /**
33
+ * Costs for each workflow task
34
+ * @type {Array<TaskCost>}
35
+ * @memberof CostResponse
36
+ */
37
+ tasks?: Array<TaskCost>;
38
+ /**
39
+ * Whether this is an estimated cost
40
+ * @type {boolean}
41
+ * @memberof CostResponse
42
+ */
43
+ isEstimate?: boolean;
44
+ }
45
+ /**
46
+ * Check if a given object implements the CostResponse interface.
47
+ */
48
+ export declare function instanceOfCostResponse(value: object): boolean;
49
+ export declare function CostResponseFromJSON(json: any): CostResponse;
50
+ export declare function CostResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CostResponse;
51
+ export declare function CostResponseToJSON(value?: CostResponse | null): any;
@@ -0,0 +1,51 @@
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
+ import { exists } from '../runtime';
15
+ import { GroupCostFromJSON, GroupCostToJSON, } from './GroupCost';
16
+ import { TaskCostFromJSON, TaskCostToJSON, } from './TaskCost';
17
+ /**
18
+ * Check if a given object implements the CostResponse interface.
19
+ */
20
+ export function instanceOfCostResponse(value) {
21
+ let isInstance = true;
22
+ return isInstance;
23
+ }
24
+ export function CostResponseFromJSON(json) {
25
+ return CostResponseFromJSONTyped(json, false);
26
+ }
27
+ export function CostResponseFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'totalCost': !exists(json, 'totalCost') ? undefined : json['totalCost'],
33
+ 'groups': !exists(json, 'groups') ? undefined : (json['groups'].map(GroupCostFromJSON)),
34
+ 'tasks': !exists(json, 'tasks') ? undefined : (json['tasks'].map(TaskCostFromJSON)),
35
+ 'isEstimate': !exists(json, 'isEstimate') ? undefined : json['isEstimate'],
36
+ };
37
+ }
38
+ export function CostResponseToJSON(value) {
39
+ if (value === undefined) {
40
+ return undefined;
41
+ }
42
+ if (value === null) {
43
+ return null;
44
+ }
45
+ return {
46
+ 'totalCost': value.totalCost,
47
+ 'groups': value.groups === undefined ? undefined : (value.groups.map(GroupCostToJSON)),
48
+ 'tasks': value.tasks === undefined ? undefined : (value.tasks.map(TaskCostToJSON)),
49
+ 'isEstimate': value.isEstimate,
50
+ };
51
+ }
@@ -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.
@@ -19,6 +19,7 @@ export function instanceOfFeatureFlags(value) {
19
19
  isInstance = isInstance && "sftpEnabled" in value;
20
20
  isInstance = isInstance && "governanceEnabled" in value;
21
21
  isInstance = isInstance && "projectRequestsEnabled" in value;
22
+ isInstance = isInstance && "workspacesEnabled" in value;
22
23
  return isInstance;
23
24
  }
24
25
  export function FeatureFlagsFromJSON(json) {
@@ -32,6 +33,7 @@ export function FeatureFlagsFromJSONTyped(json, ignoreDiscriminator) {
32
33
  'sftpEnabled': json['sftpEnabled'],
33
34
  'governanceEnabled': json['governanceEnabled'],
34
35
  'projectRequestsEnabled': json['projectRequestsEnabled'],
36
+ 'workspacesEnabled': json['workspacesEnabled'],
35
37
  };
36
38
  }
37
39
  export function FeatureFlagsToJSON(value) {
@@ -45,5 +47,6 @@ export function FeatureFlagsToJSON(value) {
45
47
  'sftpEnabled': value.sftpEnabled,
46
48
  'governanceEnabled': value.governanceEnabled,
47
49
  'projectRequestsEnabled': value.projectRequestsEnabled,
50
+ 'workspacesEnabled': value.workspacesEnabled,
48
51
  };
49
52
  }
@@ -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,45 @@
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
+ import { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the GroupCost interface.
17
+ */
18
+ export function instanceOfGroupCost(value) {
19
+ let isInstance = true;
20
+ return isInstance;
21
+ }
22
+ export function GroupCostFromJSON(json) {
23
+ return GroupCostFromJSONTyped(json, false);
24
+ }
25
+ export function GroupCostFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'name': !exists(json, 'name') ? undefined : json['name'],
31
+ 'cost': !exists(json, 'cost') ? undefined : json['cost'],
32
+ };
33
+ }
34
+ export function GroupCostToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'name': value.name,
43
+ 'cost': value.cost,
44
+ };
45
+ }
@@ -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,52 @@
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
+ * Check if a given object implements the TaskCost interface.
16
+ */
17
+ export function instanceOfTaskCost(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "name" in value;
20
+ isInstance = isInstance && "taskId" in value;
21
+ isInstance = isInstance && "status" in value;
22
+ isInstance = isInstance && "cost" in value;
23
+ return isInstance;
24
+ }
25
+ export function TaskCostFromJSON(json) {
26
+ return TaskCostFromJSONTyped(json, false);
27
+ }
28
+ export function TaskCostFromJSONTyped(json, ignoreDiscriminator) {
29
+ if ((json === undefined) || (json === null)) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'name': json['name'],
34
+ 'taskId': json['taskId'],
35
+ 'status': json['status'],
36
+ 'cost': json['cost'],
37
+ };
38
+ }
39
+ export function TaskCostToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'name': value.name,
48
+ 'taskId': value.taskId,
49
+ 'status': value.status,
50
+ 'cost': value.cost,
51
+ };
52
+ }