types.ts 896 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. export type TChat = {
  2. name: string,
  3. lastName: string,
  4. originalName: string,
  5. originalLastName: string,
  6. avatarUrl: string,
  7. avatarsArr: {avatarUrl:string,updatedAt: string}[] | [],
  8. color: string,
  9. online: string,
  10. lastMessage: string,
  11. lastMessageCreatedAt:string,
  12. mute: boolean,
  13. sort:boolean,
  14. seen: number,
  15. seenCompanion: number,
  16. total: number,
  17. watched: boolean,
  18. typing: boolean,
  19. number: string,
  20. pinned: boolean,
  21. _id: string,
  22. companionId: string,
  23. owner: any,
  24. createdAt: string,
  25. updatedAt: string,
  26. __v: number
  27. }
  28. export type TChats = TChat[] | []
  29. export type TLastMessage = {
  30. message: string,
  31. companionId: string,
  32. createdAt: string,
  33. updatedAt: string,
  34. }
  35. export type TLastMessages = TLastMessage[] | []
  36. export type TLastOnline = {
  37. _id: string,
  38. online: string,
  39. updatedAt: string,
  40. }
  41. export type TLastOnlineArr = TLastOnline[] | []