@cirrobio/api-client 0.12.9 → 0.12.11

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.9 --save
39
+ npm install @cirrobio/api-client@0.12.11 --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, CustomPipelineSettings, CustomProcessInput, FileNameMatch, FileRequirements, FormSchema, PipelineCost, Process, ProcessDetail, ValidateFileNamePatternsRequest, ValidateFileRequirementsRequest } from '../models/index';
13
+ import type { CreateResponse, CustomPipelineSettings, CustomProcessInput, FileNameMatch, FileRequirements, FormSchema, PipelineCost, Process, ProcessDetail, ProcessDocumentation, ValidateFileNamePatternsRequest, ValidateFileRequirementsRequest } from '../models/index';
14
14
  export interface ArchiveCustomProcessRequest {
15
15
  processId: string;
16
16
  }
@@ -24,6 +24,9 @@ export interface CreateCustomProcessRequest {
24
24
  export interface GetProcessRequest {
25
25
  processId: string;
26
26
  }
27
+ export interface GetProcessDocumentationRequest {
28
+ processId: string;
29
+ }
27
30
  export interface GetProcessParametersRequest {
28
31
  processId: string;
29
32
  }
@@ -89,6 +92,16 @@ export declare class ProcessesApi extends runtime.BaseAPI {
89
92
  * Get process
90
93
  */
91
94
  getProcess(requestParameters: GetProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProcessDetail>;
95
+ /**
96
+ * Retrieves documentation for a given pipeline or data type (if available).
97
+ * Get process documentation
98
+ */
99
+ getProcessDocumentationRaw(requestParameters: GetProcessDocumentationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProcessDocumentation>>;
100
+ /**
101
+ * Retrieves documentation for a given pipeline or data type (if available).
102
+ * Get process documentation
103
+ */
104
+ getProcessDocumentation(requestParameters: GetProcessDocumentationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProcessDocumentation>;
92
105
  /**
93
106
  * Retrieves the input parameters for a process
94
107
  * Get process parameters
@@ -183,6 +183,43 @@ class ProcessesApi extends runtime.BaseAPI {
183
183
  return yield response.value();
184
184
  });
185
185
  }
186
+ /**
187
+ * Retrieves documentation for a given pipeline or data type (if available).
188
+ * Get process documentation
189
+ */
190
+ getProcessDocumentationRaw(requestParameters, initOverrides) {
191
+ return __awaiter(this, void 0, void 0, function* () {
192
+ if (requestParameters.processId === null || requestParameters.processId === undefined) {
193
+ throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling getProcessDocumentation.');
194
+ }
195
+ const queryParameters = {};
196
+ const headerParameters = {};
197
+ if (this.configuration && this.configuration.accessToken) {
198
+ const token = this.configuration.accessToken;
199
+ const tokenString = yield token("accessToken", []);
200
+ if (tokenString) {
201
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
202
+ }
203
+ }
204
+ const response = yield this.request({
205
+ path: `/processes/{processId}/documentation`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
206
+ method: 'GET',
207
+ headers: headerParameters,
208
+ query: queryParameters,
209
+ }, initOverrides);
210
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProcessDocumentationFromJSON)(jsonValue));
211
+ });
212
+ }
213
+ /**
214
+ * Retrieves documentation for a given pipeline or data type (if available).
215
+ * Get process documentation
216
+ */
217
+ getProcessDocumentation(requestParameters, initOverrides) {
218
+ return __awaiter(this, void 0, void 0, function* () {
219
+ const response = yield this.getProcessDocumentationRaw(requestParameters, initOverrides);
220
+ return yield response.value();
221
+ });
222
+ }
186
223
  /**
187
224
  * Retrieves the input parameters for a process
188
225
  * Get process parameters
@@ -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, CustomPipelineSettings, CustomProcessInput, FileNameMatch, FileRequirements, FormSchema, PipelineCost, Process, ProcessDetail, ValidateFileNamePatternsRequest, ValidateFileRequirementsRequest } from '../models/index';
13
+ import type { CreateResponse, CustomPipelineSettings, CustomProcessInput, FileNameMatch, FileRequirements, FormSchema, PipelineCost, Process, ProcessDetail, ProcessDocumentation, ValidateFileNamePatternsRequest, ValidateFileRequirementsRequest } from '../models/index';
14
14
  export interface ArchiveCustomProcessRequest {
15
15
  processId: string;
16
16
  }
@@ -24,6 +24,9 @@ export interface CreateCustomProcessRequest {
24
24
  export interface GetProcessRequest {
25
25
  processId: string;
26
26
  }
27
+ export interface GetProcessDocumentationRequest {
28
+ processId: string;
29
+ }
27
30
  export interface GetProcessParametersRequest {
28
31
  processId: string;
29
32
  }
@@ -89,6 +92,16 @@ export declare class ProcessesApi extends runtime.BaseAPI {
89
92
  * Get process
90
93
  */
91
94
  getProcess(requestParameters: GetProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProcessDetail>;
95
+ /**
96
+ * Retrieves documentation for a given pipeline or data type (if available).
97
+ * Get process documentation
98
+ */
99
+ getProcessDocumentationRaw(requestParameters: GetProcessDocumentationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProcessDocumentation>>;
100
+ /**
101
+ * Retrieves documentation for a given pipeline or data type (if available).
102
+ * Get process documentation
103
+ */
104
+ getProcessDocumentation(requestParameters: GetProcessDocumentationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProcessDocumentation>;
92
105
  /**
93
106
  * Retrieves the input parameters for a process
94
107
  * Get process parameters
@@ -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, CustomPipelineSettingsFromJSON, CustomProcessInputToJSON, FileNameMatchFromJSON, FileRequirementsFromJSON, FormSchemaFromJSON, PipelineCostFromJSON, ProcessFromJSON, ProcessDetailFromJSON, ValidateFileNamePatternsRequestToJSON, ValidateFileRequirementsRequestToJSON, } from '../models/index';
24
+ import { CreateResponseFromJSON, CustomPipelineSettingsFromJSON, CustomProcessInputToJSON, FileNameMatchFromJSON, FileRequirementsFromJSON, FormSchemaFromJSON, PipelineCostFromJSON, ProcessFromJSON, ProcessDetailFromJSON, ProcessDocumentationFromJSON, ValidateFileNamePatternsRequestToJSON, ValidateFileRequirementsRequestToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -180,6 +180,43 @@ export class ProcessesApi extends runtime.BaseAPI {
180
180
  return yield response.value();
181
181
  });
182
182
  }
183
+ /**
184
+ * Retrieves documentation for a given pipeline or data type (if available).
185
+ * Get process documentation
186
+ */
187
+ getProcessDocumentationRaw(requestParameters, initOverrides) {
188
+ return __awaiter(this, void 0, void 0, function* () {
189
+ if (requestParameters.processId === null || requestParameters.processId === undefined) {
190
+ throw new runtime.RequiredError('processId', 'Required parameter requestParameters.processId was null or undefined when calling getProcessDocumentation.');
191
+ }
192
+ const queryParameters = {};
193
+ const headerParameters = {};
194
+ if (this.configuration && this.configuration.accessToken) {
195
+ const token = this.configuration.accessToken;
196
+ const tokenString = yield token("accessToken", []);
197
+ if (tokenString) {
198
+ headerParameters["Authorization"] = `Bearer ${tokenString}`;
199
+ }
200
+ }
201
+ const response = yield this.request({
202
+ path: `/processes/{processId}/documentation`.replace(`{${"processId"}}`, encodeURIComponent(String(requestParameters.processId))),
203
+ method: 'GET',
204
+ headers: headerParameters,
205
+ query: queryParameters,
206
+ }, initOverrides);
207
+ return new runtime.JSONApiResponse(response, (jsonValue) => ProcessDocumentationFromJSON(jsonValue));
208
+ });
209
+ }
210
+ /**
211
+ * Retrieves documentation for a given pipeline or data type (if available).
212
+ * Get process documentation
213
+ */
214
+ getProcessDocumentation(requestParameters, initOverrides) {
215
+ return __awaiter(this, void 0, void 0, function* () {
216
+ const response = yield this.getProcessDocumentationRaw(requestParameters, initOverrides);
217
+ return yield response.value();
218
+ });
219
+ }
183
220
  /**
184
221
  * Retrieves the input parameters for a process
185
222
  * Get process parameters
@@ -41,10 +41,10 @@ export interface DatasetViz {
41
41
  type?: string;
42
42
  /**
43
43
  * Config or path to config used to render viz
44
- * @type {any}
44
+ * @type {object}
45
45
  * @memberof DatasetViz
46
46
  */
47
- config?: any | null;
47
+ config?: object;
48
48
  }
49
49
  /**
50
50
  * Check if a given object implements the DatasetViz interface.
@@ -64,7 +64,7 @@ export interface Discussion {
64
64
  * @type {Date}
65
65
  * @memberof Discussion
66
66
  */
67
- lastMessageTime: Date;
67
+ lastMessageTime?: Date | null;
68
68
  /**
69
69
  *
70
70
  * @type {Date}
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { exists } from '../runtime';
14
15
  import { DiscussionTypeFromJSON, DiscussionTypeToJSON, } from './DiscussionType';
15
16
  import { EntityFromJSON, EntityToJSON, } from './Entity';
16
17
  /**
@@ -25,7 +26,6 @@ export function instanceOfDiscussion(value) {
25
26
  isInstance = isInstance && "type" in value;
26
27
  isInstance = isInstance && "projectId" in value;
27
28
  isInstance = isInstance && "createdBy" in value;
28
- isInstance = isInstance && "lastMessageTime" in value;
29
29
  isInstance = isInstance && "createdAt" in value;
30
30
  isInstance = isInstance && "updatedAt" in value;
31
31
  return isInstance;
@@ -45,7 +45,7 @@ export function DiscussionFromJSONTyped(json, ignoreDiscriminator) {
45
45
  'type': DiscussionTypeFromJSON(json['type']),
46
46
  'projectId': json['projectId'],
47
47
  'createdBy': json['createdBy'],
48
- 'lastMessageTime': (new Date(json['lastMessageTime'])),
48
+ 'lastMessageTime': !exists(json, 'lastMessageTime') ? undefined : (json['lastMessageTime'] === null ? null : new Date(json['lastMessageTime'])),
49
49
  'createdAt': (new Date(json['createdAt'])),
50
50
  'updatedAt': (new Date(json['updatedAt'])),
51
51
  };
@@ -65,7 +65,7 @@ export function DiscussionToJSON(value) {
65
65
  'type': DiscussionTypeToJSON(value.type),
66
66
  'projectId': value.projectId,
67
67
  'createdBy': value.createdBy,
68
- 'lastMessageTime': (value.lastMessageTime.toISOString()),
68
+ 'lastMessageTime': value.lastMessageTime === undefined ? undefined : (value.lastMessageTime === null ? null : value.lastMessageTime.toISOString()),
69
69
  'createdAt': (value.createdAt.toISOString()),
70
70
  'updatedAt': (value.updatedAt.toISOString()),
71
71
  };
@@ -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 ProcessDocumentation
16
+ */
17
+ export interface ProcessDocumentation {
18
+ /**
19
+ * Full URI to documentation
20
+ * @type {string}
21
+ * @memberof ProcessDocumentation
22
+ */
23
+ docsUri?: string;
24
+ /**
25
+ * URI of process documentation (partial)
26
+ * @type {string}
27
+ * @memberof ProcessDocumentation
28
+ */
29
+ partialUri?: string;
30
+ /**
31
+ * Documentation content
32
+ * @type {string}
33
+ * @memberof ProcessDocumentation
34
+ */
35
+ content?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ProcessDocumentation interface.
39
+ */
40
+ export declare function instanceOfProcessDocumentation(value: object): boolean;
41
+ export declare function ProcessDocumentationFromJSON(json: any): ProcessDocumentation;
42
+ export declare function ProcessDocumentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessDocumentation;
43
+ export declare function ProcessDocumentationToJSON(value?: ProcessDocumentation | null): any;
@@ -0,0 +1,47 @@
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 ProcessDocumentation interface.
17
+ */
18
+ export function instanceOfProcessDocumentation(value) {
19
+ let isInstance = true;
20
+ return isInstance;
21
+ }
22
+ export function ProcessDocumentationFromJSON(json) {
23
+ return ProcessDocumentationFromJSONTyped(json, false);
24
+ }
25
+ export function ProcessDocumentationFromJSONTyped(json, ignoreDiscriminator) {
26
+ if ((json === undefined) || (json === null)) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'docsUri': !exists(json, 'docsUri') ? undefined : json['docsUri'],
31
+ 'partialUri': !exists(json, 'partialUri') ? undefined : json['partialUri'],
32
+ 'content': !exists(json, 'content') ? undefined : json['content'],
33
+ };
34
+ }
35
+ export function ProcessDocumentationToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'docsUri': value.docsUri,
44
+ 'partialUri': value.partialUri,
45
+ 'content': value.content,
46
+ };
47
+ }
@@ -16,7 +16,8 @@
16
16
  */
17
17
  export declare enum SharingType {
18
18
  Private = "PRIVATE",
19
- ReadWrite = "READ_WRITE"
19
+ ReadWrite = "READ_WRITE",
20
+ ReadWriteControl = "READ_WRITE_CONTROL"
20
21
  }
21
22
  export declare function SharingTypeFromJSON(json: any): SharingType;
22
23
  export declare function SharingTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharingType;
@@ -20,6 +20,7 @@ export var SharingType;
20
20
  (function (SharingType) {
21
21
  SharingType["Private"] = "PRIVATE";
22
22
  SharingType["ReadWrite"] = "READ_WRITE";
23
+ SharingType["ReadWriteControl"] = "READ_WRITE_CONTROL";
23
24
  })(SharingType || (SharingType = {}));
24
25
  export function SharingTypeFromJSON(json) {
25
26
  return SharingTypeFromJSONTyped(json, false);
@@ -22,6 +22,8 @@ export declare enum Status {
22
22
  Deleted = "DELETED",
23
23
  Deleting = "DELETING",
24
24
  Suspended = "SUSPENDED",
25
+ Stopping = "STOPPING",
26
+ Starting = "STARTING",
25
27
  Delete = "DELETE",
26
28
  Failed = "FAILED",
27
29
  Unknown = "UNKNOWN"
@@ -25,6 +25,8 @@ export var Status;
25
25
  Status["Deleted"] = "DELETED";
26
26
  Status["Deleting"] = "DELETING";
27
27
  Status["Suspended"] = "SUSPENDED";
28
+ Status["Stopping"] = "STOPPING";
29
+ Status["Starting"] = "STARTING";
28
30
  Status["Delete"] = "DELETE";
29
31
  Status["Failed"] = "FAILED";
30
32
  Status["Unknown"] = "UNKNOWN";
@@ -22,11 +22,11 @@ export interface Task {
22
22
  */
23
23
  name: string;
24
24
  /**
25
- *
25
+ * Job ID on the underlying execution environment (i.e. AWS Batch ID)
26
26
  * @type {string}
27
27
  * @memberof Task
28
28
  */
29
- nativeJobId: string;
29
+ nativeJobId?: string | null;
30
30
  /**
31
31
  *
32
32
  * @type {string}
@@ -38,37 +38,37 @@ export interface Task {
38
38
  * @type {Date}
39
39
  * @memberof Task
40
40
  */
41
- requestedAt: Date;
41
+ requestedAt?: Date | null;
42
42
  /**
43
43
  *
44
44
  * @type {Date}
45
45
  * @memberof Task
46
46
  */
47
- startedAt?: Date;
47
+ startedAt?: Date | null;
48
48
  /**
49
49
  *
50
50
  * @type {Date}
51
51
  * @memberof Task
52
52
  */
53
- stoppedAt?: Date;
53
+ stoppedAt?: Date | null;
54
54
  /**
55
55
  *
56
56
  * @type {string}
57
57
  * @memberof Task
58
58
  */
59
- containerImage?: string;
59
+ containerImage?: string | null;
60
60
  /**
61
61
  *
62
62
  * @type {string}
63
63
  * @memberof Task
64
64
  */
65
- commandLine?: string;
65
+ commandLine?: string | null;
66
66
  /**
67
67
  *
68
68
  * @type {string}
69
69
  * @memberof Task
70
70
  */
71
- logLocation?: string;
71
+ logLocation?: string | null;
72
72
  }
73
73
  /**
74
74
  * Check if a given object implements the Task interface.
@@ -18,9 +18,7 @@ import { exists } from '../runtime';
18
18
  export function instanceOfTask(value) {
19
19
  let isInstance = true;
20
20
  isInstance = isInstance && "name" in value;
21
- isInstance = isInstance && "nativeJobId" in value;
22
21
  isInstance = isInstance && "status" in value;
23
- isInstance = isInstance && "requestedAt" in value;
24
22
  return isInstance;
25
23
  }
26
24
  export function TaskFromJSON(json) {
@@ -32,11 +30,11 @@ export function TaskFromJSONTyped(json, ignoreDiscriminator) {
32
30
  }
33
31
  return {
34
32
  'name': json['name'],
35
- 'nativeJobId': json['nativeJobId'],
33
+ 'nativeJobId': !exists(json, 'nativeJobId') ? undefined : json['nativeJobId'],
36
34
  'status': json['status'],
37
- 'requestedAt': (new Date(json['requestedAt'])),
38
- 'startedAt': !exists(json, 'startedAt') ? undefined : (new Date(json['startedAt'])),
39
- 'stoppedAt': !exists(json, 'stoppedAt') ? undefined : (new Date(json['stoppedAt'])),
35
+ 'requestedAt': !exists(json, 'requestedAt') ? undefined : (json['requestedAt'] === null ? null : new Date(json['requestedAt'])),
36
+ 'startedAt': !exists(json, 'startedAt') ? undefined : (json['startedAt'] === null ? null : new Date(json['startedAt'])),
37
+ 'stoppedAt': !exists(json, 'stoppedAt') ? undefined : (json['stoppedAt'] === null ? null : new Date(json['stoppedAt'])),
40
38
  'containerImage': !exists(json, 'containerImage') ? undefined : json['containerImage'],
41
39
  'commandLine': !exists(json, 'commandLine') ? undefined : json['commandLine'],
42
40
  'logLocation': !exists(json, 'logLocation') ? undefined : json['logLocation'],
@@ -53,9 +51,9 @@ export function TaskToJSON(value) {
53
51
  'name': value.name,
54
52
  'nativeJobId': value.nativeJobId,
55
53
  'status': value.status,
56
- 'requestedAt': (value.requestedAt.toISOString()),
57
- 'startedAt': value.startedAt === undefined ? undefined : (value.startedAt.toISOString()),
58
- 'stoppedAt': value.stoppedAt === undefined ? undefined : (value.stoppedAt.toISOString()),
54
+ 'requestedAt': value.requestedAt === undefined ? undefined : (value.requestedAt === null ? null : value.requestedAt.toISOString()),
55
+ 'startedAt': value.startedAt === undefined ? undefined : (value.startedAt === null ? null : value.startedAt.toISOString()),
56
+ 'stoppedAt': value.stoppedAt === undefined ? undefined : (value.stoppedAt === null ? null : value.stoppedAt.toISOString()),
59
57
  'containerImage': value.containerImage,
60
58
  'commandLine': value.commandLine,
61
59
  'logLocation': value.logLocation,
@@ -98,6 +98,7 @@ export * from './PortalErrorResponse';
98
98
  export * from './PostponeWorkspaceAutostopInput';
99
99
  export * from './Process';
100
100
  export * from './ProcessDetail';
101
+ export * from './ProcessDocumentation';
101
102
  export * from './Project';
102
103
  export * from './ProjectAccessRequest';
103
104
  export * from './ProjectAccessType';
@@ -100,6 +100,7 @@ export * from './PortalErrorResponse';
100
100
  export * from './PostponeWorkspaceAutostopInput';
101
101
  export * from './Process';
102
102
  export * from './ProcessDetail';
103
+ export * from './ProcessDocumentation';
103
104
  export * from './Project';
104
105
  export * from './ProjectAccessRequest';
105
106
  export * from './ProjectAccessType';
@@ -41,10 +41,10 @@ export interface DatasetViz {
41
41
  type?: string;
42
42
  /**
43
43
  * Config or path to config used to render viz
44
- * @type {any}
44
+ * @type {object}
45
45
  * @memberof DatasetViz
46
46
  */
47
- config?: any | null;
47
+ config?: object;
48
48
  }
49
49
  /**
50
50
  * Check if a given object implements the DatasetViz interface.
@@ -64,7 +64,7 @@ export interface Discussion {
64
64
  * @type {Date}
65
65
  * @memberof Discussion
66
66
  */
67
- lastMessageTime: Date;
67
+ lastMessageTime?: Date | null;
68
68
  /**
69
69
  *
70
70
  * @type {Date}
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DiscussionToJSON = exports.DiscussionFromJSONTyped = exports.DiscussionFromJSON = exports.instanceOfDiscussion = void 0;
17
+ const runtime_1 = require("../runtime");
17
18
  const DiscussionType_1 = require("./DiscussionType");
18
19
  const Entity_1 = require("./Entity");
19
20
  /**
@@ -28,7 +29,6 @@ function instanceOfDiscussion(value) {
28
29
  isInstance = isInstance && "type" in value;
29
30
  isInstance = isInstance && "projectId" in value;
30
31
  isInstance = isInstance && "createdBy" in value;
31
- isInstance = isInstance && "lastMessageTime" in value;
32
32
  isInstance = isInstance && "createdAt" in value;
33
33
  isInstance = isInstance && "updatedAt" in value;
34
34
  return isInstance;
@@ -50,7 +50,7 @@ function DiscussionFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'type': (0, DiscussionType_1.DiscussionTypeFromJSON)(json['type']),
51
51
  'projectId': json['projectId'],
52
52
  'createdBy': json['createdBy'],
53
- 'lastMessageTime': (new Date(json['lastMessageTime'])),
53
+ 'lastMessageTime': !(0, runtime_1.exists)(json, 'lastMessageTime') ? undefined : (json['lastMessageTime'] === null ? null : new Date(json['lastMessageTime'])),
54
54
  'createdAt': (new Date(json['createdAt'])),
55
55
  'updatedAt': (new Date(json['updatedAt'])),
56
56
  };
@@ -71,7 +71,7 @@ function DiscussionToJSON(value) {
71
71
  'type': (0, DiscussionType_1.DiscussionTypeToJSON)(value.type),
72
72
  'projectId': value.projectId,
73
73
  'createdBy': value.createdBy,
74
- 'lastMessageTime': (value.lastMessageTime.toISOString()),
74
+ 'lastMessageTime': value.lastMessageTime === undefined ? undefined : (value.lastMessageTime === null ? null : value.lastMessageTime.toISOString()),
75
75
  'createdAt': (value.createdAt.toISOString()),
76
76
  'updatedAt': (value.updatedAt.toISOString()),
77
77
  };
@@ -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 ProcessDocumentation
16
+ */
17
+ export interface ProcessDocumentation {
18
+ /**
19
+ * Full URI to documentation
20
+ * @type {string}
21
+ * @memberof ProcessDocumentation
22
+ */
23
+ docsUri?: string;
24
+ /**
25
+ * URI of process documentation (partial)
26
+ * @type {string}
27
+ * @memberof ProcessDocumentation
28
+ */
29
+ partialUri?: string;
30
+ /**
31
+ * Documentation content
32
+ * @type {string}
33
+ * @memberof ProcessDocumentation
34
+ */
35
+ content?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ProcessDocumentation interface.
39
+ */
40
+ export declare function instanceOfProcessDocumentation(value: object): boolean;
41
+ export declare function ProcessDocumentationFromJSON(json: any): ProcessDocumentation;
42
+ export declare function ProcessDocumentationFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProcessDocumentation;
43
+ export declare function ProcessDocumentationToJSON(value?: ProcessDocumentation | null): any;
@@ -0,0 +1,54 @@
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.ProcessDocumentationToJSON = exports.ProcessDocumentationFromJSONTyped = exports.ProcessDocumentationFromJSON = exports.instanceOfProcessDocumentation = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the ProcessDocumentation interface.
20
+ */
21
+ function instanceOfProcessDocumentation(value) {
22
+ let isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfProcessDocumentation = instanceOfProcessDocumentation;
26
+ function ProcessDocumentationFromJSON(json) {
27
+ return ProcessDocumentationFromJSONTyped(json, false);
28
+ }
29
+ exports.ProcessDocumentationFromJSON = ProcessDocumentationFromJSON;
30
+ function ProcessDocumentationFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'docsUri': !(0, runtime_1.exists)(json, 'docsUri') ? undefined : json['docsUri'],
36
+ 'partialUri': !(0, runtime_1.exists)(json, 'partialUri') ? undefined : json['partialUri'],
37
+ 'content': !(0, runtime_1.exists)(json, 'content') ? undefined : json['content'],
38
+ };
39
+ }
40
+ exports.ProcessDocumentationFromJSONTyped = ProcessDocumentationFromJSONTyped;
41
+ function ProcessDocumentationToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'docsUri': value.docsUri,
50
+ 'partialUri': value.partialUri,
51
+ 'content': value.content,
52
+ };
53
+ }
54
+ exports.ProcessDocumentationToJSON = ProcessDocumentationToJSON;
@@ -16,7 +16,8 @@
16
16
  */
17
17
  export declare enum SharingType {
18
18
  Private = "PRIVATE",
19
- ReadWrite = "READ_WRITE"
19
+ ReadWrite = "READ_WRITE",
20
+ ReadWriteControl = "READ_WRITE_CONTROL"
20
21
  }
21
22
  export declare function SharingTypeFromJSON(json: any): SharingType;
22
23
  export declare function SharingTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SharingType;
@@ -23,6 +23,7 @@ var SharingType;
23
23
  (function (SharingType) {
24
24
  SharingType["Private"] = "PRIVATE";
25
25
  SharingType["ReadWrite"] = "READ_WRITE";
26
+ SharingType["ReadWriteControl"] = "READ_WRITE_CONTROL";
26
27
  })(SharingType = exports.SharingType || (exports.SharingType = {}));
27
28
  function SharingTypeFromJSON(json) {
28
29
  return SharingTypeFromJSONTyped(json, false);
@@ -22,6 +22,8 @@ export declare enum Status {
22
22
  Deleted = "DELETED",
23
23
  Deleting = "DELETING",
24
24
  Suspended = "SUSPENDED",
25
+ Stopping = "STOPPING",
26
+ Starting = "STARTING",
25
27
  Delete = "DELETE",
26
28
  Failed = "FAILED",
27
29
  Unknown = "UNKNOWN"
@@ -28,6 +28,8 @@ var Status;
28
28
  Status["Deleted"] = "DELETED";
29
29
  Status["Deleting"] = "DELETING";
30
30
  Status["Suspended"] = "SUSPENDED";
31
+ Status["Stopping"] = "STOPPING";
32
+ Status["Starting"] = "STARTING";
31
33
  Status["Delete"] = "DELETE";
32
34
  Status["Failed"] = "FAILED";
33
35
  Status["Unknown"] = "UNKNOWN";
@@ -22,11 +22,11 @@ export interface Task {
22
22
  */
23
23
  name: string;
24
24
  /**
25
- *
25
+ * Job ID on the underlying execution environment (i.e. AWS Batch ID)
26
26
  * @type {string}
27
27
  * @memberof Task
28
28
  */
29
- nativeJobId: string;
29
+ nativeJobId?: string | null;
30
30
  /**
31
31
  *
32
32
  * @type {string}
@@ -38,37 +38,37 @@ export interface Task {
38
38
  * @type {Date}
39
39
  * @memberof Task
40
40
  */
41
- requestedAt: Date;
41
+ requestedAt?: Date | null;
42
42
  /**
43
43
  *
44
44
  * @type {Date}
45
45
  * @memberof Task
46
46
  */
47
- startedAt?: Date;
47
+ startedAt?: Date | null;
48
48
  /**
49
49
  *
50
50
  * @type {Date}
51
51
  * @memberof Task
52
52
  */
53
- stoppedAt?: Date;
53
+ stoppedAt?: Date | null;
54
54
  /**
55
55
  *
56
56
  * @type {string}
57
57
  * @memberof Task
58
58
  */
59
- containerImage?: string;
59
+ containerImage?: string | null;
60
60
  /**
61
61
  *
62
62
  * @type {string}
63
63
  * @memberof Task
64
64
  */
65
- commandLine?: string;
65
+ commandLine?: string | null;
66
66
  /**
67
67
  *
68
68
  * @type {string}
69
69
  * @memberof Task
70
70
  */
71
- logLocation?: string;
71
+ logLocation?: string | null;
72
72
  }
73
73
  /**
74
74
  * Check if a given object implements the Task interface.
@@ -21,9 +21,7 @@ const runtime_1 = require("../runtime");
21
21
  function instanceOfTask(value) {
22
22
  let isInstance = true;
23
23
  isInstance = isInstance && "name" in value;
24
- isInstance = isInstance && "nativeJobId" in value;
25
24
  isInstance = isInstance && "status" in value;
26
- isInstance = isInstance && "requestedAt" in value;
27
25
  return isInstance;
28
26
  }
29
27
  exports.instanceOfTask = instanceOfTask;
@@ -37,11 +35,11 @@ function TaskFromJSONTyped(json, ignoreDiscriminator) {
37
35
  }
38
36
  return {
39
37
  'name': json['name'],
40
- 'nativeJobId': json['nativeJobId'],
38
+ 'nativeJobId': !(0, runtime_1.exists)(json, 'nativeJobId') ? undefined : json['nativeJobId'],
41
39
  'status': json['status'],
42
- 'requestedAt': (new Date(json['requestedAt'])),
43
- 'startedAt': !(0, runtime_1.exists)(json, 'startedAt') ? undefined : (new Date(json['startedAt'])),
44
- 'stoppedAt': !(0, runtime_1.exists)(json, 'stoppedAt') ? undefined : (new Date(json['stoppedAt'])),
40
+ 'requestedAt': !(0, runtime_1.exists)(json, 'requestedAt') ? undefined : (json['requestedAt'] === null ? null : new Date(json['requestedAt'])),
41
+ 'startedAt': !(0, runtime_1.exists)(json, 'startedAt') ? undefined : (json['startedAt'] === null ? null : new Date(json['startedAt'])),
42
+ 'stoppedAt': !(0, runtime_1.exists)(json, 'stoppedAt') ? undefined : (json['stoppedAt'] === null ? null : new Date(json['stoppedAt'])),
45
43
  'containerImage': !(0, runtime_1.exists)(json, 'containerImage') ? undefined : json['containerImage'],
46
44
  'commandLine': !(0, runtime_1.exists)(json, 'commandLine') ? undefined : json['commandLine'],
47
45
  'logLocation': !(0, runtime_1.exists)(json, 'logLocation') ? undefined : json['logLocation'],
@@ -59,9 +57,9 @@ function TaskToJSON(value) {
59
57
  'name': value.name,
60
58
  'nativeJobId': value.nativeJobId,
61
59
  'status': value.status,
62
- 'requestedAt': (value.requestedAt.toISOString()),
63
- 'startedAt': value.startedAt === undefined ? undefined : (value.startedAt.toISOString()),
64
- 'stoppedAt': value.stoppedAt === undefined ? undefined : (value.stoppedAt.toISOString()),
60
+ 'requestedAt': value.requestedAt === undefined ? undefined : (value.requestedAt === null ? null : value.requestedAt.toISOString()),
61
+ 'startedAt': value.startedAt === undefined ? undefined : (value.startedAt === null ? null : value.startedAt.toISOString()),
62
+ 'stoppedAt': value.stoppedAt === undefined ? undefined : (value.stoppedAt === null ? null : value.stoppedAt.toISOString()),
65
63
  'containerImage': value.containerImage,
66
64
  'commandLine': value.commandLine,
67
65
  'logLocation': value.logLocation,
@@ -98,6 +98,7 @@ export * from './PortalErrorResponse';
98
98
  export * from './PostponeWorkspaceAutostopInput';
99
99
  export * from './Process';
100
100
  export * from './ProcessDetail';
101
+ export * from './ProcessDocumentation';
101
102
  export * from './Project';
102
103
  export * from './ProjectAccessRequest';
103
104
  export * from './ProjectAccessType';
@@ -116,6 +116,7 @@ __exportStar(require("./PortalErrorResponse"), exports);
116
116
  __exportStar(require("./PostponeWorkspaceAutostopInput"), exports);
117
117
  __exportStar(require("./Process"), exports);
118
118
  __exportStar(require("./ProcessDetail"), exports);
119
+ __exportStar(require("./ProcessDocumentation"), exports);
119
120
  __exportStar(require("./Project"), exports);
120
121
  __exportStar(require("./ProjectAccessRequest"), exports);
121
122
  __exportStar(require("./ProjectAccessType"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.12.9",
3
+ "version": "0.12.11",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {