@burdenoff/microfe-headshotmarketing 2026.1029.3 → 2026.1029.5

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.
Files changed (36) hide show
  1. package/dist/generated/global-types.d.ts +6 -6
  2. package/dist/generated/global-types.d.ts.map +1 -1
  3. package/dist/generated/wspace-operations.d.ts +192 -0
  4. package/dist/generated/wspace-operations.d.ts.map +1 -1
  5. package/dist/generated/wspace-operations.js +351 -247
  6. package/dist/generated/wspace-operations.js.map +1 -1
  7. package/dist/generated/wspace-types.d.ts +91 -1
  8. package/dist/generated/wspace-types.d.ts.map +1 -1
  9. package/dist/generated/wspace-types.js.map +1 -1
  10. package/dist/headshotmarketing/components/StatusBadge.d.ts.map +1 -1
  11. package/dist/headshotmarketing/components/StatusBadge.js +5 -1
  12. package/dist/headshotmarketing/components/StatusBadge.js.map +1 -1
  13. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.d.ts.map +1 -1
  14. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js +62 -57
  15. package/dist/headshotmarketing/pages/ads/AdCampaignDetailsPage.js.map +1 -1
  16. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.d.ts +10 -0
  17. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.d.ts.map +1 -0
  18. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js +260 -0
  19. package/dist/headshotmarketing/pages/ads/AdPlatformSyncPanel.js.map +1 -0
  20. package/dist/headshotmarketing/pages/content/AIToolsPage.d.ts.map +1 -1
  21. package/dist/headshotmarketing/pages/content/AIToolsPage.js +220 -267
  22. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/seo/SeoToolsPage.d.ts.map +1 -1
  24. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +150 -90
  25. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  26. package/dist/headshotmarketing/types/index.d.ts +9 -2
  27. package/dist/headshotmarketing/types/index.d.ts.map +1 -1
  28. package/dist/headshotmarketing/utils/aiToolOutput.d.ts +16 -0
  29. package/dist/headshotmarketing/utils/aiToolOutput.d.ts.map +1 -0
  30. package/dist/headshotmarketing/utils/aiToolOutput.js +62 -0
  31. package/dist/headshotmarketing/utils/aiToolOutput.js.map +1 -0
  32. package/dist/headshotmarketing/utils/seoMapper.d.ts +4 -0
  33. package/dist/headshotmarketing/utils/seoMapper.d.ts.map +1 -1
  34. package/dist/headshotmarketing/utils/seoMapper.js +38 -12
  35. package/dist/headshotmarketing/utils/seoMapper.js.map +1 -1
  36. package/package.json +1 -1
