From aa4042da691eedbc7543ef00887ba7943313369d Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Fri, 3 Jul 2026 12:04:08 +0900 Subject: [PATCH] =?UTF-8?q?260703=5F01=5FENH:=20=EC=82=AC=EB=82=B4=20?= =?UTF-8?q?=EA=B3=B5=EC=9A=A9=20=ED=83=80=EC=9E=85=20=EB=B0=8F=20noti-hub?= =?UTF-8?q?=EC=9A=A9=20=ED=83=80=EC=9E=85=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 5 +++++ src/noti-hub/index.ts | 1 + src/noti-hub/noti-hub-types.ts | 40 ++++++++++++++++++++++++++++++++++ src/types.ts | 28 ++++++++++++++++++++++++ 4 files changed, 74 insertions(+) create mode 100644 src/noti-hub/index.ts create mode 100644 src/noti-hub/noti-hub-types.ts 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