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 +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
|
|
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"}
|
|
@@ -5,7 +5,6 @@ export declare const unifiedOptionsSchemaV5: z.ZodObject<{
|
|
|
5
5
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
6
6
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
9
8
|
request: z.ZodOptional<z.ZodString>;
|
|
10
9
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
11
10
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -25,7 +24,6 @@ export declare const unifiedOptionsSchemaV5: z.ZodObject<{
|
|
|
25
24
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
26
25
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
27
26
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
29
27
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
28
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
31
29
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -75,6 +73,13 @@ export declare const unifiedOptionsSchemaV5: z.ZodObject<{
|
|
|
75
73
|
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
76
74
|
useProjectPrettier: z.ZodOptional<z.ZodBoolean>;
|
|
77
75
|
useEslintFix: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
cache: z.ZodOptional<z.ZodBoolean>;
|
|
77
|
+
cachePath: z.ZodOptional<z.ZodString>;
|
|
78
|
+
cacheStrategy: z.ZodOptional<z.ZodEnum<{
|
|
79
|
+
content: "content";
|
|
80
|
+
entity: "entity";
|
|
81
|
+
}>>;
|
|
82
|
+
cacheDebug: z.ZodOptional<z.ZodBoolean>;
|
|
78
83
|
strictOpenapi: z.ZodOptional<z.ZodBoolean>;
|
|
79
84
|
reportFile: z.ZodOptional<z.ZodString>;
|
|
80
85
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedOptionsSchemaV5.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAKvB,eAAO,MAAM,sBAAsB
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQjC,CAAC"}
|
|
@@ -8,6 +8,10 @@ exports.unifiedOptionsSchemaV5 = UnifiedOptionsSchemaV4_1.unifiedOptionsSchemaV4
|
|
|
8
8
|
...CommonSchemas_1.strictModeParametersSchema.shape,
|
|
9
9
|
useProjectPrettier: zod_1.z.boolean().optional(),
|
|
10
10
|
useEslintFix: zod_1.z.boolean().optional(),
|
|
11
|
+
cache: zod_1.z.boolean().optional(),
|
|
12
|
+
cachePath: zod_1.z.string().optional(),
|
|
13
|
+
cacheStrategy: zod_1.z.enum(['content', 'entity']).optional(),
|
|
14
|
+
cacheDebug: zod_1.z.boolean().optional(),
|
|
11
15
|
});
|
|
12
16
|
/*
|
|
13
17
|
type TUnifiedV5 = TUnifiedV4 & {
|
|
@@ -16,4 +20,4 @@ type TUnifiedV5 = TUnifiedV4 & {
|
|
|
16
20
|
useProjectPrettier: boolean | undefined;
|
|
17
21
|
useEslintFix: boolean | undefined;
|
|
18
22
|
}
|
|
19
|
-
*/
|
|
23
|
+
*/
|
|
@@ -7,7 +7,6 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
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>;
|
|
@@ -30,7 +29,6 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
30
29
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
31
30
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
32
31
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
34
32
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
35
33
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
36
34
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -58,7 +56,6 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
58
56
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
59
57
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
60
58
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
62
59
|
request: z.ZodOptional<z.ZodString>;
|
|
63
60
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
61
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -78,7 +75,6 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
78
75
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
79
76
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
80
77
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
82
78
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
83
79
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
84
80
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -108,7 +104,6 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
108
104
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
109
105
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
110
106
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
112
107
|
request: z.ZodOptional<z.ZodString>;
|
|
113
108
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
114
109
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -128,7 +123,6 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
128
123
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
129
124
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
130
125
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
132
126
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
133
127
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
134
128
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -154,7 +148,6 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
154
148
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
155
149
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
156
150
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
158
151
|
request: z.ZodOptional<z.ZodString>;
|
|
159
152
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
160
153
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -174,7 +167,6 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
174
167
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
175
168
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
176
169
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
177
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
178
170
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
179
171
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
180
172
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -233,7 +225,6 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
233
225
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
234
226
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
235
227
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
237
228
|
request: z.ZodOptional<z.ZodString>;
|
|
238
229
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
239
230
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -253,7 +244,6 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
253
244
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
254
245
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
255
246
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
256
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
257
247
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
258
248
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
259
249
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -303,6 +293,13 @@ declare const unifiedSchemaDefinitions: readonly [{
|
|
|
303
293
|
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
304
294
|
useProjectPrettier: z.ZodOptional<z.ZodBoolean>;
|
|
305
295
|
useEslintFix: z.ZodOptional<z.ZodBoolean>;
|
|
296
|
+
cache: z.ZodOptional<z.ZodBoolean>;
|
|
297
|
+
cachePath: z.ZodOptional<z.ZodString>;
|
|
298
|
+
cacheStrategy: z.ZodOptional<z.ZodEnum<{
|
|
299
|
+
content: "content";
|
|
300
|
+
entity: "entity";
|
|
301
|
+
}>>;
|
|
302
|
+
cacheDebug: z.ZodOptional<z.ZodBoolean>;
|
|
306
303
|
strictOpenapi: z.ZodOptional<z.ZodBoolean>;
|
|
307
304
|
reportFile: z.ZodOptional<z.ZodString>;
|
|
308
305
|
}, z.core.$strip>;
|
|
@@ -334,7 +331,6 @@ export declare const flatOptionsSchema: z.ZodObject<{
|
|
|
334
331
|
diffReport: z.ZodOptional<z.ZodString>;
|
|
335
332
|
modelsMode: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ModelsMode.enum").ModelsMode>>;
|
|
336
333
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
337
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
338
334
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
339
335
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
340
336
|
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
@@ -367,6 +363,13 @@ export declare const flatOptionsSchema: z.ZodObject<{
|
|
|
367
363
|
}, z.core.$strip>>;
|
|
368
364
|
useProjectPrettier: z.ZodOptional<z.ZodBoolean>;
|
|
369
365
|
useEslintFix: z.ZodOptional<z.ZodBoolean>;
|
|
366
|
+
cache: z.ZodOptional<z.ZodBoolean>;
|
|
367
|
+
cachePath: z.ZodOptional<z.ZodString>;
|
|
368
|
+
cacheStrategy: z.ZodOptional<z.ZodEnum<{
|
|
369
|
+
content: "content";
|
|
370
|
+
entity: "entity";
|
|
371
|
+
}>>;
|
|
372
|
+
cacheDebug: z.ZodOptional<z.ZodBoolean>;
|
|
370
373
|
input: z.ZodString;
|
|
371
374
|
output: z.ZodString;
|
|
372
375
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnifiedVersionedSchemas.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAS3C,KAAK,IAAI,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,IAAI,CAAC,SAAS,SAAS,CAAC,GAAG,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE/F,QAAA,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"UnifiedVersionedSchemas.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAS3C,KAAK,IAAI,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,IAAI,CAAC,SAAS,SAAS,CAAC,GAAG,MAAM,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAE/F,QAAA,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMpB,CAAC;AAEX,KAAK,wBAAwB,GAAG,OAAO,wBAAwB,CAAC;AAChE,KAAK,uBAAuB,GAAG,IAAI,CAAC,wBAAwB,CAAC,CAAC;AAE9D,eAAO,MAAM,uBAAuB,EAAE,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,EAMlE,CAAC;AAIF,eAAO,MAAM,gBAAgB,EAAE,uBAAuB,CAAC,MAAM,CAAgC,CAAC;AAE9F,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG5B,CAAC"}
|
|
@@ -93,12 +93,10 @@ export declare const additionalParametersSchemaV2: z.ZodObject<{
|
|
|
93
93
|
/** Experimental parameters */
|
|
94
94
|
export declare const experimentalParametersSchema: z.ZodObject<{
|
|
95
95
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
97
96
|
}, z.core.$strip>;
|
|
98
97
|
export declare const experimentalParametersSchemaV2: z.ZodObject<{
|
|
99
98
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
100
99
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
101
100
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
103
101
|
}, z.core.$strip>;
|
|
104
102
|
//# sourceMappingURL=CommonSchemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommonSchemas.d.ts","sourceRoot":"","sources":["../../../src/common/VersionedSchema/CommonSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,mBAAmB;AAEnB,eAAO,MAAM,iBAAiB;;;;;;iBAM5B,CAAC;AASH,eAAO,MAAM,wBAAwB;;;;;;;iBAMnC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;iBAMrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAA;AAEF,4BAA4B;AAE5B,eAAO,MAAM,0BAA0B;;;;;;;;;;iBAUrC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;iBAU9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;iBAEvC,CAAC;AAEH,8BAA8B;AAE9B,eAAO,MAAM,4BAA4B
|
|
1
|
+
{"version":3,"file":"CommonSchemas.d.ts","sourceRoot":"","sources":["../../../src/common/VersionedSchema/CommonSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,mBAAmB;AAEnB,eAAO,MAAM,iBAAiB;;;;;;iBAM5B,CAAC;AASH,eAAO,MAAM,wBAAwB;;;;;;;iBAMnC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;iBAMrC,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAA;AAEF,4BAA4B;AAE5B,eAAO,MAAM,0BAA0B;;;;;;;;;;iBAUrC,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;iBAI7B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;iBAU9B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;iBAEvC,CAAC;AAEH,8BAA8B;AAE9B,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;iBAIzC,CAAC"}
|
|
@@ -85,7 +85,6 @@ exports.additionalParametersSchemaV2 = exports.additionalParametersSchema.omit({
|
|
|
85
85
|
/** Experimental parameters */
|
|
86
86
|
exports.experimentalParametersSchema = zod_1.z.object({
|
|
87
87
|
useCancelableRequest: zod_1.z.boolean().optional(),
|
|
88
|
-
useRequestRaw: zod_1.z.boolean().optional(),
|
|
89
88
|
});
|
|
90
89
|
exports.experimentalParametersSchemaV2 = zod_1.z.object({
|
|
91
90
|
...exports.experimentalParametersSchema.shape,
|
package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOptionsMigrationPlan.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"MultiOptionsMigrationPlan.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EA4BpG,CAAC"}
|
|
@@ -13,7 +13,6 @@ exports.multiOptionsMigrationPlan = [
|
|
|
13
13
|
}), 'Renames client field to httpClient'),
|
|
14
14
|
(0, createDefaultFieldsMigration_1.createDefaultFieldsMigration)('v2', 'v3', {
|
|
15
15
|
useCancelableRequest: false,
|
|
16
|
-
useRequestRaw: true,
|
|
17
16
|
}),
|
|
18
17
|
(0, createFieldTransformationMigration_1.createFieldTransformationMigration)('v3', 'v4', ({ items, input, output, outputCore, outputServices, outputModels, outputSchemas, ...otherProps }) => ({
|
|
19
18
|
...otherProps,
|
|
@@ -4,7 +4,6 @@ import { z } from 'zod';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const multiOptionsSchemaV3: z.ZodObject<{
|
|
6
6
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
8
7
|
input: z.ZodString;
|
|
9
8
|
output: z.ZodString;
|
|
10
9
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB;;GAEG;AACH,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"MultiOptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG/B,CAAC"}
|
|
@@ -11,7 +11,6 @@ export declare const multiOptionsSchemaV4: z.ZodObject<{
|
|
|
11
11
|
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
12
12
|
}, z.core.$strip>>;
|
|
13
13
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
15
14
|
clean: z.ZodOptional<z.ZodBoolean>;
|
|
16
15
|
request: z.ZodOptional<z.ZodString>;
|
|
17
16
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOptionsSchemaV4.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAW3C,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"MultiOptionsSchemaV4.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAW3C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM/B,CAAC"}
|
|
@@ -3,7 +3,6 @@ export declare const multiOptionsSchemaV5: 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>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOptionsSchemaV5.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AActB,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"MultiOptionsSchemaV5.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AActB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;iBAK/B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsMigrationPlans.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"OptionsMigrationPlans.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAI/C;;GAEG;AACH,eAAO,MAAM,qBAAqB,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAgBhG,CAAC"}
|
|
@@ -10,7 +10,6 @@ exports.optionsMigrationPlans = [
|
|
|
10
10
|
(0, createFieldTransformationMigration_1.createFieldTransformationMigration)('v1', 'v2', ({ client, ...otherProps }) => ({ ...otherProps, httpClient: client }), 'Renames client field to httpClient'),
|
|
11
11
|
(0, createDefaultFieldsMigration_1.createDefaultFieldsMigration)('v2', 'v3', {
|
|
12
12
|
useCancelableRequest: false,
|
|
13
|
-
useRequestRaw: true,
|
|
14
13
|
}),
|
|
15
14
|
(0, createDefaultFieldsMigration_1.createDefaultFieldsMigration)('v3', 'v4', {
|
|
16
15
|
excludeCoreServiceFiles: false,
|
|
@@ -4,7 +4,6 @@ import { z } from 'zod';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const optionsSchemaV3: z.ZodObject<{
|
|
6
6
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
8
7
|
input: z.ZodString;
|
|
9
8
|
output: z.ZodString;
|
|
10
9
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;GAEG;AACH,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"OptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;iBAG1B,CAAC"}
|
|
@@ -6,7 +6,6 @@ export declare const optionsSchemaV4: z.ZodObject<{
|
|
|
6
6
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
7
7
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
8
8
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
-
useRequestRaw: z.ZodOptional<z.ZodBoolean>;
|
|
10
9
|
request: z.ZodOptional<z.ZodString>;
|
|
11
10
|
plugins: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
12
11
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsSchemaV4.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,eAAO,MAAM,eAAe
|
|
1
|
+
{"version":3,"file":"OptionsSchemaV4.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;iBAO1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compatibilityCases.d.ts","sourceRoot":"","sources":["../../../../../src/common/VersionedSchema/Utils/__mocks__/compatibilityCases.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,iBAAiB,GAAG;IACrB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,kBAAkB,EAAE,CAAC;CAChC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"compatibilityCases.d.ts","sourceRoot":"","sources":["../../../../../src/common/VersionedSchema/Utils/__mocks__/compatibilityCases.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEtD,KAAK,iBAAiB,GAAG;IACrB,IAAI,EAAE,oBAAoB,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,kBAAkB,EAAE,CAAC;CAChC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,EAAE,iBAAiB,EAuHjD,CAAC"}
|
|
@@ -21,10 +21,7 @@ exports.compatibilityCases = [
|
|
|
21
21
|
type: Enums_1.EVersionedSchemaType.OPTIONS,
|
|
22
22
|
from: 'v2',
|
|
23
23
|
to: 'v3',
|
|
24
|
-
expect: [
|
|
25
|
-
{ type: 'added', key: 'useCancelableRequest' },
|
|
26
|
-
{ type: 'added', key: 'useRequestRaw' },
|
|
27
|
-
],
|
|
24
|
+
expect: [{ type: 'added', key: 'useCancelableRequest' }],
|
|
28
25
|
},
|
|
29
26
|
{
|
|
30
27
|
type: Enums_1.EVersionedSchemaType.OPTIONS,
|
|
@@ -55,10 +52,7 @@ exports.compatibilityCases = [
|
|
|
55
52
|
type: Enums_1.EVersionedSchemaType.MULTI_OPTIONS,
|
|
56
53
|
from: 'v2',
|
|
57
54
|
to: 'v3',
|
|
58
|
-
expect: [
|
|
59
|
-
{ type: 'added', key: 'useCancelableRequest' },
|
|
60
|
-
{ type: 'added', key: 'useRequestRaw' },
|
|
61
|
-
],
|
|
55
|
+
expect: [{ type: 'added', key: 'useCancelableRequest' }],
|
|
62
56
|
},
|
|
63
57
|
{
|
|
64
58
|
type: Enums_1.EVersionedSchemaType.MULTI_OPTIONS,
|
|
@@ -124,7 +118,12 @@ exports.compatibilityCases = [
|
|
|
124
118
|
from: 'v4',
|
|
125
119
|
to: 'v5',
|
|
126
120
|
expect: [
|
|
127
|
-
{ type: 'added', key: 'useProjectPrettier' },
|
|
121
|
+
{ type: 'added', key: 'useProjectPrettier' },
|
|
122
|
+
{ type: 'added', key: 'useEslintFix' },
|
|
123
|
+
{ type: 'added', key: 'cache' },
|
|
124
|
+
{ type: 'added', key: 'cachePath' },
|
|
125
|
+
{ type: 'added', key: 'cacheStrategy' },
|
|
126
|
+
{ type: 'added', key: 'cacheDebug' },
|
|
128
127
|
],
|
|
129
128
|
},
|
|
130
129
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrateDataToLatestSchemaVersion.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"migrateDataToLatestSchemaVersion.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAG7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AASpF;;GAEG;AACH,KAAK,oBAAoB,GAAG;IACxB,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC9B,cAAc,EAAE,mBAAmB,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,EAAE,CAAC;IAChF,gBAAgB,EAAE,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC;IAClD,aAAa,EAAE,cAAc,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,KAAK,qBAAqB,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAC3B,cAAc,EAAE,kBAAkB,CAAC;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,EAAE,oBAAoB,CAAC;CACpC,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gCAAgC,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAE,gBAAgB,EAAE,aAAa,EAAE,EAAE,oBAAoB,GAAG,qBAAqB,GAAG,IAAI,CAkFlK"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.migrateDataToLatestSchemaVersion = migrateDataToLatestSchemaVersion;
|
|
4
4
|
const Consts_1 = require("../../Consts");
|
|
5
|
-
const LoggerMessages_1 = require("../../LoggerMessages");
|
|
6
5
|
const Enums_1 = require("../../Enums");
|
|
6
|
+
const LoggerMessages_1 = require("../../LoggerMessages");
|
|
7
7
|
const validateZodOptions_1 = require("../../Validation/validateZodOptions");
|
|
8
8
|
const determineBestMatchingSchemaVersion_1 = require("./determineBestMatchingSchemaVersion");
|
|
9
9
|
const generateKeyMappingForInvalidKeys_1 = require("./generateKeyMappingForInvalidKeys");
|
|
@@ -16,7 +16,6 @@ const convertArrayToObject_1 = require("../convertArrayToObject");
|
|
|
16
16
|
customExecutorPath: undefined,
|
|
17
17
|
useOptions: undefined,
|
|
18
18
|
useCancelableRequest: undefined,
|
|
19
|
-
useRequestRaw: undefined,
|
|
20
19
|
});
|
|
21
20
|
});
|
|
22
21
|
(0, node_test_1.test)('returns default shape for empty array', () => {
|
|
@@ -28,7 +27,6 @@ const convertArrayToObject_1 = require("../convertArrayToObject");
|
|
|
28
27
|
customExecutorPath: undefined,
|
|
29
28
|
useOptions: undefined,
|
|
30
29
|
useCancelableRequest: undefined,
|
|
31
|
-
useRequestRaw: undefined,
|
|
32
30
|
});
|
|
33
31
|
});
|
|
34
32
|
(0, node_test_1.test)('passes through object config unchanged', () => {
|
|
@@ -66,7 +64,6 @@ const convertArrayToObject_1 = require("../convertArrayToObject");
|
|
|
66
64
|
enumPrefix: undefined,
|
|
67
65
|
typePrefix: undefined,
|
|
68
66
|
useCancelableRequest: undefined,
|
|
69
|
-
useRequestRaw: undefined,
|
|
70
67
|
logLevel: undefined,
|
|
71
68
|
logTarget: undefined,
|
|
72
69
|
sortByRequired: undefined,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertArrayToObject.d.ts","sourceRoot":"","sources":["../../../src/common/utils/convertArrayToObject.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"convertArrayToObject.d.ts","sourceRoot":"","sources":["../../../src/common/utils/convertArrayToObject.ts"],"names":[],"mappings":"AAAA,wBAAgB,oBAAoB,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAgHxH"}
|
|
@@ -9,7 +9,6 @@ function convertArrayToObject(optionsArr) {
|
|
|
9
9
|
customExecutorPath: undefined,
|
|
10
10
|
useOptions: undefined,
|
|
11
11
|
useCancelableRequest: undefined,
|
|
12
|
-
useRequestRaw: undefined,
|
|
13
12
|
};
|
|
14
13
|
if (!optionsArr) {
|
|
15
14
|
return emptyResult;
|
|
@@ -28,7 +27,6 @@ function convertArrayToObject(optionsArr) {
|
|
|
28
27
|
'enumPrefix',
|
|
29
28
|
'typePrefix',
|
|
30
29
|
'useCancelableRequest',
|
|
31
|
-
'useRequestRaw',
|
|
32
30
|
'logLevel',
|
|
33
31
|
'logTarget',
|
|
34
32
|
'sortByRequired',
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import { TRawOptions } from '../common/TRawOptions';
|
|
2
2
|
import { WriteClient } from './WriteClient';
|
|
3
3
|
export declare class OpenApiClient {
|
|
4
|
+
private static readonly CACHE_FINGERPRINT_VERSION;
|
|
5
|
+
private static readonly DEFAULT_CACHE_FILENAME;
|
|
4
6
|
private _writeClient;
|
|
5
7
|
get writeClient(): WriteClient;
|
|
6
8
|
private normalizeOptions;
|
|
7
9
|
private addDefaultValues;
|
|
8
|
-
private
|
|
10
|
+
private getOutputRoots;
|
|
11
|
+
private cleanupStaleOutputs;
|
|
12
|
+
private removeStaleFilesInDirectory;
|
|
9
13
|
private generateCodeForItems;
|
|
14
|
+
private getUniqueResolvedOutputs;
|
|
15
|
+
private resolveOutputRoot;
|
|
16
|
+
private resolveCachePathForOutput;
|
|
17
|
+
private warnOnSharedOutputsWithoutCache;
|
|
10
18
|
private generateSingle;
|
|
19
|
+
private getCacheKey;
|
|
20
|
+
private getCacheFingerprint;
|
|
21
|
+
private filesExist;
|
|
11
22
|
private loadDiffReportIfNeeded;
|
|
12
23
|
private applyDiffReportIfNeeded;
|
|
13
24
|
generate(rawOptions: TRawOptions): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenApiClient.d.ts","sourceRoot":"","sources":["../../src/core/OpenApiClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OpenApiClient.d.ts","sourceRoot":"","sources":["../../src/core/OpenApiClient.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,WAAW,EAAsB,MAAM,uBAAuB,CAAC;AAyBtF,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAE5C,qBAAa,aAAa;IACtB,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,yBAAyB,CAAK;IACtD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,sBAAsB,CAAiC;IAC/E,OAAO,CAAC,YAAY,CAA4B;IAEhD,IAAW,WAAW,gBAKrB;IAED,OAAO,CAAC,gBAAgB;IAgFxB,OAAO,CAAC,gBAAgB;IA4CxB,OAAO,CAAC,cAAc;YAaR,mBAAmB;YASnB,2BAA2B;YA+B3B,oBAAoB;IA2DlC,OAAO,CAAC,wBAAwB;IAIhC,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,yBAAyB;IAOjC,OAAO,CAAC,+BAA+B;YAiBzB,cAAc;IA0L5B,OAAO,CAAC,WAAW;YAaL,mBAAmB;YAiCnB,UAAU;YAUV,sBAAsB;IASpC,OAAO,CAAC,uBAAuB;IAczB,QAAQ,CAAC,UAAU,EAAE,WAAW;CAWzC"}
|