41 lines
855 B
TypeScript
41 lines
855 B
TypeScript
export type Template = {
|
|
itrntPrjctCd: string;
|
|
tmplatTy: number;
|
|
tmplatNm: string;
|
|
tmplatTitle: string;
|
|
tmplatBody: string;
|
|
senderKey?: string;
|
|
kkoTmplatCd?: string;
|
|
nationCd?: string;
|
|
atchFl?: string;
|
|
delayTime?: number;
|
|
sendTel?: string;
|
|
sendEml?: string;
|
|
sendNm: string;
|
|
tmplatIdx: number;
|
|
};
|
|
|
|
export type SmsDestination = {
|
|
sid?: string;
|
|
destTel: string;
|
|
destNm: string;
|
|
msgParam?: Record<string, string>;
|
|
};
|
|
|
|
export type SaveTemplateRequest = Pick<Template, "tmplatIdx" | "tmplatNm" | "tmplatTitle" | "tmplatBody" | "sendTel">;
|
|
|
|
export type SendSmsBulkRequest = {
|
|
templateIdx: number;
|
|
reqstCmpn: string;
|
|
reqstUser: string;
|
|
reqstSvc: string;
|
|
destinations: SmsDestination[];
|
|
};
|
|
|
|
export type BulkSendResponse = {
|
|
bulkSendKey: string;
|
|
requestCount: number;
|
|
acceptCount: number;
|
|
failCount: number;
|
|
};
|