@propriety/court-calendar 1.0.190 → 1.0.191
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 +4 -1
- package/dist/helpers/foil.d.ts +13 -0
- package/dist/index.mjs +3334 -3314
- package/package.json +1 -1
|
@@ -13,9 +13,12 @@ export declare function clearCaseDeterminations(cases: {
|
|
|
13
13
|
}[], apiKey: string): Promise<boolean>;
|
|
14
14
|
export declare function fetchFoilClerkEmails(parcelIds: string[], year: number, apiKey: string): Promise<string[]>;
|
|
15
15
|
export interface FoilAffidavitResult {
|
|
16
|
-
affidavit_key: string;
|
|
17
16
|
sent: string[];
|
|
18
17
|
skipped: string[];
|
|
18
|
+
errors: {
|
|
19
|
+
pid: string;
|
|
20
|
+
reason: string;
|
|
21
|
+
}[];
|
|
19
22
|
}
|
|
20
23
|
export declare function prepareFoilAffidavit(parcelIds: string[], date: Date, year: number, apiKey: string, negotiatorId?: number, testing?: boolean): Promise<FoilAffidavitResult | null>;
|
|
21
24
|
/**
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FoilAffidavitResult } from './api/cases';
|
|
2
|
+
export interface FoilSendOutcome {
|
|
3
|
+
severity: 'success' | 'warning' | 'error';
|
|
4
|
+
text: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* What a FOIL send actually did, one group per POST. A parcel the server neither created nor
|
|
8
|
+
* skipped counts as not sent, so nothing it left out of its answer can read as sent.
|
|
9
|
+
*/
|
|
10
|
+
export declare function summarizeFoilResults(groups: {
|
|
11
|
+
requested: number;
|
|
12
|
+
result: FoilAffidavitResult | null;
|
|
13
|
+
}[]): FoilSendOutcome;
|