Note.ts 557 B

12345678910111213141516171819202122232425262728
  1. import Pagination from './Pagination';
  2. export enum AttachedEntityType {
  3. REFLECTION = 'reflection',
  4. }
  5. export type AttachedEntity = {
  6. createdAt: Date;
  7. updatedAt: Date;
  8. id: string;
  9. type: AttachedEntityType;
  10. };
  11. export type Note = {
  12. id: string;
  13. title: string;
  14. body: string;
  15. ranges?: string[]; // will be undefined when the note is not attached to any verse
  16. createdAt: Date;
  17. updatedAt: Date;
  18. saveToQR?: boolean;
  19. attachedEntities?: AttachedEntity[];
  20. };
  21. export type GetAllNotesResponse = {
  22. data: Note[];
  23. pagination: Pagination;
  24. };