Start to build edit member form

This commit is contained in:
2023-08-08 13:55:51 +02:00
parent eacf3b0700
commit d07dfd6596
7 changed files with 322 additions and 1 deletions

View File

@ -1,16 +1,37 @@
import { APIClient } from "./ApiClient";
interface LenConstraint {
interface NumberConstraint {
min: number;
max: number;
}
export interface LenConstraint {
min: number;
max: number;
}
interface Constraints {
date_year: NumberConstraint;
date_month: NumberConstraint;
date_day: NumberConstraint;
photo_allowed_types: string[];
photo_max_size: number;
mail_len: LenConstraint;
user_name_len: LenConstraint;
password_len: LenConstraint;
family_name_len: LenConstraint;
invitation_code_len: LenConstraint;
member_first_name: LenConstraint;
member_last_name: LenConstraint;
member_birth_last_name: LenConstraint;
member_email: LenConstraint;
member_phone: LenConstraint;
member_address: LenConstraint;
member_city: LenConstraint;
member_postal_code: LenConstraint;
member_country: LenConstraint;
member_sex: LenConstraint;
member_note: LenConstraint;
}
interface OIDCProvider {
@ -18,10 +39,24 @@ interface OIDCProvider {
name: string;
}
export interface Country {
code: string;
en: string;
fr: string;
}
export interface CouplesStates {
code: string;
en: string;
fr: string;
}
export interface ServerConfig {
constraints: Constraints;
mail: string;
oidc_providers: OIDCProvider[];
countries: Country[];
couples_states: CouplesStates[];
}
let config: ServerConfig | null = null;