[feat] negodata/front: 협상대화 카드내용 렌더 + 견적상세 헤더·테이블 UI 정리
- 협상대화: 사용 카드 번호/멘트(Slate 서식본)/와일드 조건·메모 표시, SlateRenderer
밑줄·헥스색·{변수} 치환 보정, 말풍선 우측정렬·발신자 아바타 제거
- 견적상세 헤더: DB 컬럼명 라벨 제거, 견적정보/(진행상태+세팅)/상품(이미지) 2열 재배치,
협상카드 탭에 사용 카드 수 표시
- DataTable 행 패딩 축소, 협력사명 아바타 제거, 카드관리 본인 카드 안내문
- orval 재생성(QuotationCardData 신규 필드)
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
df68609c49
commit
7186446068
114 files changed
+4731
-5537
No files matched your search
@@ -4,7 +4,10 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import {
|
||||
useMutation,
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
@@ -17,8 +20,8 @@ import type {
|
||||
UseMutationOptions,
|
||||
UseMutationResult,
|
||||
UseQueryOptions,
|
||||
UseQueryResult,
|
||||
} from "@tanstack/react-query";
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import type {
|
||||
HTTPValidationError,
|
||||
@@ -27,361 +30,299 @@ import type {
|
||||
ResCreateAccount,
|
||||
ResLogin,
|
||||
ResMe,
|
||||
ResRefreshToken,
|
||||
} from ".././model";
|
||||
ResRefreshToken
|
||||
} from '.././model';
|
||||
|
||||
import { customFetch } from '../../mutator/custom-fetch';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
import { customFetch } from "../../mutator/custom-fetch";
|
||||
|
||||
/**
|
||||
* id/pw 로 로그인하고 JWT 토큰을 발급한다.
|
||||
* @summary 로그인
|
||||
*/
|
||||
export const login = (reqLogin: ReqLogin, signal?: AbortSignal) => {
|
||||
return customFetch<ResLogin>({
|
||||
url: `/v1/auth/login`,
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqLogin,
|
||||
signal,
|
||||
});
|
||||
};
|
||||
export const login = (
|
||||
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
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
export const getLoginMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof login>>,
|
||||
TError,
|
||||
{ data: ReqLogin },
|
||||
TContext
|
||||
>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof login>>,
|
||||
TError,
|
||||
{ data: ReqLogin },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["login"];
|
||||
const { mutation: mutationOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey } };
|
||||
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof login>>,
|
||||
{ data: ReqLogin }
|
||||
> = (props) => {
|
||||
const { data } = props ?? {};
|
||||
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> => {
|
||||
|
||||
return login(data);
|
||||
};
|
||||
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 { 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
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof login>>,
|
||||
TError,
|
||||
{ data: ReqLogin },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getLoginMutationOptions(options);
|
||||
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
|
||||
> => {
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
/**
|
||||
const mutationOptions = getLoginMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
* 새 계정을 생성한다.
|
||||
* @summary 계정 생성
|
||||
*/
|
||||
export const createAccount = (
|
||||
reqCreateAccount: ReqCreateAccount,
|
||||
signal?: AbortSignal,
|
||||
reqCreateAccount: ReqCreateAccount,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
) => {
|
||||
return customFetch<ResCreateAccount>({
|
||||
url: `/v1/auth/create`,
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqCreateAccount,
|
||||
signal,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
return customFetch<ResCreateAccount>(
|
||||
{url: `/v1/auth/create`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqCreateAccount, signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
export const getCreateAccountMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof createAccount>>,
|
||||
TError,
|
||||
{ data: ReqCreateAccount },
|
||||
TContext
|
||||
>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof createAccount>>,
|
||||
TError,
|
||||
{ data: ReqCreateAccount },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["createAccount"];
|
||||
const { mutation: mutationOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey } };
|
||||
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof createAccount>>,
|
||||
{ data: ReqCreateAccount }
|
||||
> = (props) => {
|
||||
const { data } = props ?? {};
|
||||
export const getCreateAccountMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createAccount>>, TError,{data: ReqCreateAccount}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof createAccount>>, TError,{data: ReqCreateAccount}, TContext> => {
|
||||
|
||||
return createAccount(data);
|
||||
};
|
||||
const mutationKey = ['createAccount'];
|
||||
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 CreateAccountMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof createAccount>>
|
||||
>;
|
||||
export type CreateAccountMutationBody = ReqCreateAccount;
|
||||
export type CreateAccountMutationError = void | HTTPValidationError;
|
||||
|
||||
/**
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof createAccount>>, {data: ReqCreateAccount}> = (props) => {
|
||||
const {data} = props ?? {};
|
||||
|
||||
return createAccount(data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type CreateAccountMutationResult = NonNullable<Awaited<ReturnType<typeof createAccount>>>
|
||||
export type CreateAccountMutationBody = ReqCreateAccount
|
||||
export type CreateAccountMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
* @summary 계정 생성
|
||||
*/
|
||||
export const useCreateAccount = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof createAccount>>,
|
||||
TError,
|
||||
{ data: ReqCreateAccount },
|
||||
TContext
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof createAccount>>,
|
||||
TError,
|
||||
{ data: ReqCreateAccount },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getCreateAccountMutationOptions(options);
|
||||
export const useCreateAccount = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createAccount>>, TError,{data: ReqCreateAccount}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof createAccount>>,
|
||||
TError,
|
||||
{data: ReqCreateAccount},
|
||||
TContext
|
||||
> => {
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
/**
|
||||
const mutationOptions = getCreateAccountMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
* refresh 토큰으로 access 토큰을 재발급한다.
|
||||
* @summary 액세스 토큰 갱신
|
||||
*/
|
||||
export const refreshToken = (signal?: AbortSignal) => {
|
||||
return customFetch<ResRefreshToken>({
|
||||
url: `/v1/auth/refresh_token`,
|
||||
method: "POST",
|
||||
signal,
|
||||
});
|
||||
};
|
||||
export const refreshToken = (
|
||||
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
) => {
|
||||
|
||||
|
||||
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
|
||||
>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof refreshToken>>,
|
||||
TError,
|
||||
void,
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["refreshToken"];
|
||||
const { mutation: mutationOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey } };
|
||||
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof refreshToken>>,
|
||||
void
|
||||
> = () => {
|
||||
return refreshToken();
|
||||
};
|
||||
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> => {
|
||||
|
||||
return { mutationFn, ...mutationOptions };
|
||||
};
|
||||
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 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
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof refreshToken>>,
|
||||
TError,
|
||||
void,
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getRefreshTokenMutationOptions(options);
|
||||
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
|
||||
> => {
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
/**
|
||||
const mutationOptions = getRefreshTokenMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
* 유효한 access 토큰이 있어야 호출 가능. 토큰의 유저+회사 정보를 반환한다.
|
||||
* @summary 내 정보
|
||||
*/
|
||||
export const me = (signal?: AbortSignal) => {
|
||||
return customFetch<ResMe>({ url: `/v1/auth/me`, method: "GET", signal });
|
||||
};
|
||||
export const me = (
|
||||
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
) => {
|
||||
|
||||
|
||||
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>
|
||||
>;
|
||||
}) => {
|
||||
const { query: queryOptions } = options ?? {};
|
||||
|
||||
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 queryKey = queryOptions?.queryKey ?? getMeQueryKey();
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof me>>> = ({ signal }) =>
|
||||
me(signal);
|
||||
const queryKey = queryOptions?.queryKey ?? getMeQueryKey();
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof me>>,
|
||||
TError,
|
||||
TData
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
};
|
||||
|
||||
|
||||
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
|
||||
|
||||
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"
|
||||
>;
|
||||
},
|
||||
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"
|
||||
>;
|
||||
},
|
||||
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>
|
||||
>;
|
||||
},
|
||||
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>
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getMeQueryOptions(options);
|
||||
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 query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
const queryOptions = getMeQueryOptions(options)
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import {
|
||||
useMutation,
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
@@ -17,8 +20,8 @@ import type {
|
||||
UseMutationOptions,
|
||||
UseMutationResult,
|
||||
UseQueryOptions,
|
||||
UseQueryResult,
|
||||
} from "@tanstack/react-query";
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import type {
|
||||
HTTPValidationError,
|
||||
@@ -27,525 +30,388 @@ import type {
|
||||
ReqUpdateCard,
|
||||
ResCard,
|
||||
ResCardList,
|
||||
ResDeleteCard,
|
||||
} from ".././model";
|
||||
ResDeleteCard
|
||||
} from '.././model';
|
||||
|
||||
import { customFetch } from '../../mutator/custom-fetch';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
import { customFetch } from "../../mutator/custom-fetch";
|
||||
|
||||
/**
|
||||
* @summary 협상카드 목록
|
||||
*/
|
||||
export const listCards = (params?: ListCardsParams, signal?: AbortSignal) => {
|
||||
return customFetch<ResCardList>({
|
||||
url: `/v1/card/list`,
|
||||
method: "GET",
|
||||
params,
|
||||
signal,
|
||||
});
|
||||
};
|
||||
|
||||
export const getListCardsQueryKey = (params?: ListCardsParams) => {
|
||||
return [`/v1/card/list`, ...(params ? [params] : [])] as const;
|
||||
};
|
||||
|
||||
export const getListCardsQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof listCards>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
params?: ListCardsParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listCards>>, TError, TData>
|
||||
>;
|
||||
},
|
||||
export const listCards = (
|
||||
params?: ListCardsParams,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
) => {
|
||||
const { query: queryOptions } = options ?? {};
|
||||
|
||||
|
||||
return customFetch<ResCardList>(
|
||||
{url: `/v1/card/list`, method: 'GET',
|
||||
params, signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getListCardsQueryKey(params);
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof listCards>>> = ({
|
||||
signal,
|
||||
}) => listCards(params, signal);
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listCards>>,
|
||||
TError,
|
||||
TData
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
};
|
||||
export const getListCardsQueryKey = (params?: ListCardsParams,) => {
|
||||
return [
|
||||
`/v1/card/list`, ...(params ? [params]: [])
|
||||
] as const;
|
||||
}
|
||||
|
||||
export type ListCardsQueryResult = NonNullable<
|
||||
Awaited<ReturnType<typeof listCards>>
|
||||
>;
|
||||
export type ListCardsQueryError = void | HTTPValidationError;
|
||||
|
||||
export const getListCardsQueryOptions = <TData = Awaited<ReturnType<typeof listCards>>, TError = void | HTTPValidationError>(params?: ListCardsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCards>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
) => {
|
||||
|
||||
export function useListCards<
|
||||
TData = Awaited<ReturnType<typeof listCards>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
params: undefined | ListCardsParams,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listCards>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getListCardsQueryKey(params);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof listCards>>> = ({ signal }) => listCards(params, requestOptions, signal);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listCards>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type ListCardsQueryResult = NonNullable<Awaited<ReturnType<typeof listCards>>>
|
||||
export type ListCardsQueryError = void | HTTPValidationError
|
||||
|
||||
|
||||
export function useListCards<TData = Awaited<ReturnType<typeof listCards>>, TError = void | HTTPValidationError>(
|
||||
params: undefined | ListCardsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCards>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof listCards>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof listCards>>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useListCards<
|
||||
TData = Awaited<ReturnType<typeof listCards>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
params?: ListCardsParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listCards>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useListCards<TData = Awaited<ReturnType<typeof listCards>>, TError = void | HTTPValidationError>(
|
||||
params?: ListCardsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCards>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof listCards>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof listCards>>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useListCards<
|
||||
TData = Awaited<ReturnType<typeof listCards>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
params?: ListCardsParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listCards>>, TError, TData>
|
||||
>;
|
||||
},
|
||||
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 useListCards<TData = Awaited<ReturnType<typeof listCards>>, TError = void | HTTPValidationError>(
|
||||
params?: ListCardsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCards>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary 협상카드 목록
|
||||
*/
|
||||
|
||||
export function useListCards<
|
||||
TData = Awaited<ReturnType<typeof listCards>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
params?: ListCardsParams,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listCards>>, TError, TData>
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getListCardsQueryOptions(params, options);
|
||||
export function useListCards<TData = Awaited<ReturnType<typeof listCards>>, TError = void | HTTPValidationError>(
|
||||
params?: ListCardsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listCards>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
const queryOptions = getListCardsQueryOptions(params,options)
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @summary 협상카드 등록
|
||||
*/
|
||||
export const createCard = (
|
||||
reqCreateCard: ReqCreateCard,
|
||||
signal?: AbortSignal,
|
||||
reqCreateCard: ReqCreateCard,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
) => {
|
||||
return customFetch<ResCard>({
|
||||
url: `/v1/card/create`,
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqCreateCard,
|
||||
signal,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
return customFetch<ResCard>(
|
||||
{url: `/v1/card/create`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqCreateCard, signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
export const getCreateCardMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof createCard>>,
|
||||
TError,
|
||||
{ data: ReqCreateCard },
|
||||
TContext
|
||||
>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof createCard>>,
|
||||
TError,
|
||||
{ data: ReqCreateCard },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["createCard"];
|
||||
const { mutation: mutationOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey } };
|
||||
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof createCard>>,
|
||||
{ data: ReqCreateCard }
|
||||
> = (props) => {
|
||||
const { data } = props ?? {};
|
||||
export const getCreateCardMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createCard>>, TError,{data: ReqCreateCard}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof createCard>>, TError,{data: ReqCreateCard}, TContext> => {
|
||||
|
||||
return createCard(data);
|
||||
};
|
||||
const mutationKey = ['createCard'];
|
||||
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 CreateCardMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof createCard>>
|
||||
>;
|
||||
export type CreateCardMutationBody = ReqCreateCard;
|
||||
export type CreateCardMutationError = void | HTTPValidationError;
|
||||
|
||||
/**
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof createCard>>, {data: ReqCreateCard}> = (props) => {
|
||||
const {data} = props ?? {};
|
||||
|
||||
return createCard(data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type CreateCardMutationResult = NonNullable<Awaited<ReturnType<typeof createCard>>>
|
||||
export type CreateCardMutationBody = ReqCreateCard
|
||||
export type CreateCardMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
* @summary 협상카드 등록
|
||||
*/
|
||||
export const useCreateCard = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof createCard>>,
|
||||
TError,
|
||||
{ data: ReqCreateCard },
|
||||
TContext
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof createCard>>,
|
||||
TError,
|
||||
{ data: ReqCreateCard },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getCreateCardMutationOptions(options);
|
||||
export const useCreateCard = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createCard>>, TError,{data: ReqCreateCard}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof createCard>>,
|
||||
TError,
|
||||
{data: ReqCreateCard},
|
||||
TContext
|
||||
> => {
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
/**
|
||||
const mutationOptions = getCreateCardMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
* @summary 협상카드 조회
|
||||
*/
|
||||
export const getCard = (cardId: string, signal?: AbortSignal) => {
|
||||
return customFetch<ResCard>({
|
||||
url: `/v1/card/${cardId}`,
|
||||
method: "GET",
|
||||
signal,
|
||||
});
|
||||
};
|
||||
|
||||
export const getGetCardQueryKey = (cardId?: string) => {
|
||||
return [`/v1/card/${cardId}`] as const;
|
||||
};
|
||||
|
||||
export const getGetCardQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof getCard>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
cardId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getCard>>, TError, TData>
|
||||
>;
|
||||
},
|
||||
export const getCard = (
|
||||
cardId: string,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
) => {
|
||||
const { query: queryOptions } = options ?? {};
|
||||
|
||||
|
||||
return customFetch<ResCard>(
|
||||
{url: `/v1/card/${cardId}`, method: 'GET', signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetCardQueryKey(cardId);
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getCard>>> = ({
|
||||
signal,
|
||||
}) => getCard(cardId, signal);
|
||||
|
||||
return {
|
||||
queryKey,
|
||||
queryFn,
|
||||
enabled: !!cardId,
|
||||
...queryOptions,
|
||||
} as UseQueryOptions<Awaited<ReturnType<typeof getCard>>, TError, TData> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
};
|
||||
export const getGetCardQueryKey = (cardId?: string,) => {
|
||||
return [
|
||||
`/v1/card/${cardId}`
|
||||
] as const;
|
||||
}
|
||||
|
||||
export type GetCardQueryResult = NonNullable<
|
||||
Awaited<ReturnType<typeof getCard>>
|
||||
>;
|
||||
export type GetCardQueryError = void | HTTPValidationError;
|
||||
|
||||
export const getGetCardQueryOptions = <TData = Awaited<ReturnType<typeof getCard>>, TError = void | HTTPValidationError>(cardId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getCard>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
) => {
|
||||
|
||||
export function useGetCard<
|
||||
TData = Awaited<ReturnType<typeof getCard>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
cardId: string,
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getCard>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getGetCardQueryKey(cardId);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof getCard>>> = ({ signal }) => getCard(cardId, requestOptions, signal);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, enabled: !!(cardId), ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getCard>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type GetCardQueryResult = NonNullable<Awaited<ReturnType<typeof getCard>>>
|
||||
export type GetCardQueryError = void | HTTPValidationError
|
||||
|
||||
|
||||
export function useGetCard<TData = Awaited<ReturnType<typeof getCard>>, TError = void | HTTPValidationError>(
|
||||
cardId: string, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof getCard>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getCard>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getCard>>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useGetCard<
|
||||
TData = Awaited<ReturnType<typeof getCard>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
cardId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getCard>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useGetCard<TData = Awaited<ReturnType<typeof getCard>>, TError = void | HTTPValidationError>(
|
||||
cardId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getCard>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof getCard>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof getCard>>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useGetCard<
|
||||
TData = Awaited<ReturnType<typeof getCard>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
cardId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getCard>>, TError, TData>
|
||||
>;
|
||||
},
|
||||
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 useGetCard<TData = Awaited<ReturnType<typeof getCard>>, TError = void | HTTPValidationError>(
|
||||
cardId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getCard>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary 협상카드 조회
|
||||
*/
|
||||
|
||||
export function useGetCard<
|
||||
TData = Awaited<ReturnType<typeof getCard>>,
|
||||
TError = void | HTTPValidationError,
|
||||
>(
|
||||
cardId: string,
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof getCard>>, TError, TData>
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getGetCardQueryOptions(cardId, options);
|
||||
export function useGetCard<TData = Awaited<ReturnType<typeof getCard>>, TError = void | HTTPValidationError>(
|
||||
cardId: string, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof getCard>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
const queryOptions = getGetCardQueryOptions(cardId,options)
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
/**
|
||||
* @summary 협상카드 수정
|
||||
*/
|
||||
export const updateCard = (cardId: string, reqUpdateCard: ReqUpdateCard) => {
|
||||
return customFetch<ResCard>({
|
||||
url: `/v1/card/update/${cardId}`,
|
||||
method: "PATCH",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqUpdateCard,
|
||||
});
|
||||
};
|
||||
|
||||
export const getUpdateCardMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof updateCard>>,
|
||||
TError,
|
||||
{ cardId: string; data: ReqUpdateCard },
|
||||
TContext
|
||||
>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof updateCard>>,
|
||||
TError,
|
||||
{ cardId: string; data: ReqUpdateCard },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["updateCard"];
|
||||
const { mutation: mutationOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey } };
|
||||
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof updateCard>>,
|
||||
{ cardId: string; data: ReqUpdateCard }
|
||||
> = (props) => {
|
||||
const { cardId, data } = props ?? {};
|
||||
|
||||
return updateCard(cardId, data);
|
||||
};
|
||||
|
||||
return { mutationFn, ...mutationOptions };
|
||||
};
|
||||
|
||||
export type UpdateCardMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof updateCard>>
|
||||
>;
|
||||
export type UpdateCardMutationBody = ReqUpdateCard;
|
||||
export type UpdateCardMutationError = void | HTTPValidationError;
|
||||
|
||||
/**
|
||||
* @summary 협상카드 수정
|
||||
*/
|
||||
export const useUpdateCard = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof updateCard>>,
|
||||
TError,
|
||||
{ cardId: string; data: ReqUpdateCard },
|
||||
TContext
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof updateCard>>,
|
||||
TError,
|
||||
{ cardId: string; data: ReqUpdateCard },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getUpdateCardMutationOptions(options);
|
||||
export const updateCard = (
|
||||
cardId: string,
|
||||
reqUpdateCard: ReqUpdateCard,
|
||||
options?: SecondParameter<typeof customFetch>,) => {
|
||||
|
||||
|
||||
return customFetch<ResCard>(
|
||||
{url: `/v1/card/update/${cardId}`, method: 'PATCH',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqUpdateCard
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
/**
|
||||
|
||||
export const getUpdateCardMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateCard>>, TError,{cardId: string;data: ReqUpdateCard}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof updateCard>>, TError,{cardId: string;data: ReqUpdateCard}, TContext> => {
|
||||
|
||||
const mutationKey = ['updateCard'];
|
||||
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 updateCard>>, {cardId: string;data: ReqUpdateCard}> = (props) => {
|
||||
const {cardId,data} = props ?? {};
|
||||
|
||||
return updateCard(cardId,data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type UpdateCardMutationResult = NonNullable<Awaited<ReturnType<typeof updateCard>>>
|
||||
export type UpdateCardMutationBody = ReqUpdateCard
|
||||
export type UpdateCardMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
* @summary 협상카드 수정
|
||||
*/
|
||||
export const useUpdateCard = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateCard>>, TError,{cardId: string;data: ReqUpdateCard}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof updateCard>>,
|
||||
TError,
|
||||
{cardId: string;data: ReqUpdateCard},
|
||||
TContext
|
||||
> => {
|
||||
|
||||
const mutationOptions = getUpdateCardMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
* @summary 협상카드 삭제
|
||||
*/
|
||||
export const deleteCard = (cardId: string) => {
|
||||
return customFetch<ResDeleteCard>({
|
||||
url: `/v1/card/delete/${cardId}`,
|
||||
method: "DELETE",
|
||||
});
|
||||
};
|
||||
export const deleteCard = (
|
||||
cardId: string,
|
||||
options?: SecondParameter<typeof customFetch>,) => {
|
||||
|
||||
|
||||
return customFetch<ResDeleteCard>(
|
||||
{url: `/v1/card/delete/${cardId}`, method: 'DELETE'
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
export const getDeleteCardMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof deleteCard>>,
|
||||
TError,
|
||||
{ cardId: string },
|
||||
TContext
|
||||
>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof deleteCard>>,
|
||||
TError,
|
||||
{ cardId: string },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["deleteCard"];
|
||||
const { mutation: mutationOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey } };
|
||||
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof deleteCard>>,
|
||||
{ cardId: string }
|
||||
> = (props) => {
|
||||
const { cardId } = props ?? {};
|
||||
export const getDeleteCardMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteCard>>, TError,{cardId: string}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof deleteCard>>, TError,{cardId: string}, TContext> => {
|
||||
|
||||
return deleteCard(cardId);
|
||||
};
|
||||
const mutationKey = ['deleteCard'];
|
||||
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 DeleteCardMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof deleteCard>>
|
||||
>;
|
||||
|
||||
export type DeleteCardMutationError = void | HTTPValidationError;
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof deleteCard>>, {cardId: string}> = (props) => {
|
||||
const {cardId} = props ?? {};
|
||||
|
||||
/**
|
||||
return deleteCard(cardId,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type DeleteCardMutationResult = NonNullable<Awaited<ReturnType<typeof deleteCard>>>
|
||||
|
||||
export type DeleteCardMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
* @summary 협상카드 삭제
|
||||
*/
|
||||
export const useDeleteCard = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof deleteCard>>,
|
||||
TError,
|
||||
{ cardId: string },
|
||||
TContext
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof deleteCard>>,
|
||||
TError,
|
||||
{ cardId: string },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getDeleteCardMutationOptions(options);
|
||||
export const useDeleteCard = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteCard>>, TError,{cardId: string}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof deleteCard>>,
|
||||
TError,
|
||||
{cardId: string},
|
||||
TContext
|
||||
> => {
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
const mutationOptions = getDeleteCardMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
|
||||
@@ -4,7 +4,9 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import {
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
@@ -14,150 +16,105 @@ import type {
|
||||
QueryKey,
|
||||
UndefinedInitialDataOptions,
|
||||
UseQueryOptions,
|
||||
UseQueryResult,
|
||||
} from "@tanstack/react-query";
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import { customFetch } from '../../mutator/custom-fetch';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
import { customFetch } from "../../mutator/custom-fetch";
|
||||
|
||||
/**
|
||||
* @summary Healthz
|
||||
*/
|
||||
export const healthzHealthzGet = (signal?: AbortSignal) => {
|
||||
return customFetch<unknown>({ url: `/healthz`, method: "GET", signal });
|
||||
};
|
||||
export const healthzHealthzGet = (
|
||||
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
) => {
|
||||
|
||||
|
||||
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
|
||||
>
|
||||
>;
|
||||
}) => {
|
||||
const { query: queryOptions } = options ?? {};
|
||||
|
||||
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 queryKey = queryOptions?.queryKey ?? getHealthzHealthzGetQueryKey();
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryFn: QueryFunction<
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>
|
||||
> = ({ signal }) => healthzHealthzGet(signal);
|
||||
const queryKey = queryOptions?.queryKey ?? getHealthzHealthzGetQueryKey();
|
||||
|
||||
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;
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof healthzHealthzGet>>> = ({ signal }) => healthzHealthzGet(requestOptions, signal);
|
||||
|
||||
export function useHealthzHealthzGet<
|
||||
TData = Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError = void,
|
||||
>(
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError,
|
||||
TData
|
||||
>
|
||||
> &
|
||||
Pick<
|
||||
|
||||
|
||||
|
||||
|
||||
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<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof healthzHealthzGet>>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
},
|
||||
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"
|
||||
>;
|
||||
},
|
||||
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
|
||||
>
|
||||
>;
|
||||
},
|
||||
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
|
||||
>
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getHealthzHealthzGetQueryOptions(options);
|
||||
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 query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
const queryOptions = getHealthzHealthzGetQueryOptions(options)
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,9 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import { useQuery } from "@tanstack/react-query";
|
||||
import {
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
@@ -14,132 +16,109 @@ import type {
|
||||
QueryKey,
|
||||
UndefinedInitialDataOptions,
|
||||
UseQueryOptions,
|
||||
UseQueryResult,
|
||||
} from "@tanstack/react-query";
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import type {
|
||||
ResEnums
|
||||
} from '.././model';
|
||||
|
||||
import { customFetch } from '../../mutator/custom-fetch';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
import type { ResEnums } from ".././model";
|
||||
|
||||
import { customFetch } from "../../mutator/custom-fetch";
|
||||
|
||||
/**
|
||||
* @summary 도메인 코드 enum 전체
|
||||
*/
|
||||
export const listEnums = (signal?: AbortSignal) => {
|
||||
return customFetch<ResEnums>({ url: `/v1/enums`, method: "GET", signal });
|
||||
};
|
||||
export const listEnums = (
|
||||
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResEnums>(
|
||||
{url: `/v1/enums`, method: 'GET', signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export const getListEnumsQueryKey = () => {
|
||||
return [`/v1/enums`] as const;
|
||||
};
|
||||
return [
|
||||
`/v1/enums`
|
||||
] as const;
|
||||
}
|
||||
|
||||
export const getListEnumsQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof listEnums>>,
|
||||
TError = void,
|
||||
>(options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listEnums>>, TError, TData>
|
||||
>;
|
||||
}) => {
|
||||
const { query: queryOptions } = options ?? {};
|
||||
|
||||
export const getListEnumsQueryOptions = <TData = Awaited<ReturnType<typeof listEnums>>, TError = void>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listEnums>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
) => {
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getListEnumsQueryKey();
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof listEnums>>> = ({
|
||||
signal,
|
||||
}) => listEnums(signal);
|
||||
const queryKey = queryOptions?.queryKey ?? getListEnumsQueryKey();
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listEnums>>,
|
||||
TError,
|
||||
TData
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
};
|
||||
|
||||
|
||||
export type ListEnumsQueryResult = NonNullable<
|
||||
Awaited<ReturnType<typeof listEnums>>
|
||||
>;
|
||||
export type ListEnumsQueryError = void;
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof listEnums>>> = ({ signal }) => listEnums(requestOptions, signal);
|
||||
|
||||
export function useListEnums<
|
||||
TData = Awaited<ReturnType<typeof listEnums>>,
|
||||
TError = void,
|
||||
>(
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listEnums>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listEnums>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type ListEnumsQueryResult = NonNullable<Awaited<ReturnType<typeof listEnums>>>
|
||||
export type ListEnumsQueryError = void
|
||||
|
||||
|
||||
export function useListEnums<TData = Awaited<ReturnType<typeof listEnums>>, TError = void>(
|
||||
options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listEnums>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof listEnums>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof listEnums>>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useListEnums<
|
||||
TData = Awaited<ReturnType<typeof listEnums>>,
|
||||
TError = void,
|
||||
>(
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listEnums>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useListEnums<TData = Awaited<ReturnType<typeof listEnums>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listEnums>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof listEnums>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof listEnums>>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useListEnums<
|
||||
TData = Awaited<ReturnType<typeof listEnums>>,
|
||||
TError = void,
|
||||
>(
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listEnums>>, TError, TData>
|
||||
>;
|
||||
},
|
||||
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 useListEnums<TData = Awaited<ReturnType<typeof listEnums>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listEnums>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary 도메인 코드 enum 전체
|
||||
*/
|
||||
|
||||
export function useListEnums<
|
||||
TData = Awaited<ReturnType<typeof listEnums>>,
|
||||
TError = void,
|
||||
>(
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listEnums>>, TError, TData>
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getListEnumsQueryOptions(options);
|
||||
export function useListEnums<TData = Awaited<ReturnType<typeof listEnums>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listEnums>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
const queryOptions = getListEnumsQueryOptions(options)
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
+1
-1
@@ -5,6 +5,6 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export interface BodyUploadItemsExcelV1ItemUploadExcelPost {
|
||||
export interface BodyUploadItemImageV1ItemImagePost {
|
||||
file: string;
|
||||
}
|
||||
@@ -4,15 +4,15 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { CardDataUserId } from "./cardDataUserId";
|
||||
import type { CardDataName } from "./cardDataName";
|
||||
import type { CardDataNumber } from "./cardDataNumber";
|
||||
import type { CardDataScript } from "./cardDataScript";
|
||||
import type { CardDataEditScript } from "./cardDataEditScript";
|
||||
import type { CardDataCondition } from "./cardDataCondition";
|
||||
import type { CardDataMemo } from "./cardDataMemo";
|
||||
import type { CardDataCreatedAt } from "./cardDataCreatedAt";
|
||||
import type { CardDataUpdatedAt } from "./cardDataUpdatedAt";
|
||||
import type { CardDataUserId } from './cardDataUserId';
|
||||
import type { CardDataName } from './cardDataName';
|
||||
import type { CardDataNumber } from './cardDataNumber';
|
||||
import type { CardDataScript } from './cardDataScript';
|
||||
import type { CardDataEditScript } from './cardDataEditScript';
|
||||
import type { CardDataCondition } from './cardDataCondition';
|
||||
import type { CardDataMemo } from './cardDataMemo';
|
||||
import type { CardDataCreatedAt } from './cardDataCreatedAt';
|
||||
import type { CardDataUpdatedAt } from './cardDataUpdatedAt';
|
||||
|
||||
export interface CardData {
|
||||
nego_card_id: string;
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ChatMessageDataCardId } from "./chatMessageDataCardId";
|
||||
import type { ChatMessageDataCardUsedYn } from "./chatMessageDataCardUsedYn";
|
||||
import type { ChatMessageDataIndicatorValue } from "./chatMessageDataIndicatorValue";
|
||||
import type { ChatMessageDataCardType } from "./chatMessageDataCardType";
|
||||
import type { ChatMessageDataCardId } from './chatMessageDataCardId';
|
||||
import type { ChatMessageDataCardUsedYn } from './chatMessageDataCardUsedYn';
|
||||
import type { ChatMessageDataIndicatorValue } from './chatMessageDataIndicatorValue';
|
||||
import type { ChatMessageDataCardType } from './chatMessageDataCardType';
|
||||
|
||||
export interface ChatMessageData {
|
||||
chat_id: string;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Negodata Api Server
|
||||
* 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 로 내려간다.
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ValidationError } from "./validationError";
|
||||
import type { ValidationError } from './validationError';
|
||||
|
||||
export interface HTTPValidationError {
|
||||
detail?: ValidationError[];
|
||||
|
||||
@@ -5,248 +5,253 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export * from "./asyncJob";
|
||||
export * from "./bodyUploadItemsExcelV1ItemUploadExcelPost";
|
||||
export * from "./bodyUploadSuppliersExcelV1SupplierUploadExcelPost";
|
||||
export * from "./cardData";
|
||||
export * from "./cardDataCondition";
|
||||
export * from "./cardDataCreatedAt";
|
||||
export * from "./cardDataEditScript";
|
||||
export * from "./cardDataMemo";
|
||||
export * from "./cardDataName";
|
||||
export * from "./cardDataNumber";
|
||||
export * from "./cardDataScript";
|
||||
export * from "./cardDataUpdatedAt";
|
||||
export * from "./cardDataUserId";
|
||||
export * from "./chatMessageData";
|
||||
export * from "./chatMessageDataCardId";
|
||||
export * from "./chatMessageDataCardType";
|
||||
export * from "./chatMessageDataCardUsedYn";
|
||||
export * from "./chatMessageDataIndicatorValue";
|
||||
export * from "./companyData";
|
||||
export * from "./enumOption";
|
||||
export * from "./errorInfo";
|
||||
export * from "./errorInfoCode";
|
||||
export * from "./errorInfoDesc";
|
||||
export * from "./errorInfoSuccess";
|
||||
export * from "./hTTPValidationError";
|
||||
export * from "./itemCategory";
|
||||
export * from "./itemData";
|
||||
export * from "./itemDataCategory";
|
||||
export * from "./itemDataCode";
|
||||
export * from "./itemDataCreatedAt";
|
||||
export * from "./itemDataDeliveryFeeYn";
|
||||
export * from "./itemDataDeliveryType";
|
||||
export * from "./itemDataImageUrl";
|
||||
export * from "./itemDataLeadTime";
|
||||
export * from "./itemDataMadeIn";
|
||||
export * from "./itemDataManufacturer";
|
||||
export * from "./itemDataModelName";
|
||||
export * from "./itemDataMoq";
|
||||
export * from "./itemDataPrice";
|
||||
export * from "./itemDataQuantityUnit";
|
||||
export * from "./itemDataSpec";
|
||||
export * from "./itemDataUpdatedAt";
|
||||
export * from "./itemDataVatYn";
|
||||
export * from "./listCardsParams";
|
||||
export * from "./listItemsParams";
|
||||
export * from "./listQuotationsParams";
|
||||
export * from "./listSuppliersParams";
|
||||
export * from "./quotationCardData";
|
||||
export * from "./quotationCardDataName";
|
||||
export * from "./quotationCardDataNegoCardId";
|
||||
export * from "./quotationCardDataQtId";
|
||||
export * from "./quotationCardDataScript";
|
||||
export * from "./quotationCardDataType";
|
||||
export * from "./quotationCardDataWildCardId";
|
||||
export * from "./quotationData";
|
||||
export * from "./quotationDataCreatedAt";
|
||||
export * from "./quotationDataEqualBidData";
|
||||
export * from "./quotationDataEqualBidYn";
|
||||
export * from "./quotationDataManagerContactNumber";
|
||||
export * from "./quotationDataManagerEmail";
|
||||
export * from "./quotationDataManagerName";
|
||||
export * from "./quotationDataMemo";
|
||||
export * from "./quotationDataPreferredSpId";
|
||||
export * from "./quotationDataPreferredSpName";
|
||||
export * from "./quotationDataPreferredSpYn";
|
||||
export * from "./quotationDataUpdatedAt";
|
||||
export * from "./quotationSettingData";
|
||||
export * from "./quotationSettingDataCreatedAt";
|
||||
export * from "./quotationSettingDataUpdatedAt";
|
||||
export * from "./quotationSettingDataUserId";
|
||||
export * from "./reqCheckCodes";
|
||||
export * from "./reqCreateAccount";
|
||||
export * from "./reqCreateCard";
|
||||
export * from "./reqCreateCardCondition";
|
||||
export * from "./reqCreateCardEditScript";
|
||||
export * from "./reqCreateCardMemo";
|
||||
export * from "./reqCreateCardName";
|
||||
export * from "./reqCreateCardNumber";
|
||||
export * from "./reqCreateCardScript";
|
||||
export * from "./reqCreateItem";
|
||||
export * from "./reqCreateItemCategory";
|
||||
export * from "./reqCreateItemCode";
|
||||
export * from "./reqCreateItemDeliveryFeeYn";
|
||||
export * from "./reqCreateItemDeliveryType";
|
||||
export * from "./reqCreateItemImageUrl";
|
||||
export * from "./reqCreateItemLeadTime";
|
||||
export * from "./reqCreateItemMadeIn";
|
||||
export * from "./reqCreateItemManufacturer";
|
||||
export * from "./reqCreateItemModelName";
|
||||
export * from "./reqCreateItemMoq";
|
||||
export * from "./reqCreateItemPrice";
|
||||
export * from "./reqCreateItemQuantityUnit";
|
||||
export * from "./reqCreateItemSpec";
|
||||
export * from "./reqCreateItemVatYn";
|
||||
export * from "./reqCreateQuotation";
|
||||
export * from "./reqCreateQuotationManagerContactNumber";
|
||||
export * from "./reqCreateQuotationManagerEmail";
|
||||
export * from "./reqCreateQuotationManagerName";
|
||||
export * from "./reqCreateQuotationMemo";
|
||||
export * from "./reqCreateQuotationSetting";
|
||||
export * from "./reqCreateSupplier";
|
||||
export * from "./reqCreateSupplierCode";
|
||||
export * from "./reqCreateSupplierManagerContactNumber";
|
||||
export * from "./reqCreateSupplierManagerEmail";
|
||||
export * from "./reqCreateSupplierManagerName";
|
||||
export * from "./reqCreateSupplierPriority";
|
||||
export * from "./reqLogin";
|
||||
export * from "./reqUpdateCard";
|
||||
export * from "./reqUpdateCardCondition";
|
||||
export * from "./reqUpdateCardEditScript";
|
||||
export * from "./reqUpdateCardMemo";
|
||||
export * from "./reqUpdateCardName";
|
||||
export * from "./reqUpdateCardNumber";
|
||||
export * from "./reqUpdateCardScript";
|
||||
export * from "./reqUpdateCardStatus";
|
||||
export * from "./reqUpdateItem";
|
||||
export * from "./reqUpdateItemCategory";
|
||||
export * from "./reqUpdateItemCategoryType";
|
||||
export * from "./reqUpdateItemCode";
|
||||
export * from "./reqUpdateItemDeliveryFeeYn";
|
||||
export * from "./reqUpdateItemDeliveryType";
|
||||
export * from "./reqUpdateItemImageUrl";
|
||||
export * from "./reqUpdateItemInternetLowestPriceYn";
|
||||
export * from "./reqUpdateItemLeadTime";
|
||||
export * from "./reqUpdateItemMadeIn";
|
||||
export * from "./reqUpdateItemManufacturer";
|
||||
export * from "./reqUpdateItemModelName";
|
||||
export * from "./reqUpdateItemMoq";
|
||||
export * from "./reqUpdateItemName";
|
||||
export * from "./reqUpdateItemPrice";
|
||||
export * from "./reqUpdateItemQuantityUnit";
|
||||
export * from "./reqUpdateItemSpec";
|
||||
export * from "./reqUpdateItemVatYn";
|
||||
export * from "./reqUpdateQuotationSetting";
|
||||
export * from "./reqUpdateQuotationSettingAnchoringValue";
|
||||
export * from "./reqUpdateQuotationSettingCardCount";
|
||||
export * from "./reqUpdateQuotationSettingTargetMarginRate";
|
||||
export * from "./reqUpdateSupplier";
|
||||
export * from "./reqUpdateSupplierCode";
|
||||
export * from "./reqUpdateSupplierManagerContactNumber";
|
||||
export * from "./reqUpdateSupplierManagerEmail";
|
||||
export * from "./reqUpdateSupplierManagerName";
|
||||
export * from "./reqUpdateSupplierName";
|
||||
export * from "./reqUpdateSupplierPriority";
|
||||
export * from "./resCard";
|
||||
export * from "./resCardCard";
|
||||
export * from "./resCardList";
|
||||
export * from "./resCardListMsg";
|
||||
export * from "./resCardMsg";
|
||||
export * from "./resCheckCodes";
|
||||
export * from "./resCheckCodesMsg";
|
||||
export * from "./resCreateAccount";
|
||||
export * from "./resCreateAccountMsg";
|
||||
export * from "./resCreateQuotation";
|
||||
export * from "./resCreateQuotationAsyncJob";
|
||||
export * from "./resCreateQuotationMsg";
|
||||
export * from "./resCreateQuotationQuotation";
|
||||
export * from "./resDeleteCard";
|
||||
export * from "./resDeleteCardMsg";
|
||||
export * from "./resDeleteItem";
|
||||
export * from "./resDeleteItemMsg";
|
||||
export * from "./resDeleteQuotation";
|
||||
export * from "./resDeleteQuotationMsg";
|
||||
export * from "./resDeleteQuotationSetting";
|
||||
export * from "./resDeleteQuotationSettingMsg";
|
||||
export * from "./resDeleteSupplier";
|
||||
export * from "./resDeleteSupplierMsg";
|
||||
export * from "./resEnums";
|
||||
export * from "./resEnumsEnums";
|
||||
export * from "./resEnumsMsg";
|
||||
export * from "./resExcelUpload";
|
||||
export * from "./resExcelUploadMsg";
|
||||
export * from "./resExcelUploadReceivedFilename";
|
||||
export * from "./resItem";
|
||||
export * from "./resItemCategories";
|
||||
export * from "./resItemCategoriesMsg";
|
||||
export * from "./resItemItem";
|
||||
export * from "./resItemList";
|
||||
export * from "./resItemListMsg";
|
||||
export * from "./resItemMsg";
|
||||
export * from "./resLogin";
|
||||
export * from "./resLoginMsg";
|
||||
export * from "./resLowestPriceResult";
|
||||
export * from "./resLowestPriceResultMsg";
|
||||
export * from "./resLowestPriceTrigger";
|
||||
export * from "./resLowestPriceTriggerMsg";
|
||||
export * from "./resMe";
|
||||
export * from "./resMeCompany";
|
||||
export * from "./resMeContactNumber";
|
||||
export * from "./resMeEmail";
|
||||
export * from "./resMeMsg";
|
||||
export * from "./resMeName";
|
||||
export * from "./resQuotation";
|
||||
export * from "./resQuotationCards";
|
||||
export * from "./resQuotationCardsMsg";
|
||||
export * from "./resQuotationCardsQtId";
|
||||
export * from "./resQuotationList";
|
||||
export * from "./resQuotationListMsg";
|
||||
export * from "./resQuotationMsg";
|
||||
export * from "./resQuotationQuotation";
|
||||
export * from "./resQuotationResult";
|
||||
export * from "./resQuotationResultEqualBidData";
|
||||
export * from "./resQuotationResultIsEqualBid";
|
||||
export * from "./resQuotationResultMsg";
|
||||
export * from "./resQuotationResultQtId";
|
||||
export * from "./resQuotationResultWinnerSupplierId";
|
||||
export * from "./resQuotationResultWinnerSupplierName";
|
||||
export * from "./resQuotationSessions";
|
||||
export * from "./resQuotationSessionsMsg";
|
||||
export * from "./resQuotationSessionsQtId";
|
||||
export * from "./resQuotationSetting";
|
||||
export * from "./resQuotationSettingList";
|
||||
export * from "./resQuotationSettingListMsg";
|
||||
export * from "./resQuotationSettingMsg";
|
||||
export * from "./resQuotationSettingSetting";
|
||||
export * from "./resQuotationStatus";
|
||||
export * from "./resQuotationStatusMsg";
|
||||
export * from "./resQuotationStatusQtId";
|
||||
export * from "./resRefreshToken";
|
||||
export * from "./resRefreshTokenMsg";
|
||||
export * from "./resSessionChat";
|
||||
export * from "./resSessionChatMsg";
|
||||
export * from "./resSessionChatSessionId";
|
||||
export * from "./resSupplier";
|
||||
export * from "./resSupplierList";
|
||||
export * from "./resSupplierListMsg";
|
||||
export * from "./resSupplierMsg";
|
||||
export * from "./resSupplierSupplier";
|
||||
export * from "./sessionData";
|
||||
export * from "./sessionDataBidAt";
|
||||
export * from "./sessionDataBidPrice";
|
||||
export * from "./sessionDataRejectDeliveryType";
|
||||
export * from "./sessionDataRejectPrice";
|
||||
export * from "./sessionDataRejectReason";
|
||||
export * from "./supplierData";
|
||||
export * from "./supplierDataCode";
|
||||
export * from "./supplierDataCreatedAt";
|
||||
export * from "./supplierDataManagerContactNumber";
|
||||
export * from "./supplierDataManagerEmail";
|
||||
export * from "./supplierDataManagerName";
|
||||
export * from "./supplierDataPriority";
|
||||
export * from "./supplierDataUpdatedAt";
|
||||
export * from "./validationError";
|
||||
export * from "./validationErrorCtx";
|
||||
export * from "./validationErrorLocItem";
|
||||
export * from './asyncJob';
|
||||
export * from './bodyUploadItemImageV1ItemImagePost';
|
||||
export * from './cardData';
|
||||
export * from './cardDataCondition';
|
||||
export * from './cardDataCreatedAt';
|
||||
export * from './cardDataEditScript';
|
||||
export * from './cardDataMemo';
|
||||
export * from './cardDataName';
|
||||
export * from './cardDataNumber';
|
||||
export * from './cardDataScript';
|
||||
export * from './cardDataUpdatedAt';
|
||||
export * from './cardDataUserId';
|
||||
export * from './chatMessageData';
|
||||
export * from './chatMessageDataCardId';
|
||||
export * from './chatMessageDataCardType';
|
||||
export * from './chatMessageDataCardUsedYn';
|
||||
export * from './chatMessageDataIndicatorValue';
|
||||
export * from './companyData';
|
||||
export * from './enumOption';
|
||||
export * from './errorInfo';
|
||||
export * from './errorInfoCode';
|
||||
export * from './errorInfoDesc';
|
||||
export * from './errorInfoSuccess';
|
||||
export * from './hTTPValidationError';
|
||||
export * from './itemCategory';
|
||||
export * from './itemData';
|
||||
export * from './itemDataCategory';
|
||||
export * from './itemDataCode';
|
||||
export * from './itemDataCreatedAt';
|
||||
export * from './itemDataDeliveryFeeYn';
|
||||
export * from './itemDataDeliveryType';
|
||||
export * from './itemDataImageUrl';
|
||||
export * from './itemDataLeadTime';
|
||||
export * from './itemDataMadeIn';
|
||||
export * from './itemDataManufacturer';
|
||||
export * from './itemDataModelName';
|
||||
export * from './itemDataMoq';
|
||||
export * from './itemDataPrice';
|
||||
export * from './itemDataQuantityUnit';
|
||||
export * from './itemDataSpec';
|
||||
export * from './itemDataUpdatedAt';
|
||||
export * from './itemDataVatYn';
|
||||
export * from './listCardsParams';
|
||||
export * from './listItemsParams';
|
||||
export * from './listQuotationsParams';
|
||||
export * from './listSuppliersParams';
|
||||
export * from './quotationCardData';
|
||||
export * from './quotationCardDataCondition';
|
||||
export * from './quotationCardDataEditScript';
|
||||
export * from './quotationCardDataMemo';
|
||||
export * from './quotationCardDataName';
|
||||
export * from './quotationCardDataNegoCardId';
|
||||
export * from './quotationCardDataNumber';
|
||||
export * from './quotationCardDataQtId';
|
||||
export * from './quotationCardDataScript';
|
||||
export * from './quotationCardDataType';
|
||||
export * from './quotationCardDataWildCardId';
|
||||
export * from './quotationData';
|
||||
export * from './quotationDataCreatedAt';
|
||||
export * from './quotationDataEqualBidData';
|
||||
export * from './quotationDataEqualBidYn';
|
||||
export * from './quotationDataManagerContactNumber';
|
||||
export * from './quotationDataManagerEmail';
|
||||
export * from './quotationDataManagerName';
|
||||
export * from './quotationDataMemo';
|
||||
export * from './quotationDataPreferredSpId';
|
||||
export * from './quotationDataPreferredSpName';
|
||||
export * from './quotationDataPreferredSpYn';
|
||||
export * from './quotationDataUpdatedAt';
|
||||
export * from './quotationSettingData';
|
||||
export * from './quotationSettingDataCreatedAt';
|
||||
export * from './quotationSettingDataUpdatedAt';
|
||||
export * from './quotationSettingDataUserId';
|
||||
export * from './reqCheckCodes';
|
||||
export * from './reqCreateAccount';
|
||||
export * from './reqCreateCard';
|
||||
export * from './reqCreateCardCondition';
|
||||
export * from './reqCreateCardEditScript';
|
||||
export * from './reqCreateCardMemo';
|
||||
export * from './reqCreateCardName';
|
||||
export * from './reqCreateCardNumber';
|
||||
export * from './reqCreateCardScript';
|
||||
export * from './reqCreateItem';
|
||||
export * from './reqCreateItemCategory';
|
||||
export * from './reqCreateItemCode';
|
||||
export * from './reqCreateItemDeliveryFeeYn';
|
||||
export * from './reqCreateItemDeliveryType';
|
||||
export * from './reqCreateItemImageUrl';
|
||||
export * from './reqCreateItemLeadTime';
|
||||
export * from './reqCreateItemMadeIn';
|
||||
export * from './reqCreateItemManufacturer';
|
||||
export * from './reqCreateItemModelName';
|
||||
export * from './reqCreateItemMoq';
|
||||
export * from './reqCreateItemPrice';
|
||||
export * from './reqCreateItemQuantityUnit';
|
||||
export * from './reqCreateItemSpec';
|
||||
export * from './reqCreateItemVatYn';
|
||||
export * from './reqCreateQuotation';
|
||||
export * from './reqCreateQuotationManagerContactNumber';
|
||||
export * from './reqCreateQuotationManagerEmail';
|
||||
export * from './reqCreateQuotationManagerName';
|
||||
export * from './reqCreateQuotationMemo';
|
||||
export * from './reqCreateQuotationSetting';
|
||||
export * from './reqCreateSupplier';
|
||||
export * from './reqCreateSupplierCode';
|
||||
export * from './reqCreateSupplierManagerContactNumber';
|
||||
export * from './reqCreateSupplierManagerEmail';
|
||||
export * from './reqCreateSupplierManagerName';
|
||||
export * from './reqCreateSupplierPriority';
|
||||
export * from './reqLogin';
|
||||
export * from './reqUpdateCard';
|
||||
export * from './reqUpdateCardCondition';
|
||||
export * from './reqUpdateCardEditScript';
|
||||
export * from './reqUpdateCardMemo';
|
||||
export * from './reqUpdateCardName';
|
||||
export * from './reqUpdateCardNumber';
|
||||
export * from './reqUpdateCardScript';
|
||||
export * from './reqUpdateCardStatus';
|
||||
export * from './reqUpdateItem';
|
||||
export * from './reqUpdateItemCategory';
|
||||
export * from './reqUpdateItemCategoryType';
|
||||
export * from './reqUpdateItemCode';
|
||||
export * from './reqUpdateItemDeliveryFeeYn';
|
||||
export * from './reqUpdateItemDeliveryType';
|
||||
export * from './reqUpdateItemImageUrl';
|
||||
export * from './reqUpdateItemInternetLowestPriceYn';
|
||||
export * from './reqUpdateItemLeadTime';
|
||||
export * from './reqUpdateItemMadeIn';
|
||||
export * from './reqUpdateItemManufacturer';
|
||||
export * from './reqUpdateItemModelName';
|
||||
export * from './reqUpdateItemMoq';
|
||||
export * from './reqUpdateItemName';
|
||||
export * from './reqUpdateItemPrice';
|
||||
export * from './reqUpdateItemQuantityUnit';
|
||||
export * from './reqUpdateItemSpec';
|
||||
export * from './reqUpdateItemVatYn';
|
||||
export * from './reqUpdateQuotationSetting';
|
||||
export * from './reqUpdateQuotationSettingAnchoringValue';
|
||||
export * from './reqUpdateQuotationSettingCardCount';
|
||||
export * from './reqUpdateQuotationSettingTargetMarginRate';
|
||||
export * from './reqUpdateSupplier';
|
||||
export * from './reqUpdateSupplierCode';
|
||||
export * from './reqUpdateSupplierManagerContactNumber';
|
||||
export * from './reqUpdateSupplierManagerEmail';
|
||||
export * from './reqUpdateSupplierManagerName';
|
||||
export * from './reqUpdateSupplierName';
|
||||
export * from './reqUpdateSupplierPriority';
|
||||
export * from './resCard';
|
||||
export * from './resCardCard';
|
||||
export * from './resCardList';
|
||||
export * from './resCardListMsg';
|
||||
export * from './resCardMsg';
|
||||
export * from './resCheckCodes';
|
||||
export * from './resCheckCodesMsg';
|
||||
export * from './resCreateAccount';
|
||||
export * from './resCreateAccountMsg';
|
||||
export * from './resCreateQuotation';
|
||||
export * from './resCreateQuotationAsyncJob';
|
||||
export * from './resCreateQuotationMsg';
|
||||
export * from './resCreateQuotationQuotation';
|
||||
export * from './resDeleteCard';
|
||||
export * from './resDeleteCardMsg';
|
||||
export * from './resDeleteItem';
|
||||
export * from './resDeleteItemMsg';
|
||||
export * from './resDeleteQuotation';
|
||||
export * from './resDeleteQuotationMsg';
|
||||
export * from './resDeleteQuotationSetting';
|
||||
export * from './resDeleteQuotationSettingMsg';
|
||||
export * from './resDeleteSupplier';
|
||||
export * from './resDeleteSupplierMsg';
|
||||
export * from './resEnums';
|
||||
export * from './resEnumsEnums';
|
||||
export * from './resEnumsMsg';
|
||||
export * from './resItem';
|
||||
export * from './resItemCategories';
|
||||
export * from './resItemCategoriesMsg';
|
||||
export * from './resItemImage';
|
||||
export * from './resItemImageFilename';
|
||||
export * from './resItemImageImageUrl';
|
||||
export * from './resItemImageMsg';
|
||||
export * from './resItemImageSize';
|
||||
export * from './resItemItem';
|
||||
export * from './resItemList';
|
||||
export * from './resItemListMsg';
|
||||
export * from './resItemMsg';
|
||||
export * from './resLogin';
|
||||
export * from './resLoginMsg';
|
||||
export * from './resLowestPriceResult';
|
||||
export * from './resLowestPriceResultMsg';
|
||||
export * from './resLowestPriceTrigger';
|
||||
export * from './resLowestPriceTriggerMsg';
|
||||
export * from './resMe';
|
||||
export * from './resMeCompany';
|
||||
export * from './resMeContactNumber';
|
||||
export * from './resMeEmail';
|
||||
export * from './resMeMsg';
|
||||
export * from './resMeName';
|
||||
export * from './resQuotation';
|
||||
export * from './resQuotationCards';
|
||||
export * from './resQuotationCardsMsg';
|
||||
export * from './resQuotationCardsQtId';
|
||||
export * from './resQuotationList';
|
||||
export * from './resQuotationListMsg';
|
||||
export * from './resQuotationMsg';
|
||||
export * from './resQuotationQuotation';
|
||||
export * from './resQuotationResult';
|
||||
export * from './resQuotationResultEqualBidData';
|
||||
export * from './resQuotationResultIsEqualBid';
|
||||
export * from './resQuotationResultMsg';
|
||||
export * from './resQuotationResultQtId';
|
||||
export * from './resQuotationResultWinnerSupplierId';
|
||||
export * from './resQuotationResultWinnerSupplierName';
|
||||
export * from './resQuotationSessions';
|
||||
export * from './resQuotationSessionsMsg';
|
||||
export * from './resQuotationSessionsQtId';
|
||||
export * from './resQuotationSetting';
|
||||
export * from './resQuotationSettingList';
|
||||
export * from './resQuotationSettingListMsg';
|
||||
export * from './resQuotationSettingMsg';
|
||||
export * from './resQuotationSettingSetting';
|
||||
export * from './resQuotationStatus';
|
||||
export * from './resQuotationStatusMsg';
|
||||
export * from './resQuotationStatusQtId';
|
||||
export * from './resRefreshToken';
|
||||
export * from './resRefreshTokenMsg';
|
||||
export * from './resSessionChat';
|
||||
export * from './resSessionChatMsg';
|
||||
export * from './resSessionChatSessionId';
|
||||
export * from './resSupplier';
|
||||
export * from './resSupplierList';
|
||||
export * from './resSupplierListMsg';
|
||||
export * from './resSupplierMsg';
|
||||
export * from './resSupplierSupplier';
|
||||
export * from './sessionData';
|
||||
export * from './sessionDataBidAt';
|
||||
export * from './sessionDataBidPrice';
|
||||
export * from './sessionDataRejectDeliveryType';
|
||||
export * from './sessionDataRejectPrice';
|
||||
export * from './sessionDataRejectReason';
|
||||
export * from './supplierData';
|
||||
export * from './supplierDataCode';
|
||||
export * from './supplierDataCreatedAt';
|
||||
export * from './supplierDataManagerContactNumber';
|
||||
export * from './supplierDataManagerEmail';
|
||||
export * from './supplierDataManagerName';
|
||||
export * from './supplierDataPriority';
|
||||
export * from './supplierDataUpdatedAt';
|
||||
export * from './validationError';
|
||||
export * from './validationErrorCtx';
|
||||
export * from './validationErrorLocItem';
|
||||
@@ -4,22 +4,22 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ItemDataCode } from "./itemDataCode";
|
||||
import type { ItemDataCategory } from "./itemDataCategory";
|
||||
import type { ItemDataImageUrl } from "./itemDataImageUrl";
|
||||
import type { ItemDataModelName } from "./itemDataModelName";
|
||||
import type { ItemDataSpec } from "./itemDataSpec";
|
||||
import type { ItemDataManufacturer } from "./itemDataManufacturer";
|
||||
import type { ItemDataMadeIn } from "./itemDataMadeIn";
|
||||
import type { ItemDataPrice } from "./itemDataPrice";
|
||||
import type { ItemDataMoq } from "./itemDataMoq";
|
||||
import type { ItemDataLeadTime } from "./itemDataLeadTime";
|
||||
import type { ItemDataQuantityUnit } from "./itemDataQuantityUnit";
|
||||
import type { ItemDataDeliveryType } from "./itemDataDeliveryType";
|
||||
import type { ItemDataVatYn } from "./itemDataVatYn";
|
||||
import type { ItemDataDeliveryFeeYn } from "./itemDataDeliveryFeeYn";
|
||||
import type { ItemDataCreatedAt } from "./itemDataCreatedAt";
|
||||
import type { ItemDataUpdatedAt } from "./itemDataUpdatedAt";
|
||||
import type { ItemDataCode } from './itemDataCode';
|
||||
import type { ItemDataCategory } from './itemDataCategory';
|
||||
import type { ItemDataImageUrl } from './itemDataImageUrl';
|
||||
import type { ItemDataModelName } from './itemDataModelName';
|
||||
import type { ItemDataSpec } from './itemDataSpec';
|
||||
import type { ItemDataManufacturer } from './itemDataManufacturer';
|
||||
import type { ItemDataMadeIn } from './itemDataMadeIn';
|
||||
import type { ItemDataPrice } from './itemDataPrice';
|
||||
import type { ItemDataMoq } from './itemDataMoq';
|
||||
import type { ItemDataLeadTime } from './itemDataLeadTime';
|
||||
import type { ItemDataQuantityUnit } from './itemDataQuantityUnit';
|
||||
import type { ItemDataDeliveryType } from './itemDataDeliveryType';
|
||||
import type { ItemDataVatYn } from './itemDataVatYn';
|
||||
import type { ItemDataDeliveryFeeYn } from './itemDataDeliveryFeeYn';
|
||||
import type { ItemDataCreatedAt } from './itemDataCreatedAt';
|
||||
import type { ItemDataUpdatedAt } from './itemDataUpdatedAt';
|
||||
|
||||
export interface ItemData {
|
||||
item_id: string;
|
||||
|
||||
@@ -6,17 +6,17 @@
|
||||
*/
|
||||
|
||||
export type ListCardsParams = {
|
||||
/**
|
||||
* 카드명/카드번호/스크립트 검색
|
||||
*/
|
||||
search?: string | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 100
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* 카드명/카드번호/스크립트 검색
|
||||
*/
|
||||
search?: string | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 100
|
||||
*/
|
||||
size?: number;
|
||||
};
|
||||
@@ -6,21 +6,21 @@
|
||||
*/
|
||||
|
||||
export type ListItemsParams = {
|
||||
/**
|
||||
* 상품명/상품코드 검색
|
||||
*/
|
||||
search?: string | null;
|
||||
/**
|
||||
* 카테고리 필터
|
||||
*/
|
||||
category?: string | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 100
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* 상품명/상품코드 검색
|
||||
*/
|
||||
search?: string | null;
|
||||
/**
|
||||
* 카테고리 필터
|
||||
*/
|
||||
category?: string | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 100
|
||||
*/
|
||||
size?: number;
|
||||
};
|
||||
@@ -6,29 +6,29 @@
|
||||
*/
|
||||
|
||||
export type ListQuotationsParams = {
|
||||
/**
|
||||
* 상태 필터(정확히 일치)
|
||||
*/
|
||||
status?: string | null;
|
||||
/**
|
||||
* 유형 필터(정확히 일치)
|
||||
*/
|
||||
type?: string | null;
|
||||
/**
|
||||
* 시작일시 이후(ISO)
|
||||
*/
|
||||
start_from?: string | null;
|
||||
/**
|
||||
* 시작일시 이전(ISO)
|
||||
*/
|
||||
start_to?: string | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 100
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* 상태 필터(정확히 일치)
|
||||
*/
|
||||
status?: string | null;
|
||||
/**
|
||||
* 유형 필터(정확히 일치)
|
||||
*/
|
||||
type?: string | null;
|
||||
/**
|
||||
* 시작일시 이후(ISO)
|
||||
*/
|
||||
start_from?: string | null;
|
||||
/**
|
||||
* 시작일시 이전(ISO)
|
||||
*/
|
||||
start_to?: string | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 100
|
||||
*/
|
||||
size?: number;
|
||||
};
|
||||
@@ -6,21 +6,21 @@
|
||||
*/
|
||||
|
||||
export type ListSuppliersParams = {
|
||||
/**
|
||||
* 협력사명/코드/담당자명 검색
|
||||
*/
|
||||
search?: string | null;
|
||||
/**
|
||||
* 우선순위 필터(HIGH/MEDIUM/LOW)
|
||||
*/
|
||||
priority?: string | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 100
|
||||
*/
|
||||
size?: number;
|
||||
/**
|
||||
* 협력사명/코드/담당자명 검색
|
||||
*/
|
||||
search?: string | null;
|
||||
/**
|
||||
* 우선순위 필터(HIGH/MEDIUM/LOW)
|
||||
*/
|
||||
priority?: string | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 100
|
||||
*/
|
||||
size?: number;
|
||||
};
|
||||
@@ -4,12 +4,16 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { QuotationCardDataQtId } from "./quotationCardDataQtId";
|
||||
import type { QuotationCardDataNegoCardId } from "./quotationCardDataNegoCardId";
|
||||
import type { QuotationCardDataWildCardId } from "./quotationCardDataWildCardId";
|
||||
import type { QuotationCardDataType } from "./quotationCardDataType";
|
||||
import type { QuotationCardDataName } from "./quotationCardDataName";
|
||||
import type { QuotationCardDataScript } from "./quotationCardDataScript";
|
||||
import type { QuotationCardDataQtId } from './quotationCardDataQtId';
|
||||
import type { QuotationCardDataNegoCardId } from './quotationCardDataNegoCardId';
|
||||
import type { QuotationCardDataWildCardId } from './quotationCardDataWildCardId';
|
||||
import type { QuotationCardDataType } from './quotationCardDataType';
|
||||
import type { QuotationCardDataNumber } from './quotationCardDataNumber';
|
||||
import type { QuotationCardDataName } from './quotationCardDataName';
|
||||
import type { QuotationCardDataScript } from './quotationCardDataScript';
|
||||
import type { QuotationCardDataEditScript } from './quotationCardDataEditScript';
|
||||
import type { QuotationCardDataCondition } from './quotationCardDataCondition';
|
||||
import type { QuotationCardDataMemo } from './quotationCardDataMemo';
|
||||
|
||||
export interface QuotationCardData {
|
||||
session_card_id: string;
|
||||
@@ -17,6 +21,10 @@ export interface QuotationCardData {
|
||||
nego_card_id?: QuotationCardDataNegoCardId;
|
||||
wild_card_id?: QuotationCardDataWildCardId;
|
||||
type?: QuotationCardDataType;
|
||||
number?: QuotationCardDataNumber;
|
||||
name?: QuotationCardDataName;
|
||||
script?: QuotationCardDataScript;
|
||||
edit_script?: QuotationCardDataEditScript;
|
||||
condition?: QuotationCardDataCondition;
|
||||
memo?: QuotationCardDataMemo;
|
||||
}
|
||||
+1
-1
@@ -5,4 +5,4 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ResExcelUploadReceivedFilename = string | null;
|
||||
export type QuotationCardDataCondition = string | null;
|
||||
+1
-3
@@ -5,6 +5,4 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export interface BodyUploadSuppliersExcelV1SupplierUploadExcelPost {
|
||||
file: string;
|
||||
}
|
||||
export type QuotationCardDataEditScript = unknown | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type QuotationCardDataMemo = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type QuotationCardDataNumber = string | null;
|
||||
@@ -4,17 +4,17 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { QuotationDataManagerName } from "./quotationDataManagerName";
|
||||
import type { QuotationDataManagerEmail } from "./quotationDataManagerEmail";
|
||||
import type { QuotationDataManagerContactNumber } from "./quotationDataManagerContactNumber";
|
||||
import type { QuotationDataMemo } from "./quotationDataMemo";
|
||||
import type { QuotationDataPreferredSpYn } from "./quotationDataPreferredSpYn";
|
||||
import type { QuotationDataPreferredSpId } from "./quotationDataPreferredSpId";
|
||||
import type { QuotationDataPreferredSpName } from "./quotationDataPreferredSpName";
|
||||
import type { QuotationDataEqualBidYn } from "./quotationDataEqualBidYn";
|
||||
import type { QuotationDataEqualBidData } from "./quotationDataEqualBidData";
|
||||
import type { QuotationDataCreatedAt } from "./quotationDataCreatedAt";
|
||||
import type { QuotationDataUpdatedAt } from "./quotationDataUpdatedAt";
|
||||
import type { QuotationDataManagerName } from './quotationDataManagerName';
|
||||
import type { QuotationDataManagerEmail } from './quotationDataManagerEmail';
|
||||
import type { QuotationDataManagerContactNumber } from './quotationDataManagerContactNumber';
|
||||
import type { QuotationDataMemo } from './quotationDataMemo';
|
||||
import type { QuotationDataPreferredSpYn } from './quotationDataPreferredSpYn';
|
||||
import type { QuotationDataPreferredSpId } from './quotationDataPreferredSpId';
|
||||
import type { QuotationDataPreferredSpName } from './quotationDataPreferredSpName';
|
||||
import type { QuotationDataEqualBidYn } from './quotationDataEqualBidYn';
|
||||
import type { QuotationDataEqualBidData } from './quotationDataEqualBidData';
|
||||
import type { QuotationDataCreatedAt } from './quotationDataCreatedAt';
|
||||
import type { QuotationDataUpdatedAt } from './quotationDataUpdatedAt';
|
||||
|
||||
export interface QuotationData {
|
||||
qt_id: string;
|
||||
@@ -38,6 +38,7 @@ export interface QuotationData {
|
||||
preferred_sp_name?: QuotationDataPreferredSpName;
|
||||
equal_bid_yn?: QuotationDataEqualBidYn;
|
||||
equal_bid_data?: QuotationDataEqualBidData;
|
||||
participation_count?: number;
|
||||
created_at?: QuotationDataCreatedAt;
|
||||
updated_at?: QuotationDataUpdatedAt;
|
||||
}
|
||||
@@ -4,9 +4,9 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { QuotationSettingDataUserId } from "./quotationSettingDataUserId";
|
||||
import type { QuotationSettingDataCreatedAt } from "./quotationSettingDataCreatedAt";
|
||||
import type { QuotationSettingDataUpdatedAt } from "./quotationSettingDataUpdatedAt";
|
||||
import type { QuotationSettingDataUserId } from './quotationSettingDataUserId';
|
||||
import type { QuotationSettingDataCreatedAt } from './quotationSettingDataCreatedAt';
|
||||
import type { QuotationSettingDataUpdatedAt } from './quotationSettingDataUpdatedAt';
|
||||
|
||||
export interface QuotationSettingData {
|
||||
qt_setting_id: string;
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqCreateCardName } from "./reqCreateCardName";
|
||||
import type { ReqCreateCardNumber } from "./reqCreateCardNumber";
|
||||
import type { ReqCreateCardScript } from "./reqCreateCardScript";
|
||||
import type { ReqCreateCardEditScript } from "./reqCreateCardEditScript";
|
||||
import type { ReqCreateCardCondition } from "./reqCreateCardCondition";
|
||||
import type { ReqCreateCardMemo } from "./reqCreateCardMemo";
|
||||
import type { ReqCreateCardName } from './reqCreateCardName';
|
||||
import type { ReqCreateCardNumber } from './reqCreateCardNumber';
|
||||
import type { ReqCreateCardScript } from './reqCreateCardScript';
|
||||
import type { ReqCreateCardEditScript } from './reqCreateCardEditScript';
|
||||
import type { ReqCreateCardCondition } from './reqCreateCardCondition';
|
||||
import type { ReqCreateCardMemo } from './reqCreateCardMemo';
|
||||
|
||||
export interface ReqCreateCard {
|
||||
is_wildcard?: boolean;
|
||||
|
||||
@@ -4,20 +4,20 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqCreateItemCode } from "./reqCreateItemCode";
|
||||
import type { ReqCreateItemCategory } from "./reqCreateItemCategory";
|
||||
import type { ReqCreateItemImageUrl } from "./reqCreateItemImageUrl";
|
||||
import type { ReqCreateItemModelName } from "./reqCreateItemModelName";
|
||||
import type { ReqCreateItemSpec } from "./reqCreateItemSpec";
|
||||
import type { ReqCreateItemManufacturer } from "./reqCreateItemManufacturer";
|
||||
import type { ReqCreateItemMadeIn } from "./reqCreateItemMadeIn";
|
||||
import type { ReqCreateItemPrice } from "./reqCreateItemPrice";
|
||||
import type { ReqCreateItemMoq } from "./reqCreateItemMoq";
|
||||
import type { ReqCreateItemLeadTime } from "./reqCreateItemLeadTime";
|
||||
import type { ReqCreateItemQuantityUnit } from "./reqCreateItemQuantityUnit";
|
||||
import type { ReqCreateItemDeliveryType } from "./reqCreateItemDeliveryType";
|
||||
import type { ReqCreateItemVatYn } from "./reqCreateItemVatYn";
|
||||
import type { ReqCreateItemDeliveryFeeYn } from "./reqCreateItemDeliveryFeeYn";
|
||||
import type { ReqCreateItemCode } from './reqCreateItemCode';
|
||||
import type { ReqCreateItemCategory } from './reqCreateItemCategory';
|
||||
import type { ReqCreateItemImageUrl } from './reqCreateItemImageUrl';
|
||||
import type { ReqCreateItemModelName } from './reqCreateItemModelName';
|
||||
import type { ReqCreateItemSpec } from './reqCreateItemSpec';
|
||||
import type { ReqCreateItemManufacturer } from './reqCreateItemManufacturer';
|
||||
import type { ReqCreateItemMadeIn } from './reqCreateItemMadeIn';
|
||||
import type { ReqCreateItemPrice } from './reqCreateItemPrice';
|
||||
import type { ReqCreateItemMoq } from './reqCreateItemMoq';
|
||||
import type { ReqCreateItemLeadTime } from './reqCreateItemLeadTime';
|
||||
import type { ReqCreateItemQuantityUnit } from './reqCreateItemQuantityUnit';
|
||||
import type { ReqCreateItemDeliveryType } from './reqCreateItemDeliveryType';
|
||||
import type { ReqCreateItemVatYn } from './reqCreateItemVatYn';
|
||||
import type { ReqCreateItemDeliveryFeeYn } from './reqCreateItemDeliveryFeeYn';
|
||||
|
||||
export interface ReqCreateItem {
|
||||
name?: string;
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqCreateQuotationManagerName } from "./reqCreateQuotationManagerName";
|
||||
import type { ReqCreateQuotationManagerEmail } from "./reqCreateQuotationManagerEmail";
|
||||
import type { ReqCreateQuotationManagerContactNumber } from "./reqCreateQuotationManagerContactNumber";
|
||||
import type { ReqCreateQuotationMemo } from "./reqCreateQuotationMemo";
|
||||
import type { ReqCreateQuotationManagerName } from './reqCreateQuotationManagerName';
|
||||
import type { ReqCreateQuotationManagerEmail } from './reqCreateQuotationManagerEmail';
|
||||
import type { ReqCreateQuotationManagerContactNumber } from './reqCreateQuotationManagerContactNumber';
|
||||
import type { ReqCreateQuotationMemo } from './reqCreateQuotationMemo';
|
||||
|
||||
export interface ReqCreateQuotation {
|
||||
qt_setting_id: string;
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqCreateSupplierCode } from "./reqCreateSupplierCode";
|
||||
import type { ReqCreateSupplierManagerName } from "./reqCreateSupplierManagerName";
|
||||
import type { ReqCreateSupplierManagerEmail } from "./reqCreateSupplierManagerEmail";
|
||||
import type { ReqCreateSupplierManagerContactNumber } from "./reqCreateSupplierManagerContactNumber";
|
||||
import type { ReqCreateSupplierPriority } from "./reqCreateSupplierPriority";
|
||||
import type { ReqCreateSupplierCode } from './reqCreateSupplierCode';
|
||||
import type { ReqCreateSupplierManagerName } from './reqCreateSupplierManagerName';
|
||||
import type { ReqCreateSupplierManagerEmail } from './reqCreateSupplierManagerEmail';
|
||||
import type { ReqCreateSupplierManagerContactNumber } from './reqCreateSupplierManagerContactNumber';
|
||||
import type { ReqCreateSupplierPriority } from './reqCreateSupplierPriority';
|
||||
|
||||
export interface ReqCreateSupplier {
|
||||
name?: string;
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqUpdateCardName } from "./reqUpdateCardName";
|
||||
import type { ReqUpdateCardNumber } from "./reqUpdateCardNumber";
|
||||
import type { ReqUpdateCardScript } from "./reqUpdateCardScript";
|
||||
import type { ReqUpdateCardEditScript } from "./reqUpdateCardEditScript";
|
||||
import type { ReqUpdateCardStatus } from "./reqUpdateCardStatus";
|
||||
import type { ReqUpdateCardCondition } from "./reqUpdateCardCondition";
|
||||
import type { ReqUpdateCardMemo } from "./reqUpdateCardMemo";
|
||||
import type { ReqUpdateCardName } from './reqUpdateCardName';
|
||||
import type { ReqUpdateCardNumber } from './reqUpdateCardNumber';
|
||||
import type { ReqUpdateCardScript } from './reqUpdateCardScript';
|
||||
import type { ReqUpdateCardEditScript } from './reqUpdateCardEditScript';
|
||||
import type { ReqUpdateCardStatus } from './reqUpdateCardStatus';
|
||||
import type { ReqUpdateCardCondition } from './reqUpdateCardCondition';
|
||||
import type { ReqUpdateCardMemo } from './reqUpdateCardMemo';
|
||||
|
||||
export interface ReqUpdateCard {
|
||||
name?: ReqUpdateCardName;
|
||||
|
||||
@@ -4,23 +4,23 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqUpdateItemName } from "./reqUpdateItemName";
|
||||
import type { ReqUpdateItemCode } from "./reqUpdateItemCode";
|
||||
import type { ReqUpdateItemCategory } from "./reqUpdateItemCategory";
|
||||
import type { ReqUpdateItemCategoryType } from "./reqUpdateItemCategoryType";
|
||||
import type { ReqUpdateItemImageUrl } from "./reqUpdateItemImageUrl";
|
||||
import type { ReqUpdateItemModelName } from "./reqUpdateItemModelName";
|
||||
import type { ReqUpdateItemSpec } from "./reqUpdateItemSpec";
|
||||
import type { ReqUpdateItemManufacturer } from "./reqUpdateItemManufacturer";
|
||||
import type { ReqUpdateItemMadeIn } from "./reqUpdateItemMadeIn";
|
||||
import type { ReqUpdateItemPrice } from "./reqUpdateItemPrice";
|
||||
import type { ReqUpdateItemInternetLowestPriceYn } from "./reqUpdateItemInternetLowestPriceYn";
|
||||
import type { ReqUpdateItemMoq } from "./reqUpdateItemMoq";
|
||||
import type { ReqUpdateItemLeadTime } from "./reqUpdateItemLeadTime";
|
||||
import type { ReqUpdateItemQuantityUnit } from "./reqUpdateItemQuantityUnit";
|
||||
import type { ReqUpdateItemDeliveryType } from "./reqUpdateItemDeliveryType";
|
||||
import type { ReqUpdateItemVatYn } from "./reqUpdateItemVatYn";
|
||||
import type { ReqUpdateItemDeliveryFeeYn } from "./reqUpdateItemDeliveryFeeYn";
|
||||
import type { ReqUpdateItemName } from './reqUpdateItemName';
|
||||
import type { ReqUpdateItemCode } from './reqUpdateItemCode';
|
||||
import type { ReqUpdateItemCategory } from './reqUpdateItemCategory';
|
||||
import type { ReqUpdateItemCategoryType } from './reqUpdateItemCategoryType';
|
||||
import type { ReqUpdateItemImageUrl } from './reqUpdateItemImageUrl';
|
||||
import type { ReqUpdateItemModelName } from './reqUpdateItemModelName';
|
||||
import type { ReqUpdateItemSpec } from './reqUpdateItemSpec';
|
||||
import type { ReqUpdateItemManufacturer } from './reqUpdateItemManufacturer';
|
||||
import type { ReqUpdateItemMadeIn } from './reqUpdateItemMadeIn';
|
||||
import type { ReqUpdateItemPrice } from './reqUpdateItemPrice';
|
||||
import type { ReqUpdateItemInternetLowestPriceYn } from './reqUpdateItemInternetLowestPriceYn';
|
||||
import type { ReqUpdateItemMoq } from './reqUpdateItemMoq';
|
||||
import type { ReqUpdateItemLeadTime } from './reqUpdateItemLeadTime';
|
||||
import type { ReqUpdateItemQuantityUnit } from './reqUpdateItemQuantityUnit';
|
||||
import type { ReqUpdateItemDeliveryType } from './reqUpdateItemDeliveryType';
|
||||
import type { ReqUpdateItemVatYn } from './reqUpdateItemVatYn';
|
||||
import type { ReqUpdateItemDeliveryFeeYn } from './reqUpdateItemDeliveryFeeYn';
|
||||
|
||||
export interface ReqUpdateItem {
|
||||
name?: ReqUpdateItemName;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqUpdateQuotationSettingTargetMarginRate } from "./reqUpdateQuotationSettingTargetMarginRate";
|
||||
import type { ReqUpdateQuotationSettingAnchoringValue } from "./reqUpdateQuotationSettingAnchoringValue";
|
||||
import type { ReqUpdateQuotationSettingCardCount } from "./reqUpdateQuotationSettingCardCount";
|
||||
import type { ReqUpdateQuotationSettingTargetMarginRate } from './reqUpdateQuotationSettingTargetMarginRate';
|
||||
import type { ReqUpdateQuotationSettingAnchoringValue } from './reqUpdateQuotationSettingAnchoringValue';
|
||||
import type { ReqUpdateQuotationSettingCardCount } from './reqUpdateQuotationSettingCardCount';
|
||||
|
||||
export interface ReqUpdateQuotationSetting {
|
||||
target_margin_rate?: ReqUpdateQuotationSettingTargetMarginRate;
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ReqUpdateSupplierName } from "./reqUpdateSupplierName";
|
||||
import type { ReqUpdateSupplierCode } from "./reqUpdateSupplierCode";
|
||||
import type { ReqUpdateSupplierManagerName } from "./reqUpdateSupplierManagerName";
|
||||
import type { ReqUpdateSupplierManagerEmail } from "./reqUpdateSupplierManagerEmail";
|
||||
import type { ReqUpdateSupplierManagerContactNumber } from "./reqUpdateSupplierManagerContactNumber";
|
||||
import type { ReqUpdateSupplierPriority } from "./reqUpdateSupplierPriority";
|
||||
import type { ReqUpdateSupplierName } from './reqUpdateSupplierName';
|
||||
import type { ReqUpdateSupplierCode } from './reqUpdateSupplierCode';
|
||||
import type { ReqUpdateSupplierManagerName } from './reqUpdateSupplierManagerName';
|
||||
import type { ReqUpdateSupplierManagerEmail } from './reqUpdateSupplierManagerEmail';
|
||||
import type { ReqUpdateSupplierManagerContactNumber } from './reqUpdateSupplierManagerContactNumber';
|
||||
import type { ReqUpdateSupplierPriority } from './reqUpdateSupplierPriority';
|
||||
|
||||
export interface ReqUpdateSupplier {
|
||||
name?: ReqUpdateSupplierName;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResCardMsg } from "./resCardMsg";
|
||||
import type { ResCardCard } from "./resCardCard";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResCardMsg } from './resCardMsg';
|
||||
import type { ResCardCard } from './resCardCard';
|
||||
|
||||
export interface ResCard {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { CardData } from "./cardData";
|
||||
import type { CardData } from './cardData';
|
||||
|
||||
export type ResCardCard = CardData | null;
|
||||
@@ -4,15 +4,15 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResCardListMsg } from "./resCardListMsg";
|
||||
import type { CardData } from "./cardData";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResCardListMsg } from './resCardListMsg';
|
||||
import type { CardData } from './cardData';
|
||||
|
||||
export interface ResCardList {
|
||||
result?: ErrorInfo;
|
||||
msg?: ResCardListMsg;
|
||||
cards?: CardData[];
|
||||
total?: number;
|
||||
page?: number;
|
||||
size?: number;
|
||||
cards?: CardData[];
|
||||
}
|
||||
@@ -4,8 +4,8 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResCheckCodesMsg } from "./resCheckCodesMsg";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResCheckCodesMsg } from './resCheckCodesMsg';
|
||||
|
||||
export interface ResCheckCodes {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResCreateAccountMsg } from "./resCreateAccountMsg";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResCreateAccountMsg } from './resCreateAccountMsg';
|
||||
|
||||
export interface ResCreateAccount {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResCreateQuotationMsg } from "./resCreateQuotationMsg";
|
||||
import type { ResCreateQuotationQuotation } from "./resCreateQuotationQuotation";
|
||||
import type { ResCreateQuotationAsyncJob } from "./resCreateQuotationAsyncJob";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResCreateQuotationMsg } from './resCreateQuotationMsg';
|
||||
import type { ResCreateQuotationQuotation } from './resCreateQuotationQuotation';
|
||||
import type { ResCreateQuotationAsyncJob } from './resCreateQuotationAsyncJob';
|
||||
|
||||
export interface ResCreateQuotation {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { AsyncJob } from "./asyncJob";
|
||||
import type { AsyncJob } from './asyncJob';
|
||||
|
||||
export type ResCreateQuotationAsyncJob = AsyncJob | null;
|
||||
@@ -4,6 +4,6 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { QuotationData } from "./quotationData";
|
||||
import type { QuotationData } from './quotationData';
|
||||
|
||||
export type ResCreateQuotationQuotation = QuotationData | null;
|
||||
@@ -4,8 +4,8 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResDeleteCardMsg } from "./resDeleteCardMsg";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResDeleteCardMsg } from './resDeleteCardMsg';
|
||||
|
||||
export interface ResDeleteCard {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResDeleteItemMsg } from "./resDeleteItemMsg";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResDeleteItemMsg } from './resDeleteItemMsg';
|
||||
|
||||
export interface ResDeleteItem {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResDeleteQuotationMsg } from "./resDeleteQuotationMsg";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResDeleteQuotationMsg } from './resDeleteQuotationMsg';
|
||||
|
||||
export interface ResDeleteQuotation {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResDeleteQuotationSettingMsg } from "./resDeleteQuotationSettingMsg";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResDeleteQuotationSettingMsg } from './resDeleteQuotationSettingMsg';
|
||||
|
||||
export interface ResDeleteQuotationSetting {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResDeleteSupplierMsg } from "./resDeleteSupplierMsg";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResDeleteSupplierMsg } from './resDeleteSupplierMsg';
|
||||
|
||||
export interface ResDeleteSupplier {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResEnumsMsg } from "./resEnumsMsg";
|
||||
import type { ResEnumsEnums } from "./resEnumsEnums";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResEnumsMsg } from './resEnumsMsg';
|
||||
import type { ResEnumsEnums } from './resEnumsEnums';
|
||||
|
||||
export interface ResEnums {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { EnumOption } from "./enumOption";
|
||||
import type { EnumOption } from './enumOption';
|
||||
|
||||
export type ResEnumsEnums = { [key: string]: EnumOption[] };
|
||||
export type ResEnumsEnums = {[key: string]: EnumOption[]};
|
||||
@@ -1,17 +0,0 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResExcelUploadMsg } from "./resExcelUploadMsg";
|
||||
import type { ResExcelUploadReceivedFilename } from "./resExcelUploadReceivedFilename";
|
||||
|
||||
export interface ResExcelUpload {
|
||||
result?: ErrorInfo;
|
||||
msg?: ResExcelUploadMsg;
|
||||
received_filename?: ResExcelUploadReceivedFilename;
|
||||
status?: string;
|
||||
message?: string;
|
||||
}
|
||||
@@ -4,9 +4,9 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResItemMsg } from "./resItemMsg";
|
||||
import type { ResItemItem } from "./resItemItem";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResItemMsg } from './resItemMsg';
|
||||
import type { ResItemItem } from './resItemItem';
|
||||
|
||||
export interface ResItem {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResItemCategoriesMsg } from "./resItemCategoriesMsg";
|
||||
import type { ItemCategory } from "./itemCategory";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResItemCategoriesMsg } from './resItemCategoriesMsg';
|
||||
import type { ItemCategory } from './itemCategory';
|
||||
|
||||
export interface ResItemCategories {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResItemImageMsg } from './resItemImageMsg';
|
||||
import type { ResItemImageImageUrl } from './resItemImageImageUrl';
|
||||
import type { ResItemImageFilename } from './resItemImageFilename';
|
||||
import type { ResItemImageSize } from './resItemImageSize';
|
||||
|
||||
export interface ResItemImage {
|
||||
result?: ErrorInfo;
|
||||
msg?: ResItemImageMsg;
|
||||
image_url?: ResItemImageImageUrl;
|
||||
filename?: ResItemImageFilename;
|
||||
size?: ResItemImageSize;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ResItemImageFilename = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ResItemImageImageUrl = string | null;
|
||||
+1
-1
@@ -5,4 +5,4 @@
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ResExcelUploadMsg = string | null;
|
||||
export type ResItemImageMsg = string | null;
|
||||
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export type ResItemImageSize = number | null;
|
||||
@@ -4,6 +4,6 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ItemData } from "./itemData";
|
||||
import type { ItemData } from './itemData';
|
||||
|
||||
export type ResItemItem = ItemData | null;
|
||||
@@ -4,15 +4,15 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResItemListMsg } from "./resItemListMsg";
|
||||
import type { ItemData } from "./itemData";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResItemListMsg } from './resItemListMsg';
|
||||
import type { ItemData } from './itemData';
|
||||
|
||||
export interface ResItemList {
|
||||
result?: ErrorInfo;
|
||||
msg?: ResItemListMsg;
|
||||
items?: ItemData[];
|
||||
total?: number;
|
||||
page?: number;
|
||||
size?: number;
|
||||
items?: ItemData[];
|
||||
}
|
||||
@@ -4,8 +4,8 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResLoginMsg } from "./resLoginMsg";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResLoginMsg } from './resLoginMsg';
|
||||
|
||||
export interface ResLogin {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResLowestPriceResultMsg } from "./resLowestPriceResultMsg";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResLowestPriceResultMsg } from './resLowestPriceResultMsg';
|
||||
|
||||
export interface ResLowestPriceResult {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResLowestPriceTriggerMsg } from "./resLowestPriceTriggerMsg";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResLowestPriceTriggerMsg } from './resLowestPriceTriggerMsg';
|
||||
|
||||
export interface ResLowestPriceTrigger {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResMeMsg } from "./resMeMsg";
|
||||
import type { ResMeName } from "./resMeName";
|
||||
import type { ResMeEmail } from "./resMeEmail";
|
||||
import type { ResMeContactNumber } from "./resMeContactNumber";
|
||||
import type { ResMeCompany } from "./resMeCompany";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResMeMsg } from './resMeMsg';
|
||||
import type { ResMeName } from './resMeName';
|
||||
import type { ResMeEmail } from './resMeEmail';
|
||||
import type { ResMeContactNumber } from './resMeContactNumber';
|
||||
import type { ResMeCompany } from './resMeCompany';
|
||||
|
||||
export interface ResMe {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { CompanyData } from "./companyData";
|
||||
import type { CompanyData } from './companyData';
|
||||
|
||||
export type ResMeCompany = CompanyData | null;
|
||||
@@ -4,9 +4,9 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResQuotationMsg } from "./resQuotationMsg";
|
||||
import type { ResQuotationQuotation } from "./resQuotationQuotation";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResQuotationMsg } from './resQuotationMsg';
|
||||
import type { ResQuotationQuotation } from './resQuotationQuotation';
|
||||
|
||||
export interface ResQuotation {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResQuotationCardsMsg } from "./resQuotationCardsMsg";
|
||||
import type { ResQuotationCardsQtId } from "./resQuotationCardsQtId";
|
||||
import type { QuotationCardData } from "./quotationCardData";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResQuotationCardsMsg } from './resQuotationCardsMsg';
|
||||
import type { ResQuotationCardsQtId } from './resQuotationCardsQtId';
|
||||
import type { QuotationCardData } from './quotationCardData';
|
||||
|
||||
export interface ResQuotationCards {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,15 +4,15 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResQuotationListMsg } from "./resQuotationListMsg";
|
||||
import type { QuotationData } from "./quotationData";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResQuotationListMsg } from './resQuotationListMsg';
|
||||
import type { QuotationData } from './quotationData';
|
||||
|
||||
export interface ResQuotationList {
|
||||
result?: ErrorInfo;
|
||||
msg?: ResQuotationListMsg;
|
||||
quotations?: QuotationData[];
|
||||
total?: number;
|
||||
page?: number;
|
||||
size?: number;
|
||||
quotations?: QuotationData[];
|
||||
}
|
||||
@@ -4,6 +4,6 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { QuotationData } from "./quotationData";
|
||||
import type { QuotationData } from './quotationData';
|
||||
|
||||
export type ResQuotationQuotation = QuotationData | null;
|
||||
@@ -4,13 +4,13 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResQuotationResultMsg } from "./resQuotationResultMsg";
|
||||
import type { ResQuotationResultQtId } from "./resQuotationResultQtId";
|
||||
import type { ResQuotationResultWinnerSupplierId } from "./resQuotationResultWinnerSupplierId";
|
||||
import type { ResQuotationResultWinnerSupplierName } from "./resQuotationResultWinnerSupplierName";
|
||||
import type { ResQuotationResultIsEqualBid } from "./resQuotationResultIsEqualBid";
|
||||
import type { ResQuotationResultEqualBidData } from "./resQuotationResultEqualBidData";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResQuotationResultMsg } from './resQuotationResultMsg';
|
||||
import type { ResQuotationResultQtId } from './resQuotationResultQtId';
|
||||
import type { ResQuotationResultWinnerSupplierId } from './resQuotationResultWinnerSupplierId';
|
||||
import type { ResQuotationResultWinnerSupplierName } from './resQuotationResultWinnerSupplierName';
|
||||
import type { ResQuotationResultIsEqualBid } from './resQuotationResultIsEqualBid';
|
||||
import type { ResQuotationResultEqualBidData } from './resQuotationResultEqualBidData';
|
||||
|
||||
export interface ResQuotationResult {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResQuotationSessionsMsg } from "./resQuotationSessionsMsg";
|
||||
import type { ResQuotationSessionsQtId } from "./resQuotationSessionsQtId";
|
||||
import type { SessionData } from "./sessionData";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResQuotationSessionsMsg } from './resQuotationSessionsMsg';
|
||||
import type { ResQuotationSessionsQtId } from './resQuotationSessionsQtId';
|
||||
import type { SessionData } from './sessionData';
|
||||
|
||||
export interface ResQuotationSessions {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResQuotationSettingMsg } from "./resQuotationSettingMsg";
|
||||
import type { ResQuotationSettingSetting } from "./resQuotationSettingSetting";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResQuotationSettingMsg } from './resQuotationSettingMsg';
|
||||
import type { ResQuotationSettingSetting } from './resQuotationSettingSetting';
|
||||
|
||||
export interface ResQuotationSetting {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResQuotationSettingListMsg } from "./resQuotationSettingListMsg";
|
||||
import type { QuotationSettingData } from "./quotationSettingData";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResQuotationSettingListMsg } from './resQuotationSettingListMsg';
|
||||
import type { QuotationSettingData } from './quotationSettingData';
|
||||
|
||||
export interface ResQuotationSettingList {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,6 +4,6 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { QuotationSettingData } from "./quotationSettingData";
|
||||
import type { QuotationSettingData } from './quotationSettingData';
|
||||
|
||||
export type ResQuotationSettingSetting = QuotationSettingData | null;
|
||||
@@ -4,9 +4,9 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResQuotationStatusMsg } from "./resQuotationStatusMsg";
|
||||
import type { ResQuotationStatusQtId } from "./resQuotationStatusQtId";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResQuotationStatusMsg } from './resQuotationStatusMsg';
|
||||
import type { ResQuotationStatusQtId } from './resQuotationStatusQtId';
|
||||
|
||||
export interface ResQuotationStatus {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResRefreshTokenMsg } from "./resRefreshTokenMsg";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResRefreshTokenMsg } from './resRefreshTokenMsg';
|
||||
|
||||
export interface ResRefreshToken {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResSessionChatMsg } from "./resSessionChatMsg";
|
||||
import type { ResSessionChatSessionId } from "./resSessionChatSessionId";
|
||||
import type { ChatMessageData } from "./chatMessageData";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResSessionChatMsg } from './resSessionChatMsg';
|
||||
import type { ResSessionChatSessionId } from './resSessionChatSessionId';
|
||||
import type { ChatMessageData } from './chatMessageData';
|
||||
|
||||
export interface ResSessionChat {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResSupplierMsg } from "./resSupplierMsg";
|
||||
import type { ResSupplierSupplier } from "./resSupplierSupplier";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResSupplierMsg } from './resSupplierMsg';
|
||||
import type { ResSupplierSupplier } from './resSupplierSupplier';
|
||||
|
||||
export interface ResSupplier {
|
||||
result?: ErrorInfo;
|
||||
|
||||
@@ -4,15 +4,15 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ErrorInfo } from "./errorInfo";
|
||||
import type { ResSupplierListMsg } from "./resSupplierListMsg";
|
||||
import type { SupplierData } from "./supplierData";
|
||||
import type { ErrorInfo } from './errorInfo';
|
||||
import type { ResSupplierListMsg } from './resSupplierListMsg';
|
||||
import type { SupplierData } from './supplierData';
|
||||
|
||||
export interface ResSupplierList {
|
||||
result?: ErrorInfo;
|
||||
msg?: ResSupplierListMsg;
|
||||
suppliers?: SupplierData[];
|
||||
total?: number;
|
||||
page?: number;
|
||||
size?: number;
|
||||
suppliers?: SupplierData[];
|
||||
}
|
||||
@@ -4,6 +4,6 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { SupplierData } from "./supplierData";
|
||||
import type { SupplierData } from './supplierData';
|
||||
|
||||
export type ResSupplierSupplier = SupplierData | null;
|
||||
@@ -4,11 +4,11 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { SessionDataBidPrice } from "./sessionDataBidPrice";
|
||||
import type { SessionDataBidAt } from "./sessionDataBidAt";
|
||||
import type { SessionDataRejectReason } from "./sessionDataRejectReason";
|
||||
import type { SessionDataRejectPrice } from "./sessionDataRejectPrice";
|
||||
import type { SessionDataRejectDeliveryType } from "./sessionDataRejectDeliveryType";
|
||||
import type { SessionDataBidPrice } from './sessionDataBidPrice';
|
||||
import type { SessionDataBidAt } from './sessionDataBidAt';
|
||||
import type { SessionDataRejectReason } from './sessionDataRejectReason';
|
||||
import type { SessionDataRejectPrice } from './sessionDataRejectPrice';
|
||||
import type { SessionDataRejectDeliveryType } from './sessionDataRejectDeliveryType';
|
||||
|
||||
export interface SessionData {
|
||||
session_id: string;
|
||||
|
||||
@@ -4,13 +4,13 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { SupplierDataCode } from "./supplierDataCode";
|
||||
import type { SupplierDataManagerName } from "./supplierDataManagerName";
|
||||
import type { SupplierDataManagerEmail } from "./supplierDataManagerEmail";
|
||||
import type { SupplierDataManagerContactNumber } from "./supplierDataManagerContactNumber";
|
||||
import type { SupplierDataPriority } from "./supplierDataPriority";
|
||||
import type { SupplierDataCreatedAt } from "./supplierDataCreatedAt";
|
||||
import type { SupplierDataUpdatedAt } from "./supplierDataUpdatedAt";
|
||||
import type { SupplierDataCode } from './supplierDataCode';
|
||||
import type { SupplierDataManagerName } from './supplierDataManagerName';
|
||||
import type { SupplierDataManagerEmail } from './supplierDataManagerEmail';
|
||||
import type { SupplierDataManagerContactNumber } from './supplierDataManagerContactNumber';
|
||||
import type { SupplierDataPriority } from './supplierDataPriority';
|
||||
import type { SupplierDataCreatedAt } from './supplierDataCreatedAt';
|
||||
import type { SupplierDataUpdatedAt } from './supplierDataUpdatedAt';
|
||||
|
||||
export interface SupplierData {
|
||||
supplier_id: string;
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { ValidationErrorLocItem } from "./validationErrorLocItem";
|
||||
import type { ValidationErrorCtx } from "./validationErrorCtx";
|
||||
import type { ValidationErrorLocItem } from './validationErrorLocItem';
|
||||
import type { ValidationErrorCtx } from './validationErrorCtx';
|
||||
|
||||
export interface ValidationError {
|
||||
loc: ValidationErrorLocItem[];
|
||||
|
||||
@@ -4,7 +4,10 @@
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
import {
|
||||
useMutation,
|
||||
useQuery
|
||||
} from '@tanstack/react-query';
|
||||
import type {
|
||||
DataTag,
|
||||
DefinedInitialDataOptions,
|
||||
@@ -17,8 +20,8 @@ import type {
|
||||
UseMutationOptions,
|
||||
UseMutationResult,
|
||||
UseQueryOptions,
|
||||
UseQueryResult,
|
||||
} from "@tanstack/react-query";
|
||||
UseQueryResult
|
||||
} from '@tanstack/react-query';
|
||||
|
||||
import type {
|
||||
HTTPValidationError,
|
||||
@@ -26,383 +29,295 @@ import type {
|
||||
ReqUpdateQuotationSetting,
|
||||
ResDeleteQuotationSetting,
|
||||
ResQuotationSetting,
|
||||
ResQuotationSettingList,
|
||||
} from ".././model";
|
||||
ResQuotationSettingList
|
||||
} from '.././model';
|
||||
|
||||
import { customFetch } from '../../mutator/custom-fetch';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
import { customFetch } from "../../mutator/custom-fetch";
|
||||
|
||||
/**
|
||||
* @summary 견적 설정 목록
|
||||
*/
|
||||
export const listSettings = (signal?: AbortSignal) => {
|
||||
return customFetch<ResQuotationSettingList>({
|
||||
url: `/v1/quotation-setting/list`,
|
||||
method: "GET",
|
||||
signal,
|
||||
});
|
||||
};
|
||||
export const listSettings = (
|
||||
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResQuotationSettingList>(
|
||||
{url: `/v1/quotation-setting/list`, method: 'GET', signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export const getListSettingsQueryKey = () => {
|
||||
return [`/v1/quotation-setting/list`] as const;
|
||||
};
|
||||
return [
|
||||
`/v1/quotation-setting/list`
|
||||
] as const;
|
||||
}
|
||||
|
||||
export const getListSettingsQueryOptions = <
|
||||
TData = Awaited<ReturnType<typeof listSettings>>,
|
||||
TError = void,
|
||||
>(options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listSettings>>, TError, TData>
|
||||
>;
|
||||
}) => {
|
||||
const { query: queryOptions } = options ?? {};
|
||||
|
||||
export const getListSettingsQueryOptions = <TData = Awaited<ReturnType<typeof listSettings>>, TError = void>( options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listSettings>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
) => {
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getListSettingsQueryKey();
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof listSettings>>> = ({
|
||||
signal,
|
||||
}) => listSettings(signal);
|
||||
const queryKey = queryOptions?.queryKey ?? getListSettingsQueryKey();
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
|
||||
Awaited<ReturnType<typeof listSettings>>,
|
||||
TError,
|
||||
TData
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
};
|
||||
|
||||
|
||||
export type ListSettingsQueryResult = NonNullable<
|
||||
Awaited<ReturnType<typeof listSettings>>
|
||||
>;
|
||||
export type ListSettingsQueryError = void;
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof listSettings>>> = ({ signal }) => listSettings(requestOptions, signal);
|
||||
|
||||
export function useListSettings<
|
||||
TData = Awaited<ReturnType<typeof listSettings>>,
|
||||
TError = void,
|
||||
>(
|
||||
options: {
|
||||
query: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listSettings>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listSettings>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type ListSettingsQueryResult = NonNullable<Awaited<ReturnType<typeof listSettings>>>
|
||||
export type ListSettingsQueryError = void
|
||||
|
||||
|
||||
export function useListSettings<TData = Awaited<ReturnType<typeof listSettings>>, TError = void>(
|
||||
options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listSettings>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof listSettings>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof listSettings>>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): DefinedUseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useListSettings<
|
||||
TData = Awaited<ReturnType<typeof listSettings>>,
|
||||
TError = void,
|
||||
>(
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listSettings>>, TError, TData>
|
||||
> &
|
||||
Pick<
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useListSettings<TData = Awaited<ReturnType<typeof listSettings>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listSettings>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof listSettings>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof listSettings>>
|
||||
>,
|
||||
"initialData"
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
};
|
||||
export function useListSettings<
|
||||
TData = Awaited<ReturnType<typeof listSettings>>,
|
||||
TError = void,
|
||||
>(
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listSettings>>, TError, TData>
|
||||
>;
|
||||
},
|
||||
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 useListSettings<TData = Awaited<ReturnType<typeof listSettings>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listSettings>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary 견적 설정 목록
|
||||
*/
|
||||
|
||||
export function useListSettings<
|
||||
TData = Awaited<ReturnType<typeof listSettings>>,
|
||||
TError = void,
|
||||
>(
|
||||
options?: {
|
||||
query?: Partial<
|
||||
UseQueryOptions<Awaited<ReturnType<typeof listSettings>>, TError, TData>
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseQueryResult<TData, TError> & {
|
||||
queryKey: DataTag<QueryKey, TData, TError>;
|
||||
} {
|
||||
const queryOptions = getListSettingsQueryOptions(options);
|
||||
export function useListSettings<TData = Awaited<ReturnType<typeof listSettings>>, TError = void>(
|
||||
options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listSettings>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
|
||||
TData,
|
||||
TError
|
||||
> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
const queryOptions = getListSettingsQueryOptions(options)
|
||||
|
||||
query.queryKey = queryOptions.queryKey;
|
||||
const query = useQuery(queryOptions, queryClient) as UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> };
|
||||
|
||||
query.queryKey = queryOptions.queryKey ;
|
||||
|
||||
return query;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @summary 견적 설정 등록
|
||||
*/
|
||||
export const createSetting = (
|
||||
reqCreateQuotationSetting: ReqCreateQuotationSetting,
|
||||
signal?: AbortSignal,
|
||||
reqCreateQuotationSetting: ReqCreateQuotationSetting,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
) => {
|
||||
return customFetch<ResQuotationSetting>({
|
||||
url: `/v1/quotation-setting/create`,
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqCreateQuotationSetting,
|
||||
signal,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
return customFetch<ResQuotationSetting>(
|
||||
{url: `/v1/quotation-setting/create`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqCreateQuotationSetting, signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
export const getCreateSettingMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof createSetting>>,
|
||||
TError,
|
||||
{ data: ReqCreateQuotationSetting },
|
||||
TContext
|
||||
>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof createSetting>>,
|
||||
TError,
|
||||
{ data: ReqCreateQuotationSetting },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["createSetting"];
|
||||
const { mutation: mutationOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey } };
|
||||
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof createSetting>>,
|
||||
{ data: ReqCreateQuotationSetting }
|
||||
> = (props) => {
|
||||
const { data } = props ?? {};
|
||||
export const getCreateSettingMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createSetting>>, TError,{data: ReqCreateQuotationSetting}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof createSetting>>, TError,{data: ReqCreateQuotationSetting}, TContext> => {
|
||||
|
||||
return createSetting(data);
|
||||
};
|
||||
const mutationKey = ['createSetting'];
|
||||
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 CreateSettingMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof createSetting>>
|
||||
>;
|
||||
export type CreateSettingMutationBody = ReqCreateQuotationSetting;
|
||||
export type CreateSettingMutationError = void | HTTPValidationError;
|
||||
|
||||
/**
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof createSetting>>, {data: ReqCreateQuotationSetting}> = (props) => {
|
||||
const {data} = props ?? {};
|
||||
|
||||
return createSetting(data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type CreateSettingMutationResult = NonNullable<Awaited<ReturnType<typeof createSetting>>>
|
||||
export type CreateSettingMutationBody = ReqCreateQuotationSetting
|
||||
export type CreateSettingMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
* @summary 견적 설정 등록
|
||||
*/
|
||||
export const useCreateSetting = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof createSetting>>,
|
||||
TError,
|
||||
{ data: ReqCreateQuotationSetting },
|
||||
TContext
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof createSetting>>,
|
||||
TError,
|
||||
{ data: ReqCreateQuotationSetting },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getCreateSettingMutationOptions(options);
|
||||
export const useCreateSetting = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof createSetting>>, TError,{data: ReqCreateQuotationSetting}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof createSetting>>,
|
||||
TError,
|
||||
{data: ReqCreateQuotationSetting},
|
||||
TContext
|
||||
> => {
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
/**
|
||||
const mutationOptions = getCreateSettingMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
* @summary 견적 설정 수정
|
||||
*/
|
||||
export const updateSetting = (
|
||||
qtSettingId: string,
|
||||
reqUpdateQuotationSetting: ReqUpdateQuotationSetting,
|
||||
) => {
|
||||
return customFetch<ResQuotationSetting>({
|
||||
url: `/v1/quotation-setting/update/${qtSettingId}`,
|
||||
method: "PATCH",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
data: reqUpdateQuotationSetting,
|
||||
});
|
||||
};
|
||||
qtSettingId: string,
|
||||
reqUpdateQuotationSetting: ReqUpdateQuotationSetting,
|
||||
options?: SecondParameter<typeof customFetch>,) => {
|
||||
|
||||
|
||||
return customFetch<ResQuotationSetting>(
|
||||
{url: `/v1/quotation-setting/update/${qtSettingId}`, method: 'PATCH',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqUpdateQuotationSetting
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
export const getUpdateSettingMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof updateSetting>>,
|
||||
TError,
|
||||
{ qtSettingId: string; data: ReqUpdateQuotationSetting },
|
||||
TContext
|
||||
>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof updateSetting>>,
|
||||
TError,
|
||||
{ qtSettingId: string; data: ReqUpdateQuotationSetting },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["updateSetting"];
|
||||
const { mutation: mutationOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey } };
|
||||
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof updateSetting>>,
|
||||
{ qtSettingId: string; data: ReqUpdateQuotationSetting }
|
||||
> = (props) => {
|
||||
const { qtSettingId, data } = props ?? {};
|
||||
export const getUpdateSettingMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateSetting>>, TError,{qtSettingId: string;data: ReqUpdateQuotationSetting}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof updateSetting>>, TError,{qtSettingId: string;data: ReqUpdateQuotationSetting}, TContext> => {
|
||||
|
||||
return updateSetting(qtSettingId, data);
|
||||
};
|
||||
const mutationKey = ['updateSetting'];
|
||||
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 UpdateSettingMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof updateSetting>>
|
||||
>;
|
||||
export type UpdateSettingMutationBody = ReqUpdateQuotationSetting;
|
||||
export type UpdateSettingMutationError = void | HTTPValidationError;
|
||||
|
||||
/**
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof updateSetting>>, {qtSettingId: string;data: ReqUpdateQuotationSetting}> = (props) => {
|
||||
const {qtSettingId,data} = props ?? {};
|
||||
|
||||
return updateSetting(qtSettingId,data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type UpdateSettingMutationResult = NonNullable<Awaited<ReturnType<typeof updateSetting>>>
|
||||
export type UpdateSettingMutationBody = ReqUpdateQuotationSetting
|
||||
export type UpdateSettingMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
* @summary 견적 설정 수정
|
||||
*/
|
||||
export const useUpdateSetting = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof updateSetting>>,
|
||||
TError,
|
||||
{ qtSettingId: string; data: ReqUpdateQuotationSetting },
|
||||
TContext
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof updateSetting>>,
|
||||
TError,
|
||||
{ qtSettingId: string; data: ReqUpdateQuotationSetting },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getUpdateSettingMutationOptions(options);
|
||||
export const useUpdateSetting = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof updateSetting>>, TError,{qtSettingId: string;data: ReqUpdateQuotationSetting}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof updateSetting>>,
|
||||
TError,
|
||||
{qtSettingId: string;data: ReqUpdateQuotationSetting},
|
||||
TContext
|
||||
> => {
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
/**
|
||||
const mutationOptions = getUpdateSettingMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
* @summary 견적 설정 삭제
|
||||
*/
|
||||
export const deleteSetting = (qtSettingId: string) => {
|
||||
return customFetch<ResDeleteQuotationSetting>({
|
||||
url: `/v1/quotation-setting/delete/${qtSettingId}`,
|
||||
method: "DELETE",
|
||||
});
|
||||
};
|
||||
export const deleteSetting = (
|
||||
qtSettingId: string,
|
||||
options?: SecondParameter<typeof customFetch>,) => {
|
||||
|
||||
|
||||
return customFetch<ResDeleteQuotationSetting>(
|
||||
{url: `/v1/quotation-setting/delete/${qtSettingId}`, method: 'DELETE'
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
export const getDeleteSettingMutationOptions = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof deleteSetting>>,
|
||||
TError,
|
||||
{ qtSettingId: string },
|
||||
TContext
|
||||
>;
|
||||
}): UseMutationOptions<
|
||||
Awaited<ReturnType<typeof deleteSetting>>,
|
||||
TError,
|
||||
{ qtSettingId: string },
|
||||
TContext
|
||||
> => {
|
||||
const mutationKey = ["deleteSetting"];
|
||||
const { mutation: mutationOptions } = options
|
||||
? options.mutation &&
|
||||
"mutationKey" in options.mutation &&
|
||||
options.mutation.mutationKey
|
||||
? options
|
||||
: { ...options, mutation: { ...options.mutation, mutationKey } }
|
||||
: { mutation: { mutationKey } };
|
||||
|
||||
const mutationFn: MutationFunction<
|
||||
Awaited<ReturnType<typeof deleteSetting>>,
|
||||
{ qtSettingId: string }
|
||||
> = (props) => {
|
||||
const { qtSettingId } = props ?? {};
|
||||
export const getDeleteSettingMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteSetting>>, TError,{qtSettingId: string}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof deleteSetting>>, TError,{qtSettingId: string}, TContext> => {
|
||||
|
||||
return deleteSetting(qtSettingId);
|
||||
};
|
||||
const mutationKey = ['deleteSetting'];
|
||||
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 DeleteSettingMutationResult = NonNullable<
|
||||
Awaited<ReturnType<typeof deleteSetting>>
|
||||
>;
|
||||
|
||||
export type DeleteSettingMutationError = void | HTTPValidationError;
|
||||
const mutationFn: MutationFunction<Awaited<ReturnType<typeof deleteSetting>>, {qtSettingId: string}> = (props) => {
|
||||
const {qtSettingId} = props ?? {};
|
||||
|
||||
/**
|
||||
return deleteSetting(qtSettingId,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type DeleteSettingMutationResult = NonNullable<Awaited<ReturnType<typeof deleteSetting>>>
|
||||
|
||||
export type DeleteSettingMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
* @summary 견적 설정 삭제
|
||||
*/
|
||||
export const useDeleteSetting = <
|
||||
TError = void | HTTPValidationError,
|
||||
TContext = unknown,
|
||||
>(
|
||||
options?: {
|
||||
mutation?: UseMutationOptions<
|
||||
Awaited<ReturnType<typeof deleteSetting>>,
|
||||
TError,
|
||||
{ qtSettingId: string },
|
||||
TContext
|
||||
>;
|
||||
},
|
||||
queryClient?: QueryClient,
|
||||
): UseMutationResult<
|
||||
Awaited<ReturnType<typeof deleteSetting>>,
|
||||
TError,
|
||||
{ qtSettingId: string },
|
||||
TContext
|
||||
> => {
|
||||
const mutationOptions = getDeleteSettingMutationOptions(options);
|
||||
export const useDeleteSetting = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof deleteSetting>>, TError,{qtSettingId: string}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof deleteSetting>>,
|
||||
TError,
|
||||
{qtSettingId: string},
|
||||
TContext
|
||||
> => {
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
};
|
||||
const mutationOptions = getDeleteSettingMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user