@fern-api/java-dynamic-snippets 4.10.4 → 4.10.5

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.d.cts CHANGED
@@ -23,7 +23,9 @@ declare class DynamicTypeLiteralMapper {
23
23
  context: DynamicSnippetsGeneratorContext;
24
24
  });
25
25
  private usesOptionalNullable;
26
+ private usesNullableAnnotation;
26
27
  private wrapInOptionalIfNotNop;
28
+ private wrapNullableOrOptionalValue;
27
29
  convert(args: DynamicTypeLiteralMapper.Args): java.TypeLiteral;
28
30
  private convertList;
29
31
  private convertLiteral;
@@ -32,6 +34,13 @@ declare class DynamicTypeLiteralMapper {
32
34
  private convertNamed;
33
35
  private convertDiscriminatedUnion;
34
36
  private convertObject;
37
+ /**
38
+ * Returns true when a property becomes a required stage in v1's staged builder. v1 stages
39
+ * fields that are neither optional, nullable, nor collections (list/set/map); those are all
40
+ * exposed on the final stage instead. This intentionally resolves aliases itself because the
41
+ * shared `isOptional` helper does not treat an alias to an optional type as optional.
42
+ */
43
+ private isStagedBuilderProperty;
35
44
  private convertToRawJavaLiteral;
36
45
  private escapeJavaString;
37
46
  private getDefaultValueForTypeReference;
@@ -168,6 +177,8 @@ declare class DynamicSnippetsGeneratorContext extends AbstractDynamicSnippetsGen
168
177
  getPackageLayout(): string;
169
178
  shouldInlinePathParameters(): boolean;
170
179
  shouldInlineFileProperties(): boolean;
180
+ usesNullableAnnotation(): boolean;
181
+ usesOptionalNullable(): boolean;
171
182
  private getPackageNameSegments;
172
183
  private getPackageNameSegment;
173
184
  private getPackagePrefixTokens;
package/dist/index.d.ts CHANGED
@@ -23,7 +23,9 @@ declare class DynamicTypeLiteralMapper {
23
23
  context: DynamicSnippetsGeneratorContext;
24
24
  });
25
25
  private usesOptionalNullable;
26
+ private usesNullableAnnotation;
26
27
  private wrapInOptionalIfNotNop;
28
+ private wrapNullableOrOptionalValue;
27
29
  convert(args: DynamicTypeLiteralMapper.Args): java.TypeLiteral;
28
30
  private convertList;
29
31
  private convertLiteral;
@@ -32,6 +34,13 @@ declare class DynamicTypeLiteralMapper {
32
34
  private convertNamed;
33
35
  private convertDiscriminatedUnion;
34
36
  private convertObject;
37
+ /**
38
+ * Returns true when a property becomes a required stage in v1's staged builder. v1 stages
39
+ * fields that are neither optional, nullable, nor collections (list/set/map); those are all
40
+ * exposed on the final stage instead. This intentionally resolves aliases itself because the
41
+ * shared `isOptional` helper does not treat an alias to an optional type as optional.
42
+ */
43
+ private isStagedBuilderProperty;
35
44
  private convertToRawJavaLiteral;
36
45
  private escapeJavaString;
37
46
  private getDefaultValueForTypeReference;
@@ -168,6 +177,8 @@ declare class DynamicSnippetsGeneratorContext extends AbstractDynamicSnippetsGen
168
177
  getPackageLayout(): string;
169
178
  shouldInlinePathParameters(): boolean;
170
179
  shouldInlineFileProperties(): boolean;
180
+ usesNullableAnnotation(): boolean;
181
+ usesOptionalNullable(): boolean;
171
182
  private getPackageNameSegments;
172
183
  private getPackageNameSegment;
173
184
  private getPackagePrefixTokens;