fern-api 0.31.22 → 0.31.23

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 +20 -6
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -1122319,7 +1122319,7 @@ var AccessTokenPosthogManager = class {
1122319
1122319
  properties: {
1122320
1122320
  ...event,
1122321
1122321
  ...event.properties,
1122322
- version: "0.31.22",
1122322
+ version: "0.31.23",
1122323
1122323
  usingAccessToken: true
1122324
1122324
  }
1122325
1122325
  });
@@ -1122381,7 +1122381,7 @@ var UserPosthogManager = class {
1122381
1122381
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
1122382
1122382
  event: "CLI",
1122383
1122383
  properties: {
1122384
- version: "0.31.22",
1122384
+ version: "0.31.23",
1122385
1122385
  ...event,
1122386
1122386
  ...event.properties
1122387
1122387
  }
@@ -1144922,6 +1144922,7 @@ function buildEndpoint({ endpoint, declarationFile, context }) {
1144922
1144922
  } else {
1144923
1144923
  pagination = {
1144924
1144924
  offset: endpoint.pagination.offset,
1144925
+ step: endpoint.pagination.step,
1144925
1144926
  results: endpoint.pagination.results
1144926
1144927
  };
1144927
1144928
  }
@@ -1145179,19 +1145180,32 @@ function getRequest({ declarationFile, context, request, requestNameOverride, ge
1145179
1145180
  fileContainingReference: declarationFile,
1145180
1145181
  context
1145181
1145182
  });
1145182
- if (!usedNames.has(property5.key) && property5.audiences.length <= 0) {
1145183
+ const name3 = property5.nameOverride ?? property5.key;
1145184
+ if (!usedNames.has(name3) && property5.audiences.length <= 0) {
1145185
+ usedNames.add(name3);
1145186
+ if (property5.nameOverride != null) {
1145187
+ return [
1145188
+ property5.key,
1145189
+ {
1145190
+ type: getTypeFromTypeReference(propertyTypeReference),
1145191
+ docs: getDocsFromTypeReference(propertyTypeReference),
1145192
+ name: property5.nameOverride
1145193
+ }
1145194
+ ];
1145195
+ }
1145183
1145196
  return [property5.key, propertyTypeReference];
1145184
1145197
  }
1145185
1145198
  const typeReference = {
1145186
1145199
  type: getTypeFromTypeReference(propertyTypeReference),
1145187
1145200
  docs: getDocsFromTypeReference(propertyTypeReference)
1145188
1145201
  };
1145189
- if (usedNames.has(property5.key)) {
1145202
+ if (usedNames.has(name3)) {
1145190
1145203
  typeReference.name = property5.generatedName;
1145191
1145204
  }
1145192
1145205
  if (property5.audiences.length > 0) {
1145193
1145206
  typeReference.audiences = property5.audiences;
1145194
1145207
  }
1145208
+ usedNames.add(name3);
1145195
1145209
  return [property5.key, typeReference];
1145196
1145210
  }));
1145197
1145211
  const extendedSchemas = resolvedSchema.allOf.map((referencedSchema) => {
@@ -1149965,10 +1149979,10 @@ var CliContext = class {
1149965
1149979
  return "fern-api";
1149966
1149980
  }
1149967
1149981
  getPackageVersion() {
1149968
- if ("0.31.22" == null) {
1149982
+ if ("0.31.23" == null) {
1149969
1149983
  this.logger.error("CLI_VERSION is not defined");
1149970
1149984
  }
1149971
- return "0.31.22";
1149985
+ return "0.31.23";
1149972
1149986
  }
1149973
1149987
  getCliName() {
1149974
1149988
  if ("fern" == null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.31.22",
3
+ "version": "0.31.23",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",