260914_01_ENH: 1차 완성
This commit is contained in:
141
src/types/kmusical.ts
Normal file
141
src/types/kmusical.ts
Normal file
@@ -0,0 +1,141 @@
|
||||
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<string, string>;
|
||||
userId: string;
|
||||
userName: string;
|
||||
userRole: number;
|
||||
userTeam: string;
|
||||
};
|
||||
|
||||
export type UserFull = {
|
||||
memo: string;
|
||||
userCmpn: string;
|
||||
userDetail: Record<string, string>;
|
||||
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<string, string>;
|
||||
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<string, PerformanceReview>;
|
||||
};
|
||||
Reference in New Issue
Block a user