ts-openapi-codegen 2.0.0-beta.9 → 2.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +177 -18
- package/README.rus.md +177 -21
- package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.d.ts +2 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.js +365 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.d.ts +2 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.js +142 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.d.ts +2 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.js +137 -0
- package/dist/cli/analyzeDiff/analyzeDiff.d.ts +17 -0
- package/dist/cli/analyzeDiff/analyzeDiff.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/analyzeDiff.js +105 -0
- package/dist/cli/analyzeDiff/buildLegacyReport.d.ts +17 -0
- package/dist/cli/analyzeDiff/buildLegacyReport.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/buildLegacyReport.js +54 -0
- package/dist/cli/analyzeDiff/ciSummary.d.ts +6 -0
- package/dist/cli/analyzeDiff/ciSummary.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/ciSummary.js +20 -0
- package/dist/cli/analyzeDiff/diffEngine.d.ts +54 -0
- package/dist/cli/analyzeDiff/diffEngine.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/diffEngine.js +209 -0
- package/dist/cli/analyzeDiff/ignoreRules.d.ts +33 -0
- package/dist/cli/analyzeDiff/ignoreRules.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/ignoreRules.js +93 -0
- package/dist/cli/analyzeDiff/ignoreSemanticChanges.d.ts +10 -0
- package/dist/cli/analyzeDiff/ignoreSemanticChanges.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/ignoreSemanticChanges.js +84 -0
- package/dist/cli/analyzeDiff/logLegacyReport.d.ts +6 -0
- package/dist/cli/analyzeDiff/logLegacyReport.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/logLegacyReport.js +29 -0
- package/dist/cli/analyzeDiff/miracles.d.ts +89 -0
- package/dist/cli/analyzeDiff/miracles.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/miracles.js +325 -0
- package/dist/cli/analyzeDiff/pluginPaths.d.ts +5 -0
- package/dist/cli/analyzeDiff/pluginPaths.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/pluginPaths.js +13 -0
- package/dist/cli/analyzeDiff/report.d.ts +3 -0
- package/dist/cli/analyzeDiff/report.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/report.js +7 -0
- package/dist/cli/analyzeDiff/semanticDiffContext.d.ts +6 -0
- package/dist/cli/analyzeDiff/semanticDiffContext.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/semanticDiffContext.js +16 -0
- package/dist/cli/analyzeDiff/specParser.d.ts +22 -0
- package/dist/cli/analyzeDiff/specParser.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/specParser.js +80 -0
- package/dist/cli/analyzeDiff/types.d.ts +61 -0
- package/dist/cli/analyzeDiff/types.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/types.js +2 -0
- package/dist/cli/analyzeDiff/writeLegacyReport.d.ts +6 -0
- package/dist/cli/analyzeDiff/writeLegacyReport.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/writeLegacyReport.js +21 -0
- package/dist/cli/checkAndUpdateConfig/checkConfig.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/checkConfig.js +13 -8
- package/dist/cli/checkAndUpdateConfig/constants.d.ts +0 -9
- package/dist/cli/checkAndUpdateConfig/constants.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/constants.js +1 -10
- package/dist/cli/checkAndUpdateConfig/updateConfig.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/updateConfig.js +11 -7
- package/dist/cli/checkAndUpdateConfig/utils/selectConfigAction.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/selectConfigAction.js +6 -3
- package/dist/cli/checkAndUpdateConfig/utils/updateExistingConfigFile.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/updateExistingConfigFile.js +3 -2
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.js +5 -0
- package/dist/cli/checkAndUpdateConfig/utils/writeExampleConfigFile.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/writeExampleConfigFile.js +2 -2
- package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.d.ts +2 -0
- package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.d.ts.map +1 -0
- package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.js +152 -0
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts +6 -2
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts.map +1 -1
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.js +70 -22
- package/dist/cli/index.js +62 -5
- package/dist/cli/initOpenApiConfig/init.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/init.js +19 -6
- package/dist/cli/initOpenApiConfig/initConfig.d.ts +1 -0
- package/dist/cli/initOpenApiConfig/initConfig.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/initConfig.js +47 -24
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts +8 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.js +40 -8
- package/dist/cli/initOpenApiConfig/utils/buildConfig.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/buildConfig.js +60 -0
- package/dist/cli/initOpenApiConfig/utils/validateSpecFile.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/validateSpecFile.js +2 -1
- package/dist/cli/initOpenApiConfig/utils/writeConfigFile.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/writeConfigFile.js +2 -1
- package/dist/cli/interactive/confirmDialog.d.ts.map +1 -1
- package/dist/cli/interactive/confirmDialog.js +3 -2
- package/dist/cli/interactive/constants.d.ts +2 -2
- package/dist/cli/interactive/constants.js +8 -8
- package/dist/cli/interactive/selectDialog.d.ts.map +1 -1
- package/dist/cli/interactive/selectDialog.js +11 -6
- package/dist/cli/previewChanges/previewChanges.d.ts.map +1 -1
- package/dist/cli/previewChanges/previewChanges.js +151 -39
- package/dist/cli/previewChanges/utils/updateOutputPaths.d.ts.map +1 -1
- package/dist/cli/previewChanges/utils/updateOutputPaths.js +6 -0
- package/dist/cli/schemas/analyzeDiff.d.ts +14 -0
- package/dist/cli/schemas/analyzeDiff.d.ts.map +1 -0
- package/dist/cli/schemas/analyzeDiff.js +28 -0
- package/dist/cli/schemas/generate.d.ts +9 -0
- package/dist/cli/schemas/generate.d.ts.map +1 -1
- package/dist/cli/schemas/generate.js +9 -0
- package/dist/cli/schemas/index.d.ts +3 -1
- package/dist/cli/schemas/index.d.ts.map +1 -1
- package/dist/cli/schemas/index.js +2 -0
- package/dist/common/Consts.d.ts +1 -0
- package/dist/common/Consts.d.ts.map +1 -1
- package/dist/common/Consts.js +19 -2
- package/dist/common/Logger.d.ts +20 -1
- package/dist/common/Logger.d.ts.map +1 -1
- package/dist/common/Logger.js +70 -9
- package/dist/common/LoggerMessages.d.ts +136 -33
- package/dist/common/LoggerMessages.d.ts.map +1 -1
- package/dist/common/LoggerMessages.js +119 -45
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.js +20 -4
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts +4 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts +10 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts +10 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts +10 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts +77 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.js +41 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts +79 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.js +19 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts +326 -28
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.js +15 -17
- package/dist/common/VersionedSchema/CommonSchemas.d.ts +52 -4
- package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.js +48 -7
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts +6 -2
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.d.ts +4 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts +4 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +6 -2
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts +6 -2
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts +6 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts +4 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts +4 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +6 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.js +40 -1
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.d.ts +2 -0
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.js +185 -0
- package/dist/common/VersionedSchema/Utils/__tests__/compareShapes.test.js +20 -3
- package/dist/common/VersionedSchema/Utils/__tests__/migrateDataToLatestSchemaVersion.test.js +19 -1
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts +4 -0
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.js +68 -23
- package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.d.ts +1 -1
- package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.js +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts +10 -0
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.js +34 -15
- package/dist/common/__tests__/Logger.test.d.ts +2 -0
- package/dist/common/__tests__/Logger.test.d.ts.map +1 -0
- package/dist/common/__tests__/Logger.test.js +100 -0
- package/dist/common/utils/__tests__/convertArrayToObject.test.js +67 -169
- package/dist/common/utils/__tests__/eslintFix.test.d.ts +2 -0
- package/dist/common/utils/__tests__/eslintFix.test.d.ts.map +1 -0
- package/dist/common/utils/__tests__/eslintFix.test.js +134 -0
- package/dist/common/utils/__tests__/format.test.d.ts +2 -0
- package/dist/common/utils/__tests__/format.test.d.ts.map +1 -0
- package/dist/common/utils/__tests__/format.test.js +90 -0
- package/dist/common/utils/convertArrayToObject.d.ts.map +1 -1
- package/dist/common/utils/convertArrayToObject.js +54 -14
- package/dist/common/utils/eslintFix.d.ts +7 -0
- package/dist/common/utils/eslintFix.d.ts.map +1 -0
- package/dist/common/utils/eslintFix.js +78 -0
- package/dist/common/utils/format.d.ts +1 -1
- package/dist/common/utils/format.d.ts.map +1 -1
- package/dist/common/utils/format.js +39 -15
- package/dist/common/utils/jsonPath.d.ts +5 -0
- package/dist/common/utils/jsonPath.d.ts.map +1 -0
- package/dist/common/utils/jsonPath.js +27 -0
- package/dist/common/utils/normalizeObject.d.ts +2 -0
- package/dist/common/utils/normalizeObject.d.ts.map +1 -0
- package/dist/common/utils/normalizeObject.js +63 -0
- package/dist/core/Context.d.ts +8 -1
- package/dist/core/Context.d.ts.map +1 -1
- package/dist/core/Context.js +23 -4
- package/dist/core/OpenApiClient.d.ts +2 -0
- package/dist/core/OpenApiClient.d.ts.map +1 -1
- package/dist/core/OpenApiClient.js +127 -6
- package/dist/core/WriteClient.d.ts +12 -1
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +83 -8
- package/dist/core/__tests__/WriteClient.test.js +6 -1
- package/dist/core/api/v2/parser/__tests__/getModel.test.d.ts +2 -0
- package/dist/core/api/v2/parser/__tests__/getModel.test.d.ts.map +1 -0
- package/dist/core/api/v2/parser/__tests__/getModel.test.js +34 -0
- package/dist/core/api/v2/parser/getModel.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getModel.js +6 -1
- package/dist/core/api/v2/parser/getOperation.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperation.js +2 -0
- package/dist/core/api/v2/parser/getOperationResponses.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperationResponses.js +9 -1
- package/dist/core/api/v2/parser/getType.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getType.js +2 -1
- package/dist/core/api/v2/types/OpenApiSchema.model.d.ts +2 -0
- package/dist/core/api/v2/types/OpenApiSchema.model.d.ts.map +1 -1
- package/dist/core/api/v3/parser/__tests__/getContent.test.d.ts +2 -0
- package/dist/core/api/v3/parser/__tests__/getContent.test.d.ts.map +1 -0
- package/dist/core/api/v3/parser/__tests__/getContent.test.js +65 -0
- package/dist/core/api/v3/parser/__tests__/getModel.test.d.ts +2 -0
- package/dist/core/api/v3/parser/__tests__/getModel.test.d.ts.map +1 -0
- package/dist/core/api/v3/parser/__tests__/getModel.test.js +34 -0
- package/dist/core/api/v3/parser/getContent.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getContent.js +21 -11
- package/dist/core/api/v3/parser/getModel.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getModel.js +6 -1
- package/dist/core/api/v3/parser/getOperation.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperation.js +2 -0
- package/dist/core/api/v3/parser/getOperationResponses.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationResponses.js +9 -1
- package/dist/core/api/v3/parser/getType.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getType.js +2 -1
- package/dist/core/api/v3/types/OpenApiSchema.model.d.ts +2 -0
- package/dist/core/api/v3/types/OpenApiSchema.model.d.ts.map +1 -1
- package/dist/core/governance/__tests__/evaluateGovernanceRules.test.d.ts +2 -0
- package/dist/core/governance/__tests__/evaluateGovernanceRules.test.d.ts.map +1 -0
- package/dist/core/governance/__tests__/evaluateGovernanceRules.test.js +100 -0
- package/dist/core/governance/__tests__/loadGovernanceConfig.test.d.ts +2 -0
- package/dist/core/governance/__tests__/loadGovernanceConfig.test.d.ts.map +1 -0
- package/dist/core/governance/__tests__/loadGovernanceConfig.test.js +71 -0
- package/dist/core/governance/evaluateGovernanceRules.d.ts +42 -0
- package/dist/core/governance/evaluateGovernanceRules.d.ts.map +1 -0
- package/dist/core/governance/evaluateGovernanceRules.js +134 -0
- package/dist/core/governance/governanceConfigSchema.d.ts +4 -0
- package/dist/core/governance/governanceConfigSchema.d.ts.map +1 -0
- package/dist/core/governance/governanceConfigSchema.js +39 -0
- package/dist/core/governance/loadGovernanceConfig.d.ts +7 -0
- package/dist/core/governance/loadGovernanceConfig.d.ts.map +1 -0
- package/dist/core/governance/loadGovernanceConfig.js +60 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +4 -2
- package/dist/core/plugins/GeneratorPlugin.model.d.ts +42 -0
- package/dist/core/plugins/GeneratorPlugin.model.d.ts.map +1 -0
- package/dist/core/plugins/GeneratorPlugin.model.js +2 -0
- package/dist/core/plugins/__tests__/applySemanticDiffPluginHooks.test.d.ts +2 -0
- package/dist/core/plugins/__tests__/applySemanticDiffPluginHooks.test.d.ts.map +1 -0
- package/dist/core/plugins/__tests__/applySemanticDiffPluginHooks.test.js +115 -0
- package/dist/core/plugins/__tests__/loadGeneratorPlugins.test.d.ts +2 -0
- package/dist/core/plugins/__tests__/loadGeneratorPlugins.test.d.ts.map +1 -0
- package/dist/core/plugins/__tests__/loadGeneratorPlugins.test.js +62 -0
- package/dist/core/plugins/applySemanticDiffPluginHooks.d.ts +28 -0
- package/dist/core/plugins/applySemanticDiffPluginHooks.d.ts.map +1 -0
- package/dist/core/plugins/applySemanticDiffPluginHooks.js +160 -0
- package/dist/core/plugins/builtins/xTypescriptTypePlugin.d.ts +6 -0
- package/dist/core/plugins/builtins/xTypescriptTypePlugin.d.ts.map +1 -0
- package/dist/core/plugins/builtins/xTypescriptTypePlugin.js +13 -0
- package/dist/core/plugins/getBuiltinPlugins.d.ts +6 -0
- package/dist/core/plugins/getBuiltinPlugins.d.ts.map +1 -0
- package/dist/core/plugins/getBuiltinPlugins.js +10 -0
- package/dist/core/plugins/index.d.ts +4 -0
- package/dist/core/plugins/index.d.ts.map +1 -0
- package/dist/core/plugins/index.js +5 -0
- package/dist/core/plugins/loadGeneratorPlugins.d.ts +6 -0
- package/dist/core/plugins/loadGeneratorPlugins.d.ts.map +1 -0
- package/dist/core/plugins/loadGeneratorPlugins.js +94 -0
- package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.d.ts +2 -0
- package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.d.ts.map +1 -0
- package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.js +537 -0
- package/dist/core/semanticDiff/__tests__/semanticDiffReportSchema.test.d.ts +2 -0
- package/dist/core/semanticDiff/__tests__/semanticDiffReportSchema.test.d.ts.map +1 -0
- package/dist/core/semanticDiff/__tests__/semanticDiffReportSchema.test.js +66 -0
- package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts +45 -0
- package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts.map +1 -0
- package/dist/core/semanticDiff/analyzeOpenApiDiff.js +640 -0
- package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts +11 -0
- package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts.map +1 -0
- package/dist/core/semanticDiff/semanticDiffReportSchema.js +132 -0
- package/dist/core/strict/__tests__/validateOpenApiStrict.test.d.ts +2 -0
- package/dist/core/strict/__tests__/validateOpenApiStrict.test.d.ts.map +1 -0
- package/dist/core/strict/__tests__/validateOpenApiStrict.test.js +156 -0
- package/dist/core/strict/validateOpenApiStrict.d.ts +43 -0
- package/dist/core/strict/validateOpenApiStrict.d.ts.map +1 -0
- package/dist/core/strict/validateOpenApiStrict.js +253 -0
- package/dist/core/types/base/ClientArtifacts.model.d.ts +2 -0
- package/dist/core/types/base/ClientArtifacts.model.d.ts.map +1 -1
- package/dist/core/types/base/Templates.model.d.ts +4 -1
- package/dist/core/types/base/Templates.model.d.ts.map +1 -1
- package/dist/core/types/enums/EmptySchemaStrategy.enum.d.ts +6 -0
- package/dist/core/types/enums/EmptySchemaStrategy.enum.d.ts.map +1 -0
- package/dist/core/types/enums/EmptySchemaStrategy.enum.js +9 -0
- package/dist/core/types/enums/ModelsMode.enum.d.ts +5 -0
- package/dist/core/types/enums/ModelsMode.enum.d.ts.map +1 -0
- package/dist/core/types/enums/ModelsMode.enum.js +8 -0
- package/dist/core/types/shared/Client.model.d.ts +2 -0
- package/dist/core/types/shared/Client.model.d.ts.map +1 -1
- package/dist/core/types/shared/DiffInfo.model.d.ts +13 -0
- package/dist/core/types/shared/DiffInfo.model.d.ts.map +1 -0
- package/dist/core/types/shared/DiffInfo.model.js +2 -0
- package/dist/core/types/shared/Miracle.model.d.ts +13 -0
- package/dist/core/types/shared/Miracle.model.d.ts.map +1 -0
- package/dist/core/types/shared/Miracle.model.js +2 -0
- package/dist/core/types/shared/Model.model.d.ts +23 -0
- package/dist/core/types/shared/Model.model.d.ts.map +1 -1
- package/dist/core/types/shared/Operation.model.d.ts +5 -0
- package/dist/core/types/shared/Operation.model.d.ts.map +1 -1
- package/dist/core/utils/__mocks__/templates.d.ts.map +1 -1
- package/dist/core/utils/__mocks__/templates.js +9 -0
- package/dist/core/utils/__tests__/applyDiffReportToClient.test.d.ts +2 -0
- package/dist/core/utils/__tests__/applyDiffReportToClient.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/applyDiffReportToClient.test.js +108 -0
- package/dist/core/utils/__tests__/getMappedType.test.js +2 -0
- package/dist/core/utils/__tests__/getOperationResponseCode.test.js +7 -2
- package/dist/core/utils/__tests__/getOperationResults.test.d.ts +2 -0
- package/dist/core/utils/__tests__/getOperationResults.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/getOperationResults.test.js +43 -0
- package/dist/core/utils/__tests__/getRelativeModelPath.test.d.ts +2 -0
- package/dist/core/utils/__tests__/getRelativeModelPath.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/getRelativeModelPath.test.js +27 -0
- package/dist/core/utils/__tests__/modelHelpers.test.d.ts +2 -0
- package/dist/core/utils/__tests__/modelHelpers.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/modelHelpers.test.js +151 -0
- package/dist/core/utils/__tests__/postProcessModelImports.test.d.ts +2 -0
- package/dist/core/utils/__tests__/postProcessModelImports.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/postProcessModelImports.test.js +67 -0
- package/dist/core/utils/__tests__/postProcessServiceImports.test.d.ts +2 -0
- package/dist/core/utils/__tests__/postProcessServiceImports.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/postProcessServiceImports.test.js +26 -0
- package/dist/core/utils/__tests__/prepareDtoModels.test.d.ts +2 -0
- package/dist/core/utils/__tests__/prepareDtoModels.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/prepareDtoModels.test.js +116 -0
- package/dist/core/utils/__tests__/resolveRefPath.test.d.ts +2 -0
- package/dist/core/utils/__tests__/resolveRefPath.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/resolveRefPath.test.js +22 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.d.ts +2 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.js +122 -0
- package/dist/core/utils/__tests__/writeClientExecutor.test.d.ts +2 -0
- package/dist/core/utils/__tests__/writeClientExecutor.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/writeClientExecutor.test.js +20 -0
- package/dist/core/utils/__tests__/writeClientModels.test.js +50 -0
- package/dist/core/utils/__tests__/writeClientSchemas.test.js +2 -0
- package/dist/core/utils/applyDiffReportToClient.d.ts +14 -0
- package/dist/core/utils/applyDiffReportToClient.d.ts.map +1 -0
- package/dist/core/utils/applyDiffReportToClient.js +367 -0
- package/dist/core/utils/getMappedType.d.ts.map +1 -1
- package/dist/core/utils/getMappedType.js +2 -0
- package/dist/core/utils/getOperationResponseCode.d.ts.map +1 -1
- package/dist/core/utils/getOperationResponseCode.js +10 -8
- package/dist/core/utils/getRelativeModelPath.d.ts +9 -0
- package/dist/core/utils/getRelativeModelPath.d.ts.map +1 -0
- package/dist/core/utils/getRelativeModelPath.js +37 -0
- package/dist/core/utils/loadDiffReport.d.ts +39 -0
- package/dist/core/utils/loadDiffReport.d.ts.map +1 -0
- package/dist/core/utils/loadDiffReport.js +51 -0
- package/dist/core/utils/modelHelpers.d.ts.map +1 -1
- package/dist/core/utils/modelHelpers.js +37 -3
- package/dist/core/utils/postProcessModelImports.d.ts.map +1 -1
- package/dist/core/utils/postProcessModelImports.js +14 -1
- package/dist/core/utils/postProcessServiceImports.d.ts.map +1 -1
- package/dist/core/utils/postProcessServiceImports.js +1 -2
- package/dist/core/utils/precompileTemplates.js +1 -0
- package/dist/core/utils/prepareDtoModels.d.ts +3 -0
- package/dist/core/utils/prepareDtoModels.d.ts.map +1 -0
- package/dist/core/utils/prepareDtoModels.js +189 -0
- package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarHelpers.js +29 -1
- package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarTemplates.js +48 -41
- package/dist/core/utils/resolveRefPath.d.ts.map +1 -1
- package/dist/core/utils/resolveRefPath.js +1 -4
- package/dist/core/utils/validateRawOptions.d.ts +1 -1
- package/dist/core/utils/validateRawOptions.d.ts.map +1 -1
- package/dist/core/utils/validateRawOptions.js +4 -2
- package/dist/core/utils/writeClientCore.d.ts +2 -0
- package/dist/core/utils/writeClientCore.d.ts.map +1 -1
- package/dist/core/utils/writeClientCore.js +6 -1
- package/dist/core/utils/writeClientCoreIndex.d.ts +1 -0
- package/dist/core/utils/writeClientCoreIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientCoreIndex.js +2 -2
- package/dist/core/utils/writeClientExecutor.d.ts +6 -1
- package/dist/core/utils/writeClientExecutor.d.ts.map +1 -1
- package/dist/core/utils/writeClientExecutor.js +22 -3
- package/dist/core/utils/writeClientFullIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientFullIndex.js +3 -1
- package/dist/core/utils/writeClientModels.d.ts +6 -0
- package/dist/core/utils/writeClientModels.d.ts.map +1 -1
- package/dist/core/utils/writeClientModels.js +24 -3
- package/dist/core/utils/writeClientModelsIndex.d.ts +2 -0
- package/dist/core/utils/writeClientModelsIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientModelsIndex.js +2 -2
- package/dist/core/utils/writeClientSchemas.d.ts +6 -1
- package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.js +16 -3
- package/dist/core/utils/writeClientServices.d.ts +2 -0
- package/dist/core/utils/writeClientServices.d.ts.map +1 -1
- package/dist/core/utils/writeClientServices.js +6 -2
- package/dist/templatesCompiled/cli/openApiConfig.d.ts +4 -1
- package/dist/templatesCompiled/cli/openApiConfig.d.ts.map +1 -1
- package/dist/templatesCompiled/cli/openApiConfig.js +88 -37
- package/dist/templatesCompiled/client/core/ApiError.js +1 -1
- package/dist/templatesCompiled/client/core/ApiRequestOptions.js +1 -1
- package/dist/templatesCompiled/client/core/ApiResult.js +1 -1
- package/dist/templatesCompiled/client/core/BaseDto.d.ts +8 -0
- package/dist/templatesCompiled/client/core/BaseDto.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/BaseDto.js +18 -0
- package/dist/templatesCompiled/client/core/axios/getResponseBody.js +1 -1
- package/dist/templatesCompiled/client/core/axios/request.js +3 -3
- package/dist/templatesCompiled/client/core/axios/sendRequest.js +4 -4
- package/dist/templatesCompiled/client/core/dtoUtils.d.ts +8 -0
- package/dist/templatesCompiled/client/core/dtoUtils.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/dtoUtils.js +18 -0
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts +2 -0
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.js +13 -8
- package/dist/templatesCompiled/client/core/executor/requestExecutor.js +1 -1
- package/dist/templatesCompiled/client/core/fetch/getResponseBody.js +1 -1
- package/dist/templatesCompiled/client/core/fetch/request.js +3 -3
- package/dist/templatesCompiled/client/core/functions/catchErrors.js +1 -1
- package/dist/templatesCompiled/client/core/functions/isBinary.js +1 -1
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.js +1 -1
- package/dist/templatesCompiled/client/core/node/getResponseBody.js +1 -1
- package/dist/templatesCompiled/client/core/node/request.js +3 -3
- package/dist/templatesCompiled/client/core/xhr/getResponseBody.js +1 -1
- package/dist/templatesCompiled/client/core/xhr/request.js +3 -3
- package/dist/templatesCompiled/client/core/xhr/sendRequest.js +4 -4
- package/dist/templatesCompiled/client/exportClient.d.ts +4 -0
- package/dist/templatesCompiled/client/exportClient.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportClient.js +51 -13
- package/dist/templatesCompiled/client/exportModels.d.ts +34 -0
- package/dist/templatesCompiled/client/exportModels.d.ts.map +1 -0
- package/dist/templatesCompiled/client/exportModels.js +280 -0
- package/dist/templatesCompiled/client/exportSchema.d.ts +5 -1
- package/dist/templatesCompiled/client/exportSchema.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportSchema.js +37 -7
- package/dist/templatesCompiled/client/exportService.d.ts +9 -4
- package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportService.js +96 -37
- package/dist/templatesCompiled/client/indexCore.d.ts +3 -1
- package/dist/templatesCompiled/client/indexCore.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexCore.js +13 -2
- package/dist/templatesCompiled/client/indexFull.d.ts +10 -7
- package/dist/templatesCompiled/client/indexFull.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexFull.js +54 -33
- package/dist/templatesCompiled/client/indexModels.d.ts +7 -5
- package/dist/templatesCompiled/client/indexModels.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexModels.js +27 -18
- package/dist/templatesCompiled/client/indexSimple.d.ts +1 -0
- package/dist/templatesCompiled/client/indexSimple.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexSimple.js +4 -1
- package/dist/templatesCompiled/client/joi/exportSchema.js +5 -5
- package/dist/templatesCompiled/client/joi/partials/joiSchema.js +7 -7
- package/dist/templatesCompiled/client/joi/partials/joiSchemaComposition.js +4 -4
- package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.d.ts +27 -19
- package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.d.ts.map +1 -1
- package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.js +144 -63
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts +5 -3
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.js +39 -12
- package/dist/templatesCompiled/client/jsonschema/exportSchema.d.ts +1 -0
- package/dist/templatesCompiled/client/jsonschema/exportSchema.d.ts.map +1 -1
- package/dist/templatesCompiled/client/jsonschema/exportSchema.js +21 -17
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchema.js +7 -7
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaArray.js +5 -5
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaComposition.js +2 -2
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaDictionary.js +5 -5
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts +3 -1
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.js +45 -15
- package/dist/templatesCompiled/client/partials/exportInterface.d.ts +13 -5
- package/dist/templatesCompiled/client/partials/exportInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/exportInterface.js +91 -21
- package/dist/templatesCompiled/client/partials/result.d.ts +6 -4
- package/dist/templatesCompiled/client/partials/result.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/result.js +16 -6
- package/dist/templatesCompiled/client/partials/serviceOption.d.ts +1 -0
- package/dist/templatesCompiled/client/partials/serviceOption.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/serviceOption.js +11 -4
- package/dist/templatesCompiled/client/yup/exportSchema.js +3 -3
- package/dist/templatesCompiled/client/yup/partials/yupSchema.js +7 -7
- package/dist/templatesCompiled/client/yup/partials/yupSchemaComposition.js +4 -4
- package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.d.ts +22 -16
- package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.d.ts.map +1 -1
- package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.js +72 -60
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts +5 -3
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.js +39 -12
- package/dist/templatesCompiled/client/zod/exportSchema.js +3 -3
- package/dist/templatesCompiled/client/zod/partials/zodSchema.js +7 -7
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts +5 -6
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.js +14 -28
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts +3 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.js +32 -8
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts +3 -4
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.js +9 -23
- package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.d.ts +27 -19
- package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.js +77 -61
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts +4 -2
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.js +18 -7
- package/package.json +8 -6
- package/dist/common/defaultOptions.d.ts +0 -3
- package/dist/common/defaultOptions.d.ts.map +0 -1
- package/dist/common/defaultOptions.js +0 -28
- package/dist/core/utils/advancedDeduplicatePath.d.ts +0 -5
- package/dist/core/utils/advancedDeduplicatePath.d.ts.map +0 -1
- package/dist/core/utils/advancedDeduplicatePath.js +0 -29
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.unifiedOptionsSchemaV5 = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const CommonSchemas_1 = require("../CommonSchemas");
|
|
6
|
+
const UnifiedOptionsSchemaV4_1 = require("./UnifiedOptionsSchemaV4");
|
|
7
|
+
exports.unifiedOptionsSchemaV5 = UnifiedOptionsSchemaV4_1.unifiedOptionsSchemaV4.extend({
|
|
8
|
+
...CommonSchemas_1.strictModeParametersSchema.shape,
|
|
9
|
+
useProjectPrettier: zod_1.z.boolean().optional(),
|
|
10
|
+
useEslintFix: zod_1.z.boolean().optional(),
|
|
11
|
+
});
|
|
12
|
+
/*
|
|
13
|
+
type TUnifiedV5 = TUnifiedV4 & {
|
|
14
|
+
strictOpenapi: boolean | undefined;
|
|
15
|
+
reportFile: string | undefined;
|
|
16
|
+
useProjectPrettier: boolean | undefined;
|
|
17
|
+
useEslintFix: boolean | undefined;
|
|
18
|
+
}
|
|
19
|
+
*/
|
|
@@ -1,44 +1,306 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { VersionedSchema } from '../Types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
11
|
-
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
-
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
request: z.ZodOptional<z.ZodString>;
|
|
15
|
-
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
16
|
-
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
17
|
-
typePrefix: z.ZodOptional<z.ZodString>;
|
|
18
|
-
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
-
outputCore: z.ZodOptional<z.ZodString>;
|
|
20
|
-
outputServices: z.ZodOptional<z.ZodString>;
|
|
21
|
-
outputModels: z.ZodOptional<z.ZodString>;
|
|
22
|
-
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
23
|
-
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
|
-
input: z.ZodString;
|
|
3
|
+
type Last<T extends readonly unknown[]> = T extends readonly [...infer _, infer L] ? L : never;
|
|
4
|
+
declare const unifiedSchemaDefinitions: readonly [{
|
|
5
|
+
readonly version: "v1";
|
|
6
|
+
readonly base: z.ZodObject<{
|
|
7
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
25
10
|
request: z.ZodOptional<z.ZodString>;
|
|
11
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
13
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
14
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
15
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
17
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
18
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
23
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
24
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
25
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
26
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
|
+
input: z.ZodString;
|
|
28
|
+
request: z.ZodOptional<z.ZodString>;
|
|
29
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
33
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
34
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
35
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
36
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
38
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
39
|
+
output: z.ZodString;
|
|
40
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
41
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
42
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
43
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
|
+
input: z.ZodOptional<z.ZodString>;
|
|
46
|
+
output: z.ZodOptional<z.ZodString>;
|
|
47
|
+
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
}, {
|
|
50
|
+
readonly version: "v2";
|
|
51
|
+
readonly base: z.ZodObject<{
|
|
52
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
54
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
26
56
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
27
57
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
28
58
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
request: z.ZodOptional<z.ZodString>;
|
|
60
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
29
61
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
30
62
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
31
63
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
32
|
-
|
|
64
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
66
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
67
|
+
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
33
68
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
34
69
|
outputServices: z.ZodOptional<z.ZodString>;
|
|
35
70
|
outputModels: z.ZodOptional<z.ZodString>;
|
|
36
71
|
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
72
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
73
|
+
input: z.ZodString;
|
|
74
|
+
request: z.ZodOptional<z.ZodString>;
|
|
75
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
80
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
81
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
82
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
84
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
85
|
+
output: z.ZodString;
|
|
86
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
87
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
88
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
89
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, z.core.$strip>>>;
|
|
91
|
+
input: z.ZodOptional<z.ZodString>;
|
|
92
|
+
output: z.ZodOptional<z.ZodString>;
|
|
93
|
+
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
94
|
+
}, z.core.$strip>;
|
|
95
|
+
}, {
|
|
96
|
+
readonly version: "v3";
|
|
97
|
+
readonly base: z.ZodObject<{
|
|
98
|
+
logLevel: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogLevel>>;
|
|
99
|
+
logTarget: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogOutput>>;
|
|
100
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
102
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
103
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
107
|
+
request: z.ZodOptional<z.ZodString>;
|
|
108
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
109
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
110
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
111
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
112
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
114
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
115
|
+
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
116
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
117
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
118
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
119
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
120
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
121
|
+
input: z.ZodString;
|
|
122
|
+
request: z.ZodOptional<z.ZodString>;
|
|
123
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
127
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
128
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
129
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
130
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
132
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
133
|
+
output: z.ZodString;
|
|
134
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
135
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
136
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
137
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
138
|
+
}, z.core.$strip>>>;
|
|
139
|
+
input: z.ZodOptional<z.ZodString>;
|
|
140
|
+
output: z.ZodOptional<z.ZodString>;
|
|
141
|
+
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
142
|
+
}, z.core.$strip>;
|
|
143
|
+
}, {
|
|
144
|
+
readonly version: "v4";
|
|
145
|
+
readonly base: z.ZodObject<{
|
|
146
|
+
logLevel: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogLevel>>;
|
|
147
|
+
logTarget: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogOutput>>;
|
|
148
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
150
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
request: z.ZodOptional<z.ZodString>;
|
|
152
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
153
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
154
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
155
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
156
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
158
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
159
|
+
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
160
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
161
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
162
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
163
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
164
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
165
|
+
input: z.ZodString;
|
|
166
|
+
request: z.ZodOptional<z.ZodString>;
|
|
167
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
169
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
171
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
172
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
173
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
174
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
175
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
176
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
177
|
+
output: z.ZodString;
|
|
178
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
179
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
180
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
181
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
182
|
+
}, z.core.$strip>>>;
|
|
183
|
+
input: z.ZodOptional<z.ZodString>;
|
|
184
|
+
output: z.ZodOptional<z.ZodString>;
|
|
185
|
+
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
186
|
+
customExecutorPath: z.ZodOptional<z.ZodString>;
|
|
187
|
+
models: z.ZodOptional<z.ZodObject<{
|
|
188
|
+
mode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
189
|
+
corePath: z.ZodOptional<z.ZodString>;
|
|
190
|
+
modelsPath: z.ZodOptional<z.ZodString>;
|
|
191
|
+
}, z.core.$strip>>;
|
|
192
|
+
analyze: z.ZodOptional<z.ZodObject<{
|
|
193
|
+
reportPath: z.ZodOptional<z.ZodString>;
|
|
194
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
195
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
196
|
+
path: z.ZodOptional<z.ZodString>;
|
|
197
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
198
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
199
|
+
until: z.ZodOptional<z.ZodString>;
|
|
200
|
+
}, z.core.$strip>>>;
|
|
201
|
+
failOnBreaking: z.ZodOptional<z.ZodBoolean>;
|
|
202
|
+
}, z.core.$strip>>;
|
|
203
|
+
miracles: z.ZodOptional<z.ZodObject<{
|
|
204
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
206
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
207
|
+
RENAME: "RENAME";
|
|
208
|
+
TYPE_COERCION: "TYPE_COERCION";
|
|
209
|
+
}>>>;
|
|
210
|
+
}, z.core.$strip>>;
|
|
211
|
+
emptySchemaStrategy: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/EmptySchemaStrategy.enum").EmptySchemaStrategy>>;
|
|
212
|
+
strictOpenapi: z.ZodOptional<z.ZodBoolean>;
|
|
213
|
+
reportFile: z.ZodOptional<z.ZodString>;
|
|
214
|
+
governanceConfig: z.ZodOptional<z.ZodString>;
|
|
215
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
216
|
+
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
217
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
218
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
}, {
|
|
221
|
+
readonly version: "v5";
|
|
222
|
+
readonly base: z.ZodObject<{
|
|
223
|
+
logLevel: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogLevel>>;
|
|
224
|
+
logTarget: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogOutput>>;
|
|
225
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
226
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
227
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
228
|
+
request: z.ZodOptional<z.ZodString>;
|
|
229
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
230
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
231
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
232
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
233
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
234
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
235
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
236
|
+
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
237
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
238
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
239
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
240
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
241
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
242
|
+
input: z.ZodString;
|
|
243
|
+
request: z.ZodOptional<z.ZodString>;
|
|
244
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
245
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
246
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
247
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
248
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
249
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
250
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
251
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
252
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
253
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
254
|
+
output: z.ZodString;
|
|
255
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
256
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
257
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
258
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
259
|
+
}, z.core.$strip>>>;
|
|
260
|
+
input: z.ZodOptional<z.ZodString>;
|
|
261
|
+
output: z.ZodOptional<z.ZodString>;
|
|
262
|
+
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
263
|
+
customExecutorPath: z.ZodOptional<z.ZodString>;
|
|
264
|
+
models: z.ZodOptional<z.ZodObject<{
|
|
265
|
+
mode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
266
|
+
corePath: z.ZodOptional<z.ZodString>;
|
|
267
|
+
modelsPath: z.ZodOptional<z.ZodString>;
|
|
268
|
+
}, z.core.$strip>>;
|
|
269
|
+
analyze: z.ZodOptional<z.ZodObject<{
|
|
270
|
+
reportPath: z.ZodOptional<z.ZodString>;
|
|
271
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
272
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
273
|
+
path: z.ZodOptional<z.ZodString>;
|
|
274
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
275
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
276
|
+
until: z.ZodOptional<z.ZodString>;
|
|
277
|
+
}, z.core.$strip>>>;
|
|
278
|
+
failOnBreaking: z.ZodOptional<z.ZodBoolean>;
|
|
279
|
+
}, z.core.$strip>>;
|
|
280
|
+
miracles: z.ZodOptional<z.ZodObject<{
|
|
281
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
282
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
283
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
284
|
+
RENAME: "RENAME";
|
|
285
|
+
TYPE_COERCION: "TYPE_COERCION";
|
|
286
|
+
}>>>;
|
|
287
|
+
}, z.core.$strip>>;
|
|
288
|
+
emptySchemaStrategy: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/EmptySchemaStrategy.enum").EmptySchemaStrategy>>;
|
|
289
|
+
governanceConfig: z.ZodOptional<z.ZodString>;
|
|
290
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
291
|
+
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
292
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
293
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
294
|
+
useProjectPrettier: z.ZodOptional<z.ZodBoolean>;
|
|
295
|
+
useEslintFix: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
+
strictOpenapi: z.ZodOptional<z.ZodBoolean>;
|
|
297
|
+
reportFile: z.ZodOptional<z.ZodString>;
|
|
298
|
+
}, z.core.$strip>;
|
|
299
|
+
}];
|
|
300
|
+
type UnifiedSchemaDefinitions = typeof unifiedSchemaDefinitions;
|
|
301
|
+
type LatestUnifiedDefinition = Last<UnifiedSchemaDefinitions>;
|
|
302
|
+
export declare const unifiedVersionedSchemas: VersionedSchema<z.ZodTypeAny>[];
|
|
303
|
+
export declare const rawOptionsSchema: LatestUnifiedDefinition['base'];
|
|
42
304
|
export declare const flatOptionsSchema: z.ZodObject<{
|
|
43
305
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
44
306
|
outputServices: z.ZodOptional<z.ZodString>;
|
|
@@ -49,17 +311,53 @@ export declare const flatOptionsSchema: z.ZodObject<{
|
|
|
49
311
|
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
50
312
|
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
51
313
|
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
314
|
+
emptySchemaStrategy: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/EmptySchemaStrategy.enum").EmptySchemaStrategy>>;
|
|
315
|
+
strictOpenapi: z.ZodOptional<z.ZodBoolean>;
|
|
316
|
+
reportFile: z.ZodOptional<z.ZodString>;
|
|
317
|
+
governanceConfig: z.ZodOptional<z.ZodString>;
|
|
52
318
|
request: z.ZodOptional<z.ZodString>;
|
|
319
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
320
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
54
321
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
55
322
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
323
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
324
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
325
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
56
326
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
57
327
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
58
328
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
59
329
|
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
60
330
|
logLevel: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogLevel>>;
|
|
61
331
|
logTarget: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogOutput>>;
|
|
332
|
+
customExecutorPath: z.ZodOptional<z.ZodString>;
|
|
333
|
+
models: z.ZodOptional<z.ZodObject<{
|
|
334
|
+
mode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
335
|
+
corePath: z.ZodOptional<z.ZodString>;
|
|
336
|
+
modelsPath: z.ZodOptional<z.ZodString>;
|
|
337
|
+
}, z.core.$strip>>;
|
|
338
|
+
analyze: z.ZodOptional<z.ZodObject<{
|
|
339
|
+
reportPath: z.ZodOptional<z.ZodString>;
|
|
340
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
341
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
342
|
+
path: z.ZodOptional<z.ZodString>;
|
|
343
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
344
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
345
|
+
until: z.ZodOptional<z.ZodString>;
|
|
346
|
+
}, z.core.$strip>>>;
|
|
347
|
+
failOnBreaking: z.ZodOptional<z.ZodBoolean>;
|
|
348
|
+
}, z.core.$strip>>;
|
|
349
|
+
miracles: z.ZodOptional<z.ZodObject<{
|
|
350
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
351
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
352
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
353
|
+
RENAME: "RENAME";
|
|
354
|
+
TYPE_COERCION: "TYPE_COERCION";
|
|
355
|
+
}>>>;
|
|
356
|
+
}, z.core.$strip>>;
|
|
357
|
+
useProjectPrettier: z.ZodOptional<z.ZodBoolean>;
|
|
358
|
+
useEslintFix: z.ZodOptional<z.ZodBoolean>;
|
|
62
359
|
input: z.ZodString;
|
|
63
360
|
output: z.ZodString;
|
|
64
361
|
}, z.core.$strip>;
|
|
362
|
+
export {};
|
|
65
363
|
//# sourceMappingURL=UnifiedVersionedSchemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedVersionedSchemas.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"UnifiedVersionedSchemas.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAS3C,KAAK,IAAI,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,IAAI,CAAC,SAAS,SAAS,CAAC,GAAG,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE/F,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMpB,CAAC;AAEX,KAAK,wBAAwB,GAAG,OAAO,wBAAwB,CAAC;AAChE,KAAK,uBAAuB,GAAG,IAAI,CAAC,wBAAwB,CAAC,CAAC;AAE9D,eAAO,MAAM,uBAAuB,EAAE,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,EAMlE,CAAC;AAIF,eAAO,MAAM,gBAAgB,EAAE,uBAAuB,CAAC,MAAM,CAAgC,CAAC;AAE9F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG5B,CAAC"}
|
|
@@ -7,24 +7,22 @@ const buildVersionedSchema_1 = require("../Utils/buildVersionedSchema");
|
|
|
7
7
|
const UnifiedOptionsSchemaV1_1 = require("./UnifiedOptionsSchemaV1");
|
|
8
8
|
const UnifiedOptionsSchemaV2_1 = require("./UnifiedOptionsSchemaV2");
|
|
9
9
|
const UnifiedOptionsSchemaV3_1 = require("./UnifiedOptionsSchemaV3");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
base: UnifiedOptionsSchemaV2_1.unifiedOptionsSchemaV2,
|
|
19
|
-
type: Enums_1.EVersionedSchemaType.UNIFIED_OPTIONS,
|
|
20
|
-
}),
|
|
21
|
-
(0, buildVersionedSchema_1.buildVersionedSchema)({
|
|
22
|
-
version: 'v3',
|
|
23
|
-
base: UnifiedOptionsSchemaV3_1.unifiedOptionsSchemaV3,
|
|
24
|
-
type: Enums_1.EVersionedSchemaType.UNIFIED_OPTIONS,
|
|
25
|
-
}),
|
|
10
|
+
const UnifiedOptionsSchemaV4_1 = require("./UnifiedOptionsSchemaV4");
|
|
11
|
+
const UnifiedOptionsSchemaV5_1 = require("./UnifiedOptionsSchemaV5");
|
|
12
|
+
const unifiedSchemaDefinitions = [
|
|
13
|
+
{ version: 'v1', base: UnifiedOptionsSchemaV1_1.unifiedOptionsSchemaV1 },
|
|
14
|
+
{ version: 'v2', base: UnifiedOptionsSchemaV2_1.unifiedOptionsSchemaV2 },
|
|
15
|
+
{ version: 'v3', base: UnifiedOptionsSchemaV3_1.unifiedOptionsSchemaV3 },
|
|
16
|
+
{ version: 'v4', base: UnifiedOptionsSchemaV4_1.unifiedOptionsSchemaV4 },
|
|
17
|
+
{ version: 'v5', base: UnifiedOptionsSchemaV5_1.unifiedOptionsSchemaV5 },
|
|
26
18
|
];
|
|
27
|
-
exports.
|
|
19
|
+
exports.unifiedVersionedSchemas = unifiedSchemaDefinitions.map(({ version, base }) => (0, buildVersionedSchema_1.buildVersionedSchema)({
|
|
20
|
+
version,
|
|
21
|
+
base,
|
|
22
|
+
type: Enums_1.EVersionedSchemaType.UNIFIED_OPTIONS,
|
|
23
|
+
}));
|
|
24
|
+
const latestUnifiedDefinition = unifiedSchemaDefinitions[unifiedSchemaDefinitions.length - 1];
|
|
25
|
+
exports.rawOptionsSchema = latestUnifiedDefinition.base;
|
|
28
26
|
exports.flatOptionsSchema = exports.rawOptionsSchema.omit({ items: true }).extend({
|
|
29
27
|
input: zod_1.z.string().min(1, 'Input is required'),
|
|
30
28
|
output: zod_1.z.string().min(1, 'Output is required'),
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { EmptySchemaStrategy } from '../../core/types/enums/EmptySchemaStrategy.enum';
|
|
3
|
+
import { ModelsMode } from '../../core/types/enums/ModelsMode.enum';
|
|
2
4
|
import { ValidationLibrary } from '../../core/types/enums/ValidationLibrary.enum';
|
|
3
5
|
/** Output paths */
|
|
4
6
|
export declare const outputPathsSchema: z.ZodObject<{
|
|
@@ -9,38 +11,84 @@ export declare const outputPathsSchema: z.ZodObject<{
|
|
|
9
11
|
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
10
12
|
}, z.core.$strip>;
|
|
11
13
|
export declare const specialParametersSchemas: z.ZodObject<{
|
|
12
|
-
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
-
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
exportCore: z.ZodOptional<z.ZodBoolean>;
|
|
15
15
|
exportServices: z.ZodOptional<z.ZodBoolean>;
|
|
16
16
|
exportModels: z.ZodOptional<z.ZodBoolean>;
|
|
17
17
|
exportSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
export declare const specialParametersSchemasV2: z.ZodObject<{
|
|
20
18
|
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
21
19
|
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const specialParametersSchemasV2: z.ZodObject<{
|
|
22
22
|
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
23
23
|
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
24
26
|
}, z.core.$strip>;
|
|
25
27
|
export declare const specialParametersSchemasV3: z.ZodObject<{
|
|
28
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
validationLibrary: z.ZodOptional<z.ZodEnum<typeof ValidationLibrary>>;
|
|
26
30
|
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
27
31
|
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
}, z.core.$strip>;
|
|
33
|
+
export declare const specialParametersSchemasV4: z.ZodObject<{
|
|
34
|
+
emptySchemaStrategy: z.ZodOptional<z.ZodEnum<typeof EmptySchemaStrategy>>;
|
|
35
|
+
strictOpenapi: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
reportFile: z.ZodOptional<z.ZodString>;
|
|
37
|
+
governanceConfig: z.ZodOptional<z.ZodString>;
|
|
28
38
|
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
29
39
|
validationLibrary: z.ZodOptional<z.ZodEnum<typeof ValidationLibrary>>;
|
|
40
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export declare const strictModeParametersSchema: z.ZodObject<{
|
|
44
|
+
strictOpenapi: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
reportFile: z.ZodOptional<z.ZodString>;
|
|
30
46
|
}, z.core.$strip>;
|
|
31
47
|
/** Additional parameters */
|
|
32
48
|
export declare const additionalParametersSchema: z.ZodObject<{
|
|
33
49
|
clean: z.ZodOptional<z.ZodBoolean>;
|
|
34
50
|
request: z.ZodOptional<z.ZodString>;
|
|
51
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
52
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
36
53
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
37
54
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
55
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
57
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof ModelsMode>>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export declare const modelsConfigSchema: z.ZodObject<{
|
|
60
|
+
mode: z.ZodOptional<z.ZodEnum<typeof ModelsMode>>;
|
|
61
|
+
corePath: z.ZodOptional<z.ZodString>;
|
|
62
|
+
modelsPath: z.ZodOptional<z.ZodString>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export declare const analyzeConfigSchema: z.ZodObject<{
|
|
65
|
+
reportPath: z.ZodOptional<z.ZodString>;
|
|
66
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
67
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
68
|
+
path: z.ZodOptional<z.ZodString>;
|
|
69
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
70
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
71
|
+
until: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>>>;
|
|
73
|
+
failOnBreaking: z.ZodOptional<z.ZodBoolean>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export declare const miraclesConfigSchema: z.ZodObject<{
|
|
76
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
79
|
+
RENAME: "RENAME";
|
|
80
|
+
TYPE_COERCION: "TYPE_COERCION";
|
|
81
|
+
}>>>;
|
|
38
82
|
}, z.core.$strip>;
|
|
39
83
|
export declare const additionalParametersSchemaV2: z.ZodObject<{
|
|
40
84
|
request: z.ZodOptional<z.ZodString>;
|
|
85
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
86
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
42
87
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
43
88
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
89
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
91
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof ModelsMode>>;
|
|
44
92
|
}, z.core.$strip>;
|
|
45
93
|
/** Experimental parameters */
|
|
46
94
|
export declare const experimentalParametersSchema: z.ZodObject<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonSchemas.d.ts","sourceRoot":"","sources":["../../../src/common/VersionedSchema/CommonSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,mBAAmB;AAEnB,eAAO,MAAM,iBAAiB;;;;;;iBAM5B,CAAC;AASH,eAAO,MAAM,wBAAwB;;;;;;;
|
|
1
|
+
{"version":3,"file":"CommonSchemas.d.ts","sourceRoot":"","sources":["../../../src/common/VersionedSchema/CommonSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,mBAAmB;AAEnB,eAAO,MAAM,iBAAiB;;;;;;iBAM5B,CAAC;AASH,eAAO,MAAM,wBAAwB;;;;;;;iBAMnC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;iBAMrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAA;AAEF,4BAA4B;AAE5B,eAAO,MAAM,0BAA0B;;;;;;;;;;iBAUrC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;iBAU9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;iBAEvC,CAAC;AAEH,8BAA8B;AAE9B,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;iBAIzC,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.experimentalParametersSchemaV2 = exports.experimentalParametersSchema = exports.additionalParametersSchemaV2 = exports.additionalParametersSchema = exports.specialParametersSchemasV3 = exports.specialParametersSchemasV2 = exports.specialParametersSchemas = exports.outputPathsSchema = void 0;
|
|
3
|
+
exports.experimentalParametersSchemaV2 = exports.experimentalParametersSchema = exports.additionalParametersSchemaV2 = exports.miraclesConfigSchema = exports.analyzeConfigSchema = exports.modelsConfigSchema = exports.additionalParametersSchema = exports.strictModeParametersSchema = exports.specialParametersSchemasV4 = exports.specialParametersSchemasV3 = exports.specialParametersSchemasV2 = exports.specialParametersSchemas = exports.outputPathsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const EmptySchemaStrategy_enum_1 = require("../../core/types/enums/EmptySchemaStrategy.enum");
|
|
6
|
+
const ModelsMode_enum_1 = require("../../core/types/enums/ModelsMode.enum");
|
|
5
7
|
const ValidationLibrary_enum_1 = require("../../core/types/enums/ValidationLibrary.enum");
|
|
6
8
|
/** Output paths */
|
|
7
9
|
exports.outputPathsSchema = zod_1.z.object({
|
|
@@ -16,27 +18,66 @@ const baseSpecialParametersSchema = zod_1.z.object({
|
|
|
16
18
|
useOptions: zod_1.z.boolean().optional(),
|
|
17
19
|
useUnionTypes: zod_1.z.boolean().optional(),
|
|
18
20
|
});
|
|
19
|
-
exports.specialParametersSchemas =
|
|
21
|
+
exports.specialParametersSchemas = zod_1.z.object({
|
|
22
|
+
...baseSpecialParametersSchema.shape,
|
|
20
23
|
exportCore: zod_1.z.boolean().optional(),
|
|
21
24
|
exportServices: zod_1.z.boolean().optional(),
|
|
22
25
|
exportModels: zod_1.z.boolean().optional(),
|
|
23
26
|
exportSchemas: zod_1.z.boolean().optional(),
|
|
24
|
-
})
|
|
25
|
-
exports.specialParametersSchemasV2 =
|
|
27
|
+
});
|
|
28
|
+
exports.specialParametersSchemasV2 = zod_1.z.object({
|
|
29
|
+
...baseSpecialParametersSchema.shape,
|
|
26
30
|
excludeCoreServiceFiles: zod_1.z.boolean().optional(),
|
|
27
31
|
includeSchemasFiles: zod_1.z.boolean().optional(),
|
|
28
|
-
})
|
|
29
|
-
exports.specialParametersSchemasV3 =
|
|
32
|
+
});
|
|
33
|
+
exports.specialParametersSchemasV3 = zod_1.z.object({
|
|
34
|
+
...baseSpecialParametersSchema.shape,
|
|
30
35
|
excludeCoreServiceFiles: zod_1.z.boolean().optional(),
|
|
31
36
|
validationLibrary: zod_1.z.enum(ValidationLibrary_enum_1.ValidationLibrary).optional(),
|
|
32
|
-
})
|
|
37
|
+
});
|
|
38
|
+
exports.specialParametersSchemasV4 = zod_1.z.object({
|
|
39
|
+
...exports.specialParametersSchemasV3.shape,
|
|
40
|
+
emptySchemaStrategy: zod_1.z.enum(EmptySchemaStrategy_enum_1.EmptySchemaStrategy).optional(),
|
|
41
|
+
strictOpenapi: zod_1.z.boolean().optional(),
|
|
42
|
+
reportFile: zod_1.z.string().optional(),
|
|
43
|
+
governanceConfig: zod_1.z.string().optional(),
|
|
44
|
+
});
|
|
45
|
+
exports.strictModeParametersSchema = zod_1.z.object({
|
|
46
|
+
strictOpenapi: zod_1.z.boolean().optional(),
|
|
47
|
+
reportFile: zod_1.z.string().optional(),
|
|
48
|
+
});
|
|
33
49
|
/** Additional parameters */
|
|
34
50
|
exports.additionalParametersSchema = zod_1.z.object({
|
|
35
51
|
clean: zod_1.z.boolean().optional(),
|
|
36
52
|
request: zod_1.z.string().optional(),
|
|
53
|
+
plugins: zod_1.z.array(zod_1.z.string()).optional(),
|
|
37
54
|
interfacePrefix: zod_1.z.string().optional(),
|
|
38
55
|
enumPrefix: zod_1.z.string().optional(),
|
|
39
56
|
typePrefix: zod_1.z.string().optional(),
|
|
57
|
+
useHistory: zod_1.z.boolean().optional(),
|
|
58
|
+
diffReport: zod_1.z.string().optional(),
|
|
59
|
+
modelsMode: zod_1.z.enum(ModelsMode_enum_1.ModelsMode).optional(),
|
|
60
|
+
});
|
|
61
|
+
exports.modelsConfigSchema = zod_1.z.object({
|
|
62
|
+
mode: zod_1.z.enum(ModelsMode_enum_1.ModelsMode).optional(),
|
|
63
|
+
corePath: zod_1.z.string().optional(),
|
|
64
|
+
modelsPath: zod_1.z.string().optional(),
|
|
65
|
+
});
|
|
66
|
+
exports.analyzeConfigSchema = zod_1.z.object({
|
|
67
|
+
reportPath: zod_1.z.string().optional(),
|
|
68
|
+
useHistory: zod_1.z.boolean().optional(),
|
|
69
|
+
ignore: zod_1.z.array(zod_1.z.object({
|
|
70
|
+
path: zod_1.z.string().optional(),
|
|
71
|
+
pattern: zod_1.z.string().optional(),
|
|
72
|
+
reason: zod_1.z.string().optional(),
|
|
73
|
+
until: zod_1.z.string().optional(),
|
|
74
|
+
})).optional(),
|
|
75
|
+
failOnBreaking: zod_1.z.boolean().optional(),
|
|
76
|
+
});
|
|
77
|
+
exports.miraclesConfigSchema = zod_1.z.object({
|
|
78
|
+
enabled: zod_1.z.boolean().optional(),
|
|
79
|
+
confidence: zod_1.z.number().min(0).max(1).optional(),
|
|
80
|
+
types: zod_1.z.array(zod_1.z.enum(['RENAME', 'TYPE_COERCION'])).optional(),
|
|
40
81
|
});
|
|
41
82
|
exports.additionalParametersSchemaV2 = exports.additionalParametersSchema.omit({
|
|
42
83
|
clean: true,
|