@fern-api/fdr-sdk 1.2.39-b5d93657fe → 1.2.39-bcfd2ff480
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/client/FdrClient.js +1 -0
- package/dist/js/client/FdrClient.js.map +1 -1
- package/dist/js/client/FdrClient.mjs +1 -0
- package/dist/js/client/FdrClient.mjs.map +1 -1
- package/dist/js/converters/index.js +4 -9
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +4 -9
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/index.js +5 -9
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +5 -9
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/index.js +4 -9
- package/dist/js/navigation/index.js.map +1 -1
- package/dist/js/navigation/index.mjs +4 -9
- package/dist/js/navigation/index.mjs.map +1 -1
- package/dist/js/navigation/ledger-root-builder.js +265 -66
- package/dist/js/navigation/ledger-root-builder.js.map +1 -1
- package/dist/js/navigation/ledger-root-builder.mjs +265 -66
- package/dist/js/navigation/ledger-root-builder.mjs.map +1 -1
- package/dist/js/orpc-client.js +1 -0
- package/dist/js/orpc-client.js.map +1 -1
- package/dist/js/orpc-client.mjs +1 -0
- package/dist/js/orpc-client.mjs.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/navigation/__test__/findNode.authedRedirect.test.d.ts +2 -0
- package/dist/types/navigation/__test__/findNode.authedRedirect.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.apiReferenceChildren.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.apiReferenceChildren.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.collapsedDeterminism.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.collapsedDeterminism.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.landingPage.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.landingPage.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.metadataPreservation.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.metadataPreservation.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.rootSlug.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.rootSlug.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.skipSlugApiReference.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.skipSlugApiReference.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.skipSlugTabs.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.skipSlugTabs.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.unversionedPointsTo.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.unversionedPointsTo.test.d.ts.map +1 -0
- package/dist/types/navigation/__test__/ledger-root-builder.variantSharedSegments.test.d.ts +2 -0
- package/dist/types/navigation/__test__/ledger-root-builder.variantSharedSegments.test.d.ts.map +1 -0
- package/dist/types/navigation/ledger-root-builder.d.ts +17 -1
- package/dist/types/navigation/ledger-root-builder.d.ts.map +1 -1
- package/dist/types/navigation/utils/findNode.d.ts +1 -0
- package/dist/types/navigation/utils/findNode.d.ts.map +1 -1
- package/dist/types/navigation/utils/followRedirect.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/contract.d.ts +50 -0
- package/dist/types/orpc-client/docs-ledger/contract.d.ts.map +1 -1
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts +12 -0
- package/dist/types/orpc-client/docs-ledger/ledger-manifest.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -15761,12 +15761,6 @@ function findNode(root, slug) {
|
|
|
15761
15761
|
}
|
|
15762
15762
|
}
|
|
15763
15763
|
}
|
|
15764
|
-
if (!foundProductNode && isProductGroupNode(root.child) && root.child.landingPage != null) {
|
|
15765
|
-
const landingPageSlug = root.child.landingPage.slug;
|
|
15766
|
-
if (slug === landingPageSlug) {
|
|
15767
|
-
return { type: "redirect", redirect: landingPageSlug };
|
|
15768
|
-
}
|
|
15769
|
-
}
|
|
15770
15764
|
return {
|
|
15771
15765
|
type: "notFound",
|
|
15772
15766
|
// External product links don't have pointsTo, only internal products and versions do
|
|
@@ -15873,15 +15867,15 @@ function findNode(root, slug) {
|
|
|
15873
15867
|
};
|
|
15874
15868
|
}
|
|
15875
15869
|
if (root.type === "root" && root.slug === slug && root.pointsTo != null) {
|
|
15876
|
-
return { type: "redirect", redirect: root.pointsTo };
|
|
15870
|
+
return { type: "redirect", redirect: root.pointsTo, authed: root.authed };
|
|
15877
15871
|
}
|
|
15878
15872
|
if (navigation_exports.hasRedirect(found.node) && found.node.pointsTo != null) {
|
|
15879
|
-
return { type: "redirect", redirect: found.node.pointsTo };
|
|
15873
|
+
return { type: "redirect", redirect: found.node.pointsTo, authed: found.node.authed };
|
|
15880
15874
|
}
|
|
15881
15875
|
if (found.node.type === "variant" && (found.node.pointsTo == null || found.node.pointsTo === void 0)) {
|
|
15882
15876
|
const firstPage = findFirstPageInNode(found.node);
|
|
15883
15877
|
if (firstPage != null) {
|
|
15884
|
-
return { type: "redirect", redirect: firstPage };
|
|
15878
|
+
return { type: "redirect", redirect: firstPage, authed: found.node.authed };
|
|
15885
15879
|
}
|
|
15886
15880
|
}
|
|
15887
15881
|
return {
|
|
@@ -15983,6 +15977,7 @@ function followRedirect2(nodeToFollow) {
|
|
|
15983
15977
|
* Versioned and ProductGroup nodes are special in that they have a default child.
|
|
15984
15978
|
*/
|
|
15985
15979
|
case "productgroup":
|
|
15980
|
+
return followRedirect2(nodeToFollow.landingPage ?? void 0) ?? followRedirects2([...nodeToFollow.children].sort(defaultFirst));
|
|
15986
15981
|
case "versioned":
|
|
15987
15982
|
return followRedirects2([...nodeToFollow.children].sort(defaultFirst));
|
|
15988
15983
|
case "apiReference":
|