This commit is contained in:
2026-07-28 14:38:00 -05:00
parent e114490cde
commit 4653f53ff3
10 changed files with 616 additions and 25 deletions

View File

@@ -110,6 +110,11 @@ export interface NdaRound {
signer_name: string | null;
/** A declined round stays SENT — it was never signed. */
declined: boolean;
/** Read straight off the signed Dropbox Sign form. */
income_requirements: string | null;
accountant: string | null;
attorney: string | null;
bank: string | null;
deals: Deal[];
}
@@ -269,6 +274,8 @@ export interface InboxRow {
signer: { name: string; email: string };
/** Full ISO timestamp as well — the second the signature came in. */
signed_at: string | null;
/** signed_at once signed, created_at until then: the moment that matters. */
relevant_at: string;
imported: { nda_id: string; buyer_id: string } | null;
known_buyer: { buyer_id: string; company_name: string | null; contact_name: string } | null;
business_suggestions: { id: string; name: string; status: BusinessStatus }[];
@@ -294,6 +301,14 @@ export interface ImportResult {
warning: string | null;
}
export interface BackfillResult {
candidates: number;
filled: number;
empty: number;
failed: number;
warnings: string[];
}
export interface SyncResult {
checked: number;
signed: number;
@@ -417,6 +432,7 @@ export const api = {
business_id: businessId,
}),
syncInbox: () => post<SyncResult>('/api/nda-inbox/sync'),
backfillFields: () => post<BackfillResult>('/api/nda-inbox/backfill-fields'),
};
/** Same-origin streaming URL of the PDF filed for one NDA round. */