261022_03_ENH: 예약 취소 추가

This commit is contained in:
2026-10-22 15:49:14 +09:00
parent 061ef782bc
commit f65dacdec1
9 changed files with 234 additions and 19 deletions

View File

@@ -1,4 +1,11 @@
import type { MessageType, Template, TemplatePurpose, TemplateSummary } from '@kri/common/noti-hub';
import type {
MessageType,
SendCancelBulkRequest,
SendCancelSingleRequest,
Template,
TemplatePurpose,
TemplateSummary,
} from '@kri/common/noti-hub';
import type { ListFilter } from './list';
// 서버 조회 응답은 모든 채널의 템플릿에 tmplatPurpose를 내려준다. 화면 상태에서는 필수로 다룬다.
@@ -30,9 +37,16 @@ export type PhoneVerificationSendData = {
export type SendSingleResponse = {
cmid: string;
/** 수신처를 여러 개 선택한 경우 마지막 발송 건의 식별자 */
sendIdx?: number;
data: Record<string, unknown>;
};
/** 예약 취소 요청. type으로 단건(/cancel/single)·벌크(/cancel/bulk) 경로를 구분한다. */
export type SendCancelRequest =
| ({ type: 'single' } & SendCancelSingleRequest)
| ({ type: 'bulk' } & SendCancelBulkRequest);
export type MessageSendSingleRequest = {
tmplatIdx: number;
resve: boolean;