fern-api 0.15.0-rc77 → 0.15.0-rc79

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 +14 -7
  2. package/package.json +1 -1
package/bundle.cjs CHANGED
@@ -707949,7 +707949,7 @@ var AccessTokenPosthogManager = class {
707949
707949
  properties: {
707950
707950
  ...event,
707951
707951
  ...event.properties,
707952
- version: "0.15.0-rc77",
707952
+ version: "0.15.0-rc79",
707953
707953
  usingAccessToken: true
707954
707954
  }
707955
707955
  });
@@ -708011,7 +708011,7 @@ var UserPosthogManager = class {
708011
708011
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
708012
708012
  event: "CLI",
708013
708013
  properties: {
708014
- version: "0.15.0-rc77",
708014
+ version: "0.15.0-rc79",
708015
708015
  ...event,
708016
708016
  ...event.properties
708017
708017
  }
@@ -732130,10 +732130,10 @@ var CliContext = class {
732130
732130
  return "fern-api";
732131
732131
  }
732132
732132
  getPackageVersion() {
732133
- if ("0.15.0-rc77" == null) {
732133
+ if ("0.15.0-rc79" == null) {
732134
732134
  this.logger.error("CLI_VERSION is not defined");
732135
732135
  }
732136
- return "0.15.0-rc77";
732136
+ return "0.15.0-rc79";
732137
732137
  }
732138
732138
  getCliName() {
732139
732139
  if ("fern" == null) {
@@ -732521,6 +732521,12 @@ function convertTypeShape(irType) {
732521
732521
  });
732522
732522
  },
732523
732523
  union: (union2) => {
732524
+ const baseProperties = union2.baseProperties.map((baseProperty2) => {
732525
+ return {
732526
+ key: baseProperty2.name.wireValue,
732527
+ valueType: convertTypeReference(baseProperty2.valueType)
732528
+ };
732529
+ });
732524
732530
  return import_registry_node2.FernRegistry.api.v1.register.TypeShape.discriminatedUnion({
732525
732531
  discriminant: union2.discriminant.wireValue,
732526
732532
  variants: union2.types.map((variant) => {
@@ -732530,7 +732536,7 @@ function convertTypeShape(irType) {
732530
732536
  additionalProperties: import_ir_sdk.FernIr.types.SingleUnionTypeProperties._visit(variant.shape, {
732531
732537
  samePropertiesAsObject: (extension2) => ({
732532
732538
  extends: [convertTypeId(extension2.typeId)],
732533
- properties: []
732539
+ properties: baseProperties
732534
732540
  }),
732535
732541
  singleProperty: (singleProperty) => ({
732536
732542
  extends: [],
@@ -732538,12 +732544,13 @@ function convertTypeShape(irType) {
732538
732544
  {
732539
732545
  key: singleProperty.name.wireValue,
732540
732546
  valueType: convertTypeReference(singleProperty.type)
732541
- }
732547
+ },
732548
+ ...baseProperties
732542
732549
  ]
732543
732550
  }),
732544
732551
  noProperties: () => ({
732545
732552
  extends: [],
732546
- properties: []
732553
+ properties: baseProperties
732547
732554
  }),
732548
732555
  _other: () => {
732549
732556
  throw new Error("Unknown SingleUnionTypeProperties: " + variant.shape.propertiesType);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fern-api",
3
- "version": "0.15.0-rc77",
3
+ "version": "0.15.0-rc79",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/fern-api/fern.git",