@cirrobio/api-client 0.1.10 → 0.1.12

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.
Files changed (38) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +1 -1
  3. package/dist/apis/ProcessesApi.d.ts +15 -1
  4. package/dist/apis/ProcessesApi.js +60 -0
  5. package/dist/apis/ProjectsApi.d.ts +68 -1
  6. package/dist/apis/ProjectsApi.js +287 -0
  7. package/dist/models/ApproveAccessRequest.d.ts +32 -0
  8. package/dist/models/ApproveAccessRequest.js +51 -0
  9. package/dist/models/ApproveProjectAccessRequest.d.ts +32 -0
  10. package/dist/models/ApproveProjectAccessRequest.js +51 -0
  11. package/dist/models/CreateProjectAccessRequest.d.ts +38 -0
  12. package/dist/models/CreateProjectAccessRequest.js +54 -0
  13. package/dist/models/PipelineCost.d.ts +43 -0
  14. package/dist/models/PipelineCost.js +54 -0
  15. package/dist/models/ProjectAccessRequest.d.ts +75 -0
  16. package/dist/models/ProjectAccessRequest.js +73 -0
  17. package/dist/models/ProjectSettings.d.ts +6 -0
  18. package/dist/models/ProjectSettings.js +2 -0
  19. package/dist/models/RequestStatus.d.ts +24 -0
  20. package/dist/models/RequestStatus.js +39 -0
  21. package/dist/models/Sample.d.ts +5 -5
  22. package/dist/models/Sample.js +7 -10
  23. package/dist/models/index.d.ts +5 -0
  24. package/dist/models/index.js +5 -0
  25. package/dist/runtime.js +1 -1
  26. package/package.json +1 -1
  27. package/src/apis/ProcessesApi.ts +55 -0
  28. package/src/apis/ProjectsApi.ts +250 -0
  29. package/src/models/ApproveAccessRequest.ts +73 -0
  30. package/src/models/ApproveProjectAccessRequest.ts +73 -0
  31. package/src/models/CreateProjectAccessRequest.ts +82 -0
  32. package/src/models/PipelineCost.ts +81 -0
  33. package/src/models/ProjectAccessRequest.ts +142 -0
  34. package/src/models/ProjectSettings.ts +8 -0
  35. package/src/models/RequestStatus.ts +38 -0
  36. package/src/models/Sample.ts +10 -14
  37. package/src/models/index.ts +5 -0
  38. package/src/runtime.ts +1 -1
@@ -0,0 +1,51 @@
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.ApproveProjectAccessRequestToJSON = exports.ApproveProjectAccessRequestFromJSONTyped = exports.ApproveProjectAccessRequestFromJSON = exports.instanceOfApproveProjectAccessRequest = void 0;
17
+ var ProjectRole_1 = require("./ProjectRole");
18
+ /**
19
+ * Check if a given object implements the ApproveProjectAccessRequest interface.
20
+ */
21
+ function instanceOfApproveProjectAccessRequest(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "role" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfApproveProjectAccessRequest = instanceOfApproveProjectAccessRequest;
27
+ function ApproveProjectAccessRequestFromJSON(json) {
28
+ return ApproveProjectAccessRequestFromJSONTyped(json, false);
29
+ }
30
+ exports.ApproveProjectAccessRequestFromJSON = ApproveProjectAccessRequestFromJSON;
31
+ function ApproveProjectAccessRequestFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'role': (0, ProjectRole_1.ProjectRoleFromJSON)(json['role']),
37
+ };
38
+ }
39
+ exports.ApproveProjectAccessRequestFromJSONTyped = ApproveProjectAccessRequestFromJSONTyped;
40
+ function ApproveProjectAccessRequestToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'role': (0, ProjectRole_1.ProjectRoleToJSON)(value.role),
49
+ };
50
+ }
51
+ exports.ApproveProjectAccessRequestToJSON = ApproveProjectAccessRequestToJSON;
@@ -0,0 +1,38 @@
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 { ProjectRole } from './ProjectRole';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateProjectAccessRequest
17
+ */
18
+ export interface CreateProjectAccessRequest {
19
+ /**
20
+ *
21
+ * @type {ProjectRole}
22
+ * @memberof CreateProjectAccessRequest
23
+ */
24
+ role: ProjectRole;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof CreateProjectAccessRequest
29
+ */
30
+ message: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the CreateProjectAccessRequest interface.
34
+ */
35
+ export declare function instanceOfCreateProjectAccessRequest(value: object): boolean;
36
+ export declare function CreateProjectAccessRequestFromJSON(json: any): CreateProjectAccessRequest;
37
+ export declare function CreateProjectAccessRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateProjectAccessRequest;
38
+ export declare function CreateProjectAccessRequestToJSON(value?: CreateProjectAccessRequest | 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.CreateProjectAccessRequestToJSON = exports.CreateProjectAccessRequestFromJSONTyped = exports.CreateProjectAccessRequestFromJSON = exports.instanceOfCreateProjectAccessRequest = void 0;
17
+ var ProjectRole_1 = require("./ProjectRole");
18
+ /**
19
+ * Check if a given object implements the CreateProjectAccessRequest interface.
20
+ */
21
+ function instanceOfCreateProjectAccessRequest(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "role" in value;
24
+ isInstance = isInstance && "message" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfCreateProjectAccessRequest = instanceOfCreateProjectAccessRequest;
28
+ function CreateProjectAccessRequestFromJSON(json) {
29
+ return CreateProjectAccessRequestFromJSONTyped(json, false);
30
+ }
31
+ exports.CreateProjectAccessRequestFromJSON = CreateProjectAccessRequestFromJSON;
32
+ function CreateProjectAccessRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'role': (0, ProjectRole_1.ProjectRoleFromJSON)(json['role']),
38
+ 'message': json['message'],
39
+ };
40
+ }
41
+ exports.CreateProjectAccessRequestFromJSONTyped = CreateProjectAccessRequestFromJSONTyped;
42
+ function CreateProjectAccessRequestToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'role': (0, ProjectRole_1.ProjectRoleToJSON)(value.role),
51
+ 'message': value.message,
52
+ };
53
+ }
54
+ exports.CreateProjectAccessRequestToJSON = CreateProjectAccessRequestToJSON;
@@ -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 PipelineCost
16
+ */
17
+ export interface PipelineCost {
18
+ /**
19
+ * The total cost of running the pipeline
20
+ * @type {number}
21
+ * @memberof PipelineCost
22
+ */
23
+ totalCost?: number | null;
24
+ /**
25
+ * Is this an estimate of the cost?
26
+ * @type {boolean}
27
+ * @memberof PipelineCost
28
+ */
29
+ isEstimate?: boolean;
30
+ /**
31
+ * Description of the cost calculation
32
+ * @type {string}
33
+ * @memberof PipelineCost
34
+ */
35
+ description?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the PipelineCost interface.
39
+ */
40
+ export declare function instanceOfPipelineCost(value: object): boolean;
41
+ export declare function PipelineCostFromJSON(json: any): PipelineCost;
42
+ export declare function PipelineCostFromJSONTyped(json: any, ignoreDiscriminator: boolean): PipelineCost;
43
+ export declare function PipelineCostToJSON(value?: PipelineCost | 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.PipelineCostToJSON = exports.PipelineCostFromJSONTyped = exports.PipelineCostFromJSON = exports.instanceOfPipelineCost = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the PipelineCost interface.
20
+ */
21
+ function instanceOfPipelineCost(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfPipelineCost = instanceOfPipelineCost;
26
+ function PipelineCostFromJSON(json) {
27
+ return PipelineCostFromJSONTyped(json, false);
28
+ }
29
+ exports.PipelineCostFromJSON = PipelineCostFromJSON;
30
+ function PipelineCostFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'totalCost': !(0, runtime_1.exists)(json, 'totalCost') ? undefined : json['totalCost'],
36
+ 'isEstimate': !(0, runtime_1.exists)(json, 'isEstimate') ? undefined : json['isEstimate'],
37
+ 'description': !(0, runtime_1.exists)(json, 'description') ? undefined : json['description'],
38
+ };
39
+ }
40
+ exports.PipelineCostFromJSONTyped = PipelineCostFromJSONTyped;
41
+ function PipelineCostToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'totalCost': value.totalCost,
50
+ 'isEstimate': value.isEstimate,
51
+ 'description': value.description,
52
+ };
53
+ }
54
+ exports.PipelineCostToJSON = PipelineCostToJSON;
@@ -0,0 +1,75 @@
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 { ProjectRole } from './ProjectRole';
13
+ import type { RequestStatus } from './RequestStatus';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface ProjectAccessRequest
18
+ */
19
+ export interface ProjectAccessRequest {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof ProjectAccessRequest
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof ProjectAccessRequest
30
+ */
31
+ username: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ProjectAccessRequest
36
+ */
37
+ projectId: string;
38
+ /**
39
+ *
40
+ * @type {ProjectRole}
41
+ * @memberof ProjectAccessRequest
42
+ */
43
+ role: ProjectRole;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof ProjectAccessRequest
48
+ */
49
+ message: string;
50
+ /**
51
+ *
52
+ * @type {RequestStatus}
53
+ * @memberof ProjectAccessRequest
54
+ */
55
+ status: RequestStatus;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof ProjectAccessRequest
60
+ */
61
+ reviewerUsername: string;
62
+ /**
63
+ *
64
+ * @type {Date}
65
+ * @memberof ProjectAccessRequest
66
+ */
67
+ createdAt: Date;
68
+ }
69
+ /**
70
+ * Check if a given object implements the ProjectAccessRequest interface.
71
+ */
72
+ export declare function instanceOfProjectAccessRequest(value: object): boolean;
73
+ export declare function ProjectAccessRequestFromJSON(json: any): ProjectAccessRequest;
74
+ export declare function ProjectAccessRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProjectAccessRequest;
75
+ export declare function ProjectAccessRequestToJSON(value?: ProjectAccessRequest | null): any;
@@ -0,0 +1,73 @@
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.ProjectAccessRequestToJSON = exports.ProjectAccessRequestFromJSONTyped = exports.ProjectAccessRequestFromJSON = exports.instanceOfProjectAccessRequest = void 0;
17
+ var ProjectRole_1 = require("./ProjectRole");
18
+ var RequestStatus_1 = require("./RequestStatus");
19
+ /**
20
+ * Check if a given object implements the ProjectAccessRequest interface.
21
+ */
22
+ function instanceOfProjectAccessRequest(value) {
23
+ var isInstance = true;
24
+ isInstance = isInstance && "id" in value;
25
+ isInstance = isInstance && "username" in value;
26
+ isInstance = isInstance && "projectId" in value;
27
+ isInstance = isInstance && "role" in value;
28
+ isInstance = isInstance && "message" in value;
29
+ isInstance = isInstance && "status" in value;
30
+ isInstance = isInstance && "reviewerUsername" in value;
31
+ isInstance = isInstance && "createdAt" in value;
32
+ return isInstance;
33
+ }
34
+ exports.instanceOfProjectAccessRequest = instanceOfProjectAccessRequest;
35
+ function ProjectAccessRequestFromJSON(json) {
36
+ return ProjectAccessRequestFromJSONTyped(json, false);
37
+ }
38
+ exports.ProjectAccessRequestFromJSON = ProjectAccessRequestFromJSON;
39
+ function ProjectAccessRequestFromJSONTyped(json, ignoreDiscriminator) {
40
+ if ((json === undefined) || (json === null)) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'username': json['username'],
46
+ 'projectId': json['projectId'],
47
+ 'role': (0, ProjectRole_1.ProjectRoleFromJSON)(json['role']),
48
+ 'message': json['message'],
49
+ 'status': (0, RequestStatus_1.RequestStatusFromJSON)(json['status']),
50
+ 'reviewerUsername': json['reviewerUsername'],
51
+ 'createdAt': (new Date(json['createdAt'])),
52
+ };
53
+ }
54
+ exports.ProjectAccessRequestFromJSONTyped = ProjectAccessRequestFromJSONTyped;
55
+ function ProjectAccessRequestToJSON(value) {
56
+ if (value === undefined) {
57
+ return undefined;
58
+ }
59
+ if (value === null) {
60
+ return null;
61
+ }
62
+ return {
63
+ 'id': value.id,
64
+ 'username': value.username,
65
+ 'projectId': value.projectId,
66
+ 'role': (0, ProjectRole_1.ProjectRoleToJSON)(value.role),
67
+ 'message': value.message,
68
+ 'status': (0, RequestStatus_1.RequestStatusToJSON)(value.status),
69
+ 'reviewerUsername': value.reviewerUsername,
70
+ 'createdAt': (value.createdAt.toISOString()),
71
+ };
72
+ }
73
+ exports.ProjectAccessRequestToJSON = ProjectAccessRequestToJSON;
@@ -106,6 +106,12 @@ export interface ProjectSettings {
106
106
  * @memberof ProjectSettings
107
107
  */
108
108
  kmsArn?: string | null;
109
+ /**
110
+ * Enables the project to be discoverable by other users
111
+ * @type {boolean}
112
+ * @memberof ProjectSettings
113
+ */
114
+ isDiscoverable?: boolean | null;
109
115
  }
