@skmtc/core 0.0.484 → 0.0.485
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/dsl/operation/OperationInsertable.d.ts +1 -1
- package/esm/dsl/operation/OperationInsertable.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/enrichSettings.d.ts +1 -1
- package/esm/run/enrichSettings.d.ts.map +1 -1
- package/esm/run/enrichSettings.js +1 -0
- package/package.json +14 -28
- package/script/_dnt.polyfills.d.ts +0 -12
- package/script/_dnt.polyfills.d.ts.map +0 -1
- package/script/_dnt.polyfills.js +0 -16
- package/script/_dnt.shims.d.ts +0 -6
- package/script/_dnt.shims.d.ts.map +0 -1
- package/script/_dnt.shims.js +0 -65
- package/script/context/CoreContext.d.ts +0 -60
- package/script/context/CoreContext.d.ts.map +0 -1
- package/script/context/CoreContext.js +0 -227
- package/script/context/GenerateContext.d.ts +0 -231
- package/script/context/GenerateContext.d.ts.map +0 -1
- package/script/context/GenerateContext.js +0 -510
- package/script/context/ParseContext.d.ts +0 -34
- package/script/context/ParseContext.d.ts.map +0 -1
- package/script/context/ParseContext.js +0 -131
- package/script/context/RenderContext.d.ts +0 -38
- package/script/context/RenderContext.d.ts.map +0 -1
- package/script/context/RenderContext.js +0 -227
- package/script/context/ResultsHandler.d.ts +0 -19
- package/script/context/ResultsHandler.d.ts.map +0 -1
- package/script/context/ResultsHandler.js +0 -56
- package/script/context/StackTrail.d.ts +0 -14
- package/script/context/StackTrail.d.ts.map +0 -1
- package/script/context/StackTrail.js +0 -85
- package/script/context/types.d.ts +0 -23
- package/script/context/types.d.ts.map +0 -1
- package/script/context/types.js +0 -2
- package/script/deps/jsr.io/@std/fmt/1.0.2/colors.d.ts +0 -700
- package/script/deps/jsr.io/@std/fmt/1.0.2/colors.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fmt/1.0.2/colors.js +0 -976
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts +0 -218
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.js +0 -298
- package/script/deps/jsr.io/@std/io/0.224.9/types.d.ts +0 -146
- package/script/deps/jsr.io/@std/io/0.224.9/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/io/0.224.9/types.js +0 -18
- package/script/deps/jsr.io/@std/io/0.224.9/write_all.d.ts +0 -51
- package/script/deps/jsr.io/@std/io/0.224.9/write_all.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/io/0.224.9/write_all.js +0 -65
- package/script/deps/jsr.io/@std/log/0.224.8/_config.d.ts +0 -4
- package/script/deps/jsr.io/@std/log/0.224.8/_config.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/_config.js +0 -17
- package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.d.ts +0 -8
- package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/_file_handler_symbols.js +0 -11
- package/script/deps/jsr.io/@std/log/0.224.8/_state.d.ts +0 -8
- package/script/deps/jsr.io/@std/log/0.224.8/_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/_state.js +0 -10
- package/script/deps/jsr.io/@std/log/0.224.8/base_handler.d.ts +0 -22
- package/script/deps/jsr.io/@std/log/0.224.8/base_handler.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/base_handler.js +0 -64
- package/script/deps/jsr.io/@std/log/0.224.8/console_handler.d.ts +0 -18
- package/script/deps/jsr.io/@std/log/0.224.8/console_handler.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/console_handler.js +0 -63
- package/script/deps/jsr.io/@std/log/0.224.8/critical.d.ts +0 -5
- package/script/deps/jsr.io/@std/log/0.224.8/critical.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/critical.js +0 -13
- package/script/deps/jsr.io/@std/log/0.224.8/debug.d.ts +0 -5
- package/script/deps/jsr.io/@std/log/0.224.8/debug.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/debug.js +0 -13
- package/script/deps/jsr.io/@std/log/0.224.8/error.d.ts +0 -5
- package/script/deps/jsr.io/@std/log/0.224.8/error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/error.js +0 -13
- package/script/deps/jsr.io/@std/log/0.224.8/file_handler.d.ts +0 -54
- package/script/deps/jsr.io/@std/log/0.224.8/file_handler.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/file_handler.js +0 -162
- package/script/deps/jsr.io/@std/log/0.224.8/formatters.d.ts +0 -6
- package/script/deps/jsr.io/@std/log/0.224.8/formatters.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/formatters.js +0 -23
- package/script/deps/jsr.io/@std/log/0.224.8/get_logger.d.ts +0 -4
- package/script/deps/jsr.io/@std/log/0.224.8/get_logger.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/get_logger.js +0 -24
- package/script/deps/jsr.io/@std/log/0.224.8/info.d.ts +0 -5
- package/script/deps/jsr.io/@std/log/0.224.8/info.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/info.js +0 -13
- package/script/deps/jsr.io/@std/log/0.224.8/levels.d.ts +0 -26
- package/script/deps/jsr.io/@std/log/0.224.8/levels.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/levels.js +0 -48
- package/script/deps/jsr.io/@std/log/0.224.8/logger.d.ts +0 -63
- package/script/deps/jsr.io/@std/log/0.224.8/logger.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/logger.js +0 -185
- package/script/deps/jsr.io/@std/log/0.224.8/mod.d.ts +0 -390
- package/script/deps/jsr.io/@std/log/0.224.8/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/mod.js +0 -406
- package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.d.ts +0 -53
- package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/rotating_file_handler.js +0 -152
- package/script/deps/jsr.io/@std/log/0.224.8/setup.d.ts +0 -4
- package/script/deps/jsr.io/@std/log/0.224.8/setup.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/setup.js +0 -44
- package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts +0 -51
- package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/warn.js +0 -13
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/_common/assert_path.js +0 -10
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts +0 -4
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/_common/basename.js +0 -45
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/_common/common.js +0 -26
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts +0 -40
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/_common/constants.js +0 -49
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/_common/dirname.js +0 -11
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts +0 -4
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/_common/format.js +0 -23
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/_common/from_file_url.js +0 -12
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts +0 -35
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/_common/glob_to_reg_exp.js +0 -237
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize.js +0 -11
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/_common/normalize_string.js +0 -80
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/_common/relative.js +0 -12
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/_common/strip_trailing_separators.js +0 -22
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/_common/to_file_url.js +0 -18
- package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.6/_os.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/_os.js +0 -35
- package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts +0 -28
- package/script/deps/jsr.io/@std/path/1.0.6/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/basename.js +0 -39
- package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts +0 -28
- package/script/deps/jsr.io/@std/path/1.0.6/common.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/common.js +0 -36
- package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts +0 -15
- package/script/deps/jsr.io/@std/path/1.0.6/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/constants.js +0 -20
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/dirname.js +0 -32
- package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.0.6/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/extname.js +0 -32
- package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.0.6/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/format.js +0 -30
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/from_file_url.js +0 -31
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts +0 -77
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/glob_to_regexp.js +0 -86
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/is_absolute.js +0 -31
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/is_glob.js +0 -45
- package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.0.6/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/join.js +0 -32
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts +0 -28
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/join_globs.js +0 -37
- package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts +0 -54
- package/script/deps/jsr.io/@std/path/1.0.6/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/mod.js +0 -73
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts +0 -27
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/normalize.js +0 -36
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts +0 -29
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/normalize_glob.js +0 -38
- package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts +0 -35
- package/script/deps/jsr.io/@std/path/1.0.6/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/parse.js +0 -42
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts +0 -2
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/_util.js +0 -11
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/basename.js +0 -35
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts +0 -13
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/constants.js +0 -17
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/dirname.js +0 -53
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts +0 -21
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/extname.js +0 -76
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts +0 -24
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/format.js +0 -31
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts +0 -16
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/from_file_url.js +0 -24
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts +0 -72
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/glob_to_regexp.js +0 -85
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/is_absolute.js +0 -26
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join.js +0 -32
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/join_globs.js +0 -42
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize.js +0 -42
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/normalize_glob.js +0 -34
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts +0 -25
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/parse.js +0 -118
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/relative.js +0 -109
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/resolve.js +0 -85
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_file_url.js +0 -30
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts +0 -16
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/posix/to_namespaced_path.js +0 -23
- package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts +0 -24
- package/script/deps/jsr.io/@std/path/1.0.6/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/relative.js +0 -33
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/resolve.js +0 -33
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/to_file_url.js +0 -31
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts +0 -21
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/to_namespaced_path.js +0 -32
- package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts +0 -38
- package/script/deps/jsr.io/@std/path/1.0.6/types.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/types.js +0 -4
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts +0 -4
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/_util.js +0 -20
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/basename.js +0 -47
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts +0 -13
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/constants.js +0 -17
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/dirname.js +0 -115
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/extname.js +0 -84
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts +0 -24
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/format.js +0 -31
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts +0 -18
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/from_file_url.js +0 -33
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts +0 -71
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/glob_to_regexp.js +0 -85
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/is_absolute.js +0 -41
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join.js +0 -77
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts +0 -21
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/join_globs.js +0 -43
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts +0 -22
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize.js +0 -137
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts +0 -20
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/normalize_glob.js +0 -34
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts +0 -25
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/parse.js +0 -179
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts +0 -23
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/relative.js +0 -134
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/resolve.js +0 -180
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_file_url.js +0 -37
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts +0 -17
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/path/1.0.6/windows/to_namespaced_path.js +0 -52
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts +0 -6
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.js +0 -710
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts +0 -73
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.js +0 -152
- package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts +0 -7
- package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_error.js +0 -23
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts +0 -5
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.js +0 -1324
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts +0 -44
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.js +0 -154
- package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts +0 -11
- package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.js +0 -85
- package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts +0 -6
- package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_state.js +0 -19
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.js +0 -110
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.js +0 -35
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.js +0 -109
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.js +0 -41
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.js +0 -171
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.js +0 -14
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.js +0 -15
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts +0 -17
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.js +0 -39
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.js +0 -40
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.js +0 -43
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.js +0 -38
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.js +0 -40
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.js +0 -14
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.js +0 -28
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.js +0 -13
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.js +0 -81
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.js +0 -23
- package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts +0 -20
- package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.js +0 -74
- package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts +0 -49
- package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/mod.js +0 -67
- package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts +0 -36
- package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/parse.js +0 -22
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.js +0 -15
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.js +0 -18
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts +0 -31
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.js +0 -40
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.js +0 -15
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.js +0 -17
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts +0 -6
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.js +0 -18
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts +0 -23
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema.js +0 -107
- package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts +0 -9
- package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.js +0 -17
- package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts +0 -29
- package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/0.215.0/type.js +0 -87
- package/script/dsl/ContentSettings.d.ts +0 -19
- package/script/dsl/ContentSettings.d.ts.map +0 -1
- package/script/dsl/ContentSettings.js +0 -36
- package/script/dsl/Definition.d.ts +0 -19
- package/script/dsl/Definition.d.ts.map +0 -1
- package/script/dsl/Definition.js +0 -41
- package/script/dsl/EntityType.d.ts +0 -6
- package/script/dsl/EntityType.d.ts.map +0 -1
- package/script/dsl/EntityType.js +0 -22
- package/script/dsl/File.d.ts +0 -26
- package/script/dsl/File.d.ts.map +0 -1
- package/script/dsl/File.js +0 -101
- package/script/dsl/GatewayBase.d.ts +0 -13
- package/script/dsl/GatewayBase.d.ts.map +0 -1
- package/script/dsl/GatewayBase.js +0 -23
- package/script/dsl/GeneratedValueList.d.ts +0 -9
- package/script/dsl/GeneratedValueList.d.ts.map +0 -1
- package/script/dsl/GeneratedValueList.js +0 -31
- package/script/dsl/Identifier.d.ts +0 -11
- package/script/dsl/Identifier.d.ts.map +0 -1
- package/script/dsl/Identifier.js +0 -52
- package/script/dsl/Import.d.ts +0 -22
- package/script/dsl/Import.d.ts.map +0 -1
- package/script/dsl/Import.js +0 -60
- package/script/dsl/Inserted.d.ts +0 -18
- package/script/dsl/Inserted.d.ts.map +0 -1
- package/script/dsl/Inserted.js +0 -34
- package/script/dsl/Stringable.d.ts +0 -4
- package/script/dsl/Stringable.d.ts.map +0 -1
- package/script/dsl/Stringable.js +0 -2
- package/script/dsl/ValueBase.d.ts +0 -16
- package/script/dsl/ValueBase.d.ts.map +0 -1
- package/script/dsl/ValueBase.js +0 -46
- package/script/dsl/constants.d.ts +0 -2
- package/script/dsl/constants.d.ts.map +0 -1
- package/script/dsl/constants.js +0 -4
- package/script/dsl/model/ModelBase.d.ts +0 -23
- package/script/dsl/model/ModelBase.d.ts.map +0 -1
- package/script/dsl/model/ModelBase.js +0 -45
- package/script/dsl/model/ModelDriver.d.ts +0 -27
- package/script/dsl/model/ModelDriver.d.ts.map +0 -1
- package/script/dsl/model/ModelDriver.js +0 -105
- package/script/dsl/model/ModelInsertable.d.ts +0 -29
- package/script/dsl/model/ModelInsertable.d.ts.map +0 -1
- package/script/dsl/model/ModelInsertable.js +0 -2
- package/script/dsl/model/toModelInsertable.d.ts +0 -36
- package/script/dsl/model/toModelInsertable.d.ts.map +0 -1
- package/script/dsl/model/toModelInsertable.js +0 -75
- package/script/dsl/operation/OperationBase.d.ts +0 -36
- package/script/dsl/operation/OperationBase.d.ts.map +0 -1
- package/script/dsl/operation/OperationBase.js +0 -61
- package/script/dsl/operation/OperationDriver.d.ts +0 -27
- package/script/dsl/operation/OperationDriver.d.ts.map +0 -1
- package/script/dsl/operation/OperationDriver.js +0 -107
- package/script/dsl/operation/OperationInsertable.d.ts +0 -43
- package/script/dsl/operation/OperationInsertable.d.ts.map +0 -1
- package/script/dsl/operation/OperationInsertable.js +0 -2
- package/script/dsl/operation/toOperationGateway.d.ts +0 -29
- package/script/dsl/operation/toOperationGateway.d.ts.map +0 -1
- package/script/dsl/operation/toOperationGateway.js +0 -68
- package/script/dsl/operation/toOperationInsertable.d.ts +0 -44
- package/script/dsl/operation/toOperationInsertable.d.ts.map +0 -1
- package/script/dsl/operation/toOperationInsertable.js +0 -75
- package/script/helpers/ResultsLog.d.ts +0 -8
- package/script/helpers/ResultsLog.d.ts.map +0 -1
- package/script/helpers/ResultsLog.js +0 -50
- package/script/helpers/isImported.d.ts +0 -2
- package/script/helpers/isImported.d.ts.map +0 -1
- package/script/helpers/isImported.js +0 -8
- package/script/helpers/naming.d.ts +0 -9
- package/script/helpers/naming.d.ts.map +0 -1
- package/script/helpers/naming.js +0 -33
- package/script/helpers/refFns.d.ts +0 -8
- package/script/helpers/refFns.d.ts.map +0 -1
- package/script/helpers/refFns.js +0 -24
- package/script/helpers/strings.d.ts +0 -9
- package/script/helpers/strings.d.ts.map +0 -1
- package/script/helpers/strings.js +0 -25
- package/script/helpers/toResolvedArtifactPath.d.ts +0 -8
- package/script/helpers/toResolvedArtifactPath.d.ts.map +0 -1
- package/script/helpers/toResolvedArtifactPath.js +0 -9
- package/script/helpers/tracer.d.ts +0 -3
- package/script/helpers/tracer.d.ts.map +0 -1
- package/script/helpers/tracer.js +0 -10
- package/script/mod.d.ts +0 -75
- package/script/mod.d.ts.map +0 -1
- package/script/mod.js +0 -90
- package/script/oas/array/Array.d.ts +0 -58
- package/script/oas/array/Array.d.ts.map +0 -1
- package/script/oas/array/Array.js +0 -117
- package/script/oas/array/array-types.d.ts +0 -13
- package/script/oas/array/array-types.d.ts.map +0 -1
- package/script/oas/array/array-types.js +0 -20
- package/script/oas/array/toArray.d.ts +0 -10
- package/script/oas/array/toArray.d.ts.map +0 -1
- package/script/oas/array/toArray.js +0 -20
- package/script/oas/boolean/Boolean.d.ts +0 -48
- package/script/oas/boolean/Boolean.d.ts.map +0 -1
- package/script/oas/boolean/Boolean.js +0 -97
- package/script/oas/boolean/boolean-types.d.ts +0 -10
- package/script/oas/boolean/boolean-types.d.ts.map +0 -1
- package/script/oas/boolean/boolean-types.js +0 -11
- package/script/oas/boolean/toBoolean.d.ts +0 -10
- package/script/oas/boolean/toBoolean.d.ts.map +0 -1
- package/script/oas/boolean/toBoolean.js +0 -17
- package/script/oas/components/Components.d.ts +0 -43
- package/script/oas/components/Components.d.ts.map +0 -1
- package/script/oas/components/Components.js +0 -66
- package/script/oas/components/toComponentsV3.d.ts +0 -10
- package/script/oas/components/toComponentsV3.d.ts.map +0 -1
- package/script/oas/components/toComponentsV3.js +0 -37
- package/script/oas/contact/Contact.d.ts +0 -15
- package/script/oas/contact/Contact.d.ts.map +0 -1
- package/script/oas/contact/Contact.js +0 -42
- package/script/oas/contact/toContactV3.d.ts +0 -5
- package/script/oas/contact/toContactV3.d.ts.map +0 -1
- package/script/oas/contact/toContactV3.js +0 -19
- package/script/oas/discriminator/Discriminator.d.ts +0 -9
- package/script/oas/discriminator/Discriminator.d.ts.map +0 -1
- package/script/oas/discriminator/Discriminator.js +0 -21
- package/script/oas/discriminator/discriminator-types.d.ts +0 -8
- package/script/oas/discriminator/discriminator-types.d.ts.map +0 -1
- package/script/oas/discriminator/discriminator-types.js +0 -9
- package/script/oas/discriminator/toDiscriminatorV3.d.ts +0 -10
- package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +0 -1
- package/script/oas/discriminator/toDiscriminatorV3.js +0 -16
- package/script/oas/document/Document.d.ts +0 -33
- package/script/oas/document/Document.d.ts.map +0 -1
- package/script/oas/document/Document.js +0 -77
- package/script/oas/document/toDocumentFieldsV3.d.ts +0 -10
- package/script/oas/document/toDocumentFieldsV3.d.ts.map +0 -1
- package/script/oas/document/toDocumentFieldsV3.js +0 -25
- package/script/oas/example/Example.d.ts +0 -28
- package/script/oas/example/Example.d.ts.map +0 -1
- package/script/oas/example/Example.js +0 -59
- package/script/oas/example/example-types.d.ts +0 -9
- package/script/oas/example/example-types.d.ts.map +0 -1
- package/script/oas/example/example-types.js +0 -12
- package/script/oas/example/toExamplesV3.d.ts +0 -22
- package/script/oas/example/toExamplesV3.d.ts.map +0 -1
- package/script/oas/example/toExamplesV3.js +0 -49
- package/script/oas/header/Header.d.ts +0 -45
- package/script/oas/header/Header.d.ts.map +0 -1
- package/script/oas/header/Header.js +0 -84
- package/script/oas/header/toHeadersV3.d.ts +0 -11
- package/script/oas/header/toHeadersV3.d.ts.map +0 -1
- package/script/oas/header/toHeadersV3.js +0 -41
- package/script/oas/info/Info.d.ts +0 -25
- package/script/oas/info/Info.d.ts.map +0 -1
- package/script/oas/info/Info.js +0 -51
- package/script/oas/info/toInfoV3.d.ts +0 -10
- package/script/oas/info/toInfoV3.d.ts.map +0 -1
- package/script/oas/info/toInfoV3.js +0 -24
- package/script/oas/integer/Integer.d.ts +0 -55
- package/script/oas/integer/Integer.d.ts.map +0 -1
- package/script/oas/integer/Integer.js +0 -116
- package/script/oas/integer/integer-types.d.ts +0 -13
- package/script/oas/integer/integer-types.d.ts.map +0 -1
- package/script/oas/integer/integer-types.js +0 -22
- package/script/oas/integer/toInteger.d.ts +0 -10
- package/script/oas/integer/toInteger.d.ts.map +0 -1
- package/script/oas/integer/toInteger.js +0 -20
- package/script/oas/intersection/Intersection.d.ts +0 -30
- package/script/oas/intersection/Intersection.d.ts.map +0 -1
- package/script/oas/intersection/Intersection.js +0 -87
- package/script/oas/intersection/intersection-types.d.ts +0 -14
- package/script/oas/intersection/intersection-types.d.ts.map +0 -1
- package/script/oas/intersection/intersection-types.js +0 -15
- package/script/oas/intersection/toIntersection.d.ts +0 -11
- package/script/oas/intersection/toIntersection.d.ts.map +0 -1
- package/script/oas/intersection/toIntersection.js +0 -20
- package/script/oas/license/License.d.ts +0 -13
- package/script/oas/license/License.d.ts.map +0 -1
- package/script/oas/license/License.js +0 -35
- package/script/oas/license/toLicenseV3.d.ts +0 -5
- package/script/oas/license/toLicenseV3.d.ts.map +0 -1
- package/script/oas/license/toLicenseV3.js +0 -18
- package/script/oas/markdown/markdown-types.d.ts +0 -3
- package/script/oas/markdown/markdown-types.d.ts.map +0 -1
- package/script/oas/markdown/markdown-types.js +0 -5
- package/script/oas/mediaType/MediaType.d.ts +0 -18
- package/script/oas/mediaType/MediaType.d.ts.map +0 -1
- package/script/oas/mediaType/MediaType.js +0 -42
- package/script/oas/mediaType/mediaType-types.d.ts +0 -12
- package/script/oas/mediaType/mediaType-types.d.ts.map +0 -1
- package/script/oas/mediaType/mediaType-types.js +0 -15
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts +0 -21
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +0 -1
- package/script/oas/mediaType/toMediaTypeItemV3.js +0 -45
- package/script/oas/null/null-types.d.ts +0 -10
- package/script/oas/null/null-types.d.ts.map +0 -1
- package/script/oas/null/null-types.js +0 -11
- package/script/oas/number/Number.d.ts +0 -48
- package/script/oas/number/Number.d.ts.map +0 -1
- package/script/oas/number/Number.js +0 -97
- package/script/oas/number/number-types.d.ts +0 -10
- package/script/oas/number/number-types.d.ts.map +0 -1
- package/script/oas/number/number-types.js +0 -17
- package/script/oas/number/toNumber.d.ts +0 -10
- package/script/oas/number/toNumber.d.ts.map +0 -1
- package/script/oas/number/toNumber.js +0 -20
- package/script/oas/object/Object.d.ts +0 -92
- package/script/oas/object/Object.d.ts.map +0 -1
- package/script/oas/object/Object.js +0 -196
- package/script/oas/object/object-types.d.ts +0 -15
- package/script/oas/object/object-types.d.ts.map +0 -1
- package/script/oas/object/object-types.js +0 -30
- package/script/oas/object/toAdditionalPropertiesV3.d.ts +0 -11
- package/script/oas/object/toAdditionalPropertiesV3.d.ts.map +0 -1
- package/script/oas/object/toAdditionalPropertiesV3.js +0 -14
- package/script/oas/object/toObject.d.ts +0 -10
- package/script/oas/object/toObject.d.ts.map +0 -1
- package/script/oas/object/toObject.js +0 -29
- package/script/oas/operation/Operation.d.ts +0 -56
- package/script/oas/operation/Operation.d.ts.map +0 -1
- package/script/oas/operation/Operation.js +0 -134
- package/script/oas/operation/toOperationsV3.d.ts +0 -23
- package/script/oas/operation/toOperationsV3.d.ts.map +0 -1
- package/script/oas/operation/toOperationsV3.js +0 -84
- package/script/oas/parameter/Parameter.d.ts +0 -42
- package/script/oas/parameter/Parameter.d.ts.map +0 -1
- package/script/oas/parameter/Parameter.js +0 -126
- package/script/oas/parameter/parameter-types.d.ts +0 -26
- package/script/oas/parameter/parameter-types.d.ts.map +0 -1
- package/script/oas/parameter/parameter-types.js +0 -41
- package/script/oas/parameter/toParameterV3.d.ts +0 -21
- package/script/oas/parameter/toParameterV3.d.ts.map +0 -1
- package/script/oas/parameter/toParameterV3.js +0 -87
- package/script/oas/pathItem/PathItem.d.ts +0 -17
- package/script/oas/pathItem/PathItem.d.ts.map +0 -1
- package/script/oas/pathItem/PathItem.js +0 -42
- package/script/oas/pathItem/toPathItemV3.d.ts +0 -10
- package/script/oas/pathItem/toPathItemV3.d.ts.map +0 -1
- package/script/oas/pathItem/toPathItemV3.js +0 -16
- package/script/oas/ref/Ref.d.ts +0 -37
- package/script/oas/ref/Ref.d.ts.map +0 -1
- package/script/oas/ref/Ref.js +0 -106
- package/script/oas/ref/ref-types.d.ts +0 -52
- package/script/oas/ref/ref-types.d.ts.map +0 -1
- package/script/oas/ref/ref-types.js +0 -57
- package/script/oas/ref/toRefV31.d.ts +0 -12
- package/script/oas/ref/toRefV31.d.ts.map +0 -1
- package/script/oas/ref/toRefV31.js +0 -16
- package/script/oas/requestBody/RequestBody.d.ts +0 -22
- package/script/oas/requestBody/RequestBody.d.ts.map +0 -1
- package/script/oas/requestBody/RequestBody.js +0 -54
- package/script/oas/requestBody/toRequestBodiesV3.d.ts +0 -17
- package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +0 -1
- package/script/oas/requestBody/toRequestBodiesV3.js +0 -43
- package/script/oas/response/Response.d.ts +0 -23
- package/script/oas/response/Response.d.ts.map +0 -1
- package/script/oas/response/Response.js +0 -54
- package/script/oas/response/toResponseV3.d.ts +0 -21
- package/script/oas/response/toResponseV3.d.ts.map +0 -1
- package/script/oas/response/toResponseV3.js +0 -40
- package/script/oas/schema/Schema.d.ts +0 -14
- package/script/oas/schema/Schema.d.ts.map +0 -1
- package/script/oas/schema/Schema.js +0 -2
- package/script/oas/schema/schema-types.d.ts +0 -14
- package/script/oas/schema/schema-types.d.ts.map +0 -1
- package/script/oas/schema/schema-types.js +0 -26
- package/script/oas/schema/toSchemasV3.d.ts +0 -28
- package/script/oas/schema/toSchemasV3.d.ts.map +0 -1
- package/script/oas/schema/toSchemasV3.js +0 -101
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +0 -12
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +0 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.js +0 -26
- package/script/oas/string/String.d.ts +0 -66
- package/script/oas/string/String.d.ts.map +0 -1
- package/script/oas/string/String.js +0 -142
- package/script/oas/string/string-types.d.ts +0 -18
- package/script/oas/string/string-types.d.ts.map +0 -1
- package/script/oas/string/string-types.js +0 -35
- package/script/oas/string/toString.d.ts +0 -10
- package/script/oas/string/toString.d.ts.map +0 -1
- package/script/oas/string/toString.js +0 -44
- package/script/oas/tag/Tag.d.ts +0 -15
- package/script/oas/tag/Tag.d.ts.map +0 -1
- package/script/oas/tag/Tag.js +0 -39
- package/script/oas/tag/toTagsV3.d.ts +0 -15
- package/script/oas/tag/toTagsV3.d.ts.map +0 -1
- package/script/oas/tag/toTagsV3.js +0 -26
- package/script/oas/union/Union.d.ts +0 -66
- package/script/oas/union/Union.d.ts.map +0 -1
- package/script/oas/union/Union.js +0 -122
- package/script/oas/union/toUnion.d.ts +0 -11
- package/script/oas/union/toUnion.d.ts.map +0 -1
- package/script/oas/union/toUnion.js +0 -24
- package/script/oas/union/union-types.d.ts +0 -14
- package/script/oas/union/union-types.d.ts.map +0 -1
- package/script/oas/union/union-types.js +0 -15
- package/script/oas/unknown/Unknown.d.ts +0 -45
- package/script/oas/unknown/Unknown.d.ts.map +0 -1
- package/script/oas/unknown/Unknown.js +0 -86
- package/script/oas/unknown/toUnknown.d.ts +0 -10
- package/script/oas/unknown/toUnknown.d.ts.map +0 -1
- package/script/oas/unknown/toUnknown.js +0 -19
- package/script/oas/unknown/unknown-types.d.ts +0 -10
- package/script/oas/unknown/unknown-types.d.ts.map +0 -1
- package/script/oas/unknown/unknown-types.js +0 -11
- package/script/oas/void/Void.d.ts +0 -35
- package/script/oas/void/Void.d.ts.map +0 -1
- package/script/oas/void/Void.js +0 -64
- package/script/package.json +0 -3
- package/script/run/enrichSettings.d.ts +0 -8
- package/script/run/enrichSettings.d.ts.map +0 -1
- package/script/run/enrichSettings.js +0 -12
- package/script/run/handleEnrichment.d.ts +0 -3
- package/script/run/handleEnrichment.d.ts.map +0 -1
- package/script/run/handleEnrichment.js +0 -70
- package/script/run/toEnrichments.d.ts +0 -12
- package/script/run/toEnrichments.d.ts.map +0 -1
- package/script/run/toEnrichments.js +0 -30
- package/script/run/toSettings.d.ts +0 -15
- package/script/run/toSettings.d.ts.map +0 -1
- package/script/run/toSettings.js +0 -78
- package/script/run/transform.d.ts +0 -22
- package/script/run/transform.d.ts.map +0 -1
- package/script/run/transform.js +0 -51
- package/script/types/Brand.d.ts +0 -7
- package/script/types/Brand.d.ts.map +0 -1
- package/script/types/Brand.js +0 -3
- package/script/types/CustomValue.d.ts +0 -22
- package/script/types/CustomValue.d.ts.map +0 -1
- package/script/types/CustomValue.js +0 -39
- package/script/types/EnrichmentRequest.d.ts +0 -8
- package/script/types/EnrichmentRequest.d.ts.map +0 -1
- package/script/types/EnrichmentRequest.js +0 -3
- package/script/types/Extensions.d.ts +0 -7
- package/script/types/Extensions.d.ts.map +0 -1
- package/script/types/Extensions.js +0 -6
- package/script/types/GeneratedValue.d.ts +0 -19
- package/script/types/GeneratedValue.d.ts.map +0 -1
- package/script/types/GeneratedValue.js +0 -2
- package/script/types/GeneratorKeys.d.ts +0 -50
- package/script/types/GeneratorKeys.d.ts.map +0 -1
- package/script/types/GeneratorKeys.js +0 -95
- package/script/types/Manifest.d.ts +0 -121
- package/script/types/Manifest.d.ts.map +0 -1
- package/script/types/Manifest.js +0 -30
- package/script/types/Method.d.ts +0 -11
- package/script/types/Method.d.ts.map +0 -1
- package/script/types/Method.js +0 -39
- package/script/types/Modifiers.d.ts +0 -6
- package/script/types/Modifiers.d.ts.map +0 -1
- package/script/types/Modifiers.js +0 -2
- package/script/types/RefName.d.ts +0 -4
- package/script/types/RefName.d.ts.map +0 -1
- package/script/types/RefName.js +0 -3
- package/script/types/Results.d.ts +0 -10
- package/script/types/Results.d.ts.map +0 -1
- package/script/types/Results.js +0 -7
- package/script/types/Settings.d.ts +0 -308
- package/script/types/Settings.d.ts.map +0 -1
- package/script/types/Settings.js +0 -46
- package/script/types/TypeSystem.d.ts +0 -152
- package/script/types/TypeSystem.d.ts.map +0 -1
- package/script/types/TypeSystem.js +0 -2
- package/script/types/prettierConfig.d.ts +0 -27
- package/script/types/prettierConfig.d.ts.map +0 -1
- package/script/types/prettierConfig.js +0 -49
- package/script/typescript/FunctionParameter.d.ts +0 -34
- package/script/typescript/FunctionParameter.d.ts.map +0 -1
- package/script/typescript/FunctionParameter.js +0 -84
- package/script/typescript/List.d.ts +0 -147
- package/script/typescript/List.d.ts.map +0 -1
- package/script/typescript/List.js +0 -312
- package/script/typescript/PathParams.d.ts +0 -20
- package/script/typescript/PathParams.d.ts.map +0 -1
- package/script/typescript/PathParams.js +0 -53
- package/script/typescript/ReactRouterPathParams.d.ts +0 -20
- package/script/typescript/ReactRouterPathParams.d.ts.map +0 -1
- package/script/typescript/ReactRouterPathParams.js +0 -53
- package/script/typescript/identifiers.d.ts +0 -3
- package/script/typescript/identifiers.d.ts.map +0 -1
- package/script/typescript/identifiers.js +0 -12
- package/script/typescript/keyValues.d.ts +0 -3
- package/script/typescript/keyValues.d.ts.map +0 -1
- package/script/typescript/keyValues.js +0 -15
- package/script/typescript/toPathTemplate.d.ts +0 -2
- package/script/typescript/toPathTemplate.d.ts.map +0 -1
- package/script/typescript/toPathTemplate.js +0 -7
- package/script/typescript/withDescription.d.ts +0 -4
- package/script/typescript/withDescription.d.ts.map +0 -1
- package/script/typescript/withDescription.js +0 -7
|
@@ -1,510 +0,0 @@
|
|
|
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, generatorsMap }) {
|
|
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, "generatorsMap", {
|
|
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.generatorsMap = generatorsMap;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* @internal
|
|
107
|
-
*/
|
|
108
|
-
generate() {
|
|
109
|
-
const generators = Object.values(this.generatorsMap);
|
|
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
|
-
});
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* Generate and return content settings for model insertable and refName.
|
|
327
|
-
*
|
|
328
|
-
* Content settings are produced by passing base settings and refName
|
|
329
|
-
* through toIdentifier and toExportPath static methods on the
|
|
330
|
-
* insertable.
|
|
331
|
-
* @param { refName, insertable }
|
|
332
|
-
* @returns Content settings for model
|
|
333
|
-
*/
|
|
334
|
-
toModelContentSettings({ refName, insertable }) {
|
|
335
|
-
const selected = this.toModelSelected({
|
|
336
|
-
generatorId: insertable.id,
|
|
337
|
-
refName
|
|
338
|
-
});
|
|
339
|
-
return new ContentSettings_js_1.ContentSettings({
|
|
340
|
-
identifier: insertable.toIdentifier(refName),
|
|
341
|
-
selected: Boolean(selected),
|
|
342
|
-
exportPath: insertable.toExportPath(refName)
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* Generate and return content settings for a gateway
|
|
347
|
-
*
|
|
348
|
-
* Content settings are produced by passing base settings
|
|
349
|
-
* through toIdentifier, toExportPath methods on the gateway
|
|
350
|
-
* @param gateway
|
|
351
|
-
* @returns Content settings for model
|
|
352
|
-
*/
|
|
353
|
-
toGatewayContentSetting(gateway) {
|
|
354
|
-
return new ContentSettings_js_1.ContentSettings({
|
|
355
|
-
identifier: gateway.toIdentifier(),
|
|
356
|
-
selected: true,
|
|
357
|
-
exportPath: gateway.toExportPath()
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* Look up operation settings for a given generatorId, path and method.
|
|
362
|
-
* @param { generatorId, path, method }
|
|
363
|
-
* @returns Base settings for operation
|
|
364
|
-
*/
|
|
365
|
-
toOperationSelected({ generatorId, path, method }) {
|
|
366
|
-
const generatorSettings = this.toGeneratorSettings(generatorId);
|
|
367
|
-
const operationSettings = generatorSettings && 'operations' in generatorSettings
|
|
368
|
-
? generatorSettings.operations[path]?.[method]
|
|
369
|
-
: undefined;
|
|
370
|
-
return operationSettings;
|
|
371
|
-
}
|
|
372
|
-
toModelSelected({ generatorId, refName }) {
|
|
373
|
-
const generatorSettings = this.toGeneratorSettings(generatorId);
|
|
374
|
-
const modelSettings = generatorSettings && 'models' in generatorSettings
|
|
375
|
-
? generatorSettings.models[refName]
|
|
376
|
-
: undefined;
|
|
377
|
-
return modelSettings;
|
|
378
|
-
}
|
|
379
|
-
toGeneratorSettings(generatorId) {
|
|
380
|
-
return this.settings?.generators?.find(({ id }) => id === generatorId);
|
|
381
|
-
}
|
|
382
|
-
/**
|
|
383
|
-
* Perform one lookup of schema by `refName`.
|
|
384
|
-
* @param refName
|
|
385
|
-
* @returns Matching schema or ref
|
|
386
|
-
* @throws if schema is not found
|
|
387
|
-
*/
|
|
388
|
-
resolveSchemaRefOnce(refName) {
|
|
389
|
-
const schema = this.oasDocument.components?.schemas?.[refName]?.resolveOnce();
|
|
390
|
-
if (!schema) {
|
|
391
|
-
throw new Error(`Schema not found: ${refName}`);
|
|
392
|
-
}
|
|
393
|
-
return schema;
|
|
394
|
-
}
|
|
395
|
-
/**
|
|
396
|
-
* Check if definition name `name` in file with path `exportPath`
|
|
397
|
-
* has already been created and registered.
|
|
398
|
-
*
|
|
399
|
-
* @param { name, exportPath }
|
|
400
|
-
* @returns Matching definition if found or `undefined` otherwise
|
|
401
|
-
*/
|
|
402
|
-
findDefinition({ name, exportPath }) {
|
|
403
|
-
return __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_getFile).call(this, exportPath).definitions.get(name);
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
exports.GenerateContext = GenerateContext;
|
|
407
|
-
_GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(), _GenerateContext_stackTrail = new WeakMap(), _GenerateContext_instances = new WeakSet(), _GenerateContext_runOperationGenerator = function _GenerateContext_runOperationGenerator({ oasDocument, generator }) {
|
|
408
|
-
if (generator._class === 'OperationGateway') {
|
|
409
|
-
const gatewaySettings = this.toGatewayContentSetting(generator);
|
|
410
|
-
const gatewayInstance = new generator({
|
|
411
|
-
context: this,
|
|
412
|
-
settings: gatewaySettings
|
|
413
|
-
});
|
|
414
|
-
oasDocument.operations.forEach(operation => {
|
|
415
|
-
// TODO If we make OasOperation generic, for example by
|
|
416
|
-
// adding a `method` type, we could make isSupported
|
|
417
|
-
// a type guard which could help us narrow down the
|
|
418
|
-
// exact operation type that a generator receives.
|
|
419
|
-
// This would allow us to remove some type checks
|
|
420
|
-
// in the generator implementations
|
|
421
|
-
// https://linear.app/skmtc/issue/SKM-32/generic-models-operations
|
|
422
|
-
const { path, method } = operation;
|
|
423
|
-
this.trace([path, method], () => {
|
|
424
|
-
if (!generator.isSupported(operation)) {
|
|
425
|
-
return this.captureCurrentResult('notSupported');
|
|
426
|
-
}
|
|
427
|
-
const selected = this.toOperationSelected({
|
|
428
|
-
generatorId: generator.id,
|
|
429
|
-
path,
|
|
430
|
-
method
|
|
431
|
-
});
|
|
432
|
-
if (!selected) {
|
|
433
|
-
return this.captureCurrentResult('notSelected');
|
|
434
|
-
}
|
|
435
|
-
gatewayInstance.transformOperation(operation);
|
|
436
|
-
this.captureCurrentResult('success');
|
|
437
|
-
});
|
|
438
|
-
});
|
|
439
|
-
return this.defineAndRegister({
|
|
440
|
-
identifier: gatewaySettings.identifier,
|
|
441
|
-
value: gatewayInstance,
|
|
442
|
-
destinationPath: gatewaySettings.exportPath
|
|
443
|
-
});
|
|
444
|
-
}
|
|
445
|
-
if (generator._class === 'OperationInsertable') {
|
|
446
|
-
return oasDocument.operations.forEach(operation => {
|
|
447
|
-
// TODO If we make OasOperation generic, for example by
|
|
448
|
-
// adding a `method` type, we could make isSupported
|
|
449
|
-
// a type guard which could help us narrow down the
|
|
450
|
-
// exact operation type that a generator receives.
|
|
451
|
-
// This would allow us to remove some type checks
|
|
452
|
-
// in the generator implementations
|
|
453
|
-
// https://linear.app/skmtc/issue/SKM-32/generic-models-operations
|
|
454
|
-
const { path, method } = operation;
|
|
455
|
-
this.trace([path, method], () => {
|
|
456
|
-
if (!generator.isSupported(operation)) {
|
|
457
|
-
return this.captureCurrentResult('notSupported');
|
|
458
|
-
}
|
|
459
|
-
const selected = this.toOperationSelected({
|
|
460
|
-
generatorId: generator.id,
|
|
461
|
-
path,
|
|
462
|
-
method
|
|
463
|
-
});
|
|
464
|
-
if (!selected) {
|
|
465
|
-
return this.captureCurrentResult('notSelected');
|
|
466
|
-
}
|
|
467
|
-
this.insertOperation({ insertable: generator, operation });
|
|
468
|
-
this.captureCurrentResult('success');
|
|
469
|
-
});
|
|
470
|
-
});
|
|
471
|
-
}
|
|
472
|
-
throw new Error(`Unknown generator type`);
|
|
473
|
-
}, _GenerateContext_runModelGenerator = function _GenerateContext_runModelGenerator({ oasDocument, generator }) {
|
|
474
|
-
const refNames = oasDocument.components?.toSchemasRefNames() ?? [];
|
|
475
|
-
return refNames.forEach(refName => {
|
|
476
|
-
this.trace(refName, () => {
|
|
477
|
-
if (!generator.isSupported()) {
|
|
478
|
-
return this.captureCurrentResult('notSupported');
|
|
479
|
-
}
|
|
480
|
-
const selected = this.toModelSelected({
|
|
481
|
-
generatorId: generator.id,
|
|
482
|
-
refName
|
|
483
|
-
});
|
|
484
|
-
if (!selected) {
|
|
485
|
-
return this.captureCurrentResult('notSelected');
|
|
486
|
-
}
|
|
487
|
-
this.insertModel({ insertable: generator, refName });
|
|
488
|
-
this.captureCurrentResult('success');
|
|
489
|
-
});
|
|
490
|
-
});
|
|
491
|
-
}, _GenerateContext_getFile = function _GenerateContext_getFile(filePath, { throwIfNotFound = false } = {}) {
|
|
492
|
-
const normalisedPath = (0, mod_js_1.normalize)(filePath);
|
|
493
|
-
const currentFile = __classPrivateFieldGet(this, _GenerateContext_files, "f").get(normalisedPath);
|
|
494
|
-
if (!currentFile) {
|
|
495
|
-
if (throwIfNotFound) {
|
|
496
|
-
throw new Error(`File not found: '${normalisedPath}'`);
|
|
497
|
-
}
|
|
498
|
-
else {
|
|
499
|
-
return __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addFile).call(this, normalisedPath);
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
return currentFile;
|
|
503
|
-
}, _GenerateContext_addFile = function _GenerateContext_addFile(normalisedPath) {
|
|
504
|
-
if (__classPrivateFieldGet(this, _GenerateContext_files, "f").has(normalisedPath)) {
|
|
505
|
-
throw new Error(`File already exists: ${normalisedPath}`);
|
|
506
|
-
}
|
|
507
|
-
const newFile = new File_js_1.File({ path: normalisedPath, settings: this.settings });
|
|
508
|
-
__classPrivateFieldGet(this, _GenerateContext_files, "f").set(normalisedPath, newFile);
|
|
509
|
-
return newFile;
|
|
510
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,131 +0,0 @@
|
|
|
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;
|