@skmtc/core 0.0.924 → 0.0.929
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/app/validate.d.ts +0 -1
- package/esm/app/validate.d.ts.map +1 -1
- package/esm/app/validate.js +0 -1
- package/esm/context/CoreContext.d.ts +2 -2
- package/esm/context/CoreContext.d.ts.map +1 -1
- package/esm/context/CoreContext.js +10 -9
- package/esm/context/GenerateContext.d.ts +1 -1
- package/esm/context/GenerateContext.d.ts.map +1 -1
- package/esm/context/GenerateContext.js +4 -5
- package/esm/context/ParseContext.d.ts +1 -134
- package/esm/context/ParseContext.d.ts.map +1 -1
- package/esm/context/ParseContext.js +11 -157
- package/esm/context/RenderContext.d.ts +3 -8
- package/esm/context/RenderContext.d.ts.map +1 -1
- package/esm/context/RenderContext.js +16 -102
- package/esm/context/StackTrail.d.ts +0 -172
- package/esm/context/StackTrail.d.ts.map +1 -1
- package/esm/context/StackTrail.js +1 -195
- package/esm/dsl/Stringable.d.ts +0 -1
- package/esm/dsl/Stringable.d.ts.map +1 -1
- package/esm/dsl/Stringable.js +1 -76
- package/esm/dsl/model/toModelBase.d.ts +2 -3
- package/esm/dsl/model/toModelBase.d.ts.map +1 -1
- package/esm/dsl/model/toModelBase.js +1 -1
- package/esm/dsl/operation/toOperationBase.d.ts +2 -2
- package/esm/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationBase.js +1 -1
- package/esm/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/esm/dsl/operation/toOperationEntry.js +1 -1
- package/esm/helpers/ResultsLog.js +1 -1
- package/esm/helpers/collateExamples.d.ts +0 -1
- package/esm/helpers/collateExamples.d.ts.map +1 -1
- package/esm/helpers/collateExamples.js +0 -1
- package/esm/helpers/formatNumber.d.ts +0 -1
- package/esm/helpers/formatNumber.d.ts.map +1 -1
- package/esm/helpers/formatNumber.js +0 -1
- package/esm/helpers/isEmpty.d.ts +0 -60
- package/esm/helpers/isEmpty.d.ts.map +1 -1
- package/esm/helpers/isEmpty.js +1 -61
- package/esm/helpers/naming.d.ts.map +1 -1
- package/esm/helpers/naming.js +2 -2
- package/esm/helpers/refFns.d.ts +0 -1
- package/esm/helpers/refFns.d.ts.map +1 -1
- package/esm/helpers/refFns.js +0 -1
- package/esm/helpers/strings.d.ts +0 -1
- package/esm/helpers/strings.d.ts.map +1 -1
- package/esm/helpers/strings.js +0 -1
- package/esm/helpers/toResolvedArtifactPath.d.ts +0 -1
- package/esm/helpers/toResolvedArtifactPath.d.ts.map +1 -1
- package/esm/helpers/toResolvedArtifactPath.js +0 -1
- package/esm/helpers/tracer.d.ts +1 -2
- package/esm/helpers/tracer.d.ts.map +1 -1
- package/esm/helpers/tracer.js +1 -1
- package/esm/mod.d.ts +0 -14
- package/esm/mod.d.ts.map +1 -1
- package/esm/mod.js +0 -14
- package/esm/oas/_helpers/parseEnum.d.ts +8 -136
- package/esm/oas/_helpers/parseEnum.d.ts.map +1 -1
- package/esm/oas/_helpers/parseEnum.js +21 -119
- package/esm/oas/_helpers/parseNullable.d.ts.map +1 -1
- package/esm/oas/_helpers/parseNullable.js +16 -6
- package/esm/oas/_merge-all-of/merge-enum-values.js +1 -1
- package/esm/oas/array/Array.d.ts +18 -96
- package/esm/oas/array/Array.d.ts.map +1 -1
- package/esm/oas/array/Array.js +38 -102
- package/esm/oas/array/array-types.d.ts +6 -174
- package/esm/oas/array/array-types.d.ts.map +1 -1
- package/esm/oas/array/array-types.js +4 -76
- package/esm/oas/array/toArray.d.ts +0 -52
- package/esm/oas/array/toArray.d.ts.map +1 -1
- package/esm/oas/array/toArray.js +67 -72
- package/esm/oas/boolean/Boolean.d.ts +12 -133
- package/esm/oas/boolean/Boolean.d.ts.map +1 -1
- package/esm/oas/boolean/Boolean.js +28 -134
- package/esm/oas/boolean/boolean-types.d.ts +14 -1
- package/esm/oas/boolean/boolean-types.d.ts.map +1 -1
- package/esm/oas/boolean/boolean-types.js +4 -1
- package/esm/oas/boolean/toBoolean.d.ts.map +1 -1
- package/esm/oas/boolean/toBoolean.js +75 -19
- package/esm/oas/components/Components.d.ts +0 -2
- package/esm/oas/components/Components.d.ts.map +1 -1
- package/esm/oas/components/Components.js +0 -2
- package/esm/oas/components/toComponentsV3.d.ts.map +1 -1
- package/esm/oas/components/toComponentsV3.js +7 -9
- package/esm/oas/discriminator/Discriminator.d.ts +0 -1
- package/esm/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/esm/oas/discriminator/Discriminator.js +0 -1
- package/esm/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -1
- package/esm/oas/discriminator/toDiscriminatorV3.js +4 -1
- package/esm/oas/document/Document.d.ts +5 -1
- package/esm/oas/document/Document.d.ts.map +1 -1
- package/esm/oas/document/Document.js +7 -1
- package/esm/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
- package/esm/oas/document/toDocumentFieldsV3.js +11 -8
- package/esm/oas/example/Example.d.ts +10 -85
- package/esm/oas/example/Example.d.ts.map +1 -1
- package/esm/oas/example/Example.js +36 -105
- package/esm/oas/example/toExamplesV3.d.ts +1 -1
- package/esm/oas/example/toExamplesV3.d.ts.map +1 -1
- package/esm/oas/example/toExamplesV3.js +13 -8
- package/esm/oas/externalDocs/ExternalDocs.d.ts +10 -0
- package/esm/oas/externalDocs/ExternalDocs.d.ts.map +1 -0
- package/esm/oas/externalDocs/ExternalDocs.js +18 -0
- package/esm/oas/externalDocs/externalDocsTypes.d.ts +7 -0
- package/esm/oas/externalDocs/externalDocsTypes.d.ts.map +1 -0
- package/esm/oas/externalDocs/externalDocsTypes.js +6 -0
- package/esm/oas/externalDocs/toExternalDocs.d.ts +10 -0
- package/esm/oas/externalDocs/toExternalDocs.d.ts.map +1 -0
- package/esm/oas/externalDocs/toExternalDocs.js +15 -0
- package/esm/oas/header/Header.d.ts +6 -6
- package/esm/oas/header/Header.d.ts.map +1 -1
- package/esm/oas/header/toHeadersV3.d.ts.map +1 -1
- package/esm/oas/header/toHeadersV3.js +9 -5
- package/esm/oas/info/Info.d.ts +0 -1
- package/esm/oas/info/Info.d.ts.map +1 -1
- package/esm/oas/info/Info.js +0 -1
- package/esm/oas/integer/Integer.d.ts +18 -81
- package/esm/oas/integer/Integer.d.ts.map +1 -1
- package/esm/oas/integer/Integer.js +33 -82
- package/esm/oas/integer/integer-types.d.ts +21 -1
- package/esm/oas/integer/integer-types.d.ts.map +1 -1
- package/esm/oas/integer/integer-types.js +8 -2
- package/esm/oas/integer/toInteger.d.ts.map +1 -1
- package/esm/oas/integer/toInteger.js +66 -19
- package/esm/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
- package/esm/oas/mediaType/toMediaTypeItemV3.js +9 -10
- package/esm/oas/number/Number.d.ts +18 -164
- package/esm/oas/number/Number.d.ts.map +1 -1
- package/esm/oas/number/Number.js +33 -165
- package/esm/oas/number/number-types.d.ts +22 -2
- package/esm/oas/number/number-types.d.ts.map +1 -1
- package/esm/oas/number/number-types.js +4 -1
- package/esm/oas/number/toNumber.d.ts +0 -62
- package/esm/oas/number/toNumber.d.ts.map +1 -1
- package/esm/oas/number/toNumber.js +66 -81
- package/esm/oas/object/Object.d.ts +0 -1
- package/esm/oas/object/Object.d.ts.map +1 -1
- package/esm/oas/object/Object.js +0 -1
- package/esm/oas/object/toObject.d.ts.map +1 -1
- package/esm/oas/object/toObject.js +38 -13
- package/esm/oas/operation/Operation.d.ts +9 -108
- package/esm/oas/operation/Operation.d.ts.map +1 -1
- package/esm/oas/operation/Operation.js +16 -108
- package/esm/oas/operation/toOperationsV3.d.ts.map +1 -1
- package/esm/oas/operation/toOperationsV3.js +12 -7
- package/esm/oas/parameter/Parameter.d.ts +12 -13
- package/esm/oas/parameter/Parameter.d.ts.map +1 -1
- package/esm/oas/parameter/Parameter.js +0 -3
- package/esm/oas/parameter/parameter-types.d.ts +0 -20
- package/esm/oas/parameter/parameter-types.d.ts.map +1 -1
- package/esm/oas/parameter/parameter-types.js +0 -20
- package/esm/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/esm/oas/parameter/toParameterV3.js +14 -11
- package/esm/oas/pathItem/toPathItemV3.d.ts.map +1 -1
- package/esm/oas/pathItem/toPathItemV3.js +2 -1
- package/esm/oas/ref/Ref.d.ts +0 -1
- package/esm/oas/ref/Ref.d.ts.map +1 -1
- package/esm/oas/ref/Ref.js +0 -1
- package/esm/oas/ref/toRefV31.d.ts.map +1 -1
- package/esm/oas/ref/toRefV31.js +4 -1
- package/esm/oas/requestBody/RequestBody.d.ts +0 -1
- package/esm/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/esm/oas/requestBody/RequestBody.js +0 -1
- package/esm/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
- package/esm/oas/requestBody/toRequestBodiesV3.js +6 -2
- package/esm/oas/response/Response.d.ts +0 -1
- package/esm/oas/response/Response.d.ts.map +1 -1
- package/esm/oas/response/Response.js +0 -1
- package/esm/oas/response/toResponseV3.d.ts.map +1 -1
- package/esm/oas/response/toResponseV3.js +9 -8
- package/esm/oas/schema/Schema.d.ts +0 -1
- package/esm/oas/schema/Schema.d.ts.map +1 -1
- package/esm/oas/schema/Schema.js +1 -1
- package/esm/oas/schema/toSchemasV3.d.ts.map +1 -1
- package/esm/oas/schema/toSchemasV3.js +10 -16
- package/esm/oas/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/esm/oas/securitySchemes/toSecuritySchemes.js +22 -9
- package/esm/oas/server/Server.d.ts +0 -1
- package/esm/oas/server/Server.d.ts.map +1 -1
- package/esm/oas/server/Server.js +0 -1
- package/esm/oas/server/toServerV3.d.ts.map +1 -1
- package/esm/oas/server/toServerV3.js +2 -1
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +1 -1
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -1
- package/esm/oas/specificationExtensions/toSpecificationExtensionsV3.js +17 -13
- package/esm/oas/string/String.d.ts +16 -88
- package/esm/oas/string/String.d.ts.map +1 -1
- package/esm/oas/string/String.js +33 -91
- package/esm/oas/string/string-types.d.ts +23 -80
- package/esm/oas/string/string-types.d.ts.map +1 -1
- package/esm/oas/string/string-types.js +6 -2
- package/esm/oas/string/toString.d.ts.map +1 -1
- package/esm/oas/string/toString.js +68 -18
- package/esm/oas/tag/Tag.d.ts +0 -1
- package/esm/oas/tag/Tag.d.ts.map +1 -1
- package/esm/oas/tag/Tag.js +0 -1
- package/esm/oas/union/toUnion.d.ts.map +1 -1
- package/esm/oas/union/toUnion.js +6 -2
- 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 +8 -1
- package/esm/oas/unknown/toUnknown.js +1 -1
- package/esm/oas/void/Void.d.ts +0 -1
- package/esm/oas/void/Void.d.ts.map +1 -1
- package/esm/oas/void/Void.js +0 -1
- package/esm/run/toArtifacts.d.ts +2 -2
- package/esm/run/toArtifacts.d.ts.map +1 -1
- package/esm/run/toArtifacts.js +2 -2
- package/esm/types/Brand.d.ts +0 -1
- package/esm/types/Brand.d.ts.map +1 -1
- package/esm/types/Brand.js +1 -10
- package/esm/types/CustomValue.d.ts +0 -1
- package/esm/types/CustomValue.d.ts.map +1 -1
- package/esm/types/CustomValue.js +0 -1
- package/esm/types/DenoJson.d.ts +0 -1
- package/esm/types/DenoJson.d.ts.map +1 -1
- package/esm/types/DenoJson.js +0 -1
- package/esm/types/EnrichmentRequest.d.ts +0 -1
- package/esm/types/EnrichmentRequest.d.ts.map +1 -1
- package/esm/types/EnrichmentRequest.js +1 -1
- package/esm/types/Enrichments.d.ts +0 -1
- package/esm/types/Enrichments.d.ts.map +1 -1
- package/esm/types/Enrichments.js +0 -1
- package/esm/types/GeneratorKeys.d.ts +0 -1
- package/esm/types/GeneratorKeys.d.ts.map +1 -1
- package/esm/types/GeneratorKeys.js +0 -1
- package/esm/types/Manifest.d.ts +0 -1
- package/esm/types/Manifest.d.ts.map +1 -1
- package/esm/types/Manifest.js +0 -1
- package/esm/types/Method.d.ts +0 -165
- package/esm/types/Method.d.ts.map +1 -1
- package/esm/types/Method.js +1 -141
- package/esm/types/ModuleExport.d.ts +0 -1
- package/esm/types/ModuleExport.d.ts.map +1 -1
- package/esm/types/ModuleExport.js +0 -1
- package/esm/types/PrettierConfig.d.ts +0 -1
- package/esm/types/PrettierConfig.d.ts.map +1 -1
- package/esm/types/PrettierConfig.js +0 -1
- package/esm/types/Preview.d.ts +0 -1
- package/esm/types/Preview.d.ts.map +1 -1
- package/esm/types/Preview.js +0 -1
- package/esm/types/RefName.d.ts +0 -1
- package/esm/types/RefName.d.ts.map +1 -1
- package/esm/types/RefName.js +1 -1
- package/esm/types/Results.d.ts +0 -1
- package/esm/types/Results.d.ts.map +1 -1
- package/esm/types/Results.js +0 -1
- package/esm/types/Settings.d.ts +0 -1
- package/esm/types/Settings.d.ts.map +1 -1
- package/esm/types/Settings.js +0 -1
- package/esm/types/TypeSystem.d.ts +0 -1
- package/esm/types/TypeSystem.d.ts.map +1 -1
- package/esm/types/TypeSystem.js +1 -1
- package/esm/typescript/FunctionParameter.d.ts.map +1 -1
- package/esm/typescript/FunctionParameter.js +1 -1
- package/package.json +1 -15
- package/script/app/validate.d.ts +0 -1
- package/script/app/validate.d.ts.map +1 -1
- package/script/app/validate.js +0 -1
- package/script/context/CoreContext.d.ts +2 -2
- package/script/context/CoreContext.d.ts.map +1 -1
- package/script/context/CoreContext.js +10 -9
- package/script/context/GenerateContext.d.ts +1 -1
- package/script/context/GenerateContext.d.ts.map +1 -1
- package/script/context/GenerateContext.js +4 -38
- package/script/context/ParseContext.d.ts +1 -134
- package/script/context/ParseContext.d.ts.map +1 -1
- package/script/context/ParseContext.js +12 -192
- package/script/context/RenderContext.d.ts +3 -8
- package/script/context/RenderContext.d.ts.map +1 -1
- package/script/context/RenderContext.js +16 -135
- package/script/context/StackTrail.d.ts +0 -172
- package/script/context/StackTrail.d.ts.map +1 -1
- package/script/context/StackTrail.js +1 -195
- package/script/dsl/Stringable.d.ts +0 -1
- package/script/dsl/Stringable.d.ts.map +1 -1
- package/script/dsl/Stringable.js +0 -76
- package/script/dsl/model/toModelBase.d.ts +2 -3
- package/script/dsl/model/toModelBase.d.ts.map +1 -1
- package/script/dsl/model/toModelBase.js +5 -2
- package/script/dsl/operation/toOperationBase.d.ts +2 -2
- package/script/dsl/operation/toOperationBase.d.ts.map +1 -1
- package/script/dsl/operation/toOperationBase.js +5 -2
- package/script/dsl/operation/toOperationEntry.d.ts.map +1 -1
- package/script/dsl/operation/toOperationEntry.js +5 -2
- package/script/helpers/ResultsLog.js +5 -2
- package/script/helpers/collateExamples.d.ts +0 -1
- package/script/helpers/collateExamples.d.ts.map +1 -1
- package/script/helpers/collateExamples.js +0 -1
- package/script/helpers/formatNumber.d.ts +0 -1
- package/script/helpers/formatNumber.d.ts.map +1 -1
- package/script/helpers/formatNumber.js +0 -1
- package/script/helpers/isEmpty.d.ts +0 -60
- package/script/helpers/isEmpty.d.ts.map +1 -1
- package/script/helpers/isEmpty.js +1 -61
- package/script/helpers/naming.d.ts.map +1 -1
- package/script/helpers/naming.js +3 -3
- package/script/helpers/refFns.d.ts +0 -1
- package/script/helpers/refFns.d.ts.map +1 -1
- package/script/helpers/refFns.js +0 -1
- package/script/helpers/strings.d.ts +0 -1
- package/script/helpers/strings.d.ts.map +1 -1
- package/script/helpers/strings.js +0 -1
- package/script/helpers/toResolvedArtifactPath.d.ts +0 -1
- package/script/helpers/toResolvedArtifactPath.d.ts.map +1 -1
- package/script/helpers/toResolvedArtifactPath.js +2 -3
- package/script/helpers/tracer.d.ts +1 -2
- package/script/helpers/tracer.d.ts.map +1 -1
- package/script/helpers/tracer.js +1 -1
- package/script/mod.d.ts +0 -14
- package/script/mod.d.ts.map +1 -1
- package/script/mod.js +15 -29
- package/script/oas/_helpers/parseEnum.d.ts +8 -136
- package/script/oas/_helpers/parseEnum.d.ts.map +1 -1
- package/script/oas/_helpers/parseEnum.js +21 -152
- package/script/oas/_helpers/parseNullable.d.ts.map +1 -1
- package/script/oas/_helpers/parseNullable.js +16 -39
- package/script/oas/_merge-all-of/merge-enum-values.js +1 -1
- package/script/oas/array/Array.d.ts +18 -96
- package/script/oas/array/Array.d.ts.map +1 -1
- package/script/oas/array/Array.js +38 -102
- package/script/oas/array/array-types.d.ts +6 -174
- package/script/oas/array/array-types.d.ts.map +1 -1
- package/script/oas/array/array-types.js +5 -77
- package/script/oas/array/toArray.d.ts +0 -52
- package/script/oas/array/toArray.d.ts.map +1 -1
- package/script/oas/array/toArray.js +67 -72
- package/script/oas/boolean/Boolean.d.ts +12 -133
- package/script/oas/boolean/Boolean.d.ts.map +1 -1
- package/script/oas/boolean/Boolean.js +28 -134
- package/script/oas/boolean/boolean-types.d.ts +14 -1
- package/script/oas/boolean/boolean-types.d.ts.map +1 -1
- package/script/oas/boolean/boolean-types.js +4 -1
- package/script/oas/boolean/toBoolean.d.ts.map +1 -1
- package/script/oas/boolean/toBoolean.js +75 -19
- package/script/oas/components/Components.d.ts +0 -2
- package/script/oas/components/Components.d.ts.map +1 -1
- package/script/oas/components/Components.js +0 -2
- package/script/oas/components/toComponentsV3.d.ts.map +1 -1
- package/script/oas/components/toComponentsV3.js +7 -9
- package/script/oas/discriminator/Discriminator.d.ts +0 -1
- package/script/oas/discriminator/Discriminator.d.ts.map +1 -1
- package/script/oas/discriminator/Discriminator.js +0 -1
- package/script/oas/discriminator/toDiscriminatorV3.d.ts.map +1 -1
- package/script/oas/discriminator/toDiscriminatorV3.js +4 -1
- package/script/oas/document/Document.d.ts +5 -1
- package/script/oas/document/Document.d.ts.map +1 -1
- package/script/oas/document/Document.js +7 -1
- package/script/oas/document/toDocumentFieldsV3.d.ts.map +1 -1
- package/script/oas/document/toDocumentFieldsV3.js +11 -8
- package/script/oas/example/Example.d.ts +10 -85
- package/script/oas/example/Example.d.ts.map +1 -1
- package/script/oas/example/Example.js +36 -105
- package/script/oas/example/toExamplesV3.d.ts +1 -1
- package/script/oas/example/toExamplesV3.d.ts.map +1 -1
- package/script/oas/example/toExamplesV3.js +13 -8
- package/script/oas/externalDocs/ExternalDocs.d.ts +10 -0
- package/script/oas/externalDocs/ExternalDocs.d.ts.map +1 -0
- package/script/oas/externalDocs/ExternalDocs.js +22 -0
- package/script/oas/externalDocs/externalDocsTypes.d.ts +7 -0
- package/script/oas/externalDocs/externalDocsTypes.d.ts.map +1 -0
- package/script/oas/{requestBody/requestBody-types.js → externalDocs/externalDocsTypes.js} +3 -6
- package/script/oas/externalDocs/toExternalDocs.d.ts +10 -0
- package/script/oas/externalDocs/toExternalDocs.d.ts.map +1 -0
- package/script/oas/{response/response-types.js → externalDocs/toExternalDocs.js} +16 -11
- package/script/oas/header/Header.d.ts +6 -6
- package/script/oas/header/Header.d.ts.map +1 -1
- package/script/oas/header/toHeadersV3.d.ts.map +1 -1
- package/script/oas/header/toHeadersV3.js +9 -5
- package/script/oas/info/Info.d.ts +0 -1
- package/script/oas/info/Info.d.ts.map +1 -1
- package/script/oas/info/Info.js +0 -1
- package/script/oas/integer/Integer.d.ts +18 -81
- package/script/oas/integer/Integer.d.ts.map +1 -1
- package/script/oas/integer/Integer.js +33 -82
- package/script/oas/integer/integer-types.d.ts +21 -1
- package/script/oas/integer/integer-types.d.ts.map +1 -1
- package/script/oas/integer/integer-types.js +8 -2
- package/script/oas/integer/toInteger.d.ts.map +1 -1
- package/script/oas/integer/toInteger.js +65 -18
- package/script/oas/mediaType/toMediaTypeItemV3.d.ts.map +1 -1
- package/script/oas/mediaType/toMediaTypeItemV3.js +9 -10
- package/script/oas/number/Number.d.ts +18 -164
- package/script/oas/number/Number.d.ts.map +1 -1
- package/script/oas/number/Number.js +33 -165
- package/script/oas/number/number-types.d.ts +22 -2
- package/script/oas/number/number-types.d.ts.map +1 -1
- package/script/oas/number/number-types.js +4 -1
- package/script/oas/number/toNumber.d.ts +0 -62
- package/script/oas/number/toNumber.d.ts.map +1 -1
- package/script/oas/number/toNumber.js +66 -81
- package/script/oas/object/Object.d.ts +0 -1
- package/script/oas/object/Object.d.ts.map +1 -1
- package/script/oas/object/Object.js +0 -1
- package/script/oas/object/toObject.d.ts.map +1 -1
- package/script/oas/object/toObject.js +38 -46
- package/script/oas/operation/Operation.d.ts +9 -108
- package/script/oas/operation/Operation.d.ts.map +1 -1
- package/script/oas/operation/Operation.js +16 -108
- package/script/oas/operation/toOperationsV3.d.ts.map +1 -1
- package/script/oas/operation/toOperationsV3.js +12 -7
- package/script/oas/parameter/Parameter.d.ts +12 -13
- package/script/oas/parameter/Parameter.d.ts.map +1 -1
- package/script/oas/parameter/Parameter.js +0 -3
- package/script/oas/parameter/parameter-types.d.ts +0 -20
- package/script/oas/parameter/parameter-types.d.ts.map +1 -1
- package/script/oas/parameter/parameter-types.js +1 -21
- package/script/oas/parameter/toParameterV3.d.ts.map +1 -1
- package/script/oas/parameter/toParameterV3.js +14 -11
- package/script/oas/pathItem/toPathItemV3.d.ts.map +1 -1
- package/script/oas/pathItem/toPathItemV3.js +2 -1
- package/script/oas/ref/Ref.d.ts +0 -1
- package/script/oas/ref/Ref.d.ts.map +1 -1
- package/script/oas/ref/Ref.js +0 -1
- package/script/oas/ref/toRefV31.d.ts.map +1 -1
- package/script/oas/ref/toRefV31.js +4 -1
- package/script/oas/requestBody/RequestBody.d.ts +0 -1
- package/script/oas/requestBody/RequestBody.d.ts.map +1 -1
- package/script/oas/requestBody/RequestBody.js +0 -1
- package/script/oas/requestBody/toRequestBodiesV3.d.ts.map +1 -1
- package/script/oas/requestBody/toRequestBodiesV3.js +6 -2
- package/script/oas/response/Response.d.ts +0 -1
- package/script/oas/response/Response.d.ts.map +1 -1
- package/script/oas/response/Response.js +0 -1
- package/script/oas/response/toResponseV3.d.ts.map +1 -1
- package/script/oas/response/toResponseV3.js +9 -8
- package/script/oas/schema/Schema.d.ts +0 -1
- package/script/oas/schema/Schema.d.ts.map +1 -1
- package/script/oas/schema/Schema.js +0 -1
- package/script/oas/schema/toSchemasV3.d.ts.map +1 -1
- package/script/oas/schema/toSchemasV3.js +10 -16
- package/script/oas/securitySchemes/toSecuritySchemes.d.ts.map +1 -1
- package/script/oas/securitySchemes/toSecuritySchemes.js +22 -9
- package/script/oas/server/Server.d.ts +0 -1
- package/script/oas/server/Server.d.ts.map +1 -1
- package/script/oas/server/Server.js +0 -1
- package/script/oas/server/toServerV3.d.ts.map +1 -1
- package/script/oas/server/toServerV3.js +2 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts +1 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.d.ts.map +1 -1
- package/script/oas/specificationExtensions/toSpecificationExtensionsV3.js +17 -13
- package/script/oas/string/String.d.ts +16 -88
- package/script/oas/string/String.d.ts.map +1 -1
- package/script/oas/string/String.js +33 -91
- package/script/oas/string/string-types.d.ts +23 -80
- package/script/oas/string/string-types.d.ts.map +1 -1
- package/script/oas/string/string-types.js +6 -2
- package/script/oas/string/toString.d.ts.map +1 -1
- package/script/oas/string/toString.js +68 -18
- package/script/oas/tag/Tag.d.ts +0 -1
- package/script/oas/tag/Tag.d.ts.map +1 -1
- package/script/oas/tag/Tag.js +0 -1
- package/script/oas/union/toUnion.d.ts.map +1 -1
- package/script/oas/union/toUnion.js +6 -2
- 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 +8 -1
- package/script/oas/unknown/toUnknown.js +1 -1
- package/script/oas/void/Void.d.ts +0 -1
- package/script/oas/void/Void.d.ts.map +1 -1
- package/script/oas/void/Void.js +0 -1
- package/script/run/toArtifacts.d.ts +2 -2
- package/script/run/toArtifacts.d.ts.map +1 -1
- package/script/run/toArtifacts.js +2 -2
- package/script/types/Brand.d.ts +0 -1
- package/script/types/Brand.d.ts.map +1 -1
- package/script/types/Brand.js +0 -10
- package/script/types/CustomValue.d.ts +0 -1
- package/script/types/CustomValue.d.ts.map +1 -1
- package/script/types/CustomValue.js +0 -1
- package/script/types/DenoJson.d.ts +0 -1
- package/script/types/DenoJson.d.ts.map +1 -1
- package/script/types/DenoJson.js +0 -1
- package/script/types/EnrichmentRequest.d.ts +0 -1
- package/script/types/EnrichmentRequest.d.ts.map +1 -1
- package/script/types/EnrichmentRequest.js +1 -2
- package/script/types/Enrichments.d.ts +0 -1
- package/script/types/Enrichments.d.ts.map +1 -1
- package/script/types/Enrichments.js +35 -36
- package/script/types/GeneratorKeys.d.ts +0 -1
- package/script/types/GeneratorKeys.d.ts.map +1 -1
- package/script/types/GeneratorKeys.js +2 -3
- package/script/types/Manifest.d.ts +0 -1
- package/script/types/Manifest.d.ts.map +1 -1
- package/script/types/Manifest.js +35 -36
- package/script/types/Method.d.ts +0 -165
- package/script/types/Method.d.ts.map +1 -1
- package/script/types/Method.js +1 -141
- package/script/types/ModuleExport.d.ts +0 -1
- package/script/types/ModuleExport.d.ts.map +1 -1
- package/script/types/ModuleExport.js +0 -1
- package/script/types/PrettierConfig.d.ts +0 -1
- package/script/types/PrettierConfig.d.ts.map +1 -1
- package/script/types/PrettierConfig.js +35 -36
- package/script/types/Preview.d.ts +0 -1
- package/script/types/Preview.d.ts.map +1 -1
- package/script/types/Preview.js +35 -36
- package/script/types/RefName.d.ts +0 -1
- package/script/types/RefName.d.ts.map +1 -1
- package/script/types/RefName.js +1 -2
- package/script/types/Results.d.ts +0 -1
- package/script/types/Results.d.ts.map +1 -1
- package/script/types/Results.js +35 -36
- package/script/types/Settings.d.ts +0 -1
- package/script/types/Settings.d.ts.map +1 -1
- package/script/types/Settings.js +35 -36
- package/script/types/TypeSystem.d.ts +0 -1
- package/script/types/TypeSystem.d.ts.map +1 -1
- package/script/types/TypeSystem.js +0 -1
- package/script/typescript/FunctionParameter.d.ts.map +1 -1
- package/script/typescript/FunctionParameter.js +2 -2
- package/esm/_dnt.polyfills.d.ts +0 -12
- package/esm/_dnt.polyfills.d.ts.map +0 -1
- package/esm/_dnt.polyfills.js +0 -15
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts +0 -33
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_chars.js +0 -48
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts +0 -66
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_loader_state.js +0 -1427
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts +0 -44
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_schema.js +0 -117
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/binary.js +0 -103
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/bool.js +0 -32
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/float.js +0 -96
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/int.js +0 -159
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/map.js +0 -14
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/merge.js +0 -10
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/nil.js +0 -22
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/omap.js +0 -29
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.js +0 -19
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.js +0 -30
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/seq.js +0 -10
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/set.js +0 -14
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/str.js +0 -9
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.js +0 -81
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts +0 -3
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.js +0 -20
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts +0 -32
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_type.js +0 -6
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts +0 -4
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/_utils.js +0 -13
- package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts +0 -76
- package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +0 -1
- package/esm/deps/jsr.io/@std/yaml/1.0.10/parse.js +0 -93
- package/esm/helpers/generationStats.d.ts +0 -312
- package/esm/helpers/generationStats.d.ts.map +0 -1
- package/esm/helpers/generationStats.js +0 -330
- package/esm/oas/_helpers/parseDefault.d.ts +0 -164
- package/esm/oas/_helpers/parseDefault.d.ts.map +0 -1
- package/esm/oas/_helpers/parseDefault.js +0 -144
- package/esm/oas/_helpers/parseExample.d.ts +0 -123
- package/esm/oas/_helpers/parseExample.d.ts.map +0 -1
- package/esm/oas/_helpers/parseExample.js +0 -103
- package/esm/oas/_helpers/parseFormat.d.ts +0 -169
- package/esm/oas/_helpers/parseFormat.d.ts.map +0 -1
- package/esm/oas/_helpers/parseFormat.js +0 -154
- package/esm/oas/components/components-types.d.ts +0 -19
- package/esm/oas/components/components-types.d.ts.map +0 -1
- package/esm/oas/components/components-types.js +0 -21
- package/esm/oas/document/document-types.d.ts +0 -16
- package/esm/oas/document/document-types.d.ts.map +0 -1
- package/esm/oas/document/document-types.js +0 -18
- package/esm/oas/header/header-types.d.ts +0 -50
- package/esm/oas/header/header-types.d.ts.map +0 -1
- package/esm/oas/header/header-types.js +0 -30
- package/esm/oas/mediaType/mediaType-types.d.ts +0 -29
- package/esm/oas/mediaType/mediaType-types.d.ts.map +0 -1
- package/esm/oas/mediaType/mediaType-types.js +0 -18
- package/esm/oas/object/object-types.d.ts +0 -19
- package/esm/oas/object/object-types.d.ts.map +0 -1
- package/esm/oas/object/object-types.js +0 -23
- package/esm/oas/operation/operation-types.d.ts +0 -273
- package/esm/oas/operation/operation-types.d.ts.map +0 -1
- package/esm/oas/operation/operation-types.js +0 -133
- package/esm/oas/pathItem/pathItem-types.d.ts +0 -12
- package/esm/oas/pathItem/pathItem-types.d.ts.map +0 -1
- package/esm/oas/pathItem/pathItem-types.js +0 -12
- package/esm/oas/requestBody/requestBody-types.d.ts +0 -10
- package/esm/oas/requestBody/requestBody-types.d.ts.map +0 -1
- package/esm/oas/requestBody/requestBody-types.js +0 -9
- package/esm/oas/response/response-types.d.ts +0 -12
- package/esm/oas/response/response-types.d.ts.map +0 -1
- package/esm/oas/response/response-types.js +0 -11
- package/esm/oas/schema/schema-types.d.ts +0 -12
- package/esm/oas/schema/schema-types.d.ts.map +0 -1
- package/esm/oas/schema/schema-types.js +0 -19
- package/esm/oas/union/union-types.d.ts +0 -34
- package/esm/oas/union/union-types.d.ts.map +0 -1
- package/esm/oas/union/union-types.js +0 -19
- package/esm/run/toV3JsonDocument.d.ts +0 -151
- package/esm/run/toV3JsonDocument.d.ts.map +0 -1
- package/esm/run/toV3JsonDocument.js +0 -172
- package/script/_dnt.polyfills.d.ts +0 -12
- package/script/_dnt.polyfills.d.ts.map +0 -1
- package/script/_dnt.polyfills.js +0 -16
- package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts +0 -33
- package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_chars.js +0 -55
- package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts +0 -66
- package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_loader_state.js +0 -1431
- package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts +0 -44
- package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_schema.js +0 -121
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/binary.js +0 -106
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/bool.js +0 -35
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/float.js +0 -99
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/int.js +0 -162
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/map.js +0 -17
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/merge.js +0 -13
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/nil.js +0 -25
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/omap.js +0 -32
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/pairs.js +0 -22
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/regexp.js +0 -33
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/seq.js +0 -13
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/set.js +0 -17
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/str.js +0 -12
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/timestamp.js +0 -84
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts +0 -3
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type/undefined.js +0 -23
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts +0 -32
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_type.js +0 -7
- package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts +0 -4
- package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/_utils.js +0 -18
- package/script/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts +0 -76
- package/script/deps/jsr.io/@std/yaml/1.0.10/parse.d.ts.map +0 -1
- package/script/deps/jsr.io/@std/yaml/1.0.10/parse.js +0 -97
- package/script/helpers/generationStats.d.ts +0 -312
- package/script/helpers/generationStats.d.ts.map +0 -1
- package/script/helpers/generationStats.js +0 -339
- package/script/oas/_helpers/parseDefault.d.ts +0 -164
- package/script/oas/_helpers/parseDefault.d.ts.map +0 -1
- package/script/oas/_helpers/parseDefault.js +0 -181
- package/script/oas/_helpers/parseExample.d.ts +0 -123
- package/script/oas/_helpers/parseExample.d.ts.map +0 -1
- package/script/oas/_helpers/parseExample.js +0 -140
- package/script/oas/_helpers/parseFormat.d.ts +0 -169
- package/script/oas/_helpers/parseFormat.d.ts.map +0 -1
- package/script/oas/_helpers/parseFormat.js +0 -191
- package/script/oas/components/components-types.d.ts +0 -19
- package/script/oas/components/components-types.d.ts.map +0 -1
- package/script/oas/components/components-types.js +0 -57
- package/script/oas/document/document-types.d.ts +0 -16
- package/script/oas/document/document-types.d.ts.map +0 -1
- package/script/oas/document/document-types.js +0 -54
- package/script/oas/header/header-types.d.ts +0 -50
- package/script/oas/header/header-types.d.ts.map +0 -1
- package/script/oas/header/header-types.js +0 -66
- package/script/oas/mediaType/mediaType-types.d.ts +0 -29
- package/script/oas/mediaType/mediaType-types.d.ts.map +0 -1
- package/script/oas/mediaType/mediaType-types.js +0 -54
- package/script/oas/object/object-types.d.ts +0 -19
- package/script/oas/object/object-types.d.ts.map +0 -1
- package/script/oas/object/object-types.js +0 -59
- package/script/oas/operation/operation-types.d.ts +0 -273
- package/script/oas/operation/operation-types.d.ts.map +0 -1
- package/script/oas/operation/operation-types.js +0 -169
- package/script/oas/pathItem/pathItem-types.d.ts +0 -12
- package/script/oas/pathItem/pathItem-types.d.ts.map +0 -1
- package/script/oas/pathItem/pathItem-types.js +0 -48
- package/script/oas/requestBody/requestBody-types.d.ts +0 -10
- package/script/oas/requestBody/requestBody-types.d.ts.map +0 -1
- package/script/oas/response/response-types.d.ts +0 -12
- package/script/oas/response/response-types.d.ts.map +0 -1
- package/script/oas/schema/schema-types.d.ts +0 -12
- package/script/oas/schema/schema-types.d.ts.map +0 -1
- package/script/oas/schema/schema-types.js +0 -55
- package/script/oas/union/union-types.d.ts +0 -34
- package/script/oas/union/union-types.d.ts.map +0 -1
- package/script/oas/union/union-types.js +0 -55
- package/script/run/toV3JsonDocument.d.ts +0 -151
- package/script/run/toV3JsonDocument.d.ts.map +0 -1
- package/script/run/toV3JsonDocument.js +0 -180
|
@@ -1,37 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
36
3
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
37
4
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
@@ -45,121 +12,10 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
45
12
|
};
|
|
46
13
|
var _ParseContext_refStackTrails, _ParseContext_refErrors;
|
|
47
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.
|
|
49
|
-
require("../_dnt.polyfills.js");
|
|
50
|
-
const parse_js_1 = require("../deps/jsr.io/@std/yaml/1.0.10/parse.js");
|
|
15
|
+
exports.ParseContext = void 0;
|
|
51
16
|
const toDocumentFieldsV3_js_1 = require("../oas/document/toDocumentFieldsV3.js");
|
|
52
17
|
const Document_js_1 = require("../oas/document/Document.js");
|
|
53
18
|
const tracer_js_1 = require("../helpers/tracer.js");
|
|
54
|
-
const v = __importStar(require("valibot"));
|
|
55
|
-
/**
|
|
56
|
-
* The parsing context for the first phase of the SKMTC transformation pipeline.
|
|
57
|
-
*
|
|
58
|
-
* `ParseContext` is responsible for converting OpenAPI v3 JSON documents into
|
|
59
|
-
* the internal OAS (OpenAPI Schema) object representation used by SKMTC. It
|
|
60
|
-
* provides comprehensive error handling, validation, and issue tracking during
|
|
61
|
-
* the parsing process.
|
|
62
|
-
*
|
|
63
|
-
* This context handles the complex task of transforming external OpenAPI
|
|
64
|
-
* specifications into type-safe internal representations while maintaining
|
|
65
|
-
* detailed information about any parsing issues or inconsistencies found.
|
|
66
|
-
*
|
|
67
|
-
* ## Key Features
|
|
68
|
-
*
|
|
69
|
-
* - **JSON to OAS Conversion**: Transforms OpenAPI JSON into typed OAS objects
|
|
70
|
-
* - **Validation & Error Handling**: Comprehensive validation with detailed error reporting
|
|
71
|
-
* - **Issue Tracking**: Collects warnings and errors with precise location information
|
|
72
|
-
* - **Reference Management**: Handles complex reference resolution and tracking
|
|
73
|
-
* - **Logging Integration**: Provides detailed logging and tracing capabilities
|
|
74
|
-
* - **Silent Mode**: Can suppress console output while maintaining error collection
|
|
75
|
-
*
|
|
76
|
-
* @example Basic parsing usage
|
|
77
|
-
* ```typescript
|
|
78
|
-
* import { ParseContext } from '@skmtc/core';
|
|
79
|
-
*
|
|
80
|
-
* const parseContext = new ParseContext({
|
|
81
|
-
* documentObject: openApiJsonDocument,
|
|
82
|
-
* logger: myLogger,
|
|
83
|
-
* stackTrail: traceStack,
|
|
84
|
-
* silent: false
|
|
85
|
-
* });
|
|
86
|
-
*
|
|
87
|
-
* const oasDocument = parseContext.parse();
|
|
88
|
-
*
|
|
89
|
-
* // Check for parsing issues
|
|
90
|
-
* if (parseContext.issues.length > 0) {
|
|
91
|
-
* console.log('Parsing issues found:');
|
|
92
|
-
* parseContext.issues.forEach(issue => {
|
|
93
|
-
* console.log(`${issue.level}: ${issue.location} - ${issue.message || issue.error?.message}`);
|
|
94
|
-
* });
|
|
95
|
-
* }
|
|
96
|
-
*
|
|
97
|
-
* // Use the parsed document
|
|
98
|
-
* console.log('Parsed schemas:', Object.keys(oasDocument.components?.schemas || {}));
|
|
99
|
-
* ```
|
|
100
|
-
*
|
|
101
|
-
* @example Error handling during parsing
|
|
102
|
-
* ```typescript
|
|
103
|
-
* const parseContext = new ParseContext({
|
|
104
|
-
* documentObject: malformedOpenApiDoc,
|
|
105
|
-
* logger: logger,
|
|
106
|
-
* stackTrail: stack,
|
|
107
|
-
* silent: true
|
|
108
|
-
* });
|
|
109
|
-
*
|
|
110
|
-
* try {
|
|
111
|
-
* const parsed = parseContext.parse();
|
|
112
|
-
*
|
|
113
|
-
* // Separate errors from warnings
|
|
114
|
-
* const errors = parseContext.issues.filter(issue => issue.level === 'error');
|
|
115
|
-
* const warnings = parseContext.issues.filter(issue => issue.level === 'warning');
|
|
116
|
-
*
|
|
117
|
-
* if (errors.length > 0) {
|
|
118
|
-
* console.error(`${errors.length} parsing errors found`);
|
|
119
|
-
* errors.forEach(error => {
|
|
120
|
-
* console.error(`Error at ${error.location}: ${error.error.message}`);
|
|
121
|
-
* });
|
|
122
|
-
* }
|
|
123
|
-
*
|
|
124
|
-
* if (warnings.length > 0) {
|
|
125
|
-
* console.warn(`${warnings.length} parsing warnings found`);
|
|
126
|
-
* warnings.forEach(warning => {
|
|
127
|
-
* console.warn(`Warning at ${warning.location}: ${warning.message}`);
|
|
128
|
-
* });
|
|
129
|
-
* }
|
|
130
|
-
* } catch (error) {
|
|
131
|
-
* console.error('Critical parsing failure:', error);
|
|
132
|
-
* }
|
|
133
|
-
* ```
|
|
134
|
-
*
|
|
135
|
-
* @example Integration with CoreContext
|
|
136
|
-
* ```typescript
|
|
137
|
-
* // Typically used within CoreContext.parse()
|
|
138
|
-
* class CustomCoreContext extends CoreContext {
|
|
139
|
-
* parseWithCustomValidation(document: OpenAPIV3.Document) {
|
|
140
|
-
* const parseContext = new ParseContext({
|
|
141
|
-
* documentObject: document,
|
|
142
|
-
* logger: this.logger,
|
|
143
|
-
* stackTrail: this.stackTrail,
|
|
144
|
-
* silent: this.silent
|
|
145
|
-
* });
|
|
146
|
-
*
|
|
147
|
-
* const parsed = parseContext.parse();
|
|
148
|
-
*
|
|
149
|
-
* // Custom post-processing based on issues
|
|
150
|
-
* const criticalErrors = parseContext.issues.filter(issue =>
|
|
151
|
-
* issue.level === 'error' && issue.type === 'schema-validation'
|
|
152
|
-
* );
|
|
153
|
-
*
|
|
154
|
-
* if (criticalErrors.length > 0) {
|
|
155
|
-
* throw new Error(`Schema validation failed: ${criticalErrors.length} critical errors`);
|
|
156
|
-
* }
|
|
157
|
-
*
|
|
158
|
-
* return parsed;
|
|
159
|
-
* }
|
|
160
|
-
* }
|
|
161
|
-
* ```
|
|
162
|
-
*/
|
|
163
19
|
class ParseContext {
|
|
164
20
|
/**
|
|
165
21
|
* Creates a new ParseContext instance for the parsing phase.
|
|
@@ -276,16 +132,6 @@ class ParseContext {
|
|
|
276
132
|
refErrors ? refErrors.push(error) : (__classPrivateFieldGet(this, _ParseContext_refErrors, "f")[$ref] = [error]);
|
|
277
133
|
}
|
|
278
134
|
}
|
|
279
|
-
/**
|
|
280
|
-
* Executes a function within a traced context for debugging and monitoring.
|
|
281
|
-
*
|
|
282
|
-
* @param token - Trace identifier or path segments
|
|
283
|
-
* @param fn - Function to execute within the trace context
|
|
284
|
-
* @returns The result of the traced function execution
|
|
285
|
-
*/
|
|
286
|
-
trace(token, fn) {
|
|
287
|
-
return (0, tracer_js_1.tracer)(this.stackTrail, token, fn, this.logger);
|
|
288
|
-
}
|
|
289
135
|
/**
|
|
290
136
|
* Logs warnings for fields that were skipped during parsing.
|
|
291
137
|
*
|
|
@@ -302,32 +148,23 @@ class ParseContext {
|
|
|
302
148
|
});
|
|
303
149
|
});
|
|
304
150
|
}
|
|
305
|
-
/**
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
}
|
|
316
|
-
this.logIssue({
|
|
317
|
-
key,
|
|
318
|
-
parent,
|
|
319
|
-
level: 'warning',
|
|
320
|
-
message: toMessage(value),
|
|
321
|
-
type
|
|
322
|
-
});
|
|
323
|
-
}
|
|
151
|
+
// /**
|
|
152
|
+
// * Executes a function within a traced context for debugging and monitoring.
|
|
153
|
+
// *
|
|
154
|
+
// * @param token - Trace identifier or path segments
|
|
155
|
+
// * @param fn - Function to execute within the trace context
|
|
156
|
+
// * @returns The result of the traced function execution
|
|
157
|
+
// */
|
|
158
|
+
// trace<T>(token: string, fn: () => T): T {
|
|
159
|
+
// return tracer(this.stackTrail, token, fn, this.logger)
|
|
160
|
+
// }
|
|
324
161
|
/**
|
|
325
162
|
* Logs a parsing issue with associated key context.
|
|
326
163
|
*
|
|
327
164
|
* @param args - Issue arguments including key, parent object, and issue details
|
|
328
165
|
*/
|
|
329
166
|
logIssue({ key, parent, type, ...issue }) {
|
|
330
|
-
this.
|
|
167
|
+
(0, tracer_js_1.tracer)(this.stackTrail, key, () => this.logIssueNoKey({ parent, type, ...issue }));
|
|
331
168
|
}
|
|
332
169
|
/**
|
|
333
170
|
* Logs a parsing issue without specific key context.
|
|
@@ -356,20 +193,3 @@ class ParseContext {
|
|
|
356
193
|
}
|
|
357
194
|
exports.ParseContext = ParseContext;
|
|
358
195
|
_ParseContext_refStackTrails = new WeakMap(), _ParseContext_refErrors = new WeakMap();
|
|
359
|
-
/**
|
|
360
|
-
* Parses an OpenAPI v3 schema from string format (JSON or YAML).
|
|
361
|
-
*
|
|
362
|
-
* Automatically detects the format based on content and parses accordingly.
|
|
363
|
-
*
|
|
364
|
-
* @param schema - Schema string in JSON or YAML format
|
|
365
|
-
* @returns Parsed OpenAPI v3 document object
|
|
366
|
-
*/
|
|
367
|
-
const parseSchema = (schema) => {
|
|
368
|
-
if (schema.trimStart().startsWith('{')) {
|
|
369
|
-
return JSON.parse(schema);
|
|
370
|
-
}
|
|
371
|
-
else {
|
|
372
|
-
return (0, parse_js_1.parse)(schema);
|
|
373
|
-
}
|
|
374
|
-
};
|
|
375
|
-
exports.parseSchema = parseSchema;
|
|
@@ -47,7 +47,6 @@ type ConstructorArgs = {
|
|
|
47
47
|
* - **Path Resolution**: Intelligent path resolution with base path support
|
|
48
48
|
* - **Content Collation**: Combines all generated content into organized file structures
|
|
49
49
|
* - **Metadata Generation**: Tracks file statistics (lines, characters) and relationships
|
|
50
|
-
* - **Error Tracking**: Comprehensive error handling with Sentry integration
|
|
51
50
|
* - **Performance Monitoring**: Built-in tracing and performance measurement
|
|
52
51
|
*
|
|
53
52
|
* @example Basic rendering usage
|
|
@@ -204,7 +203,6 @@ type ConstructorArgs = {
|
|
|
204
203
|
*
|
|
205
204
|
* } catch (error) {
|
|
206
205
|
* console.error('Render operation failed:', error);
|
|
207
|
-
* // Sentry automatically captures the error
|
|
208
206
|
* }
|
|
209
207
|
* ```
|
|
210
208
|
*/
|
|
@@ -239,9 +237,6 @@ export declare class RenderContext {
|
|
|
239
237
|
* formatting (if configured), resolves paths, and produces the final
|
|
240
238
|
* artifacts ready for writing to the filesystem.
|
|
241
239
|
*
|
|
242
|
-
* The method is wrapped in Sentry tracing spans for performance monitoring
|
|
243
|
-
* and includes both collation and artifact preparation phases.
|
|
244
|
-
*
|
|
245
240
|
* @returns Promise resolving to render result containing artifacts, file metadata, previews, and mappings
|
|
246
241
|
*
|
|
247
242
|
* @example
|
|
@@ -265,7 +260,7 @@ export declare class RenderContext {
|
|
|
265
260
|
* });
|
|
266
261
|
* ```
|
|
267
262
|
*/
|
|
268
|
-
render():
|
|
263
|
+
render(): Omit<RenderResult, 'results'>;
|
|
269
264
|
/**
|
|
270
265
|
* Collates all files in the context into a unified render result.
|
|
271
266
|
*
|
|
@@ -293,7 +288,7 @@ export declare class RenderContext {
|
|
|
293
288
|
* console.log(collated.files['/path/to/file.ts'].characters);
|
|
294
289
|
* ```
|
|
295
290
|
*/
|
|
296
|
-
collate():
|
|
291
|
+
collate(): FilesRenderResult;
|
|
297
292
|
/**
|
|
298
293
|
* Executes a function within a tracing context for performance monitoring.
|
|
299
294
|
*
|
|
@@ -318,7 +313,7 @@ export declare class RenderContext {
|
|
|
318
313
|
* });
|
|
319
314
|
* ```
|
|
320
315
|
*/
|
|
321
|
-
trace<T>(token: string
|
|
316
|
+
trace<T>(token: string, fn: () => T): T;
|
|
322
317
|
/**
|
|
323
318
|
* Retrieves a file from the context by its normalized path.
|
|
324
319
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RenderContext.d.ts","sourceRoot":"","sources":["../../src/context/RenderContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RenderContext.d.ts","sourceRoot":"","sources":["../../src/context/RenderContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAEpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAEjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AAGrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,KAAK,KAAK,GAAG,MAAM,yCAAyC,CAAA;AACnE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAA;AAChD,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AACrC,OAAO,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAElD;;GAEG;AACH,KAAK,eAAe,GAAG;IACrB,uCAAuC;IACvC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,GAAG,QAAQ,CAAC,CAAA;IACnC,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IACjD,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IACjD,iFAAiF;IACjF,cAAc,CAAC,EAAE,kBAAkB,CAAA;IACnC,yCAAyC;IACzC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,0CAA0C;IAC1C,UAAU,EAAE,UAAU,CAAA;IACtB,4CAA4C;IAC5C,MAAM,EAAE,GAAG,CAAC,MAAM,CAAA;IAClB,wCAAwC;IACxC,oBAAoB,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAA;CACnD,CAAA;AAsCD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+KG;AACH,qBAAa,aAAa;;IACxB,uCAAuC;IACvC,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,GAAG,QAAQ,CAAC,CAAA;IACnC,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IACjD,0CAA0C;IAC1C,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;IAGjD,yCAAyC;IACzC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,4CAA4C;IAC5C,MAAM,EAAE,MAAM,CAAA;IAGd,wCAAwC;IACxC,oBAAoB,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAA;IAElD;;;;;;;OAOG;gBACS,EACV,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,MAAM,EACN,UAAU,EACV,oBAAoB,EACrB,EAAE,eAAe;IAWlB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,MAAM,IAAI,IAAI,CAAC,YAAY,EAAE,SAAS,CAAC;IAavC;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,OAAO,IAAI,iBAAiB;IAqC5B;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,KAAK,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,CAAC,GAAG,CAAC;IAIvC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,GAAG,QAAQ;IAU1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACH,IAAI,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS;CAO7D"}
|
|
@@ -1,37 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
2
|
var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
|
|
36
3
|
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
37
4
|
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
@@ -49,14 +16,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
49
16
|
var _RenderContext_prettierConfig, _RenderContext_stackTrail;
|
|
50
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51
18
|
exports.RenderContext = void 0;
|
|
52
|
-
const dntShim = __importStar(require("../_dnt.shims.js"));
|
|
53
|
-
const Sentry = __importStar(require("@sentry/node"));
|
|
54
19
|
const tiny_invariant_1 = __importDefault(require("tiny-invariant"));
|
|
55
20
|
const normalize_js_1 = require("../deps/jsr.io/@std/path/1.1.2/normalize.js");
|
|
56
21
|
const toResolvedArtifactPath_js_1 = require("../helpers/toResolvedArtifactPath.js");
|
|
57
22
|
const tracer_js_1 = require("../helpers/tracer.js");
|
|
58
23
|
const File_js_1 = require("../dsl/File.js");
|
|
59
|
-
const js_api_1 = require("@biomejs/js-api");
|
|
60
24
|
/**
|
|
61
25
|
* The rendering context for the final phase of the SKMTC transformation pipeline.
|
|
62
26
|
*
|
|
@@ -74,7 +38,6 @@ const js_api_1 = require("@biomejs/js-api");
|
|
|
74
38
|
* - **Path Resolution**: Intelligent path resolution with base path support
|
|
75
39
|
* - **Content Collation**: Combines all generated content into organized file structures
|
|
76
40
|
* - **Metadata Generation**: Tracks file statistics (lines, characters) and relationships
|
|
77
|
-
* - **Error Tracking**: Comprehensive error handling with Sentry integration
|
|
78
41
|
* - **Performance Monitoring**: Built-in tracing and performance measurement
|
|
79
42
|
*
|
|
80
43
|
* @example Basic rendering usage
|
|
@@ -231,7 +194,6 @@ const js_api_1 = require("@biomejs/js-api");
|
|
|
231
194
|
*
|
|
232
195
|
* } catch (error) {
|
|
233
196
|
* console.error('Render operation failed:', error);
|
|
234
|
-
* // Sentry automatically captures the error
|
|
235
197
|
* }
|
|
236
198
|
* ```
|
|
237
199
|
*/
|
|
@@ -308,9 +270,6 @@ class RenderContext {
|
|
|
308
270
|
* formatting (if configured), resolves paths, and produces the final
|
|
309
271
|
* artifacts ready for writing to the filesystem.
|
|
310
272
|
*
|
|
311
|
-
* The method is wrapped in Sentry tracing spans for performance monitoring
|
|
312
|
-
* and includes both collation and artifact preparation phases.
|
|
313
|
-
*
|
|
314
273
|
* @returns Promise resolving to render result containing artifacts, file metadata, previews, and mappings
|
|
315
274
|
*
|
|
316
275
|
* @example
|
|
@@ -334,19 +293,15 @@ class RenderContext {
|
|
|
334
293
|
* });
|
|
335
294
|
* ```
|
|
336
295
|
*/
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
mappings: this.mappings
|
|
347
|
-
};
|
|
348
|
-
return rendered;
|
|
349
|
-
});
|
|
296
|
+
render() {
|
|
297
|
+
const result = this.collate();
|
|
298
|
+
const rendered = {
|
|
299
|
+
artifacts: result.artifacts,
|
|
300
|
+
files: result.files,
|
|
301
|
+
previews: this.previews,
|
|
302
|
+
mappings: this.mappings
|
|
303
|
+
};
|
|
304
|
+
return rendered;
|
|
350
305
|
}
|
|
351
306
|
/**
|
|
352
307
|
* Collates all files in the context into a unified render result.
|
|
@@ -375,9 +330,9 @@ class RenderContext {
|
|
|
375
330
|
* console.log(collated.files['/path/to/file.ts'].characters);
|
|
376
331
|
* ```
|
|
377
332
|
*/
|
|
378
|
-
|
|
333
|
+
collate() {
|
|
379
334
|
const fileEntries = Array.from(this.files.entries());
|
|
380
|
-
const
|
|
335
|
+
const fileObjects = fileEntries
|
|
381
336
|
.map(([destinationPath, file]) => {
|
|
382
337
|
return this.trace(destinationPath, () => {
|
|
383
338
|
const renderedFile = renderFile({
|
|
@@ -391,7 +346,6 @@ class RenderContext {
|
|
|
391
346
|
});
|
|
392
347
|
})
|
|
393
348
|
.filter(fileObject => fileObject !== undefined);
|
|
394
|
-
const fileObjects = await Promise.all(fileObjectPromises);
|
|
395
349
|
const output = {
|
|
396
350
|
artifacts: {},
|
|
397
351
|
files: {}
|
|
@@ -431,7 +385,7 @@ class RenderContext {
|
|
|
431
385
|
* ```
|
|
432
386
|
*/
|
|
433
387
|
trace(token, fn) {
|
|
434
|
-
return (0, tracer_js_1.tracer)(__classPrivateFieldGet(this, _RenderContext_stackTrail, "f"), token, fn
|
|
388
|
+
return (0, tracer_js_1.tracer)(__classPrivateFieldGet(this, _RenderContext_stackTrail, "f"), token, fn);
|
|
435
389
|
}
|
|
436
390
|
/**
|
|
437
391
|
* Retrieves a file from the context by its normalized path.
|
|
@@ -525,86 +479,13 @@ _RenderContext_prettierConfig = new WeakMap(), _RenderContext_stackTrail = new W
|
|
|
525
479
|
* console.log(fileObject.characters); // 11
|
|
526
480
|
* ```
|
|
527
481
|
*/
|
|
528
|
-
const renderFile =
|
|
482
|
+
const renderFile = ({ content, destinationPath, basePath }) => {
|
|
529
483
|
const path = (0, toResolvedArtifactPath_js_1.toResolvedArtifactPath)({ basePath, destinationPath });
|
|
530
|
-
const formatted = await formatFile({ content, prettierConfig });
|
|
531
484
|
return {
|
|
532
|
-
content:
|
|
485
|
+
content: content,
|
|
533
486
|
path,
|
|
534
487
|
destinationPath,
|
|
535
|
-
lines:
|
|
536
|
-
characters:
|
|
488
|
+
lines: content.split('\n').length,
|
|
489
|
+
characters: content.length
|
|
537
490
|
};
|
|
538
491
|
};
|
|
539
|
-
/**
|
|
540
|
-
* Maps Prettier configuration to Biome configuration format.
|
|
541
|
-
* Maintains backward compatibility with existing .prettierrc.json files.
|
|
542
|
-
*/
|
|
543
|
-
const toBiomeConfig = (prettierConfig) => {
|
|
544
|
-
return {
|
|
545
|
-
formatter: {
|
|
546
|
-
enabled: true,
|
|
547
|
-
formatWithErrors: false,
|
|
548
|
-
indentStyle: prettierConfig.useTabs ? 'tab' : 'space',
|
|
549
|
-
indentWidth: prettierConfig.tabWidth ?? 2,
|
|
550
|
-
lineWidth: prettierConfig.printWidth ?? 80,
|
|
551
|
-
lineEnding: prettierConfig.endOfLine === 'crlf' ? 'crlf' : 'lf'
|
|
552
|
-
},
|
|
553
|
-
javascript: {
|
|
554
|
-
formatter: {
|
|
555
|
-
enabled: true,
|
|
556
|
-
quoteStyle: prettierConfig.singleQuote ? 'single' : 'double',
|
|
557
|
-
jsxQuoteStyle: prettierConfig.jsxSingleQuote ? 'single' : 'double',
|
|
558
|
-
quoteProperties: 'asNeeded',
|
|
559
|
-
trailingCommas: prettierConfig.trailingComma === 'all'
|
|
560
|
-
? 'all'
|
|
561
|
-
: prettierConfig.trailingComma === 'es5'
|
|
562
|
-
? 'es5'
|
|
563
|
-
: 'none',
|
|
564
|
-
semicolons: prettierConfig.semi ? 'always' : 'asNeeded',
|
|
565
|
-
arrowParentheses: prettierConfig.arrowParens === 'always' ? 'always' : 'asNeeded',
|
|
566
|
-
bracketSpacing: prettierConfig.bracketSpacing ?? true,
|
|
567
|
-
bracketSameLine: prettierConfig.bracketSameLine ?? false
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
};
|
|
571
|
-
};
|
|
572
|
-
/**
|
|
573
|
-
* Biome instance cache to avoid recreating instances
|
|
574
|
-
*/
|
|
575
|
-
let biomeInstance = null;
|
|
576
|
-
let biomeProjectKey = null;
|
|
577
|
-
const getBiomeInstance = async () => {
|
|
578
|
-
if (!biomeInstance || biomeProjectKey === null) {
|
|
579
|
-
// Initialize Biome with the Node distribution
|
|
580
|
-
biomeInstance = await js_api_1.Biome.create({
|
|
581
|
-
distribution: js_api_1.Distribution.NODE
|
|
582
|
-
});
|
|
583
|
-
const { projectKey } = biomeInstance.openProject(dntShim.Deno.cwd());
|
|
584
|
-
biomeProjectKey = projectKey;
|
|
585
|
-
}
|
|
586
|
-
return { biome: biomeInstance, projectKey: biomeProjectKey };
|
|
587
|
-
};
|
|
588
|
-
const formatFile = async ({ content, prettierConfig }) => {
|
|
589
|
-
try {
|
|
590
|
-
if (!prettierConfig) {
|
|
591
|
-
console.log('NO PRETTIER CONFIG');
|
|
592
|
-
return content;
|
|
593
|
-
}
|
|
594
|
-
const { biome, projectKey } = await getBiomeInstance();
|
|
595
|
-
// Apply configuration from Prettier config
|
|
596
|
-
const biomeConfig = toBiomeConfig(prettierConfig);
|
|
597
|
-
biome.applyConfiguration(projectKey, biomeConfig);
|
|
598
|
-
// Format content - using .ts extension for TypeScript parser
|
|
599
|
-
const result = biome.formatContent(projectKey, content, {
|
|
600
|
-
filePath: 'generated.ts'
|
|
601
|
-
});
|
|
602
|
-
console.log('FORMATTED', result.content);
|
|
603
|
-
return result.content;
|
|
604
|
-
}
|
|
605
|
-
catch (e) {
|
|
606
|
-
console.error('Biome formatting error:', e);
|
|
607
|
-
// Fallback to unformatted content on error
|
|
608
|
-
return content;
|
|
609
|
-
}
|
|
610
|
-
};
|