Update mailer page to show actual data

This commit is contained in:
Eli Ribble 2026-04-21 19:38:46 +00:00
parent 0b005c3e76
commit 8fd86d478c
No known key found for this signature in database
7 changed files with 31 additions and 85 deletions

View file

@ -659,7 +659,7 @@ export interface User {
uri: string;
username: string;
}
type MailerStatus = "created" | "printed" | "mailed" | "completed";
export type MailerStatus = "created" | "printed" | "mailed" | "completed";
export interface MailerDTO {
address: Address;
compliance_report_request_id?: string;
@ -699,6 +699,9 @@ export class Mailer {
this.status = options.status;
this.uri = options.uri;
}
pdfUrl(): string {
return `/mailer/mode-3/${this.compliance_report_request_id}/preview`;
}
static fromJSON(json: MailerDTO): Mailer {
return new Mailer({
...json,