diff --git a/package.json b/package.json index b20bf9b..b63c57e 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/src/noti-hub/index.ts b/src/noti-hub/index.ts new file mode 100644 index 0000000..9a67d48 --- /dev/null +++ b/src/noti-hub/index.ts @@ -0,0 +1 @@ +export * from './noti-hub-types.js'; \ No newline at end of file diff --git a/src/noti-hub/noti-hub-types.ts b/src/noti-hub/noti-hub-types.ts new file mode 100644 index 0000000..82c55ea --- /dev/null +++ b/src/noti-hub/noti-hub-types.ts @@ -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; \ No newline at end of file diff --git a/src/types.ts b/src/types.ts index 9b7c8a0..73574b7 100644 --- a/src/types.ts +++ b/src/types.ts @@ -27,3 +27,31 @@ export type PageResponse = { 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; +} \ No newline at end of file