ts-openapi-codegen 2.1.0-beta.6 → 2.1.0-beta.7
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/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.js +9 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.js +9 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.js +9 -0
- package/dist/cli/analyzeUsage/analyzeUsage.d.ts +4 -0
- package/dist/cli/analyzeUsage/analyzeUsage.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/analyzeUsage.js +62 -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 +63 -0
- package/dist/cli/analyzeUsage/core/Scanner.d.ts +15 -0
- package/dist/cli/analyzeUsage/core/Scanner.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/core/Scanner.js +115 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.js +78 -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 +63 -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 +60 -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 +52 -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 +38 -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 +48 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.d.ts +7 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.js +92 -0
- package/dist/cli/analyzeUsage/types.d.ts +52 -0
- package/dist/cli/analyzeUsage/types.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/types.js +2 -0
- package/dist/cli/analyzeUsage/utils/fuzzy.d.ts +5 -0
- package/dist/cli/analyzeUsage/utils/fuzzy.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/utils/fuzzy.js +38 -0
- package/dist/cli/analyzeUsage/utils/report.d.ts +16 -0
- package/dist/cli/analyzeUsage/utils/report.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/utils/report.js +85 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/checkConfig.test.js +10 -20
- package/dist/cli/checkAndUpdateConfig/__tests__/updateConfig.test.js +10 -20
- package/dist/cli/checkAndUpdateConfig/checkConfig.d.ts +2 -1
- package/dist/cli/checkAndUpdateConfig/checkConfig.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/checkConfig.js +8 -4
- package/dist/cli/checkAndUpdateConfig/updateConfig.d.ts +2 -1
- package/dist/cli/checkAndUpdateConfig/updateConfig.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/updateConfig.js +6 -3
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.js +19 -1
- package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.js +18 -9
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts +2 -5
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts.map +1 -1
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.js +12 -16
- package/dist/cli/index.js +41 -9
- package/dist/cli/initOpenApiConfig/__tests__/init.test.js +4 -14
- package/dist/cli/initOpenApiConfig/__tests__/initConfig.test.js +3 -1
- package/dist/cli/initOpenApiConfig/init.d.ts +2 -1
- package/dist/cli/initOpenApiConfig/init.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/init.js +3 -3
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts +0 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.js +1 -2
- package/dist/cli/initOpenApiConfig/utils/__tests__/validateSpecFiles.test.js +9 -0
- package/dist/cli/initOpenApiConfig/utils/buildConfig.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/buildConfig.js +0 -4
- package/dist/cli/previewChanges/previewChanges.d.ts +2 -1
- package/dist/cli/previewChanges/previewChanges.d.ts.map +1 -1
- package/dist/cli/previewChanges/previewChanges.js +6 -6
- package/dist/cli/schemas/analyzeUsage.d.ts +13 -0
- package/dist/cli/schemas/analyzeUsage.d.ts.map +1 -0
- package/dist/cli/schemas/analyzeUsage.js +38 -0
- package/dist/cli/schemas/generate.d.ts +7 -0
- package/dist/cli/schemas/generate.d.ts.map +1 -1
- package/dist/cli/schemas/generate.js +4 -0
- package/dist/cli/schemas/index.d.ts +2 -2
- package/dist/cli/schemas/index.d.ts.map +1 -1
- package/dist/cli/schemas/index.js +1 -1
- package/dist/cli/schemas/init.d.ts +0 -1
- package/dist/cli/schemas/init.d.ts.map +1 -1
- package/dist/cli/schemas/init.js +0 -1
- package/dist/cli/types.d.ts +6 -0
- package/dist/cli/types.d.ts.map +1 -0
- package/dist/cli/types.js +2 -0
- package/dist/common/Consts.d.ts +1 -0
- package/dist/common/Consts.d.ts.map +1 -1
- package/dist/common/Consts.js +6 -2
- package/dist/common/Logger.js +2 -2
- package/dist/common/LoggerMessages.d.ts +59 -12
- package/dist/common/LoggerMessages.d.ts.map +1 -1
- package/dist/common/LoggerMessages.js +62 -15
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts +0 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts +7 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.js +5 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts +14 -11
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.d.ts +0 -2
- package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.js +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.js +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.js +0 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts +0 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +0 -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 +8 -9
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.js +1 -1
- package/dist/common/utils/__tests__/convertArrayToObject.test.js +0 -3
- package/dist/common/utils/convertArrayToObject.d.ts.map +1 -1
- package/dist/common/utils/convertArrayToObject.js +0 -2
- package/dist/core/OpenApiClient.d.ts +12 -1
- package/dist/core/OpenApiClient.d.ts.map +1 -1
- package/dist/core/OpenApiClient.js +193 -16
- package/dist/core/WriteClient.d.ts +12 -3
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +25 -5
- package/dist/core/plugins/getBuiltinPlugins.d.ts.map +1 -1
- package/dist/core/plugins/loadGeneratorPlugins.d.ts.map +1 -1
- package/dist/core/plugins/loadGeneratorPlugins.js +1 -1
- package/dist/core/types/shared/Client.model.d.ts +1 -1
- package/dist/core/types/shared/Client.model.d.ts.map +1 -1
- package/dist/core/types/shared/Model.model.d.ts +1 -1
- package/dist/core/types/shared/Model.model.d.ts.map +1 -1
- package/dist/core/utils/__tests__/prepareDtoModels.test.js +95 -0
- package/dist/core/utils/__tests__/writeClientServices.test.js +0 -1
- package/dist/core/utils/loadDiffReport.d.ts.map +1 -1
- package/dist/core/utils/loadDiffReport.js +5 -4
- package/dist/core/utils/precompileTemplates.js +3 -2
- package/dist/core/utils/prepareDtoModels.d.ts.map +1 -1
- package/dist/core/utils/prepareDtoModels.js +1 -7
- package/dist/core/utils/writeClientCore.d.ts +0 -2
- package/dist/core/utils/writeClientCore.d.ts.map +1 -1
- package/dist/core/utils/writeClientCore.js +19 -18
- package/dist/core/utils/writeClientCoreIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientCoreIndex.js +14 -4
- package/dist/core/utils/writeClientExecutor.d.ts.map +1 -1
- package/dist/core/utils/writeClientExecutor.js +4 -4
- package/dist/core/utils/writeClientFullIndex.js +4 -4
- package/dist/core/utils/writeClientModels.d.ts.map +1 -1
- package/dist/core/utils/writeClientModels.js +10 -10
- package/dist/core/utils/writeClientModelsIndex.d.ts +1 -1
- package/dist/core/utils/writeClientModelsIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientModelsIndex.js +14 -4
- package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.js +7 -7
- 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 +0 -2
- package/dist/core/utils/writeClientServices.d.ts.map +1 -1
- package/dist/core/utils/writeClientServices.js +7 -8
- package/dist/core/utils/writeClientServicesIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientServicesIndex.js +14 -4
- package/dist/core/utils/writeClientSimpleIndex.js +4 -4
- package/dist/templatesCompiled/cli/customRequest.d.ts +2 -6
- package/dist/templatesCompiled/cli/customRequest.d.ts.map +1 -1
- package/dist/templatesCompiled/cli/customRequest.js +8 -28
- package/dist/templatesCompiled/cli/customRequestExecutor.d.ts +0 -3
- package/dist/templatesCompiled/cli/customRequestExecutor.d.ts.map +1 -1
- package/dist/templatesCompiled/cli/customRequestExecutor.js +5 -28
- package/dist/templatesCompiled/client/core/axios/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/axios/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/axios/request.js +2 -22
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts +2 -5
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.js +12 -42
- package/dist/templatesCompiled/client/core/executor/requestExecutor.d.ts +0 -2
- package/dist/templatesCompiled/client/core/executor/requestExecutor.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/requestExecutor.js +3 -11
- package/dist/templatesCompiled/client/core/fetch/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/fetch/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/fetch/request.js +2 -22
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.d.ts +0 -2
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.js +3 -11
- package/dist/templatesCompiled/client/core/node/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/node/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/node/request.js +2 -22
- package/dist/templatesCompiled/client/core/xhr/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/xhr/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/xhr/request.js +2 -22
- package/dist/templatesCompiled/client/exportService.d.ts +9 -11
- package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportService.js +64 -82
- package/dist/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 +4 -3
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { OptionValues } from 'commander';
|
|
2
|
+
import { CLICommandResult } from '../types';
|
|
2
3
|
/**
|
|
3
4
|
* Основная функция для предпросмотра изменений
|
|
4
5
|
*
|
|
5
6
|
* TODO: Добавить проверку опций команды перед выполнением
|
|
6
7
|
*/
|
|
7
|
-
export declare function previewChanges(options: OptionValues): Promise<
|
|
8
|
+
export declare function previewChanges(options: OptionValues): Promise<CLICommandResult>;
|
|
8
9
|
//# sourceMappingURL=previewChanges.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"previewChanges.d.ts","sourceRoot":"","sources":["../../../src/cli/previewChanges/previewChanges.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"previewChanges.d.ts","sourceRoot":"","sources":["../../../src/cli/previewChanges/previewChanges.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAiBzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAoG5C;;;;GAIG;AACH,wBAAsB,cAAc,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAoNrF"}
|
|
@@ -134,7 +134,7 @@ async function previewChanges(options) {
|
|
|
134
134
|
message: LoggerMessages_1.LOGGER_MESSAGES.ERROR.GENERIC(validationResult.errors.join('\n')),
|
|
135
135
|
});
|
|
136
136
|
await Consts_1.APP_LOGGER.shutdownLoggerAsync();
|
|
137
|
-
|
|
137
|
+
return { success: false, error: validationResult.errors.join('\n') };
|
|
138
138
|
}
|
|
139
139
|
const { openapiConfig, generatedDir, previewDir, diffDir } = validationResult.data;
|
|
140
140
|
const resolvedGeneratedDir = (0, pathHelpers_1.resolveHelper)(process.cwd(), generatedDir || '');
|
|
@@ -147,7 +147,7 @@ async function previewChanges(options) {
|
|
|
147
147
|
message: LoggerMessages_1.LOGGER_MESSAGES.PREVIEW.GENERATED_DIR_EMPTY(generatedDir || ''),
|
|
148
148
|
});
|
|
149
149
|
await Consts_1.APP_LOGGER.shutdownLoggerAsync();
|
|
150
|
-
|
|
150
|
+
return { success: false, error: LoggerMessages_1.LOGGER_MESSAGES.PREVIEW.GENERATED_DIR_EMPTY(generatedDir || '') };
|
|
151
151
|
}
|
|
152
152
|
// 2. Загрузка конфигурации
|
|
153
153
|
const configData = (0, loadConfigIfExists_1.loadConfigIfExists)(openapiConfig);
|
|
@@ -157,7 +157,7 @@ async function previewChanges(options) {
|
|
|
157
157
|
message: LoggerMessages_1.LOGGER_MESSAGES.CONFIG.FILE_MISSING,
|
|
158
158
|
});
|
|
159
159
|
await Consts_1.APP_LOGGER.shutdownLoggerAsync();
|
|
160
|
-
|
|
160
|
+
return { success: false, error: LoggerMessages_1.LOGGER_MESSAGES.CONFIG.FILE_MISSING };
|
|
161
161
|
}
|
|
162
162
|
if (Array.isArray(configData)) {
|
|
163
163
|
Consts_1.APP_LOGGER.warn(LoggerMessages_1.LOGGER_MESSAGES.CONFIG.ARRAY_DEPRECATED);
|
|
@@ -176,7 +176,7 @@ async function previewChanges(options) {
|
|
|
176
176
|
message: LoggerMessages_1.LOGGER_MESSAGES.CONFIG.CONVERSION_FAILED,
|
|
177
177
|
});
|
|
178
178
|
await Consts_1.APP_LOGGER.shutdownLoggerAsync();
|
|
179
|
-
|
|
179
|
+
return { success: false, error: LoggerMessages_1.LOGGER_MESSAGES.CONFIG.CONVERSION_FAILED };
|
|
180
180
|
}
|
|
181
181
|
// 3. Подготовка и создание временной директории preview
|
|
182
182
|
await fileSystemHelpers_1.fileSystemHelpers.rmdir(resolvedPreviewDir);
|
|
@@ -295,7 +295,7 @@ async function previewChanges(options) {
|
|
|
295
295
|
}
|
|
296
296
|
await Consts_1.APP_LOGGER.shutdownLoggerAsync();
|
|
297
297
|
if (exitCode !== 0) {
|
|
298
|
-
|
|
298
|
+
return { success: false };
|
|
299
299
|
}
|
|
300
|
-
|
|
300
|
+
return { success: true };
|
|
301
301
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const analyzeUsageOptionsSchema: z.ZodObject<{
|
|
3
|
+
apiRoot: z.ZodDefault<z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>>;
|
|
4
|
+
projectRoot: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
5
|
+
tsconfig: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
6
|
+
reportFile: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
7
|
+
mdReport: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
8
|
+
failOn: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
9
|
+
generatedEntry: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
10
|
+
openapiConfig: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type AnalyzeUsageOptions = z.infer<typeof analyzeUsageOptionsSchema>;
|
|
13
|
+
//# sourceMappingURL=analyzeUsage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"analyzeUsage.d.ts","sourceRoot":"","sources":["../../../src/cli/schemas/analyzeUsage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,eAAO,MAAM,yBAAyB;;;;;;;;;iBA+BhC,CAAC;AAEP,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.analyzeUsageOptionsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const Consts_1 = require("../../common/Consts");
|
|
6
|
+
const base_1 = require("./base");
|
|
7
|
+
const failOnCategorySchema = zod_1.z.enum(['unusedExports', 'unresolvedImports', 'structuralChanges', 'typingIssues']);
|
|
8
|
+
exports.analyzeUsageOptionsSchema = zod_1.z
|
|
9
|
+
.object({
|
|
10
|
+
...base_1.baseCLIOptionsSchema.shape,
|
|
11
|
+
apiRoot: base_1.emptyStringToUndefined.default(Consts_1.DEFAULT_OUTPUT_API_DIR),
|
|
12
|
+
projectRoot: base_1.emptyStringToUndefined,
|
|
13
|
+
tsconfig: base_1.emptyStringToUndefined,
|
|
14
|
+
reportFile: base_1.emptyStringToUndefined,
|
|
15
|
+
mdReport: base_1.emptyStringToUndefined,
|
|
16
|
+
failOn: base_1.emptyStringToUndefined,
|
|
17
|
+
generatedEntry: base_1.emptyStringToUndefined,
|
|
18
|
+
})
|
|
19
|
+
.superRefine((data, ctx) => {
|
|
20
|
+
if (!data.apiRoot) {
|
|
21
|
+
ctx.addIssue({
|
|
22
|
+
code: 'custom',
|
|
23
|
+
message: '"--api-root" is required for analyze-usage command',
|
|
24
|
+
path: ['apiRoot'],
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
if (data.failOn && data.failOn !== 'none') {
|
|
28
|
+
for (const category of data.failOn.split(',').map(item => item.trim()).filter(Boolean)) {
|
|
29
|
+
if (!failOnCategorySchema.safeParse(category).success) {
|
|
30
|
+
ctx.addIssue({
|
|
31
|
+
code: 'custom',
|
|
32
|
+
message: `Unsupported --fail-on category: ${category}`,
|
|
33
|
+
path: ['failOn'],
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
});
|
|
@@ -11,6 +11,13 @@ export declare const generateOptionsSchema: z.ZodObject<{
|
|
|
11
11
|
useProjectPrettier: z.ZodOptional<z.ZodBoolean>;
|
|
12
12
|
useEslintFix: z.ZodOptional<z.ZodBoolean>;
|
|
13
13
|
governanceConfig: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
14
|
+
cache: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
cachePath: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
16
|
+
cacheStrategy: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
content: "content";
|
|
18
|
+
entity: "entity";
|
|
19
|
+
}>>;
|
|
20
|
+
cacheDebug: z.ZodOptional<z.ZodBoolean>;
|
|
14
21
|
openapiConfig: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
15
22
|
}, z.core.$strip>;
|
|
16
23
|
export type GenerateOptions = z.infer<typeof generateOptionsSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../src/cli/schemas/generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["../../../src/cli/schemas/generate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;iBAuD5B,CAAC;AAEP,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -17,6 +17,10 @@ exports.generateOptionsSchema = zod_1.z
|
|
|
17
17
|
useProjectPrettier: zod_1.z.boolean().optional(),
|
|
18
18
|
useEslintFix: zod_1.z.boolean().optional(),
|
|
19
19
|
governanceConfig: base_1.emptyStringToUndefined,
|
|
20
|
+
cache: zod_1.z.boolean().optional(),
|
|
21
|
+
cachePath: base_1.emptyStringToUndefined,
|
|
22
|
+
cacheStrategy: zod_1.z.enum(['content', 'entity']).optional(),
|
|
23
|
+
cacheDebug: zod_1.z.boolean().optional(),
|
|
20
24
|
})
|
|
21
25
|
.superRefine((data, ctx) => {
|
|
22
26
|
const hasInput = !!data.input;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export * from './analyzeDiff';
|
|
2
|
+
export * from './analyzeUsage';
|
|
2
3
|
export * from './base';
|
|
3
4
|
export * from './checkConfig';
|
|
4
5
|
export * from './generate';
|
|
5
6
|
export * from './init';
|
|
6
7
|
export * from './previewChanges';
|
|
7
8
|
export * from './updateConfig';
|
|
8
|
-
export
|
|
9
|
-
export type CLIOptions = import('./analyzeDiff').AnalyzeDiffOptions | import('./generate').GenerateOptions | import('./checkConfig').CheckConfigOptions | import('./updateConfig').UpdateConfigOptions | import('./init').InitOptions | import('./previewChanges').TPreviewChangesOptions | import('./analyzeDiff').AnalyzeDiffOptions;
|
|
9
|
+
export type CLIOptions = import('./analyzeDiff').AnalyzeDiffOptions | import('./generate').GenerateOptions | import('./checkConfig').CheckConfigOptions | import('./updateConfig').UpdateConfigOptions | import('./init').InitOptions | import('./previewChanges').TPreviewChangesOptions | import('./analyzeDiff').AnalyzeDiffOptions | import('./analyzeUsage').AnalyzeUsageOptions;
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/cli/schemas/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAG/B,MAAM,MAAM,UAAU,GAChB,OAAO,eAAe,EAAE,kBAAkB,GAC1C,OAAO,YAAY,EAAE,eAAe,GACpC,OAAO,eAAe,EAAE,kBAAkB,GAC1C,OAAO,gBAAgB,EAAE,mBAAmB,GAC5C,OAAO,QAAQ,EAAE,WAAW,GAC5B,OAAO,kBAAkB,EAAE,sBAAsB,GACjD,OAAO,eAAe,EAAE,kBAAkB,GAC1C,OAAO,gBAAgB,EAAE,mBAAmB,CAAC"}
|
|
@@ -15,10 +15,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./analyzeDiff"), exports);
|
|
18
|
+
__exportStar(require("./analyzeUsage"), exports);
|
|
18
19
|
__exportStar(require("./base"), exports);
|
|
19
20
|
__exportStar(require("./checkConfig"), exports);
|
|
20
21
|
__exportStar(require("./generate"), exports);
|
|
21
22
|
__exportStar(require("./init"), exports);
|
|
22
23
|
__exportStar(require("./previewChanges"), exports);
|
|
23
24
|
__exportStar(require("./updateConfig"), exports);
|
|
24
|
-
__exportStar(require("./analyzeDiff"), exports);
|
|
@@ -4,7 +4,6 @@ export declare const initOptionsSchema: z.ZodObject<{
|
|
|
4
4
|
specsDir: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
5
5
|
request: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodString>>;
|
|
6
6
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
8
7
|
useInteractiveMode: z.ZodOptional<z.ZodBoolean>;
|
|
9
8
|
}, z.core.$strip>;
|
|
10
9
|
export type InitOptions = z.infer<typeof initOptionsSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/schemas/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/schemas/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,iBAAiB;;;;;;iBAK5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
package/dist/cli/schemas/init.js
CHANGED
|
@@ -7,6 +7,5 @@ exports.initOptionsSchema = base_1.baseCLIOptionsSchema.extend({
|
|
|
7
7
|
specsDir: base_1.emptyStringToUndefined,
|
|
8
8
|
request: base_1.emptyStringToUndefined,
|
|
9
9
|
useCancelableRequest: zod_1.z.boolean().optional(),
|
|
10
|
-
useRequestRaw: zod_1.z.boolean().optional(),
|
|
11
10
|
useInteractiveMode: zod_1.z.boolean().optional(),
|
|
12
11
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/cli/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
package/dist/common/Consts.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { Logger } from './Logger';
|
|
|
2
2
|
import { TStrictFlatOptions } from './TRawOptions';
|
|
3
3
|
export declare const DEFAULT_OPENAPI_CONFIG_FILENAME = "openapi.config.json";
|
|
4
4
|
export declare const DEFAULT_ANALYZE_DIFF_REPORT_PATH = "./openapi-diff-report.json";
|
|
5
|
+
export declare const DEFAULT_ANALYZE_USAGE_REPORT_PATH = "./openapi-usage-report.json";
|
|
5
6
|
export declare const COMMON_DEFAULT_OPTIONS_VALUES: TStrictFlatOptions;
|
|
6
7
|
export declare const APP_LOGGER: Logger;
|
|
7
8
|
export declare const DEFAULT_SPECS_DIR = "openapi/";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Consts.d.ts","sourceRoot":"","sources":["../../src/common/Consts.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,eAAO,MAAM,+BAA+B,wBAAwB,CAAC;AACrE,eAAO,MAAM,gCAAgC,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"Consts.d.ts","sourceRoot":"","sources":["../../src/common/Consts.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAEnD,eAAO,MAAM,+BAA+B,wBAAwB,CAAC;AACrE,eAAO,MAAM,gCAAgC,+BAA+B,CAAC;AAC7E,eAAO,MAAM,iCAAiC,gCAAgC,CAAC;AAE/E,eAAO,MAAM,6BAA6B,EAAE,kBAwC3C,CAAC;AAEF,eAAO,MAAM,UAAU,QAIrB,CAAC;AAEH,eAAO,MAAM,iBAAiB,aAAa,CAAC;AAE5C,eAAO,MAAM,2BAA2B,4BAA4B,CAAA;AAEpE,eAAO,MAAM,sBAAsB,gBAAgB,CAAC;AAEpD,eAAO,MAAM,2BAA2B,0CAA0C,CAAC;AAEnF,eAAO,MAAM,wBAAwB,uCAAuC,CAAC"}
|
package/dist/common/Consts.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_DIFF_CHANGES_DIR = exports.DEFAULT_PREVIEW_CHANGES_DIR = exports.DEFAULT_OUTPUT_API_DIR = exports.DEFAULT_CUSTOM_REQUEST_PATH = exports.DEFAULT_SPECS_DIR = exports.APP_LOGGER = exports.COMMON_DEFAULT_OPTIONS_VALUES = exports.DEFAULT_ANALYZE_DIFF_REPORT_PATH = exports.DEFAULT_OPENAPI_CONFIG_FILENAME = void 0;
|
|
3
|
+
exports.DEFAULT_DIFF_CHANGES_DIR = exports.DEFAULT_PREVIEW_CHANGES_DIR = exports.DEFAULT_OUTPUT_API_DIR = exports.DEFAULT_CUSTOM_REQUEST_PATH = exports.DEFAULT_SPECS_DIR = exports.APP_LOGGER = exports.COMMON_DEFAULT_OPTIONS_VALUES = exports.DEFAULT_ANALYZE_USAGE_REPORT_PATH = exports.DEFAULT_ANALYZE_DIFF_REPORT_PATH = exports.DEFAULT_OPENAPI_CONFIG_FILENAME = void 0;
|
|
4
4
|
const EmptySchemaStrategy_enum_1 = require("../core/types/enums/EmptySchemaStrategy.enum");
|
|
5
5
|
const HttpClient_enum_1 = require("../core/types/enums/HttpClient.enum");
|
|
6
6
|
const ModelsMode_enum_1 = require("../core/types/enums/ModelsMode.enum");
|
|
@@ -9,6 +9,7 @@ const Enums_1 = require("./Enums");
|
|
|
9
9
|
const Logger_1 = require("./Logger");
|
|
10
10
|
exports.DEFAULT_OPENAPI_CONFIG_FILENAME = 'openapi.config.json';
|
|
11
11
|
exports.DEFAULT_ANALYZE_DIFF_REPORT_PATH = './openapi-diff-report.json';
|
|
12
|
+
exports.DEFAULT_ANALYZE_USAGE_REPORT_PATH = './openapi-usage-report.json';
|
|
12
13
|
exports.COMMON_DEFAULT_OPTIONS_VALUES = {
|
|
13
14
|
input: '',
|
|
14
15
|
output: '',
|
|
@@ -28,7 +29,6 @@ exports.COMMON_DEFAULT_OPTIONS_VALUES = {
|
|
|
28
29
|
enumPrefix: 'E',
|
|
29
30
|
typePrefix: 'T',
|
|
30
31
|
useCancelableRequest: false,
|
|
31
|
-
useRequestRaw: true,
|
|
32
32
|
logLevel: Enums_1.ELogLevel.ERROR,
|
|
33
33
|
logTarget: Enums_1.ELogOutput.CONSOLE,
|
|
34
34
|
sortByRequired: false,
|
|
@@ -46,6 +46,10 @@ exports.COMMON_DEFAULT_OPTIONS_VALUES = {
|
|
|
46
46
|
useProjectPrettier: false,
|
|
47
47
|
useEslintFix: false,
|
|
48
48
|
governanceConfig: '',
|
|
49
|
+
cache: false,
|
|
50
|
+
cachePath: '.openapi-codegen-cache.json',
|
|
51
|
+
cacheStrategy: 'entity',
|
|
52
|
+
cacheDebug: false,
|
|
49
53
|
};
|
|
50
54
|
exports.APP_LOGGER = new Logger_1.Logger({
|
|
51
55
|
level: Enums_1.ELogLevel.INFO,
|
package/dist/common/Logger.js
CHANGED
|
@@ -84,9 +84,9 @@ class Logger {
|
|
|
84
84
|
const recommendation = LoggerMessages_1.LOGGER_ERROR_RECOMMENDATIONS[code];
|
|
85
85
|
this._logger.error(`${LoggerMessages_1.LOGGER_MESSAGES.ERROR.PREFIX} ${baseMessage}`);
|
|
86
86
|
this._logger.info(LoggerMessages_1.LOGGER_MESSAGES.SEPARATOR);
|
|
87
|
-
this._logger.info(
|
|
87
|
+
this._logger.info(LoggerMessages_1.LOGGER_MESSAGES.LOGGER.NEXT_STEPS(recommendation));
|
|
88
88
|
if (this._currentLevel === Enums_1.ELogLevel.INFO && error) {
|
|
89
|
-
this._logger.warn(
|
|
89
|
+
this._logger.warn(LoggerMessages_1.LOGGER_MESSAGES.ERROR.TECHNICAL_DETAILS(String(error)));
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
warn(message) {
|
|
@@ -26,6 +26,11 @@ export declare const LOGGER_MESSAGES: {
|
|
|
26
26
|
readonly FINISHED_WITH_DURATION: (duration: string) => string;
|
|
27
27
|
readonly DURATION_FOR_FILE: (file: string, duration: string) => string;
|
|
28
28
|
readonly NO_OPTIONS: "No options provided for generation";
|
|
29
|
+
readonly WRITE_STATS: (written: number, unchanged: number) => string;
|
|
30
|
+
readonly CACHE_SHARED_OUTPUT_WARNING: (outputs: string) => string;
|
|
31
|
+
readonly CACHE_HIT: (input: string) => string;
|
|
32
|
+
readonly CACHE_MISS: (input: string) => string;
|
|
33
|
+
readonly STRICT_REPORT_CREATED: (reportPath: string) => string;
|
|
29
34
|
};
|
|
30
35
|
readonly OPENAPI: {
|
|
31
36
|
readonly DEFINING_VERSION: "Defining the version of the openapi specification (2 or 3)";
|
|
@@ -63,6 +68,7 @@ export declare const LOGGER_MESSAGES: {
|
|
|
63
68
|
readonly PREFIX: "Error:";
|
|
64
69
|
readonly GENERIC: (message: string) => string;
|
|
65
70
|
readonly WITH_DETAILS: (message: string, details: string) => string;
|
|
71
|
+
readonly TECHNICAL_DETAILS: (error: string) => string;
|
|
66
72
|
};
|
|
67
73
|
readonly SEPARATOR: "==========================================";
|
|
68
74
|
readonly DIALOG: {
|
|
@@ -90,18 +96,20 @@ export declare const LOGGER_MESSAGES: {
|
|
|
90
96
|
readonly CLEANUP_PREVIEW_DIR: (dir: string) => string;
|
|
91
97
|
readonly CLEANUP_PREVIEW_FAILED: (error: string) => string;
|
|
92
98
|
};
|
|
93
|
-
readonly MIGRATION: {
|
|
94
|
-
readonly OPENAPI_SCHEMA_MIGRATED: "To perform OpenAPI generation, it was necessary to migrate the schema of your data to the current one. To update the configuration in the file, use the command `npm openapi-codegen-cli update-config`";
|
|
95
|
-
};
|
|
96
|
-
readonly FORMATTING: {
|
|
97
|
-
readonly PRETTIER_PROJECT_CONFIG_RESOLVED: (filePath: string) => string;
|
|
98
|
-
readonly PRETTIER_PROJECT_CONFIG_NOT_FOUND: "No project Prettier config found, falling back to built-in options";
|
|
99
|
-
readonly PRETTIER_FORMAT_FAILED: (file: string, error: string) => string;
|
|
100
|
-
readonly ESLINT_NOT_INSTALLED: "ESLint is not installed in this project. Skipping --useEslintFix.";
|
|
101
|
-
readonly ESLINT_FIX_FAILED: (file: string, error: string) => string;
|
|
102
|
-
readonly ESLINT_FIX_APPLIED: (file: string) => string;
|
|
103
|
-
};
|
|
104
99
|
readonly ANALYZE_DIFF: {
|
|
100
|
+
readonly INPUT_REQUIRED: "\"--input\" option is required for analyze-diff command";
|
|
101
|
+
readonly HISTORY_SKIPPED: "History analysis skipped: no base spec provided (use --compare-with or --git)";
|
|
102
|
+
readonly ANALYZING: "\n[openapi-codegen] Analyzing OpenAPI changes...";
|
|
103
|
+
readonly SUMMARY_TITLE: "[openapi-codegen] Analyze-diff summary";
|
|
104
|
+
readonly BASE: (base: string) => string;
|
|
105
|
+
readonly TARGET: (target: string) => string;
|
|
106
|
+
readonly STABILITY_SCORE: (score: number) => string;
|
|
107
|
+
readonly CHANGES: (total: number, added: number, removed: number, changed: number) => string;
|
|
108
|
+
readonly BREAKING_COUNT: (count: number) => string;
|
|
109
|
+
readonly WARNING_COUNT: (count: number) => string;
|
|
110
|
+
readonly IGNORED_COUNT: (count: number) => string;
|
|
111
|
+
readonly REPORT_WRITTEN: (reportPath: string) => string;
|
|
112
|
+
readonly INVALID_IGNORE_PATTERN: (pattern: string, error: string) => string;
|
|
105
113
|
readonly STARTED: (newSpec: string, baseSource: string) => string;
|
|
106
114
|
readonly SKIPPED_NO_BASE: "History analysis skipped: no base spec provided (use --compare-with or --git).";
|
|
107
115
|
readonly VALIDATION_ERROR: (message: string) => string;
|
|
@@ -149,7 +157,6 @@ export declare const LOGGER_MESSAGES: {
|
|
|
149
157
|
readonly CI_FAILURE: "CI mode failed because governance errors were found.";
|
|
150
158
|
readonly IGNORED_CHANGES: (count: number) => string;
|
|
151
159
|
readonly EXECUTION_ERROR: (message: string) => string;
|
|
152
|
-
readonly INVALID_IGNORE_PATTERN: (pattern: string, error: string) => string;
|
|
153
160
|
readonly LEGACY_BASE: (base: string) => string;
|
|
154
161
|
readonly LEGACY_TARGET: (target: string) => string;
|
|
155
162
|
readonly LEGACY_STABILITY_SCORE: (score: number) => string;
|
|
@@ -163,5 +170,45 @@ export declare const LOGGER_MESSAGES: {
|
|
|
163
170
|
readonly LEGACY_WARNINGS: (count: number) => string;
|
|
164
171
|
readonly LEGACY_IGNORED: (count: number) => string;
|
|
165
172
|
};
|
|
173
|
+
readonly DIFF_REPORT: {
|
|
174
|
+
readonly NOT_FOUND: (reportPath: string) => string;
|
|
175
|
+
readonly STALE: (reportPath: string) => string;
|
|
176
|
+
readonly EMPTY: (reportPath: string) => string;
|
|
177
|
+
readonly READ_FAILED: (reportPath: string, message: string) => string;
|
|
178
|
+
};
|
|
179
|
+
readonly TEMPLATES: {
|
|
180
|
+
readonly PRECOMPILE_SUCCESS: "The templates have been successfully precompiled and saved!";
|
|
181
|
+
readonly PRECOMPILE_ERROR: (message: string) => string;
|
|
182
|
+
};
|
|
183
|
+
readonly WRITE_CLIENT: {
|
|
184
|
+
readonly DATA_WRITE_START: (filePath: string) => string;
|
|
185
|
+
readonly FILE_RECORDED: (filePath: string) => string;
|
|
186
|
+
readonly INDEX_DATA_WRITTEN: (filePath: string) => string;
|
|
187
|
+
readonly INDEX_WRITE_COMPLETED: (filePath: string) => string;
|
|
188
|
+
readonly CORE_START: "The recording of the kernel files begins";
|
|
189
|
+
readonly CORE_FINISH: "The writing of the kernel files has been completed successfully";
|
|
190
|
+
readonly MODELS_START: "Recording of model files begins";
|
|
191
|
+
readonly MODELS_FINISH: "Model file recording completed successfully";
|
|
192
|
+
readonly SERVICES_START: "Recording of service files begins";
|
|
193
|
+
readonly SERVICES_FINISH: "Service file recording completed successfully";
|
|
194
|
+
readonly SCHEMAS_START: "The recording of model validation schema files begins.";
|
|
195
|
+
readonly SCHEMAS_FINISH: "The recording of model validation schema files has been completed successfully";
|
|
196
|
+
readonly DIRECTORY_CREATING: (directory: string) => string;
|
|
197
|
+
readonly EXECUTOR_START: (filePath: string) => string;
|
|
198
|
+
};
|
|
199
|
+
readonly LOGGER: {
|
|
200
|
+
readonly NEXT_STEPS: (recommendation: string) => string;
|
|
201
|
+
};
|
|
202
|
+
readonly MIGRATION: {
|
|
203
|
+
readonly OPENAPI_SCHEMA_MIGRATED: "To perform OpenAPI generation, it was necessary to migrate the schema of your data to the current one. To update the configuration in the file, use the command `npm openapi-codegen-cli update-config`";
|
|
204
|
+
};
|
|
205
|
+
readonly FORMATTING: {
|
|
206
|
+
readonly PRETTIER_PROJECT_CONFIG_RESOLVED: (filePath: string) => string;
|
|
207
|
+
readonly PRETTIER_PROJECT_CONFIG_NOT_FOUND: "No project Prettier config found, falling back to built-in options";
|
|
208
|
+
readonly PRETTIER_FORMAT_FAILED: (file: string, error: string) => string;
|
|
209
|
+
readonly ESLINT_NOT_INSTALLED: "ESLint is not installed in this project. Skipping --useEslintFix.";
|
|
210
|
+
readonly ESLINT_FIX_FAILED: (file: string, error: string) => string;
|
|
211
|
+
readonly ESLINT_FIX_APPLIED: (file: string) => string;
|
|
212
|
+
};
|
|
166
213
|
};
|
|
167
214
|
//# sourceMappingURL=LoggerMessages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoggerMessages.d.ts","sourceRoot":"","sources":["../../src/common/LoggerMessages.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;CAWrB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAqBzE,CAAC;AAEF,eAAO,MAAM,eAAe;;kCAGH,MAAM;;oDAEY,MAAM;2CACf,MAAM,YAAY,MAAM
|
|
1
|
+
{"version":3,"file":"LoggerMessages.d.ts","sourceRoot":"","sources":["../../src/common/LoggerMessages.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;CAWrB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,MAAM,OAAO,kBAAkB,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,4BAA4B,EAAE,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAqBzE,CAAC;AAEF,eAAO,MAAM,eAAe;;kCAGH,MAAM;;oDAEY,MAAM;2CACf,MAAM,YAAY,MAAM;;wCAE3B,MAAM,aAAa,MAAM;wDACT,MAAM;oCAG1B,MAAM;qCACL,MAAM;qDACU,MAAM;;;;;;;;;;wCAcnB,MAAM;2CACH,MAAM;;;;sCAIX,MAAM;2CACD,MAAM;4CACL,MAAM;;0CAER,MAAM;;4DAEY,MAAM;;wCAE1B,MAAM;gDACE,MAAM;;gDAIN,MAAM;kDACJ,MAAM;;;;;yCAKf,MAAM;;;;oCAMX,MAAM;yCACD,MAAM,WAAW,MAAM;4CACpB,MAAM;;;;;;;;;0DAeQ,MAAM;;sCAE1B,MAAM;;;+CAKG,MAAM;;;4CAKT,MAAM;2CACP,MAAM;;yCAER,MAAM;wCACP,MAAM;wCACN,MAAM;4CACF,MAAM;;4CAEN,MAAM;iDACD,MAAM;;;;;;;8BAQzB,MAAM;kCACF,MAAM;0CACE,MAAM;kCACd,MAAM,SAAS,MAAM,WAAW,MAAM,WAAW,MAAM;yCAEhD,MAAM;wCACP,MAAM;wCACN,MAAM;8CACA,MAAM;mDACD,MAAM,SAAS,MAAM;oCACpC,MAAM,cAAc,MAAM;;6CAEjB,MAAM;sDACG,MAAM;iDAEX;YAAE,UAAU,EAAE,MAAM,CAAC;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,MAAM,EAAE,MAAM,CAAC;YAAC,UAAU,EAAE,MAAM,CAAC;YAAC,OAAO,CAAC,EAAE,MAAM,CAAA;SAAE;8CAI7F,MAAM;mCAEvB;YACJ,OAAO,EAAE;gBAAE,QAAQ,EAAE,MAAM,CAAC;gBAAC,WAAW,EAAE,MAAM,CAAC;gBAAC,aAAa,EAAE,MAAM,CAAA;aAAE,CAAC;YAC1E,UAAU,EAAE;gBAAE,OAAO,EAAE;oBAAE,MAAM,EAAE,MAAM,CAAC;oBAAC,QAAQ,EAAE,MAAM,CAAC;oBAAC,IAAI,EAAE,MAAM,CAAA;iBAAE,CAAA;aAAE,CAAC;SAC/E,cACW,MAAM;0CAGG;YAAE,cAAc,EAAE;gBAAE,MAAM,EAAE,MAAM,CAAC;gBAAC,MAAM,EAAE,MAAM,CAAC;gBAAC,UAAU,EAAE,MAAM,CAAC;gBAAC,OAAO,EAAE,MAAM,EAAE,CAAA;aAAE,CAAA;SAAE;sCAEjG;YAAE,UAAU,EAAE;gBAAE,OAAO,EAAE;oBAAE,MAAM,EAAE,MAAM,CAAC;oBAAC,QAAQ,EAAE,MAAM,CAAC;oBAAC,IAAI,EAAE,MAAM,CAAA;iBAAE,CAAA;aAAE,CAAA;SAAE;iDAEpE,MAAM;;0CAEb,MAAM;4CACJ,MAAM;qCACb,MAAM;yCACF,MAAM;iDACE,MAAM;yCACd;YAAE,YAAY,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAC;YAAC,OAAO,EAAE,MAAM,CAAA;SAAE;0CAExE,MAAM;0CACN,MAAM;yCACP,MAAM;;;yCAIN,MAAM;qCACV,MAAM;qCACN,MAAM;2CACA,MAAM,WAAW,MAAM;;;;6CAKrB,MAAM;;;8CAIL,MAAM;2CACT,MAAM;gDACD,MAAM;mDACH,MAAM;;;;;;;;;iDASR,MAAM;4CACX,MAAM;;;8CAIJ,MAAM;;;;;;8DAUU,MAAM;;gDAEpB,MAAM,SAAS,MAAM;;2CAE1B,MAAM,SAAS,MAAM;4CACpB,MAAM;;CAE/B,CAAC"}
|
|
@@ -40,6 +40,12 @@ exports.LOGGER_MESSAGES = {
|
|
|
40
40
|
FINISHED_WITH_DURATION: (duration) => `Generation completed in ${duration} sec`,
|
|
41
41
|
DURATION_FOR_FILE: (file, duration) => `Duration for "${file}": ${duration} sec`,
|
|
42
42
|
NO_OPTIONS: 'No options provided for generation',
|
|
43
|
+
WRITE_STATS: (written, unchanged) => `[openapi-codegen] Write stats: written=${written}, unchanged=${unchanged}`,
|
|
44
|
+
CACHE_SHARED_OUTPUT_WARNING: (outputs) => `[openapi-codegen] Cache is disabled and multiple items write to the same output directories:\n${outputs}\n` +
|
|
45
|
+
'This can overwrite previously generated files in the final output. Consider enabling cache via "cache: true" or "--cache".',
|
|
46
|
+
CACHE_HIT: (input) => `[openapi-codegen] Cache hit: ${input}`,
|
|
47
|
+
CACHE_MISS: (input) => `[openapi-codegen] Cache miss: ${input}`,
|
|
48
|
+
STRICT_REPORT_CREATED: (reportPath) => `Strict OpenAPI report created: ${reportPath}`,
|
|
43
49
|
},
|
|
44
50
|
// ========== OpenAPI Specification Messages ==========
|
|
45
51
|
OPENAPI: {
|
|
@@ -81,6 +87,7 @@ exports.LOGGER_MESSAGES = {
|
|
|
81
87
|
PREFIX: 'Error:',
|
|
82
88
|
GENERIC: (message) => message,
|
|
83
89
|
WITH_DETAILS: (message, details) => `${message}: ${details}`,
|
|
90
|
+
TECHNICAL_DETAILS: (error) => `Technical details: ${error}`,
|
|
84
91
|
},
|
|
85
92
|
// ========== Separator ==========
|
|
86
93
|
SEPARATOR: '==========================================',
|
|
@@ -113,21 +120,20 @@ exports.LOGGER_MESSAGES = {
|
|
|
113
120
|
CLEANUP_PREVIEW_DIR: (dir) => `Cleaning up preview directory: ${dir}`,
|
|
114
121
|
CLEANUP_PREVIEW_FAILED: (error) => `Failed to cleanup preview directory: ${error}`,
|
|
115
122
|
},
|
|
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
123
|
ANALYZE_DIFF: {
|
|
124
|
+
INPUT_REQUIRED: '"--input" option is required for analyze-diff command',
|
|
125
|
+
HISTORY_SKIPPED: 'History analysis skipped: no base spec provided (use --compare-with or --git)',
|
|
126
|
+
ANALYZING: '\n[openapi-codegen] Analyzing OpenAPI changes...',
|
|
127
|
+
SUMMARY_TITLE: '[openapi-codegen] Analyze-diff summary',
|
|
128
|
+
BASE: (base) => `Base: ${base}`,
|
|
129
|
+
TARGET: (target) => `Target: ${target}`,
|
|
130
|
+
STABILITY_SCORE: (score) => `Stability score: ${score}%`,
|
|
131
|
+
CHANGES: (total, added, removed, changed) => `Changes: total=${total}, added=${added}, removed=${removed}, changed=${changed}`,
|
|
132
|
+
BREAKING_COUNT: (count) => `[openapi-codegen] BREAKING: ${count} item(s)`,
|
|
133
|
+
WARNING_COUNT: (count) => `[openapi-codegen] WARNINGS: ${count} item(s)`,
|
|
134
|
+
IGNORED_COUNT: (count) => `[openapi-codegen] IGNORED: ${count} item(s) by config rules`,
|
|
135
|
+
REPORT_WRITTEN: (reportPath) => `[openapi-codegen] Report written to: ${reportPath}`,
|
|
136
|
+
INVALID_IGNORE_PATTERN: (pattern, error) => `[openapi-codegen] Invalid ignore pattern: ${pattern} — ${error}`,
|
|
131
137
|
STARTED: (newSpec, baseSource) => `Starting analyze-diff: input=${newSpec}, base=${baseSource}`,
|
|
132
138
|
SKIPPED_NO_BASE: 'History analysis skipped: no base spec provided (use --compare-with or --git).',
|
|
133
139
|
VALIDATION_ERROR: (message) => `Analyze-diff options validation failed: ${message}`,
|
|
@@ -144,7 +150,6 @@ exports.LOGGER_MESSAGES = {
|
|
|
144
150
|
CI_FAILURE: 'CI mode failed because governance errors were found.',
|
|
145
151
|
IGNORED_CHANGES: (count) => `[openapi-codegen] IGNORED: ${count} semantic change(s) filtered by analyze.ignore`,
|
|
146
152
|
EXECUTION_ERROR: (message) => `Analyze-diff execution failed: ${message}`,
|
|
147
|
-
INVALID_IGNORE_PATTERN: (pattern, error) => `[openapi-codegen] Invalid ignore pattern: ${pattern} — ${error}`,
|
|
148
153
|
LEGACY_BASE: (base) => `Base: ${base}`,
|
|
149
154
|
LEGACY_TARGET: (target) => `Target: ${target}`,
|
|
150
155
|
LEGACY_STABILITY_SCORE: (score) => `Stability score: ${score}%`,
|
|
@@ -153,4 +158,46 @@ exports.LOGGER_MESSAGES = {
|
|
|
153
158
|
LEGACY_WARNINGS: (count) => `[openapi-codegen] WARNINGS: ${count} item(s)`,
|
|
154
159
|
LEGACY_IGNORED: (count) => `[openapi-codegen] IGNORED: ${count} item(s) by config rules`,
|
|
155
160
|
},
|
|
161
|
+
DIFF_REPORT: {
|
|
162
|
+
NOT_FOUND: (reportPath) => `[openapi-codegen] Diff report not found at "${reportPath}". Skipping history annotations.`,
|
|
163
|
+
STALE: (reportPath) => `[openapi-codegen] Diff report "${reportPath}" is older than the input spec. Skipping history annotations.`,
|
|
164
|
+
EMPTY: (reportPath) => `[openapi-codegen] Diff report "${reportPath}" has no entries. Skipping history annotations.`,
|
|
165
|
+
READ_FAILED: (reportPath, message) => `[openapi-codegen] Failed to read diff report "${reportPath}": ${message}`,
|
|
166
|
+
},
|
|
167
|
+
TEMPLATES: {
|
|
168
|
+
PRECOMPILE_SUCCESS: 'The templates have been successfully precompiled and saved!',
|
|
169
|
+
PRECOMPILE_ERROR: (message) => `Error during pre-compilation of templates: ${message}`,
|
|
170
|
+
},
|
|
171
|
+
WRITE_CLIENT: {
|
|
172
|
+
DATA_WRITE_START: (filePath) => `The recording of the file data begins: ${filePath}`,
|
|
173
|
+
FILE_RECORDED: (filePath) => `File recording completed: ${filePath}`,
|
|
174
|
+
INDEX_DATA_WRITTEN: (filePath) => `Data has been written to a file: ${filePath}`,
|
|
175
|
+
INDEX_WRITE_COMPLETED: (filePath) => `Writing to the file is completed: ${filePath}`,
|
|
176
|
+
CORE_START: 'The recording of the kernel files begins',
|
|
177
|
+
CORE_FINISH: 'The writing of the kernel files has been completed successfully',
|
|
178
|
+
MODELS_START: 'Recording of model files begins',
|
|
179
|
+
MODELS_FINISH: 'Model file recording completed successfully',
|
|
180
|
+
SERVICES_START: 'Recording of service files begins',
|
|
181
|
+
SERVICES_FINISH: 'Service file recording completed successfully',
|
|
182
|
+
SCHEMAS_START: 'The recording of model validation schema files begins.',
|
|
183
|
+
SCHEMAS_FINISH: 'The recording of model validation schema files has been completed successfully',
|
|
184
|
+
DIRECTORY_CREATING: (directory) => `A directory is being created: ${directory}`,
|
|
185
|
+
EXECUTOR_START: (filePath) => `The recording of the file data begins: ${filePath}`,
|
|
186
|
+
},
|
|
187
|
+
LOGGER: {
|
|
188
|
+
NEXT_STEPS: (recommendation) => `What you can do next: ${recommendation}`,
|
|
189
|
+
},
|
|
190
|
+
// ========== Migration Messages ==========
|
|
191
|
+
MIGRATION: {
|
|
192
|
+
OPENAPI_SCHEMA_MIGRATED: 'To perform OpenAPI generation, it was necessary to migrate the schema of your data to the current one. To update the configuration in the file, use the command `npm openapi-codegen-cli update-config`',
|
|
193
|
+
},
|
|
194
|
+
// ========== Formatting Messages ==========
|
|
195
|
+
FORMATTING: {
|
|
196
|
+
PRETTIER_PROJECT_CONFIG_RESOLVED: (filePath) => `Prettier config resolved from: ${filePath}`,
|
|
197
|
+
PRETTIER_PROJECT_CONFIG_NOT_FOUND: 'No project Prettier config found, falling back to built-in options',
|
|
198
|
+
PRETTIER_FORMAT_FAILED: (file, error) => `Prettier formatting failed for "${file}": ${error}`,
|
|
199
|
+
ESLINT_NOT_INSTALLED: 'ESLint is not installed in this project. Skipping --useEslintFix.',
|
|
200
|
+
ESLINT_FIX_FAILED: (file, error) => `ESLint fix failed for "${file}": ${error}`,
|
|
201
|
+
ESLINT_FIX_APPLIED: (file) => `ESLint fix applied: ${file}`,
|
|
202
|
+
},
|
|
156
203
|
};
|
|
@@ -8,7 +8,6 @@ export declare const unifiedOptionsShape: z.ZodObject<{
|
|
|
8
8
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
12
11
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
12
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
14
13
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedBase.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.ts"],"names":[],"mappings":"AAAA,OAAO,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
|
|
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"}
|
|
@@ -3,7 +3,6 @@ export declare const unifiedOptionsSchemaV1: z.ZodObject<{
|
|
|
3
3
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
4
4
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
5
5
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
7
6
|
request: z.ZodOptional<z.ZodString>;
|
|
8
7
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
9
8
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -26,7 +25,6 @@ export declare const unifiedOptionsSchemaV1: z.ZodObject<{
|
|
|
26
25
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
27
26
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
28
27
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
30
28
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
29
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
32
30
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedOptionsSchemaV1.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAOtB,eAAO,MAAM,sBAAsB
|
|
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"}
|
|
@@ -7,7 +7,6 @@ export declare const unifiedOptionsSchemaV2: z.ZodObject<{
|
|
|
7
7
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
11
10
|
request: z.ZodOptional<z.ZodString>;
|
|
12
11
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
13
12
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -27,7 +26,6 @@ export declare const unifiedOptionsSchemaV2: z.ZodObject<{
|
|
|
27
26
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
28
27
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
29
28
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
31
29
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
30
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
33
31
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedOptionsSchemaV2.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,eAAO,MAAM,sBAAsB
|
|
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"}
|
|
@@ -9,7 +9,6 @@ export declare const unifiedOptionsSchemaV3: z.ZodObject<{
|
|
|
9
9
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
10
10
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
11
11
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
13
12
|
request: z.ZodOptional<z.ZodString>;
|
|
14
13
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
15
14
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -29,7 +28,6 @@ export declare const unifiedOptionsSchemaV3: z.ZodObject<{
|
|
|
29
28
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
30
29
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
31
30
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
33
31
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
34
32
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
35
33
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedOptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"UnifiedOptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGjC,CAAC"}
|
|
@@ -5,7 +5,6 @@ export declare const unifiedOptionsSchemaV4: z.ZodObject<{
|
|
|
5
5
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
6
6
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
9
8
|
request: z.ZodOptional<z.ZodString>;
|
|
10
9
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
10
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -25,7 +24,6 @@ export declare const unifiedOptionsSchemaV4: z.ZodObject<{
|
|
|
25
24
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
26
25
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
27
26
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
29
27
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
28
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
31
29
|
enumPrefix: z.ZodOptional<z.ZodString>;
|