fullstackgtm 0.42.0 → 0.43.0

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/src/signals.ts CHANGED
@@ -65,6 +65,9 @@ export type SignalOutcome = {
65
65
  id: string;
66
66
  accountDomain: string;
67
67
  touchId?: string;
68
+ /** The contact the touch went to (from the judge decision), when known — so an
69
+ * outcome credits the person reached, not just the account domain. */
70
+ contactId?: string;
68
71
  result: SignalOutcomeResult;
69
72
  recordedAt: string;
70
73
  /** Signal ids credited (from the judge decision). */
@@ -668,6 +671,7 @@ export function createFileSignalStore(directory?: string): SignalStore {
668
671
  export function makeOutcome(input: {
669
672
  accountDomain: string;
670
673
  touchId?: string;
674
+ contactId?: string;
671
675
  result: SignalOutcomeResult;
672
676
  creditedSignals?: string[];
673
677
  recordedAt?: string;
@@ -678,6 +682,7 @@ export function makeOutcome(input: {
678
682
  id: outcomeId({ accountDomain, touchId: input.touchId, result: input.result, recordedAt }),
679
683
  accountDomain,
680
684
  ...(input.touchId !== undefined ? { touchId: input.touchId } : {}),
685
+ ...(input.contactId !== undefined ? { contactId: input.contactId } : {}),
681
686
  result: input.result,
682
687
  recordedAt,
683
688
  creditedSignals: input.creditedSignals ?? [],
package/src/types.ts CHANGED
@@ -68,6 +68,13 @@ export type CreateRecordPayload = {
68
68
  source: string;
69
69
  estCostUsd?: number;
70
70
  associateCompanyName?: string;
71
+ /**
72
+ * The company's domain, when known. The connector resolves the account by
73
+ * DOMAIN first (the accurate key), creates it with the domain, and fills the
74
+ * domain on an existing account that lacks one — so the lead's account is a
75
+ * real, signal-watchable record (`signals`/`icp judge` key on account domain).
76
+ */
77
+ associateCompanyDomain?: string;
71
78
  /**
72
79
  * Owner to stamp on the new record (canonical owner id). The connector maps
73
80
  * it to the CRM's owner property (HubSpot `hubspot_owner_id`) at create time
@@ -364,7 +371,12 @@ export type PatchPlan = {
364
371
  status: ApprovalStatus;
365
372
  dryRun: true;
366
373
  summary: string;
374
+ /** The COMPLETE, object-typed findings list — every account/contact/deal
375
+ * finding, each carrying its `objectType`. This is the canonical set. */
367
376
  findings: AuditFinding[];
377
+ /** A deal/sales-PIPELINE projection of `findings` (deal-level + the
378
+ * call-next-step type) for the pipeline-trust queue — intentionally a subset.
379
+ * Account/contact hygiene findings are NOT here; read `findings` for those. */
368
380
  pipelineFindings?: PipelineFinding[];
369
381
  evidence?: GtmEvidence[];
370
382
  operations: PatchOperation[];