@skmtc/core 0.18.1 → 0.26.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 +0 -1
- package/esm/anchors/buildSidecar.js +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 +135 -70
- 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.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.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/{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/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.js +2 -2
- package/esm/helpers/isImported.js +1 -1
- package/esm/helpers/toResolvedArtifactPath.js +1 -1
- package/esm/mod.d.ts +7 -1
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +7 -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/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 +113 -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/components/toComponentsV3.d.ts.map +1 -1
- package/esm/parse/v3-0/components/toComponentsV3.js +3 -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/response/toResponseV3.d.ts.map +1 -1
- package/esm/parse/v3-0/response/toResponseV3.js +4 -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-1/components/toComponentsV3.d.ts.map +1 -1
- package/esm/parse/v3-1/components/toComponentsV3.js +3 -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/response/toResponseV3.d.ts.map +1 -1
- package/esm/parse/v3-1/response/toResponseV3.js +4 -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/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 +1 -2
- package/esm/types/Manifest.d.ts.map +1 -1
- package/esm/types/Manifest.js +1 -2
- 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 +8 -0
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +1 -0
- package/esm/types/SkmtcDocument.d.ts +1 -1
- package/esm/types/SupportedSubjects.d.ts +1 -1
- package/package.json +1 -1
- package/script/anchors/buildSidecar.js +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 +135 -70
- 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.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.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/{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/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.js +2 -2
- package/script/helpers/isImported.js +1 -1
- package/script/helpers/toResolvedArtifactPath.js +1 -1
- package/script/mod.d.ts +7 -1
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +7 -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/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 +117 -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/components/toComponentsV3.d.ts.map +1 -1
- package/script/parse/v3-0/components/toComponentsV3.js +3 -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/response/toResponseV3.d.ts.map +1 -1
- package/script/parse/v3-0/response/toResponseV3.js +4 -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-1/components/toComponentsV3.d.ts.map +1 -1
- package/script/parse/v3-1/components/toComponentsV3.js +3 -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/response/toResponseV3.d.ts.map +1 -1
- package/script/parse/v3-1/response/toResponseV3.js +4 -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/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 +1 -2
- package/script/types/Manifest.d.ts.map +1 -1
- package/script/types/Manifest.js +0 -1
- 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 +8 -0
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +1 -0
- 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
package/esm/dsl/Lang.d.ts
CHANGED
|
@@ -10,13 +10,9 @@ import type { SnippetBase, SnippetBaseArgs } from './SnippetBase.js';
|
|
|
10
10
|
* Arguments for {@link Lang.toDefinition} — everything the language needs
|
|
11
11
|
* to wrap a generated `value` in its own `Definition` subclass.
|
|
12
12
|
*
|
|
13
|
-
* `identifier`
|
|
14
|
-
* identifiers as the base and passes that to the factory
|
|
15
|
-
* its own
|
|
16
|
-
* `Lang` (e.g. `KtLang`) satisfy the bare `Lang` constraint — `identifier`
|
|
17
|
-
* is a contravariant parameter, so a narrower type here would break the
|
|
18
|
-
* subtype relation. The typed identifier surfaces only on `toIdentifier`'s
|
|
19
|
-
* RETURN (a covariant position).
|
|
13
|
+
* `identifier` is the neutral {@link IdentifierBase}: the engine holds
|
|
14
|
+
* identifiers as the base and passes that to the factory, which narrows to
|
|
15
|
+
* its own concrete subclass via `instanceof`.
|
|
20
16
|
*/
|
|
21
17
|
export type LangToDefinitionArgs<V extends GeneratedValue = GeneratedValue> = {
|
|
22
18
|
context: GenerateContextType;
|
|
@@ -40,12 +36,12 @@ export type LangToImportArgs = {
|
|
|
40
36
|
* seam. `name` comes from the projection's pure `toIdentifierName`; the
|
|
41
37
|
* remaining fields come from the context-aware `toIdentifierType`
|
|
42
38
|
* (spread in). The language builds its concrete `IdentifierBase` subclass
|
|
43
|
-
* (`TsIdentifier` / `KtIdentifier`), reading the opaque `
|
|
44
|
-
* typed `
|
|
39
|
+
* (`TsIdentifier` / `KtIdentifier`), reading the opaque `type` into its
|
|
40
|
+
* typed `EntityType` slot.
|
|
45
41
|
*/
|
|
46
42
|
export type LangToIdentifierArgs = {
|
|
47
43
|
name: string;
|
|
48
|
-
|
|
44
|
+
type: string;
|
|
49
45
|
typeName?: string;
|
|
50
46
|
exported?: boolean;
|
|
51
47
|
};
|
|
@@ -72,7 +68,7 @@ export type LangToIdentifierArgs = {
|
|
|
72
68
|
* vocabulary is intra-lang-package (each language's register function
|
|
73
69
|
* converts its own form), so the neutral interface never names one.
|
|
74
70
|
*/
|
|
75
|
-
export type Lang
|
|
71
|
+
export type Lang = {
|
|
76
72
|
/** Construct the language's file for `path`. */
|
|
77
73
|
createFile: (args: {
|
|
78
74
|
path: string;
|
|
@@ -84,28 +80,14 @@ export type Lang<IdentifierT extends IdentifierBase = IdentifierBase> = {
|
|
|
84
80
|
toImport: (args: LangToImportArgs) => ImportBase;
|
|
85
81
|
/**
|
|
86
82
|
* Assemble this language's `IdentifierBase` subclass from name +
|
|
87
|
-
*
|
|
88
|
-
* engine never narrows it
|
|
89
|
-
* `
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
* recover the vocabulary to tighten the projection config while a typed
|
|
93
|
-
* `Lang` still satisfies the bare `Lang` constraint.
|
|
83
|
+
* type/typeName/exported. `type` arrives as the opaque-boundary `string` — the
|
|
84
|
+
* engine never narrows it; the language reads it into its own typed
|
|
85
|
+
* `EntityType` slot. The engine holds the result as the neutral
|
|
86
|
+
* `IdentifierBase`; the declaration-type vocabulary is a fixed fact of each
|
|
87
|
+
* language package, never modelled or recovered here.
|
|
94
88
|
*/
|
|
95
|
-
toIdentifier: (args: LangToIdentifierArgs) =>
|
|
89
|
+
toIdentifier: (args: LangToIdentifierArgs) => IdentifierBase;
|
|
96
90
|
};
|
|
97
|
-
/**
|
|
98
|
-
* The language's declaration-kind vocabulary, recovered from the typed
|
|
99
|
-
* `kind` on the {@link IdentifierBase} subclass a `Lang` produces.
|
|
100
|
-
*
|
|
101
|
-
* `KtIdentifier` carries `kind: KtEntityKind`, `TsIdentifier` carries
|
|
102
|
-
* `kind: TsEntityKind`, … The neutral `IdentifierBase` has no `kind`, so a
|
|
103
|
-
* bare `Lang` falls back to the loose `string` — the opaque-kind boundary
|
|
104
|
-
* the engine speaks.
|
|
105
|
-
*/
|
|
106
|
-
export type LangKind<L extends Lang> = ReturnType<L['toIdentifier']> extends {
|
|
107
|
-
kind: infer Kind extends string;
|
|
108
|
-
} ? Kind : string;
|
|
109
91
|
/**
|
|
110
92
|
* The constructor contract a language's snippet base class must satisfy to
|
|
111
93
|
* be used as the `base` of a projection-base factory
|
|
@@ -124,13 +106,11 @@ export type LangKind<L extends Lang> = ReturnType<L['toIdentifier']> extends {
|
|
|
124
106
|
* generic over the base's *instance* type cannot type-safely extend it
|
|
125
107
|
* (TS2415/TS2545 — see the scratch in `notes/lang/14`), and the price would
|
|
126
108
|
* be that language-specific instance members are type-erased on projection
|
|
127
|
-
* classes.
|
|
128
|
-
*
|
|
129
|
-
*
|
|
130
|
-
* not reawaken TS2415; the `extends config.base` in the factories stays well
|
|
131
|
-
* typed because the instance side is unchanged.
|
|
109
|
+
* classes. The static `lang` is the neutral {@link Lang} — the engine reads
|
|
110
|
+
* it language-blind; each lang package's concrete declaration-type vocabulary
|
|
111
|
+
* is a fixed fact of that package, never recovered through this type.
|
|
132
112
|
*/
|
|
133
|
-
export type LangSnippetConstructor
|
|
134
|
-
lang:
|
|
113
|
+
export type LangSnippetConstructor = (new (args: SnippetBaseArgs) => SnippetBase) & {
|
|
114
|
+
lang: Lang;
|
|
135
115
|
};
|
|
136
116
|
//# sourceMappingURL=Lang.d.ts.map
|
package/esm/dsl/Lang.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lang.d.ts","sourceRoot":"","sources":["../../src/dsl/Lang.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAA;AACtE,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAEpE
|
|
1
|
+
{"version":3,"file":"Lang.d.ts","sourceRoot":"","sources":["../../src/dsl/Lang.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAC7C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AACzD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAq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H,YAAY,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,cAAc,CAAA;CAC7D,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,KACpC,IAAI,EAAE,eAAe,KAClB,WAAW,CAAC,GAAG;IAAE,IAAI,EAAE,IAAI,CAAA;CAAE,CAAA"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { FileBase } from './FileBase.js';
|
|
2
|
+
import type { Stringable } from './Stringable.js';
|
|
3
|
+
/**
|
|
4
|
+
* Constructor arguments for {@link MarkdownFile}.
|
|
5
|
+
*/
|
|
6
|
+
type MarkdownFileArgs = {
|
|
7
|
+
/** The file path for the generated Markdown file */
|
|
8
|
+
path: string;
|
|
9
|
+
/** The Markdown content to write to the file */
|
|
10
|
+
content: Stringable;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Represents a Markdown file in the SKMTC DSL system.
|
|
14
|
+
*
|
|
15
|
+
* The Markdown counterpart of {@link import('@/dsl/JsonFile.ts').JsonFile}: a
|
|
16
|
+
* degenerate, non-code file that extends {@link FileBase} directly — it holds
|
|
17
|
+
* no definitions, imports or re-exports, because Markdown has no grammar to
|
|
18
|
+
* coordinate. Its `content` is any {@link Stringable} (a string or a composed
|
|
19
|
+
* snippet tree) and `toString()` renders it verbatim. Written through
|
|
20
|
+
* `GenerateContext.registerMarkdown`.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* ```typescript
|
|
24
|
+
* import { MarkdownFile } from '@skmtc/core';
|
|
25
|
+
*
|
|
26
|
+
* const doc = new MarkdownFile({
|
|
27
|
+
* path: '@/docs/GetPet.generated.md',
|
|
28
|
+
* content: '# Get pet'
|
|
29
|
+
* });
|
|
30
|
+
*
|
|
31
|
+
* console.log(doc.toString()); // '# Get pet'
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare class MarkdownFile extends FileBase {
|
|
35
|
+
/** The file type, always 'markdown' for Markdown files */
|
|
36
|
+
fileType: 'markdown';
|
|
37
|
+
/** The Markdown content to write to the file */
|
|
38
|
+
content: Stringable;
|
|
39
|
+
/**
|
|
40
|
+
* Creates a new MarkdownFile instance.
|
|
41
|
+
*
|
|
42
|
+
* @param args - Markdown file configuration
|
|
43
|
+
* @param args.path - The output path for this Markdown file
|
|
44
|
+
* @param args.content - The Markdown content to write
|
|
45
|
+
*/
|
|
46
|
+
constructor({ path, content }: MarkdownFileArgs);
|
|
47
|
+
/**
|
|
48
|
+
* Renders the Markdown content to a string.
|
|
49
|
+
*
|
|
50
|
+
* @returns The Markdown content as a string
|
|
51
|
+
*/
|
|
52
|
+
toString(): string;
|
|
53
|
+
}
|
|
54
|
+
export {};
|
|
55
|
+
//# sourceMappingURL=MarkdownFile.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkdownFile.d.ts","sourceRoot":"","sources":["../../src/dsl/MarkdownFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AACxC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD;;GAEG;AACH,KAAK,gBAAgB,GAAG;IACtB,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAA;IACZ,gDAAgD;IAChD,OAAO,EAAE,UAAU,CAAA;CACpB,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,YAAa,SAAQ,QAAQ;IACxC,0DAA0D;IAC1D,QAAQ,EAAE,UAAU,CAAa;IAEjC,gDAAgD;IAChD,OAAO,EAAE,UAAU,CAAA;IAEnB;;;;;;OAMG;gBACS,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,gBAAgB;IAK/C;;;;OAIG;IACM,QAAQ,IAAI,MAAM;CAG5B"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { FileBase } from './FileBase.js';
|
|
2
|
+
/**
|
|
3
|
+
* Represents a Markdown file in the SKMTC DSL system.
|
|
4
|
+
*
|
|
5
|
+
* The Markdown counterpart of {@link import('@/dsl/JsonFile.ts').JsonFile}: a
|
|
6
|
+
* degenerate, non-code file that extends {@link FileBase} directly — it holds
|
|
7
|
+
* no definitions, imports or re-exports, because Markdown has no grammar to
|
|
8
|
+
* coordinate. Its `content` is any {@link Stringable} (a string or a composed
|
|
9
|
+
* snippet tree) and `toString()` renders it verbatim. Written through
|
|
10
|
+
* `GenerateContext.registerMarkdown`.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import { MarkdownFile } from '@skmtc/core';
|
|
15
|
+
*
|
|
16
|
+
* const doc = new MarkdownFile({
|
|
17
|
+
* path: '@/docs/GetPet.generated.md',
|
|
18
|
+
* content: '# Get pet'
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
* console.log(doc.toString()); // '# Get pet'
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
export class MarkdownFile extends FileBase {
|
|
25
|
+
/**
|
|
26
|
+
* Creates a new MarkdownFile instance.
|
|
27
|
+
*
|
|
28
|
+
* @param args - Markdown file configuration
|
|
29
|
+
* @param args.path - The output path for this Markdown file
|
|
30
|
+
* @param args.content - The Markdown content to write
|
|
31
|
+
*/
|
|
32
|
+
constructor({ path, content }) {
|
|
33
|
+
super({ path });
|
|
34
|
+
/** The file type, always 'markdown' for Markdown files */
|
|
35
|
+
Object.defineProperty(this, "fileType", {
|
|
36
|
+
enumerable: true,
|
|
37
|
+
configurable: true,
|
|
38
|
+
writable: true,
|
|
39
|
+
value: 'markdown'
|
|
40
|
+
});
|
|
41
|
+
/** The Markdown content to write to the file */
|
|
42
|
+
Object.defineProperty(this, "content", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
configurable: true,
|
|
45
|
+
writable: true,
|
|
46
|
+
value: void 0
|
|
47
|
+
});
|
|
48
|
+
this.content = content;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Renders the Markdown content to a string.
|
|
52
|
+
*
|
|
53
|
+
* @returns The Markdown content as a string
|
|
54
|
+
*/
|
|
55
|
+
toString() {
|
|
56
|
+
return this.content.toString();
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -16,8 +16,10 @@ type CreateModelArgs<V extends GeneratedValue, EnrichmentType> = {
|
|
|
16
16
|
* peer's enrichment for this variant, asserts the variant exists
|
|
17
17
|
* (or is the default `'main'` which is always permitted), and
|
|
18
18
|
* threads it into the projection's `ContentSettings`.
|
|
19
|
+
* Optional — omitting it means `'main'`, so variants-unaware
|
|
20
|
+
* callers keep working unchanged.
|
|
19
21
|
*/
|
|
20
|
-
variant
|
|
22
|
+
variant?: string;
|
|
21
23
|
};
|
|
22
24
|
/**
|
|
23
25
|
* Driver for the model insertion lifecycle.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModelDriver.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/ModelDriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AACjD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAI5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC/D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AAMrD,KAAK,eAAe,CAAC,CAAC,SAAS,cAAc,EAAE,cAAc,IAAI;IAC/D,OAAO,EAAE,mBAAmB,CAAA;IAC5B,UAAU,EAAE,eAAe,CAAC,CAAC,EAAE,cAAc,CAAC,CAAA;IAC9C,OAAO,EAAE,OAAO,CAAA;IAChB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,OAAO,CAA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,CAAA;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,MAAM,CAAA;gBAEH,EACV,OAAO,EACP,UAAU,EACV,OAAO,EACP,eAAe,EACf,OAAO,EACP,QAAQ,EACR,OAAyB,EAC1B,EAAE,eAAe,CAAC,CAAC,EAAE,cAAc,CAAC;IA0BrC,OAAO,CAAC,KAAK;IAoBb;;;;;OAKG;IACH,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,aAAa;IAkCrB,OAAO,CAAC,gBAAgB;CAsBzB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { normalize } from '../../deps/jsr.io/@std/path/1.1.
|
|
1
|
+
import { normalize } from '../../deps/jsr.io/@std/path/1.1.6/normalize.js';
|
|
2
2
|
import { toModelGeneratorKey } from '../GeneratorKeys.js';
|
|
3
3
|
import { DEFAULT_VARIANT } from '../../types/Variant.js';
|
|
4
4
|
import get from 'lodash-es/get.js';
|
|
@@ -12,7 +12,7 @@ import get from 'lodash-es/get.js';
|
|
|
12
12
|
* from the projection's `exportPath`.
|
|
13
13
|
*/
|
|
14
14
|
export class ModelDriver {
|
|
15
|
-
constructor({ context, projection, refName, destinationPath, rootRef, noExport, variant }) {
|
|
15
|
+
constructor({ context, projection, refName, destinationPath, rootRef, noExport, variant = DEFAULT_VARIANT }) {
|
|
16
16
|
Object.defineProperty(this, "context", {
|
|
17
17
|
enumerable: true,
|
|
18
18
|
configurable: true,
|
|
@@ -81,7 +81,7 @@ export class ModelDriver {
|
|
|
81
81
|
refName,
|
|
82
82
|
variant
|
|
83
83
|
});
|
|
84
|
-
assertPeerSupported({ context, projection, refName });
|
|
84
|
+
assertPeerSupported({ context, projection, refName, variant });
|
|
85
85
|
this.settings = this.context.toModelContentSettings({ refName, projection, variant });
|
|
86
86
|
this.definition = this.apply({ destinationPath });
|
|
87
87
|
this.context.modelDepth[`${projection.id}:${refName}`] = 0;
|
|
@@ -210,11 +210,9 @@ const assertPeerVariantExists = ({ context, generatorId, refName, variant }) =>
|
|
|
210
210
|
* model: `toModelProjectionBase` defaults it to `() => true`, and a
|
|
211
211
|
* hand-rolled projection may omit it.
|
|
212
212
|
*/
|
|
213
|
-
const assertPeerSupported = ({ context, projection, refName }) => {
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
}
|
|
217
|
-
if (!projection.isSupported({ refName, context })) {
|
|
213
|
+
const assertPeerSupported = ({ context, projection, refName, variant }) => {
|
|
214
|
+
const isSupported = projection.isSupported ?? (() => true);
|
|
215
|
+
if (!isSupported({ refName, context, variant })) {
|
|
218
216
|
throw new Error(`[${projection.id}] Cannot insert '${refName}' — peer generator ` +
|
|
219
217
|
`does not support this model (isSupported returned false).`);
|
|
220
218
|
}
|
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
import type { RefName } from '../../types/RefName.js';
|
|
2
2
|
import type { EnrichmentRequest } from '../../types/EnrichmentRequest.js';
|
|
3
|
-
import type { TransformModelArgs, ToModelPreviewModuleArgs,
|
|
4
|
-
import
|
|
5
|
-
import type
|
|
3
|
+
import type { TransformModelArgs, ToModelPreviewModuleArgs, ToModelEnrichmentsArgs, IsSupportedModelArgs } from './types.js';
|
|
4
|
+
import type { PreviewModule } from '../../types/Preview.js';
|
|
5
|
+
import type * as v from 'valibot';
|
|
6
6
|
type ToModelEntryArgs<EnrichmentType = undefined> = {
|
|
7
7
|
id: string;
|
|
8
8
|
transform: ({ context, refName, variant }: TransformModelArgs) => void;
|
|
9
9
|
toEnrichmentSchema: () => v.GenericSchema<EnrichmentType>;
|
|
10
|
-
isSupported?: (
|
|
10
|
+
isSupported?: (args: IsSupportedModelArgs) => boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Optional: whether this generator entry supports variants. Defaults to a
|
|
13
|
+
* function returning `false` when omitted.
|
|
14
|
+
*/
|
|
15
|
+
supportsVariant?: () => boolean;
|
|
11
16
|
toPreviewModule?: ({ context, refName, variant }: ToModelPreviewModuleArgs) => PreviewModule;
|
|
12
|
-
|
|
17
|
+
toEnrichmentRequest?: <RequestedEnrichment extends EnrichmentType>(refName: RefName) => EnrichmentRequest<RequestedEnrichment> | undefined;
|
|
18
|
+
toEnrichmentDefaults?: ({ refName, context, variant }: ToModelEnrichmentsArgs) => EnrichmentType | undefined;
|
|
19
|
+
};
|
|
20
|
+
export type ModelEntry<EnrichmentType = undefined> = {
|
|
21
|
+
id: string;
|
|
22
|
+
type: 'model';
|
|
23
|
+
transform: ({ context, refName, variant }: TransformModelArgs) => void;
|
|
24
|
+
isSupported: (args: IsSupportedModelArgs) => boolean;
|
|
25
|
+
supportsVariant: () => boolean;
|
|
26
|
+
toPreviewModule?: ({ context, refName, variant }: ToModelPreviewModuleArgs) => PreviewModule;
|
|
27
|
+
toEnrichmentSchema: () => v.GenericSchema<EnrichmentType>;
|
|
13
28
|
toEnrichmentRequest?: <RequestedEnrichment extends EnrichmentType>(refName: RefName) => EnrichmentRequest<RequestedEnrichment> | undefined;
|
|
14
29
|
toEnrichmentDefaults?: ({ refName, context, variant }: ToModelEnrichmentsArgs) => EnrichmentType | undefined;
|
|
15
30
|
};
|
|
@@ -32,7 +47,6 @@ type ToModelEntryArgs<EnrichmentType = undefined> = {
|
|
|
32
47
|
* Resolve the schema inside the predicate when needed
|
|
33
48
|
* (`context.resolveSchemaRefOnce(refName, id)`). Defaults to supporting every model.
|
|
34
49
|
* @param args.toPreviewModule - Optional function to generate preview modules
|
|
35
|
-
* @param args.toMappingModule - Optional function to generate mapping modules
|
|
36
50
|
* @param args.toEnrichmentSchema - Optional function to provide enrichment validation
|
|
37
51
|
* @param args.toEnrichmentRequest - Optional function to request enrichments
|
|
38
52
|
* @returns Model entry object for use in the generation pipeline
|
|
@@ -72,16 +86,6 @@ type ToModelEntryArgs<EnrichmentType = undefined> = {
|
|
|
72
86
|
* });
|
|
73
87
|
* ```
|
|
74
88
|
*/
|
|
75
|
-
export declare const toModelEntry: <EnrichmentType = undefined>({ id, transform, isSupported,
|
|
76
|
-
id: string;
|
|
77
|
-
type: "model";
|
|
78
|
-
transform: ({ context, refName, variant }: TransformModelArgs) => void;
|
|
79
|
-
isSupported: ({ context, refName }: IsSupportedModelArgs) => boolean;
|
|
80
|
-
toPreviewModule?: ({ context, refName, variant }: ToModelPreviewModuleArgs) => PreviewModule;
|
|
81
|
-
toMappingModule?: ({ context, refName, variant }: ToModelMappingArgs) => MappingModule;
|
|
82
|
-
toEnrichmentSchema: () => v.GenericSchema<EnrichmentType>;
|
|
83
|
-
toEnrichmentRequest?: <RequestedEnrichment extends EnrichmentType>(refName: RefName) => EnrichmentRequest<RequestedEnrichment> | undefined;
|
|
84
|
-
toEnrichmentDefaults?: ({ refName, context, variant }: ToModelEnrichmentsArgs) => EnrichmentType | undefined;
|
|
85
|
-
};
|
|
89
|
+
export declare const toModelEntry: <EnrichmentType = undefined>({ id, transform, isSupported, supportsVariant, toPreviewModule, toEnrichmentSchema, toEnrichmentRequest, toEnrichmentDefaults }: ToModelEntryArgs<EnrichmentType>) => ModelEntry<EnrichmentType>;
|
|
86
90
|
export {};
|
|
87
91
|
//# sourceMappingURL=toModelEntry.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toModelEntry.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelEntry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACzE,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,
|
|
1
|
+
{"version":3,"file":"toModelEntry.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelEntry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAA;AACzE,OAAO,KAAK,EACV,kBAAkB,EAClB,wBAAwB,EAExB,sBAAs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O,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,wBAAwB,KAAK,aAAa,CAAA;IAC5F,kBAAkB,EAAE,MAAM,CAAC,CAAC,aAAa,CAAC,cAAc,CAAC,CAAA;IACzD,mBAAmB,CAAC,EAAE,CAAC,mBAAmB,SAAS,cAAc,EAC/D,OAAO,EAAE,OAAO,KACb,iBAAiB,CAAC,mBAAmB,CAAC,GAAG,SAAS,CAAA;IACvD,oBAAoB,CAAC,EAAE,CAAC,EACtB,OAAO,EACP,OAAO,EACP,OAAO,EACR,EAAE,sBAAsB,KAAK,cAAc,GAAG,SAAS,CAAA;CACzD,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyDG;AACH,eAAO,MAAM,YAAY,GAAI,cAAc,GAAG,SAAS,EAAE,iIAStD,gBAAgB,CAAC,cAAc,CAAC,KAAG,UAAU,CAAC,cAAc,CAY9D,CAAA"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import * as v from 'valibot';
|
|
2
|
-
import { GENERATOR_ENRICHMENT_KEY, STACK_ENRICHMENT_KEY } from '../../types/Enrichments.js';
|
|
3
|
-
import get from 'lodash-es/get.js';
|
|
4
1
|
/**
|
|
5
2
|
* Creates a model transformation entry for the SKMTC pipeline.
|
|
6
3
|
*
|
|
@@ -20,7 +17,6 @@ import get from 'lodash-es/get.js';
|
|
|
20
17
|
* Resolve the schema inside the predicate when needed
|
|
21
18
|
* (`context.resolveSchemaRefOnce(refName, id)`). Defaults to supporting every model.
|
|
22
19
|
* @param args.toPreviewModule - Optional function to generate preview modules
|
|
23
|
-
* @param args.toMappingModule - Optional function to generate mapping modules
|
|
24
20
|
* @param args.toEnrichmentSchema - Optional function to provide enrichment validation
|
|
25
21
|
* @param args.toEnrichmentRequest - Optional function to request enrichments
|
|
26
22
|
* @returns Model entry object for use in the generation pipeline
|
|
@@ -60,34 +56,14 @@ import get from 'lodash-es/get.js';
|
|
|
60
56
|
* });
|
|
61
57
|
* ```
|
|
62
58
|
*/
|
|
63
|
-
export const toModelEntry = ({ id, transform, isSupported,
|
|
59
|
+
export const toModelEntry = ({ id, transform, isSupported, supportsVariant, toPreviewModule, toEnrichmentSchema, toEnrichmentRequest, toEnrichmentDefaults }) => {
|
|
64
60
|
return {
|
|
65
61
|
id,
|
|
66
62
|
type: 'model',
|
|
67
63
|
transform,
|
|
68
|
-
isSupported:
|
|
69
|
-
|
|
70
|
-
return true;
|
|
71
|
-
}
|
|
72
|
-
// Assemble the three-scope umbrella — mirrors
|
|
73
|
-
// `ModelProjectionBase.toEnrichments` so the shim and the
|
|
74
|
-
// projection-base resolve to the same value. Subject is per-item
|
|
75
|
-
// (`[id][refName][variant]`); generator and stack are run-constants.
|
|
76
|
-
// The required composite schema parses cast-free.
|
|
77
|
-
const raw = {
|
|
78
|
-
subject: get(context.settings, ['enrichments', id, refName, variant]),
|
|
79
|
-
generator: get(context.settings, ['enrichments', id, GENERATOR_ENRICHMENT_KEY]),
|
|
80
|
-
stack: get(context.settings, ['enrichments', STACK_ENRICHMENT_KEY])
|
|
81
|
-
};
|
|
82
|
-
return isSupported({
|
|
83
|
-
context,
|
|
84
|
-
refName,
|
|
85
|
-
enrichments: v.parse(toEnrichmentSchema(), raw),
|
|
86
|
-
variant
|
|
87
|
-
});
|
|
88
|
-
},
|
|
64
|
+
isSupported: isSupported ?? (() => true),
|
|
65
|
+
supportsVariant: supportsVariant ?? (() => false),
|
|
89
66
|
toPreviewModule,
|
|
90
|
-
toMappingModule,
|
|
91
67
|
toEnrichmentSchema,
|
|
92
68
|
toEnrichmentRequest,
|
|
93
69
|
toEnrichmentDefaults
|
|
@@ -2,7 +2,7 @@ import type { GenerateContextType } from '../../context/generateTypes.js';
|
|
|
2
2
|
import type { InsertModelOptions, InsertNormalizedModelArgs, InsertNormalizedModelReturn } from '../../context/generateTypes.js';
|
|
3
3
|
import type { RefName } from '../../types/RefName.js';
|
|
4
4
|
import type { ContentSettings } from '../ContentSettings.js';
|
|
5
|
-
import type {
|
|
5
|
+
import type { LangSnippetConstructor } from '../Lang.js';
|
|
6
6
|
import type { IdentifierType } from '../IdentifierType.js';
|
|
7
7
|
import type { GeneratedValue } from '../GeneratedValue.js';
|
|
8
8
|
import type { Inserted } from '../Inserted.js';
|
|
@@ -31,24 +31,24 @@ type ToEnrichmentsArgs = {
|
|
|
31
31
|
/**
|
|
32
32
|
* Configuration for {@link toModelProjectionBase}.
|
|
33
33
|
*
|
|
34
|
-
* Generic over the
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
34
|
+
* Generic over the identifier-type shape `IdType`: a language veneer
|
|
35
|
+
* parameterizes this config with its own `XxIdentifierType`
|
|
36
|
+
* (`ModelProjectionBaseConfig<E, KtIdentifierType>`) so `toIdentifierType`'s
|
|
37
|
+
* return tightens to that language's `type` vocabulary — no recast. The
|
|
38
|
+
* default keeps the loose `type: string` boundary.
|
|
38
39
|
*/
|
|
39
|
-
export type ModelProjectionBaseConfig<EnrichmentType = undefined,
|
|
40
|
+
export type ModelProjectionBaseConfig<EnrichmentType = undefined, IdType extends IdentifierType = IdentifierType> = {
|
|
40
41
|
id: string;
|
|
41
42
|
/** Pure: the cache-key name (the cache-check path runs this). */
|
|
42
43
|
toIdentifierName: (args: ToModelIdentifierNameArgs<EnrichmentType>) => string;
|
|
43
44
|
/**
|
|
44
45
|
* Context-aware, overridable: the non-`name` parts of the identifier
|
|
45
|
-
* (`
|
|
46
|
-
* on cache-miss. Returns
|
|
47
|
-
* is bound to
|
|
48
|
-
* `
|
|
49
|
-
* veneer recast.
|
|
46
|
+
* (`type` / `typeName` / `exported`), derived from the schema. Runs only
|
|
47
|
+
* on cache-miss. Returns `IdType` — the veneer's `XxIdentifierType`, whose
|
|
48
|
+
* `type` is bound to that language's `EntityType` vocabulary (the loose
|
|
49
|
+
* `string` by default). The tightening rides the type argument.
|
|
50
50
|
*/
|
|
51
|
-
toIdentifierType: (refName: RefName, context: GenerateContextType) =>
|
|
51
|
+
toIdentifierType: (refName: RefName, context: GenerateContextType) => IdType;
|
|
52
52
|
toExportPath: (args: ToModelExportPathArgs<EnrichmentType>) => string;
|
|
53
53
|
/**
|
|
54
54
|
* Required composite schema for the `{ subject, generator, stack }`
|
|
@@ -96,7 +96,7 @@ export type ModelProjectionBaseConfig<EnrichmentType = undefined, L extends Lang
|
|
|
96
96
|
* The projection machinery previously hosted on `ModelProjectionBase` lives
|
|
97
97
|
* here now, because the base class is no longer statically known.
|
|
98
98
|
*/
|
|
99
|
-
export declare const toModelProjectionBase: <EnrichmentType = undefined,
|
|
99
|
+
export declare const toModelProjectionBase: <EnrichmentType = undefined, IdType extends IdentifierType = IdentifierType>(base: LangSnippetConstructor, config: ModelProjectionBaseConfig<EnrichmentType, IdType>) => {
|
|
100
100
|
new (args: ModelProjectionArgs<EnrichmentType>): {
|
|
101
101
|
settings: ContentSettings<EnrichmentType>;
|
|
102
102
|
refName: RefName;
|
|
@@ -119,7 +119,7 @@ export declare const toModelProjectionBase: <EnrichmentType = undefined, L exten
|
|
|
119
119
|
id: string;
|
|
120
120
|
type: "model";
|
|
121
121
|
toIdentifierName: (args: ToModelIdentifierNameArgs<EnrichmentType>) => string;
|
|
122
|
-
toIdentifierType: (refName: RefName, context: GenerateContextType) =>
|
|
122
|
+
toIdentifierType: (refName: RefName, context: GenerateContextType) => IdType;
|
|
123
123
|
toExportPath: (args: ToModelExportPathArgs<EnrichmentType>) => string;
|
|
124
124
|
toEnrichments: ({ refName, context, variant }: ToEnrichmentsArgs) => EnrichmentType;
|
|
125
125
|
/**
|
|
@@ -132,7 +132,7 @@ export declare const toModelProjectionBase: <EnrichmentType = undefined, L exten
|
|
|
132
132
|
refName: RefName;
|
|
133
133
|
context: GenerateContextType;
|
|
134
134
|
}) => boolean;
|
|
135
|
-
lang:
|
|
135
|
+
lang: import("../Lang.js").Lang;
|
|
136
136
|
};
|
|
137
137
|
export {};
|
|
138
138
|
//# sourceMappingURL=toModelProjectionBase.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toModelProjectionBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelProjectionBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,KAAK,EACV,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,gCAAgC,CAAA;AAEvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"toModelProjectionBase.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/toModelProjectionBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,KAAK,EACV,kBAAkB,EAClB,yBAAyB,EACzB,2BAA2B,EAC5B,MAAM,gCAAgC,CAAA;AAEvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAC9C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AAC3D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EACV,eAAe,EACf,yBAAyB,E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,eAAO,MAAM,qBAAqB,GAChC,cAAc,GAAG,SAAS,EAC1B,MAAM,SAAS,cAAc,GAAG,cAAc,EAE9C,MAAM,sBAAsB,EAC5B,QAAQ,yBAAyB,CAAC,cAAc,EAAE,MAAM,CAAC;eAsCrC,mBAAmB,CAAC,cAAc,CAAC;kBAH3C,eAAe,CAAC,cAAc,CAAC;iBAChC,OAAO;QAgBhB;;;;WAIG;oBACS,CAAC,SAAS,cAAc,EAAE,kBAAkB,0BAC1C,eAAe,CAAC,CAAC,EAAE,kBAAkB,CAAC,WACzC,OAAO,YACP,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,SAAS,CAAC,GACxD,QAAQ,CAAC,CAAC,EAAE,kBAAkB,CAAC;QAQlC;;;WAGG;8BAED,CAAC,SAAS,cAAc,EACxB,MAAM,SAAS,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,GAAG,OAAO,gDAGzC,eAAe,CAAC,CAAC,EAAE,oBAAkB,CAAC,4BACxB,IAAI,CAAC,yBAAyB,CAAC,MAAM,CAAC,EAAE,iBAAiB,CAAC,YAC3E,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,SAAS,CAAC,GACxD,2BAA2B,CAAC,CAAC,EAAE,MAAM,CAAC;;;;;;;UA7E3B,OAAO;2EA/DgD,MAAM;gCAQjD,OAAO,WAAW,mBAAmB;mEACF,MAAM;oBA2D3C,+BAA+B,iBAAiB,KAAG,cAAc;IAgBzF;;;;OAIG;2BAC4B,MAAM,iBAAiB,KAAG,cAAc,GAAG,SAAS;wBAzDhE;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,mBAAmB,CAAA;KAAE,KAAK,OAAO;;CA2HpF,CAAA"}
|
package/esm/dsl/model/types.d.ts
CHANGED
|
@@ -5,9 +5,6 @@ import type { RefName } from '../../types/RefName.js';
|
|
|
5
5
|
import type { IdentifierType } from '../IdentifierType.js';
|
|
6
6
|
import type { IdentifierBase } from '../IdentifierBase.js';
|
|
7
7
|
import type { GeneratedValue } from '../GeneratedValue.js';
|
|
8
|
-
import type { EnrichmentRequest } from '../../types/EnrichmentRequest.js';
|
|
9
|
-
import type * as v from 'valibot';
|
|
10
|
-
import type { MappingModule, PreviewModule } from '../../types/Preview.js';
|
|
11
8
|
import type { SchemaToValueFn } from '../../types/TypeSystem.js';
|
|
12
9
|
/**
|
|
13
10
|
* External constructor signature for a model projection class.
|
|
@@ -51,19 +48,6 @@ export type TransformModelArgs = {
|
|
|
51
48
|
* resolves the schema itself (`context.resolveSchemaRefOnce(refName, id)`)
|
|
52
49
|
* when it needs it, mirroring how `transform` works.
|
|
53
50
|
*/
|
|
54
|
-
export type IsSupportedModelConfigArgs<EnrichmentType = undefined> = {
|
|
55
|
-
context: GenerateContextType;
|
|
56
|
-
refName: RefName;
|
|
57
|
-
enrichments: EnrichmentType;
|
|
58
|
-
/** Model variant being probed (see {@link Variant}) */
|
|
59
|
-
variant: string;
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Arguments the engine passes to the wrapped `isSupported` on a built
|
|
63
|
-
* {@link ModelConfig} — the enrichment-free outer shape (the
|
|
64
|
-
* {@link toModelEntry} wrapper assembles the umbrella before calling the
|
|
65
|
-
* user's predicate).
|
|
66
|
-
*/
|
|
67
51
|
export type IsSupportedModelArgs = {
|
|
68
52
|
context: GenerateContextType;
|
|
69
53
|
refName: RefName;
|
|
@@ -123,7 +107,7 @@ export type ModelProjection<V extends GeneratedValue, EnrichmentType = undefined
|
|
|
123
107
|
toIdentifierName: (args: ToModelIdentifierNameArgs<EnrichmentType>) => string;
|
|
124
108
|
/**
|
|
125
109
|
* Context-aware, overridable: the non-`name` parts of the identifier
|
|
126
|
-
* (`
|
|
110
|
+
* (`type` / `typeName` / `exported`), derived from the schema. The engine
|
|
127
111
|
* assembles `lang.toIdentifier({ name: toIdentifierName(args),
|
|
128
112
|
* ...toIdentifierType(refName, context) })`.
|
|
129
113
|
*/
|
|
@@ -137,10 +121,7 @@ export type ModelProjection<V extends GeneratedValue, EnrichmentType = undefined
|
|
|
137
121
|
* unsupported. Optional: a hand-rolled projection may omit it, in which
|
|
138
122
|
* case it is treated as supporting every model.
|
|
139
123
|
*/
|
|
140
|
-
isSupported?: (args:
|
|
141
|
-
refName: RefName;
|
|
142
|
-
context: GenerateContextType;
|
|
143
|
-
}) => boolean;
|
|
124
|
+
isSupported?: (args: IsSupportedModelArgs) => boolean;
|
|
144
125
|
schemaToValueFn: SchemaToValueFn;
|
|
145
126
|
/**
|
|
146
127
|
* The inline-schema fallback seam used by `insertNormalizedModel` when a
|
|
@@ -150,35 +131,4 @@ export type ModelProjection<V extends GeneratedValue, EnrichmentType = undefined
|
|
|
150
131
|
*/
|
|
151
132
|
createIdentifier: (name: string) => IdentifierBase;
|
|
152
133
|
} & Function;
|
|
153
|
-
/**
|
|
154
|
-
* Pipeline-side configuration for a model projection (built by
|
|
155
|
-
* `toModelEntry`). Carries the iteration callback (`transform`) and
|
|
156
|
-
* optional preview/mapping/enrichment hooks.
|
|
157
|
-
*/
|
|
158
|
-
export type ModelConfig<EnrichmentType = undefined> = {
|
|
159
|
-
id: string;
|
|
160
|
-
type: 'model';
|
|
161
|
-
transform: ({ context, refName, variant }: TransformModelArgs) => void;
|
|
162
|
-
/**
|
|
163
|
-
* Optional capability gate, evaluated by the engine before `include` /
|
|
164
|
-
* `skip`. A model whose predicate returns `false` is recorded `notSupported`
|
|
165
|
-
* and its `transform` is skipped. Absent → treated as `() => true` (every
|
|
166
|
-
* model supported). {@link toModelEntry} still defaults it for built configs,
|
|
167
|
-
* but a hand-constructed config may omit it.
|
|
168
|
-
*/
|
|
169
|
-
isSupported?: ({ context, refName }: IsSupportedModelArgs) => boolean;
|
|
170
|
-
toPreviewModule?: ({ context, refName, variant }: ToModelPreviewModuleArgs) => PreviewModule;
|
|
171
|
-
toMappingModule?: ({ context, refName, variant }: ToModelMappingArgs) => MappingModule;
|
|
172
|
-
toEnrichmentSchema: () => v.GenericSchema<EnrichmentType>;
|
|
173
|
-
toEnrichmentRequest?: <RequestedEnrichment extends EnrichmentType>(refName: RefName) => EnrichmentRequest<RequestedEnrichment> | undefined;
|
|
174
|
-
/**
|
|
175
|
-
* Optional: compute the DEFAULT enrichment values for a model from its schema
|
|
176
|
-
* — the seed the CMS persists and the user then edits. The pipeline
|
|
177
|
-
* counterpart of the projection base's static of the same name; a generator
|
|
178
|
-
* forwards `MyProjection.toEnrichmentDefaults` here so the seeding pass can
|
|
179
|
-
* reach it via the generator-config map. Returns the `{ subject, generator,
|
|
180
|
-
* stack }` umbrella, or `undefined` when no defaults are advertised.
|
|
181
|
-
*/
|
|
182
|
-
toEnrichmentDefaults?: ({ refName, context, variant }: ToModelEnrichmentsArgs) => EnrichmentType | undefined;
|
|
183
|
-
};
|
|
184
134
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,YAAY,CAAA;AACtC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/dsl/model/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AACzE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,Y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EAAE,qBAAqB,CAAC,cAAc,CAAC,KAAK,MAAM,CAAA;IACrE,aAAa,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,sBAAsB,KAAK,cAAc,CAAA;IACxF;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,oBAAoB,KAAK,OAAO,CAAA;IACrD,eAAe,EAAE,eAAe,CAAA;IAChC;;;;;OAKG;IACH,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,cAAc,CAAA;CAEnD,GAAG,QAAQ,CAAA"}
|
|
@@ -15,8 +15,10 @@ type CreateGqlOperationArgs<V extends GeneratedValue, EnrichmentType = undefined
|
|
|
15
15
|
* peer's enrichment for this variant, asserts the variant exists
|
|
16
16
|
* (or is the default `'main'` which is always permitted), and
|
|
17
17
|
* threads it into the projection's `ContentSettings`.
|
|
18
|
+
* Optional — omitting it means `'main'`, so variants-unaware
|
|
19
|
+
* callers keep working unchanged.
|
|
18
20
|
*/
|
|
19
|
-
variant
|
|
21
|
+
variant?: string;
|
|
20
22
|
};
|
|
21
23
|
/**
|
|
22
24
|
* Driver for the GraphQL operation insertion lifecycle.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GqlOperationDriver.d.ts","sourceRoot":"","sources":["../../../../src/dsl/operation/gql/GqlOperationDriver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAA;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAA;AAI/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAA;AAC7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mCAAmC,CAAA;AAM5E,KAAK,s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