import getServiceAccessors from "./accessors" export class PreVolunteer { id = 0 firstname = "" lastname = "" email = "" mobile = "" alreadyVolunteer = false comment = "" } export const translationPreVolunteer: { [k in keyof PreVolunteer]: string } = { id: "id", firstname: "prenom", lastname: "nom", email: "email", mobile: "telephone", alreadyVolunteer: "dejaBenevole", comment: "commentaire", } const elementName = "PreVolunteer" export type PreVolunteerWithoutId = Omit const { listGet, get, set, add, countGet } = getServiceAccessors< PreVolunteerWithoutId, PreVolunteer >(elementName, translationPreVolunteer) export const preVolunteerListGet = listGet() export const preVolunteerGet = get() export const preVolunteerAdd = add() export const preVolunteerSet = set() export const preVolunteerCountGet = countGet()