@propriety/court-calendar 1.0.140 → 1.0.141
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 +22 -0
- package/dist/index.mjs +5339 -5226
- package/package.json +1 -1
- package/src/_components/Modal/DateDetails/DateDetails.tsx +142 -26
- package/src/helpers/api/cases.ts +70 -0
|
@@ -18,4 +18,26 @@ export interface FoilAffidavitResult {
|
|
|
18
18
|
skipped: string[];
|
|
19
19
|
}
|
|
20
20
|
export declare function prepareFoilAffidavit(parcelIds: string[], date: Date, year: number, apiKey: string, negotiatorId?: number, testing?: boolean): Promise<FoilAffidavitResult | null>;
|
|
21
|
+
/**
|
|
22
|
+
* Downloads the Motion to Preclude for a court date — a single PDF when the date has one
|
|
23
|
+
* case, or a ZIP archive when it has several. The filename is taken from the response's
|
|
24
|
+
* Content-Disposition header when present. Returns false on a non-2xx response.
|
|
25
|
+
*/
|
|
26
|
+
export declare function downloadMotionToPreclude(courtDateId: number, apiKey: string): Promise<boolean>;
|
|
27
|
+
export interface MotionUploadResult {
|
|
28
|
+
ok: boolean;
|
|
29
|
+
/** True when the backend skipped the upload because SkipMotion is set (HTTP 409). */
|
|
30
|
+
skipped?: boolean;
|
|
31
|
+
message?: string;
|
|
32
|
+
documentsSubmitted?: {
|
|
33
|
+
index_number: string;
|
|
34
|
+
status: string;
|
|
35
|
+
}[];
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Triggers the NYSCEF upload of the Motion to Preclude for every case on a court date.
|
|
39
|
+
* The backend returns 409 (skipped) when SkipMotion is set for the date — surfaced here as
|
|
40
|
+
* `{ ok: false, skipped: true }` rather than a hard error. Pass `test` to run without submitting.
|
|
41
|
+
*/
|
|
42
|
+
export declare function uploadMotionToPreclude(courtDateId: number, apiKey: string, test?: boolean): Promise<MotionUploadResult>;
|
|
21
43
|
export declare function updateCaseAdjournment(parcelId: string, scarIndexNumber: string, adjournedDate: Date | null, apiKey: string): Promise<boolean>;
|