sales-frontend-api 0.0.47 → 0.0.48
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 +22 -0
- package/dist/method.cjs.map +1 -1
- package/dist/method.d.cts +184 -14
- package/dist/method.d.ts +184 -14
- package/dist/method.js +21 -1
- package/dist/method.js.map +1 -1
- package/package.json +10 -10
package/dist/method.cjs
CHANGED
|
@@ -484,6 +484,27 @@ var postLoginMethod = async (userId) => {
|
|
|
484
484
|
return res.data;
|
|
485
485
|
};
|
|
486
486
|
|
|
487
|
+
// src/http-methods/remote-identity-verification/remote-identity-verification.service.ts
|
|
488
|
+
var getRemoteIdentityVerificationSystemToken = async (params, axiosConfig) => {
|
|
489
|
+
const baseURL = axiosConfig?.baseURL ?? "/dea/api/dea";
|
|
490
|
+
const requestUrl = axiosConfig?.url ?? "/v1/post/participant/remote-identity-verification-system/token";
|
|
491
|
+
const response = await new HttpClientAxios({
|
|
492
|
+
baseURL,
|
|
493
|
+
...axiosConfig
|
|
494
|
+
}).api.post(requestUrl, params);
|
|
495
|
+
return response.data;
|
|
496
|
+
};
|
|
497
|
+
var confirmRemoteIdentityVerificationSystemIdentificationCard = async (params, axiosConfig) => {
|
|
498
|
+
const baseURL = axiosConfig?.baseURL ?? "/dea/api/dea";
|
|
499
|
+
const requestUrl = axiosConfig?.url ?? "/v1/post/participant/remote-identity-verification-system/identification-card/confirm";
|
|
500
|
+
const response = await new HttpClientAxios({
|
|
501
|
+
baseURL,
|
|
502
|
+
...axiosConfig
|
|
503
|
+
}).api.post(requestUrl, params);
|
|
504
|
+
return response.data;
|
|
505
|
+
};
|
|
506
|
+
|
|
507
|
+
exports.confirmRemoteIdentityVerificationSystemIdentificationCard = confirmRemoteIdentityVerificationSystemIdentificationCard;
|
|
487
508
|
exports.getAddressListMethod = getAddressListMethod;
|
|
488
509
|
exports.getAddressPostalCodeMethod = getAddressPostalCodeMethod;
|
|
489
510
|
exports.getAddressStandardizationListMethod = getAddressStandardizationListMethod;
|
|
@@ -493,6 +514,7 @@ exports.getNationalityListMethod = getNationalityListMethod;
|
|
|
493
514
|
exports.getOccupationDetailMethod = getOccupationDetailMethod;
|
|
494
515
|
exports.getOccupationListMethod = getOccupationListMethod;
|
|
495
516
|
exports.getOrganizationProfileListMethod = getOrganizationProfileListMethod;
|
|
517
|
+
exports.getRemoteIdentityVerificationSystemToken = getRemoteIdentityVerificationSystemToken;
|
|
496
518
|
exports.getTestMethod = getTestMethod;
|
|
497
519
|
exports.getVehicleListMethod = getVehicleListMethod;
|
|
498
520
|
exports.postLoginMethod = postLoginMethod;
|
package/dist/method.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/http-client/cookie/cookie-client.ts","../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/useSearchAddressQuery.ts","../src/http-methods/search-modal/address/postal-code.service.ts","../src/http-methods/search-modal/address/useSearchPostalCodeQuery.ts","../src/http-methods/search-modal/address/address-standardization.service.ts","../src/http-methods/search-modal/address/useSearchAddressStandardizationQuery.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/useSearchNationalityQuery.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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AAA;AAAA;AAC7B,GACD,CAAA;AAED,EAAA,MAAM,GAAM,GAAA,MAAM,UAAW,CAAA,GAAA,CAAI,KAAyB,MAAQ,EAAA;AAAA,IAChE,MAAA;AAAA,IACA,WAAa,EAAA;AAAA,GACd,CAAA;AAED,EAAA,OAAO,GAAI,CAAA,IAAA;AACb","file":"method.cjs","sourcesContent":["/**\n * 클라이언트용 쿠키 함수\n */\nexport const cookieClient = {\n getCookie(name: string): string {\n if (typeof document === 'undefined') {\n return '';\n }\n const match = document.cookie.match(new RegExp(`(^|; *)${name}=([^;]*)`));\n\n return match ? decodeURIComponent(match[2] || '') : '';\n },\n\n setCookie(\n name: string,\n value: string,\n options: {\n expires?: number | Date; // number of days\n path?: string;\n domain?: string;\n secure?: boolean;\n } = {}\n ): void {\n if (typeof document === 'undefined') {\n return;\n }\n\n let cookieString = `${name}=${encodeURIComponent(value)}`;\n\n if (options.expires) {\n let expiresDate: Date;\n if (typeof options.expires === 'number') {\n expiresDate = new Date();\n expiresDate.setDate(expiresDate.getDate() + options.expires);\n } else {\n expiresDate = options.expires;\n }\n cookieString += `; expires=${expiresDate.toUTCString()}`;\n }\n\n cookieString += `; path=${options.path || '/'}`;\n\n if (options.domain) {\n cookieString += `; domain=${options.domain}`;\n }\n\n if (options.secure) {\n cookieString += '; secure';\n }\n\n document.cookie = cookieString;\n },\n deleteCookie(name: string, options: { path?: string; domain?: string } = {}): void {\n cookieClient.setCookie(name, '', { ...options, expires: -1 });\n }\n};\n","/**\n * @see https://loop.cloud.microsoft/p/eyJ3Ijp7InUiOiJodHRwczovL2hhbndoYWxpZmVtMzY1LnNoYXJlcG9pbnQuY29tLz9uYXY9Y3owbE1rWW1aRDFpSVVVd1FXdDJSbGhSV0VWUE1tUkNYMWhUZW5KWVVFdFBSVXByYWs1b1NrSlBjRk4wYm5wNmNsWmpMVUZ5YjI1UlJWOVdSREpUV25aeWVUUTJTV2swUlZrbVpqMHdNVk5OVGtkR1JsTkJXVE0xVVZaQ1ZrRkVRa1ZaVEVoRVNUSTBXRXhVVlZoV0ptTTlKbVpzZFdsa1BURSUzRCIsInIiOmZhbHNlfSwicCI6eyJ1IjoiaHR0cHM6Ly9oYW53aGFsaWZlbTM2NS5zaGFyZXBvaW50LmNvbS9jb250ZW50c3RvcmFnZS9DU1BfYmMyNDQwMTMtZDA1NS00MzVjLWI2NzQtMWZkNzRiM2FkNzNjLyVFQiVBQyVCOCVFQyU4NCU5QyUyMCVFQiU5RCVCQyVFQyU5RCVCNCVFQiVCOCU4QyVFQiU5RiVBQyVFQiVBNiVBQy9Mb29wQXBwRGF0YS8wOS0yLiUyMEJyaWRnZSUyMFNwZWMlMjAxLmxvb3A%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 { addErrorLog, addRequestLog, addResponseLog } from 'sales-frontend-debug';\nimport { getEnvironmentFromHostname } from 'sales-frontend-utils';\n\nimport { AuthClient } from '../auth/auth-client';\nimport { cookieClient } from '../cookie/cookie-client';\nimport { HeaderManager } from '../header/header-manager';\n\nimport type { AxiosQueueType } from './types';\nimport type { AxiosError, AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';\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 = cookieClient.getCookie(key);\n if (!value) {\n value = defaultValue;\n cookieClient.setCookie(key, value, { path: '/' });\n }\n\n return value;\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 cookieClient.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: true,\n ...config\n });\n\n /**\n * 인터셉터 요청 처리\n */\n this.api.interceptors.request.use(\n async (config) => {\n const debugMode = cookieClient.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 accessToken = await authClient.getAT();\n console.log('accessToken', accessToken);\n if (accessToken) {\n config.headers['Authorization'] = `Bearer ${accessToken}`;\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', 'ScreenId');\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) {\n return new Promise((resolve, reject) => {\n axiosQueue.push({ resolve, reject, config });\n }).then(() => config);\n }\n\n return config;\n },\n (error) => {\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 return Promise.reject(response);\n }\n\n return response;\n },\n async (error: AxiosError) => {\n /** 디버깅용 로그 */\n await addErrorLog(error);\n\n const originalRequest = error.config;\n const debugRefreshQueueOff = config.headers?.['Debug-Refresh-Queue-Off'] === 'true';\n /**\n * 401에러 Queue처리\n */\n if (error.response?.status === 401 && !debugRefreshQueueOff) {\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 this.api(p.config)\n .then((response) => p.resolve(response))\n .catch((err) => p.reject(err));\n }\n }\n })\n .catch((error) => {\n /**\n * 토큰 재발행중 에러 발생한 경우 처리\n * @todo 로그인페이지 이동(?)\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 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 { isDspWebview } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../axios/http-client-axios';\nimport { cookieClient } from '../cookie/cookie-client';\n\nexport class AuthClient {\n /**\n * App인지 확인\n * @returns boolean\n */\n isApp() {\n return isDspWebview();\n }\n\n /**\n *\n * @returns Promise<string | undefined>\n */\n async getAT(): Promise<string | undefined> {\n const debugMode = cookieClient.getCookie('dsp-debug-mode') === 'on';\n\n /**\n * debugMode 경우 cookie에서 'AT' 를 읽어온다.\n */\n if (debugMode) {\n console.log('debugMode token setting!');\n\n return cookieClient.getCookie('accessToken');\n }\n\n if (this.isApp()) {\n return (await Bridge.native.getAccessToken()).accessToken;\n } else {\n /**\n * pc인 경우는, middleware.ts 에서 요청헤더에 주입\n */\n }\n }\n\n /**\n * RT를 이용하여 신규 AT/RT발행\n * 기존토큰은 무효화처리\n * 쿠키에 저장.\n * @returns Promise<string> 액세스토큰\n */\n async refreshToken(): Promise<string> {\n if (this.isApp()) {\n /**\n * @todo : 브릿지 함수 호출 스펙에 맞게 수정필요\n */\n // @ts-ignore\n //return await bridge.callToNative('', '', 'refreshToken', {});\n return '';\n } else {\n /**\n * @todo : 내부api호출\n */\n const httpclient = new HttpClientAxios({});\n const res = await httpclient.api.get('/internal/api/auth/refresh');\n\n return res?.data.accessToken;\n }\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { AddressListRequestDto, DspResponseAddressListResponseDto } from './address-search.dto';\n\nexport const getAddressListMethod = async (params: AddressListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/dis/v1/get/codes/address-list';\n const httpClient = new HttpClientAxios(config);\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 { AddressListRequestDto, DspResponseAddressListResponseDto } from './address-search.dto';\nimport { getAddressListMethod } from './address-search.service';\n\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { AddressPostalCodeRequestDto, DspResponseAddressPostalCodeResponseDto } from './postal-code.dto';\n\nexport const getAddressPostalCodeMethod = async (params: AddressPostalCodeRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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 { AddressPostalCodeRequestDto, DspResponseAddressPostalCodeResponseDto } from './postal-code.dto';\nimport { getAddressPostalCodeMethod } from './postal-code.service';\n\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport {\n AddressStandardizationListRequestDto,\n DspResponseAddressStandardizationListResponseDto\n} from './address-standardization.dto';\n\nexport const getAddressStandardizationListMethod = async (\n params: AddressStandardizationListRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = '/api/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 {\n AddressStandardizationListRequestDto,\n DspResponseAddressStandardizationListResponseDto\n} from './address-standardization.dto';\nimport { getAddressStandardizationListMethod } from './address-standardization.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport {\n DspResponseOccupationDetailResponseDto,\n DspResponseOccupationListResponseDto,\n OccupationDetailRequestDto,\n OccupationListRequestDto\n} from './occupation-search.dto';\n\nexport const getOccupationListMethod = async (params: OccupationListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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\nexport const getOccupationDetailMethod = async (params: OccupationDetailRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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 {\n DspResponseOccupationDetailResponseDto,\n DspResponseOccupationListResponseDto,\n OccupationDetailRequestDto,\n OccupationListRequestDto\n} from './occupation-search.dto';\nimport { getOccupationDetailMethod, getOccupationListMethod } from './occupation-search.service';\n\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\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: [JSON.stringify(params)],\n queryFn: () => {\n return getOccupationListMethod(params, config);\n },\n ...options\n });\n};\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: [JSON.stringify(params)],\n queryFn: () => {\n return getOccupationDetailMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseVehicleTypeListResponseDto } from './vehicle-search.dto';\n\nexport const getVehicleListMethod = async (config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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 { DspResponseVehicleTypeListResponseDto } from './vehicle-search.dto';\nimport { getVehicleListMethod } from './vehicle-search.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseEmployeeProfileResponseDto, EmployeeProfileSearchRequestDto } from './employee-search.dto';\n\nexport const getEmployeeProfileListMethod = async (\n params: EmployeeProfileSearchRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = '/api/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 {\n DspResponseEmployeeProfileResponseDto,\n EmployeeProfileSearchRequestDto,\n} from './employee-search.dto';\nimport { getEmployeeProfileListMethod } from './employee-search.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseOrganizationProfileResponse, OrganizationSearchRequestDto } from './organization-search.dto';\n\nexport const getOrganizationProfileListMethod = async (\n params: OrganizationSearchRequestDto,\n config?: AxiosRequestConfig\n) => {\n ///v1/get/participant/profile/organization\n const apiUrl = '/api/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 {\n DspResponseOrganizationProfileResponse,\n OrganizationSearchRequestDto,\n} from './organization-search.dto';\nimport { getOrganizationProfileListMethod } from './organization-search.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseNationalityListResponseDto, NationalitySearchRequestDto } from './nationality-search.dto';\n\nexport const getNationalityListMethod = async (params: NationalitySearchRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/dis/v1/get/codes/nationality-list';\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 { DspResponseNationalityListResponseDto, NationalitySearchRequestDto } from './nationality-search.dto';\nimport { getNationalityListMethod } from './nationality-search.service';\n\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { CustomerListRequestDto, DspResponseCustomerListResponseDto } from './customer-list-search.dto';\n\nexport const getCustomerListMethod = async (params: CustomerListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/dis/v1/get/customer-list';\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 { HttpClientAxios } from '../../client';\n\nimport { FpLoginResponseDto } from './login-dsp.dto';\n\n/**\n * @param userId 사번\n */\nexport const postLoginMethod = async (userId: number) => {\n console.log('userId', userId);\n const apiUrl = '/api/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"]}
|
|
1
|
+
{"version":3,"sources":["../src/http-client/cookie/cookie-client.ts","../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/useSearchAddressQuery.ts","../src/http-methods/search-modal/address/postal-code.service.ts","../src/http-methods/search-modal/address/useSearchPostalCodeQuery.ts","../src/http-methods/search-modal/address/address-standardization.service.ts","../src/http-methods/search-modal/address/useSearchAddressStandardizationQuery.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/useSearchNationalityQuery.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/fp-login/login-dsp.service.ts","../src/http-methods/remote-identity-verification/remote-identity-verification.service.ts"],"names":["axios","config","addRequestLog","addResponseLog","addErrorLog","error","isDspWebview","Bridge","useQuery"],"mappings":";;;;;;;;;;;;;;;;;AAGO,IAAM,YAAe,GAAA;AAAA,EAC1B,UAAU,IAAsB,EAAA;AAC9B,IAAI,IAAA,OAAO,aAAa,WAAa,EAAA;AACnC,MAAO,OAAA,EAAA;AAAA;AAET,IA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A,WACG,KAAA;AACH,EAAM,MAAA,OAAA,GAAU,aAAa,OAAW,IAAA,cAAA;AACxC,EAAM,MAAA,UAAA,GAAa,aAAa,GAAO,IAAA,gEAAA;AAEvC,EAAM,MAAA,QAAA,GAAW,MAAM,IAAI,eAAgB,CAAA;AAAA,IACzC,OAAA;AAAA,IACA,GAAG;AAAA,GACJ,CAAA,CAAE,GAAI,CAAA,IAAA,CAAkE,YAAY,MAAM,CAAA;AAE3F,EAAA,OAAO,QAAS,CAAA,IAAA;AAClB;AAQa,IAAA,yDAAA,GAA4D,OACvE,MAAA,EACA,WACG,KAAA;AACH,EAAM,MAAA,OAAA,GAAU,aAAa,OAAW,IAAA,cAAA;AACxC,EAAM,MAAA,UAAA,GACJ,aAAa,GAAO,IAAA,sFAAA;AAEtB,EAAM,MAAA,QAAA,GAAW,MAAM,IAAI,eAAgB,CAAA;AAAA,IACzC,OAAA;AAAA,IACA,GAAG;AAAA,GACJ,CAAA,CAAE,GAAI,CAAA,IAAA,CAAoE,YAAY,MAAM,CAAA;AAE7F,EAAA,OAAO,QAAS,CAAA,IAAA;AAClB","file":"method.cjs","sourcesContent":["/**\n * 클라이언트용 쿠키 함수\n */\nexport const cookieClient = {\n getCookie(name: string): string {\n if (typeof document === 'undefined') {\n return '';\n }\n const match = document.cookie.match(new RegExp(`(^|; *)${name}=([^;]*)`));\n\n return match ? decodeURIComponent(match[2] || '') : '';\n },\n\n setCookie(\n name: string,\n value: string,\n options: {\n expires?: number | Date; // number of days\n path?: string;\n domain?: string;\n secure?: boolean;\n } = {}\n ): void {\n if (typeof document === 'undefined') {\n return;\n }\n\n let cookieString = `${name}=${encodeURIComponent(value)}`;\n\n if (options.expires) {\n let expiresDate: Date;\n if (typeof options.expires === 'number') {\n expiresDate = new Date();\n expiresDate.setDate(expiresDate.getDate() + options.expires);\n } else {\n expiresDate = options.expires;\n }\n cookieString += `; expires=${expiresDate.toUTCString()}`;\n }\n\n cookieString += `; path=${options.path || '/'}`;\n\n if (options.domain) {\n cookieString += `; domain=${options.domain}`;\n }\n\n if (options.secure) {\n cookieString += '; secure';\n }\n\n document.cookie = cookieString;\n },\n deleteCookie(name: string, options: { path?: string; domain?: string } = {}): void {\n cookieClient.setCookie(name, '', { ...options, expires: -1 });\n }\n};\n","/**\n * @see https://loop.cloud.microsoft/p/eyJ3Ijp7InUiOiJodHRwczovL2hhbndoYWxpZmVtMzY1LnNoYXJlcG9pbnQuY29tLz9uYXY9Y3owbE1rWW1aRDFpSVVVd1FXdDJSbGhSV0VWUE1tUkNYMWhUZW5KWVVFdFBSVXByYWs1b1NrSlBjRk4wYm5wNmNsWmpMVUZ5YjI1UlJWOVdSREpUV25aeWVUUTJTV2swUlZrbVpqMHdNVk5OVGtkR1JsTkJXVE0xVVZaQ1ZrRkVRa1ZaVEVoRVNUSTBXRXhVVlZoV0ptTTlKbVpzZFdsa1BURSUzRCIsInIiOmZhbHNlfSwicCI6eyJ1IjoiaHR0cHM6Ly9oYW53aGFsaWZlbTM2NS5zaGFyZXBvaW50LmNvbS9jb250ZW50c3RvcmFnZS9DU1BfYmMyNDQwMTMtZDA1NS00MzVjLWI2NzQtMWZkNzRiM2FkNzNjLyVFQiVBQyVCOCVFQyU4NCU5QyUyMCVFQiU5RCVCQyVFQyU5RCVCNCVFQiVCOCU4QyVFQiU5RiVBQyVFQiVBNiVBQy9Mb29wQXBwRGF0YS8wOS0yLiUyMEJyaWRnZSUyMFNwZWMlMjAxLmxvb3A%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 { addErrorLog, addRequestLog, addResponseLog } from 'sales-frontend-debug';\nimport { getEnvironmentFromHostname } from 'sales-frontend-utils';\n\nimport { AuthClient } from '../auth/auth-client';\nimport { cookieClient } from '../cookie/cookie-client';\nimport { HeaderManager } from '../header/header-manager';\n\nimport type { AxiosQueueType } from './types';\nimport type { AxiosError, AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';\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 = cookieClient.getCookie(key);\n if (!value) {\n value = defaultValue;\n cookieClient.setCookie(key, value, { path: '/' });\n }\n\n return value;\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 cookieClient.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: true,\n ...config\n });\n\n /**\n * 인터셉터 요청 처리\n */\n this.api.interceptors.request.use(\n async (config) => {\n const debugMode = cookieClient.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 accessToken = await authClient.getAT();\n console.log('accessToken', accessToken);\n if (accessToken) {\n config.headers['Authorization'] = `Bearer ${accessToken}`;\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', 'ScreenId');\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) {\n return new Promise((resolve, reject) => {\n axiosQueue.push({ resolve, reject, config });\n }).then(() => config);\n }\n\n return config;\n },\n (error) => {\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 return Promise.reject(response);\n }\n\n return response;\n },\n async (error: AxiosError) => {\n /** 디버깅용 로그 */\n await addErrorLog(error);\n\n const originalRequest = error.config;\n const debugRefreshQueueOff = config.headers?.['Debug-Refresh-Queue-Off'] === 'true';\n /**\n * 401에러 Queue처리\n */\n if (error.response?.status === 401 && !debugRefreshQueueOff) {\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 this.api(p.config)\n .then((response) => p.resolve(response))\n .catch((err) => p.reject(err));\n }\n }\n })\n .catch((error) => {\n /**\n * 토큰 재발행중 에러 발생한 경우 처리\n * @todo 로그인페이지 이동(?)\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 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 { isDspWebview } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../axios/http-client-axios';\nimport { cookieClient } from '../cookie/cookie-client';\n\nexport class AuthClient {\n /**\n * App인지 확인\n * @returns boolean\n */\n isApp() {\n return isDspWebview();\n }\n\n /**\n *\n * @returns Promise<string | undefined>\n */\n async getAT(): Promise<string | undefined> {\n const debugMode = cookieClient.getCookie('dsp-debug-mode') === 'on';\n\n /**\n * debugMode 경우 cookie에서 'AT' 를 읽어온다.\n */\n if (debugMode) {\n console.log('debugMode token setting!');\n\n return cookieClient.getCookie('accessToken');\n }\n\n if (this.isApp()) {\n return (await Bridge.native.getAccessToken()).accessToken;\n } else {\n /**\n * pc인 경우는, middleware.ts 에서 요청헤더에 주입\n */\n }\n }\n\n /**\n * RT를 이용하여 신규 AT/RT발행\n * 기존토큰은 무효화처리\n * 쿠키에 저장.\n * @returns Promise<string> 액세스토큰\n */\n async refreshToken(): Promise<string> {\n if (this.isApp()) {\n /**\n * @todo : 브릿지 함수 호출 스펙에 맞게 수정필요\n */\n // @ts-ignore\n //return await bridge.callToNative('', '', 'refreshToken', {});\n return '';\n } else {\n /**\n * @todo : 내부api호출\n */\n const httpclient = new HttpClientAxios({});\n const res = await httpclient.api.get('/internal/api/auth/refresh');\n\n return res?.data.accessToken;\n }\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { AddressListRequestDto, DspResponseAddressListResponseDto } from './address-search.dto';\n\nexport const getAddressListMethod = async (params: AddressListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/dis/v1/get/codes/address-list';\n const httpClient = new HttpClientAxios(config);\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 { AddressListRequestDto, DspResponseAddressListResponseDto } from './address-search.dto';\nimport { getAddressListMethod } from './address-search.service';\n\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { AddressPostalCodeRequestDto, DspResponseAddressPostalCodeResponseDto } from './postal-code.dto';\n\nexport const getAddressPostalCodeMethod = async (params: AddressPostalCodeRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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 { AddressPostalCodeRequestDto, DspResponseAddressPostalCodeResponseDto } from './postal-code.dto';\nimport { getAddressPostalCodeMethod } from './postal-code.service';\n\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport {\n AddressStandardizationListRequestDto,\n DspResponseAddressStandardizationListResponseDto\n} from './address-standardization.dto';\n\nexport const getAddressStandardizationListMethod = async (\n params: AddressStandardizationListRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = '/api/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 {\n AddressStandardizationListRequestDto,\n DspResponseAddressStandardizationListResponseDto\n} from './address-standardization.dto';\nimport { getAddressStandardizationListMethod } from './address-standardization.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport {\n DspResponseOccupationDetailResponseDto,\n DspResponseOccupationListResponseDto,\n OccupationDetailRequestDto,\n OccupationListRequestDto\n} from './occupation-search.dto';\n\nexport const getOccupationListMethod = async (params: OccupationListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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\nexport const getOccupationDetailMethod = async (params: OccupationDetailRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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 {\n DspResponseOccupationDetailResponseDto,\n DspResponseOccupationListResponseDto,\n OccupationDetailRequestDto,\n OccupationListRequestDto\n} from './occupation-search.dto';\nimport { getOccupationDetailMethod, getOccupationListMethod } from './occupation-search.service';\n\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\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: [JSON.stringify(params)],\n queryFn: () => {\n return getOccupationListMethod(params, config);\n },\n ...options\n });\n};\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: [JSON.stringify(params)],\n queryFn: () => {\n return getOccupationDetailMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseVehicleTypeListResponseDto } from './vehicle-search.dto';\n\nexport const getVehicleListMethod = async (config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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 { DspResponseVehicleTypeListResponseDto } from './vehicle-search.dto';\nimport { getVehicleListMethod } from './vehicle-search.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseEmployeeProfileResponseDto, EmployeeProfileSearchRequestDto } from './employee-search.dto';\n\nexport const getEmployeeProfileListMethod = async (\n params: EmployeeProfileSearchRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = '/api/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 {\n DspResponseEmployeeProfileResponseDto,\n EmployeeProfileSearchRequestDto,\n} from './employee-search.dto';\nimport { getEmployeeProfileListMethod } from './employee-search.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseOrganizationProfileResponse, OrganizationSearchRequestDto } from './organization-search.dto';\n\nexport const getOrganizationProfileListMethod = async (\n params: OrganizationSearchRequestDto,\n config?: AxiosRequestConfig\n) => {\n ///v1/get/participant/profile/organization\n const apiUrl = '/api/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 {\n DspResponseOrganizationProfileResponse,\n OrganizationSearchRequestDto,\n} from './organization-search.dto';\nimport { getOrganizationProfileListMethod } from './organization-search.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseNationalityListResponseDto, NationalitySearchRequestDto } from './nationality-search.dto';\n\nexport const getNationalityListMethod = async (params: NationalitySearchRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/dis/v1/get/codes/nationality-list';\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 { DspResponseNationalityListResponseDto, NationalitySearchRequestDto } from './nationality-search.dto';\nimport { getNationalityListMethod } from './nationality-search.service';\n\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { CustomerListRequestDto, DspResponseCustomerListResponseDto } from './customer-list-search.dto';\n\nexport const getCustomerListMethod = async (params: CustomerListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/dis/v1/get/customer-list';\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 { HttpClientAxios } from '../../client';\n\nimport { FpLoginResponseDto } from './login-dsp.dto';\n\n/**\n * @param userId 사번\n */\nexport const postLoginMethod = async (userId: number) => {\n console.log('userId', userId);\n const apiUrl = '/api/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 { HttpClientAxios } from '../../client';\n\nimport type { ApiConfig } from '../shared.dto';\nimport type {\n RemoteIdentityVerificationSystemTokenRequestDto,\n DspResponseRemoteIdentityVerificationSystemTokenResponseDto,\n RemoteIdentityVerificationSystemIdentificationCardRequestDto,\n RemoteIdentityVerificationSystemIdentificationCardResponseDto\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 baseURL = axiosConfig?.baseURL ?? '/dea/api/dea';\n const requestUrl = axiosConfig?.url ?? '/v1/post/participant/remote-identity-verification-system/token';\n\n const response = await new HttpClientAxios({\n baseURL,\n ...axiosConfig\n }).api.post<DspResponseRemoteIdentityVerificationSystemTokenResponseDto>(requestUrl, 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 baseURL = axiosConfig?.baseURL ?? '/dea/api/dea';\n const requestUrl =\n axiosConfig?.url ?? '/v1/post/participant/remote-identity-verification-system/identification-card/confirm';\n\n const response = await new HttpClientAxios({\n baseURL,\n ...axiosConfig\n }).api.post<RemoteIdentityVerificationSystemIdentificationCardResponseDto>(requestUrl, params);\n\n return response.data;\n};\n"]}
|
package/dist/method.d.cts
CHANGED
|
@@ -63,7 +63,7 @@ type CustomSuspenseOptions<QueryFnReturnType, SelectReturnType = QueryFnReturnTy
|
|
|
63
63
|
* MutationFnReturnType 뮤테이션 함수 실행 성공시, 반환하는 데이터 타입
|
|
64
64
|
*/
|
|
65
65
|
type CustomMutationOptions<MutationFnReturnType, TVariables = void, TContext = unknown> = Omit<UseMutationOptions<MutationFnReturnType, AxiosError, TVariables, TContext>, 'mutationFn'>;
|
|
66
|
-
interface Pagination {
|
|
66
|
+
interface Pagination$1 {
|
|
67
67
|
/**
|
|
68
68
|
* Format: int32
|
|
69
69
|
* @description 현재 페이지 번호
|
|
@@ -131,7 +131,7 @@ interface DspResponseAddressListResponseDto {
|
|
|
131
131
|
/** @description 메시지 */
|
|
132
132
|
message: string;
|
|
133
133
|
data: AddressListResponseDto;
|
|
134
|
-
pagination: Pagination;
|
|
134
|
+
pagination: Pagination$1;
|
|
135
135
|
}
|
|
136
136
|
interface AddressListResponseDto {
|
|
137
137
|
/** @description 주소 목록 */
|
|
@@ -191,7 +191,7 @@ interface DspResponseAddressPostalCodeResponseDto {
|
|
|
191
191
|
/** @description 메시지 */
|
|
192
192
|
message: string;
|
|
193
193
|
data: AddressPostalCodeResponseDto;
|
|
194
|
-
pagination: Pagination;
|
|
194
|
+
pagination: Pagination$1;
|
|
195
195
|
}
|
|
196
196
|
interface AddressPostalCodeResponseDto {
|
|
197
197
|
/** @description 우편번호 리스트 */
|
|
@@ -263,7 +263,7 @@ interface DspResponseAddressStandardizationListResponseDto {
|
|
|
263
263
|
/** @description 메시지 */
|
|
264
264
|
message: string;
|
|
265
265
|
data: AddressStandardizationListResponseDto;
|
|
266
|
-
pagination: Pagination;
|
|
266
|
+
pagination: Pagination$1;
|
|
267
267
|
}
|
|
268
268
|
interface AddressStandardizationListResponseDto {
|
|
269
269
|
/** @description 주소 목록 */
|
|
@@ -322,7 +322,7 @@ interface DspResponseOccupationListResponseDto {
|
|
|
322
322
|
/** @description 직종 목록 */
|
|
323
323
|
data: OccupationListResponseDto;
|
|
324
324
|
/** 페이징 */
|
|
325
|
-
pagination?: Pagination;
|
|
325
|
+
pagination?: Pagination$1;
|
|
326
326
|
}
|
|
327
327
|
/** @description 직종 목록 */
|
|
328
328
|
interface OccupationListResponseDto {
|
|
@@ -368,7 +368,7 @@ interface DspResponseOccupationDetailResponseDto {
|
|
|
368
368
|
/** @description 메시지 */
|
|
369
369
|
message?: string;
|
|
370
370
|
data?: OccupationDetailResponseDto;
|
|
371
|
-
pagination?: Pagination;
|
|
371
|
+
pagination?: Pagination$1;
|
|
372
372
|
}
|
|
373
373
|
/**
|
|
374
374
|
* 직종 상세
|
|
@@ -408,7 +408,7 @@ interface DspResponseVehicleTypeListResponseDto {
|
|
|
408
408
|
/** @description 메시지 */
|
|
409
409
|
message?: string;
|
|
410
410
|
data?: VehicleTypeListResponseDto;
|
|
411
|
-
pagination?: Pagination;
|
|
411
|
+
pagination?: Pagination$1;
|
|
412
412
|
}
|
|
413
413
|
interface VehicleTypeListResponseDto {
|
|
414
414
|
/** @description 운전차종 목록 */
|
|
@@ -446,7 +446,7 @@ interface DspResponseEmployeeProfileResponseDto {
|
|
|
446
446
|
code: string;
|
|
447
447
|
message: string;
|
|
448
448
|
data: EmployeeProfileResponseDto[];
|
|
449
|
-
pagination?: Pagination;
|
|
449
|
+
pagination?: Pagination$1;
|
|
450
450
|
}
|
|
451
451
|
/**
|
|
452
452
|
* @description 사원구분
|
|
@@ -494,7 +494,7 @@ interface DspResponseListEmployeeProfileResponseDto {
|
|
|
494
494
|
/**
|
|
495
495
|
* @description 페이지네이션
|
|
496
496
|
*/
|
|
497
|
-
pagination?: Pagination;
|
|
497
|
+
pagination?: Pagination$1;
|
|
498
498
|
}
|
|
499
499
|
/**
|
|
500
500
|
* @description 사원 검색 응답
|
|
@@ -539,7 +539,7 @@ interface DspResponseOrganizationProfileResponse {
|
|
|
539
539
|
code: string;
|
|
540
540
|
message: string;
|
|
541
541
|
data: OrganizationProfileResponse[];
|
|
542
|
-
pagination?: Pagination;
|
|
542
|
+
pagination?: Pagination$1;
|
|
543
543
|
}
|
|
544
544
|
/**
|
|
545
545
|
* @description 기관 검색 요청
|
|
@@ -576,7 +576,7 @@ interface DspResponseListOrganizationProfileResponse {
|
|
|
576
576
|
/**
|
|
577
577
|
* @description 페이지네이션
|
|
578
578
|
*/
|
|
579
|
-
pagination?: Pagination;
|
|
579
|
+
pagination?: Pagination$1;
|
|
580
580
|
}
|
|
581
581
|
/**
|
|
582
582
|
* @description 기관 검색 응답
|
|
@@ -612,7 +612,7 @@ interface DspResponseNationalityListResponseDto {
|
|
|
612
612
|
/** @description 메시지 */
|
|
613
613
|
message: string;
|
|
614
614
|
data: NationalityListResponseDto;
|
|
615
|
-
pagination: Pagination;
|
|
615
|
+
pagination: Pagination$1;
|
|
616
616
|
}
|
|
617
617
|
/**
|
|
618
618
|
* 국적 검색 data
|
|
@@ -647,7 +647,7 @@ interface DspResponseCustomerListResponseDto {
|
|
|
647
647
|
/** @description 메시지 */
|
|
648
648
|
message?: string;
|
|
649
649
|
data?: CustomerListResponseDto;
|
|
650
|
-
pagination?: Pagination;
|
|
650
|
+
pagination?: Pagination$1;
|
|
651
651
|
}
|
|
652
652
|
interface CustomerListResponseDto {
|
|
653
653
|
/** @description 고객목록 */
|
|
@@ -711,4 +711,174 @@ interface FpLoginResponseDto {
|
|
|
711
711
|
*/
|
|
712
712
|
declare const postLoginMethod: (userId: number) => Promise<FpLoginResponseDto>;
|
|
713
713
|
|
|
714
|
-
|
|
714
|
+
interface DspResponse<T> {
|
|
715
|
+
/** 성공여부 */
|
|
716
|
+
isSuccess: boolean;
|
|
717
|
+
/** 코드 */
|
|
718
|
+
code: string;
|
|
719
|
+
/** 메시지 */
|
|
720
|
+
message: string;
|
|
721
|
+
/** 데이터 */
|
|
722
|
+
data: T;
|
|
723
|
+
pagination?: Pagination;
|
|
724
|
+
}
|
|
725
|
+
/** 페이징 정보 */
|
|
726
|
+
interface Pagination {
|
|
727
|
+
/** 전체 항목 수 */
|
|
728
|
+
totalCount: number;
|
|
729
|
+
/** 현재 페이지 */
|
|
730
|
+
page: number;
|
|
731
|
+
/** 페이지당 항목 수 */
|
|
732
|
+
size: number;
|
|
733
|
+
}
|
|
734
|
+
type ApiConfig = AxiosRequestConfig & {
|
|
735
|
+
url: string;
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* 비대면 인증 시스템 토큰 발급 요청 DTO
|
|
740
|
+
*/
|
|
741
|
+
interface RemoteIdentityVerificationSystemTokenRequestDto {
|
|
742
|
+
/**
|
|
743
|
+
* 업무구분코드
|
|
744
|
+
* @required
|
|
745
|
+
* @maxLength 3
|
|
746
|
+
* @example 'DEA'
|
|
747
|
+
*/
|
|
748
|
+
bswrDvsnCode: string;
|
|
749
|
+
/**
|
|
750
|
+
* 고객ID
|
|
751
|
+
* @required
|
|
752
|
+
* @maxLength 20
|
|
753
|
+
*/
|
|
754
|
+
rivsCustIdnrId: string;
|
|
755
|
+
/**
|
|
756
|
+
* 증번
|
|
757
|
+
* @maxLength 10
|
|
758
|
+
*/
|
|
759
|
+
rivsImgeIdnrId?: string;
|
|
760
|
+
/**
|
|
761
|
+
* 요청부서코드
|
|
762
|
+
* @maxLength 10
|
|
763
|
+
* @example '00373'
|
|
764
|
+
*/
|
|
765
|
+
rqstDeptCode?: string;
|
|
766
|
+
/**
|
|
767
|
+
* 요청사원번호
|
|
768
|
+
* @maxLength 10
|
|
769
|
+
* @example '1484752'
|
|
770
|
+
*/
|
|
771
|
+
rqstEmnb?: string;
|
|
772
|
+
/**
|
|
773
|
+
* 채널리다이렉트주소
|
|
774
|
+
* @maxLength 50
|
|
775
|
+
* @example 'https://fmw.hanwhalife.com'
|
|
776
|
+
*/
|
|
777
|
+
chnlRedrctAddr?: string;
|
|
778
|
+
/**
|
|
779
|
+
* API방식ID
|
|
780
|
+
* @required
|
|
781
|
+
* @maxLength 10
|
|
782
|
+
* @example 'WEBVIEW'
|
|
783
|
+
*/
|
|
784
|
+
rivsApiMthoId: string;
|
|
785
|
+
/**
|
|
786
|
+
* 서식코드
|
|
787
|
+
* @maxLength 10
|
|
788
|
+
* @example 'NC202001' (일반) / 'NC020048' (외국인등록증)
|
|
789
|
+
*/
|
|
790
|
+
rivsDcfmCode?: string;
|
|
791
|
+
/**
|
|
792
|
+
* 문서유형코드
|
|
793
|
+
* @maxLength 10
|
|
794
|
+
* @example 'IT148' (일반) / 'IT321' (외국인등록증)
|
|
795
|
+
*/
|
|
796
|
+
rivsDcmtTypeCode?: string;
|
|
797
|
+
/**
|
|
798
|
+
* 대면비대면여부
|
|
799
|
+
* @required
|
|
800
|
+
* @maxLength 10
|
|
801
|
+
* @example '11' (비대면)
|
|
802
|
+
*/
|
|
803
|
+
faceDvsnCode: string;
|
|
804
|
+
}
|
|
805
|
+
interface RemoteIdentityVerificationSystemTokenResponseDto {
|
|
806
|
+
/** 인증토큰값 */
|
|
807
|
+
accessToken: string;
|
|
808
|
+
/** 비대면인증시스템요청ID */
|
|
809
|
+
remoteIdentityVerificationSystemRequestId: string;
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* 비대면 인증 시스템 토큰 발급 응답 DTO
|
|
813
|
+
*/
|
|
814
|
+
interface DspResponseRemoteIdentityVerificationSystemTokenResponseDto extends DspResponse<RemoteIdentityVerificationSystemTokenResponseDto> {
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* 비대면 인증 시스템 신분증 진위확인 요청 DTO
|
|
818
|
+
*/
|
|
819
|
+
interface RemoteIdentityVerificationSystemIdentificationCardRequestDto {
|
|
820
|
+
/**
|
|
821
|
+
* 비대면인증시스템요청ID
|
|
822
|
+
* @required
|
|
823
|
+
* @maxLength 20
|
|
824
|
+
*/
|
|
825
|
+
rivsRqstId: string;
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* 비대면 인증 시스템 신분증 진위 확인 응답 DTO
|
|
829
|
+
*/
|
|
830
|
+
interface RemoteIdentityVerificationSystemIdentificationCardResponseDto {
|
|
831
|
+
/** 금융결제원성공여부 */
|
|
832
|
+
kftcAppSucsYn?: string;
|
|
833
|
+
/** 금융결제원결과코드 */
|
|
834
|
+
kftcAppRsltCode?: string;
|
|
835
|
+
/** 금융결제원결과메시지내용 */
|
|
836
|
+
kftcAppRsltMsgeCntn?: string;
|
|
837
|
+
/** 고객식별자ID */
|
|
838
|
+
rivsCustIdnrId?: string;
|
|
839
|
+
/** 파일ID */
|
|
840
|
+
fileId?: string;
|
|
841
|
+
/** 이미지식별자ID */
|
|
842
|
+
rivsImgeIdnrId?: string;
|
|
843
|
+
/** 신분증종류구분코드 */
|
|
844
|
+
rivsIdcdKindDvsnCode?: string;
|
|
845
|
+
/** 주민등록번호 */
|
|
846
|
+
residentNumber?: string;
|
|
847
|
+
/** 운전면허번호 */
|
|
848
|
+
drivingLicenseNumber?: string;
|
|
849
|
+
/** 발급일자 */
|
|
850
|
+
issuanceDate?: string;
|
|
851
|
+
/** 고객명 */
|
|
852
|
+
customerName?: string;
|
|
853
|
+
/** 발급기관 */
|
|
854
|
+
issuanceOrganization?: string;
|
|
855
|
+
/** 거래고유번호 */
|
|
856
|
+
transactionUniqueNumber?: string;
|
|
857
|
+
/** 안면인식사용여부 */
|
|
858
|
+
faceRecoUseYn?: string;
|
|
859
|
+
/** 안면인식성공여부 */
|
|
860
|
+
faceRecoSucsYn?: string;
|
|
861
|
+
/** 비대면인증성공여부 */
|
|
862
|
+
rivSucsYn?: string;
|
|
863
|
+
/** 신분증크롭이미지Base64 */
|
|
864
|
+
idcdImge?: string;
|
|
865
|
+
/** 신분증뒷면이미지Base64 */
|
|
866
|
+
idcdBackImge?: string;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* 토큰 발급 API
|
|
871
|
+
* @param params
|
|
872
|
+
* @param axiosConfig
|
|
873
|
+
* @returns
|
|
874
|
+
*/
|
|
875
|
+
declare const getRemoteIdentityVerificationSystemToken: (params: RemoteIdentityVerificationSystemTokenRequestDto, axiosConfig?: ApiConfig) => Promise<DspResponseRemoteIdentityVerificationSystemTokenResponseDto>;
|
|
876
|
+
/**
|
|
877
|
+
* 비대면 인증 시스템 신분증 진위확인 API
|
|
878
|
+
* @param params 진위확인 요청 파라미터
|
|
879
|
+
* @param axiosConfig API 설정
|
|
880
|
+
* @returns 신분증 진위확인 응답 데이터
|
|
881
|
+
*/
|
|
882
|
+
declare const confirmRemoteIdentityVerificationSystemIdentificationCard: (params: RemoteIdentityVerificationSystemIdentificationCardRequestDto, axiosConfig?: ApiConfig) => Promise<RemoteIdentityVerificationSystemIdentificationCardResponseDto>;
|
|
883
|
+
|
|
884
|
+
export { type AddressListRequestDto, type AddressListResponseDto, type AddressPostalCodeDto, type AddressPostalCodeRequestDto, type AddressPostalCodeResponseDto, type AddressResponseDto, type AddressStandardizationListRequestDto, type AddressStandardizationListResponseDto, type AddressStandardizationResponseDto, type ApiConfig, type CustomMutationOptions, type CustomQueryOptions, type CustomSuspenseOptions, type CustomerDto, type CustomerListRequestDto, type CustomerListResponseDto, type CustomerSearchProps, type DspResponse, type DspResponseAddressListResponseDto, type DspResponseAddressPostalCodeResponseDto, type DspResponseAddressStandardizationListResponseDto, type DspResponseCustomerListResponseDto, type DspResponseEmployeeProfileResponseDto, type DspResponseListEmployeeProfileResponseDto, type DspResponseListOrganizationProfileResponse, type DspResponseNationalityListResponseDto, type DspResponseOccupationDetailResponseDto, type DspResponseOccupationListResponseDto, type DspResponseOrganizationProfileResponse, type DspResponseRemoteIdentityVerificationSystemTokenResponseDto, type DspResponseVehicleTypeListResponseDto, type EmployeeDivisionCodeType, type EmployeeProfileRequestDto, type EmployeeProfileResponseDto, type EmployeeProfileSearchRequestDto, type FpLoginData, type FpLoginResponseDto, type NationalityListResponseDto, type NationalityResponseDto, type NationalitySearchRequestDto, type OccupationDetailRequestDto, type OccupationDetailResponseDto, type OccupationListRequestDto, type OccupationListResponseDto, type OccupationResponseDto, type OrganizationProfileRequest, type OrganizationProfileResponse, type OrganizationSearchRequestDto, type Pagination$1 as Pagination, type RemoteIdentityVerificationSystemIdentificationCardRequestDto, type RemoteIdentityVerificationSystemIdentificationCardResponseDto, type RemoteIdentityVerificationSystemTokenRequestDto, type RemoteIdentityVerificationSystemTokenResponseDto, type TenureOfOfficeDivisionCodeType, type TestResponse, type VehicleTypeListResponseDto, type VehicleTypeResponseDto, confirmRemoteIdentityVerificationSystemIdentificationCard, getAddressListMethod, getAddressPostalCodeMethod, getAddressStandardizationListMethod, getCustomerListMethod, getEmployeeProfileListMethod, getNationalityListMethod, getOccupationDetailMethod, getOccupationListMethod, getOrganizationProfileListMethod, getRemoteIdentityVerificationSystemToken, getTestMethod, getVehicleListMethod, postLoginMethod, useSearchAddressQuery, useSearchAddressStandardizationQuery, useSearchCustomerListQuery, useSearchEmployeeProfileQuery, useSearchNationalityQuery, useSearchOccupationDetailQuery, useSearchOccupationQuery, useSearchOrganizationQuery, useSearchPostalCodeQuery, useSearchVehicleQuery };
|
package/dist/method.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ type CustomSuspenseOptions<QueryFnReturnType, SelectReturnType = QueryFnReturnTy
|
|
|
63
63
|
* MutationFnReturnType 뮤테이션 함수 실행 성공시, 반환하는 데이터 타입
|
|
64
64
|
*/
|
|
65
65
|
type CustomMutationOptions<MutationFnReturnType, TVariables = void, TContext = unknown> = Omit<UseMutationOptions<MutationFnReturnType, AxiosError, TVariables, TContext>, 'mutationFn'>;
|
|
66
|
-
interface Pagination {
|
|
66
|
+
interface Pagination$1 {
|
|
67
67
|
/**
|
|
68
68
|
* Format: int32
|
|
69
69
|
* @description 현재 페이지 번호
|
|
@@ -131,7 +131,7 @@ interface DspResponseAddressListResponseDto {
|
|
|
131
131
|
/** @description 메시지 */
|
|
132
132
|
message: string;
|
|
133
133
|
data: AddressListResponseDto;
|
|
134
|
-
pagination: Pagination;
|
|
134
|
+
pagination: Pagination$1;
|
|
135
135
|
}
|
|
136
136
|
interface AddressListResponseDto {
|
|
137
137
|
/** @description 주소 목록 */
|
|
@@ -191,7 +191,7 @@ interface DspResponseAddressPostalCodeResponseDto {
|
|
|
191
191
|
/** @description 메시지 */
|
|
192
192
|
message: string;
|
|
193
193
|
data: AddressPostalCodeResponseDto;
|
|
194
|
-
pagination: Pagination;
|
|
194
|
+
pagination: Pagination$1;
|
|
195
195
|
}
|
|
196
196
|
interface AddressPostalCodeResponseDto {
|
|
197
197
|
/** @description 우편번호 리스트 */
|
|
@@ -263,7 +263,7 @@ interface DspResponseAddressStandardizationListResponseDto {
|
|
|
263
263
|
/** @description 메시지 */
|
|
264
264
|
message: string;
|
|
265
265
|
data: AddressStandardizationListResponseDto;
|
|
266
|
-
pagination: Pagination;
|
|
266
|
+
pagination: Pagination$1;
|
|
267
267
|
}
|
|
268
268
|
interface AddressStandardizationListResponseDto {
|
|
269
269
|
/** @description 주소 목록 */
|
|
@@ -322,7 +322,7 @@ interface DspResponseOccupationListResponseDto {
|
|
|
322
322
|
/** @description 직종 목록 */
|
|
323
323
|
data: OccupationListResponseDto;
|
|
324
324
|
/** 페이징 */
|
|
325
|
-
pagination?: Pagination;
|
|
325
|
+
pagination?: Pagination$1;
|
|
326
326
|
}
|
|
327
327
|
/** @description 직종 목록 */
|
|
328
328
|
interface OccupationListResponseDto {
|
|
@@ -368,7 +368,7 @@ interface DspResponseOccupationDetailResponseDto {
|
|
|
368
368
|
/** @description 메시지 */
|
|
369
369
|
message?: string;
|
|
370
370
|
data?: OccupationDetailResponseDto;
|
|
371
|
-
pagination?: Pagination;
|
|
371
|
+
pagination?: Pagination$1;
|
|
372
372
|
}
|
|
373
373
|
/**
|
|
374
374
|
* 직종 상세
|
|
@@ -408,7 +408,7 @@ interface DspResponseVehicleTypeListResponseDto {
|
|
|
408
408
|
/** @description 메시지 */
|
|
409
409
|
message?: string;
|
|
410
410
|
data?: VehicleTypeListResponseDto;
|
|
411
|
-
pagination?: Pagination;
|
|
411
|
+
pagination?: Pagination$1;
|
|
412
412
|
}
|
|
413
413
|
interface VehicleTypeListResponseDto {
|
|
414
414
|
/** @description 운전차종 목록 */
|
|
@@ -446,7 +446,7 @@ interface DspResponseEmployeeProfileResponseDto {
|
|
|
446
446
|
code: string;
|
|
447
447
|
message: string;
|
|
448
448
|
data: EmployeeProfileResponseDto[];
|
|
449
|
-
pagination?: Pagination;
|
|
449
|
+
pagination?: Pagination$1;
|
|
450
450
|
}
|
|
451
451
|
/**
|
|
452
452
|
* @description 사원구분
|
|
@@ -494,7 +494,7 @@ interface DspResponseListEmployeeProfileResponseDto {
|
|
|
494
494
|
/**
|
|
495
495
|
* @description 페이지네이션
|
|
496
496
|
*/
|
|
497
|
-
pagination?: Pagination;
|
|
497
|
+
pagination?: Pagination$1;
|
|
498
498
|
}
|
|
499
499
|
/**
|
|
500
500
|
* @description 사원 검색 응답
|
|
@@ -539,7 +539,7 @@ interface DspResponseOrganizationProfileResponse {
|
|
|
539
539
|
code: string;
|
|
540
540
|
message: string;
|
|
541
541
|
data: OrganizationProfileResponse[];
|
|
542
|
-
pagination?: Pagination;
|
|
542
|
+
pagination?: Pagination$1;
|
|
543
543
|
}
|
|
544
544
|
/**
|
|
545
545
|
* @description 기관 검색 요청
|
|
@@ -576,7 +576,7 @@ interface DspResponseListOrganizationProfileResponse {
|
|
|
576
576
|
/**
|
|
577
577
|
* @description 페이지네이션
|
|
578
578
|
*/
|
|
579
|
-
pagination?: Pagination;
|
|
579
|
+
pagination?: Pagination$1;
|
|
580
580
|
}
|
|
581
581
|
/**
|
|
582
582
|
* @description 기관 검색 응답
|
|
@@ -612,7 +612,7 @@ interface DspResponseNationalityListResponseDto {
|
|
|
612
612
|
/** @description 메시지 */
|
|
613
613
|
message: string;
|
|
614
614
|
data: NationalityListResponseDto;
|
|
615
|
-
pagination: Pagination;
|
|
615
|
+
pagination: Pagination$1;
|
|
616
616
|
}
|
|
617
617
|
/**
|
|
618
618
|
* 국적 검색 data
|
|
@@ -647,7 +647,7 @@ interface DspResponseCustomerListResponseDto {
|
|
|
647
647
|
/** @description 메시지 */
|
|
648
648
|
message?: string;
|
|
649
649
|
data?: CustomerListResponseDto;
|
|
650
|
-
pagination?: Pagination;
|
|
650
|
+
pagination?: Pagination$1;
|
|
651
651
|
}
|
|
652
652
|
interface CustomerListResponseDto {
|
|
653
653
|
/** @description 고객목록 */
|
|
@@ -711,4 +711,174 @@ interface FpLoginResponseDto {
|
|
|
711
711
|
*/
|
|
712
712
|
declare const postLoginMethod: (userId: number) => Promise<FpLoginResponseDto>;
|
|
713
713
|
|
|
714
|
-
|
|
714
|
+
interface DspResponse<T> {
|
|
715
|
+
/** 성공여부 */
|
|
716
|
+
isSuccess: boolean;
|
|
717
|
+
/** 코드 */
|
|
718
|
+
code: string;
|
|
719
|
+
/** 메시지 */
|
|
720
|
+
message: string;
|
|
721
|
+
/** 데이터 */
|
|
722
|
+
data: T;
|
|
723
|
+
pagination?: Pagination;
|
|
724
|
+
}
|
|
725
|
+
/** 페이징 정보 */
|
|
726
|
+
interface Pagination {
|
|
727
|
+
/** 전체 항목 수 */
|
|
728
|
+
totalCount: number;
|
|
729
|
+
/** 현재 페이지 */
|
|
730
|
+
page: number;
|
|
731
|
+
/** 페이지당 항목 수 */
|
|
732
|
+
size: number;
|
|
733
|
+
}
|
|
734
|
+
type ApiConfig = AxiosRequestConfig & {
|
|
735
|
+
url: string;
|
|
736
|
+
};
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* 비대면 인증 시스템 토큰 발급 요청 DTO
|
|
740
|
+
*/
|
|
741
|
+
interface RemoteIdentityVerificationSystemTokenRequestDto {
|
|
742
|
+
/**
|
|
743
|
+
* 업무구분코드
|
|
744
|
+
* @required
|
|
745
|
+
* @maxLength 3
|
|
746
|
+
* @example 'DEA'
|
|
747
|
+
*/
|
|
748
|
+
bswrDvsnCode: string;
|
|
749
|
+
/**
|
|
750
|
+
* 고객ID
|
|
751
|
+
* @required
|
|
752
|
+
* @maxLength 20
|
|
753
|
+
*/
|
|
754
|
+
rivsCustIdnrId: string;
|
|
755
|
+
/**
|
|
756
|
+
* 증번
|
|
757
|
+
* @maxLength 10
|
|
758
|
+
*/
|
|
759
|
+
rivsImgeIdnrId?: string;
|
|
760
|
+
/**
|
|
761
|
+
* 요청부서코드
|
|
762
|
+
* @maxLength 10
|
|
763
|
+
* @example '00373'
|
|
764
|
+
*/
|
|
765
|
+
rqstDeptCode?: string;
|
|
766
|
+
/**
|
|
767
|
+
* 요청사원번호
|
|
768
|
+
* @maxLength 10
|
|
769
|
+
* @example '1484752'
|
|
770
|
+
*/
|
|
771
|
+
rqstEmnb?: string;
|
|
772
|
+
/**
|
|
773
|
+
* 채널리다이렉트주소
|
|
774
|
+
* @maxLength 50
|
|
775
|
+
* @example 'https://fmw.hanwhalife.com'
|
|
776
|
+
*/
|
|
777
|
+
chnlRedrctAddr?: string;
|
|
778
|
+
/**
|
|
779
|
+
* API방식ID
|
|
780
|
+
* @required
|
|
781
|
+
* @maxLength 10
|
|
782
|
+
* @example 'WEBVIEW'
|
|
783
|
+
*/
|
|
784
|
+
rivsApiMthoId: string;
|
|
785
|
+
/**
|
|
786
|
+
* 서식코드
|
|
787
|
+
* @maxLength 10
|
|
788
|
+
* @example 'NC202001' (일반) / 'NC020048' (외국인등록증)
|
|
789
|
+
*/
|
|
790
|
+
rivsDcfmCode?: string;
|
|
791
|
+
/**
|
|
792
|
+
* 문서유형코드
|
|
793
|
+
* @maxLength 10
|
|
794
|
+
* @example 'IT148' (일반) / 'IT321' (외국인등록증)
|
|
795
|
+
*/
|
|
796
|
+
rivsDcmtTypeCode?: string;
|
|
797
|
+
/**
|
|
798
|
+
* 대면비대면여부
|
|
799
|
+
* @required
|
|
800
|
+
* @maxLength 10
|
|
801
|
+
* @example '11' (비대면)
|
|
802
|
+
*/
|
|
803
|
+
faceDvsnCode: string;
|
|
804
|
+
}
|
|
805
|
+
interface RemoteIdentityVerificationSystemTokenResponseDto {
|
|
806
|
+
/** 인증토큰값 */
|
|
807
|
+
accessToken: string;
|
|
808
|
+
/** 비대면인증시스템요청ID */
|
|
809
|
+
remoteIdentityVerificationSystemRequestId: string;
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* 비대면 인증 시스템 토큰 발급 응답 DTO
|
|
813
|
+
*/
|
|
814
|
+
interface DspResponseRemoteIdentityVerificationSystemTokenResponseDto extends DspResponse<RemoteIdentityVerificationSystemTokenResponseDto> {
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
* 비대면 인증 시스템 신분증 진위확인 요청 DTO
|
|
818
|
+
*/
|
|
819
|
+
interface RemoteIdentityVerificationSystemIdentificationCardRequestDto {
|
|
820
|
+
/**
|
|
821
|
+
* 비대면인증시스템요청ID
|
|
822
|
+
* @required
|
|
823
|
+
* @maxLength 20
|
|
824
|
+
*/
|
|
825
|
+
rivsRqstId: string;
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* 비대면 인증 시스템 신분증 진위 확인 응답 DTO
|
|
829
|
+
*/
|
|
830
|
+
interface RemoteIdentityVerificationSystemIdentificationCardResponseDto {
|
|
831
|
+
/** 금융결제원성공여부 */
|
|
832
|
+
kftcAppSucsYn?: string;
|
|
833
|
+
/** 금융결제원결과코드 */
|
|
834
|
+
kftcAppRsltCode?: string;
|
|
835
|
+
/** 금융결제원결과메시지내용 */
|
|
836
|
+
kftcAppRsltMsgeCntn?: string;
|
|
837
|
+
/** 고객식별자ID */
|
|
838
|
+
rivsCustIdnrId?: string;
|
|
839
|
+
/** 파일ID */
|
|
840
|
+
fileId?: string;
|
|
841
|
+
/** 이미지식별자ID */
|
|
842
|
+
rivsImgeIdnrId?: string;
|
|
843
|
+
/** 신분증종류구분코드 */
|
|
844
|
+
rivsIdcdKindDvsnCode?: string;
|
|
845
|
+
/** 주민등록번호 */
|
|
846
|
+
residentNumber?: string;
|
|
847
|
+
/** 운전면허번호 */
|
|
848
|
+
drivingLicenseNumber?: string;
|
|
849
|
+
/** 발급일자 */
|
|
850
|
+
issuanceDate?: string;
|
|
851
|
+
/** 고객명 */
|
|
852
|
+
customerName?: string;
|
|
853
|
+
/** 발급기관 */
|
|
854
|
+
issuanceOrganization?: string;
|
|
855
|
+
/** 거래고유번호 */
|
|
856
|
+
transactionUniqueNumber?: string;
|
|
857
|
+
/** 안면인식사용여부 */
|
|
858
|
+
faceRecoUseYn?: string;
|
|
859
|
+
/** 안면인식성공여부 */
|
|
860
|
+
faceRecoSucsYn?: string;
|
|
861
|
+
/** 비대면인증성공여부 */
|
|
862
|
+
rivSucsYn?: string;
|
|
863
|
+
/** 신분증크롭이미지Base64 */
|
|
864
|
+
idcdImge?: string;
|
|
865
|
+
/** 신분증뒷면이미지Base64 */
|
|
866
|
+
idcdBackImge?: string;
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* 토큰 발급 API
|
|
871
|
+
* @param params
|
|
872
|
+
* @param axiosConfig
|
|
873
|
+
* @returns
|
|
874
|
+
*/
|
|
875
|
+
declare const getRemoteIdentityVerificationSystemToken: (params: RemoteIdentityVerificationSystemTokenRequestDto, axiosConfig?: ApiConfig) => Promise<DspResponseRemoteIdentityVerificationSystemTokenResponseDto>;
|
|
876
|
+
/**
|
|
877
|
+
* 비대면 인증 시스템 신분증 진위확인 API
|
|
878
|
+
* @param params 진위확인 요청 파라미터
|
|
879
|
+
* @param axiosConfig API 설정
|
|
880
|
+
* @returns 신분증 진위확인 응답 데이터
|
|
881
|
+
*/
|
|
882
|
+
declare const confirmRemoteIdentityVerificationSystemIdentificationCard: (params: RemoteIdentityVerificationSystemIdentificationCardRequestDto, axiosConfig?: ApiConfig) => Promise<RemoteIdentityVerificationSystemIdentificationCardResponseDto>;
|
|
883
|
+
|
|
884
|
+
export { type AddressListRequestDto, type AddressListResponseDto, type AddressPostalCodeDto, type AddressPostalCodeRequestDto, type AddressPostalCodeResponseDto, type AddressResponseDto, type AddressStandardizationListRequestDto, type AddressStandardizationListResponseDto, type AddressStandardizationResponseDto, type ApiConfig, type CustomMutationOptions, type CustomQueryOptions, type CustomSuspenseOptions, type CustomerDto, type CustomerListRequestDto, type CustomerListResponseDto, type CustomerSearchProps, type DspResponse, type DspResponseAddressListResponseDto, type DspResponseAddressPostalCodeResponseDto, type DspResponseAddressStandardizationListResponseDto, type DspResponseCustomerListResponseDto, type DspResponseEmployeeProfileResponseDto, type DspResponseListEmployeeProfileResponseDto, type DspResponseListOrganizationProfileResponse, type DspResponseNationalityListResponseDto, type DspResponseOccupationDetailResponseDto, type DspResponseOccupationListResponseDto, type DspResponseOrganizationProfileResponse, type DspResponseRemoteIdentityVerificationSystemTokenResponseDto, type DspResponseVehicleTypeListResponseDto, type EmployeeDivisionCodeType, type EmployeeProfileRequestDto, type EmployeeProfileResponseDto, type EmployeeProfileSearchRequestDto, type FpLoginData, type FpLoginResponseDto, type NationalityListResponseDto, type NationalityResponseDto, type NationalitySearchRequestDto, type OccupationDetailRequestDto, type OccupationDetailResponseDto, type OccupationListRequestDto, type OccupationListResponseDto, type OccupationResponseDto, type OrganizationProfileRequest, type OrganizationProfileResponse, type OrganizationSearchRequestDto, type Pagination$1 as Pagination, type RemoteIdentityVerificationSystemIdentificationCardRequestDto, type RemoteIdentityVerificationSystemIdentificationCardResponseDto, type RemoteIdentityVerificationSystemTokenRequestDto, type RemoteIdentityVerificationSystemTokenResponseDto, type TenureOfOfficeDivisionCodeType, type TestResponse, type VehicleTypeListResponseDto, type VehicleTypeResponseDto, confirmRemoteIdentityVerificationSystemIdentificationCard, getAddressListMethod, getAddressPostalCodeMethod, getAddressStandardizationListMethod, getCustomerListMethod, getEmployeeProfileListMethod, getNationalityListMethod, getOccupationDetailMethod, getOccupationListMethod, getOrganizationProfileListMethod, getRemoteIdentityVerificationSystemToken, getTestMethod, getVehicleListMethod, postLoginMethod, useSearchAddressQuery, useSearchAddressStandardizationQuery, useSearchCustomerListQuery, useSearchEmployeeProfileQuery, useSearchNationalityQuery, useSearchOccupationDetailQuery, useSearchOccupationQuery, useSearchOrganizationQuery, useSearchPostalCodeQuery, useSearchVehicleQuery };
|
package/dist/method.js
CHANGED
|
@@ -478,6 +478,26 @@ var postLoginMethod = async (userId) => {
|
|
|
478
478
|
return res.data;
|
|
479
479
|
};
|
|
480
480
|
|
|
481
|
-
|
|
481
|
+
// src/http-methods/remote-identity-verification/remote-identity-verification.service.ts
|
|
482
|
+
var getRemoteIdentityVerificationSystemToken = async (params, axiosConfig) => {
|
|
483
|
+
const baseURL = axiosConfig?.baseURL ?? "/dea/api/dea";
|
|
484
|
+
const requestUrl = axiosConfig?.url ?? "/v1/post/participant/remote-identity-verification-system/token";
|
|
485
|
+
const response = await new HttpClientAxios({
|
|
486
|
+
baseURL,
|
|
487
|
+
...axiosConfig
|
|
488
|
+
}).api.post(requestUrl, params);
|
|
489
|
+
return response.data;
|
|
490
|
+
};
|
|
491
|
+
var confirmRemoteIdentityVerificationSystemIdentificationCard = async (params, axiosConfig) => {
|
|
492
|
+
const baseURL = axiosConfig?.baseURL ?? "/dea/api/dea";
|
|
493
|
+
const requestUrl = axiosConfig?.url ?? "/v1/post/participant/remote-identity-verification-system/identification-card/confirm";
|
|
494
|
+
const response = await new HttpClientAxios({
|
|
495
|
+
baseURL,
|
|
496
|
+
...axiosConfig
|
|
497
|
+
}).api.post(requestUrl, params);
|
|
498
|
+
return response.data;
|
|
499
|
+
};
|
|
500
|
+
|
|
501
|
+
export { confirmRemoteIdentityVerificationSystemIdentificationCard, getAddressListMethod, getAddressPostalCodeMethod, getAddressStandardizationListMethod, getCustomerListMethod, getEmployeeProfileListMethod, getNationalityListMethod, getOccupationDetailMethod, getOccupationListMethod, getOrganizationProfileListMethod, getRemoteIdentityVerificationSystemToken, getTestMethod, getVehicleListMethod, postLoginMethod, useSearchAddressQuery, useSearchAddressStandardizationQuery, useSearchCustomerListQuery, useSearchEmployeeProfileQuery, useSearchNationalityQuery, useSearchOccupationDetailQuery, useSearchOccupationQuery, useSearchOrganizationQuery, useSearchPostalCodeQuery, useSearchVehicleQuery };
|
|
482
502
|
//# sourceMappingURL=method.js.map
|
|
483
503
|
//# sourceMappingURL=method.js.map
|
package/dist/method.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/http-client/cookie/cookie-client.ts","../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/useSearchAddressQuery.ts","../src/http-methods/search-modal/address/postal-code.service.ts","../src/http-methods/search-modal/address/useSearchPostalCodeQuery.ts","../src/http-methods/search-modal/address/address-standardization.service.ts","../src/http-methods/search-modal/address/useSearchAddressStandardizationQuery.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/useSearchNationalityQuery.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/fp-login/login-dsp.service.ts"],"names":["config","error","useQuery"],"mappings":";;;;;;;;;;;AAGO,IAAM,YAAe,GAAA;AAAA,EAC1B,UAAU,IAAsB,EAAA;AAC9B,IAAI,IAAA,OAAO,aAAa,WAAa,EAAA;AACnC,MAAO,OAAA,EAAA;AAAA;AAET,IAAM,MAAA,KAAA,GAAQ,SAAS,MAAO,CAAA,KAAA,CAAM,IAAI,MAAO,CAAA,CAAA,OAAA,EAAU,IAAI,CAAA,QAAA,CAAU,CAAC,CAAA;AAExE,IAAA,OAAO,QAAQ,kBAAmB,CAAA,KAAA,CAAM,CAAC,CAAA,IAAK,EAAE,CAAI,GAAA,EAAA;AAAA,GACtD;AAAA,EAEA,SACE,CAAA,IAAA,EACA,KACA,EAAA,OAAA,GAKI,EACE,EAAA;AACN,IAAI,IAAA,OAAO,aAAa,WAAa,EAAA;AACnC,MAAA;AAAA;AAGF,IAAA,IAAI,eAAe,CAAG,EAAA,IAAI,CAAI,CAAA,EAAA,kBAAA,CAAmB,KAAK,CAAC,CAAA,CAAA;AAEvD,IAAA,IAAI,QAAQ,OAAS,EAAA;AACnB,MAAI,IAAA,WAAA;AACJ,MAAI,IAAA,OAAO,OAAQ,CAAA,OAAA,KAAY,QAAU,EAAA;AACvC,QAAA,WAAA,uBAAkB,IAAK,EAAA;AACvB,QAAA,WAAA,CAAY,OAAQ,CAAA,WAAA,CAAY,OAAQ,EAAA,GAAI,QAAQ,OAAO,CAAA;AAAA,OACtD,MAAA;AACL,QAAA,WAAA,GAAc,OAAQ,CAAA,OAAA;AAAA;AAExB,MAAgB,YAAA,IAAA,CAAA,UAAA,EAAa,WAAY,CAAA,WAAA,EAAa,CAAA,CAAA;AAAA;AAGxD,IAAgB,YAAA,IAAA,CAAA,OAAA,EAAU,OAAQ,CAAA,IAAA,IAAQ,GAAG,CAAA,CAAA;A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BAA2B,EAAA;AAAA;AAC7B,GACD,CAAA;AAED,EAAA,MAAM,GAAM,GAAA,MAAM,UAAW,CAAA,GAAA,CAAI,KAAyB,MAAQ,EAAA;AAAA,IAChE,MAAA;AAAA,IACA,WAAa,EAAA;AAAA,GACd,CAAA;AAED,EAAA,OAAO,GAAI,CAAA,IAAA;AACb","file":"method.js","sourcesContent":["/**\n * 클라이언트용 쿠키 함수\n */\nexport const cookieClient = {\n getCookie(name: string): string {\n if (typeof document === 'undefined') {\n return '';\n }\n const match = document.cookie.match(new RegExp(`(^|; *)${name}=([^;]*)`));\n\n return match ? decodeURIComponent(match[2] || '') : '';\n },\n\n setCookie(\n name: string,\n value: string,\n options: {\n expires?: number | Date; // number of days\n path?: string;\n domain?: string;\n secure?: boolean;\n } = {}\n ): void {\n if (typeof document === 'undefined') {\n return;\n }\n\n let cookieString = `${name}=${encodeURIComponent(value)}`;\n\n if (options.expires) {\n let expiresDate: Date;\n if (typeof options.expires === 'number') {\n expiresDate = new Date();\n expiresDate.setDate(expiresDate.getDate() + options.expires);\n } else {\n expiresDate = options.expires;\n }\n cookieString += `; expires=${expiresDate.toUTCString()}`;\n }\n\n cookieString += `; path=${options.path || '/'}`;\n\n if (options.domain) {\n cookieString += `; domain=${options.domain}`;\n }\n\n if (options.secure) {\n cookieString += '; secure';\n }\n\n document.cookie = cookieString;\n },\n deleteCookie(name: string, options: { path?: string; domain?: string } = {}): void {\n cookieClient.setCookie(name, '', { ...options, expires: -1 });\n }\n};\n","/**\n * @see https://loop.cloud.microsoft/p/eyJ3Ijp7InUiOiJodHRwczovL2hhbndoYWxpZmVtMzY1LnNoYXJlcG9pbnQuY29tLz9uYXY9Y3owbE1rWW1aRDFpSVVVd1FXdDJSbGhSV0VWUE1tUkNYMWhUZW5KWVVFdFBSVXByYWs1b1NrSlBjRk4wYm5wNmNsWmpMVUZ5YjI1UlJWOVdSREpUV25aeWVUUTJTV2swUlZrbVpqMHdNVk5OVGtkR1JsTkJXVE0xVVZaQ1ZrRkVRa1ZaVEVoRVNUSTBXRXhVVlZoV0ptTTlKbVpzZFdsa1BURSUzRCIsInIiOmZhbHNlfSwicCI6eyJ1IjoiaHR0cHM6Ly9oYW53aGFsaWZlbTM2NS5zaGFyZXBvaW50LmNvbS9jb250ZW50c3RvcmFnZS9DU1BfYmMyNDQwMTMtZDA1NS00MzVjLWI2NzQtMWZkNzRiM2FkNzNjLyVFQiVBQyVCOCVFQyU4NCU5QyUyMCVFQiU5RCVCQyVFQyU5RCVCNCVFQiVCOCU4QyVFQiU5RiVBQyVFQiVBNiVBQy9Mb29wQXBwRGF0YS8wOS0yLiUyMEJyaWRnZSUyMFNwZWMlMjAxLmxvb3A%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 { addErrorLog, addRequestLog, addResponseLog } from 'sales-frontend-debug';\nimport { getEnvironmentFromHostname } from 'sales-frontend-utils';\n\nimport { AuthClient } from '../auth/auth-client';\nimport { cookieClient } from '../cookie/cookie-client';\nimport { HeaderManager } from '../header/header-manager';\n\nimport type { AxiosQueueType } from './types';\nimport type { AxiosError, AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';\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 = cookieClient.getCookie(key);\n if (!value) {\n value = defaultValue;\n cookieClient.setCookie(key, value, { path: '/' });\n }\n\n return value;\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 cookieClient.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: true,\n ...config\n });\n\n /**\n * 인터셉터 요청 처리\n */\n this.api.interceptors.request.use(\n async (config) => {\n const debugMode = cookieClient.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 accessToken = await authClient.getAT();\n console.log('accessToken', accessToken);\n if (accessToken) {\n config.headers['Authorization'] = `Bearer ${accessToken}`;\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', 'ScreenId');\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) {\n return new Promise((resolve, reject) => {\n axiosQueue.push({ resolve, reject, config });\n }).then(() => config);\n }\n\n return config;\n },\n (error) => {\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 return Promise.reject(response);\n }\n\n return response;\n },\n async (error: AxiosError) => {\n /** 디버깅용 로그 */\n await addErrorLog(error);\n\n const originalRequest = error.config;\n const debugRefreshQueueOff = config.headers?.['Debug-Refresh-Queue-Off'] === 'true';\n /**\n * 401에러 Queue처리\n */\n if (error.response?.status === 401 && !debugRefreshQueueOff) {\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 this.api(p.config)\n .then((response) => p.resolve(response))\n .catch((err) => p.reject(err));\n }\n }\n })\n .catch((error) => {\n /**\n * 토큰 재발행중 에러 발생한 경우 처리\n * @todo 로그인페이지 이동(?)\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 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 { isDspWebview } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../axios/http-client-axios';\nimport { cookieClient } from '../cookie/cookie-client';\n\nexport class AuthClient {\n /**\n * App인지 확인\n * @returns boolean\n */\n isApp() {\n return isDspWebview();\n }\n\n /**\n *\n * @returns Promise<string | undefined>\n */\n async getAT(): Promise<string | undefined> {\n const debugMode = cookieClient.getCookie('dsp-debug-mode') === 'on';\n\n /**\n * debugMode 경우 cookie에서 'AT' 를 읽어온다.\n */\n if (debugMode) {\n console.log('debugMode token setting!');\n\n return cookieClient.getCookie('accessToken');\n }\n\n if (this.isApp()) {\n return (await Bridge.native.getAccessToken()).accessToken;\n } else {\n /**\n * pc인 경우는, middleware.ts 에서 요청헤더에 주입\n */\n }\n }\n\n /**\n * RT를 이용하여 신규 AT/RT발행\n * 기존토큰은 무효화처리\n * 쿠키에 저장.\n * @returns Promise<string> 액세스토큰\n */\n async refreshToken(): Promise<string> {\n if (this.isApp()) {\n /**\n * @todo : 브릿지 함수 호출 스펙에 맞게 수정필요\n */\n // @ts-ignore\n //return await bridge.callToNative('', '', 'refreshToken', {});\n return '';\n } else {\n /**\n * @todo : 내부api호출\n */\n const httpclient = new HttpClientAxios({});\n const res = await httpclient.api.get('/internal/api/auth/refresh');\n\n return res?.data.accessToken;\n }\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { AddressListRequestDto, DspResponseAddressListResponseDto } from './address-search.dto';\n\nexport const getAddressListMethod = async (params: AddressListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/dis/v1/get/codes/address-list';\n const httpClient = new HttpClientAxios(config);\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 { AddressListRequestDto, DspResponseAddressListResponseDto } from './address-search.dto';\nimport { getAddressListMethod } from './address-search.service';\n\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { AddressPostalCodeRequestDto, DspResponseAddressPostalCodeResponseDto } from './postal-code.dto';\n\nexport const getAddressPostalCodeMethod = async (params: AddressPostalCodeRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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 { AddressPostalCodeRequestDto, DspResponseAddressPostalCodeResponseDto } from './postal-code.dto';\nimport { getAddressPostalCodeMethod } from './postal-code.service';\n\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport {\n AddressStandardizationListRequestDto,\n DspResponseAddressStandardizationListResponseDto\n} from './address-standardization.dto';\n\nexport const getAddressStandardizationListMethod = async (\n params: AddressStandardizationListRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = '/api/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 {\n AddressStandardizationListRequestDto,\n DspResponseAddressStandardizationListResponseDto\n} from './address-standardization.dto';\nimport { getAddressStandardizationListMethod } from './address-standardization.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport {\n DspResponseOccupationDetailResponseDto,\n DspResponseOccupationListResponseDto,\n OccupationDetailRequestDto,\n OccupationListRequestDto\n} from './occupation-search.dto';\n\nexport const getOccupationListMethod = async (params: OccupationListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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\nexport const getOccupationDetailMethod = async (params: OccupationDetailRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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 {\n DspResponseOccupationDetailResponseDto,\n DspResponseOccupationListResponseDto,\n OccupationDetailRequestDto,\n OccupationListRequestDto\n} from './occupation-search.dto';\nimport { getOccupationDetailMethod, getOccupationListMethod } from './occupation-search.service';\n\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\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: [JSON.stringify(params)],\n queryFn: () => {\n return getOccupationListMethod(params, config);\n },\n ...options\n });\n};\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: [JSON.stringify(params)],\n queryFn: () => {\n return getOccupationDetailMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseVehicleTypeListResponseDto } from './vehicle-search.dto';\n\nexport const getVehicleListMethod = async (config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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 { DspResponseVehicleTypeListResponseDto } from './vehicle-search.dto';\nimport { getVehicleListMethod } from './vehicle-search.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseEmployeeProfileResponseDto, EmployeeProfileSearchRequestDto } from './employee-search.dto';\n\nexport const getEmployeeProfileListMethod = async (\n params: EmployeeProfileSearchRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = '/api/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 {\n DspResponseEmployeeProfileResponseDto,\n EmployeeProfileSearchRequestDto,\n} from './employee-search.dto';\nimport { getEmployeeProfileListMethod } from './employee-search.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseOrganizationProfileResponse, OrganizationSearchRequestDto } from './organization-search.dto';\n\nexport const getOrganizationProfileListMethod = async (\n params: OrganizationSearchRequestDto,\n config?: AxiosRequestConfig\n) => {\n ///v1/get/participant/profile/organization\n const apiUrl = '/api/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 {\n DspResponseOrganizationProfileResponse,\n OrganizationSearchRequestDto,\n} from './organization-search.dto';\nimport { getOrganizationProfileListMethod } from './organization-search.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseNationalityListResponseDto, NationalitySearchRequestDto } from './nationality-search.dto';\n\nexport const getNationalityListMethod = async (params: NationalitySearchRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/dis/v1/get/codes/nationality-list';\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 { DspResponseNationalityListResponseDto, NationalitySearchRequestDto } from './nationality-search.dto';\nimport { getNationalityListMethod } from './nationality-search.service';\n\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { CustomerListRequestDto, DspResponseCustomerListResponseDto } from './customer-list-search.dto';\n\nexport const getCustomerListMethod = async (params: CustomerListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/dis/v1/get/customer-list';\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 { HttpClientAxios } from '../../client';\n\nimport { FpLoginResponseDto } from './login-dsp.dto';\n\n/**\n * @param userId 사번\n */\nexport const postLoginMethod = async (userId: number) => {\n console.log('userId', userId);\n const apiUrl = '/api/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"]}
|
|
1
|
+
{"version":3,"sources":["../src/http-client/cookie/cookie-client.ts","../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/useSearchAddressQuery.ts","../src/http-methods/search-modal/address/postal-code.service.ts","../src/http-methods/search-modal/address/useSearchPostalCodeQuery.ts","../src/http-methods/search-modal/address/address-standardization.service.ts","../src/http-methods/search-modal/address/useSearchAddressStandardizationQuery.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/useSearchNationalityQuery.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/fp-login/login-dsp.service.ts","../src/http-methods/remote-identity-verification/remote-identity-verification.service.ts"],"names":["config","error","useQuery"],"mappings":";;;;;;;;;;;AAGO,IAAM,YAAe,GAAA;AAAA,EAC1B,UAAU,IAAsB,EAAA;AAC9B,IAAI,IAAA,OAAO,aAAa,WAAa,EAAA;AACnC,MAAO,OAAA,EAAA;AAAA;AAET,IAAM,MAAA,KAAA,GAAQ,SAAS,MAAO,CAAA,KAA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,EAAM,MAAA,UAAA,GAAa,aAAa,GAAO,IAAA,gEAAA;AAEvC,EAAM,MAAA,QAAA,GAAW,MAAM,IAAI,eAAgB,CAAA;AAAA,IACzC,OAAA;AAAA,IACA,GAAG;AAAA,GACJ,CAAA,CAAE,GAAI,CAAA,IAAA,CAAkE,YAAY,MAAM,CAAA;AAE3F,EAAA,OAAO,QAAS,CAAA,IAAA;AAClB;AAQa,IAAA,yDAAA,GAA4D,OACvE,MAAA,EACA,WACG,KAAA;AACH,EAAM,MAAA,OAAA,GAAU,aAAa,OAAW,IAAA,cAAA;AACxC,EAAM,MAAA,UAAA,GACJ,aAAa,GAAO,IAAA,sFAAA;AAEtB,EAAM,MAAA,QAAA,GAAW,MAAM,IAAI,eAAgB,CAAA;AAAA,IACzC,OAAA;AAAA,IACA,GAAG;AAAA,GACJ,CAAA,CAAE,GAAI,CAAA,IAAA,CAAoE,YAAY,MAAM,CAAA;AAE7F,EAAA,OAAO,QAAS,CAAA,IAAA;AAClB","file":"method.js","sourcesContent":["/**\n * 클라이언트용 쿠키 함수\n */\nexport const cookieClient = {\n getCookie(name: string): string {\n if (typeof document === 'undefined') {\n return '';\n }\n const match = document.cookie.match(new RegExp(`(^|; *)${name}=([^;]*)`));\n\n return match ? decodeURIComponent(match[2] || '') : '';\n },\n\n setCookie(\n name: string,\n value: string,\n options: {\n expires?: number | Date; // number of days\n path?: string;\n domain?: string;\n secure?: boolean;\n } = {}\n ): void {\n if (typeof document === 'undefined') {\n return;\n }\n\n let cookieString = `${name}=${encodeURIComponent(value)}`;\n\n if (options.expires) {\n let expiresDate: Date;\n if (typeof options.expires === 'number') {\n expiresDate = new Date();\n expiresDate.setDate(expiresDate.getDate() + options.expires);\n } else {\n expiresDate = options.expires;\n }\n cookieString += `; expires=${expiresDate.toUTCString()}`;\n }\n\n cookieString += `; path=${options.path || '/'}`;\n\n if (options.domain) {\n cookieString += `; domain=${options.domain}`;\n }\n\n if (options.secure) {\n cookieString += '; secure';\n }\n\n document.cookie = cookieString;\n },\n deleteCookie(name: string, options: { path?: string; domain?: string } = {}): void {\n cookieClient.setCookie(name, '', { ...options, expires: -1 });\n }\n};\n","/**\n * @see https://loop.cloud.microsoft/p/eyJ3Ijp7InUiOiJodHRwczovL2hhbndoYWxpZmVtMzY1LnNoYXJlcG9pbnQuY29tLz9uYXY9Y3owbE1rWW1aRDFpSVVVd1FXdDJSbGhSV0VWUE1tUkNYMWhUZW5KWVVFdFBSVXByYWs1b1NrSlBjRk4wYm5wNmNsWmpMVUZ5YjI1UlJWOVdSREpUV25aeWVUUTJTV2swUlZrbVpqMHdNVk5OVGtkR1JsTkJXVE0xVVZaQ1ZrRkVRa1ZaVEVoRVNUSTBXRXhVVlZoV0ptTTlKbVpzZFdsa1BURSUzRCIsInIiOmZhbHNlfSwicCI6eyJ1IjoiaHR0cHM6Ly9oYW53aGFsaWZlbTM2NS5zaGFyZXBvaW50LmNvbS9jb250ZW50c3RvcmFnZS9DU1BfYmMyNDQwMTMtZDA1NS00MzVjLWI2NzQtMWZkNzRiM2FkNzNjLyVFQiVBQyVCOCVFQyU4NCU5QyUyMCVFQiU5RCVCQyVFQyU5RCVCNCVFQiVCOCU4QyVFQiU5RiVBQyVFQiVBNiVBQy9Mb29wQXBwRGF0YS8wOS0yLiUyMEJyaWRnZSUyMFNwZWMlMjAxLmxvb3A%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 { addErrorLog, addRequestLog, addResponseLog } from 'sales-frontend-debug';\nimport { getEnvironmentFromHostname } from 'sales-frontend-utils';\n\nimport { AuthClient } from '../auth/auth-client';\nimport { cookieClient } from '../cookie/cookie-client';\nimport { HeaderManager } from '../header/header-manager';\n\nimport type { AxiosQueueType } from './types';\nimport type { AxiosError, AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';\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 = cookieClient.getCookie(key);\n if (!value) {\n value = defaultValue;\n cookieClient.setCookie(key, value, { path: '/' });\n }\n\n return value;\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 cookieClient.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: true,\n ...config\n });\n\n /**\n * 인터셉터 요청 처리\n */\n this.api.interceptors.request.use(\n async (config) => {\n const debugMode = cookieClient.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 accessToken = await authClient.getAT();\n console.log('accessToken', accessToken);\n if (accessToken) {\n config.headers['Authorization'] = `Bearer ${accessToken}`;\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', 'ScreenId');\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) {\n return new Promise((resolve, reject) => {\n axiosQueue.push({ resolve, reject, config });\n }).then(() => config);\n }\n\n return config;\n },\n (error) => {\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 return Promise.reject(response);\n }\n\n return response;\n },\n async (error: AxiosError) => {\n /** 디버깅용 로그 */\n await addErrorLog(error);\n\n const originalRequest = error.config;\n const debugRefreshQueueOff = config.headers?.['Debug-Refresh-Queue-Off'] === 'true';\n /**\n * 401에러 Queue처리\n */\n if (error.response?.status === 401 && !debugRefreshQueueOff) {\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 this.api(p.config)\n .then((response) => p.resolve(response))\n .catch((err) => p.reject(err));\n }\n }\n })\n .catch((error) => {\n /**\n * 토큰 재발행중 에러 발생한 경우 처리\n * @todo 로그인페이지 이동(?)\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 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 { isDspWebview } from 'sales-frontend-utils';\n\nimport { HttpClientAxios } from '../axios/http-client-axios';\nimport { cookieClient } from '../cookie/cookie-client';\n\nexport class AuthClient {\n /**\n * App인지 확인\n * @returns boolean\n */\n isApp() {\n return isDspWebview();\n }\n\n /**\n *\n * @returns Promise<string | undefined>\n */\n async getAT(): Promise<string | undefined> {\n const debugMode = cookieClient.getCookie('dsp-debug-mode') === 'on';\n\n /**\n * debugMode 경우 cookie에서 'AT' 를 읽어온다.\n */\n if (debugMode) {\n console.log('debugMode token setting!');\n\n return cookieClient.getCookie('accessToken');\n }\n\n if (this.isApp()) {\n return (await Bridge.native.getAccessToken()).accessToken;\n } else {\n /**\n * pc인 경우는, middleware.ts 에서 요청헤더에 주입\n */\n }\n }\n\n /**\n * RT를 이용하여 신규 AT/RT발행\n * 기존토큰은 무효화처리\n * 쿠키에 저장.\n * @returns Promise<string> 액세스토큰\n */\n async refreshToken(): Promise<string> {\n if (this.isApp()) {\n /**\n * @todo : 브릿지 함수 호출 스펙에 맞게 수정필요\n */\n // @ts-ignore\n //return await bridge.callToNative('', '', 'refreshToken', {});\n return '';\n } else {\n /**\n * @todo : 내부api호출\n */\n const httpclient = new HttpClientAxios({});\n const res = await httpclient.api.get('/internal/api/auth/refresh');\n\n return res?.data.accessToken;\n }\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { AddressListRequestDto, DspResponseAddressListResponseDto } from './address-search.dto';\n\nexport const getAddressListMethod = async (params: AddressListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/dis/v1/get/codes/address-list';\n const httpClient = new HttpClientAxios(config);\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 { AddressListRequestDto, DspResponseAddressListResponseDto } from './address-search.dto';\nimport { getAddressListMethod } from './address-search.service';\n\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { AddressPostalCodeRequestDto, DspResponseAddressPostalCodeResponseDto } from './postal-code.dto';\n\nexport const getAddressPostalCodeMethod = async (params: AddressPostalCodeRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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 { AddressPostalCodeRequestDto, DspResponseAddressPostalCodeResponseDto } from './postal-code.dto';\nimport { getAddressPostalCodeMethod } from './postal-code.service';\n\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport {\n AddressStandardizationListRequestDto,\n DspResponseAddressStandardizationListResponseDto\n} from './address-standardization.dto';\n\nexport const getAddressStandardizationListMethod = async (\n params: AddressStandardizationListRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = '/api/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 {\n AddressStandardizationListRequestDto,\n DspResponseAddressStandardizationListResponseDto\n} from './address-standardization.dto';\nimport { getAddressStandardizationListMethod } from './address-standardization.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport {\n DspResponseOccupationDetailResponseDto,\n DspResponseOccupationListResponseDto,\n OccupationDetailRequestDto,\n OccupationListRequestDto\n} from './occupation-search.dto';\n\nexport const getOccupationListMethod = async (params: OccupationListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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\nexport const getOccupationDetailMethod = async (params: OccupationDetailRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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 {\n DspResponseOccupationDetailResponseDto,\n DspResponseOccupationListResponseDto,\n OccupationDetailRequestDto,\n OccupationListRequestDto\n} from './occupation-search.dto';\nimport { getOccupationDetailMethod, getOccupationListMethod } from './occupation-search.service';\n\nimport type { CustomQueryOptions } from '../../method.types';\nimport type { AxiosRequestConfig } from 'axios';\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: [JSON.stringify(params)],\n queryFn: () => {\n return getOccupationListMethod(params, config);\n },\n ...options\n });\n};\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: [JSON.stringify(params)],\n queryFn: () => {\n return getOccupationDetailMethod(params, config);\n },\n ...options\n });\n};\n","import { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseVehicleTypeListResponseDto } from './vehicle-search.dto';\n\nexport const getVehicleListMethod = async (config?: AxiosRequestConfig) => {\n const apiUrl = '/api/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 { DspResponseVehicleTypeListResponseDto } from './vehicle-search.dto';\nimport { getVehicleListMethod } from './vehicle-search.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseEmployeeProfileResponseDto, EmployeeProfileSearchRequestDto } from './employee-search.dto';\n\nexport const getEmployeeProfileListMethod = async (\n params: EmployeeProfileSearchRequestDto,\n config?: AxiosRequestConfig\n) => {\n const apiUrl = '/api/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 {\n DspResponseEmployeeProfileResponseDto,\n EmployeeProfileSearchRequestDto,\n} from './employee-search.dto';\nimport { getEmployeeProfileListMethod } from './employee-search.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseOrganizationProfileResponse, OrganizationSearchRequestDto } from './organization-search.dto';\n\nexport const getOrganizationProfileListMethod = async (\n params: OrganizationSearchRequestDto,\n config?: AxiosRequestConfig\n) => {\n ///v1/get/participant/profile/organization\n const apiUrl = '/api/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 {\n DspResponseOrganizationProfileResponse,\n OrganizationSearchRequestDto,\n} from './organization-search.dto';\nimport { getOrganizationProfileListMethod } from './organization-search.service';\n\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';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport { DspResponseNationalityListResponseDto, NationalitySearchRequestDto } from './nationality-search.dto';\n\nexport const getNationalityListMethod = async (params: NationalitySearchRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/dis/v1/get/codes/nationality-list';\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 { DspResponseNationalityListResponseDto, NationalitySearchRequestDto } from './nationality-search.dto';\nimport { getNationalityListMethod } from './nationality-search.service';\n\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 { AxiosRequestConfig } from 'axios';\n\nimport { HttpClientAxios } from '../../../client';\n\nimport type { CustomerListRequestDto, DspResponseCustomerListResponseDto } from './customer-list-search.dto';\n\nexport const getCustomerListMethod = async (params: CustomerListRequestDto, config?: AxiosRequestConfig) => {\n const apiUrl = '/api/dis/v1/get/customer-list';\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 { HttpClientAxios } from '../../client';\n\nimport { FpLoginResponseDto } from './login-dsp.dto';\n\n/**\n * @param userId 사번\n */\nexport const postLoginMethod = async (userId: number) => {\n console.log('userId', userId);\n const apiUrl = '/api/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 { HttpClientAxios } from '../../client';\n\nimport type { ApiConfig } from '../shared.dto';\nimport type {\n RemoteIdentityVerificationSystemTokenRequestDto,\n DspResponseRemoteIdentityVerificationSystemTokenResponseDto,\n RemoteIdentityVerificationSystemIdentificationCardRequestDto,\n RemoteIdentityVerificationSystemIdentificationCardResponseDto\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 baseURL = axiosConfig?.baseURL ?? '/dea/api/dea';\n const requestUrl = axiosConfig?.url ?? '/v1/post/participant/remote-identity-verification-system/token';\n\n const response = await new HttpClientAxios({\n baseURL,\n ...axiosConfig\n }).api.post<DspResponseRemoteIdentityVerificationSystemTokenResponseDto>(requestUrl, 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 baseURL = axiosConfig?.baseURL ?? '/dea/api/dea';\n const requestUrl =\n axiosConfig?.url ?? '/v1/post/participant/remote-identity-verification-system/identification-card/confirm';\n\n const response = await new HttpClientAxios({\n baseURL,\n ...axiosConfig\n }).api.post<RemoteIdentityVerificationSystemIdentificationCardResponseDto>(requestUrl, params);\n\n return response.data;\n};\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sales-frontend-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.48",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/client.js",
|
|
@@ -48,23 +48,23 @@
|
|
|
48
48
|
"tsup": "^8.4.0",
|
|
49
49
|
"typescript": "5.8.2",
|
|
50
50
|
"eslint-config-sales-frontend-eslint-config-v8": "^0.0.6",
|
|
51
|
-
"sales-frontend-
|
|
52
|
-
"sales-frontend-bridge": "0.0.31",
|
|
53
|
-
"sales-frontend-design-system": "0.0.61",
|
|
51
|
+
"sales-frontend-bridge": "0.0.32",
|
|
54
52
|
"sales-frontend-typescript-config": "0.0.2",
|
|
55
|
-
"sales-frontend-utils": "0.0.10"
|
|
53
|
+
"sales-frontend-utils": "0.0.10",
|
|
54
|
+
"sales-frontend-design-system": "0.0.62",
|
|
55
|
+
"sales-frontend-stores": "0.0.3"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@tanstack/react-query": "^5.81.2",
|
|
59
59
|
"axios": "^1.10.0",
|
|
60
60
|
"zustand": "^5.0.6",
|
|
61
|
-
"sales-frontend-
|
|
62
|
-
"sales-frontend-
|
|
61
|
+
"sales-frontend-utils": "0.0.10",
|
|
62
|
+
"sales-frontend-debug": "0.0.5"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"sales-frontend-bridge": "0.0.
|
|
66
|
-
"sales-frontend-
|
|
67
|
-
"sales-frontend-
|
|
65
|
+
"sales-frontend-bridge": "0.0.32",
|
|
66
|
+
"sales-frontend-design-system": "0.0.62",
|
|
67
|
+
"sales-frontend-stores": "0.0.3"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"lint": "eslint . --max-warnings 0",
|