@fern-api/fern-api-dev 4.68.0-2-g6060219ac9f → 4.68.1-1-g56ebc56eef0
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 +33 -28
- 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.
|
|
627627
|
+
version: "4.68.1-1-g56ebc56eef0",
|
|
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.
|
|
627681
|
+
version: "4.68.1-1-g56ebc56eef0",
|
|
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.
|
|
843956
|
+
const version7 = "4.68.1-1-g56ebc56eef0";
|
|
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.
|
|
855204
|
+
cliVersion: "4.68.1-1-g56ebc56eef0"
|
|
855205
855205
|
});
|
|
855206
855206
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
855207
855207
|
return { success: false };
|
|
@@ -870284,13 +870284,15 @@ var Class2 = class _Class extends DefinedType {
|
|
|
870284
870284
|
annotations = [];
|
|
870285
870285
|
primaryConstructor;
|
|
870286
870286
|
namespaceReferences = [];
|
|
870287
|
+
skipNamespaceDeclaration;
|
|
870287
870288
|
constructors = [];
|
|
870288
870289
|
operators = [];
|
|
870289
870290
|
nestedClasses = [];
|
|
870290
870291
|
nestedInterfaces = [];
|
|
870291
870292
|
rawBodyBlocks = [];
|
|
870292
|
-
constructor({ name: name2, namespace, access: access6, static_, abstract_, sealed, partial: partial2, readonly: readonly2, parentClassReference, interfaceReferences, enclosingType, type: type8, summary, doc, annotations, primaryConstructor, origin: origin2 }, generation) {
|
|
870293
|
+
constructor({ name: name2, namespace, access: access6, static_, abstract_, sealed, partial: partial2, readonly: readonly2, parentClassReference, interfaceReferences, enclosingType, type: type8, summary, doc, annotations, primaryConstructor, skipNamespaceDeclaration, origin: origin2 }, generation) {
|
|
870293
870294
|
super({ name: name2, namespace, access: access6, partial: partial2, interfaceReferences, enclosingType, origin: origin2 }, generation);
|
|
870295
|
+
this.skipNamespaceDeclaration = skipNamespaceDeclaration ?? false;
|
|
870294
870296
|
this.static_ = static_ ?? false;
|
|
870295
870297
|
this.abstract_ = abstract_ ?? false;
|
|
870296
870298
|
this.sealed = sealed ?? false;
|
|
@@ -870352,7 +870354,7 @@ var Class2 = class _Class extends DefinedType {
|
|
|
870352
870354
|
this.namespaceReferences.forEach((namespace) => {
|
|
870353
870355
|
writer2.addNamespace(namespace);
|
|
870354
870356
|
});
|
|
870355
|
-
if (!this.isNested) {
|
|
870357
|
+
if (!this.isNested && !this.skipNamespaceDeclaration) {
|
|
870356
870358
|
writer2.writeLine(`namespace ${this.namespace};`);
|
|
870357
870359
|
writer2.newLine();
|
|
870358
870360
|
}
|
|
@@ -870360,7 +870362,9 @@ var Class2 = class _Class extends DefinedType {
|
|
|
870360
870362
|
this.annotations.forEach((annotation) => {
|
|
870361
870363
|
annotation.write(writer2);
|
|
870362
870364
|
});
|
|
870363
|
-
|
|
870365
|
+
if (!this.skipNamespaceDeclaration) {
|
|
870366
|
+
writer2.writeNewLineIfLastLineNot();
|
|
870367
|
+
}
|
|
870364
870368
|
writer2.write(`${this.access}`);
|
|
870365
870369
|
if (this.static_) {
|
|
870366
870370
|
writer2.write(" static");
|
|
@@ -876418,7 +876422,7 @@ var EndpointSnippetGenerator2 = class extends WithGeneration {
|
|
|
876418
876422
|
async generateSnippet({ endpoint: endpoint3, request: request7, options: options2 }) {
|
|
876419
876423
|
const code5 = this.buildCodeBlock({ endpoint: endpoint3, snippet: request7, options: options2 });
|
|
876420
876424
|
return code5.toString({
|
|
876421
|
-
namespace: "
|
|
876425
|
+
namespace: "Examples",
|
|
876422
876426
|
generation: this.generation,
|
|
876423
876427
|
allNamespaceSegments: /* @__PURE__ */ new Set(),
|
|
876424
876428
|
allTypeClassReferences: /* @__PURE__ */ new Map(),
|
|
@@ -876432,7 +876436,7 @@ var EndpointSnippetGenerator2 = class extends WithGeneration {
|
|
|
876432
876436
|
generateSnippetSync({ endpoint: endpoint3, request: request7, options: options2 }) {
|
|
876433
876437
|
const code5 = this.buildCodeBlock({ endpoint: endpoint3, snippet: request7, options: options2 });
|
|
876434
876438
|
return code5.toString({
|
|
876435
|
-
namespace: "
|
|
876439
|
+
namespace: "Examples",
|
|
876436
876440
|
generation: this.generation,
|
|
876437
876441
|
allNamespaceSegments: /* @__PURE__ */ new Set(),
|
|
876438
876442
|
allTypeClassReferences: /* @__PURE__ */ new Map(),
|
|
@@ -876464,14 +876468,17 @@ var EndpointSnippetGenerator2 = class extends WithGeneration {
|
|
|
876464
876468
|
}
|
|
876465
876469
|
buildFullCodeBlock({ body, options: options2 }) {
|
|
876466
876470
|
const config5 = this.getConfig(options2);
|
|
876471
|
+
const methodName = config5.fullStyleMethodName ?? config5.fullStyleClassName ?? "Example";
|
|
876467
876472
|
const class_6 = this.csharp.class_({
|
|
876468
|
-
name:
|
|
876469
|
-
namespace: "
|
|
876473
|
+
name: "Examples",
|
|
876474
|
+
namespace: "Examples",
|
|
876475
|
+
partial: true,
|
|
876476
|
+
skipNamespaceDeclaration: true,
|
|
876470
876477
|
access: ast_exports.Access.Public
|
|
876471
876478
|
});
|
|
876472
876479
|
class_6.addNamespaceReference(this.Types.RootClientForSnippets.namespace);
|
|
876473
876480
|
class_6.addMethod({
|
|
876474
|
-
name:
|
|
876481
|
+
name: methodName,
|
|
876475
876482
|
access: ast_exports.Access.Public,
|
|
876476
876483
|
isAsync: true,
|
|
876477
876484
|
parameters: [],
|
|
@@ -877114,18 +877121,16 @@ function convertIr(ir15) {
|
|
|
877114
877121
|
}
|
|
877115
877122
|
|
|
877116
877123
|
// ../generation/local-generation/local-workspace-runner/lib/dynamic-snippets/csharp/DynamicSnippetsCsharpTestGenerator.js
|
|
877117
|
-
var PROJECT_FILE_CONTENT =
|
|
877118
|
-
<
|
|
877119
|
-
<
|
|
877120
|
-
|
|
877121
|
-
|
|
877122
|
-
|
|
877123
|
-
|
|
877124
|
-
|
|
877125
|
-
|
|
877126
|
-
|
|
877127
|
-
<ProjectReference Include="..\\..\\**\\*.csproj" Exclude="..\\..\\**\\*.DynamicSnippets.csproj;..\\..\\**\\*.Test.csproj" />
|
|
877128
|
-
</ItemGroup>
|
|
877124
|
+
var PROJECT_FILE_CONTENT = `<Project Sdk="Microsoft.NET.Sdk">
|
|
877125
|
+
<PropertyGroup>
|
|
877126
|
+
<TargetFramework>net10.0</TargetFramework>
|
|
877127
|
+
<RootNamespace>Snippets</RootNamespace>
|
|
877128
|
+
<ImplicitUsings>enable</ImplicitUsings>
|
|
877129
|
+
<Nullable>enable</Nullable>
|
|
877130
|
+
</PropertyGroup>
|
|
877131
|
+
<ItemGroup>
|
|
877132
|
+
<ProjectReference Include="..\\**\\*.csproj" Exclude="..\\**\\*.Test.csproj;..\\Snippets\\*.csproj" />
|
|
877133
|
+
</ItemGroup>
|
|
877129
877134
|
</Project>`;
|
|
877130
877135
|
var DynamicSnippetsCsharpTestGenerator = class {
|
|
877131
877136
|
context;
|
|
@@ -877154,7 +877159,7 @@ var DynamicSnippetsCsharpTestGenerator = class {
|
|
|
877154
877159
|
}
|
|
877155
877160
|
const response = await this.dynamicSnippetsGenerator.generate(convertedRequest, {
|
|
877156
877161
|
config: {
|
|
877157
|
-
|
|
877162
|
+
fullStyleMethodName: `Example${idx}`
|
|
877158
877163
|
},
|
|
877159
877164
|
style: Style2.Full,
|
|
877160
877165
|
endpointId
|
|
@@ -877169,9 +877174,9 @@ var DynamicSnippetsCsharpTestGenerator = class {
|
|
|
877169
877174
|
this.context.logger.debug("Done generating dynamic snippet tests");
|
|
877170
877175
|
}
|
|
877171
877176
|
async initializeProject(outputDir) {
|
|
877172
|
-
const absolutePathToOutputDir = join8(outputDir, RelativeFilePath2.of("
|
|
877177
|
+
const absolutePathToOutputDir = join8(outputDir, RelativeFilePath2.of("Snippets"));
|
|
877173
877178
|
await (0, import_promises93.mkdir)(absolutePathToOutputDir, { recursive: true });
|
|
877174
|
-
await (0, import_promises93.writeFile)(join8(absolutePathToOutputDir, RelativeFilePath2.of("
|
|
877179
|
+
await (0, import_promises93.writeFile)(join8(absolutePathToOutputDir, RelativeFilePath2.of("Snippets.csproj")), PROJECT_FILE_CONTENT);
|
|
877175
877180
|
return absolutePathToOutputDir;
|
|
877176
877181
|
}
|
|
877177
877182
|
getTestFilePath({ absolutePathToOutputDir, idx }) {
|
|
@@ -928943,7 +928948,7 @@ var CliContext = class _CliContext {
|
|
|
928943
928948
|
if (false) {
|
|
928944
928949
|
this.logger.error("CLI_VERSION is not defined");
|
|
928945
928950
|
}
|
|
928946
|
-
return "4.68.
|
|
928951
|
+
return "4.68.1-1-g56ebc56eef0";
|
|
928947
928952
|
}
|
|
928948
928953
|
getCliName() {
|
|
928949
928954
|
if (false) {
|
package/package.json
CHANGED