260703_01_ENH: 사내 공용 타입 및 noti-hub용 타입 추가
This commit is contained in:
@@ -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
1
src/noti-hub/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './noti-hub-types.js';
|
||||
40
src/noti-hub/noti-hub-types.ts
Normal file
40
src/noti-hub/noti-hub-types.ts
Normal 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;
|
||||
28
src/types.ts
28
src/types.ts
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user