From bf94572460e53c4579d49e17902d3d1a8448525b Mon Sep 17 00:00:00 2001 From: kric_jspark Date: Mon, 6 Jul 2026 14:31:43 +0900 Subject: [PATCH] =?UTF-8?q?260704=5F01=5FENH:=20noti=20hub=20=EC=9A=A9=20?= =?UTF-8?q?=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 | 2 +- src/noti-hub/noti-hub-types.ts | 77 +++++++++++++++++++++++++++++++++- src/types.ts | 5 +++ 3 files changed, 82 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 30c5412..ac4e6d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kri/common", - "version": "0.14.0", + "version": "0.15.0", "description": "KRI 프런트엔드 공통 유틸리티", "type": "module", "main": "./dist/index.js", diff --git a/src/noti-hub/noti-hub-types.ts b/src/noti-hub/noti-hub-types.ts index 82c55ea..eb87caf 100644 --- a/src/noti-hub/noti-hub-types.ts +++ b/src/noti-hub/noti-hub-types.ts @@ -37,4 +37,79 @@ export type TemplateEmail = TemplateBasic & { sendEml: string; } -export type Template = TemplateSms | TemplateEmail; \ No newline at end of file +export type Template = TemplateSms | TemplateEmail; + +export type BulkSendCreateRequest = { + reqstCmpn: string; + reqstUser: string; + reqstSvc: string; + prjctCd?: string; + tmplatIdx: number; + resve: boolean; + sendDt?: string; + trgtCnt: number; +}; + +export type DestInfo = { + sid?: string; + destEml?: string; + destTel?: string; + destNm?: string; + msgParam?: Record; +}; + +export type SendRequestBulk = { + sendEml?: string; + sendTel?: string; + sendNm?: string; + bulkSendKey: string; + destInfoList: DestInfo[]; +}; + +export type BulkSendResponse = { + bulkSendKey: string; + requestCount: number; + acceptCount: number; + failCount: number; +}; + +export type BulkSendInfo = { + bulkSendKey: string; + reqstSvc: string; + prjctCd: string; + tmplatIdx?: number; + resve: boolean; + sendDt: string; + trgtCnt: number; + sendCnt: number; + succesCnt: number; + failCnt: number; + completeDt?: string; + regUser?: string; + regDt?: string; +}; + +export type SendInfo = { + cmid: string; + bulkSendKey?: string; + sendTyCode: number; + sendTyLabel: string; + resve: boolean; + sendStatusCode: number; + sendStatusLabel: string; + resultCode: number; + resultLabel: string; + reqstSvc: string; + prjctCd: string; + tmplatIdx?: number; + sendFrom?: string; + sendNm?: string; + sendDt: string; + sid: string; + destTo?: string; + destNm?: string; + reportDt?: string; + regCmpn: string; + regUser: string; + regDt: string; +}; \ No newline at end of file diff --git a/src/types.ts b/src/types.ts index 73574b7..e4ece89 100644 --- a/src/types.ts +++ b/src/types.ts @@ -6,6 +6,11 @@ export type EnumLikeValue> = ValueOf; export type SortDirection = "asc" | "desc"; +export type FileResponse = { + fileName: string; + fileBase64?: string; +}; + export type PageRequest = { pageIndex: number; pageSize: number;