[feat] negodata/front: 프론트 초기 구축 (Vite+React, orval API 클라이언트, 견적/상품/협력사 페이지)

- 라우팅 react-router v7, 서버상태 TanStack Query
- orval 자동 생성 API 클라이언트(src/api/generated)
- 견적/상품/협력사/견적설정 페이지, shadcn UI, 토큰(tokens.css)
- 실행: 루트 docker compose (front :3001), README 그에 맞게 정리
- AI Studio 스캐폴드 잔재 제거(metadata.json, 중복 DESIGN_TOKENS.md), 타이틀 NegoData, vite.config 죽은코드 제거

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 4.8 committed 2026-06-16 17:18:08 +09:00
1 parent a6731dcb07
commit 87524bf6e8
288 files changed
+26363 -1

No files matched your search

@@ -0,0 +1,419 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
import { useMutation, useQuery } from "@tanstack/react-query";
import type {
DataTag,
DefinedInitialDataOptions,
DefinedUseQueryResult,
MutationFunction,
QueryClient,
QueryFunction,
QueryKey,
UndefinedInitialDataOptions,
UseMutationOptions,
UseMutationResult,
UseQueryOptions,
UseQueryResult,
} from "@tanstack/react-query";
import type {
HTTPValidationError,
ReqCreateAccount,
ReqLogin,
ResCreateAccount,
ResLogin,
ResMe,
ResRefreshToken,
} from ".././model";
import { customFetch } from "../../mutator/custom-fetch";
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
/**
* id/pw 로 로그인하고 JWT 토큰을 발급한다.
* @summary 로그인
*/
export const login = (
reqLogin: ReqLogin,
options?: SecondParameter<typeof customFetch>,
signal?: AbortSignal,
) => {
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
>;
request?: SecondParameter<typeof customFetch>;
}): UseMutationOptions<
Awaited<ReturnType<typeof login>>,
TError,
{ data: ReqLogin },
TContext
> => {
const mutationKey = ["login"];
const { mutation: mutationOptions, request: requestOptions } = options
? options.mutation &&
"mutationKey" in options.mutation &&
options.mutation.mutationKey
? options
: { ...options, mutation: { ...options.mutation, mutationKey } }
: { mutation: { mutationKey }, request: undefined };
const mutationFn: MutationFunction<
Awaited<ReturnType<typeof login>>,
{ data: ReqLogin }
> = (props) => {
const { data } = props ?? {};
return login(data, requestOptions);
};
return { mutationFn, ...mutationOptions };
};
export type LoginMutationResult = NonNullable<
Awaited<ReturnType<typeof login>>
>;
export type LoginMutationBody = ReqLogin;
export type LoginMutationError = void | HTTPValidationError;
/**
* @summary 로그인
*/
export const useLogin = <
TError = void | HTTPValidationError,
TContext = unknown,
>(
options?: {
mutation?: UseMutationOptions<
Awaited<ReturnType<typeof login>>,
TError,
{ data: ReqLogin },
TContext
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseMutationResult<
Awaited<ReturnType<typeof login>>,
TError,
{ data: ReqLogin },
TContext
> => {
const mutationOptions = getLoginMutationOptions(options);
return useMutation(mutationOptions, queryClient);
};
/**
* company_id 하위로 유저를 생성한다(시드/관리자용).
* @summary 계정 생성
*/
export const createAccount = (
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,
},
options,
);
};
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
> => {
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 };
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
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseMutationResult<
Awaited<ReturnType<typeof createAccount>>,
TError,
{ data: ReqCreateAccount },
TContext
> => {
const mutationOptions = getCreateAccountMutationOptions(options);
return useMutation(mutationOptions, queryClient);
};
/**
* refresh 토큰으로 access 토큰을 재발급한다.
* @summary 액세스 토큰 갱신
*/
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
>;
request?: SecondParameter<typeof customFetch>;
}): UseMutationOptions<
Awaited<ReturnType<typeof refreshToken>>,
TError,
void,
TContext
> => {
const mutationKey = ["refreshToken"];
const { mutation: mutationOptions, request: requestOptions } = options
? options.mutation &&
"mutationKey" in options.mutation &&
options.mutation.mutationKey
? options
: { ...options, mutation: { ...options.mutation, mutationKey } }
: { mutation: { mutationKey }, request: undefined };
const mutationFn: MutationFunction<
Awaited<ReturnType<typeof refreshToken>>,
void
> = () => {
return refreshToken(requestOptions);
};
return { mutationFn, ...mutationOptions };
};
export type RefreshTokenMutationResult = NonNullable<
Awaited<ReturnType<typeof refreshToken>>
>;
export type RefreshTokenMutationError = void;
/**
* @summary 액세스 토큰 갱신
*/
export const useRefreshToken = <TError = void, TContext = unknown>(
options?: {
mutation?: UseMutationOptions<
Awaited<ReturnType<typeof refreshToken>>,
TError,
void,
TContext
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseMutationResult<
Awaited<ReturnType<typeof refreshToken>>,
TError,
void,
TContext
> => {
const mutationOptions = getRefreshTokenMutationOptions(options);
return useMutation(mutationOptions, queryClient);
};
/**
* 유효한 access 토큰이 있어야 호출 가능. 토큰의 유저+소속사 정보를 반환한다.
* @summary 내 정보
*/
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;
};
export const getMeQueryOptions = <
TData = Awaited<ReturnType<typeof me>>,
TError = void,
>(options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>
>;
request?: SecondParameter<typeof customFetch>;
}) => {
const { query: queryOptions, request: requestOptions } = options ?? {};
const queryKey = queryOptions?.queryKey ?? getMeQueryKey();
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 function useMe<TData = Awaited<ReturnType<typeof me>>, TError = void>(
options: {
query: Partial<
UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>
> &
Pick<
DefinedInitialDataOptions<
Awaited<ReturnType<typeof me>>,
TError,
Awaited<ReturnType<typeof me>>
>,
"initialData"
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): DefinedUseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
export function useMe<TData = Awaited<ReturnType<typeof me>>, TError = void>(
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>
> &
Pick<
UndefinedInitialDataOptions<
Awaited<ReturnType<typeof me>>,
TError,
Awaited<ReturnType<typeof me>>
>,
"initialData"
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
export function useMe<TData = Awaited<ReturnType<typeof me>>, TError = void>(
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
/**
* @summary 내 정보
*/
export function useMe<TData = Awaited<ReturnType<typeof me>>, TError = void>(
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof me>>, TError, TData>
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
} {
const queryOptions = getMeQueryOptions(options);
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
TData,
TError
> & { queryKey: DataTag<QueryKey, TData, TError> };
query.queryKey = queryOptions.queryKey;
return query;
}
@@ -0,0 +1,176 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
import { useQuery } from "@tanstack/react-query";
import type {
DataTag,
DefinedInitialDataOptions,
DefinedUseQueryResult,
QueryClient,
QueryFunction,
QueryKey,
UndefinedInitialDataOptions,
UseQueryOptions,
UseQueryResult,
} from "@tanstack/react-query";
import { customFetch } from "../../mutator/custom-fetch";
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
/**
* @summary Healthz
*/
export const healthzHealthzGet = (
options?: SecondParameter<typeof customFetch>,
signal?: AbortSignal,
) => {
return customFetch<unknown>(
{ url: `/healthz`, method: "GET", signal },
options,
);
};
export const getHealthzHealthzGetQueryKey = () => {
return [`/healthz`] as const;
};
export const getHealthzHealthzGetQueryOptions = <
TData = Awaited<ReturnType<typeof healthzHealthzGet>>,
TError = void,
>(options?: {
query?: Partial<
UseQueryOptions<
Awaited<ReturnType<typeof healthzHealthzGet>>,
TError,
TData
>
>;
request?: SecondParameter<typeof customFetch>;
}) => {
const { query: queryOptions, request: requestOptions } = options ?? {};
const queryKey = queryOptions?.queryKey ?? getHealthzHealthzGetQueryKey();
const queryFn: QueryFunction<
Awaited<ReturnType<typeof healthzHealthzGet>>
> = ({ signal }) => healthzHealthzGet(requestOptions, signal);
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
Awaited<ReturnType<typeof healthzHealthzGet>>,
TError,
TData
> & { queryKey: DataTag<QueryKey, TData, TError> };
};
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"
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): DefinedUseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
export function useHealthzHealthzGet<
TData = Awaited<ReturnType<typeof healthzHealthzGet>>,
TError = void,
>(
options?: {
query?: Partial<
UseQueryOptions<
Awaited<ReturnType<typeof healthzHealthzGet>>,
TError,
TData
>
> &
Pick<
UndefinedInitialDataOptions<
Awaited<ReturnType<typeof healthzHealthzGet>>,
TError,
Awaited<ReturnType<typeof healthzHealthzGet>>
>,
"initialData"
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
export function useHealthzHealthzGet<
TData = Awaited<ReturnType<typeof healthzHealthzGet>>,
TError = void,
>(
options?: {
query?: Partial<
UseQueryOptions<
Awaited<ReturnType<typeof healthzHealthzGet>>,
TError,
TData
>
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
/**
* @summary Healthz
*/
export function useHealthzHealthzGet<
TData = Awaited<ReturnType<typeof healthzHealthzGet>>,
TError = void,
>(
options?: {
query?: Partial<
UseQueryOptions<
Awaited<ReturnType<typeof healthzHealthzGet>>,
TError,
TData
>
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
} {
const queryOptions = getHealthzHealthzGetQueryOptions(options);
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
TData,
TError
> & { queryKey: DataTag<QueryKey, TData, TError> };
query.queryKey = queryOptions.queryKey;
return query;
}
@@ -0,0 +1,918 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
import { useMutation, useQuery } from "@tanstack/react-query";
import type {
DataTag,
DefinedInitialDataOptions,
DefinedUseQueryResult,
MutationFunction,
QueryClient,
QueryFunction,
QueryKey,
UndefinedInitialDataOptions,
UseMutationOptions,
UseMutationResult,
UseQueryOptions,
UseQueryResult,
} from "@tanstack/react-query";
import type {
BodyUploadItemsExcelV1ItemUploadExcelPost,
HTTPValidationError,
ListItemsParams,
ReqCreateItem,
ReqUpdateItem,
ResDeleteItem,
ResExcelUpload,
ResItem,
ResItemList,
ResLowestPriceResult,
ResLowestPriceTrigger,
} from ".././model";
import { customFetch } from "../../mutator/custom-fetch";
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
/**
* @summary 상품 목록
*/
export const listItems = (
params?: ListItemsParams,
options?: SecondParameter<typeof customFetch>,
signal?: AbortSignal,
) => {
return customFetch<ResItemList>(
{ url: `/v1/item/list`, method: "GET", params, signal },
options,
);
};
export const getListItemsQueryKey = (params?: ListItemsParams) => {
return [`/v1/item/list`, ...(params ? [params] : [])] as const;
};
export const getListItemsQueryOptions = <
TData = Awaited<ReturnType<typeof listItems>>,
TError = void | HTTPValidationError,
>(
params?: ListItemsParams,
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof listItems>>, TError, TData>
>;
request?: SecondParameter<typeof customFetch>;
},
) => {
const { query: queryOptions, request: requestOptions } = options ?? {};
const queryKey = queryOptions?.queryKey ?? getListItemsQueryKey(params);
const queryFn: QueryFunction<Awaited<ReturnType<typeof listItems>>> = ({
signal,
}) => listItems(params, requestOptions, signal);
return { queryKey, queryFn, ...queryOptions } as UseQueryOptions<
Awaited<ReturnType<typeof listItems>>,
TError,
TData
> & { queryKey: DataTag<QueryKey, TData, TError> };
};
export type ListItemsQueryResult = NonNullable<
Awaited<ReturnType<typeof listItems>>
>;
export type ListItemsQueryError = void | HTTPValidationError;
export function useListItems<
TData = Awaited<ReturnType<typeof listItems>>,
TError = void | HTTPValidationError,
>(
params: undefined | ListItemsParams,
options: {
query: Partial<
UseQueryOptions<Awaited<ReturnType<typeof listItems>>, TError, TData>
> &
Pick<
DefinedInitialDataOptions<
Awaited<ReturnType<typeof listItems>>,
TError,
Awaited<ReturnType<typeof listItems>>
>,
"initialData"
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): DefinedUseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
export function useListItems<
TData = Awaited<ReturnType<typeof listItems>>,
TError = void | HTTPValidationError,
>(
params?: ListItemsParams,
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof listItems>>, TError, TData>
> &
Pick<
UndefinedInitialDataOptions<
Awaited<ReturnType<typeof listItems>>,
TError,
Awaited<ReturnType<typeof listItems>>
>,
"initialData"
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
export function useListItems<
TData = Awaited<ReturnType<typeof listItems>>,
TError = void | HTTPValidationError,
>(
params?: ListItemsParams,
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof listItems>>, TError, TData>
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
/**
* @summary 상품 목록
*/
export function useListItems<
TData = Awaited<ReturnType<typeof listItems>>,
TError = void | HTTPValidationError,
>(
params?: ListItemsParams,
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof listItems>>, TError, TData>
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
} {
const queryOptions = getListItemsQueryOptions(params, options);
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
TData,
TError
> & { queryKey: DataTag<QueryKey, TData, TError> };
query.queryKey = queryOptions.queryKey;
return query;
}
/**
* @summary 상품 등록
*/
export const createItem = (
reqCreateItem: ReqCreateItem,
options?: SecondParameter<typeof customFetch>,
signal?: AbortSignal,
) => {
return customFetch<ResItem>(
{
url: `/v1/item/create`,
method: "POST",
headers: { "Content-Type": "application/json" },
data: reqCreateItem,
signal,
},
options,
);
};
export const getCreateItemMutationOptions = <
TError = void | HTTPValidationError,
TContext = unknown,
>(options?: {
mutation?: UseMutationOptions<
Awaited<ReturnType<typeof createItem>>,
TError,
{ data: ReqCreateItem },
TContext
>;
request?: SecondParameter<typeof customFetch>;
}): UseMutationOptions<
Awaited<ReturnType<typeof createItem>>,
TError,
{ data: ReqCreateItem },
TContext
> => {
const mutationKey = ["createItem"];
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 createItem>>,
{ data: ReqCreateItem }
> = (props) => {
const { data } = props ?? {};
return createItem(data, requestOptions);
};
return { mutationFn, ...mutationOptions };
};
export type CreateItemMutationResult = NonNullable<
Awaited<ReturnType<typeof createItem>>
>;
export type CreateItemMutationBody = ReqCreateItem;
export type CreateItemMutationError = void | HTTPValidationError;
/**
* @summary 상품 등록
*/
export const useCreateItem = <
TError = void | HTTPValidationError,
TContext = unknown,
>(
options?: {
mutation?: UseMutationOptions<
Awaited<ReturnType<typeof createItem>>,
TError,
{ data: ReqCreateItem },
TContext
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseMutationResult<
Awaited<ReturnType<typeof createItem>>,
TError,
{ data: ReqCreateItem },
TContext
> => {
const mutationOptions = getCreateItemMutationOptions(options);
return useMutation(mutationOptions, queryClient);
};
/**
* @summary 엑셀 일괄 등록(스텁)
*/
export const uploadItemsExcel = (
bodyUploadItemsExcelV1ItemUploadExcelPost: BodyUploadItemsExcelV1ItemUploadExcelPost,
options?: SecondParameter<typeof customFetch>,
signal?: AbortSignal,
) => {
const formData = new FormData();
formData.append(`file`, bodyUploadItemsExcelV1ItemUploadExcelPost.file);
return customFetch<ResExcelUpload>(
{
url: `/v1/item/upload-excel`,
method: "POST",
headers: { "Content-Type": "multipart/form-data" },
data: formData,
signal,
},
options,
);
};
export const getUploadItemsExcelMutationOptions = <
TError = void | HTTPValidationError,
TContext = unknown,
>(options?: {
mutation?: UseMutationOptions<
Awaited<ReturnType<typeof uploadItemsExcel>>,
TError,
{ data: BodyUploadItemsExcelV1ItemUploadExcelPost },
TContext
>;
request?: SecondParameter<typeof customFetch>;
}): UseMutationOptions<
Awaited<ReturnType<typeof uploadItemsExcel>>,
TError,
{ data: BodyUploadItemsExcelV1ItemUploadExcelPost },
TContext
> => {
const mutationKey = ["uploadItemsExcel"];
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 uploadItemsExcel>>,
{ data: BodyUploadItemsExcelV1ItemUploadExcelPost }
> = (props) => {
const { data } = props ?? {};
return uploadItemsExcel(data, requestOptions);
};
return { mutationFn, ...mutationOptions };
};
export type UploadItemsExcelMutationResult = NonNullable<
Awaited<ReturnType<typeof uploadItemsExcel>>
>;
export type UploadItemsExcelMutationBody =
BodyUploadItemsExcelV1ItemUploadExcelPost;
export type UploadItemsExcelMutationError = void | HTTPValidationError;
/**
* @summary 엑셀 일괄 등록(스텁)
*/
export const useUploadItemsExcel = <
TError = void | HTTPValidationError,
TContext = unknown,
>(
options?: {
mutation?: UseMutationOptions<
Awaited<ReturnType<typeof uploadItemsExcel>>,
TError,
{ data: BodyUploadItemsExcelV1ItemUploadExcelPost },
TContext
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseMutationResult<
Awaited<ReturnType<typeof uploadItemsExcel>>,
TError,
{ data: BodyUploadItemsExcelV1ItemUploadExcelPost },
TContext
> => {
const mutationOptions = getUploadItemsExcelMutationOptions(options);
return useMutation(mutationOptions, queryClient);
};
/**
* @summary 상품 조회
*/
export const getItem = (
itemId: string,
options?: SecondParameter<typeof customFetch>,
signal?: AbortSignal,
) => {
return customFetch<ResItem>(
{ url: `/v1/item/${itemId}`, method: "GET", signal },
options,
);
};
export const getGetItemQueryKey = (itemId?: string) => {
return [`/v1/item/${itemId}`] as const;
};
export const getGetItemQueryOptions = <
TData = Awaited<ReturnType<typeof getItem>>,
TError = void | HTTPValidationError,
>(
itemId: string,
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof getItem>>, TError, TData>
>;
request?: SecondParameter<typeof customFetch>;
},
) => {
const { query: queryOptions, request: requestOptions } = options ?? {};
const queryKey = queryOptions?.queryKey ?? getGetItemQueryKey(itemId);
const queryFn: QueryFunction<Awaited<ReturnType<typeof getItem>>> = ({
signal,
}) => getItem(itemId, requestOptions, signal);
return {
queryKey,
queryFn,
enabled: !!itemId,
...queryOptions,
} as UseQueryOptions<Awaited<ReturnType<typeof getItem>>, TError, TData> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
};
export type GetItemQueryResult = NonNullable<
Awaited<ReturnType<typeof getItem>>
>;
export type GetItemQueryError = void | HTTPValidationError;
export function useGetItem<
TData = Awaited<ReturnType<typeof getItem>>,
TError = void | HTTPValidationError,
>(
itemId: string,
options: {
query: Partial<
UseQueryOptions<Awaited<ReturnType<typeof getItem>>, TError, TData>
> &
Pick<
DefinedInitialDataOptions<
Awaited<ReturnType<typeof getItem>>,
TError,
Awaited<ReturnType<typeof getItem>>
>,
"initialData"
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): DefinedUseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
export function useGetItem<
TData = Awaited<ReturnType<typeof getItem>>,
TError = void | HTTPValidationError,
>(
itemId: string,
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof getItem>>, TError, TData>
> &
Pick<
UndefinedInitialDataOptions<
Awaited<ReturnType<typeof getItem>>,
TError,
Awaited<ReturnType<typeof getItem>>
>,
"initialData"
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
export function useGetItem<
TData = Awaited<ReturnType<typeof getItem>>,
TError = void | HTTPValidationError,
>(
itemId: string,
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof getItem>>, TError, TData>
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
/**
* @summary 상품 조회
*/
export function useGetItem<
TData = Awaited<ReturnType<typeof getItem>>,
TError = void | HTTPValidationError,
>(
itemId: string,
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof getItem>>, TError, TData>
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
} {
const queryOptions = getGetItemQueryOptions(itemId, options);
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
TData,
TError
> & { queryKey: DataTag<QueryKey, TData, TError> };
query.queryKey = queryOptions.queryKey;
return query;
}
/**
* @summary 상품 수정
*/
export const updateItem = (
itemId: string,
reqUpdateItem: ReqUpdateItem,
options?: SecondParameter<typeof customFetch>,
) => {
return customFetch<ResItem>(
{
url: `/v1/item/update/${itemId}`,
method: "PATCH",
headers: { "Content-Type": "application/json" },
data: reqUpdateItem,
},
options,
);
};
export const getUpdateItemMutationOptions = <
TError = void | HTTPValidationError,
TContext = unknown,
>(options?: {
mutation?: UseMutationOptions<
Awaited<ReturnType<typeof updateItem>>,
TError,
{ itemId: string; data: ReqUpdateItem },
TContext
>;
request?: SecondParameter<typeof customFetch>;
}): UseMutationOptions<
Awaited<ReturnType<typeof updateItem>>,
TError,
{ itemId: string; data: ReqUpdateItem },
TContext
> => {
const mutationKey = ["updateItem"];
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 updateItem>>,
{ itemId: string; data: ReqUpdateItem }
> = (props) => {
const { itemId, data } = props ?? {};
return updateItem(itemId, data, requestOptions);
};
return { mutationFn, ...mutationOptions };
};
export type UpdateItemMutationResult = NonNullable<
Awaited<ReturnType<typeof updateItem>>
>;
export type UpdateItemMutationBody = ReqUpdateItem;
export type UpdateItemMutationError = void | HTTPValidationError;
/**
* @summary 상품 수정
*/
export const useUpdateItem = <
TError = void | HTTPValidationError,
TContext = unknown,
>(
options?: {
mutation?: UseMutationOptions<
Awaited<ReturnType<typeof updateItem>>,
TError,
{ itemId: string; data: ReqUpdateItem },
TContext
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseMutationResult<
Awaited<ReturnType<typeof updateItem>>,
TError,
{ itemId: string; data: ReqUpdateItem },
TContext
> => {
const mutationOptions = getUpdateItemMutationOptions(options);
return useMutation(mutationOptions, queryClient);
};
/**
* @summary 상품 삭제
*/
export const deleteItem = (
itemId: string,
options?: SecondParameter<typeof customFetch>,
) => {
return customFetch<ResDeleteItem>(
{ url: `/v1/item/delete/${itemId}`, method: "DELETE" },
options,
);
};
export const getDeleteItemMutationOptions = <
TError = void | HTTPValidationError,
TContext = unknown,
>(options?: {
mutation?: UseMutationOptions<
Awaited<ReturnType<typeof deleteItem>>,
TError,
{ itemId: string },
TContext
>;
request?: SecondParameter<typeof customFetch>;
}): UseMutationOptions<
Awaited<ReturnType<typeof deleteItem>>,
TError,
{ itemId: string },
TContext
> => {
const mutationKey = ["deleteItem"];
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 deleteItem>>,
{ itemId: string }
> = (props) => {
const { itemId } = props ?? {};
return deleteItem(itemId, requestOptions);
};
return { mutationFn, ...mutationOptions };
};
export type DeleteItemMutationResult = NonNullable<
Awaited<ReturnType<typeof deleteItem>>
>;
export type DeleteItemMutationError = void | HTTPValidationError;
/**
* @summary 상품 삭제
*/
export const useDeleteItem = <
TError = void | HTTPValidationError,
TContext = unknown,
>(
options?: {
mutation?: UseMutationOptions<
Awaited<ReturnType<typeof deleteItem>>,
TError,
{ itemId: string },
TContext
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseMutationResult<
Awaited<ReturnType<typeof deleteItem>>,
TError,
{ itemId: string },
TContext
> => {
const mutationOptions = getDeleteItemMutationOptions(options);
return useMutation(mutationOptions, queryClient);
};
/**
* @summary 최저가 수집 요청(스텁)
*/
export const triggerLowestPrice = (
itemId: string,
options?: SecondParameter<typeof customFetch>,
signal?: AbortSignal,
) => {
return customFetch<ResLowestPriceTrigger>(
{ url: `/v1/item/${itemId}/lowest-price`, method: "POST", signal },
options,
);
};
export const getTriggerLowestPriceMutationOptions = <
TError = void | HTTPValidationError,
TContext = unknown,
>(options?: {
mutation?: UseMutationOptions<
Awaited<ReturnType<typeof triggerLowestPrice>>,
TError,
{ itemId: string },
TContext
>;
request?: SecondParameter<typeof customFetch>;
}): UseMutationOptions<
Awaited<ReturnType<typeof triggerLowestPrice>>,
TError,
{ itemId: string },
TContext
> => {
const mutationKey = ["triggerLowestPrice"];
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 triggerLowestPrice>>,
{ itemId: string }
> = (props) => {
const { itemId } = props ?? {};
return triggerLowestPrice(itemId, requestOptions);
};
return { mutationFn, ...mutationOptions };
};
export type TriggerLowestPriceMutationResult = NonNullable<
Awaited<ReturnType<typeof triggerLowestPrice>>
>;
export type TriggerLowestPriceMutationError = void | HTTPValidationError;
/**
* @summary 최저가 수집 요청(스텁)
*/
export const useTriggerLowestPrice = <
TError = void | HTTPValidationError,
TContext = unknown,
>(
options?: {
mutation?: UseMutationOptions<
Awaited<ReturnType<typeof triggerLowestPrice>>,
TError,
{ itemId: string },
TContext
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseMutationResult<
Awaited<ReturnType<typeof triggerLowestPrice>>,
TError,
{ itemId: string },
TContext
> => {
const mutationOptions = getTriggerLowestPriceMutationOptions(options);
return useMutation(mutationOptions, queryClient);
};
/**
* @summary 최저가 수집 결과(스텁)
*/
export const getLowestPrice = (
itemId: string,
options?: SecondParameter<typeof customFetch>,
signal?: AbortSignal,
) => {
return customFetch<ResLowestPriceResult>(
{ url: `/v1/item/${itemId}/lowest-price`, method: "GET", signal },
options,
);
};
export const getGetLowestPriceQueryKey = (itemId?: string) => {
return [`/v1/item/${itemId}/lowest-price`] as const;
};
export const getGetLowestPriceQueryOptions = <
TData = Awaited<ReturnType<typeof getLowestPrice>>,
TError = void | HTTPValidationError,
>(
itemId: string,
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof getLowestPrice>>, TError, TData>
>;
request?: SecondParameter<typeof customFetch>;
},
) => {
const { query: queryOptions, request: requestOptions } = options ?? {};
const queryKey = queryOptions?.queryKey ?? getGetLowestPriceQueryKey(itemId);
const queryFn: QueryFunction<Awaited<ReturnType<typeof getLowestPrice>>> = ({
signal,
}) => getLowestPrice(itemId, requestOptions, signal);
return {
queryKey,
queryFn,
enabled: !!itemId,
...queryOptions,
} as UseQueryOptions<
Awaited<ReturnType<typeof getLowestPrice>>,
TError,
TData
> & { queryKey: DataTag<QueryKey, TData, TError> };
};
export type GetLowestPriceQueryResult = NonNullable<
Awaited<ReturnType<typeof getLowestPrice>>
>;
export type GetLowestPriceQueryError = void | HTTPValidationError;
export function useGetLowestPrice<
TData = Awaited<ReturnType<typeof getLowestPrice>>,
TError = void | HTTPValidationError,
>(
itemId: string,
options: {
query: Partial<
UseQueryOptions<Awaited<ReturnType<typeof getLowestPrice>>, TError, TData>
> &
Pick<
DefinedInitialDataOptions<
Awaited<ReturnType<typeof getLowestPrice>>,
TError,
Awaited<ReturnType<typeof getLowestPrice>>
>,
"initialData"
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): DefinedUseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
export function useGetLowestPrice<
TData = Awaited<ReturnType<typeof getLowestPrice>>,
TError = void | HTTPValidationError,
>(
itemId: string,
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof getLowestPrice>>, TError, TData>
> &
Pick<
UndefinedInitialDataOptions<
Awaited<ReturnType<typeof getLowestPrice>>,
TError,
Awaited<ReturnType<typeof getLowestPrice>>
>,
"initialData"
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
export function useGetLowestPrice<
TData = Awaited<ReturnType<typeof getLowestPrice>>,
TError = void | HTTPValidationError,
>(
itemId: string,
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof getLowestPrice>>, TError, TData>
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
};
/**
* @summary 최저가 수집 결과(스텁)
*/
export function useGetLowestPrice<
TData = Awaited<ReturnType<typeof getLowestPrice>>,
TError = void | HTTPValidationError,
>(
itemId: string,
options?: {
query?: Partial<
UseQueryOptions<Awaited<ReturnType<typeof getLowestPrice>>, TError, TData>
>;
request?: SecondParameter<typeof customFetch>;
},
queryClient?: QueryClient,
): UseQueryResult<TData, TError> & {
queryKey: DataTag<QueryKey, TData, TError>;
} {
const queryOptions = getGetLowestPriceQueryOptions(itemId, options);
const query = useQuery(queryOptions, queryClient) as UseQueryResult<
TData,
TError
> & { queryKey: DataTag<QueryKey, TData, TError> };
query.queryKey = queryOptions.queryKey;
return query;
}
@@ -0,0 +1,11 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export interface AsyncJob {
status?: string;
message?: string;
}
@@ -0,0 +1,10 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export interface BodyUploadItemsExcelV1ItemUploadExcelPost {
file: string;
}
@@ -0,0 +1,10 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export interface BodyUploadSuppliersExcelV1SupplierUploadExcelPost {
file: string;
}
@@ -0,0 +1,22 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* 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";
export interface ChatMessageData {
chat_id: string;
session_id: string;
card_id?: ChatMessageDataCardId;
index: number;
sender: number;
target_price: number;
card_used_yn?: ChatMessageDataCardUsedYn;
indicator_value?: ChatMessageDataIndicatorValue;
card_type?: ChatMessageDataCardType;
}
@@ -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 ChatMessageDataCardId = 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 ChatMessageDataCardType = number | 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 ChatMessageDataCardUsedYn = boolean | 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 ChatMessageDataIndicatorValue = number | null;
@@ -0,0 +1,11 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export interface CompanyBrief {
company_id?: string;
name?: string;
}
@@ -0,0 +1,18 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
import type { ErrorInfoSuccess } from "./errorInfoSuccess";
import type { ErrorInfoCode } from "./errorInfoCode";
import type { ErrorInfoDesc } from "./errorInfoDesc";
/**
* 모든 응답에 공통으로 실리는 결과 정보. result.success / code / desc 로 내려간다.
*/
export interface ErrorInfo {
success?: ErrorInfoSuccess;
code?: ErrorInfoCode;
desc?: ErrorInfoDesc;
}
@@ -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 ErrorInfoCode = number | 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 ErrorInfoDesc = 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 ErrorInfoSuccess = boolean | null;
@@ -0,0 +1,11 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
import type { ValidationError } from "./validationError";
export interface HTTPValidationError {
detail?: ValidationError[];
}
@@ -0,0 +1,209 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export * from "./asyncJob";
export * from "./bodyUploadItemsExcelV1ItemUploadExcelPost";
export * from "./bodyUploadSuppliersExcelV1SupplierUploadExcelPost";
export * from "./chatMessageData";
export * from "./chatMessageDataCardId";
export * from "./chatMessageDataCardType";
export * from "./chatMessageDataCardUsedYn";
export * from "./chatMessageDataIndicatorValue";
export * from "./companyBrief";
export * from "./errorInfo";
export * from "./errorInfoCode";
export * from "./errorInfoDesc";
export * from "./errorInfoSuccess";
export * from "./hTTPValidationError";
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 "./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 "./reqCreateAccount";
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 "./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 "./resCreateAccount";
export * from "./resCreateAccountMsg";
export * from "./resCreateQuotation";
export * from "./resCreateQuotationAsyncJob";
export * from "./resCreateQuotationMsg";
export * from "./resCreateQuotationQuotation";
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 "./resExcelUpload";
export * from "./resExcelUploadMsg";
export * from "./resExcelUploadReceivedFilename";
export * from "./resItem";
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";
@@ -0,0 +1,47 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* 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";
export interface ItemData {
item_id: string;
company_id: string;
user_id: string;
name: string;
code?: ItemDataCode;
category?: ItemDataCategory;
category_type?: number;
image_url?: ItemDataImageUrl;
model_name?: ItemDataModelName;
spec?: ItemDataSpec;
manufacturer?: ItemDataManufacturer;
made_in?: ItemDataMadeIn;
price?: ItemDataPrice;
internet_lowest_price_yn?: boolean;
moq?: ItemDataMoq;
lead_time?: ItemDataLeadTime;
quantity_unit?: ItemDataQuantityUnit;
delivery_type?: ItemDataDeliveryType;
vat_yn?: ItemDataVatYn;
delivery_fee_yn?: ItemDataDeliveryFeeYn;
created_at?: ItemDataCreatedAt;
updated_at?: ItemDataUpdatedAt;
}
@@ -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 ItemDataCategory = 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 ItemDataCode = 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 ItemDataCreatedAt = 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 ItemDataDeliveryFeeYn = boolean | 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 ItemDataDeliveryType = 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 ItemDataImageUrl = 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 ItemDataLeadTime = number | 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 ItemDataMadeIn = 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 ItemDataManufacturer = 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 ItemDataModelName = 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 ItemDataMoq = 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 ItemDataPrice = number | 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 ItemDataQuantityUnit = number | 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 ItemDataSpec = 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 ItemDataUpdatedAt = 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 ItemDataVatYn = boolean | null;
@@ -0,0 +1,26 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export type ListItemsParams = {
/**
* 상품명/상품코드 검색
*/
search?: string | null;
/**
* 카테고리 필터
*/
category?: string | null;
/**
* @minimum 1
*/
page?: number;
/**
* @minimum 1
* @maximum 100
*/
size?: number;
};
@@ -0,0 +1,34 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
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;
};
@@ -0,0 +1,22 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export type ListSuppliersParams = {
/**
* 협력사명/코드/담당자명 검색
*/
search?: string | null;
/**
* @minimum 1
*/
page?: number;
/**
* @minimum 1
* @maximum 100
*/
size?: number;
};
@@ -0,0 +1,22 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* 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";
export interface QuotationCardData {
session_card_id: string;
qt_id?: QuotationCardDataQtId;
nego_card_id?: QuotationCardDataNegoCardId;
wild_card_id?: QuotationCardDataWildCardId;
type?: QuotationCardDataType;
name?: QuotationCardDataName;
script?: QuotationCardDataScript;
}
@@ -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 QuotationCardDataName = 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 QuotationCardDataNegoCardId = 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 QuotationCardDataQtId = 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 QuotationCardDataScript = 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 QuotationCardDataType = number | 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 QuotationCardDataWildCardId = string | null;
@@ -0,0 +1,43 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* 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";
export interface QuotationData {
qt_id: string;
user_id: string;
qt_setting_id: string;
version_id: string;
name: string;
number: string;
type: number;
round?: number;
status: number;
start_time: string;
end_time: string;
manager_name?: QuotationDataManagerName;
manager_email?: QuotationDataManagerEmail;
manager_contact_number?: QuotationDataManagerContactNumber;
memo?: QuotationDataMemo;
iteration?: number;
preferred_sp_yn?: QuotationDataPreferredSpYn;
preferred_sp_id?: QuotationDataPreferredSpId;
preferred_sp_name?: QuotationDataPreferredSpName;
equal_bid_yn?: QuotationDataEqualBidYn;
equal_bid_data?: QuotationDataEqualBidData;
created_at?: QuotationDataCreatedAt;
updated_at?: QuotationDataUpdatedAt;
}
@@ -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 QuotationDataCreatedAt = 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 QuotationDataEqualBidData = 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 QuotationDataEqualBidYn = boolean | 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 QuotationDataManagerContactNumber = 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 QuotationDataManagerEmail = 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 QuotationDataManagerName = 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 QuotationDataMemo = 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 QuotationDataPreferredSpId = 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 QuotationDataPreferredSpName = 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 QuotationDataPreferredSpYn = boolean | 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 QuotationDataUpdatedAt = string | null;
@@ -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 { QuotationSettingDataUserId } from "./quotationSettingDataUserId";
import type { QuotationSettingDataCreatedAt } from "./quotationSettingDataCreatedAt";
import type { QuotationSettingDataUpdatedAt } from "./quotationSettingDataUpdatedAt";
export interface QuotationSettingData {
qt_setting_id: string;
user_id?: QuotationSettingDataUserId;
target_margin_rate: number;
anchoring_value: number;
card_count: number;
created_at?: QuotationSettingDataCreatedAt;
updated_at?: QuotationSettingDataUpdatedAt;
}
@@ -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 QuotationSettingDataCreatedAt = 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 QuotationSettingDataUpdatedAt = 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 QuotationSettingDataUserId = string | null;
@@ -0,0 +1,16 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export interface ReqCreateAccount {
id?: string;
password?: string;
company_id?: string;
name?: string;
email?: string;
contact_number?: string;
role?: number;
}
@@ -0,0 +1,40 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* 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";
export interface ReqCreateItem {
name?: string;
code?: ReqCreateItemCode;
category?: ReqCreateItemCategory;
category_type?: number;
image_url?: ReqCreateItemImageUrl;
model_name?: ReqCreateItemModelName;
spec?: ReqCreateItemSpec;
manufacturer?: ReqCreateItemManufacturer;
made_in?: ReqCreateItemMadeIn;
price?: ReqCreateItemPrice;
internet_lowest_price_yn?: boolean;
moq?: ReqCreateItemMoq;
lead_time?: ReqCreateItemLeadTime;
quantity_unit?: ReqCreateItemQuantityUnit;
delivery_type?: ReqCreateItemDeliveryType;
vat_yn?: ReqCreateItemVatYn;
delivery_fee_yn?: ReqCreateItemDeliveryFeeYn;
}
@@ -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 ReqCreateItemCategory = 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 ReqCreateItemCode = 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 ReqCreateItemDeliveryFeeYn = boolean | 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 ReqCreateItemDeliveryType = 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 ReqCreateItemImageUrl = 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 ReqCreateItemLeadTime = number | 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 ReqCreateItemMadeIn = 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 ReqCreateItemManufacturer = 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 ReqCreateItemModelName = 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 ReqCreateItemMoq = 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 ReqCreateItemPrice = number | 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 ReqCreateItemQuantityUnit = number | 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 ReqCreateItemSpec = 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 ReqCreateItemVatYn = boolean | null;
@@ -0,0 +1,26 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* 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";
export interface ReqCreateQuotation {
qt_setting_id: string;
version_id: string;
name?: string;
number?: string;
type?: number;
status?: number;
start_time: string;
end_time: string;
round?: number;
manager_name?: ReqCreateQuotationManagerName;
manager_email?: ReqCreateQuotationManagerEmail;
manager_contact_number?: ReqCreateQuotationManagerContactNumber;
memo?: ReqCreateQuotationMemo;
}
@@ -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 ReqCreateQuotationManagerContactNumber = 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 ReqCreateQuotationManagerEmail = 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 ReqCreateQuotationManagerName = 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 ReqCreateQuotationMemo = string | null;
@@ -0,0 +1,12 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export interface ReqCreateQuotationSetting {
target_margin_rate: number;
anchoring_value?: number;
card_count?: number;
}
@@ -0,0 +1,20 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* 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";
export interface ReqCreateSupplier {
name?: string;
code?: ReqCreateSupplierCode;
manager_name?: ReqCreateSupplierManagerName;
manager_email?: ReqCreateSupplierManagerEmail;
manager_contact_number?: ReqCreateSupplierManagerContactNumber;
priority?: ReqCreateSupplierPriority;
}
@@ -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 ReqCreateSupplierCode = 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 ReqCreateSupplierManagerContactNumber = 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 ReqCreateSupplierManagerEmail = 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 ReqCreateSupplierManagerName = 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 ReqCreateSupplierPriority = string | null;
@@ -0,0 +1,11 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export interface ReqLogin {
id?: string;
password?: string;
}
@@ -0,0 +1,43 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* 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";
export interface ReqUpdateItem {
name?: ReqUpdateItemName;
code?: ReqUpdateItemCode;
category?: ReqUpdateItemCategory;
category_type?: ReqUpdateItemCategoryType;
image_url?: ReqUpdateItemImageUrl;
model_name?: ReqUpdateItemModelName;
spec?: ReqUpdateItemSpec;
manufacturer?: ReqUpdateItemManufacturer;
made_in?: ReqUpdateItemMadeIn;
price?: ReqUpdateItemPrice;
internet_lowest_price_yn?: ReqUpdateItemInternetLowestPriceYn;
moq?: ReqUpdateItemMoq;
lead_time?: ReqUpdateItemLeadTime;
quantity_unit?: ReqUpdateItemQuantityUnit;
delivery_type?: ReqUpdateItemDeliveryType;
vat_yn?: ReqUpdateItemVatYn;
delivery_fee_yn?: ReqUpdateItemDeliveryFeeYn;
}
@@ -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 ReqUpdateItemCategory = 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 ReqUpdateItemCategoryType = number | 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 ReqUpdateItemCode = 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 ReqUpdateItemDeliveryFeeYn = boolean | 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 ReqUpdateItemDeliveryType = 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 ReqUpdateItemImageUrl = 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 ReqUpdateItemInternetLowestPriceYn = boolean | 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 ReqUpdateItemLeadTime = number | 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 ReqUpdateItemMadeIn = string | null;
Loaded 100 of 288 files, more files were not shown because too many files have changed in this diff. Show more