@skmtc/core 0.39.0 → 0.41.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/esm/context/CoreContext.js +22 -8
- package/esm/context/GenerateContext.d.ts +6 -5
- package/esm/context/GenerateContext.js +112 -38
- package/esm/context/ParseContext.d.ts +18 -1
- package/esm/context/ParseContext.js +102 -3
- package/esm/context/generateTypes.d.ts +33 -4
- package/esm/context/generateTypes.js +4 -0
- package/esm/context/toGenerationFailure.d.ts +21 -0
- package/esm/context/toGenerationFailure.js +38 -0
- package/esm/context/tryParseAt.d.ts +4 -1
- package/esm/context/tryParseAt.js +10 -3
- package/esm/dsl/CustomValue.d.ts +4 -0
- package/esm/dsl/CustomValue.js +8 -0
- package/esm/dsl/Definition.d.ts +10 -0
- package/esm/dsl/Definition.js +14 -0
- package/esm/dsl/PendingDefinition.d.ts +47 -0
- package/esm/dsl/PendingDefinition.js +83 -0
- package/esm/dsl/model/ModelDriver.d.ts +55 -1
- package/esm/dsl/model/ModelDriver.js +228 -51
- package/esm/dsl/model/toModelEntry.d.ts +1 -1
- package/esm/dsl/model/toModelEntry.js +1 -1
- package/esm/dsl/model/types.d.ts +1 -1
- package/esm/dsl/operation/gql/GqlOperationDriver.js +1 -4
- package/esm/dsl/webhook/WebhookDriver.js +1 -4
- package/esm/enrichments/parseEnrichmentUmbrella.d.ts +5 -6
- package/esm/enrichments/parseEnrichmentUmbrella.js +23 -8
- package/esm/enrichments/parseEnrichmentValue.d.ts +17 -0
- package/esm/enrichments/parseEnrichmentValue.js +32 -0
- package/esm/enrichments/readEnrichments.d.ts +5 -5
- package/esm/enrichments/readEnrichments.js +17 -7
- package/esm/helpers/collateExamples.js +15 -5
- package/esm/helpers/refFns.d.ts +6 -2
- package/esm/helpers/refFns.js +24 -7
- package/esm/mod.d.ts +2 -0
- package/esm/mod.js +2 -0
- package/esm/oas/array/Array.d.ts +19 -0
- package/esm/oas/array/Array.js +47 -0
- package/esm/oas/boolean/Boolean.d.ts +19 -0
- package/esm/oas/boolean/Boolean.js +51 -8
- package/esm/oas/example/Example.d.ts +4 -0
- package/esm/oas/example/Example.js +8 -0
- package/esm/oas/header/Header.d.ts +4 -0
- package/esm/oas/header/Header.js +8 -0
- package/esm/oas/integer/Integer.d.ts +19 -0
- package/esm/oas/integer/Integer.js +49 -0
- package/esm/oas/link/Link.d.ts +4 -0
- package/esm/oas/link/Link.js +8 -0
- package/esm/oas/number/Number.d.ts +19 -0
- package/esm/oas/number/Number.js +49 -0
- package/esm/oas/object/Object.d.ts +19 -0
- package/esm/oas/object/Object.js +68 -18
- package/esm/oas/operation/Operation.d.ts +8 -1
- package/esm/oas/operation/Operation.js +18 -5
- package/esm/oas/operation/toEffectiveParameters.d.ts +24 -0
- package/esm/oas/operation/toEffectiveParameters.js +42 -0
- package/esm/oas/parameter/Parameter.d.ts +4 -0
- package/esm/oas/parameter/Parameter.js +8 -0
- package/esm/oas/ref/DanglingRefError.d.ts +22 -0
- package/esm/oas/ref/DanglingRefError.js +33 -0
- package/esm/oas/ref/Ref.d.ts +152 -25
- package/esm/oas/ref/Ref.js +414 -26
- package/esm/oas/requestBody/RequestBody.d.ts +4 -0
- package/esm/oas/requestBody/RequestBody.js +8 -0
- package/esm/oas/response/Response.d.ts +4 -0
- package/esm/oas/response/Response.js +8 -0
- package/esm/oas/schema/siblings.d.ts +127 -0
- package/esm/oas/schema/siblings.js +250 -0
- package/esm/oas/securitySchemes/SecurityScheme.d.ts +16 -0
- package/esm/oas/securitySchemes/SecurityScheme.js +32 -0
- package/esm/oas/string/String.d.ts +19 -0
- package/esm/oas/string/String.js +47 -0
- package/esm/oas/union/Union.d.ts +32 -0
- package/esm/oas/union/Union.js +111 -0
- package/esm/oas/unknown/Unknown.d.ts +18 -0
- package/esm/oas/unknown/Unknown.js +38 -0
- package/esm/oas/void/Void.d.ts +4 -0
- package/esm/oas/void/Void.js +8 -0
- package/esm/oas/webhook/Webhook.d.ts +2 -2
- package/esm/oas/webhook/Webhook.js +4 -5
- package/esm/parse/allOfSystem.d.ts +32 -0
- package/esm/parse/allOfSystem.js +30 -0
- package/esm/parse/anyOfSystem.d.ts +68 -0
- package/esm/parse/anyOfSystem.js +107 -0
- package/esm/parse/securityRequirements.d.ts +6 -0
- package/esm/parse/securityRequirements.js +8 -0
- package/esm/parse/toSiblingKeywords.d.ts +28 -0
- package/esm/parse/toSiblingKeywords.js +109 -0
- package/esm/parse/v3-0/_merge-all-of/decompose-union.d.ts +8 -0
- package/esm/parse/v3-0/_merge-all-of/decompose-union.js +9 -1
- package/esm/parse/v3-0/_merge-all-of/generic-merge.d.ts +2 -3
- package/esm/parse/v3-0/_merge-all-of/generic-merge.js +2 -2
- package/esm/parse/v3-0/_merge-all-of/merge-array-constraints.d.ts +2 -2
- package/esm/parse/v3-0/_merge-all-of/merge-array-constraints.js +5 -5
- package/esm/parse/v3-0/_merge-all-of/merge-boolean-constraints.d.ts +2 -2
- package/esm/parse/v3-0/_merge-all-of/merge-boolean-constraints.js +2 -2
- package/esm/parse/v3-0/_merge-all-of/merge-integer-constraints.d.ts +2 -2
- package/esm/parse/v3-0/_merge-all-of/merge-integer-constraints.js +2 -2
- package/esm/parse/v3-0/_merge-all-of/merge-intersection.d.ts +3 -2
- package/esm/parse/v3-0/_merge-all-of/merge-intersection.js +2 -2
- package/esm/parse/v3-0/_merge-all-of/merge-number-constraints.d.ts +2 -2
- package/esm/parse/v3-0/_merge-all-of/merge-number-constraints.js +2 -2
- package/esm/parse/v3-0/_merge-all-of/merge-object-constraints.d.ts +2 -2
- package/esm/parse/v3-0/_merge-all-of/merge-object-constraints.js +3 -3
- package/esm/parse/v3-0/_merge-all-of/merge-properties.d.ts +2 -2
- package/esm/parse/v3-0/_merge-all-of/merge-properties.js +2 -2
- package/esm/parse/v3-0/_merge-all-of/merge-string-constraints.d.ts +2 -2
- package/esm/parse/v3-0/_merge-all-of/merge-string-constraints.js +3 -3
- package/esm/parse/v3-0/_merge-all-of/merge-union.d.ts +10 -3
- package/esm/parse/v3-0/_merge-all-of/merge-union.js +50 -12
- package/esm/parse/v3-0/_merge-all-of/merge.d.ts +2 -2
- package/esm/parse/v3-0/_merge-all-of/merge.js +78 -27
- package/esm/parse/v3-0/_merge-all-of/nullable-merge.d.ts +4 -0
- package/esm/parse/v3-0/_merge-all-of/nullable-merge.js +9 -7
- package/esm/parse/v3-0/_merge-all-of/types.d.ts +33 -0
- package/esm/parse/v3-0/mediaType/toMediaTypeItemV3.js +4 -3
- package/esm/parse/v3-0/parameter/toParameterV3.js +4 -3
- package/esm/parse/v3-0/ref/toRefV31.d.ts +7 -1
- package/esm/parse/v3-0/ref/toRefV31.js +6 -3
- package/esm/parse/v3-0/schema/toSchemasV3.js +107 -15
- package/esm/parse/v3-1/_merge-all-of/decompose-union.d.ts +7 -1
- package/esm/parse/v3-1/_merge-all-of/decompose-union.js +8 -2
- package/esm/parse/v3-1/_merge-all-of/generic-merge.d.ts +2 -3
- package/esm/parse/v3-1/_merge-all-of/generic-merge.js +2 -2
- package/esm/parse/v3-1/_merge-all-of/merge-array-constraints.d.ts +3 -2
- package/esm/parse/v3-1/_merge-all-of/merge-array-constraints.js +5 -5
- package/esm/parse/v3-1/_merge-all-of/merge-boolean-constraints.d.ts +2 -2
- package/esm/parse/v3-1/_merge-all-of/merge-boolean-constraints.js +2 -2
- package/esm/parse/v3-1/_merge-all-of/merge-integer-constraints.d.ts +2 -2
- package/esm/parse/v3-1/_merge-all-of/merge-integer-constraints.js +2 -2
- package/esm/parse/v3-1/_merge-all-of/merge-intersection.d.ts +3 -2
- package/esm/parse/v3-1/_merge-all-of/merge-intersection.js +2 -2
- package/esm/parse/v3-1/_merge-all-of/merge-number-constraints.d.ts +2 -2
- package/esm/parse/v3-1/_merge-all-of/merge-number-constraints.js +2 -2
- package/esm/parse/v3-1/_merge-all-of/merge-object-constraints.d.ts +2 -2
- package/esm/parse/v3-1/_merge-all-of/merge-object-constraints.js +3 -3
- package/esm/parse/v3-1/_merge-all-of/merge-properties.d.ts +2 -2
- package/esm/parse/v3-1/_merge-all-of/merge-properties.js +2 -2
- package/esm/parse/v3-1/_merge-all-of/merge-string-constraints.d.ts +2 -2
- package/esm/parse/v3-1/_merge-all-of/merge-string-constraints.js +3 -3
- package/esm/parse/v3-1/_merge-all-of/merge-union.d.ts +10 -3
- package/esm/parse/v3-1/_merge-all-of/merge-union.js +54 -15
- package/esm/parse/v3-1/_merge-all-of/merge.d.ts +3 -2
- package/esm/parse/v3-1/_merge-all-of/merge.js +88 -29
- package/esm/parse/v3-1/_merge-all-of/nullable-merge.d.ts +4 -0
- package/esm/parse/v3-1/_merge-all-of/nullable-merge.js +9 -7
- package/esm/parse/v3-1/_merge-all-of/types.d.ts +37 -0
- package/esm/parse/v3-1/mediaType/toMediaTypeItemV3.js +4 -3
- package/esm/parse/v3-1/parameter/toParameterV3.js +4 -3
- package/esm/parse/v3-1/ref/toRefV31.d.ts +7 -1
- package/esm/parse/v3-1/ref/toRefV31.js +6 -3
- package/esm/parse/v3-1/schema/toSchemasV3.js +111 -16
- package/esm/parse/v3-2/_merge-all-of/decompose-union.d.ts +7 -1
- package/esm/parse/v3-2/_merge-all-of/decompose-union.js +8 -2
- package/esm/parse/v3-2/_merge-all-of/generic-merge.d.ts +2 -3
- package/esm/parse/v3-2/_merge-all-of/generic-merge.js +2 -2
- package/esm/parse/v3-2/_merge-all-of/merge-array-constraints.d.ts +3 -2
- package/esm/parse/v3-2/_merge-all-of/merge-array-constraints.js +5 -5
- package/esm/parse/v3-2/_merge-all-of/merge-boolean-constraints.d.ts +2 -2
- package/esm/parse/v3-2/_merge-all-of/merge-boolean-constraints.js +2 -2
- package/esm/parse/v3-2/_merge-all-of/merge-integer-constraints.d.ts +2 -2
- package/esm/parse/v3-2/_merge-all-of/merge-integer-constraints.js +2 -2
- package/esm/parse/v3-2/_merge-all-of/merge-intersection.d.ts +3 -2
- package/esm/parse/v3-2/_merge-all-of/merge-intersection.js +2 -2
- package/esm/parse/v3-2/_merge-all-of/merge-number-constraints.d.ts +2 -2
- package/esm/parse/v3-2/_merge-all-of/merge-number-constraints.js +2 -2
- package/esm/parse/v3-2/_merge-all-of/merge-object-constraints.d.ts +2 -2
- package/esm/parse/v3-2/_merge-all-of/merge-object-constraints.js +3 -3
- package/esm/parse/v3-2/_merge-all-of/merge-properties.d.ts +2 -2
- package/esm/parse/v3-2/_merge-all-of/merge-properties.js +2 -2
- package/esm/parse/v3-2/_merge-all-of/merge-string-constraints.d.ts +2 -2
- package/esm/parse/v3-2/_merge-all-of/merge-string-constraints.js +3 -3
- package/esm/parse/v3-2/_merge-all-of/merge-union.d.ts +10 -3
- package/esm/parse/v3-2/_merge-all-of/merge-union.js +54 -15
- package/esm/parse/v3-2/_merge-all-of/merge.d.ts +3 -2
- package/esm/parse/v3-2/_merge-all-of/merge.js +88 -29
- package/esm/parse/v3-2/_merge-all-of/nullable-merge.d.ts +4 -0
- package/esm/parse/v3-2/_merge-all-of/nullable-merge.js +9 -7
- package/esm/parse/v3-2/_merge-all-of/types.d.ts +37 -0
- package/esm/parse/v3-2/mediaType/toMediaTypeItemV3.js +4 -3
- package/esm/parse/v3-2/parameter/toParameterV3.js +4 -3
- package/esm/parse/v3-2/ref/toRefV31.d.ts +7 -1
- package/esm/parse/v3-2/ref/toRefV31.js +6 -3
- package/esm/parse/v3-2/schema/toSchemasV3.js +111 -16
- package/esm/types/OasBase.d.ts +1 -1
- package/esm/types/Settings.d.ts +44 -0
- package/esm/types/Settings.js +9 -0
- package/package.json +5 -1
- package/script/context/CoreContext.js +22 -8
- package/script/context/GenerateContext.d.ts +6 -5
- package/script/context/GenerateContext.js +112 -38
- package/script/context/ParseContext.d.ts +18 -1
- package/script/context/ParseContext.js +102 -3
- package/script/context/generateTypes.d.ts +33 -4
- package/script/context/generateTypes.js +4 -0
- package/script/context/toGenerationFailure.d.ts +21 -0
- package/script/context/toGenerationFailure.js +43 -0
- package/script/context/tryParseAt.d.ts +4 -1
- package/script/context/tryParseAt.js +10 -3
- package/script/dsl/CustomValue.d.ts +4 -0
- package/script/dsl/CustomValue.js +8 -0
- package/script/dsl/Definition.d.ts +10 -0
- package/script/dsl/Definition.js +14 -0
- package/script/dsl/PendingDefinition.d.ts +47 -0
- package/script/dsl/PendingDefinition.js +87 -0
- package/script/dsl/model/ModelDriver.d.ts +55 -1
- package/script/dsl/model/ModelDriver.js +231 -52
- package/script/dsl/model/toModelEntry.d.ts +1 -1
- package/script/dsl/model/toModelEntry.js +1 -1
- package/script/dsl/model/types.d.ts +1 -1
- package/script/dsl/operation/gql/GqlOperationDriver.js +1 -4
- package/script/dsl/webhook/WebhookDriver.js +1 -4
- package/script/enrichments/parseEnrichmentUmbrella.d.ts +5 -6
- package/script/enrichments/parseEnrichmentUmbrella.js +23 -41
- package/script/enrichments/parseEnrichmentValue.d.ts +17 -0
- package/script/enrichments/parseEnrichmentValue.js +69 -0
- package/script/enrichments/readEnrichments.d.ts +5 -5
- package/script/enrichments/readEnrichments.js +17 -40
- package/script/helpers/collateExamples.js +15 -5
- package/script/helpers/refFns.d.ts +6 -2
- package/script/helpers/refFns.js +24 -7
- package/script/mod.d.ts +2 -0
- package/script/mod.js +2 -0
- package/script/oas/array/Array.d.ts +19 -0
- package/script/oas/array/Array.js +47 -0
- package/script/oas/boolean/Boolean.d.ts +19 -0
- package/script/oas/boolean/Boolean.js +51 -8
- package/script/oas/example/Example.d.ts +4 -0
- package/script/oas/example/Example.js +8 -0
- package/script/oas/header/Header.d.ts +4 -0
- package/script/oas/header/Header.js +8 -0
- package/script/oas/integer/Integer.d.ts +19 -0
- package/script/oas/integer/Integer.js +49 -0
- package/script/oas/link/Link.d.ts +4 -0
- package/script/oas/link/Link.js +8 -0
- package/script/oas/number/Number.d.ts +19 -0
- package/script/oas/number/Number.js +49 -0
- package/script/oas/object/Object.d.ts +19 -0
- package/script/oas/object/Object.js +68 -18
- package/script/oas/operation/Operation.d.ts +8 -1
- package/script/oas/operation/Operation.js +18 -5
- package/script/oas/operation/toEffectiveParameters.d.ts +24 -0
- package/script/oas/operation/toEffectiveParameters.js +47 -0
- package/script/oas/parameter/Parameter.d.ts +4 -0
- package/script/oas/parameter/Parameter.js +8 -0
- package/script/oas/ref/DanglingRefError.d.ts +22 -0
- package/script/oas/ref/DanglingRefError.js +37 -0
- package/script/oas/ref/Ref.d.ts +152 -25
- package/script/oas/ref/Ref.js +414 -26
- package/script/oas/requestBody/RequestBody.d.ts +4 -0
- package/script/oas/requestBody/RequestBody.js +8 -0
- package/script/oas/response/Response.d.ts +4 -0
- package/script/oas/response/Response.js +8 -0
- package/script/oas/schema/siblings.d.ts +127 -0
- package/script/oas/schema/siblings.js +305 -0
- package/script/oas/securitySchemes/SecurityScheme.d.ts +16 -0
- package/script/oas/securitySchemes/SecurityScheme.js +32 -0
- package/script/oas/string/String.d.ts +19 -0
- package/script/oas/string/String.js +47 -0
- package/script/oas/union/Union.d.ts +32 -0
- package/script/oas/union/Union.js +111 -0
- package/script/oas/unknown/Unknown.d.ts +18 -0
- package/script/oas/unknown/Unknown.js +38 -0
- package/script/oas/void/Void.d.ts +4 -0
- package/script/oas/void/Void.js +8 -0
- package/script/oas/webhook/Webhook.d.ts +2 -2
- package/script/oas/webhook/Webhook.js +4 -5
- package/script/parse/allOfSystem.d.ts +32 -0
- package/script/parse/allOfSystem.js +35 -0
- package/script/parse/anyOfSystem.d.ts +68 -0
- package/script/parse/anyOfSystem.js +116 -0
- package/script/parse/securityRequirements.d.ts +6 -0
- package/script/parse/securityRequirements.js +8 -0
- package/script/parse/toSiblingKeywords.d.ts +28 -0
- package/script/parse/toSiblingKeywords.js +146 -0
- package/script/parse/v3-0/_merge-all-of/decompose-union.d.ts +8 -0
- package/script/parse/v3-0/_merge-all-of/decompose-union.js +11 -2
- package/script/parse/v3-0/_merge-all-of/generic-merge.d.ts +2 -3
- package/script/parse/v3-0/_merge-all-of/generic-merge.js +2 -2
- package/script/parse/v3-0/_merge-all-of/merge-array-constraints.d.ts +2 -2
- package/script/parse/v3-0/_merge-all-of/merge-array-constraints.js +5 -5
- package/script/parse/v3-0/_merge-all-of/merge-boolean-constraints.d.ts +2 -2
- package/script/parse/v3-0/_merge-all-of/merge-boolean-constraints.js +2 -2
- package/script/parse/v3-0/_merge-all-of/merge-integer-constraints.d.ts +2 -2
- package/script/parse/v3-0/_merge-all-of/merge-integer-constraints.js +2 -2
- package/script/parse/v3-0/_merge-all-of/merge-intersection.d.ts +3 -2
- package/script/parse/v3-0/_merge-all-of/merge-intersection.js +2 -2
- package/script/parse/v3-0/_merge-all-of/merge-number-constraints.d.ts +2 -2
- package/script/parse/v3-0/_merge-all-of/merge-number-constraints.js +2 -2
- package/script/parse/v3-0/_merge-all-of/merge-object-constraints.d.ts +2 -2
- package/script/parse/v3-0/_merge-all-of/merge-object-constraints.js +3 -3
- package/script/parse/v3-0/_merge-all-of/merge-properties.d.ts +2 -2
- package/script/parse/v3-0/_merge-all-of/merge-properties.js +2 -2
- package/script/parse/v3-0/_merge-all-of/merge-string-constraints.d.ts +2 -2
- package/script/parse/v3-0/_merge-all-of/merge-string-constraints.js +3 -3
- package/script/parse/v3-0/_merge-all-of/merge-union.d.ts +10 -3
- package/script/parse/v3-0/_merge-all-of/merge-union.js +52 -13
- package/script/parse/v3-0/_merge-all-of/merge.d.ts +2 -2
- package/script/parse/v3-0/_merge-all-of/merge.js +77 -26
- package/script/parse/v3-0/_merge-all-of/nullable-merge.d.ts +4 -0
- package/script/parse/v3-0/_merge-all-of/nullable-merge.js +9 -7
- package/script/parse/v3-0/_merge-all-of/types.d.ts +33 -0
- package/script/parse/v3-0/mediaType/toMediaTypeItemV3.js +4 -3
- package/script/parse/v3-0/parameter/toParameterV3.js +4 -3
- package/script/parse/v3-0/ref/toRefV31.d.ts +7 -1
- package/script/parse/v3-0/ref/toRefV31.js +6 -3
- package/script/parse/v3-0/schema/toSchemasV3.js +107 -15
- package/script/parse/v3-1/_merge-all-of/decompose-union.d.ts +7 -1
- package/script/parse/v3-1/_merge-all-of/decompose-union.js +8 -2
- package/script/parse/v3-1/_merge-all-of/generic-merge.d.ts +2 -3
- package/script/parse/v3-1/_merge-all-of/generic-merge.js +2 -2
- package/script/parse/v3-1/_merge-all-of/merge-array-constraints.d.ts +3 -2
- package/script/parse/v3-1/_merge-all-of/merge-array-constraints.js +5 -5
- package/script/parse/v3-1/_merge-all-of/merge-boolean-constraints.d.ts +2 -2
- package/script/parse/v3-1/_merge-all-of/merge-boolean-constraints.js +2 -2
- package/script/parse/v3-1/_merge-all-of/merge-integer-constraints.d.ts +2 -2
- package/script/parse/v3-1/_merge-all-of/merge-integer-constraints.js +2 -2
- package/script/parse/v3-1/_merge-all-of/merge-intersection.d.ts +3 -2
- package/script/parse/v3-1/_merge-all-of/merge-intersection.js +2 -2
- package/script/parse/v3-1/_merge-all-of/merge-number-constraints.d.ts +2 -2
- package/script/parse/v3-1/_merge-all-of/merge-number-constraints.js +2 -2
- package/script/parse/v3-1/_merge-all-of/merge-object-constraints.d.ts +2 -2
- package/script/parse/v3-1/_merge-all-of/merge-object-constraints.js +3 -3
- package/script/parse/v3-1/_merge-all-of/merge-properties.d.ts +2 -2
- package/script/parse/v3-1/_merge-all-of/merge-properties.js +2 -2
- package/script/parse/v3-1/_merge-all-of/merge-string-constraints.d.ts +2 -2
- package/script/parse/v3-1/_merge-all-of/merge-string-constraints.js +3 -3
- package/script/parse/v3-1/_merge-all-of/merge-union.d.ts +10 -3
- package/script/parse/v3-1/_merge-all-of/merge-union.js +56 -16
- package/script/parse/v3-1/_merge-all-of/merge.d.ts +3 -2
- package/script/parse/v3-1/_merge-all-of/merge.js +87 -28
- package/script/parse/v3-1/_merge-all-of/nullable-merge.d.ts +4 -0
- package/script/parse/v3-1/_merge-all-of/nullable-merge.js +9 -7
- package/script/parse/v3-1/_merge-all-of/types.d.ts +37 -0
- package/script/parse/v3-1/mediaType/toMediaTypeItemV3.js +4 -3
- package/script/parse/v3-1/parameter/toParameterV3.js +4 -3
- package/script/parse/v3-1/ref/toRefV31.d.ts +7 -1
- package/script/parse/v3-1/ref/toRefV31.js +6 -3
- package/script/parse/v3-1/schema/toSchemasV3.js +111 -16
- package/script/parse/v3-2/_merge-all-of/decompose-union.d.ts +7 -1
- package/script/parse/v3-2/_merge-all-of/decompose-union.js +8 -2
- package/script/parse/v3-2/_merge-all-of/generic-merge.d.ts +2 -3
- package/script/parse/v3-2/_merge-all-of/generic-merge.js +2 -2
- package/script/parse/v3-2/_merge-all-of/merge-array-constraints.d.ts +3 -2
- package/script/parse/v3-2/_merge-all-of/merge-array-constraints.js +5 -5
- package/script/parse/v3-2/_merge-all-of/merge-boolean-constraints.d.ts +2 -2
- package/script/parse/v3-2/_merge-all-of/merge-boolean-constraints.js +2 -2
- package/script/parse/v3-2/_merge-all-of/merge-integer-constraints.d.ts +2 -2
- package/script/parse/v3-2/_merge-all-of/merge-integer-constraints.js +2 -2
- package/script/parse/v3-2/_merge-all-of/merge-intersection.d.ts +3 -2
- package/script/parse/v3-2/_merge-all-of/merge-intersection.js +2 -2
- package/script/parse/v3-2/_merge-all-of/merge-number-constraints.d.ts +2 -2
- package/script/parse/v3-2/_merge-all-of/merge-number-constraints.js +2 -2
- package/script/parse/v3-2/_merge-all-of/merge-object-constraints.d.ts +2 -2
- package/script/parse/v3-2/_merge-all-of/merge-object-constraints.js +3 -3
- package/script/parse/v3-2/_merge-all-of/merge-properties.d.ts +2 -2
- package/script/parse/v3-2/_merge-all-of/merge-properties.js +2 -2
- package/script/parse/v3-2/_merge-all-of/merge-string-constraints.d.ts +2 -2
- package/script/parse/v3-2/_merge-all-of/merge-string-constraints.js +3 -3
- package/script/parse/v3-2/_merge-all-of/merge-union.d.ts +10 -3
- package/script/parse/v3-2/_merge-all-of/merge-union.js +56 -16
- package/script/parse/v3-2/_merge-all-of/merge.d.ts +3 -2
- package/script/parse/v3-2/_merge-all-of/merge.js +87 -28
- package/script/parse/v3-2/_merge-all-of/nullable-merge.d.ts +4 -0
- package/script/parse/v3-2/_merge-all-of/nullable-merge.js +9 -7
- package/script/parse/v3-2/_merge-all-of/types.d.ts +37 -0
- package/script/parse/v3-2/mediaType/toMediaTypeItemV3.js +4 -3
- package/script/parse/v3-2/parameter/toParameterV3.js +4 -3
- package/script/parse/v3-2/ref/toRefV31.d.ts +7 -1
- package/script/parse/v3-2/ref/toRefV31.js +6 -3
- package/script/parse/v3-2/schema/toSchemasV3.js +111 -16
- package/script/types/OasBase.d.ts +1 -1
- package/script/types/Settings.d.ts +44 -0
- package/script/types/Settings.js +10 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GenerationFailure = exports.toGenerationFailure = void 0;
|
|
4
|
+
/** How many trails each message lists before it counts the rest. */
|
|
5
|
+
const SHOWN_TRAILS = 5;
|
|
6
|
+
/**
|
|
7
|
+
* The message of a run that failed in generate. Each distinct error is
|
|
8
|
+
* written once, with the subjects it failed: one wrong enrichment fails
|
|
9
|
+
* every subject that reads it, and the user needs to read it only once.
|
|
10
|
+
*/
|
|
11
|
+
const toGenerationFailure = (failedItems) => {
|
|
12
|
+
const byMessage = Map.groupBy(failedItems, ({ message }) => message);
|
|
13
|
+
const paragraphs = [...byMessage].map(([message, items]) => {
|
|
14
|
+
const trails = items.map(({ trail }) => ` in ${trail}`);
|
|
15
|
+
const hidden = trails.length - SHOWN_TRAILS;
|
|
16
|
+
return [
|
|
17
|
+
message,
|
|
18
|
+
...trails.slice(0, SHOWN_TRAILS),
|
|
19
|
+
...(hidden > 0 ? [` and ${hidden} more`] : [])
|
|
20
|
+
].join('\n');
|
|
21
|
+
});
|
|
22
|
+
return `Generation failed for ${failedItems.length} subject(s):\n${paragraphs.join('\n\n')}`;
|
|
23
|
+
};
|
|
24
|
+
exports.toGenerationFailure = toGenerationFailure;
|
|
25
|
+
/**
|
|
26
|
+
* The error a run that failed in generate throws. It carries the
|
|
27
|
+
* enrichment warnings the audit found, since a misaddressed enrichment is
|
|
28
|
+
* often why a subject failed.
|
|
29
|
+
*/
|
|
30
|
+
class GenerationFailure extends Error {
|
|
31
|
+
constructor(failedItems, enrichmentWarnings) {
|
|
32
|
+
super((0, exports.toGenerationFailure)(failedItems));
|
|
33
|
+
Object.defineProperty(this, "enrichmentWarnings", {
|
|
34
|
+
enumerable: true,
|
|
35
|
+
configurable: true,
|
|
36
|
+
writable: true,
|
|
37
|
+
value: void 0
|
|
38
|
+
});
|
|
39
|
+
this.name = 'GenerationFailure';
|
|
40
|
+
this.enrichmentWarnings = enrichmentWarnings;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.GenerationFailure = GenerationFailure;
|
|
@@ -60,7 +60,10 @@ export type TryParseAtArgs<T> = {
|
|
|
60
60
|
* Run `fn(childStack)` inside `stackTrail.trace(key, ...)`. On throw:
|
|
61
61
|
*
|
|
62
62
|
* - logs a `level: 'error'` issue at the child location with the
|
|
63
|
-
* given `type` and the thrown value as `cause`
|
|
63
|
+
* given `type` and the thrown value as `cause`. A `DanglingRefError`
|
|
64
|
+
* is logged as `DANGLING_REF`: core resolved a ref while it parsed (an
|
|
65
|
+
* `allOf` member it merges, say), so the ref cannot be kept, whatever
|
|
66
|
+
* `system.danglingRefs` is
|
|
64
67
|
* - registers a ref error if `refKey` is provided
|
|
65
68
|
* - returns `undefined`
|
|
66
69
|
*
|
|
@@ -22,11 +22,15 @@
|
|
|
22
22
|
*/
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
24
|
exports.tryParseAt = void 0;
|
|
25
|
+
const DanglingRefError_js_1 = require("../oas/ref/DanglingRefError.js");
|
|
25
26
|
/**
|
|
26
27
|
* Run `fn(childStack)` inside `stackTrail.trace(key, ...)`. On throw:
|
|
27
28
|
*
|
|
28
29
|
* - logs a `level: 'error'` issue at the child location with the
|
|
29
|
-
* given `type` and the thrown value as `cause`
|
|
30
|
+
* given `type` and the thrown value as `cause`. A `DanglingRefError`
|
|
31
|
+
* is logged as `DANGLING_REF`: core resolved a ref while it parsed (an
|
|
32
|
+
* `allOf` member it merges, say), so the ref cannot be kept, whatever
|
|
33
|
+
* `system.danglingRefs` is
|
|
30
34
|
* - registers a ref error if `refKey` is provided
|
|
31
35
|
* - returns `undefined`
|
|
32
36
|
*
|
|
@@ -38,6 +42,7 @@ const tryParseAt = ({ stackTrail, key, context, type, parent, refKey, fn }) => {
|
|
|
38
42
|
}
|
|
39
43
|
catch (error) {
|
|
40
44
|
const normalized = error instanceof Error ? error : new Error(String(error));
|
|
45
|
+
const dangling = DanglingRefError_js_1.DanglingRefError.is(error);
|
|
41
46
|
stackTrail.trace(key, childStack => {
|
|
42
47
|
if (refKey !== undefined) {
|
|
43
48
|
context.registerRefError(error, refKey, childStack.toString());
|
|
@@ -46,9 +51,11 @@ const tryParseAt = ({ stackTrail, key, context, type, parent, refKey, fn }) => {
|
|
|
46
51
|
level: 'error',
|
|
47
52
|
stackTrail: childStack,
|
|
48
53
|
parent,
|
|
49
|
-
message:
|
|
54
|
+
message: dangling
|
|
55
|
+
? `${normalized.message}. Core resolves it while it parses, so what holds it is removed whatever system.danglingRefs is.`
|
|
56
|
+
: normalized.message,
|
|
50
57
|
cause: normalized,
|
|
51
|
-
type
|
|
58
|
+
type: dangling ? 'DANGLING_REF' : type
|
|
52
59
|
});
|
|
53
60
|
});
|
|
54
61
|
return undefined;
|
|
@@ -44,6 +44,10 @@ export declare class CustomValue extends SnippetBase {
|
|
|
44
44
|
* @returns Always false since custom values are concrete content, not references
|
|
45
45
|
*/
|
|
46
46
|
isRef(): this is OasRef<'schema'>;
|
|
47
|
+
/** Always `false`: this value has no `readOnly`. */
|
|
48
|
+
isReadOnly(): boolean;
|
|
49
|
+
/** Always `false`: this value has no `writeOnly`. */
|
|
50
|
+
isWriteOnly(): boolean;
|
|
47
51
|
/**
|
|
48
52
|
* Resolves this custom value.
|
|
49
53
|
*
|
|
@@ -53,6 +53,14 @@ class CustomValue extends SnippetBase_js_1.SnippetBase {
|
|
|
53
53
|
isRef() {
|
|
54
54
|
return false;
|
|
55
55
|
}
|
|
56
|
+
/** Always `false`: this value has no `readOnly`. */
|
|
57
|
+
isReadOnly() {
|
|
58
|
+
return false;
|
|
59
|
+
}
|
|
60
|
+
/** Always `false`: this value has no `writeOnly`. */
|
|
61
|
+
isWriteOnly() {
|
|
62
|
+
return false;
|
|
63
|
+
}
|
|
56
64
|
/**
|
|
57
65
|
* Resolves this custom value.
|
|
58
66
|
*
|
|
@@ -2,6 +2,7 @@ import type { GenerateContextType } from '../context/generateTypes.js';
|
|
|
2
2
|
import type { IdentifierBase } from './IdentifierBase.js';
|
|
3
3
|
import { SnippetBase } from './SnippetBase.js';
|
|
4
4
|
import type { GeneratedValue } from './GeneratedValue.js';
|
|
5
|
+
import type { PendingDefinition } from './PendingDefinition.js';
|
|
5
6
|
/**
|
|
6
7
|
* Constructor arguments for {@link DefinitionBase}.
|
|
7
8
|
*
|
|
@@ -35,6 +36,15 @@ export declare abstract class DefinitionBase<V extends GeneratedValue = Generate
|
|
|
35
36
|
identifier: IdentifierBase;
|
|
36
37
|
/** The generated value content */
|
|
37
38
|
value: V;
|
|
39
|
+
/**
|
|
40
|
+
* The models this Definition's model reached while its projection was
|
|
41
|
+
* being constructed that were pending then: the models further up the
|
|
42
|
+
* stack it refers back to, directly or through the models it refers to.
|
|
43
|
+
* A reference to this model is inside a cycle while one of them is still
|
|
44
|
+
* pending. Set by the `ModelDriver`; `undefined` for a Definition it did
|
|
45
|
+
* not construct.
|
|
46
|
+
*/
|
|
47
|
+
reaches: ReadonlySet<PendingDefinition> | undefined;
|
|
38
48
|
constructor({ context, identifier, value }: DefinitionBaseArgs<V>);
|
|
39
49
|
/** Renders the definition's code. Implemented by the concrete subclass. */
|
|
40
50
|
abstract toString(): string;
|
package/script/dsl/Definition.js
CHANGED
|
@@ -34,6 +34,20 @@ class DefinitionBase extends SnippetBase_js_1.SnippetBase {
|
|
|
34
34
|
writable: true,
|
|
35
35
|
value: void 0
|
|
36
36
|
});
|
|
37
|
+
/**
|
|
38
|
+
* The models this Definition's model reached while its projection was
|
|
39
|
+
* being constructed that were pending then: the models further up the
|
|
40
|
+
* stack it refers back to, directly or through the models it refers to.
|
|
41
|
+
* A reference to this model is inside a cycle while one of them is still
|
|
42
|
+
* pending. Set by the `ModelDriver`; `undefined` for a Definition it did
|
|
43
|
+
* not construct.
|
|
44
|
+
*/
|
|
45
|
+
Object.defineProperty(this, "reaches", {
|
|
46
|
+
enumerable: true,
|
|
47
|
+
configurable: true,
|
|
48
|
+
writable: true,
|
|
49
|
+
value: void 0
|
|
50
|
+
});
|
|
37
51
|
this.value = value;
|
|
38
52
|
this.identifier = identifier;
|
|
39
53
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { IdentifierBase } from './IdentifierBase.js';
|
|
2
|
+
import type { GeneratorKey } from './GeneratorKeys.js';
|
|
3
|
+
type PendingDefinitionArgs = {
|
|
4
|
+
identifier: IdentifierBase;
|
|
5
|
+
exportPath: string;
|
|
6
|
+
generatorKey: GeneratorKey;
|
|
7
|
+
options: unknown;
|
|
8
|
+
projection: unknown;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* A model whose projection is being constructed. The `ModelDriver` pushes it
|
|
12
|
+
* onto the context's `pendingStack` before it runs the projection's
|
|
13
|
+
* constructor, and pops it however the constructor ends, so the stack holds
|
|
14
|
+
* exactly the models under construction. The model's File does not see it:
|
|
15
|
+
* the Driver adds the Definition when the constructor returns.
|
|
16
|
+
*
|
|
17
|
+
* A reference to the model from inside that constructor (a cycle: the model
|
|
18
|
+
* refers to itself, or to a model that refers back to it) finds this entry,
|
|
19
|
+
* not a cache miss. `toModelRef` returns it suspended: the reference gets the
|
|
20
|
+
* model's identity, which is all a reference by name needs, and no value,
|
|
21
|
+
* which does not exist yet. A second projection for the model is never
|
|
22
|
+
* constructed.
|
|
23
|
+
*/
|
|
24
|
+
export declare class PendingDefinition {
|
|
25
|
+
identifier: IdentifierBase;
|
|
26
|
+
/** The file the Definition will go to, normalized. */
|
|
27
|
+
exportPath: string;
|
|
28
|
+
/** The key the Definition will carry: the identity check runs on the entry too. */
|
|
29
|
+
generatorKey: GeneratorKey;
|
|
30
|
+
/** The caller's options the projection is constructed with: identity, like the key. */
|
|
31
|
+
options: unknown;
|
|
32
|
+
/** The projection class being constructed: another class under this name and file is a clash. */
|
|
33
|
+
projection: unknown;
|
|
34
|
+
/** How many references found the model under construction: references back to it. */
|
|
35
|
+
backReferences: number;
|
|
36
|
+
/** True while the projection's constructor runs; false once it returned, however it returned. */
|
|
37
|
+
pending: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* The models this model's construction reached while they were under
|
|
40
|
+
* construction: the targets of its references back, and what the models it
|
|
41
|
+
* refers to reached. When the constructor returns, the Driver hands the set
|
|
42
|
+
* to the Definition (`DefinitionBase.reaches`).
|
|
43
|
+
*/
|
|
44
|
+
reaches: Set<PendingDefinition>;
|
|
45
|
+
constructor({ identifier, exportPath, generatorKey, options, projection }: PendingDefinitionArgs);
|
|
46
|
+
}
|
|
47
|
+
export {};
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PendingDefinition = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* A model whose projection is being constructed. The `ModelDriver` pushes it
|
|
6
|
+
* onto the context's `pendingStack` before it runs the projection's
|
|
7
|
+
* constructor, and pops it however the constructor ends, so the stack holds
|
|
8
|
+
* exactly the models under construction. The model's File does not see it:
|
|
9
|
+
* the Driver adds the Definition when the constructor returns.
|
|
10
|
+
*
|
|
11
|
+
* A reference to the model from inside that constructor (a cycle: the model
|
|
12
|
+
* refers to itself, or to a model that refers back to it) finds this entry,
|
|
13
|
+
* not a cache miss. `toModelRef` returns it suspended: the reference gets the
|
|
14
|
+
* model's identity, which is all a reference by name needs, and no value,
|
|
15
|
+
* which does not exist yet. A second projection for the model is never
|
|
16
|
+
* constructed.
|
|
17
|
+
*/
|
|
18
|
+
class PendingDefinition {
|
|
19
|
+
constructor({ identifier, exportPath, generatorKey, options, projection }) {
|
|
20
|
+
Object.defineProperty(this, "identifier", {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
configurable: true,
|
|
23
|
+
writable: true,
|
|
24
|
+
value: void 0
|
|
25
|
+
});
|
|
26
|
+
/** The file the Definition will go to, normalized. */
|
|
27
|
+
Object.defineProperty(this, "exportPath", {
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true,
|
|
31
|
+
value: void 0
|
|
32
|
+
});
|
|
33
|
+
/** The key the Definition will carry: the identity check runs on the entry too. */
|
|
34
|
+
Object.defineProperty(this, "generatorKey", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true,
|
|
38
|
+
value: void 0
|
|
39
|
+
});
|
|
40
|
+
/** The caller's options the projection is constructed with: identity, like the key. */
|
|
41
|
+
Object.defineProperty(this, "options", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
configurable: true,
|
|
44
|
+
writable: true,
|
|
45
|
+
value: void 0
|
|
46
|
+
});
|
|
47
|
+
/** The projection class being constructed: another class under this name and file is a clash. */
|
|
48
|
+
Object.defineProperty(this, "projection", {
|
|
49
|
+
enumerable: true,
|
|
50
|
+
configurable: true,
|
|
51
|
+
writable: true,
|
|
52
|
+
value: void 0
|
|
53
|
+
});
|
|
54
|
+
/** How many references found the model under construction: references back to it. */
|
|
55
|
+
Object.defineProperty(this, "backReferences", {
|
|
56
|
+
enumerable: true,
|
|
57
|
+
configurable: true,
|
|
58
|
+
writable: true,
|
|
59
|
+
value: 0
|
|
60
|
+
});
|
|
61
|
+
/** True while the projection's constructor runs; false once it returned, however it returned. */
|
|
62
|
+
Object.defineProperty(this, "pending", {
|
|
63
|
+
enumerable: true,
|
|
64
|
+
configurable: true,
|
|
65
|
+
writable: true,
|
|
66
|
+
value: true
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* The models this model's construction reached while they were under
|
|
70
|
+
* construction: the targets of its references back, and what the models it
|
|
71
|
+
* refers to reached. When the constructor returns, the Driver hands the set
|
|
72
|
+
* to the Definition (`DefinitionBase.reaches`).
|
|
73
|
+
*/
|
|
74
|
+
Object.defineProperty(this, "reaches", {
|
|
75
|
+
enumerable: true,
|
|
76
|
+
configurable: true,
|
|
77
|
+
writable: true,
|
|
78
|
+
value: new Set()
|
|
79
|
+
});
|
|
80
|
+
this.identifier = identifier;
|
|
81
|
+
this.exportPath = exportPath;
|
|
82
|
+
this.generatorKey = generatorKey;
|
|
83
|
+
this.options = options;
|
|
84
|
+
this.projection = projection;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.PendingDefinition = PendingDefinition;
|
|
@@ -36,7 +36,11 @@ export declare class ModelDriver<V extends GeneratedValue, EnrichmentType, Proje
|
|
|
36
36
|
variant: string;
|
|
37
37
|
/** The caller's options, as passed to `insertModel`. */
|
|
38
38
|
options: ProjectionOptions;
|
|
39
|
-
|
|
39
|
+
/**
|
|
40
|
+
* @param settings - The model's content settings, when the caller has
|
|
41
|
+
* already built them with the same `args` (`toModelRef` does).
|
|
42
|
+
*/
|
|
43
|
+
constructor(args: CreateModelArgs<V, EnrichmentType, ProjectionOptions>, settings?: ContentSettings<EnrichmentType>);
|
|
40
44
|
private apply;
|
|
41
45
|
/**
|
|
42
46
|
* Ensure the file at `path` exists, creating it on first write through
|
|
@@ -45,7 +49,57 @@ export declare class ModelDriver<V extends GeneratedValue, EnrichmentType, Proje
|
|
|
45
49
|
* cache-hit path). Returns the normalized path.
|
|
46
50
|
*/
|
|
47
51
|
private ensureFile;
|
|
52
|
+
/** The code File at `path`, created through the projection's language on first use. */
|
|
53
|
+
private ensureCodeFile;
|
|
48
54
|
private getDefinition;
|
|
49
55
|
private affirmDefinition;
|
|
50
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Whether anything referred back to the model of `settings` while its
|
|
59
|
+
* projection was being constructed: the model is recursive, on its own or in
|
|
60
|
+
* a cycle with others. Call it from the projection's constructor, after the
|
|
61
|
+
* value is built, while the model is still pending.
|
|
62
|
+
*/
|
|
63
|
+
export declare const isReferencedBack: ({ context, settings }: IsReferencedBackArgs) => boolean;
|
|
64
|
+
type IsReferencedBackArgs = {
|
|
65
|
+
context: GenerateContextType;
|
|
66
|
+
settings: {
|
|
67
|
+
identifier: {
|
|
68
|
+
name: string;
|
|
69
|
+
};
|
|
70
|
+
exportPath: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* What a ref snippet gets for a reference to a model: `suspended` when the
|
|
75
|
+
* model is pending (a back-reference, which the snippet renders deferred,
|
|
76
|
+
* e.g. `z.lazy(() => Name)`: the value does not exist yet), else the
|
|
77
|
+
* Definition the Driver constructed or found.
|
|
78
|
+
*/
|
|
79
|
+
export type ModelRef<V extends GeneratedValue, EnrichmentType> = {
|
|
80
|
+
suspended: true;
|
|
81
|
+
settings: ContentSettings<EnrichmentType>;
|
|
82
|
+
} | {
|
|
83
|
+
suspended: false;
|
|
84
|
+
settings: ContentSettings<EnrichmentType>;
|
|
85
|
+
definition: GeneratedDefinition<V>;
|
|
86
|
+
/**
|
|
87
|
+
* The model reached a model that is still pending, so this reference is
|
|
88
|
+
* inside a cycle. Every reference inside a cycle must be deferred where
|
|
89
|
+
* the target language reads the value when the module loads (zod's
|
|
90
|
+
* `z.lazy`): any model of the cycle can be the first one loaded.
|
|
91
|
+
*/
|
|
92
|
+
inCycle: boolean;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* Reference a model from a ref snippet. A pending model (its projection is
|
|
96
|
+
* being constructed further up the stack) is a back-reference: its marker
|
|
97
|
+
* counts it, so its projection can tell that it is recursive
|
|
98
|
+
* ({@link isReferencedBack}), and its import is stitched into
|
|
99
|
+
* `destinationPath` as for any reference. The import matters when the
|
|
100
|
+
* back-reference crosses files: in a cycle of two or more models, the model
|
|
101
|
+
* that refers back lives in another file. Any other model goes through the
|
|
102
|
+
* {@link ModelDriver}.
|
|
103
|
+
*/
|
|
104
|
+
export declare const toModelRef: <V extends GeneratedValue, EnrichmentType, ProjectionOptions = undefined>(args: CreateModelArgs<V, EnrichmentType, ProjectionOptions>) => ModelRef<V, EnrichmentType>;
|
|
51
105
|
export {};
|