Fix references to public report reporter contact methods

This commit is contained in:
Eli Ribble 2026-05-16 18:12:28 +00:00
parent 1c8b13b31e
commit 0256b9bb42
No known key found for this signature in database
6 changed files with 46 additions and 30 deletions

View file

@ -82,14 +82,6 @@ export interface ContactOptions {
phones?: Phone[];
uri?: string;
}
export interface Phone {
can_sms: boolean;
e164: string;
}
export interface PhoneReporter {
can_sms: boolean;
number: string;
}
export class Contact {
emails: string[];
name: string;
@ -111,13 +103,26 @@ export interface ContactDTO {
phones: Phone[];
uri: string;
}
export interface ContactReporterOptions {
email?: string;
name?: string;
phone?: Phone;
uri?: string;
}
export class ContactReporter {
constructor(
public name: string,
public email: string,
public phone: Phone,
public uri: string,
) {}
email: string;
name: string;
phone: Phone;
uri: string;
constructor(options?: ContactReporterOptions) {
this.email = options?.email ?? "";
this.name = options?.name ?? "";
this.phone = options?.phone ?? {
e164: "",
can_sms: true,
};
this.uri = options?.uri ?? "";
}
}
export interface District {
name: string;
@ -839,6 +844,14 @@ export interface Organization {
lob_address_id: string;
service_area?: Bounds;
}
export interface Phone {
can_sms: boolean;
e164: string;
}
export interface PhoneReporter {
can_sms: boolean;
number: string;
}
export interface UserNotificationCounts {
communication: number;
home: number;