260714_01_ENH: 테스트 서버에서 기동 후 중간 테스트를 위한 커밋
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
export type LoginRequest = {
|
||||
userId: string;
|
||||
userPw: string;
|
||||
};
|
||||
|
||||
export type LoginUser = {
|
||||
userId: string;
|
||||
userName: string;
|
||||
userCmpn: string;
|
||||
userTeam: string;
|
||||
userRole: number;
|
||||
};
|
||||
19
src/types/cmpn.ts
Normal file
19
src/types/cmpn.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
export type CmpnInfo = {
|
||||
cmpnId: string
|
||||
cmpnAlias: string
|
||||
cmpnTel?: string
|
||||
ownCmpn: boolean
|
||||
memo?: string
|
||||
regUser?: string
|
||||
regDt?: string
|
||||
modUser?: string
|
||||
modDt?: string
|
||||
}
|
||||
|
||||
export type CmpnInfoSaveRequest = {
|
||||
cmpnId: string
|
||||
cmpnAlias: string
|
||||
cmpnTel?: string
|
||||
ownCmpn: boolean
|
||||
memo?: string
|
||||
}
|
||||
@@ -1,9 +1,3 @@
|
||||
export type DataVerification = {
|
||||
success: boolean;
|
||||
fieldName : string;
|
||||
errMessage: string;
|
||||
}
|
||||
|
||||
export type RouteContext = { params: Promise<{ slug?: string[] }> };
|
||||
|
||||
export type ErrorCode = "404" | "500";
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import type { EnumLikeKey, EnumLikeValue, PageRequest } from "@kri/common";
|
||||
import { ListHeaderAssignConst, ListHeaderConst } from "@/const/listConst";
|
||||
import { ResultCodeType } from "@/types/project";
|
||||
|
||||
export enum ListHeaderGrade {
|
||||
IMMUTABLE = 0,
|
||||
@@ -31,8 +32,8 @@ export enum ListFilterMatchType {
|
||||
}
|
||||
|
||||
export enum ListUploadMode {
|
||||
CHANGE = 0,
|
||||
ADD = 1,
|
||||
RESET_AND_INSERT = 0,
|
||||
ADD_AND_CHANGE = 1,
|
||||
}
|
||||
|
||||
export enum ListResetMode {
|
||||
@@ -45,12 +46,19 @@ export enum ListEventHistoryBase {
|
||||
LATEST = 2,
|
||||
}
|
||||
|
||||
export type FilterOperator = 'eq' | 'neq' | 'contains' | 'notContains';
|
||||
export type FilterOperator = 'eq' | 'neq' | 'contains' | 'notContains' | 'empty' | 'notEmpty';
|
||||
|
||||
export type FilterValueOption = {
|
||||
value: string;
|
||||
label: string;
|
||||
};
|
||||
|
||||
export type FilterHeaderOption = {
|
||||
id: number;
|
||||
label: string;
|
||||
values?: string[];
|
||||
allowedOperators: FilterOperator[];
|
||||
valueOptions?: FilterValueOption[];
|
||||
disabled?: boolean;
|
||||
};
|
||||
|
||||
export type FilterRow = {
|
||||
@@ -86,6 +94,13 @@ export type ListOtherItemFilterCondition = ListFilterCondition & {
|
||||
listHderId: number;
|
||||
};
|
||||
|
||||
export type ListAssignFilterCondition = {
|
||||
assignType: ListHeaderAssignType;
|
||||
operator: ListFilterOperator;
|
||||
matchType: ListFilterMatchType;
|
||||
values?: string[];
|
||||
};
|
||||
|
||||
export type listHeader = {
|
||||
prjctIdx?: number;
|
||||
listHderId: number;
|
||||
@@ -103,7 +118,10 @@ export type listHeader = {
|
||||
export type ListFilter = {
|
||||
sidSet: string[];
|
||||
listUseSet: ListIsUse[];
|
||||
listUseConditions: ListFilterCondition[];
|
||||
assignUserMap: Record<ListHeaderAssignType, string[]>;
|
||||
assignConditions: ListAssignFilterCondition[];
|
||||
resultCodeMap: Record<ResultCodeType, number[]>;
|
||||
memoConditions: ListFilterCondition[];
|
||||
otherItemConditions: ListOtherItemFilterCondition[];
|
||||
};
|
||||
@@ -111,15 +129,29 @@ export type ListFilter = {
|
||||
export const createEmptyListFilter = (): ListFilter => ({
|
||||
sidSet: [],
|
||||
listUseSet: [],
|
||||
listUseConditions: [],
|
||||
assignUserMap: {
|
||||
[ListHeaderAssignConst.OUTSOURCE]: [],
|
||||
[ListHeaderAssignConst.CONTACT_INTERVIEWER]: [],
|
||||
[ListHeaderAssignConst.FIELD_INTERVIEWER]: [],
|
||||
},
|
||||
assignConditions: [],
|
||||
resultCodeMap: {
|
||||
[ResultCodeType.CONTACT]: [],
|
||||
[ResultCodeType.INTERVIEW]: [],
|
||||
[ResultCodeType.SURVEY]: [],
|
||||
},
|
||||
memoConditions: [],
|
||||
otherItemConditions: [],
|
||||
});
|
||||
|
||||
export type LastListVisit = {
|
||||
prjctIdx: number;
|
||||
sid: string;
|
||||
pageIndex: number;
|
||||
pageSize: number;
|
||||
};
|
||||
|
||||
export const createSidOnlyListFilter = (sid: string): ListFilter => ({
|
||||
...createEmptyListFilter(),
|
||||
sidSet: [sid],
|
||||
@@ -137,15 +169,6 @@ export type ListUploadRequest = {
|
||||
specificHeader?: Record<string, ListHeaderType>;
|
||||
};
|
||||
|
||||
export type ExcelUploadResult = {
|
||||
totalCount?: number;
|
||||
successCount?: number;
|
||||
failCount?: number;
|
||||
hasErrorFile?: boolean;
|
||||
errorFileName?: string;
|
||||
errorFileBase64?: string;
|
||||
};
|
||||
|
||||
export type ListUploadHistory = {
|
||||
listUploadLogId: string;
|
||||
wave: number;
|
||||
@@ -161,6 +184,84 @@ export type ListUpdateRequest = {
|
||||
listFilter: ListFilter;
|
||||
};
|
||||
|
||||
export type ListEventInsertRequest = {
|
||||
prjctIdx: number;
|
||||
sid: number;
|
||||
resultCodeType: ResultCodeType;
|
||||
resultCd: number;
|
||||
memo: string;
|
||||
};
|
||||
|
||||
export type ListEventHistory = {
|
||||
listEventHistIdx: number;
|
||||
eventTy: ResultCodeType;
|
||||
prjctIdx: number;
|
||||
sid: number;
|
||||
resultCd: number;
|
||||
metaData?: string;
|
||||
listCallHistIdx?: number;
|
||||
memo: string;
|
||||
regUser: string;
|
||||
regDt: string;
|
||||
};
|
||||
|
||||
export type ListUpdateHistory = {
|
||||
listUpdateHistIdx: number;
|
||||
prjctIdx: number;
|
||||
sid: number;
|
||||
listHderId: number;
|
||||
beforeVal?: string;
|
||||
afterVal?: string;
|
||||
regUser: string;
|
||||
regDt: string;
|
||||
};
|
||||
|
||||
export type ListReserve = {
|
||||
listResveIdx: number;
|
||||
prjctIdx: number;
|
||||
sid: number;
|
||||
memo?: string;
|
||||
cnfirm: boolean;
|
||||
resveDt: string;
|
||||
resveUser: string;
|
||||
regUser: string;
|
||||
regDt: string;
|
||||
};
|
||||
|
||||
export type ListCallHistRequest = {
|
||||
listHderId: number;
|
||||
destNum: string;
|
||||
agentNum: string;
|
||||
aniNum: string;
|
||||
agentSessionId: string;
|
||||
destSessionId: string;
|
||||
callTy: string;
|
||||
startDt: string;
|
||||
totalTime: number;
|
||||
talkTime: number;
|
||||
mediaServerId: number;
|
||||
mediaServerName: string;
|
||||
recordFileName: string;
|
||||
};
|
||||
|
||||
export type ListReserveRequest = {
|
||||
prjctIdx: number;
|
||||
sid: number;
|
||||
userId: string;
|
||||
resveDt: string;
|
||||
};
|
||||
|
||||
export type ListAssignRequest = {
|
||||
assignType: ListHeaderAssignType;
|
||||
transferResve: boolean;
|
||||
listFilter: ListFilter;
|
||||
};
|
||||
|
||||
export type ListAssignResetRequest = {
|
||||
assignType: ListHeaderAssignType;
|
||||
listFilter: ListFilter;
|
||||
};
|
||||
|
||||
export type ListResetRequest = {
|
||||
resetMode: ListResetMode;
|
||||
listFilter: ListFilter;
|
||||
|
||||
57
src/types/message.ts
Normal file
57
src/types/message.ts
Normal file
@@ -0,0 +1,57 @@
|
||||
import type { ListFilter } from './list';
|
||||
|
||||
export type MessageSendChannel = 'sms' | 'email';
|
||||
|
||||
export type MessageSendSingleRequest = {
|
||||
tmplatIdx: number;
|
||||
resve: boolean;
|
||||
sendDt?: string;
|
||||
sid: number;
|
||||
destHeaderIds: number[];
|
||||
destNameHeaderId?: number;
|
||||
};
|
||||
|
||||
export type MessageSendBulkRequest = {
|
||||
tmplatIdx: number;
|
||||
resve: boolean;
|
||||
sendDt?: string;
|
||||
listFilter: ListFilter;
|
||||
destHeaderIds: number[];
|
||||
destNameHeaderId?: number;
|
||||
};
|
||||
|
||||
export type MessageFailedChunk = {
|
||||
sidList?: number[];
|
||||
reason?: string;
|
||||
};
|
||||
|
||||
export type MessageBulkSendResponse = {
|
||||
bulkSendKey?: string;
|
||||
targetCount: number;
|
||||
requestCount: number;
|
||||
acceptCount: number;
|
||||
failCount: number;
|
||||
failedChunks?: MessageFailedChunk[];
|
||||
};
|
||||
|
||||
export type SendResultInfo = {
|
||||
cmid: string;
|
||||
bulkSendKey?: string;
|
||||
sendTy: number;
|
||||
resve: boolean;
|
||||
resultCode: number;
|
||||
resultLabel?: string;
|
||||
resultViewLabel?: string;
|
||||
tmplatIdx?: number;
|
||||
kkoTmplatCd?: string;
|
||||
sendEml?: string;
|
||||
sendTel?: string;
|
||||
sendNm?: string;
|
||||
sendDt: string;
|
||||
destEml?: string;
|
||||
destNm?: string;
|
||||
destTel?: string;
|
||||
regCmpn: string;
|
||||
regUser: string;
|
||||
regDt: string;
|
||||
};
|
||||
@@ -1,40 +0,0 @@
|
||||
export enum MessageType {
|
||||
EMAIL = 11,
|
||||
SMS = 21,
|
||||
LMS_MMS = 22
|
||||
}
|
||||
|
||||
export enum ChannelType{
|
||||
EMAIL = 1,
|
||||
SMS = 2
|
||||
}
|
||||
|
||||
export const SMS_TYPE_ARRAY = [MessageType.SMS, MessageType.LMS_MMS] as const;
|
||||
export type SmsType = typeof SMS_TYPE_ARRAY[number];
|
||||
|
||||
export type TemplateSummary = {
|
||||
tmplatIdx: number;
|
||||
tmplatNm: string;
|
||||
}
|
||||
|
||||
export type TemplateBasic = {
|
||||
tmplatIdx?: number;
|
||||
itrntPrjctCd: string;
|
||||
tmplatNm: string;
|
||||
tmplatBody: string;
|
||||
sendNm: string;
|
||||
};
|
||||
|
||||
export type TemplateSms = TemplateBasic & {
|
||||
tmplatTy: SmsType;
|
||||
tmplatTitle?: string;
|
||||
sendTel: string;
|
||||
}
|
||||
|
||||
export type TemplateEmail = TemplateBasic & {
|
||||
tmplatTy: MessageType.EMAIL;
|
||||
tmplatTitle: string;
|
||||
sendEml: string;
|
||||
}
|
||||
|
||||
export type Template = TemplateSms | TemplateEmail;
|
||||
27
src/types/progress.ts
Normal file
27
src/types/progress.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
export type ProgressSearchRequest = {
|
||||
userId?: string;
|
||||
cmpnId?: string;
|
||||
startDt?: string;
|
||||
endDt?: string;
|
||||
};
|
||||
|
||||
export const ProgressEventType = {
|
||||
CONTACT: 21,
|
||||
INTERVIEW: 22,
|
||||
} as const;
|
||||
|
||||
export type ProgressEventTypeValue = (typeof ProgressEventType)[keyof typeof ProgressEventType];
|
||||
|
||||
export type ProgressUserResponse = {
|
||||
userId?: string;
|
||||
totalCount?: number;
|
||||
resultCodeCountMap?: Record<string, number>;
|
||||
};
|
||||
|
||||
export type ProgressDateResponse = {
|
||||
contactDate?: string;
|
||||
startTime?: string;
|
||||
endTime?: string;
|
||||
totalCount?: number;
|
||||
resultCodeCountMap?: Record<string, number>;
|
||||
};
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { PageRequest } from "@kri/common";
|
||||
import {ChannelType} from "@/types/messageTemplate";
|
||||
import { ChannelType } from "@kri/common/noti-hub";
|
||||
|
||||
export enum SurveyType {
|
||||
NONE = 0,
|
||||
@@ -15,9 +15,9 @@ export enum ProjectStatus {
|
||||
}
|
||||
|
||||
export enum ResultCodeType {
|
||||
CONTACT = 0,
|
||||
INTERVIEW = 1,
|
||||
SURVEY = 2,
|
||||
CONTACT = 21,
|
||||
INTERVIEW = 22,
|
||||
SURVEY = 99,
|
||||
}
|
||||
|
||||
export enum ExternalActionCode {
|
||||
@@ -38,6 +38,7 @@ export type ProjectInfo = {
|
||||
surveyTy: SurveyType;
|
||||
surveyPrjctCd?: string;
|
||||
surveyUrl?: string;
|
||||
surveyDashboardUrl?: string;
|
||||
ff: boolean;
|
||||
useContactSenario: boolean;
|
||||
contactSenario?: string;
|
||||
@@ -57,7 +58,7 @@ export type ProjectCreateRequest = {
|
||||
export type ProjectUpdateRequest = {
|
||||
projectInfo: ProjectInfo;
|
||||
resultCodeList: ResultCode[];
|
||||
assignUserIdList: string[];
|
||||
assignCmpnIdList: string[];
|
||||
}
|
||||
|
||||
export type ProjectListQuery = {
|
||||
@@ -104,6 +105,7 @@ export type ResultCode = {
|
||||
resultCdTy:ResultCodeType;
|
||||
resultCd:number;
|
||||
resultCdLbl:string;
|
||||
isDefault:boolean;
|
||||
}
|
||||
|
||||
export type ProjectMainTemplateUpdateRequest = {
|
||||
|
||||
@@ -7,27 +7,16 @@ export type ItrntUserInfo = {
|
||||
};
|
||||
|
||||
export type UserInfo = {
|
||||
/** 사용자 ID */
|
||||
userId: string
|
||||
/** 사용자 PW (목록 조회 시에는 내려오지 않을 수도 있어서 optional 권장) */
|
||||
userPw?: string
|
||||
/** 사용자 이름 */
|
||||
userName: string
|
||||
/** 사용자 소속 회사 */
|
||||
userCmpn: string
|
||||
/** 사용자 소속 팀 (기본값 S101) */
|
||||
userTeam: string
|
||||
/** 사용자 권한 코드 */
|
||||
userRole: number
|
||||
/** 메모 */
|
||||
memo?: string
|
||||
/** 등록자 (서버에서만 세팅되는 읽기 전용 성격) */
|
||||
regUser?: string
|
||||
/** 등록일시 (ISO 문자열로 내려온다고 가정) */
|
||||
regDt?: string
|
||||
/** 수정자 */
|
||||
modUser?: string
|
||||
/** 수정일시 */
|
||||
modDt?: string
|
||||
}
|
||||
|
||||
@@ -40,12 +29,3 @@ export type UserInfoSaveRequest = {
|
||||
userRole: number
|
||||
memo?: string
|
||||
}
|
||||
|
||||
export type ExcelUploadResult = {
|
||||
totalCount: number;
|
||||
successCount: number;
|
||||
failCount: number;
|
||||
hasErrorFile: boolean;
|
||||
errorFileName: string;
|
||||
errorFileBase64: string;
|
||||
}
|
||||
Reference in New Issue
Block a user