Skip to content

Commit

Permalink
Update api client
Browse files Browse the repository at this point in the history
  • Loading branch information
Loupeznik committed Nov 30, 2023
1 parent 7bd791f commit 93d2a31
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
38 changes: 19 additions & 19 deletions src/api/core/OpenAPI.ts
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ApiRequestOptions } from './ApiRequestOptions';
import type { ApiRequestOptions } from "./ApiRequestOptions";

type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;
type Headers = Record<string, string>;

export type OpenAPIConfig = {
BASE: string;
VERSION: string;
WITH_CREDENTIALS: boolean;
CREDENTIALS: 'include' | 'omit' | 'same-origin';
TOKEN?: string | Resolver<string>;
USERNAME?: string | Resolver<string>;
PASSWORD?: string | Resolver<string>;
HEADERS?: Headers | Resolver<Headers>;
ENCODE_PATH?: (path: string) => string;
BASE: string;
VERSION: string;
WITH_CREDENTIALS: boolean;
CREDENTIALS: "include" | "omit" | "same-origin";
TOKEN?: string | Resolver<string>;
USERNAME?: string | Resolver<string>;
PASSWORD?: string | Resolver<string>;
HEADERS?: Headers | Resolver<Headers>;
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,
};
6 changes: 3 additions & 3 deletions src/api/services/DomainService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any> {
): CancelablePromise<void> {
return __request(OpenAPI, {
method: 'PUT',
url: '/domain/{domain}/record',
Expand All @@ -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(
Expand Down

0 comments on commit 93d2a31

Please sign in to comment.