ts-openapi-codegen 2.0.0-beta.8 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +88 -18
- package/README.rus.md +88 -21
- package/dist/cli/checkAndUpdateConfig/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/checkAndUpdateConfig/utils/validateAndMigrateConfigData.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.js +5 -0
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts.map +1 -1
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.js +24 -13
- package/dist/cli/index.js +10 -8
- 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 +119 -28
- package/dist/cli/previewChanges/utils/updateOutputPaths.d.ts.map +1 -1
- package/dist/cli/previewChanges/utils/updateOutputPaths.js +6 -0
- 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 +8 -2
- package/dist/common/LoggerMessages.d.ts +1 -0
- package/dist/common/LoggerMessages.d.ts.map +1 -1
- package/dist/common/LoggerMessages.js +2 -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/AllMigrationPlans.d.ts +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.js +14 -4
- package/dist/common/VersionedSchema/AllVersionedSchemas/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/UnifiedOptionsSchemaV4.d.ts +42 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.js +38 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts +192 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.js +27 -0
- package/dist/common/VersionedSchema/CommonSchemas.d.ts +61 -30
- package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.js +56 -73
- 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 +104 -0
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.d.ts +2 -0
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.d.ts.map +1 -0
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.js +185 -0
- package/dist/common/VersionedSchema/Utils/__tests__/compareShapes.test.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 +40 -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 +93 -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 +6 -1
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.js +70 -25
- 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 +3 -3
- package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/getUniqueKeysFromSchemas.js +17 -4
- 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 +12 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.js +41 -22
- 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/utils/__tests__/convertArrayToObject.test.js +64 -169
- package/dist/common/utils/convertArrayToObject.d.ts.map +1 -1
- package/dist/common/utils/convertArrayToObject.js +51 -14
- package/dist/core/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 +24 -9
- package/dist/core/WriteClient.d.ts +8 -1
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +48 -7
- package/dist/core/__tests__/WriteClient.test.js +2 -0
- package/dist/core/api/v2/Parser.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 +4 -3
- 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.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getType.js +4 -3
- 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 +1 -1
- package/dist/core/types/base/Templates.model.d.ts.map +1 -1
- package/dist/core/types/enums/EmptySchemaStrategy.enum.d.ts +6 -0
- package/dist/core/types/enums/EmptySchemaStrategy.enum.d.ts.map +1 -0
- package/dist/core/types/enums/EmptySchemaStrategy.enum.js +9 -0
- package/dist/core/utils/__tests__/getRelativeModelPath.test.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__/resolveRefPath.test.d.ts +2 -0
- package/dist/core/utils/__tests__/resolveRefPath.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/resolveRefPath.test.js +22 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.d.ts +2 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.js +121 -0
- package/dist/core/utils/__tests__/writeClientExecutor.test.d.ts +2 -0
- package/dist/core/utils/__tests__/writeClientExecutor.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/writeClientExecutor.test.js +20 -0
- package/dist/core/utils/__tests__/writeClientSchemas.test.js +2 -0
- package/dist/core/utils/getOpenApiSpec.d.ts.map +1 -1
- package/dist/core/utils/getOpenApiSpec.js +14 -1
- package/dist/core/utils/modelHelpers.d.ts.map +1 -1
- package/dist/core/utils/modelHelpers.js +37 -3
- package/dist/core/utils/postProcessModelImports.d.ts.map +1 -1
- package/dist/core/utils/postProcessModelImports.js +14 -1
- package/dist/core/utils/postProcessServiceImports.d.ts.map +1 -1
- package/dist/core/utils/postProcessServiceImports.js +1 -2
- package/dist/core/utils/precompileTemplates.js +1 -0
- package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarHelpers.js +25 -0
- package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarTemplates.js +42 -41
- package/dist/core/utils/resolveRefPath.d.ts.map +1 -1
- package/dist/core/utils/resolveRefPath.js +1 -4
- package/dist/core/utils/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/writeClientExecutor.d.ts +4 -1
- package/dist/core/utils/writeClientExecutor.d.ts.map +1 -1
- package/dist/core/utils/writeClientExecutor.js +17 -2
- package/dist/core/utils/writeClientSchemas.d.ts +4 -1
- package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.js +11 -2
- package/dist/templatesCompiled/client/core/ApiError.js +1 -1
- package/dist/templatesCompiled/client/core/ApiResult.js +1 -1
- package/dist/templatesCompiled/client/core/axios/request.js +3 -3
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts +2 -0
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.js +13 -8
- package/dist/templatesCompiled/client/core/executor/requestExecutor.js +1 -1
- package/dist/templatesCompiled/client/core/fetch/request.js +3 -3
- package/dist/templatesCompiled/client/core/functions/catchErrors.js +1 -1
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.js +1 -1
- package/dist/templatesCompiled/client/core/node/request.js +3 -3
- package/dist/templatesCompiled/client/core/xhr/request.js +3 -3
- package/dist/templatesCompiled/client/exportClient.d.ts +4 -0
- package/dist/templatesCompiled/client/exportClient.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportClient.js +51 -13
- package/dist/templatesCompiled/client/exportSchema.d.ts +5 -1
- package/dist/templatesCompiled/client/exportSchema.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportSchema.js +37 -7
- package/dist/templatesCompiled/client/exportService.d.ts +2 -0
- package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportService.js +71 -31
- package/dist/templatesCompiled/client/indexFull.d.ts +1 -0
- package/dist/templatesCompiled/client/indexFull.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexFull.js +4 -1
- package/dist/templatesCompiled/client/indexSimple.d.ts +1 -0
- package/dist/templatesCompiled/client/indexSimple.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexSimple.js +4 -1
- package/dist/templatesCompiled/client/joi/exportSchema.js +5 -5
- package/dist/templatesCompiled/client/joi/partials/joiSchema.js +7 -7
- package/dist/templatesCompiled/client/joi/partials/joiSchemaComposition.js +4 -4
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts +5 -3
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/joi/partials/joiSchemaInterface.js +39 -12
- package/dist/templatesCompiled/client/jsonschema/exportSchema.js +5 -5
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchema.js +7 -7
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaArray.js +5 -5
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaComposition.js +2 -2
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaDictionary.js +5 -5
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts +3 -1
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.js +45 -15
- package/dist/templatesCompiled/client/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/yup/exportSchema.js +3 -3
- package/dist/templatesCompiled/client/yup/partials/yupSchema.js +7 -7
- package/dist/templatesCompiled/client/yup/partials/yupSchemaComposition.js +4 -4
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts +5 -3
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/yup/partials/yupSchemaInterface.js +39 -12
- package/dist/templatesCompiled/client/zod/exportSchema.js +3 -3
- package/dist/templatesCompiled/client/zod/partials/zodSchema.js +7 -7
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts +5 -6
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaArray.js +14 -28
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts +3 -0
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaComposition.js +32 -8
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts +3 -4
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaDictionary.js +9 -23
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts +4 -2
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaInterface.js +18 -7
- package/package.json +2 -2
- package/dist/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/defaultOptions.d.ts +0 -3
- package/dist/common/defaultOptions.d.ts.map +0 -1
- package/dist/common/defaultOptions.js +0 -28
- 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/advancedDeduplicatePath.d.ts +0 -5
- package/dist/core/utils/advancedDeduplicatePath.d.ts.map +0 -1
- package/dist/core/utils/advancedDeduplicatePath.js +0 -29
|
@@ -7,13 +7,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
/* eslint: disable */
|
|
8
8
|
// @ts-nocheck
|
|
9
9
|
exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
10
|
-
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
10
|
+
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
11
11
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
12
12
|
return parent[propertyName];
|
|
13
13
|
}
|
|
14
14
|
return undefined;
|
|
15
15
|
};
|
|
16
|
-
return
|
|
16
|
+
return "Joi.object({\n"
|
|
17
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "properties"), { "name": "each", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 5, "column": 9 } } })) != null ? stack1 : "")
|
|
18
|
+
+ "})"
|
|
19
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(7, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 2 }, "end": { "line": 6, "column": 39 } } })) != null ? stack1 : "")
|
|
20
|
+
+ "\n";
|
|
17
21
|
}, "2": function (container, depth0, helpers, partials, data) {
|
|
18
22
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
19
23
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -24,27 +28,50 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
24
28
|
return " "
|
|
25
29
|
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 4, "column": 7 }, "end": { "line": 4, "column": 11 } }), depth0)) != null ? stack1 : "")
|
|
26
30
|
+ ": "
|
|
27
|
-
+ ((stack1 = container.invokePartial(lookupProperty(partials, "joiSchema"), depth0, { "name": "joiSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
28
|
-
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(depth0, "isRequired"), { "name": "unless", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column":
|
|
29
|
-
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(data, "last"), { "name": "unless", "hash": {}, "fn": container.program(5, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column":
|
|
31
|
+
+ ((stack1 = container.invokePartial(lookupProperty(partials, "joi/joiSchema"), depth0, { "name": "joi/joiSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
32
|
+
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(depth0, "isRequired"), { "name": "unless", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 34 }, "end": { "line": 4, "column": 78 } } })) != null ? stack1 : "")
|
|
33
|
+
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(data, "last"), { "name": "unless", "hash": {}, "fn": container.program(5, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 78 }, "end": { "line": 4, "column": 107 } } })) != null ? stack1 : "")
|
|
30
34
|
+ "\n";
|
|
31
35
|
}, "3": function (container, depth0, helpers, partials, data) {
|
|
32
36
|
return ".optional()";
|
|
33
37
|
}, "5": function (container, depth0, helpers, partials, data) {
|
|
34
38
|
return ",";
|
|
35
39
|
}, "7": function (container, depth0, helpers, partials, data) {
|
|
36
|
-
return "})\n";
|
|
37
|
-
}, "9": function (container, depth0, helpers, partials, data) {
|
|
38
40
|
return ".allow(null)";
|
|
41
|
+
}, "9": function (container, depth0, helpers, partials, data) {
|
|
42
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
43
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
44
|
+
return parent[propertyName];
|
|
45
|
+
}
|
|
46
|
+
return undefined;
|
|
47
|
+
};
|
|
48
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "emptySchemaStrategy"), "semantic", { "name": "equals", "hash": {}, "fn": container.program(10, data, 0), "inverse": container.program(12, data, 0), "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 12, "column": 11 } } })) != null ? stack1 : "");
|
|
49
|
+
}, "10": function (container, depth0, helpers, partials, data) {
|
|
50
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
51
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
52
|
+
return parent[propertyName];
|
|
53
|
+
}
|
|
54
|
+
return undefined;
|
|
55
|
+
};
|
|
56
|
+
return "Joi.object().unknown(true)"
|
|
57
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(7, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 9, "column": 26 }, "end": { "line": 9, "column": 63 } } })) != null ? stack1 : "")
|
|
58
|
+
+ "\n";
|
|
59
|
+
}, "12": function (container, depth0, helpers, partials, data) {
|
|
60
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
61
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
62
|
+
return parent[propertyName];
|
|
63
|
+
}
|
|
64
|
+
return undefined;
|
|
65
|
+
};
|
|
66
|
+
return "Joi.object({})"
|
|
67
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(7, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 11, "column": 14 }, "end": { "line": 11, "column": 51 } } })) != null ? stack1 : "")
|
|
68
|
+
+ "\n";
|
|
39
69
|
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
40
|
-
var stack1,
|
|
70
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
41
71
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
42
72
|
return parent[propertyName];
|
|
43
73
|
}
|
|
44
74
|
return undefined;
|
|
45
75
|
};
|
|
46
|
-
return "
|
|
47
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "properties"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(7, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 8, "column": 7 } } })) != null ? stack1 : "")
|
|
48
|
-
+ "})"
|
|
49
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(9, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 9, "column": 2 }, "end": { "line": 9, "column": 39 } } })) != null ? stack1 : "");
|
|
76
|
+
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "properties"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(9, data, 0), "data": data, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 13, "column": 7 } } })) != null ? stack1 : "");
|
|
50
77
|
}, "usePartial": true, "useData": true };
|
|
@@ -27,7 +27,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
27
27
|
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column": 25 }, "end": { "line": 5, "column": 66 } } })) != null ? stack1 : "")
|
|
28
28
|
+ " } from '"
|
|
29
29
|
+ ((stack1 = lookupProperty(helpers, "normalizePath").call(alias1, lookupProperty(depth0, "path"), { "name": "normalizePath", "hash": {}, "data": data, "loc": { "start": { "line": 5, "column": 75 }, "end": { "line": 5, "column": 99 } } })) != null ? stack1 : "")
|
|
30
|
-
+ "';\n";
|
|
30
|
+
+ "Schema';\n";
|
|
31
31
|
}, "3": function (container, depth0, helpers, partials, data) {
|
|
32
32
|
var stack1;
|
|
33
33
|
return " as "
|
|
@@ -43,17 +43,17 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
43
43
|
return ((stack1 = container.invokePartial(lookupProperty(partials, "header"), depth0, { "name": "header", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
44
44
|
+ "\n"
|
|
45
45
|
+ ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "imports"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 7, "column": 7 } } })) != null ? stack1 : "")
|
|
46
|
-
+ "\nimport Ajv from 'ajv';\nimport addFormats from 'ajv-formats';\n\nconst ajv = new Ajv({ allErrors: true });\naddFormats(ajv);\n\nexport const "
|
|
46
|
+
+ "\nimport Ajv, { ErrorObject } from 'ajv';\nimport addFormats from 'ajv-formats';\n\nconst ajv = new Ajv({ allErrors: true });\naddFormats(ajv);\n\nexport const "
|
|
47
47
|
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 15, "column": 16 }, "end": { "line": 15, "column": 20 } }), depth0)) != null ? stack1 : "")
|
|
48
48
|
+ "Schema = "
|
|
49
|
-
+ ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschemaSchema"), depth0, { "name": "jsonschemaSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
49
|
+
+ ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschema/jsonschemaSchema"), depth0, { "name": "jsonschema/jsonschemaSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
50
50
|
+ ";\n\nexport type "
|
|
51
51
|
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 19 } }), depth0)) != null ? stack1 : "")
|
|
52
52
|
+ " = any; // JSON Schema doesn't provide type inference\n\nexport function validate"
|
|
53
53
|
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 19, "column": 27 }, "end": { "line": 19, "column": 31 } }), depth0)) != null ? stack1 : "")
|
|
54
54
|
+ "(data: unknown): { valid: true; data: "
|
|
55
55
|
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 19, "column": 75 }, "end": { "line": 19, "column": 79 } }), depth0)) != null ? stack1 : "")
|
|
56
|
-
+ " } | { valid: false; errors:
|
|
56
|
+
+ " } | { valid: false; errors: ErrorObject[] } {\n const validate = ajv.compile("
|
|
57
57
|
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 20, "column": 36 }, "end": { "line": 20, "column": 40 } }), depth0)) != null ? stack1 : "")
|
|
58
58
|
+ "Schema);\n const valid = validate(data);\n if (valid) {\n return { valid: true, data: data as "
|
|
59
59
|
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 23, "column": 47 }, "end": { "line": 23, "column": 51 } }), depth0)) != null ? stack1 : "")
|
|
@@ -65,5 +65,5 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
65
65
|
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 29, "column": 36 }, "end": { "line": 29, "column": 40 } }), depth0)) != null ? stack1 : "")
|
|
66
66
|
+ "Schema);\n const valid = validate(data);\n if (!valid) {\n throw new Error(ajv.errorsText(validate.errors));\n }\n return data as "
|
|
67
67
|
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 34, "column": 22 }, "end": { "line": 34, "column": 26 } }), depth0)) != null ? stack1 : "")
|
|
68
|
-
+ ";\n}";
|
|
68
|
+
+ ";\n}\n";
|
|
69
69
|
}, "usePartial": true, "useData": true };
|
|
@@ -13,7 +13,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
13
13
|
}
|
|
14
14
|
return undefined;
|
|
15
15
|
};
|
|
16
|
-
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschemaSchemaInterface"), depth0, { "name": "jsonschemaSchemaInterface", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
16
|
+
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschema/jsonschemaSchemaInterface"), depth0, { "name": "jsonschema/jsonschemaSchemaInterface", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
17
17
|
}, "3": function (container, depth0, helpers, partials, data) {
|
|
18
18
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
19
19
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -29,7 +29,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
29
29
|
}
|
|
30
30
|
return undefined;
|
|
31
31
|
};
|
|
32
|
-
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschemaSchemaEnum"), depth0, { "name": "jsonschemaSchemaEnum", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
32
|
+
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschema/jsonschemaSchemaEnum"), depth0, { "name": "jsonschema/jsonschemaSchemaEnum", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
33
33
|
}, "6": function (container, depth0, helpers, partials, data) {
|
|
34
34
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
35
35
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -45,7 +45,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
45
45
|
}
|
|
46
46
|
return undefined;
|
|
47
47
|
};
|
|
48
|
-
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschemaSchemaArray"), depth0, { "name": "jsonschemaSchemaArray", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
48
|
+
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschema/jsonschemaSchemaArray"), depth0, { "name": "jsonschema/jsonschemaSchemaArray", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
49
49
|
}, "9": function (container, depth0, helpers, partials, data) {
|
|
50
50
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
51
51
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -61,7 +61,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
61
61
|
}
|
|
62
62
|
return undefined;
|
|
63
63
|
};
|
|
64
|
-
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschemaSchemaDictionary"), depth0, { "name": "jsonschemaSchemaDictionary", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
64
|
+
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschema/jsonschemaSchemaDictionary"), depth0, { "name": "jsonschema/jsonschemaSchemaDictionary", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
65
65
|
}, "12": function (container, depth0, helpers, partials, data) {
|
|
66
66
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
67
67
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -77,7 +77,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
77
77
|
}
|
|
78
78
|
return undefined;
|
|
79
79
|
};
|
|
80
|
-
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschemaSchemaComposition"), depth0, { "name": "jsonschemaSchemaComposition", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
80
|
+
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschema/jsonschemaSchemaComposition"), depth0, { "name": "jsonschema/jsonschemaSchemaComposition", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
81
81
|
}, "15": function (container, depth0, helpers, partials, data) {
|
|
82
82
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
83
83
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -109,7 +109,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
109
109
|
}
|
|
110
110
|
return undefined;
|
|
111
111
|
};
|
|
112
|
-
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschemaSchemaReference"), depth0, { "name": "jsonschemaSchemaReference", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
112
|
+
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschema/jsonschemaSchemaReference"), depth0, { "name": "jsonschema/jsonschemaSchemaReference", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
113
113
|
}, "20": function (container, depth0, helpers, partials, data) {
|
|
114
114
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
115
115
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -117,7 +117,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
117
117
|
}
|
|
118
118
|
return undefined;
|
|
119
119
|
};
|
|
120
|
-
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschemaSchemaGeneric"), depth0, { "name": "jsonschemaSchemaGeneric", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
120
|
+
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschema/jsonschemaSchemaGeneric"), depth0, { "name": "jsonschema/jsonschemaSchemaGeneric", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
121
121
|
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
122
122
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
123
123
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -13,7 +13,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
13
13
|
}
|
|
14
14
|
return undefined;
|
|
15
15
|
};
|
|
16
|
-
return ((stack1 = lookupProperty(helpers, "isBasicType").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "link"), { "name": "isBasicType", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.program(4, data, 0), "data": data, "loc": { "start": { "line": 3, "column": 23 }, "end": { "line": 3, "column":
|
|
16
|
+
return ((stack1 = lookupProperty(helpers, "isBasicType").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "link"), { "name": "isBasicType", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.program(4, data, 0), "data": data, "loc": { "start": { "line": 3, "column": 23 }, "end": { "line": 3, "column": 133 } } })) != null ? stack1 : "");
|
|
17
17
|
}, "2": function (container, depth0, helpers, partials, data) {
|
|
18
18
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
19
19
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -21,7 +21,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
21
21
|
}
|
|
22
22
|
return undefined;
|
|
23
23
|
};
|
|
24
|
-
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschemaSchemaGeneric"), lookupProperty(depth0, "link"), { "name": "jsonschemaSchemaGeneric", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
24
|
+
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschema/jsonschemaSchemaGeneric"), lookupProperty(depth0, "link"), { "name": "jsonschema/jsonschemaSchemaGeneric", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
25
25
|
}, "4": function (container, depth0, helpers, partials, data) {
|
|
26
26
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
27
27
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -29,7 +29,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
29
29
|
}
|
|
30
30
|
return undefined;
|
|
31
31
|
};
|
|
32
|
-
return ((stack1 = container.lambda(container.strict(lookupProperty(depth0, "link"), "type", { "start": { "line": 3, "column":
|
|
32
|
+
return ((stack1 = container.lambda(container.strict(lookupProperty(depth0, "link"), "type", { "start": { "line": 3, "column": 99 }, "end": { "line": 3, "column": 108 } }), depth0)) != null ? stack1 : "")
|
|
33
33
|
+ "Schema";
|
|
34
34
|
}, "6": function (container, depth0, helpers, partials, data) {
|
|
35
35
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
@@ -38,7 +38,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
38
38
|
}
|
|
39
39
|
return undefined;
|
|
40
40
|
};
|
|
41
|
-
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschemaSchemaGeneric"), depth0, { "name": "jsonschemaSchemaGeneric", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
41
|
+
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschema/jsonschemaSchemaGeneric"), depth0, { "name": "jsonschema/jsonschemaSchemaGeneric", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
42
42
|
}, "8": function (container, depth0, helpers, partials, data) {
|
|
43
43
|
var stack1;
|
|
44
44
|
return " minItems: "
|
|
@@ -64,7 +64,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
64
64
|
return undefined;
|
|
65
65
|
};
|
|
66
66
|
return "{\n type: 'array',\n items: "
|
|
67
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "link"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(6, data, 0), "data": data, "loc": { "start": { "line": 3, "column": 11 }, "end": { "line": 3, "column":
|
|
67
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "link"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(6, data, 0), "data": data, "loc": { "start": { "line": 3, "column": 11 }, "end": { "line": 3, "column": 187 } } })) != null ? stack1 : "")
|
|
68
68
|
+ ",\n"
|
|
69
69
|
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minItems"), { "name": "if", "hash": {}, "fn": container.program(8, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 6, "column": 7 } } })) != null ? stack1 : "")
|
|
70
70
|
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maxItems"), { "name": "if", "hash": {}, "fn": container.program(10, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 9, "column": 7 } } })) != null ? stack1 : "")
|
|
@@ -26,8 +26,8 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
26
26
|
return undefined;
|
|
27
27
|
};
|
|
28
28
|
return " "
|
|
29
|
-
+ ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschemaSchema"), depth0, { "name": "jsonschemaSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
30
|
-
+ ((stack1 = lookupProperty(helpers, "unless").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(data, "last"), { "name": "unless", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column":
|
|
29
|
+
+ ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschema/jsonschemaSchema"), depth0, { "name": "jsonschema/jsonschemaSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
30
|
+
+ ((stack1 = lookupProperty(helpers, "unless").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(data, "last"), { "name": "unless", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column": 40 }, "end": { "line": 5, "column": 69 } } })) != null ? stack1 : "")
|
|
31
31
|
+ "\n";
|
|
32
32
|
}, "3": function (container, depth0, helpers, partials, data) {
|
|
33
33
|
return ",";
|
|
@@ -13,7 +13,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
13
13
|
}
|
|
14
14
|
return undefined;
|
|
15
15
|
};
|
|
16
|
-
return ((stack1 = lookupProperty(helpers, "isBasicType").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "link"), { "name": "isBasicType", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.program(4, data, 0), "data": data, "loc": { "start": { "line": 3, "column": 38 }, "end": { "line": 3, "column":
|
|
16
|
+
return ((stack1 = lookupProperty(helpers, "isBasicType").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "link"), { "name": "isBasicType", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.program(4, data, 0), "data": data, "loc": { "start": { "line": 3, "column": 38 }, "end": { "line": 3, "column": 148 } } })) != null ? stack1 : "");
|
|
17
17
|
}, "2": function (container, depth0, helpers, partials, data) {
|
|
18
18
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
19
19
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -21,7 +21,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
21
21
|
}
|
|
22
22
|
return undefined;
|
|
23
23
|
};
|
|
24
|
-
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschemaSchemaGeneric"), lookupProperty(depth0, "link"), { "name": "jsonschemaSchemaGeneric", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
24
|
+
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschema/jsonschemaSchemaGeneric"), lookupProperty(depth0, "link"), { "name": "jsonschema/jsonschemaSchemaGeneric", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
25
25
|
}, "4": function (container, depth0, helpers, partials, data) {
|
|
26
26
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
27
27
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -29,7 +29,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
29
29
|
}
|
|
30
30
|
return undefined;
|
|
31
31
|
};
|
|
32
|
-
return ((stack1 = container.lambda(container.strict(lookupProperty(depth0, "link"), "type", { "start": { "line": 3, "column":
|
|
32
|
+
return ((stack1 = container.lambda(container.strict(lookupProperty(depth0, "link"), "type", { "start": { "line": 3, "column": 114 }, "end": { "line": 3, "column": 123 } }), depth0)) != null ? stack1 : "")
|
|
33
33
|
+ "Schema";
|
|
34
34
|
}, "6": function (container, depth0, helpers, partials, data) {
|
|
35
35
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
@@ -38,7 +38,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
38
38
|
}
|
|
39
39
|
return undefined;
|
|
40
40
|
};
|
|
41
|
-
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschemaSchemaGeneric"), depth0, { "name": "jsonschemaSchemaGeneric", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
41
|
+
return ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschema/jsonschemaSchemaGeneric"), depth0, { "name": "jsonschema/jsonschemaSchemaGeneric", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "");
|
|
42
42
|
}, "8": function (container, depth0, helpers, partials, data) {
|
|
43
43
|
return " nullable: true,\n";
|
|
44
44
|
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
@@ -49,7 +49,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
49
49
|
return undefined;
|
|
50
50
|
};
|
|
51
51
|
return "{\n type: 'object',\n additionalProperties: "
|
|
52
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "link"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(6, data, 0), "data": data, "loc": { "start": { "line": 3, "column": 26 }, "end": { "line": 3, "column":
|
|
52
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "link"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(6, data, 0), "data": data, "loc": { "start": { "line": 3, "column": 26 }, "end": { "line": 3, "column": 202 } } })) != null ? stack1 : "")
|
|
53
53
|
+ ",\n"
|
|
54
54
|
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(8, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 6, "column": 7 } } })) != null ? stack1 : "")
|
|
55
55
|
+ "}";
|
|
@@ -5,7 +5,9 @@ declare const _default: {
|
|
|
5
5
|
"5": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
6
6
|
"7": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
7
7
|
"9": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
8
|
-
"11": (container: any, depth0: any, helpers: any, partials: any, data: any) =>
|
|
8
|
+
"11": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
9
|
+
"12": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
10
|
+
"14": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
9
11
|
compiler: (string | number)[];
|
|
10
12
|
main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
11
13
|
usePartial: boolean;
|
package/dist/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"jsonschemaSchemaInterface.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"jsonschemaSchemaInterface.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/jsonschema/partials/jsonschemaSchemaInterface.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAMA,wBA4FmC"}
|
|
@@ -17,7 +17,11 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
17
17
|
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "properties"), { "name": "each", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 7, "column": 9 } } })) != null ? stack1 : "")
|
|
18
18
|
+ " },\n"
|
|
19
19
|
+ ((stack1 = lookupProperty(helpers, "getRequiredFields").call(alias1, lookupProperty(depth0, "properties"), { "name": "getRequiredFields", "hash": {}, "data": data, "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "column": 32 } } })) != null ? stack1 : "")
|
|
20
|
-
+ "\n"
|
|
20
|
+
+ "\n"
|
|
21
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maxProperties"), { "name": "if", "hash": {}, "fn": container.program(5, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 10, "column": 0 }, "end": { "line": 12, "column": 7 } } })) != null ? stack1 : "")
|
|
22
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minProperties"), { "name": "if", "hash": {}, "fn": container.program(7, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 13, "column": 0 }, "end": { "line": 15, "column": 7 } } })) != null ? stack1 : "")
|
|
23
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(9, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 18, "column": 7 } } })) != null ? stack1 : "")
|
|
24
|
+
+ " additionalProperties: false\n";
|
|
21
25
|
}, "2": function (container, depth0, helpers, partials, data) {
|
|
22
26
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
23
27
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -28,36 +32,62 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
28
32
|
return " "
|
|
29
33
|
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 6, "column": 11 }, "end": { "line": 6, "column": 15 } }), depth0)) != null ? stack1 : "")
|
|
30
34
|
+ ": "
|
|
31
|
-
+ ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschemaSchema"), depth0, { "name": "jsonschemaSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
32
|
-
+ ((stack1 = lookupProperty(helpers, "unless").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(data, "last"), { "name": "unless", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column":
|
|
35
|
+
+ ((stack1 = container.invokePartial(lookupProperty(partials, "jsonschema/jsonschemaSchema"), depth0, { "name": "jsonschema/jsonschemaSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
36
|
+
+ ((stack1 = lookupProperty(helpers, "unless").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(data, "last"), { "name": "unless", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 52 }, "end": { "line": 6, "column": 81 } } })) != null ? stack1 : "")
|
|
33
37
|
+ "\n";
|
|
34
38
|
}, "3": function (container, depth0, helpers, partials, data) {
|
|
35
39
|
return ",";
|
|
36
40
|
}, "5": function (container, depth0, helpers, partials, data) {
|
|
37
|
-
return " properties: {},\n";
|
|
38
|
-
}, "7": function (container, depth0, helpers, partials, data) {
|
|
39
41
|
var stack1;
|
|
40
42
|
return " maxProperties: "
|
|
41
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "maxProperties", { "start": { "line":
|
|
43
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "maxProperties", { "start": { "line": 11, "column": 22 }, "end": { "line": 11, "column": 35 } }), depth0)) != null ? stack1 : "")
|
|
42
44
|
+ ",\n";
|
|
43
|
-
}, "
|
|
45
|
+
}, "7": function (container, depth0, helpers, partials, data) {
|
|
44
46
|
var stack1;
|
|
45
47
|
return " minProperties: "
|
|
46
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "minProperties", { "start": { "line":
|
|
48
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "minProperties", { "start": { "line": 14, "column": 22 }, "end": { "line": 14, "column": 35 } }), depth0)) != null ? stack1 : "")
|
|
47
49
|
+ ",\n";
|
|
48
|
-
}, "
|
|
50
|
+
}, "9": function (container, depth0, helpers, partials, data) {
|
|
49
51
|
return " nullable: true,\n";
|
|
50
|
-
}, "
|
|
52
|
+
}, "11": function (container, depth0, helpers, partials, data) {
|
|
53
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
54
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
55
|
+
return parent[propertyName];
|
|
56
|
+
}
|
|
57
|
+
return undefined;
|
|
58
|
+
};
|
|
59
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "emptySchemaStrategy"), "semantic", { "name": "equals", "hash": {}, "fn": container.program(12, data, 0), "inverse": container.program(14, data, 0), "data": data, "loc": { "start": { "line": 21, "column": 0 }, "end": { "line": 44, "column": 11 } } })) != null ? stack1 : "");
|
|
60
|
+
}, "12": function (container, depth0, helpers, partials, data) {
|
|
51
61
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
52
62
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
53
63
|
return parent[propertyName];
|
|
54
64
|
}
|
|
55
65
|
return undefined;
|
|
56
66
|
};
|
|
67
|
+
return ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maxProperties"), { "name": "if", "hash": {}, "fn": container.program(5, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 24, "column": 7 } } })) != null ? stack1 : "")
|
|
68
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minProperties"), { "name": "if", "hash": {}, "fn": container.program(7, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 25, "column": 0 }, "end": { "line": 27, "column": 7 } } })) != null ? stack1 : "")
|
|
69
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(9, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 28, "column": 0 }, "end": { "line": 30, "column": 7 } } })) != null ? stack1 : "")
|
|
70
|
+
+ " additionalProperties: true\n";
|
|
71
|
+
}, "14": function (container, depth0, helpers, partials, data) {
|
|
72
|
+
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
73
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
74
|
+
return parent[propertyName];
|
|
75
|
+
}
|
|
76
|
+
return undefined;
|
|
77
|
+
};
|
|
78
|
+
return " properties: {},\n"
|
|
79
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maxProperties"), { "name": "if", "hash": {}, "fn": container.program(5, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 34, "column": 0 }, "end": { "line": 36, "column": 7 } } })) != null ? stack1 : "")
|
|
80
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minProperties"), { "name": "if", "hash": {}, "fn": container.program(7, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 37, "column": 0 }, "end": { "line": 39, "column": 7 } } })) != null ? stack1 : "")
|
|
81
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(9, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 40, "column": 0 }, "end": { "line": 42, "column": 7 } } })) != null ? stack1 : "")
|
|
82
|
+
+ " additionalProperties: false\n";
|
|
83
|
+
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
84
|
+
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
85
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
86
|
+
return parent[propertyName];
|
|
87
|
+
}
|
|
88
|
+
return undefined;
|
|
89
|
+
};
|
|
57
90
|
return "{\n type: 'object',\n"
|
|
58
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(
|
|
59
|
-
+
|
|
60
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minProperties"), { "name": "if", "hash": {}, "fn": container.program(9, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 16, "column": 0 }, "end": { "line": 18, "column": 7 } } })) != null ? stack1 : "")
|
|
61
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(11, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 19, "column": 0 }, "end": { "line": 21, "column": 7 } } })) != null ? stack1 : "")
|
|
62
|
-
+ " additionalProperties: false\n}";
|
|
91
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "properties"), { "name": "if", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(11, data, 0), "data": data, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 45, "column": 7 } } })) != null ? stack1 : "")
|
|
92
|
+
+ "}\n";
|
|
63
93
|
}, "usePartial": true, "useData": true };
|
|
@@ -5,6 +5,8 @@ declare const _default: {
|
|
|
5
5
|
"5": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
6
6
|
"6": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
7
7
|
"8": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
8
|
+
"10": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
9
|
+
"12": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
8
10
|
compiler: (string | number)[];
|
|
9
11
|
main: (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
10
12
|
usePartial: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exportComposition.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/partials/exportComposition.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"exportComposition.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/partials/exportComposition.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAMA,wBAiFmC"}
|
|
@@ -18,7 +18,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
18
18
|
}
|
|
19
19
|
return undefined;
|
|
20
20
|
};
|
|
21
|
-
return ((stack1 = lookupProperty(helpers, "unless").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "useUnionTypes"), { "name": "unless", "hash": {}, "fn": container.program(4, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line":
|
|
21
|
+
return ((stack1 = lookupProperty(helpers, "unless").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "useUnionTypes"), { "name": "unless", "hash": {}, "fn": container.program(4, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 31, "column": 11 } } })) != null ? stack1 : "");
|
|
22
22
|
}, "4": function (container, depth0, helpers, partials, data) {
|
|
23
23
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
24
24
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -29,7 +29,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
29
29
|
return "\nexport namespace "
|
|
30
30
|
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 10, "column": 20 }, "end": { "line": 10, "column": 24 } }), depth0)) != null ? stack1 : "")
|
|
31
31
|
+ " {\n\n"
|
|
32
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "enums"), { "name": "each", "hash": {}, "fn": container.program(5, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line":
|
|
32
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "enums"), { "name": "each", "hash": {}, "fn": container.program(5, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 28, "column": 13 } } })) != null ? stack1 : "")
|
|
33
33
|
+ "\n}\n";
|
|
34
34
|
}, "5": function (container, depth0, helpers, partials, data) {
|
|
35
35
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
@@ -39,10 +39,8 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
39
39
|
return undefined;
|
|
40
40
|
};
|
|
41
41
|
return ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "description"), { "name": "if", "hash": {}, "fn": container.program(6, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 17, "column": 11 } } })) != null ? stack1 : "")
|
|
42
|
-
+ "
|
|
43
|
-
+ ((stack1 =
|
|
44
|
-
+ " {\n"
|
|
45
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "enum"), { "name": "each", "hash": {}, "fn": container.program(8, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 19, "column": 8 }, "end": { "line": 21, "column": 17 } } })) != null ? stack1 : "")
|
|
42
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(8, data, 0), "inverse": container.program(10, data, 0), "data": data, "loc": { "start": { "line": 18, "column": 4 }, "end": { "line": 22, "column": 11 } } })) != null ? stack1 : "")
|
|
43
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "enum"), { "name": "each", "hash": {}, "fn": container.program(12, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 23, "column": 8 }, "end": { "line": 25, "column": 17 } } })) != null ? stack1 : "")
|
|
46
44
|
+ " }\n\n";
|
|
47
45
|
}, "6": function (container, depth0, helpers, partials, data) {
|
|
48
46
|
var stack1;
|
|
@@ -50,11 +48,21 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
50
48
|
+ ((stack1 = container.lambda(container.strict(depth0, "description", { "start": { "line": 15, "column": 10 }, "end": { "line": 15, "column": 21 } }), depth0)) != null ? stack1 : "")
|
|
51
49
|
+ "\n */\n";
|
|
52
50
|
}, "8": function (container, depth0, helpers, partials, data) {
|
|
51
|
+
var stack1;
|
|
52
|
+
return " export enum "
|
|
53
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "alias", { "start": { "line": 19, "column": 19 }, "end": { "line": 19, "column": 24 } }), depth0)) != null ? stack1 : "")
|
|
54
|
+
+ " {\n";
|
|
55
|
+
}, "10": function (container, depth0, helpers, partials, data) {
|
|
56
|
+
var stack1;
|
|
57
|
+
return " export enum "
|
|
58
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 21, "column": 19 }, "end": { "line": 21, "column": 23 } }), depth0)) != null ? stack1 : "")
|
|
59
|
+
+ " {\n";
|
|
60
|
+
}, "12": function (container, depth0, helpers, partials, data) {
|
|
53
61
|
var stack1, alias1 = container.strict, alias2 = container.lambda;
|
|
54
62
|
return " "
|
|
55
|
-
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line":
|
|
63
|
+
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 24, "column": 11 }, "end": { "line": 24, "column": 15 } }), depth0)) != null ? stack1 : "")
|
|
56
64
|
+ " = "
|
|
57
|
-
+ ((stack1 = alias2(alias1(depth0, "value", { "start": { "line":
|
|
65
|
+
+ ((stack1 = alias2(alias1(depth0, "value", { "start": { "line": 24, "column": 24 }, "end": { "line": 24, "column": 29 } }), depth0)) != null ? stack1 : "")
|
|
58
66
|
+ ",\n";
|
|
59
67
|
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
60
68
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
@@ -69,5 +77,5 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
69
77
|
+ " = "
|
|
70
78
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "type"), depth0, { "name": "type", "hash": { "parent": lookupProperty(depth0, "name") }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
71
79
|
+ ";\n"
|
|
72
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "enums"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line":
|
|
80
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "enums"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 32, "column": 7 } } })) != null ? stack1 : "");
|
|
73
81
|
}, "usePartial": true, "useData": true };
|
|
@@ -27,7 +27,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
27
27
|
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "alias"), { "name": "if", "hash": {}, "fn": container.program(3, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 5, "column": 25 }, "end": { "line": 5, "column": 66 } } })) != null ? stack1 : "")
|
|
28
28
|
+ " } from '"
|
|
29
29
|
+ ((stack1 = lookupProperty(helpers, "normalizePath").call(alias1, lookupProperty(depth0, "path"), { "name": "normalizePath", "hash": {}, "data": data, "loc": { "start": { "line": 5, "column": 75 }, "end": { "line": 5, "column": 99 } } })) != null ? stack1 : "")
|
|
30
|
-
+ "';\n";
|
|
30
|
+
+ "Schema';\n";
|
|
31
31
|
}, "3": function (container, depth0, helpers, partials, data) {
|
|
32
32
|
var stack1;
|
|
33
33
|
return " as "
|
|
@@ -46,7 +46,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
46
46
|
+ "\nimport * as yup from 'yup';\n\nexport const "
|
|
47
47
|
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 11, "column": 16 }, "end": { "line": 11, "column": 20 } }), depth0)) != null ? stack1 : "")
|
|
48
48
|
+ "Schema = "
|
|
49
|
-
+ ((stack1 = container.invokePartial(lookupProperty(partials, "yupSchema"), depth0, { "name": "yupSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
49
|
+
+ ((stack1 = container.invokePartial(lookupProperty(partials, "yup/yupSchema"), depth0, { "name": "yup/yupSchema", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
50
50
|
+ ";\n\nexport type "
|
|
51
51
|
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 13, "column": 15 }, "end": { "line": 13, "column": 19 } }), depth0)) != null ? stack1 : "")
|
|
52
52
|
+ " = yup.InferType<typeof "
|
|
@@ -69,5 +69,5 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
69
69
|
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 23, "column": 64 }, "end": { "line": 23, "column": 68 } }), depth0)) != null ? stack1 : "")
|
|
70
70
|
+ " {\n return "
|
|
71
71
|
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 24, "column": 14 }, "end": { "line": 24, "column": 18 } }), depth0)) != null ? stack1 : "")
|
|
72
|
-
+ "Schema.validateSync(data, { strict: true });\n}";
|
|
72
|
+
+ "Schema.validateSync(data, { strict: true });\n}\n";
|
|
73
73
|
}, "usePartial": true, "useData": true };
|