@cirrobio/api-client 0.4.3 → 0.9.0
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 +1 -0
- package/README.md +1 -1
- package/package.json +4 -2
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +1 -5
- package/dist/apis/AuditApi.d.ts +0 -60
- package/dist/apis/AuditApi.js +0 -194
- package/dist/apis/BillingApi.d.ts +0 -71
- package/dist/apis/BillingApi.js +0 -304
- package/dist/apis/ComputeEnvironmentApi.d.ts +0 -124
- package/dist/apis/ComputeEnvironmentApi.js +0 -532
- package/dist/apis/DashboardsApi.d.ts +0 -88
- package/dist/apis/DashboardsApi.js +0 -374
- package/dist/apis/DatasetsApi.d.ts +0 -162
- package/dist/apis/DatasetsApi.js +0 -670
- package/dist/apis/ExecutionApi.d.ts +0 -110
- package/dist/apis/ExecutionApi.js +0 -442
- package/dist/apis/FileApi.d.ts +0 -60
- package/dist/apis/FileApi.js +0 -260
- package/dist/apis/GovernanceApi.d.ts +0 -253
- package/dist/apis/GovernanceApi.js +0 -1094
- package/dist/apis/MetadataApi.d.ts +0 -85
- package/dist/apis/MetadataApi.js +0 -371
- package/dist/apis/MetricsApi.d.ts +0 -41
- package/dist/apis/MetricsApi.js +0 -187
- package/dist/apis/NotebooksApi.d.ts +0 -101
- package/dist/apis/NotebooksApi.js +0 -423
- package/dist/apis/ProcessesApi.d.ts +0 -138
- package/dist/apis/ProcessesApi.js +0 -589
- package/dist/apis/ProjectRequestsApi.d.ts +0 -31
- package/dist/apis/ProjectRequestsApi.js +0 -137
- package/dist/apis/ProjectsApi.d.ts +0 -225
- package/dist/apis/ProjectsApi.js +0 -973
- package/dist/apis/ReferencesApi.d.ts +0 -91
- package/dist/apis/ReferencesApi.js +0 -405
- package/dist/apis/SharingApi.d.ts +0 -145
- package/dist/apis/SharingApi.js +0 -601
- package/dist/apis/SystemApi.d.ts +0 -36
- package/dist/apis/SystemApi.js +0 -182
- package/dist/apis/ToolsApi.d.ts +0 -31
- package/dist/apis/ToolsApi.js +0 -137
- package/dist/apis/UsersApi.d.ts +0 -86
- package/dist/apis/UsersApi.js +0 -367
- package/dist/apis/index.d.ts +0 -19
- package/dist/apis/index.js +0 -37
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -21
- package/dist/models/AWSCredentials.d.ts +0 -55
- package/dist/models/AWSCredentials.js +0 -62
- package/dist/models/Agent.d.ts +0 -52
- package/dist/models/Agent.js +0 -58
- package/dist/models/AgentDetail.d.ts +0 -91
- package/dist/models/AgentDetail.js +0 -77
- package/dist/models/AgentInput.d.ts +0 -67
- package/dist/models/AgentInput.js +0 -62
- package/dist/models/AgentRegistration.d.ts +0 -55
- package/dist/models/AgentRegistration.js +0 -62
- package/dist/models/AgentStatus.d.ts +0 -23
- package/dist/models/AgentStatus.js +0 -38
- package/dist/models/AllowedDataType.d.ts +0 -44
- package/dist/models/AllowedDataType.js +0 -57
- package/dist/models/ApproveAccessRequest.d.ts +0 -32
- package/dist/models/ApproveAccessRequest.js +0 -51
- package/dist/models/ApproveProjectAccessRequest.d.ts +0 -32
- package/dist/models/ApproveProjectAccessRequest.js +0 -51
- package/dist/models/Artifact.d.ts +0 -38
- package/dist/models/Artifact.js +0 -54
- package/dist/models/ArtifactType.d.ts +0 -34
- package/dist/models/ArtifactType.js +0 -49
- package/dist/models/AuditEvent.d.ts +0 -89
- package/dist/models/AuditEvent.js +0 -68
- package/dist/models/AuthInfo.d.ts +0 -55
- package/dist/models/AuthInfo.js +0 -62
- package/dist/models/BillingAccount.d.ts +0 -88
- package/dist/models/BillingAccount.js +0 -80
- package/dist/models/BillingAccountRequest.d.ts +0 -70
- package/dist/models/BillingAccountRequest.js +0 -71
- package/dist/models/BillingMethod.d.ts +0 -24
- package/dist/models/BillingMethod.js +0 -39
- package/dist/models/BudgetPeriod.d.ts +0 -24
- package/dist/models/BudgetPeriod.js +0 -39
- package/dist/models/ClassificationInput.d.ts +0 -43
- package/dist/models/ClassificationInput.js +0 -56
- package/dist/models/CloudAccount.d.ts +0 -50
- package/dist/models/CloudAccount.js +0 -58
- package/dist/models/CloudAccountType.d.ts +0 -23
- package/dist/models/CloudAccountType.js +0 -38
- package/dist/models/ColumnDefinition.d.ts +0 -43
- package/dist/models/ColumnDefinition.js +0 -54
- package/dist/models/ComputeEnvironmentConfiguration.d.ts +0 -77
- package/dist/models/ComputeEnvironmentConfiguration.js +0 -69
- package/dist/models/ComputeEnvironmentConfigurationInput.d.ts +0 -45
- package/dist/models/ComputeEnvironmentConfigurationInput.js +0 -55
- package/dist/models/Contact.d.ts +0 -49
- package/dist/models/Contact.js +0 -59
- package/dist/models/ContactInput.d.ts +0 -55
- package/dist/models/ContactInput.js +0 -62
- package/dist/models/CreateNotebookInstanceRequest.d.ts +0 -61
- package/dist/models/CreateNotebookInstanceRequest.js +0 -64
- package/dist/models/CreateProjectAccessRequest.d.ts +0 -38
- package/dist/models/CreateProjectAccessRequest.js +0 -54
- package/dist/models/CreateReferenceRequest.d.ts +0 -49
- package/dist/models/CreateReferenceRequest.js +0 -59
- package/dist/models/CreateResponse.d.ts +0 -37
- package/dist/models/CreateResponse.js +0 -53
- package/dist/models/CustomPipelineSettings.d.ts +0 -75
- package/dist/models/CustomPipelineSettings.js +0 -67
- package/dist/models/CustomProcessInput.d.ts +0 -131
- package/dist/models/CustomProcessInput.js +0 -93
- package/dist/models/CustomerType.d.ts +0 -24
- package/dist/models/CustomerType.js +0 -39
- package/dist/models/Dashboard.d.ts +0 -83
- package/dist/models/Dashboard.js +0 -74
- package/dist/models/DashboardRequest.d.ts +0 -59
- package/dist/models/DashboardRequest.js +0 -62
- package/dist/models/DataFile.d.ts +0 -39
- package/dist/models/DataFile.js +0 -53
- package/dist/models/Dataset.d.ts +0 -93
- package/dist/models/Dataset.js +0 -82
- package/dist/models/DatasetAssetsManifest.d.ts +0 -65
- package/dist/models/DatasetAssetsManifest.js +0 -64
- package/dist/models/DatasetCondition.d.ts +0 -38
- package/dist/models/DatasetCondition.js +0 -54
- package/dist/models/DatasetConditionField.d.ts +0 -25
- package/dist/models/DatasetConditionField.js +0 -40
- package/dist/models/DatasetDetail.d.ts +0 -146
- package/dist/models/DatasetDetail.js +0 -107
- package/dist/models/DatasetViz.d.ts +0 -55
- package/dist/models/DatasetViz.js +0 -58
- package/dist/models/EnvironmentType.d.ts +0 -25
- package/dist/models/EnvironmentType.js +0 -40
- package/dist/models/ErrorMessage.d.ts +0 -31
- package/dist/models/ErrorMessage.js +0 -50
- package/dist/models/Executor.d.ts +0 -25
- package/dist/models/Executor.js +0 -40
- package/dist/models/FeatureFlags.d.ts +0 -43
- package/dist/models/FeatureFlags.js +0 -56
- package/dist/models/FileEntry.d.ts +0 -45
- package/dist/models/FileEntry.js +0 -54
- package/dist/models/FileMappingRule.d.ts +0 -56
- package/dist/models/FileMappingRule.js +0 -61
- package/dist/models/FileNamePattern.d.ts +0 -43
- package/dist/models/FileNamePattern.js +0 -56
- package/dist/models/FileRequirements.d.ts +0 -44
- package/dist/models/FileRequirements.js +0 -57
- package/dist/models/FormSchema.d.ts +0 -41
- package/dist/models/FormSchema.js +0 -52
- package/dist/models/FulfillmentResponse.d.ts +0 -37
- package/dist/models/FulfillmentResponse.js +0 -53
- package/dist/models/GenerateSftpCredentialsRequest.d.ts +0 -31
- package/dist/models/GenerateSftpCredentialsRequest.js +0 -50
- package/dist/models/GetExecutionLogsResponse.d.ts +0 -32
- package/dist/models/GetExecutionLogsResponse.js +0 -51
- package/dist/models/GovernanceAccessType.d.ts +0 -25
- package/dist/models/GovernanceAccessType.js +0 -40
- package/dist/models/GovernanceClassification.d.ts +0 -67
- package/dist/models/GovernanceClassification.js +0 -68
- package/dist/models/GovernanceContact.d.ts +0 -79
- package/dist/models/GovernanceContact.js +0 -74
- package/dist/models/GovernanceExpiry.d.ts +0 -44
- package/dist/models/GovernanceExpiry.js +0 -55
- package/dist/models/GovernanceExpiryType.d.ts +0 -25
- package/dist/models/GovernanceExpiryType.js +0 -40
- package/dist/models/GovernanceFile.d.ts +0 -50
- package/dist/models/GovernanceFile.js +0 -57
- package/dist/models/GovernanceFileAccessRequest.d.ts +0 -50
- package/dist/models/GovernanceFileAccessRequest.js +0 -58
- package/dist/models/GovernanceFileInput.d.ts +0 -50
- package/dist/models/GovernanceFileInput.js +0 -60
- package/dist/models/GovernanceFileType.d.ts +0 -23
- package/dist/models/GovernanceFileType.js +0 -38
- package/dist/models/GovernanceRequirement.d.ts +0 -146
- package/dist/models/GovernanceRequirement.js +0 -102
- package/dist/models/GovernanceRequirementFile.d.ts +0 -50
- package/dist/models/GovernanceRequirementFile.js +0 -57
- package/dist/models/GovernanceScope.d.ts +0 -23
- package/dist/models/GovernanceScope.js +0 -38
- package/dist/models/GovernanceTrainingVerification.d.ts +0 -23
- package/dist/models/GovernanceTrainingVerification.js +0 -38
- package/dist/models/GovernanceType.d.ts +0 -24
- package/dist/models/GovernanceType.js +0 -39
- package/dist/models/ImportDataRequest.d.ts +0 -50
- package/dist/models/ImportDataRequest.js +0 -59
- package/dist/models/InviteUserRequest.d.ts +0 -43
- package/dist/models/InviteUserRequest.js +0 -56
- package/dist/models/InviteUserResponse.d.ts +0 -31
- package/dist/models/InviteUserResponse.js +0 -50
- package/dist/models/LogEntry.d.ts +0 -37
- package/dist/models/LogEntry.js +0 -53
- package/dist/models/LoginProvider.d.ts +0 -49
- package/dist/models/LoginProvider.js +0 -59
- package/dist/models/MetricRecord.d.ts +0 -45
- package/dist/models/MetricRecord.js +0 -55
- package/dist/models/MoveDatasetInput.d.ts +0 -43
- package/dist/models/MoveDatasetInput.js +0 -56
- package/dist/models/MoveDatasetResponse.d.ts +0 -43
- package/dist/models/MoveDatasetResponse.js +0 -56
- package/dist/models/NamedItem.d.ts +0 -37
- package/dist/models/NamedItem.js +0 -53
- package/dist/models/NotebookInstance.d.ts +0 -98
- package/dist/models/NotebookInstance.js +0 -84
- package/dist/models/NotebookInstanceStatusResponse.d.ts +0 -37
- package/dist/models/NotebookInstanceStatusResponse.js +0 -53
- package/dist/models/OpenNotebookInstanceResponse.d.ts +0 -37
- package/dist/models/OpenNotebookInstanceResponse.js +0 -53
- package/dist/models/PaginatedResponseDatasetListDto.d.ts +0 -38
- package/dist/models/PaginatedResponseDatasetListDto.js +0 -54
- package/dist/models/PaginatedResponseSampleDto.d.ts +0 -38
- package/dist/models/PaginatedResponseSampleDto.js +0 -54
- package/dist/models/PaginatedResponseUserDto.d.ts +0 -38
- package/dist/models/PaginatedResponseUserDto.js +0 -54
- package/dist/models/PipelineCode.d.ts +0 -50
- package/dist/models/PipelineCode.js +0 -60
- package/dist/models/PipelineCost.d.ts +0 -43
- package/dist/models/PipelineCost.js +0 -54
- package/dist/models/PortalErrorResponse.d.ts +0 -50
- package/dist/models/PortalErrorResponse.js +0 -60
- package/dist/models/Process.d.ts +0 -140
- package/dist/models/Process.js +0 -99
- package/dist/models/ProcessDetail.d.ts +0 -161
- package/dist/models/ProcessDetail.js +0 -108
- package/dist/models/Project.d.ts +0 -75
- package/dist/models/Project.js +0 -73
- package/dist/models/ProjectAccessRequest.d.ts +0 -81
- package/dist/models/ProjectAccessRequest.js +0 -76
- package/dist/models/ProjectAccessType.d.ts +0 -26
- package/dist/models/ProjectAccessType.js +0 -41
- package/dist/models/ProjectCreateOptions.d.ts +0 -56
- package/dist/models/ProjectCreateOptions.js +0 -63
- package/dist/models/ProjectDetail.d.ts +0 -120
- package/dist/models/ProjectDetail.js +0 -97
- package/dist/models/ProjectFileAccessRequest.d.ts +0 -44
- package/dist/models/ProjectFileAccessRequest.js +0 -56
- package/dist/models/ProjectInput.d.ts +0 -77
- package/dist/models/ProjectInput.js +0 -73
- package/dist/models/ProjectMetrics.d.ts +0 -44
- package/dist/models/ProjectMetrics.js +0 -56
- package/dist/models/ProjectRequest.d.ts +0 -61
- package/dist/models/ProjectRequest.js +0 -65
- package/dist/models/ProjectRequirement.d.ts +0 -163
- package/dist/models/ProjectRequirement.js +0 -107
- package/dist/models/ProjectRole.d.ts +0 -26
- package/dist/models/ProjectRole.js +0 -41
- package/dist/models/ProjectSettings.d.ts +0 -140
- package/dist/models/ProjectSettings.js +0 -89
- package/dist/models/ProjectUser.d.ts +0 -62
- package/dist/models/ProjectUser.js +0 -66
- package/dist/models/Reference.d.ts +0 -68
- package/dist/models/Reference.js +0 -69
- package/dist/models/ReferenceType.d.ts +0 -51
- package/dist/models/ReferenceType.js +0 -59
- package/dist/models/RepositoryType.d.ts +0 -25
- package/dist/models/RepositoryType.js +0 -40
- package/dist/models/RequestStatus.d.ts +0 -24
- package/dist/models/RequestStatus.js +0 -39
- package/dist/models/RequirementFulfillmentInput.d.ts +0 -37
- package/dist/models/RequirementFulfillmentInput.js +0 -52
- package/dist/models/RequirementInput.d.ts +0 -108
- package/dist/models/RequirementInput.js +0 -85
- package/dist/models/ResourcesInfo.d.ts +0 -49
- package/dist/models/ResourcesInfo.js +0 -59
- package/dist/models/RunAnalysisRequest.d.ts +0 -81
- package/dist/models/RunAnalysisRequest.js +0 -71
- package/dist/models/Sample.d.ts +0 -70
- package/dist/models/Sample.js +0 -65
- package/dist/models/SampleRequest.d.ts +0 -39
- package/dist/models/SampleRequest.js +0 -53
- package/dist/models/ServiceConnection.d.ts +0 -37
- package/dist/models/ServiceConnection.js +0 -53
- package/dist/models/SetUserProjectRoleRequest.d.ts +0 -44
- package/dist/models/SetUserProjectRoleRequest.js +0 -57
- package/dist/models/SftpCredentials.d.ts +0 -49
- package/dist/models/SftpCredentials.js +0 -59
- package/dist/models/Share.d.ts +0 -93
- package/dist/models/Share.js +0 -82
- package/dist/models/ShareDetail.d.ts +0 -112
- package/dist/models/ShareDetail.js +0 -92
- package/dist/models/ShareInput.d.ts +0 -68
- package/dist/models/ShareInput.js +0 -67
- package/dist/models/ShareType.d.ts +0 -24
- package/dist/models/ShareType.js +0 -39
- package/dist/models/Status.d.ts +0 -31
- package/dist/models/Status.js +0 -46
- package/dist/models/StopExecutionResponse.d.ts +0 -37
- package/dist/models/StopExecutionResponse.js +0 -52
- package/dist/models/SyncStatus.d.ts +0 -23
- package/dist/models/SyncStatus.js +0 -38
- package/dist/models/SystemInfoResponse.d.ts +0 -100
- package/dist/models/SystemInfoResponse.js +0 -86
- package/dist/models/Table.d.ts +0 -62
- package/dist/models/Table.js +0 -62
- package/dist/models/Tag.d.ts +0 -44
- package/dist/models/Tag.js +0 -55
- package/dist/models/Task.d.ts +0 -79
- package/dist/models/Task.js +0 -70
- package/dist/models/TenantInfo.d.ts +0 -87
- package/dist/models/TenantInfo.js +0 -79
- package/dist/models/UpdateDatasetRequest.d.ts +0 -50
- package/dist/models/UpdateDatasetRequest.js +0 -60
- package/dist/models/UpdateUserRequest.d.ts +0 -74
- package/dist/models/UpdateUserRequest.js +0 -67
- package/dist/models/UploadDatasetCreateResponse.d.ts +0 -49
- package/dist/models/UploadDatasetCreateResponse.js +0 -59
- package/dist/models/UploadDatasetRequest.d.ts +0 -56
- package/dist/models/UploadDatasetRequest.js +0 -62
- package/dist/models/User.d.ts +0 -49
- package/dist/models/User.js +0 -59
- package/dist/models/UserDetail.d.ts +0 -99
- package/dist/models/UserDetail.js +0 -85
- package/dist/models/UserProjectAssignment.d.ts +0 -50
- package/dist/models/UserProjectAssignment.js +0 -60
- package/dist/models/UserSettings.d.ts +0 -32
- package/dist/models/UserSettings.js +0 -57
- package/dist/models/ValidateFileRequirementsRequest.d.ts +0 -37
- package/dist/models/ValidateFileRequirementsRequest.js +0 -53
- package/dist/models/index.d.ts +0 -132
- package/dist/models/index.js +0 -150
- package/dist/runtime.d.ts +0 -182
- package/dist/runtime.js +0 -562
package/dist/runtime.js
DELETED
|
@@ -1,562 +0,0 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
31
|
-
__assign = Object.assign || function(t) {
|
|
32
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
-
s = arguments[i];
|
|
34
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
-
t[p] = s[p];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
return __assign.apply(this, arguments);
|
|
40
|
-
};
|
|
41
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
-
function step(op) {
|
|
55
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
-
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;
|
|
58
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
-
switch (op[0]) {
|
|
60
|
-
case 0: case 1: t = op; break;
|
|
61
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
-
default:
|
|
65
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
-
if (t[2]) _.ops.pop();
|
|
70
|
-
_.trys.pop(); continue;
|
|
71
|
-
}
|
|
72
|
-
op = body.call(thisArg, _);
|
|
73
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
78
|
-
exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
|
|
79
|
-
exports.BASE_PATH = "https://dev.cirro.bio/api".replace(/\/+$/, "");
|
|
80
|
-
var Configuration = /** @class */ (function () {
|
|
81
|
-
function Configuration(configuration) {
|
|
82
|
-
if (configuration === void 0) { configuration = {}; }
|
|
83
|
-
this.configuration = configuration;
|
|
84
|
-
}
|
|
85
|
-
Object.defineProperty(Configuration.prototype, "config", {
|
|
86
|
-
set: function (configuration) {
|
|
87
|
-
this.configuration = configuration;
|
|
88
|
-
},
|
|
89
|
-
enumerable: false,
|
|
90
|
-
configurable: true
|
|
91
|
-
});
|
|
92
|
-
Object.defineProperty(Configuration.prototype, "basePath", {
|
|
93
|
-
get: function () {
|
|
94
|
-
return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH;
|
|
95
|
-
},
|
|
96
|
-
enumerable: false,
|
|
97
|
-
configurable: true
|
|
98
|
-
});
|
|
99
|
-
Object.defineProperty(Configuration.prototype, "fetchApi", {
|
|
100
|
-
get: function () {
|
|
101
|
-
return this.configuration.fetchApi;
|
|
102
|
-
},
|
|
103
|
-
enumerable: false,
|
|
104
|
-
configurable: true
|
|
105
|
-
});
|
|
106
|
-
Object.defineProperty(Configuration.prototype, "middleware", {
|
|
107
|
-
get: function () {
|
|
108
|
-
return this.configuration.middleware || [];
|
|
109
|
-
},
|
|
110
|
-
enumerable: false,
|
|
111
|
-
configurable: true
|
|
112
|
-
});
|
|
113
|
-
Object.defineProperty(Configuration.prototype, "queryParamsStringify", {
|
|
114
|
-
get: function () {
|
|
115
|
-
return this.configuration.queryParamsStringify || querystring;
|
|
116
|
-
},
|
|
117
|
-
enumerable: false,
|
|
118
|
-
configurable: true
|
|
119
|
-
});
|
|
120
|
-
Object.defineProperty(Configuration.prototype, "username", {
|
|
121
|
-
get: function () {
|
|
122
|
-
return this.configuration.username;
|
|
123
|
-
},
|
|
124
|
-
enumerable: false,
|
|
125
|
-
configurable: true
|
|
126
|
-
});
|
|
127
|
-
Object.defineProperty(Configuration.prototype, "password", {
|
|
128
|
-
get: function () {
|
|
129
|
-
return this.configuration.password;
|
|
130
|
-
},
|
|
131
|
-
enumerable: false,
|
|
132
|
-
configurable: true
|
|
133
|
-
});
|
|
134
|
-
Object.defineProperty(Configuration.prototype, "apiKey", {
|
|
135
|
-
get: function () {
|
|
136
|
-
var apiKey = this.configuration.apiKey;
|
|
137
|
-
if (apiKey) {
|
|
138
|
-
return typeof apiKey === 'function' ? apiKey : function () { return apiKey; };
|
|
139
|
-
}
|
|
140
|
-
return undefined;
|
|
141
|
-
},
|
|
142
|
-
enumerable: false,
|
|
143
|
-
configurable: true
|
|
144
|
-
});
|
|
145
|
-
Object.defineProperty(Configuration.prototype, "accessToken", {
|
|
146
|
-
get: function () {
|
|
147
|
-
var _this = this;
|
|
148
|
-
var accessToken = this.configuration.accessToken;
|
|
149
|
-
if (accessToken) {
|
|
150
|
-
return typeof accessToken === 'function' ? accessToken : function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
151
|
-
return [2 /*return*/, accessToken];
|
|
152
|
-
}); }); };
|
|
153
|
-
}
|
|
154
|
-
return undefined;
|
|
155
|
-
},
|
|
156
|
-
enumerable: false,
|
|
157
|
-
configurable: true
|
|
158
|
-
});
|
|
159
|
-
Object.defineProperty(Configuration.prototype, "headers", {
|
|
160
|
-
get: function () {
|
|
161
|
-
return this.configuration.headers;
|
|
162
|
-
},
|
|
163
|
-
enumerable: false,
|
|
164
|
-
configurable: true
|
|
165
|
-
});
|
|
166
|
-
Object.defineProperty(Configuration.prototype, "credentials", {
|
|
167
|
-
get: function () {
|
|
168
|
-
return this.configuration.credentials;
|
|
169
|
-
},
|
|
170
|
-
enumerable: false,
|
|
171
|
-
configurable: true
|
|
172
|
-
});
|
|
173
|
-
return Configuration;
|
|
174
|
-
}());
|
|
175
|
-
exports.Configuration = Configuration;
|
|
176
|
-
exports.DefaultConfig = new Configuration();
|
|
177
|
-
/**
|
|
178
|
-
* This is the base class for all generated API classes.
|
|
179
|
-
*/
|
|
180
|
-
var BaseAPI = /** @class */ (function () {
|
|
181
|
-
function BaseAPI(configuration) {
|
|
182
|
-
if (configuration === void 0) { configuration = exports.DefaultConfig; }
|
|
183
|
-
var _this = this;
|
|
184
|
-
this.configuration = configuration;
|
|
185
|
-
this.fetchApi = function (url, init) { return __awaiter(_this, void 0, void 0, function () {
|
|
186
|
-
var fetchParams, _i, _a, middleware, response, e_1, _b, _c, middleware, _d, _e, middleware;
|
|
187
|
-
return __generator(this, function (_f) {
|
|
188
|
-
switch (_f.label) {
|
|
189
|
-
case 0:
|
|
190
|
-
fetchParams = { url: url, init: init };
|
|
191
|
-
_i = 0, _a = this.middleware;
|
|
192
|
-
_f.label = 1;
|
|
193
|
-
case 1:
|
|
194
|
-
if (!(_i < _a.length)) return [3 /*break*/, 4];
|
|
195
|
-
middleware = _a[_i];
|
|
196
|
-
if (!middleware.pre) return [3 /*break*/, 3];
|
|
197
|
-
return [4 /*yield*/, middleware.pre(__assign({ fetch: this.fetchApi }, fetchParams))];
|
|
198
|
-
case 2:
|
|
199
|
-
fetchParams = (_f.sent()) || fetchParams;
|
|
200
|
-
_f.label = 3;
|
|
201
|
-
case 3:
|
|
202
|
-
_i++;
|
|
203
|
-
return [3 /*break*/, 1];
|
|
204
|
-
case 4:
|
|
205
|
-
response = undefined;
|
|
206
|
-
_f.label = 5;
|
|
207
|
-
case 5:
|
|
208
|
-
_f.trys.push([5, 7, , 12]);
|
|
209
|
-
return [4 /*yield*/, (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init)];
|
|
210
|
-
case 6:
|
|
211
|
-
response = _f.sent();
|
|
212
|
-
return [3 /*break*/, 12];
|
|
213
|
-
case 7:
|
|
214
|
-
e_1 = _f.sent();
|
|
215
|
-
_b = 0, _c = this.middleware;
|
|
216
|
-
_f.label = 8;
|
|
217
|
-
case 8:
|
|
218
|
-
if (!(_b < _c.length)) return [3 /*break*/, 11];
|
|
219
|
-
middleware = _c[_b];
|
|
220
|
-
if (!middleware.onError) return [3 /*break*/, 10];
|
|
221
|
-
return [4 /*yield*/, middleware.onError({
|
|
222
|
-
fetch: this.fetchApi,
|
|
223
|
-
url: fetchParams.url,
|
|
224
|
-
init: fetchParams.init,
|
|
225
|
-
error: e_1,
|
|
226
|
-
response: response ? response.clone() : undefined,
|
|
227
|
-
})];
|
|
228
|
-
case 9:
|
|
229
|
-
response = (_f.sent()) || response;
|
|
230
|
-
_f.label = 10;
|
|
231
|
-
case 10:
|
|
232
|
-
_b++;
|
|
233
|
-
return [3 /*break*/, 8];
|
|
234
|
-
case 11:
|
|
235
|
-
if (response === undefined) {
|
|
236
|
-
if (e_1 instanceof Error) {
|
|
237
|
-
throw new FetchError(e_1, 'The request failed and the interceptors did not return an alternative response');
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
throw e_1;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
return [3 /*break*/, 12];
|
|
244
|
-
case 12:
|
|
245
|
-
_d = 0, _e = this.middleware;
|
|
246
|
-
_f.label = 13;
|
|
247
|
-
case 13:
|
|
248
|
-
if (!(_d < _e.length)) return [3 /*break*/, 16];
|
|
249
|
-
middleware = _e[_d];
|
|
250
|
-
if (!middleware.post) return [3 /*break*/, 15];
|
|
251
|
-
return [4 /*yield*/, middleware.post({
|
|
252
|
-
fetch: this.fetchApi,
|
|
253
|
-
url: fetchParams.url,
|
|
254
|
-
init: fetchParams.init,
|
|
255
|
-
response: response.clone(),
|
|
256
|
-
})];
|
|
257
|
-
case 14:
|
|
258
|
-
response = (_f.sent()) || response;
|
|
259
|
-
_f.label = 15;
|
|
260
|
-
case 15:
|
|
261
|
-
_d++;
|
|
262
|
-
return [3 /*break*/, 13];
|
|
263
|
-
case 16: return [2 /*return*/, response];
|
|
264
|
-
}
|
|
265
|
-
});
|
|
266
|
-
}); };
|
|
267
|
-
this.middleware = configuration.middleware;
|
|
268
|
-
}
|
|
269
|
-
BaseAPI.prototype.withMiddleware = function () {
|
|
270
|
-
var _a;
|
|
271
|
-
var middlewares = [];
|
|
272
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
273
|
-
middlewares[_i] = arguments[_i];
|
|
274
|
-
}
|
|
275
|
-
var next = this.clone();
|
|
276
|
-
next.middleware = (_a = next.middleware).concat.apply(_a, middlewares);
|
|
277
|
-
return next;
|
|
278
|
-
};
|
|
279
|
-
BaseAPI.prototype.withPreMiddleware = function () {
|
|
280
|
-
var preMiddlewares = [];
|
|
281
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
282
|
-
preMiddlewares[_i] = arguments[_i];
|
|
283
|
-
}
|
|
284
|
-
var middlewares = preMiddlewares.map(function (pre) { return ({ pre: pre }); });
|
|
285
|
-
return this.withMiddleware.apply(this, middlewares);
|
|
286
|
-
};
|
|
287
|
-
BaseAPI.prototype.withPostMiddleware = function () {
|
|
288
|
-
var postMiddlewares = [];
|
|
289
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
290
|
-
postMiddlewares[_i] = arguments[_i];
|
|
291
|
-
}
|
|
292
|
-
var middlewares = postMiddlewares.map(function (post) { return ({ post: post }); });
|
|
293
|
-
return this.withMiddleware.apply(this, middlewares);
|
|
294
|
-
};
|
|
295
|
-
/**
|
|
296
|
-
* Check if the given MIME is a JSON MIME.
|
|
297
|
-
* JSON MIME examples:
|
|
298
|
-
* application/json
|
|
299
|
-
* application/json; charset=UTF8
|
|
300
|
-
* APPLICATION/JSON
|
|
301
|
-
* application/vnd.company+json
|
|
302
|
-
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
303
|
-
* @return True if the given MIME is JSON, false otherwise.
|
|
304
|
-
*/
|
|
305
|
-
BaseAPI.prototype.isJsonMime = function (mime) {
|
|
306
|
-
if (!mime) {
|
|
307
|
-
return false;
|
|
308
|
-
}
|
|
309
|
-
return BaseAPI.jsonRegex.test(mime);
|
|
310
|
-
};
|
|
311
|
-
BaseAPI.prototype.request = function (context, initOverrides) {
|
|
312
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
313
|
-
var _a, url, init, response;
|
|
314
|
-
return __generator(this, function (_b) {
|
|
315
|
-
switch (_b.label) {
|
|
316
|
-
case 0: return [4 /*yield*/, this.createFetchParams(context, initOverrides)];
|
|
317
|
-
case 1:
|
|
318
|
-
_a = _b.sent(), url = _a.url, init = _a.init;
|
|
319
|
-
return [4 /*yield*/, this.fetchApi(url, init)];
|
|
320
|
-
case 2:
|
|
321
|
-
response = _b.sent();
|
|
322
|
-
if (response && (response.status >= 200 && response.status < 300)) {
|
|
323
|
-
return [2 /*return*/, response];
|
|
324
|
-
}
|
|
325
|
-
throw new ResponseError(response, 'Response returned an error code');
|
|
326
|
-
}
|
|
327
|
-
});
|
|
328
|
-
});
|
|
329
|
-
};
|
|
330
|
-
BaseAPI.prototype.createFetchParams = function (context, initOverrides) {
|
|
331
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
332
|
-
var url, headers, initOverrideFn, initParams, overriddenInit, _a, body, init;
|
|
333
|
-
var _this = this;
|
|
334
|
-
return __generator(this, function (_b) {
|
|
335
|
-
switch (_b.label) {
|
|
336
|
-
case 0:
|
|
337
|
-
url = this.configuration.basePath + context.path;
|
|
338
|
-
if (context.query !== undefined && Object.keys(context.query).length !== 0) {
|
|
339
|
-
// only add the querystring to the URL if there are query parameters.
|
|
340
|
-
// this is done to avoid urls ending with a "?" character which buggy webservers
|
|
341
|
-
// do not handle correctly sometimes.
|
|
342
|
-
url += '?' + this.configuration.queryParamsStringify(context.query);
|
|
343
|
-
}
|
|
344
|
-
headers = Object.assign({}, this.configuration.headers, context.headers);
|
|
345
|
-
Object.keys(headers).forEach(function (key) { return headers[key] === undefined ? delete headers[key] : {}; });
|
|
346
|
-
initOverrideFn = typeof initOverrides === "function"
|
|
347
|
-
? initOverrides
|
|
348
|
-
: function () { return __awaiter(_this, void 0, void 0, function () { return __generator(this, function (_a) {
|
|
349
|
-
return [2 /*return*/, initOverrides];
|
|
350
|
-
}); }); };
|
|
351
|
-
initParams = {
|
|
352
|
-
method: context.method,
|
|
353
|
-
headers: headers,
|
|
354
|
-
body: context.body,
|
|
355
|
-
credentials: this.configuration.credentials,
|
|
356
|
-
};
|
|
357
|
-
_a = [__assign({}, initParams)];
|
|
358
|
-
return [4 /*yield*/, initOverrideFn({
|
|
359
|
-
init: initParams,
|
|
360
|
-
context: context,
|
|
361
|
-
})];
|
|
362
|
-
case 1:
|
|
363
|
-
overriddenInit = __assign.apply(void 0, _a.concat([(_b.sent())]));
|
|
364
|
-
if (isFormData(overriddenInit.body)
|
|
365
|
-
|| (overriddenInit.body instanceof URLSearchParams)
|
|
366
|
-
|| isBlob(overriddenInit.body)) {
|
|
367
|
-
body = overriddenInit.body;
|
|
368
|
-
}
|
|
369
|
-
else if (this.isJsonMime(headers['Content-Type'])) {
|
|
370
|
-
body = JSON.stringify(overriddenInit.body);
|
|
371
|
-
}
|
|
372
|
-
else {
|
|
373
|
-
body = overriddenInit.body;
|
|
374
|
-
}
|
|
375
|
-
init = __assign(__assign({}, overriddenInit), { body: body });
|
|
376
|
-
return [2 /*return*/, { url: url, init: init }];
|
|
377
|
-
}
|
|
378
|
-
});
|
|
379
|
-
});
|
|
380
|
-
};
|
|
381
|
-
/**
|
|
382
|
-
* Create a shallow clone of `this` by constructing a new instance
|
|
383
|
-
* and then shallow cloning data members.
|
|
384
|
-
*/
|
|
385
|
-
BaseAPI.prototype.clone = function () {
|
|
386
|
-
var constructor = this.constructor;
|
|
387
|
-
var next = new constructor(this.configuration);
|
|
388
|
-
next.middleware = this.middleware.slice();
|
|
389
|
-
return next;
|
|
390
|
-
};
|
|
391
|
-
BaseAPI.jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i');
|
|
392
|
-
return BaseAPI;
|
|
393
|
-
}());
|
|
394
|
-
exports.BaseAPI = BaseAPI;
|
|
395
|
-
;
|
|
396
|
-
function isBlob(value) {
|
|
397
|
-
return typeof Blob !== 'undefined' && value instanceof Blob;
|
|
398
|
-
}
|
|
399
|
-
function isFormData(value) {
|
|
400
|
-
return typeof FormData !== "undefined" && value instanceof FormData;
|
|
401
|
-
}
|
|
402
|
-
var ResponseError = /** @class */ (function (_super) {
|
|
403
|
-
__extends(ResponseError, _super);
|
|
404
|
-
function ResponseError(response, msg) {
|
|
405
|
-
var _this = _super.call(this, msg) || this;
|
|
406
|
-
_this.response = response;
|
|
407
|
-
_this.name = "ResponseError";
|
|
408
|
-
return _this;
|
|
409
|
-
}
|
|
410
|
-
return ResponseError;
|
|
411
|
-
}(Error));
|
|
412
|
-
exports.ResponseError = ResponseError;
|
|
413
|
-
var FetchError = /** @class */ (function (_super) {
|
|
414
|
-
__extends(FetchError, _super);
|
|
415
|
-
function FetchError(cause, msg) {
|
|
416
|
-
var _this = _super.call(this, msg) || this;
|
|
417
|
-
_this.cause = cause;
|
|
418
|
-
_this.name = "FetchError";
|
|
419
|
-
return _this;
|
|
420
|
-
}
|
|
421
|
-
return FetchError;
|
|
422
|
-
}(Error));
|
|
423
|
-
exports.FetchError = FetchError;
|
|
424
|
-
var RequiredError = /** @class */ (function (_super) {
|
|
425
|
-
__extends(RequiredError, _super);
|
|
426
|
-
function RequiredError(field, msg) {
|
|
427
|
-
var _this = _super.call(this, msg) || this;
|
|
428
|
-
_this.field = field;
|
|
429
|
-
_this.name = "RequiredError";
|
|
430
|
-
return _this;
|
|
431
|
-
}
|
|
432
|
-
return RequiredError;
|
|
433
|
-
}(Error));
|
|
434
|
-
exports.RequiredError = RequiredError;
|
|
435
|
-
exports.COLLECTION_FORMATS = {
|
|
436
|
-
csv: ",",
|
|
437
|
-
ssv: " ",
|
|
438
|
-
tsv: "\t",
|
|
439
|
-
pipes: "|",
|
|
440
|
-
};
|
|
441
|
-
function exists(json, key) {
|
|
442
|
-
var value = json[key];
|
|
443
|
-
return value !== null && value !== undefined;
|
|
444
|
-
}
|
|
445
|
-
exports.exists = exists;
|
|
446
|
-
function querystring(params, prefix) {
|
|
447
|
-
if (prefix === void 0) { prefix = ''; }
|
|
448
|
-
return Object.keys(params)
|
|
449
|
-
.map(function (key) { return querystringSingleKey(key, params[key], prefix); })
|
|
450
|
-
.filter(function (part) { return part.length > 0; })
|
|
451
|
-
.join('&');
|
|
452
|
-
}
|
|
453
|
-
exports.querystring = querystring;
|
|
454
|
-
function querystringSingleKey(key, value, keyPrefix) {
|
|
455
|
-
if (keyPrefix === void 0) { keyPrefix = ''; }
|
|
456
|
-
var fullKey = keyPrefix + (keyPrefix.length ? "[".concat(key, "]") : key);
|
|
457
|
-
if (value instanceof Array) {
|
|
458
|
-
var multiValue = value.map(function (singleValue) { return encodeURIComponent(String(singleValue)); })
|
|
459
|
-
.join("&".concat(encodeURIComponent(fullKey), "="));
|
|
460
|
-
return "".concat(encodeURIComponent(fullKey), "=").concat(multiValue);
|
|
461
|
-
}
|
|
462
|
-
if (value instanceof Set) {
|
|
463
|
-
var valueAsArray = Array.from(value);
|
|
464
|
-
return querystringSingleKey(key, valueAsArray, keyPrefix);
|
|
465
|
-
}
|
|
466
|
-
if (value instanceof Date) {
|
|
467
|
-
return "".concat(encodeURIComponent(fullKey), "=").concat(encodeURIComponent(value.toISOString()));
|
|
468
|
-
}
|
|
469
|
-
if (value instanceof Object) {
|
|
470
|
-
return querystring(value, fullKey);
|
|
471
|
-
}
|
|
472
|
-
return "".concat(encodeURIComponent(fullKey), "=").concat(encodeURIComponent(String(value)));
|
|
473
|
-
}
|
|
474
|
-
function mapValues(data, fn) {
|
|
475
|
-
return Object.keys(data).reduce(function (acc, key) {
|
|
476
|
-
var _a;
|
|
477
|
-
return (__assign(__assign({}, acc), (_a = {}, _a[key] = fn(data[key]), _a)));
|
|
478
|
-
}, {});
|
|
479
|
-
}
|
|
480
|
-
exports.mapValues = mapValues;
|
|
481
|
-
function canConsumeForm(consumes) {
|
|
482
|
-
for (var _i = 0, consumes_1 = consumes; _i < consumes_1.length; _i++) {
|
|
483
|
-
var consume = consumes_1[_i];
|
|
484
|
-
if ('multipart/form-data' === consume.contentType) {
|
|
485
|
-
return true;
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
return false;
|
|
489
|
-
}
|
|
490
|
-
exports.canConsumeForm = canConsumeForm;
|
|
491
|
-
var JSONApiResponse = /** @class */ (function () {
|
|
492
|
-
function JSONApiResponse(raw, transformer) {
|
|
493
|
-
if (transformer === void 0) { transformer = function (jsonValue) { return jsonValue; }; }
|
|
494
|
-
this.raw = raw;
|
|
495
|
-
this.transformer = transformer;
|
|
496
|
-
}
|
|
497
|
-
JSONApiResponse.prototype.value = function () {
|
|
498
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
499
|
-
var _a;
|
|
500
|
-
return __generator(this, function (_b) {
|
|
501
|
-
switch (_b.label) {
|
|
502
|
-
case 0:
|
|
503
|
-
_a = this.transformer;
|
|
504
|
-
return [4 /*yield*/, this.raw.json()];
|
|
505
|
-
case 1: return [2 /*return*/, _a.apply(this, [_b.sent()])];
|
|
506
|
-
}
|
|
507
|
-
});
|
|
508
|
-
});
|
|
509
|
-
};
|
|
510
|
-
return JSONApiResponse;
|
|
511
|
-
}());
|
|
512
|
-
exports.JSONApiResponse = JSONApiResponse;
|
|
513
|
-
var VoidApiResponse = /** @class */ (function () {
|
|
514
|
-
function VoidApiResponse(raw) {
|
|
515
|
-
this.raw = raw;
|
|
516
|
-
}
|
|
517
|
-
VoidApiResponse.prototype.value = function () {
|
|
518
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
519
|
-
return __generator(this, function (_a) {
|
|
520
|
-
return [2 /*return*/, undefined];
|
|
521
|
-
});
|
|
522
|
-
});
|
|
523
|
-
};
|
|
524
|
-
return VoidApiResponse;
|
|
525
|
-
}());
|
|
526
|
-
exports.VoidApiResponse = VoidApiResponse;
|
|
527
|
-
var BlobApiResponse = /** @class */ (function () {
|
|
528
|
-
function BlobApiResponse(raw) {
|
|
529
|
-
this.raw = raw;
|
|
530
|
-
}
|
|
531
|
-
BlobApiResponse.prototype.value = function () {
|
|
532
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
533
|
-
return __generator(this, function (_a) {
|
|
534
|
-
switch (_a.label) {
|
|
535
|
-
case 0: return [4 /*yield*/, this.raw.blob()];
|
|
536
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
537
|
-
}
|
|
538
|
-
});
|
|
539
|
-
});
|
|
540
|
-
};
|
|
541
|
-
;
|
|
542
|
-
return BlobApiResponse;
|
|
543
|
-
}());
|
|
544
|
-
exports.BlobApiResponse = BlobApiResponse;
|
|
545
|
-
var TextApiResponse = /** @class */ (function () {
|
|
546
|
-
function TextApiResponse(raw) {
|
|
547
|
-
this.raw = raw;
|
|
548
|
-
}
|
|
549
|
-
TextApiResponse.prototype.value = function () {
|
|
550
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
551
|
-
return __generator(this, function (_a) {
|
|
552
|
-
switch (_a.label) {
|
|
553
|
-
case 0: return [4 /*yield*/, this.raw.text()];
|
|
554
|
-
case 1: return [2 /*return*/, _a.sent()];
|
|
555
|
-
}
|
|
556
|
-
});
|
|
557
|
-
});
|
|
558
|
-
};
|
|
559
|
-
;
|
|
560
|
-
return TextApiResponse;
|
|
561
|
-
}());
|
|
562
|
-
exports.TextApiResponse = TextApiResponse;
|