@fern-api/csharp-dynamic-snippets 0.0.1 → 0.0.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 (79) hide show
  1. package/cjs/Config.cjs +2 -11
  2. package/cjs/Config.cjs.map +1 -0
  3. package/cjs/DynamicSnippetsGenerator.cjs +31 -19
  4. package/cjs/DynamicSnippetsGenerator.cjs.map +1 -0
  5. package/cjs/DynamicSnippetsGenerator.d.cts +4 -1
  6. package/cjs/DynamicSnippetsGeneratorContext-DQDI25Nx.d.cts +395 -0
  7. package/cjs/EndpointSnippetGenerator.cjs +30 -19
  8. package/cjs/EndpointSnippetGenerator.cjs.map +1 -0
  9. package/cjs/EndpointSnippetGenerator.d.cts +7 -3
  10. package/cjs/context/DynamicSnippetsGeneratorContext.cjs +31 -32
  11. package/cjs/context/DynamicSnippetsGeneratorContext.cjs.map +1 -0
  12. package/cjs/context/DynamicSnippetsGeneratorContext.d.cts +4 -2
  13. package/cjs/context/DynamicTypeLiteralMapper.cjs +2 -34
  14. package/cjs/context/DynamicTypeLiteralMapper.cjs.map +1 -0
  15. package/cjs/context/DynamicTypeLiteralMapper.d.cts +3 -1
  16. package/cjs/context/DynamicTypeMapper.cjs +2 -34
  17. package/cjs/context/DynamicTypeMapper.cjs.map +1 -0
  18. package/cjs/context/DynamicTypeMapper.d.cts +3 -1
  19. package/cjs/context/FilePropertyMapper.cjs +26 -32
  20. package/cjs/context/FilePropertyMapper.cjs.map +1 -0
  21. package/cjs/context/FilePropertyMapper.d.cts +3 -1
  22. package/cjs/index.cjs +34 -31
  23. package/cjs/index.cjs.map +1 -0
  24. package/cjs/index.d.cts +4 -2
  25. package/esm/Config.js +2 -1
  26. package/esm/Config.js.map +1 -0
  27. package/esm/DynamicSnippetsGenerator.d.ts +4 -1
  28. package/esm/DynamicSnippetsGenerator.js +2 -1
  29. package/esm/DynamicSnippetsGenerator.js.map +1 -0
  30. package/esm/DynamicSnippetsGeneratorContext-DQDI25Nx.d.ts +395 -0
  31. package/esm/EndpointSnippetGenerator.d.ts +7 -3
  32. package/esm/EndpointSnippetGenerator.js +2 -1
  33. package/esm/EndpointSnippetGenerator.js.map +1 -0
  34. package/esm/chunk-2ZIORSVG.js +2 -0
  35. package/esm/chunk-2ZIORSVG.js.map +1 -0
  36. package/esm/chunk-7V3DJGVI.js +2 -0
  37. package/esm/chunk-7V3DJGVI.js.map +1 -0
  38. package/esm/chunk-C6VL3KCZ.js +33 -0
  39. package/esm/chunk-C6VL3KCZ.js.map +1 -0
  40. package/esm/chunk-E3QSX5HZ.js +2 -0
  41. package/esm/chunk-E3QSX5HZ.js.map +1 -0
  42. package/esm/chunk-E4DWHIH4.js +2 -0
  43. package/esm/chunk-E4DWHIH4.js.map +1 -0
  44. package/esm/chunk-GYLRU3VR.js +2 -0
  45. package/esm/chunk-GYLRU3VR.js.map +1 -0
  46. package/esm/chunk-HWTWQNRE.js +15 -0
  47. package/esm/chunk-HWTWQNRE.js.map +1 -0
  48. package/esm/chunk-KHCIVF5J.js +1 -0
  49. package/esm/chunk-KHCIVF5J.js.map +1 -0
  50. package/esm/chunk-MPTA2ZER.js +2 -0
  51. package/esm/chunk-MPTA2ZER.js.map +1 -0
  52. package/esm/context/DynamicSnippetsGeneratorContext.d.ts +4 -2
  53. package/esm/context/DynamicSnippetsGeneratorContext.js +2 -1
  54. package/esm/context/DynamicSnippetsGeneratorContext.js.map +1 -0
  55. package/esm/context/DynamicTypeLiteralMapper.d.ts +3 -1
  56. package/esm/context/DynamicTypeLiteralMapper.js +2 -1
  57. package/esm/context/DynamicTypeLiteralMapper.js.map +1 -0
  58. package/esm/context/DynamicTypeMapper.d.ts +3 -1
  59. package/esm/context/DynamicTypeMapper.js +2 -1
  60. package/esm/context/DynamicTypeMapper.js.map +1 -0
  61. package/esm/context/FilePropertyMapper.d.ts +3 -1
  62. package/esm/context/FilePropertyMapper.js +2 -1
  63. package/esm/context/FilePropertyMapper.js.map +1 -0
  64. package/esm/index.d.ts +4 -2
  65. package/esm/index.js +5 -13
  66. package/esm/index.js.map +1 -0
  67. package/package.json +2 -2
  68. package/cjs/DynamicSnippetsGeneratorContext-DbMhuHoi.d.cts +0 -116
  69. package/esm/DynamicSnippetsGeneratorContext-DbMhuHoi.d.ts +0 -116
  70. package/esm/chunk-2AZXIWKY.js +0 -11
  71. package/esm/chunk-3DCR7ZLP.js +0 -1
  72. package/esm/chunk-4PKDRTSC.js +0 -1
  73. package/esm/chunk-C4662L36.js +0 -1
  74. package/esm/chunk-HN67B7VQ.js +0 -1
  75. package/esm/chunk-JE2VCLEP.js +0 -1
  76. package/esm/chunk-SN6S6BH4.js +0 -1
  77. package/esm/chunk-WKJ2SB4L.js +0 -1
  78. package/esm/chunk-WNZYF5RX.js +0 -26
  79. package/esm/chunk-YSZHI4KM.js +0 -1
