fern-api 0.16.37 → 0.16.39

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.
Files changed (2) hide show
  1. package/bundle.cjs +35 -10
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -735809,6 +735809,14 @@ var NpmOutputLocationSchema = z.strictObject({
735809
735809
  token: z.optional(z.string())
735810
735810
  });
735811
735811
 
735812
+ // pnp:/home/circleci/project/packages/cli/config-management/generators-configuration/lib/schemas/NugetOutputLocationSchema.js
735813
+ var NugetOutputLocationSchema = z.strictObject({
735814
+ location: z.literal("nuget"),
735815
+ url: z.optional(z.string()),
735816
+ "package-name": z.string(),
735817
+ "api-key": z.optional(z.string())
735818
+ });
735819
+
735812
735820
  // pnp:/home/circleci/project/packages/cli/config-management/generators-configuration/lib/schemas/PostmanOutputLocationSchema.js
735813
735821
  var PostmanOutputLocationSchema = z.strictObject({
735814
735822
  location: z.literal("postman"),
@@ -735832,7 +735840,8 @@ var GeneratorOutputSchema = z.discriminatedUnion("location", [
735832
735840
  MavenOutputLocationSchema,
735833
735841
  PypiOutputLocationSchema,
735834
735842
  PostmanOutputLocationSchema,
735835
- LocalFileSystemOutputLocationSchema
735843
+ LocalFileSystemOutputLocationSchema,
735844
+ NugetOutputLocationSchema
735836
735845
  ]);
735837
735846
 
735838
735847
  // pnp:/home/circleci/project/packages/cli/config-management/generators-configuration/lib/schemas/GithubLicenseCustomSchema.js
@@ -736008,6 +736017,8 @@ async function convertOutputMode({ absolutePathToGeneratorsConfiguration, genera
736008
736017
  password: generator.output.token ?? generator.output.password ?? "",
736009
736018
  coordinate: generator.output["package-name"]
736010
736019
  }));
736020
+ case "nuget":
736021
+ throw new Error("Nuget is not supported");
736011
736022
  default:
736012
736023
  assertNever(generator.output);
736013
736024
  }
@@ -736069,6 +736080,8 @@ function getGithubPublishInfo(output) {
736069
736080
  password: output.password ?? ""
736070
736081
  }
736071
736082
  });
736083
+ case "nuget":
736084
+ throw new Error("Nuget is not supported");
736072
736085
  default:
736073
736086
  assertNever(output);
736074
736087
  }
@@ -739545,7 +739558,7 @@ var AccessTokenPosthogManager = class {
739545
739558
  properties: {
739546
739559
  ...event,
739547
739560
  ...event.properties,
739548
- version: "0.16.37",
739561
+ version: "0.16.39",
739549
739562
  usingAccessToken: true
739550
739563
  }
739551
739564
  });
@@ -739607,7 +739620,7 @@ var UserPosthogManager = class {
739607
739620
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
739608
739621
  event: "CLI",
739609
739622
  properties: {
739610
- version: "0.16.37",
739623
+ version: "0.16.39",
739611
739624
  ...event,
739612
739625
  ...event.properties
739613
739626
  }
@@ -754335,7 +754348,10 @@ function getApplicationJsonSchemaMediaObject(media) {
754335
754348
  }
754336
754349
  if (mediaObject.examples != null && Object.keys(mediaObject.examples).length > 0) {
754337
754350
  fullExamples.push(...Object.entries(mediaObject.examples).map(([name2, value]) => {
754338
- return { name: name2, value };
754351
+ if (isReferenceObject(value)) {
754352
+ return { name: void 0, value: void 0 };
754353
+ }
754354
+ return { name: name2, value: value.value };
754339
754355
  }));
754340
754356
  }
754341
754357
  if (schema2 != null) {
@@ -755974,7 +755990,7 @@ var ExampleEndpointFactory = class {
755974
755990
  schema: requestSchemaIdResponse.schema,
755975
755991
  example: (_a2 = requestSchemaIdResponse.example) == null ? void 0 : _a2.value,
755976
755992
  isOptional: !required,
755977
- parameter: true
755993
+ parameter: false
755978
755994
  });
755979
755995
  if (required && requestExample == null) {
755980
755996
  return void 0;
@@ -755987,7 +756003,7 @@ var ExampleEndpointFactory = class {
755987
756003
  schema: responseSchemaIdResponse.schema,
755988
756004
  example: (_b2 = responseSchemaIdResponse.example) == null ? void 0 : _b2.value,
755989
756005
  isOptional: !required,
755990
- parameter: true
756006
+ parameter: false
755991
756007
  });
755992
756008
  if (required && responseExample == null) {
755993
756009
  return void 0;
@@ -757001,7 +757017,12 @@ function buildEndpoint({ endpoint, declarationFile, context }) {
757001
757017
  }
757002
757018
  function convertEndpointExamples({ endpointExamples, context }) {
757003
757019
  return endpointExamples.map((endpointExample) => {
757004
- return buildEndpointExample({ endpointExample, context });
757020
+ try {
757021
+ return buildEndpointExample({ endpointExample, context });
757022
+ } catch (e) {
757023
+ console.error(`Error building endpoint example: ${e}`);
757024
+ throw e;
757025
+ }
757005
757026
  });
757006
757027
  }
757007
757028
  function getRequest({ declarationFile, context, request, requestNameOverride, generatedRequestName, queryParameters, nonRequestReferencedSchemas, headers, usedNames }) {
@@ -764953,10 +764974,10 @@ var CliContext = class {
764953
764974
  return "fern-api";
764954
764975
  }
764955
764976
  getPackageVersion() {
764956
- if ("0.16.37" == null) {
764977
+ if ("0.16.39" == null) {
764957
764978
  this.logger.error("CLI_VERSION is not defined");
764958
764979
  }
764959
- return "0.16.37";
764980
+ return "0.16.39";
764960
764981
  }
764961
764982
  getCliName() {
764962
764983
  if ("fern" == null) {
@@ -765177,7 +765198,11 @@ var GENERATOR_INVOCATIONS = {
765177
765198
  }
765178
765199
  },
765179
765200
  [GeneratorName.PYTHON_SDK]: {
765180
- version: "0.6.0"
765201
+ version: "0.8.1",
765202
+ output: {
765203
+ location: "local-file-system",
765204
+ path: "../generated/python"
765205
+ }
765181
765206
  },
765182
765207
  [GeneratorName.GO_FIBER]: {
765183
765208
  version: "0.9.0"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.16.37",
3
+ "version": "0.16.39",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",