From 93d2a31b282d917d1cfeddce6b749c98401d8480 Mon Sep 17 00:00:00 2001 From: Dominik Zarsky Date: Thu, 30 Nov 2023 17:06:49 +0100 Subject: [PATCH] Update api client --- src/api/core/OpenAPI.ts | 38 +++++++++++++++---------------- src/api/services/DomainService.ts | 6 ++--- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/api/core/OpenAPI.ts b/src/api/core/OpenAPI.ts index c8522ea..e99103e 100644 --- a/src/api/core/OpenAPI.ts +++ b/src/api/core/OpenAPI.ts @@ -1,31 +1,31 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ -import type { ApiRequestOptions } from './ApiRequestOptions'; +import type { ApiRequestOptions } from "./ApiRequestOptions"; type Resolver = (options: ApiRequestOptions) => Promise; type Headers = Record; export type OpenAPIConfig = { - BASE: string; - VERSION: string; - WITH_CREDENTIALS: boolean; - CREDENTIALS: 'include' | 'omit' | 'same-origin'; - TOKEN?: string | Resolver; - USERNAME?: string | Resolver; - PASSWORD?: string | Resolver; - HEADERS?: Headers | Resolver; - ENCODE_PATH?: (path: string) => string; + BASE: string; + VERSION: string; + WITH_CREDENTIALS: boolean; + CREDENTIALS: "include" | "omit" | "same-origin"; + TOKEN?: string | Resolver; + USERNAME?: string | Resolver; + PASSWORD?: string | Resolver; + HEADERS?: Headers | Resolver; + ENCODE_PATH?: (path: string) => string; }; export const OpenAPI: OpenAPIConfig = { - BASE: 'http://127.0.0.1:8000/api', - VERSION: '1.0', - WITH_CREDENTIALS: false, - CREDENTIALS: 'include', - TOKEN: undefined, - USERNAME: undefined, - PASSWORD: undefined, - HEADERS: undefined, - ENCODE_PATH: undefined, + BASE: "http://127.0.0.1:8000/api", + VERSION: "1.0", + WITH_CREDENTIALS: false, + CREDENTIALS: "include", + TOKEN: undefined, + USERNAME: undefined, + PASSWORD: undefined, + HEADERS: undefined, + ENCODE_PATH: undefined, }; diff --git a/src/api/services/DomainService.ts b/src/api/services/DomainService.ts index 0355af9..503b804 100644 --- a/src/api/services/DomainService.ts +++ b/src/api/services/DomainService.ts @@ -41,13 +41,13 @@ domain: string, * Update an existing record * @param request Request body * @param domain Domain - * @returns any OK + * @returns void * @throws ApiError */ public static putDomainRecord( request: models_SaveRowRequest, domain: string, -): CancelablePromise { +): CancelablePromise { return __request(OpenAPI, { method: 'PUT', url: '/domain/{domain}/record', @@ -70,7 +70,7 @@ domain: string, * Create a new record * @param request Request body * @param domain Domain - * @returns any OK + * @returns any Created * @throws ApiError */ public static postDomainRecord(