@propriety/court-calendar 1.0.196 → 1.0.197
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CourtDate } from '../../../types';
|
|
2
|
+
/** Asks who hears the session Adjourn moved cases onto, when that session has no hearing officer. */
|
|
3
|
+
export default function HearingOfficerPrompt({ session, onAssign, onClose, }: {
|
|
4
|
+
session: CourtDate;
|
|
5
|
+
onAssign: (session: CourtDate, officerId: number) => Promise<boolean>;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -22,6 +22,8 @@ import { AdjournResult } from '../helpers/api/cases';
|
|
|
22
22
|
* false and leaves local state untouched if the server refused.
|
|
23
23
|
* - `handleViewUpdateChair` – Optimistically updates a first/second chair in view mode.
|
|
24
24
|
* - `handleSelectedCasesAdjournmentChange` – Adjourns a set of cases (sets AdjournedDate + `OA` determination), then reconciles with the server.
|
|
25
|
+
* `needsJudge` is the session they moved to when it has no hearing officer.
|
|
26
|
+
* - `handleAssignHearingOfficer` – Sets the hearing officer on that session, in memory once the server has it.
|
|
25
27
|
* - `handleSelectedCasesClearDetermination` – Clears the determination for a set of cases (backend only clears `D`), then reconciles with the server.
|
|
26
28
|
*/
|
|
27
29
|
export declare function useModalActions({ modalMode, selectedCourtDate, selectedCases, editedData, editedCases, setEditedData, setIsOpen, pendingNoticeFiles, onUploadDeadlineNotice, }: {
|
|
@@ -40,6 +42,9 @@ export declare function useModalActions({ modalMode, selectedCourtDate, selected
|
|
|
40
42
|
handleDelete: () => Promise<boolean>;
|
|
41
43
|
handleViewUpdateChair: (position: "first" | "second", userId: number | null) => void;
|
|
42
44
|
handleToggleComplete: (complete: boolean) => void;
|
|
43
|
-
handleSelectedCasesAdjournmentChange: (casesToUpdate: Case[], date: Date | null) => Promise<AdjournResult
|
|
45
|
+
handleSelectedCasesAdjournmentChange: (casesToUpdate: Case[], date: Date | null) => Promise<AdjournResult & {
|
|
46
|
+
needsJudge?: CourtDate;
|
|
47
|
+
}>;
|
|
48
|
+
handleAssignHearingOfficer: (session: CourtDate, officerId: number) => Promise<boolean>;
|
|
44
49
|
handleSelectedCasesClearDetermination: (casesToUpdate: Case[]) => Promise<boolean>;
|
|
45
50
|
};
|