@orval/core 8.12.3 → 8.13.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 +170 -3
- package/dist/index.mjs +907 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -35,6 +35,13 @@ interface NormalizedOutputOptions {
|
|
|
35
35
|
operationSchemas?: string;
|
|
36
36
|
namingConvention: NamingConvention;
|
|
37
37
|
fileExtension: string;
|
|
38
|
+
/**
|
|
39
|
+
* File extension for schema artifacts (TS types or Zod schemas) under
|
|
40
|
+
* `schemas:`. Defaults to `.zod.ts` when the output is Zod schemas
|
|
41
|
+
* (`schemas: { type: 'zod' }` or `client: 'zod'` + `generateReusableSchemas`),
|
|
42
|
+
* otherwise `.ts`. A user-set `output.fileExtension` always wins.
|
|
43
|
+
*/
|
|
44
|
+
schemaFileExtension: string;
|
|
38
45
|
mode: OutputMode;
|
|
39
46
|
mock: NormalizedMocksConfig;
|
|
40
47
|
override: NormalizedOverrideOutput;
|
|
@@ -53,6 +60,7 @@ interface NormalizedOutputOptions {
|
|
|
53
60
|
unionAddMissingProperties: boolean;
|
|
54
61
|
optionsParamRequired: boolean;
|
|
55
62
|
propertySortOrder: PropertySortOrder;
|
|
63
|
+
factoryMethods?: NormalizedFactoryMethodsOptions;
|
|
56
64
|
}
|
|
57
65
|
interface NormalizedParamsSerializerOptions {
|
|
58
66
|
qs?: Record<string, unknown>;
|
|
@@ -240,6 +248,19 @@ declare const EnumGeneration: {
|
|
|
240
248
|
};
|
|
241
249
|
type EnumGeneration = (typeof EnumGeneration)[keyof typeof EnumGeneration];
|
|
242
250
|
type SchemaGenerationType = 'typescript' | 'zod';
|
|
251
|
+
type FactoryMethodsMode = 'single' | 'split' | 'single-split';
|
|
252
|
+
interface FactoryMethodsOptions {
|
|
253
|
+
functionNamePrefix?: string;
|
|
254
|
+
mode?: FactoryMethodsMode;
|
|
255
|
+
outputDirectory?: string;
|
|
256
|
+
includeOptionalProperty?: boolean;
|
|
257
|
+
}
|
|
258
|
+
interface NormalizedFactoryMethodsOptions {
|
|
259
|
+
functionNamePrefix: string;
|
|
260
|
+
mode: FactoryMethodsMode;
|
|
261
|
+
outputDirectory: string;
|
|
262
|
+
includeOptionalProperty: boolean;
|
|
263
|
+
}
|
|
243
264
|
interface SchemaOptions {
|
|
244
265
|
path: string;
|
|
245
266
|
type: SchemaGenerationType;
|
|
@@ -260,6 +281,14 @@ interface OutputOptions {
|
|
|
260
281
|
operationSchemas?: string;
|
|
261
282
|
namingConvention?: NamingConvention;
|
|
262
283
|
fileExtension?: string;
|
|
284
|
+
/**
|
|
285
|
+
* Optional file extension applied only to schema artifacts (TS types or
|
|
286
|
+
* Zod schemas) under `schemas:`. Takes precedence over `fileExtension`
|
|
287
|
+
* for schema files. Defaults to `.zod.ts` when the output is Zod schemas
|
|
288
|
+
* (`schemas: { type: 'zod' }` or `client: 'zod'` + `generateReusableSchemas`),
|
|
289
|
+
* otherwise mirrors `fileExtension`.
|
|
290
|
+
*/
|
|
291
|
+
schemaFileExtension?: string;
|
|
263
292
|
mode?: OutputMode;
|
|
264
293
|
mock?: OutputMocksOption;
|
|
265
294
|
override?: OverrideOutput;
|
|
@@ -278,6 +307,7 @@ interface OutputOptions {
|
|
|
278
307
|
unionAddMissingProperties?: boolean;
|
|
279
308
|
optionsParamRequired?: boolean;
|
|
280
309
|
propertySortOrder?: PropertySortOrder;
|
|
310
|
+
factoryMethods?: FactoryMethodsOptions;
|
|
281
311
|
}
|
|
282
312
|
interface InputFiltersOptions {
|
|
283
313
|
mode?: 'include' | 'exclude';
|
|
@@ -358,6 +388,8 @@ interface MswMockOptions extends CommonMockOptions {
|
|
|
358
388
|
}
|
|
359
389
|
interface FakerMockOptions extends CommonMockOptions {
|
|
360
390
|
type: typeof OutputMockType.FAKER;
|
|
391
|
+
schemas?: boolean;
|
|
392
|
+
operationResponses?: boolean;
|
|
361
393
|
}
|
|
362
394
|
type GlobalMockOptions = MswMockOptions | FakerMockOptions;
|
|
363
395
|
interface OutputMocksConfig {
|
|
@@ -570,6 +602,12 @@ interface ZodOptions {
|
|
|
570
602
|
timeOptions?: ZodTimeOptions;
|
|
571
603
|
generateEachHttpStatus?: boolean;
|
|
572
604
|
useBrandedTypes?: boolean;
|
|
605
|
+
/**
|
|
606
|
+
* When true, emits one reusable Zod schema per `#/components/schemas/*` `$ref`
|
|
607
|
+
* (with `namingConvention` applied to the name) and references it everywhere
|
|
608
|
+
* instead of inlining. Default `false`. See `docs/superpowers/specs/2026-05-26-reusable-zod-schemas-design.md`.
|
|
609
|
+
*/
|
|
610
|
+
generateReusableSchemas?: boolean;
|
|
573
611
|
}
|
|
574
612
|
type ZodCoerceType = 'string' | 'number' | 'boolean' | 'bigint' | 'date';
|
|
575
613
|
interface NormalizedZodOptions {
|
|
@@ -603,6 +641,7 @@ interface NormalizedZodOptions {
|
|
|
603
641
|
};
|
|
604
642
|
generateEachHttpStatus: boolean;
|
|
605
643
|
useBrandedTypes: boolean;
|
|
644
|
+
generateReusableSchemas: boolean;
|
|
606
645
|
dateTimeOptions: ZodDateTimeOptions;
|
|
607
646
|
timeOptions: ZodTimeOptions;
|
|
608
647
|
}
|
|
@@ -833,6 +872,28 @@ interface ContextSpec {
|
|
|
833
872
|
spec: OpenApiDocument;
|
|
834
873
|
parents?: string[];
|
|
835
874
|
output: NormalizedOutputOptions;
|
|
875
|
+
/**
|
|
876
|
+
* Per-schema dynamic scope mapping `$dynamicAnchor` names to concrete schema
|
|
877
|
+
* entries or generic parameter placeholders. Populated by `buildDynamicScope`.
|
|
878
|
+
*/
|
|
879
|
+
dynamicScope?: Partial<Record<string, DynamicScopeEntry>>;
|
|
880
|
+
}
|
|
881
|
+
/**
|
|
882
|
+
* Maps a `$dynamicAnchor` name to its resolution target.
|
|
883
|
+
*
|
|
884
|
+
* Concrete entry (bound via `$ref`):
|
|
885
|
+
* - `name` — the generated TypeScript type name (e.g. `User`)
|
|
886
|
+
* - `schemaName` — the original key in `components.schemas` (e.g. `User`)
|
|
887
|
+
*
|
|
888
|
+
* Parameter entry (unbound `$defs` placeholder):
|
|
889
|
+
* - `isParameter` — `true`, signals this is a generic type parameter
|
|
890
|
+
* - `name` — the `$dynamicAnchor` name used as the type parameter (e.g. `itemType`)
|
|
891
|
+
* - `schemaName` — same as `name` for parameters
|
|
892
|
+
*/
|
|
893
|
+
interface DynamicScopeEntry {
|
|
894
|
+
name: string;
|
|
895
|
+
schemaName: string;
|
|
896
|
+
isParameter?: boolean;
|
|
836
897
|
}
|
|
837
898
|
interface GlobalOptions {
|
|
838
899
|
watch?: boolean | string | string[];
|
|
@@ -897,6 +958,9 @@ interface GeneratorSchema {
|
|
|
897
958
|
imports: GeneratorImport[];
|
|
898
959
|
dependencies?: string[];
|
|
899
960
|
schema?: OpenApiSchemaObject;
|
|
961
|
+
factory?: string;
|
|
962
|
+
factoryImports?: GeneratorImport[];
|
|
963
|
+
factoryMode?: FactoryMethodsMode;
|
|
900
964
|
}
|
|
901
965
|
interface GeneratorImport {
|
|
902
966
|
readonly name: string;
|
|
@@ -909,6 +973,7 @@ interface GeneratorImport {
|
|
|
909
973
|
readonly syntheticDefaultImport?: boolean;
|
|
910
974
|
readonly namespaceImport?: boolean;
|
|
911
975
|
readonly importPath?: string;
|
|
976
|
+
readonly schemaFactory?: boolean;
|
|
912
977
|
}
|
|
913
978
|
interface GeneratorDependency {
|
|
914
979
|
readonly exports: readonly GeneratorImport[];
|
|
@@ -1131,6 +1196,7 @@ interface GetterQueryParam {
|
|
|
1131
1196
|
schema: GeneratorSchema;
|
|
1132
1197
|
deps: GeneratorSchema[];
|
|
1133
1198
|
isOptional: boolean;
|
|
1199
|
+
paramNames?: string[];
|
|
1134
1200
|
originalSchema?: OpenApiSchemaObject;
|
|
1135
1201
|
requiredNullableKeys?: string[];
|
|
1136
1202
|
/**
|
|
@@ -1326,6 +1392,12 @@ declare const TEMPLATE_TAG_REGEX: RegExp;
|
|
|
1326
1392
|
//#region src/generators/component-definition.d.ts
|
|
1327
1393
|
declare function generateComponentDefinition(responses: OpenApiComponentsObject['responses'] | OpenApiComponentsObject['requestBodies'], context: ContextSpec, suffix: string): GeneratorSchema[];
|
|
1328
1394
|
//#endregion
|
|
1395
|
+
//#region src/generators/factory.d.ts
|
|
1396
|
+
declare function generateFactory(schema: OpenApiSchemaObject, name: string, context: ContextSpec): {
|
|
1397
|
+
model: string;
|
|
1398
|
+
imports: GeneratorImport[];
|
|
1399
|
+
} | undefined;
|
|
1400
|
+
//#endregion
|
|
1329
1401
|
//#region src/generators/imports.d.ts
|
|
1330
1402
|
interface GenerateImportsOptions {
|
|
1331
1403
|
imports: readonly GeneratorImport[];
|
|
@@ -1870,6 +1942,13 @@ interface RefInfo {
|
|
|
1870
1942
|
* @param $ref
|
|
1871
1943
|
*/
|
|
1872
1944
|
declare function getRefInfo($ref: string, context: ContextSpec): RefInfo;
|
|
1945
|
+
/**
|
|
1946
|
+
* Extracts the anchor name from a fragment-only `$dynamicRef` (e.g. `#category` → `category`).
|
|
1947
|
+
*
|
|
1948
|
+
* Returns `undefined` for external-document `$dynamicRef` values (e.g. `other.json#anchor`)
|
|
1949
|
+
* which are not supported.
|
|
1950
|
+
*/
|
|
1951
|
+
declare function getDynamicAnchorName(dynamicRef: string): string | undefined;
|
|
1873
1952
|
//#endregion
|
|
1874
1953
|
//#region src/getters/res-req-types.d.ts
|
|
1875
1954
|
declare function getResReqTypes(responsesOrRequests: [string, OpenApiReferenceObject | OpenApiResponseObject | OpenApiRequestBodyObject][], name: string, context: ContextSpec, defaultType?: string, uniqueKey?: (item: ResReqTypesValue, index: number, data: ResReqTypesValue[]) => unknown): ResReqTypesValue[];
|
|
@@ -1992,6 +2071,9 @@ declare function resolveObject({
|
|
|
1992
2071
|
}: ResolveOptions): ResolverValue;
|
|
1993
2072
|
//#endregion
|
|
1994
2073
|
//#region src/resolvers/ref.d.ts
|
|
2074
|
+
/** Convert a `$dynamicAnchor` name to a valid TypeScript generic parameter identifier. */
|
|
2075
|
+
declare function dynamicAnchorToParamName(anchor: string): string;
|
|
2076
|
+
declare function dynamicAnchorsToUniqueParamNames(anchors: string[]): Map<string, string>;
|
|
1995
2077
|
type Example = OpenApiExampleObject | OpenApiReferenceObject;
|
|
1996
2078
|
type ResolvedExample = unknown;
|
|
1997
2079
|
type Examples = Example[] | Record<string, Example> | ResolvedExample[] | Record<string, ResolvedExample> | undefined;
|
|
@@ -2008,6 +2090,43 @@ declare function resolveRef<TSchema extends object = OpenApiComponentsObject>(sc
|
|
|
2008
2090
|
schema: TSchema;
|
|
2009
2091
|
imports: GeneratorImport[];
|
|
2010
2092
|
};
|
|
2093
|
+
/**
|
|
2094
|
+
* Describes a resolved generic alias binding — the concrete type arguments
|
|
2095
|
+
* that fill the template's `$dynamicAnchor` slots for a given `$ref` with
|
|
2096
|
+
* `$defs` overrides.
|
|
2097
|
+
*
|
|
2098
|
+
* Produced by {@link extractBoundAliasInfo} and consumed by `resolveValue`
|
|
2099
|
+
* to emit instantiated generic type expressions (e.g. `Paginated<User>`).
|
|
2100
|
+
*/
|
|
2101
|
+
interface BoundAliasInfo {
|
|
2102
|
+
genericName: string;
|
|
2103
|
+
genericParams: string[];
|
|
2104
|
+
typeArgs: string[];
|
|
2105
|
+
imports: {
|
|
2106
|
+
name: string;
|
|
2107
|
+
schemaName: string;
|
|
2108
|
+
}[];
|
|
2109
|
+
extraSchemas?: (OpenApiSchemaObject | OpenApiReferenceObject)[];
|
|
2110
|
+
}
|
|
2111
|
+
/**
|
|
2112
|
+
* Extract bound-alias information from a schema that references a generic template
|
|
2113
|
+
* and binds `$dynamicAnchor` entries to concrete types via `$defs`.
|
|
2114
|
+
*/
|
|
2115
|
+
declare function extractBoundAliasInfo(schema: OpenApiSchemaObject | OpenApiReferenceObject, context: ContextSpec): BoundAliasInfo | undefined;
|
|
2116
|
+
/**
|
|
2117
|
+
* Build the dynamic scope for a schema: maps `$dynamicAnchor` names to concrete
|
|
2118
|
+
* type entries for self-referential resolution, `$defs` bindings, and sibling anchors.
|
|
2119
|
+
*/
|
|
2120
|
+
declare function buildDynamicScope(schemaName: string, schema: OpenApiSchemaObject, context: ContextSpec): Record<string, DynamicScopeEntry>;
|
|
2121
|
+
/**
|
|
2122
|
+
* Resolve a `$dynamicRef` anchor to its concrete type using the current dynamic scope.
|
|
2123
|
+
* Returns `{ schema: {}, resolvedTypeName: 'unknown' }` when no scope override exists.
|
|
2124
|
+
*/
|
|
2125
|
+
declare function resolveDynamicRef(anchorName: string, context: ContextSpec, imports?: GeneratorImport[]): {
|
|
2126
|
+
schema: OpenApiSchemaObject;
|
|
2127
|
+
imports: GeneratorImport[];
|
|
2128
|
+
resolvedTypeName: string;
|
|
2129
|
+
};
|
|
2011
2130
|
/** Recursively resolves `$ref` entries in an examples array or record. */
|
|
2012
2131
|
declare function resolveExampleRefs(examples: Examples, context: ContextSpec): ResolvedExample[] | Record<string, ResolvedExample> | undefined;
|
|
2013
2132
|
//#endregion
|
|
@@ -2018,6 +2137,22 @@ interface ResolveValueOptions {
|
|
|
2018
2137
|
context: ContextSpec;
|
|
2019
2138
|
formDataContext?: FormDataContext;
|
|
2020
2139
|
}
|
|
2140
|
+
/**
|
|
2141
|
+
* Resolves an OpenAPI schema or reference object to a {@link ResolverValue}
|
|
2142
|
+
* that carries the TypeScript type string, required imports, and metadata.
|
|
2143
|
+
*
|
|
2144
|
+
* Handles all schema forms in priority order:
|
|
2145
|
+
* 1. **Bound generic alias** — a `$ref` with `$defs` overrides; emits an
|
|
2146
|
+
* instantiated generic expression such as `Paginated<User>`.
|
|
2147
|
+
* 2. **Component `$ref`** — a named `$ref` pointing to `#/components/…`;
|
|
2148
|
+
* emits the schema name as a reference import.
|
|
2149
|
+
* 3. **Non-component `$ref`** — an anonymous or path-level ref; inlines the
|
|
2150
|
+
* resolved schema via {@link getScalar} (cycle-safe).
|
|
2151
|
+
* 4. **`$dynamicRef`** — resolved via the active dynamic scope; falls back to
|
|
2152
|
+
* `unknown` when the anchor is absent or the ref is a bare `#`.
|
|
2153
|
+
* 5. **Plain schema** — delegates to {@link getScalar} for all other cases
|
|
2154
|
+
* (primitives, objects, arrays, enums, …).
|
|
2155
|
+
*/
|
|
2021
2156
|
declare function resolveValue({
|
|
2022
2157
|
schema,
|
|
2023
2158
|
name,
|
|
@@ -2032,6 +2167,24 @@ declare function resolveValue({
|
|
|
2032
2167
|
* @param property
|
|
2033
2168
|
*/
|
|
2034
2169
|
declare function isReference(obj: object): obj is OpenApiReferenceObject;
|
|
2170
|
+
/**
|
|
2171
|
+
* Represents an OpenAPI 3.1 schema object that contains a `$dynamicRef`
|
|
2172
|
+
* keyword, used for recursive or polymorphic schema references.
|
|
2173
|
+
*
|
|
2174
|
+
* @see https://json-schema.org/draft/2020-12/json-schema-core#section-8.2.4
|
|
2175
|
+
*/
|
|
2176
|
+
interface OpenApiDynamicReferenceObject {
|
|
2177
|
+
$dynamicRef: string;
|
|
2178
|
+
[key: string]: unknown;
|
|
2179
|
+
}
|
|
2180
|
+
/**
|
|
2181
|
+
* Discriminator helper for {@link OpenApiDynamicReferenceObject}.
|
|
2182
|
+
*
|
|
2183
|
+
* Returns `true` when `obj` has a `$dynamicRef` string property,
|
|
2184
|
+
* indicating it is an OpenAPI 3.1 dynamic reference rather than a
|
|
2185
|
+
* static `$ref`.
|
|
2186
|
+
*/
|
|
2187
|
+
declare function isDynamicReference(obj: object): obj is OpenApiDynamicReferenceObject;
|
|
2035
2188
|
declare function isDirectory(pathValue: string): boolean;
|
|
2036
2189
|
declare function isObject(x: unknown): x is Record<string, unknown>;
|
|
2037
2190
|
declare function isStringLike(val: unknown): val is string;
|
|
@@ -2249,8 +2402,10 @@ declare function mergeDeep<T extends object, U extends object>(source: T, target
|
|
|
2249
2402
|
//#region src/utils/occurrence.d.ts
|
|
2250
2403
|
declare function count(str: string | undefined, key: string): number;
|
|
2251
2404
|
declare namespace path_d_exports {
|
|
2252
|
-
export { getRelativeImportPath, getSchemaFileName, join, joinSafe, normalizeSafe, relativeSafe, separator$1 as separator, toUnix };
|
|
2405
|
+
export { getRelativeImportPath, getSchemaFileName, isAbsolute, join, joinSafe, normalizeSafe, relativeSafe, resolve, separator$1 as separator, toUnix };
|
|
2253
2406
|
}
|
|
2407
|
+
declare function isAbsolute(value: string): boolean;
|
|
2408
|
+
declare function resolve(...args: string[]): string;
|
|
2254
2409
|
declare function toUnix(value: string): string;
|
|
2255
2410
|
declare function join(...args: string[]): string;
|
|
2256
2411
|
/**
|
|
@@ -2408,6 +2563,16 @@ declare function dedupeUnionType(unionType: string): string;
|
|
|
2408
2563
|
declare function isSyntheticDefaultImportsAllow(config?: Tsconfig): boolean;
|
|
2409
2564
|
declare function getImportExtension(fileExtension: string, tsconfig?: Tsconfig): string;
|
|
2410
2565
|
//#endregion
|
|
2566
|
+
//#region src/writers/file.d.ts
|
|
2567
|
+
/**
|
|
2568
|
+
* Write generated code to a file, stripping trailing whitespace from each line.
|
|
2569
|
+
*
|
|
2570
|
+
* Template literals in code generators can produce lines with only whitespace
|
|
2571
|
+
* when conditional expressions evaluate to empty strings. This function
|
|
2572
|
+
* ensures the output is always clean regardless of generator implementation.
|
|
2573
|
+
*/
|
|
2574
|
+
declare function writeGeneratedFile(filePath: string, content: string): Promise<void>;
|
|
2575
|
+
//#endregion
|
|
2411
2576
|
//#region src/writers/schemas.d.ts
|
|
2412
2577
|
/**
|
|
2413
2578
|
* Split schemas into regular and operation types.
|
|
@@ -2453,6 +2618,7 @@ interface WriteSchemasOptions {
|
|
|
2453
2618
|
header: string;
|
|
2454
2619
|
indexFiles: boolean;
|
|
2455
2620
|
tsconfig?: Tsconfig;
|
|
2621
|
+
factoryOutputDirectory?: string;
|
|
2456
2622
|
}
|
|
2457
2623
|
declare function writeSchemas({
|
|
2458
2624
|
schemaPath,
|
|
@@ -2462,7 +2628,8 @@ declare function writeSchemas({
|
|
|
2462
2628
|
fileExtension,
|
|
2463
2629
|
header,
|
|
2464
2630
|
indexFiles,
|
|
2465
|
-
tsconfig
|
|
2631
|
+
tsconfig,
|
|
2632
|
+
factoryOutputDirectory
|
|
2466
2633
|
}: WriteSchemasOptions): Promise<void>;
|
|
2467
2634
|
//#endregion
|
|
2468
2635
|
//#region src/writers/single-mode.d.ts
|
|
@@ -2515,5 +2682,5 @@ declare function generateTargetForTags(builder: WriteSpecBuilder, options: Norma
|
|
|
2515
2682
|
declare function getOrvalGeneratedTypes(): string;
|
|
2516
2683
|
declare function getTypedResponse(): string;
|
|
2517
2684
|
//#endregion
|
|
2518
|
-
export { AngularHttpResourceOptions, AngularOptions, BODY_TYPE_NAME, BaseUrlFromConstant, BaseUrlFromSpec, BaseUrlRuntime, ClientBuilder, ClientDependenciesBuilder, ClientExtraFilesBuilder, ClientFileBuilder, ClientFooterBuilder, ClientGeneratorsBuilder, ClientHeaderBuilder, ClientMockBuilder, ClientMockGeneratorBuilder, ClientMockGeneratorImplementation, ClientTitleBuilder, CommonMockOptions, Config, ConfigExternal, ConfigFn, ContentTypeFilter, ContextSpec, DeepNonNullable, DefaultTag, EnumGeneration, ErrorWithTag, FakerMockOptions, FetchOptions, FormDataArrayHandling, FormDataContext, FormDataType, GenerateMockImports, GenerateVerbOptionsParams, GenerateVerbsOptionsParams, GeneratorApiBuilder, GeneratorApiOperations, GeneratorApiResponse, GeneratorClient, GeneratorClientExtra, GeneratorClientFooter, GeneratorClientHeader, GeneratorClientImports, GeneratorClientTitle, GeneratorClients, GeneratorDependency, GeneratorImport, GeneratorMockOutput, GeneratorMockOutputFull, 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, InvalidateTargetParam, JsDocOptions, LogLevel, LogLevels, LogOptions, LogType, Logger, LoggerOptions, McpOptions, McpServerOptions, MockData, MockDataArray, MockDataArrayFn, MockDataObject, MockDataObjectFn, MockOptions, MockProperties, MockPropertiesObject, MockPropertiesObjectFn, MswMockOptions, MutationInvalidatesConfig, MutationInvalidatesRule, Mutator, MutatorObject, NAMED_COMPONENT_SECTIONS, NamingConvention, NormalizedAngularOptions, NormalizedConfig, NormalizedFetchOptions, NormalizedFormDataType, NormalizedHonoOptions, NormalizedHookCommand, NormalizedHookOptions, NormalizedInputOptions, NormalizedJsDocOptions, NormalizedMcpOptions, NormalizedMcpServerOptions, NormalizedMocksConfig, 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, OutputMocksConfig, OutputMocksOption, OutputMode, OutputOptions, OverrideInput, OverrideMockOptions, OverrideOutput, OverrideOutputContentType, PackageJson, ParamsSerializerOptions, PreferredContentType, PropertySortOrder, QueryOptions, ReadonlyRequestBodiesMode, RefComponentSuffix, RefInfo, ResReqTypesValue, ResolverValue, ResponseTypeCategory, ScalarValue, SchemaGenerationType, SchemaOptions, SchemaType, SupportedFormatter, SwrOptions, TEMPLATE_TAG_REGEX, TsConfigModule, TsConfigModuleResolution, TsConfigTarget, Tsconfig, URL_REGEX, VERBS_WITH_BODY, Verbs, WriteModeProps, WriteSpecBuilder, ZodCoerceType, ZodDateTimeOptions, ZodOptions, ZodTimeOptions, addDependency, asyncReduce, buildAngularParamsFilterExpression, camel, collectReferencedComponents, combineSchemas, compareVersions, conventionName, count, createDebugger, createLogger, createSuccessMessage, createTypeAliasIfNeeded, dedupeUnionType, dynamicImport, escape, escapeRegExp, filterByContentType, filteredVerbs, 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, getAngularFilteredParamsCallExpression, getAngularFilteredParamsExpression, getAngularFilteredParamsHelperBody, getArray, getBaseUrlRuntimeImports, getBodiesByContentType, getBody, getCombinedEnumValue, getDefaultContentType, getEnum, getEnumDescriptions, getEnumImplementation, getEnumNames, getEnumUnionFromSchema, getExtension, getFileInfo, getFormDataFieldFileType, getFullRoute, getImportExtension, getIsBodyVerb, getKey, getMockFileExtensionByTypeName, getNumberWord, getObject, getOperationId, getOrvalGeneratedTypes, getParameters, getParams, getParamsInPath, getPropertySafe, getProps, getQueryParams, getRefInfo, getResReqTypes, getResponse, getResponseTypeCategory, getRoute, getRouteAsArray, getScalar, getSuccessResponseType, getTypedResponse, getWarningCount, isBinaryContentType, isBinaryScalarSchema, isBoolean, isComponentRef, isDirectory, isFakerMock, isFunction, isModule, isMswMock, isNullish, isNumber, isNumeric, isObject, isReference, isSchema, isString, isStringLike, isSyntheticDefaultImportsAllow, isUrl, isVerb, isVerbose, jsDoc, jsStringEscape, kebab, keyValuePairsToJsDoc, log, logError, logVerbose, logWarning, makeRouteSafe, mergeDeep, mismatchArgsMessage, pascal, removeFilesAndEmptyFolders, resetWarnings, resolveDiscriminators, resolveExampleRefs, resolveInstalledVersion, resolveInstalledVersions, resolveObject, resolveRef, resolveValue, sanitize, setVerbose, snake, sortByPriority, splitSchemasByType, startMessage, stringify, toObjectString, path_d_exports as upath, upper, wrapRouteParameters, writeModelInline, writeModelsInline, writeSchema, writeSchemas, writeSingleMode, writeSplitMode, writeSplitTagsMode, writeTagsMode };
|
|
2685
|
+
export { AngularHttpResourceOptions, AngularOptions, BODY_TYPE_NAME, BaseUrlFromConstant, BaseUrlFromSpec, BaseUrlRuntime, BoundAliasInfo, ClientBuilder, ClientDependenciesBuilder, ClientExtraFilesBuilder, ClientFileBuilder, ClientFooterBuilder, ClientGeneratorsBuilder, ClientHeaderBuilder, ClientMockBuilder, ClientMockGeneratorBuilder, ClientMockGeneratorImplementation, ClientTitleBuilder, CommonMockOptions, Config, ConfigExternal, ConfigFn, ContentTypeFilter, ContextSpec, DeepNonNullable, DefaultTag, DynamicScopeEntry, EnumGeneration, ErrorWithTag, FactoryMethodsMode, FactoryMethodsOptions, FakerMockOptions, FetchOptions, FormDataArrayHandling, FormDataContext, FormDataType, GenerateMockImports, GenerateVerbOptionsParams, GenerateVerbsOptionsParams, GeneratorApiBuilder, GeneratorApiOperations, GeneratorApiResponse, GeneratorClient, GeneratorClientExtra, GeneratorClientFooter, GeneratorClientHeader, GeneratorClientImports, GeneratorClientTitle, GeneratorClients, GeneratorDependency, GeneratorImport, GeneratorMockOutput, GeneratorMockOutputFull, 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, InvalidateTargetParam, JsDocOptions, LogLevel, LogLevels, LogOptions, LogType, Logger, LoggerOptions, McpOptions, McpServerOptions, MockData, MockDataArray, MockDataArrayFn, MockDataObject, MockDataObjectFn, MockOptions, MockProperties, MockPropertiesObject, MockPropertiesObjectFn, MswMockOptions, MutationInvalidatesConfig, MutationInvalidatesRule, Mutator, MutatorObject, NAMED_COMPONENT_SECTIONS, NamingConvention, NormalizedAngularOptions, NormalizedConfig, NormalizedFactoryMethodsOptions, NormalizedFetchOptions, NormalizedFormDataType, NormalizedHonoOptions, NormalizedHookCommand, NormalizedHookOptions, NormalizedInputOptions, NormalizedJsDocOptions, NormalizedMcpOptions, NormalizedMcpServerOptions, NormalizedMocksConfig, NormalizedMutator, NormalizedOperationOptions, NormalizedOptions, NormalizedOutputOptions, NormalizedOverrideOutput, NormalizedParamsSerializerOptions, NormalizedQueryOptions, NormalizedSchemaOptions, NormalizedZodOptions, OpenApiComponentsObject, OpenApiDocument, OpenApiDynamicReferenceObject, 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, OutputMocksConfig, OutputMocksOption, OutputMode, OutputOptions, OverrideInput, OverrideMockOptions, OverrideOutput, OverrideOutputContentType, PackageJson, ParamsSerializerOptions, PreferredContentType, PropertySortOrder, QueryOptions, ReadonlyRequestBodiesMode, RefComponentSuffix, RefInfo, ResReqTypesValue, ResolverValue, ResponseTypeCategory, ScalarValue, SchemaGenerationType, SchemaOptions, SchemaType, SupportedFormatter, SwrOptions, TEMPLATE_TAG_REGEX, TsConfigModule, TsConfigModuleResolution, TsConfigTarget, Tsconfig, URL_REGEX, VERBS_WITH_BODY, Verbs, WriteModeProps, WriteSpecBuilder, ZodCoerceType, ZodDateTimeOptions, ZodOptions, ZodTimeOptions, addDependency, asyncReduce, buildAngularParamsFilterExpression, buildDynamicScope, camel, collectReferencedComponents, combineSchemas, compareVersions, conventionName, count, createDebugger, createLogger, createSuccessMessage, createTypeAliasIfNeeded, dedupeUnionType, dynamicAnchorToParamName, dynamicAnchorsToUniqueParamNames, dynamicImport, escape, escapeRegExp, extractBoundAliasInfo, filterByContentType, filteredVerbs, fixCrossDirectoryImports, fixRegularSchemaImports, generalJSTypes, generalJSTypesWithArray, generateAxiosOptions, generateBodyMutatorConfig, generateBodyOptions, generateComponentDefinition, generateDependencyImports, generateFactory, generateFormDataAndUrlEncodedFunction, generateImports, generateModelInline, generateModelsInline, generateMutator, generateMutatorConfig, generateMutatorImports, generateMutatorRequestOptions, generateOptions, generateParameterDefinition, generateQueryParamsAxiosConfig, generateSchemasDefinition, generateTarget, generateTargetForTags, generateVerbImports, generateVerbOptions, generateVerbsOptions, getAngularFilteredParamsCallExpression, getAngularFilteredParamsExpression, getAngularFilteredParamsHelperBody, getArray, getBaseUrlRuntimeImports, getBodiesByContentType, getBody, getCombinedEnumValue, getDefaultContentType, getDynamicAnchorName, getEnum, getEnumDescriptions, getEnumImplementation, getEnumNames, getEnumUnionFromSchema, getExtension, getFileInfo, getFormDataFieldFileType, getFullRoute, getImportExtension, getIsBodyVerb, getKey, getMockFileExtensionByTypeName, getNumberWord, getObject, getOperationId, getOrvalGeneratedTypes, getParameters, getParams, getParamsInPath, getPropertySafe, getProps, getQueryParams, getRefInfo, getResReqTypes, getResponse, getResponseTypeCategory, getRoute, getRouteAsArray, getScalar, getSuccessResponseType, getTypedResponse, getWarningCount, isBinaryContentType, isBinaryScalarSchema, isBoolean, isComponentRef, isDirectory, isDynamicReference, isFakerMock, isFunction, isModule, isMswMock, isNullish, isNumber, isNumeric, isObject, isReference, isSchema, isString, isStringLike, isSyntheticDefaultImportsAllow, isUrl, isVerb, isVerbose, jsDoc, jsStringEscape, kebab, keyValuePairsToJsDoc, log, logError, logVerbose, logWarning, makeRouteSafe, mergeDeep, mismatchArgsMessage, pascal, removeFilesAndEmptyFolders, resetWarnings, resolveDiscriminators, resolveDynamicRef, resolveExampleRefs, resolveInstalledVersion, resolveInstalledVersions, resolveObject, resolveRef, resolveValue, sanitize, setVerbose, snake, sortByPriority, splitSchemasByType, startMessage, stringify, toObjectString, path_d_exports as upath, upper, wrapRouteParameters, writeGeneratedFile, writeModelInline, writeModelsInline, writeSchema, writeSchemas, writeSingleMode, writeSplitMode, writeSplitTagsMode, writeTagsMode };
|
|
2519
2686
|
//# sourceMappingURL=index.d.mts.map
|