@cirrobio/api-client 0.0.1

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 (155) hide show
  1. package/.openapi-generator/FILES +54 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +45 -0
  5. package/dist/apis/BillingApi.d.ts +68 -0
  6. package/dist/apis/BillingApi.js +264 -0
  7. package/dist/apis/DatasetsApi.d.ts +88 -0
  8. package/dist/apis/DatasetsApi.js +335 -0
  9. package/dist/apis/ExecutionApi.d.ts +96 -0
  10. package/dist/apis/ExecutionApi.js +394 -0
  11. package/dist/apis/MetricsApi.d.ts +31 -0
  12. package/dist/apis/MetricsApi.js +126 -0
  13. package/dist/apis/NotebooksApi.d.ts +77 -0
  14. package/dist/apis/NotebooksApi.js +351 -0
  15. package/dist/apis/ProcessesApi.d.ts +41 -0
  16. package/dist/apis/ProcessesApi.js +169 -0
  17. package/dist/apis/ProjectsApi.d.ts +97 -0
  18. package/dist/apis/ProjectsApi.js +369 -0
  19. package/dist/apis/SystemApi.d.ts +46 -0
  20. package/dist/apis/SystemApi.js +207 -0
  21. package/dist/apis/UsersApi.d.ts +58 -0
  22. package/dist/apis/UsersApi.js +226 -0
  23. package/dist/apis/index.d.ts +9 -0
  24. package/dist/apis/index.js +27 -0
  25. package/dist/index.d.ts +3 -0
  26. package/dist/index.js +21 -0
  27. package/dist/models/BillingAccount.d.ts +82 -0
  28. package/dist/models/BillingAccount.js +77 -0
  29. package/dist/models/BillingMethod.d.ts +24 -0
  30. package/dist/models/BillingMethod.js +37 -0
  31. package/dist/models/BudgetPeriod.d.ts +24 -0
  32. package/dist/models/BudgetPeriod.js +37 -0
  33. package/dist/models/CloudAccount.d.ts +50 -0
  34. package/dist/models/CloudAccount.js +57 -0
  35. package/dist/models/Contact.d.ts +49 -0
  36. package/dist/models/Contact.js +56 -0
  37. package/dist/models/CreateNotebookInstanceRequest.d.ts +49 -0
  38. package/dist/models/CreateNotebookInstanceRequest.js +59 -0
  39. package/dist/models/CreateResponse.d.ts +37 -0
  40. package/dist/models/CreateResponse.js +53 -0
  41. package/dist/models/CustomerType.d.ts +25 -0
  42. package/dist/models/CustomerType.js +38 -0
  43. package/dist/models/Dataset.d.ts +86 -0
  44. package/dist/models/Dataset.js +78 -0
  45. package/dist/models/DatasetDetail.d.ts +114 -0
  46. package/dist/models/DatasetDetail.js +90 -0
  47. package/dist/models/DatasetType.d.ts +23 -0
  48. package/dist/models/DatasetType.js +36 -0
  49. package/dist/models/Executor.d.ts +24 -0
  50. package/dist/models/Executor.js +37 -0
  51. package/dist/models/FormSchema.d.ts +41 -0
  52. package/dist/models/FormSchema.js +52 -0
  53. package/dist/models/GetExecutionLogsResponse.d.ts +32 -0
  54. package/dist/models/GetExecutionLogsResponse.js +51 -0
  55. package/dist/models/LogEntry.d.ts +37 -0
  56. package/dist/models/LogEntry.js +53 -0
  57. package/dist/models/NotebookInstance.d.ts +43 -0
  58. package/dist/models/NotebookInstance.js +56 -0
  59. package/dist/models/OpenNotebookInstanceResponse.d.ts +37 -0
  60. package/dist/models/OpenNotebookInstanceResponse.js +53 -0
  61. package/dist/models/Process.d.ts +68 -0
  62. package/dist/models/Process.js +63 -0
  63. package/dist/models/Project.d.ts +49 -0
  64. package/dist/models/Project.js +59 -0
  65. package/dist/models/ProjectDetail.d.ts +100 -0
  66. package/dist/models/ProjectDetail.js +86 -0
  67. package/dist/models/ProjectMetrics.d.ts +47 -0
  68. package/dist/models/ProjectMetrics.js +56 -0
  69. package/dist/models/ProjectRequest.d.ts +71 -0
  70. package/dist/models/ProjectRequest.js +72 -0
  71. package/dist/models/ProjectRole.d.ts +25 -0
  72. package/dist/models/ProjectRole.js +38 -0
  73. package/dist/models/ProjectSettings.d.ts +92 -0
  74. package/dist/models/ProjectSettings.js +71 -0
  75. package/dist/models/ReferenceType.d.ts +31 -0
  76. package/dist/models/ReferenceType.js +50 -0
  77. package/dist/models/Region.d.ts +31 -0
  78. package/dist/models/Region.js +50 -0
  79. package/dist/models/RegisterDatasetRequest.d.ts +31 -0
  80. package/dist/models/RegisterDatasetRequest.js +50 -0
  81. package/dist/models/ServiceConnection.d.ts +31 -0
  82. package/dist/models/ServiceConnection.js +50 -0
  83. package/dist/models/SetUserProjectRoleRequest.d.ts +31 -0
  84. package/dist/models/SetUserProjectRoleRequest.js +50 -0
  85. package/dist/models/StopExecutionResponse.d.ts +37 -0
  86. package/dist/models/StopExecutionResponse.js +52 -0
  87. package/dist/models/SystemInfoResponse.d.ts +55 -0
  88. package/dist/models/SystemInfoResponse.js +62 -0
  89. package/dist/models/Tag.d.ts +37 -0
  90. package/dist/models/Tag.js +53 -0
  91. package/dist/models/Task.d.ts +73 -0
  92. package/dist/models/Task.js +68 -0
  93. package/dist/models/UpdateDatasetRequest.d.ts +31 -0
  94. package/dist/models/UpdateDatasetRequest.js +50 -0
  95. package/dist/models/UpdateUserRequest.d.ts +57 -0
  96. package/dist/models/UpdateUserRequest.js +62 -0
  97. package/dist/models/User.d.ts +49 -0
  98. package/dist/models/User.js +59 -0
  99. package/dist/models/index.d.ts +36 -0
  100. package/dist/models/index.js +54 -0
  101. package/dist/runtime.d.ts +182 -0
  102. package/dist/runtime.js +562 -0
  103. package/package.json +22 -0
  104. package/src/apis/BillingApi.ts +178 -0
  105. package/src/apis/DatasetsApi.ts +257 -0
  106. package/src/apis/ExecutionApi.ts +317 -0
  107. package/src/apis/MetricsApi.ts +66 -0
  108. package/src/apis/NotebooksApi.ts +261 -0
  109. package/src/apis/ProcessesApi.ts +97 -0
  110. package/src/apis/ProjectsApi.ts +283 -0
  111. package/src/apis/SystemApi.ts +118 -0
  112. package/src/apis/UsersApi.ts +153 -0
  113. package/src/apis/index.ts +11 -0
  114. package/src/index.ts +5 -0
  115. package/src/models/BillingAccount.ts +157 -0
  116. package/src/models/BillingMethod.ts +39 -0
  117. package/src/models/BudgetPeriod.ts +39 -0
  118. package/src/models/CloudAccount.ts +96 -0
  119. package/src/models/Contact.ts +89 -0
  120. package/src/models/CreateNotebookInstanceRequest.ts +93 -0
  121. package/src/models/CreateResponse.ts +75 -0
  122. package/src/models/CustomerType.ts +40 -0
  123. package/src/models/Dataset.ts +154 -0
  124. package/src/models/DatasetDetail.ts +190 -0
  125. package/src/models/DatasetType.ts +38 -0
  126. package/src/models/Executor.ts +39 -0
  127. package/src/models/FormSchema.ts +73 -0
  128. package/src/models/GetExecutionLogsResponse.ts +73 -0
  129. package/src/models/LogEntry.ts +74 -0
  130. package/src/models/NotebookInstance.ts +84 -0
  131. package/src/models/OpenNotebookInstanceResponse.ts +75 -0
  132. package/src/models/Process.ts +120 -0
  133. package/src/models/Project.ts +93 -0
  134. package/src/models/ProjectDetail.ts +184 -0
  135. package/src/models/ProjectMetrics.ts +84 -0
  136. package/src/models/ProjectRequest.ts +145 -0
  137. package/src/models/ProjectRole.ts +40 -0
  138. package/src/models/ProjectSettings.ts +152 -0
  139. package/src/models/ReferenceType.ts +66 -0
  140. package/src/models/Region.ts +65 -0
  141. package/src/models/RegisterDatasetRequest.ts +65 -0
  142. package/src/models/ServiceConnection.ts +66 -0
  143. package/src/models/SetUserProjectRoleRequest.ts +65 -0
  144. package/src/models/StopExecutionResponse.ts +73 -0
  145. package/src/models/SystemInfoResponse.ts +102 -0
  146. package/src/models/Tag.ts +75 -0
  147. package/src/models/Task.ts +125 -0
  148. package/src/models/UpdateDatasetRequest.ts +65 -0
  149. package/src/models/UpdateUserRequest.ts +102 -0
  150. package/src/models/User.ts +93 -0
  151. package/src/models/index.ts +38 -0
  152. package/src/runtime.ts +431 -0
  153. package/templates/README.mustache +45 -0
  154. package/templates/package.mustache +43 -0
  155. package/tsconfig.json +20 -0
