@fern-api/csharp-dynamic-snippets 2.68.3 → 2.68.5

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.
package/dist/index.d.cts CHANGED
@@ -2,6 +2,18 @@ import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec, Options, Ab
2
2
  import { FernIr } from '@fern-api/dynamic-ir-sdk';
3
3
  import { WithGeneration, ast, Generation } from '@fern-api/csharp-codegen';
4
4
 
5
+ /**
6
+ * The compiled C# dynamic-snippet tests are built against the generated SDK, so the snippets they
7
+ * contain must reference the internal client class. `exported-client-class-name` is a docs-only
8
+ * override that names the customer's hand-written wrapper class — a class that is not part of
9
+ * generator output. If it reached the snippet-test generator, the generated `new <ExportedClient>(...)`
10
+ * instantiation would name a class that does not exist and fail to compile. Strip the docs-only
11
+ * override here so snippet tests always reference the generated client.
12
+ */
13
+ declare function buildSnippetTestGeneratorConfig<Config extends {
14
+ customConfig?: unknown;
15
+ }>(config: Config): Config;
16
+
5
17
  interface Config {
6
18
  fullStyleClassName?: string;
7
19
  fullStyleMethodName?: string;
@@ -178,6 +190,8 @@ declare class EndpointSnippetGenerator extends WithGeneration {
178
190
  private getReferencedRequestBodyPropertyConstructorField;
179
191
  private getReferencedRequestBodyPropertyLiteral;
180
192
  private getMethodArgsForBodyRequest;
193
+ private getPathParameterArguments;
194
+ private namedArgument;
181
195
  private getBodyRequestArg;
182
196
  private getBytesBodyRequestArg;
183
197
  private getRootClientConstructorInvocation;
@@ -201,4 +215,4 @@ declare class DynamicSnippetsGenerator extends AbstractDynamicSnippetsGenerator<
201
215
  protected createSnippetGenerator(context: DynamicSnippetsGeneratorContext): EndpointSnippetGenerator;
202
216
  }
203
217
 
204
- export { type Config, DynamicSnippetsGenerator };
218
+ export { type Config, DynamicSnippetsGenerator, buildSnippetTestGeneratorConfig };
package/dist/index.d.ts CHANGED
@@ -2,6 +2,18 @@ import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec, Options, Ab
2
2
  import { FernIr } from '@fern-api/dynamic-ir-sdk';
3
3
  import { WithGeneration, ast, Generation } from '@fern-api/csharp-codegen';
4
4
 
5
+ /**
6
+ * The compiled C# dynamic-snippet tests are built against the generated SDK, so the snippets they
7
+ * contain must reference the internal client class. `exported-client-class-name` is a docs-only
8
+ * override that names the customer's hand-written wrapper class — a class that is not part of
9
+ * generator output. If it reached the snippet-test generator, the generated `new <ExportedClient>(...)`
10
+ * instantiation would name a class that does not exist and fail to compile. Strip the docs-only
11
+ * override here so snippet tests always reference the generated client.
12
+ */
13
+ declare function buildSnippetTestGeneratorConfig<Config extends {
14
+ customConfig?: unknown;
15
+ }>(config: Config): Config;
16
+
5
17
  interface Config {
6
18
  fullStyleClassName?: string;
7
19
  fullStyleMethodName?: string;
@@ -178,6 +190,8 @@ declare class EndpointSnippetGenerator extends WithGeneration {
178
190
  private getReferencedRequestBodyPropertyConstructorField;
179
191
  private getReferencedRequestBodyPropertyLiteral;
180
192
  private getMethodArgsForBodyRequest;
193
+ private getPathParameterArguments;
194
+ private namedArgument;
181
195
  private getBodyRequestArg;
182
196
  private getBytesBodyRequestArg;
183
197
  private getRootClientConstructorInvocation;
@@ -201,4 +215,4 @@ declare class DynamicSnippetsGenerator extends AbstractDynamicSnippetsGenerator<
201
215
  protected createSnippetGenerator(context: DynamicSnippetsGeneratorContext): EndpointSnippetGenerator;
202
216
  }
203
217
 
204
- export { type Config, DynamicSnippetsGenerator };
218
+ export { type Config, DynamicSnippetsGenerator, buildSnippetTestGeneratorConfig };