@skmtc/core 0.18.1 → 0.27.0
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/README.md +4 -3
- package/esm/anchors/ParserAdapter.d.ts +22 -3
- package/esm/anchors/ParserAdapter.d.ts.map +1 -1
- package/esm/anchors/attribute.d.ts.map +1 -1
- package/esm/anchors/buildSidecar.d.ts.map +1 -1
- package/esm/anchors/buildSidecar.js +1 -1
- package/esm/anchors/generationMap.d.ts.map +1 -1
- package/esm/anchors/postPass.d.ts +1 -1
- package/esm/anchors/postPass.js +1 -1
- package/esm/anchors/sidecar.d.ts +2 -2
- package/esm/anchors/sidecar.js +1 -1
- package/esm/context/CoreContext.d.ts +7 -1
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +17 -11
- package/esm/context/GenerateContext.d.ts +25 -4
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +159 -76
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseIssue.d.ts +1 -1
- package/esm/context/RenderContext.d.ts +2 -6
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/RenderContext.js +4 -14
- package/esm/context/generateTypes.d.ts +35 -8
- package/esm/context/generateTypes.d.ts.map +1 -1
- package/{script/deps/jsr.io/@std/fs/1.0.23 → esm/deps/jsr.io/@std/fs/1.0.24}/exists.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/internal/1.0.14/_os.js +14 -0
- package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.js +1 -1
- package/esm/deps/jsr.io/@std/path/1.1.6/extname.d.ts +25 -0
- package/esm/deps/jsr.io/@std/path/1.1.6/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.6/extname.js +31 -0
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.js +2 -2
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts +42 -0
- package/esm/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.6/posix/extname.js +98 -0
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.js +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/posix/join.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.js +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/posix/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.js +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.js +1 -1
- package/esm/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts +18 -0
- package/esm/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts.map +1 -0
- package/esm/deps/jsr.io/@std/path/1.1.6/windows/extname.js +83 -0
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/from_file_url.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.js +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/join.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.js +1 -1
- package/{script/deps/jsr.io/@std/path/1.1.4 → esm/deps/jsr.io/@std/path/1.1.6}/windows/normalize.d.ts.map +1 -1
- package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.js +1 -1
- package/esm/dsl/CodeFileBase.d.ts +57 -24
- package/esm/dsl/CodeFileBase.d.ts.map +1 -1
- package/esm/dsl/CodeFileBase.js +35 -53
- package/esm/dsl/FileBase.d.ts +21 -25
- package/esm/dsl/FileBase.d.ts.map +1 -1
- package/esm/dsl/FileBase.js +20 -29
- package/esm/dsl/GeneratorKeys.d.ts +19 -19
- package/esm/dsl/GeneratorKeys.d.ts.map +1 -1
- package/esm/dsl/GeneratorKeys.js +6 -5
- package/esm/dsl/IdentifierBase.d.ts +19 -5
- package/esm/dsl/IdentifierBase.d.ts.map +1 -1
- package/esm/dsl/IdentifierBase.js +21 -5
- package/esm/dsl/IdentifierType.d.ts +8 -14
- package/esm/dsl/IdentifierType.d.ts.map +1 -1
- package/esm/dsl/Lang.d.ts +18 -38
- package/esm/dsl/Lang.d.ts.map +1 -1
- package/esm/dsl/MarkdownFile.d.ts +55 -0
- package/esm/dsl/MarkdownFile.d.ts.map +1 -0
- package/esm/dsl/MarkdownFile.js +58 -0
- package/esm/dsl/model/ModelDriver.d.ts +3 -1
- package/esm/dsl/model/ModelDriver.d.ts.map +1 -1
- package/esm/dsl/model/ModelDriver.js +6 -8
- package/esm/dsl/model/toModelEntry.d.ts +21 -17
- package/esm/dsl/model/toModelEntry.d.ts.map +1 -1
- package/esm/dsl/model/toModelEntry.js +3 -27
- package/esm/dsl/model/toModelProjectionBase.d.ts +15 -15
- package/esm/dsl/model/toModelProjectionBase.d.ts.map +1 -1
- package/esm/dsl/model/types.d.ts +2 -52
- package/esm/dsl/model/types.d.ts.map +1 -1
- package/esm/dsl/operation/gql/GqlOperationDriver.d.ts +3 -1
- package/esm/dsl/operation/gql/GqlOperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/gql/GqlOperationDriver.js +12 -9
- package/esm/dsl/operation/gql/toGqlOperationEntry.d.ts +20 -15
- package/esm/dsl/operation/gql/toGqlOperationEntry.d.ts.map +1 -1
- package/esm/dsl/operation/gql/toGqlOperationEntry.js +3 -25
- package/esm/dsl/operation/gql/toGqlOperationProjectionBase.d.ts +11 -10
- package/esm/dsl/operation/gql/toGqlOperationProjectionBase.d.ts.map +1 -1
- package/esm/dsl/operation/gql/toGqlOperationProjectionBase.js +7 -1
- package/esm/dsl/operation/gql/types.d.ts +1 -33
- package/esm/dsl/operation/gql/types.d.ts.map +1 -1
- package/esm/dsl/operation/oas/OasOperationDriver.d.ts +3 -1
- package/esm/dsl/operation/oas/OasOperationDriver.d.ts.map +1 -1
- package/esm/dsl/operation/oas/OasOperationDriver.js +12 -9
- package/esm/dsl/operation/oas/toOasOperationEntry.d.ts +21 -17
- package/esm/dsl/operation/oas/toOasOperationEntry.d.ts.map +1 -1
- package/esm/dsl/operation/oas/toOasOperationEntry.js +3 -32
- package/esm/dsl/operation/oas/toOasOperationProjectionBase.d.ts +11 -10
- package/esm/dsl/operation/oas/toOasOperationProjectionBase.d.ts.map +1 -1
- package/esm/dsl/operation/oas/types.d.ts +1 -43
- package/esm/dsl/operation/oas/types.d.ts.map +1 -1
- package/esm/dsl/webhook/WebhookDriver.d.ts +3 -1
- package/esm/dsl/webhook/WebhookDriver.d.ts.map +1 -1
- package/esm/dsl/webhook/WebhookDriver.js +12 -9
- package/esm/dsl/webhook/toWebhookEntry.d.ts +21 -16
- package/esm/dsl/webhook/toWebhookEntry.d.ts.map +1 -1
- package/esm/dsl/webhook/toWebhookEntry.js +3 -32
- package/esm/dsl/webhook/toWebhookProjectionBase.d.ts +11 -10
- package/esm/dsl/webhook/toWebhookProjectionBase.d.ts.map +1 -1
- package/esm/dsl/webhook/types.d.ts +1 -36
- package/esm/dsl/webhook/types.d.ts.map +1 -1
- package/esm/enrichments/toEnrichmentDescriptor.d.ts +72 -27
- package/esm/enrichments/toEnrichmentDescriptor.d.ts.map +1 -1
- package/esm/enrichments/toEnrichmentDescriptor.js +57 -31
- package/esm/enrichments/validateConfig.d.ts +1 -1
- package/esm/enrichments/validateConfig.d.ts.map +1 -1
- package/esm/enrichments/validateConfig.js +2 -2
- package/esm/gql/_helpers/unwrapType.d.ts.map +1 -1
- package/esm/gql/enum/toEnumType.d.ts.map +1 -1
- package/esm/gql/field/toFieldSchema.d.ts.map +1 -1
- package/esm/gql/input/toInputType.d.ts.map +1 -1
- package/esm/gql/interface/toInterfaceUnion.d.ts.map +1 -1
- package/esm/gql/object/toObjectType.d.ts.map +1 -1
- package/esm/gql/operation/toRootField.d.ts.map +1 -1
- package/esm/gql/union/toUnionType.d.ts.map +1 -1
- package/esm/helpers/applyGeneratedSuffix.d.ts +43 -0
- package/esm/helpers/applyGeneratedSuffix.d.ts.map +1 -0
- package/esm/helpers/applyGeneratedSuffix.js +79 -0
- package/esm/helpers/isImported.js +1 -1
- package/esm/helpers/strings.d.ts.map +1 -1
- package/esm/helpers/toResolvedArtifactPath.js +1 -1
- package/esm/mod.d.ts +8 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +8 -1
- package/esm/oas/array/Array.d.ts +2 -0
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +4 -0
- package/esm/oas/boolean/Boolean.d.ts +3 -1
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +4 -0
- package/esm/oas/components/Components.d.ts +5 -0
- package/esm/oas/components/Components.d.ts.map +1 -1
- package/esm/oas/components/Components.js +6 -1
- package/esm/oas/document/Document.d.ts.map +1 -1
- package/esm/oas/integer/Integer.d.ts +3 -1
- package/esm/oas/integer/Integer.d.ts.map +1 -1
- package/esm/oas/integer/Integer.js +4 -0
- package/esm/oas/link/Link.d.ts +68 -0
- package/esm/oas/link/Link.d.ts.map +1 -0
- package/esm/oas/link/Link.js +107 -0
- package/esm/oas/number/Number.d.ts +3 -1
- package/esm/oas/number/Number.d.ts.map +1 -1
- package/esm/oas/number/Number.js +4 -0
- package/esm/oas/object/Object.d.ts +9 -0
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +14 -0
- package/esm/oas/operation/Operation.d.ts +15 -0
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +33 -0
- package/esm/oas/ref/Ref.d.ts +23 -1
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/ref/Ref.js +32 -0
- package/esm/oas/ref/ref-types.d.ts +18 -1
- package/esm/oas/ref/ref-types.d.ts.map +1 -1
- package/esm/oas/ref/ref-types.js +12 -1
- package/esm/oas/response/Response.d.ts +4 -0
- package/esm/oas/response/Response.d.ts.map +1 -1
- package/esm/oas/response/Response.js +7 -0
- package/esm/oas/schemaPath/traverseSchema.d.ts +31 -0
- package/esm/oas/schemaPath/traverseSchema.d.ts.map +1 -0
- package/esm/oas/schemaPath/traverseSchema.js +115 -0
- package/esm/oas/string/String.d.ts +3 -1
- package/esm/oas/string/String.d.ts.map +1 -1
- package/esm/oas/string/String.js +4 -0
- package/esm/oas/union/Union.d.ts +9 -0
- package/esm/oas/union/Union.d.ts.map +1 -1
- package/esm/oas/union/Union.js +14 -0
- package/esm/oas/unknown/Unknown.d.ts +3 -1
- package/esm/oas/unknown/Unknown.d.ts.map +1 -1
- package/esm/oas/unknown/Unknown.js +4 -0
- package/esm/parse/v3-0/array/toArray.d.ts.map +1 -1
- package/esm/parse/v3-0/boolean/toBoolean.d.ts.map +1 -1
- package/esm/parse/v3-0/components/toComponentsV3.d.ts.map +1 -1
- package/esm/parse/v3-0/components/toComponentsV3.js +3 -1
- package/esm/parse/v3-0/integer/toInteger.d.ts.map +1 -1
- package/esm/parse/v3-0/link/toLinksV3.d.ts +17 -0
- package/esm/parse/v3-0/link/toLinksV3.d.ts.map +1 -0
- package/esm/parse/v3-0/link/toLinksV3.js +40 -0
- package/esm/parse/v3-0/object/toObject.d.ts.map +1 -1
- package/esm/parse/v3-0/object/toObject.js +3 -1
- package/esm/parse/v3-0/operation/toOperationsV3.d.ts.map +1 -1
- package/esm/parse/v3-0/ref/toRefV31.d.ts.map +1 -1
- package/esm/parse/v3-0/response/toResponseV3.d.ts.map +1 -1
- package/esm/parse/v3-0/response/toResponseV3.js +4 -1
- package/esm/parse/v3-0/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/parse/v3-0/schema/toSchemasV3.js +7 -1
- package/esm/parse/v3-0/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/esm/parse/v3-0/string/toString.d.ts.map +1 -1
- package/esm/parse/v3-0/union/toUnion.d.ts.map +1 -1
- package/esm/parse/v3-0/union/toUnion.js +3 -1
- package/esm/parse/v3-0/unknown/toUnknown.d.ts.map +1 -1
- package/esm/parse/v3-0/webhook/toWebhooksV3.d.ts.map +1 -1
- package/esm/parse/v3-1/array/toArray.d.ts.map +1 -1
- package/esm/parse/v3-1/boolean/toBoolean.d.ts.map +1 -1
- package/esm/parse/v3-1/components/toComponentsV3.d.ts.map +1 -1
- package/esm/parse/v3-1/components/toComponentsV3.js +3 -1
- package/esm/parse/v3-1/integer/toInteger.d.ts.map +1 -1
- package/esm/parse/v3-1/link/toLinksV3.d.ts +17 -0
- package/esm/parse/v3-1/link/toLinksV3.d.ts.map +1 -0
- package/esm/parse/v3-1/link/toLinksV3.js +40 -0
- package/esm/parse/v3-1/object/toObject.d.ts.map +1 -1
- package/esm/parse/v3-1/object/toObject.js +3 -1
- package/esm/parse/v3-1/operation/toOperationsV3.d.ts.map +1 -1
- package/esm/parse/v3-1/ref/toRefV31.d.ts.map +1 -1
- package/esm/parse/v3-1/response/toResponseV3.d.ts.map +1 -1
- package/esm/parse/v3-1/response/toResponseV3.js +4 -1
- package/esm/parse/v3-1/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/parse/v3-1/schema/toSchemasV3.js +7 -1
- package/esm/parse/v3-1/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/esm/parse/v3-1/string/toString.d.ts.map +1 -1
- package/esm/parse/v3-1/union/toUnion.d.ts.map +1 -1
- package/esm/parse/v3-1/union/toUnion.js +3 -1
- package/esm/parse/v3-1/unknown/toUnknown.d.ts.map +1 -1
- package/esm/parse/v3-1/webhook/toWebhooksV3.d.ts.map +1 -1
- package/esm/run/toArtifacts.d.ts +8 -1
- package/esm/run/toArtifacts.d.ts.map +1 -1
- package/esm/run/toArtifacts.js +5 -5
- package/esm/run/toInspection.d.ts +8 -0
- package/esm/run/toInspection.d.ts.map +1 -0
- package/esm/run/toInspection.js +78 -0
- package/esm/types/Enrichments.d.ts +19 -8
- package/esm/types/Enrichments.d.ts.map +1 -1
- package/esm/types/Enrichments.js +4 -3
- package/esm/types/GeneratorType.d.ts +5 -5
- package/esm/types/GeneratorType.d.ts.map +1 -1
- package/esm/types/Manifest.d.ts +9 -2
- package/esm/types/Manifest.d.ts.map +1 -1
- package/esm/types/Manifest.js +3 -3
- package/esm/types/ModuleSelect.d.ts +81 -0
- package/esm/types/ModuleSelect.d.ts.map +1 -0
- package/esm/types/ModuleSelect.js +63 -0
- package/esm/types/Preview.d.ts +4 -27
- package/esm/types/Preview.d.ts.map +1 -1
- package/esm/types/Preview.js +4 -25
- package/esm/types/SchemaPath.d.ts +17 -0
- package/esm/types/SchemaPath.d.ts.map +1 -0
- package/esm/types/SchemaPath.js +9 -0
- package/esm/types/Settings.d.ts +45 -3
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +16 -20
- package/esm/types/SkmtcDocument.d.ts +1 -1
- package/esm/types/SupportedSubjects.d.ts +1 -1
- package/package.json +1 -1
- package/script/anchors/ParserAdapter.d.ts +22 -3
- package/script/anchors/ParserAdapter.d.ts.map +1 -1
- package/script/anchors/attribute.d.ts.map +1 -1
- package/script/anchors/buildSidecar.d.ts.map +1 -1
- package/script/anchors/buildSidecar.js +1 -1
- package/script/anchors/generationMap.d.ts.map +1 -1
- package/script/anchors/postPass.d.ts +1 -1
- package/script/anchors/postPass.js +1 -1
- package/script/anchors/sidecar.d.ts +2 -2
- package/script/anchors/sidecar.js +1 -1
- package/script/context/CoreContext.d.ts +7 -1
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +17 -11
- package/script/context/GenerateContext.d.ts +25 -4
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +159 -76
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseIssue.d.ts +1 -1
- package/script/context/RenderContext.d.ts +2 -6
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/RenderContext.js +4 -14
- package/script/context/generateTypes.d.ts +35 -8
- package/script/context/generateTypes.d.ts.map +1 -1
- package/{esm/deps/jsr.io/@std/fs/1.0.23 → script/deps/jsr.io/@std/fs/1.0.24}/exists.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/internal/1.0.14/_os.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.js +7 -5
- package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/log/0.224.14/rotating_file_handler.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.js +1 -1
- package/script/deps/jsr.io/@std/path/1.1.6/extname.d.ts +25 -0
- package/script/deps/jsr.io/@std/path/1.1.6/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.6/extname.js +34 -0
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.js +2 -2
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.js +2 -2
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.js +1 -1
- package/script/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts +42 -0
- package/script/deps/jsr.io/@std/path/1.1.6/posix/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.6/posix/extname.js +101 -0
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.js +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/posix/join.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.js +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/posix/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.js +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.js +1 -1
- package/script/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts +18 -0
- package/script/deps/jsr.io/@std/path/1.1.6/windows/extname.d.ts.map +1 -0
- package/script/deps/jsr.io/@std/path/1.1.6/windows/extname.js +86 -0
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/from_file_url.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.js +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/join.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.js +1 -1
- package/{esm/deps/jsr.io/@std/path/1.1.4 → script/deps/jsr.io/@std/path/1.1.6}/windows/normalize.d.ts.map +1 -1
- package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.js +1 -1
- package/script/dsl/CodeFileBase.d.ts +57 -24
- package/script/dsl/CodeFileBase.d.ts.map +1 -1
- package/script/dsl/CodeFileBase.js +37 -54
- package/script/dsl/FileBase.d.ts +21 -25
- package/script/dsl/FileBase.d.ts.map +1 -1
- package/script/dsl/FileBase.js +20 -29
- package/script/dsl/GeneratorKeys.d.ts +19 -19
- package/script/dsl/GeneratorKeys.d.ts.map +1 -1
- package/script/dsl/GeneratorKeys.js +6 -5
- package/script/dsl/IdentifierBase.d.ts +19 -5
- package/script/dsl/IdentifierBase.d.ts.map +1 -1
- package/script/dsl/IdentifierBase.js +21 -5
- package/script/dsl/IdentifierType.d.ts +8 -14
- package/script/dsl/IdentifierType.d.ts.map +1 -1
- package/script/dsl/Lang.d.ts +18 -38
- package/script/dsl/Lang.d.ts.map +1 -1
- package/script/dsl/MarkdownFile.d.ts +55 -0
- package/script/dsl/MarkdownFile.d.ts.map +1 -0
- package/script/dsl/MarkdownFile.js +62 -0
- package/script/dsl/model/ModelDriver.d.ts +3 -1
- package/script/dsl/model/ModelDriver.d.ts.map +1 -1
- package/script/dsl/model/ModelDriver.js +6 -8
- package/script/dsl/model/toModelEntry.d.ts +21 -17
- package/script/dsl/model/toModelEntry.d.ts.map +1 -1
- package/script/dsl/model/toModelEntry.js +3 -63
- package/script/dsl/model/toModelProjectionBase.d.ts +15 -15
- package/script/dsl/model/toModelProjectionBase.d.ts.map +1 -1
- package/script/dsl/model/types.d.ts +2 -52
- package/script/dsl/model/types.d.ts.map +1 -1
- package/script/dsl/operation/gql/GqlOperationDriver.d.ts +3 -1
- package/script/dsl/operation/gql/GqlOperationDriver.d.ts.map +1 -1
- package/script/dsl/operation/gql/GqlOperationDriver.js +12 -9
- package/script/dsl/operation/gql/toGqlOperationEntry.d.ts +20 -15
- package/script/dsl/operation/gql/toGqlOperationEntry.d.ts.map +1 -1
- package/script/dsl/operation/gql/toGqlOperationEntry.js +3 -61
- package/script/dsl/operation/gql/toGqlOperationProjectionBase.d.ts +11 -10
- package/script/dsl/operation/gql/toGqlOperationProjectionBase.d.ts.map +1 -1
- package/script/dsl/operation/gql/toGqlOperationProjectionBase.js +7 -1
- package/script/dsl/operation/gql/types.d.ts +1 -33
- package/script/dsl/operation/gql/types.d.ts.map +1 -1
- package/script/dsl/operation/oas/OasOperationDriver.d.ts +3 -1
- package/script/dsl/operation/oas/OasOperationDriver.d.ts.map +1 -1
- package/script/dsl/operation/oas/OasOperationDriver.js +12 -9
- package/script/dsl/operation/oas/toOasOperationEntry.d.ts +21 -17
- package/script/dsl/operation/oas/toOasOperationEntry.d.ts.map +1 -1
- package/script/dsl/operation/oas/toOasOperationEntry.js +3 -68
- package/script/dsl/operation/oas/toOasOperationProjectionBase.d.ts +11 -10
- package/script/dsl/operation/oas/toOasOperationProjectionBase.d.ts.map +1 -1
- package/script/dsl/operation/oas/types.d.ts +1 -43
- package/script/dsl/operation/oas/types.d.ts.map +1 -1
- package/script/dsl/webhook/WebhookDriver.d.ts +3 -1
- package/script/dsl/webhook/WebhookDriver.d.ts.map +1 -1
- package/script/dsl/webhook/WebhookDriver.js +12 -9
- package/script/dsl/webhook/toWebhookEntry.d.ts +21 -16
- package/script/dsl/webhook/toWebhookEntry.d.ts.map +1 -1
- package/script/dsl/webhook/toWebhookEntry.js +3 -68
- package/script/dsl/webhook/toWebhookProjectionBase.d.ts +11 -10
- package/script/dsl/webhook/toWebhookProjectionBase.d.ts.map +1 -1
- package/script/dsl/webhook/types.d.ts +1 -36
- package/script/dsl/webhook/types.d.ts.map +1 -1
- package/script/enrichments/toEnrichmentDescriptor.d.ts +72 -27
- package/script/enrichments/toEnrichmentDescriptor.d.ts.map +1 -1
- package/script/enrichments/toEnrichmentDescriptor.js +57 -31
- package/script/enrichments/validateConfig.d.ts +1 -1
- package/script/enrichments/validateConfig.d.ts.map +1 -1
- package/script/enrichments/validateConfig.js +2 -2
- package/script/gql/_helpers/unwrapType.d.ts.map +1 -1
- package/script/gql/enum/toEnumType.d.ts.map +1 -1
- package/script/gql/field/toFieldSchema.d.ts.map +1 -1
- package/script/gql/input/toInputType.d.ts.map +1 -1
- package/script/gql/interface/toInterfaceUnion.d.ts.map +1 -1
- package/script/gql/object/toObjectType.d.ts.map +1 -1
- package/script/gql/operation/toRootField.d.ts.map +1 -1
- package/script/gql/union/toUnionType.d.ts.map +1 -1
- package/script/helpers/applyGeneratedSuffix.d.ts +43 -0
- package/script/helpers/applyGeneratedSuffix.d.ts.map +1 -0
- package/script/helpers/applyGeneratedSuffix.js +84 -0
- package/script/helpers/isImported.js +1 -1
- package/script/helpers/strings.d.ts.map +1 -1
- package/script/helpers/toResolvedArtifactPath.js +1 -1
- package/script/mod.d.ts +8 -1
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +8 -1
- package/script/oas/array/Array.d.ts +2 -0
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +4 -0
- package/script/oas/boolean/Boolean.d.ts +3 -1
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +4 -0
- package/script/oas/components/Components.d.ts +5 -0
- package/script/oas/components/Components.d.ts.map +1 -1
- package/script/oas/components/Components.js +6 -1
- package/script/oas/document/Document.d.ts.map +1 -1
- package/script/oas/integer/Integer.d.ts +3 -1
- package/script/oas/integer/Integer.d.ts.map +1 -1
- package/script/oas/integer/Integer.js +4 -0
- package/script/oas/link/Link.d.ts +68 -0
- package/script/oas/link/Link.d.ts.map +1 -0
- package/script/oas/link/Link.js +111 -0
- package/script/oas/number/Number.d.ts +3 -1
- package/script/oas/number/Number.d.ts.map +1 -1
- package/script/oas/number/Number.js +4 -0
- package/script/oas/object/Object.d.ts +9 -0
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/Object.js +14 -0
- package/script/oas/operation/Operation.d.ts +15 -0
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/operation/Operation.js +33 -0
- package/script/oas/ref/Ref.d.ts +23 -1
- package/script/oas/ref/Ref.d.ts.map +1 -1
- package/script/oas/ref/Ref.js +32 -0
- package/script/oas/ref/ref-types.d.ts +18 -1
- package/script/oas/ref/ref-types.d.ts.map +1 -1
- package/script/oas/ref/ref-types.js +13 -2
- package/script/oas/response/Response.d.ts +4 -0
- package/script/oas/response/Response.d.ts.map +1 -1
- package/script/oas/response/Response.js +7 -0
- package/script/oas/schemaPath/traverseSchema.d.ts +31 -0
- package/script/oas/schemaPath/traverseSchema.d.ts.map +1 -0
- package/script/oas/schemaPath/traverseSchema.js +119 -0
- package/script/oas/string/String.d.ts +3 -1
- package/script/oas/string/String.d.ts.map +1 -1
- package/script/oas/string/String.js +4 -0
- package/script/oas/union/Union.d.ts +9 -0
- package/script/oas/union/Union.d.ts.map +1 -1
- package/script/oas/union/Union.js +14 -0
- package/script/oas/unknown/Unknown.d.ts +3 -1
- package/script/oas/unknown/Unknown.d.ts.map +1 -1
- package/script/oas/unknown/Unknown.js +4 -0
- package/script/parse/v3-0/array/toArray.d.ts.map +1 -1
- package/script/parse/v3-0/boolean/toBoolean.d.ts.map +1 -1
- package/script/parse/v3-0/components/toComponentsV3.d.ts.map +1 -1
- package/script/parse/v3-0/components/toComponentsV3.js +3 -1
- package/script/parse/v3-0/integer/toInteger.d.ts.map +1 -1
- package/script/parse/v3-0/link/toLinksV3.d.ts +17 -0
- package/script/parse/v3-0/link/toLinksV3.d.ts.map +1 -0
- package/script/parse/v3-0/link/toLinksV3.js +44 -0
- package/script/parse/v3-0/object/toObject.d.ts.map +1 -1
- package/script/parse/v3-0/object/toObject.js +3 -1
- package/script/parse/v3-0/operation/toOperationsV3.d.ts.map +1 -1
- package/script/parse/v3-0/ref/toRefV31.d.ts.map +1 -1
- package/script/parse/v3-0/response/toResponseV3.d.ts.map +1 -1
- package/script/parse/v3-0/response/toResponseV3.js +4 -1
- package/script/parse/v3-0/schema/toSchemasV3.d.ts.map +1 -1
- package/script/parse/v3-0/schema/toSchemasV3.js +7 -1
- package/script/parse/v3-0/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/script/parse/v3-0/string/toString.d.ts.map +1 -1
- package/script/parse/v3-0/union/toUnion.d.ts.map +1 -1
- package/script/parse/v3-0/union/toUnion.js +3 -1
- package/script/parse/v3-0/unknown/toUnknown.d.ts.map +1 -1
- package/script/parse/v3-0/webhook/toWebhooksV3.d.ts.map +1 -1
- package/script/parse/v3-1/array/toArray.d.ts.map +1 -1
- package/script/parse/v3-1/boolean/toBoolean.d.ts.map +1 -1
- package/script/parse/v3-1/components/toComponentsV3.d.ts.map +1 -1
- package/script/parse/v3-1/components/toComponentsV3.js +3 -1
- package/script/parse/v3-1/integer/toInteger.d.ts.map +1 -1
- package/script/parse/v3-1/link/toLinksV3.d.ts +17 -0
- package/script/parse/v3-1/link/toLinksV3.d.ts.map +1 -0
- package/script/parse/v3-1/link/toLinksV3.js +44 -0
- package/script/parse/v3-1/object/toObject.d.ts.map +1 -1
- package/script/parse/v3-1/object/toObject.js +3 -1
- package/script/parse/v3-1/operation/toOperationsV3.d.ts.map +1 -1
- package/script/parse/v3-1/ref/toRefV31.d.ts.map +1 -1
- package/script/parse/v3-1/response/toResponseV3.d.ts.map +1 -1
- package/script/parse/v3-1/response/toResponseV3.js +4 -1
- package/script/parse/v3-1/schema/toSchemasV3.d.ts.map +1 -1
- package/script/parse/v3-1/schema/toSchemasV3.js +7 -1
- package/script/parse/v3-1/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/script/parse/v3-1/string/toString.d.ts.map +1 -1
- package/script/parse/v3-1/union/toUnion.d.ts.map +1 -1
- package/script/parse/v3-1/union/toUnion.js +3 -1
- package/script/parse/v3-1/unknown/toUnknown.d.ts.map +1 -1
- package/script/parse/v3-1/webhook/toWebhooksV3.d.ts.map +1 -1
- package/script/run/toArtifacts.d.ts +8 -1
- package/script/run/toArtifacts.d.ts.map +1 -1
- package/script/run/toArtifacts.js +5 -5
- package/script/run/toInspection.d.ts +8 -0
- package/script/run/toInspection.d.ts.map +1 -0
- package/script/run/toInspection.js +82 -0
- package/script/types/Enrichments.d.ts +19 -8
- package/script/types/Enrichments.d.ts.map +1 -1
- package/script/types/Enrichments.js +5 -4
- package/script/types/GeneratorType.d.ts +5 -5
- package/script/types/GeneratorType.d.ts.map +1 -1
- package/script/types/Manifest.d.ts +9 -2
- package/script/types/Manifest.d.ts.map +1 -1
- package/script/types/Manifest.js +2 -2
- package/script/types/ModuleSelect.d.ts +81 -0
- package/script/types/ModuleSelect.d.ts.map +1 -0
- package/script/types/ModuleSelect.js +101 -0
- package/script/types/Preview.d.ts +4 -27
- package/script/types/Preview.d.ts.map +1 -1
- package/script/types/Preview.js +5 -26
- package/script/types/SchemaPath.d.ts +17 -0
- package/script/types/SchemaPath.d.ts.map +1 -0
- package/script/types/{AccessorPath.js → SchemaPath.js} +7 -7
- package/script/types/Settings.d.ts +45 -3
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +13 -17
- package/script/types/SkmtcDocument.d.ts +1 -1
- package/script/types/SupportedSubjects.d.ts +1 -1
- package/esm/deps/jsr.io/@std/internal/1.0.13/_os.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/internal/1.0.13/_os.js +0 -12
- package/esm/types/AccessorPath.d.ts +0 -17
- package/esm/types/AccessorPath.d.ts.map +0 -1
- package/esm/types/AccessorPath.js +0 -9
- package/script/deps/jsr.io/@std/internal/1.0.13/_os.d.ts.map +0 -1
- package/script/types/AccessorPath.d.ts +0 -17
- package/script/types/AccessorPath.d.ts.map +0 -1
- /package/esm/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.js +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.js +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.d.ts +0 -0
- /package/esm/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.d.ts +0 -0
- /package/script/deps/jsr.io/@std/fs/{1.0.23 → 1.0.24}/exists.js +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/_os.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.d.ts +0 -0
- /package/script/deps/jsr.io/@std/internal/{1.0.13 → 1.0.14}/os.js +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/assert_path.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/constants.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/_common/normalize_string.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/posix/normalize.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/_util.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/from_file_url.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/join.d.ts +0 -0
- /package/script/deps/jsr.io/@std/path/{1.1.4 → 1.1.6}/windows/normalize.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenerateContext.d.ts","sourceRoot":"","sources":["../../src/context/GenerateContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GenerateContext.d.ts","sourceRoot":"","sources":["../../src/context/GenerateContext.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAA;AACtE,OAAO,KAAK,EACV,kBAAkB,EAKnB,MAAM,gCAAgC,CAAA;AACvC,OAAO,KAAK,EACV,sBAAsB,EACtB,mBAAmB,EACnB,cAAc,EAEd,kBAAkB,EAClB,yBAAyB,EACzB,4BAA4B,EAC5B,2BAA2B,EAC3B,mBAAmB,EACnB,iBAAiB,EACjB,QAAQ,EACR,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EAEpB,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,oBAAoB,CAAA;AAC3B,OAAO,KAAK,EACV,cAAc,EASf,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AACjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAK3D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAK3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,q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,KAAG,kBAM5B,CAAA;AAEF,KAAK,iBAAiB,GAAG;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,WAAW,EAAE,MAAM,CAAA;IACnB,uEAAuE;IACvE,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa,GAAI,mCAI3B,iBAAiB,KAAG,WAKrB,CAAA"}
|
|
@@ -13,10 +13,11 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
|
-
var _GenerateContext_instances, _GenerateContext_files, _GenerateContext_previews,
|
|
16
|
+
var _GenerateContext_instances, _GenerateContext_files, _GenerateContext_previews, _GenerateContext_captureChannel, _GenerateContext_schemaRefNames, _GenerateContext_subjectDefaults, _GenerateContext_runOasOperationGenerator, _GenerateContext_runWebhookGenerator, _GenerateContext_runGqlOperationGenerator, _GenerateContext_runModelGenerator, _GenerateContext_addPreview, _GenerateContext_toContentSettingsExportPath, _GenerateContext_ejectedBySuffixedPath_get, _GenerateContext_ejectedBySuffixedPathCache;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.toModelSource = exports.toGqlOperationSource = exports.toWebhookSource = exports.toOasOperationSource = exports.GenerateContext = void 0;
|
|
19
|
-
const normalize_js_1 = require("../deps/jsr.io/@std/path/1.1.
|
|
19
|
+
const normalize_js_1 = require("../deps/jsr.io/@std/path/1.1.6/normalize.js");
|
|
20
|
+
const applyGeneratedSuffix_js_1 = require("../helpers/applyGeneratedSuffix.js");
|
|
20
21
|
const OasOperationDriver_js_1 = require("../dsl/operation/oas/OasOperationDriver.js");
|
|
21
22
|
const WebhookDriver_js_1 = require("../dsl/webhook/WebhookDriver.js");
|
|
22
23
|
const GqlOperationDriver_js_1 = require("../dsl/operation/gql/GqlOperationDriver.js");
|
|
@@ -28,6 +29,7 @@ const get_js_1 = __importDefault(require("lodash-es/get.js"));
|
|
|
28
29
|
const Inserted_js_1 = require("../dsl/Inserted.js");
|
|
29
30
|
const CodeFileBase_js_1 = require("../dsl/CodeFileBase.js");
|
|
30
31
|
const JsonFile_js_1 = require("../dsl/JsonFile.js");
|
|
32
|
+
const MarkdownFile_js_1 = require("../dsl/MarkdownFile.js");
|
|
31
33
|
const tiny_invariant_1 = __importDefault(require("tiny-invariant"));
|
|
32
34
|
/**
|
|
33
35
|
* The generation context for the second phase of the SKMTC transformation pipeline.
|
|
@@ -82,7 +84,6 @@ class GenerateContext {
|
|
|
82
84
|
_GenerateContext_instances.add(this);
|
|
83
85
|
_GenerateContext_files.set(this, void 0);
|
|
84
86
|
_GenerateContext_previews.set(this, void 0);
|
|
85
|
-
_GenerateContext_mappings.set(this, void 0);
|
|
86
87
|
/**
|
|
87
88
|
* Parsed source document, wrapped in the {@link SkmtcParsedDocument}
|
|
88
89
|
* discriminated union. Canonical representation; both protocol-neutral
|
|
@@ -136,10 +137,10 @@ class GenerateContext {
|
|
|
136
137
|
*/
|
|
137
138
|
/** Shared attribution capture channel (see {@link ConstructorArgs}). */
|
|
138
139
|
_GenerateContext_captureChannel.set(this, void 0);
|
|
140
|
+
_GenerateContext_ejectedBySuffixedPathCache.set(this, void 0);
|
|
139
141
|
this.logger = logger;
|
|
140
142
|
__classPrivateFieldSet(this, _GenerateContext_files, new Map(), "f");
|
|
141
143
|
__classPrivateFieldSet(this, _GenerateContext_previews, {}, "f");
|
|
142
|
-
__classPrivateFieldSet(this, _GenerateContext_mappings, {}, "f");
|
|
143
144
|
this.document = document;
|
|
144
145
|
this.settings = settings;
|
|
145
146
|
this.captureCurrentResult = captureCurrentResult;
|
|
@@ -230,8 +231,7 @@ class GenerateContext {
|
|
|
230
231
|
});
|
|
231
232
|
return {
|
|
232
233
|
files: __classPrivateFieldGet(this, _GenerateContext_files, "f"),
|
|
233
|
-
previews: __classPrivateFieldGet(this, _GenerateContext_previews, "f")
|
|
234
|
-
mappings: __classPrivateFieldGet(this, _GenerateContext_mappings, "f")
|
|
234
|
+
previews: __classPrivateFieldGet(this, _GenerateContext_previews, "f")
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
237
|
/**
|
|
@@ -250,8 +250,11 @@ class GenerateContext {
|
|
|
250
250
|
case 'oasOperation': {
|
|
251
251
|
const operations = this.document.type === 'oas'
|
|
252
252
|
? this.document.value.operations
|
|
253
|
-
.filter(operation =>
|
|
254
|
-
|
|
253
|
+
.filter(operation => generatorConfig.isSupported({
|
|
254
|
+
operation,
|
|
255
|
+
context: this,
|
|
256
|
+
variant: Variant_js_1.DEFAULT_VARIANT
|
|
257
|
+
}))
|
|
255
258
|
.map(operation => ({ path: operation.path, method: operation.method }))
|
|
256
259
|
: [];
|
|
257
260
|
out[generatorConfig.id] = { type: 'oasOperation', operations };
|
|
@@ -260,8 +263,11 @@ class GenerateContext {
|
|
|
260
263
|
case 'webhook': {
|
|
261
264
|
const webhooks = this.document.type === 'oas'
|
|
262
265
|
? this.document.value.webhooks
|
|
263
|
-
.filter(webhook =>
|
|
264
|
-
|
|
266
|
+
.filter(webhook => generatorConfig.isSupported({
|
|
267
|
+
webhook,
|
|
268
|
+
context: this,
|
|
269
|
+
variant: Variant_js_1.DEFAULT_VARIANT
|
|
270
|
+
}))
|
|
265
271
|
.map(webhook => ({ name: webhook.name, method: webhook.method }))
|
|
266
272
|
: [];
|
|
267
273
|
out[generatorConfig.id] = { type: 'webhook', webhooks };
|
|
@@ -270,8 +276,11 @@ class GenerateContext {
|
|
|
270
276
|
case 'gqlOperation': {
|
|
271
277
|
const operations = this.document.type === 'gql'
|
|
272
278
|
? this.document.value.operations
|
|
273
|
-
.filter(operation =>
|
|
274
|
-
|
|
279
|
+
.filter(operation => generatorConfig.isSupported({
|
|
280
|
+
operation,
|
|
281
|
+
context: this,
|
|
282
|
+
variant: Variant_js_1.DEFAULT_VARIANT
|
|
283
|
+
}))
|
|
275
284
|
.map(operation => ({
|
|
276
285
|
rootKind: operation.rootKind,
|
|
277
286
|
fieldName: operation.fieldName
|
|
@@ -281,8 +290,7 @@ class GenerateContext {
|
|
|
281
290
|
break;
|
|
282
291
|
}
|
|
283
292
|
case 'model': {
|
|
284
|
-
const models = __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_schemaRefNames).call(this).filter(refName =>
|
|
285
|
-
generatorConfig.isSupported({ refName, context: this, variant: Variant_js_1.DEFAULT_VARIANT }));
|
|
293
|
+
const models = __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_schemaRefNames).call(this).filter(refName => generatorConfig.isSupported({ refName, context: this, variant: Variant_js_1.DEFAULT_VARIANT }));
|
|
286
294
|
out[generatorConfig.id] = { type: 'model', models };
|
|
287
295
|
break;
|
|
288
296
|
}
|
|
@@ -319,8 +327,7 @@ class GenerateContext {
|
|
|
319
327
|
break;
|
|
320
328
|
const operations = {};
|
|
321
329
|
this.document.value.operations.forEach(operation => {
|
|
322
|
-
if (
|
|
323
|
-
!generatorConfig.isSupported({ operation, context: this, variant: Variant_js_1.DEFAULT_VARIANT })) {
|
|
330
|
+
if (!generatorConfig.isSupported({ operation, context: this, variant: Variant_js_1.DEFAULT_VARIANT })) {
|
|
324
331
|
return;
|
|
325
332
|
}
|
|
326
333
|
const leaf = __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_subjectDefaults).call(this, () => toDefaults({ operation, context: this, variant: Variant_js_1.DEFAULT_VARIANT }));
|
|
@@ -340,8 +347,7 @@ class GenerateContext {
|
|
|
340
347
|
break;
|
|
341
348
|
const webhooks = {};
|
|
342
349
|
this.document.value.webhooks.forEach(webhook => {
|
|
343
|
-
if (
|
|
344
|
-
!generatorConfig.isSupported({ webhook, context: this, variant: Variant_js_1.DEFAULT_VARIANT })) {
|
|
350
|
+
if (!generatorConfig.isSupported({ webhook, context: this, variant: Variant_js_1.DEFAULT_VARIANT })) {
|
|
345
351
|
return;
|
|
346
352
|
}
|
|
347
353
|
const leaf = __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_subjectDefaults).call(this, () => toDefaults({ webhook, context: this, variant: Variant_js_1.DEFAULT_VARIANT }));
|
|
@@ -365,8 +371,7 @@ class GenerateContext {
|
|
|
365
371
|
// `undefined` for schemas it doesn't seed.
|
|
366
372
|
const models = {};
|
|
367
373
|
for (const refName of __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_schemaRefNames).call(this)) {
|
|
368
|
-
if (
|
|
369
|
-
!generatorConfig.isSupported({ refName, context: this, variant: Variant_js_1.DEFAULT_VARIANT })) {
|
|
374
|
+
if (!generatorConfig.isSupported({ refName, context: this, variant: Variant_js_1.DEFAULT_VARIANT })) {
|
|
370
375
|
continue;
|
|
371
376
|
}
|
|
372
377
|
const leaf = __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_subjectDefaults).call(this, () => toDefaults({ refName, context: this, variant: Variant_js_1.DEFAULT_VARIANT }));
|
|
@@ -404,6 +409,19 @@ class GenerateContext {
|
|
|
404
409
|
getFile(filePath) {
|
|
405
410
|
return __classPrivateFieldGet(this, _GenerateContext_files, "f").get((0, normalize_js_1.normalize)(filePath));
|
|
406
411
|
}
|
|
412
|
+
/**
|
|
413
|
+
* Read-only view of every file generated so far, keyed by (normalized)
|
|
414
|
+
* export path. An **inspection / tooling** seam — NOT a coordination
|
|
415
|
+
* surface: generators must still register via `register` / `insert*`, and
|
|
416
|
+
* the storage stays `#`-private so nothing outside can mutate or re-bind it.
|
|
417
|
+
*
|
|
418
|
+
* Unlike {@link getFile} (which needs a path) this lets tooling *enumerate*
|
|
419
|
+
* the files map — e.g. a debugger visualiser snapshotting the in-progress
|
|
420
|
+
* state at a breakpoint. The `ReadonlyMap` type signals look-don't-touch.
|
|
421
|
+
*/
|
|
422
|
+
get inspectedFiles() {
|
|
423
|
+
return __classPrivateFieldGet(this, _GenerateContext_files, "f");
|
|
424
|
+
}
|
|
407
425
|
/**
|
|
408
426
|
* Store a language-constructed file. The engine never constructs a
|
|
409
427
|
* concrete (language) `File`; the language's `register` builds its own
|
|
@@ -433,6 +451,25 @@ class GenerateContext {
|
|
|
433
451
|
(0, tiny_invariant_1.default)(currentFile instanceof JsonFile_js_1.JsonFile, `File at "${destinationPath}" is not a "JsonFile" type`);
|
|
434
452
|
currentFile.content = json;
|
|
435
453
|
}
|
|
454
|
+
/**
|
|
455
|
+
* Registers Markdown content for output to a file.
|
|
456
|
+
*
|
|
457
|
+
* The Markdown counterpart of {@link registerJson} — create-or-replace, last
|
|
458
|
+
* write wins. The `markdown` is any {@link Stringable} (typically a composed
|
|
459
|
+
* snippet tree), rendered verbatim into a {@link MarkdownFile}.
|
|
460
|
+
*
|
|
461
|
+
* @experimental This method is experimental and may change in future versions
|
|
462
|
+
*/
|
|
463
|
+
registerMarkdown({ destinationPath, markdown }) {
|
|
464
|
+
const normalizedPath = (0, normalize_js_1.normalize)(destinationPath);
|
|
465
|
+
let currentFile = this.getFile(normalizedPath);
|
|
466
|
+
if (!currentFile) {
|
|
467
|
+
currentFile = new MarkdownFile_js_1.MarkdownFile({ path: normalizedPath, content: '' });
|
|
468
|
+
this.addFile(currentFile);
|
|
469
|
+
}
|
|
470
|
+
(0, tiny_invariant_1.default)(currentFile instanceof MarkdownFile_js_1.MarkdownFile, `File at "${destinationPath}" is not a "MarkdownFile" type`);
|
|
471
|
+
currentFile.content = markdown;
|
|
472
|
+
}
|
|
436
473
|
/**
|
|
437
474
|
* Insert supplied `imports` and `definitions` into file at `destinationPath`.
|
|
438
475
|
*
|
|
@@ -444,7 +481,7 @@ class GenerateContext {
|
|
|
444
481
|
*
|
|
445
482
|
* @mutates this.files
|
|
446
483
|
*/
|
|
447
|
-
register({ imports = [], reExports = [], definitions, destinationPath }) {
|
|
484
|
+
register({ imports = [], reExports = [], definitions, custom, destinationPath }) {
|
|
448
485
|
const normalizedPath = (0, normalize_js_1.normalize)(destinationPath);
|
|
449
486
|
const currentFile = this.getFile(normalizedPath);
|
|
450
487
|
// `register` never creates files — it speaks pure data and the engine
|
|
@@ -454,22 +491,27 @@ class GenerateContext {
|
|
|
454
491
|
// caller.
|
|
455
492
|
(0, tiny_invariant_1.default)(currentFile, `Cannot register into '${normalizedPath}' — the file does not exist. ` +
|
|
456
493
|
`Pre-create it through your lang (its register function does this).`);
|
|
457
|
-
//
|
|
458
|
-
//
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
}
|
|
463
|
-
});
|
|
464
|
-
// Imports and re-exports are standardised `ImportBase` /
|
|
465
|
-
// `ReExportBase` objects; the neutral merges (keyed by `mergeKey`)
|
|
466
|
-
// live on `CodeFileBase`. `JsonFile` has neither, so the guard skips
|
|
467
|
-
// it.
|
|
468
|
-
if (imports.length > 0 && currentFile instanceof CodeFileBase_js_1.CodeFileBase) {
|
|
469
|
-
currentFile.addImports(imports);
|
|
494
|
+
// `custom` is language-neutral — it lives on `FileBase`, so any file
|
|
495
|
+
// (code or not, e.g. a JSON/Markdown file) can receive it. Last
|
|
496
|
+
// non-`undefined` write wins.
|
|
497
|
+
if (custom !== undefined) {
|
|
498
|
+
currentFile.custom = custom;
|
|
470
499
|
}
|
|
471
|
-
|
|
472
|
-
|
|
500
|
+
// Definitions, imports, and re-exports — and their duplication/merge
|
|
501
|
+
// policy — are code-file concerns owned by the language subclass.
|
|
502
|
+
// `JsonFile` (no definitions/imports) is skipped by the guard.
|
|
503
|
+
if (currentFile instanceof CodeFileBase_js_1.CodeFileBase) {
|
|
504
|
+
definitions?.forEach(definition => {
|
|
505
|
+
if (definition) {
|
|
506
|
+
currentFile.addDefinition(definition);
|
|
507
|
+
}
|
|
508
|
+
});
|
|
509
|
+
if (imports.length > 0) {
|
|
510
|
+
currentFile.addImports(imports);
|
|
511
|
+
}
|
|
512
|
+
if (reExports.length > 0) {
|
|
513
|
+
currentFile.addReExports(reExports);
|
|
514
|
+
}
|
|
473
515
|
}
|
|
474
516
|
}
|
|
475
517
|
/**
|
|
@@ -607,7 +649,7 @@ class GenerateContext {
|
|
|
607
649
|
* given operation.
|
|
608
650
|
*/
|
|
609
651
|
toOperationContentSettings(args) {
|
|
610
|
-
const
|
|
652
|
+
const variant = args.variant ?? Variant_js_1.DEFAULT_VARIANT;
|
|
611
653
|
if (isGqlToOperationSettingsArgs(args)) {
|
|
612
654
|
const enrichments = args.projection.toEnrichments({
|
|
613
655
|
operation: args.operation,
|
|
@@ -623,11 +665,11 @@ class GenerateContext {
|
|
|
623
665
|
}),
|
|
624
666
|
...args.projection.toIdentifierType(args.operation, this)
|
|
625
667
|
}),
|
|
626
|
-
exportPath: args.projection.toExportPath({
|
|
668
|
+
exportPath: __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_toContentSettingsExportPath).call(this, args.projection.toExportPath({
|
|
627
669
|
operation: args.operation,
|
|
628
670
|
enrichments,
|
|
629
671
|
variant
|
|
630
|
-
}),
|
|
672
|
+
})),
|
|
631
673
|
enrichments,
|
|
632
674
|
variant
|
|
633
675
|
});
|
|
@@ -646,11 +688,11 @@ class GenerateContext {
|
|
|
646
688
|
}),
|
|
647
689
|
...args.projection.toIdentifierType(args.operation, this)
|
|
648
690
|
}),
|
|
649
|
-
exportPath: args.projection.toExportPath({
|
|
691
|
+
exportPath: __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_toContentSettingsExportPath).call(this, args.projection.toExportPath({
|
|
650
692
|
operation: args.operation,
|
|
651
693
|
enrichments,
|
|
652
694
|
variant
|
|
653
|
-
}),
|
|
695
|
+
})),
|
|
654
696
|
enrichments,
|
|
655
697
|
variant
|
|
656
698
|
});
|
|
@@ -661,7 +703,7 @@ class GenerateContext {
|
|
|
661
703
|
* protocol discrimination.
|
|
662
704
|
*/
|
|
663
705
|
toWebhookContentSettings(args) {
|
|
664
|
-
const
|
|
706
|
+
const variant = args.variant ?? Variant_js_1.DEFAULT_VARIANT;
|
|
665
707
|
const enrichments = args.projection.toEnrichments({
|
|
666
708
|
webhook: args.webhook,
|
|
667
709
|
context: this,
|
|
@@ -676,11 +718,11 @@ class GenerateContext {
|
|
|
676
718
|
}),
|
|
677
719
|
...args.projection.toIdentifierType(args.webhook, this)
|
|
678
720
|
}),
|
|
679
|
-
exportPath: args.projection.toExportPath({
|
|
721
|
+
exportPath: __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_toContentSettingsExportPath).call(this, args.projection.toExportPath({
|
|
680
722
|
webhook: args.webhook,
|
|
681
723
|
enrichments,
|
|
682
724
|
variant
|
|
683
|
-
}),
|
|
725
|
+
})),
|
|
684
726
|
enrichments,
|
|
685
727
|
variant
|
|
686
728
|
});
|
|
@@ -688,19 +730,19 @@ class GenerateContext {
|
|
|
688
730
|
/**
|
|
689
731
|
* Build content settings for a model projection by calling its statics
|
|
690
732
|
* `toIdentifierName` (pure, for the name) + `toIdentifierType`
|
|
691
|
-
* (context-aware, for
|
|
733
|
+
* (context-aware, for type/typeName/exported), `toExportPath`, and
|
|
692
734
|
* `toEnrichments` against the given `refName` and `variant`. The full
|
|
693
735
|
* identifier is assembled through the projection's language
|
|
694
736
|
* (`lang.toIdentifier`).
|
|
695
737
|
*/
|
|
696
|
-
toModelContentSettings({ refName, projection, variant }) {
|
|
738
|
+
toModelContentSettings({ refName, projection, variant = Variant_js_1.DEFAULT_VARIANT }) {
|
|
697
739
|
const enrichments = projection.toEnrichments({ refName, context: this, variant });
|
|
698
740
|
return new ContentSettings_js_1.ContentSettings({
|
|
699
741
|
identifier: projection.lang.toIdentifier({
|
|
700
742
|
name: projection.toIdentifierName({ refName, enrichments, variant }),
|
|
701
743
|
...projection.toIdentifierType(refName, this)
|
|
702
744
|
}),
|
|
703
|
-
exportPath: projection.toExportPath({ refName, enrichments, variant }),
|
|
745
|
+
exportPath: __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_toContentSettingsExportPath).call(this, projection.toExportPath({ refName, enrichments, variant })),
|
|
704
746
|
enrichments,
|
|
705
747
|
variant
|
|
706
748
|
});
|
|
@@ -734,13 +776,15 @@ class GenerateContext {
|
|
|
734
776
|
* @returns Matching definition if found or `undefined` otherwise
|
|
735
777
|
*/
|
|
736
778
|
findDefinition({ name, exportPath }) {
|
|
737
|
-
// Pure lookup — no file is created on a miss.
|
|
738
|
-
//
|
|
739
|
-
|
|
779
|
+
// Pure lookup — no file is created on a miss. Definitions live on the
|
|
780
|
+
// code-file subclass, so narrow; a non-code file (`JsonFile`) has none.
|
|
781
|
+
// The cache wants the single primary for the name → first match.
|
|
782
|
+
const file = this.getFile(exportPath);
|
|
783
|
+
return file instanceof CodeFileBase_js_1.CodeFileBase ? file.findDefinitions({ name })?.[0] : undefined;
|
|
740
784
|
}
|
|
741
785
|
}
|
|
742
786
|
exports.GenerateContext = GenerateContext;
|
|
743
|
-
_GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(),
|
|
787
|
+
_GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(), _GenerateContext_captureChannel = new WeakMap(), _GenerateContext_ejectedBySuffixedPathCache = new WeakMap(), _GenerateContext_instances = new WeakSet(), _GenerateContext_schemaRefNames = function _GenerateContext_schemaRefNames() {
|
|
744
788
|
switch (this.document.type) {
|
|
745
789
|
case 'oas':
|
|
746
790
|
return [...(this.document.value.components?.toSchemasRefNames() ?? [])];
|
|
@@ -778,7 +822,12 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
778
822
|
// at config-load time once it lands)
|
|
779
823
|
// - present, object → enumerate keys; 'main' must be among
|
|
780
824
|
// them or we throw (loud beats silent zero-output)
|
|
781
|
-
const opEnrichments = (0, get_js_1.default)(this.settings, [
|
|
825
|
+
const opEnrichments = (0, get_js_1.default)(this.settings, [
|
|
826
|
+
'enrichments',
|
|
827
|
+
generatorConfig.id,
|
|
828
|
+
operation.path,
|
|
829
|
+
operation.method
|
|
830
|
+
]);
|
|
782
831
|
const variants = (0, toVariantList_js_1.toVariantList)({
|
|
783
832
|
opEnrichments,
|
|
784
833
|
generatorId: generatorConfig.id,
|
|
@@ -798,11 +847,21 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
798
847
|
// this method"; a populated array names the variants the
|
|
799
848
|
// entry applies to.
|
|
800
849
|
if (include !== undefined &&
|
|
801
|
-
!matchesPathFilter({
|
|
850
|
+
!matchesPathFilter({
|
|
851
|
+
paths: include,
|
|
852
|
+
path: operation.path,
|
|
853
|
+
method: operation.method,
|
|
854
|
+
variant
|
|
855
|
+
})) {
|
|
802
856
|
this.captureCurrentResult('skipped', st);
|
|
803
857
|
return;
|
|
804
858
|
}
|
|
805
|
-
if (matchesPathFilter({
|
|
859
|
+
if (matchesPathFilter({
|
|
860
|
+
paths: skip,
|
|
861
|
+
path: operation.path,
|
|
862
|
+
method: operation.method,
|
|
863
|
+
variant
|
|
864
|
+
})) {
|
|
806
865
|
this.captureCurrentResult('skipped', st);
|
|
807
866
|
return;
|
|
808
867
|
}
|
|
@@ -817,7 +876,6 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
817
876
|
variant
|
|
818
877
|
});
|
|
819
878
|
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addPreview).call(this, source, generatorConfig.toPreviewModule?.({ context: this, operation, variant }));
|
|
820
|
-
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addMapping).call(this, source, generatorConfig.toMappingModule?.({ context: this, operation, variant }));
|
|
821
879
|
this.captureCurrentResult('success', st);
|
|
822
880
|
}
|
|
823
881
|
catch (error) {
|
|
@@ -835,7 +893,12 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
835
893
|
// the webhook analogue of the operation routing. `toVariantList`
|
|
836
894
|
// handles absent / non-object / object enrichment blocks and
|
|
837
895
|
// enforces the `'main'`-must-be-present rule.
|
|
838
|
-
const webhookEnrichments = (0, get_js_1.default)(this.settings, [
|
|
896
|
+
const webhookEnrichments = (0, get_js_1.default)(this.settings, [
|
|
897
|
+
'enrichments',
|
|
898
|
+
generatorConfig.id,
|
|
899
|
+
webhook.name,
|
|
900
|
+
webhook.method
|
|
901
|
+
]);
|
|
839
902
|
const variants = (0, toVariantList_js_1.toVariantList)({
|
|
840
903
|
opEnrichments: webhookEnrichments,
|
|
841
904
|
generatorId: generatorConfig.id,
|
|
@@ -854,11 +917,21 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
854
917
|
// operations (the webhook name occupies the `path` slot), so
|
|
855
918
|
// `matchesPathFilter` is reused with `path: webhook.name`.
|
|
856
919
|
if (include !== undefined &&
|
|
857
|
-
!matchesPathFilter({
|
|
920
|
+
!matchesPathFilter({
|
|
921
|
+
paths: include,
|
|
922
|
+
path: webhook.name,
|
|
923
|
+
method: webhook.method,
|
|
924
|
+
variant
|
|
925
|
+
})) {
|
|
858
926
|
this.captureCurrentResult('skipped', st);
|
|
859
927
|
return;
|
|
860
928
|
}
|
|
861
|
-
if (matchesPathFilter({
|
|
929
|
+
if (matchesPathFilter({
|
|
930
|
+
paths: skip,
|
|
931
|
+
path: webhook.name,
|
|
932
|
+
method: webhook.method,
|
|
933
|
+
variant
|
|
934
|
+
})) {
|
|
862
935
|
this.captureCurrentResult('skipped', st);
|
|
863
936
|
return;
|
|
864
937
|
}
|
|
@@ -873,7 +946,6 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
873
946
|
variant
|
|
874
947
|
});
|
|
875
948
|
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addPreview).call(this, source, generatorConfig.toPreviewModule?.({ context: this, webhook, variant }));
|
|
876
|
-
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addMapping).call(this, source, generatorConfig.toMappingModule?.({ context: this, webhook, variant }));
|
|
877
949
|
this.captureCurrentResult('success', st);
|
|
878
950
|
}
|
|
879
951
|
catch (error) {
|
|
@@ -889,7 +961,12 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
889
961
|
stackTrail.trace(operation.identifier, opTrail => {
|
|
890
962
|
// GraphQL enrichment routing key is
|
|
891
963
|
// `[generatorId][rootKind][fieldName][variant]`.
|
|
892
|
-
const opEnrichments = (0, get_js_1.default)(this.settings, [
|
|
964
|
+
const opEnrichments = (0, get_js_1.default)(this.settings, [
|
|
965
|
+
'enrichments',
|
|
966
|
+
generatorConfig.id,
|
|
967
|
+
operation.rootKind,
|
|
968
|
+
operation.fieldName
|
|
969
|
+
]);
|
|
893
970
|
const variants = (0, toVariantList_js_1.toVariantList)({
|
|
894
971
|
opEnrichments,
|
|
895
972
|
generatorId: generatorConfig.id,
|
|
@@ -914,7 +991,6 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
914
991
|
variant
|
|
915
992
|
});
|
|
916
993
|
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addPreview).call(this, source, generatorConfig.toPreviewModule?.({ context: this, operation, variant }));
|
|
917
|
-
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addMapping).call(this, source, generatorConfig.toMappingModule?.({ context: this, operation, variant }));
|
|
918
994
|
this.captureCurrentResult('success', st);
|
|
919
995
|
}
|
|
920
996
|
catch (error) {
|
|
@@ -942,7 +1018,11 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
942
1018
|
// at config-load time once it lands)
|
|
943
1019
|
// - present, object → enumerate keys; 'main' must be among
|
|
944
1020
|
// them or we throw (loud beats silent zero-output)
|
|
945
|
-
const modelEnrichments = (0, get_js_1.default)(this.settings, [
|
|
1021
|
+
const modelEnrichments = (0, get_js_1.default)(this.settings, [
|
|
1022
|
+
'enrichments',
|
|
1023
|
+
generatorConfig.id,
|
|
1024
|
+
refName
|
|
1025
|
+
]);
|
|
946
1026
|
const variants = (0, toVariantList_js_1.toVariantList)({
|
|
947
1027
|
opEnrichments: modelEnrichments,
|
|
948
1028
|
generatorId: generatorConfig.id,
|
|
@@ -960,8 +1040,7 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
960
1040
|
// (deny). Match is on `(refName, variant)`. An empty variant
|
|
961
1041
|
// array on a refName means "every variant of this refName"; a
|
|
962
1042
|
// populated array names the variants the entry applies to.
|
|
963
|
-
if (include !== undefined &&
|
|
964
|
-
!matchesRefFilter({ refs: include, refName, variant })) {
|
|
1043
|
+
if (include !== undefined && !matchesRefFilter({ refs: include, refName, variant })) {
|
|
965
1044
|
this.captureCurrentResult('skipped', st);
|
|
966
1045
|
return;
|
|
967
1046
|
}
|
|
@@ -980,7 +1059,6 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
980
1059
|
variant
|
|
981
1060
|
});
|
|
982
1061
|
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addPreview).call(this, source, generatorConfig.toPreviewModule?.({ context: this, refName, variant }));
|
|
983
|
-
__classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_addMapping).call(this, source, generatorConfig.toMappingModule?.({ context: this, refName, variant }));
|
|
984
1062
|
this.captureCurrentResult('success', st);
|
|
985
1063
|
}
|
|
986
1064
|
catch (error) {
|
|
@@ -999,20 +1077,25 @@ _GenerateContext_files = new WeakMap(), _GenerateContext_previews = new WeakMap(
|
|
|
999
1077
|
throw new Error(`Cannot override preview module "${module.name}"`);
|
|
1000
1078
|
}
|
|
1001
1079
|
__classPrivateFieldGet(this, _GenerateContext_previews, "f")[module.name] = {
|
|
1002
|
-
|
|
1080
|
+
// Preview export paths are hand-assembled in `toPreviewModule`
|
|
1081
|
+
// (generators call the static `toExportPath` directly), so they
|
|
1082
|
+
// bypass the ContentSettings construction path — run them through the same
|
|
1083
|
+
// suffix injection or previews point at files that don't exist.
|
|
1084
|
+
module: { ...module, exportPath: __classPrivateFieldGet(this, _GenerateContext_instances, "m", _GenerateContext_toContentSettingsExportPath).call(this, module.exportPath) },
|
|
1003
1085
|
source
|
|
1004
1086
|
};
|
|
1005
|
-
},
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
if (__classPrivateFieldGet(this,
|
|
1010
|
-
|
|
1087
|
+
}, _GenerateContext_toContentSettingsExportPath = function _GenerateContext_toContentSettingsExportPath(exportPath) {
|
|
1088
|
+
const suffixed = (0, applyGeneratedSuffix_js_1.applyGeneratedSuffix)(exportPath, this.settings?.generatedSuffix ?? applyGeneratedSuffix_js_1.DEFAULT_GENERATED_SUFFIX);
|
|
1089
|
+
return __classPrivateFieldGet(this, _GenerateContext_instances, "a", _GenerateContext_ejectedBySuffixedPath_get).get((0, normalize_js_1.normalize)(suffixed)) ?? suffixed;
|
|
1090
|
+
}, _GenerateContext_ejectedBySuffixedPath_get = function _GenerateContext_ejectedBySuffixedPath_get() {
|
|
1091
|
+
if (__classPrivateFieldGet(this, _GenerateContext_ejectedBySuffixedPathCache, "f") === undefined) {
|
|
1092
|
+
const suffix = this.settings?.generatedSuffix ?? applyGeneratedSuffix_js_1.DEFAULT_GENERATED_SUFFIX;
|
|
1093
|
+
__classPrivateFieldSet(this, _GenerateContext_ejectedBySuffixedPathCache, new Map((this.settings?.ejected ?? []).map(ejectedPath => {
|
|
1094
|
+
const normalized = (0, normalize_js_1.normalize)(ejectedPath);
|
|
1095
|
+
return [(0, normalize_js_1.normalize)((0, applyGeneratedSuffix_js_1.applyGeneratedSuffix)(normalized, suffix)), normalized];
|
|
1096
|
+
})), "f");
|
|
1011
1097
|
}
|
|
1012
|
-
__classPrivateFieldGet(this,
|
|
1013
|
-
module,
|
|
1014
|
-
source
|
|
1015
|
-
};
|
|
1098
|
+
return __classPrivateFieldGet(this, _GenerateContext_ejectedBySuffixedPathCache, "f");
|
|
1016
1099
|
};
|
|
1017
1100
|
/**
|
|
1018
1101
|
* Match a `(path, method, variant)` tuple against an operation-shaped
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParseContext.d.ts","sourceRoot":"","sources":["../../src/context/ParseContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAe,KAAK,aAAa,EAAE,MAAM,SAAS,CAAA;AAIzD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAE5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,YAAY,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"ParseContext.d.ts","sourceRoot":"","sources":["../../src/context/ParseContext.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,sBAAsB,CAAC;AAG9B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAC9C,OAAO,EAAe,KAAK,aAAa,EAAE,MAAM,SAAS,CAAA;AAIzD,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAA;AAE5D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,YAAY,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AACpE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,KAAK,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,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,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,GAAG,IAAI;IAK1D;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EACf,OAAO,EACP,UAAU,EACV,MAAM,EACN,UAAU,EACV,IAA4B,EAC7B,EAAE,oBAAoB,GAAG,IAAI;CAY/B"}
|
|
@@ -31,7 +31,7 @@ import type { OasIssueType } from './generateTypes.js';
|
|
|
31
31
|
*
|
|
32
32
|
* - `NESTED_LIST_LOSSY` — `[[T]]` collapsed to `OasUnknown`.
|
|
33
33
|
* - `UNKNOWN_TYPE_KIND` — defensive fallback for an unrecognized
|
|
34
|
-
* GraphQL type
|
|
34
|
+
* GraphQL type type. Should never fire in practice.
|
|
35
35
|
* - `DROPPED_DIRECTIVE` — applied directive ignored during mapping
|
|
36
36
|
* (other than `@deprecated`, whose `reason` we capture).
|
|
37
37
|
* - `SKIPPED_FIELD_ARGUMENTS` — non-root object/interface field
|
|
@@ -5,7 +5,7 @@ import type { ResultType } from '../types/Results.js';
|
|
|
5
5
|
import type * as log from '../deps/jsr.io/@std/log/0.224.14/mod.js';
|
|
6
6
|
import type { Logger } from '../types/Logger.js';
|
|
7
7
|
import type { FileBase } from '../dsl/FileBase.js';
|
|
8
|
-
import type { Preview
|
|
8
|
+
import type { Preview } from '../types/Preview.js';
|
|
9
9
|
import type { StackTrail } from './StackTrail.js';
|
|
10
10
|
import { type CaptureChannel } from '../anchors/CaptureSink.js';
|
|
11
11
|
import type { GenerationMapEntry } from '../anchors/generationMap.js';
|
|
@@ -28,8 +28,6 @@ type ConstructorArgs = {
|
|
|
28
28
|
files: Map<string, FileBase>;
|
|
29
29
|
/** Preview data for generated content */
|
|
30
30
|
previews: Record<string, Preview>;
|
|
31
|
-
/** Mapping data for file relationships */
|
|
32
|
-
mappings: Record<string, Mapping>;
|
|
33
31
|
/** Base path for resolving file paths */
|
|
34
32
|
basePath: string | undefined;
|
|
35
33
|
/** Logger instance for debug information */
|
|
@@ -56,8 +54,6 @@ export declare class RenderContext {
|
|
|
56
54
|
files: Map<string, FileBase>;
|
|
57
55
|
/** Preview data for generated content */
|
|
58
56
|
previews: Record<string, Preview>;
|
|
59
|
-
/** Mapping data for file relationships */
|
|
60
|
-
mappings: Record<string, Mapping>;
|
|
61
57
|
/** Base path for resolving file paths */
|
|
62
58
|
basePath: string | undefined;
|
|
63
59
|
/** Logger instance for debug information */
|
|
@@ -74,7 +70,7 @@ export declare class RenderContext {
|
|
|
74
70
|
*
|
|
75
71
|
* @param args - Constructor arguments containing all required configuration
|
|
76
72
|
*/
|
|
77
|
-
constructor({ files, previews,
|
|
73
|
+
constructor({ files, previews, basePath, logger, captureCurrentResult, attribution, captureChannel }: ConstructorArgs);
|
|
78
74
|
/**
|
|
79
75
|
* Renders all files in the context to their final form.
|
|
80
76
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderContext.d.ts","sourceRoot":"","sources":["../../src/context/RenderContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEzE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,KAAK,KAAK,GAAG,MAAM,yCAAyC,CAAA;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAEhD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"RenderContext.d.ts","sourceRoot":"","sources":["../../src/context/RenderContext.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AA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