import { SvgName } from "./Names"; export type SvgAlias = | "company" | "affiliation" | "contact" | "staff" | "campaign" | "prospect" | "job" | "job_signoff" | "milestone" | "issue" | "account_purchase" | "account_material" | "account_receipt" | "hubspot" | "contract" | "contract_period" | "account_invoice" | "invoice" | "expense" | "asset" | "report" | "deployment" | "task" | "quote" | "activity" | "request" | "site" | "note" | "email" | "meeting" | "call" | "postal" | "sms" | "twitter" | "comment" | "event_log" | "time_external" | "campaign_action" | "material" | "materials" | "object_budget_material" | "schedule" | "service" | "plus" | "circled_plus" | "prohibited" | "edit" | "delete" | "save" | "location" | "star" | "star_filled" | "play" | "pause" | "clock" | "timer" | "compose" | "logtime" | "search" | "refresh" | "view" | "tick" | "cross" | "split_task" | "disable" | "preview" | "attachment" | "reimbursable" | "billable" | "non_billable" | "assigned_to_budget" | "billing_needed" | "options_menu" | "fixed_price" | "est_price" | "fixed_hrs" | "est_hours" | "two_factor_connected" | "two_factor_not_connected" | "o_auth" | "icospinner" | "filter" | "groups" | "skill" | "tooltip_icon" | "address" | "qbo" | "xero" | "convert" | "warning" | "single_user" | "gusto" | "client_portal_signoff" | "fixed_budget" | "calculated_budget" | "billed" | "user" | "bubbles" | "dashboard" | "stream" | "time" | "billing"; const AliasesToNameLookup: { [key in SvgAlias]: SvgName } = { // Modules company: "clients-custom", affiliation: "user", contact: "users2", staff: "users2", campaign: "campaign-custom", prospect: "funnel", job: "waterfall-rectangles", job_signoff: "register", client_portal_signoff: "register", milestone: "milestone-custom", issue: "tags", account_purchase: "purchase", hubspot: "hubspot", contract: "retainers-custom", contract_period: "retainer-period-custom", invoice: "invoices-custom", account_invoice: "invoices-custom", expense: "receipt", account_receipt: "receipt", asset: "cube", report: "document2", deployment: "planet", task: "clipboard-empty", quote: "quotes-custom", activity: "activities-custom", request: "requests-custom", site: "sites", note: "note", email: "envelope-centered", meeting: "group-work", call: "telephone", postal: "envelope-open", sms: "bubbles", twitter: "twitter", comment: "bubble-text", event_log: "calendar-full", time_external: "calendar-insert", campaign_action: "campaign-custom", account_material: "bag2", material: "bag2", materials: "bag2", object_budget_material: "bag2", schedule: "calendar-empty", service: "tool-briefcase", // Misc plus: "linear-plus", circled_plus: "plus-circle", prohibited: "prohibited", edit: "pencil", delete: "trash", save: "save", location: "map-marker", star: "star", star_filled: "star-filled", play: "play-fill", pause: "pause-fill", clock: "clock3", timer: "timer", compose: "compose", logtime: "log-time", search: "magnifier", refresh: "sync", view: "magnifier", tick: "check-bold", cross: "close-bold", split_task: "split-task", disable: "cross", preview: "magnifier", attachment: "paperclip", reimbursable: "email-receipt", billable: "dollar", non_billable: "dollar-cross", assigned_to_budget: "wallet", billing_needed: "warning", options_menu: "three-dots", fixed_price: "lock", est_price: "calculator2", calculated_budget: "calculator2", fixed_hrs: "lock", fixed_budget: "lock", est_hours: "calculator2", two_factor_connected: "phone-check", two_factor_not_connected: "phone-block", o_auth: "rotation-lock-double", icospinner: "sync", filter: "increasing-size-rectangles", groups: "users2", skill: "medal-with-star", tooltip_icon: "question-circle-fill", address: "map", qbo: "qbo-logo", xero: "xero-blue", convert: "arrow-right", warning: "warning", single_user: "user", gusto: "gusto-logo", billed: "invoices-custom", user: "users2", bubbles: "bubbles", dashboard: "speed-fast", stream: "bubbles", time: "clock3", billing: "cash-dollar" }; // TODO use SvgAlias export function getSvgNameFromAlias(alias: string): SvgName { return AliasesToNameLookup[alias]; }