@fern-api/php-dynamic-snippets 0.0.14 → 1.25.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/dist/index.cjs +44 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +164 -0
- package/dist/index.d.ts +164 -0
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -0
- package/package.json +9 -10
- package/cjs/DynamicSnippetsGenerator.cjs +0 -49
- package/cjs/DynamicSnippetsGenerator.cjs.map +0 -1
- package/cjs/DynamicSnippetsGenerator.d.cts +0 -18
- package/cjs/DynamicSnippetsGeneratorContext-CwkDTYOI.d.cts +0 -83
- package/cjs/EndpointSnippetGenerator.cjs +0 -49
- package/cjs/EndpointSnippetGenerator.cjs.map +0 -1
- package/cjs/EndpointSnippetGenerator.d.cts +0 -76
- package/cjs/context/DynamicSnippetsGeneratorContext.cjs +0 -47
- package/cjs/context/DynamicSnippetsGeneratorContext.cjs.map +0 -1
- package/cjs/context/DynamicSnippetsGeneratorContext.d.cts +0 -4
- package/cjs/context/DynamicTypeLiteralMapper.cjs +0 -47
- package/cjs/context/DynamicTypeLiteralMapper.cjs.map +0 -1
- package/cjs/context/DynamicTypeLiteralMapper.d.cts +0 -4
- package/cjs/context/FilePropertyMapper.cjs +0 -47
- package/cjs/context/FilePropertyMapper.cjs.map +0 -1
- package/cjs/context/FilePropertyMapper.d.cts +0 -4
- package/cjs/index.cjs +0 -49
- package/cjs/index.cjs.map +0 -1
- package/cjs/index.d.cts +0 -6
- package/esm/DynamicSnippetsGenerator.d.ts +0 -18
- package/esm/DynamicSnippetsGenerator.js +0 -2
- package/esm/DynamicSnippetsGenerator.js.map +0 -1
- package/esm/DynamicSnippetsGeneratorContext-CwkDTYOI.d.ts +0 -83
- package/esm/EndpointSnippetGenerator.d.ts +0 -76
- package/esm/EndpointSnippetGenerator.js +0 -2
- package/esm/EndpointSnippetGenerator.js.map +0 -1
- package/esm/chunk-3QAUV5WT.js +0 -2
- package/esm/chunk-3QAUV5WT.js.map +0 -1
- package/esm/chunk-E5GKCY37.js +0 -2
- package/esm/chunk-E5GKCY37.js.map +0 -1
- package/esm/chunk-EIFVUIK7.js +0 -2
- package/esm/chunk-EIFVUIK7.js.map +0 -1
- package/esm/chunk-PYHFKEW4.js +0 -47
- package/esm/chunk-PYHFKEW4.js.map +0 -1
- package/esm/chunk-RC5VUNGI.js +0 -2
- package/esm/chunk-RC5VUNGI.js.map +0 -1
- package/esm/chunk-VYTKQRKI.js +0 -4
- package/esm/chunk-VYTKQRKI.js.map +0 -1
- package/esm/chunk-WWRNGEPJ.js +0 -2
- package/esm/chunk-WWRNGEPJ.js.map +0 -1
- package/esm/context/DynamicSnippetsGeneratorContext.d.ts +0 -4
- package/esm/context/DynamicSnippetsGeneratorContext.js +0 -2
- package/esm/context/DynamicSnippetsGeneratorContext.js.map +0 -1
- package/esm/context/DynamicTypeLiteralMapper.d.ts +0 -4
- package/esm/context/DynamicTypeLiteralMapper.js +0 -2
- package/esm/context/DynamicTypeLiteralMapper.js.map +0 -1
- package/esm/context/FilePropertyMapper.d.ts +0 -4
- package/esm/context/FilePropertyMapper.js +0 -2
- package/esm/context/FilePropertyMapper.js.map +0 -1
- package/esm/index.d.ts +0 -6
- package/esm/index.js +0 -2
- package/esm/index.js.map +0 -1
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec, Options, AbstractAstNode, AbstractDynamicSnippetsGenerator } from '@fern-api/browser-compatible-base-generator';
|
|
2
|
+
import { FernIr } from '@fern-api/dynamic-ir-sdk';
|
|
3
|
+
import { php, BasePhpCustomConfigSchema } from '@fern-api/php-codegen';
|
|
4
|
+
|
|
5
|
+
declare namespace DynamicTypeLiteralMapper {
|
|
6
|
+
interface Args {
|
|
7
|
+
typeReference: FernIr.dynamic.TypeReference;
|
|
8
|
+
value: unknown;
|
|
9
|
+
as?: ConvertedAs;
|
|
10
|
+
}
|
|
11
|
+
type ConvertedAs = "key";
|
|
12
|
+
}
|
|
13
|
+
declare class DynamicTypeLiteralMapper {
|
|
14
|
+
private context;
|
|
15
|
+
constructor({ context }: {
|
|
16
|
+
context: DynamicSnippetsGeneratorContext;
|
|
17
|
+
});
|
|
18
|
+
convert(args: DynamicTypeLiteralMapper.Args): php.TypeLiteral;
|
|
19
|
+
private convertLiteral;
|
|
20
|
+
private convertList;
|
|
21
|
+
private convertMap;
|
|
22
|
+
private convertNamed;
|
|
23
|
+
private convertDiscriminatedUnion;
|
|
24
|
+
private convertDiscriminatedUnionProperties;
|
|
25
|
+
private convertDiscriminatedUnionVariantArgs;
|
|
26
|
+
private getBaseFields;
|
|
27
|
+
private convertObject;
|
|
28
|
+
private convertEnum;
|
|
29
|
+
private getEnumValueName;
|
|
30
|
+
private convertUndiscriminatedUnion;
|
|
31
|
+
private findMatchingUndiscriminatedUnionType;
|
|
32
|
+
private convertUnknown;
|
|
33
|
+
private convertPrimitive;
|
|
34
|
+
private getValueAsNumber;
|
|
35
|
+
private getValueAsBoolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface FilePropertyInfo {
|
|
39
|
+
fileFields: php.ConstructorField[];
|
|
40
|
+
bodyPropertyFields: php.ConstructorField[];
|
|
41
|
+
}
|
|
42
|
+
declare class FilePropertyMapper {
|
|
43
|
+
private context;
|
|
44
|
+
constructor({ context }: {
|
|
45
|
+
context: DynamicSnippetsGeneratorContext;
|
|
46
|
+
});
|
|
47
|
+
getFilePropertyInfo({ body, value }: {
|
|
48
|
+
body: FernIr.dynamic.FileUploadRequestBody;
|
|
49
|
+
value: unknown;
|
|
50
|
+
}): FilePropertyInfo;
|
|
51
|
+
private getSingleFileProperty;
|
|
52
|
+
private getArrayFileProperty;
|
|
53
|
+
private getBodyProperty;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare class DynamicSnippetsGeneratorContext extends AbstractDynamicSnippetsGeneratorContext {
|
|
57
|
+
ir: FernIr.dynamic.DynamicIntermediateRepresentation;
|
|
58
|
+
customConfig: BasePhpCustomConfigSchema | undefined;
|
|
59
|
+
dynamicTypeLiteralMapper: DynamicTypeLiteralMapper;
|
|
60
|
+
filePropertyMapper: FilePropertyMapper;
|
|
61
|
+
rootNamespace: string;
|
|
62
|
+
constructor({ ir, config }: {
|
|
63
|
+
ir: FernIr.dynamic.DynamicIntermediateRepresentation;
|
|
64
|
+
config: FernGeneratorExec.GeneratorConfig;
|
|
65
|
+
});
|
|
66
|
+
clone(): DynamicSnippetsGeneratorContext;
|
|
67
|
+
getParameterName(name: FernIr.Name): string;
|
|
68
|
+
getPropertyName(name: FernIr.Name): string;
|
|
69
|
+
getMethodName(name: FernIr.Name): string;
|
|
70
|
+
getClassName(name: FernIr.Name): string;
|
|
71
|
+
getRootClientClassName(): string;
|
|
72
|
+
getEnvironmentsClassReference(): php.ClassReference;
|
|
73
|
+
getRequestNamespace(fernFilepath: FernIr.dynamic.FernFilepath): string;
|
|
74
|
+
getTypesNamespace(fernFilepath: FernIr.dynamic.FernFilepath): string;
|
|
75
|
+
getNamespace(fernFilepath: FernIr.dynamic.FernFilepath, suffix?: string): string;
|
|
76
|
+
getEnvironmentClassAccessFromID(environmentID: string): php.AstNode | undefined;
|
|
77
|
+
getEnvironmentClassReference(name: FernIr.Name): php.ClassReference;
|
|
78
|
+
private prependUnderscoreIfNeeded;
|
|
79
|
+
private getComputedClientName;
|
|
80
|
+
private getOrganizationPascalCase;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare class EndpointSnippetGenerator {
|
|
84
|
+
private context;
|
|
85
|
+
constructor({ context }: {
|
|
86
|
+
context: DynamicSnippetsGeneratorContext;
|
|
87
|
+
});
|
|
88
|
+
generateSnippet({ endpoint, request }: {
|
|
89
|
+
endpoint: FernIr.dynamic.Endpoint;
|
|
90
|
+
request: FernIr.dynamic.EndpointSnippetRequest;
|
|
91
|
+
}): Promise<string>;
|
|
92
|
+
generateSnippetSync({ endpoint, request }: {
|
|
93
|
+
endpoint: FernIr.dynamic.Endpoint;
|
|
94
|
+
request: FernIr.dynamic.EndpointSnippetRequest;
|
|
95
|
+
}): string;
|
|
96
|
+
generateSnippetAst({ endpoint, request, options }: {
|
|
97
|
+
endpoint: FernIr.dynamic.Endpoint;
|
|
98
|
+
request: FernIr.dynamic.EndpointSnippetRequest;
|
|
99
|
+
options?: Options;
|
|
100
|
+
}): Promise<AbstractAstNode>;
|
|
101
|
+
buildCodeBlock({ endpoint, snippet }: {
|
|
102
|
+
endpoint: FernIr.dynamic.Endpoint;
|
|
103
|
+
snippet: FernIr.dynamic.EndpointSnippetRequest;
|
|
104
|
+
}): php.AstNode;
|
|
105
|
+
buildCodeBlockWithoutClient({ endpoint, snippet }: {
|
|
106
|
+
endpoint: FernIr.dynamic.Endpoint;
|
|
107
|
+
snippet: FernIr.dynamic.EndpointSnippetRequest;
|
|
108
|
+
}): php.AstNode;
|
|
109
|
+
private constructClient;
|
|
110
|
+
private callMethod;
|
|
111
|
+
private callMethodOnExistingClient;
|
|
112
|
+
/**
|
|
113
|
+
* Builds request options from snippet headers for per-request options.
|
|
114
|
+
* This is used when generating snippets for existing clients (e.g., wire tests)
|
|
115
|
+
* where headers should be passed as method call options rather than client constructor options.
|
|
116
|
+
* Only includes headers that are NOT already mapped to the request directly (i.e., not defined in the IR).
|
|
117
|
+
*/
|
|
118
|
+
private getRequestOptions;
|
|
119
|
+
private getConstructorArgs;
|
|
120
|
+
private getConstructorAuthArgs;
|
|
121
|
+
private addError;
|
|
122
|
+
private addWarning;
|
|
123
|
+
private getConstructorBasicAuthArgs;
|
|
124
|
+
private getConstructorEnvironmentArg;
|
|
125
|
+
private getDefaultEnvironmentName;
|
|
126
|
+
private resolveMultiEnvironmentName;
|
|
127
|
+
private getBaseUrlPropertyName;
|
|
128
|
+
private getConstructorBaseUrlArgs;
|
|
129
|
+
private getBaseUrlArg;
|
|
130
|
+
private getConstructorBearerAuthArgs;
|
|
131
|
+
private getConstructorHeaderAuthArgs;
|
|
132
|
+
private getConstructorOAuthArgs;
|
|
133
|
+
private getConstructorInferredAuthArgs;
|
|
134
|
+
private getConstructorHeaderArgs;
|
|
135
|
+
private getConstructorHeaderArg;
|
|
136
|
+
private getMethodArgs;
|
|
137
|
+
private getMethodArgsForBodyRequest;
|
|
138
|
+
private getBodyRequestArg;
|
|
139
|
+
private getBytesBodyRequestArg;
|
|
140
|
+
private getMethodArgsForInlinedRequest;
|
|
141
|
+
private getFilePropertyInfo;
|
|
142
|
+
private getInlinedRequestArg;
|
|
143
|
+
private getInlinedRequestBodyConstructorFields;
|
|
144
|
+
private getFileUploadRequestBodyConstructorFields;
|
|
145
|
+
private getReferencedRequestBodyPropertyConstructorField;
|
|
146
|
+
private getReferencedRequestBodyPropertyTypeLiteral;
|
|
147
|
+
private getInlinedRequestBodyPropertyConstructorFields;
|
|
148
|
+
private getPathParameters;
|
|
149
|
+
private getMethod;
|
|
150
|
+
private getRootClientClassInstantiation;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
declare class DynamicSnippetsGenerator extends AbstractDynamicSnippetsGenerator<DynamicSnippetsGeneratorContext, EndpointSnippetGenerator> {
|
|
154
|
+
constructor({ ir, config }: {
|
|
155
|
+
ir: FernIr.dynamic.DynamicIntermediateRepresentation;
|
|
156
|
+
config: FernGeneratorExec.GeneratorConfig;
|
|
157
|
+
});
|
|
158
|
+
generate(request: FernIr.dynamic.EndpointSnippetRequest): Promise<FernIr.dynamic.EndpointSnippetResponse>;
|
|
159
|
+
generateSync(request: FernIr.dynamic.EndpointSnippetRequest): FernIr.dynamic.EndpointSnippetResponse;
|
|
160
|
+
generateSnippetAst(request: FernIr.dynamic.EndpointSnippetRequest, options?: Options): Promise<AbstractAstNode>;
|
|
161
|
+
protected createSnippetGenerator(context: DynamicSnippetsGeneratorContext): EndpointSnippetGenerator;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export { DynamicSnippetsGenerator, EndpointSnippetGenerator };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec, Options, AbstractAstNode, AbstractDynamicSnippetsGenerator } from '@fern-api/browser-compatible-base-generator';
|
|
2
|
+
import { FernIr } from '@fern-api/dynamic-ir-sdk';
|
|
3
|
+
import { php, BasePhpCustomConfigSchema } from '@fern-api/php-codegen';
|
|
4
|
+
|
|
5
|
+
declare namespace DynamicTypeLiteralMapper {
|
|
6
|
+
interface Args {
|
|
7
|
+
typeReference: FernIr.dynamic.TypeReference;
|
|
8
|
+
value: unknown;
|
|
9
|
+
as?: ConvertedAs;
|
|
10
|
+
}
|
|
11
|
+
type ConvertedAs = "key";
|
|
12
|
+
}
|
|
13
|
+
declare class DynamicTypeLiteralMapper {
|
|
14
|
+
private context;
|
|
15
|
+
constructor({ context }: {
|
|
16
|
+
context: DynamicSnippetsGeneratorContext;
|
|
17
|
+
});
|
|
18
|
+
convert(args: DynamicTypeLiteralMapper.Args): php.TypeLiteral;
|
|
19
|
+
private convertLiteral;
|
|
20
|
+
private convertList;
|
|
21
|
+
private convertMap;
|
|
22
|
+
private convertNamed;
|
|
23
|
+
private convertDiscriminatedUnion;
|
|
24
|
+
private convertDiscriminatedUnionProperties;
|
|
25
|
+
private convertDiscriminatedUnionVariantArgs;
|
|
26
|
+
private getBaseFields;
|
|
27
|
+
private convertObject;
|
|
28
|
+
private convertEnum;
|
|
29
|
+
private getEnumValueName;
|
|
30
|
+
private convertUndiscriminatedUnion;
|
|
31
|
+
private findMatchingUndiscriminatedUnionType;
|
|
32
|
+
private convertUnknown;
|
|
33
|
+
private convertPrimitive;
|
|
34
|
+
private getValueAsNumber;
|
|
35
|
+
private getValueAsBoolean;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface FilePropertyInfo {
|
|
39
|
+
fileFields: php.ConstructorField[];
|
|
40
|
+
bodyPropertyFields: php.ConstructorField[];
|
|
41
|
+
}
|
|
42
|
+
declare class FilePropertyMapper {
|
|
43
|
+
private context;
|
|
44
|
+
constructor({ context }: {
|
|
45
|
+
context: DynamicSnippetsGeneratorContext;
|
|
46
|
+
});
|
|
47
|
+
getFilePropertyInfo({ body, value }: {
|
|
48
|
+
body: FernIr.dynamic.FileUploadRequestBody;
|
|
49
|
+
value: unknown;
|
|
50
|
+
}): FilePropertyInfo;
|
|
51
|
+
private getSingleFileProperty;
|
|
52
|
+
private getArrayFileProperty;
|
|
53
|
+
private getBodyProperty;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
declare class DynamicSnippetsGeneratorContext extends AbstractDynamicSnippetsGeneratorContext {
|
|
57
|
+
ir: FernIr.dynamic.DynamicIntermediateRepresentation;
|
|
58
|
+
customConfig: BasePhpCustomConfigSchema | undefined;
|
|
59
|
+
dynamicTypeLiteralMapper: DynamicTypeLiteralMapper;
|
|
60
|
+
filePropertyMapper: FilePropertyMapper;
|
|
61
|
+
rootNamespace: string;
|
|
62
|
+
constructor({ ir, config }: {
|
|
63
|
+
ir: FernIr.dynamic.DynamicIntermediateRepresentation;
|
|
64
|
+
config: FernGeneratorExec.GeneratorConfig;
|
|
65
|
+
});
|
|
66
|
+
clone(): DynamicSnippetsGeneratorContext;
|
|
67
|
+
getParameterName(name: FernIr.Name): string;
|
|
68
|
+
getPropertyName(name: FernIr.Name): string;
|
|
69
|
+
getMethodName(name: FernIr.Name): string;
|
|
70
|
+
getClassName(name: FernIr.Name): string;
|
|
71
|
+
getRootClientClassName(): string;
|
|
72
|
+
getEnvironmentsClassReference(): php.ClassReference;
|
|
73
|
+
getRequestNamespace(fernFilepath: FernIr.dynamic.FernFilepath): string;
|
|
74
|
+
getTypesNamespace(fernFilepath: FernIr.dynamic.FernFilepath): string;
|
|
75
|
+
getNamespace(fernFilepath: FernIr.dynamic.FernFilepath, suffix?: string): string;
|
|
76
|
+
getEnvironmentClassAccessFromID(environmentID: string): php.AstNode | undefined;
|
|
77
|
+
getEnvironmentClassReference(name: FernIr.Name): php.ClassReference;
|
|
78
|
+
private prependUnderscoreIfNeeded;
|
|
79
|
+
private getComputedClientName;
|
|
80
|
+
private getOrganizationPascalCase;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare class EndpointSnippetGenerator {
|
|
84
|
+
private context;
|
|
85
|
+
constructor({ context }: {
|
|
86
|
+
context: DynamicSnippetsGeneratorContext;
|
|
87
|
+
});
|
|
88
|
+
generateSnippet({ endpoint, request }: {
|
|
89
|
+
endpoint: FernIr.dynamic.Endpoint;
|
|
90
|
+
request: FernIr.dynamic.EndpointSnippetRequest;
|
|
91
|
+
}): Promise<string>;
|
|
92
|
+
generateSnippetSync({ endpoint, request }: {
|
|
93
|
+
endpoint: FernIr.dynamic.Endpoint;
|
|
94
|
+
request: FernIr.dynamic.EndpointSnippetRequest;
|
|
95
|
+
}): string;
|
|
96
|
+
generateSnippetAst({ endpoint, request, options }: {
|
|
97
|
+
endpoint: FernIr.dynamic.Endpoint;
|
|
98
|
+
request: FernIr.dynamic.EndpointSnippetRequest;
|
|
99
|
+
options?: Options;
|
|
100
|
+
}): Promise<AbstractAstNode>;
|
|
101
|
+
buildCodeBlock({ endpoint, snippet }: {
|
|
102
|
+
endpoint: FernIr.dynamic.Endpoint;
|
|
103
|
+
snippet: FernIr.dynamic.EndpointSnippetRequest;
|
|
104
|
+
}): php.AstNode;
|
|
105
|
+
buildCodeBlockWithoutClient({ endpoint, snippet }: {
|
|
106
|
+
endpoint: FernIr.dynamic.Endpoint;
|
|
107
|
+
snippet: FernIr.dynamic.EndpointSnippetRequest;
|
|
108
|
+
}): php.AstNode;
|
|
109
|
+
private constructClient;
|
|
110
|
+
private callMethod;
|
|
111
|
+
private callMethodOnExistingClient;
|
|
112
|
+
/**
|
|
113
|
+
* Builds request options from snippet headers for per-request options.
|
|
114
|
+
* This is used when generating snippets for existing clients (e.g., wire tests)
|
|
115
|
+
* where headers should be passed as method call options rather than client constructor options.
|
|
116
|
+
* Only includes headers that are NOT already mapped to the request directly (i.e., not defined in the IR).
|
|
117
|
+
*/
|
|
118
|
+
private getRequestOptions;
|
|
119
|
+
private getConstructorArgs;
|
|
120
|
+
private getConstructorAuthArgs;
|
|
121
|
+
private addError;
|
|
122
|
+
private addWarning;
|
|
123
|
+
private getConstructorBasicAuthArgs;
|
|
124
|
+
private getConstructorEnvironmentArg;
|
|
125
|
+
private getDefaultEnvironmentName;
|
|
126
|
+
private resolveMultiEnvironmentName;
|
|
127
|
+
private getBaseUrlPropertyName;
|
|
128
|
+
private getConstructorBaseUrlArgs;
|
|
129
|
+
private getBaseUrlArg;
|
|
130
|
+
private getConstructorBearerAuthArgs;
|
|
131
|
+
private getConstructorHeaderAuthArgs;
|
|
132
|
+
private getConstructorOAuthArgs;
|
|
133
|
+
private getConstructorInferredAuthArgs;
|
|
134
|
+
private getConstructorHeaderArgs;
|
|
135
|
+
private getConstructorHeaderArg;
|
|
136
|
+
private getMethodArgs;
|
|
137
|
+
private getMethodArgsForBodyRequest;
|
|
138
|
+
private getBodyRequestArg;
|
|
139
|
+
private getBytesBodyRequestArg;
|
|
140
|
+
private getMethodArgsForInlinedRequest;
|
|
141
|
+
private getFilePropertyInfo;
|
|
142
|
+
private getInlinedRequestArg;
|
|
143
|
+
private getInlinedRequestBodyConstructorFields;
|
|
144
|
+
private getFileUploadRequestBodyConstructorFields;
|
|
145
|
+
private getReferencedRequestBodyPropertyConstructorField;
|
|
146
|
+
private getReferencedRequestBodyPropertyTypeLiteral;
|
|
147
|
+
private getInlinedRequestBodyPropertyConstructorFields;
|
|
148
|
+
private getPathParameters;
|
|
149
|
+
private getMethod;
|
|
150
|
+
private getRootClientClassInstantiation;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
declare class DynamicSnippetsGenerator extends AbstractDynamicSnippetsGenerator<DynamicSnippetsGeneratorContext, EndpointSnippetGenerator> {
|
|
154
|
+
constructor({ ir, config }: {
|
|
155
|
+
ir: FernIr.dynamic.DynamicIntermediateRepresentation;
|
|
156
|
+
config: FernGeneratorExec.GeneratorConfig;
|
|
157
|
+
});
|
|
158
|
+
generate(request: FernIr.dynamic.EndpointSnippetRequest): Promise<FernIr.dynamic.EndpointSnippetResponse>;
|
|
159
|
+
generateSync(request: FernIr.dynamic.EndpointSnippetRequest): FernIr.dynamic.EndpointSnippetResponse;
|
|
160
|
+
generateSnippetAst(request: FernIr.dynamic.EndpointSnippetRequest, options?: Options): Promise<AbstractAstNode>;
|
|
161
|
+
protected createSnippetGenerator(context: DynamicSnippetsGeneratorContext): EndpointSnippetGenerator;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export { DynamicSnippetsGenerator, EndpointSnippetGenerator };
|