@cirrobio/api-client 0.1.12 → 0.1.13

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.
Files changed (244) hide show
  1. package/.openapi-generator/FILES +110 -110
  2. package/README.md +1 -1
  3. package/dist/apis/AuditApi.d.ts +60 -44
  4. package/dist/apis/AuditApi.js +194 -175
  5. package/dist/apis/BillingApi.d.ts +81 -81
  6. package/dist/apis/BillingApi.js +354 -354
  7. package/dist/apis/DashboardsApi.d.ts +88 -88
  8. package/dist/apis/DashboardsApi.js +374 -374
  9. package/dist/apis/DatasetsApi.d.ts +162 -162
  10. package/dist/apis/DatasetsApi.js +670 -670
  11. package/dist/apis/ExecutionApi.d.ts +110 -110
  12. package/dist/apis/ExecutionApi.js +442 -442
  13. package/dist/apis/FileApi.d.ts +46 -46
  14. package/dist/apis/FileApi.js +200 -200
  15. package/dist/apis/MetadataApi.d.ts +71 -71
  16. package/dist/apis/MetadataApi.js +313 -313
  17. package/dist/apis/MetricsApi.d.ts +41 -41
  18. package/dist/apis/MetricsApi.js +187 -187
  19. package/dist/apis/NotebooksApi.d.ts +101 -101
  20. package/dist/apis/NotebooksApi.js +423 -423
  21. package/dist/apis/ProcessesApi.d.ts +138 -138
  22. package/dist/apis/ProcessesApi.js +589 -589
  23. package/dist/apis/ProjectsApi.d.ts +189 -189
  24. package/dist/apis/ProjectsApi.js +815 -815
  25. package/dist/apis/ReferencesApi.d.ts +91 -91
  26. package/dist/apis/ReferencesApi.js +405 -405
  27. package/dist/apis/SystemApi.d.ts +36 -36
  28. package/dist/apis/SystemApi.js +182 -182
  29. package/dist/apis/UsersApi.d.ts +84 -84
  30. package/dist/apis/UsersApi.js +363 -363
  31. package/dist/apis/index.d.ts +14 -14
  32. package/dist/apis/index.js +32 -32
  33. package/dist/index.d.ts +3 -3
  34. package/dist/index.js +21 -21
  35. package/dist/models/AWSCredentials.d.ts +55 -55
  36. package/dist/models/AWSCredentials.js +62 -62
  37. package/dist/models/AccessType.d.ts +25 -25
  38. package/dist/models/AccessType.js +40 -40
  39. package/dist/models/AllowedDataType.d.ts +44 -44
  40. package/dist/models/AllowedDataType.js +57 -57
  41. package/dist/models/ApproveAccessRequest.d.ts +32 -32
  42. package/dist/models/ApproveAccessRequest.js +51 -51
  43. package/dist/models/ApproveProjectAccessRequest.d.ts +32 -32
  44. package/dist/models/ApproveProjectAccessRequest.js +51 -51
  45. package/dist/models/AuditEvent.d.ts +89 -89
  46. package/dist/models/AuditEvent.js +68 -68
  47. package/dist/models/AuthInfo.d.ts +49 -49
  48. package/dist/models/AuthInfo.js +59 -59
  49. package/dist/models/BillingAccount.d.ts +88 -88
  50. package/dist/models/BillingAccount.js +80 -80
  51. package/dist/models/BillingAccountRequest.d.ts +70 -70
  52. package/dist/models/BillingAccountRequest.js +71 -71
  53. package/dist/models/BillingMethod.d.ts +24 -24
  54. package/dist/models/BillingMethod.js +39 -39
  55. package/dist/models/BudgetPeriod.d.ts +24 -24
  56. package/dist/models/BudgetPeriod.js +39 -39
  57. package/dist/models/CloudAccount.d.ts +50 -50
  58. package/dist/models/CloudAccount.js +58 -58
  59. package/dist/models/CloudAccountType.d.ts +23 -23
  60. package/dist/models/CloudAccountType.js +38 -38
  61. package/dist/models/ColumnDefinition.d.ts +43 -43
  62. package/dist/models/ColumnDefinition.js +54 -54
  63. package/dist/models/Contact.d.ts +49 -49
  64. package/dist/models/Contact.js +59 -59
  65. package/dist/models/CreateNotebookInstanceRequest.d.ts +49 -49
  66. package/dist/models/CreateNotebookInstanceRequest.js +59 -59
  67. package/dist/models/CreateProjectAccessRequest.d.ts +38 -38
  68. package/dist/models/CreateProjectAccessRequest.js +54 -54
  69. package/dist/models/CreateReferenceRequest.d.ts +49 -49
  70. package/dist/models/CreateReferenceRequest.js +59 -59
  71. package/dist/models/CreateResponse.d.ts +37 -37
  72. package/dist/models/CreateResponse.js +53 -53
  73. package/dist/models/CustomPipelineSettings.d.ts +62 -62
  74. package/dist/models/CustomPipelineSettings.js +62 -62
  75. package/dist/models/CustomerType.d.ts +24 -24
  76. package/dist/models/CustomerType.js +39 -39
  77. package/dist/models/Dashboard.d.ts +83 -83
  78. package/dist/models/Dashboard.js +74 -74
  79. package/dist/models/DashboardRequest.d.ts +59 -59
  80. package/dist/models/DashboardRequest.js +62 -62
  81. package/dist/models/Dataset.d.ts +93 -93
  82. package/dist/models/Dataset.js +82 -82
  83. package/dist/models/DatasetAssetsManifest.d.ts +58 -58
  84. package/dist/models/DatasetAssetsManifest.js +61 -61
  85. package/dist/models/DatasetDetail.d.ts +121 -121
  86. package/dist/models/DatasetDetail.js +94 -94
  87. package/dist/models/DatasetViz.d.ts +49 -49
  88. package/dist/models/DatasetViz.js +56 -56
  89. package/dist/models/ErrorMessage.d.ts +31 -31
  90. package/dist/models/ErrorMessage.js +50 -50
  91. package/dist/models/Executor.d.ts +25 -25
  92. package/dist/models/Executor.js +40 -40
  93. package/dist/models/FileAccessRequest.d.ts +44 -44
  94. package/dist/models/FileAccessRequest.js +56 -56
  95. package/dist/models/FileEntry.d.ts +45 -45
  96. package/dist/models/FileEntry.js +54 -54
  97. package/dist/models/FileMappingRule.d.ts +56 -56
  98. package/dist/models/FileMappingRule.js +61 -61
  99. package/dist/models/FileNamePattern.d.ts +43 -43
  100. package/dist/models/FileNamePattern.js +56 -56
  101. package/dist/models/FileRequirements.d.ts +44 -44
  102. package/dist/models/FileRequirements.js +57 -57
  103. package/dist/models/FormSchema.d.ts +41 -41
  104. package/dist/models/FormSchema.js +52 -52
  105. package/dist/models/GenerateSftpCredentialsRequest.d.ts +31 -31
  106. package/dist/models/GenerateSftpCredentialsRequest.js +50 -50
  107. package/dist/models/GetExecutionLogsResponse.d.ts +32 -32
  108. package/dist/models/GetExecutionLogsResponse.js +51 -51
  109. package/dist/models/ImportDataRequest.d.ts +43 -43
  110. package/dist/models/ImportDataRequest.js +56 -56
  111. package/dist/models/InviteUserRequest.d.ts +43 -43
  112. package/dist/models/InviteUserRequest.js +56 -56
  113. package/dist/models/InviteUserResponse.d.ts +31 -31
  114. package/dist/models/InviteUserResponse.js +50 -50
  115. package/dist/models/LogEntry.d.ts +37 -37
  116. package/dist/models/LogEntry.js +53 -53
  117. package/dist/models/LoginProvider.d.ts +49 -49
  118. package/dist/models/LoginProvider.js +59 -59
  119. package/dist/models/MetricRecord.d.ts +45 -45
  120. package/dist/models/MetricRecord.js +55 -55
  121. package/dist/models/NotebookInstance.d.ts +86 -86
  122. package/dist/models/NotebookInstance.js +78 -78
  123. package/dist/models/NotebookInstanceStatusResponse.d.ts +37 -37
  124. package/dist/models/NotebookInstanceStatusResponse.js +53 -53
  125. package/dist/models/OpenNotebookInstanceResponse.d.ts +37 -37
  126. package/dist/models/OpenNotebookInstanceResponse.js +53 -53
  127. package/dist/models/PaginatedResponseDatasetListDto.d.ts +38 -38
  128. package/dist/models/PaginatedResponseDatasetListDto.js +54 -54
  129. package/dist/models/PaginatedResponseSampleDto.d.ts +38 -38
  130. package/dist/models/PaginatedResponseSampleDto.js +54 -54
  131. package/dist/models/PipelineCode.d.ts +50 -50
  132. package/dist/models/PipelineCode.js +60 -60
  133. package/dist/models/PipelineCost.d.ts +43 -43
  134. package/dist/models/PipelineCost.js +54 -54
  135. package/dist/models/PortalErrorResponse.d.ts +50 -50
  136. package/dist/models/PortalErrorResponse.js +60 -60
  137. package/dist/models/Process.d.ts +104 -104
  138. package/dist/models/Process.js +78 -78
  139. package/dist/models/ProcessDetail.d.ts +125 -125
  140. package/dist/models/ProcessDetail.js +91 -91
  141. package/dist/models/Project.d.ts +63 -63
  142. package/dist/models/Project.js +67 -67
  143. package/dist/models/ProjectAccessRequest.d.ts +81 -75
  144. package/dist/models/ProjectAccessRequest.js +76 -73
  145. package/dist/models/ProjectDetail.d.ts +101 -101
  146. package/dist/models/ProjectDetail.js +87 -87
  147. package/dist/models/ProjectMetrics.d.ts +44 -44
  148. package/dist/models/ProjectMetrics.js +56 -56
  149. package/dist/models/ProjectRequest.d.ts +71 -71
  150. package/dist/models/ProjectRequest.js +71 -71
  151. package/dist/models/ProjectRole.d.ts +25 -25
  152. package/dist/models/ProjectRole.js +40 -40
  153. package/dist/models/ProjectSettings.d.ts +122 -122
  154. package/dist/models/ProjectSettings.js +83 -83
  155. package/dist/models/ProjectUser.d.ts +62 -62
  156. package/dist/models/ProjectUser.js +66 -66
  157. package/dist/models/Reference.d.ts +68 -68
  158. package/dist/models/Reference.js +69 -69
  159. package/dist/models/ReferenceType.d.ts +51 -51
  160. package/dist/models/ReferenceType.js +59 -59
  161. package/dist/models/RepositoryType.d.ts +25 -25
  162. package/dist/models/RepositoryType.js +40 -40
  163. package/dist/models/RequestStatus.d.ts +24 -24
  164. package/dist/models/RequestStatus.js +39 -39
  165. package/dist/models/ResourcesInfo.d.ts +49 -49
  166. package/dist/models/ResourcesInfo.js +59 -59
  167. package/dist/models/RunAnalysisRequest.d.ts +69 -69
  168. package/dist/models/RunAnalysisRequest.js +67 -67
  169. package/dist/models/Sample.d.ts +63 -63
  170. package/dist/models/Sample.js +62 -62
  171. package/dist/models/SampleRequest.d.ts +39 -39
  172. package/dist/models/SampleRequest.js +53 -53
  173. package/dist/models/ServiceConnection.d.ts +37 -37
  174. package/dist/models/ServiceConnection.js +53 -53
  175. package/dist/models/SetUserProjectRoleRequest.d.ts +44 -44
  176. package/dist/models/SetUserProjectRoleRequest.js +57 -57
  177. package/dist/models/SftpCredentials.d.ts +49 -49
  178. package/dist/models/SftpCredentials.js +59 -59
  179. package/dist/models/Status.d.ts +30 -30
  180. package/dist/models/Status.js +45 -45
  181. package/dist/models/StopExecutionResponse.d.ts +37 -37
  182. package/dist/models/StopExecutionResponse.js +52 -52
  183. package/dist/models/SyncStatus.d.ts +23 -23
  184. package/dist/models/SyncStatus.js +38 -38
  185. package/dist/models/SystemInfoResponse.d.ts +94 -94
  186. package/dist/models/SystemInfoResponse.js +83 -83
  187. package/dist/models/Table.d.ts +62 -62
  188. package/dist/models/Table.js +62 -62
  189. package/dist/models/Tag.d.ts +43 -43
  190. package/dist/models/Tag.js +56 -56
  191. package/dist/models/Task.d.ts +73 -73
  192. package/dist/models/Task.js +68 -68
  193. package/dist/models/TenantInfo.d.ts +80 -80
  194. package/dist/models/TenantInfo.js +75 -75
  195. package/dist/models/UpdateDatasetRequest.d.ts +50 -50
  196. package/dist/models/UpdateDatasetRequest.js +60 -60
  197. package/dist/models/UpdateUserRequest.d.ts +69 -69
  198. package/dist/models/UpdateUserRequest.js +64 -64
  199. package/dist/models/UploadDatasetCreateResponse.d.ts +43 -43
  200. package/dist/models/UploadDatasetCreateResponse.js +56 -56
  201. package/dist/models/UploadDatasetRequest.d.ts +49 -49
  202. package/dist/models/UploadDatasetRequest.js +59 -59
  203. package/dist/models/User.d.ts +49 -49
  204. package/dist/models/User.js +59 -59
  205. package/dist/models/UserDetail.d.ts +86 -86
  206. package/dist/models/UserDetail.js +78 -78
  207. package/dist/models/UserProjectAssignment.d.ts +50 -50
  208. package/dist/models/UserProjectAssignment.js +60 -60
  209. package/dist/models/ValidateFileRequirementsRequest.d.ts +37 -37
  210. package/dist/models/ValidateFileRequirementsRequest.js +53 -53
  211. package/dist/models/index.d.ts +87 -87
  212. package/dist/models/index.js +105 -105
  213. package/dist/runtime.d.ts +182 -182
  214. package/dist/runtime.js +562 -562
  215. package/package.json +1 -1
  216. package/src/apis/AuditApi.ts +27 -6
  217. package/src/models/ApproveAccessRequest.ts +73 -73
  218. package/src/models/ProjectAccessRequest.ts +9 -0
  219. package/dist/models/CreateDashboardRequest.d.ts +0 -31
  220. package/dist/models/CreateDashboardRequest.js +0 -50
  221. package/dist/models/CustomPipelineSettingsDto1.d.ts +0 -61
  222. package/dist/models/CustomPipelineSettingsDto1.js +0 -65
  223. package/dist/models/CustomProcessRequest.d.ts +0 -99
  224. package/dist/models/CustomProcessRequest.js +0 -83
  225. package/dist/models/CustomProcessRequestPipelineCode.d.ts +0 -50
  226. package/dist/models/CustomProcessRequestPipelineCode.js +0 -58
  227. package/dist/models/DatasetFile.d.ts +0 -45
  228. package/dist/models/DatasetFile.js +0 -54
  229. package/dist/models/DatasetType.d.ts +0 -23
  230. package/dist/models/DatasetType.js +0 -38
  231. package/dist/models/ProcessDetailAllOfPipelineCode.d.ts +0 -50
  232. package/dist/models/ProcessDetailAllOfPipelineCode.js +0 -58
  233. package/dist/models/Region.d.ts +0 -31
  234. package/dist/models/Region.js +0 -50
  235. package/dist/models/RegisterDatasetRequest.d.ts +0 -49
  236. package/dist/models/RegisterDatasetRequest.js +0 -59
  237. package/dist/models/RegisterPublicDataRequest.d.ts +0 -43
  238. package/dist/models/RegisterPublicDataRequest.js +0 -56
  239. package/dist/models/S3Credentials.d.ts +0 -55
  240. package/dist/models/S3Credentials.js +0 -62
  241. package/dist/models/ValidateDataInputsRequest.d.ts +0 -37
  242. package/dist/models/ValidateDataInputsRequest.js +0 -53
  243. package/dist/models/ValidateDataInputsResponse.d.ts +0 -44
  244. package/dist/models/ValidateDataInputsResponse.js +0 -57
