@fern-api/fern-api-dev 5.30.4 → 5.31.0
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 +36 -13
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -537109,6 +537109,7 @@ var Package = schemas_exports3.objectWithoutOptionalProperties({
|
|
|
537109
537109
|
websocket: WebSocketChannelId.optional(),
|
|
537110
537110
|
subpackages: schemas_exports3.list(SubpackageId),
|
|
537111
537111
|
hasEndpointsInTree: schemas_exports3.boolean(),
|
|
537112
|
+
hasWebSocketInTree: schemas_exports3.boolean().optional(),
|
|
537112
537113
|
navigationConfig: PackageNavigationConfig.optional()
|
|
537113
537114
|
}).extend(WithDocs);
|
|
537114
537115
|
|
|
@@ -602931,6 +602932,7 @@ function mergeIntermediateRepresentation(ir1, ir23, casingsGenerator) {
|
|
|
602931
602932
|
webhooks: ir1.rootPackage.webhooks ?? ir23.rootPackage.webhooks,
|
|
602932
602933
|
websocket: ir1.rootPackage.websocket ?? ir23.rootPackage.websocket,
|
|
602933
602934
|
hasEndpointsInTree: ir1.rootPackage.hasEndpointsInTree || ir23.rootPackage.hasEndpointsInTree,
|
|
602935
|
+
hasWebSocketInTree: (ir1.rootPackage.hasWebSocketInTree ?? false) || (ir23.rootPackage.hasWebSocketInTree ?? false) || void 0,
|
|
602934
602936
|
navigationConfig: ir1.rootPackage.navigationConfig ?? ir23.rootPackage.navigationConfig,
|
|
602935
602937
|
docs: ir1.rootPackage.docs ?? ir23.rootPackage.docs
|
|
602936
602938
|
},
|
|
@@ -602963,6 +602965,7 @@ function mergeSubpackages(subpackages1, subpackages2) {
|
|
|
602963
602965
|
displayName: subpackage.displayName,
|
|
602964
602966
|
fernFilepath: subpackage.fernFilepath,
|
|
602965
602967
|
hasEndpointsInTree: mergedSubpackages[subpackageId].hasEndpointsInTree || subpackage.hasEndpointsInTree,
|
|
602968
|
+
hasWebSocketInTree: (mergedSubpackages[subpackageId].hasWebSocketInTree ?? false) || (subpackage.hasWebSocketInTree ?? false) || void 0,
|
|
602966
602969
|
navigationConfig: mergedSubpackages[subpackageId].navigationConfig ?? subpackage.navigationConfig,
|
|
602967
602970
|
docs: mergedSubpackages[subpackageId].docs ?? subpackage.docs,
|
|
602968
602971
|
service: mergedSubpackages[subpackageId].service ?? subpackage.service,
|
|
@@ -610163,14 +610166,17 @@ var PackageTreeGenerator = class {
|
|
|
610163
610166
|
};
|
|
610164
610167
|
}
|
|
610165
610168
|
const allSubpackagesWithEndpoints = new Set(this.getAllChildrenWithEndpoints(this.rootPackage));
|
|
610169
|
+
const allSubpackagesWithWebSocket = new Set(this.getAllChildrenWithWebSocket(this.rootPackage));
|
|
610166
610170
|
return {
|
|
610167
610171
|
subpackages: mapValues_default(this.subpackages, (subpackage, subpackageId) => ({
|
|
610168
610172
|
...subpackage,
|
|
610169
|
-
hasEndpointsInTree: allSubpackagesWithEndpoints.has(subpackageId)
|
|
610173
|
+
hasEndpointsInTree: allSubpackagesWithEndpoints.has(subpackageId),
|
|
610174
|
+
hasWebSocketInTree: allSubpackagesWithWebSocket.has(subpackageId) || subpackage.websocket != null
|
|
610170
610175
|
})),
|
|
610171
610176
|
rootPackage: {
|
|
610172
610177
|
...this.rootPackage,
|
|
610173
|
-
hasEndpointsInTree: allSubpackagesWithEndpoints.size > 0 || this.rootPackage.service != null
|
|
610178
|
+
hasEndpointsInTree: allSubpackagesWithEndpoints.size > 0 || this.rootPackage.service != null,
|
|
610179
|
+
hasWebSocketInTree: allSubpackagesWithWebSocket.size > 0 || this.rootPackage.websocket != null || Object.values(this.subpackages).some((s9) => s9.websocket != null)
|
|
610174
610180
|
}
|
|
610175
610181
|
};
|
|
610176
610182
|
}
|
|
@@ -610215,6 +610221,22 @@ var PackageTreeGenerator = class {
|
|
|
610215
610221
|
return [...this.getAllSubpackagesWithEndpoints(child)];
|
|
610216
610222
|
});
|
|
610217
610223
|
}
|
|
610224
|
+
getAllSubpackagesWithWebSocket(root6) {
|
|
610225
|
+
const subpackage = this.subpackages[root6];
|
|
610226
|
+
if (subpackage == null) {
|
|
610227
|
+
throw new CliError({ message: "Subpackage does not exist: " + root6, code: CliError.Code.ResolutionError });
|
|
610228
|
+
}
|
|
610229
|
+
const subpackagesWithWebSocket = this.getAllChildrenWithWebSocket(subpackage);
|
|
610230
|
+
if (subpackagesWithWebSocket.length > 0 || subpackage.websocket != null) {
|
|
610231
|
+
subpackagesWithWebSocket.push(root6);
|
|
610232
|
+
}
|
|
610233
|
+
return subpackagesWithWebSocket;
|
|
610234
|
+
}
|
|
610235
|
+
getAllChildrenWithWebSocket(package_) {
|
|
610236
|
+
return package_.subpackages.flatMap((child) => {
|
|
610237
|
+
return [...this.getAllSubpackagesWithWebSocket(child)];
|
|
610238
|
+
});
|
|
610239
|
+
}
|
|
610218
610240
|
getPackageForFernFilepath(fernFilepath, index3 = 0, parent = this.rootPackage) {
|
|
610219
610241
|
const nextPart = fernFilepath.allParts[index3];
|
|
610220
610242
|
if (nextPart == null) {
|
|
@@ -647779,6 +647801,7 @@ var AbstractSpecConverter = class extends AbstractConverter {
|
|
|
647779
647801
|
webhooks: void 0,
|
|
647780
647802
|
websocket: void 0,
|
|
647781
647803
|
hasEndpointsInTree: false,
|
|
647804
|
+
hasWebSocketInTree: void 0,
|
|
647782
647805
|
navigationConfig: void 0
|
|
647783
647806
|
};
|
|
647784
647807
|
}
|
|
@@ -668046,7 +668069,7 @@ var AccessTokenPosthogManager = class {
|
|
|
668046
668069
|
properties: {
|
|
668047
668070
|
...event,
|
|
668048
668071
|
...event.properties,
|
|
668049
|
-
version: "5.
|
|
668072
|
+
version: "5.31.0",
|
|
668050
668073
|
usingAccessToken: true,
|
|
668051
668074
|
...getRunIdProperties()
|
|
668052
668075
|
}
|
|
@@ -668110,7 +668133,7 @@ var UserPosthogManager = class {
|
|
|
668110
668133
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
668111
668134
|
event: "CLI",
|
|
668112
668135
|
properties: {
|
|
668113
|
-
version: "5.
|
|
668136
|
+
version: "5.31.0",
|
|
668114
668137
|
...event,
|
|
668115
668138
|
...event.properties,
|
|
668116
668139
|
usingAccessToken: false,
|
|
@@ -812494,10 +812517,10 @@ var V67_TO_V66_MIGRATION = {
|
|
|
812494
812517
|
laterVersion: "v67",
|
|
812495
812518
|
earlierVersion: "v66",
|
|
812496
812519
|
firstGeneratorVersionToConsumeNewIR: {
|
|
812497
|
-
[GeneratorName.TYPESCRIPT_NODE_SDK]:
|
|
812498
|
-
[GeneratorName.TYPESCRIPT_BROWSER_SDK]:
|
|
812499
|
-
[GeneratorName.TYPESCRIPT]:
|
|
812500
|
-
[GeneratorName.TYPESCRIPT_SDK]:
|
|
812520
|
+
[GeneratorName.TYPESCRIPT_NODE_SDK]: "3.70.9-rc.0",
|
|
812521
|
+
[GeneratorName.TYPESCRIPT_BROWSER_SDK]: "3.70.9-rc.0",
|
|
812522
|
+
[GeneratorName.TYPESCRIPT]: "3.70.9-rc.0",
|
|
812523
|
+
[GeneratorName.TYPESCRIPT_SDK]: "3.70.9-rc.0",
|
|
812501
812524
|
[GeneratorName.TYPESCRIPT_EXPRESS]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812502
812525
|
[GeneratorName.JAVA]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812503
812526
|
[GeneratorName.JAVA_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
@@ -812507,7 +812530,7 @@ var V67_TO_V66_MIGRATION = {
|
|
|
812507
812530
|
[GeneratorName.OPENAPI]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812508
812531
|
[GeneratorName.PYTHON_FASTAPI]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812509
812532
|
[GeneratorName.PYTHON_PYDANTIC]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812510
|
-
[GeneratorName.PYTHON_SDK]:
|
|
812533
|
+
[GeneratorName.PYTHON_SDK]: "5.13.1-rc.0",
|
|
812511
812534
|
[GeneratorName.STOPLIGHT]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812512
812535
|
[GeneratorName.POSTMAN]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
812513
812536
|
[GeneratorName.GO_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
@@ -859886,7 +859909,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
859886
859909
|
var LOGS_FOLDER_NAME = "logs";
|
|
859887
859910
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
859888
859911
|
function getCliSource() {
|
|
859889
|
-
const version7 = "5.
|
|
859912
|
+
const version7 = "5.31.0";
|
|
859890
859913
|
return `cli@${version7}`;
|
|
859891
859914
|
}
|
|
859892
859915
|
var DebugLogger = class {
|
|
@@ -878718,7 +878741,7 @@ var LegacyDocsPublisher = class {
|
|
|
878718
878741
|
previewId,
|
|
878719
878742
|
disableTemplates: void 0,
|
|
878720
878743
|
skipUpload,
|
|
878721
|
-
cliVersion: "5.
|
|
878744
|
+
cliVersion: "5.31.0",
|
|
878722
878745
|
loginCommand: "fern auth login"
|
|
878723
878746
|
});
|
|
878724
878747
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -953128,7 +953151,7 @@ function getAutomationContextFromEnv() {
|
|
|
953128
953151
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
953129
953152
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
953130
953153
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
953131
|
-
cli_version: "5.
|
|
953154
|
+
cli_version: "5.31.0"
|
|
953132
953155
|
};
|
|
953133
953156
|
}
|
|
953134
953157
|
function isAutomationMode() {
|
|
@@ -953954,7 +953977,7 @@ var CliContext = class _CliContext {
|
|
|
953954
953977
|
if (false) {
|
|
953955
953978
|
this.logger.error("CLI_VERSION is not defined");
|
|
953956
953979
|
}
|
|
953957
|
-
return "5.
|
|
953980
|
+
return "5.31.0";
|
|
953958
953981
|
}
|
|
953959
953982
|
getCliName() {
|
|
953960
953983
|
if (false) {
|
package/package.json
CHANGED