- 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.
33 lines
814 B
TypeScript
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";
|