@fern-api/fdr-sdk 1.2.46-67cc01c865 → 1.2.46-9cc0fe9249
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/js/navigation/ledger-root-builder.js +6 -8
- package/dist/js/navigation/ledger-root-builder.js.map +1 -1
- package/dist/js/navigation/ledger-root-builder.mjs +6 -8
- package/dist/js/navigation/ledger-root-builder.mjs.map +1 -1
- package/dist/navigation/ledger-root-builder.d.ts.map +1 -1
- package/dist/navigation/ledger-root-builder.js +6 -12
- package/dist/navigation/ledger-root-builder.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/navigation/ledger-root-builder.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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 = metaStr(
|
|
1451
|
+
const overviewPageId = overview != null ? metaStr(overview.metadata, "pageId") : void 0;
|
|
1452
1452
|
const apiDefinitionId = metaStr(seg.metadata, "apiDefinitionId") ?? parentApiDefinitionId;
|
|
1453
1453
|
const slug = structuralNodeSlug(
|
|
1454
1454
|
ctx,
|
|
@@ -1456,6 +1456,7 @@ 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");
|
|
1459
1460
|
const children = buildApiChildren(ctx, scoped, scopeSegs, apiDefinitionId, scopePrefix);
|
|
1460
1461
|
return {
|
|
1461
1462
|
type: "apiPackage",
|
|
@@ -1474,9 +1475,7 @@ function apiPackageChildNode(ctx, scoped, scopeSegs, parentApiDefinitionId, scop
|
|
|
1474
1475
|
availability: metaAvailability(seg.metadata),
|
|
1475
1476
|
overviewPageId: overviewPageId != null ? PageId(overviewPageId) : void 0,
|
|
1476
1477
|
noindex: metaBool(overview?.metadata, "noindex") ?? metaBool(seg.metadata, "noindex"),
|
|
1477
|
-
|
|
1478
|
-
// compute it via followRedirect, matching v2 behavior.
|
|
1479
|
-
pointsTo: void 0,
|
|
1478
|
+
pointsTo: metaPointsTo != null ? pointsToSlug(metaPointsTo) : void 0,
|
|
1480
1479
|
children,
|
|
1481
1480
|
playground: void 0
|
|
1482
1481
|
};
|
|
@@ -1536,7 +1535,7 @@ function mergeEndpointPairs(ctx, leafNodes, allNav) {
|
|
|
1536
1535
|
function apiReferenceNode(ctx, scoped, scopeSegs, scopePrefix) {
|
|
1537
1536
|
const { seg, nav } = scoped;
|
|
1538
1537
|
const overview = overviewRoute(nav);
|
|
1539
|
-
const overviewPageId = metaStr(
|
|
1538
|
+
const overviewPageId = overview != null ? metaStr(overview.metadata, "pageId") : void 0;
|
|
1540
1539
|
const apiDefinitionId = metaStr(seg.metadata, "apiDefinitionId") ?? "";
|
|
1541
1540
|
const slug = structuralNodeSlug(
|
|
1542
1541
|
ctx,
|
|
@@ -1544,6 +1543,7 @@ function apiReferenceNode(ctx, scoped, scopeSegs, scopePrefix) {
|
|
|
1544
1543
|
stripLeadingScopePrefix(seg.section, scopePrefix),
|
|
1545
1544
|
scopePrefix
|
|
1546
1545
|
);
|
|
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,9 +1566,7 @@ 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
|
-
|
|
1570
|
-
// compute it via followRedirect, matching v2 behavior.
|
|
1571
|
-
pointsTo: void 0,
|
|
1569
|
+
pointsTo: metaPointsTo != null ? pointsToSlug(metaPointsTo) : void 0,
|
|
1572
1570
|
children,
|
|
1573
1571
|
changelog,
|
|
1574
1572
|
playground: void 0,
|