Skip to content

Commit

Permalink
Rename schedule api file to be consistent with other api file namings
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Feb 11, 2025
1 parent 9f223f8 commit 27714f7
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/Patient/PatientDetailsTab/Appointments.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { PatientProps } from "@/components/Patient/PatientDetailsTab";

import query from "@/Utils/request/query";
import { formatDateTime, formatName } from "@/Utils/utils";
import scheduleApis from "@/types/scheduling/scheduleApis";
import scheduleApis from "@/types/scheduling/scheduleApi";

export const Appointments = (props: PatientProps) => {
const { patientData, facilityId, patientId } = props;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
} from "@/types/questionnaire/form";
import { Question } from "@/types/questionnaire/question";
import { CreateAppointmentQuestion } from "@/types/scheduling/schedule";
import scheduleApis from "@/types/scheduling/scheduleApis";
import scheduleApis from "@/types/scheduling/scheduleApi";
import { UserBase } from "@/types/user/user";

interface FollowUpVisitQuestionProps {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Users/UserAvailabilityTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ import {
ScheduleException,
ScheduleTemplate,
} from "@/types/scheduling/schedule";
import scheduleApis from "@/types/scheduling/scheduleApis";
import scheduleApis from "@/types/scheduling/scheduleApi";
import { UserBase } from "@/types/user/user";

type Props = {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Appointments/AppointmentDetail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import {
AppointmentFinalStatuses,
AppointmentUpdateRequest,
} from "@/types/scheduling/schedule";
import scheduleApis from "@/types/scheduling/scheduleApis";
import scheduleApis from "@/types/scheduling/scheduleApi";

import { AppointmentSlotPicker } from "./components/AppointmentSlotPicker";

Expand Down
2 changes: 1 addition & 1 deletion src/pages/Appointments/AppointmentsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ import {
AppointmentStatuses,
TokenSlot,
} from "@/types/scheduling/schedule";
import scheduleApis from "@/types/scheduling/scheduleApis";
import scheduleApis from "@/types/scheduling/scheduleApi";

interface QueryParams {
practitioner: string | null;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Appointments/BookAppointment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import useAppHistory from "@/hooks/useAppHistory";
import mutate from "@/Utils/request/mutate";
import query from "@/Utils/request/query";
import { formatDisplayName, formatName } from "@/Utils/utils";
import scheduleApis from "@/types/scheduling/scheduleApis";
import scheduleApis from "@/types/scheduling/scheduleApi";

import { AppointmentSlotPicker } from "./components/AppointmentSlotPicker";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import {
useAvailabilityHeatmap,
} from "@/pages/Appointments/utils";
import { TokenSlot } from "@/types/scheduling/schedule";
import scheduleApis from "@/types/scheduling/scheduleApis";
import scheduleApis from "@/types/scheduling/scheduleApi";

interface AppointmentSlotPickerProps {
facilityId: string;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Appointments/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
AvailabilityHeatmapResponse,
TokenSlot,
} from "@/types/scheduling/schedule";
import scheduleApis from "@/types/scheduling/scheduleApis";
import scheduleApis from "@/types/scheduling/scheduleApi";

export const groupSlotsByAvailability = (slots: TokenSlot[]) => {
const result: {
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Scheduling/ScheduleExceptions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import Loading from "@/components/Common/Loading";
import mutate from "@/Utils/request/mutate";
import { formatTimeShort } from "@/Utils/utils";
import { ScheduleException } from "@/types/scheduling/schedule";
import scheduleApis from "@/types/scheduling/scheduleApis";
import scheduleApis from "@/types/scheduling/scheduleApi";

interface Props {
items?: ScheduleException[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import {
import mutate from "@/Utils/request/mutate";
import { Time } from "@/Utils/types";
import { dateQueryString } from "@/Utils/utils";
import scheduleApis from "@/types/scheduling/scheduleApis";
import scheduleApis from "@/types/scheduling/scheduleApi";

interface Props {
facilityId: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import { Time } from "@/Utils/types";
import { dateQueryString } from "@/Utils/utils";
import { getSlotsPerSession, getTokenDuration } from "@/pages/Scheduling/utils";
import { ScheduleAvailabilityCreateRequest } from "@/types/scheduling/schedule";
import scheduleApis from "@/types/scheduling/scheduleApis";
import scheduleApis from "@/types/scheduling/scheduleApi";

interface Props {
facilityId: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
ScheduleAvailabilityCreateRequest,
ScheduleTemplate,
} from "@/types/scheduling/schedule";
import scheduleApis from "@/types/scheduling/scheduleApis";
import scheduleApis from "@/types/scheduling/scheduleApi";

export default function EditScheduleTemplateSheet({
template,
Expand Down
File renamed without changes.

0 comments on commit 27714f7

Please sign in to comment.