@cirrobio/api-client 0.12.3 → 0.12.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.12.3 --save
39
+ npm install @cirrobio/api-client@0.12.5 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -22,6 +22,7 @@ export declare enum EntityType {
22
22
  Process = "PROCESS",
23
23
  Reference = "REFERENCE",
24
24
  Notebook = "NOTEBOOK",
25
+ Workspace = "WORKSPACE",
25
26
  Sample = "SAMPLE",
26
27
  Share = "SHARE",
27
28
  Tag = "TAG",
@@ -25,6 +25,7 @@ export var EntityType;
25
25
  EntityType["Process"] = "PROCESS";
26
26
  EntityType["Reference"] = "REFERENCE";
27
27
  EntityType["Notebook"] = "NOTEBOOK";
28
+ EntityType["Workspace"] = "WORKSPACE";
28
29
  EntityType["Sample"] = "SAMPLE";
29
30
  EntityType["Share"] = "SHARE";
30
31
  EntityType["Tag"] = "TAG";
@@ -74,6 +74,12 @@ export interface Workspace {
74
74
  * @memberof Workspace
75
75
  */
76
76
  sharingType: SharingType;
77
+ /**
78
+ *
79
+ * @type {number}
80
+ * @memberof Workspace
81
+ */
82
+ autoStopTimeout?: number | null;
77
83
  /**
78
84
  *
79
85
  * @type {Array<WorkspaceSession>}
@@ -53,6 +53,7 @@ export function WorkspaceFromJSONTyped(json, ignoreDiscriminator) {
53
53
  'mountedDatasets': (json['mountedDatasets'].map(MountedDatasetFromJSON)),
54
54
  'computeConfig': WorkspaceComputeConfigFromJSON(json['computeConfig']),
55
55
  'sharingType': SharingTypeFromJSON(json['sharingType']),
56
+ 'autoStopTimeout': !exists(json, 'autoStopTimeout') ? undefined : json['autoStopTimeout'],
56
57
  'sessions': !exists(json, 'sessions') ? undefined : (json['sessions'] === null ? null : json['sessions'].map(WorkspaceSessionFromJSON)),
57
58
  'createdBy': json['createdBy'],
58
59
  'createdAt': (new Date(json['createdAt'])),
@@ -77,6 +78,7 @@ export function WorkspaceToJSON(value) {
77
78
  'mountedDatasets': (value.mountedDatasets.map(MountedDatasetToJSON)),
78
79
  'computeConfig': WorkspaceComputeConfigToJSON(value.computeConfig),
79
80
  'sharingType': SharingTypeToJSON(value.sharingType),
81
+ 'autoStopTimeout': value.autoStopTimeout,
80
82
  'sessions': value.sessions === undefined ? undefined : (value.sessions === null ? null : value.sessions.map(WorkspaceSessionToJSON)),
81
83
  'createdBy': value.createdBy,
82
84
  'createdAt': (value.createdAt.toISOString()),
@@ -54,6 +54,12 @@ export interface WorkspaceInput {
54
54
  * @memberof WorkspaceInput
55
55
  */
56
56
  sharingType: SharingType;
57
+ /**
58
+ * Time period (in hours) to automatically stop the workspace if running
59
+ * @type {number}
60
+ * @memberof WorkspaceInput
61
+ */
62
+ autoStopTimeout?: number | null;
57
63
  }
58
64
  /**
59
65
  * Check if a given object implements the WorkspaceInput interface.
@@ -40,6 +40,7 @@ export function WorkspaceInputFromJSONTyped(json, ignoreDiscriminator) {
40
40
  'environmentId': !exists(json, 'environmentId') ? undefined : json['environmentId'],
41
41
  'computeConfig': WorkspaceComputeConfigFromJSON(json['computeConfig']),
42
42
  'sharingType': SharingTypeFromJSON(json['sharingType']),
43
+ 'autoStopTimeout': !exists(json, 'autoStopTimeout') ? undefined : json['autoStopTimeout'],
43
44
  };
44
45
  }
45
46
  export function WorkspaceInputToJSON(value) {
@@ -56,5 +57,6 @@ export function WorkspaceInputToJSON(value) {
56
57
  'environmentId': value.environmentId,
57
58
  'computeConfig': WorkspaceComputeConfigToJSON(value.computeConfig),
58
59
  'sharingType': SharingTypeToJSON(value.sharingType),
60
+ 'autoStopTimeout': value.autoStopTimeout,
59
61
  };
60
62
  }
@@ -22,6 +22,7 @@ export declare enum EntityType {
22
22
  Process = "PROCESS",
23
23
  Reference = "REFERENCE",
24
24
  Notebook = "NOTEBOOK",
25
+ Workspace = "WORKSPACE",
25
26
  Sample = "SAMPLE",
26
27
  Share = "SHARE",
27
28
  Tag = "TAG",
@@ -28,6 +28,7 @@ var EntityType;
28
28
  EntityType["Process"] = "PROCESS";
29
29
  EntityType["Reference"] = "REFERENCE";
30
30
  EntityType["Notebook"] = "NOTEBOOK";
31
+ EntityType["Workspace"] = "WORKSPACE";
31
32
  EntityType["Sample"] = "SAMPLE";
32
33
  EntityType["Share"] = "SHARE";
33
34
  EntityType["Tag"] = "TAG";
@@ -74,6 +74,12 @@ export interface Workspace {
74
74
  * @memberof Workspace
75
75
  */
76
76
  sharingType: SharingType;
77
+ /**
78
+ *
79
+ * @type {number}
80
+ * @memberof Workspace
81
+ */
82
+ autoStopTimeout?: number | null;
77
83
  /**
78
84
  *
79
85
  * @type {Array<WorkspaceSession>}
@@ -58,6 +58,7 @@ function WorkspaceFromJSONTyped(json, ignoreDiscriminator) {
58
58
  'mountedDatasets': (json['mountedDatasets'].map(MountedDataset_1.MountedDatasetFromJSON)),
59
59
  'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigFromJSON)(json['computeConfig']),
60
60
  'sharingType': (0, SharingType_1.SharingTypeFromJSON)(json['sharingType']),
61
+ 'autoStopTimeout': !(0, runtime_1.exists)(json, 'autoStopTimeout') ? undefined : json['autoStopTimeout'],
61
62
  'sessions': !(0, runtime_1.exists)(json, 'sessions') ? undefined : (json['sessions'] === null ? null : json['sessions'].map(WorkspaceSession_1.WorkspaceSessionFromJSON)),
62
63
  'createdBy': json['createdBy'],
63
64
  'createdAt': (new Date(json['createdAt'])),
@@ -83,6 +84,7 @@ function WorkspaceToJSON(value) {
83
84
  'mountedDatasets': (value.mountedDatasets.map(MountedDataset_1.MountedDatasetToJSON)),
84
85
  'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigToJSON)(value.computeConfig),
85
86
  'sharingType': (0, SharingType_1.SharingTypeToJSON)(value.sharingType),
87
+ 'autoStopTimeout': value.autoStopTimeout,
86
88
  'sessions': value.sessions === undefined ? undefined : (value.sessions === null ? null : value.sessions.map(WorkspaceSession_1.WorkspaceSessionToJSON)),
87
89
  'createdBy': value.createdBy,
88
90
  'createdAt': (value.createdAt.toISOString()),
@@ -54,6 +54,12 @@ export interface WorkspaceInput {
54
54
  * @memberof WorkspaceInput
55
55
  */
56
56
  sharingType: SharingType;
57
+ /**
58
+ * Time period (in hours) to automatically stop the workspace if running
59
+ * @type {number}
60
+ * @memberof WorkspaceInput
61
+ */
62
+ autoStopTimeout?: number | null;
57
63
  }
58
64
  /**
59
65
  * Check if a given object implements the WorkspaceInput interface.
@@ -45,6 +45,7 @@ function WorkspaceInputFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'environmentId': !(0, runtime_1.exists)(json, 'environmentId') ? undefined : json['environmentId'],
46
46
  'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigFromJSON)(json['computeConfig']),
47
47
  'sharingType': (0, SharingType_1.SharingTypeFromJSON)(json['sharingType']),
48
+ 'autoStopTimeout': !(0, runtime_1.exists)(json, 'autoStopTimeout') ? undefined : json['autoStopTimeout'],
48
49
  };
49
50
  }
50
51
  exports.WorkspaceInputFromJSONTyped = WorkspaceInputFromJSONTyped;
@@ -62,6 +63,7 @@ function WorkspaceInputToJSON(value) {
62
63
  'environmentId': value.environmentId,
63
64
  'computeConfig': (0, WorkspaceComputeConfig_1.WorkspaceComputeConfigToJSON)(value.computeConfig),
64
65
  'sharingType': (0, SharingType_1.SharingTypeToJSON)(value.sharingType),
66
+ 'autoStopTimeout': value.autoStopTimeout,
65
67
  };
66
68
  }
67
69
  exports.WorkspaceInputToJSON = WorkspaceInputToJSON;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.12.3",
3
+ "version": "0.12.5",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {