fern-api 0.16.2 → 0.16.3

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 +16 -4
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -736685,7 +736685,7 @@ var AccessTokenPosthogManager = class {
736685
736685
  properties: {
736686
736686
  ...event,
736687
736687
  ...event.properties,
736688
- version: "0.16.2",
736688
+ version: "0.16.3",
736689
736689
  usingAccessToken: true
736690
736690
  }
736691
736691
  });
@@ -736747,7 +736747,7 @@ var UserPosthogManager = class {
736747
736747
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
736748
736748
  event: "CLI",
736749
736749
  properties: {
736750
- version: "0.16.2",
736750
+ version: "0.16.3",
736751
736751
  ...event,
736752
736752
  ...event.properties
736753
736753
  }
@@ -750774,10 +750774,22 @@ function wrapEnum({ wrapAsNullable, nameOverride, generatedName, values: values3
750774
750774
  groupName
750775
750775
  });
750776
750776
  }
750777
+ var HARDCODED_ENUM_NAMES = {
750778
+ "<": "LESS_THAN",
750779
+ ">": "GREATER_THAN",
750780
+ ">=": "GREATER_THAN_OR_EQUAL_TO",
750781
+ "<=": "LESS_THAN_OR_EQUAL_TO",
750782
+ "!=": "NOT_EQUALS",
750783
+ "=": "EQUAL_TO",
750784
+ "==": "EQUAL_TO"
750785
+ };
750777
750786
  function generateEnumNameFromValue(value) {
750778
750787
  const maybeParsedNumber = replaceStartingNumber(value);
750788
+ const maybeHardcodedEnumName = HARDCODED_ENUM_NAMES[value];
750779
750789
  if (maybeParsedNumber != null) {
750780
750790
  return upperFirst_default(camelCase_default(maybeParsedNumber));
750791
+ } else if (maybeHardcodedEnumName != null) {
750792
+ return maybeHardcodedEnumName;
750781
750793
  } else {
750782
750794
  if (value.toLowerCase() === "n/a") {
750783
750795
  return "NOT_APPLICABLE";
@@ -761137,10 +761149,10 @@ var CliContext = class {
761137
761149
  return "fern-api";
761138
761150
  }
761139
761151
  getPackageVersion() {
761140
- if ("0.16.2" == null) {
761152
+ if ("0.16.3" == null) {
761141
761153
  this.logger.error("CLI_VERSION is not defined");
761142
761154
  }
761143
- return "0.16.2";
761155
+ return "0.16.3";
761144
761156
  }
761145
761157
  getCliName() {
761146
761158
  if ("fern" == null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.16.2",
3
+ "version": "0.16.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",