@fern-api/typescript-dynamic-snippets 3.88.0-rc.0 → 3.88.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 +10 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.js +11 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec,
|
|
1
|
+
import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec, AbstractDynamicSnippetsGenerator, Options, AbstractAstNode } from '@fern-api/browser-compatible-base-generator';
|
|
2
2
|
import { FernIr } from '@fern-api/dynamic-ir-sdk';
|
|
3
3
|
import { ts, TypescriptCustomConfigSchema, AstNode } from '@fern-api/typescript-ast';
|
|
4
4
|
|
|
@@ -104,11 +104,6 @@ declare class EndpointSnippetGenerator {
|
|
|
104
104
|
endpoint: FernIr.dynamic.Endpoint;
|
|
105
105
|
request: FernIr.dynamic.EndpointSnippetRequest;
|
|
106
106
|
}): Promise<AstNode>;
|
|
107
|
-
generateInvocationSnippetSync({ endpoint, request, options }: {
|
|
108
|
-
endpoint: FernIr.dynamic.Endpoint;
|
|
109
|
-
request: FernIr.dynamic.EndpointSnippetRequest;
|
|
110
|
-
options?: Options;
|
|
111
|
-
}): InvocationSnippetResponse;
|
|
112
107
|
private buildCodeBlock;
|
|
113
108
|
private constructClient;
|
|
114
109
|
private getConstructorArgs;
|
|
@@ -126,6 +121,11 @@ declare class EndpointSnippetGenerator {
|
|
|
126
121
|
private callMethod;
|
|
127
122
|
private getMethodArgs;
|
|
128
123
|
private getMethodArgsForBodyRequest;
|
|
124
|
+
/**
|
|
125
|
+
* Whether the call leaves the body out entirely, which the optional parameter allows. Applies
|
|
126
|
+
* only to a body the caller may omit, and only once the generator opts in to that.
|
|
127
|
+
*/
|
|
128
|
+
private callOmitsRequestBody;
|
|
129
129
|
private getBodyRequestArg;
|
|
130
130
|
private getBytesBodyRequestArg;
|
|
131
131
|
private getMethodArgsForInlinedRequest;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec,
|
|
1
|
+
import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec, AbstractDynamicSnippetsGenerator, Options, AbstractAstNode } from '@fern-api/browser-compatible-base-generator';
|
|
2
2
|
import { FernIr } from '@fern-api/dynamic-ir-sdk';
|
|
3
3
|
import { ts, TypescriptCustomConfigSchema, AstNode } from '@fern-api/typescript-ast';
|
|
4
4
|
|
|
@@ -104,11 +104,6 @@ declare class EndpointSnippetGenerator {
|
|
|
104
104
|
endpoint: FernIr.dynamic.Endpoint;
|
|
105
105
|
request: FernIr.dynamic.EndpointSnippetRequest;
|
|
106
106
|
}): Promise<AstNode>;
|
|
107
|
-
generateInvocationSnippetSync({ endpoint, request, options }: {
|
|
108
|
-
endpoint: FernIr.dynamic.Endpoint;
|
|
109
|
-
request: FernIr.dynamic.EndpointSnippetRequest;
|
|
110
|
-
options?: Options;
|
|
111
|
-
}): InvocationSnippetResponse;
|
|
112
107
|
private buildCodeBlock;
|
|
113
108
|
private constructClient;
|
|
114
109
|
private getConstructorArgs;
|
|
@@ -126,6 +121,11 @@ declare class EndpointSnippetGenerator {
|
|
|
126
121
|
private callMethod;
|
|
127
122
|
private getMethodArgs;
|
|
128
123
|
private getMethodArgsForBodyRequest;
|
|
124
|
+
/**
|
|
125
|
+
* Whether the call leaves the body out entirely, which the optional parameter allows. Applies
|
|
126
|
+
* only to a body the caller may omit, and only once the generator opts in to that.
|
|
127
|
+
*/
|
|
128
|
+
private callOmitsRequestBody;
|
|
129
129
|
private getBodyRequestArg;
|
|
130
130
|
private getBytesBodyRequestArg;
|
|
131
131
|
private getMethodArgsForInlinedRequest;
|