@skmtc/core 0.0.470 → 0.0.475
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/context/CoreContext.d.ts +1 -1
- package/esm/context/CoreContext.js +1 -1
- package/esm/context/GenerateContext.d.ts +4 -4
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +20 -61
- package/esm/context/ParseContext.d.ts +1 -1
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseContext.js +1 -1
- package/esm/context/RenderContext.d.ts +1 -1
- package/esm/context/ResultsHandler.d.ts +4 -4
- package/esm/context/ResultsHandler.js +2 -2
- package/esm/deps/jsr.io/@std/fs/{1.0.4 → 1.0.3}/exists.d.ts +16 -36
- package/esm/deps/jsr.io/@std/fs/1.0.3/exists.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/fs/{1.0.4 → 1.0.3}/exists.js +16 -36
- package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.224.8}/types.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.224.8}/write_all.d.ts +2 -2
- package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.224.8}/write_all.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.224.8}/write_all.js +2 -2
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_config.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_file_handler_symbols.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_state.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/base_handler.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/console_handler.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/console_handler.js +0 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/critical.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/debug.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/error.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/file_handler.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/formatters.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/get_logger.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/info.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/levels.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/log/0.224.8 → esm/deps/jsr.io/@std/log/0.224.7}/logger.d.ts +0 -1
- package/esm/deps/jsr.io/@std/log/0.224.7/logger.d.ts.map +1 -0
- package/{script/deps/jsr.io/@std/log/0.224.8 → esm/deps/jsr.io/@std/log/0.224.7}/mod.d.ts +5 -5
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/mod.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/mod.js +5 -5
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/rotating_file_handler.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/rotating_file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/setup.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.7/warn.d.ts +5 -0
- package/esm/deps/jsr.io/@std/log/0.224.7/warn.d.ts.map +1 -0
- package/esm/dsl/ContentSettings.d.ts +1 -5
- package/esm/dsl/ContentSettings.d.ts.map +1 -1
- package/esm/dsl/ContentSettings.js +2 -18
- package/esm/dsl/model/ModelDriver.js +2 -2
- package/esm/dsl/model/ModelInsertable.d.ts +2 -0
- package/esm/dsl/model/ModelInsertable.d.ts.map +1 -1
- package/esm/dsl/model/toModelInsertable.d.ts +2 -0
- package/esm/dsl/model/toModelInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/OperationDriver.js +2 -2
- package/esm/dsl/operation/OperationInsertable.d.ts +3 -0
- package/esm/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationGateway.d.ts +2 -0
- package/esm/dsl/operation/toOperationGateway.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationInsertable.d.ts +2 -0
- package/esm/dsl/operation/toOperationInsertable.d.ts.map +1 -1
- package/esm/helpers/ResultsLog.d.ts.map +1 -1
- package/esm/helpers/naming.d.ts.map +1 -1
- package/esm/mod.d.ts +3 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +3 -1
- package/esm/oas/array/Array.d.ts +3 -1
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +10 -0
- package/esm/oas/boolean/Boolean.d.ts +3 -0
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +10 -0
- package/esm/oas/contact/Contact.d.ts.map +1 -1
- package/esm/oas/integer/Integer.d.ts +3 -0
- package/esm/oas/integer/Integer.d.ts.map +1 -1
- package/esm/oas/integer/Integer.js +12 -0
- package/esm/oas/integer/integer-types.d.ts.map +1 -1
- package/esm/oas/integer/integer-types.js +1 -5
- package/esm/oas/intersection/Intersection.d.ts +3 -1
- package/esm/oas/intersection/Intersection.d.ts.map +1 -1
- package/esm/oas/intersection/Intersection.js +9 -0
- package/esm/oas/number/Number.d.ts +3 -0
- package/esm/oas/number/Number.d.ts.map +1 -1
- package/esm/oas/number/Number.js +10 -0
- package/esm/oas/object/Object.d.ts +3 -1
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +21 -0
- package/esm/oas/ref/Ref.d.ts +3 -1
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/ref/Ref.js +11 -0
- package/esm/oas/schema/Schema.d.ts +3 -0
- package/esm/oas/schema/Schema.d.ts.map +1 -1
- package/esm/oas/string/String.d.ts +3 -0
- package/esm/oas/string/String.d.ts.map +1 -1
- package/esm/oas/string/String.js +14 -0
- package/esm/oas/string/string-types.d.ts.map +1 -1
- package/esm/oas/string/string-types.js +1 -4
- package/esm/oas/union/Union.d.ts +3 -0
- package/esm/oas/union/Union.d.ts.map +1 -1
- package/esm/oas/union/Union.js +9 -0
- package/esm/oas/unknown/Unknown.d.ts +3 -0
- package/esm/oas/unknown/Unknown.d.ts.map +1 -1
- package/esm/oas/unknown/Unknown.js +7 -0
- package/esm/run/toSettings.d.ts +15 -0
- package/esm/run/toSettings.d.ts.map +1 -0
- package/esm/run/toSettings.js +74 -0
- package/esm/run/transform.d.ts.map +1 -0
- package/esm/types/EnrichmentRequest.d.ts +57 -0
- package/esm/types/EnrichmentRequest.d.ts.map +1 -0
- package/esm/types/EnrichmentRequest.js +1 -0
- package/esm/types/Settings.d.ts +24 -483
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +2 -11
- package/esm/typescript/FunctionParameter.d.ts.map +1 -1
- package/esm/typescript/FunctionParameter.js +1 -1
- package/package.json +8 -3
- package/script/context/CoreContext.d.ts +1 -1
- package/script/context/CoreContext.js +1 -1
- package/script/context/GenerateContext.d.ts +4 -4
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +19 -60
- package/script/context/ParseContext.d.ts +1 -1
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseContext.js +1 -1
- package/script/context/RenderContext.d.ts +1 -1
- package/script/context/ResultsHandler.d.ts +4 -4
- package/script/context/ResultsHandler.js +2 -2
- package/script/deps/jsr.io/@std/fs/{1.0.4 → 1.0.3}/exists.d.ts +16 -36
- package/script/deps/jsr.io/@std/fs/1.0.3/exists.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/fs/{1.0.4 → 1.0.3}/exists.js +16 -36
- package/script/deps/jsr.io/@std/io/{0.224.9 → 0.224.8}/types.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.9 → 0.224.8}/write_all.d.ts +2 -2
- package/script/deps/jsr.io/@std/io/{0.224.9 → 0.224.8}/write_all.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/io/{0.224.9 → 0.224.8}/write_all.js +2 -2
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_config.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_file_handler_symbols.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_state.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/base_handler.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/console_handler.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/console_handler.js +0 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/critical.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/debug.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/error.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/file_handler.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/file_handler.js +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/formatters.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/get_logger.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/info.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/levels.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/log/0.224.8 → script/deps/jsr.io/@std/log/0.224.7}/logger.d.ts +0 -1
- package/script/deps/jsr.io/@std/log/0.224.7/logger.d.ts.map +1 -0
- package/{esm/deps/jsr.io/@std/log/0.224.8 → script/deps/jsr.io/@std/log/0.224.7}/mod.d.ts +5 -5
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/mod.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/mod.js +5 -5
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/rotating_file_handler.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/rotating_file_handler.js +1 -1
- package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/setup.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/0.224.7/warn.d.ts +5 -0
- package/script/deps/jsr.io/@std/log/0.224.7/warn.d.ts.map +1 -0
- package/script/dsl/ContentSettings.d.ts +1 -5
- package/script/dsl/ContentSettings.d.ts.map +1 -1
- package/script/dsl/ContentSettings.js +2 -18
- package/script/dsl/model/ModelDriver.js +2 -2
- package/script/dsl/model/ModelInsertable.d.ts +2 -0
- package/script/dsl/model/ModelInsertable.d.ts.map +1 -1
- package/script/dsl/model/toModelInsertable.d.ts +2 -0
- package/script/dsl/model/toModelInsertable.d.ts.map +1 -1
- package/script/dsl/operation/OperationDriver.js +2 -2
- package/script/dsl/operation/OperationInsertable.d.ts +3 -0
- package/script/dsl/operation/OperationInsertable.d.ts.map +1 -1
- package/script/dsl/operation/toOperationGateway.d.ts +2 -0
- package/script/dsl/operation/toOperationGateway.d.ts.map +1 -1
- package/script/dsl/operation/toOperationInsertable.d.ts +2 -0
- package/script/dsl/operation/toOperationInsertable.d.ts.map +1 -1
- package/script/helpers/ResultsLog.d.ts.map +1 -1
- package/script/helpers/naming.d.ts.map +1 -1
- package/script/mod.d.ts +3 -1
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +3 -1
- package/script/oas/array/Array.d.ts +3 -1
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +10 -0
- package/script/oas/boolean/Boolean.d.ts +3 -0
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +10 -0
- package/script/oas/contact/Contact.d.ts.map +1 -1
- package/script/oas/integer/Integer.d.ts +3 -0
- package/script/oas/integer/Integer.d.ts.map +1 -1
- package/script/oas/integer/Integer.js +12 -0
- package/script/oas/integer/integer-types.d.ts.map +1 -1
- package/script/oas/integer/integer-types.js +1 -5
- package/script/oas/intersection/Intersection.d.ts +3 -1
- package/script/oas/intersection/Intersection.d.ts.map +1 -1
- package/script/oas/intersection/Intersection.js +9 -0
- package/script/oas/number/Number.d.ts +3 -0
- package/script/oas/number/Number.d.ts.map +1 -1
- package/script/oas/number/Number.js +10 -0
- package/script/oas/object/Object.d.ts +3 -1
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/Object.js +21 -0
- package/script/oas/ref/Ref.d.ts +3 -1
- package/script/oas/ref/Ref.d.ts.map +1 -1
- package/script/oas/ref/Ref.js +11 -0
- package/script/oas/schema/Schema.d.ts +3 -0
- package/script/oas/schema/Schema.d.ts.map +1 -1
- package/script/oas/string/String.d.ts +3 -0
- package/script/oas/string/String.d.ts.map +1 -1
- package/script/oas/string/String.js +14 -0
- package/script/oas/string/string-types.d.ts.map +1 -1
- package/script/oas/string/string-types.js +1 -4
- package/script/oas/union/Union.d.ts +3 -0
- package/script/oas/union/Union.d.ts.map +1 -1
- package/script/oas/union/Union.js +9 -0
- package/script/oas/unknown/Unknown.d.ts +3 -0
- package/script/oas/unknown/Unknown.d.ts.map +1 -1
- package/script/oas/unknown/Unknown.js +7 -0
- package/script/run/toSettings.d.ts +15 -0
- package/script/run/toSettings.d.ts.map +1 -0
- package/script/run/toSettings.js +78 -0
- package/script/run/transform.d.ts.map +1 -0
- package/script/types/EnrichmentRequest.d.ts +57 -0
- package/script/types/EnrichmentRequest.d.ts.map +1 -0
- package/script/types/EnrichmentRequest.js +3 -0
- package/script/types/Settings.d.ts +24 -483
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +3 -12
- package/script/typescript/FunctionParameter.d.ts.map +1 -1
- package/script/typescript/FunctionParameter.js +1 -1
- package/esm/deps/jsr.io/@std/fs/1.0.4/exists.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/log/0.224.8/logger.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/log/0.224.8/warn.d.ts +0 -51
- package/esm/deps/jsr.io/@std/log/0.224.8/warn.d.ts.map +0 -1
- package/esm/transform/transform.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/fs/1.0.4/exists.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/logger.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts +0 -51
- package/script/deps/jsr.io/@std/log/0.224.8/warn.d.ts.map +0 -1
- package/script/transform/transform.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.224.8}/types.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/io/{0.224.9 → 0.224.8}/types.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_config.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_config.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_file_handler_symbols.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_file_handler_symbols.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_state.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_state.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/base_handler.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/base_handler.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/console_handler.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/critical.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/critical.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/debug.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/debug.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/error.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/error.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/file_handler.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/formatters.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/formatters.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/get_logger.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/get_logger.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/info.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/info.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/levels.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/levels.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/logger.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/rotating_file_handler.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/setup.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/setup.js +0 -0
- /package/esm/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/warn.js +0 -0
- /package/esm/{transform → run}/transform.d.ts +0 -0
- /package/esm/{transform → run}/transform.js +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.9 → 0.224.8}/types.d.ts +0 -0
- /package/script/deps/jsr.io/@std/io/{0.224.9 → 0.224.8}/types.js +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_config.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_config.js +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_file_handler_symbols.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_file_handler_symbols.js +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_state.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/_state.js +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/base_handler.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/base_handler.js +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/console_handler.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/critical.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/critical.js +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/debug.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/debug.js +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/error.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/error.js +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/file_handler.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/formatters.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/formatters.js +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/get_logger.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/get_logger.js +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/info.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/info.js +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/levels.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/levels.js +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/logger.js +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/rotating_file_handler.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/setup.d.ts +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/setup.js +0 -0
- /package/script/deps/jsr.io/@std/log/{0.224.8 → 0.224.7}/warn.js +0 -0
- /package/script/{transform → run}/transform.d.ts +0 -0
- /package/script/{transform → run}/transform.js +0 -0
|
@@ -7,7 +7,7 @@ import type { ClientSettings } from '../types/Settings.js';
|
|
|
7
7
|
import type { OperationGateway, OperationInsertable } from '../dsl/operation/OperationInsertable.js';
|
|
8
8
|
import type { ModelInsertable } from '../dsl/model/ModelInsertable.js';
|
|
9
9
|
import type { ResultType } from '../types/Results.js';
|
|
10
|
-
import * as log from '../deps/jsr.io/@std/log/0.224.
|
|
10
|
+
import * as log from '../deps/jsr.io/@std/log/0.224.7/mod.js';
|
|
11
11
|
import type { GeneratorKey } from '../types/GeneratorKeys.js';
|
|
12
12
|
import type { GeneratedValue } from '../types/GeneratedValue.js';
|
|
13
13
|
export type ParsePhase = {
|
|
@@ -13,7 +13,7 @@ var _CoreContext_instances, _CoreContext_phase, _CoreContext_results, _CoreConte
|
|
|
13
13
|
import { GenerateContext } from './GenerateContext.js';
|
|
14
14
|
import { RenderContext } from './RenderContext.js';
|
|
15
15
|
import { ParseContext } from './ParseContext.js';
|
|
16
|
-
import * as log from '../deps/jsr.io/@std/log/0.224.
|
|
16
|
+
import * as log from '../deps/jsr.io/@std/log/0.224.7/mod.js';
|
|
17
17
|
import { ResultsHandler } from './ResultsHandler.js';
|
|
18
18
|
import { StackTrail } from './StackTrail.js';
|
|
19
19
|
import { tracer } from '../helpers/tracer.js';
|
|
@@ -3,7 +3,7 @@ import { Definition } from '../dsl/Definition.js';
|
|
|
3
3
|
import type { OasDocument } from '../oas/document/Document.js';
|
|
4
4
|
import type { OasSchema } from '../oas/schema/Schema.js';
|
|
5
5
|
import type { OasRef } from '../oas/ref/Ref.js';
|
|
6
|
-
import type {
|
|
6
|
+
import type { ClientGeneratorSettings, ClientSettings } from '../types/Settings.js';
|
|
7
7
|
import type { Method } from '../types/Method.js';
|
|
8
8
|
import type { OperationInsertable, OperationGateway } from '../dsl/operation/OperationInsertable.js';
|
|
9
9
|
import type { OasOperation } from '../oas/operation/Operation.js';
|
|
@@ -11,7 +11,7 @@ import type { ModelInsertable } from '../dsl/model/ModelInsertable.js';
|
|
|
11
11
|
import type { GenerationType, GeneratedValue } from '../types/GeneratedValue.js';
|
|
12
12
|
import { ContentSettings } from '../dsl/ContentSettings.js';
|
|
13
13
|
import type { RefName } from '../types/RefName.js';
|
|
14
|
-
import type * as log from '../deps/jsr.io/@std/log/0.224.
|
|
14
|
+
import type * as log from '../deps/jsr.io/@std/log/0.224.7/mod.js';
|
|
15
15
|
import type { GeneratorKey } from '../types/GeneratorKeys.js';
|
|
16
16
|
import type { ResultType } from '../types/Results.js';
|
|
17
17
|
import type { StackTrail } from './StackTrail.js';
|
|
@@ -208,8 +208,8 @@ export declare class GenerateContext {
|
|
|
208
208
|
* @param { generatorId, path, method }
|
|
209
209
|
* @returns Base settings for operation
|
|
210
210
|
*/
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
toOperationSelected({ generatorId, path, method }: GetOperationSettingsArgs): boolean | undefined;
|
|
212
|
+
toModelSelected({ generatorId, refName }: GetModelSettingsArgs): boolean | undefined;
|
|
213
213
|
toGeneratorSettings(generatorId: string): ClientGeneratorSettings | undefined;
|
|
214
214
|
/**
|
|
215
215
|
* Perform one lookup of schema by `refName`.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenerateContext.d.ts","sourceRoot":"","sources":["../../src/context/GenerateContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"GenerateContext.d.ts","sourceRoot":"","sources":["../../src/context/GenerateContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAErD,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACjD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,KAAK,EAAE,uBAAuB,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACnF,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,yCAAyC,CAAA;AACpG,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAC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,SAAS,cAAc,EAAE,EAC9D,UAAU,EACV,OAAO,EACP,UAAU,EACV,eAAe,EAChB,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;IAYzC;;;;;;;;;OASG;IACH,0BAA0B,CAAC,CAAC,EAAE,EAC5B,SAAS,EACT,UAAU,EACX,EAAE,uBAAuB,CAAC,CAAC,CAAC,GAAG,eAAe;IAc/C;;;;;;;;OAQG;IACH,sBAAsB,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,eAAe;IAa9F;;;;;;;OAOG;IACH,uBAAuB,CAAC,OAAO,EAAE,gBAAgB,GAAG,eAAe;IAQnE;;;;OAIG;IACH,mBAAmB,CAAC,EAClB,WAAW,EACX,IAAI,EACJ,MAAM,EACP,EAAE,wBAAwB,GAAG,OAAO,GAAG,SAAS;IAWjD,eAAe,CAAC,EAAE,WAAW,EAAE,OAAO,EAAE,EAAE,oBAAoB,GAAG,OAAO,GAAG,SAAS;IAWpF,mBAAmB,CAAC,WAAW,EAAE,MAAM,GAAG,uBAAuB,GAAG,SAAS;IAe7E;;;;;OAKG;IACH,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;IAUpE;;;;;;OAMG;IACH,cAAc,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS;CAGvE"}
|
|
@@ -9,8 +9,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
9
9
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
10
10
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
11
11
|
};
|
|
12
|
-
var _GenerateContext_instances, _GenerateContext_files, _GenerateContext_previews, _GenerateContext_stackTrail, _GenerateContext_runOperationGenerator, _GenerateContext_runModelGenerator, _GenerateContext_getFile,
|
|
13
|
-
import {
|
|
12
|
+
var _GenerateContext_instances, _GenerateContext_files, _GenerateContext_previews, _GenerateContext_stackTrail, _GenerateContext_runOperationGenerator, _GenerateContext_runModelGenerator, _GenerateContext_getFile, _GenerateContext_addFile;
|
|
13
|
+
import { normalize } from '../deps/jsr.io/@std/path/1.0.6/mod.js';
|
|
14
14
|
import { Import } from '../dsl/Import.js';
|
|
15
15
|
import { Definition } from '../dsl/Definition.js';
|
|
16
16
|
import { OperationDriver } from '../dsl/operation/OperationDriver.js';
|
|
@@ -282,19 +282,15 @@ export class GenerateContext {
|
|
|
282
282
|
* @returns
|
|
283
283
|
*/
|
|
284
284
|
toOperationContentSettings({ operation, insertable }) {
|
|
285
|
-
const
|
|
285
|
+
const selected = this.toOperationSelected({
|
|
286
286
|
generatorId: insertable.id,
|
|
287
287
|
path: operation.path,
|
|
288
288
|
method: operation.method
|
|
289
289
|
});
|
|
290
|
-
const generatedExportPath = insertable.toExportPath(operation);
|
|
291
|
-
const exportPath = __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_setExportPath).call(this, { generatedExportPath, baseSettings });
|
|
292
290
|
return new ContentSettings({
|
|
291
|
+
selected: Boolean(selected),
|
|
293
292
|
identifier: insertable.toIdentifier(operation),
|
|
294
|
-
|
|
295
|
-
exportPath,
|
|
296
|
-
importFrom: baseSettings.importFrom ?? exportPath,
|
|
297
|
-
parentExportPath: baseSettings.parentExportPath
|
|
293
|
+
exportPath: insertable.toExportPath(operation)
|
|
298
294
|
});
|
|
299
295
|
}
|
|
300
296
|
/**
|
|
@@ -307,18 +303,14 @@ export class GenerateContext {
|
|
|
307
303
|
* @returns Content settings for model
|
|
308
304
|
*/
|
|
309
305
|
toModelContentSettings({ refName, insertable }) {
|
|
310
|
-
const
|
|
306
|
+
const selected = this.toModelSelected({
|
|
311
307
|
generatorId: insertable.id,
|
|
312
308
|
refName
|
|
313
309
|
});
|
|
314
|
-
const generatedExportPath = insertable.toExportPath(refName);
|
|
315
|
-
const exportPath = __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_setExportPath).call(this, { generatedExportPath, baseSettings });
|
|
316
310
|
return new ContentSettings({
|
|
317
311
|
identifier: insertable.toIdentifier(refName),
|
|
318
|
-
selected:
|
|
319
|
-
exportPath
|
|
320
|
-
importFrom: baseSettings.importFrom ?? exportPath,
|
|
321
|
-
parentExportPath: baseSettings.parentExportPath
|
|
312
|
+
selected: Boolean(selected),
|
|
313
|
+
exportPath: insertable.toExportPath(refName)
|
|
322
314
|
});
|
|
323
315
|
}
|
|
324
316
|
/**
|
|
@@ -330,14 +322,10 @@ export class GenerateContext {
|
|
|
330
322
|
* @returns Content settings for model
|
|
331
323
|
*/
|
|
332
324
|
toGatewayContentSetting(gateway) {
|
|
333
|
-
const baseSettings = __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_toGatewayBaseSettings).call(this, gateway.id);
|
|
334
|
-
const exportPath = gateway.toExportPath();
|
|
335
325
|
return new ContentSettings({
|
|
336
326
|
identifier: gateway.toIdentifier(),
|
|
337
|
-
selected:
|
|
338
|
-
exportPath
|
|
339
|
-
importFrom: baseSettings.importFrom ?? exportPath,
|
|
340
|
-
parentExportPath: baseSettings.parentExportPath
|
|
327
|
+
selected: true,
|
|
328
|
+
exportPath: gateway.toExportPath()
|
|
341
329
|
});
|
|
342
330
|
}
|
|
343
331
|
/**
|
|
@@ -345,27 +333,19 @@ export class GenerateContext {
|
|
|
345
333
|
* @param { generatorId, path, method }
|
|
346
334
|
* @returns Base settings for operation
|
|
347
335
|
*/
|
|
348
|
-
|
|
336
|
+
toOperationSelected({ generatorId, path, method }) {
|
|
349
337
|
const generatorSettings = this.toGeneratorSettings(generatorId);
|
|
350
338
|
const operationSettings = generatorSettings && 'operations' in generatorSettings
|
|
351
339
|
? generatorSettings.operations[path]?.[method]
|
|
352
340
|
: undefined;
|
|
353
|
-
|
|
354
|
-
return __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_cleanBaseSettings).call(this, {
|
|
355
|
-
...operationSettings,
|
|
356
|
-
parentExportPath: exportPath
|
|
357
|
-
});
|
|
341
|
+
return operationSettings;
|
|
358
342
|
}
|
|
359
|
-
|
|
343
|
+
toModelSelected({ generatorId, refName }) {
|
|
360
344
|
const generatorSettings = this.toGeneratorSettings(generatorId);
|
|
361
345
|
const modelSettings = generatorSettings && 'models' in generatorSettings
|
|
362
346
|
? generatorSettings.models[refName]
|
|
363
347
|
: undefined;
|
|
364
|
-
|
|
365
|
-
return __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_cleanBaseSettings).call(this, {
|
|
366
|
-
...modelSettings,
|
|
367
|
-
parentExportPath: exportPath
|
|
368
|
-
});
|
|
348
|
+
return modelSettings;
|
|
369
349
|
}
|
|
370
350
|
toGeneratorSettings(generatorId) {
|
|
371
351
|
return this.settings?.generators?.find(({ id }) => id === generatorId);
|
|
@@ -414,12 +394,12 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
414
394
|
if (!generator.isSupported(operation)) {
|
|
415
395
|
return this.captureCurrentResult('notSupported');
|
|
416
396
|
}
|
|
417
|
-
const
|
|
397
|
+
const selected = this.toOperationSelected({
|
|
418
398
|
generatorId: generator.id,
|
|
419
399
|
path,
|
|
420
400
|
method
|
|
421
401
|
});
|
|
422
|
-
if (!
|
|
402
|
+
if (!selected) {
|
|
423
403
|
return this.captureCurrentResult('notSelected');
|
|
424
404
|
}
|
|
425
405
|
gatewayInstance.transformOperation(operation);
|
|
@@ -446,12 +426,12 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
446
426
|
if (!generator.isSupported(operation)) {
|
|
447
427
|
return this.captureCurrentResult('notSupported');
|
|
448
428
|
}
|
|
449
|
-
const
|
|
429
|
+
const selected = this.toOperationSelected({
|
|
450
430
|
generatorId: generator.id,
|
|
451
431
|
path,
|
|
452
432
|
method
|
|
453
433
|
});
|
|
454
|
-
if (!
|
|
434
|
+
if (!selected) {
|
|
455
435
|
return this.captureCurrentResult('notSelected');
|
|
456
436
|
}
|
|
457
437
|
this.insertOperation({ insertable: generator, operation });
|
|
@@ -467,11 +447,11 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
467
447
|
if (!generator.isSupported()) {
|
|
468
448
|
return this.captureCurrentResult('notSupported');
|
|
469
449
|
}
|
|
470
|
-
const
|
|
450
|
+
const selected = this.toModelSelected({
|
|
471
451
|
generatorId: generator.id,
|
|
472
452
|
refName
|
|
473
453
|
});
|
|
474
|
-
if (!
|
|
454
|
+
if (!selected) {
|
|
475
455
|
return this.captureCurrentResult('notSelected');
|
|
476
456
|
}
|
|
477
457
|
this.insertModel({ insertable: generator, refName });
|
|
@@ -490,27 +470,6 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
490
470
|
}
|
|
491
471
|
}
|
|
492
472
|
return currentFile;
|
|
493
|
-
}, _GenerateContext_setExportPath = function _GenerateContext_setExportPath({ generatedExportPath, baseSettings }) {
|
|
494
|
-
const { parentExportPath, exportPath } = baseSettings;
|
|
495
|
-
if (exportPath) {
|
|
496
|
-
return join(parentExportPath ?? '', exportPath);
|
|
497
|
-
}
|
|
498
|
-
if (generatedExportPath.startsWith('@/')) {
|
|
499
|
-
return generatedExportPath;
|
|
500
|
-
}
|
|
501
|
-
const combinedExportPath = join(parentExportPath ?? '', generatedExportPath);
|
|
502
|
-
return combinedExportPath;
|
|
503
|
-
}, _GenerateContext_toGatewayBaseSettings = function _GenerateContext_toGatewayBaseSettings(generatorId) {
|
|
504
|
-
const generatorSettings = this.toGeneratorSettings(generatorId);
|
|
505
|
-
return __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_cleanBaseSettings).call(this, generatorSettings?.baseSettings);
|
|
506
|
-
}, _GenerateContext_cleanBaseSettings = function _GenerateContext_cleanBaseSettings(baseSettings) {
|
|
507
|
-
return {
|
|
508
|
-
exportPath: baseSettings?.exportPath,
|
|
509
|
-
selected: Boolean(baseSettings?.selected),
|
|
510
|
-
name: baseSettings?.name,
|
|
511
|
-
importFrom: baseSettings?.importFrom,
|
|
512
|
-
parentExportPath: baseSettings?.parentExportPath
|
|
513
|
-
};
|
|
514
473
|
}, _GenerateContext_addFile = function _GenerateContext_addFile(normalisedPath) {
|
|
515
474
|
if (__classPrivateFieldGet(this, _GenerateContext_files, "f").has(normalisedPath)) {
|
|
516
475
|
throw new Error(`File already exists: ${normalisedPath}`);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { OpenAPIV3 } from 'openapi-types';
|
|
2
2
|
import { OasDocument } from '../oas/document/Document.js';
|
|
3
|
-
import type * as log from '../deps/jsr.io/@std/log/0.224.
|
|
3
|
+
import type * as log from '../deps/jsr.io/@std/log/0.224.7/mod.js';
|
|
4
4
|
import type { StackTrail } from './StackTrail.js';
|
|
5
5
|
type ConstructorArgs = {
|
|
6
6
|
schema: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParseContext.d.ts","sourceRoot":"","sources":["../../src/context/ParseContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ParseContext.d.ts","sourceRoot":"","sources":["../../src/context/ParseContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAI9C,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,KAAK,KAAK,GAAG,MAAM,wCAAwC,CAAA;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAIjD,KAAK,eAAe,GAAG;IACrB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,GAAG,CAAC,MAAM,CAAA;IAClB,UAAU,EAAE,UAAU,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,WAAW,GAAG;IACxB,WAAW,EAAE,WAAW,CAAA;IACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACpC,CAAA;AAED,KAAK,qBAAqB,GAAG;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACzC,CAAA;AAED,qBAAa,YAAY;;IACvB,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,GAAG,CAAC,MAAM,CAAA;IAClB,WAAW,EAAE,WAAW,CAAA;IACxB,UAAU,EAAE,UAAU,CAAA;IACtB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;gBAEvB,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,eAAe;IAQ3D,KAAK;IA6BL,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC;IAiBlD,iBAAiB,CAAC,EAAE,eAAe,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,qBAAqB,GAAG,IAAI;IAIrF,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAUlD;AAED,eAAO,MAAM,WAAW,WAAY,MAAM,2BAMzC,CAAA"}
|
|
@@ -4,12 +4,12 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _ParseContext_instances, _ParseContext_parseSchema, _ParseContext_parseDocument;
|
|
7
|
+
import { setWith } from 'lodash-es';
|
|
7
8
|
import * as Sentry from '@sentry/deno';
|
|
8
9
|
import { parse as parseYaml } from '../deps/jsr.io/@std/yaml/0.215.0/mod.js';
|
|
9
10
|
import { toDocumentFieldsV3 } from '../oas/document/toDocumentFieldsV3.js';
|
|
10
11
|
import { OasDocument } from '../oas/document/Document.js';
|
|
11
12
|
import { tracer } from '../helpers/tracer.js';
|
|
12
|
-
import { setWith } from 'lodash-es';
|
|
13
13
|
import { Converter } from '@apiture/openapi-down-convert';
|
|
14
14
|
export class ParseContext {
|
|
15
15
|
constructor({ schema, logger, stackTrail }) {
|
|
@@ -4,7 +4,7 @@ import type { Definition } from '../dsl/Definition.js';
|
|
|
4
4
|
import type { PickArgs } from './GenerateContext.js';
|
|
5
5
|
import type { ResultType } from '../types/Results.js';
|
|
6
6
|
import type { StackTrail } from './StackTrail.js';
|
|
7
|
-
import type * as log from '../deps/jsr.io/@std/log/0.224.
|
|
7
|
+
import type * as log from '../deps/jsr.io/@std/log/0.224.7/mod.js';
|
|
8
8
|
import type { File } from '../dsl/File.js';
|
|
9
9
|
type ConstructorArgs = {
|
|
10
10
|
files: Map<string, File>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { type LevelName } from '../deps/jsr.io/@std/log/0.224.
|
|
2
|
-
import type { LogRecord } from '../deps/jsr.io/@std/log/0.224.
|
|
3
|
-
import { BaseHandler } from '../deps/jsr.io/@std/log/0.224.
|
|
4
|
-
import type { BaseHandlerOptions } from '../deps/jsr.io/@std/log/0.224.
|
|
1
|
+
import { type LevelName } from '../deps/jsr.io/@std/log/0.224.7/levels.js';
|
|
2
|
+
import type { LogRecord } from '../deps/jsr.io/@std/log/0.224.7/logger.js';
|
|
3
|
+
import { BaseHandler } from '../deps/jsr.io/@std/log/0.224.7/base_handler.js';
|
|
4
|
+
import type { BaseHandlerOptions } from '../deps/jsr.io/@std/log/0.224.7/base_handler.js';
|
|
5
5
|
import type { CoreContext } from './CoreContext.js';
|
|
6
6
|
export interface ResultsHandlerOptions extends BaseHandlerOptions {
|
|
7
7
|
context: CoreContext;
|
|
@@ -4,8 +4,8 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
4
4
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
5
|
};
|
|
6
6
|
var _ResultsHandler_instances, _ResultsHandler_unloadCallback, _ResultsHandler_resetBuffer;
|
|
7
|
-
import { LogLevels } from '../deps/jsr.io/@std/log/0.224.
|
|
8
|
-
import { BaseHandler } from '../deps/jsr.io/@std/log/0.224.
|
|
7
|
+
import { LogLevels } from '../deps/jsr.io/@std/log/0.224.7/levels.js';
|
|
8
|
+
import { BaseHandler } from '../deps/jsr.io/@std/log/0.224.7/base_handler.js';
|
|
9
9
|
import { match } from 'ts-pattern';
|
|
10
10
|
export class ResultsHandler extends BaseHandler {
|
|
11
11
|
constructor(levelName, options) {
|
|
@@ -32,8 +32,7 @@ export interface ExistsOptions {
|
|
|
32
32
|
* @see {@link https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use} for
|
|
33
33
|
* more information on the time-of-check to time-of-use bug.
|
|
34
34
|
*
|
|
35
|
-
* Requires `--allow-read`
|
|
36
|
-
* permissions if `options.isReadable` is `true`.
|
|
35
|
+
* Requires `--allow-read` and `--allow-sys` permissions.
|
|
37
36
|
*
|
|
38
37
|
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
39
38
|
* for more information on Deno's permissions system.
|
|
@@ -45,7 +44,7 @@ export interface ExistsOptions {
|
|
|
45
44
|
* otherwise.
|
|
46
45
|
*
|
|
47
46
|
* @example Recommended method
|
|
48
|
-
* ```ts
|
|
47
|
+
* ```ts no-eval
|
|
49
48
|
* // Notice no use of exists
|
|
50
49
|
* try {
|
|
51
50
|
* await Deno.remove("./foo", { recursive: true });
|
|
@@ -61,7 +60,7 @@ export interface ExistsOptions {
|
|
|
61
60
|
* possible race condition. See the above note for details.
|
|
62
61
|
*
|
|
63
62
|
* @example Basic usage
|
|
64
|
-
* ```ts
|
|
63
|
+
* ```ts no-eval
|
|
65
64
|
* import { exists } from "@std/fs/exists";
|
|
66
65
|
*
|
|
67
66
|
* await exists("./exists"); // true
|
|
@@ -69,10 +68,7 @@ export interface ExistsOptions {
|
|
|
69
68
|
* ```
|
|
70
69
|
*
|
|
71
70
|
* @example Check if a path is readable
|
|
72
|
-
*
|
|
73
|
-
* Requires `--allow-sys` permissions in some cases.
|
|
74
|
-
*
|
|
75
|
-
* ```ts ignore
|
|
71
|
+
* ```ts no-eval
|
|
76
72
|
* import { exists } from "@std/fs/exists";
|
|
77
73
|
*
|
|
78
74
|
* await exists("./readable", { isReadable: true }); // true
|
|
@@ -80,7 +76,7 @@ export interface ExistsOptions {
|
|
|
80
76
|
* ```
|
|
81
77
|
*
|
|
82
78
|
* @example Check if a path is a directory
|
|
83
|
-
* ```ts
|
|
79
|
+
* ```ts no-eval
|
|
84
80
|
* import { exists } from "@std/fs/exists";
|
|
85
81
|
*
|
|
86
82
|
* await exists("./directory", { isDirectory: true }); // true
|
|
@@ -88,7 +84,7 @@ export interface ExistsOptions {
|
|
|
88
84
|
* ```
|
|
89
85
|
*
|
|
90
86
|
* @example Check if a path is a file
|
|
91
|
-
* ```ts
|
|
87
|
+
* ```ts no-eval
|
|
92
88
|
* import { exists } from "@std/fs/exists";
|
|
93
89
|
*
|
|
94
90
|
* await exists("./file", { isFile: true }); // true
|
|
@@ -96,10 +92,7 @@ export interface ExistsOptions {
|
|
|
96
92
|
* ```
|
|
97
93
|
*
|
|
98
94
|
* @example Check if a path is a readable directory
|
|
99
|
-
*
|
|
100
|
-
* Requires `--allow-sys` permissions in some cases.
|
|
101
|
-
*
|
|
102
|
-
* ```ts ignore
|
|
95
|
+
* ```ts no-eval
|
|
103
96
|
* import { exists } from "@std/fs/exists";
|
|
104
97
|
*
|
|
105
98
|
* await exists("./readable_directory", { isReadable: true, isDirectory: true }); // true
|
|
@@ -107,10 +100,7 @@ export interface ExistsOptions {
|
|
|
107
100
|
* ```
|
|
108
101
|
*
|
|
109
102
|
* @example Check if a path is a readable file
|
|
110
|
-
*
|
|
111
|
-
* Requires `--allow-sys` permissions in some cases.
|
|
112
|
-
*
|
|
113
|
-
* ```ts ignore
|
|
103
|
+
* ```ts no-eval
|
|
114
104
|
* import { exists } from "@std/fs/exists";
|
|
115
105
|
*
|
|
116
106
|
* await exists("./readable_file", { isReadable: true, isFile: true }); // true
|
|
@@ -130,8 +120,7 @@ export declare function exists(path: string | URL, options?: ExistsOptions): Pro
|
|
|
130
120
|
* @see {@link https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use} for
|
|
131
121
|
* more information on the time-of-check to time-of-use bug.
|
|
132
122
|
*
|
|
133
|
-
* Requires `--allow-read`
|
|
134
|
-
* permissions if `options.isReadable` is `true`.
|
|
123
|
+
* Requires `--allow-read` and `--allow-sys` permissions.
|
|
135
124
|
*
|
|
136
125
|
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
137
126
|
* for more information on Deno's permissions system.
|
|
@@ -142,7 +131,7 @@ export declare function exists(path: string | URL, options?: ExistsOptions): Pro
|
|
|
142
131
|
* @returns `true` if the path exists, `false` otherwise.
|
|
143
132
|
*
|
|
144
133
|
* @example Recommended method
|
|
145
|
-
* ```ts
|
|
134
|
+
* ```ts no-eval
|
|
146
135
|
* // Notice no use of exists
|
|
147
136
|
* try {
|
|
148
137
|
* Deno.removeSync("./foo", { recursive: true });
|
|
@@ -158,7 +147,7 @@ export declare function exists(path: string | URL, options?: ExistsOptions): Pro
|
|
|
158
147
|
* a possible race condition. See the above note for details.
|
|
159
148
|
*
|
|
160
149
|
* @example Basic usage
|
|
161
|
-
* ```ts
|
|
150
|
+
* ```ts no-eval
|
|
162
151
|
* import { existsSync } from "@std/fs/exists";
|
|
163
152
|
*
|
|
164
153
|
* existsSync("./exists"); // true
|
|
@@ -166,10 +155,7 @@ export declare function exists(path: string | URL, options?: ExistsOptions): Pro
|
|
|
166
155
|
* ```
|
|
167
156
|
*
|
|
168
157
|
* @example Check if a path is readable
|
|
169
|
-
*
|
|
170
|
-
* Requires `--allow-sys` permissions in some cases.
|
|
171
|
-
*
|
|
172
|
-
* ```ts ignore
|
|
158
|
+
* ```ts no-eval
|
|
173
159
|
* import { existsSync } from "@std/fs/exists";
|
|
174
160
|
*
|
|
175
161
|
* existsSync("./readable", { isReadable: true }); // true
|
|
@@ -177,7 +163,7 @@ export declare function exists(path: string | URL, options?: ExistsOptions): Pro
|
|
|
177
163
|
* ```
|
|
178
164
|
*
|
|
179
165
|
* @example Check if a path is a directory
|
|
180
|
-
* ```ts
|
|
166
|
+
* ```ts no-eval
|
|
181
167
|
* import { existsSync } from "@std/fs/exists";
|
|
182
168
|
*
|
|
183
169
|
* existsSync("./directory", { isDirectory: true }); // true
|
|
@@ -185,7 +171,7 @@ export declare function exists(path: string | URL, options?: ExistsOptions): Pro
|
|
|
185
171
|
* ```
|
|
186
172
|
*
|
|
187
173
|
* @example Check if a path is a file
|
|
188
|
-
* ```ts
|
|
174
|
+
* ```ts no-eval
|
|
189
175
|
* import { existsSync } from "@std/fs/exists";
|
|
190
176
|
*
|
|
191
177
|
* existsSync("./file", { isFile: true }); // true
|
|
@@ -193,10 +179,7 @@ export declare function exists(path: string | URL, options?: ExistsOptions): Pro
|
|
|
193
179
|
* ```
|
|
194
180
|
*
|
|
195
181
|
* @example Check if a path is a readable directory
|
|
196
|
-
*
|
|
197
|
-
* Requires `--allow-sys` permissions in some cases.
|
|
198
|
-
*
|
|
199
|
-
* ```ts ignore
|
|
182
|
+
* ```ts no-eval
|
|
200
183
|
* import { existsSync } from "@std/fs/exists";
|
|
201
184
|
*
|
|
202
185
|
* existsSync("./readable_directory", { isReadable: true, isDirectory: true }); // true
|
|
@@ -204,10 +187,7 @@ export declare function exists(path: string | URL, options?: ExistsOptions): Pro
|
|
|
204
187
|
* ```
|
|
205
188
|
*
|
|
206
189
|
* @example Check if a path is a readable file
|
|
207
|
-
*
|
|
208
|
-
* Requires `--allow-sys` permissions in some cases.
|
|
209
|
-
*
|
|
210
|
-
* ```ts ignore
|
|
190
|
+
* ```ts no-eval
|
|
211
191
|
* import { existsSync } from "@std/fs/exists";
|
|
212
192
|
*
|
|
213
193
|
* existsSync("./readable_file", { isReadable: true, isFile: true }); // true
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fs/1.0.3/exists.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,aAAa;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;OAKG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsFG;AACH,wBAAsB,MAAM,CAC1B,IAAI,EAAE,MAAM,GAAG,GAAG,EAClB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,OAAO,CAAC,CAsClB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqFG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,GAAG,GAAG,EAClB,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAqCT"}
|
|
@@ -13,8 +13,7 @@ import * as dntShim from "../../../../../_dnt.shims.js";
|
|
|
13
13
|
* @see {@link https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use} for
|
|
14
14
|
* more information on the time-of-check to time-of-use bug.
|
|
15
15
|
*
|
|
16
|
-
* Requires `--allow-read`
|
|
17
|
-
* permissions if `options.isReadable` is `true`.
|
|
16
|
+
* Requires `--allow-read` and `--allow-sys` permissions.
|
|
18
17
|
*
|
|
19
18
|
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
20
19
|
* for more information on Deno's permissions system.
|
|
@@ -26,7 +25,7 @@ import * as dntShim from "../../../../../_dnt.shims.js";
|
|
|
26
25
|
* otherwise.
|
|
27
26
|
*
|
|
28
27
|
* @example Recommended method
|
|
29
|
-
* ```ts
|
|
28
|
+
* ```ts no-eval
|
|
30
29
|
* // Notice no use of exists
|
|
31
30
|
* try {
|
|
32
31
|
* await Deno.remove("./foo", { recursive: true });
|
|
@@ -42,7 +41,7 @@ import * as dntShim from "../../../../../_dnt.shims.js";
|
|
|
42
41
|
* possible race condition. See the above note for details.
|
|
43
42
|
*
|
|
44
43
|
* @example Basic usage
|
|
45
|
-
* ```ts
|
|
44
|
+
* ```ts no-eval
|
|
46
45
|
* import { exists } from "@std/fs/exists";
|
|
47
46
|
*
|
|
48
47
|
* await exists("./exists"); // true
|
|
@@ -50,10 +49,7 @@ import * as dntShim from "../../../../../_dnt.shims.js";
|
|
|
50
49
|
* ```
|
|
51
50
|
*
|
|
52
51
|
* @example Check if a path is readable
|
|
53
|
-
*
|
|
54
|
-
* Requires `--allow-sys` permissions in some cases.
|
|
55
|
-
*
|
|
56
|
-
* ```ts ignore
|
|
52
|
+
* ```ts no-eval
|
|
57
53
|
* import { exists } from "@std/fs/exists";
|
|
58
54
|
*
|
|
59
55
|
* await exists("./readable", { isReadable: true }); // true
|
|
@@ -61,7 +57,7 @@ import * as dntShim from "../../../../../_dnt.shims.js";
|
|
|
61
57
|
* ```
|
|
62
58
|
*
|
|
63
59
|
* @example Check if a path is a directory
|
|
64
|
-
* ```ts
|
|
60
|
+
* ```ts no-eval
|
|
65
61
|
* import { exists } from "@std/fs/exists";
|
|
66
62
|
*
|
|
67
63
|
* await exists("./directory", { isDirectory: true }); // true
|
|
@@ -69,7 +65,7 @@ import * as dntShim from "../../../../../_dnt.shims.js";
|
|
|
69
65
|
* ```
|
|
70
66
|
*
|
|
71
67
|
* @example Check if a path is a file
|
|
72
|
-
* ```ts
|
|
68
|
+
* ```ts no-eval
|
|
73
69
|
* import { exists } from "@std/fs/exists";
|
|
74
70
|
*
|
|
75
71
|
* await exists("./file", { isFile: true }); // true
|
|
@@ -77,10 +73,7 @@ import * as dntShim from "../../../../../_dnt.shims.js";
|
|
|
77
73
|
* ```
|
|
78
74
|
*
|
|
79
75
|
* @example Check if a path is a readable directory
|
|
80
|
-
*
|
|
81
|
-
* Requires `--allow-sys` permissions in some cases.
|
|
82
|
-
*
|
|
83
|
-
* ```ts ignore
|
|
76
|
+
* ```ts no-eval
|
|
84
77
|
* import { exists } from "@std/fs/exists";
|
|
85
78
|
*
|
|
86
79
|
* await exists("./readable_directory", { isReadable: true, isDirectory: true }); // true
|
|
@@ -88,10 +81,7 @@ import * as dntShim from "../../../../../_dnt.shims.js";
|
|
|
88
81
|
* ```
|
|
89
82
|
*
|
|
90
83
|
* @example Check if a path is a readable file
|
|
91
|
-
*
|
|
92
|
-
* Requires `--allow-sys` permissions in some cases.
|
|
93
|
-
*
|
|
94
|
-
* ```ts ignore
|
|
84
|
+
* ```ts no-eval
|
|
95
85
|
* import { exists } from "@std/fs/exists";
|
|
96
86
|
*
|
|
97
87
|
* await exists("./readable_file", { isReadable: true, isFile: true }); // true
|
|
@@ -142,8 +132,7 @@ export async function exists(path, options) {
|
|
|
142
132
|
* @see {@link https://en.wikipedia.org/wiki/Time-of-check_to_time-of-use} for
|
|
143
133
|
* more information on the time-of-check to time-of-use bug.
|
|
144
134
|
*
|
|
145
|
-
* Requires `--allow-read`
|
|
146
|
-
* permissions if `options.isReadable` is `true`.
|
|
135
|
+
* Requires `--allow-read` and `--allow-sys` permissions.
|
|
147
136
|
*
|
|
148
137
|
* @see {@link https://docs.deno.com/runtime/manual/basics/permissions#file-system-access}
|
|
149
138
|
* for more information on Deno's permissions system.
|
|
@@ -154,7 +143,7 @@ export async function exists(path, options) {
|
|
|
154
143
|
* @returns `true` if the path exists, `false` otherwise.
|
|
155
144
|
*
|
|
156
145
|
* @example Recommended method
|
|
157
|
-
* ```ts
|
|
146
|
+
* ```ts no-eval
|
|
158
147
|
* // Notice no use of exists
|
|
159
148
|
* try {
|
|
160
149
|
* Deno.removeSync("./foo", { recursive: true });
|
|
@@ -170,7 +159,7 @@ export async function exists(path, options) {
|
|
|
170
159
|
* a possible race condition. See the above note for details.
|
|
171
160
|
*
|
|
172
161
|
* @example Basic usage
|
|
173
|
-
* ```ts
|
|
162
|
+
* ```ts no-eval
|
|
174
163
|
* import { existsSync } from "@std/fs/exists";
|
|
175
164
|
*
|
|
176
165
|
* existsSync("./exists"); // true
|
|
@@ -178,10 +167,7 @@ export async function exists(path, options) {
|
|
|
178
167
|
* ```
|
|
179
168
|
*
|
|
180
169
|
* @example Check if a path is readable
|
|
181
|
-
*
|
|
182
|
-
* Requires `--allow-sys` permissions in some cases.
|
|
183
|
-
*
|
|
184
|
-
* ```ts ignore
|
|
170
|
+
* ```ts no-eval
|
|
185
171
|
* import { existsSync } from "@std/fs/exists";
|
|
186
172
|
*
|
|
187
173
|
* existsSync("./readable", { isReadable: true }); // true
|
|
@@ -189,7 +175,7 @@ export async function exists(path, options) {
|
|
|
189
175
|
* ```
|
|
190
176
|
*
|
|
191
177
|
* @example Check if a path is a directory
|
|
192
|
-
* ```ts
|
|
178
|
+
* ```ts no-eval
|
|
193
179
|
* import { existsSync } from "@std/fs/exists";
|
|
194
180
|
*
|
|
195
181
|
* existsSync("./directory", { isDirectory: true }); // true
|
|
@@ -197,7 +183,7 @@ export async function exists(path, options) {
|
|
|
197
183
|
* ```
|
|
198
184
|
*
|
|
199
185
|
* @example Check if a path is a file
|
|
200
|
-
* ```ts
|
|
186
|
+
* ```ts no-eval
|
|
201
187
|
* import { existsSync } from "@std/fs/exists";
|
|
202
188
|
*
|
|
203
189
|
* existsSync("./file", { isFile: true }); // true
|
|
@@ -205,10 +191,7 @@ export async function exists(path, options) {
|
|
|
205
191
|
* ```
|
|
206
192
|
*
|
|
207
193
|
* @example Check if a path is a readable directory
|
|
208
|
-
*
|
|
209
|
-
* Requires `--allow-sys` permissions in some cases.
|
|
210
|
-
*
|
|
211
|
-
* ```ts ignore
|
|
194
|
+
* ```ts no-eval
|
|
212
195
|
* import { existsSync } from "@std/fs/exists";
|
|
213
196
|
*
|
|
214
197
|
* existsSync("./readable_directory", { isReadable: true, isDirectory: true }); // true
|
|
@@ -216,10 +199,7 @@ export async function exists(path, options) {
|
|
|
216
199
|
* ```
|
|
217
200
|
*
|
|
218
201
|
* @example Check if a path is a readable file
|
|
219
|
-
*
|
|
220
|
-
* Requires `--allow-sys` permissions in some cases.
|
|
221
|
-
*
|
|
222
|
-
* ```ts ignore
|
|
202
|
+
* ```ts no-eval
|
|
223
203
|
* import { existsSync } from "@std/fs/exists";
|
|
224
204
|
*
|
|
225
205
|
* existsSync("./readable_file", { isReadable: true, isFile: true }); // true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/io/0.224.
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/io/0.224.8/types.ts"],"names":[],"mappings":"AAGA;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB;;;;;;;;;;;;;;;;;;;;;;OAsBG;IACH,IAAI,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CAC7C;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,QAAQ,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,IAAI,CAAC;CACxC;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB;;;;;;;;OAQG;IACH,KAAK,CAAC,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CACvC;AACD;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;;;OAQG;IACH,SAAS,CAAC,CAAC,EAAE,UAAU,GAAG,MAAM,CAAC;CAClC;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB,gEAAgE;IAChE,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;;GAGG;AACH,oBAAY,QAAQ;IAElB,KAAK,IAAI;IAET,OAAO,IAAI;IAEX,GAAG,IAAI;CACR;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB;;;;;;;;;;;OAWG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAClE;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,QAAQ,GAAG,MAAM,CAAC;CAC7D"}
|