@cirrobio/api-client 0.0.11-alpha → 0.0.12-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 +2 -1
- package/README.md +1 -1
- package/dist/apis/DashboardsApi.d.ts +6 -6
- package/dist/apis/DashboardsApi.js +6 -6
- package/dist/apis/MetadataApi.d.ts +12 -1
- package/dist/apis/MetadataApi.js +53 -0
- package/dist/apis/NotebooksApi.d.ts +3 -3
- package/dist/apis/NotebooksApi.js +1 -7
- package/dist/apis/SystemApi.d.ts +8 -0
- package/dist/apis/SystemApi.js +41 -0
- package/dist/models/Dashboard.d.ts +8 -0
- package/dist/models/Dashboard.js +3 -0
- package/dist/models/DashboardRequest.d.ts +53 -0
- package/dist/models/DashboardRequest.js +59 -0
- package/dist/models/FormSchema.d.ts +1 -1
- package/dist/models/NotebookInstanceStatusResponse.d.ts +31 -0
- package/dist/models/NotebookInstanceStatusResponse.js +50 -0
- package/dist/models/Sample.d.ts +6 -0
- package/dist/models/Sample.js +3 -0
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/package.json +1 -1
- package/src/apis/DashboardsApi.ts +14 -14
- package/src/apis/MetadataApi.ts +45 -0
- package/src/apis/NotebooksApi.ts +6 -7
- package/src/apis/SystemApi.ts +26 -0
- package/src/models/Dashboard.ts +9 -0
- package/src/models/DashboardRequest.ts +93 -0
- package/src/models/FormSchema.ts +1 -1
- package/src/models/NotebookInstanceStatusResponse.ts +66 -0
- package/src/models/Sample.ts +9 -0
- package/src/models/index.ts +2 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -21,12 +21,12 @@ src/models/BillingMethod.ts
|
|
|
21
21
|
src/models/BudgetPeriod.ts
|
|
22
22
|
src/models/CloudAccount.ts
|
|
23
23
|
src/models/Contact.ts
|
|
24
|
-
src/models/CreateDashboardRequest.ts
|
|
25
24
|
src/models/CreateNotebookInstanceRequest.ts
|
|
26
25
|
src/models/CreateResponse.ts
|
|
27
26
|
src/models/CustomPipelineSettings.ts
|
|
28
27
|
src/models/CustomerType.ts
|
|
29
28
|
src/models/Dashboard.ts
|
|
29
|
+
src/models/DashboardRequest.ts
|
|
30
30
|
src/models/Dataset.ts
|
|
31
31
|
src/models/DatasetDetail.ts
|
|
32
32
|
src/models/Executor.ts
|
|
@@ -35,6 +35,7 @@ src/models/GetExecutionLogsResponse.ts
|
|
|
35
35
|
src/models/LogEntry.ts
|
|
36
36
|
src/models/MetricRecord.ts
|
|
37
37
|
src/models/NotebookInstance.ts
|
|
38
|
+
src/models/NotebookInstanceStatusResponse.ts
|
|
38
39
|
src/models/OpenNotebookInstanceResponse.ts
|
|
39
40
|
src/models/PaginatedResponseDatasetListDto.ts
|
|
40
41
|
src/models/Process.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.
|
|
39
|
+
npm install @cirrobio/api-client@0.0.12-alpha --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -10,10 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type {
|
|
14
|
-
export interface
|
|
13
|
+
import type { CreateResponse, Dashboard, DashboardRequest } from '../models/index';
|
|
14
|
+
export interface CreateDashboardRequest {
|
|
15
15
|
projectId: string;
|
|
16
|
-
|
|
16
|
+
dashboardRequest: DashboardRequest;
|
|
17
17
|
}
|
|
18
18
|
export interface DeleteDashboardRequest {
|
|
19
19
|
projectId: string;
|
|
@@ -29,7 +29,7 @@ export interface GetDashboardsRequest {
|
|
|
29
29
|
export interface UpdateDashboardRequest {
|
|
30
30
|
projectId: string;
|
|
31
31
|
dashboardId: string;
|
|
32
|
-
|
|
32
|
+
dashboardRequest: DashboardRequest;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
@@ -39,12 +39,12 @@ export declare class DashboardsApi extends runtime.BaseAPI {
|
|
|
39
39
|
* Creates a dashboard
|
|
40
40
|
* Create dashboard
|
|
41
41
|
*/
|
|
42
|
-
createDashboardRaw(requestParameters:
|
|
42
|
+
createDashboardRaw(requestParameters: CreateDashboardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>>;
|
|
43
43
|
/**
|
|
44
44
|
* Creates a dashboard
|
|
45
45
|
* Create dashboard
|
|
46
46
|
*/
|
|
47
|
-
createDashboard(requestParameters:
|
|
47
|
+
createDashboard(requestParameters: CreateDashboardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse>;
|
|
48
48
|
/**
|
|
49
49
|
* Deletes a dashboard
|
|
50
50
|
* Delete dashboard
|
|
@@ -88,8 +88,8 @@ var DashboardsApi = /** @class */ (function (_super) {
|
|
|
88
88
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
89
89
|
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling createDashboard.');
|
|
90
90
|
}
|
|
91
|
-
if (requestParameters.
|
|
92
|
-
throw new runtime.RequiredError('
|
|
91
|
+
if (requestParameters.dashboardRequest === null || requestParameters.dashboardRequest === undefined) {
|
|
92
|
+
throw new runtime.RequiredError('dashboardRequest', 'Required parameter requestParameters.dashboardRequest was null or undefined when calling createDashboard.');
|
|
93
93
|
}
|
|
94
94
|
queryParameters = {};
|
|
95
95
|
headerParameters = {};
|
|
@@ -108,7 +108,7 @@ var DashboardsApi = /** @class */ (function (_super) {
|
|
|
108
108
|
method: 'POST',
|
|
109
109
|
headers: headerParameters,
|
|
110
110
|
query: queryParameters,
|
|
111
|
-
body: (0, index_1.
|
|
111
|
+
body: (0, index_1.DashboardRequestToJSON)(requestParameters.dashboardRequest),
|
|
112
112
|
}, initOverrides)];
|
|
113
113
|
case 3:
|
|
114
114
|
response = _a.sent();
|
|
@@ -322,8 +322,8 @@ var DashboardsApi = /** @class */ (function (_super) {
|
|
|
322
322
|
if (requestParameters.dashboardId === null || requestParameters.dashboardId === undefined) {
|
|
323
323
|
throw new runtime.RequiredError('dashboardId', 'Required parameter requestParameters.dashboardId was null or undefined when calling updateDashboard.');
|
|
324
324
|
}
|
|
325
|
-
if (requestParameters.
|
|
326
|
-
throw new runtime.RequiredError('
|
|
325
|
+
if (requestParameters.dashboardRequest === null || requestParameters.dashboardRequest === undefined) {
|
|
326
|
+
throw new runtime.RequiredError('dashboardRequest', 'Required parameter requestParameters.dashboardRequest was null or undefined when calling updateDashboard.');
|
|
327
327
|
}
|
|
328
328
|
queryParameters = {};
|
|
329
329
|
headerParameters = {};
|
|
@@ -342,7 +342,7 @@ var DashboardsApi = /** @class */ (function (_super) {
|
|
|
342
342
|
method: 'PUT',
|
|
343
343
|
headers: headerParameters,
|
|
344
344
|
query: queryParameters,
|
|
345
|
-
body: (0, index_1.
|
|
345
|
+
body: (0, index_1.DashboardRequestToJSON)(requestParameters.dashboardRequest),
|
|
346
346
|
}, initOverrides)];
|
|
347
347
|
case 3:
|
|
348
348
|
response = _a.sent();
|
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { Sample } from '../models/index';
|
|
13
|
+
import type { FormSchema, Sample } from '../models/index';
|
|
14
14
|
export interface GetProjectSamplesRequest {
|
|
15
15
|
projectId: string;
|
|
16
16
|
}
|
|
17
|
+
export interface GetProjectSchemaRequest {
|
|
18
|
+
projectId: string;
|
|
19
|
+
}
|
|
17
20
|
export interface UpdateSampleRequest {
|
|
18
21
|
projectId: string;
|
|
19
22
|
sample: Sample;
|
|
@@ -30,6 +33,14 @@ export declare class MetadataApi extends runtime.BaseAPI {
|
|
|
30
33
|
* Get project samples
|
|
31
34
|
*/
|
|
32
35
|
getProjectSamples(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Sample>>;
|
|
36
|
+
/**
|
|
37
|
+
* Get project metadata schema
|
|
38
|
+
*/
|
|
39
|
+
getProjectSchemaRaw(requestParameters: GetProjectSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FormSchema>>;
|
|
40
|
+
/**
|
|
41
|
+
* Get project metadata schema
|
|
42
|
+
*/
|
|
43
|
+
getProjectSchema(requestParameters: GetProjectSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FormSchema>;
|
|
33
44
|
/**
|
|
34
45
|
* Update sample
|
|
35
46
|
*/
|
package/dist/apis/MetadataApi.js
CHANGED
|
@@ -128,6 +128,59 @@ var MetadataApi = /** @class */ (function (_super) {
|
|
|
128
128
|
});
|
|
129
129
|
});
|
|
130
130
|
};
|
|
131
|
+
/**
|
|
132
|
+
* Get project metadata schema
|
|
133
|
+
*/
|
|
134
|
+
MetadataApi.prototype.getProjectSchemaRaw = function (requestParameters, initOverrides) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
136
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
137
|
+
return __generator(this, function (_a) {
|
|
138
|
+
switch (_a.label) {
|
|
139
|
+
case 0:
|
|
140
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
141
|
+
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getProjectSchema.');
|
|
142
|
+
}
|
|
143
|
+
queryParameters = {};
|
|
144
|
+
headerParameters = {};
|
|
145
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
146
|
+
token = this.configuration.accessToken;
|
|
147
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
148
|
+
case 1:
|
|
149
|
+
tokenString = _a.sent();
|
|
150
|
+
if (tokenString) {
|
|
151
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
152
|
+
}
|
|
153
|
+
_a.label = 2;
|
|
154
|
+
case 2: return [4 /*yield*/, this.request({
|
|
155
|
+
path: "/projects/{projectId}/schema".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
|
|
156
|
+
method: 'GET',
|
|
157
|
+
headers: headerParameters,
|
|
158
|
+
query: queryParameters,
|
|
159
|
+
}, initOverrides)];
|
|
160
|
+
case 3:
|
|
161
|
+
response = _a.sent();
|
|
162
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.FormSchemaFromJSON)(jsonValue); })];
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Get project metadata schema
|
|
169
|
+
*/
|
|
170
|
+
MetadataApi.prototype.getProjectSchema = function (requestParameters, initOverrides) {
|
|
171
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
172
|
+
var response;
|
|
173
|
+
return __generator(this, function (_a) {
|
|
174
|
+
switch (_a.label) {
|
|
175
|
+
case 0: return [4 /*yield*/, this.getProjectSchemaRaw(requestParameters, initOverrides)];
|
|
176
|
+
case 1:
|
|
177
|
+
response = _a.sent();
|
|
178
|
+
return [4 /*yield*/, response.value()];
|
|
179
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
};
|
|
131
184
|
/**
|
|
132
185
|
* Update sample
|
|
133
186
|
*/
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type { CreateNotebookInstanceRequest, CreateResponse, NotebookInstance, OpenNotebookInstanceResponse } from '../models/index';
|
|
13
|
+
import type { CreateNotebookInstanceRequest, CreateResponse, NotebookInstance, NotebookInstanceStatusResponse, OpenNotebookInstanceResponse } from '../models/index';
|
|
14
14
|
export interface CreateNotebookInstanceOperationRequest {
|
|
15
15
|
projectId: string;
|
|
16
16
|
createNotebookInstanceRequest: CreateNotebookInstanceRequest;
|
|
@@ -58,10 +58,10 @@ export declare class NotebooksApi extends runtime.BaseAPI {
|
|
|
58
58
|
generateNotebookInstanceUrl(requestParameters: GenerateNotebookInstanceUrlRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OpenNotebookInstanceResponse>;
|
|
59
59
|
/**
|
|
60
60
|
*/
|
|
61
|
-
getNotebookInstanceStatusRaw(requestParameters: GetNotebookInstanceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
61
|
+
getNotebookInstanceStatusRaw(requestParameters: GetNotebookInstanceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotebookInstanceStatusResponse>>;
|
|
62
62
|
/**
|
|
63
63
|
*/
|
|
64
|
-
getNotebookInstanceStatus(requestParameters: GetNotebookInstanceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
64
|
+
getNotebookInstanceStatus(requestParameters: GetNotebookInstanceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotebookInstanceStatusResponse>;
|
|
65
65
|
/**
|
|
66
66
|
*/
|
|
67
67
|
getNotebookInstancesRaw(requestParameters: GetNotebookInstancesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<NotebookInstance>>>;
|
|
@@ -270,13 +270,7 @@ var NotebooksApi = /** @class */ (function (_super) {
|
|
|
270
270
|
}, initOverrides)];
|
|
271
271
|
case 3:
|
|
272
272
|
response = _a.sent();
|
|
273
|
-
|
|
274
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response)];
|
|
275
|
-
}
|
|
276
|
-
else {
|
|
277
|
-
return [2 /*return*/, new runtime.TextApiResponse(response)];
|
|
278
|
-
}
|
|
279
|
-
return [2 /*return*/];
|
|
273
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.NotebookInstanceStatusResponseFromJSON)(jsonValue); })];
|
|
280
274
|
}
|
|
281
275
|
});
|
|
282
276
|
});
|
package/dist/apis/SystemApi.d.ts
CHANGED
|
@@ -33,4 +33,12 @@ export declare class SystemApi extends runtime.BaseAPI {
|
|
|
33
33
|
* Get system info
|
|
34
34
|
*/
|
|
35
35
|
info(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfoResponse>;
|
|
36
|
+
/**
|
|
37
|
+
* Get system info
|
|
38
|
+
*/
|
|
39
|
+
info1Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfoResponse>>;
|
|
40
|
+
/**
|
|
41
|
+
* Get system info
|
|
42
|
+
*/
|
|
43
|
+
info1(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfoResponse>;
|
|
36
44
|
}
|
package/dist/apis/SystemApi.js
CHANGED
|
@@ -168,6 +168,47 @@ var SystemApi = /** @class */ (function (_super) {
|
|
|
168
168
|
});
|
|
169
169
|
});
|
|
170
170
|
};
|
|
171
|
+
/**
|
|
172
|
+
* Get system info
|
|
173
|
+
*/
|
|
174
|
+
SystemApi.prototype.info1Raw = function (initOverrides) {
|
|
175
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
176
|
+
var queryParameters, headerParameters, response;
|
|
177
|
+
return __generator(this, function (_a) {
|
|
178
|
+
switch (_a.label) {
|
|
179
|
+
case 0:
|
|
180
|
+
queryParameters = {};
|
|
181
|
+
headerParameters = {};
|
|
182
|
+
return [4 /*yield*/, this.request({
|
|
183
|
+
path: "/info/system",
|
|
184
|
+
method: 'GET',
|
|
185
|
+
headers: headerParameters,
|
|
186
|
+
query: queryParameters,
|
|
187
|
+
}, initOverrides)];
|
|
188
|
+
case 1:
|
|
189
|
+
response = _a.sent();
|
|
190
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SystemInfoResponseFromJSON)(jsonValue); })];
|
|
191
|
+
}
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
};
|
|
195
|
+
/**
|
|
196
|
+
* Get system info
|
|
197
|
+
*/
|
|
198
|
+
SystemApi.prototype.info1 = function (initOverrides) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
200
|
+
var response;
|
|
201
|
+
return __generator(this, function (_a) {
|
|
202
|
+
switch (_a.label) {
|
|
203
|
+
case 0: return [4 /*yield*/, this.info1Raw(initOverrides)];
|
|
204
|
+
case 1:
|
|
205
|
+
response = _a.sent();
|
|
206
|
+
return [4 /*yield*/, response.value()];
|
|
207
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
});
|
|
211
|
+
};
|
|
171
212
|
return SystemApi;
|
|
172
213
|
}(runtime.BaseAPI));
|
|
173
214
|
exports.SystemApi = SystemApi;
|
package/dist/models/Dashboard.js
CHANGED
|
@@ -23,6 +23,7 @@ function instanceOfDashboard(value) {
|
|
|
23
23
|
isInstance = isInstance && "name" in value;
|
|
24
24
|
isInstance = isInstance && "description" in value;
|
|
25
25
|
isInstance = isInstance && "dashboardData" in value;
|
|
26
|
+
isInstance = isInstance && "info" in value;
|
|
26
27
|
isInstance = isInstance && "createdBy" in value;
|
|
27
28
|
isInstance = isInstance && "createdAt" in value;
|
|
28
29
|
isInstance = isInstance && "updatedAt" in value;
|
|
@@ -42,6 +43,7 @@ function DashboardFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
43
|
'name': json['name'],
|
|
43
44
|
'description': json['description'],
|
|
44
45
|
'dashboardData': json['dashboardData'],
|
|
46
|
+
'info': json['info'],
|
|
45
47
|
'createdBy': json['createdBy'],
|
|
46
48
|
'createdAt': (new Date(json['createdAt'])),
|
|
47
49
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
@@ -60,6 +62,7 @@ function DashboardToJSON(value) {
|
|
|
60
62
|
'name': value.name,
|
|
61
63
|
'description': value.description,
|
|
62
64
|
'dashboardData': value.dashboardData,
|
|
65
|
+
'info': value.info,
|
|
63
66
|
'createdBy': value.createdBy,
|
|
64
67
|
'createdAt': (value.createdAt.toISOString()),
|
|
65
68
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
@@ -0,0 +1,53 @@
|
|
|
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 DashboardRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface DashboardRequest {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof DashboardRequest
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof DashboardRequest
|
|
28
|
+
*/
|
|
29
|
+
description: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {{ [key: string]: any; }}
|
|
33
|
+
* @memberof DashboardRequest
|
|
34
|
+
*/
|
|
35
|
+
dashboardData: {
|
|
36
|
+
[key: string]: any;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {{ [key: string]: any; }}
|
|
41
|
+
* @memberof DashboardRequest
|
|
42
|
+
*/
|
|
43
|
+
info: {
|
|
44
|
+
[key: string]: any;
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the DashboardRequest interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfDashboardRequest(value: object): boolean;
|
|
51
|
+
export declare function DashboardRequestFromJSON(json: any): DashboardRequest;
|
|
52
|
+
export declare function DashboardRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DashboardRequest;
|
|
53
|
+
export declare function DashboardRequestToJSON(value?: DashboardRequest | null): any;
|
|
@@ -0,0 +1,59 @@
|
|
|
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.DashboardRequestToJSON = exports.DashboardRequestFromJSONTyped = exports.DashboardRequestFromJSON = exports.instanceOfDashboardRequest = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the DashboardRequest interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfDashboardRequest(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "name" in value;
|
|
23
|
+
isInstance = isInstance && "description" in value;
|
|
24
|
+
isInstance = isInstance && "dashboardData" in value;
|
|
25
|
+
isInstance = isInstance && "info" in value;
|
|
26
|
+
return isInstance;
|
|
27
|
+
}
|
|
28
|
+
exports.instanceOfDashboardRequest = instanceOfDashboardRequest;
|
|
29
|
+
function DashboardRequestFromJSON(json) {
|
|
30
|
+
return DashboardRequestFromJSONTyped(json, false);
|
|
31
|
+
}
|
|
32
|
+
exports.DashboardRequestFromJSON = DashboardRequestFromJSON;
|
|
33
|
+
function DashboardRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if ((json === undefined) || (json === null)) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'name': json['name'],
|
|
39
|
+
'description': json['description'],
|
|
40
|
+
'dashboardData': json['dashboardData'],
|
|
41
|
+
'info': json['info'],
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
exports.DashboardRequestFromJSONTyped = DashboardRequestFromJSONTyped;
|
|
45
|
+
function DashboardRequestToJSON(value) {
|
|
46
|
+
if (value === undefined) {
|
|
47
|
+
return undefined;
|
|
48
|
+
}
|
|
49
|
+
if (value === null) {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
return {
|
|
53
|
+
'name': value.name,
|
|
54
|
+
'description': value.description,
|
|
55
|
+
'dashboardData': value.dashboardData,
|
|
56
|
+
'info': value.info,
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
exports.DashboardRequestToJSON = DashboardRequestToJSON;
|
|
@@ -0,0 +1,31 @@
|
|
|
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 NotebookInstanceStatusResponse
|
|
16
|
+
*/
|
|
17
|
+
export interface NotebookInstanceStatusResponse {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof NotebookInstanceStatusResponse
|
|
22
|
+
*/
|
|
23
|
+
status: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the NotebookInstanceStatusResponse interface.
|
|
27
|
+
*/
|
|
28
|
+
export declare function instanceOfNotebookInstanceStatusResponse(value: object): boolean;
|
|
29
|
+
export declare function NotebookInstanceStatusResponseFromJSON(json: any): NotebookInstanceStatusResponse;
|
|
30
|
+
export declare function NotebookInstanceStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotebookInstanceStatusResponse;
|
|
31
|
+
export declare function NotebookInstanceStatusResponseToJSON(value?: NotebookInstanceStatusResponse | null): any;
|
|
@@ -0,0 +1,50 @@
|
|
|
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.NotebookInstanceStatusResponseToJSON = exports.NotebookInstanceStatusResponseFromJSONTyped = exports.NotebookInstanceStatusResponseFromJSON = exports.instanceOfNotebookInstanceStatusResponse = void 0;
|
|
17
|
+
/**
|
|
18
|
+
* Check if a given object implements the NotebookInstanceStatusResponse interface.
|
|
19
|
+
*/
|
|
20
|
+
function instanceOfNotebookInstanceStatusResponse(value) {
|
|
21
|
+
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "status" in value;
|
|
23
|
+
return isInstance;
|
|
24
|
+
}
|
|
25
|
+
exports.instanceOfNotebookInstanceStatusResponse = instanceOfNotebookInstanceStatusResponse;
|
|
26
|
+
function NotebookInstanceStatusResponseFromJSON(json) {
|
|
27
|
+
return NotebookInstanceStatusResponseFromJSONTyped(json, false);
|
|
28
|
+
}
|
|
29
|
+
exports.NotebookInstanceStatusResponseFromJSON = NotebookInstanceStatusResponseFromJSON;
|
|
30
|
+
function NotebookInstanceStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
31
|
+
if ((json === undefined) || (json === null)) {
|
|
32
|
+
return json;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
'status': json['status'],
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
exports.NotebookInstanceStatusResponseFromJSONTyped = NotebookInstanceStatusResponseFromJSONTyped;
|
|
39
|
+
function NotebookInstanceStatusResponseToJSON(value) {
|
|
40
|
+
if (value === undefined) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
if (value === null) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'status': value.status,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.NotebookInstanceStatusResponseToJSON = NotebookInstanceStatusResponseToJSON;
|
package/dist/models/Sample.d.ts
CHANGED
package/dist/models/Sample.js
CHANGED
|
@@ -19,6 +19,7 @@ exports.SampleToJSON = exports.SampleFromJSONTyped = exports.SampleFromJSON = ex
|
|
|
19
19
|
*/
|
|
20
20
|
function instanceOfSample(value) {
|
|
21
21
|
var isInstance = true;
|
|
22
|
+
isInstance = isInstance && "id" in value;
|
|
22
23
|
isInstance = isInstance && "name" in value;
|
|
23
24
|
isInstance = isInstance && "metadata" in value;
|
|
24
25
|
isInstance = isInstance && "createdAt" in value;
|
|
@@ -35,6 +36,7 @@ function SampleFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
35
36
|
return json;
|
|
36
37
|
}
|
|
37
38
|
return {
|
|
39
|
+
'id': json['id'],
|
|
38
40
|
'name': json['name'],
|
|
39
41
|
'metadata': json['metadata'],
|
|
40
42
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -50,6 +52,7 @@ function SampleToJSON(value) {
|
|
|
50
52
|
return null;
|
|
51
53
|
}
|
|
52
54
|
return {
|
|
55
|
+
'id': value.id,
|
|
53
56
|
'name': value.name,
|
|
54
57
|
'metadata': value.metadata,
|
|
55
58
|
'createdAt': (value.createdAt.toISOString()),
|
package/dist/models/index.d.ts
CHANGED
|
@@ -3,12 +3,12 @@ export * from './BillingMethod';
|
|
|
3
3
|
export * from './BudgetPeriod';
|
|
4
4
|
export * from './CloudAccount';
|
|
5
5
|
export * from './Contact';
|
|
6
|
-
export * from './CreateDashboardRequest';
|
|
7
6
|
export * from './CreateNotebookInstanceRequest';
|
|
8
7
|
export * from './CreateResponse';
|
|
9
8
|
export * from './CustomPipelineSettings';
|
|
10
9
|
export * from './CustomerType';
|
|
11
10
|
export * from './Dashboard';
|
|
11
|
+
export * from './DashboardRequest';
|
|
12
12
|
export * from './Dataset';
|
|
13
13
|
export * from './DatasetDetail';
|
|
14
14
|
export * from './Executor';
|
|
@@ -17,6 +17,7 @@ export * from './GetExecutionLogsResponse';
|
|
|
17
17
|
export * from './LogEntry';
|
|
18
18
|
export * from './MetricRecord';
|
|
19
19
|
export * from './NotebookInstance';
|
|
20
|
+
export * from './NotebookInstanceStatusResponse';
|
|
20
21
|
export * from './OpenNotebookInstanceResponse';
|
|
21
22
|
export * from './PaginatedResponseDatasetListDto';
|
|
22
23
|
export * from './Process';
|
package/dist/models/index.js
CHANGED
|
@@ -21,12 +21,12 @@ __exportStar(require("./BillingMethod"), exports);
|
|
|
21
21
|
__exportStar(require("./BudgetPeriod"), exports);
|
|
22
22
|
__exportStar(require("./CloudAccount"), exports);
|
|
23
23
|
__exportStar(require("./Contact"), exports);
|
|
24
|
-
__exportStar(require("./CreateDashboardRequest"), exports);
|
|
25
24
|
__exportStar(require("./CreateNotebookInstanceRequest"), exports);
|
|
26
25
|
__exportStar(require("./CreateResponse"), exports);
|
|
27
26
|
__exportStar(require("./CustomPipelineSettings"), exports);
|
|
28
27
|
__exportStar(require("./CustomerType"), exports);
|
|
29
28
|
__exportStar(require("./Dashboard"), exports);
|
|
29
|
+
__exportStar(require("./DashboardRequest"), exports);
|
|
30
30
|
__exportStar(require("./Dataset"), exports);
|
|
31
31
|
__exportStar(require("./DatasetDetail"), exports);
|
|
32
32
|
__exportStar(require("./Executor"), exports);
|
|
@@ -35,6 +35,7 @@ __exportStar(require("./GetExecutionLogsResponse"), exports);
|
|
|
35
35
|
__exportStar(require("./LogEntry"), exports);
|
|
36
36
|
__exportStar(require("./MetricRecord"), exports);
|
|
37
37
|
__exportStar(require("./NotebookInstance"), exports);
|
|
38
|
+
__exportStar(require("./NotebookInstanceStatusResponse"), exports);
|
|
38
39
|
__exportStar(require("./OpenNotebookInstanceResponse"), exports);
|
|
39
40
|
__exportStar(require("./PaginatedResponseDatasetListDto"), exports);
|
|
40
41
|
__exportStar(require("./Process"), exports);
|
package/package.json
CHANGED
|
@@ -15,22 +15,22 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
-
CreateDashboardRequest,
|
|
19
18
|
CreateResponse,
|
|
20
19
|
Dashboard,
|
|
20
|
+
DashboardRequest,
|
|
21
21
|
} from '../models/index';
|
|
22
22
|
import {
|
|
23
|
-
CreateDashboardRequestFromJSON,
|
|
24
|
-
CreateDashboardRequestToJSON,
|
|
25
23
|
CreateResponseFromJSON,
|
|
26
24
|
CreateResponseToJSON,
|
|
27
25
|
DashboardFromJSON,
|
|
28
26
|
DashboardToJSON,
|
|
27
|
+
DashboardRequestFromJSON,
|
|
28
|
+
DashboardRequestToJSON,
|
|
29
29
|
} from '../models/index';
|
|
30
30
|
|
|
31
|
-
export interface
|
|
31
|
+
export interface CreateDashboardRequest {
|
|
32
32
|
projectId: string;
|
|
33
|
-
|
|
33
|
+
dashboardRequest: DashboardRequest;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export interface DeleteDashboardRequest {
|
|
@@ -50,7 +50,7 @@ export interface GetDashboardsRequest {
|
|
|
50
50
|
export interface UpdateDashboardRequest {
|
|
51
51
|
projectId: string;
|
|
52
52
|
dashboardId: string;
|
|
53
|
-
|
|
53
|
+
dashboardRequest: DashboardRequest;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
@@ -62,13 +62,13 @@ export class DashboardsApi extends runtime.BaseAPI {
|
|
|
62
62
|
* Creates a dashboard
|
|
63
63
|
* Create dashboard
|
|
64
64
|
*/
|
|
65
|
-
async createDashboardRaw(requestParameters:
|
|
65
|
+
async createDashboardRaw(requestParameters: CreateDashboardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>> {
|
|
66
66
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
67
67
|
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling createDashboard.');
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
if (requestParameters.
|
|
71
|
-
throw new runtime.RequiredError('
|
|
70
|
+
if (requestParameters.dashboardRequest === null || requestParameters.dashboardRequest === undefined) {
|
|
71
|
+
throw new runtime.RequiredError('dashboardRequest','Required parameter requestParameters.dashboardRequest was null or undefined when calling createDashboard.');
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
const queryParameters: any = {};
|
|
@@ -90,7 +90,7 @@ export class DashboardsApi extends runtime.BaseAPI {
|
|
|
90
90
|
method: 'POST',
|
|
91
91
|
headers: headerParameters,
|
|
92
92
|
query: queryParameters,
|
|
93
|
-
body:
|
|
93
|
+
body: DashboardRequestToJSON(requestParameters.dashboardRequest),
|
|
94
94
|
}, initOverrides);
|
|
95
95
|
|
|
96
96
|
return new runtime.JSONApiResponse(response, (jsonValue) => CreateResponseFromJSON(jsonValue));
|
|
@@ -100,7 +100,7 @@ export class DashboardsApi extends runtime.BaseAPI {
|
|
|
100
100
|
* Creates a dashboard
|
|
101
101
|
* Create dashboard
|
|
102
102
|
*/
|
|
103
|
-
async createDashboard(requestParameters:
|
|
103
|
+
async createDashboard(requestParameters: CreateDashboardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse> {
|
|
104
104
|
const response = await this.createDashboardRaw(requestParameters, initOverrides);
|
|
105
105
|
return await response.value();
|
|
106
106
|
}
|
|
@@ -246,8 +246,8 @@ export class DashboardsApi extends runtime.BaseAPI {
|
|
|
246
246
|
throw new runtime.RequiredError('dashboardId','Required parameter requestParameters.dashboardId was null or undefined when calling updateDashboard.');
|
|
247
247
|
}
|
|
248
248
|
|
|
249
|
-
if (requestParameters.
|
|
250
|
-
throw new runtime.RequiredError('
|
|
249
|
+
if (requestParameters.dashboardRequest === null || requestParameters.dashboardRequest === undefined) {
|
|
250
|
+
throw new runtime.RequiredError('dashboardRequest','Required parameter requestParameters.dashboardRequest was null or undefined when calling updateDashboard.');
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
const queryParameters: any = {};
|
|
@@ -269,7 +269,7 @@ export class DashboardsApi extends runtime.BaseAPI {
|
|
|
269
269
|
method: 'PUT',
|
|
270
270
|
headers: headerParameters,
|
|
271
271
|
query: queryParameters,
|
|
272
|
-
body:
|
|
272
|
+
body: DashboardRequestToJSON(requestParameters.dashboardRequest),
|
|
273
273
|
}, initOverrides);
|
|
274
274
|
|
|
275
275
|
return new runtime.JSONApiResponse(response, (jsonValue) => DashboardFromJSON(jsonValue));
|
package/src/apis/MetadataApi.ts
CHANGED
|
@@ -15,9 +15,12 @@
|
|
|
15
15
|
|
|
16
16
|
import * as runtime from '../runtime';
|
|
17
17
|
import type {
|
|
18
|
+
FormSchema,
|
|
18
19
|
Sample,
|
|
19
20
|
} from '../models/index';
|
|
20
21
|
import {
|
|
22
|
+
FormSchemaFromJSON,
|
|
23
|
+
FormSchemaToJSON,
|
|
21
24
|
SampleFromJSON,
|
|
22
25
|
SampleToJSON,
|
|
23
26
|
} from '../models/index';
|
|
@@ -26,6 +29,10 @@ export interface GetProjectSamplesRequest {
|
|
|
26
29
|
projectId: string;
|
|
27
30
|
}
|
|
28
31
|
|
|
32
|
+
export interface GetProjectSchemaRequest {
|
|
33
|
+
projectId: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
29
36
|
export interface UpdateSampleRequest {
|
|
30
37
|
projectId: string;
|
|
31
38
|
sample: Sample;
|
|
@@ -74,6 +81,44 @@ export class MetadataApi extends runtime.BaseAPI {
|
|
|
74
81
|
return await response.value();
|
|
75
82
|
}
|
|
76
83
|
|
|
84
|
+
/**
|
|
85
|
+
* Get project metadata schema
|
|
86
|
+
*/
|
|
87
|
+
async getProjectSchemaRaw(requestParameters: GetProjectSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FormSchema>> {
|
|
88
|
+
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
89
|
+
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getProjectSchema.');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const queryParameters: any = {};
|
|
93
|
+
|
|
94
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
95
|
+
|
|
96
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
97
|
+
const token = this.configuration.accessToken;
|
|
98
|
+
const tokenString = await token("accessToken", []);
|
|
99
|
+
|
|
100
|
+
if (tokenString) {
|
|
101
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
const response = await this.request({
|
|
105
|
+
path: `/projects/{projectId}/schema`.replace(`{${"projectId"}}`, encodeURIComponent(String(requestParameters.projectId))),
|
|
106
|
+
method: 'GET',
|
|
107
|
+
headers: headerParameters,
|
|
108
|
+
query: queryParameters,
|
|
109
|
+
}, initOverrides);
|
|
110
|
+
|
|
111
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FormSchemaFromJSON(jsonValue));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Get project metadata schema
|
|
116
|
+
*/
|
|
117
|
+
async getProjectSchema(requestParameters: GetProjectSchemaRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FormSchema> {
|
|
118
|
+
const response = await this.getProjectSchemaRaw(requestParameters, initOverrides);
|
|
119
|
+
return await response.value();
|
|
120
|
+
}
|
|
121
|
+
|
|
77
122
|
/**
|
|
78
123
|
* Update sample
|
|
79
124
|
*/
|
package/src/apis/NotebooksApi.ts
CHANGED
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
CreateNotebookInstanceRequest,
|
|
19
19
|
CreateResponse,
|
|
20
20
|
NotebookInstance,
|
|
21
|
+
NotebookInstanceStatusResponse,
|
|
21
22
|
OpenNotebookInstanceResponse,
|
|
22
23
|
} from '../models/index';
|
|
23
24
|
import {
|
|
@@ -27,6 +28,8 @@ import {
|
|
|
27
28
|
CreateResponseToJSON,
|
|
28
29
|
NotebookInstanceFromJSON,
|
|
29
30
|
NotebookInstanceToJSON,
|
|
31
|
+
NotebookInstanceStatusResponseFromJSON,
|
|
32
|
+
NotebookInstanceStatusResponseToJSON,
|
|
30
33
|
OpenNotebookInstanceResponseFromJSON,
|
|
31
34
|
OpenNotebookInstanceResponseToJSON,
|
|
32
35
|
} from '../models/index';
|
|
@@ -189,7 +192,7 @@ export class NotebooksApi extends runtime.BaseAPI {
|
|
|
189
192
|
|
|
190
193
|
/**
|
|
191
194
|
*/
|
|
192
|
-
async getNotebookInstanceStatusRaw(requestParameters: GetNotebookInstanceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
195
|
+
async getNotebookInstanceStatusRaw(requestParameters: GetNotebookInstanceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<NotebookInstanceStatusResponse>> {
|
|
193
196
|
if (requestParameters.notebookInstanceId === null || requestParameters.notebookInstanceId === undefined) {
|
|
194
197
|
throw new runtime.RequiredError('notebookInstanceId','Required parameter requestParameters.notebookInstanceId was null or undefined when calling getNotebookInstanceStatus.');
|
|
195
198
|
}
|
|
@@ -217,16 +220,12 @@ export class NotebooksApi extends runtime.BaseAPI {
|
|
|
217
220
|
query: queryParameters,
|
|
218
221
|
}, initOverrides);
|
|
219
222
|
|
|
220
|
-
|
|
221
|
-
return new runtime.JSONApiResponse<string>(response);
|
|
222
|
-
} else {
|
|
223
|
-
return new runtime.TextApiResponse(response) as any;
|
|
224
|
-
}
|
|
223
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => NotebookInstanceStatusResponseFromJSON(jsonValue));
|
|
225
224
|
}
|
|
226
225
|
|
|
227
226
|
/**
|
|
228
227
|
*/
|
|
229
|
-
async getNotebookInstanceStatus(requestParameters: GetNotebookInstanceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
228
|
+
async getNotebookInstanceStatus(requestParameters: GetNotebookInstanceStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<NotebookInstanceStatusResponse> {
|
|
230
229
|
const response = await this.getNotebookInstanceStatusRaw(requestParameters, initOverrides);
|
|
231
230
|
return await response.value();
|
|
232
231
|
}
|
package/src/apis/SystemApi.ts
CHANGED
|
@@ -92,4 +92,30 @@ export class SystemApi extends runtime.BaseAPI {
|
|
|
92
92
|
return await response.value();
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Get system info
|
|
97
|
+
*/
|
|
98
|
+
async info1Raw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SystemInfoResponse>> {
|
|
99
|
+
const queryParameters: any = {};
|
|
100
|
+
|
|
101
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
102
|
+
|
|
103
|
+
const response = await this.request({
|
|
104
|
+
path: `/info/system`,
|
|
105
|
+
method: 'GET',
|
|
106
|
+
headers: headerParameters,
|
|
107
|
+
query: queryParameters,
|
|
108
|
+
}, initOverrides);
|
|
109
|
+
|
|
110
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SystemInfoResponseFromJSON(jsonValue));
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* Get system info
|
|
115
|
+
*/
|
|
116
|
+
async info1(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SystemInfoResponse> {
|
|
117
|
+
const response = await this.info1Raw(initOverrides);
|
|
118
|
+
return await response.value();
|
|
119
|
+
}
|
|
120
|
+
|
|
95
121
|
}
|
package/src/models/Dashboard.ts
CHANGED
|
@@ -43,6 +43,12 @@ export interface Dashboard {
|
|
|
43
43
|
* @memberof Dashboard
|
|
44
44
|
*/
|
|
45
45
|
dashboardData: { [key: string]: any; };
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {{ [key: string]: any; }}
|
|
49
|
+
* @memberof Dashboard
|
|
50
|
+
*/
|
|
51
|
+
info: { [key: string]: any; };
|
|
46
52
|
/**
|
|
47
53
|
*
|
|
48
54
|
* @type {string}
|
|
@@ -72,6 +78,7 @@ export function instanceOfDashboard(value: object): boolean {
|
|
|
72
78
|
isInstance = isInstance && "name" in value;
|
|
73
79
|
isInstance = isInstance && "description" in value;
|
|
74
80
|
isInstance = isInstance && "dashboardData" in value;
|
|
81
|
+
isInstance = isInstance && "info" in value;
|
|
75
82
|
isInstance = isInstance && "createdBy" in value;
|
|
76
83
|
isInstance = isInstance && "createdAt" in value;
|
|
77
84
|
isInstance = isInstance && "updatedAt" in value;
|
|
@@ -93,6 +100,7 @@ export function DashboardFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
|
|
93
100
|
'name': json['name'],
|
|
94
101
|
'description': json['description'],
|
|
95
102
|
'dashboardData': json['dashboardData'],
|
|
103
|
+
'info': json['info'],
|
|
96
104
|
'createdBy': json['createdBy'],
|
|
97
105
|
'createdAt': (new Date(json['createdAt'])),
|
|
98
106
|
'updatedAt': (new Date(json['updatedAt'])),
|
|
@@ -112,6 +120,7 @@ export function DashboardToJSON(value?: Dashboard | null): any {
|
|
|
112
120
|
'name': value.name,
|
|
113
121
|
'description': value.description,
|
|
114
122
|
'dashboardData': value.dashboardData,
|
|
123
|
+
'info': value.info,
|
|
115
124
|
'createdBy': value.createdBy,
|
|
116
125
|
'createdAt': (value.createdAt.toISOString()),
|
|
117
126
|
'updatedAt': (value.updatedAt.toISOString()),
|
|
@@ -0,0 +1,93 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface DashboardRequest
|
|
20
|
+
*/
|
|
21
|
+
export interface DashboardRequest {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof DashboardRequest
|
|
26
|
+
*/
|
|
27
|
+
name: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof DashboardRequest
|
|
32
|
+
*/
|
|
33
|
+
description: string;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {{ [key: string]: any; }}
|
|
37
|
+
* @memberof DashboardRequest
|
|
38
|
+
*/
|
|
39
|
+
dashboardData: { [key: string]: any; };
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {{ [key: string]: any; }}
|
|
43
|
+
* @memberof DashboardRequest
|
|
44
|
+
*/
|
|
45
|
+
info: { [key: string]: any; };
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Check if a given object implements the DashboardRequest interface.
|
|
50
|
+
*/
|
|
51
|
+
export function instanceOfDashboardRequest(value: object): boolean {
|
|
52
|
+
let isInstance = true;
|
|
53
|
+
isInstance = isInstance && "name" in value;
|
|
54
|
+
isInstance = isInstance && "description" in value;
|
|
55
|
+
isInstance = isInstance && "dashboardData" in value;
|
|
56
|
+
isInstance = isInstance && "info" in value;
|
|
57
|
+
|
|
58
|
+
return isInstance;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export function DashboardRequestFromJSON(json: any): DashboardRequest {
|
|
62
|
+
return DashboardRequestFromJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export function DashboardRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): DashboardRequest {
|
|
66
|
+
if ((json === undefined) || (json === null)) {
|
|
67
|
+
return json;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
|
|
71
|
+
'name': json['name'],
|
|
72
|
+
'description': json['description'],
|
|
73
|
+
'dashboardData': json['dashboardData'],
|
|
74
|
+
'info': json['info'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function DashboardRequestToJSON(value?: DashboardRequest | null): any {
|
|
79
|
+
if (value === undefined) {
|
|
80
|
+
return undefined;
|
|
81
|
+
}
|
|
82
|
+
if (value === null) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'name': value.name,
|
|
88
|
+
'description': value.description,
|
|
89
|
+
'dashboardData': value.dashboardData,
|
|
90
|
+
'info': value.info,
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
package/src/models/FormSchema.ts
CHANGED
|
@@ -20,7 +20,7 @@ import { exists, mapValues } from '../runtime';
|
|
|
20
20
|
*/
|
|
21
21
|
export interface FormSchema {
|
|
22
22
|
/**
|
|
23
|
-
* JSONSchema representation of the
|
|
23
|
+
* JSONSchema representation of the parameters
|
|
24
24
|
* @type {{ [key: string]: any; }}
|
|
25
25
|
* @memberof FormSchema
|
|
26
26
|
*/
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface NotebookInstanceStatusResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface NotebookInstanceStatusResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof NotebookInstanceStatusResponse
|
|
26
|
+
*/
|
|
27
|
+
status: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the NotebookInstanceStatusResponse interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfNotebookInstanceStatusResponse(value: object): boolean {
|
|
34
|
+
let isInstance = true;
|
|
35
|
+
isInstance = isInstance && "status" in value;
|
|
36
|
+
|
|
37
|
+
return isInstance;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function NotebookInstanceStatusResponseFromJSON(json: any): NotebookInstanceStatusResponse {
|
|
41
|
+
return NotebookInstanceStatusResponseFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function NotebookInstanceStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): NotebookInstanceStatusResponse {
|
|
45
|
+
if ((json === undefined) || (json === null)) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
|
|
50
|
+
'status': json['status'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function NotebookInstanceStatusResponseToJSON(value?: NotebookInstanceStatusResponse | null): any {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'status': value.status,
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/Sample.ts
CHANGED
|
@@ -19,6 +19,12 @@ import { exists, mapValues } from '../runtime';
|
|
|
19
19
|
* @interface Sample
|
|
20
20
|
*/
|
|
21
21
|
export interface Sample {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Sample
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
22
28
|
/**
|
|
23
29
|
*
|
|
24
30
|
* @type {string}
|
|
@@ -50,6 +56,7 @@ export interface Sample {
|
|
|
50
56
|
*/
|
|
51
57
|
export function instanceOfSample(value: object): boolean {
|
|
52
58
|
let isInstance = true;
|
|
59
|
+
isInstance = isInstance && "id" in value;
|
|
53
60
|
isInstance = isInstance && "name" in value;
|
|
54
61
|
isInstance = isInstance && "metadata" in value;
|
|
55
62
|
isInstance = isInstance && "createdAt" in value;
|
|
@@ -68,6 +75,7 @@ export function SampleFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sa
|
|
|
68
75
|
}
|
|
69
76
|
return {
|
|
70
77
|
|
|
78
|
+
'id': json['id'],
|
|
71
79
|
'name': json['name'],
|
|
72
80
|
'metadata': json['metadata'],
|
|
73
81
|
'createdAt': (new Date(json['createdAt'])),
|
|
@@ -84,6 +92,7 @@ export function SampleToJSON(value?: Sample | null): any {
|
|
|
84
92
|
}
|
|
85
93
|
return {
|
|
86
94
|
|
|
95
|
+
'id': value.id,
|
|
87
96
|
'name': value.name,
|
|
88
97
|
'metadata': value.metadata,
|
|
89
98
|
'createdAt': (value.createdAt.toISOString()),
|
package/src/models/index.ts
CHANGED
|
@@ -5,12 +5,12 @@ export * from './BillingMethod';
|
|
|
5
5
|
export * from './BudgetPeriod';
|
|
6
6
|
export * from './CloudAccount';
|
|
7
7
|
export * from './Contact';
|
|
8
|
-
export * from './CreateDashboardRequest';
|
|
9
8
|
export * from './CreateNotebookInstanceRequest';
|
|
10
9
|
export * from './CreateResponse';
|
|
11
10
|
export * from './CustomPipelineSettings';
|
|
12
11
|
export * from './CustomerType';
|
|
13
12
|
export * from './Dashboard';
|
|
13
|
+
export * from './DashboardRequest';
|
|
14
14
|
export * from './Dataset';
|
|
15
15
|
export * from './DatasetDetail';
|
|
16
16
|
export * from './Executor';
|
|
@@ -19,6 +19,7 @@ export * from './GetExecutionLogsResponse';
|
|
|
19
19
|
export * from './LogEntry';
|
|
20
20
|
export * from './MetricRecord';
|
|
21
21
|
export * from './NotebookInstance';
|
|
22
|
+
export * from './NotebookInstanceStatusResponse';
|
|
22
23
|
export * from './OpenNotebookInstanceResponse';
|
|
23
24
|
export * from './PaginatedResponseDatasetListDto';
|
|
24
25
|
export * from './Process';
|