@burdenoff/microfe-headshotmarketing 2026.1030.13 → 2026.1101.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.d.ts +251 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -1
- package/dist/generated/wspace-operations.js +446 -322
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +4370 -34
- package/dist/generated/wspace-types.d.ts.map +1 -1
- package/dist/generated/wspace-types.js +3 -1
- package/dist/generated/wspace-types.js.map +1 -1
- package/dist/headshotmarketing/components/TrackedLinksPanel.d.ts +19 -0
- package/dist/headshotmarketing/components/TrackedLinksPanel.d.ts.map +1 -0
- package/dist/headshotmarketing/components/TrackedLinksPanel.js +246 -0
- package/dist/headshotmarketing/components/TrackedLinksPanel.js.map +1 -0
- package/dist/headshotmarketing/components/index.d.ts +1 -0
- package/dist/headshotmarketing/components/index.d.ts.map +1 -1
- package/dist/headshotmarketing/components/index.js +1 -0
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +245 -211
- package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js +86 -76
- package/dist/headshotmarketing/pages/ads/AdCreativesPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AttributionPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/analytics/AttributionPage.js +249 -244
- package/dist/headshotmarketing/pages/analytics/AttributionPage.js.map +1 -1
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.d.ts +4 -0
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js +196 -0
- package/dist/headshotmarketing/pages/analytics/TouchpointLedgerCard.js.map +1 -0
- package/dist/headshotmarketing/pages/content/AIGeneratedBadge.d.ts +12 -0
- package/dist/headshotmarketing/pages/content/AIGeneratedBadge.d.ts.map +1 -0
- package/dist/headshotmarketing/pages/content/AIGeneratedBadge.js +30 -0
- package/dist/headshotmarketing/pages/content/AIGeneratedBadge.js.map +1 -0
- package/dist/headshotmarketing/pages/content/AIToolsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/content/AIToolsPage.js +51 -50
- package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js +409 -408
- package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js +158 -104
- package/dist/headshotmarketing/pages/content/ContentDetailsPage.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentItemActions.d.ts +5 -0
- package/dist/headshotmarketing/pages/content/ContentItemActions.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentItemActions.js +103 -34
- package/dist/headshotmarketing/pages/content/ContentItemActions.js.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +102 -102
- package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js +150 -76
- package/dist/headshotmarketing/pages/crm/LeadCreateModal.js.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.d.ts.map +1 -1
- package/dist/headshotmarketing/pages/social-media/PostsPage.js +254 -246
- package/dist/headshotmarketing/pages/social-media/PostsPage.js.map +1 -1
- package/dist/headshotmarketing/types/index.d.ts +17 -0
- package/dist/headshotmarketing/types/index.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/contentLibrary.d.ts +6 -0
- package/dist/headshotmarketing/utils/contentLibrary.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/contentLibrary.js +17 -11
- package/dist/headshotmarketing/utils/contentLibrary.js.map +1 -1
- package/dist/headshotmarketing/utils/contentMapper.d.ts +13 -1
- package/dist/headshotmarketing/utils/contentMapper.d.ts.map +1 -1
- package/dist/headshotmarketing/utils/contentMapper.js +26 -13
- package/dist/headshotmarketing/utils/contentMapper.js.map +1 -1
- package/dist/headshotmarketing/utils/trackedLinks.d.ts +75 -0
- package/dist/headshotmarketing/utils/trackedLinks.d.ts.map +1 -0
- package/dist/headshotmarketing/utils/trackedLinks.js +99 -0
- package/dist/headshotmarketing/utils/trackedLinks.js.map +1 -0
- package/package.json +1 -1
|
@@ -27,8 +27,20 @@ function r(e) {
|
|
|
27
27
|
default: return "image";
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
|
-
function i(
|
|
31
|
-
|
|
30
|
+
function i(e) {
|
|
31
|
+
return e ? {
|
|
32
|
+
generator: e.generator,
|
|
33
|
+
provider: e.provider ?? null,
|
|
34
|
+
model: e.model ?? null,
|
|
35
|
+
generatedAt: e.generatedAt,
|
|
36
|
+
source: e.source,
|
|
37
|
+
humanEdited: e.humanEdited,
|
|
38
|
+
digitalSourceType: e.digitalSourceType,
|
|
39
|
+
disclosure: e.disclosure
|
|
40
|
+
} : null;
|
|
41
|
+
}
|
|
42
|
+
function a(r) {
|
|
43
|
+
let a = r.metadata ?? {};
|
|
32
44
|
return {
|
|
33
45
|
id: r.id,
|
|
34
46
|
title: r.title,
|
|
@@ -41,21 +53,22 @@ function i(r) {
|
|
|
41
53
|
thumbnail: "",
|
|
42
54
|
tags: r.tags ?? [],
|
|
43
55
|
categories: [],
|
|
44
|
-
seoScore: Number(
|
|
45
|
-
wordCount: Number(
|
|
46
|
-
readTime: Number(
|
|
56
|
+
seoScore: Number(a.seoScore ?? 0),
|
|
57
|
+
wordCount: Number(a.wordCount ?? 0),
|
|
58
|
+
readTime: Number(a.readTime ?? 0),
|
|
47
59
|
metrics: {
|
|
48
|
-
views: Number(
|
|
49
|
-
shares: Number(
|
|
50
|
-
engagement: Number(
|
|
51
|
-
conversions: Number(
|
|
60
|
+
views: Number(a.views ?? 0),
|
|
61
|
+
shares: Number(a.shares ?? 0),
|
|
62
|
+
engagement: Number(a.engagement ?? 0),
|
|
63
|
+
conversions: Number(a.conversions ?? 0)
|
|
52
64
|
},
|
|
53
65
|
publishedAt: r.publishedAt ?? null,
|
|
54
66
|
createdAt: r.createdAt,
|
|
55
|
-
updatedAt: r.updatedAt
|
|
67
|
+
updatedAt: r.updatedAt,
|
|
68
|
+
aiProvenance: i(r.aiProvenance)
|
|
56
69
|
};
|
|
57
70
|
}
|
|
58
|
-
function
|
|
71
|
+
function o(e) {
|
|
59
72
|
return {
|
|
60
73
|
id: e.id,
|
|
61
74
|
name: e.name,
|
|
@@ -76,7 +89,7 @@ function a(e) {
|
|
|
76
89
|
updatedAt: e.updatedAt
|
|
77
90
|
};
|
|
78
91
|
}
|
|
79
|
-
function
|
|
92
|
+
function s(e) {
|
|
80
93
|
let t = /* @__PURE__ */ new Map();
|
|
81
94
|
for (let n of e) {
|
|
82
95
|
let e = (n.publishedAt ?? n.createdAt).slice(0, 10), r = t.get(e) ?? {
|
|
@@ -97,6 +110,6 @@ function o(e) {
|
|
|
97
110
|
}));
|
|
98
111
|
}
|
|
99
112
|
//#endregion
|
|
100
|
-
export {
|
|
113
|
+
export { o as toAssetModel, a as toContentItemModel, s as toContentPerformanceSeries };
|
|
101
114
|
|
|
102
115
|
//# sourceMappingURL=contentMapper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentMapper.js","names":[],"sources":["../../../src/headshotmarketing/utils/contentMapper.ts"],"sourcesContent":["import type { AITool, Asset, ContentItem } from \"../types\";\nimport { contentTypeLabel } from \"./contentLibrary\";\n\ntype ContentItemLike = {\n id: string;\n title: string;\n type: string;\n status: string;\n body?: string | null;\n summary?: string | null;\n tags?: string[] | null;\n authorId?: string | null;\n metadata?: Record<string, unknown> | null;\n publishedAt?: string | null;\n createdAt: string;\n updatedAt: string;\n};\n\ntype AssetLike = {\n id: string;\n name: string;\n type?: string | null;\n url?: string | null;\n thumbnailUrl?: string | null;\n mimeType: string;\n sizeBytes?: number | null;\n width?: number | null;\n height?: number | null;\n tags: string[];\n folderId?: string | null;\n uploadedBy?: string | null;\n createdAt: string;\n updatedAt: string;\n};\n\ntype AIToolLike = {\n id: string;\n name: string;\n description?: string | null;\n category: string;\n provider?: string | null;\n isEnabled: boolean;\n usageCount?: number | null;\n createdAt: string;\n};\n\nfunction mapContentType(value: string): ContentItem[\"type\"] {\n switch (value) {\n case \"IMAGE\":\n return \"image\";\n case \"VIDEO\":\n return \"video\";\n case \"DOCUMENT\":\n return \"document\";\n case \"TEMPLATE\":\n return \"template\";\n default:\n return \"article\";\n }\n}\n\nfunction mapContentStatus(value: string): ContentItem[\"status\"] {\n switch (value) {\n case \"PUBLISHED\":\n return \"published\";\n case \"ARCHIVED\":\n return \"archived\";\n case \"IN_REVIEW\":\n case \"REVIEW\":\n return \"review\";\n default:\n return \"draft\";\n }\n}\n\nfunction mapAssetType(value?: string | null): Asset[\"type\"] {\n switch (value) {\n case \"VIDEO\":\n return \"video\";\n case \"DOCUMENT\":\n return \"document\";\n case \"AUDIO\":\n return \"audio\";\n case \"FONT\":\n return \"font\";\n default:\n return \"image\";\n }\n}\n\nfunction mapToolInputType(category: string): AITool[\"inputType\"] {\n if (category.toLowerCase().includes(\"seo\")) return \"url\";\n if (category.toLowerCase().includes(\"audience\")) return \"data\";\n return \"text\";\n}\n\nfunction mapToolOutputType(category: string): AITool[\"outputType\"] {\n if (category.toLowerCase().includes(\"image\")) return \"image\";\n if (\n category.toLowerCase().includes(\"seo\") ||\n category.toLowerCase().includes(\"report\")\n )\n return \"report\";\n return \"text\";\n}\n\nexport function toContentItemModel(item: ContentItemLike): ContentItem {\n const metadata = item.metadata ?? {};\n return {\n id: item.id,\n title: item.title,\n description: item.summary ?? \"\",\n type: mapContentType(item.type),\n typeLabel: contentTypeLabel(item.type),\n content: item.body ?? \"\",\n status: mapContentStatus(item.status),\n author: item.authorId ?? \"Unknown\",\n thumbnail: \"\",\n tags: item.tags ?? [],\n categories: [],\n seoScore: Number(metadata[\"seoScore\"] ?? 0),\n wordCount: Number(metadata[\"wordCount\"] ?? 0),\n readTime: Number(metadata[\"readTime\"] ?? 0),\n metrics: {\n views: Number(metadata[\"views\"] ?? 0),\n shares: Number(metadata[\"shares\"] ?? 0),\n engagement: Number(metadata[\"engagement\"] ?? 0),\n conversions: Number(metadata[\"conversions\"] ?? 0),\n },\n publishedAt: item.publishedAt ?? null,\n createdAt: item.createdAt,\n updatedAt: item.updatedAt,\n };\n}\n\nexport function toAssetModel(item: AssetLike): Asset {\n return {\n id: item.id,\n name: item.name,\n type: mapAssetType(item.type),\n url: item.url ?? \"\",\n thumbnail: item.thumbnailUrl ?? \"\",\n size: item.sizeBytes ?? 0,\n dimensions:\n item.width && item.height\n ? { width: item.width, height: item.height }\n : null,\n mimeType: item.mimeType,\n tags: item.tags,\n folderId: item.folderId ?? null,\n usedIn: [],\n uploadedBy: item.uploadedBy ?? \"system\",\n createdAt: item.createdAt,\n updatedAt: item.updatedAt,\n };\n}\n\nexport function toAIToolModel(item: AIToolLike): AITool {\n return {\n id: item.id,\n name: item.name,\n description: item.description ?? \"\",\n category: item.category.toLowerCase(),\n icon: item.category.toLowerCase().includes(\"image\") ? \"image\" : \"sparkles\",\n inputType: mapToolInputType(item.category),\n outputType: mapToolOutputType(item.category),\n isAvailable: item.isEnabled,\n usageCount: item.usageCount ?? 0,\n rating: 0,\n };\n}\n\nexport function toContentPerformanceSeries(\n items: ContentItem[],\n): Array<{ date: string; views: number; shares: number; conversions: number }> {\n const byDate = new Map<\n string,\n { views: number; shares: number; conversions: number }\n >();\n\n for (const item of items) {\n const key = (item.publishedAt ?? item.createdAt).slice(0, 10);\n const entry = byDate.get(key) ?? { views: 0, shares: 0, conversions: 0 };\n entry.views += item.metrics.views;\n entry.shares += item.metrics.shares;\n entry.conversions += item.metrics.conversions;\n byDate.set(key, entry);\n }\n\n return Array.from(byDate.entries())\n .sort((a, b) => a[0].localeCompare(b[0]))\n .map(([date, value]) => ({\n date: new Date(date).toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n }),\n views: value.views,\n shares: value.shares,\n conversions: value.conversions,\n }));\n}\n"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"contentMapper.js","names":[],"sources":["../../../src/headshotmarketing/utils/contentMapper.ts"],"sourcesContent":["import type { AITool, Asset, ContentAIProvenance, ContentItem } from \"../types\";\nimport { contentTypeLabel } from \"./contentLibrary\";\n\ntype ContentItemLike = {\n id: string;\n title: string;\n type: string;\n status: string;\n body?: string | null;\n summary?: string | null;\n tags?: string[] | null;\n authorId?: string | null;\n metadata?: Record<string, unknown> | null;\n publishedAt?: string | null;\n createdAt: string;\n updatedAt: string;\n aiProvenance?: ContentAIProvenanceLike | null;\n};\n\ntype ContentAIProvenanceLike = {\n generator: string;\n provider?: string | null;\n model?: string | null;\n generatedAt: string;\n source: string;\n humanEdited: boolean;\n digitalSourceType: string;\n disclosure: string;\n};\n\ntype AssetLike = {\n id: string;\n name: string;\n type?: string | null;\n url?: string | null;\n thumbnailUrl?: string | null;\n mimeType: string;\n sizeBytes?: number | null;\n width?: number | null;\n height?: number | null;\n tags: string[];\n folderId?: string | null;\n uploadedBy?: string | null;\n createdAt: string;\n updatedAt: string;\n};\n\ntype AIToolLike = {\n id: string;\n name: string;\n description?: string | null;\n category: string;\n provider?: string | null;\n isEnabled: boolean;\n usageCount?: number | null;\n createdAt: string;\n};\n\nfunction mapContentType(value: string): ContentItem[\"type\"] {\n switch (value) {\n case \"IMAGE\":\n return \"image\";\n case \"VIDEO\":\n return \"video\";\n case \"DOCUMENT\":\n return \"document\";\n case \"TEMPLATE\":\n return \"template\";\n default:\n return \"article\";\n }\n}\n\nfunction mapContentStatus(value: string): ContentItem[\"status\"] {\n switch (value) {\n case \"PUBLISHED\":\n return \"published\";\n case \"ARCHIVED\":\n return \"archived\";\n case \"IN_REVIEW\":\n case \"REVIEW\":\n return \"review\";\n default:\n return \"draft\";\n }\n}\n\nfunction mapAssetType(value?: string | null): Asset[\"type\"] {\n switch (value) {\n case \"VIDEO\":\n return \"video\";\n case \"DOCUMENT\":\n return \"document\";\n case \"AUDIO\":\n return \"audio\";\n case \"FONT\":\n return \"font\";\n default:\n return \"image\";\n }\n}\n\nfunction mapToolInputType(category: string): AITool[\"inputType\"] {\n if (category.toLowerCase().includes(\"seo\")) return \"url\";\n if (category.toLowerCase().includes(\"audience\")) return \"data\";\n return \"text\";\n}\n\nfunction mapToolOutputType(category: string): AITool[\"outputType\"] {\n if (category.toLowerCase().includes(\"image\")) return \"image\";\n if (\n category.toLowerCase().includes(\"seo\") ||\n category.toLowerCase().includes(\"report\")\n )\n return \"report\";\n return \"text\";\n}\n\nexport function toContentAIProvenance(\n value: ContentAIProvenanceLike | null | undefined,\n): ContentAIProvenance | null {\n if (!value) return null;\n return {\n generator: value.generator,\n provider: value.provider ?? null,\n model: value.model ?? null,\n generatedAt: value.generatedAt,\n source: value.source,\n humanEdited: value.humanEdited,\n digitalSourceType: value.digitalSourceType,\n disclosure: value.disclosure,\n };\n}\n\nexport function toContentItemModel(item: ContentItemLike): ContentItem {\n const metadata = item.metadata ?? {};\n return {\n id: item.id,\n title: item.title,\n description: item.summary ?? \"\",\n type: mapContentType(item.type),\n typeLabel: contentTypeLabel(item.type),\n content: item.body ?? \"\",\n status: mapContentStatus(item.status),\n author: item.authorId ?? \"Unknown\",\n thumbnail: \"\",\n tags: item.tags ?? [],\n categories: [],\n seoScore: Number(metadata[\"seoScore\"] ?? 0),\n wordCount: Number(metadata[\"wordCount\"] ?? 0),\n readTime: Number(metadata[\"readTime\"] ?? 0),\n metrics: {\n views: Number(metadata[\"views\"] ?? 0),\n shares: Number(metadata[\"shares\"] ?? 0),\n engagement: Number(metadata[\"engagement\"] ?? 0),\n conversions: Number(metadata[\"conversions\"] ?? 0),\n },\n publishedAt: item.publishedAt ?? null,\n createdAt: item.createdAt,\n updatedAt: item.updatedAt,\n aiProvenance: toContentAIProvenance(item.aiProvenance),\n };\n}\n\nexport function toAssetModel(item: AssetLike): Asset {\n return {\n id: item.id,\n name: item.name,\n type: mapAssetType(item.type),\n url: item.url ?? \"\",\n thumbnail: item.thumbnailUrl ?? \"\",\n size: item.sizeBytes ?? 0,\n dimensions:\n item.width && item.height\n ? { width: item.width, height: item.height }\n : null,\n mimeType: item.mimeType,\n tags: item.tags,\n folderId: item.folderId ?? null,\n usedIn: [],\n uploadedBy: item.uploadedBy ?? \"system\",\n createdAt: item.createdAt,\n updatedAt: item.updatedAt,\n };\n}\n\nexport function toAIToolModel(item: AIToolLike): AITool {\n return {\n id: item.id,\n name: item.name,\n description: item.description ?? \"\",\n category: item.category.toLowerCase(),\n icon: item.category.toLowerCase().includes(\"image\") ? \"image\" : \"sparkles\",\n inputType: mapToolInputType(item.category),\n outputType: mapToolOutputType(item.category),\n isAvailable: item.isEnabled,\n usageCount: item.usageCount ?? 0,\n rating: 0,\n };\n}\n\nexport function toContentPerformanceSeries(\n items: ContentItem[],\n): Array<{ date: string; views: number; shares: number; conversions: number }> {\n const byDate = new Map<\n string,\n { views: number; shares: number; conversions: number }\n >();\n\n for (const item of items) {\n const key = (item.publishedAt ?? item.createdAt).slice(0, 10);\n const entry = byDate.get(key) ?? { views: 0, shares: 0, conversions: 0 };\n entry.views += item.metrics.views;\n entry.shares += item.metrics.shares;\n entry.conversions += item.metrics.conversions;\n byDate.set(key, entry);\n }\n\n return Array.from(byDate.entries())\n .sort((a, b) => a[0].localeCompare(b[0]))\n .map(([date, value]) => ({\n date: new Date(date).toLocaleDateString(\"en-US\", {\n month: \"short\",\n day: \"numeric\",\n }),\n views: value.views,\n shares: value.shares,\n conversions: value.conversions,\n }));\n}\n"],"mappings":";;AA0DA,SAAS,EAAe,GAAoC;AAC1D,SAAQ,GAAR;EACE,KAAK,QACH,QAAO;EACT,KAAK,QACH,QAAO;EACT,KAAK,WACH,QAAO;EACT,KAAK,WACH,QAAO;EACT,QACE,QAAO;;;AAIb,SAAS,EAAiB,GAAsC;AAC9D,SAAQ,GAAR;EACE,KAAK,YACH,QAAO;EACT,KAAK,WACH,QAAO;EACT,KAAK;EACL,KAAK,SACH,QAAO;EACT,QACE,QAAO;;;AAIb,SAAS,EAAa,GAAsC;AAC1D,SAAQ,GAAR;EACE,KAAK,QACH,QAAO;EACT,KAAK,WACH,QAAO;EACT,KAAK,QACH,QAAO;EACT,KAAK,OACH,QAAO;EACT,QACE,QAAO;;;AAoBb,SAAgB,EACd,GAC4B;AAE5B,QADK,IACE;EACL,WAAW,EAAM;EACjB,UAAU,EAAM,YAAY;EAC5B,OAAO,EAAM,SAAS;EACtB,aAAa,EAAM;EACnB,QAAQ,EAAM;EACd,aAAa,EAAM;EACnB,mBAAmB,EAAM;EACzB,YAAY,EAAM;EACnB,GAVkB;;AAarB,SAAgB,EAAmB,GAAoC;CACrE,IAAM,IAAW,EAAK,YAAY,EAAE;AACpC,QAAO;EACL,IAAI,EAAK;EACT,OAAO,EAAK;EACZ,aAAa,EAAK,WAAW;EAC7B,MAAM,EAAe,EAAK,KAAK;EAC/B,WAAW,EAAiB,EAAK,KAAK;EACtC,SAAS,EAAK,QAAQ;EACtB,QAAQ,EAAiB,EAAK,OAAO;EACrC,QAAQ,EAAK,YAAY;EACzB,WAAW;EACX,MAAM,EAAK,QAAQ,EAAE;EACrB,YAAY,EAAE;EACd,UAAU,OAAO,EAAS,YAAe,EAAE;EAC3C,WAAW,OAAO,EAAS,aAAgB,EAAE;EAC7C,UAAU,OAAO,EAAS,YAAe,EAAE;EAC3C,SAAS;GACP,OAAO,OAAO,EAAS,SAAY,EAAE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QAAQ,EAAM;EACd,aAAa,EAAM;EACpB,EAAE"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tracked-link helpers (HEA-UC-13 follow-up, BOFF-10496)
|
|
3
|
+
*
|
|
4
|
+
* Pure functions behind the tracked-link UI: destination URL validation before
|
|
5
|
+
* `headshotmarketingCreateTrackedLink`, reading the `hm_cid` click id a
|
|
6
|
+
* tracked link adds to the landing-page URL, recognising touchpoints the
|
|
7
|
+
* backend captured automatically (BOFF-10394), and the copy shown to
|
|
8
|
+
* marketers. No React and no network here, so every rule is unit-tested.
|
|
9
|
+
*
|
|
10
|
+
* @module headshotmarketing/utils/trackedLinks
|
|
11
|
+
*/
|
|
12
|
+
/** Query parameter a tracked social or ad link appends to the landing page. */
|
|
13
|
+
export declare const TRACKED_CLICK_ID_PARAM = "hm_cid";
|
|
14
|
+
/** Longest click id the UI forwards; real ids are far shorter. */
|
|
15
|
+
export declare const MAX_CLICK_ID_LENGTH = 128;
|
|
16
|
+
/** `metadata.origin` values the backend stamps on auto-captured touchpoints. */
|
|
17
|
+
export declare const AUTO_CAPTURED_ORIGINS: {
|
|
18
|
+
readonly tracked_link_click: "Tracked link click";
|
|
19
|
+
readonly tracked_email_open: "Tracked email open";
|
|
20
|
+
readonly tracked_click_resolved: "Tracked click (resolved to lead)";
|
|
21
|
+
};
|
|
22
|
+
export type AutoCapturedOrigin = keyof typeof AUTO_CAPTURED_ORIGINS;
|
|
23
|
+
/** Source types a marketer can create a tracked link for from the UI. */
|
|
24
|
+
export type CreatableTrackedLinkSource = "AD_CAMPAIGN" | "AD_CREATIVE" | "SOCIAL_POST";
|
|
25
|
+
export type DestinationValidation = {
|
|
26
|
+
ok: true;
|
|
27
|
+
url: string;
|
|
28
|
+
} | {
|
|
29
|
+
ok: false;
|
|
30
|
+
error: string;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Validate a destination URL before asking the backend for a tracked link.
|
|
34
|
+
* Only absolute http(s) URLs are accepted; the backend applies the same rule
|
|
35
|
+
* and this check just gives the marketer an immediate, specific message.
|
|
36
|
+
*/
|
|
37
|
+
export declare function validateDestinationUrl(input: string): DestinationValidation;
|
|
38
|
+
/**
|
|
39
|
+
* Read the tracked click id from what a marketer pasted: either the bare
|
|
40
|
+
* `hm_cid` value or a whole landing-page URL that carries it. Returns null
|
|
41
|
+
* when there is nothing usable, so the lead is created without attribution.
|
|
42
|
+
*/
|
|
43
|
+
export declare function extractTrackedClickId(input: string): string | null;
|
|
44
|
+
/**
|
|
45
|
+
* The auto-capture origin of a touchpoint, or null when it was recorded by
|
|
46
|
+
* hand or through the API. Driven only by `metadata.origin`, which the
|
|
47
|
+
* backend writes for tracked clicks, opens and resolved clicks.
|
|
48
|
+
*/
|
|
49
|
+
export declare function autoCapturedOrigin(metadata: unknown): AutoCapturedOrigin | null;
|
|
50
|
+
/** Human label for an auto-capture origin, or null for manual touchpoints. */
|
|
51
|
+
export declare function autoCapturedLabel(metadata: unknown): string | null;
|
|
52
|
+
/** Count how many touchpoints in a list were captured automatically. */
|
|
53
|
+
export declare function countAutoCaptured(touchpoints: ReadonlyArray<{
|
|
54
|
+
metadata?: unknown;
|
|
55
|
+
}>): number;
|
|
56
|
+
/** Label for a tracked link's source type. */
|
|
57
|
+
export declare function trackedLinkSourceLabel(sourceType: string): string;
|
|
58
|
+
/** Total recorded clicks across a set of tracked links. */
|
|
59
|
+
export declare function totalClicks(links: ReadonlyArray<{
|
|
60
|
+
clickCount: number;
|
|
61
|
+
}>): number;
|
|
62
|
+
/** "Never" for unclicked links, otherwise a locale date and time. */
|
|
63
|
+
export declare function formatLastClicked(value: string | null | undefined, locale?: string): string;
|
|
64
|
+
/**
|
|
65
|
+
* Shorten a URL for display in a narrow column, keeping the host and the end
|
|
66
|
+
* of the path so marketers can still tell links apart.
|
|
67
|
+
*/
|
|
68
|
+
export declare function shortenUrl(value: string | null | undefined, max?: number): string;
|
|
69
|
+
/**
|
|
70
|
+
* Snippet for a landing page or lead form that reads the tracked click id
|
|
71
|
+
* from the page URL and passes it as `attributionClickId` when it creates the
|
|
72
|
+
* lead, so the SOCIAL_CLICK / AD_CLICK touchpoint is attributed.
|
|
73
|
+
*/
|
|
74
|
+
export declare const LEAD_CAPTURE_SNIPPET = "// On the landing page that receives the tracked click\nconst clickId = new URLSearchParams(window.location.search).get(\"hm_cid\");\n\n// When the visitor submits the lead form\nawait createHeadshotmarketingLead({\n input: {\n title: \"Website enquiry\",\n source: \"WEBSITE\",\n // Ties the visitor's tracked click to this lead (dated at the click)\n attributionClickId: clickId ?? undefined,\n },\n});";
|
|
75
|
+
//# sourceMappingURL=trackedLinks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trackedLinks.d.ts","sourceRoot":"","sources":["../../../src/headshotmarketing/utils/trackedLinks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,+EAA+E;AAC/E,eAAO,MAAM,sBAAsB,WAAW,CAAC;AAE/C,kEAAkE;AAClE,eAAO,MAAM,mBAAmB,MAAM,CAAC;AAEvC,gFAAgF;AAChF,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,qBAAqB,CAAC;AAEpE,yEAAyE;AACzE,MAAM,MAAM,0BAA0B,GAClC,aAAa,GACb,aAAa,GACb,aAAa,CAAC;AASlB,MAAM,MAAM,qBAAqB,GAC7B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACzB;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjC;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,qBAAqB,CAqB3E;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAiBlE;AASD;;;;GAIG;AACH,wBAAgB,kBAAkB,CAChC,QAAQ,EAAE,OAAO,GAChB,kBAAkB,GAAG,IAAI,CAM3B;AAED,8EAA8E;AAC9E,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAGlE;AAED,wEAAwE;AACxE,wBAAgB,iBAAiB,CAC/B,WAAW,EAAE,aAAa,CAAC;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC,GACjD,MAAM,CAKR;AAED,8CAA8C;AAC9C,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED,2DAA2D;AAC3D,wBAAgB,WAAW,CACzB,KAAK,EAAE,aAAa,CAAC;IAAE,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,GAC3C,MAAM,CAMR;AAED,qEAAqE;AACrE,wBAAgB,iBAAiB,CAC/B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,MAAM,SAAU,GACf,MAAM,CAWR;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,GAAG,SAAK,GAAG,MAAM,CAQ7E;AAED;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,uaAW7B,CAAC"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
//#region src/headshotmarketing/utils/trackedLinks.ts
|
|
2
|
+
var e = "hm_cid", t = {
|
|
3
|
+
tracked_link_click: "Tracked link click",
|
|
4
|
+
tracked_email_open: "Tracked email open",
|
|
5
|
+
tracked_click_resolved: "Tracked click (resolved to lead)"
|
|
6
|
+
};
|
|
7
|
+
function n(e) {
|
|
8
|
+
let t = e.trim();
|
|
9
|
+
if (!t) return {
|
|
10
|
+
ok: !1,
|
|
11
|
+
error: "Enter the landing page URL to track."
|
|
12
|
+
};
|
|
13
|
+
let n;
|
|
14
|
+
try {
|
|
15
|
+
n = new URL(t);
|
|
16
|
+
} catch {
|
|
17
|
+
return {
|
|
18
|
+
ok: !1,
|
|
19
|
+
error: "Enter a full URL, including https://"
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
return n.protocol !== "https:" && n.protocol !== "http:" ? {
|
|
23
|
+
ok: !1,
|
|
24
|
+
error: "Only http and https URLs can be tracked."
|
|
25
|
+
} : n.hostname ? {
|
|
26
|
+
ok: !0,
|
|
27
|
+
url: n.toString()
|
|
28
|
+
} : {
|
|
29
|
+
ok: !1,
|
|
30
|
+
error: "The URL needs a host name."
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function r(t) {
|
|
34
|
+
let n = t.trim();
|
|
35
|
+
if (!n) return null;
|
|
36
|
+
let r = n;
|
|
37
|
+
if (/^https?:\/\//i.test(n)) try {
|
|
38
|
+
r = new URL(n).searchParams.get(e);
|
|
39
|
+
} catch {
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
else if (n.includes("hm_cid=")) {
|
|
43
|
+
let t = n.slice(n.indexOf("?") + 1);
|
|
44
|
+
r = new URLSearchParams(t).get(e);
|
|
45
|
+
}
|
|
46
|
+
let i = r?.trim() ?? "";
|
|
47
|
+
return !i || i.length > 128 || /\s/.test(i) ? null : i;
|
|
48
|
+
}
|
|
49
|
+
function i(e) {
|
|
50
|
+
return typeof e == "object" && e && !Array.isArray(e) ? e : null;
|
|
51
|
+
}
|
|
52
|
+
function a(e) {
|
|
53
|
+
let n = i(e)?.origin;
|
|
54
|
+
return typeof n == "string" && Object.prototype.hasOwnProperty.call(t, n) ? n : null;
|
|
55
|
+
}
|
|
56
|
+
function o(e) {
|
|
57
|
+
let n = a(e);
|
|
58
|
+
return n ? t[n] : null;
|
|
59
|
+
}
|
|
60
|
+
function s(e) {
|
|
61
|
+
return e.reduce((e, t) => e + +!!a(t.metadata), 0);
|
|
62
|
+
}
|
|
63
|
+
function c(e) {
|
|
64
|
+
return e.reduce((e, t) => e + (Number.isFinite(t.clickCount) ? t.clickCount : 0), 0);
|
|
65
|
+
}
|
|
66
|
+
function l(e, t = "en-US") {
|
|
67
|
+
if (!e) return "Never";
|
|
68
|
+
let n = new Date(e);
|
|
69
|
+
return Number.isNaN(n.getTime()) ? "Never" : n.toLocaleString(t, {
|
|
70
|
+
month: "short",
|
|
71
|
+
day: "numeric",
|
|
72
|
+
year: "numeric",
|
|
73
|
+
hour: "numeric",
|
|
74
|
+
minute: "2-digit"
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
function u(e, t = 48) {
|
|
78
|
+
if (!e) return "";
|
|
79
|
+
let n = e.replace(/^https?:\/\//i, "");
|
|
80
|
+
if (n.length <= t) return n;
|
|
81
|
+
let r = Math.max(t - 1, 2), i = Math.ceil(r / 2), a = r - i;
|
|
82
|
+
return `${n.slice(0, i)}…${a > 0 ? n.slice(-a) : ""}`;
|
|
83
|
+
}
|
|
84
|
+
var d = `// On the landing page that receives the tracked click
|
|
85
|
+
const clickId = new URLSearchParams(window.location.search).get("${e}");
|
|
86
|
+
|
|
87
|
+
// When the visitor submits the lead form
|
|
88
|
+
await createHeadshotmarketingLead({
|
|
89
|
+
input: {
|
|
90
|
+
title: "Website enquiry",
|
|
91
|
+
source: "WEBSITE",
|
|
92
|
+
// Ties the visitor's tracked click to this lead (dated at the click)
|
|
93
|
+
attributionClickId: clickId ?? undefined,
|
|
94
|
+
},
|
|
95
|
+
});`;
|
|
96
|
+
//#endregion
|
|
97
|
+
export { d as LEAD_CAPTURE_SNIPPET, e as TRACKED_CLICK_ID_PARAM, o as autoCapturedLabel, s as countAutoCaptured, r as extractTrackedClickId, l as formatLastClicked, u as shortenUrl, c as totalClicks, n as validateDestinationUrl };
|
|
98
|
+
|
|
99
|
+
//# sourceMappingURL=trackedLinks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trackedLinks.js","names":[],"sources":["../../../src/headshotmarketing/utils/trackedLinks.ts"],"sourcesContent":["/**\n * Tracked-link helpers (HEA-UC-13 follow-up, BOFF-10496)\n *\n * Pure functions behind the tracked-link UI: destination URL validation before\n * `headshotmarketingCreateTrackedLink`, reading the `hm_cid` click id a\n * tracked link adds to the landing-page URL, recognising touchpoints the\n * backend captured automatically (BOFF-10394), and the copy shown to\n * marketers. No React and no network here, so every rule is unit-tested.\n *\n * @module headshotmarketing/utils/trackedLinks\n */\n\n/** Query parameter a tracked social or ad link appends to the landing page. */\nexport const TRACKED_CLICK_ID_PARAM = \"hm_cid\";\n\n/** Longest click id the UI forwards; real ids are far shorter. */\nexport const MAX_CLICK_ID_LENGTH = 128;\n\n/** `metadata.origin` values the backend stamps on auto-captured touchpoints. */\nexport const AUTO_CAPTURED_ORIGINS = {\n tracked_link_click: \"Tracked link click\",\n tracked_email_open: \"Tracked email open\",\n tracked_click_resolved: \"Tracked click (resolved to lead)\",\n} as const;\n\nexport type AutoCapturedOrigin = keyof typeof AUTO_CAPTURED_ORIGINS;\n\n/** Source types a marketer can create a tracked link for from the UI. */\nexport type CreatableTrackedLinkSource =\n | \"AD_CAMPAIGN\"\n | \"AD_CREATIVE\"\n | \"SOCIAL_POST\";\n\nconst SOURCE_LABELS: Record<string, string> = {\n AD_CAMPAIGN: \"Ad campaign\",\n AD_CREATIVE: \"Ad creative\",\n SOCIAL_POST: \"Social post\",\n AUTOMATION_EMAIL: \"Automation email\",\n};\n\nexport type DestinationValidation =\n | { ok: true; url: string }\n | { ok: false; error: string };\n\n/**\n * Validate a destination URL before asking the backend for a tracked link.\n * Only absolute http(s) URLs are accepted; the backend applies the same rule\n * and this check just gives the marketer an immediate, specific message.\n */\nexport function validateDestinationUrl(input: string): DestinationValidation {\n const value = input.trim();\n if (!value) {\n return { ok: false, error: \"Enter the landing page URL to track.\" };\n }\n let parsed: URL;\n try {\n parsed = new URL(value);\n } catch {\n return {\n ok: false,\n error: \"Enter a full URL, including https://\",\n };\n }\n if (parsed.protocol !== \"https:\" && parsed.protocol !== \"http:\") {\n return { ok: false, error: \"Only http and https URLs can be tracked.\" };\n }\n if (!parsed.hostname) {\n return { ok: false, error: \"The URL needs a host name.\" };\n }\n return { ok: true, url: parsed.toString() };\n}\n\n/**\n * Read the tracked click id from what a marketer pasted: either the bare\n * `hm_cid` value or a whole landing-page URL that carries it. Returns null\n * when there is nothing usable, so the lead is created without attribution.\n */\nexport function extractTrackedClickId(input: string): string | null {\n const value = input.trim();\n if (!value) return null;\n let candidate: string | null = value;\n if (/^https?:\\/\\//i.test(value)) {\n try {\n candidate = new URL(value).searchParams.get(TRACKED_CLICK_ID_PARAM);\n } catch {\n return null;\n }\n } else if (value.includes(`${TRACKED_CLICK_ID_PARAM}=`)) {\n const query = value.slice(value.indexOf(\"?\") + 1);\n candidate = new URLSearchParams(query).get(TRACKED_CLICK_ID_PARAM);\n }\n const id = candidate?.trim() ?? \"\";\n if (!id || id.length > MAX_CLICK_ID_LENGTH || /\\s/.test(id)) return null;\n return id;\n}\n\n/** Narrow an unknown `metadata` JSON value to a plain record. */\nfunction asRecord(value: unknown): Record<string, unknown> | null {\n return value !== null && typeof value === \"object\" && !Array.isArray(value)\n ? (value as Record<string, unknown>)\n : null;\n}\n\n/**\n * The auto-capture origin of a touchpoint, or null when it was recorded by\n * hand or through the API. Driven only by `metadata.origin`, which the\n * backend writes for tracked clicks, opens and resolved clicks.\n */\nexport function autoCapturedOrigin(\n metadata: unknown,\n): AutoCapturedOrigin | null {\n const origin = asRecord(metadata)?.origin;\n return typeof origin === \"string\" &&\n Object.prototype.hasOwnProperty.call(AUTO_CAPTURED_ORIGINS, origin)\n ? (origin as AutoCapturedOrigin)\n : null;\n}\n\n/** Human label for an auto-capture origin, or null for manual touchpoints. */\nexport function autoCapturedLabel(metadata: unknown): string | null {\n const origin = autoCapturedOrigin(metadata);\n return origin ? AUTO_CAPTURED_ORIGINS[origin] : null;\n}\n\n/** Count how many touchpoints in a list were captured automatically. */\nexport function countAutoCaptured(\n touchpoints: ReadonlyArray<{ metadata?: unknown }>,\n): number {\n return touchpoints.reduce(\n (total, tp) => total + (autoCapturedOrigin(tp.metadata) ? 1 : 0),\n 0,\n );\n}\n\n/** Label for a tracked link's source type. */\nexport function trackedLinkSourceLabel(sourceType: string): string {\n return SOURCE_LABELS[sourceType] ?? sourceType;\n}\n\n/** Total recorded clicks across a set of tracked links. */\nexport function totalClicks(\n links: ReadonlyArray<{ clickCount: number }>,\n): number {\n return links.reduce(\n (sum, link) =>\n sum + (Number.isFinite(link.clickCount) ? link.clickCount : 0),\n 0,\n );\n}\n\n/** \"Never\" for unclicked links, otherwise a locale date and time. */\nexport function formatLastClicked(\n value: string | null | undefined,\n locale = \"en-US\",\n): string {\n if (!value) return \"Never\";\n const date = new Date(value);\n if (Number.isNaN(date.getTime())) return \"Never\";\n return date.toLocaleString(locale, {\n month: \"short\",\n day: \"numeric\",\n year: \"numeric\",\n hour: \"numeric\",\n minute: \"2-digit\",\n });\n}\n\n/**\n * Shorten a URL for display in a narrow column, keeping the host and the end\n * of the path so marketers can still tell links apart.\n */\nexport function shortenUrl(value: string | null | undefined, max = 48): string {\n if (!value) return \"\";\n const text = value.replace(/^https?:\\/\\//i, \"\");\n if (text.length <= max) return text;\n const keep = Math.max(max - 1, 2);\n const head = Math.ceil(keep / 2);\n const tail = keep - head;\n return `${text.slice(0, head)}…${tail > 0 ? text.slice(-tail) : \"\"}`;\n}\n\n/**\n * Snippet for a landing page or lead form that reads the tracked click id\n * from the page URL and passes it as `attributionClickId` when it creates the\n * lead, so the SOCIAL_CLICK / AD_CLICK touchpoint is attributed.\n */\nexport const LEAD_CAPTURE_SNIPPET = `// On the landing page that receives the tracked click\nconst clickId = new URLSearchParams(window.location.search).get(\"${TRACKED_CLICK_ID_PARAM}\");\n\n// When the visitor submits the lead form\nawait createHeadshotmarketingLead({\n input: {\n title: \"Website enquiry\",\n source: \"WEBSITE\",\n // Ties the visitor's tracked click to this lead (dated at the click)\n attributionClickId: clickId ?? undefined,\n },\n});`;\n"],"mappings":";AAaA,IAAa,IAAyB,UAMzB,IAAwB;CAC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