@skmtc/core 0.0.491 → 0.0.493
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/GenerateContext.d.ts +6 -6
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +6 -3
- package/esm/dsl/ContentSettings.d.ts +6 -4
- package/esm/dsl/ContentSettings.d.ts.map +1 -1
- package/esm/dsl/ContentSettings.js +10 -2
- package/esm/dsl/GatewayBase.d.ts +5 -5
- package/esm/dsl/GatewayBase.d.ts.map +1 -1
- package/esm/dsl/Inserted.d.ts +5 -5
- package/esm/dsl/Inserted.d.ts.map +1 -1
- package/esm/dsl/model/ModelBase.d.ts +6 -6
- package/esm/dsl/model/ModelBase.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.d.ts +1 -1
- package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
- package/esm/dsl/model/ModelInsertable.d.ts +4 -3
- package/esm/dsl/model/ModelInsertable.d.ts.map +1 -1
- package/esm/dsl/model/toModelInsertable.d.ts +7 -5
- package/esm/dsl/model/toModelInsertable.d.ts.map +1 -1
- package/esm/dsl/model/toModelInsertable.js +6 -0
- package/esm/dsl/operation/OperationBase.d.ts +7 -7
- package/esm/dsl/operation/OperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/OperationDriver.d.ts +1 -1
- package/esm/dsl/operation/OperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/OperationInsertable.d.ts +8 -6
- package/esm/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationGateway.d.ts +4 -2
- package/esm/dsl/operation/toOperationGateway.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationGateway.js +6 -0
- package/esm/dsl/operation/toOperationInsertable.d.ts +6 -6
- package/esm/dsl/operation/toOperationInsertable.d.ts.map +1 -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 +513 -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 +21 -0
- package/script/dsl/ContentSettings.d.ts.map +1 -0
- package/script/dsl/ContentSettings.js +44 -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 +30 -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 +38 -0
- package/script/dsl/model/toModelInsertable.d.ts.map +1 -0
- package/script/dsl/model/toModelInsertable.js +81 -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 +45 -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 +31 -0
- package/script/dsl/operation/toOperationGateway.d.ts.map +1 -0
- package/script/dsl/operation/toOperationGateway.js +74 -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,513 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
26
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
27
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
28
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
29
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
30
|
+
};
|
|
31
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
32
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
33
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
34
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
var _GenerateContext_instances, _GenerateContext_files, _GenerateContext_previews, _GenerateContext_stackTrail, _GenerateContext_runOperationGenerator, _GenerateContext_runModelGenerator, _GenerateContext_getFile, _GenerateContext_addFile;
|
|
40
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41
|
+
exports.GenerateContext = void 0;
|
|
42
|
+
const mod_js_1 = require("../deps/jsr.io/@std/path/1.0.6/mod.js");
|
|
43
|
+
const Import_js_1 = require("../dsl/Import.js");
|
|
44
|
+
const Definition_js_1 = require("../dsl/Definition.js");
|
|
45
|
+
const OperationDriver_js_1 = require("../dsl/operation/OperationDriver.js");
|
|
46
|
+
const ModelDriver_js_1 = require("../dsl/model/ModelDriver.js");
|
|
47
|
+
const ContentSettings_js_1 = require("../dsl/ContentSettings.js");
|
|
48
|
+
const Sentry = __importStar(require("@sentry/deno"));
|
|
49
|
+
const tracer_js_1 = require("../helpers/tracer.js");
|
|
50
|
+
const Inserted_js_1 = require("../dsl/Inserted.js");
|
|
51
|
+
const File_js_1 = require("../dsl/File.js");
|
|
52
|
+
const tiny_invariant_1 = __importDefault(require("tiny-invariant"));
|
|
53
|
+
class GenerateContext {
|
|
54
|
+
constructor({ oasDocument, settings, logger, callback, captureCurrentResult, stackTrail, toGeneratorsMap }) {
|
|
55
|
+
_GenerateContext_instances.add(this);
|
|
56
|
+
_GenerateContext_files.set(this, void 0);
|
|
57
|
+
_GenerateContext_previews.set(this, void 0);
|
|
58
|
+
Object.defineProperty(this, "oasDocument", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
configurable: true,
|
|
61
|
+
writable: true,
|
|
62
|
+
value: void 0
|
|
63
|
+
});
|
|
64
|
+
Object.defineProperty(this, "settings", {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
configurable: true,
|
|
67
|
+
writable: true,
|
|
68
|
+
value: void 0
|
|
69
|
+
});
|
|
70
|
+
Object.defineProperty(this, "logger", {
|
|
71
|
+
enumerable: true,
|
|
72
|
+
configurable: true,
|
|
73
|
+
writable: true,
|
|
74
|
+
value: void 0
|
|
75
|
+
});
|
|
76
|
+
Object.defineProperty(this, "callback", {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
configurable: true,
|
|
79
|
+
writable: true,
|
|
80
|
+
value: void 0
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(this, "captureCurrentResult", {
|
|
83
|
+
enumerable: true,
|
|
84
|
+
configurable: true,
|
|
85
|
+
writable: true,
|
|
86
|
+
value: void 0
|
|
87
|
+
});
|
|
88
|
+
Object.defineProperty(this, "toGeneratorsMap", {
|
|
89
|
+
enumerable: true,
|
|
90
|
+
configurable: true,
|
|
91
|
+
writable: true,
|
|
92
|
+
value: void 0
|
|
93
|
+
});
|
|
94
|
+
_GenerateContext_stackTrail.set(this, void 0);
|
|
95
|
+
this.logger = logger;
|
|
96
|
+
__classPrivateFieldSet(this, _GenerateContext_files, new Map(), "f");
|
|
97
|
+
__classPrivateFieldSet(this, _GenerateContext_previews, {}, "f");
|
|
98
|
+
this.oasDocument = oasDocument;
|
|
99
|
+
this.settings = settings;
|
|
100
|
+
this.callback = callback;
|
|
101
|
+
__classPrivateFieldSet(this, _GenerateContext_stackTrail, stackTrail, "f");
|
|
102
|
+
this.captureCurrentResult = captureCurrentResult;
|
|
103
|
+
this.toGeneratorsMap = toGeneratorsMap;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
generate() {
|
|
109
|
+
const generators = Object.values(this.toGeneratorsMap());
|
|
110
|
+
Sentry.startSpan({ name: 'Generate operations' }, () => generators
|
|
111
|
+
.filter(generator => generator.type === 'operation')
|
|
112
|
+
.forEach(generator => {
|
|
113
|
+
this.trace(generator.id, () => {
|
|
114
|
+
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_runOperationGenerator).call(this, { oasDocument: this.oasDocument, generator });
|
|
115
|
+
});
|
|
116
|
+
}));
|
|
117
|
+
Sentry.startSpan({ name: 'Generate models' }, () => {
|
|
118
|
+
generators
|
|
119
|
+
.filter(generator => generator.type === 'model')
|
|
120
|
+
.forEach(generator => {
|
|
121
|
+
this.trace(generator.id, () => {
|
|
122
|
+
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_runModelGenerator).call(this, { oasDocument: this.oasDocument, generator });
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
});
|
|
126
|
+
return {
|
|
127
|
+
files: __classPrivateFieldGet(this, _GenerateContext_files, "f"),
|
|
128
|
+
previews: __classPrivateFieldGet(this, _GenerateContext_previews, "f")
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
trace(token, fn) {
|
|
132
|
+
return (0, tracer_js_1.tracer)(__classPrivateFieldGet(this, _GenerateContext_stackTrail, "f"), token, fn);
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* Converts schema to value using `schemaToValueFn` and creates definition
|
|
136
|
+
* with the given `identifier` at `destinationPath`.
|
|
137
|
+
*
|
|
138
|
+
* If a definition with the same name already exists, it will be returned
|
|
139
|
+
* instead of creating a new one.
|
|
140
|
+
*
|
|
141
|
+
* @experimental
|
|
142
|
+
*
|
|
143
|
+
* @param schema - The schema to create the definition for.
|
|
144
|
+
* @param identifier - The identifier for the definition.
|
|
145
|
+
* @param destinationPath - The path to the file where the definition will be registered.
|
|
146
|
+
* @param schemaToValueFn - A function that converts the schema to a value.
|
|
147
|
+
* @returns The created definition or cached definition if it already exists.
|
|
148
|
+
*/
|
|
149
|
+
createAndRegisterDefinition({ schema, identifier, destinationPath, schemaToValueFn }) {
|
|
150
|
+
const cachedDefinition = this.findDefinition({
|
|
151
|
+
name: identifier.name,
|
|
152
|
+
exportPath: destinationPath
|
|
153
|
+
});
|
|
154
|
+
// @TODO add check to make sure retrieved definition
|
|
155
|
+
// used same generator and same schema #SKM-47
|
|
156
|
+
if (cachedDefinition) {
|
|
157
|
+
return cachedDefinition;
|
|
158
|
+
}
|
|
159
|
+
const value = schemaToValueFn({
|
|
160
|
+
context: this,
|
|
161
|
+
schema,
|
|
162
|
+
destinationPath,
|
|
163
|
+
required: true
|
|
164
|
+
});
|
|
165
|
+
return this.defineAndRegister({
|
|
166
|
+
identifier,
|
|
167
|
+
value,
|
|
168
|
+
destinationPath
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Create and register a definition with the given `identifier` at `destinationPath`.
|
|
173
|
+
*
|
|
174
|
+
* @experimental
|
|
175
|
+
*/
|
|
176
|
+
defineAndRegister({ identifier, value, destinationPath }) {
|
|
177
|
+
// @TODO cache check is duplicatd if call comes from
|
|
178
|
+
// createAndRegisterDefinition. Look for a way to share code between
|
|
179
|
+
// these two functions
|
|
180
|
+
const cachedDefinition = this.findDefinition({
|
|
181
|
+
name: identifier.name,
|
|
182
|
+
exportPath: destinationPath
|
|
183
|
+
});
|
|
184
|
+
// @TODO add check to make sure retrieved definition
|
|
185
|
+
// used same generator and same schema #SKM-47
|
|
186
|
+
if (cachedDefinition) {
|
|
187
|
+
return cachedDefinition;
|
|
188
|
+
}
|
|
189
|
+
const definition = new Definition_js_1.Definition({
|
|
190
|
+
context: this,
|
|
191
|
+
identifier,
|
|
192
|
+
value
|
|
193
|
+
});
|
|
194
|
+
this.register({
|
|
195
|
+
definitions: [definition],
|
|
196
|
+
destinationPath
|
|
197
|
+
});
|
|
198
|
+
return definition;
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* Insert supplied `imports` and `definitions` into file at `destinationPath`.
|
|
202
|
+
*
|
|
203
|
+
* If an import from a specified module already exists in the file, the
|
|
204
|
+
* import names are appended to the existing import.
|
|
205
|
+
*
|
|
206
|
+
* Definitions will only be added if there is not already a definition with
|
|
207
|
+
* the same name in the file.
|
|
208
|
+
*
|
|
209
|
+
* @mutates this.files
|
|
210
|
+
*/
|
|
211
|
+
register({ imports = {}, definitions, destinationPath, reExports, preview }) {
|
|
212
|
+
// TODO deduplicate import names and definition names against each other
|
|
213
|
+
const currentFile = __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_getFile).call(this, destinationPath);
|
|
214
|
+
Object.entries(reExports ?? {}).forEach(([importModule, identifiers]) => {
|
|
215
|
+
if (!currentFile.reExports.get(importModule) && identifiers.length) {
|
|
216
|
+
currentFile.reExports.set(importModule, {});
|
|
217
|
+
}
|
|
218
|
+
identifiers.forEach(identifier => {
|
|
219
|
+
const entityType = identifier.entityType.type;
|
|
220
|
+
const module = currentFile.reExports.get(importModule);
|
|
221
|
+
(0, tiny_invariant_1.default)(module, 'Module not found');
|
|
222
|
+
if (!module[entityType]) {
|
|
223
|
+
module[entityType] = new Set();
|
|
224
|
+
}
|
|
225
|
+
module[entityType].add(identifier.name);
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
Object.entries(imports).forEach(([importModule, importNames]) => {
|
|
229
|
+
const module = currentFile.imports.get(importModule);
|
|
230
|
+
const importItem = new Import_js_1.Import({ module: importModule, importNames });
|
|
231
|
+
if (module) {
|
|
232
|
+
importItem.importNames.forEach(n => module.add(`${n}`));
|
|
233
|
+
}
|
|
234
|
+
else {
|
|
235
|
+
currentFile.imports.set(importModule, new Set(importItem.importNames.map(n => `${n}`)));
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
definitions?.forEach(definition => {
|
|
239
|
+
if (!definition) {
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
const { name } = definition.identifier;
|
|
243
|
+
if (!currentFile.definitions.has(name)) {
|
|
244
|
+
currentFile.definitions.set(name, definition);
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
Object.entries(preview ?? {}).forEach(([group, name]) => {
|
|
248
|
+
if (!__classPrivateFieldGet(this, _GenerateContext_previews, "f")[group]) {
|
|
249
|
+
__classPrivateFieldGet(this, _GenerateContext_previews, "f")[group] = {};
|
|
250
|
+
}
|
|
251
|
+
__classPrivateFieldGet(this, _GenerateContext_previews, "f")[group][name] = destinationPath;
|
|
252
|
+
console.log('PREVIEW 1', __classPrivateFieldGet(this, _GenerateContext_previews, "f"));
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Insert operation into the output file with path `destinationPath`.
|
|
257
|
+
*
|
|
258
|
+
* Insert will perform the following steps:
|
|
259
|
+
* 1. Generate content settings for the supplied operation
|
|
260
|
+
* 2. Look up definition in file with path `destinationPath`
|
|
261
|
+
* 3. If definition is not found, it will create a new one and register it
|
|
262
|
+
* 4. If the definition is defined at a location that is different from
|
|
263
|
+
* the current file, it will add an import to the current file from
|
|
264
|
+
* that location
|
|
265
|
+
* 5. Use the content settings to generate the operation using the
|
|
266
|
+
* insertable's driver
|
|
267
|
+
* @mutates this.files
|
|
268
|
+
*/
|
|
269
|
+
insertOperation({ insertable, operation, generation, destinationPath }) {
|
|
270
|
+
const { settings, definition } = new OperationDriver_js_1.OperationDriver({
|
|
271
|
+
context: this,
|
|
272
|
+
insertable,
|
|
273
|
+
operation,
|
|
274
|
+
generation,
|
|
275
|
+
destinationPath
|
|
276
|
+
});
|
|
277
|
+
return new Inserted_js_1.Inserted({ settings, definition });
|
|
278
|
+
}
|
|
279
|
+
/**
|
|
280
|
+
* Insert model into the output file with path `destinationPath`.
|
|
281
|
+
*
|
|
282
|
+
* Insert will perform the following steps:
|
|
283
|
+
* 1. Generate content settings for the supplied model
|
|
284
|
+
* 2. Look up definition in file with path `destinationPath`
|
|
285
|
+
* 3. If definition is not found, it will create a new one and register it
|
|
286
|
+
* 4. If the definition is defined at a location that is different from
|
|
287
|
+
* the current file, it will add an import to the current file from
|
|
288
|
+
* that location
|
|
289
|
+
* 5. Use the content settings to generate the model using the
|
|
290
|
+
* insertable's driver
|
|
291
|
+
* @mutates this.files
|
|
292
|
+
*/
|
|
293
|
+
insertModel({ insertable, refName, generation, destinationPath }) {
|
|
294
|
+
const { settings, definition } = new ModelDriver_js_1.ModelDriver({
|
|
295
|
+
context: this,
|
|
296
|
+
insertable,
|
|
297
|
+
refName,
|
|
298
|
+
generation,
|
|
299
|
+
destinationPath
|
|
300
|
+
});
|
|
301
|
+
return new Inserted_js_1.Inserted({ settings, definition });
|
|
302
|
+
}
|
|
303
|
+
/**
|
|
304
|
+
* Generate and return content settings for operation insertable and
|
|
305
|
+
* operation.
|
|
306
|
+
*
|
|
307
|
+
* Content settings are produced by passing base settings and operation
|
|
308
|
+
* through toIdentifier and toExportPath static methods on the
|
|
309
|
+
* insertable.
|
|
310
|
+
* @param { operation, insertable }
|
|
311
|
+
* @returns
|
|
312
|
+
*/
|
|
313
|
+
toOperationContentSettings({ operation, insertable }) {
|
|
314
|
+
const selected = this.toOperationSelected({
|
|
315
|
+
generatorId: insertable.id,
|
|
316
|
+
path: operation.path,
|
|
317
|
+
method: operation.method
|
|
318
|
+
});
|
|
319
|
+
return new ContentSettings_js_1.ContentSettings({
|
|
320
|
+
selected: Boolean(selected),
|
|
321
|
+
identifier: insertable.toIdentifier(operation),
|
|
322
|
+
exportPath: insertable.toExportPath(operation),
|
|
323
|
+
enrichments: insertable.toEnrichments(operation)
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* Generate and return content settings for model insertable and refName.
|
|
328
|
+
*
|
|
329
|
+
* Content settings are produced by passing base settings and refName
|
|
330
|
+
* through toIdentifier and toExportPath static methods on the
|
|
331
|
+
* insertable.
|
|
332
|
+
* @param { refName, insertable }
|
|
333
|
+
* @returns Content settings for model
|
|
334
|
+
*/
|
|
335
|
+
toModelContentSettings({ refName, insertable }) {
|
|
336
|
+
const selected = this.toModelSelected({
|
|
337
|
+
generatorId: insertable.id,
|
|
338
|
+
refName
|
|
339
|
+
});
|
|
340
|
+
return new ContentSettings_js_1.ContentSettings({
|
|
341
|
+
identifier: insertable.toIdentifier(refName),
|
|
342
|
+
selected: Boolean(selected),
|
|
343
|
+
exportPath: insertable.toExportPath(refName),
|
|
344
|
+
enrichments: insertable.toEnrichments(refName)
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* Generate and return content settings for a gateway
|
|
349
|
+
*
|
|
350
|
+
* Content settings are produced by passing base settings
|
|
351
|
+
* through toIdentifier, toExportPath methods on the gateway
|
|
352
|
+
* @param gateway
|
|
353
|
+
* @returns Content settings for model
|
|
354
|
+
*/
|
|
355
|
+
toGatewayContentSetting(gateway) {
|
|
356
|
+
return new ContentSettings_js_1.ContentSettings({
|
|
357
|
+
identifier: gateway.toIdentifier(),
|
|
358
|
+
selected: true,
|
|
359
|
+
exportPath: gateway.toExportPath(),
|
|
360
|
+
enrichments: gateway.toEnrichments()
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Look up operation settings for a given generatorId, path and method.
|
|
365
|
+
* @param { generatorId, path, method }
|
|
366
|
+
* @returns Base settings for operation
|
|
367
|
+
*/
|
|
368
|
+
toOperationSelected({ generatorId, path, method }) {
|
|
369
|
+
const generatorSettings = this.toGeneratorSettings(generatorId);
|
|
370
|
+
const operationSettings = generatorSettings && 'operations' in generatorSettings
|
|
371
|
+
? generatorSettings.operations[path]?.[method]
|
|
372
|
+
: undefined;
|
|
373
|
+
return operationSettings;
|
|
374
|
+
}
|
|
375
|
+
toModelSelected({ generatorId, refName }) {
|
|
376
|
+
const generatorSettings = this.toGeneratorSettings(generatorId);
|
|
377
|
+
const modelSettings = generatorSettings && 'models' in generatorSettings
|
|
378
|
+
? generatorSettings.models[refName]
|
|
379
|
+
: undefined;
|
|
380
|
+
return modelSettings;
|
|
381
|
+
}
|
|
382
|
+
toGeneratorSettings(generatorId) {
|
|
383
|
+
return this.settings?.generators?.find(({ id }) => id === generatorId);
|
|
384
|
+
}
|
|
385
|
+
/**
|
|
386
|
+
* Perform one lookup of schema by `refName`.
|
|
387
|
+
* @param refName
|
|
388
|
+
* @returns Matching schema or ref
|
|
389
|
+
* @throws if schema is not found
|
|
390
|
+
*/
|
|
391
|
+
resolveSchemaRefOnce(refName) {
|
|
392
|
+
const schema = this.oasDocument.components?.schemas?.[refName]?.resolveOnce();
|
|
393
|
+
if (!schema) {
|
|
394
|
+
throw new Error(`Schema not found: ${refName}`);
|
|
395
|
+
}
|
|
396
|
+
return schema;
|
|
397
|
+
}
|
|
398
|
+
/**
|
|
399
|
+
* Check if definition name `name` in file with path `exportPath`
|
|
400
|
+
* has already been created and registered.
|
|
401
|
+
*
|
|
402
|
+
* @param { name, exportPath }
|
|
403
|
+
* @returns Matching definition if found or `undefined` otherwise
|
|
404
|
+
*/
|
|
405
|
+
findDefinition({ name, exportPath }) {
|
|
406
|
+
return __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_getFile).call(this, exportPath).definitions.get(name);
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
exports.GenerateContext = GenerateContext;
|
|
410
|
+
_GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(), _GenerateContext_stackTrail = new WeakMap(), _GenerateContext_instances = new WeakSet(), _GenerateContext_runOperationGenerator = function _GenerateContext_runOperationGenerator({ oasDocument, generator }) {
|
|
411
|
+
if (generator._class === 'OperationGateway') {
|
|
412
|
+
const gatewaySettings = this.toGatewayContentSetting(generator);
|
|
413
|
+
const gatewayInstance = new generator({
|
|
414
|
+
context: this,
|
|
415
|
+
settings: gatewaySettings
|
|
416
|
+
});
|
|
417
|
+
oasDocument.operations.forEach(operation => {
|
|
418
|
+
// TODO If we make OasOperation generic, for example by
|
|
419
|
+
// adding a `method` type, we could make isSupported
|
|
420
|
+
// a type guard which could help us narrow down the
|
|
421
|
+
// exact operation type that a generator receives.
|
|
422
|
+
// This would allow us to remove some type checks
|
|
423
|
+
// in the generator implementations
|
|
424
|
+
// https://linear.app/skmtc/issue/SKM-32/generic-models-operations
|
|
425
|
+
const { path, method } = operation;
|
|
426
|
+
this.trace([path, method], () => {
|
|
427
|
+
if (!generator.isSupported(operation)) {
|
|
428
|
+
return this.captureCurrentResult('notSupported');
|
|
429
|
+
}
|
|
430
|
+
const selected = this.toOperationSelected({
|
|
431
|
+
generatorId: generator.id,
|
|
432
|
+
path,
|
|
433
|
+
method
|
|
434
|
+
});
|
|
435
|
+
if (!selected) {
|
|
436
|
+
return this.captureCurrentResult('notSelected');
|
|
437
|
+
}
|
|
438
|
+
gatewayInstance.transformOperation(operation);
|
|
439
|
+
this.captureCurrentResult('success');
|
|
440
|
+
});
|
|
441
|
+
});
|
|
442
|
+
return this.defineAndRegister({
|
|
443
|
+
identifier: gatewaySettings.identifier,
|
|
444
|
+
value: gatewayInstance,
|
|
445
|
+
destinationPath: gatewaySettings.exportPath
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
if (generator._class === 'OperationInsertable') {
|
|
449
|
+
return oasDocument.operations.forEach(operation => {
|
|
450
|
+
// TODO If we make OasOperation generic, for example by
|
|
451
|
+
// adding a `method` type, we could make isSupported
|
|
452
|
+
// a type guard which could help us narrow down the
|
|
453
|
+
// exact operation type that a generator receives.
|
|
454
|
+
// This would allow us to remove some type checks
|
|
455
|
+
// in the generator implementations
|
|
456
|
+
// https://linear.app/skmtc/issue/SKM-32/generic-models-operations
|
|
457
|
+
const { path, method } = operation;
|
|
458
|
+
this.trace([path, method], () => {
|
|
459
|
+
if (!generator.isSupported(operation)) {
|
|
460
|
+
return this.captureCurrentResult('notSupported');
|
|
461
|
+
}
|
|
462
|
+
const selected = this.toOperationSelected({
|
|
463
|
+
generatorId: generator.id,
|
|
464
|
+
path,
|
|
465
|
+
method
|
|
466
|
+
});
|
|
467
|
+
if (!selected) {
|
|
468
|
+
return this.captureCurrentResult('notSelected');
|
|
469
|
+
}
|
|
470
|
+
this.insertOperation({ insertable: generator, operation });
|
|
471
|
+
this.captureCurrentResult('success');
|
|
472
|
+
});
|
|
473
|
+
});
|
|
474
|
+
}
|
|
475
|
+
throw new Error(`Unknown generator type`);
|
|
476
|
+
}, _GenerateContext_runModelGenerator = function _GenerateContext_runModelGenerator({ oasDocument, generator }) {
|
|
477
|
+
const refNames = oasDocument.components?.toSchemasRefNames() ?? [];
|
|
478
|
+
return refNames.forEach(refName => {
|
|
479
|
+
this.trace(refName, () => {
|
|
480
|
+
if (!generator.isSupported()) {
|
|
481
|
+
return this.captureCurrentResult('notSupported');
|
|
482
|
+
}
|
|
483
|
+
const selected = this.toModelSelected({
|
|
484
|
+
generatorId: generator.id,
|
|
485
|
+
refName
|
|
486
|
+
});
|
|
487
|
+
if (!selected) {
|
|
488
|
+
return this.captureCurrentResult('notSelected');
|
|
489
|
+
}
|
|
490
|
+
this.insertModel({ insertable: generator, refName });
|
|
491
|
+
this.captureCurrentResult('success');
|
|
492
|
+
});
|
|
493
|
+
});
|
|
494
|
+
}, _GenerateContext_getFile = function _GenerateContext_getFile(filePath, { throwIfNotFound = false } = {}) {
|
|
495
|
+
const normalisedPath = (0, mod_js_1.normalize)(filePath);
|
|
496
|
+
const currentFile = __classPrivateFieldGet(this, _GenerateContext_files, "f").get(normalisedPath);
|
|
497
|
+
if (!currentFile) {
|
|
498
|
+
if (throwIfNotFound) {
|
|
499
|
+
throw new Error(`File not found: '${normalisedPath}'`);
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
return __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addFile).call(this, normalisedPath);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
return currentFile;
|
|
506
|
+
}, _GenerateContext_addFile = function _GenerateContext_addFile(normalisedPath) {
|
|
507
|
+
if (__classPrivateFieldGet(this, _GenerateContext_files, "f").has(normalisedPath)) {
|
|
508
|
+
throw new Error(`File already exists: ${normalisedPath}`);
|
|
509
|
+
}
|
|
510
|
+
const newFile = new File_js_1.File({ path: normalisedPath, settings: this.settings });
|
|
511
|
+
__classPrivateFieldGet(this, _GenerateContext_files, "f").set(normalisedPath, newFile);
|
|
512
|
+
return newFile;
|
|
513
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
|
+
import { OasDocument } from '../oas/document/Document.js';
|
|
3
|
+
import type * as log from '../deps/jsr.io/@std/log/0.224.8/mod.js';
|
|
4
|
+
import type { StackTrail } from './StackTrail.js';
|
|
5
|
+
type ConstructorArgs = {
|
|
6
|
+
schema: string;
|
|
7
|
+
logger: log.Logger;
|
|
8
|
+
stackTrail: StackTrail;
|
|
9
|
+
};
|
|
10
|
+
export type ParseReturn = {
|
|
11
|
+
oasDocument: OasDocument;
|
|
12
|
+
extensions: Record<string, unknown>;
|
|
13
|
+
};
|
|
14
|
+
type RegisterExtensionArgs = {
|
|
15
|
+
type: string;
|
|
16
|
+
stackTrail: string[];
|
|
17
|
+
extensionFields: Record<string, unknown>;
|
|
18
|
+
};
|
|
19
|
+
export declare class ParseContext {
|
|
20
|
+
#private;
|
|
21
|
+
schema: string;
|
|
22
|
+
logger: log.Logger;
|
|
23
|
+
oasDocument: OasDocument;
|
|
24
|
+
stackTrail: StackTrail;
|
|
25
|
+
extentions: Record<string, unknown>;
|
|
26
|
+
constructor({ schema, logger, stackTrail }: ConstructorArgs);
|
|
27
|
+
parse(): OasDocument;
|
|
28
|
+
trace<T>(token: string | string[], fn: () => T): T;
|
|
29
|
+
registerExtension({ extensionFields, stackTrail, type }: RegisterExtensionArgs): void;
|
|
30
|
+
logSkippedFields(skipped: Record<string, unknown>): void;
|
|
31
|
+
}
|
|
32
|
+
export declare const parseSchema: (schema: string) => OpenAPIV3.Document<{}>;
|
|
33
|
+
export {};
|
|
34
|
+
//# sourceMappingURL=ParseContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ParseContext.d.ts","sourceRoot":"","sources":["../../src/context/ParseContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAI9C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,KAAK,KAAK,GAAG,MAAM,wCAAwC,CAAA;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAIjD,KAAK,eAAe,GAAG;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,GAAG,CAAC,MAAM,CAAA;IAClB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,WAAW,EAAE,WAAW,CAAA;IACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACpC,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACzC,CAAA;AAED,qBAAa,YAAY;;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,GAAG,CAAC,MAAM,CAAA;IAClB,WAAW,EAAE,WAAW,CAAA;IACxB,UAAU,EAAE,UAAU,CAAA;IACtB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;gBAEvB,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,eAAe;IAQ3D,KAAK;IA6BL,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC;IAiBlD,iBAAiB,CAAC,EAAE,eAAe,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,qBAAqB,GAAG,IAAI;IAIrF,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAUlD;AAED,eAAO,MAAM,WAAW,WAAY,MAAM,2BAMzC,CAAA"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
26
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
27
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
28
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
29
|
+
};
|
|
30
|
+
var _ParseContext_instances, _ParseContext_parseSchema, _ParseContext_parseDocument;
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
exports.parseSchema = exports.ParseContext = void 0;
|
|
33
|
+
const lodash_es_1 = require("lodash-es");
|
|
34
|
+
const Sentry = __importStar(require("@sentry/deno"));
|
|
35
|
+
const mod_js_1 = require("../deps/jsr.io/@std/yaml/0.215.0/mod.js");
|
|
36
|
+
const toDocumentFieldsV3_js_1 = require("../oas/document/toDocumentFieldsV3.js");
|
|
37
|
+
const Document_js_1 = require("../oas/document/Document.js");
|
|
38
|
+
const tracer_js_1 = require("../helpers/tracer.js");
|
|
39
|
+
const openapi_down_convert_1 = require("@apiture/openapi-down-convert");
|
|
40
|
+
class ParseContext {
|
|
41
|
+
constructor({ schema, logger, stackTrail }) {
|
|
42
|
+
_ParseContext_instances.add(this);
|
|
43
|
+
Object.defineProperty(this, "schema", {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
configurable: true,
|
|
46
|
+
writable: true,
|
|
47
|
+
value: void 0
|
|
48
|
+
});
|
|
49
|
+
Object.defineProperty(this, "logger", {
|
|
50
|
+
enumerable: true,
|
|
51
|
+
configurable: true,
|
|
52
|
+
writable: true,
|
|
53
|
+
value: void 0
|
|
54
|
+
});
|
|
55
|
+
Object.defineProperty(this, "oasDocument", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true,
|
|
58
|
+
writable: true,
|
|
59
|
+
value: void 0
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(this, "stackTrail", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
configurable: true,
|
|
64
|
+
writable: true,
|
|
65
|
+
value: void 0
|
|
66
|
+
});
|
|
67
|
+
Object.defineProperty(this, "extentions", {
|
|
68
|
+
enumerable: true,
|
|
69
|
+
configurable: true,
|
|
70
|
+
writable: true,
|
|
71
|
+
value: void 0
|
|
72
|
+
});
|
|
73
|
+
this.schema = schema;
|
|
74
|
+
this.logger = logger;
|
|
75
|
+
this.stackTrail = stackTrail;
|
|
76
|
+
this.extentions = {};
|
|
77
|
+
this.oasDocument = new Document_js_1.OasDocument();
|
|
78
|
+
}
|
|
79
|
+
parse() {
|
|
80
|
+
const documentObject = __classPrivateFieldGet(this, _ParseContext_instances, "m", _ParseContext_parseSchema).call(this);
|
|
81
|
+
if (documentObject.openapi.startsWith('3.1')) {
|
|
82
|
+
const options = {
|
|
83
|
+
verbose: false,
|
|
84
|
+
deleteExampleWithId: false,
|
|
85
|
+
allOfTransform: true
|
|
86
|
+
};
|
|
87
|
+
const converter = new openapi_down_convert_1.Converter(documentObject, options);
|
|
88
|
+
const oas30Document = converter.convert();
|
|
89
|
+
return __classPrivateFieldGet(this, _ParseContext_instances, "m", _ParseContext_parseDocument).call(this, oas30Document);
|
|
90
|
+
}
|
|
91
|
+
return __classPrivateFieldGet(this, _ParseContext_instances, "m", _ParseContext_parseDocument).call(this, documentObject);
|
|
92
|
+
}
|
|
93
|
+
trace(token, fn) {
|
|
94
|
+
return (0, tracer_js_1.tracer)(this.stackTrail, token, fn);
|
|
95
|
+
}
|
|
96
|
+
registerExtension({ extensionFields, stackTrail, type }) {
|
|
97
|
+
(0, lodash_es_1.setWith)(this.extentions, stackTrail.concat('__x__'), { type, extensionFields }, Object);
|
|
98
|
+
}
|
|
99
|
+
logSkippedFields(skipped) {
|
|
100
|
+
Object.entries(skipped).forEach(([key, value]) => {
|
|
101
|
+
this.trace(key, () => {
|
|
102
|
+
const str = JSON.stringify(value);
|
|
103
|
+
const reduced = str.length > 30 ? `${str.slice(0, 30)}...` : str;
|
|
104
|
+
this.logger.warn(`Property not yet implemented. value: ${reduced}`);
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
exports.ParseContext = ParseContext;
|
|
110
|
+
_ParseContext_instances = new WeakSet(), _ParseContext_parseSchema = function _ParseContext_parseSchema() {
|
|
111
|
+
const documentObject = Sentry.startSpan({ name: 'Parse string schema to object' }, () => (0, exports.parseSchema)(this.schema));
|
|
112
|
+
return documentObject;
|
|
113
|
+
}, _ParseContext_parseDocument = function _ParseContext_parseDocument(documentObject) {
|
|
114
|
+
if (!documentObject.openapi.startsWith('3.0.')) {
|
|
115
|
+
throw new Error('Only OpenAPI v3 is supported');
|
|
116
|
+
}
|
|
117
|
+
this.oasDocument.fields = (0, toDocumentFieldsV3_js_1.toDocumentFieldsV3)({
|
|
118
|
+
documentObject,
|
|
119
|
+
context: this
|
|
120
|
+
});
|
|
121
|
+
return this.oasDocument;
|
|
122
|
+
};
|
|
123
|
+
const parseSchema = (schema) => {
|
|
124
|
+
if (schema.trimStart().startsWith('{')) {
|
|
125
|
+
return JSON.parse(schema);
|
|
126
|
+
}
|
|
127
|
+
else {
|
|
128
|
+
return (0, mod_js_1.parse)(schema);
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
exports.parseSchema = parseSchema;
|