member data reads and display

This commit is contained in:
Julian Krauser 2024-09-17 16:44:02 +02:00
parent c1a6c0040d
commit 5eeea631c0
57 changed files with 1149 additions and 110 deletions

View file

@ -12,3 +12,25 @@ export interface CommunicationViewModel {
type: CommunicationTypeViewModel;
isNewsletterMain: boolean;
}
export interface CreateCommunicationViewModel {
preferred: boolean;
mobile: string;
email: string;
city: string;
street: string;
streetNumber: number;
streetNumberAddition: string;
typeId: number;
}
export interface UpdateCommunicationViewModel {
id: number;
preferred: boolean;
mobile: string;
email: string;
city: string;
street: string;
streetNumber: number;
streetNumberAddition: string;
}

View file

@ -1,4 +1,5 @@
import { Salutation } from "../../enums/salutation";
import { Salutation } from "@/enums/salutation";
import type { CommunicationViewModel } from "./communication.models";
import type { MembershipViewModel } from "./membership.models";
export interface MemberViewModel {
@ -10,4 +11,23 @@ export interface MemberViewModel {
birthdate: Date;
firstMembershipEntry?: MembershipViewModel;
lastMembershipEntry?: MembershipViewModel;
sendNewsletter?: CommunicationViewModel;
preferredCommunication?: Array<CommunicationViewModel>;
}
export interface CreateMemberViewModel {
salutation: Salutation;
firstname: string;
lastname: string;
nameaffix: string;
birthdate: Date;
}
export interface UpdateMemberViewModel {
id: number;
salutation: Salutation;
firstname: string;
lastname: string;
nameaffix: string;
birthdate: Date;
}

View file

@ -5,3 +5,18 @@ export interface MemberAwardViewModel {
date: Date;
award: string;
}
export interface CreateMemberAwardViewModel {
given: boolean;
note?: string;
date: Date;
awardId: number;
}
export interface UpdateMemberAwardViewModel {
id: number;
given: boolean;
note?: string;
date: Date;
awardId: number;
}

View file

@ -5,3 +5,18 @@ export interface MemberExecutivePositionViewModel {
end?: Date;
executivePosition: string;
}
export interface CreateMemberExecutivePositionViewModel {
note?: string;
start: Date;
end?: Date;
executivePositionId: number;
}
export interface UpdateMemberExecutivePositionViewModel {
id: number;
note?: string;
start: Date;
end?: Date;
executivePositionId: number;
}

View file

@ -6,3 +6,20 @@ export interface MemberQualificationViewModel {
terminationReason?: string;
qualification: string;
}
export interface CreateMemberQualificationViewModel {
note?: string;
start: Date;
end?: Date;
terminationReason?: string;
qualificationId: string;
}
export interface UpdateMemberQualificationViewModel {
id: number;
note?: string;
start: Date;
end?: Date;
terminationReason?: string;
qualificationId: string;
}

View file

@ -6,3 +6,20 @@ export interface MembershipViewModel {
terminationReason?: string;
status: string;
}
export interface CreateMembershipViewModel {
internalId?: string;
start: Date;
end?: Date;
terminationReason?: string;
statusId: number;
}
export interface UpdateMembershipViewModel {
id: number;
internalId?: string;
start: Date;
end?: Date;
terminationReason?: string;
statusId: number;
}

View file

@ -1,4 +1,4 @@
import { PermissionObject } from "../../type/permissionTypes";
import { PermissionObject } from "@/type/permissionTypes";
export interface RoleViewModel {
id: number;

View file

@ -1,4 +1,4 @@
import { PermissionObject } from "@/type/permissionTypes";
import type { PermissionObject } from "@/types/permissionTypes";
import type { RoleViewModel } from "./role.models";
export interface UserViewModel {