@nestia/sdk 4.0.0-dev.20241021 → 4.0.0-dev.20241021-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/assets/bundle/api/Primitive.ts +1 -1
- package/assets/bundle/api/Resolved.ts +1 -1
- package/lib/executable/internal/NestiaConfigLoader.js +126 -126
- package/lib/generates/SdkGenerator.js +14 -1
- package/lib/generates/SdkGenerator.js.map +1 -1
- package/lib/generates/SwaggerGenerator.js +12 -12
- package/lib/generates/internal/SdkAliasCollection.js +4 -4
- package/lib/generates/internal/SdkAliasCollection.js.map +1 -1
- package/lib/generates/internal/SdkDistributionComposer.js +6 -6
- package/lib/generates/internal/SdkImportWizard.js +2 -2
- package/lib/generates/internal/SdkImportWizard.js.map +1 -1
- package/package.json +7 -7
- package/src/generates/SdkGenerator.ts +14 -1
- package/src/generates/internal/SdkAliasCollection.ts +4 -4
- package/src/generates/internal/SdkImportWizard.ts +2 -2
|
@@ -124,12 +124,25 @@ const BUNDLE_CHANGES = {
|
|
|
124
124
|
],
|
|
125
125
|
"module.ts": [
|
|
126
126
|
[`export * from "./IConnection"`, `export type * from "./IConnection"`],
|
|
127
|
-
[`export * from "./Primitive"`, `export type * from "./Primitive"`],
|
|
128
127
|
],
|
|
129
128
|
"Primitive.ts": [
|
|
130
129
|
[
|
|
131
130
|
`export { Primitive } from "@nestia/fetcher"`,
|
|
131
|
+
`export type { Primitive } from "typia"`,
|
|
132
|
+
],
|
|
133
|
+
[
|
|
132
134
|
`export type { Primitive } from "@nestia/fetcher"`,
|
|
135
|
+
`export type { Primitive } from "typia"`,
|
|
136
|
+
],
|
|
137
|
+
],
|
|
138
|
+
"Resolved.ts": [
|
|
139
|
+
[
|
|
140
|
+
`export { Resolved } from "@nestia/fetcher"`,
|
|
141
|
+
`export type { Resolved } from "typia"`,
|
|
142
|
+
],
|
|
143
|
+
[
|
|
144
|
+
`export type { Resolved } from "@nestia/fetcher"`,
|
|
145
|
+
`export type { Resolved } from "typia"`,
|
|
133
146
|
],
|
|
134
147
|
],
|
|
135
148
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdkGenerator.js","sourceRoot":"","sources":["../../src/generates/SdkGenerator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,4CAAoB;AACpB,gDAA4B;AAQ5B,qDAAkD;AAClD,gFAA6E;AAC7E,oEAAiE;AAEjE,IAAiB,YAAY,CAiH5B;AAjHD,WAAiB,YAAY;IACd,qBAAQ,GAAG,CAAO,GAAsB,EAAiB,EAAE;QACtE,IAAI,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,KAAK,SAAS;YACzC,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;QAEtD,0BAA0B;QAC1B,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;QACtC,IAAI,CAAC;YACH,MAAM,YAAE,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC;QAAC,WAAM,CAAC,CAAA,CAAC;QAEV,WAAW;QACX,MAAM,MAAM,GAAa,MAAM,YAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,aAAA,WAAW,CAAC,CAAC;QAChE,KAAK,MAAM,IAAI,IAAI,MAAM,EAAE,CAAC;YAC1B,MAAM,OAAO,GAAW,GAAG,aAAA,WAAW,IAAI,IAAI,EAAE,CAAC;YACjD,MAAM,MAAM,GAAW,GAAG,GAAG,CAAC,OAAO,CAAC,MAAM,CAAC,MAAM,IAAI,IAAI,EAAE,CAAC;YAC9D,MAAM,KAAK,GAAa,MAAM,YAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAExD,IAAI,KAAK,CAAC,MAAM,EAAE,KAAK,IAAI,EAAE,CAAC;gBAC5B,MAAM,OAAO,GAAW,MAAM,YAAE,CAAC,QAAQ,CAAC,QAAQ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AI,CAAC,aAAa,0CAAE,MAAM,CAAA,IAAI,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAA;KAAA,CAAC;IAE/D,wBAAW,GAAG,cAAQ,CAAC,IAAI,CACtC,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,KAAK,CACN,CAAC;AACJ,CAAC,EAjHgB,YAAY,4BAAZ,YAAY,QAiH5B;AAED,MAAM,cAAc,GAAuC;IACzD,gBAAgB,EAAE;QAChB;YACE,+CAA+C;YAC/C,oDAAoD;SACrD;KACF;IACD,WAAW,EAAE;QACX,CAAC,+BAA+B,EAAE,oCAAoC,CAAC;KACxE;IACD,cAAc,EAAE;QACd;YACE,6CAA6C;YAC7C,wCAAwC;SACzC;QACD;YACE,kDAAkD;YAClD,wCAAwC;SACzC;KACF;IACD,aAAa,EAAE;QACb;YACE,4CAA4C;YAC5C,uCAAuC;SACxC;QACD;YACE,iDAAiD;YACjD,uCAAuC;SACxC;KACF;CACF,CAAC"}
|
|
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
38
|
exports.SwaggerGenerator = void 0;
|
|
39
|
-
const
|
|
39
|
+
const __typia_transform_$assertGuard = __importStar(require("typia/lib/internal/$assertGuard.js"));
|
|
40
40
|
const openapi_1 = require("@samchon/openapi");
|
|
41
41
|
const fs_1 = __importDefault(require("fs"));
|
|
42
42
|
const path_1 = __importDefault(require("path"));
|
|
@@ -114,47 +114,47 @@ var SwaggerGenerator;
|
|
|
114
114
|
return null;
|
|
115
115
|
try {
|
|
116
116
|
const content = yield fs_1.default.promises.readFile(location, "utf8");
|
|
117
|
-
const data = (() => { const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.description || "string" === typeof input.description) && (null !== input.license && (undefined === input.license || "string" === typeof input.license || "object" === typeof input.license && null !== input.license && $io1(input.license))); const $io1 = input => "string" === typeof input.type && ("string" === typeof input.url && (/\/|:/.test(input.url) && /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i.test(input.url))); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name ||
|
|
117
|
+
const data = (() => { const $io0 = input => (undefined === input.name || "string" === typeof input.name) && (undefined === input.version || "string" === typeof input.version) && (undefined === input.description || "string" === typeof input.description) && (null !== input.license && (undefined === input.license || "string" === typeof input.license || "object" === typeof input.license && null !== input.license && $io1(input.license))); const $io1 = input => "string" === typeof input.type && ("string" === typeof input.url && (/\/|:/.test(input.url) && /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i.test(input.url))); const $ao0 = (input, _path, _exceptionable = true) => (undefined === input.name || "string" === typeof input.name || __typia_transform_$assertGuard.$assertGuard(_exceptionable, {
|
|
118
118
|
method: "typia.json.assertParse",
|
|
119
119
|
path: _path + ".name",
|
|
120
120
|
expected: "(string | undefined)",
|
|
121
121
|
value: input.name
|
|
122
|
-
}, _errorFactory)) && (undefined === input.version || "string" === typeof input.version ||
|
|
122
|
+
}, _errorFactory)) && (undefined === input.version || "string" === typeof input.version || __typia_transform_$assertGuard.$assertGuard(_exceptionable, {
|
|
123
123
|
method: "typia.json.assertParse",
|
|
124
124
|
path: _path + ".version",
|
|
125
125
|
expected: "(string | undefined)",
|
|
126
126
|
value: input.version
|
|
127
|
-
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description ||
|
|
127
|
+
}, _errorFactory)) && (undefined === input.description || "string" === typeof input.description || __typia_transform_$assertGuard.$assertGuard(_exceptionable, {
|
|
128
128
|
method: "typia.json.assertParse",
|
|
129
129
|
path: _path + ".description",
|
|
130
130
|
expected: "(string | undefined)",
|
|
131
131
|
value: input.description
|
|
132
|
-
}, _errorFactory)) && ((null !== input.license ||
|
|
132
|
+
}, _errorFactory)) && ((null !== input.license || __typia_transform_$assertGuard.$assertGuard(_exceptionable, {
|
|
133
133
|
method: "typia.json.assertParse",
|
|
134
134
|
path: _path + ".license",
|
|
135
135
|
expected: "(__type.o1 | string | undefined)",
|
|
136
136
|
value: input.license
|
|
137
|
-
}, _errorFactory)) && (undefined === input.license || "string" === typeof input.license || ("object" === typeof input.license && null !== input.license ||
|
|
137
|
+
}, _errorFactory)) && (undefined === input.license || "string" === typeof input.license || ("object" === typeof input.license && null !== input.license || __typia_transform_$assertGuard.$assertGuard(_exceptionable, {
|
|
138
138
|
method: "typia.json.assertParse",
|
|
139
139
|
path: _path + ".license",
|
|
140
140
|
expected: "(__type.o1 | string | undefined)",
|
|
141
141
|
value: input.license
|
|
142
|
-
}, _errorFactory)) && $ao1(input.license, _path + ".license", true && _exceptionable) ||
|
|
142
|
+
}, _errorFactory)) && $ao1(input.license, _path + ".license", true && _exceptionable) || __typia_transform_$assertGuard.$assertGuard(_exceptionable, {
|
|
143
143
|
method: "typia.json.assertParse",
|
|
144
144
|
path: _path + ".license",
|
|
145
145
|
expected: "(__type.o1 | string | undefined)",
|
|
146
146
|
value: input.license
|
|
147
|
-
}, _errorFactory))); const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.type ||
|
|
147
|
+
}, _errorFactory))); const $ao1 = (input, _path, _exceptionable = true) => ("string" === typeof input.type || __typia_transform_$assertGuard.$assertGuard(_exceptionable, {
|
|
148
148
|
method: "typia.json.assertParse",
|
|
149
149
|
path: _path + ".type",
|
|
150
150
|
expected: "string",
|
|
151
151
|
value: input.type
|
|
152
|
-
}, _errorFactory)) && ("string" === typeof input.url && (/\/|:/.test(input.url) && /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i.test(input.url) ||
|
|
152
|
+
}, _errorFactory)) && ("string" === typeof input.url && (/\/|:/.test(input.url) && /^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/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;=:@/?]|%[0-9a-f]{2})*)?$/i.test(input.url) || __typia_transform_$assertGuard.$assertGuard(_exceptionable, {
|
|
153
153
|
method: "typia.json.assertParse",
|
|
154
154
|
path: _path + ".url",
|
|
155
155
|
expected: "string & Format<\"uri\">",
|
|
156
156
|
value: input.url
|
|
157
|
-
}, _errorFactory)) ||
|
|
157
|
+
}, _errorFactory)) || __typia_transform_$assertGuard.$assertGuard(_exceptionable, {
|
|
158
158
|
method: "typia.json.assertParse",
|
|
159
159
|
path: _path + ".url",
|
|
160
160
|
expected: "(string & Format<\"uri\">)",
|
|
@@ -162,12 +162,12 @@ var SwaggerGenerator;
|
|
|
162
162
|
}, _errorFactory)); const __is = input => "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input); let _errorFactory; const __assert = (input, errorFactory) => {
|
|
163
163
|
if (false === __is(input)) {
|
|
164
164
|
_errorFactory = errorFactory;
|
|
165
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) ||
|
|
165
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input && false === Array.isArray(input) || __typia_transform_$assertGuard.$assertGuard(true, {
|
|
166
166
|
method: "typia.json.assertParse",
|
|
167
167
|
path: _path + "",
|
|
168
168
|
expected: "__type",
|
|
169
169
|
value: input
|
|
170
|
-
}, _errorFactory)) && $ao0(input, _path + "", true) ||
|
|
170
|
+
}, _errorFactory)) && $ao0(input, _path + "", true) || __typia_transform_$assertGuard.$assertGuard(true, {
|
|
171
171
|
method: "typia.json.assertParse",
|
|
172
172
|
path: _path + "",
|
|
173
173
|
expected: "__type",
|
|
@@ -22,7 +22,7 @@ var SdkAliasCollection;
|
|
|
22
22
|
return type;
|
|
23
23
|
return typescript_1.default.factory.createTypeReferenceNode(importer.external({
|
|
24
24
|
type: true,
|
|
25
|
-
library: "
|
|
25
|
+
library: "typia",
|
|
26
26
|
instance: "Resolved",
|
|
27
27
|
}), [type]);
|
|
28
28
|
};
|
|
@@ -34,7 +34,7 @@ var SdkAliasCollection;
|
|
|
34
34
|
return type;
|
|
35
35
|
return typescript_1.default.factory.createTypeReferenceNode(importer.external({
|
|
36
36
|
type: true,
|
|
37
|
-
library: "
|
|
37
|
+
library: "typia",
|
|
38
38
|
instance: "Resolved",
|
|
39
39
|
}), [type]);
|
|
40
40
|
};
|
|
@@ -52,7 +52,7 @@ var SdkAliasCollection;
|
|
|
52
52
|
return type;
|
|
53
53
|
return typescript_1.default.factory.createTypeReferenceNode(importer.external({
|
|
54
54
|
type: true,
|
|
55
|
-
library: "
|
|
55
|
+
library: "typia",
|
|
56
56
|
instance: (() => { const $io0 = input => ("application/json" === input.contentType || "application/x-www-form-urlencoded" === input.contentType || "multipart/form-data" === input.contentType || "text/plain" === input.contentType) && "boolean" === typeof input.encrypted && "body" === input.category && "string" === typeof input.name && "number" === typeof input.index && ("object" === typeof input.type && null !== input.type && $io1(input.type)) && ("object" === typeof input.metadata && null !== input.metadata && $io2(input.metadata)) && ("object" === typeof input.components && null !== input.components && $io26(input.components)) && "function" === typeof input.validate && true && (undefined === input.examples || "object" === typeof input.examples && null !== input.examples && false === Array.isArray(input.examples) && $io32(input.examples)) && (null === input.description || "string" === typeof input.description) && (Array.isArray(input.jsDocTags) && input.jsDocTags.every(elem => "object" === typeof elem && null !== elem && $io5(elem))); const $io1 = input => "string" === typeof input.name && (undefined === input.typeArguments || Array.isArray(input.typeArguments) && input.typeArguments.every(elem => "object" === typeof elem && null !== elem && $io1(elem))); const $io2 = input => "boolean" === typeof input.any && "boolean" === typeof input.required && "boolean" === typeof input.optional && "boolean" === typeof input.nullable && (Array.isArray(input.functions) && input.functions.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (Array.isArray(input.atomics) && input.atomics.every(elem => "object" === typeof elem && null !== elem && $io7(elem))) && (Array.isArray(input.constants) && input.constants.every(elem => "object" === typeof elem && null !== elem && $iu0(elem))) && (Array.isArray(input.templates) && input.templates.every(elem => "object" === typeof elem && null !== elem && $io17(elem))) && (null === input.escaped || "object" === typeof input.escaped && null !== input.escaped && $io18(input.escaped)) && (null === input.rest || "object" === typeof input.rest && null !== input.rest && $io2(input.rest)) && (Array.isArray(input.arrays) && input.arrays.every(elem => "object" === typeof elem && null !== elem && $io19(elem))) && (Array.isArray(input.tuples) && input.tuples.every(elem => "object" === typeof elem && null !== elem && $io20(elem))) && (Array.isArray(input.objects) && input.objects.every(elem => "object" === typeof elem && null !== elem && $io21(elem))) && (Array.isArray(input.aliases) && input.aliases.every(elem => "object" === typeof elem && null !== elem && $io22(elem))) && (Array.isArray(input.natives) && input.natives.every(elem => "object" === typeof elem && null !== elem && $io23(elem))) && (Array.isArray(input.sets) && input.sets.every(elem => "object" === typeof elem && null !== elem && $io24(elem))) && (Array.isArray(input.maps) && input.maps.every(elem => "object" === typeof elem && null !== elem && $io25(elem))); const $io3 = input => Array.isArray(input.parameters) && input.parameters.every(elem => "object" === typeof elem && null !== elem && $io4(elem)) && ("object" === typeof input.output && null !== input.output && $io2(input.output)) && "boolean" === typeof input.async; const $io4 = input => "string" === typeof input.name && ("object" === typeof input.type && null !== input.type && $io2(input.type)) && (null === input.description || "string" === typeof input.description) && (Array.isArray(input.jsDocTags) && input.jsDocTags.every(elem => "object" === typeof elem && null !== elem && $io5(elem))); const $io5 = input => "string" === typeof input.name && (undefined === input.text || Array.isArray(input.text) && input.text.every(elem => "object" === typeof elem && null !== elem && $io6(elem))); const $io6 = input => "string" === typeof input.text && "string" === typeof input.kind; const $io7 = input => ("string" === input.type || "number" === input.type || "bigint" === input.type || "boolean" === input.type) && (Array.isArray(input.tags) && input.tags.every(elem => Array.isArray(elem) && elem.every(elem => "object" === typeof elem && null !== elem && $io8(elem)))); const $io8 = input => ("string" === input.target || "number" === input.target || "bigint" === input.target || "boolean" === input.target || "object" === input.target || "array" === input.target) && "string" === typeof input.name && "string" === typeof input.kind && (null !== input.exclusive && undefined !== input.exclusive && ("boolean" === typeof input.exclusive || Array.isArray(input.exclusive) && input.exclusive.every(elem => "string" === typeof elem))) && true && (undefined === input.validate || "string" === typeof input.validate) && (undefined === input.schema || "object" === typeof input.schema && null !== input.schema && false === Array.isArray(input.schema) && $io9(input.schema)); const $io9 = input => true; const $io10 = input => "boolean" === input.type && (Array.isArray(input.values) && input.values.every(elem => "object" === typeof elem && null !== elem && $io11(elem))); const $io11 = input => "boolean" === typeof input.value && (Array.isArray(input.tags) && input.tags.every(elem => Array.isArray(elem) && elem.every(elem => "object" === typeof elem && null !== elem && $io8(elem)))) && (null === input.description || undefined === input.description || "string" === typeof input.description) && (undefined === input.jsDocTags || Array.isArray(input.jsDocTags) && input.jsDocTags.every(elem => "object" === typeof elem && null !== elem && $io5(elem))); const $io12 = input => "number" === input.type && (Array.isArray(input.values) && input.values.every(elem => "object" === typeof elem && null !== elem && $io13(elem))); const $io13 = input => "number" === typeof input.value && (Array.isArray(input.tags) && input.tags.every(elem => Array.isArray(elem) && elem.every(elem => "object" === typeof elem && null !== elem && $io8(elem)))) && (null === input.description || undefined === input.description || "string" === typeof input.description) && (undefined === input.jsDocTags || Array.isArray(input.jsDocTags) && input.jsDocTags.every(elem => "object" === typeof elem && null !== elem && $io5(elem))); const $io14 = input => "string" === input.type && (Array.isArray(input.values) && input.values.every(elem => "object" === typeof elem && null !== elem && $io15(elem))); const $io15 = input => "string" === typeof input.value && (Array.isArray(input.tags) && input.tags.every(elem => Array.isArray(elem) && elem.every(elem => "object" === typeof elem && null !== elem && $io8(elem)))) && (null === input.description || undefined === input.description || "string" === typeof input.description) && (undefined === input.jsDocTags || Array.isArray(input.jsDocTags) && input.jsDocTags.every(elem => "object" === typeof elem && null !== elem && $io5(elem))); const $io16 = input => "bigint" === input.type && (Array.isArray(input.values) && input.values.every(elem => "object" === typeof elem && null !== elem && $io15(elem))); const $io17 = input => Array.isArray(input.row) && input.row.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) && (Array.isArray(input.tags) && input.tags.every(elem => Array.isArray(elem) && elem.every(elem => "object" === typeof elem && null !== elem && $io8(elem)))); const $io18 = input => "object" === typeof input.original && null !== input.original && $io2(input.original) && ("object" === typeof input.returns && null !== input.returns && $io2(input.returns)); const $io19 = input => "string" === typeof input.name && (Array.isArray(input.tags) && input.tags.every(elem => Array.isArray(elem) && elem.every(elem => "object" === typeof elem && null !== elem && $io8(elem)))); const $io20 = input => "string" === typeof input.name && (Array.isArray(input.tags) && input.tags.every(elem => Array.isArray(elem) && elem.every(elem => "object" === typeof elem && null !== elem && $io8(elem)))); const $io21 = input => "string" === typeof input.name && (Array.isArray(input.tags) && input.tags.every(elem => Array.isArray(elem) && elem.every(elem => "object" === typeof elem && null !== elem && $io8(elem)))); const $io22 = input => "string" === typeof input.name && (Array.isArray(input.tags) && input.tags.every(elem => Array.isArray(elem) && elem.every(elem => "object" === typeof elem && null !== elem && $io8(elem)))); const $io23 = input => "string" === typeof input.name && (Array.isArray(input.tags) && input.tags.every(elem => Array.isArray(elem) && elem.every(elem => "object" === typeof elem && null !== elem && $io8(elem)))); const $io24 = input => "object" === typeof input.value && null !== input.value && $io2(input.value) && (Array.isArray(input.tags) && input.tags.every(elem => Array.isArray(elem) && elem.every(elem => "object" === typeof elem && null !== elem && $io8(elem)))); const $io25 = input => "object" === typeof input.key && null !== input.key && $io2(input.key) && ("object" === typeof input.value && null !== input.value && $io2(input.value)) && (Array.isArray(input.tags) && input.tags.every(elem => Array.isArray(elem) && elem.every(elem => "object" === typeof elem && null !== elem && $io8(elem)))); const $io26 = input => Array.isArray(input.objects) && input.objects.every(elem => "object" === typeof elem && null !== elem && $io27(elem)) && (Array.isArray(input.aliases) && input.aliases.every(elem => "object" === typeof elem && null !== elem && $io29(elem))) && (Array.isArray(input.arrays) && input.arrays.every(elem => "object" === typeof elem && null !== elem && $io30(elem))) && (Array.isArray(input.tuples) && input.tuples.every(elem => "object" === typeof elem && null !== elem && $io31(elem))); const $io27 = input => "string" === typeof input.name && (Array.isArray(input.properties) && input.properties.every(elem => "object" === typeof elem && null !== elem && $io28(elem))) && (undefined === input.description || "string" === typeof input.description) && (Array.isArray(input.jsDocTags) && input.jsDocTags.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && "number" === typeof input.index && "boolean" === typeof input.recursive && (Array.isArray(input.nullables) && input.nullables.every(elem => "boolean" === typeof elem)); const $io28 = input => "object" === typeof input.key && null !== input.key && $io2(input.key) && ("object" === typeof input.value && null !== input.value && $io2(input.value)) && (null === input.description || "string" === typeof input.description) && (Array.isArray(input.jsDocTags) && input.jsDocTags.every(elem => "object" === typeof elem && null !== elem && $io5(elem))); const $io29 = input => "string" === typeof input.name && ("object" === typeof input.value && null !== input.value && $io2(input.value)) && (Array.isArray(input.nullables) && input.nullables.every(elem => "boolean" === typeof elem)) && (null === input.description || "string" === typeof input.description) && (Array.isArray(input.jsDocTags) && input.jsDocTags.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && "boolean" === typeof input.recursive; const $io30 = input => "string" === typeof input.name && ("object" === typeof input.value && null !== input.value && $io2(input.value)) && (Array.isArray(input.nullables) && input.nullables.every(elem => "boolean" === typeof elem)) && "boolean" === typeof input.recursive && (null === input.index || "number" === typeof input.index); const $io31 = input => "string" === typeof input.name && (Array.isArray(input.elements) && input.elements.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && (null === input.index || "number" === typeof input.index) && "boolean" === typeof input.recursive && (Array.isArray(input.nullables) && input.nullables.every(elem => "boolean" === typeof elem)); const $io32 = input => Object.keys(input).every(key => {
|
|
57
57
|
const value = input[key];
|
|
58
58
|
if (undefined === value)
|
|
@@ -85,7 +85,7 @@ var SdkAliasCollection;
|
|
|
85
85
|
: project.config.primitive !== false
|
|
86
86
|
? typescript_1.default.factory.createTypeReferenceNode(importer.external({
|
|
87
87
|
type: true,
|
|
88
|
-
library: "
|
|
88
|
+
library: "typia",
|
|
89
89
|
instance: route.success.contentType === "application/json" ||
|
|
90
90
|
route.success.encrypted === true
|
|
91
91
|
? "Primitive"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdkAli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MAAM,CAAC,EACzC,SAAS,EACT,CAAC,CAAC,IAAI,CACP,CACF,CACF;YACD,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM;gBACtB,CAAC,CAAC;oBACE,oBAAE,CAAC,OAAO,CAAC,qBAAqB,CAC9B,oBAAE,CAAC,OAAO,CAAC,oBAAoB,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CACtD;iBACF;gBACH,CAAC,CAAC,EAAE,CAAC;SACR,CACF,CAAC;IACJ,CAAC,CAAC;IAES,+BAAY,GACvB,CAAC,OAAuB,EAAE,EAAE,CAC5B,CAAC,QAA0B,EAAE,EAAE,CAC/B,CAAC,KAAsB,EAAe,EAAE,CACtC,mBAAA,MAAM,iCACD,OAAO,KACV,MAAM,kCACD,OAAO,CAAC,MAAM,KACjB,SAAS,EAAE,KAAK,OAElB,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,CAAC;IAExB,MAAM,aAAa,GAAG,CAAC,QAA0B,EAAE,EAAE,CAAC,CAAC,IAAiB,EAAE,EAAE,CAC1E,oBAAE,CAAC,OAAO,CAAC,uBAAuB,CAChC,QAAQ,CAAC,QAAQ,CAAC;QAChB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,iBAAiB;QAC1B,QAAQ,EAAE,eAAe;KAC1B,CAAC,EACF,CAAC,IAAI,CAAC,CACP,CAAC;AACN,CAAC,EAtKgB,kBAAkB,kCAAlB,kBAAkB,QAsKlC"}
|
|
@@ -36,7 +36,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
};
|
|
37
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
38
38
|
exports.SdkDistributionComposer = void 0;
|
|
39
|
-
const
|
|
39
|
+
const __typia_transform_$assertGuard = __importStar(require("typia/lib/internal/$assertGuard.js"));
|
|
40
40
|
const child_process_1 = __importDefault(require("child_process"));
|
|
41
41
|
const fs_1 = __importDefault(require("fs"));
|
|
42
42
|
const path_1 = __importDefault(require("path"));
|
|
@@ -98,17 +98,17 @@ var SdkDistributionComposer;
|
|
|
98
98
|
const dependencies = () => __awaiter(this, void 0, void 0, function* () {
|
|
99
99
|
const content = yield fs_1.default.promises.readFile(__dirname + "/../../../package.json", "utf8");
|
|
100
100
|
const json = JSON.parse(content);
|
|
101
|
-
return (() => { const $io0 = input => "string" === typeof input.version && "string" === typeof input.typia && "string" === typeof input.tgrid; const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.version ||
|
|
101
|
+
return (() => { const $io0 = input => "string" === typeof input.version && "string" === typeof input.typia && "string" === typeof input.tgrid; const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.version || __typia_transform_$assertGuard.$assertGuard(_exceptionable, {
|
|
102
102
|
method: "typia.assert",
|
|
103
103
|
path: _path + ".version",
|
|
104
104
|
expected: "string",
|
|
105
105
|
value: input.version
|
|
106
|
-
}, _errorFactory)) && ("string" === typeof input.typia ||
|
|
106
|
+
}, _errorFactory)) && ("string" === typeof input.typia || __typia_transform_$assertGuard.$assertGuard(_exceptionable, {
|
|
107
107
|
method: "typia.assert",
|
|
108
108
|
path: _path + ".typia",
|
|
109
109
|
expected: "string",
|
|
110
110
|
value: input.typia
|
|
111
|
-
}, _errorFactory)) && ("string" === typeof input.tgrid ||
|
|
111
|
+
}, _errorFactory)) && ("string" === typeof input.tgrid || __typia_transform_$assertGuard.$assertGuard(_exceptionable, {
|
|
112
112
|
method: "typia.assert",
|
|
113
113
|
path: _path + ".tgrid",
|
|
114
114
|
expected: "string",
|
|
@@ -116,12 +116,12 @@ var SdkDistributionComposer;
|
|
|
116
116
|
}, _errorFactory)); const __is = input => "object" === typeof input && null !== input && $io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
117
117
|
if (false === __is(input)) {
|
|
118
118
|
_errorFactory = errorFactory;
|
|
119
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input ||
|
|
119
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || __typia_transform_$assertGuard.$assertGuard(true, {
|
|
120
120
|
method: "typia.assert",
|
|
121
121
|
path: _path + "",
|
|
122
122
|
expected: "IDependencies",
|
|
123
123
|
value: input
|
|
124
|
-
}, _errorFactory)) && $ao0(input, _path + "", true) ||
|
|
124
|
+
}, _errorFactory)) && $ao0(input, _path + "", true) || __typia_transform_$assertGuard.$assertGuard(true, {
|
|
125
125
|
method: "typia.assert",
|
|
126
126
|
path: _path + "",
|
|
127
127
|
expected: "IDependencies",
|
|
@@ -16,12 +16,12 @@ var SdkImportWizard;
|
|
|
16
16
|
});
|
|
17
17
|
SdkImportWizard.Primitive = (importer) => importer.external({
|
|
18
18
|
type: true,
|
|
19
|
-
library: "
|
|
19
|
+
library: "typia",
|
|
20
20
|
instance: "Primitive",
|
|
21
21
|
});
|
|
22
22
|
SdkImportWizard.Resolved = (importer) => importer.external({
|
|
23
23
|
type: true,
|
|
24
|
-
library: "
|
|
24
|
+
library: "typia",
|
|
25
25
|
instance: "Resolved",
|
|
26
26
|
});
|
|
27
27
|
SdkImportWizard.typia = (importer) => importer.external({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SdkImportWizard.js","sourceRoot":"","sources":["../../../src/generates/internal/SdkImportWizard.ts"],"names":[],"mappings":";;;AAEA,IAAiB,eAAe,CAsC/B;AAtCD,WAAiB,eAAe;IACjB,uBAAO,GAAG,CAAC,SAAkB,EAAE,EAAE,CAC5C,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,YAAY,CAAC;IAEjC,yBAAS,GAAG,CAAC,QAA0B,EAAE,EAAE,CACtD,QAAQ,CAAC,QAAQ,CAAC;QAChB,IAAI,EAAE,IAAI;QACV,OAAO,EAAE,iBAAiB;QAC1B,QAAQ,EAAE,WAAW;KACtB,CAAC,CAAC;IAEQ,2BAAW,GAAG,CAAC,QAA0B,EAAE,EAAE,CACxD,QAAQ,CAAC,QAAQ,CAAC;QAChB,IAAI,EAAE,IAAI;QACV,OAAO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AO,EAAE,OAAO;QAChB,QAAQ,EAAE,IAAI;KACf,CAAC,CAAC;AACP,CAAC,EAtCgB,eAAe,+BAAf,eAAe,QAsC/B;AAED,MAAM,YAAY,GAAG,CAAC,QAA0B,EAAE,EAAE,CAClD,QAAQ,CAAC,QAAQ,CAAC;IAChB,IAAI,EAAE,KAAK;IACX,OAAO,EAAE,kCAAkC;IAC3C,QAAQ,EAAE,cAAc;CACzB,CAAC,CAAC;AAEL,MAAM,gBAAgB,GAAG,CAAC,QAA0B,EAAE,EAAE,CACtD,QAAQ,CAAC,QAAQ,CAAC;IAChB,IAAI,EAAE,KAAK;IACX,OAAO,EAAE,sCAAsC;IAC/C,QAAQ,EAAE,kBAAkB;CAC7B,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestia/sdk",
|
|
3
|
-
"version": "4.0.0-dev.20241021",
|
|
3
|
+
"version": "4.0.0-dev.20241021-2",
|
|
4
4
|
"description": "Nestia SDK and Swagger generator",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"homepage": "https://nestia.io",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@nestia/core": "^4.0.0-dev.20241021",
|
|
36
|
-
"@nestia/fetcher": "^4.0.0-dev.20241021",
|
|
35
|
+
"@nestia/core": "^4.0.0-dev.20241021-2",
|
|
36
|
+
"@nestia/fetcher": "^4.0.0-dev.20241021-2",
|
|
37
37
|
"@samchon/openapi": "^1.1.0",
|
|
38
38
|
"cli": "^1.0.1",
|
|
39
39
|
"get-function-location": "^2.0.0",
|
|
@@ -44,16 +44,16 @@
|
|
|
44
44
|
"tsconfck": "^2.1.2",
|
|
45
45
|
"tsconfig-paths": "^4.1.1",
|
|
46
46
|
"tstl": "^3.0.0",
|
|
47
|
-
"typia": "^7.0.0-dev.20241021"
|
|
47
|
+
"typia": "^7.0.0-dev.20241021-2"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@nestia/core": ">=4.0.0-dev.20241021",
|
|
51
|
-
"@nestia/fetcher": ">=4.0.0-dev.20241021",
|
|
50
|
+
"@nestia/core": ">=4.0.0-dev.20241021-2",
|
|
51
|
+
"@nestia/fetcher": ">=4.0.0-dev.20241021-2",
|
|
52
52
|
"@nestjs/common": ">=7.0.1",
|
|
53
53
|
"@nestjs/core": ">=7.0.1",
|
|
54
54
|
"reflect-metadata": ">=0.1.12",
|
|
55
55
|
"ts-node": ">=10.6.0",
|
|
56
|
-
"typia": ">=7.0.0-dev.20241021 <8.0.0"
|
|
56
|
+
"typia": ">=7.0.0-dev.20241021-2 <8.0.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
|
|
@@ -135,12 +135,25 @@ const BUNDLE_CHANGES: Record<string, [string, string][]> = {
|
|
|
135
135
|
],
|
|
136
136
|
"module.ts": [
|
|
137
137
|
[`export * from "./IConnection"`, `export type * from "./IConnection"`],
|
|
138
|
-
[`export * from "./Primitive"`, `export type * from "./Primitive"`],
|
|
139
138
|
],
|
|
140
139
|
"Primitive.ts": [
|
|
141
140
|
[
|
|
142
141
|
`export { Primitive } from "@nestia/fetcher"`,
|
|
142
|
+
`export type { Primitive } from "typia"`,
|
|
143
|
+
],
|
|
144
|
+
[
|
|
143
145
|
`export type { Primitive } from "@nestia/fetcher"`,
|
|
146
|
+
`export type { Primitive } from "typia"`,
|
|
147
|
+
],
|
|
148
|
+
],
|
|
149
|
+
"Resolved.ts": [
|
|
150
|
+
[
|
|
151
|
+
`export { Resolved } from "@nestia/fetcher"`,
|
|
152
|
+
`export type { Resolved } from "typia"`,
|
|
153
|
+
],
|
|
154
|
+
[
|
|
155
|
+
`export type { Resolved } from "@nestia/fetcher"`,
|
|
156
|
+
`export type { Resolved } from "typia"`,
|
|
144
157
|
],
|
|
145
158
|
],
|
|
146
159
|
};
|
|
@@ -37,7 +37,7 @@ export namespace SdkAliasCollection {
|
|
|
37
37
|
return ts.factory.createTypeReferenceNode(
|
|
38
38
|
importer.external({
|
|
39
39
|
type: true,
|
|
40
|
-
library: "
|
|
40
|
+
library: "typia",
|
|
41
41
|
instance: "Resolved",
|
|
42
42
|
}),
|
|
43
43
|
[type],
|
|
@@ -55,7 +55,7 @@ export namespace SdkAliasCollection {
|
|
|
55
55
|
return ts.factory.createTypeReferenceNode(
|
|
56
56
|
importer.external({
|
|
57
57
|
type: true,
|
|
58
|
-
library: "
|
|
58
|
+
library: "typia",
|
|
59
59
|
instance: "Resolved",
|
|
60
60
|
}),
|
|
61
61
|
[type],
|
|
@@ -79,7 +79,7 @@ export namespace SdkAliasCollection {
|
|
|
79
79
|
return ts.factory.createTypeReferenceNode(
|
|
80
80
|
importer.external({
|
|
81
81
|
type: true,
|
|
82
|
-
library: "
|
|
82
|
+
library: "typia",
|
|
83
83
|
instance:
|
|
84
84
|
typia.is<IReflectHttpOperationParameter.IBody>(param) &&
|
|
85
85
|
(param.contentType === "application/json" ||
|
|
@@ -104,7 +104,7 @@ export namespace SdkAliasCollection {
|
|
|
104
104
|
? ts.factory.createTypeReferenceNode(
|
|
105
105
|
importer.external({
|
|
106
106
|
type: true,
|
|
107
|
-
library: "
|
|
107
|
+
library: "typia",
|
|
108
108
|
instance:
|
|
109
109
|
route.success.contentType === "application/json" ||
|
|
110
110
|
route.success.encrypted === true
|
|
@@ -21,14 +21,14 @@ export namespace SdkImportWizard {
|
|
|
21
21
|
export const Primitive = (importer: ImportDictionary) =>
|
|
22
22
|
importer.external({
|
|
23
23
|
type: true,
|
|
24
|
-
library: "
|
|
24
|
+
library: "typia",
|
|
25
25
|
instance: "Primitive",
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
export const Resolved = (importer: ImportDictionary) =>
|
|
29
29
|
importer.external({
|
|
30
30
|
type: true,
|
|
31
|
-
library: "
|
|
31
|
+
library: "typia",
|
|
32
32
|
instance: "Resolved",
|
|
33
33
|
});
|
|
34
34
|
|