100 lines
5.4 KiB
TypeScript
100 lines
5.4 KiB
TypeScript
import type { ChannelType } from "@kri/common/noti-hub";
|
|
|
|
export const qk = {
|
|
/********** 사용자 관리 관련 **********/
|
|
roleList: () => ["role", "list"] as const,
|
|
users: () => ["user", "list"] as const,
|
|
user: (userId: string) => ["user", "detail", userId] as const,
|
|
|
|
fieldworkUsers: () => ["user", "fieldwork"] as const,
|
|
|
|
cmpnList: () => ["cmpn", "list"] as const,
|
|
cmpn: (cmpnId: string) => ["cmpn", "detail", cmpnId] as const,
|
|
/********** 사용자 관리 관련 **********/
|
|
|
|
/********** 프로젝트 관련 **********/
|
|
projectTop: (count: number, keyword: string) => ["project", "top", count, keyword] as const,
|
|
projectOwnerList: () => ["project", "owner-list"] as const,
|
|
projectList: (
|
|
query: unknown,
|
|
pageIndex: number,
|
|
pageSize: number,
|
|
sortBy: string,
|
|
sortDir: "asc" | "desc"
|
|
) => ["project", "list", query, pageIndex, pageSize, sortBy, sortDir] as const,
|
|
|
|
projectInfo: (prjctIdx: number) => ["project", "info", prjctIdx] as const,
|
|
resultCodes: (prjctIdx: number) => ["result-code", prjctIdx] as const,
|
|
/********** 프로젝트 관련 **********/
|
|
|
|
/********** 배정 관련 **********/
|
|
projectAssignFieldwork: (prjctIdx: number) => ["assign", "prjct-fieldwork", prjctIdx] as const,
|
|
projectAssignCmpn: (prjctIdx: number) => ["assign", "prjct-cmpn", prjctIdx] as const,
|
|
projectAssignCmpnSummary: (prjctIdx: number) => ["assign", "prjct-cmpn-summary", prjctIdx] as const,
|
|
projectAssignFieldworkSummary: (prjctIdx: number, assignType: number, cmpnIds: string[]) =>
|
|
["assign", "prjct-fieldwork-summary", prjctIdx, assignType, [...cmpnIds].sort()] as const,
|
|
/********** 배정 관련 **********/
|
|
|
|
/********** KON, KIWI 프로젝트 관련 KART에서 받아옴 **********/
|
|
kartProjectList: (itrntPrjctCd: string, userTeam: string, isKiwi: number, keyword: string) =>
|
|
["kart", "project-list", itrntPrjctCd, userTeam, isKiwi, keyword] as const,
|
|
surveyRedirectUrl: (isKiwi: number, pkey: string) =>
|
|
["kart", "survey-redirect-url", isKiwi, pkey] as const,
|
|
/********** KON, KIWI 프로젝트 관련 KART에서 받아옴 **********/
|
|
|
|
/********** 찐 인트라넷 관련 **********/
|
|
internalInfo: () => ["internal", "info"] as const,
|
|
/********** 찐 인트라넷 관련 **********/
|
|
|
|
/********** 인트라넷 관련 **********/
|
|
intranetProjectList: (keyword: string) => ["intranet", "project-list", keyword] as const,
|
|
intranetUsers: () => ["intranet", "user-list"] as const,
|
|
callerTelNumList: () => ["intranet", "caller-tel-num"] as const,
|
|
groupCodeList: () => ["intranet", "group-code-list"] as const,
|
|
/********** 인트라넷 관련 **********/
|
|
|
|
/********** 리스트 관련 **********/
|
|
listHeader: (prjctIdx: number) => ["list", "header", prjctIdx] as const,
|
|
listUploadHistory: (prjctIdx: number) => ["list", "upload-history", prjctIdx] as const,
|
|
listSearch: (prjctIdx: number, body: unknown) => ["list", "search-filter", prjctIdx, body] as const,
|
|
listDetail: (prjctIdx: number, sid: string) => ["list", "search-sid", prjctIdx, sid] as const,
|
|
listEventHistory: (prjctIdx: number, sid: string) => ["list", "event-history", prjctIdx, sid] as const,
|
|
listUpdateHistory: (prjctIdx: number, sid: string) => ["list", "update-history", prjctIdx, sid] as const,
|
|
listReserveBySid: (prjctIdx: number, sid: string) => ["list", "reserve", "sid", prjctIdx, sid] as const,
|
|
/********** 리스트 관련 **********/
|
|
|
|
/********** 예약 알림 관련 **********/
|
|
reserveSearch: (userId: string, fromDt: string, toDt: string) =>
|
|
["reserve", "search", userId, fromDt, toDt] as const,
|
|
/********** 예약 알림 관련 **********/
|
|
|
|
/********** 템플릿 및 발송 관련 **********/
|
|
mainTemplate: (prjctIdx: number, chnnlTy: ChannelType) =>
|
|
["project", "main-template", prjctIdx, chnnlTy] as const,
|
|
templateList: (chnnlTy: ChannelType, itrntPrjctCd: string) =>
|
|
["message-template", "list", chnnlTy, itrntPrjctCd] as const,
|
|
template: (tmplatIdx: number) => ["message-template", "detail", tmplatIdx] as const,
|
|
templateAttachments: (tmplatIdx: number) => ["message-template", "attachment", tmplatIdx] as const,
|
|
templateAttachment: (tmplatIdx: number, fileName: string) =>
|
|
["message-template", "attachment", tmplatIdx, fileName] as const,
|
|
|
|
bulkSendList: (sendTy: number, reqstSvc: string, prjctCd: string) =>
|
|
["message-report", "bulk-list", sendTy, reqstSvc, prjctCd] as const,
|
|
bulkSendDetail: (bulkSendKey: string, pageRequest: unknown) =>
|
|
["message-report", "bulk-detail", bulkSendKey, pageRequest] as const,
|
|
sendResultSummary: (request: unknown) =>
|
|
["message-report", "send-result-summary", request] as const,
|
|
sendResultBySid: (sid: string, prjctCd: string, reqstSvc: string, channelTy?: ChannelType) =>
|
|
["message-report", "send-result", sid, prjctCd, reqstSvc, channelTy] as const,
|
|
/********** 템플릿 및 발송 관련 **********/
|
|
|
|
/********** 컨택/면접 진행 현황 관련 **********/
|
|
userProgress: (prjctIdx: number, eventTy: number, request: unknown) =>
|
|
["progress", "user", prjctIdx, eventTy, request] as const,
|
|
dateProgress: (prjctIdx: number, eventTy: number, request: unknown) =>
|
|
["progress", "date", prjctIdx, eventTy, request] as const,
|
|
lastDateProgress: (prjctIdx: number, eventTy: number, request: unknown) =>
|
|
["progress", "last-date", prjctIdx, eventTy, request] as const,
|
|
/********** 컨택/면접 진행 현황 관련 **********/
|
|
} as const;
|