@fern-api/python-dynamic-snippets 5.17.1 → 5.18.2
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 +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -82,6 +82,14 @@ declare class DynamicSnippetsGeneratorContext extends AbstractDynamicSnippetsGen
|
|
|
82
82
|
getTypedDictClassName(name: FernIr.Name): string;
|
|
83
83
|
getPropertyName(name: FernIr.Name): string;
|
|
84
84
|
getMethodName(name: FernIr.Name): string;
|
|
85
|
+
/**
|
|
86
|
+
* Module/subpackage directory name, preserving any leading/trailing underscores
|
|
87
|
+
* from the original name that the casing functions would otherwise strip. This
|
|
88
|
+
* keeps snippet accessors and module paths consistent with the generated module
|
|
89
|
+
* directories (e.g. a group named `_agents` yields `client._agents`). It is scoped
|
|
90
|
+
* to namespace/module names and intentionally not applied to property or method names.
|
|
91
|
+
*/
|
|
92
|
+
getModuleName(name: FernIr.Name): string;
|
|
85
93
|
getRootClientClassReference(): python.Reference;
|
|
86
94
|
getTypeClassReference(declaration: FernIr.dynamic.Declaration): python.Reference;
|
|
87
95
|
getDiscriminatedUnionVariantClassReference({ unionDeclaration, discriminantValue }: {
|
package/dist/index.d.ts
CHANGED
|
@@ -82,6 +82,14 @@ declare class DynamicSnippetsGeneratorContext extends AbstractDynamicSnippetsGen
|
|
|
82
82
|
getTypedDictClassName(name: FernIr.Name): string;
|
|
83
83
|
getPropertyName(name: FernIr.Name): string;
|
|
84
84
|
getMethodName(name: FernIr.Name): string;
|
|
85
|
+
/**
|
|
86
|
+
* Module/subpackage directory name, preserving any leading/trailing underscores
|
|
87
|
+
* from the original name that the casing functions would otherwise strip. This
|
|
88
|
+
* keeps snippet accessors and module paths consistent with the generated module
|
|
89
|
+
* directories (e.g. a group named `_agents` yields `client._agents`). It is scoped
|
|
90
|
+
* to namespace/module names and intentionally not applied to property or method names.
|
|
91
|
+
*/
|
|
92
|
+
getModuleName(name: FernIr.Name): string;
|
|
85
93
|
getRootClientClassReference(): python.Reference;
|
|
86
94
|
getTypeClassReference(declaration: FernIr.dynamic.Declaration): python.Reference;
|
|
87
95
|
getDiscriminatedUnionVariantClassReference({ unionDeclaration, discriminantValue }: {
|