@skmtc/core 0.0.24
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/_dnt.shims.d.ts +6 -0
- package/esm/_dnt.shims.d.ts.map +1 -0
- package/esm/_dnt.shims.js +61 -0
- package/esm/context/CoreContext.d.ts +67 -0
- package/esm/context/CoreContext.d.ts.map +1 -0
- package/esm/context/CoreContext.js +189 -0
- package/esm/context/GenerateContext.d.ts +47 -0
- package/esm/context/GenerateContext.d.ts.map +1 -0
- package/esm/context/GenerateContext.js +91 -0
- package/esm/context/LogStore.d.ts +11 -0
- package/esm/context/LogStore.d.ts.map +1 -0
- package/esm/context/LogStore.js +48 -0
- package/esm/context/ParseContext.d.ts +30 -0
- package/esm/context/ParseContext.d.ts.map +1 -0
- package/esm/context/ParseContext.js +42 -0
- package/esm/context/RenderContext.d.ts +32 -0
- package/esm/context/RenderContext.d.ts.map +1 -0
- package/esm/context/RenderContext.js +111 -0
- package/esm/context/Reporter.d.ts +29 -0
- package/esm/context/Reporter.d.ts.map +1 -0
- package/esm/context/Reporter.js +40 -0
- package/esm/context/Trail.d.ts +28 -0
- package/esm/context/Trail.d.ts.map +1 -0
- package/esm/context/Trail.js +114 -0
- package/esm/context/types.d.ts +10 -0
- package/esm/context/types.d.ts.map +1 -0
- package/esm/context/types.js +1 -0
- package/esm/deps/jsr.io/@std/assert/0.224.0/assert.d.ts +13 -0
- package/esm/deps/jsr.io/@std/assert/0.224.0/assert.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/0.224.0/assert.js +19 -0
- package/esm/deps/jsr.io/@std/assert/0.224.0/assertion_error.d.ts +15 -0
- package/esm/deps/jsr.io/@std/assert/0.224.0/assertion_error.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/assert/0.224.0/assertion_error.js +19 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/assert_path.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/assert_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/assert_path.js +7 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/basename.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/basename.js +40 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/common.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/common.js +23 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/constants.d.ts +40 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/constants.js +46 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/dirname.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/dirname.js +8 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/format.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/format.js +19 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/from_file_url.d.ts +3 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/from_file_url.js +9 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/glob_to_reg_exp.d.ts +29 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/glob_to_reg_exp.js +237 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/normalize.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/normalize.js +8 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/normalize_string.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/normalize_string.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/normalize_string.js +77 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/relative.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/relative.js +9 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/strip_trailing_separators.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/strip_trailing_separators.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/strip_trailing_separators.js +19 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/to_file_url.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_common/to_file_url.js +15 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_interface.d.ts +39 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_interface.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_interface.js +3 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_os.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/_os.js +18 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/basename.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/basename.js +26 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/common.d.ts +14 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/common.js +19 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/constants.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/constants.js +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/dirname.d.ts +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/dirname.js +12 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/extname.d.ts +7 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/extname.js +13 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/format.d.ts +9 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/format.js +14 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/from_file_url.d.ts +19 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/from_file_url.js +24 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/glob_to_regexp.d.ts +63 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/glob_to_regexp.js +65 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/is_absolute.d.ts +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/is_absolute.js +12 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/is_glob.d.ts +3 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/is_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/is_glob.js +28 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/join.d.ts +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/join.js +12 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/join_globs.d.ts +5 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/join_globs.js +11 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/mod.d.ts +57 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/mod.js +60 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/normalize.d.ts +8 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/normalize.js +14 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/normalize_glob.d.ts +5 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/normalize_glob.js +11 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/parse.d.ts +20 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/parse.js +24 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/_util.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/_util.js +8 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/basename.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/basename.js +27 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/common.d.ts +14 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/common.js +19 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/constants.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/constants.js +5 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/dirname.d.ts +15 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/dirname.js +45 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/extname.d.ts +16 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/extname.js +68 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/format.d.ts +7 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/format.js +11 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/from_file_url.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/from_file_url.js +17 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/glob_to_regexp.d.ts +58 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/glob_to_regexp.js +69 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/is_absolute.d.ts +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/is_absolute.js +12 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/is_glob.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/is_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/is_glob.js +3 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/join.d.ts +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/join.js +26 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/join_globs.d.ts +5 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/join_globs.js +26 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/mod.d.ts +39 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/mod.js +42 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/normalize.d.ts +8 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/normalize.js +25 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/normalize_glob.d.ts +5 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/normalize_glob.js +16 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/parse.d.ts +8 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/parse.js +98 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/relative.d.ts +8 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/relative.js +94 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/resolve.d.ts +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/resolve.js +48 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/to_file_url.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/to_file_url.js +22 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/to_namespaced_path.d.ts +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/posix/to_namespaced_path.js +10 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/relative.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/relative.js +19 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/resolve.d.ts +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/resolve.js +14 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/to_file_url.d.ts +19 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/to_file_url.js +24 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/to_namespaced_path.d.ts +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/to_namespaced_path.js +14 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/_util.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/_util.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/_util.js +15 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/basename.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/basename.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/basename.js +39 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/common.d.ts +14 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/common.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/common.js +19 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/constants.d.ts +4 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/constants.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/constants.js +5 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/dirname.d.ts +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/dirname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/dirname.js +98 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/extname.d.ts +7 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/extname.js +68 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/format.d.ts +7 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/format.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/format.js +11 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/from_file_url.d.ts +15 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/from_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/from_file_url.js +26 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/glob_to_regexp.d.ts +58 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/glob_to_regexp.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/glob_to_regexp.js +69 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/is_absolute.d.ts +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/is_absolute.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/is_absolute.js +27 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/is_glob.d.ts +2 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/is_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/is_glob.js +3 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/join.d.ts +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/join.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/join.js +72 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/join_globs.d.ts +5 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/join_globs.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/join_globs.js +26 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/mod.d.ts +39 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/mod.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/mod.js +42 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/normalize.d.ts +8 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/normalize.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/normalize.js +130 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/normalize_glob.d.ts +5 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/normalize_glob.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/normalize_glob.js +16 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/parse.d.ts +8 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/parse.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/parse.js +159 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/relative.d.ts +13 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/relative.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/relative.js +121 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/resolve.d.ts +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/resolve.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/resolve.js +143 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/to_file_url.d.ts +15 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/to_file_url.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/to_file_url.js +31 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/to_namespaced_path.d.ts +6 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/to_namespaced_path.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/0.224.0/windows/to_namespaced_path.js +38 -0
- package/esm/dsl/BaseSettings.d.ts +7 -0
- package/esm/dsl/BaseSettings.d.ts.map +1 -0
- package/esm/dsl/BaseSettings.js +1 -0
- package/esm/dsl/Definition.d.ts +20 -0
- package/esm/dsl/Definition.d.ts.map +1 -0
- package/esm/dsl/Definition.js +40 -0
- package/esm/dsl/Identifier.d.ts +17 -0
- package/esm/dsl/Identifier.d.ts.map +1 -0
- package/esm/dsl/Identifier.js +52 -0
- package/esm/dsl/Import.d.ts +20 -0
- package/esm/dsl/Import.d.ts.map +1 -0
- package/esm/dsl/Import.js +62 -0
- package/esm/dsl/ModelCreator.d.ts +53 -0
- package/esm/dsl/ModelCreator.d.ts.map +1 -0
- package/esm/dsl/ModelCreator.js +1 -0
- package/esm/dsl/ModelDriver.d.ts +30 -0
- package/esm/dsl/ModelDriver.d.ts.map +1 -0
- package/esm/dsl/ModelDriver.js +159 -0
- package/esm/dsl/OperationCreator.d.ts +32 -0
- package/esm/dsl/OperationCreator.d.ts.map +1 -0
- package/esm/dsl/OperationCreator.js +1 -0
- package/esm/dsl/OperationDriver.d.ts +27 -0
- package/esm/dsl/OperationDriver.d.ts.map +1 -0
- package/esm/dsl/OperationDriver.js +126 -0
- package/esm/dsl/PluginBase.d.ts +36 -0
- package/esm/dsl/PluginBase.d.ts.map +1 -0
- package/esm/dsl/PluginBase.js +46 -0
- package/esm/dsl/SchematicBase.d.ts +16 -0
- package/esm/dsl/SchematicBase.d.ts.map +1 -0
- package/esm/dsl/SchematicBase.js +28 -0
- package/esm/dsl/Stringable.d.ts +4 -0
- package/esm/dsl/Stringable.d.ts.map +1 -0
- package/esm/dsl/Stringable.js +1 -0
- package/esm/dsl/constants.d.ts +2 -0
- package/esm/dsl/constants.d.ts.map +1 -0
- package/esm/dsl/constants.js +1 -0
- package/esm/helpers/logStatus.d.ts +17 -0
- package/esm/helpers/logStatus.d.ts.map +1 -0
- package/esm/helpers/logStatus.js +6 -0
- package/esm/helpers/naming.d.ts +9 -0
- package/esm/helpers/naming.d.ts.map +1 -0
- package/esm/helpers/naming.js +25 -0
- package/esm/helpers/refFns.d.ts +8 -0
- package/esm/helpers/refFns.d.ts.map +1 -0
- package/esm/helpers/refFns.js +24 -0
- package/esm/helpers/strings.d.ts +3 -0
- package/esm/helpers/strings.d.ts.map +1 -0
- package/esm/helpers/strings.js +6 -0
- package/esm/helpers/verifyType.d.ts +4 -0
- package/esm/helpers/verifyType.d.ts.map +1 -0
- package/esm/helpers/verifyType.js +9 -0
- package/esm/mod.d.ts +54 -0
- package/esm/mod.d.ts.map +1 -0
- package/esm/mod.js +53 -0
- package/esm/oas/array/Array.d.ts +34 -0
- package/esm/oas/array/Array.d.ts.map +1 -0
- package/esm/oas/array/Array.js +49 -0
- package/esm/oas/array/array-types.d.ts +13 -0
- package/esm/oas/array/array-types.d.ts.map +1 -0
- package/esm/oas/array/array-types.js +17 -0
- package/esm/oas/array/toArray.d.ts +12 -0
- package/esm/oas/array/toArray.d.ts.map +1 -0
- package/esm/oas/array/toArray.js +20 -0
- package/esm/oas/boolean/Boolean.d.ts +29 -0
- package/esm/oas/boolean/Boolean.d.ts.map +1 -0
- package/esm/oas/boolean/Boolean.js +43 -0
- package/esm/oas/boolean/boolean-types.d.ts +10 -0
- package/esm/oas/boolean/boolean-types.d.ts.map +1 -0
- package/esm/oas/boolean/boolean-types.js +8 -0
- package/esm/oas/boolean/toBoolean.d.ts +12 -0
- package/esm/oas/boolean/toBoolean.d.ts.map +1 -0
- package/esm/oas/boolean/toBoolean.js +10 -0
- package/esm/oas/components/Components.d.ts +50 -0
- package/esm/oas/components/Components.d.ts.map +1 -0
- package/esm/oas/components/Components.js +52 -0
- package/esm/oas/components/toComponentsV3.d.ts +12 -0
- package/esm/oas/components/toComponentsV3.d.ts.map +1 -0
- package/esm/oas/components/toComponentsV3.js +44 -0
- package/esm/oas/contact/contact-types.d.ts +9 -0
- package/esm/oas/contact/contact-types.d.ts.map +1 -0
- package/esm/oas/contact/contact-types.js +7 -0
- package/esm/oas/discriminator/Discriminator.d.ts +21 -0
- package/esm/oas/discriminator/Discriminator.d.ts.map +1 -0
- package/esm/oas/discriminator/Discriminator.js +25 -0
- package/esm/oas/discriminator/discriminator-types.d.ts +8 -0
- package/esm/oas/discriminator/discriminator-types.d.ts.map +1 -0
- package/esm/oas/discriminator/discriminator-types.js +6 -0
- package/esm/oas/discriminator/toDiscriminatorV3.d.ts +12 -0
- package/esm/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -0
- package/esm/oas/discriminator/toDiscriminatorV3.js +16 -0
- package/esm/oas/document/Document.d.ts +41 -0
- package/esm/oas/document/Document.d.ts.map +1 -0
- package/esm/oas/document/Document.js +45 -0
- package/esm/oas/document/toDocumentV3.d.ts +12 -0
- package/esm/oas/document/toDocumentV3.d.ts.map +1 -0
- package/esm/oas/document/toDocumentV3.js +24 -0
- package/esm/oas/example/Example.d.ts +36 -0
- package/esm/oas/example/Example.d.ts.map +1 -0
- package/esm/oas/example/Example.js +45 -0
- package/esm/oas/example/example-types.d.ts +9 -0
- package/esm/oas/example/example-types.d.ts.map +1 -0
- package/esm/oas/example/example-types.js +9 -0
- package/esm/oas/example/toExamplesV3.d.ts +27 -0
- package/esm/oas/example/toExamplesV3.d.ts.map +1 -0
- package/esm/oas/example/toExamplesV3.js +45 -0
- package/esm/oas/header/Header.d.ts +52 -0
- package/esm/oas/header/Header.d.ts.map +1 -0
- package/esm/oas/header/Header.js +66 -0
- package/esm/oas/header/toHeadersV3.d.ts +13 -0
- package/esm/oas/header/toHeadersV3.d.ts.map +1 -0
- package/esm/oas/header/toHeadersV3.js +42 -0
- package/esm/oas/info/Info.d.ts +33 -0
- package/esm/oas/info/Info.d.ts.map +1 -0
- package/esm/oas/info/Info.js +40 -0
- package/esm/oas/info/toInfoV3.d.ts +12 -0
- package/esm/oas/info/toInfoV3.d.ts.map +1 -0
- package/esm/oas/info/toInfoV3.js +22 -0
- package/esm/oas/integer/Integer.d.ts +33 -0
- package/esm/oas/integer/Integer.d.ts.map +1 -0
- package/esm/oas/integer/Integer.js +49 -0
- package/esm/oas/integer/integer-types.d.ts +12 -0
- package/esm/oas/integer/integer-types.d.ts.map +1 -0
- package/esm/oas/integer/integer-types.js +18 -0
- package/esm/oas/integer/toInteger.d.ts +12 -0
- package/esm/oas/integer/toInteger.d.ts.map +1 -0
- package/esm/oas/integer/toInteger.js +13 -0
- package/esm/oas/intersection/Intersection.d.ts +35 -0
- package/esm/oas/intersection/Intersection.d.ts.map +1 -0
- package/esm/oas/intersection/Intersection.js +49 -0
- package/esm/oas/intersection/intersection-types.d.ts +14 -0
- package/esm/oas/intersection/intersection-types.d.ts.map +1 -0
- package/esm/oas/intersection/intersection-types.js +12 -0
- package/esm/oas/intersection/toIntersection.d.ts +13 -0
- package/esm/oas/intersection/toIntersection.d.ts.map +1 -0
- package/esm/oas/intersection/toIntersection.js +22 -0
- package/esm/oas/license/license-types.d.ts +9 -0
- package/esm/oas/license/license-types.d.ts.map +1 -0
- package/esm/oas/license/license-types.js +7 -0
- package/esm/oas/markdown/markdown-types.d.ts +3 -0
- package/esm/oas/markdown/markdown-types.d.ts.map +1 -0
- package/esm/oas/markdown/markdown-types.js +2 -0
- package/esm/oas/mediaType/MediaType.d.ts +28 -0
- package/esm/oas/mediaType/MediaType.d.ts.map +1 -0
- package/esm/oas/mediaType/MediaType.js +31 -0
- package/esm/oas/mediaType/mediaType-types.d.ts +12 -0
- package/esm/oas/mediaType/mediaType-types.d.ts.map +1 -0
- package/esm/oas/mediaType/mediaType-types.js +12 -0
- package/esm/oas/mediaType/toMediaTypeItemV3.d.ts +25 -0
- package/esm/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -0
- package/esm/oas/mediaType/toMediaTypeItemV3.js +37 -0
- package/esm/oas/null/null-types.d.ts +10 -0
- package/esm/oas/null/null-types.d.ts.map +1 -0
- package/esm/oas/null/null-types.js +8 -0
- package/esm/oas/number/Number.d.ts +29 -0
- package/esm/oas/number/Number.d.ts.map +1 -0
- package/esm/oas/number/Number.js +43 -0
- package/esm/oas/number/number-types.d.ts +10 -0
- package/esm/oas/number/number-types.d.ts.map +1 -0
- package/esm/oas/number/number-types.js +14 -0
- package/esm/oas/number/toNumber.d.ts +12 -0
- package/esm/oas/number/toNumber.d.ts.map +1 -0
- package/esm/oas/number/toNumber.js +10 -0
- package/esm/oas/object/Object.d.ts +42 -0
- package/esm/oas/object/Object.d.ts.map +1 -0
- package/esm/oas/object/Object.js +61 -0
- package/esm/oas/object/object-types.d.ts +15 -0
- package/esm/oas/object/object-types.d.ts.map +1 -0
- package/esm/oas/object/object-types.js +27 -0
- package/esm/oas/object/toAdditionalPropertiesV3.d.ts +13 -0
- package/esm/oas/object/toAdditionalPropertiesV3.d.ts.map +1 -0
- package/esm/oas/object/toAdditionalPropertiesV3.js +14 -0
- package/esm/oas/object/toObject.d.ts +12 -0
- package/esm/oas/object/toObject.d.ts.map +1 -0
- package/esm/oas/object/toObject.js +23 -0
- package/esm/oas/operation/Operation.d.ts +54 -0
- package/esm/oas/operation/Operation.d.ts.map +1 -0
- package/esm/oas/operation/Operation.js +90 -0
- package/esm/oas/operation/toOperationsV3.d.ts +26 -0
- package/esm/oas/operation/toOperationsV3.d.ts.map +1 -0
- package/esm/oas/operation/toOperationsV3.js +75 -0
- package/esm/oas/parameter/Parameter.d.ts +56 -0
- package/esm/oas/parameter/Parameter.d.ts.map +1 -0
- package/esm/oas/parameter/Parameter.js +77 -0
- package/esm/oas/parameter/parameter-types.d.ts +26 -0
- package/esm/oas/parameter/parameter-types.d.ts.map +1 -0
- package/esm/oas/parameter/parameter-types.js +38 -0
- package/esm/oas/parameter/toParameterV3.d.ts +25 -0
- package/esm/oas/parameter/toParameterV3.d.ts.map +1 -0
- package/esm/oas/parameter/toParameterV3.js +88 -0
- package/esm/oas/pathItem/PathItem.d.ts +27 -0
- package/esm/oas/pathItem/PathItem.d.ts.map +1 -0
- package/esm/oas/pathItem/PathItem.js +31 -0
- package/esm/oas/pathItem/toPathItemV3.d.ts +12 -0
- package/esm/oas/pathItem/toPathItemV3.d.ts.map +1 -0
- package/esm/oas/pathItem/toPathItemV3.js +15 -0
- package/esm/oas/ref/Ref.d.ts +42 -0
- package/esm/oas/ref/Ref.d.ts.map +1 -0
- package/esm/oas/ref/Ref.js +89 -0
- package/esm/oas/ref/ref-types.d.ts +52 -0
- package/esm/oas/ref/ref-types.d.ts.map +1 -0
- package/esm/oas/ref/ref-types.js +54 -0
- package/esm/oas/ref/toRefV31.d.ts +14 -0
- package/esm/oas/ref/toRefV31.d.ts.map +1 -0
- package/esm/oas/ref/toRefV31.js +16 -0
- package/esm/oas/requestBody/RequestBody.d.ts +31 -0
- package/esm/oas/requestBody/RequestBody.d.ts.map +1 -0
- package/esm/oas/requestBody/RequestBody.js +40 -0
- package/esm/oas/requestBody/toRequestBodiesV3.d.ts +20 -0
- package/esm/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -0
- package/esm/oas/requestBody/toRequestBodiesV3.js +51 -0
- package/esm/oas/response/Response.d.ts +32 -0
- package/esm/oas/response/Response.d.ts.map +1 -0
- package/esm/oas/response/Response.js +40 -0
- package/esm/oas/response/toResponseV3.d.ts +25 -0
- package/esm/oas/response/toResponseV3.d.ts.map +1 -0
- package/esm/oas/response/toResponseV3.js +35 -0
- package/esm/oas/schema/Schema.d.ts +11 -0
- package/esm/oas/schema/Schema.d.ts.map +1 -0
- package/esm/oas/schema/Schema.js +1 -0
- package/esm/oas/schema/schema-types.d.ts +14 -0
- package/esm/oas/schema/schema-types.d.ts.map +1 -0
- package/esm/oas/schema/schema-types.js +23 -0
- package/esm/oas/schema/toSchemasV3.d.ts +37 -0
- package/esm/oas/schema/toSchemasV3.d.ts.map +1 -0
- package/esm/oas/schema/toSchemasV3.js +99 -0
- package/esm/oas/string/String.d.ts +33 -0
- package/esm/oas/string/String.d.ts.map +1 -0
- package/esm/oas/string/String.js +52 -0
- package/esm/oas/string/string-types.d.ts +13 -0
- package/esm/oas/string/string-types.d.ts.map +1 -0
- package/esm/oas/string/string-types.js +29 -0
- package/esm/oas/string/toString.d.ts +12 -0
- package/esm/oas/string/toString.d.ts.map +1 -0
- package/esm/oas/string/toString.js +11 -0
- package/esm/oas/tag/Tag.d.ts +23 -0
- package/esm/oas/tag/Tag.d.ts.map +1 -0
- package/esm/oas/tag/Tag.js +28 -0
- package/esm/oas/tag/toTagsV3.d.ts +12 -0
- package/esm/oas/tag/toTagsV3.d.ts.map +1 -0
- package/esm/oas/tag/toTagsV3.js +19 -0
- package/esm/oas/union/Union.d.ts +35 -0
- package/esm/oas/union/Union.d.ts.map +1 -0
- package/esm/oas/union/Union.js +49 -0
- package/esm/oas/union/toUnion.d.ts +13 -0
- package/esm/oas/union/toUnion.d.ts.map +1 -0
- package/esm/oas/union/toUnion.js +22 -0
- package/esm/oas/union/union-types.d.ts +14 -0
- package/esm/oas/union/union-types.d.ts.map +1 -0
- package/esm/oas/union/union-types.js +12 -0
- package/esm/oas/unknown/Unknown.d.ts +27 -0
- package/esm/oas/unknown/Unknown.d.ts.map +1 -0
- package/esm/oas/unknown/Unknown.js +40 -0
- package/esm/oas/unknown/toUnknown.d.ts +12 -0
- package/esm/oas/unknown/toUnknown.d.ts.map +1 -0
- package/esm/oas/unknown/toUnknown.js +9 -0
- package/esm/oas/unknown/unknown-types.d.ts +10 -0
- package/esm/oas/unknown/unknown-types.d.ts.map +1 -0
- package/esm/oas/unknown/unknown-types.js +8 -0
- package/esm/oas/void/Void.d.ts +28 -0
- package/esm/oas/void/Void.d.ts.map +1 -0
- package/esm/oas/void/Void.js +49 -0
- package/esm/oas-elements/OasBase.d.ts +15 -0
- package/esm/oas-elements/OasBase.d.ts.map +1 -0
- package/esm/oas-elements/OasBase.js +27 -0
- package/esm/package.json +3 -0
- package/esm/parse/parse.d.ts +15 -0
- package/esm/parse/parse.d.ts.map +1 -0
- package/esm/parse/parse.js +69 -0
- package/esm/settings/ContentSettings.d.ts +21 -0
- package/esm/settings/ContentSettings.d.ts.map +1 -0
- package/esm/settings/ContentSettings.js +43 -0
- package/esm/types/CustomValue.d.ts +10 -0
- package/esm/types/CustomValue.d.ts.map +1 -0
- package/esm/types/CustomValue.js +29 -0
- package/esm/types/Method.d.ts +9 -0
- package/esm/types/Method.d.ts.map +1 -0
- package/esm/types/Method.js +31 -0
- package/esm/types/Modifiers.d.ts +6 -0
- package/esm/types/Modifiers.d.ts.map +1 -0
- package/esm/types/Modifiers.js +1 -0
- package/esm/types/TypeSystem.d.ts +73 -0
- package/esm/types/TypeSystem.d.ts.map +1 -0
- package/esm/types/TypeSystem.js +1 -0
- package/esm/types/plugins.d.ts +20 -0
- package/esm/types/plugins.d.ts.map +1 -0
- package/esm/types/plugins.js +1 -0
- package/esm/types/prettierConfig.d.ts +27 -0
- package/esm/types/prettierConfig.d.ts.map +1 -0
- package/esm/types/prettierConfig.js +46 -0
- package/esm/types/settingsTypes.d.ts +55 -0
- package/esm/types/settingsTypes.d.ts.map +1 -0
- package/esm/types/settingsTypes.js +43 -0
- package/esm/typescript/EntityType.d.ts +8 -0
- package/esm/typescript/EntityType.d.ts.map +1 -0
- package/esm/typescript/EntityType.js +21 -0
- package/esm/typescript/FunctionParameter.d.ts +35 -0
- package/esm/typescript/FunctionParameter.d.ts.map +1 -0
- package/esm/typescript/FunctionParameter.js +88 -0
- package/esm/typescript/ReactRouterPathParams.d.ts +20 -0
- package/esm/typescript/ReactRouterPathParams.d.ts.map +1 -0
- package/esm/typescript/ReactRouterPathParams.js +52 -0
- package/esm/typescript/identifiers.d.ts +3 -0
- package/esm/typescript/identifiers.d.ts.map +1 -0
- package/esm/typescript/identifiers.js +7 -0
- package/esm/typescript/keyValues.d.ts +3 -0
- package/esm/typescript/keyValues.d.ts.map +1 -0
- package/esm/typescript/keyValues.js +11 -0
- package/esm/typescript/toDestructuredObject.d.ts +3 -0
- package/esm/typescript/toDestructuredObject.d.ts.map +1 -0
- package/esm/typescript/toDestructuredObject.js +17 -0
- package/esm/typescript/toOperationArg.d.ts +21 -0
- package/esm/typescript/toOperationArg.d.ts.map +1 -0
- package/esm/typescript/toOperationArg.js +56 -0
- package/esm/typescript/toOperationResponse.d.ts +16 -0
- package/esm/typescript/toOperationResponse.d.ts.map +1 -0
- package/esm/typescript/toOperationResponse.js +16 -0
- package/esm/typescript/toParamsObject.d.ts +3 -0
- package/esm/typescript/toParamsObject.d.ts.map +1 -0
- package/esm/typescript/toParamsObject.js +12 -0
- package/esm/typescript/toPathTemplate.d.ts +2 -0
- package/esm/typescript/toPathTemplate.d.ts.map +1 -0
- package/esm/typescript/toPathTemplate.js +3 -0
- package/esm/typescript/withDescription.d.ts +4 -0
- package/esm/typescript/withDescription.d.ts.map +1 -0
- package/esm/typescript/withDescription.js +3 -0
- package/package.json +248 -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 +67 -0
- package/script/context/CoreContext.d.ts.map +1 -0
- package/script/context/CoreContext.js +193 -0
- package/script/context/GenerateContext.d.ts +47 -0
- package/script/context/GenerateContext.d.ts.map +1 -0
- package/script/context/GenerateContext.js +95 -0
- package/script/context/LogStore.d.ts +11 -0
- package/script/context/LogStore.d.ts.map +1 -0
- package/script/context/LogStore.js +52 -0
- package/script/context/ParseContext.d.ts +30 -0
- package/script/context/ParseContext.d.ts.map +1 -0
- package/script/context/ParseContext.js +46 -0
- package/script/context/RenderContext.d.ts +32 -0
- package/script/context/RenderContext.d.ts.map +1 -0
- package/script/context/RenderContext.js +118 -0
- package/script/context/Reporter.d.ts +29 -0
- package/script/context/Reporter.d.ts.map +1 -0
- package/script/context/Reporter.js +44 -0
- package/script/context/Trail.d.ts +28 -0
- package/script/context/Trail.d.ts.map +1 -0
- package/script/context/Trail.js +118 -0
- package/script/context/types.d.ts +10 -0
- package/script/context/types.d.ts.map +1 -0
- package/script/context/types.js +2 -0
- package/script/deps/jsr.io/@std/assert/0.224.0/assert.d.ts +13 -0
- package/script/deps/jsr.io/@std/assert/0.224.0/assert.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/0.224.0/assert.js +23 -0
- package/script/deps/jsr.io/@std/assert/0.224.0/assertion_error.d.ts +15 -0
- package/script/deps/jsr.io/@std/assert/0.224.0/assertion_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/assert/0.224.0/assertion_error.js +23 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/assert_path.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/assert_path.js +11 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/basename.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/basename.js +46 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/common.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/common.js +27 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/constants.d.ts +40 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/constants.js +49 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/dirname.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/dirname.js +12 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/format.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/format.js +24 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/from_file_url.d.ts +3 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/from_file_url.js +13 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/glob_to_reg_exp.d.ts +29 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/glob_to_reg_exp.js +241 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/normalize.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/normalize.js +12 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/normalize_string.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/normalize_string.js +81 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/relative.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/relative.js +13 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/strip_trailing_separators.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/strip_trailing_separators.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/strip_trailing_separators.js +23 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/to_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_common/to_file_url.js +19 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_interface.d.ts +39 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_interface.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_interface.js +4 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_os.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/_os.js +44 -0
- package/script/deps/jsr.io/@std/path/0.224.0/basename.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/0.224.0/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/basename.js +30 -0
- package/script/deps/jsr.io/@std/path/0.224.0/common.d.ts +14 -0
- package/script/deps/jsr.io/@std/path/0.224.0/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/common.js +23 -0
- package/script/deps/jsr.io/@std/path/0.224.0/constants.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/0.224.0/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/constants.js +9 -0
- package/script/deps/jsr.io/@std/path/0.224.0/dirname.d.ts +6 -0
- package/script/deps/jsr.io/@std/path/0.224.0/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/dirname.js +16 -0
- package/script/deps/jsr.io/@std/path/0.224.0/extname.d.ts +7 -0
- package/script/deps/jsr.io/@std/path/0.224.0/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/extname.js +17 -0
- package/script/deps/jsr.io/@std/path/0.224.0/format.d.ts +9 -0
- package/script/deps/jsr.io/@std/path/0.224.0/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/format.js +18 -0
- package/script/deps/jsr.io/@std/path/0.224.0/from_file_url.d.ts +19 -0
- package/script/deps/jsr.io/@std/path/0.224.0/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/from_file_url.js +28 -0
- package/script/deps/jsr.io/@std/path/0.224.0/glob_to_regexp.d.ts +63 -0
- package/script/deps/jsr.io/@std/path/0.224.0/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/glob_to_regexp.js +69 -0
- package/script/deps/jsr.io/@std/path/0.224.0/is_absolute.d.ts +6 -0
- package/script/deps/jsr.io/@std/path/0.224.0/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/is_absolute.js +16 -0
- package/script/deps/jsr.io/@std/path/0.224.0/is_glob.d.ts +3 -0
- package/script/deps/jsr.io/@std/path/0.224.0/is_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/is_glob.js +32 -0
- package/script/deps/jsr.io/@std/path/0.224.0/join.d.ts +6 -0
- package/script/deps/jsr.io/@std/path/0.224.0/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/join.js +16 -0
- package/script/deps/jsr.io/@std/path/0.224.0/join_globs.d.ts +5 -0
- package/script/deps/jsr.io/@std/path/0.224.0/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/join_globs.js +15 -0
- package/script/deps/jsr.io/@std/path/0.224.0/mod.d.ts +57 -0
- package/script/deps/jsr.io/@std/path/0.224.0/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/mod.js +89 -0
- package/script/deps/jsr.io/@std/path/0.224.0/normalize.d.ts +8 -0
- package/script/deps/jsr.io/@std/path/0.224.0/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/normalize.js +18 -0
- package/script/deps/jsr.io/@std/path/0.224.0/normalize_glob.d.ts +5 -0
- package/script/deps/jsr.io/@std/path/0.224.0/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/normalize_glob.js +15 -0
- package/script/deps/jsr.io/@std/path/0.224.0/parse.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/0.224.0/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/parse.js +28 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/_util.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/_util.js +12 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/basename.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/basename.js +31 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/common.d.ts +14 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/common.js +23 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/constants.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/constants.js +8 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/dirname.d.ts +15 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/dirname.js +49 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/extname.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/extname.js +72 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/format.d.ts +7 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/format.js +15 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/from_file_url.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/from_file_url.js +21 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/glob_to_regexp.d.ts +58 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/glob_to_regexp.js +73 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/is_absolute.d.ts +6 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/is_absolute.js +16 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/is_glob.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/is_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/is_glob.js +7 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/join.d.ts +6 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/join.js +30 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/join_globs.d.ts +5 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/join_globs.js +30 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/mod.d.ts +39 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/mod.js +58 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/normalize.d.ts +8 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/normalize.js +29 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/normalize_glob.d.ts +5 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/normalize_glob.js +20 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/parse.d.ts +8 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/parse.js +102 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/relative.d.ts +8 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/relative.js +98 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/resolve.d.ts +6 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/resolve.js +75 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/to_file_url.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/to_file_url.js +26 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/to_namespaced_path.d.ts +6 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/posix/to_namespaced_path.js +14 -0
- package/script/deps/jsr.io/@std/path/0.224.0/relative.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/0.224.0/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/relative.js +23 -0
- package/script/deps/jsr.io/@std/path/0.224.0/resolve.d.ts +6 -0
- package/script/deps/jsr.io/@std/path/0.224.0/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/resolve.js +18 -0
- package/script/deps/jsr.io/@std/path/0.224.0/to_file_url.d.ts +19 -0
- package/script/deps/jsr.io/@std/path/0.224.0/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/to_file_url.js +28 -0
- package/script/deps/jsr.io/@std/path/0.224.0/to_namespaced_path.d.ts +6 -0
- package/script/deps/jsr.io/@std/path/0.224.0/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/to_namespaced_path.js +18 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/_util.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/_util.js +21 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/basename.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/basename.js +43 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/common.d.ts +14 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/common.js +23 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/constants.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/constants.js +8 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/dirname.d.ts +6 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/dirname.js +102 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/extname.d.ts +7 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/extname.js +72 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/format.d.ts +7 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/format.js +15 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/from_file_url.d.ts +15 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/from_file_url.js +30 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/glob_to_regexp.d.ts +58 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/glob_to_regexp.js +73 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/is_absolute.d.ts +6 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/is_absolute.js +31 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/is_glob.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/is_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/is_glob.js +7 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/join.d.ts +6 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/join.js +76 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/join_globs.d.ts +5 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/join_globs.js +30 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/mod.d.ts +39 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/mod.js +58 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/normalize.d.ts +8 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/normalize.js +134 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/normalize_glob.d.ts +5 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/normalize_glob.js +20 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/parse.d.ts +8 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/parse.js +163 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/relative.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/relative.js +125 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/resolve.d.ts +6 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/resolve.js +170 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/to_file_url.d.ts +15 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/to_file_url.js +35 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/to_namespaced_path.d.ts +6 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/0.224.0/windows/to_namespaced_path.js +42 -0
- package/script/dsl/BaseSettings.d.ts +7 -0
- package/script/dsl/BaseSettings.d.ts.map +1 -0
- package/script/dsl/BaseSettings.js +2 -0
- package/script/dsl/Definition.d.ts +20 -0
- package/script/dsl/Definition.d.ts.map +1 -0
- package/script/dsl/Definition.js +44 -0
- package/script/dsl/Identifier.d.ts +17 -0
- package/script/dsl/Identifier.d.ts.map +1 -0
- package/script/dsl/Identifier.js +56 -0
- package/script/dsl/Import.d.ts +20 -0
- package/script/dsl/Import.d.ts.map +1 -0
- package/script/dsl/Import.js +67 -0
- package/script/dsl/ModelCreator.d.ts +53 -0
- package/script/dsl/ModelCreator.d.ts.map +1 -0
- package/script/dsl/ModelCreator.js +2 -0
- package/script/dsl/ModelDriver.d.ts +30 -0
- package/script/dsl/ModelDriver.d.ts.map +1 -0
- package/script/dsl/ModelDriver.js +166 -0
- package/script/dsl/OperationCreator.d.ts +32 -0
- package/script/dsl/OperationCreator.d.ts.map +1 -0
- package/script/dsl/OperationCreator.js +2 -0
- package/script/dsl/OperationDriver.d.ts +27 -0
- package/script/dsl/OperationDriver.d.ts.map +1 -0
- package/script/dsl/OperationDriver.js +133 -0
- package/script/dsl/PluginBase.d.ts +36 -0
- package/script/dsl/PluginBase.d.ts.map +1 -0
- package/script/dsl/PluginBase.js +50 -0
- package/script/dsl/SchematicBase.d.ts +16 -0
- package/script/dsl/SchematicBase.d.ts.map +1 -0
- package/script/dsl/SchematicBase.js +32 -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/constants.d.ts +2 -0
- package/script/dsl/constants.d.ts.map +1 -0
- package/script/dsl/constants.js +4 -0
- package/script/helpers/logStatus.d.ts +17 -0
- package/script/helpers/logStatus.d.ts.map +1 -0
- package/script/helpers/logStatus.js +11 -0
- package/script/helpers/naming.d.ts +9 -0
- package/script/helpers/naming.d.ts.map +1 -0
- package/script/helpers/naming.js +36 -0
- package/script/helpers/refFns.d.ts +8 -0
- package/script/helpers/refFns.d.ts.map +1 -0
- package/script/helpers/refFns.js +30 -0
- package/script/helpers/strings.d.ts +3 -0
- package/script/helpers/strings.d.ts.map +1 -0
- package/script/helpers/strings.js +11 -0
- package/script/helpers/verifyType.d.ts +4 -0
- package/script/helpers/verifyType.d.ts.map +1 -0
- package/script/helpers/verifyType.js +13 -0
- package/script/mod.d.ts +54 -0
- package/script/mod.d.ts.map +1 -0
- package/script/mod.js +69 -0
- package/script/oas/array/Array.d.ts +34 -0
- package/script/oas/array/Array.d.ts.map +1 -0
- package/script/oas/array/Array.js +53 -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 +12 -0
- package/script/oas/array/toArray.d.ts.map +1 -0
- package/script/oas/array/toArray.js +24 -0
- package/script/oas/boolean/Boolean.d.ts +29 -0
- package/script/oas/boolean/Boolean.d.ts.map +1 -0
- package/script/oas/boolean/Boolean.js +47 -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 +12 -0
- package/script/oas/boolean/toBoolean.d.ts.map +1 -0
- package/script/oas/boolean/toBoolean.js +14 -0
- package/script/oas/components/Components.d.ts +50 -0
- package/script/oas/components/Components.d.ts.map +1 -0
- package/script/oas/components/Components.js +56 -0
- package/script/oas/components/toComponentsV3.d.ts +12 -0
- package/script/oas/components/toComponentsV3.d.ts.map +1 -0
- package/script/oas/components/toComponentsV3.js +48 -0
- package/script/oas/contact/contact-types.d.ts +9 -0
- package/script/oas/contact/contact-types.d.ts.map +1 -0
- package/script/oas/contact/contact-types.js +10 -0
- package/script/oas/discriminator/Discriminator.d.ts +21 -0
- package/script/oas/discriminator/Discriminator.d.ts.map +1 -0
- package/script/oas/discriminator/Discriminator.js +29 -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 +12 -0
- package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -0
- package/script/oas/discriminator/toDiscriminatorV3.js +20 -0
- package/script/oas/document/Document.d.ts +41 -0
- package/script/oas/document/Document.d.ts.map +1 -0
- package/script/oas/document/Document.js +49 -0
- package/script/oas/document/toDocumentV3.d.ts +12 -0
- package/script/oas/document/toDocumentV3.d.ts.map +1 -0
- package/script/oas/document/toDocumentV3.js +28 -0
- package/script/oas/example/Example.d.ts +36 -0
- package/script/oas/example/Example.d.ts.map +1 -0
- package/script/oas/example/Example.js +49 -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 +27 -0
- package/script/oas/example/toExamplesV3.d.ts.map +1 -0
- package/script/oas/example/toExamplesV3.js +51 -0
- package/script/oas/header/Header.d.ts +52 -0
- package/script/oas/header/Header.d.ts.map +1 -0
- package/script/oas/header/Header.js +70 -0
- package/script/oas/header/toHeadersV3.d.ts +13 -0
- package/script/oas/header/toHeadersV3.d.ts.map +1 -0
- package/script/oas/header/toHeadersV3.js +46 -0
- package/script/oas/info/Info.d.ts +33 -0
- package/script/oas/info/Info.d.ts.map +1 -0
- package/script/oas/info/Info.js +44 -0
- package/script/oas/info/toInfoV3.d.ts +12 -0
- package/script/oas/info/toInfoV3.d.ts.map +1 -0
- package/script/oas/info/toInfoV3.js +26 -0
- package/script/oas/integer/Integer.d.ts +33 -0
- package/script/oas/integer/Integer.d.ts.map +1 -0
- package/script/oas/integer/Integer.js +53 -0
- package/script/oas/integer/integer-types.d.ts +12 -0
- package/script/oas/integer/integer-types.d.ts.map +1 -0
- package/script/oas/integer/integer-types.js +21 -0
- package/script/oas/integer/toInteger.d.ts +12 -0
- package/script/oas/integer/toInteger.d.ts.map +1 -0
- package/script/oas/integer/toInteger.js +17 -0
- package/script/oas/intersection/Intersection.d.ts +35 -0
- package/script/oas/intersection/Intersection.d.ts.map +1 -0
- package/script/oas/intersection/Intersection.js +53 -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 +13 -0
- package/script/oas/intersection/toIntersection.d.ts.map +1 -0
- package/script/oas/intersection/toIntersection.js +26 -0
- package/script/oas/license/license-types.d.ts +9 -0
- package/script/oas/license/license-types.d.ts.map +1 -0
- package/script/oas/license/license-types.js +10 -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 +28 -0
- package/script/oas/mediaType/MediaType.d.ts.map +1 -0
- package/script/oas/mediaType/MediaType.js +35 -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 +25 -0
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -0
- package/script/oas/mediaType/toMediaTypeItemV3.js +43 -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 +29 -0
- package/script/oas/number/Number.d.ts.map +1 -0
- package/script/oas/number/Number.js +47 -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 +12 -0
- package/script/oas/number/toNumber.d.ts.map +1 -0
- package/script/oas/number/toNumber.js +14 -0
- package/script/oas/object/Object.d.ts +42 -0
- package/script/oas/object/Object.d.ts.map +1 -0
- package/script/oas/object/Object.js +65 -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 +13 -0
- package/script/oas/object/toAdditionalPropertiesV3.d.ts.map +1 -0
- package/script/oas/object/toAdditionalPropertiesV3.js +18 -0
- package/script/oas/object/toObject.d.ts +12 -0
- package/script/oas/object/toObject.d.ts.map +1 -0
- package/script/oas/object/toObject.js +27 -0
- package/script/oas/operation/Operation.d.ts +54 -0
- package/script/oas/operation/Operation.d.ts.map +1 -0
- package/script/oas/operation/Operation.js +97 -0
- package/script/oas/operation/toOperationsV3.d.ts +26 -0
- package/script/oas/operation/toOperationsV3.d.ts.map +1 -0
- package/script/oas/operation/toOperationsV3.js +80 -0
- package/script/oas/parameter/Parameter.d.ts +56 -0
- package/script/oas/parameter/Parameter.d.ts.map +1 -0
- package/script/oas/parameter/Parameter.js +81 -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 +25 -0
- package/script/oas/parameter/toParameterV3.d.ts.map +1 -0
- package/script/oas/parameter/toParameterV3.js +94 -0
- package/script/oas/pathItem/PathItem.d.ts +27 -0
- package/script/oas/pathItem/PathItem.d.ts.map +1 -0
- package/script/oas/pathItem/PathItem.js +35 -0
- package/script/oas/pathItem/toPathItemV3.d.ts +12 -0
- package/script/oas/pathItem/toPathItemV3.d.ts.map +1 -0
- package/script/oas/pathItem/toPathItemV3.js +19 -0
- package/script/oas/ref/Ref.d.ts +42 -0
- package/script/oas/ref/Ref.d.ts.map +1 -0
- package/script/oas/ref/Ref.js +93 -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 +14 -0
- package/script/oas/ref/toRefV31.d.ts.map +1 -0
- package/script/oas/ref/toRefV31.js +20 -0
- package/script/oas/requestBody/RequestBody.d.ts +31 -0
- package/script/oas/requestBody/RequestBody.d.ts.map +1 -0
- package/script/oas/requestBody/RequestBody.js +44 -0
- package/script/oas/requestBody/toRequestBodiesV3.d.ts +20 -0
- package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -0
- package/script/oas/requestBody/toRequestBodiesV3.js +56 -0
- package/script/oas/response/Response.d.ts +32 -0
- package/script/oas/response/Response.d.ts.map +1 -0
- package/script/oas/response/Response.js +44 -0
- package/script/oas/response/toResponseV3.d.ts +25 -0
- package/script/oas/response/toResponseV3.d.ts.map +1 -0
- package/script/oas/response/toResponseV3.js +41 -0
- package/script/oas/schema/Schema.d.ts +11 -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 +37 -0
- package/script/oas/schema/toSchemasV3.d.ts.map +1 -0
- package/script/oas/schema/toSchemasV3.js +110 -0
- package/script/oas/string/String.d.ts +33 -0
- package/script/oas/string/String.d.ts.map +1 -0
- package/script/oas/string/String.js +56 -0
- package/script/oas/string/string-types.d.ts +13 -0
- package/script/oas/string/string-types.d.ts.map +1 -0
- package/script/oas/string/string-types.js +32 -0
- package/script/oas/string/toString.d.ts +12 -0
- package/script/oas/string/toString.d.ts.map +1 -0
- package/script/oas/string/toString.js +15 -0
- package/script/oas/tag/Tag.d.ts +23 -0
- package/script/oas/tag/Tag.d.ts.map +1 -0
- package/script/oas/tag/Tag.js +32 -0
- package/script/oas/tag/toTagsV3.d.ts +12 -0
- package/script/oas/tag/toTagsV3.d.ts.map +1 -0
- package/script/oas/tag/toTagsV3.js +23 -0
- package/script/oas/union/Union.d.ts +35 -0
- package/script/oas/union/Union.d.ts.map +1 -0
- package/script/oas/union/Union.js +53 -0
- package/script/oas/union/toUnion.d.ts +13 -0
- package/script/oas/union/toUnion.d.ts.map +1 -0
- package/script/oas/union/toUnion.js +26 -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 +27 -0
- package/script/oas/unknown/Unknown.d.ts.map +1 -0
- package/script/oas/unknown/Unknown.js +44 -0
- package/script/oas/unknown/toUnknown.d.ts +12 -0
- package/script/oas/unknown/toUnknown.d.ts.map +1 -0
- package/script/oas/unknown/toUnknown.js +13 -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 +28 -0
- package/script/oas/void/Void.d.ts.map +1 -0
- package/script/oas/void/Void.js +53 -0
- package/script/oas-elements/OasBase.d.ts +15 -0
- package/script/oas-elements/OasBase.d.ts.map +1 -0
- package/script/oas-elements/OasBase.js +31 -0
- package/script/package.json +3 -0
- package/script/parse/parse.d.ts +15 -0
- package/script/parse/parse.d.ts.map +1 -0
- package/script/parse/parse.js +74 -0
- package/script/settings/ContentSettings.d.ts +21 -0
- package/script/settings/ContentSettings.d.ts.map +1 -0
- package/script/settings/ContentSettings.js +47 -0
- package/script/types/CustomValue.d.ts +10 -0
- package/script/types/CustomValue.d.ts.map +1 -0
- package/script/types/CustomValue.js +34 -0
- package/script/types/Method.d.ts +9 -0
- package/script/types/Method.d.ts.map +1 -0
- package/script/types/Method.js +34 -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/TypeSystem.d.ts +73 -0
- package/script/types/TypeSystem.d.ts.map +1 -0
- package/script/types/TypeSystem.js +2 -0
- package/script/types/plugins.d.ts +20 -0
- package/script/types/plugins.d.ts.map +1 -0
- package/script/types/plugins.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/types/settingsTypes.d.ts +55 -0
- package/script/types/settingsTypes.d.ts.map +1 -0
- package/script/types/settingsTypes.js +46 -0
- package/script/typescript/EntityType.d.ts +8 -0
- package/script/typescript/EntityType.d.ts.map +1 -0
- package/script/typescript/EntityType.js +25 -0
- package/script/typescript/FunctionParameter.d.ts +35 -0
- package/script/typescript/FunctionParameter.d.ts.map +1 -0
- package/script/typescript/FunctionParameter.js +95 -0
- package/script/typescript/ReactRouterPathParams.d.ts +20 -0
- package/script/typescript/ReactRouterPathParams.d.ts.map +1 -0
- package/script/typescript/ReactRouterPathParams.js +56 -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/toDestructuredObject.d.ts +3 -0
- package/script/typescript/toDestructuredObject.d.ts.map +1 -0
- package/script/typescript/toDestructuredObject.js +21 -0
- package/script/typescript/toOperationArg.d.ts +21 -0
- package/script/typescript/toOperationArg.d.ts.map +1 -0
- package/script/typescript/toOperationArg.js +63 -0
- package/script/typescript/toOperationResponse.d.ts +16 -0
- package/script/typescript/toOperationResponse.d.ts.map +1 -0
- package/script/typescript/toOperationResponse.js +20 -0
- package/script/typescript/toParamsObject.d.ts +3 -0
- package/script/typescript/toParamsObject.d.ts.map +1 -0
- package/script/typescript/toParamsObject.js +16 -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,159 @@
|
|
|
1
|
+
import { ContentSettings } from '../settings/ContentSettings.js';
|
|
2
|
+
import { join, normalize } from '../deps/jsr.io/@std/path/0.224.0/mod.js';
|
|
3
|
+
import invariant from 'tiny-invariant';
|
|
4
|
+
import { Definition } from './Definition.js';
|
|
5
|
+
import { Identifier } from './Identifier.js';
|
|
6
|
+
import { match } from 'ts-pattern';
|
|
7
|
+
import { verifyType } from '../helpers/verifyType.js';
|
|
8
|
+
export class ModelDriver {
|
|
9
|
+
constructor({ context, creator, refName, generation, destinationPath, operationTag }) {
|
|
10
|
+
Object.defineProperty(this, "context", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: void 0
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(this, "creator", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
configurable: true,
|
|
19
|
+
writable: true,
|
|
20
|
+
value: void 0
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(this, "refName", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
configurable: true,
|
|
25
|
+
writable: true,
|
|
26
|
+
value: void 0
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(this, "schema", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
configurable: true,
|
|
31
|
+
writable: true,
|
|
32
|
+
value: void 0
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(this, "settings", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true,
|
|
38
|
+
value: void 0
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(this, "destinationPath", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
configurable: true,
|
|
43
|
+
writable: true,
|
|
44
|
+
value: void 0
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(this, "operationTag", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
configurable: true,
|
|
49
|
+
writable: true,
|
|
50
|
+
value: void 0
|
|
51
|
+
});
|
|
52
|
+
const schema = context.schemaModel.components?.schemas?.[refName]?.resolve();
|
|
53
|
+
invariant(schema, `Schema not found for refName: ${refName}`);
|
|
54
|
+
this.context = context;
|
|
55
|
+
this.creator = creator;
|
|
56
|
+
this.refName = refName;
|
|
57
|
+
this.schema = schema;
|
|
58
|
+
this.destinationPath = destinationPath;
|
|
59
|
+
this.settings = buildModelSettings({
|
|
60
|
+
context,
|
|
61
|
+
refName,
|
|
62
|
+
schema,
|
|
63
|
+
creator,
|
|
64
|
+
operationTag
|
|
65
|
+
});
|
|
66
|
+
if (generation !== 'lazy') {
|
|
67
|
+
this.apply({ force: generation === 'force', destinationPath });
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
get name() {
|
|
71
|
+
return this.settings.name;
|
|
72
|
+
}
|
|
73
|
+
get exportPath() {
|
|
74
|
+
return this.settings.exportPath;
|
|
75
|
+
}
|
|
76
|
+
get value() {
|
|
77
|
+
const value = this.apply({
|
|
78
|
+
force: true,
|
|
79
|
+
destinationPath: this.destinationPath
|
|
80
|
+
});
|
|
81
|
+
verifyType(value, this.creator);
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
apply({ force, destinationPath } = {}) {
|
|
85
|
+
const { name, exportPath, selected } = this.settings;
|
|
86
|
+
if (!selected && !force) {
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const existing = this.context.pick({ name, exportPath });
|
|
90
|
+
if (!existing) {
|
|
91
|
+
const generated = this.creator.create({
|
|
92
|
+
refName: this.refName,
|
|
93
|
+
context: this.context,
|
|
94
|
+
schema: this.schema,
|
|
95
|
+
settings: this.settings,
|
|
96
|
+
destinationPath: this.settings.exportPath,
|
|
97
|
+
operationTag: this.operationTag
|
|
98
|
+
});
|
|
99
|
+
// @TODO This feels hacky and there is probably a better way to do this
|
|
100
|
+
const tsType = generated &&
|
|
101
|
+
typeof generated === 'object' &&
|
|
102
|
+
'tsType' in generated &&
|
|
103
|
+
typeof generated.tsType === 'string'
|
|
104
|
+
? generated.tsType
|
|
105
|
+
: undefined;
|
|
106
|
+
const identifier = match(this.creator.entityType.type)
|
|
107
|
+
.with('value', () => Identifier.createValue({ name, tsType }))
|
|
108
|
+
.with('type', () => Identifier.createType(name))
|
|
109
|
+
.exhaustive();
|
|
110
|
+
const definition = Definition.create({
|
|
111
|
+
context: this.context,
|
|
112
|
+
value: generated,
|
|
113
|
+
identifier
|
|
114
|
+
});
|
|
115
|
+
this.context.register({
|
|
116
|
+
definitions: [definition],
|
|
117
|
+
destinationPath: exportPath
|
|
118
|
+
});
|
|
119
|
+
if (destinationPath &&
|
|
120
|
+
normalize(exportPath) !== normalize(destinationPath)) {
|
|
121
|
+
this.context.register({
|
|
122
|
+
imports: { [exportPath]: [name] },
|
|
123
|
+
destinationPath
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
const updated = this.context.pick({ name, exportPath });
|
|
128
|
+
invariant(updated, 'Expected defininition not found');
|
|
129
|
+
return updated.value;
|
|
130
|
+
}
|
|
131
|
+
static create(args) {
|
|
132
|
+
return new ModelDriver(args);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
const buildModelSettings = ({ context, refName, schema, creator, operationTag }) => {
|
|
136
|
+
const { root, models } = context.settings?.modelPlugins?.[creator.id] ?? {};
|
|
137
|
+
const operationSettings = models?.[refName];
|
|
138
|
+
const exportPath = operationSettings?.exportPath
|
|
139
|
+
? join(root?.exportPath ?? '', operationSettings?.exportPath)
|
|
140
|
+
: undefined;
|
|
141
|
+
const baseSettings = {
|
|
142
|
+
exportPath,
|
|
143
|
+
selected: operationSettings?.selected ?? root?.defaultSelected ?? !context.settings,
|
|
144
|
+
name: operationSettings?.renameTo,
|
|
145
|
+
importFrom: operationSettings?.importFrom
|
|
146
|
+
};
|
|
147
|
+
const e = creator.toExportPath({
|
|
148
|
+
refName,
|
|
149
|
+
schema,
|
|
150
|
+
baseSettings,
|
|
151
|
+
operationTag
|
|
152
|
+
});
|
|
153
|
+
return ContentSettings.create({
|
|
154
|
+
name: creator.toName({ refName, schema, baseSettings }),
|
|
155
|
+
selected: creator.isSelected({ refName, schema, baseSettings }),
|
|
156
|
+
exportPath: e,
|
|
157
|
+
importFrom: baseSettings.importFrom ?? e
|
|
158
|
+
});
|
|
159
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { CoreContext } from '../context/CoreContext.js';
|
|
2
|
+
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
3
|
+
import type { ContentSettings } from '../settings/ContentSettings.js';
|
|
4
|
+
import type { BaseSettings } from './BaseSettings.js';
|
|
5
|
+
type CreateOperationFnArgs = {
|
|
6
|
+
context: CoreContext;
|
|
7
|
+
settings: ContentSettings;
|
|
8
|
+
operation: OasOperation;
|
|
9
|
+
};
|
|
10
|
+
export type ToOperationNameArgs = {
|
|
11
|
+
operation: OasOperation;
|
|
12
|
+
baseSettings: BaseSettings;
|
|
13
|
+
};
|
|
14
|
+
export type ToOperationExportPathArgs = {
|
|
15
|
+
operation: OasOperation;
|
|
16
|
+
baseSettings: BaseSettings;
|
|
17
|
+
};
|
|
18
|
+
export type IsOperationSelectedArgs = {
|
|
19
|
+
operation: OasOperation;
|
|
20
|
+
baseSettings: BaseSettings;
|
|
21
|
+
};
|
|
22
|
+
export type OperationCreator<V> = {
|
|
23
|
+
prototype: V;
|
|
24
|
+
} & {
|
|
25
|
+
id: string;
|
|
26
|
+
create: (args: CreateOperationFnArgs) => V;
|
|
27
|
+
toName: ({ operation, baseSettings }: ToOperationNameArgs) => string;
|
|
28
|
+
toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
|
|
29
|
+
isSelected: ({ operation, baseSettings }: IsOperationSelectedArgs) => boolean;
|
|
30
|
+
} & Function;
|
|
31
|
+
export {};
|
|
32
|
+
//# sourceMappingURL=OperationCreator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationCreator.d.ts","sourceRoot":"","sources":["../../src/dsl/OperationCreator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AACrE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAErD,KAAK,qBAAqB,GAAG;IAC3B,OAAO,EAAE,WAAW,CAAA;IACpB,QAAQ,EAAE,eAAe,CAAA;IACzB,SAAS,EAAE,YAAY,CAAA;CACxB,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,YAAY,CAAA;IACvB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,yBAAyB,GAAG;IACtC,SAAS,EAAE,YAAY,CAAA;IACvB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,uBAAuB,GAAG;IACpC,SAAS,EAAE,YAAY,CAAA;IACvB,YAAY,EAAE,YAAY,CAAA;CAC3B,CAAA;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAAE,SAAS,EAAE,CAAC,CAAA;CAAE,GAAG;IACnD,EAAE,EAAE,MAAM,CAAA;IACV,MAAM,EAAE,CAAC,IAAI,EAAE,qBAAqB,KAAK,CAAC,CAAA;IAC1C,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,mBAAmB,KAAK,MAAM,CAAA;IACpE,YAAY,EAAE,CAAC,EACb,SAAS,EACT,YAAY,EACb,EAAE,yBAAyB,KAAK,MAAM,CAAA;IACvC,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,uBAAuB,KAAK,OAAO,CAAA;CAE9E,GAAG,QAAQ,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { OperationCreator } from './OperationCreator.js';
|
|
2
|
+
import type { CoreContext } from '../context/CoreContext.js';
|
|
3
|
+
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
4
|
+
import { ContentSettings } from '../settings/ContentSettings.js';
|
|
5
|
+
import { Stringable } from './Stringable.js';
|
|
6
|
+
type CreateOperationArgs<V extends Stringable> = {
|
|
7
|
+
context: CoreContext;
|
|
8
|
+
creator: OperationCreator<V>;
|
|
9
|
+
operation: OasOperation;
|
|
10
|
+
generation?: 'force' | 'lazy';
|
|
11
|
+
destinationPath?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare class OperationDriver<V extends Stringable> {
|
|
14
|
+
context: CoreContext;
|
|
15
|
+
creator: OperationCreator<V>;
|
|
16
|
+
operation: OasOperation;
|
|
17
|
+
settings: ContentSettings;
|
|
18
|
+
destinationPath?: string;
|
|
19
|
+
private constructor();
|
|
20
|
+
get name(): string;
|
|
21
|
+
get exportPath(): string;
|
|
22
|
+
get value(): V;
|
|
23
|
+
private apply;
|
|
24
|
+
static create<V extends Stringable>(args: CreateOperationArgs<V>): OperationDriver<V>;
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=OperationDriver.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OperationDriver.d.ts","sourceRoot":"","sources":["../../src/dsl/OperationDriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAC7D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAKhE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAG5C,KAAK,mBAAmB,CAAC,CAAC,SAAS,UAAU,IAAI;IAC/C,OAAO,EAAE,WAAW,CAAA;IACpB,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;IAC5B,SAAS,EAAE,YAAY,CAAA;IACvB,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC7B,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB,CAAA;AAOD,qBAAa,eAAe,CAAC,CAAC,SAAS,UAAU;IAC/C,OAAO,EAAE,WAAW,CAAA;IACpB,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAA;IAC5B,SAAS,EAAE,YAAY,CAAA;IACvB,QAAQ,EAAE,eAAe,CAAA;IACzB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,OAAO;IAuBP,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED,IAAI,UAAU,IAAI,MAAM,CAEvB;IAED,IAAI,KAAK,IAAI,CAAC,CASb;IAED,OAAO,CAAC,KAAK;IAmDb,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,UAAU,EAChC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,GAC3B,eAAe,CAAC,CAAC,CAAC;CAGtB"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { ContentSettings } from '../settings/ContentSettings.js';
|
|
2
|
+
import { join, normalize } from '../deps/jsr.io/@std/path/0.224.0/mod.js';
|
|
3
|
+
import invariant from 'tiny-invariant';
|
|
4
|
+
import { Definition } from './Definition.js';
|
|
5
|
+
import { Identifier } from './Identifier.js';
|
|
6
|
+
import { verifyType } from '../helpers/verifyType.js';
|
|
7
|
+
export class OperationDriver {
|
|
8
|
+
constructor({ context, creator, operation, generation, destinationPath }) {
|
|
9
|
+
Object.defineProperty(this, "context", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
configurable: true,
|
|
12
|
+
writable: true,
|
|
13
|
+
value: void 0
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(this, "creator", {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
configurable: true,
|
|
18
|
+
writable: true,
|
|
19
|
+
value: void 0
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(this, "operation", {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
configurable: true,
|
|
24
|
+
writable: true,
|
|
25
|
+
value: void 0
|
|
26
|
+
});
|
|
27
|
+
Object.defineProperty(this, "settings", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true,
|
|
31
|
+
value: void 0
|
|
32
|
+
});
|
|
33
|
+
Object.defineProperty(this, "destinationPath", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true,
|
|
37
|
+
value: void 0
|
|
38
|
+
});
|
|
39
|
+
this.context = context;
|
|
40
|
+
this.creator = creator;
|
|
41
|
+
this.operation = operation;
|
|
42
|
+
this.destinationPath = destinationPath;
|
|
43
|
+
this.settings = buildOperationSettings({
|
|
44
|
+
context,
|
|
45
|
+
operation,
|
|
46
|
+
creator
|
|
47
|
+
});
|
|
48
|
+
if (generation !== 'lazy') {
|
|
49
|
+
this.apply({ force: generation === 'force', destinationPath });
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
get name() {
|
|
53
|
+
return this.settings.name;
|
|
54
|
+
}
|
|
55
|
+
get exportPath() {
|
|
56
|
+
return this.settings.exportPath;
|
|
57
|
+
}
|
|
58
|
+
get value() {
|
|
59
|
+
const value = this.apply({
|
|
60
|
+
force: true,
|
|
61
|
+
destinationPath: this.destinationPath
|
|
62
|
+
});
|
|
63
|
+
verifyType(value, this.creator);
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
apply({ force, destinationPath } = {}) {
|
|
67
|
+
const { name, exportPath, selected } = this.settings;
|
|
68
|
+
if (!selected && !force) {
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
const existing = this.context.pick({ name, exportPath });
|
|
72
|
+
if (!existing) {
|
|
73
|
+
const generated = this.creator.create({
|
|
74
|
+
context: this.context,
|
|
75
|
+
operation: this.operation,
|
|
76
|
+
settings: this.settings
|
|
77
|
+
});
|
|
78
|
+
// @TODO This feels hacky and there is probably a better way to do this
|
|
79
|
+
const tsType = 'tsType' in generated && typeof generated.tsType === 'string'
|
|
80
|
+
? generated.tsType
|
|
81
|
+
: undefined;
|
|
82
|
+
const definition = Definition.create({
|
|
83
|
+
context: this.context,
|
|
84
|
+
value: generated,
|
|
85
|
+
identifier: Identifier.createValue({ name, tsType })
|
|
86
|
+
});
|
|
87
|
+
this.context.register({
|
|
88
|
+
definitions: [definition],
|
|
89
|
+
destinationPath: exportPath
|
|
90
|
+
});
|
|
91
|
+
if (destinationPath &&
|
|
92
|
+
normalize(exportPath) !== normalize(destinationPath)) {
|
|
93
|
+
this.context.register({
|
|
94
|
+
imports: { [exportPath]: [name] },
|
|
95
|
+
destinationPath
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
const updated = this.context.pick({ name, exportPath });
|
|
100
|
+
invariant(updated, 'Expected defininition not found');
|
|
101
|
+
return updated.value;
|
|
102
|
+
}
|
|
103
|
+
static create(args) {
|
|
104
|
+
return new OperationDriver(args);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
const buildOperationSettings = ({ context, operation, creator }) => {
|
|
108
|
+
const { root, operations } = context.settings?.operationPlugins?.[creator.id] ?? {};
|
|
109
|
+
const operationSettings = operations?.[operation.path]?.[operation.method];
|
|
110
|
+
const exportPath = operationSettings?.exportPath
|
|
111
|
+
? join(root?.exportPath ?? '', operationSettings?.exportPath)
|
|
112
|
+
: undefined;
|
|
113
|
+
const baseSettings = {
|
|
114
|
+
exportPath,
|
|
115
|
+
selected: operationSettings?.selected ?? root?.defaultSelected ?? !context.settings,
|
|
116
|
+
name: operationSettings?.renameTo,
|
|
117
|
+
importFrom: operationSettings?.importFrom
|
|
118
|
+
};
|
|
119
|
+
const e = creator.toExportPath({ operation, baseSettings });
|
|
120
|
+
return ContentSettings.create({
|
|
121
|
+
name: creator.toName({ operation, baseSettings }),
|
|
122
|
+
selected: creator.isSelected({ operation, baseSettings }),
|
|
123
|
+
exportPath: e,
|
|
124
|
+
importFrom: baseSettings.importFrom ?? e
|
|
125
|
+
});
|
|
126
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { Stringable } from './Stringable.js';
|
|
2
|
+
import type { CoreContext } from '../context/CoreContext.js';
|
|
3
|
+
import { OperationCreator } from './OperationCreator.js';
|
|
4
|
+
import { OasOperation } from '../oas/operation/Operation.js';
|
|
5
|
+
import { ContentSettings } from '../settings/ContentSettings.js';
|
|
6
|
+
import { OperationDriver } from './OperationDriver.js';
|
|
7
|
+
import { ModelDriver } from './ModelDriver.js';
|
|
8
|
+
import { ModelCreator } from './ModelCreator.js';
|
|
9
|
+
import { SchematicBase } from './SchematicBase.js';
|
|
10
|
+
import type { RegisterArgs } from '../context/GenerateContext.js';
|
|
11
|
+
type PluginBaseArgs = {
|
|
12
|
+
context: CoreContext;
|
|
13
|
+
settings: ContentSettings;
|
|
14
|
+
children?: Stringable | Stringable[];
|
|
15
|
+
};
|
|
16
|
+
type FromOperationOptions = {
|
|
17
|
+
destinationPath?: string;
|
|
18
|
+
generation?: 'force' | 'lazy';
|
|
19
|
+
operation: OasOperation;
|
|
20
|
+
};
|
|
21
|
+
type FromModelOptions = {
|
|
22
|
+
destinationPath?: string;
|
|
23
|
+
generation?: 'force' | 'lazy';
|
|
24
|
+
refName: string;
|
|
25
|
+
operationTag?: string;
|
|
26
|
+
};
|
|
27
|
+
export declare class PluginBase extends SchematicBase implements Stringable {
|
|
28
|
+
settings: ContentSettings;
|
|
29
|
+
children: Stringable[];
|
|
30
|
+
constructor({ context, settings, children }: PluginBaseArgs);
|
|
31
|
+
fromOperation<V extends Stringable>(creator: OperationCreator<V>, { operation, destinationPath, generation }: FromOperationOptions): OperationDriver<V>;
|
|
32
|
+
fromModel<V extends Stringable>(creator: ModelCreator<V>, { refName, destinationPath, generation, operationTag }: FromModelOptions): ModelDriver<V>;
|
|
33
|
+
register(args: Partial<RegisterArgs>): void;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
36
|
+
//# sourceMappingURL=PluginBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PluginBase.d.ts","sourceRoot":"","sources":["../../src/dsl/PluginBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,KAAK,cAAc,GAAG;IACpB,OAAO,EAAE,WAAW,CAAA;IACpB,QAAQ,EAAE,eAAe,CAAA;IACzB,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,CAAA;CACrC,CAAA;AAED,KAAK,oBAAoB,GAAG;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC7B,SAAS,EAAE,YAAY,CAAA;CACxB,CAAA;AAED,KAAK,gBAAgB,GAAG;IACtB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC7B,OAAO,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;CACtB,CAAA;AAED,qBAAa,UAAW,SAAQ,aAAc,YAAW,UAAU;IACjE,QAAQ,EAAE,eAAe,CAAA;IACzB,QAAQ,EAAE,UAAU,EAAE,CAAK;gBAEf,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAa,EAAE,EAAE,cAAc;IAMhE,aAAa,CAAC,CAAC,SAAS,UAAU,EAChC,OAAO,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAC5B,EAAE,SAAS,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,oBAAoB;IAWlE,SAAS,CAAC,CAAC,SAAS,UAAU,EAC5B,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EACxB,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,YAAY,EAAE,EAAE,gBAAgB;IAY1E,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,YAAY,CAAC;CAMrC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { OperationDriver } from './OperationDriver.js';
|
|
2
|
+
import { ModelDriver } from './ModelDriver.js';
|
|
3
|
+
import { SchematicBase } from './SchematicBase.js';
|
|
4
|
+
export class PluginBase extends SchematicBase {
|
|
5
|
+
constructor({ context, settings, children = [] }) {
|
|
6
|
+
super({ context, children });
|
|
7
|
+
Object.defineProperty(this, "settings", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
configurable: true,
|
|
10
|
+
writable: true,
|
|
11
|
+
value: void 0
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(this, "children", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
configurable: true,
|
|
16
|
+
writable: true,
|
|
17
|
+
value: []
|
|
18
|
+
});
|
|
19
|
+
this.settings = settings;
|
|
20
|
+
}
|
|
21
|
+
fromOperation(creator, { operation, destinationPath, generation }) {
|
|
22
|
+
return OperationDriver.create({
|
|
23
|
+
creator,
|
|
24
|
+
operation,
|
|
25
|
+
generation: generation ?? 'force',
|
|
26
|
+
context: this.context,
|
|
27
|
+
destinationPath: destinationPath ?? this.settings.exportPath
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
fromModel(creator, { refName, destinationPath, generation, operationTag }) {
|
|
31
|
+
return ModelDriver.create({
|
|
32
|
+
creator,
|
|
33
|
+
refName,
|
|
34
|
+
generation: generation ?? 'force',
|
|
35
|
+
context: this.context,
|
|
36
|
+
destinationPath: destinationPath ?? this.settings.exportPath,
|
|
37
|
+
operationTag
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
register(args) {
|
|
41
|
+
this.context.register({
|
|
42
|
+
...args,
|
|
43
|
+
destinationPath: args.destinationPath ?? this.settings.exportPath
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { RegisterArgs } from '../context/GenerateContext.js';
|
|
2
|
+
import type { Stringable } from './Stringable.js';
|
|
3
|
+
import type { CoreContext } from '../context/CoreContext.js';
|
|
4
|
+
type SchematicBaseArgs = {
|
|
5
|
+
context: CoreContext;
|
|
6
|
+
children?: Stringable | Stringable[];
|
|
7
|
+
};
|
|
8
|
+
export declare class SchematicBase implements Stringable {
|
|
9
|
+
context: CoreContext;
|
|
10
|
+
children: Stringable[];
|
|
11
|
+
constructor({ context, children }: SchematicBaseArgs);
|
|
12
|
+
renderChildren(separator?: string): string;
|
|
13
|
+
register(args: RegisterArgs): void;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=SchematicBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SchematicBase.d.ts","sourceRoot":"","sources":["../../src/dsl/SchematicBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5D,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,WAAW,CAAA;IACpB,QAAQ,CAAC,EAAE,UAAU,GAAG,UAAU,EAAE,CAAA;CACrC,CAAA;AAED,qBAAa,aAAc,YAAW,UAAU;IAC9C,OAAO,EAAE,WAAW,CAAA;IACpB,QAAQ,EAAE,UAAU,EAAE,CAAK;gBAEf,EAAE,OAAO,EAAE,QAAa,EAAE,EAAE,iBAAiB;IAMzD,cAAc,CAAC,SAAS,GAAE,MAAW,GAAG,MAAM;IAO9C,QAAQ,CAAC,IAAI,EAAE,YAAY;CAG5B"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { EMPTY } from './constants.js';
|
|
2
|
+
export class SchematicBase {
|
|
3
|
+
constructor({ context, children = [] }) {
|
|
4
|
+
Object.defineProperty(this, "context", {
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true,
|
|
8
|
+
value: void 0
|
|
9
|
+
});
|
|
10
|
+
Object.defineProperty(this, "children", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
configurable: true,
|
|
13
|
+
writable: true,
|
|
14
|
+
value: []
|
|
15
|
+
});
|
|
16
|
+
this.context = context;
|
|
17
|
+
this.children = this.children.concat(children);
|
|
18
|
+
}
|
|
19
|
+
renderChildren(separator = '') {
|
|
20
|
+
return this.children
|
|
21
|
+
.filter(child => child !== EMPTY)
|
|
22
|
+
.map(child => child.toString())
|
|
23
|
+
.join(separator);
|
|
24
|
+
}
|
|
25
|
+
register(args) {
|
|
26
|
+
this.context.register(args);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stringable.d.ts","sourceRoot":"","sources":["../../src/dsl/Stringable.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,EAAE,MAAM,MAAM,CAAA;CACvB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/dsl/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,KAAK,cAAc,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const EMPTY = '__EMPTY__';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
2
|
+
type LogOperationStatusArgs = {
|
|
3
|
+
index: number;
|
|
4
|
+
status: 'success' | 'error' | 'skip';
|
|
5
|
+
operation: OasOperation;
|
|
6
|
+
message?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const logOperationStatus: ({ index, status, operation, message }: LogOperationStatusArgs) => void;
|
|
9
|
+
type LogModelStatusArgs = {
|
|
10
|
+
index: number;
|
|
11
|
+
status: 'success' | 'error' | 'skip';
|
|
12
|
+
refName: string;
|
|
13
|
+
message?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const logModelStatus: ({ index, status, refName, message }: LogModelStatusArgs) => void;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=logStatus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logStatus.d.ts","sourceRoot":"","sources":["../../src/helpers/logStatus.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEjE,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;IACpC,SAAS,EAAE,YAAY,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,kBAAkB,0CAK5B,sBAAsB,KAAG,IAQ3B,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;IACpC,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,cAAc,wCAKxB,kBAAkB,KAAG,IAOvB,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export const logOperationStatus = ({ index, status, operation, message }) => {
|
|
2
|
+
console.log(status === 'error' ? '❌ ' : ' ', `${index + 1}. `.padEnd(5), operation.method.toUpperCase().padEnd(8), operation.path.padEnd(5), status === 'error' ? `- ${message}` : '');
|
|
3
|
+
};
|
|
4
|
+
export const logModelStatus = ({ index, status, refName, message }) => {
|
|
5
|
+
console.log(status === 'error' ? '❌ ' : ' ', `${index + 1}. `.padEnd(5), refName, status === 'error' ? `- ${message}` : '');
|
|
6
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
2
|
+
import { Method } from '../types/Method.js';
|
|
3
|
+
export declare const toEndpointType: (operation: OasOperation) => 'query' | 'mutation';
|
|
4
|
+
/** generates endpoint name in the `camelCase{method}Api{path}` format */
|
|
5
|
+
export declare const toEndpointName: (operation: OasOperation) => string;
|
|
6
|
+
export declare const toResponseName: (operation: OasOperation) => string;
|
|
7
|
+
export declare const toArgsName: (operation: OasOperation) => string;
|
|
8
|
+
export declare const toMethodVerb: (method: Method) => string;
|
|
9
|
+
//# sourceMappingURL=naming.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"naming.d.ts","sourceRoot":"","sources":["../../src/helpers/naming.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAG3C,eAAO,MAAM,cAAc,cACd,YAAY,KACtB,OAAO,GAAG,UAEZ,CAAA;AAED,yEAAyE;AACzE,eAAO,MAAM,cAAc,cAAe,YAAY,KAAG,MAMxD,CAAA;AAED,eAAO,MAAM,cAAc,cAAe,YAAY,KAAG,MAIxD,CAAA;AAED,eAAO,MAAM,UAAU,cAAe,YAAY,KAAG,MAIpD,CAAA;AAED,eAAO,MAAM,YAAY,WAAY,MAAM,KAAG,MAK7C,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import camelCase from 'lodash-es/camelCase.js';
|
|
2
|
+
import { match } from 'ts-pattern';
|
|
3
|
+
export const toEndpointType = (operation) => {
|
|
4
|
+
return operation.method === 'get' ? 'query' : 'mutation';
|
|
5
|
+
};
|
|
6
|
+
/** generates endpoint name in the `camelCase{method}Api{path}` format */
|
|
7
|
+
export const toEndpointName = (operation) => {
|
|
8
|
+
const { path, method } = operation;
|
|
9
|
+
const verb = toMethodVerb(method);
|
|
10
|
+
return camelCase(`${verb}Api${path}`);
|
|
11
|
+
};
|
|
12
|
+
export const toResponseName = (operation) => {
|
|
13
|
+
const operationName = toEndpointName(operation);
|
|
14
|
+
return `${operationName}Response`;
|
|
15
|
+
};
|
|
16
|
+
export const toArgsName = (operation) => {
|
|
17
|
+
const operationName = toEndpointName(operation);
|
|
18
|
+
return `${operationName}Args`;
|
|
19
|
+
};
|
|
20
|
+
export const toMethodVerb = (method) => {
|
|
21
|
+
return match(method)
|
|
22
|
+
.with('post', () => 'Create')
|
|
23
|
+
.with('put', () => 'Update')
|
|
24
|
+
.otherwise(matched => matched);
|
|
25
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const toRefName: ($ref: string) => string;
|
|
2
|
+
type Ref = {
|
|
3
|
+
$ref: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const isRef: (value: unknown) => value is Ref;
|
|
6
|
+
export declare const isImported: (pathOne: string, pathTwo: string) => boolean;
|
|
7
|
+
export {};
|
|
8
|
+
//# sourceMappingURL=refFns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refFns.d.ts","sourceRoot":"","sources":["../../src/helpers/refFns.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,SAAU,MAAM,KAAG,MASxC,CAAA;AAED,KAAK,GAAG,GAAG;IACT,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,eAAO,MAAM,KAAK,UAAW,OAAO,iBAWnC,CAAA;AAGD,eAAO,MAAM,UAAU,YAAa,MAAM,WAAW,MAAM,KAAG,OAE7D,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { normalize } from '../deps/jsr.io/@std/path/0.224.0/mod.js';
|
|
2
|
+
export const toRefName = ($ref) => {
|
|
3
|
+
// TODO: Add validation here to ensure reference exists
|
|
4
|
+
const refName = $ref.split('/').slice(-1)[0];
|
|
5
|
+
if (!refName) {
|
|
6
|
+
throw new Error('Invalid reference');
|
|
7
|
+
}
|
|
8
|
+
return refName;
|
|
9
|
+
};
|
|
10
|
+
export const isRef = (value) => {
|
|
11
|
+
if (value &&
|
|
12
|
+
typeof value === 'object' &&
|
|
13
|
+
'$ref' in value &&
|
|
14
|
+
typeof value.$ref === 'string') {
|
|
15
|
+
return true;
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
// @TODO move to own file
|
|
22
|
+
export const isImported = (pathOne, pathTwo) => {
|
|
23
|
+
return normalize(pathOne) !== normalize(pathTwo);
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../src/helpers/strings.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,QAAS,MAAM,KAAE,MAEvC,CAAA;AAED,eAAO,MAAM,YAAY,QAAS,MAAM,KAAE,MAEzC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verifyType.d.ts","sourceRoot":"","sources":["../../src/helpers/verifyType.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EACzC,QAAQ,EAAE,OAAO,EAEjB,SAAS,EAAE,QAAQ,GAAG;IAAE,SAAS,EAAE,CAAC,CAAA;CAAE,GACrC,OAAO,CAAC,QAAQ,IAAI,CAAC,CAKvB"}
|