@fern-api/fdr-sdk 1.2.39-4f09cc17dc → 1.2.39-7803ef9da9
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 +1 -6
- package/dist/js/converters/index.js.map +1 -1
- package/dist/js/converters/index.mjs +1 -6
- package/dist/js/converters/index.mjs.map +1 -1
- package/dist/js/index.js +2 -6
- package/dist/js/index.js.map +1 -1
- package/dist/js/index.mjs +2 -6
- package/dist/js/index.mjs.map +1 -1
- package/dist/js/navigation/index.js +1 -6
- package/dist/js/navigation/index.js.map +1 -1
- package/dist/js/navigation/index.mjs +1 -6
- package/dist/js/navigation/index.mjs.map +1 -1
- package/dist/js/navigation/ledger-root-builder.js +232 -59
- package/dist/js/navigation/ledger-root-builder.js.map +1 -1
- package/dist/js/navigation/ledger-root-builder.mjs +232 -59
- 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__/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.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.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.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 +12 -0
- package/dist/types/navigation/ledger-root-builder.d.ts.map +1 -1
- 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
package/dist/js/index.js
CHANGED
|
@@ -9114,6 +9114,7 @@ var LedgerAgentsConfigSchema = z21.object({
|
|
|
9114
9114
|
});
|
|
9115
9115
|
var LedgerConfigSchema = z21.object({
|
|
9116
9116
|
title: z21.string().optional(),
|
|
9117
|
+
rootSlug: z21.string().optional(),
|
|
9117
9118
|
defaultLanguage: z21.string().optional(),
|
|
9118
9119
|
translations: z21.object({
|
|
9119
9120
|
defaultLocale: z21.string(),
|
|
@@ -19533,12 +19534,6 @@ function findNode(root, slug) {
|
|
|
19533
19534
|
}
|
|
19534
19535
|
}
|
|
19535
19536
|
}
|
|
19536
|
-
if (!foundProductNode && isProductGroupNode(root.child) && root.child.landingPage != null) {
|
|
19537
|
-
const landingPageSlug = root.child.landingPage.slug;
|
|
19538
|
-
if (slug === landingPageSlug) {
|
|
19539
|
-
return { type: "redirect", redirect: landingPageSlug };
|
|
19540
|
-
}
|
|
19541
|
-
}
|
|
19542
19537
|
return {
|
|
19543
19538
|
type: "notFound",
|
|
19544
19539
|
// External product links don't have pointsTo, only internal products and versions do
|
|
@@ -19755,6 +19750,7 @@ function followRedirect2(nodeToFollow) {
|
|
|
19755
19750
|
* Versioned and ProductGroup nodes are special in that they have a default child.
|
|
19756
19751
|
*/
|
|
19757
19752
|
case "productgroup":
|
|
19753
|
+
return followRedirect2(nodeToFollow.landingPage ?? void 0) ?? followRedirects2([...nodeToFollow.children].sort(defaultFirst));
|
|
19758
19754
|
case "versioned":
|
|
19759
19755
|
return followRedirects2([...nodeToFollow.children].sort(defaultFirst));
|
|
19760
19756
|
case "apiReference":
|