@hey-api/openapi-ts 0.94.2 → 0.94.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/clients/nuxt/utils.ts +6 -1
- package/dist/index.d.mts +515 -323
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{init-C6327prb.mjs → init-B4xCXgH4.mjs} +472 -163
- package/dist/init-B4xCXgH4.mjs.map +1 -0
- package/dist/internal.d.mts +1 -1
- package/dist/internal.mjs +1 -1
- package/dist/run.mjs +3 -3
- package/dist/{src-CdNoenvJ.mjs → src-B7Bwskcz.mjs} +5 -6
- package/dist/src-B7Bwskcz.mjs.map +1 -0
- package/dist/{types-CR-cSsLu.d.mts → types-DAEl4_a4.d.mts} +5 -12
- package/dist/types-DAEl4_a4.d.mts.map +1 -0
- package/package.json +5 -5
- package/dist/init-C6327prb.mjs.map +0 -1
- package/dist/src-CdNoenvJ.mjs.map +0 -1
- package/dist/types-CR-cSsLu.d.mts.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { n as UserConfig } from "./types-
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
1
|
+
import { n as UserConfig } from "./types-DAEl4_a4.mjs";
|
|
2
|
+
import * as _hey_api_codegen_core0 from "@hey-api/codegen-core";
|
|
3
|
+
import { AnalysisContext, BindingKind, ExportModule, File, FromRef, ImportModule, Language, Logger, Logger as Logger$1, Node, NodeName, NodeNameSanitizer, NodeRelationship, NodeScope, Ref, RenderContext, Renderer, Symbol } from "@hey-api/codegen-core";
|
|
4
|
+
import { BaseOutput, Casing, Context, DefinePlugin, DefinePlugin as DefinePlugin$1, FeatureToggle, IR, IR as IR$1, LinguistLanguages, NameTransformer, NamingConfig, NamingOptions, NamingRule, OpenApi, OpenApiMetaObject, OpenApiOperationObject, OpenApiParameterObject, OpenApiRequestBodyObject, OpenApiResponseObject, OpenApiSchemaObject, OpenApiV2_0_XTypes, OpenApiV3_0_XTypes, OpenApiV3_1_XTypes, OperationPath, OperationPathStrategy, OperationStrategy, OperationsStrategy, Plugin, Plugin as Plugin$1, SchemaVisitorContext, SchemaWithType, Walker, defaultPaginationKeywords, definePluginConfig, 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";
|
|
@@ -372,7 +373,7 @@ type HttpResourcesConfig = FeatureToggle & {
|
|
|
372
373
|
};
|
|
373
374
|
//#endregion
|
|
374
375
|
//#region src/plugins/@angular/common/types.d.ts
|
|
375
|
-
type UserConfig$
|
|
376
|
+
type UserConfig$27 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
376
377
|
/**
|
|
377
378
|
* Options for generating HTTP Request instances.
|
|
378
379
|
*
|
|
@@ -386,7 +387,7 @@ type UserConfig$26 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$
|
|
|
386
387
|
*/
|
|
387
388
|
httpResources?: boolean | OperationsStrategy | UserHttpResourcesConfig;
|
|
388
389
|
};
|
|
389
|
-
type Config$
|
|
390
|
+
type Config$24 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
390
391
|
/**
|
|
391
392
|
* Options for generating HTTP Request instances.
|
|
392
393
|
*/
|
|
@@ -396,7 +397,7 @@ type Config$23 = Plugin$1.Name<'@angular/common'> & Plugin$1.Hooks & Plugin$1.Co
|
|
|
396
397
|
*/
|
|
397
398
|
httpResources: HttpResourcesConfig;
|
|
398
399
|
};
|
|
399
|
-
type AngularCommonPlugin = DefinePlugin$1<UserConfig$
|
|
400
|
+
type AngularCommonPlugin = DefinePlugin$1<UserConfig$27, Config$24>;
|
|
400
401
|
//#endregion
|
|
401
402
|
//#region src/ts-dsl/mixins/types.d.ts
|
|
402
403
|
type BaseCtor<T extends ts.Node> = abstract new (...args: Array<any>) => TsDsl<T>;
|
|
@@ -404,7 +405,7 @@ type DropFirst<T extends Array<any>> = T extends [any, ...infer Rest] ? Rest : n
|
|
|
404
405
|
type MixinCtor<T extends BaseCtor<any>, K> = abstract new (...args: Array<any>) => InstanceType<T> & K;
|
|
405
406
|
//#endregion
|
|
406
407
|
//#region src/ts-dsl/mixins/type-args.d.ts
|
|
407
|
-
type Arg$1 = NodeName
|
|
408
|
+
type Arg$1 = NodeName | MaybeTsDsl<TypeTsDsl>;
|
|
408
409
|
interface TypeArgsMethods extends Node {
|
|
409
410
|
/** Returns the type arguments as an array of ts.TypeNode nodes. */
|
|
410
411
|
$generics(): ReadonlyArray<ts.TypeNode> | undefined;
|
|
@@ -421,8 +422,8 @@ interface AsMethods extends Node {
|
|
|
421
422
|
}
|
|
422
423
|
//#endregion
|
|
423
424
|
//#region src/ts-dsl/expr/as.d.ts
|
|
424
|
-
type AsExpr = NodeName
|
|
425
|
-
type AsType = NodeName
|
|
425
|
+
type AsExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
426
|
+
type AsType = NodeName | TypeTsDsl;
|
|
426
427
|
type AsCtor = (expr: AsExpr, type: AsType) => AsTsDsl;
|
|
427
428
|
declare const Mixed$52: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.AsExpression>, ExprMethods>, AsMethods>;
|
|
428
429
|
declare class AsTsDsl extends Mixed$52 {
|
|
@@ -444,7 +445,7 @@ interface OptionalMethods extends Node {
|
|
|
444
445
|
}
|
|
445
446
|
//#endregion
|
|
446
447
|
//#region src/ts-dsl/expr/binary.d.ts
|
|
447
|
-
type Expr$3 = NodeName
|
|
448
|
+
type Expr$3 = NodeName | MaybeTsDsl<ts.Expression>;
|
|
448
449
|
type Op$1 = Operator | ts.BinaryOperator;
|
|
449
450
|
type Operator = '!=' | '!==' | '&&' | '*' | '+' | '-' | '/' | '<' | '<=' | '=' | '==' | '===' | '>' | '>=' | '??' | '??=' | '||';
|
|
450
451
|
declare const Mixed$51: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.BinaryExpression>, ExprMethods>, AsMethods>;
|
|
@@ -503,7 +504,7 @@ declare class BinaryTsDsl extends Mixed$51 {
|
|
|
503
504
|
}
|
|
504
505
|
//#endregion
|
|
505
506
|
//#region src/ts-dsl/mixins/operator.d.ts
|
|
506
|
-
type Expr$2 = NodeName
|
|
507
|
+
type Expr$2 = NodeName | MaybeTsDsl<ts.Expression>;
|
|
507
508
|
interface OperatorMethods extends Node {
|
|
508
509
|
/** Logical AND — `this && expr` */
|
|
509
510
|
and(expr: Expr$2): BinaryTsDsl;
|
|
@@ -542,19 +543,19 @@ interface OperatorMethods extends Node {
|
|
|
542
543
|
}
|
|
543
544
|
//#endregion
|
|
544
545
|
//#region src/ts-dsl/expr/attr.d.ts
|
|
545
|
-
type AttrLeft = NodeName
|
|
546
|
-
type AttrCtor = (left: AttrLeft, right: NodeName
|
|
546
|
+
type AttrLeft = NodeName | MaybeTsDsl<ts.Expression>;
|
|
547
|
+
type AttrCtor = (left: AttrLeft, right: NodeName) => AttrTsDsl;
|
|
547
548
|
declare const Mixed$50: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.PropertyAccessExpression | ts.ElementAccessExpression>, OptionalMethods>, OperatorMethods>, ExprMethods>, AsMethods>;
|
|
548
549
|
declare class AttrTsDsl extends Mixed$50 {
|
|
549
550
|
readonly '~dsl' = "AttrTsDsl";
|
|
550
551
|
protected left: Ref<AttrLeft>;
|
|
551
|
-
constructor(left: AttrLeft, right: NodeName
|
|
552
|
+
constructor(left: AttrLeft, right: NodeName);
|
|
552
553
|
analyze(ctx: AnalysisContext): void;
|
|
553
554
|
toAst(): ts.PropertyAccessExpression | ts.ElementAccessExpression;
|
|
554
555
|
}
|
|
555
556
|
//#endregion
|
|
556
557
|
//#region src/ts-dsl/expr/await.d.ts
|
|
557
|
-
type AwaitExpr = NodeName
|
|
558
|
+
type AwaitExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
558
559
|
type AwaitCtor = (expr: AwaitExpr) => AwaitTsDsl;
|
|
559
560
|
declare const Mixed$49: MixinCtor<abstract new () => TsDsl<ts.AwaitExpression>, ExprMethods>;
|
|
560
561
|
declare class AwaitTsDsl extends Mixed$49 {
|
|
@@ -566,7 +567,7 @@ declare class AwaitTsDsl extends Mixed$49 {
|
|
|
566
567
|
}
|
|
567
568
|
//#endregion
|
|
568
569
|
//#region src/ts-dsl/mixins/args.d.ts
|
|
569
|
-
type Arg = NodeName
|
|
570
|
+
type Arg = NodeName | MaybeTsDsl<ts.Expression>;
|
|
570
571
|
interface ArgsMethods extends Node {
|
|
571
572
|
/** Renders the arguments into an array of `Expression`s. */
|
|
572
573
|
$args(): ReadonlyArray<ts.Expression>;
|
|
@@ -578,7 +579,7 @@ interface ArgsMethods extends Node {
|
|
|
578
579
|
//#endregion
|
|
579
580
|
//#region src/ts-dsl/expr/new.d.ts
|
|
580
581
|
type NewArgs = ReadonlyArray<NewExpr | undefined>;
|
|
581
|
-
type NewExpr = NodeName
|
|
582
|
+
type NewExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
582
583
|
type NewCtor = (expr: NewExpr, ...args: NewArgs) => NewTsDsl;
|
|
583
584
|
declare const Mixed$48: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.NewExpression>, TypeArgsMethods>, ExprMethods>, AsMethods>, ArgsMethods>;
|
|
584
585
|
declare class NewTsDsl extends Mixed$48 {
|
|
@@ -602,7 +603,7 @@ declare class TypeOfExprTsDsl extends Mixed$47 {
|
|
|
602
603
|
}
|
|
603
604
|
//#endregion
|
|
604
605
|
//#region src/ts-dsl/stmt/return.d.ts
|
|
605
|
-
type ReturnExpr = NodeName
|
|
606
|
+
type ReturnExpr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
606
607
|
type ReturnCtor = (expr?: ReturnExpr) => ReturnTsDsl;
|
|
607
608
|
declare const Mixed$46: abstract new () => TsDsl<ts.ReturnStatement>;
|
|
608
609
|
declare class ReturnTsDsl extends Mixed$46 {
|
|
@@ -632,8 +633,8 @@ interface TypeExprMethods extends Node {
|
|
|
632
633
|
}
|
|
633
634
|
//#endregion
|
|
634
635
|
//#region src/ts-dsl/type/attr.d.ts
|
|
635
|
-
type Base$1 = NodeName
|
|
636
|
-
type Right = NodeName
|
|
636
|
+
type Base$1 = NodeName | MaybeTsDsl<ts.EntityName>;
|
|
637
|
+
type Right = NodeName | ts.Identifier;
|
|
637
638
|
declare const Mixed$45: MixinCtor<abstract new () => TsDsl<ts.QualifiedName>, TypeExprMethods>;
|
|
638
639
|
declare class TypeAttrTsDsl extends Mixed$45 {
|
|
639
640
|
readonly '~dsl' = "TypeAttrTsDsl";
|
|
@@ -656,9 +657,9 @@ declare class TypeAttrTsDsl extends Mixed$45 {
|
|
|
656
657
|
}
|
|
657
658
|
//#endregion
|
|
658
659
|
//#region src/ts-dsl/type/expr.d.ts
|
|
659
|
-
type TypeExprExpr = NodeName
|
|
660
|
+
type TypeExprExpr = NodeName | TypeAttrTsDsl;
|
|
660
661
|
type TypeExprFn = (t: TypeExprTsDsl) => void;
|
|
661
|
-
type TypeExprCtor = (nameOrFn?: NodeName
|
|
662
|
+
type TypeExprCtor = (nameOrFn?: NodeName | TypeExprFn, fn?: TypeExprFn) => TypeExprTsDsl;
|
|
662
663
|
declare const Mixed$44: MixinCtor<MixinCtor<abstract new () => TsDsl<ts.TypeReferenceNode>, TypeExprMethods>, TypeArgsMethods>;
|
|
663
664
|
declare class TypeExprTsDsl extends Mixed$44 {
|
|
664
665
|
readonly '~dsl' = "TypeExprTsDsl";
|
|
@@ -666,8 +667,8 @@ declare class TypeExprTsDsl extends Mixed$44 {
|
|
|
666
667
|
protected _exprInput?: Ref<TypeExprExpr>;
|
|
667
668
|
constructor();
|
|
668
669
|
constructor(fn: TypeExprFn);
|
|
669
|
-
constructor(name: NodeName
|
|
670
|
-
constructor(name: NodeName
|
|
670
|
+
constructor(name: NodeName);
|
|
671
|
+
constructor(name: NodeName, fn?: TypeExprFn);
|
|
671
672
|
analyze(ctx: AnalysisContext): void;
|
|
672
673
|
/** Returns true when all required builder calls are present. */
|
|
673
674
|
get isValid(): boolean;
|
|
@@ -747,13 +748,13 @@ declare class TypeOperatorTsDsl extends Mixed$42 {
|
|
|
747
748
|
}
|
|
748
749
|
//#endregion
|
|
749
750
|
//#region src/ts-dsl/type/query.d.ts
|
|
750
|
-
type TypeQueryExpr =
|
|
751
|
+
type TypeQueryExpr = NodeName | MaybeTsDsl<TypeTsDsl | ts.Expression>;
|
|
751
752
|
type TypeQueryCtor = (expr: TypeQueryExpr) => TypeQueryTsDsl;
|
|
752
753
|
declare const Mixed$41: MixinCtor<abstract new () => TsDsl<ts.TypeQueryNode>, TypeExprMethods>;
|
|
753
754
|
declare class TypeQueryTsDsl extends Mixed$41 {
|
|
754
755
|
readonly '~dsl' = "TypeQueryTsDsl";
|
|
755
756
|
scope: NodeScope;
|
|
756
|
-
protected _expr: TypeQueryExpr
|
|
757
|
+
protected _expr: Ref<TypeQueryExpr>;
|
|
757
758
|
constructor(expr: TypeQueryExpr);
|
|
758
759
|
analyze(ctx: AnalysisContext): void;
|
|
759
760
|
toAst(): ts.TypeQueryNode;
|
|
@@ -795,7 +796,7 @@ interface ExprMethods extends Node {
|
|
|
795
796
|
//#endregion
|
|
796
797
|
//#region src/ts-dsl/expr/call.d.ts
|
|
797
798
|
type CallArgs = ReadonlyArray<CallCallee | undefined>;
|
|
798
|
-
type CallCallee = NodeName
|
|
799
|
+
type CallCallee = NodeName | MaybeTsDsl<ts.Expression>;
|
|
799
800
|
type CallCtor = (callee: CallCallee, ...args: CallArgs) => CallTsDsl;
|
|
800
801
|
declare const Mixed$40: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.CallExpression>, TypeArgsMethods>, ExprMethods>, AsMethods>, ArgsMethods>;
|
|
801
802
|
declare class CallTsDsl extends Mixed$40 {
|
|
@@ -879,7 +880,7 @@ declare abstract class TsDsl<T extends ts.Node = ts.Node> implements Node<T> {
|
|
|
879
880
|
structuralParents?: Map<TsDsl, NodeRelationship>;
|
|
880
881
|
symbol?: Symbol;
|
|
881
882
|
toAst(): T;
|
|
882
|
-
readonly '~brand'
|
|
883
|
+
readonly '~brand' = "heyapi.node";
|
|
883
884
|
/** Branding property to identify the DSL class at runtime. */
|
|
884
885
|
abstract readonly '~dsl': AnyString;
|
|
885
886
|
/** Conditionally applies a callback to this builder. */
|
|
@@ -895,7 +896,7 @@ declare abstract class TsDsl<T extends ts.Node = ts.Node> implements Node<T> {
|
|
|
895
896
|
length: number;
|
|
896
897
|
}): TsDsl | undefined;
|
|
897
898
|
protected $maybeId<T extends string | ts.Expression>(expr: T): T extends string ? ts.Identifier : T;
|
|
898
|
-
protected $name(name: Ref<NodeName
|
|
899
|
+
protected $name(name: Ref<NodeName>): string;
|
|
899
900
|
protected $node<I>(value: I): NodeOfMaybe<I>;
|
|
900
901
|
protected $type<I>(value: I, args?: ReadonlyArray<ts.TypeNode>): TypeOfMaybe<I>;
|
|
901
902
|
private _name?;
|
|
@@ -920,7 +921,7 @@ declare class DocTsDsl extends TsDsl<ts.Node> {
|
|
|
920
921
|
analyze(ctx: AnalysisContext): void;
|
|
921
922
|
add(lines: DocLines): this;
|
|
922
923
|
apply<T extends ts.Node>(node: T): T;
|
|
923
|
-
toAst():
|
|
924
|
+
toAst(): ts.Identifier;
|
|
924
925
|
}
|
|
925
926
|
//#endregion
|
|
926
927
|
//#region src/ts-dsl/layout/hint.d.ts
|
|
@@ -934,7 +935,7 @@ declare class HintTsDsl extends TsDsl<ts.Node> {
|
|
|
934
935
|
analyze(ctx: AnalysisContext): void;
|
|
935
936
|
add(lines: HintLines): this;
|
|
936
937
|
apply<T extends ts.Node>(node: T): T;
|
|
937
|
-
toAst():
|
|
938
|
+
toAst(): ts.Identifier;
|
|
938
939
|
}
|
|
939
940
|
//#endregion
|
|
940
941
|
//#region src/ts-dsl/mixins/do.d.ts
|
|
@@ -978,16 +979,73 @@ declare class LazyTsDsl<T extends ts.Node = ts.Node> extends TsDsl<T> {
|
|
|
978
979
|
toAst(): T;
|
|
979
980
|
}
|
|
980
981
|
//#endregion
|
|
981
|
-
//#region src/ts-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
982
|
+
//#region src/ts-compiler/nodes/kinds.d.ts
|
|
983
|
+
declare enum TsNodeKind {
|
|
984
|
+
Assignment = "Assignment",
|
|
985
|
+
Identifier = "Identifier",
|
|
986
|
+
Literal = "Literal",
|
|
987
|
+
SourceFile = "SourceFile",
|
|
988
|
+
VariableStatement = "VariableStatement"
|
|
989
|
+
}
|
|
990
|
+
//#endregion
|
|
991
|
+
//#region src/ts-compiler/nodes/expressions/identifier.d.ts
|
|
992
|
+
interface TsIdentifier extends TsNodeBase {
|
|
993
|
+
kind: TsNodeKind.Identifier;
|
|
994
|
+
text: string;
|
|
995
|
+
}
|
|
996
|
+
declare function createIdentifier(text: string, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsIdentifier;
|
|
997
|
+
//#endregion
|
|
998
|
+
//#region src/ts-compiler/nodes/expression.d.ts
|
|
999
|
+
type TsExpression = TsIdentifier | TsLiteral;
|
|
1000
|
+
//#endregion
|
|
1001
|
+
//#region src/ts-compiler/nodes/statements/assignment.d.ts
|
|
1002
|
+
interface TsAssignment extends TsNodeBase {
|
|
1003
|
+
kind: TsNodeKind.Assignment;
|
|
1004
|
+
target: TsExpression;
|
|
1005
|
+
type?: TsExpression;
|
|
1006
|
+
value?: TsExpression;
|
|
1007
|
+
}
|
|
1008
|
+
declare function createAssignment(target: TsExpression, type?: TsExpression, value?: TsExpression, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsAssignment;
|
|
1009
|
+
//#endregion
|
|
1010
|
+
//#region src/ts-compiler/nodes/type.d.ts
|
|
1011
|
+
type TsType = never;
|
|
1012
|
+
//#endregion
|
|
1013
|
+
//#region src/ts-compiler/nodes/statements/var.d.ts
|
|
1014
|
+
type TsVariableKeyword = 'var' | 'let' | 'const';
|
|
1015
|
+
interface TsVariableStatement extends TsNodeBase {
|
|
1016
|
+
initializer?: TsExpression;
|
|
1017
|
+
keyword: TsVariableKeyword;
|
|
1018
|
+
kind: TsNodeKind.VariableStatement;
|
|
1019
|
+
name: string;
|
|
1020
|
+
typeAnnotation?: TsType;
|
|
1021
|
+
}
|
|
1022
|
+
declare function createVariableStatement(keyword: TsVariableKeyword, name: string, initializer?: TsExpression, typeAnnotation?: TsType, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsVariableStatement;
|
|
1023
|
+
//#endregion
|
|
1024
|
+
//#region src/ts-compiler/nodes/statement.d.ts
|
|
1025
|
+
type TsStatement = TsAssignment | TsVariableStatement;
|
|
1026
|
+
//#endregion
|
|
1027
|
+
//#region src/ts-compiler/nodes/structure/sourceFile.d.ts
|
|
1028
|
+
interface TsSourceFile extends TsNodeBase {
|
|
1029
|
+
kind: TsNodeKind.SourceFile;
|
|
1030
|
+
statements: ReadonlyArray<TsNode>;
|
|
1031
|
+
}
|
|
1032
|
+
declare function createSourceFile(statements: ReadonlyArray<TsNode>, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsSourceFile;
|
|
1033
|
+
//#endregion
|
|
1034
|
+
//#region src/ts-compiler/nodes/base.d.ts
|
|
1035
|
+
interface TsNodeBase {
|
|
1036
|
+
kind: TsNodeKind;
|
|
1037
|
+
leadingComments?: ReadonlyArray<string>;
|
|
1038
|
+
trailingComments?: ReadonlyArray<string>;
|
|
1039
|
+
}
|
|
1040
|
+
type TsNode = TsExpression | TsSourceFile | TsStatement;
|
|
1041
|
+
//#endregion
|
|
1042
|
+
//#region src/ts-compiler/nodes/expressions/literal.d.ts
|
|
1043
|
+
type TsLiteralValue = string | number | boolean | bigint | null;
|
|
1044
|
+
interface TsLiteral extends TsNodeBase {
|
|
1045
|
+
kind: TsNodeKind.Literal;
|
|
1046
|
+
value: TsLiteralValue;
|
|
990
1047
|
}
|
|
1048
|
+
declare function createLiteral(value: TsLiteralValue, leadingComments?: ReadonlyArray<string>, trailingComments?: ReadonlyArray<string>): TsLiteral;
|
|
991
1049
|
//#endregion
|
|
992
1050
|
//#region src/ts-dsl/layout/note.d.ts
|
|
993
1051
|
type NoteMaybeLazy<T> = ((ctx: TsDslContext) => T) | T;
|
|
@@ -1000,7 +1058,7 @@ declare class NoteTsDsl extends TsDsl<ts.Node> {
|
|
|
1000
1058
|
analyze(ctx: AnalysisContext): void;
|
|
1001
1059
|
add(lines: NoteLines): this;
|
|
1002
1060
|
apply<T extends ts.Node>(node: T): T;
|
|
1003
|
-
toAst():
|
|
1061
|
+
toAst(): ts.Identifier;
|
|
1004
1062
|
}
|
|
1005
1063
|
//#endregion
|
|
1006
1064
|
//#region src/ts-dsl/mixins/value.d.ts
|
|
@@ -1028,15 +1086,15 @@ interface DecoratorMethods extends Node {
|
|
|
1028
1086
|
/** Renders the decorators into an array of `ts.Decorator`s. */
|
|
1029
1087
|
$decorators(): ReadonlyArray<ts.Decorator>;
|
|
1030
1088
|
/** Adds a decorator (e.g. `@sealed({ in: 'root' })`). */
|
|
1031
|
-
decorator(name: NodeName
|
|
1089
|
+
decorator(name: NodeName | MaybeTsDsl<ts.Expression>, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>): this;
|
|
1032
1090
|
}
|
|
1033
1091
|
//#endregion
|
|
1034
1092
|
//#region src/ts-dsl/decl/param.d.ts
|
|
1035
|
-
type ParamName = NodeName
|
|
1093
|
+
type ParamName = NodeName | ParamFn;
|
|
1036
1094
|
type ParamFn = (p: ParamTsDsl) => void;
|
|
1037
1095
|
type ParamCtor = (name: ParamName, fn?: ParamFn) => ParamTsDsl;
|
|
1038
|
-
declare const Mixed$
|
|
1039
|
-
declare class ParamTsDsl extends Mixed$
|
|
1096
|
+
declare const Mixed$38: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ParameterDeclaration>, ValueMethods>, PatternMethods>, OptionalMethods>, DecoratorMethods>;
|
|
1097
|
+
declare class ParamTsDsl extends Mixed$38 {
|
|
1040
1098
|
readonly '~dsl' = "ParamTsDsl";
|
|
1041
1099
|
protected _type?: TypeTsDsl;
|
|
1042
1100
|
constructor(name: ParamName, fn?: ParamFn);
|
|
@@ -1050,15 +1108,27 @@ declare class ParamTsDsl extends Mixed$37 {
|
|
|
1050
1108
|
private missingRequiredCalls;
|
|
1051
1109
|
}
|
|
1052
1110
|
//#endregion
|
|
1111
|
+
//#region src/ts-dsl/expr/template.d.ts
|
|
1112
|
+
type TemplatePart = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1113
|
+
declare const Mixed$37: abstract new () => TsDsl<ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral>;
|
|
1114
|
+
declare class TemplateTsDsl extends Mixed$37 {
|
|
1115
|
+
readonly '~dsl' = "TemplateTsDsl";
|
|
1116
|
+
protected parts: Array<Ref<TemplatePart>>;
|
|
1117
|
+
constructor(value?: TemplatePart);
|
|
1118
|
+
analyze(ctx: AnalysisContext): void;
|
|
1119
|
+
add(value: TemplatePart): this;
|
|
1120
|
+
toAst(): ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral;
|
|
1121
|
+
}
|
|
1122
|
+
//#endregion
|
|
1053
1123
|
//#region src/ts-dsl/type/param.d.ts
|
|
1054
|
-
type TypeParamExpr = NodeName
|
|
1124
|
+
type TypeParamExpr = NodeName | boolean | MaybeTsDsl<TypeTsDsl>;
|
|
1055
1125
|
declare const Mixed$36: abstract new () => TsDsl<ts.TypeParameterDeclaration>;
|
|
1056
1126
|
declare class TypeParamTsDsl extends Mixed$36 {
|
|
1057
1127
|
readonly '~dsl' = "TypeParamTsDsl";
|
|
1058
1128
|
scope: NodeScope;
|
|
1059
1129
|
protected constraint?: Ref<TypeParamExpr>;
|
|
1060
1130
|
protected defaultValue?: Ref<TypeParamExpr>;
|
|
1061
|
-
constructor(name?: NodeName
|
|
1131
|
+
constructor(name?: NodeName, fn?: (name: TypeParamTsDsl) => void);
|
|
1062
1132
|
analyze(ctx: AnalysisContext): void;
|
|
1063
1133
|
/** Sets the parameter default value. */
|
|
1064
1134
|
default(value: TypeParamExpr): this;
|
|
@@ -1073,7 +1143,7 @@ interface TypeParamsMethods extends Node {
|
|
|
1073
1143
|
/** Adds a single type parameter (e.g. `T` in `Array<T>`). */
|
|
1074
1144
|
generic(...args: ConstructorParameters<typeof TypeParamTsDsl>): this;
|
|
1075
1145
|
/** Adds type parameters (e.g. `Map<string, T>`). */
|
|
1076
|
-
generics(...args: ReadonlyArray<NodeName
|
|
1146
|
+
generics(...args: ReadonlyArray<NodeName | MaybeTsDsl<TypeParamTsDsl>>): this;
|
|
1077
1147
|
}
|
|
1078
1148
|
//#endregion
|
|
1079
1149
|
//#region src/ts-dsl/mixins/modifiers.d.ts
|
|
@@ -1186,13 +1256,13 @@ interface DocMethods extends Node {
|
|
|
1186
1256
|
}
|
|
1187
1257
|
//#endregion
|
|
1188
1258
|
//#region src/ts-dsl/decl/field.d.ts
|
|
1189
|
-
type FieldType = NodeName
|
|
1259
|
+
type FieldType = NodeName | TypeTsDsl;
|
|
1190
1260
|
declare const Mixed$35: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.PropertyDeclaration>, ValueMethods>, StaticMethods>, ReadonlyMethods>, PublicMethods>, ProtectedMethods>, PrivateMethods>, OptionalMethods>, DocMethods>, DecoratorMethods>;
|
|
1191
1261
|
declare class FieldTsDsl extends Mixed$35 {
|
|
1192
1262
|
readonly '~dsl' = "FieldTsDsl";
|
|
1193
1263
|
readonly nameSanitizer: (name: string) => string;
|
|
1194
1264
|
protected _type?: TypeTsDsl;
|
|
1195
|
-
constructor(name: NodeName
|
|
1265
|
+
constructor(name: NodeName, fn?: (f: FieldTsDsl) => void);
|
|
1196
1266
|
analyze(ctx: AnalysisContext): void;
|
|
1197
1267
|
/** Sets the field type. */
|
|
1198
1268
|
type(type: FieldType): this;
|
|
@@ -1223,7 +1293,7 @@ interface TypeReturnsMethods extends Node {
|
|
|
1223
1293
|
/** Returns the return type node. */
|
|
1224
1294
|
$returns(): ts.TypeNode | undefined;
|
|
1225
1295
|
/** Sets the return type. */
|
|
1226
|
-
returns(type: NodeName
|
|
1296
|
+
returns(type: NodeName | TypeTsDsl): this;
|
|
1227
1297
|
}
|
|
1228
1298
|
//#endregion
|
|
1229
1299
|
//#region src/ts-dsl/decl/method.d.ts
|
|
@@ -1231,7 +1301,7 @@ declare const Mixed$33: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinC
|
|
|
1231
1301
|
declare class MethodTsDsl extends Mixed$33 {
|
|
1232
1302
|
readonly '~dsl' = "MethodTsDsl";
|
|
1233
1303
|
readonly nameSanitizer: (name: string) => string;
|
|
1234
|
-
constructor(name: NodeName
|
|
1304
|
+
constructor(name: NodeName, fn?: (m: MethodTsDsl) => void);
|
|
1235
1305
|
analyze(ctx: AnalysisContext): void;
|
|
1236
1306
|
toAst(): ts.MethodDeclaration;
|
|
1237
1307
|
}
|
|
@@ -1242,22 +1312,22 @@ declare const Mixed$32: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinC
|
|
|
1242
1312
|
declare class ClassTsDsl extends Mixed$32 {
|
|
1243
1313
|
readonly '~dsl' = "ClassTsDsl";
|
|
1244
1314
|
readonly nameSanitizer: (name: string) => string;
|
|
1245
|
-
protected baseClass?: Ref<NodeName
|
|
1315
|
+
protected baseClass?: Ref<NodeName>;
|
|
1246
1316
|
protected body: Body;
|
|
1247
|
-
constructor(name: NodeName
|
|
1317
|
+
constructor(name: NodeName);
|
|
1248
1318
|
analyze(ctx: AnalysisContext): void;
|
|
1249
1319
|
/** Returns true if the class has any members. */
|
|
1250
1320
|
get hasBody(): boolean;
|
|
1251
1321
|
/** Adds one or more class members (fields, methods, etc.). */
|
|
1252
1322
|
do(...items: Body): this;
|
|
1253
1323
|
/** Records a base class to extend from. */
|
|
1254
|
-
extends(base?: NodeName
|
|
1324
|
+
extends(base?: NodeName): this;
|
|
1255
1325
|
/** Adds a class field. */
|
|
1256
|
-
field(name: NodeName
|
|
1326
|
+
field(name: NodeName, fn?: (f: FieldTsDsl) => void): this;
|
|
1257
1327
|
/** Adds a class constructor. */
|
|
1258
1328
|
init(fn?: InitTsDsl | ((i: InitTsDsl) => void)): this;
|
|
1259
1329
|
/** Adds a class method. */
|
|
1260
|
-
method(name: NodeName
|
|
1330
|
+
method(name: NodeName, fn?: (m: MethodTsDsl) => void): this;
|
|
1261
1331
|
/** Inserts an empty line between members for formatting. */
|
|
1262
1332
|
newline(): this;
|
|
1263
1333
|
toAst(): ts.ClassDeclaration;
|
|
@@ -1270,7 +1340,7 @@ declare const Mixed$31: MixinCtor<abstract new () => TsDsl<ts.Decorator>, ArgsMe
|
|
|
1270
1340
|
declare class DecoratorTsDsl extends Mixed$31 {
|
|
1271
1341
|
readonly '~dsl' = "DecoratorTsDsl";
|
|
1272
1342
|
readonly nameSanitizer: (name: string) => string;
|
|
1273
|
-
constructor(name: NodeName
|
|
1343
|
+
constructor(name: NodeName, ...args: ReadonlyArray<string | MaybeTsDsl<ts.Expression>>);
|
|
1274
1344
|
analyze(ctx: AnalysisContext): void;
|
|
1275
1345
|
toAst(): ts.Decorator;
|
|
1276
1346
|
}
|
|
@@ -1282,7 +1352,7 @@ declare const Mixed$30: MixinCtor<abstract new () => TsDsl<ts.EnumMember>, DocMe
|
|
|
1282
1352
|
declare class EnumMemberTsDsl extends Mixed$30 {
|
|
1283
1353
|
readonly '~dsl' = "EnumMemberTsDsl";
|
|
1284
1354
|
private _value?;
|
|
1285
|
-
constructor(name: NodeName
|
|
1355
|
+
constructor(name: NodeName, value?: ValueFn$1);
|
|
1286
1356
|
analyze(ctx: AnalysisContext): void;
|
|
1287
1357
|
/** Sets the enum member value. */
|
|
1288
1358
|
value(value?: Value$2): this;
|
|
@@ -1297,7 +1367,7 @@ declare class EnumTsDsl extends Mixed$29 {
|
|
|
1297
1367
|
readonly '~dsl' = "EnumTsDsl";
|
|
1298
1368
|
readonly nameSanitizer: (name: string) => string;
|
|
1299
1369
|
private _members;
|
|
1300
|
-
constructor(name: NodeName
|
|
1370
|
+
constructor(name: NodeName, fn?: (e: EnumTsDsl) => void);
|
|
1301
1371
|
analyze(ctx: AnalysisContext): void;
|
|
1302
1372
|
/** Adds an enum member. */
|
|
1303
1373
|
member(name: string, value?: ValueFn): this;
|
|
@@ -1315,8 +1385,8 @@ declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$28 {
|
|
|
1315
1385
|
protected mode?: FuncMode;
|
|
1316
1386
|
constructor();
|
|
1317
1387
|
constructor(fn: (f: ImplFuncTsDsl<'arrow'>) => void);
|
|
1318
|
-
constructor(name: NodeName
|
|
1319
|
-
constructor(name: NodeName
|
|
1388
|
+
constructor(name: NodeName);
|
|
1389
|
+
constructor(name: NodeName, fn: (f: ImplFuncTsDsl<'decl'>) => void);
|
|
1320
1390
|
analyze(ctx: AnalysisContext): void;
|
|
1321
1391
|
/** Returns true when all required builder calls are present. */
|
|
1322
1392
|
get isValid(): boolean;
|
|
@@ -1333,8 +1403,8 @@ declare class ImplFuncTsDsl<M extends FuncMode = 'arrow'> extends Mixed$28 {
|
|
|
1333
1403
|
declare const FuncTsDsl: {
|
|
1334
1404
|
new (): FuncTsDsl<"arrow">;
|
|
1335
1405
|
new (fn: (f: FuncTsDsl<"arrow">) => void): FuncTsDsl<"arrow">;
|
|
1336
|
-
new (name: NodeName
|
|
1337
|
-
new (name: NodeName
|
|
1406
|
+
new (name: NodeName): FuncTsDsl<"decl">;
|
|
1407
|
+
new (name: NodeName, fn: (f: FuncTsDsl<"decl">) => void): FuncTsDsl<"decl">;
|
|
1338
1408
|
} & typeof ImplFuncTsDsl;
|
|
1339
1409
|
type FuncTsDsl<M extends FuncMode = 'arrow'> = ImplFuncTsDsl<M>;
|
|
1340
1410
|
//#endregion
|
|
@@ -1343,7 +1413,7 @@ declare const Mixed$27: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinC
|
|
|
1343
1413
|
declare class GetterTsDsl extends Mixed$27 {
|
|
1344
1414
|
readonly '~dsl' = "GetterTsDsl";
|
|
1345
1415
|
readonly nameSanitizer: (name: string) => string;
|
|
1346
|
-
constructor(name: NodeName
|
|
1416
|
+
constructor(name: NodeName, fn?: (g: GetterTsDsl) => void);
|
|
1347
1417
|
analyze(ctx: AnalysisContext): void;
|
|
1348
1418
|
toAst(): ts.GetAccessorDeclaration;
|
|
1349
1419
|
}
|
|
@@ -1391,7 +1461,7 @@ declare const Mixed$25: MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinCtor<MixinC
|
|
|
1391
1461
|
declare class SetterTsDsl extends Mixed$25 {
|
|
1392
1462
|
readonly '~dsl' = "SetterTsDsl";
|
|
1393
1463
|
readonly nameSanitizer: (name: string) => string;
|
|
1394
|
-
constructor(name: NodeName
|
|
1464
|
+
constructor(name: NodeName, fn?: (s: SetterTsDsl) => void);
|
|
1395
1465
|
analyze(ctx: AnalysisContext): void;
|
|
1396
1466
|
toAst(): ts.SetAccessorDeclaration;
|
|
1397
1467
|
}
|
|
@@ -1431,14 +1501,14 @@ declare class ArrayTsDsl extends Mixed$24 {
|
|
|
1431
1501
|
}
|
|
1432
1502
|
//#endregion
|
|
1433
1503
|
//#region src/ts-dsl/expr/expr.d.ts
|
|
1434
|
-
type Id = NodeName
|
|
1504
|
+
type Id = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1435
1505
|
declare const Mixed$23: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.Expression>, TypeExprMethods>, OperatorMethods>, ExprMethods>, AsMethods>;
|
|
1436
1506
|
declare class ExprTsDsl extends Mixed$23 {
|
|
1437
1507
|
readonly '~dsl' = "ExprTsDsl";
|
|
1438
1508
|
protected _exprInput: Ref<Id>;
|
|
1439
1509
|
constructor(id: Id);
|
|
1440
1510
|
analyze(ctx: AnalysisContext): void;
|
|
1441
|
-
toAst():
|
|
1511
|
+
toAst(): ts.Expression;
|
|
1442
1512
|
}
|
|
1443
1513
|
//#endregion
|
|
1444
1514
|
//#region src/ts-dsl/expr/id.d.ts
|
|
@@ -1450,6 +1520,65 @@ declare class IdTsDsl extends Mixed$22 {
|
|
|
1450
1520
|
toAst(): ts.Identifier;
|
|
1451
1521
|
}
|
|
1452
1522
|
//#endregion
|
|
1523
|
+
//#region src/ts-compiler/printer.d.ts
|
|
1524
|
+
interface TsPrinterOptions {
|
|
1525
|
+
/**
|
|
1526
|
+
* Number of spaces per indentation level.
|
|
1527
|
+
*
|
|
1528
|
+
* @default 2
|
|
1529
|
+
*/
|
|
1530
|
+
indentSize?: number;
|
|
1531
|
+
/**
|
|
1532
|
+
* Whether to add trailing semicolons to statements.
|
|
1533
|
+
*
|
|
1534
|
+
* @default true
|
|
1535
|
+
*/
|
|
1536
|
+
semicolons?: boolean;
|
|
1537
|
+
}
|
|
1538
|
+
declare function createPrinter(options?: TsPrinterOptions): {
|
|
1539
|
+
printFile: (node: TsNode) => string;
|
|
1540
|
+
};
|
|
1541
|
+
declare function printAst(node: TsNode): string;
|
|
1542
|
+
//#endregion
|
|
1543
|
+
//#region src/ts-compiler/index.d.ts
|
|
1544
|
+
declare namespace ts$1 {
|
|
1545
|
+
type Node = TsNode;
|
|
1546
|
+
type NodeBase = TsNodeBase;
|
|
1547
|
+
type NodeKind = TsNodeKind;
|
|
1548
|
+
type Expression = TsExpression;
|
|
1549
|
+
type Statement = TsStatement;
|
|
1550
|
+
type Type = TsType;
|
|
1551
|
+
type SourceFile = TsSourceFile;
|
|
1552
|
+
type Assignment = TsAssignment;
|
|
1553
|
+
type VariableStatement = TsVariableStatement;
|
|
1554
|
+
type Identifier = TsIdentifier;
|
|
1555
|
+
type Literal = TsLiteral;
|
|
1556
|
+
type PrinterOptions = TsPrinterOptions;
|
|
1557
|
+
type LiteralValue = TsLiteralValue;
|
|
1558
|
+
}
|
|
1559
|
+
declare const ts$1: {
|
|
1560
|
+
readonly TsNodeKind: typeof TsNodeKind;
|
|
1561
|
+
readonly createPrinter: typeof createPrinter;
|
|
1562
|
+
readonly factory: {
|
|
1563
|
+
createAssignment: typeof createAssignment;
|
|
1564
|
+
createIdentifier: typeof createIdentifier;
|
|
1565
|
+
createLiteral: typeof createLiteral;
|
|
1566
|
+
createSourceFile: typeof createSourceFile;
|
|
1567
|
+
createVariableStatement: typeof createVariableStatement;
|
|
1568
|
+
};
|
|
1569
|
+
readonly printAst: typeof printAst;
|
|
1570
|
+
};
|
|
1571
|
+
//#endregion
|
|
1572
|
+
//#region src/ts-dsl/expr/literal.d.ts
|
|
1573
|
+
declare const Mixed$21: MixinCtor<abstract new () => TsDsl<ts.BigIntLiteral | ts.BooleanLiteral | ts.NullLiteral | ts.NumericLiteral | ts.PrefixUnaryExpression | ts.StringLiteral>, AsMethods>;
|
|
1574
|
+
declare class LiteralTsDsl extends Mixed$21 {
|
|
1575
|
+
readonly '~dsl' = "LiteralTsDsl";
|
|
1576
|
+
protected value: ts$1.LiteralValue;
|
|
1577
|
+
constructor(value: ts$1.LiteralValue);
|
|
1578
|
+
analyze(ctx: AnalysisContext): void;
|
|
1579
|
+
toAst(): ts.BigIntLiteral | ts.TrueLiteral | ts.FalseLiteral | ts.NullLiteral | ts.NumericLiteral | ts.PrefixUnaryExpression | ts.StringLiteral;
|
|
1580
|
+
}
|
|
1581
|
+
//#endregion
|
|
1453
1582
|
//#region src/ts-dsl/mixins/hint.d.ts
|
|
1454
1583
|
interface HintMethods extends Node {
|
|
1455
1584
|
$hint<T extends ts.Node>(node: T): T;
|
|
@@ -1457,8 +1586,8 @@ interface HintMethods extends Node {
|
|
|
1457
1586
|
}
|
|
1458
1587
|
//#endregion
|
|
1459
1588
|
//#region src/ts-dsl/expr/prop.d.ts
|
|
1460
|
-
type Expr$1 = NodeName
|
|
1461
|
-
type Stmt$1 = NodeName
|
|
1589
|
+
type Expr$1 = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1590
|
+
type Stmt$1 = NodeName | MaybeTsDsl<ts.Statement>;
|
|
1462
1591
|
type ObjectPropKind = 'computed' | 'getter' | 'prop' | 'setter' | 'spread';
|
|
1463
1592
|
type Meta = {
|
|
1464
1593
|
kind: 'computed';
|
|
@@ -1476,8 +1605,8 @@ type Meta = {
|
|
|
1476
1605
|
kind: 'spread';
|
|
1477
1606
|
name?: undefined;
|
|
1478
1607
|
};
|
|
1479
|
-
declare const Mixed$
|
|
1480
|
-
declare class ObjectPropTsDsl extends Mixed$
|
|
1608
|
+
declare const Mixed$20: MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralElementLike>, DocMethods>;
|
|
1609
|
+
declare class ObjectPropTsDsl extends Mixed$20 {
|
|
1481
1610
|
readonly '~dsl' = "ObjectPropTsDsl";
|
|
1482
1611
|
protected _value?: Ref<Expr$1 | Stmt$1>;
|
|
1483
1612
|
protected _meta: Meta;
|
|
@@ -1487,7 +1616,7 @@ declare class ObjectPropTsDsl extends Mixed$21 {
|
|
|
1487
1616
|
analyze(ctx: AnalysisContext): void;
|
|
1488
1617
|
get isValid(): boolean;
|
|
1489
1618
|
value(value: Expr$1 | Stmt$1 | ((p: ObjectPropTsDsl) => void)): this;
|
|
1490
|
-
toAst():
|
|
1619
|
+
toAst(): ts.GetAccessorDeclaration | ts.SetAccessorDeclaration | ts.PropertyAssignment | ts.ShorthandPropertyAssignment | ts.SpreadAssignment;
|
|
1491
1620
|
$validate(): asserts this is this & {
|
|
1492
1621
|
_value: Expr$1 | Stmt$1;
|
|
1493
1622
|
kind: ObjectPropKind;
|
|
@@ -1496,12 +1625,12 @@ declare class ObjectPropTsDsl extends Mixed$21 {
|
|
|
1496
1625
|
}
|
|
1497
1626
|
//#endregion
|
|
1498
1627
|
//#region src/ts-dsl/expr/object.d.ts
|
|
1499
|
-
type Expr = NodeName
|
|
1500
|
-
type Stmt = NodeName
|
|
1628
|
+
type Expr = NodeName | MaybeTsDsl<ts.Expression>;
|
|
1629
|
+
type Stmt = NodeName | MaybeTsDsl<ts.Statement>;
|
|
1501
1630
|
type ExprFn = Expr | ((p: ObjectPropTsDsl) => void);
|
|
1502
1631
|
type StmtFn = Stmt | ((p: ObjectPropTsDsl) => void);
|
|
1503
|
-
declare const Mixed$
|
|
1504
|
-
declare class ObjectTsDsl extends Mixed$
|
|
1632
|
+
declare const Mixed$19: MixinCtor<MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.ObjectLiteralExpression>, LayoutMethods>, HintMethods>, ExprMethods>, AsMethods>;
|
|
1633
|
+
declare class ObjectTsDsl extends Mixed$19 {
|
|
1505
1634
|
readonly '~dsl' = "ObjectTsDsl";
|
|
1506
1635
|
protected _props: Map<string, ObjectPropTsDsl>;
|
|
1507
1636
|
protected _spreadCounter: number;
|
|
@@ -1529,8 +1658,8 @@ declare class ObjectTsDsl extends Mixed$20 {
|
|
|
1529
1658
|
}
|
|
1530
1659
|
//#endregion
|
|
1531
1660
|
//#region src/ts-dsl/expr/prefix.d.ts
|
|
1532
|
-
declare const Mixed$
|
|
1533
|
-
declare class PrefixTsDsl extends Mixed$
|
|
1661
|
+
declare const Mixed$18: abstract new () => TsDsl<ts.PrefixUnaryExpression>;
|
|
1662
|
+
declare class PrefixTsDsl extends Mixed$18 {
|
|
1534
1663
|
readonly '~dsl' = "PrefixTsDsl";
|
|
1535
1664
|
protected _expr?: string | MaybeTsDsl<ts.Expression>;
|
|
1536
1665
|
protected _op?: ts.PrefixUnaryOperator;
|
|
@@ -1557,8 +1686,8 @@ declare class PrefixTsDsl extends Mixed$19 {
|
|
|
1557
1686
|
//#region src/ts-dsl/expr/regexp.d.ts
|
|
1558
1687
|
type RegexFlag = 'g' | 'i' | 'm' | 's' | 'u' | 'y';
|
|
1559
1688
|
type RegexFlags<Avail extends string = RegexFlag> = '' | { [K in Avail]: `${K}${RegexFlags<Exclude<Avail, K>>}` }[Avail];
|
|
1560
|
-
declare const Mixed$
|
|
1561
|
-
declare class RegExpTsDsl extends Mixed$
|
|
1689
|
+
declare const Mixed$17: abstract new () => TsDsl<ts.RegularExpressionLiteral>;
|
|
1690
|
+
declare class RegExpTsDsl extends Mixed$17 {
|
|
1562
1691
|
readonly '~dsl' = "RegExpTsDsl";
|
|
1563
1692
|
protected pattern: string;
|
|
1564
1693
|
protected flags?: RegexFlags;
|
|
@@ -1567,18 +1696,6 @@ declare class RegExpTsDsl extends Mixed$18 {
|
|
|
1567
1696
|
toAst(): ts.RegularExpressionLiteral;
|
|
1568
1697
|
}
|
|
1569
1698
|
//#endregion
|
|
1570
|
-
//#region src/ts-dsl/expr/template.d.ts
|
|
1571
|
-
type TemplatePart = NodeName$1 | MaybeTsDsl<ts.Expression>;
|
|
1572
|
-
declare const Mixed$17: abstract new () => TsDsl<ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral>;
|
|
1573
|
-
declare class TemplateTsDsl extends Mixed$17 {
|
|
1574
|
-
readonly '~dsl' = "TemplateTsDsl";
|
|
1575
|
-
protected parts: Array<Ref<TemplatePart>>;
|
|
1576
|
-
constructor(value?: TemplatePart);
|
|
1577
|
-
analyze(ctx: AnalysisContext): void;
|
|
1578
|
-
add(value: TemplatePart): this;
|
|
1579
|
-
toAst(): ts.TemplateExpression | ts.NoSubstitutionTemplateLiteral;
|
|
1580
|
-
}
|
|
1581
|
-
//#endregion
|
|
1582
1699
|
//#region src/ts-dsl/expr/ternary.d.ts
|
|
1583
1700
|
declare const Mixed$16: abstract new () => TsDsl<ts.ConditionalExpression>;
|
|
1584
1701
|
declare class TernaryTsDsl extends Mixed$16 {
|
|
@@ -1606,7 +1723,7 @@ declare class TernaryTsDsl extends Mixed$16 {
|
|
|
1606
1723
|
declare class NewlineTsDsl extends TsDsl<ts.Identifier> {
|
|
1607
1724
|
readonly '~dsl' = "NewlineTsDsl";
|
|
1608
1725
|
analyze(ctx: AnalysisContext): void;
|
|
1609
|
-
toAst():
|
|
1726
|
+
toAst(): ts.Identifier;
|
|
1610
1727
|
}
|
|
1611
1728
|
//#endregion
|
|
1612
1729
|
//#region src/ts-dsl/stmt/block.d.ts
|
|
@@ -1646,7 +1763,7 @@ declare const Mixed$12: abstract new () => TsDsl<ts.TryStatement>;
|
|
|
1646
1763
|
declare class TryTsDsl extends Mixed$12 {
|
|
1647
1764
|
readonly '~dsl' = "TryTsDsl";
|
|
1648
1765
|
protected _catch?: Array<DoExpr>;
|
|
1649
|
-
protected _catchArg?: NodeName
|
|
1766
|
+
protected _catchArg?: NodeName;
|
|
1650
1767
|
protected _finally?: Array<DoExpr>;
|
|
1651
1768
|
protected _try?: Array<DoExpr>;
|
|
1652
1769
|
constructor(...tryBlock: Array<DoExpr>);
|
|
@@ -1654,7 +1771,7 @@ declare class TryTsDsl extends Mixed$12 {
|
|
|
1654
1771
|
/** Returns true when all required builder calls are present. */
|
|
1655
1772
|
get isValid(): boolean;
|
|
1656
1773
|
catch(...items: Array<DoExpr>): this;
|
|
1657
|
-
catchArg(arg: NodeName
|
|
1774
|
+
catchArg(arg: NodeName): this;
|
|
1658
1775
|
finally(...items: Array<DoExpr>): this;
|
|
1659
1776
|
try(...items: Array<DoExpr>): this;
|
|
1660
1777
|
toAst(): ts.TryStatement;
|
|
@@ -1671,7 +1788,7 @@ declare class VarTsDsl extends Mixed$11 {
|
|
|
1671
1788
|
readonly nameSanitizer: (name: string) => string;
|
|
1672
1789
|
protected kind: ts.NodeFlags;
|
|
1673
1790
|
protected _type?: TypeTsDsl;
|
|
1674
|
-
constructor(name?: NodeName
|
|
1791
|
+
constructor(name?: NodeName);
|
|
1675
1792
|
analyze(ctx: AnalysisContext): void;
|
|
1676
1793
|
/** Returns true when all required builder calls are present. */
|
|
1677
1794
|
get isValid(): boolean;
|
|
@@ -1720,7 +1837,7 @@ declare class TypeAliasTsDsl extends Mixed$10 {
|
|
|
1720
1837
|
readonly nameSanitizer: (name: string) => string;
|
|
1721
1838
|
scope: NodeScope;
|
|
1722
1839
|
protected value?: Value;
|
|
1723
|
-
constructor(name: NodeName
|
|
1840
|
+
constructor(name: NodeName, fn?: (t: TypeAliasTsDsl) => void);
|
|
1724
1841
|
analyze(ctx: AnalysisContext): void;
|
|
1725
1842
|
/** Returns true when all required builder calls are present. */
|
|
1726
1843
|
get isValid(): boolean;
|
|
@@ -1734,7 +1851,7 @@ declare class TypeAliasTsDsl extends Mixed$10 {
|
|
|
1734
1851
|
}
|
|
1735
1852
|
//#endregion
|
|
1736
1853
|
//#region src/ts-dsl/type/and.d.ts
|
|
1737
|
-
type Type$2 = NodeName
|
|
1854
|
+
type Type$2 = NodeName | ts.TypeNode | TypeTsDsl;
|
|
1738
1855
|
declare const Mixed$9: abstract new () => TsDsl<ts.IntersectionTypeNode>;
|
|
1739
1856
|
declare class TypeAndTsDsl extends Mixed$9 {
|
|
1740
1857
|
readonly '~dsl' = "TypeAndTsDsl";
|
|
@@ -1764,8 +1881,8 @@ declare const Mixed$7: abstract new () => TsDsl<ts.LiteralTypeNode>;
|
|
|
1764
1881
|
declare class TypeLiteralTsDsl extends Mixed$7 {
|
|
1765
1882
|
readonly '~dsl' = "TypeLiteralTsDsl";
|
|
1766
1883
|
scope: NodeScope;
|
|
1767
|
-
protected value: LiteralValue;
|
|
1768
|
-
constructor(value: LiteralValue);
|
|
1884
|
+
protected value: ts$1.LiteralValue;
|
|
1885
|
+
constructor(value: ts$1.LiteralValue);
|
|
1769
1886
|
analyze(ctx: AnalysisContext): void;
|
|
1770
1887
|
toAst(): ts.LiteralTypeNode;
|
|
1771
1888
|
}
|
|
@@ -1779,7 +1896,7 @@ declare class TypeMappedTsDsl extends Mixed$6 {
|
|
|
1779
1896
|
protected readonlyToken?: TokenTsDsl<ts.SyntaxKind.ReadonlyKeyword | ts.SyntaxKind.MinusToken | ts.SyntaxKind.PlusToken>;
|
|
1780
1897
|
protected _key?: string | MaybeTsDsl<ts.TypeNode>;
|
|
1781
1898
|
protected _type?: string | MaybeTsDsl<ts.TypeNode>;
|
|
1782
|
-
constructor(name?: NodeName
|
|
1899
|
+
constructor(name?: NodeName);
|
|
1783
1900
|
analyze(ctx: AnalysisContext): void;
|
|
1784
1901
|
/** Returns true when all required builder calls are present. */
|
|
1785
1902
|
get isValid(): boolean;
|
|
@@ -1812,7 +1929,7 @@ declare class TypeIdxSigTsDsl extends Mixed$5 {
|
|
|
1812
1929
|
scope: NodeScope;
|
|
1813
1930
|
protected _key?: TypeIdxSigType;
|
|
1814
1931
|
protected _type?: TypeIdxSigType;
|
|
1815
|
-
constructor(name: NodeName
|
|
1932
|
+
constructor(name: NodeName, fn?: (i: TypeIdxSigTsDsl) => void);
|
|
1816
1933
|
/** Element kind. */
|
|
1817
1934
|
get kind(): TypeIdxSigKind;
|
|
1818
1935
|
/** Index signature parameter name. */
|
|
@@ -1833,14 +1950,14 @@ declare class TypeIdxSigTsDsl extends Mixed$5 {
|
|
|
1833
1950
|
}
|
|
1834
1951
|
//#endregion
|
|
1835
1952
|
//#region src/ts-dsl/type/prop.d.ts
|
|
1836
|
-
type TypePropType = NodeName
|
|
1953
|
+
type TypePropType = NodeName | MaybeTsDsl<ts.TypeNode>;
|
|
1837
1954
|
type TypePropKind = 'prop';
|
|
1838
1955
|
declare const Mixed$4: MixinCtor<MixinCtor<MixinCtor<abstract new () => TsDsl<ts.TypeElement>, ReadonlyMethods>, OptionalMethods>, DocMethods>;
|
|
1839
1956
|
declare class TypePropTsDsl extends Mixed$4 {
|
|
1840
1957
|
readonly '~dsl' = "TypePropTsDsl";
|
|
1841
1958
|
scope: NodeScope;
|
|
1842
1959
|
protected _type?: Ref<TypePropType>;
|
|
1843
|
-
constructor(name: NodeName
|
|
1960
|
+
constructor(name: NodeName, fn: (p: TypePropTsDsl) => void);
|
|
1844
1961
|
/** Element kind. */
|
|
1845
1962
|
get kind(): TypePropKind;
|
|
1846
1963
|
/** Property name. */
|
|
@@ -1878,7 +1995,7 @@ declare class TypeObjectTsDsl extends Mixed$3 {
|
|
|
1878
1995
|
}
|
|
1879
1996
|
//#endregion
|
|
1880
1997
|
//#region src/ts-dsl/type/or.d.ts
|
|
1881
|
-
type Type$1 = NodeName
|
|
1998
|
+
type Type$1 = NodeName | ts.TypeNode | TypeTsDsl;
|
|
1882
1999
|
declare const Mixed$2: abstract new () => TsDsl<ts.UnionTypeNode>;
|
|
1883
2000
|
declare class TypeOrTsDsl extends Mixed$2 {
|
|
1884
2001
|
readonly '~dsl' = "TypeOrTsDsl";
|
|
@@ -1966,28 +2083,20 @@ declare class TypeScriptRenderer implements Renderer {
|
|
|
1966
2083
|
*/
|
|
1967
2084
|
private _header?;
|
|
1968
2085
|
/**
|
|
1969
|
-
*
|
|
1970
|
-
*
|
|
1971
|
-
* @private
|
|
1972
|
-
*/
|
|
1973
|
-
private _preferExportAll;
|
|
1974
|
-
/**
|
|
1975
|
-
* Controls whether imports/exports include a file extension (e.g., '.ts' or '.js').
|
|
2086
|
+
* Options for module specifier resolution.
|
|
1976
2087
|
*
|
|
1977
2088
|
* @private
|
|
1978
2089
|
*/
|
|
1979
|
-
private
|
|
2090
|
+
private _module?;
|
|
1980
2091
|
/**
|
|
1981
|
-
*
|
|
2092
|
+
* Whether `export * from 'module'` should be used when possible instead of named exports.
|
|
1982
2093
|
*
|
|
1983
2094
|
* @private
|
|
1984
2095
|
*/
|
|
1985
|
-
private
|
|
1986
|
-
constructor(args?: {
|
|
2096
|
+
private _preferExportAll;
|
|
2097
|
+
constructor(args?: Pick<Partial<BaseOutput>, 'module'> & {
|
|
1987
2098
|
header?: HeaderArg;
|
|
1988
2099
|
preferExportAll?: boolean;
|
|
1989
|
-
preferFileExtension?: string;
|
|
1990
|
-
resolveModuleName?: (moduleName: string) => string | undefined;
|
|
1991
2100
|
});
|
|
1992
2101
|
render(ctx: RenderContext<TsDsl>): string;
|
|
1993
2102
|
supports(ctx: RenderContext): boolean;
|
|
@@ -2044,21 +2153,21 @@ declare const reserved: {
|
|
|
2044
2153
|
};
|
|
2045
2154
|
//#endregion
|
|
2046
2155
|
//#region src/ts-dsl/index.d.ts
|
|
2047
|
-
declare const $: ((id:
|
|
2156
|
+
declare const $: ((id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_core0.NodeName) => ExprTsDsl) & {
|
|
2048
2157
|
/** Creates an array literal expression (e.g. `[1, 2, 3]`). */array: (...args: ConstructorParameters<typeof ArrayTsDsl>) => ArrayTsDsl; /** Creates an `as` type assertion expression (e.g. `value as Type`). */
|
|
2049
|
-
as: (expr:
|
|
2050
|
-
attr: (left:
|
|
2051
|
-
await: (expr:
|
|
2052
|
-
binary: (base:
|
|
2158
|
+
as: (expr: AsExpr, type: AsType) => AsTsDsl; /** Creates a property access expression (e.g. `obj.foo`). */
|
|
2159
|
+
attr: (left: AttrLeft, right: _hey_api_codegen_core0.NodeName) => AttrTsDsl; /** Creates an await expression (e.g. `await promise`). */
|
|
2160
|
+
await: (expr: AwaitExpr) => AwaitTsDsl; /** Creates a binary expression (e.g. `a + b`). */
|
|
2161
|
+
binary: (base: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_core0.NodeName, op?: (("!=" | "!==" | "&&" | "*" | "+" | "-" | "/" | "<" | "<=" | "=" | "==" | "===" | ">" | ">=" | "??" | "??=" | "||") | ts.BinaryOperator) | undefined, expr?: (ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_core0.NodeName) | undefined) => BinaryTsDsl; /** Creates a statement block (`{ ... }`). */
|
|
2053
2162
|
block: (...args: ConstructorParameters<typeof BlockTsDsl>) => BlockTsDsl; /** Creates a function or method call expression (e.g. `fn(arg)`). */
|
|
2054
|
-
call: (callee:
|
|
2055
|
-
class: (name: NodeName) => ClassTsDsl; /** Creates a constant variable declaration (`const`). */
|
|
2056
|
-
const: (name?:
|
|
2057
|
-
decorator: (name: NodeName, ...args: (string | ts.Expression | TsDsl<ts.Expression>)[]) => DecoratorTsDsl; /** Creates a JSDoc documentation block. */
|
|
2163
|
+
call: (callee: CallCallee, ...args: (CallCallee | undefined)[]) => CallTsDsl; /** Creates a class declaration or expression. */
|
|
2164
|
+
class: (name: _hey_api_codegen_core0.NodeName) => ClassTsDsl; /** Creates a constant variable declaration (`const`). */
|
|
2165
|
+
const: (name?: _hey_api_codegen_core0.NodeName | undefined) => VarTsDsl; /** Creates a decorator expression (e.g. `@decorator`). */
|
|
2166
|
+
decorator: (name: _hey_api_codegen_core0.NodeName, ...args: (string | ts.Expression | TsDsl<ts.Expression>)[]) => DecoratorTsDsl; /** Creates a JSDoc documentation block. */
|
|
2058
2167
|
doc: (lines?: DocLines | undefined, fn?: DocFn | undefined) => DocTsDsl; /** Creates an enum declaration. */
|
|
2059
|
-
enum: (name: NodeName, fn?: ((e: EnumTsDsl) => void) | undefined) => EnumTsDsl; /** Creates a general expression node. */
|
|
2060
|
-
expr: (id:
|
|
2061
|
-
field: (name: NodeName, fn?: ((f: FieldTsDsl) => void) | undefined) => FieldTsDsl; /** Converts a runtime value into a corresponding expression node. */
|
|
2168
|
+
enum: (name: _hey_api_codegen_core0.NodeName, fn?: ((e: EnumTsDsl) => void) | undefined) => EnumTsDsl; /** Creates a general expression node. */
|
|
2169
|
+
expr: (id: ts.Expression | TsDsl<ts.Expression> | _hey_api_codegen_core0.NodeName) => ExprTsDsl; /** Creates a field declaration in a class or object. */
|
|
2170
|
+
field: (name: _hey_api_codegen_core0.NodeName, fn?: ((f: FieldTsDsl) => void) | undefined) => FieldTsDsl; /** Converts a runtime value into a corresponding expression node. */
|
|
2062
2171
|
fromValue: (input: unknown, options?: {
|
|
2063
2172
|
layout?: "pretty";
|
|
2064
2173
|
} | undefined) => TsDsl<ts.Expression>; /** Creates a function expression or declaration. */
|
|
@@ -2069,23 +2178,23 @@ declare const $: ((id: any) => ExprTsDsl) & {
|
|
|
2069
2178
|
(name: string, fn: (f: FuncTsDsl<"decl">) => void): FuncTsDsl<"decl">;
|
|
2070
2179
|
(name?: string, fn?: (f: FuncTsDsl<"decl">) => void): FuncTsDsl<"arrow"> | FuncTsDsl<"decl">;
|
|
2071
2180
|
}; /** Creates a getter method declaration. */
|
|
2072
|
-
getter: (name: NodeName, fn?: ((g: GetterTsDsl) => void) | undefined) => GetterTsDsl; /** Creates a single-line comment (//). */
|
|
2181
|
+
getter: (name: _hey_api_codegen_core0.NodeName, fn?: ((g: GetterTsDsl) => void) | undefined) => GetterTsDsl; /** Creates a single-line comment (//). */
|
|
2073
2182
|
hint: (lines?: HintLines | undefined, fn?: HintFn | undefined) => HintTsDsl; /** Creates an identifier (e.g. `foo`). */
|
|
2074
2183
|
id: (name: string) => IdTsDsl; /** Creates an if statement. */
|
|
2075
2184
|
if: (condition?: IfCondition | undefined) => IfTsDsl; /** Creates an initialization block or statement. */
|
|
2076
2185
|
init: (fn?: ((i: InitTsDsl) => void) | undefined) => InitTsDsl; /** Creates a lazy, context-aware node with deferred evaluation. */
|
|
2077
2186
|
lazy: <T extends ts.Node>(thunk: LazyThunk<T>) => LazyTsDsl<T>; /** Creates a let variable declaration (`let`). */
|
|
2078
|
-
let: (name?:
|
|
2079
|
-
literal: (value:
|
|
2080
|
-
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. */
|
|
2081
|
-
method: (name: NodeName, fn?: ((m: MethodTsDsl) => void) | undefined) => MethodTsDsl; /** Creates a negation expression (`-x`). */
|
|
2187
|
+
let: (name?: _hey_api_codegen_core0.NodeName | undefined) => VarTsDsl; /** Creates a literal value (e.g. string, number, boolean). */
|
|
2188
|
+
literal: (value: TsLiteralValue) => LiteralTsDsl; /** Creates an enum member declaration. */
|
|
2189
|
+
member: (name: _hey_api_codegen_core0.NodeName, value?: ((string | number | ts.Expression | TsDsl<ts.Expression>) | ((m: EnumMemberTsDsl) => void)) | undefined) => EnumMemberTsDsl; /** Creates a method declaration inside a class or object. */
|
|
2190
|
+
method: (name: _hey_api_codegen_core0.NodeName, fn?: ((m: MethodTsDsl) => void) | undefined) => MethodTsDsl; /** Creates a negation expression (`-x`). */
|
|
2082
2191
|
neg: (expr?: string | ts.Expression | TsDsl<ts.Expression> | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a new expression (e.g. `new ClassName()`). */
|
|
2083
|
-
new: (expr:
|
|
2192
|
+
new: (expr: NewExpr, ...args: (NewExpr | undefined)[]) => NewTsDsl; /** Creates a newline (for formatting purposes). */
|
|
2084
2193
|
newline: () => NewlineTsDsl; /** Creates a logical NOT expression (`!x`). */
|
|
2085
2194
|
not: (expr?: string | ts.Expression | TsDsl<ts.Expression> | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates a block comment (/* ... *\/). */
|
|
2086
2195
|
note: (lines?: NoteLines | undefined, fn?: NoteFn | undefined) => NoteTsDsl; /** Creates an object literal expression. */
|
|
2087
2196
|
object: (...args: ConstructorParameters<typeof ObjectTsDsl>) => ObjectTsDsl; /** Creates a parameter declaration for functions or methods. */
|
|
2088
|
-
param: (name:
|
|
2197
|
+
param: (name: ParamName, fn?: ParamFn | undefined) => ParamTsDsl; /** Creates a pattern for destructuring or matching. */
|
|
2089
2198
|
pattern: () => PatternTsDsl; /** Creates a prefix unary expression (e.g. `-x`, `!x`, `~x`). */
|
|
2090
2199
|
prefix: (expr?: string | ts.Expression | TsDsl<ts.Expression> | undefined, op?: ts.PrefixUnaryOperator | undefined) => PrefixTsDsl; /** Creates an object literal property (e.g. `{ foo: bar }`). */
|
|
2091
2200
|
prop: (meta: {
|
|
@@ -2105,34 +2214,34 @@ declare const $: ((id: any) => ExprTsDsl) & {
|
|
|
2105
2214
|
name?: undefined;
|
|
2106
2215
|
}) => ObjectPropTsDsl; /** Creates a regular expression literal (e.g. `/foo/gi`). */
|
|
2107
2216
|
regexp: (pattern: string, flags?: ("" | "g" | "i" | "m" | "s" | "u" | "y" | "uy" | "yu" | "su" | "sy" | "suy" | "syu" | "ys" | "us" | "usy" | "uys" | "ysu" | "yus" | "ms" | "mu" | "my" | "muy" | "myu" | "msu" | "msy" | "msuy" | "msyu" | "mys" | "mus" | "musy" | "muys" | "mysu" | "myus" | "ym" | "um" | "umy" | "uym" | "ymu" | "yum" | "sm" | "smu" | "smy" | "smuy" | "smyu" | "sym" | "sum" | "sumy" | "suym" | "symu" | "syum" | "yms" | "ysm" | "ums" | "umsy" | "umys" | "usm" | "usmy" | "usym" | "uyms" | "uysm" | "ymsu" | "ymus" | "ysmu" | "ysum" | "yums" | "yusm" | "im" | "is" | "iu" | "iy" | "iuy" | "iyu" | "isu" | "isy" | "isuy" | "isyu" | "iys" | "ius" | "iusy" | "iuys" | "iysu" | "iyus" | "ims" | "imu" | "imy" | "imuy" | "imyu" | "imsu" | "imsy" | "imsuy" | "imsyu" | "imys" | "imus" | "imusy" | "imuys" | "imysu" | "imyus" | "iym" | "ium" | "iumy" | "iuym" | "iymu" | "iyum" | "ism" | "ismu" | "ismy" | "ismuy" | "ismyu" | "isym" | "isum" | "isumy" | "isuym" | "isymu" | "isyum" | "iyms" | "iysm" | "iums" | "iumsy" | "iumys" | "iusm" | "iusmy" | "iusym" | "iuyms" | "iuysm" | "iymsu" | "iymus" | "iysmu" | "iysum" | "iyums" | "iyusm" | "yi" | "ui" | "uiy" | "uyi" | "yiu" | "yui" | "si" | "siu" | "siy" | "siuy" | "siyu" | "syi" | "sui" | "suiy" | "suyi" | "syiu" | "syui" | "yis" | "ysi" | "uis" | "uisy" | "uiys" | "usi" | "usiy" | "usyi" | "uyis" | "uysi" | "yisu" | "yius" | "ysiu" | "ysui" | "yuis" | "yusi" | "mi" | "mis" | "miu" | "miy" | "miuy" | "miyu" | "misu" | "misy" | "misuy" | "misyu" | "miys" | "mius" | "miusy" | "miuys" | "miysu" | "miyus" | "myi" | "mui" | "muiy" | "muyi" | "myiu" | "myui" | "msi" | "msiu" | "msiy" | "msiuy" | "msiyu" | "msyi" | "msui" | "msuiy" | "msuyi" | "msyiu" | "msyui" | "myis" | "mysi" | "muis" | "muisy" | "muiys" | "musi" | "musiy" | "musyi" | "muyis" | "muysi" | "myisu" | "myius" | "mysiu" | "mysui" | "myuis" | "myusi" | "yim" | "ymi" | "uim" | "uimy" | "uiym" | "umi" | "umiy" | "umyi" | "uyim" | "uymi" | "yimu" | "yium" | "ymiu" | "ymui" | "yuim" | "yumi" | "sim" | "simu" | "simy" | "simuy" | "simyu" | "siym" | "sium" | "siumy" | "siuym" | "siymu" | "siyum" | "smi" | "smiu" | "smiy" | "smiuy" | "smiyu" | "smyi" | "smui" | "smuiy" | "smuyi" | "smyiu" | "smyui" | "syim" | "symi" | "suim" | "suimy" | "suiym" | "sumi" | "sumiy" | "sumyi" | "suyim" | "suymi" | "syimu" | "syium" | "symiu" | "symui" | "syuim" | "syumi" | "yims" | "yism" | "ymis" | "ymsi" | "ysim" | "ysmi" | "uims" | "uimsy" | "uimys" | "uism" | "uismy" | "uisym" | "uiyms" | "uiysm" | "umis" | "umisy" | "umiys" | "umsi" | "umsiy" | "umsyi" | "umyis" | "umysi" | "usim" | "usimy" | "usiym" | "usmi" | "usmiy" | "usmyi" | "usyim" | "usymi" | "uyims" | "uyism" | "uymis" | "uymsi" | "uysim" | "uysmi" | "yimsu" | "yimus" | "yismu" | "yisum" | "yiums" | "yiusm" | "ymisu" | "ymius" | "ymsiu" | "ymsui" | "ymuis" | "ymusi" | "ysimu" | "ysium" | "ysmiu" | "ysmui" | "ysuim" | "ysumi" | "yuims" | "yuism" | "yumis" | "yumsi" | "yusim" | "yusmi" | "gi" | "gm" | "gs" | "gu" | "gy" | "guy" | "gyu" | "gsu" | "gsy" | "gsuy" | "gsyu" | "gys" | "gus" | "gusy" | "guys" | "gysu" | "gyus" | "gms" | "gmu" | "gmy" | "gmuy" | "gmyu" | "gmsu" | "gmsy" | "gmsuy" | "gmsyu" | "gmys" | "gmus" | "gmusy" | "gmuys" | "gmysu" | "gmyus" | "gym" | "gum" | "gumy" | "guym" | "gymu" | "gyum" | "gsm" | "gsmu" | "gsmy" | "gsmuy" | "gsmyu" | "gsym" | "gsum" | "gsumy" | "gsuym" | "gsymu" | "gsyum" | "gyms" | "gysm" | "gums" | "gumsy" | "gumys" | "gusm" | "gusmy" | "gusym" | "guyms" | "guysm" | "gymsu" | "gymus" | "gysmu" | "gysum" | "gyums" | "gyusm" | "gim" | "gis" | "giu" | "giy" | "giuy" | "giyu" | "gisu" | "gisy" | "gisuy" | "gisyu" | "giys" | "gius" | "giusy" | "giuys" | "giysu" | "giyus" | "gims" | "gimu" | "gimy" | "gimuy" | "gimyu" | "gimsu" | "gimsy" | "gimsuy" | "gimsyu" | "gimys" | "gimus" | "gimusy" | "gimuys" | "gimysu" | "gimyus" | "giym" | "gium" | "giumy" | "giuym" | "giymu" | "giyum" | "gism" | "gismu" | "gismy" | "gismuy" | "gismyu" | "gisym" | "gisum" | "gisumy" | "gisuym" | "gisymu" | "gisyum" | "giyms" | "giysm" | "giums" | "giumsy" | "giumys" | "giusm" | "giusmy" | "giusym" | "giuyms" | "giuysm" | "giymsu" | "giymus" | "giysmu" | "giysum" | "giyums" | "giyusm" | "gyi" | "gui" | "guiy" | "guyi" | "gyiu" | "gyui" | "gsi" | "gsiu" | "gsiy" | "gsiuy" | "gsiyu" | "gsyi" | "gsui" | "gsuiy" | "gsuyi" | "gsyiu" | "gsyui" | "gyis" | "gysi" | "guis" | "guisy" | "guiys" | "gusi" | "gusiy" | "gusyi" | "guyis" | "guysi" | "gyisu" | "gyius" | "gysiu" | "gysui" | "gyuis" | "gyusi" | "gmi" | "gmis" | "gmiu" | "gmiy" | "gmiuy" | "gmiyu" | "gmisu" | "gmisy" | "gmisuy" | "gmisyu" | "gmiys" | "gmius" | "gmiusy" | "gmiuys" | "gmiysu" | "gmiyus" | "gmyi" | "gmui" | "gmuiy" | "gmuyi" | "gmyiu" | "gmyui" | "gmsi" | "gmsiu" | "gmsiy" | "gmsiuy" | "gmsiyu" | "gmsyi" | "gmsui" | "gmsuiy" | "gmsuyi" | "gmsyiu" | "gmsyui" | "gmyis" | "gmysi" | "gmuis" | "gmuisy" | "gmuiys" | "gmusi" | "gmusiy" | "gmusyi" | "gmuyis" | "gmuysi" | "gmyisu" | "gmyius" | "gmysiu" | "gmysui" | "gmyuis" | "gmyusi" | "gyim" | "gymi" | "guim" | "guimy" | "guiym" | "gumi" | "gumiy" | "gumyi" | "guyim" | "guymi" | "gyimu" | "gyium" | "gymiu" | "gymui" | "gyuim" | "gyumi" | "gsim" | "gsimu" | "gsimy" | "gsimuy" | "gsimyu" | "gsiym" | "gsium" | "gsiumy" | "gsiuym" | "gsiymu" | "gsiyum" | "gsmi" | "gsmiu" | "gsmiy" | "gsmiuy" | "gsmiyu" | "gsmyi" | "gsmui" | "gsmuiy" | "gsmuyi" | "gsmyiu" | "gsmyui" | "gsyim" | "gsymi" | "gsuim" | "gsuimy" | "gsuiym" | "gsumi" | "gsumiy" | "gsumyi" | "gsuyim" | "gsuymi" | "gsyimu" | "gsyium" | "gsymiu" | "gsymui" | "gsyuim" | "gsyumi" | "gyims" | "gyism" | "gymis" | "gymsi" | "gysim" | "gysmi" | "guims" | "guimsy" | "guimys" | "guism" | "guismy" | "guisym" | "guiyms" | "guiysm" | "gumis" | "gumisy" | "gumiys" | "gumsi" | "gumsiy" | "gumsyi" | "gumyis" | "gumysi" | "gusim" | "gusimy" | "gusiym" | "gusmi" | "gusmiy" | "gusmyi" | "gusyim" | "gusymi" | "guyims" | "guyism" | "guymis" | "guymsi" | "guysim" | "guysmi" | "gyimsu" | "gyimus" | "gyismu" | "gyisum" | "gyiums" | "gyiusm" | "gymisu" | "gymius" | "gymsiu" | "gymsui" | "gymuis" | "gymusi" | "gysimu" | "gysium" | "gysmiu" | "gysmui" | "gysuim" | "gysumi" | "gyuims" | "gyuism" | "gyumis" | "gyumsi" | "gyusim" | "gyusmi" | "yg" | "ug" | "ugy" | "uyg" | "ygu" | "yug" | "sg" | "sgu" | "sgy" | "sguy" | "sgyu" | "syg" | "sug" | "sugy" | "suyg" | "sygu" | "syug" | "ygs" | "ysg" | "ugs" | "ugsy" | "ugys" | "usg" | "usgy" | "usyg" | "uygs" | "uysg" | "ygsu" | "ygus" | "ysgu" | "ysug" | "yugs" | "yusg" | "mg" | "mgs" | "mgu" | "mgy" | "mguy" | "mgyu" | "mgsu" | "mgsy" | "mgsuy" | "mgsyu" | "mgys" | "mgus" | "mgusy" | "mguys" | "mgysu" | "mgyus" | "myg" | "mug" | "mugy" | "muyg" | "mygu" | "myug" | "msg" | "msgu" | "msgy" | "msguy" | "msgyu" | "msyg" | "msug" | "msugy" | "msuyg" | "msygu" | "msyug" | "mygs" | "mysg" | "mugs" | "mugsy" | "mugys" | "musg" | "musgy" | "musyg" | "muygs" | "muysg" | "mygsu" | "mygus" | "mysgu" | "mysug" | "myugs" | "myusg" | "ygm" | "ymg" | "ugm" | "ugmy" | "ugym" | "umg" | "umgy" | "umyg" | "uygm" | "uymg" | "ygmu" | "ygum" | "ymgu" | "ymug" | "yugm" | "yumg" | "sgm" | "sgmu" | "sgmy" | "sgmuy" | "sgmyu" | "sgym" | "sgum" | "sgumy" | "sguym" | "sgymu" | "sgyum" | "smg" | "smgu" | "smgy" | "smguy" | "smgyu" | "smyg" | "smug" | "smugy" | "smuyg" | "smygu" | "smyug" | "sygm" | "symg" | "sugm" | "sugmy" | "sugym" | "sumg" | "sumgy" | "sumyg" | "suygm" | "suymg" | "sygmu" | "sygum" | "symgu" | "symug" | "syugm" | "syumg" | "ygms" | "ygsm" | "ymgs" | "ymsg" | "ysgm" | "ysmg" | "ugms" | "ugmsy" | "ugmys" | "ugsm" | "ugsmy" | "ugsym" | "ugyms" | "ugysm" | "umgs" | "umgsy" | "umgys" | "umsg" | "umsgy" | "umsyg" | "umygs" | "umysg" | "usgm" | "usgmy" | "usgym" | "usmg" | "usmgy" | "usmyg" | "usygm" | "usymg" | "uygms" | "uygsm" | "uymgs" | "uymsg" | "uysgm" | "uysmg" | "ygmsu" | "ygmus" | "ygsmu" | "ygsum" | "ygums" | "ygusm" | "ymgsu" | "ymgus" | "ymsgu" | "ymsug" | "ymugs" | "ymusg" | "ysgmu" | "ysgum" | "ysmgu" | "ysmug" | "ysugm" | "ysumg" | "yugms" | "yugsm" | "yumgs" | "yumsg" | "yusgm" | "yusmg" | "ig" | "igm" | "igs" | "igu" | "igy" | "iguy" | "igyu" | "igsu" | "igsy" | "igsuy" | "igsyu" | "igys" | "igus" | "igusy" | "iguys" | "igysu" | "igyus" | "igms" | "igmu" | "igmy" | "igmuy" | "igmyu" | "igmsu" | "igmsy" | "igmsuy" | "igmsyu" | "igmys" | "igmus" | "igmusy" | "igmuys" | "igmysu" | "igmyus" | "igym" | "igum" | "igumy" | "iguym" | "igymu" | "igyum" | "igsm" | "igsmu" | "igsmy" | "igsmuy" | "igsmyu" | "igsym" | "igsum" | "igsumy" | "igsuym" | "igsymu" | "igsyum" | "igyms" | "igysm" | "igums" | "igumsy" | "igumys" | "igusm" | "igusmy" | "igusym" | "iguyms" | "iguysm" | "igymsu" | "igymus" | "igysmu" | "igysum" | "igyums" | "igyusm" | "iyg" | "iug" | "iugy" | "iuyg" | "iygu" | "iyug" | "isg" | "isgu" | "isgy" | "isguy" | "isgyu" | "isyg" | "isug" | "isugy" | "isuyg" | "isygu" | "isyug" | "iygs" | "iysg" | "iugs" | "iugsy" | "iugys" | "iusg" | "iusgy" | "iusyg" | "iuygs" | "iuysg" | "iygsu" | "iygus" | "iysgu" | "iysug" | "iyugs" | "iyusg" | "img" | "imgs" | "imgu" | "imgy" | "imguy" | "imgyu" | "imgsu" | "imgsy" | "imgsuy" | "imgsyu" | "imgys" | "imgus" | "imgusy" | "imguys" | "imgysu" | "imgyus" | "imyg" | "imug" | "imugy" | "imuyg" | "imygu" | "imyug" | "imsg" | "imsgu" | "imsgy" | "imsguy" | "imsgyu" | "imsyg" | "imsug" | "imsugy" | "imsuyg" | "imsygu" | "imsyug" | "imygs" | "imysg" | "imugs" | "imugsy" | "imugys" | "imusg" | "imusgy" | "imusyg" | "imuygs" | "imuysg" | "imygsu" | "imygus" | "imysgu" | "imysug" | "imyugs" | "imyusg" | "iygm" | "iymg" | "iugm" | "iugmy" | "iugym" | "iumg" | "iumgy" | "iumyg" | "iuygm" | "iuymg" | "iygmu" | "iygum" | "iymgu" | "iymug" | "iyugm" | "iyumg" | "isgm" | "isgmu" | "isgmy" | "isgmuy" | "isgmyu" | "isgym" | "isgum" | "isgumy" | "isguym" | "isgymu" | "isgyum" | "ismg" | "ismgu" | "ismgy" | "ismguy" | "ismgyu" | "ismyg" | "ismug" | "ismugy" | "ismuyg" | "ismygu" | "ismyug" | "isygm" | "isymg" | "isugm" | "isugmy" | "isugym" | "isumg" | "isumgy" | "isumyg" | "isuygm" | "isuymg" | "isygmu" | "isygum" | "isymgu" | "isymug" | "isyugm" | "isyumg" | "iygms" | "iygsm" | "iymgs" | "iymsg" | "iysgm" | "iysmg" | "iugms" | "iugmsy" | "iugmys" | "iugsm" | "iugsmy" | "iugsym" | "iugyms" | "iugysm" | "iumgs" | "iumgsy" | "iumgys" | "iumsg" | "iumsgy" | "iumsyg" | "iumygs" | "iumysg" | "iusgm" | "iusgmy" | "iusgym" | "iusmg" | "iusmgy" | "iusmyg" | "iusygm" | "iusymg" | "iuygms" | "iuygsm" | "iuymgs" | "iuymsg" | "iuysgm" | "iuysmg" | "iygmsu" | "iygmus" | "iygsmu" | "iygsum" | "iygums" | "iygusm" | "iymgsu" | "iymgus" | "iymsgu" | "iymsug" | "iymugs" | "iymusg" | "iysgmu" | "iysgum" | "iysmgu" | "iysmug" | "iysugm" | "iysumg" | "iyugms" | "iyugsm" | "iyumgs" | "iyumsg" | "iyusgm" | "iyusmg" | "ygi" | "yig" | "ugi" | "ugiy" | "ugyi" | "uig" | "uigy" | "uiyg" | "uygi" | "uyig" | "ygiu" | "ygui" | "yigu" | "yiug" | "yugi" | "yuig" | "sgi" | "sgiu" | "sgiy" | "sgiuy" | "sgiyu" | "sgyi" | "sgui" | "sguiy" | "sguyi" | "sgyiu" | "sgyui" | "sig" | "sigu" | "sigy" | "siguy" | "sigyu" | "siyg" | "siug" | "siugy" | "siuyg" | "siygu" | "siyug" | "sygi" | "syig" | "sugi" | "sugiy" | "sugyi" | "suig" | "suigy" | "suiyg" | "suygi" | "suyig" | "sygiu" | "sygui" | "syigu" | "syiug" | "syugi" | "syuig" | "ygis" | "ygsi" | "yigs" | "yisg" | "ysgi" | "ysig" | "ugis" | "ugisy" | "ugiys" | "ugsi" | "ugsiy" | "ugsyi" | "ugyis" | "ugysi" | "uigs" | "uigsy" | "uigys" | "uisg" | "uisgy" | "uisyg" | "uiygs" | "uiysg" | "usgi" | "usgiy" | "usgyi" | "usig" | "usigy" | "usiyg" | "usygi" | "usyig" | "uygis" | "uygsi" | "uyigs" | "uyisg" | "uysgi" | "uysig" | "ygisu" | "ygius" | "ygsiu" | "ygsui" | "yguis" | "ygusi" | "yigsu" | "yigus" | "yisgu" | "yisug" | "yiugs" | "yiusg" | "ysgiu" | "ysgui" | "ysigu" | "ysiug" | "ysugi" | "ysuig" | "yugis" | "yugsi" | "yuigs" | "yuisg" | "yusgi" | "yusig" | "mgi" | "mgis" | "mgiu" | "mgiy" | "mgiuy" | "mgiyu" | "mgisu" | "mgisy" | "mgisuy" | "mgisyu" | "mgiys" | "mgius" | "mgiusy" | "mgiuys" | "mgiysu" | "mgiyus" | "mgyi" | "mgui" | "mguiy" | "mguyi" | "mgyiu" | "mgyui" | "mgsi" | "mgsiu" | "mgsiy" | "mgsiuy" | "mgsiyu" | "mgsyi" | "mgsui" | "mgsuiy" | "mgsuyi" | "mgsyiu" | "mgsyui" | "mgyis" | "mgysi" | "mguis" | "mguisy" | "mguiys" | "mgusi" | "mgusiy" | "mgusyi" | "mguyis" | "mguysi" | "mgyisu" | "mgyius" | "mgysiu" | "mgysui" | "mgyuis" | "mgyusi" | "mig" | "migs" | "migu" | "migy" | "miguy" | "migyu" | "migsu" | "migsy" | "migsuy" | "migsyu" | "migys" | "migus" | "migusy" | "miguys" | "migysu" | "migyus" | "miyg" | "miug" | "miugy" | "miuyg" | "miygu" | "miyug" | "misg" | "misgu" | "misgy" | "misguy" | "misgyu" | "misyg" | "misug" | "misugy" | "misuyg" | "misygu" | "misyug" | "miygs" | "miysg" | "miugs" | "miugsy" | "miugys" | "miusg" | "miusgy" | "miusyg" | "miuygs" | "miuysg" | "miygsu" | "miygus" | "miysgu" | "miysug" | "miyugs" | "miyusg" | "mygi" | "myig" | "mugi" | "mugiy" | "mugyi" | "muig" | "muigy" | "muiyg" | "muygi" | "muyig" | "mygiu" | "mygui" | "myigu" | "myiug" | "myugi" | "myuig" | "msgi" | "msgiu" | "msgiy" | "msgiuy" | "msgiyu" | "msgyi" | "msgui" | "msguiy" | "msguyi" | "msgyiu" | "msgyui" | "msig" | "msigu" | "msigy" | "msiguy" | "msigyu" | "msiyg" | "msiug" | "msiugy" | "msiuyg" | "msiygu" | "msiyug" | "msygi" | "msyig" | "msugi" | "msugiy" | "msugyi" | "msuig" | "msuigy" | "msuiyg" | "msuygi" | "msuyig" | "msygiu" | "msygui" | "msyigu" | "msyiug" | "msyugi" | "msyuig" | "mygis" | "mygsi" | "myigs" | "myisg" | "mysgi" | "mysig" | "mugis" | "mugisy" | "mugiys" | "mugsi" | "mugsiy" | "mugsyi" | "mugyis" | "mugysi" | "muigs" | "muigsy" | "muigys" | "muisg" | "muisgy" | "muisyg" | "muiygs" | "muiysg" | "musgi" | "musgiy" | "musgyi" | "musig" | "musigy" | "musiyg" | "musygi" | "musyig" | "muygis" | "muygsi" | "muyigs" | "muyisg" | "muysgi" | "muysig" | "mygisu" | "mygius" | "mygsiu" | "mygsui" | "myguis" | "mygusi" | "myigsu" | "myigus" | "myisgu" | "myisug" | "myiugs" | "myiusg" | "mysgiu" | "mysgui" | "mysigu" | "mysiug" | "mysugi" | "mysuig" | "myugis" | "myugsi" | "myuigs" | "myuisg" | "myusgi" | "myusig" | "ygim" | "ygmi" | "yigm" | "yimg" | "ymgi" | "ymig" | "ugim" | "ugimy" | "ugiym" | "ugmi" | "ugmiy" | "ugmyi" | "ugyim" | "ugymi" | "uigm" | "uigmy" | "uigym" | "uimg" | "uimgy" | "uimyg" | "uiygm" | "uiymg" | "umgi" | "umgiy" | "umgyi" | "umig" | "umigy" | "umiyg" | "umygi" | "umyig" | "uygim" | "uygmi" | "uyigm" | "uyimg" | "uymgi" | "uymig" | "ygimu" | "ygium" | "ygmiu" | "ygmui" | "yguim" | "ygumi" | "yigmu" | "yigum" | "yimgu" | "yimug" | "yiugm" | "yiumg" | "ymgiu" | "ymgui" | "ymigu" | "ymiug" | "ymugi" | "ymuig" | "yugim" | "yugmi" | "yuigm" | "yuimg" | "yumgi" | "yumig" | "sgim" | "sgimu" | "sgimy" | "sgimuy" | "sgimyu" | "sgiym" | "sgium" | "sgiumy" | "sgiuym" | "sgiymu" | "sgiyum" | "sgmi" | "sgmiu" | "sgmiy" | "sgmiuy" | "sgmiyu" | "sgmyi" | "sgmui" | "sgmuiy" | "sgmuyi" | "sgmyiu" | "sgmyui" | "sgyim" | "sgymi" | "sguim" | "sguimy" | "sguiym" | "sgumi" | "sgumiy" | "sgumyi" | "sguyim" | "sguymi" | "sgyimu" | "sgyium" | "sgymiu" | "sgymui" | "sgyuim" | "sgyumi" | "sigm" | "sigmu" | "sigmy" | "sigmuy" | "sigmyu" | "sigym" | "sigum" | "sigumy" | "siguym" | "sigymu" | "sigyum" | "simg" | "simgu" | "simgy" | "simguy" | "simgyu" | "simyg" | "simug" | "simugy" | "simuyg" | "simygu" | "simyug" | "siygm" | "siymg" | "siugm" | "siugmy" | "siugym" | "siumg" | "siumgy" | "siumyg" | "siuygm" | "siuymg" | "siygmu" | "siygum" | "siymgu" | "siymug" | "siyugm" | "siyumg" | "smgi" | "smgiu" | "smgiy" | "smgiuy" | "smgiyu" | "smgyi" | "smgui" | "smguiy" | "smguyi" | "smgyiu" | "smgyui" | "smig" | "smigu" | "smigy" | "smiguy" | "smigyu" | "smiyg" | "smiug" | "smiugy" | "smiuyg" | "smiygu" | "smiyug" | "smygi" | "smyig" | "smugi" | "smugiy" | "smugyi" | "smuig" | "smuigy" | "smuiyg" | "smuygi" | "smuyig" | "smygiu" | "smygui" | "smyigu" | "smyiug" | "smyugi" | "smyuig" | "sygim" | "sygmi" | "syigm" | "syimg" | "symgi" | "symig" | "sugim" | "sugimy" | "sugiym" | "sugmi" | "sugmiy" | "sugmyi" | "sugyim" | "sugymi" | "suigm" | "suigmy" | "suigym" | "suimg" | "suimgy" | "suimyg" | "suiygm" | "suiymg" | "sumgi" | "sumgiy" | "sumgyi" | "sumig" | "sumigy" | "sumiyg" | "sumygi" | "sumyig" | "suygim" | "suygmi" | "suyigm" | "suyimg" | "suymgi" | "suymig" | "sygimu" | "sygium" | "sygmiu" | "sygmui" | "syguim" | "sygumi" | "syigmu" | "syigum" | "syimgu" | "syimug" | "syiugm" | "syiumg" | "symgiu" | "symgui" | "symigu" | "symiug" | "symugi" | "symuig" | "syugim" | "syugmi" | "syuigm" | "syuimg" | "syumgi" | "syumig" | "ygims" | "ygism" | "ygmis" | "ygmsi" | "ygsim" | "ygsmi" | "yigms" | "yigsm" | "yimgs" | "yimsg" | "yisgm" | "yismg" | "ymgis" | "ymgsi" | "ymigs" | "ymisg" | "ymsgi" | "ymsig" | "ysgim" | "ysgmi" | "ysigm" | "ysimg" | "ysmgi" | "ysmig" | "ugims" | "ugimsy" | "ugimys" | "ugism" | "ugismy" | "ugisym" | "ugiyms" | "ugiysm" | "ugmis" | "ugmisy" | "ugmiys" | "ugmsi" | "ugmsiy" | "ugmsyi" | "ugmyis" | "ugmysi" | "ugsim" | "ugsimy" | "ugsiym" | "ugsmi" | "ugsmiy" | "ugsmyi" | "ugsyim" | "ugsymi" | "ugyims" | "ugyism" | "ugymis" | "ugymsi" | "ugysim" | "ugysmi" | "uigms" | "uigmsy" | "uigmys" | "uigsm" | "uigsmy" | "uigsym" | "uigyms" | "uigysm" | "uimgs" | "uimgsy" | "uimgys" | "uimsg" | "uimsgy" | "uimsyg" | "uimygs" | "uimysg" | "uisgm" | "uisgmy" | "uisgym" | "uismg" | "uismgy" | "uismyg" | "uisygm" | "uisymg" | "uiygms" | "uiygsm" | "uiymgs" | "uiymsg" | "uiysgm" | "uiysmg" | "umgis" | "umgisy" | "umgiys" | "umgsi" | "umgsiy" | "umgsyi" | "umgyis" | "umgysi" | "umigs" | "umigsy" | "umigys" | "umisg" | "umisgy" | "umisyg" | "umiygs" | "umiysg" | "umsgi" | "umsgiy" | "umsgyi" | "umsig" | "umsigy" | "umsiyg" | "umsygi" | "umsyig" | "umygis" | "umygsi" | "umyigs" | "umyisg" | "umysgi" | "umysig" | "usgim" | "usgimy" | "usgiym" | "usgmi" | "usgmiy" | "usgmyi" | "usgyim" | "usgymi" | "usigm" | "usigmy" | "usigym" | "usimg" | "usimgy" | "usimyg" | "usiygm" | "usiymg" | "usmgi" | "usmgiy" | "usmgyi" | "usmig" | "usmigy" | "usmiyg" | "usmygi" | "usmyig" | "usygim" | "usygmi" | "usyigm" | "usyimg" | "usymgi" | "usymig" | "uygims" | "uygism" | "uygmis" | "uygmsi" | "uygsim" | "uygsmi" | "uyigms" | "uyigsm" | "uyimgs" | "uyimsg" | "uyisgm" | "uyismg" | "uymgis" | "uymgsi" | "uymigs" | "uymisg" | "uymsgi" | "uymsig" | "uysgim" | "uysgmi" | "uysigm" | "uysimg" | "uysmgi" | "uysmig" | "ygimsu" | "ygimus" | "ygismu" | "ygisum" | "ygiums" | "ygiusm" | "ygmisu" | "ygmius" | "ygmsiu" | "ygmsui" | "ygmuis" | "ygmusi" | "ygsimu" | "ygsium" | "ygsmiu" | "ygsmui" | "ygsuim" | "ygsumi" | "yguims" | "yguism" | "ygumis" | "ygumsi" | "ygusim" | "ygusmi" | "yigmsu" | "yigmus" | "yigsmu" | "yigsum" | "yigums" | "yigusm" | "yimgsu" | "yimgus" | "yimsgu" | "yimsug" | "yimugs" | "yimusg" | "yisgmu" | "yisgum" | "yismgu" | "yismug" | "yisugm" | "yisumg" | "yiugms" | "yiugsm" | "yiumgs" | "yiumsg" | "yiusgm" | "yiusmg" | "ymgisu" | "ymgius" | "ymgsiu" | "ymgsui" | "ymguis" | "ymgusi" | "ymigsu" | "ymigus" | "ymisgu" | "ymisug" | "ymiugs" | "ymiusg" | "ymsgiu" | "ymsgui" | "ymsigu" | "ymsiug" | "ymsugi" | "ymsuig" | "ymugis" | "ymugsi" | "ymuigs" | "ymuisg" | "ymusgi" | "ymusig" | "ysgimu" | "ysgium" | "ysgmiu" | "ysgmui" | "ysguim" | "ysgumi" | "ysigmu" | "ysigum" | "ysimgu" | "ysimug" | "ysiugm" | "ysiumg" | "ysmgiu" | "ysmgui" | "ysmigu" | "ysmiug" | "ysmugi" | "ysmuig" | "ysugim" | "ysugmi" | "ysuigm" | "ysuimg" | "ysumgi" | "ysumig" | "yugims" | "yugism" | "yugmis" | "yugmsi" | "yugsim" | "yugsmi" | "yuigms" | "yuigsm" | "yuimgs" | "yuimsg" | "yuisgm" | "yuismg" | "yumgis" | "yumgsi" | "yumigs" | "yumisg" | "yumsgi" | "yumsig" | "yusgim" | "yusgmi" | "yusigm" | "yusimg" | "yusmgi" | "yusmig") | undefined) => RegExpTsDsl; /** Creates a return statement. */
|
|
2108
|
-
return: (expr?:
|
|
2109
|
-
setter: (name: NodeName, fn?: ((s: SetterTsDsl) => void) | undefined) => SetterTsDsl; /** Wraps an expression or statement-like value into a `StmtTsDsl`. */
|
|
2217
|
+
return: (expr?: ReturnExpr | undefined) => ReturnTsDsl; /** Creates a setter method declaration. */
|
|
2218
|
+
setter: (name: _hey_api_codegen_core0.NodeName, fn?: ((s: SetterTsDsl) => void) | undefined) => SetterTsDsl; /** Wraps an expression or statement-like value into a `StmtTsDsl`. */
|
|
2110
2219
|
stmt: (inner: ts.Expression | ts.Statement | TsDsl<any>) => StmtTsDsl; /** Creates a template literal expression. */
|
|
2111
|
-
template: (value?:
|
|
2220
|
+
template: (value?: TemplatePart | undefined) => TemplateTsDsl; /** Creates a ternary conditional expression (if ? then : else). */
|
|
2112
2221
|
ternary: (condition?: string | ts.Expression | TsDsl<ts.Expression> | undefined) => TernaryTsDsl; /** Creates a throw statement. */
|
|
2113
2222
|
throw: (error: string | ts.Expression | TsDsl<ts.Expression>, useNew?: boolean | undefined) => ThrowTsDsl; /** Creates a syntax token (e.g. `?`, `readonly`, `+`, `-`). */
|
|
2114
2223
|
token: () => TokenTsDsl<never>; /** Creates a try/catch/finally statement. */
|
|
2115
2224
|
try: (...args: ConstructorParameters<typeof TryTsDsl>) => TryTsDsl; /** Creates a basic type reference or type expression (e.g. Foo or Foo<T>). */
|
|
2116
|
-
type: ((name: NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl) & {
|
|
2117
|
-
/** Creates a type alias declaration (e.g. `type Foo = Bar`). */alias: (name: NodeName, fn?: ((t: TypeAliasTsDsl) => void) | undefined) => TypeAliasTsDsl; /** Creates an intersection type (e.g. `A & B`). */
|
|
2225
|
+
type: ((name: _hey_api_codegen_core0.NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl) & {
|
|
2226
|
+
/** Creates a type alias declaration (e.g. `type Foo = Bar`). */alias: (name: _hey_api_codegen_core0.NodeName, fn?: ((t: TypeAliasTsDsl) => void) | undefined) => TypeAliasTsDsl; /** Creates an intersection type (e.g. `A & B`). */
|
|
2118
2227
|
and: (...args: ConstructorParameters<typeof TypeAndTsDsl>) => TypeAndTsDsl; /** Creates a qualified type reference (e.g. Foo.Bar). */
|
|
2119
|
-
attr: (right:
|
|
2120
|
-
expr: (name: NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl; /** Converts a runtime value into a corresponding type expression node. */
|
|
2228
|
+
attr: (right: _hey_api_codegen_core0.NodeName | ts.Identifier) => TypeAttrTsDsl; /** Creates a basic type reference or type expression (e.g. Foo or Foo<T>). */
|
|
2229
|
+
expr: (name: _hey_api_codegen_core0.NodeName, fn?: TypeExprFn | undefined) => TypeExprTsDsl; /** Converts a runtime value into a corresponding type expression node. */
|
|
2121
2230
|
fromValue: (input: unknown) => TsDsl<ts.TypeNode>; /** Creates a function type node (e.g. `(a: string) => number`). */
|
|
2122
2231
|
func: (...args: ConstructorParameters<typeof TypeFuncTsDsl>) => TypeFuncTsDsl; /** Creates an indexed-access type (e.g. `Foo<T>[K]`). */
|
|
2123
2232
|
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). */
|
|
2124
|
-
literal: (value:
|
|
2125
|
-
mapped: (name?:
|
|
2233
|
+
literal: (value: TsLiteralValue) => TypeLiteralTsDsl; /** Creates a mapped type (e.g. `{ [K in keyof T]: U }`). */
|
|
2234
|
+
mapped: (name?: _hey_api_codegen_core0.NodeName | undefined) => TypeMappedTsDsl; /** Creates a type literal node (e.g. { foo: string }). */
|
|
2126
2235
|
object: () => TypeObjectTsDsl; /** Creates a type operator node (e.g. `readonly T`, `keyof T`, `unique T`). */
|
|
2127
2236
|
operator: () => TypeOperatorTsDsl; /** Represents a union type (e.g. `A | B | C`). */
|
|
2128
2237
|
or: (...args: ConstructorParameters<typeof TypeOrTsDsl>) => TypeOrTsDsl; /** Creates a type parameter (e.g. `<T>`). */
|
|
2129
|
-
param: (name?:
|
|
2238
|
+
param: (name?: _hey_api_codegen_core0.NodeName | undefined, fn?: ((name: TypeParamTsDsl) => void) | undefined) => TypeParamTsDsl; /** Creates a type query node (e.g. `typeof Foo`). */
|
|
2130
2239
|
query: (expr: TypeQueryExpr) => TypeQueryTsDsl; /** Builds a TypeScript template literal *type* (e.g. `${Foo}-${Bar}` as a type). */
|
|
2131
2240
|
template: (value?: string | ts.TypeNode | TsDsl<ts.TypeNode> | undefined) => TypeTemplateTsDsl; /** Creates a tuple type (e.g. [A, B, C]). */
|
|
2132
2241
|
tuple: (...args: ConstructorParameters<typeof TypeTupleTsDsl>) => TypeTupleTsDsl;
|
|
2133
2242
|
}; /** Creates a `typeof` expression (e.g. `typeof value`). */
|
|
2134
2243
|
typeofExpr: (expr: TypeOfExpr) => TypeOfExprTsDsl; /** Creates a variable declaration (`var`). */
|
|
2135
|
-
var: (name?:
|
|
2244
|
+
var: (name?: _hey_api_codegen_core0.NodeName | undefined) => VarTsDsl;
|
|
2136
2245
|
};
|
|
2137
2246
|
type DollarTsDsl = {
|
|
2138
2247
|
/**
|
|
@@ -2185,7 +2294,7 @@ type IApi$4 = {
|
|
|
2185
2294
|
};
|
|
2186
2295
|
//#endregion
|
|
2187
2296
|
//#region src/plugins/@faker-js/faker/types.d.ts
|
|
2188
|
-
type UserConfig$
|
|
2297
|
+
type UserConfig$26 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
2189
2298
|
/**
|
|
2190
2299
|
* Casing convention for generated names.
|
|
2191
2300
|
*
|
|
@@ -2232,7 +2341,7 @@ type UserConfig$25 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$
|
|
|
2232
2341
|
*/
|
|
2233
2342
|
seed?: number;
|
|
2234
2343
|
};
|
|
2235
|
-
type Config$
|
|
2344
|
+
type Config$23 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
2236
2345
|
/**
|
|
2237
2346
|
* Casing convention for generated names.
|
|
2238
2347
|
*/
|
|
@@ -2251,7 +2360,7 @@ type Config$22 = Plugin$1.Name<'@faker-js/faker'> & Plugin$1.Hooks & Plugin$1.Ex
|
|
|
2251
2360
|
*/
|
|
2252
2361
|
seed?: number;
|
|
2253
2362
|
};
|
|
2254
|
-
type FakerJsFakerPlugin = DefinePlugin$1<UserConfig$
|
|
2363
|
+
type FakerJsFakerPlugin = DefinePlugin$1<UserConfig$26, Config$23, IApi$4>;
|
|
2255
2364
|
//#endregion
|
|
2256
2365
|
//#region src/plugins/@faker-js/faker/resolvers/types.d.ts
|
|
2257
2366
|
type Expression = ReturnType<typeof $.expr>;
|
|
@@ -2358,7 +2467,7 @@ type Client$8<RequestFn = never, Config = unknown, MethodFn = never, BuildUrlFn
|
|
|
2358
2467
|
} : {
|
|
2359
2468
|
sse: { [K in HttpMethod]: SseFn };
|
|
2360
2469
|
});
|
|
2361
|
-
interface Config$
|
|
2470
|
+
interface Config$22 {
|
|
2362
2471
|
/**
|
|
2363
2472
|
* Auth token or a function returning auth token. The resolved value will be
|
|
2364
2473
|
* added to the request payload as defined by its `security` array.
|
|
@@ -2413,7 +2522,7 @@ interface Config$21 {
|
|
|
2413
2522
|
}
|
|
2414
2523
|
//#endregion
|
|
2415
2524
|
//#region src/plugins/@hey-api/client-core/bundle/serverSentEvents.d.ts
|
|
2416
|
-
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$
|
|
2525
|
+
type ServerSentEventsOptions<TData = unknown> = Omit<RequestInit, 'method'> & Pick<Config$22, 'method' | 'responseTransformer' | 'responseValidator'> & {
|
|
2417
2526
|
/**
|
|
2418
2527
|
* Fetch API implementation. You can use this option to provide a custom
|
|
2419
2528
|
* fetch instance.
|
|
@@ -2504,7 +2613,7 @@ interface Middleware$4<Req, Res, Err, Options> {
|
|
|
2504
2613
|
//#endregion
|
|
2505
2614
|
//#region src/plugins/@hey-api/client-angular/bundle/types.d.ts
|
|
2506
2615
|
type ResponseStyle$3 = 'data' | 'fields';
|
|
2507
|
-
interface Config$
|
|
2616
|
+
interface Config$21<T extends ClientOptions$6 = ClientOptions$6> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Omit<Config$22, 'headers'> {
|
|
2508
2617
|
/**
|
|
2509
2618
|
* Base URL for all requests made by this client.
|
|
2510
2619
|
*/
|
|
@@ -2533,7 +2642,7 @@ interface Config$20<T extends ClientOptions$6 = ClientOptions$6> extends Omit<Re
|
|
|
2533
2642
|
*/
|
|
2534
2643
|
throwOnError?: T['throwOnError'];
|
|
2535
2644
|
}
|
|
2536
|
-
interface RequestOptions$6<TData = unknown, TResponseStyle extends ResponseStyle$3 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
2645
|
+
interface RequestOptions$6<TData = unknown, TResponseStyle extends ResponseStyle$3 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$21<{
|
|
2537
2646
|
responseStyle: TResponseStyle;
|
|
2538
2647
|
throwOnError: ThrowOnError;
|
|
2539
2648
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -2590,7 +2699,7 @@ type BuildUrlFn$6 = <TData extends {
|
|
|
2590
2699
|
query?: Record<string, unknown>;
|
|
2591
2700
|
url: string;
|
|
2592
2701
|
}>(options: TData & Options$7<TData>) => string;
|
|
2593
|
-
type Client$7 = Client$8<RequestFn$6, Config$
|
|
2702
|
+
type Client$7 = Client$8<RequestFn$6, Config$21, MethodFn$6, BuildUrlFn$6, SseFn$6> & {
|
|
2594
2703
|
interceptors: Middleware$4<HttpRequest<unknown>, HttpResponse<unknown>, unknown, ResolvedRequestOptions$4>;
|
|
2595
2704
|
requestOptions: RequestOptionsFn;
|
|
2596
2705
|
};
|
|
@@ -2605,7 +2714,7 @@ type OmitKeys$6<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
2605
2714
|
type Options$7<TData extends TDataShape$6 = TDataShape$6, ThrowOnError extends boolean = boolean, TResponse = unknown, TResponseStyle extends ResponseStyle$3 = 'fields'> = OmitKeys$6<RequestOptions$6<TResponse, TResponseStyle, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
2606
2715
|
//#endregion
|
|
2607
2716
|
//#region src/plugins/@hey-api/client-axios/bundle/types.d.ts
|
|
2608
|
-
interface Config$
|
|
2717
|
+
interface Config$20<T extends ClientOptions$5 = ClientOptions$5> extends Omit<CreateAxiosDefaults, 'auth' | 'baseURL' | 'headers' | 'method'>, Config$22 {
|
|
2609
2718
|
/**
|
|
2610
2719
|
* Axios implementation. You can use this option to provide either an
|
|
2611
2720
|
* `AxiosStatic` or an `AxiosInstance`.
|
|
@@ -2631,7 +2740,7 @@ interface Config$19<T extends ClientOptions$5 = ClientOptions$5> extends Omit<Cr
|
|
|
2631
2740
|
*/
|
|
2632
2741
|
throwOnError?: T['throwOnError'];
|
|
2633
2742
|
}
|
|
2634
|
-
interface RequestOptions$5<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
2743
|
+
interface RequestOptions$5<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$20<{
|
|
2635
2744
|
throwOnError: ThrowOnError;
|
|
2636
2745
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
2637
2746
|
/**
|
|
@@ -2667,7 +2776,7 @@ type BuildUrlFn$5 = <TData extends {
|
|
|
2667
2776
|
query?: Record<string, unknown>;
|
|
2668
2777
|
url: string;
|
|
2669
2778
|
}>(options: TData & Options$6<TData>) => string;
|
|
2670
|
-
type Client$6 = Client$8<RequestFn$5, Config$
|
|
2779
|
+
type Client$6 = Client$8<RequestFn$5, Config$20, MethodFn$5, BuildUrlFn$5, SseFn$5> & {
|
|
2671
2780
|
instance: AxiosInstance;
|
|
2672
2781
|
};
|
|
2673
2782
|
interface TDataShape$5 {
|
|
@@ -2681,7 +2790,7 @@ type OmitKeys$5<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
2681
2790
|
type Options$6<TData extends TDataShape$5 = TDataShape$5, ThrowOnError extends boolean = boolean, TResponse = unknown> = OmitKeys$5<RequestOptions$5<TResponse, ThrowOnError>, 'body' | 'path' | 'query' | 'url'> & ([TData] extends [never] ? unknown : Omit<TData, 'url'>);
|
|
2682
2791
|
//#endregion
|
|
2683
2792
|
//#region src/plugins/@hey-api/client-axios/types.d.ts
|
|
2684
|
-
type UserConfig$
|
|
2793
|
+
type UserConfig$25 = Plugin$1.Name<'@hey-api/client-axios'> & Client.Config & {
|
|
2685
2794
|
/**
|
|
2686
2795
|
* Throw an error instead of returning it in the response?
|
|
2687
2796
|
*
|
|
@@ -2689,7 +2798,7 @@ type UserConfig$24 = Plugin$1.Name<'@hey-api/client-axios'> & Client.Config & {
|
|
|
2689
2798
|
*/
|
|
2690
2799
|
throwOnError?: boolean;
|
|
2691
2800
|
};
|
|
2692
|
-
type HeyApiClientAxiosPlugin = DefinePlugin$1<UserConfig$
|
|
2801
|
+
type HeyApiClientAxiosPlugin = DefinePlugin$1<UserConfig$25, UserConfig$25>;
|
|
2693
2802
|
//#endregion
|
|
2694
2803
|
//#region src/plugins/@hey-api/client-fetch/bundle/utils.d.ts
|
|
2695
2804
|
type ErrInterceptor$3<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
@@ -2712,7 +2821,7 @@ interface Middleware$3<Req, Res, Err, Options> {
|
|
|
2712
2821
|
//#endregion
|
|
2713
2822
|
//#region src/plugins/@hey-api/client-fetch/bundle/types.d.ts
|
|
2714
2823
|
type ResponseStyle$2 = 'data' | 'fields';
|
|
2715
|
-
interface Config$
|
|
2824
|
+
interface Config$19<T extends ClientOptions$4 = ClientOptions$4> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$22 {
|
|
2716
2825
|
/**
|
|
2717
2826
|
* Base URL for all requests made by this client.
|
|
2718
2827
|
*/
|
|
@@ -2753,7 +2862,7 @@ interface Config$18<T extends ClientOptions$4 = ClientOptions$4> extends Omit<Re
|
|
|
2753
2862
|
*/
|
|
2754
2863
|
throwOnError?: T['throwOnError'];
|
|
2755
2864
|
}
|
|
2756
|
-
interface RequestOptions$4<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
2865
|
+
interface RequestOptions$4<TData = unknown, TResponseStyle extends ResponseStyle$2 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$19<{
|
|
2757
2866
|
responseStyle: TResponseStyle;
|
|
2758
2867
|
throwOnError: ThrowOnError;
|
|
2759
2868
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -2802,7 +2911,7 @@ type BuildUrlFn$4 = <TData extends {
|
|
|
2802
2911
|
query?: Record<string, unknown>;
|
|
2803
2912
|
url: string;
|
|
2804
2913
|
}>(options: TData & Options$5<TData>) => string;
|
|
2805
|
-
type Client$5 = Client$8<RequestFn$4, Config$
|
|
2914
|
+
type Client$5 = Client$8<RequestFn$4, Config$19, MethodFn$4, BuildUrlFn$4, SseFn$4> & {
|
|
2806
2915
|
interceptors: Middleware$3<Request, Response, unknown, ResolvedRequestOptions$3>;
|
|
2807
2916
|
};
|
|
2808
2917
|
interface TDataShape$4 {
|
|
@@ -2816,7 +2925,7 @@ type OmitKeys$4<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
2816
2925
|
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'>);
|
|
2817
2926
|
//#endregion
|
|
2818
2927
|
//#region src/plugins/@hey-api/client-fetch/types.d.ts
|
|
2819
|
-
type UserConfig$
|
|
2928
|
+
type UserConfig$24 = Plugin$1.Name<'@hey-api/client-fetch'> & Client.Config & {
|
|
2820
2929
|
/**
|
|
2821
2930
|
* Throw an error instead of returning it in the response?
|
|
2822
2931
|
*
|
|
@@ -2824,7 +2933,7 @@ type UserConfig$23 = Plugin$1.Name<'@hey-api/client-fetch'> & Client.Config & {
|
|
|
2824
2933
|
*/
|
|
2825
2934
|
throwOnError?: boolean;
|
|
2826
2935
|
};
|
|
2827
|
-
type HeyApiClientFetchPlugin = DefinePlugin$1<UserConfig$
|
|
2936
|
+
type HeyApiClientFetchPlugin = DefinePlugin$1<UserConfig$24, UserConfig$24>;
|
|
2828
2937
|
//#endregion
|
|
2829
2938
|
//#region src/plugins/@hey-api/client-next/bundle/utils.d.ts
|
|
2830
2939
|
type ErrInterceptor$2<Err, Res, Options> = (error: Err, response: Res, options: Options) => Err | Promise<Err>;
|
|
@@ -2846,7 +2955,7 @@ interface Middleware$2<Res, Err, Options> {
|
|
|
2846
2955
|
}
|
|
2847
2956
|
//#endregion
|
|
2848
2957
|
//#region src/plugins/@hey-api/client-next/bundle/types.d.ts
|
|
2849
|
-
interface Config$
|
|
2958
|
+
interface Config$18<T extends ClientOptions$3 = ClientOptions$3> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$22 {
|
|
2850
2959
|
/**
|
|
2851
2960
|
* Base URL for all requests made by this client.
|
|
2852
2961
|
*/
|
|
@@ -2874,7 +2983,7 @@ interface Config$17<T extends ClientOptions$3 = ClientOptions$3> extends Omit<Re
|
|
|
2874
2983
|
*/
|
|
2875
2984
|
throwOnError?: T['throwOnError'];
|
|
2876
2985
|
}
|
|
2877
|
-
interface RequestOptions$3<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
2986
|
+
interface RequestOptions$3<TData = unknown, ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$18<{
|
|
2878
2987
|
throwOnError: ThrowOnError;
|
|
2879
2988
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
2880
2989
|
/**
|
|
@@ -2919,7 +3028,7 @@ type BuildUrlFn$3 = <TData extends {
|
|
|
2919
3028
|
query?: Record<string, unknown>;
|
|
2920
3029
|
url: string;
|
|
2921
3030
|
}>(options: TData & Options$4<TData>) => string;
|
|
2922
|
-
type Client$4 = Client$8<RequestFn$3, Config$
|
|
3031
|
+
type Client$4 = Client$8<RequestFn$3, Config$18, MethodFn$3, BuildUrlFn$3, SseFn$3> & {
|
|
2923
3032
|
interceptors: Middleware$2<Response, unknown, ResolvedRequestOptions$2>;
|
|
2924
3033
|
};
|
|
2925
3034
|
interface TDataShape$3 {
|
|
@@ -2933,7 +3042,7 @@ type OmitKeys$3<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
2933
3042
|
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'>);
|
|
2934
3043
|
//#endregion
|
|
2935
3044
|
//#region src/plugins/@hey-api/client-next/types.d.ts
|
|
2936
|
-
type UserConfig$
|
|
3045
|
+
type UserConfig$23 = Plugin$1.Name<'@hey-api/client-next'> & Client.Config & {
|
|
2937
3046
|
/**
|
|
2938
3047
|
* Throw an error instead of returning it in the response?
|
|
2939
3048
|
*
|
|
@@ -2941,13 +3050,13 @@ type UserConfig$22 = Plugin$1.Name<'@hey-api/client-next'> & Client.Config & {
|
|
|
2941
3050
|
*/
|
|
2942
3051
|
throwOnError?: boolean;
|
|
2943
3052
|
};
|
|
2944
|
-
type HeyApiClientNextPlugin = DefinePlugin$1<UserConfig$
|
|
3053
|
+
type HeyApiClientNextPlugin = DefinePlugin$1<UserConfig$23, UserConfig$23>;
|
|
2945
3054
|
//#endregion
|
|
2946
3055
|
//#region src/plugins/@hey-api/client-nuxt/bundle/types.d.ts
|
|
2947
3056
|
type QuerySerializer = (query: Parameters<Client$3['buildUrl']>[0]['query']) => string;
|
|
2948
3057
|
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> };
|
|
2949
3058
|
type KeysOf<T> = Array<T extends T ? (keyof T extends string ? keyof T : never) : never>;
|
|
2950
|
-
interface Config$
|
|
3059
|
+
interface Config$17<T extends ClientOptions$2 = ClientOptions$2> extends Omit<FetchOptions$1<unknown>, 'baseURL' | 'body' | 'headers' | 'method' | 'query'>, WithRefs<Pick<FetchOptions$1<unknown>, 'query'>>, Omit<Config$22, 'querySerializer'> {
|
|
2951
3060
|
/**
|
|
2952
3061
|
* Base URL for all requests made by this client.
|
|
2953
3062
|
*/
|
|
@@ -2961,7 +3070,7 @@ interface Config$16<T extends ClientOptions$2 = ClientOptions$2> extends Omit<Fe
|
|
|
2961
3070
|
*/
|
|
2962
3071
|
querySerializer?: QuerySerializer | QuerySerializerOptions;
|
|
2963
3072
|
}
|
|
2964
|
-
interface RequestOptions$2<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$
|
|
3073
|
+
interface RequestOptions$2<TComposable extends Composable = '$fetch', ResT = unknown, DefaultT = undefined, Url extends string = string> extends Config$17, WithRefs<{
|
|
2965
3074
|
path?: FetchOptions$1<unknown>['query'];
|
|
2966
3075
|
query?: FetchOptions$1<unknown>['query'];
|
|
2967
3076
|
}>, Pick<ServerSentEventsOptions<ResT>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3005,15 +3114,15 @@ interface TDataShape$2 {
|
|
|
3005
3114
|
}
|
|
3006
3115
|
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'>;
|
|
3007
3116
|
type BuildUrlFn$2 = <TData extends Omit<TDataShape$2, 'headers'>>(options: BuildUrlOptions<TData>) => string;
|
|
3008
|
-
type Client$3 = Client$8<RequestFn$2, Config$
|
|
3117
|
+
type Client$3 = Client$8<RequestFn$2, Config$17, MethodFn$2, BuildUrlFn$2, SseFn$2>;
|
|
3009
3118
|
type OmitKeys$2<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
3010
3119
|
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'>>);
|
|
3011
3120
|
type FetchOptions$1<TData> = Omit<UseFetchOptions<TData, TData>, keyof AsyncDataOptions<TData>>;
|
|
3012
3121
|
type Composable = '$fetch' | 'useAsyncData' | 'useFetch' | 'useLazyAsyncData' | 'useLazyFetch';
|
|
3013
3122
|
//#endregion
|
|
3014
3123
|
//#region src/plugins/@hey-api/client-nuxt/types.d.ts
|
|
3015
|
-
type UserConfig$
|
|
3016
|
-
type HeyApiClientNuxtPlugin = DefinePlugin$1<UserConfig$
|
|
3124
|
+
type UserConfig$22 = Plugin$1.Name<'@hey-api/client-nuxt'> & Client.Config;
|
|
3125
|
+
type HeyApiClientNuxtPlugin = DefinePlugin$1<UserConfig$22, UserConfig$22>;
|
|
3017
3126
|
//#endregion
|
|
3018
3127
|
//#region src/plugins/@hey-api/client-ofetch/bundle/utils.d.ts
|
|
3019
3128
|
type ErrInterceptor$1<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
@@ -3036,7 +3145,7 @@ interface Middleware$1<Req, Res, Err, Options> {
|
|
|
3036
3145
|
//#endregion
|
|
3037
3146
|
//#region src/plugins/@hey-api/client-ofetch/bundle/types.d.ts
|
|
3038
3147
|
type ResponseStyle$1 = 'data' | 'fields';
|
|
3039
|
-
interface Config$
|
|
3148
|
+
interface Config$16<T extends ClientOptions$1 = ClientOptions$1> extends Omit<RequestInit, 'body' | 'headers' | 'method'>, Config$22 {
|
|
3040
3149
|
/**
|
|
3041
3150
|
* HTTP(S) agent configuration (Node.js only). Passed through to ofetch.
|
|
3042
3151
|
*/
|
|
@@ -3137,7 +3246,7 @@ interface Config$15<T extends ClientOptions$1 = ClientOptions$1> extends Omit<Re
|
|
|
3137
3246
|
*/
|
|
3138
3247
|
timeout?: number;
|
|
3139
3248
|
}
|
|
3140
|
-
interface RequestOptions$1<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3249
|
+
interface RequestOptions$1<TData = unknown, TResponseStyle extends ResponseStyle$1 = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$16<{
|
|
3141
3250
|
responseStyle: TResponseStyle;
|
|
3142
3251
|
throwOnError: ThrowOnError;
|
|
3143
3252
|
}>, Pick<ServerSentEventsOptions<TData>, 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3186,7 +3295,7 @@ type BuildUrlFn$1 = <TData extends {
|
|
|
3186
3295
|
query?: Record<string, unknown>;
|
|
3187
3296
|
url: string;
|
|
3188
3297
|
}>(options: TData & Options$2<TData>) => string;
|
|
3189
|
-
type Client$2 = Client$8<RequestFn$1, Config$
|
|
3298
|
+
type Client$2 = Client$8<RequestFn$1, Config$16, MethodFn$1, BuildUrlFn$1, SseFn$1> & {
|
|
3190
3299
|
interceptors: Middleware$1<Request, Response, unknown, ResolvedRequestOptions$1>;
|
|
3191
3300
|
};
|
|
3192
3301
|
interface TDataShape$1 {
|
|
@@ -3200,7 +3309,7 @@ type OmitKeys$1<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
3200
3309
|
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'>);
|
|
3201
3310
|
//#endregion
|
|
3202
3311
|
//#region src/plugins/@hey-api/client-ofetch/types.d.ts
|
|
3203
|
-
type UserConfig$
|
|
3312
|
+
type UserConfig$21 = Plugin$1.Name<'@hey-api/client-ofetch'> & Client.Config & {
|
|
3204
3313
|
/**
|
|
3205
3314
|
* Throw an error instead of returning it in the response?
|
|
3206
3315
|
*
|
|
@@ -3208,7 +3317,7 @@ type UserConfig$20 = Plugin$1.Name<'@hey-api/client-ofetch'> & Client.Config & {
|
|
|
3208
3317
|
*/
|
|
3209
3318
|
throwOnError?: boolean;
|
|
3210
3319
|
};
|
|
3211
|
-
type HeyApiClientOfetchPlugin = DefinePlugin$1<UserConfig$
|
|
3320
|
+
type HeyApiClientOfetchPlugin = DefinePlugin$1<UserConfig$21, UserConfig$21>;
|
|
3212
3321
|
//#endregion
|
|
3213
3322
|
//#region src/plugins/@hey-api/client-core/types.d.ts
|
|
3214
3323
|
interface PluginHandler {
|
|
@@ -3271,7 +3380,7 @@ declare namespace Client {
|
|
|
3271
3380
|
}
|
|
3272
3381
|
//#endregion
|
|
3273
3382
|
//#region src/plugins/@hey-api/client-angular/types.d.ts
|
|
3274
|
-
type UserConfig$
|
|
3383
|
+
type UserConfig$20 = Plugin$1.Name<'@hey-api/client-angular'> & Client.Config & {
|
|
3275
3384
|
/**
|
|
3276
3385
|
* Throw an error instead of returning it in the response?
|
|
3277
3386
|
*
|
|
@@ -3279,7 +3388,7 @@ type UserConfig$19 = Plugin$1.Name<'@hey-api/client-angular'> & Client.Config &
|
|
|
3279
3388
|
*/
|
|
3280
3389
|
throwOnError?: boolean;
|
|
3281
3390
|
};
|
|
3282
|
-
type HeyApiClientAngularPlugin = DefinePlugin$1<UserConfig$
|
|
3391
|
+
type HeyApiClientAngularPlugin = DefinePlugin$1<UserConfig$20, UserConfig$20>;
|
|
3283
3392
|
//#endregion
|
|
3284
3393
|
//#region src/plugins/@hey-api/client-ky/bundle/utils.d.ts
|
|
3285
3394
|
type ErrInterceptor<Err, Res, Req, Options> = (error: Err, response: Res, request: Req, options: Options) => Err | Promise<Err>;
|
|
@@ -3322,7 +3431,7 @@ interface RetryOptions {
|
|
|
3322
3431
|
*/
|
|
3323
3432
|
statusCodes?: number[];
|
|
3324
3433
|
}
|
|
3325
|
-
interface Config$
|
|
3434
|
+
interface Config$15<T extends ClientOptions = ClientOptions> extends Omit<Options, 'body' | 'headers' | 'method' | 'prefixUrl' | 'retry' | 'throwHttpErrors'>, Config$22 {
|
|
3326
3435
|
/**
|
|
3327
3436
|
* Base URL for all requests made by this client.
|
|
3328
3437
|
*/
|
|
@@ -3369,7 +3478,7 @@ interface Config$14<T extends ClientOptions = ClientOptions> extends Omit<Option
|
|
|
3369
3478
|
*/
|
|
3370
3479
|
timeout?: number;
|
|
3371
3480
|
}
|
|
3372
|
-
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$
|
|
3481
|
+
interface RequestOptions<TData = unknown, TResponseStyle extends ResponseStyle = 'fields', ThrowOnError extends boolean = boolean, Url extends string = string> extends Config$15<{
|
|
3373
3482
|
responseStyle: TResponseStyle;
|
|
3374
3483
|
throwOnError: ThrowOnError;
|
|
3375
3484
|
}>, Pick<ServerSentEventsOptions<TData>, 'onRequest' | 'onSseError' | 'onSseEvent' | 'sseDefaultRetryDelay' | 'sseMaxRetryAttempts' | 'sseMaxRetryDelay'> {
|
|
@@ -3418,7 +3527,7 @@ type BuildUrlFn = <TData extends {
|
|
|
3418
3527
|
query?: Record<string, unknown>;
|
|
3419
3528
|
url: string;
|
|
3420
3529
|
}>(options: TData & Options$1<TData>) => string;
|
|
3421
|
-
type Client$1 = Client$8<RequestFn, Config$
|
|
3530
|
+
type Client$1 = Client$8<RequestFn, Config$15, MethodFn, BuildUrlFn, SseFn> & {
|
|
3422
3531
|
interceptors: Middleware<Request, Response, unknown, ResolvedRequestOptions>;
|
|
3423
3532
|
};
|
|
3424
3533
|
interface TDataShape {
|
|
@@ -3432,7 +3541,7 @@ type OmitKeys<T, K> = Pick<T, Exclude<keyof T, K>>;
|
|
|
3432
3541
|
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'>);
|
|
3433
3542
|
//#endregion
|
|
3434
3543
|
//#region src/plugins/@hey-api/client-ky/types.d.ts
|
|
3435
|
-
type UserConfig$
|
|
3544
|
+
type UserConfig$19 = Plugin$1.Name<'@hey-api/client-ky'> & Client.Config & {
|
|
3436
3545
|
/**
|
|
3437
3546
|
* Throw an error instead of returning it in the response?
|
|
3438
3547
|
*
|
|
@@ -3440,10 +3549,10 @@ type UserConfig$18 = Plugin$1.Name<'@hey-api/client-ky'> & Client.Config & {
|
|
|
3440
3549
|
*/
|
|
3441
3550
|
throwOnError?: boolean;
|
|
3442
3551
|
};
|
|
3443
|
-
type HeyApiClientKyPlugin = DefinePlugin$1<UserConfig$
|
|
3552
|
+
type HeyApiClientKyPlugin = DefinePlugin$1<UserConfig$19, UserConfig$19>;
|
|
3444
3553
|
//#endregion
|
|
3445
3554
|
//#region src/plugins/@hey-api/schemas/types.d.ts
|
|
3446
|
-
type UserConfig$
|
|
3555
|
+
type UserConfig$18 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
3447
3556
|
/**
|
|
3448
3557
|
* Customise the schema name. By default, `{{name}}Schema` is used. `name` is a
|
|
3449
3558
|
* valid JavaScript/TypeScript identifier, e.g. if your schema name is
|
|
@@ -3461,7 +3570,7 @@ type UserConfig$17 = Plugin$1.Name<'@hey-api/schemas'> & Plugin$1.Hooks & Plugin
|
|
|
3461
3570
|
*/
|
|
3462
3571
|
type?: 'form' | 'json';
|
|
3463
3572
|
};
|
|
3464
|
-
type HeyApiSchemasPlugin = DefinePlugin$1<UserConfig$
|
|
3573
|
+
type HeyApiSchemasPlugin = DefinePlugin$1<UserConfig$18, UserConfig$18>;
|
|
3465
3574
|
//#endregion
|
|
3466
3575
|
//#region src/plugins/types.d.ts
|
|
3467
3576
|
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';
|
|
@@ -3615,89 +3724,28 @@ interface UserOperationsConfig {
|
|
|
3615
3724
|
strategyDefaultTag?: string;
|
|
3616
3725
|
}
|
|
3617
3726
|
interface OperationsConfig {
|
|
3618
|
-
/**
|
|
3619
|
-
* Type of container for grouped operations.
|
|
3620
|
-
*
|
|
3621
|
-
* Ignored when `strategy` is `'flat'`.
|
|
3622
|
-
*
|
|
3623
|
-
* - `'class'` - Class with methods
|
|
3624
|
-
*/
|
|
3727
|
+
/** Type of container for grouped operations. */
|
|
3625
3728
|
container: 'class';
|
|
3626
|
-
/**
|
|
3627
|
-
* Customize container names.
|
|
3628
|
-
*
|
|
3629
|
-
* For `'single'` strategy, this sets the root container name.
|
|
3630
|
-
* For `'byTags'` strategy, this transforms tag names.
|
|
3631
|
-
*
|
|
3632
|
-
* @default 'Sdk' for `'single'` strategy
|
|
3633
|
-
*
|
|
3634
|
-
* @example
|
|
3635
|
-
* // Set root name for single strategy
|
|
3636
|
-
* containerName: 'MyApi'
|
|
3637
|
-
*
|
|
3638
|
-
* @example
|
|
3639
|
-
* // Transform tag names with suffix
|
|
3640
|
-
* containerName: '{{name}}Service'
|
|
3641
|
-
*
|
|
3642
|
-
* @example
|
|
3643
|
-
* // With casing
|
|
3644
|
-
* containerName: { name: '{{name}}Service', case: 'PascalCase' }
|
|
3645
|
-
*/
|
|
3729
|
+
/** Customize container names. */
|
|
3646
3730
|
containerName: NamingConfig;
|
|
3647
|
-
/**
|
|
3648
|
-
* Customize method/function names.
|
|
3649
|
-
*
|
|
3650
|
-
* Applied to the final segment of the path (the method name).
|
|
3651
|
-
*/
|
|
3731
|
+
/** Customize method/function names. */
|
|
3652
3732
|
methodName: NamingConfig;
|
|
3653
|
-
/**
|
|
3654
|
-
* How methods are attached to class containers.
|
|
3655
|
-
*
|
|
3656
|
-
* Only applies when `container` is `'class'`.
|
|
3657
|
-
*
|
|
3658
|
-
* - `'static'` - Static methods, no instantiation required
|
|
3659
|
-
* - `'instance'` - Instance methods, requires `new ClassName(config)`
|
|
3660
|
-
*/
|
|
3733
|
+
/** How methods are attached to class containers. */
|
|
3661
3734
|
methods: 'instance' | 'static';
|
|
3662
|
-
/**
|
|
3663
|
-
* How to derive nesting structure from operations.
|
|
3664
|
-
*
|
|
3665
|
-
* - `'operationId'` - Split operationId by delimiters (e.g., `users.list` → `Users.list()`)
|
|
3666
|
-
* - `'id'` - Use operation id as-is, no nesting
|
|
3667
|
-
* - Custom function for full control
|
|
3668
|
-
*/
|
|
3735
|
+
/** How to derive nesting structure from operations. */
|
|
3669
3736
|
nesting: 'operationId' | 'id' | OperationPathStrategy;
|
|
3670
|
-
/**
|
|
3671
|
-
* Delimiters for splitting operationId.
|
|
3672
|
-
*
|
|
3673
|
-
* Only applies when `nesting` is `'operationId'`.
|
|
3674
|
-
*/
|
|
3737
|
+
/** Delimiters for splitting operationId. */
|
|
3675
3738
|
nestingDelimiters: RegExp;
|
|
3676
|
-
/**
|
|
3677
|
-
* Customize nesting segment names.
|
|
3678
|
-
*
|
|
3679
|
-
* Applied to intermediate path segments (not the method name).
|
|
3680
|
-
*/
|
|
3739
|
+
/** Customize nesting segment names. */
|
|
3681
3740
|
segmentName: NamingConfig;
|
|
3682
|
-
/**
|
|
3683
|
-
* Grouping strategy.
|
|
3684
|
-
*
|
|
3685
|
-
* - `'flat'` - Standalone functions, no grouping
|
|
3686
|
-
* - `'byTags'` - One container per operation tag
|
|
3687
|
-
* - `'single'` - All operations in one container
|
|
3688
|
-
* - Custom function for full control
|
|
3689
|
-
*/
|
|
3741
|
+
/** Grouping strategy. */
|
|
3690
3742
|
strategy: OperationsStrategy;
|
|
3691
|
-
/**
|
|
3692
|
-
* Default container name for operations without tags.
|
|
3693
|
-
*
|
|
3694
|
-
* Only applies when `strategy` is `'byTags'`.
|
|
3695
|
-
*/
|
|
3743
|
+
/** Default container name for operations without tags. */
|
|
3696
3744
|
strategyDefaultTag: string;
|
|
3697
3745
|
}
|
|
3698
3746
|
//#endregion
|
|
3699
3747
|
//#region src/plugins/@hey-api/sdk/types.d.ts
|
|
3700
|
-
type UserConfig$
|
|
3748
|
+
type UserConfig$17 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
3701
3749
|
/**
|
|
3702
3750
|
* Should the generated functions contain auth mechanisms? You may want to
|
|
3703
3751
|
* disable this option if you're handling auth yourself or defining it
|
|
@@ -3873,7 +3921,7 @@ type UserConfig$16 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.U
|
|
|
3873
3921
|
*/
|
|
3874
3922
|
response?: 'body' | 'response';
|
|
3875
3923
|
};
|
|
3876
|
-
type Config$
|
|
3924
|
+
type Config$14 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
3877
3925
|
/**
|
|
3878
3926
|
* Should the generated functions contain auth mechanisms? You may want to
|
|
3879
3927
|
* disable this option if you're handling auth yourself or defining it
|
|
@@ -3893,14 +3941,8 @@ type Config$13 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comme
|
|
|
3893
3941
|
*
|
|
3894
3942
|
* @default true
|
|
3895
3943
|
*/
|
|
3896
|
-
client: PluginClientNames | false;
|
|
3897
|
-
/**
|
|
3898
|
-
* Configuration for generating SDK code examples.
|
|
3899
|
-
*/
|
|
3900
|
-
examples: ExamplesConfig;
|
|
3901
|
-
/**
|
|
3902
|
-
* Define the structure of generated SDK operations.
|
|
3903
|
-
*/
|
|
3944
|
+
client: PluginClientNames | false; /** Configuration for generating SDK code examples. */
|
|
3945
|
+
examples: ExamplesConfig; /** Define the structure of generated SDK operations. */
|
|
3904
3946
|
operations: OperationsConfig;
|
|
3905
3947
|
/**
|
|
3906
3948
|
* Define how request parameters are structured in generated SDK methods.
|
|
@@ -3961,30 +4003,23 @@ type Config$13 = Plugin$1.Name<'@hey-api/sdk'> & Plugin$1.Hooks & Plugin$1.Comme
|
|
|
3961
4003
|
*/
|
|
3962
4004
|
response: 'body' | 'response';
|
|
3963
4005
|
};
|
|
3964
|
-
type HeyApiSdkPlugin = DefinePlugin$1<UserConfig$
|
|
3965
|
-
//#endregion
|
|
3966
|
-
//#region src/plugins/@hey-api/transformers/expressions.d.ts
|
|
3967
|
-
type ExpressionTransformer = ({
|
|
3968
|
-
config,
|
|
3969
|
-
dataExpression,
|
|
3970
|
-
schema
|
|
3971
|
-
}: {
|
|
3972
|
-
config: Omit<UserConfig$15, 'name'>;
|
|
3973
|
-
dataExpression?: ts.Expression | ReturnType<typeof $.expr | typeof $.attr> | string;
|
|
3974
|
-
schema: IR$1.SchemaObject;
|
|
3975
|
-
}) => Array<ReturnType<typeof $.fromValue>> | undefined;
|
|
4006
|
+
type HeyApiSdkPlugin = DefinePlugin$1<UserConfig$17, Config$14>;
|
|
3976
4007
|
//#endregion
|
|
3977
4008
|
//#region src/plugins/@hey-api/transformers/types.d.ts
|
|
4009
|
+
interface BaseTransformer extends DollarTsDsl {
|
|
4010
|
+
plugin: HeyApiTransformersPlugin['Instance'];
|
|
4011
|
+
schema: IR$1.SchemaObject;
|
|
4012
|
+
}
|
|
4013
|
+
type ExpressionTransformer = (ctx: BaseTransformer & {
|
|
4014
|
+
/** @deprecated Use `plugin` instead and access the config via `plugin.config` */config: Omit<UserConfig$16, 'name'>;
|
|
4015
|
+
dataExpression?: ts.Expression | ReturnType<typeof $.attr | typeof $.expr> | string;
|
|
4016
|
+
}) => Array<TsDsl<ts.Expression>> | undefined;
|
|
3978
4017
|
/**
|
|
3979
4018
|
* Returns the TypeScript type node for a schema with a specific format.
|
|
3980
4019
|
* If undefined is returned, the default type will be used.
|
|
3981
4020
|
*/
|
|
3982
|
-
type TypeTransformer = (
|
|
3983
|
-
|
|
3984
|
-
}: {
|
|
3985
|
-
schema: IR$1.SchemaObject;
|
|
3986
|
-
}) => ts.TypeNode | undefined;
|
|
3987
|
-
type UserConfig$15 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
4021
|
+
type TypeTransformer = (ctx: BaseTransformer) => MaybeTsDsl<ts.TypeNode> | undefined;
|
|
4022
|
+
type UserConfig$16 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
3988
4023
|
/**
|
|
3989
4024
|
* Convert long integers into BigInt values?
|
|
3990
4025
|
*
|
|
@@ -4006,7 +4041,7 @@ type UserConfig$15 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & P
|
|
|
4006
4041
|
*/
|
|
4007
4042
|
typeTransformers?: ReadonlyArray<TypeTransformer>;
|
|
4008
4043
|
};
|
|
4009
|
-
type Config$
|
|
4044
|
+
type Config$13 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
4010
4045
|
/**
|
|
4011
4046
|
* Convert long integers into BigInt values?
|
|
4012
4047
|
*
|
|
@@ -4028,7 +4063,7 @@ type Config$12 = Plugin$1.Name<'@hey-api/transformers'> & Plugin$1.Hooks & Plugi
|
|
|
4028
4063
|
*/
|
|
4029
4064
|
typeTransformers: ReadonlyArray<TypeTransformer>;
|
|
4030
4065
|
};
|
|
4031
|
-
type HeyApiTransformersPlugin = DefinePlugin$1<UserConfig$
|
|
4066
|
+
type HeyApiTransformersPlugin = DefinePlugin$1<UserConfig$16, Config$13>;
|
|
4032
4067
|
//#endregion
|
|
4033
4068
|
//#region src/plugins/@hey-api/typescript/shared/types.d.ts
|
|
4034
4069
|
type Type = MaybeTsDsl<TypeTsDsl>;
|
|
@@ -4417,7 +4452,7 @@ interface VoidResolverContext$2 extends BaseContext$2 {
|
|
|
4417
4452
|
//#endregion
|
|
4418
4453
|
//#region src/plugins/@hey-api/typescript/types.d.ts
|
|
4419
4454
|
type EnumsType = 'javascript' | 'typescript' | 'typescript-const';
|
|
4420
|
-
type UserConfig$
|
|
4455
|
+
type UserConfig$15 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & HeyApiTypeScriptResolvers & {
|
|
4421
4456
|
/**
|
|
4422
4457
|
* Casing convention for generated names.
|
|
4423
4458
|
*
|
|
@@ -4624,7 +4659,7 @@ type UserConfig$14 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plu
|
|
|
4624
4659
|
payload?: NameTransformer;
|
|
4625
4660
|
};
|
|
4626
4661
|
};
|
|
4627
|
-
type Config$
|
|
4662
|
+
type Config$12 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & HeyApiTypeScriptResolvers & {
|
|
4628
4663
|
/**
|
|
4629
4664
|
* Casing convention for generated names.
|
|
4630
4665
|
*/
|
|
@@ -4721,10 +4756,10 @@ type Config$11 = Plugin$1.Name<'@hey-api/typescript'> & Plugin$1.Hooks & Plugin$
|
|
|
4721
4756
|
payload: NameTransformer;
|
|
4722
4757
|
};
|
|
4723
4758
|
};
|
|
4724
|
-
type HeyApiTypeScriptPlugin = DefinePlugin$1<UserConfig$
|
|
4759
|
+
type HeyApiTypeScriptPlugin = DefinePlugin$1<UserConfig$15, Config$12, IApi$3>;
|
|
4725
4760
|
//#endregion
|
|
4726
4761
|
//#region src/plugins/@pinia/colada/types.d.ts
|
|
4727
|
-
type UserConfig$
|
|
4762
|
+
type UserConfig$14 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
4728
4763
|
/**
|
|
4729
4764
|
* Casing convention for generated names.
|
|
4730
4765
|
*
|
|
@@ -4881,7 +4916,7 @@ type UserConfig$13 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.
|
|
|
4881
4916
|
name?: NameTransformer;
|
|
4882
4917
|
};
|
|
4883
4918
|
};
|
|
4884
|
-
type Config$
|
|
4919
|
+
type Config$11 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
4885
4920
|
/**
|
|
4886
4921
|
* Casing convention for generated names.
|
|
4887
4922
|
*/
|
|
@@ -4959,10 +4994,10 @@ type Config$10 = Plugin$1.Name<'@pinia/colada'> & Plugin$1.Hooks & Plugin$1.Comm
|
|
|
4959
4994
|
meta: ((operation: IR$1.OperationObject) => Record<string, unknown>) | undefined;
|
|
4960
4995
|
};
|
|
4961
4996
|
};
|
|
4962
|
-
type PiniaColadaPlugin = DefinePlugin$1<UserConfig$
|
|
4997
|
+
type PiniaColadaPlugin = DefinePlugin$1<UserConfig$14, Config$11>;
|
|
4963
4998
|
//#endregion
|
|
4964
4999
|
//#region src/plugins/@tanstack/angular-query-experimental/types.d.ts
|
|
4965
|
-
type UserConfig$
|
|
5000
|
+
type UserConfig$13 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
4966
5001
|
/**
|
|
4967
5002
|
* Casing convention for generated names.
|
|
4968
5003
|
*
|
|
@@ -5227,7 +5262,7 @@ type UserConfig$12 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plu
|
|
|
5227
5262
|
name?: NameTransformer;
|
|
5228
5263
|
};
|
|
5229
5264
|
};
|
|
5230
|
-
type Config$
|
|
5265
|
+
type Config$10 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
5231
5266
|
/**
|
|
5232
5267
|
* Casing convention for generated names.
|
|
5233
5268
|
*/
|
|
@@ -5360,10 +5395,10 @@ type Config$9 = Plugin$1.Name<'@tanstack/angular-query-experimental'> & Plugin$1
|
|
|
5360
5395
|
meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
5361
5396
|
};
|
|
5362
5397
|
};
|
|
5363
|
-
type TanStackAngularQueryPlugin = DefinePlugin$1<UserConfig$
|
|
5398
|
+
type TanStackAngularQueryPlugin = DefinePlugin$1<UserConfig$13, Config$10>;
|
|
5364
5399
|
//#endregion
|
|
5365
5400
|
//#region src/plugins/@tanstack/preact-query/types.d.ts
|
|
5366
|
-
type UserConfig$
|
|
5401
|
+
type UserConfig$12 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
5367
5402
|
/**
|
|
5368
5403
|
* Casing convention for generated names.
|
|
5369
5404
|
*
|
|
@@ -5704,7 +5739,7 @@ type UserConfig$11 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks &
|
|
|
5704
5739
|
name?: NameTransformer;
|
|
5705
5740
|
};
|
|
5706
5741
|
};
|
|
5707
|
-
type Config$
|
|
5742
|
+
type Config$9 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
5708
5743
|
/**
|
|
5709
5744
|
* Casing convention for generated names.
|
|
5710
5745
|
*/
|
|
@@ -5852,10 +5887,10 @@ type Config$8 = Plugin$1.Name<'@tanstack/preact-query'> & Plugin$1.Hooks & Plugi
|
|
|
5852
5887
|
*/
|
|
5853
5888
|
useQuery: NamingOptions & FeatureToggle;
|
|
5854
5889
|
};
|
|
5855
|
-
type TanStackPreactQueryPlugin = DefinePlugin$1<UserConfig$
|
|
5890
|
+
type TanStackPreactQueryPlugin = DefinePlugin$1<UserConfig$12, Config$9>;
|
|
5856
5891
|
//#endregion
|
|
5857
5892
|
//#region src/plugins/@tanstack/react-query/types.d.ts
|
|
5858
|
-
type UserConfig$
|
|
5893
|
+
type UserConfig$11 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
5859
5894
|
/**
|
|
5860
5895
|
* Casing convention for generated names.
|
|
5861
5896
|
*
|
|
@@ -6196,7 +6231,7 @@ type UserConfig$10 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & P
|
|
|
6196
6231
|
name?: NameTransformer;
|
|
6197
6232
|
};
|
|
6198
6233
|
};
|
|
6199
|
-
type Config$
|
|
6234
|
+
type Config$8 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
6200
6235
|
/**
|
|
6201
6236
|
* Casing convention for generated names.
|
|
6202
6237
|
*/
|
|
@@ -6344,10 +6379,10 @@ type Config$7 = Plugin$1.Name<'@tanstack/react-query'> & Plugin$1.Hooks & Plugin
|
|
|
6344
6379
|
*/
|
|
6345
6380
|
useQuery: NamingOptions & FeatureToggle;
|
|
6346
6381
|
};
|
|
6347
|
-
type TanStackReactQueryPlugin = DefinePlugin$1<UserConfig$
|
|
6382
|
+
type TanStackReactQueryPlugin = DefinePlugin$1<UserConfig$11, Config$8>;
|
|
6348
6383
|
//#endregion
|
|
6349
6384
|
//#region src/plugins/@tanstack/solid-query/types.d.ts
|
|
6350
|
-
type UserConfig$
|
|
6385
|
+
type UserConfig$10 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
6351
6386
|
/**
|
|
6352
6387
|
* Casing convention for generated names.
|
|
6353
6388
|
*
|
|
@@ -6613,7 +6648,7 @@ type UserConfig$9 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Pl
|
|
|
6613
6648
|
name?: NameTransformer;
|
|
6614
6649
|
};
|
|
6615
6650
|
};
|
|
6616
|
-
type Config$
|
|
6651
|
+
type Config$7 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
6617
6652
|
/**
|
|
6618
6653
|
* Casing convention for generated names.
|
|
6619
6654
|
*/
|
|
@@ -6746,10 +6781,10 @@ type Config$6 = Plugin$1.Name<'@tanstack/solid-query'> & Plugin$1.Hooks & Plugin
|
|
|
6746
6781
|
meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
6747
6782
|
};
|
|
6748
6783
|
};
|
|
6749
|
-
type TanStackSolidQueryPlugin = DefinePlugin$1<UserConfig$
|
|
6784
|
+
type TanStackSolidQueryPlugin = DefinePlugin$1<UserConfig$10, Config$7>;
|
|
6750
6785
|
//#endregion
|
|
6751
6786
|
//#region src/plugins/@tanstack/svelte-query/types.d.ts
|
|
6752
|
-
type UserConfig$
|
|
6787
|
+
type UserConfig$9 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
6753
6788
|
/**
|
|
6754
6789
|
* Casing convention for generated names.
|
|
6755
6790
|
*
|
|
@@ -7014,7 +7049,7 @@ type UserConfig$8 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & P
|
|
|
7014
7049
|
name?: NameTransformer;
|
|
7015
7050
|
};
|
|
7016
7051
|
};
|
|
7017
|
-
type Config$
|
|
7052
|
+
type Config$6 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
7018
7053
|
/**
|
|
7019
7054
|
* Casing convention for generated names.
|
|
7020
7055
|
*/
|
|
@@ -7147,10 +7182,10 @@ type Config$5 = Plugin$1.Name<'@tanstack/svelte-query'> & Plugin$1.Hooks & Plugi
|
|
|
7147
7182
|
meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
7148
7183
|
};
|
|
7149
7184
|
};
|
|
7150
|
-
type TanStackSvelteQueryPlugin = DefinePlugin$1<UserConfig$
|
|
7185
|
+
type TanStackSvelteQueryPlugin = DefinePlugin$1<UserConfig$9, Config$6>;
|
|
7151
7186
|
//#endregion
|
|
7152
7187
|
//#region src/plugins/@tanstack/vue-query/types.d.ts
|
|
7153
|
-
type UserConfig$
|
|
7188
|
+
type UserConfig$8 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
7154
7189
|
/**
|
|
7155
7190
|
* Casing convention for generated names.
|
|
7156
7191
|
*
|
|
@@ -7418,7 +7453,7 @@ type UserConfig$7 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plug
|
|
|
7418
7453
|
name?: NameTransformer;
|
|
7419
7454
|
};
|
|
7420
7455
|
};
|
|
7421
|
-
type Config$
|
|
7456
|
+
type Config$5 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
7422
7457
|
/**
|
|
7423
7458
|
* Casing convention for generated names.
|
|
7424
7459
|
*/
|
|
@@ -7554,7 +7589,7 @@ type Config$4 = Plugin$1.Name<'@tanstack/vue-query'> & Plugin$1.Hooks & Plugin$1
|
|
|
7554
7589
|
meta: (operation: IR$1.OperationObject) => Record<string, unknown>;
|
|
7555
7590
|
};
|
|
7556
7591
|
};
|
|
7557
|
-
type TanStackVueQueryPlugin = DefinePlugin$1<UserConfig$
|
|
7592
|
+
type TanStackVueQueryPlugin = DefinePlugin$1<UserConfig$8, Config$5>;
|
|
7558
7593
|
//#endregion
|
|
7559
7594
|
//#region src/plugins/arktype/shared/types.d.ts
|
|
7560
7595
|
type ValidatorArgs$2 = {
|
|
@@ -7569,7 +7604,7 @@ type IApi$2 = {
|
|
|
7569
7604
|
};
|
|
7570
7605
|
//#endregion
|
|
7571
7606
|
//#region src/plugins/arktype/types.d.ts
|
|
7572
|
-
type UserConfig$
|
|
7607
|
+
type UserConfig$7 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
7573
7608
|
/**
|
|
7574
7609
|
* Casing convention for generated names.
|
|
7575
7610
|
*
|
|
@@ -7893,7 +7928,7 @@ type UserConfig$6 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.UserCom
|
|
|
7893
7928
|
};
|
|
7894
7929
|
};
|
|
7895
7930
|
};
|
|
7896
|
-
type Config$
|
|
7931
|
+
type Config$4 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.Comments & Plugin$1.Exports & {
|
|
7897
7932
|
/**
|
|
7898
7933
|
* Casing convention for generated names.
|
|
7899
7934
|
*/
|
|
@@ -7998,15 +8033,168 @@ type Config$3 = Plugin$1.Name<'arktype'> & Plugin$1.Hooks & Plugin$1.Comments &
|
|
|
7998
8033
|
};
|
|
7999
8034
|
};
|
|
8000
8035
|
};
|
|
8001
|
-
type ArktypePlugin = DefinePlugin$1<UserConfig$
|
|
8036
|
+
type ArktypePlugin = DefinePlugin$1<UserConfig$7, Config$4, IApi$2>;
|
|
8002
8037
|
//#endregion
|
|
8003
8038
|
//#region src/plugins/fastify/types.d.ts
|
|
8004
|
-
type UserConfig$
|
|
8005
|
-
type FastifyPlugin = DefinePlugin$1<UserConfig$
|
|
8039
|
+
type UserConfig$6 = Plugin$1.Name<'fastify'> & Plugin$1.Hooks & Plugin$1.UserExports;
|
|
8040
|
+
type FastifyPlugin = DefinePlugin$1<UserConfig$6, UserConfig$6>;
|
|
8006
8041
|
//#endregion
|
|
8007
8042
|
//#region src/plugins/nestjs/types.d.ts
|
|
8008
|
-
type UserConfig$
|
|
8009
|
-
type NestJsPlugin = DefinePlugin$1<UserConfig$
|
|
8043
|
+
type UserConfig$5 = Plugin$1.Name<'nestjs'> & Plugin$1.Hooks & Plugin$1.UserExports;
|
|
8044
|
+
type NestJsPlugin = DefinePlugin$1<UserConfig$5, UserConfig$5>;
|
|
8045
|
+
//#endregion
|
|
8046
|
+
//#region src/plugins/orpc/contracts/types.d.ts
|
|
8047
|
+
interface UserContractsConfig {
|
|
8048
|
+
/**
|
|
8049
|
+
* Type of container for grouped contracts.
|
|
8050
|
+
*
|
|
8051
|
+
* Ignored when `strategy` is `'flat'`.
|
|
8052
|
+
*
|
|
8053
|
+
* - `'object'` - Object with properties
|
|
8054
|
+
*
|
|
8055
|
+
* @default 'object'
|
|
8056
|
+
*/
|
|
8057
|
+
container?: 'object';
|
|
8058
|
+
/**
|
|
8059
|
+
* Customize container names.
|
|
8060
|
+
*
|
|
8061
|
+
* For `'single'` strategy, this sets the root container name.
|
|
8062
|
+
* For `'byTags'` strategy, this transforms tag names.
|
|
8063
|
+
*
|
|
8064
|
+
* @default 'contract' for `'single'` strategy
|
|
8065
|
+
*
|
|
8066
|
+
* @example
|
|
8067
|
+
* // Set root name for single strategy
|
|
8068
|
+
* containerName: 'myContract'
|
|
8069
|
+
*
|
|
8070
|
+
* @example
|
|
8071
|
+
* // Transform tag names with suffix
|
|
8072
|
+
* containerName: '{{name}}Contract'
|
|
8073
|
+
*
|
|
8074
|
+
* @example
|
|
8075
|
+
* // With casing
|
|
8076
|
+
* containerName: { name: '{{name}}Contract', casing: 'camelCase' }
|
|
8077
|
+
*/
|
|
8078
|
+
containerName?: NamingRule;
|
|
8079
|
+
/**
|
|
8080
|
+
* Customize contract names.
|
|
8081
|
+
*
|
|
8082
|
+
* Applied to the final segment of the path (the contract name).
|
|
8083
|
+
*/
|
|
8084
|
+
contractName?: NamingRule;
|
|
8085
|
+
/**
|
|
8086
|
+
* How to derive nesting structure from operations.
|
|
8087
|
+
*
|
|
8088
|
+
* - `'operationId'` - Split operationId by delimiters (e.g., `users.list` → `Users.list()`)
|
|
8089
|
+
* - `'id'` - Use operation id as-is, no nesting
|
|
8090
|
+
* - Custom function for full control
|
|
8091
|
+
*
|
|
8092
|
+
* @default 'operationId'
|
|
8093
|
+
*/
|
|
8094
|
+
nesting?: 'operationId' | 'id' | OperationPathStrategy;
|
|
8095
|
+
/**
|
|
8096
|
+
* Delimiters for splitting operationId.
|
|
8097
|
+
*
|
|
8098
|
+
* Only applies when `nesting` is `'operationId'`.
|
|
8099
|
+
*
|
|
8100
|
+
* @default /[./]/
|
|
8101
|
+
*/
|
|
8102
|
+
nestingDelimiters?: RegExp;
|
|
8103
|
+
/**
|
|
8104
|
+
* Customize nesting segment names.
|
|
8105
|
+
*
|
|
8106
|
+
* Applied to intermediate path segments (not the contract name).
|
|
8107
|
+
*/
|
|
8108
|
+
segmentName?: NamingRule;
|
|
8109
|
+
/**
|
|
8110
|
+
* Grouping strategy.
|
|
8111
|
+
*
|
|
8112
|
+
* - `'flat'` - Standalone contracts, no grouping
|
|
8113
|
+
* - `'byTags'` - One container per operation tag
|
|
8114
|
+
* - `'single'` - All contracts in one container
|
|
8115
|
+
* - Custom function for full control
|
|
8116
|
+
*
|
|
8117
|
+
* @default 'single'
|
|
8118
|
+
*/
|
|
8119
|
+
strategy?: OperationsStrategy;
|
|
8120
|
+
/**
|
|
8121
|
+
* Default container name for operations without tags.
|
|
8122
|
+
*
|
|
8123
|
+
* Only applies when `strategy` is `'byTags'`.
|
|
8124
|
+
*
|
|
8125
|
+
* @default 'default'
|
|
8126
|
+
*/
|
|
8127
|
+
strategyDefaultTag?: string;
|
|
8128
|
+
}
|
|
8129
|
+
interface ContractsConfig {
|
|
8130
|
+
/** Type of container for grouped operations. */
|
|
8131
|
+
container: 'object';
|
|
8132
|
+
/** Customize container names. */
|
|
8133
|
+
containerName: NamingConfig;
|
|
8134
|
+
/** Customize contract names. */
|
|
8135
|
+
contractName: NamingConfig;
|
|
8136
|
+
/** How to derive nesting structure from operations. */
|
|
8137
|
+
nesting: 'operationId' | 'id' | OperationPathStrategy;
|
|
8138
|
+
/** Delimiters for splitting operationId. */
|
|
8139
|
+
nestingDelimiters: RegExp;
|
|
8140
|
+
/** Customize nesting segment names. */
|
|
8141
|
+
segmentName: NamingConfig;
|
|
8142
|
+
/** Grouping strategy. */
|
|
8143
|
+
strategy: OperationsStrategy;
|
|
8144
|
+
/** Default container name for operations without tags. */
|
|
8145
|
+
strategyDefaultTag: string;
|
|
8146
|
+
}
|
|
8147
|
+
//#endregion
|
|
8148
|
+
//#region src/plugins/orpc/types.d.ts
|
|
8149
|
+
type UserConfig$4 = Plugin$1.Name<'orpc'> & Plugin$1.Hooks & Plugin$1.UserExports & {
|
|
8150
|
+
/**
|
|
8151
|
+
* Define the structure of generated oRPC contracts.
|
|
8152
|
+
*
|
|
8153
|
+
* String shorthand:
|
|
8154
|
+
* - `'byTags'` – one container per operation tag
|
|
8155
|
+
* - `'flat'` – standalone functions, no container
|
|
8156
|
+
* - `'single'` – all operations in a single container
|
|
8157
|
+
* - custom function for full control
|
|
8158
|
+
*
|
|
8159
|
+
* Use the object form for advanced configuration.
|
|
8160
|
+
*
|
|
8161
|
+
* @default 'single'
|
|
8162
|
+
*/
|
|
8163
|
+
contracts?: OperationsStrategy | UserContractsConfig;
|
|
8164
|
+
/**
|
|
8165
|
+
* Validate input/output schemas.
|
|
8166
|
+
*
|
|
8167
|
+
* @default true
|
|
8168
|
+
*/
|
|
8169
|
+
validator?: PluginValidatorNames | boolean | {
|
|
8170
|
+
/**
|
|
8171
|
+
* The validator plugin to use for input schemas.
|
|
8172
|
+
*
|
|
8173
|
+
* Can be a validator plugin name or boolean (true to auto-select, false
|
|
8174
|
+
* to disable).
|
|
8175
|
+
*
|
|
8176
|
+
* @default true
|
|
8177
|
+
*/
|
|
8178
|
+
input?: PluginValidatorNames | boolean;
|
|
8179
|
+
/**
|
|
8180
|
+
* The validator plugin to use for output schemas.
|
|
8181
|
+
*
|
|
8182
|
+
* Can be a validator plugin name or boolean (true to auto-select, false
|
|
8183
|
+
* to disable).
|
|
8184
|
+
*
|
|
8185
|
+
* @default true
|
|
8186
|
+
*/
|
|
8187
|
+
output?: PluginValidatorNames | boolean;
|
|
8188
|
+
};
|
|
8189
|
+
};
|
|
8190
|
+
type Config$3 = Plugin$1.Name<'orpc'> & Plugin$1.Hooks & Plugin$1.Exports & {
|
|
8191
|
+
/** Define the structure of generated oRPC contracts. */contracts: ContractsConfig; /** Validate input/output schemas. */
|
|
8192
|
+
validator: {
|
|
8193
|
+
/** The validator plugin to use for input schemas. */input: PluginValidatorNames | false; /** The validator plugin to use for output schemas. */
|
|
8194
|
+
output: PluginValidatorNames | false;
|
|
8195
|
+
};
|
|
8196
|
+
};
|
|
8197
|
+
type OrpcPlugin = DefinePlugin$1<UserConfig$4, Config$3>;
|
|
8010
8198
|
//#endregion
|
|
8011
8199
|
//#region src/plugins/swr/types.d.ts
|
|
8012
8200
|
type UserConfig$3 = Plugin$1.Name<'swr'> & Plugin$1.Hooks & Plugin$1.UserComments & Plugin$1.UserExports & {
|
|
@@ -9989,7 +10177,7 @@ type ZodPlugin = DefinePlugin$1<UserConfig$1, Config, IApi>;
|
|
|
9989
10177
|
*
|
|
9990
10178
|
* @param userConfig User provided {@link UserConfig} configuration(s).
|
|
9991
10179
|
*/
|
|
9992
|
-
declare function createClient(userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?:
|
|
10180
|
+
declare function createClient(userConfig?: LazyOrAsync<MaybeArray<UserConfig>>, logger?: Logger$1): Promise<ReadonlyArray<Context>>;
|
|
9993
10181
|
//#endregion
|
|
9994
10182
|
//#region src/config/plugins.d.ts
|
|
9995
10183
|
/**
|
|
@@ -10071,6 +10259,7 @@ declare module '@hey-api/shared' {
|
|
|
10071
10259
|
arktype: Plugins.Arktype.Types['Types'];
|
|
10072
10260
|
fastify: Plugins.Fastify.Types['Types'];
|
|
10073
10261
|
nestjs: Plugins.NestJs.Types['Types'];
|
|
10262
|
+
orpc: Plugins.Orpc.Types['Types'];
|
|
10074
10263
|
swr: Plugins.Swr.Types['Types'];
|
|
10075
10264
|
valibot: Plugins.Valibot.Types['Types'];
|
|
10076
10265
|
zod: Plugins.Zod.Types['Types'];
|
|
@@ -10142,6 +10331,9 @@ declare namespace Plugins {
|
|
|
10142
10331
|
namespace NestJs {
|
|
10143
10332
|
type Types = NestJsPlugin;
|
|
10144
10333
|
}
|
|
10334
|
+
namespace Orpc {
|
|
10335
|
+
type Types = OrpcPlugin;
|
|
10336
|
+
}
|
|
10145
10337
|
namespace PiniaColada {
|
|
10146
10338
|
type Types = PiniaColadaPlugin;
|
|
10147
10339
|
}
|