{"version":3,"sources":["../src/NotificationServicesController/processors/process-onchain-notifications.ts"],"sourcesContent":["import type { INotification } from '../types/notification/notification';\nimport type { OnChainRawNotification } from '../types/on-chain-notification/on-chain-notification';\n\n/**\n * Processes On-Chain notifications to a normalized notification\n *\n * @param notification - On-Chain Notification\n * @returns Normalized Notification\n */\nexport function processOnChainNotification(\n  notification: OnChainRawNotification,\n): INotification {\n  return {\n    ...notification,\n    id: notification.id,\n    createdAt: new Date(notification.created_at).toISOString(),\n    isRead: !notification.unread,\n  };\n}\n"],"mappings":";AASO,SAAS,2BACd,cACe;AACf,SAAO;AAAA,IACL,GAAG;AAAA,IACH,IAAI,aAAa;AAAA,IACjB,WAAW,IAAI,KAAK,aAAa,UAAU,EAAE,YAAY;AAAA,IACzD,QAAQ,CAAC,aAAa;AAAA,EACxB;AACF;","names":[]}