@fern-api/java-dynamic-snippets 0.0.7 → 0.0.8

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.
Files changed (32) hide show
  1. package/cjs/DynamicSnippetsGenerator.cjs +6 -6
  2. package/cjs/DynamicSnippetsGenerator.cjs.map +1 -1
  3. package/cjs/DynamicSnippetsGenerator.d.cts +1 -1
  4. package/cjs/{DynamicSnippetsGeneratorContext-CqPRgNNz.d.cts → DynamicSnippetsGeneratorContext-BhCKaadj.d.cts} +16 -1
  5. package/cjs/EndpointSnippetGenerator.d.cts +1 -1
  6. package/cjs/context/DynamicSnippetsGeneratorContext.cjs +6 -6
  7. package/cjs/context/DynamicSnippetsGeneratorContext.cjs.map +1 -1
  8. package/cjs/context/DynamicSnippetsGeneratorContext.d.cts +1 -1
  9. package/cjs/context/DynamicTypeLiteralMapper.d.cts +1 -1
  10. package/cjs/context/DynamicTypeMapper.d.cts +1 -1
  11. package/cjs/context/FilePropertyMapper.d.cts +1 -1
  12. package/cjs/index.cjs +6 -6
  13. package/cjs/index.cjs.map +1 -1
  14. package/cjs/index.d.cts +1 -1
  15. package/esm/DynamicSnippetsGenerator.d.ts +1 -1
  16. package/esm/DynamicSnippetsGenerator.js +1 -1
  17. package/esm/{DynamicSnippetsGeneratorContext-CqPRgNNz.d.ts → DynamicSnippetsGeneratorContext-BhCKaadj.d.ts} +16 -1
  18. package/esm/EndpointSnippetGenerator.d.ts +1 -1
  19. package/esm/{chunk-TJKLGKYV.js → chunk-ATHAOWL4.js} +2 -2
  20. package/esm/chunk-Z267S5KO.js +15 -0
  21. package/esm/chunk-Z267S5KO.js.map +1 -0
  22. package/esm/context/DynamicSnippetsGeneratorContext.d.ts +1 -1
  23. package/esm/context/DynamicSnippetsGeneratorContext.js +1 -1
  24. package/esm/context/DynamicTypeLiteralMapper.d.ts +1 -1
  25. package/esm/context/DynamicTypeMapper.d.ts +1 -1
  26. package/esm/context/FilePropertyMapper.d.ts +1 -1
  27. package/esm/index.d.ts +1 -1
  28. package/esm/index.js +1 -1
  29. package/package.json +1 -1
  30. package/esm/chunk-FT6O7RFS.js +0 -15
  31. package/esm/chunk-FT6O7RFS.js.map +0 -1
  32. /package/esm/{chunk-TJKLGKYV.js.map → chunk-ATHAOWL4.js.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { AbstractDynamicSnippetsGenerator, FernGeneratorExec, Options } from '@fern-api/browser-compatible-base-generator';
2
2
  import { FernIr } from '@fern-api/dynamic-ir-sdk';
3
- import { D as DynamicSnippetsGeneratorContext } from './DynamicSnippetsGeneratorContext-CqPRgNNz.cjs';
3
+ import { D as DynamicSnippetsGeneratorContext } from './DynamicSnippetsGeneratorContext-BhCKaadj.cjs';
4
4
  import { EndpointSnippetGenerator } from './EndpointSnippetGenerator.cjs';
5
5
  import '@fern-api/java-ast';
6
6
 
@@ -1,4 +1,4 @@
1
- import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec, Options } from '@fern-api/browser-compatible-base-generator';
1
+ import { AbstractDynamicSnippetsGeneratorContext, FernGeneratorExec, Options, TypeInstance } from '@fern-api/browser-compatible-base-generator';
2
2
  import { FernIr } from '@fern-api/dynamic-ir-sdk';
3
3
  import { java, BaseJavaCustomConfigSchema } from '@fern-api/java-ast';
4
4
 
@@ -124,6 +124,21 @@ declare class DynamicSnippetsGeneratorContext extends AbstractDynamicSnippetsGen
124
124
  typeReference: FernIr.dynamic.TypeReference;
125
125
  value: unknown;
126
126
  }>;
127
+ /**
128
+ * Override to preserve parameter order for Java staged builders.
129
+ *
130
+ * Java uses type-state staged builders where method call order is enforced at compile time.
131
+ * Unlike Python/TypeScript/Go which use keyword arguments or object literals (order-independent),
132
+ * Java requires fields to be set in the exact order they appear in the schema definition.
133
+ *
134
+ * This override calls the base implementation to preserve all error handling semantics,
135
+ * then reorders the results to match schema parameter order.
136
+ */
137
+ associateByWireValue({ parameters, values, ignoreMissingParameters }: {
138
+ parameters: FernIr.dynamic.NamedParameter[];
139
+ values: FernIr.dynamic.Values;
140
+ ignoreMissingParameters?: boolean;
141
+ }): TypeInstance[];
127
142
  getRootPackageName(): string;
128
143
  getCorePackageName(): string;
129
144
  getTypesPackageName(fernFilepath: FernIr.dynamic.FernFilepath): string;
@@ -1,6 +1,6 @@
1
1
  import { AbstractFormatter, Options } from '@fern-api/browser-compatible-base-generator';
2
2
  import { FernIr } from '@fern-api/dynamic-ir-sdk';
3
- import { D as DynamicSnippetsGeneratorContext } from './DynamicSnippetsGeneratorContext-CqPRgNNz.cjs';
3
+ import { D as DynamicSnippetsGeneratorContext } from './DynamicSnippetsGeneratorContext-BhCKaadj.cjs';
4
4
  import '@fern-api/java-ast';
5
5
 
6
6
  declare class EndpointSnippetGenerator {