@cirrobio/api-client 0.0.12-alpha → 0.0.14-alpha

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.
@@ -17,6 +17,7 @@ src/apis/UsersApi.ts
17
17
  src/apis/index.ts
18
18
  src/index.ts
19
19
  src/models/BillingAccount.ts
20
+ src/models/BillingAccountRequest.ts
20
21
  src/models/BillingMethod.ts
21
22
  src/models/BudgetPeriod.ts
22
23
  src/models/CloudAccount.ts
@@ -38,6 +39,7 @@ src/models/NotebookInstance.ts
38
39
  src/models/NotebookInstanceStatusResponse.ts
39
40
  src/models/OpenNotebookInstanceResponse.ts
40
41
  src/models/PaginatedResponseDatasetListDto.ts
42
+ src/models/PaginatedResponseSampleDto.ts
41
43
  src/models/Process.ts
42
44
  src/models/ProcessDetail.ts
43
45
  src/models/Project.ts
@@ -52,6 +54,7 @@ src/models/ReferenceType.ts
52
54
  src/models/RegisterDatasetRequest.ts
53
55
  src/models/RegisterPublicDataRequest.ts
54
56
  src/models/Sample.ts
57
+ src/models/SampleRequest.ts
55
58
  src/models/ServiceConnection.ts
56
59
  src/models/SetUserProjectRoleRequest.ts
57
60
  src/models/Status.ts
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.0.12-alpha --save
39
+ npm install @cirrobio/api-client@0.0.14-alpha --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -10,9 +10,9 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BillingAccount, CreateResponse } from '../models/index';
13
+ import type { BillingAccount, BillingAccountRequest, CreateResponse } from '../models/index';
14
14
  export interface CreateBillingAccountRequest {
15
- billingAccount: BillingAccount;
15
+ billingAccountRequest: BillingAccountRequest;
16
16
  }
17
17
  export interface DeleteBillingAccountRequest {
18
18
  billingAccountId: string;
@@ -22,7 +22,7 @@ export interface GetBillingAccountsRequest {
22
22
  }
23
23
  export interface UpdateBillingAccountRequest {
24
24
  billingAccountId: string;
25
- billingAccount: BillingAccount;
25
+ billingAccountRequest: BillingAccountRequest;
26
26
  }
27
27
  /**
28
28
  *
@@ -85,8 +85,8 @@ var BillingApi = /** @class */ (function (_super) {
85
85
  return __generator(this, function (_a) {
86
86
  switch (_a.label) {
87
87
  case 0:
88
- if (requestParameters.billingAccount === null || requestParameters.billingAccount === undefined) {
89
- throw new runtime.RequiredError('billingAccount', 'Required parameter requestParameters.billingAccount was null or undefined when calling createBillingAccount.');
88
+ if (requestParameters.billingAccountRequest === null || requestParameters.billingAccountRequest === undefined) {
89
+ throw new runtime.RequiredError('billingAccountRequest', 'Required parameter requestParameters.billingAccountRequest was null or undefined when calling createBillingAccount.');
90
90
  }
91
91
  queryParameters = {};
92
92
  headerParameters = {};
@@ -105,7 +105,7 @@ var BillingApi = /** @class */ (function (_super) {
105
105
  method: 'POST',
106
106
  headers: headerParameters,
107
107
  query: queryParameters,
108
- body: (0, index_1.BillingAccountToJSON)(requestParameters.billingAccount),
108
+ body: (0, index_1.BillingAccountRequestToJSON)(requestParameters.billingAccountRequest),
109
109
  }, initOverrides)];
110
110
  case 3:
111
111
  response = _a.sent();
@@ -304,8 +304,8 @@ var BillingApi = /** @class */ (function (_super) {
304
304
  if (requestParameters.billingAccountId === null || requestParameters.billingAccountId === undefined) {
305
305
  throw new runtime.RequiredError('billingAccountId', 'Required parameter requestParameters.billingAccountId was null or undefined when calling updateBillingAccount.');
306
306
  }
307
- if (requestParameters.billingAccount === null || requestParameters.billingAccount === undefined) {
308
- throw new runtime.RequiredError('billingAccount', 'Required parameter requestParameters.billingAccount was null or undefined when calling updateBillingAccount.');
307
+ if (requestParameters.billingAccountRequest === null || requestParameters.billingAccountRequest === undefined) {
308
+ throw new runtime.RequiredError('billingAccountRequest', 'Required parameter requestParameters.billingAccountRequest was null or undefined when calling updateBillingAccount.');
309
309
  }
310
310
  queryParameters = {};
311
311
  headerParameters = {};
@@ -324,7 +324,7 @@ var BillingApi = /** @class */ (function (_super) {
324
324
  method: 'PUT',
325
325
  headers: headerParameters,
326
326
  query: queryParameters,
327
- body: (0, index_1.BillingAccountToJSON)(requestParameters.billingAccount),
327
+ body: (0, index_1.BillingAccountRequestToJSON)(requestParameters.billingAccountRequest),
328
328
  }, initOverrides)];
329
329
  case 3:
330
330
  response = _a.sent();
@@ -10,16 +10,19 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { FormSchema, Sample } from '../models/index';
13
+ import type { FormSchema, PaginatedResponseSampleDto, Sample, SampleRequest } from '../models/index';
14
14
  export interface GetProjectSamplesRequest {
15
15
  projectId: string;
16
+ limit: number;
17
+ nextToken: string;
16
18
  }
17
19
  export interface GetProjectSchemaRequest {
18
20
  projectId: string;
19
21
  }
20
22
  export interface UpdateSampleRequest {
21
23
  projectId: string;
22
- sample: Sample;
24
+ sampleId: string;
25
+ sampleRequest: SampleRequest;
23
26
  }
24
27
  /**
25
28
  *
@@ -28,11 +31,11 @@ export declare class MetadataApi extends runtime.BaseAPI {
28
31
  /**
29
32
  * Get project samples
30
33
  */
31
- getProjectSamplesRaw(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Sample>>>;
34
+ getProjectSamplesRaw(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseSampleDto>>;
32
35
  /**
33
36
  * Get project samples
34
37
  */
35
- getProjectSamples(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Sample>>;
38
+ getProjectSamples(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseSampleDto>;
36
39
  /**
37
40
  * Get project metadata schema
38
41
  */
@@ -87,7 +87,19 @@ var MetadataApi = /** @class */ (function (_super) {
87
87
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
88
88
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProjectSamples.');
89
89
  }
90
+ if (requestParameters.limit === null || requestParameters.limit === undefined) {
91
+ throw new runtime.RequiredError('limit', 'Required parameter requestParameters.limit was null or undefined when calling getProjectSamples.');
92
+ }
93
+ if (requestParameters.nextToken === null || requestParameters.nextToken === undefined) {
94
+ throw new runtime.RequiredError('nextToken', 'Required parameter requestParameters.nextToken was null or undefined when calling getProjectSamples.');
95
+ }
90
96
  queryParameters = {};
97
+ if (requestParameters.limit !== undefined) {
98
+ queryParameters['limit'] = requestParameters.limit;
99
+ }
100
+ if (requestParameters.nextToken !== undefined) {
101
+ queryParameters['nextToken'] = requestParameters.nextToken;
102
+ }
91
103
  headerParameters = {};
92
104
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
93
105
  token = this.configuration.accessToken;
@@ -106,7 +118,7 @@ var MetadataApi = /** @class */ (function (_super) {
106
118
  }, initOverrides)];
107
119
  case 3:
108
120
  response = _a.sent();
109
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.SampleFromJSON); })];
121
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedResponseSampleDtoFromJSON)(jsonValue); })];
110
122
  }
111
123
  });
112
124
  });
