viewmodels and factories

This commit is contained in:
Julian Krauser 2024-09-16 15:55:41 +02:00
parent 93e27ab440
commit 7cd4e5505b
25 changed files with 501 additions and 69 deletions

View file

@ -0,0 +1,14 @@
import { CommunicationTypeViewModel } from "./communicationType.models";
export interface CommunicationViewModel {
id: number;
preferred: boolean;
mobile: string;
email: string;
city: string;
street: string;
streetNumber: number;
streetNumberAddition: string;
type: CommunicationTypeViewModel;
isNewsletterMain: boolean;
}

View file

@ -1,4 +1,5 @@
import { Salutation } from "../../enums/salutation";
import { MembershipViewModel } from "./membership.models";
export interface MemberViewModel {
id: number;
@ -7,4 +8,6 @@ export interface MemberViewModel {
lastname: string;
nameaffix: string;
birthdate: Date;
firstMembershipEntry?: MembershipViewModel;
lastMembershipEntry?: MembershipViewModel;
}

View file

@ -0,0 +1,7 @@
export interface MemberAwardViewModel {
id: number;
given: boolean;
note?: string;
date: Date;
award: string;
}

View file

@ -0,0 +1,7 @@
export interface MemberExecutivePositionViewModel {
id: number;
note?: string;
start: Date;
end?: Date;
executivePosition: string;
}

View file

@ -0,0 +1,8 @@
export interface MemberQualificationViewModel {
id: number;
note?: string;
start: Date;
end?: Date;
terminationReason?: string;
qualification: string;
}

View file

@ -0,0 +1,8 @@
export interface MembershipViewModel {
id: number;
internalId?: string;
start: Date;
end?: Date;
terminationReason?: string;
status: string;
}