oralify-backend
Version:
Express Node CRUD backend for Oralify
92 lines (85 loc) • 2 kB
text/typescript
/*
import {ServiceFormatKey, ServiceType, SpecialityKey, SpecialityType,} from './serviceType';
import {
AppointmentType, AvailabilitySettingsType, DayKey, TimeslotStatus, TimeSlotType,
} from './availabilityExpertTypes';
import {UserType} from './userTypes';
*/
/*const mockUsers: UserType[] = [
{
id: '1',
username: 'johnDoe',
email: 'john@example.com',
services: {
[ServiceFormatKey.video]: [
{
id: '1',
expertId: '1',
specialityId: '1',
description: '1-hour psychology consultation',
price: 50,
duration: 60,
format: ServiceFormatKey.video,
serviceName: 'Psychology Consultation',
},
{
id: '1',
expertId: '1',
specialityId: '1',
description: '1-hour psychology consultation',
price: 50,
duration: 60,
format: ServiceFormatKey.video,
serviceName: 'Psychology Consultation',
},
],
},
},
];
const mockSpecialities: SpecialityType[] = [
{
id: '1',
specialityKey: SpecialityKey.psycho,
name: 'Psychology',
},
];
const mockServices: ServiceType[] = [
{
id: '1',
expertId: '1',
specialityId: '1',
description: '1-hour psychology consultation',
price: 50,
duration: 60,
format: ServiceFormatKey.video,
serviceName: 'Psychology Consultation',
},
];
const mockAvailability: AvailabilitySettingsType[] = [
{
id: '1',
userId: '1',
startTime: '09:00',
endTime: '17:00',
dayOfWeek: DayKey.Thursday,
isAvailable: true,
},
];
const mockAppointments: AppointmentType[] = [
{
id: '1',
serviceId: '1',
userId: '1',
timeSlotId: '1',
status: 'confirmed',
},
];
const mockTimeSlots: TimeSlotType[] = [
{
id: '1',
availabilityId: '1',
startTime: '2023-09-20T09:00:00.000Z',
endTime: '2023-09-20T10:00:00.000Z',
status: TimeslotStatus.confirmed,
},
];*/