ts-openapi-codegen 2.0.0-beta.1 → 2.0.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +149 -103
- package/README.rus.md +149 -101
- 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 +14 -6
- 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 +13 -5
- package/dist/cli/{generate/runGenerateOpenApi.d.ts → generateOpenApiClient/generateOpenApiClient.d.ts} +2 -2
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts.map +1 -0
- package/dist/cli/{generate/runGenerateOpenApi.js → generateOpenApiClient/generateOpenApiClient.js} +31 -11
- package/dist/cli/index.js +29 -8
- package/dist/cli/initOpenApiConfig/Types.d.ts +4 -4
- package/dist/cli/initOpenApiConfig/Types.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/init.d.ts +6 -0
- package/dist/cli/initOpenApiConfig/init.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/init.js +53 -0
- package/dist/cli/initOpenApiConfig/initConfig.d.ts +11 -0
- package/dist/cli/initOpenApiConfig/initConfig.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/initConfig.js +102 -0
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts +3 -0
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/initCustomRequest.js +23 -0
- package/dist/cli/initOpenApiConfig/utils/buildConfig.d.ts +21 -0
- package/dist/cli/initOpenApiConfig/utils/buildConfig.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/utils/buildConfig.js +107 -0
- package/dist/cli/initOpenApiConfig/utils/findSpecFiles.d.ts +8 -0
- package/dist/cli/initOpenApiConfig/utils/findSpecFiles.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/utils/findSpecFiles.js +40 -0
- package/dist/cli/initOpenApiConfig/utils/registerHandlebarTemplates.d.ts +3 -0
- package/dist/cli/initOpenApiConfig/utils/registerHandlebarTemplates.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/utils/registerHandlebarTemplates.js +53 -0
- package/dist/cli/initOpenApiConfig/utils/validateSpecFile.d.ts +7 -0
- package/dist/cli/initOpenApiConfig/utils/validateSpecFile.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/utils/validateSpecFile.js +23 -0
- package/dist/cli/initOpenApiConfig/utils/validateSpecFiles.d.ts +11 -0
- package/dist/cli/initOpenApiConfig/utils/validateSpecFiles.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/utils/validateSpecFiles.js +24 -0
- package/dist/cli/initOpenApiConfig/utils/writeConfigFile.d.ts +11 -0
- package/dist/cli/initOpenApiConfig/utils/writeConfigFile.d.ts.map +1 -0
- package/dist/cli/initOpenApiConfig/utils/writeConfigFile.js +31 -0
- package/dist/cli/previewChanges/previewChanges.d.ts +8 -0
- package/dist/cli/previewChanges/previewChanges.d.ts.map +1 -0
- package/dist/cli/previewChanges/previewChanges.js +189 -0
- package/dist/cli/previewChanges/utils/compareFiles.d.ts +6 -0
- package/dist/cli/previewChanges/utils/compareFiles.d.ts.map +1 -0
- package/dist/cli/previewChanges/utils/compareFiles.js +50 -0
- package/dist/cli/previewChanges/utils/formatDiff.d.ts +6 -0
- package/dist/cli/previewChanges/utils/formatDiff.d.ts.map +1 -0
- package/dist/cli/previewChanges/utils/formatDiff.js +30 -0
- package/dist/cli/previewChanges/utils/isDirectoryEmpty.d.ts +5 -0
- package/dist/cli/previewChanges/utils/isDirectoryEmpty.d.ts.map +1 -0
- package/dist/cli/previewChanges/utils/isDirectoryEmpty.js +17 -0
- package/dist/cli/previewChanges/utils/readDirectoryRecursive.d.ts +5 -0
- package/dist/cli/previewChanges/utils/readDirectoryRecursive.d.ts.map +1 -0
- package/dist/cli/previewChanges/utils/readDirectoryRecursive.js +28 -0
- package/dist/cli/previewChanges/utils/updateOutputPaths.d.ts +10 -0
- package/dist/cli/previewChanges/utils/updateOutputPaths.d.ts.map +1 -0
- package/dist/cli/previewChanges/utils/updateOutputPaths.js +106 -0
- package/dist/cli/schemas/base.d.ts +22 -0
- package/dist/cli/schemas/base.d.ts.map +1 -0
- package/dist/cli/schemas/base.js +23 -0
- package/dist/cli/schemas/checkConfig.d.ts +6 -0
- package/dist/cli/schemas/checkConfig.d.ts.map +1 -0
- package/dist/cli/schemas/checkConfig.js +5 -0
- package/dist/cli/schemas/generate.d.ts +8 -0
- package/dist/cli/schemas/generate.d.ts.map +1 -0
- package/dist/cli/schemas/generate.js +45 -0
- package/dist/cli/schemas/index.d.ts +8 -0
- package/dist/cli/schemas/index.d.ts.map +1 -0
- package/dist/cli/schemas/index.js +22 -0
- package/dist/cli/schemas/init.d.ts +10 -0
- package/dist/cli/schemas/init.d.ts.map +1 -0
- package/dist/cli/schemas/init.js +11 -0
- package/dist/cli/schemas/previewChanges.d.ts +9 -0
- package/dist/cli/schemas/previewChanges.d.ts.map +1 -0
- package/dist/cli/schemas/previewChanges.js +11 -0
- package/dist/cli/schemas/updateConfig.d.ts +6 -0
- package/dist/cli/schemas/updateConfig.d.ts.map +1 -0
- package/dist/cli/schemas/updateConfig.js +5 -0
- package/dist/common/Consts.d.ts +5 -0
- package/dist/common/Consts.d.ts.map +1 -1
- package/dist/common/Consts.js +9 -2
- package/dist/common/LoggerMessages.js +1 -1
- package/dist/common/TRawOptions.d.ts +4 -36
- package/dist/common/TRawOptions.d.ts.map +1 -1
- package/dist/common/Validation/formatZodError.d.ts +10 -0
- package/dist/common/Validation/formatZodError.d.ts.map +1 -0
- package/dist/common/Validation/formatZodError.js +114 -0
- package/dist/common/Validation/index.d.ts +3 -0
- package/dist/common/Validation/index.d.ts.map +1 -0
- package/dist/common/Validation/index.js +18 -0
- package/dist/common/Validation/validateZodOptions.d.ts +27 -0
- package/dist/common/Validation/validateZodOptions.d.ts.map +1 -0
- package/dist/common/Validation/validateZodOptions.js +35 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.js +10 -4
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllVersionedSchemas.d.ts +6 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllVersionedSchemas.js +8 -8
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts +28 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.js +25 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts +37 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.js +37 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts +38 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.js +34 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts +40 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.js +36 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts +65 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.js +31 -0
- package/dist/common/VersionedSchema/CommonSchemas.d.ts +53 -29
- package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.js +44 -62
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.js +9 -16
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts +25 -5
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.js +34 -17
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.d.ts +25 -5
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.js +28 -19
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts +25 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.js +29 -2
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +25 -5
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.js +30 -14
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts +23 -5
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.js +33 -18
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsVersionedSchemas.d.ts +3 -2
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsVersionedSchemas.js +18 -11
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.js +2 -5
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts +22 -5
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.js +30 -12
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts +22 -5
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.js +27 -13
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts +22 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.js +28 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +22 -5
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.js +31 -12
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsVersionedSchemas.d.ts +3 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsVersionedSchemas.js +15 -9
- package/dist/common/VersionedSchema/Types.d.ts +5 -5
- package/dist/common/VersionedSchema/Types.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.d.ts +16 -0
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.js +85 -0
- package/dist/common/VersionedSchema/Utils/__tests__/compareShapes.test.d.ts +2 -0
- package/dist/common/VersionedSchema/Utils/__tests__/compareShapes.test.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/__tests__/compareShapes.test.js +23 -0
- package/dist/common/VersionedSchema/Utils/__tests__/migrateDataToLatestSchemaVersion.test.d.ts +2 -0
- package/dist/common/VersionedSchema/Utils/__tests__/migrateDataToLatestSchemaVersion.test.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/__tests__/migrateDataToLatestSchemaVersion.test.js +75 -0
- package/dist/common/VersionedSchema/Utils/buildVersionedSchema.d.ts +12 -0
- package/dist/common/VersionedSchema/Utils/buildVersionedSchema.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/buildVersionedSchema.js +13 -0
- package/dist/common/VersionedSchema/Utils/compareShapes.d.ts +16 -0
- package/dist/common/VersionedSchema/Utils/compareShapes.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/compareShapes.js +30 -0
- package/dist/common/VersionedSchema/Utils/createFieldTransformationMigration.d.ts +32 -0
- package/dist/common/VersionedSchema/Utils/createFieldTransformationMigration.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/createFieldTransformationMigration.js +40 -0
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts +2 -1
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.js +5 -5
- package/dist/common/VersionedSchema/Utils/getCurrentErrorMessage.d.ts +2 -2
- package/dist/common/VersionedSchema/Utils/getCurrentErrorMessage.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/getCurrentErrorMessage.js +15 -7
- package/dist/common/VersionedSchema/Utils/getLatestVersionFromMigrationPlans.d.ts +16 -0
- package/dist/common/VersionedSchema/Utils/getLatestVersionFromMigrationPlans.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/getLatestVersionFromMigrationPlans.js +23 -0
- package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.d.ts +2 -2
- package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.js +16 -3
- package/dist/common/VersionedSchema/Utils/getUniqueObjectKeys.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/getUniqueObjectKeys.js +19 -2
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts +2 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.js +10 -9
- package/dist/common/VersionedSchema/refinements/dependentOptionsRefinement.d.ts +4 -0
- package/dist/common/VersionedSchema/refinements/dependentOptionsRefinement.d.ts.map +1 -0
- package/dist/common/VersionedSchema/refinements/dependentOptionsRefinement.js +43 -0
- package/dist/common/VersionedSchema/refinements/singleOrMultiRefinement.d.ts +4 -0
- package/dist/common/VersionedSchema/refinements/singleOrMultiRefinement.d.ts.map +1 -0
- package/dist/common/VersionedSchema/refinements/singleOrMultiRefinement.js +21 -0
- package/dist/common/defaultOptions.d.ts.map +1 -1
- package/dist/common/defaultOptions.js +2 -1
- package/dist/common/utils/__tests__/convertArrayToObject.test.js +5 -6
- package/dist/common/utils/convertArrayToObject.d.ts.map +1 -1
- package/dist/common/utils/convertArrayToObject.js +1 -2
- package/dist/common/utils/fileSystemHelpers.d.ts +3 -1
- package/dist/common/utils/fileSystemHelpers.d.ts.map +1 -1
- package/dist/common/utils/fileSystemHelpers.js +3 -0
- package/dist/core/Context.d.ts +25 -2
- package/dist/core/Context.d.ts.map +1 -1
- package/dist/core/Context.js +144 -4
- package/dist/core/OpenApiClient.d.ts.map +1 -1
- package/dist/core/OpenApiClient.js +54 -13
- package/dist/core/WriteClient.d.ts +6 -13
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +32 -22
- package/dist/core/__tests__/WriteClient.test.js +7 -2
- package/dist/core/api/v2/Parser.d.ts +1 -1
- package/dist/core/api/v2/Parser.d.ts.map +1 -1
- package/dist/core/api/v2/Parser.js +2 -2
- package/dist/core/api/v2/parser/getModel.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getModel.js +2 -5
- package/dist/core/api/v2/parser/getModelProperties.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getModelProperties.js +1 -3
- package/dist/core/api/v2/parser/getModels.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getModels.js +2 -4
- package/dist/core/api/v2/parser/getOperationParameter.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperationParameter.js +2 -5
- package/dist/core/api/v2/parser/getOperationParameters.js +1 -1
- package/dist/core/api/v2/parser/getOperationResponse.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperationResponse.js +1 -3
- package/dist/core/api/v2/parser/getOperationResponses.js +1 -1
- package/dist/core/api/v2/parser/getServices.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getServices.js +4 -3
- package/dist/core/api/v2/parser/getType.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getType.js +16 -9
- package/dist/core/api/v3/Parser.d.ts +1 -1
- package/dist/core/api/v3/Parser.d.ts.map +1 -1
- package/dist/core/api/v3/Parser.js +2 -2
- package/dist/core/api/v3/parser/getModel.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getModel.js +2 -5
- package/dist/core/api/v3/parser/getModelProperties.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getModelProperties.js +1 -3
- package/dist/core/api/v3/parser/getModels.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getModels.js +2 -4
- package/dist/core/api/v3/parser/getOperation.js +1 -1
- package/dist/core/api/v3/parser/getOperationParameter.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationParameter.js +2 -5
- package/dist/core/api/v3/parser/getOperationParameters.js +1 -1
- package/dist/core/api/v3/parser/getOperationRequestBody.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationRequestBody.js +1 -3
- package/dist/core/api/v3/parser/getOperationResponse.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationResponse.js +1 -3
- package/dist/core/api/v3/parser/getOperationResponses.js +1 -1
- package/dist/core/api/v3/parser/getServices.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getServices.js +4 -3
- package/dist/core/api/v3/parser/getType.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getType.js +16 -9
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +2 -0
- package/dist/core/types/base/ClientArtifacts.model.d.ts +1 -1
- package/dist/core/types/base/ClientArtifacts.model.d.ts.map +1 -1
- package/dist/core/types/base/SimpleClientArtifacts.model.d.ts +1 -1
- package/dist/core/types/base/SimpleClientArtifacts.model.d.ts.map +1 -1
- package/dist/core/types/base/Templates.model.d.ts +32 -0
- package/dist/core/types/base/Templates.model.d.ts.map +1 -0
- package/dist/core/types/enums/ValidationLibrary.enum.d.ts +8 -0
- package/dist/core/types/enums/ValidationLibrary.enum.d.ts.map +1 -0
- package/dist/core/types/enums/ValidationLibrary.enum.js +11 -0
- package/dist/core/utils/__mocks__/templates.d.ts +1 -1
- package/dist/core/utils/__mocks__/templates.d.ts.map +1 -1
- package/dist/core/utils/__mocks__/templates.js +5 -1
- package/dist/core/utils/__tests__/getRelativeModelPath.test.js +9 -3
- package/dist/core/utils/__tests__/isSubdirectory.test.js +2 -2
- 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__/registerHandlebarTemplates.test.js +2 -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 +0 -6
- package/dist/core/utils/getOpenApiSpec.d.ts.map +1 -1
- package/dist/core/utils/getOpenApiSpec.js +26 -23
- 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 +7 -0
- package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarHelpers.js +85 -0
- package/dist/core/utils/registerHandlebarTemplates.d.ts +3 -27
- package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarTemplates.js +97 -6
- package/dist/core/utils/resolveRefPath.d.ts.map +1 -1
- package/dist/core/utils/resolveRefPath.js +1 -4
- package/dist/core/utils/serviceHelpers.d.ts.map +1 -1
- package/dist/core/utils/serviceHelpers.js +32 -6
- package/dist/core/utils/stripNamespace.js +1 -1
- package/dist/core/utils/validateRawOptions.d.ts +3 -0
- package/dist/core/utils/validateRawOptions.d.ts.map +1 -0
- package/dist/core/utils/validateRawOptions.js +15 -0
- package/dist/core/utils/writeClientCore.d.ts +1 -1
- package/dist/core/utils/writeClientCore.d.ts.map +1 -1
- package/dist/core/utils/writeClientCore.js +7 -4
- package/dist/core/utils/writeClientCoreIndex.d.ts +1 -1
- package/dist/core/utils/writeClientCoreIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientExecutor.d.ts +13 -0
- package/dist/core/utils/writeClientExecutor.d.ts.map +1 -0
- package/dist/core/utils/writeClientExecutor.js +30 -0
- package/dist/core/utils/writeClientFullIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientFullIndex.js +1 -1
- package/dist/core/utils/writeClientModels.d.ts +1 -1
- package/dist/core/utils/writeClientModels.d.ts.map +1 -1
- package/dist/core/utils/writeClientModelsIndex.d.ts +1 -1
- package/dist/core/utils/writeClientModelsIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.d.ts +3 -1
- package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.js +23 -20
- package/dist/core/utils/writeClientSchemasIndex.d.ts +1 -1
- package/dist/core/utils/writeClientSchemasIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientServices.d.ts +1 -1
- package/dist/core/utils/writeClientServices.d.ts.map +1 -1
- package/dist/core/utils/writeClientServicesIndex.d.ts +1 -1
- package/dist/core/utils/writeClientServicesIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientSimpleIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientSimpleIndex.js +1 -1
- package/dist/templatesCompiled/cli/customRequest.d.ts +11 -0
- package/dist/templatesCompiled/cli/customRequest.d.ts.map +1 -0
- package/dist/templatesCompiled/cli/customRequest.js +27 -0
- package/dist/templatesCompiled/cli/customRequestExecutor.d.ts +11 -0
- package/dist/templatesCompiled/cli/customRequestExecutor.d.ts.map +1 -0
- package/dist/templatesCompiled/cli/customRequestExecutor.js +27 -0
- package/dist/templatesCompiled/cli/openApiConfig.d.ts +2 -1
- package/dist/templatesCompiled/cli/openApiConfig.d.ts.map +1 -1
- package/dist/templatesCompiled/cli/openApiConfig.js +76 -4
- package/dist/templatesCompiled/client/core/ApiError.js +1 -1
- package/dist/templatesCompiled/client/core/CancelablePromise.d.ts +1 -0
- package/dist/templatesCompiled/client/core/CancelablePromise.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/CancelablePromise.js +9 -2
- package/dist/templatesCompiled/client/core/HttpStatusCode.d.ts +1 -0
- package/dist/templatesCompiled/client/core/HttpStatusCode.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/HttpStatusCode.js +9 -2
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts +12 -0
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.js +32 -0
- package/dist/templatesCompiled/client/core/{legacy-request-adapter.d.ts → executor/requestExecutor.d.ts} +1 -1
- package/dist/templatesCompiled/client/core/executor/requestExecutor.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/executor/requestExecutor.js +18 -0
- package/dist/templatesCompiled/client/core/functions/catchErrors.js +1 -1
- package/dist/templatesCompiled/client/core/interceptors/apiErrorInterceptor.d.ts +8 -0
- package/dist/templatesCompiled/client/core/interceptors/apiErrorInterceptor.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/interceptors/apiErrorInterceptor.js +18 -0
- package/dist/templatesCompiled/client/core/{request-executor.d.ts → interceptors/interceptors.d.ts} +2 -1
- package/dist/templatesCompiled/client/core/interceptors/interceptors.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/interceptors/interceptors.js +18 -0
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.d.ts +8 -0
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.js +18 -0
- package/dist/templatesCompiled/client/exportClient.d.ts +10 -0
- package/dist/templatesCompiled/client/exportClient.d.ts.map +1 -0
- package/dist/templatesCompiled/client/exportClient.js +53 -0
- package/dist/templatesCompiled/client/exportService.js +1 -1
- package/dist/templatesCompiled/client/indexCore.js +2 -2
- package/dist/templatesCompiled/client/indexFull.d.ts +13 -9
- package/dist/templatesCompiled/client/indexFull.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexFull.js +72 -46
- 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 +5 -1
- package/dist/templatesCompiled/client/joi/exportSchema.d.ts +11 -0
- package/dist/templatesCompiled/client/joi/exportSchema.d.ts.map +1 -0
- package/dist/templatesCompiled/client/joi/exportSchema.js +71 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchema.d.ts +22 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchema.d.ts.map +1 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchema.js +129 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaArray.d.ts +16 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaArray.d.ts.map +1 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaArray.js +84 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaComposition.d.ts +18 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaComposition.d.ts.map +1 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaComposition.js +96 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaDictionary.d.ts +14 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaDictionary.d.ts.map +1 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaDictionary.js +72 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaEnum.d.ts +14 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaEnum.d.ts.map +1 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaEnum.js +74 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.d.ts +35 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.d.ts.map +1 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.js +201 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts +14 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts.map +1 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.js +50 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaReference.d.ts +9 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaReference.d.ts.map +1 -0
- package/dist/templatesCompiled/client/joi/partials/joiSchemaReference.js +25 -0
- package/dist/templatesCompiled/client/jsonschema/exportSchema.d.ts +11 -0
- package/dist/templatesCompiled/client/jsonschema/exportSchema.d.ts.map +1 -0
- package/dist/templatesCompiled/client/jsonschema/exportSchema.js +69 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchema.d.ts +22 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchema.d.ts.map +1 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchema.js +129 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaArray.d.ts +16 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaArray.d.ts.map +1 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaArray.js +74 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaComposition.d.ts +16 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaComposition.d.ts.map +1 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaComposition.js +84 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaDictionary.d.ts +13 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaDictionary.d.ts.map +1 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaDictionary.js +56 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaEnum.d.ts +12 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaEnum.d.ts.map +1 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaEnum.js +49 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaGeneric.d.ts +29 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaGeneric.d.ts.map +1 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaGeneric.js +175 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts +15 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts.map +1 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.js +63 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaReference.d.ts +9 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaReference.d.ts.map +1 -0
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaReference.js +25 -0
- package/dist/templatesCompiled/client/partials/exportComposition.d.ts +2 -0
- package/dist/templatesCompiled/client/partials/exportComposition.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/exportComposition.js +17 -9
- package/dist/templatesCompiled/client/partials/parameters.js +1 -1
- package/dist/templatesCompiled/client/partials/serviceOption.d.ts +2 -4
- package/dist/templatesCompiled/client/partials/serviceOption.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/serviceOption.js +32 -46
- package/dist/templatesCompiled/client/yup/exportSchema.d.ts +11 -0
- package/dist/templatesCompiled/client/yup/exportSchema.d.ts.map +1 -0
- package/dist/templatesCompiled/client/yup/exportSchema.js +73 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchema.d.ts +22 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchema.d.ts.map +1 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchema.js +129 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaArray.d.ts +16 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaArray.d.ts.map +1 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaArray.js +84 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaComposition.d.ts +18 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaComposition.d.ts.map +1 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaComposition.js +96 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaDictionary.d.ts +14 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaDictionary.d.ts.map +1 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaDictionary.js +72 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaEnum.d.ts +14 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaEnum.d.ts.map +1 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaEnum.js +74 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.d.ts +34 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.d.ts.map +1 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.js +201 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts +14 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts.map +1 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.js +50 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaReference.d.ts +9 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaReference.d.ts.map +1 -0
- package/dist/templatesCompiled/client/yup/partials/yupSchemaReference.js +25 -0
- package/dist/templatesCompiled/client/zod/exportSchema.d.ts +11 -0
- package/dist/templatesCompiled/client/zod/exportSchema.d.ts.map +1 -0
- package/dist/templatesCompiled/client/zod/exportSchema.js +67 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchema.d.ts +22 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchema.d.ts.map +1 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchema.js +129 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts +14 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts.map +1 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.js +65 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts +15 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts.map +1 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.js +70 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts +12 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts.map +1 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.js +53 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaEnum.d.ts +15 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaEnum.d.ts.map +1 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaEnum.js +86 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.d.ts +34 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.d.ts.map +1 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.js +193 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts +14 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts.map +1 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.js +50 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaReference.d.ts +9 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaReference.d.ts.map +1 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaReference.js +25 -0
- package/package.json +9 -4
- package/dist/cli/generate/runGenerateOpenApi.d.ts.map +0 -1
- package/dist/cli/initOpenApiConfig/Enums.d.ts +0 -5
- package/dist/cli/initOpenApiConfig/Enums.d.ts.map +0 -1
- package/dist/cli/initOpenApiConfig/Enums.js +0 -8
- package/dist/cli/initOpenApiConfig/runInitOpenapiConfig.d.ts +0 -3
- package/dist/cli/initOpenApiConfig/runInitOpenapiConfig.d.ts.map +0 -1
- package/dist/cli/initOpenApiConfig/runInitOpenapiConfig.js +0 -70
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsMigrationPlan.d.ts +0 -3
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsMigrationPlan.d.ts.map +0 -1
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsMigrationPlan.js +0 -28
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsSchemaV1.d.ts +0 -7
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsSchemaV1.d.ts.map +0 -1
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsSchemaV1.js +0 -42
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsVersionedSchemas.d.ts +0 -3
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsVersionedSchemas.d.ts.map +0 -1
- package/dist/common/VersionedSchema/UnifiedOptionsVersioned/UnifiedOptionsVersionedSchemas.js +0 -10
- package/dist/common/VersionedSchema/Utils/getErrorFieldsFromValidation.d.ts +0 -6
- package/dist/common/VersionedSchema/Utils/getErrorFieldsFromValidation.d.ts.map +0 -1
- package/dist/common/VersionedSchema/Utils/getErrorFieldsFromValidation.js +0 -7
- package/dist/common/VersionedSchema/Utils/joiHandlers.d.ts +0 -6
- package/dist/common/VersionedSchema/Utils/joiHandlers.d.ts.map +0 -1
- package/dist/common/VersionedSchema/Utils/joiHandlers.js +0 -59
- package/dist/common/VersionedSchema/Utils/mergeObjectSchemas.d.ts +0 -3
- package/dist/common/VersionedSchema/Utils/mergeObjectSchemas.d.ts.map +0 -1
- package/dist/common/VersionedSchema/Utils/mergeObjectSchemas.js +0 -12
- package/dist/common/VersionedSchema/Utils/traverseObjectStructure.d.ts +0 -3
- package/dist/common/VersionedSchema/Utils/traverseObjectStructure.d.ts.map +0 -1
- package/dist/common/VersionedSchema/Utils/traverseObjectStructure.js +0 -31
- package/dist/common/utils/__tests__/__mock__/mockJoiSchema.d.ts +0 -19
- package/dist/common/utils/__tests__/__mock__/mockJoiSchema.d.ts.map +0 -1
- package/dist/common/utils/__tests__/__mock__/mockJoiSchema.js +0 -14
- package/dist/common/utils/__tests__/determineBestMatchingSchemaVersion.test.d.ts +0 -2
- package/dist/common/utils/__tests__/determineBestMatchingSchemaVersion.test.d.ts.map +0 -1
- package/dist/common/utils/__tests__/determineBestMatchingSchemaVersion.test.js +0 -38
- package/dist/common/utils/__tests__/getUniqueKeysFromSchemas.test.d.ts +0 -2
- package/dist/common/utils/__tests__/getUniqueKeysFromSchemas.test.d.ts.map +0 -1
- package/dist/common/utils/__tests__/getUniqueKeysFromSchemas.test.js +0 -20
- package/dist/common/utils/__tests__/mergeObjectSchemas.test.d.ts +0 -2
- package/dist/common/utils/__tests__/mergeObjectSchemas.test.d.ts.map +0 -1
- package/dist/common/utils/__tests__/mergeObjectSchemas.test.js +0 -35
- package/dist/common/utils/__tests__/migrationForMultiOptions.test.d.ts +0 -2
- package/dist/common/utils/__tests__/migrationForMultiOptions.test.d.ts.map +0 -1
- package/dist/common/utils/__tests__/migrationForMultiOptions.test.js +0 -112
- package/dist/common/utils/__tests__/migrationForOptions.test.d.ts +0 -2
- package/dist/common/utils/__tests__/migrationForOptions.test.d.ts.map +0 -1
- package/dist/common/utils/__tests__/migrationForOptions.test.js +0 -56
- package/dist/core/types/base/RefWithtype.model.d.ts +0 -11
- package/dist/core/types/base/RefWithtype.model.d.ts.map +0 -1
- package/dist/core/types/enums/TypeRef.enum.d.ts +0 -8
- package/dist/core/types/enums/TypeRef.enum.d.ts.map +0 -1
- package/dist/core/types/enums/TypeRef.enum.js +0 -11
- package/dist/core/utils/__tests__/getGatheringRefs.test.d.ts +0 -2
- package/dist/core/utils/__tests__/getGatheringRefs.test.d.ts.map +0 -1
- package/dist/core/utils/__tests__/getGatheringRefs.test.js +0 -26
- package/dist/core/utils/__tests__/getRefFromSchema.test.d.ts +0 -2
- package/dist/core/utils/__tests__/getRefFromSchema.test.d.ts.map +0 -1
- package/dist/core/utils/__tests__/getRefFromSchema.test.js +0 -167
- package/dist/core/utils/__tests__/refResolver.test.d.ts +0 -2
- package/dist/core/utils/__tests__/refResolver.test.d.ts.map +0 -1
- package/dist/core/utils/__tests__/refResolver.test.js +0 -55
- package/dist/core/utils/__tests__/resolveRefToImportPath.test.d.ts +0 -2
- package/dist/core/utils/__tests__/resolveRefToImportPath.test.d.ts.map +0 -1
- package/dist/core/utils/__tests__/resolveRefToImportPath.test.js +0 -376
- 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
- package/dist/core/utils/findCommonParent.d.ts +0 -7
- package/dist/core/utils/findCommonParent.d.ts.map +0 -1
- package/dist/core/utils/findCommonParent.js +0 -20
- package/dist/core/utils/getGatheringRefs.d.ts +0 -4
- package/dist/core/utils/getGatheringRefs.d.ts.map +0 -1
- package/dist/core/utils/getGatheringRefs.js +0 -68
- package/dist/core/utils/getRefFromSchema.d.ts +0 -3
- package/dist/core/utils/getRefFromSchema.d.ts.map +0 -1
- package/dist/core/utils/getRefFromSchema.js +0 -9
- package/dist/core/utils/isBoolean.d.ts +0 -2
- package/dist/core/utils/isBoolean.d.ts.map +0 -1
- package/dist/core/utils/isBoolean.js +0 -12
- package/dist/core/utils/isFileName.d.ts +0 -7
- package/dist/core/utils/isFileName.d.ts.map +0 -1
- package/dist/core/utils/isFileName.js +0 -30
- package/dist/core/utils/mapPathToTargetDirSafe.d.ts +0 -10
- package/dist/core/utils/mapPathToTargetDirSafe.d.ts.map +0 -1
- package/dist/core/utils/mapPathToTargetDirSafe.js +0 -48
- package/dist/core/utils/normalizeAllRefs.d.ts +0 -6
- package/dist/core/utils/normalizeAllRefs.d.ts.map +0 -1
- package/dist/core/utils/normalizeAllRefs.js +0 -35
- package/dist/core/utils/resolveRefToImportPath.d.ts +0 -13
- package/dist/core/utils/resolveRefToImportPath.d.ts.map +0 -1
- package/dist/core/utils/resolveRefToImportPath.js +0 -105
- package/dist/templatesCompiled/client/core/legacy-request-adapter.d.ts.map +0 -1
- package/dist/templatesCompiled/client/core/legacy-request-adapter.js +0 -18
- package/dist/templatesCompiled/client/core/request-executor.d.ts.map +0 -1
- package/dist/templatesCompiled/client/core/request-executor.js +0 -11
- /package/dist/core/types/base/{RefWithtype.model.js → Templates.model.js} +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpClient } from '../../../core/types/enums/HttpClient.enum';
|
|
3
|
+
import { ELogLevel, ELogOutput } from '../../Enums';
|
|
4
|
+
export declare const unifiedOptionsShape: z.ZodObject<{
|
|
5
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
6
|
+
input: z.ZodString;
|
|
7
|
+
request: z.ZodOptional<z.ZodString>;
|
|
8
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
12
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
13
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
14
|
+
output: z.ZodString;
|
|
15
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
16
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
17
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
18
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
19
|
+
}, z.core.$strip>>>;
|
|
20
|
+
input: z.ZodOptional<z.ZodString>;
|
|
21
|
+
output: z.ZodOptional<z.ZodString>;
|
|
22
|
+
httpClient: z.ZodEnum<typeof HttpClient>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export declare const debugSettingsShape: z.ZodObject<{
|
|
25
|
+
logLevel: z.ZodOptional<z.ZodEnum<typeof ELogLevel>>;
|
|
26
|
+
logTarget: z.ZodOptional<z.ZodEnum<typeof ELogOutput>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
//# sourceMappingURL=UnifiedBase.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnifiedBase.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,2CAA2C,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAapD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;iBAK9B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;iBAG7B,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.debugSettingsShape = exports.unifiedOptionsShape = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const HttpClient_enum_1 = require("../../../core/types/enums/HttpClient.enum");
|
|
6
|
+
const Enums_1 = require("../../Enums");
|
|
7
|
+
const CommonSchemas_1 = require("../CommonSchemas");
|
|
8
|
+
const unifiedItemSchema = zod_1.z
|
|
9
|
+
.object({
|
|
10
|
+
...CommonSchemas_1.outputPathsSchema.shape,
|
|
11
|
+
...CommonSchemas_1.additionalParametersSchemaV2.shape,
|
|
12
|
+
...CommonSchemas_1.experimentalParametersSchemaV2.shape,
|
|
13
|
+
input: zod_1.z.string().min(1),
|
|
14
|
+
request: zod_1.z.string().optional(),
|
|
15
|
+
});
|
|
16
|
+
exports.unifiedOptionsShape = zod_1.z.object({
|
|
17
|
+
items: zod_1.z.array(unifiedItemSchema).min(1).optional(),
|
|
18
|
+
input: zod_1.z.string().optional(),
|
|
19
|
+
output: zod_1.z.string().optional(),
|
|
20
|
+
httpClient: zod_1.z.enum(HttpClient_enum_1.HttpClient),
|
|
21
|
+
});
|
|
22
|
+
exports.debugSettingsShape = zod_1.z.object({
|
|
23
|
+
logLevel: zod_1.z.enum(Enums_1.ELogLevel).optional(),
|
|
24
|
+
logTarget: zod_1.z.enum(Enums_1.ELogOutput).optional(),
|
|
25
|
+
});
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const unifiedOptionsSchemaV1: z.ZodObject<{
|
|
3
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
4
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
request: z.ZodOptional<z.ZodString>;
|
|
7
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
8
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
9
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
10
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
15
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
16
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
17
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
18
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
19
|
+
input: z.ZodString;
|
|
20
|
+
request: z.ZodOptional<z.ZodString>;
|
|
21
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
25
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
26
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
27
|
+
output: z.ZodString;
|
|
28
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
29
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
30
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
31
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
32
|
+
}, z.core.$strip>>>;
|
|
33
|
+
input: z.ZodOptional<z.ZodString>;
|
|
34
|
+
output: z.ZodOptional<z.ZodString>;
|
|
35
|
+
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
//# sourceMappingURL=UnifiedOptionsSchemaV1.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnifiedOptionsSchemaV1.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAOtB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMjC,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.unifiedOptionsSchemaV1 = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const CommonSchemas_1 = require("../CommonSchemas");
|
|
6
|
+
const UnifiedBase_1 = require("./UnifiedBase");
|
|
7
|
+
const outputPathsSchemaWithoutOutput = CommonSchemas_1.outputPathsSchema.omit({ output: true });
|
|
8
|
+
exports.unifiedOptionsSchemaV1 = zod_1.z.object({
|
|
9
|
+
...UnifiedBase_1.unifiedOptionsShape.shape,
|
|
10
|
+
...outputPathsSchemaWithoutOutput.shape,
|
|
11
|
+
...CommonSchemas_1.specialParametersSchemasV2.shape,
|
|
12
|
+
...CommonSchemas_1.additionalParametersSchemaV2.shape,
|
|
13
|
+
...CommonSchemas_1.experimentalParametersSchemaV2.shape,
|
|
14
|
+
});
|
|
15
|
+
/*
|
|
16
|
+
type TUnified = {
|
|
17
|
+
httpClient: HttpClient.FETCH | HttpClient.XHR | HttpClient.NODE | HttpClient.AXIOS;
|
|
18
|
+
useCancelableRequest: boolean | undefined;
|
|
19
|
+
sortByRequired: boolean | undefined;
|
|
20
|
+
useSeparatedIndexes: boolean | undefined;
|
|
21
|
+
request: string | undefined;
|
|
22
|
+
interfacePrefix: string | undefined;
|
|
23
|
+
enumPrefix: string | undefined;
|
|
24
|
+
typePrefix: string | undefined;
|
|
25
|
+
useOptions: boolean | undefined;
|
|
26
|
+
useUnionTypes: boolean | undefined;
|
|
27
|
+
excludeCoreServiceFiles: boolean | undefined;
|
|
28
|
+
includeSchemasFiles: boolean | undefined;
|
|
29
|
+
outputCore: string | undefined;
|
|
30
|
+
outputServices: string | undefined;
|
|
31
|
+
outputModels: string | undefined;
|
|
32
|
+
outputSchemas: string | undefined;
|
|
33
|
+
items: { ... 13 more }[] | undefined;
|
|
34
|
+
input: string | undefined;
|
|
35
|
+
output: string | undefined;
|
|
36
|
+
}
|
|
37
|
+
*/
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const unifiedOptionsSchemaV2: z.ZodObject<{
|
|
3
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
4
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
5
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
7
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
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
|
+
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
16
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
17
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
18
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
19
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
20
|
+
input: z.ZodString;
|
|
21
|
+
request: z.ZodOptional<z.ZodString>;
|
|
22
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
26
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
27
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
28
|
+
output: z.ZodString;
|
|
29
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
30
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
31
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
32
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
33
|
+
}, z.core.$strip>>>;
|
|
34
|
+
input: z.ZodOptional<z.ZodString>;
|
|
35
|
+
output: z.ZodOptional<z.ZodString>;
|
|
36
|
+
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
//# sourceMappingURL=UnifiedOptionsSchemaV2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnifiedOptionsSchemaV2.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGjC,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.unifiedOptionsSchemaV2 = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const CommonSchemas_1 = require("../CommonSchemas");
|
|
6
|
+
const UnifiedOptionsSchemaV1_1 = require("./UnifiedOptionsSchemaV1");
|
|
7
|
+
exports.unifiedOptionsSchemaV2 = zod_1.z.object({
|
|
8
|
+
...UnifiedOptionsSchemaV1_1.unifiedOptionsSchemaV1.shape,
|
|
9
|
+
...CommonSchemas_1.specialParametersSchemasV3.shape,
|
|
10
|
+
});
|
|
11
|
+
/*
|
|
12
|
+
type TUnified = {
|
|
13
|
+
output: string;
|
|
14
|
+
useOptions: boolean | undefined;
|
|
15
|
+
useUnionTypes: boolean | undefined;
|
|
16
|
+
excludeCoreServiceFiles: boolean | undefined;
|
|
17
|
+
validationLibrary: ValidationLibrary.NONE | ValidationLibrary.ZOD | ValidationLibrary.JOI | ValidationLibrary.YUP | ValidationLibrary.JSONSCHEMA | undefined;
|
|
18
|
+
useCancelableRequest: boolean | undefined;
|
|
19
|
+
sortByRequired: boolean | undefined;
|
|
20
|
+
useSeparatedIndexes: boolean | undefined;
|
|
21
|
+
request: string | undefined;
|
|
22
|
+
interfacePrefix: string | undefined;
|
|
23
|
+
enumPrefix: string | undefined;
|
|
24
|
+
typePrefix: string | undefined;
|
|
25
|
+
includeSchemasFiles: boolean | undefined;
|
|
26
|
+
outputCore: string | undefined;
|
|
27
|
+
outputServices: string | undefined;
|
|
28
|
+
outputModels: string | undefined;
|
|
29
|
+
outputSchemas: string | undefined;
|
|
30
|
+
items: { ... 13 more }[] | undefined;
|
|
31
|
+
input: string | undefined;
|
|
32
|
+
httpClient: HttpClient.FETCH | HttpClient.XHR | HttpClient.NODE | HttpClient.AXIOS | undefined;
|
|
33
|
+
}
|
|
34
|
+
*/
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const unifiedOptionsSchemaV3: z.ZodObject<{
|
|
3
|
+
logLevel: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogLevel>>;
|
|
4
|
+
logTarget: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogOutput>>;
|
|
5
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
9
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
request: z.ZodOptional<z.ZodString>;
|
|
13
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
14
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
15
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
16
|
+
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
18
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
19
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
20
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
21
|
+
items: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22
|
+
input: z.ZodString;
|
|
23
|
+
request: z.ZodOptional<z.ZodString>;
|
|
24
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
28
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
29
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
30
|
+
output: z.ZodString;
|
|
31
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
32
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
33
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
34
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>>>;
|
|
36
|
+
input: z.ZodOptional<z.ZodString>;
|
|
37
|
+
output: z.ZodOptional<z.ZodString>;
|
|
38
|
+
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
//# sourceMappingURL=UnifiedOptionsSchemaV3.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UnifiedOptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGjC,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.unifiedOptionsSchemaV3 = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const UnifiedBase_1 = require("./UnifiedBase");
|
|
6
|
+
const UnifiedOptionsSchemaV2_1 = require("./UnifiedOptionsSchemaV2");
|
|
7
|
+
exports.unifiedOptionsSchemaV3 = zod_1.z.object({
|
|
8
|
+
...UnifiedOptionsSchemaV2_1.unifiedOptionsSchemaV2.shape,
|
|
9
|
+
...UnifiedBase_1.debugSettingsShape.shape,
|
|
10
|
+
});
|
|
11
|
+
/*
|
|
12
|
+
type TUnified = {
|
|
13
|
+
httpClient: HttpClient.FETCH | HttpClient.XHR | HttpClient.NODE | HttpClient.AXIOS;
|
|
14
|
+
logLevel: ELogLevel.INFO | ELogLevel.WARN | ELogLevel.ERROR | undefined;
|
|
15
|
+
logTarget: ELogOutput.CONSOLE | ELogOutput.FILE | undefined;
|
|
16
|
+
useOptions: boolean | undefined;
|
|
17
|
+
useUnionTypes: boolean | undefined;
|
|
18
|
+
excludeCoreServiceFiles: boolean | undefined;
|
|
19
|
+
validationLibrary: ValidationLibrary.NONE | ValidationLibrary.ZOD | ValidationLibrary.JOI | ValidationLibrary.YUP | ValidationLibrary.JSONSCHEMA | undefined;
|
|
20
|
+
sortByRequired: boolean | undefined;
|
|
21
|
+
useSeparatedIndexes: boolean | undefined;
|
|
22
|
+
useCancelableRequest: boolean | undefined;
|
|
23
|
+
request: string | undefined;
|
|
24
|
+
interfacePrefix: string | undefined;
|
|
25
|
+
enumPrefix: string | undefined;
|
|
26
|
+
typePrefix: string | undefined;
|
|
27
|
+
includeSchemasFiles: boolean | undefined;
|
|
28
|
+
outputCore: string | undefined;
|
|
29
|
+
outputServices: string | undefined;
|
|
30
|
+
outputModels: string | undefined;
|
|
31
|
+
outputSchemas: string | undefined;
|
|
32
|
+
items: { ... 13 more }[] | undefined;
|
|
33
|
+
input: string | undefined;
|
|
34
|
+
output: string | undefined;
|
|
35
|
+
}
|
|
36
|
+
*/
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VersionedSchema } from '../Types';
|
|
3
|
+
export declare const unifiedVersionedSchemas: VersionedSchema<z.ZodTypeAny>[];
|
|
4
|
+
export declare const rawOptionsSchema: z.ZodObject<{
|
|
5
|
+
logLevel: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogLevel>>;
|
|
6
|
+
logTarget: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogOutput>>;
|
|
7
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
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;
|
|
25
|
+
request: z.ZodOptional<z.ZodString>;
|
|
26
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
30
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
31
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
32
|
+
output: z.ZodString;
|
|
33
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
34
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
35
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
36
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
37
|
+
}, z.core.$strip>>>;
|
|
38
|
+
input: z.ZodOptional<z.ZodString>;
|
|
39
|
+
output: z.ZodOptional<z.ZodString>;
|
|
40
|
+
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const flatOptionsSchema: z.ZodObject<{
|
|
43
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
44
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
45
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
46
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
47
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
50
|
+
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
validationLibrary: z.ZodOptional<z.ZodEnum<typeof import("../../../core/types/enums/ValidationLibrary.enum").ValidationLibrary>>;
|
|
52
|
+
request: z.ZodOptional<z.ZodString>;
|
|
53
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
54
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
55
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
56
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
httpClient: z.ZodEnum<typeof import("../../..").HttpClient>;
|
|
60
|
+
logLevel: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogLevel>>;
|
|
61
|
+
logTarget: z.ZodOptional<z.ZodEnum<typeof import("../../Enums").ELogOutput>>;
|
|
62
|
+
input: z.ZodString;
|
|
63
|
+
output: z.ZodString;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
//# sourceMappingURL=UnifiedVersionedSchemas.d.ts.map
|
|
@@ -0,0 +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;AAM3C,eAAO,MAAM,uBAAuB,EAAE,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,EAgBlE,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAAyB,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;iBAG5B,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.flatOptionsSchema = exports.rawOptionsSchema = exports.unifiedVersionedSchemas = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const Enums_1 = require("../Enums");
|
|
6
|
+
const buildVersionedSchema_1 = require("../Utils/buildVersionedSchema");
|
|
7
|
+
const UnifiedOptionsSchemaV1_1 = require("./UnifiedOptionsSchemaV1");
|
|
8
|
+
const UnifiedOptionsSchemaV2_1 = require("./UnifiedOptionsSchemaV2");
|
|
9
|
+
const UnifiedOptionsSchemaV3_1 = require("./UnifiedOptionsSchemaV3");
|
|
10
|
+
exports.unifiedVersionedSchemas = [
|
|
11
|
+
(0, buildVersionedSchema_1.buildVersionedSchema)({
|
|
12
|
+
version: 'v1',
|
|
13
|
+
base: UnifiedOptionsSchemaV1_1.unifiedOptionsSchemaV1,
|
|
14
|
+
type: Enums_1.EVersionedSchemaType.UNIFIED_OPTIONS,
|
|
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
|
+
}),
|
|
26
|
+
];
|
|
27
|
+
exports.rawOptionsSchema = UnifiedOptionsSchemaV3_1.unifiedOptionsSchemaV3;
|
|
28
|
+
exports.flatOptionsSchema = exports.rawOptionsSchema.omit({ items: true }).extend({
|
|
29
|
+
input: zod_1.z.string().min(1, 'Input is required'),
|
|
30
|
+
output: zod_1.z.string().min(1, 'Output is required'),
|
|
31
|
+
});
|
|
@@ -1,30 +1,54 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
export declare const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ValidationLibrary } from '../../core/types/enums/ValidationLibrary.enum';
|
|
3
|
+
/** Output paths */
|
|
4
|
+
export declare const outputPathsSchema: z.ZodObject<{
|
|
5
|
+
output: z.ZodString;
|
|
6
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
7
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
8
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
9
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export declare const specialParametersSchemas: z.ZodObject<{
|
|
12
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
exportCore: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
exportServices: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
exportModels: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
exportSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export declare const specialParametersSchemasV2: z.ZodObject<{
|
|
20
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
includeSchemasFiles: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export declare const specialParametersSchemasV3: z.ZodObject<{
|
|
26
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
27
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
excludeCoreServiceFiles: z.ZodOptional<z.ZodBoolean>;
|
|
29
|
+
validationLibrary: z.ZodOptional<z.ZodEnum<typeof ValidationLibrary>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
/** Additional parameters */
|
|
32
|
+
export declare const additionalParametersSchema: z.ZodObject<{
|
|
33
|
+
clean: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
request: z.ZodOptional<z.ZodString>;
|
|
35
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
36
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
37
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
38
|
+
}, z.core.$strip>;
|
|
39
|
+
export declare const additionalParametersSchemaV2: z.ZodObject<{
|
|
40
|
+
request: z.ZodOptional<z.ZodString>;
|
|
41
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
42
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
43
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
/** Experimental parameters */
|
|
46
|
+
export declare const experimentalParametersSchema: z.ZodObject<{
|
|
47
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
export declare const experimentalParametersSchemaV2: z.ZodObject<{
|
|
50
|
+
sortByRequired: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
useSeparatedIndexes: z.ZodOptional<z.ZodBoolean>;
|
|
52
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
53
|
+
}, z.core.$strip>;
|
|
30
54
|
//# 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,
|
|
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;;;;;;;iBAOpC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;iBAKtC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;iBAKtC,CAAC;AAEF,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,70 +1,52 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.experimentalParametersSchemaV2 = exports.experimentalParametersSchema = exports.additionalParametersSchemaV2 = exports.additionalParametersSchema = exports.specialParametersSchemasV2 = exports.specialParametersSchemas = exports.outputPathsSchema = void 0;
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
outputSchemas: joi_1.default.string().optional(),
|
|
3
|
+
exports.experimentalParametersSchemaV2 = exports.experimentalParametersSchema = exports.additionalParametersSchemaV2 = exports.additionalParametersSchema = exports.specialParametersSchemasV3 = exports.specialParametersSchemasV2 = exports.specialParametersSchemas = exports.outputPathsSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const ValidationLibrary_enum_1 = require("../../core/types/enums/ValidationLibrary.enum");
|
|
6
|
+
/** Output paths */
|
|
7
|
+
exports.outputPathsSchema = zod_1.z.object({
|
|
8
|
+
output: zod_1.z.string().min(1),
|
|
9
|
+
outputCore: zod_1.z.string().optional(),
|
|
10
|
+
outputServices: zod_1.z.string().optional(),
|
|
11
|
+
outputModels: zod_1.z.string().optional(),
|
|
12
|
+
outputSchemas: zod_1.z.string().optional(),
|
|
17
13
|
});
|
|
18
|
-
/**
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
useOptions: joi_1.default.boolean().optional(),
|
|
23
|
-
useUnionTypes: joi_1.default.boolean().optional(),
|
|
24
|
-
exportCore: joi_1.default.boolean().optional(),
|
|
25
|
-
exportServices: joi_1.default.boolean().optional(),
|
|
26
|
-
exportModels: joi_1.default.boolean().optional(),
|
|
27
|
-
exportSchemas: joi_1.default.boolean().optional(),
|
|
14
|
+
/** Special parameters */
|
|
15
|
+
const baseSpecialParametersSchema = zod_1.z.object({
|
|
16
|
+
useOptions: zod_1.z.boolean().optional(),
|
|
17
|
+
useUnionTypes: zod_1.z.boolean().optional(),
|
|
28
18
|
});
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
19
|
+
exports.specialParametersSchemas = baseSpecialParametersSchema.merge(zod_1.z.object({
|
|
20
|
+
exportCore: zod_1.z.boolean().optional(),
|
|
21
|
+
exportServices: zod_1.z.boolean().optional(),
|
|
22
|
+
exportModels: zod_1.z.boolean().optional(),
|
|
23
|
+
exportSchemas: zod_1.z.boolean().optional(),
|
|
24
|
+
}));
|
|
25
|
+
exports.specialParametersSchemasV2 = baseSpecialParametersSchema.merge(zod_1.z.object({
|
|
26
|
+
excludeCoreServiceFiles: zod_1.z.boolean().optional(),
|
|
27
|
+
includeSchemasFiles: zod_1.z.boolean().optional(),
|
|
28
|
+
}));
|
|
29
|
+
exports.specialParametersSchemasV3 = baseSpecialParametersSchema.merge(zod_1.z.object({
|
|
30
|
+
excludeCoreServiceFiles: zod_1.z.boolean().optional(),
|
|
31
|
+
validationLibrary: zod_1.z.enum(ValidationLibrary_enum_1.ValidationLibrary).optional(),
|
|
32
|
+
}));
|
|
33
|
+
/** Additional parameters */
|
|
34
|
+
exports.additionalParametersSchema = zod_1.z.object({
|
|
35
|
+
clean: zod_1.z.boolean().optional(),
|
|
36
|
+
request: zod_1.z.string().optional(),
|
|
37
|
+
interfacePrefix: zod_1.z.string().optional(),
|
|
38
|
+
enumPrefix: zod_1.z.string().optional(),
|
|
39
|
+
typePrefix: zod_1.z.string().optional(),
|
|
37
40
|
});
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
*/
|
|
41
|
-
exports.additionalParametersSchema = joi_1.default.object({
|
|
42
|
-
clean: joi_1.default.boolean().optional(),
|
|
43
|
-
request: joi_1.default.string().optional(),
|
|
44
|
-
interfacePrefix: joi_1.default.string().optional(),
|
|
45
|
-
enumPrefix: joi_1.default.string().optional(),
|
|
46
|
-
typePrefix: joi_1.default.string().optional(),
|
|
41
|
+
exports.additionalParametersSchemaV2 = exports.additionalParametersSchema.omit({
|
|
42
|
+
clean: true,
|
|
47
43
|
});
|
|
48
|
-
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
exports.additionalParametersSchemaV2 = joi_1.default.object({
|
|
52
|
-
request: joi_1.default.string().optional(),
|
|
53
|
-
interfacePrefix: joi_1.default.string().optional(),
|
|
54
|
-
enumPrefix: joi_1.default.string().optional(),
|
|
55
|
-
typePrefix: joi_1.default.string().optional(),
|
|
44
|
+
/** Experimental parameters */
|
|
45
|
+
exports.experimentalParametersSchema = zod_1.z.object({
|
|
46
|
+
useCancelableRequest: zod_1.z.boolean().optional(),
|
|
56
47
|
});
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
useCancelableRequest: joi_1.default.boolean().optional(),
|
|
62
|
-
});
|
|
63
|
-
/**
|
|
64
|
-
* The schema of experimental parameters.
|
|
65
|
-
*/
|
|
66
|
-
exports.experimentalParametersSchemaV2 = joi_1.default.object({
|
|
67
|
-
useCancelableRequest: joi_1.default.boolean().optional(),
|
|
68
|
-
sortByRequired: joi_1.default.boolean().optional(),
|
|
69
|
-
useSeparatedIndexes: joi_1.default.boolean().optional(),
|
|
48
|
+
exports.experimentalParametersSchemaV2 = zod_1.z.object({
|
|
49
|
+
...exports.experimentalParametersSchema.shape,
|
|
50
|
+
sortByRequired: zod_1.z.boolean().optional(),
|
|
51
|
+
useSeparatedIndexes: zod_1.z.boolean().optional(),
|
|
70
52
|
});
|
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;
|
|
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"}
|