ts-openapi-codegen 2.0.0-beta.7 → 2.0.0-beta.9
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 +104 -0
- package/README.rus.md +104 -0
- 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/generateOpenApiClient/generateOpenApiClient.d.ts.map +1 -1
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.js +4 -5
- package/dist/cli/index.js +5 -5
- package/dist/cli/initOpenApiConfig/init.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/init.js +5 -13
- package/dist/cli/initOpenApiConfig/initConfig.js +3 -3
- package/dist/cli/previewChanges/previewChanges.d.ts.map +1 -1
- package/dist/cli/previewChanges/previewChanges.js +12 -5
- package/dist/cli/schemas/base.d.ts +6 -1
- package/dist/cli/schemas/base.d.ts.map +1 -1
- package/dist/cli/schemas/base.js +10 -6
- package/dist/cli/schemas/checkConfig.d.ts +1 -1
- package/dist/cli/schemas/generate.d.ts +1 -25
- package/dist/cli/schemas/generate.d.ts.map +1 -1
- package/dist/cli/schemas/generate.js +21 -32
- package/dist/cli/schemas/index.d.ts +2 -1
- package/dist/cli/schemas/index.d.ts.map +1 -1
- package/dist/cli/schemas/index.js +1 -0
- package/dist/cli/schemas/init.d.ts +5 -5
- package/dist/cli/schemas/init.d.ts.map +1 -1
- package/dist/cli/schemas/init.js +4 -5
- 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 +1 -1
- package/dist/common/Consts.d.ts +2 -0
- package/dist/common/Consts.d.ts.map +1 -1
- package/dist/common/Consts.js +4 -1
- package/dist/common/LoggerMessages.js +1 -1
- package/dist/common/TRawOptions.d.ts +1 -1
- 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/{cli/validation/errorFormatter.js → common/Validation/formatZodError.js} +14 -13
- package/dist/common/Validation/index.d.ts +3 -0
- package/dist/common/Validation/index.d.ts.map +1 -0
- package/dist/{cli/validation → common/Validation}/index.js +2 -2
- package/dist/{cli/validation/validateCLIOptions.d.ts → common/Validation/validateZodOptions.d.ts} +4 -4
- package/dist/common/Validation/validateZodOptions.d.ts.map +1 -0
- package/dist/{cli/validation/validateCLIOptions.js → common/Validation/validateZodOptions.js} +7 -10
- 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 -14
- 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 +36 -6
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.js +33 -37
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts +37 -6
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.js +30 -37
- 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 -30
- package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.js +47 -72
- 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/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/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/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/core/Context.d.ts +6 -5
- package/dist/core/Context.d.ts.map +1 -1
- package/dist/core/Context.js +69 -26
- package/dist/core/OpenApiClient.d.ts.map +1 -1
- package/dist/core/OpenApiClient.js +12 -8
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +4 -0
- package/dist/core/__tests__/WriteClient.test.js +3 -0
- 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 +1 -2
- 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 +2 -2
- 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 +1 -2
- 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.js +2 -2
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +2 -0
- package/dist/core/types/base/Templates.model.d.ts +3 -0
- package/dist/core/types/base/Templates.model.d.ts.map +1 -1
- package/dist/core/utils/__mocks__/templates.d.ts.map +1 -1
- package/dist/core/utils/__mocks__/templates.js +3 -0
- package/dist/core/utils/__tests__/isSubdirectory.test.js +2 -2
- package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarTemplates.js +9 -3
- package/dist/core/utils/serviceHelpers.d.ts.map +1 -1
- package/dist/core/utils/serviceHelpers.js +32 -6
- 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.map +1 -1
- package/dist/core/utils/writeClientCore.js +5 -3
- 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.map +1 -0
- package/dist/templatesCompiled/client/core/{createExecutorAdapter.js → executor/createExecutorAdapter.js} +3 -3
- package/dist/templatesCompiled/client/core/executor/requestExecutor.d.ts +8 -0
- 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/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.map +1 -1
- package/dist/templatesCompiled/client/exportClient.js +14 -10
- package/dist/templatesCompiled/client/exportService.js +1 -1
- package/dist/templatesCompiled/client/indexCore.js +2 -2
- package/dist/templatesCompiled/client/indexFull.js +2 -2
- 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/package.json +1 -1
- package/dist/cli/validation/errorFormatter.d.ts +0 -6
- package/dist/cli/validation/errorFormatter.d.ts.map +0 -1
- package/dist/cli/validation/index.d.ts +0 -3
- package/dist/cli/validation/index.d.ts.map +0 -1
- package/dist/cli/validation/validateCLIOptions.d.ts.map +0 -1
- 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/schemas/configSchemas.d.ts +0 -91
- package/dist/common/schemas/configSchemas.d.ts.map +0 -1
- package/dist/common/schemas/configSchemas.js +0 -131
- 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/utils/__tests__/getRelativeModelPath.test.d.ts +0 -2
- package/dist/core/utils/__tests__/getRelativeModelPath.test.d.ts.map +0 -1
- package/dist/core/utils/__tests__/getRelativeModelPath.test.js +0 -21
- package/dist/core/utils/getRelativeModelPath.d.ts +0 -9
- package/dist/core/utils/getRelativeModelPath.d.ts.map +0 -1
- package/dist/core/utils/getRelativeModelPath.js +0 -37
- package/dist/templatesCompiled/client/core/createExecutorAdapter.d.ts.map +0 -1
- package/dist/templatesCompiled/client/core/request-executor.d.ts.map +0 -1
- package/dist/templatesCompiled/client/core/request-executor.js +0 -11
- /package/dist/templatesCompiled/client/core/{createExecutorAdapter.d.ts → executor/createExecutorAdapter.d.ts} +0 -0
|
@@ -1,6 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpClient } from '../../../core';
|
|
3
|
+
export declare const multiOptionsSchemaV1: z.ZodObject<{
|
|
4
|
+
input: z.ZodString;
|
|
5
|
+
client: z.ZodOptional<z.ZodEnum<typeof HttpClient>>;
|
|
6
|
+
items: z.ZodArray<z.ZodObject<{
|
|
7
|
+
input: z.ZodString;
|
|
8
|
+
}, z.core.$strip>>;
|
|
9
|
+
clean: 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
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
exportCore: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
exportServices: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
exportModels: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
exportSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
output: z.ZodString;
|
|
21
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
22
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
23
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
24
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
25
|
+
}, z.core.$strip>;
|
|
6
26
|
//# sourceMappingURL=MultiOptionsSchemaV1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOptionsSchemaV1.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MultiOptionsSchemaV1.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAO3C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;iBAO/B,CAAC"}
|
|
@@ -1,23 +1,40 @@
|
|
|
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
3
|
exports.multiOptionsSchemaV1 = void 0;
|
|
7
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
8
5
|
const core_1 = require("../../../core");
|
|
9
6
|
const CommonSchemas_1 = require("../CommonSchemas");
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
const multiItemInputSchema = zod_1.z.object({
|
|
8
|
+
input: zod_1.z.string(),
|
|
9
|
+
});
|
|
10
|
+
exports.multiOptionsSchemaV1 = zod_1.z.object({
|
|
11
|
+
...CommonSchemas_1.outputPathsSchema.shape,
|
|
12
|
+
...CommonSchemas_1.specialParametersSchemas.shape,
|
|
13
|
+
...CommonSchemas_1.additionalParametersSchema.shape,
|
|
14
|
+
input: zod_1.z.string(),
|
|
15
|
+
client: zod_1.z.enum(core_1.HttpClient).optional(),
|
|
16
|
+
items: zod_1.z.array(multiItemInputSchema).min(1),
|
|
17
|
+
});
|
|
18
|
+
/*
|
|
19
|
+
type TMulti = {
|
|
20
|
+
input: string;
|
|
21
|
+
items: { ... 1 more }[];
|
|
22
|
+
output: string;
|
|
23
|
+
client: HttpClient.FETCH | HttpClient.XHR | HttpClient.NODE | HttpClient.AXIOS | undefined;
|
|
24
|
+
clean: boolean | undefined;
|
|
25
|
+
request: string | undefined;
|
|
26
|
+
interfacePrefix: string | undefined;
|
|
27
|
+
enumPrefix: string | undefined;
|
|
28
|
+
typePrefix: string | undefined;
|
|
29
|
+
useOptions: boolean | undefined;
|
|
30
|
+
useUnionTypes: boolean | undefined;
|
|
31
|
+
exportCore: boolean | undefined;
|
|
32
|
+
exportServices: boolean | undefined;
|
|
33
|
+
exportModels: boolean | undefined;
|
|
34
|
+
exportSchemas: boolean | undefined;
|
|
35
|
+
outputCore: string | undefined;
|
|
36
|
+
outputServices: string | undefined;
|
|
37
|
+
outputModels: string | undefined;
|
|
38
|
+
outputSchemas: string | undefined;
|
|
39
|
+
}
|
|
13
40
|
*/
|
|
14
|
-
exports.multiOptionsSchemaV1 = (0, mergeObjectSchemas_1.mergeObjectSchemas)(joi_1.default.object({
|
|
15
|
-
input: joi_1.default.string().required(),
|
|
16
|
-
client: joi_1.default.string().valid(...Object.values(core_1.HttpClient)),
|
|
17
|
-
items: joi_1.default.array()
|
|
18
|
-
.items({
|
|
19
|
-
input: joi_1.default.string().required(),
|
|
20
|
-
})
|
|
21
|
-
.min(1)
|
|
22
|
-
.required(),
|
|
23
|
-
}), CommonSchemas_1.outputPathsSchema, CommonSchemas_1.specialParametersSchemas, CommonSchemas_1.additionalParametersSchema);
|
|
@@ -1,6 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpClient } from '../../../core';
|
|
3
|
+
export declare const multiOptionsSchemaV2: z.ZodObject<{
|
|
4
|
+
input: z.ZodString;
|
|
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
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
exportCore: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
exportServices: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
exportModels: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
exportSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
clean: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
request: z.ZodOptional<z.ZodString>;
|
|
18
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
19
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
20
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
21
|
+
items: z.ZodArray<z.ZodObject<{
|
|
22
|
+
input: z.ZodString;
|
|
23
|
+
}, z.core.$strip>>;
|
|
24
|
+
httpClient: z.ZodOptional<z.ZodEnum<typeof HttpClient>>;
|
|
25
|
+
}, z.core.$strip>;
|
|
6
26
|
//# sourceMappingURL=MultiOptionsSchemaV2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOptionsSchemaV2.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MultiOptionsSchemaV2.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;iBAE/B,CAAC"}
|
|
@@ -1,23 +1,32 @@
|
|
|
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
3
|
exports.multiOptionsSchemaV2 = void 0;
|
|
7
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
8
5
|
const core_1 = require("../../../core");
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
items:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
6
|
+
const MultiOptionsSchemaV1_1 = require("./MultiOptionsSchemaV1");
|
|
7
|
+
exports.multiOptionsSchemaV2 = MultiOptionsSchemaV1_1.multiOptionsSchemaV1.omit({ client: true }).extend({
|
|
8
|
+
httpClient: zod_1.z.enum(core_1.HttpClient).optional(),
|
|
9
|
+
});
|
|
10
|
+
/*
|
|
11
|
+
type TMulti = {
|
|
12
|
+
output: string;
|
|
13
|
+
input: string;
|
|
14
|
+
items: { ... 1 more }[];
|
|
15
|
+
outputCore: string | undefined;
|
|
16
|
+
outputServices: string | undefined;
|
|
17
|
+
outputModels: string | undefined;
|
|
18
|
+
outputSchemas: string | undefined;
|
|
19
|
+
useOptions: boolean | undefined;
|
|
20
|
+
useUnionTypes: boolean | undefined;
|
|
21
|
+
exportCore: boolean | undefined;
|
|
22
|
+
exportServices: boolean | undefined;
|
|
23
|
+
exportModels: boolean | undefined;
|
|
24
|
+
exportSchemas: boolean | undefined;
|
|
25
|
+
clean: boolean | undefined;
|
|
26
|
+
request: string | undefined;
|
|
27
|
+
interfacePrefix: string | undefined;
|
|
28
|
+
enumPrefix: string | undefined;
|
|
29
|
+
typePrefix: string | undefined;
|
|
30
|
+
httpClient: HttpClient.FETCH | HttpClient.XHR | HttpClient.NODE | HttpClient.AXIOS | undefined;
|
|
31
|
+
}
|
|
32
|
+
*/
|
|
@@ -1,5 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
1
2
|
/**
|
|
2
3
|
* The scheme of a set of generator options (v3)
|
|
3
4
|
*/
|
|
4
|
-
export declare const multiOptionsSchemaV3:
|
|
5
|
+
export declare const multiOptionsSchemaV3: z.ZodObject<{
|
|
6
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
input: z.ZodString;
|
|
8
|
+
output: z.ZodString;
|
|
9
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
10
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
11
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
12
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
13
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
exportCore: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
exportServices: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
exportModels: z.ZodOptional<z.ZodBoolean>;
|
|
18
|
+
exportSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
19
|
+
clean: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
request: z.ZodOptional<z.ZodString>;
|
|
21
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
22
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
23
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
24
|
+
items: z.ZodArray<z.ZodObject<{
|
|
25
|
+
input: z.ZodString;
|
|
26
|
+
}, z.core.$strip>>;
|
|
27
|
+
httpClient: z.ZodOptional<z.ZodEnum<typeof import("../../..").HttpClient>>;
|
|
28
|
+
}, z.core.$strip>;
|
|
5
29
|
//# sourceMappingURL=MultiOptionsSchemaV3.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultiOptionsSchemaV3.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAKtB;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;iBAG/B,CAAC"}
|
|
@@ -1,10 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.multiOptionsSchemaV3 = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
4
5
|
const CommonSchemas_1 = require("../CommonSchemas");
|
|
5
|
-
const mergeObjectSchemas_1 = require("../Utils/mergeObjectSchemas");
|
|
6
6
|
const MultiOptionsSchemaV2_1 = require("./MultiOptionsSchemaV2");
|
|
7
7
|
/**
|
|
8
8
|
* The scheme of a set of generator options (v3)
|
|
9
9
|
*/
|
|
10
|
-
exports.multiOptionsSchemaV3 =
|
|
10
|
+
exports.multiOptionsSchemaV3 = zod_1.z.object({
|
|
11
|
+
...MultiOptionsSchemaV2_1.multiOptionsSchemaV2.shape,
|
|
12
|
+
...CommonSchemas_1.experimentalParametersSchema.shape,
|
|
13
|
+
});
|
|
14
|
+
/*
|
|
15
|
+
type TMulti = {
|
|
16
|
+
output: string;
|
|
17
|
+
input: string;
|
|
18
|
+
items: { ... 1 more }[];
|
|
19
|
+
useCancelableRequest: boolean | undefined;
|
|
20
|
+
outputCore: string | undefined;
|
|
21
|
+
outputServices: string | undefined;
|
|
22
|
+
outputModels: string | undefined;
|
|
23
|
+
outputSchemas: string | undefined;
|
|
24
|
+
useOptions: boolean | undefined;
|
|
25
|
+
useUnionTypes: boolean | undefined;
|
|
26
|
+
exportCore: boolean | undefined;
|
|
27
|
+
exportServices: boolean | undefined;
|
|
28
|
+
exportModels: boolean | undefined;
|
|
29
|
+
exportSchemas: boolean | undefined;
|
|
30
|
+
clean: boolean | undefined;
|
|
31
|
+
request: string | undefined;
|
|
32
|
+
interfacePrefix: string | undefined;
|
|
33
|
+
enumPrefix: string | undefined;
|
|
34
|
+
typePrefix: string | undefined;
|
|
35
|
+
httpClient: HttpClient.FETCH | HttpClient.XHR | HttpClient.NODE | HttpClient.AXIOS | undefined;
|
|
36
|
+
}
|
|
37
|
+
*/
|
|
@@ -1,6 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { HttpClient } from '../../../core';
|
|
3
|
+
export declare const multiOptionsSchemaV4: z.ZodObject<{
|
|
4
|
+
httpClient: z.ZodOptional<z.ZodEnum<typeof HttpClient>>;
|
|
5
|
+
items: z.ZodArray<z.ZodObject<{
|
|
6
|
+
input: z.ZodString;
|
|
7
|
+
output: z.ZodString;
|
|
8
|
+
outputCore: z.ZodOptional<z.ZodString>;
|
|
9
|
+
outputServices: z.ZodOptional<z.ZodString>;
|
|
10
|
+
outputModels: z.ZodOptional<z.ZodString>;
|
|
11
|
+
outputSchemas: z.ZodOptional<z.ZodString>;
|
|
12
|
+
}, z.core.$strip>>;
|
|
13
|
+
useCancelableRequest: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
clean: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
request: z.ZodOptional<z.ZodString>;
|
|
16
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
17
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
18
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
19
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
exportCore: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
exportServices: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
exportModels: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
exportSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
+
}, z.core.$strip>;
|
|
6
26
|
//# sourceMappingURL=MultiOptionsSchemaV4.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOptionsSchemaV4.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MultiOptionsSchemaV4.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAW3C,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;iBAM/B,CAAC"}
|
|
@@ -1,22 +1,38 @@
|
|
|
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
3
|
exports.multiOptionsSchemaV4 = void 0;
|
|
7
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
8
5
|
const core_1 = require("../../../core");
|
|
9
6
|
const CommonSchemas_1 = require("../CommonSchemas");
|
|
10
|
-
const mergeObjectSchemas_1 = require("../Utils/mergeObjectSchemas");
|
|
11
7
|
/**
|
|
12
8
|
* The scheme of a set of generator options (v4)
|
|
13
9
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
10
|
+
const multiItemSchemaV4 = zod_1.z.object({
|
|
11
|
+
...CommonSchemas_1.outputPathsSchema.shape,
|
|
12
|
+
input: zod_1.z.string(),
|
|
13
|
+
});
|
|
14
|
+
exports.multiOptionsSchemaV4 = zod_1.z.object({
|
|
15
|
+
...CommonSchemas_1.specialParametersSchemas.shape,
|
|
16
|
+
...CommonSchemas_1.additionalParametersSchema.shape,
|
|
17
|
+
...CommonSchemas_1.experimentalParametersSchema.shape,
|
|
18
|
+
httpClient: zod_1.z.enum(core_1.HttpClient).optional(),
|
|
19
|
+
items: zod_1.z.array(multiItemSchemaV4).min(1),
|
|
20
|
+
});
|
|
21
|
+
/*
|
|
22
|
+
type TMulti = {
|
|
23
|
+
items: { ... 6 more }[];
|
|
24
|
+
httpClient: HttpClient.FETCH | HttpClient.XHR | HttpClient.NODE | HttpClient.AXIOS | undefined;
|
|
25
|
+
useCancelableRequest: boolean | undefined;
|
|
26
|
+
clean: boolean | undefined;
|
|
27
|
+
request: string | undefined;
|
|
28
|
+
interfacePrefix: string | undefined;
|
|
29
|
+
enumPrefix: string | undefined;
|
|
30
|
+
typePrefix: string | undefined;
|
|
31
|
+
useOptions: boolean | undefined;
|
|
32
|
+
useUnionTypes: boolean | undefined;
|
|
33
|
+
exportCore: boolean | undefined;
|
|
34
|
+
exportServices: boolean | undefined;
|
|
35
|
+
exportModels: boolean | undefined;
|
|
36
|
+
exportSchemas: boolean | undefined;
|
|
37
|
+
}
|
|
38
|
+
*/
|
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const multiOptionsSchemaV5: 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
|
+
items: z.ZodArray<z.ZodObject<{
|
|
15
|
+
input: z.ZodString;
|
|
16
|
+
output: z.ZodString;
|
|
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
|
+
}, z.core.$strip>>;
|
|
22
|
+
httpClient: z.ZodOptional<z.ZodEnum<typeof import("../../..").HttpClient>>;
|
|
23
|
+
}, z.core.$strip>;
|
|
6
24
|
//# sourceMappingURL=MultiOptionsSchemaV5.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOptionsSchemaV5.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"MultiOptionsSchemaV5.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AActB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;iBAK/B,CAAC"}
|
|
@@ -1,22 +1,37 @@
|
|
|
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
3
|
exports.multiOptionsSchemaV5 = void 0;
|
|
7
|
-
const
|
|
8
|
-
const core_1 = require("../../../core");
|
|
4
|
+
const zod_1 = require("zod");
|
|
9
5
|
const CommonSchemas_1 = require("../CommonSchemas");
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
6
|
+
const MultiOptionsSchemaV4_1 = require("./MultiOptionsSchemaV4");
|
|
7
|
+
const multiOptionsBaseV5 = MultiOptionsSchemaV4_1.multiOptionsSchemaV4.pick({
|
|
8
|
+
items: true,
|
|
9
|
+
httpClient: true,
|
|
10
|
+
request: true,
|
|
11
|
+
interfacePrefix: true,
|
|
12
|
+
enumPrefix: true,
|
|
13
|
+
typePrefix: true,
|
|
14
|
+
});
|
|
15
|
+
exports.multiOptionsSchemaV5 = zod_1.z.object({
|
|
16
|
+
...multiOptionsBaseV5.shape,
|
|
17
|
+
...CommonSchemas_1.specialParametersSchemasV2.shape,
|
|
18
|
+
...CommonSchemas_1.additionalParametersSchemaV2.shape,
|
|
19
|
+
...CommonSchemas_1.experimentalParametersSchemaV2.shape,
|
|
20
|
+
});
|
|
21
|
+
/*
|
|
22
|
+
type TMulti = {
|
|
23
|
+
items: { ... 6 more }[];
|
|
24
|
+
useCancelableRequest: boolean | undefined;
|
|
25
|
+
sortByRequired: boolean | undefined;
|
|
26
|
+
useSeparatedIndexes: boolean | undefined;
|
|
27
|
+
request: string | undefined;
|
|
28
|
+
interfacePrefix: string | undefined;
|
|
29
|
+
enumPrefix: string | undefined;
|
|
30
|
+
typePrefix: string | undefined;
|
|
31
|
+
useOptions: boolean | undefined;
|
|
32
|
+
useUnionTypes: boolean | undefined;
|
|
33
|
+
excludeCoreServiceFiles: boolean | undefined;
|
|
34
|
+
includeSchemasFiles: boolean | undefined;
|
|
35
|
+
httpClient: HttpClient.FETCH | HttpClient.XHR | HttpClient.NODE | HttpClient.AXIOS | undefined;
|
|
36
|
+
}
|
|
37
|
+
*/
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { VersionedSchema } from '../Types';
|
|
3
|
+
export declare const multiOptionsVersionedSchema: VersionedSchema<z.ZodTypeAny>[];
|
|
3
4
|
//# sourceMappingURL=MultiOptionsVersionedSchemas.d.ts.map
|
package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsVersionedSchemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiOptionsVersionedSchemas.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsVersionedSchemas.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultiOptionsVersionedSchemas.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsVersionedSchemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAQ3C,eAAO,MAAM,2BAA2B,EAAE,eAAe,CAAC,CAAC,CAAC,UAAU,CAAC,EA0BtE,CAAC"}
|
|
@@ -2,29 +2,36 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.multiOptionsVersionedSchema = void 0;
|
|
4
4
|
const Enums_1 = require("../Enums");
|
|
5
|
+
const buildVersionedSchema_1 = require("../Utils/buildVersionedSchema");
|
|
5
6
|
const MultiOptionsSchemaV1_1 = require("./MultiOptionsSchemaV1");
|
|
6
7
|
const MultiOptionsSchemaV2_1 = require("./MultiOptionsSchemaV2");
|
|
7
8
|
const MultiOptionsSchemaV3_1 = require("./MultiOptionsSchemaV3");
|
|
8
9
|
const MultiOptionsSchemaV4_1 = require("./MultiOptionsSchemaV4");
|
|
9
10
|
const MultiOptionsSchemaV5_1 = require("./MultiOptionsSchemaV5");
|
|
10
|
-
exports.multiOptionsVersionedSchema = [
|
|
11
|
+
exports.multiOptionsVersionedSchema = [
|
|
12
|
+
(0, buildVersionedSchema_1.buildVersionedSchema)({
|
|
13
|
+
base: MultiOptionsSchemaV1_1.multiOptionsSchemaV1,
|
|
11
14
|
version: 'v1',
|
|
12
|
-
schema: MultiOptionsSchemaV1_1.multiOptionsSchemaV1,
|
|
13
15
|
type: Enums_1.EVersionedSchemaType.MULTI_OPTIONS,
|
|
14
|
-
},
|
|
16
|
+
}),
|
|
17
|
+
(0, buildVersionedSchema_1.buildVersionedSchema)({
|
|
18
|
+
base: MultiOptionsSchemaV2_1.multiOptionsSchemaV2,
|
|
15
19
|
version: 'v2',
|
|
16
|
-
schema: MultiOptionsSchemaV2_1.multiOptionsSchemaV2,
|
|
17
20
|
type: Enums_1.EVersionedSchemaType.MULTI_OPTIONS,
|
|
18
|
-
},
|
|
21
|
+
}),
|
|
22
|
+
(0, buildVersionedSchema_1.buildVersionedSchema)({
|
|
23
|
+
base: MultiOptionsSchemaV3_1.multiOptionsSchemaV3,
|
|
19
24
|
version: 'v3',
|
|
20
|
-
schema: MultiOptionsSchemaV3_1.multiOptionsSchemaV3,
|
|
21
25
|
type: Enums_1.EVersionedSchemaType.MULTI_OPTIONS,
|
|
22
|
-
},
|
|
26
|
+
}),
|
|
27
|
+
(0, buildVersionedSchema_1.buildVersionedSchema)({
|
|
28
|
+
base: MultiOptionsSchemaV4_1.multiOptionsSchemaV4,
|
|
23
29
|
version: 'v4',
|
|
24
|
-
schema: MultiOptionsSchemaV4_1.multiOptionsSchemaV4,
|
|
25
30
|
type: Enums_1.EVersionedSchemaType.MULTI_OPTIONS,
|
|
26
|
-
},
|
|
31
|
+
}),
|
|
32
|
+
(0, buildVersionedSchema_1.buildVersionedSchema)({
|
|
33
|
+
base: MultiOptionsSchemaV5_1.multiOptionsSchemaV5,
|
|
27
34
|
version: 'v5',
|
|
28
|
-
schema: MultiOptionsSchemaV5_1.multiOptionsSchemaV5,
|
|
29
35
|
type: Enums_1.EVersionedSchemaType.MULTI_OPTIONS,
|
|
30
|
-
}
|
|
36
|
+
}),
|
|
37
|
+
];
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { HttpClient } from "../../../core";
|
|
3
|
+
export declare const optionsSchemaV1: z.ZodObject<{
|
|
4
|
+
input: z.ZodString;
|
|
5
|
+
client: z.ZodEnum<typeof HttpClient>;
|
|
6
|
+
clean: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
request: z.ZodOptional<z.ZodString>;
|
|
8
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
9
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
10
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
11
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
exportCore: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
exportServices: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
exportModels: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
exportSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
output: z.ZodString;
|
|
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
|
+
}, z.core.$strip>;
|
|
6
23
|
//# sourceMappingURL=OptionsSchemaV1.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsSchemaV1.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"OptionsSchemaV1.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;iBAM1B,CAAC"}
|
|
@@ -1,17 +1,35 @@
|
|
|
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
3
|
exports.optionsSchemaV1 = void 0;
|
|
7
|
-
const
|
|
4
|
+
const zod_1 = require("zod");
|
|
8
5
|
const core_1 = require("../../../core");
|
|
9
6
|
const CommonSchemas_1 = require("../CommonSchemas");
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
7
|
+
exports.optionsSchemaV1 = zod_1.z.object({
|
|
8
|
+
...CommonSchemas_1.outputPathsSchema.shape,
|
|
9
|
+
...CommonSchemas_1.specialParametersSchemas.shape,
|
|
10
|
+
...CommonSchemas_1.additionalParametersSchema.shape,
|
|
11
|
+
input: zod_1.z.string().min(1),
|
|
12
|
+
client: zod_1.z.enum(core_1.HttpClient),
|
|
13
|
+
});
|
|
14
|
+
/*
|
|
15
|
+
type TOptions = {
|
|
16
|
+
input: string;
|
|
17
|
+
client: HttpClient.FETCH | HttpClient.XHR | HttpClient.NODE | HttpClient.AXIOS;
|
|
18
|
+
output: string;
|
|
19
|
+
clean: boolean | undefined;
|
|
20
|
+
request: string | undefined;
|
|
21
|
+
interfacePrefix: string | undefined;
|
|
22
|
+
enumPrefix: string | undefined;
|
|
23
|
+
typePrefix: string | undefined;
|
|
24
|
+
useOptions: boolean | undefined;
|
|
25
|
+
useUnionTypes: boolean | undefined;
|
|
26
|
+
exportCore: boolean | undefined;
|
|
27
|
+
exportServices: boolean | undefined;
|
|
28
|
+
exportModels: boolean | undefined;
|
|
29
|
+
exportSchemas: boolean | undefined;
|
|
30
|
+
outputCore: string | undefined;
|
|
31
|
+
outputServices: string | undefined;
|
|
32
|
+
outputModels: string | undefined;
|
|
33
|
+
outputSchemas: string | undefined;
|
|
34
|
+
}
|
|
35
|
+
*/
|
|
@@ -1,6 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { HttpClient } from "../../../core";
|
|
3
|
+
export declare const optionsSchemaV2: z.ZodObject<{
|
|
4
|
+
input: z.ZodString;
|
|
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
|
+
useOptions: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
useUnionTypes: z.ZodOptional<z.ZodBoolean>;
|
|
12
|
+
exportCore: z.ZodOptional<z.ZodBoolean>;
|
|
13
|
+
exportServices: z.ZodOptional<z.ZodBoolean>;
|
|
14
|
+
exportModels: z.ZodOptional<z.ZodBoolean>;
|
|
15
|
+
exportSchemas: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
clean: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
request: z.ZodOptional<z.ZodString>;
|
|
18
|
+
interfacePrefix: z.ZodOptional<z.ZodString>;
|
|
19
|
+
enumPrefix: z.ZodOptional<z.ZodString>;
|
|
20
|
+
typePrefix: z.ZodOptional<z.ZodString>;
|
|
21
|
+
httpClient: z.ZodEnum<typeof HttpClient>;
|
|
22
|
+
}, z.core.$strip>;
|
|
6
23
|
//# sourceMappingURL=OptionsSchemaV2.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OptionsSchemaV2.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"OptionsSchemaV2.d.ts","sourceRoot":"","sources":["../../../../src/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAG3C,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;iBAE1B,CAAC"}
|