260722_01_ENH: 버그 수정 및 개선 사항 수정
This commit is contained in:
@@ -20,7 +20,7 @@ export type ExternalAction = keyof typeof EXTERNAL_ACTION_CODE_BY_SLUG;
|
||||
export type ExternalEventMeta = {
|
||||
entryType: ExternalEntryTypeCode;
|
||||
action: ExternalActionCode;
|
||||
pid: string;
|
||||
psidx: string;
|
||||
sid: string;
|
||||
remoteAddr: string | null;
|
||||
uri: string;
|
||||
@@ -34,7 +34,7 @@ export type ExternalEventMeta = {
|
||||
|
||||
export type ExternalEventBody = {
|
||||
action: ExternalActionCode;
|
||||
prjctIdx: number;
|
||||
prjctSurveyIdx: number;
|
||||
sid: number;
|
||||
meta: ExternalEventMeta;
|
||||
};
|
||||
|
||||
@@ -115,13 +115,19 @@ export type listHeader = {
|
||||
filterContents?: string[];
|
||||
};
|
||||
|
||||
export type SurveyResultCondition = {
|
||||
prjctSurveyIdx: number;
|
||||
resultCodes: number[];
|
||||
};
|
||||
|
||||
export type ListFilter = {
|
||||
sidSet: string[];
|
||||
listUseSet: ListIsUse[];
|
||||
listUseConditions: ListFilterCondition[];
|
||||
assignUserMap: Record<ListHeaderAssignType, string[]>;
|
||||
assignConditions: ListAssignFilterCondition[];
|
||||
resultCodeMap: Record<ResultCodeType, number[]>;
|
||||
resultCodeMap: Record<Exclude<ResultCodeType, ResultCodeType.SURVEY>, number[]>;
|
||||
surveyResultConditions: SurveyResultCondition[];
|
||||
memoConditions: ListFilterCondition[];
|
||||
otherItemConditions: ListOtherItemFilterCondition[];
|
||||
};
|
||||
@@ -139,8 +145,8 @@ export const createEmptyListFilter = (): ListFilter => ({
|
||||
resultCodeMap: {
|
||||
[ResultCodeType.CONTACT]: [],
|
||||
[ResultCodeType.INTERVIEW]: [],
|
||||
[ResultCodeType.SURVEY]: [],
|
||||
},
|
||||
surveyResultConditions: [],
|
||||
memoConditions: [],
|
||||
otherItemConditions: [],
|
||||
});
|
||||
@@ -148,11 +154,14 @@ export const createEmptyListFilter = (): ListFilter => ({
|
||||
// ListSearchTable의 검색/필터 UI 상태 중, 페이지를 떠났다가 돌아왔을 때 "같은 목록·같은 순서"를
|
||||
// 재현하기 위해 함께 기억해야 하는 부분. pageIndex만 기억하면 필터가 없어져 목록 순서가 달라져서
|
||||
// 엉뚱한 페이지로 안내하게 된다(예: "SID 30~40" 필터를 걸면 SID 30이 1페이지지만, 필터 없이는 2페이지일 수 있음).
|
||||
// 설문별 결과 필터 선택값. key는 prjctSurveyIdx, value는 선택된 결과 코드(문자열) 목록.
|
||||
export type SurveyResultSelections = Record<number, string[]>;
|
||||
|
||||
export type ListSearchUiState = {
|
||||
searchText: string;
|
||||
searchContactResult: string[];
|
||||
searchInterviewResult: string[];
|
||||
searchSurveyResult: string[];
|
||||
surveyResultSelections: SurveyResultSelections;
|
||||
filterRows: FilterRow[];
|
||||
sorting: { id: string; desc: boolean }[];
|
||||
};
|
||||
@@ -193,7 +202,8 @@ export type ListUploadHistory = {
|
||||
|
||||
export type ListUpdateRequest = {
|
||||
updateContents: Record<string, string>;
|
||||
updateResultCodes?: Partial<Record<ResultCodeType, number>>;
|
||||
updateResultCodes?: Partial<Record<Exclude<ResultCodeType, ResultCodeType.SURVEY>, number>>;
|
||||
updateSurveyResultCodes?: { prjctSurveyIdx: number; resultCd: number }[];
|
||||
listFilter: ListFilter;
|
||||
};
|
||||
|
||||
@@ -275,6 +285,15 @@ export type ListCallHist = ListCallHistRequest & {
|
||||
regDt: string;
|
||||
};
|
||||
|
||||
export type ListCallHistSession = {
|
||||
listCallHistIdx: number;
|
||||
agentSessionId: string;
|
||||
destSessionId: string;
|
||||
prjctIdx: number;
|
||||
sid: number;
|
||||
listHderId: number;
|
||||
};
|
||||
|
||||
export type ListReserveRequest = {
|
||||
prjctIdx: number;
|
||||
sid: number;
|
||||
@@ -311,18 +330,26 @@ export type ListEventHistDownloadRequest = {
|
||||
export type ListResultBase = {
|
||||
lastResultCd: number;
|
||||
lastResultDt: string;
|
||||
lastResultViewLabel: string;
|
||||
attemptCount: number;
|
||||
};
|
||||
|
||||
export type ListSendResult = ListResultBase & {
|
||||
lastResultLabel: string;
|
||||
};
|
||||
export type ListSendResult = ListResultBase;
|
||||
|
||||
export type ListContactResult = ListResultBase & {
|
||||
lastUser: string;
|
||||
assignUser: string;
|
||||
};
|
||||
|
||||
export type SurveyResult = {
|
||||
prjctSurveyIdx: number;
|
||||
surveyName: string;
|
||||
surveyTy: number;
|
||||
lastResultCd: number;
|
||||
lastResultDt: string;
|
||||
attemptCount: number;
|
||||
};
|
||||
|
||||
export type ListSearchBase = {
|
||||
prjctIdx: number;
|
||||
sid: number;
|
||||
@@ -335,7 +362,7 @@ export type ListSearchBase = {
|
||||
export type ListSearchWithResult = ListSearchBase & {
|
||||
contactResult: ListContactResult;
|
||||
interviewResult: ListContactResult;
|
||||
surveyResult: ListResultBase;
|
||||
surveyResults: SurveyResult[];
|
||||
};
|
||||
|
||||
export type ListSearchWithFullResult = ListSearchWithResult & {
|
||||
|
||||
@@ -38,6 +38,10 @@ export type SendResultInfo = {
|
||||
cmid: string;
|
||||
bulkSendKey?: string;
|
||||
sendTy: number;
|
||||
itrntPrjctCd: string;
|
||||
reqstSvc: string;
|
||||
prjctCd: string;
|
||||
sid: string;
|
||||
resve: boolean;
|
||||
resultCode: number;
|
||||
resultLabel?: string;
|
||||
|
||||
@@ -17,7 +17,7 @@ export enum ProjectStatus {
|
||||
export enum ResultCodeType {
|
||||
CONTACT = 21,
|
||||
INTERVIEW = 22,
|
||||
SURVEY = 99,
|
||||
SURVEY = 91,
|
||||
}
|
||||
|
||||
export enum ExternalActionCode {
|
||||
@@ -27,6 +27,18 @@ export enum ExternalActionCode {
|
||||
QUOTA = 98,
|
||||
}
|
||||
|
||||
export type ProjectSurvey = {
|
||||
prjctSurveyIdx?: number | null;
|
||||
surveyOrder: number;
|
||||
surveyName: string;
|
||||
surveyTy: SurveyType;
|
||||
surveyPrjctCd?: string | null;
|
||||
surveyUrl?: string | null;
|
||||
surveyFullUrl?: string | null;
|
||||
surveyShortUrl?: string | null;
|
||||
surveyDashboardUrl?: string | null;
|
||||
};
|
||||
|
||||
export type ProjectInfo = {
|
||||
prjctIdx: number; // Long
|
||||
prjctCd: string;
|
||||
@@ -36,10 +48,7 @@ export type ProjectInfo = {
|
||||
ownerDept: string;
|
||||
ownerFw: string;
|
||||
callerTelNum: string;
|
||||
surveyTy: SurveyType;
|
||||
surveyPrjctCd?: string;
|
||||
surveyUrl?: string;
|
||||
surveyDashboardUrl?: string;
|
||||
surveys: ProjectSurvey[];
|
||||
ff: boolean;
|
||||
useContactSenario: boolean;
|
||||
contactSenario?: string;
|
||||
|
||||
@@ -6,6 +6,11 @@ export type ItrntUserInfo = {
|
||||
userRole: number;
|
||||
};
|
||||
|
||||
export type GroupCodeInfo = {
|
||||
groupCode: string;
|
||||
groupCodeLabel: string;
|
||||
};
|
||||
|
||||
export type UserInfo = {
|
||||
userId: string
|
||||
userPw?: string
|
||||
|
||||
Reference in New Issue
Block a user