- Introduced Zod DTOs for request validation across multiple controllers, replacing inline validation with structured classes for improved maintainability and clarity. - Updated ESLint configuration to enforce a rule against importing Zod directly in BFF controllers, promoting the use of shared domain schemas for request validation. - Removed the SecureErrorMapperService to streamline the security module, as its functionality was deemed unnecessary. - Enhanced various controllers to utilize the new DTOs, ensuring consistent validation and response handling across the application.
31 lines
757 B
TypeScript
31 lines
757 B
TypeScript
/**
|
|
* Notifications Domain
|
|
*
|
|
* Exports all notification-related contracts, schemas, and types.
|
|
* Used for in-app notifications synced with Salesforce email triggers.
|
|
*/
|
|
|
|
export {
|
|
// Enums
|
|
NOTIFICATION_TYPE,
|
|
NOTIFICATION_SOURCE,
|
|
type NotificationTypeValue,
|
|
type NotificationSourceValue,
|
|
// Templates
|
|
NOTIFICATION_TEMPLATES,
|
|
getNotificationTemplate,
|
|
// Schemas
|
|
notificationSchema,
|
|
createNotificationRequestSchema,
|
|
notificationListResponseSchema,
|
|
notificationUnreadCountResponseSchema,
|
|
notificationQuerySchema,
|
|
// Types
|
|
type Notification,
|
|
type CreateNotificationRequest,
|
|
type NotificationTemplate,
|
|
type NotificationListResponse,
|
|
type NotificationUnreadCountResponse,
|
|
type NotificationQuery,
|
|
} from "./schema.js";
|