typeorm-dto-generator 1.0.0
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/dist/.tsbuildinfo +1 -0
- package/dist/index.d.ts +75 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +772 -0
- package/dist/types.d.ts +43 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/package.json +35 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/typescript/lib/lib.es2024.d.ts","../node_modules/typescript/lib/lib.es2025.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.dom.asynciterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/typescript/lib/lib.es2023.collection.d.ts","../node_modules/typescript/lib/lib.es2023.intl.d.ts","../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../node_modules/typescript/lib/lib.es2024.collection.d.ts","../node_modules/typescript/lib/lib.es2024.object.d.ts","../node_modules/typescript/lib/lib.es2024.promise.d.ts","../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2024.string.d.ts","../node_modules/typescript/lib/lib.es2025.collection.d.ts","../node_modules/typescript/lib/lib.es2025.float16.d.ts","../node_modules/typescript/lib/lib.es2025.intl.d.ts","../node_modules/typescript/lib/lib.es2025.iterator.d.ts","../node_modules/typescript/lib/lib.es2025.promise.d.ts","../node_modules/typescript/lib/lib.es2025.regexp.d.ts","../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/typescript/lib/lib.es2025.full.d.ts","../node_modules/@ts-morph/common/lib/typescript.d.ts","../node_modules/@ts-morph/common/lib/ts-morph-common.d.ts","../node_modules/ts-morph/lib/ts-morph.d.ts","../src/types.ts","../src/index.ts","../node_modules/@types/node/compatibility/iterators.d.ts","../node_modules/@types/node/globals.typedarray.d.ts","../node_modules/@types/node/buffer.buffer.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/web-globals/abortcontroller.d.ts","../node_modules/@types/node/web-globals/blob.d.ts","../node_modules/@types/node/web-globals/console.d.ts","../node_modules/@types/node/web-globals/crypto.d.ts","../node_modules/@types/node/web-globals/domexception.d.ts","../node_modules/@types/node/web-globals/encoding.d.ts","../node_modules/@types/node/web-globals/events.d.ts","../node_modules/undici-types/utility.d.ts","../node_modules/undici-types/header.d.ts","../node_modules/undici-types/readable.d.ts","../node_modules/undici-types/fetch.d.ts","../node_modules/undici-types/formdata.d.ts","../node_modules/undici-types/connector.d.ts","../node_modules/undici-types/client-stats.d.ts","../node_modules/undici-types/client.d.ts","../node_modules/undici-types/errors.d.ts","../node_modules/undici-types/dispatcher.d.ts","../node_modules/undici-types/global-dispatcher.d.ts","../node_modules/undici-types/global-origin.d.ts","../node_modules/undici-types/pool-stats.d.ts","../node_modules/undici-types/pool.d.ts","../node_modules/undici-types/handlers.d.ts","../node_modules/undici-types/balanced-pool.d.ts","../node_modules/undici-types/round-robin-pool.d.ts","../node_modules/undici-types/h2c-client.d.ts","../node_modules/undici-types/agent.d.ts","../node_modules/undici-types/mock-interceptor.d.ts","../node_modules/undici-types/mock-call-history.d.ts","../node_modules/undici-types/mock-agent.d.ts","../node_modules/undici-types/mock-client.d.ts","../node_modules/undici-types/mock-pool.d.ts","../node_modules/undici-types/snapshot-agent.d.ts","../node_modules/undici-types/mock-errors.d.ts","../node_modules/undici-types/proxy-agent.d.ts","../node_modules/undici-types/socks5-proxy-agent.d.ts","../node_modules/undici-types/env-http-proxy-agent.d.ts","../node_modules/undici-types/retry-handler.d.ts","../node_modules/undici-types/retry-agent.d.ts","../node_modules/undici-types/api.d.ts","../node_modules/undici-types/cache-interceptor.d.ts","../node_modules/undici-types/interceptors.d.ts","../node_modules/undici-types/util.d.ts","../node_modules/undici-types/cookies.d.ts","../node_modules/undici-types/patch.d.ts","../node_modules/undici-types/websocket.d.ts","../node_modules/undici-types/eventsource.d.ts","../node_modules/undici-types/diagnostics-channel.d.ts","../node_modules/undici-types/content-type.d.ts","../node_modules/undici-types/cache.d.ts","../node_modules/undici-types/index.d.ts","../node_modules/@types/node/web-globals/fetch.d.ts","../node_modules/@types/node/web-globals/importmeta.d.ts","../node_modules/@types/node/web-globals/messaging.d.ts","../node_modules/@types/node/web-globals/navigator.d.ts","../node_modules/@types/node/web-globals/performance.d.ts","../node_modules/@types/node/web-globals/storage.d.ts","../node_modules/@types/node/web-globals/streams.d.ts","../node_modules/@types/node/web-globals/timers.d.ts","../node_modules/@types/node/web-globals/url.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/inspector.generated.d.ts","../node_modules/@types/node/inspector/promises.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/path/posix.d.ts","../node_modules/@types/node/path/win32.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/quic.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/sea.d.ts","../node_modules/@types/node/sqlite.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/iter.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/test/reporters.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/util/types.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/zlib/iter.d.ts","../node_modules/@types/node/index.d.ts"],"fileIdsList":[[84,91,155,163,167,170,172,173,174,186],[91,155,163,167,170,172,173,174,186],[91,152,153,155,163,167,170,172,173,174,186],[91,154,155,163,167,170,172,173,174,186],[155,163,167,170,172,173,174,186],[91,155,163,167,170,172,173,174,186,195],[91,155,156,161,163,166,167,170,172,173,174,176,186,191,204],[91,155,156,157,163,166,167,170,172,173,174,186],[91,155,158,163,167,170,172,173,174,186,205],[91,155,159,160,163,167,170,172,173,174,177,186],[91,155,160,163,167,170,172,173,174,186,191,201],[91,155,161,163,166,167,170,172,173,174,176,186],[91,154,155,162,163,167,170,172,173,174,186],[91,155,163,164,167,170,172,173,174,186],[91,155,163,165,166,167,170,172,173,174,186],[91,154,155,163,166,167,170,172,173,174,186],[91,155,163,166,167,168,170,172,173,174,186,191,204],[91,155,163,166,167,168,170,172,173,174,186,191,193,195],[91,142,155,163,166,167,169,170,172,173,174,176,186,191,204],[91,155,163,166,167,169,170,172,173,174,176,186,191,201,204],[91,155,163,167,169,170,171,172,173,174,186,191,201,204],[89,90,91,92,93,94,95,96,97,98,99,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212],[91,155,163,166,167,170,172,173,174,186],[91,155,163,167,170,172,174,186],[91,155,163,167,170,172,173,174,175,186,204],[91,155,163,166,167,170,172,173,174,176,186,191],[91,155,163,167,170,172,173,174,177,186],[91,155,163,167,170,172,173,174,178,186],[91,155,163,166,167,170,172,173,174,181,186],[91,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211],[91,155,163,167,170,172,173,174,183,186],[91,155,163,167,170,172,173,174,184,186],[91,155,160,163,167,170,172,173,174,176,186,195],[91,155,163,166,167,170,172,173,174,186,187],[91,155,163,167,170,172,173,174,186,188,205,208],[91,155,163,166,167,170,172,173,174,186,191,194,195],[91,155,163,167,170,172,173,174,186,192,195],[91,155,163,167,170,172,173,174,186,193],[91,155,163,167,170,172,173,174,186,195,205],[91,155,163,167,170,172,173,174,186,196],[91,152,155,163,167,170,172,173,174,186,191,198,204],[91,155,163,167,170,172,173,174,186,191,197],[91,155,163,166,167,170,172,173,174,186,199,200],[91,155,163,167,170,172,173,174,186,199,200],[91,155,160,163,167,170,172,173,174,176,186,191,201],[91,155,163,167,170,172,173,174,186,202],[91,155,163,167,170,172,173,174,176,186,203],[91,155,163,167,169,170,172,173,174,184,186,204],[91,155,163,167,170,172,173,174,186,205,206],[91,155,160,163,167,170,172,173,174,186,206],[91,155,163,167,170,172,173,174,186,191,207],[91,155,163,167,170,172,173,174,175,186,208],[91,155,163,167,170,172,173,174,186,209],[91,155,158,163,167,170,172,173,174,186],[91,155,160,163,167,170,172,173,174,186],[91,155,163,167,170,172,173,174,186,205],[91,142,155,163,167,170,172,173,174,186],[91,155,163,167,170,172,173,174,186,204],[91,155,163,167,170,172,173,174,186,210],[91,155,163,167,170,172,173,174,181,186],[91,155,163,167,170,172,173,174,186,200],[91,142,155,163,166,167,168,170,172,173,174,181,186,191,195,204,207,208,210],[91,155,163,167,170,172,173,174,186,191,211],[91,155,163,167,170,172,173,174,186,193,212],[85,91,155,163,167,170,172,173,174,186],[91,106,109,112,113,155,163,167,170,172,173,174,186,204],[91,109,155,163,167,170,172,173,174,186,191,204],[91,109,113,155,163,167,170,172,173,174,186,204],[91,155,163,167,170,172,173,174,186,191],[91,103,155,163,167,170,172,173,174,186],[91,107,155,163,167,170,172,173,174,186],[91,105,106,109,155,163,167,170,172,173,174,186,204],[91,155,163,167,170,172,173,174,176,186,201],[91,155,163,167,170,172,173,174,186,213],[91,103,155,163,167,170,172,173,174,186,213],[91,105,109,155,163,167,170,172,173,174,176,186,204],[91,100,101,102,104,108,155,163,166,167,170,172,173,174,186,191,204],[91,109,118,126,155,163,167,170,172,173,174,186],[91,101,107,155,163,167,170,172,173,174,186],[91,109,136,137,155,163,167,170,172,173,174,186],[91,101,104,109,155,163,167,170,172,173,174,186,195,204,213],[91,109,155,163,167,170,172,173,174,186],[91,105,109,155,163,167,170,172,173,174,186,204],[91,100,155,163,167,170,172,173,174,186],[91,103,104,105,107,108,109,110,111,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,137,138,139,140,141,155,163,167,170,172,173,174,186],[91,109,129,132,155,163,167,170,172,173,174,186],[91,109,118,119,120,155,163,167,170,172,173,174,186],[91,107,109,119,121,155,163,167,170,172,173,174,186],[91,108,155,163,167,170,172,173,174,186],[91,101,103,109,155,163,167,170,172,173,174,186],[91,109,113,119,121,155,163,167,170,172,173,174,186],[91,113,155,163,167,170,172,173,174,186],[91,107,109,112,155,163,167,170,172,173,174,186,204],[91,101,105,109,118,155,163,167,170,172,173,174,186],[91,109,129,155,163,167,170,172,173,174,186],[91,121,155,163,167,170,172,173,174,186],[91,101,105,109,113,155,163,167,170,172,173,174,186],[91,103,109,136,155,163,167,170,172,173,174,186,195,210,213],[86,87,91,155,163,167,170,172,173,174,178,186]],"fileInfos":[{"version":"bcd24271a113971ba9eb71ff8cb01bc6b0f872a85c23fdbe5d93065b375933cd","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f88bedbeb09c6f5a6645cb24c7c55f1aa22d19ae96c8e6959cbd8b85a707bc6","impliedFormat":1},{"version":"7fe93b39b810eadd916be8db880dd7f0f7012a5cc6ffb62de8f62a2117fa6f1f","impliedFormat":1},{"version":"bb0074cc08b84a2374af33d8bf044b80851ccc9e719a5e202eacf40db2c31600","impliedFormat":1},{"version":"1a7daebe4f45fb03d9ec53d60008fbf9ac45a697fdc89e4ce218bc94b94f94d6","impliedFormat":1},{"version":"f94b133a3cb14a288803be545ac2683e0d0ff6661bcd37e31aaaec54fc382aed","impliedFormat":1},{"version":"f59d0650799f8782fd74cf73c19223730c6d1b9198671b1c5b3a38e1188b5953","impliedFormat":1},{"version":"8a15b4607d9a499e2dbeed9ec0d3c0d7372c850b2d5f1fb259e8f6d41d468a84","impliedFormat":1},{"version":"26e0fe14baee4e127f4365d1ae0b276f400562e45e19e35fd2d4c296684715e6","impliedFormat":1},{"version":"1e9332c23e9a907175e0ffc6a49e236f97b48838cc8aec9ce7e4cec21e544b65","impliedFormat":1},{"version":"3753fbc1113dc511214802a2342280a8b284ab9094f6420e7aa171e868679f91","impliedFormat":1},{"version":"999ca32883495a866aa5737fe1babc764a469e4cde6ee6b136a4b9ae68853e4b","impliedFormat":1},{"version":"d6b1eba8496bdd0eed6fc8a685768fe01b2da4a0388b5fe7df558290bffcf32f","affectsGlobalScope":true,"impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"7f57fc4404ff020bc45b9c620aff2b40f700b95fe31164024c453a5e3c163c54","impliedFormat":1},{"version":"2a2de5b9459b3fc44decd9ce6100b72f1b002ef523126c1d3d8b2a4a63d74d78","affectsGlobalScope":true,"impliedFormat":1},{"version":"f13f4b465c99041e912db5c44129a94588e1aafee35a50eab51044833f50b4ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"eadcffda2aa84802c73938e589b9e58248d74c59cb7fcbca6474e3435ac15504","affectsGlobalScope":true,"impliedFormat":1},{"version":"105ba8ff7ba746404fe1a2e189d1d3d2e0eb29a08c18dded791af02f29fb4711","affectsGlobalScope":true,"impliedFormat":1},{"version":"00343ca5b2e3d48fa5df1db6e32ea2a59afab09590274a6cccb1dbae82e60c7c","affectsGlobalScope":true,"impliedFormat":1},{"version":"ebd9f816d4002697cb2864bea1f0b70a103124e18a8cd9645eeccc09bdf80ab4","affectsGlobalScope":true,"impliedFormat":1},{"version":"2c1afac30a01772cd2a9a298a7ce7706b5892e447bb46bdbeef720f7b5da77ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"7b0225f483e4fa685625ebe43dd584bb7973bbd84e66a6ba7bbe175ee1048b4f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c0a4b8ac6ce74679c1da2b3795296f5896e31c38e888469a8e0f99dc3305de60","affectsGlobalScope":true,"impliedFormat":1},{"version":"3084a7b5f569088e0146533a00830e206565de65cae2239509168b11434cd84f","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5079c53f0f141a0698faa903e76cb41cd664e3efb01cc17a5c46ec2eb0bef42","affectsGlobalScope":true,"impliedFormat":1},{"version":"32cafbc484dea6b0ab62cf8473182bbcb23020d70845b406f80b7526f38ae862","affectsGlobalScope":true,"impliedFormat":1},{"version":"fca4cdcb6d6c5ef18a869003d02c9f0fd95df8cfaf6eb431cd3376bc034cad36","affectsGlobalScope":true,"impliedFormat":1},{"version":"b93ec88115de9a9dc1b602291b85baf825c85666bf25985cc5f698073892b467","affectsGlobalScope":true,"impliedFormat":1},{"version":"f5c06dcc3fe849fcb297c247865a161f995cc29de7aa823afdd75aaaddc1419b","affectsGlobalScope":true,"impliedFormat":1},{"version":"b77e16112127a4b169ef0b8c3a4d730edf459c5f25fe52d5e436a6919206c4d7","affectsGlobalScope":true,"impliedFormat":1},{"version":"fbffd9337146eff822c7c00acbb78b01ea7ea23987f6c961eba689349e744f8c","affectsGlobalScope":true,"impliedFormat":1},{"version":"a995c0e49b721312f74fdfb89e4ba29bd9824c770bbb4021d74d2bf560e4c6bd","affectsGlobalScope":true,"impliedFormat":1},{"version":"c7b3542146734342e440a84b213384bfa188835537ddbda50d30766f0593aff9","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce6180fa19b1cccd07ee7f7dbb9a367ac19c0ed160573e4686425060b6df7f57","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f02e2476bccb9dbe21280d6090f0df17d2f66b74711489415a8aa4df73c9675","affectsGlobalScope":true,"impliedFormat":1},{"version":"45e3ab34c1c013c8ab2dc1ba4c80c780744b13b5676800ae2e3be27ae862c40c","affectsGlobalScope":true,"impliedFormat":1},{"version":"805c86f6cca8d7702a62a844856dbaa2a3fd2abef0536e65d48732441dde5b5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e42e397f1a5a77994f0185fd1466520691456c772d06bf843e5084ceb879a0ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"f4c2b41f90c95b1c532ecc874bd3c111865793b23aebcc1c3cbbabcd5d76ffb0","affectsGlobalScope":true,"impliedFormat":1},{"version":"ab26191cfad5b66afa11b8bf935ef1cd88fabfcb28d30b2dfa6fad877d050332","affectsGlobalScope":true,"impliedFormat":1},{"version":"2088bc26531e38fb05eedac2951480db5309f6be3fa4a08d2221abb0f5b4200d","affectsGlobalScope":true,"impliedFormat":1},{"version":"cb9d366c425fea79716a8fb3af0d78e6b22ebbab3bd64d25063b42dc9f531c1e","affectsGlobalScope":true,"impliedFormat":1},{"version":"500934a8089c26d57ebdb688fc9757389bb6207a3c8f0674d68efa900d2abb34","affectsGlobalScope":true,"impliedFormat":1},{"version":"689da16f46e647cef0d64b0def88910e818a5877ca5379ede156ca3afb780ac3","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc21cc8b6fee4f4c2440d08035b7ea3c06b3511314c8bab6bef7a92de58a2593","affectsGlobalScope":true,"impliedFormat":1},{"version":"7ca53d13d2957003abb47922a71866ba7cb2068f8d154877c596d63c359fed25","affectsGlobalScope":true,"impliedFormat":1},{"version":"54725f8c4df3d900cb4dac84b64689ce29548da0b4e9b7c2de61d41c79293611","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5594bc3076ac29e6c1ebda77939bc4c8833de72f654b6e376862c0473199323","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f3eb332c2d73e729f3364fcc0c2b375e72a121e8157d25a82d67a138c83a95c","affectsGlobalScope":true,"impliedFormat":1},{"version":"6f4427f9642ce8d500970e4e69d1397f64072ab73b97e476b4002a646ac743b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"48915f327cd1dea4d7bd358d9dc7732f58f9e1626a29cc0c05c8c692419d9bb7","affectsGlobalScope":true,"impliedFormat":1},{"version":"b7bf9377723203b5a6a4b920164df22d56a43f593269ba6ae1fdc97774b68855","affectsGlobalScope":true,"impliedFormat":1},{"version":"db9709688f82c9e5f65a119c64d835f906efe5f559d08b11642d56eb85b79357","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b25b8c874acd1a4cf8444c3617e037d444d19080ac9f634b405583fd10ce1f7","affectsGlobalScope":true,"impliedFormat":1},{"version":"37be57d7c90cf1f8112ee2636a068d8fd181289f82b744160ec56a7dc158a9f5","affectsGlobalScope":true,"impliedFormat":1},{"version":"a917a49ac94cd26b754ab84e113369a75d1a47a710661d7cd25e961cc797065f","affectsGlobalScope":true,"impliedFormat":1},{"version":"6d3261badeb7843d157ef3e6f5d1427d0eeb0af0cf9df84a62cfd29fd47ac86e","affectsGlobalScope":true,"impliedFormat":1},{"version":"195daca651dde22f2167ac0d0a05e215308119a3100f5e6268e8317d05a92526","affectsGlobalScope":true,"impliedFormat":1},{"version":"8b11e4285cd2bb164a4dc09248bdec69e9842517db4ca47c1ba913011e44ff2f","affectsGlobalScope":true,"impliedFormat":1},{"version":"0508571a52475e245b02bc50fa1394065a0a3d05277fbf5120c3784b85651799","affectsGlobalScope":true,"impliedFormat":1},{"version":"8f9af488f510c3015af3cc8c267a9e9d96c4dd38a1fdff0e11dc5a544711415b","affectsGlobalScope":true,"impliedFormat":1},{"version":"fc611fea8d30ea72c6bbfb599c9b4d393ce22e2f5bfef2172534781e7d138104","affectsGlobalScope":true,"impliedFormat":1},{"version":"0bd714129fca875f7d4c477a1a392200b0bcd13fb2e80928cd334b63830ea047","affectsGlobalScope":true,"impliedFormat":1},{"version":"e2c9037ae6cd2c52d80ceef0b3c5ffdb488627d71529cf4f63776daf11161c9a","affectsGlobalScope":true,"impliedFormat":1},{"version":"135d5cf4d345f59f1a9caadfafcd858d3d9cc68290db616cc85797224448cccc","affectsGlobalScope":true,"impliedFormat":1},{"version":"bc238c3f81c2984751932b6aab223cd5b830e0ac6cad76389e5e9d2ffc03287d","affectsGlobalScope":true,"impliedFormat":1},{"version":"4a07f9b76d361f572620927e5735b77d6d2101c23cdd94383eb5b706e7b36357","affectsGlobalScope":true,"impliedFormat":1},{"version":"7c4e8dc6ab834cc6baa0227e030606d29e3e8449a9f67cdf5605ea5493c4db29","affectsGlobalScope":true,"impliedFormat":1},{"version":"de7ba0fd02e06cd9a5bd4ab441ed0e122735786e67dde1e849cced1cd8b46b78","affectsGlobalScope":true,"impliedFormat":1},{"version":"6148e4e88d720a06855071c3db02069434142a8332cf9c182cda551adedf3156","affectsGlobalScope":true,"impliedFormat":1},{"version":"d63dba625b108316a40c95a4425f8d4294e0deeccfd6c7e59d819efa19e23409","affectsGlobalScope":true,"impliedFormat":1},{"version":"0568d6befee03dd435bed4fc25c4e46865b24bdcb8c563fdc21f580a2c301904","affectsGlobalScope":true,"impliedFormat":1},{"version":"30d62269b05b584741f19a5369852d5d34895aa2ac4fd948956f886d15f9cc0d","affectsGlobalScope":true,"impliedFormat":1},{"version":"f128dae7c44d8f35ee42e0a437000a57c9f06cc04f8b4fb42eebf44954d53dc8","affectsGlobalScope":true,"impliedFormat":1},{"version":"ffbe6d7b295306b2ba88030f65b74c107d8d99bdcf596ea99c62a02f606108b0","affectsGlobalScope":true,"impliedFormat":1},{"version":"996fb27b15277369c68a4ba46ed138b4e9e839a02fb4ec756f7997629242fd9f","affectsGlobalScope":true,"impliedFormat":1},{"version":"79b712591b270d4778c89706ca2cfc56ddb8c3f895840e477388f1710dc5eda9","affectsGlobalScope":true,"impliedFormat":1},{"version":"20884846cef428b992b9bd032e70a4ef88e349263f63aeddf04dda837a7dba26","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ecb8e347cb6b2a8927c09b86263663289418df375f5e68e11a0ae683776978f","affectsGlobalScope":true,"impliedFormat":1},{"version":"1ce14b81c5cc821994aa8ec1d42b220dd41b27fcc06373bce3958af7421b77d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3a048b3e9302ef9a34ef4ebb9aecfb28b66abb3bce577206a79fee559c230da","affectsGlobalScope":true,"impliedFormat":1},{"version":"e03da518b01b46a4c99a1f88cd727ee98ddf14492c43dae1ae7a63e992971bab","impliedFormat":1},{"version":"5a8bd1be1e99d9c8ff506ecdb984031b550784676e8fb6dfd616007aafd903cc","impliedFormat":1},{"version":"865d1a23e14b20e0cb02dbe0827797b0f0e8c5bd4568dcec24a12afef00d33d6","impliedFormat":1},{"version":"f5845a852a03600100175392ca764626cff5782f4d00d24300d82b8edaddeab9","impliedFormat":1},{"version":"16b6d7d1bf4f623820933abdb9cb07bd6a4faedadc3370ddc7da5c2942ed585f","signature":"f87186b244469dba6ba4ea53173ee042adcb6b274d49db7c16cd5544602e74ef"},{"version":"24888593f5d9d4cf5d3588492d511b1aaddbf876b2f78d4d73dc473534745321","signature":"8147835a658fa2ee255ca817e8057cd686c183d2f73bb02f559d6849cce7dc41"},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"0ccdaa19852d25ecd84eec365c3bfa16e7859cadecf6e9ca6d0dbbbee439743f","affectsGlobalScope":true,"impliedFormat":1},{"version":"cc2110f7decca6bfb9392e30421cfa1436479e4a6756e8fec6cbc22625d4f881","affectsGlobalScope":true,"impliedFormat":1},{"version":"096116f8fedc1765d5bd6ef360c257b4a9048e5415054b3bf3c41b07f8951b0b","affectsGlobalScope":true,"impliedFormat":1},{"version":"e5e01375c9e124a83b52ee4b3244ed1a4d214a6cfb54ac73e164a823a4a7860a","affectsGlobalScope":true,"impliedFormat":1},{"version":"f90ae2bbce1505e67f2f6502392e318f5714bae82d2d969185c4a6cecc8af2fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"4b58e207b93a8f1c88bbf2a95ddc686ac83962b13830fe8ad3f404ffc7051fb4","affectsGlobalScope":true,"impliedFormat":1},{"version":"1fefabcb2b06736a66d2904074d56268753654805e829989a46a0161cd8412c5","affectsGlobalScope":true,"impliedFormat":1},{"version":"9798340ffb0d067d69b1ae5b32faa17ab31b82466a3fc00d8f2f2df0c8554aaa","affectsGlobalScope":true,"impliedFormat":1},{"version":"c18a99f01eb788d849ad032b31cafd49de0b19e083fe775370834c5675d7df8e","affectsGlobalScope":true,"impliedFormat":1},{"version":"5247874c2a23b9a62d178ae84f2db6a1d54e6c9a2e7e057e178cc5eea13757fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"cdcf9ea426ad970f96ac930cd176d5c69c6c24eebd9fc580e1572d6c6a88f62c","impliedFormat":1},{"version":"23cd712e2ce083d68afe69224587438e5914b457b8acf87073c22494d706a3d0","impliedFormat":1},{"version":"156a859e21ef3244d13afeeba4e49760a6afa035c149dda52f0c45ea8903b338","impliedFormat":1},{"version":"10ec5e82144dfac6f04fa5d1d6c11763b3e4dbbac6d99101427219ab3e2ae887","impliedFormat":1},{"version":"615754924717c0b1e293e083b83503c0a872717ad5aa60ed7f1a699eb1b4ea5c","impliedFormat":1},{"version":"14e9acf826baba0ef4b5665704084896e7bcc06f65a9ab13af7e93d27d6b7069","impliedFormat":1},{"version":"68834d631c8838c715f225509cfc3927913b9cc7a4870460b5b60c8dbdb99baf","impliedFormat":1},{"version":"21adf13435b9b748529c8cedf80f884e5130b9684188120a686cd2b26a2059c7","impliedFormat":1},{"version":"eec76bf6b9346f3f95fa402621b889489e96930e72295b0369022f332e9b4a6a","impliedFormat":1},{"version":"0ecd58f413f9bc3b7d4383eae31b0c8fc576985cd7404d6f99f8c643543ade74","impliedFormat":1},{"version":"ea6bc8de8b59f90a7a3960005fd01988f98fd0784e14bc6922dde2e93305ec7d","impliedFormat":1},{"version":"36107995674b29284a115e21a0618c4c2751b32a8766dd4cb3ba740308b16d59","impliedFormat":1},{"version":"914a0ae30d96d71915fc519ccb4efbf2b62c0ddfb3a3fc6129151076bc01dc60","impliedFormat":1},{"version":"9c32412007b5662fd34a8eb04292fb5314ec370d7016d1c2fb8aa193c807fe22","impliedFormat":1},{"version":"7fd1b31fd35876b0aa650811c25ec2c97a3c6387e5473eb18004bed86cdd76b6","impliedFormat":1},{"version":"4d327f7d72ad0918275cea3eee49a6a8dc8114ae1d5b7f3f5d0774de75f7439a","impliedFormat":1},{"version":"6ebe8ebb8659aaa9d1acbf3710d7dae3e923e97610238b9511c25dc39023a166","impliedFormat":1},{"version":"e85d7f8068f6a26710bff0cc8c0fc5e47f71089c3780fbede05857331d2ddec9","impliedFormat":1},{"version":"7befaf0e76b5671be1d47b77fcc65f2b0aad91cc26529df1904f4a7c46d216e9","impliedFormat":1},{"version":"0a60a292b89ca7218b8616f78e5bbd1c96b87e048849469cccb4355e98af959a","impliedFormat":1},{"version":"0b6e25234b4eec6ed96ab138d96eb70b135690d7dd01f3dd8a8ab291c35a683a","impliedFormat":1},{"version":"9666f2f84b985b62400d2e5ab0adae9ff44de9b2a34803c2c5bd3c8325b17dc0","impliedFormat":1},{"version":"40cd35c95e9cf22cfa5bd84e96408b6fcbca55295f4ff822390abb11afbc3dca","impliedFormat":1},{"version":"b1616b8959bf557feb16369c6124a97a0e74ed6f49d1df73bb4b9ddf68acf3f3","impliedFormat":1},{"version":"5b03a034c72146b61573aab280f295b015b9168470f2df05f6080a2122f9b4df","impliedFormat":1},{"version":"40b463c6766ca1b689bfcc46d26b5e295954f32ad43e37ee6953c0a677e4ae2b","impliedFormat":1},{"version":"249b9cab7f5d628b71308c7d9bb0a808b50b091e640ba3ed6e2d0516f4a8d91d","impliedFormat":1},{"version":"d33ce35e3f9cfcc1d94eca415bdd3bde94d5b153ffdd33e6c4455c029986c630","impliedFormat":1},{"version":"80aae6afc67faa5ac0b32b5b8bc8cc9f7fa299cff15cf09cc2e11fd28c6ae29e","impliedFormat":1},{"version":"f473cd2288991ff3221165dcf73cd5d24da30391f87e85b3dd4d0450c787a391","impliedFormat":1},{"version":"499e5b055a5aba1e1998f7311a6c441a369831c70905cc565ceac93c28083d53","impliedFormat":1},{"version":"8aee8b6d4f9f62cf3776cda1305fb18763e2aade7e13cea5bbe699112df85214","impliedFormat":1},{"version":"98498b101803bb3dde9f76a56e65c14b75db1cc8bec5f4db72be541570f74fc5","impliedFormat":1},{"version":"4dc59f6e1dbf3d5f66660fceabe6c174d3261b37b696ae1854f0dbaf255fc753","impliedFormat":1},{"version":"5d0375ca7310efb77e3ef18d068d53784faf62705e0ad04569597ae0e755c401","impliedFormat":1},{"version":"59af37caec41ecf7b2e76059c9672a49e682c1a2aa6f9d7dc78878f53aa284d6","impliedFormat":1},{"version":"addf417b9eb3f938fddf8d81e96393a165e4be0d4a8b6402292f9c634b1cb00d","impliedFormat":1},{"version":"436d7b4543b340b0f3eef4310d524242e41369b9652aa9c70428767c4dcac455","impliedFormat":1},{"version":"adf27937dba6af9f08a68c5b1d3fce0ca7d4b960c57e6d6c844e7d1a8e53adae","impliedFormat":1},{"version":"12950411eeab8563b349cb7959543d92d8d02c289ed893d78499a19becb5a8cc","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"114f493b30f364255290472111b5a4791d5902c308645670cd0401429cbc6930","impliedFormat":1},{"version":"c3f5289820990ab66b70c7fb5b63cb674001009ff84b13de40619619a9c8175f","affectsGlobalScope":true,"impliedFormat":1},{"version":"b3275d55fac10b799c9546804126239baf020d220136163f763b55a74e50e750","affectsGlobalScope":true,"impliedFormat":1},{"version":"fa68a0a3b7cb32c00e39ee3cd31f8f15b80cac97dce51b6ee7fc14a1e8deb30b","affectsGlobalScope":true,"impliedFormat":1},{"version":"1cf059eaf468efcc649f8cf6075d3cb98e9a35a0fe9c44419ec3d2f5428d7123","affectsGlobalScope":true,"impliedFormat":1},{"version":"6c36e755bced82df7fb6ce8169265d0a7bb046ab4e2cb6d0da0cb72b22033e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"e7721c4f69f93c91360c26a0a84ee885997d748237ef78ef665b153e622b36c1","affectsGlobalScope":true,"impliedFormat":1},{"version":"7a93de4ff8a63bafe62ba86b89af1df0ccb5e40bb85b0c67d6bbcfdcf96bf3d4","affectsGlobalScope":true,"impliedFormat":1},{"version":"90e85f9bc549dfe2b5749b45fe734144e96cd5d04b38eae244028794e142a77e","affectsGlobalScope":true,"impliedFormat":1},{"version":"e0a5deeb610b2a50a6350bd23df6490036a1773a8a71d70f2f9549ab009e67ee","affectsGlobalScope":true,"impliedFormat":1},{"version":"d2ae155afe8a01cc0ae612d99117cf8ef16692ba7c4366590156fdec1bcf2d8c","impliedFormat":1},{"version":"3f5e5d9be35913db9fea42a63f3df0b7e3c8703b97670a2125587b4dbbd56d7c","impliedFormat":1},{"version":"c8b8968311ec4e5e97b7b5fb8a65efaba455db9bdcfd7fff7fb15f6e317bfba0","impliedFormat":1},{"version":"57c23df0b5f7a8e26363a3849b0bc7763f6b241207157c8e40089d1df4116f35","affectsGlobalScope":true,"impliedFormat":1},{"version":"3b8bc0c17b54081b0878673989216229e575d67a10874e84566a21025a2461ee","impliedFormat":1},{"version":"5b0db5a58b73498792a29bfebc333438e61906fef75da898b410e24e52229e6f","impliedFormat":1},{"version":"dbe055b2b29a7bab2c1ca8f259436306adb43f469dca7e639a02cd3695d3f621","impliedFormat":1},{"version":"1678b04557dca52feab73cc67610918a7f5e25bfdba3e7fa081acd625d93106d","impliedFormat":1},{"version":"aecbf1d9e6a18dab7d92ef8a89a1444b47e1eb6134cb2bb776a26d55ff58c29a","impliedFormat":1},{"version":"2ea729503db9793f2691162fec3dd1118cab62e96d025f8eeb376d43ec293395","impliedFormat":1},{"version":"9ec87fea42b92894b0f209931a880789d43c3397d09dd99c631ae40a2f7071d1","impliedFormat":1},{"version":"c68e88cdfadfb6c8ba5fc38e58a3a166b0beae77b1f05b7d921150a32a5ffb8d","impliedFormat":1},{"version":"2bc7aa4fba46df0bd495425a7c8201437a7d465f83854fac859df2d67f664df3","impliedFormat":1},{"version":"41d17e1ad9a002feb11c8cdd2777e5bbc0cdb1e3f595d237e4dded0b6949983b","impliedFormat":1},{"version":"1fede9296beac11ce8e6b425396a1791f64341f2be85deebb6286faf6e16306e","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce697b6a251d9cad53998c7fd3098072df883b525ec45d83530e434dc6d80dc6","impliedFormat":1},{"version":"719412f054e6ecc35489462c9a21bab0323d173a7d04e55b0ace4b5d86fbeb07","impliedFormat":1},{"version":"0eb5d0cbf09de5d34542b977fd6a933bb2e0817bffe8e1a541b2f1ad1b9af1ff","impliedFormat":1},{"version":"fac3e88881b35d3a757ed891ac912b2674792c25e2a1a74e1f5fbc72d19a9792","impliedFormat":1},{"version":"2c2bdaa1d8ead9f68628d6d9d250e46ee8e81aa4898b4769a36956ae15e060fe","impliedFormat":1},{"version":"c32c840c62d8bd7aeb3147aa6754cd2d922b990a6b6634530cb2ebdce5adc8e9","impliedFormat":1},{"version":"5ff4433a2deae4f85ab1377e90a7554ce6b47ae51c69a84ca30a6e22fae85834","impliedFormat":1},{"version":"82b91e4e42e6c41bc7fc1b6c2dc5eba6a2ba98375eb1f210e6ff6bba2d54177e","impliedFormat":1},{"version":"c1fa52b3d014001e8662fa2669d90ea15373958a288e3b83a3b621733d25292a","affectsGlobalScope":true,"impliedFormat":1},{"version":"cbed824fec91efefc7bbdcb8b43d1a531fdbebd0e2ef19481501ff365a93cb70","impliedFormat":1},{"version":"d0716593b3f2b0451bcf0c24cfa86dec2235c325c89f201934248b7c742715fc","impliedFormat":1},{"version":"ec501101c2a96133a6c695f934c8f6642149cc728571b29cbb7b770984c1088e","impliedFormat":1},{"version":"b214ebcf76c51b115453f69729ee8aa7b7f8eccdae2a922b568a45c2d7ff52f7","impliedFormat":1},{"version":"429c9cdfa7d126255779efd7e6d9057ced2d69c81859bbab32073bad52e9ba76","impliedFormat":1},{"version":"2991bca2cc0f0628a278df2a2ccdb8d6cbcb700f3761abbed62bba137d5b1790","impliedFormat":1},{"version":"5e66972e83eb4dc7123939bf816e6cbd9ad81af5552db1cab84e6bd9c64d2ecc","affectsGlobalScope":true,"impliedFormat":1},{"version":"230763250f20449fa7b3c9273e1967adb0023dc890d4be1553faca658ee65971","impliedFormat":1},{"version":"c3e9078b60cb329d1221f5878e88cecfa3e74460550e605a58fcfb41a66029ff","impliedFormat":1},{"version":"8413d0641f293aed551c7464615b770d34a02dedede889b9591172287d68e773","impliedFormat":1},{"version":"0ea59f7d3e51440baa64f429253759b106cfcbaf51e474cae606e02265b37cf8","impliedFormat":1},{"version":"bc18a1991ba681f03e13285fa1d7b99b03b67ee671b7bc936254467177543890","impliedFormat":1},{"version":"1b241e24f3227d078c06aeda6e050187ad59a4e591f4467abed44d92b084e08d","impliedFormat":1},{"version":"fa94bbf532b7af8f394b95fa310980d6e20bd2d4c871c6a6cb9f70f03750a44b","impliedFormat":1},{"version":"7fde0e1be5c8be204ffbf428abfcf01da2eb0f130e1bc3f539eb7275f4fd1f58","impliedFormat":1},{"version":"e284328553df5f425a5d33d36a0c3fa66b46af9d097cad6f4d2e8696dfdeb0f1","affectsGlobalScope":true,"impliedFormat":1},{"version":"7fa2214bb0d64701bc6f9ce8cde2fd2ff8c571e0b23065fa04a8a5a6beb91511","impliedFormat":1},{"version":"f36b3fbe2be150a9ca140da48593f21e6a8172004f92ddc549b43efec39f3e54","impliedFormat":1},{"version":"f1c93e046fb3d9b7f8249629f4b63dc068dd839b824dd0aa39a5e68476dc9420","impliedFormat":1},{"version":"016b29bf4926b80255a108c53a1451717350059da04fcae64d1075f5e93bbb39","impliedFormat":1},{"version":"841983e39bd4cbb463be385e92fda11057cab368bf27100a801c492f1d86cbaa","impliedFormat":1},{"version":"1c4f139ade4f6ebf45463505f8155173e5d7a5305e50e0aae0a5e712d6ff3b48","impliedFormat":1},{"version":"e16b319e5aca1031168de823c4946ff8e29629c4c8cc0ec0fcfe2a8ab2155043","impliedFormat":1},{"version":"e4156ddb25aa0e3b5303d372f26957b36778f0f6bbd4326359269873295e3058","affectsGlobalScope":true,"impliedFormat":1},{"version":"cc1b433a84cae05ddc5672d4823170af78606ad21ecef60dbc4570190cbf1357","impliedFormat":1},{"version":"9d3821bc75c59577e52643324cec92fc2145642e8d17cf7ee07a3181f21d985d","impliedFormat":1},{"version":"7f78cfb2b343838612c192cb251746e3a7c62ac7675726a47e130d9b213f6580","impliedFormat":1},{"version":"201db9cf1687fab1adf5282fcba861f382b32303dc4f67c89d59655e78a25461","impliedFormat":1},{"version":"2c3c5c0f54055e87640f5d233716fd889f3034fc7911d603b642369b0dbeb2a7","impliedFormat":1},{"version":"0a20eaf2e4b1e3c1e1f87f7bccb0c936375b23b022baeea750519b7c9bc6ce83","impliedFormat":1},{"version":"b484ec11ba00e3a2235562a41898d55372ccabe607986c6fa4f4aba72093749f","impliedFormat":1},{"version":"a16b91b27bd6b706c687c88cbc8a7d4ee98e5ed6043026d6b84bda923c0aed67","impliedFormat":1},{"version":"1c9e5b1a17b1fc9b3711fb36e0690421261ab2880f15b145155b5b2ba2ab6c2d","impliedFormat":1},{"version":"99ab6d0d660ce4d21efb52288a39fd35bb3f556980ec5463b1ae8f304a3bbc85","impliedFormat":1},{"version":"6eeded8c7e352be6e0efb83f4935ec752513c4d22043b52522b90849a49a3a11","impliedFormat":1},{"version":"6c1ad90050ffbb151cacc68e2d06ea1a26a945659391e32651f5d42b86fd7f2c","impliedFormat":1},{"version":"afa1c49f8e559e413d57343339db857d2a8159435cf9cf7d4deb41718fff1b88","impliedFormat":1},{"version":"6953d7597831d0860c7034cf4f0419687d263b6b98a4b32e37ce6d49615c36e2","impliedFormat":1}],"root":[87,88],"options":{"allowImportingTsExtensions":true,"composite":true,"declaration":true,"declarationMap":true,"module":99,"outDir":"./","rewriteRelativeImportExtensions":true,"rootDir":"../src","tsBuildInfoFile":"./.tsbuildinfo"},"referencedMap":[[85,1],[84,2],[152,3],[153,3],[154,4],[91,5],[155,6],[156,7],[157,8],[89,2],[158,9],[159,10],[160,11],[161,12],[162,13],[163,14],[164,14],[165,15],[166,16],[167,17],[168,18],[92,2],[90,2],[169,19],[170,20],[171,21],[213,22],[172,23],[173,24],[174,23],[175,25],[176,26],[177,27],[178,28],[179,28],[180,28],[181,29],[182,30],[183,31],[184,32],[185,33],[186,34],[187,34],[188,35],[189,2],[190,2],[191,36],[192,37],[193,38],[194,36],[195,39],[196,40],[197,41],[198,42],[199,43],[200,44],[201,45],[202,46],[203,47],[204,48],[205,49],[206,50],[207,51],[208,52],[209,53],[93,23],[94,2],[95,54],[96,55],[97,2],[98,56],[99,2],[143,57],[144,58],[145,59],[146,59],[147,60],[148,2],[149,6],[150,61],[151,58],[210,62],[211,63],[212,64],[86,65],[81,2],[82,2],[15,2],[13,2],[14,2],[19,2],[18,2],[2,2],[20,2],[21,2],[22,2],[23,2],[24,2],[25,2],[26,2],[27,2],[3,2],[28,2],[29,2],[4,2],[30,2],[34,2],[31,2],[32,2],[33,2],[35,2],[36,2],[37,2],[5,2],[38,2],[39,2],[40,2],[41,2],[6,2],[45,2],[42,2],[43,2],[44,2],[46,2],[7,2],[47,2],[52,2],[53,2],[48,2],[49,2],[50,2],[51,2],[8,2],[57,2],[54,2],[55,2],[56,2],[58,2],[9,2],[59,2],[60,2],[61,2],[63,2],[62,2],[64,2],[65,2],[10,2],[66,2],[67,2],[68,2],[11,2],[69,2],[70,2],[71,2],[72,2],[73,2],[74,2],[12,2],[75,2],[83,2],[76,2],[77,2],[78,2],[79,2],[1,2],[80,2],[17,2],[16,2],[118,66],[131,67],[115,68],[132,69],[141,70],[106,71],[107,72],[105,73],[140,74],[135,75],[139,76],[109,77],[128,78],[108,79],[138,80],[103,81],[104,75],[110,82],[111,2],[117,83],[114,82],[101,84],[142,85],[133,86],[121,87],[120,82],[122,88],[125,89],[119,90],[123,91],[136,74],[112,92],[113,93],[126,94],[102,69],[130,95],[129,82],[116,93],[124,96],[127,97],[134,2],[100,2],[137,98],[88,99],[87,2]],"latestChangedDtsFile":"./types.d.ts","version":"6.0.3"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { ClassDeclaration, Decorator, GetAccessorDeclaration, ObjectLiteralExpression, Project, PropertyAssignment, PropertyDeclaration, SourceFile, Type } from 'ts-morph';
|
|
2
|
+
import { ColumnMeta, EntityMeta, Config, GenerateResult, RelationMeta } from './types.ts';
|
|
3
|
+
export declare class TORMDTOGenerator {
|
|
4
|
+
protected readonly config: Config;
|
|
5
|
+
protected readonly project: Project;
|
|
6
|
+
constructor(config?: Partial<Config>);
|
|
7
|
+
run(): GenerateResult;
|
|
8
|
+
protected createConfig(config: Partial<Config>): Config;
|
|
9
|
+
protected writeFile(filePath: string, content: string): void;
|
|
10
|
+
protected toKebabCase(value: string): string;
|
|
11
|
+
protected unique<T>(items: T[]): T[];
|
|
12
|
+
protected cleanTypeText(value: string): string;
|
|
13
|
+
protected createRelativeJSImportPath(fromFile: string, targetFile: string): string;
|
|
14
|
+
protected getCommonTypesFilePath(): string;
|
|
15
|
+
protected getCommonTypesImportSpecifier(dtoFilePath: string): string;
|
|
16
|
+
protected getDecorator(property: PropertyDeclaration, names: string[]): Decorator | undefined;
|
|
17
|
+
protected hasDecorator(property: PropertyDeclaration, names: string[]): boolean;
|
|
18
|
+
protected isEntityClass(classDeclaration: ClassDeclaration): boolean;
|
|
19
|
+
protected getDecoratorArgumentsText(decorator: Decorator | undefined): string[];
|
|
20
|
+
protected getDecoratorObjectLiteral(decorator: Decorator | undefined): ObjectLiteralExpression | null;
|
|
21
|
+
protected getObjectLiteralProperty(objectLiteral: ObjectLiteralExpression | null, propertyName: string): PropertyAssignment | null;
|
|
22
|
+
protected getPropertyAssignmentInitializerText(property: PropertyAssignment | null): string | null;
|
|
23
|
+
protected hasDecoratorOption(property: PropertyDeclaration, decoratorNames: string[], optionName: string, optionValue: string): boolean;
|
|
24
|
+
protected hasSelectFalse(property: PropertyDeclaration): boolean;
|
|
25
|
+
protected isExcludedProperty(property: PropertyDeclaration): boolean;
|
|
26
|
+
protected isColumnProperty(property: PropertyDeclaration): boolean;
|
|
27
|
+
protected isRelationProperty(property: PropertyDeclaration): boolean;
|
|
28
|
+
protected collectProperties(classDeclaration: ClassDeclaration, visitedClassNames?: Set<string>): PropertyDeclaration[];
|
|
29
|
+
protected getBaseClass(classDeclaration: ClassDeclaration): ClassDeclaration | null;
|
|
30
|
+
protected findClassDeclarationByName(className: string): ClassDeclaration | null;
|
|
31
|
+
protected isNullishTypeText(typeText: string): typeText is "null" | "undefined";
|
|
32
|
+
protected isNullableTypeText(typeText: string): boolean;
|
|
33
|
+
protected getPropertyTypeText(property: PropertyDeclaration): string;
|
|
34
|
+
protected getAccessorTypeText(accessor: GetAccessorDeclaration): string;
|
|
35
|
+
protected isDateColumn(property: PropertyDeclaration): boolean;
|
|
36
|
+
protected isNullableColumn(property: PropertyDeclaration): boolean;
|
|
37
|
+
protected resolveEnumType(type: Type): string | null;
|
|
38
|
+
protected resolveEnumTypeFromProperty(property: PropertyDeclaration): string | null;
|
|
39
|
+
protected findEnumDeclarationByName(enumName: string): import("ts-morph").EnumDeclaration | null;
|
|
40
|
+
protected unwrapNullishType(typeText: string): string;
|
|
41
|
+
protected resolveSingleColumnType(type: Type, fallback: string): string;
|
|
42
|
+
protected resolveColumnType(property: PropertyDeclaration): string;
|
|
43
|
+
protected resolveAccessorType(accessor: GetAccessorDeclaration): string;
|
|
44
|
+
protected appendNullType(typeText: string): string;
|
|
45
|
+
protected propertyToColumnMeta(property: PropertyDeclaration): ColumnMeta;
|
|
46
|
+
protected accessorToColumnMeta(accessor: GetAccessorDeclaration): ColumnMeta;
|
|
47
|
+
protected isExcludedGetter(accessor: GetAccessorDeclaration): boolean;
|
|
48
|
+
protected collectGetAccessors(classDeclaration: ClassDeclaration, visitedClassNames?: Set<string>): GetAccessorDeclaration[];
|
|
49
|
+
protected unwrapRelationType(typeText: string): string;
|
|
50
|
+
protected getRelationTargetClassName(property: PropertyDeclaration): string;
|
|
51
|
+
protected isArrayRelation(property: PropertyDeclaration): boolean;
|
|
52
|
+
protected isNullableRelation(property: PropertyDeclaration): boolean;
|
|
53
|
+
protected propertyToRelationMeta(property: PropertyDeclaration): RelationMeta;
|
|
54
|
+
protected createEntityMetas(entitySourceFiles: SourceFile[]): EntityMeta[];
|
|
55
|
+
protected findMetaByClassName(metas: EntityMeta[], className: string): EntityMeta | undefined;
|
|
56
|
+
protected getValidRelations(meta: EntityMeta, metas: EntityMeta[]): RelationMeta[];
|
|
57
|
+
protected createDTOContent(meta: EntityMeta, metas: EntityMeta[]): string;
|
|
58
|
+
protected collectExternalTypeImports(meta: EntityMeta, dtoFilePath: string, relationTypeNames: Set<string>): [string, string][];
|
|
59
|
+
protected collectExternalTypeSymbols(meta: EntityMeta, relationTypeNames: Set<string>): Set<string>;
|
|
60
|
+
protected collectAllExternalTypeSymbols(metas: EntityMeta[]): Set<string>;
|
|
61
|
+
protected findTypeDeclarationByName(typeName: string): import("ts-morph").InterfaceDeclaration | import("ts-morph").EnumDeclaration | import("ts-morph").TypeAliasDeclaration | null;
|
|
62
|
+
protected getCommonTypeReExportModuleSpecifier(typeName: string, commonTypesFilePath: string): {
|
|
63
|
+
moduleSpecifier: string;
|
|
64
|
+
isTypeOnly: boolean;
|
|
65
|
+
} | null;
|
|
66
|
+
protected normalizeDeclarationToExportText(typeName: string): string | null;
|
|
67
|
+
protected ensureCommonTypesFile(metas: EntityMeta[]): void;
|
|
68
|
+
protected resolveCommonTypesSourceFile(): SourceFile | null;
|
|
69
|
+
protected validateCommonTypeCoverage(metas: EntityMeta[]): void;
|
|
70
|
+
protected createDTOIndexContent(metas: EntityMeta[]): string;
|
|
71
|
+
protected createGeneratedMapperContent(metas: EntityMeta[]): string;
|
|
72
|
+
protected createMapperFunctionContent(meta: EntityMeta, metas: EntityMeta[]): string;
|
|
73
|
+
protected createRelationMapperLine(relation: RelationMeta, metas: EntityMeta[]): string;
|
|
74
|
+
}
|
|
75
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"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"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,772 @@
|
|
|
1
|
+
import fs from 'fs';
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import { Node, Project } from 'ts-morph';
|
|
4
|
+
export class TORMDTOGenerator {
|
|
5
|
+
config;
|
|
6
|
+
project;
|
|
7
|
+
constructor(config = {}) {
|
|
8
|
+
this.config = this.createConfig(config);
|
|
9
|
+
this.project = new Project({
|
|
10
|
+
tsConfigFilePath: this.config.apiTsConfigPath
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
run() {
|
|
14
|
+
const entitySourceFiles = this.project.addSourceFilesAtPaths(this.config.entityGlob);
|
|
15
|
+
const metas = this.createEntityMetas(entitySourceFiles);
|
|
16
|
+
fs.rmSync(this.config.dtoOutputDir, {
|
|
17
|
+
recursive: true,
|
|
18
|
+
force: true
|
|
19
|
+
});
|
|
20
|
+
fs.mkdirSync(this.config.dtoOutputDir, {
|
|
21
|
+
recursive: true
|
|
22
|
+
});
|
|
23
|
+
this.ensureCommonTypesFile(metas);
|
|
24
|
+
this.validateCommonTypeCoverage(metas);
|
|
25
|
+
for (const meta of metas) {
|
|
26
|
+
this.writeFile(path.join(this.config.dtoOutputDir, meta.dtoFileName), this.createDTOContent(meta, metas));
|
|
27
|
+
}
|
|
28
|
+
this.writeFile(path.join(this.config.dtoOutputDir, 'index.ts'), `${this.createDTOIndexContent(metas)}\n`);
|
|
29
|
+
this.writeFile(this.config.mapperOutputFile, this.createGeneratedMapperContent(metas));
|
|
30
|
+
console.log(`Generated DTO files: ${metas.length}`);
|
|
31
|
+
console.log(`Generated DTO directory: ${this.config.dtoOutputDir}`);
|
|
32
|
+
console.log(`Generated mapper file: ${this.config.mapperOutputFile}`);
|
|
33
|
+
return {
|
|
34
|
+
metas,
|
|
35
|
+
dtoOutputDir: this.config.dtoOutputDir,
|
|
36
|
+
mapperOutputFile: this.config.mapperOutputFile
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
createConfig(config) {
|
|
40
|
+
const root = process.cwd();
|
|
41
|
+
const resolvedConfig = {
|
|
42
|
+
apiTsConfigPath: path.join(root, 'packages/api/tsconfig.json'),
|
|
43
|
+
entityGlob: path.join(root, 'packages/api/src/databases/livingkostpro/entities/**/*.ts'),
|
|
44
|
+
dtoOutputDir: path.join(root, 'packages/lib/src/dto/generated'),
|
|
45
|
+
mapperOutputFile: path.join(root, 'packages/api/src/common/dto/generated-dto.mapper.ts'),
|
|
46
|
+
sharedDTOImportPath: '@livingkostpro/lib/dto',
|
|
47
|
+
includeGetters: false,
|
|
48
|
+
excludePropertyNames: [
|
|
49
|
+
'password',
|
|
50
|
+
'passwordHash',
|
|
51
|
+
'secret',
|
|
52
|
+
'refreshToken',
|
|
53
|
+
'accessToken',
|
|
54
|
+
'keyHash',
|
|
55
|
+
'token',
|
|
56
|
+
'otp',
|
|
57
|
+
'salt'
|
|
58
|
+
],
|
|
59
|
+
columnDecorators: [
|
|
60
|
+
'Column',
|
|
61
|
+
'PrimaryColumn',
|
|
62
|
+
'PrimaryGeneratedColumn',
|
|
63
|
+
'CreateDateColumn',
|
|
64
|
+
'UpdateDateColumn',
|
|
65
|
+
'DeleteDateColumn',
|
|
66
|
+
'VersionColumn',
|
|
67
|
+
'RelationId',
|
|
68
|
+
'DatetimeUTCTimestampColumn',
|
|
69
|
+
'DatetimeColumn',
|
|
70
|
+
'DatetimeNullColumn',
|
|
71
|
+
'BooleanFalseColumn',
|
|
72
|
+
'DecimalColumn',
|
|
73
|
+
'CurrencyColumn',
|
|
74
|
+
'SortOrderColumn',
|
|
75
|
+
'DescriptionNullColumn',
|
|
76
|
+
'DescriptionColumn',
|
|
77
|
+
'NameColumn',
|
|
78
|
+
'NameNullColumn',
|
|
79
|
+
'CodeColumn',
|
|
80
|
+
'JSONNullColumn',
|
|
81
|
+
'UUIDNullColumn'
|
|
82
|
+
],
|
|
83
|
+
relationDecorators: [
|
|
84
|
+
'OneToOne',
|
|
85
|
+
'OneToMany',
|
|
86
|
+
'ManyToOne',
|
|
87
|
+
'ManyToMany'
|
|
88
|
+
],
|
|
89
|
+
arrayRelationDecorators: [
|
|
90
|
+
'OneToMany',
|
|
91
|
+
'ManyToMany'
|
|
92
|
+
],
|
|
93
|
+
customScalarTypeMap: {
|
|
94
|
+
BigInt: 'string',
|
|
95
|
+
bigint: 'string',
|
|
96
|
+
Buffer: 'string',
|
|
97
|
+
Decimal: 'string'
|
|
98
|
+
},
|
|
99
|
+
...config
|
|
100
|
+
};
|
|
101
|
+
return resolvedConfig;
|
|
102
|
+
}
|
|
103
|
+
writeFile(filePath, content) {
|
|
104
|
+
fs.mkdirSync(path.dirname(filePath), {
|
|
105
|
+
recursive: true
|
|
106
|
+
});
|
|
107
|
+
fs.writeFileSync(filePath, content);
|
|
108
|
+
}
|
|
109
|
+
toKebabCase(value) {
|
|
110
|
+
return value
|
|
111
|
+
.replace(/([a-z0-9])([A-Z])/g, '$1-$2')
|
|
112
|
+
.replace(/[\s_]+/g, '-')
|
|
113
|
+
.toLowerCase();
|
|
114
|
+
}
|
|
115
|
+
unique(items) {
|
|
116
|
+
return [...new Set(items)];
|
|
117
|
+
}
|
|
118
|
+
cleanTypeText(value) {
|
|
119
|
+
return value
|
|
120
|
+
.replace(/import\(".*?"\)\./g, '')
|
|
121
|
+
.replace(/\s+/g, ' ')
|
|
122
|
+
.trim();
|
|
123
|
+
}
|
|
124
|
+
createRelativeJSImportPath(fromFile, targetFile) {
|
|
125
|
+
const relativePath = path
|
|
126
|
+
.relative(path.dirname(fromFile), targetFile)
|
|
127
|
+
.replace(/\\/g, '/')
|
|
128
|
+
.replace(/\.(ts|tsx|mts|cts)$/, '.ts');
|
|
129
|
+
return relativePath.startsWith('.') ? relativePath : `./${relativePath}`;
|
|
130
|
+
}
|
|
131
|
+
getCommonTypesFilePath() {
|
|
132
|
+
return path.join(this.config.dtoOutputDir, 'common.dto.ts');
|
|
133
|
+
}
|
|
134
|
+
getCommonTypesImportSpecifier(dtoFilePath) {
|
|
135
|
+
return this.createRelativeJSImportPath(dtoFilePath, this.getCommonTypesFilePath());
|
|
136
|
+
}
|
|
137
|
+
getDecorator(property, names) {
|
|
138
|
+
return property.getDecorators().find((decorator) => {
|
|
139
|
+
return names.includes(decorator.getName());
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
hasDecorator(property, names) {
|
|
143
|
+
return Boolean(this.getDecorator(property, names));
|
|
144
|
+
}
|
|
145
|
+
isEntityClass(classDeclaration) {
|
|
146
|
+
return classDeclaration.getDecorators().some((decorator) => {
|
|
147
|
+
return decorator.getName() === 'Entity';
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
getDecoratorArgumentsText(decorator) {
|
|
151
|
+
return decorator?.getArguments().map((argument) => argument.getText()) ?? [];
|
|
152
|
+
}
|
|
153
|
+
getDecoratorObjectLiteral(decorator) {
|
|
154
|
+
const argument = decorator?.getArguments().find((item) => {
|
|
155
|
+
return Node.isObjectLiteralExpression(item);
|
|
156
|
+
});
|
|
157
|
+
return argument && Node.isObjectLiteralExpression(argument) ? argument : null;
|
|
158
|
+
}
|
|
159
|
+
getObjectLiteralProperty(objectLiteral, propertyName) {
|
|
160
|
+
const property = objectLiteral?.getProperty(propertyName);
|
|
161
|
+
return property && Node.isPropertyAssignment(property) ? property : null;
|
|
162
|
+
}
|
|
163
|
+
getPropertyAssignmentInitializerText(property) {
|
|
164
|
+
return property?.getInitializer()?.getText() ?? null;
|
|
165
|
+
}
|
|
166
|
+
hasDecoratorOption(property, decoratorNames, optionName, optionValue) {
|
|
167
|
+
const decorator = this.getDecorator(property, decoratorNames);
|
|
168
|
+
const objectLiteral = this.getDecoratorObjectLiteral(decorator);
|
|
169
|
+
const option = this.getObjectLiteralProperty(objectLiteral, optionName);
|
|
170
|
+
const initializerText = this.getPropertyAssignmentInitializerText(option);
|
|
171
|
+
if (initializerText) {
|
|
172
|
+
return initializerText === optionValue;
|
|
173
|
+
}
|
|
174
|
+
const argumentsText = this.getDecoratorArgumentsText(decorator);
|
|
175
|
+
const pattern = new RegExp(`${optionName}\\s*:\\s*${optionValue}`);
|
|
176
|
+
return argumentsText.some((text) => {
|
|
177
|
+
return pattern.test(text);
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
hasSelectFalse(property) {
|
|
181
|
+
return this.hasDecoratorOption(property, this.config.columnDecorators, 'select', 'false');
|
|
182
|
+
}
|
|
183
|
+
isExcludedProperty(property) {
|
|
184
|
+
return this.config.excludePropertyNames.includes(property.getName()) || this.hasSelectFalse(property);
|
|
185
|
+
}
|
|
186
|
+
isColumnProperty(property) {
|
|
187
|
+
if (this.isExcludedProperty(property)) {
|
|
188
|
+
return false;
|
|
189
|
+
}
|
|
190
|
+
if (this.hasDecorator(property, this.config.relationDecorators)) {
|
|
191
|
+
return false;
|
|
192
|
+
}
|
|
193
|
+
return this.hasDecorator(property, this.config.columnDecorators);
|
|
194
|
+
}
|
|
195
|
+
isRelationProperty(property) {
|
|
196
|
+
if (this.isExcludedProperty(property)) {
|
|
197
|
+
return false;
|
|
198
|
+
}
|
|
199
|
+
return this.hasDecorator(property, this.config.relationDecorators);
|
|
200
|
+
}
|
|
201
|
+
collectProperties(classDeclaration, visitedClassNames = new Set()) {
|
|
202
|
+
const className = classDeclaration.getName();
|
|
203
|
+
if (className && visitedClassNames.has(className)) {
|
|
204
|
+
return [];
|
|
205
|
+
}
|
|
206
|
+
if (className) {
|
|
207
|
+
visitedClassNames.add(className);
|
|
208
|
+
}
|
|
209
|
+
const baseClass = this.getBaseClass(classDeclaration);
|
|
210
|
+
const baseProperties = baseClass ? this.collectProperties(baseClass, visitedClassNames) : [];
|
|
211
|
+
const ownProperties = classDeclaration.getProperties();
|
|
212
|
+
return [...baseProperties, ...ownProperties];
|
|
213
|
+
}
|
|
214
|
+
getBaseClass(classDeclaration) {
|
|
215
|
+
const resolvedBaseClass = classDeclaration.getBaseClass();
|
|
216
|
+
if (resolvedBaseClass) {
|
|
217
|
+
return resolvedBaseClass;
|
|
218
|
+
}
|
|
219
|
+
const extendsExpression = classDeclaration.getExtends()?.getExpression().getText();
|
|
220
|
+
if (!extendsExpression) {
|
|
221
|
+
return null;
|
|
222
|
+
}
|
|
223
|
+
return this.findClassDeclarationByName(extendsExpression);
|
|
224
|
+
}
|
|
225
|
+
findClassDeclarationByName(className) {
|
|
226
|
+
for (const sourceFile of this.project.getSourceFiles()) {
|
|
227
|
+
const classDeclaration = sourceFile.getClass(className);
|
|
228
|
+
if (classDeclaration) {
|
|
229
|
+
return classDeclaration;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
return null;
|
|
233
|
+
}
|
|
234
|
+
isNullishTypeText(typeText) {
|
|
235
|
+
return typeText === 'null' || typeText === 'undefined';
|
|
236
|
+
}
|
|
237
|
+
isNullableTypeText(typeText) {
|
|
238
|
+
return typeText.split('|').map((item) => item.trim()).includes('null');
|
|
239
|
+
}
|
|
240
|
+
getPropertyTypeText(property) {
|
|
241
|
+
return this.cleanTypeText(property.getTypeNode()?.getText() ?? property.getType().getText(property));
|
|
242
|
+
}
|
|
243
|
+
getAccessorTypeText(accessor) {
|
|
244
|
+
return this.cleanTypeText(accessor.getReturnTypeNode()?.getText() ?? accessor.getReturnType().getText(accessor));
|
|
245
|
+
}
|
|
246
|
+
isDateColumn(property) {
|
|
247
|
+
const typeText = this.getPropertyTypeText(property);
|
|
248
|
+
return typeText === 'Date' || typeText.includes('Date |') || typeText.includes('| Date');
|
|
249
|
+
}
|
|
250
|
+
isNullableColumn(property) {
|
|
251
|
+
const typeText = this.getPropertyTypeText(property);
|
|
252
|
+
return this.isNullableTypeText(typeText) || this.hasDecoratorOption(property, this.config.columnDecorators, 'nullable', 'true');
|
|
253
|
+
}
|
|
254
|
+
resolveEnumType(type) {
|
|
255
|
+
const symbol = type.getSymbol() ?? type.getAliasSymbol();
|
|
256
|
+
const declarations = symbol?.getDeclarations() ?? [];
|
|
257
|
+
const enumDeclaration = declarations.find((declaration) => {
|
|
258
|
+
return Node.isEnumDeclaration(declaration);
|
|
259
|
+
});
|
|
260
|
+
if (!enumDeclaration || !Node.isEnumDeclaration(enumDeclaration)) {
|
|
261
|
+
return null;
|
|
262
|
+
}
|
|
263
|
+
return enumDeclaration.getName();
|
|
264
|
+
}
|
|
265
|
+
resolveEnumTypeFromProperty(property) {
|
|
266
|
+
const typeText = this.getPropertyTypeText(property);
|
|
267
|
+
const normalizedTypeText = this.unwrapNullishType(typeText);
|
|
268
|
+
const enumByType = this.findEnumDeclarationByName(normalizedTypeText);
|
|
269
|
+
if (enumByType) {
|
|
270
|
+
return enumByType.getName();
|
|
271
|
+
}
|
|
272
|
+
const columnDecorator = this.getDecorator(property, this.config.columnDecorators);
|
|
273
|
+
const objectLiteral = this.getDecoratorObjectLiteral(columnDecorator);
|
|
274
|
+
const enumProperty = this.getObjectLiteralProperty(objectLiteral, 'enum');
|
|
275
|
+
const enumInitializerText = this.getPropertyAssignmentInitializerText(enumProperty);
|
|
276
|
+
if (!enumInitializerText) {
|
|
277
|
+
return null;
|
|
278
|
+
}
|
|
279
|
+
const enumName = enumInitializerText.split('.').pop() ?? enumInitializerText;
|
|
280
|
+
const enumDeclaration = this.findEnumDeclarationByName(enumName);
|
|
281
|
+
if (!enumDeclaration) {
|
|
282
|
+
return null;
|
|
283
|
+
}
|
|
284
|
+
return enumDeclaration.getName();
|
|
285
|
+
}
|
|
286
|
+
findEnumDeclarationByName(enumName) {
|
|
287
|
+
for (const sourceFile of this.project.getSourceFiles()) {
|
|
288
|
+
const enumDeclaration = sourceFile.getEnum(enumName);
|
|
289
|
+
if (enumDeclaration) {
|
|
290
|
+
return enumDeclaration;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
return null;
|
|
294
|
+
}
|
|
295
|
+
unwrapNullishType(typeText) {
|
|
296
|
+
return typeText
|
|
297
|
+
.split('|')
|
|
298
|
+
.map((item) => item.trim())
|
|
299
|
+
.filter((item) => item !== 'null' && item !== 'undefined')
|
|
300
|
+
.join(' | ');
|
|
301
|
+
}
|
|
302
|
+
resolveSingleColumnType(type, fallback) {
|
|
303
|
+
const typeText = this.cleanTypeText(fallback);
|
|
304
|
+
if (this.isNullishTypeText(typeText)) {
|
|
305
|
+
return typeText;
|
|
306
|
+
}
|
|
307
|
+
if (this.config.customScalarTypeMap[typeText]) {
|
|
308
|
+
return this.config.customScalarTypeMap[typeText];
|
|
309
|
+
}
|
|
310
|
+
if (typeText === 'Date') {
|
|
311
|
+
return 'string';
|
|
312
|
+
}
|
|
313
|
+
if (type.isString()) {
|
|
314
|
+
return 'string';
|
|
315
|
+
}
|
|
316
|
+
if (type.isNumber()) {
|
|
317
|
+
return 'number';
|
|
318
|
+
}
|
|
319
|
+
if (type.isBoolean()) {
|
|
320
|
+
return 'boolean';
|
|
321
|
+
}
|
|
322
|
+
if (type.isStringLiteral()) {
|
|
323
|
+
return JSON.stringify(type.getLiteralValue());
|
|
324
|
+
}
|
|
325
|
+
if (type.isNumberLiteral()) {
|
|
326
|
+
return String(type.getLiteralValue());
|
|
327
|
+
}
|
|
328
|
+
if (typeText === 'true' || typeText === 'false') {
|
|
329
|
+
return typeText;
|
|
330
|
+
}
|
|
331
|
+
const enumType = this.resolveEnumType(type);
|
|
332
|
+
if (enumType) {
|
|
333
|
+
return enumType;
|
|
334
|
+
}
|
|
335
|
+
if (typeText.includes('Date')) {
|
|
336
|
+
return typeText.replace(/\bDate\b/g, 'string');
|
|
337
|
+
}
|
|
338
|
+
if (typeText.endsWith('[]')) {
|
|
339
|
+
return 'unknown[]';
|
|
340
|
+
}
|
|
341
|
+
if (typeText.startsWith('Array<')) {
|
|
342
|
+
return 'unknown[]';
|
|
343
|
+
}
|
|
344
|
+
if (typeText === 'object') {
|
|
345
|
+
return 'Record<string, unknown>';
|
|
346
|
+
}
|
|
347
|
+
return typeText;
|
|
348
|
+
}
|
|
349
|
+
resolveColumnType(property) {
|
|
350
|
+
const enumType = this.resolveEnumTypeFromProperty(property);
|
|
351
|
+
if (enumType) {
|
|
352
|
+
return enumType;
|
|
353
|
+
}
|
|
354
|
+
const typeNodeText = this.getPropertyTypeText(property);
|
|
355
|
+
const type = property.getType();
|
|
356
|
+
if (typeNodeText.includes('|')) {
|
|
357
|
+
const result = typeNodeText.split('|').map((item) => {
|
|
358
|
+
return this.resolveSingleColumnType(type, item.trim());
|
|
359
|
+
});
|
|
360
|
+
return this.unique(result).join(' | ');
|
|
361
|
+
}
|
|
362
|
+
return this.resolveSingleColumnType(type, typeNodeText);
|
|
363
|
+
}
|
|
364
|
+
resolveAccessorType(accessor) {
|
|
365
|
+
const typeNodeText = this.getAccessorTypeText(accessor);
|
|
366
|
+
const type = accessor.getReturnType();
|
|
367
|
+
if (typeNodeText.includes('|')) {
|
|
368
|
+
const result = typeNodeText.split('|').map((item) => {
|
|
369
|
+
return this.resolveSingleColumnType(type, item.trim());
|
|
370
|
+
});
|
|
371
|
+
return this.unique(result).join(' | ');
|
|
372
|
+
}
|
|
373
|
+
return this.resolveSingleColumnType(type, typeNodeText);
|
|
374
|
+
}
|
|
375
|
+
appendNullType(typeText) {
|
|
376
|
+
if (typeText.split('|').map((item) => item.trim()).includes('null')) {
|
|
377
|
+
return typeText;
|
|
378
|
+
}
|
|
379
|
+
return `${typeText} | null`;
|
|
380
|
+
}
|
|
381
|
+
propertyToColumnMeta(property) {
|
|
382
|
+
const resolvedType = this.resolveColumnType(property);
|
|
383
|
+
const nullable = this.isNullableColumn(property);
|
|
384
|
+
return {
|
|
385
|
+
name: property.getName(),
|
|
386
|
+
optional: property.hasQuestionToken(),
|
|
387
|
+
type: nullable ? this.appendNullType(resolvedType) : resolvedType,
|
|
388
|
+
isDate: this.isDateColumn(property)
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
accessorToColumnMeta(accessor) {
|
|
392
|
+
const resolvedType = this.resolveAccessorType(accessor);
|
|
393
|
+
return {
|
|
394
|
+
name: accessor.getName(),
|
|
395
|
+
optional: false,
|
|
396
|
+
type: resolvedType,
|
|
397
|
+
isDate: this.getAccessorTypeText(accessor).includes('Date')
|
|
398
|
+
};
|
|
399
|
+
}
|
|
400
|
+
isExcludedGetter(accessor) {
|
|
401
|
+
return this.config.excludePropertyNames.includes(accessor.getName());
|
|
402
|
+
}
|
|
403
|
+
collectGetAccessors(classDeclaration, visitedClassNames = new Set()) {
|
|
404
|
+
const className = classDeclaration.getName();
|
|
405
|
+
if (className && visitedClassNames.has(className)) {
|
|
406
|
+
return [];
|
|
407
|
+
}
|
|
408
|
+
if (className) {
|
|
409
|
+
visitedClassNames.add(className);
|
|
410
|
+
}
|
|
411
|
+
const baseClass = this.getBaseClass(classDeclaration);
|
|
412
|
+
const baseGetters = baseClass ? this.collectGetAccessors(baseClass, visitedClassNames) : [];
|
|
413
|
+
const ownGetters = classDeclaration.getGetAccessors();
|
|
414
|
+
return [...baseGetters, ...ownGetters];
|
|
415
|
+
}
|
|
416
|
+
unwrapRelationType(typeText) {
|
|
417
|
+
return this.cleanTypeText(typeText)
|
|
418
|
+
.replace(/^Promise<(.+)>$/, '$1')
|
|
419
|
+
.replace(/^Array<(.+)>$/, '$1')
|
|
420
|
+
.replace(/\[\]$/, '')
|
|
421
|
+
.split('|')
|
|
422
|
+
.map((item) => item.trim())
|
|
423
|
+
.filter((item) => item !== 'null' && item !== 'undefined')
|
|
424
|
+
.join(' | ');
|
|
425
|
+
}
|
|
426
|
+
getRelationTargetClassName(property) {
|
|
427
|
+
const decorator = this.getDecorator(property, this.config.relationDecorators);
|
|
428
|
+
const firstArgument = decorator?.getArguments()[0]?.getText() ?? '';
|
|
429
|
+
const arrowMatch = firstArgument.match(/=>\s*([A-Za-z0-9_]+)/);
|
|
430
|
+
const returnMatch = firstArgument.match(/return\s+([A-Za-z0-9_]+)/);
|
|
431
|
+
if (arrowMatch?.[1]) {
|
|
432
|
+
return arrowMatch[1];
|
|
433
|
+
}
|
|
434
|
+
if (returnMatch?.[1]) {
|
|
435
|
+
return returnMatch[1];
|
|
436
|
+
}
|
|
437
|
+
return this.unwrapRelationType(this.getPropertyTypeText(property));
|
|
438
|
+
}
|
|
439
|
+
isArrayRelation(property) {
|
|
440
|
+
const decorator = this.getDecorator(property, this.config.relationDecorators);
|
|
441
|
+
const decoratorName = decorator?.getName() ?? '';
|
|
442
|
+
const typeText = this.getPropertyTypeText(property);
|
|
443
|
+
return this.config.arrayRelationDecorators.includes(decoratorName)
|
|
444
|
+
|| typeText.includes('[]')
|
|
445
|
+
|| typeText.startsWith('Array<')
|
|
446
|
+
|| typeText.startsWith('Promise<Array<')
|
|
447
|
+
|| typeText.includes('Promise<') && typeText.includes('[]>');
|
|
448
|
+
}
|
|
449
|
+
isNullableRelation(property) {
|
|
450
|
+
const typeText = this.getPropertyTypeText(property);
|
|
451
|
+
return this.isNullableTypeText(typeText) || this.hasDecoratorOption(property, this.config.relationDecorators, 'nullable', 'true');
|
|
452
|
+
}
|
|
453
|
+
propertyToRelationMeta(property) {
|
|
454
|
+
const targetClassName = this.getRelationTargetClassName(property);
|
|
455
|
+
return {
|
|
456
|
+
name: property.getName(),
|
|
457
|
+
targetClassName,
|
|
458
|
+
targetDTOName: `${targetClassName}DTO`,
|
|
459
|
+
isArray: this.isArrayRelation(property),
|
|
460
|
+
nullable: this.isNullableRelation(property)
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
createEntityMetas(entitySourceFiles) {
|
|
464
|
+
const metas = [];
|
|
465
|
+
for (const sourceFile of entitySourceFiles) {
|
|
466
|
+
for (const classDeclaration of sourceFile.getClasses()) {
|
|
467
|
+
if (!this.isEntityClass(classDeclaration)) {
|
|
468
|
+
continue;
|
|
469
|
+
}
|
|
470
|
+
const className = classDeclaration.getNameOrThrow();
|
|
471
|
+
const moduleName = this.toKebabCase(className);
|
|
472
|
+
const properties = this.collectProperties(classDeclaration);
|
|
473
|
+
const columns = properties
|
|
474
|
+
.filter((property) => this.isColumnProperty(property))
|
|
475
|
+
.map((property) => this.propertyToColumnMeta(property));
|
|
476
|
+
const relations = properties
|
|
477
|
+
.filter((property) => this.isRelationProperty(property))
|
|
478
|
+
.map((property) => this.propertyToRelationMeta(property));
|
|
479
|
+
const takenNames = new Set([
|
|
480
|
+
...columns.map((column) => column.name),
|
|
481
|
+
...relations.map((relation) => relation.name)
|
|
482
|
+
]);
|
|
483
|
+
const getterColumns = this.config.includeGetters
|
|
484
|
+
? this.collectGetAccessors(classDeclaration)
|
|
485
|
+
.filter((getter) => getter.getParameters().length === 0)
|
|
486
|
+
.filter((getter) => !this.isExcludedGetter(getter))
|
|
487
|
+
.filter((getter) => !takenNames.has(getter.getName()))
|
|
488
|
+
.map((getter) => this.accessorToColumnMeta(getter))
|
|
489
|
+
: [];
|
|
490
|
+
metas.push({
|
|
491
|
+
className,
|
|
492
|
+
dtoName: `${className}DTO`,
|
|
493
|
+
moduleName,
|
|
494
|
+
filePath: classDeclaration.getSourceFile().getFilePath(),
|
|
495
|
+
sourceFilePath: sourceFile.getFilePath(),
|
|
496
|
+
dtoFileName: `${moduleName}.dto.ts`,
|
|
497
|
+
mapperName: `parse${className}DTO`,
|
|
498
|
+
columns: [...columns, ...getterColumns],
|
|
499
|
+
relations
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
return metas.sort((a, b) => {
|
|
504
|
+
return a.className.localeCompare(b.className);
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
findMetaByClassName(metas, className) {
|
|
508
|
+
return metas.find((meta) => {
|
|
509
|
+
return meta.className === className;
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
getValidRelations(meta, metas) {
|
|
513
|
+
return meta.relations.filter((relation) => {
|
|
514
|
+
return Boolean(this.findMetaByClassName(metas, relation.targetClassName));
|
|
515
|
+
});
|
|
516
|
+
}
|
|
517
|
+
createDTOContent(meta, metas) {
|
|
518
|
+
const dtoFilePath = path.join(this.config.dtoOutputDir, meta.dtoFileName);
|
|
519
|
+
const validRelations = this.getValidRelations(meta, metas);
|
|
520
|
+
const relationImports = this.unique(validRelations
|
|
521
|
+
.filter((relation) => {
|
|
522
|
+
return relation.targetClassName !== meta.className;
|
|
523
|
+
})
|
|
524
|
+
.map((relation) => {
|
|
525
|
+
return relation.targetClassName;
|
|
526
|
+
})).map((targetClassName) => {
|
|
527
|
+
const targetMeta = this.findMetaByClassName(metas, targetClassName);
|
|
528
|
+
if (!targetMeta) {
|
|
529
|
+
return null;
|
|
530
|
+
}
|
|
531
|
+
const targetPath = path.join(this.config.dtoOutputDir, targetMeta.dtoFileName);
|
|
532
|
+
return [targetMeta.dtoName, this.createRelativeJSImportPath(dtoFilePath, targetPath)];
|
|
533
|
+
}).filter((item) => {
|
|
534
|
+
return item !== null;
|
|
535
|
+
});
|
|
536
|
+
const relationTypeNames = new Set(validRelations.map((relation) => relation.targetDTOName));
|
|
537
|
+
const externalTypeImports = this.collectExternalTypeImports(meta, dtoFilePath, relationTypeNames);
|
|
538
|
+
const importMap = new Map();
|
|
539
|
+
for (const [typeName, moduleSpecifier] of [...relationImports, ...externalTypeImports]) {
|
|
540
|
+
if (!importMap.has(moduleSpecifier)) {
|
|
541
|
+
importMap.set(moduleSpecifier, new Set());
|
|
542
|
+
}
|
|
543
|
+
importMap.get(moduleSpecifier)?.add(typeName);
|
|
544
|
+
}
|
|
545
|
+
const imports = [...importMap.entries()]
|
|
546
|
+
.sort((a, b) => {
|
|
547
|
+
return a[0].localeCompare(b[0]);
|
|
548
|
+
})
|
|
549
|
+
.map(([moduleSpecifier, typeNames]) => {
|
|
550
|
+
return `import type { ${[...typeNames].sort((a, b) => a.localeCompare(b)).join(', ')} } from '${moduleSpecifier}'`;
|
|
551
|
+
});
|
|
552
|
+
const columnLines = meta.columns.map((column) => {
|
|
553
|
+
const optional = column.optional ? '?' : '';
|
|
554
|
+
return ` ${column.name}${optional}: ${column.type}`;
|
|
555
|
+
});
|
|
556
|
+
const relationLines = validRelations.map((relation) => {
|
|
557
|
+
const type = relation.isArray
|
|
558
|
+
? `${relation.targetDTOName}[]`
|
|
559
|
+
: `${relation.targetDTOName}${relation.nullable ? ' | null' : ''}`;
|
|
560
|
+
return ` ${relation.name}?: ${type}`;
|
|
561
|
+
});
|
|
562
|
+
const importBlock = imports.length ? `${imports.join('\n')}\n\n` : '';
|
|
563
|
+
const body = [...columnLines, ...relationLines].join('\n');
|
|
564
|
+
return `${importBlock}export type ${meta.dtoName} = {\n${body}\n}\n`;
|
|
565
|
+
}
|
|
566
|
+
collectExternalTypeImports(meta, dtoFilePath, relationTypeNames) {
|
|
567
|
+
const symbols = this.collectExternalTypeSymbols(meta, relationTypeNames);
|
|
568
|
+
const importSpecifier = this.getCommonTypesImportSpecifier(dtoFilePath);
|
|
569
|
+
return [...symbols].map((symbol) => {
|
|
570
|
+
return [symbol, importSpecifier];
|
|
571
|
+
});
|
|
572
|
+
}
|
|
573
|
+
collectExternalTypeSymbols(meta, relationTypeNames) {
|
|
574
|
+
const symbols = new Set();
|
|
575
|
+
const ignoredNames = new Set([
|
|
576
|
+
'string',
|
|
577
|
+
'number',
|
|
578
|
+
'boolean',
|
|
579
|
+
'null',
|
|
580
|
+
'undefined',
|
|
581
|
+
'unknown',
|
|
582
|
+
'any',
|
|
583
|
+
'object',
|
|
584
|
+
'bigint',
|
|
585
|
+
'never',
|
|
586
|
+
'void',
|
|
587
|
+
'true',
|
|
588
|
+
'false',
|
|
589
|
+
'Record',
|
|
590
|
+
'Array',
|
|
591
|
+
'Promise',
|
|
592
|
+
'ReadonlyArray'
|
|
593
|
+
]);
|
|
594
|
+
for (const column of meta.columns) {
|
|
595
|
+
const identifiers = column.type.match(/\b[A-Za-z_][A-Za-z0-9_]*\b/g) ?? [];
|
|
596
|
+
for (const identifier of identifiers) {
|
|
597
|
+
if (ignoredNames.has(identifier)) {
|
|
598
|
+
continue;
|
|
599
|
+
}
|
|
600
|
+
if (relationTypeNames.has(identifier) || identifier === meta.dtoName) {
|
|
601
|
+
continue;
|
|
602
|
+
}
|
|
603
|
+
symbols.add(identifier);
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
return symbols;
|
|
607
|
+
}
|
|
608
|
+
collectAllExternalTypeSymbols(metas) {
|
|
609
|
+
const symbols = new Set();
|
|
610
|
+
for (const meta of metas) {
|
|
611
|
+
const relationTypeNames = new Set(meta.relations.map((relation) => relation.targetDTOName));
|
|
612
|
+
const metaSymbols = this.collectExternalTypeSymbols(meta, relationTypeNames);
|
|
613
|
+
for (const symbol of metaSymbols) {
|
|
614
|
+
symbols.add(symbol);
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
return symbols;
|
|
618
|
+
}
|
|
619
|
+
findTypeDeclarationByName(typeName) {
|
|
620
|
+
for (const sourceFile of this.project.getSourceFiles()) {
|
|
621
|
+
const enumDeclaration = sourceFile.getEnum(typeName);
|
|
622
|
+
if (enumDeclaration) {
|
|
623
|
+
return enumDeclaration;
|
|
624
|
+
}
|
|
625
|
+
const interfaceDeclaration = sourceFile.getInterface(typeName);
|
|
626
|
+
if (interfaceDeclaration) {
|
|
627
|
+
return interfaceDeclaration;
|
|
628
|
+
}
|
|
629
|
+
const typeAliasDeclaration = sourceFile.getTypeAlias(typeName);
|
|
630
|
+
if (typeAliasDeclaration) {
|
|
631
|
+
return typeAliasDeclaration;
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
return null;
|
|
635
|
+
}
|
|
636
|
+
getCommonTypeReExportModuleSpecifier(typeName, commonTypesFilePath) {
|
|
637
|
+
const knownLibTypeFiles = [
|
|
638
|
+
path.join(process.cwd(), 'packages/lib/src/midtrans-client.ts'),
|
|
639
|
+
path.join(process.cwd(), 'packages/lib/src/common.ts')
|
|
640
|
+
];
|
|
641
|
+
for (const filePath of knownLibTypeFiles) {
|
|
642
|
+
const sourceFile = this.project.addSourceFileAtPathIfExists(filePath);
|
|
643
|
+
const symbolNames = sourceFile?.getExportSymbols().map((symbol) => symbol.getName()) ?? [];
|
|
644
|
+
if (symbolNames.includes(typeName)) {
|
|
645
|
+
const enumDeclaration = sourceFile?.getEnum(typeName);
|
|
646
|
+
return {
|
|
647
|
+
moduleSpecifier: this.createRelativeJSImportPath(commonTypesFilePath, filePath),
|
|
648
|
+
isTypeOnly: !enumDeclaration
|
|
649
|
+
};
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
return null;
|
|
653
|
+
}
|
|
654
|
+
normalizeDeclarationToExportText(typeName) {
|
|
655
|
+
const declaration = this.findTypeDeclarationByName(typeName);
|
|
656
|
+
if (!declaration) {
|
|
657
|
+
return null;
|
|
658
|
+
}
|
|
659
|
+
const declarationText = declaration.getText().trim();
|
|
660
|
+
if (declarationText.startsWith('export ')) {
|
|
661
|
+
return declarationText;
|
|
662
|
+
}
|
|
663
|
+
return `export ${declarationText}`;
|
|
664
|
+
}
|
|
665
|
+
ensureCommonTypesFile(metas) {
|
|
666
|
+
const commonTypesFilePath = this.getCommonTypesFilePath();
|
|
667
|
+
const symbols = [...this.collectAllExternalTypeSymbols(metas)].sort((a, b) => a.localeCompare(b));
|
|
668
|
+
const lines = [
|
|
669
|
+
'export type SearchDTO = {',
|
|
670
|
+
' title: string',
|
|
671
|
+
' subtitle?: string | null',
|
|
672
|
+
' path: string',
|
|
673
|
+
'}'
|
|
674
|
+
];
|
|
675
|
+
for (const symbol of symbols) {
|
|
676
|
+
const reExportModule = this.getCommonTypeReExportModuleSpecifier(symbol, commonTypesFilePath);
|
|
677
|
+
if (reExportModule) {
|
|
678
|
+
const exportKeyword = reExportModule.isTypeOnly ? 'export type' : 'export';
|
|
679
|
+
lines.push(`${exportKeyword} { ${symbol} } from '${reExportModule.moduleSpecifier}'`);
|
|
680
|
+
continue;
|
|
681
|
+
}
|
|
682
|
+
const declarationText = this.normalizeDeclarationToExportText(symbol);
|
|
683
|
+
if (!declarationText) {
|
|
684
|
+
throw new Error(`DTOGeneratorService config error: could not generate common type '${symbol}'.`);
|
|
685
|
+
}
|
|
686
|
+
lines.push(declarationText.replace(/^export declare /, 'export '));
|
|
687
|
+
}
|
|
688
|
+
const content = `${lines.join('\n\n')}\n`;
|
|
689
|
+
this.writeFile(commonTypesFilePath, content);
|
|
690
|
+
this.project.addSourceFileAtPathIfExists(commonTypesFilePath);
|
|
691
|
+
}
|
|
692
|
+
resolveCommonTypesSourceFile() {
|
|
693
|
+
const commonTypesFilePath = this.getCommonTypesFilePath();
|
|
694
|
+
if (!fs.existsSync(commonTypesFilePath)) {
|
|
695
|
+
return null;
|
|
696
|
+
}
|
|
697
|
+
return this.project.addSourceFileAtPathIfExists(commonTypesFilePath) ?? null;
|
|
698
|
+
}
|
|
699
|
+
validateCommonTypeCoverage(metas) {
|
|
700
|
+
const commonTypesSource = this.resolveCommonTypesSourceFile();
|
|
701
|
+
if (!commonTypesSource) {
|
|
702
|
+
throw new Error(`DTOGeneratorService config error: common.dto.ts was not generated in '${this.config.dtoOutputDir}'.`);
|
|
703
|
+
}
|
|
704
|
+
const exportedSymbols = new Set(commonTypesSource.getExportSymbols().map((symbol) => symbol.getName()));
|
|
705
|
+
const missing = [];
|
|
706
|
+
for (const meta of metas) {
|
|
707
|
+
const relationTypeNames = new Set(meta.relations.map((relation) => relation.targetDTOName));
|
|
708
|
+
const symbols = this.collectExternalTypeSymbols(meta, relationTypeNames);
|
|
709
|
+
for (const symbol of symbols) {
|
|
710
|
+
if (!exportedSymbols.has(symbol)) {
|
|
711
|
+
const columns = meta.columns.filter((column) => {
|
|
712
|
+
const identifiers = column.type.match(/\b[A-Za-z_][A-Za-z0-9_]*\b/g) ?? [];
|
|
713
|
+
return identifiers.includes(symbol);
|
|
714
|
+
}).map((column) => column.name);
|
|
715
|
+
const uniqueColumns = this.unique(columns);
|
|
716
|
+
missing.push(`${symbol} (used in ${meta.dtoName}.${uniqueColumns.join(', ')})`);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
if (missing.length) {
|
|
721
|
+
const details = this.unique(missing).sort((a, b) => a.localeCompare(b)).join('\n- ');
|
|
722
|
+
throw new Error(`DTOGeneratorService validation error: generated/common.dto.ts is missing exports for:\n- ${details}`);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
createDTOIndexContent(metas) {
|
|
726
|
+
const dtoTypeExports = metas
|
|
727
|
+
.map((meta) => {
|
|
728
|
+
return `export type { ${meta.dtoName} } from './${meta.moduleName}.dto.ts'`;
|
|
729
|
+
})
|
|
730
|
+
.join('\n');
|
|
731
|
+
return `export * from './common.dto.ts'\n${dtoTypeExports}`;
|
|
732
|
+
}
|
|
733
|
+
createGeneratedMapperContent(metas) {
|
|
734
|
+
const hasDateColumn = metas.some((meta) => {
|
|
735
|
+
return meta.columns.some((column) => {
|
|
736
|
+
return column.isDate;
|
|
737
|
+
});
|
|
738
|
+
});
|
|
739
|
+
const helperImport = hasDateColumn ? `import { toDTODate } from './dto-date.util.ts'\n` : '';
|
|
740
|
+
const entityImports = metas.map((meta) => {
|
|
741
|
+
return `import { ${meta.className} } from '${this.createRelativeJSImportPath(this.config.mapperOutputFile, meta.filePath)}'`;
|
|
742
|
+
});
|
|
743
|
+
const dtoImports = `import type { ${metas.map((meta) => meta.dtoName).join(', ')} } from '${this.config.sharedDTOImportPath}'`;
|
|
744
|
+
const mapperFunctions = metas.map((meta) => {
|
|
745
|
+
return this.createMapperFunctionContent(meta, metas);
|
|
746
|
+
});
|
|
747
|
+
return `${helperImport}${entityImports.join('\n')}\n${dtoImports}\n\n${mapperFunctions.join('\n\n')}\n`;
|
|
748
|
+
}
|
|
749
|
+
createMapperFunctionContent(meta, metas) {
|
|
750
|
+
const validRelations = this.getValidRelations(meta, metas);
|
|
751
|
+
const columnLines = meta.columns.map((column) => {
|
|
752
|
+
const value = column.isDate ? `toDTODate(entity.${column.name})` : `entity.${column.name}`;
|
|
753
|
+
return ` ${column.name}: ${value}`;
|
|
754
|
+
});
|
|
755
|
+
const relationLines = validRelations.map((relation) => {
|
|
756
|
+
return this.createRelationMapperLine(relation, metas);
|
|
757
|
+
});
|
|
758
|
+
const relationBlock = relationLines.length ? `\n${relationLines.join('\n\n')}\n` : '';
|
|
759
|
+
return `export function ${meta.mapperName}(entity: ${meta.className}): ${meta.dtoName} {\n const dto: ${meta.dtoName} = {\n${columnLines.join(',\n')}\n }\n${relationBlock}\n return dto\n}\n\nexport function ${meta.mapperName}Array(entities: ${meta.className}[]): ${meta.dtoName}[] {\n return entities.map(${meta.mapperName})\n}`;
|
|
760
|
+
}
|
|
761
|
+
createRelationMapperLine(relation, metas) {
|
|
762
|
+
const targetMeta = this.findMetaByClassName(metas, relation.targetClassName);
|
|
763
|
+
const parserName = targetMeta?.mapperName;
|
|
764
|
+
if (relation.isArray) {
|
|
765
|
+
return ` if (Array.isArray(entity.${relation.name})) {\n dto.${relation.name} = entity.${relation.name}.map(${parserName})\n }`;
|
|
766
|
+
}
|
|
767
|
+
if (relation.nullable) {
|
|
768
|
+
return ` if (entity.${relation.name} !== undefined) {\n dto.${relation.name} = entity.${relation.name} === null ? null : ${parserName}(entity.${relation.name})\n }`;
|
|
769
|
+
}
|
|
770
|
+
return ` if (entity.${relation.name} !== undefined && entity.${relation.name} !== null) {\n dto.${relation.name} = ${parserName}(entity.${relation.name})\n }`;
|
|
771
|
+
}
|
|
772
|
+
}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export type Config = {
|
|
2
|
+
apiTsConfigPath: string;
|
|
3
|
+
entityGlob: string;
|
|
4
|
+
dtoOutputDir: string;
|
|
5
|
+
mapperOutputFile: string;
|
|
6
|
+
sharedDTOImportPath: string;
|
|
7
|
+
includeGetters: boolean;
|
|
8
|
+
excludePropertyNames: string[];
|
|
9
|
+
columnDecorators: string[];
|
|
10
|
+
relationDecorators: string[];
|
|
11
|
+
arrayRelationDecorators: string[];
|
|
12
|
+
customScalarTypeMap: Record<string, string>;
|
|
13
|
+
};
|
|
14
|
+
export type EntityMeta = {
|
|
15
|
+
className: string;
|
|
16
|
+
dtoName: string;
|
|
17
|
+
moduleName: string;
|
|
18
|
+
filePath: string;
|
|
19
|
+
dtoFileName: string;
|
|
20
|
+
mapperName: string;
|
|
21
|
+
columns: ColumnMeta[];
|
|
22
|
+
relations: RelationMeta[];
|
|
23
|
+
sourceFilePath: string;
|
|
24
|
+
};
|
|
25
|
+
export type ColumnMeta = {
|
|
26
|
+
name: string;
|
|
27
|
+
optional: boolean;
|
|
28
|
+
type: string;
|
|
29
|
+
isDate: boolean;
|
|
30
|
+
};
|
|
31
|
+
export type RelationMeta = {
|
|
32
|
+
name: string;
|
|
33
|
+
targetClassName: string;
|
|
34
|
+
targetDTOName: string;
|
|
35
|
+
isArray: boolean;
|
|
36
|
+
nullable: boolean;
|
|
37
|
+
};
|
|
38
|
+
export type GenerateResult = {
|
|
39
|
+
metas: EntityMeta[];
|
|
40
|
+
dtoOutputDir: string;
|
|
41
|
+
mapperOutputFile: string;
|
|
42
|
+
};
|
|
43
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,GAAG;IACjB,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,EAAE,MAAM,CAAA;IACxB,mBAAmB,EAAE,MAAM,CAAA;IAC3B,cAAc,EAAE,OAAO,CAAA;IACvB,oBAAoB,EAAE,MAAM,EAAE,CAAA;IAC9B,gBAAgB,EAAE,MAAM,EAAE,CAAA;IAC1B,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,uBAAuB,EAAE,MAAM,EAAE,CAAA;IACjC,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC9C,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACrB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,UAAU,EAAE,CAAA;IACrB,SAAS,EAAE,YAAY,EAAE,CAAA;IACzB,cAAc,EAAE,MAAM,CAAA;CACzB,CAAA;AAED,MAAM,MAAM,UAAU,GAAG;IACrB,IAAI,EAAE,MAAM,CAAA;IACZ,QAAQ,EAAE,OAAO,CAAA;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,MAAM,MAAM,YAAY,GAAG;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,MAAM,CAAA;IACrB,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;CACpB,CAAA;AAED,MAAM,MAAM,cAAc,GAAG;IACzB,KAAK,EAAE,UAAU,EAAE,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,gBAAgB,EAAE,MAAM,CAAA;CAC3B,CAAA"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "typeorm-dto-generator",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Generate DTOs from TypeORM entities",
|
|
5
|
+
"keywords": ["util", "helper", "typeorm", "entity", "dto", "mapper", "typescript"],
|
|
6
|
+
"license": "ISC",
|
|
7
|
+
"author": "Bintan <hello@bintvn.co>",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "tsc --project tsconfig.json",
|
|
16
|
+
"typecheck": "tsc --noEmit --project tsconfig.json"
|
|
17
|
+
},
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"development": {
|
|
21
|
+
"types": "./src/index.ts",
|
|
22
|
+
"default": "./src/index.ts"
|
|
23
|
+
},
|
|
24
|
+
"default": {
|
|
25
|
+
"types": "./dist/index.d.ts",
|
|
26
|
+
"default": "./dist/index.js"
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@types/node": "^25.9.1",
|
|
32
|
+
"ts-morph": "^28.0.0",
|
|
33
|
+
"typescript": "^6.0.3"
|
|
34
|
+
}
|
|
35
|
+
}
|