@propriety/court-calendar 1.0.160 → 1.0.161
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.
- package/dist/helpers/api/cases.d.ts +7 -2
- package/dist/helpers/cases.d.ts +6 -3
- package/dist/index.mjs +3689 -3661
- package/dist/types.d.ts +20 -0
- package/package.json +1 -1
- package/src/__tests__/filtering.test.ts +18 -0
- package/src/__tests__/fixtures.ts +3 -0
- package/src/__tests__/helpers/openCases.test.ts +19 -2
- package/src/_components/Modal/CaseDetails/CaseDetails.tsx +24 -1
- package/src/_components/Modal/DateDetails/CaseViewer.tsx +9 -3
- package/src/constants.ts +2 -0
- package/src/helpers/api/cases.ts +7 -2
- package/src/helpers/cases.ts +15 -8
- package/src/helpers/openCases.ts +7 -2
- package/src/types.ts +21 -0
|
@@ -54,13 +54,18 @@ export declare function uploadMotionToPreclude(courtDateId: number, apiKey: stri
|
|
|
54
54
|
*
|
|
55
55
|
* `SCARIndexNumber` holds whichever index applies to the level queried: the backend aliases
|
|
56
56
|
* `VillageSCARIndexNumber AS SCARIndexNumber` for village munis, so there is one index field
|
|
57
|
-
* and it is always the right one. `retainer_name`
|
|
58
|
-
*
|
|
57
|
+
* and it is always the right one. `filed_name`, `retainer_name` and `Address` are all nullable
|
|
58
|
+
* (they come from LEFT JOINs).
|
|
59
59
|
*/
|
|
60
60
|
export interface OpenCase {
|
|
61
61
|
ParcelID: string;
|
|
62
62
|
SCARIndexNumber: string;
|
|
63
63
|
Year: number;
|
|
64
|
+
/**
|
|
65
|
+
* The caption — `COALESCE(Retainers.CorpName, Retainers.Name)`, matching what the case grid
|
|
66
|
+
* shows once the date is saved. Neither this nor `retainer_name` is the assessment-roll owner.
|
|
67
|
+
*/
|
|
68
|
+
filed_name: string | null;
|
|
64
69
|
retainer_name: string | null;
|
|
65
70
|
Address: string | null;
|
|
66
71
|
}
|
package/dist/helpers/cases.d.ts
CHANGED
|
@@ -18,9 +18,12 @@ export declare function hasCaseSentOffer(c: Case): boolean;
|
|
|
18
18
|
export declare function isStipComplete(c: Case): boolean;
|
|
19
19
|
/**
|
|
20
20
|
* True when the case matches a free-text search term on any of its searchable fields
|
|
21
|
-
* (owner, address, parcel id, SCAR index number). An
|
|
22
|
-
* This is the single source of truth for case-level
|
|
23
|
-
* and the search-navigation logic so the two never drift.
|
|
21
|
+
* (filed party, client, assessment-roll owner, address, parcel id, SCAR index number). An
|
|
22
|
+
* empty/whitespace term matches everything. This is the single source of truth for case-level
|
|
23
|
+
* search matching — shared by `filterCases` and the search-navigation logic so the two never drift.
|
|
24
|
+
*
|
|
25
|
+
* All three name fields are searched, not just the displayed one: staff look a case up by whichever
|
|
26
|
+
* name they happen to have, and on most cases the roll and the retainer disagree.
|
|
24
27
|
*/
|
|
25
28
|
export declare function caseMatchesSearchTerm(c: Case, term: string): boolean;
|
|
26
29
|
export declare function filterCases(cases: Case[], filterCtx: CalendarFilterCtx, isVillage: boolean, selectedDate?: Date): Case[];
|