@propriety/court-calendar 1.0.186 → 1.0.188
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DateType, CourtDate, CourtDateDetail, DateEditLog, Notes } from '../../types';
|
|
2
2
|
export declare function getAllDates(apiKey: string, type?: DateType, dateFrom?: string, dateTo?: string): Promise<Array<CourtDate>>;
|
|
3
|
-
export declare function updateCourtDate(courtDateId: number, updatedData: Partial<CourtDate>, apiKey: string, courtCases?: string[], user?: number, type?: DateType, skipMotion?: boolean, noticeFiles?: File[]): Promise<boolean>;
|
|
3
|
+
export declare function updateCourtDate(courtDateId: number, updatedData: Partial<CourtDate>, apiKey: string, courtCases?: string[], user?: number, type?: DateType, skipMotion?: boolean, noticeFiles?: File[], onUploadDeadlineNotice?: (notice: string) => void): Promise<boolean>;
|
|
4
4
|
/**
|
|
5
5
|
* Append one note to a court date, negotiation date or collections hearing.
|
|
6
6
|
*
|
|
@@ -26,7 +26,7 @@ export declare function getCourtDate(courtDateId: number, apiKey: string, type?:
|
|
|
26
26
|
*/
|
|
27
27
|
export declare function getCourtDateDetail(courtDateId: number, apiKey: string, type?: DateType): Promise<CourtDateDetail | null>;
|
|
28
28
|
export declare function deleteCourtDate(courtDateId: number, apiKey: string, type?: DateType, user?: number): Promise<boolean>;
|
|
29
|
-
export declare function createCourtDate(courtDate: Date, muniCode: string, apiKey: string, courtCases?: string[], hearingTime?: string, multipleDates?: Date[], type?: DateType, noticeFiles?: File[], editUser?: number): Promise<number | null>;
|
|
29
|
+
export declare function createCourtDate(courtDate: Date, muniCode: string, apiKey: string, courtCases?: string[], hearingTime?: string, multipleDates?: Date[], type?: DateType, noticeFiles?: File[], editUser?: number, onUploadDeadlineNotice?: (notice: string) => void): Promise<number | null>;
|
|
30
30
|
export declare function snoozeUploadDeadline(courtDateId: number, apiKey: string): Promise<boolean>;
|
|
31
31
|
export declare function getDateEditLogs(courtDateId: number, apiKey: string, type?: DateType): Promise<DateEditLog | null>;
|
|
32
32
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MouseEvent } from 'react';
|
|
2
|
+
export declare const fileNameFromUrl: (url: string) => string;
|
|
2
3
|
export declare function openDocument(url: string): Promise<void>;
|
|
3
4
|
export declare function printDocument(e: MouseEvent, url: string): Promise<void>;
|
|
4
5
|
export declare function downloadDocument(e: MouseEvent, url: string): Promise<void>;
|
|
@@ -23,7 +23,7 @@ import { ModalMode } from '../_components/Modal/types';
|
|
|
23
23
|
* - `handleSelectedCasesAdjournmentChange` – Adjourns a set of cases (sets AdjournedDate + `OA` determination), then reconciles with the server.
|
|
24
24
|
* - `handleSelectedCasesClearDetermination` – Clears the determination for a set of cases (backend only clears `D`), then reconciles with the server.
|
|
25
25
|
*/
|
|
26
|
-
export declare function useModalActions({ modalMode, selectedCourtDate, selectedCases, editedData, editedCases, setEditedData, setIsOpen, pendingNoticeFiles, }: {
|
|
26
|
+
export declare function useModalActions({ modalMode, selectedCourtDate, selectedCases, editedData, editedCases, setEditedData, setIsOpen, pendingNoticeFiles, onUploadDeadlineNotice, }: {
|
|
27
27
|
modalMode: ModalMode;
|
|
28
28
|
selectedCourtDate: CourtDate | null;
|
|
29
29
|
selectedCases: Case[];
|
|
@@ -32,6 +32,8 @@ export declare function useModalActions({ modalMode, selectedCourtDate, selected
|
|
|
32
32
|
setEditedData: (data: CourtDate) => void;
|
|
33
33
|
setIsOpen: (isOpen: boolean) => void;
|
|
34
34
|
pendingNoticeFiles?: File[];
|
|
35
|
+
/** Receives the server's note when a create or date move found its upload deadline already passed. */
|
|
36
|
+
onUploadDeadlineNotice?: (notice: string) => void;
|
|
35
37
|
}): {
|
|
36
38
|
handleSave: () => Promise<boolean>;
|
|
37
39
|
handleDelete: () => Promise<boolean>;
|