@nestia/migrate 7.3.0 → 7.3.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/lib/bundles/NEST_TEMPLATE.js +2 -2
- package/lib/bundles/NEST_TEMPLATE.js.map +1 -1
- package/lib/bundles/SDK_TEMPLATE.js +1 -1
- package/lib/index.mjs +3 -3
- package/lib/utils/openapi-down-convert/RefVisitor.d.ts +28 -33
- package/lib/utils/openapi-down-convert/RefVisitor.js +20 -16
- package/lib/utils/openapi-down-convert/RefVisitor.js.map +1 -1
- package/lib/utils/openapi-down-convert/converter.d.ts +66 -58
- package/lib/utils/openapi-down-convert/converter.js +59 -49
- package/lib/utils/openapi-down-convert/converter.js.map +1 -1
- package/package.json +8 -8
- package/src/bundles/NEST_TEMPLATE.ts +2 -2
- package/src/bundles/SDK_TEMPLATE.ts +1 -1
- package/src/utils/openapi-down-convert/RefVisitor.ts +28 -33
- package/src/utils/openapi-down-convert/converter.ts +71 -62
@@ -1,28 +1,27 @@
|
|
1
1
|
/** Options for the converter instantiation */
|
2
2
|
export interface ConverterOptions {
|
3
|
-
/**
|
3
|
+
/** If `true`, log conversion transformations to stderr */
|
4
4
|
verbose?: boolean;
|
5
|
-
/**
|
6
|
-
* [Spectral issue
|
5
|
+
/**
|
6
|
+
* If `true`, remove `id` values in schema examples, to bypass [Spectral issue
|
7
|
+
* 2081](https://github.com/stoplightio/spectral/issues/2081)
|
7
8
|
*/
|
8
9
|
deleteExampleWithId?: boolean;
|
9
10
|
/** If `true`, replace a `$ref` object that has siblings into an `allOf` */
|
10
11
|
allOfTransform?: boolean;
|
11
|
-
/**
|
12
|
-
* The authorizationUrl for openIdConnect -> oauth2 transformation
|
13
|
-
*/
|
12
|
+
/** The authorizationUrl for openIdConnect -> oauth2 transformation */
|
14
13
|
authorizationUrl?: string;
|
15
14
|
/** The tokenUrl for openIdConnect -> oauth2 transformation */
|
16
15
|
tokenUrl?: string;
|
17
|
-
/**
|
18
|
-
* This is a simple map in the
|
19
|
-
* `{ scope1: "description of scope1", ... }`
|
16
|
+
/**
|
17
|
+
* Name of YAML/JSON file with scope descriptions. This is a simple map in the
|
18
|
+
* format `{ scope1: "description of scope1", ... }`
|
20
19
|
*/
|
21
20
|
scopeDescriptionFile?: string;
|
22
|
-
/**
|
23
|
-
*
|
24
|
-
*
|
25
|
-
* comments.
|
21
|
+
/**
|
22
|
+
* Earlier versions of the tool converted $comment to x-comment in JSON
|
23
|
+
* Schemas. The tool now deletes $comment values by default. Use this option
|
24
|
+
* to preserve the conversion and not delete comments.
|
26
25
|
*/
|
27
26
|
convertSchemaComments?: boolean;
|
28
27
|
}
|
@@ -39,52 +38,60 @@ export declare class Converter {
|
|
39
38
|
private returnCode;
|
40
39
|
/**
|
41
40
|
* Construct a new Converter
|
42
|
-
*
|
41
|
+
*
|
42
|
+
* @throws Error if the scopeDescriptionFile (if specified) cannot be read or
|
43
|
+
* parsed as YAML/JSON
|
43
44
|
*/
|
44
45
|
constructor(openapiDocument: object, options?: ConverterOptions);
|
45
|
-
/**
|
46
|
+
/**
|
47
|
+
* Load the scopes.yaml file and save in this.scopeDescriptions
|
48
|
+
*
|
46
49
|
* @throws Error if the file cannot be read or parsed as YAML/JSON
|
47
50
|
*/
|
48
51
|
private loadScopeDescriptions;
|
49
52
|
/**
|
50
|
-
* Log a message
|
51
|
-
*
|
53
|
+
* Log a message to console.warn stream if verbose is true
|
54
|
+
*
|
55
|
+
* @param message Parameters for console.warn
|
52
56
|
*/
|
53
57
|
private log;
|
54
58
|
/**
|
55
|
-
* Log a message
|
56
|
-
* if it does not already have that text.
|
57
|
-
*
|
59
|
+
* Log a message to console.warn stream. Prefix the message string with
|
60
|
+
* `Warning: ` if it does not already have that text.
|
61
|
+
*
|
62
|
+
* @param message Parameters for console.warn
|
58
63
|
*/
|
59
64
|
private warn;
|
60
65
|
/**
|
61
|
-
* Log an error message to `console.error` stream. Prefix the message string
|
62
|
-
* if it does not already start with `'Error'`. Increments the
|
63
|
-
* the CLI to throw an Error when done.
|
64
|
-
*
|
66
|
+
* Log an error message to `console.error` stream. Prefix the message string
|
67
|
+
* with `Error: ` if it does not already start with `'Error'`. Increments the
|
68
|
+
* `returnCode`, causing the CLI to throw an Error when done.
|
69
|
+
*
|
70
|
+
* @param message Parameters for `console.error`
|
65
71
|
*/
|
66
72
|
private error;
|
67
73
|
/**
|
68
74
|
* Convert the OpenAPI document to 3.0
|
69
|
-
*
|
75
|
+
*
|
76
|
+
* @returns The converted document. The input is not modified.
|
70
77
|
*/
|
71
78
|
convert(): object;
|
72
79
|
/**
|
73
80
|
* OpenAPI 3.1 uses JSON Schema 2020-12 which allows schema `examples`;
|
74
|
-
* OpenAPI 3.0 uses JSON Scheme Draft 7 which only allows `example`.
|
75
|
-
*
|
81
|
+
* OpenAPI 3.0 uses JSON Scheme Draft 7 which only allows `example`. Replace
|
82
|
+
* all `examples` with `example`, using `examples[0]`
|
76
83
|
*/
|
77
84
|
convertJsonSchemaExamples(): void;
|
78
85
|
private walkNestedSchemaObjects;
|
79
86
|
/**
|
80
|
-
* OpenAPI 3.1 uses JSON Schema 2020-12 which allows `const`
|
81
|
-
*
|
82
|
-
*
|
87
|
+
* OpenAPI 3.1 uses JSON Schema 2020-12 which allows `const` OpenAPI 3.0 uses
|
88
|
+
* JSON Scheme Draft 7 which only allows `enum`. Replace all `const: value`
|
89
|
+
* with `enum: [ value ]`
|
83
90
|
*/
|
84
91
|
convertConstToEnum(): void;
|
85
92
|
/**
|
86
|
-
* Convert 2-element type arrays containing 'null' to
|
87
|
-
*
|
93
|
+
* Convert 2-element type arrays containing 'null' to string type and
|
94
|
+
* `nullable: true`
|
88
95
|
*/
|
89
96
|
convertNullableTypeArray(): void;
|
90
97
|
removeWebhooksObject(): void;
|
@@ -93,43 +100,44 @@ export declare class Converter {
|
|
93
100
|
private deleteSchema$comment;
|
94
101
|
/**
|
95
102
|
* Convert
|
96
|
-
*
|
97
|
-
*
|
98
|
-
*
|
99
|
-
*
|
100
|
-
*
|
101
|
-
*
|
102
|
-
*
|
103
|
-
*
|
104
|
-
*
|
103
|
+
*
|
104
|
+
* contentMediaType: "application/octet-stream";
|
105
|
+
*
|
106
|
+
* To
|
107
|
+
*
|
108
|
+
* format: binary;
|
109
|
+
*
|
110
|
+
* In `type: string` schemas. Warn if schema has a `format` already and it is
|
111
|
+
* not `binary`.
|
105
112
|
*/
|
106
113
|
convertJsonSchemaContentMediaType(): void;
|
107
114
|
/**
|
108
115
|
* Convert
|
109
|
-
*
|
110
|
-
*
|
111
|
-
*
|
112
|
-
*
|
113
|
-
*
|
114
|
-
*
|
115
|
-
*
|
116
|
-
*
|
117
|
-
* and it is not `byte`.
|
116
|
+
*
|
117
|
+
* contentEncoding: base64;
|
118
|
+
*
|
119
|
+
* To
|
120
|
+
*
|
121
|
+
* format: byte;
|
122
|
+
*
|
123
|
+
* In `type: string` schemas. It is an error if the schema has a `format`
|
124
|
+
* already and it is not `byte`.
|
118
125
|
*/
|
119
126
|
convertJsonSchemaContentEncoding(): void;
|
120
127
|
private json;
|
121
128
|
/**
|
122
|
-
* OpenAPI 3.1 defines a new `openIdConnect` security scheme.
|
123
|
-
*
|
124
|
-
*
|
125
|
-
*
|
126
|
-
* URLs to the `authorizationUrl` and `tokenUrl` of `oauth2`.
|
129
|
+
* OpenAPI 3.1 defines a new `openIdConnect` security scheme. Down-convert the
|
130
|
+
* scheme to `oauth2` / authorization code flow. Collect all the scopes used
|
131
|
+
* in any security requirements within operations and add them to the scheme.
|
132
|
+
* Also define the URLs to the `authorizationUrl` and `tokenUrl` of `oauth2`.
|
127
133
|
*/
|
128
134
|
convertSecuritySchemes(): void;
|
129
135
|
/**
|
130
|
-
* Find remaining OpenAPI 3.0 [Reference
|
131
|
-
*
|
132
|
-
*
|
136
|
+
* Find remaining OpenAPI 3.0 [Reference
|
137
|
+
* Objects](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#referenceObject)
|
138
|
+
* and down convert them to [JSON
|
139
|
+
* Reference](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03)
|
140
|
+
* objects with _only_ a `$ref` property.
|
133
141
|
*/
|
134
142
|
simplifyNonSchemaRef(): void;
|
135
143
|
removeLicenseIdentifier(): void;
|
@@ -6,7 +6,9 @@ const RefVisitor_1 = require("./RefVisitor");
|
|
6
6
|
class Converter {
|
7
7
|
/**
|
8
8
|
* Construct a new Converter
|
9
|
-
*
|
9
|
+
*
|
10
|
+
* @throws Error if the scopeDescriptionFile (if specified) cannot be read or
|
11
|
+
* parsed as YAML/JSON
|
10
12
|
*/
|
11
13
|
constructor(openapiDocument, options) {
|
12
14
|
this.verbose = false;
|
@@ -25,7 +27,9 @@ class Converter {
|
|
25
27
|
this.loadScopeDescriptions(options === null || options === void 0 ? void 0 : options.scopeDescriptionFile);
|
26
28
|
this.convertSchemaComments = !!(options === null || options === void 0 ? void 0 : options.convertSchemaComments);
|
27
29
|
}
|
28
|
-
/**
|
30
|
+
/**
|
31
|
+
* Load the scopes.yaml file and save in this.scopeDescriptions
|
32
|
+
*
|
29
33
|
* @throws Error if the file cannot be read or parsed as YAML/JSON
|
30
34
|
*/
|
31
35
|
loadScopeDescriptions(scopeDescriptionFile) {
|
@@ -34,8 +38,9 @@ class Converter {
|
|
34
38
|
}
|
35
39
|
}
|
36
40
|
/**
|
37
|
-
* Log a message
|
38
|
-
*
|
41
|
+
* Log a message to console.warn stream if verbose is true
|
42
|
+
*
|
43
|
+
* @param message Parameters for console.warn
|
39
44
|
*/
|
40
45
|
log(...message) {
|
41
46
|
if (this.verbose) {
|
@@ -43,9 +48,10 @@ class Converter {
|
|
43
48
|
}
|
44
49
|
}
|
45
50
|
/**
|
46
|
-
* Log a message
|
47
|
-
* if it does not already have that text.
|
48
|
-
*
|
51
|
+
* Log a message to console.warn stream. Prefix the message string with
|
52
|
+
* `Warning: ` if it does not already have that text.
|
53
|
+
*
|
54
|
+
* @param message Parameters for console.warn
|
49
55
|
*/
|
50
56
|
warn(...message) {
|
51
57
|
if (!message[0].startsWith("Warning")) {
|
@@ -54,10 +60,11 @@ class Converter {
|
|
54
60
|
console.warn(...message);
|
55
61
|
}
|
56
62
|
/**
|
57
|
-
* Log an error message to `console.error` stream. Prefix the message string
|
58
|
-
* if it does not already start with `'Error'`. Increments the
|
59
|
-
* the CLI to throw an Error when done.
|
60
|
-
*
|
63
|
+
* Log an error message to `console.error` stream. Prefix the message string
|
64
|
+
* with `Error: ` if it does not already start with `'Error'`. Increments the
|
65
|
+
* `returnCode`, causing the CLI to throw an Error when done.
|
66
|
+
*
|
67
|
+
* @param message Parameters for `console.error`
|
61
68
|
*/
|
62
69
|
error(...message) {
|
63
70
|
if (!message[0].startsWith("Error")) {
|
@@ -68,7 +75,8 @@ class Converter {
|
|
68
75
|
}
|
69
76
|
/**
|
70
77
|
* Convert the OpenAPI document to 3.0
|
71
|
-
*
|
78
|
+
*
|
79
|
+
* @returns The converted document. The input is not modified.
|
72
80
|
*/
|
73
81
|
convert() {
|
74
82
|
this.log("Converting from OpenAPI 3.1 to 3.0");
|
@@ -99,8 +107,8 @@ class Converter {
|
|
99
107
|
}
|
100
108
|
/**
|
101
109
|
* OpenAPI 3.1 uses JSON Schema 2020-12 which allows schema `examples`;
|
102
|
-
* OpenAPI 3.0 uses JSON Scheme Draft 7 which only allows `example`.
|
103
|
-
*
|
110
|
+
* OpenAPI 3.0 uses JSON Scheme Draft 7 which only allows `example`. Replace
|
111
|
+
* all `examples` with `example`, using `examples[0]`
|
104
112
|
*/
|
105
113
|
convertJsonSchemaExamples() {
|
106
114
|
const schemaVisitor = (schema) => {
|
@@ -145,9 +153,9 @@ class Converter {
|
|
145
153
|
return schema;
|
146
154
|
}
|
147
155
|
/**
|
148
|
-
* OpenAPI 3.1 uses JSON Schema 2020-12 which allows `const`
|
149
|
-
*
|
150
|
-
*
|
156
|
+
* OpenAPI 3.1 uses JSON Schema 2020-12 which allows `const` OpenAPI 3.0 uses
|
157
|
+
* JSON Scheme Draft 7 which only allows `enum`. Replace all `const: value`
|
158
|
+
* with `enum: [ value ]`
|
151
159
|
*/
|
152
160
|
convertConstToEnum() {
|
153
161
|
const schemaVisitor = (schema) => {
|
@@ -162,8 +170,8 @@ class Converter {
|
|
162
170
|
(0, RefVisitor_1.visitSchemaObjects)(this.openapi30, schemaVisitor);
|
163
171
|
}
|
164
172
|
/**
|
165
|
-
* Convert 2-element type arrays containing 'null' to
|
166
|
-
*
|
173
|
+
* Convert 2-element type arrays containing 'null' to string type and
|
174
|
+
* `nullable: true`
|
167
175
|
*/
|
168
176
|
convertNullableTypeArray() {
|
169
177
|
const schemaVisitor = (schema) => {
|
@@ -231,15 +239,15 @@ class Converter {
|
|
231
239
|
}
|
232
240
|
/**
|
233
241
|
* Convert
|
234
|
-
*
|
235
|
-
*
|
236
|
-
*
|
237
|
-
*
|
238
|
-
*
|
239
|
-
*
|
240
|
-
*
|
241
|
-
*
|
242
|
-
*
|
242
|
+
*
|
243
|
+
* contentMediaType: "application/octet-stream";
|
244
|
+
*
|
245
|
+
* To
|
246
|
+
*
|
247
|
+
* format: binary;
|
248
|
+
*
|
249
|
+
* In `type: string` schemas. Warn if schema has a `format` already and it is
|
250
|
+
* not `binary`.
|
243
251
|
*/
|
244
252
|
convertJsonSchemaContentMediaType() {
|
245
253
|
const schemaVisitor = (schema) => {
|
@@ -268,15 +276,15 @@ class Converter {
|
|
268
276
|
}
|
269
277
|
/**
|
270
278
|
* Convert
|
271
|
-
*
|
272
|
-
*
|
273
|
-
*
|
274
|
-
*
|
275
|
-
*
|
276
|
-
*
|
277
|
-
*
|
278
|
-
*
|
279
|
-
* and it is not `byte`.
|
279
|
+
*
|
280
|
+
* contentEncoding: base64;
|
281
|
+
*
|
282
|
+
* To
|
283
|
+
*
|
284
|
+
* format: byte;
|
285
|
+
*
|
286
|
+
* In `type: string` schemas. It is an error if the schema has a `format`
|
287
|
+
* already and it is not `byte`.
|
280
288
|
*/
|
281
289
|
convertJsonSchemaContentEncoding() {
|
282
290
|
const schemaVisitor = (schema) => {
|
@@ -311,11 +319,10 @@ class Converter {
|
|
311
319
|
return JSON.stringify(x, null, 2);
|
312
320
|
}
|
313
321
|
/**
|
314
|
-
* OpenAPI 3.1 defines a new `openIdConnect` security scheme.
|
315
|
-
*
|
316
|
-
*
|
317
|
-
*
|
318
|
-
* URLs to the `authorizationUrl` and `tokenUrl` of `oauth2`.
|
322
|
+
* OpenAPI 3.1 defines a new `openIdConnect` security scheme. Down-convert the
|
323
|
+
* scheme to `oauth2` / authorization code flow. Collect all the scopes used
|
324
|
+
* in any security requirements within operations and add them to the scheme.
|
325
|
+
* Also define the URLs to the `authorizationUrl` and `tokenUrl` of `oauth2`.
|
319
326
|
*/
|
320
327
|
convertSecuritySchemes() {
|
321
328
|
var _a, _b, _c;
|
@@ -369,9 +376,11 @@ class Converter {
|
|
369
376
|
}
|
370
377
|
}
|
371
378
|
/**
|
372
|
-
* Find remaining OpenAPI 3.0 [Reference
|
373
|
-
*
|
374
|
-
*
|
379
|
+
* Find remaining OpenAPI 3.0 [Reference
|
380
|
+
* Objects](https://github.com/OAI/OpenAPI-Specification/blob/main/versions/3.1.0.md#referenceObject)
|
381
|
+
* and down convert them to [JSON
|
382
|
+
* Reference](https://tools.ietf.org/html/draft-pbryan-zyp-json-ref-03)
|
383
|
+
* objects with _only_ a `$ref` property.
|
375
384
|
*/
|
376
385
|
simplifyNonSchemaRef() {
|
377
386
|
(0, RefVisitor_1.visitRefObjects)(this.openapi30, (node) => {
|
@@ -399,10 +408,11 @@ class Converter {
|
|
399
408
|
// so it is disabled unless the `allOfTransform` option is `true`.
|
400
409
|
convertSchemaRef() {
|
401
410
|
/**
|
402
|
-
* In a JSON Schema, replace `{ blah blah, $ref: "uri"}`
|
403
|
-
*
|
404
|
-
*
|
405
|
-
* or in
|
411
|
+
* In a JSON Schema, replace `{ blah blah, $ref: "uri"}` with `{ blah blah,
|
412
|
+
* allOf: [ $ref: "uri" ]}`
|
413
|
+
*
|
414
|
+
* @param object An object that may contain JSON schemas (directly or in
|
415
|
+
* sub-objects)
|
406
416
|
*/
|
407
417
|
const simplifyRefObjectsInSchemas = (object) => {
|
408
418
|
return (0, RefVisitor_1.visitRefObjects)(object, (node) => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"converter.js","sourceRoot":"","sources":["../../../src/utils/openapi-down-convert/converter.ts"],"names":[],"mappings":";;;AAAA,+EAA+E;AAC/E,6CAOsB;AAyCtB,MAAa,SAAS;IAYpB;;;OAGG;IACH,YAAY,eAAuB,EAAE,OAA0B;QAdvD,YAAO,GAAG,KAAK,CAAC;QAChB,wBAAmB,GAAG,KAAK,CAAC;QAC5B,mBAAc,GAAG,KAAK,CAAC;QAIvB,sBAAiB,GAAG,SAAS,CAAC;QAC9B,0BAAqB,GAAG,KAAK,CAAC;QAC9B,eAAU,GAAG,CAAC,CAAC;QAOrB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC,SAAS,CAAC,eAAe,CAAa,CAAC;QAClE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,CAAC,CAAC;QACzC,IAAI,CAAC,mBAAmB,GAAG,OAAO,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB,CAAC,CAAC;QACjE,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,CAAC,CAAC;QACvD,IAAI,CAAC,gBAAgB;YACnB,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,KAAI,0CAA0C,CAAC;QAC1E,IAAI,CAAC,QAAQ,GAAG,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,QAAQ,KAAI,sCAAsC,CAAC;QAC5E,IAAI,CAAC,qBAAqB,CAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,oBAAoB,CAAC,CAAC;QAC1D,IAAI,CAAC,qBAAq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I,CAAC,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;oBACnC,OAAO,IAAI,CAAC;gBACd,CAAC;qBAAM,CAAC;oBACN,IAAI,CAAC,GAAG,CACN,+BAA+B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,CACpE,CAAC;oBACF,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;oBACtC,OAAO,IAAI,CAAC,IAAI,CAAC;oBACjB,OAAO,IAAI,CAAC;gBACd,CAAC;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC;QAEF,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YACxB,IAAA,+BAAkB,EAChB,IAAI,CAAC,SAAS,EACd,CAAC,MAAoB,EAAgB,EAAE;gBACrC,OAAO,2BAA2B,CAAC,MAAM,CAAC,CAAC;YAC7C,CAAC,CACF,CAAC;QACJ,CAAC;IACH,CAAC;IAEM,MAAM,CAAC,SAAS,CAAC,GAAW;QACjC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,6CAA6C;IACvF,CAAC;CACF;AAveD,8BAueC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nestia/migrate",
|
3
|
-
"version": "7.3.
|
3
|
+
"version": "7.3.2",
|
4
4
|
"description": "Migration program from swagger to NestJS",
|
5
5
|
"typings": "lib/index.d.ts",
|
6
6
|
"main": "lib/index.js",
|
@@ -37,11 +37,11 @@
|
|
37
37
|
},
|
38
38
|
"homepage": "https://nestia.io",
|
39
39
|
"devDependencies": {
|
40
|
-
"@nestia/benchmark": "^7.3.
|
41
|
-
"@nestia/core": "^7.3.
|
42
|
-
"@nestia/e2e": "^7.3.
|
43
|
-
"@nestia/fetcher": "^7.3.
|
44
|
-
"@nestia/sdk": "^7.3.
|
40
|
+
"@nestia/benchmark": "^7.3.2",
|
41
|
+
"@nestia/core": "^7.3.2",
|
42
|
+
"@nestia/e2e": "^7.3.2",
|
43
|
+
"@nestia/fetcher": "^7.3.2",
|
44
|
+
"@nestia/sdk": "^7.3.2",
|
45
45
|
"@nestjs/common": "^11.0.13",
|
46
46
|
"@nestjs/core": "^11.0.13",
|
47
47
|
"@nestjs/platform-express": "^11.0.13",
|
@@ -78,8 +78,8 @@
|
|
78
78
|
"prettier": "^3.3.3",
|
79
79
|
"prettier-plugin-jsdoc": "^1.3.2",
|
80
80
|
"tstl": "^3.0.0",
|
81
|
-
"typescript": "~5.
|
82
|
-
"typia": "^9.
|
81
|
+
"typescript": "~5.9.2",
|
82
|
+
"typia": "^9.6.1"
|
83
83
|
},
|
84
84
|
"files": [
|
85
85
|
"lib",
|
@@ -13,11 +13,11 @@ export const NEST_TEMPLATE: Record<string, string> = {
|
|
13
13
|
"docs/benchmarks/AMD Ryzen 9 7940HS w Radeon 780M Graphics.md": "# Benchmark Report\n> Generated by [`@nestia/benchmark`](https://github.com/samchon/nestia)\n\n - Specifications\n - CPU: AMD Ryzen 9 7940HS w/ Radeon 780M Graphics \n - RAM: 31 GB\n - NodeJS Version: v20.10.0\n - Backend Server: 1 core / 1 thread\n - Arguments\n - Count: 40,000\n - Threads: 4\n - Simultaneous: 32\n - Time\n - Start: 2024-10-29T19:14:35.941Z\n - Complete: 2024-10-29T19:16:11.418Z\n - Elapsed: 95,477 ms\n\nType | Count | Success | Mean. | Stdev. | Minimum | Maximum\n----|----|----|----|----|----|----\nTotal | 41,586 | 41,586 | 69.24 | 73.05 | 5 | 546\n\n> Unit: milliseconds\n\n## Memory Consumptions\n```mermaid\nxychart-beta\n x-axis \"Time (second)\"\n y-axis \"Memory (MB)\"\n line \"Resident Set Size\" [122, 156, 159, 142, 154, 165, 184, 185, 187, 189, 200, 205, 209, 217, 221, 225, 229, 224, 230, 235, 242, 250, 256, 262, 267, 272, 234, 237, 249, 259, 266, 273, 285, 292, 291, 216, 225, 235, 243, 200, 208, 214, 186, 186, 171, 177, 187, 199, 185, 192, 205, 171, 180, 158, 170, 179, 163, 163, 176, 188, 193, 202, 213, 219, 230, 239, 256, 265, 283, 301, 240, 249, 257, 267, 284, 282, 290, 202, 213, 166, 178, 188, 200, 203, 208, 180, 191, 199, 175]\n line \"Heap Total\" [85, 116, 120, 103, 114, 124, 146, 146, 147, 148, 158, 166, 170, 176, 180, 184, 187, 185, 190, 195, 203, 211, 217, 222, 225, 229, 194, 197, 209, 218, 225, 232, 241, 249, 247, 176, 185, 194, 202, 160, 168, 173, 146, 146, 130, 136, 146, 158, 145, 151, 165, 129, 139, 116, 128, 137, 120, 123, 136, 148, 152, 161, 172, 179, 189, 198, 215, 223, 241, 257, 200, 209, 216, 227, 244, 242, 249, 163, 174, 127, 136, 147, 159, 162, 166, 138, 150, 158, 132]\n line \"Heap Used + External\" [69, 94, 62, 82, 88, 107, 71, 83, 93, 107, 136, 72, 76, 85, 92, 106, 139, 48, 68, 69, 86, 95, 108, 116, 140, 175, 67, 74, 88, 112, 125, 136, 142, 169, 180, 91, 104, 105, 121, 60, 71, 91, 64, 74, 86, 110, 121, 135, 76, 82, 103, 70, 93, 66, 91, 107, 76, 75, 95, 101, 115, 127, 136, 154, 165, 168, 196, 193, 214, 232, 84, 94, 101, 118, 145, 147, 149, 86, 96, 72, 90, 112, 126, 133, 132, 78, 87, 107, 88]\n line \"Heap Used Only\" [66, 89, 59, 78, 83, 100, 68, 79, 88, 101, 129, 68, 72, 80, 86, 100, 131, 45, 64, 65, 81, 90, 103, 110, 133, 168, 64, 71, 84, 108, 120, 130, 136, 162, 173, 88, 100, 101, 117, 58, 68, 87, 61, 71, 83, 107, 118, 130, 73, 79, 99, 67, 89, 63, 88, 103, 74, 72, 91, 98, 111, 123, 132, 149, 160, 163, 190, 187, 208, 225, 81, 90, 97, 114, 140, 143, 145, 83, 93, 70, 87, 108, 122, 130, 128, 76, 84, 104, 85]\n```\n\n> - 🟦 Resident Set Size\n> - 🟢 Heap Total\n> - 🔴 Heap Used + External\n> - 🟡 Heap Used Only\n\n## Endpoints\nType | Count | Success | Mean. | Stdev. | Minimum | Maximum\n----|----|----|----|----|----|----\nPATCH /bbs/articles/:section | 6,439 | 6,439 | 108.37 | 76.56 | 6 | 546\nPUT /bbs/articles/:section/:id | 380 | 380 | 78.52 | 69.03 | 6 | 296\nGET /bbs/articles/:section/:id | 917 | 917 | 77.65 | 69.84 | 6 | 463\nDELETE /bbs/articles/:section/:id | 201 | 201 | 73.89 | 63.55 | 7 | 307\nPOST /bbs/articles/:section | 33,649 | 33,649 | 61.39 | 70.04 | 5 | 546\n\n> Unit: milliseconds\n\n## Failures\nMethod | Path | Count | Failures\n-------|------|-------|----------",
|
14
14
|
"nest-cli.json": "{\n \"$schema\": \"https://json.schemastore.org/nest-cli\",\n \"collection\": \"@nestjs/schematics\",\n \"sourceRoot\": \"src\",\n \"entryFile\": \"executable/server\",\n \"compilerOptions\": {\n \"deleteOutDir\": true\n }\n}\n",
|
15
15
|
"nestia.config.ts": "// nestia configuration file\nimport type sdk from \"@nestia/sdk\";\nimport { NestFactory } from \"@nestjs/core\";\n\nimport { MyModule } from \"./src/MyModule\";\n\nconst NESTIA_CONFIG: sdk.INestiaConfig = {\n input: () => NestFactory.create(MyModule),\n output: \"src/api\",\n swagger: {\n output: \"packages/api/swagger.json\",\n servers: [\n {\n url: \"http://localhost:37001\",\n description: \"Local Server\",\n },\n ],\n beautify: true,\n },\n distribute: \"packages/api\",\n keyword: true,\n simulate: true,\n primitive: false,\n};\nexport default NESTIA_CONFIG;\n",
|
16
|
-
"package.json": "{\n \"private\": true,\n \"name\": \"@ORGANIZATION/PROJECT\",\n \"version\": \"0.1.0\",\n \"description\": \"Starter kit of Nestia\",\n \"main\": \"lib/index.js\",\n \"scripts\": {\n \"benchmark\": \"node bin/test/benchmark\",\n \"test\": \"node bin/test\",\n \"test:webpack\": \"npm run webpack && node bin/test/webpack.js\",\n \"------------------------BUILDS------------------------\": \"\",\n \"build\": \"npm run build:sdk && npm run build:main && npm run build:test\",\n \"build:api\": \"rimraf packages/api/lib && nestia all && rimraf packages/api/lib && tsc -p packages/api/tsconfig.json && rollup -c packages/api/rollup.config.js\",\n \"build:main\": \"rimraf lib && tsc\",\n \"build:sdk\": \"rimraf src/api/functional && nestia sdk\",\n \"build:swagger\": \"npx nestia swagger\",\n \"build:test\": \"rimraf bin && tsc -p test/tsconfig.json\",\n \"dev\": \"npm run build:test -- --watch\",\n \"eslint\": \"eslint src && eslint test\",\n \"eslint:fix\": \"eslint --fix src && eslint --fix test\",\n \"prepare\": \"ts-patch install && ts-node build/env.ts\",\n \"prettier\": \"prettier src --write && prettier test --write\",\n \"------------------------WEBPACK------------------------\": \"\",\n \"webpack\": \"rimraf dist && webpack\",\n \"webpack:start\": \"cd dist && node dist/server\",\n \"webpack:test\": \"npm run webpack && node bin/test/webpack.js\",\n \"------------------------DEPLOYS------------------------\": \"\",\n \"package:api\": \"npm run build:api && cd packages/api && npm publish\",\n \"start\": \"node lib/executable/server\",\n \"start:dev\": \"nest start --watch\",\n \"start:swagger\": \"ts-node src/executable/swagger.ts\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/samchon/nestia-start\"\n },\n \"keywords\": [\n \"nestia\",\n \"template\",\n \"boilerplate\"\n ],\n \"author\": \"AUTHOR\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/samchon/nestia-start/issues\"\n },\n \"homepage\": \"https://github.com/samchon/nestia-start#readme\",\n \"devDependencies\": {\n \"@autobe/interface\": \"^0.10.6\",\n \"@nestia/benchmark\": \"^7.3.
|
16
|
+
"package.json": "{\n \"private\": true,\n \"name\": \"@ORGANIZATION/PROJECT\",\n \"version\": \"0.1.0\",\n \"description\": \"Starter kit of Nestia\",\n \"main\": \"lib/index.js\",\n \"scripts\": {\n \"benchmark\": \"node bin/test/benchmark\",\n \"test\": \"node bin/test\",\n \"test:webpack\": \"npm run webpack && node bin/test/webpack.js\",\n \"------------------------BUILDS------------------------\": \"\",\n \"build\": \"npm run build:sdk && npm run build:main && npm run build:test\",\n \"build:api\": \"rimraf packages/api/lib && nestia all && rimraf packages/api/lib && tsc -p packages/api/tsconfig.json && rollup -c packages/api/rollup.config.js\",\n \"build:main\": \"rimraf lib && tsc\",\n \"build:sdk\": \"rimraf src/api/functional && nestia sdk\",\n \"build:swagger\": \"npx nestia swagger\",\n \"build:test\": \"rimraf bin && tsc -p test/tsconfig.json\",\n \"dev\": \"npm run build:test -- --watch\",\n \"eslint\": \"eslint src && eslint test\",\n \"eslint:fix\": \"eslint --fix src && eslint --fix test\",\n \"prepare\": \"ts-patch install && ts-node build/env.ts\",\n \"prettier\": \"prettier src --write && prettier test --write\",\n \"------------------------WEBPACK------------------------\": \"\",\n \"webpack\": \"rimraf dist && webpack\",\n \"webpack:start\": \"cd dist && node dist/server\",\n \"webpack:test\": \"npm run webpack && node bin/test/webpack.js\",\n \"------------------------DEPLOYS------------------------\": \"\",\n \"package:api\": \"npm run build:api && cd packages/api && npm publish\",\n \"start\": \"node lib/executable/server\",\n \"start:dev\": \"nest start --watch\",\n \"start:swagger\": \"ts-node src/executable/swagger.ts\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/samchon/nestia-start\"\n },\n \"keywords\": [\n \"nestia\",\n \"template\",\n \"boilerplate\"\n ],\n \"author\": \"AUTHOR\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/samchon/nestia-start/issues\"\n },\n \"homepage\": \"https://github.com/samchon/nestia-start#readme\",\n \"devDependencies\": {\n \"@autobe/interface\": \"^0.10.6\",\n \"@nestia/benchmark\": \"^7.3.2\",\n \"@nestia/e2e\": \"^7.3.2\",\n \"@nestia/sdk\": \"^7.3.2\",\n \"@nestjs/cli\": \"^11.0.10\",\n \"@rollup/plugin-terser\": \"^0.4.4\",\n \"@rollup/plugin-typescript\": \"^11.1.6\",\n \"@trivago/prettier-plugin-sort-imports\": \"^4.3.0\",\n \"@types/cli\": \"^0.11.21\",\n \"@types/cli-progress\": \"^3.11.5\",\n \"@types/express\": \"^4.17.21\",\n \"@types/inquirer\": \"^8.2.5\",\n \"@types/node\": \"^18.11.0\",\n \"@types/uuid\": \"^8.3.4\",\n \"@typescript-eslint/eslint-plugin\": \"^8.1.0\",\n \"@typescript-eslint/parser\": \"^8.1.0\",\n \"chalk\": \"^4.1.2\",\n \"cli\": \"^1.0.1\",\n \"cli-progress\": \"^3.12.0\",\n \"copy-webpack-plugin\": \"^11.0.0\",\n \"eslint-plugin-deprecation\": \"^3.0.0\",\n \"express\": \"^4.18.2\",\n \"nestia\": \"^7.3.2\",\n \"prettier\": \"^3.2.4\",\n \"prettier-plugin-prisma\": \"^5.0.0\",\n \"rimraf\": \"^3.0.2\",\n \"rollup\": \"^4.18.0\",\n \"source-map-support\": \"^0.5.21\",\n \"swagger-ui-express\": \"^5.0.0\",\n \"ts-loader\": \"^9.5.1\",\n \"ts-node\": \"^10.9.1\",\n \"ts-patch\": \"^3.3.0\",\n \"typescript\": \"~5.9.2\",\n \"typescript-transform-paths\": \"^3.5.5\",\n \"webpack\": \"^5.89.0\",\n \"webpack-cli\": \"^5.1.4\",\n \"write-file-webpack-plugin\": \"^4.5.1\"\n },\n \"dependencies\": {\n \"@nestia/core\": \"^7.3.2\",\n \"@nestia/fetcher\": \"^7.3.2\",\n \"@nestjs/common\": \"^11.1.5\",\n \"@nestjs/core\": \"^11.1.5\",\n \"@nestjs/platform-express\": \"^11.1.5\",\n \"commander\": \"10.0.0\",\n \"dotenv\": \"^16.3.1\",\n \"dotenv-expand\": \"^10.0.0\",\n \"inquirer\": \"8.2.5\",\n \"serialize-error\": \"^4.1.0\",\n \"tgrid\": \"^1.1.0\",\n \"tstl\": \"^3.0.0\",\n \"typia\": \"^9.6.1\",\n \"uuid\": \"^9.0.0\"\n },\n \"stackblitz\": {\n \"startCommand\": \"npm run prepare && npm run build:test && npm run test -- --simultaneous 1\"\n }\n}",
|
17
17
|
"packages/api/.gitignore": "lib/\nnode_modules/\n\nswagger.json\nopenai.json",
|
18
18
|
"packages/api/LICENSE": "MIT License\n\nCopyright (c) 2021 ORGANIZATION\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.",
|
19
19
|
"packages/api/README.md": "# SDK Library\nThis is a SDK library generated by [`nestia`](https://nestia.io).\n\nWith this SDK library, you can easily and safely interact with backend server.\n\nJust import and call some API functions like gif image below:\n\n\n\n> Left is server code, and right is client code utilizing the SDK\n\n\n\n\n# What [`Nestia`](https://nestia.io) is:\n\n\n[](https://github.com/samchon/nestia/blob/master/LICENSE)\n[](https://www.npmjs.com/package/@nestia/core)\n[](https://www.npmjs.com/package/@nestia/core)\n[](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)\n[](https://nestia.io/docs/)\n\nNestia is a set of helper libraries for NestJS, supporting below features:\n\n - `@nestia/core`: super-fast decorators\n - `@nestia/sdk`:\n - Swagger generator evolved than ever\n - SDK library generator for clients\n - Mockup Simulator for client applications\n - Automatic E2E test functions generator\n - `@nestia/migrate`: migration from Swagger to NestJS\n - `nestia`: just CLI (command line interface) tool\n\n> **Note**\n> \n> - **Only one line** required, with pure TypeScript type\n> - Enhance performance **30x** up\n> - Runtime validator is **20,000x faster** than `class-validator`\n> - JSON serialization is **200x faster** than `class-transformer`\n> - Software Development Kit\n> - SDK is a collection of `fetch` functions with type definitions like [tRPC](https://trpc.io/)\n> - Mockup simulator means embedded backend simulator in SDK\n> - similar with [msw](https://mswjs.io/), but fully automated",
|
20
|
-
"packages/api/package.json": "{\n \"name\": \"@ORGANIZATION/PROJECT-api\",\n \"version\": \"0.1.0\",\n \"description\": \"SDK library generated by Nestia\",\n \"main\": \"lib/index.js\",\n \"module\": \"lib/index.mjs\",\n \"typings\": \"lib/index.d.ts\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/samchon/nestia\"\n },\n \"author\": \"Jeongho Nam\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/samchon/nestia/issues\"\n },\n \"homepage\": \"https://nestia.io\",\n \"files\": [\n \"lib\",\n \"package.json\",\n \"swagger.json\",\n \"openai.json\",\n \"README.md\"\n ],\n \"dependencies\": {\n \"@nestia/fetcher\": \"^7.
|
20
|
+
"packages/api/package.json": "{\n \"name\": \"@ORGANIZATION/PROJECT-api\",\n \"version\": \"0.1.0\",\n \"description\": \"SDK library generated by Nestia\",\n \"main\": \"lib/index.js\",\n \"module\": \"lib/index.mjs\",\n \"typings\": \"lib/index.d.ts\",\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/samchon/nestia\"\n },\n \"author\": \"Jeongho Nam\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/samchon/nestia/issues\"\n },\n \"homepage\": \"https://nestia.io\",\n \"files\": [\n \"lib\",\n \"package.json\",\n \"swagger.json\",\n \"openai.json\",\n \"README.md\"\n ],\n \"dependencies\": {\n \"@nestia/fetcher\": \"^7.3.1\",\n \"tgrid\": \"^1.2.0\",\n \"typia\": \"^9.6.1\"\n }\n}",
|
21
21
|
"packages/api/rollup.config.js": "const typescript = require(\"@rollup/plugin-typescript\");\nconst terser = require(\"@rollup/plugin-terser\");\n\nmodule.exports = {\n input: `${__dirname}/../../src/api/index.ts`,\n output: {\n dir: `${__dirname}/lib`,\n format: \"esm\",\n entryFileNames: \"[name].mjs\",\n sourcemap: true,\n },\n plugins: [\n typescript({\n tsconfig: `${__dirname}/tsconfig.json`,\n module: \"ESNext\",\n target: \"ESNext\",\n }),\n terser({\n format: {\n comments: \"some\",\n beautify: true,\n ecma: \"2020\",\n },\n compress: false,\n mangle: false,\n module: true,\n }),\n ],\n};\n",
|
22
22
|
"packages/api/tsconfig.json": "{\n \"compilerOptions\": {\n /* Visit https://aka.ms/tsconfig to read more about this file */\n /* Projects */\n // \"incremental\": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\n // \"composite\": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\n // \"tsBuildInfoFile\": \"./.tsbuildinfo\", /* Specify the path to .tsbuildinfo incremental compilation file. */\n // \"disableSourceOfProjectReferenceRedirect\": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\n // \"disableSolutionSearching\": true, /* Opt a project out of multi-project reference checking when editing. */\n // \"disableReferencedProjectLoad\": true, /* Reduce the number of projects loaded automatically by TypeScript. */\n /* Language and Environment */\n \"target\": \"ES5\", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\n \"lib\": [\n \"DOM\",\n \"ES2015\"\n ], /* Specify a set of bundled library declaration files that describe the target runtime environment. */// \"jsx\": \"preserve\", /* Specify what JSX code is generated. */\n // \"experimentalDecorators\": true, /* Enable experimental support for TC39 stage 2 draft decorators. */\n // \"emitDecoratorMetadata\": true, /* Emit design-type metadata for decorated declarations in source files. */\n // \"jsxFactory\": \"\", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */\n // \"jsxFragmentFactory\": \"\", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */\n // \"jsxImportSource\": \"\", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */\n // \"reactNamespace\": \"\", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */\n // \"noLib\": true, /* Disable including any library files, including the default lib.d.ts. */\n // \"useDefineForClassFields\": true, /* Emit ECMAScript-standard-compliant class fields. */\n // \"moduleDetection\": \"auto\", /* Control what method is used to detect module-format JS files. */\n /* Modules */\n \"module\": \"commonjs\", /* Specify what module code is generated. */// \"rootDir\": \"./\", /* Specify the root folder within your source files. */\n // \"moduleResolution\": \"node\", /* Specify how TypeScript looks up a file from a given module specifier. */\n // \"baseUrl\": \"./\", /* Specify the base directory to resolve non-relative module names. */\n // \"paths\": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */\n // \"rootDirs\": [], /* Allow multiple folders to be treated as one when resolving modules. */\n // \"typeRoots\": [], /* Specify multiple folders that act like './node_modules/@types'. */\n // \"types\": [], /* Specify type package names to be included without being referenced in a source file. */\n // \"allowUmdGlobalAccess\": true, /* Allow accessing UMD globals from modules. */\n // \"moduleSuffixes\": [], /* List of file name suffixes to search when resolving a module. */\n // \"resolveJsonModule\": true, /* Enable importing .json files. */\n // \"noResolve\": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */\n /* JavaScript Support */\n // \"allowJs\": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */\n // \"checkJs\": true, /* Enable error reporting in type-checked JavaScript files. */\n // \"maxNodeModuleJsDepth\": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */\n /* Emit */\n \"declaration\": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */// \"declarationMap\": true, /* Create sourcemaps for d.ts files. */\n // \"emitDeclarationOnly\": true, /* Only output d.ts files and not JavaScript files. */\n \"sourceMap\": true, /* Create source map files for emitted JavaScript files. */// \"outFile\": \"./\", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */\n \"outDir\": \"./lib\", /* Specify an output folder for all emitted files. */// \"removeComments\": true, /* Disable emitting comments. */\n // \"noEmit\": true, /* Disable emitting files from a compilation. */\n // \"importHelpers\": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\n // \"importsNotUsedAsValues\": \"remove\", /* Specify emit/checking behavior for imports that are only used for types. */\n \"downlevelIteration\": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */// \"sourceRoot\": \"\", /* Specify the root path for debuggers to find the reference source code. */\n // \"mapRoot\": \"\", /* Specify the location where debugger should locate map files instead of generated locations. */\n // \"inlineSourceMap\": true, /* Include sourcemap files inside the emitted JavaScript. */\n // \"inlineSources\": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\n // \"emitBOM\": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\n \"newLine\": \"lf\", /* Set the newline character for emitting files. */// \"stripInternal\": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */\n // \"noEmitHelpers\": true, /* Disable generating custom helper functions like '__extends' in compiled output. */\n // \"noEmitOnError\": true, /* Disable emitting files if any type checking errors are reported. */\n // \"preserveConstEnums\": true, /* Disable erasing 'const enum' declarations in generated code. */\n // \"declarationDir\": \"./\", /* Specify the output directory for generated declaration files. */\n // \"preserveValueImports\": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */\n /* Interop Constraints */\n // \"isolatedModules\": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\n // \"allowSyntheticDefaultImports\": true, /* Allow 'import x from y' when a module doesn't have a default export. */\n \"esModuleInterop\": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */// \"preserveSymlinks\": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\n \"forceConsistentCasingInFileNames\": true, /* Ensure that casing is correct in imports. *//* Type Checking */\n \"strict\": true, /* Enable all strict type-checking options. */// \"noImplicitAny\": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */\n // \"strictNullChecks\": true, /* When type checking, take into account 'null' and 'undefined'. */\n // \"strictFunctionTypes\": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\n // \"strictBindCallApply\": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */\n // \"strictPropertyInitialization\": true, /* Check for class properties that are declared but not set in the constructor. */\n // \"noImplicitThis\": true, /* Enable error reporting when 'this' is given the type 'any'. */\n // \"useUnknownInCatchVariables\": true, /* Default catch clause variables as 'unknown' instead of 'any'. */\n // \"alwaysStrict\": true, /* Ensure 'use strict' is always emitted. */\n // \"noUnusedLocals\": true, /* Enable error reporting when local variables aren't read. */\n // \"noUnusedParameters\": true, /* Raise an error when a function parameter isn't read. */\n // \"exactOptionalPropertyTypes\": true, /* Interpret optional property types as written, rather than adding 'undefined'. */\n // \"noImplicitReturns\": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\n // \"noFallthroughCasesInSwitch\": true, /* Enable error reporting for fallthrough cases in switch statements. */\n // \"noUncheckedIndexedAccess\": true, /* Add 'undefined' to a type when accessed using an index. */\n // \"noImplicitOverride\": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\n // \"noPropertyAccessFromIndexSignature\": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\n // \"allowUnusedLabels\": true, /* Disable error reporting for unused labels. */\n // \"allowUnreachableCode\": true, /* Disable error reporting for unreachable code. */\n /* Completeness */\n // \"skipDefaultLibCheck\": true, /* Skip type checking .d.ts files that are included with TypeScript. */\n \"skipLibCheck\": true, /* Skip type checking all .d.ts files. */\n \"plugins\": [\n {\n \"transform\": \"typia/lib/transform\"\n }\n ],\n \"strictNullChecks\": true\n },\n \"include\": [\n \"../../src/api\"\n ]\n}",
|
23
23
|
"prettier.config.js": "module.exports = {\n // DEFAULT CONFIGURATIONS\n parser: \"typescript\",\n printWidth: 80,\n semi: true,\n tabWidth: 2,\n trailingComma: \"all\",\n\n // PLUG-IN CONFIGURATIONS\n plugins: [\"@trivago/prettier-plugin-sort-imports\"],\n importOrder: [\n \"<THIRD_PARTY_MODULES>\",\n \"^@ORGANIZATION/PROJECT-api(.*)$\",\n \"^[./]\",\n ],\n importOrderSeparation: true,\n importOrderSortSpecifiers: true,\n importOrderParserPlugins: [\"decorators-legacy\", \"typescript\"],\n};\n",
|
@@ -5,7 +5,7 @@ export const SDK_TEMPLATE: Record<string, string> = {
|
|
5
5
|
"LICENSE": "MIT License\n\nCopyright (c) 2024 Jeongho Nam\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
|
6
6
|
"README.md": "# Software Development Kit\nThis is a SDK library generated by [`@nestia/migrate`](https://nestia.io/docs/migrate) or [`@nestia/editor`](https://nestia.io/docs/editor).\n\nWith this SDK library, you can easily and safely interact with backend server.\n\nJust import and call some API functions like gif image below:\n\n\n\n> Left is server code, and right is client code utilizing the SDK\n\n\n\n\n## How to Test\n```bash\nnpm install\nnpm start # run only \"test/start.ts\" file\nnpm run test # everything under the \"test/features\" directory\nnpm run test:simulate # \"test/features\" with mockup simulation mode\n```\n\nIf you run `npm start` command, only [test/start.ts](test/start.ts) file would be executed.\n\nOtherwise you run `npm run test` command instead, run everything in the [test/features](test/features) directory.\n\nFor reference, the [test/features](test/features) directory and E2E test functions (for each API endpoints) would be automatically composed only when you've configured the \"E2E test function generation mode\" of the `@nestia/migrate` (or `@nestia/editor`).\n\n```bash\nnpm install -g @nestia/migrate\nnpx @nestia/migrate\n? Migration mode (Use arrow keys):\n NestJS\n > SDK\n? Swagger file location: assets/input/clickhouse.json\n? Output directory path: assets/output/clickhouse-sdk-manual\n? Mokup Simulator: true\n? E2E Test Functions: true\n```\n\n\n\n\n## Deploy\n```bash\nnpm install\nnpm run deploy\n```\n\nJust run `npm run deploy` command, then your SDK library would be published.\n\nBy the way, the initial package name of this template repository is `@ORGANIZATION/PROJECT-api`. I think it would better to change the word to your own organization and project name. If you're utilizing `VsCode`, you can do it through `Edit > Replace in Files` (*Ctrl + Shift + H*) feature.\n\n-----------\n\n> ## What [`Nestia`](https://nestia.io) is:\n> \n> \n> [](https://github.com/samchon/nestia/blob/master/LICENSE)\n> [](https://www.npmjs.com/package/@nestia/core)\n> [](https://www.npmjs.com/package/@nestia/core)\n> [](https://github.com/samchon/nestia/actions?query=workflow%3Abuild)\n> [](https://nestia.io/docs/)\n> \n> Nestia is a set of helper libraries for NestJS, supporting below features:\n> \n> - `@nestia/core`: Super-fast decorators\n> - `@nestia/sdk`:\n> - Swagger generator evolved than ever\n> - SDK library generator for clients\n> - Mockup Simulator for client applications\n> - Automatic E2E test functions generator\n> - `@nestia/migrate`: Migration from Swagger to NestJS\n> - `@nestia/editor`: Online TypeScript Swagger Editor\n> - `nestia`: Just CLI (command line interface) tool\n> \n>> **Note**\n>> \n>> - **Only one line** required, with pure TypeScript type\n>> - Enhance performance **30x** up\n>> - Runtime validator is **20,000x faster** than `class-validator`\n>> - JSON serialization is **200x faster** than `class-transformer`\n>> - Software Development Kit\n>> - SDK is a collection of `fetch` functions with type definitions like [tRPC](https://> trpc.io/)\n>> - Mockup simulator means embedded backend simulator in SDK\n>> - similar with [msw](https://mswjs.io/), but fully automated",
|
7
7
|
"hello.js": "function print(command, description) {\n return console.log(`\\x1b[1m${command}\\x1b[2m: ${description}\\x1b[0m`);\n}\n\nconsole.log(\"-----------------------------------------\");\nconsole.log(\"\\x1b[7mGenerated by \\x1b[2m@nestia/editor\\x1b[0m\");\nconsole.log(\"\");\nconsole.log(\" - \\x1b[36mhttps://nestia.io/docs/editor\\x1b[0m\");\nconsole.log(\" - \\x1b[36mhttps://github.com/samchon/nestia\\x1b[0m\");\nconsole.log(\"-----------------------------------------\");\n\nprint(\"npm run start\", \"Run only test/start.ts\");\nprint(\"npm run test\", \"Run every test/features/**/*.ts files\");\nprint(\"npm run test:simulate\", \"Test with mockup simulator\");\n",
|
8
|
-
"package.json": "{\n \"name\": \"@ORGANIZATION/PROJECT-api\",\n \"version\": \"0.1.0\",\n \"description\": \"SDK library generated by Nestia\",\n \"main\": \"lib/index.js\",\n \"module\": \"lib/index.mjs\",\n \"typings\": \"lib/index.d.ts\",\n \"scripts\": {\n \"build\": \"rimraf lib && tsc && rollup -c\",\n \"build:test\": \"rimraf bin && tsc --project test/tsconfig.json\",\n \"deploy\": \"npm run build && npm publish\",\n \"dev\": \"npm run build:test -- --watch\",\n \"hello\": \"node hello\",\n \"prepare\": \"ts-patch install && typia patch\",\n \"start\": \"ts-node test/start.ts\",\n \"swagger\": \"ts-node test/swagger.ts\",\n \"test\": \"ts-node test/index.ts\",\n \"test:simulate\": \"ts-node test/index.ts --simulate true\",\n \"test:manual\": \"ts-node test/manual.ts\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/samchon/nestia\"\n },\n \"author\": \"Jeongho Nam\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/samchon/nestia/issues\"\n },\n \"homepage\": \"https://nestia.io\",\n \"files\": [\n \"lib\",\n \"swagger.json\",\n \"package.json\",\n \"README.md\"\n ],\n \"dependencies\": {\n \"@nestia/fetcher\": \"^7.3.
|
8
|
+
"package.json": "{\n \"name\": \"@ORGANIZATION/PROJECT-api\",\n \"version\": \"0.1.0\",\n \"description\": \"SDK library generated by Nestia\",\n \"main\": \"lib/index.js\",\n \"module\": \"lib/index.mjs\",\n \"typings\": \"lib/index.d.ts\",\n \"scripts\": {\n \"build\": \"rimraf lib && tsc && rollup -c\",\n \"build:test\": \"rimraf bin && tsc --project test/tsconfig.json\",\n \"deploy\": \"npm run build && npm publish\",\n \"dev\": \"npm run build:test -- --watch\",\n \"hello\": \"node hello\",\n \"prepare\": \"ts-patch install && typia patch\",\n \"start\": \"ts-node test/start.ts\",\n \"swagger\": \"ts-node test/swagger.ts\",\n \"test\": \"ts-node test/index.ts\",\n \"test:simulate\": \"ts-node test/index.ts --simulate true\",\n \"test:manual\": \"ts-node test/manual.ts\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"https://github.com/samchon/nestia\"\n },\n \"author\": \"Jeongho Nam\",\n \"license\": \"MIT\",\n \"bugs\": {\n \"url\": \"https://github.com/samchon/nestia/issues\"\n },\n \"homepage\": \"https://nestia.io\",\n \"files\": [\n \"lib\",\n \"swagger.json\",\n \"package.json\",\n \"README.md\"\n ],\n \"dependencies\": {\n \"@nestia/fetcher\": \"^7.3.2\",\n \"tgrid\": \"^1.2.0\",\n \"typia\": \"^9.6.1\"\n },\n \"devDependencies\": {\n \"@nestia/e2e\": \"^7.3.2\",\n \"@rollup/plugin-terser\": \"^0.4.4\",\n \"@rollup/plugin-typescript\": \"^11.1.6\",\n \"@trivago/prettier-plugin-sort-imports\": \"^4.3.0\",\n \"@types/express\": \"^4.17.21\",\n \"@types/inquirer\": \"8.2.5\",\n \"@types/swagger-ui-express\": \"^4.1.6\",\n \"chalk\": \"4.1.2\",\n \"commander\": \"^10.0.0\",\n \"express\": \"^4.19.2\",\n \"inquirer\": \"8.2.5\",\n \"prettier\": \"^3.2.5\",\n \"rimraf\": \"^5.0.5\",\n \"rollup\": \"^4.13.2\",\n \"swagger-ui-express\": \"^5.0.0\",\n \"ts-node\": \"^10.9.2\",\n \"ts-patch\": \"^3.3.0\",\n \"typescript\": \"~5.9.2\",\n \"typescript-transform-paths\": \"^3.5.5\"\n }\n}",
|
9
9
|
"prettier.config.js": "module.exports = {\n // DEFAULT CONFIGURATIONS\n parser: \"typescript\",\n printWidth: 80,\n semi: true,\n tabWidth: 2,\n trailingComma: \"all\",\n\n // PLUG-IN CONFIGURATIONS\n plugins: [\"@trivago/prettier-plugin-sort-imports\"],\n importOrder: [\"<THIRD_PARTY_MODULES>\", \"^[./]\"],\n importOrderSeparation: true,\n importOrderSortSpecifiers: true,\n importOrderParserPlugins: [\"decorators-legacy\", \"typescript\", \"jsx\"],\n};\n",
|
10
10
|
"rollup.config.js": "const typescript = require(\"@rollup/plugin-typescript\");\nconst terser = require(\"@rollup/plugin-terser\");\n\nmodule.exports = {\n input: \"./src/index.ts\",\n output: {\n dir: \"lib\",\n format: \"esm\",\n entryFileNames: \"[name].mjs\",\n sourcemap: true,\n },\n plugins: [\n typescript({\n tsconfig: \"tsconfig.json\",\n module: \"ES2020\",\n target: \"ES2020\",\n }),\n terser({\n format: {\n comments: \"some\",\n beautify: true,\n ecma: \"2020\",\n },\n compress: false,\n mangle: false,\n module: true,\n }),\n ],\n};\n",
|
11
11
|
"src/HttpError.ts": "export { HttpError } from \"@nestia/fetcher\";\n",
|