barsa fcc9bc247e Refactor Controllers to Utilize Zod DTOs for Parameter Validation
- Updated InvoicesController, NotificationsController, OrdersController, and SubscriptionsController to replace inline parameter validation with Zod DTOs, enhancing code maintainability and clarity.
- Introduced new DTOs for invoice and notification ID parameters, ensuring consistent validation across endpoints.
- Refactored service method calls to utilize the new DTOs, improving type safety and reducing potential errors.
- Cleaned up unused imports and optimized code structure for better readability.
2025-12-26 13:40:10 +09:00

33 lines
814 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,
notificationIdParamSchema,
// Types
type Notification,
type CreateNotificationRequest,
type NotificationTemplate,
type NotificationListResponse,
type NotificationUnreadCountResponse,
type NotificationQuery,
type NotificationIdParam,
} from "./schema.js";