export type VagaroMerchantModelAppDetailRequest = {businessID: unknown, loginUserID?: number | undefined, device?: string | undefined, version?: string | undefined, pageIndex?: number | undefined, pageSize?: number | undefined, deviceID?: string | undefined, osVersion?: string | undefined, groupId?: string | undefined, isGroupWiseCall?: boolean | undefined, isReadOnly?: boolean | undefined, clientId?: string | undefined, clientSecret?: string | undefined, vbi?: string | undefined, vui?: string | undefined, strLoginUserId?: string | undefined, strBusinessId?: string | undefined, enc_BusinessID?: string | undefined, enc_LoginUserID?: string | undefined, appointmentId: number, eventType?: number | undefined, ruleID?: number | undefined, selectedDate?: string | undefined, isReccuring?: boolean | undefined, isAllowDeposit?: boolean | undefined, isRequireNotesAndFiles?: boolean | undefined, isPTO?: boolean | undefined, enc_AppointmentId?: string | undefined, enc_RuleID?: string | undefined}; export type CreateApiGroupApiVVersionAppointmentGetappointmentdetailArgs = {group: string, version: string, body: VagaroMerchantModelAppDetailRequest}; export type CreateApiGroupApiVVersionAppointmentGetappointmentdetailOptions = {baseUrl: string, fetch?: typeof fetch | undefined}; /** * Get Appointment Detail * * POST /{group}/api/v{version}/appointment/getappointmentdetail */ export const createApiGroupApiVVersionAppointmentGetappointmentdetail = async (args: CreateApiGroupApiVVersionAppointmentGetappointmentdetailArgs, options: CreateApiGroupApiVVersionAppointmentGetappointmentdetailOptions) => { const {baseUrl, fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") const url = `${baseUrl.replace(/\/+$/, '')}/${encodeURIComponent(String(args.group))}/api/v${encodeURIComponent(String(args.version))}/appointment/getappointmentdetail${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };