sales-frontend-api 0.0.159 → 0.0.161

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/method.cjs CHANGED
@@ -495,6 +495,12 @@ var getDspCustomerListMethod = async (params, config) => {
495
495
  const res = await httpClient.api.post(apiUrl, params);
496
496
  return res.data;
497
497
  };
498
+ var getDspCustomerGroupListMethod = async (params, config) => {
499
+ const apiUrl = `${salesFrontendUtils.getDspApiBasePathFromEnvironment("dea")}/v1/get/participant/profile/customer/group`;
500
+ const httpClient = new HttpClientAxios(config);
501
+ const res = await httpClient.api.post(apiUrl, params);
502
+ return res.data;
503
+ };
498
504
  var useSearchDspCustomerListQuery = (params, options, config) => {
499
505
  return reactQuery.useQuery({
500
506
  enabled: !!params.customerName,
@@ -506,6 +512,25 @@ var useSearchDspCustomerListQuery = (params, options, config) => {
506
512
  ...options
507
513
  });
508
514
  };
515
+ var useSearchDspCustomerGroupListQuery = (params, options, config) => {
516
+ return reactQuery.useQuery({
517
+ enabled: !!params.customerName,
518
+ retry: false,
519
+ queryKey: ["searchDspCustomerGroupList", JSON.stringify(params)],
520
+ queryFn: () => {
521
+ return getDspCustomerGroupListMethod(params, config);
522
+ },
523
+ ...options
524
+ });
525
+ };
526
+ var useSearchDspCustomerGroupListMutation = (options, config) => {
527
+ return reactQuery.useMutation({
528
+ mutationFn: (params) => {
529
+ return getDspCustomerGroupListMethod(params, config);
530
+ },
531
+ ...options
532
+ });
533
+ };
509
534
  var getVisaListMethod = async (config) => {
510
535
  const apiUrl = `${salesFrontendUtils.getDspApiBasePathFromEnvironment("dis")}/v1/get/codes/visa-status-list`;
511
536
  const httpClient = new HttpClientAxios(config);
@@ -695,6 +720,7 @@ exports.getAddressPostalCodeMethod = getAddressPostalCodeMethod;
695
720
  exports.getAddressStandardizationListMethod = getAddressStandardizationListMethod;
696
721
  exports.getCommonCodeListMethod = getCommonCodeListMethod;
697
722
  exports.getCustomerListMethod = getCustomerListMethod;
723
+ exports.getDspCustomerGroupListMethod = getDspCustomerGroupListMethod;
698
724
  exports.getDspCustomerListMethod = getDspCustomerListMethod;
699
725
  exports.getEmployeeProfileListMethod = getEmployeeProfileListMethod;
700
726
  exports.getImageViewerToken = getImageViewerToken;
@@ -720,6 +746,8 @@ exports.useSearchAddressQuery = useSearchAddressQuery;
720
746
  exports.useSearchAddressStandardizationQuery = useSearchAddressStandardizationQuery;
721
747
  exports.useSearchCommonCodeQuery = useSearchCommonCodeQuery;
722
748
  exports.useSearchCustomerListQuery = useSearchCustomerListQuery;
749
+ exports.useSearchDspCustomerGroupListMutation = useSearchDspCustomerGroupListMutation;
750
+ exports.useSearchDspCustomerGroupListQuery = useSearchDspCustomerGroupListQuery;
723
751
  exports.useSearchDspCustomerListQuery = useSearchDspCustomerListQuery;
724
752
  exports.useSearchEmployeeProfileQuery = useSearchEmployeeProfileQuery;
725
753
  exports.useSearchNationalityQuery = useSearchNationalityQuery;
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/http-client/header/header.types.ts","../src/http-client/header/header-manager.ts","../src/http-client/axios/http-client-axios.ts","../src/http-client/auth/auth-client.ts","../src/http-methods/sample/sample.service.ts","../src/http-methods/search-modal/address/address-search.service.ts","../src/http-methods/search-modal/address/use-search-address-query.ts","../src/http-methods/search-modal/address/postal-code.service.ts","../src/http-methods/search-modal/address/use-search-postal-code-query.ts","../src/http-methods/search-modal/address/address-standardization.service.ts","../src/http-methods/search-modal/address/use-search-address-standardization-query.ts","../src/http-methods/search-modal/occupation/occupation-search.service.ts","../src/http-methods/search-modal/occupation/use-search-occupation-query.ts","../src/http-methods/search-modal/vehicle/vehicle-search.service.ts","../src/http-methods/search-modal/vehicle/use-search-vehicle-query.ts","../src/http-methods/search-modal/employee/employee-search.service.ts","../src/http-methods/search-modal/employee/use-search-employee-profile-query.ts","../src/http-methods/search-modal/organization/organization-search.service.ts","../src/http-methods/search-modal/organization/use-search-organization-query.ts","../src/http-methods/search-modal/nationality/nationality-search.service.ts","../src/http-methods/search-modal/nationality/use-search-nationality-query.ts","../src/http-methods/search-modal/customer-list/customer-list-search.service.ts","../src/http-methods/search-modal/customer-list/use-search-customer-list-query.ts","../src/http-methods/search-modal/risk-grade/risk-grade-search.service.ts","../src/http-methods/search-modal/risk-grade/use-search-risk-grade-query.ts","../src/http-methods/search-modal/dea-customer-list/dea-customer-list-search.service.ts","../src/http-methods/search-modal/dea-customer-list/use-search-dea-customer-list-query.ts","../src/http-methods/search-modal/visa/visa-search.service.ts","../src/http-methods/search-modal/visa/use-search-visa-query.ts","../src/http-methods/fp-login/login-dsp.service.ts","../src/http-methods/remote-identity-verification/remote-identity-verification.service.ts","../src/http-methods/remote-identity-verification/use-remote-identity-verification-query.tsx","../src/http-methods/common-code/common-code-search.service.ts","../src/http-methods/common-code/use-search-common-code-query.ts","../src/http-methods/app-config/app-config.service.ts","../src/http-methods/app-config/use-app-config-query.ts","../src/http-methods/dud-external-file/dud-external-file.service.ts","../src/http-methods/dud-external-file/use-dud-external-file-query.ts","../src/http-methods/fp-auth/fp-auth.service.ts"],"names":["getCookie","setCookie","axios","config","addRequestLog","useClientSessionStore","getDspExecutionEnvironment","Bridge","addErrorLog","addResponseLog","AxiosError","error","isDspApp","isDebugByFilterName","getServicePath","getDspApiBasePathFromEnvironment","useQuery","useMutation","getDudApiBasePathFromEnvironment","isClient","getExt"],"mappings":";;;;;;;;;;;;;;;;;;;AAGO,IAAM,iBAAoB,GAAA;AAAA,EAC/B,iBAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,cAAA;AAAA,EACA,iBAAA;AAAA,EACA,YAAA;AAAA,EACA,aAAA;AAAA,EACA,YAAA;AAAA,EACA;AACF,CAAA;AAEO,IAAM,EAAK,GAAA,IAAA;;;ACbX,IAAM,gBAAN,MAAoB;AAAA,EAIzB,WAAA,CAAY,QAAoB,MAAoB,EAAA;AAHpD,IAAQ,aAAA,CAAA,IAAA,EAAA,QAAA,CAAA;AACR,IAAQ,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\n 'LoginType',\n 'PlatformName',\n 'PlatformVersion',\n 'AppVersion',\n 'DeviceModel',\n 'FormFactor',\n 'LoginChannel'\n];\n\nexport const AT = 'AT';\nexport type GetterSync = (keyName: string) => string;\nexport type SetterSync = (keyName: string, value: string) => void;\n\nexport type GetterAsync = (keyName: string) => Promise<string> | string;\nexport type SetterAsync = (keyName: string, value: string) => Promise<void> | void;\n","import { AT, customHeaderNames, GetterSync, SetterSync } from './header.types';\n\nexport class HeaderManager {\n private getter: GetterSync;\n private setter: SetterSync;\n\n constructor(getter: GetterSync, setter: SetterSync) {\n this.getter = getter;\n this.setter = setter;\n }\n\n /**\n * 커스텀 헤더를 동기적으로 설정합니다.\n */\n setCustomHeaders(): void {\n customHeaderNames.forEach((headerName) => {\n const customHeaderKey = `X-Channel-${headerName}`;\n const headerValue = this.getter(customHeaderKey);\n if (headerValue) {\n this.setter(customHeaderKey, headerValue);\n }\n });\n }\n\n /**\n * 인증 토큰을 동기적으로 설정합니다.\n */\n setAuthToken(): void {\n const token = this.getter(AT);\n if (token) {\n this.setter('Authorization', `Bearer ${token}`);\n }\n }\n\n /**\n * 모든 헤더를 동기적으로 설정합니다.\n */\n setAllHeaders(): void {\n this.setCustomHeaders();\n this.setAuthToken();\n }\n}\n","import axios from 'axios';\nimport { AxiosError, AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';\nimport { Bridge } from 'sales-frontend-bridge';\nimport { addErrorLog, addRequestLog, addResponseLog } from 'sales-frontend-debug';\nimport { useClientSessionStore } from 'sales-frontend-stores';\nimport { getCookie, getDspExecutionEnvironment, isDspApp, setCookie } from 'sales-frontend-utils';\n\nimport { AuthClient } from '../auth/auth-client';\nimport { HeaderManager } from '../header/header-manager';\n\nimport type { AxiosQueueType } from './types';\n\nlet isRefreshed = true;\nconst axiosQueue: AxiosQueueType[] = [];\n\n/**\n * 쿠키에서 값을 가져오고, 없으면 기본값을 쿠키에 설정 후 반환하는 헬퍼 함수\n * @param key 쿠키 키\n * @param defaultValue 쿠키 값이 없을 때 사용할 기본값\n * @returns 쿠키 값 또는 기본값\n */\nconst getOrSetCookie = (key: string, defaultValue: string): string => {\n let value = getCookie(key);\n if (!value) {\n value = defaultValue;\n setCookie(key, value, { path: '/' });\n }\n\n return value;\n};\n\nconst authErrorHandler = () => {\n console.error('Authentication error occurred.');\n};\n\n/**\n * 전자청약\n * CSR용 http-client 입니다.\n * cookie , redirect , tokem 처리 방식은 CSR 환경에 맞게 구현됩니다.\n */\nexport class HttpClientAxios {\n config: AxiosRequestConfig;\n headerManager: HeaderManager;\n\n /**\n * axios의 request interceptor 동작시, 헤더에 주입될 헤더의 key,value\n */\n headers: Record<string, string> = {};\n\n /**\n * api연동을 수행할 실제 객체(axios, fetch 등의 다른 라이브러리로 교체가능한 영역)\n * 현재 버전에서는 axios를 사용하여 구현됨.\n */\n api: AxiosInstance;\n constructor(config: AxiosRequestConfig = {}) {\n this.config = config;\n\n /**\n * 헤더매니저 셋팅\n */\n const getter: HeaderManager['getter'] = (key) => {\n return getCookie(key);\n };\n const setter: HeaderManager['setter'] = (key, value) => {\n if (config?.headers) {\n config.headers[key] = value;\n }\n };\n this.headerManager = new HeaderManager(getter, setter);\n\n /**\n * api수행객체 최초 생성,\n * 공통으로 적용할 설정값이 있는경우 셋팅\n */\n this.api = axios.create({\n withCredentials: false,\n ...config\n });\n\n /**\n * 인터셉터 요청 처리\n */\n this.api.interceptors.request.use(\n async (config) => {\n console.log('config url', config.url);\n const debugMode = getCookie('dsp-debug-mode') === 'on';\n\n /** 디버깅용 로그 */\n await addRequestLog(config);\n\n const debugRefreshQueueOff = config.headers?.['Debug-Refresh-Queue-Off'] === 'true';\n if (debugRefreshQueueOff) {\n isRefreshed = true;\n }\n\n /**\n * AT토큰 주입\n */\n const authClient = new AuthClient();\n const authorization = await authClient.getAT();\n if (authorization) {\n config.headers['Authorization'] = authorization;\n }\n\n if (debugMode) {\n console.log('debugMode header setting!');\n /**\n * 주소가 debugMode 경우 테스트용 헤더 삽입\n */\n config.headers['x-channel-appversion'] = getOrSetCookie('x-channel-appversion', '3.1');\n config.headers['x-channel-deviceid'] = getOrSetCookie('x-channel-deviceid', 'deviceid');\n config.headers['x-channel-devicemodel'] = getOrSetCookie('x-channel-devicemodel', 'iPHONE13');\n config.headers['x-channel-formfactor'] = getOrSetCookie('x-channel-formfactor', 'Phone');\n config.headers['x-channel-loginchannel'] = getOrSetCookie('x-channel-loginchannel', 'DSP');\n config.headers['x-channel-logintype'] = getOrSetCookie('x-channel-logintype', 'ONPA_PIN');\n config.headers['x-channel-platformname'] = getOrSetCookie('x-channel-platformname', 'IOS');\n config.headers['x-channel-platformversion'] = getOrSetCookie('x-channel-platformversion', '15.4.1');\n config.headers['x-channel-screenid'] = getOrSetCookie('x-channel-screenid', location.pathname);\n config.headers['x-channel-business-work-division-code'] = getOrSetCookie(\n 'x-channel-business-work-division-code',\n 'DEA'\n );\n } else {\n const session = useClientSessionStore.getState().clientSession;\n\n config.headers['x-channel-appversion'] = session.appVersion;\n config.headers['x-channel-deviceid'] = session.deviceId;\n config.headers['x-channel-devicemodel'] = session.deviceModel;\n config.headers['x-channel-formfactor'] = session.formFactor;\n config.headers['x-channel-loginchannel'] = session.loginChannel;\n config.headers['x-channel-logintype'] = session.loginType;\n config.headers['x-channel-platformname'] = session.platformName;\n config.headers['x-channel-platformversion'] = session.platformVersion;\n config.headers['x-channel-screenid'] = location.pathname;\n config.headers['x-channel-business-work-division-code'] = session.businessWorkDivisionCode;\n }\n\n /**\n * 커스텀헤더 주입\n */\n // this.headerManager.setCustomHeaders();\n /**\n *\n * this.headers설정된 값을 config headers에 주입\n */\n const headerEntries = Object.entries(this.headers);\n headerEntries.forEach(([key, value]) => {\n if (config?.headers) {\n config.headers[key] = value;\n }\n });\n\n /**\n * isRefreshed가 false이면(= 에러발생하여 token재발행중을 의미)\n * 새로운 요청들을 처리하지 않고,큐에 저장\n * 401에러 Queue처리 Request interceptor 등록\n */\n if (!isRefreshed && !config.url?.includes('internal/api/auth/refresh')) {\n console.log('request 401 큐처리');\n\n return new Promise((resolve, reject) => {\n axiosQueue.push({ resolve, reject, config });\n }).then(() => config);\n }\n\n // 세션 연장(for 영업포털 세션)\n if (getDspExecutionEnvironment() === 'iframe') {\n Bridge.iframe.dspKeepCallerSession();\n }\n\n return config;\n },\n async (error) => {\n /** 디버깅용 로그 */\n await addErrorLog(error);\n console.log('request error');\n\n return Promise.reject(error);\n }\n );\n\n /**\n * 인터셉터 응답 처리\n */\n this.api.interceptors.response.use(\n async (response: AxiosResponse) => {\n /** 디버깅용 로그 */\n await addResponseLog(response);\n if (response.data.isSuccess === false) {\n /**\n * 200 응답이라도 , isSuccess === false인 경우 에러로 reject\n */\n const axiosError = new AxiosError();\n axiosError.response = response;\n axiosError.config = response.config;\n axiosError.message = response.data.message;\n axiosError.code = response.status.toString();\n axiosError.request = response.request;\n\n return Promise.reject(axiosError);\n }\n\n return response;\n },\n async (error: AxiosError) => {\n console.log('error');\n /** 디버깅용 로그 */\n await addErrorLog(error);\n\n const originalRequest = error.config;\n const debugRefreshQueueOff = config.headers?.['Debug-Refresh-Queue-Off'] === 'true';\n const retry_request = originalRequest?.params?.retry_request === 'true';\n console.log('retry_request', retry_request);\n /**\n * 401에러 Queue처리\n */\n if (\n error.response?.status === 401 &&\n !debugRefreshQueueOff &&\n !retry_request &&\n !originalRequest?.url?.includes('internal/api/auth/refresh')\n ) {\n console.log('error 401 큐처리');\n isRefreshed = false;\n const client = new AuthClient();\n client\n .refreshToken()\n .then(() => {\n /**\n * 토큰 갱신 성공, 플래그를 true로 설정\n */\n isRefreshed = true;\n\n /**\n * 큐에 쌓여있던 모든 요청 재시도\n */\n while (axiosQueue.length > 0) {\n const p = axiosQueue.shift(); // axiosQueue에서 첫 번째 요소를 제거하고 반환합니다.\n if (p) {\n /**\n * api 인스턴스를 통해 요청을 재시도합니다. 따라서 재요청들은 다시 인터셉터를 타게 됩니다.\n * 신규토큰을 주입받고 정상처리\n * @todo 재시도후 reject시에는 로그인페이지로 보내는 브릿지 함수를 호출하도록 처리가 필요해보임.\n *\n * @note 11/07 : 무한루프이슈 해결을 위해 , 새로운 인스턴스를 사용하도록 수정\n */\n // add param 'retry_request' to prevent infinite loop\n p.config.params = {\n ...p.config.params,\n retry_request: 'true'\n };\n\n this.api\n .request(p.config)\n .then((response) => p.resolve(response))\n .catch((err) => p.reject(err));\n }\n }\n })\n .catch((error) => {\n /**\n * 토큰 재발행중 에러 발생한 경우 처리\n * 큐에 쌓여있던 모든 요청 reject처리\n */\n while (axiosQueue.length > 0) {\n const p = axiosQueue.shift(); // axiosQueue에서 첫 번째 요소를 제거하고 반환합니다.\n if (p) {\n p.reject(error);\n }\n }\n\n if (isDspApp()) {\n //native 브릿지함수 호출\n // * 별도의 함수 호출 없이 앱에서 처리\n } else {\n //각 도메인 환경에 맞는 핸들러 주입필요\n authErrorHandler();\n }\n\n return Promise.reject(error);\n });\n\n return new Promise((resolve, reject) => {\n if (originalRequest) {\n axiosQueue.push({ resolve, reject, config: originalRequest });\n }\n });\n } else {\n console.log('error 401 큐처리 없음');\n\n return Promise.reject(error);\n }\n }\n );\n }\n\n setHeaders(headers: Record<string, string>) {\n this.headers = {\n ...this.headers,\n ...headers\n };\n }\n}\n","import { Bridge } from 'sales-frontend-bridge';\nimport { isDebugByFilterName } from 'sales-frontend-debug';\nimport { getCookie, getServicePath, isDspApp } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../axios/http-client-axios';\n\nexport class AuthClient {\n defaultTokenType = 'Bearer';\n /**\n * App인지 확인\n * @returns boolean\n */\n isApp() {\n return isDspApp();\n }\n\n getAuthorizationFromCookie() {\n const accessToken = getCookie('accessToken');\n\n return accessToken ? `${this.defaultTokenType} ${accessToken}` : undefined;\n }\n\n async getAuthorizationFromBridge() {\n const { tokenType, accessToken } = await Bridge.native.getAccessToken();\n\n return accessToken ? `${tokenType || this.defaultTokenType} ${accessToken}` : undefined;\n }\n\n /**\n *\n * @returns Promise<string | undefined>\n */\n async getAT(): Promise<string | undefined> {\n const debugModeAuthTokenFromCookie = isDebugByFilterName('auth-token');\n\n /**\n * debugMode 경우 cookie에서 'AT' 를 읽어온다.\n */\n if (debugModeAuthTokenFromCookie) {\n console.log('debugMode token setting!');\n\n return this.getAuthorizationFromCookie();\n }\n\n if (this.isApp()) {\n return await this.getAuthorizationFromBridge();\n } else {\n /**\n * DSP 앱 외에는 쿠키 참조\n */\n return this.getAuthorizationFromCookie();\n }\n }\n\n /**\n * RT를 이용하여 신규 AT/RT발행\n * 기존토큰은 무효화처리\n * 쿠키에 저장.\n */\n async refreshToken(): Promise<void> {\n if (this.isApp()) {\n // 영업지원 앱인 경우 브릿지를 통해 토큰 갱신\n await Bridge.native.refreshAccessToken();\n } else {\n // 신규 앱(FP플래너, 영업포털, 순수 웹) 외에는 내부 api 호출로 토큰 갱신\n const httpClient = new HttpClientAxios();\n\n await httpClient.api.post(`${getServicePath()}/internal/api/auth/refresh`);\n }\n }\n}\n","import { HttpClientAxios } from '../../client';\n\nimport type { TestResponse } from './sample.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\ninterface TestRequest {\n id?: number;\n config?: AxiosRequestConfig;\n setupFn?: (httpClient: HttpClientAxios) => void;\n}\nexport const getTestMethod = async ({ id, config, setupFn }: TestRequest) => {\n const testAPI = `https://jsonplaceholder.typicode.com/users/${id}`;\n\n const httpClient = new HttpClientAxios(config);\n\n const res = await httpClient.api.get<TestResponse>(testAPI);\n\n return res.data;\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { AddressListRequestDto, DspResponseAddressListResponseDto } from './address-search.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const getAddressListMethod = async (params: AddressListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/address-list`;\n const httpClient = new HttpClientAxios(config);\n\n const res = await httpClient.api.post<DspResponseAddressListResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getAddressListMethod } from './address-search.service';\n\nimport type { AddressListRequestDto, DspResponseAddressListResponseDto } from './address-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchAddressQuery = (\n params: AddressListRequestDto,\n options?: CustomQueryOptions<DspResponseAddressListResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.searchKeyWord,\n retry: false,\n queryKey: ['searchAddress', JSON.stringify(params)],\n queryFn: () => {\n return getAddressListMethod(params, config);\n },\n ...options\n });\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { AddressPostalCodeRequestDto, DspResponseAddressPostalCodeResponseDto } from './postal-code.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const getAddressPostalCodeMethod = async (params: AddressPostalCodeRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/address/postal-code`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseAddressPostalCodeResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getAddressPostalCodeMethod } from './postal-code.service';\n\nimport type { AddressPostalCodeRequestDto, DspResponseAddressPostalCodeResponseDto } from './postal-code.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchPostalCodeQuery = (\n params: AddressPostalCodeRequestDto,\n options?: CustomQueryOptions<DspResponseAddressPostalCodeResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.searchWordName,\n retry: false,\n queryKey: ['searchPostalCode', JSON.stringify(params)],\n queryFn: () => {\n return getAddressPostalCodeMethod(params, config);\n },\n ...options\n });\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type {\n AddressStandardizationListRequestDto,\n DspResponseAddressStandardizationListResponseDto\n} from './address-standardization.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const getAddressStandardizationListMethod = async (\n params: AddressStandardizationListRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/address-standardization-list`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseAddressStandardizationListResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getAddressStandardizationListMethod } from './address-standardization.service';\n\nimport type {\n AddressStandardizationListRequestDto,\n DspResponseAddressStandardizationListResponseDto\n} from './address-standardization.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchAddressStandardizationQuery = (\n params: AddressStandardizationListRequestDto,\n options?: CustomQueryOptions<DspResponseAddressStandardizationListResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.baseAddress,\n retry: false,\n queryKey: ['searchAddressStandardization', JSON.stringify(params)],\n queryFn: () => {\n return getAddressStandardizationListMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type {\n DspResponseOccupationDetailResponseDto,\n DspResponseOccupationListResponseDto,\n OccupationDetailRequestDto,\n OccupationListRequestDto\n} from './occupation-search.dto';\n\n/**\n * @description 직종 목록 조회\n */\nexport const getOccupationListMethod = async (params: OccupationListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/occupation-list`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseOccupationListResponseDto>(apiUrl, params);\n\n return res.data;\n};\n\n/**\n * @description 직종 상세 조회\n */\nexport const getOccupationDetailMethod = async (params: OccupationDetailRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/occupation/detail`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseOccupationDetailResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getOccupationDetailMethod, getOccupationListMethod } from './occupation-search.service';\n\nimport type {\n DspResponseOccupationDetailResponseDto,\n DspResponseOccupationListResponseDto,\n OccupationDetailRequestDto,\n OccupationListRequestDto\n} from './occupation-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\n/**\n * @description 직종 목록 조회 쿼리\n */\nexport const useSearchOccupationQuery = (\n params: OccupationListRequestDto,\n options?: CustomQueryOptions<DspResponseOccupationListResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: true,\n retry: false,\n queryKey: ['searchOccupationList', JSON.stringify(params)],\n queryFn: () => {\n return getOccupationListMethod(params, config);\n },\n ...options\n });\n};\n\n/**\n * @description 직종 상세 조회 쿼리\n */\nexport const useSearchOccupationDetailQuery = (\n params: OccupationDetailRequestDto,\n options?: CustomQueryOptions<DspResponseOccupationDetailResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: true,\n retry: false,\n queryKey: ['searchOccupationDetail', JSON.stringify(params)],\n queryFn: () => {\n return getOccupationDetailMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { DspResponseVehicleTypeListResponseDto } from './vehicle-search.dto';\n\nexport const getVehicleListMethod = async (config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/vehicle-type-list`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseVehicleTypeListResponseDto>(apiUrl);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getVehicleListMethod } from './vehicle-search.service';\n\nimport type { DspResponseVehicleTypeListResponseDto } from './vehicle-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchVehicleQuery = (\n options?: CustomQueryOptions<DspResponseVehicleTypeListResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: true,\n retry: false,\n queryKey: ['searchVehicle'],\n queryFn: () => {\n return getVehicleListMethod(config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { DspResponseEmployeeProfileResponseDto, EmployeeProfileSearchRequestDto } from './employee-search.dto';\n\nexport const getEmployeeProfileListMethod = async (\n params: EmployeeProfileSearchRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dea')}/v1/get/participant/profile/employee`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseEmployeeProfileResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getEmployeeProfileListMethod } from './employee-search.service';\n\nimport type { DspResponseEmployeeProfileResponseDto, EmployeeProfileSearchRequestDto } from './employee-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchEmployeeProfileQuery = (\n params: EmployeeProfileSearchRequestDto,\n options?: CustomQueryOptions<DspResponseEmployeeProfileResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.searchWord,\n retry: false,\n queryKey: ['searchEmployeeProfile', JSON.stringify(params)],\n queryFn: () => {\n return getEmployeeProfileListMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { DspResponseOrganizationProfileResponse, OrganizationSearchRequestDto } from './organization-search.dto';\n\nexport const getOrganizationProfileListMethod = async (\n params: OrganizationSearchRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dea')}/v1/get/participant/profile/organization`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseOrganizationProfileResponse>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getOrganizationProfileListMethod } from './organization-search.service';\n\nimport type { DspResponseOrganizationProfileResponse, OrganizationSearchRequestDto } from './organization-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchOrganizationQuery = (\n params: OrganizationSearchRequestDto,\n options?: CustomQueryOptions<DspResponseOrganizationProfileResponse>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.searchWord,\n retry: false,\n queryKey: ['searchOrganization', JSON.stringify(params)],\n queryFn: () => {\n return getOrganizationProfileListMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { DspResponseNationalityListResponseDto, NationalitySearchRequestDto } from './nationality-search.dto';\n\nexport const getNationalityListMethod = async (params: NationalitySearchRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/nationality-list`;\n\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseNationalityListResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getNationalityListMethod } from './nationality-search.service';\n\nimport type { DspResponseNationalityListResponseDto, NationalitySearchRequestDto } from './nationality-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchNationalityQuery = (\n params: NationalitySearchRequestDto,\n options?: CustomQueryOptions<DspResponseNationalityListResponseDto>,\n config?: AxiosRequestConfig\n) => {\n console.log('search nationality', params.searchKeyWord);\n\n return useQuery({\n enabled: !!params.searchKeyWord,\n retry: false,\n queryKey: ['searchNationality', JSON.stringify(params)],\n queryFn: () => {\n return getNationalityListMethod(params, config);\n },\n ...options\n });\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { CustomerListRequestDto, DspResponseCustomerListResponseDto } from './customer-list-search.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const getCustomerListMethod = async (params: CustomerListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/customer-list`;\n\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseCustomerListResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getCustomerListMethod } from './customer-list-search.service';\n\nimport type { CustomerListRequestDto, DspResponseCustomerListResponseDto } from './customer-list-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchCustomerListQuery = (\n params: CustomerListRequestDto,\n options?: CustomQueryOptions<DspResponseCustomerListResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.customerName,\n retry: false,\n queryKey: ['searchCustomerList', JSON.stringify(params)],\n queryFn: () => {\n return getCustomerListMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { DspResponseRiskGradeResponseDto, RiskGradeRequestDto } from './risk-grade-search.dto';\n\nexport const getRiskGradeMethod = async (params: RiskGradeRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/risk-grade`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseRiskGradeResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getRiskGradeMethod } from './risk-grade-search.service';\n\nimport type { DspResponseRiskGradeResponseDto, RiskGradeRequestDto } from './risk-grade-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchRiskGradeQuery = (\n params: RiskGradeRequestDto,\n options?: CustomQueryOptions<DspResponseRiskGradeResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.occupationIndustryCode && !!params.vehicleTypeCode,\n retry: false,\n queryKey: ['searchRiskGrade', JSON.stringify(params)],\n queryFn: () => {\n return getRiskGradeMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type {\n DspResponseListPersonalCustomerProfileResponseDto,\n PersonalCustomerProfileRequestDto\n} from './dea-customer-list-search.dto';\n\nexport const getDspCustomerListMethod = async (\n params: PersonalCustomerProfileRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dea')}/v1/get/participant/profile/customer/personal`;\n\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseListPersonalCustomerProfileResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getDspCustomerListMethod } from './dea-customer-list-search.service';\n\nimport type {\n DspResponseListPersonalCustomerProfileResponseDto,\n PersonalCustomerProfileRequestDto\n} from './dea-customer-list-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchDspCustomerListQuery = (\n params: PersonalCustomerProfileRequestDto,\n options?: CustomQueryOptions<DspResponseListPersonalCustomerProfileResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.customerName,\n retry: false,\n queryKey: ['searchDspCustomerList', JSON.stringify(params)],\n queryFn: () => {\n return getDspCustomerListMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { DspResponseVisaStatusListResponseDto } from './visa-search.dto';\n\nexport const getVisaListMethod = async (config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/visa-status-list`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseVisaStatusListResponseDto>(apiUrl);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getVisaListMethod } from './visa-search.service';\n\nimport type { DspResponseVisaStatusListResponseDto } from './visa-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchVisaQuery = (\n options?: CustomQueryOptions<DspResponseVisaStatusListResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: true,\n retry: false,\n queryKey: ['searchVisa'],\n queryFn: () => {\n return getVisaListMethod(config);\n },\n ...options\n });\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../client';\n\nimport { FpLoginResponseDto } from './login-dsp.dto';\n\n/**\n * @param userId 사번\n * @returns FpLoginResponseDto\n */\nexport const postLoginMethod = async (userId: number) => {\n console.log('userId', userId);\n const apiUrl = `${getDspApiBasePathFromEnvironment('dat')}/v1/post/login`;\n const httpClient = new HttpClientAxios({\n headers: {\n 'Debug-Refresh-Queue-Off': 'true'\n }\n });\n\n const res = await httpClient.api.post<FpLoginResponseDto>(apiUrl, {\n userId,\n channelType: 'DSP_TABLET'\n });\n\n return res.data;\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../client';\n\nimport type { ApiConfig } from '../shared.dto';\nimport type {\n RemoteIdentityVerificationSystemTokenRequestDto,\n DspResponseRemoteIdentityVerificationSystemTokenResponseDto,\n RemoteIdentityVerificationSystemIdentificationCardRequestDto,\n DspResponseRemoteIdentityVerificationSystemIdentificationCardResponseDto\n} from './remote-identity-verification.dto';\n\n/**\n * 토큰 발급 API\n * @param params\n * @param axiosConfig\n * @returns\n */\nexport const getRemoteIdentityVerificationSystemToken = async (\n params: RemoteIdentityVerificationSystemTokenRequestDto,\n axiosConfig?: ApiConfig\n) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dea')}/v1/post/participant/remote-identity-verification-system/token`;\n\n const response = await new HttpClientAxios({\n ...axiosConfig\n }).api.post<DspResponseRemoteIdentityVerificationSystemTokenResponseDto>(apiUrl, params);\n\n return response.data;\n};\n\n/**\n * 비대면 인증 시스템 신분증 진위확인 API\n * @param params 진위확인 요청 파라미터\n * @param axiosConfig API 설정\n * @returns 신분증 진위확인 응답 데이터\n */\nexport const confirmRemoteIdentityVerificationSystemIdentificationCard = async (\n params: RemoteIdentityVerificationSystemIdentificationCardRequestDto,\n axiosConfig?: ApiConfig\n) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dea')}/v1/post/participant/remote-identity-verification-system/identification-card/confirm`;\n\n const response = await new HttpClientAxios({\n ...axiosConfig\n }).api.post<DspResponseRemoteIdentityVerificationSystemIdentificationCardResponseDto>(apiUrl, params);\n\n return response.data;\n};\n","import { useMutation } from '@tanstack/react-query';\n\nimport { CustomMutationOptions } from '../method.types';\n\nimport {\n RemoteIdentityVerificationSystemIdentificationCardResponseDto,\n RemoteIdentityVerificationSystemIdentificationCardRequestDto\n} from './remote-identity-verification.dto';\nimport { confirmRemoteIdentityVerificationSystemIdentificationCard } from './remote-identity-verification.service';\n\n/**\n * 비대면 인증 시스템 신분증 진위확인 Mutation\n * @param options\n * @returns\n */\nexport const useConfirmRemoteIdentityVerificationSystemIdentificationCardMutation = (\n options?: CustomMutationOptions<\n RemoteIdentityVerificationSystemIdentificationCardResponseDto,\n RemoteIdentityVerificationSystemIdentificationCardRequestDto\n >\n) => {\n return useMutation({\n mutationKey: ['confirmRemoteIdentityVerificationSystemIdentificationCard'],\n mutationFn: async (params) => {\n const response = await confirmRemoteIdentityVerificationSystemIdentificationCard(params);\n\n return response.data;\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../client';\n\nimport type { CommonCodeRequestDto, DspResponseCommonCodeResponseDto } from './common-code-search.dto';\n\nexport const getCommonCodeListMethod = async (param: CommonCodeRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dea')}/v1/get/common-code/list`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseCommonCodeResponseDto>(apiUrl, param);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { CustomQueryOptions } from '../method.types';\n\nimport { getCommonCodeListMethod } from './common-code-search.service';\n\nimport type { CommonCodeRequestDto, DspResponseCommonCodeResponseDto } from './common-code-search.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchCommonCodeQuery = (\n param: CommonCodeRequestDto,\n options?: CustomQueryOptions<DspResponseCommonCodeResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!param.commonCodeId,\n retry: false,\n queryKey: ['searchCommonCode', param.commonCodeId],\n queryFn: () => {\n return getCommonCodeListMethod(param, config);\n },\n ...options\n });\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../client';\n\nimport type { DspResponseUserProfileResponseDto } from './app-config.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\n/**\n * FP 기본 정보를 조회합니다.\n * @param axiosConfig\n * @returns\n */\nexport const getUserProfile = async (axiosConfig?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dat')}/v1/get/user/profile`;\n const response = await new HttpClientAxios({\n ...axiosConfig\n }).api.post<DspResponseUserProfileResponseDto>(apiUrl);\n\n return response.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { CustomQueryOptions } from '../method.types';\n\nimport { getUserProfile } from './app-config.service';\n\nimport type { DspResponseUserProfileResponseDto } from './app-config.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useGetUerProfileQuery = (\n options?: CustomQueryOptions<DspResponseUserProfileResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: false,\n queryKey: ['getUserProfile'],\n queryFn: () => {\n return getUserProfile(config);\n },\n ...options\n });\n};\n","import { getDudApiBasePathFromEnvironment, getExt, getServicePath, isClient } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../client';\n\nimport type {\n DownloadType,\n FileUploadExternalRequestDto,\n FileUploadExternalResponseDto\n} from './dud-external-file.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nconst getDayDiffFromToday = (date: Date) => {\n const diff = date.getTime() - new Date().getTime();\n\n return Math.floor(diff / (1000 * 60 * 60 * 24));\n};\n\nexport const postFileUploadMethod = async (params: FileUploadExternalRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDudApiBasePathFromEnvironment(isClient() ? location.hostname : '', isClient() ? getServicePath() : '')}/v1/post/file`;\n const formData = new FormData();\n\n if (params.data instanceof File) {\n formData.append('data', params.data, params.name || params.data.name);\n } else if (params.data instanceof Blob) {\n formData.append('data', params.data, params.name || `dud-file.${getExt(params.data)}`);\n }\n\n params.fileIdentifierValue && formData.append('fileIdentifierValue', params.fileIdentifierValue);\n params.fileExtendContent1 && formData.append('fileExtendContent1', params.fileExtendContent1);\n params.fileExtendContent2 && formData.append('fileExtendContent2', params.fileExtendContent2);\n\n /**\n * expireDate , preservationTerm 중에 1가지만\n */\n params.expireDate &&\n formData.append('preservationTerm', (getDayDiffFromToday(params.expireDate) + 1).toString() || '1');\n params.preservationTerm && formData.append('preservationTerm', params.preservationTerm.toString() || '1');\n\n /**\n * 파일/blot객체에서 자동추출하도록 수정\n */\n formData.append('fileType', params.fileType || params.data.type.split('/').pop() || 'png');\n\n const httpClient = new HttpClientAxios({ ...config, withCredentials: false });\n\n /**\n *\n * \"isSuccess\": true,\n * \"code\": \"nxl-dsp-dud-erro-5801\", 'erro' 오타아니라 원래 4글자 규칙이라고합니다.\n * \"message\": \"파일 업로드 가능 확장자는 <br/>ozd, png, jpg, gif, pdf, json, xml, txt 입니다.\"\n *\n * @description \"isSuccess\": true, 이지만 실패처리인 케이스에 대한 별도 interceptor 처리가 필요\n */\n httpClient.api.interceptors.response.use((response) => {\n const { data } = response;\n\n if (data.isSuccess === true && data.code.includes('erro')) {\n return Promise.reject(response);\n }\n\n return response;\n });\n\n const res = await httpClient.api.post<FileUploadExternalResponseDto>(apiUrl, formData);\n\n return res.data;\n};\n\nexport async function postFileDownloadMethod<T extends 'BASE64' | 'BINARY'>(\n params: { fileMgmtId: string; outputType: T },\n config?: AxiosRequestConfig\n) {\n\n\n const apiUrl = `${getDudApiBasePathFromEnvironment(isClient() ? location.hostname : '', isClient() ? getServicePath() : '')}/v1/get/file`;\n\n const httpClient = new HttpClientAxios({\n ...config,\n ...(params.outputType === 'BINARY' && { responseType: 'blob' })\n });\n\n httpClient.api.interceptors.request.use((config) => {\n console.log('dud-interceptor request')\n\n return config;\n }, (error) => {\n console.log('dud-interceptor request error')\n\n return Promise.reject(error);\n });\n httpClient.api.interceptors.response.use((response) => {\n console.log('dud-interceptor response')\n const { data } = response;\n\n if (params.outputType === 'BINARY' && !(data instanceof Blob)) {\n return Promise.reject(response);\n }\n\n if (params.outputType === 'BASE64' && data.code.includes('erro')) {\n return Promise.reject(response);\n }\n\n return response;\n }, (error) => {\n console.log('dud-interceptor response error')\n\n return Promise.reject(error);\n });\n\n /**\n * FileExternalRequestDto 의 outputType 에 따라 returnType이 상이\n * outputType = 'BASE64' 이면 returnType 이 FileExternalResponseDto\n * outputType = 'BINARY' 이면 File\n */\n const res = await httpClient.api.post<DownloadType<T>>(apiUrl, params);\n\n return res.data;\n}\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { postFileDownloadMethod, postFileUploadMethod } from './dud-external-file.service';\n\nimport type { CustomMutationOptions, CustomQueryOptions } from '../method.types';\nimport type {\n DownloadType,\n FileUploadExternalRequestDto,\n FileUploadExternalResponseDto\n} from './dud-external-file.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useDudExternalFileUploadQuery = (\n params: FileUploadExternalRequestDto,\n options?: CustomQueryOptions<FileUploadExternalResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params,\n retry: false,\n queryKey: ['postFileUploadMethod', JSON.stringify(params)],\n queryFn: () => {\n return postFileUploadMethod(params, config);\n },\n ...options\n });\n};\n\nexport const useDudExternalFileUploadMutation = (\n options?: CustomMutationOptions<FileUploadExternalResponseDto, FileUploadExternalRequestDto>,\n config?: AxiosRequestConfig\n) => {\n return useMutation({\n mutationFn: (params: FileUploadExternalRequestDto) => postFileUploadMethod(params, config),\n ...options\n });\n};\n\nexport const useDudExternalFileDownloadQuery = <T extends 'BASE64' | 'BINARY'>(\n params: {\n fileMgmtId: string;\n outputType: T;\n },\n options?: CustomQueryOptions<DownloadType<T>>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params,\n retry: false,\n queryKey: ['postFileDownloadMethod', JSON.stringify(params)],\n queryFn: () => postFileDownloadMethod(params, config),\n ...options\n });\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils/environment';\n\nimport { HttpClientAxios } from '../../client';\n\nimport { ImageViewerTokenRequestDto, DspResponseImageViewerTokenResponseDto } from './fp-auth.dto';\n\nimport type { ApiConfig } from '../shared.dto';\n\n/**\n * 이미지뷰어 호출을 위한 토큰을 발급합니다.\n * @param params\n * @param axiosConfig\n * @returns\n */\nexport const getImageViewerToken = async (params: ImageViewerTokenRequestDto, axiosConfig?: ApiConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dat')}/v1/get/image-viewer-token`;\n\n const response = await new HttpClientAxios({ ...axiosConfig }).api.post<DspResponseImageViewerTokenResponseDto>(\n apiUrl,\n params\n );\n\n return response.data;\n};\n"]}
1
+ {"version":3,"sources":["../src/http-client/header/header.types.ts","../src/http-client/header/header-manager.ts","../src/http-client/axios/http-client-axios.ts","../src/http-client/auth/auth-client.ts","../src/http-methods/sample/sample.service.ts","../src/http-methods/search-modal/address/address-search.service.ts","../src/http-methods/search-modal/address/use-search-address-query.ts","../src/http-methods/search-modal/address/postal-code.service.ts","../src/http-methods/search-modal/address/use-search-postal-code-query.ts","../src/http-methods/search-modal/address/address-standardization.service.ts","../src/http-methods/search-modal/address/use-search-address-standardization-query.ts","../src/http-methods/search-modal/occupation/occupation-search.service.ts","../src/http-methods/search-modal/occupation/use-search-occupation-query.ts","../src/http-methods/search-modal/vehicle/vehicle-search.service.ts","../src/http-methods/search-modal/vehicle/use-search-vehicle-query.ts","../src/http-methods/search-modal/employee/employee-search.service.ts","../src/http-methods/search-modal/employee/use-search-employee-profile-query.ts","../src/http-methods/search-modal/organization/organization-search.service.ts","../src/http-methods/search-modal/organization/use-search-organization-query.ts","../src/http-methods/search-modal/nationality/nationality-search.service.ts","../src/http-methods/search-modal/nationality/use-search-nationality-query.ts","../src/http-methods/search-modal/customer-list/customer-list-search.service.ts","../src/http-methods/search-modal/customer-list/use-search-customer-list-query.ts","../src/http-methods/search-modal/risk-grade/risk-grade-search.service.ts","../src/http-methods/search-modal/risk-grade/use-search-risk-grade-query.ts","../src/http-methods/search-modal/dea-customer-list/dea-customer-list-search.service.ts","../src/http-methods/search-modal/dea-customer-list/use-search-dea-customer-list-query.ts","../src/http-methods/search-modal/visa/visa-search.service.ts","../src/http-methods/search-modal/visa/use-search-visa-query.ts","../src/http-methods/fp-login/login-dsp.service.ts","../src/http-methods/remote-identity-verification/remote-identity-verification.service.ts","../src/http-methods/remote-identity-verification/use-remote-identity-verification-query.tsx","../src/http-methods/common-code/common-code-search.service.ts","../src/http-methods/common-code/use-search-common-code-query.ts","../src/http-methods/app-config/app-config.service.ts","../src/http-methods/app-config/use-app-config-query.ts","../src/http-methods/dud-external-file/dud-external-file.service.ts","../src/http-methods/dud-external-file/use-dud-external-file-query.ts","../src/http-methods/fp-auth/fp-auth.service.ts"],"names":["getCookie","setCookie","axios","config","addRequestLog","useClientSessionStore","getDspExecutionEnvironment","Bridge","addErrorLog","addResponseLog","AxiosError","error","isDspApp","isDebugByFilterName","getServicePath","getDspApiBasePathFromEnvironment","useQuery","useMutation","getDudApiBasePathFromEnvironment","isClient","getExt"],"mappings":";;;;;;;;;;;;;;;;;;;AAGO,IAAM,iBAAoB,GAAA;AAAA,EAC/B,iBAAA;AAAA,EACA,UAAA;AAAA,EACA,WAAA;AAAA,EACA,cAAA;AAAA,EACA,iBAAA;AAAA,EACA,YAAA;AAAA,EACA,aAAA;AAAA,EACA,YAAA;AAAA,EACA;AACF,CAAA;AAEO,IAAM,EAAK,GAAA,IAAA;;;ACbX,IAAM,gBAAN,MAAoB;AAAA,EAIzB,WAAA,CAAY,QAAoB,MAAoB,EAAA;AAHpD,IAAQ,aAAA,CAAA,IAAA,EAAA,QAAA,CAAA;AACR,IAAQ,aAAA,CAAA,IAAA,EAAA,QAAA,CAAA;AAGN,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AACd,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB;AAAA;AAAA;AAAA,EAKA,gBAAyB,GAAA;AACvB,IAAkB,iBAAA,CAAA,OAAA,CA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tZDA1NS00MzVjLWI2NzQtMWZkNzRiM2FkNzNjLyVFQiVBQyVCOCVFQyU4NCU5QyUyMCVFQiU5RCVCQyVFQyU5RCVCNCVFQiVCOCU4QyVFQiU5RiVBQyVFQiVBNiVBQy9Mb29wQXBwRGF0YS8wOS0yLiUyMEJyaWRnZSUyMFNwZWMlMjAxLmxvb3A%2FbmF2PWN6MGxNa1pqYjI1MFpXNTBjM1J2Y21GblpTVXlSa05UVUY5aVl6STBOREF4TXkxa01EVTFMVFF6TldNdFlqWTNOQzB4Wm1RM05HSXpZV1EzTTJNbVpEMWlJVVV3UVd0MlJsaFJXRVZQTW1SQ1gxaFRlbkpZVUV0UFJVcHJhazVvU2tKUGNGTjBibnA2Y2xaakxVRnliMjVSUlY5V1JESlRXblp5ZVRRMlNXazBSVmttWmowd01WTk5Ua2RHUmxGRlYxTlFOelpMUWtsTFdrWkpXVUUzU1ZkWldGTklWa0ZUSm1NOUpUSkdKbVpzZFdsa1BURSUzRCIsInIiOmZhbHNlfSwiaSI6eyJpIjoiNTdkZmVhM2QtZDA2Yi00YWRlLWIxZjEtYjE4NDA4MmNlN2VjIn19\n */\nexport const customHeaderNames = [\n 'Accept-Language',\n 'DeviceId',\n 'LoginType',\n 'PlatformName',\n 'PlatformVersion',\n 'AppVersion',\n 'DeviceModel',\n 'FormFactor',\n 'LoginChannel'\n];\n\nexport const AT = 'AT';\nexport type GetterSync = (keyName: string) => string;\nexport type SetterSync = (keyName: string, value: string) => void;\n\nexport type GetterAsync = (keyName: string) => Promise<string> | string;\nexport type SetterAsync = (keyName: string, value: string) => Promise<void> | void;\n","import { AT, customHeaderNames, GetterSync, SetterSync } from './header.types';\n\nexport class HeaderManager {\n private getter: GetterSync;\n private setter: SetterSync;\n\n constructor(getter: GetterSync, setter: SetterSync) {\n this.getter = getter;\n this.setter = setter;\n }\n\n /**\n * 커스텀 헤더를 동기적으로 설정합니다.\n */\n setCustomHeaders(): void {\n customHeaderNames.forEach((headerName) => {\n const customHeaderKey = `X-Channel-${headerName}`;\n const headerValue = this.getter(customHeaderKey);\n if (headerValue) {\n this.setter(customHeaderKey, headerValue);\n }\n });\n }\n\n /**\n * 인증 토큰을 동기적으로 설정합니다.\n */\n setAuthToken(): void {\n const token = this.getter(AT);\n if (token) {\n this.setter('Authorization', `Bearer ${token}`);\n }\n }\n\n /**\n * 모든 헤더를 동기적으로 설정합니다.\n */\n setAllHeaders(): void {\n this.setCustomHeaders();\n this.setAuthToken();\n }\n}\n","import axios from 'axios';\nimport { AxiosError, AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';\nimport { Bridge } from 'sales-frontend-bridge';\nimport { addErrorLog, addRequestLog, addResponseLog } from 'sales-frontend-debug';\nimport { useClientSessionStore } from 'sales-frontend-stores';\nimport { getCookie, getDspExecutionEnvironment, isDspApp, setCookie } from 'sales-frontend-utils';\n\nimport { AuthClient } from '../auth/auth-client';\nimport { HeaderManager } from '../header/header-manager';\n\nimport type { AxiosQueueType } from './types';\n\nlet isRefreshed = true;\nconst axiosQueue: AxiosQueueType[] = [];\n\n/**\n * 쿠키에서 값을 가져오고, 없으면 기본값을 쿠키에 설정 후 반환하는 헬퍼 함수\n * @param key 쿠키 키\n * @param defaultValue 쿠키 값이 없을 때 사용할 기본값\n * @returns 쿠키 값 또는 기본값\n */\nconst getOrSetCookie = (key: string, defaultValue: string): string => {\n let value = getCookie(key);\n if (!value) {\n value = defaultValue;\n setCookie(key, value, { path: '/' });\n }\n\n return value;\n};\n\nconst authErrorHandler = () => {\n console.error('Authentication error occurred.');\n};\n\n/**\n * 전자청약\n * CSR용 http-client 입니다.\n * cookie , redirect , tokem 처리 방식은 CSR 환경에 맞게 구현됩니다.\n */\nexport class HttpClientAxios {\n config: AxiosRequestConfig;\n headerManager: HeaderManager;\n\n /**\n * axios의 request interceptor 동작시, 헤더에 주입될 헤더의 key,value\n */\n headers: Record<string, string> = {};\n\n /**\n * api연동을 수행할 실제 객체(axios, fetch 등의 다른 라이브러리로 교체가능한 영역)\n * 현재 버전에서는 axios를 사용하여 구현됨.\n */\n api: AxiosInstance;\n constructor(config: AxiosRequestConfig = {}) {\n this.config = config;\n\n /**\n * 헤더매니저 셋팅\n */\n const getter: HeaderManager['getter'] = (key) => {\n return getCookie(key);\n };\n const setter: HeaderManager['setter'] = (key, value) => {\n if (config?.headers) {\n config.headers[key] = value;\n }\n };\n this.headerManager = new HeaderManager(getter, setter);\n\n /**\n * api수행객체 최초 생성,\n * 공통으로 적용할 설정값이 있는경우 셋팅\n */\n this.api = axios.create({\n withCredentials: false,\n ...config\n });\n\n /**\n * 인터셉터 요청 처리\n */\n this.api.interceptors.request.use(\n async (config) => {\n console.log('config url', config.url);\n const debugMode = getCookie('dsp-debug-mode') === 'on';\n\n /** 디버깅용 로그 */\n await addRequestLog(config);\n\n const debugRefreshQueueOff = config.headers?.['Debug-Refresh-Queue-Off'] === 'true';\n if (debugRefreshQueueOff) {\n isRefreshed = true;\n }\n\n /**\n * AT토큰 주입\n */\n const authClient = new AuthClient();\n const authorization = await authClient.getAT();\n if (authorization) {\n config.headers['Authorization'] = authorization;\n }\n\n if (debugMode) {\n console.log('debugMode header setting!');\n /**\n * 주소가 debugMode 경우 테스트용 헤더 삽입\n */\n config.headers['x-channel-appversion'] = getOrSetCookie('x-channel-appversion', '3.1');\n config.headers['x-channel-deviceid'] = getOrSetCookie('x-channel-deviceid', 'deviceid');\n config.headers['x-channel-devicemodel'] = getOrSetCookie('x-channel-devicemodel', 'iPHONE13');\n config.headers['x-channel-formfactor'] = getOrSetCookie('x-channel-formfactor', 'Phone');\n config.headers['x-channel-loginchannel'] = getOrSetCookie('x-channel-loginchannel', 'DSP');\n config.headers['x-channel-logintype'] = getOrSetCookie('x-channel-logintype', 'ONPA_PIN');\n config.headers['x-channel-platformname'] = getOrSetCookie('x-channel-platformname', 'IOS');\n config.headers['x-channel-platformversion'] = getOrSetCookie('x-channel-platformversion', '15.4.1');\n config.headers['x-channel-screenid'] = getOrSetCookie('x-channel-screenid', location.pathname);\n config.headers['x-channel-business-work-division-code'] = getOrSetCookie(\n 'x-channel-business-work-division-code',\n 'DEA'\n );\n } else {\n const session = useClientSessionStore.getState().clientSession;\n\n config.headers['x-channel-appversion'] = session.appVersion;\n config.headers['x-channel-deviceid'] = session.deviceId;\n config.headers['x-channel-devicemodel'] = session.deviceModel;\n config.headers['x-channel-formfactor'] = session.formFactor;\n config.headers['x-channel-loginchannel'] = session.loginChannel;\n config.headers['x-channel-logintype'] = session.loginType;\n config.headers['x-channel-platformname'] = session.platformName;\n config.headers['x-channel-platformversion'] = session.platformVersion;\n config.headers['x-channel-screenid'] = location.pathname;\n config.headers['x-channel-business-work-division-code'] = session.businessWorkDivisionCode;\n }\n\n /**\n * 커스텀헤더 주입\n */\n // this.headerManager.setCustomHeaders();\n /**\n *\n * this.headers설정된 값을 config headers에 주입\n */\n const headerEntries = Object.entries(this.headers);\n headerEntries.forEach(([key, value]) => {\n if (config?.headers) {\n config.headers[key] = value;\n }\n });\n\n /**\n * isRefreshed가 false이면(= 에러발생하여 token재발행중을 의미)\n * 새로운 요청들을 처리하지 않고,큐에 저장\n * 401에러 Queue처리 Request interceptor 등록\n */\n if (!isRefreshed && !config.url?.includes('internal/api/auth/refresh')) {\n console.log('request 401 큐처리');\n\n return new Promise((resolve, reject) => {\n axiosQueue.push({ resolve, reject, config });\n }).then(() => config);\n }\n\n // 세션 연장(for 영업포털 세션)\n if (getDspExecutionEnvironment() === 'iframe') {\n Bridge.iframe.dspKeepCallerSession();\n }\n\n return config;\n },\n async (error) => {\n /** 디버깅용 로그 */\n await addErrorLog(error);\n console.log('request error');\n\n return Promise.reject(error);\n }\n );\n\n /**\n * 인터셉터 응답 처리\n */\n this.api.interceptors.response.use(\n async (response: AxiosResponse) => {\n /** 디버깅용 로그 */\n await addResponseLog(response);\n if (response.data.isSuccess === false) {\n /**\n * 200 응답이라도 , isSuccess === false인 경우 에러로 reject\n */\n const axiosError = new AxiosError();\n axiosError.response = response;\n axiosError.config = response.config;\n axiosError.message = response.data.message;\n axiosError.code = response.status.toString();\n axiosError.request = response.request;\n\n return Promise.reject(axiosError);\n }\n\n return response;\n },\n async (error: AxiosError) => {\n console.log('error');\n /** 디버깅용 로그 */\n await addErrorLog(error);\n\n const originalRequest = error.config;\n const debugRefreshQueueOff = config.headers?.['Debug-Refresh-Queue-Off'] === 'true';\n const retry_request = originalRequest?.params?.retry_request === 'true';\n console.log('retry_request', retry_request);\n /**\n * 401에러 Queue처리\n */\n if (\n error.response?.status === 401 &&\n !debugRefreshQueueOff &&\n !retry_request &&\n !originalRequest?.url?.includes('internal/api/auth/refresh')\n ) {\n console.log('error 401 큐처리');\n isRefreshed = false;\n const client = new AuthClient();\n client\n .refreshToken()\n .then(() => {\n /**\n * 토큰 갱신 성공, 플래그를 true로 설정\n */\n isRefreshed = true;\n\n /**\n * 큐에 쌓여있던 모든 요청 재시도\n */\n while (axiosQueue.length > 0) {\n const p = axiosQueue.shift(); // axiosQueue에서 첫 번째 요소를 제거하고 반환합니다.\n if (p) {\n /**\n * api 인스턴스를 통해 요청을 재시도합니다. 따라서 재요청들은 다시 인터셉터를 타게 됩니다.\n * 신규토큰을 주입받고 정상처리\n * @todo 재시도후 reject시에는 로그인페이지로 보내는 브릿지 함수를 호출하도록 처리가 필요해보임.\n *\n * @note 11/07 : 무한루프이슈 해결을 위해 , 새로운 인스턴스를 사용하도록 수정\n */\n // add param 'retry_request' to prevent infinite loop\n p.config.params = {\n ...p.config.params,\n retry_request: 'true'\n };\n\n this.api\n .request(p.config)\n .then((response) => p.resolve(response))\n .catch((err) => p.reject(err));\n }\n }\n })\n .catch((error) => {\n /**\n * 토큰 재발행중 에러 발생한 경우 처리\n * 큐에 쌓여있던 모든 요청 reject처리\n */\n while (axiosQueue.length > 0) {\n const p = axiosQueue.shift(); // axiosQueue에서 첫 번째 요소를 제거하고 반환합니다.\n if (p) {\n p.reject(error);\n }\n }\n\n if (isDspApp()) {\n //native 브릿지함수 호출\n // * 별도의 함수 호출 없이 앱에서 처리\n } else {\n //각 도메인 환경에 맞는 핸들러 주입필요\n authErrorHandler();\n }\n\n return Promise.reject(error);\n });\n\n return new Promise((resolve, reject) => {\n if (originalRequest) {\n axiosQueue.push({ resolve, reject, config: originalRequest });\n }\n });\n } else {\n console.log('error 401 큐처리 없음');\n\n return Promise.reject(error);\n }\n }\n );\n }\n\n setHeaders(headers: Record<string, string>) {\n this.headers = {\n ...this.headers,\n ...headers\n };\n }\n}\n","import { Bridge } from 'sales-frontend-bridge';\nimport { isDebugByFilterName } from 'sales-frontend-debug';\nimport { getCookie, getServicePath, isDspApp } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../axios/http-client-axios';\n\nexport class AuthClient {\n defaultTokenType = 'Bearer';\n /**\n * App인지 확인\n * @returns boolean\n */\n isApp() {\n return isDspApp();\n }\n\n getAuthorizationFromCookie() {\n const accessToken = getCookie('accessToken');\n\n return accessToken ? `${this.defaultTokenType} ${accessToken}` : undefined;\n }\n\n async getAuthorizationFromBridge() {\n const { tokenType, accessToken } = await Bridge.native.getAccessToken();\n\n return accessToken ? `${tokenType || this.defaultTokenType} ${accessToken}` : undefined;\n }\n\n /**\n *\n * @returns Promise<string | undefined>\n */\n async getAT(): Promise<string | undefined> {\n const debugModeAuthTokenFromCookie = isDebugByFilterName('auth-token');\n\n /**\n * debugMode 경우 cookie에서 'AT' 를 읽어온다.\n */\n if (debugModeAuthTokenFromCookie) {\n console.log('debugMode token setting!');\n\n return this.getAuthorizationFromCookie();\n }\n\n if (this.isApp()) {\n return await this.getAuthorizationFromBridge();\n } else {\n /**\n * DSP 앱 외에는 쿠키 참조\n */\n return this.getAuthorizationFromCookie();\n }\n }\n\n /**\n * RT를 이용하여 신규 AT/RT발행\n * 기존토큰은 무효화처리\n * 쿠키에 저장.\n */\n async refreshToken(): Promise<void> {\n if (this.isApp()) {\n // 영업지원 앱인 경우 브릿지를 통해 토큰 갱신\n await Bridge.native.refreshAccessToken();\n } else {\n // 신규 앱(FP플래너, 영업포털, 순수 웹) 외에는 내부 api 호출로 토큰 갱신\n const httpClient = new HttpClientAxios();\n\n await httpClient.api.post(`${getServicePath()}/internal/api/auth/refresh`);\n }\n }\n}\n","import { HttpClientAxios } from '../../client';\n\nimport type { TestResponse } from './sample.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\ninterface TestRequest {\n id?: number;\n config?: AxiosRequestConfig;\n setupFn?: (httpClient: HttpClientAxios) => void;\n}\nexport const getTestMethod = async ({ id, config, setupFn }: TestRequest) => {\n const testAPI = `https://jsonplaceholder.typicode.com/users/${id}`;\n\n const httpClient = new HttpClientAxios(config);\n\n const res = await httpClient.api.get<TestResponse>(testAPI);\n\n return res.data;\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { AddressListRequestDto, DspResponseAddressListResponseDto } from './address-search.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const getAddressListMethod = async (params: AddressListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/address-list`;\n const httpClient = new HttpClientAxios(config);\n\n const res = await httpClient.api.post<DspResponseAddressListResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getAddressListMethod } from './address-search.service';\n\nimport type { AddressListRequestDto, DspResponseAddressListResponseDto } from './address-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchAddressQuery = (\n params: AddressListRequestDto,\n options?: CustomQueryOptions<DspResponseAddressListResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.searchKeyWord,\n retry: false,\n queryKey: ['searchAddress', JSON.stringify(params)],\n queryFn: () => {\n return getAddressListMethod(params, config);\n },\n ...options\n });\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { AddressPostalCodeRequestDto, DspResponseAddressPostalCodeResponseDto } from './postal-code.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const getAddressPostalCodeMethod = async (params: AddressPostalCodeRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/address/postal-code`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseAddressPostalCodeResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getAddressPostalCodeMethod } from './postal-code.service';\n\nimport type { AddressPostalCodeRequestDto, DspResponseAddressPostalCodeResponseDto } from './postal-code.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchPostalCodeQuery = (\n params: AddressPostalCodeRequestDto,\n options?: CustomQueryOptions<DspResponseAddressPostalCodeResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.searchWordName,\n retry: false,\n queryKey: ['searchPostalCode', JSON.stringify(params)],\n queryFn: () => {\n return getAddressPostalCodeMethod(params, config);\n },\n ...options\n });\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type {\n AddressStandardizationListRequestDto,\n DspResponseAddressStandardizationListResponseDto\n} from './address-standardization.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const getAddressStandardizationListMethod = async (\n params: AddressStandardizationListRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/address-standardization-list`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseAddressStandardizationListResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getAddressStandardizationListMethod } from './address-standardization.service';\n\nimport type {\n AddressStandardizationListRequestDto,\n DspResponseAddressStandardizationListResponseDto\n} from './address-standardization.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchAddressStandardizationQuery = (\n params: AddressStandardizationListRequestDto,\n options?: CustomQueryOptions<DspResponseAddressStandardizationListResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.baseAddress,\n retry: false,\n queryKey: ['searchAddressStandardization', JSON.stringify(params)],\n queryFn: () => {\n return getAddressStandardizationListMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type {\n DspResponseOccupationDetailResponseDto,\n DspResponseOccupationListResponseDto,\n OccupationDetailRequestDto,\n OccupationListRequestDto\n} from './occupation-search.dto';\n\n/**\n * @description 직종 목록 조회\n */\nexport const getOccupationListMethod = async (params: OccupationListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/occupation-list`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseOccupationListResponseDto>(apiUrl, params);\n\n return res.data;\n};\n\n/**\n * @description 직종 상세 조회\n */\nexport const getOccupationDetailMethod = async (params: OccupationDetailRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/occupation/detail`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseOccupationDetailResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getOccupationDetailMethod, getOccupationListMethod } from './occupation-search.service';\n\nimport type {\n DspResponseOccupationDetailResponseDto,\n DspResponseOccupationListResponseDto,\n OccupationDetailRequestDto,\n OccupationListRequestDto\n} from './occupation-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\n/**\n * @description 직종 목록 조회 쿼리\n */\nexport const useSearchOccupationQuery = (\n params: OccupationListRequestDto,\n options?: CustomQueryOptions<DspResponseOccupationListResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: true,\n retry: false,\n queryKey: ['searchOccupationList', JSON.stringify(params)],\n queryFn: () => {\n return getOccupationListMethod(params, config);\n },\n ...options\n });\n};\n\n/**\n * @description 직종 상세 조회 쿼리\n */\nexport const useSearchOccupationDetailQuery = (\n params: OccupationDetailRequestDto,\n options?: CustomQueryOptions<DspResponseOccupationDetailResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: true,\n retry: false,\n queryKey: ['searchOccupationDetail', JSON.stringify(params)],\n queryFn: () => {\n return getOccupationDetailMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { DspResponseVehicleTypeListResponseDto } from './vehicle-search.dto';\n\nexport const getVehicleListMethod = async (config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/vehicle-type-list`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseVehicleTypeListResponseDto>(apiUrl);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getVehicleListMethod } from './vehicle-search.service';\n\nimport type { DspResponseVehicleTypeListResponseDto } from './vehicle-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchVehicleQuery = (\n options?: CustomQueryOptions<DspResponseVehicleTypeListResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: true,\n retry: false,\n queryKey: ['searchVehicle'],\n queryFn: () => {\n return getVehicleListMethod(config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { DspResponseEmployeeProfileResponseDto, EmployeeProfileSearchRequestDto } from './employee-search.dto';\n\nexport const getEmployeeProfileListMethod = async (\n params: EmployeeProfileSearchRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dea')}/v1/get/participant/profile/employee`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseEmployeeProfileResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getEmployeeProfileListMethod } from './employee-search.service';\n\nimport type { DspResponseEmployeeProfileResponseDto, EmployeeProfileSearchRequestDto } from './employee-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchEmployeeProfileQuery = (\n params: EmployeeProfileSearchRequestDto,\n options?: CustomQueryOptions<DspResponseEmployeeProfileResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.searchWord,\n retry: false,\n queryKey: ['searchEmployeeProfile', JSON.stringify(params)],\n queryFn: () => {\n return getEmployeeProfileListMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { DspResponseOrganizationProfileResponse, OrganizationSearchRequestDto } from './organization-search.dto';\n\nexport const getOrganizationProfileListMethod = async (\n params: OrganizationSearchRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dea')}/v1/get/participant/profile/organization`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseOrganizationProfileResponse>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getOrganizationProfileListMethod } from './organization-search.service';\n\nimport type { DspResponseOrganizationProfileResponse, OrganizationSearchRequestDto } from './organization-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchOrganizationQuery = (\n params: OrganizationSearchRequestDto,\n options?: CustomQueryOptions<DspResponseOrganizationProfileResponse>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.searchWord,\n retry: false,\n queryKey: ['searchOrganization', JSON.stringify(params)],\n queryFn: () => {\n return getOrganizationProfileListMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { DspResponseNationalityListResponseDto, NationalitySearchRequestDto } from './nationality-search.dto';\n\nexport const getNationalityListMethod = async (params: NationalitySearchRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/nationality-list`;\n\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseNationalityListResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getNationalityListMethod } from './nationality-search.service';\n\nimport type { DspResponseNationalityListResponseDto, NationalitySearchRequestDto } from './nationality-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchNationalityQuery = (\n params: NationalitySearchRequestDto,\n options?: CustomQueryOptions<DspResponseNationalityListResponseDto>,\n config?: AxiosRequestConfig\n) => {\n console.log('search nationality', params.searchKeyWord);\n\n return useQuery({\n enabled: !!params.searchKeyWord,\n retry: false,\n queryKey: ['searchNationality', JSON.stringify(params)],\n queryFn: () => {\n return getNationalityListMethod(params, config);\n },\n ...options\n });\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { CustomerListRequestDto, DspResponseCustomerListResponseDto } from './customer-list-search.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const getCustomerListMethod = async (params: CustomerListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/customer-list`;\n\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseCustomerListResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getCustomerListMethod } from './customer-list-search.service';\n\nimport type { CustomerListRequestDto, DspResponseCustomerListResponseDto } from './customer-list-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchCustomerListQuery = (\n params: CustomerListRequestDto,\n options?: CustomQueryOptions<DspResponseCustomerListResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.customerName,\n retry: false,\n queryKey: ['searchCustomerList', JSON.stringify(params)],\n queryFn: () => {\n return getCustomerListMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { DspResponseRiskGradeResponseDto, RiskGradeRequestDto } from './risk-grade-search.dto';\n\nexport const getRiskGradeMethod = async (params: RiskGradeRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/risk-grade`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseRiskGradeResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getRiskGradeMethod } from './risk-grade-search.service';\n\nimport type { DspResponseRiskGradeResponseDto, RiskGradeRequestDto } from './risk-grade-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchRiskGradeQuery = (\n params: RiskGradeRequestDto,\n options?: CustomQueryOptions<DspResponseRiskGradeResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.occupationIndustryCode && !!params.vehicleTypeCode,\n retry: false,\n queryKey: ['searchRiskGrade', JSON.stringify(params)],\n queryFn: () => {\n return getRiskGradeMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type {\n DspResponseListPersonalCustomerProfileResponseDto,\n GroupCustomerProfileRequestDto,\n GroupCustomerProfileResponseDto,\n PersonalCustomerProfileRequestDto\n} from './dea-customer-list-search.dto';\n\n/**\n * 개인고객 검색\n */\nexport const getDspCustomerListMethod = async (\n params: PersonalCustomerProfileRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dea')}/v1/get/participant/profile/customer/personal`;\n\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseListPersonalCustomerProfileResponseDto>(apiUrl, params);\n\n return res.data;\n};\n\n\n/**\n * 단체고객 검색\n */\nexport const getDspCustomerGroupListMethod = async (\n params: GroupCustomerProfileRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dea')}/v1/get/participant/profile/customer/group`;\n\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<GroupCustomerProfileResponseDto>(apiUrl, params);\n\n return res.data;\n};\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { getDspCustomerGroupListMethod, getDspCustomerListMethod } from './dea-customer-list-search.service';\n\nimport type {\n DspResponseListPersonalCustomerProfileResponseDto,\n GroupCustomerProfileRequestDto,\n GroupCustomerProfileResponseDto,\n PersonalCustomerProfileRequestDto\n} from './dea-customer-list-search.dto';\nimport type { CustomMutationOptions, CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\n/**\n * 개인고객 검색\n */\nexport const useSearchDspCustomerListQuery = (\n params: PersonalCustomerProfileRequestDto,\n options?: CustomQueryOptions<DspResponseListPersonalCustomerProfileResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.customerName,\n retry: false,\n queryKey: ['searchDspCustomerList', JSON.stringify(params)],\n queryFn: () => {\n return getDspCustomerListMethod(params, config);\n },\n ...options\n });\n};\n\n/**\n * 단체고객 검색\n * 쿼리방식\n */\nexport const useSearchDspCustomerGroupListQuery = (\n params: GroupCustomerProfileRequestDto,\n options?: CustomQueryOptions<GroupCustomerProfileResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params.customerName,\n retry: false,\n queryKey: ['searchDspCustomerGroupList', JSON.stringify(params)],\n queryFn: () => {\n return getDspCustomerGroupListMethod(params, config);\n },\n ...options\n });\n};\n\n\n/**\n * 단체고객 검색\n * mutation 방식\n */\nexport const useSearchDspCustomerGroupListMutation = (\n options?: CustomMutationOptions<GroupCustomerProfileResponseDto, GroupCustomerProfileRequestDto>,\n config?: AxiosRequestConfig\n) => {\n return useMutation({\n mutationFn: (params: GroupCustomerProfileRequestDto) => {\n return getDspCustomerGroupListMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { DspResponseVisaStatusListResponseDto } from './visa-search.dto';\n\nexport const getVisaListMethod = async (config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dis')}/v1/get/codes/visa-status-list`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseVisaStatusListResponseDto>(apiUrl);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { getVisaListMethod } from './visa-search.service';\n\nimport type { DspResponseVisaStatusListResponseDto } from './visa-search.dto';\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchVisaQuery = (\n options?: CustomQueryOptions<DspResponseVisaStatusListResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: true,\n retry: false,\n queryKey: ['searchVisa'],\n queryFn: () => {\n return getVisaListMethod(config);\n },\n ...options\n });\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../client';\n\nimport { FpLoginResponseDto } from './login-dsp.dto';\n\n/**\n * @param userId 사번\n * @returns FpLoginResponseDto\n */\nexport const postLoginMethod = async (userId: number) => {\n console.log('userId', userId);\n const apiUrl = `${getDspApiBasePathFromEnvironment('dat')}/v1/post/login`;\n const httpClient = new HttpClientAxios({\n headers: {\n 'Debug-Refresh-Queue-Off': 'true'\n }\n });\n\n const res = await httpClient.api.post<FpLoginResponseDto>(apiUrl, {\n userId,\n channelType: 'DSP_TABLET'\n });\n\n return res.data;\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../client';\n\nimport type { ApiConfig } from '../shared.dto';\nimport type {\n RemoteIdentityVerificationSystemTokenRequestDto,\n DspResponseRemoteIdentityVerificationSystemTokenResponseDto,\n RemoteIdentityVerificationSystemIdentificationCardRequestDto,\n DspResponseRemoteIdentityVerificationSystemIdentificationCardResponseDto\n} from './remote-identity-verification.dto';\n\n/**\n * 토큰 발급 API\n * @param params\n * @param axiosConfig\n * @returns\n */\nexport const getRemoteIdentityVerificationSystemToken = async (\n params: RemoteIdentityVerificationSystemTokenRequestDto,\n axiosConfig?: ApiConfig\n) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dea')}/v1/post/participant/remote-identity-verification-system/token`;\n\n const response = await new HttpClientAxios({\n ...axiosConfig\n }).api.post<DspResponseRemoteIdentityVerificationSystemTokenResponseDto>(apiUrl, params);\n\n return response.data;\n};\n\n/**\n * 비대면 인증 시스템 신분증 진위확인 API\n * @param params 진위확인 요청 파라미터\n * @param axiosConfig API 설정\n * @returns 신분증 진위확인 응답 데이터\n */\nexport const confirmRemoteIdentityVerificationSystemIdentificationCard = async (\n params: RemoteIdentityVerificationSystemIdentificationCardRequestDto,\n axiosConfig?: ApiConfig\n) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dea')}/v1/post/participant/remote-identity-verification-system/identification-card/confirm`;\n\n const response = await new HttpClientAxios({\n ...axiosConfig\n }).api.post<DspResponseRemoteIdentityVerificationSystemIdentificationCardResponseDto>(apiUrl, params);\n\n return response.data;\n};\n","import { useMutation } from '@tanstack/react-query';\n\nimport { CustomMutationOptions } from '../method.types';\n\nimport {\n RemoteIdentityVerificationSystemIdentificationCardResponseDto,\n RemoteIdentityVerificationSystemIdentificationCardRequestDto\n} from './remote-identity-verification.dto';\nimport { confirmRemoteIdentityVerificationSystemIdentificationCard } from './remote-identity-verification.service';\n\n/**\n * 비대면 인증 시스템 신분증 진위확인 Mutation\n * @param options\n * @returns\n */\nexport const useConfirmRemoteIdentityVerificationSystemIdentificationCardMutation = (\n options?: CustomMutationOptions<\n RemoteIdentityVerificationSystemIdentificationCardResponseDto,\n RemoteIdentityVerificationSystemIdentificationCardRequestDto\n >\n) => {\n return useMutation({\n mutationKey: ['confirmRemoteIdentityVerificationSystemIdentificationCard'],\n mutationFn: async (params) => {\n const response = await confirmRemoteIdentityVerificationSystemIdentificationCard(params);\n\n return response.data;\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\nimport { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../client';\n\nimport type { CommonCodeRequestDto, DspResponseCommonCodeResponseDto } from './common-code-search.dto';\n\nexport const getCommonCodeListMethod = async (param: CommonCodeRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dea')}/v1/get/common-code/list`;\n const httpClient = new HttpClientAxios(config);\n const res = await httpClient.api.post<DspResponseCommonCodeResponseDto>(apiUrl, param);\n\n return res.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { CustomQueryOptions } from '../method.types';\n\nimport { getCommonCodeListMethod } from './common-code-search.service';\n\nimport type { CommonCodeRequestDto, DspResponseCommonCodeResponseDto } from './common-code-search.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useSearchCommonCodeQuery = (\n param: CommonCodeRequestDto,\n options?: CustomQueryOptions<DspResponseCommonCodeResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!param.commonCodeId,\n retry: false,\n queryKey: ['searchCommonCode', param.commonCodeId],\n queryFn: () => {\n return getCommonCodeListMethod(param, config);\n },\n ...options\n });\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../client';\n\nimport type { DspResponseUserProfileResponseDto } from './app-config.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\n/**\n * FP 기본 정보를 조회합니다.\n * @param axiosConfig\n * @returns\n */\nexport const getUserProfile = async (axiosConfig?: AxiosRequestConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dat')}/v1/get/user/profile`;\n const response = await new HttpClientAxios({\n ...axiosConfig\n }).api.post<DspResponseUserProfileResponseDto>(apiUrl);\n\n return response.data;\n};\n","import { useQuery } from '@tanstack/react-query';\n\nimport { CustomQueryOptions } from '../method.types';\n\nimport { getUserProfile } from './app-config.service';\n\nimport type { DspResponseUserProfileResponseDto } from './app-config.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useGetUerProfileQuery = (\n options?: CustomQueryOptions<DspResponseUserProfileResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: false,\n queryKey: ['getUserProfile'],\n queryFn: () => {\n return getUserProfile(config);\n },\n ...options\n });\n};\n","import { getDudApiBasePathFromEnvironment, getExt, getServicePath, isClient } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../../client';\n\nimport type {\n DownloadType,\n FileUploadExternalRequestDto,\n FileUploadExternalResponseDto\n} from './dud-external-file.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nconst getDayDiffFromToday = (date: Date) => {\n const diff = date.getTime() - new Date().getTime();\n\n return Math.floor(diff / (1000 * 60 * 60 * 24));\n};\n\nexport const postFileUploadMethod = async (params: FileUploadExternalRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = `${getDudApiBasePathFromEnvironment(isClient() ? location.hostname : '', isClient() ? getServicePath() : '')}/v1/post/file`;\n const formData = new FormData();\n\n if (params.data instanceof File) {\n formData.append('data', params.data, params.name || params.data.name);\n } else if (params.data instanceof Blob) {\n formData.append('data', params.data, params.name || `dud-file.${getExt(params.data)}`);\n }\n\n params.fileIdentifierValue && formData.append('fileIdentifierValue', params.fileIdentifierValue);\n params.fileExtendContent1 && formData.append('fileExtendContent1', params.fileExtendContent1);\n params.fileExtendContent2 && formData.append('fileExtendContent2', params.fileExtendContent2);\n\n /**\n * expireDate , preservationTerm 중에 1가지만\n */\n params.expireDate &&\n formData.append('preservationTerm', (getDayDiffFromToday(params.expireDate) + 1).toString() || '1');\n params.preservationTerm && formData.append('preservationTerm', params.preservationTerm.toString() || '1');\n\n /**\n * 파일/blot객체에서 자동추출하도록 수정\n */\n formData.append('fileType', params.fileType || params.data.type.split('/').pop() || 'png');\n\n const httpClient = new HttpClientAxios({ ...config, withCredentials: false });\n\n /**\n *\n * \"isSuccess\": true,\n * \"code\": \"nxl-dsp-dud-erro-5801\", 'erro' 오타아니라 원래 4글자 규칙이라고합니다.\n * \"message\": \"파일 업로드 가능 확장자는 <br/>ozd, png, jpg, gif, pdf, json, xml, txt 입니다.\"\n *\n * @description \"isSuccess\": true, 이지만 실패처리인 케이스에 대한 별도 interceptor 처리가 필요\n */\n httpClient.api.interceptors.response.use((response) => {\n const { data } = response;\n\n if (data.isSuccess === true && data.code.includes('erro')) {\n return Promise.reject(response);\n }\n\n return response;\n });\n\n const res = await httpClient.api.post<FileUploadExternalResponseDto>(apiUrl, formData);\n\n return res.data;\n};\n\nexport async function postFileDownloadMethod<T extends 'BASE64' | 'BINARY'>(\n params: { fileMgmtId: string; outputType: T },\n config?: AxiosRequestConfig\n) {\n\n\n const apiUrl = `${getDudApiBasePathFromEnvironment(isClient() ? location.hostname : '', isClient() ? getServicePath() : '')}/v1/get/file`;\n\n const httpClient = new HttpClientAxios({\n ...config,\n ...(params.outputType === 'BINARY' && { responseType: 'blob' })\n });\n\n httpClient.api.interceptors.request.use((config) => {\n console.log('dud-interceptor request')\n\n return config;\n }, (error) => {\n console.log('dud-interceptor request error')\n\n return Promise.reject(error);\n });\n httpClient.api.interceptors.response.use((response) => {\n console.log('dud-interceptor response')\n const { data } = response;\n\n if (params.outputType === 'BINARY' && !(data instanceof Blob)) {\n return Promise.reject(response);\n }\n\n if (params.outputType === 'BASE64' && data.code.includes('erro')) {\n return Promise.reject(response);\n }\n\n return response;\n }, (error) => {\n console.log('dud-interceptor response error')\n\n return Promise.reject(error);\n });\n\n /**\n * FileExternalRequestDto 의 outputType 에 따라 returnType이 상이\n * outputType = 'BASE64' 이면 returnType 이 FileExternalResponseDto\n * outputType = 'BINARY' 이면 File\n */\n const res = await httpClient.api.post<DownloadType<T>>(apiUrl, params);\n\n return res.data;\n}\n","import { useMutation, useQuery } from '@tanstack/react-query';\n\nimport { postFileDownloadMethod, postFileUploadMethod } from './dud-external-file.service';\n\nimport type { CustomMutationOptions, CustomQueryOptions } from '../method.types';\nimport type {\n DownloadType,\n FileUploadExternalRequestDto,\n FileUploadExternalResponseDto\n} from './dud-external-file.dto';\nimport type { AxiosRequestConfig } from 'axios';\n\nexport const useDudExternalFileUploadQuery = (\n params: FileUploadExternalRequestDto,\n options?: CustomQueryOptions<FileUploadExternalResponseDto>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params,\n retry: false,\n queryKey: ['postFileUploadMethod', JSON.stringify(params)],\n queryFn: () => {\n return postFileUploadMethod(params, config);\n },\n ...options\n });\n};\n\nexport const useDudExternalFileUploadMutation = (\n options?: CustomMutationOptions<FileUploadExternalResponseDto, FileUploadExternalRequestDto>,\n config?: AxiosRequestConfig\n) => {\n return useMutation({\n mutationFn: (params: FileUploadExternalRequestDto) => postFileUploadMethod(params, config),\n ...options\n });\n};\n\nexport const useDudExternalFileDownloadQuery = <T extends 'BASE64' | 'BINARY'>(\n params: {\n fileMgmtId: string;\n outputType: T;\n },\n options?: CustomQueryOptions<DownloadType<T>>,\n config?: AxiosRequestConfig\n) => {\n return useQuery({\n enabled: !!params,\n retry: false,\n queryKey: ['postFileDownloadMethod', JSON.stringify(params)],\n queryFn: () => postFileDownloadMethod(params, config),\n ...options\n });\n};\n","import { getDspApiBasePathFromEnvironment } from 'sales-frontend-utils/environment';\n\nimport { HttpClientAxios } from '../../client';\n\nimport { ImageViewerTokenRequestDto, DspResponseImageViewerTokenResponseDto } from './fp-auth.dto';\n\nimport type { ApiConfig } from '../shared.dto';\n\n/**\n * 이미지뷰어 호출을 위한 토큰을 발급합니다.\n * @param params\n * @param axiosConfig\n * @returns\n */\nexport const getImageViewerToken = async (params: ImageViewerTokenRequestDto, axiosConfig?: ApiConfig) => {\n const apiUrl = `${getDspApiBasePathFromEnvironment('dat')}/v1/get/image-viewer-token`;\n\n const response = await new HttpClientAxios({ ...axiosConfig }).api.post<DspResponseImageViewerTokenResponseDto>(\n apiUrl,\n params\n );\n\n return response.data;\n};\n"]}
package/dist/method.d.cts CHANGED
@@ -2,12 +2,12 @@ import * as axios from 'axios';
2
2
  import { AxiosRequestConfig, AxiosError } from 'axios';
3
3
  import { H as HttpClientAxios } from './http-client-axios-BpXKjpBu.cjs';
4
4
  import * as _tanstack_react_query from '@tanstack/react-query';
5
- import { UseQueryOptions, UseSuspenseQueryOptions, UseMutationOptions } from '@tanstack/react-query';
6
- import { HTMLAttributes } from 'react';
5
+ import { UseQueryOptions, UseMutationOptions, UseSuspenseQueryOptions } from '@tanstack/react-query';
7
6
  import { GenderCode } from 'sales-frontend-utils';
8
- import { FormCore, DropDownWidth } from 'sales-frontend-design-system';
9
- import { D as DspResponse, A as ApiConfig } from './shared.dto-YcQ7DpIa.cjs';
7
+ import { S as SearchInputProps, D as DspResponse, A as ApiConfig } from './shared.dto-CFCkdHJl.cjs';
8
+ import { DropDownWidth } from 'sales-frontend-design-system';
10
9
  import './header.types-duHbFvO0.cjs';
10
+ import 'react';
11
11
 
12
12
  interface Geo {
13
13
  lat: string;
@@ -721,9 +721,8 @@ interface CustomerDto {
721
721
  /** @description 성별코드 */
722
722
  genderCode?: GenderCode;
723
723
  }
724
- interface CustomerSearchProps extends FormCore.InputProps {
724
+ interface CustomerSearchProps extends SearchInputProps {
725
725
  onSelectCustomer?: (customer: CustomerDto) => void;
726
- rootProps?: HTMLAttributes<HTMLDivElement>;
727
726
  onSearchClear?: () => void;
728
727
  dropDownWidth?: DropDownWidth;
729
728
  dropDownClassName?: string;
@@ -803,6 +802,25 @@ interface PersonalCustomerProfileRequestDto {
803
802
  */
804
803
  residentNumberBack: string;
805
804
  }
805
+ /**
806
+ * 단체고객검색요청
807
+ */
808
+ interface GroupCustomerProfileRequestDto {
809
+ /**
810
+ * maxLength: 150
811
+ * minLength: 1
812
+ * example: 한화생명보험
813
+ * 단체명
814
+ */
815
+ customerName: string;
816
+ /**
817
+ * maxLength: 10
818
+ * minLength: 10
819
+ * example: 1234567890
820
+ * 사업자등록번호
821
+ */
822
+ corporateRegistrationNumber: string;
823
+ }
806
824
  /**
807
825
  * @description 응답 DTO
808
826
  */
@@ -828,6 +846,41 @@ interface DspResponseListPersonalCustomerProfileResponseDto {
828
846
  */
829
847
  pagination?: Pagination;
830
848
  }
849
+ /**
850
+ * 단체고객검색 응답
851
+ */
852
+ interface GroupCustomerProfileResponseDto {
853
+ /**
854
+ * example: 1064623131
855
+ * 고객아이디
856
+ */
857
+ customerId: string;
858
+ /**
859
+ * example: 한화생명보험
860
+ 단체명
861
+ */
862
+ customerName: string;
863
+ /**
864
+ * example: 116 - 81 - 11757
865
+ * 사업자등록번호
866
+ */
867
+ corporateRegistrationNumber: string;
868
+ /**
869
+ * example: 보험업
870
+ * 업종명
871
+ */
872
+ businessKindDivisionName: string;
873
+ /**
874
+ * example: 서울 영등포구 63로 50
875
+ * 주소
876
+ */
877
+ address: string;
878
+ /**
879
+ * example: *******
880
+ * 주소상세
881
+ */
882
+ addressDetail: string;
883
+ }
831
884
  /**
832
885
  * @description 개인고객검색응답
833
886
  */
@@ -869,9 +922,29 @@ interface PersonalCustomerProfileResponseDto {
869
922
  addressDetail?: string;
870
923
  }
871
924
 
925
+ /**
926
+ * 개인고객 검색
927
+ */
872
928
  declare const getDspCustomerListMethod: (params: PersonalCustomerProfileRequestDto, config?: AxiosRequestConfig) => Promise<DspResponseListPersonalCustomerProfileResponseDto>;
929
+ /**
930
+ * 단체고객 검색
931
+ */
932
+ declare const getDspCustomerGroupListMethod: (params: GroupCustomerProfileRequestDto, config?: AxiosRequestConfig) => Promise<GroupCustomerProfileResponseDto>;
873
933
 
934
+ /**
935
+ * 개인고객 검색
936
+ */
874
937
  declare const useSearchDspCustomerListQuery: (params: PersonalCustomerProfileRequestDto, options?: CustomQueryOptions<DspResponseListPersonalCustomerProfileResponseDto>, config?: AxiosRequestConfig) => _tanstack_react_query.UseQueryResult<DspResponseListPersonalCustomerProfileResponseDto, axios.AxiosError<DspResponseListPersonalCustomerProfileResponseDto, any>>;
938
+ /**
939
+ * 단체고객 검색
940
+ * 쿼리방식
941
+ */
942
+ declare const useSearchDspCustomerGroupListQuery: (params: GroupCustomerProfileRequestDto, options?: CustomQueryOptions<GroupCustomerProfileResponseDto>, config?: AxiosRequestConfig) => _tanstack_react_query.UseQueryResult<GroupCustomerProfileResponseDto, axios.AxiosError<GroupCustomerProfileResponseDto, any>>;
943
+ /**
944
+ * 단체고객 검색
945
+ * mutation 방식
946
+ */
947
+ declare const useSearchDspCustomerGroupListMutation: (options?: CustomMutationOptions<GroupCustomerProfileResponseDto, GroupCustomerProfileRequestDto>, config?: AxiosRequestConfig) => _tanstack_react_query.UseMutationResult<GroupCustomerProfileResponseDto, axios.AxiosError<GroupCustomerProfileResponseDto, GroupCustomerProfileRequestDto>, GroupCustomerProfileRequestDto, unknown>;
875
948
 
876
949
  interface DspResponseVisaStatusListResponseDto {
877
950
  /** @description 성공여부 */
@@ -1291,4 +1364,4 @@ type DspResponseImageViewerTokenResponseDto = DspResponse<ImageViewerTokenRespon
1291
1364
  */
1292
1365
  declare const getImageViewerToken: (params: ImageViewerTokenRequestDto, axiosConfig?: ApiConfig) => Promise<DspResponseImageViewerTokenResponseDto>;
1293
1366
 
1294
- export { type AddressListRequestDto, type AddressListResponseDto, type AddressPostalCodeDto, type AddressPostalCodeRequestDto, type AddressPostalCodeResponseDto, type AddressResponseDto, type AddressStandardizationListRequestDto, type AddressStandardizationListResponseDto, type AddressStandardizationResponseDto, ApiConfig, type CodeDto, type CommonCodeDto, type CommonCodeRequestDto, type CommonCodeResponseDto, type CustomMutationOptions, type CustomQueryOptions, type CustomSuspenseOptions, type CustomerDto, type CustomerListRequestDto, type CustomerListResponseDto, type CustomerSearchProps, type DownloadType, DspResponse, type DspResponseAddressListResponseDto, type DspResponseAddressPostalCodeResponseDto, type DspResponseAddressStandardizationListResponseDto, type DspResponseCommonCodeResponseDto, type DspResponseCustomerListResponseDto, type DspResponseEmployeeProfileResponseDto, type DspResponseImageViewerTokenResponseDto, type DspResponseListEmployeeProfileResponseDto, type DspResponseListOrganizationProfileResponse, type DspResponseListPersonalCustomerProfileResponseDto, type DspResponseNationalityListResponseDto, type DspResponseOccupationDetailResponseDto, type DspResponseOccupationListResponseDto, type DspResponseOrganizationProfileResponse, type DspResponseRemoteIdentityVerificationSystemIdentificationCardResponseDto, type DspResponseRemoteIdentityVerificationSystemTokenResponseDto, type DspResponseRiskGradeResponseDto, type DspResponseUserProfileResponseDto, type DspResponseVehicleTypeListResponseDto, type DspResponseVisaStatusListResponseDto, type EmployeeDivisionCodeType, type EmployeeProfileRequestDto, type EmployeeProfileResponseDto, type EmployeeProfileSearchRequestDto, type FileExternalRequestDto, type FileExternalResponseDto, type FileUploadExternalRequestDto, type FileUploadExternalRequestDtoBase, type FileUploadExternalResponseDto, type FpLoginData, type FpLoginResponseDto, type ImageViewerTokenRequestDto, type ImageViewerTokenResponseDto, type NationalityListResponseDto, type NationalityResponseDto, type NationalitySearchRequestDto, type OccupationDetailRequestDto, type OccupationDetailResponseDto, type OccupationListRequestDto, type OccupationListResponseDto, type OccupationResponseDto, type OrganizationProfileRequest, type OrganizationProfileResponse, type OrganizationSearchRequestDto, type Pagination, type PersonalCustomerProfileRequestDto, type PersonalCustomerProfileResponseDto, type RemoteIdentityVerificationSystemIdentificationCardRequestDto, type RemoteIdentityVerificationSystemIdentificationCardResponseDto, type RemoteIdentityVerificationSystemTokenRequestDto, type RemoteIdentityVerificationSystemTokenResponseDto, type RiskGradeRequestDto, type RiskGradeResponseDto, type TenureOfOfficeDivisionCodeType, type TestResponse, type UserProfileResponseDto, type VehicleTypeListResponseDto, type VehicleTypeResponseDto, type VisaStatusListResponseDto, type VisaStatusResponseDto, confirmRemoteIdentityVerificationSystemIdentificationCard, getAddressListMethod, getAddressPostalCodeMethod, getAddressStandardizationListMethod, getCommonCodeListMethod, getCustomerListMethod, getDspCustomerListMethod, getEmployeeProfileListMethod, getImageViewerToken, getNationalityListMethod, getOccupationDetailMethod, getOccupationListMethod, getOrganizationProfileListMethod, getRemoteIdentityVerificationSystemToken, getRiskGradeMethod, getTestMethod, getUserProfile, getVehicleListMethod, getVisaListMethod, postFileDownloadMethod, postFileUploadMethod, postLoginMethod, useConfirmRemoteIdentityVerificationSystemIdentificationCardMutation, useDudExternalFileDownloadQuery, useDudExternalFileUploadMutation, useDudExternalFileUploadQuery, useGetUerProfileQuery, useSearchAddressQuery, useSearchAddressStandardizationQuery, useSearchCommonCodeQuery, useSearchCustomerListQuery, useSearchDspCustomerListQuery, useSearchEmployeeProfileQuery, useSearchNationalityQuery, useSearchOccupationDetailQuery, useSearchOccupationQuery, useSearchOrganizationQuery, useSearchPostalCodeQuery, useSearchRiskGradeQuery, useSearchVehicleQuery, useSearchVisaQuery };
1367
+ export { type AddressListRequestDto, type AddressListResponseDto, type AddressPostalCodeDto, type AddressPostalCodeRequestDto, type AddressPostalCodeResponseDto, type AddressResponseDto, type AddressStandardizationListRequestDto, type AddressStandardizationListResponseDto, type AddressStandardizationResponseDto, ApiConfig, type CodeDto, type CommonCodeDto, type CommonCodeRequestDto, type CommonCodeResponseDto, type CustomMutationOptions, type CustomQueryOptions, type CustomSuspenseOptions, type CustomerDto, type CustomerListRequestDto, type CustomerListResponseDto, type CustomerSearchProps, type DownloadType, DspResponse, type DspResponseAddressListResponseDto, type DspResponseAddressPostalCodeResponseDto, type DspResponseAddressStandardizationListResponseDto, type DspResponseCommonCodeResponseDto, type DspResponseCustomerListResponseDto, type DspResponseEmployeeProfileResponseDto, type DspResponseImageViewerTokenResponseDto, type DspResponseListEmployeeProfileResponseDto, type DspResponseListOrganizationProfileResponse, type DspResponseListPersonalCustomerProfileResponseDto, type DspResponseNationalityListResponseDto, type DspResponseOccupationDetailResponseDto, type DspResponseOccupationListResponseDto, type DspResponseOrganizationProfileResponse, type DspResponseRemoteIdentityVerificationSystemIdentificationCardResponseDto, type DspResponseRemoteIdentityVerificationSystemTokenResponseDto, type DspResponseRiskGradeResponseDto, type DspResponseUserProfileResponseDto, type DspResponseVehicleTypeListResponseDto, type DspResponseVisaStatusListResponseDto, type EmployeeDivisionCodeType, type EmployeeProfileRequestDto, type EmployeeProfileResponseDto, type EmployeeProfileSearchRequestDto, type FileExternalRequestDto, type FileExternalResponseDto, type FileUploadExternalRequestDto, type FileUploadExternalRequestDtoBase, type FileUploadExternalResponseDto, type FpLoginData, type FpLoginResponseDto, type GroupCustomerProfileRequestDto, type GroupCustomerProfileResponseDto, type ImageViewerTokenRequestDto, type ImageViewerTokenResponseDto, type NationalityListResponseDto, type NationalityResponseDto, type NationalitySearchRequestDto, type OccupationDetailRequestDto, type OccupationDetailResponseDto, type OccupationListRequestDto, type OccupationListResponseDto, type OccupationResponseDto, type OrganizationProfileRequest, type OrganizationProfileResponse, type OrganizationSearchRequestDto, type Pagination, type PersonalCustomerProfileRequestDto, type PersonalCustomerProfileResponseDto, type RemoteIdentityVerificationSystemIdentificationCardRequestDto, type RemoteIdentityVerificationSystemIdentificationCardResponseDto, type RemoteIdentityVerificationSystemTokenRequestDto, type RemoteIdentityVerificationSystemTokenResponseDto, type RiskGradeRequestDto, type RiskGradeResponseDto, SearchInputProps, type TenureOfOfficeDivisionCodeType, type TestResponse, type UserProfileResponseDto, type VehicleTypeListResponseDto, type VehicleTypeResponseDto, type VisaStatusListResponseDto, type VisaStatusResponseDto, confirmRemoteIdentityVerificationSystemIdentificationCard, getAddressListMethod, getAddressPostalCodeMethod, getAddressStandardizationListMethod, getCommonCodeListMethod, getCustomerListMethod, getDspCustomerGroupListMethod, getDspCustomerListMethod, getEmployeeProfileListMethod, getImageViewerToken, getNationalityListMethod, getOccupationDetailMethod, getOccupationListMethod, getOrganizationProfileListMethod, getRemoteIdentityVerificationSystemToken, getRiskGradeMethod, getTestMethod, getUserProfile, getVehicleListMethod, getVisaListMethod, postFileDownloadMethod, postFileUploadMethod, postLoginMethod, useConfirmRemoteIdentityVerificationSystemIdentificationCardMutation, useDudExternalFileDownloadQuery, useDudExternalFileUploadMutation, useDudExternalFileUploadQuery, useGetUerProfileQuery, useSearchAddressQuery, useSearchAddressStandardizationQuery, useSearchCommonCodeQuery, useSearchCustomerListQuery, useSearchDspCustomerGroupListMutation, useSearchDspCustomerGroupListQuery, useSearchDspCustomerListQuery, useSearchEmployeeProfileQuery, useSearchNationalityQuery, useSearchOccupationDetailQuery, useSearchOccupationQuery, useSearchOrganizationQuery, useSearchPostalCodeQuery, useSearchRiskGradeQuery, useSearchVehicleQuery, useSearchVisaQuery };