@nestia/sdk 3.17.0 → 4.0.0-dev.20241010-2
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 +0 -1
- package/lib/analyses/ExceptionAnalyzer.js +0 -142
- package/lib/analyses/ExceptionAnalyzer.js.map +1 -1
- package/lib/analyses/TypedHttpRouteAnalyzer.js +10 -6
- package/lib/analyses/TypedHttpRouteAnalyzer.js.map +1 -1
- package/lib/executable/internal/NestiaConfigLoader.js +247 -127
- package/lib/executable/internal/NestiaConfigLoader.js.map +1 -1
- package/lib/generates/SwaggerGenerator.js +46 -11
- package/lib/generates/SwaggerGenerator.js.map +1 -1
- package/lib/generates/internal/E2eFileProgrammer.js +4 -4
- package/lib/generates/internal/E2eFileProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkDistributionComposer.js +34 -5
- package/lib/generates/internal/SdkDistributionComposer.js.map +1 -1
- package/lib/generates/internal/SdkHttpFunctionProgrammer.js +6 -6
- package/lib/generates/internal/SdkHttpFunctionProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkHttpNamespaceProgrammer.js +7 -7
- package/lib/generates/internal/SdkHttpNamespaceProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkHttpSimulationProgrammer.js +22 -19
- package/lib/generates/internal/SdkHttpSimulationProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.js +4 -4
- package/lib/generates/internal/SdkWebSocketNamespaceProgrammer.js.map +1 -1
- package/lib/transformers/ISdkOperationTransformerContext.d.ts +1 -1
- package/lib/transformers/SdkOperationProgrammer.js +12 -6
- package/lib/transformers/SdkOperationProgrammer.js.map +1 -1
- package/lib/transformers/SdkOperationTransformer.js +3 -3
- package/lib/transformers/SdkOperationTransformer.js.map +1 -1
- package/package.json +7 -7
- package/src/analyses/TypedHttpRouteAnalyzer.ts +10 -6
- package/src/generates/internal/E2eFileProgrammer.ts +8 -4
- package/src/generates/internal/SdkHttpFunctionProgrammer.ts +14 -7
- package/src/generates/internal/SdkHttpNamespaceProgrammer.ts +14 -8
- package/src/generates/internal/SdkHttpSimulationProgrammer.ts +15 -10
- package/src/generates/internal/SdkWebSocketNamespaceProgrammer.ts +8 -4
- package/src/transformers/ISdkOperationTransformerContext.ts +1 -1
- package/src/transformers/SdkOperationProgrammer.ts +12 -9
- package/src/transformers/SdkOperationTransformer.ts +3 -3
package/README.md
CHANGED
|
@@ -15,7 +15,6 @@ Nestia is a set of helper libraries for NestJS, supporting below features:
|
|
|
15
15
|
- Advanced WebSocket routes
|
|
16
16
|
- `@nestia/sdk`:
|
|
17
17
|
- Swagger generator evolved than ever
|
|
18
|
-
- OpenAI function calling schema generator
|
|
19
18
|
- SDK library generator for clients
|
|
20
19
|
- Mockup Simulator for client applications
|
|
21
20
|
- Automatic E2E test functions generator
|
|
@@ -1,144 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// import path from "path";
|
|
3
|
-
// import ts from "typescript";
|
|
4
|
-
// import { MetadataCollection } from "typia/lib/factories/MetadataCollection";
|
|
5
|
-
// import { MetadataFactory } from "typia/lib/factories/MetadataFactory";
|
|
6
|
-
// import { Metadata } from "typia/lib/schemas/metadata/Metadata";
|
|
7
|
-
// import { INestiaProject } from "../structures/INestiaProject";
|
|
8
|
-
// import { IReflectController } from "../structures/IReflectController";
|
|
9
|
-
// import { IReflectHttpOperation } from "../structures/IReflectHttpOperation";
|
|
10
|
-
// import { ITypeTuple } from "../structures/ITypeTuple";
|
|
11
|
-
// import { ITypedHttpRoute } from "../structures/ITypedHttpRoute";
|
|
12
|
-
// import { GenericAnalyzer } from "./GenericAnalyzer";
|
|
13
|
-
// import { ImportAnalyzer } from "./ImportAnalyzer";
|
|
14
|
-
// export namespace ExceptionAnalyzer {
|
|
15
|
-
// export const analyze =
|
|
16
|
-
// (project: INestiaProject) =>
|
|
17
|
-
// (props: {
|
|
18
|
-
// generics: GenericAnalyzer.Dictionary;
|
|
19
|
-
// imports: ImportAnalyzer.Dictionary;
|
|
20
|
-
// controller: IReflectController;
|
|
21
|
-
// operation: IReflectHttpOperation;
|
|
22
|
-
// declaration: ts.MethodDeclaration;
|
|
23
|
-
// }): Record<
|
|
24
|
-
// number | "2XX" | "3XX" | "4XX" | "5XX",
|
|
25
|
-
// ITypedHttpRoute.IOutput
|
|
26
|
-
// > => {
|
|
27
|
-
// const output: Record<
|
|
28
|
-
// number | "2XX" | "3XX" | "4XX" | "5XX",
|
|
29
|
-
// ITypedHttpRoute.IOutput
|
|
30
|
-
// > = {} as any;
|
|
31
|
-
// for (const decorator of props.declaration.modifiers ?? [])
|
|
32
|
-
// if (ts.isDecorator(decorator))
|
|
33
|
-
// analyzeTyped(project)({
|
|
34
|
-
// ...props,
|
|
35
|
-
// output,
|
|
36
|
-
// decorator,
|
|
37
|
-
// });
|
|
38
|
-
// return output;
|
|
39
|
-
// };
|
|
40
|
-
// const analyzeTyped =
|
|
41
|
-
// (project: INestiaProject) =>
|
|
42
|
-
// (props: {
|
|
43
|
-
// generics: GenericAnalyzer.Dictionary;
|
|
44
|
-
// imports: ImportAnalyzer.Dictionary;
|
|
45
|
-
// controller: IReflectController;
|
|
46
|
-
// operation: IReflectHttpOperation;
|
|
47
|
-
// output: Record<
|
|
48
|
-
// number | "2XX" | "3XX" | "4XX" | "5XX",
|
|
49
|
-
// ITypedHttpRoute.IOutput
|
|
50
|
-
// >;
|
|
51
|
-
// decorator: ts.Decorator;
|
|
52
|
-
// }): boolean => {
|
|
53
|
-
// // CHECK DECORATOR
|
|
54
|
-
// if (!ts.isCallExpression(props.decorator.expression)) return false;
|
|
55
|
-
// else if ((props.decorator.expression.typeArguments ?? []).length !== 1)
|
|
56
|
-
// return false;
|
|
57
|
-
// // CHECK SIGNATURE
|
|
58
|
-
// const signature: ts.Signature | undefined =
|
|
59
|
-
// project.checker.getResolvedSignature(props.decorator.expression);
|
|
60
|
-
// if (!signature || !signature.declaration) return false;
|
|
61
|
-
// else if (
|
|
62
|
-
// path
|
|
63
|
-
// .resolve(signature.declaration.getSourceFile().fileName)
|
|
64
|
-
// .indexOf(TYPED_EXCEPTION_PATH) === -1
|
|
65
|
-
// )
|
|
66
|
-
// return false;
|
|
67
|
-
// // GET TYPE INFO
|
|
68
|
-
// const status: string | null = getStatus(project.checker)(
|
|
69
|
-
// props.decorator.expression.arguments[0] ?? null,
|
|
70
|
-
// );
|
|
71
|
-
// if (status === null) return false;
|
|
72
|
-
// const node: ts.TypeNode = props.decorator.expression.typeArguments![0];
|
|
73
|
-
// const type: ts.Type = project.checker.getTypeFromTypeNode(node);
|
|
74
|
-
// if (type.isTypeParameter()) {
|
|
75
|
-
// project.errors.push({
|
|
76
|
-
// file: props.controller.file,
|
|
77
|
-
// controller: props.controller.name,
|
|
78
|
-
// function: props.operation.name,
|
|
79
|
-
// message: "TypedException() without generic argument specification.",
|
|
80
|
-
// });
|
|
81
|
-
// return false;
|
|
82
|
-
// }
|
|
83
|
-
// const tuple: ITypeTuple | null = ImportAnalyzer.analyze(project.checker)({
|
|
84
|
-
// generics: props.generics,
|
|
85
|
-
// imports: props.imports,
|
|
86
|
-
// type,
|
|
87
|
-
// });
|
|
88
|
-
// if (tuple === null) {
|
|
89
|
-
// project.errors.push({
|
|
90
|
-
// file: props.controller.file,
|
|
91
|
-
// controller: props.controller.name,
|
|
92
|
-
// function: props.operation.name,
|
|
93
|
-
// message: `TypeException() with unknown type on ${status} status.`,
|
|
94
|
-
// });
|
|
95
|
-
// return false;
|
|
96
|
-
// }
|
|
97
|
-
// // DO ASSIGN
|
|
98
|
-
// const matched: IReflectHttpOperation.IException[] = Object.entries(
|
|
99
|
-
// props.operation.exceptions,
|
|
100
|
-
// )
|
|
101
|
-
// .filter(([key]) => status === key)
|
|
102
|
-
// .map(([_key, value]) => value);
|
|
103
|
-
// for (const m of matched)
|
|
104
|
-
// props.output[m.status] = {
|
|
105
|
-
// type: tuple.type,
|
|
106
|
-
// typeName: tuple.typeName,
|
|
107
|
-
// contentType: "application/json",
|
|
108
|
-
// description: m.description,
|
|
109
|
-
// };
|
|
110
|
-
// return true;
|
|
111
|
-
// };
|
|
112
|
-
// const getStatus =
|
|
113
|
-
// (checker: ts.TypeChecker) =>
|
|
114
|
-
// (expression: ts.Expression | null): string | null => {
|
|
115
|
-
// if (expression === null) return null;
|
|
116
|
-
// const type: ts.Type = checker.getTypeAtLocation(expression);
|
|
117
|
-
// const result = MetadataFactory.analyze(checker)({
|
|
118
|
-
// escape: true,
|
|
119
|
-
// constant: true,
|
|
120
|
-
// absorb: true,
|
|
121
|
-
// })(new MetadataCollection())(type);
|
|
122
|
-
// if (false === result.success) return null;
|
|
123
|
-
// const meta: Metadata = result.data;
|
|
124
|
-
// if (meta.constants.length === 1)
|
|
125
|
-
// return meta.constants[0].values[0].value.toString();
|
|
126
|
-
// else if (meta.escaped && meta.escaped.returns.constants.length === 1)
|
|
127
|
-
// return meta.escaped.returns.constants[0].values[0].value.toString();
|
|
128
|
-
// else if (ts.isStringLiteral(expression)) return expression.text;
|
|
129
|
-
// else if (ts.isNumericLiteral(expression)) {
|
|
130
|
-
// const value: number = Number(expression.text.split("_").join(""));
|
|
131
|
-
// if (false === isNaN(value)) return value.toString();
|
|
132
|
-
// }
|
|
133
|
-
// return null;
|
|
134
|
-
// };
|
|
135
|
-
// }
|
|
136
|
-
// const TYPED_EXCEPTION_PATH = path.join(
|
|
137
|
-
// "node_modules",
|
|
138
|
-
// "@nestia",
|
|
139
|
-
// "core",
|
|
140
|
-
// "lib",
|
|
141
|
-
// "decorators",
|
|
142
|
-
// "TypedException.d.ts",
|
|
143
|
-
// );
|
|
144
2
|
//# sourceMappingURL=ExceptionAnalyzer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ExceptionAnalyzer.js","sourceRoot":"","sources":["../../src/analyses/ExceptionAnalyzer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ExceptionAnalyzer.js","sourceRoot":"","sources":["../../src/analyses/ExceptionAnalyzer.ts"],"names":[],"mappings":""}
|
|
@@ -33,12 +33,16 @@ var TypedHttpRouteAnalyzer;
|
|
|
33
33
|
const errors = [];
|
|
34
34
|
const cast = (next, from, escape) => {
|
|
35
35
|
const metadata = Metadata_1.Metadata.from(next.metadata, props.dictionary);
|
|
36
|
-
const metaErrors = MetadataFactory_1.MetadataFactory.validate(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
36
|
+
const metaErrors = MetadataFactory_1.MetadataFactory.validate({
|
|
37
|
+
options: {
|
|
38
|
+
escape,
|
|
39
|
+
constant: true,
|
|
40
|
+
absorb: true,
|
|
41
|
+
validate: next.validate, // @todo -> CHECK IN TYPIA
|
|
42
|
+
},
|
|
43
|
+
functor: next.validate, // @todo -> CHECK IN TYPIA
|
|
44
|
+
metadata,
|
|
45
|
+
});
|
|
42
46
|
if (metaErrors.length)
|
|
43
47
|
errors.push({
|
|
44
48
|
file: props.controller.file,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TypedHttpRouteAnalyzer.js","sourceRoot":"","sources":["../../src/analyses/TypedHttpRouteAnalyzer.ts"],"names":[],"mappings":";;;AAAA,yEAAsE;AAItE,kEAA+D;AAC/D,sFAAmF;AAEnF,qDAAkD;AASlD,gDAA6C;AAE7C,IAAiB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"TypedHttpRouteAnalyzer.js","sourceRoot":"","sources":["../../src/analyses/TypedHttpRouteAnalyzer.ts"],"names":[],"mappings":";;;AAAA,yEAAsE;AAItE,kEAA+D;AAC/D,sFAAmF;AAEnF,qDAAkD;AASlD,gDAA6C;AAE7C,IAAiB,sBAAsB,CA0JtC;AA1JD,WAAiB,sBAAsB;IACxB,iCAAU,GAAG,CACxB,WAAiC,EACZ,EAAE;QACvB,MAAM,UAAU,GAA0B,EAAE,CAAC;QAC7C,KAAK,MAAM,CAAC,IAAI,WAAW;YACzB,KAAK,MAAM,CAAC,IAAI,CAAC,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