@cirrobio/api-client 0.1.9 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +106 -105
- package/README.md +1 -1
- package/dist/apis/AuditApi.d.ts +44 -44
- package/dist/apis/AuditApi.js +175 -175
- package/dist/apis/BillingApi.d.ts +81 -81
- package/dist/apis/BillingApi.js +354 -354
- package/dist/apis/DashboardsApi.d.ts +88 -88
- package/dist/apis/DashboardsApi.js +374 -374
- package/dist/apis/DatasetsApi.d.ts +162 -162
- package/dist/apis/DatasetsApi.js +670 -670
- package/dist/apis/ExecutionApi.d.ts +110 -110
- package/dist/apis/ExecutionApi.js +442 -442
- package/dist/apis/FileApi.d.ts +46 -46
- package/dist/apis/FileApi.js +200 -200
- package/dist/apis/MetadataApi.d.ts +71 -71
- package/dist/apis/MetadataApi.js +313 -313
- package/dist/apis/MetricsApi.d.ts +41 -41
- package/dist/apis/MetricsApi.js +187 -187
- package/dist/apis/NotebooksApi.d.ts +101 -101
- package/dist/apis/NotebooksApi.js +423 -423
- package/dist/apis/ProcessesApi.d.ts +138 -124
- package/dist/apis/ProcessesApi.js +589 -529
- package/dist/apis/ProjectsApi.d.ts +122 -122
- package/dist/apis/ProjectsApi.js +528 -528
- package/dist/apis/ReferencesApi.d.ts +91 -91
- package/dist/apis/ReferencesApi.js +405 -405
- package/dist/apis/SystemApi.d.ts +36 -36
- package/dist/apis/SystemApi.js +182 -182
- package/dist/apis/UsersApi.d.ts +84 -84
- package/dist/apis/UsersApi.js +363 -363
- package/dist/apis/index.d.ts +14 -14
- package/dist/apis/index.js +32 -32
- package/dist/index.d.ts +3 -3
- package/dist/index.js +21 -21
- package/dist/models/AWSCredentials.d.ts +55 -55
- package/dist/models/AWSCredentials.js +62 -62
- package/dist/models/AccessType.d.ts +25 -25
- package/dist/models/AccessType.js +40 -40
- package/dist/models/AllowedDataType.d.ts +44 -44
- package/dist/models/AllowedDataType.js +57 -57
- package/dist/models/AuditEvent.d.ts +89 -89
- package/dist/models/AuditEvent.js +68 -68
- package/dist/models/AuthInfo.d.ts +49 -49
- package/dist/models/AuthInfo.js +59 -59
- package/dist/models/BillingAccount.d.ts +88 -88
- package/dist/models/BillingAccount.js +80 -80
- package/dist/models/BillingAccountRequest.d.ts +70 -70
- package/dist/models/BillingAccountRequest.js +71 -71
- package/dist/models/BillingMethod.d.ts +24 -24
- package/dist/models/BillingMethod.js +39 -39
- package/dist/models/BudgetPeriod.d.ts +24 -24
- package/dist/models/BudgetPeriod.js +39 -39
- package/dist/models/CloudAccount.d.ts +50 -50
- package/dist/models/CloudAccount.js +58 -58
- package/dist/models/CloudAccountType.d.ts +23 -23
- package/dist/models/CloudAccountType.js +38 -38
- package/dist/models/ColumnDefinition.d.ts +43 -43
- package/dist/models/ColumnDefinition.js +54 -54
- package/dist/models/Contact.d.ts +49 -49
- package/dist/models/Contact.js +59 -59
- package/dist/models/CreateNotebookInstanceRequest.d.ts +49 -49
- package/dist/models/CreateNotebookInstanceRequest.js +59 -59
- package/dist/models/CreateReferenceRequest.d.ts +49 -49
- package/dist/models/CreateReferenceRequest.js +59 -59
- package/dist/models/CreateResponse.d.ts +37 -37
- package/dist/models/CreateResponse.js +53 -53
- package/dist/models/CustomPipelineSettings.d.ts +62 -62
- package/dist/models/CustomPipelineSettings.js +62 -62
- package/dist/models/CustomerType.d.ts +24 -24
- package/dist/models/CustomerType.js +39 -39
- package/dist/models/Dashboard.d.ts +83 -83
- package/dist/models/Dashboard.js +74 -74
- package/dist/models/DashboardRequest.d.ts +59 -59
- package/dist/models/DashboardRequest.js +62 -62
- package/dist/models/Dataset.d.ts +93 -93
- package/dist/models/Dataset.js +82 -82
- package/dist/models/DatasetAssetsManifest.d.ts +58 -58
- package/dist/models/DatasetAssetsManifest.js +61 -61
- package/dist/models/DatasetDetail.d.ts +121 -121
- package/dist/models/DatasetDetail.js +94 -94
- package/dist/models/DatasetViz.d.ts +49 -49
- package/dist/models/DatasetViz.js +56 -56
- package/dist/models/ErrorMessage.d.ts +31 -31
- package/dist/models/ErrorMessage.js +50 -50
- package/dist/models/Executor.d.ts +25 -24
- package/dist/models/Executor.js +40 -39
- package/dist/models/FileAccessRequest.d.ts +44 -44
- package/dist/models/FileAccessRequest.js +56 -56
- package/dist/models/FileEntry.d.ts +45 -45
- package/dist/models/FileEntry.js +54 -54
- package/dist/models/FileMappingRule.d.ts +56 -56
- package/dist/models/FileMappingRule.js +61 -61
- package/dist/models/FileNamePattern.d.ts +43 -43
- package/dist/models/FileNamePattern.js +56 -56
- package/dist/models/FileRequirements.d.ts +44 -44
- package/dist/models/FileRequirements.js +57 -57
- package/dist/models/FormSchema.d.ts +41 -41
- package/dist/models/FormSchema.js +52 -52
- package/dist/models/GenerateSftpCredentialsRequest.d.ts +31 -31
- package/dist/models/GenerateSftpCredentialsRequest.js +50 -50
- package/dist/models/GetExecutionLogsResponse.d.ts +32 -32
- package/dist/models/GetExecutionLogsResponse.js +51 -51
- package/dist/models/ImportDataRequest.d.ts +43 -43
- package/dist/models/ImportDataRequest.js +56 -56
- package/dist/models/InviteUserRequest.d.ts +43 -43
- package/dist/models/InviteUserRequest.js +56 -56
- package/dist/models/InviteUserResponse.d.ts +31 -31
- package/dist/models/InviteUserResponse.js +50 -50
- package/dist/models/LogEntry.d.ts +37 -37
- package/dist/models/LogEntry.js +53 -53
- package/dist/models/LoginProvider.d.ts +49 -49
- package/dist/models/LoginProvider.js +59 -59
- package/dist/models/MetricRecord.d.ts +45 -45
- package/dist/models/MetricRecord.js +55 -55
- package/dist/models/NotebookInstance.d.ts +86 -86
- package/dist/models/NotebookInstance.js +78 -78
- package/dist/models/NotebookInstanceStatusResponse.d.ts +37 -37
- package/dist/models/NotebookInstanceStatusResponse.js +53 -53
- package/dist/models/OpenNotebookInstanceResponse.d.ts +37 -37
- package/dist/models/OpenNotebookInstanceResponse.js +53 -53
- package/dist/models/PaginatedResponseDatasetListDto.d.ts +38 -38
- package/dist/models/PaginatedResponseDatasetListDto.js +54 -54
- package/dist/models/PaginatedResponseSampleDto.d.ts +38 -38
- package/dist/models/PaginatedResponseSampleDto.js +54 -54
- package/dist/models/PipelineCode.d.ts +50 -50
- package/dist/models/PipelineCode.js +60 -60
- package/dist/models/PipelineCost.d.ts +43 -0
- package/dist/models/PipelineCost.js +54 -0
- package/dist/models/PortalErrorResponse.d.ts +50 -50
- package/dist/models/PortalErrorResponse.js +60 -60
- package/dist/models/Process.d.ts +104 -104
- package/dist/models/Process.js +78 -78
- package/dist/models/ProcessDetail.d.ts +125 -125
- package/dist/models/ProcessDetail.js +91 -91
- package/dist/models/Project.d.ts +63 -63
- package/dist/models/Project.js +67 -67
- package/dist/models/ProjectDetail.d.ts +101 -101
- package/dist/models/ProjectDetail.js +87 -87
- package/dist/models/ProjectMetrics.d.ts +44 -44
- package/dist/models/ProjectMetrics.js +56 -56
- package/dist/models/ProjectRequest.d.ts +71 -71
- package/dist/models/ProjectRequest.js +71 -71
- package/dist/models/ProjectRole.d.ts +25 -25
- package/dist/models/ProjectRole.js +40 -40
- package/dist/models/ProjectSettings.d.ts +116 -116
- package/dist/models/ProjectSettings.js +81 -81
- package/dist/models/ProjectUser.d.ts +62 -62
- package/dist/models/ProjectUser.js +66 -66
- package/dist/models/Reference.d.ts +68 -68
- package/dist/models/Reference.js +69 -69
- package/dist/models/ReferenceType.d.ts +51 -51
- package/dist/models/ReferenceType.js +59 -59
- package/dist/models/RepositoryType.d.ts +25 -25
- package/dist/models/RepositoryType.js +40 -40
- package/dist/models/ResourcesInfo.d.ts +49 -49
- package/dist/models/ResourcesInfo.js +59 -59
- package/dist/models/RunAnalysisRequest.d.ts +69 -69
- package/dist/models/RunAnalysisRequest.js +67 -67
- package/dist/models/Sample.d.ts +63 -63
- package/dist/models/Sample.js +65 -65
- package/dist/models/SampleRequest.d.ts +39 -39
- package/dist/models/SampleRequest.js +53 -53
- package/dist/models/ServiceConnection.d.ts +37 -37
- package/dist/models/ServiceConnection.js +53 -53
- package/dist/models/SetUserProjectRoleRequest.d.ts +44 -44
- package/dist/models/SetUserProjectRoleRequest.js +57 -57
- package/dist/models/SftpCredentials.d.ts +49 -49
- package/dist/models/SftpCredentials.js +59 -59
- package/dist/models/Status.d.ts +30 -30
- package/dist/models/Status.js +45 -45
- package/dist/models/StopExecutionResponse.d.ts +37 -37
- package/dist/models/StopExecutionResponse.js +52 -52
- package/dist/models/SyncStatus.d.ts +23 -23
- package/dist/models/SyncStatus.js +38 -38
- package/dist/models/SystemInfoResponse.d.ts +94 -94
- package/dist/models/SystemInfoResponse.js +83 -83
- package/dist/models/Table.d.ts +62 -62
- package/dist/models/Table.js +62 -62
- package/dist/models/Tag.d.ts +43 -43
- package/dist/models/Tag.js +56 -56
- package/dist/models/Task.d.ts +73 -73
- package/dist/models/Task.js +68 -68
- package/dist/models/TenantInfo.d.ts +80 -80
- package/dist/models/TenantInfo.js +75 -75
- package/dist/models/UpdateDatasetRequest.d.ts +50 -50
- package/dist/models/UpdateDatasetRequest.js +60 -60
- package/dist/models/UpdateUserRequest.d.ts +69 -69
- package/dist/models/UpdateUserRequest.js +64 -64
- package/dist/models/UploadDatasetCreateResponse.d.ts +43 -43
- package/dist/models/UploadDatasetCreateResponse.js +56 -56
- package/dist/models/UploadDatasetRequest.d.ts +49 -49
- package/dist/models/UploadDatasetRequest.js +59 -59
- package/dist/models/User.d.ts +49 -49
- package/dist/models/User.js +59 -59
- package/dist/models/UserDetail.d.ts +86 -86
- package/dist/models/UserDetail.js +78 -78
- package/dist/models/UserProjectAssignment.d.ts +50 -50
- package/dist/models/UserProjectAssignment.js +60 -60
- package/dist/models/ValidateFileRequirementsRequest.d.ts +37 -37
- package/dist/models/ValidateFileRequirementsRequest.js +53 -53
- package/dist/models/index.d.ts +83 -82
- package/dist/models/index.js +101 -100
- package/dist/runtime.d.ts +182 -182
- package/dist/runtime.js +562 -562
- package/package.json +1 -1
- package/src/apis/ProcessesApi.ts +55 -0
- package/src/models/Executor.ts +2 -1
- package/src/models/PipelineCost.ts +81 -0
- package/src/models/index.ts +1 -0
- package/dist/models/CreateDashboardRequest.d.ts +0 -31
- package/dist/models/CreateDashboardRequest.js +0 -50
- package/dist/models/CustomPipelineSettingsDto1.d.ts +0 -61
- package/dist/models/CustomPipelineSettingsDto1.js +0 -65
- package/dist/models/CustomProcessRequest.d.ts +0 -99
- package/dist/models/CustomProcessRequest.js +0 -83
- package/dist/models/CustomProcessRequestPipelineCode.d.ts +0 -50
- package/dist/models/CustomProcessRequestPipelineCode.js +0 -58
- package/dist/models/DatasetFile.d.ts +0 -45
- package/dist/models/DatasetFile.js +0 -54
- package/dist/models/DatasetType.d.ts +0 -23
- package/dist/models/DatasetType.js +0 -38
- package/dist/models/ProcessDetailAllOfPipelineCode.d.ts +0 -50
- package/dist/models/ProcessDetailAllOfPipelineCode.js +0 -58
- package/dist/models/Region.d.ts +0 -31
- package/dist/models/Region.js +0 -50
- package/dist/models/RegisterDatasetRequest.d.ts +0 -49
- package/dist/models/RegisterDatasetRequest.js +0 -59
- package/dist/models/RegisterPublicDataRequest.d.ts +0 -43
- package/dist/models/RegisterPublicDataRequest.js +0 -56
- package/dist/models/S3Credentials.d.ts +0 -55
- package/dist/models/S3Credentials.js +0 -62
- package/dist/models/ValidateDataInputsRequest.d.ts +0 -37
- package/dist/models/ValidateDataInputsRequest.js +0 -53
- package/dist/models/ValidateDataInputsResponse.d.ts +0 -44
- package/dist/models/ValidateDataInputsResponse.js +0 -57
|
@@ -1,41 +1,41 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
-
import type { ProjectMetrics } from '../models/index';
|
|
14
|
-
export interface GetProjectMetricsRequest {
|
|
15
|
-
projectId: string;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
export declare class MetricsApi extends runtime.BaseAPI {
|
|
21
|
-
/**
|
|
22
|
-
* Retrieves metrics for all projects.
|
|
23
|
-
* Get all project metrics
|
|
24
|
-
*/
|
|
25
|
-
getAllMetricsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectMetrics>>>;
|
|
26
|
-
/**
|
|
27
|
-
* Retrieves metrics for all projects.
|
|
28
|
-
* Get all project metrics
|
|
29
|
-
*/
|
|
30
|
-
getAllMetrics(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectMetrics>>;
|
|
31
|
-
/**
|
|
32
|
-
* Retrieves metrics about a project.
|
|
33
|
-
* Get project metrics
|
|
34
|
-
*/
|
|
35
|
-
getProjectMetricsRaw(requestParameters: GetProjectMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectMetrics>>;
|
|
36
|
-
/**
|
|
37
|
-
* Retrieves metrics about a project.
|
|
38
|
-
* Get project metrics
|
|
39
|
-
*/
|
|
40
|
-
getProjectMetrics(requestParameters: GetProjectMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectMetrics>;
|
|
41
|
-
}
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { ProjectMetrics } from '../models/index';
|
|
14
|
+
export interface GetProjectMetricsRequest {
|
|
15
|
+
projectId: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
export declare class MetricsApi extends runtime.BaseAPI {
|
|
21
|
+
/**
|
|
22
|
+
* Retrieves metrics for all projects.
|
|
23
|
+
* Get all project metrics
|
|
24
|
+
*/
|
|
25
|
+
getAllMetricsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ProjectMetrics>>>;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves metrics for all projects.
|
|
28
|
+
* Get all project metrics
|
|
29
|
+
*/
|
|
30
|
+
getAllMetrics(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ProjectMetrics>>;
|
|
31
|
+
/**
|
|
32
|
+
* Retrieves metrics about a project.
|
|
33
|
+
* Get project metrics
|
|
34
|
+
*/
|
|
35
|
+
getProjectMetricsRaw(requestParameters: GetProjectMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ProjectMetrics>>;
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves metrics about a project.
|
|
38
|
+
* Get project metrics
|
|
39
|
+
*/
|
|
40
|
+
getProjectMetrics(requestParameters: GetProjectMetricsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ProjectMetrics>;
|
|
41
|
+
}
|
package/dist/apis/MetricsApi.js
CHANGED
|
@@ -1,187 +1,187 @@
|
|
|
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
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
-
function step(op) {
|
|
44
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
-
switch (op[0]) {
|
|
49
|
-
case 0: case 1: t = op; break;
|
|
50
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
-
default:
|
|
54
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
-
if (t[2]) _.ops.pop();
|
|
59
|
-
_.trys.pop(); continue;
|
|
60
|
-
}
|
|
61
|
-
op = body.call(thisArg, _);
|
|
62
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
-
exports.MetricsApi = void 0;
|
|
68
|
-
var runtime = require("../runtime");
|
|
69
|
-
var index_1 = require("../models/index");
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
73
|
-
var MetricsApi = /** @class */ (function (_super) {
|
|
74
|
-
__extends(MetricsApi, _super);
|
|
75
|
-
function MetricsApi() {
|
|
76
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Retrieves metrics for all projects.
|
|
80
|
-
* Get all project metrics
|
|
81
|
-
*/
|
|
82
|
-
MetricsApi.prototype.getAllMetricsRaw = function (initOverrides) {
|
|
83
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
-
var queryParameters, headerParameters, token, tokenString, response;
|
|
85
|
-
return __generator(this, function (_a) {
|
|
86
|
-
switch (_a.label) {
|
|
87
|
-
case 0:
|
|
88
|
-
queryParameters = {};
|
|
89
|
-
headerParameters = {};
|
|
90
|
-
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
91
|
-
token = this.configuration.accessToken;
|
|
92
|
-
return [4 /*yield*/, token("accessToken", [])];
|
|
93
|
-
case 1:
|
|
94
|
-
tokenString = _a.sent();
|
|
95
|
-
if (tokenString) {
|
|
96
|
-
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
97
|
-
}
|
|
98
|
-
_a.label = 2;
|
|
99
|
-
case 2: return [4 /*yield*/, this.request({
|
|
100
|
-
path: "/metrics",
|
|
101
|
-
method: 'GET',
|
|
102
|
-
headers: headerParameters,
|
|
103
|
-
query: queryParameters,
|
|
104
|
-
}, initOverrides)];
|
|
105
|
-
case 3:
|
|
106
|
-
response = _a.sent();
|
|
107
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ProjectMetricsFromJSON); })];
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* Retrieves metrics for all projects.
|
|
114
|
-
* Get all project metrics
|
|
115
|
-
*/
|
|
116
|
-
MetricsApi.prototype.getAllMetrics = function (initOverrides) {
|
|
117
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
118
|
-
var response;
|
|
119
|
-
return __generator(this, function (_a) {
|
|
120
|
-
switch (_a.label) {
|
|
121
|
-
case 0: return [4 /*yield*/, this.getAllMetricsRaw(initOverrides)];
|
|
122
|
-
case 1:
|
|
123
|
-
response = _a.sent();
|
|
124
|
-
return [4 /*yield*/, response.value()];
|
|
125
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
};
|
|
130
|
-
/**
|
|
131
|
-
* Retrieves metrics about a project.
|
|
132
|
-
* Get project metrics
|
|
133
|
-
*/
|
|
134
|
-
MetricsApi.prototype.getProjectMetricsRaw = 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 getProjectMetrics.');
|
|
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}/metrics".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.ProjectMetricsFromJSON)(jsonValue); })];
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
});
|
|
166
|
-
};
|
|
167
|
-
/**
|
|
168
|
-
* Retrieves metrics about a project.
|
|
169
|
-
* Get project metrics
|
|
170
|
-
*/
|
|
171
|
-
MetricsApi.prototype.getProjectMetrics = function (requestParameters, initOverrides) {
|
|
172
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
173
|
-
var response;
|
|
174
|
-
return __generator(this, function (_a) {
|
|
175
|
-
switch (_a.label) {
|
|
176
|
-
case 0: return [4 /*yield*/, this.getProjectMetricsRaw(requestParameters, initOverrides)];
|
|
177
|
-
case 1:
|
|
178
|
-
response = _a.sent();
|
|
179
|
-
return [4 /*yield*/, response.value()];
|
|
180
|
-
case 2: return [2 /*return*/, _a.sent()];
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
};
|
|
185
|
-
return MetricsApi;
|
|
186
|
-
}(runtime.BaseAPI));
|
|
187
|
-
exports.MetricsApi = MetricsApi;
|
|
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
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
31
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
32
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
33
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
34
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
35
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
36
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
37
|
+
});
|
|
38
|
+
};
|
|
39
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
40
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
41
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
42
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43
|
+
function step(op) {
|
|
44
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
45
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
46
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
47
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
48
|
+
switch (op[0]) {
|
|
49
|
+
case 0: case 1: t = op; break;
|
|
50
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
51
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
52
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
53
|
+
default:
|
|
54
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
55
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
56
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
57
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
58
|
+
if (t[2]) _.ops.pop();
|
|
59
|
+
_.trys.pop(); continue;
|
|
60
|
+
}
|
|
61
|
+
op = body.call(thisArg, _);
|
|
62
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
63
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
67
|
+
exports.MetricsApi = void 0;
|
|
68
|
+
var runtime = require("../runtime");
|
|
69
|
+
var index_1 = require("../models/index");
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
*/
|
|
73
|
+
var MetricsApi = /** @class */ (function (_super) {
|
|
74
|
+
__extends(MetricsApi, _super);
|
|
75
|
+
function MetricsApi() {
|
|
76
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Retrieves metrics for all projects.
|
|
80
|
+
* Get all project metrics
|
|
81
|
+
*/
|
|
82
|
+
MetricsApi.prototype.getAllMetricsRaw = function (initOverrides) {
|
|
83
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
84
|
+
var queryParameters, headerParameters, token, tokenString, response;
|
|
85
|
+
return __generator(this, function (_a) {
|
|
86
|
+
switch (_a.label) {
|
|
87
|
+
case 0:
|
|
88
|
+
queryParameters = {};
|
|
89
|
+
headerParameters = {};
|
|
90
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
91
|
+
token = this.configuration.accessToken;
|
|
92
|
+
return [4 /*yield*/, token("accessToken", [])];
|
|
93
|
+
case 1:
|
|
94
|
+
tokenString = _a.sent();
|
|
95
|
+
if (tokenString) {
|
|
96
|
+
headerParameters["Authorization"] = "Bearer ".concat(tokenString);
|
|
97
|
+
}
|
|
98
|
+
_a.label = 2;
|
|
99
|
+
case 2: return [4 /*yield*/, this.request({
|
|
100
|
+
path: "/metrics",
|
|
101
|
+
method: 'GET',
|
|
102
|
+
headers: headerParameters,
|
|
103
|
+
query: queryParameters,
|
|
104
|
+
}, initOverrides)];
|
|
105
|
+
case 3:
|
|
106
|
+
response = _a.sent();
|
|
107
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.ProjectMetricsFromJSON); })];
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* Retrieves metrics for all projects.
|
|
114
|
+
* Get all project metrics
|
|
115
|
+
*/
|
|
116
|
+
MetricsApi.prototype.getAllMetrics = function (initOverrides) {
|
|
117
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
118
|
+
var response;
|
|
119
|
+
return __generator(this, function (_a) {
|
|
120
|
+
switch (_a.label) {
|
|
121
|
+
case 0: return [4 /*yield*/, this.getAllMetricsRaw(initOverrides)];
|
|
122
|
+
case 1:
|
|
123
|
+
response = _a.sent();
|
|
124
|
+
return [4 /*yield*/, response.value()];
|
|
125
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* Retrieves metrics about a project.
|
|
132
|
+
* Get project metrics
|
|
133
|
+
*/
|
|
134
|
+
MetricsApi.prototype.getProjectMetricsRaw = 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 getProjectMetrics.');
|
|
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}/metrics".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.ProjectMetricsFromJSON)(jsonValue); })];
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* Retrieves metrics about a project.
|
|
169
|
+
* Get project metrics
|
|
170
|
+
*/
|
|
171
|
+
MetricsApi.prototype.getProjectMetrics = function (requestParameters, initOverrides) {
|
|
172
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
173
|
+
var response;
|
|
174
|
+
return __generator(this, function (_a) {
|
|
175
|
+
switch (_a.label) {
|
|
176
|
+
case 0: return [4 /*yield*/, this.getProjectMetricsRaw(requestParameters, initOverrides)];
|
|
177
|
+
case 1:
|
|
178
|
+
response = _a.sent();
|
|
179
|
+
return [4 /*yield*/, response.value()];
|
|
180
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
});
|
|
184
|
+
};
|
|
185
|
+
return MetricsApi;
|
|
186
|
+
}(runtime.BaseAPI));
|
|
187
|
+
exports.MetricsApi = MetricsApi;
|