import ServiceAccessors from "./accessors" import { elementName, Volunteer, VolunteerDayWishes, VolunteerAsks, VolunteerParticipationDetails, VolunteerTeamWishes, VolunteerWithoutId, } from "./volunteers" const serviceAccessors = new ServiceAccessors(elementName) export const volunteerListGet = serviceAccessors.listGet() export const volunteerGet = serviceAccessors.get() export const volunteerPartialAdd = serviceAccessors.customPost<[Partial]>("PartialAdd") export const volunteerSet = serviceAccessors.set() export const volunteerLogin = serviceAccessors.customPost<[{ email: string; password: string }]>("Login") export const volunteerForgot = serviceAccessors.customPost<[{ email: string }]>("Forgot") export const volunteerAsksSet = serviceAccessors.securedCustomPost<[number, Partial]>("AsksSet") export const volunteerTeamWishesSet = serviceAccessors.securedCustomPost<[number, Partial]>("TeamWishesSet") export const volunteerDayWishesSet = serviceAccessors.securedCustomPost<[number, Partial]>("DayWishesSet") export const volunteerParticipationDetailsSet = serviceAccessors.securedCustomPost<[number, Partial]>( "ParticipationDetailsSet" )