quicktype 18.0.5 → 19.0.4
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/README.md +1 -1
- package/dist/{cli/CompressedJSONFromStream.d.ts → CompressedJSONFromStream.d.ts} +1 -1
- package/dist/{cli/CompressedJSONFromStream.js → CompressedJSONFromStream.js} +2 -2
- package/dist/{cli/GraphQLIntrospection.d.ts → GraphQLIntrospection.d.ts} +0 -0
- package/dist/{cli/GraphQLIntrospection.js → GraphQLIntrospection.js} +1 -1
- package/dist/{cli/TypeSource.d.ts → TypeSource.d.ts} +2 -2
- package/dist/{cli/TypeSource.js → TypeSource.js} +0 -0
- package/dist/{cli/URLGrammar.d.ts → URLGrammar.d.ts} +0 -0
- package/dist/{cli/URLGrammar.js → URLGrammar.js} +1 -1
- package/dist/{cli/index.d.ts → index.d.ts} +1 -1
- package/dist/{cli/index.js → index.js} +4 -5
- package/package.json +61 -77
- package/dist/quicktype-core/Annotation.d.ts +0 -8
- package/dist/quicktype-core/Annotation.js +0 -16
- package/dist/quicktype-core/ConvenienceRenderer.d.ts +0 -138
- package/dist/quicktype-core/ConvenienceRenderer.js +0 -668
- package/dist/quicktype-core/DateTime.d.ts +0 -10
- package/dist/quicktype-core/DateTime.js +0 -57
- package/dist/quicktype-core/DeclarationIR.d.ts +0 -14
- package/dist/quicktype-core/DeclarationIR.js +0 -167
- package/dist/quicktype-core/EncodedMarkovChain.d.ts +0 -1
- package/dist/quicktype-core/EncodedMarkovChain.js +0 -4
- package/dist/quicktype-core/GatherNames.d.ts +0 -2
- package/dist/quicktype-core/GatherNames.js +0 -333
- package/dist/quicktype-core/Graph.d.ts +0 -12
- package/dist/quicktype-core/Graph.js +0 -220
- package/dist/quicktype-core/GraphRewriting.d.ts +0 -87
- package/dist/quicktype-core/GraphRewriting.js +0 -421
- package/dist/quicktype-core/MakeTransformations.d.ts +0 -4
- package/dist/quicktype-core/MakeTransformations.js +0 -193
- package/dist/quicktype-core/MarkovChain.d.ts +0 -15
- package/dist/quicktype-core/MarkovChain.js +0 -154
- package/dist/quicktype-core/Messages.d.ts +0 -294
- package/dist/quicktype-core/Messages.js +0 -105
- package/dist/quicktype-core/Naming.d.ts +0 -64
- package/dist/quicktype-core/Naming.js +0 -356
- package/dist/quicktype-core/Renderer.d.ts +0 -50
- package/dist/quicktype-core/Renderer.js +0 -274
- package/dist/quicktype-core/RendererOptions.d.ts +0 -71
- package/dist/quicktype-core/RendererOptions.js +0 -141
- package/dist/quicktype-core/Run.d.ts +0 -174
- package/dist/quicktype-core/Run.js +0 -393
- package/dist/quicktype-core/Source.d.ts +0 -65
- package/dist/quicktype-core/Source.js +0 -204
- package/dist/quicktype-core/TargetLanguage.d.ts +0 -34
- package/dist/quicktype-core/TargetLanguage.js +0 -66
- package/dist/quicktype-core/Transformers.d.ts +0 -209
- package/dist/quicktype-core/Transformers.js +0 -836
- package/dist/quicktype-core/Type.d.ts +0 -206
- package/dist/quicktype-core/Type.js +0 -716
- package/dist/quicktype-core/TypeBuilder.d.ts +0 -61
- package/dist/quicktype-core/TypeBuilder.js +0 -324
- package/dist/quicktype-core/TypeGraph.d.ts +0 -75
- package/dist/quicktype-core/TypeGraph.js +0 -420
- package/dist/quicktype-core/TypeUtils.d.ts +0 -33
- package/dist/quicktype-core/TypeUtils.js +0 -230
- package/dist/quicktype-core/UnifyClasses.d.ts +0 -16
- package/dist/quicktype-core/UnifyClasses.js +0 -159
- package/dist/quicktype-core/UnionBuilder.d.ts +0 -49
- package/dist/quicktype-core/UnionBuilder.js +0 -282
- package/dist/quicktype-core/attributes/AccessorNames.d.ts +0 -18
- package/dist/quicktype-core/attributes/AccessorNames.js +0 -182
- package/dist/quicktype-core/attributes/Constraints.d.ts +0 -38
- package/dist/quicktype-core/attributes/Constraints.js +0 -172
- package/dist/quicktype-core/attributes/Description.d.ts +0 -9
- package/dist/quicktype-core/attributes/Description.js +0 -97
- package/dist/quicktype-core/attributes/EnumValues.d.ts +0 -8
- package/dist/quicktype-core/attributes/EnumValues.js +0 -31
- package/dist/quicktype-core/attributes/StringTypes.d.ts +0 -28
- package/dist/quicktype-core/attributes/StringTypes.js +0 -189
- package/dist/quicktype-core/attributes/TypeAttributes.d.ts +0 -34
- package/dist/quicktype-core/attributes/TypeAttributes.js +0 -119
- package/dist/quicktype-core/attributes/TypeNames.d.ts +0 -46
- package/dist/quicktype-core/attributes/TypeNames.js +0 -274
- package/dist/quicktype-core/attributes/URIAttributes.d.ts +0 -8
- package/dist/quicktype-core/attributes/URIAttributes.js +0 -85
- package/dist/quicktype-core/index.d.ts +0 -48
- package/dist/quicktype-core/index.js +0 -180
- package/dist/quicktype-core/input/CompressedJSON.d.ts +0 -69
- package/dist/quicktype-core/input/CompressedJSON.js +0 -276
- package/dist/quicktype-core/input/FetchingJSONSchemaStore.d.ts +0 -6
- package/dist/quicktype-core/input/FetchingJSONSchemaStore.js +0 -18
- package/dist/quicktype-core/input/Inference.d.ts +0 -22
- package/dist/quicktype-core/input/Inference.js +0 -240
- package/dist/quicktype-core/input/Inputs.d.ts +0 -48
- package/dist/quicktype-core/input/Inputs.js +0 -145
- package/dist/quicktype-core/input/JSONSchemaInput.d.ts +0 -91
- package/dist/quicktype-core/input/JSONSchemaInput.js +0 -1041
- package/dist/quicktype-core/input/JSONSchemaStore.d.ts +0 -8
- package/dist/quicktype-core/input/JSONSchemaStore.js +0 -36
- package/dist/quicktype-core/input/PostmanCollection.d.ts +0 -5
- package/dist/quicktype-core/input/PostmanCollection.js +0 -60
- package/dist/quicktype-core/input/io/NodeIO.d.ts +0 -3
- package/dist/quicktype-core/input/io/NodeIO.js +0 -87
- package/dist/quicktype-core/input/io/get-stream/buffer-stream.d.ts +0 -2
- package/dist/quicktype-core/input/io/get-stream/buffer-stream.js +0 -45
- package/dist/quicktype-core/input/io/get-stream/index.d.ts +0 -9
- package/dist/quicktype-core/input/io/get-stream/index.js +0 -52
- package/dist/quicktype-core/language/All.d.ts +0 -3
- package/dist/quicktype-core/language/All.js +0 -57
- package/dist/quicktype-core/language/CPlusPlus.d.ts +0 -241
- package/dist/quicktype-core/language/CPlusPlus.js +0 -1847
- package/dist/quicktype-core/language/CSharp.d.ts +0 -201
- package/dist/quicktype-core/language/CSharp.js +0 -1850
- package/dist/quicktype-core/language/Crystal.d.ts +0 -37
- package/dist/quicktype-core/language/Crystal.js +0 -337
- package/dist/quicktype-core/language/Dart.d.ts +0 -66
- package/dist/quicktype-core/language/Dart.js +0 -576
- package/dist/quicktype-core/language/Elm.d.ts +0 -58
- package/dist/quicktype-core/language/Elm.js +0 -522
- package/dist/quicktype-core/language/Golang.d.ts +0 -51
- package/dist/quicktype-core/language/Golang.js +0 -460
- package/dist/quicktype-core/language/Haskell.d.ts +0 -56
- package/dist/quicktype-core/language/Haskell.js +0 -411
- package/dist/quicktype-core/language/JSONSchema.d.ts +0 -31
- package/dist/quicktype-core/language/JSONSchema.js +0 -169
- package/dist/quicktype-core/language/Java.d.ts +0 -125
- package/dist/quicktype-core/language/Java.js +0 -1081
- package/dist/quicktype-core/language/JavaScript.d.ts +0 -68
- package/dist/quicktype-core/language/JavaScript.js +0 -435
- package/dist/quicktype-core/language/JavaScriptPropTypes.d.ts +0 -40
- package/dist/quicktype-core/language/JavaScriptPropTypes.js +0 -213
- package/dist/quicktype-core/language/JavaScriptUnicodeMaps.d.ts +0 -2
- package/dist/quicktype-core/language/JavaScriptUnicodeMaps.js +0 -134
- package/dist/quicktype-core/language/Kotlin.d.ts +0 -109
- package/dist/quicktype-core/language/Kotlin.js +0 -832
- package/dist/quicktype-core/language/Objective-C.d.ts +0 -79
- package/dist/quicktype-core/language/Objective-C.js +0 -777
- package/dist/quicktype-core/language/Php.d.ts +0 -80
- package/dist/quicktype-core/language/Php.js +0 -702
- package/dist/quicktype-core/language/Pike.d.ts +0 -37
- package/dist/quicktype-core/language/Pike.js +0 -276
- package/dist/quicktype-core/language/Python.d.ts +0 -107
- package/dist/quicktype-core/language/Python.js +0 -969
- package/dist/quicktype-core/language/Rust.d.ts +0 -56
- package/dist/quicktype-core/language/Rust.js +0 -309
- package/dist/quicktype-core/language/Swift.d.ts +0 -96
- package/dist/quicktype-core/language/Swift.js +0 -1211
- package/dist/quicktype-core/language/TypeScriptFlow.d.ts +0 -77
- package/dist/quicktype-core/language/TypeScriptFlow.js +0 -286
- package/dist/quicktype-core/language/ruby/index.d.ts +0 -52
- package/dist/quicktype-core/language/ruby/index.js +0 -557
- package/dist/quicktype-core/language/ruby/keywords.d.ts +0 -3
- package/dist/quicktype-core/language/ruby/keywords.js +0 -358
- package/dist/quicktype-core/rewrites/CombineClasses.d.ts +0 -3
- package/dist/quicktype-core/rewrites/CombineClasses.js +0 -125
- package/dist/quicktype-core/rewrites/ExpandStrings.d.ts +0 -4
- package/dist/quicktype-core/rewrites/ExpandStrings.js +0 -143
- package/dist/quicktype-core/rewrites/FlattenStrings.d.ts +0 -3
- package/dist/quicktype-core/rewrites/FlattenStrings.js +0 -45
- package/dist/quicktype-core/rewrites/FlattenUnions.d.ts +0 -3
- package/dist/quicktype-core/rewrites/FlattenUnions.js +0 -47
- package/dist/quicktype-core/rewrites/InferMaps.d.ts +0 -3
- package/dist/quicktype-core/rewrites/InferMaps.js +0 -117
- package/dist/quicktype-core/rewrites/ReplaceObjectType.d.ts +0 -3
- package/dist/quicktype-core/rewrites/ReplaceObjectType.js +0 -60
- package/dist/quicktype-core/rewrites/ResolveIntersections.d.ts +0 -3
- package/dist/quicktype-core/rewrites/ResolveIntersections.js +0 -244
- package/dist/quicktype-core/support/Acronyms.d.ts +0 -10
- package/dist/quicktype-core/support/Acronyms.js +0 -1128
- package/dist/quicktype-core/support/Chance.d.ts +0 -38
- package/dist/quicktype-core/support/Chance.js +0 -2146
- package/dist/quicktype-core/support/Converters.d.ts +0 -6
- package/dist/quicktype-core/support/Converters.js +0 -16
- package/dist/quicktype-core/support/Strings.d.ts +0 -44
- package/dist/quicktype-core/support/Strings.js +0 -525
- package/dist/quicktype-core/support/Support.d.ts +0 -29
- package/dist/quicktype-core/support/Support.js +0 -162
- package/dist/quicktype-graphql-input/GraphQLSchema.d.ts +0 -645
- package/dist/quicktype-graphql-input/GraphQLSchema.js +0 -39
- package/dist/quicktype-graphql-input/index.d.ts +0 -17
- package/dist/quicktype-graphql-input/index.js +0 -407
- package/dist/quicktype-typescript-input/index.d.ts +0 -2
- package/dist/quicktype-typescript-input/index.js +0 -98
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { ConvenienceRenderer, ForbiddenWordsInfo } from "../ConvenienceRenderer";
|
|
2
|
-
import { Name, Namer } from "../Naming";
|
|
3
|
-
import { RenderContext } from "../Renderer";
|
|
4
|
-
import { BooleanOption, EnumOption, Option, OptionValues, StringOption } from "../RendererOptions";
|
|
5
|
-
import { Sourcelike } from "../Source";
|
|
6
|
-
import { AcronymStyleOptions } from "../support/Acronyms";
|
|
7
|
-
import { TargetLanguage } from "../TargetLanguage";
|
|
8
|
-
import { ClassProperty, ClassType, EnumType, Type, UnionType } from "../Type";
|
|
9
|
-
import { StringTypeMapping } from "..";
|
|
10
|
-
export declare const javaOptions: {
|
|
11
|
-
useList: EnumOption<boolean>;
|
|
12
|
-
justTypes: BooleanOption;
|
|
13
|
-
dateTimeProvider: EnumOption<string>;
|
|
14
|
-
acronymStyle: EnumOption<AcronymStyleOptions>;
|
|
15
|
-
packageName: StringOption;
|
|
16
|
-
lombok: BooleanOption;
|
|
17
|
-
lombokCopyAnnotations: BooleanOption;
|
|
18
|
-
};
|
|
19
|
-
export declare class JavaTargetLanguage extends TargetLanguage {
|
|
20
|
-
constructor();
|
|
21
|
-
protected getOptions(): Option<any>[];
|
|
22
|
-
get supportsUnionsWithBothNumberTypes(): boolean;
|
|
23
|
-
protected makeRenderer(renderContext: RenderContext, untypedOptionValues: {
|
|
24
|
-
[name: string]: any;
|
|
25
|
-
}): JavaRenderer;
|
|
26
|
-
get stringTypeMapping(): StringTypeMapping;
|
|
27
|
-
}
|
|
28
|
-
export declare const stringEscape: (s: string) => string;
|
|
29
|
-
export declare function javaNameStyle(startWithUpper: boolean, upperUnderscore: boolean, original: string, acronymsStyle?: (s: string) => string): string;
|
|
30
|
-
declare abstract class JavaDateTimeProvider {
|
|
31
|
-
protected readonly _renderer: JavaRenderer;
|
|
32
|
-
protected readonly _className: string;
|
|
33
|
-
constructor(_renderer: JavaRenderer, _className: string);
|
|
34
|
-
abstract keywords: string[];
|
|
35
|
-
abstract dateTimeImports: string[];
|
|
36
|
-
abstract dateImports: string[];
|
|
37
|
-
abstract timeImports: string[];
|
|
38
|
-
abstract converterImports: string[];
|
|
39
|
-
abstract dateTimeType: string;
|
|
40
|
-
abstract dateType: string;
|
|
41
|
-
abstract timeType: string;
|
|
42
|
-
abstract dateTimeJacksonAnnotations: string[];
|
|
43
|
-
abstract dateJacksonAnnotations: string[];
|
|
44
|
-
abstract timeJacksonAnnotations: string[];
|
|
45
|
-
abstract emitDateTimeConverters(): void;
|
|
46
|
-
shouldEmitDateTimeConverter: boolean;
|
|
47
|
-
shouldEmitTimeConverter: boolean;
|
|
48
|
-
shouldEmitDateConverter: boolean;
|
|
49
|
-
abstract convertStringToDateTime(variable: Sourcelike): Sourcelike;
|
|
50
|
-
abstract convertStringToTime(variable: Sourcelike): Sourcelike;
|
|
51
|
-
abstract convertStringToDate(variable: Sourcelike): Sourcelike;
|
|
52
|
-
abstract convertDateTimeToString(variable: Sourcelike): Sourcelike;
|
|
53
|
-
abstract convertTimeToString(variable: Sourcelike): Sourcelike;
|
|
54
|
-
abstract convertDateToString(variable: Sourcelike): Sourcelike;
|
|
55
|
-
}
|
|
56
|
-
export declare class JavaRenderer extends ConvenienceRenderer {
|
|
57
|
-
protected readonly _options: OptionValues<typeof javaOptions>;
|
|
58
|
-
private _currentFilename;
|
|
59
|
-
private readonly _gettersAndSettersForPropertyName;
|
|
60
|
-
private _haveEmittedLeadingComments;
|
|
61
|
-
protected readonly _dateTimeProvider: JavaDateTimeProvider;
|
|
62
|
-
protected readonly _converterClassname: string;
|
|
63
|
-
protected readonly _converterKeywords: string[];
|
|
64
|
-
constructor(targetLanguage: TargetLanguage, renderContext: RenderContext, _options: OptionValues<typeof javaOptions>);
|
|
65
|
-
protected forbiddenNamesForGlobalNamespace(): string[];
|
|
66
|
-
protected forbiddenForObjectProperties(_c: ClassType, _className: Name): ForbiddenWordsInfo;
|
|
67
|
-
protected makeNamedTypeNamer(): Namer;
|
|
68
|
-
protected namerForObjectProperty(): Namer;
|
|
69
|
-
protected makeUnionMemberNamer(): Namer;
|
|
70
|
-
protected makeEnumCaseNamer(): Namer;
|
|
71
|
-
protected unionNeedsName(u: UnionType): boolean;
|
|
72
|
-
protected namedTypeToNameForTopLevel(type: Type): Type | undefined;
|
|
73
|
-
protected makeNamesForPropertyGetterAndSetter(_c: ClassType, _className: Name, _p: ClassProperty, _jsonName: string, name: Name): [Name, Name];
|
|
74
|
-
protected makePropertyDependencyNames(c: ClassType, className: Name, p: ClassProperty, jsonName: string, name: Name): Name[];
|
|
75
|
-
private getNameStyling;
|
|
76
|
-
protected fieldOrMethodName(methodName: string, topLevelName: Name): Sourcelike;
|
|
77
|
-
protected methodName(prefix: string, suffix: string, topLevelName: Name): Sourcelike;
|
|
78
|
-
protected decoderName(topLevelName: Name): Sourcelike;
|
|
79
|
-
protected encoderName(topLevelName: Name): Sourcelike;
|
|
80
|
-
protected readerGetterName(topLevelName: Name): Sourcelike;
|
|
81
|
-
protected writerGetterName(topLevelName: Name): Sourcelike;
|
|
82
|
-
protected startFile(basename: Sourcelike): void;
|
|
83
|
-
protected finishFile(): void;
|
|
84
|
-
protected emitPackageAndImports(imports: string[]): void;
|
|
85
|
-
protected emitFileHeader(fileName: Sourcelike, imports: string[]): void;
|
|
86
|
-
emitDescriptionBlock(lines: Sourcelike[]): void;
|
|
87
|
-
emitBlock(line: Sourcelike, f: () => void): void;
|
|
88
|
-
emitTryCatch(main: () => void, handler: () => void, exception?: string): void;
|
|
89
|
-
emitIgnoredTryCatchBlock(f: () => void): void;
|
|
90
|
-
protected javaType(reference: boolean, t: Type, withIssues?: boolean): Sourcelike;
|
|
91
|
-
protected javaImport(t: Type): string[];
|
|
92
|
-
protected javaTypeWithoutGenerics(reference: boolean, t: Type): Sourcelike;
|
|
93
|
-
protected emitClassAttributes(_c: ClassType, _className: Name): void;
|
|
94
|
-
protected annotationsForAccessor(_c: ClassType, _className: Name, _propertyName: Name, _jsonName: string, _p: ClassProperty, _isSetter: boolean): string[];
|
|
95
|
-
protected importsForType(t: ClassType | UnionType | EnumType): string[];
|
|
96
|
-
protected importsForClass(c: ClassType): string[];
|
|
97
|
-
protected importsForUnionMembers(u: UnionType): string[];
|
|
98
|
-
protected emitClassDefinition(c: ClassType, className: Name): void;
|
|
99
|
-
protected unionField(u: UnionType, t: Type, withIssues?: boolean): {
|
|
100
|
-
fieldType: Sourcelike;
|
|
101
|
-
fieldName: Sourcelike;
|
|
102
|
-
};
|
|
103
|
-
protected emitUnionAttributes(_u: UnionType, _unionName: Name): void;
|
|
104
|
-
protected emitUnionSerializer(_u: UnionType, _unionName: Name): void;
|
|
105
|
-
protected emitUnionDefinition(u: UnionType, unionName: Name): void;
|
|
106
|
-
protected emitEnumSerializationAttributes(_e: EnumType): void;
|
|
107
|
-
protected emitEnumDeserializationAttributes(_e: EnumType): void;
|
|
108
|
-
protected emitEnumDefinition(e: EnumType, enumName: Name): void;
|
|
109
|
-
protected emitSourceStructure(): void;
|
|
110
|
-
}
|
|
111
|
-
export declare class JacksonRenderer extends JavaRenderer {
|
|
112
|
-
constructor(targetLanguage: TargetLanguage, renderContext: RenderContext, options: OptionValues<typeof javaOptions>);
|
|
113
|
-
protected readonly _converterKeywords: string[];
|
|
114
|
-
protected emitClassAttributes(c: ClassType, _className: Name): void;
|
|
115
|
-
protected annotationsForAccessor(_c: ClassType, _className: Name, _propertyName: Name, jsonName: string, p: ClassProperty, _isSetter: boolean): string[];
|
|
116
|
-
protected importsForType(t: ClassType | UnionType | EnumType): string[];
|
|
117
|
-
protected emitUnionAttributes(_u: UnionType, unionName: Name): void;
|
|
118
|
-
protected emitUnionSerializer(u: UnionType, unionName: Name): void;
|
|
119
|
-
protected emitEnumSerializationAttributes(_e: EnumType): void;
|
|
120
|
-
protected emitEnumDeserializationAttributes(_e: EnumType): void;
|
|
121
|
-
protected emitOffsetDateTimeConverterModule(): void;
|
|
122
|
-
protected emitConverterClass(): void;
|
|
123
|
-
protected emitSourceStructure(): void;
|
|
124
|
-
}
|
|
125
|
-
export {};
|