@fern-api/python-dynamic-snippets 4.46.8 → 4.46.10
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 +5 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -160,6 +160,15 @@ declare class DynamicSnippetsGenerator extends AbstractDynamicSnippetsGenerator<
|
|
|
160
160
|
* with test-specific configuration.
|
|
161
161
|
*/
|
|
162
162
|
generateMethodCallSnippetAst(request: FernIr.dynamic.EndpointSnippetRequest): python.AstNode;
|
|
163
|
+
/**
|
|
164
|
+
* Generates just the method call AST without the client instantiation, using the endpoint ID directly.
|
|
165
|
+
* This is useful for wire tests where the client is created separately with test-specific configuration,
|
|
166
|
+
* and when there are multiple endpoints with the same HTTP method and path pattern across different namespaces.
|
|
167
|
+
*/
|
|
168
|
+
generateMethodCallSnippetAstById({ endpointId, request }: {
|
|
169
|
+
endpointId: FernIr.dynamic.EndpointId;
|
|
170
|
+
request: FernIr.dynamic.EndpointSnippetRequest;
|
|
171
|
+
}): python.AstNode;
|
|
163
172
|
protected createSnippetGenerator(context: DynamicSnippetsGeneratorContext): EndpointSnippetGenerator;
|
|
164
173
|
}
|
|
165
174
|
|
package/dist/index.d.ts
CHANGED
|
@@ -160,6 +160,15 @@ declare class DynamicSnippetsGenerator extends AbstractDynamicSnippetsGenerator<
|
|
|
160
160
|
* with test-specific configuration.
|
|
161
161
|
*/
|
|
162
162
|
generateMethodCallSnippetAst(request: FernIr.dynamic.EndpointSnippetRequest): python.AstNode;
|
|
163
|
+
/**
|
|
164
|
+
* Generates just the method call AST without the client instantiation, using the endpoint ID directly.
|
|
165
|
+
* This is useful for wire tests where the client is created separately with test-specific configuration,
|
|
166
|
+
* and when there are multiple endpoints with the same HTTP method and path pattern across different namespaces.
|
|
167
|
+
*/
|
|
168
|
+
generateMethodCallSnippetAstById({ endpointId, request }: {
|
|
169
|
+
endpointId: FernIr.dynamic.EndpointId;
|
|
170
|
+
request: FernIr.dynamic.EndpointSnippetRequest;
|
|
171
|
+
}): python.AstNode;
|
|
163
172
|
protected createSnippetGenerator(context: DynamicSnippetsGeneratorContext): EndpointSnippetGenerator;
|
|
164
173
|
}
|
|
165
174
|
|