110
116
  /**
111
117
  * Check if a given object implements the ProjectSettings interface.
@@ -50,6 +50,7 @@ function ProjectSettingsFromJSONTyped(json, ignoreDiscriminator) {
50
50
  'batchSubnets': !(0, runtime_1.exists)(json, 'batchSubnets') ? undefined : json['batchSubnets'],
51
51
  'sagemakerSubnets': !(0, runtime_1.exists)(json, 'sagemakerSubnets') ? undefined : json['sagemakerSubnets'],
52
52
  'kmsArn': !(0, runtime_1.exists)(json, 'kmsArn') ? undefined : json['kmsArn'],
53
+ 'isDiscoverable': !(0, runtime_1.exists)(json, 'isDiscoverable') ? undefined : json['isDiscoverable'],
53
54
  };
54
55
  }
55
56
  exports.ProjectSettingsFromJSONTyped = ProjectSettingsFromJSONTyped;
@@ -76,6 +77,7 @@ function ProjectSettingsToJSON(value) {
76
77
  'batchSubnets': value.batchSubnets,
77
78
  'sagemakerSubnets': value.sagemakerSubnets,
78
79
  'kmsArn': value.kmsArn,
80
+ 'isDiscoverable': value.isDiscoverable,
79
81
  };
80
82
  }
81
83
  exports.ProjectSettingsToJSON = ProjectSettingsToJSON;
@@ -0,0 +1,24 @@
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
+ * @enum {string}
16
+ */
17
+ export declare enum RequestStatus {
18
+ Pending = "PENDING",
19
+ Accepted = "ACCEPTED",
20
+ Denied = "DENIED"
21
+ }
22
+ export declare function RequestStatusFromJSON(json: any): RequestStatus;
23
+ export declare function RequestStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): RequestStatus;
24
+ export declare function RequestStatusToJSON(value?: RequestStatus | null): any;
@@ -0,0 +1,39 @@
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.RequestStatusToJSON = exports.RequestStatusFromJSONTyped = exports.RequestStatusFromJSON = exports.RequestStatus = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var RequestStatus;
23
+ (function (RequestStatus) {
24
+ RequestStatus["Pending"] = "PENDING";
25
+ RequestStatus["Accepted"] = "ACCEPTED";
26
+ RequestStatus["Denied"] = "DENIED";
27
+ })(RequestStatus = exports.RequestStatus || (exports.RequestStatus = {}));
28
+ function RequestStatusFromJSON(json) {
29
+ return RequestStatusFromJSONTyped(json, false);
30
+ }
31
+ exports.RequestStatusFromJSON = RequestStatusFromJSON;
32
+ function RequestStatusFromJSONTyped(json, ignoreDiscriminator) {
33
+ return json;
34
+ }
35
+ exports.RequestStatusFromJSONTyped = RequestStatusFromJSONTyped;
36
+ function RequestStatusToJSON(value) {
37
+ return value;
38
+ }
39
+ exports.RequestStatusToJSON = RequestStatusToJSON;
@@ -32,27 +32,27 @@ export interface Sample {
32
32
  * @type {{ [key: string]: any; }}
33
33
  * @memberof Sample
34
34
  */
35
- metadata: {
35
+ metadata?: {
36
36
  [key: string]: any;
37
- };
37
+ } | null;
38
38
  /**
39
39
  *
40
40
  * @type {Array<string>}
41
41
  * @memberof Sample
42
42
  */
43
- datasetIds: Array<string>;
43
+ datasetIds?: Array<string> | null;
44
44
  /**
45
45
  *
46
46
  * @type {Date}
47
47
  * @memberof Sample
48
48
  */
49
- createdAt: Date;
49
+ createdAt?: Date | null;
50
50
  /**
51
51
  *
52
52
  * @type {Date}
53
53
  * @memberof Sample
54
54
  */
55
- updatedAt: Date;
55
+ updatedAt?: Date | null;
56
56
  }
57
57
  /**
58
58
  * Check if a given object implements the Sample interface.
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.SampleToJSON = exports.SampleFromJSONTyped = exports.SampleFromJSON = exports.instanceOfSample = void 0;
17
+ var runtime_1 = require("../runtime");
17
18
  /**
18
19
  * Check if a given object implements the Sample interface.
19
20
  */
@@ -21,10 +22,6 @@ function instanceOfSample(value) {
21
22
  var isInstance = true;
22
23
  isInstance = isInstance && "id" in value;
23
24
  isInstance = isInstance && "name" in value;
24
- isInstance = isInstance && "metadata" in value;
25
- isInstance = isInstance && "datasetIds" in value;
26
- isInstance = isInstance && "createdAt" in value;
27
- isInstance = isInstance && "updatedAt" in value;
28
25
  return isInstance;
29
26
  }
30
27
  exports.instanceOfSample = instanceOfSample;
@@ -39,10 +36,10 @@ function SampleFromJSONTyped(json, ignoreDiscriminator) {
39
36
  return {
40
37
  'id': json['id'],
41
38
  'name': json['name'],
42
- 'metadata': json['metadata'],
43
- 'datasetIds': json['datasetIds'],
44
- 'createdAt': (new Date(json['createdAt'])),
45
- 'updatedAt': (new Date(json['updatedAt'])),
39
+ 'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : json['metadata'],
40
+ 'datasetIds': !(0, runtime_1.exists)(json, 'datasetIds') ? undefined : json['datasetIds'],
41
+ 'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (json['createdAt'] === null ? null : new Date(json['createdAt'])),
42
+ 'updatedAt': !(0, runtime_1.exists)(json, 'updatedAt') ? undefined : (json['updatedAt'] === null ? null : new Date(json['updatedAt'])),
46
43
  };
47
44
  }
48
45
  exports.SampleFromJSONTyped = SampleFromJSONTyped;
@@ -58,8 +55,8 @@ function SampleToJSON(value) {
58
55
  'name': value.name,
59
56
  'metadata': value.metadata,
60
57
  'datasetIds': value.datasetIds,
61
- 'createdAt': (value.createdAt.toISOString()),
62
- 'updatedAt': (value.updatedAt.toISOString()),
58
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt === null ? null : value.createdAt.toISOString()),
59
+ 'updatedAt': value.updatedAt === undefined ? undefined : (value.updatedAt === null ? null : value.updatedAt.toISOString()),
63
60
  };
64
61
  }
65
62
  exports.SampleToJSON = SampleToJSON;
@@ -1,6 +1,7 @@
1
1
  export * from './AWSCredentials';
2
2
  export * from './AccessType';
3
3
  export * from './AllowedDataType';
4
+ export * from './ApproveProjectAccessRequest';
4
5
  export * from './AuditEvent';
5
6
  export * from './AuthInfo';
6
7
  export * from './BillingAccount';
@@ -12,6 +13,7 @@ export * from './CloudAccountType';
12
13
  export * from './ColumnDefinition';
13
14
  export * from './Contact';
14
15
  export * from './CreateNotebookInstanceRequest';
16
+ export * from './CreateProjectAccessRequest';
15
17
  export * from './CreateReferenceRequest';
16
18
  export * from './CreateResponse';
17
19
  export * from './CustomPipelineSettings';