@@ -193,8 +205,11 @@ var MetadataApi = /** @class */ (function (_super) {
193
205
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
194
206
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling updateSample.');
195
207
  }
196
- if (requestParameters.sample === null || requestParameters.sample === undefined) {
197
- throw new runtime.RequiredError('sample', 'Required parameter requestParameters.sample was null or undefined when calling updateSample.');
208
+ if (requestParameters.sampleId === null || requestParameters.sampleId === undefined) {
209
+ throw new runtime.RequiredError('sampleId', 'Required parameter requestParameters.sampleId was null or undefined when calling updateSample.');
210
+ }
211
+ if (requestParameters.sampleRequest === null || requestParameters.sampleRequest === undefined) {
212
+ throw new runtime.RequiredError('sampleRequest', 'Required parameter requestParameters.sampleRequest was null or undefined when calling updateSample.');
198
213
  }
199
214
  queryParameters = {};
200
215
  headerParameters = {};
@@ -209,11 +224,11 @@ var MetadataApi = /** @class */ (function (_super) {
209
224
  }
210
225
  _a.label = 2;
211
226
  case 2: return [4 /*yield*/, this.request({
212
- path: "/projects/{projectId}/samples".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
227
+ path: "/projects/{projectId}/samples/{sampleId}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("sampleId", "}"), encodeURIComponent(String(requestParameters.sampleId))),
213
228
  method: 'PUT',
214
229
  headers: headerParameters,
215
230
  query: queryParameters,
216
- body: (0, index_1.SampleToJSON)(requestParameters.sample),
231
+ body: (0, index_1.SampleRequestToJSON)(requestParameters.sampleRequest),
217
232
  }, initOverrides)];
218
233
  case 3:
219
234
  response = _a.sent();
@@ -0,0 +1,70 @@
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 { BillingMethod } from './BillingMethod';
13
+ import type { Contact } from './Contact';
14
+ import type { CustomerType } from './CustomerType';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface BillingAccountRequest
19
+ */
20
+ export interface BillingAccountRequest {
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof BillingAccountRequest
25
+ */
26
+ name: string;
27
+ /**
28
+ *
29
+ * @type {Array<Contact>}
30
+ * @memberof BillingAccountRequest
31
+ */
32
+ contacts: Array<Contact>;
33
+ /**
34
+ *
35
+ * @type {CustomerType}
36
+ * @memberof BillingAccountRequest
37
+ */
38
+ customerType: CustomerType;
39
+ /**
40
+ *
41
+ * @type {BillingMethod}
42
+ * @memberof BillingAccountRequest
43
+ */
44
+ billingMethod: BillingMethod;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof BillingAccountRequest
49
+ */
50
+ primaryBudgetNumber: string;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof BillingAccountRequest
55
+ */
56
+ owner: string;
57
+ /**
58
+ *
59
+ * @type {Array<string>}
60
+ * @memberof BillingAccountRequest
61
+ */
62
+ sharedWith: Array<string>;
63
+ }
64
+ /**
65
+ * Check if a given object implements the BillingAccountRequest interface.
66
+ */
67
+ export declare function instanceOfBillingAccountRequest(value: object): boolean;
68
+ export declare function BillingAccountRequestFromJSON(json: any): BillingAccountRequest;
69
+ export declare function BillingAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingAccountRequest;
70
+ export declare function BillingAccountRequestToJSON(value?: BillingAccountRequest | null): any;
@@ -0,0 +1,71 @@
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.BillingAccountRequestToJSON = exports.BillingAccountRequestFromJSONTyped = exports.BillingAccountRequestFromJSON = exports.instanceOfBillingAccountRequest = void 0;
17
+ var BillingMethod_1 = require("./BillingMethod");
18
+ var Contact_1 = require("./Contact");
19
+ var CustomerType_1 = require("./CustomerType");
20
+ /**
21
+ * Check if a given object implements the BillingAccountRequest interface.
22
+ */
23
+ function instanceOfBillingAccountRequest(value) {
24
+ var isInstance = true;
25
+ isInstance = isInstance && "name" in value;
26
+ isInstance = isInstance && "contacts" in value;
27
+ isInstance = isInstance && "customerType" in value;
28
+ isInstance = isInstance && "billingMethod" in value;
29
+ isInstance = isInstance && "primaryBudgetNumber" in value;
30
+ isInstance = isInstance && "owner" in value;
31
+ isInstance = isInstance && "sharedWith" in value;
32
+ return isInstance;
33
+ }
34
+ exports.instanceOfBillingAccountRequest = instanceOfBillingAccountRequest;
35
+ function BillingAccountRequestFromJSON(json) {
36
+ return BillingAccountRequestFromJSONTyped(json, false);
37
+ }
38
+ exports.BillingAccountRequestFromJSON = BillingAccountRequestFromJSON;
39
+ function BillingAccountRequestFromJSONTyped(json, ignoreDiscriminator) {
40
+ if ((json === undefined) || (json === null)) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'name': json['name'],
45
+ 'contacts': (json['contacts'].map(Contact_1.ContactFromJSON)),
46
+ 'customerType': (0, CustomerType_1.CustomerTypeFromJSON)(json['customerType']),
47
+ 'billingMethod': (0, BillingMethod_1.BillingMethodFromJSON)(json['billingMethod']),
48
+ 'primaryBudgetNumber': json['primaryBudgetNumber'],
49
+ 'owner': json['owner'],
50
+ 'sharedWith': json['sharedWith'],
51
+ };
52
+ }
53
+ exports.BillingAccountRequestFromJSONTyped = BillingAccountRequestFromJSONTyped;
54
+ function BillingAccountRequestToJSON(value) {
55
+ if (value === undefined) {
56
+ return undefined;
57
+ }
58
+ if (value === null) {
59
+ return null;
60
+ }
61
+ return {
62
+ 'name': value.name,
63
+ 'contacts': (value.contacts.map(Contact_1.ContactToJSON)),
64
+ 'customerType': (0, CustomerType_1.CustomerTypeToJSON)(value.customerType),
65
+ 'billingMethod': (0, BillingMethod_1.BillingMethodToJSON)(value.billingMethod),
66
+ 'primaryBudgetNumber': value.primaryBudgetNumber,
67
+ 'owner': value.owner,
68
+ 'sharedWith': value.sharedWith,
69
+ };
70
+ }
71
+ exports.BillingAccountRequestToJSON = BillingAccountRequestToJSON;
@@ -33,6 +33,12 @@ export interface Dashboard {
33
33
  * @memberof Dashboard
34
34
  */
35
35
  description: string;
36
+ /**
37
+ *
38
+ * @type {Array<string>}
39
+ * @memberof Dashboard
40
+ */
41
+ processIds: Array<string>;
36
42
  /**
37
43
  *
38
44
  * @type {{ [key: string]: any; }}
@@ -22,6 +22,7 @@ function instanceOfDashboard(value) {
22
22
  isInstance = isInstance && "id" in value;
23
23
  isInstance = isInstance && "name" in value;
24
24
  isInstance = isInstance && "description" in value;
25
+ isInstance = isInstance && "processIds" in value;
25
26
  isInstance = isInstance && "dashboardData" in value;
26
27
  isInstance = isInstance && "info" in value;
27
28
  isInstance = isInstance && "createdBy" in value;
@@ -42,6 +43,7 @@ function DashboardFromJSONTyped(json, ignoreDiscriminator) {
42
43
  'id': json['id'],
43
44
  'name': json['name'],
44
45
  'description': json['description'],
46
+ 'processIds': json['processIds'],
45
47
  'dashboardData': json['dashboardData'],
46
48
  'info': json['info'],
47
49
  'createdBy': json['createdBy'],
@@ -61,6 +63,7 @@ function DashboardToJSON(value) {
61
63
  'id': value.id,
62
64
  'name': value.name,
63
65
  'description': value.description,
66
+ 'processIds': value.processIds,
64
67
  'dashboardData': value.dashboardData,
65
68
  'info': value.info,
66
69
  'createdBy': value.createdBy,
@@ -27,6 +27,12 @@ export interface DashboardRequest {
27
27
  * @memberof DashboardRequest
28
28
  */
29
29
  description: string;
30
+ /**
31
+ *
32
+ * @type {Array<string>}
33
+ * @memberof DashboardRequest
34
+ */
35
+ processIds: Array<string>;
30
36
  /**
31
37
  *
32
38
  * @type {{ [key: string]: any; }}
@@ -21,6 +21,7 @@ function instanceOfDashboardRequest(value) {
21
21
  var isInstance = true;
22
22
  isInstance = isInstance && "name" in value;
23
23
  isInstance = isInstance && "description" in value;
24
+ isInstance = isInstance && "processIds" in value;
24
25
  isInstance = isInstance && "dashboardData" in value;
25
26
  isInstance = isInstance && "info" in value;
26
27
  return isInstance;
@@ -37,6 +38,7 @@ function DashboardRequestFromJSONTyped(json, ignoreDiscriminator) {
37
38
  return {
38
39
  'name': json['name'],
39
40
  'description': json['description'],
41
+ 'processIds': json['processIds'],
40
42
  'dashboardData': json['dashboardData'],
41
43
  'info': json['info'],
42
44
  };
@@ -52,6 +54,7 @@ function DashboardRequestToJSON(value) {
52
54
  return {
53
55
  'name': value.name,
54
56
  'description': value.description,
57
+ 'processIds': value.processIds,
55
58
  'dashboardData': value.dashboardData,
56
59
  'info': value.info,
57
60
  };
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { Status } from './Status';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -27,6 +28,30 @@ export interface NotebookInstance {
27
28
  * @memberof NotebookInstance
28
29
  */
29
30
  name: string;
31
+ /**
32
+ *
33
+ * @type {Status}
34
+ * @memberof NotebookInstance
35
+ */
36
+ status: Status;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof NotebookInstance
41
+ */
42
+ instanceType: string;
43
+ /**
44
+ *
45
+ * @type {Array<string>}
46
+ * @memberof NotebookInstance
47
+ */
48
+ acceleratorTypes: Array<string>;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof NotebookInstance
53
+ */
54
+ volumeSizeGB: number;
30
55
  /**
31
56
  *
32
57
  * @type {string}
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.NotebookInstanceToJSON = exports.NotebookInstanceFromJSONTyped = exports.NotebookInstanceFromJSON = exports.instanceOfNotebookInstance = void 0;
17
+ var Status_1 = require("./Status");
17
18
  /**
18
19
  * Check if a given object implements the NotebookInstance interface.
19
20
  */
@@ -21,6 +22,10 @@ function instanceOfNotebookInstance(value) {
21
22
  var isInstance = true;
22
23
  isInstance = isInstance && "id" in value;
23
24
  isInstance = isInstance && "name" in value;
25
+ isInstance = isInstance && "status" in value;
26
+ isInstance = isInstance && "instanceType" in value;
27
+ isInstance = isInstance && "acceleratorTypes" in value;
28
+ isInstance = isInstance && "volumeSizeGB" in value;
24
29
  isInstance = isInstance && "createdBy" in value;
25
30
  return isInstance;
26
31
  }
@@ -36,6 +41,10 @@ function NotebookInstanceFromJSONTyped(json, ignoreDiscriminator) {
36
41
  return {
37
42
  'id': json['id'],
38
43
  'name': json['name'],
44
+ 'status': (0, Status_1.StatusFromJSON)(json['status']),
45
+ 'instanceType': json['instanceType'],
46
+ 'acceleratorTypes': json['acceleratorTypes'],
47
+ 'volumeSizeGB': json['volumeSizeGB'],
39
48
  'createdBy': json['createdBy'],
40
49
  };
41
50
  }
@@ -50,6 +59,10 @@ function NotebookInstanceToJSON(value) {
50
59
  return {
51
60
  'id': value.id,
52
61
  'name': value.name,
62
+ 'status': (0, Status_1.StatusToJSON)(value.status),
63
+ 'instanceType': value.instanceType,
64
+ 'acceleratorTypes': value.acceleratorTypes,
65
+ 'volumeSizeGB': value.volumeSizeGB,
53
66
  'createdBy': value.createdBy,
54
67
  };
55
68
  }
@@ -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 { Sample } from './Sample';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedResponseSampleDto
17
+ */
18
+ export interface PaginatedResponseSampleDto {
19
+ /**
20
+ *
21
+ * @type {Array<Sample>}
22
+ * @memberof PaginatedResponseSampleDto
23
+ */
24
+ data: Array<Sample>;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PaginatedResponseSampleDto
29
+ */
30
+ nextToken: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PaginatedResponseSampleDto interface.
34
+ */
35
+ export declare function instanceOfPaginatedResponseSampleDto(value: object): boolean;
36
+ export declare function PaginatedResponseSampleDtoFromJSON(json: any): PaginatedResponseSampleDto;
37
+ export declare function PaginatedResponseSampleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseSampleDto;
38
+ export declare function PaginatedResponseSampleDtoToJSON(value?: PaginatedResponseSampleDto | 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.PaginatedResponseSampleDtoToJSON = exports.PaginatedResponseSampleDtoFromJSONTyped = exports.PaginatedResponseSampleDtoFromJSON = exports.instanceOfPaginatedResponseSampleDto = void 0;
17
+ var Sample_1 = require("./Sample");
18
+ /**
19
+ * Check if a given object implements the PaginatedResponseSampleDto interface.
20
+ */
21
+ function instanceOfPaginatedResponseSampleDto(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "data" in value;
24
+ isInstance = isInstance && "nextToken" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfPaginatedResponseSampleDto = instanceOfPaginatedResponseSampleDto;
28
+ function PaginatedResponseSampleDtoFromJSON(json) {
29
+ return PaginatedResponseSampleDtoFromJSONTyped(json, false);
30
+ }
31
+ exports.PaginatedResponseSampleDtoFromJSON = PaginatedResponseSampleDtoFromJSON;
32
+ function PaginatedResponseSampleDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'data': (json['data'].map(Sample_1.SampleFromJSON)),
38
+ 'nextToken': json['nextToken'],
39
+ };
40
+ }
41
+ exports.PaginatedResponseSampleDtoFromJSONTyped = PaginatedResponseSampleDtoFromJSONTyped;
42
+ function PaginatedResponseSampleDtoToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'data': (value.data.map(Sample_1.SampleToJSON)),
51
+ 'nextToken': value.nextToken,
52
+ };
53
+ }
54
+ exports.PaginatedResponseSampleDtoToJSON = PaginatedResponseSampleDtoToJSON;
@@ -35,6 +35,12 @@ export interface Sample {
35
35
  metadata: {
36
36
  [key: string]: any;
37
37
  };
38
+ /**
39
+ *
40
+ * @type {Array<string>}
41
+ * @memberof Sample
42
+ */
43
+ datasetIds: Array<string>;
38
44
  /**
39
45
  *
40
46
  * @type {Date}
@@ -22,6 +22,7 @@ function instanceOfSample(value) {
22
22
  isInstance = isInstance && "id" in value;
23
23
  isInstance = isInstance && "name" in value;
24
24
  isInstance = isInstance && "metadata" in value;
25
+ isInstance = isInstance && "datasetIds" in value;
25
26
  isInstance = isInstance && "createdAt" in value;
26
27
  isInstance = isInstance && "updatedAt" in value;
27
28
  return isInstance;
@@ -39,6 +40,7 @@ function SampleFromJSONTyped(json, ignoreDiscriminator) {
39
40
  'id': json['id'],
40
41
  'name': json['name'],
41
42
  'metadata': json['metadata'],
43
+ 'datasetIds': json['datasetIds'],
42
44
  'createdAt': (new Date(json['createdAt'])),
43
45
  'updatedAt': (new Date(json['updatedAt'])),
44
46
  };
@@ -55,6 +57,7 @@ function SampleToJSON(value) {
55
57
  'id': value.id,
56
58
  'name': value.name,
57
59
  'metadata': value.metadata,
60
+ 'datasetIds': value.datasetIds,
58
61
  'createdAt': (value.createdAt.toISOString()),
59
62
  'updatedAt': (value.updatedAt.toISOString()),
60
63
  };
@@ -0,0 +1,39 @@
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 SampleRequest
16
+ */
17
+ export interface SampleRequest {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof SampleRequest
22
+ */
23
+ name: string;
24
+ /**
25
+ *
26
+ * @type {{ [key: string]: any; }}
27
+ * @memberof SampleRequest
28
+ */
29
+ metadata: {
30
+ [key: string]: any;
31
+ };
32
+ }
33
+ /**
34
+ * Check if a given object implements the SampleRequest interface.
35
+ */
36
+ export declare function instanceOfSampleRequest(value: object): boolean;
37
+ export declare function SampleRequestFromJSON(json: any): SampleRequest;
38
+ export declare function SampleRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SampleRequest;
39
+ export declare function SampleRequestToJSON(value?: SampleRequest | null): any;