fern-api 0.23.0-rc4 → 0.23.0-rc5
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 +17 -14
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -852804,7 +852804,7 @@ var AccessTokenPosthogManager = class {
|
|
|
852804
852804
|
properties: {
|
|
852805
852805
|
...event,
|
|
852806
852806
|
...event.properties,
|
|
852807
|
-
version: "0.23.0-
|
|
852807
|
+
version: "0.23.0-rc5",
|
|
852808
852808
|
usingAccessToken: true
|
|
852809
852809
|
}
|
|
852810
852810
|
});
|
|
@@ -852866,7 +852866,7 @@ var UserPosthogManager = class {
|
|
|
852866
852866
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
852867
852867
|
event: "CLI",
|
|
852868
852868
|
properties: {
|
|
852869
|
-
version: "0.23.0-
|
|
852869
|
+
version: "0.23.0-rc5",
|
|
852870
852870
|
...event,
|
|
852871
852871
|
...event.properties
|
|
852872
852872
|
}
|
|
@@ -877214,10 +877214,10 @@ var CliContext = class {
|
|
|
877214
877214
|
return "fern-api";
|
|
877215
877215
|
}
|
|
877216
877216
|
getPackageVersion() {
|
|
877217
|
-
if ("0.23.0-
|
|
877217
|
+
if ("0.23.0-rc5" == null) {
|
|
877218
877218
|
this.logger.error("CLI_VERSION is not defined");
|
|
877219
877219
|
}
|
|
877220
|
-
return "0.23.0-
|
|
877220
|
+
return "0.23.0-rc5";
|
|
877221
877221
|
}
|
|
877222
877222
|
getCliName() {
|
|
877223
877223
|
if ("fern" == null) {
|
|
@@ -892995,13 +892995,13 @@ var V39_TO_V38_MIGRATION = {
|
|
|
892995
892995
|
[GeneratorName.JAVA_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
892996
892996
|
[GeneratorName.JAVA_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
892997
892997
|
[GeneratorName.JAVA_SPRING]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
892998
|
-
[GeneratorName.PYTHON_FASTAPI]:
|
|
892999
|
-
[GeneratorName.PYTHON_PYDANTIC]:
|
|
892998
|
+
[GeneratorName.PYTHON_FASTAPI]: "0.9.0-rc1",
|
|
892999
|
+
[GeneratorName.PYTHON_PYDANTIC]: "0.9.0-rc1",
|
|
893000
893000
|
[GeneratorName.OPENAPI_PYTHON_CLIENT]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893001
893001
|
[GeneratorName.OPENAPI]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893002
893002
|
[GeneratorName.STOPLIGHT]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893003
893003
|
[GeneratorName.POSTMAN]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893004
|
-
[GeneratorName.PYTHON_SDK]:
|
|
893004
|
+
[GeneratorName.PYTHON_SDK]: "1.4.0-rc1",
|
|
893005
893005
|
[GeneratorName.GO_FIBER]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893006
893006
|
[GeneratorName.GO_MODEL]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
893007
893007
|
[GeneratorName.GO_SDK]: GeneratorWasNeverUpdatedToConsumeNewIR,
|
|
@@ -894986,7 +894986,7 @@ function getGithubPublishConfig(githubPublishInfo) {
|
|
|
894986
894986
|
_other: () => void 0
|
|
894987
894987
|
}) : void 0;
|
|
894988
894988
|
}
|
|
894989
|
-
function getGeneratorConfig({ generatorInvocation, customConfig, workspaceName, organization, outputVersion = DEFAULT_OUTPUT_VERSION, absolutePathToSnippet, absolutePathToSnippetTemplates, writeUnitTests }) {
|
|
894989
|
+
function getGeneratorConfig({ generatorInvocation, customConfig, workspaceName, organization, outputVersion = DEFAULT_OUTPUT_VERSION, absolutePathToSnippet, absolutePathToSnippetTemplates, writeUnitTests, generateOauthClients }) {
|
|
894990
894990
|
const binds = [];
|
|
894991
894991
|
const output = generatorInvocation.outputMode._visit({
|
|
894992
894992
|
publish: (value) => {
|
|
@@ -895073,7 +895073,7 @@ function getGeneratorConfig({ generatorInvocation, customConfig, workspaceName,
|
|
|
895073
895073
|
dryRun: false,
|
|
895074
895074
|
whitelabel: false,
|
|
895075
895075
|
writeUnitTests,
|
|
895076
|
-
generateOauthClients
|
|
895076
|
+
generateOauthClients
|
|
895077
895077
|
}
|
|
895078
895078
|
};
|
|
895079
895079
|
}
|
|
@@ -895354,7 +895354,7 @@ async function getFernIgnorePaths({ absolutePathToFernignore }) {
|
|
|
895354
895354
|
}
|
|
895355
895355
|
|
|
895356
895356
|
// pnp:/home/circleci/project/packages/cli/generation/local-generation/local-workspace-runner/lib/runGenerator.js
|
|
895357
|
-
async function writeFilesToDiskAndRunGenerator({ organization, workspace, generatorInvocation, absolutePathToLocalOutput, absolutePathToLocalSnippetJSON, absolutePathToLocalSnippetTemplateJSON, absolutePathToFernConfig, audiences, workspaceTempDir, keepDocker, context, irVersionOverride, outputVersionOverride, writeUnitTests }) {
|
|
895357
|
+
async function writeFilesToDiskAndRunGenerator({ organization, workspace, generatorInvocation, absolutePathToLocalOutput, absolutePathToLocalSnippetJSON, absolutePathToLocalSnippetTemplateJSON, absolutePathToFernConfig, audiences, workspaceTempDir, keepDocker, context, irVersionOverride, outputVersionOverride, writeUnitTests, generateOauthClients }) {
|
|
895358
895358
|
const absolutePathToIr = await writeIrToFile({
|
|
895359
895359
|
workspace,
|
|
895360
895360
|
audiences,
|
|
@@ -895403,7 +895403,8 @@ async function writeFilesToDiskAndRunGenerator({ organization, workspace, genera
|
|
|
895403
895403
|
keepDocker,
|
|
895404
895404
|
generatorInvocation,
|
|
895405
895405
|
context,
|
|
895406
|
-
writeUnitTests
|
|
895406
|
+
writeUnitTests,
|
|
895407
|
+
generateOauthClients
|
|
895407
895408
|
});
|
|
895408
895409
|
const taskHandler = new LocalTaskHandler({
|
|
895409
895410
|
context,
|
|
@@ -895458,7 +895459,7 @@ async function writeDotMock({ absolutePathToDotMockDirectory, absolutePathToFern
|
|
|
895458
895459
|
await (0, import_promises37.writeFile)(`${absolutePathToDotMockDirectory}/.mock/fern.config.json`, '{"organization": "fern-test", "version": "0.19.0"}');
|
|
895459
895460
|
}
|
|
895460
895461
|
}
|
|
895461
|
-
async function runGenerator({ workspaceName, organization, outputVersion, absolutePathToOutput, absolutePathToSnippet, absolutePathToSnippetTemplates, absolutePathToIr, absolutePathToWriteConfigJson, keepDocker, generatorInvocation, writeUnitTests }) {
|
|
895462
|
+
async function runGenerator({ workspaceName, organization, outputVersion, absolutePathToOutput, absolutePathToSnippet, absolutePathToSnippetTemplates, absolutePathToIr, absolutePathToWriteConfigJson, keepDocker, generatorInvocation, writeUnitTests, generateOauthClients }) {
|
|
895462
895463
|
const { name: name2, version: version3, config: customConfig } = generatorInvocation;
|
|
895463
895464
|
const imageName = `${name2}:${version3}`;
|
|
895464
895465
|
const binds = [
|
|
@@ -895474,7 +895475,8 @@ async function runGenerator({ workspaceName, organization, outputVersion, absolu
|
|
|
895474
895475
|
organization,
|
|
895475
895476
|
absolutePathToSnippet,
|
|
895476
895477
|
absolutePathToSnippetTemplates,
|
|
895477
|
-
writeUnitTests
|
|
895478
|
+
writeUnitTests,
|
|
895479
|
+
generateOauthClients
|
|
895478
895480
|
});
|
|
895479
895481
|
binds.push(...bindsForGenerators);
|
|
895480
895482
|
const parsedConfig = await FernGeneratorExecParsing.GeneratorConfig.json(config);
|
|
@@ -895519,7 +895521,8 @@ async function runLocalGenerationForWorkspace({ projectConfig, workspace, genera
|
|
|
895519
895521
|
context: interactiveTaskContext,
|
|
895520
895522
|
irVersionOverride: generatorInvocation.irVersionOverride,
|
|
895521
895523
|
outputVersionOverride: void 0,
|
|
895522
|
-
writeUnitTests: false
|
|
895524
|
+
writeUnitTests: false,
|
|
895525
|
+
generateOauthClients: false
|
|
895523
895526
|
});
|
|
895524
895527
|
interactiveTaskContext.logger.info(source_default.green("Wrote files to " + generatorInvocation.absolutePathToLocalOutput));
|
|
895525
895528
|
}
|