@fern-api/csharp-dynamic-snippets 2.68.4 → 2.68.6

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;
@@ -13,6 +25,7 @@ declare namespace DynamicLiteralMapper {
13
25
  value: unknown;
14
26
  as?: ConvertedAs;
15
27
  fallbackToDefault?: string;
28
+ forceLiteral?: boolean;
16
29
  }
17
30
  type ConvertedAs = "key";
18
31
  }
@@ -203,4 +216,4 @@ declare class DynamicSnippetsGenerator extends AbstractDynamicSnippetsGenerator<
203
216
  protected createSnippetGenerator(context: DynamicSnippetsGeneratorContext): EndpointSnippetGenerator;
204
217
  }
205
218
 
206
- export { type Config, DynamicSnippetsGenerator };
219
+ 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;
@@ -13,6 +25,7 @@ declare namespace DynamicLiteralMapper {
13
25
  value: unknown;
14
26
  as?: ConvertedAs;
15
27
  fallbackToDefault?: string;
28
+ forceLiteral?: boolean;
16
29
  }
17
30
  type ConvertedAs = "key";
18
31
  }
@@ -203,4 +216,4 @@ declare class DynamicSnippetsGenerator extends AbstractDynamicSnippetsGenerator<
203
216
  protected createSnippetGenerator(context: DynamicSnippetsGeneratorContext): EndpointSnippetGenerator;
204
217
  }
205
218
 
206
- export { type Config, DynamicSnippetsGenerator };
219
+ export { type Config, DynamicSnippetsGenerator, buildSnippetTestGeneratorConfig };