@fern-api/fern-api-dev 5.23.3-1861-g8ba9efc9bab → 5.23.3-1867-gcc2f39a48e9
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 +22 -7
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -702967,7 +702967,7 @@ var AccessTokenPosthogManager = class {
|
|
|
702967
702967
|
properties: {
|
|
702968
702968
|
...event,
|
|
702969
702969
|
...event.properties,
|
|
702970
|
-
version: "5.23.3-
|
|
702970
|
+
version: "5.23.3-1867-gcc2f39a48e9",
|
|
702971
702971
|
usingAccessToken: true,
|
|
702972
702972
|
...getRunIdProperties()
|
|
702973
702973
|
}
|
|
@@ -703033,7 +703033,7 @@ var UserPosthogManager = class {
|
|
|
703033
703033
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
703034
703034
|
event: "CLI",
|
|
703035
703035
|
properties: {
|
|
703036
|
-
version: "5.23.3-
|
|
703036
|
+
version: "5.23.3-1867-gcc2f39a48e9",
|
|
703037
703037
|
...event,
|
|
703038
703038
|
...event.properties,
|
|
703039
703039
|
usingAccessToken: false,
|
|
@@ -884199,7 +884199,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
884199
884199
|
var LOGS_FOLDER_NAME = "logs";
|
|
884200
884200
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
884201
884201
|
function getCliSource() {
|
|
884202
|
-
const version7 = "5.23.3-
|
|
884202
|
+
const version7 = "5.23.3-1867-gcc2f39a48e9";
|
|
884203
884203
|
return `cli@${version7}`;
|
|
884204
884204
|
}
|
|
884205
884205
|
var DebugLogger = class {
|
|
@@ -909515,7 +909515,7 @@ var LegacyDocsPublisher = class {
|
|
|
909515
909515
|
previewId,
|
|
909516
909516
|
disableTemplates: void 0,
|
|
909517
909517
|
skipUpload,
|
|
909518
|
-
cliVersion: "5.23.3-
|
|
909518
|
+
cliVersion: "5.23.3-1867-gcc2f39a48e9",
|
|
909519
909519
|
loginCommand: "fern auth login"
|
|
909520
909520
|
});
|
|
909521
909521
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -936180,6 +936180,7 @@ var BaseJavaCustomConfigSchema = external_exports2.object({
|
|
|
936180
936180
|
"inline-path-parameters": external_exports2.boolean().optional(),
|
|
936181
936181
|
"package-layout": external_exports2.enum(["flat", "nested"]).optional(),
|
|
936182
936182
|
"package-prefix": external_exports2.string().optional(),
|
|
936183
|
+
"respect-optional-request-body": external_exports2.boolean().optional(),
|
|
936183
936184
|
"use-local-date-for-dates": external_exports2.boolean().optional(),
|
|
936184
936185
|
// General options.
|
|
936185
936186
|
"custom-dependencies": external_exports2.array(external_exports2.string()).optional(),
|
|
@@ -939589,7 +939590,7 @@ var EndpointSnippetGenerator3 = class {
|
|
|
939589
939590
|
}
|
|
939590
939591
|
this.context.errors.unscope();
|
|
939591
939592
|
this.context.errors.scope(Scope4.RequestBody);
|
|
939592
|
-
if (request7.body != null) {
|
|
939593
|
+
if (request7.body != null && !this.callOmitsRequestBody({ request: request7, snippet })) {
|
|
939593
939594
|
args.push(this.getBodyRequestArg({ body: request7.body, value: snippet.requestBody }));
|
|
939594
939595
|
}
|
|
939595
939596
|
this.context.errors.unscope();
|
|
@@ -939599,6 +939600,20 @@ var EndpointSnippetGenerator3 = class {
|
|
|
939599
939600
|
}
|
|
939600
939601
|
return args;
|
|
939601
939602
|
}
|
|
939603
|
+
/**
|
|
939604
|
+
* Whether the call leaves the body out entirely, which the shorter overload accepts. Applies
|
|
939605
|
+
* only to a body the caller may omit, and only once the generator opts in to that.
|
|
939606
|
+
*/
|
|
939607
|
+
callOmitsRequestBody({ request: request7, snippet }) {
|
|
939608
|
+
if (this.context.customConfig?.["respect-optional-request-body"] !== true) {
|
|
939609
|
+
return false;
|
|
939610
|
+
}
|
|
939611
|
+
if (request7.bodyRequired !== false) {
|
|
939612
|
+
return false;
|
|
939613
|
+
}
|
|
939614
|
+
const value2 = snippet.requestBody;
|
|
939615
|
+
return value2 == null || typeof value2 === "object" && !Array.isArray(value2) && Object.keys(value2).length === 0;
|
|
939616
|
+
}
|
|
939602
939617
|
usesOptionalNullable() {
|
|
939603
939618
|
return this.context.customConfig?.["collapse-optional-nullable"] === true;
|
|
939604
939619
|
}
|
|
@@ -976633,7 +976648,7 @@ function getAutomationContextFromEnv() {
|
|
|
976633
976648
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
976634
976649
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
976635
976650
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
976636
|
-
cli_version: "5.23.3-
|
|
976651
|
+
cli_version: "5.23.3-1867-gcc2f39a48e9"
|
|
976637
976652
|
};
|
|
976638
976653
|
}
|
|
976639
976654
|
function isAutomationMode() {
|
|
@@ -977465,7 +977480,7 @@ var CliContext = class _CliContext {
|
|
|
977465
977480
|
if (false) {
|
|
977466
977481
|
this.logger.error("CLI_VERSION is not defined");
|
|
977467
977482
|
}
|
|
977468
|
-
return "5.23.3-
|
|
977483
|
+
return "5.23.3-1867-gcc2f39a48e9";
|
|
977469
977484
|
}
|
|
977470
977485
|
getCliName() {
|
|
977471
977486
|
if (false) {
|
package/package.json
CHANGED