IMessage missing subscriber and actor types.
Hi all. I notice the IMessage type when I am building my own React headless notification center does not match the actual data the API is returning:
Compare that against what the API says it should return: https://docs.novu.co/notification-center/react/api-reference#the-notification-imessage-model
I want to access the subscriber info here, but the typescript types make no mention of it.
React Notification Center API Reference | Novu
This page contains the complete documentation about the React Notification Center package. You can find here the list of all the components, hooks and props that you can use.
4 Replies
Yes I see repsonse schema is different
This response is as per IMessageEntity along with some fields population
@Engineering What do you think? shall we update this info in doc or I am missing something?
@Pawan Jain I think we should just update the response types to include the populated fields there
hi @dbousamra
Thanks for reporting
We have created an internal ticket, I will keep you posted