@@ -44,10 +46,12 @@ export * from './OpenNotebookInstanceResponse';
44
46
  export * from './PaginatedResponseDatasetListDto';
45
47
  export * from './PaginatedResponseSampleDto';
46
48
  export * from './PipelineCode';
49
+ export * from './PipelineCost';
47
50
  export * from './PortalErrorResponse';
48
51
  export * from './Process';
49
52
  export * from './ProcessDetail';
50
53
  export * from './Project';
54
+ export * from './ProjectAccessRequest';
51
55
  export * from './ProjectDetail';
52
56
  export * from './ProjectMetrics';
53
57
  export * from './ProjectRequest';
@@ -57,6 +61,7 @@ export * from './ProjectUser';
57
61
  export * from './Reference';
58
62
  export * from './ReferenceType';
59
63
  export * from './RepositoryType';
64
+ export * from './RequestStatus';
60
65
  export * from './ResourcesInfo';
61
66
  export * from './RunAnalysisRequest';
62
67
  export * from './Sample';
@@ -19,6 +19,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
19
19
  __exportStar(require("./AWSCredentials"), exports);
20
20
  __exportStar(require("./AccessType"), exports);
21
21
  __exportStar(require("./AllowedDataType"), exports);
22
+ __exportStar(require("./ApproveProjectAccessRequest"), exports);
22
23
  __exportStar(require("./AuditEvent"), exports);
23
24
  __exportStar(require("./AuthInfo"), exports);
24
25
  __exportStar(require("./BillingAccount"), exports);
@@ -30,6 +31,7 @@ __exportStar(require("./CloudAccountType"), exports);
30
31
  __exportStar(require("./ColumnDefinition"), exports);
31
32
  __exportStar(require("./Contact"), exports);
32
33
  __exportStar(require("./CreateNotebookInstanceRequest"), exports);
34
+ __exportStar(require("./CreateProjectAccessRequest"), exports);
33
35
  __exportStar(require("./CreateReferenceRequest"), exports);
34
36
  __exportStar(require("./CreateResponse"), exports);
35
37
  __exportStar(require("./CustomPipelineSettings"), exports);
@@ -62,10 +64,12 @@ __exportStar(require("./OpenNotebookInstanceResponse"), exports);
62
64
  __exportStar(require("./PaginatedResponseDatasetListDto"), exports);
63
65
  __exportStar(require("./PaginatedResponseSampleDto"), exports);
64
66
  __exportStar(require("./PipelineCode"), exports);
67
+ __exportStar(require("./PipelineCost"), exports);
65
68
  __exportStar(require("./PortalErrorResponse"), exports);
66
69
  __exportStar(require("./Process"), exports);
67
70
  __exportStar(require("./ProcessDetail"), exports);
68
71
  __exportStar(require("./Project"), exports);
72
+ __exportStar(require("./ProjectAccessRequest"), exports);
69
73
  __exportStar(require("./ProjectDetail"), exports);
70
74
  __exportStar(require("./ProjectMetrics"), exports);
71
75
  __exportStar(require("./ProjectRequest"), exports);
@@ -75,6 +79,7 @@ __exportStar(require("./ProjectUser"), exports);
75
79
  __exportStar(require("./Reference"), exports);
76
80
  __exportStar(require("./ReferenceType"), exports);
77
81
  __exportStar(require("./RepositoryType"), exports);
82
+ __exportStar(require("./RequestStatus"), exports);
78
83
  __exportStar(require("./ResourcesInfo"), exports);
79
84
  __exportStar(require("./RunAnalysisRequest"), exports);
80
85
  __exportStar(require("./Sample"), exports);
package/dist/runtime.js CHANGED
@@ -76,7 +76,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
76
76
  };
77
77
  Object.defineProperty(exports, "__esModule", { value: true });
78
78
  exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
79
- exports.BASE_PATH = "https://dev.cirro.bio/api".replace(/\/+$/, "");
79
+ exports.BASE_PATH = "https://app.cirro.bio/api".replace(/\/+$/, "");
80
80
  var Configuration = /** @class */ (function () {
81
81
  function Configuration(configuration) {
82
82
  if (configuration === void 0) { configuration = {}; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {