ts-openapi-codegen 2.0.0 → 2.1.0-beta.1
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 +91 -2
- package/README.rus.md +91 -2
- package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.d.ts +2 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.js +365 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.d.ts +2 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.js +142 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.d.ts +2 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.js +137 -0
- package/dist/cli/analyzeDiff/analyzeDiff.d.ts +17 -0
- package/dist/cli/analyzeDiff/analyzeDiff.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/analyzeDiff.js +105 -0
- package/dist/cli/analyzeDiff/buildLegacyReport.d.ts +17 -0
- package/dist/cli/analyzeDiff/buildLegacyReport.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/buildLegacyReport.js +54 -0
- package/dist/cli/analyzeDiff/ciSummary.d.ts +6 -0
- package/dist/cli/analyzeDiff/ciSummary.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/ciSummary.js +20 -0
- package/dist/cli/analyzeDiff/diffEngine.d.ts +54 -0
- package/dist/cli/analyzeDiff/diffEngine.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/diffEngine.js +209 -0
- package/dist/cli/analyzeDiff/ignoreRules.d.ts +33 -0
- package/dist/cli/analyzeDiff/ignoreRules.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/ignoreRules.js +93 -0
- package/dist/cli/analyzeDiff/ignoreSemanticChanges.d.ts +10 -0
- package/dist/cli/analyzeDiff/ignoreSemanticChanges.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/ignoreSemanticChanges.js +84 -0
- package/dist/cli/analyzeDiff/logLegacyReport.d.ts +6 -0
- package/dist/cli/analyzeDiff/logLegacyReport.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/logLegacyReport.js +29 -0
- package/dist/cli/analyzeDiff/miracles.d.ts +89 -0
- package/dist/cli/analyzeDiff/miracles.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/miracles.js +325 -0
- package/dist/cli/analyzeDiff/pluginPaths.d.ts +5 -0
- package/dist/cli/analyzeDiff/pluginPaths.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/pluginPaths.js +13 -0
- package/dist/cli/analyzeDiff/report.d.ts +3 -0
- package/dist/cli/analyzeDiff/report.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/report.js +7 -0
- package/dist/cli/analyzeDiff/semanticDiffContext.d.ts +6 -0
- package/dist/cli/analyzeDiff/semanticDiffContext.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/semanticDiffContext.js +16 -0
- package/dist/cli/analyzeDiff/specParser.d.ts +22 -0
- package/dist/cli/analyzeDiff/specParser.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/specParser.js +80 -0
- package/dist/cli/analyzeDiff/types.d.ts +61 -0
- package/dist/cli/analyzeDiff/types.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/types.js +2 -0
- package/dist/cli/analyzeDiff/writeLegacyReport.d.ts +6 -0
- package/dist/cli/analyzeDiff/writeLegacyReport.d.ts.map +1 -0
- package/dist/cli/analyzeDiff/writeLegacyReport.js +21 -0
- package/dist/cli/checkAndUpdateConfig/checkConfig.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/checkConfig.js +13 -8
- package/dist/cli/checkAndUpdateConfig/constants.d.ts +0 -9
- package/dist/cli/checkAndUpdateConfig/constants.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/constants.js +1 -10
- package/dist/cli/checkAndUpdateConfig/updateConfig.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/updateConfig.js +11 -7
- package/dist/cli/checkAndUpdateConfig/utils/selectConfigAction.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/selectConfigAction.js +6 -3
- package/dist/cli/checkAndUpdateConfig/utils/updateExistingConfigFile.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/updateExistingConfigFile.js +3 -2
- package/dist/cli/checkAndUpdateConfig/utils/writeExampleConfigFile.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/writeExampleConfigFile.js +2 -2
- package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.d.ts +2 -0
- package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.d.ts.map +1 -0
- package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.js +152 -0
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts +6 -2
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts.map +1 -1
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.js +54 -18
- package/dist/cli/index.js +57 -2
- package/dist/cli/initOpenApiConfig/init.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/init.js +19 -6
- package/dist/cli/initOpenApiConfig/initConfig.d.ts +1 -0
- package/dist/cli/initOpenApiConfig/initConfig.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/initConfig.js +47 -24
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts +8 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.js +40 -8
- package/dist/cli/initOpenApiConfig/utils/buildConfig.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/buildConfig.js +60 -0
- package/dist/cli/initOpenApiConfig/utils/validateSpecFile.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/validateSpecFile.js +2 -1
- package/dist/cli/initOpenApiConfig/utils/writeConfigFile.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/writeConfigFile.js +2 -1
- package/dist/cli/interactive/confirmDialog.d.ts.map +1 -1
- package/dist/cli/interactive/confirmDialog.js +3 -2
- package/dist/cli/interactive/constants.d.ts +2 -2
- package/dist/cli/interactive/constants.js +8 -8
- package/dist/cli/interactive/selectDialog.d.ts.map +1 -1
- package/dist/cli/interactive/selectDialog.js +11 -6
- package/dist/cli/previewChanges/previewChanges.d.ts.map +1 -1
- package/dist/cli/previewChanges/previewChanges.js +45 -17
- package/dist/cli/schemas/analyzeDiff.d.ts +14 -0
- package/dist/cli/schemas/analyzeDiff.d.ts.map +1 -0
- package/dist/cli/schemas/analyzeDiff.js +28 -0
- package/dist/cli/schemas/generate.d.ts +9 -0
- package/dist/cli/schemas/generate.d.ts.map +1 -1
- package/dist/cli/schemas/generate.js +9 -0
- package/dist/cli/schemas/index.d.ts +3 -1
- package/dist/cli/schemas/index.d.ts.map +1 -1
- package/dist/cli/schemas/index.js +2 -0
- package/dist/common/Consts.d.ts +1 -0
- package/dist/common/Consts.d.ts.map +1 -1
- package/dist/common/Consts.js +15 -1
- package/dist/common/Logger.d.ts +20 -1
- package/dist/common/Logger.d.ts.map +1 -1
- package/dist/common/Logger.js +70 -9
- package/dist/common/LoggerMessages.d.ts +135 -33
- package/dist/common/LoggerMessages.d.ts.map +1 -1
- package/dist/common/LoggerMessages.js +118 -45
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.js +7 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts +4 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts +8 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts +8 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts +8 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts +35 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.js +4 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts +79 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts.map +1 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.js +19 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts +171 -0
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.js +2 -0
- package/dist/common/VersionedSchema/CommonSchemas.d.ts +40 -0
- package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.js +34 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts +4 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.d.ts +4 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts +4 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +4 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts +4 -0
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts +4 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts +4 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts +4 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +4 -0
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.js +23 -3
- package/dist/common/VersionedSchema/Utils/__tests__/migrateDataToLatestSchemaVersion.test.js +2 -2
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.js +2 -1
- package/dist/common/__tests__/Logger.test.d.ts +2 -0
- package/dist/common/__tests__/Logger.test.d.ts.map +1 -0
- package/dist/common/__tests__/Logger.test.js +100 -0
- package/dist/common/utils/__tests__/convertArrayToObject.test.js +3 -0
- package/dist/common/utils/__tests__/eslintFix.test.d.ts +2 -0
- package/dist/common/utils/__tests__/eslintFix.test.d.ts.map +1 -0
- package/dist/common/utils/__tests__/eslintFix.test.js +134 -0
- package/dist/common/utils/__tests__/format.test.d.ts +2 -0
- package/dist/common/utils/__tests__/format.test.d.ts.map +1 -0
- package/dist/common/utils/__tests__/format.test.js +90 -0
- package/dist/common/utils/convertArrayToObject.d.ts.map +1 -1
- package/dist/common/utils/convertArrayToObject.js +3 -0
- package/dist/common/utils/eslintFix.d.ts +7 -0
- package/dist/common/utils/eslintFix.d.ts.map +1 -0
- package/dist/common/utils/eslintFix.js +78 -0
- package/dist/common/utils/format.d.ts +1 -1
- package/dist/common/utils/format.d.ts.map +1 -1
- package/dist/common/utils/format.js +39 -15
- package/dist/common/utils/jsonPath.d.ts +5 -0
- package/dist/common/utils/jsonPath.d.ts.map +1 -0
- package/dist/common/utils/jsonPath.js +27 -0
- package/dist/common/utils/normalizeObject.d.ts +2 -0
- package/dist/common/utils/normalizeObject.d.ts.map +1 -0
- package/dist/common/utils/normalizeObject.js +63 -0
- package/dist/core/Context.d.ts +8 -1
- package/dist/core/Context.d.ts.map +1 -1
- package/dist/core/Context.js +23 -4
- package/dist/core/OpenApiClient.d.ts +2 -0
- package/dist/core/OpenApiClient.d.ts.map +1 -1
- package/dist/core/OpenApiClient.js +116 -6
- package/dist/core/WriteClient.d.ts +4 -0
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +38 -4
- package/dist/core/__tests__/WriteClient.test.js +4 -1
- package/dist/core/api/v2/parser/__tests__/getModel.test.d.ts +2 -0
- package/dist/core/api/v2/parser/__tests__/getModel.test.d.ts.map +1 -0
- package/dist/core/api/v2/parser/__tests__/getModel.test.js +34 -0
- package/dist/core/api/v2/parser/getModel.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getModel.js +6 -1
- package/dist/core/api/v2/parser/getOperation.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperation.js +2 -0
- package/dist/core/api/v2/parser/getOperationResponses.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperationResponses.js +9 -1
- package/dist/core/api/v2/types/OpenApiSchema.model.d.ts +2 -0
- package/dist/core/api/v2/types/OpenApiSchema.model.d.ts.map +1 -1
- package/dist/core/api/v3/parser/__tests__/getContent.test.d.ts +2 -0
- package/dist/core/api/v3/parser/__tests__/getContent.test.d.ts.map +1 -0
- package/dist/core/api/v3/parser/__tests__/getContent.test.js +65 -0
- package/dist/core/api/v3/parser/__tests__/getModel.test.d.ts +2 -0
- package/dist/core/api/v3/parser/__tests__/getModel.test.d.ts.map +1 -0
- package/dist/core/api/v3/parser/__tests__/getModel.test.js +34 -0
- package/dist/core/api/v3/parser/getContent.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getContent.js +21 -11
- package/dist/core/api/v3/parser/getModel.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getModel.js +6 -1
- package/dist/core/api/v3/parser/getOperation.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperation.js +2 -0
- package/dist/core/api/v3/parser/getOperationResponses.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationResponses.js +9 -1
- package/dist/core/api/v3/types/OpenApiSchema.model.d.ts +2 -0
- package/dist/core/api/v3/types/OpenApiSchema.model.d.ts.map +1 -1
- package/dist/core/governance/__tests__/evaluateGovernanceRules.test.d.ts +2 -0
- package/dist/core/governance/__tests__/evaluateGovernanceRules.test.d.ts.map +1 -0
- package/dist/core/governance/__tests__/evaluateGovernanceRules.test.js +100 -0
- package/dist/core/governance/__tests__/loadGovernanceConfig.test.d.ts +2 -0
- package/dist/core/governance/__tests__/loadGovernanceConfig.test.d.ts.map +1 -0
- package/dist/core/governance/__tests__/loadGovernanceConfig.test.js +71 -0
- package/dist/core/governance/evaluateGovernanceRules.d.ts +42 -0
- package/dist/core/governance/evaluateGovernanceRules.d.ts.map +1 -0
- package/dist/core/governance/evaluateGovernanceRules.js +134 -0
- package/dist/core/governance/governanceConfigSchema.d.ts +4 -0
- package/dist/core/governance/governanceConfigSchema.d.ts.map +1 -0
- package/dist/core/governance/governanceConfigSchema.js +39 -0
- package/dist/core/governance/loadGovernanceConfig.d.ts +7 -0
- package/dist/core/governance/loadGovernanceConfig.d.ts.map +1 -0
- package/dist/core/governance/loadGovernanceConfig.js +60 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +4 -2
- package/dist/core/plugins/GeneratorPlugin.model.d.ts +42 -0
- package/dist/core/plugins/GeneratorPlugin.model.d.ts.map +1 -0
- package/dist/core/plugins/GeneratorPlugin.model.js +2 -0
- package/dist/core/plugins/__tests__/applySemanticDiffPluginHooks.test.d.ts +2 -0
- package/dist/core/plugins/__tests__/applySemanticDiffPluginHooks.test.d.ts.map +1 -0
- package/dist/core/plugins/__tests__/applySemanticDiffPluginHooks.test.js +115 -0
- package/dist/core/plugins/__tests__/loadGeneratorPlugins.test.d.ts +2 -0
- package/dist/core/plugins/__tests__/loadGeneratorPlugins.test.d.ts.map +1 -0
- package/dist/core/plugins/__tests__/loadGeneratorPlugins.test.js +62 -0
- package/dist/core/plugins/applySemanticDiffPluginHooks.d.ts +28 -0
- package/dist/core/plugins/applySemanticDiffPluginHooks.d.ts.map +1 -0
- package/dist/core/plugins/applySemanticDiffPluginHooks.js +160 -0
- package/dist/core/plugins/builtins/xTypescriptTypePlugin.d.ts +6 -0
- package/dist/core/plugins/builtins/xTypescriptTypePlugin.d.ts.map +1 -0
- package/dist/core/plugins/builtins/xTypescriptTypePlugin.js +13 -0
- package/dist/core/plugins/getBuiltinPlugins.d.ts +6 -0
- package/dist/core/plugins/getBuiltinPlugins.d.ts.map +1 -0
- package/dist/core/plugins/getBuiltinPlugins.js +10 -0
- package/dist/core/plugins/index.d.ts +4 -0
- package/dist/core/plugins/index.d.ts.map +1 -0
- package/dist/core/plugins/index.js +5 -0
- package/dist/core/plugins/loadGeneratorPlugins.d.ts +6 -0
- package/dist/core/plugins/loadGeneratorPlugins.d.ts.map +1 -0
- package/dist/core/plugins/loadGeneratorPlugins.js +94 -0
- package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.d.ts +2 -0
- package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.d.ts.map +1 -0
- package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.js +537 -0
- package/dist/core/semanticDiff/__tests__/semanticDiffReportSchema.test.d.ts +2 -0
- package/dist/core/semanticDiff/__tests__/semanticDiffReportSchema.test.d.ts.map +1 -0
- package/dist/core/semanticDiff/__tests__/semanticDiffReportSchema.test.js +66 -0
- package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts +45 -0
- package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts.map +1 -0
- package/dist/core/semanticDiff/analyzeOpenApiDiff.js +640 -0
- package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts +11 -0
- package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts.map +1 -0
- package/dist/core/semanticDiff/semanticDiffReportSchema.js +132 -0
- package/dist/core/strict/__tests__/validateOpenApiStrict.test.d.ts +2 -0
- package/dist/core/strict/__tests__/validateOpenApiStrict.test.d.ts.map +1 -0
- package/dist/core/strict/__tests__/validateOpenApiStrict.test.js +156 -0
- package/dist/core/strict/validateOpenApiStrict.d.ts +43 -0
- package/dist/core/strict/validateOpenApiStrict.d.ts.map +1 -0
- package/dist/core/strict/validateOpenApiStrict.js +253 -0
- package/dist/core/types/base/ClientArtifacts.model.d.ts +2 -0
- package/dist/core/types/base/ClientArtifacts.model.d.ts.map +1 -1
- 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/types/enums/ModelsMode.enum.d.ts +5 -0
- package/dist/core/types/enums/ModelsMode.enum.d.ts.map +1 -0
- package/dist/core/types/enums/ModelsMode.enum.js +8 -0
- package/dist/core/types/shared/Client.model.d.ts +2 -0
- package/dist/core/types/shared/Client.model.d.ts.map +1 -1
- package/dist/core/types/shared/DiffInfo.model.d.ts +13 -0
- package/dist/core/types/shared/DiffInfo.model.d.ts.map +1 -0
- package/dist/core/types/shared/DiffInfo.model.js +2 -0
- package/dist/core/types/shared/Miracle.model.d.ts +13 -0
- package/dist/core/types/shared/Miracle.model.d.ts.map +1 -0
- package/dist/core/types/shared/Miracle.model.js +2 -0
- package/dist/core/types/shared/Model.model.d.ts +23 -0
- package/dist/core/types/shared/Model.model.d.ts.map +1 -1
- package/dist/core/types/shared/Operation.model.d.ts +5 -0
- package/dist/core/types/shared/Operation.model.d.ts.map +1 -1
- package/dist/core/utils/__mocks__/templates.d.ts.map +1 -1
- package/dist/core/utils/__mocks__/templates.js +9 -0
- package/dist/core/utils/__tests__/applyDiffReportToClient.test.d.ts +2 -0
- package/dist/core/utils/__tests__/applyDiffReportToClient.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/applyDiffReportToClient.test.js +108 -0
- package/dist/core/utils/__tests__/getMappedType.test.js +2 -0
- package/dist/core/utils/__tests__/getOperationResponseCode.test.js +7 -2
- package/dist/core/utils/__tests__/getOperationResults.test.d.ts +2 -0
- package/dist/core/utils/__tests__/getOperationResults.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/getOperationResults.test.js +43 -0
- package/dist/core/utils/__tests__/prepareDtoModels.test.d.ts +2 -0
- package/dist/core/utils/__tests__/prepareDtoModels.test.d.ts.map +1 -0
- package/dist/core/utils/__tests__/prepareDtoModels.test.js +116 -0
- package/dist/core/utils/__tests__/serviceHelpers.test.js +1 -0
- package/dist/core/utils/__tests__/writeClientModels.test.js +50 -0
- package/dist/core/utils/applyDiffReportToClient.d.ts +14 -0
- package/dist/core/utils/applyDiffReportToClient.d.ts.map +1 -0
- package/dist/core/utils/applyDiffReportToClient.js +367 -0
- package/dist/core/utils/getMappedType.d.ts.map +1 -1
- package/dist/core/utils/getMappedType.js +2 -0
- package/dist/core/utils/getOpenApiSpec.d.ts.map +1 -1
- package/dist/core/utils/getOpenApiSpec.js +1 -14
- package/dist/core/utils/getOperationResponseCode.d.ts.map +1 -1
- package/dist/core/utils/getOperationResponseCode.js +10 -8
- package/dist/core/utils/loadDiffReport.d.ts +39 -0
- package/dist/core/utils/loadDiffReport.d.ts.map +1 -0
- package/dist/core/utils/loadDiffReport.js +51 -0
- package/dist/core/utils/prepareDtoModels.d.ts +3 -0
- package/dist/core/utils/prepareDtoModels.d.ts.map +1 -0
- package/dist/core/utils/prepareDtoModels.js +189 -0
- package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarHelpers.js +4 -1
- package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarTemplates.js +6 -0
- package/dist/core/utils/validateRawOptions.d.ts +1 -1
- package/dist/core/utils/validateRawOptions.d.ts.map +1 -1
- package/dist/core/utils/validateRawOptions.js +4 -2
- package/dist/core/utils/writeClientCore.d.ts +2 -0
- package/dist/core/utils/writeClientCore.d.ts.map +1 -1
- package/dist/core/utils/writeClientCore.js +6 -1
- package/dist/core/utils/writeClientCoreIndex.d.ts +1 -0
- package/dist/core/utils/writeClientCoreIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientCoreIndex.js +2 -2
- package/dist/core/utils/writeClientExecutor.d.ts +2 -0
- package/dist/core/utils/writeClientExecutor.d.ts.map +1 -1
- package/dist/core/utils/writeClientExecutor.js +6 -2
- package/dist/core/utils/writeClientFullIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientFullIndex.js +3 -1
- package/dist/core/utils/writeClientModels.d.ts +6 -0
- package/dist/core/utils/writeClientModels.d.ts.map +1 -1
- package/dist/core/utils/writeClientModels.js +24 -3
- package/dist/core/utils/writeClientModelsIndex.d.ts +2 -0
- package/dist/core/utils/writeClientModelsIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientModelsIndex.js +2 -2
- package/dist/core/utils/writeClientSchemas.d.ts +2 -0
- package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.js +6 -2
- package/dist/core/utils/writeClientServices.d.ts +2 -0
- package/dist/core/utils/writeClientServices.d.ts.map +1 -1
- package/dist/core/utils/writeClientServices.js +6 -2
- package/dist/templatesCompiled/cli/openApiConfig.d.ts +4 -1
- package/dist/templatesCompiled/cli/openApiConfig.d.ts.map +1 -1
- package/dist/templatesCompiled/cli/openApiConfig.js +88 -37
- package/dist/templatesCompiled/client/core/ApiRequestOptions.js +1 -1
- package/dist/templatesCompiled/client/core/BaseDto.d.ts +8 -0
- package/dist/templatesCompiled/client/core/BaseDto.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/BaseDto.js +18 -0
- package/dist/templatesCompiled/client/core/axios/getResponseBody.js +1 -1
- package/dist/templatesCompiled/client/core/axios/request.js +2 -2
- package/dist/templatesCompiled/client/core/axios/sendRequest.js +4 -4
- package/dist/templatesCompiled/client/core/dtoUtils.d.ts +8 -0
- package/dist/templatesCompiled/client/core/dtoUtils.d.ts.map +1 -0
- package/dist/templatesCompiled/client/core/dtoUtils.js +18 -0
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.js +2 -2
- package/dist/templatesCompiled/client/core/executor/requestExecutor.js +1 -1
- package/dist/templatesCompiled/client/core/fetch/getResponseBody.js +1 -1
- package/dist/templatesCompiled/client/core/fetch/request.js +2 -2
- package/dist/templatesCompiled/client/core/functions/isBinary.js +1 -1
- package/dist/templatesCompiled/client/core/node/getResponseBody.js +1 -1
- package/dist/templatesCompiled/client/core/node/request.js +2 -2
- package/dist/templatesCompiled/client/core/xhr/getResponseBody.js +1 -1
- package/dist/templatesCompiled/client/core/xhr/request.js +2 -2
- package/dist/templatesCompiled/client/core/xhr/sendRequest.js +4 -4
- package/dist/templatesCompiled/client/exportModels.d.ts +34 -0
- package/dist/templatesCompiled/client/exportModels.d.ts.map +1 -0
- package/dist/templatesCompiled/client/exportModels.js +280 -0
- package/dist/templatesCompiled/client/exportService.d.ts +7 -4
- package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportService.js +52 -33
- package/dist/templatesCompiled/client/indexCore.d.ts +3 -1
- package/dist/templatesCompiled/client/indexCore.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexCore.js +13 -2
- package/dist/templatesCompiled/client/indexFull.d.ts +9 -7
- package/dist/templatesCompiled/client/indexFull.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexFull.js +52 -34
- package/dist/templatesCompiled/client/indexModels.d.ts +7 -5
- package/dist/templatesCompiled/client/indexModels.d.ts.map +1 -1
- package/dist/templatesCompiled/client/indexModels.js +27 -18
- package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.d.ts +27 -19
- package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.d.ts.map +1 -1
- package/dist/templatesCompiled/client/joi/partials/joiSchemaGeneric.js +144 -63
- package/dist/templatesCompiled/client/jsonschema/exportSchema.d.ts +1 -0
- package/dist/templatesCompiled/client/jsonschema/exportSchema.d.ts.map +1 -1
- package/dist/templatesCompiled/client/jsonschema/exportSchema.js +17 -13
- package/dist/templatesCompiled/client/partials/exportInterface.d.ts +13 -5
- package/dist/templatesCompiled/client/partials/exportInterface.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/exportInterface.js +91 -21
- package/dist/templatesCompiled/client/partials/result.d.ts +6 -4
- package/dist/templatesCompiled/client/partials/result.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/result.js +16 -6
- package/dist/templatesCompiled/client/partials/serviceOption.d.ts +1 -0
- package/dist/templatesCompiled/client/partials/serviceOption.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/serviceOption.js +11 -4
- package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.d.ts +22 -16
- package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.d.ts.map +1 -1
- package/dist/templatesCompiled/client/yup/partials/yupSchemaGeneric.js +72 -60
- package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.d.ts +27 -19
- package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.d.ts.map +1 -1
- package/dist/templatesCompiled/client/zod/partials/zodSchemaGeneric.js +77 -61
- package/package.json +7 -5
|
@@ -13,146 +13,158 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
13
13
|
}
|
|
14
14
|
return undefined;
|
|
15
15
|
};
|
|
16
|
-
return "
|
|
17
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minLength"), { "name": "if", "hash": {}, "fn": container.program(
|
|
18
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maxLength"), { "name": "if", "hash": {}, "fn": container.program(
|
|
19
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "pattern"), { "name": "if", "hash": {}, "fn": container.program(
|
|
20
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "format"), { "name": "if", "hash": {}, "fn": container.program(
|
|
21
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(
|
|
16
|
+
return ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "needsCoercion"), { "name": "if", "hash": {}, "fn": container.program(2, data, 0), "inverse": container.program(4, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 141 } } })) != null ? stack1 : "")
|
|
17
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minLength"), { "name": "if", "hash": {}, "fn": container.program(6, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 141 }, "end": { "line": 2, "column": 186 } } })) != null ? stack1 : "")
|
|
18
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maxLength"), { "name": "if", "hash": {}, "fn": container.program(8, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 186 }, "end": { "line": 2, "column": 231 } } })) != null ? stack1 : "")
|
|
19
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "pattern"), { "name": "if", "hash": {}, "fn": container.program(10, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 231 }, "end": { "line": 2, "column": 278 } } })) != null ? stack1 : "")
|
|
20
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "format"), { "name": "if", "hash": {}, "fn": container.program(12, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 278 }, "end": { "line": 2, "column": 491 } } })) != null ? stack1 : "")
|
|
21
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(25, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 491 }, "end": { "line": 2, "column": 527 } } })) != null ? stack1 : "")
|
|
22
22
|
+ "\n";
|
|
23
23
|
}, "2": function (container, depth0, helpers, partials, data) {
|
|
24
|
+
return "yup.string().transform((value, original) => (original == null ? original : String(original)))";
|
|
25
|
+
}, "4": function (container, depth0, helpers, partials, data) {
|
|
26
|
+
return "yup.string()";
|
|
27
|
+
}, "6": function (container, depth0, helpers, partials, data) {
|
|
24
28
|
var stack1;
|
|
25
29
|
return ".min("
|
|
26
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "minLength", { "start": { "line": 2, "column":
|
|
30
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "minLength", { "start": { "line": 2, "column": 166 }, "end": { "line": 2, "column": 175 } }), depth0)) != null ? stack1 : "")
|
|
27
31
|
+ ")";
|
|
28
|
-
}, "
|
|
32
|
+
}, "8": function (container, depth0, helpers, partials, data) {
|
|
29
33
|
var stack1;
|
|
30
34
|
return ".max("
|
|
31
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "maxLength", { "start": { "line": 2, "column":
|
|
35
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "maxLength", { "start": { "line": 2, "column": 211 }, "end": { "line": 2, "column": 220 } }), depth0)) != null ? stack1 : "")
|
|
32
36
|
+ ")";
|
|
33
|
-
}, "
|
|
37
|
+
}, "10": function (container, depth0, helpers, partials, data) {
|
|
34
38
|
var stack1;
|
|
35
39
|
return ".matches(/"
|
|
36
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "pattern", { "start": { "line": 2, "column":
|
|
40
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "pattern", { "start": { "line": 2, "column": 259 }, "end": { "line": 2, "column": 266 } }), depth0)) != null ? stack1 : "")
|
|
37
41
|
+ "/)";
|
|
38
|
-
}, "
|
|
42
|
+
}, "12": function (container, depth0, helpers, partials, data) {
|
|
39
43
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
40
44
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
41
45
|
return parent[propertyName];
|
|
42
46
|
}
|
|
43
47
|
return undefined;
|
|
44
48
|
};
|
|
45
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "date-time", { "name": "equals", "hash": {}, "fn": container.program(
|
|
46
|
-
}, "
|
|
49
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "date-time", { "name": "equals", "hash": {}, "fn": container.program(13, data, 0), "inverse": container.program(15, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 292 }, "end": { "line": 2, "column": 484 } } })) != null ? stack1 : "");
|
|
50
|
+
}, "13": function (container, depth0, helpers, partials, data) {
|
|
47
51
|
return ".date()";
|
|
48
|
-
}, "
|
|
52
|
+
}, "15": function (container, depth0, helpers, partials, data) {
|
|
49
53
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
50
54
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
51
55
|
return parent[propertyName];
|
|
52
56
|
}
|
|
53
57
|
return undefined;
|
|
54
58
|
};
|
|
55
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "date", { "name": "equals", "hash": {}, "fn": container.program(
|
|
56
|
-
}, "
|
|
59
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "date", { "name": "equals", "hash": {}, "fn": container.program(13, data, 0), "inverse": container.program(16, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 329 }, "end": { "line": 2, "column": 473 } } })) != null ? stack1 : "");
|
|
60
|
+
}, "16": function (container, depth0, helpers, partials, data) {
|
|
57
61
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
58
62
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
59
63
|
return parent[propertyName];
|
|
60
64
|
}
|
|
61
65
|
return undefined;
|
|
62
66
|
};
|
|
63
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "email", { "name": "equals", "hash": {}, "fn": container.program(
|
|
64
|
-
}, "
|
|
67
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "email", { "name": "equals", "hash": {}, "fn": container.program(17, data, 0), "inverse": container.program(19, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 365 }, "end": { "line": 2, "column": 473 } } })) != null ? stack1 : "");
|
|
68
|
+
}, "17": function (container, depth0, helpers, partials, data) {
|
|
65
69
|
return ".email()";
|
|
66
|
-
}, "
|
|
70
|
+
}, "19": function (container, depth0, helpers, partials, data) {
|
|
67
71
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
68
72
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
69
73
|
return parent[propertyName];
|
|
70
74
|
}
|
|
71
75
|
return undefined;
|
|
72
76
|
};
|
|
73
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "uri", { "name": "equals", "hash": {}, "fn": container.program(
|
|
74
|
-
}, "
|
|
77
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "uri", { "name": "equals", "hash": {}, "fn": container.program(20, data, 0), "inverse": container.program(22, data, 0), "data": data, "loc": { "start": { "line": 2, "column": 403 }, "end": { "line": 2, "column": 473 } } })) != null ? stack1 : "");
|
|
78
|
+
}, "20": function (container, depth0, helpers, partials, data) {
|
|
75
79
|
return ".url()";
|
|
76
|
-
}, "
|
|
80
|
+
}, "22": function (container, depth0, helpers, partials, data) {
|
|
77
81
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
78
82
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
79
83
|
return parent[propertyName];
|
|
80
84
|
}
|
|
81
85
|
return undefined;
|
|
82
86
|
};
|
|
83
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "uuid", { "name": "equals", "hash": {}, "fn": container.program(
|
|
84
|
-
}, "
|
|
87
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "format"), "uuid", { "name": "equals", "hash": {}, "fn": container.program(23, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 2, "column": 437 }, "end": { "line": 2, "column": 473 } } })) != null ? stack1 : "");
|
|
88
|
+
}, "23": function (container, depth0, helpers, partials, data) {
|
|
85
89
|
return ".uuid()";
|
|
86
|
-
}, "
|
|
90
|
+
}, "25": function (container, depth0, helpers, partials, data) {
|
|
87
91
|
return ".nullable()";
|
|
88
|
-
}, "
|
|
92
|
+
}, "27": function (container, depth0, helpers, partials, data) {
|
|
89
93
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
90
94
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
91
95
|
return parent[propertyName];
|
|
92
96
|
}
|
|
93
97
|
return undefined;
|
|
94
98
|
};
|
|
95
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "number", { "name": "equals", "hash": {}, "fn": container.program(
|
|
96
|
-
}, "
|
|
99
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "number", { "name": "equals", "hash": {}, "fn": container.program(28, data, 0), "inverse": container.program(39, data, 0), "data": data, "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 19, "column": 0 } } })) != null ? stack1 : "");
|
|
100
|
+
}, "28": function (container, depth0, helpers, partials, data) {
|
|
97
101
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
98
102
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
99
103
|
return parent[propertyName];
|
|
100
104
|
}
|
|
101
105
|
return undefined;
|
|
102
106
|
};
|
|
103
|
-
return "
|
|
104
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minimum"), { "name": "if", "hash": {}, "fn": container.program(
|
|
105
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maximum"), { "name": "if", "hash": {}, "fn": container.program(
|
|
106
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "multipleOf"), { "name": "if", "hash": {}, "fn": container.program(
|
|
107
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(
|
|
107
|
+
return ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "needsCoercion"), { "name": "if", "hash": {}, "fn": container.program(29, data, 0), "inverse": container.program(31, data, 0), "data": data, "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 157 } } })) != null ? stack1 : "")
|
|
108
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minimum"), { "name": "if", "hash": {}, "fn": container.program(33, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 157 }, "end": { "line": 4, "column": 198 } } })) != null ? stack1 : "")
|
|
109
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maximum"), { "name": "if", "hash": {}, "fn": container.program(35, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 198 }, "end": { "line": 4, "column": 239 } } })) != null ? stack1 : "")
|
|
110
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "multipleOf"), { "name": "if", "hash": {}, "fn": container.program(37, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 4, "column": 239 }, "end": { "line": 6, "column": 9 } } })) != null ? stack1 : "")
|
|
111
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(25, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 45 } } })) != null ? stack1 : "")
|
|
108
112
|
+ "\n";
|
|
109
|
-
}, "
|
|
113
|
+
}, "29": function (container, depth0, helpers, partials, data) {
|
|
114
|
+
return "yup.number().transform((value, original) => (original == null || original === '' ? value : Number(original)))";
|
|
115
|
+
}, "31": function (container, depth0, helpers, partials, data) {
|
|
116
|
+
return "yup.number()";
|
|
117
|
+
}, "33": function (container, depth0, helpers, partials, data) {
|
|
110
118
|
var stack1;
|
|
111
119
|
return ".min("
|
|
112
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "minimum", { "start": { "line": 4, "column":
|
|
120
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "minimum", { "start": { "line": 4, "column": 180 }, "end": { "line": 4, "column": 187 } }), depth0)) != null ? stack1 : "")
|
|
113
121
|
+ ")";
|
|
114
|
-
}, "
|
|
122
|
+
}, "35": function (container, depth0, helpers, partials, data) {
|
|
115
123
|
var stack1;
|
|
116
124
|
return ".max("
|
|
117
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "maximum", { "start": { "line": 4, "column":
|
|
125
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "maximum", { "start": { "line": 4, "column": 221 }, "end": { "line": 4, "column": 228 } }), depth0)) != null ? stack1 : "")
|
|
118
126
|
+ ")";
|
|
119
|
-
}, "
|
|
127
|
+
}, "37": function (container, depth0, helpers, partials, data) {
|
|
120
128
|
var stack1, alias1 = container.strict, alias2 = container.lambda;
|
|
121
129
|
return ".test('multipleOf', 'Must be a multiple of "
|
|
122
|
-
+ ((stack1 = alias2(alias1(depth0, "multipleOf", { "start": { "line": 4, "column":
|
|
130
|
+
+ ((stack1 = alias2(alias1(depth0, "multipleOf", { "start": { "line": 4, "column": 303 }, "end": { "line": 4, "column": 313 } }), depth0)) != null ? stack1 : "")
|
|
123
131
|
+ "', function(value) {\n return value == null || value % "
|
|
124
132
|
+ ((stack1 = alias2(alias1(depth0, "multipleOf", { "start": { "line": 5, "column": 39 }, "end": { "line": 5, "column": 49 } }), depth0)) != null ? stack1 : "")
|
|
125
133
|
+ " === 0;\n})";
|
|
126
|
-
}, "
|
|
134
|
+
}, "39": function (container, depth0, helpers, partials, data) {
|
|
127
135
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
128
136
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
129
137
|
return parent[propertyName];
|
|
130
138
|
}
|
|
131
139
|
return undefined;
|
|
132
140
|
};
|
|
133
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "integer", { "name": "equals", "hash": {}, "fn": container.program(
|
|
134
|
-
}, "
|
|
141
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "integer", { "name": "equals", "hash": {}, "fn": container.program(40, data, 0), "inverse": container.program(45, data, 0), "data": data, "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 19, "column": 0 } } })) != null ? stack1 : "");
|
|
142
|
+
}, "40": function (container, depth0, helpers, partials, data) {
|
|
135
143
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
136
144
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
137
145
|
return parent[propertyName];
|
|
138
146
|
}
|
|
139
147
|
return undefined;
|
|
140
148
|
};
|
|
141
|
-
return "
|
|
142
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minimum"), { "name": "if", "hash": {}, "fn": container.program(
|
|
143
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maximum"), { "name": "if", "hash": {}, "fn": container.program(
|
|
144
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "multipleOf"), { "name": "if", "hash": {}, "fn": container.program(
|
|
145
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(
|
|
149
|
+
return ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "needsCoercion"), { "name": "if", "hash": {}, "fn": container.program(41, data, 0), "inverse": container.program(43, data, 0), "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 177 } } })) != null ? stack1 : "")
|
|
150
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "minimum"), { "name": "if", "hash": {}, "fn": container.program(33, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 177 }, "end": { "line": 8, "column": 218 } } })) != null ? stack1 : "")
|
|
151
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "maximum"), { "name": "if", "hash": {}, "fn": container.program(35, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 218 }, "end": { "line": 8, "column": 259 } } })) != null ? stack1 : "")
|
|
152
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "multipleOf"), { "name": "if", "hash": {}, "fn": container.program(37, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 259 }, "end": { "line": 10, "column": 9 } } })) != null ? stack1 : "")
|
|
153
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(25, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 10, "column": 9 }, "end": { "line": 10, "column": 45 } } })) != null ? stack1 : "")
|
|
146
154
|
+ "\n";
|
|
147
|
-
}, "
|
|
155
|
+
}, "41": function (container, depth0, helpers, partials, data) {
|
|
156
|
+
return "yup.number().integer().transform((value, original) => (original == null || original === '' ? value : Number(original)))";
|
|
157
|
+
}, "43": function (container, depth0, helpers, partials, data) {
|
|
158
|
+
return "yup.number().integer()";
|
|
159
|
+
}, "45": function (container, depth0, helpers, partials, data) {
|
|
148
160
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
149
161
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
150
162
|
return parent[propertyName];
|
|
151
163
|
}
|
|
152
164
|
return undefined;
|
|
153
165
|
};
|
|
154
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "boolean", { "name": "equals", "hash": {}, "fn": container.program(
|
|
155
|
-
}, "
|
|
166
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "boolean", { "name": "equals", "hash": {}, "fn": container.program(46, data, 0), "inverse": container.program(48, data, 0), "data": data, "loc": { "start": { "line": 11, "column": 0 }, "end": { "line": 19, "column": 0 } } })) != null ? stack1 : "");
|
|
167
|
+
}, "46": function (container, depth0, helpers, partials, data) {
|
|
156
168
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
157
169
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
158
170
|
return parent[propertyName];
|
|
@@ -160,17 +172,17 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
160
172
|
return undefined;
|
|
161
173
|
};
|
|
162
174
|
return "yup.boolean()"
|
|
163
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(
|
|
175
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(25, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 12, "column": 13 }, "end": { "line": 12, "column": 49 } } })) != null ? stack1 : "")
|
|
164
176
|
+ "\n";
|
|
165
|
-
}, "
|
|
177
|
+
}, "48": function (container, depth0, helpers, partials, data) {
|
|
166
178
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
167
179
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
168
180
|
return parent[propertyName];
|
|
169
181
|
}
|
|
170
182
|
return undefined;
|
|
171
183
|
};
|
|
172
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "File", { "name": "equals", "hash": {}, "fn": container.program(
|
|
173
|
-
}, "
|
|
184
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "File", { "name": "equals", "hash": {}, "fn": container.program(49, data, 0), "inverse": container.program(51, data, 0), "data": data, "loc": { "start": { "line": 13, "column": 0 }, "end": { "line": 19, "column": 0 } } })) != null ? stack1 : "");
|
|
185
|
+
}, "49": function (container, depth0, helpers, partials, data) {
|
|
174
186
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
175
187
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
176
188
|
return parent[propertyName];
|
|
@@ -178,17 +190,17 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
178
190
|
return undefined;
|
|
179
191
|
};
|
|
180
192
|
return "yup.mixed()"
|
|
181
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(
|
|
193
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "isNullable"), { "name": "if", "hash": {}, "fn": container.program(25, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 14, "column": 11 }, "end": { "line": 14, "column": 47 } } })) != null ? stack1 : "")
|
|
182
194
|
+ "\n";
|
|
183
|
-
}, "
|
|
195
|
+
}, "51": function (container, depth0, helpers, partials, data) {
|
|
184
196
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
185
197
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
186
198
|
return parent[propertyName];
|
|
187
199
|
}
|
|
188
200
|
return undefined;
|
|
189
201
|
};
|
|
190
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "null", { "name": "equals", "hash": {}, "fn": container.program(
|
|
191
|
-
}, "
|
|
202
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "null", { "name": "equals", "hash": {}, "fn": container.program(52, data, 0), "inverse": container.program(49, data, 0), "data": data, "loc": { "start": { "line": 15, "column": 0 }, "end": { "line": 19, "column": 0 } } })) != null ? stack1 : "");
|
|
203
|
+
}, "52": function (container, depth0, helpers, partials, data) {
|
|
192
204
|
return "yup.mixed().oneOf([null])\n";
|
|
193
205
|
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
194
206
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
@@ -197,5 +209,5 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
197
209
|
}
|
|
198
210
|
return undefined;
|
|
199
211
|
};
|
|
200
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "string", { "name": "equals", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(
|
|
212
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "base"), "string", { "name": "equals", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.program(27, data, 0), "data": data, "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 19, "column": 11 } } })) != null ? stack1 : "");
|
|
201
213
|
}, "useData": true };
|
|
@@ -3,29 +3,37 @@ declare const _default: {
|
|
|
3
3
|
"2": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
4
4
|
"4": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
5
5
|
"6": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
6
|
-
"8": (container: any, depth0: any, helpers: any, partials: any, data: any) =>
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"25": (container: any, depth0: any, helpers: any, partials: any, data: any) =>
|
|
18
|
-
"26": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
6
|
+
"8": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
7
|
+
"10": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
8
|
+
"12": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
9
|
+
"13": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
10
|
+
"15": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
11
|
+
"16": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
12
|
+
"18": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
13
|
+
"19": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
14
|
+
"21": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
15
|
+
"22": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
16
|
+
"24": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
17
|
+
"25": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
19
18
|
"27": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
20
|
-
"29": (container: any, depth0: any, helpers: any, partials: any, data: any) =>
|
|
19
|
+
"29": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
20
|
+
"30": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
21
21
|
"31": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
22
|
-
"33": (container: any, depth0: any, helpers: any, partials: any, data: any) =>
|
|
23
|
-
"
|
|
24
|
-
"36": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
22
|
+
"33": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
23
|
+
"35": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
25
24
|
"37": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
26
|
-
"39": (container: any, depth0: any, helpers: any, partials: any, data: any) =>
|
|
27
|
-
"
|
|
25
|
+
"39": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
26
|
+
"41": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
28
27
|
"42": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
28
|
+
"43": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
29
|
+
"45": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
30
|
+
"47": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
31
|
+
"48": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
32
|
+
"49": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
33
|
+
"51": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
34
|
+
"53": (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
35
|
+
"54": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
36
|
+
"56": (container: any, depth0: any, helpers: any, partials: any, data: any) => string;
|
|
29
37
|
compiler: (string | number)[];
|
|
30
38
|
main: (container: any, depth0: any, helpers: any, partials: any, data: any) => any;
|
|
31
39
|
useData: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zodSchemaGeneric.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/zod/partials/zodSchemaGeneric.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"zodSchemaGeneric.d.ts","sourceRoot":"","sources":["../../../../../src/templatesCompiled/client/zod/partials/zodSchemaGeneric.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,wBA6NiB"}
|