@fern-api/fern-api-dev 5.23.3-855-gae97bb27ceb → 5.23.3-871-g6e2c70e2a75
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/cli.cjs +55 -20
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -686298,7 +686298,7 @@ var AccessTokenPosthogManager = class {
|
|
|
686298
686298
|
properties: {
|
|
686299
686299
|
...event,
|
|
686300
686300
|
...event.properties,
|
|
686301
|
-
version: "5.23.3-
|
|
686301
|
+
version: "5.23.3-871-g6e2c70e2a75",
|
|
686302
686302
|
usingAccessToken: true,
|
|
686303
686303
|
...getRunIdProperties()
|
|
686304
686304
|
}
|
|
@@ -686364,7 +686364,7 @@ var UserPosthogManager = class {
|
|
|
686364
686364
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
686365
686365
|
event: "CLI",
|
|
686366
686366
|
properties: {
|
|
686367
|
-
version: "5.23.3-
|
|
686367
|
+
version: "5.23.3-871-g6e2c70e2a75",
|
|
686368
686368
|
...event,
|
|
686369
686369
|
...event.properties,
|
|
686370
686370
|
usingAccessToken: false,
|
|
@@ -867426,7 +867426,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
867426
867426
|
var LOGS_FOLDER_NAME = "logs";
|
|
867427
867427
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
867428
867428
|
function getCliSource() {
|
|
867429
|
-
const version7 = "5.23.3-
|
|
867429
|
+
const version7 = "5.23.3-871-g6e2c70e2a75";
|
|
867430
867430
|
return `cli@${version7}`;
|
|
867431
867431
|
}
|
|
867432
867432
|
var DebugLogger = class {
|
|
@@ -899600,7 +899600,7 @@ var LegacyDocsPublisher = class {
|
|
|
899600
899600
|
previewId,
|
|
899601
899601
|
disableTemplates: void 0,
|
|
899602
899602
|
skipUpload,
|
|
899603
|
-
cliVersion: "5.23.3-
|
|
899603
|
+
cliVersion: "5.23.3-871-g6e2c70e2a75",
|
|
899604
899604
|
loginCommand: "fern auth login"
|
|
899605
899605
|
});
|
|
899606
899606
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -925538,6 +925538,8 @@ var Writer3 = class extends AbstractWriter {
|
|
|
925538
925538
|
formatter;
|
|
925539
925539
|
/* Import statements */
|
|
925540
925540
|
imports = /* @__PURE__ */ new Set();
|
|
925541
|
+
/* Maps an imported simple class name to the package that claimed it */
|
|
925542
|
+
importedSimpleNames = /* @__PURE__ */ new Map();
|
|
925541
925543
|
constructor({ packageName, customConfig, formatter }) {
|
|
925542
925544
|
super();
|
|
925543
925545
|
this.packageName = packageName;
|
|
@@ -925550,6 +925552,27 @@ var Writer3 = class extends AbstractWriter {
|
|
|
925550
925552
|
addImport(packageName) {
|
|
925551
925553
|
this.imports.add(packageName);
|
|
925552
925554
|
}
|
|
925555
|
+
/**
|
|
925556
|
+
* Records a reference to a class and determines how it should be written.
|
|
925557
|
+
*
|
|
925558
|
+
* The first class to claim a given simple name is imported and can be
|
|
925559
|
+
* referenced unqualified. Any later class that shares the same simple name
|
|
925560
|
+
* but lives in a different package cannot be imported (it would clash), so
|
|
925561
|
+
* the caller must write it using its fully-qualified name instead.
|
|
925562
|
+
*/
|
|
925563
|
+
addReference({ name: name2, packageName }) {
|
|
925564
|
+
const claimedBy = this.importedSimpleNames.get(name2);
|
|
925565
|
+
if (claimedBy == null) {
|
|
925566
|
+
this.importedSimpleNames.set(name2, packageName);
|
|
925567
|
+
this.imports.add(`${packageName}.${name2}`);
|
|
925568
|
+
return { shouldFullyQualify: false };
|
|
925569
|
+
}
|
|
925570
|
+
if (claimedBy === packageName) {
|
|
925571
|
+
this.imports.add(`${packageName}.${name2}`);
|
|
925572
|
+
return { shouldFullyQualify: false };
|
|
925573
|
+
}
|
|
925574
|
+
return { shouldFullyQualify: true };
|
|
925575
|
+
}
|
|
925553
925576
|
/**
|
|
925554
925577
|
* Gets the current set of imports.
|
|
925555
925578
|
*/
|
|
@@ -925771,11 +925794,18 @@ var ClassReference2 = class extends AstNode3 {
|
|
|
925771
925794
|
write(writer2) {
|
|
925772
925795
|
const topLevelClassName = this.enclosingClasses[0] ?? this.name;
|
|
925773
925796
|
const qualifiedName = [...this.enclosingClasses, this.name].join(".");
|
|
925774
|
-
writer2.addImport(`${this.packageName}.${topLevelClassName}`);
|
|
925775
925797
|
if (this.fullyQualified) {
|
|
925776
925798
|
writer2.write(`${this.packageName}.${qualifiedName}`);
|
|
925777
925799
|
return;
|
|
925778
925800
|
}
|
|
925801
|
+
const { shouldFullyQualify } = writer2.addReference({
|
|
925802
|
+
name: topLevelClassName,
|
|
925803
|
+
packageName: this.packageName
|
|
925804
|
+
});
|
|
925805
|
+
if (shouldFullyQualify) {
|
|
925806
|
+
writer2.write(`${this.packageName}.${qualifiedName}`);
|
|
925807
|
+
return;
|
|
925808
|
+
}
|
|
925779
925809
|
writer2.write(qualifiedName);
|
|
925780
925810
|
}
|
|
925781
925811
|
};
|
|
@@ -929071,15 +929101,16 @@ var EndpointSnippetGenerator3 = class {
|
|
|
929071
929101
|
if (convertedValueStr.includes("Optional.empty()") || convertedValueStr.includes("OptionalNullable.absent()")) {
|
|
929072
929102
|
return convertedValue;
|
|
929073
929103
|
}
|
|
929104
|
+
const unwrappedValue = this.context.dynamicTypeLiteralMapper.convert({
|
|
929105
|
+
typeReference: stripOptionalAndNullable(body.value),
|
|
929106
|
+
value: value2,
|
|
929107
|
+
as: "request"
|
|
929108
|
+
});
|
|
929074
929109
|
if (isCollapsedOptionalNullable) {
|
|
929075
|
-
return this.context.getOptionalNullableOf(
|
|
929110
|
+
return this.context.getOptionalNullableOf(unwrappedValue);
|
|
929076
929111
|
} else {
|
|
929077
929112
|
return java_exports.TypeLiteral.optional({
|
|
929078
|
-
value:
|
|
929079
|
-
typeReference: stripOptionalAndNullable(body.value),
|
|
929080
|
-
value: value2,
|
|
929081
|
-
as: "request"
|
|
929082
|
-
}),
|
|
929113
|
+
value: unwrappedValue,
|
|
929083
929114
|
useOf: true
|
|
929084
929115
|
});
|
|
929085
929116
|
}
|
|
@@ -946786,6 +946817,7 @@ var Protocol = {
|
|
|
946786
946817
|
CaseIterable: "CaseIterable",
|
|
946787
946818
|
Codable: "Codable",
|
|
946788
946819
|
CodingKey: "CodingKey",
|
|
946820
|
+
CodingKeyRepresentable: "CodingKeyRepresentable",
|
|
946789
946821
|
Decodable: "Decodable",
|
|
946790
946822
|
Encodable: "Encodable",
|
|
946791
946823
|
Equatable: "Equatable",
|
|
@@ -947700,7 +947732,7 @@ var DynamicTypeLiteralMapper6 = class {
|
|
|
947700
947732
|
case "primitive":
|
|
947701
947733
|
return this.convertPrimitive({ primitive: typeReference2.value, value: value2, as: as2 });
|
|
947702
947734
|
case "set":
|
|
947703
|
-
return swift_exports.Expression.nop();
|
|
947735
|
+
return value2 === void 0 ? swift_exports.Expression.nop() : this.convertUnknown(value2);
|
|
947704
947736
|
case "unknown":
|
|
947705
947737
|
return this.convertUnknown(value2);
|
|
947706
947738
|
default:
|
|
@@ -947709,11 +947741,14 @@ var DynamicTypeLiteralMapper6 = class {
|
|
|
947709
947741
|
}
|
|
947710
947742
|
convertList({ fromSymbol, list: list29, value: value2 }) {
|
|
947711
947743
|
if (!Array.isArray(value2)) {
|
|
947712
|
-
|
|
947713
|
-
|
|
947714
|
-
|
|
947715
|
-
|
|
947716
|
-
|
|
947744
|
+
if (value2 == null) {
|
|
947745
|
+
this.context.errors.add({
|
|
947746
|
+
severity: Severity.Critical,
|
|
947747
|
+
message: `Expected array but got: ${typeof value2}`
|
|
947748
|
+
});
|
|
947749
|
+
return swift_exports.Expression.nop();
|
|
947750
|
+
}
|
|
947751
|
+
return this.convertList({ fromSymbol, list: list29, value: [value2] });
|
|
947717
947752
|
}
|
|
947718
947753
|
return swift_exports.Expression.arrayLiteral({
|
|
947719
947754
|
elements: value2.map((v3, index3) => {
|
|
@@ -948110,7 +948145,7 @@ var DynamicTypeLiteralMapper6 = class {
|
|
|
948110
948145
|
if (bigInt == null) {
|
|
948111
948146
|
return swift_exports.Expression.nop();
|
|
948112
948147
|
}
|
|
948113
|
-
return swift_exports.Expression.
|
|
948148
|
+
return swift_exports.Expression.escapedStringLiteral(bigInt);
|
|
948114
948149
|
}
|
|
948115
948150
|
default:
|
|
948116
948151
|
assertNever(primitive);
|
|
@@ -965700,7 +965735,7 @@ function getAutomationContextFromEnv() {
|
|
|
965700
965735
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
965701
965736
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
965702
965737
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
965703
|
-
cli_version: "5.23.3-
|
|
965738
|
+
cli_version: "5.23.3-871-g6e2c70e2a75"
|
|
965704
965739
|
};
|
|
965705
965740
|
}
|
|
965706
965741
|
function isAutomationMode() {
|
|
@@ -966532,7 +966567,7 @@ var CliContext = class _CliContext {
|
|
|
966532
966567
|
if (false) {
|
|
966533
966568
|
this.logger.error("CLI_VERSION is not defined");
|
|
966534
966569
|
}
|
|
966535
|
-
return "5.23.3-
|
|
966570
|
+
return "5.23.3-871-g6e2c70e2a75";
|
|
966536
966571
|
}
|
|
966537
966572
|
getCliName() {
|
|
966538
966573
|
if (false) {
|
package/package.json
CHANGED