@@ -1,7 +1,9 @@
1
1
  import { AbstractDynamicSnippetsGenerator, FernGeneratorExec, Options } from '@fern-api/browser-compatible-base-generator';
2
2
  import { FernIr } from '@fern-api/dynamic-ir-sdk';
3
+ import { D as DynamicSnippetsGeneratorContext } from './DynamicSnippetsGeneratorContext-DQDI25Nx.cjs';
3
4
  import { EndpointSnippetGenerator } from './EndpointSnippetGenerator.cjs';
4
- import { D as DynamicSnippetsGeneratorContext } from './DynamicSnippetsGeneratorContext-DbMhuHoi.cjs';
5
+ import '@fern-api/csharp-codegen/lib/context/model-navigator';
6
+ import '@fern-api/csharp-codegen/lib/context/extern';
5
7
  import '@fern-api/csharp-codegen';
6
8
 
7
9
  declare class DynamicSnippetsGenerator extends AbstractDynamicSnippetsGenerator<DynamicSnippetsGeneratorContext, EndpointSnippetGenerator> {
@@ -10,6 +12,7 @@ declare class DynamicSnippetsGenerator extends AbstractDynamicSnippetsGenerator<
10
12
  config: FernGeneratorExec.GeneratorConfig;
11
13
  options?: Options;
12
14
  });
15
+ precalculate(requests: FernIr.dynamic.EndpointSnippetRequest[]): void;
13
16
  generate(request: FernIr.dynamic.EndpointSnippetRequest, options?: Options): Promise<FernIr.dynamic.EndpointSnippetResponse>;
14
17
  generateSync(request: FernIr.dynamic.EndpointSnippetRequest, options?: Options): FernIr.dynamic.EndpointSnippetResponse;
15
18
  protected createSnippetGenerator(context: DynamicSnippetsGeneratorContext): EndpointSnippetGenerator;
