@fern-api/fern-api-dev 5.23.3-207-g0fce1421d86 → 5.23.3-212-g407b61686d1

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/cli.cjs +17 -15
  2. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -668495,7 +668495,7 @@ var AccessTokenPosthogManager = class {
668495
668495
  properties: {
668496
668496
  ...event,
668497
668497
  ...event.properties,
668498
- version: "5.23.3-207-g0fce1421d86",
668498
+ version: "5.23.3-212-g407b61686d1",
668499
668499
  usingAccessToken: true,
668500
668500
  ...getRunIdProperties()
668501
668501
  }
@@ -668559,7 +668559,7 @@ var UserPosthogManager = class {
668559
668559
  distinctId: this.userId ?? await this.getPersistedDistinctId(),
668560
668560
  event: "CLI",
668561
668561
  properties: {
668562
- version: "5.23.3-207-g0fce1421d86",
668562
+ version: "5.23.3-212-g407b61686d1",
668563
668563
  ...event,
668564
668564
  ...event.properties,
668565
668565
  usingAccessToken: false,
@@ -860356,7 +860356,7 @@ var LOCAL_STORAGE_FOLDER4 = ".fern-dev";
860356
860356
  var LOGS_FOLDER_NAME = "logs";
860357
860357
  var MAX_LOGS_DIR_SIZE_BYTES = 100 * 1024 * 1024;
860358
860358
  function getCliSource() {
860359
- const version7 = "5.23.3-207-g0fce1421d86";
860359
+ const version7 = "5.23.3-212-g407b61686d1";
860360
860360
  return `cli@${version7}`;
860361
860361
  }
860362
860362
  var DebugLogger = class {
@@ -879216,7 +879216,7 @@ var LegacyDocsPublisher = class {
879216
879216
  previewId,
879217
879217
  disableTemplates: void 0,
879218
879218
  skipUpload,
879219
- cliVersion: "5.23.3-207-g0fce1421d86",
879219
+ cliVersion: "5.23.3-212-g407b61686d1",
879220
879220
  loginCommand: "fern auth login"
879221
879221
  });
879222
879222
  if (taskContext.getResult() === TaskResult.Failure) {
@@ -904633,7 +904633,7 @@ var EndpointSnippetGenerator3 = class {
904633
904633
  this.context.errors.scope(Scope4.PathParameters);
904634
904634
  const pathParameters = [...this.context.ir.pathParameters ?? [], ...request7.pathParameters ?? []];
904635
904635
  if (pathParameters.length > 0) {
904636
- otherArgs.push(...this.getPathParameters({ namedParameters: pathParameters, snippet: snippet2 }).map((field5) => field5.value));
904636
+ otherArgs.push(...this.getPathParameters({ namedParameters: pathParameters, snippet: snippet2, asPointer: true }).map((field5) => field5.value));
904637
904637
  }
904638
904638
  this.context.errors.unscope();
904639
904639
  this.context.errors.scope(Scope4.RequestBody);
@@ -904671,20 +904671,25 @@ var EndpointSnippetGenerator3 = class {
904671
904671
  inlinePathParameters: this.context.customConfig?.inlinePathParameters ?? true,
904672
904672
  inlineFileProperties: this.context.customConfig?.inlineFileProperties ?? true
904673
904673
  };
904674
+ const includePathParamsInRequest = this.context.includePathParametersInWrappedRequest({
904675
+ request: request7,
904676
+ inlinePathParameters
904677
+ });
904674
904678
  this.context.errors.scope(Scope4.PathParameters);
904675
904679
  const pathParameterFields = [];
904676
904680
  const pathParameters = [...this.context.ir.pathParameters ?? [], ...request7.pathParameters ?? []];
904677
904681
  if (pathParameters.length > 0) {
904678
904682
  pathParameterFields.push(...this.getPathParameters({
904679
904683
  namedParameters: pathParameters,
904680
- snippet: snippet2
904684
+ snippet: snippet2,
904685
+ asPointer: !includePathParamsInRequest
904681
904686
  }));
904682
904687
  }
904683
904688
  this.context.errors.unscope();
904684
904689
  this.context.errors.scope(Scope4.RequestBody);
904685
904690
  const filePropertyInfo = this.getFilePropertyInfo({ request: request7, snippet: snippet2 });
904686
904691
  this.context.errors.unscope();
904687
- if (!this.context.includePathParametersInWrappedRequest({ request: request7, inlinePathParameters })) {
904692
+ if (!includePathParamsInRequest) {
904688
904693
  otherArgs.push(...pathParameterFields.map((field5) => field5.value));
904689
904694
  }
904690
904695
  if (!inlineFileProperties) {
@@ -904697,10 +904702,7 @@ var EndpointSnippetGenerator3 = class {
904697
904702
  }) ? this.getInlinedRequestArg({
904698
904703
  request: request7,
904699
904704
  snippet: snippet2,
904700
- pathParameterFields: this.context.includePathParametersInWrappedRequest({
904701
- request: request7,
904702
- inlinePathParameters
904703
- }) ? pathParameterFields : [],
904705
+ pathParameterFields: includePathParamsInRequest ? pathParameterFields : [],
904704
904706
  filePropertyInfo
904705
904707
  }) : void 0;
904706
904708
  return { otherArgs, requestArg };
@@ -904802,7 +904804,7 @@ var EndpointSnippetGenerator3 = class {
904802
904804
  }
904803
904805
  return fields;
904804
904806
  }
904805
- getPathParameters({ namedParameters, snippet: snippet2 }) {
904807
+ getPathParameters({ namedParameters, snippet: snippet2, asPointer }) {
904806
904808
  const args = [];
904807
904809
  const pathParameters = this.context.associateByWireValueOrDefault({
904808
904810
  parameters: namedParameters,
@@ -904811,7 +904813,7 @@ var EndpointSnippetGenerator3 = class {
904811
904813
  for (const parameter6 of pathParameters) {
904812
904814
  args.push({
904813
904815
  name: this.context.getTypeName(parameter6.name.name),
904814
- value: this.context.dynamicTypeInstantiationMapper.convertToPointerIfPossible(parameter6)
904816
+ value: asPointer ? this.context.dynamicTypeInstantiationMapper.convertToPointerIfPossible(parameter6) : this.context.dynamicTypeInstantiationMapper.convert(parameter6)
904815
904817
  });
904816
904818
  }
904817
904819
  return args;
@@ -953954,7 +953956,7 @@ function getAutomationContextFromEnv() {
953954
953956
  config_branch: process.env.FERN_CONFIG_BRANCH,
953955
953957
  config_pr_number: process.env.FERN_CONFIG_PR_NUMBER,
953956
953958
  trigger: process.env.GITHUB_EVENT_NAME,
953957
- cli_version: "5.23.3-207-g0fce1421d86"
953959
+ cli_version: "5.23.3-212-g407b61686d1"
953958
953960
  };
953959
953961
  }
953960
953962
  function isAutomationMode() {
@@ -954780,7 +954782,7 @@ var CliContext = class _CliContext {
954780
954782
  if (false) {
954781
954783
  this.logger.error("CLI_VERSION is not defined");
954782
954784
  }
954783
- return "5.23.3-207-g0fce1421d86";
954785
+ return "5.23.3-212-g407b61686d1";
954784
954786
  }
954785
954787
  getCliName() {
954786
954788
  if (false) {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "5.23.3-207-g0fce1421d86",
2
+ "version": "5.23.3-212-g407b61686d1",
3
3
  "repository": {
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/fern-api/fern.git",