@@ -0,0 +1,54 @@
1
+ .gitignore
2
+ .npmignore
3
+ README.md
4
+ package.json
5
+ src/apis/BillingApi.ts
6
+ src/apis/DatasetsApi.ts
7
+ src/apis/ExecutionApi.ts
8
+ src/apis/MetricsApi.ts
9
+ src/apis/NotebooksApi.ts
10
+ src/apis/ProcessesApi.ts
11
+ src/apis/ProjectsApi.ts
12
+ src/apis/SystemApi.ts
13
+ src/apis/UsersApi.ts
14
+ src/apis/index.ts
15
+ src/index.ts
16
+ src/models/BillingAccount.ts
17
+ src/models/BillingMethod.ts
18
+ src/models/BudgetPeriod.ts
19
+ src/models/CloudAccount.ts
20
+ src/models/Contact.ts
21
+ src/models/CreateNotebookInstanceRequest.ts
22
+ src/models/CreateResponse.ts
23
+ src/models/CustomerType.ts
24
+ src/models/Dataset.ts
25
+ src/models/DatasetDetail.ts
26
+ src/models/DatasetType.ts
27
+ src/models/Executor.ts
28
+ src/models/FormSchema.ts
29
+ src/models/GetExecutionLogsResponse.ts
30
+ src/models/LogEntry.ts
31
+ src/models/NotebookInstance.ts
32
+ src/models/OpenNotebookInstanceResponse.ts
33
+ src/models/Process.ts
34
+ src/models/Project.ts
35
+ src/models/ProjectDetail.ts
36
+ src/models/ProjectMetrics.ts
37
+ src/models/ProjectRequest.ts
38
+ src/models/ProjectRole.ts
39
+ src/models/ProjectSettings.ts
40
+ src/models/ReferenceType.ts
41
+ src/models/Region.ts
42
+ src/models/RegisterDatasetRequest.ts
43
+ src/models/ServiceConnection.ts
44
+ src/models/SetUserProjectRoleRequest.ts
45
+ src/models/StopExecutionResponse.ts
46
+ src/models/SystemInfoResponse.ts
47
+ src/models/Tag.ts
48
+ src/models/Task.ts
49
+ src/models/UpdateDatasetRequest.ts
50
+ src/models/UpdateUserRequest.ts
51
+ src/models/User.ts
52
+ src/models/index.ts
53
+ src/runtime.ts
54
+ tsconfig.json
@@ -0,0 +1 @@
1
+ 7.0.1
@@ -0,0 +1,23 @@
1
+ # OpenAPI Generator Ignore
2
+ # Generated by openapi-generator https://github.com/openapitools/openapi-generator
3
+
4
+ # Use this file to prevent files from being overwritten by the generator.
5
+ # The patterns follow closely to .gitignore or .dockerignore.
6
+
7
+ # As an example, the C# client generator defines ApiClient.cs.
8
+ # You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9
+ #ApiClient.cs
10
+
11
+ # You can match any string of characters against a directory, file or extension with a single asterisk (*):
12
+ #foo/*/qux
13
+ # The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14
+
15
+ # You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16
+ #foo/**/qux
17
+ # This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18
+
19
+ # You can also negate patterns with an exclamation (!).
20
+ # For example, you can ignore all files in a docs folder with the file extension .md:
21
+ #docs/*.md
22
+ # Then explicitly reverse the ignore rule for a single file:
23
+ #!docs/README.md
package/README.md ADDED
@@ -0,0 +1,45 @@
1
+ ## Cirro API Client (TypeScript)
2
+
3
+ This is an API client for Cirro.
4
+
5
+ Environment
6
+ * Node.js
7
+ * Webpack
8
+ * Browserify
9
+
10
+ Language level
11
+ * ES5 - you must have a Promises/A+ library installed
12
+ * ES6
13
+
14
+ Module system
15
+ * CommonJS
16
+ * ES6 module system
17
+
18
+ It can be used in both TypeScript and JavaScript. In TypeScript, the definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html))
19
+
20
+ ### Building
21
+
22
+ To build and compile the typescript sources to javascript use:
23
+ ```
24
+ npm install
25
+ npm run build
26
+ ```
27
+
28
+ ### Publishing
29
+
30
+ First build the package then run ```npm publish```
31
+
32
+ ### Consuming
33
+
34
+ navigate to the folder of your consuming project and run one of the following commands.
35
+
36
+ _published:_
37
+
38
+ ```
39
+ npm install @cirrobio/api-client@0.0.1 --save
40
+ ```
41
+
42
+ _unPublished (not recommended):_
43
+
44
+ ```
45
+ npm install PATH_TO_GENERATED_PACKAGE --save
@@ -0,0 +1,68 @@
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 { BillingAccount, CreateResponse } from '../models/index';
14
+ export interface CreateBillingAccountRequest {
15
+ billingAccount: BillingAccount;
16
+ }
17
+ export interface DeleteBillingAccountRequest {
18
+ billingAccountId: string;
19
+ }
20
+ export interface UpdateBillingAccountRequest {
21
+ billingAccountId: string;
22
+ billingAccount: BillingAccount;
23
+ }
24
+ /**
25
+ *
26
+ */
27
+ export declare class BillingApi extends runtime.BaseAPI {
28
+ /**
29
+ * Creates a billing account
30
+ * Create billing account
31
+ */
32
+ createBillingAccountRaw(requestParameters: CreateBillingAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>>;
33
+ /**
34
+ * Creates a billing account
35
+ * Create billing account
36
+ */
37
+ createBillingAccount(requestParameters: CreateBillingAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse>;
38
+ /**
39
+ * Deletes a billing account
40
+ * Delete billing account
41
+ */
42
+ deleteBillingAccountRaw(requestParameters: DeleteBillingAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
43
+ /**
44
+ * Deletes a billing account
45
+ * Delete billing account
46
+ */
47
+ deleteBillingAccount(requestParameters: DeleteBillingAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
48
+ /**
49
+ * Gets a list of billing accounts the current user has access to
50
+ * List billing accounts
51
+ */
52
+ getBillingAccountsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<BillingAccount>>>;
53
+ /**
54
+ * Gets a list of billing accounts the current user has access to
55
+ * List billing accounts
56
+ */
57
+ getBillingAccounts(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<BillingAccount>>;
58
+ /**
59
+ * Updates a billing account
60
+ * Update billing account
61
+ */
62
+ updateBillingAccountRaw(requestParameters: UpdateBillingAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
63
+ /**
64
+ * Updates a billing account
65
+ * Update billing account
66
+ */
67
+ updateBillingAccount(requestParameters: UpdateBillingAccountRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
68
+ }
@@ -0,0 +1,264 @@
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, response;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
+ case 0:
88
+ if (requestParameters.billingAccount === null || requestParameters.billingAccount === undefined) {
89
+ throw new runtime.RequiredError('billingAccount', 'Required parameter requestParameters.billingAccount was null or undefined when calling createBillingAccount.');
90
+ }
91
+ queryParameters = {};
92
+ headerParameters = {};
93
+ headerParameters['Content-Type'] = 'application/json';
94
+ return [4 /*yield*/, this.request({
95
+ path: "/billing",
96
+ method: 'POST',
97
+ headers: headerParameters,
98
+ query: queryParameters,
99
+ body: (0, index_1.BillingAccountToJSON)(requestParameters.billingAccount),
100
+ }, initOverrides)];
101
+ case 1:
102
+ response = _a.sent();
103
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateResponseFromJSON)(jsonValue); })];
104
+ }
105
+ });
106
+ });
107
+ };
108
+ /**
109
+ * Creates a billing account
110
+ * Create billing account
111
+ */
112
+ BillingApi.prototype.createBillingAccount = function (requestParameters, initOverrides) {
113
+ return __awaiter(this, void 0, void 0, function () {
114
+ var response;
115
+ return __generator(this, function (_a) {
116
+ switch (_a.label) {
117
+ case 0: return [4 /*yield*/, this.createBillingAccountRaw(requestParameters, initOverrides)];
118
+ case 1:
119
+ response = _a.sent();
120
+ return [4 /*yield*/, response.value()];
121
+ case 2: return [2 /*return*/, _a.sent()];
122
+ }
123
+ });
124
+ });
125
+ };
126
+ /**
127
+ * Deletes a billing account
128
+ * Delete billing account
129
+ */
130
+ BillingApi.prototype.deleteBillingAccountRaw = function (requestParameters, initOverrides) {
131
+ return __awaiter(this, void 0, void 0, function () {
132
+ var queryParameters, headerParameters, response;
133
+ return __generator(this, function (_a) {
134
+ switch (_a.label) {
135
+ case 0:
136
+ if (requestParameters.billingAccountId === null || requestParameters.billingAccountId === undefined) {
137
+ throw new runtime.RequiredError('billingAccountId', 'Required parameter requestParameters.billingAccountId was null or undefined when calling deleteBillingAccount.');
138
+ }
139
+ queryParameters = {};
140
+ headerParameters = {};
141
+ return [4 /*yield*/, this.request({
142
+ path: "/billing/{billingAccountId}".replace("{".concat("billingAccountId", "}"), encodeURIComponent(String(requestParameters.billingAccountId))),
143
+ method: 'DELETE',
144
+ headers: headerParameters,
145
+ query: queryParameters,
146
+ }, initOverrides)];
147
+ case 1:
148
+ response = _a.sent();
149
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
150
+ }
151
+ });
152
+ });
153
+ };
154
+ /**
155
+ * Deletes a billing account
156
+ * Delete billing account
157
+ */
158
+ BillingApi.prototype.deleteBillingAccount = function (requestParameters, initOverrides) {
159
+ return __awaiter(this, void 0, void 0, function () {
160
+ return __generator(this, function (_a) {
161
+ switch (_a.label) {
162
+ case 0: return [4 /*yield*/, this.deleteBillingAccountRaw(requestParameters, initOverrides)];
163
+ case 1:
164
+ _a.sent();
165
+ return [2 /*return*/];
166
+ }
167
+ });
168
+ });
169
+ };
170
+ /**
171
+ * Gets a list of billing accounts the current user has access to
172
+ * List billing accounts
173
+ */
174
+ BillingApi.prototype.getBillingAccountsRaw = function (initOverrides) {
175
+ return __awaiter(this, void 0, void 0, function () {
176
+ var queryParameters, headerParameters, response;
177
+ return __generator(this, function (_a) {
178
+ switch (_a.label) {
179
+ case 0:
180
+ queryParameters = {};
181
+ headerParameters = {};
182
+ return [4 /*yield*/, this.request({
183
+ path: "/billing",
184
+ method: 'GET',
185
+ headers: headerParameters,
186
+ query: queryParameters,
187
+ }, initOverrides)];
188
+ case 1:
189
+ response = _a.sent();
190
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.BillingAccountFromJSON); })];
191
+ }
192
+ });
193
+ });
194
+ };
195
+ /**
196
+ * Gets a list of billing accounts the current user has access to
197
+ * List billing accounts
198
+ */
199
+ BillingApi.prototype.getBillingAccounts = function (initOverrides) {
200
+ return __awaiter(this, void 0, void 0, function () {
201
+ var response;
202
+ return __generator(this, function (_a) {
203
+ switch (_a.label) {
204
+ case 0: return [4 /*yield*/, this.getBillingAccountsRaw(initOverrides)];
205
+ case 1:
206
+ response = _a.sent();
207
+ return [4 /*yield*/, response.value()];
208
+ case 2: return [2 /*return*/, _a.sent()];
209
+ }
210
+ });
211
+ });
212
+ };
213
+ /**
214
+ * Updates a billing account
215
+ * Update billing account
216
+ */
217
+ BillingApi.prototype.updateBillingAccountRaw = function (requestParameters, initOverrides) {
218
+ return __awaiter(this, void 0, void 0, function () {
219
+ var queryParameters, headerParameters, response;
220
+ return __generator(this, function (_a) {
221
+ switch (_a.label) {
222
+ case 0:
223
+ if (requestParameters.billingAccountId === null || requestParameters.billingAccountId === undefined) {
224
+ throw new runtime.RequiredError('billingAccountId', 'Required parameter requestParameters.billingAccountId was null or undefined when calling updateBillingAccount.');
225
+ }
226
+ if (requestParameters.billingAccount === null || requestParameters.billingAccount === undefined) {
227
+ throw new runtime.RequiredError('billingAccount', 'Required parameter requestParameters.billingAccount was null or undefined when calling updateBillingAccount.');
228
+ }
229
+ queryParameters = {};
230
+ headerParameters = {};
231
+ headerParameters['Content-Type'] = 'application/json';
232
+ return [4 /*yield*/, this.request({
233
+ path: "/billing/{billingAccountId}".replace("{".concat("billingAccountId", "}"), encodeURIComponent(String(requestParameters.billingAccountId))),
234
+ method: 'PUT',
235
+ headers: headerParameters,
236
+ query: queryParameters,
237
+ body: (0, index_1.BillingAccountToJSON)(requestParameters.billingAccount),
238
+ }, initOverrides)];
239
+ case 1:
240
+ response = _a.sent();
241
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
242
+ }
243
+ });
244
+ });
245
+ };
246
+ /**
247
+ * Updates a billing account
248
+ * Update billing account
249
+ */
250
+ BillingApi.prototype.updateBillingAccount = function (requestParameters, initOverrides) {
251
+ return __awaiter(this, void 0, void 0, function () {
252
+ return __generator(this, function (_a) {
253
+ switch (_a.label) {
254
+ case 0: return [4 /*yield*/, this.updateBillingAccountRaw(requestParameters, initOverrides)];
255
+ case 1:
256
+ _a.sent();
257
+ return [2 /*return*/];
258
+ }
259
+ });
260
+ });
261
+ };
262
+ return BillingApi;
263
+ }(runtime.BaseAPI));
264
+ exports.BillingApi = BillingApi;
@@ -0,0 +1,88 @@
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 { CreateResponse, Dataset, DatasetDetail, RegisterDatasetRequest, UpdateDatasetRequest } from '../models/index';
14
+ export interface DeleteDatasetRequest {
15
+ projectId: string;
16
+ datasetId: string;
17
+ }
18
+ export interface GetDatasetRequest {
19
+ datasetId: string;
20
+ projectId: string;
21
+ }
22
+ export interface GetDatasetsRequest {
23
+ projectId: string;
24
+ }
25
+ export interface RegisterDatasetOperationRequest {
26
+ projectId: string;
27
+ registerDatasetRequest: RegisterDatasetRequest;
28
+ }
29
+ export interface UpdateDatasetOperationRequest {
30
+ projectId: string;
31
+ datasetId: string;
32
+ updateDatasetRequest: UpdateDatasetRequest;
33
+ }
34
+ /**
35
+ *
36
+ */
37
+ export declare class DatasetsApi extends runtime.BaseAPI {
38
+ /**
39
+ * Deletes the dataset, files are saved according to the project\'s retention time.
40
+ * Delete a dataset
41
+ */
42
+ deleteDatasetRaw(requestParameters: DeleteDatasetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<string>>;
43
+ /**
44
+ * Deletes the dataset, files are saved according to the project\'s retention time.
45
+ * Delete a dataset
46
+ */
47
+ deleteDataset(requestParameters: DeleteDatasetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<string>;
48
+ /**
49
+ * Gets detailed information about a dataset
50
+ * Get dataset
51
+ */
52
+ getDatasetRaw(requestParameters: GetDatasetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatasetDetail>>;
53
+ /**
54
+ * Gets detailed information about a dataset
55
+ * Get dataset
56
+ */
57
+ getDataset(requestParameters: GetDatasetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatasetDetail>;
58
+ /**
59
+ * Retrieves a list of datasets for a given project
60
+ * List datasets
61
+ */
62
+ getDatasetsRaw(requestParameters: GetDatasetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Dataset>>>;
63
+ /**
64
+ * Retrieves a list of datasets for a given project
65
+ * List datasets
66
+ */
67
+ getDatasets(requestParameters: GetDatasetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Dataset>>;
68
+ /**
69
+ * Registers a dataset in the system
70
+ * Register dataset
71
+ */
72
+ registerDatasetRaw(requestParameters: RegisterDatasetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>>;
73
+ /**
74
+ * Registers a dataset in the system
75
+ * Register dataset
76
+ */
77
+ registerDataset(requestParameters: RegisterDatasetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse>;
78
+ /**
79
+ * Update info on a dataset
80
+ * Update dataset
81
+ */
82
+ updateDatasetRaw(requestParameters: UpdateDatasetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DatasetDetail>>;
83
+ /**
84
+ * Update info on a dataset
85
+ * Update dataset
86
+ */
87
+ updateDataset(requestParameters: UpdateDatasetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DatasetDetail>;
88
+ }