@foundrynorth/compass-schema 1.0.0 → 1.0.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/schema.d.ts CHANGED
@@ -83,6 +83,7 @@
83
83
  * @lastUpdated 2026-02-12
84
84
  */
85
85
  import { z } from "zod";
86
+ import type { IntelligenceData } from "./analyzeTypes.js";
86
87
  export declare const users: import("drizzle-orm/pg-core").PgTableWithColumns<{
87
88
  name: "users";
88
89
  schema: undefined;
@@ -667,8 +668,8 @@ export declare const insertUserProfileSchema: z.ZodObject<Omit<{
667
668
  }>;
668
669
  export declare const updateUserProfileSchema: z.ZodObject<{
669
670
  name: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
670
- userId: z.ZodOptional<z.ZodString>;
671
671
  phone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
672
+ userId: z.ZodOptional<z.ZodString>;
672
673
  title: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
673
674
  department: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
674
675
  alternateEmail: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -683,8 +684,8 @@ export declare const updateUserProfileSchema: z.ZodObject<{
683
684
  hubspotContactId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
684
685
  }, "strip", z.ZodTypeAny, {
685
686
  name?: string | null | undefined;
686
- userId?: string | undefined;
687
687
  phone?: string | null | undefined;
688
+ userId?: string | undefined;
688
689
  title?: string | null | undefined;
689
690
  department?: string | null | undefined;
690
691
  alternateEmail?: string | null | undefined;
@@ -699,8 +700,8 @@ export declare const updateUserProfileSchema: z.ZodObject<{
699
700
  hubspotContactId?: string | null | undefined;
700
701
  }, {
701
702
  name?: string | null | undefined;
702
- userId?: string | undefined;
703
703
  phone?: string | null | undefined;
704
+ userId?: string | undefined;
704
705
  title?: string | null | undefined;
705
706
  department?: string | null | undefined;
706
707
  alternateEmail?: string | null | undefined;
@@ -991,12 +992,12 @@ export declare const evidenceSchema: z.ZodObject<{
991
992
  source: z.ZodEnum<["site", "places", "news"]>;
992
993
  }, "strip", z.ZodTypeAny, {
993
994
  url: string;
994
- quote: string;
995
995
  source: "site" | "places" | "news";
996
+ quote: string;
996
997
  }, {
997
998
  url: string;
998
- quote: string;
999
999
  source: "site" | "places" | "news";
1000
+ quote: string;
1000
1001
  }>;
1001
1002
  export type Evidence = z.infer<typeof evidenceSchema>;
1002
1003
  export declare const insightsSchema: z.ZodObject<{
@@ -1011,12 +1012,12 @@ export declare const insightsSchema: z.ZodObject<{
1011
1012
  source: z.ZodEnum<["site", "places", "news"]>;
1012
1013
  }, "strip", z.ZodTypeAny, {
1013
1014
  url: string;
1014
- quote: string;
1015
1015
  source: "site" | "places" | "news";
1016
+ quote: string;
1016
1017
  }, {
1017
1018
  url: string;
1018
- quote: string;
1019
1019
  source: "site" | "places" | "news";
1020
+ quote: string;
1020
1021
  }>, "many">;
1021
1022
  notes: z.ZodOptional<z.ZodString>;
1022
1023
  goToMarket: z.ZodOptional<z.ZodObject<{
@@ -1067,29 +1068,30 @@ export declare const insightsSchema: z.ZodObject<{
1067
1068
  relativeTimeDescription: z.ZodString;
1068
1069
  }, "strip", z.ZodTypeAny, {
1069
1070
  rating: number;
1070
- authorName: string;
1071
1071
  text: string;
1072
+ authorName: string;
1072
1073
  time: number;
1073
1074
  relativeTimeDescription: string;
1074
1075
  }, {
1075
1076
  rating: number;
1076
- authorName: string;
1077
1077
  text: string;
1078
+ authorName: string;
1078
1079
  time: number;
1079
1080
  relativeTimeDescription: string;
1080
1081
  }>, "many">>;
1081
1082
  }, "strip", z.ZodTypeAny, {
1082
1083
  strengths: string[];
1083
- weaknesses: string[];
1084
1084
  gaps: string[];
1085
+ weaknesses: string[];
1085
1086
  opportunities: string[];
1086
1087
  notableOffers: string[];
1087
1088
  evidence: {
1088
1089
  url: string;
1089
- quote: string;
1090
1090
  source: "site" | "places" | "news";
1091
+ quote: string;
1091
1092
  }[];
1092
1093
  notes?: string | undefined;
1094
+ rating?: number | undefined;
1093
1095
  goToMarket?: {
1094
1096
  strategy: string;
1095
1097
  channels: string[];
@@ -1106,27 +1108,27 @@ export declare const insightsSchema: z.ZodObject<{
1106
1108
  } | undefined;
1107
1109
  techSignals?: string[] | undefined;
1108
1110
  channelsObserved?: string[] | undefined;
1109
- rating?: number | undefined;
1110
1111
  userRatingCount?: number | undefined;
1111
1112
  reviews?: {
1112
1113
  rating: number;
1113
- authorName: string;
1114
1114
  text: string;
1115
+ authorName: string;
1115
1116
  time: number;
1116
1117
  relativeTimeDescription: string;
1117
1118
  }[] | undefined;
1118
1119
  }, {
1119
1120
  strengths: string[];
1120
- weaknesses: string[];
1121
1121
  gaps: string[];
1122
+ weaknesses: string[];
1122
1123
  opportunities: string[];
1123
1124
  notableOffers: string[];
1124
1125
  evidence: {
1125
1126
  url: string;
1126
- quote: string;
1127
1127
  source: "site" | "places" | "news";
1128
+ quote: string;
1128
1129
  }[];
1129
1130
  notes?: string | undefined;
1131
+ rating?: number | undefined;
1130
1132
  goToMarket?: {
1131
1133
  strategy: string;
1132
1134
  channels: string[];
@@ -1143,12 +1145,11 @@ export declare const insightsSchema: z.ZodObject<{
1143
1145
  } | undefined;
1144
1146
  techSignals?: string[] | undefined;
1145
1147
  channelsObserved?: string[] | undefined;
1146
- rating?: number | undefined;
1147
1148
  userRatingCount?: number | undefined;
1148
1149
  reviews?: {
1149
1150
  rating: number;
1150
- authorName: string;
1151
1151
  text: string;
1152
+ authorName: string;
1152
1153
  time: number;
1153
1154
  relativeTimeDescription: string;
1154
1155
  }[] | undefined;
@@ -1169,26 +1170,26 @@ export declare const chainLocationSchema: z.ZodObject<{
1169
1170
  }, "strip", z.ZodTypeAny, {
1170
1171
  name: string;
1171
1172
  placeId: string;
1172
- rating?: number | undefined;
1173
1173
  address?: string | undefined;
1174
1174
  city?: string | undefined;
1175
1175
  state?: string | undefined;
1176
1176
  lat?: number | undefined;
1177
1177
  lng?: number | undefined;
1178
- distance_km?: number | undefined;
1178
+ rating?: number | undefined;
1179
1179
  reviewCount?: number | undefined;
1180
+ distance_km?: number | undefined;
1180
1181
  isPrimary?: boolean | undefined;
1181
1182
  }, {
1182
1183
  name: string;
1183
1184
  placeId: string;
1184
- rating?: number | undefined;
1185
1185
  address?: string | undefined;
1186
1186
  city?: string | undefined;
1187
1187
  state?: string | undefined;
1188
1188
  lat?: number | undefined;
1189
1189
  lng?: number | undefined;
1190
- distance_km?: number | undefined;
1190
+ rating?: number | undefined;
1191
1191
  reviewCount?: number | undefined;
1192
+ distance_km?: number | undefined;
1192
1193
  isPrimary?: boolean | undefined;
1193
1194
  }>;
1194
1195
  export type ChainLocation = z.infer<typeof chainLocationSchema>;
@@ -1218,26 +1219,26 @@ export declare const competitorSchema: z.ZodObject<{
1218
1219
  }, "strip", z.ZodTypeAny, {
1219
1220
  name: string;
1220
1221
  placeId: string;
1221
- rating?: number | undefined;
1222
1222
  address?: string | undefined;
1223
1223
  city?: string | undefined;
1224
1224
  state?: string | undefined;
1225
1225
  lat?: number | undefined;
1226
1226
  lng?: number | undefined;
1227
- distance_km?: number | undefined;
1227
+ rating?: number | undefined;
1228
1228
  reviewCount?: number | undefined;
1229
+ distance_km?: number | undefined;
1229
1230
  isPrimary?: boolean | undefined;
1230
1231
  }, {
1231
1232
  name: string;
1232
1233
  placeId: string;
1233
- rating?: number | undefined;
1234
1234
  address?: string | undefined;
1235
1235
  city?: string | undefined;
1236
1236
  state?: string | undefined;
1237
1237
  lat?: number | undefined;
1238
1238
  lng?: number | undefined;
1239
- distance_km?: number | undefined;
1239
+ rating?: number | undefined;
1240
1240
  reviewCount?: number | undefined;
1241
+ distance_km?: number | undefined;
1241
1242
  isPrimary?: boolean | undefined;
1242
1243
  }>, "many">>;
1243
1244
  locationCount: z.ZodOptional<z.ZodNumber>;
@@ -1265,12 +1266,12 @@ export declare const competitorSchema: z.ZodObject<{
1265
1266
  source: z.ZodEnum<["site", "places", "news"]>;
1266
1267
  }, "strip", z.ZodTypeAny, {
1267
1268
  url: string;
1268
- quote: string;
1269
1269
  source: "site" | "places" | "news";
1270
+ quote: string;
1270
1271
  }, {
1271
1272
  url: string;
1272
- quote: string;
1273
1273
  source: "site" | "places" | "news";
1274
+ quote: string;
1274
1275
  }>, "many">;
1275
1276
  notes: z.ZodOptional<z.ZodString>;
1276
1277
  goToMarket: z.ZodOptional<z.ZodObject<{
@@ -1321,29 +1322,30 @@ export declare const competitorSchema: z.ZodObject<{
1321
1322
  relativeTimeDescription: z.ZodString;
1322
1323
  }, "strip", z.ZodTypeAny, {
1323
1324
  rating: number;
1324
- authorName: string;
1325
1325
  text: string;
1326
+ authorName: string;
1326
1327
  time: number;
1327
1328
  relativeTimeDescription: string;
1328
1329
  }, {
1329
1330
  rating: number;
1330
- authorName: string;
1331
1331
  text: string;
1332
+ authorName: string;
1332
1333
  time: number;
1333
1334
  relativeTimeDescription: string;
1334
1335
  }>, "many">>;
1335
1336
  }, "strip", z.ZodTypeAny, {
1336
1337
  strengths: string[];
1337
- weaknesses: string[];
1338
1338
  gaps: string[];
1339
+ weaknesses: string[];
1339
1340
  opportunities: string[];
1340
1341
  notableOffers: string[];
1341
1342
  evidence: {
1342
1343
  url: string;
1343
- quote: string;
1344
1344
  source: "site" | "places" | "news";
1345
+ quote: string;
1345
1346
  }[];
1346
1347
  notes?: string | undefined;
1348
+ rating?: number | undefined;
1347
1349
  goToMarket?: {
1348
1350
  strategy: string;
1349
1351
  channels: string[];
@@ -1360,27 +1362,27 @@ export declare const competitorSchema: z.ZodObject<{
1360
1362
  } | undefined;
1361
1363
  techSignals?: string[] | undefined;
1362
1364
  channelsObserved?: string[] | undefined;
1363
- rating?: number | undefined;
1364
1365
  userRatingCount?: number | undefined;
1365
1366
  reviews?: {
1366
1367
  rating: number;
1367
- authorName: string;
1368
1368
  text: string;
1369
+ authorName: string;
1369
1370
  time: number;
1370
1371
  relativeTimeDescription: string;
1371
1372
  }[] | undefined;
1372
1373
  }, {
1373
1374
  strengths: string[];
1374
- weaknesses: string[];
1375
1375
  gaps: string[];
1376
+ weaknesses: string[];
1376
1377
  opportunities: string[];
1377
1378
  notableOffers: string[];
1378
1379
  evidence: {
1379
1380
  url: string;
1380
- quote: string;
1381
1381
  source: "site" | "places" | "news";
1382
+ quote: string;
1382
1383
  }[];
1383
1384
  notes?: string | undefined;
1385
+ rating?: number | undefined;
1384
1386
  goToMarket?: {
1385
1387
  strategy: string;
1386
1388
  channels: string[];
@@ -1397,12 +1399,11 @@ export declare const competitorSchema: z.ZodObject<{
1397
1399
  } | undefined;
1398
1400
  techSignals?: string[] | undefined;
1399
1401
  channelsObserved?: string[] | undefined;
1400
- rating?: number | undefined;
1401
1402
  userRatingCount?: number | undefined;
1402
1403
  reviews?: {
1403
1404
  rating: number;
1404
- authorName: string;
1405
1405
  text: string;
1406
+ authorName: string;
1406
1407
  time: number;
1407
1408
  relativeTimeDescription: string;
1408
1409
  }[] | undefined;
@@ -1419,14 +1420,14 @@ export declare const competitorSchema: z.ZodObject<{
1419
1420
  relativeTimeDescription: z.ZodString;
1420
1421
  }, "strip", z.ZodTypeAny, {
1421
1422
  rating: number;
1422
- authorName: string;
1423
1423
  text: string;
1424
+ authorName: string;
1424
1425
  time: number;
1425
1426
  relativeTimeDescription: string;
1426
1427
  }, {
1427
1428
  rating: number;
1428
- authorName: string;
1429
1429
  text: string;
1430
+ authorName: string;
1430
1431
  time: number;
1431
1432
  relativeTimeDescription: string;
1432
1433
  }>, "many">>;
@@ -1531,8 +1532,11 @@ export declare const competitorSchema: z.ZodObject<{
1531
1532
  source: "system-suggested" | "user-added";
1532
1533
  mediaChannels: string[];
1533
1534
  selectionMode: "single" | "chain";
1535
+ placeId?: string | undefined;
1534
1536
  type?: "national" | "regional" | "local" | "online-only" | undefined;
1537
+ geo?: string | undefined;
1535
1538
  url?: string | undefined;
1539
+ rating?: number | undefined;
1536
1540
  weaknesses?: string[] | undefined;
1537
1541
  evidence?: {
1538
1542
  source_snippet: string;
@@ -1540,16 +1544,14 @@ export declare const competitorSchema: z.ZodObject<{
1540
1544
  } | undefined;
1541
1545
  techSignals?: string[] | undefined;
1542
1546
  channelsObserved?: string[] | undefined;
1543
- rating?: number | undefined;
1544
1547
  userRatingCount?: number | undefined;
1545
1548
  reviews?: {
1546
1549
  rating: number;
1547
- authorName: string;
1548
1550
  text: string;
1551
+ authorName: string;
1549
1552
  time: number;
1550
1553
  relativeTimeDescription: string;
1551
1554
  }[] | undefined;
1552
- placeId?: string | undefined;
1553
1555
  overlapScore?: number | undefined;
1554
1556
  insights?: string | undefined;
1555
1557
  isChain?: boolean | undefined;
@@ -1559,14 +1561,14 @@ export declare const competitorSchema: z.ZodObject<{
1559
1561
  locations?: {
1560
1562
  name: string;
1561
1563
  placeId: string;
1562
- rating?: number | undefined;
1563
1564
  address?: string | undefined;
1564
1565
  city?: string | undefined;
1565
1566
  state?: string | undefined;
1566
1567
  lat?: number | undefined;
1567
1568
  lng?: number | undefined;
1568
- distance_km?: number | undefined;
1569
+ rating?: number | undefined;
1569
1570
  reviewCount?: number | undefined;
1571
+ distance_km?: number | undefined;
1570
1572
  isPrimary?: boolean | undefined;
1571
1573
  }[] | undefined;
1572
1574
  locationCount?: number | undefined;
@@ -1577,16 +1579,17 @@ export declare const competitorSchema: z.ZodObject<{
1577
1579
  } | undefined;
1578
1580
  enrichedInsights?: {
1579
1581
  strengths: string[];
1580
- weaknesses: string[];
1581
1582
  gaps: string[];
1583
+ weaknesses: string[];
1582
1584
  opportunities: string[];
1583
1585
  notableOffers: string[];
1584
1586
  evidence: {
1585
1587
  url: string;
1586
- quote: string;
1587
1588
  source: "site" | "places" | "news";
1589
+ quote: string;
1588
1590
  }[];
1589
1591
  notes?: string | undefined;
1592
+ rating?: number | undefined;
1590
1593
  goToMarket?: {
1591
1594
  strategy: string;
1592
1595
  channels: string[];
@@ -1603,12 +1606,11 @@ export declare const competitorSchema: z.ZodObject<{
1603
1606
  } | undefined;
1604
1607
  techSignals?: string[] | undefined;
1605
1608
  channelsObserved?: string[] | undefined;
1606
- rating?: number | undefined;
1607
1609
  userRatingCount?: number | undefined;
1608
1610
  reviews?: {
1609
1611
  rating: number;
1610
- authorName: string;
1611
1612
  text: string;
1613
+ authorName: string;
1612
1614
  time: number;
1613
1615
  relativeTimeDescription: string;
1614
1616
  }[] | undefined;
@@ -1634,7 +1636,7 @@ export declare const competitorSchema: z.ZodObject<{
1634
1636
  addedAt?: Date | undefined;
1635
1637
  removedAt?: Date | null | undefined;
1636
1638
  wasEnriched?: boolean | undefined;
1637
- sourceUsed?: "unknown" | "google" | "geoapify" | "gpt" | "manual" | undefined;
1639
+ sourceUsed?: "google" | "unknown" | "geoapify" | "gpt" | "manual" | undefined;
1638
1640
  skipReason?: string | undefined;
1639
1641
  hasLocation?: boolean | undefined;
1640
1642
  geoValidationStatus?: "matched" | "mismatch" | "not_enriched" | undefined;
@@ -1642,7 +1644,6 @@ export declare const competitorSchema: z.ZodObject<{
1642
1644
  lat: number;
1643
1645
  lng: number;
1644
1646
  } | undefined;
1645
- geo?: string | undefined;
1646
1647
  forceSkipped?: boolean | undefined;
1647
1648
  location?: {
1648
1649
  city: string;
@@ -1653,8 +1654,11 @@ export declare const competitorSchema: z.ZodObject<{
1653
1654
  }, {
1654
1655
  name: string;
1655
1656
  mediaChannels: string[];
1657
+ placeId?: string | undefined;
1656
1658
  type?: "national" | "regional" | "local" | "online-only" | undefined;
1659
+ geo?: string | undefined;
1657
1660
  url?: string | undefined;
1661
+ rating?: number | undefined;
1658
1662
  source?: "system-suggested" | "user-added" | undefined;
1659
1663
  weaknesses?: string[] | undefined;
1660
1664
  evidence?: {
@@ -1663,16 +1667,14 @@ export declare const competitorSchema: z.ZodObject<{
1663
1667
  } | undefined;
1664
1668
  techSignals?: string[] | undefined;
1665
1669
  channelsObserved?: string[] | undefined;
1666
- rating?: number | undefined;
1667
1670
  userRatingCount?: number | undefined;
1668
1671
  reviews?: {
1669
1672
  rating: number;
1670
- authorName: string;
1671
1673
  text: string;
1674
+ authorName: string;
1672
1675
  time: number;
1673
1676
  relativeTimeDescription: string;
1674
1677
  }[] | undefined;
1675
- placeId?: string | undefined;
1676
1678
  overlapScore?: number | undefined;
1677
1679
  insights?: string | undefined;
1678
1680
  isChain?: boolean | undefined;
@@ -1682,14 +1684,14 @@ export declare const competitorSchema: z.ZodObject<{
1682
1684
  locations?: {
1683
1685
  name: string;
1684
1686
  placeId: string;
1685
- rating?: number | undefined;
1686
1687
  address?: string | undefined;
1687
1688
  city?: string | undefined;
1688
1689
  state?: string | undefined;
1689
1690
  lat?: number | undefined;
1690
1691
  lng?: number | undefined;
1691
- distance_km?: number | undefined;
1692
+ rating?: number | undefined;
1692
1693
  reviewCount?: number | undefined;
1694
+ distance_km?: number | undefined;
1693
1695
  isPrimary?: boolean | undefined;
1694
1696
  }[] | undefined;
1695
1697
  locationCount?: number | undefined;
@@ -1701,16 +1703,17 @@ export declare const competitorSchema: z.ZodObject<{
1701
1703
  } | undefined;
1702
1704
  enrichedInsights?: {
1703
1705
  strengths: string[];
1704
- weaknesses: string[];
1705
1706
  gaps: string[];
1707
+ weaknesses: string[];
1706
1708
  opportunities: string[];
1707
1709
  notableOffers: string[];
1708
1710
  evidence: {
1709
1711
  url: string;
1710
- quote: string;
1711
1712
  source: "site" | "places" | "news";
1713
+ quote: string;
1712
1714
  }[];
1713
1715
  notes?: string | undefined;
1716
+ rating?: number | undefined;
1714
1717
  goToMarket?: {
1715
1718
  strategy: string;
1716
1719
  channels: string[];
@@ -1727,12 +1730,11 @@ export declare const competitorSchema: z.ZodObject<{
1727
1730
  } | undefined;
1728
1731
  techSignals?: string[] | undefined;
1729
1732
  channelsObserved?: string[] | undefined;
1730
- rating?: number | undefined;
1731
1733
  userRatingCount?: number | undefined;
1732
1734
  reviews?: {
1733
1735
  rating: number;
1734
- authorName: string;
1735
1736
  text: string;
1737
+ authorName: string;
1736
1738
  time: number;
1737
1739
  relativeTimeDescription: string;
1738
1740
  }[] | undefined;
@@ -1758,7 +1760,7 @@ export declare const competitorSchema: z.ZodObject<{
1758
1760
  addedAt?: Date | undefined;
1759
1761
  removedAt?: Date | null | undefined;
1760
1762
  wasEnriched?: boolean | undefined;
1761
- sourceUsed?: "unknown" | "google" | "geoapify" | "gpt" | "manual" | undefined;
1763
+ sourceUsed?: "google" | "unknown" | "geoapify" | "gpt" | "manual" | undefined;
1762
1764
  skipReason?: string | undefined;
1763
1765
  hasLocation?: boolean | undefined;
1764
1766
  geoValidationStatus?: "matched" | "mismatch" | "not_enriched" | undefined;
@@ -1766,7 +1768,6 @@ export declare const competitorSchema: z.ZodObject<{
1766
1768
  lat: number;
1767
1769
  lng: number;
1768
1770
  } | undefined;
1769
- geo?: string | undefined;
1770
1771
  forceSkipped?: boolean | undefined;
1771
1772
  location?: {
1772
1773
  city: string;
@@ -1807,12 +1808,12 @@ export declare const extractionResultSchema: z.ZodObject<{
1807
1808
  }, "strip", z.ZodTypeAny, {
1808
1809
  techSignals: string[];
1809
1810
  channelsObserved: string[];
1810
- websiteQuality: "Basic" | "Professional" | "Advanced" | "Enterprise";
1811
+ websiteQuality: "Advanced" | "Basic" | "Professional" | "Enterprise";
1811
1812
  mobileOptimized: boolean;
1812
1813
  }, {
1813
1814
  techSignals: string[];
1814
1815
  channelsObserved: string[];
1815
- websiteQuality: "Basic" | "Professional" | "Advanced" | "Enterprise";
1816
+ websiteQuality: "Advanced" | "Basic" | "Professional" | "Enterprise";
1816
1817
  mobileOptimized: boolean;
1817
1818
  }>;
1818
1819
  strengths: z.ZodArray<z.ZodString, "many">;
@@ -1828,7 +1829,7 @@ export declare const extractionResultSchema: z.ZodObject<{
1828
1829
  digitalPresence: {
1829
1830
  techSignals: string[];
1830
1831
  channelsObserved: string[];
1831
- websiteQuality: "Basic" | "Professional" | "Advanced" | "Enterprise";
1832
+ websiteQuality: "Advanced" | "Basic" | "Professional" | "Enterprise";
1832
1833
  mobileOptimized: boolean;
1833
1834
  };
1834
1835
  currentTactics?: string[] | undefined;
@@ -1842,7 +1843,7 @@ export declare const extractionResultSchema: z.ZodObject<{
1842
1843
  digitalPresence: {
1843
1844
  techSignals: string[];
1844
1845
  channelsObserved: string[];
1845
- websiteQuality: "Basic" | "Professional" | "Advanced" | "Enterprise";
1846
+ websiteQuality: "Advanced" | "Basic" | "Professional" | "Enterprise";
1846
1847
  mobileOptimized: boolean;
1847
1848
  };
1848
1849
  currentTactics?: string[] | undefined;
@@ -1873,26 +1874,26 @@ export declare const extractionResultSchema: z.ZodObject<{
1873
1874
  }, "strip", z.ZodTypeAny, {
1874
1875
  name: string;
1875
1876
  placeId: string;
1876
- rating?: number | undefined;
1877
1877
  address?: string | undefined;
1878
1878
  city?: string | undefined;
1879
1879
  state?: string | undefined;
1880
1880
  lat?: number | undefined;
1881
1881
  lng?: number | undefined;
1882
- distance_km?: number | undefined;
1882
+ rating?: number | undefined;
1883
1883
  reviewCount?: number | undefined;
1884
+ distance_km?: number | undefined;
1884
1885
  isPrimary?: boolean | undefined;
1885
1886
  }, {
1886
1887
  name: string;
1887
1888
  placeId: string;
1888
- rating?: number | undefined;
1889
1889
  address?: string | undefined;
1890
1890
  city?: string | undefined;
1891
1891
  state?: string | undefined;
1892
1892
  lat?: number | undefined;
1893
1893
  lng?: number | undefined;
1894
- distance_km?: number | undefined;
1894
+ rating?: number | undefined;
1895
1895
  reviewCount?: number | undefined;
1896
+ distance_km?: number | undefined;
1896
1897
  isPrimary?: boolean | undefined;
1897
1898
  }>, "many">>;
1898
1899
  locationCount: z.ZodOptional<z.ZodNumber>;
@@ -1920,12 +1921,12 @@ export declare const extractionResultSchema: z.ZodObject<{
1920
1921
  source: z.ZodEnum<["site", "places", "news"]>;
1921
1922
  }, "strip", z.ZodTypeAny, {
1922
1923
  url: string;
1923
- quote: string;
1924
1924
  source: "site" | "places" | "news";
1925
+ quote: string;
1925
1926
  }, {
1926
1927
  url: string;
1927
- quote: string;
1928
1928
  source: "site" | "places" | "news";
1929
+ quote: string;
1929
1930
  }>, "many">;
1930
1931
  notes: z.ZodOptional<z.ZodString>;
1931
1932
  goToMarket: z.ZodOptional<z.ZodObject<{
@@ -1976,29 +1977,30 @@ export declare const extractionResultSchema: z.ZodObject<{
1976
1977
  relativeTimeDescription: z.ZodString;
1977
1978
  }, "strip", z.ZodTypeAny, {
1978
1979
  rating: number;
1979
- authorName: string;
1980
1980
  text: string;
1981
+ authorName: string;
1981
1982
  time: number;
1982
1983
  relativeTimeDescription: string;
1983
1984
  }, {
1984
1985
  rating: number;
1985
- authorName: string;
1986
1986
  text: string;
1987
+ authorName: string;
1987
1988
  time: number;
1988
1989
  relativeTimeDescription: string;
1989
1990
  }>, "many">>;
1990
1991
  }, "strip", z.ZodTypeAny, {
1991
1992
  strengths: string[];
1992
- weaknesses: string[];
1993
1993
  gaps: string[];
1994
+ weaknesses: string[];
1994
1995
  opportunities: string[];
1995
1996
  notableOffers: string[];
1996
1997
  evidence: {
1997
1998
  url: string;
1998
- quote: string;
1999
1999
  source: "site" | "places" | "news";
2000
+ quote: string;
2000
2001
  }[];
2001
2002
  notes?: string | undefined;
2003
+ rating?: number | undefined;
2002
2004
  goToMarket?: {
2003
2005
  strategy: string;
2004
2006
  channels: string[];
@@ -2015,27 +2017,27 @@ export declare const extractionResultSchema: z.ZodObject<{
2015
2017
  } | undefined;
2016
2018
  techSignals?: string[] | undefined;
2017
2019
  channelsObserved?: string[] | undefined;
2018
- rating?: number | undefined;
2019
2020
  userRatingCount?: number | undefined;
2020
2021
  reviews?: {
2021
2022
  rating: number;
2022
- authorName: string;
2023
2023
  text: string;
2024
+ authorName: string;
2024
2025
  time: number;
2025
2026
  relativeTimeDescription: string;
2026
2027
  }[] | undefined;
2027
2028
  }, {
2028
2029
  strengths: string[];
2029
- weaknesses: string[];
2030
2030
  gaps: string[];
2031
+ weaknesses: string[];
2031
2032
  opportunities: string[];
2032
2033
  notableOffers: string[];
2033
2034
  evidence: {
2034
2035
  url: string;
2035
- quote: string;
2036
2036
  source: "site" | "places" | "news";
2037
+ quote: string;
2037
2038
  }[];
2038
2039
  notes?: string | undefined;
2040
+ rating?: number | undefined;
2039
2041
  goToMarket?: {
2040
2042
  strategy: string;
2041
2043
  channels: string[];
@@ -2052,12 +2054,11 @@ export declare const extractionResultSchema: z.ZodObject<{
2052
2054
  } | undefined;
2053
2055
  techSignals?: string[] | undefined;
2054
2056
  channelsObserved?: string[] | undefined;
2055
- rating?: number | undefined;
2056
2057
  userRatingCount?: number | undefined;
2057
2058
  reviews?: {
2058
2059
  rating: number;
2059
- authorName: string;
2060
2060
  text: string;
2061
+ authorName: string;
2061
2062
  time: number;
2062
2063
  relativeTimeDescription: string;
2063
2064
  }[] | undefined;
@@ -2074,14 +2075,14 @@ export declare const extractionResultSchema: z.ZodObject<{
2074
2075
  relativeTimeDescription: z.ZodString;
2075
2076
  }, "strip", z.ZodTypeAny, {
2076
2077
  rating: number;
2077
- authorName: string;
2078
2078
  text: string;
2079
+ authorName: string;
2079
2080
  time: number;
2080
2081
  relativeTimeDescription: string;
2081
2082
  }, {
2082
2083
  rating: number;
2083
- authorName: string;
2084
2084
  text: string;
2085
+ authorName: string;
2085
2086
  time: number;
2086
2087
  relativeTimeDescription: string;
2087
2088
  }>, "many">>;
@@ -2186,8 +2187,11 @@ export declare const extractionResultSchema: z.ZodObject<{
2186
2187
  source: "system-suggested" | "user-added";
2187
2188
  mediaChannels: string[];
2188
2189
  selectionMode: "single" | "chain";
2190
+ placeId?: string | undefined;
2189
2191
  type?: "national" | "regional" | "local" | "online-only" | undefined;
2192
+ geo?: string | undefined;
2190
2193
  url?: string | undefined;
2194
+ rating?: number | undefined;
2191
2195
  weaknesses?: string[] | undefined;
2192
2196
  evidence?: {
2193
2197
  source_snippet: string;
@@ -2195,16 +2199,14 @@ export declare const extractionResultSchema: z.ZodObject<{
2195
2199
  } | undefined;
2196
2200
  techSignals?: string[] | undefined;
2197
2201
  channelsObserved?: string[] | undefined;
2198
- rating?: number | undefined;
2199
2202
  userRatingCount?: number | undefined;
2200
2203
  reviews?: {
2201
2204
  rating: number;
2202
- authorName: string;
2203
2205
  text: string;
2206
+ authorName: string;
2204
2207
  time: number;
2205
2208
  relativeTimeDescription: string;
2206
2209
  }[] | undefined;
2207
- placeId?: string | undefined;
2208
2210
  overlapScore?: number | undefined;
2209
2211
  insights?: string | undefined;
2210
2212
  isChain?: boolean | undefined;
@@ -2214,14 +2216,14 @@ export declare const extractionResultSchema: z.ZodObject<{
2214
2216
  locations?: {
2215
2217
  name: string;
2216
2218
  placeId: string;
2217
- rating?: number | undefined;
2218
2219
  address?: string | undefined;
2219
2220
  city?: string | undefined;
2220
2221
  state?: string | undefined;
2221
2222
  lat?: number | undefined;
2222
2223
  lng?: number | undefined;
2223
- distance_km?: number | undefined;
2224
+ rating?: number | undefined;
2224
2225
  reviewCount?: number | undefined;
2226
+ distance_km?: number | undefined;
2225
2227
  isPrimary?: boolean | undefined;
2226
2228
  }[] | undefined;
2227
2229
  locationCount?: number | undefined;
@@ -2232,16 +2234,17 @@ export declare const extractionResultSchema: z.ZodObject<{
2232
2234
  } | undefined;
2233
2235
  enrichedInsights?: {
2234
2236
  strengths: string[];
2235
- weaknesses: string[];
2236
2237
  gaps: string[];
2238
+ weaknesses: string[];
2237
2239
  opportunities: string[];
2238
2240
  notableOffers: string[];
2239
2241
  evidence: {
2240
2242
  url: string;
2241
- quote: string;
2242
2243
  source: "site" | "places" | "news";
2244
+ quote: string;
2243
2245
  }[];
2244
2246
  notes?: string | undefined;
2247
+ rating?: number | undefined;
2245
2248
  goToMarket?: {
2246
2249
  strategy: string;
2247
2250
  channels: string[];
@@ -2258,12 +2261,11 @@ export declare const extractionResultSchema: z.ZodObject<{
2258
2261
  } | undefined;
2259
2262
  techSignals?: string[] | undefined;
2260
2263
  channelsObserved?: string[] | undefined;
2261
- rating?: number | undefined;
2262
2264
  userRatingCount?: number | undefined;
2263
2265
  reviews?: {
2264
2266
  rating: number;
2265
- authorName: string;
2266
2267
  text: string;
2268
+ authorName: string;
2267
2269
  time: number;
2268
2270
  relativeTimeDescription: string;
2269
2271
  }[] | undefined;
@@ -2289,7 +2291,7 @@ export declare const extractionResultSchema: z.ZodObject<{
2289
2291
  addedAt?: Date | undefined;
2290
2292
  removedAt?: Date | null | undefined;
2291
2293
  wasEnriched?: boolean | undefined;
2292
- sourceUsed?: "unknown" | "google" | "geoapify" | "gpt" | "manual" | undefined;
2294
+ sourceUsed?: "google" | "unknown" | "geoapify" | "gpt" | "manual" | undefined;
2293
2295
  skipReason?: string | undefined;
2294
2296
  hasLocation?: boolean | undefined;
2295
2297
  geoValidationStatus?: "matched" | "mismatch" | "not_enriched" | undefined;
@@ -2297,7 +2299,6 @@ export declare const extractionResultSchema: z.ZodObject<{
2297
2299
  lat: number;
2298
2300
  lng: number;
2299
2301
  } | undefined;
2300
- geo?: string | undefined;
2301
2302
  forceSkipped?: boolean | undefined;
2302
2303
  location?: {
2303
2304
  city: string;
@@ -2308,8 +2309,11 @@ export declare const extractionResultSchema: z.ZodObject<{
2308
2309
  }, {
2309
2310
  name: string;
2310
2311
  mediaChannels: string[];
2312
+ placeId?: string | undefined;
2311
2313
  type?: "national" | "regional" | "local" | "online-only" | undefined;
2314
+ geo?: string | undefined;
2312
2315
  url?: string | undefined;
2316
+ rating?: number | undefined;
2313
2317
  source?: "system-suggested" | "user-added" | undefined;
2314
2318
  weaknesses?: string[] | undefined;
2315
2319
  evidence?: {
@@ -2318,16 +2322,14 @@ export declare const extractionResultSchema: z.ZodObject<{
2318
2322
  } | undefined;
2319
2323
  techSignals?: string[] | undefined;
2320
2324
  channelsObserved?: string[] | undefined;
2321
- rating?: number | undefined;
2322
2325
  userRatingCount?: number | undefined;
2323
2326
  reviews?: {
2324
2327
  rating: number;
2325
- authorName: string;
2326
2328
  text: string;
2329
+ authorName: string;
2327
2330
  time: number;
2328
2331
  relativeTimeDescription: string;
2329
2332
  }[] | undefined;
2330
- placeId?: string | undefined;
2331
2333
  overlapScore?: number | undefined;
2332
2334
  insights?: string | undefined;
2333
2335
  isChain?: boolean | undefined;
@@ -2337,14 +2339,14 @@ export declare const extractionResultSchema: z.ZodObject<{
2337
2339
  locations?: {
2338
2340
  name: string;
2339
2341
  placeId: string;
2340
- rating?: number | undefined;
2341
2342
  address?: string | undefined;
2342
2343
  city?: string | undefined;
2343
2344
  state?: string | undefined;
2344
2345
  lat?: number | undefined;
2345
2346
  lng?: number | undefined;
2346
- distance_km?: number | undefined;
2347
+ rating?: number | undefined;
2347
2348
  reviewCount?: number | undefined;
2349
+ distance_km?: number | undefined;
2348
2350
  isPrimary?: boolean | undefined;
2349
2351
  }[] | undefined;
2350
2352
  locationCount?: number | undefined;
@@ -2356,16 +2358,17 @@ export declare const extractionResultSchema: z.ZodObject<{
2356
2358
  } | undefined;
2357
2359
  enrichedInsights?: {
2358
2360
  strengths: string[];
2359
- weaknesses: string[];
2360
2361
  gaps: string[];
2362
+ weaknesses: string[];
2361
2363
  opportunities: string[];
2362
2364
  notableOffers: string[];
2363
2365
  evidence: {
2364
2366
  url: string;
2365
- quote: string;
2366
2367
  source: "site" | "places" | "news";
2368
+ quote: string;
2367
2369
  }[];
2368
2370
  notes?: string | undefined;
2371
+ rating?: number | undefined;
2369
2372
  goToMarket?: {
2370
2373
  strategy: string;
2371
2374
  channels: string[];
@@ -2382,12 +2385,11 @@ export declare const extractionResultSchema: z.ZodObject<{
2382
2385
  } | undefined;
2383
2386
  techSignals?: string[] | undefined;
2384
2387
  channelsObserved?: string[] | undefined;
2385
- rating?: number | undefined;
2386
2388
  userRatingCount?: number | undefined;
2387
2389
  reviews?: {
2388
2390
  rating: number;
2389
- authorName: string;
2390
2391
  text: string;
2392
+ authorName: string;
2391
2393
  time: number;
2392
2394
  relativeTimeDescription: string;
2393
2395
  }[] | undefined;
@@ -2413,7 +2415,7 @@ export declare const extractionResultSchema: z.ZodObject<{
2413
2415
  addedAt?: Date | undefined;
2414
2416
  removedAt?: Date | null | undefined;
2415
2417
  wasEnriched?: boolean | undefined;
2416
- sourceUsed?: "unknown" | "google" | "geoapify" | "gpt" | "manual" | undefined;
2418
+ sourceUsed?: "google" | "unknown" | "geoapify" | "gpt" | "manual" | undefined;
2417
2419
  skipReason?: string | undefined;
2418
2420
  hasLocation?: boolean | undefined;
2419
2421
  geoValidationStatus?: "matched" | "mismatch" | "not_enriched" | undefined;
@@ -2421,7 +2423,6 @@ export declare const extractionResultSchema: z.ZodObject<{
2421
2423
  lat: number;
2422
2424
  lng: number;
2423
2425
  } | undefined;
2424
- geo?: string | undefined;
2425
2426
  forceSkipped?: boolean | undefined;
2426
2427
  location?: {
2427
2428
  city: string;
@@ -2454,21 +2455,24 @@ export declare const extractionResultSchema: z.ZodObject<{
2454
2455
  }>>;
2455
2456
  }, "strip", z.ZodTypeAny, {
2456
2457
  brand: string;
2458
+ geo: string;
2459
+ category: string;
2457
2460
  confidence: {
2458
2461
  brand: number;
2459
2462
  geo: number;
2460
2463
  category: number;
2461
2464
  };
2462
- geo: string;
2463
- category: string;
2464
2465
  signals: string[];
2465
2466
  competitors: {
2466
2467
  name: string;
2467
2468
  source: "system-suggested" | "user-added";
2468
2469
  mediaChannels: string[];
2469
2470
  selectionMode: "single" | "chain";
2471
+ placeId?: string | undefined;
2470
2472
  type?: "national" | "regional" | "local" | "online-only" | undefined;
2473
+ geo?: string | undefined;
2471
2474
  url?: string | undefined;
2475
+ rating?: number | undefined;
2472
2476
  weaknesses?: string[] | undefined;
2473
2477
  evidence?: {
2474
2478
  source_snippet: string;
@@ -2476,16 +2480,14 @@ export declare const extractionResultSchema: z.ZodObject<{
2476
2480
  } | undefined;
2477
2481
  techSignals?: string[] | undefined;
2478
2482
  channelsObserved?: string[] | undefined;
2479
- rating?: number | undefined;
2480
2483
  userRatingCount?: number | undefined;
2481
2484
  reviews?: {
2482
2485
  rating: number;
2483
- authorName: string;
2484
2486
  text: string;
2487
+ authorName: string;
2485
2488
  time: number;
2486
2489
  relativeTimeDescription: string;
2487
2490
  }[] | undefined;
2488
- placeId?: string | undefined;
2489
2491
  overlapScore?: number | undefined;
2490
2492
  insights?: string | undefined;
2491
2493
  isChain?: boolean | undefined;
@@ -2495,14 +2497,14 @@ export declare const extractionResultSchema: z.ZodObject<{
2495
2497
  locations?: {
2496
2498
  name: string;
2497
2499
  placeId: string;
2498
- rating?: number | undefined;
2499
2500
  address?: string | undefined;
2500
2501
  city?: string | undefined;
2501
2502
  state?: string | undefined;
2502
2503
  lat?: number | undefined;
2503
2504
  lng?: number | undefined;
2504
- distance_km?: number | undefined;
2505
+ rating?: number | undefined;
2505
2506
  reviewCount?: number | undefined;
2507
+ distance_km?: number | undefined;
2506
2508
  isPrimary?: boolean | undefined;
2507
2509
  }[] | undefined;
2508
2510
  locationCount?: number | undefined;
@@ -2513,16 +2515,17 @@ export declare const extractionResultSchema: z.ZodObject<{
2513
2515
  } | undefined;
2514
2516
  enrichedInsights?: {
2515
2517
  strengths: string[];
2516
- weaknesses: string[];
2517
2518
  gaps: string[];
2519
+ weaknesses: string[];
2518
2520
  opportunities: string[];
2519
2521
  notableOffers: string[];
2520
2522
  evidence: {
2521
2523
  url: string;
2522
- quote: string;
2523
2524
  source: "site" | "places" | "news";
2525
+ quote: string;
2524
2526
  }[];
2525
2527
  notes?: string | undefined;
2528
+ rating?: number | undefined;
2526
2529
  goToMarket?: {
2527
2530
  strategy: string;
2528
2531
  channels: string[];
@@ -2539,12 +2542,11 @@ export declare const extractionResultSchema: z.ZodObject<{
2539
2542
  } | undefined;
2540
2543
  techSignals?: string[] | undefined;
2541
2544
  channelsObserved?: string[] | undefined;
2542
- rating?: number | undefined;
2543
2545
  userRatingCount?: number | undefined;
2544
2546
  reviews?: {
2545
2547
  rating: number;
2546
- authorName: string;
2547
2548
  text: string;
2549
+ authorName: string;
2548
2550
  time: number;
2549
2551
  relativeTimeDescription: string;
2550
2552
  }[] | undefined;
@@ -2570,7 +2572,7 @@ export declare const extractionResultSchema: z.ZodObject<{
2570
2572
  addedAt?: Date | undefined;
2571
2573
  removedAt?: Date | null | undefined;
2572
2574
  wasEnriched?: boolean | undefined;
2573
- sourceUsed?: "unknown" | "google" | "geoapify" | "gpt" | "manual" | undefined;
2575
+ sourceUsed?: "google" | "unknown" | "geoapify" | "gpt" | "manual" | undefined;
2574
2576
  skipReason?: string | undefined;
2575
2577
  hasLocation?: boolean | undefined;
2576
2578
  geoValidationStatus?: "matched" | "mismatch" | "not_enriched" | undefined;
@@ -2578,7 +2580,6 @@ export declare const extractionResultSchema: z.ZodObject<{
2578
2580
  lat: number;
2579
2581
  lng: number;
2580
2582
  } | undefined;
2581
- geo?: string | undefined;
2582
2583
  forceSkipped?: boolean | undefined;
2583
2584
  location?: {
2584
2585
  city: string;
@@ -2598,7 +2599,7 @@ export declare const extractionResultSchema: z.ZodObject<{
2598
2599
  digitalPresence: {
2599
2600
  techSignals: string[];
2600
2601
  channelsObserved: string[];
2601
- websiteQuality: "Basic" | "Professional" | "Advanced" | "Enterprise";
2602
+ websiteQuality: "Advanced" | "Basic" | "Professional" | "Enterprise";
2602
2603
  mobileOptimized: boolean;
2603
2604
  };
2604
2605
  currentTactics?: string[] | undefined;
@@ -2616,19 +2617,22 @@ export declare const extractionResultSchema: z.ZodObject<{
2616
2617
  } | undefined;
2617
2618
  }, {
2618
2619
  brand: string;
2620
+ geo: string;
2621
+ category: string;
2619
2622
  confidence: {
2620
2623
  brand: number;
2621
2624
  geo: number;
2622
2625
  category: number;
2623
2626
  };
2624
- geo: string;
2625
- category: string;
2626
2627
  signals: string[];
2627
2628
  competitors: {
2628
2629
  name: string;
2629
2630
  mediaChannels: string[];
2631
+ placeId?: string | undefined;
2630
2632
  type?: "national" | "regional" | "local" | "online-only" | undefined;
2633
+ geo?: string | undefined;
2631
2634
  url?: string | undefined;
2635
+ rating?: number | undefined;
2632
2636
  source?: "system-suggested" | "user-added" | undefined;
2633
2637
  weaknesses?: string[] | undefined;
2634
2638
  evidence?: {
@@ -2637,16 +2641,14 @@ export declare const extractionResultSchema: z.ZodObject<{
2637
2641
  } | undefined;
2638
2642
  techSignals?: string[] | undefined;
2639
2643
  channelsObserved?: string[] | undefined;
2640
- rating?: number | undefined;
2641
2644
  userRatingCount?: number | undefined;
2642
2645
  reviews?: {
2643
2646
  rating: number;
2644
- authorName: string;
2645
2647
  text: string;
2648
+ authorName: string;
2646
2649
  time: number;
2647
2650
  relativeTimeDescription: string;
2648
2651
  }[] | undefined;
2649
- placeId?: string | undefined;
2650
2652
  overlapScore?: number | undefined;
2651
2653
  insights?: string | undefined;
2652
2654
  isChain?: boolean | undefined;
@@ -2656,14 +2658,14 @@ export declare const extractionResultSchema: z.ZodObject<{
2656
2658
  locations?: {
2657
2659
  name: string;
2658
2660
  placeId: string;
2659
- rating?: number | undefined;
2660
2661
  address?: string | undefined;
2661
2662
  city?: string | undefined;
2662
2663
  state?: string | undefined;
2663
2664
  lat?: number | undefined;
2664
2665
  lng?: number | undefined;
2665
- distance_km?: number | undefined;
2666
+ rating?: number | undefined;
2666
2667
  reviewCount?: number | undefined;
2668
+ distance_km?: number | undefined;
2667
2669
  isPrimary?: boolean | undefined;
2668
2670
  }[] | undefined;
2669
2671
  locationCount?: number | undefined;
@@ -2675,16 +2677,17 @@ export declare const extractionResultSchema: z.ZodObject<{
2675
2677
  } | undefined;
2676
2678
  enrichedInsights?: {
2677
2679
  strengths: string[];
2678
- weaknesses: string[];
2679
2680
  gaps: string[];
2681
+ weaknesses: string[];
2680
2682
  opportunities: string[];
2681
2683
  notableOffers: string[];
2682
2684
  evidence: {
2683
2685
  url: string;
2684
- quote: string;
2685
2686
  source: "site" | "places" | "news";
2687
+ quote: string;
2686
2688
  }[];
2687
2689
  notes?: string | undefined;
2690
+ rating?: number | undefined;
2688
2691
  goToMarket?: {
2689
2692
  strategy: string;
2690
2693
  channels: string[];
@@ -2701,12 +2704,11 @@ export declare const extractionResultSchema: z.ZodObject<{
2701
2704
  } | undefined;
2702
2705
  techSignals?: string[] | undefined;
2703
2706
  channelsObserved?: string[] | undefined;
2704
- rating?: number | undefined;
2705
2707
  userRatingCount?: number | undefined;
2706
2708
  reviews?: {
2707
2709
  rating: number;
2708
- authorName: string;
2709
2710
  text: string;
2711
+ authorName: string;
2710
2712
  time: number;
2711
2713
  relativeTimeDescription: string;
2712
2714
  }[] | undefined;
@@ -2732,7 +2734,7 @@ export declare const extractionResultSchema: z.ZodObject<{
2732
2734
  addedAt?: Date | undefined;
2733
2735
  removedAt?: Date | null | undefined;
2734
2736
  wasEnriched?: boolean | undefined;
2735
- sourceUsed?: "unknown" | "google" | "geoapify" | "gpt" | "manual" | undefined;
2737
+ sourceUsed?: "google" | "unknown" | "geoapify" | "gpt" | "manual" | undefined;
2736
2738
  skipReason?: string | undefined;
2737
2739
  hasLocation?: boolean | undefined;
2738
2740
  geoValidationStatus?: "matched" | "mismatch" | "not_enriched" | undefined;
@@ -2740,7 +2742,6 @@ export declare const extractionResultSchema: z.ZodObject<{
2740
2742
  lat: number;
2741
2743
  lng: number;
2742
2744
  } | undefined;
2743
- geo?: string | undefined;
2744
2745
  forceSkipped?: boolean | undefined;
2745
2746
  location?: {
2746
2747
  city: string;
@@ -2759,7 +2760,7 @@ export declare const extractionResultSchema: z.ZodObject<{
2759
2760
  digitalPresence: {
2760
2761
  techSignals: string[];
2761
2762
  channelsObserved: string[];
2762
- websiteQuality: "Basic" | "Professional" | "Advanced" | "Enterprise";
2763
+ websiteQuality: "Advanced" | "Basic" | "Professional" | "Enterprise";
2763
2764
  mobileOptimized: boolean;
2764
2765
  };
2765
2766
  currentTactics?: string[] | undefined;
@@ -2803,12 +2804,12 @@ export declare const mediaPlanInputSchema: z.ZodObject<{
2803
2804
  secondaryKpi: z.ZodOptional<z.ZodString>;
2804
2805
  kpiWeights: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
2805
2806
  }, "strip", z.ZodTypeAny, {
2806
- category: string;
2807
- goals: string[];
2808
2807
  budget: {
2809
2808
  min: number;
2810
2809
  max: number;
2811
2810
  };
2811
+ goals: string[];
2812
+ category: string;
2812
2813
  geo?: string | undefined;
2813
2814
  planTotalBudget?: number | undefined;
2814
2815
  planDurationMonths?: number | undefined;
@@ -2817,12 +2818,12 @@ export declare const mediaPlanInputSchema: z.ZodObject<{
2817
2818
  secondaryKpi?: string | undefined;
2818
2819
  kpiWeights?: Record<string, number> | undefined;
2819
2820
  }, {
2820
- category: string;
2821
- goals: string[];
2822
2821
  budget: {
2823
2822
  min: number;
2824
2823
  max: number;
2825
2824
  };
2825
+ goals: string[];
2826
+ category: string;
2826
2827
  geo?: string | undefined;
2827
2828
  planTotalBudget?: number | undefined;
2828
2829
  planDurationMonths?: number | undefined;
@@ -3419,25 +3420,25 @@ export declare const detectedGeoSchema: z.ZodObject<{
3419
3420
  }>>>;
3420
3421
  confidence: z.ZodOptional<z.ZodNumber>;
3421
3422
  }, "strip", z.ZodTypeAny, {
3423
+ dma?: string | null | undefined;
3422
3424
  city?: string | null | undefined;
3423
3425
  state?: string | null | undefined;
3426
+ metro?: string | null | undefined;
3424
3427
  confidence?: number | undefined;
3425
3428
  coordinates?: {
3426
3429
  lat: number;
3427
3430
  lng: number;
3428
3431
  } | null | undefined;
3429
- metro?: string | null | undefined;
3430
- dma?: string | null | undefined;
3431
3432
  }, {
3433
+ dma?: string | null | undefined;
3432
3434
  city?: string | null | undefined;
3433
3435
  state?: string | null | undefined;
3436
+ metro?: string | null | undefined;
3434
3437
  confidence?: number | undefined;
3435
3438
  coordinates?: {
3436
3439
  lat: number;
3437
3440
  lng: number;
3438
3441
  } | null | undefined;
3439
- metro?: string | null | undefined;
3440
- dma?: string | null | undefined;
3441
3442
  }>;
3442
3443
  export declare const geoAreaSchema: z.ZodObject<{
3443
3444
  name: z.ZodString;
@@ -3506,25 +3507,25 @@ export declare const analyzeAndPlanInputSchema: z.ZodObject<{
3506
3507
  }>>>;
3507
3508
  confidence: z.ZodOptional<z.ZodNumber>;
3508
3509
  }, "strip", z.ZodTypeAny, {
3510
+ dma?: string | null | undefined;
3509
3511
  city?: string | null | undefined;
3510
3512
  state?: string | null | undefined;
3513
+ metro?: string | null | undefined;
3511
3514
  confidence?: number | undefined;
3512
3515
  coordinates?: {
3513
3516
  lat: number;
3514
3517
  lng: number;
3515
3518
  } | null | undefined;
3516
- metro?: string | null | undefined;
3517
- dma?: string | null | undefined;
3518
3519
  }, {
3520
+ dma?: string | null | undefined;
3519
3521
  city?: string | null | undefined;
3520
3522
  state?: string | null | undefined;
3523
+ metro?: string | null | undefined;
3521
3524
  confidence?: number | undefined;
3522
3525
  coordinates?: {
3523
3526
  lat: number;
3524
3527
  lng: number;
3525
3528
  } | null | undefined;
3526
- metro?: string | null | undefined;
3527
- dma?: string | null | undefined;
3528
3529
  }>>;
3529
3530
  geoAreas: z.ZodOptional<z.ZodArray<z.ZodObject<{
3530
3531
  name: z.ZodString;
@@ -3567,18 +3568,18 @@ export declare const analyzeAndPlanInputSchema: z.ZodObject<{
3567
3568
  min: number;
3568
3569
  max: number;
3569
3570
  };
3570
- goals?: string[] | undefined;
3571
3571
  targetGeo?: string | undefined;
3572
+ goals?: string[] | undefined;
3572
3573
  detectedGeo?: {
3574
+ dma?: string | null | undefined;
3573
3575
  city?: string | null | undefined;
3574
3576
  state?: string | null | undefined;
3577
+ metro?: string | null | undefined;
3575
3578
  confidence?: number | undefined;
3576
3579
  coordinates?: {
3577
3580
  lat: number;
3578
3581
  lng: number;
3579
3582
  } | null | undefined;
3580
- metro?: string | null | undefined;
3581
- dma?: string | null | undefined;
3582
3583
  } | undefined;
3583
3584
  geoAreas?: {
3584
3585
  name: string;
@@ -3597,18 +3598,18 @@ export declare const analyzeAndPlanInputSchema: z.ZodObject<{
3597
3598
  min: number;
3598
3599
  max: number;
3599
3600
  };
3600
- goals?: string[] | undefined;
3601
3601
  targetGeo?: string | undefined;
3602
+ goals?: string[] | undefined;
3602
3603
  detectedGeo?: {
3604
+ dma?: string | null | undefined;
3603
3605
  city?: string | null | undefined;
3604
3606
  state?: string | null | undefined;
3607
+ metro?: string | null | undefined;
3605
3608
  confidence?: number | undefined;
3606
3609
  coordinates?: {
3607
3610
  lat: number;
3608
3611
  lng: number;
3609
3612
  } | null | undefined;
3610
- metro?: string | null | undefined;
3611
- dma?: string | null | undefined;
3612
3613
  } | undefined;
3613
3614
  geoAreas?: {
3614
3615
  name: string;
@@ -3895,12 +3896,12 @@ export declare const tieredMediaPlanSchema: z.ZodObject<{
3895
3896
  description: z.ZodString;
3896
3897
  icon: z.ZodOptional<z.ZodString>;
3897
3898
  }, "strip", z.ZodTypeAny, {
3898
- description: string;
3899
3899
  category: "optimization" | "experience" | "service" | "innovation";
3900
+ description: string;
3900
3901
  icon?: string | undefined;
3901
3902
  }, {
3902
- description: string;
3903
3903
  category: "optimization" | "experience" | "service" | "innovation";
3904
+ description: string;
3904
3905
  icon?: string | undefined;
3905
3906
  }>, "many">>>;
3906
3907
  }, "strip", z.ZodTypeAny, {
@@ -3908,8 +3909,8 @@ export declare const tieredMediaPlanSchema: z.ZodObject<{
3908
3909
  code: string;
3909
3910
  minSpend: number;
3910
3911
  benefits?: {
3911
- description: string;
3912
3912
  category: "optimization" | "experience" | "service" | "innovation";
3913
+ description: string;
3913
3914
  icon?: string | undefined;
3914
3915
  }[] | null | undefined;
3915
3916
  }, {
@@ -3917,8 +3918,8 @@ export declare const tieredMediaPlanSchema: z.ZodObject<{
3917
3918
  code: string;
3918
3919
  minSpend: number;
3919
3920
  benefits?: {
3920
- description: string;
3921
3921
  category: "optimization" | "experience" | "service" | "innovation";
3922
+ description: string;
3922
3923
  icon?: string | undefined;
3923
3924
  }[] | null | undefined;
3924
3925
  }>>>;
@@ -3947,8 +3948,8 @@ export declare const tieredMediaPlanSchema: z.ZodObject<{
3947
3948
  code: string;
3948
3949
  minSpend: number;
3949
3950
  benefits?: {
3950
- description: string;
3951
3951
  category: "optimization" | "experience" | "service" | "innovation";
3952
+ description: string;
3952
3953
  icon?: string | undefined;
3953
3954
  }[] | null | undefined;
3954
3955
  } | null | undefined;
@@ -3967,8 +3968,8 @@ export declare const tieredMediaPlanSchema: z.ZodObject<{
3967
3968
  code: string;
3968
3969
  minSpend: number;
3969
3970
  benefits?: {
3970
- description: string;
3971
3971
  category: "optimization" | "experience" | "service" | "innovation";
3972
+ description: string;
3972
3973
  icon?: string | undefined;
3973
3974
  }[] | null | undefined;
3974
3975
  } | null | undefined;
@@ -3983,9 +3984,9 @@ export declare const tieredMediaPlanSchema: z.ZodObject<{
3983
3984
  } | undefined;
3984
3985
  }>>;
3985
3986
  }, "strip", z.ZodTypeAny, {
3987
+ budget: number;
3986
3988
  tier: string;
3987
3989
  description: string;
3988
- budget: number;
3989
3990
  rationale: string;
3990
3991
  allocations: {
3991
3992
  name: string;
@@ -4061,8 +4062,8 @@ export declare const tieredMediaPlanSchema: z.ZodObject<{
4061
4062
  code: string;
4062
4063
  minSpend: number;
4063
4064
  benefits?: {
4064
- description: string;
4065
4065
  category: "optimization" | "experience" | "service" | "innovation";
4066
+ description: string;
4066
4067
  icon?: string | undefined;
4067
4068
  }[] | null | undefined;
4068
4069
  } | null | undefined;
@@ -4077,9 +4078,9 @@ export declare const tieredMediaPlanSchema: z.ZodObject<{
4077
4078
  } | undefined;
4078
4079
  } | undefined;
4079
4080
  }, {
4081
+ budget: number;
4080
4082
  tier: string;
4081
4083
  description: string;
4082
- budget: number;
4083
4084
  rationale: string;
4084
4085
  allocations: {
4085
4086
  name: string;
@@ -4155,8 +4156,8 @@ export declare const tieredMediaPlanSchema: z.ZodObject<{
4155
4156
  code: string;
4156
4157
  minSpend: number;
4157
4158
  benefits?: {
4158
- description: string;
4159
4159
  category: "optimization" | "experience" | "service" | "innovation";
4160
+ description: string;
4160
4161
  icon?: string | undefined;
4161
4162
  }[] | null | undefined;
4162
4163
  } | null | undefined;
@@ -4180,13 +4181,13 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4180
4181
  url: z.ZodString;
4181
4182
  }, "strip", z.ZodTypeAny, {
4182
4183
  brand: string;
4183
- url: string;
4184
4184
  geo: string;
4185
+ url: string;
4185
4186
  category: string;
4186
4187
  }, {
4187
4188
  brand: string;
4188
- url: string;
4189
4189
  geo: string;
4190
+ url: string;
4190
4191
  category: string;
4191
4192
  }>;
4192
4193
  competitors: z.ZodArray<z.ZodObject<{
@@ -4215,26 +4216,26 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4215
4216
  }, "strip", z.ZodTypeAny, {
4216
4217
  name: string;
4217
4218
  placeId: string;
4218
- rating?: number | undefined;
4219
4219
  address?: string | undefined;
4220
4220
  city?: string | undefined;
4221
4221
  state?: string | undefined;
4222
4222
  lat?: number | undefined;
4223
4223
  lng?: number | undefined;
4224
- distance_km?: number | undefined;
4224
+ rating?: number | undefined;
4225
4225
  reviewCount?: number | undefined;
4226
+ distance_km?: number | undefined;
4226
4227
  isPrimary?: boolean | undefined;
4227
4228
  }, {
4228
4229
  name: string;
4229
4230
  placeId: string;
4230
- rating?: number | undefined;
4231
4231
  address?: string | undefined;
4232
4232
  city?: string | undefined;
4233
4233
  state?: string | undefined;
4234
4234
  lat?: number | undefined;
4235
4235
  lng?: number | undefined;
4236
- distance_km?: number | undefined;
4236
+ rating?: number | undefined;
4237
4237
  reviewCount?: number | undefined;
4238
+ distance_km?: number | undefined;
4238
4239
  isPrimary?: boolean | undefined;
4239
4240
  }>, "many">>;
4240
4241
  locationCount: z.ZodOptional<z.ZodNumber>;
@@ -4262,12 +4263,12 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4262
4263
  source: z.ZodEnum<["site", "places", "news"]>;
4263
4264
  }, "strip", z.ZodTypeAny, {
4264
4265
  url: string;
4265
- quote: string;
4266
4266
  source: "site" | "places" | "news";
4267
+ quote: string;
4267
4268
  }, {
4268
4269
  url: string;
4269
- quote: string;
4270
4270
  source: "site" | "places" | "news";
4271
+ quote: string;
4271
4272
  }>, "many">;
4272
4273
  notes: z.ZodOptional<z.ZodString>;
4273
4274
  goToMarket: z.ZodOptional<z.ZodObject<{
@@ -4318,29 +4319,30 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4318
4319
  relativeTimeDescription: z.ZodString;
4319
4320
  }, "strip", z.ZodTypeAny, {
4320
4321
  rating: number;
4321
- authorName: string;
4322
4322
  text: string;
4323
+ authorName: string;
4323
4324
  time: number;
4324
4325
  relativeTimeDescription: string;
4325
4326
  }, {
4326
4327
  rating: number;
4327
- authorName: string;
4328
4328
  text: string;
4329
+ authorName: string;
4329
4330
  time: number;
4330
4331
  relativeTimeDescription: string;
4331
4332
  }>, "many">>;
4332
4333
  }, "strip", z.ZodTypeAny, {
4333
4334
  strengths: string[];
4334
- weaknesses: string[];
4335
4335
  gaps: string[];
4336
+ weaknesses: string[];
4336
4337
  opportunities: string[];
4337
4338
  notableOffers: string[];
4338
4339
  evidence: {
4339
4340
  url: string;
4340
- quote: string;
4341
4341
  source: "site" | "places" | "news";
4342
+ quote: string;
4342
4343
  }[];
4343
4344
  notes?: string | undefined;
4345
+ rating?: number | undefined;
4344
4346
  goToMarket?: {
4345
4347
  strategy: string;
4346
4348
  channels: string[];
@@ -4357,27 +4359,27 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4357
4359
  } | undefined;
4358
4360
  techSignals?: string[] | undefined;
4359
4361
  channelsObserved?: string[] | undefined;
4360
- rating?: number | undefined;
4361
4362
  userRatingCount?: number | undefined;
4362
4363
  reviews?: {
4363
4364
  rating: number;
4364
- authorName: string;
4365
4365
  text: string;
4366
+ authorName: string;
4366
4367
  time: number;
4367
4368
  relativeTimeDescription: string;
4368
4369
  }[] | undefined;
4369
4370
  }, {
4370
4371
  strengths: string[];
4371
- weaknesses: string[];
4372
4372
  gaps: string[];
4373
+ weaknesses: string[];
4373
4374
  opportunities: string[];
4374
4375
  notableOffers: string[];
4375
4376
  evidence: {
4376
4377
  url: string;
4377
- quote: string;
4378
4378
  source: "site" | "places" | "news";
4379
+ quote: string;
4379
4380
  }[];
4380
4381
  notes?: string | undefined;
4382
+ rating?: number | undefined;
4381
4383
  goToMarket?: {
4382
4384
  strategy: string;
4383
4385
  channels: string[];
@@ -4394,12 +4396,11 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4394
4396
  } | undefined;
4395
4397
  techSignals?: string[] | undefined;
4396
4398
  channelsObserved?: string[] | undefined;
4397
- rating?: number | undefined;
4398
4399
  userRatingCount?: number | undefined;
4399
4400
  reviews?: {
4400
4401
  rating: number;
4401
- authorName: string;
4402
4402
  text: string;
4403
+ authorName: string;
4403
4404
  time: number;
4404
4405
  relativeTimeDescription: string;
4405
4406
  }[] | undefined;
@@ -4416,14 +4417,14 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4416
4417
  relativeTimeDescription: z.ZodString;
4417
4418
  }, "strip", z.ZodTypeAny, {
4418
4419
  rating: number;
4419
- authorName: string;
4420
4420
  text: string;
4421
+ authorName: string;
4421
4422
  time: number;
4422
4423
  relativeTimeDescription: string;
4423
4424
  }, {
4424
4425
  rating: number;
4425
- authorName: string;
4426
4426
  text: string;
4427
+ authorName: string;
4427
4428
  time: number;
4428
4429
  relativeTimeDescription: string;
4429
4430
  }>, "many">>;
@@ -4528,8 +4529,11 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4528
4529
  source: "system-suggested" | "user-added";
4529
4530
  mediaChannels: string[];
4530
4531
  selectionMode: "single" | "chain";
4532
+ placeId?: string | undefined;
4531
4533
  type?: "national" | "regional" | "local" | "online-only" | undefined;
4534
+ geo?: string | undefined;
4532
4535
  url?: string | undefined;
4536
+ rating?: number | undefined;
4533
4537
  weaknesses?: string[] | undefined;
4534
4538
  evidence?: {
4535
4539
  source_snippet: string;
@@ -4537,16 +4541,14 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4537
4541
  } | undefined;
4538
4542
  techSignals?: string[] | undefined;
4539
4543
  channelsObserved?: string[] | undefined;
4540
- rating?: number | undefined;
4541
4544
  userRatingCount?: number | undefined;
4542
4545
  reviews?: {
4543
4546
  rating: number;
4544
- authorName: string;
4545
4547
  text: string;
4548
+ authorName: string;
4546
4549
  time: number;
4547
4550
  relativeTimeDescription: string;
4548
4551
  }[] | undefined;
4549
- placeId?: string | undefined;
4550
4552
  overlapScore?: number | undefined;
4551
4553
  insights?: string | undefined;
4552
4554
  isChain?: boolean | undefined;
@@ -4556,14 +4558,14 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4556
4558
  locations?: {
4557
4559
  name: string;
4558
4560
  placeId: string;
4559
- rating?: number | undefined;
4560
4561
  address?: string | undefined;
4561
4562
  city?: string | undefined;
4562
4563
  state?: string | undefined;
4563
4564
  lat?: number | undefined;
4564
4565
  lng?: number | undefined;
4565
- distance_km?: number | undefined;
4566
+ rating?: number | undefined;
4566
4567
  reviewCount?: number | undefined;
4568
+ distance_km?: number | undefined;
4567
4569
  isPrimary?: boolean | undefined;
4568
4570
  }[] | undefined;
4569
4571
  locationCount?: number | undefined;
@@ -4574,16 +4576,17 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4574
4576
  } | undefined;
4575
4577
  enrichedInsights?: {
4576
4578
  strengths: string[];
4577
- weaknesses: string[];
4578
4579
  gaps: string[];
4580
+ weaknesses: string[];
4579
4581
  opportunities: string[];
4580
4582
  notableOffers: string[];
4581
4583
  evidence: {
4582
4584
  url: string;
4583
- quote: string;
4584
4585
  source: "site" | "places" | "news";
4586
+ quote: string;
4585
4587
  }[];
4586
4588
  notes?: string | undefined;
4589
+ rating?: number | undefined;
4587
4590
  goToMarket?: {
4588
4591
  strategy: string;
4589
4592
  channels: string[];
@@ -4600,12 +4603,11 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4600
4603
  } | undefined;
4601
4604
  techSignals?: string[] | undefined;
4602
4605
  channelsObserved?: string[] | undefined;
4603
- rating?: number | undefined;
4604
4606
  userRatingCount?: number | undefined;
4605
4607
  reviews?: {
4606
4608
  rating: number;
4607
- authorName: string;
4608
4609
  text: string;
4610
+ authorName: string;
4609
4611
  time: number;
4610
4612
  relativeTimeDescription: string;
4611
4613
  }[] | undefined;
@@ -4631,7 +4633,7 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4631
4633
  addedAt?: Date | undefined;
4632
4634
  removedAt?: Date | null | undefined;
4633
4635
  wasEnriched?: boolean | undefined;
4634
- sourceUsed?: "unknown" | "google" | "geoapify" | "gpt" | "manual" | undefined;
4636
+ sourceUsed?: "google" | "unknown" | "geoapify" | "gpt" | "manual" | undefined;
4635
4637
  skipReason?: string | undefined;
4636
4638
  hasLocation?: boolean | undefined;
4637
4639
  geoValidationStatus?: "matched" | "mismatch" | "not_enriched" | undefined;
@@ -4639,7 +4641,6 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4639
4641
  lat: number;
4640
4642
  lng: number;
4641
4643
  } | undefined;
4642
- geo?: string | undefined;
4643
4644
  forceSkipped?: boolean | undefined;
4644
4645
  location?: {
4645
4646
  city: string;
@@ -4650,8 +4651,11 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4650
4651
  }, {
4651
4652
  name: string;
4652
4653
  mediaChannels: string[];
4654
+ placeId?: string | undefined;
4653
4655
  type?: "national" | "regional" | "local" | "online-only" | undefined;
4656
+ geo?: string | undefined;
4654
4657
  url?: string | undefined;
4658
+ rating?: number | undefined;
4655
4659
  source?: "system-suggested" | "user-added" | undefined;
4656
4660
  weaknesses?: string[] | undefined;
4657
4661
  evidence?: {
@@ -4660,16 +4664,14 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4660
4664
  } | undefined;
4661
4665
  techSignals?: string[] | undefined;
4662
4666
  channelsObserved?: string[] | undefined;
4663
- rating?: number | undefined;
4664
4667
  userRatingCount?: number | undefined;
4665
4668
  reviews?: {
4666
4669
  rating: number;
4667
- authorName: string;
4668
4670
  text: string;
4671
+ authorName: string;
4669
4672
  time: number;
4670
4673
  relativeTimeDescription: string;
4671
4674
  }[] | undefined;
4672
- placeId?: string | undefined;
4673
4675
  overlapScore?: number | undefined;
4674
4676
  insights?: string | undefined;
4675
4677
  isChain?: boolean | undefined;
@@ -4679,14 +4681,14 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4679
4681
  locations?: {
4680
4682
  name: string;
4681
4683
  placeId: string;
4682
- rating?: number | undefined;
4683
4684
  address?: string | undefined;
4684
4685
  city?: string | undefined;
4685
4686
  state?: string | undefined;
4686
4687
  lat?: number | undefined;
4687
4688
  lng?: number | undefined;
4688
- distance_km?: number | undefined;
4689
+ rating?: number | undefined;
4689
4690
  reviewCount?: number | undefined;
4691
+ distance_km?: number | undefined;
4690
4692
  isPrimary?: boolean | undefined;
4691
4693
  }[] | undefined;
4692
4694
  locationCount?: number | undefined;
@@ -4698,16 +4700,17 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4698
4700
  } | undefined;
4699
4701
  enrichedInsights?: {
4700
4702
  strengths: string[];
4701
- weaknesses: string[];
4702
4703
  gaps: string[];
4704
+ weaknesses: string[];
4703
4705
  opportunities: string[];
4704
4706
  notableOffers: string[];
4705
4707
  evidence: {
4706
4708
  url: string;
4707
- quote: string;
4708
4709
  source: "site" | "places" | "news";
4710
+ quote: string;
4709
4711
  }[];
4710
4712
  notes?: string | undefined;
4713
+ rating?: number | undefined;
4711
4714
  goToMarket?: {
4712
4715
  strategy: string;
4713
4716
  channels: string[];
@@ -4724,12 +4727,11 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4724
4727
  } | undefined;
4725
4728
  techSignals?: string[] | undefined;
4726
4729
  channelsObserved?: string[] | undefined;
4727
- rating?: number | undefined;
4728
4730
  userRatingCount?: number | undefined;
4729
4731
  reviews?: {
4730
4732
  rating: number;
4731
- authorName: string;
4732
4733
  text: string;
4734
+ authorName: string;
4733
4735
  time: number;
4734
4736
  relativeTimeDescription: string;
4735
4737
  }[] | undefined;
@@ -4755,7 +4757,7 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4755
4757
  addedAt?: Date | undefined;
4756
4758
  removedAt?: Date | null | undefined;
4757
4759
  wasEnriched?: boolean | undefined;
4758
- sourceUsed?: "unknown" | "google" | "geoapify" | "gpt" | "manual" | undefined;
4760
+ sourceUsed?: "google" | "unknown" | "geoapify" | "gpt" | "manual" | undefined;
4759
4761
  skipReason?: string | undefined;
4760
4762
  hasLocation?: boolean | undefined;
4761
4763
  geoValidationStatus?: "matched" | "mismatch" | "not_enriched" | undefined;
@@ -4763,7 +4765,6 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
4763
4765
  lat: number;
4764
4766
  lng: number;
4765
4767
  } | undefined;
4766
- geo?: string | undefined;
4767
4768
  forceSkipped?: boolean | undefined;
4768
4769
  location?: {
4769
4770
  city: string;
@@ -5444,12 +5445,12 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
5444
5445
  description: z.ZodString;
5445
5446
  icon: z.ZodOptional<z.ZodString>;
5446
5447
  }, "strip", z.ZodTypeAny, {
5447
- description: string;
5448
5448
  category: "optimization" | "experience" | "service" | "innovation";
5449
+ description: string;
5449
5450
  icon?: string | undefined;
5450
5451
  }, {
5451
- description: string;
5452
5452
  category: "optimization" | "experience" | "service" | "innovation";
5453
+ description: string;
5453
5454
  icon?: string | undefined;
5454
5455
  }>, "many">>>;
5455
5456
  }, "strip", z.ZodTypeAny, {
@@ -5457,8 +5458,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
5457
5458
  code: string;
5458
5459
  minSpend: number;
5459
5460
  benefits?: {
5460
- description: string;
5461
5461
  category: "optimization" | "experience" | "service" | "innovation";
5462
+ description: string;
5462
5463
  icon?: string | undefined;
5463
5464
  }[] | null | undefined;
5464
5465
  }, {
@@ -5466,8 +5467,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
5466
5467
  code: string;
5467
5468
  minSpend: number;
5468
5469
  benefits?: {
5469
- description: string;
5470
5470
  category: "optimization" | "experience" | "service" | "innovation";
5471
+ description: string;
5471
5472
  icon?: string | undefined;
5472
5473
  }[] | null | undefined;
5473
5474
  }>>>;
@@ -5496,8 +5497,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
5496
5497
  code: string;
5497
5498
  minSpend: number;
5498
5499
  benefits?: {
5499
- description: string;
5500
5500
  category: "optimization" | "experience" | "service" | "innovation";
5501
+ description: string;
5501
5502
  icon?: string | undefined;
5502
5503
  }[] | null | undefined;
5503
5504
  } | null | undefined;
@@ -5516,8 +5517,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
5516
5517
  code: string;
5517
5518
  minSpend: number;
5518
5519
  benefits?: {
5519
- description: string;
5520
5520
  category: "optimization" | "experience" | "service" | "innovation";
5521
+ description: string;
5521
5522
  icon?: string | undefined;
5522
5523
  }[] | null | undefined;
5523
5524
  } | null | undefined;
@@ -5532,9 +5533,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
5532
5533
  } | undefined;
5533
5534
  }>>;
5534
5535
  }, "strip", z.ZodTypeAny, {
5536
+ budget: number;
5535
5537
  tier: string;
5536
5538
  description: string;
5537
- budget: number;
5538
5539
  rationale: string;
5539
5540
  allocations: {
5540
5541
  name: string;
@@ -5610,8 +5611,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
5610
5611
  code: string;
5611
5612
  minSpend: number;
5612
5613
  benefits?: {
5613
- description: string;
5614
5614
  category: "optimization" | "experience" | "service" | "innovation";
5615
+ description: string;
5615
5616
  icon?: string | undefined;
5616
5617
  }[] | null | undefined;
5617
5618
  } | null | undefined;
@@ -5626,9 +5627,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
5626
5627
  } | undefined;
5627
5628
  } | undefined;
5628
5629
  }, {
5630
+ budget: number;
5629
5631
  tier: string;
5630
5632
  description: string;
5631
- budget: number;
5632
5633
  rationale: string;
5633
5634
  allocations: {
5634
5635
  name: string;
@@ -5704,8 +5705,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
5704
5705
  code: string;
5705
5706
  minSpend: number;
5706
5707
  benefits?: {
5707
- description: string;
5708
5708
  category: "optimization" | "experience" | "service" | "innovation";
5709
+ description: string;
5709
5710
  icon?: string | undefined;
5710
5711
  }[] | null | undefined;
5711
5712
  } | null | undefined;
@@ -5992,12 +5993,12 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
5992
5993
  description: z.ZodString;
5993
5994
  icon: z.ZodOptional<z.ZodString>;
5994
5995
  }, "strip", z.ZodTypeAny, {
5995
- description: string;
5996
5996
  category: "optimization" | "experience" | "service" | "innovation";
5997
+ description: string;
5997
5998
  icon?: string | undefined;
5998
5999
  }, {
5999
- description: string;
6000
6000
  category: "optimization" | "experience" | "service" | "innovation";
6001
+ description: string;
6001
6002
  icon?: string | undefined;
6002
6003
  }>, "many">>>;
6003
6004
  }, "strip", z.ZodTypeAny, {
@@ -6005,8 +6006,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6005
6006
  code: string;
6006
6007
  minSpend: number;
6007
6008
  benefits?: {
6008
- description: string;
6009
6009
  category: "optimization" | "experience" | "service" | "innovation";
6010
+ description: string;
6010
6011
  icon?: string | undefined;
6011
6012
  }[] | null | undefined;
6012
6013
  }, {
@@ -6014,8 +6015,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6014
6015
  code: string;
6015
6016
  minSpend: number;
6016
6017
  benefits?: {
6017
- description: string;
6018
6018
  category: "optimization" | "experience" | "service" | "innovation";
6019
+ description: string;
6019
6020
  icon?: string | undefined;
6020
6021
  }[] | null | undefined;
6021
6022
  }>>>;
@@ -6044,8 +6045,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6044
6045
  code: string;
6045
6046
  minSpend: number;
6046
6047
  benefits?: {
6047
- description: string;
6048
6048
  category: "optimization" | "experience" | "service" | "innovation";
6049
+ description: string;
6049
6050
  icon?: string | undefined;
6050
6051
  }[] | null | undefined;
6051
6052
  } | null | undefined;
@@ -6064,8 +6065,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6064
6065
  code: string;
6065
6066
  minSpend: number;
6066
6067
  benefits?: {
6067
- description: string;
6068
6068
  category: "optimization" | "experience" | "service" | "innovation";
6069
+ description: string;
6069
6070
  icon?: string | undefined;
6070
6071
  }[] | null | undefined;
6071
6072
  } | null | undefined;
@@ -6080,9 +6081,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6080
6081
  } | undefined;
6081
6082
  }>>;
6082
6083
  }, "strip", z.ZodTypeAny, {
6084
+ budget: number;
6083
6085
  tier: string;
6084
6086
  description: string;
6085
- budget: number;
6086
6087
  rationale: string;
6087
6088
  allocations: {
6088
6089
  name: string;
@@ -6158,8 +6159,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6158
6159
  code: string;
6159
6160
  minSpend: number;
6160
6161
  benefits?: {
6161
- description: string;
6162
6162
  category: "optimization" | "experience" | "service" | "innovation";
6163
+ description: string;
6163
6164
  icon?: string | undefined;
6164
6165
  }[] | null | undefined;
6165
6166
  } | null | undefined;
@@ -6174,9 +6175,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6174
6175
  } | undefined;
6175
6176
  } | undefined;
6176
6177
  }, {
6178
+ budget: number;
6177
6179
  tier: string;
6178
6180
  description: string;
6179
- budget: number;
6180
6181
  rationale: string;
6181
6182
  allocations: {
6182
6183
  name: string;
@@ -6252,8 +6253,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6252
6253
  code: string;
6253
6254
  minSpend: number;
6254
6255
  benefits?: {
6255
- description: string;
6256
6256
  category: "optimization" | "experience" | "service" | "innovation";
6257
+ description: string;
6257
6258
  icon?: string | undefined;
6258
6259
  }[] | null | undefined;
6259
6260
  } | null | undefined;
@@ -6540,12 +6541,12 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6540
6541
  description: z.ZodString;
6541
6542
  icon: z.ZodOptional<z.ZodString>;
6542
6543
  }, "strip", z.ZodTypeAny, {
6543
- description: string;
6544
6544
  category: "optimization" | "experience" | "service" | "innovation";
6545
+ description: string;
6545
6546
  icon?: string | undefined;
6546
6547
  }, {
6547
- description: string;
6548
6548
  category: "optimization" | "experience" | "service" | "innovation";
6549
+ description: string;
6549
6550
  icon?: string | undefined;
6550
6551
  }>, "many">>>;
6551
6552
  }, "strip", z.ZodTypeAny, {
@@ -6553,8 +6554,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6553
6554
  code: string;
6554
6555
  minSpend: number;
6555
6556
  benefits?: {
6556
- description: string;
6557
6557
  category: "optimization" | "experience" | "service" | "innovation";
6558
+ description: string;
6558
6559
  icon?: string | undefined;
6559
6560
  }[] | null | undefined;
6560
6561
  }, {
@@ -6562,8 +6563,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6562
6563
  code: string;
6563
6564
  minSpend: number;
6564
6565
  benefits?: {
6565
- description: string;
6566
6566
  category: "optimization" | "experience" | "service" | "innovation";
6567
+ description: string;
6567
6568
  icon?: string | undefined;
6568
6569
  }[] | null | undefined;
6569
6570
  }>>>;
@@ -6592,8 +6593,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6592
6593
  code: string;
6593
6594
  minSpend: number;
6594
6595
  benefits?: {
6595
- description: string;
6596
6596
  category: "optimization" | "experience" | "service" | "innovation";
6597
+ description: string;
6597
6598
  icon?: string | undefined;
6598
6599
  }[] | null | undefined;
6599
6600
  } | null | undefined;
@@ -6612,8 +6613,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6612
6613
  code: string;
6613
6614
  minSpend: number;
6614
6615
  benefits?: {
6615
- description: string;
6616
6616
  category: "optimization" | "experience" | "service" | "innovation";
6617
+ description: string;
6617
6618
  icon?: string | undefined;
6618
6619
  }[] | null | undefined;
6619
6620
  } | null | undefined;
@@ -6628,9 +6629,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6628
6629
  } | undefined;
6629
6630
  }>>;
6630
6631
  }, "strip", z.ZodTypeAny, {
6632
+ budget: number;
6631
6633
  tier: string;
6632
6634
  description: string;
6633
- budget: number;
6634
6635
  rationale: string;
6635
6636
  allocations: {
6636
6637
  name: string;
@@ -6706,8 +6707,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6706
6707
  code: string;
6707
6708
  minSpend: number;
6708
6709
  benefits?: {
6709
- description: string;
6710
6710
  category: "optimization" | "experience" | "service" | "innovation";
6711
+ description: string;
6711
6712
  icon?: string | undefined;
6712
6713
  }[] | null | undefined;
6713
6714
  } | null | undefined;
@@ -6722,9 +6723,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6722
6723
  } | undefined;
6723
6724
  } | undefined;
6724
6725
  }, {
6726
+ budget: number;
6725
6727
  tier: string;
6726
6728
  description: string;
6727
- budget: number;
6728
6729
  rationale: string;
6729
6730
  allocations: {
6730
6731
  name: string;
@@ -6800,8 +6801,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6800
6801
  code: string;
6801
6802
  minSpend: number;
6802
6803
  benefits?: {
6803
- description: string;
6804
6804
  category: "optimization" | "experience" | "service" | "innovation";
6805
+ description: string;
6805
6806
  icon?: string | undefined;
6806
6807
  }[] | null | undefined;
6807
6808
  } | null | undefined;
@@ -6818,9 +6819,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6818
6819
  }>;
6819
6820
  }, "strip", z.ZodTypeAny, {
6820
6821
  foundation: {
6822
+ budget: number;
6821
6823
  tier: string;
6822
6824
  description: string;
6823
- budget: number;
6824
6825
  rationale: string;
6825
6826
  allocations: {
6826
6827
  name: string;
@@ -6896,8 +6897,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6896
6897
  code: string;
6897
6898
  minSpend: number;
6898
6899
  benefits?: {
6899
- description: string;
6900
6900
  category: "optimization" | "experience" | "service" | "innovation";
6901
+ description: string;
6901
6902
  icon?: string | undefined;
6902
6903
  }[] | null | undefined;
6903
6904
  } | null | undefined;
@@ -6913,9 +6914,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6913
6914
  } | undefined;
6914
6915
  };
6915
6916
  growth: {
6917
+ budget: number;
6916
6918
  tier: string;
6917
6919
  description: string;
6918
- budget: number;
6919
6920
  rationale: string;
6920
6921
  allocations: {
6921
6922
  name: string;
@@ -6991,8 +6992,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
6991
6992
  code: string;
6992
6993
  minSpend: number;
6993
6994
  benefits?: {
6994
- description: string;
6995
6995
  category: "optimization" | "experience" | "service" | "innovation";
6996
+ description: string;
6996
6997
  icon?: string | undefined;
6997
6998
  }[] | null | undefined;
6998
6999
  } | null | undefined;
@@ -7008,9 +7009,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7008
7009
  } | undefined;
7009
7010
  };
7010
7011
  accelerate: {
7012
+ budget: number;
7011
7013
  tier: string;
7012
7014
  description: string;
7013
- budget: number;
7014
7015
  rationale: string;
7015
7016
  allocations: {
7016
7017
  name: string;
@@ -7086,8 +7087,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7086
7087
  code: string;
7087
7088
  minSpend: number;
7088
7089
  benefits?: {
7089
- description: string;
7090
7090
  category: "optimization" | "experience" | "service" | "innovation";
7091
+ description: string;
7091
7092
  icon?: string | undefined;
7092
7093
  }[] | null | undefined;
7093
7094
  } | null | undefined;
@@ -7104,9 +7105,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7104
7105
  };
7105
7106
  }, {
7106
7107
  foundation: {
7108
+ budget: number;
7107
7109
  tier: string;
7108
7110
  description: string;
7109
- budget: number;
7110
7111
  rationale: string;
7111
7112
  allocations: {
7112
7113
  name: string;
@@ -7182,8 +7183,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7182
7183
  code: string;
7183
7184
  minSpend: number;
7184
7185
  benefits?: {
7185
- description: string;
7186
7186
  category: "optimization" | "experience" | "service" | "innovation";
7187
+ description: string;
7187
7188
  icon?: string | undefined;
7188
7189
  }[] | null | undefined;
7189
7190
  } | null | undefined;
@@ -7199,9 +7200,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7199
7200
  } | undefined;
7200
7201
  };
7201
7202
  growth: {
7203
+ budget: number;
7202
7204
  tier: string;
7203
7205
  description: string;
7204
- budget: number;
7205
7206
  rationale: string;
7206
7207
  allocations: {
7207
7208
  name: string;
@@ -7277,8 +7278,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7277
7278
  code: string;
7278
7279
  minSpend: number;
7279
7280
  benefits?: {
7280
- description: string;
7281
7281
  category: "optimization" | "experience" | "service" | "innovation";
7282
+ description: string;
7282
7283
  icon?: string | undefined;
7283
7284
  }[] | null | undefined;
7284
7285
  } | null | undefined;
@@ -7294,9 +7295,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7294
7295
  } | undefined;
7295
7296
  };
7296
7297
  accelerate: {
7298
+ budget: number;
7297
7299
  tier: string;
7298
7300
  description: string;
7299
- budget: number;
7300
7301
  rationale: string;
7301
7302
  allocations: {
7302
7303
  name: string;
@@ -7372,8 +7373,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7372
7373
  code: string;
7373
7374
  minSpend: number;
7374
7375
  benefits?: {
7375
- description: string;
7376
7376
  category: "optimization" | "experience" | "service" | "innovation";
7377
+ description: string;
7377
7378
  icon?: string | undefined;
7378
7379
  }[] | null | undefined;
7379
7380
  } | null | undefined;
@@ -7413,13 +7414,22 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7413
7414
  planQualityScore: z.ZodOptional<z.ZodNumber>;
7414
7415
  qualityLabel: z.ZodOptional<z.ZodEnum<["Excellent", "Moderate", "Low"]>>;
7415
7416
  }, "strip", z.ZodTypeAny, {
7417
+ prospect: {
7418
+ brand: string;
7419
+ geo: string;
7420
+ url: string;
7421
+ category: string;
7422
+ };
7416
7423
  competitors: {
7417
7424
  name: string;
7418
7425
  source: "system-suggested" | "user-added";
7419
7426
  mediaChannels: string[];
7420
7427
  selectionMode: "single" | "chain";
7428
+ placeId?: string | undefined;
7421
7429
  type?: "national" | "regional" | "local" | "online-only" | undefined;
7430
+ geo?: string | undefined;
7422
7431
  url?: string | undefined;
7432
+ rating?: number | undefined;
7423
7433
  weaknesses?: string[] | undefined;
7424
7434
  evidence?: {
7425
7435
  source_snippet: string;
@@ -7427,16 +7437,14 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7427
7437
  } | undefined;
7428
7438
  techSignals?: string[] | undefined;
7429
7439
  channelsObserved?: string[] | undefined;
7430
- rating?: number | undefined;
7431
7440
  userRatingCount?: number | undefined;
7432
7441
  reviews?: {
7433
7442
  rating: number;
7434
- authorName: string;
7435
7443
  text: string;
7444
+ authorName: string;
7436
7445
  time: number;
7437
7446
  relativeTimeDescription: string;
7438
7447
  }[] | undefined;
7439
- placeId?: string | undefined;
7440
7448
  overlapScore?: number | undefined;
7441
7449
  insights?: string | undefined;
7442
7450
  isChain?: boolean | undefined;
@@ -7446,14 +7454,14 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7446
7454
  locations?: {
7447
7455
  name: string;
7448
7456
  placeId: string;
7449
- rating?: number | undefined;
7450
7457
  address?: string | undefined;
7451
7458
  city?: string | undefined;
7452
7459
  state?: string | undefined;
7453
7460
  lat?: number | undefined;
7454
7461
  lng?: number | undefined;
7455
- distance_km?: number | undefined;
7462
+ rating?: number | undefined;
7456
7463
  reviewCount?: number | undefined;
7464
+ distance_km?: number | undefined;
7457
7465
  isPrimary?: boolean | undefined;
7458
7466
  }[] | undefined;
7459
7467
  locationCount?: number | undefined;
@@ -7464,16 +7472,17 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7464
7472
  } | undefined;
7465
7473
  enrichedInsights?: {
7466
7474
  strengths: string[];
7467
- weaknesses: string[];
7468
7475
  gaps: string[];
7476
+ weaknesses: string[];
7469
7477
  opportunities: string[];
7470
7478
  notableOffers: string[];
7471
7479
  evidence: {
7472
7480
  url: string;
7473
- quote: string;
7474
7481
  source: "site" | "places" | "news";
7482
+ quote: string;
7475
7483
  }[];
7476
7484
  notes?: string | undefined;
7485
+ rating?: number | undefined;
7477
7486
  goToMarket?: {
7478
7487
  strategy: string;
7479
7488
  channels: string[];
@@ -7490,12 +7499,11 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7490
7499
  } | undefined;
7491
7500
  techSignals?: string[] | undefined;
7492
7501
  channelsObserved?: string[] | undefined;
7493
- rating?: number | undefined;
7494
7502
  userRatingCount?: number | undefined;
7495
7503
  reviews?: {
7496
7504
  rating: number;
7497
- authorName: string;
7498
7505
  text: string;
7506
+ authorName: string;
7499
7507
  time: number;
7500
7508
  relativeTimeDescription: string;
7501
7509
  }[] | undefined;
@@ -7521,7 +7529,7 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7521
7529
  addedAt?: Date | undefined;
7522
7530
  removedAt?: Date | null | undefined;
7523
7531
  wasEnriched?: boolean | undefined;
7524
- sourceUsed?: "unknown" | "google" | "geoapify" | "gpt" | "manual" | undefined;
7532
+ sourceUsed?: "google" | "unknown" | "geoapify" | "gpt" | "manual" | undefined;
7525
7533
  skipReason?: string | undefined;
7526
7534
  hasLocation?: boolean | undefined;
7527
7535
  geoValidationStatus?: "matched" | "mismatch" | "not_enriched" | undefined;
@@ -7529,7 +7537,6 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7529
7537
  lat: number;
7530
7538
  lng: number;
7531
7539
  } | undefined;
7532
- geo?: string | undefined;
7533
7540
  forceSkipped?: boolean | undefined;
7534
7541
  location?: {
7535
7542
  city: string;
@@ -7538,12 +7545,6 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7538
7545
  lng: number;
7539
7546
  } | undefined;
7540
7547
  }[];
7541
- prospect: {
7542
- brand: string;
7543
- url: string;
7544
- geo: string;
7545
- category: string;
7546
- };
7547
7548
  plan: {
7548
7549
  rationale: string;
7549
7550
  allocations: {
@@ -7618,9 +7619,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7618
7619
  assumptions?: string[] | undefined;
7619
7620
  plans?: {
7620
7621
  foundation: {
7622
+ budget: number;
7621
7623
  tier: string;
7622
7624
  description: string;
7623
- budget: number;
7624
7625
  rationale: string;
7625
7626
  allocations: {
7626
7627
  name: string;
@@ -7696,8 +7697,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7696
7697
  code: string;
7697
7698
  minSpend: number;
7698
7699
  benefits?: {
7699
- description: string;
7700
7700
  category: "optimization" | "experience" | "service" | "innovation";
7701
+ description: string;
7701
7702
  icon?: string | undefined;
7702
7703
  }[] | null | undefined;
7703
7704
  } | null | undefined;
@@ -7713,9 +7714,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7713
7714
  } | undefined;
7714
7715
  };
7715
7716
  growth: {
7717
+ budget: number;
7716
7718
  tier: string;
7717
7719
  description: string;
7718
- budget: number;
7719
7720
  rationale: string;
7720
7721
  allocations: {
7721
7722
  name: string;
@@ -7791,8 +7792,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7791
7792
  code: string;
7792
7793
  minSpend: number;
7793
7794
  benefits?: {
7794
- description: string;
7795
7795
  category: "optimization" | "experience" | "service" | "innovation";
7796
+ description: string;
7796
7797
  icon?: string | undefined;
7797
7798
  }[] | null | undefined;
7798
7799
  } | null | undefined;
@@ -7808,9 +7809,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7808
7809
  } | undefined;
7809
7810
  };
7810
7811
  accelerate: {
7812
+ budget: number;
7811
7813
  tier: string;
7812
7814
  description: string;
7813
- budget: number;
7814
7815
  rationale: string;
7815
7816
  allocations: {
7816
7817
  name: string;
@@ -7886,8 +7887,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7886
7887
  code: string;
7887
7888
  minSpend: number;
7888
7889
  benefits?: {
7889
- description: string;
7890
7890
  category: "optimization" | "experience" | "service" | "innovation";
7891
+ description: string;
7891
7892
  icon?: string | undefined;
7892
7893
  }[] | null | undefined;
7893
7894
  } | null | undefined;
@@ -7914,11 +7915,20 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7914
7915
  planQualityScore?: number | undefined;
7915
7916
  qualityLabel?: "Low" | "Excellent" | "Moderate" | undefined;
7916
7917
  }, {
7918
+ prospect: {
7919
+ brand: string;
7920
+ geo: string;
7921
+ url: string;
7922
+ category: string;
7923
+ };
7917
7924
  competitors: {
7918
7925
  name: string;
7919
7926
  mediaChannels: string[];
7927
+ placeId?: string | undefined;
7920
7928
  type?: "national" | "regional" | "local" | "online-only" | undefined;
7929
+ geo?: string | undefined;
7921
7930
  url?: string | undefined;
7931
+ rating?: number | undefined;
7922
7932
  source?: "system-suggested" | "user-added" | undefined;
7923
7933
  weaknesses?: string[] | undefined;
7924
7934
  evidence?: {
@@ -7927,16 +7937,14 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7927
7937
  } | undefined;
7928
7938
  techSignals?: string[] | undefined;
7929
7939
  channelsObserved?: string[] | undefined;
7930
- rating?: number | undefined;
7931
7940
  userRatingCount?: number | undefined;
7932
7941
  reviews?: {
7933
7942
  rating: number;
7934
- authorName: string;
7935
7943
  text: string;
7944
+ authorName: string;
7936
7945
  time: number;
7937
7946
  relativeTimeDescription: string;
7938
7947
  }[] | undefined;
7939
- placeId?: string | undefined;
7940
7948
  overlapScore?: number | undefined;
7941
7949
  insights?: string | undefined;
7942
7950
  isChain?: boolean | undefined;
@@ -7946,14 +7954,14 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7946
7954
  locations?: {
7947
7955
  name: string;
7948
7956
  placeId: string;
7949
- rating?: number | undefined;
7950
7957
  address?: string | undefined;
7951
7958
  city?: string | undefined;
7952
7959
  state?: string | undefined;
7953
7960
  lat?: number | undefined;
7954
7961
  lng?: number | undefined;
7955
- distance_km?: number | undefined;
7962
+ rating?: number | undefined;
7956
7963
  reviewCount?: number | undefined;
7964
+ distance_km?: number | undefined;
7957
7965
  isPrimary?: boolean | undefined;
7958
7966
  }[] | undefined;
7959
7967
  locationCount?: number | undefined;
@@ -7965,16 +7973,17 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7965
7973
  } | undefined;
7966
7974
  enrichedInsights?: {
7967
7975
  strengths: string[];
7968
- weaknesses: string[];
7969
7976
  gaps: string[];
7977
+ weaknesses: string[];
7970
7978
  opportunities: string[];
7971
7979
  notableOffers: string[];
7972
7980
  evidence: {
7973
7981
  url: string;
7974
- quote: string;
7975
7982
  source: "site" | "places" | "news";
7983
+ quote: string;
7976
7984
  }[];
7977
7985
  notes?: string | undefined;
7986
+ rating?: number | undefined;
7978
7987
  goToMarket?: {
7979
7988
  strategy: string;
7980
7989
  channels: string[];
@@ -7991,12 +8000,11 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
7991
8000
  } | undefined;
7992
8001
  techSignals?: string[] | undefined;
7993
8002
  channelsObserved?: string[] | undefined;
7994
- rating?: number | undefined;
7995
8003
  userRatingCount?: number | undefined;
7996
8004
  reviews?: {
7997
8005
  rating: number;
7998
- authorName: string;
7999
8006
  text: string;
8007
+ authorName: string;
8000
8008
  time: number;
8001
8009
  relativeTimeDescription: string;
8002
8010
  }[] | undefined;
@@ -8022,7 +8030,7 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
8022
8030
  addedAt?: Date | undefined;
8023
8031
  removedAt?: Date | null | undefined;
8024
8032
  wasEnriched?: boolean | undefined;
8025
- sourceUsed?: "unknown" | "google" | "geoapify" | "gpt" | "manual" | undefined;
8033
+ sourceUsed?: "google" | "unknown" | "geoapify" | "gpt" | "manual" | undefined;
8026
8034
  skipReason?: string | undefined;
8027
8035
  hasLocation?: boolean | undefined;
8028
8036
  geoValidationStatus?: "matched" | "mismatch" | "not_enriched" | undefined;
@@ -8030,7 +8038,6 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
8030
8038
  lat: number;
8031
8039
  lng: number;
8032
8040
  } | undefined;
8033
- geo?: string | undefined;
8034
8041
  forceSkipped?: boolean | undefined;
8035
8042
  location?: {
8036
8043
  city: string;
@@ -8039,12 +8046,6 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
8039
8046
  lng: number;
8040
8047
  } | undefined;
8041
8048
  }[];
8042
- prospect: {
8043
- brand: string;
8044
- url: string;
8045
- geo: string;
8046
- category: string;
8047
- };
8048
8049
  plan: {
8049
8050
  rationale: string;
8050
8051
  allocations: {
@@ -8119,9 +8120,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
8119
8120
  assumptions?: string[] | undefined;
8120
8121
  plans?: {
8121
8122
  foundation: {
8123
+ budget: number;
8122
8124
  tier: string;
8123
8125
  description: string;
8124
- budget: number;
8125
8126
  rationale: string;
8126
8127
  allocations: {
8127
8128
  name: string;
@@ -8197,8 +8198,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
8197
8198
  code: string;
8198
8199
  minSpend: number;
8199
8200
  benefits?: {
8200
- description: string;
8201
8201
  category: "optimization" | "experience" | "service" | "innovation";
8202
+ description: string;
8202
8203
  icon?: string | undefined;
8203
8204
  }[] | null | undefined;
8204
8205
  } | null | undefined;
@@ -8214,9 +8215,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
8214
8215
  } | undefined;
8215
8216
  };
8216
8217
  growth: {
8218
+ budget: number;
8217
8219
  tier: string;
8218
8220
  description: string;
8219
- budget: number;
8220
8221
  rationale: string;
8221
8222
  allocations: {
8222
8223
  name: string;
@@ -8292,8 +8293,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
8292
8293
  code: string;
8293
8294
  minSpend: number;
8294
8295
  benefits?: {
8295
- description: string;
8296
8296
  category: "optimization" | "experience" | "service" | "innovation";
8297
+ description: string;
8297
8298
  icon?: string | undefined;
8298
8299
  }[] | null | undefined;
8299
8300
  } | null | undefined;
@@ -8309,9 +8310,9 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
8309
8310
  } | undefined;
8310
8311
  };
8311
8312
  accelerate: {
8313
+ budget: number;
8312
8314
  tier: string;
8313
8315
  description: string;
8314
- budget: number;
8315
8316
  rationale: string;
8316
8317
  allocations: {
8317
8318
  name: string;
@@ -8387,8 +8388,8 @@ export declare const analyzeAndPlanResultSchema: z.ZodObject<{
8387
8388
  code: string;
8388
8389
  minSpend: number;
8389
8390
  benefits?: {
8390
- description: string;
8391
8391
  category: "optimization" | "experience" | "service" | "innovation";
8392
+ description: string;
8392
8393
  icon?: string | undefined;
8393
8394
  }[] | null | undefined;
8394
8395
  } | null | undefined;
@@ -8433,8 +8434,8 @@ export declare const productSchema: z.ZodObject<{
8433
8434
  name: string;
8434
8435
  code: string;
8435
8436
  kpis: string[];
8436
- displayOrder?: number | undefined;
8437
8437
  strengths?: string[] | undefined;
8438
+ displayOrder?: number | undefined;
8438
8439
  description?: string | undefined;
8439
8440
  disclaimer?: string | undefined;
8440
8441
  minimumBudget?: number | undefined;
@@ -8446,8 +8447,8 @@ export declare const productSchema: z.ZodObject<{
8446
8447
  name: string;
8447
8448
  code: string;
8448
8449
  kpis: string[];
8449
- displayOrder?: number | undefined;
8450
8450
  strengths?: string[] | undefined;
8451
+ displayOrder?: number | undefined;
8451
8452
  description?: string | undefined;
8452
8453
  disclaimer?: string | undefined;
8453
8454
  minimumBudget?: number | undefined;
@@ -10294,6 +10295,25 @@ export declare const plans: import("drizzle-orm/pg-core").PgTableWithColumns<{
10294
10295
  identity: undefined;
10295
10296
  generated: undefined;
10296
10297
  }, {}, {}>;
10298
+ intelligenceData: import("drizzle-orm/pg-core").PgColumn<{
10299
+ name: "intelligence_data";
10300
+ tableName: "plans";
10301
+ dataType: "json";
10302
+ columnType: "PgJsonb";
10303
+ data: IntelligenceData;
10304
+ driverParam: unknown;
10305
+ notNull: false;
10306
+ hasDefault: false;
10307
+ isPrimaryKey: false;
10308
+ isAutoincrement: false;
10309
+ hasRuntimeDefault: false;
10310
+ enumValues: undefined;
10311
+ baseColumn: never;
10312
+ identity: undefined;
10313
+ generated: undefined;
10314
+ }, {}, {
10315
+ $type: IntelligenceData;
10316
+ }>;
10297
10317
  defaultTargeting: import("drizzle-orm/pg-core").PgColumn<{
10298
10318
  name: "default_targeting";
10299
10319
  tableName: "plans";
@@ -11236,8 +11256,8 @@ export declare const insertProposalSchema: z.ZodObject<Omit<{
11236
11256
  }, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
11237
11257
  clientName: string;
11238
11258
  status?: "draft" | "generating" | "ready" | "accepted" | "awaiting_approval" | "failed" | undefined;
11239
- partnerId?: string | null | undefined;
11240
11259
  hubspotCompanyId?: string | null | undefined;
11260
+ partnerId?: string | null | undefined;
11241
11261
  hubspotDealId?: string | null | undefined;
11242
11262
  createdBy?: string | null | undefined;
11243
11263
  createdByUserId?: string | null | undefined;
@@ -11259,8 +11279,8 @@ export declare const insertProposalSchema: z.ZodObject<Omit<{
11259
11279
  }, {
11260
11280
  clientName: string;
11261
11281
  status?: "draft" | "generating" | "ready" | "accepted" | "awaiting_approval" | "failed" | undefined;
11262
- partnerId?: string | null | undefined;
11263
11282
  hubspotCompanyId?: string | null | undefined;
11283
+ partnerId?: string | null | undefined;
11264
11284
  hubspotDealId?: string | null | undefined;
11265
11285
  createdBy?: string | null | undefined;
11266
11286
  createdByUserId?: string | null | undefined;
@@ -11398,6 +11418,7 @@ export declare const insertPlanSchema: z.ZodObject<Omit<{
11398
11418
  dealCloseDate: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11399
11419
  quickEnrichData: z.ZodOptional<z.ZodNullable<z.ZodType<Record<string, any>, z.ZodTypeDef, Record<string, any>>>>;
11400
11420
  quickEnrichedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
11421
+ intelligenceData: z.ZodOptional<z.ZodNullable<z.ZodType<IntelligenceData, z.ZodTypeDef, IntelligenceData>>>;
11401
11422
  defaultTargeting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11402
11423
  defaultAudience: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11403
11424
  defaultPromoting: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -11415,247 +11436,7 @@ export declare const insertPlanSchema: z.ZodObject<Omit<{
11415
11436
  prospectEnrichedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
11416
11437
  laneType: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11417
11438
  seasonalPattern: z.ZodOptional<z.ZodNullable<z.ZodString>>;
11418
- }, "id" | "createdAt">, "strip", z.ZodTypeAny, {
11419
- prospectBrand: string;
11420
- budgetMin: number;
11421
- budgetMax: number;
11422
- notes?: string | null | undefined;
11423
- updatedAt?: Date | undefined;
11424
- partnerId?: string | null | undefined;
11425
- competitors?: import("drizzle-zod").Json | undefined;
11426
- assumptions?: import("drizzle-zod").Json | undefined;
11427
- goals?: import("drizzle-zod").Json | undefined;
11428
- planTotalBudget?: number | null | undefined;
11429
- planDurationMonths?: number | undefined;
11430
- tracking?: import("drizzle-zod").Json | undefined;
11431
- nextSteps?: import("drizzle-zod").Json | undefined;
11432
- risks?: import("drizzle-zod").Json | undefined;
11433
- hubspotCompanyId?: string | null | undefined;
11434
- hubspotDealId?: string | null | undefined;
11435
- createdBy?: string | null | undefined;
11436
- createdByUserId?: string | null | undefined;
11437
- ownerUserId?: string | null | undefined;
11438
- ownerOrgId?: string | null | undefined;
11439
- engagementId?: string | null | undefined;
11440
- contractId?: string | null | undefined;
11441
- planMode?: string | undefined;
11442
- prospectCategory?: string | null | undefined;
11443
- prospectGeo?: string | null | undefined;
11444
- prospectUrl?: string | null | undefined;
11445
- planRationale?: string | null | undefined;
11446
- planCompetitiveInsights?: string | null | undefined;
11447
- planAllocations?: import("drizzle-zod").Json | undefined;
11448
- questions?: import("drizzle-zod").Json | undefined;
11449
- planTiers?: import("drizzle-zod").Json | undefined;
11450
- hubspotOwnerId?: string | null | undefined;
11451
- hubspotOwnerName?: string | null | undefined;
11452
- hubspotOwnerEmail?: string | null | undefined;
11453
- hubspotLastActivity?: string | null | undefined;
11454
- hubspotUrl?: string | null | undefined;
11455
- emailedTo?: string | null | undefined;
11456
- shareId?: string | null | undefined;
11457
- viewCount?: number | undefined;
11458
- lastViewedAt?: Date | null | undefined;
11459
- prospectTechSignals?: import("drizzle-zod").Json | undefined;
11460
- prospectChannelsObserved?: import("drizzle-zod").Json | undefined;
11461
- prospectDigitalMaturityScore?: number | null | undefined;
11462
- prospectAdVisibilityIndex?: number | null | undefined;
11463
- prospectAnalyzedAt?: Date | null | undefined;
11464
- prospectAddress?: string | null | undefined;
11465
- prospectCity?: string | null | undefined;
11466
- prospectState?: string | null | undefined;
11467
- prospectZipCode?: string | null | undefined;
11468
- prospectPhone?: string | null | undefined;
11469
- prospectRating?: string | null | undefined;
11470
- prospectReviewCount?: number | null | undefined;
11471
- prospectPriceLevel?: number | null | undefined;
11472
- prospectPlaceId?: string | null | undefined;
11473
- prospectCoordinates?: import("drizzle-zod").Json | undefined;
11474
- prospectLocations?: {
11475
- lat: number;
11476
- lng: number;
11477
- name?: string;
11478
- placeId?: string;
11479
- isPrimary?: boolean;
11480
- isInDma?: boolean;
11481
- city?: string;
11482
- }[] | null | undefined;
11483
- prospectBusinessType?: string | null | undefined;
11484
- prospectOpeningHours?: import("drizzle-zod").Json | undefined;
11485
- prospectConfidence?: number | null | undefined;
11486
- prospectDataSource?: string | null | undefined;
11487
- prospectWasEnriched?: boolean | null | undefined;
11488
- prospectHasLocation?: boolean | null | undefined;
11489
- primaryMarketId?: string | null | undefined;
11490
- serviceAreaType?: string | null | undefined;
11491
- serviceAreaConfig?: {
11492
- radiusMiles?: number;
11493
- zips?: string[];
11494
- cities?: string[];
11495
- namedRegions?: string[];
11496
- } | null | undefined;
11497
- investmentTierCode?: string | null | undefined;
11498
- investmentTierName?: string | null | undefined;
11499
- investmentOptimizationData?: import("drizzle-zod").Json | undefined;
11500
- optimizationEnabled?: number | null | undefined;
11501
- optimizationAppliedAt?: Date | null | undefined;
11502
- pdfStorageKey?: string | null | undefined;
11503
- pdfGeneratedAt?: Date | null | undefined;
11504
- pdfVersion?: number | undefined;
11505
- sourceJobId?: string | null | undefined;
11506
- analysisMode?: string | null | undefined;
11507
- clientProposalData?: Record<string, any> | null | undefined;
11508
- clientProposalPdfUrl?: string | null | undefined;
11509
- clientProposalShareToken?: string | null | undefined;
11510
- clientProposalStatus?: string | null | undefined;
11511
- clientProposalCreatedAt?: Date | null | undefined;
11512
- clientProposalCreatedBy?: string | null | undefined;
11513
- clientProposalUpdatedAt?: Date | null | undefined;
11514
- isActive?: number | undefined;
11515
- excludedFamilies?: string[] | null | undefined;
11516
- excludedCategories?: string[] | null | undefined;
11517
- contractTier?: string | null | undefined;
11518
- dealAmount?: string | null | undefined;
11519
- dealStage?: string | null | undefined;
11520
- dealCloseDate?: string | null | undefined;
11521
- quickEnrichData?: Record<string, any> | null | undefined;
11522
- quickEnrichedAt?: Date | null | undefined;
11523
- defaultTargeting?: string | null | undefined;
11524
- defaultAudience?: string | null | undefined;
11525
- defaultPromoting?: string | null | undefined;
11526
- defaultFlightStart?: string | null | undefined;
11527
- defaultFlightEnd?: string | null | undefined;
11528
- slackChannelId?: string | null | undefined;
11529
- businessProfile?: Record<string, any> | null | undefined;
11530
- deletedAt?: Date | null | undefined;
11531
- triggerRunId?: string | null | undefined;
11532
- planModel?: import("drizzle-zod").Json | undefined;
11533
- competitiveIntelligence?: import("drizzle-zod").Json | undefined;
11534
- seoAnalysis?: import("drizzle-zod").Json | undefined;
11535
- prospectEnrichedAt?: Date | null | undefined;
11536
- laneType?: string | null | undefined;
11537
- seasonalPattern?: string | null | undefined;
11538
- }, {
11539
- prospectBrand: string;
11540
- budgetMin: number;
11541
- budgetMax: number;
11542
- notes?: string | null | undefined;
11543
- updatedAt?: Date | undefined;
11544
- partnerId?: string | null | undefined;
11545
- competitors?: import("drizzle-zod").Json | undefined;
11546
- assumptions?: import("drizzle-zod").Json | undefined;
11547
- goals?: import("drizzle-zod").Json | undefined;
11548
- planTotalBudget?: number | null | undefined;
11549
- planDurationMonths?: number | undefined;
11550
- tracking?: import("drizzle-zod").Json | undefined;
11551
- nextSteps?: import("drizzle-zod").Json | undefined;
11552
- risks?: import("drizzle-zod").Json | undefined;
11553
- hubspotCompanyId?: string | null | undefined;
11554
- hubspotDealId?: string | null | undefined;
11555
- createdBy?: string | null | undefined;
11556
- createdByUserId?: string | null | undefined;
11557
- ownerUserId?: string | null | undefined;
11558
- ownerOrgId?: string | null | undefined;
11559
- engagementId?: string | null | undefined;
11560
- contractId?: string | null | undefined;
11561
- planMode?: string | undefined;
11562
- prospectCategory?: string | null | undefined;
11563
- prospectGeo?: string | null | undefined;
11564
- prospectUrl?: string | null | undefined;
11565
- planRationale?: string | null | undefined;
11566
- planCompetitiveInsights?: string | null | undefined;
11567
- planAllocations?: import("drizzle-zod").Json | undefined;
11568
- questions?: import("drizzle-zod").Json | undefined;
11569
- planTiers?: import("drizzle-zod").Json | undefined;
11570
- hubspotOwnerId?: string | null | undefined;
11571
- hubspotOwnerName?: string | null | undefined;
11572
- hubspotOwnerEmail?: string | null | undefined;
11573
- hubspotLastActivity?: string | null | undefined;
11574
- hubspotUrl?: string | null | undefined;
11575
- emailedTo?: string | null | undefined;
11576
- shareId?: string | null | undefined;
11577
- viewCount?: number | undefined;
11578
- lastViewedAt?: Date | null | undefined;
11579
- prospectTechSignals?: import("drizzle-zod").Json | undefined;
11580
- prospectChannelsObserved?: import("drizzle-zod").Json | undefined;
11581
- prospectDigitalMaturityScore?: number | null | undefined;
11582
- prospectAdVisibilityIndex?: number | null | undefined;
11583
- prospectAnalyzedAt?: Date | null | undefined;
11584
- prospectAddress?: string | null | undefined;
11585
- prospectCity?: string | null | undefined;
11586
- prospectState?: string | null | undefined;
11587
- prospectZipCode?: string | null | undefined;
11588
- prospectPhone?: string | null | undefined;
11589
- prospectRating?: string | null | undefined;
11590
- prospectReviewCount?: number | null | undefined;
11591
- prospectPriceLevel?: number | null | undefined;
11592
- prospectPlaceId?: string | null | undefined;
11593
- prospectCoordinates?: import("drizzle-zod").Json | undefined;
11594
- prospectLocations?: {
11595
- lat: number;
11596
- lng: number;
11597
- name?: string;
11598
- placeId?: string;
11599
- isPrimary?: boolean;
11600
- isInDma?: boolean;
11601
- city?: string;
11602
- }[] | null | undefined;
11603
- prospectBusinessType?: string | null | undefined;
11604
- prospectOpeningHours?: import("drizzle-zod").Json | undefined;
11605
- prospectConfidence?: number | null | undefined;
11606
- prospectDataSource?: string | null | undefined;
11607
- prospectWasEnriched?: boolean | null | undefined;
11608
- prospectHasLocation?: boolean | null | undefined;
11609
- primaryMarketId?: string | null | undefined;
11610
- serviceAreaType?: string | null | undefined;
11611
- serviceAreaConfig?: {
11612
- radiusMiles?: number;
11613
- zips?: string[];
11614
- cities?: string[];
11615
- namedRegions?: string[];
11616
- } | null | undefined;
11617
- investmentTierCode?: string | null | undefined;
11618
- investmentTierName?: string | null | undefined;
11619
- investmentOptimizationData?: import("drizzle-zod").Json | undefined;
11620
- optimizationEnabled?: number | null | undefined;
11621
- optimizationAppliedAt?: Date | null | undefined;
11622
- pdfStorageKey?: string | null | undefined;
11623
- pdfGeneratedAt?: Date | null | undefined;
11624
- pdfVersion?: number | undefined;
11625
- sourceJobId?: string | null | undefined;
11626
- analysisMode?: string | null | undefined;
11627
- clientProposalData?: Record<string, any> | null | undefined;
11628
- clientProposalPdfUrl?: string | null | undefined;
11629
- clientProposalShareToken?: string | null | undefined;
11630
- clientProposalStatus?: string | null | undefined;
11631
- clientProposalCreatedAt?: Date | null | undefined;
11632
- clientProposalCreatedBy?: string | null | undefined;
11633
- clientProposalUpdatedAt?: Date | null | undefined;
11634
- isActive?: number | undefined;
11635
- excludedFamilies?: string[] | null | undefined;
11636
- excludedCategories?: string[] | null | undefined;
11637
- contractTier?: string | null | undefined;
11638
- dealAmount?: string | null | undefined;
11639
- dealStage?: string | null | undefined;
11640
- dealCloseDate?: string | null | undefined;
11641
- quickEnrichData?: Record<string, any> | null | undefined;
11642
- quickEnrichedAt?: Date | null | undefined;
11643
- defaultTargeting?: string | null | undefined;
11644
- defaultAudience?: string | null | undefined;
11645
- defaultPromoting?: string | null | undefined;
11646
- defaultFlightStart?: string | null | undefined;
11647
- defaultFlightEnd?: string | null | undefined;
11648
- slackChannelId?: string | null | undefined;
11649
- businessProfile?: Record<string, any> | null | undefined;
11650
- deletedAt?: Date | null | undefined;
11651
- triggerRunId?: string | null | undefined;
11652
- planModel?: import("drizzle-zod").Json | undefined;
11653
- competitiveIntelligence?: import("drizzle-zod").Json | undefined;
11654
- seoAnalysis?: import("drizzle-zod").Json | undefined;
11655
- prospectEnrichedAt?: Date | null | undefined;
11656
- laneType?: string | null | undefined;
11657
- seasonalPattern?: string | null | undefined;
11658
- }>;
11439
+ }, string | number | symbol>, "strip", z.ZodTypeAny, {}, {}>;
11659
11440
  export type InsertPlan = z.infer<typeof insertPlanSchema>;
11660
11441
  export type Plan = typeof plans.$inferSelect;
11661
11442
  export type PlanMode = "research_backed" | "direct_config" | "aor_pitch" | "io_entry";
@@ -12076,8 +11857,8 @@ export declare const jobs: import("drizzle-orm/pg-core").PgTableWithColumns<{
12076
11857
  dialect: "pg";
12077
11858
  }>;
12078
11859
  export declare const insertJobSchema: z.ZodObject<{
12079
- type: z.ZodString;
12080
11860
  status: z.ZodOptional<z.ZodString>;
11861
+ type: z.ZodString;
12081
11862
  input: z.ZodType<import("drizzle-zod").Json, z.ZodTypeDef, import("drizzle-zod").Json>;
12082
11863
  result: z.ZodOptional<z.ZodNullable<z.ZodType<import("drizzle-zod").Json, z.ZodTypeDef, import("drizzle-zod").Json>>>;
12083
11864
  error: z.ZodOptional<z.ZodNullable<z.ZodString>>;
@@ -12086,15 +11867,15 @@ export declare const insertJobSchema: z.ZodObject<{
12086
11867
  }, "strip", z.ZodTypeAny, {
12087
11868
  type: string;
12088
11869
  input: import("drizzle-zod").Json;
12089
- id?: string | undefined;
12090
11870
  status?: string | undefined;
11871
+ id?: string | undefined;
12091
11872
  result?: import("drizzle-zod").Json | undefined;
12092
11873
  error?: string | null | undefined;
12093
11874
  }, {
12094
11875
  type: string;
12095
11876
  input: import("drizzle-zod").Json;
12096
- id?: string | undefined;
12097
11877
  status?: string | undefined;
11878
+ id?: string | undefined;
12098
11879
  result?: import("drizzle-zod").Json | undefined;
12099
11880
  error?: string | null | undefined;
12100
11881
  }>;
@@ -12507,8 +12288,8 @@ export declare const insertJobRunSchema: z.ZodObject<Omit<{
12507
12288
  latest: z.ZodOptional<z.ZodBoolean>;
12508
12289
  prospectId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
12509
12290
  }, "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
12510
- id: string;
12511
12291
  name: string;
12292
+ id: string;
12512
12293
  queue: string;
12513
12294
  status?: "completed" | "active" | "failed" | "queued" | "running" | "awaiting_confirmation" | "awaiting_user_confirmation" | "awaiting_enrichment_confirmation" | undefined;
12514
12295
  stage?: string | null | undefined;
@@ -12528,8 +12309,8 @@ export declare const insertJobRunSchema: z.ZodObject<Omit<{
12528
12309
  latest?: boolean | undefined;
12529
12310
  prospectId?: string | null | undefined;
12530
12311
  }, {
12531
- id: string;
12532
12312
  name: string;
12313
+ id: string;
12533
12314
  queue: string;
12534
12315
  status?: "completed" | "active" | "failed" | "queued" | "running" | "awaiting_confirmation" | "awaiting_user_confirmation" | "awaiting_enrichment_confirmation" | undefined;
12535
12316
  stage?: string | null | undefined;
@@ -13046,9 +12827,9 @@ export declare const insertEnrichmentDataSchema: z.ZodObject<Omit<{
13046
12827
  expiresAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
13047
12828
  metadata: z.ZodOptional<z.ZodNullable<z.ZodType<import("drizzle-zod").Json, z.ZodTypeDef, import("drizzle-zod").Json>>>;
13048
12829
  }, "id" | "fetchedAt">, "strip", z.ZodTypeAny, {
13049
- data: import("drizzle-zod").Json;
13050
- source: string;
13051
12830
  category: string;
12831
+ source: string;
12832
+ data: import("drizzle-zod").Json;
13052
12833
  planId: string;
13053
12834
  entityType: string;
13054
12835
  entityIdentifier: string;
@@ -13056,9 +12837,9 @@ export declare const insertEnrichmentDataSchema: z.ZodObject<Omit<{
13056
12837
  expiresAt?: Date | null | undefined;
13057
12838
  metadata?: import("drizzle-zod").Json | undefined;
13058
12839
  }, {
13059
- data: import("drizzle-zod").Json;
13060
- source: string;
13061
12840
  category: string;
12841
+ source: string;
12842
+ data: import("drizzle-zod").Json;
13062
12843
  planId: string;
13063
12844
  entityType: string;
13064
12845
  entityIdentifier: string;
@@ -13910,41 +13691,41 @@ export declare const insertChannelSchema: z.ZodObject<Omit<{
13910
13691
  name: string;
13911
13692
  code: string;
13912
13693
  description: string;
13913
- displayOrder?: number | undefined;
13914
13694
  category?: string | null | undefined;
13695
+ displayOrder?: number | undefined;
13915
13696
  isActive?: number | undefined;
13916
13697
  synonyms?: string[] | null | undefined;
13917
13698
  }, {
13918
13699
  name: string;
13919
13700
  code: string;
13920
13701
  description: string;
13921
- displayOrder?: number | undefined;
13922
13702
  category?: string | null | undefined;
13703
+ displayOrder?: number | undefined;
13923
13704
  isActive?: number | undefined;
13924
13705
  synonyms?: string[] | null | undefined;
13925
13706
  }>;
13926
13707
  export declare const updateChannelSchema: z.ZodObject<{
13927
13708
  name: z.ZodOptional<z.ZodString>;
13928
13709
  code: z.ZodOptional<z.ZodString>;
13710
+ category: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13929
13711
  displayOrder: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
13930
13712
  description: z.ZodOptional<z.ZodString>;
13931
- category: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
13932
13713
  isActive: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
13933
13714
  synonyms: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>>;
13934
13715
  }, "strip", z.ZodTypeAny, {
13935
13716
  name?: string | undefined;
13936
13717
  code?: string | undefined;
13718
+ category?: string | null | undefined;
13937
13719
  displayOrder?: number | undefined;
13938
13720
  description?: string | undefined;
13939
- category?: string | null | undefined;
13940
13721
  isActive?: number | undefined;
13941
13722
  synonyms?: string[] | null | undefined;
13942
13723
  }, {
13943
13724
  name?: string | undefined;
13944
13725
  code?: string | undefined;
13726
+ category?: string | null | undefined;
13945
13727
  displayOrder?: number | undefined;
13946
13728
  description?: string | undefined;
13947
- category?: string | null | undefined;
13948
13729
  isActive?: number | undefined;
13949
13730
  synonyms?: string[] | null | undefined;
13950
13731
  }>;
@@ -14591,8 +14372,8 @@ export declare const insertProductSchema: z.ZodObject<Omit<{
14591
14372
  code: string;
14592
14373
  description: string;
14593
14374
  kpis: string[];
14594
- displayOrder?: number | undefined;
14595
14375
  strengths?: string[] | null | undefined;
14376
+ displayOrder?: number | undefined;
14596
14377
  disclaimer?: string | null | undefined;
14597
14378
  minimumBudget?: number | null | undefined;
14598
14379
  minimumCommitmentMonths?: number | null | undefined;
@@ -14614,8 +14395,8 @@ export declare const insertProductSchema: z.ZodObject<Omit<{
14614
14395
  code: string;
14615
14396
  description: string;
14616
14397
  kpis: string[];
14617
- displayOrder?: number | undefined;
14618
14398
  strengths?: string[] | null | undefined;
14399
+ displayOrder?: number | undefined;
14619
14400
  disclaimer?: string | null | undefined;
14620
14401
  minimumBudget?: number | null | undefined;
14621
14402
  minimumCommitmentMonths?: number | null | undefined;
@@ -14636,8 +14417,8 @@ export declare const insertProductSchema: z.ZodObject<Omit<{
14636
14417
  export declare const updateProductSchema: z.ZodObject<{
14637
14418
  name: z.ZodOptional<z.ZodString>;
14638
14419
  code: z.ZodOptional<z.ZodString>;
14639
- displayOrder: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
14640
14420
  strengths: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>>;
14421
+ displayOrder: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
14641
14422
  description: z.ZodOptional<z.ZodString>;
14642
14423
  kpis: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
14643
14424
  disclaimer: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -14659,8 +14440,8 @@ export declare const updateProductSchema: z.ZodObject<{
14659
14440
  }, "strip", z.ZodTypeAny, {
14660
14441
  name?: string | undefined;
14661
14442
  code?: string | undefined;
14662
- displayOrder?: number | undefined;
14663
14443
  strengths?: string[] | null | undefined;
14444
+ displayOrder?: number | undefined;
14664
14445
  description?: string | undefined;
14665
14446
  kpis?: string[] | undefined;
14666
14447
  disclaimer?: string | null | undefined;
@@ -14682,8 +14463,8 @@ export declare const updateProductSchema: z.ZodObject<{
14682
14463
  }, {
14683
14464
  name?: string | undefined;
14684
14465
  code?: string | undefined;
14685
- displayOrder?: number | undefined;
14686
14466
  strengths?: string[] | null | undefined;
14467
+ displayOrder?: number | undefined;
14687
14468
  description?: string | undefined;
14688
14469
  kpis?: string[] | undefined;
14689
14470
  disclaimer?: string | null | undefined;
@@ -15850,8 +15631,8 @@ export declare const insertMarketSchema: z.ZodObject<Omit<{
15850
15631
  createdAt: z.ZodOptional<z.ZodDate>;
15851
15632
  updatedAt: z.ZodOptional<z.ZodDate>;
15852
15633
  }, "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
15853
- id: string;
15854
15634
  name: string;
15635
+ id: string;
15855
15636
  centerLat: number;
15856
15637
  centerLng: number;
15857
15638
  population?: number | null | undefined;
@@ -15866,8 +15647,8 @@ export declare const insertMarketSchema: z.ZodObject<Omit<{
15866
15647
  timezone?: string | null | undefined;
15867
15648
  dmaCode?: string | null | undefined;
15868
15649
  }, {
15869
- id: string;
15870
15650
  name: string;
15651
+ id: string;
15871
15652
  centerLat: number;
15872
15653
  centerLng: number;
15873
15654
  population?: number | null | undefined;
@@ -15883,8 +15664,8 @@ export declare const insertMarketSchema: z.ZodObject<Omit<{
15883
15664
  dmaCode?: string | null | undefined;
15884
15665
  }>;
15885
15666
  export declare const updateMarketSchema: z.ZodObject<{
15886
- id: z.ZodOptional<z.ZodString>;
15887
15667
  name: z.ZodOptional<z.ZodString>;
15668
+ id: z.ZodOptional<z.ZodString>;
15888
15669
  population: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
15889
15670
  isActive: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
15890
15671
  centerLat: z.ZodOptional<z.ZodNumber>;
@@ -15904,8 +15685,8 @@ export declare const updateMarketSchema: z.ZodObject<{
15904
15685
  timezone: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15905
15686
  dmaCode: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
15906
15687
  }, "strip", z.ZodTypeAny, {
15907
- id?: string | undefined;
15908
15688
  name?: string | undefined;
15689
+ id?: string | undefined;
15909
15690
  population?: number | null | undefined;
15910
15691
  isActive?: number | undefined;
15911
15692
  centerLat?: number | undefined;
@@ -15920,8 +15701,8 @@ export declare const updateMarketSchema: z.ZodObject<{
15920
15701
  timezone?: string | null | undefined;
15921
15702
  dmaCode?: string | null | undefined;
15922
15703
  }, {
15923
- id?: string | undefined;
15924
15704
  name?: string | undefined;
15705
+ id?: string | undefined;
15925
15706
  population?: number | null | undefined;
15926
15707
  isActive?: number | undefined;
15927
15708
  centerLat?: number | undefined;
@@ -16062,13 +15843,13 @@ export declare const insertPartnerMarketSchema: z.ZodObject<Omit<{
16062
15843
  sortOrder: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
16063
15844
  createdAt: z.ZodOptional<z.ZodDate>;
16064
15845
  }, "id" | "createdAt">, "strip", z.ZodTypeAny, {
16065
- partnerId: string;
16066
15846
  marketId: string;
15847
+ partnerId: string;
16067
15848
  isDefault?: number | undefined;
16068
15849
  sortOrder?: number | null | undefined;
16069
15850
  }, {
16070
- partnerId: string;
16071
15851
  marketId: string;
15852
+ partnerId: string;
16072
15853
  isDefault?: number | undefined;
16073
15854
  sortOrder?: number | null | undefined;
16074
15855
  }>;
@@ -16577,8 +16358,8 @@ export declare const insertPartnerSchema: z.ZodObject<Omit<{
16577
16358
  createdBy: z.ZodOptional<z.ZodNullable<z.ZodString>>;
16578
16359
  updatedAt: z.ZodOptional<z.ZodDate>;
16579
16360
  }, "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
16580
- id: string;
16581
16361
  name: string;
16362
+ id: string;
16582
16363
  status?: string | undefined;
16583
16364
  tier?: string | undefined;
16584
16365
  createdBy?: string | null | undefined;
@@ -16603,8 +16384,8 @@ export declare const insertPartnerSchema: z.ZodObject<Omit<{
16603
16384
  maxUsers?: number | undefined;
16604
16385
  maxPlansPerMonth?: number | undefined;
16605
16386
  }, {
16606
- id: string;
16607
16387
  name: string;
16388
+ id: string;
16608
16389
  status?: string | undefined;
16609
16390
  tier?: string | undefined;
16610
16391
  createdBy?: string | null | undefined;
@@ -17602,9 +17383,9 @@ export declare const insertPartnerCustomProductSchema: z.ZodObject<Omit<{
17602
17383
  createdBy: string;
17603
17384
  minBudget: number;
17604
17385
  maxBudget: number;
17605
- displayOrder?: number | undefined;
17606
- strengths?: string[] | null | undefined;
17607
17386
  category?: string | null | undefined;
17387
+ strengths?: string[] | null | undefined;
17388
+ displayOrder?: number | undefined;
17608
17389
  targetIndustries?: string[] | null | undefined;
17609
17390
  useCases?: string[] | null | undefined;
17610
17391
  isActive?: number | undefined;
@@ -17624,9 +17405,9 @@ export declare const insertPartnerCustomProductSchema: z.ZodObject<Omit<{
17624
17405
  createdBy: string;
17625
17406
  minBudget: number;
17626
17407
  maxBudget: number;
17627
- displayOrder?: number | undefined;
17628
- strengths?: string[] | null | undefined;
17629
17408
  category?: string | null | undefined;
17409
+ strengths?: string[] | null | undefined;
17410
+ displayOrder?: number | undefined;
17630
17411
  targetIndustries?: string[] | null | undefined;
17631
17412
  useCases?: string[] | null | undefined;
17632
17413
  isActive?: number | undefined;
@@ -17641,11 +17422,11 @@ export declare const insertPartnerCustomProductSchema: z.ZodObject<Omit<{
17641
17422
  export declare const updatePartnerCustomProductSchema: z.ZodObject<{
17642
17423
  name: z.ZodOptional<z.ZodString>;
17643
17424
  code: z.ZodOptional<z.ZodString>;
17425
+ category: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
17426
+ strengths: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>>;
17644
17427
  partnerId: z.ZodOptional<z.ZodString>;
17645
17428
  displayOrder: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
17646
- strengths: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>>;
17647
17429
  description: z.ZodOptional<z.ZodString>;
17648
- category: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
17649
17430
  kpis: z.ZodOptional<z.ZodType<string[], z.ZodTypeDef, string[]>>;
17650
17431
  targetIndustries: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>>;
17651
17432
  useCases: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<string[], z.ZodTypeDef, string[]>>>>;
@@ -17667,11 +17448,11 @@ export declare const updatePartnerCustomProductSchema: z.ZodObject<{
17667
17448
  }, "strip", z.ZodTypeAny, {
17668
17449
  name?: string | undefined;
17669
17450
  code?: string | undefined;
17451
+ category?: string | null | undefined;
17452
+ strengths?: string[] | null | undefined;
17670
17453
  partnerId?: string | undefined;
17671
17454
  displayOrder?: number | undefined;
17672
- strengths?: string[] | null | undefined;
17673
17455
  description?: string | undefined;
17674
- category?: string | null | undefined;
17675
17456
  kpis?: string[] | undefined;
17676
17457
  targetIndustries?: string[] | null | undefined;
17677
17458
  useCases?: string[] | null | undefined;
@@ -17689,11 +17470,11 @@ export declare const updatePartnerCustomProductSchema: z.ZodObject<{
17689
17470
  }, {
17690
17471
  name?: string | undefined;
17691
17472
  code?: string | undefined;
17473
+ category?: string | null | undefined;
17474
+ strengths?: string[] | null | undefined;
17692
17475
  partnerId?: string | undefined;
17693
17476
  displayOrder?: number | undefined;
17694
- strengths?: string[] | null | undefined;
17695
17477
  description?: string | undefined;
17696
- category?: string | null | undefined;
17697
17478
  kpis?: string[] | undefined;
17698
17479
  targetIndustries?: string[] | null | undefined;
17699
17480
  useCases?: string[] | null | undefined;
@@ -24922,9 +24703,9 @@ export declare const insertPdfTemplateSchema: z.ZodObject<Omit<{
24922
24703
  fileSize: number;
24923
24704
  storageKey: string;
24924
24705
  status?: string | undefined;
24706
+ category?: string | null | undefined;
24925
24707
  partnerId?: string | null | undefined;
24926
24708
  description?: string | null | undefined;
24927
- category?: string | null | undefined;
24928
24709
  version?: number | undefined;
24929
24710
  metadata?: {
24930
24711
  pageCount?: number;
@@ -24952,9 +24733,9 @@ export declare const insertPdfTemplateSchema: z.ZodObject<Omit<{
24952
24733
  fileSize: number;
24953
24734
  storageKey: string;
24954
24735
  status?: string | undefined;
24736
+ category?: string | null | undefined;
24955
24737
  partnerId?: string | null | undefined;
24956
24738
  description?: string | null | undefined;
24957
- category?: string | null | undefined;
24958
24739
  version?: number | undefined;
24959
24740
  metadata?: {
24960
24741
  pageCount?: number;
@@ -25076,11 +24857,11 @@ export declare const insertPdfTemplateUsageSchema: z.ZodObject<Omit<{
25076
24857
  }>;
25077
24858
  export declare const updatePdfTemplateSchema: z.ZodObject<{
25078
24859
  name: z.ZodOptional<z.ZodString>;
25079
- type: z.ZodOptional<z.ZodString>;
25080
24860
  status: z.ZodOptional<z.ZodOptional<z.ZodString>>;
24861
+ type: z.ZodOptional<z.ZodString>;
24862
+ category: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
25081
24863
  partnerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
25082
24864
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
25083
- category: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
25084
24865
  createdBy: z.ZodOptional<z.ZodString>;
25085
24866
  version: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
25086
24867
  metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodType<{
@@ -25116,11 +24897,11 @@ export declare const updatePdfTemplateSchema: z.ZodObject<{
25116
24897
  archivedAt: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodDate>>>;
25117
24898
  }, "strip", z.ZodTypeAny, {
25118
24899
  name?: string | undefined;
25119
- type?: string | undefined;
25120
24900
  status?: string | undefined;
24901
+ type?: string | undefined;
24902
+ category?: string | null | undefined;
25121
24903
  partnerId?: string | null | undefined;
25122
24904
  description?: string | null | undefined;
25123
- category?: string | null | undefined;
25124
24905
  createdBy?: string | undefined;
25125
24906
  version?: number | undefined;
25126
24907
  metadata?: {
@@ -25146,11 +24927,11 @@ export declare const updatePdfTemplateSchema: z.ZodObject<{
25146
24927
  archivedAt?: Date | null | undefined;
25147
24928
  }, {
25148
24929
  name?: string | undefined;
25149
- type?: string | undefined;
25150
24930
  status?: string | undefined;
24931
+ type?: string | undefined;
24932
+ category?: string | null | undefined;
25151
24933
  partnerId?: string | null | undefined;
25152
24934
  description?: string | null | undefined;
25153
- category?: string | null | undefined;
25154
24935
  createdBy?: string | undefined;
25155
24936
  version?: number | undefined;
25156
24937
  metadata?: {
@@ -25713,9 +25494,9 @@ export declare const insertPdfTemplateFieldMappingSchema: z.ZodObject<Omit<{
25713
25494
  placeholderName: string;
25714
25495
  dataSource: string;
25715
25496
  fieldPath: string;
25497
+ category?: string | null | undefined;
25716
25498
  partnerId?: string | null | undefined;
25717
25499
  description?: string | null | undefined;
25718
- category?: string | null | undefined;
25719
25500
  updatedBy?: string | null | undefined;
25720
25501
  placeholderPattern?: string | null | undefined;
25721
25502
  transformFunction?: string | null | undefined;
@@ -25734,9 +25515,9 @@ export declare const insertPdfTemplateFieldMappingSchema: z.ZodObject<Omit<{
25734
25515
  placeholderName: string;
25735
25516
  dataSource: string;
25736
25517
  fieldPath: string;
25518
+ category?: string | null | undefined;
25737
25519
  partnerId?: string | null | undefined;
25738
25520
  description?: string | null | undefined;
25739
- category?: string | null | undefined;
25740
25521
  updatedBy?: string | null | undefined;
25741
25522
  placeholderPattern?: string | null | undefined;
25742
25523
  transformFunction?: string | null | undefined;
@@ -25765,8 +25546,8 @@ export declare const insertDefaultFieldMappingSchema: z.ZodObject<Omit<{
25765
25546
  placeholderName: string;
25766
25547
  dataSource: string;
25767
25548
  fieldPath: string;
25768
- description?: string | null | undefined;
25769
25549
  category?: string | null | undefined;
25550
+ description?: string | null | undefined;
25770
25551
  transformFunction?: string | null | undefined;
25771
25552
  formatOptions?: import("drizzle-zod").Json | undefined;
25772
25553
  commonPatterns?: string[] | null | undefined;
@@ -25774,16 +25555,16 @@ export declare const insertDefaultFieldMappingSchema: z.ZodObject<Omit<{
25774
25555
  placeholderName: string;
25775
25556
  dataSource: string;
25776
25557
  fieldPath: string;
25777
- description?: string | null | undefined;
25778
25558
  category?: string | null | undefined;
25559
+ description?: string | null | undefined;
25779
25560
  transformFunction?: string | null | undefined;
25780
25561
  formatOptions?: import("drizzle-zod").Json | undefined;
25781
25562
  commonPatterns?: string[] | null | undefined;
25782
25563
  }>;
25783
25564
  export declare const updatePdfTemplateFieldMappingSchema: z.ZodObject<{
25565
+ category: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
25784
25566
  partnerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
25785
25567
  description: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
25786
- category: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
25787
25568
  createdBy: z.ZodOptional<z.ZodString>;
25788
25569
  updatedBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
25789
25570
  templateId: z.ZodOptional<z.ZodString>;
@@ -25808,9 +25589,9 @@ export declare const updatePdfTemplateFieldMappingSchema: z.ZodObject<{
25808
25589
  defaultValue: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
25809
25590
  isRequired: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
25810
25591
  }, "strip", z.ZodTypeAny, {
25592
+ category?: string | null | undefined;
25811
25593
  partnerId?: string | null | undefined;
25812
25594
  description?: string | null | undefined;
25813
- category?: string | null | undefined;
25814
25595
  createdBy?: string | undefined;
25815
25596
  updatedBy?: string | null | undefined;
25816
25597
  templateId?: string | undefined;
@@ -25829,9 +25610,9 @@ export declare const updatePdfTemplateFieldMappingSchema: z.ZodObject<{
25829
25610
  defaultValue?: string | null | undefined;
25830
25611
  isRequired?: number | undefined;
25831
25612
  }, {
25613
+ category?: string | null | undefined;
25832
25614
  partnerId?: string | null | undefined;
25833
25615
  description?: string | null | undefined;
25834
- category?: string | null | undefined;
25835
25616
  createdBy?: string | undefined;
25836
25617
  updatedBy?: string | null | undefined;
25837
25618
  templateId?: string | undefined;
@@ -29648,10 +29429,10 @@ export declare const insertBusinessDomainSchema: z.ZodObject<Omit<{
29648
29429
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
29649
29430
  }, "id" | "createdAt" | "updatedAt" | "firstSeenAt">, "strip", z.ZodTypeAny, {
29650
29431
  normalizedDomain: string;
29432
+ businessName?: string | null | undefined;
29651
29433
  logoUrl?: string | null | undefined;
29652
29434
  faviconUrl?: string | null | undefined;
29653
29435
  displayDomain?: string | null | undefined;
29654
- businessName?: string | null | undefined;
29655
29436
  primaryUrl?: string | null | undefined;
29656
29437
  brandColorPrimary?: string | null | undefined;
29657
29438
  externalIds?: {
@@ -29663,10 +29444,10 @@ export declare const insertBusinessDomainSchema: z.ZodObject<Omit<{
29663
29444
  lastRefreshedAt?: Date | null | undefined;
29664
29445
  }, {
29665
29446
  normalizedDomain: string;
29447
+ businessName?: string | null | undefined;
29666
29448
  logoUrl?: string | null | undefined;
29667
29449
  faviconUrl?: string | null | undefined;
29668
29450
  displayDomain?: string | null | undefined;
29669
- businessName?: string | null | undefined;
29670
29451
  primaryUrl?: string | null | undefined;
29671
29452
  brandColorPrimary?: string | null | undefined;
29672
29453
  externalIds?: {
@@ -30007,9 +29788,9 @@ export declare const insertBusinessLocationSchema: z.ZodObject<Omit<{
30007
29788
  updatedAt: z.ZodOptional<z.ZodNullable<z.ZodDate>>;
30008
29789
  }, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
30009
29790
  domainId: string;
30010
- source?: string | null | undefined;
30011
29791
  city?: string | null | undefined;
30012
29792
  lat?: number | null | undefined;
29793
+ source?: string | null | undefined;
30013
29794
  googlePlaceId?: string | null | undefined;
30014
29795
  street?: string | null | undefined;
30015
29796
  region?: string | null | undefined;
@@ -30022,9 +29803,9 @@ export declare const insertBusinessLocationSchema: z.ZodObject<Omit<{
30022
29803
  lastGeocodedAt?: Date | null | undefined;
30023
29804
  }, {
30024
29805
  domainId: string;
30025
- source?: string | null | undefined;
30026
29806
  city?: string | null | undefined;
30027
29807
  lat?: number | null | undefined;
29808
+ source?: string | null | undefined;
30028
29809
  googlePlaceId?: string | null | undefined;
30029
29810
  street?: string | null | undefined;
30030
29811
  region?: string | null | undefined;
@@ -34386,8 +34167,8 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
34386
34167
  clientName: string;
34387
34168
  orderDate: string;
34388
34169
  status?: "completed" | "active" | "draft" | "pending_approval" | "approved" | "sent" | undefined;
34389
- partnerId?: string | null | undefined;
34390
34170
  hubspotCompanyId?: string | null | undefined;
34171
+ partnerId?: string | null | undefined;
34391
34172
  hubspotDealId?: string | null | undefined;
34392
34173
  createdBy?: string | null | undefined;
34393
34174
  createdByUserId?: string | null | undefined;
@@ -34469,8 +34250,8 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
34469
34250
  clientName: string;
34470
34251
  orderDate: string;
34471
34252
  status?: "completed" | "active" | "draft" | "pending_approval" | "approved" | "sent" | undefined;
34472
- partnerId?: string | null | undefined;
34473
34253
  hubspotCompanyId?: string | null | undefined;
34254
+ partnerId?: string | null | undefined;
34474
34255
  hubspotDealId?: string | null | undefined;
34475
34256
  createdBy?: string | null | undefined;
34476
34257
  createdByUserId?: string | null | undefined;
@@ -34551,8 +34332,8 @@ export declare const insertMediaOrderSchema: z.ZodObject<Omit<{
34551
34332
  }>;
34552
34333
  export declare const updateMediaOrderSchema: z.ZodObject<{
34553
34334
  status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["draft", "pending_approval", "approved", "sent", "active", "completed"]>>>;
34554
- partnerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
34555
34335
  hubspotCompanyId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
34336
+ partnerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
34556
34337
  hubspotDealId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
34557
34338
  createdBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
34558
34339
  createdByUserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -34638,8 +34419,8 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
34638
34419
  earlyStartReason: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
34639
34420
  }, "strip", z.ZodTypeAny, {
34640
34421
  status?: "completed" | "active" | "draft" | "pending_approval" | "approved" | "sent" | undefined;
34641
- partnerId?: string | null | undefined;
34642
34422
  hubspotCompanyId?: string | null | undefined;
34423
+ partnerId?: string | null | undefined;
34643
34424
  hubspotDealId?: string | null | undefined;
34644
34425
  createdBy?: string | null | undefined;
34645
34426
  createdByUserId?: string | null | undefined;
@@ -34721,8 +34502,8 @@ export declare const updateMediaOrderSchema: z.ZodObject<{
34721
34502
  earlyStartReason?: string | null | undefined;
34722
34503
  }, {
34723
34504
  status?: "completed" | "active" | "draft" | "pending_approval" | "approved" | "sent" | undefined;
34724
- partnerId?: string | null | undefined;
34725
34505
  hubspotCompanyId?: string | null | undefined;
34506
+ partnerId?: string | null | undefined;
34726
34507
  hubspotDealId?: string | null | undefined;
34727
34508
  createdBy?: string | null | undefined;
34728
34509
  createdByUserId?: string | null | undefined;
@@ -36493,41 +36274,41 @@ export declare const insertMediaOrderLocationSchema: z.ZodObject<Omit<{
36493
36274
  }, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
36494
36275
  mediaOrderId: string;
36495
36276
  locationName: string;
36496
- displayOrder?: number | undefined;
36497
36277
  address?: string | null | undefined;
36498
36278
  city?: string | null | undefined;
36499
36279
  state?: string | null | undefined;
36280
+ displayOrder?: number | undefined;
36500
36281
  isActive?: boolean | undefined;
36501
36282
  }, {
36502
36283
  mediaOrderId: string;
36503
36284
  locationName: string;
36504
- displayOrder?: number | undefined;
36505
36285
  address?: string | null | undefined;
36506
36286
  city?: string | null | undefined;
36507
36287
  state?: string | null | undefined;
36288
+ displayOrder?: number | undefined;
36508
36289
  isActive?: boolean | undefined;
36509
36290
  }>;
36510
36291
  export declare const updateMediaOrderLocationSchema: z.ZodObject<{
36511
- displayOrder: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
36512
36292
  address: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36513
36293
  city: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36514
36294
  state: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
36295
+ displayOrder: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
36515
36296
  isActive: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
36516
36297
  mediaOrderId: z.ZodOptional<z.ZodString>;
36517
36298
  locationName: z.ZodOptional<z.ZodString>;
36518
36299
  }, "strip", z.ZodTypeAny, {
36519
- displayOrder?: number | undefined;
36520
36300
  address?: string | null | undefined;
36521
36301
  city?: string | null | undefined;
36522
36302
  state?: string | null | undefined;
36303
+ displayOrder?: number | undefined;
36523
36304
  isActive?: boolean | undefined;
36524
36305
  mediaOrderId?: string | undefined;
36525
36306
  locationName?: string | undefined;
36526
36307
  }, {
36527
- displayOrder?: number | undefined;
36528
36308
  address?: string | null | undefined;
36529
36309
  city?: string | null | undefined;
36530
36310
  state?: string | null | undefined;
36311
+ displayOrder?: number | undefined;
36531
36312
  isActive?: boolean | undefined;
36532
36313
  mediaOrderId?: string | undefined;
36533
36314
  locationName?: string | undefined;
@@ -36971,6 +36752,141 @@ export declare const updateStribProductCategorySchema: z.ZodObject<{
36971
36752
  }>;
36972
36753
  export type StribProductCategory = typeof stribProductCategories.$inferSelect;
36973
36754
  export type InsertStribProductCategory = z.infer<typeof insertStribProductCategorySchema>;
36755
+ /**
36756
+ * product_usage_stats — Aggregated product usage frequency per partner.
36757
+ * Updated daily by fn-v2 cron task. Drives dynamic sort in catalog UX.
36758
+ */
36759
+ export declare const productUsageStats: import("drizzle-orm/pg-core").PgTableWithColumns<{
36760
+ name: "product_usage_stats";
36761
+ schema: undefined;
36762
+ columns: {
36763
+ id: import("drizzle-orm/pg-core").PgColumn<{
36764
+ name: "id";
36765
+ tableName: "product_usage_stats";
36766
+ dataType: "string";
36767
+ columnType: "PgUUID";
36768
+ data: string;
36769
+ driverParam: string;
36770
+ notNull: true;
36771
+ hasDefault: true;
36772
+ isPrimaryKey: true;
36773
+ isAutoincrement: false;
36774
+ hasRuntimeDefault: false;
36775
+ enumValues: undefined;
36776
+ baseColumn: never;
36777
+ identity: undefined;
36778
+ generated: undefined;
36779
+ }, {}, {}>;
36780
+ partnerId: import("drizzle-orm/pg-core").PgColumn<{
36781
+ name: "partner_id";
36782
+ tableName: "product_usage_stats";
36783
+ dataType: "string";
36784
+ columnType: "PgVarchar";
36785
+ data: string;
36786
+ driverParam: string;
36787
+ notNull: true;
36788
+ hasDefault: false;
36789
+ isPrimaryKey: false;
36790
+ isAutoincrement: false;
36791
+ hasRuntimeDefault: false;
36792
+ enumValues: [string, ...string[]];
36793
+ baseColumn: never;
36794
+ identity: undefined;
36795
+ generated: undefined;
36796
+ }, {}, {
36797
+ length: number | undefined;
36798
+ }>;
36799
+ productCode: import("drizzle-orm/pg-core").PgColumn<{
36800
+ name: "product_code";
36801
+ tableName: "product_usage_stats";
36802
+ dataType: "string";
36803
+ columnType: "PgVarchar";
36804
+ data: string;
36805
+ driverParam: string;
36806
+ notNull: true;
36807
+ hasDefault: false;
36808
+ isPrimaryKey: false;
36809
+ isAutoincrement: false;
36810
+ hasRuntimeDefault: false;
36811
+ enumValues: [string, ...string[]];
36812
+ baseColumn: never;
36813
+ identity: undefined;
36814
+ generated: undefined;
36815
+ }, {}, {
36816
+ length: number | undefined;
36817
+ }>;
36818
+ lineItemCount30d: import("drizzle-orm/pg-core").PgColumn<{
36819
+ name: "line_item_count_30d";
36820
+ tableName: "product_usage_stats";
36821
+ dataType: "number";
36822
+ columnType: "PgInteger";
36823
+ data: number;
36824
+ driverParam: string | number;
36825
+ notNull: true;
36826
+ hasDefault: true;
36827
+ isPrimaryKey: false;
36828
+ isAutoincrement: false;
36829
+ hasRuntimeDefault: false;
36830
+ enumValues: undefined;
36831
+ baseColumn: never;
36832
+ identity: undefined;
36833
+ generated: undefined;
36834
+ }, {}, {}>;
36835
+ lineItemCount90d: import("drizzle-orm/pg-core").PgColumn<{
36836
+ name: "line_item_count_90d";
36837
+ tableName: "product_usage_stats";
36838
+ dataType: "number";
36839
+ columnType: "PgInteger";
36840
+ data: number;
36841
+ driverParam: string | number;
36842
+ notNull: true;
36843
+ hasDefault: true;
36844
+ isPrimaryKey: false;
36845
+ isAutoincrement: false;
36846
+ hasRuntimeDefault: false;
36847
+ enumValues: undefined;
36848
+ baseColumn: never;
36849
+ identity: undefined;
36850
+ generated: undefined;
36851
+ }, {}, {}>;
36852
+ lastUsedAt: import("drizzle-orm/pg-core").PgColumn<{
36853
+ name: "last_used_at";
36854
+ tableName: "product_usage_stats";
36855
+ dataType: "date";
36856
+ columnType: "PgTimestamp";
36857
+ data: Date;
36858
+ driverParam: string;
36859
+ notNull: false;
36860
+ hasDefault: false;
36861
+ isPrimaryKey: false;
36862
+ isAutoincrement: false;
36863
+ hasRuntimeDefault: false;
36864
+ enumValues: undefined;
36865
+ baseColumn: never;
36866
+ identity: undefined;
36867
+ generated: undefined;
36868
+ }, {}, {}>;
36869
+ updatedAt: import("drizzle-orm/pg-core").PgColumn<{
36870
+ name: "updated_at";
36871
+ tableName: "product_usage_stats";
36872
+ dataType: "date";
36873
+ columnType: "PgTimestamp";
36874
+ data: Date;
36875
+ driverParam: string;
36876
+ notNull: true;
36877
+ hasDefault: true;
36878
+ isPrimaryKey: false;
36879
+ isAutoincrement: false;
36880
+ hasRuntimeDefault: false;
36881
+ enumValues: undefined;
36882
+ baseColumn: never;
36883
+ identity: undefined;
36884
+ generated: undefined;
36885
+ }, {}, {}>;
36886
+ };
36887
+ dialect: "pg";
36888
+ }>;
36889
+ export type ProductUsageStat = typeof productUsageStats.$inferSelect;
36974
36890
  /**
36975
36891
  * strib_products — the actual sellable items (~150–200).
36976
36892
  * One row per SKU-level product. Links to Naviga billing identifiers.
@@ -37992,8 +37908,8 @@ export declare const insertStribProductSchema: z.ZodObject<Omit<{
37992
37908
  categoryId: string;
37993
37909
  rateUnit: string;
37994
37910
  notes?: string | null | undefined;
37995
- displayOrder?: number | null | undefined;
37996
37911
  strengths?: string[] | null | undefined;
37912
+ displayOrder?: number | null | undefined;
37997
37913
  kpis?: string[] | null | undefined;
37998
37914
  disclaimer?: string | null | undefined;
37999
37915
  minimumBudget?: string | null | undefined;
@@ -38038,8 +37954,8 @@ export declare const insertStribProductSchema: z.ZodObject<Omit<{
38038
37954
  categoryId: string;
38039
37955
  rateUnit: string;
38040
37956
  notes?: string | null | undefined;
38041
- displayOrder?: number | null | undefined;
38042
37957
  strengths?: string[] | null | undefined;
37958
+ displayOrder?: number | null | undefined;
38043
37959
  kpis?: string[] | null | undefined;
38044
37960
  disclaimer?: string | null | undefined;
38045
37961
  minimumBudget?: string | null | undefined;
@@ -38080,10 +37996,10 @@ export declare const insertStribProductSchema: z.ZodObject<Omit<{
38080
37996
  }>;
38081
37997
  export declare const updateStribProductSchema: z.ZodObject<{
38082
37998
  name: z.ZodOptional<z.ZodString>;
38083
- code: z.ZodOptional<z.ZodString>;
38084
37999
  notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38085
- displayOrder: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
38000
+ code: z.ZodOptional<z.ZodString>;
38086
38001
  strengths: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>>;
38002
+ displayOrder: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNumber>>>;
38087
38003
  kpis: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>>;
38088
38004
  disclaimer: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
38089
38005
  minimumBudget: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
@@ -38126,10 +38042,10 @@ export declare const updateStribProductSchema: z.ZodObject<{
38126
38042
  approvalEnabled: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
38127
38043
  }, "strip", z.ZodTypeAny, {
38128
38044
  name?: string | undefined;
38129
- code?: string | undefined;
38130
38045
  notes?: string | null | undefined;
38131
- displayOrder?: number | null | undefined;
38046
+ code?: string | undefined;
38132
38047
  strengths?: string[] | null | undefined;
38048
+ displayOrder?: number | null | undefined;
38133
38049
  kpis?: string[] | null | undefined;
38134
38050
  disclaimer?: string | null | undefined;
38135
38051
  minimumBudget?: string | null | undefined;
@@ -38172,10 +38088,10 @@ export declare const updateStribProductSchema: z.ZodObject<{
38172
38088
  approvalEnabled?: boolean | undefined;
38173
38089
  }, {
38174
38090
  name?: string | undefined;
38175
- code?: string | undefined;
38176
38091
  notes?: string | null | undefined;
38177
- displayOrder?: number | null | undefined;
38092
+ code?: string | undefined;
38178
38093
  strengths?: string[] | null | undefined;
38094
+ displayOrder?: number | null | undefined;
38179
38095
  kpis?: string[] | null | undefined;
38180
38096
  disclaimer?: string | null | undefined;
38181
38097
  minimumBudget?: string | null | undefined;
@@ -39524,8 +39440,8 @@ export declare const insertStribProductHoldSchema: z.ZodObject<Omit<{
39524
39440
  clientName: string;
39525
39441
  productId: string;
39526
39442
  holdDate: string;
39527
- status?: string | undefined;
39528
39443
  notes?: string | null | undefined;
39444
+ status?: string | undefined;
39529
39445
  expiresAt?: Date | null | undefined;
39530
39446
  mediaOrderId?: string | null | undefined;
39531
39447
  holdEndDate?: string | null | undefined;
@@ -39539,8 +39455,8 @@ export declare const insertStribProductHoldSchema: z.ZodObject<Omit<{
39539
39455
  clientName: string;
39540
39456
  productId: string;
39541
39457
  holdDate: string;
39542
- status?: string | undefined;
39543
39458
  notes?: string | null | undefined;
39459
+ status?: string | undefined;
39544
39460
  expiresAt?: Date | null | undefined;
39545
39461
  mediaOrderId?: string | null | undefined;
39546
39462
  holdEndDate?: string | null | undefined;
@@ -44987,7 +44903,7 @@ export declare const annotationTemplates: import("drizzle-orm/pg-core").PgTableW
44987
44903
  tableName: "annotation_templates";
44988
44904
  dataType: "string";
44989
44905
  columnType: "PgEnumColumn";
44990
- data: "scope" | "competitor" | "channel_weight" | "product" | "tier" | "exclusion" | "strategy_pillar" | "risk_item" | "assumption" | "measurement_kpi" | "tracking_prereq" | "other";
44906
+ data: "other" | "scope" | "competitor" | "channel_weight" | "product" | "tier" | "exclusion" | "strategy_pillar" | "risk_item" | "assumption" | "measurement_kpi" | "tracking_prereq";
44991
44907
  driverParam: string;
44992
44908
  notNull: true;
44993
44909
  hasDefault: false;
@@ -46992,7 +46908,7 @@ export declare const planAnnotations: import("drizzle-orm/pg-core").PgTableWithC
46992
46908
  tableName: "plan_annotations";
46993
46909
  dataType: "string";
46994
46910
  columnType: "PgEnumColumn";
46995
- data: "scope" | "competitor" | "channel_weight" | "product" | "tier" | "exclusion" | "strategy_pillar" | "risk_item" | "assumption" | "measurement_kpi" | "tracking_prereq" | "other";
46911
+ data: "other" | "scope" | "competitor" | "channel_weight" | "product" | "tier" | "exclusion" | "strategy_pillar" | "risk_item" | "assumption" | "measurement_kpi" | "tracking_prereq";
46996
46912
  driverParam: string;
46997
46913
  notNull: true;
46998
46914
  hasDefault: false;
@@ -50219,13 +50135,13 @@ export declare const insertDatasysAdvertiserSchema: z.ZodObject<Omit<{
50219
50135
  }, "id" | "createdAt" | "updatedAt">, "strip", z.ZodTypeAny, {
50220
50136
  clientName: string;
50221
50137
  datasysAdvertiserId: string;
50222
- partnerId?: string | null | undefined;
50223
50138
  hubspotCompanyId?: string | null | undefined;
50139
+ partnerId?: string | null | undefined;
50224
50140
  }, {
50225
50141
  clientName: string;
50226
50142
  datasysAdvertiserId: string;
50227
- partnerId?: string | null | undefined;
50228
50143
  hubspotCompanyId?: string | null | undefined;
50144
+ partnerId?: string | null | undefined;
50229
50145
  }>;
50230
50146
  export type DatasysAdvertiser = typeof datasysAdvertisers.$inferSelect;
50231
50147
  export type InsertDatasysAdvertiser = z.infer<typeof insertDatasysAdvertiserSchema>;
@@ -52961,8 +52877,8 @@ export declare const insertContractSchema: z.ZodObject<Omit<{
52961
52877
  tierCode: string;
52962
52878
  startDate: string;
52963
52879
  endDate: string;
52964
- status?: "completed" | "active" | "draft" | "cancelled" | undefined;
52965
52880
  notes?: string | null | undefined;
52881
+ status?: "completed" | "active" | "draft" | "cancelled" | undefined;
52966
52882
  partnerId?: string | null | undefined;
52967
52883
  hubspotDealId?: string | null | undefined;
52968
52884
  createdByUserId?: string | null | undefined;
@@ -52986,8 +52902,8 @@ export declare const insertContractSchema: z.ZodObject<Omit<{
52986
52902
  tierCode: string;
52987
52903
  startDate: string;
52988
52904
  endDate: string;
52989
- status?: "completed" | "active" | "draft" | "cancelled" | undefined;
52990
52905
  notes?: string | null | undefined;
52906
+ status?: "completed" | "active" | "draft" | "cancelled" | undefined;
52991
52907
  partnerId?: string | null | undefined;
52992
52908
  hubspotDealId?: string | null | undefined;
52993
52909
  createdByUserId?: string | null | undefined;
@@ -53008,10 +52924,10 @@ export declare const insertContractSchema: z.ZodObject<Omit<{
53008
52924
  }>;
53009
52925
  export declare const updateContractSchema: z.ZodObject<{
53010
52926
  name: z.ZodOptional<z.ZodString>;
53011
- status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["draft", "active", "completed", "cancelled"]>>>;
53012
52927
  notes: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
53013
- partnerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
52928
+ status: z.ZodOptional<z.ZodOptional<z.ZodEnum<["draft", "active", "completed", "cancelled"]>>>;
53014
52929
  hubspotCompanyId: z.ZodOptional<z.ZodString>;
52930
+ partnerId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
53015
52931
  hubspotDealId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
53016
52932
  createdByUserId: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
53017
52933
  tierCode: z.ZodOptional<z.ZodString>;
@@ -53033,10 +52949,10 @@ export declare const updateContractSchema: z.ZodObject<{
53033
52949
  sentForSigningBy: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
53034
52950
  }, "strip", z.ZodTypeAny, {
53035
52951
  name?: string | undefined;
53036
- status?: "completed" | "active" | "draft" | "cancelled" | undefined;
53037
52952
  notes?: string | null | undefined;
53038
- partnerId?: string | null | undefined;
52953
+ status?: "completed" | "active" | "draft" | "cancelled" | undefined;
53039
52954
  hubspotCompanyId?: string | undefined;
52955
+ partnerId?: string | null | undefined;
53040
52956
  hubspotDealId?: string | null | undefined;
53041
52957
  createdByUserId?: string | null | undefined;
53042
52958
  tierCode?: string | undefined;
@@ -53058,10 +52974,10 @@ export declare const updateContractSchema: z.ZodObject<{
53058
52974
  sentForSigningBy?: string | null | undefined;
53059
52975
  }, {
53060
52976
  name?: string | undefined;
53061
- status?: "completed" | "active" | "draft" | "cancelled" | undefined;
53062
52977
  notes?: string | null | undefined;
53063
- partnerId?: string | null | undefined;
52978
+ status?: "completed" | "active" | "draft" | "cancelled" | undefined;
53064
52979
  hubspotCompanyId?: string | undefined;
52980
+ partnerId?: string | null | undefined;
53065
52981
  hubspotDealId?: string | null | undefined;
53066
52982
  createdByUserId?: string | null | undefined;
53067
52983
  tierCode?: string | undefined;