fern-api 0.23.0-rc4 → 0.23.0-rc6
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 +23 -20
- 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-rc6",
|
|
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-rc6",
|
|
852870
852870
|
...event,
|
|
852871
852871
|
...event.properties
|
|
852872
852872
|
}
|
|
@@ -870133,7 +870133,7 @@ function convertResponse({ operationContext, responses, context, responseBreadcr
|
|
|
870133
870133
|
};
|
|
870134
870134
|
}
|
|
870135
870135
|
function convertResolvedResponse({ operationContext, streamFormat, response, context, responseBreadcrumbs }) {
|
|
870136
|
-
var _a5, _b4, _c4, _d2, _e
|
|
870136
|
+
var _a5, _b4, _c4, _d2, _e;
|
|
870137
870137
|
const resolvedResponse = isReferenceObject(response) ? context.resolveResponseReference(response) : response;
|
|
870138
870138
|
if (resolvedResponse.content != null) {
|
|
870139
870139
|
const isdownloadFile = Object.entries(resolvedResponse.content).find(([_4, mediaObject]) => {
|
|
@@ -870172,14 +870172,14 @@ function convertResolvedResponse({ operationContext, streamFormat, response, con
|
|
|
870172
870172
|
fullExamples: jsonMediaObject.examples
|
|
870173
870173
|
});
|
|
870174
870174
|
}
|
|
870175
|
-
if (((
|
|
870175
|
+
if (((_a5 = resolvedResponse.content) == null ? void 0 : _a5[APPLICATION_OCTET_STREAM_CONTENT]) != null) {
|
|
870176
870176
|
return ResponseWithExample.file({ description: resolvedResponse.description });
|
|
870177
870177
|
}
|
|
870178
|
-
if (((
|
|
870178
|
+
if (((_b4 = resolvedResponse.content) == null ? void 0 : _b4[APPLICATION_PDF]) != null) {
|
|
870179
870179
|
return ResponseWithExample.file({ description: resolvedResponse.description });
|
|
870180
870180
|
}
|
|
870181
|
-
if (((
|
|
870182
|
-
const textPlainSchema = (
|
|
870181
|
+
if (((_c4 = resolvedResponse.content) == null ? void 0 : _c4[TEXT_PLAIN_CONTENT]) != null) {
|
|
870182
|
+
const textPlainSchema = (_d2 = resolvedResponse.content[TEXT_PLAIN_CONTENT]) == null ? void 0 : _d2.schema;
|
|
870183
870183
|
if (textPlainSchema == null) {
|
|
870184
870184
|
return ResponseWithExample.text({ description: resolvedResponse.description });
|
|
870185
870185
|
}
|
|
@@ -870189,7 +870189,7 @@ function convertResolvedResponse({ operationContext, streamFormat, response, con
|
|
|
870189
870189
|
}
|
|
870190
870190
|
return ResponseWithExample.text({ description: resolvedResponse.description });
|
|
870191
870191
|
}
|
|
870192
|
-
if (((
|
|
870192
|
+
if (((_e = resolvedResponse.content) == null ? void 0 : _e[AUDIO_MPEG]) != null) {
|
|
870193
870193
|
return ResponseWithExample.file({ description: resolvedResponse.description });
|
|
870194
870194
|
}
|
|
870195
870195
|
return void 0;
|
|
@@ -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-rc6" == null) {
|
|
877218
877218
|
this.logger.error("CLI_VERSION is not defined");
|
|
877219
877219
|
}
|
|
877220
|
-
return "0.23.0-
|
|
877220
|
+
return "0.23.0-rc6";
|
|
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
|
}
|