[feat] negodata: 재협상 소유권 게이팅·처리담당자·상세 링크·재생성 타이틀·알림 토스트(읽음API)·재협상요청 표기·커스텀필드 select
This commit is contained in:
1 parent
d7c4e86f30
commit
51d07bb779
54 files changed
+2002
-58
No files matched your search
@@ -80,6 +80,7 @@ export * from './listCardsParams';
|
||||
export * from './listItemsParams';
|
||||
export * from './listNotificationsParams';
|
||||
export * from './listQuotationsParams';
|
||||
export * from './listRequestsParams';
|
||||
export * from './listSuppliersParams';
|
||||
export * from './listUsersParams';
|
||||
export * from './lowestPriceEntry';
|
||||
@@ -129,6 +130,16 @@ export * from './quotationSettingDataUpdatedAt';
|
||||
export * from './quotationSettingDataUserId';
|
||||
export * from './quotationStatus';
|
||||
export * from './quotationType';
|
||||
export * from './renegotiationData';
|
||||
export * from './renegotiationDataBidPrice';
|
||||
export * from './renegotiationDataCloseReason';
|
||||
export * from './renegotiationDataDecidedAt';
|
||||
export * from './renegotiationDataDecidedByName';
|
||||
export * from './renegotiationDataDesiredPrice';
|
||||
export * from './renegotiationDataMemo';
|
||||
export * from './renegotiationDataNextQuotationId';
|
||||
export * from './renegotiationDataTargetPrice';
|
||||
export * from './reqApproveRenegotiation';
|
||||
export * from './reqAwardQuotation';
|
||||
export * from './reqBulkMapByNames';
|
||||
export * from './reqCheckCodes';
|
||||
@@ -183,6 +194,7 @@ export * from './reqCreateSupplierManagerName';
|
||||
export * from './reqCreateSupplierTotalRevenue';
|
||||
export * from './reqLogin';
|
||||
export * from './reqRegenerateQuotation';
|
||||
export * from './reqRejectRenegotiation';
|
||||
export * from './reqResetSupplierAccountPassword';
|
||||
export * from './reqResetSupplierAccountPasswordPassword';
|
||||
export * from './reqUpdateCard';
|
||||
@@ -344,6 +356,11 @@ export * from './resQuotationStatusMsg';
|
||||
export * from './resQuotationStatusQtId';
|
||||
export * from './resRefreshToken';
|
||||
export * from './resRefreshTokenMsg';
|
||||
export * from './resRenegotiationDecision';
|
||||
export * from './resRenegotiationDecisionMsg';
|
||||
export * from './resRenegotiationDecisionNextQuotationId';
|
||||
export * from './resRenegotiationList';
|
||||
export * from './resRenegotiationListMsg';
|
||||
export * from './resResetSupplierAccountPassword';
|
||||
export * from './resResetSupplierAccountPasswordMsg';
|
||||
export * from './resResetSupplierAccountPasswordNewPassword';
|
||||
|
||||
@@ -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 ListRequestsParams = {
|
||||
/**
|
||||
* 요청 상태(1=심사중 2=승인 3=반려 4=철회). 미지정 시 전체
|
||||
*/
|
||||
status?: number | null;
|
||||
/**
|
||||
* @minimum 1
|
||||
*/
|
||||
page?: number;
|
||||
/**
|
||||
* @minimum 1
|
||||
* @maximum 100
|
||||
*/
|
||||
size?: number;
|
||||
};
|
||||
@@ -17,4 +17,5 @@ export const NotificationType = {
|
||||
REGENERATED: 2,
|
||||
FAILURE: 3,
|
||||
CREATED: 4,
|
||||
RENEGO_REQUESTED: 5,
|
||||
} as const;
|
||||
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
import type { RenegotiationDataDesiredPrice } from './renegotiationDataDesiredPrice';
|
||||
import type { RenegotiationDataDecidedAt } from './renegotiationDataDecidedAt';
|
||||
import type { RenegotiationDataDecidedByName } from './renegotiationDataDecidedByName';
|
||||
import type { RenegotiationDataMemo } from './renegotiationDataMemo';
|
||||
import type { RenegotiationDataNextQuotationId } from './renegotiationDataNextQuotationId';
|
||||
import type { RenegotiationDataCloseReason } from './renegotiationDataCloseReason';
|
||||
import type { RenegotiationDataTargetPrice } from './renegotiationDataTargetPrice';
|
||||
import type { RenegotiationDataBidPrice } from './renegotiationDataBidPrice';
|
||||
|
||||
export interface RenegotiationData {
|
||||
session_id?: string;
|
||||
quotation_id?: string;
|
||||
qt_number?: string;
|
||||
qt_round?: number;
|
||||
qt_name?: string;
|
||||
item_id?: string;
|
||||
item_name?: string;
|
||||
supplier_id?: string;
|
||||
supplier_name?: string;
|
||||
owner_name?: string;
|
||||
status?: number;
|
||||
reason?: string;
|
||||
desired_price?: RenegotiationDataDesiredPrice;
|
||||
requested_at?: string;
|
||||
decided_at?: RenegotiationDataDecidedAt;
|
||||
decided_by_name?: RenegotiationDataDecidedByName;
|
||||
memo?: RenegotiationDataMemo;
|
||||
next_quotation_id?: RenegotiationDataNextQuotationId;
|
||||
close_reason?: RenegotiationDataCloseReason;
|
||||
target_price?: RenegotiationDataTargetPrice;
|
||||
bid_price?: RenegotiationDataBidPrice;
|
||||
can_act?: boolean;
|
||||
}
|
||||
@@ -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 RenegotiationDataBidPrice = 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 RenegotiationDataCloseReason = 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 RenegotiationDataDecidedAt = 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 RenegotiationDataDecidedByName = 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 RenegotiationDataDesiredPrice = 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 RenegotiationDataMemo = 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 RenegotiationDataNextQuotationId = 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 RenegotiationDataTargetPrice = number | 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 ReqApproveRenegotiation {
|
||||
/** 다음 라운드에 함께 넣을 공급사. 비우면 요청자만 */
|
||||
supplier_ids?: string[];
|
||||
/**
|
||||
* 승인 메모
|
||||
* @maxLength 255
|
||||
*/
|
||||
memo?: string;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* Generated by orval v7.21.0 🍺
|
||||
* Do not edit manually.
|
||||
* Negodata Api Server
|
||||
* OpenAPI spec version: 0.1.0
|
||||
*/
|
||||
|
||||
export interface ReqRejectRenegotiation {
|
||||
/**
|
||||
* 반려 사유 — 공급사에게 그대로 노출된다
|
||||
* @maxLength 255
|
||||
*/
|
||||
memo?: string;
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* 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 { ResRenegotiationDecisionMsg } from './resRenegotiationDecisionMsg';
|
||||
import type { ResRenegotiationDecisionNextQuotationId } from './resRenegotiationDecisionNextQuotationId';
|
||||
|
||||
export interface ResRenegotiationDecision {
|
||||
result?: ErrorInfo;
|
||||
msg?: ResRenegotiationDecisionMsg;
|
||||
session_id?: string;
|
||||
status?: number;
|
||||
next_quotation_id?: ResRenegotiationDecisionNextQuotationId;
|
||||
}
|
||||
@@ -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 ResRenegotiationDecisionMsg = 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 ResRenegotiationDecisionNextQuotationId = string | null;
|
||||
@@ -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 { ErrorInfo } from './errorInfo';
|
||||
import type { ResRenegotiationListMsg } from './resRenegotiationListMsg';
|
||||
import type { RenegotiationData } from './renegotiationData';
|
||||
|
||||
export interface ResRenegotiationList {
|
||||
result?: ErrorInfo;
|
||||
msg?: ResRenegotiationListMsg;
|
||||
requests?: RenegotiationData[];
|
||||
total?: number;
|
||||
page?: number;
|
||||
size?: number;
|
||||
}
|
||||
@@ -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 ResRenegotiationListMsg = string | null;
|
||||
@@ -0,0 +1,265 @@
|
||||
/**
|
||||
* 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,
|
||||
ListRequestsParams,
|
||||
ReqApproveRenegotiation,
|
||||
ReqRejectRenegotiation,
|
||||
ResRenegotiationDecision,
|
||||
ResRenegotiationList
|
||||
} from '.././model';
|
||||
|
||||
import { customFetch } from '../../mutator/custom-fetch';
|
||||
|
||||
|
||||
type SecondParameter<T extends (...args: never) => unknown> = Parameters<T>[1];
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @summary 재협상 요청 현황
|
||||
*/
|
||||
export const listRequests = (
|
||||
params?: ListRequestsParams,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResRenegotiationList>(
|
||||
{url: `/v1/renegotiation/list`, method: 'GET',
|
||||
params, signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export const getListRequestsQueryKey = (params?: ListRequestsParams,) => {
|
||||
return [
|
||||
`/v1/renegotiation/list`, ...(params ? [params]: [])
|
||||
] as const;
|
||||
}
|
||||
|
||||
|
||||
export const getListRequestsQueryOptions = <TData = Awaited<ReturnType<typeof listRequests>>, TError = void | HTTPValidationError>(params?: ListRequestsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listRequests>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
) => {
|
||||
|
||||
const {query: queryOptions, request: requestOptions} = options ?? {};
|
||||
|
||||
const queryKey = queryOptions?.queryKey ?? getListRequestsQueryKey(params);
|
||||
|
||||
|
||||
|
||||
const queryFn: QueryFunction<Awaited<ReturnType<typeof listRequests>>> = ({ signal }) => listRequests(params, requestOptions, signal);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
return { queryKey, queryFn, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof listRequests>>, TError, TData> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
}
|
||||
|
||||
export type ListRequestsQueryResult = NonNullable<Awaited<ReturnType<typeof listRequests>>>
|
||||
export type ListRequestsQueryError = void | HTTPValidationError
|
||||
|
||||
|
||||
export function useListRequests<TData = Awaited<ReturnType<typeof listRequests>>, TError = void | HTTPValidationError>(
|
||||
params: undefined | ListRequestsParams, options: { query:Partial<UseQueryOptions<Awaited<ReturnType<typeof listRequests>>, TError, TData>> & Pick<
|
||||
DefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof listRequests>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof listRequests>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): DefinedUseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useListRequests<TData = Awaited<ReturnType<typeof listRequests>>, TError = void | HTTPValidationError>(
|
||||
params?: ListRequestsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listRequests>>, TError, TData>> & Pick<
|
||||
UndefinedInitialDataOptions<
|
||||
Awaited<ReturnType<typeof listRequests>>,
|
||||
TError,
|
||||
Awaited<ReturnType<typeof listRequests>>
|
||||
> , 'initialData'
|
||||
>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
export function useListRequests<TData = Awaited<ReturnType<typeof listRequests>>, TError = void | HTTPValidationError>(
|
||||
params?: ListRequestsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listRequests>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> }
|
||||
/**
|
||||
* @summary 재협상 요청 현황
|
||||
*/
|
||||
|
||||
export function useListRequests<TData = Awaited<ReturnType<typeof listRequests>>, TError = void | HTTPValidationError>(
|
||||
params?: ListRequestsParams, options?: { query?:Partial<UseQueryOptions<Awaited<ReturnType<typeof listRequests>>, TError, TData>>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient
|
||||
): UseQueryResult<TData, TError> & { queryKey: DataTag<QueryKey, TData, TError> } {
|
||||
|
||||
const queryOptions = getListRequestsQueryOptions(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 approve = (
|
||||
sessionId: string,
|
||||
reqApproveRenegotiation: ReqApproveRenegotiation,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResRenegotiationDecision>(
|
||||
{url: `/v1/renegotiation/${sessionId}/approve`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqApproveRenegotiation, signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
export const getApproveMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof approve>>, TError,{sessionId: string;data: ReqApproveRenegotiation}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof approve>>, TError,{sessionId: string;data: ReqApproveRenegotiation}, TContext> => {
|
||||
|
||||
const mutationKey = ['approve'];
|
||||
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 approve>>, {sessionId: string;data: ReqApproveRenegotiation}> = (props) => {
|
||||
const {sessionId,data} = props ?? {};
|
||||
|
||||
return approve(sessionId,data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type ApproveMutationResult = NonNullable<Awaited<ReturnType<typeof approve>>>
|
||||
export type ApproveMutationBody = ReqApproveRenegotiation
|
||||
export type ApproveMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
* @summary 재협상 승인
|
||||
*/
|
||||
export const useApprove = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof approve>>, TError,{sessionId: string;data: ReqApproveRenegotiation}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof approve>>,
|
||||
TError,
|
||||
{sessionId: string;data: ReqApproveRenegotiation},
|
||||
TContext
|
||||
> => {
|
||||
|
||||
const mutationOptions = getApproveMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
/**
|
||||
* @summary 재협상 반려
|
||||
*/
|
||||
export const reject = (
|
||||
sessionId: string,
|
||||
reqRejectRenegotiation: ReqRejectRenegotiation,
|
||||
options?: SecondParameter<typeof customFetch>,signal?: AbortSignal
|
||||
) => {
|
||||
|
||||
|
||||
return customFetch<ResRenegotiationDecision>(
|
||||
{url: `/v1/renegotiation/${sessionId}/reject`, method: 'POST',
|
||||
headers: {'Content-Type': 'application/json', },
|
||||
data: reqRejectRenegotiation, signal
|
||||
},
|
||||
options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
export const getRejectMutationOptions = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof reject>>, TError,{sessionId: string;data: ReqRejectRenegotiation}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
): UseMutationOptions<Awaited<ReturnType<typeof reject>>, TError,{sessionId: string;data: ReqRejectRenegotiation}, TContext> => {
|
||||
|
||||
const mutationKey = ['reject'];
|
||||
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 reject>>, {sessionId: string;data: ReqRejectRenegotiation}> = (props) => {
|
||||
const {sessionId,data} = props ?? {};
|
||||
|
||||
return reject(sessionId,data,requestOptions)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
return { mutationFn, ...mutationOptions }}
|
||||
|
||||
export type RejectMutationResult = NonNullable<Awaited<ReturnType<typeof reject>>>
|
||||
export type RejectMutationBody = ReqRejectRenegotiation
|
||||
export type RejectMutationError = void | HTTPValidationError
|
||||
|
||||
/**
|
||||
* @summary 재협상 반려
|
||||
*/
|
||||
export const useReject = <TError = void | HTTPValidationError,
|
||||
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof reject>>, TError,{sessionId: string;data: ReqRejectRenegotiation}, TContext>, request?: SecondParameter<typeof customFetch>}
|
||||
, queryClient?: QueryClient): UseMutationResult<
|
||||
Awaited<ReturnType<typeof reject>>,
|
||||
TError,
|
||||
{sessionId: string;data: ReqRejectRenegotiation},
|
||||
TContext
|
||||
> => {
|
||||
|
||||
const mutationOptions = getRejectMutationOptions(options);
|
||||
|
||||
return useMutation(mutationOptions, queryClient);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user