mirror of
https://github.com/FranP-code/inbox-negotiator.git
synced 2025-10-13 00:42:26 +00:00
Adds email approval & Postmark integration for negotiations
Enables users to approve and send negotiation emails directly via Postmark after configuring a server token in settings. Introduces new debt statuses ("approved", "sent"), UI for token management, and approval/rejection flows. Refactors notifications to use a modern toast library, adjusts dashboard status filters, and updates DB schema for new flows.
Empowers compliant, user-controlled negotiation and automated email delivery.
This commit is contained in:
@@ -22,7 +22,14 @@ export type Debt = {
|
||||
vendor: string;
|
||||
amount: number;
|
||||
raw_email: string | null;
|
||||
status: "received" | "negotiating" | "settled" | "failed" | "opted_out";
|
||||
status:
|
||||
| "received"
|
||||
| "negotiating"
|
||||
| "approved"
|
||||
| "sent"
|
||||
| "settled"
|
||||
| "failed"
|
||||
| "opted_out";
|
||||
negotiated_plan: string | null;
|
||||
projected_savings: number;
|
||||
user_id: string;
|
||||
@@ -47,6 +54,7 @@ export type UserProfile = {
|
||||
onboarding_completed: boolean;
|
||||
first_login_at: string | null;
|
||||
email_processing_limit: number;
|
||||
postmark_server_token: string | null;
|
||||
};
|
||||
|
||||
export type AdditionalEmail = {
|
||||
|
||||
Reference in New Issue
Block a user