@fern-api/fdr-sdk 1.2.39-2432856e2e → 1.2.39-363aefacdc

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.
Files changed (31) hide show
  1. package/dist/js/converters/index.js +4 -9
  2. package/dist/js/converters/index.js.map +1 -1
  3. package/dist/js/converters/index.mjs +4 -9
  4. package/dist/js/converters/index.mjs.map +1 -1
  5. package/dist/js/index.js +4 -9
  6. package/dist/js/index.js.map +1 -1
  7. package/dist/js/index.mjs +4 -9
  8. package/dist/js/index.mjs.map +1 -1
  9. package/dist/js/navigation/index.js +4 -9
  10. package/dist/js/navigation/index.js.map +1 -1
  11. package/dist/js/navigation/index.mjs +4 -9
  12. package/dist/js/navigation/index.mjs.map +1 -1
  13. package/dist/js/navigation/ledger-root-builder.js +32 -12
  14. package/dist/js/navigation/ledger-root-builder.js.map +1 -1
  15. package/dist/js/navigation/ledger-root-builder.mjs +32 -12
  16. package/dist/js/navigation/ledger-root-builder.mjs.map +1 -1
  17. package/dist/tsconfig.tsbuildinfo +1 -1
  18. package/dist/types/navigation/__test__/findNode.authedRedirect.test.d.ts +2 -0
  19. package/dist/types/navigation/__test__/findNode.authedRedirect.test.d.ts.map +1 -0
  20. package/dist/types/navigation/__test__/ledger-root-builder.collapsedDeterminism.test.d.ts +2 -0
  21. package/dist/types/navigation/__test__/ledger-root-builder.collapsedDeterminism.test.d.ts.map +1 -0
  22. package/dist/types/navigation/__test__/ledger-root-builder.skipSlugApiReference.test.d.ts +2 -0
  23. package/dist/types/navigation/__test__/ledger-root-builder.skipSlugApiReference.test.d.ts.map +1 -0
  24. package/dist/types/navigation/__test__/ledger-root-builder.variantSharedSegments.test.d.ts +2 -0
  25. package/dist/types/navigation/__test__/ledger-root-builder.variantSharedSegments.test.d.ts.map +1 -0
  26. package/dist/types/navigation/ledger-root-builder.d.ts +5 -1
  27. package/dist/types/navigation/ledger-root-builder.d.ts.map +1 -1
  28. package/dist/types/navigation/utils/findNode.d.ts +1 -0
  29. package/dist/types/navigation/utils/findNode.d.ts.map +1 -1
  30. package/dist/types/navigation/utils/followRedirect.d.ts.map +1 -1
  31. package/package.json +1 -1
@@ -14449,12 +14449,6 @@ function findNode(root, slug) {
14449
14449
  }
14450
14450
  }
14451
14451
  }
14452
- if (!foundProductNode && isProductGroupNode(root.child) && root.child.landingPage != null) {
14453
- const landingPageSlug = root.child.landingPage.slug;
14454
- if (slug === landingPageSlug) {
14455
- return { type: "redirect", redirect: landingPageSlug };
14456
- }
14457
- }
14458
14452
  return {
14459
14453
  type: "notFound",
14460
14454
  // External product links don't have pointsTo, only internal products and versions do
@@ -14561,15 +14555,15 @@ function findNode(root, slug) {
14561
14555
  };
14562
14556
  }
14563
14557
  if (root.type === "root" && root.slug === slug && root.pointsTo != null) {
14564
- return { type: "redirect", redirect: root.pointsTo };
14558
+ return { type: "redirect", redirect: root.pointsTo, authed: root.authed };
14565
14559
  }
14566
14560
  if (navigation_exports.hasRedirect(found.node) && found.node.pointsTo != null) {
14567
- return { type: "redirect", redirect: found.node.pointsTo };
14561
+ return { type: "redirect", redirect: found.node.pointsTo, authed: found.node.authed };
14568
14562
  }
14569
14563
  if (found.node.type === "variant" && (found.node.pointsTo == null || found.node.pointsTo === void 0)) {
14570
14564
  const firstPage = findFirstPageInNode(found.node);
14571
14565
  if (firstPage != null) {
14572
- return { type: "redirect", redirect: firstPage };
14566
+ return { type: "redirect", redirect: firstPage, authed: found.node.authed };
14573
14567
  }
14574
14568
  }
14575
14569
  return {
@@ -14671,6 +14665,7 @@ function followRedirect2(nodeToFollow) {
14671
14665
  * Versioned and ProductGroup nodes are special in that they have a default child.
14672
14666
  */
14673
14667
  case "productgroup":
14668
+ return followRedirect2(nodeToFollow.landingPage ?? void 0) ?? followRedirects2([...nodeToFollow.children].sort(defaultFirst));
14674
14669
  case "versioned":
14675
14670
  return followRedirects2([...nodeToFollow.children].sort(defaultFirst));
14676
14671
  case "apiReference":