@cirrobio/api-client 0.11.0 → 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.
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.1 --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,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
@@ -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
+ }
@@ -22,6 +22,7 @@ export * from './ComputeEnvironmentConfiguration';
22
22
  export * from './ComputeEnvironmentConfigurationInput';
23
23
  export * from './Contact';
24
24
  export * from './ContactInput';
25
+ export * from './CostResponse';
25
26
  export * from './CreateNotebookInstanceRequest';
26
27
  export * from './CreateProjectAccessRequest';
27
28
  export * from './CreateReferenceRequest';
@@ -69,6 +70,7 @@ export * from './GovernanceRequirement';
69
70
  export * from './GovernanceScope';
70
71
  export * from './GovernanceTrainingVerification';
71
72
  export * from './GovernanceType';
73
+ export * from './GroupCost';
72
74
  export * from './ImportDataRequest';
73
75
  export * from './InviteUserRequest';
74
76
  export * from './InviteUserResponse';
@@ -135,6 +137,7 @@ export * from './SystemInfoResponse';
135
137
  export * from './Table';
136
138
  export * from './Tag';
137
139
  export * from './Task';
140
+ export * from './TaskCost';
138
141
  export * from './TenantInfo';
139
142
  export * from './UpdateDatasetRequest';
140
143
  export * from './UpdateUserRequest';
@@ -24,6 +24,7 @@ export * from './ComputeEnvironmentConfiguration';
24
24
  export * from './ComputeEnvironmentConfigurationInput';
25
25
  export * from './Contact';
26
26
  export * from './ContactInput';
27
+ export * from './CostResponse';
27
28
  export * from './CreateNotebookInstanceRequest';
28
29
  export * from './CreateProjectAccessRequest';
29
30
  export * from './CreateReferenceRequest';
@@ -71,6 +72,7 @@ export * from './GovernanceRequirement';
71
72
  export * from './GovernanceScope';
72
73
  export * from './GovernanceTrainingVerification';
73
74
  export * from './GovernanceType';
75
+ export * from './GroupCost';
74
76
  export * from './ImportDataRequest';
75
77
  export * from './InviteUserRequest';
76
78
  export * from './InviteUserResponse';
@@ -137,6 +139,7 @@ export * from './SystemInfoResponse';
137
139
  export * from './Table';
138
140
  export * from './Tag';
139
141
  export * from './Task';
142
+ export * from './TaskCost';
140
143
  export * from './TenantInfo';
141
144
  export * from './UpdateDatasetRequest';
142
145
  export * from './UpdateUserRequest';
@@ -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,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;
@@ -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,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;
@@ -22,6 +22,7 @@ export * from './ComputeEnvironmentConfiguration';
22
22
  export * from './ComputeEnvironmentConfigurationInput';
23
23
  export * from './Contact';
24
24
  export * from './ContactInput';
25
+ export * from './CostResponse';
25
26
  export * from './CreateNotebookInstanceRequest';
26
27
  export * from './CreateProjectAccessRequest';
27
28
  export * from './CreateReferenceRequest';
@@ -69,6 +70,7 @@ export * from './GovernanceRequirement';
69
70
  export * from './GovernanceScope';
70
71
  export * from './GovernanceTrainingVerification';
71
72
  export * from './GovernanceType';
73
+ export * from './GroupCost';
72
74
  export * from './ImportDataRequest';
73
75
  export * from './InviteUserRequest';
74
76
  export * from './InviteUserResponse';
@@ -135,6 +137,7 @@ export * from './SystemInfoResponse';
135
137
  export * from './Table';
136
138
  export * from './Tag';
137
139
  export * from './Task';
140
+ export * from './TaskCost';
138
141
  export * from './TenantInfo';
139
142
  export * from './UpdateDatasetRequest';
140
143
  export * from './UpdateUserRequest';
@@ -40,6 +40,7 @@ __exportStar(require("./ComputeEnvironmentConfiguration"), exports);
40
40
  __exportStar(require("./ComputeEnvironmentConfigurationInput"), exports);
41
41
  __exportStar(require("./Contact"), exports);
42
42
  __exportStar(require("./ContactInput"), exports);
43
+ __exportStar(require("./CostResponse"), exports);
43
44
  __exportStar(require("./CreateNotebookInstanceRequest"), exports);
44
45
  __exportStar(require("./CreateProjectAccessRequest"), exports);
45
46
  __exportStar(require("./CreateReferenceRequest"), exports);
@@ -87,6 +88,7 @@ __exportStar(require("./GovernanceRequirement"), exports);
87
88
  __exportStar(require("./GovernanceScope"), exports);
88
89
  __exportStar(require("./GovernanceTrainingVerification"), exports);
89
90
  __exportStar(require("./GovernanceType"), exports);
91
+ __exportStar(require("./GroupCost"), exports);
90
92
  __exportStar(require("./ImportDataRequest"), exports);
91
93
  __exportStar(require("./InviteUserRequest"), exports);
92
94
  __exportStar(require("./InviteUserResponse"), exports);
@@ -153,6 +155,7 @@ __exportStar(require("./SystemInfoResponse"), exports);
153
155
  __exportStar(require("./Table"), exports);
154
156
  __exportStar(require("./Tag"), exports);
155
157
  __exportStar(require("./Task"), exports);
158
+ __exportStar(require("./TaskCost"), exports);
156
159
  __exportStar(require("./TenantInfo"), exports);
157
160
  __exportStar(require("./UpdateDatasetRequest"), exports);
158
161
  __exportStar(require("./UpdateUserRequest"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {