-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmtoBatchParser.d.ts
More file actions
35 lines (35 loc) · 1.09 KB
/
mtoBatchParser.d.ts
File metadata and controls
35 lines (35 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import { type DateString } from '@cityssm/utils-datetime';
export interface MTOBatchResultEntry {
licencePlateNumber: string;
issueDate: DateString;
ticketNumber: string;
driverLicenceNumber: string;
ownerGenderKey: string;
ownerName1: string;
ownerName2: string;
ownerAddress: string;
ownerCity: string;
ownerProvince: string;
ownerPostalCode: string;
vehicleMake: string;
vehicleMakeDescription?: string;
vehicleYear?: number;
vehicleColor: string;
vehicleColorDescription?: string;
errorCode: string;
errorMessage: string;
licencePlateExpiryDate?: DateString;
}
export interface MTOBatchResults {
sentDate: DateString;
recordDate: DateString;
unparsedResultsCount: number;
parsedResults: MTOBatchResultEntry[];
parsedResultsWithErrors: MTOBatchResultEntry[];
}
/**
* Parses the string data from an MTO results file.
* @param {string} resultData - A string of results data.
* @returns {MTOBatchResults} - The parsed results.
*/
export declare function parseMTOBatchResult(resultData: string): Promise<MTOBatchResults>;