@skmtc/core 0.0.226 → 0.0.228
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/mod.d.ts +0 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +0 -1
- package/esm/oas/array/Array.d.ts +1 -1
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +20 -12
- package/esm/oas/boolean/Boolean.d.ts +1 -1
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +18 -10
- package/esm/oas/components/Components.d.ts +1 -2
- package/esm/oas/components/Components.d.ts.map +1 -1
- package/esm/oas/components/Components.js +21 -13
- package/esm/oas/discriminator/Discriminator.d.ts +1 -1
- package/esm/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/esm/oas/discriminator/Discriminator.js +16 -8
- package/esm/oas/document/Document.d.ts +1 -2
- package/esm/oas/document/Document.d.ts.map +1 -1
- package/esm/oas/document/Document.js +20 -12
- package/esm/oas/example/Example.d.ts +1 -2
- package/esm/oas/example/Example.d.ts.map +1 -1
- package/esm/oas/example/Example.js +18 -10
- package/esm/oas/header/Header.d.ts +1 -1
- package/esm/oas/header/Header.d.ts.map +1 -1
- package/esm/oas/header/Header.js +22 -14
- package/esm/oas/info/Info.d.ts +1 -1
- package/esm/oas/info/Info.d.ts.map +1 -1
- package/esm/oas/info/Info.js +21 -13
- package/esm/oas/integer/Integer.d.ts +1 -1
- package/esm/oas/integer/Integer.d.ts.map +1 -1
- package/esm/oas/integer/Integer.js +20 -12
- package/esm/oas/intersection/Intersection.d.ts +1 -1
- package/esm/oas/intersection/Intersection.d.ts.map +1 -1
- package/esm/oas/intersection/Intersection.js +20 -12
- package/esm/oas/mediaType/MediaType.d.ts +1 -1
- package/esm/oas/mediaType/MediaType.d.ts.map +1 -1
- package/esm/oas/mediaType/MediaType.js +18 -10
- package/esm/oas/number/Number.d.ts +1 -1
- package/esm/oas/number/Number.d.ts.map +1 -1
- package/esm/oas/number/Number.js +18 -10
- package/esm/oas/object/Object.d.ts +1 -1
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +21 -13
- package/esm/oas/operation/Operation.d.ts +6 -1
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +41 -18
- package/esm/oas/parameter/Parameter.d.ts +1 -1
- package/esm/oas/parameter/Parameter.d.ts.map +1 -1
- package/esm/oas/parameter/Parameter.js +32 -20
- package/esm/oas/pathItem/PathItem.d.ts +1 -1
- package/esm/oas/pathItem/PathItem.d.ts.map +1 -1
- package/esm/oas/pathItem/PathItem.js +18 -10
- package/esm/oas/ref/Ref.d.ts +1 -1
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/ref/Ref.js +21 -13
- package/esm/oas/requestBody/RequestBody.d.ts +1 -1
- package/esm/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/esm/oas/requestBody/RequestBody.js +19 -11
- package/esm/oas/response/Response.d.ts +1 -1
- package/esm/oas/response/Response.d.ts.map +1 -1
- package/esm/oas/response/Response.js +19 -11
- package/esm/oas/string/String.d.ts +1 -1
- package/esm/oas/string/String.d.ts.map +1 -1
- package/esm/oas/string/String.js +20 -12
- package/esm/oas/tag/Tag.d.ts +1 -1
- package/esm/oas/tag/Tag.d.ts.map +1 -1
- package/esm/oas/tag/Tag.js +17 -9
- package/esm/oas/union/Union.d.ts +1 -1
- package/esm/oas/union/Union.d.ts.map +1 -1
- package/esm/oas/union/Union.js +20 -12
- package/esm/oas/unknown/Unknown.d.ts +1 -1
- package/esm/oas/unknown/Unknown.d.ts.map +1 -1
- package/esm/oas/unknown/Unknown.js +17 -9
- package/esm/oas/void/Void.d.ts +1 -1
- package/esm/oas/void/Void.d.ts.map +1 -1
- package/esm/oas/void/Void.js +17 -9
- package/esm/types/Settings.d.ts +0 -4
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +0 -1
- package/package.json +8 -7
- package/script/_dnt.polyfills.d.ts +12 -0
- package/script/_dnt.polyfills.d.ts.map +1 -0
- package/script/_dnt.polyfills.js +16 -0
- package/script/_dnt.shims.d.ts +6 -0
- package/script/_dnt.shims.d.ts.map +1 -0
- package/script/_dnt.shims.js +65 -0
- package/script/context/CoreContext.d.ts +81 -0
- package/script/context/CoreContext.d.ts.map +1 -0
- package/script/context/CoreContext.js +246 -0
- package/script/context/GenerateContext.d.ts +92 -0
- package/script/context/GenerateContext.d.ts.map +1 -0
- package/script/context/GenerateContext.js +177 -0
- package/script/context/LogStore.d.ts +25 -0
- package/script/context/LogStore.d.ts.map +1 -0
- package/script/context/LogStore.js +57 -0
- package/script/context/ParseContext.d.ts +15 -0
- package/script/context/ParseContext.d.ts.map +1 -0
- package/script/context/ParseContext.js +22 -0
- package/script/context/RenderContext.d.ts +50 -0
- package/script/context/RenderContext.d.ts.map +1 -0
- package/script/context/RenderContext.js +253 -0
- package/script/context/Trail.d.ts +26 -0
- package/script/context/Trail.d.ts.map +1 -0
- package/script/context/Trail.js +108 -0
- package/script/context/types.d.ts +19 -0
- package/script/context/types.d.ts.map +1 -0
- package/script/context/types.js +2 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/_validate_binary_like.d.ts +2 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/_validate_binary_like.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/_validate_binary_like.js +29 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/ascii85.d.ts +59 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/ascii85.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/ascii85.js +156 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/base32.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/base32.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/base32.js +228 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/base58.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/base58.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/base58.js +135 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/base64.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/base64.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/base64.js +167 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/base64url.d.ts +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/base64url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/base64url.js +108 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/hex.d.ts +37 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/hex.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/hex.js +113 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/mod.d.ts +22 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/mod.js +38 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/varint.d.ts +118 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/varint.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/encoding/1.0.1/varint.js +212 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/assert_path.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/assert_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/assert_path.js +10 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/basename.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/basename.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/common.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/common.js +26 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/constants.d.ts +40 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/constants.js +49 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/dirname.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/dirname.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/format.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/format.js +23 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/from_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/from_file_url.js +12 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/glob_to_reg_exp.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/glob_to_reg_exp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/glob_to_reg_exp.js +237 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/normalize.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/normalize.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/normalize_string.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/normalize_string.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/normalize_string.js +80 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/relative.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/relative.js +12 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/strip_trailing_separators.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/strip_trailing_separators.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/strip_trailing_separators.js +22 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/to_file_url.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_common/to_file_url.js +18 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_os.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/_os.js +40 -0
- package/script/deps/jsr.io/@std/path/1.0.0/basename.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.0/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/basename.js +36 -0
- package/script/deps/jsr.io/@std/path/1.0.0/common.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.0/common.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/common.js +36 -0
- package/script/deps/jsr.io/@std/path/1.0.0/constants.d.ts +15 -0
- package/script/deps/jsr.io/@std/path/1.0.0/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/constants.js +20 -0
- package/script/deps/jsr.io/@std/path/1.0.0/dirname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.0/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/dirname.js +29 -0
- package/script/deps/jsr.io/@std/path/1.0.0/extname.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.0/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/extname.js +29 -0
- package/script/deps/jsr.io/@std/path/1.0.0/format.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.0/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/format.js +30 -0
- package/script/deps/jsr.io/@std/path/1.0.0/from_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.0/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/from_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.0/glob_to_regexp.d.ts +77 -0
- package/script/deps/jsr.io/@std/path/1.0.0/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/glob_to_regexp.js +86 -0
- package/script/deps/jsr.io/@std/path/1.0.0/is_absolute.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.0/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/is_absolute.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.0/is_glob.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/is_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/is_glob.js +45 -0
- package/script/deps/jsr.io/@std/path/1.0.0/join.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.0/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/join.js +29 -0
- package/script/deps/jsr.io/@std/path/1.0.0/join_globs.d.ts +28 -0
- package/script/deps/jsr.io/@std/path/1.0.0/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/join_globs.js +37 -0
- package/script/deps/jsr.io/@std/path/1.0.0/mod.d.ts +51 -0
- package/script/deps/jsr.io/@std/path/1.0.0/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/mod.js +70 -0
- package/script/deps/jsr.io/@std/path/1.0.0/normalize.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.0/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/normalize.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.0/normalize_glob.d.ts +29 -0
- package/script/deps/jsr.io/@std/path/1.0.0/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/normalize_glob.js +38 -0
- package/script/deps/jsr.io/@std/path/1.0.0/parse.d.ts +35 -0
- package/script/deps/jsr.io/@std/path/1.0.0/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/parse.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/_util.d.ts +2 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/_util.js +11 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/basename.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/basename.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/dirname.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/dirname.js +50 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/extname.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/extname.js +73 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/from_file_url.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/from_file_url.js +24 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/glob_to_regexp.d.ts +72 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/is_absolute.js +26 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/join.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/join.js +29 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/join_globs.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/join_globs.js +42 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/normalize.d.ts +19 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/normalize.js +39 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/normalize_glob.js +34 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/parse.js +118 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/relative.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/relative.js +109 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/resolve.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/to_file_url.js +30 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/to_namespaced_path.d.ts +16 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/posix/to_namespaced_path.js +23 -0
- package/script/deps/jsr.io/@std/path/1.0.0/relative.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.0/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/relative.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.0/resolve.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.0/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/resolve.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.0/to_file_url.d.ts +22 -0
- package/script/deps/jsr.io/@std/path/1.0.0/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/to_file_url.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.0/to_namespaced_path.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.0/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/to_namespaced_path.js +32 -0
- package/script/deps/jsr.io/@std/path/1.0.0/types.d.ts +38 -0
- package/script/deps/jsr.io/@std/path/1.0.0/types.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/types.js +4 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/_util.d.ts +4 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/_util.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/_util.js +20 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/basename.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/basename.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/basename.js +44 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/constants.d.ts +13 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/constants.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/constants.js +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/dirname.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/dirname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/dirname.js +112 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/extname.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/extname.js +81 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/format.d.ts +24 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/format.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/format.js +31 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/from_file_url.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/from_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/from_file_url.js +33 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/glob_to_regexp.d.ts +71 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/glob_to_regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/glob_to_regexp.js +85 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/is_absolute.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/is_absolute.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/is_absolute.js +41 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/join.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/join.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/join.js +74 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/join_globs.d.ts +21 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/join_globs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/join_globs.js +43 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/normalize.d.ts +19 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/normalize.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/normalize.js +134 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/normalize_glob.d.ts +20 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/normalize_glob.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/normalize_glob.js +34 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/parse.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/parse.js +179 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/relative.d.ts +23 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/relative.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/relative.js +134 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/resolve.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/resolve.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/resolve.js +180 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/to_file_url.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/to_file_url.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/to_file_url.js +37 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/to_namespaced_path.d.ts +17 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/to_namespaced_path.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.0.0/windows/to_namespaced_path.js +52 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts +6 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper.js +710 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts +73 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_dumper/dumper_state.js +152 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts +7 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_error.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_error.js +23 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts +5 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader.js +1324 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts +44 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_loader/loader_state.js +154 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts +11 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_mark.js +85 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts +6 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_state.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_state.js +19 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/binary.js +110 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/bool.js +35 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/float.js +109 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/function.js +41 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/int.js +171 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/map.js +14 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/merge.js +15 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts +17 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/mod.js +39 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/nil.js +40 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/omap.js +43 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/pairs.js +38 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/regexp.js +40 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/seq.js +14 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/set.js +28 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/str.js +13 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/timestamp.js +81 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_type/undefined.js +23 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts +20 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/_utils.js +74 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts +49 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/mod.js +67 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts +36 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/parse.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/parse.js +22 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/core.js +15 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/default.js +18 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts +31 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/extended.js +40 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/failsafe.js +15 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts +3 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/json.js +17 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts +6 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema/mod.js +18 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts +23 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/schema.js +107 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts +9 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/stringify.js +17 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts +29 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/type.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/yaml/0.215.0/type.js +87 -0
- package/script/dsl/ContentSettings.d.ts +20 -0
- package/script/dsl/ContentSettings.d.ts.map +1 -0
- package/script/dsl/ContentSettings.js +44 -0
- package/script/dsl/Definition.d.ts +19 -0
- package/script/dsl/Definition.d.ts.map +1 -0
- package/script/dsl/Definition.js +41 -0
- package/script/dsl/GeneratedValueList.d.ts +9 -0
- package/script/dsl/GeneratedValueList.d.ts.map +1 -0
- package/script/dsl/GeneratedValueList.js +31 -0
- package/script/dsl/Identifier.d.ts +21 -0
- package/script/dsl/Identifier.d.ts.map +1 -0
- package/script/dsl/Identifier.js +56 -0
- package/script/dsl/Import.d.ts +22 -0
- package/script/dsl/Import.d.ts.map +1 -0
- package/script/dsl/Import.js +60 -0
- package/script/dsl/ModelCreator.d.ts +54 -0
- package/script/dsl/ModelCreator.d.ts.map +1 -0
- package/script/dsl/ModelCreator.js +2 -0
- package/script/dsl/ModelDriver.d.ts +31 -0
- package/script/dsl/ModelDriver.d.ts.map +1 -0
- package/script/dsl/ModelDriver.js +133 -0
- package/script/dsl/OperationCreator.d.ts +42 -0
- package/script/dsl/OperationCreator.d.ts.map +1 -0
- package/script/dsl/OperationCreator.js +2 -0
- package/script/dsl/OperationDriver.d.ts +31 -0
- package/script/dsl/OperationDriver.d.ts.map +1 -0
- package/script/dsl/OperationDriver.js +129 -0
- package/script/dsl/Stringable.d.ts +4 -0
- package/script/dsl/Stringable.d.ts.map +1 -0
- package/script/dsl/Stringable.js +2 -0
- package/script/dsl/ValueBase.d.ts +16 -0
- package/script/dsl/ValueBase.d.ts.map +1 -0
- package/script/dsl/ValueBase.js +49 -0
- package/script/dsl/base.d.ts +49 -0
- package/script/dsl/base.d.ts.map +1 -0
- package/script/dsl/base.js +76 -0
- package/script/dsl/constants.d.ts +2 -0
- package/script/dsl/constants.d.ts.map +1 -0
- package/script/dsl/constants.js +4 -0
- package/script/dsl/withConfig.d.ts +101 -0
- package/script/dsl/withConfig.d.ts.map +1 -0
- package/script/dsl/withConfig.js +131 -0
- package/script/generate/generate.d.ts +15 -0
- package/script/generate/generate.d.ts.map +1 -0
- package/script/generate/generate.js +75 -0
- package/script/generate/generateModels.d.ts +3 -0
- package/script/generate/generateModels.d.ts.map +1 -0
- package/script/generate/generateModels.js +56 -0
- package/script/generate/generateOperations.d.ts +3 -0
- package/script/generate/generateOperations.d.ts.map +1 -0
- package/script/generate/generateOperations.js +62 -0
- package/script/helpers/logStatus.d.ts +19 -0
- package/script/helpers/logStatus.d.ts.map +1 -0
- package/script/helpers/logStatus.js +21 -0
- package/script/helpers/naming.d.ts +9 -0
- package/script/helpers/naming.d.ts.map +1 -0
- package/script/helpers/naming.js +33 -0
- package/script/helpers/refFns.d.ts +9 -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 +15 -0
- package/script/mod.d.ts +61 -0
- package/script/mod.d.ts.map +1 -0
- package/script/mod.js +76 -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 +61 -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 +55 -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 +49 -0
- package/script/oas/components/Components.d.ts.map +1 -0
- package/script/oas/components/Components.js +61 -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 +20 -0
- package/script/oas/discriminator/Discriminator.d.ts.map +1 -0
- package/script/oas/discriminator/Discriminator.js +34 -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 +15 -0
- package/script/oas/document/Document.d.ts +39 -0
- package/script/oas/document/Document.d.ts.map +1 -0
- package/script/oas/document/Document.js +54 -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 +35 -0
- package/script/oas/example/Example.d.ts.map +1 -0
- package/script/oas/example/Example.js +57 -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 +78 -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 +32 -0
- package/script/oas/info/Info.d.ts.map +1 -0
- package/script/oas/info/Info.js +49 -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 +61 -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 +61 -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 +27 -0
- package/script/oas/mediaType/MediaType.d.ts.map +1 -0
- package/script/oas/mediaType/MediaType.js +40 -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 +55 -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 +73 -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 +57 -0
- package/script/oas/operation/Operation.d.ts.map +1 -0
- package/script/oas/operation/Operation.js +96 -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 +51 -0
- package/script/oas/parameter/Parameter.d.ts.map +1 -0
- package/script/oas/parameter/Parameter.js +86 -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 +26 -0
- package/script/oas/pathItem/PathItem.d.ts.map +1 -0
- package/script/oas/pathItem/PathItem.js +40 -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 +41 -0
- package/script/oas/ref/Ref.d.ts.map +1 -0
- package/script/oas/ref/Ref.js +101 -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 +15 -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 +52 -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 +51 -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 +52 -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 +31 -0
- package/script/oas/schema/toSchemasV3.d.ts.map +1 -0
- package/script/oas/schema/toSchemasV3.js +67 -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 +64 -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 +22 -0
- package/script/oas/tag/Tag.d.ts.map +1 -0
- package/script/oas/tag/Tag.js +37 -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 +18 -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 +61 -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 +52 -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 +61 -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 +4 -0
- package/script/parse/parse.d.ts.map +1 -0
- package/script/parse/parse.js +20 -0
- package/script/server/createServer.d.ts +5 -0
- package/script/server/createServer.d.ts.map +1 -0
- package/script/server/createServer.js +134 -0
- package/script/types/Brand.d.ts +6 -0
- package/script/types/Brand.d.ts.map +1 -0
- package/script/types/Brand.js +2 -0
- package/script/types/CustomValue.d.ts +18 -0
- package/script/types/CustomValue.d.ts.map +1 -0
- package/script/types/CustomValue.js +33 -0
- package/script/types/GeneratedValue.d.ts +6 -0
- package/script/types/GeneratedValue.d.ts.map +1 -0
- package/script/types/GeneratedValue.js +2 -0
- package/script/types/GenerationType.d.ts +16 -0
- package/script/types/GenerationType.d.ts.map +1 -0
- package/script/types/GenerationType.js +16 -0
- package/script/types/GeneratorKeys.d.ts +30 -0
- package/script/types/GeneratorKeys.d.ts.map +1 -0
- package/script/types/GeneratorKeys.js +19 -0
- package/script/types/Method.d.ts +10 -0
- package/script/types/Method.d.ts.map +1 -0
- package/script/types/Method.js +35 -0
- package/script/types/Modifiers.d.ts +6 -0
- package/script/types/Modifiers.d.ts.map +1 -0
- package/script/types/Modifiers.js +2 -0
- package/script/types/RefName.d.ts +3 -0
- package/script/types/RefName.d.ts.map +1 -0
- package/script/types/RefName.js +2 -0
- package/script/types/Settings.d.ts +179 -0
- package/script/types/Settings.d.ts.map +1 -0
- package/script/types/Settings.js +44 -0
- package/script/types/TypeSystem.d.ts +96 -0
- package/script/types/TypeSystem.d.ts.map +1 -0
- package/script/types/TypeSystem.js +2 -0
- package/script/types/prettierConfig.d.ts +27 -0
- package/script/types/prettierConfig.d.ts.map +1 -0
- package/script/types/prettierConfig.js +49 -0
- package/script/typescript/EntityType.d.ts +6 -0
- package/script/typescript/EntityType.d.ts.map +1 -0
- package/script/typescript/EntityType.js +22 -0
- package/script/typescript/FunctionParameter.d.ts +36 -0
- package/script/typescript/FunctionParameter.d.ts.map +1 -0
- package/script/typescript/FunctionParameter.js +93 -0
- package/script/typescript/ReactRouterPathParams.d.ts +20 -0
- package/script/typescript/ReactRouterPathParams.d.ts.map +1 -0
- package/script/typescript/ReactRouterPathParams.js +53 -0
- package/script/typescript/identifiers.d.ts +3 -0
- package/script/typescript/identifiers.d.ts.map +1 -0
- package/script/typescript/identifiers.js +12 -0
- package/script/typescript/keyValues.d.ts +3 -0
- package/script/typescript/keyValues.d.ts.map +1 -0
- package/script/typescript/keyValues.js +15 -0
- package/script/typescript/toDestructuredObject.d.ts +3 -0
- package/script/typescript/toDestructuredObject.d.ts.map +1 -0
- package/script/typescript/toDestructuredObject.js +20 -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 +21 -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
- package/esm/schemas/client.d.ts +0 -240
- package/esm/schemas/client.d.ts.map +0 -1
- package/esm/schemas/client.js +0 -174
- package/esm/typescript/toParamsObject.d.ts +0 -3
- package/esm/typescript/toParamsObject.d.ts.map +0 -1
- package/esm/typescript/toParamsObject.js +0 -12
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import type { CoreContext } from '../context/CoreContext.js';
|
|
2
|
+
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
3
|
+
import type { ContentSettings } from './ContentSettings.js';
|
|
4
|
+
import type { RefName } from '../types/RefName.js';
|
|
5
|
+
import type { EntityType } from '../typescript/EntityType.js';
|
|
6
|
+
import type { IsModelSelectedArgs, ToModelExportPathArgs, ToModelNameArgs } from './ModelCreator.js';
|
|
7
|
+
import type { IsOperationSelectedArgs, ToOperationExportPathArgs, ToOperationNameArgs } from './OperationCreator.js';
|
|
8
|
+
export type GeneratorConfigConstructor = {
|
|
9
|
+
context: CoreContext;
|
|
10
|
+
};
|
|
11
|
+
export type OperationGeneratorConfig = GeneratorConfig & OperationConfig;
|
|
12
|
+
export type ModelGeneratorConfig = GeneratorConfig & ModelConfig;
|
|
13
|
+
export type OperationConfig = {
|
|
14
|
+
id: string;
|
|
15
|
+
type: 'operation';
|
|
16
|
+
toName({ operation, baseSettings }: ToOperationNameArgs): string;
|
|
17
|
+
toExportPath({ operation, baseSettings }: ToOperationExportPathArgs): string;
|
|
18
|
+
isSelected({ operation, baseSettings }: IsOperationSelectedArgs): boolean;
|
|
19
|
+
};
|
|
20
|
+
export type OperationCreatorArgs = {
|
|
21
|
+
context: CoreContext;
|
|
22
|
+
settings: ContentSettings;
|
|
23
|
+
operation: OasOperation;
|
|
24
|
+
};
|
|
25
|
+
export declare const toOperationCreatorBase: (config: OperationConfig) => {
|
|
26
|
+
new (args: OperationCreatorArgs): {
|
|
27
|
+
settings: ContentSettings;
|
|
28
|
+
operation: OasOperation;
|
|
29
|
+
transform<V extends import("../mod.js").GeneratedValue>(args: {
|
|
30
|
+
creator: import("./OperationCreator.js").OperationCreator<V>;
|
|
31
|
+
operation: OasOperation;
|
|
32
|
+
} | {
|
|
33
|
+
creator: import("./ModelCreator.js").ModelCreator<V>;
|
|
34
|
+
refName: RefName;
|
|
35
|
+
}): {
|
|
36
|
+
settings: ContentSettings;
|
|
37
|
+
definition: import("./Definition.js").Definition<V>;
|
|
38
|
+
};
|
|
39
|
+
register(args: Partial<import("../context/GenerateContext.js").RegisterArgs>): void;
|
|
40
|
+
context: CoreContext;
|
|
41
|
+
skipped: boolean;
|
|
42
|
+
generatorKey: import("../types/GeneratorKeys.js").GeneratorKey;
|
|
43
|
+
};
|
|
44
|
+
id: string;
|
|
45
|
+
toName: ({ operation, baseSettings }: ToOperationNameArgs) => string;
|
|
46
|
+
toExportPath: ({ operation, baseSettings }: ToOperationExportPathArgs) => string;
|
|
47
|
+
isSelected: ({ operation, baseSettings }: IsOperationSelectedArgs) => boolean;
|
|
48
|
+
};
|
|
49
|
+
type ModelConfig = {
|
|
50
|
+
id: string;
|
|
51
|
+
type: 'model';
|
|
52
|
+
entityType: EntityType;
|
|
53
|
+
toName({ refName, baseSettings }: ToModelNameArgs): string;
|
|
54
|
+
toExportPath({ refName, baseSettings }: ToModelExportPathArgs): string;
|
|
55
|
+
isSelected({ refName, baseSettings }: IsModelSelectedArgs): boolean;
|
|
56
|
+
};
|
|
57
|
+
export type ModelCreatorArgs = {
|
|
58
|
+
context: CoreContext;
|
|
59
|
+
settings: ContentSettings;
|
|
60
|
+
refName: RefName;
|
|
61
|
+
};
|
|
62
|
+
export declare const toModelCreatorBase: (config: ModelConfig) => {
|
|
63
|
+
new (args: ModelCreatorArgs): {
|
|
64
|
+
settings: ContentSettings;
|
|
65
|
+
refName: RefName;
|
|
66
|
+
transform<V extends import("../mod.js").GeneratedValue>(args: {
|
|
67
|
+
creator: import("./OperationCreator.js").OperationCreator<V>;
|
|
68
|
+
operation: OasOperation;
|
|
69
|
+
} | {
|
|
70
|
+
creator: import("./ModelCreator.js").ModelCreator<V>;
|
|
71
|
+
refName: RefName;
|
|
72
|
+
}): void;
|
|
73
|
+
register(args: Partial<import("../context/GenerateContext.js").RegisterArgs>): void;
|
|
74
|
+
context: CoreContext;
|
|
75
|
+
skipped: boolean;
|
|
76
|
+
generatorKey: import("../types/GeneratorKeys.js").GeneratorKey;
|
|
77
|
+
};
|
|
78
|
+
id: string;
|
|
79
|
+
type: "model";
|
|
80
|
+
entityType: EntityType;
|
|
81
|
+
toName: ({ refName, baseSettings }: ToModelNameArgs) => string;
|
|
82
|
+
toExportPath: ({ refName, baseSettings }: ToModelExportPathArgs) => string;
|
|
83
|
+
isSelected: ({ refName, baseSettings }: IsModelSelectedArgs) => boolean;
|
|
84
|
+
};
|
|
85
|
+
type GeneratorConfig = {
|
|
86
|
+
id: string;
|
|
87
|
+
pinnable?: boolean;
|
|
88
|
+
isSupported?: (operation: OasOperation) => boolean;
|
|
89
|
+
};
|
|
90
|
+
export declare const toGeneratorBase: (config: GeneratorConfig & {
|
|
91
|
+
type: "operation" | "model";
|
|
92
|
+
}) => {
|
|
93
|
+
new ({ context }: GeneratorConfigConstructor): {
|
|
94
|
+
context: CoreContext;
|
|
95
|
+
};
|
|
96
|
+
id: string;
|
|
97
|
+
type: "operation" | "model";
|
|
98
|
+
isSupported: ((operation: OasOperation) => boolean) | undefined;
|
|
99
|
+
};
|
|
100
|
+
export {};
|
|
101
|
+
//# sourceMappingURL=withConfig.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withConfig.d.ts","sourceRoot":"","sources":["../../src/dsl/withConfig.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,sBAAsB,CAAA;AAK3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAA;AAC7D,OAAO,KAAK,EACV,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EAChB,MAAM,mBAAmB,CAAA;AAC1B,OAAO,KAAK,EACV,uBAAuB,EACvB,yBAAyB,EACzB,mBAAmB,EACpB,MAAM,uBAAuB,CAAA;AAG9B,MAAM,MAAM,0BAA0B,GAAG;IAAE,OAAO,EAAE,WAAW,CAAA;CAAE,CAAA;AACjE,MAAM,MAAM,wBAAwB,GAAG,eAAe,GAAG,eAAe,CAAA;AACxE,MAAM,MAAM,oBAAoB,GAAG,eAAe,GAAG,WAAW,CAAA;AAEhE,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,WAAW,CAAA;IACjB,MAAM,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,mBAAmB,GAAG,MAAM,CAAA;IAChE,YAAY,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,yBAAyB,GAAG,MAAM,CAAA;IAC5E,UAAU,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,EAAE,uBAAuB,GAAG,OAAO,CAAA;CAC1E,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG;IACjC,OAAO,EAAE,WAAW,CAAA;IACpB,QAAQ,EAAE,eAAe,CAAA;IACzB,SAAS,EAAE,YAAY,CAAA;CACxB,CAAA;AAED,eAAO,MAAM,sBAAsB,WAAY,eAAe;eAOxC,oBAAoB;;;;;;;;;;;;;;;;;;;0CAlBJ,mBAAmB,KAAG,MAAM;gDACtB,yBAAyB,KAAG,MAAM;8CACpC,uBAAuB,KAAG,OAAO;CA0B1E,CAAA;AAED,KAAK,WAAW,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,OAAO,CAAA;IACb,UAAU,EAAE,UAAU,CAAA;IACtB,MAAM,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,eAAe,GAAG,MAAM,CAAA;IAC1D,YAAY,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,qBAAqB,GAAG,MAAM,CAAA;IACtE,UAAU,CAAC,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,mBAAmB,GAAG,OAAO,CAAA;CACpE,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAE,WAAW,CAAA;IACpB,QAAQ,EAAE,eAAe,CAAA;IACzB,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAED,eAAO,MAAM,kBAAkB,WAAY,WAAW;eAUhC,gBAAgB;;;;;;;;;;;;;;;;;;wCArBF,eAAe,KAAG,MAAM;8CAClB,qBAAqB,KAAG,MAAM;4CAChC,mBAAmB,KAAG,OAAO;CA6BpE,CAAA;AAED,KAAK,eAAe,GAAG;IACrB,EAAE,EAAE,MAAM,CAAA;IACV,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,CAAC,SAAS,EAAE,YAAY,KAAK,OAAO,CAAA;CACnD,CAAA;AAED,eAAO,MAAM,eAAe,WAClB,eAAe,GAAG;IAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAA;CAAE;sBAO9B,0BAA0B;iBAD1C,WAAW;;;;8BAVI,YAAY,KAAK,OAAO;CAenD,CAAA"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toGeneratorBase = exports.toModelCreatorBase = exports.toOperationCreatorBase = void 0;
|
|
4
|
+
const GeneratorKeys_js_1 = require("../types/GeneratorKeys.js");
|
|
5
|
+
const base_js_1 = require("./base.js");
|
|
6
|
+
const toOperationCreatorBase = (config) => {
|
|
7
|
+
var _a;
|
|
8
|
+
return _a = class extends base_js_1.OperationBase {
|
|
9
|
+
constructor(args) {
|
|
10
|
+
super({
|
|
11
|
+
...args,
|
|
12
|
+
generatorKey: (0, GeneratorKeys_js_1.toOperationGeneratorKey)({
|
|
13
|
+
generatorId: config.id,
|
|
14
|
+
operation: args.operation
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
Object.defineProperty(_a, "id", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true,
|
|
22
|
+
writable: true,
|
|
23
|
+
value: config.id
|
|
24
|
+
}),
|
|
25
|
+
Object.defineProperty(_a, "toName", {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
configurable: true,
|
|
28
|
+
writable: true,
|
|
29
|
+
value: config.toName
|
|
30
|
+
}),
|
|
31
|
+
Object.defineProperty(_a, "toExportPath", {
|
|
32
|
+
enumerable: true,
|
|
33
|
+
configurable: true,
|
|
34
|
+
writable: true,
|
|
35
|
+
value: config.toExportPath
|
|
36
|
+
}),
|
|
37
|
+
Object.defineProperty(_a, "isSelected", {
|
|
38
|
+
enumerable: true,
|
|
39
|
+
configurable: true,
|
|
40
|
+
writable: true,
|
|
41
|
+
value: config.isSelected
|
|
42
|
+
}),
|
|
43
|
+
_a;
|
|
44
|
+
};
|
|
45
|
+
exports.toOperationCreatorBase = toOperationCreatorBase;
|
|
46
|
+
const toModelCreatorBase = (config) => {
|
|
47
|
+
var _a;
|
|
48
|
+
return _a = class extends base_js_1.ModelBase {
|
|
49
|
+
constructor(args) {
|
|
50
|
+
super({
|
|
51
|
+
...args,
|
|
52
|
+
generatorKey: (0, GeneratorKeys_js_1.toModelGeneratorKey)({
|
|
53
|
+
generatorId: config.id,
|
|
54
|
+
refName: args.refName
|
|
55
|
+
})
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
Object.defineProperty(_a, "id", {
|
|
60
|
+
enumerable: true,
|
|
61
|
+
configurable: true,
|
|
62
|
+
writable: true,
|
|
63
|
+
value: config.id
|
|
64
|
+
}),
|
|
65
|
+
Object.defineProperty(_a, "type", {
|
|
66
|
+
enumerable: true,
|
|
67
|
+
configurable: true,
|
|
68
|
+
writable: true,
|
|
69
|
+
value: config.type
|
|
70
|
+
}),
|
|
71
|
+
Object.defineProperty(_a, "entityType", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
configurable: true,
|
|
74
|
+
writable: true,
|
|
75
|
+
value: config.entityType
|
|
76
|
+
}),
|
|
77
|
+
Object.defineProperty(_a, "toName", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
configurable: true,
|
|
80
|
+
writable: true,
|
|
81
|
+
value: config.toName
|
|
82
|
+
}),
|
|
83
|
+
Object.defineProperty(_a, "toExportPath", {
|
|
84
|
+
enumerable: true,
|
|
85
|
+
configurable: true,
|
|
86
|
+
writable: true,
|
|
87
|
+
value: config.toExportPath
|
|
88
|
+
}),
|
|
89
|
+
Object.defineProperty(_a, "isSelected", {
|
|
90
|
+
enumerable: true,
|
|
91
|
+
configurable: true,
|
|
92
|
+
writable: true,
|
|
93
|
+
value: config.isSelected
|
|
94
|
+
}),
|
|
95
|
+
_a;
|
|
96
|
+
};
|
|
97
|
+
exports.toModelCreatorBase = toModelCreatorBase;
|
|
98
|
+
const toGeneratorBase = (config) => {
|
|
99
|
+
var _a;
|
|
100
|
+
return _a = class {
|
|
101
|
+
constructor({ context }) {
|
|
102
|
+
Object.defineProperty(this, "context", {
|
|
103
|
+
enumerable: true,
|
|
104
|
+
configurable: true,
|
|
105
|
+
writable: true,
|
|
106
|
+
value: void 0
|
|
107
|
+
});
|
|
108
|
+
this.context = context;
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
Object.defineProperty(_a, "id", {
|
|
112
|
+
enumerable: true,
|
|
113
|
+
configurable: true,
|
|
114
|
+
writable: true,
|
|
115
|
+
value: config.id
|
|
116
|
+
}),
|
|
117
|
+
Object.defineProperty(_a, "type", {
|
|
118
|
+
enumerable: true,
|
|
119
|
+
configurable: true,
|
|
120
|
+
writable: true,
|
|
121
|
+
value: config.type
|
|
122
|
+
}),
|
|
123
|
+
Object.defineProperty(_a, "isSupported", {
|
|
124
|
+
enumerable: true,
|
|
125
|
+
configurable: true,
|
|
126
|
+
writable: true,
|
|
127
|
+
value: config.isSupported
|
|
128
|
+
}),
|
|
129
|
+
_a;
|
|
130
|
+
};
|
|
131
|
+
exports.toGeneratorBase = toGeneratorBase;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ClientSettings } from '../types/Settings.js';
|
|
2
|
+
import type { PrettierConfigType } from '../types/prettierConfig.js';
|
|
3
|
+
import type { OpenAPIV3 } from 'openapi-types';
|
|
4
|
+
import type { OperationGenerator } from '../dsl/OperationCreator.js';
|
|
5
|
+
import type { ModelGenerator } from '../dsl/ModelCreator.js';
|
|
6
|
+
type GenerateArgs = {
|
|
7
|
+
schema: string;
|
|
8
|
+
settings?: ClientSettings;
|
|
9
|
+
prettier?: PrettierConfigType;
|
|
10
|
+
generatorsMap: Record<string, OperationGenerator | ModelGenerator>;
|
|
11
|
+
};
|
|
12
|
+
export declare const generate: ({ schema, settings, prettier, generatorsMap }: GenerateArgs) => Promise<import("../context/RenderContext.js").FilesRenderResult>;
|
|
13
|
+
export declare const parseSchema: (schema: string) => OpenAPIV3.Document<{}>;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=generate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../src/generate/generate.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAGpE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AACpE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAK5D,KAAK,YAAY,GAAG;IAClB,MAAM,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB,QAAQ,CAAC,EAAE,kBAAkB,CAAA;IAC7B,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,cAAc,CAAC,CAAA;CACnE,CAAA;AAED,eAAO,MAAM,QAAQ,kDAKlB,YAAY,qEAoDd,CAAA;AAED,eAAO,MAAM,WAAW,WAAY,MAAM,2BAMzC,CAAA"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.parseSchema = exports.generate = void 0;
|
|
27
|
+
const Sentry = __importStar(require("@sentry/deno"));
|
|
28
|
+
const parse_js_1 = require("../parse/parse.js");
|
|
29
|
+
const ParseContext_js_1 = require("../context/ParseContext.js");
|
|
30
|
+
const CoreContext_js_1 = require("../context/CoreContext.js");
|
|
31
|
+
const generateModels_js_1 = require("./generateModels.js");
|
|
32
|
+
const generateOperations_js_1 = require("./generateOperations.js");
|
|
33
|
+
const mod_js_1 = require("../deps/jsr.io/@std/yaml/0.215.0/mod.js");
|
|
34
|
+
const generate = async ({ schema, settings, prettier, generatorsMap }) => {
|
|
35
|
+
const parsedDocument = Sentry.startSpan({ name: 'Parse schema to document' }, () => (0, exports.parseSchema)(schema));
|
|
36
|
+
const parseContext = new ParseContext_js_1.ParseContext({
|
|
37
|
+
parsedDocument
|
|
38
|
+
});
|
|
39
|
+
const context = new CoreContext_js_1.CoreContext({
|
|
40
|
+
phase: { type: 'parse', context: parseContext }
|
|
41
|
+
});
|
|
42
|
+
const schemaModel = Sentry.startSpan({ name: 'Schema document to object' }, () => (0, parse_js_1.oasToSkmtc)(context));
|
|
43
|
+
if (!schemaModel.openapi.startsWith('3.0.')) {
|
|
44
|
+
throw new Error('Only OpenAPI v3 is supported');
|
|
45
|
+
}
|
|
46
|
+
context.setupGeneratePhase({
|
|
47
|
+
schemaModel,
|
|
48
|
+
generatorsMap,
|
|
49
|
+
settings
|
|
50
|
+
});
|
|
51
|
+
Sentry.startSpan({ name: 'Generate operations' }, () => (0, generateOperations_js_1.generateOperations)(context));
|
|
52
|
+
Sentry.startSpan({ name: 'Generate models' }, () => (0, generateModels_js_1.generateModels)(context));
|
|
53
|
+
context.setupRenderPhase({
|
|
54
|
+
files: context.files,
|
|
55
|
+
renderDependencies: context.renderDependencies,
|
|
56
|
+
packageDependencies: context.packageDependencies,
|
|
57
|
+
pinnableGenerators: Object.values(generatorsMap)
|
|
58
|
+
.map(({ id, pinnable }) => (pinnable ? id : null))
|
|
59
|
+
.filter(generatorId => generatorId !== null),
|
|
60
|
+
prettier,
|
|
61
|
+
settings
|
|
62
|
+
});
|
|
63
|
+
const renderResult = await Sentry.startSpan({ name: 'Render artifacts' }, async () => await context.render({}));
|
|
64
|
+
return renderResult;
|
|
65
|
+
};
|
|
66
|
+
exports.generate = generate;
|
|
67
|
+
const parseSchema = (schema) => {
|
|
68
|
+
if (schema.trimStart().startsWith('{')) {
|
|
69
|
+
return JSON.parse(schema);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
return (0, mod_js_1.parse)(schema);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
exports.parseSchema = parseSchema;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateModels.d.ts","sourceRoot":"","sources":["../../src/generate/generateModels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAK5D,eAAO,MAAM,cAAc,YAAa,WAAW,SAgClD,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.generateModels = void 0;
|
|
27
|
+
const logStatus_js_1 = require("../helpers/logStatus.js");
|
|
28
|
+
const Sentry = __importStar(require("@sentry/deno"));
|
|
29
|
+
const generateModels = (context) => {
|
|
30
|
+
const { schemaModel, generatorsMap } = context;
|
|
31
|
+
Object.values(generatorsMap)
|
|
32
|
+
.filter(generator => generator.type === 'model')
|
|
33
|
+
.forEach(generator => {
|
|
34
|
+
const generatorInstance = new generator(context);
|
|
35
|
+
Object.keys(schemaModel.components?.schemas ?? {}).forEach((rn, index) => {
|
|
36
|
+
const refName = rn;
|
|
37
|
+
Sentry.addBreadcrumb({
|
|
38
|
+
level: 'info',
|
|
39
|
+
message: `Transforming model`,
|
|
40
|
+
data: {
|
|
41
|
+
generatorId: generator.id,
|
|
42
|
+
method: refName
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
try {
|
|
46
|
+
generatorInstance.transformModel(refName);
|
|
47
|
+
(0, logStatus_js_1.logModelStatus)({ index, status: 'success', refName });
|
|
48
|
+
}
|
|
49
|
+
catch (error) {
|
|
50
|
+
Sentry.captureException(error);
|
|
51
|
+
(0, logStatus_js_1.logModelStatus)({ index, status: 'error', refName, error });
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
exports.generateModels = generateModels;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generateOperations.d.ts","sourceRoot":"","sources":["../../src/generate/generateOperations.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAG5D,eAAO,MAAM,kBAAkB,YAAa,WAAW,SAoCtD,CAAA"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.generateOperations = void 0;
|
|
27
|
+
const logStatus_js_1 = require("../helpers/logStatus.js");
|
|
28
|
+
const Sentry = __importStar(require("@sentry/deno"));
|
|
29
|
+
const generateOperations = (context) => {
|
|
30
|
+
const { schemaModel, generatorsMap } = context;
|
|
31
|
+
Object.values(generatorsMap)
|
|
32
|
+
.filter(generator => generator.type === 'operation')
|
|
33
|
+
.forEach(generator => {
|
|
34
|
+
const generatorInstance = new generator(context);
|
|
35
|
+
schemaModel.operations.forEach((operation, index) => {
|
|
36
|
+
const isSupportedOperation = typeof generator.isSupported === 'function'
|
|
37
|
+
? generator.isSupported(operation)
|
|
38
|
+
: true;
|
|
39
|
+
if (!isSupportedOperation) {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
Sentry.addBreadcrumb({
|
|
43
|
+
level: 'info',
|
|
44
|
+
message: `Transforming operation`,
|
|
45
|
+
data: {
|
|
46
|
+
generatorId: generator.id,
|
|
47
|
+
method: operation.method,
|
|
48
|
+
path: operation.path
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
try {
|
|
52
|
+
generatorInstance.transformOperation(operation);
|
|
53
|
+
(0, logStatus_js_1.logOperationStatus)({ index, status: 'success', operation });
|
|
54
|
+
}
|
|
55
|
+
catch (error) {
|
|
56
|
+
Sentry.captureException(error);
|
|
57
|
+
(0, logStatus_js_1.logOperationStatus)({ index, status: 'error', operation, error });
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
exports.generateOperations = generateOperations;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
2
|
+
import type { RefName } from '../types/RefName.js';
|
|
3
|
+
export type GenerationStatus = 'success' | 'error' | 'skip';
|
|
4
|
+
type LogOperationStatusArgs = {
|
|
5
|
+
index: number;
|
|
6
|
+
status: GenerationStatus;
|
|
7
|
+
operation: OasOperation;
|
|
8
|
+
error?: unknown;
|
|
9
|
+
};
|
|
10
|
+
export declare const logOperationStatus: ({ index, status, operation, error }: LogOperationStatusArgs) => void;
|
|
11
|
+
type LogModelStatusArgs = {
|
|
12
|
+
index: number;
|
|
13
|
+
status: GenerationStatus;
|
|
14
|
+
refName: RefName;
|
|
15
|
+
error?: unknown;
|
|
16
|
+
};
|
|
17
|
+
export declare const logModelStatus: ({ index, status, refName, error }: LogModelStatusArgs) => void;
|
|
18
|
+
export {};
|
|
19
|
+
//# 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;AACjE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAA;AAE3D,KAAK,sBAAsB,GAAG;IAC5B,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,gBAAgB,CAAA;IACxB,SAAS,EAAE,YAAY,CAAA;IACvB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,kBAAkB,wCAK5B,sBAAsB,KAAG,IAgB3B,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,gBAAgB,CAAA;IACxB,OAAO,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB,CAAA;AAED,eAAO,MAAM,cAAc,sCAKxB,kBAAkB,KAAG,IAevB,CAAA"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.logModelStatus = exports.logOperationStatus = void 0;
|
|
4
|
+
const logOperationStatus = ({ index, status, operation, error }) => {
|
|
5
|
+
if (status !== 'error') {
|
|
6
|
+
return;
|
|
7
|
+
}
|
|
8
|
+
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
9
|
+
console.log(status === 'error' ? '❌ ' : ' ', `${index + 1}. `.padEnd(5), operation.method.toUpperCase().padEnd(8), operation.path.padEnd(5), status === 'error' ? `- ${message}` : '');
|
|
10
|
+
error && console.error(error.toString());
|
|
11
|
+
};
|
|
12
|
+
exports.logOperationStatus = logOperationStatus;
|
|
13
|
+
const logModelStatus = ({ index, status, refName, error }) => {
|
|
14
|
+
if (status !== 'error') {
|
|
15
|
+
return;
|
|
16
|
+
}
|
|
17
|
+
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
18
|
+
console.log(status === 'error' ? '❌ ' : ' ', `${index + 1}. `.padEnd(5), refName, status === 'error' ? `- ${message}` : '');
|
|
19
|
+
error && console.error(error.toString());
|
|
20
|
+
};
|
|
21
|
+
exports.logModelStatus = logModelStatus;
|
|
@@ -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,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.toMethodVerb = exports.toArgsName = exports.toResponseName = exports.toEndpointName = exports.toEndpointType = void 0;
|
|
4
|
+
const lodash_es_1 = require("lodash-es");
|
|
5
|
+
const ts_pattern_1 = require("ts-pattern");
|
|
6
|
+
const toEndpointType = (operation) => {
|
|
7
|
+
return operation.method === 'get' ? 'query' : 'mutation';
|
|
8
|
+
};
|
|
9
|
+
exports.toEndpointType = toEndpointType;
|
|
10
|
+
/** generates endpoint name in the `camelCase{method}Api{path}` format */
|
|
11
|
+
const toEndpointName = (operation) => {
|
|
12
|
+
const { path, method } = operation;
|
|
13
|
+
const verb = (0, exports.toMethodVerb)(method);
|
|
14
|
+
return (0, lodash_es_1.camelCase)(`${verb}Api${path}`);
|
|
15
|
+
};
|
|
16
|
+
exports.toEndpointName = toEndpointName;
|
|
17
|
+
const toResponseName = (operation) => {
|
|
18
|
+
const operationName = (0, exports.toEndpointName)(operation);
|
|
19
|
+
return `${operationName}Response`;
|
|
20
|
+
};
|
|
21
|
+
exports.toResponseName = toResponseName;
|
|
22
|
+
const toArgsName = (operation) => {
|
|
23
|
+
const operationName = (0, exports.toEndpointName)(operation);
|
|
24
|
+
return `${operationName}Args`;
|
|
25
|
+
};
|
|
26
|
+
exports.toArgsName = toArgsName;
|
|
27
|
+
const toMethodVerb = (method) => {
|
|
28
|
+
return (0, ts_pattern_1.match)(method)
|
|
29
|
+
.with('post', () => 'Create')
|
|
30
|
+
.with('put', () => 'Update')
|
|
31
|
+
.otherwise(matched => matched);
|
|
32
|
+
};
|
|
33
|
+
exports.toMethodVerb = toMethodVerb;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { RefName } from '../types/RefName.js';
|
|
2
|
+
export declare const toRefName: ($ref: string) => RefName;
|
|
3
|
+
type Ref = {
|
|
4
|
+
$ref: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const isRef: (value: unknown) => value is Ref;
|
|
7
|
+
export declare const isImported: (pathOne: string, pathTwo: string) => boolean;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=refFns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refFns.d.ts","sourceRoot":"","sources":["../../src/helpers/refFns.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,eAAO,MAAM,SAAS,SAAU,MAAM,KAAG,OASxC,CAAA;AAED,KAAK,GAAG,GAAG;IACT,IAAI,EAAE,MAAM,CAAA;CACb,CAAA;AAED,eAAO,MAAM,KAAK,UAAW,OAAO,KAAG,KAAK,IAAI,GAW/C,CAAA;AAGD,eAAO,MAAM,UAAU,YAAa,MAAM,WAAW,MAAM,KAAG,OAE7D,CAAA"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isImported = exports.isRef = exports.toRefName = void 0;
|
|
4
|
+
const mod_js_1 = require("../deps/jsr.io/@std/path/1.0.0/mod.js");
|
|
5
|
+
const toRefName = ($ref) => {
|
|
6
|
+
// TODO: Add validation here to ensure reference exists
|
|
7
|
+
const refName = $ref.split('/').slice(-1)[0];
|
|
8
|
+
if (!refName) {
|
|
9
|
+
throw new Error('Invalid reference');
|
|
10
|
+
}
|
|
11
|
+
return refName;
|
|
12
|
+
};
|
|
13
|
+
exports.toRefName = toRefName;
|
|
14
|
+
const isRef = (value) => {
|
|
15
|
+
if (value &&
|
|
16
|
+
typeof value === 'object' &&
|
|
17
|
+
'$ref' in value &&
|
|
18
|
+
typeof value.$ref === 'string') {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
return false;
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
exports.isRef = isRef;
|
|
26
|
+
// @TODO move to own file
|
|
27
|
+
const isImported = (pathOne, pathTwo) => {
|
|
28
|
+
return (0, mod_js_1.normalize)(pathOne) !== (0, mod_js_1.normalize)(pathTwo);
|
|
29
|
+
};
|
|
30
|
+
exports.isImported = isImported;
|
|
@@ -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,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.decapitalize = exports.capitalize = void 0;
|
|
4
|
+
const capitalize = (str) => {
|
|
5
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
6
|
+
};
|
|
7
|
+
exports.capitalize = capitalize;
|
|
8
|
+
const decapitalize = (str) => {
|
|
9
|
+
return str.charAt(0).toLocaleLowerCase() + str.slice(1);
|
|
10
|
+
};
|
|
11
|
+
exports.decapitalize = decapitalize;
|
|
@@ -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,CAcvB"}
|