types.ts 499 B

123456789101112131415161718192021222324252627
  1. export interface Message {
  2. role: "user" | "assistant"
  3. content: string
  4. }
  5. export interface Record {
  6. id: string
  7. content: string
  8. chatType?: 'MEDICAL' | 'PSYCHOLOGICAL'
  9. createdAt: string
  10. user: {
  11. name: string
  12. lastname?: string
  13. email: string
  14. username?: string
  15. role: string
  16. profileImage?: string | null
  17. createdAt?: string
  18. }
  19. }
  20. export interface PDFOptions {
  21. scale?: number
  22. format?: 'a4' | 'letter'
  23. orientation?: 'portrait' | 'landscape'
  24. margin?: number
  25. }