36 lines
1.0 KiB
TypeScript
36 lines
1.0 KiB
TypeScript
export const LEADS_MODULE_KEY = "leads";
|
|
|
|
export function leadsPath(tenantSlug: string): string {
|
|
return `/${tenantSlug}/leads`;
|
|
}
|
|
|
|
export function leadNewPath(tenantSlug: string): string {
|
|
return `/${tenantSlug}/leads/new`;
|
|
}
|
|
|
|
export function leadDetailPath(tenantSlug: string, leadId: string): string {
|
|
return `/${tenantSlug}/leads/${leadId}`;
|
|
}
|
|
|
|
// Own top-level path (not /leads/statistics): the statistics screen is reached
|
|
// through the leads sub-sidenav, not from inside the inbox route family.
|
|
export function leadStatisticsPath(tenantSlug: string): string {
|
|
return `/${tenantSlug}/leads-statistics`;
|
|
}
|
|
|
|
export function leadBoardPath(tenantSlug: string): string {
|
|
return `/${tenantSlug}/leads/board`;
|
|
}
|
|
|
|
export function leadEventsPath(tenantSlug: string): string {
|
|
return `/${tenantSlug}/leads/events`;
|
|
}
|
|
|
|
export function leadSourcesAdminPath(tenantSlug: string): string {
|
|
return `/${tenantSlug}/admin/lead-sources`;
|
|
}
|
|
|
|
export function leadAntiSpamAdminPath(tenantSlug: string): string {
|
|
return `/${tenantSlug}/admin/lead-anti-spam`;
|
|
}
|