260704_01_ENH: noti hub 용 타입 추가
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@kri/common",
|
"name": "@kri/common",
|
||||||
"version": "0.14.0",
|
"version": "0.15.0",
|
||||||
"description": "KRI 프런트엔드 공통 유틸리티",
|
"description": "KRI 프런트엔드 공통 유틸리티",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
@@ -37,4 +37,79 @@ export type TemplateEmail = TemplateBasic & {
|
|||||||
sendEml: string;
|
sendEml: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Template = TemplateSms | TemplateEmail;
|
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<string, string>;
|
||||||
|
};
|
||||||
|
|
||||||
|
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;
|
||||||
|
};
|
||||||
@@ -6,6 +6,11 @@ export type EnumLikeValue<T extends Record<string, unknown>> = ValueOf<T>;
|
|||||||
|
|
||||||
export type SortDirection = "asc" | "desc";
|
export type SortDirection = "asc" | "desc";
|
||||||
|
|
||||||
|
export type FileResponse = {
|
||||||
|
fileName: string;
|
||||||
|
fileBase64?: string;
|
||||||
|
};
|
||||||
|
|
||||||
export type PageRequest<TSortBy extends string = string> = {
|
export type PageRequest<TSortBy extends string = string> = {
|
||||||
pageIndex: number;
|
pageIndex: number;
|
||||||
pageSize: number;
|
pageSize: number;
|
||||||
|
|||||||
Reference in New Issue
Block a user