ts-openapi-codegen 2.0.0-beta.9 → 2.1.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (525) hide show
  1. package/README.md +177 -18
  2. package/README.rus.md +177 -21
  3. package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.d.ts +2 -0
  4. package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.d.ts.map +1 -0
  5. package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.js +365 -0
  6. package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.d.ts +2 -0
  7. package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.d.ts.map +1 -0
  8. package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.js +142 -0
  9. package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.d.ts +2 -0
  10. package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.d.ts.map +1 -0
  11. package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.js +137 -0
  12. package/dist/cli/analyzeDiff/analyzeDiff.d.ts +17 -0
  13. package/dist/cli/analyzeDiff/analyzeDiff.d.ts.map +1 -0
  14. package/dist/cli/analyzeDiff/analyzeDiff.js +105 -0
  15. package/dist/cli/analyzeDiff/buildLegacyReport.d.ts +17 -0
  16. package/dist/cli/analyzeDiff/buildLegacyReport.d.ts.map +1 -0
  17. package/dist/cli/analyzeDiff/buildLegacyReport.js +54 -0
  18. package/dist/cli/analyzeDiff/ciSummary.d.ts +6 -0
  19. package/dist/cli/analyzeDiff/ciSummary.d.ts.map +1 -0
  20. package/dist/cli/analyzeDiff/ciSummary.js +20 -0
  21. package/dist/cli/analyzeDiff/diffEngine.d.ts +54 -0
  22. package/dist/cli/analyzeDiff/diffEngine.d.ts.map +1 -0
  23. package/dist/cli/analyzeDiff/diffEngine.js +209 -0
  24. package/dist/cli/analyzeDiff/ignoreRules.d.ts +33 -0
  25. package/dist/cli/analyzeDiff/ignoreRules.d.ts.map +1 -0
  26. package/dist/cli/analyzeDiff/ignoreRules.js +93 -0
  27. package/dist/cli/analyzeDiff/ignoreSemanticChanges.d.ts +10 -0
  28. package/dist/cli/analyzeDiff/ignoreSemanticChanges.d.ts.map +1 -0
  29. package/dist/cli/analyzeDiff/ignoreSemanticChanges.js +84 -0
  30. package/dist/cli/analyzeDiff/logLegacyReport.d.ts +6 -0
  31. package/dist/cli/analyzeDiff/logLegacyReport.d.ts.map +1 -0
  32. package/dist/cli/analyzeDiff/logLegacyReport.js +29 -0
  33. package/dist/cli/analyzeDiff/miracles.d.ts +89 -0
  34. package/dist/cli/analyzeDiff/miracles.d.ts.map +1 -0
  35. package/dist/cli/analyzeDiff/miracles.js +325 -0
  36. package/dist/cli/analyzeDiff/pluginPaths.d.ts +5 -0
  37. package/dist/cli/analyzeDiff/pluginPaths.d.ts.map +1 -0
  38. package/dist/cli/analyzeDiff/pluginPaths.js +13 -0
  39. package/dist/cli/analyzeDiff/report.d.ts +3 -0
  40. package/dist/cli/analyzeDiff/report.d.ts.map +1 -0
  41. package/dist/cli/analyzeDiff/report.js +7 -0
  42. package/dist/cli/analyzeDiff/semanticDiffContext.d.ts +6 -0
  43. package/dist/cli/analyzeDiff/semanticDiffContext.d.ts.map +1 -0
  44. package/dist/cli/analyzeDiff/semanticDiffContext.js +16 -0
  45. package/dist/cli/analyzeDiff/specParser.d.ts +22 -0
  46. package/dist/cli/analyzeDiff/specParser.d.ts.map +1 -0
  47. package/dist/cli/analyzeDiff/specParser.js +80 -0
  48. package/dist/cli/analyzeDiff/types.d.ts +61 -0
  49. package/dist/cli/analyzeDiff/types.d.ts.map +1 -0
  50. package/dist/cli/analyzeDiff/types.js +2 -0
  51. package/dist/cli/analyzeDiff/writeLegacyReport.d.ts +6 -0
  52. package/dist/cli/analyzeDiff/writeLegacyReport.d.ts.map +1 -0
  53. package/dist/cli/analyzeDiff/writeLegacyReport.js +21 -0
  54. package/dist/cli/checkAndUpdateConfig/checkConfig.d.ts.map +1 -1
  55. package/dist/cli/checkAndUpdateConfig/checkConfig.js +13 -8
  56. package/dist/cli/checkAndUpdateConfig/constants.d.ts +0 -9
  57. package/dist/cli/checkAndUpdateConfig/constants.d.ts.map +1 -1
  58. package/dist/cli/checkAndUpdateConfig/constants.js +1 -10
  59. package/dist/cli/checkAndUpdateConfig/updateConfig.d.ts.map +1 -1
  60. package/dist/cli/checkAndUpdateConfig/updateConfig.js +11 -7
  61. package/dist/cli/checkAndUpdateConfig/utils/selectConfigAction.d.ts.map +1 -1
  62. package/dist/cli/checkAndUpdateConfig/utils/selectConfigAction.js +6 -3
  63. package/dist/cli/checkAndUpdateConfig/utils/updateExistingConfigFile.d.ts.map +1 -1
  64. package/dist/cli/checkAndUpdateConfig/utils/updateExistingConfigFile.js +3 -2
  65. package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.d.ts.map +1 -1
  66. package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.js +5 -0
  67. package/dist/cli/checkAndUpdateConfig/utils/writeExampleConfigFile.d.ts.map +1 -1
  68. package/dist/cli/checkAndUpdateConfig/utils/writeExampleConfigFile.js +2 -2
  69. package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.d.ts +2 -0
  70. package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.d.ts.map +1 -0
  71. package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.js +152 -0
  72. package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts +6 -2
  73. package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts.map +1 -1
  74. package/dist/cli/generateOpenApiClient/generateOpenApiClient.js +70 -22
  75. package/dist/cli/index.js +62 -5
  76. package/dist/cli/initOpenApiConfig/init.d.ts.map +1 -1
  77. package/dist/cli/initOpenApiConfig/init.js +19 -6
  78. package/dist/cli/initOpenApiConfig/initConfig.d.ts +1 -0
  79. package/dist/cli/initOpenApiConfig/initConfig.d.ts.map +1 -1
  80. package/dist/cli/initOpenApiConfig/initConfig.js +47 -24
  81. package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts +8 -1
  82. package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts.map +1 -1
  83. package/dist/cli/initOpenApiConfig/initCustomRequest.js +40 -8
  84. package/dist/cli/initOpenApiConfig/utils/buildConfig.d.ts.map +1 -1
  85. package/dist/cli/initOpenApiConfig/utils/buildConfig.js +60 -0
  86. package/dist/cli/initOpenApiConfig/utils/validateSpecFile.d.ts.map +1 -1
  87. package/dist/cli/initOpenApiConfig/utils/validateSpecFile.js +2 -1
  88. package/dist/cli/initOpenApiConfig/utils/writeConfigFile.d.ts.map +1 -1
  89. package/dist/cli/initOpenApiConfig/utils/writeConfigFile.js +2 -1
  90. package/dist/cli/interactive/confirmDialog.d.ts.map +1 -1
  91. package/dist/cli/interactive/confirmDialog.js +3 -2
  92. package/dist/cli/interactive/constants.d.ts +2 -2
  93. package/dist/cli/interactive/constants.js +8 -8
  94. package/dist/cli/interactive/selectDialog.d.ts.map +1 -1
  95. package/dist/cli/interactive/selectDialog.js +11 -6
  96. package/dist/cli/previewChanges/previewChanges.d.ts.map +1 -1
  97. package/dist/cli/previewChanges/previewChanges.js +151 -39
  98. package/dist/cli/previewChanges/utils/updateOutputPaths.d.ts.map +1 -1
  99. package/dist/cli/previewChanges/utils/updateOutputPaths.js +6 -0
  100. package/dist/cli/schemas/analyzeDiff.d.ts +14 -0
  101. package/dist/cli/schemas/analyzeDiff.d.ts.map +1 -0
  102. package/dist/cli/schemas/analyzeDiff.js +28 -0
  103. package/dist/cli/schemas/generate.d.ts +9 -0
  104. package/dist/cli/schemas/generate.d.ts.map +1 -1
  105. package/dist/cli/schemas/generate.js +9 -0
  106. package/dist/cli/schemas/index.d.ts +3 -1
  107. package/dist/cli/schemas/index.d.ts.map +1 -1
  108. package/dist/cli/schemas/index.js +2 -0
  109. package/dist/common/Consts.d.ts +1 -0
  110. package/dist/common/Consts.d.ts.map +1 -1
  111. package/dist/common/Consts.js +19 -2
  112. package/dist/common/Logger.d.ts +20 -1
  113. package/dist/common/Logger.d.ts.map +1 -1
  114. package/dist/common/Logger.js +70 -9
  115. package/dist/common/LoggerMessages.d.ts +136 -33
  116. package/dist/common/LoggerMessages.d.ts.map +1 -1
  117. package/dist/common/LoggerMessages.js +119 -45
  118. package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts +1 -1
  119. package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts.map +1 -1
  120. package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.js +20 -4
  121. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts +4 -0
  122. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts.map +1 -1
  123. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts +10 -2
  124. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts.map +1 -1
  125. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts +10 -2
  126. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts.map +1 -1
  127. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts +10 -2
  128. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts.map +1 -1
  129. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts +77 -0
  130. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts.map +1 -0
  131. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.js +41 -0
  132. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts +79 -0
  133. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts.map +1 -0
  134. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.js +19 -0
  135. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts +326 -28
  136. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts.map +1 -1
  137. package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.js +15 -17
  138. package/dist/common/VersionedSchema/CommonSchemas.d.ts +52 -4
  139. package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
  140. package/dist/common/VersionedSchema/CommonSchemas.js +48 -7
  141. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts +6 -2
  142. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts.map +1 -1
  143. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.d.ts +4 -0
  144. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.d.ts.map +1 -1
  145. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts +4 -0
  146. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts.map +1 -1
  147. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +6 -2
  148. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts.map +1 -1
  149. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts +6 -2
  150. package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts.map +1 -1
  151. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts +6 -2
  152. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts.map +1 -1
  153. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts +4 -0
  154. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts.map +1 -1
  155. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts +4 -0
  156. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts.map +1 -1
  157. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +6 -2
  158. package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts.map +1 -1
  159. package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.d.ts.map +1 -1
  160. package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.js +40 -1
  161. package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.d.ts +2 -0
  162. package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.d.ts.map +1 -0
  163. package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.js +185 -0
  164. package/dist/common/VersionedSchema/Utils/__tests__/compareShapes.test.js +20 -3
  165. package/dist/common/VersionedSchema/Utils/__tests__/migrateDataToLatestSchemaVersion.test.js +19 -1
  166. package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts +4 -0
  167. package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts.map +1 -1
  168. package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.js +68 -23
  169. package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.d.ts +1 -1
  170. package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.js +1 -1
  171. package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts +10 -0
  172. package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts.map +1 -1
  173. package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.js +34 -15
  174. package/dist/common/__tests__/Logger.test.d.ts +2 -0
  175. package/dist/common/__tests__/Logger.test.d.ts.map +1 -0
  176. package/dist/common/__tests__/Logger.test.js +100 -0
  177. package/dist/common/utils/__tests__/convertArrayToObject.test.js +67 -169
  178. package/dist/common/utils/__tests__/eslintFix.test.d.ts +2 -0
  179. package/dist/common/utils/__tests__/eslintFix.test.d.ts.map +1 -0
  180. package/dist/common/utils/__tests__/eslintFix.test.js +134 -0
  181. package/dist/common/utils/__tests__/format.test.d.ts +2 -0
  182. package/dist/common/utils/__tests__/format.test.d.ts.map +1 -0
  183. package/dist/common/utils/__tests__/format.test.js +90 -0
  184. package/dist/common/utils/convertArrayToObject.d.ts.map +1 -1
  185. package/dist/common/utils/convertArrayToObject.js +54 -14
  186. package/dist/common/utils/eslintFix.d.ts +7 -0
  187. package/dist/common/utils/eslintFix.d.ts.map +1 -0
  188. package/dist/common/utils/eslintFix.js +78 -0
  189. package/dist/common/utils/format.d.ts +1 -1
  190. package/dist/common/utils/format.d.ts.map +1 -1
  191. package/dist/common/utils/format.js +39 -15
  192. package/dist/common/utils/jsonPath.d.ts +5 -0
  193. package/dist/common/utils/jsonPath.d.ts.map +1 -0
  194. package/dist/common/utils/jsonPath.js +27 -0
  195. package/dist/common/utils/normalizeObject.d.ts +2 -0
  196. package/dist/common/utils/normalizeObject.d.ts.map +1 -0
  197. package/dist/common/utils/normalizeObject.js +63 -0
  198. package/dist/core/Context.d.ts +8 -1
  199. package/dist/core/Context.d.ts.map +1 -1
  200. package/dist/core/Context.js +23 -4
  201. package/dist/core/OpenApiClient.d.ts +2 -0
  202. package/dist/core/OpenApiClient.d.ts.map +1 -1
  203. package/dist/core/OpenApiClient.js +127 -6
  204. package/dist/core/WriteClient.d.ts +12 -1
  205. package/dist/core/WriteClient.d.ts.map +1 -1
  206. package/dist/core/WriteClient.js +83 -8
  207. package/dist/core/__tests__/WriteClient.test.js +6 -1
  208. package/dist/core/api/v2/parser/__tests__/getModel.test.d.ts +2 -0
  209. package/dist/core/api/v2/parser/__tests__/getModel.test.d.ts.map +1 -0
  210. package/dist/core/api/v2/parser/__tests__/getModel.test.js +34 -0
  211. package/dist/core/api/v2/parser/getModel.d.ts.map +1 -1
  212. package/dist/core/api/v2/parser/getModel.js +6 -1
  213. package/dist/core/api/v2/parser/getOperation.d.ts.map +1 -1
  214. package/dist/core/api/v2/parser/getOperation.js +2 -0
  215. package/dist/core/api/v2/parser/getOperationResponses.d.ts.map +1 -1
  216. package/dist/core/api/v2/parser/getOperationResponses.js +9 -1
  217. package/dist/core/api/v2/parser/getType.d.ts.map +1 -1
  218. package/dist/core/api/v2/parser/getType.js +2 -1
  219. package/dist/core/api/v2/types/OpenApiSchema.model.d.ts +2 -0
  220. package/dist/core/api/v2/types/OpenApiSchema.model.d.ts.map +1 -1
  221. package/dist/core/api/v3/parser/__tests__/getContent.test.d.ts +2 -0
  222. package/dist/core/api/v3/parser/__tests__/getContent.test.d.ts.map +1 -0
  223. package/dist/core/api/v3/parser/__tests__/getContent.test.js +65 -0
  224. package/dist/core/api/v3/parser/__tests__/getModel.test.d.ts +2 -0
  225. package/dist/core/api/v3/parser/__tests__/getModel.test.d.ts.map +1 -0
  226. package/dist/core/api/v3/parser/__tests__/getModel.test.js +34 -0
  227. package/dist/core/api/v3/parser/getContent.d.ts.map +1 -1
  228. package/dist/core/api/v3/parser/getContent.js +21 -11
  229. package/dist/core/api/v3/parser/getModel.d.ts.map +1 -1
  230. package/dist/core/api/v3/parser/getModel.js +6 -1
  231. package/dist/core/api/v3/parser/getOperation.d.ts.map +1 -1
  232. package/dist/core/api/v3/parser/getOperation.js +2 -0
  233. package/dist/core/api/v3/parser/getOperationResponses.d.ts.map +1 -1
  234. package/dist/core/api/v3/parser/getOperationResponses.js +9 -1
  235. package/dist/core/api/v3/parser/getType.d.ts.map +1 -1
  236. package/dist/core/api/v3/parser/getType.js +2 -1
  237. package/dist/core/api/v3/types/OpenApiSchema.model.d.ts +2 -0
  238. package/dist/core/api/v3/types/OpenApiSchema.model.d.ts.map +1 -1
  239. package/dist/core/governance/__tests__/evaluateGovernanceRules.test.d.ts +2 -0
  240. package/dist/core/governance/__tests__/evaluateGovernanceRules.test.d.ts.map +1 -0
  241. package/dist/core/governance/__tests__/evaluateGovernanceRules.test.js +100 -0
  242. package/dist/core/governance/__tests__/loadGovernanceConfig.test.d.ts +2 -0
  243. package/dist/core/governance/__tests__/loadGovernanceConfig.test.d.ts.map +1 -0
  244. package/dist/core/governance/__tests__/loadGovernanceConfig.test.js +71 -0
  245. package/dist/core/governance/evaluateGovernanceRules.d.ts +42 -0
  246. package/dist/core/governance/evaluateGovernanceRules.d.ts.map +1 -0
  247. package/dist/core/governance/evaluateGovernanceRules.js +134 -0
  248. package/dist/core/governance/governanceConfigSchema.d.ts +4 -0
  249. package/dist/core/governance/governanceConfigSchema.d.ts.map +1 -0
  250. package/dist/core/governance/governanceConfigSchema.js +39 -0
  251. package/dist/core/governance/loadGovernanceConfig.d.ts +7 -0
  252. package/dist/core/governance/loadGovernanceConfig.d.ts.map +1 -0
  253. package/dist/core/governance/loadGovernanceConfig.js +60 -0
  254. package/dist/core/index.d.ts +3 -0
  255. package/dist/core/index.d.ts.map +1 -1
  256. package/dist/core/index.js +4 -2
  257. package/dist/core/plugins/GeneratorPlugin.model.d.ts +42 -0
  258. package/dist/core/plugins/GeneratorPlugin.model.d.ts.map +1 -0
  259. package/dist/core/plugins/GeneratorPlugin.model.js +2 -0
  260. package/dist/core/plugins/__tests__/applySemanticDiffPluginHooks.test.d.ts +2 -0
  261. package/dist/core/plugins/__tests__/applySemanticDiffPluginHooks.test.d.ts.map +1 -0
  262. package/dist/core/plugins/__tests__/applySemanticDiffPluginHooks.test.js +115 -0
  263. package/dist/core/plugins/__tests__/loadGeneratorPlugins.test.d.ts +2 -0
  264. package/dist/core/plugins/__tests__/loadGeneratorPlugins.test.d.ts.map +1 -0
  265. package/dist/core/plugins/__tests__/loadGeneratorPlugins.test.js +62 -0
  266. package/dist/core/plugins/applySemanticDiffPluginHooks.d.ts +28 -0
  267. package/dist/core/plugins/applySemanticDiffPluginHooks.d.ts.map +1 -0
  268. package/dist/core/plugins/applySemanticDiffPluginHooks.js +160 -0
  269. package/dist/core/plugins/builtins/xTypescriptTypePlugin.d.ts +6 -0
  270. package/dist/core/plugins/builtins/xTypescriptTypePlugin.d.ts.map +1 -0
  271. package/dist/core/plugins/builtins/xTypescriptTypePlugin.js +13 -0
  272. package/dist/core/plugins/getBuiltinPlugins.d.ts +6 -0
  273. package/dist/core/plugins/getBuiltinPlugins.d.ts.map +1 -0
  274. package/dist/core/plugins/getBuiltinPlugins.js +10 -0
  275. package/dist/core/plugins/index.d.ts +4 -0
  276. package/dist/core/plugins/index.d.ts.map +1 -0
  277. package/dist/core/plugins/index.js +5 -0
  278. package/dist/core/plugins/loadGeneratorPlugins.d.ts +6 -0
  279. package/dist/core/plugins/loadGeneratorPlugins.d.ts.map +1 -0
  280. package/dist/core/plugins/loadGeneratorPlugins.js +94 -0
  281. package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.d.ts +2 -0
  282. package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.d.ts.map +1 -0
  283. package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.js +537 -0
  284. package/dist/core/semanticDiff/__tests__/semanticDiffReportSchema.test.d.ts +2 -0
  285. package/dist/core/semanticDiff/__tests__/semanticDiffReportSchema.test.d.ts.map +1 -0
  286. package/dist/core/semanticDiff/__tests__/semanticDiffReportSchema.test.js +66 -0
  287. package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts +45 -0
  288. package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts.map +1 -0
  289. package/dist/core/semanticDiff/analyzeOpenApiDiff.js +640 -0
  290. package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts +11 -0
  291. package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts.map +1 -0
  292. package/dist/core/semanticDiff/semanticDiffReportSchema.js +132 -0
  293. package/dist/core/strict/__tests__/validateOpenApiStrict.test.d.ts +2 -0
  294. package/dist/core/strict/__tests__/validateOpenApiStrict.test.d.ts.map +1 -0
  295. package/dist/core/strict/__tests__/validateOpenApiStrict.test.js +156 -0
  296. package/dist/core/strict/validateOpenApiStrict.d.ts +43 -0
  297. package/dist/core/strict/validateOpenApiStrict.d.ts.map +1 -0
  298. package/dist/core/strict/validateOpenApiStrict.js +253 -0
  299. package/dist/core/types/base/ClientArtifacts.model.d.ts +2 -0
  300. package/dist/core/types/base/ClientArtifacts.model.d.ts.map +1 -1
  301. package/dist/core/types/base/Templates.model.d.ts +4 -1
  302. package/dist/core/types/base/Templates.model.d.ts.map +1 -1
  303. package/dist/core/types/enums/EmptySchemaStrategy.enum.d.ts +6 -0
  304. package/dist/core/types/enums/EmptySchemaStrategy.enum.d.ts.map +1 -0
  305. package/dist/core/types/enums/EmptySchemaStrategy.enum.js +9 -0
  306. package/dist/core/types/enums/ModelsMode.enum.d.ts +5 -0
  307. package/dist/core/types/enums/ModelsMode.enum.d.ts.map +1 -0
  308. package/dist/core/types/enums/ModelsMode.enum.js +8 -0
  309. package/dist/core/types/shared/Client.model.d.ts +2 -0
  310. package/dist/core/types/shared/Client.model.d.ts.map +1 -1
  311. package/dist/core/types/shared/DiffInfo.model.d.ts +13 -0
  312. package/dist/core/types/shared/DiffInfo.model.d.ts.map +1 -0
  313. package/dist/core/types/shared/DiffInfo.model.js +2 -0
  314. package/dist/core/types/shared/Miracle.model.d.ts +13 -0
  315. package/dist/core/types/shared/Miracle.model.d.ts.map +1 -0
  316. package/dist/core/types/shared/Miracle.model.js +2 -0
  317. package/dist/core/types/shared/Model.model.d.ts +23 -0
  318. package/dist/core/types/shared/Model.model.d.ts.map +1 -1
  319. package/dist/core/types/shared/Operation.model.d.ts +5 -0
  320. package/dist/core/types/shared/Operation.model.d.ts.map +1 -1
  321. package/dist/core/utils/__mocks__/templates.d.ts.map +1 -1
  322. package/dist/core/utils/__mocks__/templates.js +9 -0
  323. package/dist/core/utils/__tests__/applyDiffReportToClient.test.d.ts +2 -0
  324. package/dist/core/utils/__tests__/applyDiffReportToClient.test.d.ts.map +1 -0
  325. package/dist/core/utils/__tests__/applyDiffReportToClient.test.js +108 -0
  326. package/dist/core/utils/__tests__/getMappedType.test.js +2 -0
  327. package/dist/core/utils/__tests__/getOperationResponseCode.test.js +7 -2
  328. package/dist/core/utils/__tests__/getOperationResults.test.d.ts +2 -0
  329. package/dist/core/utils/__tests__/getOperationResults.test.d.ts.map +1 -0
  330. package/dist/core/utils/__tests__/getOperationResults.test.js +43 -0
  331. package/dist/core/utils/__tests__/getRelativeModelPath.test.d.ts +2 -0
  332. package/dist/core/utils/__tests__/getRelativeModelPath.test.d.ts.map +1 -0
  333. package/dist/core/utils/__tests__/getRelativeModelPath.test.js +27 -0
  334. package/dist/core/utils/__tests__/modelHelpers.test.d.ts +2 -0
  335. package/dist/core/utils/__tests__/modelHelpers.test.d.ts.map +1 -0
  336. package/dist/core/utils/__tests__/modelHelpers.test.js +151 -0
  337. package/dist/core/utils/__tests__/postProcessModelImports.test.d.ts +2 -0
  338. package/dist/core/utils/__tests__/postProcessModelImports.test.d.ts.map +1 -0
  339. package/dist/core/utils/__tests__/postProcessModelImports.test.js +67 -0
  340. package/dist/core/utils/__tests__/postProcessServiceImports.test.d.ts +2 -0
  341. package/dist/core/utils/__tests__/postProcessServiceImports.test.d.ts.map +1 -0
  342. package/dist/core/utils/__tests__/postProcessServiceImports.test.js +26 -0
  343. package/dist/core/utils/__tests__/prepareDtoModels.test.d.ts +2 -0
  344. package/dist/core/utils/__tests__/prepareDtoModels.test.d.ts.map +1 -0
  345. package/dist/core/utils/__tests__/prepareDtoModels.test.js +116 -0
  346. package/dist/core/utils/__tests__/resolveRefPath.test.d.ts +2 -0
  347. package/dist/core/utils/__tests__/resolveRefPath.test.d.ts.map +1 -0
  348. package/dist/core/utils/__tests__/resolveRefPath.test.js +22 -0
  349. package/dist/core/utils/__tests__/serviceHelpers.test.d.ts +2 -0
  350. package/dist/core/utils/__tests__/serviceHelpers.test.d.ts.map +1 -0
  351. package/dist/core/utils/__tests__/serviceHelpers.test.js +122 -0
  352. package/dist/core/utils/__tests__/writeClientExecutor.test.d.ts +2 -0
  353. package/dist/core/utils/__tests__/writeClientExecutor.test.d.ts.map +1 -0
  354. package/dist/core/utils/__tests__/writeClientExecutor.test.js +20 -0
  355. package/dist/core/utils/__tests__/writeClientModels.test.js +50 -0
  356. package/dist/core/utils/__tests__/writeClientSchemas.test.js +2 -0
  357. package/dist/core/utils/applyDiffReportToClient.d.ts +14 -0
  358. package/dist/core/utils/applyDiffReportToClient.d.ts.map +1 -0
  359. package/dist/core/utils/applyDiffReportToClient.js +367 -0
  360. package/dist/core/utils/getMappedType.d.ts.map +1 -1
  361. package/dist/core/utils/getMappedType.js +2 -0
  362. package/dist/core/utils/getOperationResponseCode.d.ts.map +1 -1
  363. package/dist/core/utils/getOperationResponseCode.js +10 -8
  364. package/dist/core/utils/getRelativeModelPath.d.ts +9 -0
  365. package/dist/core/utils/getRelativeModelPath.d.ts.map +1 -0
  366. package/dist/core/utils/getRelativeModelPath.js +37 -0
  367. package/dist/core/utils/loadDiffReport.d.ts +39 -0
  368. package/dist/core/utils/loadDiffReport.d.ts.map +1 -0
  369. package/dist/core/utils/loadDiffReport.js +51 -0
  370. package/dist/core/utils/modelHelpers.d.ts.map +1 -1
  371. package/dist/core/utils/modelHelpers.js +37 -3
  372. package/dist/core/utils/postProcessModelImports.d.ts.map +1 -1
  373. package/dist/core/utils/postProcessModelImports.js +14 -1
  374. package/dist/core/utils/postProcessServiceImports.d.ts.map +1 -1
  375. package/dist/core/utils/postProcessServiceImports.js +1 -2
  376. package/dist/core/utils/precompileTemplates.js +1 -0
  377. package/dist/core/utils/prepareDtoModels.d.ts +3 -0
  378. package/dist/core/utils/prepareDtoModels.d.ts.map +1 -0
  379. package/dist/core/utils/prepareDtoModels.js +189 -0
  380. package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
  381. package/dist/core/utils/registerHandlebarHelpers.js +29 -1
  382. package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
  383. package/dist/core/utils/registerHandlebarTemplates.js +48 -41
  384. package/dist/core/utils/resolveRefPath.d.ts.map +1 -1
  385. package/dist/core/utils/resolveRefPath.js +1 -4
  386. package/dist/core/utils/validateRawOptions.d.ts +1 -1
  387. package/dist/core/utils/validateRawOptions.d.ts.map +1 -1
  388. package/dist/core/utils/validateRawOptions.js +4 -2
  389. package/dist/core/utils/writeClientCore.d.ts +2 -0
  390. package/dist/core/utils/writeClientCore.d.ts.map +1 -1
  391. package/dist/core/utils/writeClientCore.js +6 -1
  392. package/dist/core/utils/writeClientCoreIndex.d.ts +1 -0
  393. package/dist/core/utils/writeClientCoreIndex.d.ts.map +1 -1
  394. package/dist/core/utils/writeClientCoreIndex.js +2 -2
  395. package/dist/core/utils/writeClientExecutor.d.ts +6 -1
  396. package/dist/core/utils/writeClientExecutor.d.ts.map +1 -1
  397. package/dist/core/utils/writeClientExecutor.js +22 -3
  398. package/dist/core/utils/writeClientFullIndex.d.ts.map +1 -1
  399. package/dist/core/utils/writeClientFullIndex.js +3 -1
  400. package/dist/core/utils/writeClientModels.d.ts +6 -0
  401. package/dist/core/utils/writeClientModels.d.ts.map +1 -1
  402. package/dist/core/utils/writeClientModels.js +24 -3
  403. package/dist/core/utils/writeClientModelsIndex.d.ts +2 -0
  404. package/dist/core/utils/writeClientModelsIndex.d.ts.map +1 -1
  405. package/dist/core/utils/writeClientModelsIndex.js +2 -2
  406. package/dist/core/utils/writeClientSchemas.d.ts +6 -1
  407. package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
  408. package/dist/core/utils/writeClientSchemas.js +16 -3
  409. package/dist/core/utils/writeClientServices.d.ts +2 -0
  410. package/dist/core/utils/writeClientServices.d.ts.map +1 -1
  411. package/dist/core/utils/writeClientServices.js +6 -2
  412. package/dist/templatesCompiled/cli/openApiConfig.d.ts +4 -1
  413. package/dist/templatesCompiled/cli/openApiConfig.d.ts.map +1 -1
  414. package/dist/templatesCompiled/cli/openApiConfig.js +88 -37
  415. package/dist/templatesCompiled/client/core/ApiError.js +1 -1
  416. package/dist/templatesCompiled/client/core/ApiRequestOptions.js +1 -1
  417. package/dist/templatesCompiled/client/core/ApiResult.js +1 -1
  418. package/dist/templatesCompiled/client/core/BaseDto.d.ts +8 -0
  419. package/dist/templatesCompiled/client/core/BaseDto.d.ts.map +1 -0
  420. package/dist/templatesCompiled/client/core/BaseDto.js +18 -0
  421. package/dist/templatesCompiled/client/core/axios/getResponseBody.js +1 -1
  422. package/dist/templatesCompiled/client/core/axios/request.js +3 -3
  423. package/dist/templatesCompiled/client/core/axios/sendRequest.js +4 -4
  424. package/dist/templatesCompiled/client/core/dtoUtils.d.ts +8 -0
  425. package/dist/templatesCompiled/client/core/dtoUtils.d.ts.map +1 -0
  426. package/dist/templatesCompiled/client/core/dtoUtils.js +18 -0
  427. package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts +2 -0
  428. package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts.map +1 -1
  429. package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.js +13 -8
  430. package/dist/templatesCompiled/client/core/executor/requestExecutor.js +1 -1
  431. package/dist/templatesCompiled/client/core/fetch/getResponseBody.js +1 -1
  432. package/dist/templatesCompiled/client/core/fetch/request.js +3 -3
  433. package/dist/templatesCompiled/client/core/functions/catchErrors.js +1 -1
  434. package/dist/templatesCompiled/client/core/functions/isBinary.js +1 -1
  435. package/dist/templatesCompiled/client/core/interceptors/withInterceptors.js +1 -1
  436. package/dist/templatesCompiled/client/core/node/getResponseBody.js +1 -1
  437. package/dist/templatesCompiled/client/core/node/request.js +3 -3
  438. package/dist/templatesCompiled/client/core/xhr/getResponseBody.js +1 -1
  439. package/dist/templatesCompiled/client/core/xhr/request.js +3 -3
  440. package/dist/templatesCompiled/client/core/xhr/sendRequest.js +4 -4
  441. package/dist/templatesCompiled/client/exportClient.d.ts +4 -0
  442. package/dist/templatesCompiled/client/exportClient.d.ts.map +1 -1
  443. package/dist/templatesCompiled/client/exportClient.js +51 -13
  444. package/dist/templatesCompiled/client/exportModels.d.ts +34 -0
  445. package/dist/templatesCompiled/client/exportModels.d.ts.map +1 -0
  446. package/dist/templatesCompiled/client/exportModels.js +280 -0
  447. package/dist/templatesCompiled/client/exportSchema.d.ts +5 -1
  448. package/dist/templatesCompiled/client/exportSchema.d.ts.map +1 -1
  449. package/dist/templatesCompiled/client/exportSchema.js +37 -7
  450. package/dist/templatesCompiled/client/exportService.d.ts +9 -4
  451. package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
  452. package/dist/templatesCompiled/client/exportService.js +96 -37
  453. package/dist/templatesCompiled/client/indexCore.d.ts +3 -1
  454. package/dist/templatesCompiled/client/indexCore.d.ts.map +1 -1
  455. package/dist/templatesCompiled/client/indexCore.js +13 -2
  456. package/dist/templatesCompiled/client/indexFull.d.ts +10 -7
  457. package/dist/templatesCompiled/client/indexFull.d.ts.map +1 -1
  458. package/dist/templatesCompiled/client/indexFull.js +54 -33
  459. package/dist/templatesCompiled/client/indexModels.d.ts +7 -5
  460. package/dist/templatesCompiled/client/indexModels.d.ts.map +1 -1
  461. package/dist/templatesCompiled/client/indexModels.js +27 -18
  462. package/dist/templatesCompiled/client/indexSimple.d.ts +1 -0
  463. package/dist/templatesCompiled/client/indexSimple.d.ts.map +1 -1
  464. package/dist/templatesCompiled/client/indexSimple.js +4 -1
  465. package/dist/templatesCompiled/client/joi/exportSchema.js +5 -5
  466. package/dist/templatesCompiled/client/joi/partials/joiSchema.js +7 -7
  467. package/dist/templatesCompiled/client/joi/partials/joiSchemaComposition.js +4 -4
  468. package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.d.ts +27 -19
  469. package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.d.ts.map +1 -1
  470. package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.js +144 -63
  471. package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts +5 -3
  472. package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts.map +1 -1
  473. package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.js +39 -12
  474. package/dist/templatesCompiled/client/jsonschema/exportSchema.d.ts +1 -0
  475. package/dist/templatesCompiled/client/jsonschema/exportSchema.d.ts.map +1 -1
  476. package/dist/templatesCompiled/client/jsonschema/exportSchema.js +21 -17
  477. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchema.js +7 -7
  478. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaArray.js +5 -5
  479. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaComposition.js +2 -2
  480. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaDictionary.js +5 -5
  481. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts +3 -1
  482. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts.map +1 -1
  483. package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.js +45 -15
  484. package/dist/templatesCompiled/client/partials/exportInterface.d.ts +13 -5
  485. package/dist/templatesCompiled/client/partials/exportInterface.d.ts.map +1 -1
  486. package/dist/templatesCompiled/client/partials/exportInterface.js +91 -21
  487. package/dist/templatesCompiled/client/partials/result.d.ts +6 -4
  488. package/dist/templatesCompiled/client/partials/result.d.ts.map +1 -1
  489. package/dist/templatesCompiled/client/partials/result.js +16 -6
  490. package/dist/templatesCompiled/client/partials/serviceOption.d.ts +1 -0
  491. package/dist/templatesCompiled/client/partials/serviceOption.d.ts.map +1 -1
  492. package/dist/templatesCompiled/client/partials/serviceOption.js +11 -4
  493. package/dist/templatesCompiled/client/yup/exportSchema.js +3 -3
  494. package/dist/templatesCompiled/client/yup/partials/yupSchema.js +7 -7
  495. package/dist/templatesCompiled/client/yup/partials/yupSchemaComposition.js +4 -4
  496. package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.d.ts +22 -16
  497. package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.d.ts.map +1 -1
  498. package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.js +72 -60
  499. package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts +5 -3
  500. package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts.map +1 -1
  501. package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.js +39 -12
  502. package/dist/templatesCompiled/client/zod/exportSchema.js +3 -3
  503. package/dist/templatesCompiled/client/zod/partials/zodSchema.js +7 -7
  504. package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts +5 -6
  505. package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts.map +1 -1
  506. package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.js +14 -28
  507. package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts +3 -0
  508. package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts.map +1 -1
  509. package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.js +32 -8
  510. package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts +3 -4
  511. package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts.map +1 -1
  512. package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.js +9 -23
  513. package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.d.ts +27 -19
  514. package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.d.ts.map +1 -1
  515. package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.js +77 -61
  516. package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts +4 -2
  517. package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts.map +1 -1
  518. package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.js +18 -7
  519. package/package.json +8 -6
  520. package/dist/common/defaultOptions.d.ts +0 -3
  521. package/dist/common/defaultOptions.d.ts.map +0 -1
  522. package/dist/common/defaultOptions.js +0 -28
  523. package/dist/core/utils/advancedDeduplicatePath.d.ts +0 -5
  524. package/dist/core/utils/advancedDeduplicatePath.d.ts.map +0 -1
  525. package/dist/core/utils/advancedDeduplicatePath.js +0 -29
