[feat] negodata: 알림함 — 견적 마감 결과(낙찰/재생성/결렬) 자동 통지

- company.notifications 테이블 + NotificationType(SUCCESS/REGENERATED/FAILURE)
- 백엔드 알림 조회/읽음 API + close_and_decide 결과 분기마다 알림 생성
- 헤더 알림 벨(안읽음 배지) + 알림 페이지(읽음·딥링크)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
minaChoiandClaude Opus 4.8 committed 2026-06-30 17:24:59 +09:00
1 parent b42cc41b5e
commit 1d111a031e
30 files changed
+995 -3

No files matched your search

@@ -70,9 +70,17 @@ export * from './itemDataUpdatedAt';
export * from './itemDataVatYn';
export * from './listCardsParams';
export * from './listItemsParams';
export * from './listNotificationsParams';
export * from './listQuotationsParams';
export * from './listSuppliersParams';
export * from './listUsersParams';
export * from './notificationData';
export * from './notificationDataCreatedAt';
export * from './notificationDataData';
export * from './notificationDataReadAt';
export * from './notificationDataRefQtId';
export * from './notificationDataRefSessionId';
export * from './notificationType';
export * from './quotationCardData';
export * from './quotationCardDataCondition';
export * from './quotationCardDataEditScript';
@@ -261,6 +269,10 @@ export * from './resMeContactNumber';
export * from './resMeEmail';
export * from './resMeMsg';
export * from './resMeName';
export * from './resNotificationList';
export * from './resNotificationListMsg';
export * from './resNotificationRead';
export * from './resNotificationReadMsg';
export * from './resNotifySessions';
export * from './resNotifySessionsMsg';
export * from './resQuotation';
@@ -0,0 +1,18 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export type ListNotificationsParams = {
/**
* @minimum 1
*/
page?: number;
/**
* @minimum 1
* @maximum 100
*/
size?: number;
};
@@ -0,0 +1,22 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
import type { NotificationType } from './notificationType';
import type { NotificationDataRefQtId } from './notificationDataRefQtId';
import type { NotificationDataRefSessionId } from './notificationDataRefSessionId';
import type { NotificationDataData } from './notificationDataData';
import type { NotificationDataReadAt } from './notificationDataReadAt';
import type { NotificationDataCreatedAt } from './notificationDataCreatedAt';
export interface NotificationData {
notification_id: string;
type: NotificationType;
ref_qt_id?: NotificationDataRefQtId;
ref_session_id?: NotificationDataRefSessionId;
data?: NotificationDataData;
read_at?: NotificationDataReadAt;
created_at?: NotificationDataCreatedAt;
}
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export type NotificationDataCreatedAt = string | null;
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export type NotificationDataData = unknown | null;
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export type NotificationDataReadAt = string | null;
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export type NotificationDataRefQtId = string | null;
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export type NotificationDataRefSessionId = string | null;
@@ -0,0 +1,20 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
/**
* company.notifications.type 코드값. 견적 생애 이벤트를 작성자에게 통지. 마감 결과 3종(SUCCESS/REGENERATED/FAILURE)은 close_and_decide 와 1:1. 네이밍은 KTC.
*/
export type NotificationType = typeof NotificationType[keyof typeof NotificationType];
// eslint-disable-next-line @typescript-eslint/no-redeclare
export const NotificationType = {
SUCCESS: 1,
REGENERATED: 2,
FAILURE: 3,
CREATED: 4,
} as const;
@@ -0,0 +1,19 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
import type { ErrorInfo } from './errorInfo';
import type { ResNotificationListMsg } from './resNotificationListMsg';
import type { NotificationData } from './notificationData';
export interface ResNotificationList {
result?: ErrorInfo;
msg?: ResNotificationListMsg;
total?: number;
page?: number;
size?: number;
notifications?: NotificationData[];
unread?: number;
}
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export type ResNotificationListMsg = string | null;
@@ -0,0 +1,13 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
import type { ErrorInfo } from './errorInfo';
import type { ResNotificationReadMsg } from './resNotificationReadMsg';
export interface ResNotificationRead {
result?: ErrorInfo;
msg?: ResNotificationReadMsg;
}
@@ -0,0 +1,8 @@
/**
* Generated by orval v7.21.0 🍺
* Do not edit manually.
* Negodata Api Server
* OpenAPI spec version: 0.1.0
*/
export type ResNotificationReadMsg = string | null;