@cirrobio/api-client 0.11.3 → 0.11.5

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.3 --save
39
+ npm install @cirrobio/api-client@0.11.5 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -0,0 +1,43 @@
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 VersionSpecification
16
+ */
17
+ export interface VersionSpecification {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof VersionSpecification
22
+ */
23
+ version: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof VersionSpecification
28
+ */
29
+ isDefault: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof VersionSpecification
34
+ */
35
+ isLatest: boolean;
36
+ }
37
+ /**
38
+ * Check if a given object implements the VersionSpecification interface.
39
+ */
40
+ export declare function instanceOfVersionSpecification(value: object): boolean;
41
+ export declare function VersionSpecificationFromJSON(json: any): VersionSpecification;
42
+ export declare function VersionSpecificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionSpecification;
43
+ export declare function VersionSpecificationToJSON(value?: VersionSpecification | null): any;
@@ -0,0 +1,49 @@
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 VersionSpecification interface.
16
+ */
17
+ export function instanceOfVersionSpecification(value) {
18
+ let isInstance = true;
19
+ isInstance = isInstance && "version" in value;
20
+ isInstance = isInstance && "isDefault" in value;
21
+ isInstance = isInstance && "isLatest" in value;
22
+ return isInstance;
23
+ }
24
+ export function VersionSpecificationFromJSON(json) {
25
+ return VersionSpecificationFromJSONTyped(json, false);
26
+ }
27
+ export function VersionSpecificationFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'version': json['version'],
33
+ 'isDefault': json['isDefault'],
34
+ 'isLatest': json['isLatest'],
35
+ };
36
+ }
37
+ export function VersionSpecificationToJSON(value) {
38
+ if (value === undefined) {
39
+ return undefined;
40
+ }
41
+ if (value === null) {
42
+ return null;
43
+ }
44
+ return {
45
+ 'version': value.version,
46
+ 'isDefault': value.isDefault,
47
+ 'isLatest': value.isLatest,
48
+ };
49
+ }
@@ -32,13 +32,13 @@ export interface WorkspaceComputeConfig {
32
32
  * @type {number}
33
33
  * @memberof WorkspaceComputeConfig
34
34
  */
35
- memoryGib?: number;
35
+ memoryGiB?: number;
36
36
  /**
37
37
  * Persistent storage volume size allocated to the workspace in GiB.
38
38
  * @type {number}
39
39
  * @memberof WorkspaceComputeConfig
40
40
  */
41
- volumeSizeGib?: number;
41
+ volumeSizeGiB?: number;
42
42
  /**
43
43
  * Map of environment variables injected into the container at runtime. Keys must be non-blank.
44
44
  * @type {{ [key: string]: string; }}
@@ -30,8 +30,8 @@ export function WorkspaceComputeConfigFromJSONTyped(json, ignoreDiscriminator) {
30
30
  return {
31
31
  'containerImageUri': json['containerImageUri'],
32
32
  'cpu': !exists(json, 'cpu') ? undefined : json['cpu'],
33
- 'memoryGib': !exists(json, 'memoryGib') ? undefined : json['memoryGib'],
34
- 'volumeSizeGib': !exists(json, 'volumeSizeGib') ? undefined : json['volumeSizeGib'],
33
+ 'memoryGiB': !exists(json, 'memoryGiB') ? undefined : json['memoryGiB'],
34
+ 'volumeSizeGiB': !exists(json, 'volumeSizeGiB') ? undefined : json['volumeSizeGiB'],
35
35
  'environmentVariables': !exists(json, 'environmentVariables') ? undefined : json['environmentVariables'],
36
36
  'localPort': !exists(json, 'localPort') ? undefined : json['localPort'],
37
37
  };
@@ -46,8 +46,8 @@ export function WorkspaceComputeConfigToJSON(value) {
46
46
  return {
47
47
  'containerImageUri': value.containerImageUri,
48
48
  'cpu': value.cpu,
49
- 'memoryGib': value.memoryGib,
50
- 'volumeSizeGib': value.volumeSizeGib,
49
+ 'memoryGiB': value.memoryGiB,
50
+ 'volumeSizeGiB': value.volumeSizeGiB,
51
51
  'environmentVariables': value.environmentVariables,
52
52
  'localPort': value.localPort,
53
53
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VersionSpecification } from './VersionSpecification';
12
13
  import type { WorkspaceComputeConfig } from './WorkspaceComputeConfig';
13
14
  /**
14
15
  *
@@ -46,6 +47,12 @@ export interface WorkspaceEnvironment {
46
47
  * @memberof WorkspaceEnvironment
47
48
  */
48
49
  defaultComputeConfig: WorkspaceComputeConfig;
50
+ /**
51
+ *
52
+ * @type {Array<VersionSpecification>}
53
+ * @memberof WorkspaceEnvironment
54
+ */
55
+ versions: Array<VersionSpecification>;
49
56
  /**
50
57
  *
51
58
  * @type {string}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { VersionSpecificationFromJSON, VersionSpecificationToJSON, } from './VersionSpecification';
14
15
  import { WorkspaceComputeConfigFromJSON, WorkspaceComputeConfigToJSON, } from './WorkspaceComputeConfig';
15
16
  /**
16
17
  * Check if a given object implements the WorkspaceEnvironment interface.
@@ -22,6 +23,7 @@ export function instanceOfWorkspaceEnvironment(value) {
22
23
  isInstance = isInstance && "description" in value;
23
24
  isInstance = isInstance && "category" in value;
24
25
  isInstance = isInstance && "defaultComputeConfig" in value;
26
+ isInstance = isInstance && "versions" in value;
25
27
  isInstance = isInstance && "owner" in value;
26
28
  return isInstance;
27
29
  }
@@ -38,6 +40,7 @@ export function WorkspaceEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
38
40
  'description': json['description'],
39
41
  'category': json['category'],
40
42
  'defaultComputeConfig': WorkspaceComputeConfigFromJSON(json['defaultComputeConfig']),
43
+ 'versions': (json['versions'].map(VersionSpecificationFromJSON)),
41
44
  'owner': json['owner'],
42
45
  };
43
46
  }
@@ -54,6 +57,7 @@ export function WorkspaceEnvironmentToJSON(value) {
54
57
  'description': value.description,
55
58
  'category': value.category,
56
59
  'defaultComputeConfig': WorkspaceComputeConfigToJSON(value.defaultComputeConfig),
60
+ 'versions': (value.versions.map(VersionSpecificationToJSON)),
57
61
  'owner': value.owner,
58
62
  };
59
63
  }
@@ -149,6 +149,7 @@ export * from './UserProjectAssignment';
149
149
  export * from './UserSettings';
150
150
  export * from './ValidateFileNamePatternsRequest';
151
151
  export * from './ValidateFileRequirementsRequest';
152
+ export * from './VersionSpecification';
152
153
  export * from './Workspace';
153
154
  export * from './WorkspaceComputeConfig';
154
155
  export * from './WorkspaceConnectionResponse';
@@ -151,6 +151,7 @@ export * from './UserProjectAssignment';
151
151
  export * from './UserSettings';
152
152
  export * from './ValidateFileNamePatternsRequest';
153
153
  export * from './ValidateFileRequirementsRequest';
154
+ export * from './VersionSpecification';
154
155
  export * from './Workspace';
155
156
  export * from './WorkspaceComputeConfig';
156
157
  export * from './WorkspaceConnectionResponse';
@@ -0,0 +1,43 @@
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 VersionSpecification
16
+ */
17
+ export interface VersionSpecification {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof VersionSpecification
22
+ */
23
+ version: string;
24
+ /**
25
+ *
26
+ * @type {boolean}
27
+ * @memberof VersionSpecification
28
+ */
29
+ isDefault: boolean;
30
+ /**
31
+ *
32
+ * @type {boolean}
33
+ * @memberof VersionSpecification
34
+ */
35
+ isLatest: boolean;
36
+ }
37
+ /**
38
+ * Check if a given object implements the VersionSpecification interface.
39
+ */
40
+ export declare function instanceOfVersionSpecification(value: object): boolean;
41
+ export declare function VersionSpecificationFromJSON(json: any): VersionSpecification;
42
+ export declare function VersionSpecificationFromJSONTyped(json: any, ignoreDiscriminator: boolean): VersionSpecification;
43
+ export declare function VersionSpecificationToJSON(value?: VersionSpecification | null): any;
@@ -0,0 +1,56 @@
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.VersionSpecificationToJSON = exports.VersionSpecificationFromJSONTyped = exports.VersionSpecificationFromJSON = exports.instanceOfVersionSpecification = void 0;
17
+ /**
18
+ * Check if a given object implements the VersionSpecification interface.
19
+ */
20
+ function instanceOfVersionSpecification(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "version" in value;
23
+ isInstance = isInstance && "isDefault" in value;
24
+ isInstance = isInstance && "isLatest" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfVersionSpecification = instanceOfVersionSpecification;
28
+ function VersionSpecificationFromJSON(json) {
29
+ return VersionSpecificationFromJSONTyped(json, false);
30
+ }
31
+ exports.VersionSpecificationFromJSON = VersionSpecificationFromJSON;
32
+ function VersionSpecificationFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'version': json['version'],
38
+ 'isDefault': json['isDefault'],
39
+ 'isLatest': json['isLatest'],
40
+ };
41
+ }
42
+ exports.VersionSpecificationFromJSONTyped = VersionSpecificationFromJSONTyped;
43
+ function VersionSpecificationToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'version': value.version,
52
+ 'isDefault': value.isDefault,
53
+ 'isLatest': value.isLatest,
54
+ };
55
+ }
56
+ exports.VersionSpecificationToJSON = VersionSpecificationToJSON;
@@ -32,13 +32,13 @@ export interface WorkspaceComputeConfig {
32
32
  * @type {number}
33
33
  * @memberof WorkspaceComputeConfig
34
34
  */
35
- memoryGib?: number;
35
+ memoryGiB?: number;
36
36
  /**
37
37
  * Persistent storage volume size allocated to the workspace in GiB.
38
38
  * @type {number}
39
39
  * @memberof WorkspaceComputeConfig
40
40
  */
41
- volumeSizeGib?: number;
41
+ volumeSizeGiB?: number;
42
42
  /**
43
43
  * Map of environment variables injected into the container at runtime. Keys must be non-blank.
44
44
  * @type {{ [key: string]: string; }}
@@ -35,8 +35,8 @@ function WorkspaceComputeConfigFromJSONTyped(json, ignoreDiscriminator) {
35
35
  return {
36
36
  'containerImageUri': json['containerImageUri'],
37
37
  'cpu': !(0, runtime_1.exists)(json, 'cpu') ? undefined : json['cpu'],
38
- 'memoryGib': !(0, runtime_1.exists)(json, 'memoryGib') ? undefined : json['memoryGib'],
39
- 'volumeSizeGib': !(0, runtime_1.exists)(json, 'volumeSizeGib') ? undefined : json['volumeSizeGib'],
38
+ 'memoryGiB': !(0, runtime_1.exists)(json, 'memoryGiB') ? undefined : json['memoryGiB'],
39
+ 'volumeSizeGiB': !(0, runtime_1.exists)(json, 'volumeSizeGiB') ? undefined : json['volumeSizeGiB'],
40
40
  'environmentVariables': !(0, runtime_1.exists)(json, 'environmentVariables') ? undefined : json['environmentVariables'],
41
41
  'localPort': !(0, runtime_1.exists)(json, 'localPort') ? undefined : json['localPort'],
42
42
  };
@@ -52,8 +52,8 @@ function WorkspaceComputeConfigToJSON(value) {
52
52
  return {
53
53
  'containerImageUri': value.containerImageUri,
54
54
  'cpu': value.cpu,
55
- 'memoryGib': value.memoryGib,
56
- 'volumeSizeGib': value.volumeSizeGib,
55
+ 'memoryGiB': value.memoryGiB,
56
+ 'volumeSizeGiB': value.volumeSizeGiB,
57
57
  'environmentVariables': value.environmentVariables,
58
58
  'localPort': value.localPort,
59
59
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { VersionSpecification } from './VersionSpecification';
12
13
  import type { WorkspaceComputeConfig } from './WorkspaceComputeConfig';
13
14
  /**
14
15
  *
@@ -46,6 +47,12 @@ export interface WorkspaceEnvironment {
46
47
  * @memberof WorkspaceEnvironment
47
48
  */
48
49
  defaultComputeConfig: WorkspaceComputeConfig;
50
+ /**
51
+ *
52
+ * @type {Array<VersionSpecification>}
53
+ * @memberof WorkspaceEnvironment
54
+ */
55
+ versions: Array<VersionSpecification>;
49
56
  /**
50
57
  *
51
58
  * @type {string}
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.WorkspaceEnvironmentToJSON = exports.WorkspaceEnvironmentFromJSONTyped = exports.WorkspaceEnvironmentFromJSON = exports.instanceOfWorkspaceEnvironment = void 0;
17
+ const VersionSpecification_1 = require("./VersionSpecification");
17
18
  const WorkspaceComputeConfig_1 = require("./WorkspaceComputeConfig");
18
19
  /**
19
20
  * Check if a given object implements the WorkspaceEnvironment interface.
@@ -25,6 +26,7 @@ function instanceOfWorkspaceEnvironment(value) {
25
26
  isInstance = isInstance && "description" in value;
26
27
  isInstance = isInstance && "category" in value;
27
28
  isInstance = isInstance && "defaultComputeConfig" in value;
29
+ isInstance = isInstance && "versions" in value;
28
30
  isInstance = isInstance && "owner" in value;
29
31
  return isInstance;
30
32
  }
@@ -43,6 +45,7 @@ function WorkspaceEnvironmentFromJSONTyped(json, ignoreDiscriminator) {
43
45
  'description': json['description'],
44
46
  'category': json['category'],
45
47
  'defaultComputeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigFromJSON)(json['defaultComputeConfig']),
48
+ 'versions': (json['versions'].map(VersionSpecification_1.VersionSpecificationFromJSON)),
46
49
  'owner': json['owner'],
47
50
  };
48
51
  }
@@ -60,6 +63,7 @@ function WorkspaceEnvironmentToJSON(value) {
60
63
  'description': value.description,
61
64
  'category': value.category,
62
65
  'defaultComputeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigToJSON)(value.defaultComputeConfig),
66
+ 'versions': (value.versions.map(VersionSpecification_1.VersionSpecificationToJSON)),
63
67
  'owner': value.owner,
64
68
  };
65
69
  }
@@ -149,6 +149,7 @@ export * from './UserProjectAssignment';
149
149
  export * from './UserSettings';
150
150
  export * from './ValidateFileNamePatternsRequest';
151
151
  export * from './ValidateFileRequirementsRequest';
152
+ export * from './VersionSpecification';
152
153
  export * from './Workspace';
153
154
  export * from './WorkspaceComputeConfig';
154
155
  export * from './WorkspaceConnectionResponse';
@@ -167,6 +167,7 @@ __exportStar(require("./UserProjectAssignment"), exports);
167
167
  __exportStar(require("./UserSettings"), exports);
168
168
  __exportStar(require("./ValidateFileNamePatternsRequest"), exports);
169
169
  __exportStar(require("./ValidateFileRequirementsRequest"), exports);
170
+ __exportStar(require("./VersionSpecification"), exports);
170
171
  __exportStar(require("./Workspace"), exports);
171
172
  __exportStar(require("./WorkspaceComputeConfig"), exports);
172
173
  __exportStar(require("./WorkspaceConnectionResponse"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.11.3",
3
+ "version": "0.11.5",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {