Placements developer guide
    Preparing search index...
    • Derives the actual attendance of one dated commitment: its confirmed roster minus absent assistants plus the covering person of each current coverage record. Sorted and unique.

      Parameters

      • commitment: Pick<SchoolServiceCommitment, "commitmentId" | "assignments">
      • absences: readonly Pick<
            {
                absenceId: string;
                block: "1"
                | "2";
                commitmentId: string | null;
                day: "Monday" | "Tuesday" | "Wednesday" | "Thursday" | "Friday";
                departmentId: string & Brand<"DepartmentId">;
                personId: string & Brand<"PersonId">;
                proposalId: string;
                reportedAt: string;
                reporterPersonId: string & Brand<"PersonId">;
                schoolId: number & Brand<"SchoolId">;
                schoolName: string;
                semesterId: string & Brand<"SemesterId">;
                serviceDate: string;
            },
            "personId"
            | "commitmentId"
            | "absenceId",
        >[]
      • coverage: readonly Pick<
            {
                absenceId: string;
                coverageId: string;
                coveringFirstName: string;
                coveringLastName: string;
                coveringPersonId: string & Brand<"PersonId">;
                recordedAt: string;
                recordedByPersonId: string & Brand<"PersonId">;
            },
            "absenceId"
            | "coveringPersonId",
        >[]

      Returns readonly (string & Brand<"PersonId">)[]