@orval/core 8.0.0-rc.2 → 8.0.0-rc.3
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.mts +359 -355
- package/dist/index.mjs +669 -615
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -10
package/dist/index.d.mts
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { CompareOperator } from "compare-versions";
|
|
2
2
|
import debug from "debug";
|
|
3
|
-
import { ConvertInputOptions } from "swagger2openapi";
|
|
4
|
-
import SwaggerParser from "@apidevtools/swagger-parser";
|
|
5
3
|
import { allLocales } from "@faker-js/faker";
|
|
6
|
-
import {
|
|
7
|
-
import { ComponentsObject, ExampleObject, InfoObject, OpenAPIObject, OperationObject, ParameterObject, PathItemObject, ReferenceObject, RequestBodyObject, ResponseObject, ResponsesObject, SchemaObject, SchemasObject } from "openapi3-ts/oas30";
|
|
4
|
+
import { OpenAPIV3_1 } from "@scalar/openapi-types";
|
|
8
5
|
import { TypeDocOptions } from "typedoc";
|
|
9
|
-
import { ServerObject } from "openapi3-ts/oas31";
|
|
10
6
|
|
|
11
7
|
//#region src/types.d.ts
|
|
12
8
|
interface Options {
|
|
@@ -62,7 +58,7 @@ type NormalizedOverrideOutput = {
|
|
|
62
58
|
tags: Record<string, NormalizedOperationOptions | undefined>;
|
|
63
59
|
mock?: OverrideMockOptions;
|
|
64
60
|
contentType?: OverrideOutputContentType;
|
|
65
|
-
header: false | ((info:
|
|
61
|
+
header: false | ((info: OpenApiInfoObject) => string[] | string);
|
|
66
62
|
formData: NormalizedFormDataType<NormalizedMutator>;
|
|
67
63
|
formUrlEncoded: boolean | NormalizedMutator;
|
|
68
64
|
paramsSerializer?: NormalizedMutator;
|
|
@@ -91,7 +87,7 @@ type NormalizedOverrideOutput = {
|
|
|
91
87
|
swr: SwrOptions;
|
|
92
88
|
zod: NormalizedZodOptions;
|
|
93
89
|
fetch: NormalizedFetchOptions;
|
|
94
|
-
operationName?: (operation:
|
|
90
|
+
operationName?: (operation: OpenApiOperationObject, route: string, verb: Verbs) => string;
|
|
95
91
|
requestOptions: Record<string, any> | boolean;
|
|
96
92
|
useDates?: boolean;
|
|
97
93
|
useTypeOverInterfaces?: boolean;
|
|
@@ -121,7 +117,7 @@ type NormalizedOperationOptions = {
|
|
|
121
117
|
angular?: Required<AngularOptions>;
|
|
122
118
|
swr?: SwrOptions;
|
|
123
119
|
zod?: NormalizedZodOptions;
|
|
124
|
-
operationName?: (operation:
|
|
120
|
+
operationName?: (operation: OpenApiOperationObject, route: string, verb: Verbs) => string;
|
|
125
121
|
fetch?: FetchOptions;
|
|
126
122
|
formData?: NormalizedFormDataType<NormalizedMutator>;
|
|
127
123
|
formUrlEncoded?: boolean | NormalizedMutator;
|
|
@@ -129,12 +125,9 @@ type NormalizedOperationOptions = {
|
|
|
129
125
|
requestOptions?: object | boolean;
|
|
130
126
|
};
|
|
131
127
|
type NormalizedInputOptions = {
|
|
132
|
-
target: string |
|
|
133
|
-
validation: boolean | object;
|
|
128
|
+
target: string | OpenApiDocument;
|
|
134
129
|
override: OverrideInput;
|
|
135
|
-
|
|
136
|
-
parserOptions: SwaggerParserOptions;
|
|
137
|
-
filters?: InputFiltersOption;
|
|
130
|
+
filters?: InputFiltersOptions;
|
|
138
131
|
};
|
|
139
132
|
type OutputClientFunc = (clients: GeneratorClients) => ClientGeneratorsBuilder;
|
|
140
133
|
type BaseUrlFromSpec = {
|
|
@@ -193,21 +186,15 @@ type OutputOptions = {
|
|
|
193
186
|
optionsParamRequired?: boolean;
|
|
194
187
|
propertySortOrder?: PropertySortOrder;
|
|
195
188
|
};
|
|
196
|
-
type
|
|
197
|
-
validate?: boolean;
|
|
198
|
-
};
|
|
199
|
-
type InputFiltersOption = {
|
|
189
|
+
type InputFiltersOptions = {
|
|
200
190
|
mode?: 'include' | 'exclude';
|
|
201
191
|
tags?: (string | RegExp)[];
|
|
202
192
|
schemas?: (string | RegExp)[];
|
|
203
193
|
};
|
|
204
194
|
type InputOptions = {
|
|
205
|
-
target: string | Record<string, unknown> |
|
|
206
|
-
validation?: boolean | object;
|
|
195
|
+
target: string | Record<string, unknown> | OpenApiDocument;
|
|
207
196
|
override?: OverrideInput;
|
|
208
|
-
|
|
209
|
-
parserOptions?: SwaggerParserOptions;
|
|
210
|
-
filters?: InputFiltersOption;
|
|
197
|
+
filters?: InputFiltersOptions;
|
|
211
198
|
};
|
|
212
199
|
declare const OutputClient: {
|
|
213
200
|
readonly ANGULAR: "angular";
|
|
@@ -274,12 +261,12 @@ type MockOptions = Omit<OverrideMockOptions, 'properties'> & {
|
|
|
274
261
|
}>;
|
|
275
262
|
};
|
|
276
263
|
type MockPropertiesObject = Record<string, unknown>;
|
|
277
|
-
type MockPropertiesObjectFn = (specs:
|
|
264
|
+
type MockPropertiesObjectFn = (specs: OpenApiDocument) => MockPropertiesObject;
|
|
278
265
|
type MockProperties = MockPropertiesObject | MockPropertiesObjectFn;
|
|
279
266
|
type MockDataObject = Record<string, unknown>;
|
|
280
|
-
type MockDataObjectFn = (specs:
|
|
267
|
+
type MockDataObjectFn = (specs: OpenApiDocument) => MockDataObject;
|
|
281
268
|
type MockDataArray = unknown[];
|
|
282
|
-
type MockDataArrayFn = (specs:
|
|
269
|
+
type MockDataArrayFn = (specs: OpenApiDocument) => MockDataArray;
|
|
283
270
|
type MockData = MockDataObject | MockDataObjectFn | MockDataArray | MockDataArrayFn;
|
|
284
271
|
type OutputTransformerFn = (verb: GeneratorVerbOptions) => GeneratorVerbOptions;
|
|
285
272
|
type OutputTransformer = string | OutputTransformerFn;
|
|
@@ -324,7 +311,7 @@ type OverrideOutput = {
|
|
|
324
311
|
tags?: Record<string, OperationOptions>;
|
|
325
312
|
mock?: OverrideMockOptions;
|
|
326
313
|
contentType?: OverrideOutputContentType;
|
|
327
|
-
header?: boolean | ((info:
|
|
314
|
+
header?: boolean | ((info: OpenApiInfoObject) => string[] | string);
|
|
328
315
|
formData?: boolean | Mutator | FormDataType<Mutator>;
|
|
329
316
|
formUrlEncoded?: boolean | Mutator;
|
|
330
317
|
paramsSerializer?: Mutator;
|
|
@@ -352,7 +339,7 @@ type OverrideOutput = {
|
|
|
352
339
|
swr?: SwrOptions;
|
|
353
340
|
angular?: AngularOptions;
|
|
354
341
|
zod?: ZodOptions;
|
|
355
|
-
operationName?: (operation:
|
|
342
|
+
operationName?: (operation: OpenApiOperationObject, route: string, verb: Verbs) => string;
|
|
356
343
|
fetch?: FetchOptions;
|
|
357
344
|
requestOptions?: Record<string, any> | boolean;
|
|
358
345
|
useDates?: boolean;
|
|
@@ -529,7 +516,7 @@ type FetchOptions = {
|
|
|
529
516
|
forceSuccessResponse?: boolean;
|
|
530
517
|
jsonReviver?: Mutator;
|
|
531
518
|
};
|
|
532
|
-
type InputTransformerFn = (spec:
|
|
519
|
+
type InputTransformerFn = (spec: OpenApiDocument) => OpenApiDocument;
|
|
533
520
|
type InputTransformer = string | InputTransformerFn;
|
|
534
521
|
type OverrideInput = {
|
|
535
522
|
transformer?: InputTransformer;
|
|
@@ -545,7 +532,7 @@ type OperationOptions = {
|
|
|
545
532
|
angular?: Required<AngularOptions>;
|
|
546
533
|
swr?: SwrOptions;
|
|
547
534
|
zod?: ZodOptions;
|
|
548
|
-
operationName?: (operation:
|
|
535
|
+
operationName?: (operation: OpenApiOperationObject, route: string, verb: Verbs) => string;
|
|
549
536
|
fetch?: FetchOptions;
|
|
550
537
|
formData?: boolean | Mutator | FormDataType<Mutator>;
|
|
551
538
|
formUrlEncoded?: boolean | Mutator;
|
|
@@ -572,17 +559,18 @@ declare const Verbs: {
|
|
|
572
559
|
HEAD: Verbs;
|
|
573
560
|
};
|
|
574
561
|
type ImportOpenApi = {
|
|
575
|
-
|
|
562
|
+
spec: OpenApiDocument;
|
|
576
563
|
input: NormalizedInputOptions;
|
|
577
564
|
output: NormalizedOutputOptions;
|
|
578
565
|
target: string;
|
|
579
566
|
workspace: string;
|
|
567
|
+
projectName?: string;
|
|
580
568
|
};
|
|
581
|
-
interface
|
|
582
|
-
|
|
569
|
+
interface ContextSpec {
|
|
570
|
+
projectName?: string;
|
|
583
571
|
target: string;
|
|
584
572
|
workspace: string;
|
|
585
|
-
|
|
573
|
+
spec: OpenApiDocument;
|
|
586
574
|
parents?: string[];
|
|
587
575
|
output: NormalizedOutputOptions;
|
|
588
576
|
}
|
|
@@ -620,13 +608,13 @@ type GeneratorSchema = {
|
|
|
620
608
|
name: string;
|
|
621
609
|
model: string;
|
|
622
610
|
imports: GeneratorImport[];
|
|
611
|
+
dependencies?: string[];
|
|
623
612
|
};
|
|
624
613
|
type GeneratorImport = {
|
|
625
614
|
name: string;
|
|
626
615
|
schemaName?: string;
|
|
627
616
|
isConstant?: boolean;
|
|
628
617
|
alias?: string;
|
|
629
|
-
specKey?: string;
|
|
630
618
|
default?: boolean;
|
|
631
619
|
values?: boolean;
|
|
632
620
|
syntheticDefaultImport?: boolean;
|
|
@@ -712,14 +700,14 @@ type GeneratorVerbOptions = {
|
|
|
712
700
|
fetchReviver?: GeneratorMutator;
|
|
713
701
|
override: NormalizedOverrideOutput;
|
|
714
702
|
deprecated?: boolean;
|
|
715
|
-
originalOperation:
|
|
703
|
+
originalOperation: OpenApiOperationObject;
|
|
716
704
|
};
|
|
717
705
|
type GeneratorVerbsOptions = GeneratorVerbOptions[];
|
|
718
706
|
type GeneratorOptions = {
|
|
719
707
|
route: string;
|
|
720
708
|
pathRoute: string;
|
|
721
709
|
override: NormalizedOverrideOutput;
|
|
722
|
-
context:
|
|
710
|
+
context: ContextSpec;
|
|
723
711
|
mock?: GlobalMockOptions | ClientMockBuilder;
|
|
724
712
|
output: string;
|
|
725
713
|
};
|
|
@@ -748,7 +736,7 @@ type ClientFileBuilder = {
|
|
|
748
736
|
path: string;
|
|
749
737
|
content: string;
|
|
750
738
|
};
|
|
751
|
-
type ClientExtraFilesBuilder = (verbOptions: Record<string, GeneratorVerbOptions>, output: NormalizedOutputOptions, context:
|
|
739
|
+
type ClientExtraFilesBuilder = (verbOptions: Record<string, GeneratorVerbOptions>, output: NormalizedOutputOptions, context: ContextSpec) => Promise<ClientFileBuilder[]>;
|
|
752
740
|
type ClientHeaderBuilder = (params: {
|
|
753
741
|
title: string;
|
|
754
742
|
isRequestOptions: boolean;
|
|
@@ -803,10 +791,10 @@ type GetterResponse = {
|
|
|
803
791
|
};
|
|
804
792
|
contentTypes: string[];
|
|
805
793
|
schemas: GeneratorSchema[];
|
|
806
|
-
originalSchema?:
|
|
794
|
+
originalSchema?: OpenApiResponsesObject;
|
|
807
795
|
};
|
|
808
796
|
type GetterBody = {
|
|
809
|
-
originalSchema:
|
|
797
|
+
originalSchema: OpenApiReferenceObject | OpenApiRequestBodyObject;
|
|
810
798
|
imports: GeneratorImport[];
|
|
811
799
|
definition: string;
|
|
812
800
|
implementation: string;
|
|
@@ -818,15 +806,15 @@ type GetterBody = {
|
|
|
818
806
|
};
|
|
819
807
|
type GetterParameters = {
|
|
820
808
|
query: {
|
|
821
|
-
parameter:
|
|
809
|
+
parameter: OpenApiParameterObject;
|
|
822
810
|
imports: GeneratorImport[];
|
|
823
811
|
}[];
|
|
824
812
|
path: {
|
|
825
|
-
parameter:
|
|
813
|
+
parameter: OpenApiParameterObject;
|
|
826
814
|
imports: GeneratorImport[];
|
|
827
815
|
}[];
|
|
828
816
|
header: {
|
|
829
|
-
parameter:
|
|
817
|
+
parameter: OpenApiParameterObject;
|
|
830
818
|
imports: GeneratorImport[];
|
|
831
819
|
}[];
|
|
832
820
|
};
|
|
@@ -843,7 +831,7 @@ type GetterQueryParam = {
|
|
|
843
831
|
schema: GeneratorSchema;
|
|
844
832
|
deps: GeneratorSchema[];
|
|
845
833
|
isOptional: boolean;
|
|
846
|
-
originalSchema?:
|
|
834
|
+
originalSchema?: OpenApiSchemaObject;
|
|
847
835
|
};
|
|
848
836
|
type GetterPropType = 'param' | 'body' | 'queryParam' | 'header' | 'namedPathParams';
|
|
849
837
|
declare const GetterPropType: {
|
|
@@ -888,11 +876,12 @@ type ScalarValue = {
|
|
|
888
876
|
imports: GeneratorImport[];
|
|
889
877
|
schemas: GeneratorSchema[];
|
|
890
878
|
isRef: boolean;
|
|
879
|
+
dependencies: string[];
|
|
891
880
|
example?: any;
|
|
892
881
|
examples?: Record<string, any>;
|
|
893
882
|
};
|
|
894
883
|
type ResolverValue = ScalarValue & {
|
|
895
|
-
originalSchema:
|
|
884
|
+
originalSchema: OpenApiSchemaObject;
|
|
896
885
|
};
|
|
897
886
|
type ResReqTypesValue = ScalarValue & {
|
|
898
887
|
formData?: string;
|
|
@@ -901,26 +890,26 @@ type ResReqTypesValue = ScalarValue & {
|
|
|
901
890
|
hasReadonlyProps?: boolean;
|
|
902
891
|
key: string;
|
|
903
892
|
contentType: string;
|
|
904
|
-
originalSchema?:
|
|
893
|
+
originalSchema?: OpenApiSchemaObject;
|
|
905
894
|
};
|
|
906
|
-
type
|
|
895
|
+
type WriteSpecBuilder = {
|
|
907
896
|
operations: GeneratorOperations;
|
|
908
|
-
schemas: Record<string, GeneratorSchema[]>;
|
|
909
897
|
verbOptions: Record<string, GeneratorVerbOptions>;
|
|
898
|
+
schemas: GeneratorSchema[];
|
|
910
899
|
title: GeneratorClientTitle;
|
|
911
900
|
header: GeneratorClientHeader;
|
|
912
901
|
footer: GeneratorClientFooter;
|
|
913
902
|
imports: GeneratorClientImports;
|
|
914
903
|
importsMock: GenerateMockImports;
|
|
915
904
|
extraFiles: ClientFileBuilder[];
|
|
916
|
-
info:
|
|
905
|
+
info: OpenApiInfoObject;
|
|
917
906
|
target: string;
|
|
918
907
|
};
|
|
919
908
|
type WriteModeProps = {
|
|
920
|
-
builder:
|
|
909
|
+
builder: WriteSpecBuilder;
|
|
921
910
|
output: NormalizedOutputOptions;
|
|
922
911
|
workspace: string;
|
|
923
|
-
|
|
912
|
+
projectName?: string;
|
|
924
913
|
header: string;
|
|
925
914
|
needSchema: boolean;
|
|
926
915
|
};
|
|
@@ -967,7 +956,7 @@ type GeneratorClientImports = (data: {
|
|
|
967
956
|
exports: GeneratorImport[];
|
|
968
957
|
dependency: string;
|
|
969
958
|
}[];
|
|
970
|
-
|
|
959
|
+
projectName?: string;
|
|
971
960
|
hasSchemaDir: boolean;
|
|
972
961
|
isAllowSyntheticDefaultImports: boolean;
|
|
973
962
|
hasGlobalMutator: boolean;
|
|
@@ -982,7 +971,7 @@ type GenerateMockImports = (data: {
|
|
|
982
971
|
exports: GeneratorImport[];
|
|
983
972
|
dependency: string;
|
|
984
973
|
}[];
|
|
985
|
-
|
|
974
|
+
projectName?: string;
|
|
986
975
|
hasSchemaDir: boolean;
|
|
987
976
|
isAllowSyntheticDefaultImports: boolean;
|
|
988
977
|
options?: GlobalMockOptions;
|
|
@@ -995,13 +984,29 @@ type GeneratorApiBuilder = GeneratorApiOperations & {
|
|
|
995
984
|
importsMock: GenerateMockImports;
|
|
996
985
|
extraFiles: ClientFileBuilder[];
|
|
997
986
|
};
|
|
998
|
-
interface SchemaWithConst extends SchemaObject {
|
|
999
|
-
const: string;
|
|
1000
|
-
}
|
|
1001
987
|
declare class ErrorWithTag extends Error {
|
|
1002
988
|
tag: string;
|
|
1003
989
|
constructor(message: string, tag: string, options?: ErrorOptions);
|
|
1004
990
|
}
|
|
991
|
+
type OpenApiSchemaObjectType = 'string' | 'number' | 'boolean' | 'object' | 'integer' | 'null' | 'array';
|
|
992
|
+
type OpenApiDocument = OpenAPIV3_1.Document;
|
|
993
|
+
type OpenApiSchemaObject = OpenAPIV3_1.SchemaObject;
|
|
994
|
+
type OpenApiSchemasObject = Record<string, OpenApiSchemaObject>;
|
|
995
|
+
type OpenApiReferenceObject = OpenAPIV3_1.ReferenceObject & {
|
|
996
|
+
$ref?: string;
|
|
997
|
+
};
|
|
998
|
+
type OpenApiComponentsObject = OpenAPIV3_1.ComponentsObject;
|
|
999
|
+
type OpenApiPathsObject = OpenAPIV3_1.PathsObject;
|
|
1000
|
+
type OpenApiPathItemObject = OpenAPIV3_1.PathItemObject;
|
|
1001
|
+
type OpenApiResponsesObject = OpenAPIV3_1.ResponsesObject;
|
|
1002
|
+
type OpenApiResponseObject = OpenAPIV3_1.ResponseObject;
|
|
1003
|
+
type OpenApiParameterObject = OpenAPIV3_1.ParameterObject;
|
|
1004
|
+
type OpenApiRequestBodyObject = OpenAPIV3_1.RequestBodyObject;
|
|
1005
|
+
type OpenApiInfoObject = OpenAPIV3_1.InfoObject;
|
|
1006
|
+
type OpenApiExampleObject = OpenAPIV3_1.ExampleObject;
|
|
1007
|
+
type OpenApiOperationObject = OpenAPIV3_1.OperationObject;
|
|
1008
|
+
type OpenApiMediaTypeObject = OpenAPIV3_1.MediaTypeObject;
|
|
1009
|
+
type OpenApiServerObject = OpenAPIV3_1.ServerObject;
|
|
1005
1010
|
//#endregion
|
|
1006
1011
|
//#region src/constants.d.ts
|
|
1007
1012
|
declare const generalJSTypes: string[];
|
|
@@ -1011,95 +1016,88 @@ declare const URL_REGEX: RegExp;
|
|
|
1011
1016
|
declare const TEMPLATE_TAG_REGEX: RegExp;
|
|
1012
1017
|
//#endregion
|
|
1013
1018
|
//#region src/generators/component-definition.d.ts
|
|
1014
|
-
declare
|
|
1019
|
+
declare function generateComponentDefinition(responses: OpenApiComponentsObject['responses'] | OpenApiComponentsObject['requestBodies'], context: ContextSpec, suffix: string): GeneratorSchema[];
|
|
1015
1020
|
//#endregion
|
|
1016
1021
|
//#region src/generators/imports.d.ts
|
|
1017
|
-
|
|
1018
|
-
imports,
|
|
1019
|
-
target,
|
|
1020
|
-
isRootKey,
|
|
1021
|
-
specsName,
|
|
1022
|
-
specKey: currentSpecKey,
|
|
1023
|
-
namingConvention
|
|
1024
|
-
}: {
|
|
1022
|
+
interface GenerateImportsOptions {
|
|
1025
1023
|
imports: GeneratorImport[];
|
|
1026
1024
|
target: string;
|
|
1027
|
-
isRootKey: boolean;
|
|
1028
|
-
specsName: Record<string, string>;
|
|
1029
|
-
specKey: string;
|
|
1030
1025
|
namingConvention?: NamingConvention;
|
|
1031
|
-
}
|
|
1032
|
-
declare
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1026
|
+
}
|
|
1027
|
+
declare function generateImports({
|
|
1028
|
+
imports,
|
|
1029
|
+
namingConvention
|
|
1030
|
+
}: GenerateImportsOptions): string;
|
|
1031
|
+
interface GenerateMutatorImportsOptions {
|
|
1037
1032
|
mutators: GeneratorMutator[];
|
|
1038
1033
|
implementation?: string;
|
|
1039
1034
|
oneMore?: boolean;
|
|
1040
|
-
}
|
|
1041
|
-
declare
|
|
1035
|
+
}
|
|
1036
|
+
declare function generateMutatorImports({
|
|
1037
|
+
mutators,
|
|
1042
1038
|
implementation,
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
hasSchemaDir,
|
|
1047
|
-
isAllowSyntheticDefaultImports
|
|
1048
|
-
}: {
|
|
1039
|
+
oneMore
|
|
1040
|
+
}: GenerateMutatorImportsOptions): string;
|
|
1041
|
+
interface AddDependencyOptions {
|
|
1049
1042
|
implementation: string;
|
|
1050
1043
|
exports: GeneratorImport[];
|
|
1051
1044
|
dependency: string;
|
|
1052
|
-
|
|
1045
|
+
projectName?: string;
|
|
1053
1046
|
hasSchemaDir: boolean;
|
|
1054
1047
|
isAllowSyntheticDefaultImports: boolean;
|
|
1055
|
-
}
|
|
1056
|
-
declare
|
|
1048
|
+
}
|
|
1049
|
+
declare function addDependency({
|
|
1050
|
+
implementation,
|
|
1051
|
+
exports,
|
|
1052
|
+
dependency,
|
|
1053
|
+
projectName,
|
|
1054
|
+
hasSchemaDir,
|
|
1055
|
+
isAllowSyntheticDefaultImports
|
|
1056
|
+
}: AddDependencyOptions): string | undefined;
|
|
1057
|
+
declare function generateDependencyImports(implementation: string, imports: {
|
|
1057
1058
|
exports: GeneratorImport[];
|
|
1058
1059
|
dependency: string;
|
|
1059
|
-
}[],
|
|
1060
|
-
declare
|
|
1060
|
+
}[], projectName: string | undefined, hasSchemaDir: boolean, isAllowSyntheticDefaultImports: boolean): string;
|
|
1061
|
+
declare function generateVerbImports({
|
|
1061
1062
|
response,
|
|
1062
1063
|
body,
|
|
1063
1064
|
queryParams,
|
|
1064
1065
|
props,
|
|
1065
1066
|
headers,
|
|
1066
1067
|
params
|
|
1067
|
-
}: GeneratorVerbOptions)
|
|
1068
|
+
}: GeneratorVerbOptions): GeneratorImport[];
|
|
1068
1069
|
//#endregion
|
|
1069
1070
|
//#region src/generators/models-inline.d.ts
|
|
1070
|
-
declare
|
|
1071
|
-
declare
|
|
1071
|
+
declare function generateModelInline(acc: string, model: string): string;
|
|
1072
|
+
declare function generateModelsInline(obj: Record<string, GeneratorSchema[]>): string;
|
|
1072
1073
|
//#endregion
|
|
1073
1074
|
//#region src/generators/mutator.d.ts
|
|
1074
1075
|
declare const BODY_TYPE_NAME = "BodyType";
|
|
1076
|
+
interface GenerateMutatorOptions {
|
|
1077
|
+
output?: string;
|
|
1078
|
+
mutator?: NormalizedMutator;
|
|
1079
|
+
name: string;
|
|
1080
|
+
workspace: string;
|
|
1081
|
+
tsconfig?: Tsconfig;
|
|
1082
|
+
}
|
|
1075
1083
|
declare function generateMutator({
|
|
1076
1084
|
output,
|
|
1077
1085
|
mutator,
|
|
1078
1086
|
name,
|
|
1079
1087
|
workspace,
|
|
1080
1088
|
tsconfig
|
|
1081
|
-
}:
|
|
1082
|
-
output?: string;
|
|
1083
|
-
mutator?: NormalizedMutator;
|
|
1084
|
-
name: string;
|
|
1085
|
-
workspace: string;
|
|
1086
|
-
tsconfig?: Tsconfig;
|
|
1087
|
-
}): Promise<GeneratorMutator | undefined>;
|
|
1089
|
+
}: GenerateMutatorOptions): Promise<GeneratorMutator | undefined>;
|
|
1088
1090
|
//#endregion
|
|
1089
1091
|
//#region src/generators/options.d.ts
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
isAngular,
|
|
1100
|
-
paramsSerializer,
|
|
1101
|
-
paramsSerializerOptions
|
|
1102
|
-
}: {
|
|
1092
|
+
interface GenerateFormDataAndUrlEncodedFunctionOptions {
|
|
1093
|
+
body: GetterBody;
|
|
1094
|
+
formData?: GeneratorMutator;
|
|
1095
|
+
formUrlEncoded?: GeneratorMutator;
|
|
1096
|
+
isFormData: boolean;
|
|
1097
|
+
isFormUrlEncoded: boolean;
|
|
1098
|
+
}
|
|
1099
|
+
declare function generateBodyOptions(body: GetterBody, isFormData: boolean, isFormUrlEncoded: boolean): string;
|
|
1100
|
+
interface GenerateAxiosOptions {
|
|
1103
1101
|
response: GetterResponse;
|
|
1104
1102
|
isExactOptionalPropertyTypes: boolean;
|
|
1105
1103
|
queryParams?: GeneratorSchema;
|
|
@@ -1110,24 +1108,20 @@ declare const generateAxiosOptions: ({
|
|
|
1110
1108
|
isAngular: boolean;
|
|
1111
1109
|
paramsSerializer?: GeneratorMutator;
|
|
1112
1110
|
paramsSerializerOptions?: ParamsSerializerOptions;
|
|
1113
|
-
}
|
|
1114
|
-
declare
|
|
1115
|
-
route,
|
|
1116
|
-
body,
|
|
1117
|
-
headers,
|
|
1118
|
-
queryParams,
|
|
1111
|
+
}
|
|
1112
|
+
declare function generateAxiosOptions({
|
|
1119
1113
|
response,
|
|
1120
|
-
verb,
|
|
1121
|
-
requestOptions,
|
|
1122
|
-
isFormData,
|
|
1123
|
-
isFormUrlEncoded,
|
|
1124
|
-
isAngular,
|
|
1125
1114
|
isExactOptionalPropertyTypes,
|
|
1115
|
+
queryParams,
|
|
1116
|
+
headers,
|
|
1117
|
+
requestOptions,
|
|
1126
1118
|
hasSignal,
|
|
1127
1119
|
isVue,
|
|
1120
|
+
isAngular,
|
|
1128
1121
|
paramsSerializer,
|
|
1129
1122
|
paramsSerializerOptions
|
|
1130
|
-
}:
|
|
1123
|
+
}: GenerateAxiosOptions): string;
|
|
1124
|
+
interface GenerateOptionsOptions {
|
|
1131
1125
|
route: string;
|
|
1132
1126
|
body: GetterBody;
|
|
1133
1127
|
headers?: GetterQueryParam;
|
|
@@ -1143,22 +1137,27 @@ declare const generateOptions: ({
|
|
|
1143
1137
|
isVue?: boolean;
|
|
1144
1138
|
paramsSerializer?: GeneratorMutator;
|
|
1145
1139
|
paramsSerializerOptions?: ParamsSerializerOptions;
|
|
1146
|
-
}
|
|
1147
|
-
declare
|
|
1148
|
-
declare const generateQueryParamsAxiosConfig: (response: GetterResponse, isVue: boolean, queryParams?: GetterQueryParam) => string;
|
|
1149
|
-
declare const generateMutatorConfig: ({
|
|
1140
|
+
}
|
|
1141
|
+
declare function generateOptions({
|
|
1150
1142
|
route,
|
|
1151
1143
|
body,
|
|
1152
1144
|
headers,
|
|
1153
1145
|
queryParams,
|
|
1154
1146
|
response,
|
|
1155
1147
|
verb,
|
|
1148
|
+
requestOptions,
|
|
1156
1149
|
isFormData,
|
|
1157
1150
|
isFormUrlEncoded,
|
|
1158
|
-
|
|
1151
|
+
isAngular,
|
|
1159
1152
|
isExactOptionalPropertyTypes,
|
|
1160
|
-
|
|
1161
|
-
|
|
1153
|
+
hasSignal,
|
|
1154
|
+
isVue,
|
|
1155
|
+
paramsSerializer,
|
|
1156
|
+
paramsSerializerOptions
|
|
1157
|
+
}: GenerateOptionsOptions): string;
|
|
1158
|
+
declare function generateBodyMutatorConfig(body: GetterBody, isFormData: boolean, isFormUrlEncoded: boolean): string;
|
|
1159
|
+
declare function generateQueryParamsAxiosConfig(response: GetterResponse, isVue: boolean, queryParams?: GetterQueryParam): string;
|
|
1160
|
+
interface GenerateMutatorConfigOptions {
|
|
1162
1161
|
route: string;
|
|
1163
1162
|
body: GetterBody;
|
|
1164
1163
|
headers?: GetterQueryParam;
|
|
@@ -1170,24 +1169,31 @@ declare const generateMutatorConfig: ({
|
|
|
1170
1169
|
hasSignal: boolean;
|
|
1171
1170
|
isExactOptionalPropertyTypes: boolean;
|
|
1172
1171
|
isVue?: boolean;
|
|
1173
|
-
}
|
|
1174
|
-
declare
|
|
1175
|
-
|
|
1172
|
+
}
|
|
1173
|
+
declare function generateMutatorConfig({
|
|
1174
|
+
route,
|
|
1175
|
+
body,
|
|
1176
|
+
headers,
|
|
1177
|
+
queryParams,
|
|
1178
|
+
response,
|
|
1179
|
+
verb,
|
|
1180
|
+
isFormData,
|
|
1181
|
+
isFormUrlEncoded,
|
|
1182
|
+
hasSignal,
|
|
1183
|
+
isExactOptionalPropertyTypes,
|
|
1184
|
+
isVue
|
|
1185
|
+
}: GenerateMutatorConfigOptions): string;
|
|
1186
|
+
declare function generateMutatorRequestOptions(requestOptions: boolean | object | undefined, hasSecondArgument: boolean): string;
|
|
1187
|
+
declare function generateFormDataAndUrlEncodedFunction({
|
|
1176
1188
|
body,
|
|
1177
1189
|
formData,
|
|
1178
1190
|
formUrlEncoded,
|
|
1179
1191
|
isFormData,
|
|
1180
1192
|
isFormUrlEncoded
|
|
1181
|
-
}:
|
|
1182
|
-
body: GetterBody;
|
|
1183
|
-
formData?: GeneratorMutator;
|
|
1184
|
-
formUrlEncoded?: GeneratorMutator;
|
|
1185
|
-
isFormData: boolean;
|
|
1186
|
-
isFormUrlEncoded: boolean;
|
|
1187
|
-
}) => string;
|
|
1193
|
+
}: GenerateFormDataAndUrlEncodedFunctionOptions): string;
|
|
1188
1194
|
//#endregion
|
|
1189
1195
|
//#region src/generators/parameter-definition.d.ts
|
|
1190
|
-
declare
|
|
1196
|
+
declare function generateParameterDefinition(parameters: OpenApiComponentsObject['parameters'], context: ContextSpec, suffix: string): GeneratorSchema[];
|
|
1191
1197
|
//#endregion
|
|
1192
1198
|
//#region src/generators/schema-definition.d.ts
|
|
1193
1199
|
/**
|
|
@@ -1195,58 +1201,80 @@ declare const generateParameterDefinition: (parameters: ComponentsObject["parame
|
|
|
1195
1201
|
*
|
|
1196
1202
|
* @param schemas
|
|
1197
1203
|
*/
|
|
1198
|
-
declare
|
|
1204
|
+
declare function generateSchemasDefinition(schemas: OpenApiSchemasObject | undefined, context: ContextSpec, suffix: string, filters?: InputFiltersOptions): GeneratorSchema[];
|
|
1199
1205
|
//#endregion
|
|
1200
1206
|
//#region src/generators/verbs-options.d.ts
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1207
|
+
interface GenerateVerbOptionsParams {
|
|
1208
|
+
verb: Verbs;
|
|
1209
|
+
output: NormalizedOutputOptions;
|
|
1210
|
+
operation: OpenApiOperationObject;
|
|
1211
|
+
route: string;
|
|
1212
|
+
pathRoute: string;
|
|
1213
|
+
verbParameters?: OpenApiPathItemObject['parameters'];
|
|
1214
|
+
components?: OpenApiComponentsObject;
|
|
1215
|
+
context: ContextSpec;
|
|
1216
|
+
}
|
|
1217
|
+
declare function generateVerbOptions({
|
|
1218
|
+
verb,
|
|
1204
1219
|
output,
|
|
1220
|
+
operation,
|
|
1205
1221
|
route,
|
|
1206
1222
|
pathRoute,
|
|
1223
|
+
verbParameters,
|
|
1207
1224
|
context
|
|
1208
|
-
}:
|
|
1209
|
-
|
|
1225
|
+
}: GenerateVerbOptionsParams): Promise<GeneratorVerbOptions>;
|
|
1226
|
+
interface GenerateVerbsOptionsParams {
|
|
1227
|
+
verbs: OpenApiPathItemObject;
|
|
1210
1228
|
input: NormalizedInputOptions;
|
|
1211
1229
|
output: NormalizedOutputOptions;
|
|
1212
1230
|
route: string;
|
|
1213
1231
|
pathRoute: string;
|
|
1214
|
-
context:
|
|
1215
|
-
}
|
|
1216
|
-
declare
|
|
1232
|
+
context: ContextSpec;
|
|
1233
|
+
}
|
|
1234
|
+
declare function generateVerbsOptions({
|
|
1235
|
+
verbs,
|
|
1236
|
+
input,
|
|
1237
|
+
output,
|
|
1238
|
+
route,
|
|
1239
|
+
pathRoute,
|
|
1240
|
+
context
|
|
1241
|
+
}: GenerateVerbsOptionsParams): Promise<GeneratorVerbsOptions>;
|
|
1242
|
+
declare function _filteredVerbs(verbs: OpenApiPathItemObject, filters: NormalizedInputOptions['filters']): [string, any][];
|
|
1217
1243
|
//#endregion
|
|
1218
1244
|
//#region src/getters/array.d.ts
|
|
1245
|
+
interface GetArrayOptions {
|
|
1246
|
+
schema: OpenApiSchemaObject;
|
|
1247
|
+
name?: string;
|
|
1248
|
+
context: ContextSpec;
|
|
1249
|
+
}
|
|
1219
1250
|
/**
|
|
1220
1251
|
* Return the output type from an array
|
|
1221
1252
|
*
|
|
1222
1253
|
* @param item item with type === "array"
|
|
1223
1254
|
*/
|
|
1224
|
-
declare
|
|
1255
|
+
declare function getArray({
|
|
1225
1256
|
schema,
|
|
1226
1257
|
name,
|
|
1227
1258
|
context
|
|
1228
|
-
}:
|
|
1229
|
-
schema: SchemaObject;
|
|
1230
|
-
name?: string;
|
|
1231
|
-
context: ContextSpecs;
|
|
1232
|
-
}) => ScalarValue;
|
|
1259
|
+
}: GetArrayOptions): ScalarValue;
|
|
1233
1260
|
//#endregion
|
|
1234
1261
|
//#region src/getters/body.d.ts
|
|
1235
|
-
|
|
1262
|
+
interface GetBodyOptions {
|
|
1263
|
+
requestBody: OpenApiReferenceObject | OpenApiRequestBodyObject;
|
|
1264
|
+
operationName: string;
|
|
1265
|
+
context: ContextSpec;
|
|
1266
|
+
contentType?: OverrideOutputContentType;
|
|
1267
|
+
}
|
|
1268
|
+
declare function getBody({
|
|
1236
1269
|
requestBody,
|
|
1237
1270
|
operationName,
|
|
1238
1271
|
context,
|
|
1239
1272
|
contentType
|
|
1240
|
-
}:
|
|
1241
|
-
requestBody: ReferenceObject | RequestBodyObject;
|
|
1242
|
-
operationName: string;
|
|
1243
|
-
context: ContextSpecs;
|
|
1244
|
-
contentType?: OverrideOutputContentType;
|
|
1245
|
-
}) => GetterBody;
|
|
1273
|
+
}: GetBodyOptions): GetterBody;
|
|
1246
1274
|
//#endregion
|
|
1247
1275
|
//#region src/getters/combine.d.ts
|
|
1248
1276
|
type Separator = 'allOf' | 'anyOf' | 'oneOf';
|
|
1249
|
-
declare
|
|
1277
|
+
declare function combineSchemas({
|
|
1250
1278
|
name,
|
|
1251
1279
|
schema,
|
|
1252
1280
|
separator,
|
|
@@ -1254,53 +1282,55 @@ declare const combineSchemas: ({
|
|
|
1254
1282
|
nullable
|
|
1255
1283
|
}: {
|
|
1256
1284
|
name?: string;
|
|
1257
|
-
schema:
|
|
1285
|
+
schema: OpenApiSchemaObject;
|
|
1258
1286
|
separator: Separator;
|
|
1259
|
-
context:
|
|
1287
|
+
context: ContextSpec;
|
|
1260
1288
|
nullable: string;
|
|
1261
|
-
})
|
|
1289
|
+
}): ScalarValue;
|
|
1262
1290
|
//#endregion
|
|
1263
1291
|
//#region src/getters/discriminators.d.ts
|
|
1264
|
-
declare
|
|
1292
|
+
declare function resolveDiscriminators(schemas: OpenApiSchemasObject, context: ContextSpec): OpenApiSchemasObject;
|
|
1265
1293
|
//#endregion
|
|
1266
1294
|
//#region src/getters/enum.d.ts
|
|
1267
|
-
declare
|
|
1268
|
-
declare
|
|
1269
|
-
declare
|
|
1270
|
-
declare
|
|
1295
|
+
declare function getEnumNames(schemaObject: OpenApiSchemaObject | undefined): any;
|
|
1296
|
+
declare function getEnumDescriptions(schemaObject: OpenApiSchemaObject | undefined): any;
|
|
1297
|
+
declare function getEnum(value: string, enumName: string, names: string[] | undefined, enumGenerationType: EnumGeneration, descriptions?: string[], enumNamingConvention?: NamingConvention): string;
|
|
1298
|
+
declare function getEnumImplementation(value: string, names?: string[], descriptions?: string[], enumNamingConvention?: NamingConvention): string;
|
|
1271
1299
|
//#endregion
|
|
1272
1300
|
//#region src/getters/keys.d.ts
|
|
1273
|
-
declare
|
|
1301
|
+
declare function getKey(key: string): string;
|
|
1274
1302
|
//#endregion
|
|
1275
1303
|
//#region src/getters/object.d.ts
|
|
1304
|
+
interface GetObjectOptions {
|
|
1305
|
+
item: OpenApiSchemaObject;
|
|
1306
|
+
name?: string;
|
|
1307
|
+
context: ContextSpec;
|
|
1308
|
+
nullable: string;
|
|
1309
|
+
}
|
|
1276
1310
|
/**
|
|
1277
1311
|
* Return the output type from an object
|
|
1278
1312
|
*
|
|
1279
1313
|
* @param item item with type === "object"
|
|
1280
1314
|
*/
|
|
1281
|
-
declare
|
|
1315
|
+
declare function getObject({
|
|
1282
1316
|
item,
|
|
1283
1317
|
name,
|
|
1284
1318
|
context,
|
|
1285
1319
|
nullable
|
|
1286
|
-
}:
|
|
1287
|
-
item: SchemaObject;
|
|
1288
|
-
name?: string;
|
|
1289
|
-
context: ContextSpecs;
|
|
1290
|
-
nullable: string;
|
|
1291
|
-
}) => ScalarValue;
|
|
1320
|
+
}: GetObjectOptions): ScalarValue;
|
|
1292
1321
|
//#endregion
|
|
1293
1322
|
//#region src/getters/operation.d.ts
|
|
1294
|
-
declare
|
|
1323
|
+
declare function getOperationId(operation: OpenApiOperationObject, route: string, verb: Verbs): string;
|
|
1295
1324
|
//#endregion
|
|
1296
1325
|
//#region src/getters/parameters.d.ts
|
|
1297
|
-
|
|
1326
|
+
interface GetParametersOptions {
|
|
1327
|
+
parameters: (OpenApiReferenceObject | OpenApiParameterObject)[];
|
|
1328
|
+
context: ContextSpec;
|
|
1329
|
+
}
|
|
1330
|
+
declare function getParameters({
|
|
1298
1331
|
parameters,
|
|
1299
1332
|
context
|
|
1300
|
-
}:
|
|
1301
|
-
parameters: (ReferenceObject | ParameterObject)[];
|
|
1302
|
-
context: ContextSpecs;
|
|
1303
|
-
}) => GetterParameters;
|
|
1333
|
+
}: GetParametersOptions): GetterParameters;
|
|
1304
1334
|
//#endregion
|
|
1305
1335
|
//#region src/getters/params.d.ts
|
|
1306
1336
|
/**
|
|
@@ -1313,50 +1343,53 @@ declare const getParameters: ({
|
|
|
1313
1343
|
* ```
|
|
1314
1344
|
* @param path
|
|
1315
1345
|
*/
|
|
1316
|
-
declare
|
|
1317
|
-
|
|
1346
|
+
declare function getParamsInPath(path: string): string[];
|
|
1347
|
+
interface GetParamsOptions {
|
|
1348
|
+
route: string;
|
|
1349
|
+
pathParams?: GetterParameters['query'];
|
|
1350
|
+
operationId: string;
|
|
1351
|
+
context: ContextSpec;
|
|
1352
|
+
output: NormalizedOutputOptions;
|
|
1353
|
+
}
|
|
1354
|
+
declare function getParams({
|
|
1318
1355
|
route,
|
|
1319
1356
|
pathParams,
|
|
1320
1357
|
operationId,
|
|
1321
1358
|
context,
|
|
1322
1359
|
output
|
|
1323
|
-
}:
|
|
1324
|
-
route: string;
|
|
1325
|
-
pathParams?: GetterParameters["query"];
|
|
1326
|
-
operationId: string;
|
|
1327
|
-
context: ContextSpecs;
|
|
1328
|
-
output: NormalizedOutputOptions;
|
|
1329
|
-
}) => GetterParams;
|
|
1360
|
+
}: GetParamsOptions): GetterParams;
|
|
1330
1361
|
//#endregion
|
|
1331
1362
|
//#region src/getters/props.d.ts
|
|
1332
|
-
|
|
1363
|
+
interface GetPropsOptions {
|
|
1364
|
+
body: GetterBody;
|
|
1365
|
+
queryParams?: GetterQueryParam;
|
|
1366
|
+
params: GetterParams;
|
|
1367
|
+
operationName: string;
|
|
1368
|
+
headers?: GetterQueryParam;
|
|
1369
|
+
context: ContextSpec;
|
|
1370
|
+
}
|
|
1371
|
+
declare function getProps({
|
|
1333
1372
|
body,
|
|
1334
1373
|
queryParams,
|
|
1335
1374
|
params,
|
|
1336
1375
|
operationName,
|
|
1337
1376
|
headers,
|
|
1338
1377
|
context
|
|
1339
|
-
}:
|
|
1340
|
-
body: GetterBody;
|
|
1341
|
-
queryParams?: GetterQueryParam;
|
|
1342
|
-
params: GetterParams;
|
|
1343
|
-
operationName: string;
|
|
1344
|
-
headers?: GetterQueryParam;
|
|
1345
|
-
context: ContextSpecs;
|
|
1346
|
-
}) => GetterProps;
|
|
1378
|
+
}: GetPropsOptions): GetterProps;
|
|
1347
1379
|
//#endregion
|
|
1348
1380
|
//#region src/getters/query-params.d.ts
|
|
1349
|
-
|
|
1381
|
+
interface GetQueryParamsOptions {
|
|
1382
|
+
queryParams: GetterParameters['query'];
|
|
1383
|
+
operationName: string;
|
|
1384
|
+
context: ContextSpec;
|
|
1385
|
+
suffix?: string;
|
|
1386
|
+
}
|
|
1387
|
+
declare function getQueryParams({
|
|
1350
1388
|
queryParams,
|
|
1351
1389
|
operationName,
|
|
1352
1390
|
context,
|
|
1353
1391
|
suffix
|
|
1354
|
-
}:
|
|
1355
|
-
queryParams: GetterParameters["query"];
|
|
1356
|
-
operationName: string;
|
|
1357
|
-
context: ContextSpecs;
|
|
1358
|
-
suffix?: string;
|
|
1359
|
-
}) => GetterQueryParam | undefined;
|
|
1392
|
+
}: GetQueryParamsOptions): GetterQueryParam | undefined;
|
|
1360
1393
|
//#endregion
|
|
1361
1394
|
//#region src/getters/ref.d.ts
|
|
1362
1395
|
type RefComponent = 'schemas' | 'responses' | 'parameters' | 'requestBodies';
|
|
@@ -1371,86 +1404,88 @@ interface RefInfo {
|
|
|
1371
1404
|
name: string;
|
|
1372
1405
|
originalName: string;
|
|
1373
1406
|
refPaths?: string[];
|
|
1374
|
-
specKey?: string;
|
|
1375
1407
|
}
|
|
1376
1408
|
/**
|
|
1377
1409
|
* Return the output type from the $ref
|
|
1378
1410
|
*
|
|
1379
1411
|
* @param $ref
|
|
1380
1412
|
*/
|
|
1381
|
-
declare
|
|
1413
|
+
declare function getRefInfo($ref: string, context: ContextSpec): RefInfo;
|
|
1382
1414
|
//#endregion
|
|
1383
1415
|
//#region src/getters/res-req-types.d.ts
|
|
1384
|
-
declare
|
|
1416
|
+
declare function getResReqTypes(responsesOrRequests: [string, OpenApiReferenceObject | OpenApiResponseObject | OpenApiRequestBodyObject][], name: string, context: ContextSpec, defaultType?: string, uniqueKey?: (item: ResReqTypesValue, index: number, data: ResReqTypesValue[]) => unknown): ResReqTypesValue[];
|
|
1385
1417
|
//#endregion
|
|
1386
1418
|
//#region src/getters/response.d.ts
|
|
1387
|
-
|
|
1419
|
+
interface GetResponseOptions {
|
|
1420
|
+
responses: OpenApiResponsesObject;
|
|
1421
|
+
operationName: string;
|
|
1422
|
+
context: ContextSpec;
|
|
1423
|
+
contentType?: OverrideOutputContentType;
|
|
1424
|
+
}
|
|
1425
|
+
declare function getResponse({
|
|
1388
1426
|
responses,
|
|
1389
1427
|
operationName,
|
|
1390
1428
|
context,
|
|
1391
1429
|
contentType
|
|
1392
|
-
}:
|
|
1393
|
-
responses: ResponsesObject;
|
|
1394
|
-
operationName: string;
|
|
1395
|
-
context: ContextSpecs;
|
|
1396
|
-
contentType?: OverrideOutputContentType;
|
|
1397
|
-
}) => GetterResponse;
|
|
1430
|
+
}: GetResponseOptions): GetterResponse;
|
|
1398
1431
|
//#endregion
|
|
1399
1432
|
//#region src/getters/route.d.ts
|
|
1400
|
-
declare
|
|
1401
|
-
declare
|
|
1402
|
-
declare
|
|
1433
|
+
declare function getRoute(route: string): string;
|
|
1434
|
+
declare function getFullRoute(route: string, servers: OpenApiServerObject[] | undefined, baseUrl: string | BaseUrlFromConstant | BaseUrlFromSpec | undefined): string;
|
|
1435
|
+
declare function getRouteAsArray(route: string): string;
|
|
1403
1436
|
//#endregion
|
|
1404
1437
|
//#region src/getters/scalar.d.ts
|
|
1438
|
+
interface GetScalarOptions {
|
|
1439
|
+
item: OpenApiSchemaObject;
|
|
1440
|
+
name?: string;
|
|
1441
|
+
context: ContextSpec;
|
|
1442
|
+
}
|
|
1405
1443
|
/**
|
|
1406
1444
|
* Return the typescript equivalent of open-api data type
|
|
1407
1445
|
*
|
|
1408
1446
|
* @param item
|
|
1409
|
-
* @ref https://github.com/OAI/OpenAPI-Specification/blob/
|
|
1447
|
+
* @ref https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.1.md#data-types
|
|
1410
1448
|
*/
|
|
1411
|
-
declare
|
|
1449
|
+
declare function getScalar({
|
|
1412
1450
|
item,
|
|
1413
1451
|
name,
|
|
1414
1452
|
context
|
|
1415
|
-
}:
|
|
1416
|
-
item: SchemaObject;
|
|
1417
|
-
name?: string;
|
|
1418
|
-
context: ContextSpecs;
|
|
1419
|
-
}) => ScalarValue;
|
|
1453
|
+
}: GetScalarOptions): ScalarValue;
|
|
1420
1454
|
//#endregion
|
|
1421
1455
|
//#region src/resolvers/object.d.ts
|
|
1422
|
-
|
|
1456
|
+
interface ResolveOptions {
|
|
1457
|
+
schema: OpenApiSchemaObject | OpenApiReferenceObject;
|
|
1458
|
+
propName?: string;
|
|
1459
|
+
combined?: boolean;
|
|
1460
|
+
context: ContextSpec;
|
|
1461
|
+
}
|
|
1462
|
+
declare function resolveObject({
|
|
1423
1463
|
schema,
|
|
1424
1464
|
propName,
|
|
1425
1465
|
combined,
|
|
1426
1466
|
context
|
|
1427
|
-
}:
|
|
1428
|
-
schema: SchemaObject | ReferenceObject;
|
|
1429
|
-
propName?: string;
|
|
1430
|
-
combined?: boolean;
|
|
1431
|
-
context: ContextSpecs;
|
|
1432
|
-
}) => ResolverValue;
|
|
1467
|
+
}: ResolveOptions): ResolverValue;
|
|
1433
1468
|
//#endregion
|
|
1434
1469
|
//#region src/resolvers/ref.d.ts
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
schema: Schema;
|
|
1470
|
+
declare function resolveRef<TSchema extends OpenApiComponentsObject = OpenApiComponentsObject>(schema: OpenApiComponentsObject, context: ContextSpec, imports?: GeneratorImport[]): {
|
|
1471
|
+
schema: TSchema;
|
|
1438
1472
|
imports: GeneratorImport[];
|
|
1439
1473
|
};
|
|
1440
|
-
type Example =
|
|
1474
|
+
type Example = OpenApiExampleObject | OpenApiReferenceObject;
|
|
1441
1475
|
type Examples = Example[] | Record<string, Example> | undefined;
|
|
1442
|
-
declare
|
|
1476
|
+
declare function resolveExampleRefs(examples: Examples, context: ContextSpec): Examples;
|
|
1443
1477
|
//#endregion
|
|
1444
1478
|
//#region src/resolvers/value.d.ts
|
|
1445
|
-
|
|
1479
|
+
interface ResolveValueOptions {
|
|
1480
|
+
schema: OpenApiSchemaObject | OpenApiReferenceObject;
|
|
1481
|
+
name?: string;
|
|
1482
|
+
context: ContextSpec;
|
|
1483
|
+
}
|
|
1484
|
+
declare function resolveValue({
|
|
1446
1485
|
schema,
|
|
1447
1486
|
name,
|
|
1448
1487
|
context
|
|
1449
|
-
}:
|
|
1450
|
-
schema: SchemaObject | ReferenceObject;
|
|
1451
|
-
name?: string;
|
|
1452
|
-
context: ContextSpecs;
|
|
1453
|
-
}) => ResolverValue;
|
|
1488
|
+
}: ResolveValueOptions): ResolverValue;
|
|
1454
1489
|
//#endregion
|
|
1455
1490
|
//#region src/utils/assertion.d.ts
|
|
1456
1491
|
/**
|
|
@@ -1458,8 +1493,8 @@ declare const resolveValue: ({
|
|
|
1458
1493
|
*
|
|
1459
1494
|
* @param property
|
|
1460
1495
|
*/
|
|
1461
|
-
declare
|
|
1462
|
-
declare
|
|
1496
|
+
declare function isReference(obj: object): obj is OpenApiReferenceObject;
|
|
1497
|
+
declare function isDirectory(path: string): boolean;
|
|
1463
1498
|
declare function isObject(x: any): x is Record<string, unknown>;
|
|
1464
1499
|
declare function isModule(x: any): x is Record<string, unknown>;
|
|
1465
1500
|
declare function isString(x: any): x is string;
|
|
@@ -1469,24 +1504,23 @@ declare function isBoolean(x: any): x is boolean;
|
|
|
1469
1504
|
declare function isFunction(x: any): x is Function;
|
|
1470
1505
|
declare function isUndefined(x: any): x is undefined;
|
|
1471
1506
|
declare function isNull(x: any): x is null;
|
|
1472
|
-
declare function isSchema(x:
|
|
1473
|
-
declare
|
|
1474
|
-
declare
|
|
1475
|
-
declare const isUrl: (str: string) => boolean;
|
|
1507
|
+
declare function isSchema(x: unknown): x is OpenApiSchemaObject;
|
|
1508
|
+
declare function isVerb(verb: string): verb is Verbs;
|
|
1509
|
+
declare function isUrl(str: string): boolean;
|
|
1476
1510
|
//#endregion
|
|
1477
1511
|
//#region src/utils/async-reduce.d.ts
|
|
1478
1512
|
declare function asyncReduce<IterationItem, AccValue>(array: IterationItem[], reducer: (accumulate: AccValue, current: IterationItem) => AccValue | Promise<AccValue>, initValue: AccValue): Promise<AccValue>;
|
|
1479
1513
|
//#endregion
|
|
1480
1514
|
//#region src/utils/case.d.ts
|
|
1481
|
-
declare
|
|
1482
|
-
declare
|
|
1483
|
-
declare
|
|
1484
|
-
declare
|
|
1485
|
-
declare
|
|
1486
|
-
declare
|
|
1515
|
+
declare function pascal(s: string): string;
|
|
1516
|
+
declare function camel(s: string): string;
|
|
1517
|
+
declare function snake(s: string): string;
|
|
1518
|
+
declare function kebab(s: string): string;
|
|
1519
|
+
declare function upper(s: string, fillWith: string, isDeapostrophe?: boolean): string;
|
|
1520
|
+
declare function conventionName(name: string, convention: NamingConvention): string;
|
|
1487
1521
|
//#endregion
|
|
1488
1522
|
//#region src/utils/compare-version.d.ts
|
|
1489
|
-
declare
|
|
1523
|
+
declare function compareVersions(firstVersion: string, secondVersions: string, operator?: CompareOperator): boolean;
|
|
1490
1524
|
//#endregion
|
|
1491
1525
|
//#region src/utils/debug.d.ts
|
|
1492
1526
|
interface DebuggerOptions {
|
|
@@ -1506,32 +1540,32 @@ declare function jsDoc(schema: {
|
|
|
1506
1540
|
maxLength?: number;
|
|
1507
1541
|
minimum?: number;
|
|
1508
1542
|
maximum?: number;
|
|
1509
|
-
exclusiveMinimum?:
|
|
1510
|
-
exclusiveMaximum?:
|
|
1543
|
+
exclusiveMinimum?: number;
|
|
1544
|
+
exclusiveMaximum?: number;
|
|
1511
1545
|
minItems?: number;
|
|
1512
1546
|
maxItems?: number;
|
|
1513
|
-
|
|
1547
|
+
type?: string | string[];
|
|
1514
1548
|
pattern?: string;
|
|
1515
|
-
}, tryOneLine?: boolean, context?:
|
|
1549
|
+
}, tryOneLine?: boolean, context?: ContextSpec): string;
|
|
1516
1550
|
declare function keyValuePairsToJsDoc(keyValues: {
|
|
1517
1551
|
key: string;
|
|
1518
1552
|
value: string;
|
|
1519
1553
|
}[]): string;
|
|
1520
1554
|
//#endregion
|
|
1521
1555
|
//#region src/utils/dynamic-import.d.ts
|
|
1522
|
-
declare
|
|
1556
|
+
declare function dynamicImport<T>(toImport: T | string, from?: string, takeDefault?: boolean): Promise<T>;
|
|
1523
1557
|
//#endregion
|
|
1524
1558
|
//#region src/utils/extension.d.ts
|
|
1525
|
-
declare
|
|
1559
|
+
declare function getExtension(path: string): "yaml" | "json";
|
|
1526
1560
|
//#endregion
|
|
1527
1561
|
//#region src/utils/file.d.ts
|
|
1528
|
-
declare
|
|
1562
|
+
declare function getFileInfo(target?: string, {
|
|
1529
1563
|
backupFilename,
|
|
1530
1564
|
extension
|
|
1531
1565
|
}?: {
|
|
1532
1566
|
backupFilename?: string;
|
|
1533
1567
|
extension?: string;
|
|
1534
|
-
})
|
|
1568
|
+
}): {
|
|
1535
1569
|
path: string;
|
|
1536
1570
|
pathWithoutExtension: string;
|
|
1537
1571
|
extension: string;
|
|
@@ -1542,7 +1576,7 @@ declare const getFileInfo: (target?: string, {
|
|
|
1542
1576
|
declare function removeFilesAndEmptyFolders(patterns: string[], dir: string): Promise<void>;
|
|
1543
1577
|
//#endregion
|
|
1544
1578
|
//#region src/utils/file-extensions.d.ts
|
|
1545
|
-
declare
|
|
1579
|
+
declare function getMockFileExtensionByTypeName(mock: GlobalMockOptions | ClientMockBuilder): string;
|
|
1546
1580
|
//#endregion
|
|
1547
1581
|
//#region src/utils/get-property-safe.d.ts
|
|
1548
1582
|
/**
|
|
@@ -1563,11 +1597,11 @@ declare function getPropertySafe<T extends object, K$1 extends keyof T>(obj: T,
|
|
|
1563
1597
|
};
|
|
1564
1598
|
//#endregion
|
|
1565
1599
|
//#region src/utils/is-body-verb.d.ts
|
|
1566
|
-
declare
|
|
1600
|
+
declare function getIsBodyVerb(verb: Verbs): boolean;
|
|
1567
1601
|
//#endregion
|
|
1568
1602
|
//#region src/utils/logger.d.ts
|
|
1569
1603
|
declare const log: (message?: any, ...optionalParams: any[]) => void;
|
|
1570
|
-
declare
|
|
1604
|
+
declare function startMessage({
|
|
1571
1605
|
name,
|
|
1572
1606
|
version,
|
|
1573
1607
|
description
|
|
@@ -1575,18 +1609,10 @@ declare const startMessage: ({
|
|
|
1575
1609
|
name: string;
|
|
1576
1610
|
version: string;
|
|
1577
1611
|
description: string;
|
|
1578
|
-
})
|
|
1579
|
-
declare
|
|
1580
|
-
declare
|
|
1581
|
-
declare
|
|
1582
|
-
declare const ibmOpenapiValidatorWarnings: (warnings: {
|
|
1583
|
-
path: string[];
|
|
1584
|
-
message: string;
|
|
1585
|
-
}[]) => void;
|
|
1586
|
-
declare const ibmOpenapiValidatorErrors: (errors: {
|
|
1587
|
-
path: string[];
|
|
1588
|
-
message: string;
|
|
1589
|
-
}[]) => void;
|
|
1612
|
+
}): string;
|
|
1613
|
+
declare function logError(err: unknown, tag?: string): void;
|
|
1614
|
+
declare function mismatchArgsMessage(mismatchArgs: string[]): void;
|
|
1615
|
+
declare function createSuccessMessage(backend?: string): void;
|
|
1590
1616
|
type LogType = 'error' | 'warn' | 'info';
|
|
1591
1617
|
type LogLevel = LogType | 'silent';
|
|
1592
1618
|
interface Logger {
|
|
@@ -1612,23 +1638,19 @@ declare function createLogger(level?: LogLevel, options?: LoggerOptions): Logger
|
|
|
1612
1638
|
declare function mergeDeep<T extends Record<string, any>, U$1 extends Record<string, any>>(source: T, target: U$1): T & U$1;
|
|
1613
1639
|
//#endregion
|
|
1614
1640
|
//#region src/utils/occurrence.d.ts
|
|
1615
|
-
declare
|
|
1616
|
-
//#endregion
|
|
1617
|
-
//#region src/utils/open-api-converter.d.ts
|
|
1618
|
-
declare const openApiConverter: (schema: any, options: Partial<ConvertInputOptions> | undefined, specKey: string) => Promise<OpenAPIObject>;
|
|
1641
|
+
declare function count(str: string | undefined, key: string): number;
|
|
1619
1642
|
declare namespace path_d_exports {
|
|
1620
|
-
export { basename, dirname, extname, getSchemaFileName,
|
|
1643
|
+
export { basename, dirname, extname, getSchemaFileName, isAbsolute, join, joinSafe, normalizeSafe, relativeSafe, resolve, separator$1 as separator };
|
|
1621
1644
|
}
|
|
1622
1645
|
declare const join: (...paths: string[]) => string, resolve: (...paths: string[]) => string, extname: (path: string) => string, dirname: (path: string) => string, basename: (path: string, suffix?: string) => string, isAbsolute: (path: string) => boolean;
|
|
1623
1646
|
/**
|
|
1624
1647
|
* Behaves exactly like `path.relative(from, to)`, but keeps the first meaningful "./"
|
|
1625
1648
|
*/
|
|
1626
|
-
declare
|
|
1627
|
-
declare
|
|
1628
|
-
declare const getSchemaFileName: (path: string) => string;
|
|
1649
|
+
declare function relativeSafe(from: string, to: string): string;
|
|
1650
|
+
declare function getSchemaFileName(path: string): string;
|
|
1629
1651
|
declare const separator$1 = "/";
|
|
1630
|
-
declare
|
|
1631
|
-
declare
|
|
1652
|
+
declare function normalizeSafe(value: string): string;
|
|
1653
|
+
declare function joinSafe(...values: string[]): string;
|
|
1632
1654
|
//#endregion
|
|
1633
1655
|
//#region src/utils/sort.d.ts
|
|
1634
1656
|
declare const sortByPriority: <T>(arr: (T & {
|
|
@@ -1640,8 +1662,8 @@ declare const sortByPriority: <T>(arr: (T & {
|
|
|
1640
1662
|
})[];
|
|
1641
1663
|
//#endregion
|
|
1642
1664
|
//#region src/utils/string.d.ts
|
|
1643
|
-
declare
|
|
1644
|
-
declare
|
|
1665
|
+
declare function stringify(data?: string | any[] | Record<string, any>): string | undefined;
|
|
1666
|
+
declare function sanitize(value: string, options?: {
|
|
1645
1667
|
whitespace?: string | true;
|
|
1646
1668
|
underscore?: string | true;
|
|
1647
1669
|
dot?: string | true;
|
|
@@ -1649,10 +1671,10 @@ declare const sanitize: (value: string, options?: {
|
|
|
1649
1671
|
es5keyword?: boolean;
|
|
1650
1672
|
es5IdentifierName?: boolean;
|
|
1651
1673
|
special?: boolean;
|
|
1652
|
-
})
|
|
1653
|
-
declare
|
|
1654
|
-
declare
|
|
1655
|
-
declare
|
|
1674
|
+
}): string;
|
|
1675
|
+
declare function toObjectString<T>(props: T[], path?: keyof T): string;
|
|
1676
|
+
declare function getNumberWord(num: number): string;
|
|
1677
|
+
declare function escape(str: string | null, char?: string): string | undefined;
|
|
1656
1678
|
/**
|
|
1657
1679
|
* Escape all characters not included in SingleStringCharacters and
|
|
1658
1680
|
* DoubleStringCharacters on
|
|
@@ -1662,112 +1684,94 @@ declare const escape: (str: string | null, char?: string) => string | undefined;
|
|
|
1662
1684
|
*
|
|
1663
1685
|
* @param input String to escape
|
|
1664
1686
|
*/
|
|
1665
|
-
declare
|
|
1687
|
+
declare function jsStringEscape(input: string): string;
|
|
1666
1688
|
//#endregion
|
|
1667
1689
|
//#region src/utils/tsconfig.d.ts
|
|
1668
|
-
declare
|
|
1669
|
-
//#endregion
|
|
1670
|
-
//#region src/utils/validator.d.ts
|
|
1671
|
-
/**
|
|
1672
|
-
* Validate the spec with ibm-openapi-validator (with a custom pretty logger).
|
|
1673
|
-
* More information: https://github.com/IBM/openapi-validator/#configuration
|
|
1674
|
-
* @param specs openAPI spec
|
|
1675
|
-
*/
|
|
1676
|
-
declare const ibmOpenapiValidator: (specs: OpenAPIObject, validation: boolean | object) => Promise<void>;
|
|
1690
|
+
declare function isSyntheticDefaultImportsAllow(config?: Tsconfig): boolean;
|
|
1677
1691
|
//#endregion
|
|
1678
1692
|
//#region src/writers/schemas.d.ts
|
|
1679
|
-
declare
|
|
1680
|
-
declare
|
|
1681
|
-
|
|
1693
|
+
declare function writeModelInline(acc: string, model: string): string;
|
|
1694
|
+
declare function writeModelsInline(array: GeneratorSchema[]): string;
|
|
1695
|
+
interface WriteSchemaOptions {
|
|
1696
|
+
path: string;
|
|
1697
|
+
schema: GeneratorSchema;
|
|
1698
|
+
target: string;
|
|
1699
|
+
namingConvention: NamingConvention;
|
|
1700
|
+
fileExtension: string;
|
|
1701
|
+
header: string;
|
|
1702
|
+
}
|
|
1703
|
+
declare function writeSchema({
|
|
1682
1704
|
path,
|
|
1683
1705
|
schema,
|
|
1684
1706
|
target,
|
|
1685
1707
|
namingConvention,
|
|
1686
1708
|
fileExtension,
|
|
1687
|
-
specKey,
|
|
1688
|
-
isRootKey,
|
|
1689
|
-
specsName,
|
|
1690
1709
|
header
|
|
1691
|
-
}:
|
|
1692
|
-
|
|
1693
|
-
|
|
1710
|
+
}: WriteSchemaOptions): Promise<void>;
|
|
1711
|
+
interface WriteSchemasOptions {
|
|
1712
|
+
schemaPath: string;
|
|
1713
|
+
schemas: GeneratorSchema[];
|
|
1694
1714
|
target: string;
|
|
1695
1715
|
namingConvention: NamingConvention;
|
|
1696
1716
|
fileExtension: string;
|
|
1697
|
-
specKey: string;
|
|
1698
|
-
isRootKey: boolean;
|
|
1699
|
-
specsName: Record<string, string>;
|
|
1700
1717
|
header: string;
|
|
1701
|
-
|
|
1702
|
-
|
|
1718
|
+
indexFiles: boolean;
|
|
1719
|
+
}
|
|
1720
|
+
declare function writeSchemas({
|
|
1703
1721
|
schemaPath,
|
|
1704
1722
|
schemas,
|
|
1705
1723
|
target,
|
|
1706
1724
|
namingConvention,
|
|
1707
1725
|
fileExtension,
|
|
1708
|
-
specKey,
|
|
1709
|
-
isRootKey,
|
|
1710
|
-
specsName,
|
|
1711
1726
|
header,
|
|
1712
1727
|
indexFiles
|
|
1713
|
-
}:
|
|
1714
|
-
schemaPath: string;
|
|
1715
|
-
schemas: GeneratorSchema[];
|
|
1716
|
-
target: string;
|
|
1717
|
-
namingConvention: NamingConvention;
|
|
1718
|
-
fileExtension: string;
|
|
1719
|
-
specKey: string;
|
|
1720
|
-
isRootKey: boolean;
|
|
1721
|
-
specsName: Record<string, string>;
|
|
1722
|
-
header: string;
|
|
1723
|
-
indexFiles: boolean;
|
|
1724
|
-
}) => Promise<void>;
|
|
1728
|
+
}: WriteSchemasOptions): Promise<void>;
|
|
1725
1729
|
//#endregion
|
|
1726
1730
|
//#region src/writers/single-mode.d.ts
|
|
1727
|
-
declare
|
|
1731
|
+
declare function writeSingleMode({
|
|
1728
1732
|
builder,
|
|
1729
1733
|
output,
|
|
1730
|
-
|
|
1734
|
+
projectName,
|
|
1731
1735
|
header,
|
|
1732
1736
|
needSchema
|
|
1733
|
-
}: WriteModeProps)
|
|
1737
|
+
}: WriteModeProps): Promise<string[]>;
|
|
1734
1738
|
//#endregion
|
|
1735
1739
|
//#region src/writers/split-mode.d.ts
|
|
1736
|
-
declare
|
|
1740
|
+
declare function writeSplitMode({
|
|
1737
1741
|
builder,
|
|
1738
1742
|
output,
|
|
1739
|
-
|
|
1743
|
+
projectName,
|
|
1740
1744
|
header,
|
|
1741
1745
|
needSchema
|
|
1742
|
-
}: WriteModeProps)
|
|
1746
|
+
}: WriteModeProps): Promise<string[]>;
|
|
1743
1747
|
//#endregion
|
|
1744
1748
|
//#region src/writers/split-tags-mode.d.ts
|
|
1745
|
-
declare
|
|
1749
|
+
declare function writeSplitTagsMode({
|
|
1746
1750
|
builder,
|
|
1747
1751
|
output,
|
|
1748
|
-
|
|
1752
|
+
projectName,
|
|
1749
1753
|
header,
|
|
1750
1754
|
needSchema
|
|
1751
|
-
}: WriteModeProps)
|
|
1755
|
+
}: WriteModeProps): Promise<string[]>;
|
|
1752
1756
|
//#endregion
|
|
1753
1757
|
//#region src/writers/tags-mode.d.ts
|
|
1754
|
-
declare
|
|
1758
|
+
declare function writeTagsMode({
|
|
1755
1759
|
builder,
|
|
1756
1760
|
output,
|
|
1757
|
-
|
|
1761
|
+
projectName,
|
|
1758
1762
|
header,
|
|
1759
1763
|
needSchema
|
|
1760
|
-
}: WriteModeProps)
|
|
1764
|
+
}: WriteModeProps): Promise<string[]>;
|
|
1761
1765
|
//#endregion
|
|
1762
1766
|
//#region src/writers/target.d.ts
|
|
1763
|
-
declare
|
|
1767
|
+
declare function generateTarget(builder: WriteSpecBuilder, options: NormalizedOutputOptions): GeneratorTarget;
|
|
1764
1768
|
//#endregion
|
|
1765
1769
|
//#region src/writers/target-tags.d.ts
|
|
1766
|
-
declare
|
|
1770
|
+
declare function generateTargetForTags(builder: WriteSpecBuilder, options: NormalizedOutputOptions): Record<string, GeneratorTarget>;
|
|
1767
1771
|
//#endregion
|
|
1768
1772
|
//#region src/writers/types.d.ts
|
|
1769
|
-
declare
|
|
1770
|
-
declare
|
|
1773
|
+
declare function getOrvalGeneratedTypes(): string;
|
|
1774
|
+
declare function getTypedResponse(): string;
|
|
1771
1775
|
//#endregion
|
|
1772
|
-
export { AngularOptions, BODY_TYPE_NAME, BaseUrlFromConstant, BaseUrlFromSpec, ClientBuilder, ClientDependenciesBuilder, ClientExtraFilesBuilder, ClientFileBuilder, ClientFooterBuilder, ClientGeneratorsBuilder, ClientHeaderBuilder, ClientMockBuilder, ClientMockGeneratorBuilder, ClientMockGeneratorImplementation, ClientTitleBuilder, Config, ConfigExternal, ConfigFn,
|
|
1776
|
+
export { AngularOptions, BODY_TYPE_NAME, BaseUrlFromConstant, BaseUrlFromSpec, ClientBuilder, ClientDependenciesBuilder, ClientExtraFilesBuilder, ClientFileBuilder, ClientFooterBuilder, ClientGeneratorsBuilder, ClientHeaderBuilder, ClientMockBuilder, ClientMockGeneratorBuilder, ClientMockGeneratorImplementation, ClientTitleBuilder, Config, ConfigExternal, ConfigFn, ContextSpec, DeepNonNullable, EnumGeneration, ErrorWithTag, FetchOptions, FormDataArrayHandling, FormDataType, GenerateMockImports, GenerateVerbOptionsParams, GenerateVerbsOptionsParams, GeneratorApiBuilder, GeneratorApiOperations, GeneratorApiResponse, GeneratorClient, GeneratorClientExtra, GeneratorClientFooter, GeneratorClientHeader, GeneratorClientImports, GeneratorClientTitle, GeneratorClients, GeneratorDependency, GeneratorImport, GeneratorMutator, GeneratorMutatorParsingInfo, GeneratorOperation, GeneratorOperations, GeneratorOptions, GeneratorSchema, GeneratorTarget, GeneratorTargetFull, GeneratorVerbOptions, GeneratorVerbsOptions, GetterBody, GetterParam, GetterParameters, GetterParams, GetterProp, GetterPropType, GetterProps, GetterQueryParam, GetterResponse, GlobalMockOptions, GlobalOptions, HonoOptions, Hook, HookCommand, HookFunction, HookOption, HooksOptions, ImportOpenApi, InputFiltersOptions, InputOptions, InputTransformerFn, JsDocOptions, LogLevel, LogLevels, LogOptions, LogType, Logger, LoggerOptions, MockData, MockDataArray, MockDataArrayFn, MockDataObject, MockDataObjectFn, MockOptions, MockProperties, MockPropertiesObject, MockPropertiesObjectFn, Mutator, MutatorObject, NamingConvention, NormalizedConfig, NormalizedFetchOptions, NormalizedFormDataType, NormalizedHonoOptions, NormalizedHookCommand, NormalizedHookOptions, NormalizedInputOptions, NormalizedJsDocOptions, NormalizedMutator, NormalizedOperationOptions, NormalizedOptions, NormalizedOutputOptions, NormalizedOverrideOutput, NormalizedParamsSerializerOptions, NormalizedQueryOptions, NormalizedZodOptions, OpenApiComponentsObject, OpenApiDocument, OpenApiExampleObject, OpenApiInfoObject, OpenApiMediaTypeObject, OpenApiOperationObject, OpenApiParameterObject, OpenApiPathItemObject, OpenApiPathsObject, OpenApiReferenceObject, OpenApiRequestBodyObject, OpenApiResponseObject, OpenApiResponsesObject, OpenApiSchemaObject, OpenApiSchemaObjectType, OpenApiSchemasObject, OpenApiServerObject, OperationOptions, Options, OptionsExport, OptionsFn, OutputClient, OutputClientFunc, OutputDocsOptions, OutputHttpClient, OutputMockType, OutputMode, OutputOptions, OverrideInput, OverrideMockOptions, OverrideOutput, OverrideOutputContentType, PackageJson, ParamsSerializerOptions, PropertySortOrder, QueryOptions, RefComponentSuffix, RefInfo, ResReqTypesValue, ResolverValue, ScalarValue, SchemaType, SwrOptions, TEMPLATE_TAG_REGEX, TsConfigTarget, Tsconfig, URL_REGEX, VERBS_WITH_BODY, Verbs, WriteModeProps, WriteSpecBuilder, ZodCoerceType, ZodDateTimeOptions, ZodOptions, ZodTimeOptions, _filteredVerbs, addDependency, asyncReduce, camel, combineSchemas, compareVersions, conventionName, count, createDebugger, createLogger, createSuccessMessage, dynamicImport, escape, generalJSTypes, generalJSTypesWithArray, generateAxiosOptions, generateBodyMutatorConfig, generateBodyOptions, generateComponentDefinition, generateDependencyImports, generateFormDataAndUrlEncodedFunction, generateImports, generateModelInline, generateModelsInline, generateMutator, generateMutatorConfig, generateMutatorImports, generateMutatorRequestOptions, generateOptions, generateParameterDefinition, generateQueryParamsAxiosConfig, generateSchemasDefinition, generateTarget, generateTargetForTags, generateVerbImports, generateVerbOptions, generateVerbsOptions, getArray, getBody, getEnum, getEnumDescriptions, getEnumImplementation, getEnumNames, getExtension, getFileInfo, getFullRoute, getIsBodyVerb, getKey, getMockFileExtensionByTypeName, getNumberWord, getObject, getOperationId, getOrvalGeneratedTypes, getParameters, getParams, getParamsInPath, getPropertySafe, getProps, getQueryParams, getRefInfo, getResReqTypes, getResponse, getRoute, getRouteAsArray, getScalar, getTypedResponse, isBoolean, isDirectory, isFunction, isModule, isNull, isNumber, isNumeric, isObject, isReference, isSchema, isString, isSyntheticDefaultImportsAllow, isUndefined, isUrl, isVerb, jsDoc, jsStringEscape, kebab, keyValuePairsToJsDoc, log, logError, mergeDeep, mismatchArgsMessage, pascal, removeFilesAndEmptyFolders, resolveDiscriminators, resolveExampleRefs, resolveObject, resolveRef, resolveValue, sanitize, snake, sortByPriority, startMessage, stringify, toObjectString, path_d_exports as upath, upper, writeModelInline, writeModelsInline, writeSchema, writeSchemas, writeSingleMode, writeSplitMode, writeSplitTagsMode, writeTagsMode };
|
|
1773
1777
|
//# sourceMappingURL=index.d.mts.map
|