@burdenoff/microfe-headshotmarketing 2026.704.5 → 2026.707.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/generated/wspace-operations.js +371 -250
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.js +2 -4
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/components/AssetUploadButton.js.map +1 -1
- package/dist/headshotmarketing/hooks/useAssetUpload.js +11 -19
- package/dist/headshotmarketing/hooks/useAssetUpload.js.map +1 -1
- package/dist/headshotmarketing/pages/HomeFunnel.js.map +1 -1
- package/dist/headshotmarketing/pages/HomePage.js +293 -278
- package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js +147 -0
- package/dist/headshotmarketing/pages/ads/AdReachEstimatePanel.js.map +1 -0
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +246 -235
- package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/AutomationPage.js +27 -30
- package/dist/headshotmarketing/pages/automation/AutomationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js +149 -159
- package/dist/headshotmarketing/pages/automation/WorkflowActions.js.map +1 -1
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +252 -231
- package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js +123 -233
- package/dist/headshotmarketing/pages/campaigns/CampaignTemplatesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/campaigns/TemplateCard.js +81 -0
- package/dist/headshotmarketing/pages/campaigns/TemplateCard.js.map +1 -0
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +3 -2
- package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js +107 -0
- package/dist/headshotmarketing/pages/crm/ConvertLeadButton.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +232 -0
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -0
- package/dist/headshotmarketing/pages/crm/LeadsPage.js +267 -233
- package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/events/EventImageUpload.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -1
- package/dist/headshotmarketing/utils/adsMapper.js +2 -2
- package/dist/headshotmarketing/utils/adsMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/automationMapper.js +33 -7
- package/dist/headshotmarketing/utils/automationMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/campaignMapper.js +1 -22
- package/dist/headshotmarketing/utils/campaignMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/contentMapper.js +1 -1
- package/dist/headshotmarketing/utils/contentMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/crmMapper.js +2 -2
- package/dist/headshotmarketing/utils/crmMapper.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crmMapper.js","names":[],"sources":["../../../src/headshotmarketing/utils/crmMapper.ts"],"sourcesContent":["import type {\n Contact,\n ContactStatus,\n Deal,\n DealStage,\n Lead,\n Pipeline,\n} from \"../types\";\n\ntype ContactLike = {\n id: string;\n firstName: string;\n lastName: string;\n email: string;\n phone?: string | null;\n company?: string | null;\n jobTitle?: string | null;\n status: string;\n avatarUrl?: string | null;\n socialProfiles?: Record<string, unknown> | null;\n tags: string[];\n customFields?: Record<string, unknown> | null;\n createdAt: string;\n updatedAt: string;\n};\n\ntype LeadLike = {\n id: string;\n contactId: string;\n title: string;\n description?: string | null;\n status: string;\n source: string;\n score?: number | null;\n ownerId?: string | null;\n createdAt: string;\n updatedAt: string;\n};\n\ntype DealLike = {\n id: string;\n contactId: string;\n title: string;\n description?: string | null;\n status: string;\n stageId?: string | null;\n value?: number | null;\n probability?: number | null;\n expectedCloseDate?: string | null;\n ownerId?: string | null;\n tags: string[];\n createdAt: string;\n updatedAt: string;\n};\n\ntype PipelineLike = {\n id: string;\n name: string;\n description?: string | null;\n stages: Array<{\n id: string;\n name: string;\n order: number;\n color?: string | null;\n defaultProbability?: number | null;\n }>;\n createdAt: string;\n updatedAt: string;\n};\n\nfunction mapContactStatus(value: string): ContactStatus {\n switch (value) {\n case \"NEW\":\n return \"new\";\n case \"CONTACTED\":\n return \"contacted\";\n case \"QUALIFIED\":\n return \"qualified\";\n case \"DISQUALIFIED\":\n return \"unqualified\";\n case \"CONVERTED\":\n return \"converted\";\n case \"LOST\":\n return \"lost\";\n default:\n return \"new\";\n }\n}\n\nfunction mapLeadStatus(value: string): Lead[\"status\"] {\n switch (value) {\n case \"CONTACTED\":\n return \"contacted\";\n case \"QUALIFIED\":\n return \"qualified\";\n case \"DISQUALIFIED\":\n return \"disqualified\";\n default:\n return \"new\";\n }\n}\n\nfunction mapDealStage(status: string, stageId?: string | null): DealStage {\n const normalized = `${status} ${stageId ?? \"\"}`.toLowerCase();\n if (normalized.includes(\"prospect\")) return \"prospecting\";\n if (normalized.includes(\"qualif\")) return \"qualification\";\n if (normalized.includes(\"proposal\")) return \"proposal\";\n if (normalized.includes(\"negot\")) return \"negotiation\";\n if (normalized.includes(\"won\")) return \"closed_won\";\n if (normalized.includes(\"lost\")) return \"closed_lost\";\n return \"prospecting\";\n}\n\nexport function toContactModel(item: ContactLike): Contact {\n return {\n id: item.id,\n firstName: item.firstName,\n lastName: item.lastName,\n email: item.email,\n phone: item.phone ?? \"\",\n company: item.company ?? \"\",\n title: item.jobTitle ?? \"\",\n status: mapContactStatus(item.status),\n score: 0,\n tags: item.tags,\n notes: \"\",\n activities: [],\n socialProfiles: [],\n avatar: item.avatarUrl ?? \"\",\n source: \"crm\",\n lastContactedAt: item.updatedAt,\n createdAt: item.createdAt,\n updatedAt: item.updatedAt,\n };\n}\n\nexport function toLeadModel(\n item: LeadLike,\n contactById: Record<string, Contact>,\n): Lead {\n const contact = contactById[item.contactId];\n return {\n id: item.id,\n firstName: contact?.firstName ?? item.title,\n lastName: contact?.lastName ?? \"\",\n email: contact?.email ?? \"\",\n phone: contact?.phone ?? \"\",\n company: contact?.company ?? \"\",\n title: item.title,\n source: item.source.toLowerCase(),\n score: item.score ?? 0,\n status: mapLeadStatus(item.status),\n assignedTo: item.ownerId ?? \"Unassigned\",\n notes: item.description ?? \"\",\n interests: [],\n lastActivityAt: item.updatedAt,\n createdAt: item.createdAt,\n updatedAt: item.updatedAt,\n };\n}\n\nexport function toDealModel(\n item: DealLike,\n contactById: Record<string, Contact>,\n): Deal {\n const contact = contactById[item.contactId];\n return {\n id: item.id,\n name: item.title,\n contactId: item.contactId,\n contactName: contact\n ? `${contact.firstName} ${contact.lastName}`.trim()\n : \"Unknown\",\n company: contact?.company ?? \"\",\n value: item.value ?? 0,\n currency: \"USD\",\n stage: mapDealStage(item.status, item.stageId),\n probability: item.probability ?? 0,\n expectedCloseDate: item.expectedCloseDate ?? item.updatedAt,\n assignedTo: item.ownerId ?? \"Unassigned\",\n notes: item.description ?? \"\",\n activities: [],\n tags: item.tags,\n createdAt: item.createdAt,\n updatedAt: item.updatedAt,\n };\n}\n\nexport function toPipelineModel(item: PipelineLike, deals: Deal[]): Pipeline {\n const stages = item.stages\n .slice()\n .sort((a, b) => a.order - b.order)\n .map((stage) => {\n const dealCount = deals.filter((deal) =>\n deal.stage\n .toLowerCase()\n .includes(stage.name.toLowerCase().split(\" \")[0]),\n ).length;\n const totalValue = deals\n .filter((deal) =>\n deal.stage\n .toLowerCase()\n .includes(stage.name.toLowerCase().split(\" \")[0]),\n )\n .reduce((sum, deal) => sum + deal.value, 0);\n return {\n id: stage.id,\n name: stage.name,\n order: stage.order,\n dealCount,\n totalValue,\n color: stage.color ?? \"var(--color-chart-1)\",\n };\n });\n\n const totalDeals = deals.length;\n const totalValue = deals.reduce((sum, deal) => sum + deal.value, 0);\n const won = deals.filter((deal) => deal.stage === \"closed_won\").length;\n\n return {\n id: item.id,\n name: item.name,\n stages,\n totalDeals,\n totalValue,\n conversionRate: totalDeals > 0 ? (won / totalDeals) * 100 : 0,\n createdAt: item.createdAt,\n updatedAt: item.updatedAt,\n };\n}\n"],"mappings":";
|
|
1
|
+
{"version":3,"file":"crmMapper.js","names":[],"sources":["../../../src/headshotmarketing/utils/crmMapper.ts"],"sourcesContent":["import type {\n Contact,\n ContactStatus,\n Deal,\n DealStage,\n Lead,\n Pipeline,\n} from \"../types\";\n\ntype ContactLike = {\n id: string;\n firstName: string;\n lastName: string;\n email: string;\n phone?: string | null;\n company?: string | null;\n jobTitle?: string | null;\n status: string;\n score?: number | null;\n source?: string | null;\n avatarUrl?: string | null;\n socialProfiles?: Record<string, unknown> | null;\n tags: string[];\n customFields?: Record<string, unknown> | null;\n createdAt: string;\n updatedAt: string;\n};\n\ntype LeadLike = {\n id: string;\n contactId: string;\n title: string;\n description?: string | null;\n status: string;\n source: string;\n score?: number | null;\n ownerId?: string | null;\n createdAt: string;\n updatedAt: string;\n};\n\ntype DealLike = {\n id: string;\n contactId: string;\n title: string;\n description?: string | null;\n status: string;\n stageId?: string | null;\n value?: number | null;\n probability?: number | null;\n expectedCloseDate?: string | null;\n ownerId?: string | null;\n tags: string[];\n createdAt: string;\n updatedAt: string;\n};\n\ntype PipelineLike = {\n id: string;\n name: string;\n description?: string | null;\n stages: Array<{\n id: string;\n name: string;\n order: number;\n color?: string | null;\n defaultProbability?: number | null;\n }>;\n createdAt: string;\n updatedAt: string;\n};\n\nfunction mapContactStatus(value: string): ContactStatus {\n switch (value) {\n case \"NEW\":\n return \"new\";\n case \"CONTACTED\":\n return \"contacted\";\n case \"QUALIFIED\":\n return \"qualified\";\n case \"DISQUALIFIED\":\n return \"unqualified\";\n case \"CONVERTED\":\n return \"converted\";\n case \"LOST\":\n return \"lost\";\n default:\n return \"new\";\n }\n}\n\nfunction mapLeadStatus(value: string): Lead[\"status\"] {\n switch (value) {\n case \"CONTACTED\":\n return \"contacted\";\n case \"QUALIFIED\":\n return \"qualified\";\n case \"DISQUALIFIED\":\n return \"disqualified\";\n default:\n return \"new\";\n }\n}\n\nfunction mapDealStage(status: string, stageId?: string | null): DealStage {\n const normalized = `${status} ${stageId ?? \"\"}`.toLowerCase();\n if (normalized.includes(\"prospect\")) return \"prospecting\";\n if (normalized.includes(\"qualif\")) return \"qualification\";\n if (normalized.includes(\"proposal\")) return \"proposal\";\n if (normalized.includes(\"negot\")) return \"negotiation\";\n if (normalized.includes(\"won\")) return \"closed_won\";\n if (normalized.includes(\"lost\")) return \"closed_lost\";\n return \"prospecting\";\n}\n\nexport function toContactModel(item: ContactLike): Contact {\n return {\n id: item.id,\n firstName: item.firstName,\n lastName: item.lastName,\n email: item.email,\n phone: item.phone ?? \"\",\n company: item.company ?? \"\",\n title: item.jobTitle ?? \"\",\n status: mapContactStatus(item.status),\n score: item.score ?? 0,\n tags: item.tags,\n notes: \"\",\n activities: [],\n socialProfiles: [],\n avatar: item.avatarUrl ?? \"\",\n source: item.source ?? \"crm\",\n lastContactedAt: item.updatedAt,\n createdAt: item.createdAt,\n updatedAt: item.updatedAt,\n };\n}\n\nexport function toLeadModel(\n item: LeadLike,\n contactById: Record<string, Contact>,\n): Lead {\n const contact = contactById[item.contactId];\n return {\n id: item.id,\n firstName: contact?.firstName ?? item.title,\n lastName: contact?.lastName ?? \"\",\n email: contact?.email ?? \"\",\n phone: contact?.phone ?? \"\",\n company: contact?.company ?? \"\",\n title: item.title,\n source: item.source.toLowerCase(),\n score: item.score ?? 0,\n status: mapLeadStatus(item.status),\n assignedTo: item.ownerId ?? \"Unassigned\",\n notes: item.description ?? \"\",\n interests: [],\n lastActivityAt: item.updatedAt,\n createdAt: item.createdAt,\n updatedAt: item.updatedAt,\n };\n}\n\nexport function toDealModel(\n item: DealLike,\n contactById: Record<string, Contact>,\n): Deal {\n const contact = contactById[item.contactId];\n return {\n id: item.id,\n name: item.title,\n contactId: item.contactId,\n contactName: contact\n ? `${contact.firstName} ${contact.lastName}`.trim()\n : \"Unknown\",\n company: contact?.company ?? \"\",\n value: item.value ?? 0,\n currency: \"USD\",\n stage: mapDealStage(item.status, item.stageId),\n probability: item.probability ?? 0,\n expectedCloseDate: item.expectedCloseDate ?? item.updatedAt,\n assignedTo: item.ownerId ?? \"Unassigned\",\n notes: item.description ?? \"\",\n activities: [],\n tags: item.tags,\n createdAt: item.createdAt,\n updatedAt: item.updatedAt,\n };\n}\n\nexport function toPipelineModel(item: PipelineLike, deals: Deal[]): Pipeline {\n const stages = item.stages\n .slice()\n .sort((a, b) => a.order - b.order)\n .map((stage) => {\n const dealCount = deals.filter((deal) =>\n deal.stage\n .toLowerCase()\n .includes(stage.name.toLowerCase().split(\" \")[0]),\n ).length;\n const totalValue = deals\n .filter((deal) =>\n deal.stage\n .toLowerCase()\n .includes(stage.name.toLowerCase().split(\" \")[0]),\n )\n .reduce((sum, deal) => sum + deal.value, 0);\n return {\n id: stage.id,\n name: stage.name,\n order: stage.order,\n dealCount,\n totalValue,\n color: stage.color ?? \"var(--color-chart-1)\",\n };\n });\n\n const totalDeals = deals.length;\n const totalValue = deals.reduce((sum, deal) => sum + deal.value, 0);\n const won = deals.filter((deal) => deal.stage === \"closed_won\").length;\n\n return {\n id: item.id,\n name: item.name,\n stages,\n totalDeals,\n totalValue,\n conversionRate: totalDeals > 0 ? (won / totalDeals) * 100 : 0,\n createdAt: item.createdAt,\n updatedAt: item.updatedAt,\n };\n}\n"],"mappings":";AAwEA,SAAS,EAAiB,GAA8B;AACtD,SAAQ,GAAR;EACE,KAAK,MACH,QAAO;EACT,KAAK,YACH,QAAO;EACT,KAAK,YACH,QAAO;EACT,KAAK,eACH,QAAO;EACT,KAAK,YACH,QAAO;EACT,KAAK,OACH,QAAO;EACT,QACE,QAAO;;;AAIb,SAAS,EAAc,GAA+B;AACpD,SAAQ,GAAR;EACE,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