@gg-world/deals
Version:
Zod schemas and TypeScript types for deal-related data structures
3,954 lines • 147 kB
TypeScript
import { ObjectId } from "mongodb";
import { z } from "zod";
export declare const DealStatusEnum: z.ZodEnum<["default", "liked", "disliked", "deleted", "email"]>;
export declare const ProcessingStatusEnum: z.ZodEnum<["pending", "completed", "failed"]>;
export declare const LinkParsingStatusEnum: z.ZodEnum<["pending", "completed"]>;
export declare const LinkStatusEnum: z.ZodEnum<["parsing_pending", "parsed_success", "parsing_failed"]>;
export declare const SourceTypeEnum: z.ZodEnum<["personal_linkedin", "company_linkedin", "youtube", "docsend", "google_drive", "onedrive", "google_docs", "dropbox", "vimeo", "funden", "pitch", "canva", "calameo", "maildoc", "figma", "brieflink", "other", "file"]>;
export declare const DealSourceEnum: z.ZodEnum<["email", "file", "upload"]>;
export declare const CompanyInfoSchema: z.ZodObject<{
company_name: z.ZodString;
short_description: z.ZodString;
website: z.ZodNullable<z.ZodString>;
founding_date: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
company_name: string;
short_description: string;
website: string | null;
founding_date: string | null;
}, {
company_name: string;
short_description: string;
website: string | null;
founding_date: string | null;
}>;
export declare const PitchDeckInfoSchema: z.ZodObject<{
pitch_deck_link: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
pitch_deck_link: string | null;
}, {
pitch_deck_link: string | null;
}>;
export declare const VideosInfoSchema: z.ZodObject<{
video_pitch: z.ZodNullable<z.ZodString>;
demo_video: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
video_pitch: string | null;
demo_video: string | null;
}, {
video_pitch: string | null;
demo_video: string | null;
}>;
export declare const LocationsInfoSchema: z.ZodObject<{
startup_headquarters: z.ZodArray<z.ZodString, "many">;
incorporation: z.ZodObject<{
country: z.ZodNullable<z.ZodString>;
state: z.ZodNullable<z.ZodString>;
entity_type: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
country: string | null;
state: string | null;
entity_type: string | null;
}, {
country: string | null;
state: string | null;
entity_type: string | null;
}>;
}, "strip", z.ZodTypeAny, {
startup_headquarters: string[];
incorporation: {
country: string | null;
state: string | null;
entity_type: string | null;
};
}, {
startup_headquarters: string[];
incorporation: {
country: string | null;
state: string | null;
entity_type: string | null;
};
}>;
export declare const FundraisingInfoSchema: z.ZodObject<{
investment_stage: z.ZodNullable<z.ZodString>;
round_size: z.ZodNullable<z.ZodNumber>;
minimum_investment: z.ZodNullable<z.ZodNumber>;
round_deadline: z.ZodNullable<z.ZodString>;
round_progress: z.ZodNullable<z.ZodNumber>;
lead_investor: z.ZodNullable<z.ZodString>;
valuation: z.ZodObject<{
pre_money_valuation: z.ZodNullable<z.ZodNumber>;
post_money_valuation: z.ZodNullable<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
pre_money_valuation: number | null;
post_money_valuation: number | null;
}, {
pre_money_valuation: number | null;
post_money_valuation: number | null;
}>;
previous_funding: z.ZodObject<{
total_raised: z.ZodNullable<z.ZodNumber>;
last_round: z.ZodObject<{
type: z.ZodNullable<z.ZodString>;
amount: z.ZodNullable<z.ZodNumber>;
date: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: string | null;
date: string | null;
amount: number | null;
}, {
type: string | null;
date: string | null;
amount: number | null;
}>;
}, "strip", z.ZodTypeAny, {
total_raised: number | null;
last_round: {
type: string | null;
date: string | null;
amount: number | null;
};
}, {
total_raised: number | null;
last_round: {
type: string | null;
date: string | null;
amount: number | null;
};
}>;
}, "strip", z.ZodTypeAny, {
investment_stage: string | null;
round_size: number | null;
minimum_investment: number | null;
round_deadline: string | null;
round_progress: number | null;
lead_investor: string | null;
valuation: {
pre_money_valuation: number | null;
post_money_valuation: number | null;
};
previous_funding: {
total_raised: number | null;
last_round: {
type: string | null;
date: string | null;
amount: number | null;
};
};
}, {
investment_stage: string | null;
round_size: number | null;
minimum_investment: number | null;
round_deadline: string | null;
round_progress: number | null;
lead_investor: string | null;
valuation: {
pre_money_valuation: number | null;
post_money_valuation: number | null;
};
previous_funding: {
total_raised: number | null;
last_round: {
type: string | null;
date: string | null;
amount: number | null;
};
};
}>;
export declare const TractionInfoSchema: z.ZodObject<{
revenue: z.ZodObject<{
amount: z.ZodNumber;
type: z.ZodEnum<["monthly", "annual", "total"]>;
growth: z.ZodNullable<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
}, {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
}>;
users: z.ZodNullable<z.ZodObject<{
active: z.ZodNullable<z.ZodNumber>;
total: z.ZodNullable<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
total: number | null;
active: number | null;
}, {
total: number | null;
active: number | null;
}>>;
key_metrics: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
revenue: {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
};
users: {
total: number | null;
active: number | null;
} | null;
key_metrics: Record<string, string> | null;
}, {
revenue: {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
};
users: {
total: number | null;
active: number | null;
} | null;
key_metrics: Record<string, string> | null;
}>;
export declare const MarketInfoSchema: z.ZodObject<{
tam: z.ZodNullable<z.ZodNumber>;
sam: z.ZodNullable<z.ZodNumber>;
som: z.ZodNullable<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
tam: number | null;
sam: number | null;
som: number | null;
}, {
tam: number | null;
sam: number | null;
som: number | null;
}>;
export declare const BusinessMetricsSchema: z.ZodObject<{
focus_geography_sales: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
business_model: z.ZodArray<z.ZodString, "many">;
verticals: z.ZodArray<z.ZodString, "many">;
unique_selling_points: z.ZodArray<z.ZodString, "many">;
challenges: z.ZodArray<z.ZodString, "many">;
}, "strip", z.ZodTypeAny, {
focus_geography_sales: string[] | null;
business_model: string[];
verticals: string[];
unique_selling_points: string[];
challenges: string[];
}, {
business_model: string[];
verticals: string[];
unique_selling_points: string[];
challenges: string[];
focus_geography_sales?: string[] | null | undefined;
}>;
export declare const TeamBasicInfoSchema: z.ZodObject<{
team_size: z.ZodNullable<z.ZodNumber>;
founder_names: z.ZodArray<z.ZodString, "many">;
minorities: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
skills_focus: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
}, {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
}>;
export type TeamBasicInfoType = z.infer<typeof TeamBasicInfoSchema>;
export declare const FounderDeepInfoSchema: z.ZodObject<{
name: z.ZodString;
linkedin_url: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
phone: z.ZodNullable<z.ZodString>;
title: z.ZodNullable<z.ZodString>;
notableExperiences: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
background: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
}, {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
}>;
export type FounderDeepInfoType = z.infer<typeof FounderDeepInfoSchema>;
export declare const LinkedInProfileSchema: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
city: z.ZodString;
country_code: z.ZodString;
position: z.ZodString;
about: z.ZodString;
current_company: z.ZodObject<{
name: z.ZodString;
link: z.ZodString;
title: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
title: string;
link: string;
}, {
name: string;
title: string;
link: string;
}>;
experience: z.ZodArray<z.ZodObject<{
title: z.ZodString;
location: z.ZodString;
duration: z.ZodString;
company: z.ZodString;
url: z.ZodString;
description: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}, {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}>, "many">;
education: z.ZodArray<z.ZodObject<{
title: z.ZodString;
degree: z.ZodString;
field: z.ZodString;
start_year: z.ZodString;
end_year: z.ZodString;
}, "strip", z.ZodTypeAny, {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}, {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}>, "many">;
certifications: z.ZodArray<z.ZodObject<{
title: z.ZodString;
subtitle: z.ZodString;
meta: z.ZodString;
credential_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}, {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}>, "many">;
avatar: z.ZodString;
followers: z.ZodNumber;
connections: z.ZodNumber;
profile_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
}, {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
}>;
export type LinkedInProfileType = z.infer<typeof LinkedInProfileSchema>;
export declare const FounderDeepInfoWithLinkedInProfileSchema: z.ZodObject<z.objectUtil.extendShape<{
name: z.ZodString;
linkedin_url: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
phone: z.ZodNullable<z.ZodString>;
title: z.ZodNullable<z.ZodString>;
notableExperiences: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
background: z.ZodNullable<z.ZodString>;
}, {
linkedin_profile: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
city: z.ZodString;
country_code: z.ZodString;
position: z.ZodString;
about: z.ZodString;
current_company: z.ZodObject<{
name: z.ZodString;
link: z.ZodString;
title: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
title: string;
link: string;
}, {
name: string;
title: string;
link: string;
}>;
experience: z.ZodArray<z.ZodObject<{
title: z.ZodString;
location: z.ZodString;
duration: z.ZodString;
company: z.ZodString;
url: z.ZodString;
description: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}, {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}>, "many">;
education: z.ZodArray<z.ZodObject<{
title: z.ZodString;
degree: z.ZodString;
field: z.ZodString;
start_year: z.ZodString;
end_year: z.ZodString;
}, "strip", z.ZodTypeAny, {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}, {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}>, "many">;
certifications: z.ZodArray<z.ZodObject<{
title: z.ZodString;
subtitle: z.ZodString;
meta: z.ZodString;
credential_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}, {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}>, "many">;
avatar: z.ZodString;
followers: z.ZodNumber;
connections: z.ZodNumber;
profile_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
}, {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
}>;
}>, "strip", z.ZodTypeAny, {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}, {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}>;
export type FounderDeepInfoWithLinkedInProfileType = z.infer<typeof FounderDeepInfoWithLinkedInProfileSchema>;
export declare const CompleteTeamInfoSchema: z.ZodObject<{
team: z.ZodObject<{
team_size: z.ZodNullable<z.ZodNumber>;
founder_names: z.ZodArray<z.ZodString, "many">;
minorities: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
skills_focus: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
}, {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
}>;
founders: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
name: z.ZodString;
linkedin_url: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
phone: z.ZodNullable<z.ZodString>;
title: z.ZodNullable<z.ZodString>;
notableExperiences: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
background: z.ZodNullable<z.ZodString>;
}, {
linkedin_profile: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
city: z.ZodString;
country_code: z.ZodString;
position: z.ZodString;
about: z.ZodString;
current_company: z.ZodObject<{
name: z.ZodString;
link: z.ZodString;
title: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
title: string;
link: string;
}, {
name: string;
title: string;
link: string;
}>;
experience: z.ZodArray<z.ZodObject<{
title: z.ZodString;
location: z.ZodString;
duration: z.ZodString;
company: z.ZodString;
url: z.ZodString;
description: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}, {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}>, "many">;
education: z.ZodArray<z.ZodObject<{
title: z.ZodString;
degree: z.ZodString;
field: z.ZodString;
start_year: z.ZodString;
end_year: z.ZodString;
}, "strip", z.ZodTypeAny, {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}, {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}>, "many">;
certifications: z.ZodArray<z.ZodObject<{
title: z.ZodString;
subtitle: z.ZodString;
meta: z.ZodString;
credential_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}, {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}>, "many">;
avatar: z.ZodString;
followers: z.ZodNumber;
connections: z.ZodNumber;
profile_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
}, {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
}>;
}>, "strip", z.ZodTypeAny, {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}, {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}>, "many">;
}, "strip", z.ZodTypeAny, {
team: {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
};
founders: {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}[];
}, {
team: {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
};
founders: {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}[];
}>;
export type CompleteTeamInfoType = z.infer<typeof CompleteTeamInfoSchema>;
export declare const AdditionalDetailsSchema: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
export declare const InvestorQuestionsSchema: z.ZodObject<{
investor_questions: z.ZodNullable<z.ZodArray<z.ZodObject<{
question: z.ZodString;
answer: z.ZodString;
}, "strip", z.ZodTypeAny, {
question: string;
answer: string;
}, {
question: string;
answer: string;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
investor_questions: {
question: string;
answer: string;
}[] | null;
}, {
investor_questions: {
question: string;
answer: string;
}[] | null;
}>;
export declare const DealProfileSchema: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
videos: z.ZodObject<{
video_pitch: z.ZodNullable<z.ZodString>;
demo_video: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
video_pitch: string | null;
demo_video: string | null;
}, {
video_pitch: string | null;
demo_video: string | null;
}>;
pitch_deck: z.ZodObject<{
pitch_deck_link: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
pitch_deck_link: string | null;
}, {
pitch_deck_link: string | null;
}>;
traction: z.ZodObject<{
revenue: z.ZodObject<{
amount: z.ZodNumber;
type: z.ZodEnum<["monthly", "annual", "total"]>;
growth: z.ZodNullable<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
}, {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
}>;
users: z.ZodNullable<z.ZodObject<{
active: z.ZodNullable<z.ZodNumber>;
total: z.ZodNullable<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
total: number | null;
active: number | null;
}, {
total: number | null;
active: number | null;
}>>;
key_metrics: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
revenue: {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
};
users: {
total: number | null;
active: number | null;
} | null;
key_metrics: Record<string, string> | null;
}, {
revenue: {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
};
users: {
total: number | null;
active: number | null;
} | null;
key_metrics: Record<string, string> | null;
}>;
market: z.ZodObject<{
tam: z.ZodNullable<z.ZodNumber>;
sam: z.ZodNullable<z.ZodNumber>;
som: z.ZodNullable<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
tam: number | null;
sam: number | null;
som: number | null;
}, {
tam: number | null;
sam: number | null;
som: number | null;
}>;
team: z.ZodObject<{
team: z.ZodObject<{
team_size: z.ZodNullable<z.ZodNumber>;
founder_names: z.ZodArray<z.ZodString, "many">;
minorities: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
skills_focus: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
}, {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
}>;
founders: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
name: z.ZodString;
linkedin_url: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
phone: z.ZodNullable<z.ZodString>;
title: z.ZodNullable<z.ZodString>;
notableExperiences: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
background: z.ZodNullable<z.ZodString>;
}, {
linkedin_profile: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
city: z.ZodString;
country_code: z.ZodString;
position: z.ZodString;
about: z.ZodString;
current_company: z.ZodObject<{
name: z.ZodString;
link: z.ZodString;
title: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
title: string;
link: string;
}, {
name: string;
title: string;
link: string;
}>;
experience: z.ZodArray<z.ZodObject<{
title: z.ZodString;
location: z.ZodString;
duration: z.ZodString;
company: z.ZodString;
url: z.ZodString;
description: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}, {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}>, "many">;
education: z.ZodArray<z.ZodObject<{
title: z.ZodString;
degree: z.ZodString;
field: z.ZodString;
start_year: z.ZodString;
end_year: z.ZodString;
}, "strip", z.ZodTypeAny, {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}, {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}>, "many">;
certifications: z.ZodArray<z.ZodObject<{
title: z.ZodString;
subtitle: z.ZodString;
meta: z.ZodString;
credential_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}, {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}>, "many">;
avatar: z.ZodString;
followers: z.ZodNumber;
connections: z.ZodNumber;
profile_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
}, {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
}>;
}>, "strip", z.ZodTypeAny, {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}, {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}>, "many">;
}, "strip", z.ZodTypeAny, {
team: {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
};
founders: {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}[];
}, {
team: {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
};
founders: {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}[];
}>;
additional_details: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
}, {
company_name: z.ZodString;
short_description: z.ZodString;
website: z.ZodNullable<z.ZodString>;
founding_date: z.ZodNullable<z.ZodString>;
}>, {
startup_headquarters: z.ZodArray<z.ZodString, "many">;
incorporation: z.ZodObject<{
country: z.ZodNullable<z.ZodString>;
state: z.ZodNullable<z.ZodString>;
entity_type: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
country: string | null;
state: string | null;
entity_type: string | null;
}, {
country: string | null;
state: string | null;
entity_type: string | null;
}>;
}>, {
investment_stage: z.ZodNullable<z.ZodString>;
round_size: z.ZodNullable<z.ZodNumber>;
minimum_investment: z.ZodNullable<z.ZodNumber>;
round_deadline: z.ZodNullable<z.ZodString>;
round_progress: z.ZodNullable<z.ZodNumber>;
lead_investor: z.ZodNullable<z.ZodString>;
valuation: z.ZodObject<{
pre_money_valuation: z.ZodNullable<z.ZodNumber>;
post_money_valuation: z.ZodNullable<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
pre_money_valuation: number | null;
post_money_valuation: number | null;
}, {
pre_money_valuation: number | null;
post_money_valuation: number | null;
}>;
previous_funding: z.ZodObject<{
total_raised: z.ZodNullable<z.ZodNumber>;
last_round: z.ZodObject<{
type: z.ZodNullable<z.ZodString>;
amount: z.ZodNullable<z.ZodNumber>;
date: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: string | null;
date: string | null;
amount: number | null;
}, {
type: string | null;
date: string | null;
amount: number | null;
}>;
}, "strip", z.ZodTypeAny, {
total_raised: number | null;
last_round: {
type: string | null;
date: string | null;
amount: number | null;
};
}, {
total_raised: number | null;
last_round: {
type: string | null;
date: string | null;
amount: number | null;
};
}>;
}>, {
focus_geography_sales: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
business_model: z.ZodArray<z.ZodString, "many">;
verticals: z.ZodArray<z.ZodString, "many">;
unique_selling_points: z.ZodArray<z.ZodString, "many">;
challenges: z.ZodArray<z.ZodString, "many">;
}>, {
investor_questions: z.ZodNullable<z.ZodArray<z.ZodObject<{
question: z.ZodString;
answer: z.ZodString;
}, "strip", z.ZodTypeAny, {
question: string;
answer: string;
}, {
question: string;
answer: string;
}>, "many">>;
}>, "strip", z.ZodTypeAny, {
company_name: string;
short_description: string;
website: string | null;
founding_date: string | null;
startup_headquarters: string[];
incorporation: {
country: string | null;
state: string | null;
entity_type: string | null;
};
investment_stage: string | null;
round_size: number | null;
minimum_investment: number | null;
round_deadline: string | null;
round_progress: number | null;
lead_investor: string | null;
valuation: {
pre_money_valuation: number | null;
post_money_valuation: number | null;
};
previous_funding: {
total_raised: number | null;
last_round: {
type: string | null;
date: string | null;
amount: number | null;
};
};
focus_geography_sales: string[] | null;
business_model: string[];
verticals: string[];
unique_selling_points: string[];
challenges: string[];
team: {
team: {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
};
founders: {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}[];
};
investor_questions: {
question: string;
answer: string;
}[] | null;
videos: {
video_pitch: string | null;
demo_video: string | null;
};
pitch_deck: {
pitch_deck_link: string | null;
};
traction: {
revenue: {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
};
users: {
total: number | null;
active: number | null;
} | null;
key_metrics: Record<string, string> | null;
};
market: {
tam: number | null;
sam: number | null;
som: number | null;
};
additional_details: Record<string, any> | null;
}, {
company_name: string;
short_description: string;
website: string | null;
founding_date: string | null;
startup_headquarters: string[];
incorporation: {
country: string | null;
state: string | null;
entity_type: string | null;
};
investment_stage: string | null;
round_size: number | null;
minimum_investment: number | null;
round_deadline: string | null;
round_progress: number | null;
lead_investor: string | null;
valuation: {
pre_money_valuation: number | null;
post_money_valuation: number | null;
};
previous_funding: {
total_raised: number | null;
last_round: {
type: string | null;
date: string | null;
amount: number | null;
};
};
business_model: string[];
verticals: string[];
unique_selling_points: string[];
challenges: string[];
team: {
team: {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
};
founders: {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}[];
};
investor_questions: {
question: string;
answer: string;
}[] | null;
videos: {
video_pitch: string | null;
demo_video: string | null;
};
pitch_deck: {
pitch_deck_link: string | null;
};
traction: {
revenue: {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
};
users: {
total: number | null;
active: number | null;
} | null;
key_metrics: Record<string, string> | null;
};
market: {
tam: number | null;
sam: number | null;
som: number | null;
};
focus_geography_sales?: string[] | null | undefined;
additional_details?: Record<string, any> | null | undefined;
}>;
export declare const LinkParsingResultSchema: z.ZodObject<{
url: z.ZodString;
status: z.ZodEnum<["parsing_pending", "parsed_success", "parsing_failed"]>;
type: z.ZodEnum<["personal_linkedin", "company_linkedin", "youtube", "docsend", "google_drive", "onedrive", "google_docs", "dropbox", "vimeo", "funden", "pitch", "canva", "calameo", "maildoc", "figma", "brieflink", "other", "file"]>;
parsed_at: z.ZodNullable<z.ZodDate>;
error_message: z.ZodNullable<z.ZodString>;
retries: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}, {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}>;
export declare const FileAttachmentSchema: z.ZodObject<{
file_url: z.ZodString;
filename: z.ZodString;
uploaded_at: z.ZodDate;
}, "strip", z.ZodTypeAny, {
file_url: string;
filename: string;
uploaded_at: Date;
}, {
file_url: string;
filename: string;
uploaded_at: Date;
}>;
export declare const RawInputSchema: z.ZodObject<{
text: z.ZodDefault<z.ZodString>;
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
file_url: z.ZodString;
filename: z.ZodString;
uploaded_at: z.ZodDate;
}, "strip", z.ZodTypeAny, {
file_url: string;
filename: string;
uploaded_at: Date;
}, {
file_url: string;
filename: string;
uploaded_at: Date;
}>, "many">>;
received_at: z.ZodDefault<z.ZodDate>;
}, "strip", z.ZodTypeAny, {
text: string;
attachments: {
file_url: string;
filename: string;
uploaded_at: Date;
}[];
received_at: Date;
}, {
text?: string | undefined;
attachments?: {
file_url: string;
filename: string;
uploaded_at: Date;
}[] | undefined;
received_at?: Date | undefined;
}>;
export declare const EnrichmentMetadataSchema: z.ZodObject<{
events: z.ZodDefault<z.ZodArray<z.ZodObject<{
id: z.ZodString;
last_enrichment_date: z.ZodNullable<z.ZodDate>;
raw_input: z.ZodObject<{
text: z.ZodDefault<z.ZodString>;
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
file_url: z.ZodString;
filename: z.ZodString;
uploaded_at: z.ZodDate;
}, "strip", z.ZodTypeAny, {
file_url: string;
filename: string;
uploaded_at: Date;
}, {
file_url: string;
filename: string;
uploaded_at: Date;
}>, "many">>;
received_at: z.ZodDefault<z.ZodDate>;
}, "strip", z.ZodTypeAny, {
text: string;
attachments: {
file_url: string;
filename: string;
uploaded_at: Date;
}[];
received_at: Date;
}, {
text?: string | undefined;
attachments?: {
file_url: string;
filename: string;
uploaded_at: Date;
}[] | undefined;
received_at?: Date | undefined;
}>;
source_data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
raw_data: z.ZodObject<{
content: z.ZodString;
metadata: z.ZodAny;
}, "strip", z.ZodTypeAny, {
content: string;
metadata?: any;
}, {
content: string;
metadata?: any;
}>;
processed_at: z.ZodDate;
source_type: z.ZodEnum<["personal_linkedin", "company_linkedin", "youtube", "docsend", "google_drive", "onedrive", "google_docs", "dropbox", "vimeo", "funden", "pitch", "canva", "calameo", "maildoc", "figma", "brieflink", "other", "file"]>;
}, "strip", z.ZodTypeAny, {
raw_data: {
content: string;
metadata?: any;
};
processed_at: Date;
source_type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
}, {
raw_data: {
content: string;
metadata?: any;
};
processed_at: Date;
source_type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
}>>>;
processing_status: z.ZodObject<{
link_parsing_status: z.ZodDefault<z.ZodEnum<["pending", "completed"]>>;
raw_input_parsing_status: z.ZodDefault<z.ZodEnum<["pending", "completed"]>>;
link_parsing_results: z.ZodDefault<z.ZodArray<z.ZodObject<{
url: z.ZodString;
status: z.ZodEnum<["parsing_pending", "parsed_success", "parsing_failed"]>;
type: z.ZodEnum<["personal_linkedin", "company_linkedin", "youtube", "docsend", "google_drive", "onedrive", "google_docs", "dropbox", "vimeo", "funden", "pitch", "canva", "calameo", "maildoc", "figma", "brieflink", "other", "file"]>;
parsed_at: z.ZodNullable<z.ZodDate>;
error_message: z.ZodNullable<z.ZodString>;
retries: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}, {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}>, "many">>;
attachment_parsing_results: z.ZodDefault<z.ZodArray<z.ZodObject<{
url: z.ZodString;
status: z.ZodEnum<["parsing_pending", "parsed_success", "parsing_failed"]>;
type: z.ZodEnum<["personal_linkedin", "company_linkedin", "youtube", "docsend", "google_drive", "onedrive", "google_docs", "dropbox", "vimeo", "funden", "pitch", "canva", "calameo", "maildoc", "figma", "brieflink", "other", "file"]>;
parsed_at: z.ZodNullable<z.ZodDate>;
error_message: z.ZodNullable<z.ZodString>;
retries: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}, {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
link_parsing_status: "pending" | "completed";
raw_input_parsing_status: "pending" | "completed";
link_parsing_results: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}[];
attachment_parsing_results: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}[];
}, {
link_parsing_status?: "pending" | "completed" | undefined;
raw_input_parsing_status?: "pending" | "completed" | undefined;
link_parsing_results?: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}[] | undefined;
attachment_parsing_results?: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}[] | undefined;
}>;
}, "strip", z.ZodTypeAny, {
id: string;
last_enrichment_date: Date | null;
raw_input: {
text: string;
attachments: {
file_url: string;
filename: string;
uploaded_at: Date;
}[];
received_at: Date;
};
source_data: Record<string, {
raw_data: {
content: string;
metadata?: any;
};
processed_at: Date;
source_type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
}>;
processing_status: {
link_parsing_status: "pending" | "completed";
raw_input_parsing_status: "pending" | "completed";
link_parsing_results: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}[];
attachment_parsing_results: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}[];
};
}, {
id: string;
last_enrichment_date: Date | null;
raw_input: {
text?: string | undefined;
attachments?: {
file_url: string;
filename: string;
uploaded_at: Date;
}[] | undefined;
received_at?: Date | undefined;
};
processing_status: {
link_parsing_status?: "pending" | "completed" | undefined;
raw_input_parsing_status?: "pending" | "completed" | undefined;
link_parsing_results?: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}[] | undefined;
attachment_parsing_results?: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}[] | undefined;
};
source_data?: Record<string, {
raw_data: {
content: string;
metadata?: any;
};
processed_at: Date;
source_type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
}> | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
events: {
id: string;
last_enrichment_date: Date | null;
raw_input: {
text: string;
attachments: {
file_url: string;
filename: string;
uploaded_at: Date;
}[];
received_at: Date;
};
source_data: Record<string, {
raw_data: {
content: string;
metadata?: any;
};
processed_at: Date;
source_type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
}>;
processing_status: {
link_parsing_status: "pending" | "completed";
raw_input_parsing_status: "pending" | "completed";
link_parsing_results: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}[];
attachment_parsing_results: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}[];
};
}[];
}, {
events?: {
id: string;
last_enrichment_date: Date | null;
raw_input: {
text?: string | undefined;
attachments?: {
file_url: string;
filename: string;
uploaded_at: Date;
}[] | undefined;
received_at?: Date | undefined;
};
processing_status: {
link_parsing_status?: "pending" | "completed" | undefined;
raw_input_parsing_status?: "pending" | "completed" | undefined;
link_parsing_results?: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}[] | undefined;
attachment_parsing_results?: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}[] | undefined;
};
source_data?: Record<string, {
raw_data: {
content: string;
metadata?: any;
};
processed_at: Date;
source_type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
}> | undefined;
}[] | undefined;
}>;
export declare const DealFactorSchema: z.ZodObject<{
factor: z.ZodString;
explanation: z.ZodString;
impact: z.ZodOptional<z.ZodNumber>;
weight: z.ZodDefault<z.ZodNumber>;
deal_breaker: z.ZodDefault<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
factor: string;
explanation: string;
weight: number;
deal_breaker: boolean;
impact?: number | undefined;
}, {
factor: string;
explanation: string;
impact?: number | undefined;
weight?: number | undefined;
deal_breaker?: boolean | undefined;
}>;
export declare const DealScoringSchema: z.ZodObject<{
score: z.ZodDefault<z.ZodNumber>;
factors: z.ZodDefault<z.ZodArray<z.ZodObject<{
factor: z.ZodString;
explanation: z.ZodString;
impact: z.ZodOptional<z.ZodNumber>;
weight: z.ZodDefault<z.ZodNumber>;
deal_breaker: z.ZodDefault<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
factor: string;
explanation: string;
weight: number;
deal_breaker: boolean;
impact?: number | undefined;
}, {
factor: string;
explanation: string;
impact?: number | undefined;
weight?: number | undefined;
deal_breaker?: boolean | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
score: number;
factors: {
factor: string;
explanation: string;
weight: number;
deal_breaker: boolean;
impact?: number | undefined;
}[];
}, {
score?: number | undefined;
factors?: {
factor: string;
explanation: string;
impact?: number | undefined;
weight?: number | undefined;
deal_breaker?: boolean | undefined;
}[] | undefined;
}>;
export declare const DealTagSchema: z.ZodObject<{
id: z.ZodNumber;
name: z.ZodDefault<z.ZodString>;
description: z.ZodDefault<z.ZodString>;
color: z.ZodDefault<z.ZodString>;
}, "strip", z.ZodTypeAny, {
name: string;
id: number;
description: string;
color: string;
}, {
id: number;
name?: string | undefined;
description?: string | undefined;
color?: string | undefined;
}>;
export declare const DealSchema: z.ZodObject<{
investor_email: z.ZodNullable<z.ZodString>;
status: z.ZodDefault<z.ZodEnum<["default", "liked", "disliked", "deleted", "email"]>>;
new: z.ZodDefault<z.ZodBoolean>;
stage: z.ZodDefault<z.ZodNullable<z.ZodString>>;
tags: z.ZodDefault<z.ZodArray<z.ZodNumber, "many">>;
source: z.ZodDefault<z.ZodEnum<["email", "file", "upload"]>>;
profile: z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
videos: z.ZodObject<{
video_pitch: z.ZodNullable<z.ZodString>;
demo_video: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
video_pitch: string | null;
demo_video: string | null;
}, {
video_pitch: string | null;
demo_video: string | null;
}>;
pitch_deck: z.ZodObject<{
pitch_deck_link: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
pitch_deck_link: string | null;
}, {
pitch_deck_link: string | null;
}>;
traction: z.ZodObject<{
revenue: z.ZodObject<{
amount: z.ZodNumber;
type: z.ZodEnum<["monthly", "annual", "total"]>;
growth: z.ZodNullable<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
}, {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
}>;
users: z.ZodNullable<z.ZodObject<{
active: z.ZodNullable<z.ZodNumber>;
total: z.ZodNullable<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
total: number | null;
active: number | null;
}, {
total: number | null;
active: number | null;
}>>;
key_metrics: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
}, "strip", z.ZodTypeAny, {
revenue: {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
};
users: {
total: number | null;
active: number | null;
} | null;
key_metrics: Record<string, string> | null;
}, {
revenue: {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
};
users: {
total: number | null;
active: number | null;
} | null;
key_metrics: Record<string, string> | null;
}>;
market: z.ZodObject<{
tam: z.ZodNullable<z.ZodNumber>;
sam: z.ZodNullable<z.ZodNumber>;
som: z.ZodNullable<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
tam: number | null;
sam: number | null;
som: number | null;
}, {
tam: number | null;
sam: number | null;
som: number | null;
}>;
team: z.ZodObject<{
team: z.ZodObject<{
team_size: z.ZodNullable<z.ZodNumber>;
founder_names: z.ZodArray<z.ZodString, "many">;
minorities: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
skills_focus: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
}, {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
}>;
founders: z.ZodArray<z.ZodObject<z.objectUtil.extendShape<{
name: z.ZodString;
linkedin_url: z.ZodNullable<z.ZodString>;
email: z.ZodNullable<z.ZodString>;
phone: z.ZodNullable<z.ZodString>;
title: z.ZodNullable<z.ZodString>;
notableExperiences: z.ZodNullable<z.ZodArray<z.ZodString, "many">>;
background: z.ZodNullable<z.ZodString>;
}, {
linkedin_profile: z.ZodObject<{
id: z.ZodString;
name: z.ZodString;
city: z.ZodString;
country_code: z.ZodString;
position: z.ZodString;
about: z.ZodString;
current_company: z.ZodObject<{
name: z.ZodString;
link: z.ZodString;
title: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
title: string;
link: string;
}, {
name: string;
title: string;
link: string;
}>;
experience: z.ZodArray<z.ZodObject<{
title: z.ZodString;
location: z.ZodString;
duration: z.ZodString;
company: z.ZodString;
url: z.ZodString;
description: z.ZodString;
}, "strip", z.ZodTypeAny, {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}, {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}>, "many">;
education: z.ZodArray<z.ZodObject<{
title: z.ZodString;
degree: z.ZodString;
field: z.ZodString;
start_year: z.ZodString;
end_year: z.ZodString;
}, "strip", z.ZodTypeAny, {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}, {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}>, "many">;
certifications: z.ZodArray<z.ZodObject<{
title: z.ZodString;
subtitle: z.ZodString;
meta: z.ZodString;
credential_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}, {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}>, "many">;
avatar: z.ZodString;
followers: z.ZodNumber;
connections: z.ZodNumber;
profile_url: z.ZodString;
}, "strip", z.ZodTypeAny, {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
}, {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
}>;
}>, "strip", z.ZodTypeAny, {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}, {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}>, "many">;
}, "strip", z.ZodTypeAny, {
team: {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
};
founders: {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}[];
}, {
team: {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
};
founders: {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}[];
}>;
additional_details: z.ZodDefault<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodAny>>>;
}, {
company_name: z.ZodString;
short_description: z.ZodString;
website: z.ZodNullable<z.ZodString>;
founding_date: z.ZodNullable<z.ZodString>;
}>, {
startup_headquarters: z.ZodArray<z.ZodString, "many">;
incorporation: z.ZodObject<{
country: z.ZodNullable<z.ZodString>;
state: z.ZodNullable<z.ZodString>;
entity_type: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
country: string | null;
state: string | null;
entity_type: string | null;
}, {
country: string | null;
state: string | null;
entity_type: string | null;
}>;
}>, {
investment_stage: z.ZodNullable<z.ZodString>;
round_size: z.ZodNullable<z.ZodNumber>;
minimum_investment: z.ZodNullable<z.ZodNumber>;
round_deadline: z.ZodNullable<z.ZodString>;
round_progress: z.ZodNullable<z.ZodNumber>;
lead_investor: z.ZodNullable<z.ZodString>;
valuation: z.ZodObject<{
pre_money_valuation: z.ZodNullable<z.ZodNumber>;
post_money_valuation: z.ZodNullable<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
pre_money_valuation: number | null;
post_money_valuation: number | null;
}, {
pre_money_valuation: number | null;
post_money_valuation: number | null;
}>;
previous_funding: z.ZodObject<{
total_raised: z.ZodNullable<z.ZodNumber>;
last_round: z.ZodObject<{
type: z.ZodNullable<z.ZodString>;
amount: z.ZodNullable<z.ZodNumber>;
date: z.ZodNullable<z.ZodString>;
}, "strip", z.ZodTypeAny, {
type: string | null;
date: string | null;
amount: number | null;
}, {
type: string | null;
date: string | null;
amount: number | null;
}>;
}, "strip", z.ZodTypeAny, {
total_raised: number | null;
last_round: {
type: string | null;
date: string | null;
amount: number | null;
};
}, {
total_raised: number | null;
last_round: {
type: string | null;
date: string | null;
amount: number | null;
};
}>;
}>, {
focus_geography_sales: z.ZodDefault<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
business_model: z.ZodArray<z.ZodString, "many">;
verticals: z.ZodArray<z.ZodString, "many">;
unique_selling_points: z.ZodArray<z.ZodString, "many">;
challenges: z.ZodArray<z.ZodString, "many">;
}>, {
investor_questions: z.ZodNullable<z.ZodArray<z.ZodObject<{
question: z.ZodString;
answer: z.ZodString;
}, "strip", z.ZodTypeAny, {
question: string;
answer: string;
}, {
question: string;
answer: string;
}>, "many">>;
}>, "strip", z.ZodTypeAny, {
company_name: string;
short_description: string;
website: string | null;
founding_date: string | null;
startup_headquarters: string[];
incorporation: {
country: string | null;
state: string | null;
entity_type: string | null;
};
investment_stage: string | null;
round_size: number | null;
minimum_investment: number | null;
round_deadline: string | null;
round_progress: number | null;
lead_investor: string | null;
valuation: {
pre_money_valuation: number | null;
post_money_valuation: number | null;
};
previous_funding: {
total_raised: number | null;
last_round: {
type: string | null;
date: string | null;
amount: number | null;
};
};
focus_geography_sales: string[] | null;
business_model: string[];
verticals: string[];
unique_selling_points: string[];
challenges: string[];
team: {
team: {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
};
founders: {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}[];
};
investor_questions: {
question: string;
answer: string;
}[] | null;
videos: {
video_pitch: string | null;
demo_video: string | null;
};
pitch_deck: {
pitch_deck_link: string | null;
};
traction: {
revenue: {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
};
users: {
total: number | null;
active: number | null;
} | null;
key_metrics: Record<string, string> | null;
};
market: {
tam: number | null;
sam: number | null;
som: number | null;
};
additional_details: Record<string, any> | null;
}, {
company_name: string;
short_description: string;
website: string | null;
founding_date: string | null;
startup_headquarters: string[];
incorporation: {
country: string | null;
state: string | null;
entity_type: string | null;
};
investment_stage: string | null;
round_size: number | null;
minimum_investment: number | null;
round_deadline: string | null;
round_progress: number | null;
lead_investor: string | null;
valuation: {
pre_money_valuation: number | null;
post_money_valuation: number | null;
};
previous_funding: {
total_raised: number | null;
last_round: {
type: string | null;
date: string | null;
amount: number | null;
};
};
business_model: string[];
verticals: string[];
unique_selling_points: string[];
challenges: string[];
team: {
team: {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
};
founders: {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}[];
};
investor_questions: {
question: string;
answer: string;
}[] | null;
videos: {
video_pitch: string | null;
demo_video: string | null;
};
pitch_deck: {
pitch_deck_link: string | null;
};
traction: {
revenue: {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
};
users: {
total: number | null;
active: number | null;
} | null;
key_metrics: Record<string, string> | null;
};
market: {
tam: number | null;
sam: number | null;
som: number | null;
};
focus_geography_sales?: string[] | null | undefined;
additional_details?: Record<string, any> | null | undefined;
}>;
notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
id: z.ZodString;
content: z.ZodString;
created_at: z.ZodDate;
author: z.ZodString;
author_email: z.ZodString;
}, "strip", z.ZodTypeAny, {
id: string;
content: string;
created_at: Date;
author: string;
author_email: string;
}, {
id: string;
content: string;
created_at: Date;
author: string;
author_email: string;
}>, "many">>;
enrichment_metadata: z.ZodObject<{
events: z.ZodDefault<z.ZodArray<z.ZodObject<{
id: z.ZodString;
last_enrichment_date: z.ZodNullable<z.ZodDate>;
raw_input: z.ZodObject<{
text: z.ZodDefault<z.ZodString>;
attachments: z.ZodDefault<z.ZodArray<z.ZodObject<{
file_url: z.ZodString;
filename: z.ZodString;
uploaded_at: z.ZodDate;
}, "strip", z.ZodTypeAny, {
file_url: string;
filename: string;
uploaded_at: Date;
}, {
file_url: string;
filename: string;
uploaded_at: Date;
}>, "many">>;
received_at: z.ZodDefault<z.ZodDate>;
}, "strip", z.ZodTypeAny, {
text: string;
attachments: {
file_url: string;
filename: string;
uploaded_at: Date;
}[];
received_at: Date;
}, {
text?: string | undefined;
attachments?: {
file_url: string;
filename: string;
uploaded_at: Date;
}[] | undefined;
received_at?: Date | undefined;
}>;
source_data: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
raw_data: z.ZodObject<{
content: z.ZodString;
metadata: z.ZodAny;
}, "strip", z.ZodTypeAny, {
content: string;
metadata?: any;
}, {
content: string;
metadata?: any;
}>;
processed_at: z.ZodDate;
source_type: z.ZodEnum<["personal_linkedin", "company_linkedin", "youtube", "docsend", "google_drive", "onedrive", "google_docs", "dropbox", "vimeo", "funden", "pitch", "canva", "calameo", "maildoc", "figma", "brieflink", "other", "file"]>;
}, "strip", z.ZodTypeAny, {
raw_data: {
content: string;
metadata?: any;
};
processed_at: Date;
source_type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
}, {
raw_data: {
content: string;
metadata?: any;
};
processed_at: Date;
source_type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
}>>>;
processing_status: z.ZodObject<{
link_parsing_status: z.ZodDefault<z.ZodEnum<["pending", "completed"]>>;
raw_input_parsing_status: z.ZodDefault<z.ZodEnum<["pending", "completed"]>>;
link_parsing_results: z.ZodDefault<z.ZodArray<z.ZodObject<{
url: z.ZodString;
status: z.ZodEnum<["parsing_pending", "parsed_success", "parsing_failed"]>;
type: z.ZodEnum<["personal_linkedin", "company_linkedin", "youtube", "docsend", "google_drive", "onedrive", "google_docs", "dropbox", "vimeo", "funden", "pitch", "canva", "calameo", "maildoc", "figma", "brieflink", "other", "file"]>;
parsed_at: z.ZodNullable<z.ZodDate>;
error_message: z.ZodNullable<z.ZodString>;
retries: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}, {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}>, "many">>;
attachment_parsing_results: z.ZodDefault<z.ZodArray<z.ZodObject<{
url: z.ZodString;
status: z.ZodEnum<["parsing_pending", "parsed_success", "parsing_failed"]>;
type: z.ZodEnum<["personal_linkedin", "company_linkedin", "youtube", "docsend", "google_drive", "onedrive", "google_docs", "dropbox", "vimeo", "funden", "pitch", "canva", "calameo", "maildoc", "figma", "brieflink", "other", "file"]>;
parsed_at: z.ZodNullable<z.ZodDate>;
error_message: z.ZodNullable<z.ZodString>;
retries: z.ZodDefault<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}, {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
link_parsing_status: "pending" | "completed";
raw_input_parsing_status: "pending" | "completed";
link_parsing_results: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}[];
attachment_parsing_results: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}[];
}, {
link_parsing_status?: "pending" | "completed" | undefined;
raw_input_parsing_status?: "pending" | "completed" | undefined;
link_parsing_results?: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}[] | undefined;
attachment_parsing_results?: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}[] | undefined;
}>;
}, "strip", z.ZodTypeAny, {
id: string;
last_enrichment_date: Date | null;
raw_input: {
text: string;
attachments: {
file_url: string;
filename: string;
uploaded_at: Date;
}[];
received_at: Date;
};
source_data: Record<string, {
raw_data: {
content: string;
metadata?: any;
};
processed_at: Date;
source_type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
}>;
processing_status: {
link_parsing_status: "pending" | "completed";
raw_input_parsing_status: "pending" | "completed";
link_parsing_results: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}[];
attachment_parsing_results: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}[];
};
}, {
id: string;
last_enrichment_date: Date | null;
raw_input: {
text?: string | undefined;
attachments?: {
file_url: string;
filename: string;
uploaded_at: Date;
}[] | undefined;
received_at?: Date | undefined;
};
processing_status: {
link_parsing_status?: "pending" | "completed" | undefined;
raw_input_parsing_status?: "pending" | "completed" | undefined;
link_parsing_results?: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}[] | undefined;
attachment_parsing_results?: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}[] | undefined;
};
source_data?: Record<string, {
raw_data: {
content: string;
metadata?: any;
};
processed_at: Date;
source_type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
}> | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
events: {
id: string;
last_enrichment_date: Date | null;
raw_input: {
text: string;
attachments: {
file_url: string;
filename: string;
uploaded_at: Date;
}[];
received_at: Date;
};
source_data: Record<string, {
raw_data: {
content: string;
metadata?: any;
};
processed_at: Date;
source_type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
}>;
processing_status: {
link_parsing_status: "pending" | "completed";
raw_input_parsing_status: "pending" | "completed";
link_parsing_results: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}[];
attachment_parsing_results: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}[];
};
}[];
}, {
events?: {
id: string;
last_enrichment_date: Date | null;
raw_input: {
text?: string | undefined;
attachments?: {
file_url: string;
filename: string;
uploaded_at: Date;
}[] | undefined;
received_at?: Date | undefined;
};
processing_status: {
link_parsing_status?: "pending" | "completed" | undefined;
raw_input_parsing_status?: "pending" | "completed" | undefined;
link_parsing_results?: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}[] | undefined;
attachment_parsing_results?: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}[] | undefined;
};
source_data?: Record<string, {
raw_data: {
content: string;
metadata?: any;
};
processed_at: Date;
source_type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
}> | undefined;
}[] | undefined;
}>;
scoring: z.ZodObject<{
score: z.ZodDefault<z.ZodNumber>;
factors: z.ZodDefault<z.ZodArray<z.ZodObject<{
factor: z.ZodString;
explanation: z.ZodString;
impact: z.ZodOptional<z.ZodNumber>;
weight: z.ZodDefault<z.ZodNumber>;
deal_breaker: z.ZodDefault<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
factor: string;
explanation: string;
weight: number;
deal_breaker: boolean;
impact?: number | undefined;
}, {
factor: string;
explanation: string;
impact?: number | undefined;
weight?: number | undefined;
deal_breaker?: boolean | undefined;
}>, "many">>;
}, "strip", z.ZodTypeAny, {
score: number;
factors: {
factor: string;
explanation: string;
weight: number;
deal_breaker: boolean;
impact?: number | undefined;
}[];
}, {
score?: number | undefined;
factors?: {
factor: string;
explanation: string;
impact?: number | undefined;
weight?: number | undefined;
deal_breaker?: boolean | undefined;
}[] | undefined;
}>;
processing_status: z.ZodDefault<z.ZodEnum<["pending", "completed", "failed"]>>;
created_at: z.ZodDefault<z.ZodDate>;
updated_at: z.ZodNullable<z.ZodDefault<z.ZodDate>>;
}, "strip", z.ZodTypeAny, {
status: "default" | "liked" | "disliked" | "deleted" | "email";
processing_status: "pending" | "completed" | "failed";
investor_email: string | null;
new: boolean;
stage: string | null;
tags: number[];
source: "email" | "file" | "upload";
profile: {
company_name: string;
short_description: string;
website: string | null;
founding_date: string | null;
startup_headquarters: string[];
incorporation: {
country: string | null;
state: string | null;
entity_type: string | null;
};
investment_stage: string | null;
round_size: number | null;
minimum_investment: number | null;
round_deadline: string | null;
round_progress: number | null;
lead_investor: string | null;
valuation: {
pre_money_valuation: number | null;
post_money_valuation: number | null;
};
previous_funding: {
total_raised: number | null;
last_round: {
type: string | null;
date: string | null;
amount: number | null;
};
};
focus_geography_sales: string[] | null;
business_model: string[];
verticals: string[];
unique_selling_points: string[];
challenges: string[];
team: {
team: {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
};
founders: {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}[];
};
investor_questions: {
question: string;
answer: string;
}[] | null;
videos: {
video_pitch: string | null;
demo_video: string | null;
};
pitch_deck: {
pitch_deck_link: string | null;
};
traction: {
revenue: {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
};
users: {
total: number | null;
active: number | null;
} | null;
key_metrics: Record<string, string> | null;
};
market: {
tam: number | null;
sam: number | null;
som: number | null;
};
additional_details: Record<string, any> | null;
};
created_at: Date;
notes: {
id: string;
content: string;
created_at: Date;
author: string;
author_email: string;
}[];
enrichment_metadata: {
events: {
id: string;
last_enrichment_date: Date | null;
raw_input: {
text: string;
attachments: {
file_url: string;
filename: string;
uploaded_at: Date;
}[];
received_at: Date;
};
source_data: Record<string, {
raw_data: {
content: string;
metadata?: any;
};
processed_at: Date;
source_type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
}>;
processing_status: {
link_parsing_status: "pending" | "completed";
raw_input_parsing_status: "pending" | "completed";
link_parsing_results: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}[];
attachment_parsing_results: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries: number;
}[];
};
}[];
};
scoring: {
score: number;
factors: {
factor: string;
explanation: string;
weight: number;
deal_breaker: boolean;
impact?: number | undefined;
}[];
};
updated_at: Date | null;
}, {
investor_email: string | null;
profile: {
company_name: string;
short_description: string;
website: string | null;
founding_date: string | null;
startup_headquarters: string[];
incorporation: {
country: string | null;
state: string | null;
entity_type: string | null;
};
investment_stage: string | null;
round_size: number | null;
minimum_investment: number | null;
round_deadline: string | null;
round_progress: number | null;
lead_investor: string | null;
valuation: {
pre_money_valuation: number | null;
post_money_valuation: number | null;
};
previous_funding: {
total_raised: number | null;
last_round: {
type: string | null;
date: string | null;
amount: number | null;
};
};
business_model: string[];
verticals: string[];
unique_selling_points: string[];
challenges: string[];
team: {
team: {
team_size: number | null;
founder_names: string[];
minorities: string[] | null;
skills_focus: string | null;
};
founders: {
email: string | null;
name: string;
linkedin_url: string | null;
phone: string | null;
title: string | null;
notableExperiences: string[] | null;
background: string | null;
linkedin_profile: {
name: string;
id: string;
city: string;
country_code: string;
position: string;
about: string;
current_company: {
name: string;
title: string;
link: string;
};
experience: {
url: string;
duration: string;
title: string;
location: string;
company: string;
description: string;
}[];
education: {
title: string;
degree: string;
field: string;
start_year: string;
end_year: string;
}[];
certifications: {
title: string;
subtitle: string;
meta: string;
credential_url: string;
}[];
avatar: string;
followers: number;
connections: number;
profile_url: string;
};
}[];
};
investor_questions: {
question: string;
answer: string;
}[] | null;
videos: {
video_pitch: string | null;
demo_video: string | null;
};
pitch_deck: {
pitch_deck_link: string | null;
};
traction: {
revenue: {
type: "monthly" | "annual" | "total";
amount: number;
growth: number | null;
};
users: {
total: number | null;
active: number | null;
} | null;
key_metrics: Record<string, string> | null;
};
market: {
tam: number | null;
sam: number | null;
som: number | null;
};
focus_geography_sales?: string[] | null | undefined;
additional_details?: Record<string, any> | null | undefined;
};
enrichment_metadata: {
events?: {
id: string;
last_enrichment_date: Date | null;
raw_input: {
text?: string | undefined;
attachments?: {
file_url: string;
filename: string;
uploaded_at: Date;
}[] | undefined;
received_at?: Date | undefined;
};
processing_status: {
link_parsing_status?: "pending" | "completed" | undefined;
raw_input_parsing_status?: "pending" | "completed" | undefined;
link_parsing_results?: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}[] | undefined;
attachment_parsing_results?: {
type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
status: "parsing_pending" | "parsed_success" | "parsing_failed";
url: string;
parsed_at: Date | null;
error_message: string | null;
retries?: number | undefined;
}[] | undefined;
};
source_data?: Record<string, {
raw_data: {
content: string;
metadata?: any;
};
processed_at: Date;
source_type: "personal_linkedin" | "company_linkedin" | "youtube" | "docsend" | "google_drive" | "onedrive" | "google_docs" | "dropbox" | "vimeo" | "funden" | "pitch" | "canva" | "calameo" | "maildoc" | "figma" | "brieflink" | "other" | "file";
}> | undefined;
}[] | undefined;
};
scoring: {
score?: number | undefined;
factors?: {
factor: string;
explanation: string;
impact?: number | undefined;
weight?: number | undefined;
deal_breaker?: boolean | undefined;
}[] | undefined;
};
status?: "default" | "liked" | "disliked" | "deleted" | "email" | undefined;
processing_status?: "pending" | "completed" | "failed" | undefined;
new?: boolean | undefined;
stage?: string | null | undefined;
tags?: number[] | undefined;
source?: "email" | "file" | "upload" | undefined;
created_at?: Date | undefined;
notes?: {
id: string;
content: string;
created_at: Date;
author: string;
author_email: string;
}[] | undefined;
updated_at?: Date | null | undefined;
}>;
export declare const StageSchema: z.ZodObject<{
investor_email: z.ZodString;
name: z.ZodString;
order: z.ZodNumber;
color: z.ZodString;
created_at: z.ZodDefault<z.ZodDate>;
updated_at: z.ZodNullable<z.ZodDefault<z.ZodDate>>;
}, "strip", z.ZodTypeAny, {
name: string;
color: string;
investor_email: string;
created_at: Date;
updated_at: Date | null;
order: number;
}, {
name: string;
color: string;
investor_email: string;
order: number;
created_at?: Date | undefined;
updated_at?: Date | null | undefined;
}>;
export type Stage = z.infer<typeof StageSchema>;
export type DealType = z.infer<typeof DealSchema>;
export type DealDocument = DealType & {
_id: ObjectId;
};
export type StageDocument = Stage & {
_id: ObjectId;
};
export type DealStatus = z.infer<typeof DealStatusEnum>;
export type LinkParsingStatus = z.infer<typeof LinkParsingStatusEnum>;
export type LinkStatus = z.infer<typeof LinkStatusEnum>;
export type SourceType = z.infer<typeof SourceTypeEnum>;
export type DealSource = z.infer<typeof DealSourceEnum>;
export type ProcessingStatus = z.infer<typeof ProcessingStatusEnum>;
export type CompanyInfo = z.infer<typeof CompanyInfoSchema>;
export type VideosInfo = z.infer<typeof VideosInfoSchema>;
export type PitchDeckInfo = z.infer<typeof PitchDeckInfoSchema>;
export type LocationsInfo = z.infer<typeof LocationsInfoSchema>;
export type FundraisingInfo = z.infer<typeof FundraisingInfoSchema>;
export type TractionInfo = z.infer<typeof TractionInfoSchema>;
export type MarketInfo = z.infer<typeof MarketInfoSchema>;
export type BusinessMetrics = z.infer<typeof BusinessMetricsSchema>;
export type AdditionalDetails = z.infer<typeof AdditionalDetailsSchema>;
export type DealProfile = z.infer<typeof DealProfileSchema>;
export type LinkParsingResult = z.infer<typeof LinkParsingResultSchema>;
export type EnrichmentMetadata = z.infer<typeof EnrichmentMetadataSchema>;
export type DealFactor = z.infer<typeof DealFactorSchema>;
export type DealScoring = z.infer<typeof DealScoringSchema>;
export type FileAttachment = z.infer<typeof FileAttachmentSchema>;
export type RawInput = z.infer<typeof RawInputSchema>;
export type DealTag = z.infer<typeof DealTagSchema>;
export type DealStatusType = z.infer<typeof DealStatusEnum>;