260703_01_ENH: 사내 공용 타입 및 noti-hub용 타입 추가

This commit is contained in:
2026-07-03 12:04:08 +09:00
parent 59bdc111ea
commit aa4042da69
4 changed files with 74 additions and 0 deletions

View File

@@ -55,6 +55,11 @@
"types": "./dist/jotai/index.d.ts",
"import": "./dist/jotai/index.js",
"default": "./dist/jotai/index.js"
},
"./noti-hub": {
"types": "./dist/noti-hub/index.d.ts",
"import": "./dist/noti-hub/index.js",
"default": "./dist/noti-hub/index.js"
}
},
"files": [

1
src/noti-hub/index.ts Normal file
View File

@@ -0,0 +1 @@
export * from './noti-hub-types.js';

View File

@@ -0,0 +1,40 @@
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;

View File

@@ -27,3 +27,31 @@ export type PageResponse<T> = {
last: boolean;
empty: boolean;
};
export type LoginRequest = {
userId: string;
userPw: string;
};
export type LoginUser = {
userId: string;
userName: string;
userCmpn: string;
userTeam: string;
userRole: number;
};
export type ExcelUploadResult = {
totalCount: number;
successCount: number;
failCount: number;
hasErrorFile: boolean;
errorFileName: string;
errorFileBase64: string;
}
export type DataVerification = {
success: boolean;
fieldName : string;
errMessage: string;
}