@hey-api/openapi-ts 0.98.1 → 0.99.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/README.md +34 -22
- package/dist/chunk-z9aeyW2b.mjs +15 -0
- package/dist/clients/angular/client.ts +1 -1
- package/dist/clients/angular/index.ts +1 -0
- package/dist/clients/axios/index.ts +1 -0
- package/dist/clients/core/params.ts +18 -11
- package/dist/clients/core/types.ts +6 -0
- package/dist/clients/fetch/index.ts +1 -0
- package/dist/clients/ky/index.ts +1 -0
- package/dist/clients/next/index.ts +1 -0
- package/dist/clients/nuxt/index.ts +1 -0
- package/dist/clients/ofetch/index.ts +1 -0
- package/dist/index.d.mts +640 -307
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +4 -3
- package/dist/{init-Y3pnLkrI.mjs → init-D6Y8JFUS.mjs} +3681 -1685
- package/dist/init-D6Y8JFUS.mjs.map +1 -0
- package/dist/internal.mjs +1 -1
- package/dist/plugins.d.mts +34 -0
- package/dist/plugins.d.mts.map +1 -0
- package/dist/plugins.mjs +65 -0
- package/dist/plugins.mjs.map +1 -0
- package/dist/run.mjs +2 -2
- package/dist/run.mjs.map +1 -1
- package/dist/{src-Br-zyYwn.mjs → src-CI9riJdm.mjs} +4 -3
- package/dist/src-CI9riJdm.mjs.map +1 -0
- package/package.json +39 -21
- package/dist/init-Y3pnLkrI.mjs.map +0 -1
- package/dist/src-Br-zyYwn.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { n as UserConfig } from "./types-DH7EVLYi.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { t as plugins_d_exports } from "./plugins.mjs";
|
|
3
|
+
import { AnalysisContext, BindingKind, ExportModule, File, FromRef, ImportModule, Language, Logger, Node, NodeName, NodeNameSanitizer, NodeRelationship, NodeScope, ProjectMeta, Ref, RenderContext, Renderer, Symbol } from "@hey-api/codegen-core";
|
|
4
|
+
import { AnyPluginName, BaseOutput, Casing, Coercer, CoercerMap, ConfigTable, Context, DefinePlugin, DefinePlugin as DefinePlugin$1, FeatureToggle, IR, IR as IR$1, NameTransformer, NamingConfig, NamingOptions, NamingRule, OpenApi, OpenApiMetaObject, OpenApiOperationObject, OpenApiParameterObject, OpenApiRequestBodyObject, OpenApiResponseObject, OpenApiSchemaObject, OperationPath, OperationPathStrategy, OperationStrategy, OperationsStrategy, Plugin, Plugin as Plugin$1, PluginConfigMap, PluginContext, PluginInstance, PluginInstance as PluginInstance$1, PluginNames, RequestSchemaContext, ResolvedRequestValidatorLayer, SchemaVisitorContext, SchemaWithType, TableDirectives, Walker, applyNaming, coerce, defaultPaginationKeywords, defineConfig as defineConfigTable, definePluginConfig, toCase, utils } from "@hey-api/shared";
|
|
4
5
|
import ts from "typescript";
|
|
5
6
|
import { AnyString, LazyOrAsync, MaybeArray, MaybeFunc } from "@hey-api/types";
|
|
6
7
|
import { HttpClient, HttpErrorResponse, HttpHeaders, HttpRequest, HttpResponse } from "@angular/common/http";
|
|
@@ -10,9 +11,9 @@ import { AsyncDataOptions, UseFetchOptions, useAsyncData, useFetch, useLazyAsync
|
|
|
10
11
|
import { Ref as Ref$1 } from "vue";
|
|
11
12
|
import { FetchOptions, ResponseType, ofetch } from "ofetch";
|
|
12
13
|
import ky, { Options } from "ky";
|
|
13
|
-
import { LinguistLanguages
|
|
14
|
+
import { LinguistLanguages } from "@hey-api/spec-types";
|
|
14
15
|
|
|
15
|
-
//#region src/plugins/@angular/common/
|
|
16
|
+
//#region src/plugins/@angular/common/http-requests/types.d.ts
|
|
16
17
|
interface UserHttpRequestsConfig {
|
|
17
18
|
/**
|
|
18
19
|
* Type of container for grouped operations.
|
|
@@ -192,7 +193,7 @@ type HttpRequestsConfig = FeatureToggle & {
|
|
|
192
193
|
strategyDefaultTag: string;
|
|
193
194
|
};
|
|
194
195
|
//#endregion
|
|
195
|
-
//#region src/plugins/@angular/common/
|
|
196
|
+
//#region src/plugins/@angular/common/http-resources/types.d.ts
|
|
196
197
|
interface UserHttpResourcesConfig {
|
|
197
198
|
/**
|
|
198
199
|
* Type of container for grouped operations.
|
|
@@ -372,8 +373,17 @@ type HttpResourcesConfig = FeatureToggle & {
|
|
|
372
373
|
strategyDefaultTag: string;
|
|
373
374
|
};
|
|
374
375
|
//#endregion
|
|
376
|
+
//#region src/plugins/@angular/common/imports.d.ts
|
|
377
|
+
declare function angularImports(plugin: PluginInstance$1): {
|
|
378
|
+
HttpRequest: any;
|
|
379
|
+
Injectable: any;
|
|
380
|
+
httpResource: any;
|
|
381
|
+
inject: any;
|
|
382
|
+
};
|
|
383
|
+
type AngularImports = ReturnType<typeof angularImports>;
|
|
384
|
+
//#endregion
|
|
375
385
|
//#region src/plugins/@angular/common/types.d.ts
|
|
376
|
-
type UserConfig$
|
|
386
|
+
type UserConfig$29 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
377
387
|
/**
|
|
378
388
|
* Options for generating HTTP Request instances.
|
|
379
389
|
*
|
|
@@ -387,7 +397,7 @@ type UserConfig$27 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$
|
|
|
387
397
|
*/
|
|
388
398
|
httpResources?: boolean | OperationsStrategy | UserHttpResourcesConfig;
|
|
389
399
|
};
|
|
390
|
-
type Config$
|
|
400
|
+
type Config$26 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
391
401
|
/**
|
|
392
402
|
* Options for generating HTTP Request instances.
|
|
393
403
|
*/
|
|
@@ -397,7 +407,7 @@ type Config$24 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.Co
|
|
|
397
407
|
*/
|
|
398
408
|
httpResources: HttpResourcesConfig;
|
|
399
409
|
};
|
|
400
|
-
type AngularCommonPlugin = DefinePlugin$1<UserConfig$
|
|
410
|
+
type AngularCommonPlugin = DefinePlugin$1<UserConfig$29, Config$26, never, AngularImports>;
|
|
401
411
|
//#endregion
|
|
402
412
|
//#region src/ts-dsl/mixins/types.d.ts
|
|
403
413
|
type BaseCtor<T extends ts.Node> = abstract new (...args: Array<any>) => TsDsl<T>;
|
|
@@ -425,8 +435,8 @@ interface TypeReturnsMethods extends Node {
|
|
|
425
435
|
//#endregion
|
|
426
436
|
//#region src/ts-dsl/type/param.d.ts
|
|
427
437
|
type TypeParamExpr = NodeName | boolean | MaybeTsDsl<TypeTsDsl>;
|
|
428
|
-
declare const Mixed$
|
|
429
|
-
declare class TypeParamTsDsl extends Mixed$
|
|
438
|
+
declare const Mixed$57: abstract new () => TsDsl<ts.TypeParameterDeclaration, "typescript">;
|
|
439
|
+
declare class TypeParamTsDsl extends Mixed$57 {
|
|
430
440
|
readonly '~dsl' = "TypeParamTsDsl";
|
|
431
441
|
scope: NodeScope;
|
|
432
442
|
protected constraint?: Ref<TypeParamExpr>;
|
|
@@ -593,8 +603,8 @@ interface DecoratorMethods extends Node {
|
|
|
593
603
|
type ParamName = NodeName | ParamFn;
|
|
594
604
|
type ParamFn = (p: ParamTsDsl) => void;
|
|
595
605
|
type ParamCtor = (name: ParamName, fn?: ParamFn) => ParamTsDsl;
|
|
596
|
-
declare const Mixed$
|
|
597
|
-
declare class ParamTsDsl extends Mixed$
|
|
606
|
+
declare const Mixed$56: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ParameterDeclaration, "typescript">, ValueMethods>, PatternMethods>, OptionalMethods>, DecoratorMethods>;
|
|
607
|
+
declare class ParamTsDsl extends Mixed$56 {
|
|
598
608
|
readonly '~dsl' = "ParamTsDsl";
|
|
599
609
|
protected _type?: TypeTsDsl;
|
|
600
610
|
constructor(name: ParamName, fn?: ParamFn);
|
|
@@ -650,8 +660,8 @@ interface DoMethods extends Node {
|
|
|
650
660
|
//#endregion
|
|
651
661
|
//#region src/ts-dsl/decl/method.d.ts
|
|
652
662
|
type MethodCtor = (name: NodeName, fn?: (m: MethodTsDsl) => void) => MethodTsDsl;
|
|
653
|
-
declare const Mixed$
|
|
654
|
-
declare class MethodTsDsl extends Mixed$
|
|
663
|
+
declare const Mixed$55: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.MethodDeclaration, "typescript">, TypeReturnsMethods>, TypeParamsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, OptionalMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
|
|
664
|
+
declare class MethodTsDsl extends Mixed$55 {
|
|
655
665
|
readonly '~dsl' = "MethodTsDsl";
|
|
656
666
|
readonly nameSanitizer: (name: string) => string;
|
|
657
667
|
constructor(name: NodeName, fn?: (m: MethodTsDsl) => void);
|
|
@@ -681,8 +691,8 @@ interface AsMethods extends Node {
|
|
|
681
691
|
type AsExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
682
692
|
type AsType = NodeName | TypeTsDsl;
|
|
683
693
|
type AsCtor = (expr: AsExpr, type: AsType) => AsTsDsl;
|
|
684
|
-
declare const Mixed$
|
|
685
|
-
declare class AsTsDsl extends Mixed$
|
|
694
|
+
declare const Mixed$54: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.AsExpression, "typescript">, ExprMethods>, AsMethods>;
|
|
695
|
+
declare class AsTsDsl extends Mixed$54 {
|
|
686
696
|
readonly '~dsl' = "AsTsDsl";
|
|
687
697
|
protected expr: Ref<AsExpr>;
|
|
688
698
|
protected type: Ref<AsType>;
|
|
@@ -695,8 +705,8 @@ declare class AsTsDsl extends Mixed$53 {
|
|
|
695
705
|
type Expr$2 = NodeName | MaybeTsDsl<ts.Expression>;
|
|
696
706
|
type Op$1 = Operator | ts.BinaryOperator;
|
|
697
707
|
type Operator = '!=' | '!==' | '&&' | '*' | '+' | '-' | '/' | '<' | '<=' | '=' | '==' | '===' | '>' | '>=' | '??' | '??=' | '||';
|
|
698
|
-
declare const Mixed$
|
|
699
|
-
declare class BinaryTsDsl extends Mixed$
|
|
708
|
+
declare const Mixed$53: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.BinaryExpression, "typescript">, ExprMethods>, AsMethods>;
|
|
709
|
+
declare class BinaryTsDsl extends Mixed$53 {
|
|
700
710
|
readonly '~dsl' = "BinaryTsDsl";
|
|
701
711
|
protected _base: Ref<Expr$2>;
|
|
702
712
|
protected _expr?: Ref<Expr$2>;
|
|
@@ -792,8 +802,8 @@ interface OperatorMethods extends Node {
|
|
|
792
802
|
//#region src/ts-dsl/expr/attr.d.ts
|
|
793
803
|
type AttrLeft = NodeName | MaybeTsDsl<ts.Expression>;
|
|
794
804
|
type AttrCtor = (left: AttrLeft, right: NodeName) => AttrTsDsl;
|
|
795
|
-
declare const Mixed$
|
|
796
|
-
declare class AttrTsDsl extends Mixed$
|
|
805
|
+
declare const Mixed$52: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.PropertyAccessExpression | ts.ElementAccessExpression, "typescript">, SpreadMethods>, OptionalMethods>, OperatorMethods>, ExprMethods>, AsMethods>;
|
|
806
|
+
declare class AttrTsDsl extends Mixed$52 {
|
|
797
807
|
readonly '~dsl' = "AttrTsDsl";
|
|
798
808
|
protected _computed: boolean;
|
|
799
809
|
protected _left: Ref<AttrLeft>;
|
|
@@ -807,8 +817,8 @@ declare class AttrTsDsl extends Mixed$51 {
|
|
|
807
817
|
//#region src/ts-dsl/expr/await.d.ts
|
|
808
818
|
type AwaitExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
809
819
|
type AwaitCtor = (expr: AwaitExpr) => AwaitTsDsl;
|
|
810
|
-
declare const Mixed$
|
|
811
|
-
declare class AwaitTsDsl extends Mixed$
|
|
820
|
+
declare const Mixed$51: MixinCtor<abstract new () => TsDsl<ts.AwaitExpression, "typescript">, ExprMethods>;
|
|
821
|
+
declare class AwaitTsDsl extends Mixed$51 {
|
|
812
822
|
readonly '~dsl' = "AwaitTsDsl";
|
|
813
823
|
protected _awaitExpr: Ref<AwaitExpr>;
|
|
814
824
|
constructor(expr: AwaitExpr);
|
|
@@ -831,8 +841,8 @@ interface ArgsMethods extends Node {
|
|
|
831
841
|
type NewArgs = ReadonlyArray<NewExpr | undefined>;
|
|
832
842
|
type NewExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
833
843
|
type NewCtor = (expr: NewExpr, ...args: NewArgs) => NewTsDsl;
|
|
834
|
-
declare const Mixed$
|
|
835
|
-
declare class NewTsDsl extends Mixed$
|
|
844
|
+
declare const Mixed$50: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.NewExpression, "typescript">, TypeArgsMethods>, SpreadMethods>, ExprMethods>, AsMethods>, ArgsMethods>;
|
|
845
|
+
declare class NewTsDsl extends Mixed$50 {
|
|
836
846
|
readonly '~dsl' = "NewTsDsl";
|
|
837
847
|
protected _newExpr: Ref<NewExpr>;
|
|
838
848
|
constructor(expr: NewExpr, ...args: NewArgs);
|
|
@@ -843,8 +853,8 @@ declare class NewTsDsl extends Mixed$49 {
|
|
|
843
853
|
//#region src/ts-dsl/expr/spread.d.ts
|
|
844
854
|
type SpreadExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
845
855
|
type SpreadCtor = (expr: SpreadExpr) => SpreadTsDsl;
|
|
846
|
-
declare const Mixed$
|
|
847
|
-
declare class SpreadTsDsl extends Mixed$
|
|
856
|
+
declare const Mixed$49: abstract new () => TsDsl<ts.SpreadElement, "typescript">;
|
|
857
|
+
declare class SpreadTsDsl extends Mixed$49 {
|
|
848
858
|
readonly '~dsl' = "SpreadTsDsl";
|
|
849
859
|
protected _expr: Ref<SpreadExpr>;
|
|
850
860
|
constructor(expr: SpreadExpr);
|
|
@@ -855,8 +865,8 @@ declare class SpreadTsDsl extends Mixed$48 {
|
|
|
855
865
|
//#region src/ts-dsl/expr/typeof.d.ts
|
|
856
866
|
type TypeOfExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
857
867
|
type TypeOfExprCtor = (expr: TypeOfExpr) => TypeOfExprTsDsl;
|
|
858
|
-
declare const Mixed$
|
|
859
|
-
declare class TypeOfExprTsDsl extends Mixed$
|
|
868
|
+
declare const Mixed$48: MixinCtor<abstract new () => TsDsl<ts.TypeOfExpression, "typescript">, OperatorMethods>;
|
|
869
|
+
declare class TypeOfExprTsDsl extends Mixed$48 {
|
|
860
870
|
readonly '~dsl' = "TypeOfExprTsDsl";
|
|
861
871
|
protected _expr: TypeOfExpr;
|
|
862
872
|
constructor(expr: TypeOfExpr);
|
|
@@ -867,8 +877,8 @@ declare class TypeOfExprTsDsl extends Mixed$47 {
|
|
|
867
877
|
//#region src/ts-dsl/stmt/return.d.ts
|
|
868
878
|
type ReturnExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
869
879
|
type ReturnCtor = (expr?: ReturnExpr) => ReturnTsDsl;
|
|
870
|
-
declare const Mixed$
|
|
871
|
-
declare class ReturnTsDsl extends Mixed$
|
|
880
|
+
declare const Mixed$47: abstract new () => TsDsl<ts.ReturnStatement, "typescript">;
|
|
881
|
+
declare class ReturnTsDsl extends Mixed$47 {
|
|
872
882
|
readonly '~dsl' = "ReturnTsDsl";
|
|
873
883
|
protected _returnExpr?: Ref<ReturnExpr>;
|
|
874
884
|
constructor(expr?: ReturnExpr);
|
|
@@ -897,8 +907,8 @@ interface TypeExprMethods extends Node {
|
|
|
897
907
|
//#region src/ts-dsl/type/attr.d.ts
|
|
898
908
|
type Base$1 = NodeName | MaybeTsDsl<ts.EntityName>;
|
|
899
909
|
type Right = NodeName | ts.Identifier;
|
|
900
|
-
declare const Mixed$
|
|
901
|
-
declare class TypeAttrTsDsl extends Mixed$
|
|
910
|
+
declare const Mixed$46: MixinCtor<abstract new () => TsDsl<ts.QualifiedName, "typescript">, TypeExprMethods>;
|
|
911
|
+
declare class TypeAttrTsDsl extends Mixed$46 {
|
|
902
912
|
readonly '~dsl' = "TypeAttrTsDsl";
|
|
903
913
|
scope: NodeScope;
|
|
904
914
|
protected _base?: Ref<Base$1>;
|
|
@@ -922,8 +932,8 @@ declare class TypeAttrTsDsl extends Mixed$45 {
|
|
|
922
932
|
type TypeExprExpr = NodeName | TypeAttrTsDsl;
|
|
923
933
|
type TypeExprFn = (t: TypeExprTsDsl) => void;
|
|
924
934
|
type TypeExprCtor = (nameOrFn?: NodeName | TypeExprFn, fn?: TypeExprFn) => TypeExprTsDsl;
|
|
925
|
-
declare const Mixed$
|
|
926
|
-
declare class TypeExprTsDsl extends Mixed$
|
|
935
|
+
declare const Mixed$45: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.TypeReferenceNode, "typescript">, TypeExprMethods>, TypeArgsMethods>;
|
|
936
|
+
declare class TypeExprTsDsl extends Mixed$45 {
|
|
927
937
|
readonly '~dsl' = "TypeExprTsDsl";
|
|
928
938
|
scope: NodeScope;
|
|
929
939
|
protected _exprInput?: Ref<TypeExprExpr>;
|
|
@@ -947,8 +957,8 @@ declare class TypeExprTsDsl extends Mixed$44 {
|
|
|
947
957
|
type Base = string | MaybeTsDsl<ts.TypeNode>;
|
|
948
958
|
type Index = string | number | MaybeTsDsl<ts.TypeNode>;
|
|
949
959
|
type TypeIdxCtor = (base: Base, index: Index) => TypeIdxTsDsl;
|
|
950
|
-
declare const Mixed$
|
|
951
|
-
declare class TypeIdxTsDsl extends Mixed$
|
|
960
|
+
declare const Mixed$44: MixinCtor<abstract new () => TsDsl<ts.IndexedAccessTypeNode, "typescript">, TypeExprMethods>;
|
|
961
|
+
declare class TypeIdxTsDsl extends Mixed$44 {
|
|
952
962
|
readonly '~dsl' = "TypeIdxTsDsl";
|
|
953
963
|
scope: NodeScope;
|
|
954
964
|
protected _base: Base;
|
|
@@ -969,9 +979,9 @@ declare class TypeIdxTsDsl extends Mixed$43 {
|
|
|
969
979
|
//#endregion
|
|
970
980
|
//#region src/ts-dsl/type/operator.d.ts
|
|
971
981
|
type Op = ts.SyntaxKind.KeyOfKeyword | ts.SyntaxKind.ReadonlyKeyword | ts.SyntaxKind.UniqueKeyword;
|
|
972
|
-
type Type$
|
|
982
|
+
type Type$4 = string | MaybeTsDsl<ts.TypeNode>;
|
|
973
983
|
type TypeOperatorCtor = () => TypeOperatorTsDsl;
|
|
974
|
-
declare const Mixed$
|
|
984
|
+
declare const Mixed$43: abstract new () => TsDsl<ts.TypeOperatorNode, "typescript">;
|
|
975
985
|
/**
|
|
976
986
|
* Builds a TypeScript `TypeOperatorNode`, such as:
|
|
977
987
|
*
|
|
@@ -984,27 +994,27 @@ declare const Mixed$42: abstract new () => TsDsl<ts.TypeOperatorNode>;
|
|
|
984
994
|
*
|
|
985
995
|
* The node will throw during render if required fields are missing.
|
|
986
996
|
*/
|
|
987
|
-
declare class TypeOperatorTsDsl extends Mixed$
|
|
997
|
+
declare class TypeOperatorTsDsl extends Mixed$43 {
|
|
988
998
|
readonly '~dsl' = "TypeOperatorTsDsl";
|
|
989
999
|
scope: NodeScope;
|
|
990
1000
|
protected _op?: Op;
|
|
991
|
-
protected _type?: Type$
|
|
1001
|
+
protected _type?: Type$4;
|
|
992
1002
|
analyze(ctx: AnalysisContext): void;
|
|
993
1003
|
/** Shorthand: builds `keyof T`. */
|
|
994
|
-
keyof(type: Type$
|
|
1004
|
+
keyof(type: Type$4): this;
|
|
995
1005
|
/** Sets the operator explicitly. */
|
|
996
1006
|
operator(op: Op): this;
|
|
997
1007
|
/** Shorthand: builds `readonly T`. */
|
|
998
|
-
readonly(type: Type$
|
|
1008
|
+
readonly(type: Type$4): this;
|
|
999
1009
|
/** Sets the target type of the operator. */
|
|
1000
|
-
type(type: Type$
|
|
1010
|
+
type(type: Type$4): this;
|
|
1001
1011
|
/** Shorthand: builds `unique T`. */
|
|
1002
|
-
unique(type: Type$
|
|
1012
|
+
unique(type: Type$4): this;
|
|
1003
1013
|
toAst(): ts.TypeOperatorNode;
|
|
1004
1014
|
/** Throws if required fields are not set. */
|
|
1005
1015
|
$validate(): asserts this is this & {
|
|
1006
1016
|
_op: Op;
|
|
1007
|
-
_type: Type$
|
|
1017
|
+
_type: Type$4;
|
|
1008
1018
|
};
|
|
1009
1019
|
private missingRequiredCalls;
|
|
1010
1020
|
}
|
|
@@ -1012,8 +1022,8 @@ declare class TypeOperatorTsDsl extends Mixed$42 {
|
|
|
1012
1022
|
//#region src/ts-dsl/type/query.d.ts
|
|
1013
1023
|
type TypeQueryExpr = NodeName | MaybeTsDsl<TypeTsDsl | ts.Expression>;
|
|
1014
1024
|
type TypeQueryCtor = (expr: TypeQueryExpr) => TypeQueryTsDsl;
|
|
1015
|
-
declare const Mixed$
|
|
1016
|
-
declare class TypeQueryTsDsl extends Mixed$
|
|
1025
|
+
declare const Mixed$42: MixinCtor<abstract new () => TsDsl<ts.TypeQueryNode, "typescript">, TypeExprMethods>;
|
|
1026
|
+
declare class TypeQueryTsDsl extends Mixed$42 {
|
|
1017
1027
|
readonly '~dsl' = "TypeQueryTsDsl";
|
|
1018
1028
|
scope: NodeScope;
|
|
1019
1029
|
protected _expr: Ref<TypeQueryExpr>;
|
|
@@ -1024,8 +1034,8 @@ declare class TypeQueryTsDsl extends Mixed$41 {
|
|
|
1024
1034
|
//#endregion
|
|
1025
1035
|
//#region src/ts-dsl/type/tuple-member.d.ts
|
|
1026
1036
|
type TypeTupleMemberCtor = (name: NodeName) => TypeTupleMemberTsDsl;
|
|
1027
|
-
declare const Mixed$
|
|
1028
|
-
declare class TypeTupleMemberTsDsl extends Mixed$
|
|
1037
|
+
declare const Mixed$41: MixinCtor<abstract new () => TsDsl<ts.NamedTupleMember, "typescript">, OptionalMethods>;
|
|
1038
|
+
declare class TypeTupleMemberTsDsl extends Mixed$41 {
|
|
1029
1039
|
readonly '~dsl' = "TypeTupleMemberTsDsl";
|
|
1030
1040
|
scope: NodeScope;
|
|
1031
1041
|
protected _type?: Ref<NodeName | TypeTsDsl>;
|
|
@@ -1074,8 +1084,8 @@ interface SpreadMethods extends Node {
|
|
|
1074
1084
|
type CallArgs = ReadonlyArray<CallCallee | undefined>;
|
|
1075
1085
|
type CallCallee = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1076
1086
|
type CallCtor = (callee: CallCallee, ...args: CallArgs) => CallTsDsl;
|
|
1077
|
-
declare const Mixed$
|
|
1078
|
-
declare class CallTsDsl extends Mixed$
|
|
1087
|
+
declare const Mixed$40: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.CallExpression, "typescript">, TypeArgsMethods>, SpreadMethods>, ExprMethods>, AsMethods>, ArgsMethods>;
|
|
1088
|
+
declare class CallTsDsl extends Mixed$40 {
|
|
1079
1089
|
readonly '~dsl' = "CallTsDsl";
|
|
1080
1090
|
protected _callee: Ref<CallCallee>;
|
|
1081
1091
|
constructor(callee: CallCallee, ...args: CallArgs);
|
|
@@ -1141,14 +1151,15 @@ declare class TsDslContext {
|
|
|
1141
1151
|
declare const ctx: TsDslContext;
|
|
1142
1152
|
//#endregion
|
|
1143
1153
|
//#region src/ts-dsl/base.d.ts
|
|
1144
|
-
declare abstract class TsDsl<T extends ts.Node = ts.Node> implements Node<T> {
|
|
1154
|
+
declare abstract class TsDsl<T extends ts.Node = ts.Node, L extends Language = 'typescript'> implements Node<T> {
|
|
1145
1155
|
analyze(_: AnalysisContext): void;
|
|
1146
1156
|
clone(): this;
|
|
1147
1157
|
exported?: boolean;
|
|
1148
1158
|
file?: File;
|
|
1149
1159
|
get name(): Node['name'];
|
|
1150
1160
|
readonly nameSanitizer?: NodeNameSanitizer;
|
|
1151
|
-
language:
|
|
1161
|
+
language: L;
|
|
1162
|
+
meta: Required<ProjectMeta>[L];
|
|
1152
1163
|
parent?: Node;
|
|
1153
1164
|
root: boolean;
|
|
1154
1165
|
scope?: NodeScope;
|
|
@@ -1189,8 +1200,8 @@ type TypeOf<I> = I extends ReadonlyArray<infer U> ? ReadonlyArray<TypeOf<U>> : I
|
|
|
1189
1200
|
//#region src/ts-dsl/expr/postfix.d.ts
|
|
1190
1201
|
type PostfixExpr = string | MaybeTsDsl<ts.Expression>;
|
|
1191
1202
|
type PostfixOp = ts.PostfixUnaryOperator;
|
|
1192
|
-
declare const Mixed$
|
|
1193
|
-
declare class PostfixTsDsl extends Mixed$
|
|
1203
|
+
declare const Mixed$39: abstract new () => TsDsl<ts.PostfixUnaryExpression, "typescript">;
|
|
1204
|
+
declare class PostfixTsDsl extends Mixed$39 {
|
|
1194
1205
|
readonly '~dsl' = "PostfixTsDsl";
|
|
1195
1206
|
protected _expr?: PostfixExpr;
|
|
1196
1207
|
protected _op?: PostfixOp;
|
|
@@ -1311,8 +1322,8 @@ declare function createLiteral(value: TsLiteralValue, leadingComments?: Readonly
|
|
|
1311
1322
|
//#region src/ts-dsl/expr/prefix.d.ts
|
|
1312
1323
|
type PrefixExpr = string | MaybeTsDsl<ts.Expression>;
|
|
1313
1324
|
type PrefixOp = ts.PrefixUnaryOperator;
|
|
1314
|
-
declare const Mixed$
|
|
1315
|
-
declare class PrefixTsDsl extends Mixed$
|
|
1325
|
+
declare const Mixed$38: abstract new () => TsDsl<ts.PrefixUnaryExpression, "typescript">;
|
|
1326
|
+
declare class PrefixTsDsl extends Mixed$38 {
|
|
1316
1327
|
readonly '~dsl' = "PrefixTsDsl";
|
|
1317
1328
|
protected _expr?: PrefixExpr;
|
|
1318
1329
|
protected _op?: PrefixOp;
|
|
@@ -1352,8 +1363,8 @@ declare class NoteTsDsl extends TsDsl<ts.Node> {
|
|
|
1352
1363
|
//#endregion
|
|
1353
1364
|
//#region src/ts-dsl/decl/field.d.ts
|
|
1354
1365
|
type FieldType = NodeName | TypeTsDsl;
|
|
1355
|
-
declare const Mixed$
|
|
1356
|
-
declare class FieldTsDsl extends Mixed$
|
|
1366
|
+
declare const Mixed$37: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.PropertyDeclaration, "typescript">, ValueMethods>, StaticMethods>, ReadonlyMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, OptionalMethods>, DocMethods>, DecoratorMethods>;
|
|
1367
|
+
declare class FieldTsDsl extends Mixed$37 {
|
|
1357
1368
|
readonly '~dsl' = "FieldTsDsl";
|
|
1358
1369
|
readonly nameSanitizer: (name: string) => string;
|
|
1359
1370
|
protected _type?: TypeTsDsl;
|
|
@@ -1365,8 +1376,8 @@ declare class FieldTsDsl extends Mixed$36 {
|
|
|
1365
1376
|
}
|
|
1366
1377
|
//#endregion
|
|
1367
1378
|
//#region src/ts-dsl/decl/init.d.ts
|
|
1368
|
-
declare const Mixed$
|
|
1369
|
-
declare class InitTsDsl extends Mixed$
|
|
1379
|
+
declare const Mixed$36: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ConstructorDeclaration, "typescript">, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>;
|
|
1380
|
+
declare class InitTsDsl extends Mixed$36 {
|
|
1370
1381
|
readonly '~dsl' = "InitTsDsl";
|
|
1371
1382
|
constructor(fn?: (i: InitTsDsl) => void);
|
|
1372
1383
|
analyze(ctx: AnalysisContext): void;
|
|
@@ -1375,8 +1386,8 @@ declare class InitTsDsl extends Mixed$35 {
|
|
|
1375
1386
|
//#endregion
|
|
1376
1387
|
//#region src/ts-dsl/decl/class.d.ts
|
|
1377
1388
|
type Body = Array<MaybeTsDsl<ts.ClassElement | ts.Node>>;
|
|
1378
|
-
declare const Mixed$
|
|
1379
|
-
declare class ClassTsDsl extends Mixed$
|
|
1389
|
+
declare const Mixed$35: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ClassDeclaration, "typescript">, TypeParamsMethods>, ExportMethods>, DocMethods>, DefaultMethods>, DecoratorMethods>, AbstractMethods>;
|
|
1390
|
+
declare class ClassTsDsl extends Mixed$35 {
|
|
1380
1391
|
readonly '~dsl' = "ClassTsDsl";
|
|
1381
1392
|
readonly nameSanitizer: (name: string) => string;
|
|
1382
1393
|
protected baseClass?: Ref<NodeName>;
|
|
@@ -1403,8 +1414,8 @@ declare class ClassTsDsl extends Mixed$34 {
|
|
|
1403
1414
|
}
|
|
1404
1415
|
//#endregion
|
|
1405
1416
|
//#region src/ts-dsl/decl/decorator.d.ts
|
|
1406
|
-
declare const Mixed$
|
|
1407
|
-
declare class DecoratorTsDsl extends Mixed$
|
|
1417
|
+
declare const Mixed$34: MixinCtor<abstract new () => TsDsl<ts.Decorator, "typescript">, ArgsMethods>;
|
|
1418
|
+
declare class DecoratorTsDsl extends Mixed$34 {
|
|
1408
1419
|
readonly '~dsl' = "DecoratorTsDsl";
|
|
1409
1420
|
readonly nameSanitizer: (name: string) => string;
|
|
1410
1421
|
constructor(name: NodeName, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>);
|
|
@@ -1415,8 +1426,8 @@ declare class DecoratorTsDsl extends Mixed$33 {
|
|
|
1415
1426
|
//#region src/ts-dsl/decl/member.d.ts
|
|
1416
1427
|
type Value$2 = string | number | MaybeTsDsl<ts.Expression>;
|
|
1417
1428
|
type ValueFn$1 = Value$2 | ((m: EnumMemberTsDsl) => void);
|
|
1418
|
-
declare const Mixed$
|
|
1419
|
-
declare class EnumMemberTsDsl extends Mixed$
|
|
1429
|
+
declare const Mixed$33: MixinCtor<abstract new () => TsDsl<ts.EnumMember, "typescript">, DocMethods>;
|
|
1430
|
+
declare class EnumMemberTsDsl extends Mixed$33 {
|
|
1420
1431
|
readonly '~dsl' = "EnumMemberTsDsl";
|
|
1421
1432
|
private _value?;
|
|
1422
1433
|
constructor(name: NodeName, value?: ValueFn$1);
|
|
@@ -1429,8 +1440,8 @@ declare class EnumMemberTsDsl extends Mixed$32 {
|
|
|
1429
1440
|
//#region src/ts-dsl/decl/enum.d.ts
|
|
1430
1441
|
type Value$1 = string | number | MaybeTsDsl<ts.Expression>;
|
|
1431
1442
|
type ValueFn = Value$1 | ((m: EnumMemberTsDsl) => void);
|
|
1432
|
-
declare const Mixed$
|
|
1433
|
-
declare class EnumTsDsl extends Mixed$
|
|
1443
|
+
declare const Mixed$32: MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.EnumDeclaration, "typescript">, ExportMethods>, DocMethods>, ConstMethods>;
|
|
1444
|
+
declare class EnumTsDsl extends Mixed$32 {
|
|
1434
1445
|
readonly '~dsl' = "EnumTsDsl";
|
|
1435
1446
|
readonly nameSanitizer: (name: string) => string;
|
|
1436
1447
|
private _members;
|
|
@@ -1445,8 +1456,8 @@ declare class EnumTsDsl extends Mixed$31 {
|
|
|
1445
1456
|
//#endregion
|
|
1446
1457
|
//#region src/ts-dsl/decl/func.d.ts
|
|
1447
1458
|
type FuncMode = 'arrow' | 'decl' | 'expr';
|
|
1448
|
-
declare const Mixed$
|
|
1449
|
-
declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$
|
|
1459
|
+
declare const Mixed$31: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrowFunction, "typescript">, TypeReturnsMethods>, TypeParamsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, ExportMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AsMethods>, AbstractMethods>;
|
|
1460
|
+
declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$31 {
|
|
1450
1461
|
readonly '~dsl' = "FuncTsDsl";
|
|
1451
1462
|
readonly '~mode': M;
|
|
1452
1463
|
readonly nameSanitizer: (name: string) => string;
|
|
@@ -1477,8 +1488,8 @@ declare const FuncTsDsl: {
|
|
|
1477
1488
|
type FuncTsDsl<M extends FuncMode = 'arrow'> = ImplFuncTsDsl<M>;
|
|
1478
1489
|
//#endregion
|
|
1479
1490
|
//#region src/ts-dsl/decl/getter.d.ts
|
|
1480
|
-
declare const Mixed$
|
|
1481
|
-
declare class GetterTsDsl extends Mixed$
|
|
1491
|
+
declare const Mixed$30: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.GetAccessorDeclaration, "typescript">, TypeReturnsMethods>, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
|
|
1492
|
+
declare class GetterTsDsl extends Mixed$30 {
|
|
1482
1493
|
readonly '~dsl' = "GetterTsDsl";
|
|
1483
1494
|
readonly nameSanitizer: (name: string) => string;
|
|
1484
1495
|
constructor(name: NodeName, fn?: (g: GetterTsDsl) => void);
|
|
@@ -1487,11 +1498,11 @@ declare class GetterTsDsl extends Mixed$29 {
|
|
|
1487
1498
|
}
|
|
1488
1499
|
//#endregion
|
|
1489
1500
|
//#region src/ts-dsl/decl/pattern.d.ts
|
|
1490
|
-
declare const Mixed$
|
|
1501
|
+
declare const Mixed$29: abstract new () => TsDsl<ts.BindingName, "typescript">;
|
|
1491
1502
|
/**
|
|
1492
1503
|
* Builds binding patterns (e.g., `{ foo, bar }`, `[a, b, ...rest]`).
|
|
1493
1504
|
*/
|
|
1494
|
-
declare class PatternTsDsl extends Mixed$
|
|
1505
|
+
declare class PatternTsDsl extends Mixed$29 {
|
|
1495
1506
|
readonly '~dsl' = "PatternTsDsl";
|
|
1496
1507
|
protected pattern?: {
|
|
1497
1508
|
kind: 'array';
|
|
@@ -1525,8 +1536,8 @@ declare class PatternTsDsl extends Mixed$28 {
|
|
|
1525
1536
|
}
|
|
1526
1537
|
//#endregion
|
|
1527
1538
|
//#region src/ts-dsl/decl/setter.d.ts
|
|
1528
|
-
declare const Mixed$
|
|
1529
|
-
declare class SetterTsDsl extends Mixed$
|
|
1539
|
+
declare const Mixed$28: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.SetAccessorDeclaration, "typescript">, StaticMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, ParamMethods>, DocMethods>, DoMethods>, DecoratorMethods>, AsyncMethods>, AbstractMethods>;
|
|
1540
|
+
declare class SetterTsDsl extends Mixed$28 {
|
|
1530
1541
|
readonly '~dsl' = "SetterTsDsl";
|
|
1531
1542
|
readonly nameSanitizer: (name: string) => string;
|
|
1532
1543
|
constructor(name: NodeName, fn?: (s: SetterTsDsl) => void);
|
|
@@ -1548,8 +1559,8 @@ interface LayoutMethods extends Node {
|
|
|
1548
1559
|
//#endregion
|
|
1549
1560
|
//#region src/ts-dsl/expr/array.d.ts
|
|
1550
1561
|
type ArrayExpr = string | number | boolean | MaybeTsDsl<ts.Expression>;
|
|
1551
|
-
declare const Mixed$
|
|
1552
|
-
declare class ArrayTsDsl extends Mixed$
|
|
1562
|
+
declare const Mixed$27: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ArrayLiteralExpression, "typescript">, SpreadMethods>, LayoutMethods>, ExprMethods>, AsMethods>;
|
|
1563
|
+
declare class ArrayTsDsl extends Mixed$27 {
|
|
1553
1564
|
readonly '~dsl' = "ArrayTsDsl";
|
|
1554
1565
|
protected _elements: Array<MaybeTsDsl<ts.Expression>>;
|
|
1555
1566
|
constructor(...exprs: Array<ArrayExpr>);
|
|
@@ -1563,8 +1574,8 @@ declare class ArrayTsDsl extends Mixed$26 {
|
|
|
1563
1574
|
//#endregion
|
|
1564
1575
|
//#region src/ts-dsl/expr/expr.d.ts
|
|
1565
1576
|
type Id = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1566
|
-
declare const Mixed$
|
|
1567
|
-
declare class ExprTsDsl extends Mixed$
|
|
1577
|
+
declare const Mixed$26: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Expression, "typescript">, TypeExprMethods>, SpreadMethods>, OperatorMethods>, ExprMethods>, AsMethods>;
|
|
1578
|
+
declare class ExprTsDsl extends Mixed$26 {
|
|
1568
1579
|
readonly '~dsl' = "ExprTsDsl";
|
|
1569
1580
|
protected _exprInput: Ref<Id>;
|
|
1570
1581
|
constructor(id: Id);
|
|
@@ -1573,8 +1584,8 @@ declare class ExprTsDsl extends Mixed$25 {
|
|
|
1573
1584
|
}
|
|
1574
1585
|
//#endregion
|
|
1575
1586
|
//#region src/ts-dsl/expr/id.d.ts
|
|
1576
|
-
declare const Mixed$
|
|
1577
|
-
declare class IdTsDsl extends Mixed$
|
|
1587
|
+
declare const Mixed$25: abstract new () => TsDsl<ts.Identifier, "typescript">;
|
|
1588
|
+
declare class IdTsDsl extends Mixed$25 {
|
|
1578
1589
|
readonly '~dsl' = "IdTsDsl";
|
|
1579
1590
|
constructor(name: string);
|
|
1580
1591
|
analyze(ctx: AnalysisContext): void;
|
|
@@ -1631,8 +1642,8 @@ declare const ts$1: {
|
|
|
1631
1642
|
};
|
|
1632
1643
|
//#endregion
|
|
1633
1644
|
//#region src/ts-dsl/expr/literal.d.ts
|
|
1634
|
-
declare const Mixed$
|
|
1635
|
-
declare class LiteralTsDsl extends Mixed$
|
|
1645
|
+
declare const Mixed$24: MixinCtor<abstract new () => TsDsl<ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.PrefixUnaryExpression | ts.StringLiteral, "typescript">, AsMethods>;
|
|
1646
|
+
declare class LiteralTsDsl extends Mixed$24 {
|
|
1636
1647
|
readonly '~dsl' = "LiteralTsDsl";
|
|
1637
1648
|
protected value: ts$1.LiteralValue;
|
|
1638
1649
|
constructor(value: ts$1.LiteralValue);
|
|
@@ -1668,8 +1679,8 @@ type Meta = {
|
|
|
1668
1679
|
kind: 'spread';
|
|
1669
1680
|
name?: undefined;
|
|
1670
1681
|
};
|
|
1671
|
-
declare const Mixed$
|
|
1672
|
-
declare class ObjectPropTsDsl extends Mixed$
|
|
1682
|
+
declare const Mixed$23: MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralElementLike, "typescript">, DocMethods>;
|
|
1683
|
+
declare class ObjectPropTsDsl extends Mixed$23 {
|
|
1673
1684
|
readonly '~dsl' = "ObjectPropTsDsl";
|
|
1674
1685
|
protected _value?: Ref<ObjectPropValue>;
|
|
1675
1686
|
protected _meta: Meta;
|
|
@@ -1690,8 +1701,8 @@ declare class ObjectPropTsDsl extends Mixed$22 {
|
|
|
1690
1701
|
//#region src/ts-dsl/expr/object.d.ts
|
|
1691
1702
|
type Expr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1692
1703
|
type Stmt = NodeName | MaybeTsDsl<ts.Statement>;
|
|
1693
|
-
declare const Mixed$
|
|
1694
|
-
declare class ObjectTsDsl extends Mixed$
|
|
1704
|
+
declare const Mixed$22: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralExpression, "typescript">, LayoutMethods>, HintMethods>, ExprMethods>, AsMethods>;
|
|
1705
|
+
declare class ObjectTsDsl extends Mixed$22 {
|
|
1695
1706
|
readonly '~dsl' = "ObjectTsDsl";
|
|
1696
1707
|
protected _props: Map<string, ObjectPropTsDsl>;
|
|
1697
1708
|
protected _spreadCounter: number;
|
|
@@ -1723,8 +1734,8 @@ declare class ObjectTsDsl extends Mixed$21 {
|
|
|
1723
1734
|
//#region src/ts-dsl/expr/regexp.d.ts
|
|
1724
1735
|
type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u' | 'y';
|
|
1725
1736
|
type RegexFlags<Avail extends string = RegexFlag> = '' | { [K in Avail]: `${K}${RegexFlags<Exclude<Avail, K>>}` }[Avail];
|
|
1726
|
-
declare const Mixed$
|
|
1727
|
-
declare class RegExpTsDsl extends Mixed$
|
|
1737
|
+
declare const Mixed$21: abstract new () => TsDsl<ts.RegularExpressionLiteral, "typescript">;
|
|
1738
|
+
declare class RegExpTsDsl extends Mixed$21 {
|
|
1728
1739
|
readonly '~dsl' = "RegExpTsDsl";
|
|
1729
1740
|
protected pattern: string;
|
|
1730
1741
|
protected flags?: RegexFlags;
|
|
@@ -1735,8 +1746,8 @@ declare class RegExpTsDsl extends Mixed$20 {
|
|
|
1735
1746
|
//#endregion
|
|
1736
1747
|
//#region src/ts-dsl/expr/template.d.ts
|
|
1737
1748
|
type TemplatePart = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1738
|
-
declare const Mixed$
|
|
1739
|
-
declare class TemplateTsDsl extends Mixed$
|
|
1749
|
+
declare const Mixed$20: abstract new () => TsDsl<ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral, "typescript">;
|
|
1750
|
+
declare class TemplateTsDsl extends Mixed$20 {
|
|
1740
1751
|
readonly '~dsl' = "TemplateTsDsl";
|
|
1741
1752
|
protected parts: Array<Ref<TemplatePart>>;
|
|
1742
1753
|
constructor(value?: TemplatePart);
|
|
@@ -1746,8 +1757,8 @@ declare class TemplateTsDsl extends Mixed$19 {
|
|
|
1746
1757
|
}
|
|
1747
1758
|
//#endregion
|
|
1748
1759
|
//#region src/ts-dsl/expr/ternary.d.ts
|
|
1749
|
-
declare const Mixed$
|
|
1750
|
-
declare class TernaryTsDsl extends Mixed$
|
|
1760
|
+
declare const Mixed$19: abstract new () => TsDsl<ts.ConditionalExpression, "typescript">;
|
|
1761
|
+
declare class TernaryTsDsl extends Mixed$19 {
|
|
1751
1762
|
readonly '~dsl' = "TernaryTsDsl";
|
|
1752
1763
|
protected _condition?: string | MaybeTsDsl<ts.Expression>;
|
|
1753
1764
|
protected _then?: string | MaybeTsDsl<ts.Expression>;
|
|
@@ -1776,8 +1787,8 @@ declare class NewlineTsDsl extends TsDsl<ts.Identifier> {
|
|
|
1776
1787
|
}
|
|
1777
1788
|
//#endregion
|
|
1778
1789
|
//#region src/ts-dsl/stmt/block.d.ts
|
|
1779
|
-
declare const Mixed$
|
|
1780
|
-
declare class BlockTsDsl extends Mixed$
|
|
1790
|
+
declare const Mixed$18: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Block, "typescript">, LayoutMethods>, DoMethods>;
|
|
1791
|
+
declare class BlockTsDsl extends Mixed$18 {
|
|
1781
1792
|
readonly '~dsl' = "BlockTsDsl";
|
|
1782
1793
|
constructor(...items: Array<DoExpr>);
|
|
1783
1794
|
analyze(ctx: AnalysisContext): void;
|
|
@@ -1785,8 +1796,8 @@ declare class BlockTsDsl extends Mixed$17 {
|
|
|
1785
1796
|
}
|
|
1786
1797
|
//#endregion
|
|
1787
1798
|
//#region src/ts-dsl/stmt/var.d.ts
|
|
1788
|
-
declare const Mixed$
|
|
1789
|
-
declare class VarTsDsl extends Mixed$
|
|
1799
|
+
declare const Mixed$17: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.VariableStatement, "typescript">, ValueMethods>, PatternMethods>, HintMethods>, ExportMethods>, DocMethods>, DefaultMethods>;
|
|
1800
|
+
declare class VarTsDsl extends Mixed$17 {
|
|
1790
1801
|
readonly '~dsl' = "VarTsDsl";
|
|
1791
1802
|
readonly nameSanitizer: (name: string) => string;
|
|
1792
1803
|
protected kind: ts.NodeFlags;
|
|
@@ -1809,8 +1820,8 @@ declare class VarTsDsl extends Mixed$16 {
|
|
|
1809
1820
|
type ForMode = 'for' | 'in' | 'of';
|
|
1810
1821
|
type ForCondition = MaybeTsDsl<ts.Expression>;
|
|
1811
1822
|
type ForIterable = MaybeTsDsl<ts.Expression>;
|
|
1812
|
-
declare const Mixed$
|
|
1813
|
-
declare class ImplForTsDsl<M extends ForMode = 'for'> extends Mixed$
|
|
1823
|
+
declare const Mixed$16: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ForStatement, "typescript">, LayoutMethods>, DoMethods>;
|
|
1824
|
+
declare class ImplForTsDsl<M extends ForMode = 'for'> extends Mixed$16 {
|
|
1814
1825
|
readonly '~dsl' = "ForTsDsl";
|
|
1815
1826
|
protected _await?: boolean;
|
|
1816
1827
|
protected _condition?: ForCondition;
|
|
@@ -1853,8 +1864,8 @@ type ForTsDsl<M extends ForMode = 'for'> = ImplForTsDsl<M>;
|
|
|
1853
1864
|
//#endregion
|
|
1854
1865
|
//#region src/ts-dsl/stmt/if.d.ts
|
|
1855
1866
|
type IfCondition = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1856
|
-
declare const Mixed$
|
|
1857
|
-
declare class IfTsDsl extends Mixed$
|
|
1867
|
+
declare const Mixed$15: MixinCtor<abstract new () => TsDsl<ts.IfStatement, "typescript">, DoMethods>;
|
|
1868
|
+
declare class IfTsDsl extends Mixed$15 {
|
|
1858
1869
|
readonly '~dsl' = "IfTsDsl";
|
|
1859
1870
|
protected _condition?: IfCondition;
|
|
1860
1871
|
protected _else?: Array<DoExpr>;
|
|
@@ -1872,8 +1883,8 @@ declare class IfTsDsl extends Mixed$14 {
|
|
|
1872
1883
|
}
|
|
1873
1884
|
//#endregion
|
|
1874
1885
|
//#region src/ts-dsl/stmt/stmt.d.ts
|
|
1875
|
-
declare const Mixed$
|
|
1876
|
-
declare class StmtTsDsl extends Mixed$
|
|
1886
|
+
declare const Mixed$14: abstract new () => TsDsl<ts.Statement, "typescript">;
|
|
1887
|
+
declare class StmtTsDsl extends Mixed$14 {
|
|
1877
1888
|
readonly '~dsl' = "StmtTsDsl";
|
|
1878
1889
|
protected _inner: ts.Expression | ts.Statement | TsDsl<any>;
|
|
1879
1890
|
constructor(inner: ts.Expression | ts.Statement | TsDsl<any>);
|
|
@@ -1882,8 +1893,8 @@ declare class StmtTsDsl extends Mixed$13 {
|
|
|
1882
1893
|
}
|
|
1883
1894
|
//#endregion
|
|
1884
1895
|
//#region src/ts-dsl/stmt/throw.d.ts
|
|
1885
|
-
declare const Mixed$
|
|
1886
|
-
declare class ThrowTsDsl extends Mixed$
|
|
1896
|
+
declare const Mixed$13: abstract new () => TsDsl<ts.ThrowStatement, "typescript">;
|
|
1897
|
+
declare class ThrowTsDsl extends Mixed$13 {
|
|
1887
1898
|
readonly '~dsl' = "ThrowTsDsl";
|
|
1888
1899
|
protected error: string | MaybeTsDsl<ts.Expression>;
|
|
1889
1900
|
protected msg?: string | MaybeTsDsl<ts.Expression>;
|
|
@@ -1895,8 +1906,8 @@ declare class ThrowTsDsl extends Mixed$12 {
|
|
|
1895
1906
|
}
|
|
1896
1907
|
//#endregion
|
|
1897
1908
|
//#region src/ts-dsl/stmt/try.d.ts
|
|
1898
|
-
declare const Mixed$
|
|
1899
|
-
declare class TryTsDsl extends Mixed$
|
|
1909
|
+
declare const Mixed$12: abstract new () => TsDsl<ts.TryStatement, "typescript">;
|
|
1910
|
+
declare class TryTsDsl extends Mixed$12 {
|
|
1900
1911
|
readonly '~dsl' = "TryTsDsl";
|
|
1901
1912
|
protected _catch?: Array<DoExpr>;
|
|
1902
1913
|
protected _catchArg?: NodeName;
|
|
@@ -1946,8 +1957,8 @@ declare class TokenTsDsl<K extends ts.SyntaxKind = never> extends TsDsl<ts.Token
|
|
|
1946
1957
|
//#endregion
|
|
1947
1958
|
//#region src/ts-dsl/type/alias.d.ts
|
|
1948
1959
|
type Value = MaybeTsDsl<ts.TypeNode>;
|
|
1949
|
-
declare const Mixed$
|
|
1950
|
-
declare class TypeAliasTsDsl extends Mixed$
|
|
1960
|
+
declare const Mixed$11: MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.TypeAliasDeclaration, "typescript">, TypeParamsMethods>, ExportMethods>, DocMethods>;
|
|
1961
|
+
declare class TypeAliasTsDsl extends Mixed$11 {
|
|
1951
1962
|
readonly '~dsl' = "TypeAliasTsDsl";
|
|
1952
1963
|
readonly nameSanitizer: (name: string) => string;
|
|
1953
1964
|
scope: NodeScope;
|
|
@@ -1966,21 +1977,21 @@ declare class TypeAliasTsDsl extends Mixed$10 {
|
|
|
1966
1977
|
}
|
|
1967
1978
|
//#endregion
|
|
1968
1979
|
//#region src/ts-dsl/type/and.d.ts
|
|
1969
|
-
type Type$
|
|
1970
|
-
declare const Mixed$
|
|
1971
|
-
declare class TypeAndTsDsl extends Mixed$
|
|
1980
|
+
type Type$3 = NodeName | ts.TypeNode | TypeTsDsl;
|
|
1981
|
+
declare const Mixed$10: abstract new () => TsDsl<ts.IntersectionTypeNode, "typescript">;
|
|
1982
|
+
declare class TypeAndTsDsl extends Mixed$10 {
|
|
1972
1983
|
readonly '~dsl' = "TypeAndTsDsl";
|
|
1973
1984
|
scope: NodeScope;
|
|
1974
|
-
protected _types: Array<Ref<Type$
|
|
1975
|
-
constructor(...nodes: Array<Type$
|
|
1985
|
+
protected _types: Array<Ref<Type$3>>;
|
|
1986
|
+
constructor(...nodes: Array<Type$3>);
|
|
1976
1987
|
analyze(ctx: AnalysisContext): void;
|
|
1977
|
-
types(...nodes: Array<Type$
|
|
1988
|
+
types(...nodes: Array<Type$3>): this;
|
|
1978
1989
|
toAst(): ts.IntersectionTypeNode;
|
|
1979
1990
|
}
|
|
1980
1991
|
//#endregion
|
|
1981
1992
|
//#region src/ts-dsl/type/func.d.ts
|
|
1982
|
-
declare const Mixed$
|
|
1983
|
-
declare class TypeFuncTsDsl extends Mixed$
|
|
1993
|
+
declare const Mixed$9: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.FunctionTypeNode, "typescript">, TypeReturnsMethods>, TypeParamsMethods>, ParamMethods>, DocMethods>;
|
|
1994
|
+
declare class TypeFuncTsDsl extends Mixed$9 {
|
|
1984
1995
|
readonly '~dsl' = "TypeFuncTsDsl";
|
|
1985
1996
|
scope: NodeScope;
|
|
1986
1997
|
analyze(ctx: AnalysisContext): void;
|
|
@@ -1992,8 +2003,8 @@ declare class TypeFuncTsDsl extends Mixed$8 {
|
|
|
1992
2003
|
}
|
|
1993
2004
|
//#endregion
|
|
1994
2005
|
//#region src/ts-dsl/type/literal.d.ts
|
|
1995
|
-
declare const Mixed$
|
|
1996
|
-
declare class TypeLiteralTsDsl extends Mixed$
|
|
2006
|
+
declare const Mixed$8: abstract new () => TsDsl<ts.LiteralTypeNode, "typescript">;
|
|
2007
|
+
declare class TypeLiteralTsDsl extends Mixed$8 {
|
|
1997
2008
|
readonly '~dsl' = "TypeLiteralTsDsl";
|
|
1998
2009
|
scope: NodeScope;
|
|
1999
2010
|
protected value: ts$1.LiteralValue;
|
|
@@ -2003,8 +2014,8 @@ declare class TypeLiteralTsDsl extends Mixed$7 {
|
|
|
2003
2014
|
}
|
|
2004
2015
|
//#endregion
|
|
2005
2016
|
//#region src/ts-dsl/type/mapped.d.ts
|
|
2006
|
-
declare const Mixed$
|
|
2007
|
-
declare class TypeMappedTsDsl extends Mixed$
|
|
2017
|
+
declare const Mixed$7: abstract new () => TsDsl<ts.MappedTypeNode, "typescript">;
|
|
2018
|
+
declare class TypeMappedTsDsl extends Mixed$7 {
|
|
2008
2019
|
readonly '~dsl' = "TypeMappedTsDsl";
|
|
2009
2020
|
scope: NodeScope;
|
|
2010
2021
|
protected questionToken?: TokenTsDsl<ts.SyntaxKind.QuestionToken | ts.SyntaxKind.PlusToken | ts.SyntaxKind.MinusToken>;
|
|
@@ -2038,8 +2049,8 @@ declare class TypeMappedTsDsl extends Mixed$6 {
|
|
|
2038
2049
|
//#region src/ts-dsl/type/idx-sig.d.ts
|
|
2039
2050
|
type TypeIdxSigType = string | MaybeTsDsl<ts.TypeNode>;
|
|
2040
2051
|
type TypeIdxSigKind = 'idxSig';
|
|
2041
|
-
declare const Mixed$
|
|
2042
|
-
declare class TypeIdxSigTsDsl extends Mixed$
|
|
2052
|
+
declare const Mixed$6: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.IndexSignatureDeclaration, "typescript">, ReadonlyMethods>, DocMethods>;
|
|
2053
|
+
declare class TypeIdxSigTsDsl extends Mixed$6 {
|
|
2043
2054
|
readonly '~dsl' = "TypeIdxSigTsDsl";
|
|
2044
2055
|
scope: NodeScope;
|
|
2045
2056
|
protected _key?: TypeIdxSigType;
|
|
@@ -2067,8 +2078,8 @@ declare class TypeIdxSigTsDsl extends Mixed$5 {
|
|
|
2067
2078
|
//#region src/ts-dsl/type/prop.d.ts
|
|
2068
2079
|
type TypePropType = NodeName | MaybeTsDsl<ts.TypeNode>;
|
|
2069
2080
|
type TypePropKind = 'prop';
|
|
2070
|
-
declare const Mixed$
|
|
2071
|
-
declare class TypePropTsDsl extends Mixed$
|
|
2081
|
+
declare const Mixed$5: MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.TypeElement, "typescript">, ReadonlyMethods>, OptionalMethods>, DocMethods>;
|
|
2082
|
+
declare class TypePropTsDsl extends Mixed$5 {
|
|
2072
2083
|
readonly '~dsl' = "TypePropTsDsl";
|
|
2073
2084
|
scope: NodeScope;
|
|
2074
2085
|
protected _type?: Ref<TypePropType>;
|
|
@@ -2090,8 +2101,8 @@ declare class TypePropTsDsl extends Mixed$4 {
|
|
|
2090
2101
|
}
|
|
2091
2102
|
//#endregion
|
|
2092
2103
|
//#region src/ts-dsl/type/object.d.ts
|
|
2093
|
-
declare const Mixed$
|
|
2094
|
-
declare class TypeObjectTsDsl extends Mixed$
|
|
2104
|
+
declare const Mixed$4: abstract new () => TsDsl<ts.TypeNode, "typescript">;
|
|
2105
|
+
declare class TypeObjectTsDsl extends Mixed$4 {
|
|
2095
2106
|
readonly '~dsl' = "TypeObjectTsDsl";
|
|
2096
2107
|
scope: NodeScope;
|
|
2097
2108
|
protected _props: Map<string, TypePropTsDsl | TypeIdxSigTsDsl>;
|
|
@@ -2110,21 +2121,21 @@ declare class TypeObjectTsDsl extends Mixed$3 {
|
|
|
2110
2121
|
}
|
|
2111
2122
|
//#endregion
|
|
2112
2123
|
//#region src/ts-dsl/type/or.d.ts
|
|
2113
|
-
type Type$
|
|
2114
|
-
declare const Mixed$
|
|
2115
|
-
declare class TypeOrTsDsl extends Mixed$
|
|
2124
|
+
type Type$2 = NodeName | ts.TypeNode | TypeTsDsl;
|
|
2125
|
+
declare const Mixed$3: abstract new () => TsDsl<ts.UnionTypeNode, "typescript">;
|
|
2126
|
+
declare class TypeOrTsDsl extends Mixed$3 {
|
|
2116
2127
|
readonly '~dsl' = "TypeOrTsDsl";
|
|
2117
2128
|
scope: NodeScope;
|
|
2118
|
-
protected _types: Array<Ref<Type$
|
|
2119
|
-
constructor(...nodes: Array<Type$
|
|
2129
|
+
protected _types: Array<Ref<Type$2>>;
|
|
2130
|
+
constructor(...nodes: Array<Type$2>);
|
|
2120
2131
|
analyze(ctx: AnalysisContext): void;
|
|
2121
|
-
types(...nodes: Array<Type$
|
|
2132
|
+
types(...nodes: Array<Type$2>): this;
|
|
2122
2133
|
toAst(): ts.UnionTypeNode;
|
|
2123
2134
|
}
|
|
2124
2135
|
//#endregion
|
|
2125
2136
|
//#region src/ts-dsl/type/template.d.ts
|
|
2126
|
-
declare const Mixed$
|
|
2127
|
-
declare class TypeTemplateTsDsl extends Mixed$
|
|
2137
|
+
declare const Mixed$2: abstract new () => TsDsl<ts.TemplateLiteralTypeNode, "typescript">;
|
|
2138
|
+
declare class TypeTemplateTsDsl extends Mixed$2 {
|
|
2128
2139
|
readonly '~dsl' = "TypeTemplateTsDsl";
|
|
2129
2140
|
scope: NodeScope;
|
|
2130
2141
|
protected parts: Array<string | MaybeTsDsl<ts.TypeNode>>;
|
|
@@ -2135,9 +2146,42 @@ declare class TypeTemplateTsDsl extends Mixed$1 {
|
|
|
2135
2146
|
toAst(): ts.TemplateLiteralTypeNode;
|
|
2136
2147
|
}
|
|
2137
2148
|
//#endregion
|
|
2149
|
+
//#region src/ts-dsl/type/ternary.d.ts
|
|
2150
|
+
type Type$1 = NodeName | ts.TypeNode | TypeTsDsl;
|
|
2151
|
+
declare const Mixed$1: abstract new () => TsDsl<ts.ConditionalTypeNode, "typescript">;
|
|
2152
|
+
declare class TypeTernaryTsDsl extends Mixed$1 {
|
|
2153
|
+
readonly '~dsl' = "TypeTernaryTsDsl";
|
|
2154
|
+
scope: NodeScope;
|
|
2155
|
+
protected _check?: Type$1;
|
|
2156
|
+
protected _extends?: Type$1;
|
|
2157
|
+
protected _true?: Type$1;
|
|
2158
|
+
protected _false?: Type$1;
|
|
2159
|
+
constructor(check?: Type$1);
|
|
2160
|
+
analyze(ctx: AnalysisContext): void;
|
|
2161
|
+
/** Returns true when all required builder calls are present. */
|
|
2162
|
+
get isValid(): boolean;
|
|
2163
|
+
/** Sets the checked type: `Check extends ...` */
|
|
2164
|
+
check(type: Type$1): this;
|
|
2165
|
+
/** Sets the constraint: `Check extends Extends ? ...` */
|
|
2166
|
+
extends(type: Type$1): this;
|
|
2167
|
+
/** Sets the true branch: `... ? Do : ...` */
|
|
2168
|
+
do(type: Type$1): this;
|
|
2169
|
+
/** Sets the false branch: `... : Otherwise` */
|
|
2170
|
+
otherwise(type: Type$1): this;
|
|
2171
|
+
toAst(): ts.ConditionalTypeNode;
|
|
2172
|
+
$validate(): asserts this is this & {
|
|
2173
|
+
_check: Type$1;
|
|
2174
|
+
_extends: Type$1;
|
|
2175
|
+
_false: Type$1;
|
|
2176
|
+
_true: Type$1;
|
|
2177
|
+
};
|
|
2178
|
+
private missingRequiredCalls;
|
|
2179
|
+
private resolveType;
|
|
2180
|
+
}
|
|
2181
|
+
//#endregion
|
|
2138
2182
|
//#region src/ts-dsl/type/tuple.d.ts
|
|
2139
2183
|
type TupleElement = string | ts.TypeNode | TypeTsDsl;
|
|
2140
|
-
declare const Mixed: abstract new () => TsDsl<ts.TupleTypeNode>;
|
|
2184
|
+
declare const Mixed: abstract new () => TsDsl<ts.TupleTypeNode, "typescript">;
|
|
2141
2185
|
declare class TypeTupleTsDsl extends Mixed {
|
|
2142
2186
|
readonly '~dsl' = "TypeTupleTsDsl";
|
|
2143
2187
|
scope: NodeScope;
|
|
@@ -2280,7 +2324,7 @@ declare const $: ((id: any) => ExprTsDsl) & {
|
|
|
2280
2324
|
class: (name: NodeName) => ClassTsDsl; /** Creates a constant variable declaration (`const`). */
|
|
2281
2325
|
const: (name?: any) => VarTsDsl; /** Creates a postfix decrement expression (`i--`). */
|
|
2282
2326
|
dec: (expr?: PostfixExpr | undefined, op?: ts.PostfixUnaryOperator | undefined) => PostfixTsDsl; /** Creates a decorator expression (e.g., `@decorator`). */
|
|
2283
|
-
decorator: (name: NodeName, ...args: (string | ts.Expression | TsDsl<ts.Expression>)[]) => DecoratorTsDsl; /** Creates a JSDoc documentation block. */
|
|
2327
|
+
decorator: (name: NodeName, ...args: (string | ts.Expression | TsDsl<ts.Expression, "typescript">)[]) => DecoratorTsDsl; /** Creates a JSDoc documentation block. */
|
|
2284
2328
|
doc: (lines?: DocLines | undefined, fn?: DocFn | undefined) => DocTsDsl; /** Creates an enum declaration. */
|
|
2285
2329
|
enum: (name: NodeName, fn?: ((e: EnumTsDsl) => void) | undefined) => EnumTsDsl; /** Creates a general expression node. */
|
|
2286
2330
|
expr: (id: any) => ExprTsDsl; /** Creates a field declaration in a class or object. */
|
|
@@ -2292,7 +2336,7 @@ declare const $: ((id: any) => ExprTsDsl) & {
|
|
|
2292
2336
|
}; /** Converts a runtime value into a corresponding expression node. */
|
|
2293
2337
|
fromValue: (input: unknown, options?: {
|
|
2294
2338
|
layout?: "pretty";
|
|
2295
|
-
} | undefined) => TsDsl<ts.Expression>; /** Creates a function expression or declaration. */
|
|
2339
|
+
} | undefined) => TsDsl<ts.Expression, "typescript">; /** Creates a function expression or declaration. */
|
|
2296
2340
|
func: {
|
|
2297
2341
|
(): FuncTsDsl<"arrow">;
|
|
2298
2342
|
(fn: (f: FuncTsDsl<"arrow">) => void): FuncTsDsl<"arrow">;
|
|
@@ -2309,7 +2353,7 @@ declare const $: ((id: any) => ExprTsDsl) & {
|
|
|
2309
2353
|
lazy: <T extends ts.Node>(thunk: LazyThunk<T>) => LazyTsDsl<T>; /** Creates a let variable declaration (`let`). */
|
|
2310
2354
|
let: (name?: any) => VarTsDsl; /** Creates a literal value (e.g., string, number, boolean). */
|
|
2311
2355
|
literal: (value: TsLiteralValue) => LiteralTsDsl; /** Creates an enum member declaration. */
|
|
2312
|
-
member: (name: NodeName, value?: ((string | number | ts.Expression | TsDsl<ts.Expression>) | ((m: EnumMemberTsDsl) => void)) | undefined) => EnumMemberTsDsl; /** Creates a method declaration inside a class or object. */
|
|
2356
|
+
member: (name: NodeName, value?: ((string | number | ts.Expression | TsDsl<ts.Expression, "typescript">) | ((m: EnumMemberTsDsl) => void)) | undefined) => EnumMemberTsDsl; /** Creates a method declaration inside a class or object. */
|
|
2313
2357
|
method: (name: NodeName, fn?: ((m: MethodTsDsl) => void) | undefined) => MethodTsDsl; /** Creates a negation expression (`-x`). */
|
|
2314
2358
|
neg: (expr?: PrefixExpr | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a new expression (e.g., `new ClassName()`). */
|
|
2315
2359
|
new: (expr: any, ...args: any[]) => NewTsDsl; /** Creates a newline (for formatting purposes). */
|
|
@@ -2343,10 +2387,10 @@ declare const $: ((id: any) => ExprTsDsl) & {
|
|
|
2343
2387
|
return: (expr?: any) => ReturnTsDsl; /** Creates a setter method declaration. */
|
|
2344
2388
|
setter: (name: NodeName, fn?: ((s: SetterTsDsl) => void) | undefined) => SetterTsDsl; /** Creates a spread element from an expression (e.g., `...expr`). */
|
|
2345
2389
|
spread: (expr: any) => SpreadTsDsl; /** Wraps an expression or statement-like value into a `StmtTsDsl`. */
|
|
2346
|
-
stmt: (inner: ts.Expression | ts.Statement | TsDsl<any>) => StmtTsDsl; /** Creates a template literal expression. */
|
|
2390
|
+
stmt: (inner: ts.Expression | ts.Statement | TsDsl<any, "typescript">) => StmtTsDsl; /** Creates a template literal expression. */
|
|
2347
2391
|
template: (value?: any) => TemplateTsDsl; /** Creates a ternary conditional expression (if ? then : else). */
|
|
2348
|
-
ternary: (condition?: string | ts.Expression | TsDsl<ts.Expression> | undefined) => TernaryTsDsl; /** Creates a throw statement. */
|
|
2349
|
-
throw: (error: string | ts.Expression | TsDsl<ts.Expression>, useNew?: boolean | undefined) => ThrowTsDsl; /** Creates a syntax token (e.g., `?`, `readonly`, `+`, `-`). */
|
|
2392
|
+
ternary: (condition?: string | ts.Expression | TsDsl<ts.Expression, "typescript"> | undefined) => TernaryTsDsl; /** Creates a throw statement. */
|
|
2393
|
+
throw: (error: string | ts.Expression | TsDsl<ts.Expression, "typescript">, useNew?: boolean | undefined) => ThrowTsDsl; /** Creates a syntax token (e.g., `?`, `readonly`, `+`, `-`). */
|
|
2350
2394
|
token: () => TokenTsDsl<never>; /** Creates a try/catch/finally statement. */
|
|
2351
2395
|
try: (...args: ConstructorParameters<typeof TryTsDsl>) => TryTsDsl; /** Creates a basic type reference or type expression (e.g., Foo or Foo<T>). */
|
|
2352
2396
|
type: ((name: NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl) & {
|
|
@@ -2354,9 +2398,9 @@ declare const $: ((id: any) => ExprTsDsl) & {
|
|
|
2354
2398
|
and: (...args: ConstructorParameters<typeof TypeAndTsDsl>) => TypeAndTsDsl; /** Creates a qualified type reference (e.g., Foo.Bar). */
|
|
2355
2399
|
attr: (right: any) => TypeAttrTsDsl; /** Creates a basic type reference or type expression (e.g., Foo or Foo<T>). */
|
|
2356
2400
|
expr: (name: NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl; /** Converts a runtime value into a corresponding type expression node. */
|
|
2357
|
-
fromValue: (input: unknown) => TsDsl<ts.TypeNode>; /** Creates a function type node (e.g., `(a: string) => number`). */
|
|
2401
|
+
fromValue: (input: unknown) => TsDsl<ts.TypeNode, "typescript">; /** Creates a function type node (e.g., `(a: string) => number`). */
|
|
2358
2402
|
func: (...args: ConstructorParameters<typeof TypeFuncTsDsl>) => TypeFuncTsDsl; /** Creates an indexed-access type (e.g., `Foo<T>[K]`). */
|
|
2359
|
-
idx: (base: string | ts.TypeNode | TsDsl<ts.TypeNode>, index: string | number | ts.TypeNode | TsDsl<ts.TypeNode>) => TypeIdxTsDsl; /** Creates a literal type node (e.g., 'foo', 42, or true). */
|
|
2403
|
+
idx: (base: string | ts.TypeNode | TsDsl<ts.TypeNode, "typescript">, index: string | number | ts.TypeNode | TsDsl<ts.TypeNode, "typescript">) => TypeIdxTsDsl; /** Creates a literal type node (e.g., 'foo', 42, or true). */
|
|
2360
2404
|
literal: (value: TsLiteralValue) => TypeLiteralTsDsl; /** Creates a mapped type (e.g., `{ [K in keyof T]: U }`). */
|
|
2361
2405
|
mapped: (name?: any) => TypeMappedTsDsl; /** Creates a type literal node (e.g., { foo: string }). */
|
|
2362
2406
|
object: () => TypeObjectTsDsl; /** Creates a type operator node (e.g., `readonly T`, `keyof T`, `unique T`). */
|
|
@@ -2364,7 +2408,8 @@ declare const $: ((id: any) => ExprTsDsl) & {
|
|
|
2364
2408
|
or: (...args: ConstructorParameters<typeof TypeOrTsDsl>) => TypeOrTsDsl; /** Creates a type parameter (e.g., `<T>`). */
|
|
2365
2409
|
param: (name?: any, fn?: ((name: TypeParamTsDsl) => void) | undefined) => TypeParamTsDsl; /** Creates a type query node (e.g., `typeof Foo`). */
|
|
2366
2410
|
query: (expr: any) => TypeQueryTsDsl; /** Builds a TypeScript template literal *type* (e.g., `${Foo}-${Bar}` as a type). */
|
|
2367
|
-
template: (value?: string | ts.TypeNode | TsDsl<ts.TypeNode> | undefined) => TypeTemplateTsDsl; /** Creates a
|
|
2411
|
+
template: (value?: string | ts.TypeNode | TsDsl<ts.TypeNode, "typescript"> | undefined) => TypeTemplateTsDsl; /** Creates a ternary conditional type (e.g., `T extends U ? X : Y`). */
|
|
2412
|
+
ternary: (check?: any) => TypeTernaryTsDsl; /** Creates a tuple type (e.g., [A, B, C]). */
|
|
2368
2413
|
tuple: (...args: ConstructorParameters<typeof TypeTupleTsDsl>) => TypeTupleTsDsl; /** Creates a named tuple element (e.g., `[resolver?: R]`). */
|
|
2369
2414
|
tupleMember: (name: NodeName) => TypeTupleMemberTsDsl;
|
|
2370
2415
|
}; /** Creates a `typeof` expression (e.g., `typeof value`). */
|
|
@@ -2391,44 +2436,116 @@ type DollarTsDsl = {
|
|
|
2391
2436
|
$: typeof $;
|
|
2392
2437
|
};
|
|
2393
2438
|
//#endregion
|
|
2439
|
+
//#region src/plugins/@faker-js/faker/shared/types.d.ts
|
|
2440
|
+
/**
|
|
2441
|
+
* Any DSL node or raw TS node that represents an expression.
|
|
2442
|
+
* Broad enough to accept ExprTsDsl, CallTsDsl, ObjectTsDsl, LiteralTsDsl, etc.
|
|
2443
|
+
*/
|
|
2444
|
+
type Expression$1 = MaybeTsDsl<ts.Expression>;
|
|
2445
|
+
interface NameRule {
|
|
2446
|
+
/**
|
|
2447
|
+
* Default args for the faker method. Schema constraints merge with these:
|
|
2448
|
+
* schema values override defaults.
|
|
2449
|
+
*/
|
|
2450
|
+
defaultArgs?: string | Record<string, number | string | boolean>;
|
|
2451
|
+
/** Faker method path segments, e.g., ['person', 'firstName']. */
|
|
2452
|
+
fakerPath: Readonly<[fakeModule: string, fakeFunction: string]>;
|
|
2453
|
+
}
|
|
2454
|
+
/**
|
|
2455
|
+
* A map of properties and the desired faker methods.
|
|
2456
|
+
*
|
|
2457
|
+
* Add `suffixMatch` so the configured rule will be applied as long as
|
|
2458
|
+
* the property name ends with the provided key.
|
|
2459
|
+
*
|
|
2460
|
+
* Supports matching with property ancestor with the pattern
|
|
2461
|
+
* `<ancesor>.<property>`.
|
|
2462
|
+
*
|
|
2463
|
+
* @example
|
|
2464
|
+
*
|
|
2465
|
+
* ```ts
|
|
2466
|
+
* {
|
|
2467
|
+
* // property matching 'country' exactly -> `faker.location.countryCode('alpha-3')`
|
|
2468
|
+
* country: { fakerPath: ['location', 'countryCode'], defaultArgs: 'alpha-3' },
|
|
2469
|
+
* // property ends with 'id' -> `faker.database.mongodbObjectId()`
|
|
2470
|
+
* id: { fakerPath: ['database', 'mongodbObjectId'], suffixMatch: true },
|
|
2471
|
+
* // property name wih role as ancestor -> `faker.person.jobTitle()`
|
|
2472
|
+
* 'role.name': { fakerPath: ['person', 'jobTitle'] }
|
|
2473
|
+
* }
|
|
2474
|
+
* ```
|
|
2475
|
+
*/
|
|
2476
|
+
type NameRulesOverrides = Record<string, NameRule & {
|
|
2477
|
+
suffixMatch?: true;
|
|
2478
|
+
}>;
|
|
2479
|
+
//#endregion
|
|
2394
2480
|
//#region src/plugins/@faker-js/faker/api.d.ts
|
|
2395
|
-
type Expression$1 = ReturnType<typeof $.expr>;
|
|
2396
2481
|
type IApi$4 = {
|
|
2397
2482
|
/**
|
|
2398
|
-
* Generate
|
|
2483
|
+
* Generate an inline Faker expression for a schema.
|
|
2399
2484
|
*
|
|
2400
2485
|
* Returns an expression that produces a valid instance when executed.
|
|
2401
|
-
*
|
|
2486
|
+
* The returned expression may reference faker symbols (`ensureFaker`,
|
|
2487
|
+
* `options`) — cross-plugin references resolve imports automatically.
|
|
2402
2488
|
*
|
|
2403
2489
|
* @example
|
|
2404
2490
|
* ```ts
|
|
2491
|
+
* // For { type: 'object', properties: { name: string, email: string } }:
|
|
2405
2492
|
* {
|
|
2406
|
-
* name:
|
|
2407
|
-
* email:
|
|
2493
|
+
* name: ensureFaker(options).person.fullName(),
|
|
2494
|
+
* email: ensureFaker(options).internet.email()
|
|
2408
2495
|
* }
|
|
2409
2496
|
* ```
|
|
2410
2497
|
*/
|
|
2411
|
-
toNode(
|
|
2498
|
+
toNode(args: {
|
|
2499
|
+
plugin: FakerJsFakerPlugin['Instance'];
|
|
2500
|
+
schema: IR$1.SchemaObject;
|
|
2501
|
+
}): Expression$1;
|
|
2412
2502
|
/**
|
|
2413
|
-
* Get a reference to
|
|
2503
|
+
* Get a reference to an existing Faker factory for a schema.
|
|
2414
2504
|
*
|
|
2415
|
-
*
|
|
2416
|
-
*
|
|
2505
|
+
* For `$ref` schemas, looks up the registered factory symbol via
|
|
2506
|
+
* `referenceSymbol` and returns a call expression (e.g. `fakeUser(options)`).
|
|
2507
|
+
* For non-`$ref` schemas, falls back to an inline expression via `toNode`.
|
|
2417
2508
|
*
|
|
2418
2509
|
* @example
|
|
2419
|
-
*
|
|
2510
|
+
* ```ts
|
|
2511
|
+
* // For { $ref: '#/components/schemas/User' }:
|
|
2512
|
+
* fakeUser(options)
|
|
2513
|
+
* ```
|
|
2420
2514
|
*/
|
|
2421
|
-
toNodeRef(
|
|
2515
|
+
toNodeRef(args: {
|
|
2516
|
+
plugin: FakerJsFakerPlugin['Instance'];
|
|
2517
|
+
schema: IR$1.SchemaObject;
|
|
2518
|
+
}): Expression$1;
|
|
2422
2519
|
};
|
|
2423
2520
|
//#endregion
|
|
2521
|
+
//#region src/plugins/@faker-js/faker/imports.d.ts
|
|
2522
|
+
declare function fakerImports(plugin: PluginInstance$1): {
|
|
2523
|
+
Faker: any;
|
|
2524
|
+
faker: any;
|
|
2525
|
+
};
|
|
2526
|
+
type FakerImports = ReturnType<typeof fakerImports>;
|
|
2527
|
+
//#endregion
|
|
2424
2528
|
//#region src/plugins/@faker-js/faker/types.d.ts
|
|
2425
|
-
type
|
|
2529
|
+
type FakerCompatibilityVersion = 9 | 10;
|
|
2530
|
+
type UserConfig$28 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
2426
2531
|
/**
|
|
2427
2532
|
* Casing convention for generated names.
|
|
2428
2533
|
*
|
|
2429
2534
|
* @default 'camelCase'
|
|
2430
2535
|
*/
|
|
2431
2536
|
case?: Casing;
|
|
2537
|
+
/**
|
|
2538
|
+
* The compatibility version to target for generated output.
|
|
2539
|
+
*
|
|
2540
|
+
* Can be:
|
|
2541
|
+
* - `9`: [@faker-js/faker v9](https://www.npmjs.com/package/@faker-js/faker/v/9) (default). Requires Node >= 18.
|
|
2542
|
+
* - `10`: [@faker-js/faker v10](https://www.npmjs.com/package/@faker-js/faker/v/10). Requires Node ^20.19.0.
|
|
2543
|
+
*
|
|
2544
|
+
* Both versions produce identical output.
|
|
2545
|
+
*
|
|
2546
|
+
* @default 10
|
|
2547
|
+
*/
|
|
2548
|
+
compatibilityVersion?: FakerCompatibilityVersion;
|
|
2432
2549
|
/**
|
|
2433
2550
|
* Configuration for reusable schema definitions.
|
|
2434
2551
|
*
|
|
@@ -2436,6 +2553,8 @@ type UserConfig$26 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$
|
|
|
2436
2553
|
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
2437
2554
|
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
2438
2555
|
* - `object`: Full configuration object
|
|
2556
|
+
*
|
|
2557
|
+
* @default true
|
|
2439
2558
|
*/
|
|
2440
2559
|
definitions?: boolean | NameTransformer | {
|
|
2441
2560
|
/**
|
|
@@ -2458,24 +2577,103 @@ type UserConfig$26 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$
|
|
|
2458
2577
|
name?: NameTransformer;
|
|
2459
2578
|
};
|
|
2460
2579
|
/**
|
|
2461
|
-
*
|
|
2580
|
+
* Locale for `@faker-js/faker`. When set, the generated import for the
|
|
2581
|
+
* faker instance will use `@faker-js/faker/locale/{locale}` instead of
|
|
2582
|
+
* `@faker-js/faker`.
|
|
2462
2583
|
*
|
|
2463
|
-
* @
|
|
2584
|
+
* @see https://fakerjs.dev/guide/localization
|
|
2464
2585
|
*/
|
|
2465
2586
|
locale?: string;
|
|
2466
2587
|
/**
|
|
2467
|
-
*
|
|
2468
|
-
* the
|
|
2588
|
+
* Maximum recursion depth for circular schema references.
|
|
2589
|
+
* When the call depth exceeds this value, circular references
|
|
2590
|
+
* will return empty arrays or be omitted for optional properties.
|
|
2591
|
+
*
|
|
2592
|
+
* @default 10
|
|
2593
|
+
*/
|
|
2594
|
+
maxCallDepth?: number;
|
|
2595
|
+
/**
|
|
2596
|
+
* Customize the faker method based on property names.
|
|
2469
2597
|
*/
|
|
2470
|
-
|
|
2598
|
+
nameRules?: {
|
|
2599
|
+
/** Name rules for number schema type */number?: NameRulesOverrides; /** Name rules for string schema type */
|
|
2600
|
+
string?: NameRulesOverrides;
|
|
2601
|
+
};
|
|
2602
|
+
/**
|
|
2603
|
+
* Configuration for operation request factories.
|
|
2604
|
+
*
|
|
2605
|
+
* Can be:
|
|
2606
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
2607
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
2608
|
+
* - `object`: Full configuration object
|
|
2609
|
+
*
|
|
2610
|
+
* @default true
|
|
2611
|
+
*/
|
|
2612
|
+
requests?: boolean | NameTransformer | {
|
|
2613
|
+
/**
|
|
2614
|
+
* Casing convention for generated names.
|
|
2615
|
+
*
|
|
2616
|
+
* @default 'camelCase'
|
|
2617
|
+
*/
|
|
2618
|
+
case?: Casing;
|
|
2619
|
+
/**
|
|
2620
|
+
* Whether this feature is enabled.
|
|
2621
|
+
*
|
|
2622
|
+
* @default true
|
|
2623
|
+
*/
|
|
2624
|
+
enabled?: boolean;
|
|
2625
|
+
/**
|
|
2626
|
+
* Naming pattern for generated names.
|
|
2627
|
+
*
|
|
2628
|
+
* @default 'fake{{name}}Request'
|
|
2629
|
+
*/
|
|
2630
|
+
name?: NameTransformer;
|
|
2631
|
+
};
|
|
2632
|
+
/**
|
|
2633
|
+
* Configuration for operation response factories.
|
|
2634
|
+
*
|
|
2635
|
+
* Can be:
|
|
2636
|
+
* - `boolean`: Shorthand for `{ enabled: boolean }`
|
|
2637
|
+
* - `string` or `function`: Shorthand for `{ name: string | function }`
|
|
2638
|
+
* - `object`: Full configuration object
|
|
2639
|
+
*
|
|
2640
|
+
* @default true
|
|
2641
|
+
*/
|
|
2642
|
+
responses?: boolean | NameTransformer | {
|
|
2643
|
+
/**
|
|
2644
|
+
* Casing convention for generated names.
|
|
2645
|
+
*
|
|
2646
|
+
* @default 'camelCase'
|
|
2647
|
+
*/
|
|
2648
|
+
case?: Casing;
|
|
2649
|
+
/**
|
|
2650
|
+
* Whether this feature is enabled.
|
|
2651
|
+
*
|
|
2652
|
+
* @default true
|
|
2653
|
+
*/
|
|
2654
|
+
enabled?: boolean;
|
|
2655
|
+
/**
|
|
2656
|
+
* Naming pattern for generated names.
|
|
2657
|
+
*
|
|
2658
|
+
* @default 'fake{{name}}Response'
|
|
2659
|
+
*/
|
|
2660
|
+
name?: NameTransformer;
|
|
2661
|
+
};
|
|
2471
2662
|
};
|
|
2472
|
-
type Config$
|
|
2473
|
-
/** Casing convention for generated names. */case: Casing; /**
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2663
|
+
type Config$25 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
2664
|
+
/** Casing convention for generated names. */case: Casing; /** The compatibility version to target for generated output. */
|
|
2665
|
+
compatibilityVersion: FakerCompatibilityVersion; /** Configuration for reusable schema definitions. */
|
|
2666
|
+
definitions: NamingOptions & FeatureToggle; /** Locale for `@faker-js/faker`. */
|
|
2667
|
+
locale?: string; /** Maximum recursion depth for circular schema references. */
|
|
2668
|
+
maxCallDepth: number; /** Faker method customization based on property name */
|
|
2669
|
+
nameRules: {
|
|
2670
|
+
number?: NameRulesOverrides;
|
|
2671
|
+
string?: NameRulesOverrides;
|
|
2672
|
+
}; /** Configuration for operation request factories. */
|
|
2673
|
+
requests: NamingOptions & FeatureToggle; /** Configuration for operation response factories. */
|
|
2674
|
+
responses: NamingOptions & FeatureToggle;
|
|
2477
2675
|
};
|
|
2478
|
-
type FakerJsFakerPlugin = DefinePlugin$1<UserConfig$
|
|
2676
|
+
type FakerJsFakerPlugin = DefinePlugin$1<UserConfig$28, Config$25, IApi$4, FakerImports>;
|
|
2479
2677
|
//#endregion
|
|
2480
2678
|
//#region src/plugins/@faker-js/faker/resolvers/types.d.ts
|
|
2481
2679
|
type Expression = ReturnType<typeof $.expr>;
|
|
@@ -2585,7 +2783,7 @@ type Client$8<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn
|
|
|
2585
2783
|
} : {
|
|
2586
2784
|
sse: { [K in HttpMethod]: SseFn };
|
|
2587
2785
|
});
|
|
2588
|
-
interface Config$
|
|
2786
|
+
interface Config$24 {
|
|
2589
2787
|
/**
|
|
2590
2788
|
* Auth token or a function returning auth token. The resolved value will be
|
|
2591
2789
|
* added to the request payload as defined by its `security` array.
|
|
@@ -2640,7 +2838,7 @@ interface Config$22 {
|
|
|
2640
2838
|
}
|
|
2641
2839
|
//#endregion
|
|
2642
2840
|
//#region src/plugins/@hey-api/client-core/bundle/serverSentEvents.d.ts
|
|
2643
|
-
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$
|
|
2841
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$24, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
2644
2842
|
/**
|
|
2645
2843
|
* Fetch API implementation. You can use this option to provide a custom
|
|
2646
2844
|
* fetch instance.
|
|
@@ -2735,7 +2933,7 @@ interface Middleware$4<Req, Res, Err, Options> {
|
|
|
2735
2933
|
//#endregion
|
|
2736
2934
|
//#region src/plugins/@hey-api/client-angular/bundle/types.d.ts
|
|
2737
2935
|
type ResponseStyle$3 = 'data' | 'fields';
|
|
2738
|
-
interface Config$
|
|
2936
|
+
interface Config$23<T extends ClientOptions$6 = ClientOptions$6> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Omit<Config$24, 'headers'> {
|
|
2739
2937
|
/**
|
|
2740
2938
|
* Base URL for all requests made by this client.
|
|
2741
2939
|
*/
|
|
@@ -2764,7 +2962,7 @@ interface Config$21<T extends ClientOptions$6 = ClientOptions$6> extends Omit<Re
|
|
|
2764
2962
|
*/
|
|
2765
2963
|
throwOnError?: T['throwOnError'];
|
|
2766
2964
|
}
|
|
2767
|
-
interface RequestOptions$6<TData = unknown, TResponseStyle extends ResponseStyle$3 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
2965
|
+
interface RequestOptions$6<TData = unknown, TResponseStyle extends ResponseStyle$3 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$23<{
|
|
2768
2966
|
responseStyle: TResponseStyle;
|
|
2769
2967
|
throwOnError: ThrowOnError;
|
|
2770
2968
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -2822,7 +3020,7 @@ type BuildUrlFn$6 = <TData extends {
|
|
|
2822
3020
|
query?: Record<string, unknown>;
|
|
2823
3021
|
url: string;
|
|
2824
3022
|
}>(options: TData & Options$6<TData>) => string;
|
|
2825
|
-
type Client$7 = Client$8<RequestFn$6, Config$
|
|
3023
|
+
type Client$7 = Client$8<RequestFn$6, Config$23, MethodFn$6, BuildUrlFn$6, SseFn$6> & {
|
|
2826
3024
|
interceptors: Middleware$4<HttpRequest<unknown>, HttpResponse<unknown>, unknown, ResolvedRequestOptions$4>;
|
|
2827
3025
|
requestOptions: RequestOptionsFn;
|
|
2828
3026
|
};
|
|
@@ -2837,7 +3035,7 @@ type OmitKeys$5<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
2837
3035
|
type Options$6<TData extends TDataShape$5 = TDataShape$5, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$3 = 'fields'> = OmitKeys$5<RequestOptions$6<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
2838
3036
|
//#endregion
|
|
2839
3037
|
//#region src/plugins/@hey-api/client-axios/bundle/types.d.ts
|
|
2840
|
-
interface Config$
|
|
3038
|
+
interface Config$22<T extends ClientOptions$5 = ClientOptions$5> extends Omit<CreateAxiosDefaults, 'auth' | 'baseURL' | 'headers' | 'method'>, Config$24 {
|
|
2841
3039
|
/**
|
|
2842
3040
|
* Axios implementation. You can use this option to provide either an
|
|
2843
3041
|
* `AxiosStatic` or an `AxiosInstance`.
|
|
@@ -2863,7 +3061,7 @@ interface Config$20<T extends ClientOptions$5 = ClientOptions$5> extends Omit<Cr
|
|
|
2863
3061
|
*/
|
|
2864
3062
|
throwOnError?: T['throwOnError'];
|
|
2865
3063
|
}
|
|
2866
|
-
interface RequestOptions$5<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3064
|
+
interface RequestOptions$5<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$22<{
|
|
2867
3065
|
throwOnError: ThrowOnError;
|
|
2868
3066
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
2869
3067
|
/**
|
|
@@ -2898,12 +3096,12 @@ type BuildUrlFn$5 = <TData extends {
|
|
|
2898
3096
|
query?: Record<string, unknown>;
|
|
2899
3097
|
url: string;
|
|
2900
3098
|
}>(options: TData & Pick<RequestOptions$5<unknown, boolean>, 'axios' | 'baseURL' | 'paramsSerializer' | 'querySerializer'>) => string;
|
|
2901
|
-
type Client$6 = Client$8<RequestFn$5, Config$
|
|
3099
|
+
type Client$6 = Client$8<RequestFn$5, Config$22, MethodFn$5, BuildUrlFn$5, SseFn$5> & {
|
|
2902
3100
|
instance: AxiosInstance;
|
|
2903
3101
|
};
|
|
2904
3102
|
//#endregion
|
|
2905
3103
|
//#region src/plugins/@hey-api/client-axios/types.d.ts
|
|
2906
|
-
type UserConfig$
|
|
3104
|
+
type UserConfig$27 = Plugin$1.Name<'@hey-api/client-axios'> & Client.Config & {
|
|
2907
3105
|
/**
|
|
2908
3106
|
* Throw an error instead of returning it in the response?
|
|
2909
3107
|
*
|
|
@@ -2911,7 +3109,7 @@ type UserConfig$25 = Plugin$1.Name<'@hey-api/client-axios'> & Client.Config & {
|
|
|
2911
3109
|
*/
|
|
2912
3110
|
throwOnError?: boolean;
|
|
2913
3111
|
};
|
|
2914
|
-
type HeyApiClientAxiosPlugin = DefinePlugin$1<UserConfig$
|
|
3112
|
+
type HeyApiClientAxiosPlugin = DefinePlugin$1<UserConfig$27, UserConfig$27>;
|
|
2915
3113
|
//#endregion
|
|
2916
3114
|
//#region src/plugins/@hey-api/client-fetch/bundle/utils.d.ts
|
|
2917
3115
|
type ErrInterceptor$3<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
|
|
@@ -2938,7 +3136,7 @@ interface Middleware$3<Req, Res, Err, Options> {
|
|
|
2938
3136
|
//#endregion
|
|
2939
3137
|
//#region src/plugins/@hey-api/client-fetch/bundle/types.d.ts
|
|
2940
3138
|
type ResponseStyle$2 = 'data' | 'fields';
|
|
2941
|
-
interface Config$
|
|
3139
|
+
interface Config$21<T extends ClientOptions$4 = ClientOptions$4> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$24 {
|
|
2942
3140
|
/**
|
|
2943
3141
|
* Base URL for all requests made by this client.
|
|
2944
3142
|
*/
|
|
@@ -2979,7 +3177,7 @@ interface Config$19<T extends ClientOptions$4 = ClientOptions$4> extends Omit<Re
|
|
|
2979
3177
|
*/
|
|
2980
3178
|
throwOnError?: T['throwOnError'];
|
|
2981
3179
|
}
|
|
2982
|
-
interface RequestOptions$4<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3180
|
+
interface RequestOptions$4<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$21<{
|
|
2983
3181
|
responseStyle: TResponseStyle;
|
|
2984
3182
|
throwOnError: ThrowOnError;
|
|
2985
3183
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3029,7 +3227,7 @@ type BuildUrlFn$4 = <TData extends {
|
|
|
3029
3227
|
query?: Record<string, unknown>;
|
|
3030
3228
|
url: string;
|
|
3031
3229
|
}>(options: TData & Options$5<TData>) => string;
|
|
3032
|
-
type Client$5 = Client$8<RequestFn$4, Config$
|
|
3230
|
+
type Client$5 = Client$8<RequestFn$4, Config$21, MethodFn$4, BuildUrlFn$4, SseFn$4> & {
|
|
3033
3231
|
interceptors: Middleware$3<Request, Response, unknown, ResolvedRequestOptions$3>;
|
|
3034
3232
|
};
|
|
3035
3233
|
interface TDataShape$4 {
|
|
@@ -3043,7 +3241,7 @@ type OmitKeys$4<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
3043
3241
|
type Options$5<TData extends TDataShape$4 = TDataShape$4, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$2 = 'fields'> = OmitKeys$4<RequestOptions$4<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
3044
3242
|
//#endregion
|
|
3045
3243
|
//#region src/plugins/@hey-api/client-fetch/types.d.ts
|
|
3046
|
-
type UserConfig$
|
|
3244
|
+
type UserConfig$26 = Plugin$1.Name<'@hey-api/client-fetch'> & Client.Config & {
|
|
3047
3245
|
/**
|
|
3048
3246
|
* Throw an error instead of returning it in the response?
|
|
3049
3247
|
*
|
|
@@ -3051,7 +3249,7 @@ type UserConfig$24 = Plugin$1.Name<'@hey-api/client-fetch'> & Client.Config & {
|
|
|
3051
3249
|
*/
|
|
3052
3250
|
throwOnError?: boolean;
|
|
3053
3251
|
};
|
|
3054
|
-
type HeyApiClientFetchPlugin = DefinePlugin$1<UserConfig$
|
|
3252
|
+
type HeyApiClientFetchPlugin = DefinePlugin$1<UserConfig$26, UserConfig$26>;
|
|
3055
3253
|
//#endregion
|
|
3056
3254
|
//#region src/plugins/@hey-api/client-next/bundle/utils.d.ts
|
|
3057
3255
|
type ErrInterceptor$2<Err, Res, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
|
|
@@ -3075,7 +3273,7 @@ interface Middleware$2<Res, Err, Options> {
|
|
|
3075
3273
|
}
|
|
3076
3274
|
//#endregion
|
|
3077
3275
|
//#region src/plugins/@hey-api/client-next/bundle/types.d.ts
|
|
3078
|
-
interface Config$
|
|
3276
|
+
interface Config$20<T extends ClientOptions$3 = ClientOptions$3> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$24 {
|
|
3079
3277
|
/**
|
|
3080
3278
|
* Base URL for all requests made by this client.
|
|
3081
3279
|
*/
|
|
@@ -3103,7 +3301,7 @@ interface Config$18<T extends ClientOptions$3 = ClientOptions$3> extends Omit<Re
|
|
|
3103
3301
|
*/
|
|
3104
3302
|
throwOnError?: T['throwOnError'];
|
|
3105
3303
|
}
|
|
3106
|
-
interface RequestOptions$3<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3304
|
+
interface RequestOptions$3<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$20<{
|
|
3107
3305
|
throwOnError: ThrowOnError;
|
|
3108
3306
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
3109
3307
|
/**
|
|
@@ -3149,7 +3347,7 @@ type BuildUrlFn$3 = <TData extends {
|
|
|
3149
3347
|
query?: Record<string, unknown>;
|
|
3150
3348
|
url: string;
|
|
3151
3349
|
}>(options: TData & Options$4<TData>) => string;
|
|
3152
|
-
type Client$4 = Client$8<RequestFn$3, Config$
|
|
3350
|
+
type Client$4 = Client$8<RequestFn$3, Config$20, MethodFn$3, BuildUrlFn$3, SseFn$3> & {
|
|
3153
3351
|
interceptors: Middleware$2<Response, unknown, ResolvedRequestOptions$2>;
|
|
3154
3352
|
};
|
|
3155
3353
|
interface TDataShape$3 {
|
|
@@ -3163,7 +3361,7 @@ type OmitKeys$3<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
3163
3361
|
type Options$4<TData extends TDataShape$3 = TDataShape$3, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys$3<RequestOptions$3<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
3164
3362
|
//#endregion
|
|
3165
3363
|
//#region src/plugins/@hey-api/client-next/types.d.ts
|
|
3166
|
-
type UserConfig$
|
|
3364
|
+
type UserConfig$25 = Plugin$1.Name<'@hey-api/client-next'> & Client.Config & {
|
|
3167
3365
|
/**
|
|
3168
3366
|
* Throw an error instead of returning it in the response?
|
|
3169
3367
|
*
|
|
@@ -3171,13 +3369,13 @@ type UserConfig$23 = Plugin$1.Name<'@hey-api/client-next'> & Client.Config & {
|
|
|
3171
3369
|
*/
|
|
3172
3370
|
throwOnError?: boolean;
|
|
3173
3371
|
};
|
|
3174
|
-
type HeyApiClientNextPlugin = DefinePlugin$1<UserConfig$
|
|
3372
|
+
type HeyApiClientNextPlugin = DefinePlugin$1<UserConfig$25, UserConfig$25>;
|
|
3175
3373
|
//#endregion
|
|
3176
3374
|
//#region src/plugins/@hey-api/client-nuxt/bundle/types.d.ts
|
|
3177
3375
|
type QuerySerializer = (query: Parameters<Client$3['buildUrl']>[0]['query']) => string;
|
|
3178
3376
|
type WithRefs<TData> = { [K in keyof TData]: NonNullable<TData[K]> extends object ? WithRefs<NonNullable<TData[K]>> | Ref$1<NonNullable<TData[K]>> | Extract<TData[K], null> : NonNullable<TData[K]> | Ref$1<NonNullable<TData[K]>> | Extract<TData[K], null> };
|
|
3179
3377
|
type KeysOf<T> = Array<T extends T ? (keyof T extends string ? keyof T : never) : never>;
|
|
3180
|
-
interface Config$
|
|
3378
|
+
interface Config$19<T extends ClientOptions$2 = ClientOptions$2> extends Omit<FetchOptions$1<unknown>, 'baseURL' | 'body' | 'headers' | 'method' | 'query'>, WithRefs<Pick<FetchOptions$1<unknown>, 'query'>>, Omit<Config$24, 'querySerializer'> {
|
|
3181
3379
|
/**
|
|
3182
3380
|
* Base URL for all requests made by this client.
|
|
3183
3381
|
*/
|
|
@@ -3191,7 +3389,7 @@ interface Config$17<T extends ClientOptions$2 = ClientOptions$2> extends Omit<Fe
|
|
|
3191
3389
|
*/
|
|
3192
3390
|
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
3193
3391
|
}
|
|
3194
|
-
interface RequestOptions$2<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$
|
|
3392
|
+
interface RequestOptions$2<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$19, WithRefs<{
|
|
3195
3393
|
path?: FetchOptions$1<unknown>['query'];
|
|
3196
3394
|
query?: FetchOptions$1<unknown>['query'];
|
|
3197
3395
|
}>, Pick<ServerSentEventsOptions<ResT>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3235,15 +3433,15 @@ interface TDataShape$2 {
|
|
|
3235
3433
|
}
|
|
3236
3434
|
type BuildUrlOptions<TData extends Omit<TDataShape$2, 'headers'> = Omit<TDataShape$2, 'headers'>> = Pick<WithRefs<TData>, 'path' | 'query'> & Pick<TData, 'url'> & Pick<Options$3<'$fetch', TData>, 'baseURL' | 'querySerializer'>;
|
|
3237
3435
|
type BuildUrlFn$2 = <TData extends Omit<TDataShape$2, 'headers'>>(options: BuildUrlOptions<TData>) => string;
|
|
3238
|
-
type Client$3 = Client$8<RequestFn$2, Config$
|
|
3436
|
+
type Client$3 = Client$8<RequestFn$2, Config$19, MethodFn$2, BuildUrlFn$2, SseFn$2>;
|
|
3239
3437
|
type OmitKeys$2<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
3240
3438
|
type Options$3<TComposable extends Composable = '$fetch', TData extends TDataShape$2 = TDataShape$2, ResT = unknown, DefaultT = undefined> = OmitKeys$2<RequestOptions$2<TComposable, ResT, DefaultT>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : WithRefs<Omit<TData, 'url'>>);
|
|
3241
3439
|
type FetchOptions$1<TData> = Omit<UseFetchOptions<TData, TData>, keyof AsyncDataOptions<TData>>;
|
|
3242
3440
|
type Composable = '$fetch' | 'useAsyncData' | 'useFetch' | 'useLazyAsyncData' | 'useLazyFetch';
|
|
3243
3441
|
//#endregion
|
|
3244
3442
|
//#region src/plugins/@hey-api/client-nuxt/types.d.ts
|
|
3245
|
-
type UserConfig$
|
|
3246
|
-
type HeyApiClientNuxtPlugin = DefinePlugin$1<UserConfig$
|
|
3443
|
+
type UserConfig$24 = Plugin$1.Name<'@hey-api/client-nuxt'> & Client.Config;
|
|
3444
|
+
type HeyApiClientNuxtPlugin = DefinePlugin$1<UserConfig$24, UserConfig$24>;
|
|
3247
3445
|
//#endregion
|
|
3248
3446
|
//#region src/plugins/@hey-api/client-ofetch/bundle/utils.d.ts
|
|
3249
3447
|
type ErrInterceptor$1<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
|
|
@@ -3270,7 +3468,7 @@ interface Middleware$1<Req, Res, Err, Options> {
|
|
|
3270
3468
|
//#endregion
|
|
3271
3469
|
//#region src/plugins/@hey-api/client-ofetch/bundle/types.d.ts
|
|
3272
3470
|
type ResponseStyle$1 = 'data' | 'fields';
|
|
3273
|
-
interface Config$
|
|
3471
|
+
interface Config$18<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$24 {
|
|
3274
3472
|
/**
|
|
3275
3473
|
* HTTP(S) agent configuration (Node.js only). Passed through to ofetch.
|
|
3276
3474
|
*/
|
|
@@ -3371,7 +3569,7 @@ interface Config$16<T extends ClientOptions$1 = ClientOptions$1> extends Omit<Re
|
|
|
3371
3569
|
*/
|
|
3372
3570
|
timeout?: number;
|
|
3373
3571
|
}
|
|
3374
|
-
interface RequestOptions$1<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3572
|
+
interface RequestOptions$1<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$18<{
|
|
3375
3573
|
responseStyle: TResponseStyle;
|
|
3376
3574
|
throwOnError: ThrowOnError;
|
|
3377
3575
|
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3421,7 +3619,7 @@ type BuildUrlFn$1 = <TData extends {
|
|
|
3421
3619
|
query?: Record<string, unknown>;
|
|
3422
3620
|
url: string;
|
|
3423
3621
|
}>(options: TData & Options$2<TData>) => string;
|
|
3424
|
-
type Client$2 = Client$8<RequestFn$1, Config$
|
|
3622
|
+
type Client$2 = Client$8<RequestFn$1, Config$18, MethodFn$1, BuildUrlFn$1, SseFn$1> & {
|
|
3425
3623
|
interceptors: Middleware$1<Request, Response, unknown, ResolvedRequestOptions$1>;
|
|
3426
3624
|
};
|
|
3427
3625
|
interface TDataShape$1 {
|
|
@@ -3435,7 +3633,7 @@ type OmitKeys$1<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
3435
3633
|
type Options$2<TData extends TDataShape$1 = TDataShape$1, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$1 = 'fields'> = OmitKeys$1<RequestOptions$1<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
3436
3634
|
//#endregion
|
|
3437
3635
|
//#region src/plugins/@hey-api/client-ofetch/types.d.ts
|
|
3438
|
-
type UserConfig$
|
|
3636
|
+
type UserConfig$23 = Plugin$1.Name<'@hey-api/client-ofetch'> & Client.Config & {
|
|
3439
3637
|
/**
|
|
3440
3638
|
* Throw an error instead of returning it in the response?
|
|
3441
3639
|
*
|
|
@@ -3443,7 +3641,7 @@ type UserConfig$21 = Plugin$1.Name<'@hey-api/client-ofetch'> & Client.Config & {
|
|
|
3443
3641
|
*/
|
|
3444
3642
|
throwOnError?: boolean;
|
|
3445
3643
|
};
|
|
3446
|
-
type HeyApiClientOfetchPlugin = DefinePlugin$1<UserConfig$
|
|
3644
|
+
type HeyApiClientOfetchPlugin = DefinePlugin$1<UserConfig$23, UserConfig$23>;
|
|
3447
3645
|
//#endregion
|
|
3448
3646
|
//#region src/plugins/@hey-api/client-core/types.d.ts
|
|
3449
3647
|
interface PluginHandler {
|
|
@@ -3506,7 +3704,7 @@ declare namespace Client {
|
|
|
3506
3704
|
}
|
|
3507
3705
|
//#endregion
|
|
3508
3706
|
//#region src/plugins/@hey-api/client-angular/types.d.ts
|
|
3509
|
-
type UserConfig$
|
|
3707
|
+
type UserConfig$22 = Plugin$1.Name<'@hey-api/client-angular'> & Client.Config & {
|
|
3510
3708
|
/**
|
|
3511
3709
|
* Throw an error instead of returning it in the response?
|
|
3512
3710
|
*
|
|
@@ -3514,7 +3712,7 @@ type UserConfig$20 = Plugin$1.Name<'@hey-api/client-angular'> & Client.Config &
|
|
|
3514
3712
|
*/
|
|
3515
3713
|
throwOnError?: boolean;
|
|
3516
3714
|
};
|
|
3517
|
-
type HeyApiClientAngularPlugin = DefinePlugin$1<UserConfig$
|
|
3715
|
+
type HeyApiClientAngularPlugin = DefinePlugin$1<UserConfig$22, UserConfig$22>;
|
|
3518
3716
|
//#endregion
|
|
3519
3717
|
//#region src/plugins/@hey-api/client-ky/bundle/utils.d.ts
|
|
3520
3718
|
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, /** response may be undefined due to a network error where no response object is produced */
|
|
@@ -3541,7 +3739,7 @@ interface Middleware<Req, Res, Err, Options> {
|
|
|
3541
3739
|
//#endregion
|
|
3542
3740
|
//#region src/plugins/@hey-api/client-ky/bundle/types.d.ts
|
|
3543
3741
|
type ResponseStyle = 'data' | 'fields';
|
|
3544
|
-
interface Config$
|
|
3742
|
+
interface Config$17<T extends ClientOptions = ClientOptions> extends Pick<Options, 'cache' | 'credentials' | 'retry' | 'signal' | 'integrity' | 'keepalive' | 'mode' | 'redirect' | 'referrer' | 'referrerPolicy' | 'timeout'>, Config$24 {
|
|
3545
3743
|
/**
|
|
3546
3744
|
* Base URL for all requests made by this client.
|
|
3547
3745
|
*/
|
|
@@ -3582,7 +3780,7 @@ interface Config$15<T extends ClientOptions = ClientOptions> extends Pick<Option
|
|
|
3582
3780
|
*/
|
|
3583
3781
|
throwOnError?: T['throwOnError'];
|
|
3584
3782
|
}
|
|
3585
|
-
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3783
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$17<{
|
|
3586
3784
|
responseStyle: TResponseStyle;
|
|
3587
3785
|
throwOnError: ThrowOnError;
|
|
3588
3786
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3632,7 +3830,7 @@ type BuildUrlFn = <TData extends {
|
|
|
3632
3830
|
query?: Record<string, unknown>;
|
|
3633
3831
|
url: string;
|
|
3634
3832
|
}>(options: TData & Options$1<TData>) => string;
|
|
3635
|
-
type Client$1 = Client$8<RequestFn, Config$
|
|
3833
|
+
type Client$1 = Client$8<RequestFn, Config$17, MethodFn, BuildUrlFn, SseFn> & {
|
|
3636
3834
|
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
3637
3835
|
};
|
|
3638
3836
|
interface TDataShape {
|
|
@@ -3646,7 +3844,7 @@ type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
3646
3844
|
type Options$1<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle = 'fields'> = OmitKeys<RequestOptions<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
3647
3845
|
//#endregion
|
|
3648
3846
|
//#region src/plugins/@hey-api/client-ky/types.d.ts
|
|
3649
|
-
type UserConfig$
|
|
3847
|
+
type UserConfig$21 = Plugin$1.Name<'@hey-api/client-ky'> & Client.Config & {
|
|
3650
3848
|
/**
|
|
3651
3849
|
* Throw an error instead of returning it in the response?
|
|
3652
3850
|
*
|
|
@@ -3654,10 +3852,24 @@ type UserConfig$19 = Plugin$1.Name<'@hey-api/client-ky'> & Client.Config & {
|
|
|
3654
3852
|
*/
|
|
3655
3853
|
throwOnError?: boolean;
|
|
3656
3854
|
};
|
|
3657
|
-
type HeyApiClientKyPlugin = DefinePlugin$1<UserConfig$
|
|
3855
|
+
type HeyApiClientKyPlugin = DefinePlugin$1<UserConfig$21, UserConfig$21>;
|
|
3856
|
+
//#endregion
|
|
3857
|
+
//#region src/plugins/@hey-api/examples/types.d.ts
|
|
3858
|
+
type UserConfig$20 = Plugin$1.Name<'@hey-api/examples'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
3859
|
+
/**
|
|
3860
|
+
* Casing convention for generated names.
|
|
3861
|
+
*
|
|
3862
|
+
* @default 'camelCase'
|
|
3863
|
+
*/
|
|
3864
|
+
case?: Casing;
|
|
3865
|
+
};
|
|
3866
|
+
type Config$16 = Plugin$1.Name<'@hey-api/examples'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
3867
|
+
/** Casing convention for generated names. */case: Casing;
|
|
3868
|
+
};
|
|
3869
|
+
type HeyApiExamplesPlugin = DefinePlugin$1<UserConfig$20, Config$16>;
|
|
3658
3870
|
//#endregion
|
|
3659
3871
|
//#region src/plugins/@hey-api/schemas/types.d.ts
|
|
3660
|
-
type UserConfig$
|
|
3872
|
+
type UserConfig$19 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
3661
3873
|
/**
|
|
3662
3874
|
* Customise the schema name. By default, `{{name}}Schema` is used. `name` is a
|
|
3663
3875
|
* valid JavaScript/TypeScript identifier, e.g., if your schema name is
|
|
@@ -3665,7 +3877,7 @@ type UserConfig$18 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin
|
|
|
3665
3877
|
*
|
|
3666
3878
|
* @default '{{name}}Schema'
|
|
3667
3879
|
*/
|
|
3668
|
-
nameBuilder?: string | ((name: string, schema:
|
|
3880
|
+
nameBuilder?: string | ((name: string, schema: unknown) => string);
|
|
3669
3881
|
/**
|
|
3670
3882
|
* Choose schema type to generate. Select 'form' if you don't want
|
|
3671
3883
|
* descriptions to reduce bundle size and you plan to use schemas
|
|
@@ -3675,10 +3887,11 @@ type UserConfig$18 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin
|
|
|
3675
3887
|
*/
|
|
3676
3888
|
type?: 'form' | 'json';
|
|
3677
3889
|
};
|
|
3678
|
-
type HeyApiSchemasPlugin = DefinePlugin$1<UserConfig$
|
|
3890
|
+
type HeyApiSchemasPlugin = DefinePlugin$1<UserConfig$19, UserConfig$19>;
|
|
3679
3891
|
//#endregion
|
|
3680
3892
|
//#region src/plugins/types.d.ts
|
|
3681
3893
|
type PluginClientNames = '@hey-api/client-angular' | '@hey-api/client-axios' | '@hey-api/client-fetch' | '@hey-api/client-ky' | '@hey-api/client-next' | '@hey-api/client-nuxt' | '@hey-api/client-ofetch';
|
|
3894
|
+
type PluginSourceNames = '@faker-js/faker' | '@hey-api/examples';
|
|
3682
3895
|
type PluginTransformerNames = '@hey-api/transformers' | 'valibot' | 'zod';
|
|
3683
3896
|
type PluginValidatorNames = 'arktype' | 'valibot' | 'zod';
|
|
3684
3897
|
//#endregion
|
|
@@ -3734,6 +3947,27 @@ type ExamplesConfig = Omit<ExampleOptions, 'payload'> & FeatureToggle & {
|
|
|
3734
3947
|
transform?: (example: string, operation: IR$1.OperationObject) => string;
|
|
3735
3948
|
};
|
|
3736
3949
|
//#endregion
|
|
3950
|
+
//#region src/plugins/@hey-api/sdk/imports.d.ts
|
|
3951
|
+
declare function sdkImports(plugin: PluginInstance$1): {
|
|
3952
|
+
Client: any;
|
|
3953
|
+
ClientMeta: any;
|
|
3954
|
+
Composable: any;
|
|
3955
|
+
Options: any;
|
|
3956
|
+
RequestResult: any;
|
|
3957
|
+
ServerSentEventsResult: any;
|
|
3958
|
+
TDataShape: any;
|
|
3959
|
+
angular: {
|
|
3960
|
+
HttpRequest: any;
|
|
3961
|
+
Injectable: any;
|
|
3962
|
+
httpResource: any;
|
|
3963
|
+
inject: any;
|
|
3964
|
+
};
|
|
3965
|
+
buildClientParams: any;
|
|
3966
|
+
formDataBodySerializer: any;
|
|
3967
|
+
urlSearchParamsBodySerializer: any;
|
|
3968
|
+
};
|
|
3969
|
+
type SdkImports = ReturnType<typeof sdkImports>;
|
|
3970
|
+
//#endregion
|
|
3737
3971
|
//#region src/plugins/@hey-api/sdk/operations/types.d.ts
|
|
3738
3972
|
interface UserOperationsConfig {
|
|
3739
3973
|
/**
|
|
@@ -3849,25 +4083,8 @@ interface OperationsConfig {
|
|
|
3849
4083
|
strategyDefaultTag: string;
|
|
3850
4084
|
}
|
|
3851
4085
|
//#endregion
|
|
3852
|
-
//#region src/plugins/@hey-api/sdk/symbols.d.ts
|
|
3853
|
-
declare function sdkSymbols(plugin: PluginInstance$1): {
|
|
3854
|
-
Client: any;
|
|
3855
|
-
Composable: any;
|
|
3856
|
-
Options: any;
|
|
3857
|
-
RequestResult: any;
|
|
3858
|
-
ServerSentEventsResult: any;
|
|
3859
|
-
TDataShape: any;
|
|
3860
|
-
angular: {
|
|
3861
|
-
Injectable: any;
|
|
3862
|
-
};
|
|
3863
|
-
buildClientParams: any;
|
|
3864
|
-
formDataBodySerializer: any;
|
|
3865
|
-
urlSearchParamsBodySerializer: any;
|
|
3866
|
-
};
|
|
3867
|
-
type SdkSymbols = ReturnType<typeof sdkSymbols>;
|
|
3868
|
-
//#endregion
|
|
3869
4086
|
//#region src/plugins/@hey-api/sdk/types.d.ts
|
|
3870
|
-
type UserConfig$
|
|
4087
|
+
type UserConfig$18 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
3871
4088
|
/**
|
|
3872
4089
|
* Should the generated functions contain auth mechanisms? You may want to
|
|
3873
4090
|
* disable this option if you're handling auth yourself or defining it
|
|
@@ -4056,7 +4273,7 @@ type UserConfig$17 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.U
|
|
|
4056
4273
|
*/
|
|
4057
4274
|
response?: 'body' | 'response';
|
|
4058
4275
|
};
|
|
4059
|
-
type Config$
|
|
4276
|
+
type Config$15 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
4060
4277
|
/** Should the generated functions contain auth mechanisms? */auth: boolean; /** Use an internal client instance to send HTTP requests? */
|
|
4061
4278
|
client: PluginClientNames | false; /** Configuration for generating SDK code examples. */
|
|
4062
4279
|
examples: ExamplesConfig; /** Define the structure of generated SDK operations. */
|
|
@@ -4085,7 +4302,15 @@ type Config$14 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comme
|
|
|
4085
4302
|
*/
|
|
4086
4303
|
response: 'body' | 'response';
|
|
4087
4304
|
};
|
|
4088
|
-
type HeyApiSdkPlugin = DefinePlugin$1<UserConfig$
|
|
4305
|
+
type HeyApiSdkPlugin = DefinePlugin$1<UserConfig$18, Config$15, never, SdkImports>;
|
|
4306
|
+
//#endregion
|
|
4307
|
+
//#region src/plugins/@hey-api/transformers/imports.d.ts
|
|
4308
|
+
declare function transformersImports(plugin: PluginInstance$1): {
|
|
4309
|
+
temporalPolyfill: {
|
|
4310
|
+
Temporal: any;
|
|
4311
|
+
};
|
|
4312
|
+
};
|
|
4313
|
+
type TransformersImports = ReturnType<typeof transformersImports>;
|
|
4089
4314
|
//#endregion
|
|
4090
4315
|
//#region src/plugins/@hey-api/transformers/types.d.ts
|
|
4091
4316
|
interface BaseTransformer extends DollarTsDsl {
|
|
@@ -4093,7 +4318,7 @@ interface BaseTransformer extends DollarTsDsl {
|
|
|
4093
4318
|
schema: IR$1.SchemaObject;
|
|
4094
4319
|
}
|
|
4095
4320
|
type ExpressionTransformer = (ctx: BaseTransformer & {
|
|
4096
|
-
/** @deprecated Use `plugin` instead and access the config via `plugin.config` */config: Omit<UserConfig$
|
|
4321
|
+
/** @deprecated Use `plugin` instead and access the config via `plugin.config` */config: Omit<UserConfig$17, 'name'>;
|
|
4097
4322
|
dataExpression?: ts.Expression | ReturnType<typeof $.attr | typeof $.expr> | string;
|
|
4098
4323
|
}) => Array<TsDsl<ts.Expression> | ReturnType<typeof $.return>> | undefined;
|
|
4099
4324
|
/**
|
|
@@ -4101,7 +4326,7 @@ type ExpressionTransformer = (ctx: BaseTransformer & {
|
|
|
4101
4326
|
* If undefined is returned, the default type will be used.
|
|
4102
4327
|
*/
|
|
4103
4328
|
type TypeTransformer = (ctx: BaseTransformer) => MaybeTsDsl<ts.TypeNode> | undefined;
|
|
4104
|
-
type UserConfig$
|
|
4329
|
+
type UserConfig$17 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
4105
4330
|
/**
|
|
4106
4331
|
* Convert long integers into BigInt values?
|
|
4107
4332
|
*
|
|
@@ -4130,7 +4355,7 @@ type UserConfig$16 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & P
|
|
|
4130
4355
|
*/
|
|
4131
4356
|
typeTransformers?: ReadonlyArray<TypeTransformer>;
|
|
4132
4357
|
};
|
|
4133
|
-
type Config$
|
|
4358
|
+
type Config$14 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
4134
4359
|
/**
|
|
4135
4360
|
* Convert long integers into BigInt values?
|
|
4136
4361
|
*
|
|
@@ -4159,7 +4384,7 @@ type Config$13 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugi
|
|
|
4159
4384
|
*/
|
|
4160
4385
|
typeTransformers: ReadonlyArray<TypeTransformer>;
|
|
4161
4386
|
};
|
|
4162
|
-
type HeyApiTransformersPlugin = DefinePlugin$1<UserConfig$
|
|
4387
|
+
type HeyApiTransformersPlugin = DefinePlugin$1<UserConfig$17, Config$14, never, TransformersImports>;
|
|
4163
4388
|
//#endregion
|
|
4164
4389
|
//#region src/plugins/@hey-api/typescript/shared/types.d.ts
|
|
4165
4390
|
type Type = MaybeTsDsl<TypeTsDsl>;
|
|
@@ -4193,6 +4418,14 @@ type IApi$3 = {
|
|
|
4193
4418
|
schemaToType: (plugin: HeyApiTypeScriptPlugin['Instance'], schema: IR$1.SchemaObject) => Type;
|
|
4194
4419
|
};
|
|
4195
4420
|
//#endregion
|
|
4421
|
+
//#region src/plugins/@hey-api/typescript/imports.d.ts
|
|
4422
|
+
declare function typescriptImports(plugin: PluginInstance$1): {
|
|
4423
|
+
temporalPolyfill: {
|
|
4424
|
+
Temporal: any;
|
|
4425
|
+
};
|
|
4426
|
+
};
|
|
4427
|
+
type TypeScriptImports = ReturnType<typeof typescriptImports>;
|
|
4428
|
+
//#endregion
|
|
4196
4429
|
//#region src/plugins/@hey-api/typescript/resolvers.d.ts
|
|
4197
4430
|
type HeyApiTypeScriptResolvers = Plugin$1.Resolvers<{
|
|
4198
4431
|
/**
|
|
@@ -4486,7 +4719,7 @@ interface VoidResolverContext$2 extends BaseContext$2, Plugin$1.ResolverNodes<{
|
|
|
4486
4719
|
//#endregion
|
|
4487
4720
|
//#region src/plugins/@hey-api/typescript/types.d.ts
|
|
4488
4721
|
type EnumsType = 'javascript' | 'typescript' | 'typescript-const';
|
|
4489
|
-
type UserConfig$
|
|
4722
|
+
type UserConfig$16 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & HeyApiTypeScriptResolvers & {
|
|
4490
4723
|
/**
|
|
4491
4724
|
* Casing convention for generated names.
|
|
4492
4725
|
*
|
|
@@ -4693,7 +4926,7 @@ type UserConfig$15 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plu
|
|
|
4693
4926
|
payload?: NameTransformer;
|
|
4694
4927
|
};
|
|
4695
4928
|
};
|
|
4696
|
-
type Config$
|
|
4929
|
+
type Config$13 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & HeyApiTypeScriptResolvers & {
|
|
4697
4930
|
/**
|
|
4698
4931
|
* Casing convention for generated names.
|
|
4699
4932
|
*/
|
|
@@ -4790,10 +5023,22 @@ type Config$12 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$
|
|
|
4790
5023
|
payload: NameTransformer;
|
|
4791
5024
|
};
|
|
4792
5025
|
};
|
|
4793
|
-
type HeyApiTypeScriptPlugin = DefinePlugin$1<UserConfig$
|
|
5026
|
+
type HeyApiTypeScriptPlugin = DefinePlugin$1<UserConfig$16, Config$13, IApi$3, TypeScriptImports>;
|
|
5027
|
+
//#endregion
|
|
5028
|
+
//#region src/plugins/@pinia/colada/imports.d.ts
|
|
5029
|
+
declare function piniaColadaImports(plugin: PluginInstance$1): {
|
|
5030
|
+
axios: {
|
|
5031
|
+
AxiosError: any;
|
|
5032
|
+
};
|
|
5033
|
+
UseMutationOptions: any;
|
|
5034
|
+
UseQueryOptions: any;
|
|
5035
|
+
_JSONValue: any;
|
|
5036
|
+
defineQueryOptions: any;
|
|
5037
|
+
};
|
|
5038
|
+
type PiniaColadaImports = ReturnType<typeof piniaColadaImports>;
|
|
4794
5039
|
//#endregion
|
|
4795
5040
|
//#region src/plugins/@pinia/colada/types.d.ts
|
|
4796
|
-
type UserConfig$
|
|
5041
|
+
type UserConfig$15 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
4797
5042
|
/**
|
|
4798
5043
|
* Casing convention for generated names.
|
|
4799
5044
|
*
|
|
@@ -4950,7 +5195,7 @@ type UserConfig$14 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.
|
|
|
4950
5195
|
name?: NameTransformer;
|
|
4951
5196
|
};
|
|
4952
5197
|
};
|
|
4953
|
-
type Config$
|
|
5198
|
+
type Config$12 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
4954
5199
|
/**
|
|
4955
5200
|
* Casing convention for generated names.
|
|
4956
5201
|
*/
|
|
@@ -5028,10 +5273,10 @@ type Config$11 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.Comm
|
|
|
5028
5273
|
meta: ((operation: IR$1.OperationObject) => Record<string, unknown>) | undefined;
|
|
5029
5274
|
};
|
|
5030
5275
|
};
|
|
5031
|
-
type PiniaColadaPlugin = DefinePlugin$1<UserConfig$
|
|
5276
|
+
type PiniaColadaPlugin = DefinePlugin$1<UserConfig$15, Config$12, never, PiniaColadaImports>;
|
|
5032
5277
|
//#endregion
|
|
5033
|
-
//#region src/plugins/@tanstack/query-core/
|
|
5034
|
-
declare function
|
|
5278
|
+
//#region src/plugins/@tanstack/query-core/imports.d.ts
|
|
5279
|
+
declare function tanStackQueryImports(plugin: PluginInstance$1): {
|
|
5035
5280
|
axios: {
|
|
5036
5281
|
AxiosError: any;
|
|
5037
5282
|
};
|
|
@@ -5045,10 +5290,10 @@ declare function tanStackQuerySymbols(plugin: PluginInstance$1): {
|
|
|
5045
5290
|
useQuery: any;
|
|
5046
5291
|
useQueryClient: any;
|
|
5047
5292
|
};
|
|
5048
|
-
type
|
|
5293
|
+
type TanStackQueryImports = ReturnType<typeof tanStackQueryImports>;
|
|
5049
5294
|
//#endregion
|
|
5050
5295
|
//#region src/plugins/@tanstack/angular-query-experimental/types.d.ts
|
|
5051
|
-
type UserConfig$
|
|
5296
|
+
type UserConfig$14 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
5052
5297
|
/**
|
|
5053
5298
|
* Casing convention for generated names.
|
|
5054
5299
|
*
|
|
@@ -5420,7 +5665,7 @@ type UserConfig$13 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
|
|
|
5420
5665
|
name?: NameTransformer;
|
|
5421
5666
|
};
|
|
5422
5667
|
};
|
|
5423
|
-
type Config$
|
|
5668
|
+
type Config$11 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
5424
5669
|
/** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
|
|
5425
5670
|
getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
|
|
5426
5671
|
infiniteQueryKeys: NamingOptions & FeatureToggle & {
|
|
@@ -5445,10 +5690,10 @@ type Config$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$
|
|
|
5445
5690
|
}; /** Resolved configuration for generated `setQueryData` helpers. */
|
|
5446
5691
|
setQueryData: NamingOptions & FeatureToggle;
|
|
5447
5692
|
};
|
|
5448
|
-
type TanStackAngularQueryPlugin = DefinePlugin$1<UserConfig$
|
|
5693
|
+
type TanStackAngularQueryPlugin = DefinePlugin$1<UserConfig$14, Config$11, never, TanStackQueryImports>;
|
|
5449
5694
|
//#endregion
|
|
5450
5695
|
//#region src/plugins/@tanstack/preact-query/types.d.ts
|
|
5451
|
-
type UserConfig$
|
|
5696
|
+
type UserConfig$13 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
5452
5697
|
/**
|
|
5453
5698
|
* Casing convention for generated names.
|
|
5454
5699
|
*
|
|
@@ -5962,7 +6207,7 @@ type UserConfig$12 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks &
|
|
|
5962
6207
|
name?: NameTransformer;
|
|
5963
6208
|
};
|
|
5964
6209
|
};
|
|
5965
|
-
type Config$
|
|
6210
|
+
type Config$10 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
5966
6211
|
/** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
|
|
5967
6212
|
getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
|
|
5968
6213
|
infiniteQueryKeys: NamingOptions & FeatureToggle & {
|
|
@@ -5991,10 +6236,10 @@ type Config$9 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugi
|
|
|
5991
6236
|
useQuery: NamingOptions & FeatureToggle; /** Configuration for generated Preact Query hook variant of `setQueryData`. */
|
|
5992
6237
|
useSetQueryData: NamingOptions & FeatureToggle;
|
|
5993
6238
|
};
|
|
5994
|
-
type TanStackPreactQueryPlugin = DefinePlugin$1<UserConfig$
|
|
6239
|
+
type TanStackPreactQueryPlugin = DefinePlugin$1<UserConfig$13, Config$10, never, TanStackQueryImports>;
|
|
5995
6240
|
//#endregion
|
|
5996
6241
|
//#region src/plugins/@tanstack/react-query/types.d.ts
|
|
5997
|
-
type UserConfig$
|
|
6242
|
+
type UserConfig$12 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
5998
6243
|
/**
|
|
5999
6244
|
* Casing convention for generated names.
|
|
6000
6245
|
*
|
|
@@ -6508,7 +6753,7 @@ type UserConfig$11 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & P
|
|
|
6508
6753
|
name?: NameTransformer;
|
|
6509
6754
|
};
|
|
6510
6755
|
};
|
|
6511
|
-
type Config$
|
|
6756
|
+
type Config$9 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
6512
6757
|
/** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
|
|
6513
6758
|
getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
|
|
6514
6759
|
infiniteQueryKeys: NamingOptions & FeatureToggle & {
|
|
@@ -6537,10 +6782,10 @@ type Config$8 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
|
|
|
6537
6782
|
useQuery: NamingOptions & FeatureToggle; /** Configuration for generated React Query hook variant of `setQueryData`. */
|
|
6538
6783
|
useSetQueryData: NamingOptions & FeatureToggle;
|
|
6539
6784
|
};
|
|
6540
|
-
type TanStackReactQueryPlugin = DefinePlugin$1<UserConfig$
|
|
6785
|
+
type TanStackReactQueryPlugin = DefinePlugin$1<UserConfig$12, Config$9, never, TanStackQueryImports>;
|
|
6541
6786
|
//#endregion
|
|
6542
6787
|
//#region src/plugins/@tanstack/solid-query/types.d.ts
|
|
6543
|
-
type UserConfig$
|
|
6788
|
+
type UserConfig$11 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
6544
6789
|
/**
|
|
6545
6790
|
* Casing convention for generated names.
|
|
6546
6791
|
*
|
|
@@ -6913,7 +7158,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & P
|
|
|
6913
7158
|
name?: NameTransformer;
|
|
6914
7159
|
};
|
|
6915
7160
|
};
|
|
6916
|
-
type Config$
|
|
7161
|
+
type Config$8 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
6917
7162
|
/** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
|
|
6918
7163
|
getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
|
|
6919
7164
|
infiniteQueryKeys: NamingOptions & FeatureToggle & {
|
|
@@ -6938,10 +7183,10 @@ type Config$7 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin
|
|
|
6938
7183
|
}; /** Resolved configuration for generated `setQueryData` helpers. */
|
|
6939
7184
|
setQueryData: NamingOptions & FeatureToggle;
|
|
6940
7185
|
};
|
|
6941
|
-
type TanStackSolidQueryPlugin = DefinePlugin$1<UserConfig$
|
|
7186
|
+
type TanStackSolidQueryPlugin = DefinePlugin$1<UserConfig$11, Config$8, never, TanStackQueryImports>;
|
|
6942
7187
|
//#endregion
|
|
6943
7188
|
//#region src/plugins/@tanstack/svelte-query/types.d.ts
|
|
6944
|
-
type UserConfig$
|
|
7189
|
+
type UserConfig$10 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
6945
7190
|
/**
|
|
6946
7191
|
* Casing convention for generated names.
|
|
6947
7192
|
*
|
|
@@ -7313,7 +7558,7 @@ type UserConfig$9 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & P
|
|
|
7313
7558
|
name?: NameTransformer;
|
|
7314
7559
|
};
|
|
7315
7560
|
};
|
|
7316
|
-
type Config$
|
|
7561
|
+
type Config$7 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
7317
7562
|
/** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
|
|
7318
7563
|
getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
|
|
7319
7564
|
infiniteQueryKeys: NamingOptions & FeatureToggle & {
|
|
@@ -7338,10 +7583,10 @@ type Config$6 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugi
|
|
|
7338
7583
|
}; /** Resolved configuration for generated `setQueryData` helpers. */
|
|
7339
7584
|
setQueryData: NamingOptions & FeatureToggle;
|
|
7340
7585
|
};
|
|
7341
|
-
type TanStackSvelteQueryPlugin = DefinePlugin$1<UserConfig$
|
|
7586
|
+
type TanStackSvelteQueryPlugin = DefinePlugin$1<UserConfig$10, Config$7, never, TanStackQueryImports>;
|
|
7342
7587
|
//#endregion
|
|
7343
7588
|
//#region src/plugins/@tanstack/vue-query/types.d.ts
|
|
7344
|
-
type UserConfig$
|
|
7589
|
+
type UserConfig$9 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
7345
7590
|
/**
|
|
7346
7591
|
* Casing convention for generated names.
|
|
7347
7592
|
*
|
|
@@ -7716,7 +7961,7 @@ type UserConfig$8 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plug
|
|
|
7716
7961
|
name?: NameTransformer;
|
|
7717
7962
|
};
|
|
7718
7963
|
};
|
|
7719
|
-
type Config$
|
|
7964
|
+
type Config$6 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
7720
7965
|
/** Casing convention for generated names. */case: Casing; /** Resolved configuration for generated `getQueryData` helpers. */
|
|
7721
7966
|
getQueryData: NamingOptions & FeatureToggle; /** Resolved configuration for generated infinite query key helpers. */
|
|
7722
7967
|
infiniteQueryKeys: NamingOptions & FeatureToggle & {
|
|
@@ -7741,7 +7986,7 @@ type Config$5 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1
|
|
|
7741
7986
|
}; /** Resolved configuration for generated `setQueryData` helpers. */
|
|
7742
7987
|
setQueryData: NamingOptions & FeatureToggle;
|
|
7743
7988
|
};
|
|
7744
|
-
type TanStackVueQueryPlugin = DefinePlugin$1<UserConfig$
|
|
7989
|
+
type TanStackVueQueryPlugin = DefinePlugin$1<UserConfig$9, Config$6, never, TanStackQueryImports>;
|
|
7745
7990
|
//#endregion
|
|
7746
7991
|
//#region src/plugins/arktype/shared/types.d.ts
|
|
7747
7992
|
type ValidatorArgs$2 = {
|
|
@@ -7758,8 +8003,14 @@ type IApi$2 = {
|
|
|
7758
8003
|
createResponseValidator: (args: ValidatorArgs$2) => ArrowFunc$2 | undefined;
|
|
7759
8004
|
};
|
|
7760
8005
|
//#endregion
|
|
8006
|
+
//#region src/plugins/arktype/imports.d.ts
|
|
8007
|
+
declare function arktypeImports(plugin: PluginInstance$1): {
|
|
8008
|
+
type: any;
|
|
8009
|
+
};
|
|
8010
|
+
type ArktypeImports = ReturnType<typeof arktypeImports>;
|
|
8011
|
+
//#endregion
|
|
7761
8012
|
//#region src/plugins/arktype/types.d.ts
|
|
7762
|
-
type UserConfig$
|
|
8013
|
+
type UserConfig$8 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
7763
8014
|
/**
|
|
7764
8015
|
* Casing convention for generated names.
|
|
7765
8016
|
*
|
|
@@ -8083,7 +8334,7 @@ type UserConfig$7 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.UserCom
|
|
|
8083
8334
|
};
|
|
8084
8335
|
};
|
|
8085
8336
|
};
|
|
8086
|
-
type Config$
|
|
8337
|
+
type Config$5 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
8087
8338
|
/**
|
|
8088
8339
|
* Casing convention for generated names.
|
|
8089
8340
|
*/
|
|
@@ -8188,11 +8439,70 @@ type Config$4 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.Comments &
|
|
|
8188
8439
|
};
|
|
8189
8440
|
};
|
|
8190
8441
|
};
|
|
8191
|
-
type ArktypePlugin = DefinePlugin$1<UserConfig$
|
|
8442
|
+
type ArktypePlugin = DefinePlugin$1<UserConfig$8, Config$5, IApi$2, ArktypeImports>;
|
|
8443
|
+
//#endregion
|
|
8444
|
+
//#region src/plugins/fastify/imports.d.ts
|
|
8445
|
+
declare function fastifyImports(plugin: PluginInstance$1): {
|
|
8446
|
+
RouteHandler: any;
|
|
8447
|
+
};
|
|
8448
|
+
type FastifyImports = ReturnType<typeof fastifyImports>;
|
|
8192
8449
|
//#endregion
|
|
8193
8450
|
//#region src/plugins/fastify/types.d.ts
|
|
8194
|
-
type UserConfig$
|
|
8195
|
-
type FastifyPlugin = DefinePlugin$1<UserConfig$
|
|
8451
|
+
type UserConfig$7 = Plugin$1.Name<'fastify'> & Plugin$1.Hooks & Plugin$1.UserExports;
|
|
8452
|
+
type FastifyPlugin = DefinePlugin$1<UserConfig$7, UserConfig$7, never, FastifyImports>;
|
|
8453
|
+
//#endregion
|
|
8454
|
+
//#region src/plugins/msw/imports.d.ts
|
|
8455
|
+
declare function mswImports(plugin: PluginInstance$1): {
|
|
8456
|
+
DefaultBodyType: any;
|
|
8457
|
+
HttpHandler: any;
|
|
8458
|
+
HttpResponse: any;
|
|
8459
|
+
HttpResponseResolver: any;
|
|
8460
|
+
RequestHandlerOptions: any;
|
|
8461
|
+
http: any;
|
|
8462
|
+
};
|
|
8463
|
+
type MswImports = ReturnType<typeof mswImports>;
|
|
8464
|
+
//#endregion
|
|
8465
|
+
//#region src/plugins/msw/types.d.ts
|
|
8466
|
+
type UserConfig$6 = Plugin$1.Name<'msw'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
8467
|
+
/**
|
|
8468
|
+
* Set a default base URL when creating the handlers? You can set `baseUrl`
|
|
8469
|
+
* to a string which will be used as the base URL. If your input defines
|
|
8470
|
+
* server(s), you can set `baseUrl` to a number to pick a specific server
|
|
8471
|
+
* to use as the base URL. You can disable setting the base URL by setting
|
|
8472
|
+
* `baseUrl` to `false`. By default, `baseUrl` is `'*'`, which matches all
|
|
8473
|
+
* URLs.
|
|
8474
|
+
*
|
|
8475
|
+
* If the matched URL contains template literals, it will be ignored.
|
|
8476
|
+
*
|
|
8477
|
+
* @default '*'
|
|
8478
|
+
*/
|
|
8479
|
+
baseUrl?: string | number | boolean;
|
|
8480
|
+
/**
|
|
8481
|
+
* Behavior when a response cannot be generated (no response defined
|
|
8482
|
+
* in the specification, or configured value sources cannot produce a value).
|
|
8483
|
+
*
|
|
8484
|
+
* - `'error'` - throw an error (fail fast)
|
|
8485
|
+
* - `'passthrough'` - let the request pass through to the network
|
|
8486
|
+
*
|
|
8487
|
+
* @default 'error'
|
|
8488
|
+
*/
|
|
8489
|
+
responseFallback?: 'error' | 'passthrough';
|
|
8490
|
+
/**
|
|
8491
|
+
* Where to pull mock data from. When an array, earlier entries take
|
|
8492
|
+
* precedence.
|
|
8493
|
+
*
|
|
8494
|
+
* - `'example'` - example values defined in the input
|
|
8495
|
+
*
|
|
8496
|
+
* @default ['@hey-api/examples']
|
|
8497
|
+
*/
|
|
8498
|
+
source?: MaybeArray<PluginSourceNames>;
|
|
8499
|
+
};
|
|
8500
|
+
type Config$4 = Plugin$1.Name<'msw'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
8501
|
+
/** Set a default base URL when creating the handlers. */baseUrl: string | number | boolean; /** Behavior when a response cannot be generated. */
|
|
8502
|
+
responseFallback: 'error' | 'passthrough'; /** Where to pull mock data from. */
|
|
8503
|
+
source: ReadonlyArray<PluginSourceNames>;
|
|
8504
|
+
};
|
|
8505
|
+
type MswPlugin = DefinePlugin$1<UserConfig$6, Config$4, never, MswImports>;
|
|
8196
8506
|
//#endregion
|
|
8197
8507
|
//#region src/plugins/nestjs/types.d.ts
|
|
8198
8508
|
type UserConfig$5 = Plugin$1.Name<'nestjs'> & Plugin$1.Hooks & Plugin$1.UserExports;
|
|
@@ -8300,6 +8610,14 @@ interface ContractsConfig {
|
|
|
8300
8610
|
strategyDefaultTag: string;
|
|
8301
8611
|
}
|
|
8302
8612
|
//#endregion
|
|
8613
|
+
//#region src/plugins/orpc/imports.d.ts
|
|
8614
|
+
declare function orpcImports(plugin: PluginInstance$1): {
|
|
8615
|
+
contract: {
|
|
8616
|
+
oc: any;
|
|
8617
|
+
};
|
|
8618
|
+
};
|
|
8619
|
+
type OrpcImports = ReturnType<typeof orpcImports>;
|
|
8620
|
+
//#endregion
|
|
8303
8621
|
//#region src/plugins/orpc/types.d.ts
|
|
8304
8622
|
type UserConfig$4 = Plugin$1.Name<'orpc'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
8305
8623
|
/**
|
|
@@ -8349,7 +8667,13 @@ type Config$3 = Plugin$1.Name<'orpc'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
|
8349
8667
|
output: PluginValidatorNames | false;
|
|
8350
8668
|
};
|
|
8351
8669
|
};
|
|
8352
|
-
type OrpcPlugin = DefinePlugin$1<UserConfig$4, Config$3>;
|
|
8670
|
+
type OrpcPlugin = DefinePlugin$1<UserConfig$4, Config$3, never, OrpcImports>;
|
|
8671
|
+
//#endregion
|
|
8672
|
+
//#region src/plugins/swr/imports.d.ts
|
|
8673
|
+
declare function swrImports(plugin: PluginInstance$1): {
|
|
8674
|
+
useSWR: any;
|
|
8675
|
+
};
|
|
8676
|
+
type SwrImports = ReturnType<typeof swrImports>;
|
|
8353
8677
|
//#endregion
|
|
8354
8678
|
//#region src/plugins/swr/types.d.ts
|
|
8355
8679
|
type UserConfig$3 = Plugin$1.Name<'swr'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
@@ -8789,7 +9113,7 @@ type Config$2 = Plugin$1.Name<'swr'> & Plugin$1.Hooks & Plugin$1.Comments & Plug
|
|
|
8789
9113
|
*/
|
|
8790
9114
|
useSwr: NamingOptions & FeatureToggle;
|
|
8791
9115
|
};
|
|
8792
|
-
type SwrPlugin = DefinePlugin$1<UserConfig$3, Config$2>;
|
|
9116
|
+
type SwrPlugin = DefinePlugin$1<UserConfig$3, Config$2, never, SwrImports>;
|
|
8793
9117
|
//#endregion
|
|
8794
9118
|
//#region src/plugins/valibot/shared/pipes.d.ts
|
|
8795
9119
|
type Pipe = ReturnType<typeof $.call | typeof $.expr>;
|
|
@@ -8858,6 +9182,12 @@ type IApi$1 = {
|
|
|
8858
9182
|
createResponseValidator: (ctx: ValidatorArgs$1) => ArrowFunc$1 | undefined;
|
|
8859
9183
|
};
|
|
8860
9184
|
//#endregion
|
|
9185
|
+
//#region src/plugins/valibot/imports.d.ts
|
|
9186
|
+
declare function valibotImports(plugin: PluginInstance$1): {
|
|
9187
|
+
v: any;
|
|
9188
|
+
};
|
|
9189
|
+
type ValibotImports = ReturnType<typeof valibotImports>;
|
|
9190
|
+
//#endregion
|
|
8861
9191
|
//#region src/plugins/shared/utils/coerce.d.ts
|
|
8862
9192
|
type MaybeBigInt = (value: unknown, format: string | undefined) => ReturnType<typeof $.fromValue>;
|
|
8863
9193
|
type ShouldCoerceToBigInt = (format: string | undefined) => boolean;
|
|
@@ -9028,6 +9358,9 @@ interface BaseContext$1 extends DollarTsDsl, SchemaVisitorContext<ValibotPlugin[
|
|
|
9028
9358
|
* Provides access to commonly used symbols within the plugin.
|
|
9029
9359
|
*/
|
|
9030
9360
|
symbols: {
|
|
9361
|
+
/**
|
|
9362
|
+
* @deprecated The `v` symbol is now available via `plugin.imports.v` and should be accessed from there.
|
|
9363
|
+
*/
|
|
9031
9364
|
v: Symbol;
|
|
9032
9365
|
};
|
|
9033
9366
|
}
|
|
@@ -9217,12 +9550,6 @@ interface VoidResolverContext$1 extends BaseContext$1, Plugin$1.ResolverNodes<{
|
|
|
9217
9550
|
schema: SchemaWithType<'void'>;
|
|
9218
9551
|
}
|
|
9219
9552
|
//#endregion
|
|
9220
|
-
//#region src/plugins/valibot/symbols.d.ts
|
|
9221
|
-
declare function valibotSymbols(plugin: PluginInstance$1): {
|
|
9222
|
-
v: any;
|
|
9223
|
-
};
|
|
9224
|
-
type ValibotSymbols = ReturnType<typeof valibotSymbols>;
|
|
9225
|
-
//#endregion
|
|
9226
9553
|
//#region src/plugins/valibot/types.d.ts
|
|
9227
9554
|
type UserConfig$2 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & ValibotResolvers & {
|
|
9228
9555
|
/**
|
|
@@ -9548,7 +9875,7 @@ type Config$1 = Plugin$1.Name<'valibot'> & Plugin$1.Hooks & Plugin$1.Comments &
|
|
|
9548
9875
|
responses: NamingOptions & FeatureToggle; /** Configuration for webhook-specific Valibot schemas. */
|
|
9549
9876
|
webhooks: NamingOptions & FeatureToggle;
|
|
9550
9877
|
};
|
|
9551
|
-
type ValibotPlugin = DefinePlugin$1<UserConfig$2, Config$1, IApi$1,
|
|
9878
|
+
type ValibotPlugin = DefinePlugin$1<UserConfig$2, Config$1, IApi$1, ValibotImports>;
|
|
9552
9879
|
//#endregion
|
|
9553
9880
|
//#region src/plugins/zod/shared/chain.d.ts
|
|
9554
9881
|
type Chain = ReturnType<typeof $.call | typeof $.expr>;
|
|
@@ -9617,6 +9944,12 @@ type IApi = {
|
|
|
9617
9944
|
createResponseValidator: (ctx: ValidatorArgs) => ArrowFunc | undefined;
|
|
9618
9945
|
};
|
|
9619
9946
|
//#endregion
|
|
9947
|
+
//#region src/plugins/zod/imports.d.ts
|
|
9948
|
+
declare function zodImports(plugin: PluginInstance$1): {
|
|
9949
|
+
z: any;
|
|
9950
|
+
};
|
|
9951
|
+
type ZodImports = ReturnType<typeof zodImports>;
|
|
9952
|
+
//#endregion
|
|
9620
9953
|
//#region src/plugins/zod/resolvers.d.ts
|
|
9621
9954
|
type ZodResolvers = Plugin$1.Resolvers<{
|
|
9622
9955
|
/**
|
|
@@ -9773,6 +10106,9 @@ interface BaseContext extends DollarTsDsl, SchemaVisitorContext<ZodPlugin['Insta
|
|
|
9773
10106
|
* Provides access to commonly used symbols within the plugin.
|
|
9774
10107
|
*/
|
|
9775
10108
|
symbols: {
|
|
10109
|
+
/**
|
|
10110
|
+
* @deprecated The `z` symbol is now available via `plugin.imports.z` and should be accessed from there.
|
|
10111
|
+
*/
|
|
9776
10112
|
z: Symbol;
|
|
9777
10113
|
};
|
|
9778
10114
|
}
|
|
@@ -10053,13 +10389,8 @@ interface VoidResolverContext extends BaseContext, Plugin$1.ResolverNodes<{
|
|
|
10053
10389
|
schema: SchemaWithType<'void'>;
|
|
10054
10390
|
}
|
|
10055
10391
|
//#endregion
|
|
10056
|
-
//#region src/plugins/zod/symbols.d.ts
|
|
10057
|
-
declare function zodSymbols(plugin: PluginInstance$1): {
|
|
10058
|
-
z: any;
|
|
10059
|
-
};
|
|
10060
|
-
type ZodSymbols = ReturnType<typeof zodSymbols>;
|
|
10061
|
-
//#endregion
|
|
10062
10392
|
//#region src/plugins/zod/types.d.ts
|
|
10393
|
+
type ZodCompatibilityVersion = 3 | 4 | 'mini';
|
|
10063
10394
|
type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & ZodResolvers & {
|
|
10064
10395
|
/**
|
|
10065
10396
|
* Casing convention for generated names.
|
|
@@ -10077,7 +10408,7 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
10077
10408
|
*
|
|
10078
10409
|
* @default 4
|
|
10079
10410
|
*/
|
|
10080
|
-
compatibilityVersion?:
|
|
10411
|
+
compatibilityVersion?: ZodCompatibilityVersion;
|
|
10081
10412
|
/**
|
|
10082
10413
|
* Configuration for date handling in generated Zod schemas.
|
|
10083
10414
|
*
|
|
@@ -11257,7 +11588,7 @@ type UserConfig$1 = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.UserComment
|
|
|
11257
11588
|
};
|
|
11258
11589
|
type Config = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & ZodResolvers & {
|
|
11259
11590
|
/** Casing convention for generated names. */case: Casing; /** The compatibility version to target for generated output. */
|
|
11260
|
-
compatibilityVersion:
|
|
11591
|
+
compatibilityVersion: ZodCompatibilityVersion; /** Configuration for date handling in generated Zod schemas. */
|
|
11261
11592
|
dates: {
|
|
11262
11593
|
/** Whether to allow unqualified (timezone-less) datetimes. */local: boolean; /** Whether to include timezone offset information when handling dates. */
|
|
11263
11594
|
offset: boolean;
|
|
@@ -11290,7 +11621,7 @@ type Config = Plugin$1.Name<'zod'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin
|
|
|
11290
11621
|
}; /** Configuration for webhook-specific Zod schemas. */
|
|
11291
11622
|
webhooks: NamingOptions & FeatureToggle & TypeOptions;
|
|
11292
11623
|
};
|
|
11293
|
-
type ZodPlugin = DefinePlugin$1<UserConfig$1, Config, IApi,
|
|
11624
|
+
type ZodPlugin = DefinePlugin$1<UserConfig$1, Config, IApi, ZodImports>;
|
|
11294
11625
|
//#endregion
|
|
11295
11626
|
//#region src/generate.d.ts
|
|
11296
11627
|
/**
|
|
@@ -11300,12 +11631,6 @@ type ZodPlugin = DefinePlugin$1<UserConfig$1, Config, IApi, ZodSymbols>;
|
|
|
11300
11631
|
*/
|
|
11301
11632
|
declare function createClient(userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: any): Promise<ReadonlyArray<Context>>;
|
|
11302
11633
|
//#endregion
|
|
11303
|
-
//#region src/config/plugins.d.ts
|
|
11304
|
-
/**
|
|
11305
|
-
* Default plugins used to generate artifacts if plugins aren't specified.
|
|
11306
|
-
*/
|
|
11307
|
-
declare const defaultPlugins: readonly ["@hey-api/typescript", "@hey-api/sdk"];
|
|
11308
|
-
//#endregion
|
|
11309
11634
|
//#region src/plugins/@hey-api/client-core/config.d.ts
|
|
11310
11635
|
declare const clientDefaultConfig: {
|
|
11311
11636
|
readonly baseUrl: true;
|
|
@@ -11322,9 +11647,15 @@ declare function clientPluginHandler({
|
|
|
11322
11647
|
plugin
|
|
11323
11648
|
}: Parameters<PluginHandler>[0]): void;
|
|
11324
11649
|
//#endregion
|
|
11650
|
+
//#region src/plugins/config.d.ts
|
|
11651
|
+
/**
|
|
11652
|
+
* Default plugins used to generate artifacts if plugins aren't specified.
|
|
11653
|
+
*/
|
|
11654
|
+
declare const defaultPlugins: readonly ["@hey-api/typescript", "@hey-api/sdk"];
|
|
11655
|
+
//#endregion
|
|
11325
11656
|
//#region src/index.d.ts
|
|
11326
11657
|
declare module '@hey-api/codegen-core' {
|
|
11327
|
-
interface
|
|
11658
|
+
interface ProjectMeta {
|
|
11328
11659
|
/**
|
|
11329
11660
|
* If specified, this will be the file extension used when importing
|
|
11330
11661
|
* other modules. By default, we don't add a file extension and let the
|
|
@@ -11335,23 +11666,17 @@ declare module '@hey-api/codegen-core' {
|
|
|
11335
11666
|
importFileExtension?: AnyString | null;
|
|
11336
11667
|
}
|
|
11337
11668
|
interface SymbolMeta {
|
|
11669
|
+
artifact?: 'angular' | 'arktype' | 'fastify' | 'json-schema' | 'msw' | 'sdk' | 'typescript' | 'valibot' | 'zod' | AnyString;
|
|
11338
11670
|
category?: 'client' | 'external' | 'hook' | 'schema' | 'sdk' | 'transform' | 'type' | 'utility' | AnyString;
|
|
11339
|
-
/**
|
|
11340
|
-
* Path to the resource this symbol represents.
|
|
11341
|
-
*/
|
|
11671
|
+
/** Path to the resource this symbol represents. */
|
|
11342
11672
|
path?: ReadonlyArray<string | number>;
|
|
11343
|
-
/**
|
|
11344
|
-
|
|
11345
|
-
*/
|
|
11346
|
-
pluginName?: string;
|
|
11673
|
+
/** Name of the plugin that registered this symbol. */
|
|
11674
|
+
plugin?: string;
|
|
11347
11675
|
resource?: 'client' | 'definition' | 'operation' | 'webhook' | AnyString;
|
|
11348
11676
|
resourceId?: string;
|
|
11349
11677
|
role?: 'data' | 'error' | 'errors' | 'options' | 'response' | 'responses' | AnyString;
|
|
11350
|
-
/**
|
|
11351
|
-
* Tags associated with this symbol.
|
|
11352
|
-
*/
|
|
11678
|
+
/** Tags associated with this symbol. */
|
|
11353
11679
|
tags?: ReadonlyArray<string>;
|
|
11354
|
-
tool?: 'angular' | 'arktype' | 'fastify' | 'json-schema' | 'sdk' | 'typescript' | 'valibot' | 'zod' | AnyString;
|
|
11355
11680
|
variant?: 'container' | AnyString;
|
|
11356
11681
|
}
|
|
11357
11682
|
}
|
|
@@ -11366,6 +11691,7 @@ declare module '@hey-api/shared' {
|
|
|
11366
11691
|
'@hey-api/client-next': Plugins.HeyApiClientNext.Types['Types'];
|
|
11367
11692
|
'@hey-api/client-nuxt': Plugins.HeyApiClientNuxt.Types['Types'];
|
|
11368
11693
|
'@hey-api/client-ofetch': Plugins.HeyApiClientOfetch.Types['Types'];
|
|
11694
|
+
'@hey-api/examples': Plugins.HeyApiExamples.Types['Types'];
|
|
11369
11695
|
'@hey-api/schemas': Plugins.HeyApiSchemas.Types['Types'];
|
|
11370
11696
|
'@hey-api/sdk': Plugins.HeyApiSdk.Types['Types'];
|
|
11371
11697
|
'@hey-api/transformers': Plugins.HeyApiTransformers.Types['Types'];
|
|
@@ -11379,6 +11705,7 @@ declare module '@hey-api/shared' {
|
|
|
11379
11705
|
'@tanstack/vue-query': Plugins.TanStackVueQuery.Types['Types'];
|
|
11380
11706
|
arktype: Plugins.Arktype.Types['Types'];
|
|
11381
11707
|
fastify: Plugins.Fastify.Types['Types'];
|
|
11708
|
+
msw: Plugins.Msw.Types['Types'];
|
|
11382
11709
|
nestjs: Plugins.NestJs.Types['Types'];
|
|
11383
11710
|
orpc: Plugins.Orpc.Types['Types'];
|
|
11384
11711
|
swr: Plugins.Swr.Types['Types'];
|
|
@@ -11402,8 +11729,8 @@ declare namespace Plugins {
|
|
|
11402
11729
|
type Types = ArktypePlugin;
|
|
11403
11730
|
}
|
|
11404
11731
|
namespace FakerJsFaker {
|
|
11732
|
+
type Resolvers = Required<FakerJsFakerResolvers>['$resolvers'];
|
|
11405
11733
|
type Types = FakerJsFakerPlugin;
|
|
11406
|
-
type Resolvers = Required<FakerJsFakerResolvers>['~resolvers'];
|
|
11407
11734
|
}
|
|
11408
11735
|
namespace Fastify {
|
|
11409
11736
|
type Types = FastifyPlugin;
|
|
@@ -11436,6 +11763,9 @@ declare namespace Plugins {
|
|
|
11436
11763
|
type Client = Client$2;
|
|
11437
11764
|
type Types = HeyApiClientOfetchPlugin;
|
|
11438
11765
|
}
|
|
11766
|
+
namespace HeyApiExamples {
|
|
11767
|
+
type Types = HeyApiExamplesPlugin;
|
|
11768
|
+
}
|
|
11439
11769
|
namespace HeyApiSchemas {
|
|
11440
11770
|
type Types = HeyApiSchemasPlugin;
|
|
11441
11771
|
}
|
|
@@ -11446,9 +11776,12 @@ declare namespace Plugins {
|
|
|
11446
11776
|
type Types = HeyApiTransformersPlugin;
|
|
11447
11777
|
}
|
|
11448
11778
|
namespace HeyApiTypeScript {
|
|
11449
|
-
type Resolvers = Required<HeyApiTypeScriptResolvers>['
|
|
11779
|
+
type Resolvers = Required<HeyApiTypeScriptResolvers>['$resolvers'];
|
|
11450
11780
|
type Types = HeyApiTypeScriptPlugin;
|
|
11451
11781
|
}
|
|
11782
|
+
namespace Msw {
|
|
11783
|
+
type Types = MswPlugin;
|
|
11784
|
+
}
|
|
11452
11785
|
namespace NestJs {
|
|
11453
11786
|
type Types = NestJsPlugin;
|
|
11454
11787
|
}
|
|
@@ -11480,11 +11813,11 @@ declare namespace Plugins {
|
|
|
11480
11813
|
type Types = TanStackVueQueryPlugin;
|
|
11481
11814
|
}
|
|
11482
11815
|
namespace Valibot {
|
|
11483
|
-
type Resolvers = Required<ValibotResolvers>['
|
|
11816
|
+
type Resolvers = Required<ValibotResolvers>['$resolvers'];
|
|
11484
11817
|
type Types = ValibotPlugin;
|
|
11485
11818
|
}
|
|
11486
11819
|
namespace Zod {
|
|
11487
|
-
type Resolvers = Required<ZodResolvers>['
|
|
11820
|
+
type Resolvers = Required<ZodResolvers>['$resolvers'];
|
|
11488
11821
|
type Types = ZodPlugin;
|
|
11489
11822
|
}
|
|
11490
11823
|
}
|
|
@@ -11503,5 +11836,5 @@ type NuxtClient = Client$3;
|
|
|
11503
11836
|
/** @deprecated Use `Plugins.HeyApiClientOfetch.Client` instead. */
|
|
11504
11837
|
type OfetchClient = Client$2;
|
|
11505
11838
|
//#endregion
|
|
11506
|
-
export { $, AngularClient, type AnyPluginName, AxiosClient, type CallArgs, type Client, type Coercer, type CoercerMap, type ConfigTable, type DefinePlugin, DollarTsDsl, type ExampleOptions, type ExpressionTransformer, FetchClient, type IR, KyClient, Logger, type MaybeTsDsl, NextClient, NuxtClient, OfetchClient, type OpenApi, type OpenApiMetaObject, type OpenApiOperationObject, type OpenApiParameterObject, type OpenApiRequestBodyObject, type OpenApiResponseObject, type OpenApiSchemaObject, OperationPath, OperationStrategy, type Plugin, type PluginContext, type PluginInstance, Plugins, type TableDirectives, TsDsl, TsDslContext, TypeScriptRenderer, type TypeTransformer, type TypeTsDsl, type UserConfig, applyNaming, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, coerce, createClient, ctx, defaultPaginationKeywords, defaultPlugins, defineConfig, defineConfigTable, definePluginConfig, keywords, regexp, reserved, toCase, utils };
|
|
11839
|
+
export { $, AngularClient, type AnyPluginName, AxiosClient, type CallArgs, type Client, type Coercer, type CoercerMap, type ConfigTable, type DefinePlugin, DollarTsDsl, type ExampleOptions, type ExpressionTransformer, FetchClient, type IR, KyClient, Logger, type MaybeTsDsl, NextClient, NuxtClient, OfetchClient, type OpenApi, type OpenApiMetaObject, type OpenApiOperationObject, type OpenApiParameterObject, type OpenApiRequestBodyObject, type OpenApiResponseObject, type OpenApiSchemaObject, OperationPath, OperationStrategy, type Plugin, type PluginContext, type PluginInstance, Plugins, type TableDirectives, TsDsl, TsDslContext, TypeScriptRenderer, type TypeTransformer, type TypeTsDsl, type UserConfig, applyNaming, clientDefaultConfig, clientDefaultMeta, clientPluginHandler, coerce, createClient, ctx, defaultPaginationKeywords, defaultPlugins, defineConfig, defineConfigTable, definePluginConfig, keywords, plugins_d_exports as plugins, regexp, reserved, toCase, utils };
|
|
11507
11840
|
//# sourceMappingURL=index.d.mts.map
|