@nestia/migrate 0.2.12 → 0.2.13
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
CHANGED
@@ -60,6 +60,8 @@ Check out the document in the [website](https://nestia.io/docs/):
|
|
60
60
|
- [TypedBody](https://nestia.io/docs/core/TypedBody/)
|
61
61
|
- [TypedParam](https://nestia.io/docs/core/TypedParam/)
|
62
62
|
- [TypedQuery](https://nestia.io/docs/core/TypedRoute/)
|
63
|
+
- [TypedHeaders](https://nestia.io/docs/core/TypedHeaders/)
|
64
|
+
- [TypedException](https://nestia.io/docs/core/TypedException/)
|
63
65
|
- Generators
|
64
66
|
- [Swagger Documents](https://nestia.io/docs/sdk/swagger/)
|
65
67
|
- [SDK Library](https://nestia.io/docs/sdk/sdk/)
|
@@ -34,13 +34,11 @@ class NestiaMigrateApplication {
|
|
34
34
|
};
|
35
35
|
this.swagger = (input => {
|
36
36
|
const __is = input => {
|
37
|
-
const $is_url = typia_1.default.assert.is_url;
|
38
|
-
const $is_email = typia_1.default.assert.is_email;
|
39
37
|
const $join = typia_1.default.assert.join;
|
40
38
|
const $io0 = input => "string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) && ("object" === typeof input.info && null !== input.info && $io1(input.info)) && (Array.isArray(input.servers) && input.servers.every(elem => "object" === typeof elem && null !== elem && $io4(elem))) && ("object" === typeof input.components && null !== input.components && false === Array.isArray(input.components) && $io5(input.components)) && ("object" === typeof input.paths && null !== input.paths && false === Array.isArray(input.paths) && $io29(input.paths)) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io39(elem)));
|
41
|
-
const $io1 = input => "string" === typeof input.title && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService &&
|
42
|
-
const $io2 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url &&
|
43
|
-
const $io3 = input => "string" === typeof input.name && (undefined === input.url || "string" === typeof input.url &&
|
39
|
+
const $io1 = input => "string" === typeof input.title && (undefined === input.description || "string" === typeof input.description) && (undefined === input.termsOfService || "string" === typeof input.termsOfService && /^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.termsOfService)) && (undefined === input.contact || "object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) && $io2(input.contact)) && (undefined === input.license || "object" === typeof input.license && null !== input.license && $io3(input.license)) && "string" === typeof input.version;
|
40
|
+
const $io2 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.url || "string" === typeof input.url && /^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.url)) && (undefined === input.email || "string" === typeof input.email && /^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(input.email));
|
41
|
+
const $io3 = input => "string" === typeof input.name && (undefined === input.url || "string" === typeof input.url && /^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.url));
|
44
42
|
const $io4 = input => "string" === typeof input.url && (undefined === input.description || "string" === typeof input.description);
|
45
43
|
const $io5 = input => (undefined === input.schemas || "object" === typeof input.schemas && null !== input.schemas && false === Array.isArray(input.schemas) && $io6(input.schemas)) && (undefined === input.securitySchemes || "object" === typeof input.securitySchemes && null !== input.securitySchemes && false === Array.isArray(input.securitySchemes) && $io18(input.securitySchemes));
|
46
44
|
const $io6 = input => Object.keys(input).every(key => {
|
@@ -55,10 +53,10 @@ class NestiaMigrateApplication {
|
|
55
53
|
const $io8 = input => Array.isArray(input.anyOf) && input.anyOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
56
54
|
const $io9 = input => Array.isArray(input.oneOf) && input.oneOf.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
57
55
|
const $io10 = input => (undefined === input["default"] || "boolean" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "boolean" === typeof elem)) && "boolean" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
58
|
-
const $io11 = input => (undefined === input["default"] || "number" === typeof input["default"] &&
|
56
|
+
const $io11 = input => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647)) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -2147483648 <= input.minimum && input.minimum <= 2147483647)) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -2147483648 <= input.maximum && input.maximum <= 2147483647)) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 4294967295)) && "integer" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
59
57
|
const $io12 = input => (undefined === input["default"] || "number" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "number" === typeof elem)) && (undefined === input.minimum || "number" === typeof input.minimum) && (undefined === input.maximum || "number" === typeof input.maximum) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum) && (undefined === input.exclusiveMaximum || "boolean" === typeof input.exclusiveMaximum) && (undefined === input.multipleOf || "number" === typeof input.multipleOf) && "number" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
60
|
-
const $io13 = input => (undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "string" === typeof elem)) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength &&
|
61
|
-
const $io14 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu0(input.items) && (undefined === input.minItems || "number" === typeof input.minItems &&
|
58
|
+
const $io13 = input => (undefined === input["default"] || "string" === typeof input["default"]) && (undefined === input["enum"] || Array.isArray(input["enum"]) && input["enum"].every(elem => "string" === typeof elem)) && (undefined === input.format || "string" === typeof input.format) && (undefined === input.pattern || "string" === typeof input.pattern) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 4294967295)) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 4294967295)) && "string" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
59
|
+
const $io14 = input => "object" === typeof input.items && null !== input.items && false === Array.isArray(input.items) && $iu0(input.items) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 4294967295)) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 4294967295)) && (undefined === input["x-typia-tuple"] || "object" === typeof input["x-typia-tuple"] && null !== input["x-typia-tuple"] && $io17(input["x-typia-tuple"])) && "array" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
62
60
|
const $io15 = input => (undefined === input.properties || "object" === typeof input.properties && null !== input.properties && false === Array.isArray(input.properties) && $io6(input.properties)) && (undefined === input.required || Array.isArray(input.required) && input.required.every(elem => "string" === typeof elem)) && (null !== input.additionalProperties && (undefined === input.additionalProperties || "boolean" === typeof input.additionalProperties || "object" === typeof input.additionalProperties && null !== input.additionalProperties && false === Array.isArray(input.additionalProperties) && $iu0(input.additionalProperties))) && (undefined === input["x-typia-patternProperties"] || "object" === typeof input["x-typia-patternProperties"] && null !== input["x-typia-patternProperties"] && false === Array.isArray(input["x-typia-patternProperties"]) && $io6(input["x-typia-patternProperties"])) && "object" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
63
61
|
const $io16 = input => "string" === typeof input.$ref && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
64
62
|
const $io17 = input => Array.isArray(input.items) && input.items.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $iu0(elem)) && "array" === input.type && (undefined === input.nullable || "boolean" === typeof input.nullable) && (undefined === input.title || "string" === typeof input.title) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input["x-typia-optional"] || "boolean" === typeof input["x-typia-optional"]) && (undefined === input["x-typia-rest"] || "boolean" === typeof input["x-typia-rest"]);
|
@@ -103,7 +101,7 @@ class NestiaMigrateApplication {
|
|
103
101
|
return "object" === typeof value && null !== value && false === Array.isArray(value) && $io31(value);
|
104
102
|
return true;
|
105
103
|
});
|
106
|
-
const $io31 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $io32(elem))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && $io33(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io37(input.responses)) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io39(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input["x-nestia-jsDocTags"] || Array.isArray(input["x-nestia-jsDocTags"])
|
104
|
+
const $io31 = input => (undefined === input.parameters || Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $io32(elem))) && (undefined === input.requestBody || "object" === typeof input.requestBody && null !== input.requestBody && $io33(input.requestBody)) && (undefined === input.responses || "object" === typeof input.responses && null !== input.responses && false === Array.isArray(input.responses) && $io37(input.responses)) && (undefined === input.summary || "string" === typeof input.summary) && (undefined === input.description || "string" === typeof input.description) && (undefined === input.deprecated || "boolean" === typeof input.deprecated) && (undefined === input.security || Array.isArray(input.security) && input.security.every(elem => "object" === typeof elem && null !== elem && false === Array.isArray(elem) && $io39(elem))) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input["x-nestia-jsDocTags"] || Array.isArray(input["x-nestia-jsDocTags"]));
|
107
105
|
const $io32 = input => (undefined === input.name || "string" === typeof input.name) && ("header" === input["in"] || "query" === input["in"] || "cookie" === input["in"] || "path" === input["in"]) && ("object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $iu0(input.schema)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input.description || "string" === typeof input.description);
|
108
106
|
const $io33 = input => (undefined === input.description || "string" === typeof input.description) && ("object" === typeof input.content && null !== input.content && false === Array.isArray(input.content) && $io34(input.content)) && (undefined === input.required || "boolean" === typeof input.required) && (undefined === input["x-nestia-encrypted"] || "boolean" === typeof input["x-nestia-encrypted"]);
|
109
107
|
const $io34 = input => (undefined === input["text/plain"] || "object" === typeof input["text/plain"] && null !== input["text/plain"] && $io35(input["text/plain"])) && (undefined === input["application/json"] || "object" === typeof input["application/json"] && null !== input["application/json"] && $io36(input["application/json"]));
|
@@ -126,49 +124,47 @@ class NestiaMigrateApplication {
|
|
126
124
|
return Array.isArray(value) && value.every(elem => "string" === typeof elem);
|
127
125
|
return true;
|
128
126
|
});
|
129
|
-
const $io40 = input => "string" === typeof input.name && (undefined === input.text || Array.isArray(input.text) && input.text.every(elem => "object" === typeof elem && null !== elem && $io41(elem)));
|
130
|
-
const $io41 = input => "string" === typeof input.text && "string" === typeof input.kind;
|
131
127
|
const $iu0 = input => (() => {
|
132
128
|
if (undefined !== input.anyOf)
|
133
129
|
return $io8(input);
|
134
|
-
if (undefined !== input.oneOf)
|
130
|
+
else if (undefined !== input.oneOf)
|
135
131
|
return $io9(input);
|
136
|
-
if ("boolean" === input.type)
|
132
|
+
else if ("boolean" === input.type)
|
137
133
|
return $io10(input);
|
138
|
-
if ("number" === input.type)
|
134
|
+
else if ("number" === input.type)
|
139
135
|
return $io12(input);
|
140
|
-
if ("integer" === input.type)
|
136
|
+
else if ("integer" === input.type)
|
141
137
|
return $io11(input);
|
142
|
-
if ("string" === input.type)
|
138
|
+
else if ("string" === input.type)
|
143
139
|
return $io13(input);
|
144
|
-
if ("array" === input.type)
|
140
|
+
else if ("array" === input.type)
|
145
141
|
return $io14(input);
|
146
|
-
if ("object" === input.type)
|
142
|
+
else if ("object" === input.type)
|
147
143
|
return $io15(input);
|
148
|
-
if (undefined !== input.$ref)
|
144
|
+
else if (undefined !== input.$ref)
|
149
145
|
return $io16(input);
|
150
|
-
|
146
|
+
else
|
147
|
+
return $io7(input);
|
151
148
|
})();
|
152
149
|
const $iu1 = input => (() => {
|
153
150
|
if ("basic" === input.scheme)
|
154
151
|
return $io19(input);
|
155
|
-
if ("bearer" === input.scheme)
|
152
|
+
else if ("bearer" === input.scheme)
|
156
153
|
return $io20(input);
|
157
|
-
if ("apiKey" === input.type)
|
154
|
+
else if ("apiKey" === input.type)
|
158
155
|
return $io21(input);
|
159
|
-
if ("openIdConnect" === input.type)
|
156
|
+
else if ("openIdConnect" === input.type)
|
160
157
|
return $io22(input);
|
161
|
-
if ("oauth2" === input.type)
|
158
|
+
else if ("oauth2" === input.type)
|
162
159
|
return $io23(input);
|
163
|
-
|
160
|
+
else
|
161
|
+
return false;
|
164
162
|
})();
|
165
163
|
return "object" === typeof input && null !== input && $io0(input);
|
166
164
|
};
|
167
165
|
if (false === __is(input))
|
168
166
|
((input, _path, _exceptionable = true) => {
|
169
167
|
const $guard = typia_1.default.assert.guard;
|
170
|
-
const $is_url = typia_1.default.assert.is_url;
|
171
|
-
const $is_email = typia_1.default.assert.is_email;
|
172
168
|
const $join = typia_1.default.assert.join;
|
173
169
|
const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.openapi && RegExp(/^3\.0\.[+-]?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?$/).test(input.openapi) || $guard(_exceptionable, {
|
174
170
|
path: _path + ".openapi",
|
@@ -239,13 +235,13 @@ class NestiaMigrateApplication {
|
|
239
235
|
path: _path + ".description",
|
240
236
|
expected: "(string | undefined)",
|
241
237
|
value: input.description
|
242
|
-
})) && (undefined === input.termsOfService || "string" === typeof input.termsOfService && (
|
238
|
+
})) && (undefined === input.termsOfService || "string" === typeof input.termsOfService && (/^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.termsOfService) || $guard(_exceptionable, {
|
243
239
|
path: _path + ".termsOfService",
|
244
|
-
expected: "string
|
240
|
+
expected: "string & Format<url>",
|
245
241
|
value: input.termsOfService
|
246
242
|
})) || $guard(_exceptionable, {
|
247
243
|
path: _path + ".termsOfService",
|
248
|
-
expected: "(string | undefined)",
|
244
|
+
expected: "((string & Format<url>) | undefined)",
|
249
245
|
value: input.termsOfService
|
250
246
|
})) && (undefined === input.contact || ("object" === typeof input.contact && null !== input.contact && false === Array.isArray(input.contact) || $guard(_exceptionable, {
|
251
247
|
path: _path + ".contact",
|
@@ -272,34 +268,34 @@ class NestiaMigrateApplication {
|
|
272
268
|
path: _path + ".name",
|
273
269
|
expected: "(string | undefined)",
|
274
270
|
value: input.name
|
275
|
-
})) && (undefined === input.url || "string" === typeof input.url && (
|
271
|
+
})) && (undefined === input.url || "string" === typeof input.url && (/^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.url) || $guard(_exceptionable, {
|
276
272
|
path: _path + ".url",
|
277
|
-
expected: "string
|
273
|
+
expected: "string & Format<url>",
|
278
274
|
value: input.url
|
279
275
|
})) || $guard(_exceptionable, {
|
280
276
|
path: _path + ".url",
|
281
|
-
expected: "(string | undefined)",
|
277
|
+
expected: "((string & Format<url>) | undefined)",
|
282
278
|
value: input.url
|
283
|
-
})) && (undefined === input.email || "string" === typeof input.email && (
|
279
|
+
})) && (undefined === input.email || "string" === typeof input.email && (/^(([^<>()[\]\.,;:\s@\"]+(\.[^<>()[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(input.email) || $guard(_exceptionable, {
|
284
280
|
path: _path + ".email",
|
285
|
-
expected: "string
|
281
|
+
expected: "string & Format<email>",
|
286
282
|
value: input.email
|
287
283
|
})) || $guard(_exceptionable, {
|
288
284
|
path: _path + ".email",
|
289
|
-
expected: "(string | undefined)",
|
285
|
+
expected: "((string & Format<email>) | undefined)",
|
290
286
|
value: input.email
|
291
287
|
}));
|
292
288
|
const $ao3 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
|
293
289
|
path: _path + ".name",
|
294
290
|
expected: "string",
|
295
291
|
value: input.name
|
296
|
-
})) && (undefined === input.url || "string" === typeof input.url && (
|
292
|
+
})) && (undefined === input.url || "string" === typeof input.url && (/^[a-zA-Z0-9]+:\/\/(?:www.)?[-a-zA-Z0-9@:%._+~#=]{1,256}.[a-zA-Z0-9()]{1,6}\b(?:[-a-zA-Z0-9()@:%_+.~#?&/=]*)$/.test(input.url) || $guard(_exceptionable, {
|
297
293
|
path: _path + ".url",
|
298
|
-
expected: "string
|
294
|
+
expected: "string & Format<url>",
|
299
295
|
value: input.url
|
300
296
|
})) || $guard(_exceptionable, {
|
301
297
|
path: _path + ".url",
|
302
|
-
expected: "(string | undefined)",
|
298
|
+
expected: "((string & Format<url>) | undefined)",
|
303
299
|
value: input.url
|
304
300
|
}));
|
305
301
|
const $ao4 = (input, _path, _exceptionable = true) => ("string" === typeof input.url || $guard(_exceptionable, {
|
@@ -492,23 +488,19 @@ class NestiaMigrateApplication {
|
|
492
488
|
expected: "(boolean | undefined)",
|
493
489
|
value: input["x-typia-rest"]
|
494
490
|
}));
|
495
|
-
const $ao11 = (input, _path, _exceptionable = true) => (undefined === input["default"] || "number" === typeof input["default"] && (
|
491
|
+
const $ao11 = (input, _path, _exceptionable = true) => (undefined === input["default"] || "number" === typeof input["default"] && (Math.floor(input["default"]) === input["default"] && -2147483648 <= input["default"] && input["default"] <= 2147483647 || $guard(_exceptionable, {
|
496
492
|
path: _path + "[\"default\"]",
|
497
|
-
expected: "number
|
493
|
+
expected: "number & Type<int32>",
|
498
494
|
value: input["default"]
|
499
495
|
})) || $guard(_exceptionable, {
|
500
496
|
path: _path + "[\"default\"]",
|
501
|
-
expected: "(number | undefined)",
|
497
|
+
expected: "((number & Type<int32>) | undefined)",
|
502
498
|
value: input["default"]
|
503
499
|
})) && (undefined === input["enum"] || (Array.isArray(input["enum"]) || $guard(_exceptionable, {
|
504
500
|
path: _path + "[\"enum\"]",
|
505
501
|
expected: "(Array<number> | undefined)",
|
506
502
|
value: input["enum"]
|
507
|
-
})) && input["enum"].every((elem, _index6) => "number" === typeof elem
|
508
|
-
path: _path + "[\"enum\"][" + _index6 + "]",
|
509
|
-
expected: "number (@type int)",
|
510
|
-
value: elem
|
511
|
-
})) || $guard(_exceptionable, {
|
503
|
+
})) && input["enum"].every((elem, _index6) => "number" === typeof elem || $guard(_exceptionable, {
|
512
504
|
path: _path + "[\"enum\"][" + _index6 + "]",
|
513
505
|
expected: "number",
|
514
506
|
value: elem
|
@@ -516,21 +508,21 @@ class NestiaMigrateApplication {
|
|
516
508
|
path: _path + "[\"enum\"]",
|
517
509
|
expected: "(Array<number> | undefined)",
|
518
510
|
value: input["enum"]
|
519
|
-
})) && (undefined === input.minimum || "number" === typeof input.minimum && (
|
511
|
+
})) && (undefined === input.minimum || "number" === typeof input.minimum && (Math.floor(input.minimum) === input.minimum && -2147483648 <= input.minimum && input.minimum <= 2147483647 || $guard(_exceptionable, {
|
520
512
|
path: _path + ".minimum",
|
521
|
-
expected: "number
|
513
|
+
expected: "number & Type<int32>",
|
522
514
|
value: input.minimum
|
523
515
|
})) || $guard(_exceptionable, {
|
524
516
|
path: _path + ".minimum",
|
525
|
-
expected: "(number | undefined)",
|
517
|
+
expected: "((number & Type<int32>) | undefined)",
|
526
518
|
value: input.minimum
|
527
|
-
})) && (undefined === input.maximum || "number" === typeof input.maximum && (
|
519
|
+
})) && (undefined === input.maximum || "number" === typeof input.maximum && (Math.floor(input.maximum) === input.maximum && -2147483648 <= input.maximum && input.maximum <= 2147483647 || $guard(_exceptionable, {
|
528
520
|
path: _path + ".maximum",
|
529
|
-
expected: "number
|
521
|
+
expected: "number & Type<int32>",
|
530
522
|
value: input.maximum
|
531
523
|
})) || $guard(_exceptionable, {
|
532
524
|
path: _path + ".maximum",
|
533
|
-
expected: "(number | undefined)",
|
525
|
+
expected: "((number & Type<int32>) | undefined)",
|
534
526
|
value: input.maximum
|
535
527
|
})) && (undefined === input.exclusiveMinimum || "boolean" === typeof input.exclusiveMinimum || $guard(_exceptionable, {
|
536
528
|
path: _path + ".exclusiveMinimum",
|
@@ -540,17 +532,13 @@ class NestiaMigrateApplication {
|
|
540
532
|
path: _path + ".exclusiveMaximum",
|
541
533
|
expected: "(boolean | undefined)",
|
542
534
|
value: input.exclusiveMaximum
|
543
|
-
})) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (
|
535
|
+
})) && (undefined === input.multipleOf || "number" === typeof input.multipleOf && (Math.floor(input.multipleOf) === input.multipleOf && 0 <= input.multipleOf && input.multipleOf <= 4294967295 || $guard(_exceptionable, {
|
544
536
|
path: _path + ".multipleOf",
|
545
|
-
expected: "number
|
546
|
-
value: input.multipleOf
|
547
|
-
})) && (0 <= input.multipleOf || $guard(_exceptionable, {
|
548
|
-
path: _path + ".multipleOf",
|
549
|
-
expected: "number (@type uint)",
|
537
|
+
expected: "number & Type<uint32>",
|
550
538
|
value: input.multipleOf
|
551
539
|
})) || $guard(_exceptionable, {
|
552
540
|
path: _path + ".multipleOf",
|
553
|
-
expected: "(number | undefined)",
|
541
|
+
expected: "((number & Type<uint32>) | undefined)",
|
554
542
|
value: input.multipleOf
|
555
543
|
})) && ("integer" === input.type || $guard(_exceptionable, {
|
556
544
|
path: _path + ".type",
|
@@ -670,29 +658,21 @@ class NestiaMigrateApplication {
|
|
670
658
|
path: _path + ".pattern",
|
671
659
|
expected: "(string | undefined)",
|
672
660
|
value: input.pattern
|
673
|
-
})) && (undefined === input.minLength || "number" === typeof input.minLength && (
|
661
|
+
})) && (undefined === input.minLength || "number" === typeof input.minLength && (Math.floor(input.minLength) === input.minLength && 0 <= input.minLength && input.minLength <= 4294967295 || $guard(_exceptionable, {
|
674
662
|
path: _path + ".minLength",
|
675
|
-
expected: "number
|
676
|
-
value: input.minLength
|
677
|
-
})) && (0 <= input.minLength || $guard(_exceptionable, {
|
678
|
-
path: _path + ".minLength",
|
679
|
-
expected: "number (@type uint)",
|
663
|
+
expected: "number & Type<uint32>",
|
680
664
|
value: input.minLength
|
681
665
|
})) || $guard(_exceptionable, {
|
682
666
|
path: _path + ".minLength",
|
683
|
-
expected: "(number | undefined)",
|
667
|
+
expected: "((number & Type<uint32>) | undefined)",
|
684
668
|
value: input.minLength
|
685
|
-
})) && (undefined === input.maxLength || "number" === typeof input.maxLength && (
|
669
|
+
})) && (undefined === input.maxLength || "number" === typeof input.maxLength && (Math.floor(input.maxLength) === input.maxLength && 0 <= input.maxLength && input.maxLength <= 4294967295 || $guard(_exceptionable, {
|
686
670
|
path: _path + ".maxLength",
|
687
|
-
expected: "number
|
688
|
-
value: input.maxLength
|
689
|
-
})) && (0 <= input.maxLength || $guard(_exceptionable, {
|
690
|
-
path: _path + ".maxLength",
|
691
|
-
expected: "number (@type uint)",
|
671
|
+
expected: "number & Type<uint32>",
|
692
672
|
value: input.maxLength
|
693
673
|
})) || $guard(_exceptionable, {
|
694
674
|
path: _path + ".maxLength",
|
695
|
-
expected: "(number | undefined)",
|
675
|
+
expected: "((number & Type<uint32>) | undefined)",
|
696
676
|
value: input.maxLength
|
697
677
|
})) && ("string" === input.type || $guard(_exceptionable, {
|
698
678
|
path: _path + ".type",
|
@@ -731,29 +711,21 @@ class NestiaMigrateApplication {
|
|
731
711
|
path: _path + ".items",
|
732
712
|
expected: "(ISwaggerSchema.IAnyOf | ISwaggerSchema.IArray | ISwaggerSchema.IBoolean | ISwaggerSchema.IInteger | ISwaggerSchema.INumber | ISwaggerSchema.IObject | ISwaggerSchema.IOneOf | ISwaggerSchema.IReference | ISwaggerSchema.IString | ISwaggerSchema.IUnknown)",
|
733
713
|
value: input.items
|
734
|
-
})) && (undefined === input.minItems || "number" === typeof input.minItems && (
|
735
|
-
path: _path + ".minItems",
|
736
|
-
expected: "number (@type uint)",
|
737
|
-
value: input.minItems
|
738
|
-
})) && (0 <= input.minItems || $guard(_exceptionable, {
|
714
|
+
})) && (undefined === input.minItems || "number" === typeof input.minItems && (Math.floor(input.minItems) === input.minItems && 0 <= input.minItems && input.minItems <= 4294967295 || $guard(_exceptionable, {
|
739
715
|
path: _path + ".minItems",
|
740
|
-
expected: "number
|
716
|
+
expected: "number & Type<uint32>",
|
741
717
|
value: input.minItems
|
742
718
|
})) || $guard(_exceptionable, {
|
743
719
|
path: _path + ".minItems",
|
744
|
-
expected: "(number | undefined)",
|
720
|
+
expected: "((number & Type<uint32>) | undefined)",
|
745
721
|
value: input.minItems
|
746
|
-
})) && (undefined === input.maxItems || "number" === typeof input.maxItems && (
|
747
|
-
path: _path + ".maxItems",
|
748
|
-
expected: "number (@type uint)",
|
749
|
-
value: input.maxItems
|
750
|
-
})) && (0 <= input.maxItems || $guard(_exceptionable, {
|
722
|
+
})) && (undefined === input.maxItems || "number" === typeof input.maxItems && (Math.floor(input.maxItems) === input.maxItems && 0 <= input.maxItems && input.maxItems <= 4294967295 || $guard(_exceptionable, {
|
751
723
|
path: _path + ".maxItems",
|
752
|
-
expected: "number
|
724
|
+
expected: "number & Type<uint32>",
|
753
725
|
value: input.maxItems
|
754
726
|
})) || $guard(_exceptionable, {
|
755
727
|
path: _path + ".maxItems",
|
756
|
-
expected: "(number | undefined)",
|
728
|
+
expected: "((number & Type<uint32>) | undefined)",
|
757
729
|
value: input.maxItems
|
758
730
|
})) && (undefined === input["x-typia-tuple"] || ("object" === typeof input["x-typia-tuple"] && null !== input["x-typia-tuple"] || $guard(_exceptionable, {
|
759
731
|
path: _path + "[\"x-typia-tuple\"]",
|
@@ -1212,21 +1184,9 @@ class NestiaMigrateApplication {
|
|
1212
1184
|
path: _path + ".tags",
|
1213
1185
|
expected: "(Array<string> | undefined)",
|
1214
1186
|
value: input.tags
|
1215
|
-
})) && (undefined === input["x-nestia-jsDocTags"] ||
|
1216
|
-
path: _path + "[\"x-nestia-jsDocTags\"]",
|
1217
|
-
expected: "(Array<IJsDocTagInfo> | undefined)",
|
1218
|
-
value: input["x-nestia-jsDocTags"]
|
1219
|
-
})) && input["x-nestia-jsDocTags"].every((elem, _index14) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
1220
|
-
path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
|
1221
|
-
expected: "IJsDocTagInfo",
|
1222
|
-
value: elem
|
1223
|
-
})) && $ao40(elem, _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
1224
|
-
path: _path + "[\"x-nestia-jsDocTags\"][" + _index14 + "]",
|
1225
|
-
expected: "IJsDocTagInfo",
|
1226
|
-
value: elem
|
1227
|
-
})) || $guard(_exceptionable, {
|
1187
|
+
})) && (undefined === input["x-nestia-jsDocTags"] || Array.isArray(input["x-nestia-jsDocTags"]) || $guard(_exceptionable, {
|
1228
1188
|
path: _path + "[\"x-nestia-jsDocTags\"]",
|
1229
|
-
expected: "(Array<
|
1189
|
+
expected: "(Array<__type> | undefined)",
|
1230
1190
|
value: input["x-nestia-jsDocTags"]
|
1231
1191
|
}));
|
1232
1192
|
const $ao32 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || $guard(_exceptionable, {
|
@@ -1352,8 +1312,8 @@ class NestiaMigrateApplication {
|
|
1352
1312
|
path: _path + $join(key),
|
1353
1313
|
expected: "Array<string>",
|
1354
1314
|
value: value
|
1355
|
-
})) && value.every((elem,
|
1356
|
-
path: _path + $join(key) + "[" +
|
1315
|
+
})) && value.every((elem, _index14) => "string" === typeof elem || $guard(_exceptionable, {
|
1316
|
+
path: _path + $join(key) + "[" + _index14 + "]",
|
1357
1317
|
expected: "string",
|
1358
1318
|
value: elem
|
1359
1319
|
})) || $guard(_exceptionable, {
|
@@ -1363,73 +1323,45 @@ class NestiaMigrateApplication {
|
|
1363
1323
|
});
|
1364
1324
|
return true;
|
1365
1325
|
});
|
1366
|
-
const $ao40 = (input, _path, _exceptionable = true) => ("string" === typeof input.name || $guard(_exceptionable, {
|
1367
|
-
path: _path + ".name",
|
1368
|
-
expected: "string",
|
1369
|
-
value: input.name
|
1370
|
-
})) && (undefined === input.text || (Array.isArray(input.text) || $guard(_exceptionable, {
|
1371
|
-
path: _path + ".text",
|
1372
|
-
expected: "(Array<IJsDocTagInfo.IText> | undefined)",
|
1373
|
-
value: input.text
|
1374
|
-
})) && input.text.every((elem, _index16) => ("object" === typeof elem && null !== elem || $guard(_exceptionable, {
|
1375
|
-
path: _path + ".text[" + _index16 + "]",
|
1376
|
-
expected: "IJsDocTagInfo.IText",
|
1377
|
-
value: elem
|
1378
|
-
})) && $ao41(elem, _path + ".text[" + _index16 + "]", true && _exceptionable) || $guard(_exceptionable, {
|
1379
|
-
path: _path + ".text[" + _index16 + "]",
|
1380
|
-
expected: "IJsDocTagInfo.IText",
|
1381
|
-
value: elem
|
1382
|
-
})) || $guard(_exceptionable, {
|
1383
|
-
path: _path + ".text",
|
1384
|
-
expected: "(Array<IJsDocTagInfo.IText> | undefined)",
|
1385
|
-
value: input.text
|
1386
|
-
}));
|
1387
|
-
const $ao41 = (input, _path, _exceptionable = true) => ("string" === typeof input.text || $guard(_exceptionable, {
|
1388
|
-
path: _path + ".text",
|
1389
|
-
expected: "string",
|
1390
|
-
value: input.text
|
1391
|
-
})) && ("string" === typeof input.kind || $guard(_exceptionable, {
|
1392
|
-
path: _path + ".kind",
|
1393
|
-
expected: "string",
|
1394
|
-
value: input.kind
|
1395
|
-
}));
|
1396
1326
|
const $au0 = (input, _path, _exceptionable = true) => (() => {
|
1397
1327
|
if (undefined !== input.anyOf)
|
1398
1328
|
return $ao8(input, _path, true && _exceptionable);
|
1399
|
-
if (undefined !== input.oneOf)
|
1329
|
+
else if (undefined !== input.oneOf)
|
1400
1330
|
return $ao9(input, _path, true && _exceptionable);
|
1401
|
-
if ("boolean" === input.type)
|
1331
|
+
else if ("boolean" === input.type)
|
1402
1332
|
return $ao10(input, _path, true && _exceptionable);
|
1403
|
-
if ("number" === input.type)
|
1333
|
+
else if ("number" === input.type)
|
1404
1334
|
return $ao12(input, _path, true && _exceptionable);
|
1405
|
-
if ("integer" === input.type)
|
1335
|
+
else if ("integer" === input.type)
|
1406
1336
|
return $ao11(input, _path, true && _exceptionable);
|
1407
|
-
if ("string" === input.type)
|
1337
|
+
else if ("string" === input.type)
|
1408
1338
|
return $ao13(input, _path, true && _exceptionable);
|
1409
|
-
if ("array" === input.type)
|
1339
|
+
else if ("array" === input.type)
|
1410
1340
|
return $ao14(input, _path, true && _exceptionable);
|
1411
|
-
if ("object" === input.type)
|
1341
|
+
else if ("object" === input.type)
|
1412
1342
|
return $ao15(input, _path, true && _exceptionable);
|
1413
|
-
if (undefined !== input.$ref)
|
1343
|
+
else if (undefined !== input.$ref)
|
1414
1344
|
return $ao16(input, _path, true && _exceptionable);
|
1415
|
-
|
1345
|
+
else
|
1346
|
+
return $ao7(input, _path, true && _exceptionable);
|
1416
1347
|
})();
|
1417
1348
|
const $au1 = (input, _path, _exceptionable = true) => (() => {
|
1418
1349
|
if ("basic" === input.scheme)
|
1419
1350
|
return $ao19(input, _path, true && _exceptionable);
|
1420
|
-
if ("bearer" === input.scheme)
|
1351
|
+
else if ("bearer" === input.scheme)
|
1421
1352
|
return $ao20(input, _path, true && _exceptionable);
|
1422
|
-
if ("apiKey" === input.type)
|
1353
|
+
else if ("apiKey" === input.type)
|
1423
1354
|
return $ao21(input, _path, true && _exceptionable);
|
1424
|
-
if ("openIdConnect" === input.type)
|
1355
|
+
else if ("openIdConnect" === input.type)
|
1425
1356
|
return $ao22(input, _path, true && _exceptionable);
|
1426
|
-
if ("oauth2" === input.type)
|
1357
|
+
else if ("oauth2" === input.type)
|
1427
1358
|
return $ao23(input, _path, true && _exceptionable);
|
1428
|
-
|
1429
|
-
|
1430
|
-
|
1431
|
-
|
1432
|
-
|
1359
|
+
else
|
1360
|
+
return $guard(_exceptionable, {
|
1361
|
+
path: _path,
|
1362
|
+
expected: "(ISwaggerSecurity.IHttpBasic | ISwaggerSecurity.IHttpBearer | ISwaggerSecurity.IApiKey | ISwaggerSecurity.IOpenId | ISwaggerSecurity.IOAuth2)",
|
1363
|
+
value: input
|
1364
|
+
});
|
1433
1365
|
})();
|
1434
1366
|
return ("object" === typeof input && null !== input || $guard(true, {
|
1435
1367
|
path: _path + "",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NestiaMigrateApplication.js","sourceRoot":"","sources":["../src/NestiaMigrateApplication.ts"],"names":[],"mappings":";;;;;;AAAA,kEAA+B;AAE/B,kDAA0B;AAE1B,2DAAwD;AACxD,iDAA8C;AAC9C,uEAAoE;AAKpE,MAAa,wBAAwB;IAKjC,YAAmB,OAAiB;QAsB7B,aAAQ,GACX,CAAC,QAA4C,EAAE,EAAE,CACjD,CAAC,MAAc,EAAQ,EAAE;YACrB,MAAM,OAAO,GAAoB,IAAI,CAAC,OAAO,EAAE,CAAC;YAChD,MAAM,KAAK,GAAmB,qCAAiB,CAAC,KAAK,CACjD,IAAI,CAAC,OAAO,CAAC,UAAU,CAC1B,CAAC,OAAO,CAAC,CAAC;YAEX,IAAI;gBACA,uBAAE,CAAC,QAAQ,CACP,yDAAyD,MAAM,GAAG,EAClE,EAAE,KAAK,EAAE,QAAQ,EAAE,CACtB,CAAC;gBACF,KAAK,MAAM,IAAI,IAAI;oBACf,OAAO;oBACP,UAAU;oBACV,kBAAkB;oBAClB,gBAAgB;oBAChB,gBAAgB;iBACnB;oBACG,uBAAE,CAAC,QAAQ,CAAC,WAAW,MAAM,GAAG,IAAI,GAAG,EAAE;wBACrC,KAAK,EAAE,QAAQ;qBAClB,CAAC,CAAC;aACV;YAAC,WAAM;gBACJ,2BAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,mBAAQ,CAAC,CAAC;aACpD;YACD,2BAAY,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC;QAClD,CAAC,CAAC;QAhDF,IAAI,CAAC,OAAO;;
|
1
|
+
{"version":3,"file":"NestiaMigrateApplication.js","sourceRoot":"","sources":["../src/NestiaMigrateApplication.ts"],"names":[],"mappings":"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"}
|
package/lib/bundles/TEMPLATE.js
CHANGED
@@ -50,7 +50,7 @@ exports.TEMPLATE = [
|
|
50
50
|
{
|
51
51
|
"location": "",
|
52
52
|
"file": "package.json",
|
53
|
-
"content": "{\r\n \"private\": true,\r\n \"name\": \"@ORGANIZATION/PROJECT\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"Starter kit of Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"scripts\": {\r\n \"----------------------------------------------\": \"\",\r\n \"build\": \"npm run build:sdk && npm run build:main && npm run build:test\",\r\n \"build:api\": \"rimraf packages/api/lib && npm run build:sdk && tsc -p packages/api/tsconfig.json\",\r\n \"build:main\": \"rimraf lib && tsc\",\r\n \"build:sdk\": \"rimraf src/api/functional && nestia sdk\",\r\n \"build:swagger\": \"npx nestia swagger\",\r\n \"build:test\": \"rimraf bin && tsc -p test/tsconfig.json\",\r\n \"dev\": \"npm run build:test -- --watch\",\r\n \"eslint\": \"eslint src && eslint test\",\r\n \"eslint:fix\": \"eslint --fix src && eslint --fix test\",\r\n \"package:api\": \"npm run build:swagger && npm run build:api && cd packages/api && npm publish\",\r\n \"prepare\": \"ts-patch install\",\r\n \"prettier\": \"prettier src --write && prettier test --write\",\r\n \"-----------------------------------------------\": \"\",\r\n \"start\": \"node lib/executable/server\",\r\n \"test\": \"node bin/test\",\r\n \"------------------------------------------------\": \"\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia-template\"\r\n },\r\n \"keywords\": [\r\n \"nestia\",\r\n \"template\",\r\n \"boilerplate\"\r\n ],\r\n \"author\": \"AUTHOR\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia-template/issues\"\r\n },\r\n \"homepage\": \"https://github.com/samchon/nestia-template#readme\",\r\n \"devDependencies\": {\r\n \"@nestia/e2e\": \"^0.3.6\",\r\n \"@nestia/sdk\": \"^1.6.
|
53
|
+
"content": "{\r\n \"private\": true,\r\n \"name\": \"@ORGANIZATION/PROJECT\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"Starter kit of Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"scripts\": {\r\n \"----------------------------------------------\": \"\",\r\n \"build\": \"npm run build:sdk && npm run build:main && npm run build:test\",\r\n \"build:api\": \"rimraf packages/api/lib && npm run build:sdk && tsc -p packages/api/tsconfig.json\",\r\n \"build:main\": \"rimraf lib && tsc\",\r\n \"build:sdk\": \"rimraf src/api/functional && nestia sdk\",\r\n \"build:swagger\": \"npx nestia swagger\",\r\n \"build:test\": \"rimraf bin && tsc -p test/tsconfig.json\",\r\n \"dev\": \"npm run build:test -- --watch\",\r\n \"eslint\": \"eslint src && eslint test\",\r\n \"eslint:fix\": \"eslint --fix src && eslint --fix test\",\r\n \"package:api\": \"npm run build:swagger && npm run build:api && cd packages/api && npm publish\",\r\n \"prepare\": \"ts-patch install\",\r\n \"prettier\": \"prettier src --write && prettier test --write\",\r\n \"-----------------------------------------------\": \"\",\r\n \"start\": \"node lib/executable/server\",\r\n \"test\": \"node bin/test\",\r\n \"------------------------------------------------\": \"\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia-template\"\r\n },\r\n \"keywords\": [\r\n \"nestia\",\r\n \"template\",\r\n \"boilerplate\"\r\n ],\r\n \"author\": \"AUTHOR\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia-template/issues\"\r\n },\r\n \"homepage\": \"https://github.com/samchon/nestia-template#readme\",\r\n \"devDependencies\": {\r\n \"@nestia/e2e\": \"^0.3.6\",\r\n \"@nestia/sdk\": \"^1.6.7\",\r\n \"@trivago/prettier-plugin-sort-imports\": \"^3.3.1\",\r\n \"@types/cli\": \"^0.11.21\",\r\n \"@types/inquirer\": \"^8.2.5\",\r\n \"@types/node\": \"^18.11.0\",\r\n \"@types/uuid\": \"^8.3.4\",\r\n \"@typescript-eslint/eslint-plugin\": \"^5.40.0\",\r\n \"@typescript-eslint/parser\": \"^5.40.0\",\r\n \"chalk\": \"^4.1.0\",\r\n \"cli\": \"^1.0.1\",\r\n \"eslint-plugin-deprecation\": \"^1.4.1\",\r\n \"nestia\": \"^4.4.0\",\r\n \"prettier\": \"^2.7.1\",\r\n \"rimraf\": \"^3.0.2\",\r\n \"source-map-support\": \"^0.5.21\",\r\n \"ts-node\": \"^10.9.1\",\r\n \"ts-patch\": \"^3.0.0\",\r\n \"typescript\": \"^5.1.3\",\r\n \"typescript-transform-paths\": \"^3.4.6\"\r\n },\r\n \"dependencies\": {\r\n \"@nestia/core\": \"^1.6.7\",\r\n \"serialize-error\": \"^4.1.0\",\r\n \"tstl\": \"^2.5.13\",\r\n \"typia\": \"^5.0.0\",\r\n \"uuid\": \"^9.0.0\"\r\n },\r\n \"stackblitz\": {\r\n \"startCommand\": \"npm run prepare && npm run build:test && npm run test\"\r\n }\r\n}\r\n"
|
54
54
|
},
|
55
55
|
{
|
56
56
|
"location": "/packages/api",
|
@@ -60,7 +60,7 @@ exports.TEMPLATE = [
|
|
60
60
|
{
|
61
61
|
"location": "/packages/api",
|
62
62
|
"file": "package.json",
|
63
|
-
"content": "{\r\n \"name\": \"@ORGANIZATION/PROJECT-api\",\r\n \"version\": \"0.0.0\",\r\n \"description\": \"API for PROJECT\",\r\n \"main\": \"lib/index.js\",\r\n \"typings\": \"lib/index.d.ts\",\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia-template\"\r\n },\r\n \"author\": \"AUTHOR\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia-template/issues\"\r\n },\r\n \"homepage\": \"https://github.com/samchon/nestia-template#readme\",\r\n \"dependencies\": {\r\n \"@nestia/fetcher\": \"^1.6.
|
63
|
+
"content": "{\r\n \"name\": \"@ORGANIZATION/PROJECT-api\",\r\n \"version\": \"0.0.0\",\r\n \"description\": \"API for PROJECT\",\r\n \"main\": \"lib/index.js\",\r\n \"typings\": \"lib/index.d.ts\",\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia-template\"\r\n },\r\n \"author\": \"AUTHOR\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia-template/issues\"\r\n },\r\n \"homepage\": \"https://github.com/samchon/nestia-template#readme\",\r\n \"dependencies\": {\r\n \"@nestia/fetcher\": \"^1.6.7\",\r\n \"typia\": \"^5.0.0\"\r\n }\r\n}\r\n"
|
64
64
|
},
|
65
65
|
{
|
66
66
|
"location": "/packages/api",
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nestia/migrate",
|
3
|
-
"version": "0.2.
|
3
|
+
"version": "0.2.13",
|
4
4
|
"description": "Migration program from swagger to NestJS",
|
5
5
|
"main": "lib/index.js",
|
6
6
|
"typings": "lib/index.d.ts",
|
@@ -30,8 +30,8 @@
|
|
30
30
|
},
|
31
31
|
"homepage": "https://github.com/samchon/nestia#readme",
|
32
32
|
"devDependencies": {
|
33
|
-
"@nestia/core": "^1.6.
|
34
|
-
"@nestia/fetcher": "^1.6.
|
33
|
+
"@nestia/core": "^1.6.7",
|
34
|
+
"@nestia/fetcher": "^1.6.7",
|
35
35
|
"@trivago/prettier-plugin-sort-imports": "^4.1.1",
|
36
36
|
"@types/node": "^20.3.3",
|
37
37
|
"prettier": "^2.8.8",
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"typescript-transform-paths": "^3.4.6"
|
46
46
|
},
|
47
47
|
"dependencies": {
|
48
|
-
"typia": "^
|
48
|
+
"typia": "^5.0.0"
|
49
49
|
},
|
50
50
|
"files": [
|
51
51
|
"lib",
|
package/src/bundles/TEMPLATE.ts
CHANGED
@@ -47,7 +47,7 @@ export const TEMPLATE = [
|
|
47
47
|
{
|
48
48
|
"location": "",
|
49
49
|
"file": "package.json",
|
50
|
-
"content": "{\r\n \"private\": true,\r\n \"name\": \"@ORGANIZATION/PROJECT\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"Starter kit of Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"scripts\": {\r\n \"----------------------------------------------\": \"\",\r\n \"build\": \"npm run build:sdk && npm run build:main && npm run build:test\",\r\n \"build:api\": \"rimraf packages/api/lib && npm run build:sdk && tsc -p packages/api/tsconfig.json\",\r\n \"build:main\": \"rimraf lib && tsc\",\r\n \"build:sdk\": \"rimraf src/api/functional && nestia sdk\",\r\n \"build:swagger\": \"npx nestia swagger\",\r\n \"build:test\": \"rimraf bin && tsc -p test/tsconfig.json\",\r\n \"dev\": \"npm run build:test -- --watch\",\r\n \"eslint\": \"eslint src && eslint test\",\r\n \"eslint:fix\": \"eslint --fix src && eslint --fix test\",\r\n \"package:api\": \"npm run build:swagger && npm run build:api && cd packages/api && npm publish\",\r\n \"prepare\": \"ts-patch install\",\r\n \"prettier\": \"prettier src --write && prettier test --write\",\r\n \"-----------------------------------------------\": \"\",\r\n \"start\": \"node lib/executable/server\",\r\n \"test\": \"node bin/test\",\r\n \"------------------------------------------------\": \"\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia-template\"\r\n },\r\n \"keywords\": [\r\n \"nestia\",\r\n \"template\",\r\n \"boilerplate\"\r\n ],\r\n \"author\": \"AUTHOR\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia-template/issues\"\r\n },\r\n \"homepage\": \"https://github.com/samchon/nestia-template#readme\",\r\n \"devDependencies\": {\r\n \"@nestia/e2e\": \"^0.3.6\",\r\n \"@nestia/sdk\": \"^1.6.
|
50
|
+
"content": "{\r\n \"private\": true,\r\n \"name\": \"@ORGANIZATION/PROJECT\",\r\n \"version\": \"0.1.0\",\r\n \"description\": \"Starter kit of Nestia\",\r\n \"main\": \"lib/index.js\",\r\n \"scripts\": {\r\n \"----------------------------------------------\": \"\",\r\n \"build\": \"npm run build:sdk && npm run build:main && npm run build:test\",\r\n \"build:api\": \"rimraf packages/api/lib && npm run build:sdk && tsc -p packages/api/tsconfig.json\",\r\n \"build:main\": \"rimraf lib && tsc\",\r\n \"build:sdk\": \"rimraf src/api/functional && nestia sdk\",\r\n \"build:swagger\": \"npx nestia swagger\",\r\n \"build:test\": \"rimraf bin && tsc -p test/tsconfig.json\",\r\n \"dev\": \"npm run build:test -- --watch\",\r\n \"eslint\": \"eslint src && eslint test\",\r\n \"eslint:fix\": \"eslint --fix src && eslint --fix test\",\r\n \"package:api\": \"npm run build:swagger && npm run build:api && cd packages/api && npm publish\",\r\n \"prepare\": \"ts-patch install\",\r\n \"prettier\": \"prettier src --write && prettier test --write\",\r\n \"-----------------------------------------------\": \"\",\r\n \"start\": \"node lib/executable/server\",\r\n \"test\": \"node bin/test\",\r\n \"------------------------------------------------\": \"\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia-template\"\r\n },\r\n \"keywords\": [\r\n \"nestia\",\r\n \"template\",\r\n \"boilerplate\"\r\n ],\r\n \"author\": \"AUTHOR\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia-template/issues\"\r\n },\r\n \"homepage\": \"https://github.com/samchon/nestia-template#readme\",\r\n \"devDependencies\": {\r\n \"@nestia/e2e\": \"^0.3.6\",\r\n \"@nestia/sdk\": \"^1.6.7\",\r\n \"@trivago/prettier-plugin-sort-imports\": \"^3.3.1\",\r\n \"@types/cli\": \"^0.11.21\",\r\n \"@types/inquirer\": \"^8.2.5\",\r\n \"@types/node\": \"^18.11.0\",\r\n \"@types/uuid\": \"^8.3.4\",\r\n \"@typescript-eslint/eslint-plugin\": \"^5.40.0\",\r\n \"@typescript-eslint/parser\": \"^5.40.0\",\r\n \"chalk\": \"^4.1.0\",\r\n \"cli\": \"^1.0.1\",\r\n \"eslint-plugin-deprecation\": \"^1.4.1\",\r\n \"nestia\": \"^4.4.0\",\r\n \"prettier\": \"^2.7.1\",\r\n \"rimraf\": \"^3.0.2\",\r\n \"source-map-support\": \"^0.5.21\",\r\n \"ts-node\": \"^10.9.1\",\r\n \"ts-patch\": \"^3.0.0\",\r\n \"typescript\": \"^5.1.3\",\r\n \"typescript-transform-paths\": \"^3.4.6\"\r\n },\r\n \"dependencies\": {\r\n \"@nestia/core\": \"^1.6.7\",\r\n \"serialize-error\": \"^4.1.0\",\r\n \"tstl\": \"^2.5.13\",\r\n \"typia\": \"^5.0.0\",\r\n \"uuid\": \"^9.0.0\"\r\n },\r\n \"stackblitz\": {\r\n \"startCommand\": \"npm run prepare && npm run build:test && npm run test\"\r\n }\r\n}\r\n"
|
51
51
|
},
|
52
52
|
{
|
53
53
|
"location": "/packages/api",
|
@@ -57,7 +57,7 @@ export const TEMPLATE = [
|
|
57
57
|
{
|
58
58
|
"location": "/packages/api",
|
59
59
|
"file": "package.json",
|
60
|
-
"content": "{\r\n \"name\": \"@ORGANIZATION/PROJECT-api\",\r\n \"version\": \"0.0.0\",\r\n \"description\": \"API for PROJECT\",\r\n \"main\": \"lib/index.js\",\r\n \"typings\": \"lib/index.d.ts\",\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia-template\"\r\n },\r\n \"author\": \"AUTHOR\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia-template/issues\"\r\n },\r\n \"homepage\": \"https://github.com/samchon/nestia-template#readme\",\r\n \"dependencies\": {\r\n \"@nestia/fetcher\": \"^1.6.
|
60
|
+
"content": "{\r\n \"name\": \"@ORGANIZATION/PROJECT-api\",\r\n \"version\": \"0.0.0\",\r\n \"description\": \"API for PROJECT\",\r\n \"main\": \"lib/index.js\",\r\n \"typings\": \"lib/index.d.ts\",\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/samchon/nestia-template\"\r\n },\r\n \"author\": \"AUTHOR\",\r\n \"license\": \"MIT\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/samchon/nestia-template/issues\"\r\n },\r\n \"homepage\": \"https://github.com/samchon/nestia-template#readme\",\r\n \"dependencies\": {\r\n \"@nestia/fetcher\": \"^1.6.7\",\r\n \"typia\": \"^5.0.0\"\r\n }\r\n}\r\n"
|
61
61
|
},
|
62
62
|
{
|
63
63
|
"location": "/packages/api",
|