mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-06-10 09:34:21 +02:00
43 lines
915 B
TypeScript
43 lines
915 B
TypeScript
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<PreVolunteer, "id">
|
|
|
|
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()
|