@fern-api/fdr-sdk 1.2.39-adc66218ce → 1.2.39-afedd1fee5
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 +126 -17
- package/dist/js/navigation/ledger-root-builder.js.map +1 -1
- package/dist/js/navigation/ledger-root-builder.mjs +126 -17
- 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.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.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.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.mjs
CHANGED
|
@@ -9051,6 +9051,7 @@ var LedgerAgentsConfigSchema = z21.object({
|
|
|
9051
9051
|
});
|
|
9052
9052
|
var LedgerConfigSchema = z21.object({
|
|
9053
9053
|
title: z21.string().optional(),
|
|
9054
|
+
rootSlug: z21.string().optional(),
|
|
9054
9055
|
defaultLanguage: z21.string().optional(),
|
|
9055
9056
|
translations: z21.object({
|
|
9056
9057
|
defaultLocale: z21.string(),
|
|
@@ -19470,12 +19471,6 @@ function findNode(root, slug) {
|
|
|
19470
19471
|
}
|
|
19471
19472
|
}
|
|
19472
19473
|
}
|
|
19473
|
-
if (!foundProductNode && isProductGroupNode(root.child) && root.child.landingPage != null) {
|
|
19474
|
-
const landingPageSlug = root.child.landingPage.slug;
|
|
19475
|
-
if (slug === landingPageSlug) {
|
|
19476
|
-
return { type: "redirect", redirect: landingPageSlug };
|
|
19477
|
-
}
|
|
19478
|
-
}
|
|
19479
19474
|
return {
|
|
19480
19475
|
type: "notFound",
|
|
19481
19476
|
// External product links don't have pointsTo, only internal products and versions do
|
|
@@ -19692,6 +19687,7 @@ function followRedirect2(nodeToFollow) {
|
|
|
19692
19687
|
* Versioned and ProductGroup nodes are special in that they have a default child.
|
|
19693
19688
|
*/
|
|
19694
19689
|
case "productgroup":
|
|
19690
|
+
return followRedirect2(nodeToFollow.landingPage ?? void 0) ?? followRedirects2([...nodeToFollow.children].sort(defaultFirst));
|
|
19695
19691
|
case "versioned":
|
|
19696
19692
|
return followRedirects2([...nodeToFollow.children].sort(defaultFirst));
|
|
19697
19693
|
case "apiReference":
|