@fern-api/fern-api-dev 5.83.0 → 5.83.1
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 +19 -10
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -356471,7 +356471,7 @@ var init_MethodConverter = __esm({
|
|
|
356471
356471
|
autogeneratedExamples: [],
|
|
356472
356472
|
v2Examples: {
|
|
356473
356473
|
autogeneratedExamples: {},
|
|
356474
|
-
userSpecifiedExamples: this.convertExamples()
|
|
356474
|
+
userSpecifiedExamples: this.convertExamples(pathString)
|
|
356475
356475
|
},
|
|
356476
356476
|
transport: void 0,
|
|
356477
356477
|
availability: void 0,
|
|
@@ -356511,8 +356511,17 @@ var init_MethodConverter = __esm({
|
|
|
356511
356511
|
});
|
|
356512
356512
|
return baseUrls;
|
|
356513
356513
|
}
|
|
356514
|
-
convertExamples() {
|
|
356514
|
+
convertExamples(path120) {
|
|
356515
356515
|
const examples = {};
|
|
356516
|
+
const pathParameters = {};
|
|
356517
|
+
for (const parameter6 of this.pathParameters) {
|
|
356518
|
+
const userExample = Object.values(parameter6.v2Examples?.userSpecifiedExamples ?? {})[0];
|
|
356519
|
+
const autogeneratedExample = Object.values(parameter6.v2Examples?.autogeneratedExamples ?? {})[0];
|
|
356520
|
+
const example = userExample !== void 0 ? userExample : autogeneratedExample;
|
|
356521
|
+
if (example !== void 0) {
|
|
356522
|
+
pathParameters[getOriginalName(parameter6.name)] = example;
|
|
356523
|
+
}
|
|
356524
|
+
}
|
|
356516
356525
|
let i5 = 0;
|
|
356517
356526
|
if (this.method.examples && this.method.examples.length > 0) {
|
|
356518
356527
|
for (const example of this.method.examples ?? []) {
|
|
@@ -356568,12 +356577,12 @@ var init_MethodConverter = __esm({
|
|
|
356568
356577
|
docs: void 0,
|
|
356569
356578
|
endpoint: {
|
|
356570
356579
|
method: "POST",
|
|
356571
|
-
path:
|
|
356580
|
+
path: path120
|
|
356572
356581
|
},
|
|
356573
356582
|
baseUrl: void 0,
|
|
356574
356583
|
environment: void 0,
|
|
356575
356584
|
auth: void 0,
|
|
356576
|
-
pathParameters
|
|
356585
|
+
pathParameters,
|
|
356577
356586
|
queryParameters: {},
|
|
356578
356587
|
headers: {},
|
|
356579
356588
|
requestBody: resolvedParams.map((param) => param.value) ?? void 0
|
|
@@ -692025,7 +692034,7 @@ var AccessTokenPosthogManager = class {
|
|
|
692025
692034
|
properties: {
|
|
692026
692035
|
...event,
|
|
692027
692036
|
...event.properties,
|
|
692028
|
-
version: "5.83.
|
|
692037
|
+
version: "5.83.1",
|
|
692029
692038
|
usingAccessToken: true,
|
|
692030
692039
|
...getRunIdProperties()
|
|
692031
692040
|
}
|
|
@@ -692091,7 +692100,7 @@ var UserPosthogManager = class {
|
|
|
692091
692100
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
692092
692101
|
event: "CLI",
|
|
692093
692102
|
properties: {
|
|
692094
|
-
version: "5.83.
|
|
692103
|
+
version: "5.83.1",
|
|
692095
692104
|
...event,
|
|
692096
692105
|
...event.properties,
|
|
692097
692106
|
usingAccessToken: false,
|
|
@@ -873197,7 +873206,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
873197
873206
|
var LOGS_FOLDER_NAME = "logs";
|
|
873198
873207
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
873199
873208
|
function getCliSource() {
|
|
873200
|
-
const version7 = "5.83.
|
|
873209
|
+
const version7 = "5.83.1";
|
|
873201
873210
|
return `cli@${version7}`;
|
|
873202
873211
|
}
|
|
873203
873212
|
var DebugLogger = class {
|
|
@@ -905893,7 +905902,7 @@ var LegacyDocsPublisher = class {
|
|
|
905893
905902
|
previewId,
|
|
905894
905903
|
disableTemplates: void 0,
|
|
905895
905904
|
skipUpload,
|
|
905896
|
-
cliVersion: "5.83.
|
|
905905
|
+
cliVersion: "5.83.1",
|
|
905897
905906
|
loginCommand: "fern auth login"
|
|
905898
905907
|
});
|
|
905899
905908
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -972767,7 +972776,7 @@ function getAutomationContextFromEnv() {
|
|
|
972767
972776
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
972768
972777
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
972769
972778
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
972770
|
-
cli_version: "5.83.
|
|
972779
|
+
cli_version: "5.83.1"
|
|
972771
972780
|
};
|
|
972772
972781
|
}
|
|
972773
972782
|
function isAutomationMode() {
|
|
@@ -973599,7 +973608,7 @@ var CliContext = class _CliContext {
|
|
|
973599
973608
|
if (false) {
|
|
973600
973609
|
this.logger.error("CLI_VERSION is not defined");
|
|
973601
973610
|
}
|
|
973602
|
-
return "5.83.
|
|
973611
|
+
return "5.83.1";
|
|
973603
973612
|
}
|
|
973604
973613
|
getCliName() {
|
|
973605
973614
|
if (false) {
|
package/package.json
CHANGED