@@ -1,10 +1,37 @@
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
+ exports.LOGGER_ERROR_CODES = {
9
+ CONFIG_FILE_MISSING: 'CONFIG_FILE_MISSING',
10
+ CONFIG_FILE_NOT_FOUND_AT: 'CONFIG_FILE_NOT_FOUND_AT',
11
+ NO_OPTIONS_PROVIDED: 'NO_OPTIONS_PROVIDED',
12
+ NO_SPEC_FILES_FOUND: 'NO_SPEC_FILES_FOUND',
13
+ NO_VALID_SPEC_FILES_FOUND: 'NO_VALID_SPEC_FILES_FOUND',
14
+ PREVIEW_DIR_EMPTY: 'PREVIEW_DIR_EMPTY',
15
+ PREVIEW_CLEANUP_FAILED: 'PREVIEW_CLEANUP_FAILED',
16
+ SPEC_FILES_FIND_ERROR: 'SPEC_FILES_FIND_ERROR',
17
+ PRETTIER_FORMAT_FAILED: 'PRETTIER_FORMAT_FAILED',
18
+ ESLINT_FIX_FAILED: 'ESLINT_FIX_FAILED',
19
+ };
20
+ /**
21
+ * Человекочитаемые рекомендации для пользователя CLI по коду ошибки
22
+ */
23
+ exports.LOGGER_ERROR_RECOMMENDATIONS = {
24
+ CONFIG_FILE_MISSING: 'Создайте конфигурационный файл (по умолчанию openapi.config.json) или укажите путь к нему через опцию --openapi-config. В качестве альтернативы можно передать обязательные параметры --input и --output напрямую в команду.',
25
+ CONFIG_FILE_NOT_FOUND_AT: 'Проверьте правильность пути к конфигурационному файлу (--openapi-config) и наличие файла на диске. Обновите путь или создайте файл с нужными параметрами.',
26
+ NO_OPTIONS_PROVIDED: 'Укажите входные и выходные параметры генерации: как минимум --input (путь к спецификации или директории со спецификациями) и --output (директория для сгенерированного клиента).',
27
+ NO_SPEC_FILES_FOUND: 'Убедитесь, что в указанной директории действительно есть OpenAPI-файлы (.yaml/.yml/.json). При необходимости скорректируйте путь к каталогу со спецификациями.',
28
+ NO_VALID_SPEC_FILES_FOUND: 'Проверьте формат и структуру файлов спецификаций. Убедитесь, что они соответствуют стандарту OpenAPI v2/v3 и не содержат критических ошибок валидации.',
29
+ PREVIEW_DIR_EMPTY: 'Сначала выполните генерацию клиента, чтобы появились файлы для сравнения, или укажите другую директорию для превью. Если каталог должен существовать, проверьте правильность пути.',
30
+ PREVIEW_CLEANUP_FAILED: 'Проверьте права доступа к директории превью и отсутствует ли блокировка файлов сторонними процессами. При необходимости очистите каталог вручную и повторите команду.',
31
+ SPEC_FILES_FIND_ERROR: 'Проверьте корректность маски поиска и доступ к файловой системе. Убедитесь, что у вас есть права чтения для директории со спецификациями.',
32
+ PRETTIER_FORMAT_FAILED: 'Проверьте синтаксис сгенерированного фрагмента и настройки Prettier (включая опцию useProjectPrettier). При необходимости отключите useProjectPrettier или поправьте .prettierrc.',
33
+ ESLINT_FIX_FAILED: 'Проверьте, что путь к файлу корректен, ESLint и конфигурация проекта в порядке, и что файл доступен для чтения/записи. При необходимости отключите useEslintFix.',
34
+ };
8
35
  exports.LOGGER_MESSAGES = {
9
36
  // ========== Generation Messages (OpenApiClient) ==========
10
37
  GENERATION: {
@@ -20,63 +47,110 @@ exports.LOGGER_MESSAGES = {
20
47
  WRITING_V2: 'Write our OpenAPI client version 2 to disk.',
21
48
  WRITING_V3: 'Write our OpenAPI client version 3 to disk.',
22
49
  },
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
50
  // ========== Config Messages (CLI) ==========
66
51
  CONFIG: {
67
- FILE_RECORDING_COMPLETED: (file) => `File recording completed: ${file}`,
68
- FILE_ALREADY_EXISTS: (fileName) => `The configuration file already exists: ${fileName}`,
69
52
  FILE_MISSING: 'The configuration file is missing',
53
+ FILE_MISSING_HINT: 'Provide non-empty "--input" and "--output" options, or a valid "--openapi-config" file path.',
54
+ FILE_NOT_FOUND: (path) => `Отсутствует файл: ${path}`,
55
+ FILE_NOT_FOUND_AT: (path) => `Configuration file not found at "${path}"`,
70
56
  CONVERSION_FAILED: "Couldn't convert the set of options to the current version",
57
+ UPDATING_FAILED: 'Ошибка при обновлении данных конфигурационного файла',
58
+ CHECKING_FAILED: 'Ошибка при проверке данных конфигурационного файла',
59
+ CONFIG_VALID: (path) => `Параметры конфигурации в файле "${path}" прошли проверку`,
60
+ CONFIG_UP_TO_DATE: (path) => `Данные в файле "${path}" актуальны`,
71
61
  FILE_UPDATED: (configPath) => `Configuration file "${configPath}" has been updated`,
72
62
  ACTION_SKIPPED: 'Action skipped.',
73
63
  UNKNOWN_ACTION: (action) => `Unknown action: ${action}`,
64
+ 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.',
65
+ CONFIG_EXISTS_INTERACTIVE_DISABLED: (path) => `Configuration file already exists and interactive mode is disabled: ${path}`,
66
+ CONFIG_LEFT_UNCHANGED: 'Configuration file left unchanged.',
67
+ 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.',
70
+ CONFIG_GENERATION_CANCELLED: 'Configuration file generation cancelled.',
71
+ SPEC_FILES_FIND_ERROR: (error) => `Error finding spec files: ${error}`,
72
+ NO_SPEC_FILES_FOUND: (directory) => `No spec files found in directory: ${directory}`,
73
+ NO_VALID_SPEC_FILES_FOUND: 'No valid OpenAPI specification files found.',
74
+ CUSTOM_REQUEST_MISSING_PATH: 'Custom request was selected, but --request path is not provided. The "request" field will be skipped.',
75
+ WARNING_OUTDATED_CONFIG: 'Ваша версия конфигурации устарела и нуждается в обновлении.',
76
+ WARNING_DEFAULT_VALUES: 'В вашей конфигурации есть значения по умолчанию, которые можно удалить.',
77
+ USER_WARNING: (message) => `\n${message}\n`,
74
78
  },
75
79
  // ========== Error Messages ==========
76
80
  ERROR: {
77
81
  PREFIX: 'Error:',
78
82
  GENERIC: (message) => message,
83
+ WITH_DETAILS: (message, details) => `${message}: ${details}`,
79
84
  },
80
85
  // ========== Separator ==========
81
86
  SEPARATOR: '==========================================',
87
+ // ========== Dialog Messages ==========
88
+ DIALOG: {
89
+ OPERATION_CANCELLED: '\nThe operation was canceled by the user.',
90
+ SELECTION_CANCELLED: '\nThe choice is canceled.',
91
+ },
92
+ // ========== Custom Request Messages ==========
93
+ CUSTOM_REQUEST: {
94
+ PATH_NOT_PROVIDED: 'Custom request path is not provided (--request). Skipping custom request file generation.',
95
+ FILE_EXISTS_INTERACTIVE_DISABLED: (file) => `Custom request file already exists and interactive mode is disabled: ${file}`,
96
+ FILE_LEFT_UNCHANGED: 'Custom request file left unchanged.',
97
+ FILE_CREATED: (file) => `Custom request file created: ${file}`,
98
+ },
99
+ // ========== Spec Validation Messages ==========
100
+ SPEC_VALIDATION: {
101
+ SKIP_INVALID_FILE: (filePath) => `Skipping invalid spec file: ${filePath}`,
102
+ },
103
+ // ========== Preview Changes Messages ==========
104
+ PREVIEW: {
105
+ GENERATED_DIR_EMPTY: (dir) => `Directory "${dir}" is empty or does not exist. Nothing to compare.`,
106
+ GENERATING_PREVIEW: (dir) => `Generating code to preview directory: ${dir}`,
107
+ COMPARING_FILES: 'Comparing files...',
108
+ FILE_NO_CHANGES: (file) => `File "${file}" has no changes`,
109
+ DIFF_SAVED: (filePath) => `Diff saved: ${filePath}`,
110
+ TOTAL_CHANGES: (count) => `\nTotal changes: ${count}`,
111
+ DIFF_FILES_SAVED_TO: (dir) => `Diff files saved to: ${dir}`,
112
+ NO_CHANGES_DETECTED: 'No changes detected. All files are identical.',
113
+ CLEANUP_PREVIEW_DIR: (dir) => `Cleaning up preview directory: ${dir}`,
114
+ CLEANUP_PREVIEW_FAILED: (error) => `Failed to cleanup preview directory: ${error}`,
115
+ },
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
+ // ========== Analyze Diff Messages ==========
130
+ ANALYZE_DIFF: {
131
+ STARTED: (newSpec, baseSource) => `Starting analyze-diff: input=${newSpec}, base=${baseSource}`,
132
+ SKIPPED_NO_BASE: 'History analysis skipped: no base spec provided (use --compare-with or --git).',
133
+ VALIDATION_ERROR: (message) => `Analyze-diff options validation failed: ${message}`,
134
+ COMPARE_WITH_OVERRIDES_GIT: (gitRef) => `Option "--compare-with" has priority over "--git". Ignoring git ref "${gitRef}".`,
135
+ PLUGIN_DIAGNOSTIC: (diagnostic) => {
136
+ const messageSuffix = diagnostic.message ? `: ${diagnostic.message}` : '';
137
+ return `[plugin:${diagnostic.pluginName}] hook=${diagnostic.hook} status=${diagnostic.status} duration=${diagnostic.durationMs}ms${messageSuffix}`;
138
+ },
139
+ REPORT_CREATED: (reportPath) => `Semantic diff report created: ${reportPath}`,
140
+ 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}`,
141
+ RECOMMENDATION: (report) => `Recommended version bump: ${report.recommendation.semver} (${report.recommendation.reason}, confidence=${report.recommendation.confidence}, reasons=${report.recommendation.reasons.join(',')})`,
142
+ GOVERNANCE: (report) => `Governance: errors=${report.governance.summary.errors}, warnings=${report.governance.summary.warnings}, info=${report.governance.summary.info}`,
143
+ CI_MARKDOWN_SUMMARY: (markdown) => markdown,
144
+ CI_FAILURE: 'CI mode failed because governance errors were found.',
145
+ IGNORED_CHANGES: (count) => `[openapi-codegen] IGNORED: ${count} semantic change(s) filtered by analyze.ignore`,
146
+ EXECUTION_ERROR: (message) => `Analyze-diff execution failed: ${message}`,
147
+ INVALID_IGNORE_PATTERN: (pattern, error) => `[openapi-codegen] Invalid ignore pattern: ${pattern} — ${error}`,
148
+ LEGACY_BASE: (base) => `Base: ${base}`,
149
+ LEGACY_TARGET: (target) => `Target: ${target}`,
150
+ LEGACY_STABILITY_SCORE: (score) => `Stability score: ${score}%`,
151
+ LEGACY_CHANGES: (stats) => `Changes: total=${stats.totalChanges}, added=${stats.added}, removed=${stats.removed}, changed=${stats.changed}`,
152
+ LEGACY_BREAKING: (count) => `[openapi-codegen] BREAKING: ${count} item(s)`,
153
+ LEGACY_WARNINGS: (count) => `[openapi-codegen] WARNINGS: ${count} item(s)`,
154
+ LEGACY_IGNORED: (count) => `[openapi-codegen] IGNORED: ${count} item(s) by config rules`,
155
+ },
82
156
  };
@@ -1,7 +1,7 @@
1
1
  import { SchemaMigrationPlan } from '../Types';
2
2
  /**
3
3
  * Unified migration plan that includes all migrations from all schema types.
4
- * Migrates from any old version to the latest UNIFIED_v1 schema.
4
+ * Migrates from any old version to the latest UNIFIED_OPTIONS_v1 schema.
5
5
  * Reuses existing migration plans to avoid code duplication.
6
6
  */
7
7
  export declare const allMigrationPlans: SchemaMigrationPlan<Record<string, any>, Record<string, any>>[];
@@ -1 +1 @@
1
- {"version":3,"file":"AllMigrationPlans.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAgB/C;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EA4B5F,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,EAqD5F,CAAC"}
@@ -1,9 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.allMigrationPlans = void 0;
4
+ const EmptySchemaStrategy_enum_1 = require("../../../core/types/enums/EmptySchemaStrategy.enum");
4
5
  const ValidationLibrary_enum_1 = require("../../../core/types/enums/ValidationLibrary.enum");
6
+ const Enums_1 = require("../../Enums");
5
7
  const MultiOptionsMigrationPlan_1 = require("../MultiOptionsVersioned/MultiOptionsMigrationPlan");
6
8
  const OptionsMigrationPlans_1 = require("../OptionsVersioned/OptionsMigrationPlans");
9
+ const createDefaultFieldsMigration_1 = require("../Utils/createDefaultFieldsMigration");
7
10
  const createFieldTransformationMigration_1 = require("../Utils/createFieldTransformationMigration");
8
11
  const createTrivialMigration_1 = require("../Utils/createTrivialMigration");
9
12
  const getLatestVersionFromMigrationPlans_1 = require("../Utils/getLatestVersionFromMigrationPlans");
@@ -19,19 +22,32 @@ function addVersionPrefixToMigrationPlans(plans, prefix) {
19
22
  }
20
23
  /**
21
24
  * Unified migration plan that includes all migrations from all schema types.
22
- * Migrates from any old version to the latest UNIFIED_v1 schema.
25
+ * Migrates from any old version to the latest UNIFIED_OPTIONS_v1 schema.
23
26
  * Reuses existing migration plans to avoid code duplication.
24
27
  */
25
28
  exports.allMigrationPlans = [
26
29
  // ===== OPTIONS migrations (with prefix) =====
27
30
  ...addVersionPrefixToMigrationPlans(OptionsMigrationPlans_1.optionsMigrationPlans, 'OPTIONS'),
28
31
  // Migration from OPTIONS latest version to UNIFIED v1
29
- (0, createTrivialMigration_1.createTrivialMigration)(`OPTIONS_${(0, getLatestVersionFromMigrationPlans_1.getLatestVersionFromMigrationPlans)(OptionsMigrationPlans_1.optionsMigrationPlans)}`, 'UNIFIED_v1', 'Migrate from OPTIONS to UNIFIED schema'),
32
+ (0, createTrivialMigration_1.createTrivialMigration)(`OPTIONS_${(0, getLatestVersionFromMigrationPlans_1.getLatestVersionFromMigrationPlans)(OptionsMigrationPlans_1.optionsMigrationPlans)}`, 'UNIFIED_OPTIONS_v1', 'Migrate from OPTIONS to UNIFIED schema'),
30
33
  // ===== MULTI_OPTIONS migrations (with prefix) =====
31
34
  ...addVersionPrefixToMigrationPlans(MultiOptionsMigrationPlan_1.multiOptionsMigrationPlan, 'MULTI_OPTIONS'),
32
35
  // Migration from MULTI_OPTIONS latest version to UNIFIED v1
33
- (0, createTrivialMigration_1.createTrivialMigration)(`MULTI_OPTIONS_${(0, getLatestVersionFromMigrationPlans_1.getLatestVersionFromMigrationPlans)(MultiOptionsMigrationPlan_1.multiOptionsMigrationPlan)}`, 'UNIFIED_v1', 'Migrate from MULTI_OPTIONS to UNIFIED schema'),
34
- (0, createFieldTransformationMigration_1.createFieldTransformationMigration)('UNIFIED_v1', 'UNIFIED_v2', ({ includeSchemasFiles, ...otherProps }) => {
36
+ (0, createTrivialMigration_1.createTrivialMigration)(`MULTI_OPTIONS_${(0, getLatestVersionFromMigrationPlans_1.getLatestVersionFromMigrationPlans)(MultiOptionsMigrationPlan_1.multiOptionsMigrationPlan)}`, 'UNIFIED_OPTIONS_v1', 'Migrate from MULTI_OPTIONS to UNIFIED schema'),
37
+ (0, createFieldTransformationMigration_1.createFieldTransformationMigration)('UNIFIED_OPTIONS_v1', 'UNIFIED_OPTIONS_v2', ({ includeSchemasFiles, ...otherProps }) => {
35
38
  return { ...otherProps, validationLibrary: !includeSchemasFiles ? ValidationLibrary_enum_1.ValidationLibrary.NONE : undefined };
36
39
  }, 'Transforms includeSchemasFiles to validationLibrary: if includeSchemasFiles is false, sets validationLibrary to NONE'),
40
+ (0, createDefaultFieldsMigration_1.createDefaultFieldsMigration)('UNIFIED_OPTIONS_v2', 'UNIFIED_OPTIONS_v3', {
41
+ logLevel: Enums_1.ELogLevel.ERROR,
42
+ logTarget: Enums_1.ELogOutput.CONSOLE
43
+ }),
44
+ (0, createDefaultFieldsMigration_1.createDefaultFieldsMigration)('UNIFIED_OPTIONS_v3', 'UNIFIED_OPTIONS_v4', {
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
+ useProjectPrettier: false,
51
+ useEslintFix: false,
52
+ }),
37
53
  ];
@@ -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,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAapD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;iBAK9B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAC"}
1
+ {"version":3,"file":"UnifiedBase.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAapD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;iBAK9B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAC"}
@@ -4,13 +4,17 @@ 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>;
10
- useOptions: z.ZodOptional<z.ZodBoolean>;
11
- useUnionTypes: z.ZodOptional<z.ZodBoolean>;
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>>;
12
14
  excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
13
15
  includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
16
+ useOptions: z.ZodOptional<z.ZodBoolean>;
17
+ useUnionTypes: z.ZodOptional<z.ZodBoolean>;
14
18
  outputCore: z.ZodOptional<z.ZodString>;
15
19
  outputServices: z.ZodOptional<z.ZodString>;
16
20
  outputModels: z.ZodOptional<z.ZodString>;
@@ -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,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAOtB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMjC,CAAC"}
1
+ {"version":3,"file":"UnifiedOptionsSchemaV1.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAOtB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMjC,CAAC"}
@@ -1,16 +1,20 @@
1
1
  import { z } from 'zod';
2
2
  export declare const unifiedOptionsSchemaV2: z.ZodObject<{
3
- useOptions: z.ZodOptional<z.ZodBoolean>;
4
- useUnionTypes: z.ZodOptional<z.ZodBoolean>;
5
3
  excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
6
4
  validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
5
+ useOptions: z.ZodOptional<z.ZodBoolean>;
6
+ useUnionTypes: z.ZodOptional<z.ZodBoolean>;
7
7
  sortByRequired: z.ZodOptional<z.ZodBoolean>;
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,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGjC,CAAC"}
1
+ {"version":3,"file":"UnifiedOptionsSchemaV2.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGjC,CAAC"}
@@ -2,17 +2,21 @@ import { z } from 'zod';
2
2
  export declare const unifiedOptionsSchemaV3: z.ZodObject<{
3
3
  logLevel: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogLevel>>;
4
4
  logTarget: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogOutput>>;
5
- useOptions: z.ZodOptional<z.ZodBoolean>;
6
- useUnionTypes: z.ZodOptional<z.ZodBoolean>;
7
5
  excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
8
6
  validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
7
+ useOptions: z.ZodOptional<z.ZodBoolean>;
8
+ useUnionTypes: z.ZodOptional<z.ZodBoolean>;
9
9
  sortByRequired: z.ZodOptional<z.ZodBoolean>;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGjC,CAAC"}
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"}
@@ -0,0 +1,77 @@
1
+ import { z } from 'zod';
2
+ export declare const unifiedOptionsSchemaV4: z.ZodObject<{
3
+ logLevel: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogLevel>>;
4
+ logTarget: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogOutput>>;
5
+ sortByRequired: z.ZodOptional<z.ZodBoolean>;
6
+ useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
7
+ useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
8
+ request: z.ZodOptional<z.ZodString>;
9
+ plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ interfacePrefix: z.ZodOptional<z.ZodString>;
11
+ enumPrefix: z.ZodOptional<z.ZodString>;
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>>;
16
+ includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
17
+ outputCore: z.ZodOptional<z.ZodString>;
18
+ outputServices: z.ZodOptional<z.ZodString>;
19
+ outputModels: z.ZodOptional<z.ZodString>;
20
+ outputSchemas: z.ZodOptional<z.ZodString>;
21
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
22
+ input: z.ZodString;
23
+ request: z.ZodOptional<z.ZodString>;
24
+ sortByRequired: z.ZodOptional<z.ZodBoolean>;
25
+ useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
26
+ useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
27
+ plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
+ interfacePrefix: z.ZodOptional<z.ZodString>;
29
+ enumPrefix: z.ZodOptional<z.ZodString>;
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>>;
34
+ output: z.ZodString;
35
+ outputCore: z.ZodOptional<z.ZodString>;
36
+ outputServices: z.ZodOptional<z.ZodString>;
37
+ outputModels: z.ZodOptional<z.ZodString>;
38
+ outputSchemas: z.ZodOptional<z.ZodString>;
39
+ }, z.core.$strip>>>;
40
+ input: z.ZodOptional<z.ZodString>;
41
+ output: z.ZodOptional<z.ZodString>;
42
+ httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
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>>;
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>;
72
+ excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
73
+ validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
74
+ useOptions: z.ZodOptional<z.ZodBoolean>;
75
+ useUnionTypes: z.ZodOptional<z.ZodBoolean>;
76
+ }, z.core.$strip>;
77
+ //# sourceMappingURL=UnifiedOptionsSchemaV4.d.ts.map
@@ -0,0 +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,CAAA;AAKvB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMjC,CAAA"}
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.unifiedOptionsSchemaV4 = void 0;
4
+ const zod_1 = require("zod");
5
+ const CommonSchemas_1 = require("../CommonSchemas");
6
+ const UnifiedOptionsSchemaV3_1 = require("./UnifiedOptionsSchemaV3");
7
+ exports.unifiedOptionsSchemaV4 = UnifiedOptionsSchemaV3_1.unifiedOptionsSchemaV3.extend({
8
+ ...CommonSchemas_1.specialParametersSchemasV4.shape,
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(),
13
+ });
14
+ /*
15
+ type TUnified = {
16
+ httpClient: HttpClient.FETCH | HttpClient.XHR | HttpClient.NODE | HttpClient.AXIOS;
17
+ logLevel: ELogLevel.INFO | ELogLevel.WARN | ELogLevel.ERROR | undefined;
18
+ logTarget: ELogOutput.CONSOLE | ELogOutput.FILE | undefined;
19
+ sortByRequired: boolean | undefined;
20
+ useSeparatedIndexes: boolean | undefined;
21
+ useCancelableRequest: boolean | undefined;
22
+ request: string | undefined;
23
+ interfacePrefix: string | undefined;
24
+ enumPrefix: string | undefined;
25
+ typePrefix: string | undefined;
26
+ includeSchemasFiles: boolean | undefined;
27
+ outputCore: string | undefined;
28
+ outputServices: string | undefined;
29
+ outputModels: string | undefined;
30
+ outputSchemas: string | undefined;
31
+ items: { ... 13 more }[] | undefined;
32
+ input: string | undefined;
33
+ output: string | undefined;
34
+ customExecutorPath: string | undefined;
35
+ emptySchemaStrategy: EmptySchemaStrategy.SEMANTIC | EmptySchemaStrategy.SKIP | EmptySchemaStrategy.KEEP | undefined;
36
+ excludeCoreServiceFiles: boolean | undefined;
37
+ validationLibrary: ValidationLibrary.NONE | ValidationLibrary.ZOD | ValidationLibrary.JOI | ValidationLibrary.YUP | ValidationLibrary.JSONSCHEMA | undefined;
38
+ useOptions: boolean | undefined;
39
+ useUnionTypes: boolean | undefined;
40
+ }
41
+ */
@@ -0,0 +1,79 @@
1
+ import { z } from 'zod';
2
+ export declare const unifiedOptionsSchemaV5: z.ZodObject<{
3
+ logLevel: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogLevel>>;
4
+ logTarget: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogOutput>>;
5
+ sortByRequired: z.ZodOptional<z.ZodBoolean>;
6
+ useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
7
+ useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
8
+ request: z.ZodOptional<z.ZodString>;
9
+ plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
+ interfacePrefix: z.ZodOptional<z.ZodString>;
11
+ enumPrefix: z.ZodOptional<z.ZodString>;
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>>;
16
+ includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
17
+ outputCore: z.ZodOptional<z.ZodString>;
18
+ outputServices: z.ZodOptional<z.ZodString>;
19
+ outputModels: z.ZodOptional<z.ZodString>;
20
+ outputSchemas: z.ZodOptional<z.ZodString>;
21
+ items: z.ZodOptional<z.ZodArray<z.ZodObject<{
22
+ input: z.ZodString;
23
+ request: z.ZodOptional<z.ZodString>;
24
+ sortByRequired: z.ZodOptional<z.ZodBoolean>;
25
+ useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
26
+ useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
27
+ plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
28
+ interfacePrefix: z.ZodOptional<z.ZodString>;
29
+ enumPrefix: z.ZodOptional<z.ZodString>;
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>>;
34
+ output: z.ZodString;
35
+ outputCore: z.ZodOptional<z.ZodString>;
36
+ outputServices: z.ZodOptional<z.ZodString>;
37
+ outputModels: z.ZodOptional<z.ZodString>;
38
+ outputSchemas: z.ZodOptional<z.ZodString>;
39
+ }, z.core.$strip>>>;
40
+ input: z.ZodOptional<z.ZodString>;
41
+ output: z.ZodOptional<z.ZodString>;
42
+ httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
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>>;
68
+ emptySchemaStrategy: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/EmptySchemaStrategy.enum").EmptySchemaStrategy>>;
69
+ governanceConfig: z.ZodOptional<z.ZodString>;
70
+ excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
71
+ validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
72
+ useOptions: z.ZodOptional<z.ZodBoolean>;
73
+ useUnionTypes: z.ZodOptional<z.ZodBoolean>;
74
+ useProjectPrettier: z.ZodOptional<z.ZodBoolean>;
75
+ useEslintFix: z.ZodOptional<z.ZodBoolean>;
76
+ strictOpenapi: z.ZodOptional<z.ZodBoolean>;
77
+ reportFile: z.ZodOptional<z.ZodString>;
78
+ }, z.core.$strip>;
79
+ //# sourceMappingURL=UnifiedOptionsSchemaV5.d.ts.map
@@ -0,0 +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,CAAA;AAKvB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAIjC,CAAC"}