fern-api 0.16.24 → 0.16.26
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 +11 -10
- package/package.json +1 -1
package/bundle.cjs
CHANGED
|
@@ -736951,7 +736951,7 @@ var AccessTokenPosthogManager = class {
|
|
|
736951
736951
|
properties: {
|
|
736952
736952
|
...event,
|
|
736953
736953
|
...event.properties,
|
|
736954
|
-
version: "0.16.
|
|
736954
|
+
version: "0.16.26",
|
|
736955
736955
|
usingAccessToken: true
|
|
736956
736956
|
}
|
|
736957
736957
|
});
|
|
@@ -737013,7 +737013,7 @@ var UserPosthogManager = class {
|
|
|
737013
737013
|
distinctId: this.userId ?? await this.getPersistedDistinctId(),
|
|
737014
737014
|
event: "CLI",
|
|
737015
737015
|
properties: {
|
|
737016
|
-
version: "0.16.
|
|
737016
|
+
version: "0.16.26",
|
|
737017
737017
|
...event,
|
|
737018
737018
|
...event.properties
|
|
737019
737019
|
}
|
|
@@ -751828,7 +751828,7 @@ function convertSchema(schema2, wrapAsNullable, context, breadcrumbs, referenced
|
|
|
751828
751828
|
}
|
|
751829
751829
|
return convertReferenceObject(schema2, wrapAsNullable, context, breadcrumbs);
|
|
751830
751830
|
} else {
|
|
751831
|
-
return convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, propertiesToExclude);
|
|
751831
|
+
return convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, propertiesToExclude, referencedAsRequest);
|
|
751832
751832
|
}
|
|
751833
751833
|
}
|
|
751834
751834
|
function convertReferenceObject(schema2, wrapAsNullable, context, breadcrumbs) {
|
|
@@ -751843,7 +751843,7 @@ function convertReferenceObject(schema2, wrapAsNullable, context, breadcrumbs) {
|
|
|
751843
751843
|
return referenceSchema;
|
|
751844
751844
|
}
|
|
751845
751845
|
}
|
|
751846
|
-
function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, propertiesToExclude = /* @__PURE__ */ new Set()) {
|
|
751846
|
+
function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, propertiesToExclude = /* @__PURE__ */ new Set(), referencedAsRequest = false) {
|
|
751847
751847
|
const nameOverride = getExtension(schema2, FernOpenAPIExtension.TYPE_NAME);
|
|
751848
751848
|
const groupName = getExtension(schema2, FernOpenAPIExtension.SDK_GROUP_NAME);
|
|
751849
751849
|
const generatedName = getGeneratedTypeName(breadcrumbs);
|
|
@@ -752040,7 +752040,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
752040
752040
|
groupName
|
|
752041
752041
|
});
|
|
752042
752042
|
} else if (schema2.oneOf.length === 1 && schema2.oneOf[0] != null) {
|
|
752043
|
-
const convertedSchema = convertSchema(schema2.oneOf[0], wrapAsNullable, context, breadcrumbs);
|
|
752043
|
+
const convertedSchema = convertSchema(schema2.oneOf[0], wrapAsNullable, context, breadcrumbs, referencedAsRequest);
|
|
752044
752044
|
return maybeInjectDescriptionOrGroupName(convertedSchema, description, groupName);
|
|
752045
752045
|
} else if (schema2.oneOf.length > 1) {
|
|
752046
752046
|
if (schema2.oneOf.length === 2 && schema2.oneOf[0] != null && schema2.oneOf[1] != null) {
|
|
@@ -752100,7 +752100,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
752100
752100
|
}
|
|
752101
752101
|
if (schema2.anyOf != null && schema2.anyOf.length > 0) {
|
|
752102
752102
|
if (schema2.anyOf.length === 1 && schema2.anyOf[0] != null) {
|
|
752103
|
-
const convertedSchema = convertSchema(schema2.anyOf[0], wrapAsNullable, context, breadcrumbs);
|
|
752103
|
+
const convertedSchema = convertSchema(schema2.anyOf[0], wrapAsNullable, context, breadcrumbs, referencedAsRequest);
|
|
752104
752104
|
return maybeInjectDescriptionOrGroupName(convertedSchema, description, groupName);
|
|
752105
752105
|
}
|
|
752106
752106
|
if (schema2.anyOf.length === 2 && schema2.anyOf[0] != null && schema2.anyOf[1] != null) {
|
|
@@ -752146,7 +752146,7 @@ function convertSchemaObject(schema2, wrapAsNullable, context, breadcrumbs, prop
|
|
|
752146
752146
|
if (schema2.allOf != null) {
|
|
752147
752147
|
const maybeSingularAllOf = getSingularAllOf({ properties: schema2.properties ?? {}, allOf: schema2.allOf });
|
|
752148
752148
|
if (maybeSingularAllOf != null) {
|
|
752149
|
-
const convertedSchema = convertSchema(maybeSingularAllOf, wrapAsNullable, context, breadcrumbs);
|
|
752149
|
+
const convertedSchema = convertSchema(maybeSingularAllOf, wrapAsNullable, context, breadcrumbs, referencedAsRequest);
|
|
752150
752150
|
return maybeInjectDescriptionOrGroupName(convertedSchema, description, groupName);
|
|
752151
752151
|
}
|
|
752152
752152
|
}
|
|
@@ -761620,10 +761620,10 @@ var CliContext = class {
|
|
|
761620
761620
|
return "fern-api";
|
|
761621
761621
|
}
|
|
761622
761622
|
getPackageVersion() {
|
|
761623
|
-
if ("0.16.
|
|
761623
|
+
if ("0.16.26" == null) {
|
|
761624
761624
|
this.logger.error("CLI_VERSION is not defined");
|
|
761625
761625
|
}
|
|
761626
|
-
return "0.16.
|
|
761626
|
+
return "0.16.26";
|
|
761627
761627
|
}
|
|
761628
761628
|
getCliName() {
|
|
761629
761629
|
if ("fern" == null) {
|
|
@@ -762022,7 +762022,8 @@ function convertTypeShape(irType) {
|
|
|
762022
762022
|
return {
|
|
762023
762023
|
key: baseProperty2.name.wireValue,
|
|
762024
762024
|
valueType: convertTypeReference(baseProperty2.valueType),
|
|
762025
|
-
availability: baseProperty2.availability != null ? convertIrAvailability({ availability: baseProperty2.availability }) : void 0
|
|
762025
|
+
availability: baseProperty2.availability != null ? convertIrAvailability({ availability: baseProperty2.availability }) : void 0,
|
|
762026
|
+
docs: baseProperty2.docs
|
|
762026
762027
|
};
|
|
762027
762028
|
});
|
|
762028
762029
|
return {
|