dbdata.ts 690 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. export interface Appointment {
  2. _id: string;
  3. user: string;
  4. title: string;
  5. description: string;
  6. dueDate: Date;
  7. place: string;
  8. duration: number;
  9. times: AppointmentTimes[];
  10. }
  11. export interface AppointmentTimes {
  12. date: Date;
  13. available: boolean;
  14. }
  15. export interface AuthTokenResponse {
  16. token: string;
  17. }
  18. export interface AppointmentDateTimes {
  19. date: Date;
  20. }
  21. export interface AppointmentInputs {
  22. name: string;
  23. type: "text" | "email" | "tel";
  24. }
  25. export interface AppointmentTimeRange {
  26. start: string;
  27. end: string;
  28. }
  29. export interface WeekdayAppointment {
  30. name: string;
  31. active: boolean;
  32. times: AppointmentTimeRange[];
  33. }