qovery-ws-typescript-axios 0.1.619 → 0.1.621

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/dist/esm/api.js CHANGED
@@ -26,6 +26,18 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setSearchParams, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ export const BlueprintPreviewResultOneOfTypeEnum = {
30
+ DIFF: 'diff'
31
+ };
32
+ export const BlueprintPreviewResultOneOf1TypeEnum = {
33
+ ERROR: 'error'
34
+ };
35
+ export const BlueprintPreviewResultOneOf2TypeEnum = {
36
+ CANCELLED: 'cancelled'
37
+ };
38
+ export const BlueprintPreviewResultOneOf3TypeEnum = {
39
+ TIMEOUT: 'timeout'
40
+ };
29
41
  /**
30
42
  *
31
43
  * @export
@@ -148,6 +160,233 @@ export const UnitDto = {
148
160
  MI_B: 'MiB',
149
161
  GI_B: 'GiB'
150
162
  };
163
+ /**
164
+ * BlueprintPreviewApi - axios parameter creator
165
+ * @export
166
+ */
167
+ export const BlueprintPreviewApiAxiosParamCreator = function (configuration) {
168
+ return {
169
+ /**
170
+ *
171
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
172
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
173
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from `POST /api/blueprint/{id}/update/preview`. Doubles as the Pub/Sub channel suffix: `core.blueprint.preview.{preview_id}`.
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ handleBlueprintPreviewRequest: (organization_1, cluster_1, previewId_1, ...args_1) => __awaiter(this, [organization_1, cluster_1, previewId_1, ...args_1], void 0, function* (organization, cluster, previewId, options = {}) {
178
+ // verify required parameter 'organization' is not null or undefined
179
+ assertParamExists('handleBlueprintPreviewRequest', 'organization', organization);
180
+ // verify required parameter 'cluster' is not null or undefined
181
+ assertParamExists('handleBlueprintPreviewRequest', 'cluster', cluster);
182
+ // verify required parameter 'previewId' is not null or undefined
183
+ assertParamExists('handleBlueprintPreviewRequest', 'previewId', previewId);
184
+ const localVarPath = `/blueprint/preview`
185
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
186
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
187
+ .replace(`{${"preview_id"}}`, encodeURIComponent(String(previewId)));
188
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
189
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
190
+ let baseOptions;
191
+ if (configuration) {
192
+ baseOptions = configuration.baseOptions;
193
+ }
194
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
195
+ const localVarHeaderParameter = {};
196
+ const localVarQueryParameter = {};
197
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
198
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
199
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
200
+ return {
201
+ url: toPathString(localVarUrlObj),
202
+ options: localVarRequestOptions,
203
+ };
204
+ }),
205
+ };
206
+ };
207
+ /**
208
+ * BlueprintPreviewApi - functional programming interface
209
+ * @export
210
+ */
211
+ export const BlueprintPreviewApiFp = function (configuration) {
212
+ const localVarAxiosParamCreator = BlueprintPreviewApiAxiosParamCreator(configuration);
213
+ return {
214
+ /**
215
+ *
216
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
217
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
218
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from `POST /api/blueprint/{id}/update/preview`. Doubles as the Pub/Sub channel suffix: `core.blueprint.preview.{preview_id}`.
219
+ * @param {*} [options] Override http request option.
220
+ * @throws {RequiredError}
221
+ */
222
+ handleBlueprintPreviewRequest(organization, cluster, previewId, options) {
223
+ return __awaiter(this, void 0, void 0, function* () {
224
+ var _a, _b, _c;
225
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleBlueprintPreviewRequest(organization, cluster, previewId, options);
226
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
227
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlueprintPreviewApi.handleBlueprintPreviewRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
228
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
229
+ });
230
+ },
231
+ };
232
+ };
233
+ /**
234
+ * BlueprintPreviewApi - factory interface
235
+ * @export
236
+ */
237
+ export const BlueprintPreviewApiFactory = function (configuration, basePath, axios) {
238
+ const localVarFp = BlueprintPreviewApiFp(configuration);
239
+ return {
240
+ /**
241
+ *
242
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
243
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
244
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from `POST /api/blueprint/{id}/update/preview`. Doubles as the Pub/Sub channel suffix: `core.blueprint.preview.{preview_id}`.
245
+ * @param {*} [options] Override http request option.
246
+ * @throws {RequiredError}
247
+ */
248
+ handleBlueprintPreviewRequest(organization, cluster, previewId, options) {
249
+ return localVarFp.handleBlueprintPreviewRequest(organization, cluster, previewId, options).then((request) => request(axios, basePath));
250
+ },
251
+ };
252
+ };
253
+ /**
254
+ * BlueprintPreviewApi - object-oriented interface
255
+ * @export
256
+ * @class BlueprintPreviewApi
257
+ * @extends {BaseAPI}
258
+ */
259
+ export class BlueprintPreviewApi extends BaseAPI {
260
+ /**
261
+ *
262
+ * @param {string} organization Organization id — for permission scoping. Frontend already has it.
263
+ * @param {string} cluster Cluster id — for permission scoping. Frontend already has it.
264
+ * @param {string} previewId Preview id — the UUIDv7 q-core returned from `POST /api/blueprint/{id}/update/preview`. Doubles as the Pub/Sub channel suffix: `core.blueprint.preview.{preview_id}`.
265
+ * @param {*} [options] Override http request option.
266
+ * @throws {RequiredError}
267
+ * @memberof BlueprintPreviewApi
268
+ */
269
+ handleBlueprintPreviewRequest(organization, cluster, previewId, options) {
270
+ return BlueprintPreviewApiFp(this.configuration).handleBlueprintPreviewRequest(organization, cluster, previewId, options).then((request) => request(this.axios, this.basePath));
271
+ }
272
+ }
273
+ /**
274
+ * BlueprintServiceApi - axios parameter creator
275
+ * @export
276
+ */
277
+ export const BlueprintServiceApiAxiosParamCreator = function (configuration) {
278
+ return {
279
+ /**
280
+ *
281
+ * @param {string} organization
282
+ * @param {string | null} cluster
283
+ * @param {string} project
284
+ * @param {string} environment
285
+ * @param {*} [options] Override http request option.
286
+ * @throws {RequiredError}
287
+ */
288
+ handleBlueprintServiceCreatedRequest: (organization_1, cluster_1, project_1, environment_1, ...args_1) => __awaiter(this, [organization_1, cluster_1, project_1, environment_1, ...args_1], void 0, function* (organization, cluster, project, environment, options = {}) {
289
+ // verify required parameter 'organization' is not null or undefined
290
+ assertParamExists('handleBlueprintServiceCreatedRequest', 'organization', organization);
291
+ // verify required parameter 'cluster' is not null or undefined
292
+ assertParamExists('handleBlueprintServiceCreatedRequest', 'cluster', cluster);
293
+ // verify required parameter 'project' is not null or undefined
294
+ assertParamExists('handleBlueprintServiceCreatedRequest', 'project', project);
295
+ // verify required parameter 'environment' is not null or undefined
296
+ assertParamExists('handleBlueprintServiceCreatedRequest', 'environment', environment);
297
+ const localVarPath = `/blueprint/service-created`
298
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
299
+ .replace(`{${"cluster"}}`, encodeURIComponent(String(cluster)))
300
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
301
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
302
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
303
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
304
+ let baseOptions;
305
+ if (configuration) {
306
+ baseOptions = configuration.baseOptions;
307
+ }
308
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
309
+ const localVarHeaderParameter = {};
310
+ const localVarQueryParameter = {};
311
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
312
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
313
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
314
+ return {
315
+ url: toPathString(localVarUrlObj),
316
+ options: localVarRequestOptions,
317
+ };
318
+ }),
319
+ };
320
+ };
321
+ /**
322
+ * BlueprintServiceApi - functional programming interface
323
+ * @export
324
+ */
325
+ export const BlueprintServiceApiFp = function (configuration) {
326
+ const localVarAxiosParamCreator = BlueprintServiceApiAxiosParamCreator(configuration);
327
+ return {
328
+ /**
329
+ *
330
+ * @param {string} organization
331
+ * @param {string | null} cluster
332
+ * @param {string} project
333
+ * @param {string} environment
334
+ * @param {*} [options] Override http request option.
335
+ * @throws {RequiredError}
336
+ */
337
+ handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options) {
338
+ return __awaiter(this, void 0, void 0, function* () {
339
+ var _a, _b, _c;
340
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options);
341
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
342
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['BlueprintServiceApi.handleBlueprintServiceCreatedRequest']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
343
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
344
+ });
345
+ },
346
+ };
347
+ };
348
+ /**
349
+ * BlueprintServiceApi - factory interface
350
+ * @export
351
+ */
352
+ export const BlueprintServiceApiFactory = function (configuration, basePath, axios) {
353
+ const localVarFp = BlueprintServiceApiFp(configuration);
354
+ return {
355
+ /**
356
+ *
357
+ * @param {string} organization
358
+ * @param {string | null} cluster
359
+ * @param {string} project
360
+ * @param {string} environment
361
+ * @param {*} [options] Override http request option.
362
+ * @throws {RequiredError}
363
+ */
364
+ handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options) {
365
+ return localVarFp.handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options).then((request) => request(axios, basePath));
366
+ },
367
+ };
368
+ };
369
+ /**
370
+ * BlueprintServiceApi - object-oriented interface
371
+ * @export
372
+ * @class BlueprintServiceApi
373
+ * @extends {BaseAPI}
374
+ */
375
+ export class BlueprintServiceApi extends BaseAPI {
376
+ /**
377
+ *
378
+ * @param {string} organization
379
+ * @param {string | null} cluster
380
+ * @param {string} project
381
+ * @param {string} environment
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ * @memberof BlueprintServiceApi
385
+ */
386
+ handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options) {
387
+ return BlueprintServiceApiFp(this.configuration).handleBlueprintServiceCreatedRequest(organization, cluster, project, environment, options).then((request) => request(this.axios, this.basePath));
388
+ }
389
+ }
151
390
  /**
152
391
  * ClusterListNodesApi - axios parameter creator
153
392
  * @export
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-ws-typescript-axios",
3
- "version": "v0.1.619",
3
+ "version": "v0.1.621",
4
4
  "description": "OpenAPI client for qovery-ws-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {