@fern-api/fern-api-dev 4.37.11 → 4.37.12-1-g5a6d7637c13
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 +64 -9
- package/package.json +1 -1
package/cli.cjs
CHANGED
|
@@ -499495,8 +499495,30 @@ function convertObject3({ nameOverride, generatedName, title: title3, breadcrumb
|
|
|
499495
499495
|
}
|
|
499496
499496
|
return property22;
|
|
499497
499497
|
});
|
|
499498
|
-
|
|
499499
|
-
if (
|
|
499498
|
+
let mergedAllOfElement = allOfElement;
|
|
499499
|
+
if (allOfElement.properties != null) {
|
|
499500
|
+
const mergedProperties = {};
|
|
499501
|
+
for (const [key2, overridePropSchema] of Object.entries(allOfElement.properties)) {
|
|
499502
|
+
let merged = overridePropSchema;
|
|
499503
|
+
if (!isReferenceObject(overridePropSchema)) {
|
|
499504
|
+
for (const otherAllOfElement of allOf) {
|
|
499505
|
+
if (otherAllOfElement === allOfElement || !isReferenceObject(otherAllOfElement)) {
|
|
499506
|
+
continue;
|
|
499507
|
+
}
|
|
499508
|
+
const resolvedParent = context2.resolveSchemaReference(otherAllOfElement);
|
|
499509
|
+
const basePropSchema = resolvedParent.properties?.[key2];
|
|
499510
|
+
if (basePropSchema != null && !isReferenceObject(basePropSchema)) {
|
|
499511
|
+
merged = { ...basePropSchema, ...overridePropSchema };
|
|
499512
|
+
break;
|
|
499513
|
+
}
|
|
499514
|
+
}
|
|
499515
|
+
}
|
|
499516
|
+
mergedProperties[key2] = merged;
|
|
499517
|
+
}
|
|
499518
|
+
mergedAllOfElement = { ...allOfElement, properties: mergedProperties };
|
|
499519
|
+
}
|
|
499520
|
+
const variants = mergedAllOfElement.oneOf ?? mergedAllOfElement.anyOf;
|
|
499521
|
+
if (variants != null && mergedAllOfElement.type == null && mergedAllOfElement.properties == null) {
|
|
499500
499522
|
const seenKeys = new Set(inlinedParentProperties.map((p10) => p10.key));
|
|
499501
499523
|
for (const variantSchema of variants) {
|
|
499502
499524
|
const resolvedVariantSchema = isReferenceObject(variantSchema) ? context2.resolveSchemaReference(variantSchema) : variantSchema;
|
|
@@ -499530,7 +499552,7 @@ function convertObject3({ nameOverride, generatedName, title: title3, breadcrumb
|
|
|
499530
499552
|
}
|
|
499531
499553
|
}
|
|
499532
499554
|
} else {
|
|
499533
|
-
const allOfSchema = convertSchema2(
|
|
499555
|
+
const allOfSchema = convertSchema2(mergedAllOfElement, false, false, context2, breadcrumbs, source2, namespace);
|
|
499534
499556
|
if (allOfSchema.type === "object") {
|
|
499535
499557
|
inlinedParentProperties.push(...allOfSchema.properties);
|
|
499536
499558
|
}
|
|
@@ -563985,9 +564007,26 @@ var ObjectSchemaConverter = class extends AbstractConverter {
|
|
|
563985
564007
|
const objectHasRequiredProperties = this.schema.required != null && this.schema.required.length > 0;
|
|
563986
564008
|
let inlinedTypes = propertiesInlinedTypes;
|
|
563987
564009
|
let propertiesByAudience = basePropertiesByAudience;
|
|
564010
|
+
const resolvedParentProperties = {};
|
|
564011
|
+
for (const allOfSchemaOrReference of this.schema.allOf ?? []) {
|
|
564012
|
+
if (this.context.isReferenceObject(allOfSchemaOrReference)) {
|
|
564013
|
+
const resolved = this.context.resolveMaybeReference({
|
|
564014
|
+
schemaOrReference: allOfSchemaOrReference,
|
|
564015
|
+
breadcrumbs: this.breadcrumbs
|
|
564016
|
+
});
|
|
564017
|
+
if (resolved?.properties != null) {
|
|
564018
|
+
for (const [key2, propSchema] of Object.entries(resolved.properties)) {
|
|
564019
|
+
if (!this.context.isReferenceObject(propSchema) && resolvedParentProperties[key2] == null) {
|
|
564020
|
+
resolvedParentProperties[key2] = propSchema;
|
|
564021
|
+
}
|
|
564022
|
+
}
|
|
564023
|
+
}
|
|
564024
|
+
}
|
|
564025
|
+
}
|
|
563988
564026
|
for (const [index3, allOfSchemaOrReference] of (this.schema.allOf ?? []).entries()) {
|
|
563989
564027
|
const breadcrumbs = [...this.breadcrumbs, "allOf", index3.toString()];
|
|
563990
564028
|
let allOfSchema;
|
|
564029
|
+
let isInlineAllOf = false;
|
|
563991
564030
|
if (this.context.isReferenceObject(allOfSchemaOrReference)) {
|
|
563992
564031
|
const maybeResolvedReference = this.context.resolveMaybeReference({
|
|
563993
564032
|
schemaOrReference: allOfSchemaOrReference,
|
|
@@ -564012,6 +564051,7 @@ var ObjectSchemaConverter = class extends AbstractConverter {
|
|
|
564012
564051
|
}
|
|
564013
564052
|
} else {
|
|
564014
564053
|
allOfSchema = allOfSchemaOrReference;
|
|
564054
|
+
isInlineAllOf = true;
|
|
564015
564055
|
}
|
|
564016
564056
|
if (typeof allOfSchema.additionalProperties === "boolean" && allOfSchema.additionalProperties) {
|
|
564017
564057
|
hasAdditionalProperties = true;
|
|
@@ -564068,8 +564108,20 @@ var ObjectSchemaConverter = class extends AbstractConverter {
|
|
|
564068
564108
|
}
|
|
564069
564109
|
continue;
|
|
564070
564110
|
}
|
|
564111
|
+
let mergedProperties = allOfSchema.properties ?? {};
|
|
564112
|
+
if (isInlineAllOf) {
|
|
564113
|
+
mergedProperties = {};
|
|
564114
|
+
for (const [key2, propSchema] of Object.entries(allOfSchema.properties ?? {})) {
|
|
564115
|
+
const parentProp = resolvedParentProperties[key2];
|
|
564116
|
+
if (parentProp != null && !this.context.isReferenceObject(propSchema)) {
|
|
564117
|
+
mergedProperties[key2] = { ...parentProp, ...propSchema };
|
|
564118
|
+
} else {
|
|
564119
|
+
mergedProperties[key2] = propSchema;
|
|
564120
|
+
}
|
|
564121
|
+
}
|
|
564122
|
+
}
|
|
564071
564123
|
const { convertedProperties: allOfProperties, inlinedTypesFromProperties: inlinedTypesFromAllOf, referencedTypes: allOfReferencedTypes, propertiesByAudience: allOfPropertiesByAudience } = convertProperties({
|
|
564072
|
-
properties:
|
|
564124
|
+
properties: mergedProperties,
|
|
564073
564125
|
required: [...this.schema.required ?? [], ...allOfSchema.required ?? []],
|
|
564074
564126
|
breadcrumbs,
|
|
564075
564127
|
context: this.context,
|
|
@@ -581600,7 +581652,7 @@ var AccessTokenPosthogManager = class {
|
|
|
581600
581652
|
properties: {
|
|
581601
581653
|
...event,
|
|
581602
581654
|
...event.properties,
|
|
581603
|
-
version: "4.37.
|
|
581655
|
+
version: "4.37.12-1-g5a6d7637c13",
|
|
581604
581656
|
usingAccessToken: true
|
|
581605
581657
|
}
|
|
581606
581658
|
});
|
|
@@ -581651,7 +581703,7 @@ var UserPosthogManager = class {
|
|
|
581651
581703
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
581652
581704
|
event: "CLI",
|
|
581653
581705
|
properties: {
|
|
581654
|
-
version: "4.37.
|
|
581706
|
+
version: "4.37.12-1-g5a6d7637c13",
|
|
581655
581707
|
...event,
|
|
581656
581708
|
...event.properties,
|
|
581657
581709
|
usingAccessToken: false,
|
|
@@ -787754,7 +787806,7 @@ var import_path51 = __toESM(require("path"), 1);
|
|
|
787754
787806
|
var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
|
|
787755
787807
|
var LOGS_FOLDER_NAME = "logs";
|
|
787756
787808
|
function getCliSource() {
|
|
787757
|
-
const version8 = "4.37.
|
|
787809
|
+
const version8 = "4.37.12-1-g5a6d7637c13";
|
|
787758
787810
|
return `cli@${version8}`;
|
|
787759
787811
|
}
|
|
787760
787812
|
var DebugLogger = class {
|
|
@@ -798549,7 +798601,7 @@ var LegacyDocsPublisher = class {
|
|
|
798549
798601
|
previewId: void 0,
|
|
798550
798602
|
disableTemplates: void 0,
|
|
798551
798603
|
skipUpload,
|
|
798552
|
-
cliVersion: "4.37.
|
|
798604
|
+
cliVersion: "4.37.12-1-g5a6d7637c13"
|
|
798553
798605
|
});
|
|
798554
798606
|
if (taskContext.getResult() === TaskResult.Failure) {
|
|
798555
798607
|
return { success: false };
|
|
@@ -839445,6 +839497,9 @@ var DynamicTypeLiteralMapper5 = class {
|
|
|
839445
839497
|
return rust_exports.Expression.none();
|
|
839446
839498
|
}
|
|
839447
839499
|
const innerTypeRef = typeReference2.value || { type: "unknown" };
|
|
839500
|
+
if (innerTypeRef.type === "optional" || innerTypeRef.type === "nullable") {
|
|
839501
|
+
return this.convertOptional({ typeReference: innerTypeRef, value });
|
|
839502
|
+
}
|
|
839448
839503
|
const innerValue = this.convert({ typeReference: innerTypeRef, value });
|
|
839449
839504
|
return rust_exports.Expression.functionCall("Some", [innerValue]);
|
|
839450
839505
|
}
|
|
@@ -871140,7 +871195,7 @@ var CliContext = class {
|
|
|
871140
871195
|
if (false) {
|
|
871141
871196
|
this.logger.error("CLI_VERSION is not defined");
|
|
871142
871197
|
}
|
|
871143
|
-
return "4.37.
|
|
871198
|
+
return "4.37.12-1-g5a6d7637c13";
|
|
871144
871199
|
}
|
|
871145
871200
|
getCliName() {
|
|
871146
871201
|
if (false) {
|
package/package.json
CHANGED