@cirrobio/api-client 0.11.1 → 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.
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.1 --save
39
+ npm install @cirrobio/api-client@0.11.2 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -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,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,62 @@
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 { WorkspaceComputeConfig } from './WorkspaceComputeConfig';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WorkspaceEnvironment
17
+ */
18
+ export interface WorkspaceEnvironment {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof WorkspaceEnvironment
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof WorkspaceEnvironment
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof WorkspaceEnvironment
35
+ */
36
+ description: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof WorkspaceEnvironment
41
+ */
42
+ category: string;
43
+ /**
44
+ *
45
+ * @type {WorkspaceComputeConfig}
46
+ * @memberof WorkspaceEnvironment
47
+ */
48
+ defaultComputeConfig: WorkspaceComputeConfig;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof WorkspaceEnvironment
53
+ */
54
+ owner: string;
55
+ }
56
+ /**
57
+ * Check if a given object implements the WorkspaceEnvironment interface.
58
+ */
59
+ export declare function instanceOfWorkspaceEnvironment(value: object): boolean;
60
+ export declare function WorkspaceEnvironmentFromJSON(json: any): WorkspaceEnvironment;
61
+ export declare function WorkspaceEnvironmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkspaceEnvironment;
62
+ export declare function WorkspaceEnvironmentToJSON(value?: WorkspaceEnvironment | null): any;
@@ -0,0 +1,59 @@
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 { WorkspaceComputeConfigFromJSON, WorkspaceComputeConfigToJSON, } from './WorkspaceComputeConfig';
15
+ /**
16
+ * Check if a given object implements the WorkspaceEnvironment interface.
17
+ */
18
+ export function instanceOfWorkspaceEnvironment(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "id" in value;
21
+ isInstance = isInstance && "name" in value;
22
+ isInstance = isInstance && "description" in value;
23
+ isInstance = isInstance && "category" in value;
24
+ isInstance = isInstance && "defaultComputeConfig" in value;
25
+ isInstance = isInstance && "owner" in value;
26
+ return isInstance;
27
+ }
28
+ export function WorkspaceEnvironmentFromJSON(json) {
29
+ return WorkspaceEnvironmentFromJSONTyped(json, false);
30
+ }
31
+ export function WorkspaceEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'id': json['id'],
37
+ 'name': json['name'],
38
+ 'description': json['description'],
39
+ 'category': json['category'],
40
+ 'defaultComputeConfig': WorkspaceComputeConfigFromJSON(json['defaultComputeConfig']),
41
+ 'owner': json['owner'],
42
+ };
43
+ }
44
+ export function WorkspaceEnvironmentToJSON(value) {
45
+ if (value === undefined) {
46
+ return undefined;
47
+ }
48
+ if (value === null) {
49
+ return null;
50
+ }
51
+ return {
52
+ 'id': value.id,
53
+ 'name': value.name,
54
+ 'description': value.description,
55
+ 'category': value.category,
56
+ 'defaultComputeConfig': WorkspaceComputeConfigToJSON(value.defaultComputeConfig),
57
+ 'owner': value.owner,
58
+ };
59
+ }
@@ -152,5 +152,6 @@ export * from './ValidateFileRequirementsRequest';
152
152
  export * from './Workspace';
153
153
  export * from './WorkspaceComputeConfig';
154
154
  export * from './WorkspaceConnectionResponse';
155
+ export * from './WorkspaceEnvironment';
155
156
  export * from './WorkspaceInput';
156
157
  export * from './WorkspaceSession';
@@ -154,5 +154,6 @@ export * from './ValidateFileRequirementsRequest';
154
154
  export * from './Workspace';
155
155
  export * from './WorkspaceComputeConfig';
156
156
  export * from './WorkspaceConnectionResponse';
157
+ export * from './WorkspaceEnvironment';
157
158
  export * from './WorkspaceInput';
158
159
  export * from './WorkspaceSession';
