form state rewrite
This commit is contained in:
parent
5e50b85631
commit
b0ea9d13e7
40 changed files with 1123 additions and 1070 deletions
|
@ -3,6 +3,11 @@ export interface AwardViewModel {
|
|||
award: string;
|
||||
}
|
||||
|
||||
export interface CreateOrUpdateAwardViewModel {
|
||||
export interface CreateAwardViewModel {
|
||||
award: string;
|
||||
}
|
||||
|
||||
export interface UpdateAwardViewModel {
|
||||
id: number;
|
||||
award: string;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,13 @@ export interface CommunicationTypeViewModel {
|
|||
fields: Array<string>;
|
||||
}
|
||||
|
||||
export interface CreateOrUpdateCommunicationTypeViewModel {
|
||||
export interface CreateCommunicationTypeViewModel {
|
||||
type: string;
|
||||
fields: Array<string>;
|
||||
}
|
||||
|
||||
export interface UpdateCommunicationTypeViewModel {
|
||||
id: number;
|
||||
type: string;
|
||||
fields: Array<string>;
|
||||
}
|
||||
|
|
|
@ -3,6 +3,11 @@ export interface ExecutivePositionViewModel {
|
|||
position: string;
|
||||
}
|
||||
|
||||
export interface CreateOrUpdateExecutivePositionViewModel {
|
||||
export interface CreateExecutivePositionViewModel {
|
||||
position: string;
|
||||
}
|
||||
|
||||
export interface UpdateExecutivePositionViewModel {
|
||||
id: number;
|
||||
position: string;
|
||||
}
|
||||
|
|
|
@ -3,6 +3,11 @@ export interface MembershipStatusViewModel {
|
|||
status: string;
|
||||
}
|
||||
|
||||
export interface CreateOrUpdateMembershipStatusViewModel {
|
||||
export interface CreateMembershipStatusViewModel {
|
||||
status: string;
|
||||
}
|
||||
|
||||
export interface UpdateMembershipStatusViewModel {
|
||||
id: number;
|
||||
status: string;
|
||||
}
|
||||
|
|
|
@ -4,7 +4,13 @@ export interface QualificationViewModel {
|
|||
description: string | null;
|
||||
}
|
||||
|
||||
export interface CreateOrUpdateQualificationViewModel {
|
||||
export interface CreateQualificationViewModel {
|
||||
qualification: string;
|
||||
description: string | null;
|
||||
}
|
||||
|
||||
export interface UpdateQualificationViewModel {
|
||||
id: number;
|
||||
qualification: string;
|
||||
description: string | null;
|
||||
}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { PermissionObject } from "../../type/permissionTypes";
|
||||
import { RoleViewModel } from "./role.models";
|
||||
import { PermissionObject } from "@/type/permissionTypes";
|
||||
import type { RoleViewModel } from "./role.models";
|
||||
|
||||
export interface UserViewModel {
|
||||
id: number;
|
||||
|
@ -12,7 +12,15 @@ export interface UserViewModel {
|
|||
permissions_total: PermissionObject;
|
||||
}
|
||||
|
||||
export interface CreateOrUpdateUserViewModel {
|
||||
export interface CreateUserViewModel {
|
||||
username: string;
|
||||
mail: string;
|
||||
firstname: string;
|
||||
lastname: string;
|
||||
}
|
||||
|
||||
export interface UpdateUserViewModel {
|
||||
id: number;
|
||||
username: string;
|
||||
mail: string;
|
||||
firstname: string;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue