fern-api 0.22.0-rc1 → 0.22.0-rc3
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/bundle.cjs +19 -15
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -25995,6 +25995,7 @@ var init_VersionFileConfig = __esm({
|
|
|
25995
25995
|
"pnp:/home/circleci/project/packages/cli/configuration/lib/docs-yml/schemas/sdk/serialization/resources/docs/types/VersionFileConfig.js"() {
|
|
25996
25996
|
init_core();
|
|
25997
25997
|
VersionFileConfig = schemas_exports.object({
|
|
25998
|
+
tabs: schemas_exports.record(schemas_exports.lazy(async () => (await Promise.resolve().then(() => (init_serialization(), serialization_exports))).TabId), schemas_exports.lazyObject(async () => (await Promise.resolve().then(() => (init_serialization(), serialization_exports))).TabConfig)).optional(),
|
|
25998
25999
|
navigation: schemas_exports.lazy(async () => (await Promise.resolve().then(() => (init_serialization(), serialization_exports))).NavigationConfig)
|
|
25999
26000
|
});
|
|
26000
26001
|
}
|
|
@@ -823154,6 +823155,7 @@ async function getNavigationConfiguration({ versions, navigation, absolutePathTo
|
|
|
823154
823155
|
context
|
|
823155
823156
|
});
|
|
823156
823157
|
versionedNavbars.push({
|
|
823158
|
+
tabs: result2.tabs,
|
|
823157
823159
|
version: version3.displayName,
|
|
823158
823160
|
navigation: navigation2,
|
|
823159
823161
|
availability: version3.availability,
|
|
@@ -827393,7 +827395,7 @@ var AccessTokenPosthogManager = class {
|
|
|
827393
827395
|
properties: {
|
|
827394
827396
|
...event,
|
|
827395
827397
|
...event.properties,
|
|
827396
|
-
version: "0.22.0-
|
|
827398
|
+
version: "0.22.0-rc3",
|
|
827397
827399
|
usingAccessToken: true
|
|
827398
827400
|
}
|
|
827399
827401
|
});
|
|
@@ -827455,7 +827457,7 @@ var UserPosthogManager = class {
|
|
|
827455
827457
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
827456
827458
|
event: "CLI",
|
|
827457
827459
|
properties: {
|
|
827458
|
-
version: "0.22.0-
|
|
827460
|
+
version: "0.22.0-rc3",
|
|
827459
827461
|
...event,
|
|
827460
827462
|
...event.properties
|
|
827461
827463
|
}
|
|
@@ -845657,7 +845659,17 @@ function generateIr({ openApi, taskContext, disableExamples }) {
|
|
|
845657
845659
|
}
|
|
845658
845660
|
return [key2, convertSchema(schema2, false, context, [key2])];
|
|
845659
845661
|
}).filter((entry) => entry.length > 0));
|
|
845660
|
-
const
|
|
845662
|
+
const schemasWithoutDiscriminants = maybeRemoveDiscriminantsFromSchemas(schemasWithExample, context);
|
|
845663
|
+
const schemas = {};
|
|
845664
|
+
for (const [key2, schemaWithExample] of Object.entries(schemasWithoutDiscriminants)) {
|
|
845665
|
+
const schema2 = convertSchemaWithExampleToSchema(schemaWithExample);
|
|
845666
|
+
if (context.isSchemaExcluded(key2)) {
|
|
845667
|
+
continue;
|
|
845668
|
+
}
|
|
845669
|
+
schemas[key2] = schema2;
|
|
845670
|
+
taskContext.logger.debug(`Converted schema ${key2}`);
|
|
845671
|
+
}
|
|
845672
|
+
const exampleEndpointFactory = new ExampleEndpointFactory(schemasWithoutDiscriminants, context.logger);
|
|
845661
845673
|
const endpoints = endpointsWithExample.map((endpointWithExample) => {
|
|
845662
845674
|
const extensionExamples = endpointWithExample.examples;
|
|
845663
845675
|
let examples = extensionExamples;
|
|
@@ -845710,15 +845722,6 @@ function generateIr({ openApi, taskContext, disableExamples }) {
|
|
|
845710
845722
|
examples
|
|
845711
845723
|
};
|
|
845712
845724
|
});
|
|
845713
|
-
const schemas = {};
|
|
845714
|
-
for (const [key2, schemaWithExample] of Object.entries(schemasWithExample)) {
|
|
845715
|
-
const schema2 = convertSchemaWithExampleToSchema(schemaWithExample);
|
|
845716
|
-
if (context.isSchemaExcluded(key2)) {
|
|
845717
|
-
continue;
|
|
845718
|
-
}
|
|
845719
|
-
schemas[key2] = schema2;
|
|
845720
|
-
taskContext.logger.debug(`Converted schema ${key2}`);
|
|
845721
|
-
}
|
|
845722
845725
|
const groupInfo = getFernGroups({ document: openApi, context });
|
|
845723
845726
|
const ir = {
|
|
845724
845727
|
title: openApi.info.title,
|
|
@@ -845736,7 +845739,7 @@ function generateIr({ openApi, taskContext, disableExamples }) {
|
|
|
845736
845739
|
endpoints,
|
|
845737
845740
|
webhooks,
|
|
845738
845741
|
channel: [],
|
|
845739
|
-
schemas
|
|
845742
|
+
schemas,
|
|
845740
845743
|
securitySchemes,
|
|
845741
845744
|
hasEndpointsMarkedInternal: endpoints.some((endpoint) => endpoint.internal),
|
|
845742
845745
|
errors: context.getErrors(),
|
|
@@ -851712,10 +851715,10 @@ var CliContext = class {
|
|
|
851712
851715
|
return "fern-api";
|
|
851713
851716
|
}
|
|
851714
851717
|
getPackageVersion() {
|
|
851715
|
-
if ("0.22.0-
|
|
851718
|
+
if ("0.22.0-rc3" == null) {
|
|
851716
851719
|
this.logger.error("CLI_VERSION is not defined");
|
|
851717
851720
|
}
|
|
851718
|
-
return "0.22.0-
|
|
851721
|
+
return "0.22.0-rc3";
|
|
851719
851722
|
}
|
|
851720
851723
|
getCliName() {
|
|
851721
851724
|
if ("fern" == null) {
|
|
@@ -895602,6 +895605,7 @@ async function convertNavigationConfig({ navigationConfig, tabs, parsedDocsConfi
|
|
|
895602
895605
|
versions: await Promise.all(navigationConfig.versions.map(async (version4) => {
|
|
895603
895606
|
const convertedNavigation = await convertUnversionedNavigationConfig({
|
|
895604
895607
|
navigationConfig: version4.navigation,
|
|
895608
|
+
tabs: version4.tabs,
|
|
895605
895609
|
parsedDocsConfig,
|
|
895606
895610
|
organization,
|
|
895607
895611
|
fernWorkspaces,
|