@skmtc/core 0.0.490 → 0.0.492
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/esm/context/CoreContext.d.ts +3 -5
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +5 -5
- package/esm/context/GenerateContext.d.ts +17 -16
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +4 -4
- package/esm/dsl/model/ModelBase.d.ts +1 -1
- package/esm/dsl/model/ModelBase.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.d.ts +5 -5
- package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
- package/esm/dsl/model/ModelInsertable.d.ts +2 -2
- package/esm/dsl/model/ModelInsertable.d.ts.map +1 -1
- package/esm/dsl/model/toModelInsertable.d.ts +5 -5
- package/esm/dsl/model/toModelInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/OperationBase.d.ts +2 -2
- package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/OperationDriver.d.ts +5 -5
- package/esm/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/OperationInsertable.d.ts +4 -4
- package/esm/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationGateway.d.ts +4 -4
- package/esm/dsl/operation/toOperationGateway.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationInsertable.d.ts +6 -6
- package/esm/dsl/operation/toOperationInsertable.d.ts.map +1 -1
- package/esm/mod.d.ts +1 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +1 -1
- package/esm/run/handleEnrichment.d.ts +1 -1
- package/esm/run/handleEnrichment.d.ts.map +1 -1
- package/esm/run/toEnrichments.d.ts +4 -7
- package/esm/run/toEnrichments.d.ts.map +1 -1
- package/esm/run/toSettings.d.ts +4 -7
- package/esm/run/toSettings.d.ts.map +1 -1
- package/esm/run/transform.d.ts +3 -5
- package/esm/run/transform.d.ts.map +1 -1
- package/esm/run/transform.js +2 -2
- package/esm/types/EnrichmentRequest.d.ts +2 -2
- package/esm/types/EnrichmentRequest.d.ts.map +1 -1
- package/esm/types/GeneratorType.d.ts +9 -0
- package/esm/types/GeneratorType.d.ts.map +1 -0
- package/esm/types/GeneratorType.js +1 -0
- package/esm/types/Settings.d.ts +0 -2
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +0 -1
- package/package.json +27 -13
- package/script/_dnt.polyfills.d.ts +12 -0
- package/script/_dnt.polyfills.d.ts.map +1 -0
- package/script/_dnt.polyfills.js +16 -0
- package/script/_dnt.shims.d.ts +6 -0
- package/script/_dnt.shims.d.ts.map +1 -0
- package/script/_dnt.shims.js +65 -0
- package/script/context/CoreContext.d.ts +58 -0
- package/script/context/CoreContext.d.ts.map +1 -0
- package/script/context/CoreContext.js +227 -0
- package/script/context/GenerateContext.d.ts +232 -0
- package/script/context/GenerateContext.d.ts.map +1 -0
- package/script/context/GenerateContext.js +510 -0
- package/script/context/ParseContext.d.ts +34 -0
- package/script/context/ParseContext.d.ts.map +1 -0
- package/script/context/ParseContext.js +131 -0
- package/script/context/RenderContext.d.ts +38 -0
- package/script/context/RenderContext.d.ts.map +1 -0
- package/script/context/RenderContext.js +227 -0
- package/script/context/ResultsHandler.d.ts +19 -0
- package/script/context/ResultsHandler.d.ts.map +1 -0
- package/script/context/ResultsHandler.js +56 -0
- package/script/context/StackTrail.d.ts +14 -0
- package/script/context/StackTrail.d.ts.map +1 -0
- package/script/context/StackTrail.js +85 -0
- package/script/context/types.d.ts +23 -0
- package/script/context/types.d.ts.map +1 -0
- package/script/context/types.js +2 -0
- package/script/deps/jsr.io/@std/fmt/1.0.2/colors.d.ts +700 -0
- package/script/deps/jsr.io/@std/fmt/1.0.2/colors.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fmt/1.0.2/colors.js +976 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts +218 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.js +298 -0
- package/script/deps/jsr.io/@std/io/0.224.9/types.d.ts +146 -0
- package/script/deps/jsr.io/@std/io/0.224.9/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/io/0.224.9/types.js +18 -0
- package/script/deps/jsr.io/@std/io/0.224.9/write_all.d.ts +51 -0
- package/script/deps/jsr.io/@std/io/0.224.9/write_all.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/io/0.224.9/write_all.js +65 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_config.d.ts +4 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_config.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_config.js +17 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.d.ts +8 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.js +11 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_state.d.ts +8 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_state.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/_state.js +10 -0
- package/script/deps/jsr.io/@std/log/0.224.8/base_handler.d.ts +22 -0
- package/script/deps/jsr.io/@std/log/0.224.8/base_handler.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/base_handler.js +64 -0
- package/script/deps/jsr.io/@std/log/0.224.8/console_handler.d.ts +18 -0
- package/script/deps/jsr.io/@std/log/0.224.8/console_handler.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/console_handler.js +63 -0
- package/script/deps/jsr.io/@std/log/0.224.8/critical.d.ts +5 -0
- package/script/deps/jsr.io/@std/log/0.224.8/critical.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/critical.js +13 -0
- package/script/deps/jsr.io/@std/log/0.224.8/debug.d.ts +5 -0
- package/script/deps/jsr.io/@std/log/0.224.8/debug.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/debug.js +13 -0
- package/script/deps/jsr.io/@std/log/0.224.8/error.d.ts +5 -0
- package/script/deps/jsr.io/@std/log/0.224.8/error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/error.js +13 -0
- package/script/deps/jsr.io/@std/log/0.224.8/file_handler.d.ts +54 -0
- package/script/deps/jsr.io/@std/log/0.224.8/file_handler.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/file_handler.js +162 -0
- package/script/deps/jsr.io/@std/log/0.224.8/formatters.d.ts +6 -0
- package/script/deps/jsr.io/@std/log/0.224.8/formatters.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/formatters.js +23 -0
- package/script/deps/jsr.io/@std/log/0.224.8/get_logger.d.ts +4 -0
- package/script/deps/jsr.io/@std/log/0.224.8/get_logger.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/get_logger.js +24 -0
- package/script/deps/jsr.io/@std/log/0.224.8/info.d.ts +5 -0
- package/script/deps/jsr.io/@std/log/0.224.8/info.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/info.js +13 -0
- package/script/deps/jsr.io/@std/log/0.224.8/levels.d.ts +26 -0
- package/script/deps/jsr.io/@std/log/0.224.8/levels.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/levels.js +48 -0
- package/script/deps/jsr.io/@std/log/0.224.8/logger.d.ts +63 -0
- package/script/deps/jsr.io/@std/log/0.224.8/logger.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/logger.js +185 -0
- package/script/deps/jsr.io/@std/log/0.224.8/mod.d.ts +390 -0
- package/script/deps/jsr.io/@std/log/0.224.8/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/mod.js +406 -0
- package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.d.ts +53 -0
- package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.js +152 -0
- package/script/deps/jsr.io/@std/log/0.224.8/setup.d.ts +4 -0
- package/script/deps/jsr.io/@std/log/0.224.8/setup.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/setup.js +44 -0
- package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts +51 -0
- package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/log/0.224.8/warn.js +13 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.js +10 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.js +26 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts +40 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.js +49 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.js +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.js +12 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.js +237 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.js +80 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.js +12 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.js +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.js +18 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/_os.js +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/basename.js +39 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/common.js +36 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts +15 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/constants.js +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/extname.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/format.js +30 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts +77 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.js +86 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.js +37 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts +54 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/mod.js +73 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts +27 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.js +36 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts +29 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.js +38 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/parse.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.js +35 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.js +53 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.js +76 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.js +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts +72 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.js +26 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.js +34 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.js +118 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.js +109 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.js +30 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.js +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/relative.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts +38 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.js +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.js +47 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.js +115 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.js +84 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts +71 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.js +41 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.js +77 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.js +43 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.js +137 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.js +34 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.js +179 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.js +134 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.js +180 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.js +37 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.js +52 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts +6 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.js +710 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts +73 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.js +152 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts +7 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_error.js +23 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts +5 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.js +1324 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts +44 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.js +154 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts +11 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.js +85 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts +6 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_state.js +19 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.js +110 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.js +35 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.js +109 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.js +41 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.js +171 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.js +14 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.js +15 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts +17 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.js +39 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.js +40 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.js +43 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.js +38 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.js +40 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.js +14 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.js +28 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.js +13 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.js +81 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.js +23 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts +20 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.js +74 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts +49 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/mod.js +67 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts +36 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/parse.js +22 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.js +15 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.js +18 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts +31 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.js +40 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.js +15 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.js +17 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts +6 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.js +18 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts +23 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema.js +107 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts +9 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.js +17 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts +29 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/type.js +87 -0
- package/script/dsl/ContentSettings.d.ts +19 -0
- package/script/dsl/ContentSettings.d.ts.map +1 -0
- package/script/dsl/ContentSettings.js +36 -0
- package/script/dsl/Definition.d.ts +19 -0
- package/script/dsl/Definition.d.ts.map +1 -0
- package/script/dsl/Definition.js +41 -0
- package/script/dsl/EntityType.d.ts +6 -0
- package/script/dsl/EntityType.d.ts.map +1 -0
- package/script/dsl/EntityType.js +22 -0
- package/script/dsl/File.d.ts +26 -0
- package/script/dsl/File.d.ts.map +1 -0
- package/script/dsl/File.js +101 -0
- package/script/dsl/GatewayBase.d.ts +13 -0
- package/script/dsl/GatewayBase.d.ts.map +1 -0
- package/script/dsl/GatewayBase.js +23 -0
- package/script/dsl/GeneratedValueList.d.ts +9 -0
- package/script/dsl/GeneratedValueList.d.ts.map +1 -0
- package/script/dsl/GeneratedValueList.js +31 -0
- package/script/dsl/Identifier.d.ts +11 -0
- package/script/dsl/Identifier.d.ts.map +1 -0
- package/script/dsl/Identifier.js +52 -0
- package/script/dsl/Import.d.ts +22 -0
- package/script/dsl/Import.d.ts.map +1 -0
- package/script/dsl/Import.js +60 -0
- package/script/dsl/Inserted.d.ts +18 -0
- package/script/dsl/Inserted.d.ts.map +1 -0
- package/script/dsl/Inserted.js +34 -0
- package/script/dsl/Stringable.d.ts +4 -0
- package/script/dsl/Stringable.d.ts.map +1 -0
- package/script/dsl/Stringable.js +2 -0
- package/script/dsl/ValueBase.d.ts +16 -0
- package/script/dsl/ValueBase.d.ts.map +1 -0
- package/script/dsl/ValueBase.js +46 -0
- package/script/dsl/constants.d.ts +2 -0
- package/script/dsl/constants.d.ts.map +1 -0
- package/script/dsl/constants.js +4 -0
- package/script/dsl/model/ModelBase.d.ts +23 -0
- package/script/dsl/model/ModelBase.d.ts.map +1 -0
- package/script/dsl/model/ModelBase.js +45 -0
- package/script/dsl/model/ModelDriver.d.ts +27 -0
- package/script/dsl/model/ModelDriver.d.ts.map +1 -0
- package/script/dsl/model/ModelDriver.js +105 -0
- package/script/dsl/model/ModelInsertable.d.ts +29 -0
- package/script/dsl/model/ModelInsertable.d.ts.map +1 -0
- package/script/dsl/model/ModelInsertable.js +2 -0
- package/script/dsl/model/toModelInsertable.d.ts +36 -0
- package/script/dsl/model/toModelInsertable.d.ts.map +1 -0
- package/script/dsl/model/toModelInsertable.js +75 -0
- package/script/dsl/operation/OperationBase.d.ts +36 -0
- package/script/dsl/operation/OperationBase.d.ts.map +1 -0
- package/script/dsl/operation/OperationBase.js +61 -0
- package/script/dsl/operation/OperationDriver.d.ts +27 -0
- package/script/dsl/operation/OperationDriver.d.ts.map +1 -0
- package/script/dsl/operation/OperationDriver.js +107 -0
- package/script/dsl/operation/OperationInsertable.d.ts +43 -0
- package/script/dsl/operation/OperationInsertable.d.ts.map +1 -0
- package/script/dsl/operation/OperationInsertable.js +2 -0
- package/script/dsl/operation/toOperationGateway.d.ts +29 -0
- package/script/dsl/operation/toOperationGateway.d.ts.map +1 -0
- package/script/dsl/operation/toOperationGateway.js +68 -0
- package/script/dsl/operation/toOperationInsertable.d.ts +44 -0
- package/script/dsl/operation/toOperationInsertable.d.ts.map +1 -0
- package/script/dsl/operation/toOperationInsertable.js +75 -0
- package/script/helpers/ResultsLog.d.ts +8 -0
- package/script/helpers/ResultsLog.d.ts.map +1 -0
- package/script/helpers/ResultsLog.js +50 -0
- package/script/helpers/isImported.d.ts +2 -0
- package/script/helpers/isImported.d.ts.map +1 -0
- package/script/helpers/isImported.js +8 -0
- package/script/helpers/naming.d.ts +9 -0
- package/script/helpers/naming.d.ts.map +1 -0
- package/script/helpers/naming.js +33 -0
- package/script/helpers/refFns.d.ts +8 -0
- package/script/helpers/refFns.d.ts.map +1 -0
- package/script/helpers/refFns.js +24 -0
- package/script/helpers/strings.d.ts +9 -0
- package/script/helpers/strings.d.ts.map +1 -0
- package/script/helpers/strings.js +25 -0
- package/script/helpers/toResolvedArtifactPath.d.ts +8 -0
- package/script/helpers/toResolvedArtifactPath.d.ts.map +1 -0
- package/script/helpers/toResolvedArtifactPath.js +9 -0
- package/script/helpers/tracer.d.ts +3 -0
- package/script/helpers/tracer.d.ts.map +1 -0
- package/script/helpers/tracer.js +10 -0
- package/script/mod.d.ts +75 -0
- package/script/mod.d.ts.map +1 -0
- package/script/mod.js +90 -0
- package/script/oas/array/Array.d.ts +58 -0
- package/script/oas/array/Array.d.ts.map +1 -0
- package/script/oas/array/Array.js +117 -0
- package/script/oas/array/array-types.d.ts +13 -0
- package/script/oas/array/array-types.d.ts.map +1 -0
- package/script/oas/array/array-types.js +20 -0
- package/script/oas/array/toArray.d.ts +10 -0
- package/script/oas/array/toArray.d.ts.map +1 -0
- package/script/oas/array/toArray.js +20 -0
- package/script/oas/boolean/Boolean.d.ts +48 -0
- package/script/oas/boolean/Boolean.d.ts.map +1 -0
- package/script/oas/boolean/Boolean.js +97 -0
- package/script/oas/boolean/boolean-types.d.ts +10 -0
- package/script/oas/boolean/boolean-types.d.ts.map +1 -0
- package/script/oas/boolean/boolean-types.js +11 -0
- package/script/oas/boolean/toBoolean.d.ts +10 -0
- package/script/oas/boolean/toBoolean.d.ts.map +1 -0
- package/script/oas/boolean/toBoolean.js +17 -0
- package/script/oas/components/Components.d.ts +43 -0
- package/script/oas/components/Components.d.ts.map +1 -0
- package/script/oas/components/Components.js +66 -0
- package/script/oas/components/toComponentsV3.d.ts +10 -0
- package/script/oas/components/toComponentsV3.d.ts.map +1 -0
- package/script/oas/components/toComponentsV3.js +37 -0
- package/script/oas/contact/Contact.d.ts +15 -0
- package/script/oas/contact/Contact.d.ts.map +1 -0
- package/script/oas/contact/Contact.js +42 -0
- package/script/oas/contact/toContactV3.d.ts +5 -0
- package/script/oas/contact/toContactV3.d.ts.map +1 -0
- package/script/oas/contact/toContactV3.js +19 -0
- package/script/oas/discriminator/Discriminator.d.ts +9 -0
- package/script/oas/discriminator/Discriminator.d.ts.map +1 -0
- package/script/oas/discriminator/Discriminator.js +21 -0
- package/script/oas/discriminator/discriminator-types.d.ts +8 -0
- package/script/oas/discriminator/discriminator-types.d.ts.map +1 -0
- package/script/oas/discriminator/discriminator-types.js +9 -0
- package/script/oas/discriminator/toDiscriminatorV3.d.ts +10 -0
- package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -0
- package/script/oas/discriminator/toDiscriminatorV3.js +16 -0
- package/script/oas/document/Document.d.ts +33 -0
- package/script/oas/document/Document.d.ts.map +1 -0
- package/script/oas/document/Document.js +77 -0
- package/script/oas/document/toDocumentFieldsV3.d.ts +10 -0
- package/script/oas/document/toDocumentFieldsV3.d.ts.map +1 -0
- package/script/oas/document/toDocumentFieldsV3.js +25 -0
- package/script/oas/example/Example.d.ts +28 -0
- package/script/oas/example/Example.d.ts.map +1 -0
- package/script/oas/example/Example.js +59 -0
- package/script/oas/example/example-types.d.ts +9 -0
- package/script/oas/example/example-types.d.ts.map +1 -0
- package/script/oas/example/example-types.js +12 -0
- package/script/oas/example/toExamplesV3.d.ts +22 -0
- package/script/oas/example/toExamplesV3.d.ts.map +1 -0
- package/script/oas/example/toExamplesV3.js +49 -0
- package/script/oas/header/Header.d.ts +45 -0
- package/script/oas/header/Header.d.ts.map +1 -0
- package/script/oas/header/Header.js +84 -0
- package/script/oas/header/toHeadersV3.d.ts +11 -0
- package/script/oas/header/toHeadersV3.d.ts.map +1 -0
- package/script/oas/header/toHeadersV3.js +41 -0
- package/script/oas/info/Info.d.ts +25 -0
- package/script/oas/info/Info.d.ts.map +1 -0
- package/script/oas/info/Info.js +51 -0
- package/script/oas/info/toInfoV3.d.ts +10 -0
- package/script/oas/info/toInfoV3.d.ts.map +1 -0
- package/script/oas/info/toInfoV3.js +24 -0
- package/script/oas/integer/Integer.d.ts +55 -0
- package/script/oas/integer/Integer.d.ts.map +1 -0
- package/script/oas/integer/Integer.js +116 -0
- package/script/oas/integer/integer-types.d.ts +13 -0
- package/script/oas/integer/integer-types.d.ts.map +1 -0
- package/script/oas/integer/integer-types.js +22 -0
- package/script/oas/integer/toInteger.d.ts +10 -0
- package/script/oas/integer/toInteger.d.ts.map +1 -0
- package/script/oas/integer/toInteger.js +20 -0
- package/script/oas/intersection/Intersection.d.ts +30 -0
- package/script/oas/intersection/Intersection.d.ts.map +1 -0
- package/script/oas/intersection/Intersection.js +87 -0
- package/script/oas/intersection/intersection-types.d.ts +14 -0
- package/script/oas/intersection/intersection-types.d.ts.map +1 -0
- package/script/oas/intersection/intersection-types.js +15 -0
- package/script/oas/intersection/toIntersection.d.ts +11 -0
- package/script/oas/intersection/toIntersection.d.ts.map +1 -0
- package/script/oas/intersection/toIntersection.js +20 -0
- package/script/oas/license/License.d.ts +13 -0
- package/script/oas/license/License.d.ts.map +1 -0
- package/script/oas/license/License.js +35 -0
- package/script/oas/license/toLicenseV3.d.ts +5 -0
- package/script/oas/license/toLicenseV3.d.ts.map +1 -0
- package/script/oas/license/toLicenseV3.js +18 -0
- package/script/oas/markdown/markdown-types.d.ts +3 -0
- package/script/oas/markdown/markdown-types.d.ts.map +1 -0
- package/script/oas/markdown/markdown-types.js +5 -0
- package/script/oas/mediaType/MediaType.d.ts +18 -0
- package/script/oas/mediaType/MediaType.d.ts.map +1 -0
- package/script/oas/mediaType/MediaType.js +42 -0
- package/script/oas/mediaType/mediaType-types.d.ts +12 -0
- package/script/oas/mediaType/mediaType-types.d.ts.map +1 -0
- package/script/oas/mediaType/mediaType-types.js +15 -0
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts +21 -0
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -0
- package/script/oas/mediaType/toMediaTypeItemV3.js +45 -0
- package/script/oas/null/null-types.d.ts +10 -0
- package/script/oas/null/null-types.d.ts.map +1 -0
- package/script/oas/null/null-types.js +11 -0
- package/script/oas/number/Number.d.ts +48 -0
- package/script/oas/number/Number.d.ts.map +1 -0
- package/script/oas/number/Number.js +97 -0
- package/script/oas/number/number-types.d.ts +10 -0
- package/script/oas/number/number-types.d.ts.map +1 -0
- package/script/oas/number/number-types.js +17 -0
- package/script/oas/number/toNumber.d.ts +10 -0
- package/script/oas/number/toNumber.d.ts.map +1 -0
- package/script/oas/number/toNumber.js +20 -0
- package/script/oas/object/Object.d.ts +92 -0
- package/script/oas/object/Object.d.ts.map +1 -0
- package/script/oas/object/Object.js +196 -0
- package/script/oas/object/object-types.d.ts +15 -0
- package/script/oas/object/object-types.d.ts.map +1 -0
- package/script/oas/object/object-types.js +30 -0
- package/script/oas/object/toAdditionalPropertiesV3.d.ts +11 -0
- package/script/oas/object/toAdditionalPropertiesV3.d.ts.map +1 -0
- package/script/oas/object/toAdditionalPropertiesV3.js +14 -0
- package/script/oas/object/toObject.d.ts +10 -0
- package/script/oas/object/toObject.d.ts.map +1 -0
- package/script/oas/object/toObject.js +29 -0
- package/script/oas/operation/Operation.d.ts +56 -0
- package/script/oas/operation/Operation.d.ts.map +1 -0
- package/script/oas/operation/Operation.js +134 -0
- package/script/oas/operation/toOperationsV3.d.ts +23 -0
- package/script/oas/operation/toOperationsV3.d.ts.map +1 -0
- package/script/oas/operation/toOperationsV3.js +84 -0
- package/script/oas/parameter/Parameter.d.ts +42 -0
- package/script/oas/parameter/Parameter.d.ts.map +1 -0
- package/script/oas/parameter/Parameter.js +126 -0
- package/script/oas/parameter/parameter-types.d.ts +26 -0
- package/script/oas/parameter/parameter-types.d.ts.map +1 -0
- package/script/oas/parameter/parameter-types.js +41 -0
- package/script/oas/parameter/toParameterV3.d.ts +21 -0
- package/script/oas/parameter/toParameterV3.d.ts.map +1 -0
- package/script/oas/parameter/toParameterV3.js +87 -0
- package/script/oas/pathItem/PathItem.d.ts +17 -0
- package/script/oas/pathItem/PathItem.d.ts.map +1 -0
- package/script/oas/pathItem/PathItem.js +42 -0
- package/script/oas/pathItem/toPathItemV3.d.ts +10 -0
- package/script/oas/pathItem/toPathItemV3.d.ts.map +1 -0
- package/script/oas/pathItem/toPathItemV3.js +16 -0
- package/script/oas/ref/Ref.d.ts +37 -0
- package/script/oas/ref/Ref.d.ts.map +1 -0
- package/script/oas/ref/Ref.js +106 -0
- package/script/oas/ref/ref-types.d.ts +52 -0
- package/script/oas/ref/ref-types.d.ts.map +1 -0
- package/script/oas/ref/ref-types.js +57 -0
- package/script/oas/ref/toRefV31.d.ts +12 -0
- package/script/oas/ref/toRefV31.d.ts.map +1 -0
- package/script/oas/ref/toRefV31.js +16 -0
- package/script/oas/requestBody/RequestBody.d.ts +22 -0
- package/script/oas/requestBody/RequestBody.d.ts.map +1 -0
- package/script/oas/requestBody/RequestBody.js +54 -0
- package/script/oas/requestBody/toRequestBodiesV3.d.ts +17 -0
- package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -0
- package/script/oas/requestBody/toRequestBodiesV3.js +43 -0
- package/script/oas/response/Response.d.ts +23 -0
- package/script/oas/response/Response.d.ts.map +1 -0
- package/script/oas/response/Response.js +54 -0
- package/script/oas/response/toResponseV3.d.ts +21 -0
- package/script/oas/response/toResponseV3.d.ts.map +1 -0
- package/script/oas/response/toResponseV3.js +40 -0
- package/script/oas/schema/Schema.d.ts +14 -0
- package/script/oas/schema/Schema.d.ts.map +1 -0
- package/script/oas/schema/Schema.js +2 -0
- package/script/oas/schema/schema-types.d.ts +14 -0
- package/script/oas/schema/schema-types.d.ts.map +1 -0
- package/script/oas/schema/schema-types.js +26 -0
- package/script/oas/schema/toSchemasV3.d.ts +28 -0
- package/script/oas/schema/toSchemasV3.d.ts.map +1 -0
- package/script/oas/schema/toSchemasV3.js +101 -0
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +12 -0
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -0
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.js +26 -0
- package/script/oas/string/String.d.ts +66 -0
- package/script/oas/string/String.d.ts.map +1 -0
- package/script/oas/string/String.js +142 -0
- package/script/oas/string/string-types.d.ts +18 -0
- package/script/oas/string/string-types.d.ts.map +1 -0
- package/script/oas/string/string-types.js +35 -0
- package/script/oas/string/toString.d.ts +10 -0
- package/script/oas/string/toString.d.ts.map +1 -0
- package/script/oas/string/toString.js +44 -0
- package/script/oas/tag/Tag.d.ts +15 -0
- package/script/oas/tag/Tag.d.ts.map +1 -0
- package/script/oas/tag/Tag.js +39 -0
- package/script/oas/tag/toTagsV3.d.ts +15 -0
- package/script/oas/tag/toTagsV3.d.ts.map +1 -0
- package/script/oas/tag/toTagsV3.js +26 -0
- package/script/oas/union/Union.d.ts +66 -0
- package/script/oas/union/Union.d.ts.map +1 -0
- package/script/oas/union/Union.js +122 -0
- package/script/oas/union/toUnion.d.ts +11 -0
- package/script/oas/union/toUnion.d.ts.map +1 -0
- package/script/oas/union/toUnion.js +24 -0
- package/script/oas/union/union-types.d.ts +14 -0
- package/script/oas/union/union-types.d.ts.map +1 -0
- package/script/oas/union/union-types.js +15 -0
- package/script/oas/unknown/Unknown.d.ts +45 -0
- package/script/oas/unknown/Unknown.d.ts.map +1 -0
- package/script/oas/unknown/Unknown.js +86 -0
- package/script/oas/unknown/toUnknown.d.ts +10 -0
- package/script/oas/unknown/toUnknown.d.ts.map +1 -0
- package/script/oas/unknown/toUnknown.js +19 -0
- package/script/oas/unknown/unknown-types.d.ts +10 -0
- package/script/oas/unknown/unknown-types.d.ts.map +1 -0
- package/script/oas/unknown/unknown-types.js +11 -0
- package/script/oas/void/Void.d.ts +35 -0
- package/script/oas/void/Void.d.ts.map +1 -0
- package/script/oas/void/Void.js +64 -0
- package/script/package.json +3 -0
- package/script/run/enrichSettings.d.ts +9 -0
- package/script/run/enrichSettings.d.ts.map +1 -0
- package/script/run/enrichSettings.js +13 -0
- package/script/run/handleEnrichment.d.ts +3 -0
- package/script/run/handleEnrichment.d.ts.map +1 -0
- package/script/run/handleEnrichment.js +71 -0
- package/script/run/toEnrichments.d.ts +13 -0
- package/script/run/toEnrichments.d.ts.map +1 -0
- package/script/run/toEnrichments.js +42 -0
- package/script/run/toSettings.d.ts +12 -0
- package/script/run/toSettings.d.ts.map +1 -0
- package/script/run/toSettings.js +78 -0
- package/script/run/transform.d.ts +20 -0
- package/script/run/transform.d.ts.map +1 -0
- package/script/run/transform.js +51 -0
- package/script/types/Brand.d.ts +7 -0
- package/script/types/Brand.d.ts.map +1 -0
- package/script/types/Brand.js +3 -0
- package/script/types/CustomValue.d.ts +22 -0
- package/script/types/CustomValue.d.ts.map +1 -0
- package/script/types/CustomValue.js +39 -0
- package/script/types/EnrichmentRequest.d.ts +8 -0
- package/script/types/EnrichmentRequest.d.ts.map +1 -0
- package/script/types/EnrichmentRequest.js +3 -0
- package/script/types/Extensions.d.ts +7 -0
- package/script/types/Extensions.d.ts.map +1 -0
- package/script/types/Extensions.js +6 -0
- package/script/types/GeneratedValue.d.ts +19 -0
- package/script/types/GeneratedValue.d.ts.map +1 -0
- package/script/types/GeneratedValue.js +2 -0
- package/script/types/GeneratorKeys.d.ts +50 -0
- package/script/types/GeneratorKeys.d.ts.map +1 -0
- package/script/types/GeneratorKeys.js +95 -0
- package/script/types/GeneratorType.d.ts +9 -0
- package/script/types/GeneratorType.d.ts.map +1 -0
- package/script/types/GeneratorType.js +2 -0
- package/script/types/Manifest.d.ts +121 -0
- package/script/types/Manifest.d.ts.map +1 -0
- package/script/types/Manifest.js +30 -0
- package/script/types/Method.d.ts +11 -0
- package/script/types/Method.d.ts.map +1 -0
- package/script/types/Method.js +39 -0
- package/script/types/Modifiers.d.ts +6 -0
- package/script/types/Modifiers.d.ts.map +1 -0
- package/script/types/Modifiers.js +2 -0
- package/script/types/RefName.d.ts +4 -0
- package/script/types/RefName.d.ts.map +1 -0
- package/script/types/RefName.js +3 -0
- package/script/types/Results.d.ts +10 -0
- package/script/types/Results.d.ts.map +1 -0
- package/script/types/Results.js +7 -0
- package/script/types/Settings.d.ts +306 -0
- package/script/types/Settings.d.ts.map +1 -0
- package/script/types/Settings.js +45 -0
- package/script/types/TypeSystem.d.ts +152 -0
- package/script/types/TypeSystem.d.ts.map +1 -0
- package/script/types/TypeSystem.js +2 -0
- package/script/types/prettierConfig.d.ts +27 -0
- package/script/types/prettierConfig.d.ts.map +1 -0
- package/script/types/prettierConfig.js +49 -0
- package/script/typescript/FunctionParameter.d.ts +34 -0
- package/script/typescript/FunctionParameter.d.ts.map +1 -0
- package/script/typescript/FunctionParameter.js +84 -0
- package/script/typescript/List.d.ts +147 -0
- package/script/typescript/List.d.ts.map +1 -0
- package/script/typescript/List.js +312 -0
- package/script/typescript/PathParams.d.ts +20 -0
- package/script/typescript/PathParams.d.ts.map +1 -0
- package/script/typescript/PathParams.js +53 -0
- package/script/typescript/ReactRouterPathParams.d.ts +20 -0
- package/script/typescript/ReactRouterPathParams.d.ts.map +1 -0
- package/script/typescript/ReactRouterPathParams.js +53 -0
- package/script/typescript/identifiers.d.ts +3 -0
- package/script/typescript/identifiers.d.ts.map +1 -0
- package/script/typescript/identifiers.js +12 -0
- package/script/typescript/keyValues.d.ts +3 -0
- package/script/typescript/keyValues.d.ts.map +1 -0
- package/script/typescript/keyValues.js +15 -0
- package/script/typescript/toPathTemplate.d.ts +2 -0
- package/script/typescript/toPathTemplate.d.ts.map +1 -0
- package/script/typescript/toPathTemplate.js +7 -0
- package/script/typescript/withDescription.d.ts +4 -0
- package/script/typescript/withDescription.d.ts.map +1 -0
- package/script/typescript/withDescription.js +7 -0
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FunctionParameter = void 0;
|
|
4
|
+
const helper_validator_identifier_1 = require("@babel/helper-validator-identifier");
|
|
5
|
+
const lodash_es_1 = require("lodash-es");
|
|
6
|
+
const ts_pattern_1 = require("ts-pattern");
|
|
7
|
+
const List_js_1 = require("./List.js");
|
|
8
|
+
class FunctionParameter {
|
|
9
|
+
constructor(args) {
|
|
10
|
+
Object.defineProperty(this, "properties", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: void 0
|
|
15
|
+
});
|
|
16
|
+
if (args.typeDefinition.value.type === 'object') {
|
|
17
|
+
this.properties = (0, ts_pattern_1.match)(args)
|
|
18
|
+
.with({ destructure: true, required: true }, ({ typeDefinition, required }) => ({
|
|
19
|
+
type: 'destructured',
|
|
20
|
+
typeDefinition: typeDefinition,
|
|
21
|
+
required
|
|
22
|
+
}))
|
|
23
|
+
.with({ name: ts_pattern_1.P.string }, ({ typeDefinition, name, required }) => ({
|
|
24
|
+
type: 'regular',
|
|
25
|
+
name,
|
|
26
|
+
typeDefinition: typeDefinition,
|
|
27
|
+
required: required ?? false
|
|
28
|
+
}))
|
|
29
|
+
.otherwise(() => {
|
|
30
|
+
throw new Error('Invalid FunctionParameter');
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
this.properties = { type: 'void' };
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
hasProperty(name) {
|
|
38
|
+
return (0, ts_pattern_1.match)(this.properties)
|
|
39
|
+
.with({ type: 'void' }, () => false)
|
|
40
|
+
.with({ type: 'regular' }, ({ typeDefinition }) => {
|
|
41
|
+
const { value } = typeDefinition;
|
|
42
|
+
return Boolean(value.type === 'object' && value.objectProperties?.properties[name]);
|
|
43
|
+
})
|
|
44
|
+
.with({ type: 'destructured' }, ({ typeDefinition }) => {
|
|
45
|
+
return Boolean(typeDefinition.value.objectProperties?.properties[name]);
|
|
46
|
+
})
|
|
47
|
+
.exhaustive();
|
|
48
|
+
}
|
|
49
|
+
toPropertyList() {
|
|
50
|
+
return (0, ts_pattern_1.match)(this.properties)
|
|
51
|
+
.with({ type: 'void' }, () => List_js_1.List.toEmpty())
|
|
52
|
+
.with({ type: 'regular' }, ({ name }) => List_js_1.List.toSingle(name))
|
|
53
|
+
.with({ type: 'destructured' }, ({ typeDefinition }) => {
|
|
54
|
+
return List_js_1.List.fromKeys(typeDefinition.value.objectProperties?.properties).toObjectPlain();
|
|
55
|
+
})
|
|
56
|
+
.exhaustive();
|
|
57
|
+
}
|
|
58
|
+
toInbound() {
|
|
59
|
+
return (0, ts_pattern_1.match)(this.properties)
|
|
60
|
+
.with({ type: 'void' }, () => '')
|
|
61
|
+
.with({ type: 'regular' }, ({ name }) => `${name}`)
|
|
62
|
+
.with({ type: 'destructured' }, ({ typeDefinition }) => {
|
|
63
|
+
return toDestructured(typeDefinition).toString();
|
|
64
|
+
})
|
|
65
|
+
.exhaustive();
|
|
66
|
+
}
|
|
67
|
+
toString() {
|
|
68
|
+
return (0, ts_pattern_1.match)(this.properties)
|
|
69
|
+
.with({ type: 'void' }, () => '')
|
|
70
|
+
.with({ type: 'regular' }, ({ name, typeDefinition, required }) => {
|
|
71
|
+
return `${name}${required ? '' : '?'}: ${typeDefinition.identifier}`;
|
|
72
|
+
})
|
|
73
|
+
.with({ type: 'destructured' }, ({ typeDefinition }) => {
|
|
74
|
+
return List_js_1.List.toKeyValue(toDestructured(typeDefinition).toString(), typeDefinition.identifier).toString();
|
|
75
|
+
})
|
|
76
|
+
.exhaustive();
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.FunctionParameter = FunctionParameter;
|
|
80
|
+
const toDestructured = (typeDefinition) => {
|
|
81
|
+
return List_js_1.List.fromKeys(typeDefinition.value.objectProperties?.properties).toObject(key => {
|
|
82
|
+
return (0, helper_validator_identifier_1.isIdentifierName)(key) ? key : List_js_1.List.toKeyValue(key, (0, lodash_es_1.camelCase)(key));
|
|
83
|
+
});
|
|
84
|
+
};
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import type { Stringable } from '../dsl/Stringable.js';
|
|
2
|
+
export type ListObject<V extends Stringable> = List<V[], ', ', '{}'>;
|
|
3
|
+
export type ListLines<V extends Stringable> = List<V[], '\n', 'none'>;
|
|
4
|
+
export type ListArray<V extends Stringable> = List<V[], ', ', '[]'>;
|
|
5
|
+
export type ListParams<V extends Stringable> = List<V[], ', ', '()'>;
|
|
6
|
+
export type ListKeyValue<Key extends Stringable, Value extends Stringable> = List<[
|
|
7
|
+
Key,
|
|
8
|
+
Value
|
|
9
|
+
], ': ', 'none'>;
|
|
10
|
+
type BookendsType = '[]' | '{}' | '()' | '<>' | 'none';
|
|
11
|
+
type ConstructorOptions<Separator extends string = ', ', Bookends extends BookendsType = 'none'> = {
|
|
12
|
+
separator?: Separator;
|
|
13
|
+
bookends?: Bookends;
|
|
14
|
+
};
|
|
15
|
+
type ExtractArrayItem<ArrayOf> = ArrayOf extends Array<infer Item> ? Item : never;
|
|
16
|
+
type ToFilteredKeyValueReturn<Value extends undefined | Stringable | Stringable[] | List> = Value extends undefined ? undefined : List<[string, Stringable | Stringable[] | List], ': ', 'none'>;
|
|
17
|
+
type ToConditionalReturn<Value extends Stringable, Condition extends boolean> = Condition extends true ? List<[Value], ', ', 'none'> : List<never[], ', ', 'none'>;
|
|
18
|
+
export declare class List<Values extends Stringable[] = Stringable[], Separator extends string = string, Bookends extends BookendsType = BookendsType> {
|
|
19
|
+
values: ExtractArrayItem<Values>[];
|
|
20
|
+
separator: Separator;
|
|
21
|
+
bookends: Bookends;
|
|
22
|
+
constructor(values: (ExtractArrayItem<Values> | undefined)[], { separator, bookends }?: ConstructorOptions<Separator, Bookends>);
|
|
23
|
+
toString(): string;
|
|
24
|
+
/**
|
|
25
|
+
* Create an empty List that will render as an empty string ''
|
|
26
|
+
* @returns List
|
|
27
|
+
*/
|
|
28
|
+
static toEmpty: () => List<never, ", ", "none">;
|
|
29
|
+
/**
|
|
30
|
+
* Create a List with a single value that will render as `value`
|
|
31
|
+
* @param value
|
|
32
|
+
* @returns List
|
|
33
|
+
*/
|
|
34
|
+
static toSingle: (value: Stringable) => List<[Stringable], ", ", "none">;
|
|
35
|
+
/**
|
|
36
|
+
* If condition is true, return a List with a single value that will render as `value`.
|
|
37
|
+
* Otherwise, return an empty List that will render as an empty string ''.
|
|
38
|
+
*
|
|
39
|
+
* Useful for conditional rendering. For example, rendering a function arg object when
|
|
40
|
+
* it has at least one property.
|
|
41
|
+
* @param value
|
|
42
|
+
* @param condition
|
|
43
|
+
* @returns List
|
|
44
|
+
*/
|
|
45
|
+
static toConditional: <Value extends Stringable, Condition extends boolean>(value: Value, condition: Condition) => ToConditionalReturn<List<[Value], ", ", "none">, Condition>;
|
|
46
|
+
/**
|
|
47
|
+
* Create a record with Stringable values. KeyValue pairs will be joined with `: ` as separator
|
|
48
|
+
* and the resulting List will be wrapped with `{}`
|
|
49
|
+
* @param record
|
|
50
|
+
* @returns `record` with `Stringable` values
|
|
51
|
+
*/
|
|
52
|
+
static toRecord: (record: Record<string, Stringable | Stringable[] | List>) => List<Stringable[], ", ", "{}">;
|
|
53
|
+
/**
|
|
54
|
+
* Create a record with `undefined` or empty array or List values filtered out.
|
|
55
|
+
* @param record
|
|
56
|
+
* @returns `record` with `undefined` values filtered out
|
|
57
|
+
*/
|
|
58
|
+
static toFilteredRecord: (record: Record<string, undefined | Stringable | Stringable[] | List>) => ListObject<List<[string, Stringable | List<Stringable[], string, BookendsType> | Stringable[]], ": ", "none">>;
|
|
59
|
+
/**
|
|
60
|
+
* Join `key` and `value` using `: ` as separator
|
|
61
|
+
* @param key
|
|
62
|
+
* @param value
|
|
63
|
+
* @returns `key` and `value` joined with `: ` as separator
|
|
64
|
+
*/
|
|
65
|
+
static toKeyValue: <Value extends Stringable | Stringable[] | List>(key: string, value: Value) => List<[string, Value], ": ", "none">;
|
|
66
|
+
/**
|
|
67
|
+
* Join `key` and `value` using `.` as separator
|
|
68
|
+
* @param key
|
|
69
|
+
* @param value
|
|
70
|
+
* @returns `key` and `value` joined with `.` as separator
|
|
71
|
+
*/
|
|
72
|
+
static toObjectKey: <Value extends Stringable>(key: string, value: Value) => List<[string, Value], ".", "none">;
|
|
73
|
+
/**
|
|
74
|
+
* Join `values` using `, ` as separator and wrap in `{` and `}`
|
|
75
|
+
* @param values
|
|
76
|
+
* @returns `values` joined with `, ` as separator and wrapped in `{` and `}`
|
|
77
|
+
*/
|
|
78
|
+
static toObject: <V extends Stringable>(values: (V | undefined)[]) => ListObject<V>;
|
|
79
|
+
/**
|
|
80
|
+
* Join `values` using `, ` as separator and wrap in `[` and `]`
|
|
81
|
+
* @param values
|
|
82
|
+
* @returns `values` joined with `, ` as separator and wrapped in `{` and `}`
|
|
83
|
+
*/
|
|
84
|
+
static toArray: <V extends Stringable>(values: (V | undefined)[]) => ListArray<V>;
|
|
85
|
+
/**
|
|
86
|
+
* Join `values` using `, ` as separator and wrap in `(` and `)`
|
|
87
|
+
* @param values
|
|
88
|
+
* @returns `values` joined with `, ` as separator and wrapped in `(` and `)`
|
|
89
|
+
*/
|
|
90
|
+
static toParams: <V extends Stringable>(values: (V | undefined)[]) => ListParams<V>;
|
|
91
|
+
/**
|
|
92
|
+
* Join `values` using `\n` as separator without a wrapper
|
|
93
|
+
* @param values
|
|
94
|
+
* @returns `values` joined with `\n` as separator without a wrapper
|
|
95
|
+
*/
|
|
96
|
+
static toLines: <V extends Stringable>(values: (V | undefined)[]) => ListLines<V>;
|
|
97
|
+
/**
|
|
98
|
+
* Create a KeyList using the keys of @param record
|
|
99
|
+
* @afdafg
|
|
100
|
+
* @param record
|
|
101
|
+
* @returns KeyList
|
|
102
|
+
*/
|
|
103
|
+
static fromKeys: (record: Record<string, Stringable> | undefined) => KeyList;
|
|
104
|
+
/**
|
|
105
|
+
* Create a EntryList using the entries of @param record
|
|
106
|
+
* @afdafg
|
|
107
|
+
* @param record
|
|
108
|
+
* @returns EntryList
|
|
109
|
+
*/
|
|
110
|
+
static fromEntries: <T extends Stringable>(record: Record<string, T> | undefined) => EntryList<T>;
|
|
111
|
+
/**
|
|
112
|
+
* Create a keyValue pair if `value` is not undefined and is not an empty array or List.
|
|
113
|
+
* Return `undefined` otherwise.
|
|
114
|
+
*
|
|
115
|
+
* Useful for filtering out `undefined values from a record.
|
|
116
|
+
* @param key
|
|
117
|
+
* @param value
|
|
118
|
+
* @returns `key` and `value` joined with `: ` as separator if `value` is not undefined and is not an empty array or List. `undefined` otherwise.
|
|
119
|
+
*/
|
|
120
|
+
static toFilteredKeyValue: <Value extends undefined | Stringable | Stringable[] | List>(key: string, value: Value) => ToFilteredKeyValueReturn<Value>;
|
|
121
|
+
/**
|
|
122
|
+
* Check if `value` is not undefined and is not an empty array or List.
|
|
123
|
+
* @param value
|
|
124
|
+
* @returns `true` if `value` is not undefined and is not an empty array or List. `false` otherwise.
|
|
125
|
+
*/
|
|
126
|
+
static hasValue: (value: undefined | Stringable | Stringable[] | List) => value is Stringable | Stringable[] | List;
|
|
127
|
+
}
|
|
128
|
+
type KeyMapFn<V extends Stringable> = (key: string, index: number) => V;
|
|
129
|
+
export declare class KeyList {
|
|
130
|
+
keys: string[];
|
|
131
|
+
constructor(keys: string[]);
|
|
132
|
+
toObject<V extends Stringable>(mapFn: KeyMapFn<V>): ListObject<V>;
|
|
133
|
+
toObjectPlain(): ListObject<string>;
|
|
134
|
+
toLines<V extends Stringable>(mapFn: KeyMapFn<V>): ListLines<V>;
|
|
135
|
+
toLinesPlain(): ListLines<string>;
|
|
136
|
+
}
|
|
137
|
+
type Entry<T extends Stringable> = [key: string, value: T];
|
|
138
|
+
type EntryMapFn<T extends Stringable, V extends Stringable> = (entry: Entry<T>, index: number) => V | undefined;
|
|
139
|
+
export declare class EntryList<T extends Stringable> {
|
|
140
|
+
entries: Entry<T>[];
|
|
141
|
+
constructor(entries: Entry<T>[]);
|
|
142
|
+
toObject<V extends Stringable>(mapFn: EntryMapFn<T, V>): ListObject<V>;
|
|
143
|
+
toLines<V extends Stringable>(mapFn: EntryMapFn<T, V>): ListLines<V>;
|
|
144
|
+
toArray<V extends Stringable>(mapFn: EntryMapFn<T, V>): ListArray<V>;
|
|
145
|
+
}
|
|
146
|
+
export {};
|
|
147
|
+
//# sourceMappingURL=List.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"List.d.ts","sourceRoot":"","sources":["../../src/typescript/List.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EntryList = exports.KeyList = exports.List = void 0;
|
|
4
|
+
const ts_pattern_1 = require("ts-pattern");
|
|
5
|
+
class List {
|
|
6
|
+
constructor(values, { separator, bookends } = {}) {
|
|
7
|
+
Object.defineProperty(this, "values", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
configurable: true,
|
|
10
|
+
writable: true,
|
|
11
|
+
value: void 0
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(this, "separator", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: void 0
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(this, "bookends", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
value: void 0
|
|
24
|
+
});
|
|
25
|
+
this.values = values.filter(value => value !== undefined);
|
|
26
|
+
this.separator = separator ?? ', ';
|
|
27
|
+
this.bookends = bookends ?? 'none';
|
|
28
|
+
}
|
|
29
|
+
toString() {
|
|
30
|
+
const joined = this.values.join(this.separator);
|
|
31
|
+
return (0, ts_pattern_1.match)(this.bookends)
|
|
32
|
+
.with('[]', () => `[${joined}]`)
|
|
33
|
+
.with('{}', () => `{${joined}}`)
|
|
34
|
+
.with('()', () => `(${joined})`)
|
|
35
|
+
.with('<>', () => `<${joined}>`)
|
|
36
|
+
.with('none', () => joined)
|
|
37
|
+
.exhaustive();
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.List = List;
|
|
41
|
+
/**
|
|
42
|
+
* Create an empty List that will render as an empty string ''
|
|
43
|
+
* @returns List
|
|
44
|
+
*/
|
|
45
|
+
Object.defineProperty(List, "toEmpty", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
configurable: true,
|
|
48
|
+
writable: true,
|
|
49
|
+
value: () => {
|
|
50
|
+
return new List([], { bookends: 'none' });
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* Create a List with a single value that will render as `value`
|
|
55
|
+
* @param value
|
|
56
|
+
* @returns List
|
|
57
|
+
*/
|
|
58
|
+
Object.defineProperty(List, "toSingle", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
writable: true,
|
|
62
|
+
value: (value) => {
|
|
63
|
+
return new List([value], { bookends: 'none' });
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
/**
|
|
67
|
+
* If condition is true, return a List with a single value that will render as `value`.
|
|
68
|
+
* Otherwise, return an empty List that will render as an empty string ''.
|
|
69
|
+
*
|
|
70
|
+
* Useful for conditional rendering. For example, rendering a function arg object when
|
|
71
|
+
* it has at least one property.
|
|
72
|
+
* @param value
|
|
73
|
+
* @param condition
|
|
74
|
+
* @returns List
|
|
75
|
+
*/
|
|
76
|
+
Object.defineProperty(List, "toConditional", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
configurable: true,
|
|
79
|
+
writable: true,
|
|
80
|
+
value: (value, condition) => {
|
|
81
|
+
const out = new List([condition ? value : undefined], { bookends: 'none' });
|
|
82
|
+
return out;
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
/**
|
|
86
|
+
* Create a record with Stringable values. KeyValue pairs will be joined with `: ` as separator
|
|
87
|
+
* and the resulting List will be wrapped with `{}`
|
|
88
|
+
* @param record
|
|
89
|
+
* @returns `record` with `Stringable` values
|
|
90
|
+
*/
|
|
91
|
+
Object.defineProperty(List, "toRecord", {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
configurable: true,
|
|
94
|
+
writable: true,
|
|
95
|
+
value: (record) => {
|
|
96
|
+
const entries = Object.entries(record).map(([key, value]) => {
|
|
97
|
+
return List.toKeyValue(key, value);
|
|
98
|
+
});
|
|
99
|
+
return List.toObject(entries);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
/**
|
|
103
|
+
* Create a record with `undefined` or empty array or List values filtered out.
|
|
104
|
+
* @param record
|
|
105
|
+
* @returns `record` with `undefined` values filtered out
|
|
106
|
+
*/
|
|
107
|
+
Object.defineProperty(List, "toFilteredRecord", {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
configurable: true,
|
|
110
|
+
writable: true,
|
|
111
|
+
value: (record) => {
|
|
112
|
+
const entries = Object.entries(record).map(([key, value]) => {
|
|
113
|
+
return List.toFilteredKeyValue(key, value);
|
|
114
|
+
});
|
|
115
|
+
return List.toObject(entries);
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
/**
|
|
119
|
+
* Join `key` and `value` using `: ` as separator
|
|
120
|
+
* @param key
|
|
121
|
+
* @param value
|
|
122
|
+
* @returns `key` and `value` joined with `: ` as separator
|
|
123
|
+
*/
|
|
124
|
+
Object.defineProperty(List, "toKeyValue", {
|
|
125
|
+
enumerable: true,
|
|
126
|
+
configurable: true,
|
|
127
|
+
writable: true,
|
|
128
|
+
value: (key, value) => {
|
|
129
|
+
return new List([key, value], { separator: ': ' });
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
/**
|
|
133
|
+
* Join `key` and `value` using `.` as separator
|
|
134
|
+
* @param key
|
|
135
|
+
* @param value
|
|
136
|
+
* @returns `key` and `value` joined with `.` as separator
|
|
137
|
+
*/
|
|
138
|
+
Object.defineProperty(List, "toObjectKey", {
|
|
139
|
+
enumerable: true,
|
|
140
|
+
configurable: true,
|
|
141
|
+
writable: true,
|
|
142
|
+
value: (key, value) => {
|
|
143
|
+
return new List([key, value], {
|
|
144
|
+
separator: '.'
|
|
145
|
+
});
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
/**
|
|
149
|
+
* Join `values` using `, ` as separator and wrap in `{` and `}`
|
|
150
|
+
* @param values
|
|
151
|
+
* @returns `values` joined with `, ` as separator and wrapped in `{` and `}`
|
|
152
|
+
*/
|
|
153
|
+
Object.defineProperty(List, "toObject", {
|
|
154
|
+
enumerable: true,
|
|
155
|
+
configurable: true,
|
|
156
|
+
writable: true,
|
|
157
|
+
value: (values) => {
|
|
158
|
+
return new List(values, { bookends: '{}' });
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
/**
|
|
162
|
+
* Join `values` using `, ` as separator and wrap in `[` and `]`
|
|
163
|
+
* @param values
|
|
164
|
+
* @returns `values` joined with `, ` as separator and wrapped in `{` and `}`
|
|
165
|
+
*/
|
|
166
|
+
Object.defineProperty(List, "toArray", {
|
|
167
|
+
enumerable: true,
|
|
168
|
+
configurable: true,
|
|
169
|
+
writable: true,
|
|
170
|
+
value: (values) => {
|
|
171
|
+
return new List(values, { bookends: '[]' });
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
/**
|
|
175
|
+
* Join `values` using `, ` as separator and wrap in `(` and `)`
|
|
176
|
+
* @param values
|
|
177
|
+
* @returns `values` joined with `, ` as separator and wrapped in `(` and `)`
|
|
178
|
+
*/
|
|
179
|
+
Object.defineProperty(List, "toParams", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
configurable: true,
|
|
182
|
+
writable: true,
|
|
183
|
+
value: (values) => {
|
|
184
|
+
return new List(values, { bookends: '()' });
|
|
185
|
+
}
|
|
186
|
+
});
|
|
187
|
+
/**
|
|
188
|
+
* Join `values` using `\n` as separator without a wrapper
|
|
189
|
+
* @param values
|
|
190
|
+
* @returns `values` joined with `\n` as separator without a wrapper
|
|
191
|
+
*/
|
|
192
|
+
Object.defineProperty(List, "toLines", {
|
|
193
|
+
enumerable: true,
|
|
194
|
+
configurable: true,
|
|
195
|
+
writable: true,
|
|
196
|
+
value: (values) => {
|
|
197
|
+
return new List(values, { separator: '\n' });
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
/**
|
|
201
|
+
* Create a KeyList using the keys of @param record
|
|
202
|
+
* @afdafg
|
|
203
|
+
* @param record
|
|
204
|
+
* @returns KeyList
|
|
205
|
+
*/
|
|
206
|
+
Object.defineProperty(List, "fromKeys", {
|
|
207
|
+
enumerable: true,
|
|
208
|
+
configurable: true,
|
|
209
|
+
writable: true,
|
|
210
|
+
value: (record) => {
|
|
211
|
+
return new KeyList(Object.keys(record ?? {}));
|
|
212
|
+
}
|
|
213
|
+
});
|
|
214
|
+
/**
|
|
215
|
+
* Create a EntryList using the entries of @param record
|
|
216
|
+
* @afdafg
|
|
217
|
+
* @param record
|
|
218
|
+
* @returns EntryList
|
|
219
|
+
*/
|
|
220
|
+
Object.defineProperty(List, "fromEntries", {
|
|
221
|
+
enumerable: true,
|
|
222
|
+
configurable: true,
|
|
223
|
+
writable: true,
|
|
224
|
+
value: (record) => {
|
|
225
|
+
return new EntryList(Object.entries(record ?? {}));
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
/**
|
|
229
|
+
* Create a keyValue pair if `value` is not undefined and is not an empty array or List.
|
|
230
|
+
* Return `undefined` otherwise.
|
|
231
|
+
*
|
|
232
|
+
* Useful for filtering out `undefined values from a record.
|
|
233
|
+
* @param key
|
|
234
|
+
* @param value
|
|
235
|
+
* @returns `key` and `value` joined with `: ` as separator if `value` is not undefined and is not an empty array or List. `undefined` otherwise.
|
|
236
|
+
*/
|
|
237
|
+
Object.defineProperty(List, "toFilteredKeyValue", {
|
|
238
|
+
enumerable: true,
|
|
239
|
+
configurable: true,
|
|
240
|
+
writable: true,
|
|
241
|
+
value: (key, value) => {
|
|
242
|
+
const out = List.hasValue(value) ? List.toKeyValue(key, value) : undefined;
|
|
243
|
+
return out;
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
/**
|
|
247
|
+
* Check if `value` is not undefined and is not an empty array or List.
|
|
248
|
+
* @param value
|
|
249
|
+
* @returns `true` if `value` is not undefined and is not an empty array or List. `false` otherwise.
|
|
250
|
+
*/
|
|
251
|
+
Object.defineProperty(List, "hasValue", {
|
|
252
|
+
enumerable: true,
|
|
253
|
+
configurable: true,
|
|
254
|
+
writable: true,
|
|
255
|
+
value: (value) => {
|
|
256
|
+
if (value === undefined) {
|
|
257
|
+
return false;
|
|
258
|
+
}
|
|
259
|
+
if (Array.isArray(value)) {
|
|
260
|
+
return value.length > 0;
|
|
261
|
+
}
|
|
262
|
+
if (value instanceof List) {
|
|
263
|
+
return List.hasValue(value.values);
|
|
264
|
+
}
|
|
265
|
+
return true;
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
class KeyList {
|
|
269
|
+
constructor(keys) {
|
|
270
|
+
Object.defineProperty(this, "keys", {
|
|
271
|
+
enumerable: true,
|
|
272
|
+
configurable: true,
|
|
273
|
+
writable: true,
|
|
274
|
+
value: void 0
|
|
275
|
+
});
|
|
276
|
+
this.keys = keys;
|
|
277
|
+
}
|
|
278
|
+
toObject(mapFn) {
|
|
279
|
+
return List.toObject(this.keys.map((key, index) => mapFn(key, index)));
|
|
280
|
+
}
|
|
281
|
+
toObjectPlain() {
|
|
282
|
+
return List.toObject(this.keys);
|
|
283
|
+
}
|
|
284
|
+
toLines(mapFn) {
|
|
285
|
+
return List.toLines(this.keys.map((key, index) => mapFn(key, index)));
|
|
286
|
+
}
|
|
287
|
+
toLinesPlain() {
|
|
288
|
+
return List.toLines(this.keys);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
exports.KeyList = KeyList;
|
|
292
|
+
class EntryList {
|
|
293
|
+
constructor(entries) {
|
|
294
|
+
Object.defineProperty(this, "entries", {
|
|
295
|
+
enumerable: true,
|
|
296
|
+
configurable: true,
|
|
297
|
+
writable: true,
|
|
298
|
+
value: void 0
|
|
299
|
+
});
|
|
300
|
+
this.entries = entries;
|
|
301
|
+
}
|
|
302
|
+
toObject(mapFn) {
|
|
303
|
+
return List.toObject(this.entries.map((entry, index) => mapFn(entry, index)));
|
|
304
|
+
}
|
|
305
|
+
toLines(mapFn) {
|
|
306
|
+
return List.toLines(this.entries.map((key, index) => mapFn(key, index)));
|
|
307
|
+
}
|
|
308
|
+
toArray(mapFn) {
|
|
309
|
+
return List.toArray(this.entries.map((entry, index) => mapFn(entry, index)));
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
exports.EntryList = EntryList;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { GenerateContext } from '../context/GenerateContext.js';
|
|
2
|
+
import { Definition } from '../dsl/Definition.js';
|
|
3
|
+
import type { TypeSystemObject } from '../types/TypeSystem.js';
|
|
4
|
+
import { FunctionParameter } from './FunctionParameter.js';
|
|
5
|
+
type ConstructorArgs = {
|
|
6
|
+
context: GenerateContext;
|
|
7
|
+
argName?: string;
|
|
8
|
+
typeName: string;
|
|
9
|
+
typeValue: TypeSystemObject;
|
|
10
|
+
pathTemplate: string;
|
|
11
|
+
};
|
|
12
|
+
export declare class PathParams {
|
|
13
|
+
context: GenerateContext;
|
|
14
|
+
typeDefinition: Definition<TypeSystemObject>;
|
|
15
|
+
parameter: FunctionParameter;
|
|
16
|
+
path: string;
|
|
17
|
+
constructor({ context, argName, typeName, typeValue, pathTemplate }: ConstructorArgs);
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=PathParams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PathParams.d.ts","sourceRoot":"","sources":["../../src/typescript/PathParams.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAG1D,KAAK,eAAe,GAAG;IACrB,OAAO,EAAE,eAAe,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,gBAAgB,CAAA;IAC3B,YAAY,EAAE,MAAM,CAAA;CACrB,CAAA;AAED,qBAAa,UAAU;IACrB,OAAO,EAAE,eAAe,CAAA;IACxB,cAAc,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAA;IAC5C,SAAS,EAAE,iBAAiB,CAAA;IAC5B,IAAI,EAAE,MAAM,CAAA;gBAEA,EACV,OAAO,EACP,OAAO,EACP,QAAQ,EACR,SAAS,EACT,YAAY,EACb,EAAE,eAAe;CAwBnB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PathParams = void 0;
|
|
4
|
+
const Definition_js_1 = require("../dsl/Definition.js");
|
|
5
|
+
const Identifier_js_1 = require("../dsl/Identifier.js");
|
|
6
|
+
const FunctionParameter_js_1 = require("./FunctionParameter.js");
|
|
7
|
+
const toPathTemplate_js_1 = require("./toPathTemplate.js");
|
|
8
|
+
class PathParams {
|
|
9
|
+
constructor({ context, argName, typeName, typeValue, pathTemplate }) {
|
|
10
|
+
Object.defineProperty(this, "context", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: void 0
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(this, "typeDefinition", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
configurable: true,
|
|
19
|
+
writable: true,
|
|
20
|
+
value: void 0
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(this, "parameter", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true,
|
|
26
|
+
value: void 0
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(this, "path", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
value: void 0
|
|
33
|
+
});
|
|
34
|
+
this.context = context;
|
|
35
|
+
this.typeDefinition = new Definition_js_1.Definition({
|
|
36
|
+
context,
|
|
37
|
+
identifier: Identifier_js_1.Identifier.createType(typeName),
|
|
38
|
+
value: typeValue
|
|
39
|
+
});
|
|
40
|
+
this.parameter = new FunctionParameter_js_1.FunctionParameter({
|
|
41
|
+
name: argName,
|
|
42
|
+
typeDefinition: this.typeDefinition,
|
|
43
|
+
destructure: !argName,
|
|
44
|
+
required: true
|
|
45
|
+
});
|
|
46
|
+
const queryArg = this.parameter.properties.type === 'regular'
|
|
47
|
+
? this.parameter.properties.name
|
|
48
|
+
: undefined;
|
|
49
|
+
// @TODO Reconcile pathTemplate with params
|
|
50
|
+
this.path = (0, toPathTemplate_js_1.toPathTemplate)(pathTemplate, queryArg);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.PathParams = PathParams;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ValueBase } from '../dsl/ValueBase.js';
|
|
2
|
+
import type { GenerateContext } from '../context/GenerateContext.js';
|
|
3
|
+
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
4
|
+
import type { GeneratorKey } from '../types/GeneratorKeys.js';
|
|
5
|
+
type CreateArgs = {
|
|
6
|
+
context: GenerateContext;
|
|
7
|
+
generatorKey: GeneratorKey;
|
|
8
|
+
operation: OasOperation;
|
|
9
|
+
destinationPath: string;
|
|
10
|
+
};
|
|
11
|
+
export declare class ReactRouterPathParams extends ValueBase {
|
|
12
|
+
getParams: string;
|
|
13
|
+
assertParams: string;
|
|
14
|
+
passProps: string;
|
|
15
|
+
names: string[];
|
|
16
|
+
constructor({ context, operation, generatorKey, destinationPath }: CreateArgs);
|
|
17
|
+
toString(): string;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=ReactRouterPathParams.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReactRouterPathParams.d.ts","sourceRoot":"","sources":["../../src/typescript/ReactRouterPathParams.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAA;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAE7D,KAAK,UAAU,GAAG;IAChB,OAAO,EAAE,eAAe,CAAA;IACxB,YAAY,EAAE,YAAY,CAAA;IAC1B,SAAS,EAAE,YAAY,CAAA;IACvB,eAAe,EAAE,MAAM,CAAA;CACxB,CAAA;AAED,qBAAa,qBAAsB,SAAQ,SAAS;IAClD,SAAS,EAAE,MAAM,CAAK;IAEtB,YAAY,EAAE,MAAM,CAAK;IAEzB,SAAS,EAAE,MAAM,CAAK;IAEtB,KAAK,EAAE,MAAM,EAAE,CAAA;gBAEH,EAAE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,eAAe,EAAE,EAAE,UAAU;IAwBpE,QAAQ,IAAI,MAAM;CAG5B"}
|