@fern-api/fern-api-dev 5.30.3 → 5.30.4
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 +31 -14
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -584420,7 +584420,7 @@ function getRequestBody2({ context: context3, operation, streamingExtension, isS
|
|
|
584420
584420
|
return void 0;
|
|
584421
584421
|
}
|
|
584422
584422
|
const resolvedRequestBodySchema = isReferenceObject(jsonMediaObject.schema) ? context3.resolveSchemaReference(jsonMediaObject.schema) : jsonMediaObject.schema;
|
|
584423
|
-
if (resolvedRequestBodySchema.allOf == null && resolvedRequestBodySchema.properties == null) {
|
|
584423
|
+
if (resolvedRequestBodySchema.allOf == null && resolvedRequestBodySchema.properties == null && resolvedRequestBodySchema.oneOf == null && resolvedRequestBodySchema.anyOf == null) {
|
|
584424
584424
|
return void 0;
|
|
584425
584425
|
}
|
|
584426
584426
|
let streamingProperty = resolvedRequestBodySchema.properties?.[streamingExtension.streamConditionProperty];
|
|
@@ -654182,18 +654182,24 @@ var RequestBodyConverter = class extends converters_exports.AbstractConverters.A
|
|
|
654182
654182
|
if (resolvedMediaTypeSchema == null) {
|
|
654183
654183
|
return void 0;
|
|
654184
654184
|
}
|
|
654185
|
-
|
|
654186
|
-
if (streamConditionProperty
|
|
654187
|
-
|
|
654185
|
+
let streamConditionProperty = resolvedMediaTypeSchema.properties?.[this.streamingExtension.streamConditionProperty];
|
|
654186
|
+
if (streamConditionProperty != null && this.context.isReferenceObject(streamConditionProperty)) {
|
|
654187
|
+
streamConditionProperty = void 0;
|
|
654188
|
+
}
|
|
654189
|
+
if (streamConditionProperty == null) {
|
|
654190
|
+
if (resolvedMediaTypeSchema.oneOf == null && resolvedMediaTypeSchema.anyOf == null) {
|
|
654191
|
+
return void 0;
|
|
654192
|
+
}
|
|
654193
|
+
streamConditionProperty = { type: "boolean" };
|
|
654188
654194
|
}
|
|
654189
|
-
const streamingOutput = this.
|
|
654195
|
+
const streamingOutput = this.buildStreamConditionRequestBody({
|
|
654190
654196
|
streamConditionProperty,
|
|
654191
654197
|
resolvedMediaTypeSchema,
|
|
654192
654198
|
isStreaming: true,
|
|
654193
654199
|
contentType,
|
|
654194
654200
|
mediaTypeObject
|
|
654195
654201
|
});
|
|
654196
|
-
const nonStreamingOutput = this.
|
|
654202
|
+
const nonStreamingOutput = this.buildStreamConditionRequestBody({
|
|
654197
654203
|
streamConditionProperty,
|
|
654198
654204
|
resolvedMediaTypeSchema,
|
|
654199
654205
|
isStreaming: false,
|
|
@@ -654215,7 +654221,7 @@ var RequestBodyConverter = class extends converters_exports.AbstractConverters.A
|
|
|
654215
654221
|
})
|
|
654216
654222
|
};
|
|
654217
654223
|
}
|
|
654218
|
-
|
|
654224
|
+
buildStreamConditionRequestBody({ streamConditionProperty, resolvedMediaTypeSchema, isStreaming, contentType, mediaTypeObject }) {
|
|
654219
654225
|
if (this.streamingExtension == null || this.streamingExtension.type !== "streamCondition") {
|
|
654220
654226
|
return void 0;
|
|
654221
654227
|
}
|
|
@@ -654262,7 +654268,18 @@ var RequestBodyConverter = class extends converters_exports.AbstractConverters.A
|
|
|
654262
654268
|
inlinedTypes: convertedSchema.inlinedTypes
|
|
654263
654269
|
};
|
|
654264
654270
|
}
|
|
654265
|
-
return
|
|
654271
|
+
return {
|
|
654272
|
+
requestBody: HttpRequestBody.reference({
|
|
654273
|
+
contentType,
|
|
654274
|
+
docs: this.description,
|
|
654275
|
+
requestBodyType: convertedSchema.type,
|
|
654276
|
+
v2Examples: this.convertMediaTypeObjectExamples({
|
|
654277
|
+
mediaTypeObject: modifiedMediaTypeObject,
|
|
654278
|
+
exampleGenerationStrategy: "request"
|
|
654279
|
+
})
|
|
654280
|
+
}),
|
|
654281
|
+
inlinedTypes: convertedSchema.inlinedTypes ?? {}
|
|
654282
|
+
};
|
|
654266
654283
|
}
|
|
654267
654284
|
recursivelyCheckTypeReferenceIsFile({ typeReference: typeReference2, isOptional, isArray: isArray7 }) {
|
|
654268
654285
|
if (this.context.isList(typeReference2)) {
|
|
@@ -668029,7 +668046,7 @@ var AccessTokenPosthogManager = class {
|
|
|
668029
668046
|
properties: {
|
|
668030
668047
|
...event,
|
|
668031
668048
|
...event.properties,
|
|
668032
|
-
version: "5.30.
|
|
668049
|
+
version: "5.30.4",
|
|
668033
668050
|
usingAccessToken: true,
|
|
668034
668051
|
...getRunIdProperties()
|
|
668035
668052
|
}
|
|
@@ -668093,7 +668110,7 @@ var UserPosthogManager = class {
|
|
|
668093
668110
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
668094
668111
|
event: "CLI",
|
|
668095
668112
|
properties: {
|
|
668096
|
-
version: "5.30.
|
|
668113
|
+
version: "5.30.4",
|
|
668097
668114
|
...event,
|
|
668098
668115
|
...event.properties,
|
|
668099
668116
|
usingAccessToken: false,
|
|
@@ -859869,7 +859886,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
|
859869
859886
|
var LOGS_FOLDER_NAME = "logs";
|
|
859870
859887
|
var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
|
|
859871
859888
|
function getCliSource() {
|
|
859872
|
-
const version7 = "5.30.
|
|
859889
|
+
const version7 = "5.30.4";
|
|
859873
859890
|
return `cli@${version7}`;
|
|
859874
859891
|
}
|
|
859875
859892
|
var DebugLogger = class {
|
|
@@ -878701,7 +878718,7 @@ var LegacyDocsPublisher = class {
|
|
|
878701
878718
|
previewId,
|
|
878702
878719
|
disableTemplates: void 0,
|
|
878703
878720
|
skipUpload,
|
|
878704
|
-
cliVersion: "5.30.
|
|
878721
|
+
cliVersion: "5.30.4",
|
|
878705
878722
|
loginCommand: "fern auth login"
|
|
878706
878723
|
});
|
|
878707
878724
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
@@ -953111,7 +953128,7 @@ function getAutomationContextFromEnv() {
|
|
|
953111
953128
|
config_branch: process.env.FERN_CONFIG_BRANCH,
|
|
953112
953129
|
config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
|
|
953113
953130
|
trigger: process.env.GITHUB_EVENT_NAME,
|
|
953114
|
-
cli_version: "5.30.
|
|
953131
|
+
cli_version: "5.30.4"
|
|
953115
953132
|
};
|
|
953116
953133
|
}
|
|
953117
953134
|
function isAutomationMode() {
|
|
@@ -953937,7 +953954,7 @@ var CliContext = class _CliContext {
|
|
|
953937
953954
|
if (false) {
|
|
953938
953955
|
this.logger.error("CLI_VERSION is not defined");
|
|
953939
953956
|
}
|
|
953940
|
-
return "5.30.
|
|
953957
|
+
return "5.30.4";
|
|
953941
953958
|
}
|
|
953942
953959
|
getCliName() {
|
|
953943
953960
|
if (false) {
|
package/package.json
CHANGED