90 lines
1.7 KiB
TypeScript
90 lines
1.7 KiB
TypeScript
|
/** Protocol Models */
|
||
|
export interface ProtocolViewModel {
|
||
|
id: number;
|
||
|
title: string;
|
||
|
date: Date;
|
||
|
starttime: Date;
|
||
|
endtime: Date;
|
||
|
summary: string;
|
||
|
}
|
||
|
export interface CreateProtocolViewModel {
|
||
|
title: string;
|
||
|
date: Date;
|
||
|
}
|
||
|
export interface SyncProtocolViewModel {
|
||
|
title: string;
|
||
|
date: Date;
|
||
|
starttime: Date;
|
||
|
endtime: Date;
|
||
|
summary: string;
|
||
|
}
|
||
|
|
||
|
/** Protocol Agenda Models */
|
||
|
export interface ProtocolAgendaViewModel {
|
||
|
id: number;
|
||
|
topic: string;
|
||
|
context: string;
|
||
|
protocolId: number;
|
||
|
}
|
||
|
export interface SyncProtocolAgendaViewModel {
|
||
|
id: number;
|
||
|
topic: string;
|
||
|
context: string;
|
||
|
}
|
||
|
|
||
|
/** Protocol Decision Models */
|
||
|
export interface ProtocolDecisionViewModel {
|
||
|
id: number;
|
||
|
topic: string;
|
||
|
context: string;
|
||
|
protocolId: number;
|
||
|
}
|
||
|
export interface SyncProtocolDecisionViewModel {
|
||
|
id: number;
|
||
|
topic: string;
|
||
|
context: string;
|
||
|
}
|
||
|
|
||
|
/** Protocol Presence Models */
|
||
|
export interface ProtocolPresenceViewModel {
|
||
|
memberId: string;
|
||
|
absent: boolean;
|
||
|
excused: boolean;
|
||
|
protocolId: number;
|
||
|
}
|
||
|
export interface SyncProtocolPresenceViewModel {
|
||
|
presence: Array<{
|
||
|
memberId: string;
|
||
|
absent: boolean;
|
||
|
excused: boolean;
|
||
|
}>;
|
||
|
}
|
||
|
|
||
|
/** Protocol Voting Models */
|
||
|
export interface ProtocolVotingViewModel {
|
||
|
id: number;
|
||
|
topic: string;
|
||
|
context: string;
|
||
|
favour: number;
|
||
|
abstain: number;
|
||
|
against: number;
|
||
|
protocolId: number;
|
||
|
}
|
||
|
export interface SyncProtocolVotingViewModel {
|
||
|
id: number;
|
||
|
topic: string;
|
||
|
context: string;
|
||
|
favour: number;
|
||
|
abstain: number;
|
||
|
against: number;
|
||
|
}
|
||
|
|
||
|
/** Protocol Printout Models */
|
||
|
export interface ProtocolPrintoutViewModel {
|
||
|
id: number;
|
||
|
title: string;
|
||
|
iteration: number;
|
||
|
createdAt: Date;
|
||
|
protocolId: number;
|
||
|
}
|