chore: 프론트엔드 마이그레이션 + 아키텍처 정의
- 백엔드 SDK 이전: FastAPI OpenAPI → orval 자동생성 (React Query 훅 포함) - HTTP 어댑터: ky 기반 customFetcher, fetch httpClient 시그니처 - 아키텍처: features 모듈 / shared 레이어 컨벤션 정의 - 디자인 시스템: Tailwind v4 CSS-first 토큰 (브랜드 색 / status / shadcn) - 커스텀 CSS: utilities / animations 를 custom.css 로 분리 - Docker: 개발(Dockerfile.dev + compose) / 프로덕션(nginx) 셋업 - README: 기술 스펙 / 프로젝트 구조 / 디자인 토큰 / 폰트 / SDK 사용법 정리 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
commit
e66b208318
219 files changed
+36881
No files matched your search
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* orval이 생성하는 API 클라이언트의 HTTP 어댑터.
|
||||
*
|
||||
* - `kyInstance`: 공통 타임아웃·리트라이·훅(인증 토큰 주입, 401 처리 등 추후 추가) 설정
|
||||
* - `customFetcher`: orval `httpClient: 'fetch'` 모드의 custom mutator.
|
||||
* 생성된 코드가 `customFetcher(url, init)`로 호출하면 ky로 요청을 보내고,
|
||||
* 생성 타입이 기대하는 `{ status, data, headers }` 형태로 응답을 정규화함.
|
||||
*/
|
||||
import ky, { type KyInstance } from 'ky'
|
||||
|
||||
export const kyInstance: KyInstance = ky.create({
|
||||
timeout: 10_000,
|
||||
retry: 1,
|
||||
// orval generated 타입이 4xx/5xx 응답도 data로 받아오므로 throw 비활성
|
||||
throwHttpErrors: false,
|
||||
hooks: {
|
||||
beforeRequest: [
|
||||
// TODO: 인증 토큰 주입
|
||||
// request => {
|
||||
// const token = localStorage.getItem('token')
|
||||
// if (token) request.headers.set('Authorization', `Bearer ${token}`)
|
||||
// },
|
||||
],
|
||||
afterResponse: [
|
||||
// TODO: 401 처리, 토큰 갱신 등
|
||||
],
|
||||
},
|
||||
})
|
||||
|
||||
export const customFetcher = async <T>(
|
||||
url: string,
|
||||
init?: RequestInit,
|
||||
): Promise<T> => {
|
||||
const response = await kyInstance(url, init as Parameters<KyInstance>[1])
|
||||
let data: unknown = null
|
||||
try {
|
||||
data = await response.json()
|
||||
} catch {
|
||||
// 빈 응답이거나 JSON 파싱 실패
|
||||
}
|
||||
return { status: response.status, data, headers: response.headers } as T
|
||||
}
|
||||
|
||||
export default customFetcher
|
||||
@@ -0,0 +1,248 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import {
|
||||
useMutation,
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
DefinedUseQueryResult,
|
||||
MutationFunction,
|
||||
QueryClient,
|
||||
QueryFunction,
|
||||
QueryKey,
|
||||
UndefinedInitialDataOptions,
|
||||
UseMutationOptions,
|
||||
UseMutationResult,
|
||||
UseQueryOptions,
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import type {
|
||||
AnalysisCreate,
|
||||
AnalysisStartResponse,
|
||||
AnalysisStatusResponse,
|
||||
HTTPValidationError
|
||||
} from '../../model';
|
||||
|
||||
import { customFetcher } from '../../api';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @summary Start Analysis
|
||||
*/
|
||||
export type startAnalysisResponse202 = {
|
||||
data: AnalysisStartResponse
|
||||
status: 202
|
||||
}
|
||||
|
||||
export type startAnalysisResponse422 = {
|
||||
data: HTTPValidationError
|
||||
status: 422
|
||||
}
|
||||
|
||||
export type startAnalysisResponseSuccess = (startAnalysisResponse202) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type startAnalysisResponseError = (startAnalysisResponse422) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type startAnalysisResponse = (startAnalysisResponseSuccess | startAnalysisResponseError)
|
||||
|
||||
export const getStartAnalysisUrl = () => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/analyses`
|
||||
}
|
||||
|
||||
export const startAnalysis = async (analysisCreate: AnalysisCreate, options?: RequestInit): Promise<startAnalysisResponse> => {
|
||||
|
||||
return customFetcher<startAnalysisResponse>(getStartAnalysisUrl(),
|
||||
{
|
||||
...options,
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
||||
body: JSON.stringify(
|
||||
analysisCreate,)
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
export const getStartAnalysisMutationOptions = <TError = HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof startAnalysis>>, TError,{data: AnalysisCreate}, TContext>, request?: SecondParameter<typeof customFetcher>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof startAnalysis>>, TError,{data: AnalysisCreate}, TContext> => {
|
||||
|
||||
const mutationKey = ['startAnalysis'];
|
||||
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};
|
||||
|
||||
|
||||
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof startAnalysis>>, {data: AnalysisCreate}> = (props) => {
|
||||
const {data} = props ?? {};
|
||||
|
||||
return startAnalysis(data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type StartAnalysisMutationResult = NonNullable<Awaited<ReturnType<typeof startAnalysis>>>
|
||||
export type StartAnalysisMutationBody = AnalysisCreate
|
||||
export type StartAnalysisMutationError = HTTPValidationError
|
||||
|
||||
/**
|
||||
* @summary Start Analysis
|
||||
*/
|
||||
export const useStartAnalysis = <TError = HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof startAnalysis>>, TError,{data: AnalysisCreate}, TContext>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof startAnalysis>>,
|
||||
TError,
|
||||
{data: AnalysisCreate},
|
||||
TContext
|
||||
> => {
|
||||
|
||||
const mutationOptions = getStartAnalysisMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
* @summary Get Analysis Status
|
||||
*/
|
||||
export type getAnalysisStatusResponse200 = {
|
||||
data: AnalysisStatusResponse
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getAnalysisStatusResponse422 = {
|
||||
data: HTTPValidationError
|
||||
status: 422
|
||||
}
|
||||
|
||||
export type getAnalysisStatusResponseSuccess = (getAnalysisStatusResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getAnalysisStatusResponseError = (getAnalysisStatusResponse422) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getAnalysisStatusResponse = (getAnalysisStatusResponseSuccess | getAnalysisStatusResponseError)
|
||||
|
||||
export const getGetAnalysisStatusUrl = (runId: string,) => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/analyses/${runId}/status`
|
||||
}
|
||||
|
||||
export const getAnalysisStatus = async (runId: string, options?: RequestInit): Promise<getAnalysisStatusResponse> => {
|
||||
|
||||
return customFetcher<getAnalysisStatusResponse>(getGetAnalysisStatusUrl(runId),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetAnalysisStatusQueryKey = (runId?: string,) => {
|
||||
return [
|
||||
`/api/analyses/${runId}/status`
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetAnalysisStatusQueryOptions = <TData = Awaited<ReturnType<typeof getAnalysisStatus>>, TError = HTTPValidationError>(runId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAnalysisStatus>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetAnalysisStatusQueryKey(runId);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getAnalysisStatus>>> = () => getAnalysisStatus(runId, requestOptions);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, enabled: !!(runId), staleTime: 60000, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getAnalysisStatus>>, TError, TData> & { queryKey: DataTag<QueryKey, TData> }
|
||||
}
|
||||
|
||||
export type GetAnalysisStatusQueryResult = NonNullable<Awaited<ReturnType<typeof getAnalysisStatus>>>
|
||||
export type GetAnalysisStatusQueryError = HTTPValidationError
|
||||
|
||||
|
||||
export function useGetAnalysisStatus<TData = Awaited<ReturnType<typeof getAnalysisStatus>>, TError = HTTPValidationError>(
|
||||
runId: string, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAnalysisStatus>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getAnalysisStatus>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getAnalysisStatus>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
export function useGetAnalysisStatus<TData = Awaited<ReturnType<typeof getAnalysisStatus>>, TError = HTTPValidationError>(
|
||||
runId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAnalysisStatus>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getAnalysisStatus>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getAnalysisStatus>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
export function useGetAnalysisStatus<TData = Awaited<ReturnType<typeof getAnalysisStatus>>, TError = HTTPValidationError>(
|
||||
runId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAnalysisStatus>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
/**
|
||||
* @summary Get Analysis Status
|
||||
*/
|
||||
|
||||
export function useGetAnalysisStatus<TData = Awaited<ReturnType<typeof getAnalysisStatus>>, TError = HTTPValidationError>(
|
||||
runId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getAnalysisStatus>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {
|
||||
|
||||
const queryOptions = getGetAnalysisStatusQueryOptions(runId,options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,120 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import {
|
||||
useMutation
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
MutationFunction,
|
||||
QueryClient,
|
||||
UseMutationOptions,
|
||||
UseMutationResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import type {
|
||||
ChannelVerifyRequest,
|
||||
ChannelVerifyResponse,
|
||||
HTTPValidationError
|
||||
} from '../../model';
|
||||
|
||||
import { customFetcher } from '../../api';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @summary Verify Channels
|
||||
*/
|
||||
export type verifyChannelsResponse200 = {
|
||||
data: ChannelVerifyResponse
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type verifyChannelsResponse422 = {
|
||||
data: HTTPValidationError
|
||||
status: 422
|
||||
}
|
||||
|
||||
export type verifyChannelsResponseSuccess = (verifyChannelsResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type verifyChannelsResponseError = (verifyChannelsResponse422) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type verifyChannelsResponse = (verifyChannelsResponseSuccess | verifyChannelsResponseError)
|
||||
|
||||
export const getVerifyChannelsUrl = () => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/channels/verify`
|
||||
}
|
||||
|
||||
export const verifyChannels = async (channelVerifyRequest: ChannelVerifyRequest, options?: RequestInit): Promise<verifyChannelsResponse> => {
|
||||
|
||||
return customFetcher<verifyChannelsResponse>(getVerifyChannelsUrl(),
|
||||
{
|
||||
...options,
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
||||
body: JSON.stringify(
|
||||
channelVerifyRequest,)
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
export const getVerifyChannelsMutationOptions = <TError = HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof verifyChannels>>, TError,{data: ChannelVerifyRequest}, TContext>, request?: SecondParameter<typeof customFetcher>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof verifyChannels>>, TError,{data: ChannelVerifyRequest}, TContext> => {
|
||||
|
||||
const mutationKey = ['verifyChannels'];
|
||||
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};
|
||||
|
||||
|
||||
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof verifyChannels>>, {data: ChannelVerifyRequest}> = (props) => {
|
||||
const {data} = props ?? {};
|
||||
|
||||
return verifyChannels(data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type VerifyChannelsMutationResult = NonNullable<Awaited<ReturnType<typeof verifyChannels>>>
|
||||
export type VerifyChannelsMutationBody = ChannelVerifyRequest
|
||||
export type VerifyChannelsMutationError = HTTPValidationError
|
||||
|
||||
/**
|
||||
* @summary Verify Channels
|
||||
*/
|
||||
export const useVerifyChannels = <TError = HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof verifyChannels>>, TError,{data: ChannelVerifyRequest}, TContext>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof verifyChannels>>,
|
||||
TError,
|
||||
{data: ChannelVerifyRequest},
|
||||
TContext
|
||||
> => {
|
||||
|
||||
const mutationOptions = getVerifyChannelsMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,248 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import {
|
||||
useMutation,
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
DefinedUseQueryResult,
|
||||
MutationFunction,
|
||||
QueryClient,
|
||||
QueryFunction,
|
||||
QueryKey,
|
||||
UndefinedInitialDataOptions,
|
||||
UseMutationOptions,
|
||||
UseMutationResult,
|
||||
UseQueryOptions,
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import type {
|
||||
ClinicCreate,
|
||||
ClinicCreateResponse,
|
||||
ClinicHistoryResponse,
|
||||
HTTPValidationError
|
||||
} from '../../model';
|
||||
|
||||
import { customFetcher } from '../../api';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @summary Create Clinic
|
||||
*/
|
||||
export type createClinicResponse201 = {
|
||||
data: ClinicCreateResponse
|
||||
status: 201
|
||||
}
|
||||
|
||||
export type createClinicResponse422 = {
|
||||
data: HTTPValidationError
|
||||
status: 422
|
||||
}
|
||||
|
||||
export type createClinicResponseSuccess = (createClinicResponse201) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type createClinicResponseError = (createClinicResponse422) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type createClinicResponse = (createClinicResponseSuccess | createClinicResponseError)
|
||||
|
||||
export const getCreateClinicUrl = () => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/clinics`
|
||||
}
|
||||
|
||||
export const createClinic = async (clinicCreate: ClinicCreate, options?: RequestInit): Promise<createClinicResponse> => {
|
||||
|
||||
return customFetcher<createClinicResponse>(getCreateClinicUrl(),
|
||||
{
|
||||
...options,
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
||||
body: JSON.stringify(
|
||||
clinicCreate,)
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
export const getCreateClinicMutationOptions = <TError = HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createClinic>>, TError,{data: ClinicCreate}, TContext>, request?: SecondParameter<typeof customFetcher>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof createClinic>>, TError,{data: ClinicCreate}, TContext> => {
|
||||
|
||||
const mutationKey = ['createClinic'];
|
||||
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};
|
||||
|
||||
|
||||
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof createClinic>>, {data: ClinicCreate}> = (props) => {
|
||||
const {data} = props ?? {};
|
||||
|
||||
return createClinic(data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type CreateClinicMutationResult = NonNullable<Awaited<ReturnType<typeof createClinic>>>
|
||||
export type CreateClinicMutationBody = ClinicCreate
|
||||
export type CreateClinicMutationError = HTTPValidationError
|
||||
|
||||
/**
|
||||
* @summary Create Clinic
|
||||
*/
|
||||
export const useCreateClinic = <TError = HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createClinic>>, TError,{data: ClinicCreate}, TContext>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof createClinic>>,
|
||||
TError,
|
||||
{data: ClinicCreate},
|
||||
TContext
|
||||
> => {
|
||||
|
||||
const mutationOptions = getCreateClinicMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
* @summary Get Clinic History
|
||||
*/
|
||||
export type getClinicHistoryResponse200 = {
|
||||
data: ClinicHistoryResponse
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getClinicHistoryResponse422 = {
|
||||
data: HTTPValidationError
|
||||
status: 422
|
||||
}
|
||||
|
||||
export type getClinicHistoryResponseSuccess = (getClinicHistoryResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getClinicHistoryResponseError = (getClinicHistoryResponse422) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getClinicHistoryResponse = (getClinicHistoryResponseSuccess | getClinicHistoryResponseError)
|
||||
|
||||
export const getGetClinicHistoryUrl = (id: string,) => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/clinics/${id}/history`
|
||||
}
|
||||
|
||||
export const getClinicHistory = async (id: string, options?: RequestInit): Promise<getClinicHistoryResponse> => {
|
||||
|
||||
return customFetcher<getClinicHistoryResponse>(getGetClinicHistoryUrl(id),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetClinicHistoryQueryKey = (id?: string,) => {
|
||||
return [
|
||||
`/api/clinics/${id}/history`
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetClinicHistoryQueryOptions = <TData = Awaited<ReturnType<typeof getClinicHistory>>, TError = HTTPValidationError>(id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getClinicHistory>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetClinicHistoryQueryKey(id);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getClinicHistory>>> = () => getClinicHistory(id, requestOptions);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, enabled: !!(id), staleTime: 60000, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getClinicHistory>>, TError, TData> & { queryKey: DataTag<QueryKey, TData> }
|
||||
}
|
||||
|
||||
export type GetClinicHistoryQueryResult = NonNullable<Awaited<ReturnType<typeof getClinicHistory>>>
|
||||
export type GetClinicHistoryQueryError = HTTPValidationError
|
||||
|
||||
|
||||
export function useGetClinicHistory<TData = Awaited<ReturnType<typeof getClinicHistory>>, TError = HTTPValidationError>(
|
||||
id: string, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getClinicHistory>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getClinicHistory>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getClinicHistory>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
export function useGetClinicHistory<TData = Awaited<ReturnType<typeof getClinicHistory>>, TError = HTTPValidationError>(
|
||||
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getClinicHistory>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getClinicHistory>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getClinicHistory>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
export function useGetClinicHistory<TData = Awaited<ReturnType<typeof getClinicHistory>>, TError = HTTPValidationError>(
|
||||
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getClinicHistory>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
/**
|
||||
* @summary Get Clinic History
|
||||
*/
|
||||
|
||||
export function useGetClinicHistory<TData = Awaited<ReturnType<typeof getClinicHistory>>, TError = HTTPValidationError>(
|
||||
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getClinicHistory>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {
|
||||
|
||||
const queryOptions = getGetClinicHistoryQueryOptions(id,options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,140 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* 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 { customFetcher } from '../../api';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @summary Health
|
||||
*/
|
||||
export type healthHealthResponse200 = {
|
||||
data: unknown
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type healthHealthResponseSuccess = (healthHealthResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
;
|
||||
|
||||
export type healthHealthResponse = (healthHealthResponseSuccess)
|
||||
|
||||
export const getHealthHealthUrl = () => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/health`
|
||||
}
|
||||
|
||||
export const healthHealth = async ( options?: RequestInit): Promise<healthHealthResponse> => {
|
||||
|
||||
return customFetcher<healthHealthResponse>(getHealthHealthUrl(),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getHealthHealthQueryKey = () => {
|
||||
return [
|
||||
`/health`
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getHealthHealthQueryOptions = <TData = Awaited<ReturnType<typeof healthHealth>>, TError = unknown>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof healthHealth>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getHealthHealthQueryKey();
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof healthHealth>>> = () => healthHealth(requestOptions);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, staleTime: 60000, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof healthHealth>>, TError, TData> & { queryKey: DataTag<QueryKey, TData> }
|
||||
}
|
||||
|
||||
export type HealthHealthQueryResult = NonNullable<Awaited<ReturnType<typeof healthHealth>>>
|
||||
export type HealthHealthQueryError = unknown
|
||||
|
||||
|
||||
export function useHealthHealth<TData = Awaited<ReturnType<typeof healthHealth>>, TError = unknown>(
|
||||
options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof healthHealth>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof healthHealth>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof healthHealth>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
export function useHealthHealth<TData = Awaited<ReturnType<typeof healthHealth>>, TError = unknown>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof healthHealth>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof healthHealth>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof healthHealth>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
export function useHealthHealth<TData = Awaited<ReturnType<typeof healthHealth>>, TError = unknown>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof healthHealth>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
/**
|
||||
* @summary Health
|
||||
*/
|
||||
|
||||
export function useHealthHealth<TData = Awaited<ReturnType<typeof healthHealth>>, TError = unknown>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof healthHealth>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {
|
||||
|
||||
const queryOptions = getHealthHealthQueryOptions(options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,247 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import {
|
||||
useMutation,
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
DefinedUseQueryResult,
|
||||
MutationFunction,
|
||||
QueryClient,
|
||||
QueryFunction,
|
||||
QueryKey,
|
||||
UndefinedInitialDataOptions,
|
||||
UseMutationOptions,
|
||||
UseMutationResult,
|
||||
UseQueryOptions,
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import type {
|
||||
HTTPValidationError,
|
||||
PlanCreate,
|
||||
PlanResponse
|
||||
} from '../../model';
|
||||
|
||||
import { customFetcher } from '../../api';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @summary Create Plan
|
||||
*/
|
||||
export type createPlanResponse201 = {
|
||||
data: PlanResponse
|
||||
status: 201
|
||||
}
|
||||
|
||||
export type createPlanResponse422 = {
|
||||
data: HTTPValidationError
|
||||
status: 422
|
||||
}
|
||||
|
||||
export type createPlanResponseSuccess = (createPlanResponse201) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type createPlanResponseError = (createPlanResponse422) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type createPlanResponse = (createPlanResponseSuccess | createPlanResponseError)
|
||||
|
||||
export const getCreatePlanUrl = () => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/plans`
|
||||
}
|
||||
|
||||
export const createPlan = async (planCreate: PlanCreate, options?: RequestInit): Promise<createPlanResponse> => {
|
||||
|
||||
return customFetcher<createPlanResponse>(getCreatePlanUrl(),
|
||||
{
|
||||
...options,
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
||||
body: JSON.stringify(
|
||||
planCreate,)
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
export const getCreatePlanMutationOptions = <TError = HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createPlan>>, TError,{data: PlanCreate}, TContext>, request?: SecondParameter<typeof customFetcher>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof createPlan>>, TError,{data: PlanCreate}, TContext> => {
|
||||
|
||||
const mutationKey = ['createPlan'];
|
||||
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};
|
||||
|
||||
|
||||
|
||||
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof createPlan>>, {data: PlanCreate}> = (props) => {
|
||||
const {data} = props ?? {};
|
||||
|
||||
return createPlan(data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type CreatePlanMutationResult = NonNullable<Awaited<ReturnType<typeof createPlan>>>
|
||||
export type CreatePlanMutationBody = PlanCreate
|
||||
export type CreatePlanMutationError = HTTPValidationError
|
||||
|
||||
/**
|
||||
* @summary Create Plan
|
||||
*/
|
||||
export const useCreatePlan = <TError = HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createPlan>>, TError,{data: PlanCreate}, TContext>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof createPlan>>,
|
||||
TError,
|
||||
{data: PlanCreate},
|
||||
TContext
|
||||
> => {
|
||||
|
||||
const mutationOptions = getCreatePlanMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
* @summary Get Plan
|
||||
*/
|
||||
export type getPlanResponse200 = {
|
||||
data: PlanResponse
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getPlanResponse422 = {
|
||||
data: HTTPValidationError
|
||||
status: 422
|
||||
}
|
||||
|
||||
export type getPlanResponseSuccess = (getPlanResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getPlanResponseError = (getPlanResponse422) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getPlanResponse = (getPlanResponseSuccess | getPlanResponseError)
|
||||
|
||||
export const getGetPlanUrl = (id: string,) => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/plans/${id}`
|
||||
}
|
||||
|
||||
export const getPlan = async (id: string, options?: RequestInit): Promise<getPlanResponse> => {
|
||||
|
||||
return customFetcher<getPlanResponse>(getGetPlanUrl(id),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetPlanQueryKey = (id?: string,) => {
|
||||
return [
|
||||
`/api/plans/${id}`
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetPlanQueryOptions = <TData = Awaited<ReturnType<typeof getPlan>>, TError = HTTPValidationError>(id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetPlanQueryKey(id);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getPlan>>> = () => getPlan(id, requestOptions);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, enabled: !!(id), staleTime: 60000, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData> & { queryKey: DataTag<QueryKey, TData> }
|
||||
}
|
||||
|
||||
export type GetPlanQueryResult = NonNullable<Awaited<ReturnType<typeof getPlan>>>
|
||||
export type GetPlanQueryError = HTTPValidationError
|
||||
|
||||
|
||||
export function useGetPlan<TData = Awaited<ReturnType<typeof getPlan>>, TError = HTTPValidationError>(
|
||||
id: string, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getPlan>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getPlan>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
export function useGetPlan<TData = Awaited<ReturnType<typeof getPlan>>, TError = HTTPValidationError>(
|
||||
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getPlan>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getPlan>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
export function useGetPlan<TData = Awaited<ReturnType<typeof getPlan>>, TError = HTTPValidationError>(
|
||||
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
/**
|
||||
* @summary Get Plan
|
||||
*/
|
||||
|
||||
export function useGetPlan<TData = Awaited<ReturnType<typeof getPlan>>, TError = HTTPValidationError>(
|
||||
id: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getPlan>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {
|
||||
|
||||
const queryOptions = getGetPlanQueryOptions(id,options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,152 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* 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,
|
||||
ReportResponse
|
||||
} from '../../model';
|
||||
|
||||
import { customFetcher } from '../../api';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @summary Get Report
|
||||
*/
|
||||
export type getReportResponse200 = {
|
||||
data: ReportResponse
|
||||
status: 200
|
||||
}
|
||||
|
||||
export type getReportResponse422 = {
|
||||
data: HTTPValidationError
|
||||
status: 422
|
||||
}
|
||||
|
||||
export type getReportResponseSuccess = (getReportResponse200) & {
|
||||
headers: Headers;
|
||||
};
|
||||
export type getReportResponseError = (getReportResponse422) & {
|
||||
headers: Headers;
|
||||
};
|
||||
|
||||
export type getReportResponse = (getReportResponseSuccess | getReportResponseError)
|
||||
|
||||
export const getGetReportUrl = (runId: string,) => {
|
||||
|
||||
|
||||
|
||||
|
||||
return `/api/reports/${runId}`
|
||||
}
|
||||
|
||||
export const getReport = async (runId: string, options?: RequestInit): Promise<getReportResponse> => {
|
||||
|
||||
return customFetcher<getReportResponse>(getGetReportUrl(runId),
|
||||
{
|
||||
...options,
|
||||
method: 'GET'
|
||||
|
||||
|
||||
}
|
||||
);}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
export const getGetReportQueryKey = (runId?: string,) => {
|
||||
return [
|
||||
`/api/reports/${runId}`
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getGetReportQueryOptions = <TData = Awaited<ReturnType<typeof getReport>>, TError = HTTPValidationError>(runId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getReport>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetReportQueryKey(runId);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getReport>>> = () => getReport(runId, requestOptions);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, enabled: !!(runId), staleTime: 60000, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getReport>>, TError, TData> & { queryKey: DataTag<QueryKey, TData> }
|
||||
}
|
||||
|
||||
export type GetReportQueryResult = NonNullable<Awaited<ReturnType<typeof getReport>>>
|
||||
export type GetReportQueryError = HTTPValidationError
|
||||
|
||||
|
||||
export function useGetReport<TData = Awaited<ReturnType<typeof getReport>>, TError = HTTPValidationError>(
|
||||
runId: string, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getReport>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getReport>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getReport>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
export function useGetReport<TData = Awaited<ReturnType<typeof getReport>>, TError = HTTPValidationError>(
|
||||
runId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getReport>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getReport>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getReport>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
export function useGetReport<TData = Awaited<ReturnType<typeof getReport>>, TError = HTTPValidationError>(
|
||||
runId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getReport>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> }
|
||||
/**
|
||||
* @summary Get Report
|
||||
*/
|
||||
|
||||
export function useGetReport<TData = Awaited<ReturnType<typeof getReport>>, TError = HTTPValidationError>(
|
||||
runId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getReport>>, TError, TData>>, request?: SecondParameter<typeof customFetcher>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> } {
|
||||
|
||||
const queryOptions = getGetReportQueryOptions(runId,options)
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { AnalysisCreateClinicId } from './analysisCreateClinicId';
|
||||
import type { AnalysisCreateUrl } from './analysisCreateUrl';
|
||||
import type { Channels } from './channels';
|
||||
import type { AnalysisOptions } from './analysisOptions';
|
||||
|
||||
export interface AnalysisCreate {
|
||||
clinic_id?: AnalysisCreateClinicId;
|
||||
url?: AnalysisCreateUrl;
|
||||
channels: Channels;
|
||||
options?: AnalysisOptions;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type AnalysisCreateClinicId = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type AnalysisCreateUrl = string | null;
|
||||
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export interface AnalysisOptions {
|
||||
skip_vision?: boolean;
|
||||
skip_perplexity?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { AnalysisStatus } from './analysisStatus';
|
||||
|
||||
export interface AnalysisStartResponse {
|
||||
analysis_run_id: string;
|
||||
clinic_id: string;
|
||||
status: AnalysisStatus;
|
||||
estimated_seconds: number;
|
||||
poll_url: string;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type AnalysisStatus = typeof AnalysisStatus[keyof typeof AnalysisStatus];
|
||||
|
||||
|
||||
// eslint-disable-next-line @typescript-eslint/no-redeclare
|
||||
export const AnalysisStatus = {
|
||||
discovering: 'discovering',
|
||||
collecting: 'collecting',
|
||||
analyzing: 'analyzing',
|
||||
completed: 'completed',
|
||||
failed: 'failed',
|
||||
} as const;
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { AnalysisStatus } from './analysisStatus';
|
||||
import type { AnalysisStatusResponseChannelErrors } from './analysisStatusResponseChannelErrors';
|
||||
import type { AnalysisStatusResponseCompletedAt } from './analysisStatusResponseCompletedAt';
|
||||
|
||||
export interface AnalysisStatusResponse {
|
||||
analysis_run_id: string;
|
||||
status: AnalysisStatus;
|
||||
progress: number;
|
||||
current_step: string;
|
||||
channel_errors: AnalysisStatusResponseChannelErrors;
|
||||
completed_at: AnalysisStatusResponseCompletedAt;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type AnalysisStatusResponseChannelErrors = { [key: string]: unknown };
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type AnalysisStatusResponseCompletedAt = string | null;
|
||||
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ChannelVerifyRequestYoutube } from './channelVerifyRequestYoutube';
|
||||
import type { ChannelVerifyRequestInstagram } from './channelVerifyRequestInstagram';
|
||||
|
||||
export interface ChannelVerifyRequest {
|
||||
youtube?: ChannelVerifyRequestYoutube;
|
||||
instagram?: ChannelVerifyRequestInstagram;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ChannelVerifyRequestInstagram = string[] | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ChannelVerifyRequestYoutube = string | null;
|
||||
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ChannelVerifyResponseYoutube } from './channelVerifyResponseYoutube';
|
||||
import type { ChannelVerifyResponseInstagram } from './channelVerifyResponseInstagram';
|
||||
|
||||
export interface ChannelVerifyResponse {
|
||||
youtube?: ChannelVerifyResponseYoutube;
|
||||
instagram?: ChannelVerifyResponseInstagram;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ChannelVerifyResponseInstagramAnyOfItem } from './channelVerifyResponseInstagramAnyOfItem';
|
||||
|
||||
export type ChannelVerifyResponseInstagram = ChannelVerifyResponseInstagramAnyOfItem[] | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ChannelVerifyResponseInstagramAnyOfItem = { [key: string]: unknown };
|
||||
@@ -0,0 +1,9 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ChannelVerifyResponseYoutubeAnyOf } from './channelVerifyResponseYoutubeAnyOf';
|
||||
|
||||
export type ChannelVerifyResponseYoutube = ChannelVerifyResponseYoutubeAnyOf | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ChannelVerifyResponseYoutubeAnyOf = { [key: string]: unknown };
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ChannelsYoutube } from './channelsYoutube';
|
||||
import type { ChannelsInstagram } from './channelsInstagram';
|
||||
import type { ChannelsFacebook } from './channelsFacebook';
|
||||
import type { ChannelsNaverBlog } from './channelsNaverBlog';
|
||||
import type { ChannelsGangnamUnni } from './channelsGangnamUnni';
|
||||
|
||||
export interface Channels {
|
||||
youtube?: ChannelsYoutube;
|
||||
instagram?: ChannelsInstagram;
|
||||
facebook?: ChannelsFacebook;
|
||||
naver_blog?: ChannelsNaverBlog;
|
||||
gangnam_unni?: ChannelsGangnamUnni;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ChannelsFacebook = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ChannelsGangnamUnni = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ChannelsInstagram = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ChannelsNaverBlog = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ChannelsYoutube = string | null;
|
||||
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ClinicCreateNameEn } from './clinicCreateNameEn';
|
||||
import type { ClinicCreateAddress } from './clinicCreateAddress';
|
||||
|
||||
export interface ClinicCreate {
|
||||
url: string;
|
||||
name: string;
|
||||
name_en?: ClinicCreateNameEn;
|
||||
address?: ClinicCreateAddress;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ClinicCreateAddress = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ClinicCreateNameEn = string | null;
|
||||
@@ -0,0 +1,13 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export interface ClinicCreateResponse {
|
||||
id: string;
|
||||
url: string;
|
||||
name: string;
|
||||
created_at: string;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { RunSummary } from './runSummary';
|
||||
import type { ClinicHistoryResponseMetricsTimeseries } from './clinicHistoryResponseMetricsTimeseries';
|
||||
|
||||
export interface ClinicHistoryResponse {
|
||||
clinic_id: string;
|
||||
runs: RunSummary[];
|
||||
metrics_timeseries: ClinicHistoryResponseMetricsTimeseries;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ClinicHistoryResponseMetricsTimeseries = { [key: string]: unknown };
|
||||
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export interface ClinicInfo {
|
||||
name: string;
|
||||
url: string;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ValidationError } from './validationError';
|
||||
|
||||
export interface HTTPValidationError {
|
||||
detail?: ValidationError[];
|
||||
}
|
||||
@@ -0,0 +1,56 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export * from './analysisCreate';
|
||||
export * from './analysisCreateClinicId';
|
||||
export * from './analysisCreateUrl';
|
||||
export * from './analysisOptions';
|
||||
export * from './analysisStartResponse';
|
||||
export * from './analysisStatus';
|
||||
export * from './analysisStatusResponse';
|
||||
export * from './analysisStatusResponseChannelErrors';
|
||||
export * from './analysisStatusResponseCompletedAt';
|
||||
export * from './channelVerifyRequest';
|
||||
export * from './channelVerifyRequestInstagram';
|
||||
export * from './channelVerifyRequestYoutube';
|
||||
export * from './channelVerifyResponse';
|
||||
export * from './channelVerifyResponseInstagram';
|
||||
export * from './channelVerifyResponseInstagramAnyOfItem';
|
||||
export * from './channelVerifyResponseYoutube';
|
||||
export * from './channelVerifyResponseYoutubeAnyOf';
|
||||
export * from './channels';
|
||||
export * from './channelsFacebook';
|
||||
export * from './channelsGangnamUnni';
|
||||
export * from './channelsInstagram';
|
||||
export * from './channelsNaverBlog';
|
||||
export * from './channelsYoutube';
|
||||
export * from './clinicCreate';
|
||||
export * from './clinicCreateAddress';
|
||||
export * from './clinicCreateNameEn';
|
||||
export * from './clinicCreateResponse';
|
||||
export * from './clinicHistoryResponse';
|
||||
export * from './clinicHistoryResponseMetricsTimeseries';
|
||||
export * from './clinicInfo';
|
||||
export * from './hTTPValidationError';
|
||||
export * from './planCreate';
|
||||
export * from './planResponse';
|
||||
export * from './planResponseBrandGuide';
|
||||
export * from './planResponseContentStrategy';
|
||||
export * from './reportResponse';
|
||||
export * from './reportResponseConversionStrategy';
|
||||
export * from './reportResponseFacebook';
|
||||
export * from './reportResponseGangnamUnni';
|
||||
export * from './reportResponseInstagram';
|
||||
export * from './reportResponseNaverBlog';
|
||||
export * from './reportResponseNaverPlace';
|
||||
export * from './reportResponseYoutube';
|
||||
export * from './runSummary';
|
||||
export * from './runSummaryCompletedAt';
|
||||
export * from './runSummaryOverallScore';
|
||||
export * from './validationError';
|
||||
export * from './validationErrorCtx';
|
||||
export * from './validationErrorLocItem';
|
||||
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export interface PlanCreate {
|
||||
report_id: string;
|
||||
regenerate?: boolean;
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { PlanResponseBrandGuide } from './planResponseBrandGuide';
|
||||
import type { PlanResponseContentStrategy } from './planResponseContentStrategy';
|
||||
|
||||
export interface PlanResponse {
|
||||
id: string;
|
||||
analysis_run_id: string;
|
||||
brand_guide: PlanResponseBrandGuide;
|
||||
channel_strategies: unknown[];
|
||||
content_strategy: PlanResponseContentStrategy;
|
||||
calendar: unknown[];
|
||||
created_at: string;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type PlanResponseBrandGuide = { [key: string]: unknown };
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type PlanResponseContentStrategy = { [key: string]: unknown };
|
||||
@@ -0,0 +1,30 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ClinicInfo } from './clinicInfo';
|
||||
import type { ReportResponseYoutube } from './reportResponseYoutube';
|
||||
import type { ReportResponseInstagram } from './reportResponseInstagram';
|
||||
import type { ReportResponseFacebook } from './reportResponseFacebook';
|
||||
import type { ReportResponseNaverPlace } from './reportResponseNaverPlace';
|
||||
import type { ReportResponseNaverBlog } from './reportResponseNaverBlog';
|
||||
import type { ReportResponseGangnamUnni } from './reportResponseGangnamUnni';
|
||||
import type { ReportResponseConversionStrategy } from './reportResponseConversionStrategy';
|
||||
|
||||
export interface ReportResponse {
|
||||
id: string;
|
||||
clinic: ClinicInfo;
|
||||
overall_score: number;
|
||||
youtube: ReportResponseYoutube;
|
||||
instagram: ReportResponseInstagram;
|
||||
facebook: ReportResponseFacebook;
|
||||
naver_place: ReportResponseNaverPlace;
|
||||
naver_blog: ReportResponseNaverBlog;
|
||||
gangnam_unni: ReportResponseGangnamUnni;
|
||||
conversion_strategy: ReportResponseConversionStrategy;
|
||||
roadmap: unknown[];
|
||||
kpis: unknown[];
|
||||
generated_at: string;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ReportResponseConversionStrategy = { [key: string]: unknown };
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ReportResponseFacebook = { [key: string]: unknown };
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ReportResponseGangnamUnni = { [key: string]: unknown };
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ReportResponseInstagram = { [key: string]: unknown };
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ReportResponseNaverBlog = { [key: string]: unknown };
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ReportResponseNaverPlace = { [key: string]: unknown };
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ReportResponseYoutube = { [key: string]: unknown };
|
||||
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { RunSummaryCompletedAt } from './runSummaryCompletedAt';
|
||||
import type { RunSummaryOverallScore } from './runSummaryOverallScore';
|
||||
|
||||
export interface RunSummary {
|
||||
run_id: string;
|
||||
status: string;
|
||||
started_at: string;
|
||||
completed_at: RunSummaryCompletedAt;
|
||||
overall_score: RunSummaryOverallScore;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type RunSummaryCompletedAt = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type RunSummaryOverallScore = number | null;
|
||||
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ValidationErrorLocItem } from './validationErrorLocItem';
|
||||
import type { ValidationErrorCtx } from './validationErrorCtx';
|
||||
|
||||
export interface ValidationError {
|
||||
loc: ValidationErrorLocItem[];
|
||||
msg: string;
|
||||
type: string;
|
||||
input?: unknown;
|
||||
ctx?: ValidationErrorCtx;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ValidationErrorCtx = { [key: string]: unknown };
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* FastAPI
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ValidationErrorLocItem = string | number;
|
||||
Reference in new issue
Block a user