@@ -1,354 +1,354 @@
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.BillingApi = void 0;
68
- var runtime = require("../runtime");
69
- var index_1 = require("../models/index");
70
- /**
71
- *
72
- */
73
- var BillingApi = /** @class */ (function (_super) {
74
- __extends(BillingApi, _super);
75
- function BillingApi() {
76
- return _super !== null && _super.apply(this, arguments) || this;
77
- }
78
- /**
79
- * Creates a billing account
80
- * Create billing account
81
- */
82
- BillingApi.prototype.createBillingAccountRaw = function (requestParameters, 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
- if (requestParameters.billingAccountRequest === null || requestParameters.billingAccountRequest === undefined) {
89
- throw new runtime.RequiredError('billingAccountRequest', 'Required parameter requestParameters.billingAccountRequest was null or undefined when calling createBillingAccount.');
90
- }
91
- queryParameters = {};
92
- headerParameters = {};
93
- headerParameters['Content-Type'] = 'application/json';
94
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
95
- token = this.configuration.accessToken;
96
- return [4 /*yield*/, token("accessToken", [])];
97
- case 1:
98
- tokenString = _a.sent();
99
- if (tokenString) {
100
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
101
- }
102
- _a.label = 2;
103
- case 2: return [4 /*yield*/, this.request({
104
- path: "/billing",
105
- method: 'POST',
106
- headers: headerParameters,
107
- query: queryParameters,
108
- body: (0, index_1.BillingAccountRequestToJSON)(requestParameters.billingAccountRequest),
109
- }, initOverrides)];
110
- case 3:
111
- response = _a.sent();
112
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateResponseFromJSON)(jsonValue); })];
113
- }
114
- });
115
- });
116
- };
117
- /**
118
- * Creates a billing account
119
- * Create billing account
120
- */
121
- BillingApi.prototype.createBillingAccount = function (requestParameters, initOverrides) {
122
- return __awaiter(this, void 0, void 0, function () {
123
- var response;
124
- return __generator(this, function (_a) {
125
- switch (_a.label) {
126
- case 0: return [4 /*yield*/, this.createBillingAccountRaw(requestParameters, initOverrides)];
127
- case 1:
128
- response = _a.sent();
129
- return [4 /*yield*/, response.value()];
130
- case 2: return [2 /*return*/, _a.sent()];
131
- }
132
- });
133
- });
134
- };
135
- /**
136
- * Deletes a billing account
137
- * Delete billing account
138
- */
139
- BillingApi.prototype.deleteBillingAccountRaw = function (requestParameters, initOverrides) {
140
- return __awaiter(this, void 0, void 0, function () {
141
- var queryParameters, headerParameters, token, tokenString, response;
142
- return __generator(this, function (_a) {
143
- switch (_a.label) {
144
- case 0:
145
- if (requestParameters.billingAccountId === null || requestParameters.billingAccountId === undefined) {
146
- throw new runtime.RequiredError('billingAccountId', 'Required parameter requestParameters.billingAccountId was null or undefined when calling deleteBillingAccount.');
147
- }
148
- queryParameters = {};
149
- headerParameters = {};
150
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
151
- token = this.configuration.accessToken;
152
- return [4 /*yield*/, token("accessToken", [])];
153
- case 1:
154
- tokenString = _a.sent();
155
- if (tokenString) {
156
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
157
- }
158
- _a.label = 2;
159
- case 2: return [4 /*yield*/, this.request({
160
- path: "/billing/{billingAccountId}".replace("{".concat("billingAccountId", "}"), encodeURIComponent(String(requestParameters.billingAccountId))),
161
- method: 'DELETE',
162
- headers: headerParameters,
163
- query: queryParameters,
164
- }, initOverrides)];
165
- case 3:
166
- response = _a.sent();
167
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
168
- }
169
- });
170
- });
171
- };
172
- /**
173
- * Deletes a billing account
174
- * Delete billing account
175
- */
176
- BillingApi.prototype.deleteBillingAccount = function (requestParameters, initOverrides) {
177
- return __awaiter(this, void 0, void 0, function () {
178
- return __generator(this, function (_a) {
179
- switch (_a.label) {
180
- case 0: return [4 /*yield*/, this.deleteBillingAccountRaw(requestParameters, initOverrides)];
181
- case 1:
182
- _a.sent();
183
- return [2 /*return*/];
184
- }
185
- });
186
- });
187
- };
188
- /**
189
- * Generates a billing report xlsx with cost information
190
- * Generate billing report
191
- */
192
- BillingApi.prototype.generateBillingReportRaw = function (initOverrides) {
193
- return __awaiter(this, void 0, void 0, function () {
194
- var queryParameters, headerParameters, token, tokenString, response;
195
- return __generator(this, function (_a) {
196
- switch (_a.label) {
197
- case 0:
198
- queryParameters = {};
199
- headerParameters = {};
200
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
201
- token = this.configuration.accessToken;
202
- return [4 /*yield*/, token("accessToken", [])];
203
- case 1:
204
- tokenString = _a.sent();
205
- if (tokenString) {
206
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
207
- }
208
- _a.label = 2;
209
- case 2: return [4 /*yield*/, this.request({
210
- path: "/billing-report",
211
- method: 'GET',
212
- headers: headerParameters,
213
- query: queryParameters,
214
- }, initOverrides)];
215
- case 3:
216
- response = _a.sent();
217
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
218
- }
219
- });
220
- });
221
- };
222
- /**
223
- * Generates a billing report xlsx with cost information
224
- * Generate billing report
225
- */
226
- BillingApi.prototype.generateBillingReport = function (initOverrides) {
227
- return __awaiter(this, void 0, void 0, function () {
228
- return __generator(this, function (_a) {
229
- switch (_a.label) {
230
- case 0: return [4 /*yield*/, this.generateBillingReportRaw(initOverrides)];
231
- case 1:
232
- _a.sent();
233
- return [2 /*return*/];
234
- }
235
- });
236
- });
237
- };
238
- /**
239
- * Gets a list of billing accounts the current user has access to
240
- * List billing accounts
241
- */
242
- BillingApi.prototype.getBillingAccountsRaw = function (requestParameters, initOverrides) {
243
- return __awaiter(this, void 0, void 0, function () {
244
- var queryParameters, headerParameters, token, tokenString, response;
245
- return __generator(this, function (_a) {
246
- switch (_a.label) {
247
- case 0:
248
- queryParameters = {};
249
- if (requestParameters.includeArchived !== undefined) {
250
- queryParameters['includeArchived'] = requestParameters.includeArchived;
251
- }
252
- headerParameters = {};
253
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
254
- token = this.configuration.accessToken;
255
- return [4 /*yield*/, token("accessToken", [])];
256
- case 1:
257
- tokenString = _a.sent();
258
- if (tokenString) {
259
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
260
- }
261
- _a.label = 2;
262
- case 2: return [4 /*yield*/, this.request({
263
- path: "/billing",
264
- method: 'GET',
265
- headers: headerParameters,
266
- query: queryParameters,
267
- }, initOverrides)];
268
- case 3:
269
- response = _a.sent();
270
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.BillingAccountFromJSON); })];
271
- }
272
- });
273
- });
274
- };
275
- /**
276
- * Gets a list of billing accounts the current user has access to
277
- * List billing accounts
278
- */
279
- BillingApi.prototype.getBillingAccounts = function (requestParameters, initOverrides) {
280
- if (requestParameters === void 0) { requestParameters = {}; }
281
- return __awaiter(this, void 0, void 0, function () {
282
- var response;
283
- return __generator(this, function (_a) {
284
- switch (_a.label) {
285
- case 0: return [4 /*yield*/, this.getBillingAccountsRaw(requestParameters, initOverrides)];
286
- case 1:
287
- response = _a.sent();
288
- return [4 /*yield*/, response.value()];
289
- case 2: return [2 /*return*/, _a.sent()];
290
- }
291
- });
292
- });
293
- };
294
- /**
295
- * Updates a billing account
296
- * Update billing account
297
- */
298
- BillingApi.prototype.updateBillingAccountRaw = function (requestParameters, initOverrides) {
299
- return __awaiter(this, void 0, void 0, function () {
300
- var queryParameters, headerParameters, token, tokenString, response;
301
- return __generator(this, function (_a) {
302
- switch (_a.label) {
303
- case 0:
304
- if (requestParameters.billingAccountId === null || requestParameters.billingAccountId === undefined) {
305
- throw new runtime.RequiredError('billingAccountId', 'Required parameter requestParameters.billingAccountId was null or undefined when calling updateBillingAccount.');
306
- }
307
- if (requestParameters.billingAccountRequest === null || requestParameters.billingAccountRequest === undefined) {
308
- throw new runtime.RequiredError('billingAccountRequest', 'Required parameter requestParameters.billingAccountRequest was null or undefined when calling updateBillingAccount.');
309
- }
310
- queryParameters = {};
311
- headerParameters = {};
312
- headerParameters['Content-Type'] = 'application/json';
313
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
314
- token = this.configuration.accessToken;
315
- return [4 /*yield*/, token("accessToken", [])];
316
- case 1:
317
- tokenString = _a.sent();
318
- if (tokenString) {
319
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
320
- }
321
- _a.label = 2;
322
- case 2: return [4 /*yield*/, this.request({
323
- path: "/billing/{billingAccountId}".replace("{".concat("billingAccountId", "}"), encodeURIComponent(String(requestParameters.billingAccountId))),
324
- method: 'PUT',
325
- headers: headerParameters,
326
- query: queryParameters,
327
- body: (0, index_1.BillingAccountRequestToJSON)(requestParameters.billingAccountRequest),
328
- }, initOverrides)];
329
- case 3:
330
- response = _a.sent();
331
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
332
- }
333
- });
334
- });
335
- };
336
- /**
337
- * Updates a billing account
338
- * Update billing account
339
- */
340
- BillingApi.prototype.updateBillingAccount = function (requestParameters, initOverrides) {
341
- return __awaiter(this, void 0, void 0, function () {
342
- return __generator(this, function (_a) {
343
- switch (_a.label) {
344
- case 0: return [4 /*yield*/, this.updateBillingAccountRaw(requestParameters, initOverrides)];
345
- case 1:
346
- _a.sent();
347
- return [2 /*return*/];
348
- }
349
- });
350
- });
351
- };
352
- return BillingApi;
353
- }(runtime.BaseAPI));
354
- exports.BillingApi = BillingApi;
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.BillingApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var BillingApi = /** @class */ (function (_super) {
74
+ __extends(BillingApi, _super);
75
+ function BillingApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Creates a billing account
80
+ * Create billing account
81
+ */
82
+ BillingApi.prototype.createBillingAccountRaw = function (requestParameters, 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
+ if (requestParameters.billingAccountRequest === null || requestParameters.billingAccountRequest === undefined) {
89
+ throw new runtime.RequiredError('billingAccountRequest', 'Required parameter requestParameters.billingAccountRequest was null or undefined when calling createBillingAccount.');
90
+ }
91
+ queryParameters = {};
92
+ headerParameters = {};
93
+ headerParameters['Content-Type'] = 'application/json';
94
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
95
+ token = this.configuration.accessToken;
96
+ return [4 /*yield*/, token("accessToken", [])];
97
+ case 1:
98
+ tokenString = _a.sent();
99
+ if (tokenString) {
100
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
101
+ }
102
+ _a.label = 2;
103
+ case 2: return [4 /*yield*/, this.request({
104
+ path: "/billing",
105
+ method: 'POST',
106
+ headers: headerParameters,
107
+ query: queryParameters,
108
+ body: (0, index_1.BillingAccountRequestToJSON)(requestParameters.billingAccountRequest),
109
+ }, initOverrides)];
110
+ case 3:
111
+ response = _a.sent();
112
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateResponseFromJSON)(jsonValue); })];
113
+ }
114
+ });
115
+ });
116
+ };
117
+ /**
118
+ * Creates a billing account
119
+ * Create billing account
120
+ */
121
+ BillingApi.prototype.createBillingAccount = function (requestParameters, initOverrides) {
122
+ return __awaiter(this, void 0, void 0, function () {
123
+ var response;
124
+ return __generator(this, function (_a) {
125
+ switch (_a.label) {
126
+ case 0: return [4 /*yield*/, this.createBillingAccountRaw(requestParameters, initOverrides)];
127
+ case 1:
128
+ response = _a.sent();
129
+ return [4 /*yield*/, response.value()];
130
+ case 2: return [2 /*return*/, _a.sent()];
131
+ }
132
+ });
133
+ });
134
+ };
135
+ /**
136
+ * Deletes a billing account
137
+ * Delete billing account
138
+ */
139
+ BillingApi.prototype.deleteBillingAccountRaw = function (requestParameters, initOverrides) {
140
+ return __awaiter(this, void 0, void 0, function () {
141
+ var queryParameters, headerParameters, token, tokenString, response;
142
+ return __generator(this, function (_a) {
143
+ switch (_a.label) {
144
+ case 0:
145
+ if (requestParameters.billingAccountId === null || requestParameters.billingAccountId === undefined) {
146
+ throw new runtime.RequiredError('billingAccountId', 'Required parameter requestParameters.billingAccountId was null or undefined when calling deleteBillingAccount.');
147
+ }
148
+ queryParameters = {};
149
+ headerParameters = {};
150
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
151
+ token = this.configuration.accessToken;
152
+ return [4 /*yield*/, token("accessToken", [])];
153
+ case 1:
154
+ tokenString = _a.sent();
155
+ if (tokenString) {
156
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
157
+ }
158
+ _a.label = 2;
159
+ case 2: return [4 /*yield*/, this.request({
160
+ path: "/billing/{billingAccountId}".replace("{".concat("billingAccountId", "}"), encodeURIComponent(String(requestParameters.billingAccountId))),
161
+ method: 'DELETE',
162
+ headers: headerParameters,
163
+ query: queryParameters,
164
+ }, initOverrides)];
165
+ case 3:
166
+ response = _a.sent();
167
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
168
+ }
169
+ });
170
+ });
171
+ };
172
+ /**
173
+ * Deletes a billing account
174
+ * Delete billing account
175
+ */
176
+ BillingApi.prototype.deleteBillingAccount = function (requestParameters, initOverrides) {
177
+ return __awaiter(this, void 0, void 0, function () {
178
+ return __generator(this, function (_a) {
179
+ switch (_a.label) {
180
+ case 0: return [4 /*yield*/, this.deleteBillingAccountRaw(requestParameters, initOverrides)];
181
+ case 1:
182
+ _a.sent();
183
+ return [2 /*return*/];
184
+ }
185
+ });
186
+ });
187
+ };
188
+ /**
189
+ * Generates a billing report xlsx with cost information
190
+ * Generate billing report
191
+ */
192
+ BillingApi.prototype.generateBillingReportRaw = function (initOverrides) {
193
+ return __awaiter(this, void 0, void 0, function () {
194
+ var queryParameters, headerParameters, token, tokenString, response;
195
+ return __generator(this, function (_a) {
196
+ switch (_a.label) {
197
+ case 0:
198
+ queryParameters = {};
199
+ headerParameters = {};
200
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
201
+ token = this.configuration.accessToken;
202
+ return [4 /*yield*/, token("accessToken", [])];
203
+ case 1:
204
+ tokenString = _a.sent();
205
+ if (tokenString) {
206
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
207
+ }
208
+ _a.label = 2;
209
+ case 2: return [4 /*yield*/, this.request({
210
+ path: "/billing-report",
211
+ method: 'GET',
212
+ headers: headerParameters,
213
+ query: queryParameters,
214
+ }, initOverrides)];
215
+ case 3:
216
+ response = _a.sent();
217
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
218
+ }
219
+ });
220
+ });
221
+ };
222
+ /**
223
+ * Generates a billing report xlsx with cost information
224
+ * Generate billing report
225
+ */
226
+ BillingApi.prototype.generateBillingReport = function (initOverrides) {
227
+ return __awaiter(this, void 0, void 0, function () {
228
+ return __generator(this, function (_a) {
229
+ switch (_a.label) {
230
+ case 0: return [4 /*yield*/, this.generateBillingReportRaw(initOverrides)];
231
+ case 1:
232
+ _a.sent();
233
+ return [2 /*return*/];
234
+ }
235
+ });
236
+ });
237
+ };
238
+ /**
239
+ * Gets a list of billing accounts the current user has access to
240
+ * List billing accounts
241
+ */
242
+ BillingApi.prototype.getBillingAccountsRaw = function (requestParameters, initOverrides) {
243
+ return __awaiter(this, void 0, void 0, function () {
244
+ var queryParameters, headerParameters, token, tokenString, response;
245
+ return __generator(this, function (_a) {
246
+ switch (_a.label) {
247
+ case 0:
248
+ queryParameters = {};
249
+ if (requestParameters.includeArchived !== undefined) {
250
+ queryParameters['includeArchived'] = requestParameters.includeArchived;
251
+ }
252
+ headerParameters = {};
253
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
254
+ token = this.configuration.accessToken;
255
+ return [4 /*yield*/, token("accessToken", [])];
256
+ case 1:
257
+ tokenString = _a.sent();
258
+ if (tokenString) {
259
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
260
+ }
261
+ _a.label = 2;
262
+ case 2: return [4 /*yield*/, this.request({
263
+ path: "/billing",
264
+ method: 'GET',
265
+ headers: headerParameters,
266
+ query: queryParameters,
267
+ }, initOverrides)];
268
+ case 3:
269
+ response = _a.sent();
270
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.BillingAccountFromJSON); })];
271
+ }
272
+ });
273
+ });
274
+ };
275
+ /**
276
+ * Gets a list of billing accounts the current user has access to
277
+ * List billing accounts
278
+ */
279
+ BillingApi.prototype.getBillingAccounts = function (requestParameters, initOverrides) {
280
+ if (requestParameters === void 0) { requestParameters = {}; }
281
+ return __awaiter(this, void 0, void 0, function () {
282
+ var response;
283
+ return __generator(this, function (_a) {
284
+ switch (_a.label) {
285
+ case 0: return [4 /*yield*/, this.getBillingAccountsRaw(requestParameters, initOverrides)];
286
+ case 1:
287
+ response = _a.sent();
288
+ return [4 /*yield*/, response.value()];
289
+ case 2: return [2 /*return*/, _a.sent()];
290
+ }
291
+ });
292
+ });
293
+ };
294
+ /**
295
+ * Updates a billing account
296
+ * Update billing account
297
+ */
298
+ BillingApi.prototype.updateBillingAccountRaw = function (requestParameters, initOverrides) {
299
+ return __awaiter(this, void 0, void 0, function () {
300
+ var queryParameters, headerParameters, token, tokenString, response;
301
+ return __generator(this, function (_a) {
302
+ switch (_a.label) {
303
+ case 0:
304
+ if (requestParameters.billingAccountId === null || requestParameters.billingAccountId === undefined) {
305
+ throw new runtime.RequiredError('billingAccountId', 'Required parameter requestParameters.billingAccountId was null or undefined when calling updateBillingAccount.');
306
+ }
307
+ if (requestParameters.billingAccountRequest === null || requestParameters.billingAccountRequest === undefined) {
308
+ throw new runtime.RequiredError('billingAccountRequest', 'Required parameter requestParameters.billingAccountRequest was null or undefined when calling updateBillingAccount.');
309
+ }
310
+ queryParameters = {};
311
+ headerParameters = {};
312
+ headerParameters['Content-Type'] = 'application/json';
313
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
314
+ token = this.configuration.accessToken;
315
+ return [4 /*yield*/, token("accessToken", [])];
316
+ case 1:
317
+ tokenString = _a.sent();
318
+ if (tokenString) {
319
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
320
+ }
321
+ _a.label = 2;
322
+ case 2: return [4 /*yield*/, this.request({
323
+ path: "/billing/{billingAccountId}".replace("{".concat("billingAccountId", "}"), encodeURIComponent(String(requestParameters.billingAccountId))),
324
+ method: 'PUT',
325
+ headers: headerParameters,
326
+ query: queryParameters,
327
+ body: (0, index_1.BillingAccountRequestToJSON)(requestParameters.billingAccountRequest),
328
+ }, initOverrides)];
329
+ case 3:
330
+ response = _a.sent();
331
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
332
+ }
333
+ });
334
+ });
335
+ };
336
+ /**
337
+ * Updates a billing account
338
+ * Update billing account
339
+ */
340
+ BillingApi.prototype.updateBillingAccount = function (requestParameters, initOverrides) {
341
+ return __awaiter(this, void 0, void 0, function () {
342
+ return __generator(this, function (_a) {
343
+ switch (_a.label) {
344
+ case 0: return [4 /*yield*/, this.updateBillingAccountRaw(requestParameters, initOverrides)];
345
+ case 1:
346
+ _a.sent();
347
+ return [2 /*return*/];
348
+ }
349
+ });
350
+ });
351
+ };
352
+ return BillingApi;
353
+ }(runtime.BaseAPI));
354
+ exports.BillingApi = BillingApi;