export type ResponseListParties = ResponseCreateParty[]; export type ResponseCreateParty = { _id: string, name: string, created: string, allowed_extra: AllowedExtraLengths, } export type AllowedExtraLengths = { [key: string]: number }; export type RequestCreateParty = { name: string, allowed_extra: AllowedExtraLengths, } export type ResponseListGuests = Person[]; export type GrammaticalGender = "m" | "f" | "d"; export type ComingStatus = "yes" | "no" | "maybe" | null; export type Person = { _id: string, token: string, name: string, coming: ComingStatus, grammatical_gender: GrammaticalGender, extra: Record, }; export type RequestCreateGuest = { token: string, name: string, coming: ComingStatus, grammatical_gender: GrammaticalGender, extra: Record, }; export type CreatePartyRequest = { name: string, allowed_extra: AllowedExtraLengths, }