@fern-api/csharp-dynamic-snippets 0.0.1
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/cjs/Config.cjs +11 -0
- package/cjs/Config.d.cts +5 -0
- package/cjs/DynamicSnippetsGenerator.cjs +34 -0
- package/cjs/DynamicSnippetsGenerator.d.cts +18 -0
- package/cjs/DynamicSnippetsGeneratorContext-DbMhuHoi.d.cts +116 -0
- package/cjs/EndpointSnippetGenerator.cjs +34 -0
- package/cjs/EndpointSnippetGenerator.d.cts +55 -0
- package/cjs/context/DynamicSnippetsGeneratorContext.cjs +34 -0
- package/cjs/context/DynamicSnippetsGeneratorContext.d.cts +4 -0
- package/cjs/context/DynamicTypeLiteralMapper.cjs +34 -0
- package/cjs/context/DynamicTypeLiteralMapper.d.cts +4 -0
- package/cjs/context/DynamicTypeMapper.cjs +34 -0
- package/cjs/context/DynamicTypeMapper.d.cts +4 -0
- package/cjs/context/FilePropertyMapper.cjs +34 -0
- package/cjs/context/FilePropertyMapper.d.cts +4 -0
- package/cjs/index.cjs +46 -0
- package/cjs/index.d.cts +7 -0
- package/esm/Config.d.ts +5 -0
- package/esm/Config.js +1 -0
- package/esm/DynamicSnippetsGenerator.d.ts +18 -0
- package/esm/DynamicSnippetsGenerator.js +1 -0
- package/esm/DynamicSnippetsGeneratorContext-DbMhuHoi.d.ts +116 -0
- package/esm/EndpointSnippetGenerator.d.ts +55 -0
- package/esm/EndpointSnippetGenerator.js +1 -0
- package/esm/chunk-2AZXIWKY.js +11 -0
- package/esm/chunk-3DCR7ZLP.js +1 -0
- package/esm/chunk-4PKDRTSC.js +1 -0
- package/esm/chunk-C4662L36.js +1 -0
- package/esm/chunk-HN67B7VQ.js +1 -0
- package/esm/chunk-JE2VCLEP.js +1 -0
- package/esm/chunk-SN6S6BH4.js +1 -0
- package/esm/chunk-WKJ2SB4L.js +1 -0
- package/esm/chunk-WNZYF5RX.js +26 -0
- package/esm/chunk-YSZHI4KM.js +1 -0
- package/esm/context/DynamicSnippetsGeneratorContext.d.ts +4 -0
- package/esm/context/DynamicSnippetsGeneratorContext.js +1 -0
- package/esm/context/DynamicTypeLiteralMapper.d.ts +4 -0
- package/esm/context/DynamicTypeLiteralMapper.js +1 -0
- package/esm/context/DynamicTypeMapper.d.ts +4 -0
- package/esm/context/DynamicTypeMapper.js +1 -0
- package/esm/context/FilePropertyMapper.d.ts +4 -0
- package/esm/context/FilePropertyMapper.js +1 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.js +13 -0
- package/package.json +27 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { Options } from '@fern-api/browser-compatible-base-generator';
|
|
2
|
+
import { FernIr } from '@fern-api/dynamic-ir-sdk';
|
|
3
|
+
import { D as DynamicSnippetsGeneratorContext } from './DynamicSnippetsGeneratorContext-DbMhuHoi.cjs';
|
|
4
|
+
import '@fern-api/csharp-codegen';
|
|
5
|
+
|
|
6
|
+
declare class EndpointSnippetGenerator {
|
|
7
|
+
private context;
|
|
8
|
+
constructor({ context }: {
|
|
9
|
+
context: DynamicSnippetsGeneratorContext;
|
|
10
|
+
});
|
|
11
|
+
generateSnippet({ endpoint, request, options }: {
|
|
12
|
+
endpoint: FernIr.dynamic.Endpoint;
|
|
13
|
+
request: FernIr.dynamic.EndpointSnippetRequest;
|
|
14
|
+
options: Options;
|
|
15
|
+
}): Promise<string>;
|
|
16
|
+
generateSnippetSync({ endpoint, request, options }: {
|
|
17
|
+
endpoint: FernIr.dynamic.Endpoint;
|
|
18
|
+
request: FernIr.dynamic.EndpointSnippetRequest;
|
|
19
|
+
options: Options;
|
|
20
|
+
}): string;
|
|
21
|
+
private buildCodeBlock;
|
|
22
|
+
private buildFullCodeBlock;
|
|
23
|
+
private constructClient;
|
|
24
|
+
private callMethod;
|
|
25
|
+
private getConstructorArgs;
|
|
26
|
+
private getConstructorBaseUrlArgs;
|
|
27
|
+
private getBaseUrlArg;
|
|
28
|
+
private getConstructorAuthArgs;
|
|
29
|
+
private getConstructorBasicAuthArg;
|
|
30
|
+
private getConstructorBearerAuthArgs;
|
|
31
|
+
private getConstructorHeaderAuthArgs;
|
|
32
|
+
private getConstructorOAuthArgs;
|
|
33
|
+
private getConstructorHeaderArgs;
|
|
34
|
+
private getConstructorHeaderArg;
|
|
35
|
+
private getMethodArgs;
|
|
36
|
+
private getMethodArgsForInlinedRequest;
|
|
37
|
+
private getFilePropertyInfo;
|
|
38
|
+
private getInlinedRequestArg;
|
|
39
|
+
private getInlinedRequestBodyConstructorFields;
|
|
40
|
+
private getInlinedRequestBodyPropertyConstructorFields;
|
|
41
|
+
private getFileUploadRequestBodyConstructorFields;
|
|
42
|
+
private getReferencedRequestBodyPropertyConstructorField;
|
|
43
|
+
private getReferencedRequestBodyPropertyTypeLiteral;
|
|
44
|
+
private getMethodArgsForBodyRequest;
|
|
45
|
+
private getBodyRequestArg;
|
|
46
|
+
private getBytesBodyRequestArg;
|
|
47
|
+
private getRootClientConstructorInvocation;
|
|
48
|
+
private getPathParameters;
|
|
49
|
+
private getMethod;
|
|
50
|
+
private getBaseUrlOptionName;
|
|
51
|
+
private getStyle;
|
|
52
|
+
private getConfig;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { EndpointSnippetGenerator };
|