Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | 1x 1x 1x 13x 13x 13x 13x 13x 13x 13x 13x 13x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x | import { AppointmentDTO } from "@/api/models/AppointmentDTO";
import { GlobalState } from "@/types/GlobalState";
import { VUE_APP_ZMS_API_MYAPPOINTMENTS_ENDPOINT } from "@/utils/Constants";
import { request } from "./ZMSAppointmentAPI";
export function getMyAppointments(
globalState: GlobalState
): Promise<AppointmentDTO[]> {
return request({
globalState,
method: "GET",
path: VUE_APP_ZMS_API_MYAPPOINTMENTS_ENDPOINT,
forceAuth: true,
});
}
export async function getAppointmentDetails(
globalState: GlobalState,
processId: string
): Promise<AppointmentDTO> {
const responseData: AppointmentDTO[] = await request({
globalState,
method: "GET",
path: VUE_APP_ZMS_API_MYAPPOINTMENTS_ENDPOINT,
params: {
filterId: processId,
},
forceAuth: true,
});
return responseData[0];
}
|