ts-openapi-codegen 2.1.0-beta.6 → 2.1.0-beta.8
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 +3 -0
- package/README.rus.md +3 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.js +9 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.js +9 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.js +9 -0
- package/dist/cli/analyzeDiff/ignoreRules.d.ts +0 -6
- package/dist/cli/analyzeDiff/ignoreRules.d.ts.map +1 -1
- package/dist/cli/analyzeDiff/ignoreRules.js +2 -3
- package/dist/cli/analyzeUsage/analyzeUsage.d.ts +4 -0
- package/dist/cli/analyzeUsage/analyzeUsage.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/analyzeUsage.js +60 -0
- package/dist/cli/analyzeUsage/core/Analyzer.d.ts +9 -0
- package/dist/cli/analyzeUsage/core/Analyzer.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/core/Analyzer.js +29 -0
- package/dist/cli/analyzeUsage/core/ProjectContext.d.ts +10 -0
- package/dist/cli/analyzeUsage/core/ProjectContext.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/core/ProjectContext.js +58 -0
- package/dist/cli/analyzeUsage/core/Scanner.d.ts +15 -0
- package/dist/cli/analyzeUsage/core/Scanner.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/core/Scanner.js +115 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.js +76 -0
- package/dist/cli/analyzeUsage/rules/CoverageRule.d.ts +7 -0
- package/dist/cli/analyzeUsage/rules/CoverageRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/CoverageRule.js +55 -0
- package/dist/cli/analyzeUsage/rules/DiagnosticsRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/DiagnosticsRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/DiagnosticsRule.js +63 -0
- package/dist/cli/analyzeUsage/rules/ImportRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/ImportRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ImportRule.js +50 -0
- package/dist/cli/analyzeUsage/rules/ModelRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/ModelRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ModelRule.js +34 -0
- package/dist/cli/analyzeUsage/rules/SchemaRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/SchemaRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/SchemaRule.js +46 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.d.ts +7 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.js +86 -0
- package/dist/cli/analyzeUsage/types.d.ts +52 -0
- package/dist/cli/analyzeUsage/types.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/types.js +2 -0
- package/dist/cli/analyzeUsage/utils/fuzzy.d.ts +5 -0
- package/dist/cli/analyzeUsage/utils/fuzzy.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/utils/fuzzy.js +38 -0
- package/dist/cli/analyzeUsage/utils/report.d.ts +16 -0
- package/dist/cli/analyzeUsage/utils/report.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/utils/report.js +85 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/checkConfig.test.js +10 -20
- package/dist/cli/checkAndUpdateConfig/__tests__/updateConfig.test.js +10 -20
- package/dist/cli/checkAndUpdateConfig/checkConfig.d.ts +2 -1
- package/dist/cli/checkAndUpdateConfig/checkConfig.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/checkConfig.js +8 -4
- package/dist/cli/checkAndUpdateConfig/updateConfig.d.ts +2 -1
- package/dist/cli/checkAndUpdateConfig/updateConfig.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/updateConfig.js +6 -3
- package/dist/cli/checkAndUpdateConfig/utils/removeDefaultConfigValues.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.js +19 -1
- package/dist/cli/checkAndUpdateConfig/utils/writeConfigFile.d.ts +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/writeConfigFile.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/writeConfigFile.js +1 -1
- package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.js +18 -9
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts +2 -5
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts.map +1 -1
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.js +21 -17
- package/dist/cli/index.js +44 -11
- package/dist/cli/initOpenApiConfig/__tests__/init.test.js +4 -14
- package/dist/cli/initOpenApiConfig/__tests__/initConfig.test.js +3 -1
- package/dist/cli/initOpenApiConfig/init.d.ts +2 -1
- package/dist/cli/initOpenApiConfig/init.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/init.js +3 -3
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts +0 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.js +1 -2
- package/dist/cli/initOpenApiConfig/utils/__tests__/buildConfig.test.js +2 -8
- package/dist/cli/initOpenApiConfig/utils/__tests__/validateSpecFiles.test.js +9 -0
- package/dist/cli/initOpenApiConfig/utils/buildConfig.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/buildConfig.js +0 -4
- package/dist/cli/initOpenApiConfig/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/cli/interactive/constants.d.ts +0 -4
- package/dist/cli/interactive/constants.d.ts.map +1 -1
- package/dist/cli/interactive/constants.js +1 -5
- package/dist/cli/previewChanges/previewChanges.d.ts +2 -1
- package/dist/cli/previewChanges/previewChanges.d.ts.map +1 -1
- package/dist/cli/previewChanges/previewChanges.js +6 -6
- package/dist/cli/previewChanges/utils/formatDiff.d.ts.map +1 -1
- package/dist/cli/previewChanges/utils/updateOutputPaths.d.ts.map +1 -1
- package/dist/cli/previewChanges/utils/updateOutputPaths.js +5 -12
- package/dist/cli/schemas/analyzeUsage.d.ts +13 -0
- package/dist/cli/schemas/analyzeUsage.d.ts.map +1 -0
- package/dist/cli/schemas/analyzeUsage.js +41 -0
- package/dist/cli/schemas/generate.d.ts +10 -2
- package/dist/cli/schemas/generate.d.ts.map +1 -1
- package/dist/cli/schemas/generate.js +7 -2
- package/dist/cli/schemas/index.d.ts +2 -2
- package/dist/cli/schemas/index.d.ts.map +1 -1
- package/dist/cli/schemas/index.js +1 -1
- package/dist/cli/schemas/init.d.ts +0 -1
- package/dist/cli/schemas/init.d.ts.map +1 -1
- package/dist/cli/schemas/init.js +0 -1
- package/dist/cli/types.d.ts +6 -0
- package/dist/cli/types.d.ts.map +1 -0
- package/dist/cli/types.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 +7 -4
- package/dist/common/Logger.d.ts.map +1 -1
- package/dist/common/Logger.js +3 -3
- package/dist/common/LoggerMessages.d.ts +66 -12
- package/dist/common/LoggerMessages.d.ts.map +1 -1
- package/dist/common/LoggerMessages.js +72 -18
- package/dist/common/TEslintFixOptions.d.ts +20 -0
- package/dist/common/TEslintFixOptions.d.ts.map +1 -0
- package/dist/common/TEslintFixOptions.js +15 -0
- package/dist/common/TRawOptions.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.js +2 -4
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllVersionedSchemas.js +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts +0 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.js +1 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.js +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.js +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts +10 -4
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.js +15 -5
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts +18 -15
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.js +7 -1
- package/dist/common/VersionedSchema/CommonSchemas.d.ts +0 -2
- package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.js +4 -3
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.js +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.js +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.js +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.js +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.js +0 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts +2 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts +2 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts +0 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.js +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +1 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.js +9 -9
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.js +4 -16
- package/dist/common/VersionedSchema/Utils/buildVersionedSchema.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/createDefaultFieldsMigration.d.ts +1 -1
- package/dist/common/VersionedSchema/Utils/createDefaultFieldsMigration.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/createDefaultFieldsMigration.js +1 -1
- package/dist/common/VersionedSchema/Utils/createTrivialMigration.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/createTrivialMigration.js +1 -1
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.js +1 -3
- package/dist/common/VersionedSchema/Utils/getLatestVersionFromMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.js +2 -4
- package/dist/common/VersionedSchema/Utils/replaceInvalidKeysWithMappedNames.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/replaceInvalidKeysWithMappedNames.js +1 -1
- package/dist/common/VersionedSchema/Utils/validateAndSuggestKeyCorrections.d.ts.map +1 -1
- package/dist/common/VersionedSchema/refinements/dependentOptionsRefinement.d.ts +1 -1
- package/dist/common/VersionedSchema/refinements/dependentOptionsRefinement.d.ts.map +1 -1
- package/dist/common/utils/__tests__/convertArrayToObject.test.js +0 -3
- package/dist/common/utils/__tests__/eslintFix.test.js +25 -67
- package/dist/common/utils/__tests__/extractEslintFixOptions.test.d.ts +2 -0
- package/dist/common/utils/__tests__/extractEslintFixOptions.test.d.ts.map +1 -0
- package/dist/common/utils/__tests__/extractEslintFixOptions.test.js +28 -0
- package/dist/common/utils/__tests__/format.test.js +26 -17
- package/dist/common/utils/__tests__/prepareTempTsConfig.test.d.ts +2 -0
- package/dist/common/utils/__tests__/prepareTempTsConfig.test.d.ts.map +1 -0
- package/dist/common/utils/__tests__/prepareTempTsConfig.test.js +78 -0
- package/dist/common/utils/codegenTempDir.d.ts +20 -0
- package/dist/common/utils/codegenTempDir.d.ts.map +1 -0
- package/dist/common/utils/codegenTempDir.js +42 -0
- package/dist/common/utils/convertArrayToObject.d.ts.map +1 -1
- package/dist/common/utils/convertArrayToObject.js +3 -10
- package/dist/common/utils/eslintFix.d.ts +48 -4
- package/dist/common/utils/eslintFix.d.ts.map +1 -1
- package/dist/common/utils/eslintFix.js +121 -15
- 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 +23 -11
- package/dist/common/utils/jsonPath.d.ts.map +1 -1
- package/dist/common/utils/prepareTempEslintConfig.d.ts +18 -0
- package/dist/common/utils/prepareTempEslintConfig.d.ts.map +1 -0
- package/dist/common/utils/prepareTempEslintConfig.js +55 -0
- package/dist/common/utils/prepareTempTsConfig.d.ts +23 -0
- package/dist/common/utils/prepareTempTsConfig.d.ts.map +1 -0
- package/dist/common/utils/prepareTempTsConfig.js +105 -0
- package/dist/core/Context.d.ts.map +1 -1
- package/dist/core/Context.js +2 -6
- package/dist/core/OpenApiClient.d.ts +19 -1
- package/dist/core/OpenApiClient.d.ts.map +1 -1
- package/dist/core/OpenApiClient.js +243 -22
- package/dist/core/WriteClient.d.ts +33 -5
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +60 -18
- package/dist/core/__tests__/WriteClient.test.js +1 -1
- package/dist/core/api/v2/parser/getOperationResponses.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperationResponses.js +1 -3
- package/dist/core/api/v2/parser/getServiceName.d.ts +1 -1
- package/dist/core/api/v3/parser/getOperation.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationParameters.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationResponses.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationResponses.js +1 -3
- package/dist/core/api/v3/parser/getServiceName.d.ts +1 -1
- package/dist/core/governance/evaluateGovernanceRules.d.ts.map +1 -1
- package/dist/core/governance/evaluateGovernanceRules.js +1 -3
- package/dist/core/governance/loadGovernanceConfig.d.ts.map +1 -1
- package/dist/core/governance/loadGovernanceConfig.js +2 -4
- package/dist/core/plugins/GeneratorPlugin.model.d.ts.map +1 -1
- package/dist/core/plugins/applySemanticDiffPluginHooks.d.ts.map +1 -1
- package/dist/core/plugins/getBuiltinPlugins.d.ts.map +1 -1
- package/dist/core/plugins/loadGeneratorPlugins.d.ts.map +1 -1
- package/dist/core/plugins/loadGeneratorPlugins.js +1 -1
- package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.js +7 -21
- package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts.map +1 -1
- package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts +0 -2
- package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts.map +1 -1
- package/dist/core/semanticDiff/semanticDiffReportSchema.js +3 -9
- package/dist/core/strict/validateOpenApiStrict.d.ts.map +1 -1
- package/dist/core/types/Consts.js +1 -1
- package/dist/core/types/base/ClientArtifacts.model.d.ts +3 -3
- package/dist/core/types/base/ClientArtifacts.model.d.ts.map +1 -1
- package/dist/core/types/base/ExportedModel.model.d.ts +1 -1
- package/dist/core/types/base/ExportedModel.model.d.ts.map +1 -1
- package/dist/core/types/base/ExportedService.model.d.ts.map +1 -1
- package/dist/core/types/base/OutputPaths.model.d.ts.map +1 -1
- package/dist/core/types/base/PrefixArtifacts.model.d.ts.map +1 -1
- package/dist/core/types/base/PropertyGroup.model.d.ts +1 -1
- package/dist/core/types/base/SimpleClientArtifacts.model.d.ts +1 -1
- package/dist/core/types/base/SimpleClientArtifacts.model.d.ts.map +1 -1
- package/dist/core/types/shared/Client.model.d.ts +1 -1
- package/dist/core/types/shared/Client.model.d.ts.map +1 -1
- package/dist/core/types/shared/Model.model.d.ts +1 -1
- package/dist/core/types/shared/Model.model.d.ts.map +1 -1
- package/dist/core/utils/__tests__/postProcessModelImports.test.js +1 -4
- package/dist/core/utils/__tests__/postProcessServiceImports.test.js +1 -4
- package/dist/core/utils/__tests__/prepareDtoModels.test.js +95 -0
- package/dist/core/utils/__tests__/registerHandlebarHelpers.test.js +27 -0
- package/dist/core/utils/__tests__/sortByRequiredExtended.test.js +10 -27
- package/dist/core/utils/__tests__/writeClientServices.test.js +0 -1
- package/dist/core/utils/appendUniqueLinesToFile.js +1 -1
- package/dist/core/utils/applyDiffReportToClient.d.ts.map +1 -1
- package/dist/core/utils/applyDiffReportToClient.js +2 -2
- package/dist/core/utils/areEqual.d.ts +1 -1
- package/dist/core/utils/getOperationErrors.d.ts +2 -2
- package/dist/core/utils/getOperationErrors.d.ts.map +1 -1
- package/dist/core/utils/getOperationResults.d.ts +1 -1
- package/dist/core/utils/getPropertyGroupSimple.d.ts.map +1 -1
- package/dist/core/utils/getPropertyGroupSimple.js +1 -3
- package/dist/core/utils/isSubdirectory.d.ts.map +1 -1
- package/dist/core/utils/loadDiffReport.d.ts.map +1 -1
- package/dist/core/utils/loadDiffReport.js +5 -4
- package/dist/core/utils/modelHelpers.d.ts.map +1 -1
- package/dist/core/utils/normalizeString.d.ts.map +1 -1
- package/dist/core/utils/normalizeString.js +1 -5
- package/dist/core/utils/postProcessServiceImports.d.ts.map +1 -1
- package/dist/core/utils/postProcessServiceImports.js +1 -3
- package/dist/core/utils/precompileTemplates.js +4 -2
- package/dist/core/utils/prepareAlias.d.ts +1 -1
- package/dist/core/utils/prepareDtoModels.d.ts.map +1 -1
- package/dist/core/utils/prepareDtoModels.js +2 -8
- package/dist/core/utils/registerHandlebarHelpers.d.ts +1 -0
- package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarHelpers.js +3 -0
- package/dist/core/utils/registerHandlebarTemplates.d.ts +1 -0
- package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/core/utils/sortModelByName.d.ts +1 -1
- package/dist/core/utils/writeClientCore.d.ts +0 -2
- package/dist/core/utils/writeClientCore.d.ts.map +1 -1
- package/dist/core/utils/writeClientCore.js +19 -18
- package/dist/core/utils/writeClientCoreIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientCoreIndex.js +14 -4
- package/dist/core/utils/writeClientExecutor.d.ts +1 -2
- package/dist/core/utils/writeClientExecutor.d.ts.map +1 -1
- package/dist/core/utils/writeClientExecutor.js +6 -10
- package/dist/core/utils/writeClientFullIndex.js +4 -4
- package/dist/core/utils/writeClientModels.d.ts +1 -2
- package/dist/core/utils/writeClientModels.d.ts.map +1 -1
- package/dist/core/utils/writeClientModels.js +14 -16
- package/dist/core/utils/writeClientModelsIndex.d.ts +1 -1
- package/dist/core/utils/writeClientModelsIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientModelsIndex.js +14 -4
- package/dist/core/utils/writeClientSchemas.d.ts +1 -3
- package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.js +9 -14
- package/dist/core/utils/writeClientSchemasIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemasIndex.js +14 -4
- package/dist/core/utils/writeClientServices.d.ts +1 -4
- package/dist/core/utils/writeClientServices.d.ts.map +1 -1
- package/dist/core/utils/writeClientServices.js +9 -13
- package/dist/core/utils/writeClientServicesIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientServicesIndex.js +14 -4
- package/dist/core/utils/writeClientSimpleIndex.js +4 -4
- package/dist/templatesCompiled/cli/customRequest.d.ts +2 -6
- package/dist/templatesCompiled/cli/customRequest.d.ts.map +1 -1
- package/dist/templatesCompiled/cli/customRequest.js +8 -28
- package/dist/templatesCompiled/cli/customRequestExecutor.d.ts +0 -3
- package/dist/templatesCompiled/cli/customRequestExecutor.d.ts.map +1 -1
- package/dist/templatesCompiled/cli/customRequestExecutor.js +5 -28
- package/dist/templatesCompiled/client/core/axios/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/axios/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/axios/request.js +2 -22
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts +2 -5
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.js +12 -42
- package/dist/templatesCompiled/client/core/executor/requestExecutor.d.ts +0 -2
- package/dist/templatesCompiled/client/core/executor/requestExecutor.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/requestExecutor.js +3 -11
- package/dist/templatesCompiled/client/core/fetch/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/fetch/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/fetch/request.js +2 -22
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.d.ts +0 -2
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.js +3 -11
- package/dist/templatesCompiled/client/core/node/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/node/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/node/request.js +2 -22
- package/dist/templatesCompiled/client/core/xhr/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/xhr/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/xhr/request.js +2 -22
- package/dist/templatesCompiled/client/exportService.d.ts +9 -11
- package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportService.js +64 -82
- package/dist/templatesCompiled/client/partials/header.d.ts +1 -0
- package/dist/templatesCompiled/client/partials/header.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/header.js +11 -2
- package/dist/test/helpers/silenceLoggers.d.ts +11 -0
- package/dist/test/helpers/silenceLoggers.d.ts.map +1 -0
- package/dist/test/helpers/silenceLoggers.js +88 -0
- package/package.json +132 -135
|
@@ -26,6 +26,11 @@ export declare const LOGGER_MESSAGES: {
|
|
|
26
26
|
readonly FINISHED_WITH_DURATION: (duration: string) => string;
|
|
27
27
|
readonly DURATION_FOR_FILE: (file: string, duration: string) => string;
|
|
28
28
|
readonly NO_OPTIONS: "No options provided for generation";
|
|
29
|
+
readonly WRITE_STATS: (written: number, unchanged: number) => string;
|
|
30
|
+
readonly CACHE_SHARED_OUTPUT_WARNING: (outputs: string) => string;
|
|
31
|
+
readonly CACHE_HIT: (input: string) => string;
|
|
32
|
+
readonly CACHE_MISS: (input: string) => string;
|
|
33
|
+
readonly STRICT_REPORT_CREATED: (reportPath: string) => string;
|
|
29
34
|
};
|
|
30
35
|
readonly OPENAPI: {
|
|
31
36
|
readonly DEFINING_VERSION: "Defining the version of the openapi specification (2 or 3)";
|
|
@@ -63,6 +68,7 @@ export declare const LOGGER_MESSAGES: {
|
|
|
63
68
|
readonly PREFIX: "Error:";
|
|
64
69
|
readonly GENERIC: (message: string) => string;
|
|
65
70
|
readonly WITH_DETAILS: (message: string, details: string) => string;
|
|
71
|
+
readonly TECHNICAL_DETAILS: (error: string) => string;
|
|
66
72
|
};
|
|
67
73
|
readonly SEPARATOR: "==========================================";
|
|
68
74
|
readonly DIALOG: {
|
|
@@ -90,18 +96,20 @@ export declare const LOGGER_MESSAGES: {
|
|
|
90
96
|
readonly CLEANUP_PREVIEW_DIR: (dir: string) => string;
|
|
91
97
|
readonly CLEANUP_PREVIEW_FAILED: (error: string) => string;
|
|
92
98
|
};
|
|
93
|
-
readonly MIGRATION: {
|
|
94
|
-
readonly OPENAPI_SCHEMA_MIGRATED: "To perform OpenAPI generation, it was necessary to migrate the schema of your data to the current one. To update the configuration in the file, use the command `npm openapi-codegen-cli update-config`";
|
|
95
|
-
};
|
|
96
|
-
readonly FORMATTING: {
|
|
97
|
-
readonly PRETTIER_PROJECT_CONFIG_RESOLVED: (filePath: string) => string;
|
|
98
|
-
readonly PRETTIER_PROJECT_CONFIG_NOT_FOUND: "No project Prettier config found, falling back to built-in options";
|
|
99
|
-
readonly PRETTIER_FORMAT_FAILED: (file: string, error: string) => string;
|
|
100
|
-
readonly ESLINT_NOT_INSTALLED: "ESLint is not installed in this project. Skipping --useEslintFix.";
|
|
101
|
-
readonly ESLINT_FIX_FAILED: (file: string, error: string) => string;
|
|
102
|
-
readonly ESLINT_FIX_APPLIED: (file: string) => string;
|
|
103
|
-
};
|
|
104
99
|
readonly ANALYZE_DIFF: {
|
|
100
|
+
readonly INPUT_REQUIRED: "\"--input\" option is required for analyze-diff command";
|
|
101
|
+
readonly HISTORY_SKIPPED: "History analysis skipped: no base spec provided (use --compare-with or --git)";
|
|
102
|
+
readonly ANALYZING: "\n[openapi-codegen] Analyzing OpenAPI changes...";
|
|
103
|
+
readonly SUMMARY_TITLE: "[openapi-codegen] Analyze-diff summary";
|
|
104
|
+
readonly BASE: (base: string) => string;
|
|
105
|
+
readonly TARGET: (target: string) => string;
|
|
106
|
+
readonly STABILITY_SCORE: (score: number) => string;
|
|
107
|
+
readonly CHANGES: (total: number, added: number, removed: number, changed: number) => string;
|
|
108
|
+
readonly BREAKING_COUNT: (count: number) => string;
|
|
109
|
+
readonly WARNING_COUNT: (count: number) => string;
|
|
110
|
+
readonly IGNORED_COUNT: (count: number) => string;
|
|
111
|
+
readonly REPORT_WRITTEN: (reportPath: string) => string;
|
|
112
|
+
readonly INVALID_IGNORE_PATTERN: (pattern: string, error: string) => string;
|
|
105
113
|
readonly STARTED: (newSpec: string, baseSource: string) => string;
|
|
106
114
|
readonly SKIPPED_NO_BASE: "History analysis skipped: no base spec provided (use --compare-with or --git).";
|
|
107
115
|
readonly VALIDATION_ERROR: (message: string) => string;
|
|
@@ -149,7 +157,6 @@ export declare const LOGGER_MESSAGES: {
|
|
|
149
157
|
readonly CI_FAILURE: "CI mode failed because governance errors were found.";
|
|
150
158
|
readonly IGNORED_CHANGES: (count: number) => string;
|
|
151
159
|
readonly EXECUTION_ERROR: (message: string) => string;
|
|
152
|
-
readonly INVALID_IGNORE_PATTERN: (pattern: string, error: string) => string;
|
|
153
160
|
readonly LEGACY_BASE: (base: string) => string;
|
|
154
161
|
readonly LEGACY_TARGET: (target: string) => string;
|
|
155
162
|
readonly LEGACY_STABILITY_SCORE: (score: number) => string;
|
|
@@ -163,5 +170,52 @@ export declare const LOGGER_MESSAGES: {
|
|
|
163
170
|
readonly LEGACY_WARNINGS: (count: number) => string;
|
|
164
171
|
readonly LEGACY_IGNORED: (count: number) => string;
|
|
165
172
|
};
|
|
173
|
+
readonly DIFF_REPORT: {
|
|
174
|
+
readonly NOT_FOUND: (reportPath: string) => string;
|
|
175
|
+
readonly STALE: (reportPath: string) => string;
|
|
176
|
+
readonly EMPTY: (reportPath: string) => string;
|
|
177
|
+
readonly READ_FAILED: (reportPath: string, message: string) => string;
|
|
178
|
+
};
|
|
179
|
+
readonly TEMPLATES: {
|
|
180
|
+
readonly PRECOMPILE_SUCCESS: "The templates have been successfully precompiled and saved!";
|
|
181
|
+
readonly PRECOMPILE_ERROR: (message: string) => string;
|
|
182
|
+
};
|
|
183
|
+
readonly WRITE_CLIENT: {
|
|
184
|
+
readonly DATA_WRITE_START: (filePath: string) => string;
|
|
185
|
+
readonly FILE_RECORDED: (filePath: string) => string;
|
|
186
|
+
readonly INDEX_DATA_WRITTEN: (filePath: string) => string;
|
|
187
|
+
readonly INDEX_WRITE_COMPLETED: (filePath: string) => string;
|
|
188
|
+
readonly CORE_START: "The recording of the kernel files begins";
|
|
189
|
+
readonly CORE_FINISH: "The writing of the kernel files has been completed successfully";
|
|
190
|
+
readonly MODELS_START: "Recording of model files begins";
|
|
191
|
+
readonly MODELS_FINISH: "Model file recording completed successfully";
|
|
192
|
+
readonly SERVICES_START: "Recording of service files begins";
|
|
193
|
+
readonly SERVICES_FINISH: "Service file recording completed successfully";
|
|
194
|
+
readonly SCHEMAS_START: "The recording of model validation schema files begins.";
|
|
195
|
+
readonly SCHEMAS_FINISH: "The recording of model validation schema files has been completed successfully";
|
|
196
|
+
readonly DIRECTORY_CREATING: (directory: string) => string;
|
|
197
|
+
readonly EXECUTOR_START: (filePath: string) => string;
|
|
198
|
+
};
|
|
199
|
+
readonly LOGGER: {
|
|
200
|
+
readonly NEXT_STEPS: (recommendation: string) => string;
|
|
201
|
+
};
|
|
202
|
+
readonly MIGRATION: {
|
|
203
|
+
readonly OPENAPI_SCHEMA_MIGRATED: "To perform OpenAPI generation, it was necessary to migrate the schema of your data to the current one. To update the configuration in the file, use the command `npm openapi-codegen-cli update-config`";
|
|
204
|
+
};
|
|
205
|
+
readonly FORMATTING: {
|
|
206
|
+
readonly PRETTIER_CONFIG_RESOLVED: (filePath: string) => string;
|
|
207
|
+
readonly PRETTIER_CONFIG_NOT_FOUND: (configPath: string) => string;
|
|
208
|
+
readonly PRETTIER_FORMAT_FAILED: (file: string, error: string) => string;
|
|
209
|
+
readonly ESLINT_NOT_INSTALLED: "ESLint is not installed in this project. Skipping batch ESLint fix.";
|
|
210
|
+
readonly ESLINT_FIX_FAILED: (file: string, error: string) => string;
|
|
211
|
+
readonly ESLINT_FIX_APPLIED: (file: string) => string;
|
|
212
|
+
readonly ESLINT_PATHS_MISSING: "Batch ESLint fix requires both tsconfigPath and eslintConfigPath. Skipping batch ESLint fix.";
|
|
213
|
+
readonly ESLINT_BATCH_STARTED: "Batch ESLint fix started for generated models and services";
|
|
214
|
+
readonly ESLINT_BATCH_FINISHED: (durationSec: string) => string;
|
|
215
|
+
readonly ESLINT_BATCH_COMPLETED: (reportPath: string) => string;
|
|
216
|
+
readonly ESLINT_BATCH_COMPLETED_WITH_ISSUES: (errors: number, warnings: number, reportPath: string) => string;
|
|
217
|
+
readonly ESLINT_BATCH_FAILED: (error: string) => string;
|
|
218
|
+
readonly ESLINT_BATCH_CHUNK_FAILED: (error: string) => string;
|
|
219
|
+
};
|
|
166
220
|
};
|
|
167
221
|
//# sourceMappingURL=LoggerMessages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoggerMessages.d.ts","sourceRoot":"","sources":["../../src/common/LoggerMessages.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;CAWrB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"LoggerMessages.d.ts","sourceRoot":"","sources":["../../src/common/LoggerMessages.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;CAWrB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAezE,CAAC;AAEF,eAAO,MAAM,eAAe;;kCAGH,MAAM;;oDAEY,MAAM;2CACf,MAAM,YAAY,MAAM;;wCAE3B,MAAM,aAAa,MAAM;wDACT,MAAM;oCAG1B,MAAM;qCACL,MAAM;qDACU,MAAM;;;;;;;;;;wCAcnB,MAAM;2CACH,MAAM;;;;sCAIX,MAAM;2CACD,MAAM;4CACL,MAAM;;0CAER,MAAM;;4DAEY,MAAM;;wCAE1B,MAAM;gDACE,MAAM;;gDAEN,MAAM;kDACJ,MAAM;;;;;yCAKf,MAAM;;;;oCAMX,MAAM;yCACD,MAAM,WAAW,MAAM;4CACpB,MAAM;;;;;;;;;0DAeQ,MAAM;;sCAE1B,MAAM;;;+CAKG,MAAM;;;4CAKT,MAAM;2CACP,MAAM;;yCAER,MAAM;wCACP,MAAM;wCACN,MAAM;4CACF,MAAM;;4CAEN,MAAM;iDACD,MAAM;;;;;;;8BASzB,MAAM;kCACF,MAAM;0CACE,MAAM;kCACd,MAAM,SAAS,MAAM,WAAW,MAAM,WAAW,MAAM;yCAChD,MAAM;wCACP,MAAM;wCACN,MAAM;8CACA,MAAM;mDACD,MAAM,SAAS,MAAM;oCACpC,MAAM,cAAc,MAAM;;6CAEjB,MAAM;sDACG,MAAM;iDACX;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAA;SAAE;8CAI7F,MAAM;mCAEvB;YACJ,OAAO,EAAE;gBAAE,QAAQ,EAAE,MAAM,CAAC;gBAAC,WAAW,EAAE,MAAM,CAAC;gBAAC,aAAa,EAAE,MAAM,CAAA;aAAE,CAAC;YAC1E,UAAU,EAAE;gBAAE,OAAO,EAAE;oBAAE,MAAM,EAAE,MAAM,CAAC;oBAAC,QAAQ,EAAE,MAAM,CAAC;oBAAC,IAAI,EAAE,MAAM,CAAA;iBAAE,CAAA;aAAE,CAAC;SAC/E,cACW,MAAM;0CAGG;YAAE,cAAc,EAAE;gBAAE,MAAM,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAC;gBAAC,UAAU,EAAE,MAAM,CAAC;gBAAC,OAAO,EAAE,MAAM,EAAE,CAAA;aAAE,CAAA;SAAE;sCAEjG;YAAE,UAAU,EAAE;gBAAE,OAAO,EAAE;oBAAE,MAAM,EAAE,MAAM,CAAC;oBAAC,QAAQ,EAAE,MAAM,CAAC;oBAAC,IAAI,EAAE,MAAM,CAAA;iBAAE,CAAA;aAAE,CAAA;SAAE;iDAEpE,MAAM;;0CAEb,MAAM;4CACJ,MAAM;qCACb,MAAM;yCACF,MAAM;iDACE,MAAM;yCACd;YAAE,YAAY,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE;0CAExE,MAAM;0CACN,MAAM;yCACP,MAAM;;;yCAIN,MAAM;qCACV,MAAM;qCACN,MAAM;2CACA,MAAM,WAAW,MAAM;;;;6CAKrB,MAAM;;;8CAIL,MAAM;2CACT,MAAM;gDACD,MAAM;mDACH,MAAM;;;;;;;;;iDASR,MAAM;4CACX,MAAM;;;8CAIJ,MAAM;;;;;;sDAWE,MAAM;yDACH,MAAM;gDACf,MAAM,SAAS,MAAM;;2CAE1B,MAAM,SAAS,MAAM;4CACpB,MAAM;;;sDAGI,MAAM;sDACN,MAAM;8DACE,MAAM,YAAY,MAAM,cAAc,MAAM;8CAE5D,MAAM;oDACA,MAAM;;CAEvC,CAAC"}
|
|
@@ -29,8 +29,8 @@ exports.LOGGER_ERROR_RECOMMENDATIONS = {
|
|
|
29
29
|
PREVIEW_DIR_EMPTY: 'Сначала выполните генерацию клиента, чтобы появились файлы для сравнения, или укажите другую директорию для превью. Если каталог должен существовать, проверьте правильность пути.',
|
|
30
30
|
PREVIEW_CLEANUP_FAILED: 'Проверьте права доступа к директории превью и отсутствует ли блокировка файлов сторонними процессами. При необходимости очистите каталог вручную и повторите команду.',
|
|
31
31
|
SPEC_FILES_FIND_ERROR: 'Проверьте корректность маски поиска и доступ к файловой системе. Убедитесь, что у вас есть права чтения для директории со спецификациями.',
|
|
32
|
-
PRETTIER_FORMAT_FAILED: 'Проверьте синтаксис сгенерированного фрагмента и настройки Prettier (включая опцию
|
|
33
|
-
ESLINT_FIX_FAILED: 'Проверьте, что
|
|
32
|
+
PRETTIER_FORMAT_FAILED: 'Проверьте синтаксис сгенерированного фрагмента и настройки Prettier (включая опцию prettierConfigPath). При необходимости укажите корректный путь к конфигу или поправьте файл конфигурации.',
|
|
33
|
+
ESLINT_FIX_FAILED: 'Проверьте, что пути tsconfigPath и eslintConfigPath корректны, ESLint установлен в проекте, и что сгенерированные файлы доступны для чтения и записи.',
|
|
34
34
|
};
|
|
35
35
|
exports.LOGGER_MESSAGES = {
|
|
36
36
|
// ========== Generation Messages (OpenApiClient) ==========
|
|
@@ -40,6 +40,12 @@ exports.LOGGER_MESSAGES = {
|
|
|
40
40
|
FINISHED_WITH_DURATION: (duration) => `Generation completed in ${duration} sec`,
|
|
41
41
|
DURATION_FOR_FILE: (file, duration) => `Duration for "${file}": ${duration} sec`,
|
|
42
42
|
NO_OPTIONS: 'No options provided for generation',
|
|
43
|
+
WRITE_STATS: (written, unchanged) => `[openapi-codegen] Write stats: written=${written}, unchanged=${unchanged}`,
|
|
44
|
+
CACHE_SHARED_OUTPUT_WARNING: (outputs) => `[openapi-codegen] Cache is disabled and multiple items write to the same output directories:\n${outputs}\n` +
|
|
45
|
+
'This can overwrite previously generated files in the final output. Consider enabling cache via "cache: true" or "--cache".',
|
|
46
|
+
CACHE_HIT: (input) => `[openapi-codegen] Cache hit: ${input}`,
|
|
47
|
+
CACHE_MISS: (input) => `[openapi-codegen] Cache miss: ${input}`,
|
|
48
|
+
STRICT_REPORT_CREATED: (reportPath) => `Strict OpenAPI report created: ${reportPath}`,
|
|
43
49
|
},
|
|
44
50
|
// ========== OpenAPI Specification Messages ==========
|
|
45
51
|
OPENAPI: {
|
|
@@ -65,8 +71,7 @@ exports.LOGGER_MESSAGES = {
|
|
|
65
71
|
CONFIG_EXISTS_INTERACTIVE_DISABLED: (path) => `Configuration file already exists and interactive mode is disabled: ${path}`,
|
|
66
72
|
CONFIG_LEFT_UNCHANGED: 'Configuration file left unchanged.',
|
|
67
73
|
CONFIG_CREATED: (path) => `Configuration file created: ${path}`,
|
|
68
|
-
EXAMPLE_CONFIG_CREATED: (path) => `Example configuration generated and written to: ${path}\n` +
|
|
69
|
-
'You can use it as a template for your actual configuration.',
|
|
74
|
+
EXAMPLE_CONFIG_CREATED: (path) => `Example configuration generated and written to: ${path}\n` + 'You can use it as a template for your actual configuration.',
|
|
70
75
|
CONFIG_GENERATION_CANCELLED: 'Configuration file generation cancelled.',
|
|
71
76
|
SPEC_FILES_FIND_ERROR: (error) => `Error finding spec files: ${error}`,
|
|
72
77
|
NO_SPEC_FILES_FOUND: (directory) => `No spec files found in directory: ${directory}`,
|
|
@@ -81,6 +86,7 @@ exports.LOGGER_MESSAGES = {
|
|
|
81
86
|
PREFIX: 'Error:',
|
|
82
87
|
GENERIC: (message) => message,
|
|
83
88
|
WITH_DETAILS: (message, details) => `${message}: ${details}`,
|
|
89
|
+
TECHNICAL_DETAILS: (error) => `Technical details: ${error}`,
|
|
84
90
|
},
|
|
85
91
|
// ========== Separator ==========
|
|
86
92
|
SEPARATOR: '==========================================',
|
|
@@ -113,21 +119,21 @@ exports.LOGGER_MESSAGES = {
|
|
|
113
119
|
CLEANUP_PREVIEW_DIR: (dir) => `Cleaning up preview directory: ${dir}`,
|
|
114
120
|
CLEANUP_PREVIEW_FAILED: (error) => `Failed to cleanup preview directory: ${error}`,
|
|
115
121
|
},
|
|
116
|
-
// ========== Migration Messages ==========
|
|
117
|
-
MIGRATION: {
|
|
118
|
-
OPENAPI_SCHEMA_MIGRATED: 'To perform OpenAPI generation, it was necessary to migrate the schema of your data to the current one. To update the configuration in the file, use the command `npm openapi-codegen-cli update-config`',
|
|
119
|
-
},
|
|
120
|
-
// ========== Formatting Messages ==========
|
|
121
|
-
FORMATTING: {
|
|
122
|
-
PRETTIER_PROJECT_CONFIG_RESOLVED: (filePath) => `Prettier config resolved from: ${filePath}`,
|
|
123
|
-
PRETTIER_PROJECT_CONFIG_NOT_FOUND: 'No project Prettier config found, falling back to built-in options',
|
|
124
|
-
PRETTIER_FORMAT_FAILED: (file, error) => `Prettier formatting failed for "${file}": ${error}`,
|
|
125
|
-
ESLINT_NOT_INSTALLED: 'ESLint is not installed in this project. Skipping --useEslintFix.',
|
|
126
|
-
ESLINT_FIX_FAILED: (file, error) => `ESLint fix failed for "${file}": ${error}`,
|
|
127
|
-
ESLINT_FIX_APPLIED: (file) => `ESLint fix applied: ${file}`,
|
|
128
|
-
},
|
|
129
122
|
// ========== Analyze Diff Messages ==========
|
|
130
123
|
ANALYZE_DIFF: {
|
|
124
|
+
INPUT_REQUIRED: '"--input" option is required for analyze-diff command',
|
|
125
|
+
HISTORY_SKIPPED: 'History analysis skipped: no base spec provided (use --compare-with or --git)',
|
|
126
|
+
ANALYZING: '\n[openapi-codegen] Analyzing OpenAPI changes...',
|
|
127
|
+
SUMMARY_TITLE: '[openapi-codegen] Analyze-diff summary',
|
|
128
|
+
BASE: (base) => `Base: ${base}`,
|
|
129
|
+
TARGET: (target) => `Target: ${target}`,
|
|
130
|
+
STABILITY_SCORE: (score) => `Stability score: ${score}%`,
|
|
131
|
+
CHANGES: (total, added, removed, changed) => `Changes: total=${total}, added=${added}, removed=${removed}, changed=${changed}`,
|
|
132
|
+
BREAKING_COUNT: (count) => `[openapi-codegen] BREAKING: ${count} item(s)`,
|
|
133
|
+
WARNING_COUNT: (count) => `[openapi-codegen] WARNINGS: ${count} item(s)`,
|
|
134
|
+
IGNORED_COUNT: (count) => `[openapi-codegen] IGNORED: ${count} item(s) by config rules`,
|
|
135
|
+
REPORT_WRITTEN: (reportPath) => `[openapi-codegen] Report written to: ${reportPath}`,
|
|
136
|
+
INVALID_IGNORE_PATTERN: (pattern, error) => `[openapi-codegen] Invalid ignore pattern: ${pattern} — ${error}`,
|
|
131
137
|
STARTED: (newSpec, baseSource) => `Starting analyze-diff: input=${newSpec}, base=${baseSource}`,
|
|
132
138
|
SKIPPED_NO_BASE: 'History analysis skipped: no base spec provided (use --compare-with or --git).',
|
|
133
139
|
VALIDATION_ERROR: (message) => `Analyze-diff options validation failed: ${message}`,
|
|
@@ -144,7 +150,6 @@ exports.LOGGER_MESSAGES = {
|
|
|
144
150
|
CI_FAILURE: 'CI mode failed because governance errors were found.',
|
|
145
151
|
IGNORED_CHANGES: (count) => `[openapi-codegen] IGNORED: ${count} semantic change(s) filtered by analyze.ignore`,
|
|
146
152
|
EXECUTION_ERROR: (message) => `Analyze-diff execution failed: ${message}`,
|
|
147
|
-
INVALID_IGNORE_PATTERN: (pattern, error) => `[openapi-codegen] Invalid ignore pattern: ${pattern} — ${error}`,
|
|
148
153
|
LEGACY_BASE: (base) => `Base: ${base}`,
|
|
149
154
|
LEGACY_TARGET: (target) => `Target: ${target}`,
|
|
150
155
|
LEGACY_STABILITY_SCORE: (score) => `Stability score: ${score}%`,
|
|
@@ -153,4 +158,53 @@ exports.LOGGER_MESSAGES = {
|
|
|
153
158
|
LEGACY_WARNINGS: (count) => `[openapi-codegen] WARNINGS: ${count} item(s)`,
|
|
154
159
|
LEGACY_IGNORED: (count) => `[openapi-codegen] IGNORED: ${count} item(s) by config rules`,
|
|
155
160
|
},
|
|
161
|
+
DIFF_REPORT: {
|
|
162
|
+
NOT_FOUND: (reportPath) => `[openapi-codegen] Diff report not found at "${reportPath}". Skipping history annotations.`,
|
|
163
|
+
STALE: (reportPath) => `[openapi-codegen] Diff report "${reportPath}" is older than the input spec. Skipping history annotations.`,
|
|
164
|
+
EMPTY: (reportPath) => `[openapi-codegen] Diff report "${reportPath}" has no entries. Skipping history annotations.`,
|
|
165
|
+
READ_FAILED: (reportPath, message) => `[openapi-codegen] Failed to read diff report "${reportPath}": ${message}`,
|
|
166
|
+
},
|
|
167
|
+
TEMPLATES: {
|
|
168
|
+
PRECOMPILE_SUCCESS: 'The templates have been successfully precompiled and saved!',
|
|
169
|
+
PRECOMPILE_ERROR: (message) => `Error during pre-compilation of templates: ${message}`,
|
|
170
|
+
},
|
|
171
|
+
WRITE_CLIENT: {
|
|
172
|
+
DATA_WRITE_START: (filePath) => `The recording of the file data begins: ${filePath}`,
|
|
173
|
+
FILE_RECORDED: (filePath) => `File recording completed: ${filePath}`,
|
|
174
|
+
INDEX_DATA_WRITTEN: (filePath) => `Data has been written to a file: ${filePath}`,
|
|
175
|
+
INDEX_WRITE_COMPLETED: (filePath) => `Writing to the file is completed: ${filePath}`,
|
|
176
|
+
CORE_START: 'The recording of the kernel files begins',
|
|
177
|
+
CORE_FINISH: 'The writing of the kernel files has been completed successfully',
|
|
178
|
+
MODELS_START: 'Recording of model files begins',
|
|
179
|
+
MODELS_FINISH: 'Model file recording completed successfully',
|
|
180
|
+
SERVICES_START: 'Recording of service files begins',
|
|
181
|
+
SERVICES_FINISH: 'Service file recording completed successfully',
|
|
182
|
+
SCHEMAS_START: 'The recording of model validation schema files begins.',
|
|
183
|
+
SCHEMAS_FINISH: 'The recording of model validation schema files has been completed successfully',
|
|
184
|
+
DIRECTORY_CREATING: (directory) => `A directory is being created: ${directory}`,
|
|
185
|
+
EXECUTOR_START: (filePath) => `The recording of the file data begins: ${filePath}`,
|
|
186
|
+
},
|
|
187
|
+
LOGGER: {
|
|
188
|
+
NEXT_STEPS: (recommendation) => `What you can do next: ${recommendation}`,
|
|
189
|
+
},
|
|
190
|
+
// ========== Migration Messages ==========
|
|
191
|
+
MIGRATION: {
|
|
192
|
+
OPENAPI_SCHEMA_MIGRATED: 'To perform OpenAPI generation, it was necessary to migrate the schema of your data to the current one. To update the configuration in the file, use the command `npm openapi-codegen-cli update-config`',
|
|
193
|
+
},
|
|
194
|
+
// ========== Formatting Messages ==========
|
|
195
|
+
FORMATTING: {
|
|
196
|
+
PRETTIER_CONFIG_RESOLVED: (filePath) => `Prettier config resolved from: ${filePath}`,
|
|
197
|
+
PRETTIER_CONFIG_NOT_FOUND: (configPath) => `Prettier config not found at "${configPath}", falling back to built-in options`,
|
|
198
|
+
PRETTIER_FORMAT_FAILED: (file, error) => `Prettier formatting failed for "${file}": ${error}`,
|
|
199
|
+
ESLINT_NOT_INSTALLED: 'ESLint is not installed in this project. Skipping batch ESLint fix.',
|
|
200
|
+
ESLINT_FIX_FAILED: (file, error) => `ESLint fix failed for "${file}": ${error}`,
|
|
201
|
+
ESLINT_FIX_APPLIED: (file) => `ESLint fix applied: ${file}`,
|
|
202
|
+
ESLINT_PATHS_MISSING: 'Batch ESLint fix requires both tsconfigPath and eslintConfigPath. Skipping batch ESLint fix.',
|
|
203
|
+
ESLINT_BATCH_STARTED: 'Batch ESLint fix started for generated models and services',
|
|
204
|
+
ESLINT_BATCH_FINISHED: (durationSec) => `Batch ESLint fix completed in ${durationSec} sec`,
|
|
205
|
+
ESLINT_BATCH_COMPLETED: (reportPath) => `Batch ESLint fix completed. Report: ${reportPath}`,
|
|
206
|
+
ESLINT_BATCH_COMPLETED_WITH_ISSUES: (errors, warnings, reportPath) => `Batch ESLint fix completed with ${errors} error(s) and ${warnings} warning(s). Report: ${reportPath}`,
|
|
207
|
+
ESLINT_BATCH_FAILED: (error) => `Batch ESLint fix failed: ${error}`,
|
|
208
|
+
ESLINT_BATCH_CHUNK_FAILED: (error) => `Batch ESLint fix chunk failed: ${error}`,
|
|
209
|
+
},
|
|
156
210
|
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TRawOptions } from './TRawOptions';
|
|
2
|
+
/**
|
|
3
|
+
* Top-level ESLint fix options read once from TRawOptions.
|
|
4
|
+
* Not propagated into per-item TFlatOptions.
|
|
5
|
+
* Batch ESLint runs when both paths are set.
|
|
6
|
+
*/
|
|
7
|
+
export type TEslintFixOptions = {
|
|
8
|
+
/** Path to the host project's tsconfig.json. */
|
|
9
|
+
tsconfigPath?: string;
|
|
10
|
+
/** Path to the host project's ESLint config. */
|
|
11
|
+
eslintConfigPath?: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Extracts ESLint fix settings from raw generator options (root config only).
|
|
15
|
+
*
|
|
16
|
+
* @param raw - Validated unified options before per-item normalization.
|
|
17
|
+
* @returns Resolved ESLint fix options for OpenApiClient.
|
|
18
|
+
*/
|
|
19
|
+
export declare function extractEslintFixOptions(raw: TRawOptions): TEslintFixOptions;
|
|
20
|
+
//# sourceMappingURL=TEslintFixOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TEslintFixOptions.d.ts","sourceRoot":"","sources":["../../src/common/TEslintFixOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC5B,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gDAAgD;IAChD,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,WAAW,GAAG,iBAAiB,CAK3E"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.extractEslintFixOptions = extractEslintFixOptions;
|
|
4
|
+
/**
|
|
5
|
+
* Extracts ESLint fix settings from raw generator options (root config only).
|
|
6
|
+
*
|
|
7
|
+
* @param raw - Validated unified options before per-item normalization.
|
|
8
|
+
* @returns Resolved ESLint fix options for OpenApiClient.
|
|
9
|
+
*/
|
|
10
|
+
function extractEslintFixOptions(raw) {
|
|
11
|
+
return {
|
|
12
|
+
tsconfigPath: raw.tsconfigPath,
|
|
13
|
+
eslintConfigPath: raw.eslintConfigPath,
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TRawOptions.d.ts","sourceRoot":"","sources":["../../src/common/TRawOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"TRawOptions.d.ts","sourceRoot":"","sources":["../../src/common/TRawOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,+DAA+D,CAAC;AAEpH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE3D,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE7D,MAAM,MAAM,kBAAkB,GAAG;KAC5B,CAAC,IAAI,MAAM,YAAY,CAAC,CAAC,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;CAC5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllMigrationPlans.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAiB/C;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"AllMigrationPlans.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAiB/C;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EA+B5F,CAAC"}
|
|
@@ -39,15 +39,13 @@ exports.allMigrationPlans = [
|
|
|
39
39
|
}, 'Transforms includeSchemasFiles to validationLibrary: if includeSchemasFiles is false, sets validationLibrary to NONE'),
|
|
40
40
|
(0, createDefaultFieldsMigration_1.createDefaultFieldsMigration)('UNIFIED_OPTIONS_v2', 'UNIFIED_OPTIONS_v3', {
|
|
41
41
|
logLevel: Enums_1.ELogLevel.ERROR,
|
|
42
|
-
logTarget: Enums_1.ELogOutput.CONSOLE
|
|
42
|
+
logTarget: Enums_1.ELogOutput.CONSOLE,
|
|
43
43
|
}),
|
|
44
44
|
(0, createDefaultFieldsMigration_1.createDefaultFieldsMigration)('UNIFIED_OPTIONS_v3', 'UNIFIED_OPTIONS_v4', {
|
|
45
|
-
emptySchemaStrategy: EmptySchemaStrategy_enum_1.EmptySchemaStrategy.KEEP
|
|
45
|
+
emptySchemaStrategy: EmptySchemaStrategy_enum_1.EmptySchemaStrategy.KEEP,
|
|
46
46
|
}),
|
|
47
47
|
(0, createDefaultFieldsMigration_1.createDefaultFieldsMigration)('UNIFIED_OPTIONS_v4', 'UNIFIED_OPTIONS_v5', {
|
|
48
48
|
strictOpenapi: false,
|
|
49
49
|
reportFile: '',
|
|
50
|
-
useProjectPrettier: false,
|
|
51
|
-
useEslintFix: false,
|
|
52
50
|
}),
|
|
53
51
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AllVersionedSchemas.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/AllVersionedSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"AllVersionedSchemas.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/AllVersionedSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAa3C;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,EAAE,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,EAS9D,CAAC"}
|
|
@@ -29,5 +29,5 @@ exports.allVersionedSchemas = [
|
|
|
29
29
|
// MULTI_OPTIONS schemas with prefix
|
|
30
30
|
...addVersionPrefix(MultiOptionsVersionedSchemas_1.multiOptionsVersionedSchema, Enums_1.EVersionedSchemaType.MULTI_OPTIONS),
|
|
31
31
|
// UNIFIED_OPTIONS schemas (latest)
|
|
32
|
-
...addVersionPrefix(UnifiedVersionedSchemas_1.unifiedVersionedSchemas, Enums_1.EVersionedSchemaType.UNIFIED_OPTIONS)
|
|
32
|
+
...addVersionPrefix(UnifiedVersionedSchemas_1.unifiedVersionedSchemas, Enums_1.EVersionedSchemaType.UNIFIED_OPTIONS),
|
|
33
33
|
];
|
|
@@ -8,7 +8,6 @@ export declare const unifiedOptionsShape: z.ZodObject<{
|
|
|
8
8
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
12
11
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
12
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
14
13
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedBase.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"UnifiedBase.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAWpD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;iBAK9B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAC"}
|
|
@@ -5,8 +5,7 @@ const zod_1 = require("zod");
|
|
|
5
5
|
const HttpClient_enum_1 = require("../../../core/types/enums/HttpClient.enum");
|
|
6
6
|
const Enums_1 = require("../../Enums");
|
|
7
7
|
const CommonSchemas_1 = require("../CommonSchemas");
|
|
8
|
-
const unifiedItemSchema = zod_1.z
|
|
9
|
-
.object({
|
|
8
|
+
const unifiedItemSchema = zod_1.z.object({
|
|
10
9
|
...CommonSchemas_1.outputPathsSchema.shape,
|
|
11
10
|
...CommonSchemas_1.additionalParametersSchemaV2.shape,
|
|
12
11
|
...CommonSchemas_1.experimentalParametersSchemaV2.shape,
|
|
@@ -3,7 +3,6 @@ export declare const unifiedOptionsSchemaV1: z.ZodObject<{
|
|
|
3
3
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
4
4
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
5
5
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
7
6
|
request: z.ZodOptional<z.ZodString>;
|
|
8
7
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
8
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -26,7 +25,6 @@ export declare const unifiedOptionsSchemaV1: z.ZodObject<{
|
|
|
26
25
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
27
26
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
28
27
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
30
28
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
29
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
32
30
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedOptionsSchemaV1.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"UnifiedOptionsSchemaV1.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMjC,CAAC"}
|
|
@@ -7,7 +7,6 @@ export declare const unifiedOptionsSchemaV2: z.ZodObject<{
|
|
|
7
7
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
11
10
|
request: z.ZodOptional<z.ZodString>;
|
|
12
11
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
12
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -27,7 +26,6 @@ export declare const unifiedOptionsSchemaV2: z.ZodObject<{
|
|
|
27
26
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
28
27
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
29
28
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
31
29
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
30
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
33
31
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedOptionsSchemaV2.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"UnifiedOptionsSchemaV2.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGjC,CAAC"}
|
|
@@ -9,7 +9,6 @@ export declare const unifiedOptionsSchemaV3: z.ZodObject<{
|
|
|
9
9
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
11
11
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
13
12
|
request: z.ZodOptional<z.ZodString>;
|
|
14
13
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
14
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -29,7 +28,6 @@ export declare const unifiedOptionsSchemaV3: z.ZodObject<{
|
|
|
29
28
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
30
29
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
31
30
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
33
31
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
32
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
35
33
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedOptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"UnifiedOptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGjC,CAAC"}
|
|
@@ -5,7 +5,6 @@ export declare const unifiedOptionsSchemaV4: z.ZodObject<{
|
|
|
5
5
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
6
6
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
9
8
|
request: z.ZodOptional<z.ZodString>;
|
|
10
9
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
10
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -25,7 +24,6 @@ export declare const unifiedOptionsSchemaV4: z.ZodObject<{
|
|
|
25
24
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
26
25
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
27
26
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
29
27
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
28
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
31
29
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedOptionsSchemaV4.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"UnifiedOptionsSchemaV4.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMjC,CAAC"}
|
|
@@ -5,7 +5,6 @@ export declare const unifiedOptionsSchemaV5: z.ZodObject<{
|
|
|
5
5
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
6
6
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
9
8
|
request: z.ZodOptional<z.ZodString>;
|
|
10
9
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
10
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -25,7 +24,6 @@ export declare const unifiedOptionsSchemaV5: z.ZodObject<{
|
|
|
25
24
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
26
25
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
27
26
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
29
27
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
28
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
31
29
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -73,8 +71,16 @@ export declare const unifiedOptionsSchemaV5: z.ZodObject<{
|
|
|
73
71
|
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
74
72
|
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
75
73
|
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
prettierConfigPath: z.ZodOptional<z.ZodString>;
|
|
75
|
+
tsconfigPath: z.ZodOptional<z.ZodString>;
|
|
76
|
+
eslintConfigPath: z.ZodOptional<z.ZodString>;
|
|
77
|
+
cache: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
cachePath: z.ZodOptional<z.ZodString>;
|
|
79
|
+
cacheStrategy: z.ZodOptional<z.ZodEnum<{
|
|
80
|
+
content: "content";
|
|
81
|
+
entity: "entity";
|
|
82
|
+
}>>;
|
|
83
|
+
cacheDebug: z.ZodOptional<z.ZodBoolean>;
|
|
78
84
|
strictOpenapi: z.ZodOptional<z.ZodBoolean>;
|
|
79
85
|
reportFile: z.ZodOptional<z.ZodString>;
|
|
80
86
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedOptionsSchemaV5.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"UnifiedOptionsSchemaV5.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASjC,CAAC"}
|
|
@@ -6,14 +6,24 @@ const CommonSchemas_1 = require("../CommonSchemas");
|
|
|
6
6
|
const UnifiedOptionsSchemaV4_1 = require("./UnifiedOptionsSchemaV4");
|
|
7
7
|
exports.unifiedOptionsSchemaV5 = UnifiedOptionsSchemaV4_1.unifiedOptionsSchemaV4.extend({
|
|
8
8
|
...CommonSchemas_1.strictModeParametersSchema.shape,
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
prettierConfigPath: zod_1.z.string().optional(),
|
|
10
|
+
tsconfigPath: zod_1.z.string().optional(),
|
|
11
|
+
eslintConfigPath: zod_1.z.string().optional(),
|
|
12
|
+
cache: zod_1.z.boolean().optional(),
|
|
13
|
+
cachePath: zod_1.z.string().optional(),
|
|
14
|
+
cacheStrategy: zod_1.z.enum(['content', 'entity']).optional(),
|
|
15
|
+
cacheDebug: zod_1.z.boolean().optional(),
|
|
11
16
|
});
|
|
12
17
|
/*
|
|
13
18
|
type TUnifiedV5 = TUnifiedV4 & {
|
|
14
19
|
strictOpenapi: boolean | undefined;
|
|
15
20
|
reportFile: string | undefined;
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
prettierConfigPath: string | undefined;
|
|
22
|
+
tsconfigPath: string | undefined;
|
|
23
|
+
eslintConfigPath: string | undefined;
|
|
24
|
+
cache: boolean | undefined;
|
|
25
|
+
cachePath: string | undefined;
|
|
26
|
+
cacheStrategy: 'content' | 'entity' | undefined;
|
|
27
|
+
cacheDebug: boolean | undefined;
|
|
18
28
|
}
|
|
19
|
-
*/
|
|
29
|
+
*/
|