@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.
@@ -1407,7 +1407,7 @@ function buildApiChildren(ctx, scoped, scopeSegs, apiDefinitionId, scopePrefix)
1407
1407
  function apiPackageChildNode(ctx, scoped, scopeSegs, parentApiDefinitionId, scopePrefix) {
1408
1408
  const { seg, nav } = scoped;
1409
1409
  const overview = overviewRoute(nav);
1410
- const overviewPageId = overview != null ? metaStr(overview.metadata, "pageId") : void 0;
1410
+ const overviewPageId = metaStr(seg.metadata, "overviewPageId");
1411
1411
  const apiDefinitionId = metaStr(seg.metadata, "apiDefinitionId") ?? parentApiDefinitionId;
1412
1412
  const slug = structuralNodeSlug(
1413
1413
  ctx,
@@ -1415,7 +1415,6 @@ function apiPackageChildNode(ctx, scoped, scopeSegs, parentApiDefinitionId, scop
1415
1415
  stripLeadingScopePrefix(seg.section, scopePrefix),
1416
1416
  scopePrefix
1417
1417
  );
1418
- const metaPointsTo = metaStr(seg.metadata, "pointsTo");
1419
1418
  const children = buildApiChildren(ctx, scoped, scopeSegs, apiDefinitionId, scopePrefix);
1420
1419
  return {
1421
1420
  type: "apiPackage",
@@ -1434,7 +1433,9 @@ function apiPackageChildNode(ctx, scoped, scopeSegs, parentApiDefinitionId, scop
1434
1433
  availability: metaAvailability(seg.metadata),
1435
1434
  overviewPageId: overviewPageId != null ? PageId(overviewPageId) : void 0,
1436
1435
  noindex: metaBool(overview?.metadata, "noindex") ?? metaBool(seg.metadata, "noindex"),
1437
- pointsTo: metaPointsTo != null ? pointsToSlug(metaPointsTo) : void 0,
1436
+ // Don't read pointsTo from metadata; let mutableUpdatePointsTo
1437
+ // compute it via followRedirect, matching v2 behavior.
1438
+ pointsTo: void 0,
1438
1439
  children,
1439
1440
  playground: void 0
1440
1441
  };
@@ -1494,7 +1495,7 @@ function mergeEndpointPairs(ctx, leafNodes, allNav) {
1494
1495
  function apiReferenceNode(ctx, scoped, scopeSegs, scopePrefix) {
1495
1496
  const { seg, nav } = scoped;
1496
1497
  const overview = overviewRoute(nav);
1497
- const overviewPageId = overview != null ? metaStr(overview.metadata, "pageId") : void 0;
1498
+ const overviewPageId = metaStr(seg.metadata, "overviewPageId");
1498
1499
  const apiDefinitionId = metaStr(seg.metadata, "apiDefinitionId") ?? "";
1499
1500
  const slug = structuralNodeSlug(
1500
1501
  ctx,
@@ -1502,7 +1503,6 @@ function apiReferenceNode(ctx, scoped, scopeSegs, scopePrefix) {
1502
1503
  stripLeadingScopePrefix(seg.section, scopePrefix),
1503
1504
  scopePrefix
1504
1505
  );
1505
- const metaPointsTo = metaStr(seg.metadata, "pointsTo");
1506
1506
  const children = buildApiChildren(ctx, scoped, scopeSegs, apiDefinitionId, scopePrefix);
1507
1507
  const changelog = attachedApiChangelogNode(ctx, scoped, scopeSegs, apiDefinitionId, scopePrefix);
1508
1508
  return {
@@ -1525,7 +1525,9 @@ function apiReferenceNode(ctx, scoped, scopeSegs, scopePrefix) {
1525
1525
  paginated: metaBool(seg.metadata, "paginated"),
1526
1526
  showErrors: metaBool(seg.metadata, "showErrors"),
1527
1527
  hideTitle: metaBool(seg.metadata, "hideTitle"),
1528
- pointsTo: metaPointsTo != null ? pointsToSlug(metaPointsTo) : void 0,
1528
+ // Don't read pointsTo from metadata; let mutableUpdatePointsTo
1529
+ // compute it via followRedirect, matching v2 behavior.
1530
+ pointsTo: void 0,
1529
1531
  children,
1530
1532
  changelog,
1531
1533
  playground: void 0,