/// declare namespace AU { export interface IUserContext { auId: number; firstNames: string; lastName: string; name: string; preferredLanguage: string; userName: string; memberOfGroups: IAdGroup[]; impersonatedUser: IUserContext | null; studentNumber?: string; } export type portalNames = 'mitstudie' | 'minansoegning' | 'kursuskatalog' | 'mitmedarbejdere' | 'adgang' | 'configtools' | 'cloudtools' | 'webtools' | 'serviceinfo'; export interface IPortalContext { name: portalNames; impersonationSetup: IImpersonationSetup; impersonationOptions: IImpersonationOption[]; extraFormContent?: React.ReactElement; deactivateFormContent: ( lang: string, replaceText: string[], replaceWith: string[], portal: AU.IPortalContext, ) => React.ReactElement; } export interface IImpersonationSetup { auid: string; value: string; type: string; phase?: number; realPhase?: number; } export interface IImpersonationOption { value: string; label: string; } export interface IImpersonationContext { canImpersonate: boolean; isImpersonating: boolean; impersonatateError: boolean; } export interface IAdGroup { id: string; name: string; } export interface ICountryCode { da: string; en: string; code: number; important?: boolean | undefined; } export interface IPhoneNumber { prefix: string; number: string; } export interface IError { header: string; message: string; status?: number | undefined; } export interface IPureBuilding { id: string; room: string; } export interface IPureAddress { street: string; zip: string; city: string; country: string; building: IPureBuilding; } export interface IPureDepartment { id: string; name: string; email: string; phone: string; mobile: string; address: IPureAddress; } export interface IPurePerson { id: string; firstName: string; lastName: string; fullName: string; suggestion: string; employeeId: string; photo: string; departments: IPureDepartment[]; } } interface IGenericTranslation { generics: { navigation: { local: { toggle: string; } global: { toggle: string; } } sub_nav: { profile_settings: string; toggle_not_signed_in: string; switch_language: string; toggle_aria_label: string; change_language: string; change_password: string; notifications: { subject_passed: string; mark_as_read: string; subject_failed: string; empty: string; header: string; } } modal: { close: string; } callout: { text: { try_again: string; } } authentication: { sign_out: string; sign_in: string; } user: { au_id: string; student_registration_number: string; copy_student_number: string; copy_auid: string; } actions: { save: string; cancel: string; edit: string; } validation: { confirmed: string; } toolbar: { toggle: string; } accessibility: { horizontal_scroll: { keyboard_instructions: string; forward: string; backward: string; } stepper: { header: { with_procesname: string; no_procesname: string; } } } page_error: { header: string; text: string; } copy_to_clipboard: { label_prefix: string; copied: string; } forms: { character_count: { overflow: { message: { recommended: string; allowed: string; } count: { recommended: { one: string; other: string; } allowed: { one: string; other: string; } } } count_down: { one: string; other: string; } } } } }