@@ -0,0 +1,62 @@
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 { WorkspaceComputeConfig } from './WorkspaceComputeConfig';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface WorkspaceEnvironment
17
+ */
18
+ export interface WorkspaceEnvironment {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof WorkspaceEnvironment
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof WorkspaceEnvironment
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof WorkspaceEnvironment
35
+ */
36
+ description: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof WorkspaceEnvironment
41
+ */
42
+ category: string;
43
+ /**
44
+ *
45
+ * @type {WorkspaceComputeConfig}
46
+ * @memberof WorkspaceEnvironment
47
+ */
48
+ defaultComputeConfig: WorkspaceComputeConfig;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof WorkspaceEnvironment
53
+ */
54
+ owner: string;
55
+ }
56
+ /**
57
+ * Check if a given object implements the WorkspaceEnvironment interface.
58
+ */
59
+ export declare function instanceOfWorkspaceEnvironment(value: object): boolean;
60
+ export declare function WorkspaceEnvironmentFromJSON(json: any): WorkspaceEnvironment;
61
+ export declare function WorkspaceEnvironmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkspaceEnvironment;
62
+ export declare function WorkspaceEnvironmentToJSON(value?: WorkspaceEnvironment | null): any;
@@ -0,0 +1,66 @@
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.WorkspaceEnvironmentToJSON = exports.WorkspaceEnvironmentFromJSONTyped = exports.WorkspaceEnvironmentFromJSON = exports.instanceOfWorkspaceEnvironment = void 0;
17
+ const WorkspaceComputeConfig_1 = require("./WorkspaceComputeConfig");
18
+ /**
19
+ * Check if a given object implements the WorkspaceEnvironment interface.
20
+ */
21
+ function instanceOfWorkspaceEnvironment(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "id" in value;
24
+ isInstance = isInstance && "name" in value;
25
+ isInstance = isInstance && "description" in value;
26
+ isInstance = isInstance && "category" in value;
27
+ isInstance = isInstance && "defaultComputeConfig" in value;
28
+ isInstance = isInstance && "owner" in value;
29
+ return isInstance;
30
+ }
31
+ exports.instanceOfWorkspaceEnvironment = instanceOfWorkspaceEnvironment;
32
+ function WorkspaceEnvironmentFromJSON(json) {
33
+ return WorkspaceEnvironmentFromJSONTyped(json, false);
34
+ }
35
+ exports.WorkspaceEnvironmentFromJSON = WorkspaceEnvironmentFromJSON;
36
+ function WorkspaceEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
37
+ if ((json === undefined) || (json === null)) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'name': json['name'],
43
+ 'description': json['description'],
44
+ 'category': json['category'],
45
+ 'defaultComputeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigFromJSON)(json['defaultComputeConfig']),
46
+ 'owner': json['owner'],
47
+ };
48
+ }
49
+ exports.WorkspaceEnvironmentFromJSONTyped = WorkspaceEnvironmentFromJSONTyped;
50
+ function WorkspaceEnvironmentToJSON(value) {
51
+ if (value === undefined) {
52
+ return undefined;
53
+ }
54
+ if (value === null) {
55
+ return null;
56
+ }
57
+ return {
58
+ 'id': value.id,
59
+ 'name': value.name,
60
+ 'description': value.description,
61
+ 'category': value.category,
62
+ 'defaultComputeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigToJSON)(value.defaultComputeConfig),
63
+ 'owner': value.owner,
64
+ };
65
+ }
66
+ exports.WorkspaceEnvironmentToJSON = WorkspaceEnvironmentToJSON;
@@ -152,5 +152,6 @@ export * from './ValidateFileRequirementsRequest';
152
152
  export * from './Workspace';
153
153
  export * from './WorkspaceComputeConfig';
154
154
  export * from './WorkspaceConnectionResponse';
155
+ export * from './WorkspaceEnvironment';
155
156
  export * from './WorkspaceInput';
156
157
  export * from './WorkspaceSession';
@@ -170,5 +170,6 @@ __exportStar(require("./ValidateFileRequirementsRequest"), exports);
170
170
  __exportStar(require("./Workspace"), exports);
171
171
  __exportStar(require("./WorkspaceComputeConfig"), exports);
172
172
  __exportStar(require("./WorkspaceConnectionResponse"), exports);
173
+ __exportStar(require("./WorkspaceEnvironment"), exports);
173
174
  __exportStar(require("./WorkspaceInput"), exports);
174
175
  __exportStar(require("./WorkspaceSession"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.11.1",
3
+ "version": "0.11.2",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {