Documentation
¶
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type GeneratedExamResolver
- type MutationResolver
- type PlanEntryResolver
- type PlannedExamResolver
- type PlannedRoomResolver
- type QueryResolver
- type ResolverRoot
- type RoomsForSlotResolver
- type SubscriptionResolver
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct {
AnCode struct {
Ancode func(childComplexity int) int
}
AnnyBooking struct {
BlockerEndDate func(childComplexity int) int
BlockerStartDate func(childComplexity int) int
BookingGroupIdentifier func(childComplexity int) int
CanEdit func(childComplexity int) int
CancelableUntil func(childComplexity int) int
CanceledAt func(childComplexity int) int
ChargedDuration func(childComplexity int) int
CreatedAt func(childComplexity int) int
Description func(childComplexity int) int
EndDate func(childComplexity int) int
HasCustomDescription func(childComplexity int) int
IsBlocker func(childComplexity int) int
IsEditable func(childComplexity int) int
ManuallyCreated func(childComplexity int) int
Note func(childComplexity int) int
Number func(childComplexity int) int
PersonalizationName func(childComplexity int) int
Room func(childComplexity int) int
Self func(childComplexity int) int
StartDate func(childComplexity int) int
Status func(childComplexity int) int
UpdatedAt func(childComplexity int) int
}
BalanceReport struct {
Invigilators func(childComplexity int) int
MaxOver func(childComplexity int) int
MaxUnder func(childComplexity int) int
Over func(childComplexity int) int
Satisfied func(childComplexity int) int
ToleranceMin func(childComplexity int) int
Under func(childComplexity int) int
WithinTolerance func(childComplexity int) int
}
BlockedRoom struct {
Day func(childComplexity int) int
Reason func(childComplexity int) int
Room func(childComplexity int) int
Slot func(childComplexity int) int
}
Conflict struct {
AnCode func(childComplexity int) int
NumberOfStuds func(childComplexity int) int
}
ConflictPerProgram struct {
Conflicts func(childComplexity int) int
Program func(childComplexity int) int
}
Conflicts struct {
AnCode func(childComplexity int) int
Conflicts func(childComplexity int) int
MainExamer func(childComplexity int) int
Module func(childComplexity int) int
}
ConflictsPerProgramAncode struct {
Ancode func(childComplexity int) int
Conflicts func(childComplexity int) int
Program func(childComplexity int) int
}
ConnectedExam struct {
Errors func(childComplexity int) int
OtherPrimussExams func(childComplexity int) int
PrimussExams func(childComplexity int) int
ZpaExam func(childComplexity int) int
}
Constraints struct {
Ancode func(childComplexity int) int
ExcludeDays func(childComplexity int) int
FixedDay func(childComplexity int) int
FixedTime func(childComplexity int) int
NotPlannedByMe func(childComplexity int) int
Online func(childComplexity int) int
PossibleDays func(childComplexity int) int
RoomConstraints func(childComplexity int) int
SameSlot func(childComplexity int) int
}
CoverageReport struct {
Positions func(childComplexity int) int
Unfilled func(childComplexity int) int
}
DistributionBucket struct {
Count func(childComplexity int) int
Invigilators func(childComplexity int) int
}
EmailAttachmentInfo struct {
ContentType func(childComplexity int) int
Filename func(childComplexity int) int
Key func(childComplexity int) int
Kind func(childComplexity int) int
Size func(childComplexity int) int
UploadedAt func(childComplexity int) int
}
Emails struct {
AdditionalExamer func(childComplexity int) int
Fs func(childComplexity int) int
Lbas func(childComplexity int) int
LbasLastSemester func(childComplexity int) int
Profs func(childComplexity int) int
RoomManagement func(childComplexity int) int
Sekr func(childComplexity int) int
}
EnhancedPrimussExam struct {
Conflicts func(childComplexity int) int
Exam func(childComplexity int) int
Ntas func(childComplexity int) int
StudentRegs func(childComplexity int) int
}
EnhancedStudentReg struct {
Ancode func(childComplexity int) int
Group func(childComplexity int) int
Mtknr func(childComplexity int) int
Name func(childComplexity int) int
Presence func(childComplexity int) int
Program func(childComplexity int) int
ZpaStudent func(childComplexity int) int
}
ExamDay struct {
Date func(childComplexity int) int
Number func(childComplexity int) int
}
ExamTime struct {
From func(childComplexity int) int
Until func(childComplexity int) int
}
ExamWithRegsAndRooms struct {
Exam func(childComplexity int) int
NormalRegsMtknr func(childComplexity int) int
NtasInAloneRooms func(childComplexity int) int
NtasInNormalRooms func(childComplexity int) int
Rooms func(childComplexity int) int
}
ExamerInPlan struct {
MainExamer func(childComplexity int) int
MainExamerID func(childComplexity int) int
}
FK07Program struct {
Name func(childComplexity int) int
}
FairnessDistribution struct {
Buckets func(childComplexity int) int
Kind func(childComplexity int) int
Max func(childComplexity int) int
Total func(childComplexity int) int
}
GeneratedExam struct {
Ancode func(childComplexity int) int
Conflicts func(childComplexity int) int
Constraints func(childComplexity int) int
MainExamer func(childComplexity int) int
MaxDuration func(childComplexity int) int
Ntas func(childComplexity int) int
PrimussExams func(childComplexity int) int
StudentRegsCount func(childComplexity int) int
ZpaExam func(childComplexity int) int
}
Invigilation struct {
Duration func(childComplexity int) int
InvigilatorID func(childComplexity int) int
IsReserve func(childComplexity int) int
IsSelfInvigilation func(childComplexity int) int
PrePlanned func(childComplexity int) int
RoomName func(childComplexity int) int
Slot func(childComplexity int) int
}
InvigilationReport struct {
Balance func(childComplexity int) int
Coverage func(childComplexity int) int
Fairness func(childComplexity int) int
Iterations func(childComplexity int) int
IterationsRun func(childComplexity int) int
Minutes func(childComplexity int) int
Outliers func(childComplexity int) int
Seed func(childComplexity int) int
SoftCost func(childComplexity int) int
StoppedEarly func(childComplexity int) int
}
InvigilationSlot struct {
Reserve func(childComplexity int) int
RoomsWithInvigilators func(childComplexity int) int
}
InvigilationTimeWindow struct {
Date func(childComplexity int) int
From func(childComplexity int) int
Until func(childComplexity int) int
}
InvigilationTodos struct {
InvigilatorCount func(childComplexity int) int
Invigilators func(childComplexity int) int
SumExamRooms func(childComplexity int) int
SumOtherContributions func(childComplexity int) int
SumOtherContributionsOvertimeCutted func(childComplexity int) int
SumReserve func(childComplexity int) int
TodoPerInvigilator func(childComplexity int) int
TodoPerInvigilatorOvertimeCutted func(childComplexity int) int
}
Invigilator struct {
Requirements func(childComplexity int) int
Teacher func(childComplexity int) int
Todos func(childComplexity int) int
}
InvigilatorOutlier struct {
Doing func(childComplexity int) int
InvigilatorID func(childComplexity int) int
Open func(childComplexity int) int
Percent func(childComplexity int) int
Target func(childComplexity int) int
}
InvigilatorRequirements struct {
AllContributions func(childComplexity int) int
ExamDays func(childComplexity int) int
ExamTimes func(childComplexity int) int
ExcludedDates func(childComplexity int) int
ExcludedDays func(childComplexity int) int
Factor func(childComplexity int) int
FreeSemester func(childComplexity int) int
FromZpa func(childComplexity int) int
LiveCodingContribution func(childComplexity int) int
MasterContribution func(childComplexity int) int
OralExamsContribution func(childComplexity int) int
OvertimeLastSemester func(childComplexity int) int
OvertimeThisSemester func(childComplexity int) int
PartTime func(childComplexity int) int
TimeWindows func(childComplexity int) int
}
InvigilatorTodos struct {
DoingMinutes func(childComplexity int) int
Enough func(childComplexity int) int
InvigilationDays func(childComplexity int) int
Invigilations func(childComplexity int) int
TotalMinutes func(childComplexity int) int
}
InvigilatorsForDay struct {
Can func(childComplexity int) int
Want func(childComplexity int) int
}
LogLine struct {
Level func(childComplexity int) int
Progress func(childComplexity int) int
Report func(childComplexity int) int
Text func(childComplexity int) int
Validation func(childComplexity int) int
}
MinutesReport struct {
Over func(childComplexity int) int
ToleranceMin func(childComplexity int) int
Under func(childComplexity int) int
WithinTolerance func(childComplexity int) int
}
MucDaiExam struct {
Duration func(childComplexity int) int
ExamType func(childComplexity int) int
IsRepeaterExam func(childComplexity int) int
MainExamer func(childComplexity int) int
MainExamerID func(childComplexity int) int
Module func(childComplexity int) int
PlannedBy func(childComplexity int) int
PrimussAncode func(childComplexity int) int
Program func(childComplexity int) int
}
Mutation struct {
AddConstraints func(childComplexity int, ancode int, constraints model.ConstraintsInput) int
AddExamToSlot func(childComplexity int, day int, time int, ancode int) int
AddNta func(childComplexity int, input model.NTAInput) int
AddRoom func(childComplexity int, input model.RoomInput) int
AddRoomRequest func(childComplexity int, room string, day int, slot int, from time.Time, until time.Time) int
AddZpaExamToPlan func(childComplexity int, ancode int) int
ApplyRoomRequestsPreview func(childComplexity int, force bool) int
BlockRoomForSlot func(childComplexity int, room string, day int, slot int, reason *string) int
BlockRoomForSlots func(childComplexity int, room string, slots []*model.SlotInput, reason *string) int
ClearEmailAttachments func(childComplexity int, kind string) int
Exahm func(childComplexity int, ancode int) int
ExcludeDays func(childComplexity int, ancode int, days []string) int
Lab func(childComplexity int, ancode int) int
MigrateRoomRequestsFromConfig func(childComplexity int) int
MigrateRoomsRequestWith func(childComplexity int) int
NotPlannedByMe func(childComplexity int, ancode int) int
Online func(childComplexity int, ancode int) int
PlacesWithSockets func(childComplexity int, ancode int) int
PossibleDays func(childComplexity int, ancode int, days []string) int
PrePlanInvigilation func(childComplexity int, invigilatorID int, day int, slot int, roomName *string) int
PrePlanInvigilationInSlot func(childComplexity int, day int, slot int, roomName *string) int
PrePlanRoom func(childComplexity int, ancode int, roomName string, reserve bool, mtknr *string) int
RemovePrePlannedRoom func(childComplexity int, ancode int, roomName string, mtknr *string) int
RmConstraints func(childComplexity int, ancode int) int
RmExamFromSlot func(childComplexity int, ancode int) int
RmZpaExamFromPlan func(childComplexity int, ancode int) int
SameSlot func(childComplexity int, ancode int, ancodes []int) int
Seb func(childComplexity int, ancode int) int
SetNTAActive func(childComplexity int, mtknr string, active bool) int
SetPlanningCondition func(childComplexity int, key string, done bool) int
SetRoomActive func(childComplexity int, name string, active bool) int
SetRoomRequestActive func(childComplexity int, room string, day int, slot int, active bool) int
SetRoomRequestApproved func(childComplexity int, room string, day int, slot int, approved bool) int
UnblockRoomForSlot func(childComplexity int, room string, day int, slot int) int
UnblockRoomForSlots func(childComplexity int, room string, slots []*model.SlotInput) int
UpdateNta func(childComplexity int, input model.NTAInput) int
UpdateRoom func(childComplexity int, input model.RoomInput) int
UpdateRoomRequestTime func(childComplexity int, room string, day int, slot int, from time.Time, until time.Time) int
ZpaExamsToPlan func(childComplexity int, input []int) int
}
NTA struct {
Compensation func(childComplexity int) int
Deactivated func(childComplexity int) int
DeltaDurationPercent func(childComplexity int) int
Email func(childComplexity int) int
From func(childComplexity int) int
LastSemester func(childComplexity int) int
Mtknr func(childComplexity int) int
Name func(childComplexity int) int
NeedsHardware func(childComplexity int) int
NeedsRoomAlone func(childComplexity int) int
Program func(childComplexity int) int
Until func(childComplexity int) int
}
NTAWithRegs struct {
Nta func(childComplexity int) int
Regs func(childComplexity int) int
}
NTAWithRegsByExam struct {
Exam func(childComplexity int) int
Ntas func(childComplexity int) int
}
NTAWithRegsByExamAndTeacher struct {
Exams func(childComplexity int) int
Teacher func(childComplexity int) int
}
OptimizerProgress struct {
Balance func(childComplexity int) int
BestCost func(childComplexity int) int
Iteration func(childComplexity int) int
Total func(childComplexity int) int
Unfilled func(childComplexity int) int
}
PlanEntry struct {
Ancode func(childComplexity int) int
DayNumber func(childComplexity int) int
ExternalTime func(childComplexity int) int
Locked func(childComplexity int) int
SlotNumber func(childComplexity int) int
Starttime func(childComplexity int) int
}
PlannedExam struct {
Ancode func(childComplexity int) int
Conflicts func(childComplexity int) int
Constraints func(childComplexity int) int
MainExamer func(childComplexity int) int
MaxDuration func(childComplexity int) int
Ntas func(childComplexity int) int
PlanEntry func(childComplexity int) int
PlannedRooms func(childComplexity int) int
PrimussExams func(childComplexity int) int
StudentRegsCount func(childComplexity int) int
ZpaExam func(childComplexity int) int
}
PlannedRoom struct {
Ancode func(childComplexity int) int
Day func(childComplexity int) int
Duration func(childComplexity int) int
Handicap func(childComplexity int) int
HandicapRoomAlone func(childComplexity int) int
NtaMtknr func(childComplexity int) int
PrePlanned func(childComplexity int) int
Reserve func(childComplexity int) int
Room func(childComplexity int) int
Slot func(childComplexity int) int
StudentsInRoom func(childComplexity int) int
}
PlanningCondition struct {
Done func(childComplexity int) int
Gate func(childComplexity int) int
Key func(childComplexity int) int
Phase func(childComplexity int) int
Title func(childComplexity int) int
}
PlanningPhase struct {
Conditions func(childComplexity int) int
Key func(childComplexity int) int
Title func(childComplexity int) int
}
PlanningState struct {
BlockedAreas func(childComplexity int) int
Phases func(childComplexity int) int
}
PreExam struct {
Constraints func(childComplexity int) int
PlanEntry func(childComplexity int) int
ZpaExam func(childComplexity int) int
}
PrePlannedInvigilation struct {
Day func(childComplexity int) int
InvigilatorID func(childComplexity int) int
IsReserve func(childComplexity int) int
RoomName func(childComplexity int) int
Slot func(childComplexity int) int
}
PrePlannedRoom struct {
Ancode func(childComplexity int) int
Mtknr func(childComplexity int) int
Reserve func(childComplexity int) int
RoomName func(childComplexity int) int
}
PrimussExam struct {
AnCode func(childComplexity int) int
ExamType func(childComplexity int) int
MainExamer func(childComplexity int) int
Module func(childComplexity int) int
Presence func(childComplexity int) int
Program func(childComplexity int) int
}
PrimussExamAncode struct {
Ancode func(childComplexity int) int
NumberOfStuds func(childComplexity int) int
Program func(childComplexity int) int
}
PrimussExamByProgram struct {
Exams func(childComplexity int) int
Program func(childComplexity int) int
}
PrimussExamWithCount struct {
Ancode func(childComplexity int) int
ExamType func(childComplexity int) int
MainExamer func(childComplexity int) int
Module func(childComplexity int) int
Presence func(childComplexity int) int
Program func(childComplexity int) int
StudentRegsCount func(childComplexity int) int
}
Query struct {
AllAnnyBookings func(childComplexity int) int
AllProgramsInPlan func(childComplexity int) int
AllSemesterNames func(childComplexity int) int
AllowedSlots func(childComplexity int, ancode int) int
AncodesInPlan func(childComplexity int) int
AnnyBookings func(childComplexity int, room *string) int
AwkwardSlots func(childComplexity int, ancode int) int
BlockedRooms func(childComplexity int) int
ConflictingAncodes func(childComplexity int, ancode int) int
ConnectedExam func(childComplexity int, ancode int) int
ConnectedExams func(childComplexity int) int
ConstraintForAncode func(childComplexity int, ancode int) int
EmailAttachments func(childComplexity int, kind string) int
ExamerInPlan func(childComplexity int) int
ExamersWithExamsPlannedByMe func(childComplexity int) int
ExamsInSlot func(childComplexity int, day int, time int) int
ExamsWithNtas func(childComplexity int) int
ExamsWithoutSlot func(childComplexity int) int
Fk07programs func(childComplexity int) int
GeneratedExam func(childComplexity int, ancode int) int
GeneratedExams func(childComplexity int) int
Invigilator func(childComplexity int, room string, day int, time int) int
InvigilatorTodos func(childComplexity int) int
Invigilators func(childComplexity int) int
InvigilatorsExcludedByConfig func(childComplexity int) int
InvigilatorsForDay func(childComplexity int, day int) int
InvigilatorsWithReq func(childComplexity int) int
MucdaiExams func(childComplexity int) int
Nta func(childComplexity int, mtknr string) int
Ntas func(childComplexity int) int
NtasWithRegs func(childComplexity int) int
PlannedExam func(childComplexity int, ancode int) int
PlannedExams func(childComplexity int) int
PlannedRoomForStudent func(childComplexity int, ancode int, mtknr string) int
PlannedRoomNames func(childComplexity int) int
PlannedRoomNamesInSlot func(childComplexity int, day int, time int) int
PlannedRooms func(childComplexity int) int
PlannedRoomsInSlot func(childComplexity int, day int, time int) int
PlanningState func(childComplexity int) int
PreExamsInSlot func(childComplexity int, day int, time int) int
PrePlannedInvigilations func(childComplexity int) int
PrePlannedRooms func(childComplexity int) int
PrimussExam func(childComplexity int, program string, ancode int) int
PrimussExams func(childComplexity int) int
PrimussExamsForAnCode func(childComplexity int, ancode int) int
RoomRequests func(childComplexity int) int
RoomRequestsPreview func(childComplexity int) int
Rooms func(childComplexity int) int
RoomsForSlot func(childComplexity int, day int, time int) int
RoomsForSlots func(childComplexity int) int
RoomsWithInvigilationsForSlot func(childComplexity int, day int, time int) int
Semester func(childComplexity int) int
SemesterConfig func(childComplexity int) int
StudentByMtknr func(childComplexity int, mtknr string) int
StudentRegsForProgram func(childComplexity int, program string) int
StudentRegsImportErrors func(childComplexity int) int
Students func(childComplexity int) int
StudentsByName func(childComplexity int, regex string) int
Teacher func(childComplexity int, id int) int
Teachers func(childComplexity int, fromZpa *bool) int
ZpaAnCodes func(childComplexity int) int
ZpaExam func(childComplexity int, ancode int) int
ZpaExams func(childComplexity int, fromZpa *bool) int
ZpaExamsByType func(childComplexity int) int
ZpaExamsNotToPlan func(childComplexity int) int
ZpaExamsPlaningStatusUnknown func(childComplexity int) int
ZpaExamsToPlan func(childComplexity int) int
ZpaExamsToPlanWithConstraints func(childComplexity int) int
}
RegWithError struct {
Error func(childComplexity int) int
Registration func(childComplexity int) int
}
RegWithProgram struct {
Program func(childComplexity int) int
Reg func(childComplexity int) int
}
Room struct {
Deactivated func(childComplexity int) int
Exahm func(childComplexity int) int
Handicap func(childComplexity int) int
HmebSeats func(childComplexity int) int
Lab func(childComplexity int) int
Name func(childComplexity int) int
NeedsRequest func(childComplexity int) int
PlacesWithSocket func(childComplexity int) int
RequestPriority func(childComplexity int) int
RequestWith func(childComplexity int) int
Seats func(childComplexity int) int
Seb func(childComplexity int) int
SebSeats func(childComplexity int) int
}
RoomAndExam struct {
Exam func(childComplexity int) int
Room func(childComplexity int) int
}
RoomConstraints struct {
AllowedRooms func(childComplexity int) int
Comments func(childComplexity int) int
Exahm func(childComplexity int) int
KdpJiraURL func(childComplexity int) int
Lab func(childComplexity int) int
MaxStudents func(childComplexity int) int
PlacesWithSocket func(childComplexity int) int
Seb func(childComplexity int) int
}
RoomRequest struct {
Active func(childComplexity int) int
Approved func(childComplexity int) int
Day func(childComplexity int) int
From func(childComplexity int) int
Room func(childComplexity int) int
Slot func(childComplexity int) int
Until func(childComplexity int) int
}
RoomRequestPreview struct {
Day func(childComplexity int) int
Exam func(childComplexity int) int
From func(childComplexity int) int
Room func(childComplexity int) int
Seats func(childComplexity int) int
SimultaneousExams func(childComplexity int) int
Slot func(childComplexity int) int
Students func(childComplexity int) int
Until func(childComplexity int) int
}
RoomWithInvigilator struct {
Invigilator func(childComplexity int) int
MaxDuration func(childComplexity int) int
Name func(childComplexity int) int
RoomAndExams func(childComplexity int) int
StudentCount func(childComplexity int) int
}
RoomsForSlot struct {
Day func(childComplexity int) int
Rooms func(childComplexity int) int
Slot func(childComplexity int) int
}
Semester struct {
ID func(childComplexity int) int
}
SemesterConfig struct {
Days func(childComplexity int) int
Emails func(childComplexity int) int
ForbiddenSlots func(childComplexity int) int
From func(childComplexity int) int
FromFk07 func(childComplexity int) int
GoDay0 func(childComplexity int) int
GoSlots func(childComplexity int) int
GoSlotsRaw func(childComplexity int) int
Slots func(childComplexity int) int
Starttimes func(childComplexity int) int
Until func(childComplexity int) int
}
Slot struct {
DayNumber func(childComplexity int) int
SlotNumber func(childComplexity int) int
Starttime func(childComplexity int) int
}
SoftCostItem struct {
Cost func(childComplexity int) int
Name func(childComplexity int) int
}
SoftCostReport struct {
Breakdown func(childComplexity int) int
Total func(childComplexity int) int
}
Starttime struct {
Number func(childComplexity int) int
Start func(childComplexity int) int
}
Student struct {
Group func(childComplexity int) int
Mtknr func(childComplexity int) int
Name func(childComplexity int) int
Nta func(childComplexity int) int
Program func(childComplexity int) int
Regs func(childComplexity int) int
RegsWithProgram func(childComplexity int) int
ZpaStudent func(childComplexity int) int
}
StudentReg struct {
AnCode func(childComplexity int) int
Group func(childComplexity int) int
Mtknr func(childComplexity int) int
Name func(childComplexity int) int
Presence func(childComplexity int) int
Program func(childComplexity int) int
}
StudentRegsPerAncode struct {
Ancode func(childComplexity int) int
PerProgram func(childComplexity int) int
}
StudentRegsPerAncodeAndProgram struct {
Ancode func(childComplexity int) int
Program func(childComplexity int) int
StudentRegs func(childComplexity int) int
}
StudentRegsPerStudent struct {
Ancodes func(childComplexity int) int
Student func(childComplexity int) int
}
Subscription struct {
GenerateInvigilations func(childComplexity int, dryRun bool, seed *int, iterations *int) int
GenerateRoomsForExams func(childComplexity int) int
GenerateRoomsForSlots func(childComplexity int) int
ImportAnnyBookings func(childComplexity int) int
ImportExamsFromZpa func(childComplexity int) int
ImportInvigilatorRequirementsFromZpa func(childComplexity int) int
ImportStudentsFromZpa func(childComplexity int) int
ImportTeachersFromZpa func(childComplexity int) int
SendEmailConstraints func(childComplexity int, run bool) int
SendEmailCoverPage func(childComplexity int, teacherID int, run bool) int
SendEmailCoverPages func(childComplexity int, run bool) int
SendEmailDraft func(childComplexity int, run bool) int
SendEmailExaHm func(childComplexity int, run bool) int
SendEmailInvigilations func(childComplexity int, run bool) int
SendEmailInvigilationsMissing func(childComplexity int, run bool) int
SendEmailPrepared func(childComplexity int, run bool) int
SendEmailPublishedExams func(childComplexity int, run bool) int
SendEmailPublishedInvigilations func(childComplexity int, run bool) int
SendEmailPublishedRooms func(childComplexity int, run bool) int
SendEmailRoomRequests func(childComplexity int, run bool) int
UploadExamsToZpa func(childComplexity int, dryRun bool) int
UploadExamsWithInvigilatorsToZpa func(childComplexity int, dryRun bool) int
UploadExamsWithRoomsToZpa func(childComplexity int, dryRun bool) int
UploadStudentRegsToZpa func(childComplexity int) int
ValidateConflicts func(childComplexity int, onlyPlannedByMe bool, ancode int) int
ValidateConstraints func(childComplexity int) int
ValidateDb func(childComplexity int) int
ValidateInvigilationConstraints func(childComplexity int) int
ValidateInvigilationDuplicates func(childComplexity int) int
ValidateInvigilationsTimeDistance func(childComplexity int) int
ValidateInvigilatorRequirements func(childComplexity int) int
ValidateInvigilatorSlots func(childComplexity int) int
ValidatePrePlannedExahmRooms func(childComplexity int) int
ValidateRoomsBlocked func(childComplexity int) int
ValidateRoomsForSlotsFresh func(childComplexity int) int
ValidateRoomsNeedRequest func(childComplexity int) int
ValidateRoomsPerExam func(childComplexity int) int
ValidateRoomsPerSlot func(childComplexity int) int
ValidateRoomsTimeDistance func(childComplexity int) int
ValidateStudentRegs func(childComplexity int) int
ValidateZPADateTimes func(childComplexity int) int
ValidateZPAInvigilators func(childComplexity int) int
ValidateZPARooms func(childComplexity int) int
}
Teacher struct {
Email func(childComplexity int) int
FK func(childComplexity int) int
Fullname func(childComplexity int) int
ID func(childComplexity int) int
IsActive func(childComplexity int) int
IsLBA func(childComplexity int) int
IsProf func(childComplexity int) int
IsProfHC func(childComplexity int) int
IsStaff func(childComplexity int) int
LastSemester func(childComplexity int) int
Shortname func(childComplexity int) int
}
ValidationFinding struct {
Ancode func(childComplexity int) int
Day func(childComplexity int) int
InvigilatorID func(childComplexity int) int
Level func(childComplexity int) int
Message func(childComplexity int) int
RelatedAncodes func(childComplexity int) int
Room func(childComplexity int) int
Slot func(childComplexity int) int
StudentMtknr func(childComplexity int) int
}
ValidationReport struct {
ErrorCount func(childComplexity int) int
Findings func(childComplexity int) int
Name func(childComplexity int) int
Ok func(childComplexity int) int
WarningCount func(childComplexity int) int
}
ZPAConflict struct {
Ancode func(childComplexity int) int
NumberOfStuds func(childComplexity int) int
PrimussAncodes func(childComplexity int) int
}
ZPAExam struct {
AnCode func(childComplexity int) int
Duration func(childComplexity int) int
ExamType func(childComplexity int) int
ExamTypeFull func(childComplexity int) int
Groups func(childComplexity int) int
IsRepeaterExam func(childComplexity int) int
MainExamer func(childComplexity int) int
MainExamerID func(childComplexity int) int
Module func(childComplexity int) int
PrimussAncodes func(childComplexity int) int
Semester func(childComplexity int) int
ZpaID func(childComplexity int) int
}
ZPAExamWithConstraints struct {
Constraints func(childComplexity int) int
PlanEntry func(childComplexity int) int
ZpaExam func(childComplexity int) int
}
ZPAExamsForType struct {
Exams func(childComplexity int) int
Type func(childComplexity int) int
}
ZPAInvigilator struct {
HasSubmittedRequirements func(childComplexity int) int
Teacher func(childComplexity int) int
}
ZPAPrimussAncodes struct {
Ancode func(childComplexity int) int
Program func(childComplexity int) int
}
ZPAStudent struct {
Email func(childComplexity int) int
FirstName func(childComplexity int) int
Gender func(childComplexity int) int
Greeting func(childComplexity int) int
Group func(childComplexity int) int
LastName func(childComplexity int) int
Mtknr func(childComplexity int) int
}
ZPAStudentReg struct {
AnCode func(childComplexity int) int
Mtknr func(childComplexity int) int
Program func(childComplexity int) int
}
ZPAStudentRegError struct {
AnCode func(childComplexity int) int
Exam func(childComplexity int) int
Mtknr func(childComplexity int) int
Program func(childComplexity int) int
Semester func(childComplexity int) int
}
}
type Config ¶
type Config struct {
Schema *ast.Schema
Resolvers ResolverRoot
Directives DirectiveRoot
Complexity ComplexityRoot
}
type DirectiveRoot ¶
type DirectiveRoot struct {
}
type GeneratedExamResolver ¶
type MutationResolver ¶
type MutationResolver interface {
NotPlannedByMe(ctx context.Context, ancode int) (bool, error)
ExcludeDays(ctx context.Context, ancode int, days []string) (bool, error)
PossibleDays(ctx context.Context, ancode int, days []string) (bool, error)
SameSlot(ctx context.Context, ancode int, ancodes []int) (bool, error)
PlacesWithSockets(ctx context.Context, ancode int) (bool, error)
Lab(ctx context.Context, ancode int) (bool, error)
Exahm(ctx context.Context, ancode int) (bool, error)
Seb(ctx context.Context, ancode int) (bool, error)
Online(ctx context.Context, ancode int) (bool, error)
AddConstraints(ctx context.Context, ancode int, constraints model.ConstraintsInput) (*model.Constraints, error)
RmConstraints(ctx context.Context, ancode int) (bool, error)
ClearEmailAttachments(ctx context.Context, kind string) (int, error)
PrePlanInvigilation(ctx context.Context, invigilatorID int, day int, slot int, roomName *string) (bool, error)
PrePlanInvigilationInSlot(ctx context.Context, day int, slot int, roomName *string) (bool, error)
AddNta(ctx context.Context, input model.NTAInput) (*model.NTA, error)
UpdateNta(ctx context.Context, input model.NTAInput) (*model.NTA, error)
SetNTAActive(ctx context.Context, mtknr string, active bool) (*model.NTA, error)
AddExamToSlot(ctx context.Context, day int, time int, ancode int) (bool, error)
RmExamFromSlot(ctx context.Context, ancode int) (bool, error)
SetPlanningCondition(ctx context.Context, key string, done bool) (*model.PlanningState, error)
PrePlanRoom(ctx context.Context, ancode int, roomName string, reserve bool, mtknr *string) (bool, error)
RemovePrePlannedRoom(ctx context.Context, ancode int, roomName string, mtknr *string) (bool, error)
BlockRoomForSlot(ctx context.Context, room string, day int, slot int, reason *string) (*model.BlockedRoom, error)
UnblockRoomForSlot(ctx context.Context, room string, day int, slot int) (bool, error)
BlockRoomForSlots(ctx context.Context, room string, slots []*model.SlotInput, reason *string) ([]*model.BlockedRoom, error)
UnblockRoomForSlots(ctx context.Context, room string, slots []*model.SlotInput) (int, error)
SetRoomActive(ctx context.Context, name string, active bool) (*model.Room, error)
AddRoom(ctx context.Context, input model.RoomInput) (*model.Room, error)
UpdateRoom(ctx context.Context, input model.RoomInput) (*model.Room, error)
MigrateRoomsRequestWith(ctx context.Context) (int, error)
SetRoomRequestApproved(ctx context.Context, room string, day int, slot int, approved bool) (*model.RoomRequest, error)
SetRoomRequestActive(ctx context.Context, room string, day int, slot int, active bool) (*model.RoomRequest, error)
MigrateRoomRequestsFromConfig(ctx context.Context) (int, error)
ApplyRoomRequestsPreview(ctx context.Context, force bool) (int, error)
AddRoomRequest(ctx context.Context, room string, day int, slot int, from time.Time, until time.Time) (*model.RoomRequest, error)
UpdateRoomRequestTime(ctx context.Context, room string, day int, slot int, from time.Time, until time.Time) (*model.RoomRequest, error)
ZpaExamsToPlan(ctx context.Context, input []int) ([]*model.ZPAExam, error)
AddZpaExamToPlan(ctx context.Context, ancode int) (bool, error)
RmZpaExamFromPlan(ctx context.Context, ancode int) (bool, error)
}
type PlanEntryResolver ¶
type PlannedExamResolver ¶
type PlannedRoomResolver ¶
type QueryResolver ¶
type QueryResolver interface {
AllSemesterNames(ctx context.Context) ([]*model.Semester, error)
Semester(ctx context.Context) (*model.Semester, error)
SemesterConfig(ctx context.Context) (*model.SemesterConfig, error)
AnnyBookings(ctx context.Context, room *string) ([]*model.AnnyBooking, error)
AllAnnyBookings(ctx context.Context) ([]*model.AnnyBooking, error)
ConstraintForAncode(ctx context.Context, ancode int) (*model.Constraints, error)
ZpaExamsToPlanWithConstraints(ctx context.Context) ([]*model.ZPAExamWithConstraints, error)
EmailAttachments(ctx context.Context, kind string) ([]*model.EmailAttachmentInfo, error)
ConnectedExam(ctx context.Context, ancode int) (*model.ConnectedExam, error)
ConnectedExams(ctx context.Context) ([]*model.ConnectedExam, error)
GeneratedExams(ctx context.Context) ([]*model.GeneratedExam, error)
GeneratedExam(ctx context.Context, ancode int) (*model.GeneratedExam, error)
PlannedExams(ctx context.Context) ([]*model.PlannedExam, error)
PlannedExam(ctx context.Context, ancode int) (*model.PlannedExam, error)
MucdaiExams(ctx context.Context) ([]*model.MucDaiExam, error)
ConflictingAncodes(ctx context.Context, ancode int) ([]*model.Conflict, error)
InvigilatorTodos(ctx context.Context) (*model.InvigilationTodos, error)
InvigilatorsWithReq(ctx context.Context) ([]*model.Invigilator, error)
InvigilatorsExcludedByConfig(ctx context.Context) ([]*model.Invigilator, error)
RoomsWithInvigilationsForSlot(ctx context.Context, day int, time int) (*model.InvigilationSlot, error)
InvigilatorsForDay(ctx context.Context, day int) (*model.InvigilatorsForDay, error)
Invigilator(ctx context.Context, room string, day int, time int) (*model.Teacher, error)
PrePlannedInvigilations(ctx context.Context) ([]*model.PrePlannedInvigilation, error)
Ntas(ctx context.Context) ([]*model.NTA, error)
NtasWithRegs(ctx context.Context) ([]*model.Student, error)
Nta(ctx context.Context, mtknr string) (*model.NTAWithRegs, error)
ExamsWithNtas(ctx context.Context) ([]*model.PlannedExam, error)
AllProgramsInPlan(ctx context.Context) ([]string, error)
AncodesInPlan(ctx context.Context) ([]int, error)
ExamerInPlan(ctx context.Context) ([]*model.ExamerInPlan, error)
ExamersWithExamsPlannedByMe(ctx context.Context) ([]*model.Teacher, error)
PreExamsInSlot(ctx context.Context, day int, time int) ([]*model.PreExam, error)
ExamsInSlot(ctx context.Context, day int, time int) ([]*model.PlannedExam, error)
ExamsWithoutSlot(ctx context.Context) ([]*model.PlannedExam, error)
AllowedSlots(ctx context.Context, ancode int) ([]*model.Slot, error)
AwkwardSlots(ctx context.Context, ancode int) ([]*model.Slot, error)
PlanningState(ctx context.Context) (*model.PlanningState, error)
PrimussExams(ctx context.Context) ([]*model.PrimussExamByProgram, error)
PrimussExam(ctx context.Context, program string, ancode int) (*model.PrimussExam, error)
PrimussExamsForAnCode(ctx context.Context, ancode int) ([]*model.PrimussExam, error)
StudentRegsForProgram(ctx context.Context, program string) ([]*model.StudentReg, error)
Rooms(ctx context.Context) ([]*model.Room, error)
PrePlannedRooms(ctx context.Context) ([]*model.PrePlannedRoom, error)
RoomsForSlot(ctx context.Context, day int, time int) (*model.RoomsForSlot, error)
RoomsForSlots(ctx context.Context) ([]*model.RoomsForSlot, error)
PlannedRooms(ctx context.Context) ([]*model.PlannedRoom, error)
PlannedRoomNames(ctx context.Context) ([]string, error)
PlannedRoomNamesInSlot(ctx context.Context, day int, time int) ([]string, error)
PlannedRoomsInSlot(ctx context.Context, day int, time int) ([]*model.PlannedRoom, error)
PlannedRoomForStudent(ctx context.Context, ancode int, mtknr string) (*model.PlannedRoom, error)
BlockedRooms(ctx context.Context) ([]*model.BlockedRoom, error)
RoomRequests(ctx context.Context) ([]*model.RoomRequest, error)
RoomRequestsPreview(ctx context.Context) ([]*model.RoomRequestPreview, error)
StudentByMtknr(ctx context.Context, mtknr string) (*model.Student, error)
StudentsByName(ctx context.Context, regex string) ([]*model.Student, error)
Students(ctx context.Context) ([]*model.Student, error)
Teacher(ctx context.Context, id int) (*model.Teacher, error)
Teachers(ctx context.Context, fromZpa *bool) ([]*model.Teacher, error)
Invigilators(ctx context.Context) ([]*model.ZPAInvigilator, error)
Fk07programs(ctx context.Context) ([]*model.FK07Program, error)
ZpaExams(ctx context.Context, fromZpa *bool) ([]*model.ZPAExam, error)
ZpaExamsByType(ctx context.Context) ([]*model.ZPAExamsForType, error)
ZpaExamsToPlan(ctx context.Context) ([]*model.ZPAExam, error)
ZpaExamsNotToPlan(ctx context.Context) ([]*model.ZPAExam, error)
ZpaExamsPlaningStatusUnknown(ctx context.Context) ([]*model.ZPAExam, error)
ZpaExam(ctx context.Context, ancode int) (*model.ZPAExam, error)
ZpaAnCodes(ctx context.Context) ([]*model.AnCode, error)
StudentRegsImportErrors(ctx context.Context) ([]*model.RegWithError, error)
}
type ResolverRoot ¶
type ResolverRoot interface {
GeneratedExam() GeneratedExamResolver
Mutation() MutationResolver
PlanEntry() PlanEntryResolver
PlannedExam() PlannedExamResolver
PlannedRoom() PlannedRoomResolver
Query() QueryResolver
RoomsForSlot() RoomsForSlotResolver
Subscription() SubscriptionResolver
}
type RoomsForSlotResolver ¶ added in v1.33.0
type SubscriptionResolver ¶ added in v1.98.0
type SubscriptionResolver interface {
GenerateInvigilations(ctx context.Context, dryRun bool, seed *int, iterations *int) (<-chan *model.LogLine, error)
SendEmailExaHm(ctx context.Context, run bool) (<-chan *model.LogLine, error)
SendEmailConstraints(ctx context.Context, run bool) (<-chan *model.LogLine, error)
SendEmailPrepared(ctx context.Context, run bool) (<-chan *model.LogLine, error)
SendEmailDraft(ctx context.Context, run bool) (<-chan *model.LogLine, error)
SendEmailPublishedExams(ctx context.Context, run bool) (<-chan *model.LogLine, error)
SendEmailPublishedRooms(ctx context.Context, run bool) (<-chan *model.LogLine, error)
SendEmailInvigilations(ctx context.Context, run bool) (<-chan *model.LogLine, error)
SendEmailInvigilationsMissing(ctx context.Context, run bool) (<-chan *model.LogLine, error)
SendEmailPublishedInvigilations(ctx context.Context, run bool) (<-chan *model.LogLine, error)
SendEmailCoverPages(ctx context.Context, run bool) (<-chan *model.LogLine, error)
SendEmailCoverPage(ctx context.Context, teacherID int, run bool) (<-chan *model.LogLine, error)
SendEmailRoomRequests(ctx context.Context, run bool) (<-chan *model.LogLine, error)
GenerateRoomsForSlots(ctx context.Context) (<-chan *model.LogLine, error)
GenerateRoomsForExams(ctx context.Context) (<-chan *model.LogLine, error)
ImportAnnyBookings(ctx context.Context) (<-chan *model.LogLine, error)
ValidateInvigilatorRequirements(ctx context.Context) (<-chan *model.LogLine, error)
ValidateInvigilationDuplicates(ctx context.Context) (<-chan *model.LogLine, error)
ValidateInvigilatorSlots(ctx context.Context) (<-chan *model.LogLine, error)
ValidateInvigilationsTimeDistance(ctx context.Context) (<-chan *model.LogLine, error)
ValidateInvigilationConstraints(ctx context.Context) (<-chan *model.LogLine, error)
ValidateRoomsPerSlot(ctx context.Context) (<-chan *model.LogLine, error)
ValidateRoomsNeedRequest(ctx context.Context) (<-chan *model.LogLine, error)
ValidateRoomsPerExam(ctx context.Context) (<-chan *model.LogLine, error)
ValidateRoomsTimeDistance(ctx context.Context) (<-chan *model.LogLine, error)
ValidateRoomsBlocked(ctx context.Context) (<-chan *model.LogLine, error)
ValidateRoomsForSlotsFresh(ctx context.Context) (<-chan *model.LogLine, error)
ValidateZPADateTimes(ctx context.Context) (<-chan *model.LogLine, error)
ValidateZPARooms(ctx context.Context) (<-chan *model.LogLine, error)
ValidateZPAInvigilators(ctx context.Context) (<-chan *model.LogLine, error)
ValidateConflicts(ctx context.Context, onlyPlannedByMe bool, ancode int) (<-chan *model.LogLine, error)
ValidateConstraints(ctx context.Context) (<-chan *model.LogLine, error)
ValidateStudentRegs(ctx context.Context) (<-chan *model.LogLine, error)
ValidateDb(ctx context.Context) (<-chan *model.LogLine, error)
ValidatePrePlannedExahmRooms(ctx context.Context) (<-chan *model.LogLine, error)
UploadExamsToZpa(ctx context.Context, dryRun bool) (<-chan *model.LogLine, error)
UploadExamsWithRoomsToZpa(ctx context.Context, dryRun bool) (<-chan *model.LogLine, error)
UploadExamsWithInvigilatorsToZpa(ctx context.Context, dryRun bool) (<-chan *model.LogLine, error)
UploadStudentRegsToZpa(ctx context.Context) (<-chan *model.LogLine, error)
ImportTeachersFromZpa(ctx context.Context) (<-chan *model.LogLine, error)
ImportExamsFromZpa(ctx context.Context) (<-chan *model.LogLine, error)
ImportInvigilatorRequirementsFromZpa(ctx context.Context) (<-chan *model.LogLine, error)
ImportStudentsFromZpa(ctx context.Context) (<-chan *model.LogLine, error)
}
Click to show internal directories.
Click to hide internal directories.