@nestia/sdk 1.3.2 → 1.3.3
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/assets/config/nestia.config.ts +70 -70
- package/lib/INestiaConfig.d.ts +13 -0
- package/lib/executable/internal/NestiaSdkConfig.js +6 -2
- package/lib/executable/internal/NestiaSdkConfig.js.map +1 -1
- package/lib/executable/sdk.js +11 -11
- package/lib/generates/SwaggerGenerator.js +9 -9
- package/lib/generates/internal/DistributionComposer.js +1 -1
- package/lib/generates/internal/DistributionComposer.js.map +1 -1
- package/lib/generates/internal/E2eFileProgrammer.js +12 -12
- package/lib/generates/internal/SdkFileProgrammer.js +3 -1
- package/lib/generates/internal/SdkFileProgrammer.js.map +1 -1
- package/lib/generates/internal/SdkFunctionProgrammer.js +24 -43
- package/lib/generates/internal/SdkFunctionProgrammer.js.map +1 -1
- package/package.json +4 -4
- package/src/INestiaConfig.ts +204 -190
- package/src/NestiaSdkApplication.ts +262 -262
- package/src/analyses/ControllerAnalyzer.ts +261 -261
- package/src/analyses/GenericAnalyzer.ts +53 -53
- package/src/analyses/ImportAnalyzer.ts +164 -164
- package/src/analyses/PathAnalyzer.ts +58 -58
- package/src/analyses/ReflectAnalyzer.ts +321 -321
- package/src/executable/internal/CommandParser.ts +15 -15
- package/src/executable/internal/NestiaConfigCompilerOptions.ts +18 -18
- package/src/executable/internal/NestiaSdkCommand.ts +156 -156
- package/src/executable/internal/NestiaSdkConfig.ts +36 -36
- package/src/executable/internal/nestia.config.getter.ts +12 -12
- package/src/executable/sdk.ts +70 -70
- package/src/generates/E2eGenerator.ts +67 -67
- package/src/generates/SdkGenerator.ts +56 -56
- package/src/generates/SwaggerGenerator.ts +504 -504
- package/src/generates/internal/DistributionComposer.ts +98 -97
- package/src/generates/internal/E2eFileProgrammer.ts +135 -135
- package/src/generates/internal/SdkFileProgrammer.ts +148 -144
- package/src/generates/internal/SdkFunctionProgrammer.ts +30 -52
- package/src/generates/internal/SdkRouteDirectory.ts +21 -21
- package/src/index.ts +4 -4
- package/src/module.ts +2 -2
- package/src/structures/IController.ts +31 -31
- package/src/structures/IRoute.ts +39 -39
- package/src/structures/ISwaggerDocument.ts +120 -120
- package/src/structures/ITypeTuple.ts +6 -6
- package/src/structures/MethodType.ts +11 -11
- package/src/structures/ParamCategory.ts +1 -1
- package/src/structures/TypeEntry.ts +22 -22
- package/src/utils/ArrayUtil.ts +26 -26
- package/src/utils/FileRetriever.ts +22 -22
- package/src/utils/ImportDictionary.ts +56 -56
- package/src/utils/MapUtil.ts +14 -14
- package/src/utils/NestiaConfigUtil.ts +21 -21
- package/src/utils/SourceFinder.ts +60 -60
- package/src/utils/StripEnums.ts +10 -10
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import { INestiaSdkConfiguration } from "@nestia/sdk";
|
|
2
|
-
|
|
3
|
-
export const NESTIA_CONFIG: INestiaSdkConfiguration = {
|
|
4
|
-
/**
|
|
5
|
-
* List of files or directories containing the NestJS controller classes.
|
|
6
|
-
*/
|
|
7
|
-
input: "src/controllers",
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Output directory that SDK would be placed in.
|
|
11
|
-
*
|
|
12
|
-
* If not configured, you can't build the SDK library.
|
|
13
|
-
*/
|
|
14
|
-
output: "src/api",
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Whether to assert parameter types or not.
|
|
18
|
-
*
|
|
19
|
-
* If you configure this property to be `true`, all of the function parameters would be
|
|
20
|
-
* checked through the [typia](https://github.com/samchon/typia#runtime-type-checkers).
|
|
21
|
-
* This option would make your SDK library slower, but would enahcne the type safety even
|
|
22
|
-
* in the runtime level.
|
|
23
|
-
*
|
|
24
|
-
* @default false
|
|
25
|
-
*/
|
|
26
|
-
// assert: true,
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Whether to optimize JSON string conversion 2x faster or not.
|
|
30
|
-
*
|
|
31
|
-
* If you configure this property to be `true`, the SDK library would utilize the
|
|
32
|
-
* [typia](https://github.com/samchon/typia#fastest-json-string-converter)
|
|
33
|
-
* and the JSON string conversion speed really be 2x faster.
|
|
34
|
-
*
|
|
35
|
-
* @default false
|
|
36
|
-
*/
|
|
37
|
-
// json: true,
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Whether to wrap DTO by primitive type.
|
|
41
|
-
*
|
|
42
|
-
* If you don't configure this property as `false`, all of DTOs in the
|
|
43
|
-
* SDK library would be automatically wrapped by {@link Primitive} type.
|
|
44
|
-
*
|
|
45
|
-
* For refenrece, if a DTO type be capsuled by the {@link Primitive} type,
|
|
46
|
-
* all of methods in the DTO type would be automatically erased. Also, if
|
|
47
|
-
* the DTO has a `toJSON()` method, the DTO type would be automatically
|
|
48
|
-
* converted to return type of the `toJSON()` method.
|
|
49
|
-
*
|
|
50
|
-
* @default true
|
|
51
|
-
*/
|
|
52
|
-
// primitive: false,
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* Building `swagger.json` is also possible.
|
|
56
|
-
*
|
|
57
|
-
* If not specified, you can't build the `swagger.json`.
|
|
58
|
-
*/
|
|
59
|
-
swagger: {
|
|
60
|
-
/**
|
|
61
|
-
* Output path of the `swagger.json`.
|
|
62
|
-
*
|
|
63
|
-
* If you've configured only directory, the file name would be the `swagger.json`.
|
|
64
|
-
* Otherwise you've configured the full path with file name and extension, the
|
|
65
|
-
* `swagger.json` file would be renamed to it.
|
|
66
|
-
*/
|
|
67
|
-
output: "dist/swagger.json",
|
|
68
|
-
},
|
|
69
|
-
};
|
|
70
|
-
export default NESTIA_CONFIG;
|
|
1
|
+
import { INestiaSdkConfiguration } from "@nestia/sdk";
|
|
2
|
+
|
|
3
|
+
export const NESTIA_CONFIG: INestiaSdkConfiguration = {
|
|
4
|
+
/**
|
|
5
|
+
* List of files or directories containing the NestJS controller classes.
|
|
6
|
+
*/
|
|
7
|
+
input: "src/controllers",
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Output directory that SDK would be placed in.
|
|
11
|
+
*
|
|
12
|
+
* If not configured, you can't build the SDK library.
|
|
13
|
+
*/
|
|
14
|
+
output: "src/api",
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Whether to assert parameter types or not.
|
|
18
|
+
*
|
|
19
|
+
* If you configure this property to be `true`, all of the function parameters would be
|
|
20
|
+
* checked through the [typia](https://github.com/samchon/typia#runtime-type-checkers).
|
|
21
|
+
* This option would make your SDK library slower, but would enahcne the type safety even
|
|
22
|
+
* in the runtime level.
|
|
23
|
+
*
|
|
24
|
+
* @default false
|
|
25
|
+
*/
|
|
26
|
+
// assert: true,
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Whether to optimize JSON string conversion 2x faster or not.
|
|
30
|
+
*
|
|
31
|
+
* If you configure this property to be `true`, the SDK library would utilize the
|
|
32
|
+
* [typia](https://github.com/samchon/typia#fastest-json-string-converter)
|
|
33
|
+
* and the JSON string conversion speed really be 2x faster.
|
|
34
|
+
*
|
|
35
|
+
* @default false
|
|
36
|
+
*/
|
|
37
|
+
// json: true,
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Whether to wrap DTO by primitive type.
|
|
41
|
+
*
|
|
42
|
+
* If you don't configure this property as `false`, all of DTOs in the
|
|
43
|
+
* SDK library would be automatically wrapped by {@link Primitive} type.
|
|
44
|
+
*
|
|
45
|
+
* For refenrece, if a DTO type be capsuled by the {@link Primitive} type,
|
|
46
|
+
* all of methods in the DTO type would be automatically erased. Also, if
|
|
47
|
+
* the DTO has a `toJSON()` method, the DTO type would be automatically
|
|
48
|
+
* converted to return type of the `toJSON()` method.
|
|
49
|
+
*
|
|
50
|
+
* @default true
|
|
51
|
+
*/
|
|
52
|
+
// primitive: false,
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* Building `swagger.json` is also possible.
|
|
56
|
+
*
|
|
57
|
+
* If not specified, you can't build the `swagger.json`.
|
|
58
|
+
*/
|
|
59
|
+
swagger: {
|
|
60
|
+
/**
|
|
61
|
+
* Output path of the `swagger.json`.
|
|
62
|
+
*
|
|
63
|
+
* If you've configured only directory, the file name would be the `swagger.json`.
|
|
64
|
+
* Otherwise you've configured the full path with file name and extension, the
|
|
65
|
+
* `swagger.json` file would be renamed to it.
|
|
66
|
+
*/
|
|
67
|
+
output: "dist/swagger.json",
|
|
68
|
+
},
|
|
69
|
+
};
|
|
70
|
+
export default NESTIA_CONFIG;
|
package/lib/INestiaConfig.d.ts
CHANGED
|
@@ -108,6 +108,19 @@ export interface INestiaConfig {
|
|
|
108
108
|
* @default true
|
|
109
109
|
*/
|
|
110
110
|
primitive?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Allow random data generation in SDK level.
|
|
113
|
+
*
|
|
114
|
+
* If you configure this property to be `true`, random data generator would be
|
|
115
|
+
* installed in the SDK library. Client developer can utilize the built-in
|
|
116
|
+
* random data generator, instead of communicating with the backend server,
|
|
117
|
+
* just by configuring {@link IConnection.random} property to be `true`.
|
|
118
|
+
*
|
|
119
|
+
* For reference, random generator would utilize `typia.random<T>()` function.
|
|
120
|
+
*
|
|
121
|
+
* @default false
|
|
122
|
+
*/
|
|
123
|
+
random?: boolean;
|
|
111
124
|
}
|
|
112
125
|
export declare namespace INestiaConfig {
|
|
113
126
|
/**
|
|
@@ -67,7 +67,7 @@ var NestiaSdkConfig;
|
|
|
67
67
|
const __is = input => {
|
|
68
68
|
const $join = typia_1.assert.join;
|
|
69
69
|
const $is_custom = typia_1.assert.is_custom;
|
|
70
|
-
const $io0 = input => (undefined === input.swagger || "object" === typeof input.swagger && null !== input.swagger && $io1(input.swagger)) && (null !== input.input && undefined !== input.input && ("string" === typeof input.input || (Array.isArray(input.input) && input.input.every(elem => "string" === typeof elem) || "object" === typeof input.input && null !== input.input && $io15(input.input)))) && (undefined === input.output || "string" === typeof input.output) && (undefined === input.distribute || "string" === typeof input.distribute) && (undefined === input.e2e || "string" === typeof input.e2e) && (undefined === input.compilerOptions || "object" === typeof input.compilerOptions && null !== input.compilerOptions &&
|
|
70
|
+
const $io0 = input => (undefined === input.swagger || "object" === typeof input.swagger && null !== input.swagger && $io1(input.swagger)) && (null !== input.input && undefined !== input.input && ("string" === typeof input.input || (Array.isArray(input.input) && input.input.every(elem => "string" === typeof elem) || "object" === typeof input.input && null !== input.input && $io15(input.input)))) && (undefined === input.output || "string" === typeof input.output) && (undefined === input.distribute || "string" === typeof input.distribute) && (undefined === input.e2e || "string" === typeof input.e2e) && (undefined === input.compilerOptions || "object" === typeof input.compilerOptions && null !== input.compilerOptions && $io16(input.compilerOptions)) && (undefined === input.assert || "boolean" === typeof input.assert) && (undefined === input.json || "boolean" === typeof input.json) && (undefined === input.primitive || "boolean" === typeof input.primitive) && (undefined === input.random || "boolean" === typeof input.random);
|
|
71
71
|
const $io1 = input => "string" === typeof input.output && (undefined === input.info || "object" === typeof input.info && null !== input.info && false === Array.isArray(input.info) && $io2(input.info)) && (undefined === input.servers || Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.security || "object" === typeof input.security && null !== input.security && false === Array.isArray(input.security) && $io4(input.security));
|
|
72
72
|
const $io2 = input => (undefined === input.version || "string" === typeof input.version) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description);
|
|
73
73
|
const $io3 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description);
|
|
@@ -173,7 +173,7 @@ var NestiaSdkConfig;
|
|
|
173
173
|
path: _path + ".e2e",
|
|
174
174
|
expected: "(string | undefined)",
|
|
175
175
|
value: input.e2e
|
|
176
|
-
})) && (undefined === input.compilerOptions || ("object" === typeof input.compilerOptions && null !== input.compilerOptions
|
|
176
|
+
})) && (undefined === input.compilerOptions || ("object" === typeof input.compilerOptions && null !== input.compilerOptions || $guard(_exceptionable, {
|
|
177
177
|
path: _path + ".compilerOptions",
|
|
178
178
|
expected: "(StripEnums<ts.CompilerOptions> | undefined)",
|
|
179
179
|
value: input.compilerOptions
|
|
@@ -193,6 +193,10 @@ var NestiaSdkConfig;
|
|
|
193
193
|
path: _path + ".primitive",
|
|
194
194
|
expected: "(boolean | undefined)",
|
|
195
195
|
value: input.primitive
|
|
196
|
+
})) && (undefined === input.random || "boolean" === typeof input.random || $guard(_exceptionable, {
|
|
197
|
+
path: _path + ".random",
|
|
198
|
+
expected: "(boolean | undefined)",
|
|
199
|
+
value: input.random
|
|
196
200
|
}));
|
|
197
201
|
const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.output || $guard(_exceptionable, {
|
|
198
202
|
path: _path + ".output",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NestiaSdkConfig.js","sourceRoot":"","sources":["../../../src/executable/internal/NestiaSdkConfig.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4CAAoB;AACpB,gDAAwB;AACxB,gDAAkC;AAClC,qDAAkD;AAElD,iCAA+B;AAI/B,IAAiB,eAAe,CA0B/B;AA1BD,WAAiB,eAAe;IAC5B,SAAgB,GAAG;QACf,OAAO,SAAS,CAAC,GAAG,EAAE,CAAC;IAC3B,CAAC;IAFe,mBAAG,MAElB,CAAA;IAED,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,GAAS,EAAE;;QACvC,IAAI,YAAE,CAAC,UAAU,CAAC,kBAAkB,CAAC,KAAK,KAAK;YAAE,OAAO,IAAI,CAAC;QAE7D,MAAM,CAAC,QAAQ,CAAC;YACZ,IAAI,EAAE,KAAK;YACX,eAAe,EAAE;gBACb,MAAM,EAAE,UAAU;gBAClB,MAAM,EAAE,IAAI;aACf;SACJ,CAAC,CAAC;QAEH,MAAM,MAAM,GACR,YAAa,cAAI,CAAC,OAAO,CAAC,kBAAkB,CAAC,0DAAC,CAAC;QACnD,IAAI,OAAO,MAAM,KAAK,QAAQ;YAC1B,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;QAExE,MAAM,MAAM,GACR,OAAO,MAAM,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;;;;;WAAC,MAAM,EAAE;IAC1B,CAAC,CAAA,CAAC,CAAC;AACP,CAAC,EA1BgB,eAAe,GAAf,uBAAe,KAAf,uBAAe,QA0B/B"}
|
package/lib/executable/sdk.js
CHANGED
|
@@ -40,17 +40,17 @@ const child_process_1 = __importDefault(require("child_process"));
|
|
|
40
40
|
const fs_1 = __importDefault(require("fs"));
|
|
41
41
|
const process_1 = __importDefault(require("process"));
|
|
42
42
|
const CommandParser_1 = require("./internal/CommandParser");
|
|
43
|
-
const USAGE = `Wrong command has been detected. Use like below:
|
|
44
|
-
|
|
45
|
-
npx @nestia/sdk [command] [options?]
|
|
46
|
-
|
|
47
|
-
1. npx @nestia/sdk dependencies --manager (npm|pnpm|yarn)
|
|
48
|
-
- npx @nestia/sdk dependencies
|
|
49
|
-
- npx @nestia/sdk dependencies --manager pnpm
|
|
50
|
-
2. npx @nestia/sdk init
|
|
51
|
-
3. npx @nestia/sdk sdk
|
|
52
|
-
4. npx @nestia/sdk swagger
|
|
53
|
-
5. npx @nestia/sdk e2e
|
|
43
|
+
const USAGE = `Wrong command has been detected. Use like below:
|
|
44
|
+
|
|
45
|
+
npx @nestia/sdk [command] [options?]
|
|
46
|
+
|
|
47
|
+
1. npx @nestia/sdk dependencies --manager (npm|pnpm|yarn)
|
|
48
|
+
- npx @nestia/sdk dependencies
|
|
49
|
+
- npx @nestia/sdk dependencies --manager pnpm
|
|
50
|
+
2. npx @nestia/sdk init
|
|
51
|
+
3. npx @nestia/sdk sdk
|
|
52
|
+
4. npx @nestia/sdk swagger
|
|
53
|
+
5. npx @nestia/sdk e2e
|
|
54
54
|
`;
|
|
55
55
|
function halt(desc) {
|
|
56
56
|
console.error(desc);
|
|
@@ -334,15 +334,15 @@ const warning = new VariadicSingleton_1.VariadicSingleton((encrypted) => {
|
|
|
334
334
|
: `[EncryptedRoute.${method[0].toUpperCase()}.${method
|
|
335
335
|
.substring(1)
|
|
336
336
|
.toLowerCase()}](https://github.com/samchon/@nestia/core#encryptedroute)`;
|
|
337
|
-
return `## Warning
|
|
338
|
-
${summary}
|
|
339
|
-
|
|
340
|
-
The ${type} body data would be encrypted as "AES-128(256) / CBC mode / PKCS#5 Padding / Base64 Encoding", through the ${component} component.
|
|
341
|
-
|
|
342
|
-
Therefore, just utilize this swagger editor only for referencing. If you need to call the real API, using [SDK](https://github.com/samchon/nestia#software-development-kit) would be much better.
|
|
343
|
-
|
|
344
|
-
-----------------
|
|
345
|
-
|
|
337
|
+
return `## Warning
|
|
338
|
+
${summary}
|
|
339
|
+
|
|
340
|
+
The ${type} body data would be encrypted as "AES-128(256) / CBC mode / PKCS#5 Padding / Base64 Encoding", through the ${component} component.
|
|
341
|
+
|
|
342
|
+
Therefore, just utilize this swagger editor only for referencing. If you need to call the real API, using [SDK](https://github.com/samchon/nestia#software-development-kit) would be much better.
|
|
343
|
+
|
|
344
|
+
-----------------
|
|
345
|
+
|
|
346
346
|
`;
|
|
347
347
|
});
|
|
348
348
|
});
|
|
@@ -27,7 +27,7 @@ var DistributionComposer;
|
|
|
27
27
|
const exit = () => {
|
|
28
28
|
process.chdir(root);
|
|
29
29
|
};
|
|
30
|
-
const typia = !!config.assert || !!config.json;
|
|
30
|
+
const typia = !!config.assert || !!config.json || !!config.random;
|
|
31
31
|
const done = yield configured({
|
|
32
32
|
typia,
|
|
33
33
|
distribute: config.distribute,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DistributionComposer.js","sourceRoot":"","sources":["../../../src/generates/internal/DistributionComposer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kEAA+B;AAC/B,4CAAoB;AACpB,gDAAwB;AAIxB,IAAiB,oBAAoB,
|
|
1
|
+
{"version":3,"file":"DistributionComposer.js","sourceRoot":"","sources":["../../../src/generates/internal/DistributionComposer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,kEAA+B;AAC/B,4CAAoB;AACpB,gDAAwB;AAIxB,IAAiB,oBAAoB,CAyFpC;AAzFD,W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
103
103
|
const postfix = (array) => (name) => array.at(-1) === name ? array : [...array, name];
|
|
104
104
|
const primitive = (config) => (name) => config.primitive !== false ? `Primitive<${name}>` : name;
|
|
105
105
|
})(E2eFileProgrammer = exports.E2eFileProgrammer || (exports.E2eFileProgrammer = {}));
|
|
106
|
-
const UUID = `const uuid = (): string =>
|
|
107
|
-
"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
108
|
-
const r = (Math.random() * 16) | 0;
|
|
109
|
-
const v = c === "x" ? r : (r & 0x3) | 0x8;
|
|
110
|
-
return v.toString(16);
|
|
106
|
+
const UUID = `const uuid = (): string =>
|
|
107
|
+
"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (c) => {
|
|
108
|
+
const r = (Math.random() * 16) | 0;
|
|
109
|
+
const v = c === "x" ? r : (r & 0x3) | 0x8;
|
|
110
|
+
return v.toString(16);
|
|
111
111
|
});`;
|
|
112
|
-
const DATE = `const date = (): string => {
|
|
113
|
-
const date: Date = new Date(Math.floor(Math.random() * Date.now() * 2));
|
|
114
|
-
return [
|
|
115
|
-
date.getFullYear(),
|
|
116
|
-
(date.getMonth() + 1).toString().padStart(2, "0"),
|
|
117
|
-
date.getDate().toString().padStart(2, "0"),
|
|
118
|
-
].join("-");
|
|
112
|
+
const DATE = `const date = (): string => {
|
|
113
|
+
const date: Date = new Date(Math.floor(Math.random() * Date.now() * 2));
|
|
114
|
+
return [
|
|
115
|
+
date.getFullYear(),
|
|
116
|
+
(date.getMonth() + 1).toString().padStart(2, "0"),
|
|
117
|
+
date.getDate().toString().padStart(2, "0"),
|
|
118
|
+
].join("-");
|
|
119
119
|
}`;
|
|
120
120
|
//# sourceMappingURL=E2eFileProgrammer.js.map
|
|
@@ -95,6 +95,8 @@ var SdkFileProgrammer;
|
|
|
95
95
|
directory.routes.some((route) => route.method === "POST" ||
|
|
96
96
|
route.method === "PUT" ||
|
|
97
97
|
route.method === "PATCH");
|
|
98
|
+
const random = config.random === true &&
|
|
99
|
+
directory.routes.some((s) => s.output.name !== "void");
|
|
98
100
|
const fetcher = ["Fetcher"];
|
|
99
101
|
if (primitived)
|
|
100
102
|
fetcher.push("Primitive");
|
|
@@ -102,7 +104,7 @@ var SdkFileProgrammer;
|
|
|
102
104
|
`import { ${fetcher.join(", ")} } from "@nestia/fetcher";`,
|
|
103
105
|
`import type { IConnection } from "@nestia/fetcher";`,
|
|
104
106
|
];
|
|
105
|
-
if (asserted || json)
|
|
107
|
+
if (asserted || json || random)
|
|
106
108
|
head.push(`import typia from "typia";`);
|
|
107
109
|
if (!importDict.empty())
|
|
108
110
|
head.push("", importDict.toScript(outDir));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdkFileProgrammer.js","sourceRoot":"","sources":["../../../src/generates/internal/SdkFileProgrammer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4CAAoB;AAIpB,mEAAgE;AAChE,mEAAgE;AAChE,2DAAwD;AAExD,IAAiB,iBAAiB,
|
|
1
|
+
{"version":3,"file":"SdkFileProgrammer.js","sourceRoot":"","sources":["../../../src/generates/internal/SdkFileProgrammer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4CAAoB;AAIpB,mEAAgE;AAChE,mEAAgE;AAChE,2DAAwD;AAExD,IAAiB,iBAAiB,CA2IjC;AA3ID,WAAiB,iBAAiB;IAC9B;;gEAE4D;IAC/C,0BAAQ,GACjB,CAAC,MAAqB,EAAE,EAAE,CAC1B,CAAO,SAAmB,EAAiB,EAAE;QACzC,wBAAwB;QACxB,MAAM,IAAI,GAAsB,IAAI,qCAAiB,CACjD,IAAI,EACJ,YAAY,CACf,CAAC;QACF,KAAK,MAAM,KAAK,IAAI,SAAS;YAAE,OAAO,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC;QAEpD,yDAAyD;QACzD,QAAQ,CAAC,IAAI,CAAC,CAAC;QAEf,gBAAgB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AC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC;YAE3D,MAAM,OAAO,GAAa,CAAC,SAAS,CAAC,CAAC;YACtC,IAAI,UAAU;gBAAE,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAE1C,MAAM,IAAI,GAAa;gBACnB,YAAY,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,4BAA4B;gBAC1D,qDAAqD;aACxD,CAAC;YACF,IAAI,QAAQ,IAAI,IAAI,IAAI,MAAM;gBAC1B,IAAI,CAAC,IAAI,CAAC,4BAA4B,CAAC,CAAC;YAC5C,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE;gBACnB,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC;YAE/C,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;SACnE;QAED,MAAM,MAAM,GACR,OAAO;YACP,4BAA4B;YAC5B,cAAc,SAAS,CAAC,MAAM,IAAI;YAClC,uEAAuE;YACvE,OAAO;YACP,sEAAsE;YACtE,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACvB,MAAM,YAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,GAAG,MAAM,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IACtE,CAAC,CAAA,CAAC;AACV,CAAC,EA3IgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QA2IjC"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SdkFunctionProgrammer = void 0;
|
|
4
|
-
const Vector_1 = require("tstl/container/Vector");
|
|
5
4
|
const Pair_1 = require("tstl/utility/Pair");
|
|
6
5
|
const Escaper_1 = require("typia/lib/utils/Escaper");
|
|
7
6
|
var SdkFunctionProgrammer;
|
|
@@ -9,10 +8,8 @@ var SdkFunctionProgrammer;
|
|
|
9
8
|
SdkFunctionProgrammer.generate = (config) => (route) => {
|
|
10
9
|
const query = route.parameters.find((param) => param.category === "query" && param.field === undefined);
|
|
11
10
|
const input = route.parameters.find((param) => param.category === "body");
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
.filter((str) => !!str)
|
|
15
|
-
.join("\n");
|
|
11
|
+
const [x, y, z] = [head, body, tail].map((closure) => closure(config)(route)({ query, input }));
|
|
12
|
+
return `${x} ${y}\n${z}`;
|
|
16
13
|
};
|
|
17
14
|
/* ---------------------------------------------------------
|
|
18
15
|
BODY
|
|
@@ -40,18 +37,30 @@ var SdkFunctionProgrammer;
|
|
|
40
37
|
.join("\n") + "\n\n"
|
|
41
38
|
: "";
|
|
42
39
|
// FUNCTION CALL STATEMENT
|
|
43
|
-
const caller =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
const caller = (awa) => {
|
|
41
|
+
const random = () => route.output.name === "void"
|
|
42
|
+
? "undefined"
|
|
43
|
+
: `typia.random<${route.name}.Output>()`;
|
|
44
|
+
const fetch = (tab) => [
|
|
45
|
+
`${awa ? "await " : ""} Fetcher.fetch(`,
|
|
46
|
+
fetchArguments
|
|
47
|
+
.map((param) => `${tab} ${param}`)
|
|
48
|
+
.join(",\n"),
|
|
49
|
+
`${tab})`,
|
|
50
|
+
].join("\n");
|
|
51
|
+
if (!config.random)
|
|
52
|
+
return fetch(" ".repeat(8));
|
|
53
|
+
return (`connection.random\n` +
|
|
54
|
+
` ? ${random()}\n` +
|
|
55
|
+
` : ${fetch(" ".repeat(10))}`);
|
|
56
|
+
};
|
|
48
57
|
if (route.setHeaders.length === 0)
|
|
49
|
-
return `{\n${assertions} return ${caller};\n}`;
|
|
58
|
+
return `{\n${assertions} return ${caller(false)};\n}`;
|
|
50
59
|
// SET HEADERS
|
|
51
60
|
const content = [
|
|
52
61
|
`{\n`,
|
|
53
62
|
assertions,
|
|
54
|
-
` const output: ${route.name}.Output =
|
|
63
|
+
` const output: ${route.name}.Output = ${caller(true)};\n`,
|
|
55
64
|
"\n",
|
|
56
65
|
` // configure header(s)\n`,
|
|
57
66
|
` connection.headers ??= {};\n`,
|
|
@@ -84,31 +93,6 @@ var SdkFunctionProgrammer;
|
|
|
84
93
|
const comments = route.description
|
|
85
94
|
? route.description.split("\n")
|
|
86
95
|
: [];
|
|
87
|
-
// FILTER TAGS (VULNERABLE PARAMETERS WOULD BE REMOVED)
|
|
88
|
-
const tagList = route.tags.slice();
|
|
89
|
-
if (tagList.length !== 0) {
|
|
90
|
-
const index = tagList.findIndex((t) => t.name === "param");
|
|
91
|
-
if (index !== -1) {
|
|
92
|
-
const capsule = Vector_1.Vector.wrap(tagList);
|
|
93
|
-
capsule.insert(capsule.nth(index), {
|
|
94
|
-
name: "param",
|
|
95
|
-
text: [
|
|
96
|
-
{
|
|
97
|
-
kind: "parameterName",
|
|
98
|
-
text: "connection",
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
kind: "space",
|
|
102
|
-
text: " ",
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
kind: "text",
|
|
106
|
-
text: "connection Information of the remote HTTP(s) server with headers (+encryption password)",
|
|
107
|
-
},
|
|
108
|
-
],
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
96
|
// COMPLETE THE COMMENT
|
|
113
97
|
if (!!comments.length)
|
|
114
98
|
comments.push("");
|
|
@@ -135,8 +119,7 @@ var SdkFunctionProgrammer;
|
|
|
135
119
|
comments.map((str) => ` * ${str}`).join("\n") +
|
|
136
120
|
"\n" +
|
|
137
121
|
" */\n" +
|
|
138
|
-
`export
|
|
139
|
-
` (\n` +
|
|
122
|
+
`export async function ${route.name} (\n` +
|
|
140
123
|
`${parameters.map((str) => ` ${str}`).join(",\n")}\n` +
|
|
141
124
|
` ): Promise<${output}>`);
|
|
142
125
|
};
|
|
@@ -156,8 +139,7 @@ var SdkFunctionProgrammer;
|
|
|
156
139
|
query: props.query,
|
|
157
140
|
parameters,
|
|
158
141
|
});
|
|
159
|
-
return (`export namespace ${route.name}\n` +
|
|
160
|
-
"{\n" +
|
|
142
|
+
return (`export namespace ${route.name} {\n` +
|
|
161
143
|
(types.length !== 0
|
|
162
144
|
? types
|
|
163
145
|
.map((tuple) => ` export type ${tuple.first} = ${config.primitive !== false
|
|
@@ -178,8 +160,7 @@ var SdkFunctionProgrammer;
|
|
|
178
160
|
"\n" +
|
|
179
161
|
` export function path(${parameters
|
|
180
162
|
.map((param) => `${param.name}: ${param.type.name}`)
|
|
181
|
-
.join(", ")}): string\n` +
|
|
182
|
-
` {\n` +
|
|
163
|
+
.join(", ")}): string {\n` +
|
|
183
164
|
`${path};\n` +
|
|
184
165
|
` }\n` +
|
|
185
166
|
(config.json === true &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdkFunctionProgrammer.js","sourceRoot":"","sources":["../../../src/generates/internal/SdkFunctionProgrammer.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"SdkFunctionProgrammer.js","sourceRoot":"","sources":["../../../src/generates/internal/SdkFunctionProgrammer.ts"],"names":[],"mappings":";;;AAAA,4CAAyC;AAEzC,qDAAkD;AAKlD,IAAiB,qBAAqB,CAmUrC;AAnUD,WAAiB,qBAAqB;IACrB,8BAAQ,GACjB,CAAC,MAAqB,EAAE,EAAE,CAC1B,CAAC,KAAa,EAAU,EAAE;QACtB,MAAM,KAAK,GAAkC,KAAK,CAAC,UAAU,CAAC,IAAI,CAC9D,CAAC,KAAK,EAAE,EAAE,CACN,KAAK,CAAC,QAAQ,KAAK,OAAO,IAAI,KAAK,CAAC,KAAK,KAAK,SAAS,CAC9D,CAAC;QACF,MAAM,KAAK,GAAkC,KAAK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,KAAK,CAAC,IAAI,KAAK,KAAK,CAAC,KAAK;QACtB,CAAC,CAAC,KAAK,CAAC,IAAI;QACZ,CAAC,CAAC,GACI,iBAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAM,CAAC;YAC1B,CAAC,CAAC,KAAK,CAAC,KAAK;YACb,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CACpC,KAAK,KAAK,CAAC,IAAI,EAAE,CAC1B;SACA,IAAI,CAAC,MAAM,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;AAC1C,CAAC,EAnUgB,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAmUrC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestia/sdk",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"description": "Nestia SDK and Swagger generator",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"tsconfck": "^2.0.1",
|
|
43
43
|
"tsconfig-paths": "^4.1.1",
|
|
44
44
|
"tstl": "^2.5.13",
|
|
45
|
-
"typia": "^4.0.
|
|
45
|
+
"typia": "^4.0.3"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@nestjs/common": ">= 7.0.1",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"reflect-metadata": ">= 0.1.12",
|
|
51
51
|
"ts-node": ">= 10.6.0",
|
|
52
52
|
"typescript": ">= 4.5.2",
|
|
53
|
-
"typia": ">= 4.0.
|
|
53
|
+
"typia": ">= 4.0.3"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@nestia/fetcher": "^1.
|
|
56
|
+
"@nestia/fetcher": "^1.3.0",
|
|
57
57
|
"@nestjs/common": ">= 7.0.1",
|
|
58
58
|
"@nestjs/core": ">= 7.0.1",
|
|
59
59
|
"@trivago/prettier-plugin-sort-imports": "^4.0.0",
|