feat(solution): 발행 워커·버전 관리와 예약·미리보기 정리
상시 프리렌더와 중복 예약 안내를 없애고, 검수된 발행 버전을 보존한다. 미리보기는 실제 렌더 완료까지 스피너를 표시한다. 사이트 81건, 발행·롤백·서치콘솔 45건, 프로세스 수명 3건 통과. 빌더·사이트 빌드 및 compose 설정 검증 통과.
This commit is contained in:
1 parent
0f7d22750f
commit
f2087aad5e
207 files changed
+8424
-4429
No files matched your search
@@ -4,10 +4,7 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import {
|
||||
useMutation,
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
@@ -20,8 +17,8 @@ import type {
|
||||
UseMutationOptions,
|
||||
UseMutationResult,
|
||||
UseQueryOptions,
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
UseQueryResult,
|
||||
} from "@tanstack/react-query";
|
||||
|
||||
import type {
|
||||
HTTPValidationError,
|
||||
@@ -31,429 +28,576 @@ import type {
|
||||
ReqUpdateMe,
|
||||
ResLogin,
|
||||
ResMe,
|
||||
ResRefreshToken
|
||||
} from '.././model';
|
||||
|
||||
import { customFetch } from '../../mutator/custom-fetch';
|
||||
ResRefreshToken,
|
||||
} from ".././model";
|
||||
|
||||
import { customFetch } from "../../mutator/custom-fetch";
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* id/pw 로 로그인하고 JWT 토큰을 발급한다.
|
||||
* @summary 로그인
|
||||
*/
|
||||
export const login = (
|
||||
reqLogin: ReqLogin,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
reqLogin: ReqLogin,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResLogin>(
|
||||
{url: `/v1/auth/login`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqLogin, signal
|
||||
return customFetch<ResLogin>(
|
||||
{
|
||||
url: `/v1/auth/login`,
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqLogin,
|
||||
signal,
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getLoginMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof login>>,
|
||||
TError,
|
||||
{ data: ReqLogin },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof login>>,
|
||||
TError,
|
||||
{ data: ReqLogin },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["login"];
|
||||
const { mutation: mutationOptions, request: requestOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey }, request: undefined };
|
||||
|
||||
export const getLoginMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof login>>, TError,{data: ReqLogin}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof login>>, TError,{data: ReqLogin}, TContext> => {
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof login>>,
|
||||
{ data: ReqLogin }
|
||||
> = (props) => {
|
||||
const { data } = props ?? {};
|
||||
|
||||
const mutationKey = ['login'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
return login(data, requestOptions);
|
||||
};
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions };
|
||||
};
|
||||
|
||||
export type LoginMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof login>>
|
||||
>;
|
||||
export type LoginMutationBody = ReqLogin;
|
||||
export type LoginMutationError = void | HTTPValidationError;
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof login>>, {data: ReqLogin}> = (props) => {
|
||||
const {data} = props ?? {};
|
||||
|
||||
return login(data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type LoginMutationResult = NonNullable<Awaited<ReturnType<typeof login>>>
|
||||
export type LoginMutationBody = ReqLogin
|
||||
export type LoginMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
/**
|
||||
* @summary 로그인
|
||||
*/
|
||||
export const useLogin = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof login>>, TError,{data: ReqLogin}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof login>>,
|
||||
TError,
|
||||
{data: ReqLogin},
|
||||
TContext
|
||||
> => {
|
||||
export const useLogin = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof login>>,
|
||||
TError,
|
||||
{ data: ReqLogin },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof login>>,
|
||||
TError,
|
||||
{ data: ReqLogin },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getLoginMutationOptions(options);
|
||||
|
||||
const mutationOptions = getLoginMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
/**
|
||||
* id/pw 로 가입한다. 회사(테넌트) 1개가 함께 생기고, 성공하면 곧바로 로그인 토큰을 발급한다.
|
||||
* @summary 회원가입
|
||||
*/
|
||||
export const signup = (
|
||||
reqSignup: ReqSignup,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
reqSignup: ReqSignup,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResLogin>(
|
||||
{url: `/v1/auth/signup`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqSignup, signal
|
||||
return customFetch<ResLogin>(
|
||||
{
|
||||
url: `/v1/auth/signup`,
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqSignup,
|
||||
signal,
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getSignupMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof signup>>,
|
||||
TError,
|
||||
{ data: ReqSignup },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof signup>>,
|
||||
TError,
|
||||
{ data: ReqSignup },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["signup"];
|
||||
const { mutation: mutationOptions, request: requestOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey }, request: undefined };
|
||||
|
||||
export const getSignupMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof signup>>, TError,{data: ReqSignup}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof signup>>, TError,{data: ReqSignup}, TContext> => {
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof signup>>,
|
||||
{ data: ReqSignup }
|
||||
> = (props) => {
|
||||
const { data } = props ?? {};
|
||||
|
||||
const mutationKey = ['signup'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
return signup(data, requestOptions);
|
||||
};
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions };
|
||||
};
|
||||
|
||||
export type SignupMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof signup>>
|
||||
>;
|
||||
export type SignupMutationBody = ReqSignup;
|
||||
export type SignupMutationError = void | HTTPValidationError;
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof signup>>, {data: ReqSignup}> = (props) => {
|
||||
const {data} = props ?? {};
|
||||
|
||||
return signup(data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type SignupMutationResult = NonNullable<Awaited<ReturnType<typeof signup>>>
|
||||
export type SignupMutationBody = ReqSignup
|
||||
export type SignupMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
/**
|
||||
* @summary 회원가입
|
||||
*/
|
||||
export const useSignup = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof signup>>, TError,{data: ReqSignup}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof signup>>,
|
||||
TError,
|
||||
{data: ReqSignup},
|
||||
TContext
|
||||
> => {
|
||||
export const useSignup = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof signup>>,
|
||||
TError,
|
||||
{ data: ReqSignup },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof signup>>,
|
||||
TError,
|
||||
{ data: ReqSignup },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getSignupMutationOptions(options);
|
||||
|
||||
const mutationOptions = getSignupMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
/**
|
||||
* 구글 ID 토큰(GIS credential)을 검증하고 JWT 토큰을 발급한다. 처음 온 계정은 그 자리에서 만든다.
|
||||
* @summary 구글 로그인
|
||||
*/
|
||||
export const googleLogin = (
|
||||
reqGoogleLogin: ReqGoogleLogin,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
reqGoogleLogin: ReqGoogleLogin,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResLogin>(
|
||||
{url: `/v1/auth/google`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqGoogleLogin, signal
|
||||
return customFetch<ResLogin>(
|
||||
{
|
||||
url: `/v1/auth/google`,
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqGoogleLogin,
|
||||
signal,
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getGoogleLoginMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof googleLogin>>,
|
||||
TError,
|
||||
{ data: ReqGoogleLogin },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof googleLogin>>,
|
||||
TError,
|
||||
{ data: ReqGoogleLogin },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["googleLogin"];
|
||||
const { mutation: mutationOptions, request: requestOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey }, request: undefined };
|
||||
|
||||
export const getGoogleLoginMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof googleLogin>>, TError,{data: ReqGoogleLogin}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof googleLogin>>, TError,{data: ReqGoogleLogin}, TContext> => {
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof googleLogin>>,
|
||||
{ data: ReqGoogleLogin }
|
||||
> = (props) => {
|
||||
const { data } = props ?? {};
|
||||
|
||||
const mutationKey = ['googleLogin'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
return googleLogin(data, requestOptions);
|
||||
};
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions };
|
||||
};
|
||||
|
||||
export type GoogleLoginMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof googleLogin>>
|
||||
>;
|
||||
export type GoogleLoginMutationBody = ReqGoogleLogin;
|
||||
export type GoogleLoginMutationError = void | HTTPValidationError;
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof googleLogin>>, {data: ReqGoogleLogin}> = (props) => {
|
||||
const {data} = props ?? {};
|
||||
|
||||
return googleLogin(data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type GoogleLoginMutationResult = NonNullable<Awaited<ReturnType<typeof googleLogin>>>
|
||||
export type GoogleLoginMutationBody = ReqGoogleLogin
|
||||
export type GoogleLoginMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
/**
|
||||
* @summary 구글 로그인
|
||||
*/
|
||||
export const useGoogleLogin = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof googleLogin>>, TError,{data: ReqGoogleLogin}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof googleLogin>>,
|
||||
TError,
|
||||
{data: ReqGoogleLogin},
|
||||
TContext
|
||||
> => {
|
||||
export const useGoogleLogin = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof googleLogin>>,
|
||||
TError,
|
||||
{ data: ReqGoogleLogin },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof googleLogin>>,
|
||||
TError,
|
||||
{ data: ReqGoogleLogin },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getGoogleLoginMutationOptions(options);
|
||||
|
||||
const mutationOptions = getGoogleLoginMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
/**
|
||||
* refresh 토큰으로 access 토큰을 재발급한다.
|
||||
* @summary 액세스 토큰 갱신
|
||||
*/
|
||||
export const refreshToken = (
|
||||
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResRefreshToken>(
|
||||
{url: `/v1/auth/refresh_token`, method: 'POST', signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
return customFetch<ResRefreshToken>(
|
||||
{ url: `/v1/auth/refresh_token`, method: "POST", signal },
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getRefreshTokenMutationOptions = <
|
||||
TError = void,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof refreshToken>>,
|
||||
TError,
|
||||
void,
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof refreshToken>>,
|
||||
TError,
|
||||
void,
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["refreshToken"];
|
||||
const { mutation: mutationOptions, request: requestOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey }, request: undefined };
|
||||
|
||||
export const getRefreshTokenMutationOptions = <TError = void,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof refreshToken>>, TError,void, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof refreshToken>>, TError,void, TContext> => {
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof refreshToken>>,
|
||||
void
|
||||
> = () => {
|
||||
return refreshToken(requestOptions);
|
||||
};
|
||||
|
||||
const mutationKey = ['refreshToken'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
return { mutationFn, ...mutationOptions };
|
||||
};
|
||||
|
||||
|
||||
export type RefreshTokenMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof refreshToken>>
|
||||
>;
|
||||
|
||||
export type RefreshTokenMutationError = void;
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof refreshToken>>, void> = () => {
|
||||
|
||||
|
||||
return refreshToken(requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type RefreshTokenMutationResult = NonNullable<Awaited<ReturnType<typeof refreshToken>>>
|
||||
|
||||
export type RefreshTokenMutationError = void
|
||||
|
||||
/**
|
||||
/**
|
||||
* @summary 액세스 토큰 갱신
|
||||
*/
|
||||
export const useRefreshToken = <TError = void,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof refreshToken>>, TError,void, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof refreshToken>>,
|
||||
TError,
|
||||
void,
|
||||
TContext
|
||||
> => {
|
||||
export const useRefreshToken = <TError = void, TContext = unknown>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof refreshToken>>,
|
||||
TError,
|
||||
void,
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof refreshToken>>,
|
||||
TError,
|
||||
void,
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getRefreshTokenMutationOptions(options);
|
||||
|
||||
const mutationOptions = getRefreshTokenMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
/**
|
||||
* 유효한 access 토큰이 있어야 호출 가능. 토큰의 유저+회사 정보를 반환한다.
|
||||
* @summary 내 정보
|
||||
*/
|
||||
export const me = (
|
||||
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResMe>(
|
||||
{url: `/v1/auth/me`, method: 'GET', signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
return customFetch<ResMe>(
|
||||
{ url: `/v1/auth/me`, method: "GET", signal },
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getMeQueryKey = () => {
|
||||
return [
|
||||
`/v1/auth/me`
|
||||
] as const;
|
||||
}
|
||||
return [`/v1/auth/me`] as const;
|
||||
};
|
||||
|
||||
|
||||
export const getMeQueryOptions = <TData = Awaited<ReturnType<typeof me>>, TError = void>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
) => {
|
||||
export const getMeQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof me>>,
|
||||
TError = void,
|
||||
>(options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}) => {
|
||||
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
const queryKey = queryOptions?.queryKey ?? getMeQueryKey();
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getMeQueryKey();
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof me>>> = ({ signal }) =>
|
||||
me(requestOptions, signal);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof me>>> = ({ signal }) => me(requestOptions, signal);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type MeQueryResult = NonNullable<Awaited<ReturnType<typeof me>>>
|
||||
export type MeQueryError = void
|
||||
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof me>>,
|
||||
TError,
|
||||
TData
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
};
|
||||
|
||||
export type MeQueryResult = NonNullable<Awaited<ReturnType<typeof me>>>;
|
||||
export type MeQueryError = void;
|
||||
|
||||
export function useMe<TData = Awaited<ReturnType<typeof me>>, TError = void>(
|
||||
options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>> & Pick<
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof me>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof me>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useMe<TData = Awaited<ReturnType<typeof me>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>> & Pick<
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof me>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof me>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useMe<TData = Awaited<ReturnType<typeof me>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
/**
|
||||
* @summary 내 정보
|
||||
*/
|
||||
|
||||
export function useMe<TData = Awaited<ReturnType<typeof me>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getMeQueryOptions(options);
|
||||
|
||||
const queryOptions = getMeQueryOptions(options)
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 본인 이름/이메일/연락처/비밀번호를 수정한다(권한·소속·ID 변경 불가).
|
||||
* @summary 내 정보 수정
|
||||
*/
|
||||
export const updateMe = (
|
||||
reqUpdateMe: ReqUpdateMe,
|
||||
options?: SecondParameter<typeof customFetch>,) => {
|
||||
|
||||
|
||||
return customFetch<ResMe>(
|
||||
{url: `/v1/auth/me`, method: 'PATCH',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqUpdateMe
|
||||
reqUpdateMe: ReqUpdateMe,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
) => {
|
||||
return customFetch<ResMe>(
|
||||
{
|
||||
url: `/v1/auth/me`,
|
||||
method: "PATCH",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqUpdateMe,
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getUpdateMeMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof updateMe>>,
|
||||
TError,
|
||||
{ data: ReqUpdateMe },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof updateMe>>,
|
||||
TError,
|
||||
{ data: ReqUpdateMe },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["updateMe"];
|
||||
const { mutation: mutationOptions, request: requestOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey }, request: undefined };
|
||||
|
||||
export const getUpdateMeMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateMe>>, TError,{data: ReqUpdateMe}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof updateMe>>, TError,{data: ReqUpdateMe}, TContext> => {
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof updateMe>>,
|
||||
{ data: ReqUpdateMe }
|
||||
> = (props) => {
|
||||
const { data } = props ?? {};
|
||||
|
||||
const mutationKey = ['updateMe'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
return updateMe(data, requestOptions);
|
||||
};
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions };
|
||||
};
|
||||
|
||||
export type UpdateMeMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof updateMe>>
|
||||
>;
|
||||
export type UpdateMeMutationBody = ReqUpdateMe;
|
||||
export type UpdateMeMutationError = void | HTTPValidationError;
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof updateMe>>, {data: ReqUpdateMe}> = (props) => {
|
||||
const {data} = props ?? {};
|
||||
|
||||
return updateMe(data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type UpdateMeMutationResult = NonNullable<Awaited<ReturnType<typeof updateMe>>>
|
||||
export type UpdateMeMutationBody = ReqUpdateMe
|
||||
export type UpdateMeMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
/**
|
||||
* @summary 내 정보 수정
|
||||
*/
|
||||
export const useUpdateMe = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateMe>>, TError,{data: ReqUpdateMe}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof updateMe>>,
|
||||
TError,
|
||||
{data: ReqUpdateMe},
|
||||
TContext
|
||||
> => {
|
||||
export const useUpdateMe = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof updateMe>>,
|
||||
TError,
|
||||
{ data: ReqUpdateMe },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof updateMe>>,
|
||||
TError,
|
||||
{ data: ReqUpdateMe },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getUpdateMeMutationOptions(options);
|
||||
|
||||
const mutationOptions = getUpdateMeMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
@@ -4,9 +4,7 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import {
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
@@ -16,105 +14,163 @@ import type {
|
||||
QueryKey,
|
||||
UndefinedInitialDataOptions,
|
||||
UseQueryOptions,
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import { customFetch } from '../../mutator/custom-fetch';
|
||||
UseQueryResult,
|
||||
} from "@tanstack/react-query";
|
||||
|
||||
import { customFetch } from "../../mutator/custom-fetch";
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @summary Healthz
|
||||
*/
|
||||
export const healthzHealthzGet = (
|
||||
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<unknown>(
|
||||
{url: `/healthz`, method: 'GET', signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
return customFetch<unknown>(
|
||||
{ url: `/healthz`, method: "GET", signal },
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getHealthzHealthzGetQueryKey = () => {
|
||||
return [
|
||||
`/healthz`
|
||||
] as const;
|
||||
}
|
||||
return [`/healthz`] as const;
|
||||
};
|
||||
|
||||
|
||||
export const getHealthzHealthzGetQueryOptions = <TData = Awaited<ReturnType<typeof healthzHealthzGet>>, TError = void>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof healthzHealthzGet>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
) => {
|
||||
export const getHealthzHealthzGetQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError = void,
|
||||
>(options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}) => {
|
||||
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
const queryKey = queryOptions?.queryKey ?? getHealthzHealthzGetQueryKey();
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getHealthzHealthzGetQueryKey();
|
||||
const queryFn: QueryFunction<
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>
|
||||
> = ({ signal }) => healthzHealthzGet(requestOptions, signal);
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError,
|
||||
TData
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
};
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof healthzHealthzGet>>> = ({ signal }) => healthzHealthzGet(requestOptions, signal);
|
||||
export type HealthzHealthzGetQueryResult = NonNullable<
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>
|
||||
>;
|
||||
export type HealthzHealthzGetQueryError = void;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof healthzHealthzGet>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type HealthzHealthzGetQueryResult = NonNullable<Awaited<ReturnType<typeof healthzHealthzGet>>>
|
||||
export type HealthzHealthzGetQueryError = void
|
||||
|
||||
|
||||
export function useHealthzHealthzGet<TData = Awaited<ReturnType<typeof healthzHealthzGet>>, TError = void>(
|
||||
options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof healthzHealthzGet>>, TError, TData>> & Pick<
|
||||
export function useHealthzHealthzGet<
|
||||
TData = Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError = void,
|
||||
>(
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
> &
|
||||
Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useHealthzHealthzGet<TData = Awaited<ReturnType<typeof healthzHealthzGet>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof healthzHealthzGet>>, TError, TData>> & Pick<
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useHealthzHealthzGet<
|
||||
TData = Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError = void,
|
||||
>(
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
> &
|
||||
Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useHealthzHealthzGet<TData = Awaited<ReturnType<typeof healthzHealthzGet>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof healthzHealthzGet>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useHealthzHealthzGet<
|
||||
TData = Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError = void,
|
||||
>(
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
/**
|
||||
* @summary Healthz
|
||||
*/
|
||||
|
||||
export function useHealthzHealthzGet<TData = Awaited<ReturnType<typeof healthzHealthzGet>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof healthzHealthzGet>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
export function useHealthzHealthzGet<
|
||||
TData = Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError = void,
|
||||
>(
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getHealthzHealthzGetQueryOptions(options);
|
||||
|
||||
const queryOptions = getHealthzHealthzGetQueryOptions(options)
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -4,10 +4,7 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import {
|
||||
useMutation,
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
@@ -20,8 +17,8 @@ import type {
|
||||
UseMutationOptions,
|
||||
UseMutationResult,
|
||||
UseQueryOptions,
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
UseQueryResult,
|
||||
} from "@tanstack/react-query";
|
||||
|
||||
import type {
|
||||
HTTPValidationError,
|
||||
@@ -32,407 +29,595 @@ import type {
|
||||
ResCategorySchema,
|
||||
ResExtractFacts,
|
||||
ResFact,
|
||||
ResFactList
|
||||
} from '.././model';
|
||||
|
||||
import { customFetch } from '../../mutator/custom-fetch';
|
||||
ResFactList,
|
||||
} from ".././model";
|
||||
|
||||
import { customFetch } from "../../mutator/custom-fetch";
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 이 사업장의 업종에 존재하는 fact 필드 정의. 관리 화면이 입력 폼을 그리는 데 쓴다.
|
||||
* @summary 업종 fact 스키마
|
||||
*/
|
||||
export const getSchema = (
|
||||
placeId: string,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
placeId: string,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResCategorySchema>(
|
||||
{url: `/v1/place/${placeId}/fact/schema`, method: 'GET', signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
return customFetch<ResCategorySchema>(
|
||||
{ url: `/v1/place/${placeId}/fact/schema`, method: "GET", signal },
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getGetSchemaQueryKey = (placeId?: string) => {
|
||||
return [`/v1/place/${placeId}/fact/schema`] as const;
|
||||
};
|
||||
|
||||
|
||||
export const getGetSchemaQueryKey = (placeId?: string,) => {
|
||||
return [
|
||||
`/v1/place/${placeId}/fact/schema`
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetSchemaQueryOptions = <TData = Awaited<ReturnType<typeof getSchema>>, TError = void | HTTPValidationError>(placeId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getSchema>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
export const getGetSchemaQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof getSchema>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getSchema>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
) => {
|
||||
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
const queryKey = queryOptions?.queryKey ?? getGetSchemaQueryKey(placeId);
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetSchemaQueryKey(placeId);
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getSchema>>> = ({
|
||||
signal,
|
||||
}) => getSchema(placeId, requestOptions, signal);
|
||||
|
||||
|
||||
return {
|
||||
queryKey,
|
||||
queryFn,
|
||||
enabled: !!placeId,
|
||||
...queryOptions,
|
||||
} as UseQueryOptions<Awaited<ReturnType<typeof getSchema>>, TError, TData> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
};
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getSchema>>> = ({ signal }) => getSchema(placeId, requestOptions, signal);
|
||||
export type GetSchemaQueryResult = NonNullable<
|
||||
Awaited<ReturnType<typeof getSchema>>
|
||||
>;
|
||||
export type GetSchemaQueryError = void | HTTPValidationError;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, enabled: !!(placeId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getSchema>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type GetSchemaQueryResult = NonNullable<Awaited<ReturnType<typeof getSchema>>>
|
||||
export type GetSchemaQueryError = void | HTTPValidationError
|
||||
|
||||
|
||||
export function useGetSchema<TData = Awaited<ReturnType<typeof getSchema>>, TError = void | HTTPValidationError>(
|
||||
placeId: string, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getSchema>>, TError, TData>> & Pick<
|
||||
export function useGetSchema<
|
||||
TData = Awaited<ReturnType<typeof getSchema>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getSchema>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getSchema>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getSchema>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetSchema<TData = Awaited<ReturnType<typeof getSchema>>, TError = void | HTTPValidationError>(
|
||||
placeId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getSchema>>, TError, TData>> & Pick<
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useGetSchema<
|
||||
TData = Awaited<ReturnType<typeof getSchema>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getSchema>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getSchema>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getSchema>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetSchema<TData = Awaited<ReturnType<typeof getSchema>>, TError = void | HTTPValidationError>(
|
||||
placeId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getSchema>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useGetSchema<
|
||||
TData = Awaited<ReturnType<typeof getSchema>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getSchema>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
/**
|
||||
* @summary 업종 fact 스키마
|
||||
*/
|
||||
|
||||
export function useGetSchema<TData = Awaited<ReturnType<typeof getSchema>>, TError = void | HTTPValidationError>(
|
||||
placeId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getSchema>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
export function useGetSchema<
|
||||
TData = Awaited<ReturnType<typeof getSchema>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getSchema>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getGetSchemaQueryOptions(placeId, options);
|
||||
|
||||
const queryOptions = getGetSchemaQueryOptions(placeId,options)
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* publishable_only=true 면 ★ 사이트에 나갈 수 있는 것(VERIFIED·CORRECTED)만.
|
||||
* @summary fact 목록
|
||||
*/
|
||||
export const listFacts = (
|
||||
placeId: string,
|
||||
params?: ListFactsParams,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
placeId: string,
|
||||
params?: ListFactsParams,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResFactList>(
|
||||
{url: `/v1/place/${placeId}/fact/list`, method: 'GET',
|
||||
params, signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
return customFetch<ResFactList>(
|
||||
{ url: `/v1/place/${placeId}/fact/list`, method: "GET", params, signal },
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
|
||||
export const getListFactsQueryKey = (placeId?: string,
|
||||
params?: ListFactsParams,) => {
|
||||
return [
|
||||
`/v1/place/${placeId}/fact/list`, ...(params ? [params]: [])
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getListFactsQueryOptions = <TData = Awaited<ReturnType<typeof listFacts>>, TError = void | HTTPValidationError>(placeId: string,
|
||||
params?: ListFactsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listFacts>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
export const getListFactsQueryKey = (
|
||||
placeId?: string,
|
||||
params?: ListFactsParams,
|
||||
) => {
|
||||
return [
|
||||
`/v1/place/${placeId}/fact/list`,
|
||||
...(params ? [params] : []),
|
||||
] as const;
|
||||
};
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
export const getListFactsQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof listFacts>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params?: ListFactsParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listFacts>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
) => {
|
||||
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getListFactsQueryKey(placeId,params);
|
||||
const queryKey =
|
||||
queryOptions?.queryKey ?? getListFactsQueryKey(placeId, params);
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof listFacts>>> = ({
|
||||
signal,
|
||||
}) => listFacts(placeId, params, requestOptions, signal);
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof listFacts>>> = ({ signal }) => listFacts(placeId,params, requestOptions, signal);
|
||||
return {
|
||||
queryKey,
|
||||
queryFn,
|
||||
enabled: !!placeId,
|
||||
...queryOptions,
|
||||
} as UseQueryOptions<Awaited<ReturnType<typeof listFacts>>, TError, TData> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
export type ListFactsQueryResult = NonNullable<
|
||||
Awaited<ReturnType<typeof listFacts>>
|
||||
>;
|
||||
export type ListFactsQueryError = void | HTTPValidationError;
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, enabled: !!(placeId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listFacts>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type ListFactsQueryResult = NonNullable<Awaited<ReturnType<typeof listFacts>>>
|
||||
export type ListFactsQueryError = void | HTTPValidationError
|
||||
|
||||
|
||||
export function useListFacts<TData = Awaited<ReturnType<typeof listFacts>>, TError = void | HTTPValidationError>(
|
||||
placeId: string,
|
||||
params: undefined | ListFactsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listFacts>>, TError, TData>> & Pick<
|
||||
export function useListFacts<
|
||||
TData = Awaited<ReturnType<typeof listFacts>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params: undefined | ListFactsParams,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listFacts>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof listFacts>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof listFacts>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useListFacts<TData = Awaited<ReturnType<typeof listFacts>>, TError = void | HTTPValidationError>(
|
||||
placeId: string,
|
||||
params?: ListFactsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listFacts>>, TError, TData>> & Pick<
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useListFacts<
|
||||
TData = Awaited<ReturnType<typeof listFacts>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params?: ListFactsParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listFacts>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof listFacts>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof listFacts>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useListFacts<TData = Awaited<ReturnType<typeof listFacts>>, TError = void | HTTPValidationError>(
|
||||
placeId: string,
|
||||
params?: ListFactsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listFacts>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useListFacts<
|
||||
TData = Awaited<ReturnType<typeof listFacts>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params?: ListFactsParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listFacts>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
/**
|
||||
* @summary fact 목록
|
||||
*/
|
||||
|
||||
export function useListFacts<TData = Awaited<ReturnType<typeof listFacts>>, TError = void | HTTPValidationError>(
|
||||
placeId: string,
|
||||
params?: ListFactsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listFacts>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
export function useListFacts<
|
||||
TData = Awaited<ReturnType<typeof listFacts>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params?: ListFactsParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listFacts>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getListFactsQueryOptions(placeId, params, options);
|
||||
|
||||
const queryOptions = getListFactsQueryOptions(placeId,params,options)
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 같은 key 의 활성 fact 는 EXPIRED 로 밀리고 새 행이 들어간다(값 이력 보존). ★ 자동 수집(api/crawl/llm)은 사장님 수정본(CORRECTED)을 덮어쓸 수 없다.
|
||||
* @summary fact 기록
|
||||
*/
|
||||
export const upsertFact = (
|
||||
placeId: string,
|
||||
reqUpsertFact: ReqUpsertFact,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
placeId: string,
|
||||
reqUpsertFact: ReqUpsertFact,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResFact>(
|
||||
{url: `/v1/place/${placeId}/fact`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqUpsertFact, signal
|
||||
return customFetch<ResFact>(
|
||||
{
|
||||
url: `/v1/place/${placeId}/fact`,
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqUpsertFact,
|
||||
signal,
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getUpsertFactMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof upsertFact>>,
|
||||
TError,
|
||||
{ placeId: string; data: ReqUpsertFact },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof upsertFact>>,
|
||||
TError,
|
||||
{ placeId: string; data: ReqUpsertFact },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["upsertFact"];
|
||||
const { mutation: mutationOptions, request: requestOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey }, request: undefined };
|
||||
|
||||
export const getUpsertFactMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof upsertFact>>, TError,{placeId: string;data: ReqUpsertFact}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof upsertFact>>, TError,{placeId: string;data: ReqUpsertFact}, TContext> => {
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof upsertFact>>,
|
||||
{ placeId: string; data: ReqUpsertFact }
|
||||
> = (props) => {
|
||||
const { placeId, data } = props ?? {};
|
||||
|
||||
const mutationKey = ['upsertFact'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
return upsertFact(placeId, data, requestOptions);
|
||||
};
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions };
|
||||
};
|
||||
|
||||
export type UpsertFactMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof upsertFact>>
|
||||
>;
|
||||
export type UpsertFactMutationBody = ReqUpsertFact;
|
||||
export type UpsertFactMutationError = void | HTTPValidationError;
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof upsertFact>>, {placeId: string;data: ReqUpsertFact}> = (props) => {
|
||||
const {placeId,data} = props ?? {};
|
||||
|
||||
return upsertFact(placeId,data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type UpsertFactMutationResult = NonNullable<Awaited<ReturnType<typeof upsertFact>>>
|
||||
export type UpsertFactMutationBody = ReqUpsertFact
|
||||
export type UpsertFactMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
/**
|
||||
* @summary fact 기록
|
||||
*/
|
||||
export const useUpsertFact = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof upsertFact>>, TError,{placeId: string;data: ReqUpsertFact}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof upsertFact>>,
|
||||
TError,
|
||||
{placeId: string;data: ReqUpsertFact},
|
||||
TContext
|
||||
> => {
|
||||
export const useUpsertFact = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof upsertFact>>,
|
||||
TError,
|
||||
{ placeId: string; data: ReqUpsertFact },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof upsertFact>>,
|
||||
TError,
|
||||
{ placeId: string; data: ReqUpsertFact },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getUpsertFactMutationOptions(options);
|
||||
|
||||
const mutationOptions = getUpsertFactMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
/**
|
||||
* 허용 전이만 통과한다(FACT_STATUS_TRANSITIONS). CORRECTED 로 갈 때는 value 가 필수다.
|
||||
* @summary 검증 상태 전이
|
||||
*/
|
||||
export const transitionFact = (
|
||||
placeId: string,
|
||||
factId: string,
|
||||
reqTransitionFact: ReqTransitionFact,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
placeId: string,
|
||||
factId: string,
|
||||
reqTransitionFact: ReqTransitionFact,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResFact>(
|
||||
{url: `/v1/place/${placeId}/fact/${factId}/transition`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqTransitionFact, signal
|
||||
return customFetch<ResFact>(
|
||||
{
|
||||
url: `/v1/place/${placeId}/fact/${factId}/transition`,
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqTransitionFact,
|
||||
signal,
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getTransitionFactMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof transitionFact>>,
|
||||
TError,
|
||||
{ placeId: string; factId: string; data: ReqTransitionFact },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof transitionFact>>,
|
||||
TError,
|
||||
{ placeId: string; factId: string; data: ReqTransitionFact },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["transitionFact"];
|
||||
const { mutation: mutationOptions, request: requestOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey }, request: undefined };
|
||||
|
||||
export const getTransitionFactMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof transitionFact>>, TError,{placeId: string;factId: string;data: ReqTransitionFact}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof transitionFact>>, TError,{placeId: string;factId: string;data: ReqTransitionFact}, TContext> => {
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof transitionFact>>,
|
||||
{ placeId: string; factId: string; data: ReqTransitionFact }
|
||||
> = (props) => {
|
||||
const { placeId, factId, data } = props ?? {};
|
||||
|
||||
const mutationKey = ['transitionFact'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
return transitionFact(placeId, factId, data, requestOptions);
|
||||
};
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions };
|
||||
};
|
||||
|
||||
export type TransitionFactMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof transitionFact>>
|
||||
>;
|
||||
export type TransitionFactMutationBody = ReqTransitionFact;
|
||||
export type TransitionFactMutationError = void | HTTPValidationError;
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof transitionFact>>, {placeId: string;factId: string;data: ReqTransitionFact}> = (props) => {
|
||||
const {placeId,factId,data} = props ?? {};
|
||||
|
||||
return transitionFact(placeId,factId,data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type TransitionFactMutationResult = NonNullable<Awaited<ReturnType<typeof transitionFact>>>
|
||||
export type TransitionFactMutationBody = ReqTransitionFact
|
||||
export type TransitionFactMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
/**
|
||||
* @summary 검증 상태 전이
|
||||
*/
|
||||
export const useTransitionFact = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof transitionFact>>, TError,{placeId: string;factId: string;data: ReqTransitionFact}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof transitionFact>>,
|
||||
TError,
|
||||
{placeId: string;factId: string;data: ReqTransitionFact},
|
||||
TContext
|
||||
> => {
|
||||
export const useTransitionFact = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof transitionFact>>,
|
||||
TError,
|
||||
{ placeId: string; factId: string; data: ReqTransitionFact },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof transitionFact>>,
|
||||
TError,
|
||||
{ placeId: string; factId: string; data: ReqTransitionFact },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getTransitionFactMutationOptions(options);
|
||||
|
||||
const mutationOptions = getTransitionFactMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
/**
|
||||
* 사장님이 붙여넣은 소개글·안내문에서 업종 스키마 fact 를 뽑는다. ★ 뽑은 값의 **근거 문장이 원문에 실제로 있는지 대조**해 통과한 것만 저장한다. 저장된 값은 전부 후보(UNVERIFIED)라 사장님이 확인해야 사이트에 나간다. 버려진 항목은 사유와 함께 돌려준다.
|
||||
* @summary 붙여넣은 텍스트에서 fact 추출
|
||||
*/
|
||||
export const extractFactsFromText = (
|
||||
placeId: string,
|
||||
reqExtractFacts: ReqExtractFacts,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
placeId: string,
|
||||
reqExtractFacts: ReqExtractFacts,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResExtractFacts>(
|
||||
{url: `/v1/place/${placeId}/fact/extract`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqExtractFacts, signal
|
||||
return customFetch<ResExtractFacts>(
|
||||
{
|
||||
url: `/v1/place/${placeId}/fact/extract`,
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqExtractFacts,
|
||||
signal,
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getExtractFactsFromTextMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof extractFactsFromText>>,
|
||||
TError,
|
||||
{ placeId: string; data: ReqExtractFacts },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof extractFactsFromText>>,
|
||||
TError,
|
||||
{ placeId: string; data: ReqExtractFacts },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["extractFactsFromText"];
|
||||
const { mutation: mutationOptions, request: requestOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey }, request: undefined };
|
||||
|
||||
export const getExtractFactsFromTextMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof extractFactsFromText>>, TError,{placeId: string;data: ReqExtractFacts}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof extractFactsFromText>>, TError,{placeId: string;data: ReqExtractFacts}, TContext> => {
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof extractFactsFromText>>,
|
||||
{ placeId: string; data: ReqExtractFacts }
|
||||
> = (props) => {
|
||||
const { placeId, data } = props ?? {};
|
||||
|
||||
const mutationKey = ['extractFactsFromText'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
return extractFactsFromText(placeId, data, requestOptions);
|
||||
};
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions };
|
||||
};
|
||||
|
||||
export type ExtractFactsFromTextMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof extractFactsFromText>>
|
||||
>;
|
||||
export type ExtractFactsFromTextMutationBody = ReqExtractFacts;
|
||||
export type ExtractFactsFromTextMutationError = void | HTTPValidationError;
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof extractFactsFromText>>, {placeId: string;data: ReqExtractFacts}> = (props) => {
|
||||
const {placeId,data} = props ?? {};
|
||||
|
||||
return extractFactsFromText(placeId,data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type ExtractFactsFromTextMutationResult = NonNullable<Awaited<ReturnType<typeof extractFactsFromText>>>
|
||||
export type ExtractFactsFromTextMutationBody = ReqExtractFacts
|
||||
export type ExtractFactsFromTextMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
/**
|
||||
* @summary 붙여넣은 텍스트에서 fact 추출
|
||||
*/
|
||||
export const useExtractFactsFromText = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof extractFactsFromText>>, TError,{placeId: string;data: ReqExtractFacts}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof extractFactsFromText>>,
|
||||
TError,
|
||||
{placeId: string;data: ReqExtractFacts},
|
||||
TContext
|
||||
> => {
|
||||
export const useExtractFactsFromText = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof extractFactsFromText>>,
|
||||
TError,
|
||||
{ placeId: string; data: ReqExtractFacts },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof extractFactsFromText>>,
|
||||
TError,
|
||||
{ placeId: string; data: ReqExtractFacts },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getExtractFactsFromTextMutationOptions(options);
|
||||
|
||||
const mutationOptions = getExtractFactsFromTextMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
@@ -4,10 +4,7 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import {
|
||||
useMutation,
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
@@ -20,8 +17,8 @@ import type {
|
||||
UseMutationOptions,
|
||||
UseMutationResult,
|
||||
UseQueryOptions,
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
UseQueryResult,
|
||||
} from "@tanstack/react-query";
|
||||
|
||||
import type {
|
||||
HTTPValidationError,
|
||||
@@ -29,248 +26,356 @@ import type {
|
||||
ReqCreateFaq,
|
||||
ReqTransitionFaq,
|
||||
ResFaq,
|
||||
ResFaqList
|
||||
} from '.././model';
|
||||
|
||||
import { customFetch } from '../../mutator/custom-fetch';
|
||||
ResFaqList,
|
||||
} from ".././model";
|
||||
|
||||
import { customFetch } from "../../mutator/custom-fetch";
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* publishable_only=true 면 ★ 사이트에 나갈 수 있는 것(VERIFIED·CORRECTED)만. 기본은 승인 대기(UNVERIFIED)까지 함께 준다 — 승인할 대상을 봐야 하기 때문이다.
|
||||
* @summary FAQ 목록
|
||||
*/
|
||||
export const listFaqs = (
|
||||
placeId: string,
|
||||
params?: ListFaqsParams,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
placeId: string,
|
||||
params?: ListFaqsParams,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResFaqList>(
|
||||
{url: `/v1/place/${placeId}/faq/list`, method: 'GET',
|
||||
params, signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
return customFetch<ResFaqList>(
|
||||
{ url: `/v1/place/${placeId}/faq/list`, method: "GET", params, signal },
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
|
||||
export const getListFaqsQueryKey = (placeId?: string,
|
||||
params?: ListFaqsParams,) => {
|
||||
return [
|
||||
`/v1/place/${placeId}/faq/list`, ...(params ? [params]: [])
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getListFaqsQueryOptions = <TData = Awaited<ReturnType<typeof listFaqs>>, TError = void | HTTPValidationError>(placeId: string,
|
||||
params?: ListFaqsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listFaqs>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
export const getListFaqsQueryKey = (
|
||||
placeId?: string,
|
||||
params?: ListFaqsParams,
|
||||
) => {
|
||||
return [
|
||||
`/v1/place/${placeId}/faq/list`,
|
||||
...(params ? [params] : []),
|
||||
] as const;
|
||||
};
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
export const getListFaqsQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof listFaqs>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params?: ListFaqsParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listFaqs>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
) => {
|
||||
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getListFaqsQueryKey(placeId,params);
|
||||
const queryKey =
|
||||
queryOptions?.queryKey ?? getListFaqsQueryKey(placeId, params);
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof listFaqs>>> = ({
|
||||
signal,
|
||||
}) => listFaqs(placeId, params, requestOptions, signal);
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof listFaqs>>> = ({ signal }) => listFaqs(placeId,params, requestOptions, signal);
|
||||
return {
|
||||
queryKey,
|
||||
queryFn,
|
||||
enabled: !!placeId,
|
||||
...queryOptions,
|
||||
} as UseQueryOptions<Awaited<ReturnType<typeof listFaqs>>, TError, TData> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
export type ListFaqsQueryResult = NonNullable<
|
||||
Awaited<ReturnType<typeof listFaqs>>
|
||||
>;
|
||||
export type ListFaqsQueryError = void | HTTPValidationError;
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, enabled: !!(placeId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listFaqs>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type ListFaqsQueryResult = NonNullable<Awaited<ReturnType<typeof listFaqs>>>
|
||||
export type ListFaqsQueryError = void | HTTPValidationError
|
||||
|
||||
|
||||
export function useListFaqs<TData = Awaited<ReturnType<typeof listFaqs>>, TError = void | HTTPValidationError>(
|
||||
placeId: string,
|
||||
params: undefined | ListFaqsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listFaqs>>, TError, TData>> & Pick<
|
||||
export function useListFaqs<
|
||||
TData = Awaited<ReturnType<typeof listFaqs>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params: undefined | ListFaqsParams,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listFaqs>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof listFaqs>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof listFaqs>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useListFaqs<TData = Awaited<ReturnType<typeof listFaqs>>, TError = void | HTTPValidationError>(
|
||||
placeId: string,
|
||||
params?: ListFaqsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listFaqs>>, TError, TData>> & Pick<
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useListFaqs<
|
||||
TData = Awaited<ReturnType<typeof listFaqs>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params?: ListFaqsParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listFaqs>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof listFaqs>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof listFaqs>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useListFaqs<TData = Awaited<ReturnType<typeof listFaqs>>, TError = void | HTTPValidationError>(
|
||||
placeId: string,
|
||||
params?: ListFaqsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listFaqs>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useListFaqs<
|
||||
TData = Awaited<ReturnType<typeof listFaqs>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params?: ListFaqsParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listFaqs>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
/**
|
||||
* @summary FAQ 목록
|
||||
*/
|
||||
|
||||
export function useListFaqs<TData = Awaited<ReturnType<typeof listFaqs>>, TError = void | HTTPValidationError>(
|
||||
placeId: string,
|
||||
params?: ListFaqsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listFaqs>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
export function useListFaqs<
|
||||
TData = Awaited<ReturnType<typeof listFaqs>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params?: ListFaqsParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listFaqs>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getListFaqsQueryOptions(placeId, params, options);
|
||||
|
||||
const queryOptions = getListFaqsQueryOptions(placeId,params,options)
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 사장님이 직접 쓴 FAQ. fact 의 owner 입력과 같이 바로 노출값(VERIFIED)이 된다 — 사람이 곧 출처다. 출처(generated_by)는 서버가 OWNER 로 고정한다.
|
||||
* @summary FAQ 직접 추가
|
||||
*/
|
||||
export const createFaq = (
|
||||
placeId: string,
|
||||
reqCreateFaq: ReqCreateFaq,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
placeId: string,
|
||||
reqCreateFaq: ReqCreateFaq,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResFaq>(
|
||||
{url: `/v1/place/${placeId}/faq`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqCreateFaq, signal
|
||||
return customFetch<ResFaq>(
|
||||
{
|
||||
url: `/v1/place/${placeId}/faq`,
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqCreateFaq,
|
||||
signal,
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getCreateFaqMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof createFaq>>,
|
||||
TError,
|
||||
{ placeId: string; data: ReqCreateFaq },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof createFaq>>,
|
||||
TError,
|
||||
{ placeId: string; data: ReqCreateFaq },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["createFaq"];
|
||||
const { mutation: mutationOptions, request: requestOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey }, request: undefined };
|
||||
|
||||
export const getCreateFaqMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createFaq>>, TError,{placeId: string;data: ReqCreateFaq}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof createFaq>>, TError,{placeId: string;data: ReqCreateFaq}, TContext> => {
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof createFaq>>,
|
||||
{ placeId: string; data: ReqCreateFaq }
|
||||
> = (props) => {
|
||||
const { placeId, data } = props ?? {};
|
||||
|
||||
const mutationKey = ['createFaq'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
return createFaq(placeId, data, requestOptions);
|
||||
};
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions };
|
||||
};
|
||||
|
||||
export type CreateFaqMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof createFaq>>
|
||||
>;
|
||||
export type CreateFaqMutationBody = ReqCreateFaq;
|
||||
export type CreateFaqMutationError = void | HTTPValidationError;
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof createFaq>>, {placeId: string;data: ReqCreateFaq}> = (props) => {
|
||||
const {placeId,data} = props ?? {};
|
||||
|
||||
return createFaq(placeId,data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type CreateFaqMutationResult = NonNullable<Awaited<ReturnType<typeof createFaq>>>
|
||||
export type CreateFaqMutationBody = ReqCreateFaq
|
||||
export type CreateFaqMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
/**
|
||||
* @summary FAQ 직접 추가
|
||||
*/
|
||||
export const useCreateFaq = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createFaq>>, TError,{placeId: string;data: ReqCreateFaq}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof createFaq>>,
|
||||
TError,
|
||||
{placeId: string;data: ReqCreateFaq},
|
||||
TContext
|
||||
> => {
|
||||
export const useCreateFaq = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof createFaq>>,
|
||||
TError,
|
||||
{ placeId: string; data: ReqCreateFaq },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof createFaq>>,
|
||||
TError,
|
||||
{ placeId: string; data: ReqCreateFaq },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getCreateFaqMutationOptions(options);
|
||||
|
||||
const mutationOptions = getCreateFaqMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
/**
|
||||
* 허용 전이만 통과한다(FACT_STATUS_TRANSITIONS — fact 와 같은 표). CORRECTED 로 갈 때는 고친 question/answer 중 하나 이상이 필요하고, 그 뒤로는 ★ 잠긴 상태라 재생성이 덮어쓰지 못한다.
|
||||
* @summary 검증 상태 전이(승인·정정·반려)
|
||||
*/
|
||||
export const transitionFaq = (
|
||||
placeId: string,
|
||||
faqId: string,
|
||||
reqTransitionFaq: ReqTransitionFaq,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
placeId: string,
|
||||
faqId: string,
|
||||
reqTransitionFaq: ReqTransitionFaq,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResFaq>(
|
||||
{url: `/v1/place/${placeId}/faq/${faqId}/transition`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqTransitionFaq, signal
|
||||
return customFetch<ResFaq>(
|
||||
{
|
||||
url: `/v1/place/${placeId}/faq/${faqId}/transition`,
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqTransitionFaq,
|
||||
signal,
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getTransitionFaqMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof transitionFaq>>,
|
||||
TError,
|
||||
{ placeId: string; faqId: string; data: ReqTransitionFaq },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof transitionFaq>>,
|
||||
TError,
|
||||
{ placeId: string; faqId: string; data: ReqTransitionFaq },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["transitionFaq"];
|
||||
const { mutation: mutationOptions, request: requestOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey }, request: undefined };
|
||||
|
||||
export const getTransitionFaqMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof transitionFaq>>, TError,{placeId: string;faqId: string;data: ReqTransitionFaq}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof transitionFaq>>, TError,{placeId: string;faqId: string;data: ReqTransitionFaq}, TContext> => {
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof transitionFaq>>,
|
||||
{ placeId: string; faqId: string; data: ReqTransitionFaq }
|
||||
> = (props) => {
|
||||
const { placeId, faqId, data } = props ?? {};
|
||||
|
||||
const mutationKey = ['transitionFaq'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
return transitionFaq(placeId, faqId, data, requestOptions);
|
||||
};
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions };
|
||||
};
|
||||
|
||||
export type TransitionFaqMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof transitionFaq>>
|
||||
>;
|
||||
export type TransitionFaqMutationBody = ReqTransitionFaq;
|
||||
export type TransitionFaqMutationError = void | HTTPValidationError;
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof transitionFaq>>, {placeId: string;faqId: string;data: ReqTransitionFaq}> = (props) => {
|
||||
const {placeId,faqId,data} = props ?? {};
|
||||
|
||||
return transitionFaq(placeId,faqId,data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type TransitionFaqMutationResult = NonNullable<Awaited<ReturnType<typeof transitionFaq>>>
|
||||
export type TransitionFaqMutationBody = ReqTransitionFaq
|
||||
export type TransitionFaqMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
/**
|
||||
* @summary 검증 상태 전이(승인·정정·반려)
|
||||
*/
|
||||
export const useTransitionFaq = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof transitionFaq>>, TError,{placeId: string;faqId: string;data: ReqTransitionFaq}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof transitionFaq>>,
|
||||
TError,
|
||||
{placeId: string;faqId: string;data: ReqTransitionFaq},
|
||||
TContext
|
||||
> => {
|
||||
export const useTransitionFaq = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof transitionFaq>>,
|
||||
TError,
|
||||
{ placeId: string; faqId: string; data: ReqTransitionFaq },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof transitionFaq>>,
|
||||
TError,
|
||||
{ placeId: string; faqId: string; data: ReqTransitionFaq },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getTransitionFaqMutationOptions(options);
|
||||
|
||||
const mutationOptions = getTransitionFaqMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
@@ -0,0 +1,166 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
DefinedUseQueryResult,
|
||||
QueryClient,
|
||||
QueryFunction,
|
||||
QueryKey,
|
||||
UndefinedInitialDataOptions,
|
||||
UseQueryOptions,
|
||||
UseQueryResult,
|
||||
} from "@tanstack/react-query";
|
||||
|
||||
import type { HTTPValidationError, RelayParams } from ".././model";
|
||||
|
||||
import { customFetch } from "../../mutator/custom-fetch";
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
/**
|
||||
* 인증을 요구하지 않는다. 발행본은 로그인 없이 열리는 정적 페이지이고, 여기서 나가는
|
||||
것은 **그 페이지가 이미 화면에 싣고 있는 사진**뿐이다(allowlist 가 그걸 보장한다).
|
||||
* @summary 사진 중계 — 캔버스 오염을 피하려고 같은 오리진으로 흘려보낸다
|
||||
*/
|
||||
export const relay = (
|
||||
params: RelayParams,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
return customFetch<unknown>(
|
||||
{ url: `/v1/image/relay`, method: "GET", params, signal },
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getRelayQueryKey = (params?: RelayParams) => {
|
||||
return [`/v1/image/relay`, ...(params ? [params] : [])] as const;
|
||||
};
|
||||
|
||||
export const getRelayQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof relay>>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params: RelayParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof relay>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
) => {
|
||||
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getRelayQueryKey(params);
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof relay>>> = ({
|
||||
signal,
|
||||
}) => relay(params, requestOptions, signal);
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof relay>>,
|
||||
TError,
|
||||
TData
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
};
|
||||
|
||||
export type RelayQueryResult = NonNullable<Awaited<ReturnType<typeof relay>>>;
|
||||
export type RelayQueryError = HTTPValidationError;
|
||||
|
||||
export function useRelay<
|
||||
TData = Awaited<ReturnType<typeof relay>>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params: RelayParams,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof relay>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof relay>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof relay>>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useRelay<
|
||||
TData = Awaited<ReturnType<typeof relay>>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params: RelayParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof relay>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof relay>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof relay>>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useRelay<
|
||||
TData = Awaited<ReturnType<typeof relay>>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params: RelayParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof relay>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
/**
|
||||
* @summary 사진 중계 — 캔버스 오염을 피하려고 같은 오리진으로 흘려보낸다
|
||||
*/
|
||||
|
||||
export function useRelay<
|
||||
TData = Awaited<ReturnType<typeof relay>>,
|
||||
TError = HTTPValidationError,
|
||||
>(
|
||||
params: RelayParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof relay>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getRelayQueryOptions(params, options);
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
}
|
||||
@@ -4,10 +4,7 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import {
|
||||
useMutation,
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
@@ -20,268 +17,374 @@ import type {
|
||||
UseMutationOptions,
|
||||
UseMutationResult,
|
||||
UseQueryOptions,
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
UseQueryResult,
|
||||
} from "@tanstack/react-query";
|
||||
|
||||
import type {
|
||||
HTTPValidationError,
|
||||
ResJob,
|
||||
ResJobOps
|
||||
} from '.././model';
|
||||
|
||||
import { customFetch } from '../../mutator/custom-fetch';
|
||||
import type { HTTPValidationError, ResJob, ResJobOps } from ".././model";
|
||||
|
||||
import { customFetch } from "../../mutator/custom-fetch";
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 상태별 카운트 + 큐 지연 + 최근 1시간 DEAD + 좀비(stuck). 내부 운영 전용.
|
||||
* @summary 큐 운영 스냅샷
|
||||
*/
|
||||
export const jobOps = (
|
||||
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResJobOps>(
|
||||
{url: `/v1/job/ops`, method: 'GET', signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
return customFetch<ResJobOps>(
|
||||
{ url: `/v1/job/ops`, method: "GET", signal },
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getJobOpsQueryKey = () => {
|
||||
return [
|
||||
`/v1/job/ops`
|
||||
] as const;
|
||||
}
|
||||
return [`/v1/job/ops`] as const;
|
||||
};
|
||||
|
||||
|
||||
export const getJobOpsQueryOptions = <TData = Awaited<ReturnType<typeof jobOps>>, TError = void>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof jobOps>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
) => {
|
||||
export const getJobOpsQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof jobOps>>,
|
||||
TError = void,
|
||||
>(options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof jobOps>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}) => {
|
||||
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
const queryKey = queryOptions?.queryKey ?? getJobOpsQueryKey();
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getJobOpsQueryKey();
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof jobOps>>> = ({
|
||||
signal,
|
||||
}) => jobOps(requestOptions, signal);
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof jobOps>>,
|
||||
TError,
|
||||
TData
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
};
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof jobOps>>> = ({ signal }) => jobOps(requestOptions, signal);
|
||||
export type JobOpsQueryResult = NonNullable<Awaited<ReturnType<typeof jobOps>>>;
|
||||
export type JobOpsQueryError = void;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof jobOps>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type JobOpsQueryResult = NonNullable<Awaited<ReturnType<typeof jobOps>>>
|
||||
export type JobOpsQueryError = void
|
||||
|
||||
|
||||
export function useJobOps<TData = Awaited<ReturnType<typeof jobOps>>, TError = void>(
|
||||
options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof jobOps>>, TError, TData>> & Pick<
|
||||
export function useJobOps<
|
||||
TData = Awaited<ReturnType<typeof jobOps>>,
|
||||
TError = void,
|
||||
>(
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof jobOps>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof jobOps>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof jobOps>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useJobOps<TData = Awaited<ReturnType<typeof jobOps>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof jobOps>>, TError, TData>> & Pick<
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useJobOps<
|
||||
TData = Awaited<ReturnType<typeof jobOps>>,
|
||||
TError = void,
|
||||
>(
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof jobOps>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof jobOps>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof jobOps>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useJobOps<TData = Awaited<ReturnType<typeof jobOps>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof jobOps>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useJobOps<
|
||||
TData = Awaited<ReturnType<typeof jobOps>>,
|
||||
TError = void,
|
||||
>(
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof jobOps>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
/**
|
||||
* @summary 큐 운영 스냅샷
|
||||
*/
|
||||
|
||||
export function useJobOps<TData = Awaited<ReturnType<typeof jobOps>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof jobOps>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
export function useJobOps<
|
||||
TData = Awaited<ReturnType<typeof jobOps>>,
|
||||
TError = void,
|
||||
>(
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof jobOps>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getJobOpsQueryOptions(options);
|
||||
|
||||
const queryOptions = getJobOpsQueryOptions(options)
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @summary 잡 상태 조회(폴링)
|
||||
*/
|
||||
export const getJob = (
|
||||
jobId: string,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
jobId: string,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResJob>(
|
||||
{url: `/v1/job/${jobId}`, method: 'GET', signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
return customFetch<ResJob>(
|
||||
{ url: `/v1/job/${jobId}`, method: "GET", signal },
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getGetJobQueryKey = (jobId?: string) => {
|
||||
return [`/v1/job/${jobId}`] as const;
|
||||
};
|
||||
|
||||
|
||||
export const getGetJobQueryKey = (jobId?: string,) => {
|
||||
return [
|
||||
`/v1/job/${jobId}`
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetJobQueryOptions = <TData = Awaited<ReturnType<typeof getJob>>, TError = void | HTTPValidationError>(jobId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
export const getGetJobQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof getJob>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
jobId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
) => {
|
||||
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
const queryKey = queryOptions?.queryKey ?? getGetJobQueryKey(jobId);
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetJobQueryKey(jobId);
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getJob>>> = ({
|
||||
signal,
|
||||
}) => getJob(jobId, requestOptions, signal);
|
||||
|
||||
|
||||
return {
|
||||
queryKey,
|
||||
queryFn,
|
||||
enabled: !!jobId,
|
||||
...queryOptions,
|
||||
} as UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
};
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getJob>>> = ({ signal }) => getJob(jobId, requestOptions, signal);
|
||||
export type GetJobQueryResult = NonNullable<Awaited<ReturnType<typeof getJob>>>;
|
||||
export type GetJobQueryError = void | HTTPValidationError;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, enabled: !!(jobId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type GetJobQueryResult = NonNullable<Awaited<ReturnType<typeof getJob>>>
|
||||
export type GetJobQueryError = void | HTTPValidationError
|
||||
|
||||
|
||||
export function useGetJob<TData = Awaited<ReturnType<typeof getJob>>, TError = void | HTTPValidationError>(
|
||||
jobId: string, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>> & Pick<
|
||||
export function useGetJob<
|
||||
TData = Awaited<ReturnType<typeof getJob>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
jobId: string,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getJob>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getJob>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetJob<TData = Awaited<ReturnType<typeof getJob>>, TError = void | HTTPValidationError>(
|
||||
jobId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>> & Pick<
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useGetJob<
|
||||
TData = Awaited<ReturnType<typeof getJob>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
jobId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getJob>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getJob>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetJob<TData = Awaited<ReturnType<typeof getJob>>, TError = void | HTTPValidationError>(
|
||||
jobId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useGetJob<
|
||||
TData = Awaited<ReturnType<typeof getJob>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
jobId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
/**
|
||||
* @summary 잡 상태 조회(폴링)
|
||||
*/
|
||||
|
||||
export function useGetJob<TData = Awaited<ReturnType<typeof getJob>>, TError = void | HTTPValidationError>(
|
||||
jobId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
export function useGetJob<
|
||||
TData = Awaited<ReturnType<typeof getJob>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
jobId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getJob>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getGetJobQueryOptions(jobId, options);
|
||||
|
||||
const queryOptions = getGetJobQueryOptions(jobId,options)
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* max_attempts 를 소진해 dead-letter 로 간 잡을 다시 대기로 돌린다. 내부 운영 전용.
|
||||
* @summary DEAD 잡 재큐
|
||||
*/
|
||||
export const requeueJob = (
|
||||
jobId: string,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
jobId: string,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResJob>(
|
||||
{url: `/v1/job/${jobId}/requeue`, method: 'POST', signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
return customFetch<ResJob>(
|
||||
{ url: `/v1/job/${jobId}/requeue`, method: "POST", signal },
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
export const getRequeueJobMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof requeueJob>>,
|
||||
TError,
|
||||
{ jobId: string },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof requeueJob>>,
|
||||
TError,
|
||||
{ jobId: string },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["requeueJob"];
|
||||
const { mutation: mutationOptions, request: requestOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey }, request: undefined };
|
||||
|
||||
export const getRequeueJobMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof requeueJob>>, TError,{jobId: string}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof requeueJob>>, TError,{jobId: string}, TContext> => {
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof requeueJob>>,
|
||||
{ jobId: string }
|
||||
> = (props) => {
|
||||
const { jobId } = props ?? {};
|
||||
|
||||
const mutationKey = ['requeueJob'];
|
||||
const {mutation: mutationOptions, request: requestOptions} = options ?
|
||||
options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
|
||||
options
|
||||
: {...options, mutation: {...options.mutation, mutationKey}}
|
||||
: {mutation: { mutationKey, }, request: undefined};
|
||||
return requeueJob(jobId, requestOptions);
|
||||
};
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions };
|
||||
};
|
||||
|
||||
export type RequeueJobMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof requeueJob>>
|
||||
>;
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof requeueJob>>, {jobId: string}> = (props) => {
|
||||
const {jobId} = props ?? {};
|
||||
export type RequeueJobMutationError = void | HTTPValidationError;
|
||||
|
||||
return requeueJob(jobId,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type RequeueJobMutationResult = NonNullable<Awaited<ReturnType<typeof requeueJob>>>
|
||||
|
||||
export type RequeueJobMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
/**
|
||||
* @summary DEAD 잡 재큐
|
||||
*/
|
||||
export const useRequeueJob = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof requeueJob>>, TError,{jobId: string}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof requeueJob>>,
|
||||
TError,
|
||||
{jobId: string},
|
||||
TContext
|
||||
> => {
|
||||
export const useRequeueJob = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof requeueJob>>,
|
||||
TError,
|
||||
{ jobId: string },
|
||||
TContext
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof requeueJob>>,
|
||||
TError,
|
||||
{ jobId: string },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getRequeueJobMutationOptions(options);
|
||||
|
||||
const mutationOptions = getRequeueJobMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
File diff suppressed because it is too large.
Load diff
@@ -4,9 +4,7 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import {
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
@@ -16,120 +14,174 @@ import type {
|
||||
QueryKey,
|
||||
UndefinedInitialDataOptions,
|
||||
UseQueryOptions,
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
UseQueryResult,
|
||||
} from "@tanstack/react-query";
|
||||
|
||||
import type {
|
||||
HTTPValidationError,
|
||||
ListMediaParams,
|
||||
ResMediaList
|
||||
} from '.././model';
|
||||
|
||||
import { customFetch } from '../../mutator/custom-fetch';
|
||||
ResMediaList,
|
||||
} from ".././model";
|
||||
|
||||
import { customFetch } from "../../mutator/custom-fetch";
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* publishable_only=true 면 ★ 사이트에 실제로 나갈 수 있는 것(승인 + alt 있음)만 — 빌드 스냅샷과 같은 기준이다. unit_id 를 주면 그 객실·메뉴 사진만. ★ 응답에는 항상 source_type(owner/crawl)과 origin_url 이 실린다 — 크롤링 이미지 재게시 권리가 미결이라(docs/DECISIONS.md 1-2) 결론에 따라 CRAWL 을 통째로 걸러내야 하고, 화면이 출처를 모르면 그 판단을 못 한다.
|
||||
* @summary 사진 목록
|
||||
*/
|
||||
export const listMedia = (
|
||||
placeId: string,
|
||||
params?: ListMediaParams,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
placeId: string,
|
||||
params?: ListMediaParams,
|
||||
options?: SecondParameter<typeof customFetch>,
|
||||
signal?: AbortSignal,
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResMediaList>(
|
||||
{url: `/v1/place/${placeId}/media/list`, method: 'GET',
|
||||
params, signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
return customFetch<ResMediaList>(
|
||||
{ url: `/v1/place/${placeId}/media/list`, method: "GET", params, signal },
|
||||
options,
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
|
||||
export const getListMediaQueryKey = (placeId?: string,
|
||||
params?: ListMediaParams,) => {
|
||||
return [
|
||||
`/v1/place/${placeId}/media/list`, ...(params ? [params]: [])
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getListMediaQueryOptions = <TData = Awaited<ReturnType<typeof listMedia>>, TError = void | HTTPValidationError>(placeId: string,
|
||||
params?: ListMediaParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
export const getListMediaQueryKey = (
|
||||
placeId?: string,
|
||||
params?: ListMediaParams,
|
||||
) => {
|
||||
return [
|
||||
`/v1/place/${placeId}/media/list`,
|
||||
...(params ? [params] : []),
|
||||
] as const;
|
||||
};
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
export const getListMediaQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof listMedia>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params?: ListMediaParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
) => {
|
||||
const { query: queryOptions, request: requestOptions } = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getListMediaQueryKey(placeId,params);
|
||||
const queryKey =
|
||||
queryOptions?.queryKey ?? getListMediaQueryKey(placeId, params);
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof listMedia>>> = ({
|
||||
signal,
|
||||
}) => listMedia(placeId, params, requestOptions, signal);
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof listMedia>>> = ({ signal }) => listMedia(placeId,params, requestOptions, signal);
|
||||
return {
|
||||
queryKey,
|
||||
queryFn,
|
||||
enabled: !!placeId,
|
||||
...queryOptions,
|
||||
} as UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
export type ListMediaQueryResult = NonNullable<
|
||||
Awaited<ReturnType<typeof listMedia>>
|
||||
>;
|
||||
export type ListMediaQueryError = void | HTTPValidationError;
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, enabled: !!(placeId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type ListMediaQueryResult = NonNullable<Awaited<ReturnType<typeof listMedia>>>
|
||||
export type ListMediaQueryError = void | HTTPValidationError
|
||||
|
||||
|
||||
export function useListMedia<TData = Awaited<ReturnType<typeof listMedia>>, TError = void | HTTPValidationError>(
|
||||
placeId: string,
|
||||
params: undefined | ListMediaParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>> & Pick<
|
||||
export function useListMedia<
|
||||
TData = Awaited<ReturnType<typeof listMedia>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params: undefined | ListMediaParams,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof listMedia>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof listMedia>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useListMedia<TData = Awaited<ReturnType<typeof listMedia>>, TError = void | HTTPValidationError>(
|
||||
placeId: string,
|
||||
params?: ListMediaParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>> & Pick<
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useListMedia<
|
||||
TData = Awaited<ReturnType<typeof listMedia>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params?: ListMediaParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof listMedia>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof listMedia>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useListMedia<TData = Awaited<ReturnType<typeof listMedia>>, TError = void | HTTPValidationError>(
|
||||
placeId: string,
|
||||
params?: ListMediaParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useListMedia<
|
||||
TData = Awaited<ReturnType<typeof listMedia>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params?: ListMediaParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
/**
|
||||
* @summary 사진 목록
|
||||
*/
|
||||
|
||||
export function useListMedia<TData = Awaited<ReturnType<typeof listMedia>>, TError = void | HTTPValidationError>(
|
||||
placeId: string,
|
||||
params?: ListMediaParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
export function useListMedia<
|
||||
TData = Awaited<ReturnType<typeof listMedia>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
placeId: string,
|
||||
params?: ListMediaParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listMedia>>, TError, TData>
|
||||
>;
|
||||
request?: SecondParameter<typeof customFetch>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getListMediaQueryOptions(placeId, params, options);
|
||||
|
||||
const queryOptions = getListMediaQueryOptions(placeId,params,options)
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { AuditCheckDataRecommendation } from './auditCheckDataRecommendation';
|
||||
import type { AuditCheckDataRecommendation } from "./auditCheckDataRecommendation";
|
||||
|
||||
export interface AuditCheckData {
|
||||
id: string;
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
이으려면 "먼저 가입한 쪽의 소유"를 증명받아야 하는데, 그 증명 없이 이메일만 보고 이으면
|
||||
남이 먼저 만들어 둔 계정에 내 구글 로그인이 들어간다(계정 선점). 보류 사유는 DECISIONS.md 1절.
|
||||
*/
|
||||
export type AuthProvider = typeof AuthProvider[keyof typeof AuthProvider];
|
||||
|
||||
export type AuthProvider = (typeof AuthProvider)[keyof typeof AuthProvider];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const AuthProvider = {
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
/**
|
||||
* site_versions.build_status 코드값. 정적 빌드는 개별 재빌드 단위로 돈다.
|
||||
*/
|
||||
export type BuildStatus = typeof BuildStatus[keyof typeof BuildStatus];
|
||||
|
||||
export type BuildStatus = (typeof BuildStatus)[keyof typeof BuildStatus];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const BuildStatus = {
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
*/
|
||||
|
||||
export type CheckSlugParams = {
|
||||
/**
|
||||
* 쓰고 싶은 주소(예: doflo)
|
||||
*/
|
||||
slug: string;
|
||||
/**
|
||||
* 쓰고 싶은 주소(예: doflo)
|
||||
*/
|
||||
slug: string;
|
||||
};
|
||||
@@ -4,9 +4,9 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfoSuccess } from './errorInfoSuccess';
|
||||
import type { ErrorInfoCode } from './errorInfoCode';
|
||||
import type { ErrorInfoDesc } from './errorInfoDesc';
|
||||
import type { ErrorInfoSuccess } from "./errorInfoSuccess";
|
||||
import type { ErrorInfoCode } from "./errorInfoCode";
|
||||
import type { ErrorInfoDesc } from "./errorInfoDesc";
|
||||
|
||||
/**
|
||||
* 모든 응답에 공통으로 실리는 결과 정보. result.success / code / desc 로 내려간다.
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
카카오는 안정적인 고유 place id 를 준다 → 그걸로 중복 등록을 막는다.
|
||||
네이버는 고유 id 가 없다(응답의 link 는 업체 홈페이지다) → 상호명+도로명주소로 막는다.
|
||||
*/
|
||||
export type ExternalPlaceSource = typeof ExternalPlaceSource[keyof typeof ExternalPlaceSource];
|
||||
|
||||
export type ExternalPlaceSource =
|
||||
(typeof ExternalPlaceSource)[keyof typeof ExternalPlaceSource];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const ExternalPlaceSource = {
|
||||
|
||||
@@ -4,17 +4,17 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { FactDataUnitId } from './factDataUnitId';
|
||||
import type { FactDataValue } from './factDataValue';
|
||||
import type { FactDataSummary } from './factDataSummary';
|
||||
import type { FactDataUnit } from './factDataUnit';
|
||||
import type { SourceType } from './sourceType';
|
||||
import type { FactDataSourceUrl } from './factDataSourceUrl';
|
||||
import type { FactDataCollectedAt } from './factDataCollectedAt';
|
||||
import type { FactDataVerifiedBy } from './factDataVerifiedBy';
|
||||
import type { FactDataVerifiedAt } from './factDataVerifiedAt';
|
||||
import type { FactStatus } from './factStatus';
|
||||
import type { FactDataExpiresAt } from './factDataExpiresAt';
|
||||
import type { FactDataUnitId } from "./factDataUnitId";
|
||||
import type { FactDataValue } from "./factDataValue";
|
||||
import type { FactDataSummary } from "./factDataSummary";
|
||||
import type { FactDataUnit } from "./factDataUnit";
|
||||
import type { SourceType } from "./sourceType";
|
||||
import type { FactDataSourceUrl } from "./factDataSourceUrl";
|
||||
import type { FactDataCollectedAt } from "./factDataCollectedAt";
|
||||
import type { FactDataVerifiedBy } from "./factDataVerifiedBy";
|
||||
import type { FactDataVerifiedAt } from "./factDataVerifiedAt";
|
||||
import type { FactStatus } from "./factStatus";
|
||||
import type { FactDataExpiresAt } from "./factDataExpiresAt";
|
||||
|
||||
export interface FactData {
|
||||
fact_id: string;
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
* facts.status / faqs.status / routes.status 공용 검증 상태.
|
||||
★ VERIFIED 와 CORRECTED 만 사이트에 노출한다(PUBLISHABLE_FACT_STATUSES).
|
||||
*/
|
||||
export type FactStatus = typeof FactStatus[keyof typeof FactStatus];
|
||||
|
||||
export type FactStatus = (typeof FactStatus)[keyof typeof FactStatus];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const FactStatus = {
|
||||
|
||||
@@ -9,8 +9,8 @@
|
||||
* fact 기록 결과. 재수집(업데이트)이 무엇을 했는지 호출측이 알아야 한다 —
|
||||
특히 사이트 재빌드가 필요한 경우(PUBLISHED_REPLACED)를 구분해야 한다.
|
||||
*/
|
||||
export type FactWriteOutcome = typeof FactWriteOutcome[keyof typeof FactWriteOutcome];
|
||||
|
||||
export type FactWriteOutcome =
|
||||
(typeof FactWriteOutcome)[keyof typeof FactWriteOutcome];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const FactWriteOutcome = {
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { FaqDataSourceFactIds } from './faqDataSourceFactIds';
|
||||
import type { SourceType } from './sourceType';
|
||||
import type { FactStatus } from './factStatus';
|
||||
import type { FaqDataCreatedAt } from './faqDataCreatedAt';
|
||||
import type { FaqDataUpdatedAt } from './faqDataUpdatedAt';
|
||||
import type { FaqDataSourceFactIds } from "./faqDataSourceFactIds";
|
||||
import type { SourceType } from "./sourceType";
|
||||
import type { FactStatus } from "./factStatus";
|
||||
import type { FaqDataCreatedAt } from "./faqDataCreatedAt";
|
||||
import type { FaqDataUpdatedAt } from "./faqDataUpdatedAt";
|
||||
|
||||
export interface FaqData {
|
||||
faq_id: string;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { FieldSpecDataUnit } from './fieldSpecDataUnit';
|
||||
import type { FieldSpecDataUnit } from "./fieldSpecDataUnit";
|
||||
|
||||
/**
|
||||
* 업종 스키마의 필드 정의 — 관리 화면이 입력 폼을 그리는 데 쓴다.
|
||||
|
||||
+3
-1
@@ -5,4 +5,6 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ReqSyncFestivalsAreaCode = string | null;
|
||||
export type GetGuideParams = {
|
||||
place_id: string;
|
||||
};
|
||||
@@ -6,19 +6,19 @@
|
||||
*/
|
||||
|
||||
export type GetWeatherParams = {
|
||||
/**
|
||||
* @minLength 1
|
||||
* @maxLength 10
|
||||
*/
|
||||
region_code: string;
|
||||
/**
|
||||
* @minimum -90
|
||||
* @maximum 90
|
||||
*/
|
||||
latitude: number;
|
||||
/**
|
||||
* @minimum -180
|
||||
* @maximum 180
|
||||
*/
|
||||
longitude: number;
|
||||
/**
|
||||
* @minLength 1
|
||||
* @maxLength 10
|
||||
*/
|
||||
region_code: string;
|
||||
/**
|
||||
* @minimum -90
|
||||
* @maximum 90
|
||||
*/
|
||||
latitude: number;
|
||||
/**
|
||||
* @minimum -180
|
||||
* @maximum 180
|
||||
*/
|
||||
longitude: number;
|
||||
};
|
||||
@@ -4,7 +4,7 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ValidationError } from './validationError';
|
||||
import type { ValidationError } from "./validationError";
|
||||
|
||||
export interface HTTPValidationError {
|
||||
detail?: ValidationError[];
|
||||
|
||||
@@ -5,318 +5,333 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export * from './auditCheckData';
|
||||
export * from './auditCheckDataRecommendation';
|
||||
export * from './authProvider';
|
||||
export * from './buildStatus';
|
||||
export * from './checkSlugParams';
|
||||
export * from './errorInfo';
|
||||
export * from './errorInfoCode';
|
||||
export * from './errorInfoDesc';
|
||||
export * from './errorInfoSuccess';
|
||||
export * from './externalPlaceSource';
|
||||
export * from './factData';
|
||||
export * from './factDataCollectedAt';
|
||||
export * from './factDataExpiresAt';
|
||||
export * from './factDataSourceUrl';
|
||||
export * from './factDataSummary';
|
||||
export * from './factDataUnit';
|
||||
export * from './factDataUnitId';
|
||||
export * from './factDataValue';
|
||||
export * from './factDataVerifiedAt';
|
||||
export * from './factDataVerifiedBy';
|
||||
export * from './factStatus';
|
||||
export * from './factWriteOutcome';
|
||||
export * from './faqData';
|
||||
export * from './faqDataCreatedAt';
|
||||
export * from './faqDataSourceFactIds';
|
||||
export * from './faqDataUpdatedAt';
|
||||
export * from './fieldSpecData';
|
||||
export * from './fieldSpecDataUnit';
|
||||
export * from './getWeatherParams';
|
||||
export * from './hTTPValidationError';
|
||||
export * from './jobData';
|
||||
export * from './jobDataCreatedAt';
|
||||
export * from './jobDataLastError';
|
||||
export * from './jobDataResult';
|
||||
export * from './jobDataRunAfter';
|
||||
export * from './jobDataRunStartedAt';
|
||||
export * from './jobDataUpdatedAt';
|
||||
export * from './jobStatus';
|
||||
export * from './jobType';
|
||||
export * from './linkChannel';
|
||||
export * from './linkData';
|
||||
export * from './linkDataConfirmedAt';
|
||||
export * from './linkDataDiscoveredAt';
|
||||
export * from './linkDataTitle';
|
||||
export * from './listContentsParams';
|
||||
export * from './listFactsParams';
|
||||
export * from './listFaqsParams';
|
||||
export * from './listLinksParams';
|
||||
export * from './listMediaParams';
|
||||
export * from './listMySitesParams';
|
||||
export * from './listPlacesParams';
|
||||
export * from './listShowcaseParams';
|
||||
export * from './localContentData';
|
||||
export * from './localContentDataBody';
|
||||
export * from './localContentDataCollectedAt';
|
||||
export * from './localContentDataDisplayEndAt';
|
||||
export * from './localContentDataDisplayStartAt';
|
||||
export * from './localContentDataExternalId';
|
||||
export * from './localContentDataPublishedAt';
|
||||
export * from './localContentDataTitle';
|
||||
export * from './localContentStatus';
|
||||
export * from './localContentType';
|
||||
export * from './localSource';
|
||||
export * from './mediaData';
|
||||
export * from './mediaDataAltText';
|
||||
export * from './mediaDataCreatedAt';
|
||||
export * from './mediaDataHeight';
|
||||
export * from './mediaDataLabel';
|
||||
export * from './mediaDataOriginUrl';
|
||||
export * from './mediaDataSourceUrl';
|
||||
export * from './mediaDataUnitId';
|
||||
export * from './mediaDataVisionConfidence';
|
||||
export * from './mediaDataWidth';
|
||||
export * from './mediaStatus';
|
||||
export * from './mySiteData';
|
||||
export * from './mySiteDataCreatedAt';
|
||||
export * from './mySiteDataDomain';
|
||||
export * from './mySiteDataPublishedAt';
|
||||
export * from './mySiteDataThumbnailUrl';
|
||||
export * from './mySiteDataRoadAddress';
|
||||
export * from './mySiteDataSiteId';
|
||||
export * from './mySiteDataStatus';
|
||||
export * from './mySiteDataTemplateId';
|
||||
export * from './placeCandidate';
|
||||
export * from './placeCandidateAddress';
|
||||
export * from './placeCandidateCategoryName';
|
||||
export * from './placeCandidateExternalPlaceId';
|
||||
export * from './placeCandidateLatitude';
|
||||
export * from './placeCandidateLongitude';
|
||||
export * from './placeCandidateNaverPlaceUrl';
|
||||
export * from './placeCandidatePhone';
|
||||
export * from './placeCandidatePlaceUrl';
|
||||
export * from './placeCandidateRoadAddress';
|
||||
export * from './placeCategory';
|
||||
export * from './placeData';
|
||||
export * from './placeDataAddress';
|
||||
export * from './placeDataContentUpdatedAt';
|
||||
export * from './placeDataCreatedAt';
|
||||
export * from './placeDataExternalPlaceId';
|
||||
export * from './placeDataExternalSource';
|
||||
export * from './placeDataLatitude';
|
||||
export * from './placeDataLongitude';
|
||||
export * from './placeDataOwnerUserId';
|
||||
export * from './placeDataPhone';
|
||||
export * from './placeDataRegionCode';
|
||||
export * from './placeDataRoadAddress';
|
||||
export * from './placeDataVerifiedAt';
|
||||
export * from './placeSearchItem';
|
||||
export * from './placeSearchItemCategory';
|
||||
export * from './placeSearchItemCategoryName';
|
||||
export * from './placeSearchItemRoadAddress';
|
||||
export * from './placeStatus';
|
||||
export * from './publishAction';
|
||||
export * from './publishLogData';
|
||||
export * from './publishLogDataCreatedAt';
|
||||
export * from './publishLogDataDetail';
|
||||
export * from './publishLogDataRejectReason';
|
||||
export * from './publishRejectReason';
|
||||
export * from './publishResult';
|
||||
export * from './renderStatusData';
|
||||
export * from './renderStatusDataError';
|
||||
export * from './renderStatusDataRenderedAt';
|
||||
export * from './renderStatusDataRenderedVersion';
|
||||
export * from './reqCreateFaq';
|
||||
export * from './reqCreateFaqSortOrder';
|
||||
export * from './reqCreateLink';
|
||||
export * from './reqCreateLinkTitle';
|
||||
export * from './reqCreatePlace';
|
||||
export * from './reqCreatePlaceOwnerUserId';
|
||||
export * from './reqCreateUnit';
|
||||
export * from './reqExtractFacts';
|
||||
export * from './reqGoogleLogin';
|
||||
export * from './reqLogin';
|
||||
export * from './reqPublishLocalContent';
|
||||
export * from './reqSignup';
|
||||
export * from './reqSignupName';
|
||||
export * from './reqSiteSlug';
|
||||
export * from './reqSiteStatus';
|
||||
export * from './reqSiteTemplate';
|
||||
export * from './reqSiteTheme';
|
||||
export * from './reqSiteThemeTheme';
|
||||
export * from './reqStartBuild';
|
||||
export * from './reqStartCollect';
|
||||
export * from './reqStartCopy';
|
||||
export * from './reqStartVision';
|
||||
export * from './reqSyncFestivals';
|
||||
export * from './reqSyncFestivalsAreaCode';
|
||||
export * from './reqSyncFestivalsStartDate';
|
||||
export * from './reqTransitionFact';
|
||||
export * from './reqTransitionFactValue';
|
||||
export * from './reqTransitionFaq';
|
||||
export * from './reqTransitionFaqAnswer';
|
||||
export * from './reqTransitionFaqQuestion';
|
||||
export * from './reqUpdateLocalContent';
|
||||
export * from './reqUpdateLocalContentBody';
|
||||
export * from './reqUpdateLocalContentBodyAnyOf';
|
||||
export * from './reqUpdateLocalContentDisplayEndAt';
|
||||
export * from './reqUpdateLocalContentDisplayStartAt';
|
||||
export * from './reqUpdateLocalContentTitle';
|
||||
export * from './reqUpdateMe';
|
||||
export * from './reqUpdateMeContactNumber';
|
||||
export * from './reqUpdateMeEmail';
|
||||
export * from './reqUpdateMeName';
|
||||
export * from './reqUpdateMePassword';
|
||||
export * from './reqUpdatePlace';
|
||||
export * from './reqUpdatePlaceName';
|
||||
export * from './reqUpdatePlaceOwnerUserId';
|
||||
export * from './reqUpdatePlaceStatus';
|
||||
export * from './reqUpsertFact';
|
||||
export * from './reqUpsertFactExpiresAt';
|
||||
export * from './reqUpsertFactSourceUrl';
|
||||
export * from './reqUpsertFactUnitId';
|
||||
export * from './reqUpsertFactValue';
|
||||
export * from './reqVerifyPlace';
|
||||
export * from './reqVerifyPlaceAddress';
|
||||
export * from './reqVerifyPlaceByUrl';
|
||||
export * from './reqVerifyPlaceLatitude';
|
||||
export * from './reqVerifyPlaceLongitude';
|
||||
export * from './reqVerifyPlacePhone';
|
||||
export * from './reqVerifyPlacePlaceUrl';
|
||||
export * from './reqVerifyPlaceRegionCode';
|
||||
export * from './reqVerifyPlaceRoadAddress';
|
||||
export * from './resCategorySchema';
|
||||
export * from './resCategorySchemaCategory';
|
||||
export * from './resCategorySchemaLabel';
|
||||
export * from './resCategorySchemaMsg';
|
||||
export * from './resExtractFacts';
|
||||
export * from './resExtractFactsMsg';
|
||||
export * from './resExtractedFact';
|
||||
export * from './resExtractedFactReason';
|
||||
export * from './resExtractedFactUnitName';
|
||||
export * from './resFact';
|
||||
export * from './resFactFact';
|
||||
export * from './resFactList';
|
||||
export * from './resFactListMsg';
|
||||
export * from './resFactMsg';
|
||||
export * from './resFactOutcome';
|
||||
export * from './resFaq';
|
||||
export * from './resFaqFaq';
|
||||
export * from './resFaqList';
|
||||
export * from './resFaqListMsg';
|
||||
export * from './resFaqMsg';
|
||||
export * from './resJob';
|
||||
export * from './resJobJob';
|
||||
export * from './resJobMsg';
|
||||
export * from './resJobOps';
|
||||
export * from './resJobOpsMsg';
|
||||
export * from './resLink';
|
||||
export * from './resLinkLink';
|
||||
export * from './resLinkList';
|
||||
export * from './resLinkListMsg';
|
||||
export * from './resLinkMsg';
|
||||
export * from './resLocalContentList';
|
||||
export * from './resLocalContentListMsg';
|
||||
export * from './resLogin';
|
||||
export * from './resLoginMsg';
|
||||
export * from './resMe';
|
||||
export * from './resMeContactNumber';
|
||||
export * from './resMeEmail';
|
||||
export * from './resMeMsg';
|
||||
export * from './resMeName';
|
||||
export * from './resMediaList';
|
||||
export * from './resMediaListMsg';
|
||||
export * from './resMySites';
|
||||
export * from './resMySitesMsg';
|
||||
export * from './resPlace';
|
||||
export * from './resPlaceList';
|
||||
export * from './resPlaceListMsg';
|
||||
export * from './resPlaceMsg';
|
||||
export * from './resPlacePlace';
|
||||
export * from './resPlaceSearch';
|
||||
export * from './resPlaceSearchMsg';
|
||||
export * from './resPlaceSearchSource';
|
||||
export * from './resPublishLogs';
|
||||
export * from './resPublishLogsMsg';
|
||||
export * from './resRefreshToken';
|
||||
export * from './resRefreshTokenMsg';
|
||||
export * from './resSeoAudit';
|
||||
export * from './resSeoAuditMsg';
|
||||
export * from './resSeoAuditSummary';
|
||||
export * from './resSeoAuditVisibility';
|
||||
export * from './resShowcase';
|
||||
export * from './resShowcaseMsg';
|
||||
export * from './resSite';
|
||||
export * from './resSiteCurrentVersion';
|
||||
export * from './resSiteMsg';
|
||||
export * from './resSiteSite';
|
||||
export * from './resSiteSlug';
|
||||
export * from './resSiteSlugMsg';
|
||||
export * from './resSiteSlugReason';
|
||||
export * from './resSiteSlugSite';
|
||||
export * from './resSiteSlugSuggestion';
|
||||
export * from './resSiteVersions';
|
||||
export * from './resSiteVersionsMsg';
|
||||
export * from './resSlugCheck';
|
||||
export * from './resSlugCheckMsg';
|
||||
export * from './resSlugCheckReason';
|
||||
export * from './resSlugCheckSuggestion';
|
||||
export * from './resStartBuild';
|
||||
export * from './resStartBuildJobId';
|
||||
export * from './resStartBuildMsg';
|
||||
export * from './resStartBuildStatus';
|
||||
export * from './resStartCollect';
|
||||
export * from './resStartCollectJobId';
|
||||
export * from './resStartCollectMsg';
|
||||
export * from './resStartCollectStatus';
|
||||
export * from './resStartCopy';
|
||||
export * from './resStartCopyJobId';
|
||||
export * from './resStartCopyMsg';
|
||||
export * from './resStartCopyStatus';
|
||||
export * from './resStartVision';
|
||||
export * from './resStartVisionJobId';
|
||||
export * from './resStartVisionMsg';
|
||||
export * from './resStartVisionStatus';
|
||||
export * from './resSyncFestivals';
|
||||
export * from './resSyncFestivalsMsg';
|
||||
export * from './resUnit';
|
||||
export * from './resUnitList';
|
||||
export * from './resUnitListMsg';
|
||||
export * from './resUnitMsg';
|
||||
export * from './resUnitUnit';
|
||||
export * from './resVerifyCandidates';
|
||||
export * from './resVerifyCandidatesMsg';
|
||||
export * from './resVerifyCandidatesReason';
|
||||
export * from './resVerifyCandidatesSource';
|
||||
export * from './resWeather';
|
||||
export * from './resWeatherMsg';
|
||||
export * from './resWeatherWeather';
|
||||
export * from './searchPlacesPublicParams';
|
||||
export * from './showcaseItem';
|
||||
export * from './showcaseItemRegion';
|
||||
export * from './showcaseItemThumbnailUrl';
|
||||
export * from './siteData';
|
||||
export * from './siteDataCurrentVersionId';
|
||||
export * from './siteDataDomain';
|
||||
export * from './siteDataPublishedAt';
|
||||
export * from './siteDataTemplateId';
|
||||
export * from './siteDataTheme';
|
||||
export * from './siteDataThemeAnyOf';
|
||||
export * from './siteDataThumbnailUrl';
|
||||
export * from './siteStatus';
|
||||
export * from './siteVersionData';
|
||||
export * from './siteVersionDataBuildError';
|
||||
export * from './siteVersionDataBuiltAt';
|
||||
export * from './siteVersionDataCreatedAt';
|
||||
export * from './sourceType';
|
||||
export * from './unitData';
|
||||
export * from './userRole';
|
||||
export * from './validationError';
|
||||
export * from './validationErrorCtx';
|
||||
export * from './validationErrorLocItem';
|
||||
export * from './verifyCandidatesParams';
|
||||
export * from './weatherData';
|
||||
export * from './weatherDataTimezone';
|
||||
export * from './weatherDataWindSpeed';
|
||||
export * from "./auditCheckData";
|
||||
export * from "./auditCheckDataRecommendation";
|
||||
export * from "./authProvider";
|
||||
export * from "./buildStatus";
|
||||
export * from "./checkSlugParams";
|
||||
export * from "./errorInfo";
|
||||
export * from "./errorInfoCode";
|
||||
export * from "./errorInfoDesc";
|
||||
export * from "./errorInfoSuccess";
|
||||
export * from "./externalPlaceSource";
|
||||
export * from "./factData";
|
||||
export * from "./factDataCollectedAt";
|
||||
export * from "./factDataExpiresAt";
|
||||
export * from "./factDataSourceUrl";
|
||||
export * from "./factDataSummary";
|
||||
export * from "./factDataUnit";
|
||||
export * from "./factDataUnitId";
|
||||
export * from "./factDataValue";
|
||||
export * from "./factDataVerifiedAt";
|
||||
export * from "./factDataVerifiedBy";
|
||||
export * from "./factStatus";
|
||||
export * from "./factWriteOutcome";
|
||||
export * from "./faqData";
|
||||
export * from "./faqDataCreatedAt";
|
||||
export * from "./faqDataSourceFactIds";
|
||||
export * from "./faqDataUpdatedAt";
|
||||
export * from "./fieldSpecData";
|
||||
export * from "./fieldSpecDataUnit";
|
||||
export * from "./getGuideParams";
|
||||
export * from "./getWeatherParams";
|
||||
export * from "./hTTPValidationError";
|
||||
export * from "./jobData";
|
||||
export * from "./jobDataCreatedAt";
|
||||
export * from "./jobDataLastError";
|
||||
export * from "./jobDataResult";
|
||||
export * from "./jobDataRunAfter";
|
||||
export * from "./jobDataRunStartedAt";
|
||||
export * from "./jobDataUpdatedAt";
|
||||
export * from "./jobStatus";
|
||||
export * from "./jobType";
|
||||
export * from "./linkChannel";
|
||||
export * from "./linkData";
|
||||
export * from "./linkDataConfirmedAt";
|
||||
export * from "./linkDataDiscoveredAt";
|
||||
export * from "./linkDataTitle";
|
||||
export * from "./listContentsParams";
|
||||
export * from "./listFactsParams";
|
||||
export * from "./listFaqsParams";
|
||||
export * from "./listLinksParams";
|
||||
export * from "./listMediaParams";
|
||||
export * from "./listMySitesParams";
|
||||
export * from "./listPlacesParams";
|
||||
export * from "./listShowcaseParams";
|
||||
export * from "./localContentData";
|
||||
export * from "./localContentDataBody";
|
||||
export * from "./localContentDataCollectedAt";
|
||||
export * from "./localContentDataDisplayEndAt";
|
||||
export * from "./localContentDataDisplayStartAt";
|
||||
export * from "./localContentDataExternalId";
|
||||
export * from "./localContentDataPublishedAt";
|
||||
export * from "./localContentDataTitle";
|
||||
export * from "./localContentStatus";
|
||||
export * from "./localContentType";
|
||||
export * from "./localSource";
|
||||
export * from "./mediaData";
|
||||
export * from "./mediaDataAltText";
|
||||
export * from "./mediaDataCreatedAt";
|
||||
export * from "./mediaDataHeight";
|
||||
export * from "./mediaDataLabel";
|
||||
export * from "./mediaDataOriginUrl";
|
||||
export * from "./mediaDataSourceUrl";
|
||||
export * from "./mediaDataUnitId";
|
||||
export * from "./mediaDataVisionConfidence";
|
||||
export * from "./mediaDataWidth";
|
||||
export * from "./mediaStatus";
|
||||
export * from "./mySiteData";
|
||||
export * from "./mySiteDataCreatedAt";
|
||||
export * from "./mySiteDataDomain";
|
||||
export * from "./mySiteDataPublishedAt";
|
||||
export * from "./mySiteDataRoadAddress";
|
||||
export * from "./mySiteDataSiteId";
|
||||
export * from "./mySiteDataStatus";
|
||||
export * from "./mySiteDataTemplateId";
|
||||
export * from "./mySiteDataThumbnailUrl";
|
||||
export * from "./placeCandidate";
|
||||
export * from "./placeCandidateAddress";
|
||||
export * from "./placeCandidateCategoryName";
|
||||
export * from "./placeCandidateExternalPlaceId";
|
||||
export * from "./placeCandidateLatitude";
|
||||
export * from "./placeCandidateLongitude";
|
||||
export * from "./placeCandidateNaverPlaceUrl";
|
||||
export * from "./placeCandidatePhone";
|
||||
export * from "./placeCandidatePlaceUrl";
|
||||
export * from "./placeCandidateRoadAddress";
|
||||
export * from "./placeCategory";
|
||||
export * from "./placeContentData";
|
||||
export * from "./placeContentDataBody";
|
||||
export * from "./placeContentDataCollectedAt";
|
||||
export * from "./placeContentDataDisplayEndAt";
|
||||
export * from "./placeData";
|
||||
export * from "./placeDataAddress";
|
||||
export * from "./placeDataContentUpdatedAt";
|
||||
export * from "./placeDataCreatedAt";
|
||||
export * from "./placeDataExternalPlaceId";
|
||||
export * from "./placeDataExternalSource";
|
||||
export * from "./placeDataLatitude";
|
||||
export * from "./placeDataLongitude";
|
||||
export * from "./placeDataOwnerUserId";
|
||||
export * from "./placeDataPhone";
|
||||
export * from "./placeDataRegionCode";
|
||||
export * from "./placeDataRoadAddress";
|
||||
export * from "./placeDataVerifiedAt";
|
||||
export * from "./placeSearchItem";
|
||||
export * from "./placeSearchItemCategory";
|
||||
export * from "./placeSearchItemCategoryName";
|
||||
export * from "./placeSearchItemNaverPlaceUrl";
|
||||
export * from "./placeSearchItemRoadAddress";
|
||||
export * from "./placeStatus";
|
||||
export * from "./publishAction";
|
||||
export * from "./publishLogData";
|
||||
export * from "./publishLogDataCreatedAt";
|
||||
export * from "./publishLogDataDetail";
|
||||
export * from "./publishLogDataRejectReason";
|
||||
export * from "./publishRejectReason";
|
||||
export * from "./publishResult";
|
||||
export * from "./relayParams";
|
||||
export * from "./renderStatusData";
|
||||
export * from "./renderStatusDataError";
|
||||
export * from "./renderStatusDataRenderedAt";
|
||||
export * from "./renderStatusDataRenderedVersion";
|
||||
export * from "./reqCreateFaq";
|
||||
export * from "./reqCreateFaqSortOrder";
|
||||
export * from "./reqCreateLink";
|
||||
export * from "./reqCreateLinkTitle";
|
||||
export * from "./reqCreatePlace";
|
||||
export * from "./reqCreateUnit";
|
||||
export * from "./reqExtractFacts";
|
||||
export * from "./reqGoogleLogin";
|
||||
export * from "./reqHidePlaceContent";
|
||||
export * from "./reqLogin";
|
||||
export * from "./reqPublishLocalContent";
|
||||
export * from "./reqRollback";
|
||||
export * from "./reqSignup";
|
||||
export * from "./reqSignupName";
|
||||
export * from "./reqSiteSlug";
|
||||
export * from "./reqSiteStatus";
|
||||
export * from "./reqSiteTemplate";
|
||||
export * from "./reqSiteTheme";
|
||||
export * from "./reqSiteThemeTheme";
|
||||
export * from "./reqStartBuild";
|
||||
export * from "./reqStartCollect";
|
||||
export * from "./reqStartCopy";
|
||||
export * from "./reqStartVision";
|
||||
export * from "./reqTransitionFact";
|
||||
export * from "./reqTransitionFactValue";
|
||||
export * from "./reqTransitionFaq";
|
||||
export * from "./reqTransitionFaqAnswer";
|
||||
export * from "./reqTransitionFaqQuestion";
|
||||
export * from "./reqUpdateLocalContent";
|
||||
export * from "./reqUpdateLocalContentBody";
|
||||
export * from "./reqUpdateLocalContentBodyAnyOf";
|
||||
export * from "./reqUpdateLocalContentDisplayEndAt";
|
||||
export * from "./reqUpdateLocalContentDisplayStartAt";
|
||||
export * from "./reqUpdateLocalContentTitle";
|
||||
export * from "./reqUpdateMe";
|
||||
export * from "./reqUpdateMeContactNumber";
|
||||
export * from "./reqUpdateMeEmail";
|
||||
export * from "./reqUpdateMeName";
|
||||
export * from "./reqUpdateMePassword";
|
||||
export * from "./reqUpdatePlace";
|
||||
export * from "./reqUpdatePlaceName";
|
||||
export * from "./reqUpdatePlaceStatus";
|
||||
export * from "./reqUpsertFact";
|
||||
export * from "./reqUpsertFactExpiresAt";
|
||||
export * from "./reqUpsertFactSourceUrl";
|
||||
export * from "./reqUpsertFactUnitId";
|
||||
export * from "./reqUpsertFactValue";
|
||||
export * from "./reqVerifyPlace";
|
||||
export * from "./reqVerifyPlaceAddress";
|
||||
export * from "./reqVerifyPlaceByUrl";
|
||||
export * from "./reqVerifyPlaceCategoryName";
|
||||
export * from "./reqVerifyPlaceLatitude";
|
||||
export * from "./reqVerifyPlaceLongitude";
|
||||
export * from "./reqVerifyPlacePhone";
|
||||
export * from "./reqVerifyPlacePlaceUrl";
|
||||
export * from "./reqVerifyPlaceRegionCode";
|
||||
export * from "./reqVerifyPlaceRoadAddress";
|
||||
export * from "./resCategorySchema";
|
||||
export * from "./resCategorySchemaCategory";
|
||||
export * from "./resCategorySchemaLabel";
|
||||
export * from "./resCategorySchemaMsg";
|
||||
export * from "./resExtractFacts";
|
||||
export * from "./resExtractFactsMsg";
|
||||
export * from "./resExtractedFact";
|
||||
export * from "./resExtractedFactReason";
|
||||
export * from "./resExtractedFactUnitName";
|
||||
export * from "./resFact";
|
||||
export * from "./resFactFact";
|
||||
export * from "./resFactList";
|
||||
export * from "./resFactListMsg";
|
||||
export * from "./resFactMsg";
|
||||
export * from "./resFactOutcome";
|
||||
export * from "./resFaq";
|
||||
export * from "./resFaqFaq";
|
||||
export * from "./resFaqList";
|
||||
export * from "./resFaqListMsg";
|
||||
export * from "./resFaqMsg";
|
||||
export * from "./resJob";
|
||||
export * from "./resJobJob";
|
||||
export * from "./resJobMsg";
|
||||
export * from "./resJobOps";
|
||||
export * from "./resJobOpsMsg";
|
||||
export * from "./resLink";
|
||||
export * from "./resLinkLink";
|
||||
export * from "./resLinkList";
|
||||
export * from "./resLinkListMsg";
|
||||
export * from "./resLinkMsg";
|
||||
export * from "./resLocalContentList";
|
||||
export * from "./resLocalContentListMsg";
|
||||
export * from "./resLocalGuide";
|
||||
export * from "./resLocalGuideAttractionsItem";
|
||||
export * from "./resLocalGuideCoursesItem";
|
||||
export * from "./resLocalGuideFestivalsItem";
|
||||
export * from "./resLocalGuideItinerariesItem";
|
||||
export * from "./resLocalGuideMsg";
|
||||
export * from "./resLocalGuideRestaurantsItem";
|
||||
export * from "./resLocalGuideSyncedAt";
|
||||
export * from "./resLogin";
|
||||
export * from "./resLoginMsg";
|
||||
export * from "./resMe";
|
||||
export * from "./resMeContactNumber";
|
||||
export * from "./resMeEmail";
|
||||
export * from "./resMeMsg";
|
||||
export * from "./resMeName";
|
||||
export * from "./resMediaList";
|
||||
export * from "./resMediaListMsg";
|
||||
export * from "./resMySites";
|
||||
export * from "./resMySitesMsg";
|
||||
export * from "./resPlace";
|
||||
export * from "./resPlaceContentList";
|
||||
export * from "./resPlaceContentListMsg";
|
||||
export * from "./resPlaceList";
|
||||
export * from "./resPlaceListMsg";
|
||||
export * from "./resPlaceMsg";
|
||||
export * from "./resPlacePlace";
|
||||
export * from "./resPlaceSearch";
|
||||
export * from "./resPlaceSearchMsg";
|
||||
export * from "./resPlaceSearchSource";
|
||||
export * from "./resPublishLogs";
|
||||
export * from "./resPublishLogsMsg";
|
||||
export * from "./resRefreshToken";
|
||||
export * from "./resRefreshTokenMsg";
|
||||
export * from "./resSeoAudit";
|
||||
export * from "./resSeoAuditMsg";
|
||||
export * from "./resSeoAuditSummary";
|
||||
export * from "./resSeoAuditVisibility";
|
||||
export * from "./resShowcase";
|
||||
export * from "./resShowcaseMsg";
|
||||
export * from "./resSite";
|
||||
export * from "./resSiteCurrentVersion";
|
||||
export * from "./resSiteMsg";
|
||||
export * from "./resSiteSite";
|
||||
export * from "./resSiteSlug";
|
||||
export * from "./resSiteSlugMsg";
|
||||
export * from "./resSiteSlugReason";
|
||||
export * from "./resSiteSlugSite";
|
||||
export * from "./resSiteSlugSuggestion";
|
||||
export * from "./resSiteVersions";
|
||||
export * from "./resSiteVersionsMsg";
|
||||
export * from "./resSlugCheck";
|
||||
export * from "./resSlugCheckMsg";
|
||||
export * from "./resSlugCheckReason";
|
||||
export * from "./resSlugCheckSuggestion";
|
||||
export * from "./resStartBuild";
|
||||
export * from "./resStartBuildJobId";
|
||||
export * from "./resStartBuildMsg";
|
||||
export * from "./resStartBuildStatus";
|
||||
export * from "./resStartCollect";
|
||||
export * from "./resStartCollectJobId";
|
||||
export * from "./resStartCollectMsg";
|
||||
export * from "./resStartCollectStatus";
|
||||
export * from "./resStartCopy";
|
||||
export * from "./resStartCopyJobId";
|
||||
export * from "./resStartCopyMsg";
|
||||
export * from "./resStartCopyStatus";
|
||||
export * from "./resStartVision";
|
||||
export * from "./resStartVisionJobId";
|
||||
export * from "./resStartVisionMsg";
|
||||
export * from "./resStartVisionStatus";
|
||||
export * from "./resSyncPlace";
|
||||
export * from "./resSyncPlaceMsg";
|
||||
export * from "./resUnit";
|
||||
export * from "./resUnitList";
|
||||
export * from "./resUnitListMsg";
|
||||
export * from "./resUnitMsg";
|
||||
export * from "./resUnitUnit";
|
||||
export * from "./resVerifyCandidates";
|
||||
export * from "./resVerifyCandidatesMsg";
|
||||
export * from "./resVerifyCandidatesReason";
|
||||
export * from "./resVerifyCandidatesSource";
|
||||
export * from "./resWeather";
|
||||
export * from "./resWeatherMsg";
|
||||
export * from "./resWeatherWeather";
|
||||
export * from "./searchPlacesPublicParams";
|
||||
export * from "./showcaseItem";
|
||||
export * from "./showcaseItemRegion";
|
||||
export * from "./showcaseItemThumbnailUrl";
|
||||
export * from "./siteData";
|
||||
export * from "./siteDataCurrentVersionId";
|
||||
export * from "./siteDataDomain";
|
||||
export * from "./siteDataPublishedAt";
|
||||
export * from "./siteDataTemplateId";
|
||||
export * from "./siteDataTheme";
|
||||
export * from "./siteDataThemeAnyOf";
|
||||
export * from "./siteDataThumbnailUrl";
|
||||
export * from "./siteStatus";
|
||||
export * from "./siteVersionData";
|
||||
export * from "./siteVersionDataBuildError";
|
||||
export * from "./siteVersionDataBuiltAt";
|
||||
export * from "./siteVersionDataCreatedAt";
|
||||
export * from "./sourceType";
|
||||
export * from "./unitData";
|
||||
export * from "./userRole";
|
||||
export * from "./validationError";
|
||||
export * from "./validationErrorCtx";
|
||||
export * from "./validationErrorLocItem";
|
||||
export * from "./verifyCandidatesParams";
|
||||
export * from "./weatherData";
|
||||
export * from "./weatherDataTimezone";
|
||||
export * from "./weatherDataWindSpeed";
|
||||
@@ -4,14 +4,14 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { JobType } from './jobType';
|
||||
import type { JobStatus } from './jobStatus';
|
||||
import type { JobDataResult } from './jobDataResult';
|
||||
import type { JobDataLastError } from './jobDataLastError';
|
||||
import type { JobDataRunAfter } from './jobDataRunAfter';
|
||||
import type { JobDataRunStartedAt } from './jobDataRunStartedAt';
|
||||
import type { JobDataCreatedAt } from './jobDataCreatedAt';
|
||||
import type { JobDataUpdatedAt } from './jobDataUpdatedAt';
|
||||
import type { JobType } from "./jobType";
|
||||
import type { JobStatus } from "./jobStatus";
|
||||
import type { JobDataResult } from "./jobDataResult";
|
||||
import type { JobDataLastError } from "./jobDataLastError";
|
||||
import type { JobDataRunAfter } from "./jobDataRunAfter";
|
||||
import type { JobDataRunStartedAt } from "./jobDataRunStartedAt";
|
||||
import type { JobDataCreatedAt } from "./jobDataCreatedAt";
|
||||
import type { JobDataUpdatedAt } from "./jobDataUpdatedAt";
|
||||
|
||||
export interface JobData {
|
||||
job_id: string;
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
전이는 전부 조건부 원자 UPDATE(CAS)로만 한다. 실패는 재시도 가능하면
|
||||
PENDING(run_after=백오프)으로 되돌리고, 소진되면 DEAD(dead-letter).
|
||||
*/
|
||||
export type JobStatus = typeof JobStatus[keyof typeof JobStatus];
|
||||
|
||||
export type JobStatus = (typeof JobStatus)[keyof typeof JobStatus];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const JobStatus = {
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
무거운 잡(브라우저 필요)과 가벼운 잡(HTTP API 만)을 코드로 갈라 둔다 —
|
||||
크롤링 법무 결론이 나면 무거운 잡만 별도 워커 이미지로 분리한다.
|
||||
*/
|
||||
export type JobType = typeof JobType[keyof typeof JobType];
|
||||
|
||||
export type JobType = (typeof JobType)[keyof typeof JobType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const JobType = {
|
||||
@@ -22,4 +21,6 @@ export const JobType = {
|
||||
BUILD: 4,
|
||||
LOCAL_SYNC: 5,
|
||||
AI_CHECK: 6,
|
||||
SONG: 7,
|
||||
ROLLBACK: 8,
|
||||
} as const;
|
||||
@@ -6,10 +6,9 @@
|
||||
*/
|
||||
|
||||
/**
|
||||
* place_links.channel 코드값. Perplexity 가 발견하는 채널 종류.
|
||||
* place_channels.channel 코드값. Perplexity 가 발견하는 채널 종류.
|
||||
*/
|
||||
export type LinkChannel = typeof LinkChannel[keyof typeof LinkChannel];
|
||||
|
||||
export type LinkChannel = (typeof LinkChannel)[keyof typeof LinkChannel];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const LinkChannel = {
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { LinkChannel } from './linkChannel';
|
||||
import type { LinkDataTitle } from './linkDataTitle';
|
||||
import type { SourceType } from './sourceType';
|
||||
import type { LinkDataDiscoveredAt } from './linkDataDiscoveredAt';
|
||||
import type { LinkDataConfirmedAt } from './linkDataConfirmedAt';
|
||||
import type { LinkChannel } from "./linkChannel";
|
||||
import type { LinkDataTitle } from "./linkDataTitle";
|
||||
import type { SourceType } from "./sourceType";
|
||||
import type { LinkDataDiscoveredAt } from "./linkDataDiscoveredAt";
|
||||
import type { LinkDataConfirmedAt } from "./linkDataConfirmedAt";
|
||||
|
||||
export interface LinkData {
|
||||
link_id: string;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { LocalContentStatus } from './localContentStatus';
|
||||
import type { LocalContentStatus } from "./localContentStatus";
|
||||
|
||||
export type ListContentsParams = {
|
||||
status?: LocalContentStatus | null;
|
||||
region_code?: string | null;
|
||||
status?: LocalContentStatus | null;
|
||||
region_code?: string | null;
|
||||
};
|
||||
@@ -6,9 +6,9 @@
|
||||
*/
|
||||
|
||||
export type ListFactsParams = {
|
||||
/**
|
||||
* 객실·메뉴·프로그램 단위 fact 만
|
||||
*/
|
||||
unit_id?: string | null;
|
||||
publishable_only?: boolean;
|
||||
/**
|
||||
* 객실·메뉴·프로그램 단위 fact 만
|
||||
*/
|
||||
unit_id?: string | null;
|
||||
publishable_only?: boolean;
|
||||
};
|
||||
@@ -6,5 +6,5 @@
|
||||
*/
|
||||
|
||||
export type ListFaqsParams = {
|
||||
publishable_only?: boolean;
|
||||
publishable_only?: boolean;
|
||||
};
|
||||
@@ -6,5 +6,5 @@
|
||||
*/
|
||||
|
||||
export type ListLinksParams = {
|
||||
confirmed_only?: boolean;
|
||||
confirmed_only?: boolean;
|
||||
};
|
||||
@@ -6,9 +6,9 @@
|
||||
*/
|
||||
|
||||
export type ListMediaParams = {
|
||||
/**
|
||||
* 객실·메뉴 단위 사진만
|
||||
*/
|
||||
unit_id?: string | null;
|
||||
publishable_only?: boolean;
|
||||
/**
|
||||
* 객실·메뉴 단위 사진만
|
||||
*/
|
||||
unit_id?: string | null;
|
||||
publishable_only?: boolean;
|
||||
};
|
||||
@@ -6,13 +6,13 @@
|
||||
*/
|
||||
|
||||
export type ListMySitesParams = {
|
||||
/**
|
||||
* @minimum 1
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 100
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 100
|
||||
*/
|
||||
size?: number;
|
||||
};
|
||||
@@ -4,29 +4,29 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { PlaceCategory } from './placeCategory';
|
||||
import type { PlaceStatus } from './placeStatus';
|
||||
import type { PlaceCategory } from "./placeCategory";
|
||||
import type { PlaceStatus } from "./placeStatus";
|
||||
|
||||
export type ListPlacesParams = {
|
||||
/**
|
||||
* 상호명·주소 부분일치
|
||||
*/
|
||||
search?: string | null;
|
||||
/**
|
||||
* 업종
|
||||
*/
|
||||
category?: PlaceCategory | null;
|
||||
/**
|
||||
* 상태
|
||||
*/
|
||||
status?: PlaceStatus | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 100
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* 상호명·주소 부분일치
|
||||
*/
|
||||
search?: string | null;
|
||||
/**
|
||||
* 업종
|
||||
*/
|
||||
category?: PlaceCategory | null;
|
||||
/**
|
||||
* 상태
|
||||
*/
|
||||
status?: PlaceStatus | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 100
|
||||
*/
|
||||
size?: number;
|
||||
};
|
||||
@@ -6,10 +6,10 @@
|
||||
*/
|
||||
|
||||
export type ListShowcaseParams = {
|
||||
/**
|
||||
* 가져올 개수
|
||||
* @minimum 1
|
||||
* @maximum 48
|
||||
*/
|
||||
limit?: number;
|
||||
/**
|
||||
* 가져올 개수
|
||||
* @minimum 1
|
||||
* @maximum 48
|
||||
*/
|
||||
limit?: number;
|
||||
};
|
||||
@@ -4,16 +4,16 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { LocalContentType } from './localContentType';
|
||||
import type { LocalSource } from './localSource';
|
||||
import type { LocalContentDataExternalId } from './localContentDataExternalId';
|
||||
import type { LocalContentDataTitle } from './localContentDataTitle';
|
||||
import type { LocalContentDataBody } from './localContentDataBody';
|
||||
import type { LocalContentStatus } from './localContentStatus';
|
||||
import type { LocalContentDataCollectedAt } from './localContentDataCollectedAt';
|
||||
import type { LocalContentDataPublishedAt } from './localContentDataPublishedAt';
|
||||
import type { LocalContentDataDisplayStartAt } from './localContentDataDisplayStartAt';
|
||||
import type { LocalContentDataDisplayEndAt } from './localContentDataDisplayEndAt';
|
||||
import type { LocalContentType } from "./localContentType";
|
||||
import type { LocalSource } from "./localSource";
|
||||
import type { LocalContentDataExternalId } from "./localContentDataExternalId";
|
||||
import type { LocalContentDataTitle } from "./localContentDataTitle";
|
||||
import type { LocalContentDataBody } from "./localContentDataBody";
|
||||
import type { LocalContentStatus } from "./localContentStatus";
|
||||
import type { LocalContentDataCollectedAt } from "./localContentDataCollectedAt";
|
||||
import type { LocalContentDataPublishedAt } from "./localContentDataPublishedAt";
|
||||
import type { LocalContentDataDisplayStartAt } from "./localContentDataDisplayStartAt";
|
||||
import type { LocalContentDataDisplayEndAt } from "./localContentDataDisplayEndAt";
|
||||
|
||||
export interface LocalContentData {
|
||||
local_content_id: string;
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
/**
|
||||
* 운영 관리자가 검수하는 지역 콘텐츠 발행 상태.
|
||||
*/
|
||||
export type LocalContentStatus = typeof LocalContentStatus[keyof typeof LocalContentStatus];
|
||||
|
||||
export type LocalContentStatus =
|
||||
(typeof LocalContentStatus)[keyof typeof LocalContentStatus];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const LocalContentStatus = {
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
/**
|
||||
* local_contents.content_type 코드값. 행정구역 코드 단위로 캐싱되는 지역 정보 종류.
|
||||
*/
|
||||
export type LocalContentType = typeof LocalContentType[keyof typeof LocalContentType];
|
||||
|
||||
export type LocalContentType =
|
||||
(typeof LocalContentType)[keyof typeof LocalContentType];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const LocalContentType = {
|
||||
@@ -17,4 +17,6 @@ export const LocalContentType = {
|
||||
FESTIVAL: 2,
|
||||
ATTRACTION: 3,
|
||||
RESTAURANT: 4,
|
||||
COURSE: 5,
|
||||
STORY: 6,
|
||||
} as const;
|
||||
@@ -8,8 +8,7 @@
|
||||
/**
|
||||
* local_contents.source 코드값. 어느 외부 API 에서 왔는지.
|
||||
*/
|
||||
export type LocalSource = typeof LocalSource[keyof typeof LocalSource];
|
||||
|
||||
export type LocalSource = (typeof LocalSource)[keyof typeof LocalSource];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const LocalSource = {
|
||||
@@ -17,4 +16,6 @@ export const LocalSource = {
|
||||
TOUR_API: 2,
|
||||
KAKAO_LOCAL: 3,
|
||||
OFFICIAL_WEB: 4,
|
||||
LLM: 5,
|
||||
NAVER_CRAWL: 6,
|
||||
} as const;
|
||||
@@ -4,17 +4,17 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { MediaDataUnitId } from './mediaDataUnitId';
|
||||
import type { MediaDataOriginUrl } from './mediaDataOriginUrl';
|
||||
import type { SourceType } from './sourceType';
|
||||
import type { MediaDataSourceUrl } from './mediaDataSourceUrl';
|
||||
import type { MediaDataLabel } from './mediaDataLabel';
|
||||
import type { MediaDataAltText } from './mediaDataAltText';
|
||||
import type { MediaDataVisionConfidence } from './mediaDataVisionConfidence';
|
||||
import type { MediaStatus } from './mediaStatus';
|
||||
import type { MediaDataWidth } from './mediaDataWidth';
|
||||
import type { MediaDataHeight } from './mediaDataHeight';
|
||||
import type { MediaDataCreatedAt } from './mediaDataCreatedAt';
|
||||
import type { MediaDataUnitId } from "./mediaDataUnitId";
|
||||
import type { MediaDataOriginUrl } from "./mediaDataOriginUrl";
|
||||
import type { SourceType } from "./sourceType";
|
||||
import type { MediaDataSourceUrl } from "./mediaDataSourceUrl";
|
||||
import type { MediaDataLabel } from "./mediaDataLabel";
|
||||
import type { MediaDataAltText } from "./mediaDataAltText";
|
||||
import type { MediaDataVisionConfidence } from "./mediaDataVisionConfidence";
|
||||
import type { MediaStatus } from "./mediaStatus";
|
||||
import type { MediaDataWidth } from "./mediaDataWidth";
|
||||
import type { MediaDataHeight } from "./mediaDataHeight";
|
||||
import type { MediaDataCreatedAt } from "./mediaDataCreatedAt";
|
||||
|
||||
/**
|
||||
* 사진 1건.
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
/**
|
||||
* media.status 코드값. 비전 결과 신뢰도가 낮으면 자동 반영하지 않고 PENDING_REVIEW 로 둔다.
|
||||
*/
|
||||
export type MediaStatus = typeof MediaStatus[keyof typeof MediaStatus];
|
||||
|
||||
export type MediaStatus = (typeof MediaStatus)[keyof typeof MediaStatus];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const MediaStatus = {
|
||||
|
||||
@@ -4,16 +4,16 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { PlaceCategory } from './placeCategory';
|
||||
import type { PlaceStatus } from './placeStatus';
|
||||
import type { MySiteDataRoadAddress } from './mySiteDataRoadAddress';
|
||||
import type { MySiteDataCreatedAt } from './mySiteDataCreatedAt';
|
||||
import type { MySiteDataSiteId } from './mySiteDataSiteId';
|
||||
import type { MySiteDataStatus } from './mySiteDataStatus';
|
||||
import type { MySiteDataDomain } from './mySiteDataDomain';
|
||||
import type { MySiteDataTemplateId } from './mySiteDataTemplateId';
|
||||
import type { MySiteDataPublishedAt } from './mySiteDataPublishedAt';
|
||||
import type { MySiteDataThumbnailUrl } from './mySiteDataThumbnailUrl';
|
||||
import type { PlaceCategory } from "./placeCategory";
|
||||
import type { PlaceStatus } from "./placeStatus";
|
||||
import type { MySiteDataRoadAddress } from "./mySiteDataRoadAddress";
|
||||
import type { MySiteDataCreatedAt } from "./mySiteDataCreatedAt";
|
||||
import type { MySiteDataSiteId } from "./mySiteDataSiteId";
|
||||
import type { MySiteDataStatus } from "./mySiteDataStatus";
|
||||
import type { MySiteDataDomain } from "./mySiteDataDomain";
|
||||
import type { MySiteDataTemplateId } from "./mySiteDataTemplateId";
|
||||
import type { MySiteDataPublishedAt } from "./mySiteDataPublishedAt";
|
||||
import type { MySiteDataThumbnailUrl } from "./mySiteDataThumbnailUrl";
|
||||
|
||||
/**
|
||||
* 내 사이트 목록의 한 줄 — 사업장(place) + 사이트(site).
|
||||
@@ -33,7 +33,6 @@ export interface MySiteData {
|
||||
domain?: MySiteDataDomain;
|
||||
template_id?: MySiteDataTemplateId;
|
||||
published_at?: MySiteDataPublishedAt;
|
||||
/** 목록 카드의 그림. 발행에 성공해야 채워지고, 발행마다 `?v=` 가 바뀐다(site_thumbnail.public_url). */
|
||||
thumbnail_url?: MySiteDataThumbnailUrl;
|
||||
needs_rebuild?: boolean;
|
||||
}
|
||||
@@ -4,6 +4,6 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { SiteStatus } from './siteStatus';
|
||||
import type { SiteStatus } from "./siteStatus";
|
||||
|
||||
export type MySiteDataStatus = SiteStatus | null;
|
||||
@@ -4,15 +4,15 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { PlaceCandidateExternalPlaceId } from './placeCandidateExternalPlaceId';
|
||||
import type { PlaceCandidateRoadAddress } from './placeCandidateRoadAddress';
|
||||
import type { PlaceCandidateAddress } from './placeCandidateAddress';
|
||||
import type { PlaceCandidatePhone } from './placeCandidatePhone';
|
||||
import type { PlaceCandidateLatitude } from './placeCandidateLatitude';
|
||||
import type { PlaceCandidateLongitude } from './placeCandidateLongitude';
|
||||
import type { PlaceCandidateCategoryName } from './placeCandidateCategoryName';
|
||||
import type { PlaceCandidatePlaceUrl } from './placeCandidatePlaceUrl';
|
||||
import type { PlaceCandidateNaverPlaceUrl } from './placeCandidateNaverPlaceUrl';
|
||||
import type { PlaceCandidateExternalPlaceId } from "./placeCandidateExternalPlaceId";
|
||||
import type { PlaceCandidateRoadAddress } from "./placeCandidateRoadAddress";
|
||||
import type { PlaceCandidateAddress } from "./placeCandidateAddress";
|
||||
import type { PlaceCandidatePhone } from "./placeCandidatePhone";
|
||||
import type { PlaceCandidateLatitude } from "./placeCandidateLatitude";
|
||||
import type { PlaceCandidateLongitude } from "./placeCandidateLongitude";
|
||||
import type { PlaceCandidateCategoryName } from "./placeCandidateCategoryName";
|
||||
import type { PlaceCandidatePlaceUrl } from "./placeCandidatePlaceUrl";
|
||||
import type { PlaceCandidateNaverPlaceUrl } from "./placeCandidateNaverPlaceUrl";
|
||||
|
||||
/**
|
||||
* 외부 장소 DB 에서 찾은 후보 1건. UI 가 이걸 카드로 그려 사람이 고른다.
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
* places.category 코드값. 업종 — 스키마 파일(common/category_schema/resources/*.json)과 1:1.
|
||||
업종 추가 = 여기에 코드 추가 + 스키마 파일 1개 추가.
|
||||
*/
|
||||
export type PlaceCategory = typeof PlaceCategory[keyof typeof PlaceCategory];
|
||||
|
||||
export type PlaceCategory = (typeof PlaceCategory)[keyof typeof PlaceCategory];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const PlaceCategory = {
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { LocalContentType } from "./localContentType";
|
||||
import type { PlaceContentDataBody } from "./placeContentDataBody";
|
||||
import type { PlaceContentDataDisplayEndAt } from "./placeContentDataDisplayEndAt";
|
||||
import type { PlaceContentDataCollectedAt } from "./placeContentDataCollectedAt";
|
||||
|
||||
/**
|
||||
* 업장 반경 주변정보 1건(admin 목록용).
|
||||
*/
|
||||
export interface PlaceContentData {
|
||||
place_content_id: string;
|
||||
place_id: string;
|
||||
content_type: LocalContentType;
|
||||
external_id: string;
|
||||
title: string;
|
||||
body: PlaceContentDataBody;
|
||||
distance_m: number;
|
||||
has_image: boolean;
|
||||
hidden: boolean;
|
||||
display_end_at?: PlaceContentDataDisplayEndAt;
|
||||
collected_at?: PlaceContentDataCollectedAt;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type PlaceContentDataBody = { [key: string]: unknown };
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type PlaceContentDataCollectedAt = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type PlaceContentDataDisplayEndAt = string | null;
|
||||
@@ -4,20 +4,20 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { PlaceCategory } from './placeCategory';
|
||||
import type { PlaceStatus } from './placeStatus';
|
||||
import type { PlaceDataOwnerUserId } from './placeDataOwnerUserId';
|
||||
import type { PlaceDataExternalSource } from './placeDataExternalSource';
|
||||
import type { PlaceDataExternalPlaceId } from './placeDataExternalPlaceId';
|
||||
import type { PlaceDataRoadAddress } from './placeDataRoadAddress';
|
||||
import type { PlaceDataAddress } from './placeDataAddress';
|
||||
import type { PlaceDataPhone } from './placeDataPhone';
|
||||
import type { PlaceDataLatitude } from './placeDataLatitude';
|
||||
import type { PlaceDataLongitude } from './placeDataLongitude';
|
||||
import type { PlaceDataRegionCode } from './placeDataRegionCode';
|
||||
import type { PlaceDataVerifiedAt } from './placeDataVerifiedAt';
|
||||
import type { PlaceDataContentUpdatedAt } from './placeDataContentUpdatedAt';
|
||||
import type { PlaceDataCreatedAt } from './placeDataCreatedAt';
|
||||
import type { PlaceCategory } from "./placeCategory";
|
||||
import type { PlaceStatus } from "./placeStatus";
|
||||
import type { PlaceDataOwnerUserId } from "./placeDataOwnerUserId";
|
||||
import type { PlaceDataExternalSource } from "./placeDataExternalSource";
|
||||
import type { PlaceDataExternalPlaceId } from "./placeDataExternalPlaceId";
|
||||
import type { PlaceDataRoadAddress } from "./placeDataRoadAddress";
|
||||
import type { PlaceDataAddress } from "./placeDataAddress";
|
||||
import type { PlaceDataPhone } from "./placeDataPhone";
|
||||
import type { PlaceDataLatitude } from "./placeDataLatitude";
|
||||
import type { PlaceDataLongitude } from "./placeDataLongitude";
|
||||
import type { PlaceDataRegionCode } from "./placeDataRegionCode";
|
||||
import type { PlaceDataVerifiedAt } from "./placeDataVerifiedAt";
|
||||
import type { PlaceDataContentUpdatedAt } from "./placeDataContentUpdatedAt";
|
||||
import type { PlaceDataCreatedAt } from "./placeDataCreatedAt";
|
||||
|
||||
export interface PlaceData {
|
||||
place_id: string;
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ExternalPlaceSource } from './externalPlaceSource';
|
||||
import type { ExternalPlaceSource } from "./externalPlaceSource";
|
||||
|
||||
export type PlaceDataExternalSource = ExternalPlaceSource | null;
|
||||
@@ -4,9 +4,10 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { PlaceSearchItemRoadAddress } from './placeSearchItemRoadAddress';
|
||||
import type { PlaceSearchItemCategoryName } from './placeSearchItemCategoryName';
|
||||
import type { PlaceSearchItemCategory } from './placeSearchItemCategory';
|
||||
import type { PlaceSearchItemRoadAddress } from "./placeSearchItemRoadAddress";
|
||||
import type { PlaceSearchItemCategoryName } from "./placeSearchItemCategoryName";
|
||||
import type { PlaceSearchItemCategory } from "./placeSearchItemCategory";
|
||||
import type { PlaceSearchItemNaverPlaceUrl } from "./placeSearchItemNaverPlaceUrl";
|
||||
|
||||
/**
|
||||
* 공개 검색 결과 1건.
|
||||
@@ -21,6 +22,5 @@ export interface PlaceSearchItem {
|
||||
road_address?: PlaceSearchItemRoadAddress;
|
||||
category_name?: PlaceSearchItemCategoryName;
|
||||
category?: PlaceSearchItemCategory;
|
||||
/** @nullable */
|
||||
naver_place_url?: string | null;
|
||||
naver_place_url?: PlaceSearchItemNaverPlaceUrl;
|
||||
}
|
||||
@@ -4,6 +4,6 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { PlaceCategory } from './placeCategory';
|
||||
import type { PlaceCategory } from "./placeCategory";
|
||||
|
||||
export type PlaceSearchItemCategory = PlaceCategory | null;
|
||||
@@ -9,8 +9,7 @@
|
||||
* places.status 코드값. 사업장 생애주기.
|
||||
해지는 삭제가 아니라 SUSPENDED 로의 상태 전이다(색인된 페이지를 갑자기 404 로 만들지 않는다).
|
||||
*/
|
||||
export type PlaceStatus = typeof PlaceStatus[keyof typeof PlaceStatus];
|
||||
|
||||
export type PlaceStatus = (typeof PlaceStatus)[keyof typeof PlaceStatus];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const PlaceStatus = {
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
/**
|
||||
* publish_logs.action 코드값.
|
||||
*/
|
||||
export type PublishAction = typeof PublishAction[keyof typeof PublishAction];
|
||||
|
||||
export type PublishAction = (typeof PublishAction)[keyof typeof PublishAction];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const PublishAction = {
|
||||
@@ -18,4 +17,5 @@ export const PublishAction = {
|
||||
REBUILD: 3,
|
||||
SUSPEND: 4,
|
||||
RESUME: 5,
|
||||
ROLLBACK: 6,
|
||||
} as const;
|
||||
@@ -4,11 +4,11 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { PublishAction } from './publishAction';
|
||||
import type { PublishResult } from './publishResult';
|
||||
import type { PublishLogDataRejectReason } from './publishLogDataRejectReason';
|
||||
import type { PublishLogDataDetail } from './publishLogDataDetail';
|
||||
import type { PublishLogDataCreatedAt } from './publishLogDataCreatedAt';
|
||||
import type { PublishAction } from "./publishAction";
|
||||
import type { PublishResult } from "./publishResult";
|
||||
import type { PublishLogDataRejectReason } from "./publishLogDataRejectReason";
|
||||
import type { PublishLogDataDetail } from "./publishLogDataDetail";
|
||||
import type { PublishLogDataCreatedAt } from "./publishLogDataCreatedAt";
|
||||
|
||||
export interface PublishLogData {
|
||||
publish_log_id: string;
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { PublishRejectReason } from './publishRejectReason';
|
||||
import type { PublishRejectReason } from "./publishRejectReason";
|
||||
|
||||
export type PublishLogDataRejectReason = PublishRejectReason | null;
|
||||
@@ -8,8 +8,8 @@
|
||||
/**
|
||||
* publish_logs.reject_reason 코드값. 검수 게이트가 발행을 막은 이유(절대규칙 1~3).
|
||||
*/
|
||||
export type PublishRejectReason = typeof PublishRejectReason[keyof typeof PublishRejectReason];
|
||||
|
||||
export type PublishRejectReason =
|
||||
(typeof PublishRejectReason)[keyof typeof PublishRejectReason];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const PublishRejectReason = {
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
/**
|
||||
* publish_logs.result 코드값.
|
||||
*/
|
||||
export type PublishResult = typeof PublishResult[keyof typeof PublishResult];
|
||||
|
||||
export type PublishResult = (typeof PublishResult)[keyof typeof PublishResult];
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const PublishResult = {
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type RelayParams = {
|
||||
/**
|
||||
* @minLength 8
|
||||
* @maxLength 2000
|
||||
*/
|
||||
url: string;
|
||||
};
|
||||
@@ -4,9 +4,9 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { RenderStatusDataRenderedAt } from './renderStatusDataRenderedAt';
|
||||
import type { RenderStatusDataRenderedVersion } from './renderStatusDataRenderedVersion';
|
||||
import type { RenderStatusDataError } from './renderStatusDataError';
|
||||
import type { RenderStatusDataRenderedAt } from "./renderStatusDataRenderedAt";
|
||||
import type { RenderStatusDataRenderedVersion } from "./renderStatusDataRenderedVersion";
|
||||
import type { RenderStatusDataError } from "./renderStatusDataError";
|
||||
|
||||
/**
|
||||
* 정적 페이지가 실제로 구워졌는지. 프리렌더가 남긴 보고서를 그대로 옮긴다.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqCreateFaqSortOrder } from './reqCreateFaqSortOrder';
|
||||
import type { ReqCreateFaqSortOrder } from "./reqCreateFaqSortOrder";
|
||||
|
||||
/**
|
||||
* 사장님이 직접 쓴 FAQ.
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { LinkChannel } from './linkChannel';
|
||||
import type { ReqCreateLinkTitle } from './reqCreateLinkTitle';
|
||||
import type { SourceType } from './sourceType';
|
||||
import type { LinkChannel } from "./linkChannel";
|
||||
import type { ReqCreateLinkTitle } from "./reqCreateLinkTitle";
|
||||
import type { SourceType } from "./sourceType";
|
||||
|
||||
export interface ReqCreateLink {
|
||||
channel?: LinkChannel;
|
||||
|
||||
@@ -4,11 +4,9 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { PlaceCategory } from './placeCategory';
|
||||
import type { ReqCreatePlaceOwnerUserId } from './reqCreatePlaceOwnerUserId';
|
||||
import type { PlaceCategory } from "./placeCategory";
|
||||
|
||||
export interface ReqCreatePlace {
|
||||
name?: string;
|
||||
category?: PlaceCategory;
|
||||
owner_user_id?: ReqCreatePlaceOwnerUserId;
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export interface ReqHidePlaceContent {
|
||||
hidden: boolean;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
/**
|
||||
* 예전 버전으로 공개 주소를 되돌린다.
|
||||
|
||||
★ 재굽기가 아니다 — 대상 버전이 디스크에 아직 있으면 심볼릭 링크만 돌린다. 지워졌으면
|
||||
(보관 정책, prerender.ts pruneOldVersions) site_versions.snapshot 으로 다시 굽고 나서
|
||||
돌린다. 어느 경우든 게이트를 다시 통과해야 한다(사장님이 이미 확인한 값이라 대개는
|
||||
그대로 통과한다).
|
||||
*/
|
||||
export interface ReqRollback {
|
||||
target_version: number;
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqSignupName } from './reqSignupName';
|
||||
import type { ReqSignupName } from "./reqSignupName";
|
||||
|
||||
/**
|
||||
* id/pw 가입. 가입 = 계정 1개다.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { PublishAction } from './publishAction';
|
||||
import type { PublishAction } from "./publishAction";
|
||||
|
||||
/**
|
||||
* 발행 상태 전이. ★ 해지는 삭제가 아니라 상태 전이다 —
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqSiteThemeTheme } from './reqSiteThemeTheme';
|
||||
import type { ReqSiteThemeTheme } from "./reqSiteThemeTheme";
|
||||
|
||||
/**
|
||||
* 디자인(색·서체·섹션) 저장. 에디터 좌측 패널과 [디자인] 탭이 만든 결과 그대로 온다.
|
||||
|
||||
@@ -10,4 +10,6 @@
|
||||
|
||||
★ 확인된 fact 만 근거로 쓴다. 근거가 없으면 생성하지 않는다(유료 호출조차 안 한다).
|
||||
*/
|
||||
export interface ReqStartCopy { [key: string]: unknown }
|
||||
export interface ReqStartCopy {
|
||||
[key: string]: unknown;
|
||||
}
|
||||
@@ -1,18 +0,0 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqSyncFestivalsAreaCode } from './reqSyncFestivalsAreaCode';
|
||||
import type { ReqSyncFestivalsStartDate } from './reqSyncFestivalsStartDate';
|
||||
|
||||
export interface ReqSyncFestivals {
|
||||
/**
|
||||
* @minLength 1
|
||||
* @maxLength 10
|
||||
*/
|
||||
region_code: string;
|
||||
area_code?: ReqSyncFestivalsAreaCode;
|
||||
start_date?: ReqSyncFestivalsStartDate;
|
||||
}
|
||||
@@ -4,8 +4,8 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { FactStatus } from './factStatus';
|
||||
import type { ReqTransitionFactValue } from './reqTransitionFactValue';
|
||||
import type { FactStatus } from "./factStatus";
|
||||
import type { ReqTransitionFactValue } from "./reqTransitionFactValue";
|
||||
|
||||
/**
|
||||
* 검증 상태 전이. 허용 전이는 FACT_STATUS_TRANSITIONS 가 유일한 소스다.
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { FactStatus } from './factStatus';
|
||||
import type { ReqTransitionFaqQuestion } from './reqTransitionFaqQuestion';
|
||||
import type { ReqTransitionFaqAnswer } from './reqTransitionFaqAnswer';
|
||||
import type { FactStatus } from "./factStatus";
|
||||
import type { ReqTransitionFaqQuestion } from "./reqTransitionFaqQuestion";
|
||||
import type { ReqTransitionFaqAnswer } from "./reqTransitionFaqAnswer";
|
||||
|
||||
/**
|
||||
* 검증 상태 전이. 허용 전이는 fact 와 같은 표(FACT_STATUS_TRANSITIONS)가 유일한 소스다.
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqUpdateLocalContentTitle } from './reqUpdateLocalContentTitle';
|
||||
import type { ReqUpdateLocalContentBody } from './reqUpdateLocalContentBody';
|
||||
import type { ReqUpdateLocalContentDisplayStartAt } from './reqUpdateLocalContentDisplayStartAt';
|
||||
import type { ReqUpdateLocalContentDisplayEndAt } from './reqUpdateLocalContentDisplayEndAt';
|
||||
import type { ReqUpdateLocalContentTitle } from "./reqUpdateLocalContentTitle";
|
||||
import type { ReqUpdateLocalContentBody } from "./reqUpdateLocalContentBody";
|
||||
import type { ReqUpdateLocalContentDisplayStartAt } from "./reqUpdateLocalContentDisplayStartAt";
|
||||
import type { ReqUpdateLocalContentDisplayEndAt } from "./reqUpdateLocalContentDisplayEndAt";
|
||||
|
||||
export interface ReqUpdateLocalContent {
|
||||
title?: ReqUpdateLocalContentTitle;
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqUpdateLocalContentBodyAnyOf } from './reqUpdateLocalContentBodyAnyOf';
|
||||
import type { ReqUpdateLocalContentBodyAnyOf } from "./reqUpdateLocalContentBodyAnyOf";
|
||||
|
||||
export type ReqUpdateLocalContentBody = ReqUpdateLocalContentBodyAnyOf | null;
|
||||
@@ -4,10 +4,10 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqUpdateMeName } from './reqUpdateMeName';
|
||||
import type { ReqUpdateMeEmail } from './reqUpdateMeEmail';
|
||||
import type { ReqUpdateMeContactNumber } from './reqUpdateMeContactNumber';
|
||||
import type { ReqUpdateMePassword } from './reqUpdateMePassword';
|
||||
import type { ReqUpdateMeName } from "./reqUpdateMeName";
|
||||
import type { ReqUpdateMeEmail } from "./reqUpdateMeEmail";
|
||||
import type { ReqUpdateMeContactNumber } from "./reqUpdateMeContactNumber";
|
||||
import type { ReqUpdateMePassword } from "./reqUpdateMePassword";
|
||||
|
||||
export interface ReqUpdateMe {
|
||||
name?: ReqUpdateMeName;
|
||||
|
||||
@@ -4,12 +4,10 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqUpdatePlaceName } from './reqUpdatePlaceName';
|
||||
import type { ReqUpdatePlaceOwnerUserId } from './reqUpdatePlaceOwnerUserId';
|
||||
import type { ReqUpdatePlaceStatus } from './reqUpdatePlaceStatus';
|
||||
import type { ReqUpdatePlaceName } from "./reqUpdatePlaceName";
|
||||
import type { ReqUpdatePlaceStatus } from "./reqUpdatePlaceStatus";
|
||||
|
||||
export interface ReqUpdatePlace {
|
||||
name?: ReqUpdatePlaceName;
|
||||
owner_user_id?: ReqUpdatePlaceOwnerUserId;
|
||||
status?: ReqUpdatePlaceStatus;
|
||||
}
|
||||
@@ -4,6 +4,6 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { PlaceStatus } from './placeStatus';
|
||||
import type { PlaceStatus } from "./placeStatus";
|
||||
|
||||
export type ReqUpdatePlaceStatus = PlaceStatus | null;
|
||||
@@ -4,11 +4,11 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqUpsertFactValue } from './reqUpsertFactValue';
|
||||
import type { ReqUpsertFactUnitId } from './reqUpsertFactUnitId';
|
||||
import type { SourceType } from './sourceType';
|
||||
import type { ReqUpsertFactSourceUrl } from './reqUpsertFactSourceUrl';
|
||||
import type { ReqUpsertFactExpiresAt } from './reqUpsertFactExpiresAt';
|
||||
import type { ReqUpsertFactValue } from "./reqUpsertFactValue";
|
||||
import type { ReqUpsertFactUnitId } from "./reqUpsertFactUnitId";
|
||||
import type { SourceType } from "./sourceType";
|
||||
import type { ReqUpsertFactSourceUrl } from "./reqUpsertFactSourceUrl";
|
||||
import type { ReqUpsertFactExpiresAt } from "./reqUpsertFactExpiresAt";
|
||||
|
||||
/**
|
||||
* fact 기록. key 는 사업장 업종의 스키마에 있는 것만 허용한다.
|
||||
|
||||
@@ -4,14 +4,15 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ExternalPlaceSource } from './externalPlaceSource';
|
||||
import type { ReqVerifyPlacePlaceUrl } from './reqVerifyPlacePlaceUrl';
|
||||
import type { ReqVerifyPlaceRoadAddress } from './reqVerifyPlaceRoadAddress';
|
||||
import type { ReqVerifyPlaceAddress } from './reqVerifyPlaceAddress';
|
||||
import type { ReqVerifyPlacePhone } from './reqVerifyPlacePhone';
|
||||
import type { ReqVerifyPlaceLatitude } from './reqVerifyPlaceLatitude';
|
||||
import type { ReqVerifyPlaceLongitude } from './reqVerifyPlaceLongitude';
|
||||
import type { ReqVerifyPlaceRegionCode } from './reqVerifyPlaceRegionCode';
|
||||
import type { ExternalPlaceSource } from "./externalPlaceSource";
|
||||
import type { ReqVerifyPlacePlaceUrl } from "./reqVerifyPlacePlaceUrl";
|
||||
import type { ReqVerifyPlaceRoadAddress } from "./reqVerifyPlaceRoadAddress";
|
||||
import type { ReqVerifyPlaceAddress } from "./reqVerifyPlaceAddress";
|
||||
import type { ReqVerifyPlacePhone } from "./reqVerifyPlacePhone";
|
||||
import type { ReqVerifyPlaceLatitude } from "./reqVerifyPlaceLatitude";
|
||||
import type { ReqVerifyPlaceLongitude } from "./reqVerifyPlaceLongitude";
|
||||
import type { ReqVerifyPlaceRegionCode } from "./reqVerifyPlaceRegionCode";
|
||||
import type { ReqVerifyPlaceCategoryName } from "./reqVerifyPlaceCategoryName";
|
||||
|
||||
/**
|
||||
* 카카오 로컬 조회 결과를 사업장에 박제한다(동일 업소 확정).
|
||||
@@ -30,4 +31,5 @@ export interface ReqVerifyPlace {
|
||||
latitude?: ReqVerifyPlaceLatitude;
|
||||
longitude?: ReqVerifyPlaceLongitude;
|
||||
region_code?: ReqVerifyPlaceRegionCode;
|
||||
category_name?: ReqVerifyPlaceCategoryName;
|
||||
}
|
||||
+1
-1
@@ -5,4 +5,4 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ReqCreatePlaceOwnerUserId = string | null;
|
||||
export type ReqVerifyPlaceCategoryName = string | null;
|
||||
@@ -4,11 +4,11 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResCategorySchemaMsg } from './resCategorySchemaMsg';
|
||||
import type { ResCategorySchemaCategory } from './resCategorySchemaCategory';
|
||||
import type { ResCategorySchemaLabel } from './resCategorySchemaLabel';
|
||||
import type { FieldSpecData } from './fieldSpecData';
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResCategorySchemaMsg } from "./resCategorySchemaMsg";
|
||||
import type { ResCategorySchemaCategory } from "./resCategorySchemaCategory";
|
||||
import type { ResCategorySchemaLabel } from "./resCategorySchemaLabel";
|
||||
import type { FieldSpecData } from "./fieldSpecData";
|
||||
|
||||
export interface ResCategorySchema {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResExtractFactsMsg } from './resExtractFactsMsg';
|
||||
import type { ResExtractedFact } from './resExtractedFact';
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResExtractFactsMsg } from "./resExtractFactsMsg";
|
||||
import type { ResExtractedFact } from "./resExtractedFact";
|
||||
|
||||
/**
|
||||
* 뽑힌 것과 버려진 것을 **둘 다** 돌려준다.
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ResExtractedFactUnitName } from './resExtractedFactUnitName';
|
||||
import type { ResExtractedFactReason } from './resExtractedFactReason';
|
||||
import type { ResExtractedFactUnitName } from "./resExtractedFactUnitName";
|
||||
import type { ResExtractedFactReason } from "./resExtractedFactReason";
|
||||
|
||||
export interface ResExtractedFact {
|
||||
key?: string;
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResFactMsg } from './resFactMsg';
|
||||
import type { ResFactFact } from './resFactFact';
|
||||
import type { ResFactOutcome } from './resFactOutcome';
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResFactMsg } from "./resFactMsg";
|
||||
import type { ResFactFact } from "./resFactFact";
|
||||
import type { ResFactOutcome } from "./resFactOutcome";
|
||||
|
||||
export interface ResFact {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { FactData } from './factData';
|
||||
import type { FactData } from "./factData";
|
||||
|
||||
export type ResFactFact = FactData | null;
|
||||
@@ -4,9 +4,9 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResFactListMsg } from './resFactListMsg';
|
||||
import type { FactData } from './factData';
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResFactListMsg } from "./resFactListMsg";
|
||||
import type { FactData } from "./factData";
|
||||
|
||||
export interface ResFactList {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { FactWriteOutcome } from './factWriteOutcome';
|
||||
import type { FactWriteOutcome } from "./factWriteOutcome";
|
||||
|
||||
export type ResFactOutcome = FactWriteOutcome | null;
|
||||
@@ -4,9 +4,9 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResFaqMsg } from './resFaqMsg';
|
||||
import type { ResFaqFaq } from './resFaqFaq';
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResFaqMsg } from "./resFaqMsg";
|
||||
import type { ResFaqFaq } from "./resFaqFaq";
|
||||
|
||||
export interface ResFaq {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { FaqData } from './faqData';
|
||||
import type { FaqData } from "./faqData";
|
||||
|
||||
export type ResFaqFaq = FaqData | null;
|
||||
@@ -4,9 +4,9 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResFaqListMsg } from './resFaqListMsg';
|
||||
import type { FaqData } from './faqData';
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResFaqListMsg } from "./resFaqListMsg";
|
||||
import type { FaqData } from "./faqData";
|
||||
|
||||
export interface ResFaqList {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResJobMsg } from './resJobMsg';
|
||||
import type { ResJobJob } from './resJobJob';
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResJobMsg } from "./resJobMsg";
|
||||
import type { ResJobJob } from "./resJobJob";
|
||||
|
||||
/**
|
||||
* 잡 상태 폴링 응답. 수집·빌드는 몇 분 걸리므로 클라이언트가 이 엔드포인트를 폴링한다.
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { JobData } from './jobData';
|
||||
import type { JobData } from "./jobData";
|
||||
|
||||
export type ResJobJob = JobData | null;
|
||||
@@ -4,8 +4,8 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResJobOpsMsg } from './resJobOpsMsg';
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResJobOpsMsg } from "./resJobOpsMsg";
|
||||
|
||||
/**
|
||||
* 운영 스냅샷 — 큐 지연·DEAD·좀비 감시용.
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResLinkMsg } from './resLinkMsg';
|
||||
import type { ResLinkLink } from './resLinkLink';
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResLinkMsg } from "./resLinkMsg";
|
||||
import type { ResLinkLink } from "./resLinkLink";
|
||||
|
||||
export interface ResLink {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { LinkData } from './linkData';
|
||||
import type { LinkData } from "./linkData";
|
||||
|
||||
export type ResLinkLink = LinkData | null;
|
||||
@@ -4,9 +4,9 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResLinkListMsg } from './resLinkListMsg';
|
||||
import type { LinkData } from './linkData';
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResLinkListMsg } from "./resLinkListMsg";
|
||||
import type { LinkData } from "./linkData";
|
||||
|
||||
export interface ResLinkList {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResLocalContentListMsg } from './resLocalContentListMsg';
|
||||
import type { LocalContentData } from './localContentData';
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResLocalContentListMsg } from "./resLocalContentListMsg";
|
||||
import type { LocalContentData } from "./localContentData";
|
||||
|
||||
export interface ResLocalContentList {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Web4Ai API
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResLocalGuideMsg } from "./resLocalGuideMsg";
|
||||
import type { ResLocalGuideAttractionsItem } from "./resLocalGuideAttractionsItem";
|
||||
import type { ResLocalGuideRestaurantsItem } from "./resLocalGuideRestaurantsItem";
|
||||
import type { ResLocalGuideFestivalsItem } from "./resLocalGuideFestivalsItem";
|
||||
import type { ResLocalGuideCoursesItem } from "./resLocalGuideCoursesItem";
|
||||
import type { ResLocalGuideItinerariesItem } from "./resLocalGuideItinerariesItem";
|
||||
import type { ResLocalGuideSyncedAt } from "./resLocalGuideSyncedAt";
|
||||
|
||||
/**
|
||||
* 에디터 캔버스가 그리는 지역 가이드. ★ 항목 모양은 발행 payload 의 LocalContents 와 **동일**하다
|
||||
(services/site_payload._local 을 그대로 거친다) — 캔버스와 발행본이 다른 목록을 보이면 안 된다.
|
||||
*/
|
||||
export interface ResLocalGuide {
|
||||
result?: ErrorInfo;
|
||||
msg?: ResLocalGuideMsg;
|
||||
attractions?: ResLocalGuideAttractionsItem[];
|
||||
restaurants?: ResLocalGuideRestaurantsItem[];
|
||||
festivals?: ResLocalGuideFestivalsItem[];
|
||||
courses?: ResLocalGuideCoursesItem[];
|
||||
itineraries?: ResLocalGuideItinerariesItem[];
|
||||
synced_at?: ResLocalGuideSyncedAt;
|
||||
}
|
||||
Loaded 100 of 207 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user