260716_02_ENH: 프로젝트에 발신 번호추가 및 리다이렉트 url, api 수정

This commit is contained in:
2026-07-16 14:10:42 +09:00
parent 36c7b41191
commit 7275c77db0
13 changed files with 153 additions and 41 deletions

View File

@@ -4,7 +4,7 @@ import {keepPreviousData, useQuery} from "@tanstack/react-query";
import {qk} from "@/query/key/keys";
import {nextApi} from "@/lib/http-client";
import {ItrntUserInfo} from "@/types/user";
import {IntranetProjectSearchResponse, KonKiwiProjectInfo} from "@/types/project";
import {CallerTelNumInfo, IntranetProjectSearchResponse, KonKiwiProjectInfo} from "@/types/project";
export function useIntranetProjectListQuery(keyword: string, enabled: boolean) {
const kw = keyword.trim();
@@ -34,4 +34,13 @@ export function useIntranetUsersQuery(opts?: {
staleTime: 10 * 60_000,
initialData: opts?.initialData,
});
}
export function useCallerTelNumListQuery(enabled: boolean) {
return useQuery({
queryKey: qk.callerTelNumList(),
queryFn: () => nextApi.get<CallerTelNumInfo[]>("/intranet/caller-tel-num"),
enabled,
staleTime: 60_000,
});
}