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