mirror of
https://github.com/Paris-est-Ludique/intranet.git
synced 2025-09-12 14:20:08 +02:00
assigners can assign volunteer to a team
This commit is contained in:
@@ -29,6 +29,8 @@ export class Volunteer {
|
||||
|
||||
food = ""
|
||||
|
||||
team = 0
|
||||
|
||||
teamWishes: number[] = []
|
||||
|
||||
teamWishesComment = ""
|
||||
@@ -62,6 +64,7 @@ export const translationVolunteer: { [k in keyof Volunteer]: string } = {
|
||||
tshirtCount: "nbDeTshirts",
|
||||
tshirtSize: "tailleDeTshirts",
|
||||
food: "alimentation",
|
||||
team: "équipe",
|
||||
teamWishes: "enviesEquipe",
|
||||
teamWishesComment: "commentaireEnviesEquipe",
|
||||
hiddenAsks: "questionsCachees",
|
||||
@@ -90,6 +93,7 @@ export const volunteerExample: Volunteer = {
|
||||
tshirtCount: "1",
|
||||
tshirtSize: "Femme M",
|
||||
food: "Végétarien",
|
||||
team: 2,
|
||||
teamWishes: [],
|
||||
teamWishesComment: "",
|
||||
hiddenAsks: [],
|
||||
@@ -146,3 +150,9 @@ export interface VolunteerParticipationDetails {
|
||||
adult: Volunteer["adult"]
|
||||
food: Volunteer["food"]
|
||||
}
|
||||
|
||||
export interface VolunteerTeamAssign {
|
||||
id: Volunteer["id"]
|
||||
volunteer: number
|
||||
team: Volunteer["team"]
|
||||
}
|
||||
|
@@ -6,6 +6,7 @@ import {
|
||||
VolunteerAsks,
|
||||
VolunteerParticipationDetails,
|
||||
VolunteerTeamWishes,
|
||||
VolunteerTeamAssign,
|
||||
VolunteerWithoutId,
|
||||
} from "./volunteers"
|
||||
|
||||
@@ -34,3 +35,6 @@ export const volunteerParticipationDetailsSet =
|
||||
serviceAccessors.securedCustomPost<[number, Partial<VolunteerParticipationDetails>]>(
|
||||
"ParticipationDetailsSet"
|
||||
)
|
||||
|
||||
export const volunteerTeamAssignSet =
|
||||
serviceAccessors.securedCustomPost<[number, Partial<VolunteerTeamAssign>]>("TeamAssignSet")
|
||||
|
Reference in New Issue
Block a user