ts-openapi-codegen 2.0.0-beta.9 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -18
- package/README.rus.md +88 -21
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.js +5 -0
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts.map +1 -1
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.js +20 -8
- package/dist/cli/index.js +5 -3
- package/dist/cli/previewChanges/previewChanges.d.ts.map +1 -1
- package/dist/cli/previewChanges/previewChanges.js +116 -32
- package/dist/cli/previewChanges/utils/updateOutputPaths.d.ts.map +1 -1
- package/dist/cli/previewChanges/utils/updateOutputPaths.js +6 -0
- package/dist/common/Consts.d.ts.map +1 -1
- package/dist/common/Consts.js +4 -1
- package/dist/common/LoggerMessages.d.ts +1 -0
- package/dist/common/LoggerMessages.d.ts.map +1 -1
- package/dist/common/LoggerMessages.js +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.js +14 -4
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts +2 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts +2 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts +2 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts +42 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.js +38 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts +155 -28
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.js +13 -17
- package/dist/common/VersionedSchema/CommonSchemas.d.ts +12 -4
- package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.js +15 -7
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts +2 -2
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +2 -2
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts +2 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts +2 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +2 -2
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.js +19 -0
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.d.ts +2 -0
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.js +185 -0
- package/dist/common/VersionedSchema/Utils/__tests__/compareShapes.test.js +20 -3
- package/dist/common/VersionedSchema/Utils/__tests__/migrateDataToLatestSchemaVersion.test.js +19 -1
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts +4 -0
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.js +68 -23
- package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.d.ts +1 -1
- package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.js +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts +10 -0
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.js +33 -15
- package/dist/common/utils/__tests__/convertArrayToObject.test.js +64 -169
- package/dist/common/utils/convertArrayToObject.d.ts.map +1 -1
- package/dist/common/utils/convertArrayToObject.js +51 -14
- package/dist/core/OpenApiClient.d.ts.map +1 -1
- package/dist/core/OpenApiClient.js +12 -1
- package/dist/core/WriteClient.d.ts +8 -1
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +48 -7
- package/dist/core/__tests__/WriteClient.test.js +2 -0
- package/dist/core/api/v2/parser/getType.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getType.js +2 -1
- package/dist/core/api/v3/parser/getType.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getType.js +2 -1
- package/dist/core/types/base/Templates.model.d.ts +1 -1
- package/dist/core/types/base/Templates.model.d.ts.map +1 -1
- package/dist/core/types/enums/EmptySchemaStrategy.enum.d.ts +6 -0
- package/dist/core/types/enums/EmptySchemaStrategy.enum.d.ts.map +1 -0
- package/dist/core/types/enums/EmptySchemaStrategy.enum.js +9 -0
- package/dist/core/utils/__tests__/getRelativeModelPath.test.d.ts +2 -0
- package/dist/core/utils/__tests__/getRelativeModelPath.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/getRelativeModelPath.test.js +27 -0
- package/dist/core/utils/__tests__/modelHelpers.test.d.ts +2 -0
- package/dist/core/utils/__tests__/modelHelpers.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/modelHelpers.test.js +151 -0
- package/dist/core/utils/__tests__/postProcessModelImports.test.d.ts +2 -0
- package/dist/core/utils/__tests__/postProcessModelImports.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/postProcessModelImports.test.js +67 -0
- package/dist/core/utils/__tests__/postProcessServiceImports.test.d.ts +2 -0
- package/dist/core/utils/__tests__/postProcessServiceImports.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/postProcessServiceImports.test.js +26 -0
- package/dist/core/utils/__tests__/resolveRefPath.test.d.ts +2 -0
- package/dist/core/utils/__tests__/resolveRefPath.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/resolveRefPath.test.js +22 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.d.ts +2 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.js +121 -0
- package/dist/core/utils/__tests__/writeClientExecutor.test.d.ts +2 -0
- package/dist/core/utils/__tests__/writeClientExecutor.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/writeClientExecutor.test.js +20 -0
- package/dist/core/utils/__tests__/writeClientSchemas.test.js +2 -0
- package/dist/core/utils/getOpenApiSpec.d.ts.map +1 -1
- package/dist/core/utils/getOpenApiSpec.js +14 -1
- package/dist/core/utils/getRelativeModelPath.d.ts +9 -0
- package/dist/core/utils/getRelativeModelPath.d.ts.map +1 -0
- package/dist/core/utils/getRelativeModelPath.js +37 -0
- package/dist/core/utils/modelHelpers.d.ts.map +1 -1
- package/dist/core/utils/modelHelpers.js +37 -3
- package/dist/core/utils/postProcessModelImports.d.ts.map +1 -1
- package/dist/core/utils/postProcessModelImports.js +14 -1
- package/dist/core/utils/postProcessServiceImports.d.ts.map +1 -1
- package/dist/core/utils/postProcessServiceImports.js +1 -2
- package/dist/core/utils/precompileTemplates.js +1 -0
- package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarHelpers.js +25 -0
- package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarTemplates.js +42 -41
- package/dist/core/utils/resolveRefPath.d.ts.map +1 -1
- package/dist/core/utils/resolveRefPath.js +1 -4
- package/dist/core/utils/writeClientExecutor.d.ts +4 -1
- package/dist/core/utils/writeClientExecutor.d.ts.map +1 -1
- package/dist/core/utils/writeClientExecutor.js +17 -2
- package/dist/core/utils/writeClientSchemas.d.ts +4 -1
- package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.js +11 -2
- package/dist/templatesCompiled/client/core/ApiError.js +1 -1
- package/dist/templatesCompiled/client/core/ApiResult.js +1 -1
- package/dist/templatesCompiled/client/core/axios/request.js +3 -3
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts +2 -0
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.js +13 -8
- package/dist/templatesCompiled/client/core/executor/requestExecutor.js +1 -1
- package/dist/templatesCompiled/client/core/fetch/request.js +3 -3
- package/dist/templatesCompiled/client/core/functions/catchErrors.js +1 -1
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.js +1 -1
- package/dist/templatesCompiled/client/core/node/request.js +3 -3
- package/dist/templatesCompiled/client/core/xhr/request.js +3 -3
- package/dist/templatesCompiled/client/exportClient.d.ts +4 -0
- package/dist/templatesCompiled/client/exportClient.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportClient.js +51 -13
- package/dist/templatesCompiled/client/exportSchema.d.ts +5 -1
- package/dist/templatesCompiled/client/exportSchema.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportSchema.js +37 -7
- package/dist/templatesCompiled/client/exportService.d.ts +2 -0
- package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportService.js +70 -30
- package/dist/templatesCompiled/client/indexFull.d.ts +1 -0
- package/dist/templatesCompiled/client/indexFull.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexFull.js +4 -1
- package/dist/templatesCompiled/client/indexSimple.d.ts +1 -0
- package/dist/templatesCompiled/client/indexSimple.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexSimple.js +4 -1
- package/dist/templatesCompiled/client/joi/exportSchema.js +5 -5
- package/dist/templatesCompiled/client/joi/partials/joiSchema.js +7 -7
- package/dist/templatesCompiled/client/joi/partials/joiSchemaComposition.js +4 -4
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts +5 -3
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.js +39 -12
- package/dist/templatesCompiled/client/jsonschema/exportSchema.js +5 -5
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchema.js +7 -7
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaArray.js +5 -5
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaComposition.js +2 -2
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaDictionary.js +5 -5
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts +3 -1
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.js +45 -15
- package/dist/templatesCompiled/client/yup/exportSchema.js +3 -3
- package/dist/templatesCompiled/client/yup/partials/yupSchema.js +7 -7
- package/dist/templatesCompiled/client/yup/partials/yupSchemaComposition.js +4 -4
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts +5 -3
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.js +39 -12
- package/dist/templatesCompiled/client/zod/exportSchema.js +3 -3
- package/dist/templatesCompiled/client/zod/partials/zodSchema.js +7 -7
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts +5 -6
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.js +14 -28
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts +3 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.js +32 -8
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts +3 -4
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.js +9 -23
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts +4 -2
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.js +18 -7
- package/package.json +2 -2
- package/dist/common/defaultOptions.d.ts +0 -3
- package/dist/common/defaultOptions.d.ts.map +0 -1
- package/dist/common/defaultOptions.js +0 -28
- package/dist/core/utils/advancedDeduplicatePath.d.ts +0 -5
- package/dist/core/utils/advancedDeduplicatePath.d.ts.map +0 -1
- package/dist/core/utils/advancedDeduplicatePath.js +0 -29
|
@@ -1,44 +1,168 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { VersionedSchema } from '../Types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
11
|
-
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
-
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
request: z.ZodOptional<z.ZodString>;
|
|
15
|
-
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
16
|
-
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
17
|
-
typePrefix: z.ZodOptional<z.ZodString>;
|
|
18
|
-
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
-
outputCore: z.ZodOptional<z.ZodString>;
|
|
20
|
-
outputServices: z.ZodOptional<z.ZodString>;
|
|
21
|
-
outputModels: z.ZodOptional<z.ZodString>;
|
|
22
|
-
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
23
|
-
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
24
|
-
input: z.ZodString;
|
|
3
|
+
type Last<T extends readonly unknown[]> = T extends readonly [...infer _, infer L] ? L : never;
|
|
4
|
+
declare const unifiedSchemaDefinitions: readonly [{
|
|
5
|
+
readonly version: "v1";
|
|
6
|
+
readonly base: z.ZodObject<{
|
|
7
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
25
10
|
request: z.ZodOptional<z.ZodString>;
|
|
11
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
12
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
13
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
14
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
19
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
20
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
21
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
22
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
23
|
+
input: z.ZodString;
|
|
24
|
+
request: z.ZodOptional<z.ZodString>;
|
|
25
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
29
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
30
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
31
|
+
output: z.ZodString;
|
|
32
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
33
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
34
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
35
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>>>;
|
|
37
|
+
input: z.ZodOptional<z.ZodString>;
|
|
38
|
+
output: z.ZodOptional<z.ZodString>;
|
|
39
|
+
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
}, {
|
|
42
|
+
readonly version: "v2";
|
|
43
|
+
readonly base: z.ZodObject<{
|
|
44
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
45
|
+
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
46
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
26
48
|
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
27
49
|
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
28
50
|
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
request: z.ZodOptional<z.ZodString>;
|
|
29
52
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
30
53
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
31
54
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
32
|
-
|
|
55
|
+
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
33
56
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
34
57
|
outputServices: z.ZodOptional<z.ZodString>;
|
|
35
58
|
outputModels: z.ZodOptional<z.ZodString>;
|
|
36
59
|
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
60
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
61
|
+
input: z.ZodString;
|
|
62
|
+
request: z.ZodOptional<z.ZodString>;
|
|
63
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
66
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
67
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
68
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
69
|
+
output: z.ZodString;
|
|
70
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
71
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
72
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
73
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>>>;
|
|
75
|
+
input: z.ZodOptional<z.ZodString>;
|
|
76
|
+
output: z.ZodOptional<z.ZodString>;
|
|
77
|
+
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
}, {
|
|
80
|
+
readonly version: "v3";
|
|
81
|
+
readonly base: z.ZodObject<{
|
|
82
|
+
logLevel: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogLevel>>;
|
|
83
|
+
logTarget: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogOutput>>;
|
|
84
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
86
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
88
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
+
request: z.ZodOptional<z.ZodString>;
|
|
92
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
93
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
94
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
95
|
+
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
96
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
97
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
98
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
99
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
100
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
101
|
+
input: z.ZodString;
|
|
102
|
+
request: z.ZodOptional<z.ZodString>;
|
|
103
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
107
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
108
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
109
|
+
output: z.ZodString;
|
|
110
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
111
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
112
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
113
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$strip>>>;
|
|
115
|
+
input: z.ZodOptional<z.ZodString>;
|
|
116
|
+
output: z.ZodOptional<z.ZodString>;
|
|
117
|
+
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
118
|
+
}, z.core.$strip>;
|
|
119
|
+
}, {
|
|
120
|
+
readonly version: "v4";
|
|
121
|
+
readonly base: z.ZodObject<{
|
|
122
|
+
logLevel: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogLevel>>;
|
|
123
|
+
logTarget: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogOutput>>;
|
|
124
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
125
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
126
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
+
request: z.ZodOptional<z.ZodString>;
|
|
128
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
129
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
130
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
131
|
+
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
133
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
134
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
135
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
136
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
137
|
+
input: z.ZodString;
|
|
138
|
+
request: z.ZodOptional<z.ZodString>;
|
|
139
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
140
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
143
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
144
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
145
|
+
output: z.ZodString;
|
|
146
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
147
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
148
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
149
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
150
|
+
}, z.core.$strip>>>;
|
|
151
|
+
input: z.ZodOptional<z.ZodString>;
|
|
152
|
+
output: z.ZodOptional<z.ZodString>;
|
|
153
|
+
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
154
|
+
customExecutorPath: z.ZodOptional<z.ZodString>;
|
|
155
|
+
emptySchemaStrategy: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/EmptySchemaStrategy.enum").EmptySchemaStrategy>>;
|
|
156
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
157
|
+
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
158
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
160
|
+
}, z.core.$strip>;
|
|
161
|
+
}];
|
|
162
|
+
type UnifiedSchemaDefinitions = typeof unifiedSchemaDefinitions;
|
|
163
|
+
type LatestUnifiedDefinition = Last<UnifiedSchemaDefinitions>;
|
|
164
|
+
export declare const unifiedVersionedSchemas: VersionedSchema<z.ZodTypeAny>[];
|
|
165
|
+
export declare const rawOptionsSchema: LatestUnifiedDefinition['base'];
|
|
42
166
|
export declare const flatOptionsSchema: z.ZodObject<{
|
|
43
167
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
44
168
|
outputServices: z.ZodOptional<z.ZodString>;
|
|
@@ -49,6 +173,7 @@ export declare const flatOptionsSchema: z.ZodObject<{
|
|
|
49
173
|
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
50
174
|
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
51
175
|
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
176
|
+
emptySchemaStrategy: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/EmptySchemaStrategy.enum").EmptySchemaStrategy>>;
|
|
52
177
|
request: z.ZodOptional<z.ZodString>;
|
|
53
178
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
54
179
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
@@ -59,7 +184,9 @@ export declare const flatOptionsSchema: z.ZodObject<{
|
|
|
59
184
|
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
60
185
|
logLevel: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogLevel>>;
|
|
61
186
|
logTarget: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogOutput>>;
|
|
187
|
+
customExecutorPath: z.ZodOptional<z.ZodString>;
|
|
62
188
|
input: z.ZodString;
|
|
63
189
|
output: z.ZodString;
|
|
64
190
|
}, z.core.$strip>;
|
|
191
|
+
export {};
|
|
65
192
|
//# sourceMappingURL=UnifiedVersionedSchemas.d.ts.map
|
|
@@ -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;
|
|
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;AAQ3C,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKpB,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"}
|
|
@@ -7,24 +7,20 @@ const buildVersionedSchema_1 = require("../Utils/buildVersionedSchema");
|
|
|
7
7
|
const UnifiedOptionsSchemaV1_1 = require("./UnifiedOptionsSchemaV1");
|
|
8
8
|
const UnifiedOptionsSchemaV2_1 = require("./UnifiedOptionsSchemaV2");
|
|
9
9
|
const UnifiedOptionsSchemaV3_1 = require("./UnifiedOptionsSchemaV3");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
(0, buildVersionedSchema_1.buildVersionedSchema)({
|
|
17
|
-
version: 'v2',
|
|
18
|
-
base: UnifiedOptionsSchemaV2_1.unifiedOptionsSchemaV2,
|
|
19
|
-
type: Enums_1.EVersionedSchemaType.UNIFIED_OPTIONS,
|
|
20
|
-
}),
|
|
21
|
-
(0, buildVersionedSchema_1.buildVersionedSchema)({
|
|
22
|
-
version: 'v3',
|
|
23
|
-
base: UnifiedOptionsSchemaV3_1.unifiedOptionsSchemaV3,
|
|
24
|
-
type: Enums_1.EVersionedSchemaType.UNIFIED_OPTIONS,
|
|
25
|
-
}),
|
|
10
|
+
const UnifiedOptionsSchemaV4_1 = require("./UnifiedOptionsSchemaV4");
|
|
11
|
+
const unifiedSchemaDefinitions = [
|
|
12
|
+
{ version: 'v1', base: UnifiedOptionsSchemaV1_1.unifiedOptionsSchemaV1 },
|
|
13
|
+
{ version: 'v2', base: UnifiedOptionsSchemaV2_1.unifiedOptionsSchemaV2 },
|
|
14
|
+
{ version: 'v3', base: UnifiedOptionsSchemaV3_1.unifiedOptionsSchemaV3 },
|
|
15
|
+
{ version: 'v4', base: UnifiedOptionsSchemaV4_1.unifiedOptionsSchemaV4 },
|
|
26
16
|
];
|
|
27
|
-
exports.
|
|
17
|
+
exports.unifiedVersionedSchemas = unifiedSchemaDefinitions.map(({ version, base }) => (0, buildVersionedSchema_1.buildVersionedSchema)({
|
|
18
|
+
version,
|
|
19
|
+
base,
|
|
20
|
+
type: Enums_1.EVersionedSchemaType.UNIFIED_OPTIONS,
|
|
21
|
+
}));
|
|
22
|
+
const latestUnifiedDefinition = unifiedSchemaDefinitions[unifiedSchemaDefinitions.length - 1];
|
|
23
|
+
exports.rawOptionsSchema = latestUnifiedDefinition.base;
|
|
28
24
|
exports.flatOptionsSchema = exports.rawOptionsSchema.omit({ items: true }).extend({
|
|
29
25
|
input: zod_1.z.string().min(1, 'Input is required'),
|
|
30
26
|
output: zod_1.z.string().min(1, 'Output is required'),
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { EmptySchemaStrategy } from '../../core/types/enums/EmptySchemaStrategy.enum';
|
|
2
3
|
import { ValidationLibrary } from '../../core/types/enums/ValidationLibrary.enum';
|
|
3
4
|
/** Output paths */
|
|
4
5
|
export declare const outputPathsSchema: z.ZodObject<{
|
|
@@ -9,24 +10,31 @@ export declare const outputPathsSchema: z.ZodObject<{
|
|
|
9
10
|
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
10
11
|
}, z.core.$strip>;
|
|
11
12
|
export declare const specialParametersSchemas: z.ZodObject<{
|
|
12
|
-
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
-
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
14
13
|
exportCore: z.ZodOptional<z.ZodBoolean>;
|
|
15
14
|
exportServices: z.ZodOptional<z.ZodBoolean>;
|
|
16
15
|
exportModels: z.ZodOptional<z.ZodBoolean>;
|
|
17
16
|
exportSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
-
}, z.core.$strip>;
|
|
19
|
-
export declare const specialParametersSchemasV2: z.ZodObject<{
|
|
20
17
|
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
21
18
|
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
}, z.core.$strip>;
|
|
20
|
+
export declare const specialParametersSchemasV2: z.ZodObject<{
|
|
22
21
|
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
23
22
|
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
24
25
|
}, z.core.$strip>;
|
|
25
26
|
export declare const specialParametersSchemasV3: z.ZodObject<{
|
|
27
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
validationLibrary: z.ZodOptional<z.ZodEnum<typeof ValidationLibrary>>;
|
|
26
29
|
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
27
30
|
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export declare const specialParametersSchemasV4: z.ZodObject<{
|
|
33
|
+
emptySchemaStrategy: z.ZodOptional<z.ZodEnum<typeof EmptySchemaStrategy>>;
|
|
28
34
|
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
29
35
|
validationLibrary: z.ZodOptional<z.ZodEnum<typeof ValidationLibrary>>;
|
|
36
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
30
38
|
}, z.core.$strip>;
|
|
31
39
|
/** Additional parameters */
|
|
32
40
|
export declare const additionalParametersSchema: z.ZodObject<{
|
|
@@ -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,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,mBAAmB;AAEnB,eAAO,MAAM,iBAAiB;;;;;;iBAM5B,CAAC;AASH,eAAO,MAAM,wBAAwB;;;;;;;
|
|
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,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;;;;;;iBAGrC,CAAC;AAEH,4BAA4B;AAE5B,eAAO,MAAM,0BAA0B;;;;;;iBAMrC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;iBAEvC,CAAC;AAEH,8BAA8B;AAE9B,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;;iBAIzC,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.experimentalParametersSchemaV2 = exports.experimentalParametersSchema = exports.additionalParametersSchemaV2 = exports.additionalParametersSchema = exports.specialParametersSchemasV3 = exports.specialParametersSchemasV2 = exports.specialParametersSchemas = exports.outputPathsSchema = void 0;
|
|
3
|
+
exports.experimentalParametersSchemaV2 = exports.experimentalParametersSchema = exports.additionalParametersSchemaV2 = exports.additionalParametersSchema = exports.specialParametersSchemasV4 = exports.specialParametersSchemasV3 = exports.specialParametersSchemasV2 = exports.specialParametersSchemas = exports.outputPathsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
+
const EmptySchemaStrategy_enum_1 = require("../../core/types/enums/EmptySchemaStrategy.enum");
|
|
5
6
|
const ValidationLibrary_enum_1 = require("../../core/types/enums/ValidationLibrary.enum");
|
|
6
7
|
/** Output paths */
|
|
7
8
|
exports.outputPathsSchema = zod_1.z.object({
|
|
@@ -16,20 +17,27 @@ const baseSpecialParametersSchema = zod_1.z.object({
|
|
|
16
17
|
useOptions: zod_1.z.boolean().optional(),
|
|
17
18
|
useUnionTypes: zod_1.z.boolean().optional(),
|
|
18
19
|
});
|
|
19
|
-
exports.specialParametersSchemas =
|
|
20
|
+
exports.specialParametersSchemas = zod_1.z.object({
|
|
21
|
+
...baseSpecialParametersSchema.shape,
|
|
20
22
|
exportCore: zod_1.z.boolean().optional(),
|
|
21
23
|
exportServices: zod_1.z.boolean().optional(),
|
|
22
24
|
exportModels: zod_1.z.boolean().optional(),
|
|
23
25
|
exportSchemas: zod_1.z.boolean().optional(),
|
|
24
|
-
})
|
|
25
|
-
exports.specialParametersSchemasV2 =
|
|
26
|
+
});
|
|
27
|
+
exports.specialParametersSchemasV2 = zod_1.z.object({
|
|
28
|
+
...baseSpecialParametersSchema.shape,
|
|
26
29
|
excludeCoreServiceFiles: zod_1.z.boolean().optional(),
|
|
27
30
|
includeSchemasFiles: zod_1.z.boolean().optional(),
|
|
28
|
-
})
|
|
29
|
-
exports.specialParametersSchemasV3 =
|
|
31
|
+
});
|
|
32
|
+
exports.specialParametersSchemasV3 = zod_1.z.object({
|
|
33
|
+
...baseSpecialParametersSchema.shape,
|
|
30
34
|
excludeCoreServiceFiles: zod_1.z.boolean().optional(),
|
|
31
35
|
validationLibrary: zod_1.z.enum(ValidationLibrary_enum_1.ValidationLibrary).optional(),
|
|
32
|
-
})
|
|
36
|
+
});
|
|
37
|
+
exports.specialParametersSchemasV4 = zod_1.z.object({
|
|
38
|
+
...exports.specialParametersSchemasV3.shape,
|
|
39
|
+
emptySchemaStrategy: zod_1.z.enum(EmptySchemaStrategy_enum_1.EmptySchemaStrategy).optional(),
|
|
40
|
+
});
|
|
33
41
|
/** Additional parameters */
|
|
34
42
|
exports.additionalParametersSchema = zod_1.z.object({
|
|
35
43
|
clean: zod_1.z.boolean().optional(),
|
|
@@ -11,12 +11,12 @@ export declare const multiOptionsSchemaV1: z.ZodObject<{
|
|
|
11
11
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
12
12
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
13
13
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
14
|
-
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
-
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
16
14
|
exportCore: z.ZodOptional<z.ZodBoolean>;
|
|
17
15
|
exportServices: z.ZodOptional<z.ZodBoolean>;
|
|
18
16
|
exportModels: z.ZodOptional<z.ZodBoolean>;
|
|
19
17
|
exportSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
20
20
|
output: z.ZodString;
|
|
21
21
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
22
22
|
outputServices: z.ZodOptional<z.ZodString>;
|
|
@@ -16,11 +16,11 @@ export declare const multiOptionsSchemaV4: z.ZodObject<{
|
|
|
16
16
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
17
17
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
18
18
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
19
|
-
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
-
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
21
19
|
exportCore: z.ZodOptional<z.ZodBoolean>;
|
|
22
20
|
exportServices: z.ZodOptional<z.ZodBoolean>;
|
|
23
21
|
exportModels: z.ZodOptional<z.ZodBoolean>;
|
|
24
22
|
exportSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
25
25
|
}, z.core.$strip>;
|
|
26
26
|
//# sourceMappingURL=MultiOptionsSchemaV4.d.ts.map
|
|
@@ -7,10 +7,10 @@ export declare const multiOptionsSchemaV5: z.ZodObject<{
|
|
|
7
7
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
8
8
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
9
9
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
10
|
-
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
-
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
12
10
|
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
13
11
|
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
14
14
|
items: z.ZodArray<z.ZodObject<{
|
|
15
15
|
input: z.ZodString;
|
|
16
16
|
output: z.ZodString;
|
|
@@ -8,12 +8,12 @@ export declare const optionsSchemaV1: z.ZodObject<{
|
|
|
8
8
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
9
9
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
10
10
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
11
|
-
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
-
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
13
11
|
exportCore: z.ZodOptional<z.ZodBoolean>;
|
|
14
12
|
exportServices: z.ZodOptional<z.ZodBoolean>;
|
|
15
13
|
exportModels: z.ZodOptional<z.ZodBoolean>;
|
|
16
14
|
exportSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
17
17
|
output: z.ZodString;
|
|
18
18
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
19
19
|
outputServices: z.ZodOptional<z.ZodString>;
|
|
@@ -10,10 +10,10 @@ export declare const optionsSchemaV4: z.ZodObject<{
|
|
|
10
10
|
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
11
11
|
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
12
12
|
typePrefix: z.ZodOptional<z.ZodString>;
|
|
13
|
-
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
-
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
15
13
|
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
16
14
|
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
17
17
|
output: z.ZodString;
|
|
18
18
|
outputCore: z.ZodOptional<z.ZodString>;
|
|
19
19
|
outputServices: z.ZodOptional<z.ZodString>;
|
|
@@ -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,EA8FjD,CAAC"}
|
|
@@ -54,6 +54,19 @@ exports.compatibilityCases = [
|
|
|
54
54
|
to: 'v3',
|
|
55
55
|
expect: [{ type: 'added', key: 'useCancelableRequest' }],
|
|
56
56
|
},
|
|
57
|
+
{
|
|
58
|
+
type: Enums_1.EVersionedSchemaType.MULTI_OPTIONS,
|
|
59
|
+
from: 'v3',
|
|
60
|
+
to: 'v4',
|
|
61
|
+
expect: [
|
|
62
|
+
{ type: 'removed', key: 'output' },
|
|
63
|
+
{ type: 'removed', key: 'outputCore' },
|
|
64
|
+
{ type: 'removed', key: 'outputServices' },
|
|
65
|
+
{ type: 'removed', key: 'outputModels' },
|
|
66
|
+
{ type: 'removed', key: 'outputSchemas' },
|
|
67
|
+
{ type: 'removed', key: 'input' },
|
|
68
|
+
],
|
|
69
|
+
},
|
|
57
70
|
{
|
|
58
71
|
type: Enums_1.EVersionedSchemaType.MULTI_OPTIONS,
|
|
59
72
|
from: 'v4',
|
|
@@ -82,4 +95,10 @@ exports.compatibilityCases = [
|
|
|
82
95
|
to: 'v3',
|
|
83
96
|
expect: [{ type: 'added', key: 'logLevel' }, { type: 'added', key: 'logTarget' }],
|
|
84
97
|
},
|
|
98
|
+
{
|
|
99
|
+
type: Enums_1.EVersionedSchemaType.UNIFIED_OPTIONS,
|
|
100
|
+
from: 'v3',
|
|
101
|
+
to: 'v4',
|
|
102
|
+
expect: [{ type: 'added', key: 'emptySchemaStrategy' }, { type: 'added', key: 'customExecutorPath' }]
|
|
103
|
+
}
|
|
85
104
|
];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"allUtils.test.d.ts","sourceRoot":"","sources":["../../../../../src/common/VersionedSchema/Utils/__tests__/allUtils.test.ts"],"names":[],"mappings":""}
|