@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.
- package/.openapi-generator/FILES +3 -0
- package/README.md +1 -1
- package/dist/apis/BillingApi.d.ts +3 -3
- package/dist/apis/BillingApi.js +6 -6
- package/dist/apis/MetadataApi.d.ts +7 -4
- package/dist/apis/MetadataApi.js +20 -5
- package/dist/models/BillingAccountRequest.d.ts +70 -0
- package/dist/models/BillingAccountRequest.js +71 -0
- package/dist/models/Dashboard.d.ts +6 -0
- package/dist/models/Dashboard.js +3 -0
- package/dist/models/DashboardRequest.d.ts +6 -0
- package/dist/models/DashboardRequest.js +3 -0
- package/dist/models/NotebookInstance.d.ts +25 -0
- package/dist/models/NotebookInstance.js +13 -0
- package/dist/models/PaginatedResponseSampleDto.d.ts +38 -0
- package/dist/models/PaginatedResponseSampleDto.js +54 -0
- package/dist/models/Sample.d.ts +6 -0
- package/dist/models/Sample.js +3 -0
- package/dist/models/SampleRequest.d.ts +39 -0
- package/dist/models/SampleRequest.js +53 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/package.json +1 -1
- package/src/apis/BillingApi.ts +11 -8
- package/src/apis/MetadataApi.ts +37 -8
- package/src/models/BillingAccountRequest.ts +139 -0
- package/src/models/Dashboard.ts +9 -0
- package/src/models/DashboardRequest.ts +9 -0
- package/src/models/NotebookInstance.ts +43 -0
- package/src/models/PaginatedResponseSampleDto.ts +82 -0
- package/src/models/Sample.ts +9 -0
- package/src/models/SampleRequest.ts +75 -0
- package/src/models/index.ts +3 -0
|
@@ -0,0 +1,53 @@
|
|
|
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.SampleRequestToJSON = exports.SampleRequestFromJSONTyped = exports.SampleRequestFromJSON = exports.instanceOfSampleRequest = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the SampleRequest interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfSampleRequest(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "name" in value;
|
|
23
|
+
isInstance = isInstance && "metadata" in value;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfSampleRequest = instanceOfSampleRequest;
|
|
27
|
+
function SampleRequestFromJSON(json) {
|
|
28
|
+
return SampleRequestFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.SampleRequestFromJSON = SampleRequestFromJSON;
|
|
31
|
+
function SampleRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'name': json['name'],
|
|
37
|
+
'metadata': json['metadata'],
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
exports.SampleRequestFromJSONTyped = SampleRequestFromJSONTyped;
|
|
41
|
+
function SampleRequestToJSON(value) {
|
|
42
|
+
if (value === undefined) {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
if (value === null) {
|
|
46
|
+
return null;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'name': value.name,
|
|
50
|
+
'metadata': value.metadata,
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.SampleRequestToJSON = SampleRequestToJSON;
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './BillingAccount';
|
|
2
|
+
export * from './BillingAccountRequest';
|
|
2
3
|
export * from './BillingMethod';
|
|
3
4
|
export * from './BudgetPeriod';
|
|
4
5
|
export * from './CloudAccount';
|
|
@@ -20,6 +21,7 @@ export * from './NotebookInstance';
|
|
|
20
21
|
export * from './NotebookInstanceStatusResponse';
|
|
21
22
|
export * from './OpenNotebookInstanceResponse';
|
|
22
23
|
export * from './PaginatedResponseDatasetListDto';
|
|
24
|
+
export * from './PaginatedResponseSampleDto';
|
|
23
25
|
export * from './Process';
|
|
24
26
|
export * from './ProcessDetail';
|
|
25
27
|
export * from './Project';
|
|
@@ -34,6 +36,7 @@ export * from './ReferenceType';
|
|
|
34
36
|
export * from './RegisterDatasetRequest';
|
|
35
37
|
export * from './RegisterPublicDataRequest';
|
|
36
38
|
export * from './Sample';
|
|
39
|
+
export * from './SampleRequest';
|
|
37
40
|
export * from './ServiceConnection';
|
|
38
41
|
export * from './SetUserProjectRoleRequest';
|
|
39
42
|
export * from './Status';
|
package/dist/models/index.js
CHANGED
|
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./BillingAccount"), exports);
|
|
20
|
+
__exportStar(require("./BillingAccountRequest"), exports);
|
|
20
21
|
__exportStar(require("./BillingMethod"), exports);
|
|
21
22
|
__exportStar(require("./BudgetPeriod"), exports);
|
|
22
23
|
__exportStar(require("./CloudAccount"), exports);
|
|
@@ -38,6 +39,7 @@ __exportStar(require("./NotebookInstance"), exports);
|
|
|
38
39
|
__exportStar(require("./NotebookInstanceStatusResponse"), exports);
|
|
39
40
|
__exportStar(require("./OpenNotebookInstanceResponse"), exports);
|
|
40
41
|
__exportStar(require("./PaginatedResponseDatasetListDto"), exports);
|
|
42
|
+
__exportStar(require("./PaginatedResponseSampleDto"), exports);
|
|
41
43
|
__exportStar(require("./Process"), exports);
|
|
42
44
|
__exportStar(require("./ProcessDetail"), exports);
|
|
43
45
|
__exportStar(require("./Project"), exports);
|
|
@@ -52,6 +54,7 @@ __exportStar(require("./ReferenceType"), exports);
|
|
|
52
54
|
__exportStar(require("./RegisterDatasetRequest"), exports);
|
|
53
55
|
__exportStar(require("./RegisterPublicDataRequest"), exports);
|
|
54
56
|
__exportStar(require("./Sample"), exports);
|
|
57
|
+
__exportStar(require("./SampleRequest"), exports);
|
|
55
58
|
__exportStar(require("./ServiceConnection"), exports);
|
|
56
59
|
__exportStar(require("./SetUserProjectRoleRequest"), exports);
|
|
57
60
|
__exportStar(require("./Status"), exports);
|
package/package.json
CHANGED
package/src/apis/BillingApi.ts
CHANGED
|
@@ -16,17 +16,20 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
BillingAccount,
|
|
19
|
+
BillingAccountRequest,
|
|
19
20
|
CreateResponse,
|
|
20
21
|
} from '../models/index';
|
|
21
22
|
import {
|
|
22
23
|
BillingAccountFromJSON,
|
|
23
24
|
BillingAccountToJSON,
|
|
25
|
+
BillingAccountRequestFromJSON,
|
|
26
|
+
BillingAccountRequestToJSON,
|
|
24
27
|
CreateResponseFromJSON,
|
|
25
28
|
CreateResponseToJSON,
|
|
26
29
|
} from '../models/index';
|
|
27
30
|
|
|
28
31
|
export interface CreateBillingAccountRequest {
|
|
29
|
-
|
|
32
|
+
billingAccountRequest: BillingAccountRequest;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
export interface DeleteBillingAccountRequest {
|
|
@@ -39,7 +42,7 @@ export interface GetBillingAccountsRequest {
|
|
|
39
42
|
|
|
40
43
|
export interface UpdateBillingAccountRequest {
|
|
41
44
|
billingAccountId: string;
|
|
42
|
-
|
|
45
|
+
billingAccountRequest: BillingAccountRequest;
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
/**
|
|
@@ -52,8 +55,8 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
52
55
|
* Create billing account
|
|
53
56
|
*/
|
|
54
57
|
async createBillingAccountRaw(requestParameters: CreateBillingAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>> {
|
|
55
|
-
if (requestParameters.
|
|
56
|
-
throw new runtime.RequiredError('
|
|
58
|
+
if (requestParameters.billingAccountRequest === null || requestParameters.billingAccountRequest === undefined) {
|
|
59
|
+
throw new runtime.RequiredError('billingAccountRequest','Required parameter requestParameters.billingAccountRequest was null or undefined when calling createBillingAccount.');
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
const queryParameters: any = {};
|
|
@@ -75,7 +78,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
75
78
|
method: 'POST',
|
|
76
79
|
headers: headerParameters,
|
|
77
80
|
query: queryParameters,
|
|
78
|
-
body:
|
|
81
|
+
body: BillingAccountRequestToJSON(requestParameters.billingAccountRequest),
|
|
79
82
|
}, initOverrides);
|
|
80
83
|
|
|
81
84
|
return new runtime.JSONApiResponse(response, (jsonValue) => CreateResponseFromJSON(jsonValue));
|
|
@@ -213,8 +216,8 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
213
216
|
throw new runtime.RequiredError('billingAccountId','Required parameter requestParameters.billingAccountId was null or undefined when calling updateBillingAccount.');
|
|
214
217
|
}
|
|
215
218
|
|
|
216
|
-
if (requestParameters.
|
|
217
|
-
throw new runtime.RequiredError('
|
|
219
|
+
if (requestParameters.billingAccountRequest === null || requestParameters.billingAccountRequest === undefined) {
|
|
220
|
+
throw new runtime.RequiredError('billingAccountRequest','Required parameter requestParameters.billingAccountRequest was null or undefined when calling updateBillingAccount.');
|
|
218
221
|
}
|
|
219
222
|
|
|
220
223
|
const queryParameters: any = {};
|
|
@@ -236,7 +239,7 @@ export class BillingApi extends runtime.BaseAPI {
|
|
|
236
239
|
method: 'PUT',
|
|
237
240
|
headers: headerParameters,
|
|
238
241
|
query: queryParameters,
|
|
239
|
-
body:
|
|
242
|
+
body: BillingAccountRequestToJSON(requestParameters.billingAccountRequest),
|
|
240
243
|
}, initOverrides);
|
|
241
244
|
|
|
242
245
|
return new runtime.VoidApiResponse(response);
|
package/src/apis/MetadataApi.ts
CHANGED
|
@@ -16,17 +16,25 @@
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
18
|
FormSchema,
|
|
19
|
+
PaginatedResponseSampleDto,
|
|
19
20
|
Sample,
|
|
21
|
+
SampleRequest,
|
|
20
22
|
} from '../models/index';
|
|
21
23
|
import {
|
|
22
24
|
FormSchemaFromJSON,
|
|
23
25
|
FormSchemaToJSON,
|
|
26
|
+
PaginatedResponseSampleDtoFromJSON,
|
|
27
|
+
PaginatedResponseSampleDtoToJSON,
|
|
24
28
|
SampleFromJSON,
|
|
25
29
|
SampleToJSON,
|
|
30
|
+
SampleRequestFromJSON,
|
|
31
|
+
SampleRequestToJSON,
|
|
26
32
|
} from '../models/index';
|
|
27
33
|
|
|
28
34
|
export interface GetProjectSamplesRequest {
|
|
29
35
|
projectId: string;
|
|
36
|
+
limit: number;
|
|
37
|
+
nextToken: string;
|
|
30
38
|
}
|
|
31
39
|
|
|
32
40
|
export interface GetProjectSchemaRequest {
|
|
@@ -35,7 +43,8 @@ export interface GetProjectSchemaRequest {
|
|
|
35
43
|
|
|
36
44
|
export interface UpdateSampleRequest {
|
|
37
45
|
projectId: string;
|
|
38
|
-
|
|
46
|
+
sampleId: string;
|
|
47
|
+
sampleRequest: SampleRequest;
|
|
39
48
|
}
|
|
40
49
|
|
|
41
50
|
/**
|
|
@@ -46,13 +55,29 @@ export class MetadataApi extends runtime.BaseAPI {
|
|
|
46
55
|
/**
|
|
47
56
|
* Get project samples
|
|
48
57
|
*/
|
|
49
|
-
async getProjectSamplesRaw(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
58
|
+
async getProjectSamplesRaw(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseSampleDto>> {
|
|
50
59
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
51
60
|
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getProjectSamples.');
|
|
52
61
|
}
|
|
53
62
|
|
|
63
|
+
if (requestParameters.limit === null || requestParameters.limit === undefined) {
|
|
64
|
+
throw new runtime.RequiredError('limit','Required parameter requestParameters.limit was null or undefined when calling getProjectSamples.');
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
if (requestParameters.nextToken === null || requestParameters.nextToken === undefined) {
|
|
68
|
+
throw new runtime.RequiredError('nextToken','Required parameter requestParameters.nextToken was null or undefined when calling getProjectSamples.');
|
|
69
|
+
}
|
|
70
|
+
|
|
54
71
|
const queryParameters: any = {};
|
|
55
72
|
|
|
73
|
+
if (requestParameters.limit !== undefined) {
|
|
74
|
+
queryParameters['limit'] = requestParameters.limit;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if (requestParameters.nextToken !== undefined) {
|
|
78
|
+
queryParameters['nextToken'] = requestParameters.nextToken;
|
|
79
|
+
}
|
|
80
|
+
|
|
56
81
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
57
82
|
|
|
58
83
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -70,13 +95,13 @@ export class MetadataApi extends runtime.BaseAPI {
|
|
|
70
95
|
query: queryParameters,
|
|
71
96
|
}, initOverrides);
|
|
72
97
|
|
|
73
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue
|
|
98
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedResponseSampleDtoFromJSON(jsonValue));
|
|
74
99
|
}
|
|
75
100
|
|
|
76
101
|
/**
|
|
77
102
|
* Get project samples
|
|
78
103
|
*/
|
|
79
|
-
async getProjectSamples(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
104
|
+
async getProjectSamples(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseSampleDto> {
|
|
80
105
|
const response = await this.getProjectSamplesRaw(requestParameters, initOverrides);
|
|
81
106
|
return await response.value();
|
|
82
107
|
}
|
|
@@ -127,8 +152,12 @@ export class MetadataApi extends runtime.BaseAPI {
|
|
|
127
152
|
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling updateSample.');
|
|
128
153
|
}
|
|
129
154
|
|
|
130
|
-
if (requestParameters.
|
|
131
|
-
throw new runtime.RequiredError('
|
|
155
|
+
if (requestParameters.sampleId === null || requestParameters.sampleId === undefined) {
|
|
156
|
+
throw new runtime.RequiredError('sampleId','Required parameter requestParameters.sampleId was null or undefined when calling updateSample.');
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (requestParameters.sampleRequest === null || requestParameters.sampleRequest === undefined) {
|
|
160
|
+
throw new runtime.RequiredError('sampleRequest','Required parameter requestParameters.sampleRequest was null or undefined when calling updateSample.');
|
|
132
161
|
}
|
|
133
162
|
|
|
134
163
|
const queryParameters: any = {};
|
|
@@ -146,11 +175,11 @@ export class MetadataApi extends runtime.BaseAPI {
|
|
|
146
175
|
}
|
|
147
176
|
}
|
|
148
177
|
const response = await this.request({
|
|
149
|
-
path: `/projects/{projectId}/samples`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
178
|
+
path: `/projects/{projectId}/samples/{sampleId}`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))).replace(`{${"sampleId"}}`, encodeURIComponent(String(requestParameters.sampleId))),
|
|
150
179
|
method: 'PUT',
|
|
151
180
|
headers: headerParameters,
|
|
152
181
|
query: queryParameters,
|
|
153
|
-
body:
|
|
182
|
+
body: SampleRequestToJSON(requestParameters.sampleRequest),
|
|
154
183
|
}, initOverrides);
|
|
155
184
|
|
|
156
185
|
return new runtime.JSONApiResponse(response, (jsonValue) => SampleFromJSON(jsonValue));
|
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cirro Data
|
|
5
|
+
* Cirro Data Platform service API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
* Contact: support@cirro.bio
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { BillingMethod } from './BillingMethod';
|
|
17
|
+
import {
|
|
18
|
+
BillingMethodFromJSON,
|
|
19
|
+
BillingMethodFromJSONTyped,
|
|
20
|
+
BillingMethodToJSON,
|
|
21
|
+
} from './BillingMethod';
|
|
22
|
+
import type { Contact } from './Contact';
|
|
23
|
+
import {
|
|
24
|
+
ContactFromJSON,
|
|
25
|
+
ContactFromJSONTyped,
|
|
26
|
+
ContactToJSON,
|
|
27
|
+
} from './Contact';
|
|
28
|
+
import type { CustomerType } from './CustomerType';
|
|
29
|
+
import {
|
|
30
|
+
CustomerTypeFromJSON,
|
|
31
|
+
CustomerTypeFromJSONTyped,
|
|
32
|
+
CustomerTypeToJSON,
|
|
33
|
+
} from './CustomerType';
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @export
|
|
38
|
+
* @interface BillingAccountRequest
|
|
39
|
+
*/
|
|
40
|
+
export interface BillingAccountRequest {
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof BillingAccountRequest
|
|
45
|
+
*/
|
|
46
|
+
name: string;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Array<Contact>}
|
|
50
|
+
* @memberof BillingAccountRequest
|
|
51
|
+
*/
|
|
52
|
+
contacts: Array<Contact>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {CustomerType}
|
|
56
|
+
* @memberof BillingAccountRequest
|
|
57
|
+
*/
|
|
58
|
+
customerType: CustomerType;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {BillingMethod}
|
|
62
|
+
* @memberof BillingAccountRequest
|
|
63
|
+
*/
|
|
64
|
+
billingMethod: BillingMethod;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof BillingAccountRequest
|
|
69
|
+
*/
|
|
70
|
+
primaryBudgetNumber: string;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof BillingAccountRequest
|
|
75
|
+
*/
|
|
76
|
+
owner: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Array<string>}
|
|
80
|
+
* @memberof BillingAccountRequest
|
|
81
|
+
*/
|
|
82
|
+
sharedWith: Array<string>;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the BillingAccountRequest interface.
|
|
87
|
+
*/
|
|
88
|
+
export function instanceOfBillingAccountRequest(value: object): boolean {
|
|
89
|
+
let isInstance = true;
|
|
90
|
+
isInstance = isInstance && "name" in value;
|
|
91
|
+
isInstance = isInstance && "contacts" in value;
|
|
92
|
+
isInstance = isInstance && "customerType" in value;
|
|
93
|
+
isInstance = isInstance && "billingMethod" in value;
|
|
94
|
+
isInstance = isInstance && "primaryBudgetNumber" in value;
|
|
95
|
+
isInstance = isInstance && "owner" in value;
|
|
96
|
+
isInstance = isInstance && "sharedWith" in value;
|
|
97
|
+
|
|
98
|
+
return isInstance;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function BillingAccountRequestFromJSON(json: any): BillingAccountRequest {
|
|
102
|
+
return BillingAccountRequestFromJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function BillingAccountRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): BillingAccountRequest {
|
|
106
|
+
if ((json === undefined) || (json === null)) {
|
|
107
|
+
return json;
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
|
|
111
|
+
'name': json['name'],
|
|
112
|
+
'contacts': ((json['contacts'] as Array<any>).map(ContactFromJSON)),
|
|
113
|
+
'customerType': CustomerTypeFromJSON(json['customerType']),
|
|
114
|
+
'billingMethod': BillingMethodFromJSON(json['billingMethod']),
|
|
115
|
+
'primaryBudgetNumber': json['primaryBudgetNumber'],
|
|
116
|
+
'owner': json['owner'],
|
|
117
|
+
'sharedWith': json['sharedWith'],
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function BillingAccountRequestToJSON(value?: BillingAccountRequest | null): any {
|
|
122
|
+
if (value === undefined) {
|
|
123
|
+
return undefined;
|
|
124
|
+
}
|
|
125
|
+
if (value === null) {
|
|
126
|
+
return null;
|
|
127
|
+
}
|
|
128
|
+
return {
|
|
129
|
+
|
|
130
|
+
'name': value.name,
|
|
131
|
+
'contacts': ((value.contacts as Array<any>).map(ContactToJSON)),
|
|
132
|
+
'customerType': CustomerTypeToJSON(value.customerType),
|
|
133
|
+
'billingMethod': BillingMethodToJSON(value.billingMethod),
|
|
134
|
+
'primaryBudgetNumber': value.primaryBudgetNumber,
|
|
135
|
+
'owner': value.owner,
|
|
136
|
+
'sharedWith': value.sharedWith,
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
|
package/src/models/Dashboard.ts
CHANGED
|
@@ -37,6 +37,12 @@ export interface Dashboard {
|
|
|
37
37
|
* @memberof Dashboard
|
|
38
38
|
*/
|
|
39
39
|
description: string;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {Array<string>}
|
|
43
|
+
* @memberof Dashboard
|
|
44
|
+
*/
|
|
45
|
+
processIds: Array<string>;
|
|
40
46
|
/**
|
|
41
47
|
*
|
|
42
48
|
* @type {{ [key: string]: any; }}
|
|
@@ -77,6 +83,7 @@ export function instanceOfDashboard(value: object): boolean {
|
|
|
77
83
|
isInstance = isInstance && "id" in value;
|
|
78
84
|
isInstance = isInstance && "name" in value;
|
|
79
85
|
isInstance = isInstance && "description" in value;
|
|
86
|
+
isInstance = isInstance && "processIds" in value;
|
|
80
87
|
isInstance = isInstance && "dashboardData" in value;
|
|
81
88
|
isInstance = isInstance && "info" in value;
|
|
82
89
|
isInstance = isInstance && "createdBy" in value;
|
|
@@ -99,6 +106,7 @@ export function DashboardFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
99
106
|
'id': json['id'],
|
|
100
107
|
'name': json['name'],
|
|
101
108
|
'description': json['description'],
|
|
109
|
+
'processIds': json['processIds'],
|
|
102
110
|
'dashboardData': json['dashboardData'],
|
|
103
111
|
'info': json['info'],
|
|
104
112
|
'createdBy': json['createdBy'],
|
|
@@ -119,6 +127,7 @@ export function DashboardToJSON(value?: Dashboard | null): any {
|
|
|
119
127
|
'id': value.id,
|
|
120
128
|
'name': value.name,
|
|
121
129
|
'description': value.description,
|
|
130
|
+
'processIds': value.processIds,
|
|
122
131
|
'dashboardData': value.dashboardData,
|
|
123
132
|
'info': value.info,
|
|
124
133
|
'createdBy': value.createdBy,
|
|
@@ -31,6 +31,12 @@ export interface DashboardRequest {
|
|
|
31
31
|
* @memberof DashboardRequest
|
|
32
32
|
*/
|
|
33
33
|
description: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Array<string>}
|
|
37
|
+
* @memberof DashboardRequest
|
|
38
|
+
*/
|
|
39
|
+
processIds: Array<string>;
|
|
34
40
|
/**
|
|
35
41
|
*
|
|
36
42
|
* @type {{ [key: string]: any; }}
|
|
@@ -52,6 +58,7 @@ export function instanceOfDashboardRequest(value: object): boolean {
|
|
|
52
58
|
let isInstance = true;
|
|
53
59
|
isInstance = isInstance && "name" in value;
|
|
54
60
|
isInstance = isInstance && "description" in value;
|
|
61
|
+
isInstance = isInstance && "processIds" in value;
|
|
55
62
|
isInstance = isInstance && "dashboardData" in value;
|
|
56
63
|
isInstance = isInstance && "info" in value;
|
|
57
64
|
|
|
@@ -70,6 +77,7 @@ export function DashboardRequestFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
70
77
|
|
|
71
78
|
'name': json['name'],
|
|
72
79
|
'description': json['description'],
|
|
80
|
+
'processIds': json['processIds'],
|
|
73
81
|
'dashboardData': json['dashboardData'],
|
|
74
82
|
'info': json['info'],
|
|
75
83
|
};
|
|
@@ -86,6 +94,7 @@ export function DashboardRequestToJSON(value?: DashboardRequest | null): any {
|
|
|
86
94
|
|
|
87
95
|
'name': value.name,
|
|
88
96
|
'description': value.description,
|
|
97
|
+
'processIds': value.processIds,
|
|
89
98
|
'dashboardData': value.dashboardData,
|
|
90
99
|
'info': value.info,
|
|
91
100
|
};
|
|
@@ -13,6 +13,13 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { Status } from './Status';
|
|
17
|
+
import {
|
|
18
|
+
StatusFromJSON,
|
|
19
|
+
StatusFromJSONTyped,
|
|
20
|
+
StatusToJSON,
|
|
21
|
+
} from './Status';
|
|
22
|
+
|
|
16
23
|
/**
|
|
17
24
|
*
|
|
18
25
|
* @export
|
|
@@ -31,6 +38,30 @@ export interface NotebookInstance {
|
|
|
31
38
|
* @memberof NotebookInstance
|
|
32
39
|
*/
|
|
33
40
|
name: string;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {Status}
|
|
44
|
+
* @memberof NotebookInstance
|
|
45
|
+
*/
|
|
46
|
+
status: Status;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof NotebookInstance
|
|
51
|
+
*/
|
|
52
|
+
instanceType: string;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Array<string>}
|
|
56
|
+
* @memberof NotebookInstance
|
|
57
|
+
*/
|
|
58
|
+
acceleratorTypes: Array<string>;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {number}
|
|
62
|
+
* @memberof NotebookInstance
|
|
63
|
+
*/
|
|
64
|
+
volumeSizeGB: number;
|
|
34
65
|
/**
|
|
35
66
|
*
|
|
36
67
|
* @type {string}
|
|
@@ -46,6 +77,10 @@ export function instanceOfNotebookInstance(value: object): boolean {
|
|
|
46
77
|
let isInstance = true;
|
|
47
78
|
isInstance = isInstance && "id" in value;
|
|
48
79
|
isInstance = isInstance && "name" in value;
|
|
80
|
+
isInstance = isInstance && "status" in value;
|
|
81
|
+
isInstance = isInstance && "instanceType" in value;
|
|
82
|
+
isInstance = isInstance && "acceleratorTypes" in value;
|
|
83
|
+
isInstance = isInstance && "volumeSizeGB" in value;
|
|
49
84
|
isInstance = isInstance && "createdBy" in value;
|
|
50
85
|
|
|
51
86
|
return isInstance;
|
|
@@ -63,6 +98,10 @@ export function NotebookInstanceFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
63
98
|
|
|
64
99
|
'id': json['id'],
|
|
65
100
|
'name': json['name'],
|
|
101
|
+
'status': StatusFromJSON(json['status']),
|
|
102
|
+
'instanceType': json['instanceType'],
|
|
103
|
+
'acceleratorTypes': json['acceleratorTypes'],
|
|
104
|
+
'volumeSizeGB': json['volumeSizeGB'],
|
|
66
105
|
'createdBy': json['createdBy'],
|
|
67
106
|
};
|
|
68
107
|
}
|
|
@@ -78,6 +117,10 @@ export function NotebookInstanceToJSON(value?: NotebookInstance | null): any {
|
|
|
78
117
|
|
|
79
118
|
'id': value.id,
|
|
80
119
|
'name': value.name,
|
|
120
|
+
'status': StatusToJSON(value.status),
|
|
121
|
+
'instanceType': value.instanceType,
|
|
122
|
+
'acceleratorTypes': value.acceleratorTypes,
|
|
123
|
+
'volumeSizeGB': value.volumeSizeGB,
|
|
81
124
|
'createdBy': value.createdBy,
|
|
82
125
|
};
|
|
83
126
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Cirro Data
|
|
5
|
+
* Cirro Data Platform service API
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
* Contact: support@cirro.bio
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { exists, mapValues } from '../runtime';
|
|
16
|
+
import type { Sample } from './Sample';
|
|
17
|
+
import {
|
|
18
|
+
SampleFromJSON,
|
|
19
|
+
SampleFromJSONTyped,
|
|
20
|
+
SampleToJSON,
|
|
21
|
+
} from './Sample';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @export
|
|
26
|
+
* @interface PaginatedResponseSampleDto
|
|
27
|
+
*/
|
|
28
|
+
export interface PaginatedResponseSampleDto {
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<Sample>}
|
|
32
|
+
* @memberof PaginatedResponseSampleDto
|
|
33
|
+
*/
|
|
34
|
+
data: Array<Sample>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof PaginatedResponseSampleDto
|
|
39
|
+
*/
|
|
40
|
+
nextToken: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Check if a given object implements the PaginatedResponseSampleDto interface.
|
|
45
|
+
*/
|
|
46
|
+
export function instanceOfPaginatedResponseSampleDto(value: object): boolean {
|
|
47
|
+
let isInstance = true;
|
|
48
|
+
isInstance = isInstance && "data" in value;
|
|
49
|
+
isInstance = isInstance && "nextToken" in value;
|
|
50
|
+
|
|
51
|
+
return isInstance;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function PaginatedResponseSampleDtoFromJSON(json: any): PaginatedResponseSampleDto {
|
|
55
|
+
return PaginatedResponseSampleDtoFromJSONTyped(json, false);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function PaginatedResponseSampleDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseSampleDto {
|
|
59
|
+
if ((json === undefined) || (json === null)) {
|
|
60
|
+
return json;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
|
|
64
|
+
'data': ((json['data'] as Array<any>).map(SampleFromJSON)),
|
|
65
|
+
'nextToken': json['nextToken'],
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function PaginatedResponseSampleDtoToJSON(value?: PaginatedResponseSampleDto | null): any {
|
|
70
|
+
if (value === undefined) {
|
|
71
|
+
return undefined;
|
|
72
|
+
}
|
|
73
|
+
if (value === null) {
|
|
74
|
+
return null;
|
|
75
|
+
}
|
|
76
|
+
return {
|
|
77
|
+
|
|
78
|
+
'data': ((value.data as Array<any>).map(SampleToJSON)),
|
|
79
|
+
'nextToken': value.nextToken,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
|