@orval/core 8.2.0 → 8.3.0
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 +71 -36
- package/dist/index.mjs +854 -676
- package/dist/index.mjs.map +1 -1
- package/package.json +5 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isBoolean, isFunction, isNullish, isNumber, isString } from "remeda";
|
|
1
2
|
import { CompareOperator } from "compare-versions";
|
|
2
3
|
import debug from "debug";
|
|
3
4
|
import { allLocales } from "@faker-js/faker";
|
|
@@ -49,7 +50,7 @@ type NormalizedOutputOptions = {
|
|
|
49
50
|
propertySortOrder: PropertySortOrder;
|
|
50
51
|
};
|
|
51
52
|
type NormalizedParamsSerializerOptions = {
|
|
52
|
-
qs?: Record<string,
|
|
53
|
+
qs?: Record<string, unknown>;
|
|
53
54
|
};
|
|
54
55
|
type NormalizedOverrideOutput = {
|
|
55
56
|
title?: (title: string) => string;
|
|
@@ -89,7 +90,7 @@ type NormalizedOverrideOutput = {
|
|
|
89
90
|
zod: NormalizedZodOptions;
|
|
90
91
|
fetch: NormalizedFetchOptions;
|
|
91
92
|
operationName?: (operation: OpenApiOperationObject, route: string, verb: Verbs) => string;
|
|
92
|
-
requestOptions: Record<string,
|
|
93
|
+
requestOptions: Record<string, unknown> | boolean;
|
|
93
94
|
useDates?: boolean;
|
|
94
95
|
useTypeOverInterfaces?: boolean;
|
|
95
96
|
useDeprecatedOperations?: boolean;
|
|
@@ -319,7 +320,7 @@ type MutatorObject = {
|
|
|
319
320
|
};
|
|
320
321
|
type Mutator = string | MutatorObject;
|
|
321
322
|
type ParamsSerializerOptions = {
|
|
322
|
-
qs?: Record<string,
|
|
323
|
+
qs?: Record<string, unknown>;
|
|
323
324
|
};
|
|
324
325
|
declare const FormDataArrayHandling: {
|
|
325
326
|
readonly SERIALIZE: "serialize";
|
|
@@ -381,7 +382,7 @@ type OverrideOutput = {
|
|
|
381
382
|
zod?: ZodOptions;
|
|
382
383
|
operationName?: (operation: OpenApiOperationObject, route: string, verb: Verbs) => string;
|
|
383
384
|
fetch?: FetchOptions;
|
|
384
|
-
requestOptions?: Record<string,
|
|
385
|
+
requestOptions?: Record<string, unknown> | boolean;
|
|
385
386
|
useDates?: boolean;
|
|
386
387
|
useTypeOverInterfaces?: boolean;
|
|
387
388
|
useDeprecatedOperations?: boolean;
|
|
@@ -398,13 +399,13 @@ type OverrideOutput = {
|
|
|
398
399
|
useNullForOptional?: boolean;
|
|
399
400
|
};
|
|
400
401
|
type JsDocOptions = {
|
|
401
|
-
filter?: (schema: Record<string,
|
|
402
|
+
filter?: (schema: Record<string, unknown>) => {
|
|
402
403
|
key: string;
|
|
403
404
|
value: string;
|
|
404
405
|
}[];
|
|
405
406
|
};
|
|
406
407
|
type NormalizedJsDocOptions = {
|
|
407
|
-
filter?: (schema: Record<string,
|
|
408
|
+
filter?: (schema: Record<string, unknown>) => {
|
|
408
409
|
key: string;
|
|
409
410
|
value: string;
|
|
410
411
|
}[];
|
|
@@ -496,7 +497,8 @@ type NormalizedZodOptions = {
|
|
|
496
497
|
};
|
|
497
498
|
type InvalidateTarget = string | {
|
|
498
499
|
query: string;
|
|
499
|
-
params
|
|
500
|
+
params?: string[] | Record<string, string>;
|
|
501
|
+
invalidateMode?: 'invalidate' | 'reset';
|
|
500
502
|
};
|
|
501
503
|
type MutationInvalidatesRule = {
|
|
502
504
|
onMutations: string[];
|
|
@@ -518,7 +520,7 @@ type NormalizedQueryOptions = {
|
|
|
518
520
|
useInfiniteQueryParam?: string;
|
|
519
521
|
usePrefetch?: boolean;
|
|
520
522
|
useInvalidate?: boolean;
|
|
521
|
-
options?:
|
|
523
|
+
options?: Record<string, unknown>;
|
|
522
524
|
queryKey?: NormalizedMutator;
|
|
523
525
|
queryOptions?: NormalizedMutator;
|
|
524
526
|
mutationOptions?: NormalizedMutator;
|
|
@@ -530,6 +532,7 @@ type NormalizedQueryOptions = {
|
|
|
530
532
|
signal?: boolean;
|
|
531
533
|
version?: 3 | 4 | 5;
|
|
532
534
|
mutationInvalidates?: MutationInvalidatesConfig;
|
|
535
|
+
runtimeValidation?: boolean;
|
|
533
536
|
};
|
|
534
537
|
type QueryOptions = {
|
|
535
538
|
useQuery?: boolean;
|
|
@@ -540,7 +543,7 @@ type QueryOptions = {
|
|
|
540
543
|
useInfiniteQueryParam?: string;
|
|
541
544
|
usePrefetch?: boolean;
|
|
542
545
|
useInvalidate?: boolean;
|
|
543
|
-
options?:
|
|
546
|
+
options?: Record<string, unknown>;
|
|
544
547
|
queryKey?: Mutator;
|
|
545
548
|
queryOptions?: Mutator;
|
|
546
549
|
mutationOptions?: Mutator;
|
|
@@ -552,6 +555,7 @@ type QueryOptions = {
|
|
|
552
555
|
signal?: boolean;
|
|
553
556
|
version?: 3 | 4 | 5;
|
|
554
557
|
mutationInvalidates?: MutationInvalidatesConfig;
|
|
558
|
+
runtimeValidation?: boolean;
|
|
555
559
|
};
|
|
556
560
|
type AngularOptions = {
|
|
557
561
|
provideIn?: 'root' | 'any' | boolean;
|
|
@@ -601,7 +605,7 @@ type OperationOptions = {
|
|
|
601
605
|
requestOptions?: object | boolean;
|
|
602
606
|
};
|
|
603
607
|
type Hook = 'afterAllFilesWrite';
|
|
604
|
-
type HookFunction = (...args:
|
|
608
|
+
type HookFunction = (...args: unknown[]) => void | Promise<void>;
|
|
605
609
|
interface HookOption {
|
|
606
610
|
command: string | HookFunction;
|
|
607
611
|
injectGeneratedDirsAndFiles?: boolean;
|
|
@@ -944,8 +948,8 @@ type ScalarValue = {
|
|
|
944
948
|
schemas: GeneratorSchema[];
|
|
945
949
|
isRef: boolean;
|
|
946
950
|
dependencies: string[];
|
|
947
|
-
example?:
|
|
948
|
-
examples?: Record<string,
|
|
951
|
+
example?: unknown;
|
|
952
|
+
examples?: Record<string, unknown>;
|
|
949
953
|
};
|
|
950
954
|
type ResolverValue = ScalarValue & {
|
|
951
955
|
originalSchema: OpenApiSchemaObject;
|
|
@@ -1120,7 +1124,6 @@ declare function addDependency({
|
|
|
1120
1124
|
exports,
|
|
1121
1125
|
dependency,
|
|
1122
1126
|
projectName,
|
|
1123
|
-
hasSchemaDir,
|
|
1124
1127
|
isAllowSyntheticDefaultImports
|
|
1125
1128
|
}: AddDependencyOptions): string | undefined;
|
|
1126
1129
|
declare function generateDependencyImports(implementation: string, imports: {
|
|
@@ -1286,6 +1289,7 @@ interface GenerateVerbOptionsParams {
|
|
|
1286
1289
|
verbParameters?: OpenApiPathItemObject['parameters'];
|
|
1287
1290
|
components?: OpenApiComponentsObject;
|
|
1288
1291
|
context: ContextSpec;
|
|
1292
|
+
contentType?: string;
|
|
1289
1293
|
}
|
|
1290
1294
|
declare function generateVerbOptions({
|
|
1291
1295
|
verb,
|
|
@@ -1294,7 +1298,8 @@ declare function generateVerbOptions({
|
|
|
1294
1298
|
route,
|
|
1295
1299
|
pathRoute,
|
|
1296
1300
|
verbParameters,
|
|
1297
|
-
context
|
|
1301
|
+
context,
|
|
1302
|
+
contentType
|
|
1298
1303
|
}: GenerateVerbOptionsParams): Promise<GeneratorVerbOptions>;
|
|
1299
1304
|
interface GenerateVerbsOptionsParams {
|
|
1300
1305
|
verbs: OpenApiPathItemObject;
|
|
@@ -1389,6 +1394,10 @@ interface GetBodyOptions {
|
|
|
1389
1394
|
context: ContextSpec;
|
|
1390
1395
|
contentType?: OverrideOutputContentType;
|
|
1391
1396
|
}
|
|
1397
|
+
/**
|
|
1398
|
+
* Extract all content types from a requestBody (#2812)
|
|
1399
|
+
*/
|
|
1400
|
+
declare function getRequestBodyContentTypes(requestBody: OpenApiOperationObject['requestBody'], context: ContextSpec): string[];
|
|
1392
1401
|
declare function getBody({
|
|
1393
1402
|
requestBody,
|
|
1394
1403
|
operationName,
|
|
@@ -1432,7 +1441,7 @@ type CombinedEnumValue = {
|
|
|
1432
1441
|
valueImports: string[];
|
|
1433
1442
|
hasNull: boolean;
|
|
1434
1443
|
};
|
|
1435
|
-
declare function getEnumUnionFromSchema(schema: OpenApiSchemaObject | undefined):
|
|
1444
|
+
declare function getEnumUnionFromSchema(schema: OpenApiSchemaObject | undefined): string;
|
|
1436
1445
|
declare function getCombinedEnumValue(inputs: CombinedEnumInput[]): CombinedEnumValue;
|
|
1437
1446
|
//#endregion
|
|
1438
1447
|
//#region src/getters/keys.d.ts
|
|
@@ -1654,16 +1663,11 @@ declare function resolveValue({
|
|
|
1654
1663
|
* @param property
|
|
1655
1664
|
*/
|
|
1656
1665
|
declare function isReference(obj: object): obj is OpenApiReferenceObject;
|
|
1657
|
-
declare function isDirectory(
|
|
1658
|
-
declare function isObject(x:
|
|
1659
|
-
declare function
|
|
1660
|
-
declare function
|
|
1661
|
-
declare function
|
|
1662
|
-
declare function isNumeric(x: any): x is number;
|
|
1663
|
-
declare function isBoolean(x: any): x is boolean;
|
|
1664
|
-
declare function isFunction(x: any): x is Function;
|
|
1665
|
-
declare function isUndefined(x: any): x is undefined;
|
|
1666
|
-
declare function isNull(x: any): x is null;
|
|
1666
|
+
declare function isDirectory(pathValue: string): boolean;
|
|
1667
|
+
declare function isObject(x: unknown): x is Record<string, unknown>;
|
|
1668
|
+
declare function isStringLike(val: unknown): val is string;
|
|
1669
|
+
declare function isModule(x: unknown): x is Record<string, unknown>;
|
|
1670
|
+
declare function isNumeric(x: unknown): x is number;
|
|
1667
1671
|
declare function isSchema(x: unknown): x is OpenApiSchemaObject;
|
|
1668
1672
|
declare function isVerb(verb: string): verb is Verbs;
|
|
1669
1673
|
declare function isUrl(str: string): boolean;
|
|
@@ -1672,13 +1676,16 @@ declare function isUrl(str: string): boolean;
|
|
|
1672
1676
|
declare function asyncReduce<IterationItem, AccValue>(array: IterationItem[], reducer: (accumulate: AccValue, current: IterationItem) => AccValue | Promise<AccValue>, initValue: AccValue): Promise<AccValue>;
|
|
1673
1677
|
//#endregion
|
|
1674
1678
|
//#region src/utils/case.d.ts
|
|
1675
|
-
declare function pascal(s
|
|
1676
|
-
declare function camel(s
|
|
1679
|
+
declare function pascal(s?: string): string;
|
|
1680
|
+
declare function camel(s?: string): string;
|
|
1677
1681
|
declare function snake(s: string): string;
|
|
1678
1682
|
declare function kebab(s: string): string;
|
|
1679
1683
|
declare function upper(s: string, fillWith: string, isDeapostrophe?: boolean): string;
|
|
1680
1684
|
declare function conventionName(name: string, convention: NamingConvention): string;
|
|
1681
1685
|
//#endregion
|
|
1686
|
+
//#region src/utils/compare-version.d.ts
|
|
1687
|
+
declare function compareVersions(firstVersion: string, secondVersions: string, operator?: CompareOperator): boolean;
|
|
1688
|
+
//#endregion
|
|
1682
1689
|
//#region src/utils/content-type.d.ts
|
|
1683
1690
|
/**
|
|
1684
1691
|
* Determine if a content type is binary (vs text-based).
|
|
@@ -1695,9 +1702,37 @@ declare function isBinaryContentType(contentType: string): boolean;
|
|
|
1695
1702
|
* - undefined: not a file, use standard string resolution
|
|
1696
1703
|
*/
|
|
1697
1704
|
declare function getFormDataFieldFileType(resolvedSchema: OpenApiSchemaObject, partContentType: string | undefined): 'binary' | 'text' | undefined;
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1705
|
+
/**
|
|
1706
|
+
* Filter configuration for content types
|
|
1707
|
+
*/
|
|
1708
|
+
interface ContentTypeFilter {
|
|
1709
|
+
include?: string[];
|
|
1710
|
+
exclude?: string[];
|
|
1711
|
+
}
|
|
1712
|
+
/**
|
|
1713
|
+
* Filters items by content type based on include/exclude rules
|
|
1714
|
+
*
|
|
1715
|
+
* @param items - Array of items with contentType property
|
|
1716
|
+
* @param filter - Optional filter configuration
|
|
1717
|
+
* @returns Filtered array
|
|
1718
|
+
*
|
|
1719
|
+
* @example
|
|
1720
|
+
* ```ts
|
|
1721
|
+
* const types = [
|
|
1722
|
+
* { contentType: 'application/json', value: '...' },
|
|
1723
|
+
* { contentType: 'text/xml', value: '...' }
|
|
1724
|
+
* ];
|
|
1725
|
+
*
|
|
1726
|
+
* // Include only JSON
|
|
1727
|
+
* filterByContentType(types, { include: ['application/json'] });
|
|
1728
|
+
*
|
|
1729
|
+
* // Exclude XML
|
|
1730
|
+
* filterByContentType(types, { exclude: ['text/xml'] });
|
|
1731
|
+
* ```
|
|
1732
|
+
*/
|
|
1733
|
+
declare function filterByContentType<T extends {
|
|
1734
|
+
contentType: string;
|
|
1735
|
+
}>(items: T[], filter?: ContentTypeFilter): T[];
|
|
1701
1736
|
//#endregion
|
|
1702
1737
|
//#region src/utils/debug.d.ts
|
|
1703
1738
|
interface DebuggerOptions {
|
|
@@ -1706,7 +1741,7 @@ interface DebuggerOptions {
|
|
|
1706
1741
|
declare function createDebugger(ns: string, options?: DebuggerOptions): debug.Debugger['log'];
|
|
1707
1742
|
//#endregion
|
|
1708
1743
|
//#region src/utils/deep-non-nullable.d.ts
|
|
1709
|
-
type DeepNonNullable<T> = T extends
|
|
1744
|
+
type DeepNonNullable<T> = T extends ((...args: never[]) => unknown) ? T : T extends readonly (infer U)[] ? DeepNonNullable<NonNullable<U>>[] : T extends object ? { [K in keyof T]: DeepNonNullable<NonNullable<T[K]>> } : NonNullable<T>;
|
|
1710
1745
|
//#endregion
|
|
1711
1746
|
//#region src/utils/doc.d.ts
|
|
1712
1747
|
declare function jsDoc(schema: {
|
|
@@ -1812,7 +1847,7 @@ interface LoggerOptions {
|
|
|
1812
1847
|
declare function createLogger(level?: LogLevel, options?: LoggerOptions): Logger;
|
|
1813
1848
|
//#endregion
|
|
1814
1849
|
//#region src/utils/merge-deep.d.ts
|
|
1815
|
-
declare function mergeDeep<T extends Record<string,
|
|
1850
|
+
declare function mergeDeep<T extends Record<string, unknown>, U$1 extends Record<string, unknown>>(source: T, target: U$1): T & U$1;
|
|
1816
1851
|
//#endregion
|
|
1817
1852
|
//#region src/utils/occurrence.d.ts
|
|
1818
1853
|
declare function count(str: string | undefined, key: string): number;
|
|
@@ -1851,7 +1886,7 @@ declare const sortByPriority: <T>(arr: (T & {
|
|
|
1851
1886
|
* stringify([1, 2, 3]) // returns "[1, 2, 3]"
|
|
1852
1887
|
* stringify({ a: 1, b: 'test' }) // returns "{ a: 1, b: 'test', }"
|
|
1853
1888
|
*/
|
|
1854
|
-
declare function stringify(data?: string |
|
|
1889
|
+
declare function stringify(data?: string | unknown[] | Record<string, unknown>): string | undefined;
|
|
1855
1890
|
/**
|
|
1856
1891
|
* Sanitizes a string value by removing or replacing special characters and ensuring
|
|
1857
1892
|
* it conforms to JavaScript identifier naming rules if needed.
|
|
@@ -1946,11 +1981,11 @@ declare function splitSchemasByType(schemas: GeneratorSchema[]): {
|
|
|
1946
1981
|
/**
|
|
1947
1982
|
* Fix imports in operation schemas that reference regular schemas.
|
|
1948
1983
|
*/
|
|
1949
|
-
declare function fixCrossDirectoryImports(operationSchemas: GeneratorSchema[], regularSchemaNames: Set<string>, schemaPath: string, operationSchemaPath: string, namingConvention: NamingConvention): void;
|
|
1984
|
+
declare function fixCrossDirectoryImports(operationSchemas: GeneratorSchema[], regularSchemaNames: Set<string>, schemaPath: string, operationSchemaPath: string, namingConvention: NamingConvention, fileExtension: string): void;
|
|
1950
1985
|
/**
|
|
1951
1986
|
* Fix imports in regular schemas that reference operation schemas.
|
|
1952
1987
|
*/
|
|
1953
|
-
declare function fixRegularSchemaImports(regularSchemas: GeneratorSchema[], operationSchemaNames: Set<string>, schemaPath: string, operationSchemaPath: string, namingConvention: NamingConvention): void;
|
|
1988
|
+
declare function fixRegularSchemaImports(regularSchemas: GeneratorSchema[], operationSchemaNames: Set<string>, schemaPath: string, operationSchemaPath: string, namingConvention: NamingConvention, fileExtension: string): void;
|
|
1954
1989
|
declare function writeModelInline(acc: string, model: string): string;
|
|
1955
1990
|
declare function writeModelsInline(array: GeneratorSchema[]): string;
|
|
1956
1991
|
interface WriteSchemaOptions {
|
|
@@ -2034,5 +2069,5 @@ declare function generateTargetForTags(builder: WriteSpecBuilder, options: Norma
|
|
|
2034
2069
|
declare function getOrvalGeneratedTypes(): string;
|
|
2035
2070
|
declare function getTypedResponse(): string;
|
|
2036
2071
|
//#endregion
|
|
2037
|
-
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, FormDataContext, 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, InvalidateTarget, JsDocOptions, LogLevel, LogLevels, LogOptions, LogType, Logger, LoggerOptions, MockData, MockDataArray, MockDataArrayFn, MockDataObject, MockDataObjectFn, MockOptions, MockProperties, MockPropertiesObject, MockPropertiesObjectFn, MutationInvalidatesConfig, MutationInvalidatesRule, Mutator, MutatorObject, NamingConvention, NormalizedConfig, NormalizedFetchOptions, NormalizedFormDataType, NormalizedHonoOptions, NormalizedHookCommand, NormalizedHookOptions, NormalizedInputOptions, NormalizedJsDocOptions, NormalizedMutator, NormalizedOperationOptions, NormalizedOptions, NormalizedOutputOptions, NormalizedOverrideOutput, NormalizedParamsSerializerOptions, NormalizedQueryOptions, NormalizedSchemaOptions, NormalizedZodOptions, OpenApiComponentsObject, OpenApiDocument, OpenApiEncodingObject, 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, ResponseTypeCategory, ScalarValue, SchemaGenerationType, SchemaOptions, 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, createTypeAliasIfNeeded, dedupeUnionType, dynamicImport, escape, fixCrossDirectoryImports, fixRegularSchemaImports, 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, getCombinedEnumValue, getDefaultContentType, getEnum, getEnumDescriptions, getEnumImplementation, getEnumNames, getEnumUnionFromSchema, getExtension, getFileInfo, getFormDataFieldFileType, getFullRoute, getIsBodyVerb, getKey, getMockFileExtensionByTypeName, getNumberWord, getObject, getOperationId, getOrvalGeneratedTypes, getParameters, getParams, getParamsInPath, getPropertySafe, getProps, getQueryParams, getRefInfo, getResReqTypes, getResponse, getResponseTypeCategory, getRoute, getRouteAsArray, getScalar, getTypedResponse, isBinaryContentType, isBoolean, isDirectory, isFunction, isModule,
|
|
2072
|
+
export { AngularOptions, BODY_TYPE_NAME, BaseUrlFromConstant, BaseUrlFromSpec, ClientBuilder, ClientDependenciesBuilder, ClientExtraFilesBuilder, ClientFileBuilder, ClientFooterBuilder, ClientGeneratorsBuilder, ClientHeaderBuilder, ClientMockBuilder, ClientMockGeneratorBuilder, ClientMockGeneratorImplementation, ClientTitleBuilder, Config, ConfigExternal, ConfigFn, ContentTypeFilter, ContextSpec, DeepNonNullable, EnumGeneration, ErrorWithTag, FetchOptions, FormDataArrayHandling, FormDataContext, 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, InvalidateTarget, JsDocOptions, LogLevel, LogLevels, LogOptions, LogType, Logger, LoggerOptions, MockData, MockDataArray, MockDataArrayFn, MockDataObject, MockDataObjectFn, MockOptions, MockProperties, MockPropertiesObject, MockPropertiesObjectFn, MutationInvalidatesConfig, MutationInvalidatesRule, Mutator, MutatorObject, NamingConvention, NormalizedConfig, NormalizedFetchOptions, NormalizedFormDataType, NormalizedHonoOptions, NormalizedHookCommand, NormalizedHookOptions, NormalizedInputOptions, NormalizedJsDocOptions, NormalizedMutator, NormalizedOperationOptions, NormalizedOptions, NormalizedOutputOptions, NormalizedOverrideOutput, NormalizedParamsSerializerOptions, NormalizedQueryOptions, NormalizedSchemaOptions, NormalizedZodOptions, OpenApiComponentsObject, OpenApiDocument, OpenApiEncodingObject, 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, ResponseTypeCategory, ScalarValue, SchemaGenerationType, SchemaOptions, 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, createTypeAliasIfNeeded, dedupeUnionType, dynamicImport, escape, filterByContentType, fixCrossDirectoryImports, fixRegularSchemaImports, 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, getCombinedEnumValue, getDefaultContentType, getEnum, getEnumDescriptions, getEnumImplementation, getEnumNames, getEnumUnionFromSchema, getExtension, getFileInfo, getFormDataFieldFileType, getFullRoute, getIsBodyVerb, getKey, getMockFileExtensionByTypeName, getNumberWord, getObject, getOperationId, getOrvalGeneratedTypes, getParameters, getParams, getParamsInPath, getPropertySafe, getProps, getQueryParams, getRefInfo, getRequestBodyContentTypes, getResReqTypes, getResponse, getResponseTypeCategory, getRoute, getRouteAsArray, getScalar, getTypedResponse, isBinaryContentType, isBoolean, isDirectory, isFunction, isModule, isNullish, isNumber, isNumeric, isObject, isReference, isSchema, isString, isStringLike, isSyntheticDefaultImportsAllow, isUrl, isVerb, jsDoc, jsStringEscape, kebab, keyValuePairsToJsDoc, log, logError, mergeDeep, mismatchArgsMessage, pascal, removeFilesAndEmptyFolders, resolveDiscriminators, resolveExampleRefs, resolveObject, resolveRef, resolveValue, sanitize, snake, sortByPriority, splitSchemasByType, startMessage, stringify, toObjectString, path_d_exports as upath, upper, writeModelInline, writeModelsInline, writeSchema, writeSchemas, writeSingleMode, writeSplitMode, writeSplitTagsMode, writeTagsMode };
|
|
2038
2073
|
//# sourceMappingURL=index.d.mts.map
|