@fern-api/fern-api-dev 4.71.1-4-g5901753fdcf → 4.71.1-41-gddf8e53ffcd

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 (2) hide show
  1. package/cli.cjs +18 -14
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -621274,7 +621274,7 @@ var AccessTokenPosthogManager = class {
621274
621274
  properties: {
621275
621275
  ...event,
621276
621276
  ...event.properties,
621277
- version: "4.71.1-4-g5901753fdcf",
621277
+ version: "4.71.1-41-gddf8e53ffcd",
621278
621278
  usingAccessToken: true
621279
621279
  }
621280
621280
  });
@@ -621328,7 +621328,7 @@ var UserPosthogManager = class {
621328
621328
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
621329
621329
  event: "CLI",
621330
621330
  properties: {
621331
- version: "4.71.1-4-g5901753fdcf",
621331
+ version: "4.71.1-41-gddf8e53ffcd",
621332
621332
  ...event,
621333
621333
  ...event.properties,
621334
621334
  usingAccessToken: false,
@@ -793368,7 +793368,7 @@ var ApiReferenceNodeConverter = class {
793368
793368
  const pointsTo = navigation_exports2.V1.followRedirects(this.#children);
793369
793369
  const changelogNodeConverter = new ChangelogNodeConverter(this.markdownFilesToFullSlugs, this.markdownFilesToNoIndex, this.markdownFilesToTags, this.workspace?.changelog?.files.map((file4) => file4.absoluteFilepath), this.docsWorkspace, this.#idgen).orUndefined();
793370
793370
  let overviewPageId = this.#overviewPageId;
793371
- if (overviewPageId == null) {
793371
+ if (overviewPageId == null && !this.apiSection.tagDescriptionPages) {
793372
793372
  const apiPackageWithOverview = this.#children.find((child) => child.type === "apiPackage" && child.overviewPageId != null);
793373
793373
  if (apiPackageWithOverview != null) {
793374
793374
  overviewPageId = apiPackageWithOverview.overviewPageId;
@@ -838427,7 +838427,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
838427
838427
  var LOGS_FOLDER_NAME = "logs";
838428
838428
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
838429
838429
  function getCliSource() {
838430
- const version7 = "4.71.1-4-g5901753fdcf";
838430
+ const version7 = "4.71.1-41-gddf8e53ffcd";
838431
838431
  return `cli@${version7}`;
838432
838432
  }
838433
838433
  var DebugLogger = class {
@@ -849674,7 +849674,7 @@ var LegacyDocsPublisher = class {
849674
849674
  previewId,
849675
849675
  disableTemplates: void 0,
849676
849676
  skipUpload,
849677
- cliVersion: "4.71.1-4-g5901753fdcf"
849677
+ cliVersion: "4.71.1-41-gddf8e53ffcd"
849678
849678
  });
849679
849679
  if (taskContext.getResult() === TaskResult.Failure) {
849680
849680
  return { success: false };
@@ -877189,19 +877189,20 @@ var DynamicTypeLiteralMapper = class {
877189
877189
  case "discriminatedUnion":
877190
877190
  return this.convertDiscriminatedUnion({
877191
877191
  discriminatedUnion: named,
877192
- value
877192
+ value,
877193
+ as: as8
877193
877194
  });
877194
877195
  case "enum":
877195
877196
  return this.convertEnum({ enum_: named, value });
877196
877197
  case "object":
877197
877198
  return this.convertObject({ object_: named, value, as: as8, inUndiscriminatedUnion });
877198
877199
  case "undiscriminatedUnion":
877199
- return this.convertUndiscriminatedUnion({ undiscriminatedUnion: named, value });
877200
+ return this.convertUndiscriminatedUnion({ undiscriminatedUnion: named, value, as: as8 });
877200
877201
  default:
877201
877202
  assertNever(named);
877202
877203
  }
877203
877204
  }
877204
- convertDiscriminatedUnion({ discriminatedUnion: discriminatedUnion2, value }) {
877205
+ convertDiscriminatedUnion({ discriminatedUnion: discriminatedUnion2, value, as: as8 }) {
877205
877206
  const classReference4 = this.context.getJavaClassReferenceFromDeclaration({
877206
877207
  declaration: discriminatedUnion2.declaration
877207
877208
  });
@@ -877224,7 +877225,7 @@ var DynamicTypeLiteralMapper = class {
877224
877225
  return java_exports.TypeLiteral.reference(java_exports.invokeMethod({
877225
877226
  on: classReference4,
877226
877227
  method: this.context.getPropertyName(unionVariant.discriminantValue.name),
877227
- arguments_: [this.convertNamed({ named, value: discriminatedUnionTypeInstance.value })]
877228
+ arguments_: [this.convertNamed({ named, value: discriminatedUnionTypeInstance.value, as: as8 })]
877228
877229
  }));
877229
877230
  }
877230
877231
  case "singleProperty": {
@@ -877241,7 +877242,8 @@ var DynamicTypeLiteralMapper = class {
877241
877242
  arguments_: [
877242
877243
  this.convert({
877243
877244
  typeReference: unionVariant.typeReference,
877244
- value: record22[propertyKey]
877245
+ value: record22[propertyKey],
877246
+ as: as8
877245
877247
  })
877246
877248
  ]
877247
877249
  }));
@@ -877453,10 +877455,11 @@ var DynamicTypeLiteralMapper = class {
877453
877455
  }
877454
877456
  return this.context.getEnumName(enumValue.name);
877455
877457
  }
877456
- convertUndiscriminatedUnion({ undiscriminatedUnion: undiscriminatedUnion21, value }) {
877458
+ convertUndiscriminatedUnion({ undiscriminatedUnion: undiscriminatedUnion21, value, as: as8 }) {
877457
877459
  const result = this.findMatchingUndiscriminatedUnionType({
877458
877460
  undiscriminatedUnion: undiscriminatedUnion21,
877459
- value
877461
+ value,
877462
+ as: as8
877460
877463
  });
877461
877464
  if (result == null) {
877462
877465
  return java_exports.TypeLiteral.nop();
@@ -877478,13 +877481,14 @@ var DynamicTypeLiteralMapper = class {
877478
877481
  arguments_: [result.typeInstantiation]
877479
877482
  }));
877480
877483
  }
877481
- findMatchingUndiscriminatedUnionType({ undiscriminatedUnion: undiscriminatedUnion21, value }) {
877484
+ findMatchingUndiscriminatedUnionType({ undiscriminatedUnion: undiscriminatedUnion21, value, as: as8 }) {
877482
877485
  for (const typeReference2 of undiscriminatedUnion21.types) {
877483
877486
  const errorsBefore = this.context.errors.size();
877484
877487
  try {
877485
877488
  const typeInstantiation = this.convert({
877486
877489
  typeReference: typeReference2,
877487
877490
  value,
877491
+ as: as8,
877488
877492
  inUndiscriminatedUnion: true
877489
877493
  });
877490
877494
  if (java_exports.TypeLiteral.isNop(typeInstantiation) || this.context.errors.size() > errorsBefore) {
@@ -924023,7 +924027,7 @@ var CliContext = class _CliContext {
924023
924027
  if (false) {
924024
924028
  this.logger.error("CLI_VERSION is not defined");
924025
924029
  }
924026
- return "4.71.1-4-g5901753fdcf";
924030
+ return "4.71.1-41-gddf8e53ffcd";
924027
924031
  }
924028
924032
  getCliName() {
924029
924033
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "4.71.1-4-g5901753fdcf",
2
+ "version": "4.71.1-41-gddf8e53ffcd",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",