import type { PageRequest } from "@kri/common"; import { ChannelType } from "@kri/common/noti-hub"; export enum SurveyType { NONE = 0, KON = 1, KIWI = 2, EXTERNAL = 99, } export enum ProjectStatus { WAITING = 0, IN_PROGRESS = 1, COMPLETED = 10, } export enum ResultCodeType { CONTACT = 21, INTERVIEW = 22, SURVEY = 99, } export enum ExternalActionCode { START = 1, COMPLETE = 10, SCREEN = 99, QUOTA = 98, } export type ProjectInfo = { prjctIdx: number; // Long prjctCd: string; prjctStatus: ProjectStatus; prjctName: string; itrntPrjctCd: string; ownerDept: string; ownerFw: string; callerTelNum: string; surveyTy: SurveyType; surveyPrjctCd?: string; surveyUrl?: string; surveyDashboardUrl?: string; ff: boolean; useContactSenario: boolean; contactSenario?: string; regUser: string; regDt: string; modUser?: string; modDt?: string; }; export type ProjectCreateRequest = { prjctName: string; itrntPrjctCd: string; ownerDept: string; ownerFw: string; } export type ProjectUpdateRequest = { projectInfo: ProjectInfo; resultCodeList: ResultCode[]; assignCmpnIdList: string[]; } export type ProjectListQuery = { prjctText: string; prjctStatusList: ProjectStatus[]; ownerDeptList: string[]; ownerFwList: string[]; } export type ProjectListRequest = { prjctText: string; prjctStatusList: ProjectStatus[]; ownerDeptList: string[]; ownerFwList: string[]; pageRequest: PageRequest; } export type ProjectOwnerResponse = { ownerDeptList:string[]; ownerFwList:string[]; } export type IntranetProjectSearchResponse = { childSn: string; title: string; researchTeam: string; researchTeamName: string; } export type KonKiwiProjectInfo = { pkey:string; title:string; surveyType:string; status:string; gkey:string; mkey:string; createDate:string; } export type CallerTelNumInfo = { telNum: string; regDt: string; userCode: string; } export type ResultCode = { resultCdUUID: string; prjctIdx:number; resultCdTy:ResultCodeType; resultCd:number; resultCdLbl:string; isDefault:boolean; } export type ProjectMainTemplateUpdateRequest = { prjctIdx:number; chnnlTy:ChannelType; tmplatIdx:number|null; }