@@ -0,0 +1,395 @@
1
+ import * as _fern_api_csharp_codegen_lib_context_model_navigator from '@fern-api/csharp-codegen/lib/context/model-navigator';
2
+ import * as _fern_api_csharp_codegen_lib_context_extern from '@fern-api/csharp-codegen/lib/context/extern';
3
+ import * as _fern_api_csharp_codegen from '@fern-api/csharp-codegen';
4
+ import { WithGeneration, ast, Generation } from '@fern-api/csharp-codegen';
5
+ import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec, Options } from '@fern-api/browser-compatible-base-generator';
6
+ import { FernIr } from '@fern-api/dynamic-ir-sdk';
7
+
8
+ declare namespace DynamicTypeLiteralMapper {
9
+ interface Args {
10
+ typeReference: FernIr.dynamic.TypeReference;
11
+ value: unknown;
12
+ as?: ConvertedAs;
13
+ fallbackToDefault?: string;
14
+ }
15
+ type ConvertedAs = "key";
16
+ }
17
+ declare class DynamicTypeLiteralMapper extends WithGeneration {
18
+ private context;
19
+ constructor({ context }: {
20
+ context: DynamicSnippetsGeneratorContext;
21
+ });
22
+ convert(args: DynamicTypeLiteralMapper.Args): ast.TypeLiteral;
23
+ private convertList;
24
+ private convertLiteral;
25
+ private convertSet;
26
+ private convertMap;
27
+ private convertNamed;
28
+ private convertDiscriminatedUnion;
29
+ private getBaseProperties;
30
+ private instantiateUnionWithBaseProperties;
31
+ private getEnumValue;
32
+ private convertObject;
33
+ private convertUndiscriminatedUnion;
34
+ private findMatchingUndiscriminatedUnionType;
35
+ private convertUnknown;
36
+ private convertPrimitive;
37
+ private getValueAsNumber;
38
+ private getValueAsBoolean;
39
+ }
40
+
41
+ declare namespace DynamicTypeMapper {
42
+ interface Args {
43
+ typeReference: FernIr.dynamic.TypeReference;
44
+ unboxOptionals?: boolean;
45
+ }
46
+ }
47
+ declare class DynamicTypeMapper extends WithGeneration {
48
+ private context;
49
+ constructor({ context }: {
50
+ context: DynamicSnippetsGeneratorContext;
51
+ });
52
+ convert(args: DynamicTypeMapper.Args): ast.Type;
53
+ convertToClassReference(named: FernIr.dynamic.NamedType): ast.ClassReference;
54
+ private convertNamed;
55
+ private convertLiteral;
56
+ private convertUnknown;
57
+ private convertPrimitive;
58
+ }
59
+
60
+ interface FilePropertyInfo {
61
+ fileFields: ast.ConstructorField[];
62
+ bodyPropertyFields: ast.ConstructorField[];
63
+ }
64
+ declare class FilePropertyMapper extends WithGeneration {
65
+ private context;
66
+ constructor({ context }: {
67
+ context: DynamicSnippetsGeneratorContext;
68
+ });
69
+ getFilePropertyInfo({ body, value }: {
70
+ body: FernIr.dynamic.FileUploadRequestBody;
71
+ value: unknown;
72
+ }): FilePropertyInfo;
73
+ private getSingleFileProperty;
74
+ private getArrayFileProperty;
75
+ private getBodyProperty;
76
+ }
77
+
78
+ declare class DynamicSnippetsGeneratorContext extends AbstractDynamicSnippetsGeneratorContext {
79
+ ir: FernIr.dynamic.DynamicIntermediateRepresentation;
80
+ dynamicTypeMapper: DynamicTypeMapper;
81
+ dynamicTypeLiteralMapper: DynamicTypeLiteralMapper;
82
+ filePropertyMapper: FilePropertyMapper;
83
+ readonly generation: Generation;
84
+ get namespaces(): {
85
+ root: string;
86
+ core: string;
87
+ test: string;
88
+ testUtils: string;
89
+ mockServerTest: string;
90
+ publicCore: string;
91
+ asyncCore: string;
92
+ publicCoreTest: string;
93
+ asIsTestUtils: string;
94
+ publicCoreClasses: string;
95
+ implicit: Set<string>;
96
+ };
97
+ get registry(): _fern_api_csharp_codegen.NameRegistry;
98
+ get extern(): _fern_api_csharp_codegen_lib_context_extern.Extern;
99
+ get settings(): {
100
+ namespace: string;
101
+ readOnlyMemoryTypes: string[];
102
+ simplifyObjectDictionaries: boolean;
103
+ useFullyQualifiedNamespaces: boolean;
104
+ useDotnetFormat: boolean;
105
+ enableWebsockets: boolean;
106
+ enableReadonlyConstants: boolean;
107
+ temporaryWebsocketEnvironments: Record<string, {
108
+ environments: Record<string, string>;
109
+ "default-environment"?: string | undefined;
110
+ }>;
111
+ baseApiExceptionClassName: string;
112
+ baseExceptionClassName: string;
113
+ shouldGeneratedDiscriminatedUnions: boolean;
114
+ exportedClientClassName: string;
115
+ clientClassName: string;
116
+ rootNamespaceForCoreClasses: boolean;
117
+ packageId: string;
118
+ isForwardCompatibleEnumsEnabled: boolean;
119
+ websocketEnvironments: Record<string, {
120
+ environments: Record<string, string>;
121
+ "default-environment"?: string | undefined;
122
+ }>;
123
+ generateNewAdditionalProperties: boolean;
124
+ customPagerName: string;
125
+ environmentClassName: string;
126
+ generateErrorTypes: boolean;
127
+ shouldInlinePathParameters: boolean;
128
+ includeExceptionHandler: boolean;
129
+ shouldGenerateMockServerTests: boolean;
130
+ rootClientAccess: "public" | "internal";
131
+ extraDependencies: Record<string, string>;
132
+ pascalCaseEnvironments: boolean;
133
+ explicitNamespaces: boolean;
134
+ };
135
+ get constants(): {
136
+ folders: {
137
+ mockServerTests: _fern_api_csharp_codegen.TRelativeFilePath;
138
+ types: string;
139
+ exceptions: string;
140
+ src: string;
141
+ protobuf: string;
142
+ serializationTests: _fern_api_csharp_codegen.TRelativeFilePath;
143
+ project: _fern_api_csharp_codegen.TRelativeFilePath;
144
+ sourceFiles: _fern_api_csharp_codegen.TRelativeFilePath;
145
+ coreFiles: _fern_api_csharp_codegen.TRelativeFilePath;
146
+ publicCoreFiles: _fern_api_csharp_codegen.TRelativeFilePath;
147
+ testFiles: _fern_api_csharp_codegen.TRelativeFilePath;
148
+ };
149
+ formatting: {
150
+ indent: string;
151
+ };
152
+ defaults: {
153
+ core: string;
154
+ publicCore: string;
155
+ version: string;
156
+ };
157
+ };
158
+ get names(): {
159
+ classes: {
160
+ baseApiException: string;
161
+ baseException: string;
162
+ rootClient: string;
163
+ rootClientForSnippets: string;
164
+ customPager: string;
165
+ environment: string;
166
+ };
167
+ project: {
168
+ client: string;
169
+ clientPrefix: string;
170
+ packageId: string;
171
+ };
172
+ files: {
173
+ project: string;
174
+ testProject: string;
175
+ };
176
+ methods: {
177
+ mockOauth: string;
178
+ getAccessTokenAsync: string;
179
+ };
180
+ variables: {
181
+ client: string;
182
+ response: string;
183
+ httpRequest: string;
184
+ sendRequest: string;
185
+ responseBody: string;
186
+ query: string;
187
+ headers: string;
188
+ };
189
+ parameters: {
190
+ cancellationToken: string;
191
+ requestOptions: string;
192
+ idempotentOptions: string;
193
+ };
194
+ };
195
+ get types(): {
196
+ FormRequest: ast.ClassReference;
197
+ ClientOptions: ast.ClassReference;
198
+ RawClient: ast.ClassReference;
199
+ RequestOptions: ast.ClassReference;
200
+ RequestOptionsInterface: ast.ClassReference;
201
+ JsonRequest: ast.ClassReference;
202
+ Version: ast.ClassReference;
203
+ ValueConvert: ast.ClassReference;
204
+ FileParameter: ast.ClassReference;
205
+ Headers: ast.ClassReference;
206
+ HeaderValue: ast.ClassReference;
207
+ RootClient: ast.ClassReference;
208
+ RootClientForSnippets: ast.ClassReference;
209
+ BaseApiException: ast.ClassReference;
210
+ BaseException: ast.ClassReference;
211
+ ExceptionInterceptor: ast.ClassReference;
212
+ ExceptionHandler: ast.ClassReference;
213
+ ProtoAnyMapper: ast.ClassReference;
214
+ Constants: ast.ClassReference;
215
+ EnumSerializer: ast.ClassReference;
216
+ DateTimeSerializer: ast.ClassReference;
217
+ JsonUtils: ast.ClassReference;
218
+ CustomPagerFactory: ast.ClassReference;
219
+ CustomPagerContext: ast.ClassReference;
220
+ Environments: ast.ClassReference;
221
+ TestClient: ast.ClassReference;
222
+ BaseMockServerTest: ast.ClassReference;
223
+ IdempotentRequestOptions: ast.ClassReference;
224
+ IdempotentRequestOptionsInterface: ast.ClassReference;
225
+ IStringEnum: ast.ClassReference;
226
+ AsyncApiOptions: ast.ClassReference;
227
+ QueryBuilder: ast.ClassReference;
228
+ OAuthTokenProvider: ast.ClassReference;
229
+ ProtoConverter: ast.ClassReference;
230
+ RawGrpcClient: ast.ClassReference;
231
+ Extensions: ast.ClassReference;
232
+ GrpcRequestOptions: ast.ClassReference;
233
+ GrpcChannelOptions: ast.ClassReference;
234
+ StringEnum: (genericType?: ast.Type | ast.ClassReference) => ast.ClassReference;
235
+ AsyncApi: (genericType: ast.Type | ast.ClassReference) => ast.ClassReference;
236
+ AsyncEvent: (genericType: ast.Type | ast.ClassReference) => ast.ClassReference;
237
+ StringEnumSerializer: (enumClassReference: ast.Type | ast.ClassReference) => ast.ClassReference;
238
+ CustomPagerClass: (itemType: ast.Type | ast.ClassReference) => ast.ClassReference;
239
+ Pager: (itemType: ast.Type | ast.ClassReference) => ast.ClassReference;
240
+ OffsetPager: ({ requestType, requestOptionsType, responseType, offsetType, stepType, itemType }: {
241
+ requestType: ast.Type | ast.TypeParameter;
242
+ requestOptionsType: ast.Type | ast.TypeParameter;
243
+ responseType: ast.Type | ast.TypeParameter;
244
+ offsetType: ast.Type | ast.TypeParameter;
245
+ stepType: ast.Type | ast.TypeParameter;
246
+ itemType: ast.Type | ast.TypeParameter;
247
+ }) => ast.ClassReference;
248
+ CursorPager: ({ requestType, requestOptionsType, responseType, cursorType, itemType }: {
249
+ requestType: ast.Type | ast.TypeParameter;
250
+ requestOptionsType: ast.Type | ast.TypeParameter;
251
+ responseType: ast.Type | ast.TypeParameter;
252
+ cursorType: ast.Type | ast.TypeParameter;
253
+ itemType: ast.Type | ast.TypeParameter;
254
+ }) => ast.ClassReference;
255
+ CollectionItemSerializer: (itemType: ast.ClassReference, serializer: ast.ClassReference) => ast.ClassReference;
256
+ OneOfSerializer: (oneof: ast.Type | ast.ClassReference) => ast.ClassReference;
257
+ AdditionalProperties: (genericType?: ast.Type | ast.ClassReference) => ast.ClassReference;
258
+ ReadOnlyAdditionalProperties: (genericType?: ast.Type | ast.ClassReference) => ast.ClassReference;
259
+ };
260
+ get model(): _fern_api_csharp_codegen_lib_context_model_navigator.ModelNavigator;
261
+ get csharp(): _fern_api_csharp_codegen.CSharp;
262
+ get System(): {
263
+ Action: (typeParameters?: (ast.ClassReference | ast.TypeParameter | ast.Type)[]) => ast.ClassReference;
264
+ Func: (typeParameters?: (ast.Type | ast.TypeParameter | ast.ClassReference)[], returnType?: ast.Type | ast.TypeParameter | ast.ClassReference) => ast.ClassReference;
265
+ DateOnly: ast.ClassReference;
266
+ DateTime: ast.ClassReference;
267
+ Enum: ast.ClassReference;
268
+ Exception: ast.ClassReference;
269
+ ReadOnlyMemory: (type: ast.Type | ast.ClassReference | ast.TypeParameter) => ast.ClassReference;
270
+ Serializable: ast.ClassReference;
271
+ String: ast.ClassReference;
272
+ TimeSpan: ast.ClassReference;
273
+ Uri: ast.ClassReference;
274
+ UriBuilder: ast.ClassReference;
275
+ Runtime: {
276
+ Serialization: {
277
+ EnumMember: ast.ClassReference;
278
+ };
279
+ };
280
+ Collections: {
281
+ Generic: {
282
+ IAsyncEnumerable: (elementType?: ast.ClassReference | ast.TypeParameter | ast.Type) => ast.ClassReference;
283
+ IEnumerable: (elementType?: ast.ClassReference | ast.TypeParameter | ast.Type) => ast.ClassReference;
284
+ KeyValuePair: (keyType?: ast.ClassReference | ast.TypeParameter | ast.Type, valueType?: ast.ClassReference | ast.TypeParameter | ast.Type) => ast.ClassReference;
285
+ List: (elementType?: ast.ClassReference | ast.TypeParameter | ast.Type) => ast.ClassReference;
286
+ HashSet: (elementType?: ast.ClassReference | ast.TypeParameter | ast.Type) => ast.ClassReference;
287
+ Dictionary: (keyType?: ast.ClassReference | ast.TypeParameter | ast.Type, valueType?: ast.ClassReference | ast.TypeParameter | ast.Type) => ast.ClassReference;
288
+ IDictionary: (keyType: ast.Type | ast.ClassReference | ast.TypeParameter, valueType: ast.Type | ast.ClassReference | ast.TypeParameter) => ast.ClassReference;
289
+ };
290
+ Linq: {
291
+ Enumerable: ast.ClassReference;
292
+ };
293
+ };
294
+ Globalization: {
295
+ DateTimeStyles: ast.ClassReference;
296
+ };
297
+ Linq: {
298
+ Enumerable: ast.ClassReference;
299
+ };
300
+ Net: {
301
+ Http: {
302
+ HttpClient: ast.ClassReference;
303
+ HttpMethod: ast.ClassReference;
304
+ HttpResponseHeaders: ast.ClassReference;
305
+ };
306
+ ServerSentEvents: {
307
+ SseEvent: ast.ClassReference;
308
+ SseParser: ast.ClassReference;
309
+ };
310
+ WebSockets: {
311
+ ClientWebSocketOptions: ast.ClassReference;
312
+ };
313
+ };
314
+ IO: {
315
+ MemoryStream: ast.ClassReference;
316
+ Stream: ast.ClassReference;
317
+ StreamReader: ast.ClassReference;
318
+ };
319
+ Text: {
320
+ Encoding: ast.ClassReference;
321
+ Encoding_UTF8: ast.ClassReference;
322
+ Json: {
323
+ JsonElement: ast.ClassReference;
324
+ JsonDocument: ast.ClassReference;
325
+ JsonException: ast.ClassReference;
326
+ Utf8JsonReader: ast.ClassReference;
327
+ JsonSerializerOptions: ast.ClassReference;
328
+ JsonSerializer: ast.ClassReference;
329
+ Utf8JsonWriter: ast.ClassReference;
330
+ Nodes: {
331
+ JsonNode: ast.ClassReference;
332
+ JsonObject: ast.ClassReference;
333
+ };
334
+ Serialization: {
335
+ IJsonOnDeserialized: ast.ClassReference;
336
+ IJsonOnSerializing: ast.ClassReference;
337
+ JsonOnDeserializedAttribute: ast.ClassReference;
338
+ JsonExtensionData: ast.ClassReference;
339
+ JsonConverter: (typeToConvert?: ast.ClassReference | ast.TypeParameter | ast.Type) => ast.ClassReference;
340
+ JsonIgnore: ast.ClassReference;
341
+ JsonPropertyName: ast.ClassReference;
342
+ };
343
+ };
344
+ };
345
+ Threading: {
346
+ CancellationToken: ast.ClassReference;
347
+ Tasks: {
348
+ Task: (ofType?: ast.ClassReference | ast.TypeParameter | ast.Type) => ast.ClassReference;
349
+ };
350
+ };
351
+ };
352
+ get NUnit(): {
353
+ Framework: {
354
+ TestFixture: ast.ClassReference;
355
+ Test: ast.ClassReference;
356
+ OneTimeTearDown: ast.ClassReference;
357
+ OneTimeSetUp: ast.ClassReference;
358
+ SetUpFixture: ast.ClassReference;
359
+ };
360
+ };
361
+ get OneOf(): {
362
+ OneOf: (generics?: ast.ClassReference[] | ast.TypeParameter[] | ast.Type[]) => ast.ClassReference;
363
+ OneOfBase: (generics?: ast.ClassReference[] | ast.TypeParameter[] | ast.Type[]) => ast.ClassReference;
364
+ };
365
+ get Google(): {
366
+ Protobuf: {
367
+ WellKnownTypes: {
368
+ Struct: ast.ClassReference;
369
+ Value: ast.ClassReference;
370
+ ListValue: ast.ClassReference;
371
+ Timestamp: ast.ClassReference;
372
+ };
373
+ };
374
+ };
375
+ constructor({ ir, config, options, generation }: {
376
+ ir: FernIr.dynamic.DynamicIntermediateRepresentation;
377
+ config: FernGeneratorExec.GeneratorConfig;
378
+ options?: Options;
379
+ generation?: Generation;
380
+ });
381
+ clone(): DynamicSnippetsGeneratorContext;
382
+ getFileParameterForString(str: string): ast.TypeLiteral;
383
+ getMemoryStreamForString(str: string): ast.ClassInstantiation;
384
+ getClassName(name: FernIr.Name): string;
385
+ getParameterName(name: FernIr.Name): string;
386
+ getPropertyName(name: FernIr.Name): string;
387
+ getMethodName(name: FernIr.Name): string;
388
+ getNamespace(fernFilepath: FernIr.dynamic.FernFilepath, suffix?: string): string;
389
+ getEnvironmentTypeReferenceFromID(environmentID: string): ast.ClassReference | undefined;
390
+ private getEnvironmentClassReferenceForEnumName;
391
+ private getNamespaceSegments;
392
+ precalculate(requests: Partial<FernIr.dynamic.EndpointSnippetRequest>[]): void;
393
+ }
394
+
395
+ export { DynamicSnippetsGeneratorContext as D, type FilePropertyInfo as F, DynamicTypeLiteralMapper as a, DynamicTypeMapper as b, FilePropertyMapper as c };