@fern-api/fdr-sdk 1.2.45-9cc0fe9249 → 1.2.46-67cc01c865

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.
@@ -1448,7 +1448,7 @@ function buildApiChildren(ctx, scoped, scopeSegs, apiDefinitionId, scopePrefix)
1448
1448
  function apiPackageChildNode(ctx, scoped, scopeSegs, parentApiDefinitionId, scopePrefix) {
1449
1449
  const { seg, nav } = scoped;
1450
1450
  const overview = overviewRoute(nav);
1451
- const overviewPageId = overview != null ? metaStr(overview.metadata, "pageId") : void 0;
1451
+ const overviewPageId = metaStr(seg.metadata, "overviewPageId");
1452
1452
  const apiDefinitionId = metaStr(seg.metadata, "apiDefinitionId") ?? parentApiDefinitionId;
1453
1453
  const slug = structuralNodeSlug(
1454
1454
  ctx,
@@ -1456,7 +1456,6 @@ function apiPackageChildNode(ctx, scoped, scopeSegs, parentApiDefinitionId, scop
1456
1456
  stripLeadingScopePrefix(seg.section, scopePrefix),
1457
1457
  scopePrefix
1458
1458
  );
1459
- const metaPointsTo = metaStr(seg.metadata, "pointsTo");
1460
1459
  const children = buildApiChildren(ctx, scoped, scopeSegs, apiDefinitionId, scopePrefix);
1461
1460
  return {
1462
1461
  type: "apiPackage",
@@ -1475,7 +1474,9 @@ function apiPackageChildNode(ctx, scoped, scopeSegs, parentApiDefinitionId, scop
1475
1474
  availability: metaAvailability(seg.metadata),
1476
1475
  overviewPageId: overviewPageId != null ? PageId(overviewPageId) : void 0,
1477
1476
  noindex: metaBool(overview?.metadata, "noindex") ?? metaBool(seg.metadata, "noindex"),
1478
- pointsTo: metaPointsTo != null ? pointsToSlug(metaPointsTo) : void 0,
1477
+ // Don't read pointsTo from metadata; let mutableUpdatePointsTo
1478
+ // compute it via followRedirect, matching v2 behavior.
1479
+ pointsTo: void 0,
1479
1480
  children,
1480
1481
  playground: void 0
1481
1482
  };
@@ -1535,7 +1536,7 @@ function mergeEndpointPairs(ctx, leafNodes, allNav) {
1535
1536
  function apiReferenceNode(ctx, scoped, scopeSegs, scopePrefix) {
1536
1537
  const { seg, nav } = scoped;
1537
1538
  const overview = overviewRoute(nav);
1538
- const overviewPageId = overview != null ? metaStr(overview.metadata, "pageId") : void 0;
1539
+ const overviewPageId = metaStr(seg.metadata, "overviewPageId");
1539
1540
  const apiDefinitionId = metaStr(seg.metadata, "apiDefinitionId") ?? "";
1540
1541
  const slug = structuralNodeSlug(
1541
1542
  ctx,
@@ -1543,7 +1544,6 @@ function apiReferenceNode(ctx, scoped, scopeSegs, scopePrefix) {
1543
1544
  stripLeadingScopePrefix(seg.section, scopePrefix),
1544
1545
  scopePrefix
1545
1546
  );
1546
- const metaPointsTo = metaStr(seg.metadata, "pointsTo");
1547
1547
  const children = buildApiChildren(ctx, scoped, scopeSegs, apiDefinitionId, scopePrefix);
1548
1548
  const changelog = attachedApiChangelogNode(ctx, scoped, scopeSegs, apiDefinitionId, scopePrefix);
1549
1549
  return {
@@ -1566,7 +1566,9 @@ function apiReferenceNode(ctx, scoped, scopeSegs, scopePrefix) {
1566
1566
  paginated: metaBool(seg.metadata, "paginated"),
1567
1567
  showErrors: metaBool(seg.metadata, "showErrors"),
1568
1568
  hideTitle: metaBool(seg.metadata, "hideTitle"),
1569
- pointsTo: metaPointsTo != null ? pointsToSlug(metaPointsTo) : void 0,
1569
+ // Don't read pointsTo from metadata; let mutableUpdatePointsTo
1570
+ // compute it via followRedirect, matching v2 behavior.
1571
+ pointsTo: void 0,
1570
1572
  children,
1571
1573
  changelog,
1572
1574
  playground: void 0,