@fern-api/fern-api-dev 4.68.1-1-g56ebc56eef0 → 4.68.1-2-g6abc412986d
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 +15 -22
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -627624,7 +627624,7 @@ var AccessTokenPosthogManager = class {
|
|
|
627624
627624
|
properties: {
|
|
627625
627625
|
...event,
|
|
627626
627626
|
...event.properties,
|
|
627627
|
-
version: "4.68.1-
|
|
627627
|
+
version: "4.68.1-2-g6abc412986d",
|
|
627628
627628
|
usingAccessToken: true
|
|
627629
627629
|
}
|
|
627630
627630
|
});
|
|
@@ -627678,7 +627678,7 @@ var UserPosthogManager = class {
|
|
|
627678
627678
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
627679
627679
|
event: "CLI",
|
|
627680
627680
|
properties: {
|
|
627681
|
-
version: "4.68.1-
|
|
627681
|
+
version: "4.68.1-2-g6abc412986d",
|
|
627682
627682
|
...event,
|
|
627683
627683
|
...event.properties,
|
|
627684
627684
|
usingAccessToken: false,
|
|
@@ -843953,7 +843953,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
843953
843953
|
var LOGS_FOLDER_NAME = "logs";
|
|
843954
843954
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
843955
843955
|
function getCliSource() {
|
|
843956
|
-
const version7 = "4.68.1-
|
|
843956
|
+
const version7 = "4.68.1-2-g6abc412986d";
|
|
843957
843957
|
return `cli@${version7}`;
|
|
843958
843958
|
}
|
|
843959
843959
|
var DebugLogger = class {
|
|
@@ -855201,7 +855201,7 @@ var LegacyDocsPublisher = class {
|
|
|
855201
855201
|
previewId,
|
|
855202
855202
|
disableTemplates: void 0,
|
|
855203
855203
|
skipUpload,
|
|
855204
|
-
cliVersion: "4.68.1-
|
|
855204
|
+
cliVersion: "4.68.1-2-g6abc412986d"
|
|
855205
855205
|
});
|
|
855206
855206
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
855207
855207
|
return { success: false };
|
|
@@ -872387,7 +872387,7 @@ var CSharp = class {
|
|
|
872387
872387
|
args.name = this.model.getClassNameFor(args.origin);
|
|
872388
872388
|
}
|
|
872389
872389
|
if (args.enclosingType) {
|
|
872390
|
-
if (args.namespace) {
|
|
872390
|
+
if (args.namespace && args.namespace !== args.enclosingType.namespace) {
|
|
872391
872391
|
throw new Error(`ClassReference: Both enclosingType and namespace cannot be provided`);
|
|
872392
872392
|
}
|
|
872393
872393
|
args.namespace = args.enclosingType.namespace;
|
|
@@ -874333,6 +874333,8 @@ var Generation = class {
|
|
|
874333
874333
|
useDefaultRequestParameterValues: () => this.customConfig["use-default-request-parameter-values"] ?? false,
|
|
874334
874334
|
/** When true, redacts the response body in deserialization error exceptions and adds a custom ToString override to the base API exception. Default: false. */
|
|
874335
874335
|
redactResponseBodyOnError: () => this.customConfig["redact-response-body-on-error"] ?? false,
|
|
874336
|
+
/** When true, generates inline types as nested classes inside a static Types class on the parent type, instead of as separate top-level files. Default: false. */
|
|
874337
|
+
enableInlineTypes: () => this.customConfig["enable-inline-types"] ?? false,
|
|
874336
874338
|
/** Temporary mapping of websocket environment configurations. Default: {}. */
|
|
874337
874339
|
temporaryWebsocketEnvironments: () => this.customConfig["temporary-websocket-environments"] ?? {},
|
|
874338
874340
|
/** Custom name for the base API exception class. Default: "" (auto-generated). */
|
|
@@ -875988,7 +875990,7 @@ var DynamicTypeMapper = class extends WithGeneration {
|
|
|
875988
875990
|
if (named == null) {
|
|
875989
875991
|
return this.convertUnknown();
|
|
875990
875992
|
}
|
|
875991
|
-
return this.convertNamed({ named });
|
|
875993
|
+
return this.convertNamed({ named, typeId: args.typeReference.value });
|
|
875992
875994
|
}
|
|
875993
875995
|
case "optional":
|
|
875994
875996
|
case "nullable": {
|
|
@@ -876005,13 +876007,13 @@ var DynamicTypeMapper = class extends WithGeneration {
|
|
|
876005
876007
|
assertNever(args.typeReference);
|
|
876006
876008
|
}
|
|
876007
876009
|
}
|
|
876008
|
-
convertToClassReference(named) {
|
|
876010
|
+
convertToClassReference(named, typeId) {
|
|
876009
876011
|
return this.csharp.classReference({
|
|
876010
876012
|
origin: named.declaration,
|
|
876011
876013
|
namespace: this.context.getNamespace(named.declaration.fernFilepath)
|
|
876012
876014
|
});
|
|
876013
876015
|
}
|
|
876014
|
-
convertNamed({ named }) {
|
|
876016
|
+
convertNamed({ named, typeId }) {
|
|
876015
876017
|
switch (named.type) {
|
|
876016
876018
|
case "alias":
|
|
876017
876019
|
if (this.settings.generateLiterals && named.typeReference.type === "literal") {
|
|
@@ -876023,24 +876025,15 @@ var DynamicTypeMapper = class extends WithGeneration {
|
|
|
876023
876025
|
return this.convert({ typeReference: named.typeReference });
|
|
876024
876026
|
case "enum":
|
|
876025
876027
|
case "object":
|
|
876026
|
-
return this.
|
|
876027
|
-
origin: named.declaration,
|
|
876028
|
-
namespace: this.context.getNamespace(named.declaration.fernFilepath)
|
|
876029
|
-
});
|
|
876028
|
+
return this.convertToClassReference(named, typeId);
|
|
876030
876029
|
case "discriminatedUnion":
|
|
876031
876030
|
if (!this.settings.shouldGeneratedDiscriminatedUnions) {
|
|
876032
876031
|
return this.Primitive.object;
|
|
876033
876032
|
}
|
|
876034
|
-
return this.
|
|
876035
|
-
origin: named.declaration,
|
|
876036
|
-
namespace: this.context.getNamespace(named.declaration.fernFilepath)
|
|
876037
|
-
});
|
|
876033
|
+
return this.convertToClassReference(named, typeId);
|
|
876038
876034
|
case "undiscriminatedUnion":
|
|
876039
876035
|
if (this.settings.shouldGenerateUndiscriminatedUnions) {
|
|
876040
|
-
return this.
|
|
876041
|
-
origin: named.declaration,
|
|
876042
|
-
namespace: this.context.getNamespace(named.declaration.fernFilepath)
|
|
876043
|
-
});
|
|
876036
|
+
return this.convertToClassReference(named, typeId);
|
|
876044
876037
|
}
|
|
876045
876038
|
return this.OneOf.OneOf(named.types.map((typeReference2) => {
|
|
876046
876039
|
return this.convert({ typeReference: typeReference2 });
|
|
@@ -876381,7 +876374,7 @@ var DynamicSnippetsGeneratorContext = class _DynamicSnippetsGeneratorContext ext
|
|
|
876381
876374
|
Object.entries(this.ir.types).sort((a10, b19) => {
|
|
876382
876375
|
return a10[0].length - b19[0].length;
|
|
876383
876376
|
}).forEach(([typeId, type8]) => {
|
|
876384
|
-
this.dynamicTypeMapper.convertToClassReference(type8);
|
|
876377
|
+
this.dynamicTypeMapper.convertToClassReference(type8, typeId);
|
|
876385
876378
|
});
|
|
876386
876379
|
for (const [idx, request7] of requests3.entries()) {
|
|
876387
876380
|
this.csharp.classReference({
|
|
@@ -928948,7 +928941,7 @@ var CliContext = class _CliContext {
|
|
|
928948
928941
|
if (false) {
|
|
928949
928942
|
this.logger.error("CLI_VERSION is not defined");
|
|
928950
928943
|
}
|
|
928951
|
-
return "4.68.1-
|
|
928944
|
+
return "4.68.1-2-g6abc412986d";
|
|
928952
928945
|
}
|
|
928953
928946
|
getCliName() {
|
|
928954
928947
|
if (false) {
|
package/package.json
CHANGED