@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.
@@ -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` is the *retainer*, not necessarily the
58
- * assessment-roll owner, and both it and `Address` are nullable (they come from LEFT JOINs).
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
  }
@@ -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 empty/whitespace term matches everything.
22
- * This is the single source of truth for case-level search matching — shared by `filterCases`
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[];