@hey-api/openapi-ts 0.95.0 → 0.96.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -2
- package/dist/clients/core/serverSentEvents.ts +4 -5
- package/dist/index.d.mts +108 -108
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -4
- package/dist/{init-C3GzFcQR.mjs → init-CXAVfp7x.mjs} +188 -606
- package/dist/init-CXAVfp7x.mjs.map +1 -0
- package/dist/internal.mjs +2 -3
- package/dist/run.mjs +4 -9
- package/dist/run.mjs.map +1 -1
- package/dist/{src-BzTu1krN.mjs → src-D2PCex5z.mjs} +33 -21
- package/dist/src-D2PCex5z.mjs.map +1 -0
- package/package.json +17 -18
- package/dist/init-C3GzFcQR.mjs.map +0 -1
- package/dist/src-BzTu1krN.mjs.map +0 -1
|
@@ -7,10 +7,8 @@ import { fileURLToPath } from "node:url";
|
|
|
7
7
|
import fs from "node:fs";
|
|
8
8
|
import { parseTsconfig } from "get-tsconfig";
|
|
9
9
|
import ts from "typescript";
|
|
10
|
-
|
|
11
10
|
//#region \0rolldown/runtime.js
|
|
12
11
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
13
|
-
|
|
14
12
|
//#endregion
|
|
15
13
|
//#region src/config/expand.ts
|
|
16
14
|
function expandToJobs(configs) {
|
|
@@ -50,7 +48,6 @@ function expandToJobs(configs) {
|
|
|
50
48
|
}
|
|
51
49
|
return jobs;
|
|
52
50
|
}
|
|
53
|
-
|
|
54
51
|
//#endregion
|
|
55
52
|
//#region src/config/packages.ts
|
|
56
53
|
/**
|
|
@@ -80,7 +77,6 @@ const getProjectDependencies = (configFilePath) => {
|
|
|
80
77
|
}
|
|
81
78
|
return {};
|
|
82
79
|
};
|
|
83
|
-
|
|
84
80
|
//#endregion
|
|
85
81
|
//#region src/config/output/postprocess.ts
|
|
86
82
|
const postProcessors = {
|
|
@@ -129,7 +125,6 @@ const postProcessors = {
|
|
|
129
125
|
name: "Prettier"
|
|
130
126
|
}
|
|
131
127
|
};
|
|
132
|
-
|
|
133
128
|
//#endregion
|
|
134
129
|
//#region src/config/output/config.ts
|
|
135
130
|
const __filename$1 = fileURLToPath(import.meta.url);
|
|
@@ -240,13 +235,13 @@ function loadTsConfig(configPath) {
|
|
|
240
235
|
throw new Error(`Couldn't read tsconfig from path: ${configPath}`);
|
|
241
236
|
}
|
|
242
237
|
}
|
|
243
|
-
|
|
244
238
|
//#endregion
|
|
245
239
|
//#region src/plugins/@angular/common/httpRequests/config.ts
|
|
246
240
|
function resolveHttpRequests(config, context) {
|
|
247
241
|
let input = config.httpRequests;
|
|
248
242
|
if (typeof input === "string" || typeof input === "function") input = { strategy: input };
|
|
249
|
-
else if (typeof input === "boolean"
|
|
243
|
+
else if (typeof input === "boolean") input = { enabled: input };
|
|
244
|
+
else if (!input) input = {};
|
|
250
245
|
const strategy = input.strategy ?? "flat";
|
|
251
246
|
return context.valueToObject({
|
|
252
247
|
defaultValue: {
|
|
@@ -297,7 +292,6 @@ function resolveHttpRequests(config, context) {
|
|
|
297
292
|
value: input
|
|
298
293
|
});
|
|
299
294
|
}
|
|
300
|
-
|
|
301
295
|
//#endregion
|
|
302
296
|
//#region src/plugins/@angular/common/httpRequests/resolve.ts
|
|
303
297
|
function resolvePath$3(plugin) {
|
|
@@ -323,13 +317,13 @@ function resolveHttpRequestsStrategy(plugin) {
|
|
|
323
317
|
});
|
|
324
318
|
return plugin.config.httpRequests.strategy;
|
|
325
319
|
}
|
|
326
|
-
|
|
327
320
|
//#endregion
|
|
328
321
|
//#region src/plugins/@angular/common/httpResources/config.ts
|
|
329
322
|
function resolveHttpResources(config, context) {
|
|
330
323
|
let input = config.httpResources;
|
|
331
324
|
if (typeof input === "string" || typeof input === "function") input = { strategy: input };
|
|
332
|
-
else if (typeof input === "boolean"
|
|
325
|
+
else if (typeof input === "boolean") input = { enabled: input };
|
|
326
|
+
else if (!input) input = {};
|
|
333
327
|
const strategy = input.strategy ?? "flat";
|
|
334
328
|
return context.valueToObject({
|
|
335
329
|
defaultValue: {
|
|
@@ -380,7 +374,6 @@ function resolveHttpResources(config, context) {
|
|
|
380
374
|
value: input
|
|
381
375
|
});
|
|
382
376
|
}
|
|
383
|
-
|
|
384
377
|
//#endregion
|
|
385
378
|
//#region src/plugins/@angular/common/httpResources/resolve.ts
|
|
386
379
|
function resolvePath$2(plugin) {
|
|
@@ -406,14 +399,12 @@ function resolveHttpResourcesStrategy(plugin) {
|
|
|
406
399
|
});
|
|
407
400
|
return plugin.config.httpResources.strategy;
|
|
408
401
|
}
|
|
409
|
-
|
|
410
402
|
//#endregion
|
|
411
403
|
//#region src/config/utils.ts
|
|
412
404
|
function getTypedConfig(plugin) {
|
|
413
405
|
if ("context" in plugin) return plugin.context.config;
|
|
414
406
|
return plugin.config;
|
|
415
407
|
}
|
|
416
|
-
|
|
417
408
|
//#endregion
|
|
418
409
|
//#region src/plugins/@hey-api/client-core/utils.ts
|
|
419
410
|
function getClientBaseUrlKey(config) {
|
|
@@ -431,7 +422,6 @@ function getClientPlugin(config) {
|
|
|
431
422
|
name: ""
|
|
432
423
|
};
|
|
433
424
|
}
|
|
434
|
-
|
|
435
425
|
//#endregion
|
|
436
426
|
//#region src/ts-dsl/base.ts
|
|
437
427
|
var TsDsl = class {
|
|
@@ -535,7 +525,6 @@ var TsDsl = class {
|
|
|
535
525
|
}
|
|
536
526
|
};
|
|
537
527
|
var TypeTsDsl = class extends TsDsl {};
|
|
538
|
-
|
|
539
528
|
//#endregion
|
|
540
529
|
//#region src/ts-dsl/expr/id.ts
|
|
541
530
|
const Mixed$56 = TsDsl;
|
|
@@ -552,7 +541,6 @@ var IdTsDsl = class extends Mixed$56 {
|
|
|
552
541
|
return ts.factory.createIdentifier(this.name.toString());
|
|
553
542
|
}
|
|
554
543
|
};
|
|
555
|
-
|
|
556
544
|
//#endregion
|
|
557
545
|
//#region src/ts-dsl/layout/newline.ts
|
|
558
546
|
var NewlineTsDsl = class extends TsDsl {
|
|
@@ -564,7 +552,6 @@ var NewlineTsDsl = class extends TsDsl {
|
|
|
564
552
|
return this.$node(new IdTsDsl("\n"));
|
|
565
553
|
}
|
|
566
554
|
};
|
|
567
|
-
|
|
568
555
|
//#endregion
|
|
569
556
|
//#region src/ts-dsl/mixins/args.ts
|
|
570
557
|
/**
|
|
@@ -591,7 +578,6 @@ function ArgsMixin(Base) {
|
|
|
591
578
|
}
|
|
592
579
|
return Args;
|
|
593
580
|
}
|
|
594
|
-
|
|
595
581
|
//#endregion
|
|
596
582
|
//#region src/ts-dsl/expr/prefix.ts
|
|
597
583
|
const Mixed$55 = TsDsl;
|
|
@@ -648,7 +634,6 @@ var PrefixTsDsl = class extends Mixed$55 {
|
|
|
648
634
|
return missing;
|
|
649
635
|
}
|
|
650
636
|
};
|
|
651
|
-
|
|
652
637
|
//#endregion
|
|
653
638
|
//#region src/ts-dsl/utils/factories.ts
|
|
654
639
|
function createFactory(name) {
|
|
@@ -680,7 +665,6 @@ const f = {
|
|
|
680
665
|
},
|
|
681
666
|
typeofExpr: createFactory("typeofExpr")
|
|
682
667
|
};
|
|
683
|
-
|
|
684
668
|
//#endregion
|
|
685
669
|
//#region src/ts-dsl/mixins/as.ts
|
|
686
670
|
function AsMixin(Base) {
|
|
@@ -694,7 +678,6 @@ function AsMixin(Base) {
|
|
|
694
678
|
}
|
|
695
679
|
return As;
|
|
696
680
|
}
|
|
697
|
-
|
|
698
681
|
//#endregion
|
|
699
682
|
//#region src/ts-dsl/expr/literal.ts
|
|
700
683
|
const Mixed$54 = AsMixin(TsDsl);
|
|
@@ -720,181 +703,155 @@ var LiteralTsDsl = class extends Mixed$54 {
|
|
|
720
703
|
throw new Error(`Unsupported literal: ${String(this.value)}`);
|
|
721
704
|
}
|
|
722
705
|
};
|
|
723
|
-
|
|
724
|
-
//#endregion
|
|
725
|
-
//#region src/ts-dsl/utils/regexp.ts
|
|
726
|
-
/**
|
|
727
|
-
* Matches characters from the start as long as they're not allowed.
|
|
728
|
-
*/
|
|
729
|
-
const illegalStartCharactersRegExp = /^[^$_\p{ID_Start}]+/u;
|
|
730
|
-
/**
|
|
731
|
-
* Matches string if it contains only digits and optionally decimal point or
|
|
732
|
-
* leading minus sign.
|
|
733
|
-
*/
|
|
734
|
-
const numberRegExp = /^-?\d+(\.\d+)?$/;
|
|
735
|
-
/**
|
|
736
|
-
* Javascript identifier regexp pattern retrieved from
|
|
737
|
-
* {@link} https://developer.mozilla.org/docs/Web/JavaScript/Reference/Lexical_grammar#identifiers
|
|
738
|
-
*/
|
|
739
|
-
const validTypescriptIdentifierRegExp = /^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u;
|
|
740
706
|
const regexp = {
|
|
741
|
-
illegalStartCharacters:
|
|
742
|
-
number:
|
|
743
|
-
typeScriptIdentifier:
|
|
707
|
+
illegalStartCharacters: /^[^$_\p{ID_Start}]+/u,
|
|
708
|
+
number: /^-?\d+(\.\d+)?$/,
|
|
709
|
+
typeScriptIdentifier: /^[$_\p{ID_Start}][$\u200c\u200d\p{ID_Continue}]*$/u
|
|
744
710
|
};
|
|
745
|
-
|
|
746
|
-
//#endregion
|
|
747
|
-
//#region src/ts-dsl/utils/keywords.ts
|
|
748
|
-
const browserGlobals = [
|
|
749
|
-
"AbortController",
|
|
750
|
-
"AbortSignal",
|
|
751
|
-
"Blob",
|
|
752
|
-
"CustomEvent",
|
|
753
|
-
"document",
|
|
754
|
-
"Event",
|
|
755
|
-
"EventTarget",
|
|
756
|
-
"fetch",
|
|
757
|
-
"File",
|
|
758
|
-
"FileList",
|
|
759
|
-
"FileReader",
|
|
760
|
-
"FormData",
|
|
761
|
-
"Headers",
|
|
762
|
-
"history",
|
|
763
|
-
"location",
|
|
764
|
-
"navigator",
|
|
765
|
-
"Request",
|
|
766
|
-
"Response",
|
|
767
|
-
"TextDecoder",
|
|
768
|
-
"TextEncoder",
|
|
769
|
-
"URL",
|
|
770
|
-
"URLSearchParams",
|
|
771
|
-
"window"
|
|
772
|
-
];
|
|
773
|
-
const javaScriptGlobals = [
|
|
774
|
-
"Array",
|
|
775
|
-
"ArrayBuffer",
|
|
776
|
-
"atob",
|
|
777
|
-
"BigInt",
|
|
778
|
-
"Boolean",
|
|
779
|
-
"btoa",
|
|
780
|
-
"clearInterval",
|
|
781
|
-
"clearTimeout",
|
|
782
|
-
"console",
|
|
783
|
-
"crypto",
|
|
784
|
-
"DataView",
|
|
785
|
-
"Date",
|
|
786
|
-
"Error",
|
|
787
|
-
"Function",
|
|
788
|
-
"globalThis",
|
|
789
|
-
"Infinity",
|
|
790
|
-
"Intl",
|
|
791
|
-
"JSON",
|
|
792
|
-
"Map",
|
|
793
|
-
"Math",
|
|
794
|
-
"NaN",
|
|
795
|
-
"Number",
|
|
796
|
-
"Object",
|
|
797
|
-
"performance",
|
|
798
|
-
"Promise",
|
|
799
|
-
"Proxy",
|
|
800
|
-
"queueMicrotask",
|
|
801
|
-
"Reflect",
|
|
802
|
-
"RegExp",
|
|
803
|
-
"Set",
|
|
804
|
-
"setInterval",
|
|
805
|
-
"setTimeout",
|
|
806
|
-
"String",
|
|
807
|
-
"structuredClone",
|
|
808
|
-
"Symbol",
|
|
809
|
-
"WeakMap",
|
|
810
|
-
"WeakSet"
|
|
811
|
-
];
|
|
812
|
-
const javaScriptKeywords = [
|
|
813
|
-
"arguments",
|
|
814
|
-
"async",
|
|
815
|
-
"await",
|
|
816
|
-
"break",
|
|
817
|
-
"case",
|
|
818
|
-
"catch",
|
|
819
|
-
"class",
|
|
820
|
-
"const",
|
|
821
|
-
"continue",
|
|
822
|
-
"debugger",
|
|
823
|
-
"default",
|
|
824
|
-
"delete",
|
|
825
|
-
"do",
|
|
826
|
-
"else",
|
|
827
|
-
"enum",
|
|
828
|
-
"eval",
|
|
829
|
-
"export",
|
|
830
|
-
"extends",
|
|
831
|
-
"false",
|
|
832
|
-
"finally",
|
|
833
|
-
"for",
|
|
834
|
-
"from",
|
|
835
|
-
"function",
|
|
836
|
-
"if",
|
|
837
|
-
"implements",
|
|
838
|
-
"import",
|
|
839
|
-
"in",
|
|
840
|
-
"instanceof",
|
|
841
|
-
"interface",
|
|
842
|
-
"let",
|
|
843
|
-
"new",
|
|
844
|
-
"null",
|
|
845
|
-
"package",
|
|
846
|
-
"private",
|
|
847
|
-
"protected",
|
|
848
|
-
"public",
|
|
849
|
-
"return",
|
|
850
|
-
"static",
|
|
851
|
-
"super",
|
|
852
|
-
"switch",
|
|
853
|
-
"this",
|
|
854
|
-
"throw",
|
|
855
|
-
"true",
|
|
856
|
-
"try",
|
|
857
|
-
"typeof",
|
|
858
|
-
"var",
|
|
859
|
-
"void",
|
|
860
|
-
"while",
|
|
861
|
-
"with",
|
|
862
|
-
"yield"
|
|
863
|
-
];
|
|
864
|
-
const nodeGlobals = [
|
|
865
|
-
"__dirname",
|
|
866
|
-
"__filename",
|
|
867
|
-
"Buffer",
|
|
868
|
-
"exports",
|
|
869
|
-
"global",
|
|
870
|
-
"module",
|
|
871
|
-
"process",
|
|
872
|
-
"require"
|
|
873
|
-
];
|
|
874
|
-
const typeScriptKeywords = [
|
|
875
|
-
"any",
|
|
876
|
-
"as",
|
|
877
|
-
"bigint",
|
|
878
|
-
"boolean",
|
|
879
|
-
"namespace",
|
|
880
|
-
"never",
|
|
881
|
-
"null",
|
|
882
|
-
"number",
|
|
883
|
-
"string",
|
|
884
|
-
"symbol",
|
|
885
|
-
"type",
|
|
886
|
-
"undefined",
|
|
887
|
-
"unknown",
|
|
888
|
-
"void"
|
|
889
|
-
];
|
|
890
711
|
const keywords = {
|
|
891
|
-
browserGlobals
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
712
|
+
browserGlobals: [
|
|
713
|
+
"AbortController",
|
|
714
|
+
"AbortSignal",
|
|
715
|
+
"Blob",
|
|
716
|
+
"CustomEvent",
|
|
717
|
+
"document",
|
|
718
|
+
"Event",
|
|
719
|
+
"EventTarget",
|
|
720
|
+
"fetch",
|
|
721
|
+
"File",
|
|
722
|
+
"FileList",
|
|
723
|
+
"FileReader",
|
|
724
|
+
"FormData",
|
|
725
|
+
"Headers",
|
|
726
|
+
"history",
|
|
727
|
+
"location",
|
|
728
|
+
"navigator",
|
|
729
|
+
"Request",
|
|
730
|
+
"Response",
|
|
731
|
+
"TextDecoder",
|
|
732
|
+
"TextEncoder",
|
|
733
|
+
"URL",
|
|
734
|
+
"URLSearchParams",
|
|
735
|
+
"window"
|
|
736
|
+
],
|
|
737
|
+
javaScriptGlobals: [
|
|
738
|
+
"Array",
|
|
739
|
+
"ArrayBuffer",
|
|
740
|
+
"atob",
|
|
741
|
+
"BigInt",
|
|
742
|
+
"Boolean",
|
|
743
|
+
"btoa",
|
|
744
|
+
"clearInterval",
|
|
745
|
+
"clearTimeout",
|
|
746
|
+
"console",
|
|
747
|
+
"crypto",
|
|
748
|
+
"DataView",
|
|
749
|
+
"Date",
|
|
750
|
+
"Error",
|
|
751
|
+
"Function",
|
|
752
|
+
"globalThis",
|
|
753
|
+
"Infinity",
|
|
754
|
+
"Intl",
|
|
755
|
+
"JSON",
|
|
756
|
+
"Map",
|
|
757
|
+
"Math",
|
|
758
|
+
"NaN",
|
|
759
|
+
"Number",
|
|
760
|
+
"Object",
|
|
761
|
+
"performance",
|
|
762
|
+
"Promise",
|
|
763
|
+
"Proxy",
|
|
764
|
+
"queueMicrotask",
|
|
765
|
+
"Reflect",
|
|
766
|
+
"RegExp",
|
|
767
|
+
"Set",
|
|
768
|
+
"setInterval",
|
|
769
|
+
"setTimeout",
|
|
770
|
+
"String",
|
|
771
|
+
"structuredClone",
|
|
772
|
+
"Symbol",
|
|
773
|
+
"WeakMap",
|
|
774
|
+
"WeakSet"
|
|
775
|
+
],
|
|
776
|
+
javaScriptKeywords: [
|
|
777
|
+
"arguments",
|
|
778
|
+
"async",
|
|
779
|
+
"await",
|
|
780
|
+
"break",
|
|
781
|
+
"case",
|
|
782
|
+
"catch",
|
|
783
|
+
"class",
|
|
784
|
+
"const",
|
|
785
|
+
"continue",
|
|
786
|
+
"debugger",
|
|
787
|
+
"default",
|
|
788
|
+
"delete",
|
|
789
|
+
"do",
|
|
790
|
+
"else",
|
|
791
|
+
"enum",
|
|
792
|
+
"eval",
|
|
793
|
+
"export",
|
|
794
|
+
"extends",
|
|
795
|
+
"false",
|
|
796
|
+
"finally",
|
|
797
|
+
"for",
|
|
798
|
+
"from",
|
|
799
|
+
"function",
|
|
800
|
+
"if",
|
|
801
|
+
"implements",
|
|
802
|
+
"import",
|
|
803
|
+
"in",
|
|
804
|
+
"instanceof",
|
|
805
|
+
"interface",
|
|
806
|
+
"let",
|
|
807
|
+
"new",
|
|
808
|
+
"null",
|
|
809
|
+
"package",
|
|
810
|
+
"private",
|
|
811
|
+
"protected",
|
|
812
|
+
"public",
|
|
813
|
+
"return",
|
|
814
|
+
"static",
|
|
815
|
+
"super",
|
|
816
|
+
"switch",
|
|
817
|
+
"this",
|
|
818
|
+
"throw",
|
|
819
|
+
"true",
|
|
820
|
+
"try",
|
|
821
|
+
"typeof",
|
|
822
|
+
"var",
|
|
823
|
+
"void",
|
|
824
|
+
"while",
|
|
825
|
+
"with",
|
|
826
|
+
"yield"
|
|
827
|
+
],
|
|
828
|
+
nodeGlobals: [
|
|
829
|
+
"__dirname",
|
|
830
|
+
"__filename",
|
|
831
|
+
"Buffer",
|
|
832
|
+
"exports",
|
|
833
|
+
"global",
|
|
834
|
+
"module",
|
|
835
|
+
"process",
|
|
836
|
+
"require"
|
|
837
|
+
],
|
|
838
|
+
typeScriptKeywords: [
|
|
839
|
+
"any",
|
|
840
|
+
"as",
|
|
841
|
+
"bigint",
|
|
842
|
+
"boolean",
|
|
843
|
+
"namespace",
|
|
844
|
+
"never",
|
|
845
|
+
"null",
|
|
846
|
+
"number",
|
|
847
|
+
"string",
|
|
848
|
+
"symbol",
|
|
849
|
+
"type",
|
|
850
|
+
"undefined",
|
|
851
|
+
"unknown",
|
|
852
|
+
"void"
|
|
853
|
+
]
|
|
896
854
|
};
|
|
897
|
-
|
|
898
855
|
//#endregion
|
|
899
856
|
//#region src/ts-dsl/utils/reserved.ts
|
|
900
857
|
var ReservedList = class {
|
|
@@ -919,23 +876,20 @@ var ReservedList = class {
|
|
|
919
876
|
this._set = new Set(vals);
|
|
920
877
|
}
|
|
921
878
|
};
|
|
922
|
-
const runtimeReserved = new ReservedList([
|
|
923
|
-
...keywords.browserGlobals,
|
|
924
|
-
...keywords.javaScriptGlobals,
|
|
925
|
-
...keywords.javaScriptKeywords,
|
|
926
|
-
...keywords.nodeGlobals,
|
|
927
|
-
...keywords.typeScriptKeywords
|
|
928
|
-
]);
|
|
929
|
-
const typeReserved = new ReservedList([...keywords.javaScriptKeywords, ...keywords.typeScriptKeywords]);
|
|
930
879
|
/**
|
|
931
880
|
* Reserved names for identifiers. These names will not be used
|
|
932
881
|
* for variables, functions, classes, or other identifiers in generated code.
|
|
933
882
|
*/
|
|
934
883
|
const reserved = {
|
|
935
|
-
runtime:
|
|
936
|
-
|
|
884
|
+
runtime: new ReservedList([
|
|
885
|
+
...keywords.browserGlobals,
|
|
886
|
+
...keywords.javaScriptGlobals,
|
|
887
|
+
...keywords.javaScriptKeywords,
|
|
888
|
+
...keywords.nodeGlobals,
|
|
889
|
+
...keywords.typeScriptKeywords
|
|
890
|
+
]),
|
|
891
|
+
type: new ReservedList([...keywords.javaScriptKeywords, ...keywords.typeScriptKeywords])
|
|
937
892
|
};
|
|
938
|
-
|
|
939
893
|
//#endregion
|
|
940
894
|
//#region src/ts-dsl/utils/name.ts
|
|
941
895
|
const safeAccessorName = (name) => {
|
|
@@ -984,7 +938,6 @@ const safeName = (name, reserved) => {
|
|
|
984
938
|
};
|
|
985
939
|
const safeRuntimeName = (name) => safeName(name, reserved.runtime);
|
|
986
940
|
const safeTypeName = (name) => safeName(name, reserved.type);
|
|
987
|
-
|
|
988
941
|
//#endregion
|
|
989
942
|
//#region src/ts-dsl/decl/decorator.ts
|
|
990
943
|
const Mixed$53 = ArgsMixin(TsDsl);
|
|
@@ -1006,7 +959,6 @@ var DecoratorTsDsl = class extends Mixed$53 {
|
|
|
1006
959
|
return ts.factory.createDecorator(args.length ? ts.factory.createCallExpression(target, void 0, args) : target);
|
|
1007
960
|
}
|
|
1008
961
|
};
|
|
1009
|
-
|
|
1010
962
|
//#endregion
|
|
1011
963
|
//#region src/ts-dsl/mixins/decorator.ts
|
|
1012
964
|
function DecoratorMixin(Base) {
|
|
@@ -1026,7 +978,6 @@ function DecoratorMixin(Base) {
|
|
|
1026
978
|
}
|
|
1027
979
|
return Decorator;
|
|
1028
980
|
}
|
|
1029
|
-
|
|
1030
981
|
//#endregion
|
|
1031
982
|
//#region src/ts-dsl/utils/context.ts
|
|
1032
983
|
function accessChainToNode(accessChain) {
|
|
@@ -1166,7 +1117,6 @@ var TsDslContext = class {
|
|
|
1166
1117
|
}
|
|
1167
1118
|
};
|
|
1168
1119
|
const ctx = new TsDslContext();
|
|
1169
|
-
|
|
1170
1120
|
//#endregion
|
|
1171
1121
|
//#region src/ts-dsl/layout/doc.ts
|
|
1172
1122
|
var DocTsDsl = class extends TsDsl {
|
|
@@ -1201,7 +1151,6 @@ var DocTsDsl = class extends TsDsl {
|
|
|
1201
1151
|
return this.$node(new IdTsDsl(""));
|
|
1202
1152
|
}
|
|
1203
1153
|
};
|
|
1204
|
-
|
|
1205
1154
|
//#endregion
|
|
1206
1155
|
//#region src/ts-dsl/mixins/doc.ts
|
|
1207
1156
|
function DocMixin(Base) {
|
|
@@ -1220,7 +1169,6 @@ function DocMixin(Base) {
|
|
|
1220
1169
|
}
|
|
1221
1170
|
return Doc;
|
|
1222
1171
|
}
|
|
1223
|
-
|
|
1224
1172
|
//#endregion
|
|
1225
1173
|
//#region src/ts-dsl/mixins/modifiers.ts
|
|
1226
1174
|
function modifierToKind(modifier) {
|
|
@@ -1403,7 +1351,6 @@ function StaticMixin(Base) {
|
|
|
1403
1351
|
}
|
|
1404
1352
|
return Static;
|
|
1405
1353
|
}
|
|
1406
|
-
|
|
1407
1354
|
//#endregion
|
|
1408
1355
|
//#region src/ts-dsl/type/param.ts
|
|
1409
1356
|
const Mixed$52 = TsDsl;
|
|
@@ -1437,7 +1384,6 @@ var TypeParamTsDsl = class extends Mixed$52 {
|
|
|
1437
1384
|
return ts.factory.createTypeParameterDeclaration(void 0, this.$node(this.name), this.$type(this.constraint), this.$type(this.defaultValue));
|
|
1438
1385
|
}
|
|
1439
1386
|
};
|
|
1440
|
-
|
|
1441
1387
|
//#endregion
|
|
1442
1388
|
//#region src/ts-dsl/mixins/type-params.ts
|
|
1443
1389
|
function TypeParamsMixin(Base) {
|
|
@@ -1465,7 +1411,6 @@ function TypeParamsMixin(Base) {
|
|
|
1465
1411
|
}
|
|
1466
1412
|
return TypeParams;
|
|
1467
1413
|
}
|
|
1468
|
-
|
|
1469
1414
|
//#endregion
|
|
1470
1415
|
//#region src/ts-dsl/mixins/optional.ts
|
|
1471
1416
|
function OptionalMixin(Base) {
|
|
@@ -1485,7 +1430,6 @@ function OptionalMixin(Base) {
|
|
|
1485
1430
|
}
|
|
1486
1431
|
return Optional;
|
|
1487
1432
|
}
|
|
1488
|
-
|
|
1489
1433
|
//#endregion
|
|
1490
1434
|
//#region src/ts-dsl/mixins/value.ts
|
|
1491
1435
|
function ValueMixin(Base) {
|
|
@@ -1505,7 +1449,6 @@ function ValueMixin(Base) {
|
|
|
1505
1449
|
}
|
|
1506
1450
|
return Value;
|
|
1507
1451
|
}
|
|
1508
|
-
|
|
1509
1452
|
//#endregion
|
|
1510
1453
|
//#region src/ts-dsl/token.ts
|
|
1511
1454
|
var TokenTsDsl = class extends TsDsl {
|
|
@@ -1559,7 +1502,6 @@ var TokenTsDsl = class extends TsDsl {
|
|
|
1559
1502
|
return !this.missingRequiredCalls().length;
|
|
1560
1503
|
}
|
|
1561
1504
|
};
|
|
1562
|
-
|
|
1563
1505
|
//#endregion
|
|
1564
1506
|
//#region src/ts-dsl/mixins/type-args.ts
|
|
1565
1507
|
function TypeArgsMixin(Base) {
|
|
@@ -1583,7 +1525,6 @@ function TypeArgsMixin(Base) {
|
|
|
1583
1525
|
}
|
|
1584
1526
|
return TypeArgs;
|
|
1585
1527
|
}
|
|
1586
|
-
|
|
1587
1528
|
//#endregion
|
|
1588
1529
|
//#region src/ts-dsl/mixins/type-expr.ts
|
|
1589
1530
|
function TypeExprMixin(Base) {
|
|
@@ -1615,7 +1556,6 @@ function TypeExprMixin(Base) {
|
|
|
1615
1556
|
}
|
|
1616
1557
|
return TypeExpr;
|
|
1617
1558
|
}
|
|
1618
|
-
|
|
1619
1559
|
//#endregion
|
|
1620
1560
|
//#region src/ts-dsl/type/attr.ts
|
|
1621
1561
|
const Mixed$51 = TypeExprMixin(TsDsl);
|
|
@@ -1670,7 +1610,6 @@ var TypeAttrTsDsl = class extends Mixed$51 {
|
|
|
1670
1610
|
return missing;
|
|
1671
1611
|
}
|
|
1672
1612
|
};
|
|
1673
|
-
|
|
1674
1613
|
//#endregion
|
|
1675
1614
|
//#region src/ts-dsl/type/expr.ts
|
|
1676
1615
|
const Mixed$50 = TypeArgsMixin(TypeExprMixin(TsDsl));
|
|
@@ -1715,7 +1654,6 @@ var TypeExprTsDsl = class extends Mixed$50 {
|
|
|
1715
1654
|
}
|
|
1716
1655
|
};
|
|
1717
1656
|
f.type.expr.set((...args) => new TypeExprTsDsl(...args));
|
|
1718
|
-
|
|
1719
1657
|
//#endregion
|
|
1720
1658
|
//#region src/ts-dsl/decl/field.ts
|
|
1721
1659
|
const Mixed$49 = DecoratorMixin(DocMixin(OptionalMixin(PrivateMixin(ProtectedMixin(PublicMixin(ReadonlyMixin(StaticMixin(ValueMixin(TsDsl)))))))));
|
|
@@ -1743,7 +1681,6 @@ var FieldTsDsl = class extends Mixed$49 {
|
|
|
1743
1681
|
return this.$docs(node);
|
|
1744
1682
|
}
|
|
1745
1683
|
};
|
|
1746
|
-
|
|
1747
1684
|
//#endregion
|
|
1748
1685
|
//#region src/ts-dsl/stmt/stmt.ts
|
|
1749
1686
|
const Mixed$48 = TsDsl;
|
|
@@ -1763,7 +1700,6 @@ var StmtTsDsl = class extends Mixed$48 {
|
|
|
1763
1700
|
return ts.isStatement(node) ? node : ts.factory.createExpressionStatement(node);
|
|
1764
1701
|
}
|
|
1765
1702
|
};
|
|
1766
|
-
|
|
1767
1703
|
//#endregion
|
|
1768
1704
|
//#region src/ts-dsl/mixins/do.ts
|
|
1769
1705
|
/**
|
|
@@ -1791,7 +1727,6 @@ function DoMixin(Base) {
|
|
|
1791
1727
|
}
|
|
1792
1728
|
return Do;
|
|
1793
1729
|
}
|
|
1794
|
-
|
|
1795
1730
|
//#endregion
|
|
1796
1731
|
//#region src/ts-dsl/decl/pattern.ts
|
|
1797
1732
|
const Mixed$47 = TsDsl;
|
|
@@ -1864,7 +1799,6 @@ var PatternTsDsl = class extends Mixed$47 {
|
|
|
1864
1799
|
return this._spread ? ts.factory.createBindingElement(this.$node(new TokenTsDsl().spread()), void 0, this.$node(new IdTsDsl(this._spread))) : void 0;
|
|
1865
1800
|
}
|
|
1866
1801
|
};
|
|
1867
|
-
|
|
1868
1802
|
//#endregion
|
|
1869
1803
|
//#region src/ts-dsl/mixins/pattern.ts
|
|
1870
1804
|
/**
|
|
@@ -1898,7 +1832,6 @@ function PatternMixin(Base) {
|
|
|
1898
1832
|
}
|
|
1899
1833
|
return Pattern;
|
|
1900
1834
|
}
|
|
1901
|
-
|
|
1902
1835
|
//#endregion
|
|
1903
1836
|
//#region src/ts-dsl/decl/param.ts
|
|
1904
1837
|
const Mixed$46 = DecoratorMixin(OptionalMixin(PatternMixin(ValueMixin(TsDsl))));
|
|
@@ -1942,7 +1875,6 @@ var ParamTsDsl = class extends Mixed$46 {
|
|
|
1942
1875
|
return missing;
|
|
1943
1876
|
}
|
|
1944
1877
|
};
|
|
1945
|
-
|
|
1946
1878
|
//#endregion
|
|
1947
1879
|
//#region src/ts-dsl/mixins/param.ts
|
|
1948
1880
|
function ParamMixin(Base) {
|
|
@@ -1967,7 +1899,6 @@ function ParamMixin(Base) {
|
|
|
1967
1899
|
}
|
|
1968
1900
|
return Param;
|
|
1969
1901
|
}
|
|
1970
|
-
|
|
1971
1902
|
//#endregion
|
|
1972
1903
|
//#region src/ts-dsl/mixins/layout.ts
|
|
1973
1904
|
function LayoutMixin(Base) {
|
|
@@ -1997,7 +1928,6 @@ function LayoutMixin(Base) {
|
|
|
1997
1928
|
}
|
|
1998
1929
|
return Layout;
|
|
1999
1930
|
}
|
|
2000
|
-
|
|
2001
1931
|
//#endregion
|
|
2002
1932
|
//#region src/ts-dsl/stmt/block.ts
|
|
2003
1933
|
const Mixed$45 = DoMixin(LayoutMixin(TsDsl));
|
|
@@ -2015,7 +1945,6 @@ var BlockTsDsl = class extends Mixed$45 {
|
|
|
2015
1945
|
return ts.factory.createBlock(statements, this.$multiline(statements.length));
|
|
2016
1946
|
}
|
|
2017
1947
|
};
|
|
2018
|
-
|
|
2019
1948
|
//#endregion
|
|
2020
1949
|
//#region src/ts-dsl/decl/init.ts
|
|
2021
1950
|
const Mixed$44 = DecoratorMixin(DoMixin(DocMixin(ParamMixin(PrivateMixin(ProtectedMixin(PublicMixin(TsDsl)))))));
|
|
@@ -2038,7 +1967,6 @@ var InitTsDsl = class extends Mixed$44 {
|
|
|
2038
1967
|
return this.$docs(node);
|
|
2039
1968
|
}
|
|
2040
1969
|
};
|
|
2041
|
-
|
|
2042
1970
|
//#endregion
|
|
2043
1971
|
//#region src/ts-dsl/mixins/type-returns.ts
|
|
2044
1972
|
function TypeReturnsMixin(Base) {
|
|
@@ -2058,7 +1986,6 @@ function TypeReturnsMixin(Base) {
|
|
|
2058
1986
|
}
|
|
2059
1987
|
return TypeReturns;
|
|
2060
1988
|
}
|
|
2061
|
-
|
|
2062
1989
|
//#endregion
|
|
2063
1990
|
//#region src/ts-dsl/decl/method.ts
|
|
2064
1991
|
const Mixed$43 = AbstractMixin(AsyncMixin(DecoratorMixin(DoMixin(DocMixin(OptionalMixin(ParamMixin(PrivateMixin(ProtectedMixin(PublicMixin(StaticMixin(TypeParamsMixin(TypeReturnsMixin(TsDsl)))))))))))));
|
|
@@ -2085,7 +2012,6 @@ var MethodTsDsl = class extends Mixed$43 {
|
|
|
2085
2012
|
}
|
|
2086
2013
|
};
|
|
2087
2014
|
f.method.set((...args) => new MethodTsDsl(...args));
|
|
2088
|
-
|
|
2089
2015
|
//#endregion
|
|
2090
2016
|
//#region src/ts-dsl/decl/class.ts
|
|
2091
2017
|
const Mixed$42 = AbstractMixin(DecoratorMixin(DefaultMixin(DocMixin(ExportMixin(TypeParamsMixin(TsDsl))))));
|
|
@@ -2159,7 +2085,6 @@ var ClassTsDsl = class extends Mixed$42 {
|
|
|
2159
2085
|
return [ts.factory.createHeritageClause(ts.SyntaxKind.ExtendsKeyword, [ts.factory.createExpressionWithTypeArguments(node, void 0)])];
|
|
2160
2086
|
}
|
|
2161
2087
|
};
|
|
2162
|
-
|
|
2163
2088
|
//#endregion
|
|
2164
2089
|
//#region src/ts-dsl/decl/member.ts
|
|
2165
2090
|
const Mixed$41 = DocMixin(TsDsl);
|
|
@@ -2186,7 +2111,6 @@ var EnumMemberTsDsl = class extends Mixed$41 {
|
|
|
2186
2111
|
return this.$docs(node);
|
|
2187
2112
|
}
|
|
2188
2113
|
};
|
|
2189
|
-
|
|
2190
2114
|
//#endregion
|
|
2191
2115
|
//#region src/ts-dsl/decl/enum.ts
|
|
2192
2116
|
const Mixed$40 = ConstMixin(DocMixin(ExportMixin(TsDsl)));
|
|
@@ -2226,7 +2150,6 @@ var EnumTsDsl = class extends Mixed$40 {
|
|
|
2226
2150
|
return this.$docs(node);
|
|
2227
2151
|
}
|
|
2228
2152
|
};
|
|
2229
|
-
|
|
2230
2153
|
//#endregion
|
|
2231
2154
|
//#region src/ts-dsl/decl/func.ts
|
|
2232
2155
|
const Mixed$39 = AbstractMixin(AsMixin(AsyncMixin(DecoratorMixin(DoMixin(DocMixin(ExportMixin(ParamMixin(PrivateMixin(ProtectedMixin(PublicMixin(StaticMixin(TypeParamsMixin(TypeReturnsMixin(TsDsl))))))))))))));
|
|
@@ -2300,7 +2223,6 @@ var ImplFuncTsDsl = class extends Mixed$39 {
|
|
|
2300
2223
|
}
|
|
2301
2224
|
};
|
|
2302
2225
|
const FuncTsDsl = ImplFuncTsDsl;
|
|
2303
|
-
|
|
2304
2226
|
//#endregion
|
|
2305
2227
|
//#region src/ts-dsl/decl/getter.ts
|
|
2306
2228
|
const Mixed$38 = AbstractMixin(AsyncMixin(DecoratorMixin(DoMixin(DocMixin(ParamMixin(PrivateMixin(ProtectedMixin(PublicMixin(StaticMixin(TypeReturnsMixin(TsDsl)))))))))));
|
|
@@ -2326,7 +2248,6 @@ var GetterTsDsl = class extends Mixed$38 {
|
|
|
2326
2248
|
return this.$docs(node);
|
|
2327
2249
|
}
|
|
2328
2250
|
};
|
|
2329
|
-
|
|
2330
2251
|
//#endregion
|
|
2331
2252
|
//#region src/ts-dsl/decl/setter.ts
|
|
2332
2253
|
const Mixed$37 = AbstractMixin(AsyncMixin(DecoratorMixin(DoMixin(DocMixin(ParamMixin(PrivateMixin(ProtectedMixin(PublicMixin(StaticMixin(TsDsl))))))))));
|
|
@@ -2352,7 +2273,6 @@ var SetterTsDsl = class extends Mixed$37 {
|
|
|
2352
2273
|
return this.$docs(node);
|
|
2353
2274
|
}
|
|
2354
2275
|
};
|
|
2355
|
-
|
|
2356
2276
|
//#endregion
|
|
2357
2277
|
//#region src/ts-dsl/mixins/expr.ts
|
|
2358
2278
|
function ExprMixin(Base) {
|
|
@@ -2375,7 +2295,6 @@ function ExprMixin(Base) {
|
|
|
2375
2295
|
}
|
|
2376
2296
|
return Expr;
|
|
2377
2297
|
}
|
|
2378
|
-
|
|
2379
2298
|
//#endregion
|
|
2380
2299
|
//#region src/ts-dsl/mixins/spread.ts
|
|
2381
2300
|
function SpreadMixin(Base) {
|
|
@@ -2389,7 +2308,6 @@ function SpreadMixin(Base) {
|
|
|
2389
2308
|
}
|
|
2390
2309
|
return Spread;
|
|
2391
2310
|
}
|
|
2392
|
-
|
|
2393
2311
|
//#endregion
|
|
2394
2312
|
//#region src/ts-dsl/expr/array.ts
|
|
2395
2313
|
const Mixed$36 = AsMixin(ExprMixin(LayoutMixin(SpreadMixin(TsDsl))));
|
|
@@ -2419,7 +2337,6 @@ var ArrayTsDsl = class extends Mixed$36 {
|
|
|
2419
2337
|
return ts.factory.createArrayLiteralExpression(this._elements.map((item) => this.$node(item)), this.$multiline(this._elements.length));
|
|
2420
2338
|
}
|
|
2421
2339
|
};
|
|
2422
|
-
|
|
2423
2340
|
//#endregion
|
|
2424
2341
|
//#region src/ts-dsl/expr/as.ts
|
|
2425
2342
|
const Mixed$35 = AsMixin(ExprMixin(TsDsl));
|
|
@@ -2442,7 +2359,6 @@ var AsTsDsl = class extends Mixed$35 {
|
|
|
2442
2359
|
}
|
|
2443
2360
|
};
|
|
2444
2361
|
f.as.set((...args) => new AsTsDsl(...args));
|
|
2445
|
-
|
|
2446
2362
|
//#endregion
|
|
2447
2363
|
//#region src/ts-dsl/expr/binary.ts
|
|
2448
2364
|
const Mixed$34 = AsMixin(ExprMixin(TsDsl));
|
|
@@ -2581,7 +2497,6 @@ var BinaryTsDsl = class extends Mixed$34 {
|
|
|
2581
2497
|
return token;
|
|
2582
2498
|
}
|
|
2583
2499
|
};
|
|
2584
|
-
|
|
2585
2500
|
//#endregion
|
|
2586
2501
|
//#region src/ts-dsl/mixins/operator.ts
|
|
2587
2502
|
function OperatorMixin(Base) {
|
|
@@ -2643,7 +2558,6 @@ function OperatorMixin(Base) {
|
|
|
2643
2558
|
}
|
|
2644
2559
|
return Operator;
|
|
2645
2560
|
}
|
|
2646
|
-
|
|
2647
2561
|
//#endregion
|
|
2648
2562
|
//#region src/ts-dsl/expr/attr.ts
|
|
2649
2563
|
const Mixed$33 = AsMixin(ExprMixin(OperatorMixin(OptionalMixin(SpreadMixin(TsDsl)))));
|
|
@@ -2683,7 +2597,6 @@ var AttrTsDsl = class extends Mixed$33 {
|
|
|
2683
2597
|
}
|
|
2684
2598
|
};
|
|
2685
2599
|
f.attr.set((...args) => new AttrTsDsl(...args));
|
|
2686
|
-
|
|
2687
2600
|
//#endregion
|
|
2688
2601
|
//#region src/ts-dsl/expr/await.ts
|
|
2689
2602
|
const Mixed$32 = ExprMixin(TsDsl);
|
|
@@ -2703,7 +2616,6 @@ var AwaitTsDsl = class extends Mixed$32 {
|
|
|
2703
2616
|
}
|
|
2704
2617
|
};
|
|
2705
2618
|
f.await.set((...args) => new AwaitTsDsl(...args));
|
|
2706
|
-
|
|
2707
2619
|
//#endregion
|
|
2708
2620
|
//#region src/ts-dsl/expr/call.ts
|
|
2709
2621
|
const Mixed$31 = ArgsMixin(AsMixin(ExprMixin(SpreadMixin(TypeArgsMixin(TsDsl)))));
|
|
@@ -2724,7 +2636,6 @@ var CallTsDsl = class extends Mixed$31 {
|
|
|
2724
2636
|
}
|
|
2725
2637
|
};
|
|
2726
2638
|
f.call.set((...args) => new CallTsDsl(...args));
|
|
2727
|
-
|
|
2728
2639
|
//#endregion
|
|
2729
2640
|
//#region src/ts-dsl/expr/expr.ts
|
|
2730
2641
|
const Mixed$30 = AsMixin(ExprMixin(OperatorMixin(SpreadMixin(TypeExprMixin(TsDsl)))));
|
|
@@ -2745,7 +2656,6 @@ var ExprTsDsl = class extends Mixed$30 {
|
|
|
2745
2656
|
return this.$node(this._exprInput);
|
|
2746
2657
|
}
|
|
2747
2658
|
};
|
|
2748
|
-
|
|
2749
2659
|
//#endregion
|
|
2750
2660
|
//#region src/ts-dsl/layout/hint.ts
|
|
2751
2661
|
var HintTsDsl = class extends TsDsl {
|
|
@@ -2777,7 +2687,6 @@ var HintTsDsl = class extends TsDsl {
|
|
|
2777
2687
|
return this.$node(new IdTsDsl(""));
|
|
2778
2688
|
}
|
|
2779
2689
|
};
|
|
2780
|
-
|
|
2781
2690
|
//#endregion
|
|
2782
2691
|
//#region src/ts-dsl/mixins/hint.ts
|
|
2783
2692
|
function HintMixin(Base) {
|
|
@@ -2796,7 +2705,6 @@ function HintMixin(Base) {
|
|
|
2796
2705
|
}
|
|
2797
2706
|
return Hint;
|
|
2798
2707
|
}
|
|
2799
|
-
|
|
2800
2708
|
//#endregion
|
|
2801
2709
|
//#region src/ts-dsl/expr/prop.ts
|
|
2802
2710
|
const Mixed$29 = DocMixin(TsDsl);
|
|
@@ -2863,7 +2771,6 @@ var ObjectPropTsDsl = class extends Mixed$29 {
|
|
|
2863
2771
|
return missing;
|
|
2864
2772
|
}
|
|
2865
2773
|
};
|
|
2866
|
-
|
|
2867
2774
|
//#endregion
|
|
2868
2775
|
//#region src/ts-dsl/expr/object.ts
|
|
2869
2776
|
const Mixed$28 = AsMixin(ExprMixin(HintMixin(LayoutMixin(TsDsl))));
|
|
@@ -2955,7 +2862,6 @@ var ObjectTsDsl = class extends Mixed$28 {
|
|
|
2955
2862
|
return this.$hint(node);
|
|
2956
2863
|
}
|
|
2957
2864
|
};
|
|
2958
|
-
|
|
2959
2865
|
//#endregion
|
|
2960
2866
|
//#region src/ts-dsl/expr/from-value.ts
|
|
2961
2867
|
const fromValue$1 = (input, options) => {
|
|
@@ -2977,7 +2883,6 @@ const fromValue$1 = (input, options) => {
|
|
|
2977
2883
|
}
|
|
2978
2884
|
throw new Error(`$.fromValue(): Unsupported input type ${String(input)}`);
|
|
2979
2885
|
};
|
|
2980
|
-
|
|
2981
2886
|
//#endregion
|
|
2982
2887
|
//#region src/ts-dsl/expr/new.ts
|
|
2983
2888
|
const Mixed$27 = ArgsMixin(AsMixin(ExprMixin(SpreadMixin(TypeArgsMixin(TsDsl)))));
|
|
@@ -2998,7 +2903,6 @@ var NewTsDsl = class extends Mixed$27 {
|
|
|
2998
2903
|
}
|
|
2999
2904
|
};
|
|
3000
2905
|
f.new.set((...args) => new NewTsDsl(...args));
|
|
3001
|
-
|
|
3002
2906
|
//#endregion
|
|
3003
2907
|
//#region src/ts-dsl/expr/postfix.ts
|
|
3004
2908
|
const Mixed$26 = TsDsl;
|
|
@@ -3055,7 +2959,6 @@ var PostfixTsDsl = class extends Mixed$26 {
|
|
|
3055
2959
|
return missing;
|
|
3056
2960
|
}
|
|
3057
2961
|
};
|
|
3058
|
-
|
|
3059
2962
|
//#endregion
|
|
3060
2963
|
//#region src/ts-dsl/expr/regexp.ts
|
|
3061
2964
|
const Mixed$25 = TsDsl;
|
|
@@ -3076,7 +2979,6 @@ var RegExpTsDsl = class extends Mixed$25 {
|
|
|
3076
2979
|
return ts.factory.createRegularExpressionLiteral(literal);
|
|
3077
2980
|
}
|
|
3078
2981
|
};
|
|
3079
|
-
|
|
3080
2982
|
//#endregion
|
|
3081
2983
|
//#region src/ts-dsl/expr/spread.ts
|
|
3082
2984
|
const Mixed$24 = TsDsl;
|
|
@@ -3096,7 +2998,6 @@ var SpreadTsDsl = class extends Mixed$24 {
|
|
|
3096
2998
|
}
|
|
3097
2999
|
};
|
|
3098
3000
|
f.spread.set((...args) => new SpreadTsDsl(...args));
|
|
3099
|
-
|
|
3100
3001
|
//#endregion
|
|
3101
3002
|
//#region src/ts-dsl/expr/template.ts
|
|
3102
3003
|
const Mixed$23 = TsDsl;
|
|
@@ -3147,7 +3048,6 @@ var TemplateTsDsl = class extends Mixed$23 {
|
|
|
3147
3048
|
return ts.factory.createTemplateExpression(head, spans);
|
|
3148
3049
|
}
|
|
3149
3050
|
};
|
|
3150
|
-
|
|
3151
3051
|
//#endregion
|
|
3152
3052
|
//#region src/ts-dsl/expr/ternary.ts
|
|
3153
3053
|
const Mixed$22 = TsDsl;
|
|
@@ -3199,7 +3099,6 @@ var TernaryTsDsl = class extends Mixed$22 {
|
|
|
3199
3099
|
return missing;
|
|
3200
3100
|
}
|
|
3201
3101
|
};
|
|
3202
|
-
|
|
3203
3102
|
//#endregion
|
|
3204
3103
|
//#region src/ts-dsl/expr/typeof.ts
|
|
3205
3104
|
const Mixed$21 = OperatorMixin(TsDsl);
|
|
@@ -3219,7 +3118,6 @@ var TypeOfExprTsDsl = class extends Mixed$21 {
|
|
|
3219
3118
|
}
|
|
3220
3119
|
};
|
|
3221
3120
|
f.typeofExpr.set((...args) => new TypeOfExprTsDsl(...args));
|
|
3222
|
-
|
|
3223
3121
|
//#endregion
|
|
3224
3122
|
//#region src/ts-dsl/layout/note.ts
|
|
3225
3123
|
var NoteTsDsl = class extends TsDsl {
|
|
@@ -3251,7 +3149,6 @@ var NoteTsDsl = class extends TsDsl {
|
|
|
3251
3149
|
return this.$node(new IdTsDsl(""));
|
|
3252
3150
|
}
|
|
3253
3151
|
};
|
|
3254
|
-
|
|
3255
3152
|
//#endregion
|
|
3256
3153
|
//#region src/ts-dsl/stmt/for.ts
|
|
3257
3154
|
const Mixed$20 = DoMixin(LayoutMixin(TsDsl));
|
|
@@ -3350,7 +3247,6 @@ var ImplForTsDsl = class extends Mixed$20 {
|
|
|
3350
3247
|
}
|
|
3351
3248
|
};
|
|
3352
3249
|
const ForTsDsl = ImplForTsDsl;
|
|
3353
|
-
|
|
3354
3250
|
//#endregion
|
|
3355
3251
|
//#region src/ts-dsl/stmt/if.ts
|
|
3356
3252
|
const Mixed$19 = DoMixin(TsDsl);
|
|
@@ -3402,7 +3298,6 @@ var IfTsDsl = class extends Mixed$19 {
|
|
|
3402
3298
|
return missing;
|
|
3403
3299
|
}
|
|
3404
3300
|
};
|
|
3405
|
-
|
|
3406
3301
|
//#endregion
|
|
3407
3302
|
//#region src/ts-dsl/stmt/return.ts
|
|
3408
3303
|
const Mixed$18 = TsDsl;
|
|
@@ -3422,7 +3317,6 @@ var ReturnTsDsl = class extends Mixed$18 {
|
|
|
3422
3317
|
}
|
|
3423
3318
|
};
|
|
3424
3319
|
f.return.set((...args) => new ReturnTsDsl(...args));
|
|
3425
|
-
|
|
3426
3320
|
//#endregion
|
|
3427
3321
|
//#region src/ts-dsl/stmt/throw.ts
|
|
3428
3322
|
const Mixed$17 = TsDsl;
|
|
@@ -3453,7 +3347,6 @@ var ThrowTsDsl = class extends Mixed$17 {
|
|
|
3453
3347
|
return ts.factory.createThrowStatement(args[0]);
|
|
3454
3348
|
}
|
|
3455
3349
|
};
|
|
3456
|
-
|
|
3457
3350
|
//#endregion
|
|
3458
3351
|
//#region src/ts-dsl/stmt/try.ts
|
|
3459
3352
|
const Mixed$16 = TsDsl;
|
|
@@ -3531,7 +3424,6 @@ var TryTsDsl = class extends Mixed$16 {
|
|
|
3531
3424
|
return missing;
|
|
3532
3425
|
}
|
|
3533
3426
|
};
|
|
3534
|
-
|
|
3535
3427
|
//#endregion
|
|
3536
3428
|
//#region src/ts-dsl/stmt/var.ts
|
|
3537
3429
|
const Mixed$15 = DefaultMixin(DocMixin(ExportMixin(HintMixin(PatternMixin(ValueMixin(TsDsl))))));
|
|
@@ -3587,7 +3479,6 @@ var VarTsDsl = class extends Mixed$15 {
|
|
|
3587
3479
|
return missing;
|
|
3588
3480
|
}
|
|
3589
3481
|
};
|
|
3590
|
-
|
|
3591
3482
|
//#endregion
|
|
3592
3483
|
//#region src/ts-dsl/type/alias.ts
|
|
3593
3484
|
const Mixed$14 = DocMixin(ExportMixin(TypeParamsMixin(TsDsl)));
|
|
@@ -3633,7 +3524,6 @@ var TypeAliasTsDsl = class extends Mixed$14 {
|
|
|
3633
3524
|
return missing;
|
|
3634
3525
|
}
|
|
3635
3526
|
};
|
|
3636
|
-
|
|
3637
3527
|
//#endregion
|
|
3638
3528
|
//#region src/ts-dsl/type/and.ts
|
|
3639
3529
|
const Mixed$13 = TsDsl;
|
|
@@ -3663,7 +3553,6 @@ var TypeAndTsDsl = class extends Mixed$13 {
|
|
|
3663
3553
|
return ts.factory.createIntersectionTypeNode(flat);
|
|
3664
3554
|
}
|
|
3665
3555
|
};
|
|
3666
|
-
|
|
3667
3556
|
//#endregion
|
|
3668
3557
|
//#region src/ts-dsl/type/literal.ts
|
|
3669
3558
|
const Mixed$12 = TsDsl;
|
|
@@ -3682,7 +3571,6 @@ var TypeLiteralTsDsl = class extends Mixed$12 {
|
|
|
3682
3571
|
return ts.factory.createLiteralTypeNode(this.$node(new LiteralTsDsl(this.value)));
|
|
3683
3572
|
}
|
|
3684
3573
|
};
|
|
3685
|
-
|
|
3686
3574
|
//#endregion
|
|
3687
3575
|
//#region src/ts-dsl/type/idx-sig.ts
|
|
3688
3576
|
const Mixed$11 = DocMixin(ReadonlyMixin(TsDsl));
|
|
@@ -3741,7 +3629,6 @@ var TypeIdxSigTsDsl = class extends Mixed$11 {
|
|
|
3741
3629
|
return missing;
|
|
3742
3630
|
}
|
|
3743
3631
|
};
|
|
3744
|
-
|
|
3745
3632
|
//#endregion
|
|
3746
3633
|
//#region src/ts-dsl/type/prop.ts
|
|
3747
3634
|
const Mixed$10 = DocMixin(OptionalMixin(ReadonlyMixin(TsDsl)));
|
|
@@ -3793,7 +3680,6 @@ var TypePropTsDsl = class extends Mixed$10 {
|
|
|
3793
3680
|
return missing;
|
|
3794
3681
|
}
|
|
3795
3682
|
};
|
|
3796
|
-
|
|
3797
3683
|
//#endregion
|
|
3798
3684
|
//#region src/ts-dsl/type/object.ts
|
|
3799
3685
|
const Mixed$9 = TsDsl;
|
|
@@ -3836,7 +3722,6 @@ var TypeObjectTsDsl = class extends Mixed$9 {
|
|
|
3836
3722
|
return ts.factory.createTypeLiteralNode(this.$node([...this._props.values()]));
|
|
3837
3723
|
}
|
|
3838
3724
|
};
|
|
3839
|
-
|
|
3840
3725
|
//#endregion
|
|
3841
3726
|
//#region src/ts-dsl/type/tuple.ts
|
|
3842
3727
|
const Mixed$8 = TsDsl;
|
|
@@ -3860,7 +3745,6 @@ var TypeTupleTsDsl = class extends Mixed$8 {
|
|
|
3860
3745
|
return ts.factory.createTupleTypeNode(this._elements.map((t) => this.$type(t)));
|
|
3861
3746
|
}
|
|
3862
3747
|
};
|
|
3863
|
-
|
|
3864
3748
|
//#endregion
|
|
3865
3749
|
//#region src/ts-dsl/type/from-value.ts
|
|
3866
3750
|
const fromValue = (input) => {
|
|
@@ -3878,7 +3762,6 @@ const fromValue = (input) => {
|
|
|
3878
3762
|
}
|
|
3879
3763
|
throw new Error(`$.type.fromValue(): Unsupported input type ${String(input)}`);
|
|
3880
3764
|
};
|
|
3881
|
-
|
|
3882
3765
|
//#endregion
|
|
3883
3766
|
//#region src/ts-dsl/type/func.ts
|
|
3884
3767
|
const Mixed$7 = DocMixin(ParamMixin(TypeParamsMixin(TypeReturnsMixin(TsDsl))));
|
|
@@ -3908,7 +3791,6 @@ var TypeFuncTsDsl = class extends Mixed$7 {
|
|
|
3908
3791
|
return missing;
|
|
3909
3792
|
}
|
|
3910
3793
|
};
|
|
3911
|
-
|
|
3912
3794
|
//#endregion
|
|
3913
3795
|
//#region src/ts-dsl/type/idx.ts
|
|
3914
3796
|
const Mixed$6 = TypeExprMixin(TsDsl);
|
|
@@ -3956,7 +3838,6 @@ var TypeIdxTsDsl = class extends Mixed$6 {
|
|
|
3956
3838
|
}
|
|
3957
3839
|
};
|
|
3958
3840
|
f.type.idx.set((...args) => new TypeIdxTsDsl(...args));
|
|
3959
|
-
|
|
3960
3841
|
//#endregion
|
|
3961
3842
|
//#region src/ts-dsl/type/mapped.ts
|
|
3962
3843
|
const Mixed$5 = TsDsl;
|
|
@@ -4029,7 +3910,6 @@ var TypeMappedTsDsl = class extends Mixed$5 {
|
|
|
4029
3910
|
return missing;
|
|
4030
3911
|
}
|
|
4031
3912
|
};
|
|
4032
|
-
|
|
4033
3913
|
//#endregion
|
|
4034
3914
|
//#region src/ts-dsl/type/operator.ts
|
|
4035
3915
|
const Mixed$4 = TsDsl;
|
|
@@ -4100,7 +3980,6 @@ var TypeOperatorTsDsl = class extends Mixed$4 {
|
|
|
4100
3980
|
}
|
|
4101
3981
|
};
|
|
4102
3982
|
f.type.operator.set((...args) => new TypeOperatorTsDsl(...args));
|
|
4103
|
-
|
|
4104
3983
|
//#endregion
|
|
4105
3984
|
//#region src/ts-dsl/type/or.ts
|
|
4106
3985
|
const Mixed$3 = TsDsl;
|
|
@@ -4130,7 +4009,6 @@ var TypeOrTsDsl = class extends Mixed$3 {
|
|
|
4130
4009
|
return ts.factory.createUnionTypeNode(flat);
|
|
4131
4010
|
}
|
|
4132
4011
|
};
|
|
4133
|
-
|
|
4134
4012
|
//#endregion
|
|
4135
4013
|
//#region src/ts-dsl/type/query.ts
|
|
4136
4014
|
const Mixed$2 = TypeExprMixin(TsDsl);
|
|
@@ -4152,7 +4030,6 @@ var TypeQueryTsDsl = class extends Mixed$2 {
|
|
|
4152
4030
|
}
|
|
4153
4031
|
};
|
|
4154
4032
|
f.type.query.set((...args) => new TypeQueryTsDsl(...args));
|
|
4155
|
-
|
|
4156
4033
|
//#endregion
|
|
4157
4034
|
//#region src/ts-dsl/type/template.ts
|
|
4158
4035
|
const Mixed$1 = TsDsl;
|
|
@@ -4201,7 +4078,6 @@ var TypeTemplateTsDsl = class extends Mixed$1 {
|
|
|
4201
4078
|
return ts.factory.createTemplateLiteralType(head, spans);
|
|
4202
4079
|
}
|
|
4203
4080
|
};
|
|
4204
|
-
|
|
4205
4081
|
//#endregion
|
|
4206
4082
|
//#region src/ts-dsl/type/tuple-member.ts
|
|
4207
4083
|
const Mixed = OptionalMixin(TsDsl);
|
|
@@ -4242,7 +4118,6 @@ var TypeTupleMemberTsDsl = class extends Mixed {
|
|
|
4242
4118
|
}
|
|
4243
4119
|
};
|
|
4244
4120
|
f.type.tupleMember.set((name) => new TypeTupleMemberTsDsl(name));
|
|
4245
|
-
|
|
4246
4121
|
//#endregion
|
|
4247
4122
|
//#region src/ts-dsl/utils/lazy.ts
|
|
4248
4123
|
var LazyTsDsl = class extends TsDsl {
|
|
@@ -4263,7 +4138,6 @@ var LazyTsDsl = class extends TsDsl {
|
|
|
4263
4138
|
return this.toResult().toAst();
|
|
4264
4139
|
}
|
|
4265
4140
|
};
|
|
4266
|
-
|
|
4267
4141
|
//#endregion
|
|
4268
4142
|
//#region src/ts-dsl/utils/render-utils.ts
|
|
4269
4143
|
const printer = ts.createPrinter({
|
|
@@ -4316,7 +4190,6 @@ function moduleSortKey({ file, fromFile, preferFileExtension, root }) {
|
|
|
4316
4190
|
modulePath
|
|
4317
4191
|
];
|
|
4318
4192
|
}
|
|
4319
|
-
|
|
4320
4193
|
//#endregion
|
|
4321
4194
|
//#region src/ts-dsl/utils/render.ts
|
|
4322
4195
|
function headerToLines(header) {
|
|
@@ -4498,7 +4371,6 @@ var TypeScriptRenderer = class TypeScriptRenderer {
|
|
|
4498
4371
|
});
|
|
4499
4372
|
}
|
|
4500
4373
|
};
|
|
4501
|
-
|
|
4502
4374
|
//#endregion
|
|
4503
4375
|
//#region src/ts-dsl/index.ts
|
|
4504
4376
|
const tsDsl = {
|
|
@@ -4578,7 +4450,6 @@ const tsDsl = {
|
|
|
4578
4450
|
var: (...args) => new VarTsDsl(...args)
|
|
4579
4451
|
};
|
|
4580
4452
|
const $ = Object.assign((...args) => new ExprTsDsl(...args), tsDsl);
|
|
4581
|
-
|
|
4582
4453
|
//#endregion
|
|
4583
4454
|
//#region src/plugins/@hey-api/sdk/shared/class.ts
|
|
4584
4455
|
const createRegistryClass = ({ plugin, sdkSymbol, symbol }) => {
|
|
@@ -4592,13 +4463,11 @@ const createClientClass = ({ plugin, symbol }) => {
|
|
|
4592
4463
|
const symbolClient = plugin.external("client.Client");
|
|
4593
4464
|
return $.class(symbol).field("client", (f) => f.protected().type(symbolClient)).newline().init((i) => i.param("args", (p) => p.optional(optionalClient).type($.type.object().prop("client", (p) => p.optional(optionalClient).type(symbolClient)))).do($("this").attr("client").assign($("args").attr("client").optional(optionalClient).$if(optionalClient, (a) => a.coalesce(symClient)))));
|
|
4594
4465
|
};
|
|
4595
|
-
|
|
4596
4466
|
//#endregion
|
|
4597
4467
|
//#region src/plugins/@hey-api/sdk/shared/constants.ts
|
|
4598
4468
|
const nuxtTypeComposable = "TComposable";
|
|
4599
4469
|
const nuxtTypeDefault = "DefaultT";
|
|
4600
4470
|
const nuxtTypeResponse = "ResT";
|
|
4601
|
-
|
|
4602
4471
|
//#endregion
|
|
4603
4472
|
//#region src/plugins/@hey-api/sdk/shared/auth.ts
|
|
4604
4473
|
const securitySchemeObjectToAuthObject = ({ securitySchemeObject }) => {
|
|
@@ -4644,7 +4513,6 @@ const operationAuth = ({ operation, plugin }) => {
|
|
|
4644
4513
|
}
|
|
4645
4514
|
return auth;
|
|
4646
4515
|
};
|
|
4647
|
-
|
|
4648
4516
|
//#endregion
|
|
4649
4517
|
//#region src/plugins/@hey-api/sdk/shared/signature.ts
|
|
4650
4518
|
/**
|
|
@@ -4751,7 +4619,6 @@ function getSignatureParameters({ operation }) {
|
|
|
4751
4619
|
parameters: signatureParameters
|
|
4752
4620
|
};
|
|
4753
4621
|
}
|
|
4754
|
-
|
|
4755
4622
|
//#endregion
|
|
4756
4623
|
//#region src/plugins/@hey-api/sdk/shared/validator.ts
|
|
4757
4624
|
function createRequestValidator({ plugin, ...args }) {
|
|
@@ -4772,7 +4639,6 @@ function createResponseValidator({ operation, plugin }) {
|
|
|
4772
4639
|
plugin: validator
|
|
4773
4640
|
});
|
|
4774
4641
|
}
|
|
4775
|
-
|
|
4776
4642
|
//#endregion
|
|
4777
4643
|
//#region src/plugins/@hey-api/sdk/shared/operation.ts
|
|
4778
4644
|
/** TODO: needs complete refactor */
|
|
@@ -4999,7 +4865,6 @@ function operationStatements({ isRequiredOptions, opParameters, operation, plugi
|
|
|
4999
4865
|
statements.push($.return(functionName.call(reqOptions).$if(isNuxtClient, (f) => f.generic(nuxtTypeComposable).generic($.type.or(symbolResponseType ?? "unknown", nuxtTypeDefault)).generic(symbolErrorType ?? "unknown").generic(nuxtTypeDefault), (f) => f.generic(symbolResponseType ?? "unknown").generic(symbolErrorType ?? "unknown").generic("ThrowOnError")).$if(plugin.config.responseStyle === "data", (f) => f.generic($.type.literal(plugin.config.responseStyle)))));
|
|
5000
4866
|
return statements;
|
|
5001
4867
|
}
|
|
5002
|
-
|
|
5003
4868
|
//#endregion
|
|
5004
4869
|
//#region src/plugins/@hey-api/sdk/v1/node.ts
|
|
5005
4870
|
const source$2 = globalThis.Symbol("@hey-api/sdk");
|
|
@@ -5192,7 +5057,6 @@ function toNode$2(model, plugin) {
|
|
|
5192
5057
|
nodes
|
|
5193
5058
|
};
|
|
5194
5059
|
}
|
|
5195
|
-
|
|
5196
5060
|
//#endregion
|
|
5197
5061
|
//#region src/plugins/shared/utils/operation.ts
|
|
5198
5062
|
function createOperationComment(operation) {
|
|
@@ -5227,7 +5091,6 @@ function hasOperationSse({ operation }) {
|
|
|
5227
5091
|
for (const statusCode in operation.responses) if (operation.responses[statusCode].mediaType === "text/event-stream") return true;
|
|
5228
5092
|
return false;
|
|
5229
5093
|
}
|
|
5230
|
-
|
|
5231
5094
|
//#endregion
|
|
5232
5095
|
//#region src/plugins/@angular/common/shared/node.ts
|
|
5233
5096
|
const source$1 = globalThis.Symbol("@angular/common");
|
|
@@ -5469,7 +5332,6 @@ function toHttpResourceNode(model, plugin) {
|
|
|
5469
5332
|
nodes
|
|
5470
5333
|
};
|
|
5471
5334
|
}
|
|
5472
|
-
|
|
5473
5335
|
//#endregion
|
|
5474
5336
|
//#region src/plugins/@angular/common/plugin.ts
|
|
5475
5337
|
const handler$13 = ({ plugin }) => {
|
|
@@ -5527,7 +5389,6 @@ const handler$13 = ({ plugin }) => {
|
|
|
5527
5389
|
for (const dep of uniqueDependencies.values()) plugin.node(dep);
|
|
5528
5390
|
for (const node of allNodes) plugin.node(node);
|
|
5529
5391
|
};
|
|
5530
|
-
|
|
5531
5392
|
//#endregion
|
|
5532
5393
|
//#region src/plugins/@angular/common/config.ts
|
|
5533
5394
|
const defaultConfig$26 = {
|
|
@@ -5543,18 +5404,13 @@ const defaultConfig$26 = {
|
|
|
5543
5404
|
plugin.config.httpResources = resolveHttpResources(plugin.config, context);
|
|
5544
5405
|
}
|
|
5545
5406
|
};
|
|
5546
|
-
|
|
5547
|
-
* Type helper for `@angular/common` plugin, returns {@link Plugin.Config} object
|
|
5548
|
-
*/
|
|
5549
|
-
const defineConfig$26 = definePluginConfig(defaultConfig$26);
|
|
5550
|
-
|
|
5407
|
+
definePluginConfig(defaultConfig$26);
|
|
5551
5408
|
//#endregion
|
|
5552
5409
|
//#region src/plugins/@faker-js/faker/api.ts
|
|
5553
5410
|
var Api$4 = class {
|
|
5554
5411
|
toNode(_schema) {}
|
|
5555
5412
|
toNodeRef(_schema) {}
|
|
5556
5413
|
};
|
|
5557
|
-
|
|
5558
5414
|
//#endregion
|
|
5559
5415
|
//#region src/plugins/@faker-js/faker/config.ts
|
|
5560
5416
|
const defaultConfig$25 = {
|
|
@@ -5578,11 +5434,7 @@ const defaultConfig$25 = {
|
|
|
5578
5434
|
},
|
|
5579
5435
|
tags: ["mocker"]
|
|
5580
5436
|
};
|
|
5581
|
-
|
|
5582
|
-
* Type helper for Faker plugin, returns {@link Plugin.Config} object
|
|
5583
|
-
*/
|
|
5584
|
-
const defineConfig$25 = definePluginConfig(defaultConfig$25);
|
|
5585
|
-
|
|
5437
|
+
definePluginConfig(defaultConfig$25);
|
|
5586
5438
|
//#endregion
|
|
5587
5439
|
//#region src/plugins/@hey-api/client-core/config.ts
|
|
5588
5440
|
const clientDefaultConfig = {
|
|
@@ -5594,7 +5446,6 @@ const clientDefaultMeta = {
|
|
|
5594
5446
|
dependencies: ["@hey-api/typescript"],
|
|
5595
5447
|
tags: ["client"]
|
|
5596
5448
|
};
|
|
5597
|
-
|
|
5598
5449
|
//#endregion
|
|
5599
5450
|
//#region src/generate/client.ts
|
|
5600
5451
|
const __filename = fileURLToPath(import.meta.url);
|
|
@@ -5735,7 +5586,6 @@ function generateClientBundle({ header, module, outputPath, plugin, project }) {
|
|
|
5735
5586
|
ensureDirSync(dirPath);
|
|
5736
5587
|
for (const file of distFiles) fs.copyFileSync(path.resolve(clientDistPath, file), path.resolve(dirPath, file));
|
|
5737
5588
|
}
|
|
5738
|
-
|
|
5739
5589
|
//#endregion
|
|
5740
5590
|
//#region src/plugins/@hey-api/client-core/client.ts
|
|
5741
5591
|
const resolveBaseUrlString = ({ plugin }) => {
|
|
@@ -5773,7 +5623,6 @@ const createClient = ({ plugin }) => {
|
|
|
5773
5623
|
const statement = $.const(symbolClient).export().assign($(symbolCreateClient).$if(symbolCreateClientConfig, (c, s) => c.call($(s).call(...createConfigParameters)), (c) => c.call(...createConfigParameters)));
|
|
5774
5624
|
plugin.node(statement);
|
|
5775
5625
|
};
|
|
5776
|
-
|
|
5777
5626
|
//#endregion
|
|
5778
5627
|
//#region src/plugins/@hey-api/client-core/createClientConfig.ts
|
|
5779
5628
|
const createClientConfigType = ({ plugin }) => {
|
|
@@ -5802,14 +5651,12 @@ const createClientConfigType = ({ plugin }) => {
|
|
|
5802
5651
|
]).generic("T", (g) => g.extends(symbolDefaultClientOptions).default(symbolClientOptions)).type($.type.func().param("override", (p) => p.optional().type($.type(symbolConfig).generic($.type.and(symbolDefaultClientOptions, "T")))).returns($.type(symbolConfig).generic($.type.and($.type("Required").generic(symbolDefaultClientOptions), "T"))));
|
|
5803
5652
|
plugin.node(typeCreateClientConfig);
|
|
5804
5653
|
};
|
|
5805
|
-
|
|
5806
5654
|
//#endregion
|
|
5807
5655
|
//#region src/plugins/@hey-api/client-core/plugin.ts
|
|
5808
5656
|
const clientPluginHandler = ({ plugin }) => {
|
|
5809
5657
|
createClientConfigType({ plugin });
|
|
5810
5658
|
createClient({ plugin });
|
|
5811
5659
|
};
|
|
5812
|
-
|
|
5813
5660
|
//#endregion
|
|
5814
5661
|
//#region src/plugins/@hey-api/client-angular/config.ts
|
|
5815
5662
|
const defaultConfig$24 = {
|
|
@@ -5821,11 +5668,7 @@ const defaultConfig$24 = {
|
|
|
5821
5668
|
handler: clientPluginHandler,
|
|
5822
5669
|
name: "@hey-api/client-angular"
|
|
5823
5670
|
};
|
|
5824
|
-
|
|
5825
|
-
* Type helper for `@hey-api/client-angular` plugin, returns {@link Plugin.Config} object
|
|
5826
|
-
*/
|
|
5827
|
-
const defineConfig$24 = definePluginConfig(defaultConfig$24);
|
|
5828
|
-
|
|
5671
|
+
definePluginConfig(defaultConfig$24);
|
|
5829
5672
|
//#endregion
|
|
5830
5673
|
//#region src/plugins/@hey-api/client-axios/config.ts
|
|
5831
5674
|
const defaultConfig$23 = {
|
|
@@ -5837,11 +5680,7 @@ const defaultConfig$23 = {
|
|
|
5837
5680
|
handler: clientPluginHandler,
|
|
5838
5681
|
name: "@hey-api/client-axios"
|
|
5839
5682
|
};
|
|
5840
|
-
|
|
5841
|
-
* Type helper for `@hey-api/client-axios` plugin, returns {@link Plugin.Config} object
|
|
5842
|
-
*/
|
|
5843
|
-
const defineConfig$23 = definePluginConfig(defaultConfig$23);
|
|
5844
|
-
|
|
5683
|
+
definePluginConfig(defaultConfig$23);
|
|
5845
5684
|
//#endregion
|
|
5846
5685
|
//#region src/plugins/@hey-api/client-fetch/config.ts
|
|
5847
5686
|
const defaultConfig$22 = {
|
|
@@ -5853,11 +5692,7 @@ const defaultConfig$22 = {
|
|
|
5853
5692
|
handler: clientPluginHandler,
|
|
5854
5693
|
name: "@hey-api/client-fetch"
|
|
5855
5694
|
};
|
|
5856
|
-
|
|
5857
|
-
* Type helper for `@hey-api/client-fetch` plugin, returns {@link Plugin.Config} object
|
|
5858
|
-
*/
|
|
5859
|
-
const defineConfig$22 = definePluginConfig(defaultConfig$22);
|
|
5860
|
-
|
|
5695
|
+
definePluginConfig(defaultConfig$22);
|
|
5861
5696
|
//#endregion
|
|
5862
5697
|
//#region src/plugins/@hey-api/client-ky/config.ts
|
|
5863
5698
|
const defaultConfig$21 = {
|
|
@@ -5869,11 +5704,7 @@ const defaultConfig$21 = {
|
|
|
5869
5704
|
handler: clientPluginHandler,
|
|
5870
5705
|
name: "@hey-api/client-ky"
|
|
5871
5706
|
};
|
|
5872
|
-
|
|
5873
|
-
* Type helper for `@hey-api/client-ky` plugin, returns {@link Plugin.Config} object
|
|
5874
|
-
*/
|
|
5875
|
-
const defineConfig$21 = definePluginConfig(defaultConfig$21);
|
|
5876
|
-
|
|
5707
|
+
definePluginConfig(defaultConfig$21);
|
|
5877
5708
|
//#endregion
|
|
5878
5709
|
//#region src/plugins/@hey-api/client-next/config.ts
|
|
5879
5710
|
const defaultConfig$20 = {
|
|
@@ -5885,11 +5716,7 @@ const defaultConfig$20 = {
|
|
|
5885
5716
|
handler: clientPluginHandler,
|
|
5886
5717
|
name: "@hey-api/client-next"
|
|
5887
5718
|
};
|
|
5888
|
-
|
|
5889
|
-
* Type helper for `@hey-api/client-next` plugin, returns {@link Plugin.Config} object
|
|
5890
|
-
*/
|
|
5891
|
-
const defineConfig$20 = definePluginConfig(defaultConfig$20);
|
|
5892
|
-
|
|
5719
|
+
definePluginConfig(defaultConfig$20);
|
|
5893
5720
|
//#endregion
|
|
5894
5721
|
//#region src/plugins/@hey-api/client-nuxt/config.ts
|
|
5895
5722
|
const defaultConfig$19 = {
|
|
@@ -5898,11 +5725,7 @@ const defaultConfig$19 = {
|
|
|
5898
5725
|
handler: clientPluginHandler,
|
|
5899
5726
|
name: "@hey-api/client-nuxt"
|
|
5900
5727
|
};
|
|
5901
|
-
|
|
5902
|
-
* Type helper for `@hey-api/client-nuxt` plugin, returns {@link Plugin.Config} object
|
|
5903
|
-
*/
|
|
5904
|
-
const defineConfig$19 = definePluginConfig(defaultConfig$19);
|
|
5905
|
-
|
|
5728
|
+
definePluginConfig(defaultConfig$19);
|
|
5906
5729
|
//#endregion
|
|
5907
5730
|
//#region src/plugins/@hey-api/client-ofetch/config.ts
|
|
5908
5731
|
const defaultConfig$18 = {
|
|
@@ -5914,11 +5737,7 @@ const defaultConfig$18 = {
|
|
|
5914
5737
|
handler: clientPluginHandler,
|
|
5915
5738
|
name: "@hey-api/client-ofetch"
|
|
5916
5739
|
};
|
|
5917
|
-
|
|
5918
|
-
* Type helper for `@hey-api/client-ofetch` plugin, returns {@link Plugin.Config} object
|
|
5919
|
-
*/
|
|
5920
|
-
const defineConfig$18 = definePluginConfig(defaultConfig$18);
|
|
5921
|
-
|
|
5740
|
+
definePluginConfig(defaultConfig$18);
|
|
5922
5741
|
//#endregion
|
|
5923
5742
|
//#region src/plugins/@hey-api/schemas/plugin.ts
|
|
5924
5743
|
const stripSchema = ({ plugin, schema }) => {
|
|
@@ -6172,7 +5991,6 @@ const handler$12 = ({ plugin }) => {
|
|
|
6172
5991
|
}
|
|
6173
5992
|
throw new Error("Unsupported OpenAPI specification");
|
|
6174
5993
|
};
|
|
6175
|
-
|
|
6176
5994
|
//#endregion
|
|
6177
5995
|
//#region src/plugins/@hey-api/schemas/config.ts
|
|
6178
5996
|
const defaultConfig$17 = {
|
|
@@ -6184,11 +6002,7 @@ const defaultConfig$17 = {
|
|
|
6184
6002
|
handler: handler$12,
|
|
6185
6003
|
name: "@hey-api/schemas"
|
|
6186
6004
|
};
|
|
6187
|
-
|
|
6188
|
-
* Type helper for `@hey-api/schemas` plugin, returns {@link Plugin.Config} object
|
|
6189
|
-
*/
|
|
6190
|
-
const defineConfig$17 = definePluginConfig(defaultConfig$17);
|
|
6191
|
-
|
|
6005
|
+
definePluginConfig(defaultConfig$17);
|
|
6192
6006
|
//#endregion
|
|
6193
6007
|
//#region src/plugins/@hey-api/sdk/examples/config.ts
|
|
6194
6008
|
function resolveExamples(config, context) {
|
|
@@ -6201,7 +6015,6 @@ function resolveExamples(config, context) {
|
|
|
6201
6015
|
value: config.examples
|
|
6202
6016
|
});
|
|
6203
6017
|
}
|
|
6204
|
-
|
|
6205
6018
|
//#endregion
|
|
6206
6019
|
//#region src/plugins/@hey-api/sdk/operations/config.ts
|
|
6207
6020
|
function resolveOperations(config, context) {
|
|
@@ -6336,7 +6149,6 @@ function mapLegacyToConfig(config) {
|
|
|
6336
6149
|
strategy
|
|
6337
6150
|
};
|
|
6338
6151
|
}
|
|
6339
|
-
|
|
6340
6152
|
//#endregion
|
|
6341
6153
|
//#region src/plugins/@hey-api/sdk/operations/resolve.ts
|
|
6342
6154
|
function resolvePath$1(plugin) {
|
|
@@ -6362,7 +6174,6 @@ function resolveStrategy$1(plugin) {
|
|
|
6362
6174
|
});
|
|
6363
6175
|
return plugin.config.operations.strategy;
|
|
6364
6176
|
}
|
|
6365
|
-
|
|
6366
6177
|
//#endregion
|
|
6367
6178
|
//#region src/plugins/@hey-api/sdk/shared/typeOptions.ts
|
|
6368
6179
|
const createTypeOptions = ({ plugin }) => {
|
|
@@ -6397,7 +6208,6 @@ const createTypeOptions = ({ plugin }) => {
|
|
|
6397
6208
|
]).required(!plugin.config.client && !isInstance(plugin)).type(symbolClient)).prop("meta", (p) => p.doc(["You can pass arbitrary values through the `meta` object. This can be", "used to access values that aren't defined as part of the SDK function."]).optional().type($.type("Record").generics("string", "unknown")))));
|
|
6398
6209
|
plugin.node(typeOptions);
|
|
6399
6210
|
};
|
|
6400
|
-
|
|
6401
6211
|
//#endregion
|
|
6402
6212
|
//#region src/plugins/@hey-api/sdk/v1/plugin.ts
|
|
6403
6213
|
const handlerV1$3 = ({ plugin }) => {
|
|
@@ -6465,11 +6275,9 @@ const handlerV1$3 = ({ plugin }) => {
|
|
|
6465
6275
|
for (const dep of uniqueDependencies.values()) plugin.node(dep);
|
|
6466
6276
|
for (const node of allNodes) plugin.node(node);
|
|
6467
6277
|
};
|
|
6468
|
-
|
|
6469
6278
|
//#endregion
|
|
6470
6279
|
//#region src/plugins/@hey-api/sdk/plugin.ts
|
|
6471
6280
|
const handler$11 = (args) => handlerV1$3(args);
|
|
6472
|
-
|
|
6473
6281
|
//#endregion
|
|
6474
6282
|
//#region src/plugins/@hey-api/sdk/config.ts
|
|
6475
6283
|
const transformerInferWarn = "You set `transformer: true` but no transformer plugin was found in your plugins. Add a transformer plugin like `@hey-api/transformers` to enable this feature. The transformer option has been disabled.";
|
|
@@ -6529,27 +6337,22 @@ const defaultConfig$16 = {
|
|
|
6529
6337
|
plugin.config.operations = resolveOperations(plugin.config, context);
|
|
6530
6338
|
}
|
|
6531
6339
|
};
|
|
6532
|
-
|
|
6533
|
-
* Type helper for `@hey-api/sdk` plugin, returns {@link Plugin.Config} object
|
|
6534
|
-
*/
|
|
6535
|
-
const defineConfig$16 = definePluginConfig(defaultConfig$16);
|
|
6536
|
-
|
|
6340
|
+
definePluginConfig(defaultConfig$16);
|
|
6537
6341
|
//#endregion
|
|
6538
6342
|
//#region src/plugins/@hey-api/transformers/expressions.ts
|
|
6539
6343
|
const bigIntExpressions = ({ dataExpression, schema }) => {
|
|
6540
6344
|
if (schema.type !== "integer" || schema.format !== "int64") return;
|
|
6541
6345
|
const bigIntCallExpression = dataExpression !== void 0 ? $("BigInt").call($(dataExpression).attr("toString").call()) : void 0;
|
|
6542
6346
|
if (bigIntCallExpression) {
|
|
6543
|
-
if (typeof dataExpression === "string") return [bigIntCallExpression];
|
|
6347
|
+
if (typeof dataExpression === "string") return [$.return(bigIntCallExpression)];
|
|
6544
6348
|
if (dataExpression) return [$(dataExpression).assign(bigIntCallExpression)];
|
|
6545
6349
|
}
|
|
6546
6350
|
};
|
|
6547
6351
|
const dateExpressions = ({ dataExpression, schema }) => {
|
|
6548
6352
|
if (schema.type !== "string" || !(schema.format === "date" || schema.format === "date-time")) return;
|
|
6549
|
-
if (typeof dataExpression === "string") return [$.new("Date").arg(dataExpression)];
|
|
6353
|
+
if (typeof dataExpression === "string") return [$.return($.new("Date").arg(dataExpression))];
|
|
6550
6354
|
if (dataExpression) return [$(dataExpression).assign($.new("Date").arg(dataExpression))];
|
|
6551
6355
|
};
|
|
6552
|
-
|
|
6553
6356
|
//#endregion
|
|
6554
6357
|
//#region src/plugins/@hey-api/transformers/plugin.ts
|
|
6555
6358
|
const dataVariableName = "data";
|
|
@@ -6737,7 +6540,6 @@ const handler$10 = ({ plugin }) => {
|
|
|
6737
6540
|
plugin.node(value);
|
|
6738
6541
|
}, { order: "declarations" });
|
|
6739
6542
|
};
|
|
6740
|
-
|
|
6741
6543
|
//#endregion
|
|
6742
6544
|
//#region src/plugins/@hey-api/transformers/config.ts
|
|
6743
6545
|
const defaultConfig$15 = {
|
|
@@ -6758,11 +6560,7 @@ const defaultConfig$15 = {
|
|
|
6758
6560
|
},
|
|
6759
6561
|
tags: ["transformer"]
|
|
6760
6562
|
};
|
|
6761
|
-
|
|
6762
|
-
* Type helper for `@hey-api/transformers`, returns {@link Plugin.Config} object
|
|
6763
|
-
*/
|
|
6764
|
-
const defineConfig$15 = definePluginConfig(defaultConfig$15);
|
|
6765
|
-
|
|
6563
|
+
definePluginConfig(defaultConfig$15);
|
|
6766
6564
|
//#endregion
|
|
6767
6565
|
//#region src/plugins/shared/utils/schema.ts
|
|
6768
6566
|
const createSchemaComment = (schema) => {
|
|
@@ -6778,7 +6576,6 @@ const createSchemaComment = (schema) => {
|
|
|
6778
6576
|
}
|
|
6779
6577
|
return comments.length ? comments : void 0;
|
|
6780
6578
|
};
|
|
6781
|
-
|
|
6782
6579
|
//#endregion
|
|
6783
6580
|
//#region src/plugins/@hey-api/typescript/shared/export.ts
|
|
6784
6581
|
function resolveEnumKey({ baseName, duplicateAttempt, plugin }) {
|
|
@@ -6905,7 +6702,6 @@ function exportAst$3({ final, meta, naming, namingAnchor, path, plugin, schema,
|
|
|
6905
6702
|
const node = $.type.alias(symbol).export().$if(plugin.config.comments && createSchemaComment(schema), (t, v) => t.doc(v)).type(final.type);
|
|
6906
6703
|
plugin.node(node);
|
|
6907
6704
|
}
|
|
6908
|
-
|
|
6909
6705
|
//#endregion
|
|
6910
6706
|
//#region src/plugins/@hey-api/typescript/shared/meta.ts
|
|
6911
6707
|
/**
|
|
@@ -6941,7 +6737,6 @@ function inheritMeta$2(parent, children) {
|
|
|
6941
6737
|
readonly: parent.accessScope === "read"
|
|
6942
6738
|
});
|
|
6943
6739
|
}
|
|
6944
|
-
|
|
6945
6740
|
//#endregion
|
|
6946
6741
|
//#region src/plugins/@hey-api/typescript/v1/toAst/array.ts
|
|
6947
6742
|
function baseNode$63(ctx) {
|
|
@@ -6974,7 +6769,6 @@ function arrayToAst$3({ plugin, schema, walk, walkerCtx }) {
|
|
|
6974
6769
|
const resolver = plugin.config["~resolvers"]?.array;
|
|
6975
6770
|
return resolver?.(ctx) ?? arrayResolver$4(ctx);
|
|
6976
6771
|
}
|
|
6977
|
-
|
|
6978
6772
|
//#endregion
|
|
6979
6773
|
//#region src/plugins/@hey-api/typescript/v1/toAst/boolean.ts
|
|
6980
6774
|
function baseNode$62() {
|
|
@@ -7002,7 +6796,6 @@ function booleanToAst$3({ plugin, schema }) {
|
|
|
7002
6796
|
const resolver = plugin.config["~resolvers"]?.boolean;
|
|
7003
6797
|
return resolver?.(ctx) ?? booleanResolver$4(ctx);
|
|
7004
6798
|
}
|
|
7005
|
-
|
|
7006
6799
|
//#endregion
|
|
7007
6800
|
//#region src/plugins/@hey-api/typescript/v1/toAst/enum.ts
|
|
7008
6801
|
function buildEnumData(plugin, schema) {
|
|
@@ -7066,7 +6859,6 @@ function enumToAst$3({ plugin, schema }) {
|
|
|
7066
6859
|
type: resolver?.(ctx) ?? enumResolver$4(ctx)
|
|
7067
6860
|
};
|
|
7068
6861
|
}
|
|
7069
|
-
|
|
7070
6862
|
//#endregion
|
|
7071
6863
|
//#region src/plugins/@hey-api/typescript/v1/toAst/intersection.ts
|
|
7072
6864
|
function baseNode$60(ctx) {
|
|
@@ -7089,7 +6881,6 @@ function intersectionToAst({ childResults, parentSchema, plugin, schemas }) {
|
|
|
7089
6881
|
const resolver = plugin.config["~resolvers"]?.intersection;
|
|
7090
6882
|
return resolver?.(ctx) ?? intersectionResolver$1(ctx);
|
|
7091
6883
|
}
|
|
7092
|
-
|
|
7093
6884
|
//#endregion
|
|
7094
6885
|
//#region src/plugins/@hey-api/typescript/v1/toAst/never.ts
|
|
7095
6886
|
function baseNode$59() {
|
|
@@ -7108,7 +6899,6 @@ function neverToAst$3({ plugin, schema }) {
|
|
|
7108
6899
|
const resolver = plugin.config["~resolvers"]?.never;
|
|
7109
6900
|
return resolver?.(ctx) ?? neverResolver$4(ctx);
|
|
7110
6901
|
}
|
|
7111
|
-
|
|
7112
6902
|
//#endregion
|
|
7113
6903
|
//#region src/plugins/@hey-api/typescript/v1/toAst/null.ts
|
|
7114
6904
|
function baseNode$58() {
|
|
@@ -7127,7 +6917,6 @@ function nullToAst$4({ plugin, schema }) {
|
|
|
7127
6917
|
const resolver = plugin.config["~resolvers"]?.null;
|
|
7128
6918
|
return resolver?.(ctx) ?? nullResolver$4(ctx);
|
|
7129
6919
|
}
|
|
7130
|
-
|
|
7131
6920
|
//#endregion
|
|
7132
6921
|
//#region src/plugins/@hey-api/typescript/v1/toAst/number.ts
|
|
7133
6922
|
function constNode$18(ctx) {
|
|
@@ -7159,7 +6948,6 @@ function numberToAst({ plugin, schema }) {
|
|
|
7159
6948
|
const resolver = plugin.config["~resolvers"]?.number;
|
|
7160
6949
|
return resolver?.(ctx) ?? numberResolver$4(ctx);
|
|
7161
6950
|
}
|
|
7162
|
-
|
|
7163
6951
|
//#endregion
|
|
7164
6952
|
//#region src/plugins/@hey-api/typescript/v1/toAst/object.ts
|
|
7165
6953
|
function shapeNode$4(ctx) {
|
|
@@ -7240,7 +7028,6 @@ function objectToAst$4({ plugin, schema, walk, walkerCtx }) {
|
|
|
7240
7028
|
const resolver = plugin.config["~resolvers"]?.object;
|
|
7241
7029
|
return resolver?.(ctx) ?? objectResolver$4(ctx);
|
|
7242
7030
|
}
|
|
7243
|
-
|
|
7244
7031
|
//#endregion
|
|
7245
7032
|
//#region src/plugins/@hey-api/typescript/v1/toAst/string.ts
|
|
7246
7033
|
function constNode$17(ctx) {
|
|
@@ -7311,7 +7098,6 @@ function stringToAst$1({ plugin, schema }) {
|
|
|
7311
7098
|
const resolver = plugin.config["~resolvers"]?.string;
|
|
7312
7099
|
return resolver?.(ctx) ?? stringResolver$4(ctx);
|
|
7313
7100
|
}
|
|
7314
|
-
|
|
7315
7101
|
//#endregion
|
|
7316
7102
|
//#region src/plugins/@hey-api/typescript/v1/toAst/tuple.ts
|
|
7317
7103
|
function baseNode$54(ctx) {
|
|
@@ -7352,7 +7138,6 @@ function tupleToAst$3({ plugin, schema, walk, walkerCtx }) {
|
|
|
7352
7138
|
const resolver = plugin.config["~resolvers"]?.tuple;
|
|
7353
7139
|
return resolver?.(ctx) ?? tupleResolver$4(ctx);
|
|
7354
7140
|
}
|
|
7355
|
-
|
|
7356
7141
|
//#endregion
|
|
7357
7142
|
//#region src/plugins/@hey-api/typescript/v1/toAst/undefined.ts
|
|
7358
7143
|
function baseNode$53() {
|
|
@@ -7371,7 +7156,6 @@ function undefinedToAst$3({ plugin, schema }) {
|
|
|
7371
7156
|
const resolver = plugin.config["~resolvers"]?.undefined;
|
|
7372
7157
|
return resolver?.(ctx) ?? undefinedResolver$4(ctx);
|
|
7373
7158
|
}
|
|
7374
|
-
|
|
7375
7159
|
//#endregion
|
|
7376
7160
|
//#region src/plugins/@hey-api/typescript/v1/toAst/union.ts
|
|
7377
7161
|
function baseNode$52(ctx) {
|
|
@@ -7394,7 +7178,6 @@ function unionToAst({ childResults, parentSchema, plugin, schemas }) {
|
|
|
7394
7178
|
const resolver = plugin.config["~resolvers"]?.union;
|
|
7395
7179
|
return resolver?.(ctx) ?? unionResolver$1(ctx);
|
|
7396
7180
|
}
|
|
7397
|
-
|
|
7398
7181
|
//#endregion
|
|
7399
7182
|
//#region src/plugins/@hey-api/typescript/v1/toAst/unknown.ts
|
|
7400
7183
|
function baseNode$51(ctx) {
|
|
@@ -7413,7 +7196,6 @@ function unknownToAst$3({ plugin, schema }) {
|
|
|
7413
7196
|
const resolver = plugin.config["~resolvers"]?.unknown;
|
|
7414
7197
|
return resolver?.(ctx) ?? unknownResolver$4(ctx);
|
|
7415
7198
|
}
|
|
7416
|
-
|
|
7417
7199
|
//#endregion
|
|
7418
7200
|
//#region src/plugins/@hey-api/typescript/v1/toAst/void.ts
|
|
7419
7201
|
function baseNode$50() {
|
|
@@ -7432,7 +7214,6 @@ function voidToAst$3({ plugin, schema }) {
|
|
|
7432
7214
|
const resolver = plugin.config["~resolvers"]?.void;
|
|
7433
7215
|
return resolver?.(ctx) ?? voidResolver$4(ctx);
|
|
7434
7216
|
}
|
|
7435
|
-
|
|
7436
7217
|
//#endregion
|
|
7437
7218
|
//#region src/plugins/@hey-api/typescript/v1/walker.ts
|
|
7438
7219
|
function createVisitor$4(config = {}) {
|
|
@@ -7655,7 +7436,6 @@ function createVisitor$4(config = {}) {
|
|
|
7655
7436
|
}
|
|
7656
7437
|
};
|
|
7657
7438
|
}
|
|
7658
|
-
|
|
7659
7439
|
//#endregion
|
|
7660
7440
|
//#region src/plugins/@hey-api/typescript/v1/processor.ts
|
|
7661
7441
|
function createProcessor$4(plugin) {
|
|
@@ -7702,7 +7482,6 @@ function createProcessor$4(plugin) {
|
|
|
7702
7482
|
}
|
|
7703
7483
|
return { process };
|
|
7704
7484
|
}
|
|
7705
|
-
|
|
7706
7485
|
//#endregion
|
|
7707
7486
|
//#region src/plugins/@hey-api/typescript/api.ts
|
|
7708
7487
|
var Api$3 = class {
|
|
@@ -7722,7 +7501,6 @@ var Api$3 = class {
|
|
|
7722
7501
|
return result.type;
|
|
7723
7502
|
}
|
|
7724
7503
|
};
|
|
7725
|
-
|
|
7726
7504
|
//#endregion
|
|
7727
7505
|
//#region src/plugins/@hey-api/typescript/shared/clientOptions.ts
|
|
7728
7506
|
const serverToBaseUrlType = ({ server }) => {
|
|
@@ -7749,7 +7527,6 @@ const createClientOptions = ({ nodeIndex, plugin, servers }) => {
|
|
|
7749
7527
|
const node = $.type.alias(symbol).export().type($.type.object().prop(getClientBaseUrlKey(getTypedConfig(plugin)), (p) => p.type($.type.or(...types))));
|
|
7750
7528
|
plugin.node(node, nodeIndex);
|
|
7751
7529
|
};
|
|
7752
|
-
|
|
7753
7530
|
//#endregion
|
|
7754
7531
|
//#region src/plugins/@hey-api/typescript/shared/operation.ts
|
|
7755
7532
|
const irParametersToIrSchema = ({ parameters }) => {
|
|
@@ -7938,7 +7715,6 @@ const operationToType = ({ operation, path, plugin, tags }) => {
|
|
|
7938
7715
|
}
|
|
7939
7716
|
}
|
|
7940
7717
|
};
|
|
7941
|
-
|
|
7942
7718
|
//#endregion
|
|
7943
7719
|
//#region src/plugins/@hey-api/typescript/shared/webhook.ts
|
|
7944
7720
|
function webhookToType({ operation, path, plugin, tags }) {
|
|
@@ -8001,7 +7777,6 @@ function webhookToType({ operation, path, plugin, tags }) {
|
|
|
8001
7777
|
plugin.node(node);
|
|
8002
7778
|
return symbol;
|
|
8003
7779
|
}
|
|
8004
|
-
|
|
8005
7780
|
//#endregion
|
|
8006
7781
|
//#region src/plugins/@hey-api/typescript/v1/plugin.ts
|
|
8007
7782
|
const handlerV1$2 = ({ plugin }) => {
|
|
@@ -8093,11 +7868,9 @@ const handlerV1$2 = ({ plugin }) => {
|
|
|
8093
7868
|
plugin.node(node, nodeWebhooksIndex);
|
|
8094
7869
|
}
|
|
8095
7870
|
};
|
|
8096
|
-
|
|
8097
7871
|
//#endregion
|
|
8098
7872
|
//#region src/plugins/@hey-api/typescript/plugin.ts
|
|
8099
7873
|
const handler$9 = (args) => handlerV1$2(args);
|
|
8100
|
-
|
|
8101
7874
|
//#endregion
|
|
8102
7875
|
//#region src/plugins/@hey-api/typescript/config.ts
|
|
8103
7876
|
const defaultConfig$14 = {
|
|
@@ -8184,11 +7957,7 @@ const defaultConfig$14 = {
|
|
|
8184
7957
|
});
|
|
8185
7958
|
}
|
|
8186
7959
|
};
|
|
8187
|
-
|
|
8188
|
-
* Type helper for `@hey-api/typescript` plugin, returns {@link Plugin.Config} object
|
|
8189
|
-
*/
|
|
8190
|
-
const defineConfig$14 = definePluginConfig(defaultConfig$14);
|
|
8191
|
-
|
|
7960
|
+
definePluginConfig(defaultConfig$14);
|
|
8192
7961
|
//#endregion
|
|
8193
7962
|
//#region src/plugins/@pinia/colada/meta.ts
|
|
8194
7963
|
const handleMeta$1 = (plugin, operation, configPath) => {
|
|
@@ -8198,7 +7967,6 @@ const handleMeta$1 = (plugin, operation, configPath) => {
|
|
|
8198
7967
|
if (!Object.keys(metaObject).length) return;
|
|
8199
7968
|
return $.fromValue(metaObject);
|
|
8200
7969
|
};
|
|
8201
|
-
|
|
8202
7970
|
//#endregion
|
|
8203
7971
|
//#region src/plugins/@pinia/colada/useType.ts
|
|
8204
7972
|
const useTypeData$1 = ({ operation, plugin }) => {
|
|
@@ -8230,7 +7998,6 @@ const useTypeResponse$1 = ({ operation, plugin }) => {
|
|
|
8230
7998
|
});
|
|
8231
7999
|
return $.type(symbolResponseType ?? "unknown");
|
|
8232
8000
|
};
|
|
8233
|
-
|
|
8234
8001
|
//#endregion
|
|
8235
8002
|
//#region src/plugins/@pinia/colada/utils.ts
|
|
8236
8003
|
const getPublicTypeData = ({ isNuxtClient, operation, plugin }) => {
|
|
@@ -8240,7 +8007,6 @@ const getPublicTypeData = ({ isNuxtClient, operation, plugin }) => {
|
|
|
8240
8007
|
});
|
|
8241
8008
|
return isNuxtClient ? $.type("Omit").generic(typeData).generic("composable") : typeData;
|
|
8242
8009
|
};
|
|
8243
|
-
|
|
8244
8010
|
//#endregion
|
|
8245
8011
|
//#region src/plugins/@pinia/colada/mutationOptions.ts
|
|
8246
8012
|
const createMutationOptions$1 = ({ operation, plugin }) => {
|
|
@@ -8272,7 +8038,6 @@ const createMutationOptions$1 = ({ operation, plugin }) => {
|
|
|
8272
8038
|
}))).do($.return(mutationOpts)));
|
|
8273
8039
|
plugin.node(statement);
|
|
8274
8040
|
};
|
|
8275
|
-
|
|
8276
8041
|
//#endregion
|
|
8277
8042
|
//#region src/plugins/@pinia/colada/queryKey.ts
|
|
8278
8043
|
const TOptionsType$1 = "TOptions";
|
|
@@ -8338,7 +8103,6 @@ const queryKeyStatement$1 = ({ operation, plugin, symbol }) => {
|
|
|
8338
8103
|
plugin
|
|
8339
8104
|
}).return()));
|
|
8340
8105
|
};
|
|
8341
|
-
|
|
8342
8106
|
//#endregion
|
|
8343
8107
|
//#region src/plugins/@pinia/colada/queryOptions.ts
|
|
8344
8108
|
const optionsParamName$2 = "options";
|
|
@@ -8408,7 +8172,6 @@ const createQueryOptions$1 = ({ operation, plugin }) => {
|
|
|
8408
8172
|
})));
|
|
8409
8173
|
plugin.node(statement);
|
|
8410
8174
|
};
|
|
8411
|
-
|
|
8412
8175
|
//#endregion
|
|
8413
8176
|
//#region src/plugins/@pinia/colada/v0/plugin.ts
|
|
8414
8177
|
const handlerV0 = ({ plugin }) => {
|
|
@@ -8444,11 +8207,9 @@ const handlerV0 = ({ plugin }) => {
|
|
|
8444
8207
|
}
|
|
8445
8208
|
}, { order: "declarations" });
|
|
8446
8209
|
};
|
|
8447
|
-
|
|
8448
8210
|
//#endregion
|
|
8449
8211
|
//#region src/plugins/@pinia/colada/plugin.ts
|
|
8450
8212
|
const handler$8 = (args) => handlerV0(args);
|
|
8451
|
-
|
|
8452
8213
|
//#endregion
|
|
8453
8214
|
//#region src/plugins/@pinia/colada/config.ts
|
|
8454
8215
|
const defaultConfig$13 = {
|
|
@@ -8491,11 +8252,7 @@ const defaultConfig$13 = {
|
|
|
8491
8252
|
});
|
|
8492
8253
|
}
|
|
8493
8254
|
};
|
|
8494
|
-
|
|
8495
|
-
* Type helper for `@pinia/colada` plugin, returns {@link Plugin.Config} object
|
|
8496
|
-
*/
|
|
8497
|
-
const defineConfig$13 = definePluginConfig(defaultConfig$13);
|
|
8498
|
-
|
|
8255
|
+
definePluginConfig(defaultConfig$13);
|
|
8499
8256
|
//#endregion
|
|
8500
8257
|
//#region src/plugins/@tanstack/query-core/shared/useType.ts
|
|
8501
8258
|
const useTypeData = ({ operation, plugin }) => {
|
|
@@ -8527,7 +8284,6 @@ const useTypeResponse = ({ operation, plugin }) => {
|
|
|
8527
8284
|
});
|
|
8528
8285
|
return $.type(symbolResponseType ?? "unknown");
|
|
8529
8286
|
};
|
|
8530
|
-
|
|
8531
8287
|
//#endregion
|
|
8532
8288
|
//#region src/plugins/@tanstack/query-core/queryKey.ts
|
|
8533
8289
|
const TOptionsType = "TOptions";
|
|
@@ -8589,7 +8345,6 @@ const queryKeyStatement = ({ isInfinite, operation, plugin, symbol, typeQueryKey
|
|
|
8589
8345
|
plugin
|
|
8590
8346
|
}).return()));
|
|
8591
8347
|
};
|
|
8592
|
-
|
|
8593
8348
|
//#endregion
|
|
8594
8349
|
//#region src/plugins/@tanstack/query-core/shared/meta.ts
|
|
8595
8350
|
const handleMeta = (plugin, operation, configPath) => {
|
|
@@ -8599,7 +8354,6 @@ const handleMeta = (plugin, operation, configPath) => {
|
|
|
8599
8354
|
if (!Object.keys(metaObject).length) return;
|
|
8600
8355
|
return $.fromValue(metaObject);
|
|
8601
8356
|
};
|
|
8602
|
-
|
|
8603
8357
|
//#endregion
|
|
8604
8358
|
//#region src/plugins/@tanstack/query-core/v5/infiniteQueryOptions.ts
|
|
8605
8359
|
const createInfiniteParamsFunction = ({ plugin }) => {
|
|
@@ -8682,7 +8436,6 @@ const createInfiniteQueryOptions = ({ operation, plugin }) => {
|
|
|
8682
8436
|
}), $.type(symbolInfiniteDataType).generic(typeResponse), typeQueryKey, $.type.or(type, typePageObjectParam)))));
|
|
8683
8437
|
plugin.node(statement);
|
|
8684
8438
|
};
|
|
8685
|
-
|
|
8686
8439
|
//#endregion
|
|
8687
8440
|
//#region src/plugins/@tanstack/query-core/v5/mutationOptions.ts
|
|
8688
8441
|
const createMutationOptions = ({ operation, plugin }) => {
|
|
@@ -8719,7 +8472,6 @@ const createMutationOptions = ({ operation, plugin }) => {
|
|
|
8719
8472
|
const statement = $.const(symbolMutationOptions).export(plugin.config.mutationOptions.exported).$if(plugin.config.comments && createOperationComment(operation), (c, v) => c.doc(v)).assign($.func().param("options", (p) => p.optional().type($.type("Partial").generic(typeData))).returns(mutationType).do($.const(mutationOptionsFn).type(mutationType).assign($.object().pretty().prop("mutationFn", $.func().async().param(fnOptions).do(...statements)).$if(handleMeta(plugin, operation, "mutationOptions"), (c, v) => c.prop("meta", v))), $(mutationOptionsFn).return()));
|
|
8720
8473
|
plugin.node(statement);
|
|
8721
8474
|
};
|
|
8722
|
-
|
|
8723
8475
|
//#endregion
|
|
8724
8476
|
//#region src/plugins/@tanstack/query-core/v5/queryOptions.ts
|
|
8725
8477
|
const optionsParamName$1 = "options";
|
|
@@ -8775,7 +8527,6 @@ const createQueryOptions = ({ operation, plugin }) => {
|
|
|
8775
8527
|
}), typeResponse, $(symbolQueryKey).returnType()).return()));
|
|
8776
8528
|
plugin.node(statement);
|
|
8777
8529
|
};
|
|
8778
|
-
|
|
8779
8530
|
//#endregion
|
|
8780
8531
|
//#region src/plugins/@tanstack/query-core/v5/useMutation.ts
|
|
8781
8532
|
const mutationOptionsParamName = "mutationOptions";
|
|
@@ -8807,7 +8558,6 @@ const createUseMutation = ({ operation, plugin }) => {
|
|
|
8807
8558
|
const statement = $.const(symbolUseMutationFn).export().$if(plugin.config.comments && createOperationComment(operation), (c, v) => c.doc(v)).assign(func);
|
|
8808
8559
|
plugin.node(statement);
|
|
8809
8560
|
};
|
|
8810
|
-
|
|
8811
8561
|
//#endregion
|
|
8812
8562
|
//#region src/plugins/@tanstack/query-core/v5/useQuery.ts
|
|
8813
8563
|
const optionsParamName = "options";
|
|
@@ -8834,7 +8584,6 @@ const createUseQuery = ({ operation, plugin }) => {
|
|
|
8834
8584
|
const statement = $.const(symbolUseQueryFn).export().$if(plugin.config.comments && createOperationComment(operation), (c, v) => c.doc(v)).assign($.func().param(optionsParamName, (p) => p.required(isRequiredOptions).type(typeData)).do($(symbolUseQuery).call($(symbolQueryOptionsFn).call(optionsParamName)).return()));
|
|
8835
8585
|
plugin.node(statement);
|
|
8836
8586
|
};
|
|
8837
|
-
|
|
8838
8587
|
//#endregion
|
|
8839
8588
|
//#region src/plugins/@tanstack/query-core/v5/plugin.ts
|
|
8840
8589
|
const handlerV5 = ({ plugin }) => {
|
|
@@ -8887,11 +8636,9 @@ const handlerV5 = ({ plugin }) => {
|
|
|
8887
8636
|
}
|
|
8888
8637
|
}, { order: "declarations" });
|
|
8889
8638
|
};
|
|
8890
|
-
|
|
8891
8639
|
//#endregion
|
|
8892
8640
|
//#region src/plugins/@tanstack/query-core/plugin.ts
|
|
8893
8641
|
const handler$7 = (args) => handlerV5(args);
|
|
8894
|
-
|
|
8895
8642
|
//#endregion
|
|
8896
8643
|
//#region src/plugins/@tanstack/angular-query-experimental/config.ts
|
|
8897
8644
|
const defaultConfig$12 = {
|
|
@@ -8955,11 +8702,7 @@ const defaultConfig$12 = {
|
|
|
8955
8702
|
});
|
|
8956
8703
|
}
|
|
8957
8704
|
};
|
|
8958
|
-
|
|
8959
|
-
* Type helper for `@tanstack/angular-query-experimental` plugin, returns {@link Plugin.Config} object
|
|
8960
|
-
*/
|
|
8961
|
-
const defineConfig$12 = definePluginConfig(defaultConfig$12);
|
|
8962
|
-
|
|
8705
|
+
definePluginConfig(defaultConfig$12);
|
|
8963
8706
|
//#endregion
|
|
8964
8707
|
//#region src/plugins/@tanstack/preact-query/config.ts
|
|
8965
8708
|
const defaultConfig$11 = {
|
|
@@ -9081,11 +8824,7 @@ const defaultConfig$11 = {
|
|
|
9081
8824
|
}
|
|
9082
8825
|
}
|
|
9083
8826
|
};
|
|
9084
|
-
|
|
9085
|
-
* Type helper for `@tanstack/preact-query` plugin, returns {@link Plugin.Config} object
|
|
9086
|
-
*/
|
|
9087
|
-
const defineConfig$11 = definePluginConfig(defaultConfig$11);
|
|
9088
|
-
|
|
8827
|
+
definePluginConfig(defaultConfig$11);
|
|
9089
8828
|
//#endregion
|
|
9090
8829
|
//#region src/plugins/@tanstack/react-query/config.ts
|
|
9091
8830
|
const defaultConfig$10 = {
|
|
@@ -9207,11 +8946,7 @@ const defaultConfig$10 = {
|
|
|
9207
8946
|
}
|
|
9208
8947
|
}
|
|
9209
8948
|
};
|
|
9210
|
-
|
|
9211
|
-
* Type helper for `@tanstack/react-query` plugin, returns {@link Plugin.Config} object
|
|
9212
|
-
*/
|
|
9213
|
-
const defineConfig$10 = definePluginConfig(defaultConfig$10);
|
|
9214
|
-
|
|
8949
|
+
definePluginConfig(defaultConfig$10);
|
|
9215
8950
|
//#endregion
|
|
9216
8951
|
//#region src/plugins/@tanstack/solid-query/config.ts
|
|
9217
8952
|
const defaultConfig$9 = {
|
|
@@ -9275,11 +9010,7 @@ const defaultConfig$9 = {
|
|
|
9275
9010
|
});
|
|
9276
9011
|
}
|
|
9277
9012
|
};
|
|
9278
|
-
|
|
9279
|
-
* Type helper for `@tanstack/solid-query` plugin, returns {@link Plugin.Config} object
|
|
9280
|
-
*/
|
|
9281
|
-
const defineConfig$9 = definePluginConfig(defaultConfig$9);
|
|
9282
|
-
|
|
9013
|
+
definePluginConfig(defaultConfig$9);
|
|
9283
9014
|
//#endregion
|
|
9284
9015
|
//#region src/plugins/@tanstack/svelte-query/config.ts
|
|
9285
9016
|
const defaultConfig$8 = {
|
|
@@ -9343,11 +9074,7 @@ const defaultConfig$8 = {
|
|
|
9343
9074
|
});
|
|
9344
9075
|
}
|
|
9345
9076
|
};
|
|
9346
|
-
|
|
9347
|
-
* Type helper for `@tanstack/svelte-query` plugin, returns {@link Plugin.Config} object
|
|
9348
|
-
*/
|
|
9349
|
-
const defineConfig$8 = definePluginConfig(defaultConfig$8);
|
|
9350
|
-
|
|
9077
|
+
definePluginConfig(defaultConfig$8);
|
|
9351
9078
|
//#endregion
|
|
9352
9079
|
//#region src/plugins/@tanstack/vue-query/config.ts
|
|
9353
9080
|
const defaultConfig$7 = {
|
|
@@ -9411,11 +9138,7 @@ const defaultConfig$7 = {
|
|
|
9411
9138
|
});
|
|
9412
9139
|
}
|
|
9413
9140
|
};
|
|
9414
|
-
|
|
9415
|
-
* Type helper for `@tanstack/vue-query` plugin, returns {@link Plugin.Config} object
|
|
9416
|
-
*/
|
|
9417
|
-
const defineConfig$7 = definePluginConfig(defaultConfig$7);
|
|
9418
|
-
|
|
9141
|
+
definePluginConfig(defaultConfig$7);
|
|
9419
9142
|
//#endregion
|
|
9420
9143
|
//#region src/plugins/arktype/v2/api.ts
|
|
9421
9144
|
function createRequestValidatorV2({ operation, plugin }) {
|
|
@@ -9442,7 +9165,6 @@ function createResponseValidatorV2({ operation, plugin }) {
|
|
|
9442
9165
|
const dataParameterName = "data";
|
|
9443
9166
|
return $.func().async().param(dataParameterName).do($(symbol).attr("parseAsync").call(dataParameterName).await().return());
|
|
9444
9167
|
}
|
|
9445
|
-
|
|
9446
9168
|
//#endregion
|
|
9447
9169
|
//#region src/plugins/arktype/api.ts
|
|
9448
9170
|
var Api$2 = class {
|
|
@@ -9453,7 +9175,6 @@ var Api$2 = class {
|
|
|
9453
9175
|
return createResponseValidatorV2(args);
|
|
9454
9176
|
}
|
|
9455
9177
|
};
|
|
9456
|
-
|
|
9457
9178
|
//#endregion
|
|
9458
9179
|
//#region src/plugins/arktype/constants.ts
|
|
9459
9180
|
const identifiers$2 = {
|
|
@@ -9557,7 +9278,6 @@ const identifiers$2 = {
|
|
|
9557
9278
|
toJsonSchema: "toJsonSchema"
|
|
9558
9279
|
}
|
|
9559
9280
|
};
|
|
9560
|
-
|
|
9561
9281
|
//#endregion
|
|
9562
9282
|
//#region src/plugins/arktype/shared/export.ts
|
|
9563
9283
|
function exportAst$2({ ast, plugin, schema, symbol, typeInferSymbol }) {
|
|
@@ -9569,7 +9289,6 @@ function exportAst$2({ ast, plugin, schema, symbol, typeInferSymbol }) {
|
|
|
9569
9289
|
plugin.node(inferType);
|
|
9570
9290
|
}
|
|
9571
9291
|
}
|
|
9572
|
-
|
|
9573
9292
|
//#endregion
|
|
9574
9293
|
//#region src/plugins/arktype/v2/toAst/null.ts
|
|
9575
9294
|
const nullToAst$3 = (_args) => {
|
|
@@ -9577,7 +9296,6 @@ const nullToAst$3 = (_args) => {
|
|
|
9577
9296
|
result.def = identifiers$2.primitives.null;
|
|
9578
9297
|
return result;
|
|
9579
9298
|
};
|
|
9580
|
-
|
|
9581
9299
|
//#endregion
|
|
9582
9300
|
//#region src/plugins/arktype/v2/toAst/object.ts
|
|
9583
9301
|
function objectToAst$3({ plugin, schema, state }) {
|
|
@@ -9623,7 +9341,6 @@ function objectToAst$3({ plugin, schema, state }) {
|
|
|
9623
9341
|
};
|
|
9624
9342
|
return result;
|
|
9625
9343
|
}
|
|
9626
|
-
|
|
9627
9344
|
//#endregion
|
|
9628
9345
|
//#region src/plugins/arktype/v2/toAst/string.ts
|
|
9629
9346
|
const stringToAst = ({ schema }) => {
|
|
@@ -9664,7 +9381,6 @@ const stringToAst = ({ schema }) => {
|
|
|
9664
9381
|
result.def = def;
|
|
9665
9382
|
return result;
|
|
9666
9383
|
};
|
|
9667
|
-
|
|
9668
9384
|
//#endregion
|
|
9669
9385
|
//#region src/plugins/arktype/v2/toAst/index.ts
|
|
9670
9386
|
function irSchemaWithTypeToAst({ schema, ...args }) {
|
|
@@ -9688,7 +9404,6 @@ function irSchemaWithTypeToAst({ schema, ...args }) {
|
|
|
9688
9404
|
hasLazyExpression: false
|
|
9689
9405
|
};
|
|
9690
9406
|
}
|
|
9691
|
-
|
|
9692
9407
|
//#endregion
|
|
9693
9408
|
//#region src/plugins/arktype/v2/plugin.ts
|
|
9694
9409
|
function irSchemaToAst({ plugin, schema, schemaExtractor, state }) {
|
|
@@ -9820,11 +9535,9 @@ const handlerV2$1 = ({ plugin }) => {
|
|
|
9820
9535
|
}
|
|
9821
9536
|
});
|
|
9822
9537
|
};
|
|
9823
|
-
|
|
9824
9538
|
//#endregion
|
|
9825
9539
|
//#region src/plugins/arktype/plugin.ts
|
|
9826
9540
|
const handler$6 = (args) => handlerV2$1(args);
|
|
9827
|
-
|
|
9828
9541
|
//#endregion
|
|
9829
9542
|
//#region src/plugins/arktype/config.ts
|
|
9830
9543
|
const defaultConfig$6 = {
|
|
@@ -10003,11 +9716,7 @@ const defaultConfig$6 = {
|
|
|
10003
9716
|
},
|
|
10004
9717
|
tags: ["validator"]
|
|
10005
9718
|
};
|
|
10006
|
-
|
|
10007
|
-
* Type helper for Arktype plugin, returns {@link Plugin.Config} object
|
|
10008
|
-
*/
|
|
10009
|
-
const defineConfig$6 = definePluginConfig(defaultConfig$6);
|
|
10010
|
-
|
|
9719
|
+
definePluginConfig(defaultConfig$6);
|
|
10011
9720
|
//#endregion
|
|
10012
9721
|
//#region src/plugins/fastify/plugin.ts
|
|
10013
9722
|
const operationToRouteHandler = ({ operation, plugin }) => {
|
|
@@ -10091,7 +9800,6 @@ const handler$5 = ({ plugin }) => {
|
|
|
10091
9800
|
const node = $.type.alias(symbolRouteHandlers).export().type(type);
|
|
10092
9801
|
plugin.node(node);
|
|
10093
9802
|
};
|
|
10094
|
-
|
|
10095
9803
|
//#endregion
|
|
10096
9804
|
//#region src/plugins/fastify/config.ts
|
|
10097
9805
|
const defaultConfig$5 = {
|
|
@@ -10100,11 +9808,7 @@ const defaultConfig$5 = {
|
|
|
10100
9808
|
handler: handler$5,
|
|
10101
9809
|
name: "fastify"
|
|
10102
9810
|
};
|
|
10103
|
-
|
|
10104
|
-
* Type helper for `fastify` plugin, returns {@link Plugin.Config} object
|
|
10105
|
-
*/
|
|
10106
|
-
const defineConfig$5 = definePluginConfig(defaultConfig$5);
|
|
10107
|
-
|
|
9811
|
+
definePluginConfig(defaultConfig$5);
|
|
10108
9812
|
//#endregion
|
|
10109
9813
|
//#region src/plugins/nestjs/plugin.ts
|
|
10110
9814
|
const operationToMethod = ({ operation, plugin }) => {
|
|
@@ -10175,7 +9879,6 @@ const handler$4 = ({ plugin }) => {
|
|
|
10175
9879
|
typeName: `${toCase(tag, "PascalCase")}ControllerMethods`
|
|
10176
9880
|
});
|
|
10177
9881
|
};
|
|
10178
|
-
|
|
10179
9882
|
//#endregion
|
|
10180
9883
|
//#region src/plugins/nestjs/config.ts
|
|
10181
9884
|
const defaultConfig$4 = {
|
|
@@ -10184,11 +9887,7 @@ const defaultConfig$4 = {
|
|
|
10184
9887
|
handler: handler$4,
|
|
10185
9888
|
name: "nestjs"
|
|
10186
9889
|
};
|
|
10187
|
-
|
|
10188
|
-
* Type helper for `nestjs` plugin, returns {@link Plugin.Config} object
|
|
10189
|
-
*/
|
|
10190
|
-
const defineConfig$4 = definePluginConfig(defaultConfig$4);
|
|
10191
|
-
|
|
9890
|
+
definePluginConfig(defaultConfig$4);
|
|
10192
9891
|
//#endregion
|
|
10193
9892
|
//#region src/plugins/orpc/contracts/config.ts
|
|
10194
9893
|
function resolveContracts(config, context) {
|
|
@@ -10238,7 +9937,6 @@ function normalizeConfig(input, context) {
|
|
|
10238
9937
|
value: input
|
|
10239
9938
|
});
|
|
10240
9939
|
}
|
|
10241
|
-
|
|
10242
9940
|
//#endregion
|
|
10243
9941
|
//#region src/plugins/orpc/shared/operation.ts
|
|
10244
9942
|
function hasInput(operation) {
|
|
@@ -10264,7 +9962,6 @@ function getSuccessResponse(operation) {
|
|
|
10264
9962
|
function getTags(operation, defaultTag) {
|
|
10265
9963
|
return operation.tags && operation.tags.length ? [...operation.tags] : [defaultTag];
|
|
10266
9964
|
}
|
|
10267
|
-
|
|
10268
9965
|
//#endregion
|
|
10269
9966
|
//#region src/plugins/orpc/contracts/node.ts
|
|
10270
9967
|
const source = globalThis.Symbol("orpc");
|
|
@@ -10394,7 +10091,6 @@ function toNode$1(model, plugin) {
|
|
|
10394
10091
|
symbols
|
|
10395
10092
|
};
|
|
10396
10093
|
}
|
|
10397
|
-
|
|
10398
10094
|
//#endregion
|
|
10399
10095
|
//#region src/plugins/orpc/contracts/resolve.ts
|
|
10400
10096
|
function resolvePath(plugin) {
|
|
@@ -10420,7 +10116,6 @@ function resolveStrategy(plugin) {
|
|
|
10420
10116
|
});
|
|
10421
10117
|
return plugin.config.contracts.strategy;
|
|
10422
10118
|
}
|
|
10423
|
-
|
|
10424
10119
|
//#endregion
|
|
10425
10120
|
//#region src/plugins/orpc/v1/plugin.ts
|
|
10426
10121
|
const handlerV1$1 = ({ plugin }) => {
|
|
@@ -10449,11 +10144,9 @@ const handlerV1$1 = ({ plugin }) => {
|
|
|
10449
10144
|
}
|
|
10450
10145
|
for (const node of allNodes) plugin.node(node);
|
|
10451
10146
|
};
|
|
10452
|
-
|
|
10453
10147
|
//#endregion
|
|
10454
10148
|
//#region src/plugins/orpc/plugin.ts
|
|
10455
10149
|
const handler$3 = (args) => handlerV1$1(args);
|
|
10456
|
-
|
|
10457
10150
|
//#endregion
|
|
10458
10151
|
//#region src/plugins/orpc/config.ts
|
|
10459
10152
|
const validatorInferWarn = "You set `validator: true` but no validator plugin was found in your plugins. Add a validator plugin like `zod` to enable this feature. The validator option has been disabled.";
|
|
@@ -10487,11 +10180,7 @@ const defaultConfig$3 = {
|
|
|
10487
10180
|
plugin.config.contracts = resolveContracts(plugin.config, context);
|
|
10488
10181
|
}
|
|
10489
10182
|
};
|
|
10490
|
-
|
|
10491
|
-
* Type helper for oRPC plugin, returns {@link Plugin.Config} object
|
|
10492
|
-
*/
|
|
10493
|
-
const defineConfig$3 = definePluginConfig(defaultConfig$3);
|
|
10494
|
-
|
|
10183
|
+
definePluginConfig(defaultConfig$3);
|
|
10495
10184
|
//#endregion
|
|
10496
10185
|
//#region src/plugins/swr/v2/useSwr.ts
|
|
10497
10186
|
const createUseSwr = ({ operation, plugin }) => {
|
|
@@ -10509,7 +10198,6 @@ const createUseSwr = ({ operation, plugin }) => {
|
|
|
10509
10198
|
const statement = $.const(symbolUseQueryFn).export().$if(plugin.config.comments && createOperationComment(operation), (c, v) => c.doc(v)).assign($.func().do($(symbolUseSwr).call($.literal(operation.path), $.func().async().do(...statements)).return()));
|
|
10510
10199
|
plugin.node(statement);
|
|
10511
10200
|
};
|
|
10512
|
-
|
|
10513
10201
|
//#endregion
|
|
10514
10202
|
//#region src/plugins/swr/v2/plugin.ts
|
|
10515
10203
|
const handlerV2 = ({ plugin }) => {
|
|
@@ -10527,11 +10215,9 @@ const handlerV2 = ({ plugin }) => {
|
|
|
10527
10215
|
}
|
|
10528
10216
|
}, { order: "declarations" });
|
|
10529
10217
|
};
|
|
10530
|
-
|
|
10531
10218
|
//#endregion
|
|
10532
10219
|
//#region src/plugins/swr/plugin.ts
|
|
10533
10220
|
const handler$2 = (args) => handlerV2(args);
|
|
10534
|
-
|
|
10535
10221
|
//#endregion
|
|
10536
10222
|
//#region src/plugins/swr/config.ts
|
|
10537
10223
|
const defaultConfig$2 = {
|
|
@@ -10623,11 +10309,7 @@ const defaultConfig$2 = {
|
|
|
10623
10309
|
}
|
|
10624
10310
|
}
|
|
10625
10311
|
};
|
|
10626
|
-
|
|
10627
|
-
* Type helper for `swr` plugin, returns {@link Plugin.Config} object
|
|
10628
|
-
*/
|
|
10629
|
-
const defineConfig$2 = definePluginConfig(defaultConfig$2);
|
|
10630
|
-
|
|
10312
|
+
definePluginConfig(defaultConfig$2);
|
|
10631
10313
|
//#endregion
|
|
10632
10314
|
//#region src/plugins/valibot/v1/constants.ts
|
|
10633
10315
|
const identifiers$1 = {
|
|
@@ -10866,7 +10548,6 @@ const identifiers$1 = {
|
|
|
10866
10548
|
types: { GenericSchema: "GenericSchema" },
|
|
10867
10549
|
utils: {}
|
|
10868
10550
|
};
|
|
10869
|
-
|
|
10870
10551
|
//#endregion
|
|
10871
10552
|
//#region src/plugins/valibot/shared/pipes.ts
|
|
10872
10553
|
function push(target, result) {
|
|
@@ -10896,7 +10577,6 @@ const pipes = {
|
|
|
10896
10577
|
function pipesToNode(pipes, plugin) {
|
|
10897
10578
|
return toNode(pipes, plugin);
|
|
10898
10579
|
}
|
|
10899
|
-
|
|
10900
10580
|
//#endregion
|
|
10901
10581
|
//#region src/plugins/valibot/shared/export.ts
|
|
10902
10582
|
function exportAst$1({ final, meta, naming, namingAnchor, path, plugin, schema, tags }) {
|
|
@@ -10919,7 +10599,6 @@ function exportAst$1({ final, meta, naming, namingAnchor, path, plugin, schema,
|
|
|
10919
10599
|
plugin.node(statement);
|
|
10920
10600
|
return symbol;
|
|
10921
10601
|
}
|
|
10922
|
-
|
|
10923
10602
|
//#endregion
|
|
10924
10603
|
//#region src/plugins/valibot/shared/operation-schema.ts
|
|
10925
10604
|
function buildOperationSchema$1(operation) {
|
|
@@ -10966,7 +10645,6 @@ function buildOperationSchema$1(operation) {
|
|
|
10966
10645
|
schema
|
|
10967
10646
|
};
|
|
10968
10647
|
}
|
|
10969
|
-
|
|
10970
10648
|
//#endregion
|
|
10971
10649
|
//#region src/plugins/valibot/shared/validator.ts
|
|
10972
10650
|
function getDefaultRequestValidatorLayers$1(operation) {
|
|
@@ -10994,7 +10672,6 @@ function getDefaultRequestValidatorLayers$1(operation) {
|
|
|
10994
10672
|
}
|
|
10995
10673
|
};
|
|
10996
10674
|
}
|
|
10997
|
-
|
|
10998
10675
|
//#endregion
|
|
10999
10676
|
//#region src/plugins/valibot/v1/api.ts
|
|
11000
10677
|
function emptyNode$3(ctx) {
|
|
@@ -11146,7 +10823,6 @@ function createResponseValidatorV1({ operation, plugin }) {
|
|
|
11146
10823
|
}
|
|
11147
10824
|
});
|
|
11148
10825
|
}
|
|
11149
|
-
|
|
11150
10826
|
//#endregion
|
|
11151
10827
|
//#region src/plugins/valibot/api.ts
|
|
11152
10828
|
var Api$1 = class {
|
|
@@ -11164,7 +10840,6 @@ var Api$1 = class {
|
|
|
11164
10840
|
return createResponseValidatorV1(args);
|
|
11165
10841
|
}
|
|
11166
10842
|
};
|
|
11167
|
-
|
|
11168
10843
|
//#endregion
|
|
11169
10844
|
//#region src/plugins/valibot/shared/operation.ts
|
|
11170
10845
|
function irOperationToAst$1({ operation, path, plugin, processor, tags }) {
|
|
@@ -11242,7 +10917,6 @@ function irOperationToAst$1({ operation, path, plugin, processor, tags }) {
|
|
|
11242
10917
|
}
|
|
11243
10918
|
}
|
|
11244
10919
|
}
|
|
11245
|
-
|
|
11246
10920
|
//#endregion
|
|
11247
10921
|
//#region src/plugins/valibot/shared/webhook.ts
|
|
11248
10922
|
function irWebhookToAst$1({ operation, path, plugin, processor, tags }) {
|
|
@@ -11263,7 +10937,6 @@ function irWebhookToAst$1({ operation, path, plugin, processor, tags }) {
|
|
|
11263
10937
|
});
|
|
11264
10938
|
}
|
|
11265
10939
|
}
|
|
11266
|
-
|
|
11267
10940
|
//#endregion
|
|
11268
10941
|
//#region src/plugins/shared/utils/coerce.ts
|
|
11269
10942
|
const shouldCoerceToBigInt = (format) => format === "int64" || format === "uint64";
|
|
@@ -11276,7 +10949,6 @@ const maybeBigInt = (value, format) => {
|
|
|
11276
10949
|
if (typeof value === "number") return $("BigInt").call($.fromValue(value));
|
|
11277
10950
|
return $.fromValue(value);
|
|
11278
10951
|
};
|
|
11279
|
-
|
|
11280
10952
|
//#endregion
|
|
11281
10953
|
//#region src/plugins/valibot/shared/meta.ts
|
|
11282
10954
|
/**
|
|
@@ -11320,7 +10992,6 @@ function inheritMeta$1(parent, children) {
|
|
|
11320
10992
|
readonly: parent.accessScope === "read"
|
|
11321
10993
|
});
|
|
11322
10994
|
}
|
|
11323
|
-
|
|
11324
10995
|
//#endregion
|
|
11325
10996
|
//#region src/plugins/valibot/v1/toAst/unknown.ts
|
|
11326
10997
|
function baseNode$49(ctx) {
|
|
@@ -11349,7 +11020,6 @@ function unknownToPipes({ plugin, schema }) {
|
|
|
11349
11020
|
const node = resolver?.(ctx) ?? unknownResolver$3(ctx);
|
|
11350
11021
|
return ctx.pipes.toNode(node, plugin);
|
|
11351
11022
|
}
|
|
11352
|
-
|
|
11353
11023
|
//#endregion
|
|
11354
11024
|
//#region src/plugins/valibot/v1/toAst/array.ts
|
|
11355
11025
|
function baseNode$48(ctx) {
|
|
@@ -11439,7 +11109,6 @@ function arrayToPipes(ctx) {
|
|
|
11439
11109
|
pipes: [resolverCtx.pipes.toNode(node, plugin)]
|
|
11440
11110
|
};
|
|
11441
11111
|
}
|
|
11442
|
-
|
|
11443
11112
|
//#endregion
|
|
11444
11113
|
//#region src/plugins/valibot/v1/toAst/boolean.ts
|
|
11445
11114
|
function baseNode$47(ctx) {
|
|
@@ -11479,7 +11148,6 @@ function booleanToPipes({ plugin, schema }) {
|
|
|
11479
11148
|
const node = resolver?.(ctx) ?? booleanResolver$3(ctx);
|
|
11480
11149
|
return ctx.pipes.toNode(node, plugin);
|
|
11481
11150
|
}
|
|
11482
|
-
|
|
11483
11151
|
//#endregion
|
|
11484
11152
|
//#region src/plugins/valibot/v1/toAst/enum.ts
|
|
11485
11153
|
function itemsNode$3(ctx) {
|
|
@@ -11547,7 +11215,6 @@ function enumToPipes({ plugin, schema }) {
|
|
|
11547
11215
|
pipe: ctx.pipes.toNode(node, plugin)
|
|
11548
11216
|
};
|
|
11549
11217
|
}
|
|
11550
|
-
|
|
11551
11218
|
//#endregion
|
|
11552
11219
|
//#region src/plugins/valibot/v1/toAst/intersection.ts
|
|
11553
11220
|
function baseNode$45(ctx) {
|
|
@@ -11586,7 +11253,6 @@ function intersectionToPipes(ctx) {
|
|
|
11586
11253
|
pipes: [resolverCtx.pipes.toNode(node, plugin)]
|
|
11587
11254
|
};
|
|
11588
11255
|
}
|
|
11589
|
-
|
|
11590
11256
|
//#endregion
|
|
11591
11257
|
//#region src/plugins/valibot/v1/toAst/never.ts
|
|
11592
11258
|
function baseNode$44(ctx) {
|
|
@@ -11615,7 +11281,6 @@ function neverToPipes({ plugin, schema }) {
|
|
|
11615
11281
|
const node = resolver?.(ctx) ?? neverResolver$3(ctx);
|
|
11616
11282
|
return ctx.pipes.toNode(node, plugin);
|
|
11617
11283
|
}
|
|
11618
|
-
|
|
11619
11284
|
//#endregion
|
|
11620
11285
|
//#region src/plugins/valibot/v1/toAst/null.ts
|
|
11621
11286
|
function baseNode$43(ctx) {
|
|
@@ -11644,7 +11309,6 @@ function nullToPipes({ plugin, schema }) {
|
|
|
11644
11309
|
const node = resolver?.(ctx) ?? nullResolver$3(ctx);
|
|
11645
11310
|
return ctx.pipes.toNode(node, plugin);
|
|
11646
11311
|
}
|
|
11647
|
-
|
|
11648
11312
|
//#endregion
|
|
11649
11313
|
//#region src/plugins/shared/utils/formats.ts
|
|
11650
11314
|
const rangeErrors = (format, range) => ({
|
|
@@ -11672,7 +11336,6 @@ const getIntegerLimit = (format) => {
|
|
|
11672
11336
|
...errors
|
|
11673
11337
|
};
|
|
11674
11338
|
};
|
|
11675
|
-
|
|
11676
11339
|
//#endregion
|
|
11677
11340
|
//#region src/plugins/valibot/v1/toAst/number.ts
|
|
11678
11341
|
function baseNode$42(ctx) {
|
|
@@ -11743,7 +11406,6 @@ function numberToPipes({ plugin, schema }) {
|
|
|
11743
11406
|
const node = resolver?.(ctx) ?? numberResolver$3(ctx);
|
|
11744
11407
|
return ctx.pipes.toNode(node, plugin);
|
|
11745
11408
|
}
|
|
11746
|
-
|
|
11747
11409
|
//#endregion
|
|
11748
11410
|
//#region src/plugins/valibot/v1/toAst/object.ts
|
|
11749
11411
|
function additionalPropertiesNode$3(ctx) {
|
|
@@ -11810,7 +11472,6 @@ function objectToPipes(ctx) {
|
|
|
11810
11472
|
pipes: [resolverCtx.pipes.toNode(node, plugin)]
|
|
11811
11473
|
};
|
|
11812
11474
|
}
|
|
11813
|
-
|
|
11814
11475
|
//#endregion
|
|
11815
11476
|
//#region src/plugins/valibot/v1/toAst/string.ts
|
|
11816
11477
|
function baseNode$40(ctx) {
|
|
@@ -11912,7 +11573,6 @@ function stringToPipes({ plugin, schema }) {
|
|
|
11912
11573
|
const node = resolver?.(ctx) ?? stringResolver$3(ctx);
|
|
11913
11574
|
return ctx.pipes.toNode(node, plugin);
|
|
11914
11575
|
}
|
|
11915
|
-
|
|
11916
11576
|
//#endregion
|
|
11917
11577
|
//#region src/plugins/valibot/v1/toAst/tuple.ts
|
|
11918
11578
|
function baseNode$39(ctx) {
|
|
@@ -11974,7 +11634,6 @@ function tupleToPipes(ctx) {
|
|
|
11974
11634
|
pipes: [resolverCtx.pipes.toNode(node, plugin)]
|
|
11975
11635
|
};
|
|
11976
11636
|
}
|
|
11977
|
-
|
|
11978
11637
|
//#endregion
|
|
11979
11638
|
//#region src/plugins/valibot/v1/toAst/undefined.ts
|
|
11980
11639
|
function baseNode$38(ctx) {
|
|
@@ -12003,7 +11662,6 @@ function undefinedToPipes({ plugin, schema }) {
|
|
|
12003
11662
|
const node = resolver?.(ctx) ?? undefinedResolver$3(ctx);
|
|
12004
11663
|
return ctx.pipes.toNode(node, plugin);
|
|
12005
11664
|
}
|
|
12006
|
-
|
|
12007
11665
|
//#endregion
|
|
12008
11666
|
//#region src/plugins/valibot/v1/toAst/union.ts
|
|
12009
11667
|
function baseNode$37(ctx) {
|
|
@@ -12048,7 +11706,6 @@ function unionToPipes(ctx) {
|
|
|
12048
11706
|
pipes: [resolverCtx.pipes.toNode(node, plugin)]
|
|
12049
11707
|
};
|
|
12050
11708
|
}
|
|
12051
|
-
|
|
12052
11709
|
//#endregion
|
|
12053
11710
|
//#region src/plugins/valibot/v1/toAst/void.ts
|
|
12054
11711
|
function baseNode$36(ctx) {
|
|
@@ -12077,7 +11734,6 @@ function voidToPipes({ plugin, schema }) {
|
|
|
12077
11734
|
const node = resolver?.(ctx) ?? voidResolver$3(ctx);
|
|
12078
11735
|
return ctx.pipes.toNode(node, plugin);
|
|
12079
11736
|
}
|
|
12080
|
-
|
|
12081
11737
|
//#endregion
|
|
12082
11738
|
//#region src/plugins/valibot/v1/walker.ts
|
|
12083
11739
|
function getDefaultValue(meta) {
|
|
@@ -12359,7 +12015,6 @@ function createVisitor$3(config = {}) {
|
|
|
12359
12015
|
}
|
|
12360
12016
|
};
|
|
12361
12017
|
}
|
|
12362
|
-
|
|
12363
12018
|
//#endregion
|
|
12364
12019
|
//#region src/plugins/valibot/v1/processor.ts
|
|
12365
12020
|
function createProcessor$3(plugin) {
|
|
@@ -12406,7 +12061,6 @@ function createProcessor$3(plugin) {
|
|
|
12406
12061
|
}
|
|
12407
12062
|
return { process };
|
|
12408
12063
|
}
|
|
12409
|
-
|
|
12410
12064
|
//#endregion
|
|
12411
12065
|
//#region src/plugins/valibot/v1/plugin.ts
|
|
12412
12066
|
const handlerV1 = ({ plugin }) => {
|
|
@@ -12477,11 +12131,9 @@ const handlerV1 = ({ plugin }) => {
|
|
|
12477
12131
|
}
|
|
12478
12132
|
});
|
|
12479
12133
|
};
|
|
12480
|
-
|
|
12481
12134
|
//#endregion
|
|
12482
12135
|
//#region src/plugins/valibot/plugin.ts
|
|
12483
12136
|
const handler$1 = (args) => handlerV1(args);
|
|
12484
|
-
|
|
12485
12137
|
//#endregion
|
|
12486
12138
|
//#region src/plugins/valibot/config.ts
|
|
12487
12139
|
const defaultConfig$1 = {
|
|
@@ -12581,11 +12233,7 @@ const defaultConfig$1 = {
|
|
|
12581
12233
|
},
|
|
12582
12234
|
tags: ["validator"]
|
|
12583
12235
|
};
|
|
12584
|
-
|
|
12585
|
-
* Type helper for Valibot plugin, returns {@link Plugin.Config} object
|
|
12586
|
-
*/
|
|
12587
|
-
const defineConfig$1 = definePluginConfig(defaultConfig$1);
|
|
12588
|
-
|
|
12236
|
+
definePluginConfig(defaultConfig$1);
|
|
12589
12237
|
//#endregion
|
|
12590
12238
|
//#region src/plugins/zod/constants.ts
|
|
12591
12239
|
const identifiers = {
|
|
@@ -12650,7 +12298,6 @@ const identifiers = {
|
|
|
12650
12298
|
uuid: "uuid",
|
|
12651
12299
|
void: "void"
|
|
12652
12300
|
};
|
|
12653
|
-
|
|
12654
12301
|
//#endregion
|
|
12655
12302
|
//#region src/plugins/zod/shared/export.ts
|
|
12656
12303
|
function exportAst({ final, meta, naming, namingAnchor, path, plugin, schema, tags }) {
|
|
@@ -12691,7 +12338,6 @@ function exportAst({ final, meta, naming, namingAnchor, path, plugin, schema, ta
|
|
|
12691
12338
|
}
|
|
12692
12339
|
return symbol;
|
|
12693
12340
|
}
|
|
12694
|
-
|
|
12695
12341
|
//#endregion
|
|
12696
12342
|
//#region src/plugins/zod/shared/operation-schema.ts
|
|
12697
12343
|
function buildOperationSchema(operation) {
|
|
@@ -12738,7 +12384,6 @@ function buildOperationSchema(operation) {
|
|
|
12738
12384
|
schema
|
|
12739
12385
|
};
|
|
12740
12386
|
}
|
|
12741
|
-
|
|
12742
12387
|
//#endregion
|
|
12743
12388
|
//#region src/plugins/zod/shared/validator.ts
|
|
12744
12389
|
function getDefaultRequestValidatorLayers(operation) {
|
|
@@ -12766,7 +12411,6 @@ function getDefaultRequestValidatorLayers(operation) {
|
|
|
12766
12411
|
}
|
|
12767
12412
|
};
|
|
12768
12413
|
}
|
|
12769
|
-
|
|
12770
12414
|
//#endregion
|
|
12771
12415
|
//#region src/plugins/zod/mini/api.ts
|
|
12772
12416
|
function emptyNode$2(ctx) {
|
|
@@ -12912,7 +12556,6 @@ function createResponseValidatorMini({ operation, plugin }) {
|
|
|
12912
12556
|
}
|
|
12913
12557
|
});
|
|
12914
12558
|
}
|
|
12915
|
-
|
|
12916
12559
|
//#endregion
|
|
12917
12560
|
//#region src/plugins/zod/v3/api.ts
|
|
12918
12561
|
function emptyNode$1(ctx) {
|
|
@@ -13057,7 +12700,6 @@ function createResponseValidatorV3({ operation, plugin }) {
|
|
|
13057
12700
|
}
|
|
13058
12701
|
});
|
|
13059
12702
|
}
|
|
13060
|
-
|
|
13061
12703
|
//#endregion
|
|
13062
12704
|
//#region src/plugins/zod/v4/api.ts
|
|
13063
12705
|
function emptyNode(ctx) {
|
|
@@ -13202,7 +12844,6 @@ function createResponseValidatorV4({ operation, plugin }) {
|
|
|
13202
12844
|
}
|
|
13203
12845
|
});
|
|
13204
12846
|
}
|
|
13205
|
-
|
|
13206
12847
|
//#endregion
|
|
13207
12848
|
//#region src/plugins/zod/api.ts
|
|
13208
12849
|
var Api = class {
|
|
@@ -13233,7 +12874,6 @@ var Api = class {
|
|
|
13233
12874
|
}
|
|
13234
12875
|
}
|
|
13235
12876
|
};
|
|
13236
|
-
|
|
13237
12877
|
//#endregion
|
|
13238
12878
|
//#region src/plugins/zod/shared/module.ts
|
|
13239
12879
|
function getZodModule({ plugin }) {
|
|
@@ -13253,7 +12893,6 @@ function getZodModule({ plugin }) {
|
|
|
13253
12893
|
case "mini": return "zod/mini";
|
|
13254
12894
|
}
|
|
13255
12895
|
}
|
|
13256
|
-
|
|
13257
12896
|
//#endregion
|
|
13258
12897
|
//#region src/plugins/zod/shared/operation.ts
|
|
13259
12898
|
function irOperationToAst({ operation, path, plugin, processor, tags }) {
|
|
@@ -13331,7 +12970,6 @@ function irOperationToAst({ operation, path, plugin, processor, tags }) {
|
|
|
13331
12970
|
}
|
|
13332
12971
|
}
|
|
13333
12972
|
}
|
|
13334
|
-
|
|
13335
12973
|
//#endregion
|
|
13336
12974
|
//#region src/plugins/zod/shared/webhook.ts
|
|
13337
12975
|
function irWebhookToAst({ operation, path, plugin, processor, tags }) {
|
|
@@ -13352,7 +12990,6 @@ function irWebhookToAst({ operation, path, plugin, processor, tags }) {
|
|
|
13352
12990
|
});
|
|
13353
12991
|
}
|
|
13354
12992
|
}
|
|
13355
|
-
|
|
13356
12993
|
//#endregion
|
|
13357
12994
|
//#region src/plugins/zod/shared/meta.ts
|
|
13358
12995
|
/**
|
|
@@ -13400,7 +13037,6 @@ function inheritMeta(parent, children) {
|
|
|
13400
13037
|
readonly: parent.accessScope === "read"
|
|
13401
13038
|
});
|
|
13402
13039
|
}
|
|
13403
|
-
|
|
13404
13040
|
//#endregion
|
|
13405
13041
|
//#region src/plugins/zod/mini/toAst/unknown.ts
|
|
13406
13042
|
function baseNode$35(ctx) {
|
|
@@ -13426,7 +13062,6 @@ function unknownToAst$2({ plugin, schema }) {
|
|
|
13426
13062
|
const resolver = plugin.config["~resolvers"]?.unknown;
|
|
13427
13063
|
return resolver?.(ctx) ?? unknownResolver$2(ctx);
|
|
13428
13064
|
}
|
|
13429
|
-
|
|
13430
13065
|
//#endregion
|
|
13431
13066
|
//#region src/plugins/zod/mini/toAst/array.ts
|
|
13432
13067
|
function baseNode$34(ctx) {
|
|
@@ -13517,7 +13152,6 @@ function arrayToAst$2({ applyModifiers, plugin, schema, walk, walkerCtx }) {
|
|
|
13517
13152
|
expression: resolver?.(ctx) ?? arrayResolver$2(ctx)
|
|
13518
13153
|
};
|
|
13519
13154
|
}
|
|
13520
|
-
|
|
13521
13155
|
//#endregion
|
|
13522
13156
|
//#region src/plugins/zod/mini/toAst/boolean.ts
|
|
13523
13157
|
function baseNode$33(ctx) {
|
|
@@ -13557,7 +13191,6 @@ function booleanToAst$2({ plugin, schema }) {
|
|
|
13557
13191
|
const resolver = plugin.config["~resolvers"]?.boolean;
|
|
13558
13192
|
return resolver?.(ctx) ?? booleanResolver$2(ctx);
|
|
13559
13193
|
}
|
|
13560
|
-
|
|
13561
13194
|
//#endregion
|
|
13562
13195
|
//#region src/plugins/zod/mini/toAst/enum.ts
|
|
13563
13196
|
function itemsNode$2(ctx) {
|
|
@@ -13623,7 +13256,6 @@ function enumToAst$2({ plugin, schema }) {
|
|
|
13623
13256
|
const resolver = plugin.config["~resolvers"]?.enum;
|
|
13624
13257
|
return resolver?.(ctx) ?? enumResolver$2(ctx);
|
|
13625
13258
|
}
|
|
13626
|
-
|
|
13627
13259
|
//#endregion
|
|
13628
13260
|
//#region src/plugins/zod/mini/toAst/never.ts
|
|
13629
13261
|
function baseNode$31(ctx) {
|
|
@@ -13649,7 +13281,6 @@ function neverToAst$2({ plugin, schema }) {
|
|
|
13649
13281
|
const resolver = plugin.config["~resolvers"]?.never;
|
|
13650
13282
|
return resolver?.(ctx) ?? neverResolver$2(ctx);
|
|
13651
13283
|
}
|
|
13652
|
-
|
|
13653
13284
|
//#endregion
|
|
13654
13285
|
//#region src/plugins/zod/mini/toAst/null.ts
|
|
13655
13286
|
function baseNode$30(ctx) {
|
|
@@ -13675,7 +13306,6 @@ function nullToAst$2({ plugin, schema }) {
|
|
|
13675
13306
|
const resolver = plugin.config["~resolvers"]?.null;
|
|
13676
13307
|
return resolver?.(ctx) ?? nullResolver$2(ctx);
|
|
13677
13308
|
}
|
|
13678
|
-
|
|
13679
13309
|
//#endregion
|
|
13680
13310
|
//#region src/plugins/zod/mini/toAst/number.ts
|
|
13681
13311
|
function baseNode$29(ctx) {
|
|
@@ -13747,7 +13377,6 @@ function numberToNode$2({ plugin, schema }) {
|
|
|
13747
13377
|
const resolver = plugin.config["~resolvers"]?.number;
|
|
13748
13378
|
return resolver?.(ctx) ?? numberResolver$2(ctx);
|
|
13749
13379
|
}
|
|
13750
|
-
|
|
13751
13380
|
//#endregion
|
|
13752
13381
|
//#region src/plugins/zod/mini/toAst/object.ts
|
|
13753
13382
|
function additionalPropertiesNode$2(ctx) {
|
|
@@ -13807,7 +13436,6 @@ function objectToAst$2(options) {
|
|
|
13807
13436
|
expression: resolver?.(ctx) ?? objectResolver$2(ctx)
|
|
13808
13437
|
};
|
|
13809
13438
|
}
|
|
13810
|
-
|
|
13811
13439
|
//#endregion
|
|
13812
13440
|
//#region src/plugins/zod/mini/toAst/string.ts
|
|
13813
13441
|
function baseNode$27(ctx) {
|
|
@@ -13908,7 +13536,6 @@ function stringToNode$2({ plugin, schema }) {
|
|
|
13908
13536
|
const resolver = plugin.config["~resolvers"]?.string;
|
|
13909
13537
|
return resolver?.(ctx) ?? stringResolver$2(ctx);
|
|
13910
13538
|
}
|
|
13911
|
-
|
|
13912
13539
|
//#endregion
|
|
13913
13540
|
//#region src/plugins/zod/mini/toAst/tuple.ts
|
|
13914
13541
|
function baseNode$26(ctx) {
|
|
@@ -13964,7 +13591,6 @@ function tupleToAst$2({ applyModifiers, plugin, schema, walk, walkerCtx }) {
|
|
|
13964
13591
|
expression: resolver?.(ctx) ?? tupleResolver$2(ctx)
|
|
13965
13592
|
};
|
|
13966
13593
|
}
|
|
13967
|
-
|
|
13968
13594
|
//#endregion
|
|
13969
13595
|
//#region src/plugins/zod/mini/toAst/undefined.ts
|
|
13970
13596
|
function baseNode$25(ctx) {
|
|
@@ -13990,7 +13616,6 @@ function undefinedToAst$2({ plugin, schema }) {
|
|
|
13990
13616
|
const resolver = plugin.config["~resolvers"]?.undefined;
|
|
13991
13617
|
return resolver?.(ctx) ?? undefinedResolver$2(ctx);
|
|
13992
13618
|
}
|
|
13993
|
-
|
|
13994
13619
|
//#endregion
|
|
13995
13620
|
//#region src/plugins/zod/mini/toAst/void.ts
|
|
13996
13621
|
function baseNode$24(ctx) {
|
|
@@ -14016,7 +13641,6 @@ function voidToAst$2({ plugin, schema }) {
|
|
|
14016
13641
|
const resolver = plugin.config["~resolvers"]?.void;
|
|
14017
13642
|
return resolver?.(ctx) ?? voidResolver$2(ctx);
|
|
14018
13643
|
}
|
|
14019
|
-
|
|
14020
13644
|
//#endregion
|
|
14021
13645
|
//#region src/plugins/zod/mini/walker.ts
|
|
14022
13646
|
function createVisitor$2(config = {}) {
|
|
@@ -14314,7 +13938,6 @@ function createVisitor$2(config = {}) {
|
|
|
14314
13938
|
}
|
|
14315
13939
|
};
|
|
14316
13940
|
}
|
|
14317
|
-
|
|
14318
13941
|
//#endregion
|
|
14319
13942
|
//#region src/plugins/zod/mini/processor.ts
|
|
14320
13943
|
function createProcessor$2(plugin) {
|
|
@@ -14361,7 +13984,6 @@ function createProcessor$2(plugin) {
|
|
|
14361
13984
|
}
|
|
14362
13985
|
return { process };
|
|
14363
13986
|
}
|
|
14364
|
-
|
|
14365
13987
|
//#endregion
|
|
14366
13988
|
//#region src/plugins/zod/mini/plugin.ts
|
|
14367
13989
|
const handlerMini = ({ plugin }) => {
|
|
@@ -14433,7 +14055,6 @@ const handlerMini = ({ plugin }) => {
|
|
|
14433
14055
|
}
|
|
14434
14056
|
});
|
|
14435
14057
|
};
|
|
14436
|
-
|
|
14437
14058
|
//#endregion
|
|
14438
14059
|
//#region src/plugins/zod/v3/toAst/unknown.ts
|
|
14439
14060
|
function baseNode$23(ctx) {
|
|
@@ -14459,7 +14080,6 @@ function unknownToAst$1({ plugin, schema }) {
|
|
|
14459
14080
|
const resolver = plugin.config["~resolvers"]?.unknown;
|
|
14460
14081
|
return resolver?.(ctx) ?? unknownResolver$1(ctx);
|
|
14461
14082
|
}
|
|
14462
|
-
|
|
14463
14083
|
//#endregion
|
|
14464
14084
|
//#region src/plugins/zod/v3/toAst/array.ts
|
|
14465
14085
|
function baseNode$22(ctx) {
|
|
@@ -14555,7 +14175,6 @@ function arrayToAst$1({ applyModifiers, plugin, schema, walk, walkerCtx }) {
|
|
|
14555
14175
|
expression: resolver?.(ctx) ?? arrayResolver$1(ctx)
|
|
14556
14176
|
};
|
|
14557
14177
|
}
|
|
14558
|
-
|
|
14559
14178
|
//#endregion
|
|
14560
14179
|
//#region src/plugins/zod/v3/toAst/boolean.ts
|
|
14561
14180
|
function baseNode$21(ctx) {
|
|
@@ -14595,7 +14214,6 @@ function booleanToAst$1({ plugin, schema }) {
|
|
|
14595
14214
|
const resolver = plugin.config["~resolvers"]?.boolean;
|
|
14596
14215
|
return resolver?.(ctx) ?? booleanResolver$1(ctx);
|
|
14597
14216
|
}
|
|
14598
|
-
|
|
14599
14217
|
//#endregion
|
|
14600
14218
|
//#region src/plugins/zod/v3/toAst/enum.ts
|
|
14601
14219
|
function itemsNode$1(ctx) {
|
|
@@ -14656,7 +14274,6 @@ function enumToAst$1({ plugin, schema }) {
|
|
|
14656
14274
|
const resolver = plugin.config["~resolvers"]?.enum;
|
|
14657
14275
|
return resolver?.(ctx) ?? enumResolver$1(ctx);
|
|
14658
14276
|
}
|
|
14659
|
-
|
|
14660
14277
|
//#endregion
|
|
14661
14278
|
//#region src/plugins/zod/v3/toAst/never.ts
|
|
14662
14279
|
function baseNode$19(ctx) {
|
|
@@ -14682,7 +14299,6 @@ function neverToAst$1({ plugin, schema }) {
|
|
|
14682
14299
|
const resolver = plugin.config["~resolvers"]?.never;
|
|
14683
14300
|
return resolver?.(ctx) ?? neverResolver$1(ctx);
|
|
14684
14301
|
}
|
|
14685
|
-
|
|
14686
14302
|
//#endregion
|
|
14687
14303
|
//#region src/plugins/zod/v3/toAst/null.ts
|
|
14688
14304
|
function baseNode$18(ctx) {
|
|
@@ -14708,7 +14324,6 @@ function nullToAst$1({ plugin, schema }) {
|
|
|
14708
14324
|
const resolver = plugin.config["~resolvers"]?.null;
|
|
14709
14325
|
return resolver?.(ctx) ?? nullResolver$1(ctx);
|
|
14710
14326
|
}
|
|
14711
|
-
|
|
14712
14327
|
//#endregion
|
|
14713
14328
|
//#region src/plugins/zod/v3/toAst/number.ts
|
|
14714
14329
|
function baseNode$17(ctx) {
|
|
@@ -14776,7 +14391,6 @@ function numberToNode$1({ plugin, schema }) {
|
|
|
14776
14391
|
const resolver = plugin.config["~resolvers"]?.number;
|
|
14777
14392
|
return resolver?.(ctx) ?? numberResolver$1(ctx);
|
|
14778
14393
|
}
|
|
14779
|
-
|
|
14780
14394
|
//#endregion
|
|
14781
14395
|
//#region src/plugins/zod/v3/toAst/object.ts
|
|
14782
14396
|
function additionalPropertiesNode$1(ctx) {
|
|
@@ -14836,7 +14450,6 @@ function objectToAst$1(options) {
|
|
|
14836
14450
|
expression: resolver?.(ctx) ?? objectResolver$1(ctx)
|
|
14837
14451
|
};
|
|
14838
14452
|
}
|
|
14839
|
-
|
|
14840
14453
|
//#endregion
|
|
14841
14454
|
//#region src/plugins/zod/v3/toAst/string.ts
|
|
14842
14455
|
function baseNode$15(ctx) {
|
|
@@ -14929,7 +14542,6 @@ function stringToNode$1({ plugin, schema }) {
|
|
|
14929
14542
|
const resolver = plugin.config["~resolvers"]?.string;
|
|
14930
14543
|
return resolver?.(ctx) ?? stringResolver$1(ctx);
|
|
14931
14544
|
}
|
|
14932
|
-
|
|
14933
14545
|
//#endregion
|
|
14934
14546
|
//#region src/plugins/zod/v3/toAst/tuple.ts
|
|
14935
14547
|
function baseNode$14(ctx) {
|
|
@@ -14985,7 +14597,6 @@ function tupleToAst$1({ applyModifiers, plugin, schema, walk, walkerCtx }) {
|
|
|
14985
14597
|
expression: resolver?.(ctx) ?? tupleResolver$1(ctx)
|
|
14986
14598
|
};
|
|
14987
14599
|
}
|
|
14988
|
-
|
|
14989
14600
|
//#endregion
|
|
14990
14601
|
//#region src/plugins/zod/v3/toAst/undefined.ts
|
|
14991
14602
|
function baseNode$13(ctx) {
|
|
@@ -15011,7 +14622,6 @@ function undefinedToAst$1({ plugin, schema }) {
|
|
|
15011
14622
|
const resolver = plugin.config["~resolvers"]?.undefined;
|
|
15012
14623
|
return resolver?.(ctx) ?? undefinedResolver$1(ctx);
|
|
15013
14624
|
}
|
|
15014
|
-
|
|
15015
14625
|
//#endregion
|
|
15016
14626
|
//#region src/plugins/zod/v3/toAst/void.ts
|
|
15017
14627
|
function baseNode$12(ctx) {
|
|
@@ -15037,7 +14647,6 @@ function voidToAst$1({ plugin, schema }) {
|
|
|
15037
14647
|
const resolver = plugin.config["~resolvers"]?.void;
|
|
15038
14648
|
return resolver?.(ctx) ?? voidResolver$1(ctx);
|
|
15039
14649
|
}
|
|
15040
|
-
|
|
15041
14650
|
//#endregion
|
|
15042
14651
|
//#region src/plugins/zod/v3/walker.ts
|
|
15043
14652
|
function createVisitor$1(config = {}) {
|
|
@@ -15333,7 +14942,6 @@ function createVisitor$1(config = {}) {
|
|
|
15333
14942
|
}
|
|
15334
14943
|
};
|
|
15335
14944
|
}
|
|
15336
|
-
|
|
15337
14945
|
//#endregion
|
|
15338
14946
|
//#region src/plugins/zod/v3/processor.ts
|
|
15339
14947
|
function createProcessor$1(plugin) {
|
|
@@ -15380,7 +14988,6 @@ function createProcessor$1(plugin) {
|
|
|
15380
14988
|
}
|
|
15381
14989
|
return { process };
|
|
15382
14990
|
}
|
|
15383
|
-
|
|
15384
14991
|
//#endregion
|
|
15385
14992
|
//#region src/plugins/zod/v3/plugin.ts
|
|
15386
14993
|
const handlerV3 = ({ plugin }) => {
|
|
@@ -15451,7 +15058,6 @@ const handlerV3 = ({ plugin }) => {
|
|
|
15451
15058
|
}
|
|
15452
15059
|
});
|
|
15453
15060
|
};
|
|
15454
|
-
|
|
15455
15061
|
//#endregion
|
|
15456
15062
|
//#region src/plugins/zod/v4/toAst/unknown.ts
|
|
15457
15063
|
function baseNode$11(ctx) {
|
|
@@ -15477,7 +15083,6 @@ function unknownToAst({ plugin, schema }) {
|
|
|
15477
15083
|
const resolver = plugin.config["~resolvers"]?.unknown;
|
|
15478
15084
|
return resolver?.(ctx) ?? unknownResolver(ctx);
|
|
15479
15085
|
}
|
|
15480
|
-
|
|
15481
15086
|
//#endregion
|
|
15482
15087
|
//#region src/plugins/zod/v4/toAst/array.ts
|
|
15483
15088
|
function baseNode$10(ctx) {
|
|
@@ -15573,7 +15178,6 @@ function arrayToAst({ applyModifiers, plugin, schema, walk, walkerCtx }) {
|
|
|
15573
15178
|
expression: resolver?.(ctx) ?? arrayResolver(ctx)
|
|
15574
15179
|
};
|
|
15575
15180
|
}
|
|
15576
|
-
|
|
15577
15181
|
//#endregion
|
|
15578
15182
|
//#region src/plugins/zod/v4/toAst/boolean.ts
|
|
15579
15183
|
function baseNode$9(ctx) {
|
|
@@ -15613,7 +15217,6 @@ function booleanToAst({ plugin, schema }) {
|
|
|
15613
15217
|
const resolver = plugin.config["~resolvers"]?.boolean;
|
|
15614
15218
|
return resolver?.(ctx) ?? booleanResolver(ctx);
|
|
15615
15219
|
}
|
|
15616
|
-
|
|
15617
15220
|
//#endregion
|
|
15618
15221
|
//#region src/plugins/zod/v4/toAst/enum.ts
|
|
15619
15222
|
function itemsNode(ctx) {
|
|
@@ -15679,7 +15282,6 @@ function enumToAst({ plugin, schema }) {
|
|
|
15679
15282
|
const resolver = plugin.config["~resolvers"]?.enum;
|
|
15680
15283
|
return resolver?.(ctx) ?? enumResolver(ctx);
|
|
15681
15284
|
}
|
|
15682
|
-
|
|
15683
15285
|
//#endregion
|
|
15684
15286
|
//#region src/plugins/zod/v4/toAst/never.ts
|
|
15685
15287
|
function baseNode$7(ctx) {
|
|
@@ -15705,7 +15307,6 @@ function neverToAst({ plugin, schema }) {
|
|
|
15705
15307
|
const resolver = plugin.config["~resolvers"]?.never;
|
|
15706
15308
|
return resolver?.(ctx) ?? neverResolver(ctx);
|
|
15707
15309
|
}
|
|
15708
|
-
|
|
15709
15310
|
//#endregion
|
|
15710
15311
|
//#region src/plugins/zod/v4/toAst/null.ts
|
|
15711
15312
|
function baseNode$6(ctx) {
|
|
@@ -15731,7 +15332,6 @@ function nullToAst({ plugin, schema }) {
|
|
|
15731
15332
|
const resolver = plugin.config["~resolvers"]?.null;
|
|
15732
15333
|
return resolver?.(ctx) ?? nullResolver(ctx);
|
|
15733
15334
|
}
|
|
15734
|
-
|
|
15735
15335
|
//#endregion
|
|
15736
15336
|
//#region src/plugins/zod/v4/toAst/number.ts
|
|
15737
15337
|
function baseNode$5(ctx) {
|
|
@@ -15799,7 +15399,6 @@ function numberToNode({ plugin, schema }) {
|
|
|
15799
15399
|
const resolver = plugin.config["~resolvers"]?.number;
|
|
15800
15400
|
return resolver?.(ctx) ?? numberResolver(ctx);
|
|
15801
15401
|
}
|
|
15802
|
-
|
|
15803
15402
|
//#endregion
|
|
15804
15403
|
//#region src/plugins/zod/v4/toAst/object.ts
|
|
15805
15404
|
function additionalPropertiesNode(ctx) {
|
|
@@ -15859,7 +15458,6 @@ function objectToAst(options) {
|
|
|
15859
15458
|
expression: resolver?.(ctx) ?? objectResolver(ctx)
|
|
15860
15459
|
};
|
|
15861
15460
|
}
|
|
15862
|
-
|
|
15863
15461
|
//#endregion
|
|
15864
15462
|
//#region src/plugins/zod/v4/toAst/string.ts
|
|
15865
15463
|
function baseNode$3(ctx) {
|
|
@@ -15954,7 +15552,6 @@ function stringToNode({ plugin, schema }) {
|
|
|
15954
15552
|
const resolver = plugin.config["~resolvers"]?.string;
|
|
15955
15553
|
return resolver?.(ctx) ?? stringResolver(ctx);
|
|
15956
15554
|
}
|
|
15957
|
-
|
|
15958
15555
|
//#endregion
|
|
15959
15556
|
//#region src/plugins/zod/v4/toAst/tuple.ts
|
|
15960
15557
|
function baseNode$2(ctx) {
|
|
@@ -16010,7 +15607,6 @@ function tupleToAst({ applyModifiers, plugin, schema, walk, walkerCtx }) {
|
|
|
16010
15607
|
expression: resolver?.(ctx) ?? tupleResolver(ctx)
|
|
16011
15608
|
};
|
|
16012
15609
|
}
|
|
16013
|
-
|
|
16014
15610
|
//#endregion
|
|
16015
15611
|
//#region src/plugins/zod/v4/toAst/undefined.ts
|
|
16016
15612
|
function baseNode$1(ctx) {
|
|
@@ -16036,7 +15632,6 @@ function undefinedToAst({ plugin, schema }) {
|
|
|
16036
15632
|
const resolver = plugin.config["~resolvers"]?.undefined;
|
|
16037
15633
|
return resolver?.(ctx) ?? undefinedResolver(ctx);
|
|
16038
15634
|
}
|
|
16039
|
-
|
|
16040
15635
|
//#endregion
|
|
16041
15636
|
//#region src/plugins/zod/v4/toAst/void.ts
|
|
16042
15637
|
function baseNode(ctx) {
|
|
@@ -16062,7 +15657,6 @@ function voidToAst({ plugin, schema }) {
|
|
|
16062
15657
|
const resolver = plugin.config["~resolvers"]?.void;
|
|
16063
15658
|
return resolver?.(ctx) ?? voidResolver(ctx);
|
|
16064
15659
|
}
|
|
16065
|
-
|
|
16066
15660
|
//#endregion
|
|
16067
15661
|
//#region src/plugins/zod/v4/walker.ts
|
|
16068
15662
|
function createVisitor(config = {}) {
|
|
@@ -16364,7 +15958,6 @@ function createVisitor(config = {}) {
|
|
|
16364
15958
|
}
|
|
16365
15959
|
};
|
|
16366
15960
|
}
|
|
16367
|
-
|
|
16368
15961
|
//#endregion
|
|
16369
15962
|
//#region src/plugins/zod/v4/processor.ts
|
|
16370
15963
|
function createProcessor(plugin) {
|
|
@@ -16411,7 +16004,6 @@ function createProcessor(plugin) {
|
|
|
16411
16004
|
}
|
|
16412
16005
|
return { process };
|
|
16413
16006
|
}
|
|
16414
|
-
|
|
16415
16007
|
//#endregion
|
|
16416
16008
|
//#region src/plugins/zod/v4/plugin.ts
|
|
16417
16009
|
const handlerV4 = ({ plugin }) => {
|
|
@@ -16483,7 +16075,6 @@ const handlerV4 = ({ plugin }) => {
|
|
|
16483
16075
|
}
|
|
16484
16076
|
});
|
|
16485
16077
|
};
|
|
16486
|
-
|
|
16487
16078
|
//#endregion
|
|
16488
16079
|
//#region src/plugins/zod/plugin.ts
|
|
16489
16080
|
const handler = (args) => {
|
|
@@ -16494,7 +16085,6 @@ const handler = (args) => {
|
|
|
16494
16085
|
default: return handlerV4(args);
|
|
16495
16086
|
}
|
|
16496
16087
|
};
|
|
16497
|
-
|
|
16498
16088
|
//#endregion
|
|
16499
16089
|
//#region src/plugins/zod/config.ts
|
|
16500
16090
|
const defaultConfig = {
|
|
@@ -16849,11 +16439,7 @@ const defaultConfig = {
|
|
|
16849
16439
|
},
|
|
16850
16440
|
tags: ["validator"]
|
|
16851
16441
|
};
|
|
16852
|
-
|
|
16853
|
-
* Type helper for Zod plugin, returns {@link Plugin.Config} object
|
|
16854
|
-
*/
|
|
16855
|
-
const defineConfig = definePluginConfig(defaultConfig);
|
|
16856
|
-
|
|
16442
|
+
definePluginConfig(defaultConfig);
|
|
16857
16443
|
//#endregion
|
|
16858
16444
|
//#region src/plugins/config.ts
|
|
16859
16445
|
const defaultPluginConfigs = {
|
|
@@ -16885,7 +16471,6 @@ const defaultPluginConfigs = {
|
|
|
16885
16471
|
valibot: defaultConfig$1,
|
|
16886
16472
|
zod: defaultConfig
|
|
16887
16473
|
};
|
|
16888
|
-
|
|
16889
16474
|
//#endregion
|
|
16890
16475
|
//#region src/config/plugins.ts
|
|
16891
16476
|
/**
|
|
@@ -16969,7 +16554,6 @@ function getPlugins({ dependencies, userConfig }) {
|
|
|
16969
16554
|
userPluginsConfig
|
|
16970
16555
|
});
|
|
16971
16556
|
}
|
|
16972
|
-
|
|
16973
16557
|
//#endregion
|
|
16974
16558
|
//#region src/config/resolve.ts
|
|
16975
16559
|
function resolveConfig(validated, dependencies) {
|
|
@@ -17012,7 +16596,6 @@ function resolveConfig(validated, dependencies) {
|
|
|
17012
16596
|
index: validated.job.index
|
|
17013
16597
|
};
|
|
17014
16598
|
}
|
|
17015
|
-
|
|
17016
16599
|
//#endregion
|
|
17017
16600
|
//#region src/config/validate.ts
|
|
17018
16601
|
function validateJobs(jobs) {
|
|
@@ -17027,7 +16610,6 @@ function validateJobs(jobs) {
|
|
|
17027
16610
|
};
|
|
17028
16611
|
});
|
|
17029
16612
|
}
|
|
17030
|
-
|
|
17031
16613
|
//#endregion
|
|
17032
16614
|
//#region src/config/init.ts
|
|
17033
16615
|
/**
|
|
@@ -17062,7 +16644,7 @@ async function resolveJobs({ logger, userConfigs }) {
|
|
|
17062
16644
|
results: resolvedJobs
|
|
17063
16645
|
};
|
|
17064
16646
|
}
|
|
17065
|
-
|
|
17066
16647
|
//#endregion
|
|
17067
16648
|
export { postProcessors as _, clientDefaultConfig as a, TypeScriptRenderer as c, reserved as d, keywords as f, getTypedConfig as g, getClientPlugin as h, generateClientBundle as i, TsDslContext as l, TsDsl as m, defaultPlugins as n, clientDefaultMeta as o, regexp as p, clientPluginHandler as r, $ as s, resolveJobs as t, ctx as u };
|
|
17068
|
-
|
|
16649
|
+
|
|
16650
|
+
//# sourceMappingURL=init-CXAVfp7x.mjs.map
|