ts-openapi-codegen 2.0.0 → 2.1.0-beta.10
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 +28 -846
- package/README.rus.md +28 -846
- 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 +381 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffLomMiracles.test.d.ts +2 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffLomMiracles.test.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffLomMiracles.test.js +47 -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 +152 -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 +147 -0
- package/dist/cli/analyzeDiff/analyzeDiff.d.ts +29 -0
- package/dist/cli/analyzeDiff/analyzeDiff.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/analyzeDiff.js +148 -0
- package/dist/cli/analyzeDiff/ciSummary.d.ts +9 -0
- package/dist/cli/analyzeDiff/ciSummary.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/ciSummary.js +24 -0
- package/dist/cli/analyzeDiff/ignoreRules.d.ts +11 -0
- package/dist/cli/analyzeDiff/ignoreRules.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/ignoreRules.js +71 -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/miracles.d.ts +35 -0
- package/dist/cli/analyzeDiff/miracles.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/miracles.js +107 -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/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 +9 -0
- package/dist/cli/analyzeDiff/specParser.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/specParser.js +59 -0
- package/dist/cli/analyzeDiff/types.d.ts +19 -0
- package/dist/cli/analyzeDiff/types.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/types.js +2 -0
- 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 +23 -0
- package/dist/cli/analyzeUsage/core/Scanner.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/core/Scanner.js +125 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.d.ts +14 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.js +86 -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 +15 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.js +96 -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.d.ts +2 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/checkConfig.test.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/checkConfig.test.js +53 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/updateConfig.test.d.ts +2 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/updateConfig.test.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/updateConfig.test.js +52 -0
- 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 +26 -12
- 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 +2 -1
- package/dist/cli/checkAndUpdateConfig/updateConfig.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/updateConfig.js +17 -10
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/prepareConfigData.test.d.ts +2 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/prepareConfigData.test.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/prepareConfigData.test.js +20 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/removeDefaultConfigValues.test.d.ts +2 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/removeDefaultConfigValues.test.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/removeDefaultConfigValues.test.js +35 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/validateAndMigrateConfigData.test.d.ts +2 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/validateAndMigrateConfigData.test.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/__tests__/validateAndMigrateConfigData.test.js +59 -0
- package/dist/cli/checkAndUpdateConfig/utils/removeDefaultConfigValues.d.ts.map +1 -1
- 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 +19 -1
- package/dist/cli/checkAndUpdateConfig/utils/validateExecutorSetup.d.ts +6 -0
- package/dist/cli/checkAndUpdateConfig/utils/validateExecutorSetup.d.ts.map +1 -0
- package/dist/cli/checkAndUpdateConfig/utils/validateExecutorSetup.js +55 -0
- 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/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 +161 -0
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts +4 -3
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts.map +1 -1
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.js +61 -21
- package/dist/cli/index.js +98 -7
- package/dist/cli/initOpenApiConfig/Types.d.ts +2 -0
- package/dist/cli/initOpenApiConfig/Types.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/__tests__/init.test.d.ts +2 -0
- package/dist/cli/initOpenApiConfig/__tests__/init.test.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/__tests__/init.test.js +20 -0
- package/dist/cli/initOpenApiConfig/__tests__/initConfig.test.d.ts +2 -0
- package/dist/cli/initOpenApiConfig/__tests__/initConfig.test.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/__tests__/initConfig.test.js +49 -0
- 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 +59 -14
- package/dist/cli/initOpenApiConfig/initConfig.d.ts +6 -0
- package/dist/cli/initOpenApiConfig/initConfig.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/initConfig.js +53 -26
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts +10 -2
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.js +67 -9
- package/dist/cli/initOpenApiConfig/utils/__tests__/buildConfig.test.d.ts +2 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/buildConfig.test.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/buildConfig.test.js +93 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/findSpecFiles.test.d.ts +2 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/findSpecFiles.test.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/findSpecFiles.test.js +45 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/validateSpecFiles.test.d.ts +2 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/validateSpecFiles.test.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/utils/__tests__/validateSpecFiles.test.js +61 -0
- package/dist/cli/initOpenApiConfig/utils/buildConfig.d.ts +6 -12
- package/dist/cli/initOpenApiConfig/utils/buildConfig.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/buildConfig.js +84 -19
- package/dist/cli/initOpenApiConfig/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/registerHandlebarTemplates.js +2 -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 +0 -4
- package/dist/cli/interactive/constants.d.ts.map +1 -1
- package/dist/cli/interactive/constants.js +7 -11
- 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 +2 -1
- package/dist/cli/previewChanges/previewChanges.d.ts.map +1 -1
- package/dist/cli/previewChanges/previewChanges.js +49 -21
- package/dist/cli/previewChanges/utils/__tests__/compareFiles.test.d.ts +2 -0
- package/dist/cli/previewChanges/utils/__tests__/compareFiles.test.d.ts.map +1 -0
- package/dist/cli/previewChanges/utils/__tests__/compareFiles.test.js +52 -0
- package/dist/cli/previewChanges/utils/__tests__/isDirectoryEmpty.test.d.ts +2 -0
- package/dist/cli/previewChanges/utils/__tests__/isDirectoryEmpty.test.d.ts.map +1 -0
- package/dist/cli/previewChanges/utils/__tests__/isDirectoryEmpty.test.js +43 -0
- package/dist/cli/previewChanges/utils/__tests__/readDirectoryRecursive.test.d.ts +2 -0
- package/dist/cli/previewChanges/utils/__tests__/readDirectoryRecursive.test.d.ts.map +1 -0
- package/dist/cli/previewChanges/utils/__tests__/readDirectoryRecursive.test.js +32 -0
- package/dist/cli/previewChanges/utils/__tests__/updateOutputPaths.test.d.ts +2 -0
- package/dist/cli/previewChanges/utils/__tests__/updateOutputPaths.test.d.ts.map +1 -0
- package/dist/cli/previewChanges/utils/__tests__/updateOutputPaths.test.js +68 -0
- 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/__tests__/checkConfigAndUpdate.test.d.ts +2 -0
- package/dist/cli/schemas/__tests__/checkConfigAndUpdate.test.d.ts.map +1 -0
- package/dist/cli/schemas/__tests__/checkConfigAndUpdate.test.js +36 -0
- package/dist/cli/schemas/__tests__/generateOptionsSchema.test.d.ts +2 -0
- package/dist/cli/schemas/__tests__/generateOptionsSchema.test.d.ts.map +1 -0
- package/dist/cli/schemas/__tests__/generateOptionsSchema.test.js +59 -0
- package/dist/cli/schemas/__tests__/initOptionsSchema.test.d.ts +2 -0
- package/dist/cli/schemas/__tests__/initOptionsSchema.test.d.ts.map +1 -0
- package/dist/cli/schemas/__tests__/initOptionsSchema.test.js +43 -0
- package/dist/cli/schemas/__tests__/previewChangesSchema.test.d.ts +2 -0
- package/dist/cli/schemas/__tests__/previewChangesSchema.test.d.ts.map +1 -0
- package/dist/cli/schemas/__tests__/previewChangesSchema.test.js +31 -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/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 +17 -0
- package/dist/cli/schemas/generate.d.ts.map +1 -1
- package/dist/cli/schemas/generate.js +14 -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/cli/schemas/init.d.ts +10 -0
- package/dist/cli/schemas/init.d.ts.map +1 -1
- package/dist/cli/schemas/init.js +3 -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 +2 -0
- package/dist/common/Consts.d.ts.map +1 -1
- package/dist/common/Consts.js +19 -1
- 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 +194 -33
- package/dist/common/LoggerMessages.d.ts.map +1 -1
- package/dist/common/LoggerMessages.js +176 -45
- 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 +7 -3
- 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 +4 -0
- 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 +8 -0
- 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 +8 -0
- 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 +8 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts +35 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.js +4 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts +87 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.js +29 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts +185 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.js +9 -1
- package/dist/common/VersionedSchema/CommonSchemas.d.ts +40 -0
- package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.js +36 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts +4 -0
- 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/MultiOptionsSchemaV2.js +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/MultiOptionsSchemaV3.js +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +4 -0
- 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 +4 -0
- 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/OptionsSchemaV1.d.ts +6 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts +6 -2
- 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/OptionsSchemaV3.js +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +5 -1
- 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 +29 -3
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.js +4 -16
- package/dist/common/VersionedSchema/Utils/__tests__/migrateDataToLatestSchemaVersion.test.js +2 -2
- 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 +4 -6
- 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 +7 -8
- 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/__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 +3 -0
- 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 +92 -0
- 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.d.ts +2 -0
- package/dist/common/utils/__tests__/format.test.d.ts.map +1 -0
- package/dist/common/utils/__tests__/format.test.js +99 -0
- 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 +6 -8
- package/dist/common/utils/eslintFix.d.ts +51 -0
- package/dist/common/utils/eslintFix.d.ts.map +1 -0
- package/dist/common/utils/eslintFix.js +184 -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 +51 -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/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 +8 -1
- package/dist/core/Context.d.ts.map +1 -1
- package/dist/core/Context.js +25 -10
- package/dist/core/OpenApiClient.d.ts +29 -1
- package/dist/core/OpenApiClient.d.ts.map +1 -1
- package/dist/core/OpenApiClient.js +365 -15
- package/dist/core/WriteClient.d.ts +86 -15
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +117 -9
- package/dist/core/__tests__/WriteClient.test.js +5 -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 +7 -1
- package/dist/core/api/v2/parser/getServiceName.d.ts +1 -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/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 +7 -1
- package/dist/core/api/v3/parser/getServiceName.d.ts +1 -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 +132 -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 +58 -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 +595 -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 +85 -0
- package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts +97 -0
- package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts.map +1 -0
- package/dist/core/semanticDiff/analyzeOpenApiDiff.js +668 -0
- package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts +16 -0
- package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts.map +1 -0
- package/dist/core/semanticDiff/semanticDiffReportSchema.js +215 -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/Consts.js +1 -1
- package/dist/core/types/DiffReport.model.d.ts +101 -0
- package/dist/core/types/DiffReport.model.d.ts.map +1 -0
- package/dist/core/types/DiffReport.model.js +5 -0
- package/dist/core/types/base/ClientArtifacts.model.d.ts +5 -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/base/Templates.model.d.ts +4 -0
- package/dist/core/types/base/Templates.model.d.ts.map +1 -1
- 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 +59 -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/GenerationCache.d.ts +18 -0
- package/dist/core/utils/GenerationCache.d.ts.map +1 -0
- package/dist/core/utils/GenerationCache.js +41 -0
- package/dist/core/utils/__mocks__/templates.d.ts.map +1 -1
- package/dist/core/utils/__mocks__/templates.js +10 -0
- package/dist/core/utils/__tests__/GenerationCache.test.d.ts +2 -0
- package/dist/core/utils/__tests__/GenerationCache.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/GenerationCache.test.js +37 -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 +290 -0
- package/dist/core/utils/__tests__/buildMiraclesFromSemanticChanges.test.d.ts +2 -0
- package/dist/core/utils/__tests__/buildMiraclesFromSemanticChanges.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/buildMiraclesFromSemanticChanges.test.js +77 -0
- package/dist/core/utils/__tests__/expandOpenApiRefsForSemanticDiff.test.d.ts +2 -0
- package/dist/core/utils/__tests__/expandOpenApiRefsForSemanticDiff.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/expandOpenApiRefsForSemanticDiff.test.js +159 -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__/loadDiffReport.test.d.ts +2 -0
- package/dist/core/utils/__tests__/loadDiffReport.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/loadDiffReport.test.js +246 -0
- package/dist/core/utils/__tests__/modelHelpers.test.js +27 -9
- 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.d.ts +2 -0
- package/dist/core/utils/__tests__/prepareDtoModels.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/prepareDtoModels.test.js +283 -0
- package/dist/core/utils/__tests__/registerHandlebarHelpers.test.js +27 -0
- package/dist/core/utils/__tests__/resolveClassesModeTypes.test.d.ts +2 -0
- package/dist/core/utils/__tests__/resolveClassesModeTypes.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/resolveClassesModeTypes.test.js +111 -0
- package/dist/core/utils/__tests__/semanticChangesToDiffEntries.test.d.ts +2 -0
- package/dist/core/utils/__tests__/semanticChangesToDiffEntries.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/semanticChangesToDiffEntries.test.js +68 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.js +11 -11
- package/dist/core/utils/__tests__/sortByRequiredExtended.test.js +10 -27
- package/dist/core/utils/__tests__/templateRendering.test.d.ts +2 -0
- package/dist/core/utils/__tests__/templateRendering.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/templateRendering.test.js +190 -0
- package/dist/core/utils/__tests__/writeClientModels.test.js +50 -0
- package/dist/core/utils/__tests__/writeFileIfChanged.test.d.ts +2 -0
- package/dist/core/utils/__tests__/writeFileIfChanged.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/writeFileIfChanged.test.js +30 -0
- package/dist/core/utils/adapters/__tests__/semanticToStructural.test.d.ts +2 -0
- package/dist/core/utils/adapters/__tests__/semanticToStructural.test.d.ts.map +1 -0
- package/dist/core/utils/adapters/__tests__/semanticToStructural.test.js +63 -0
- package/dist/core/utils/adapters/extractMiraclesFromSemantic.d.ts +10 -0
- package/dist/core/utils/adapters/extractMiraclesFromSemantic.d.ts.map +1 -0
- package/dist/core/utils/adapters/extractMiraclesFromSemantic.js +13 -0
- package/dist/core/utils/adapters/index.d.ts +3 -0
- package/dist/core/utils/adapters/index.d.ts.map +1 -0
- package/dist/core/utils/adapters/index.js +6 -0
- package/dist/core/utils/adapters/semanticToStructural.d.ts +12 -0
- package/dist/core/utils/adapters/semanticToStructural.d.ts.map +1 -0
- package/dist/core/utils/adapters/semanticToStructural.js +36 -0
- package/dist/core/utils/applyDiffReportToClient.d.ts +26 -0
- package/dist/core/utils/applyDiffReportToClient.d.ts.map +1 -0
- package/dist/core/utils/applyDiffReportToClient.js +447 -0
- package/dist/core/utils/areEqual.d.ts +1 -1
- package/dist/core/utils/buildMiraclesFromSemanticChanges.d.ts +25 -0
- package/dist/core/utils/buildMiraclesFromSemanticChanges.d.ts.map +1 -0
- package/dist/core/utils/buildMiraclesFromSemanticChanges.js +146 -0
- package/dist/core/utils/expandOpenApiRefsForSemanticDiff.d.ts +23 -0
- package/dist/core/utils/expandOpenApiRefsForSemanticDiff.d.ts.map +1 -0
- package/dist/core/utils/expandOpenApiRefsForSemanticDiff.js +163 -0
- package/dist/core/utils/getMappedType.d.ts.map +1 -1
- package/dist/core/utils/getMappedType.js +2 -0
- package/dist/core/utils/getOpenApiSpec.d.ts +6 -0
- package/dist/core/utils/getOpenApiSpec.d.ts.map +1 -1
- package/dist/core/utils/getOpenApiSpec.js +7 -14
- package/dist/core/utils/getOperationErrors.d.ts +2 -2
- package/dist/core/utils/getOperationErrors.d.ts.map +1 -1
- package/dist/core/utils/getOperationResponseCode.d.ts.map +1 -1
- package/dist/core/utils/getOperationResponseCode.js +10 -8
- 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 +20 -0
- package/dist/core/utils/loadDiffReport.d.ts.map +1 -0
- package/dist/core/utils/loadDiffReport.js +117 -0
- package/dist/core/utils/loadSemanticOpenApiSpec.d.ts +15 -0
- package/dist/core/utils/loadSemanticOpenApiSpec.d.ts.map +1 -0
- package/dist/core/utils/loadSemanticOpenApiSpec.js +61 -0
- package/dist/core/utils/modelHelpers.d.ts +13 -5
- package/dist/core/utils/modelHelpers.d.ts.map +1 -1
- package/dist/core/utils/modelHelpers.js +28 -23
- 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 +8 -0
- package/dist/core/utils/prepareDtoModels.d.ts.map +1 -0
- package/dist/core/utils/prepareDtoModels.js +226 -0
- 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 +7 -1
- package/dist/core/utils/registerHandlebarTemplates.d.ts +1 -0
- package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarTemplates.js +8 -0
- package/dist/core/utils/resolveClassesModeTypes.d.ts +8 -0
- package/dist/core/utils/resolveClassesModeTypes.d.ts.map +1 -0
- package/dist/core/utils/resolveClassesModeTypes.js +77 -0
- package/dist/core/utils/semanticChangesToDiffEntries.d.ts +28 -0
- package/dist/core/utils/semanticChangesToDiffEntries.d.ts.map +1 -0
- package/dist/core/utils/semanticChangesToDiffEntries.js +98 -0
- package/dist/core/utils/semanticPointerToJsonPath.d.ts +7 -0
- package/dist/core/utils/semanticPointerToJsonPath.d.ts.map +1 -0
- package/dist/core/utils/semanticPointerToJsonPath.js +67 -0
- package/dist/core/utils/serviceHelpers.d.ts +6 -7
- package/dist/core/utils/serviceHelpers.d.ts.map +1 -1
- package/dist/core/utils/serviceHelpers.js +8 -25
- package/dist/core/utils/sortModelByName.d.ts +1 -1
- 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 +6 -4
- package/dist/core/utils/writeClientCore.d.ts +4 -0
- package/dist/core/utils/writeClientCore.d.ts.map +1 -1
- package/dist/core/utils/writeClientCore.js +44 -17
- 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 +16 -6
- package/dist/core/utils/writeClientExecutor.d.ts +1 -1
- package/dist/core/utils/writeClientExecutor.d.ts.map +1 -1
- package/dist/core/utils/writeClientExecutor.js +6 -7
- package/dist/core/utils/writeClientFullIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientFullIndex.js +7 -5
- package/dist/core/utils/writeClientModels.d.ts +5 -0
- package/dist/core/utils/writeClientModels.d.ts.map +1 -1
- package/dist/core/utils/writeClientModels.js +29 -10
- 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 +16 -6
- package/dist/core/utils/writeClientSchemas.d.ts +1 -1
- package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.js +9 -10
- 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 +15 -14
- package/dist/core/utils/writeClientServices.d.ts.map +1 -1
- package/dist/core/utils/writeClientServices.js +12 -15
- 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/core/utils/writeFileIfChanged.d.ts +3 -0
- package/dist/core/utils/writeFileIfChanged.d.ts.map +1 -0
- package/dist/core/utils/writeFileIfChanged.js +22 -0
- package/dist/templatesCompiled/cli/customCreateExecutorAdapter.d.ts +8 -0
- package/dist/templatesCompiled/cli/customCreateExecutorAdapter.d.ts.map +1 -0
- package/dist/templatesCompiled/cli/customCreateExecutorAdapter.js +18 -0
- package/dist/templatesCompiled/cli/customRequest.js +7 -7
- package/dist/templatesCompiled/cli/customRequestExecutor.js +7 -7
- 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/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 +2 -2
- 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 +0 -6
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.js +3 -22
- package/dist/templatesCompiled/client/core/executor/legacyRequestAdapter.d.ts +11 -0
- package/dist/templatesCompiled/client/core/executor/legacyRequestAdapter.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/executor/legacyRequestAdapter.js +28 -0
- package/dist/templatesCompiled/client/core/executor/requestExecutor.d.ts +2 -0
- package/dist/templatesCompiled/client/core/executor/requestExecutor.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/requestExecutor.js +8 -2
- package/dist/templatesCompiled/client/core/fetch/getResponseBody.js +1 -1
- package/dist/templatesCompiled/client/core/fetch/request.js +2 -2
- 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/apiErrorInterceptor.js +1 -1
- package/dist/templatesCompiled/client/core/interceptors/interceptors.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 +2 -2
- package/dist/templatesCompiled/client/core/xhr/getResponseBody.js +1 -1
- package/dist/templatesCompiled/client/core/xhr/request.js +2 -2
- package/dist/templatesCompiled/client/core/xhr/sendRequest.js +4 -4
- package/dist/templatesCompiled/client/exportClient.d.ts +0 -4
- package/dist/templatesCompiled/client/exportClient.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportClient.js +9 -45
- package/dist/templatesCompiled/client/exportModels.d.ts +40 -0
- package/dist/templatesCompiled/client/exportModels.d.ts.map +1 -0
- package/dist/templatesCompiled/client/exportModels.js +327 -0
- package/dist/templatesCompiled/client/exportService.d.ts +13 -7
- package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportService.js +109 -62
- 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 +14 -3
- package/dist/templatesCompiled/client/indexFull.d.ts +9 -7
- package/dist/templatesCompiled/client/indexFull.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexFull.js +59 -41
- 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.js +2 -2
- 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/jsonschema/exportSchema.d.ts +1 -0
- package/dist/templatesCompiled/client/jsonschema/exportSchema.d.ts.map +1 -1
- package/dist/templatesCompiled/client/jsonschema/exportSchema.js +17 -13
- 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/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/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/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/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/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 -134
- package/dist/common/VersionedSchema/refinements/singleOrMultiRefinement.d.ts +0 -4
- package/dist/common/VersionedSchema/refinements/singleOrMultiRefinement.d.ts.map +0 -1
- package/dist/common/VersionedSchema/refinements/singleOrMultiRefinement.js +0 -21
- package/dist/core/utils/appendUniqueLinesToFile.d.ts +0 -2
- package/dist/core/utils/appendUniqueLinesToFile.d.ts.map +0 -1
- package/dist/core/utils/appendUniqueLinesToFile.js +0 -24
|
@@ -1,10 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LOGGER_MESSAGES = void 0;
|
|
3
|
+
exports.LOGGER_MESSAGES = exports.LOGGER_ERROR_RECOMMENDATIONS = exports.LOGGER_ERROR_CODES = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* Константы с текстовыми сообщениями для Logger
|
|
6
6
|
* Все тексты для логирования должны быть вынесены сюда для централизованного управления
|
|
7
7
|
*/
|
|
8
|
+
/** Коды ошибок CLI для централизованного логирования. */
|
|
9
|
+
exports.LOGGER_ERROR_CODES = {
|
|
10
|
+
CONFIG_FILE_MISSING: 'CONFIG_FILE_MISSING',
|
|
11
|
+
CONFIG_FILE_NOT_FOUND_AT: 'CONFIG_FILE_NOT_FOUND_AT',
|
|
12
|
+
NO_OPTIONS_PROVIDED: 'NO_OPTIONS_PROVIDED',
|
|
13
|
+
NO_SPEC_FILES_FOUND: 'NO_SPEC_FILES_FOUND',
|
|
14
|
+
NO_VALID_SPEC_FILES_FOUND: 'NO_VALID_SPEC_FILES_FOUND',
|
|
15
|
+
PREVIEW_DIR_EMPTY: 'PREVIEW_DIR_EMPTY',
|
|
16
|
+
PREVIEW_CLEANUP_FAILED: 'PREVIEW_CLEANUP_FAILED',
|
|
17
|
+
SPEC_FILES_FIND_ERROR: 'SPEC_FILES_FIND_ERROR',
|
|
18
|
+
PRETTIER_FORMAT_FAILED: 'PRETTIER_FORMAT_FAILED',
|
|
19
|
+
ESLINT_FIX_FAILED: 'ESLINT_FIX_FAILED',
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Человекочитаемые рекомендации для пользователя CLI по коду ошибки
|
|
23
|
+
*/
|
|
24
|
+
exports.LOGGER_ERROR_RECOMMENDATIONS = {
|
|
25
|
+
CONFIG_FILE_MISSING: 'Создайте конфигурационный файл (по умолчанию openapi.config.json) или укажите путь к нему через опцию --openapi-config. В качестве альтернативы можно передать обязательные параметры --input и --output напрямую в команду.',
|
|
26
|
+
CONFIG_FILE_NOT_FOUND_AT: 'Проверьте правильность пути к конфигурационному файлу (--openapi-config) и наличие файла на диске. Обновите путь или создайте файл с нужными параметрами.',
|
|
27
|
+
NO_OPTIONS_PROVIDED: 'Укажите входные и выходные параметры генерации: как минимум --input (путь к спецификации или директории со спецификациями) и --output (директория для сгенерированного клиента).',
|
|
28
|
+
NO_SPEC_FILES_FOUND: 'Убедитесь, что в указанной директории действительно есть OpenAPI-файлы (.yaml/.yml/.json). При необходимости скорректируйте путь к каталогу со спецификациями.',
|
|
29
|
+
NO_VALID_SPEC_FILES_FOUND: 'Проверьте формат и структуру файлов спецификаций. Убедитесь, что они соответствуют стандарту OpenAPI v2/v3 и не содержат критических ошибок валидации.',
|
|
30
|
+
PREVIEW_DIR_EMPTY: 'Сначала выполните генерацию клиента, чтобы появились файлы для сравнения, или укажите другую директорию для превью. Если каталог должен существовать, проверьте правильность пути.',
|
|
31
|
+
PREVIEW_CLEANUP_FAILED: 'Проверьте права доступа к директории превью и отсутствует ли блокировка файлов сторонними процессами. При необходимости очистите каталог вручную и повторите команду.',
|
|
32
|
+
SPEC_FILES_FIND_ERROR: 'Проверьте корректность маски поиска и доступ к файловой системе. Убедитесь, что у вас есть права чтения для директории со спецификациями.',
|
|
33
|
+
PRETTIER_FORMAT_FAILED: 'Проверьте синтаксис сгенерированного фрагмента и настройки Prettier (включая опцию prettierConfigPath). При необходимости укажите корректный путь к конфигу или поправьте файл конфигурации.',
|
|
34
|
+
ESLINT_FIX_FAILED: 'Проверьте, что пути tsconfigPath и eslintConfigPath корректны, ESLint установлен в проекте, и что сгенерированные файлы доступны для чтения и записи.',
|
|
35
|
+
};
|
|
36
|
+
/** Централизованные текстовые сообщения для Logger. */
|
|
8
37
|
exports.LOGGER_MESSAGES = {
|
|
9
38
|
// ========== Generation Messages (OpenApiClient) ==========
|
|
10
39
|
GENERATION: {
|
|
@@ -13,6 +42,12 @@ exports.LOGGER_MESSAGES = {
|
|
|
13
42
|
FINISHED_WITH_DURATION: (duration) => `Generation completed in ${duration} sec`,
|
|
14
43
|
DURATION_FOR_FILE: (file, duration) => `Duration for "${file}": ${duration} sec`,
|
|
15
44
|
NO_OPTIONS: 'No options provided for generation',
|
|
45
|
+
WRITE_STATS: (written, unchanged) => `[openapi-codegen] Write stats: written=${written}, unchanged=${unchanged}`,
|
|
46
|
+
CACHE_SHARED_OUTPUT_WARNING: (outputs) => `[openapi-codegen] Cache is disabled and multiple items write to the same output directories:\n${outputs}\n` +
|
|
47
|
+
'This can overwrite previously generated files in the final output. Consider enabling cache via "cache: true" or "--cache".',
|
|
48
|
+
CACHE_HIT: (input) => `[openapi-codegen] Cache hit: ${input}`,
|
|
49
|
+
CACHE_MISS: (input) => `[openapi-codegen] Cache miss: ${input}`,
|
|
50
|
+
STRICT_REPORT_CREATED: (reportPath) => `Strict OpenAPI report created: ${reportPath}`,
|
|
16
51
|
},
|
|
17
52
|
// ========== OpenAPI Specification Messages ==========
|
|
18
53
|
OPENAPI: {
|
|
@@ -20,64 +55,160 @@ exports.LOGGER_MESSAGES = {
|
|
|
20
55
|
WRITING_V2: 'Write our OpenAPI client version 2 to disk.',
|
|
21
56
|
WRITING_V3: 'Write our OpenAPI client version 3 to disk.',
|
|
22
57
|
},
|
|
23
|
-
// ========== File Writing Messages (WriteClient) ==========
|
|
24
|
-
FILES: {
|
|
25
|
-
// Core files
|
|
26
|
-
CORE_RECORDING_STARTED: 'The recording of the kernel files begins',
|
|
27
|
-
CORE_RECORDING_COMPLETED: 'The writing of the kernel files has been completed successfully',
|
|
28
|
-
// Service files
|
|
29
|
-
SERVICES_RECORDING_STARTED: 'Recording of service files begins',
|
|
30
|
-
SERVICES_RECORDING_COMPLETED: 'Service file recording completed successfully',
|
|
31
|
-
SERVICE_FILE_STARTED: (file) => `The recording of the file data begins: ${file}`,
|
|
32
|
-
SERVICE_FILE_COMPLETED: (file) => `File recording completed: ${file}`,
|
|
33
|
-
// Model files
|
|
34
|
-
MODELS_RECORDING_STARTED: 'Recording of model files begins',
|
|
35
|
-
MODELS_RECORDING_COMPLETED: 'Model file recording completed successfully',
|
|
36
|
-
MODEL_FILE_STARTED: (file) => `The recording of the file data begins: ${file}`,
|
|
37
|
-
MODEL_FILE_COMPLETED: (file) => `File recording completed: ${file}`,
|
|
38
|
-
MODEL_DIRECTORY_CREATING: (directory) => `A directory is being created: ${directory}`,
|
|
39
|
-
// Schema files
|
|
40
|
-
SCHEMAS_RECORDING_STARTED: 'The recording of model validation schema files begins.',
|
|
41
|
-
SCHEMAS_RECORDING_COMPLETED: 'The recording of model validation schema files has been completed successfully',
|
|
42
|
-
SCHEMA_FILE_STARTED: (file) => `The recording of the file data begins: ${file}`,
|
|
43
|
-
SCHEMA_FILE_COMPLETED: (file) => `File recording completed: ${file}`,
|
|
44
|
-
SCHEMA_DIRECTORY_CREATING: (directory) => `A directory is being created: ${directory}`,
|
|
45
|
-
// Index files
|
|
46
|
-
INDEX_DATA_WRITTEN: (filePath) => `Data has been written to a file: ${filePath}`,
|
|
47
|
-
INDEX_WRITING_COMPLETED: (filePath) => `Writing to the file is completed: ${filePath}`,
|
|
48
|
-
SIMPLE_INDEX_STARTED: (filePath) => `The recording of the file data begins: ${filePath}`,
|
|
49
|
-
SIMPLE_INDEX_COMPLETED: (filePath) => `File recording completed: ${filePath}`,
|
|
50
|
-
},
|
|
51
|
-
// ========== Update Notifier Messages ==========
|
|
52
|
-
UPDATE_NOTIFIER: {
|
|
53
|
-
MISSING_PARAMS: (packageName, packageVersion) => `
|
|
54
|
-
The necessary parameters for checking the version are not specified.
|
|
55
|
-
Current values packageName: ${packageName}, packageVersion: ${packageVersion}
|
|
56
|
-
`,
|
|
57
|
-
STORE_NOT_CREATED: 'The settings store has not been created. The package update will be checked more often than once every 1 week!',
|
|
58
|
-
CANT_GET_VERSION: "Couldn't get information about the latest current version",
|
|
59
|
-
},
|
|
60
|
-
// ========== Template Precompilation Messages ==========
|
|
61
|
-
TEMPLATES: {
|
|
62
|
-
PRECOMPILATION_SUCCESS: 'The templates have been successfully precompiled and saved!',
|
|
63
|
-
PRECOMPILATION_ERROR: (error) => `Error during pre-compilation of templates: ${error}`,
|
|
64
|
-
},
|
|
65
58
|
// ========== Config Messages (CLI) ==========
|
|
66
59
|
CONFIG: {
|
|
67
|
-
FILE_RECORDING_COMPLETED: (file) => `File recording completed: ${file}`,
|
|
68
|
-
FILE_ALREADY_EXISTS: (fileName) => `The configuration file already exists: ${fileName}`,
|
|
69
60
|
FILE_MISSING: 'The configuration file is missing',
|
|
61
|
+
FILE_MISSING_HINT: 'Provide non-empty "--input" and "--output" options, or a valid "--openapi-config" file path.',
|
|
62
|
+
FILE_NOT_FOUND: (path) => `Отсутствует файл: ${path}`,
|
|
63
|
+
FILE_NOT_FOUND_AT: (path) => `Configuration file not found at "${path}"`,
|
|
70
64
|
CONVERSION_FAILED: "Couldn't convert the set of options to the current version",
|
|
65
|
+
UPDATING_FAILED: 'Ошибка при обновлении данных конфигурационного файла',
|
|
66
|
+
CHECKING_FAILED: 'Ошибка при проверке данных конфигурационного файла',
|
|
67
|
+
CONFIG_VALID: (path) => `Параметры конфигурации в файле "${path}" прошли проверку`,
|
|
68
|
+
CONFIG_UP_TO_DATE: (path) => `Данные в файле "${path}" актуальны`,
|
|
71
69
|
FILE_UPDATED: (configPath) => `Configuration file "${configPath}" has been updated`,
|
|
72
70
|
ACTION_SKIPPED: 'Action skipped.',
|
|
73
71
|
UNKNOWN_ACTION: (action) => `Unknown action: ${action}`,
|
|
74
72
|
ARRAY_DEPRECATED: 'Using an array of configurations is deprecated and support will be removed in future versions. Please switch to using an object with named configurations.',
|
|
73
|
+
CONFIG_EXISTS_INTERACTIVE_DISABLED: (path) => `Configuration file already exists and interactive mode is disabled: ${path}`,
|
|
74
|
+
CONFIG_LEFT_UNCHANGED: 'Configuration file left unchanged.',
|
|
75
|
+
CONFIG_CREATED: (path) => `Configuration file created: ${path}`,
|
|
76
|
+
EXAMPLE_CONFIG_CREATED: (path) => `Example configuration generated and written to: ${path}\n` + 'You can use it as a template for your actual configuration.',
|
|
77
|
+
CONFIG_GENERATION_CANCELLED: 'Configuration file generation cancelled.',
|
|
78
|
+
SPEC_FILES_FIND_ERROR: (error) => `Error finding spec files: ${error}`,
|
|
79
|
+
NO_SPEC_FILES_FOUND: (directory) => `No spec files found in directory: ${directory}`,
|
|
80
|
+
NO_VALID_SPEC_FILES_FOUND: 'No valid OpenAPI specification files found.',
|
|
81
|
+
CUSTOM_REQUEST_MISSING_PATH: 'Custom request was selected, but --request path is not provided. The "request" field will be skipped.',
|
|
82
|
+
WARNING_OUTDATED_CONFIG: 'Ваша версия конфигурации устарела и нуждается в обновлении.',
|
|
83
|
+
WARNING_DEFAULT_VALUES: 'В вашей конфигурации есть значения по умолчанию, которые можно удалить.',
|
|
84
|
+
USER_WARNING: (message) => `\n${message}\n`,
|
|
75
85
|
},
|
|
76
86
|
// ========== Error Messages ==========
|
|
77
87
|
ERROR: {
|
|
78
88
|
PREFIX: 'Error:',
|
|
79
89
|
GENERIC: (message) => message,
|
|
90
|
+
WITH_DETAILS: (message, details) => `${message}: ${details}`,
|
|
91
|
+
TECHNICAL_DETAILS: (error) => `Technical details: ${error}`,
|
|
80
92
|
},
|
|
81
93
|
// ========== Separator ==========
|
|
82
94
|
SEPARATOR: '==========================================',
|
|
95
|
+
// ========== Dialog Messages ==========
|
|
96
|
+
DIALOG: {
|
|
97
|
+
OPERATION_CANCELLED: '\nThe operation was canceled by the user.',
|
|
98
|
+
SELECTION_CANCELLED: '\nThe choice is canceled.',
|
|
99
|
+
},
|
|
100
|
+
// ========== Custom Request Messages ==========
|
|
101
|
+
CUSTOM_REQUEST: {
|
|
102
|
+
PATH_NOT_PROVIDED: 'Custom request path is not provided (--request). Skipping custom request file generation.',
|
|
103
|
+
FILE_EXISTS_INTERACTIVE_DISABLED: (file) => `Custom request file already exists and interactive mode is disabled: ${file}`,
|
|
104
|
+
FILE_LEFT_UNCHANGED: 'Custom request file left unchanged.',
|
|
105
|
+
FILE_CREATED: (file) => `Custom request file created: ${file}`,
|
|
106
|
+
},
|
|
107
|
+
// ========== Spec Validation Messages ==========
|
|
108
|
+
SPEC_VALIDATION: {
|
|
109
|
+
SKIP_INVALID_FILE: (filePath) => `Skipping invalid spec file: ${filePath}`,
|
|
110
|
+
},
|
|
111
|
+
// ========== Preview Changes Messages ==========
|
|
112
|
+
PREVIEW: {
|
|
113
|
+
GENERATED_DIR_EMPTY: (dir) => `Directory "${dir}" is empty or does not exist. Nothing to compare.`,
|
|
114
|
+
GENERATING_PREVIEW: (dir) => `Generating code to preview directory: ${dir}`,
|
|
115
|
+
COMPARING_FILES: 'Comparing files...',
|
|
116
|
+
FILE_NO_CHANGES: (file) => `File "${file}" has no changes`,
|
|
117
|
+
DIFF_SAVED: (filePath) => `Diff saved: ${filePath}`,
|
|
118
|
+
TOTAL_CHANGES: (count) => `\nTotal changes: ${count}`,
|
|
119
|
+
DIFF_FILES_SAVED_TO: (dir) => `Diff files saved to: ${dir}`,
|
|
120
|
+
NO_CHANGES_DETECTED: 'No changes detected. All files are identical.',
|
|
121
|
+
CLEANUP_PREVIEW_DIR: (dir) => `Cleaning up preview directory: ${dir}`,
|
|
122
|
+
CLEANUP_PREVIEW_FAILED: (error) => `Failed to cleanup preview directory: ${error}`,
|
|
123
|
+
},
|
|
124
|
+
// ========== Analyze Diff Messages ==========
|
|
125
|
+
ANALYZE_DIFF: {
|
|
126
|
+
INPUT_REQUIRED: '"--input" option is required for analyze-diff command',
|
|
127
|
+
HISTORY_SKIPPED: 'History analysis skipped: no base spec provided (use --compare-with or --git)',
|
|
128
|
+
ANALYZING: '\n[openapi-codegen] Analyzing OpenAPI changes...',
|
|
129
|
+
SUMMARY_TITLE: '[openapi-codegen] Analyze-diff summary',
|
|
130
|
+
BASE: (base) => `Base: ${base}`,
|
|
131
|
+
TARGET: (target) => `Target: ${target}`,
|
|
132
|
+
STABILITY_SCORE: (score) => `Stability score: ${score}%`,
|
|
133
|
+
CHANGES: (total, added, removed, changed) => `Changes: total=${total}, added=${added}, removed=${removed}, changed=${changed}`,
|
|
134
|
+
BREAKING_COUNT: (count) => `[openapi-codegen] BREAKING: ${count} item(s)`,
|
|
135
|
+
WARNING_COUNT: (count) => `[openapi-codegen] WARNINGS: ${count} item(s)`,
|
|
136
|
+
IGNORED_COUNT: (count) => `[openapi-codegen] IGNORED: ${count} item(s) by config rules`,
|
|
137
|
+
REPORT_WRITTEN: (reportPath) => `[openapi-codegen] Report written to: ${reportPath}`,
|
|
138
|
+
INVALID_IGNORE_PATTERN: (pattern, error) => `[openapi-codegen] Invalid ignore pattern: ${pattern} — ${error}`,
|
|
139
|
+
STARTED: (newSpec, baseSource) => `Starting analyze-diff: input=${newSpec}, base=${baseSource}`,
|
|
140
|
+
SKIPPED_NO_BASE: 'History analysis skipped: no base spec provided (use --compare-with or --git).',
|
|
141
|
+
VALIDATION_ERROR: (message) => `Analyze-diff options validation failed: ${message}`,
|
|
142
|
+
COMPARE_WITH_OVERRIDES_GIT: (gitRef) => `Option "--compare-with" has priority over "--git". Ignoring git ref "${gitRef}".`,
|
|
143
|
+
PLUGIN_DIAGNOSTIC: (diagnostic) => {
|
|
144
|
+
const messageSuffix = diagnostic.message ? `: ${diagnostic.message}` : '';
|
|
145
|
+
return `[plugin:${diagnostic.pluginName}] hook=${diagnostic.hook} status=${diagnostic.status} duration=${diagnostic.durationMs}ms${messageSuffix}`;
|
|
146
|
+
},
|
|
147
|
+
REPORT_CREATED: (reportPath) => `Semantic diff report created: ${reportPath}`,
|
|
148
|
+
SUMMARY: (report, reportPath) => `Summary: report=${reportPath}, breaking=${report.summary.breaking}, nonBreaking=${report.summary.nonBreaking}, informational=${report.summary.informational}, governanceErrors=${report.governance.summary.errors}, governanceWarnings=${report.governance.summary.warnings}, governanceInfo=${report.governance.summary.info}`,
|
|
149
|
+
RECOMMENDATION: (report) => `Recommended version bump: ${report.recommendation.semver} (${report.recommendation.reason}, confidence=${report.recommendation.confidence}, reasons=${report.recommendation.reasons.join(',')})`,
|
|
150
|
+
GOVERNANCE: (report) => `Governance: errors=${report.governance.summary.errors}, warnings=${report.governance.summary.warnings}, info=${report.governance.summary.info}`,
|
|
151
|
+
CI_MARKDOWN_SUMMARY: (markdown) => markdown,
|
|
152
|
+
CI_FAILURE: 'CI mode failed because governance errors were found.',
|
|
153
|
+
IGNORED_CHANGES: (count) => `[openapi-codegen] IGNORED: ${count} semantic change(s) filtered by analyze.ignore`,
|
|
154
|
+
EXECUTION_ERROR: (message) => `Analyze-diff execution failed: ${message}`,
|
|
155
|
+
LEGACY_BASE: (base) => `Base: ${base}`,
|
|
156
|
+
LEGACY_TARGET: (target) => `Target: ${target}`,
|
|
157
|
+
LEGACY_STABILITY_SCORE: (score) => `Stability score: ${score}%`,
|
|
158
|
+
LEGACY_CHANGES: (stats) => `Changes: total=${stats.totalChanges}, added=${stats.added}, removed=${stats.removed}, changed=${stats.changed}`,
|
|
159
|
+
LEGACY_BREAKING: (count) => `[openapi-codegen] BREAKING: ${count} item(s)`,
|
|
160
|
+
LEGACY_WARNINGS: (count) => `[openapi-codegen] WARNINGS: ${count} item(s)`,
|
|
161
|
+
LEGACY_IGNORED: (count) => `[openapi-codegen] IGNORED: ${count} item(s) by config rules`,
|
|
162
|
+
},
|
|
163
|
+
DIFF_REPORT: {
|
|
164
|
+
NOT_FOUND: (reportPath) => `[openapi-codegen] Diff report not found at "${reportPath}". Skipping history annotations.`,
|
|
165
|
+
STALE: (reportPath) => `[openapi-codegen] Diff report "${reportPath}" is older than the input spec. Skipping history annotations.`,
|
|
166
|
+
EMPTY: (reportPath) => `[openapi-codegen] Diff report "${reportPath}" has no entries. Skipping history annotations.`,
|
|
167
|
+
LOADED: (reportPath, diffCount, miracleCount) => `[openapi-codegen] Loaded diff report "${reportPath}" (${diffCount} change(s), ${miracleCount} miracle(s)).`,
|
|
168
|
+
USE_HISTORY_NO_REPORT: (reportPath) => `[openapi-codegen] useHistory is enabled but no diff report was loaded from "${reportPath}". Skipping history annotations.`,
|
|
169
|
+
READ_FAILED: (reportPath, message) => `[openapi-codegen] Failed to read diff report "${reportPath}": ${message}`,
|
|
170
|
+
},
|
|
171
|
+
TEMPLATES: {
|
|
172
|
+
PRECOMPILE_SUCCESS: 'The templates have been successfully precompiled and saved!',
|
|
173
|
+
PRECOMPILE_ERROR: (message) => `Error during pre-compilation of templates: ${message}`,
|
|
174
|
+
},
|
|
175
|
+
WRITE_CLIENT: {
|
|
176
|
+
DATA_WRITE_START: (filePath) => `The recording of the file data begins: ${filePath}`,
|
|
177
|
+
FILE_RECORDED: (filePath) => `File recording completed: ${filePath}`,
|
|
178
|
+
INDEX_DATA_WRITTEN: (filePath) => `Data has been written to a file: ${filePath}`,
|
|
179
|
+
INDEX_WRITE_COMPLETED: (filePath) => `Writing to the file is completed: ${filePath}`,
|
|
180
|
+
CORE_START: 'The recording of the kernel files begins',
|
|
181
|
+
CORE_FINISH: 'The writing of the kernel files has been completed successfully',
|
|
182
|
+
MODELS_START: 'Recording of model files begins',
|
|
183
|
+
MODELS_FINISH: 'Model file recording completed successfully',
|
|
184
|
+
SERVICES_START: 'Recording of service files begins',
|
|
185
|
+
SERVICES_FINISH: 'Service file recording completed successfully',
|
|
186
|
+
SCHEMAS_START: 'The recording of model validation schema files begins.',
|
|
187
|
+
SCHEMAS_FINISH: 'The recording of model validation schema files has been completed successfully',
|
|
188
|
+
DIRECTORY_CREATING: (directory) => `A directory is being created: ${directory}`,
|
|
189
|
+
EXECUTOR_START: (filePath) => `The recording of the file data begins: ${filePath}`,
|
|
190
|
+
},
|
|
191
|
+
LOGGER: {
|
|
192
|
+
NEXT_STEPS: (recommendation) => `What you can do next: ${recommendation}`,
|
|
193
|
+
},
|
|
194
|
+
// ========== Migration Messages ==========
|
|
195
|
+
MIGRATION: {
|
|
196
|
+
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`',
|
|
197
|
+
},
|
|
198
|
+
// ========== Formatting Messages ==========
|
|
199
|
+
FORMATTING: {
|
|
200
|
+
PRETTIER_CONFIG_RESOLVED: (filePath) => `Prettier config resolved from: ${filePath}`,
|
|
201
|
+
PRETTIER_CONFIG_NOT_FOUND: (configPath) => `Prettier config not found at "${configPath}", falling back to built-in options`,
|
|
202
|
+
PRETTIER_FORMAT_FAILED: (file, error) => `Prettier formatting failed for "${file}": ${error}`,
|
|
203
|
+
ESLINT_NOT_INSTALLED: 'ESLint is not installed in this project. Skipping batch ESLint fix.',
|
|
204
|
+
ESLINT_FIX_FAILED: (file, error) => `ESLint fix failed for "${file}": ${error}`,
|
|
205
|
+
ESLINT_FIX_APPLIED: (file) => `ESLint fix applied: ${file}`,
|
|
206
|
+
ESLINT_PATHS_MISSING: 'Batch ESLint fix requires both tsconfigPath and eslintConfigPath. Skipping batch ESLint fix.',
|
|
207
|
+
ESLINT_BATCH_STARTED: 'Batch ESLint fix started for generated models and services',
|
|
208
|
+
ESLINT_BATCH_FINISHED: (durationSec) => `Batch ESLint fix completed in ${durationSec} sec`,
|
|
209
|
+
ESLINT_BATCH_COMPLETED: (reportPath) => `Batch ESLint fix completed. Report: ${reportPath}`,
|
|
210
|
+
ESLINT_BATCH_COMPLETED_WITH_ISSUES: (errors, warnings, reportPath) => `Batch ESLint fix completed with ${errors} error(s) and ${warnings} warning(s). Report: ${reportPath}`,
|
|
211
|
+
ESLINT_BATCH_FAILED: (error) => `Batch ESLint fix failed: ${error}`,
|
|
212
|
+
ESLINT_BATCH_CHUNK_FAILED: (error) => `Batch ESLint fix chunk failed: ${error}`,
|
|
213
|
+
},
|
|
83
214
|
};
|
|
@@ -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,9 +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
|
|
46
|
-
})
|
|
45
|
+
emptySchemaStrategy: EmptySchemaStrategy_enum_1.EmptySchemaStrategy.KEEP,
|
|
46
|
+
}),
|
|
47
|
+
(0, createDefaultFieldsMigration_1.createDefaultFieldsMigration)('UNIFIED_OPTIONS_v4', 'UNIFIED_OPTIONS_v5', {
|
|
48
|
+
strictOpenapi: false,
|
|
49
|
+
reportFile: '',
|
|
50
|
+
}),
|
|
47
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,9 +8,13 @@ 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
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
12
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
12
13
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
13
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>>;
|
|
14
18
|
output: z.ZodString;
|
|
15
19
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
16
20
|
outputServices: 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,
|
|
@@ -4,9 +4,13 @@ export declare const unifiedOptionsSchemaV1: z.ZodObject<{
|
|
|
4
4
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
5
5
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
6
6
|
request: z.ZodOptional<z.ZodString>;
|
|
7
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
8
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
8
9
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
9
10
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
11
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
13
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
10
14
|
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
11
15
|
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
12
16
|
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -21,9 +25,13 @@ export declare const unifiedOptionsSchemaV1: z.ZodObject<{
|
|
|
21
25
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
22
26
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
23
27
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
24
29
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
25
30
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
26
31
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
32
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
34
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
27
35
|
output: z.ZodString;
|
|
28
36
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
29
37
|
outputServices: 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"}
|
|
@@ -8,9 +8,13 @@ export declare const unifiedOptionsSchemaV2: z.ZodObject<{
|
|
|
8
8
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
request: z.ZodOptional<z.ZodString>;
|
|
11
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
12
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
12
13
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
13
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>>;
|
|
14
18
|
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
15
19
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
16
20
|
outputServices: z.ZodOptional<z.ZodString>;
|
|
@@ -22,9 +26,13 @@ export declare const unifiedOptionsSchemaV2: z.ZodObject<{
|
|
|
22
26
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
23
27
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
24
28
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
25
30
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
26
31
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
27
32
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
33
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
35
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
28
36
|
output: z.ZodString;
|
|
29
37
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
30
38
|
outputServices: 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"}
|
|
@@ -10,9 +10,13 @@ export declare const unifiedOptionsSchemaV3: z.ZodObject<{
|
|
|
10
10
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
11
11
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
12
12
|
request: z.ZodOptional<z.ZodString>;
|
|
13
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
14
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
14
15
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
15
16
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
17
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
19
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
16
20
|
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
17
21
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
18
22
|
outputServices: z.ZodOptional<z.ZodString>;
|
|
@@ -24,9 +28,13 @@ export declare const unifiedOptionsSchemaV3: z.ZodObject<{
|
|
|
24
28
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
25
29
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
26
30
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
32
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
28
33
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
29
34
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
35
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
36
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
37
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
30
38
|
output: z.ZodString;
|
|
31
39
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
32
40
|
outputServices: 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"}
|
|
@@ -6,9 +6,13 @@ export declare const unifiedOptionsSchemaV4: z.ZodObject<{
|
|
|
6
6
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
request: z.ZodOptional<z.ZodString>;
|
|
9
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
10
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
10
11
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
11
12
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
13
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
15
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
12
16
|
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
13
17
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
14
18
|
outputServices: z.ZodOptional<z.ZodString>;
|
|
@@ -20,9 +24,13 @@ export declare const unifiedOptionsSchemaV4: z.ZodObject<{
|
|
|
20
24
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
21
25
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
22
26
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
28
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
24
29
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
25
30
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
31
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
diffReport: z.ZodOptional<z.ZodString>;
|
|
33
|
+
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
26
34
|
output: z.ZodString;
|
|
27
35
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
28
36
|
outputServices: z.ZodOptional<z.ZodString>;
|
|
@@ -33,7 +41,34 @@ export declare const unifiedOptionsSchemaV4: z.ZodObject<{
|
|
|
33
41
|
output: z.ZodOptional<z.ZodString>;
|
|
34
42
|
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
35
43
|
customExecutorPath: z.ZodOptional<z.ZodString>;
|
|
44
|
+
models: z.ZodOptional<z.ZodObject<{
|
|
45
|
+
mode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
46
|
+
corePath: z.ZodOptional<z.ZodString>;
|
|
47
|
+
modelsPath: z.ZodOptional<z.ZodString>;
|
|
48
|
+
}, z.core.$strip>>;
|
|
49
|
+
analyze: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
reportPath: z.ZodOptional<z.ZodString>;
|
|
51
|
+
useHistory: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
ignore: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
53
|
+
path: z.ZodOptional<z.ZodString>;
|
|
54
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
55
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
56
|
+
until: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
failOnBreaking: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
}, z.core.$strip>>;
|
|
60
|
+
miracles: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
enabled: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
+
confidence: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
types: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
64
|
+
RENAME: "RENAME";
|
|
65
|
+
TYPE_COERCION: "TYPE_COERCION";
|
|
66
|
+
}>>>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
36
68
|
emptySchemaStrategy: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/EmptySchemaStrategy.enum").EmptySchemaStrategy>>;
|
|
69
|
+
strictOpenapi: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
reportFile: z.ZodOptional<z.ZodString>;
|
|
71
|
+
governanceConfig: z.ZodOptional<z.ZodString>;
|
|
37
72
|
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
38
73
|
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
39
74
|
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -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"}
|
|
@@ -7,6 +7,9 @@ const UnifiedOptionsSchemaV3_1 = require("./UnifiedOptionsSchemaV3");
|
|
|
7
7
|
exports.unifiedOptionsSchemaV4 = UnifiedOptionsSchemaV3_1.unifiedOptionsSchemaV3.extend({
|
|
8
8
|
...CommonSchemas_1.specialParametersSchemasV4.shape,
|
|
9
9
|
customExecutorPath: zod_1.z.string().optional(),
|
|
10
|
+
models: CommonSchemas_1.modelsConfigSchema.optional(),
|
|
11
|
+
analyze: CommonSchemas_1.analyzeConfigSchema.optional(),
|
|
12
|
+
miracles: CommonSchemas_1.miraclesConfigSchema.optional(),
|
|
10
13
|
});
|
|
11
14
|
/*
|
|
12
15
|
type TUnified = {
|
|
@@ -35,4 +38,4 @@ type TUnified = {
|
|
|
35
38
|
useOptions: boolean | undefined;
|
|
36
39
|
useUnionTypes: boolean | undefined;
|
|
37
40
|
}
|
|
38
|
-
*/
|
|
41
|
+
*/
|