260716_02_ENH: 프로젝트에 발신 번호추가 및 리다이렉트 url, api 수정
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import { ExternalActionCode } from "@/types/project";
|
||||
|
||||
export type ExternalEntryType = "redirect" | "api";
|
||||
export const EXTERNAL_ENTRY_TYPE_CODE = {
|
||||
redirect: 10,
|
||||
api: 20,
|
||||
} as const;
|
||||
|
||||
export type ExternalEntryType = keyof typeof EXTERNAL_ENTRY_TYPE_CODE;
|
||||
export type ExternalEntryTypeCode = (typeof EXTERNAL_ENTRY_TYPE_CODE)[ExternalEntryType];
|
||||
|
||||
export const EXTERNAL_ACTION_CODE_BY_SLUG = {
|
||||
start: ExternalActionCode.START,
|
||||
@@ -12,9 +18,8 @@ export const EXTERNAL_ACTION_CODE_BY_SLUG = {
|
||||
export type ExternalAction = keyof typeof EXTERNAL_ACTION_CODE_BY_SLUG;
|
||||
|
||||
export type ExternalEventMeta = {
|
||||
entryType: ExternalEntryType;
|
||||
action: ExternalAction;
|
||||
actionCode: ExternalActionCode;
|
||||
entryType: ExternalEntryTypeCode;
|
||||
action: ExternalActionCode;
|
||||
pid: string;
|
||||
sid: string;
|
||||
remoteAddr: string | null;
|
||||
@@ -28,7 +33,7 @@ export type ExternalEventMeta = {
|
||||
};
|
||||
|
||||
export type ExternalEventBody = {
|
||||
actionCode: ExternalActionCode;
|
||||
action: ExternalActionCode;
|
||||
prjctIdx: number;
|
||||
sid: number;
|
||||
meta: ExternalEventMeta;
|
||||
|
||||
@@ -35,6 +35,7 @@ export type ProjectInfo = {
|
||||
itrntPrjctCd: string;
|
||||
ownerDept: string;
|
||||
ownerFw: string;
|
||||
callerTelNum: string;
|
||||
surveyTy: SurveyType;
|
||||
surveyPrjctCd?: string;
|
||||
surveyUrl?: string;
|
||||
@@ -99,6 +100,12 @@ export type KonKiwiProjectInfo = {
|
||||
createDate:string;
|
||||
}
|
||||
|
||||
export type CallerTelNumInfo = {
|
||||
telNum: string;
|
||||
regDt: string;
|
||||
userCode: string;
|
||||
}
|
||||
|
||||
export type ResultCode = {
|
||||
resultCdUUID: string;
|
||||
prjctIdx:number;
|
||||
|
||||
Reference in New Issue
Block a user