export const PDF_CONVERT_STATUS = { IN_PROGRESS: 0, COMPLETED: 1, NOT_TARGET: 8, FAILED: 9, } as const; export type PdfConvertStatus = typeof PDF_CONVERT_STATUS[keyof typeof PDF_CONVERT_STATUS]; // Code export type Code = { codeGroup: string; codeGroupLabel: string; codeLabel: string; codeValue: number; memo: string; }; // User export type UserCompact = { userCmpn: string; userDetail: Record; userId: string; userName: string; userRole: number; userTeam: string; }; export type UserFull = { memo: string; userCmpn: string; userDetail: Record; userId: string; userName: string; userPw: string; userRole: number; userTeam: string; }; // Assign export type PerformanceAssign = { assignStatus: number; assignUser: string; performanceId: string; reviewSlot: number; }; export type PerformanceAssignRequest = { performanceId: string; reviewSlot: number; userId: string; }; export type PerformanceApplyCount = { applyCnt: number; performanceId: string; }; export type MonitoringApplyUser = { performanceId: string; user: UserCompact; userId: string; }; export type AssignUserCount = { assignCount: number; assignUser: string; }; // Performance export type PerformanceStaff = { id: number; performanceId: string; staffEmail: string; staffName: string; staffTel1: string; staffTel2: string; staffType: number; }; export type PerformanceMonitoringSchedule = { id: number; monitoringAddress: string; monitoringDate: string; monitoringTimeInfo: string; performanceId: string; }; export const REVIEW_STATUS = { PENDING: 0, DONE: 10, } as const; export type ReviewStatus = typeof REVIEW_STATUS[keyof typeof REVIEW_STATUS]; export type PerformanceReview = { pdfConvert: PdfConvertStatus; pdfFileName: string; performanceId: string; regUser: string; reviewDt: string; reviewSlot: number; reviewStatus: ReviewStatus; uploadFileName: string; }; export const REVIEW_TYPE = { MONITORING: 1, CONSULTING: 2, } as const; export type ReviewType = typeof REVIEW_TYPE[keyof typeof REVIEW_TYPE]; export type PerformanceReviewSlot = { reviewSlot: number; reviewType: ReviewType; reviewLabel: string; }; export type PerformanceCompact = { performanceNo: number; performanceId: string; artistName: string; businessType: number; performanceArea: number; performanceDetail: Record; performanceDtInfo: string; performanceMemo: string; performanceMonitoringSchedule: PerformanceMonitoringSchedule; performanceName: string; performanceStaff: PerformanceStaff[]; performanceStartMonth: number; performanceTimeInfo: string; ticketReservationMemo: string; ticketReservationStatus: number; }; export type PerformanceFull = PerformanceCompact & { performanceAssignList: PerformanceAssign[]; performanceReviewMap: Record; }; // Request Form (공연별 신청서 파일) export const REQUEST_FORM_TYPE = { PUBLIC_OFFERING: 1, // 공모신청서 ISSUANCE: 2, // 교부신청서 } as const; export type RequestFormType = typeof REQUEST_FORM_TYPE[keyof typeof REQUEST_FORM_TYPE]; /* * performanceDetail에 양식별 파일명이 담기는 key. * 값은 파일명만이며 저장 경로가 아니므로, 다운로드는 반드시 다운로드 API를 호출한다. */ export const REQUEST_FORM_DETAIL_KEY: Record = { [REQUEST_FORM_TYPE.PUBLIC_OFFERING]: "PublicOfferingRequestForm", [REQUEST_FORM_TYPE.ISSUANCE]: "IssuanceRequestForm", }; export const REQUEST_FORM_LABEL: Record = { [REQUEST_FORM_TYPE.PUBLIC_OFFERING]: "공모신청서", [REQUEST_FORM_TYPE.ISSUANCE]: "교부신청서", };