@@ -16583,6 +16583,8 @@ export type CreateHeadshotmarketingAdCampaignInput = {
16583
16583
  metadata?: InputMaybe<Scalars['JSON']['input']>;
16584
16584
  name: Scalars['String']['input'];
16585
16585
  platform: HeadshotmarketingAdPlatform;
16586
+ /** Platform-native campaign id to link for external ad-network sync. */
16587
+ platformCampaignId?: InputMaybe<Scalars['String']['input']>;
16586
16588
  startDate?: InputMaybe<Scalars['DateTime']['input']>;
16587
16589
  status?: InputMaybe<HeadshotmarketingAdCampaignStatus>;
16588
16590
  totalBudget?: InputMaybe<Scalars['Float']['input']>;
@@ -31660,9 +31662,16 @@ export type HeadshotmarketingAiToolList = {
31660
31662
  items: Array<HeadshotmarketingAiTool>;
31661
31663
  total: Scalars['Int']['output'];
31662
31664
  };
31665
+ /** Outcome of one external ad-network sync attempt (budget push or status/metrics pull). A FAILED result with `retryable: true` and a `nextRetryAt` has been queued for an automatic retry. */
31663
31666
  export type HeadshotmarketingAdBudgetPushResult = {
31664
31667
  __typename?: 'HeadshotmarketingAdBudgetPushResult';
31668
+ /** 1-based consecutive attempt number. */
31669
+ attempt: Scalars['Int']['output'];
31665
31670
  message: Scalars['String']['output'];
31671
+ /** When the automatic retry runs, if one was scheduled. */
31672
+ nextRetryAt?: Maybe<Scalars['DateTime']['output']>;
31673
+ /** Whether the failure is transient (HTTP 408/429/5xx, timeout). */
31674
+ retryable: Scalars['Boolean']['output'];
31666
31675
  syncStatus: HeadshotmarketingAdSyncStatus;
31667
31676
  };
31668
31677
  /** A budget reallocation suggestion for an ad campaign. `source` is either "llm:<provider>" (a real LLM call succeeded) or "deterministic-heuristic" (no LLM provider key configured — the real, honest fallback path). */
@@ -31709,20 +31718,36 @@ export type HeadshotmarketingAdCampaign = {
31709
31718
  endDate?: Maybe<Scalars['DateTime']['output']>;
31710
31719
  /** Unique identifier */
31711
31720
  id: Scalars['ID']['output'];
31721
+ /** When status and spend/performance were last read back from the platform. */
31722
+ lastMetricsSyncedAt?: Maybe<Scalars['DateTime']['output']>;
31723
+ /** Non-secret error message from the latest failed sync attempt; null after a successful sync. */
31724
+ lastSyncError?: Maybe<Scalars['String']['output']>;
31725
+ /** When the latest push or pull to/from the ad platform succeeded. */
31726
+ lastSyncedAt?: Maybe<Scalars['DateTime']['output']>;
31712
31727
  /** Flexible key-value metadata */
31713
31728
  metadata?: Maybe<Scalars['JSON']['output']>;
31714
31729
  /** Performance metrics (impressions, clicks, conversions, CTR, CPC) */
31715
31730
  metrics?: Maybe<Scalars['JSON']['output']>;
31716
31731
  /** Ad campaign name */
31717
31732
  name: Scalars['String']['output'];
31733
+ /** When the next automatic retry of a transient sync failure is scheduled; null when no retry is queued. */
31734
+ nextSyncRetryAt?: Maybe<Scalars['DateTime']['output']>;
31718
31735
  /** Ad platform */
31719
31736
  platform: HeadshotmarketingAdPlatform;
31737
+ /** Platform-native campaign id (Meta / Google Ads / LinkedIn) this campaign is linked to for external ad-network sync. Null until linked. */
31738
+ platformCampaignId?: Maybe<Scalars['String']['output']>;
31739
+ /** Raw delivery status reported by the ad platform on the latest pull (e.g. Meta effective_status, Google Ads ENABLED). */
31740
+ platformStatus?: Maybe<Scalars['String']['output']>;
31720
31741
  /** Amount spent so far in cents */
31721
31742
  spent?: Maybe<Scalars['Float']['output']>;
31722
31743
  /** Campaign start date */
31723
31744
  startDate?: Maybe<Scalars['DateTime']['output']>;
31724
31745
  /** Campaign status */
31725
31746
  status: HeadshotmarketingAdCampaignStatus;
31747
+ /** Consecutive failed sync attempts (0 after a success). */
31748
+ syncAttemptCount: Scalars['Int']['output'];
31749
+ /** External ad-network sync state of the latest push or pull. */
31750
+ syncStatus: HeadshotmarketingAdSyncStatus;
31726
31751
  /** Total budget in cents */
31727
31752
  totalBudget?: Maybe<Scalars['Float']['output']>;
31728
31753
  /** Timestamp when last updated */
@@ -31882,12 +31907,61 @@ export type HeadshotmarketingAdReachEstimate = {
31882
31907
  /** Lower bound of the estimated unique daily reach */
31883
31908
  estimatedDailyReachMin: Scalars['Int']['output'];
31884
31909
  };
31910
+ /** One logged external ad-network sync attempt. Error text never contains credentials. */
31911
+ export type HeadshotmarketingAdSyncAttempt = {
31912
+ __typename?: 'HeadshotmarketingAdSyncAttempt';
31913
+ adCampaignId: Scalars['ID']['output'];
31914
+ attempt: Scalars['Int']['output'];
31915
+ connectionId?: Maybe<Scalars['ID']['output']>;
31916
+ createdAt: Scalars['DateTime']['output'];
31917
+ direction: HeadshotmarketingAdSyncDirection;
31918
+ durationMs?: Maybe<Scalars['Int']['output']>;
31919
+ error?: Maybe<Scalars['String']['output']>;
31920
+ httpStatus?: Maybe<Scalars['Int']['output']>;
31921
+ id: Scalars['ID']['output'];
31922
+ nextRetryAt?: Maybe<Scalars['DateTime']['output']>;
31923
+ platform: HeadshotmarketingAdPlatform;
31924
+ retryable: Scalars['Boolean']['output'];
31925
+ status: HeadshotmarketingAdSyncAttemptStatus;
31926
+ trigger: HeadshotmarketingAdSyncTrigger;
31927
+ workspaceId: Scalars['ID']['output'];
31928
+ };
31929
+ export type HeadshotmarketingAdSyncAttemptList = {
31930
+ __typename?: 'HeadshotmarketingAdSyncAttemptList';
31931
+ hasMore: Scalars['Boolean']['output'];
31932
+ items: Array<HeadshotmarketingAdSyncAttempt>;
31933
+ total: Scalars['Int']['output'];
31934
+ };
31935
+ export declare enum HeadshotmarketingAdSyncAttemptStatus {
31936
+ Failed = "FAILED",
31937
+ Succeeded = "SUCCEEDED"
31938
+ }
31939
+ export declare enum HeadshotmarketingAdSyncDirection {
31940
+ /** Status and metrics read back from the platform. */
31941
+ Pull = "PULL",
31942
+ /** Budget pushed to the platform. */
31943
+ Push = "PUSH"
31944
+ }
31945
+ /** Outcome of reading a campaign's status and spend/performance back from its ad platform (BOFF-3463). */
31946
+ export type HeadshotmarketingAdSyncResult = {
31947
+ __typename?: 'HeadshotmarketingAdSyncResult';
31948
+ attempt: Scalars['Int']['output'];
31949
+ message: Scalars['String']['output'];
31950
+ nextRetryAt?: Maybe<Scalars['DateTime']['output']>;
31951
+ retryable: Scalars['Boolean']['output'];
31952
+ syncStatus: HeadshotmarketingAdSyncStatus;
31953
+ };
31885
31954
  export declare enum HeadshotmarketingAdSyncStatus {
31886
31955
  Failed = "FAILED",
31887
31956
  NotSynced = "NOT_SYNCED",
31888
31957
  Synced = "SYNCED",
31889
31958
  Syncing = "SYNCING"
31890
31959
  }
31960
+ export declare enum HeadshotmarketingAdSyncTrigger {
31961
+ Manual = "MANUAL",
31962
+ ScheduledPull = "SCHEDULED_PULL",
31963
+ ScheduledRetry = "SCHEDULED_RETRY"
31964
+ }
31891
31965
  export type HeadshotmarketingAddLandingPageSectionInput = {
31892
31966
  backgroundColor?: InputMaybe<Scalars['String']['input']>;
31893
31967
  backgroundImageUrl?: InputMaybe<Scalars['String']['input']>;
@@ -54283,7 +54357,7 @@ export type Mutation = {
54283
54357
  publishWorkflow: WorkflowDefinition;
54284
54358
  /** Push gateway auth configuration (OAuth2 credentials) to an agent. The backend proxies the request to the agent's REST API (POST /api/agent/gateway-auth). */
54285
54359
  pushAgentGatewayAuth: AgentPluginActionResult;
54286
- /** Real budget/status push to a WEBHOOK-connected ad platform. */
54360
+ /** Real budget push to a connected ad platform (WEBHOOK relay or native API). Every attempt is logged; transient failures are retried automatically. */
54287
54361
  pushHeadshotmarketingAdBudgetUpdate: HeadshotmarketingAdBudgetPushResult;
54288
54362
  /** Project an invoice/AR journal entry to global-billing-svc (reuse — no local payments store). */
54289
54363
  pushHealthyBowlJournalEntryToBilling: HealthyBowlJournalEntry;
@@ -55239,6 +55313,8 @@ export type Mutation = {
55239
55313
  /** Fetches and applies the mapping's externalIcalUrl now (INBOUND/BOTH only). Returns the mapping with updated lastSyncedAt/lastSyncStatus. */
55240
55314
  syncGgnomadChannelMapping: GgnomadChannelMapping;
55241
55315
  syncGroupRule: GroupRuleSyncExecution;
55316
+ /** Read a campaign's delivery status and lifetime spend/impressions/clicks/ conversions back from its ad platform's official API (API-mode connection required). Failures are logged, returned, and retried automatically when transient. */
55317
+ syncHeadshotmarketingAdCampaignFromPlatform: HeadshotmarketingAdSyncResult;
55242
55318
  /** Export a batch of POSTED journal entries to the connected provider; records a sync log. */
55243
55319
  syncHealthyBowlAccountingIntegration: HealthyBowlAccountingSyncResult;
55244
55320
  /** Idempotently replay a batch of offline-captured observations. Each item is keyed by its client-generated `clientId`; a duplicate replay is a no-op (never a new row), and a genuine version conflict is reported as CONFLICT for the user to review — never silently overwritten. */
@@ -70109,6 +70185,10 @@ export type MutationSyncGroupRuleArgs = {
70109
70185
  ruleId: Scalars['ID']['input'];
70110
70186
  };
70111
70187
  /** Base Mutation type with placeholder field. Extended by individual mutation files. */
70188
+ export type MutationSyncHeadshotmarketingAdCampaignFromPlatformArgs = {
70189
+ adCampaignId: Scalars['ID']['input'];
70190
+ };
70191
+ /** Base Mutation type with placeholder field. Extended by individual mutation files. */
70112
70192
  export type MutationSyncHealthyBowlAccountingIntegrationArgs = {
70113
70193
  input: SyncHealthyBowlAccountingInput;
70114
70194
  };
@@ -85959,6 +86039,8 @@ export type Query = {
85959
86039
  /** Get aggregated ad performance metrics for the workspace */
85960
86040
  headshotmarketingAdMetrics: HeadshotmarketingAdMetrics;
85961
86041
  headshotmarketingAdPlatformConnections: HeadshotmarketingAdPlatformConnectionList;
86042
+ /** External ad-network sync log (push + pull attempts), newest first. */
86043
+ headshotmarketingAdSyncAttempts: HeadshotmarketingAdSyncAttemptList;
85962
86044
  /** Compute a deterministic attribution report (first-touch, linear, time-decay and position-based) for a WON deal or a CONVERTED lead. Exactly one of dealId/leadId must be supplied. `timeDecayHalfLifeDays` overrides the time-decay half-life (default 7 days; ignored when not positive). */
85963
86045
  headshotmarketingAttributionReport: HeadshotmarketingAttributionReport;
85964
86046
  /** Attribute every deal closed WON between startDate and endDate (default: the 90 days ending now) under one model and roll the credited revenue up by channel and by campaign. */
@@ -93744,6 +93826,12 @@ export type QueryHeadshotmarketingAdPlatformConnectionsArgs = {
93744
93826
  platform?: InputMaybe<HeadshotmarketingAdPlatform>;
93745
93827
  };
93746
93828
  /** Base Query type with placeholder field. Extended by individual query files. */
93829
+ export type QueryHeadshotmarketingAdSyncAttemptsArgs = {
93830
+ adCampaignId?: InputMaybe<Scalars['ID']['input']>;
93831
+ pagination?: InputMaybe<PaginationInput>;
93832
+ status?: InputMaybe<HeadshotmarketingAdSyncAttemptStatus>;
93833
+ };
93834
+ /** Base Query type with placeholder field. Extended by individual query files. */
93747
93835
  export type QueryHeadshotmarketingAttributionReportArgs = {
93748
93836
  dealId?: InputMaybe<Scalars['ID']['input']>;
93749
93837
  leadId?: InputMaybe<Scalars['ID']['input']>;
@@ -114504,6 +114592,8 @@ export type UpdateHeadshotmarketingAdCampaignInput = {
114504
114592
  metrics?: InputMaybe<Scalars['JSON']['input']>;
114505
114593
  name?: InputMaybe<Scalars['String']['input']>;
114506
114594
  platform?: InputMaybe<HeadshotmarketingAdPlatform>;
114595
+ /** Platform-native campaign id to link for external ad-network sync. */
114596
+ platformCampaignId?: InputMaybe<Scalars['String']['input']>;
114507
114597
  spent?: InputMaybe<Scalars['Float']['input']>;
114508
114598
  startDate?: InputMaybe<Scalars['DateTime']['input']>;
114509
114599
  status?: InputMaybe<HeadshotmarketingAdCampaignStatus>;