@propriety/court-calendar 1.0.188 → 1.0.190
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.
|
@@ -6,7 +6,7 @@ export default function DateDetails({ selectedCourtDate, cases, isVillage, isFet
|
|
|
6
6
|
isVillage: boolean;
|
|
7
7
|
isFetchingCases?: boolean;
|
|
8
8
|
onUpdateChair?: (position: 'first' | 'second', userId: number | null) => void;
|
|
9
|
-
/** Negotiations only — undefined for
|
|
9
|
+
/** Negotiations and collections only — undefined for SCAR dates, and for read-only users. */
|
|
10
10
|
onToggleComplete?: (complete: boolean) => void;
|
|
11
11
|
adjournments?: AdjournmentEntry[];
|
|
12
12
|
courtDateHistory?: DateEditItem[];
|
|
@@ -50,20 +50,21 @@ export declare function dateKeyOf(dateType: DateType | null | undefined, courtDa
|
|
|
50
50
|
* type reads as SCAR — matching how the API omits the field for court dates.
|
|
51
51
|
*/
|
|
52
52
|
export declare function isScarDate(date: Pick<CourtDate, 'DateType'>): boolean;
|
|
53
|
-
/** The value written to Court.NegotiationDates.Status to retire a
|
|
54
|
-
export declare const
|
|
53
|
+
/** The value written to Court.NegotiationDates.Status or Court.Collections.Status to retire a date. */
|
|
54
|
+
export declare const DATE_COMPLETE = "Complete";
|
|
55
|
+
/** The date types a person can mark complete — the ones that carry no linked cases. */
|
|
56
|
+
export declare function canMarkComplete(date: Pick<CourtDate, 'DateType'>): boolean;
|
|
55
57
|
/**
|
|
56
|
-
*
|
|
58
|
+
* A negotiation or collections date marked finished by hand.
|
|
57
59
|
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* `
|
|
61
|
-
* and one by a person, and the same pill brings both back.
|
|
60
|
+
* Neither carries linked cases, so nothing about one can be *derived* as done. A negotiation
|
|
61
|
+
* shares the `showPastNegotiations` filter with its date passing; a collection shares
|
|
62
|
+
* `showCompletedUploads`.
|
|
62
63
|
*
|
|
63
|
-
*
|
|
64
|
-
*
|
|
64
|
+
* SCAR dates are excluded because Court.HearingDates.Status holds unrelated values. The column
|
|
65
|
+
* is free text shared with other writers, so this compares case-insensitively.
|
|
65
66
|
*/
|
|
66
|
-
export declare function
|
|
67
|
+
export declare function isMarkedComplete(date: Pick<CourtDate, 'DateType' | 'Status'>): boolean;
|
|
67
68
|
/**
|
|
68
69
|
* A hearing link safe to hand to window.open, or null.
|
|
69
70
|
*
|
|
@@ -38,7 +38,7 @@ export declare function useModalActions({ modalMode, selectedCourtDate, selected
|
|
|
38
38
|
handleSave: () => Promise<boolean>;
|
|
39
39
|
handleDelete: () => Promise<boolean>;
|
|
40
40
|
handleViewUpdateChair: (position: "first" | "second", userId: number | null) => void;
|
|
41
|
-
|
|
41
|
+
handleToggleComplete: (complete: boolean) => void;
|
|
42
42
|
handleSelectedCasesAdjournmentChange: (casesToUpdate: Case[], date: Date | null) => Promise<boolean>;
|
|
43
43
|
handleSelectedCasesClearDetermination: (casesToUpdate: Case[]) => Promise<boolean>;
|
|
44
44
|
};
|