@fern-api/fern-api-dev 3.49.4 → 3.49.5-4-g8a859dc7967
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 +16 -9
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -1430143,7 +1430143,7 @@ var AccessTokenPosthogManager = class {
|
|
|
1430143
1430143
|
properties: {
|
|
1430144
1430144
|
...event,
|
|
1430145
1430145
|
...event.properties,
|
|
1430146
|
-
version: "3.49.4",
|
|
1430146
|
+
version: "3.49.5-4-g8a859dc7967",
|
|
1430147
1430147
|
usingAccessToken: true
|
|
1430148
1430148
|
}
|
|
1430149
1430149
|
});
|
|
@@ -1430242,7 +1430242,7 @@ var UserPosthogManager = class {
|
|
|
1430242
1430242
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
1430243
1430243
|
event: "CLI",
|
|
1430244
1430244
|
properties: {
|
|
1430245
|
-
version: "3.49.4",
|
|
1430245
|
+
version: "3.49.5-4-g8a859dc7967",
|
|
1430246
1430246
|
...event,
|
|
1430247
1430247
|
...event.properties,
|
|
1430248
1430248
|
usingAccessToken: false,
|
|
@@ -1509677,7 +1509677,7 @@ var CliContext = class {
|
|
|
1509677
1509677
|
if (false) {
|
|
1509678
1509678
|
this.logger.error("CLI_VERSION is not defined");
|
|
1509679
1509679
|
}
|
|
1509680
|
-
return "3.49.4";
|
|
1509680
|
+
return "3.49.5-4-g8a859dc7967";
|
|
1509681
1509681
|
}
|
|
1509682
1509682
|
getCliName() {
|
|
1509683
1509683
|
if (false) {
|
|
@@ -1600431,12 +1600431,12 @@ function buildExampleFromErrorType(errorDeclaration, ir14) {
|
|
|
1600431
1600431
|
}
|
|
1600432
1600432
|
|
|
1600433
1600433
|
// ../register/lib/ir-to-fdr-converter/convertIrToFdrApi.js
|
|
1600434
|
-
function convertIrToFdrApi({ ir: ir14, snippetsConfig, playgroundConfig, context: context2 }) {
|
|
1600434
|
+
function convertIrToFdrApi({ ir: ir14, snippetsConfig, playgroundConfig, context: context2, apiNameOverride }) {
|
|
1600435
1600435
|
const fdrApi = {
|
|
1600436
1600436
|
types: {},
|
|
1600437
1600437
|
subpackages: {},
|
|
1600438
1600438
|
rootPackage: convertPackage(ir14.rootPackage, ir14),
|
|
1600439
|
-
apiName: ir14.apiName.originalName,
|
|
1600439
|
+
apiName: apiNameOverride ?? ir14.apiName.originalName,
|
|
1600440
1600440
|
auth: convertAuth({ auth: ir14.auth, playgroundConfig, context: context2 }),
|
|
1600441
1600441
|
authSchemes: convertAllAuthSchemes({ auth: ir14.auth, playgroundConfig, context: context2 }),
|
|
1600442
1600442
|
snippetsConfiguration: snippetsConfig,
|
|
@@ -1601768,11 +1601768,12 @@ https://buildwithfern.com/learn/docs/getting-started/project-structure#api-defin
|
|
|
1601768
1601768
|
onError: (e6) => this.taskContext.failAndThrow(`Error substituting environment variables in API spec: ${e6}`)
|
|
1601769
1601769
|
}, { substituteAsEmpty: false });
|
|
1601770
1601770
|
}
|
|
1601771
|
+
const apiNameForRegistration = item.apiName ?? workspace.workspaceName;
|
|
1601771
1601772
|
const apiDefinitionId = await this.registerApi({
|
|
1601772
1601773
|
ir: ir14,
|
|
1601773
1601774
|
snippetsConfig,
|
|
1601774
1601775
|
playgroundConfig: { oauth: item.playground?.oauth },
|
|
1601775
|
-
apiName:
|
|
1601776
|
+
apiName: apiNameForRegistration,
|
|
1601776
1601777
|
workspace
|
|
1601777
1601778
|
});
|
|
1601778
1601779
|
const api = convertIrToApiDefinition({
|
|
@@ -1610917,7 +1610918,7 @@ var import_path40 = __toESM(require("path"), 1);
|
|
|
1610917
1610918
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
1610918
1610919
|
var LOGS_FOLDER_NAME = "logs";
|
|
1610919
1610920
|
function getCliSource() {
|
|
1610920
|
-
const version7 = "3.49.4";
|
|
1610921
|
+
const version7 = "3.49.5-4-g8a859dc7967";
|
|
1610921
1610922
|
return `cli@${version7}`;
|
|
1610922
1610923
|
}
|
|
1610923
1610924
|
var DebugLogger = class {
|
|
@@ -1646152,7 +1646153,13 @@ async function publishDocs({ token, organization, docsWorkspace, domain: domain3
|
|
|
1646152
1646153
|
}
|
|
1646153
1646154
|
},
|
|
1646154
1646155
|
registerApi: async ({ ir: ir14, snippetsConfig, playgroundConfig, apiName, workspace }) => {
|
|
1646155
|
-
let apiDefinition = convertIrToFdrApi({
|
|
1646156
|
+
let apiDefinition = convertIrToFdrApi({
|
|
1646157
|
+
ir: ir14,
|
|
1646158
|
+
snippetsConfig,
|
|
1646159
|
+
playgroundConfig,
|
|
1646160
|
+
context: context2,
|
|
1646161
|
+
apiNameOverride: apiName
|
|
1646162
|
+
});
|
|
1646156
1646163
|
const aiEnhancerConfig = getAIEnhancerConfig(withAiExamples, docsWorkspace.config.aiExamples?.style ?? docsWorkspace.config.experimental?.aiExampleStyleInstructions);
|
|
1646157
1646164
|
if (aiEnhancerConfig && workspace) {
|
|
1646158
1646165
|
const sources = workspace.getSources();
|
|
@@ -1646193,7 +1646200,7 @@ async function publishDocs({ token, organization, docsWorkspace, domain: domain3
|
|
|
1646193
1646200
|
}
|
|
1646194
1646201
|
const response = await fdr.api.v1.register.registerApiDefinition({
|
|
1646195
1646202
|
orgId: FdrAPI_exports.OrgId(organization),
|
|
1646196
|
-
apiId: FdrAPI_exports.ApiId(ir14.apiName.originalName),
|
|
1646203
|
+
apiId: FdrAPI_exports.ApiId(apiName ?? ir14.apiName.originalName),
|
|
1646197
1646204
|
definition: apiDefinition,
|
|
1646198
1646205
|
definitionV2: void 0,
|
|
1646199
1646206
|
dynamicIRs: dynamicIRsByLanguage
|
package/package.json
CHANGED