ts-openapi-codegen 2.1.0-beta.6 → 2.1.0-beta.8
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 +3 -0
- package/README.rus.md +3 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiff.cli.test.js +9 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffRenameAndInvalidRegex.test.js +9 -0
- package/dist/cli/analyzeDiff/__tests__/analyzeDiffTypeCoercion.test.js +9 -0
- package/dist/cli/analyzeDiff/ignoreRules.d.ts +0 -6
- package/dist/cli/analyzeDiff/ignoreRules.d.ts.map +1 -1
- package/dist/cli/analyzeDiff/ignoreRules.js +2 -3
- package/dist/cli/analyzeUsage/analyzeUsage.d.ts +4 -0
- package/dist/cli/analyzeUsage/analyzeUsage.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/analyzeUsage.js +60 -0
- package/dist/cli/analyzeUsage/core/Analyzer.d.ts +9 -0
- package/dist/cli/analyzeUsage/core/Analyzer.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/core/Analyzer.js +29 -0
- package/dist/cli/analyzeUsage/core/ProjectContext.d.ts +10 -0
- package/dist/cli/analyzeUsage/core/ProjectContext.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/core/ProjectContext.js +58 -0
- package/dist/cli/analyzeUsage/core/Scanner.d.ts +15 -0
- package/dist/cli/analyzeUsage/core/Scanner.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/core/Scanner.js +115 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ClientRule.js +76 -0
- package/dist/cli/analyzeUsage/rules/CoverageRule.d.ts +7 -0
- package/dist/cli/analyzeUsage/rules/CoverageRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/CoverageRule.js +55 -0
- package/dist/cli/analyzeUsage/rules/DiagnosticsRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/DiagnosticsRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/DiagnosticsRule.js +63 -0
- package/dist/cli/analyzeUsage/rules/ImportRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/ImportRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ImportRule.js +50 -0
- package/dist/cli/analyzeUsage/rules/ModelRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/ModelRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ModelRule.js +34 -0
- package/dist/cli/analyzeUsage/rules/SchemaRule.d.ts +6 -0
- package/dist/cli/analyzeUsage/rules/SchemaRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/SchemaRule.js +46 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.d.ts +7 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/rules/ServiceRule.js +86 -0
- package/dist/cli/analyzeUsage/types.d.ts +52 -0
- package/dist/cli/analyzeUsage/types.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/types.js +2 -0
- package/dist/cli/analyzeUsage/utils/fuzzy.d.ts +5 -0
- package/dist/cli/analyzeUsage/utils/fuzzy.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/utils/fuzzy.js +38 -0
- package/dist/cli/analyzeUsage/utils/report.d.ts +16 -0
- package/dist/cli/analyzeUsage/utils/report.d.ts.map +1 -0
- package/dist/cli/analyzeUsage/utils/report.js +85 -0
- package/dist/cli/checkAndUpdateConfig/__tests__/checkConfig.test.js +10 -20
- package/dist/cli/checkAndUpdateConfig/__tests__/updateConfig.test.js +10 -20
- 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 +8 -4
- 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 +6 -3
- package/dist/cli/checkAndUpdateConfig/utils/removeDefaultConfigValues.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/validateAndMigrateConfigData.js +19 -1
- package/dist/cli/checkAndUpdateConfig/utils/writeConfigFile.d.ts +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/writeConfigFile.d.ts.map +1 -1
- package/dist/cli/checkAndUpdateConfig/utils/writeConfigFile.js +1 -1
- package/dist/cli/generateOpenApiClient/__tests__/generateOpenApiClient.strict.test.js +18 -9
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts +2 -5
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.d.ts.map +1 -1
- package/dist/cli/generateOpenApiClient/generateOpenApiClient.js +21 -17
- package/dist/cli/index.js +44 -11
- package/dist/cli/initOpenApiConfig/__tests__/init.test.js +4 -14
- package/dist/cli/initOpenApiConfig/__tests__/initConfig.test.js +3 -1
- package/dist/cli/initOpenApiConfig/init.d.ts +2 -1
- package/dist/cli/initOpenApiConfig/init.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/init.js +3 -3
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts +0 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/initCustomRequest.js +1 -2
- package/dist/cli/initOpenApiConfig/utils/__tests__/buildConfig.test.js +2 -8
- package/dist/cli/initOpenApiConfig/utils/__tests__/validateSpecFiles.test.js +9 -0
- package/dist/cli/initOpenApiConfig/utils/buildConfig.d.ts.map +1 -1
- package/dist/cli/initOpenApiConfig/utils/buildConfig.js +0 -4
- package/dist/cli/initOpenApiConfig/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/cli/interactive/constants.d.ts +0 -4
- package/dist/cli/interactive/constants.d.ts.map +1 -1
- package/dist/cli/interactive/constants.js +1 -5
- package/dist/cli/previewChanges/previewChanges.d.ts +2 -1
- package/dist/cli/previewChanges/previewChanges.d.ts.map +1 -1
- package/dist/cli/previewChanges/previewChanges.js +6 -6
- package/dist/cli/previewChanges/utils/formatDiff.d.ts.map +1 -1
- package/dist/cli/previewChanges/utils/updateOutputPaths.d.ts.map +1 -1
- package/dist/cli/previewChanges/utils/updateOutputPaths.js +5 -12
- package/dist/cli/schemas/analyzeUsage.d.ts +13 -0
- package/dist/cli/schemas/analyzeUsage.d.ts.map +1 -0
- package/dist/cli/schemas/analyzeUsage.js +41 -0
- package/dist/cli/schemas/generate.d.ts +10 -2
- package/dist/cli/schemas/generate.d.ts.map +1 -1
- package/dist/cli/schemas/generate.js +7 -2
- package/dist/cli/schemas/index.d.ts +2 -2
- package/dist/cli/schemas/index.d.ts.map +1 -1
- package/dist/cli/schemas/index.js +1 -1
- package/dist/cli/schemas/init.d.ts +0 -1
- package/dist/cli/schemas/init.d.ts.map +1 -1
- package/dist/cli/schemas/init.js +0 -1
- package/dist/cli/types.d.ts +6 -0
- package/dist/cli/types.d.ts.map +1 -0
- package/dist/cli/types.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 +7 -4
- package/dist/common/Logger.d.ts.map +1 -1
- package/dist/common/Logger.js +3 -3
- package/dist/common/LoggerMessages.d.ts +66 -12
- package/dist/common/LoggerMessages.d.ts.map +1 -1
- package/dist/common/LoggerMessages.js +72 -18
- package/dist/common/TEslintFixOptions.d.ts +20 -0
- package/dist/common/TEslintFixOptions.d.ts.map +1 -0
- package/dist/common/TEslintFixOptions.js +15 -0
- package/dist/common/TRawOptions.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllMigrationPlans.js +2 -4
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/AllVersionedSchemas.js +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts +0 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedBase.js +1 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV1.js +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV2.js +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts +0 -2
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts +10 -4
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedOptionsSchemaV5.js +15 -5
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts +18 -15
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/AllVersionedSchemas/UnifiedVersionedSchemas.js +7 -1
- package/dist/common/VersionedSchema/CommonSchemas.d.ts +0 -2
- package/dist/common/VersionedSchema/CommonSchemas.d.ts.map +1 -1
- package/dist/common/VersionedSchema/CommonSchemas.js +4 -3
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsMigrationPlan.js +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV2.js +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV3.js +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV4.js +1 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts +0 -1
- package/dist/common/VersionedSchema/MultiOptionsVersioned/MultiOptionsSchemaV5.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsMigrationPlans.js +0 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts +2 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV1.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV2.d.ts +2 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts +0 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.d.ts.map +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV3.js +1 -1
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts +1 -2
- package/dist/common/VersionedSchema/OptionsVersioned/OptionsSchemaV4.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/__mocks__/compatibilityCases.js +9 -9
- package/dist/common/VersionedSchema/Utils/__tests__/allUtils.test.js +4 -16
- package/dist/common/VersionedSchema/Utils/buildVersionedSchema.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/createDefaultFieldsMigration.d.ts +1 -1
- package/dist/common/VersionedSchema/Utils/createDefaultFieldsMigration.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/createDefaultFieldsMigration.js +1 -1
- package/dist/common/VersionedSchema/Utils/createTrivialMigration.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/createTrivialMigration.js +1 -1
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/determineBestMatchingSchemaVersion.js +1 -3
- package/dist/common/VersionedSchema/Utils/getLatestVersionFromMigrationPlans.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/migrateDataToLatestSchemaVersion.js +2 -4
- package/dist/common/VersionedSchema/Utils/replaceInvalidKeysWithMappedNames.d.ts.map +1 -1
- package/dist/common/VersionedSchema/Utils/replaceInvalidKeysWithMappedNames.js +1 -1
- package/dist/common/VersionedSchema/Utils/validateAndSuggestKeyCorrections.d.ts.map +1 -1
- package/dist/common/VersionedSchema/refinements/dependentOptionsRefinement.d.ts +1 -1
- package/dist/common/VersionedSchema/refinements/dependentOptionsRefinement.d.ts.map +1 -1
- package/dist/common/utils/__tests__/convertArrayToObject.test.js +0 -3
- package/dist/common/utils/__tests__/eslintFix.test.js +25 -67
- package/dist/common/utils/__tests__/extractEslintFixOptions.test.d.ts +2 -0
- package/dist/common/utils/__tests__/extractEslintFixOptions.test.d.ts.map +1 -0
- package/dist/common/utils/__tests__/extractEslintFixOptions.test.js +28 -0
- package/dist/common/utils/__tests__/format.test.js +26 -17
- package/dist/common/utils/__tests__/prepareTempTsConfig.test.d.ts +2 -0
- package/dist/common/utils/__tests__/prepareTempTsConfig.test.d.ts.map +1 -0
- package/dist/common/utils/__tests__/prepareTempTsConfig.test.js +78 -0
- package/dist/common/utils/codegenTempDir.d.ts +20 -0
- package/dist/common/utils/codegenTempDir.d.ts.map +1 -0
- package/dist/common/utils/codegenTempDir.js +42 -0
- package/dist/common/utils/convertArrayToObject.d.ts.map +1 -1
- package/dist/common/utils/convertArrayToObject.js +3 -10
- package/dist/common/utils/eslintFix.d.ts +48 -4
- package/dist/common/utils/eslintFix.d.ts.map +1 -1
- package/dist/common/utils/eslintFix.js +121 -15
- 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 +23 -11
- package/dist/common/utils/jsonPath.d.ts.map +1 -1
- package/dist/common/utils/prepareTempEslintConfig.d.ts +18 -0
- package/dist/common/utils/prepareTempEslintConfig.d.ts.map +1 -0
- package/dist/common/utils/prepareTempEslintConfig.js +55 -0
- package/dist/common/utils/prepareTempTsConfig.d.ts +23 -0
- package/dist/common/utils/prepareTempTsConfig.d.ts.map +1 -0
- package/dist/common/utils/prepareTempTsConfig.js +105 -0
- package/dist/core/Context.d.ts.map +1 -1
- package/dist/core/Context.js +2 -6
- package/dist/core/OpenApiClient.d.ts +19 -1
- package/dist/core/OpenApiClient.d.ts.map +1 -1
- package/dist/core/OpenApiClient.js +243 -22
- package/dist/core/WriteClient.d.ts +33 -5
- package/dist/core/WriteClient.d.ts.map +1 -1
- package/dist/core/WriteClient.js +60 -18
- package/dist/core/__tests__/WriteClient.test.js +1 -1
- package/dist/core/api/v2/parser/getOperationResponses.d.ts.map +1 -1
- package/dist/core/api/v2/parser/getOperationResponses.js +1 -3
- package/dist/core/api/v2/parser/getServiceName.d.ts +1 -1
- package/dist/core/api/v3/parser/getOperation.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationParameters.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationResponses.d.ts.map +1 -1
- package/dist/core/api/v3/parser/getOperationResponses.js +1 -3
- package/dist/core/api/v3/parser/getServiceName.d.ts +1 -1
- package/dist/core/governance/evaluateGovernanceRules.d.ts.map +1 -1
- package/dist/core/governance/evaluateGovernanceRules.js +1 -3
- package/dist/core/governance/loadGovernanceConfig.d.ts.map +1 -1
- package/dist/core/governance/loadGovernanceConfig.js +2 -4
- package/dist/core/plugins/GeneratorPlugin.model.d.ts.map +1 -1
- package/dist/core/plugins/applySemanticDiffPluginHooks.d.ts.map +1 -1
- package/dist/core/plugins/getBuiltinPlugins.d.ts.map +1 -1
- package/dist/core/plugins/loadGeneratorPlugins.d.ts.map +1 -1
- package/dist/core/plugins/loadGeneratorPlugins.js +1 -1
- package/dist/core/semanticDiff/__tests__/analyzeOpenApiDiff.test.js +7 -21
- package/dist/core/semanticDiff/analyzeOpenApiDiff.d.ts.map +1 -1
- package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts +0 -2
- package/dist/core/semanticDiff/semanticDiffReportSchema.d.ts.map +1 -1
- package/dist/core/semanticDiff/semanticDiffReportSchema.js +3 -9
- package/dist/core/strict/validateOpenApiStrict.d.ts.map +1 -1
- package/dist/core/types/Consts.js +1 -1
- package/dist/core/types/base/ClientArtifacts.model.d.ts +3 -3
- package/dist/core/types/base/ClientArtifacts.model.d.ts.map +1 -1
- package/dist/core/types/base/ExportedModel.model.d.ts +1 -1
- package/dist/core/types/base/ExportedModel.model.d.ts.map +1 -1
- package/dist/core/types/base/ExportedService.model.d.ts.map +1 -1
- package/dist/core/types/base/OutputPaths.model.d.ts.map +1 -1
- package/dist/core/types/base/PrefixArtifacts.model.d.ts.map +1 -1
- package/dist/core/types/base/PropertyGroup.model.d.ts +1 -1
- package/dist/core/types/base/SimpleClientArtifacts.model.d.ts +1 -1
- package/dist/core/types/base/SimpleClientArtifacts.model.d.ts.map +1 -1
- package/dist/core/types/shared/Client.model.d.ts +1 -1
- package/dist/core/types/shared/Client.model.d.ts.map +1 -1
- package/dist/core/types/shared/Model.model.d.ts +1 -1
- package/dist/core/types/shared/Model.model.d.ts.map +1 -1
- package/dist/core/utils/__tests__/postProcessModelImports.test.js +1 -4
- package/dist/core/utils/__tests__/postProcessServiceImports.test.js +1 -4
- package/dist/core/utils/__tests__/prepareDtoModels.test.js +95 -0
- package/dist/core/utils/__tests__/registerHandlebarHelpers.test.js +27 -0
- package/dist/core/utils/__tests__/sortByRequiredExtended.test.js +10 -27
- package/dist/core/utils/__tests__/writeClientServices.test.js +0 -1
- package/dist/core/utils/appendUniqueLinesToFile.js +1 -1
- package/dist/core/utils/applyDiffReportToClient.d.ts.map +1 -1
- package/dist/core/utils/applyDiffReportToClient.js +2 -2
- package/dist/core/utils/areEqual.d.ts +1 -1
- package/dist/core/utils/getOperationErrors.d.ts +2 -2
- package/dist/core/utils/getOperationErrors.d.ts.map +1 -1
- package/dist/core/utils/getOperationResults.d.ts +1 -1
- package/dist/core/utils/getPropertyGroupSimple.d.ts.map +1 -1
- package/dist/core/utils/getPropertyGroupSimple.js +1 -3
- package/dist/core/utils/isSubdirectory.d.ts.map +1 -1
- package/dist/core/utils/loadDiffReport.d.ts.map +1 -1
- package/dist/core/utils/loadDiffReport.js +5 -4
- package/dist/core/utils/modelHelpers.d.ts.map +1 -1
- package/dist/core/utils/normalizeString.d.ts.map +1 -1
- package/dist/core/utils/normalizeString.js +1 -5
- package/dist/core/utils/postProcessServiceImports.d.ts.map +1 -1
- package/dist/core/utils/postProcessServiceImports.js +1 -3
- package/dist/core/utils/precompileTemplates.js +4 -2
- package/dist/core/utils/prepareAlias.d.ts +1 -1
- package/dist/core/utils/prepareDtoModels.d.ts.map +1 -1
- package/dist/core/utils/prepareDtoModels.js +2 -8
- package/dist/core/utils/registerHandlebarHelpers.d.ts +1 -0
- package/dist/core/utils/registerHandlebarHelpers.d.ts.map +1 -1
- package/dist/core/utils/registerHandlebarHelpers.js +3 -0
- package/dist/core/utils/registerHandlebarTemplates.d.ts +1 -0
- package/dist/core/utils/registerHandlebarTemplates.d.ts.map +1 -1
- package/dist/core/utils/sortModelByName.d.ts +1 -1
- package/dist/core/utils/writeClientCore.d.ts +0 -2
- package/dist/core/utils/writeClientCore.d.ts.map +1 -1
- package/dist/core/utils/writeClientCore.js +19 -18
- package/dist/core/utils/writeClientCoreIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientCoreIndex.js +14 -4
- package/dist/core/utils/writeClientExecutor.d.ts +1 -2
- package/dist/core/utils/writeClientExecutor.d.ts.map +1 -1
- package/dist/core/utils/writeClientExecutor.js +6 -10
- package/dist/core/utils/writeClientFullIndex.js +4 -4
- package/dist/core/utils/writeClientModels.d.ts +1 -2
- package/dist/core/utils/writeClientModels.d.ts.map +1 -1
- package/dist/core/utils/writeClientModels.js +14 -16
- package/dist/core/utils/writeClientModelsIndex.d.ts +1 -1
- package/dist/core/utils/writeClientModelsIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientModelsIndex.js +14 -4
- package/dist/core/utils/writeClientSchemas.d.ts +1 -3
- package/dist/core/utils/writeClientSchemas.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemas.js +9 -14
- package/dist/core/utils/writeClientSchemasIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientSchemasIndex.js +14 -4
- package/dist/core/utils/writeClientServices.d.ts +1 -4
- package/dist/core/utils/writeClientServices.d.ts.map +1 -1
- package/dist/core/utils/writeClientServices.js +9 -13
- package/dist/core/utils/writeClientServicesIndex.d.ts.map +1 -1
- package/dist/core/utils/writeClientServicesIndex.js +14 -4
- package/dist/core/utils/writeClientSimpleIndex.js +4 -4
- package/dist/templatesCompiled/cli/customRequest.d.ts +2 -6
- package/dist/templatesCompiled/cli/customRequest.d.ts.map +1 -1
- package/dist/templatesCompiled/cli/customRequest.js +8 -28
- package/dist/templatesCompiled/cli/customRequestExecutor.d.ts +0 -3
- package/dist/templatesCompiled/cli/customRequestExecutor.d.ts.map +1 -1
- package/dist/templatesCompiled/cli/customRequestExecutor.js +5 -28
- package/dist/templatesCompiled/client/core/axios/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/axios/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/axios/request.js +2 -22
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts +2 -5
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/createExecutorAdapter.js +12 -42
- package/dist/templatesCompiled/client/core/executor/requestExecutor.d.ts +0 -2
- package/dist/templatesCompiled/client/core/executor/requestExecutor.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/executor/requestExecutor.js +3 -11
- package/dist/templatesCompiled/client/core/fetch/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/fetch/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/fetch/request.js +2 -22
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.d.ts +0 -2
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/interceptors/withInterceptors.js +3 -11
- package/dist/templatesCompiled/client/core/node/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/node/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/node/request.js +2 -22
- package/dist/templatesCompiled/client/core/xhr/request.d.ts +2 -6
- package/dist/templatesCompiled/client/core/xhr/request.d.ts.map +1 -1
- package/dist/templatesCompiled/client/core/xhr/request.js +2 -22
- package/dist/templatesCompiled/client/exportService.d.ts +9 -11
- package/dist/templatesCompiled/client/exportService.d.ts.map +1 -1
- package/dist/templatesCompiled/client/exportService.js +64 -82
- package/dist/templatesCompiled/client/partials/header.d.ts +1 -0
- package/dist/templatesCompiled/client/partials/header.d.ts.map +1 -1
- package/dist/templatesCompiled/client/partials/header.js +11 -2
- package/dist/test/helpers/silenceLoggers.d.ts +11 -0
- package/dist/test/helpers/silenceLoggers.d.ts.map +1 -0
- package/dist/test/helpers/silenceLoggers.js +88 -0
- package/package.json +132 -135
|
@@ -42,16 +42,6 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
42
42
|
+ ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "outputCore"), "CancelablePromise", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 9, "column": 40 }, "end": { "line": 9, "column": 91 } } })) != null ? stack1 : "")
|
|
43
43
|
+ "';\n";
|
|
44
44
|
}, "7": function (container, depth0, helpers, partials, data) {
|
|
45
|
-
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
46
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
47
|
-
return parent[propertyName];
|
|
48
|
-
}
|
|
49
|
-
return undefined;
|
|
50
|
-
};
|
|
51
|
-
return "import type { ApiResult } from '"
|
|
52
|
-
+ ((stack1 = lookupProperty(helpers, "joinPath").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "outputCore"), "ApiResult", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 13, "column": 32 }, "end": { "line": 13, "column": 75 } } })) != null ? stack1 : "")
|
|
53
|
-
+ "';\n";
|
|
54
|
-
}, "9": function (container, depth0, helpers, partials, data) {
|
|
55
45
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
56
46
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
57
47
|
return parent[propertyName];
|
|
@@ -59,13 +49,13 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
59
49
|
return undefined;
|
|
60
50
|
};
|
|
61
51
|
return "const "
|
|
62
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
52
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 15, "column": 9 }, "end": { "line": 15, "column": 13 } }), depth0)) != null ? stack1 : "")
|
|
63
53
|
+ " = ("
|
|
64
54
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
65
55
|
+ "): RequestConfig => ({\n "
|
|
66
56
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "serviceOption"), depth0, { "name": "serviceOption", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
67
57
|
+ "});\n\n";
|
|
68
|
-
}, "
|
|
58
|
+
}, "9": function (container, depth0, helpers, partials, data) {
|
|
69
59
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
70
60
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
71
61
|
return parent[propertyName];
|
|
@@ -73,18 +63,18 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
73
63
|
return undefined;
|
|
74
64
|
};
|
|
75
65
|
return " "
|
|
76
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
66
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 23, "column": 7 }, "end": { "line": 23, "column": 11 } }), depth0)) != null ? stack1 : "")
|
|
77
67
|
+ ": ("
|
|
78
68
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parametersDefinition"), depth0, { "name": "parametersDefinition", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
79
69
|
+ ") => RequestConfig;\n";
|
|
80
|
-
}, "
|
|
70
|
+
}, "11": function (container, depth0, helpers, partials, data) {
|
|
81
71
|
var stack1, alias1 = container.strict, alias2 = container.lambda;
|
|
82
72
|
return " "
|
|
83
|
-
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line":
|
|
73
|
+
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 29, "column": 7 }, "end": { "line": 29, "column": 11 } }), depth0)) != null ? stack1 : "")
|
|
84
74
|
+ ": "
|
|
85
|
-
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line":
|
|
75
|
+
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 29, "column": 19 }, "end": { "line": 29, "column": 23 } }), depth0)) != null ? stack1 : "")
|
|
86
76
|
+ ",\n";
|
|
87
|
-
}, "
|
|
77
|
+
}, "13": function (container, depth0, helpers, partials, data, blockParams, depths) {
|
|
88
78
|
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), alias2 = container.strict, alias3 = container.lambda, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
89
79
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
90
80
|
return parent[propertyName];
|
|
@@ -92,85 +82,94 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
92
82
|
return undefined;
|
|
93
83
|
};
|
|
94
84
|
return " /**\n"
|
|
95
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "deprecated"), { "name": "if", "hash": {}, "fn": container.program(
|
|
96
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "summary"), { "name": "if", "hash": {}, "fn": container.program(
|
|
97
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "description"), { "name": "if", "hash": {}, "fn": container.program(
|
|
98
|
-
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(lookupProperty(data, "root"), "useOptions"), { "name": "unless", "hash": {}, "fn": container.program(
|
|
99
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "results"), { "name": "each", "hash": {}, "fn": container.program(
|
|
85
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "deprecated"), { "name": "if", "hash": {}, "fn": container.program(14, data, 0, blockParams, depths), "inverse": container.program(16, data, 0, blockParams, depths), "data": data, "loc": { "start": { "line": 38, "column": 4 }, "end": { "line": 44, "column": 11 } } })) != null ? stack1 : "")
|
|
86
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "summary"), { "name": "if", "hash": {}, "fn": container.program(20, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 45, "column": 4 }, "end": { "line": 47, "column": 11 } } })) != null ? stack1 : "")
|
|
87
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(depth0, "description"), { "name": "if", "hash": {}, "fn": container.program(22, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 48, "column": 4 }, "end": { "line": 50, "column": 11 } } })) != null ? stack1 : "")
|
|
88
|
+
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(lookupProperty(data, "root"), "useOptions"), { "name": "unless", "hash": {}, "fn": container.program(24, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 51, "column": 4 }, "end": { "line": 57, "column": 15 } } })) != null ? stack1 : "")
|
|
89
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "results"), { "name": "each", "hash": {}, "fn": container.program(28, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 58, "column": 4 }, "end": { "line": 60, "column": 13 } } })) != null ? stack1 : "")
|
|
100
90
|
+ " * @throws ApiError\n */\n"
|
|
101
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(
|
|
91
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(30, data, 0, blockParams, depths), "inverse": container.program(32, data, 0, blockParams, depths), "data": data, "loc": { "start": { "line": 63, "column": 4 }, "end": { "line": 73, "column": 11 } } })) != null ? stack1 : "")
|
|
102
92
|
+ " return this.executor.request<"
|
|
103
93
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
104
94
|
+ ">(\n "
|
|
105
|
-
+ ((stack1 = alias3(alias2(depths[1], "originName", { "start": { "line":
|
|
95
|
+
+ ((stack1 = alias3(alias2(depths[1], "originName", { "start": { "line": 75, "column": 15 }, "end": { "line": 75, "column": 28 } }), depth0)) != null ? stack1 : "")
|
|
106
96
|
+ "Options."
|
|
107
|
-
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line":
|
|
97
|
+
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line": 75, "column": 42 }, "end": { "line": 75, "column": 46 } }), depth0)) != null ? stack1 : "")
|
|
108
98
|
+ "("
|
|
109
99
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameterValues"), depth0, { "name": "parameterValues", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
110
100
|
+ "),\n options\n );\n }\n\n"
|
|
111
|
-
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "
|
|
112
|
-
|
|
101
|
+
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(34, data, 0, blockParams, depths), "inverse": container.program(36, data, 0, blockParams, depths), "data": data, "loc": { "start": { "line": 80, "column": 4 }, "end": { "line": 90, "column": 11 } } })) != null ? stack1 : "")
|
|
102
|
+
+ " return this.executor.requestRaw<"
|
|
103
|
+
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
104
|
+
+ ">(\n "
|
|
105
|
+
+ ((stack1 = alias3(alias2(depths[1], "originName", { "start": { "line": 92, "column": 15 }, "end": { "line": 92, "column": 28 } }), depth0)) != null ? stack1 : "")
|
|
106
|
+
+ "Options."
|
|
107
|
+
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line": 92, "column": 42 }, "end": { "line": 92, "column": 46 } }), depth0)) != null ? stack1 : "")
|
|
108
|
+
+ "("
|
|
109
|
+
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameterValues"), depth0, { "name": "parameterValues", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
110
|
+
+ "),\n options\n );\n }\n";
|
|
111
|
+
}, "14": function (container, depth0, helpers, partials, data) {
|
|
113
112
|
return " * @deprecated\n";
|
|
114
|
-
}, "
|
|
113
|
+
}, "16": function (container, depth0, helpers, partials, data) {
|
|
115
114
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
116
115
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
117
116
|
return parent[propertyName];
|
|
118
117
|
}
|
|
119
118
|
return undefined;
|
|
120
119
|
};
|
|
121
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "diff"), { "name": "if", "hash": {}, "fn": container.program(
|
|
122
|
-
}, "
|
|
120
|
+
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "diff"), { "name": "if", "hash": {}, "fn": container.program(17, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 40, "column": 4 }, "end": { "line": 44, "column": 4 } } })) != null ? stack1 : "");
|
|
121
|
+
}, "17": function (container, depth0, helpers, partials, data) {
|
|
123
122
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
124
123
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
125
124
|
return parent[propertyName];
|
|
126
125
|
}
|
|
127
126
|
return undefined;
|
|
128
127
|
};
|
|
129
|
-
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(depth0, "diff"), "action"), "removed", { "name": "equals", "hash": {}, "fn": container.program(
|
|
128
|
+
return ((stack1 = lookupProperty(helpers, "equals").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(depth0, "diff"), "action"), "removed", { "name": "equals", "hash": {}, "fn": container.program(18, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 41, "column": 4 }, "end": { "line": 43, "column": 15 } } })) != null ? stack1 : "")
|
|
130
129
|
+ " ";
|
|
131
|
-
}, "
|
|
130
|
+
}, "18": function (container, depth0, helpers, partials, data) {
|
|
132
131
|
return " * @deprecated Removed from API\n";
|
|
133
|
-
}, "
|
|
132
|
+
}, "20": function (container, depth0, helpers, partials, data) {
|
|
134
133
|
var stack1;
|
|
135
134
|
return " * "
|
|
136
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "summary", { "start": { "line":
|
|
135
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "summary", { "start": { "line": 46, "column": 10 }, "end": { "line": 46, "column": 17 } }), depth0)) != null ? stack1 : "")
|
|
137
136
|
+ "\n";
|
|
138
|
-
}, "
|
|
137
|
+
}, "22": function (container, depth0, helpers, partials, data) {
|
|
139
138
|
var stack1;
|
|
140
139
|
return " * "
|
|
141
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "description", { "start": { "line":
|
|
140
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "description", { "start": { "line": 49, "column": 10 }, "end": { "line": 49, "column": 21 } }), depth0)) != null ? stack1 : "")
|
|
142
141
|
+ "\n";
|
|
143
|
-
}, "
|
|
142
|
+
}, "24": function (container, depth0, helpers, partials, data) {
|
|
144
143
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
145
144
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
146
145
|
return parent[propertyName];
|
|
147
146
|
}
|
|
148
147
|
return undefined;
|
|
149
148
|
};
|
|
150
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "if", "hash": {}, "fn": container.program(
|
|
151
|
-
}, "
|
|
149
|
+
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "if", "hash": {}, "fn": container.program(25, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 52, "column": 4 }, "end": { "line": 56, "column": 11 } } })) != null ? stack1 : "");
|
|
150
|
+
}, "25": function (container, depth0, helpers, partials, data) {
|
|
152
151
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
153
152
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
154
153
|
return parent[propertyName];
|
|
155
154
|
}
|
|
156
155
|
return undefined;
|
|
157
156
|
};
|
|
158
|
-
return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "each", "hash": {}, "fn": container.program(
|
|
159
|
-
}, "
|
|
157
|
+
return ((stack1 = lookupProperty(helpers, "each").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(depth0, "parameters"), { "name": "each", "hash": {}, "fn": container.program(26, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 53, "column": 4 }, "end": { "line": 55, "column": 13 } } })) != null ? stack1 : "");
|
|
158
|
+
}, "26": function (container, depth0, helpers, partials, data) {
|
|
160
159
|
var stack1, alias1 = container.strict, alias2 = container.lambda;
|
|
161
160
|
return " * @param "
|
|
162
|
-
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line":
|
|
161
|
+
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 54, "column": 17 }, "end": { "line": 54, "column": 21 } }), depth0)) != null ? stack1 : "")
|
|
163
162
|
+ " "
|
|
164
|
-
+ ((stack1 = alias2(alias1(depth0, "description", { "start": { "line":
|
|
163
|
+
+ ((stack1 = alias2(alias1(depth0, "description", { "start": { "line": 54, "column": 28 }, "end": { "line": 54, "column": 39 } }), depth0)) != null ? stack1 : "")
|
|
165
164
|
+ "\n";
|
|
166
|
-
}, "
|
|
165
|
+
}, "28": function (container, depth0, helpers, partials, data) {
|
|
167
166
|
var stack1, alias1 = container.strict, alias2 = container.lambda;
|
|
168
167
|
return " * @returns "
|
|
169
|
-
+ ((stack1 = alias2(alias1(depth0, "type", { "start": { "line":
|
|
168
|
+
+ ((stack1 = alias2(alias1(depth0, "type", { "start": { "line": 59, "column": 19 }, "end": { "line": 59, "column": 23 } }), depth0)) != null ? stack1 : "")
|
|
170
169
|
+ " "
|
|
171
|
-
+ ((stack1 = alias2(alias1(depth0, "description", { "start": { "line":
|
|
170
|
+
+ ((stack1 = alias2(alias1(depth0, "description", { "start": { "line": 59, "column": 30 }, "end": { "line": 59, "column": 41 } }), depth0)) != null ? stack1 : "")
|
|
172
171
|
+ "\n";
|
|
173
|
-
}, "
|
|
172
|
+
}, "30": function (container, depth0, helpers, partials, data) {
|
|
174
173
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
175
174
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
176
175
|
return parent[propertyName];
|
|
@@ -178,13 +177,13 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
178
177
|
return undefined;
|
|
179
178
|
};
|
|
180
179
|
return " public "
|
|
181
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
180
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 64, "column": 14 }, "end": { "line": 64, "column": 18 } }), depth0)) != null ? stack1 : "")
|
|
182
181
|
+ "(\n "
|
|
183
182
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
184
183
|
+ " options?: TOptions,\n ): CancelablePromise<"
|
|
185
184
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
186
185
|
+ "> {\n";
|
|
187
|
-
}, "
|
|
186
|
+
}, "32": function (container, depth0, helpers, partials, data) {
|
|
188
187
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
189
188
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
190
189
|
return parent[propertyName];
|
|
@@ -192,30 +191,13 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
192
191
|
return undefined;
|
|
193
192
|
};
|
|
194
193
|
return " public "
|
|
195
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
194
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 69, "column": 14 }, "end": { "line": 69, "column": 18 } }), depth0)) != null ? stack1 : "")
|
|
196
195
|
+ "(\n "
|
|
197
196
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
198
197
|
+ " options?: TOptions,\n ): Promise<"
|
|
199
198
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
200
199
|
+ "> {\n";
|
|
201
|
-
}, "
|
|
202
|
-
var stack1, alias1 = container.strict, alias2 = container.lambda, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
203
|
-
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
204
|
-
return parent[propertyName];
|
|
205
|
-
}
|
|
206
|
-
return undefined;
|
|
207
|
-
};
|
|
208
|
-
return ((stack1 = lookupProperty(helpers, "if").call(depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(37, data, 0, blockParams, depths), "inverse": container.program(39, data, 0, blockParams, depths), "data": data, "loc": { "start": { "line": 83, "column": 4 }, "end": { "line": 93, "column": 11 } } })) != null ? stack1 : "")
|
|
209
|
-
+ " return this.executor.requestRaw<"
|
|
210
|
-
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
211
|
-
+ ">(\n "
|
|
212
|
-
+ ((stack1 = alias2(alias1(depths[1], "originName", { "start": { "line": 95, "column": 15 }, "end": { "line": 95, "column": 28 } }), depth0)) != null ? stack1 : "")
|
|
213
|
-
+ "Options."
|
|
214
|
-
+ ((stack1 = alias2(alias1(depth0, "name", { "start": { "line": 95, "column": 42 }, "end": { "line": 95, "column": 46 } }), depth0)) != null ? stack1 : "")
|
|
215
|
-
+ "("
|
|
216
|
-
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameterValues"), depth0, { "name": "parameterValues", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
217
|
-
+ "),\n options\n );\n }\n";
|
|
218
|
-
}, "37": function (container, depth0, helpers, partials, data) {
|
|
200
|
+
}, "34": function (container, depth0, helpers, partials, data) {
|
|
219
201
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
220
202
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
221
203
|
return parent[propertyName];
|
|
@@ -223,13 +205,13 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
223
205
|
return undefined;
|
|
224
206
|
};
|
|
225
207
|
return " public "
|
|
226
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
208
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 81, "column": 14 }, "end": { "line": 81, "column": 18 } }), depth0)) != null ? stack1 : "")
|
|
227
209
|
+ "Raw(\n "
|
|
228
210
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
229
211
|
+ " options?: TOptions,\n ): CancelablePromise<ApiResult<"
|
|
230
212
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "result"), depth0, { "name": "result", "hash": { "default": "void" }, "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
231
213
|
+ ">> {\n";
|
|
232
|
-
}, "
|
|
214
|
+
}, "36": function (container, depth0, helpers, partials, data) {
|
|
233
215
|
var stack1, lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
234
216
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
235
217
|
return parent[propertyName];
|
|
@@ -237,7 +219,7 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
237
219
|
return undefined;
|
|
238
220
|
};
|
|
239
221
|
return " public "
|
|
240
|
-
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line":
|
|
222
|
+
+ ((stack1 = container.lambda(container.strict(depth0, "name", { "start": { "line": 86, "column": 14 }, "end": { "line": 86, "column": 18 } }), depth0)) != null ? stack1 : "")
|
|
241
223
|
+ "Raw(\n "
|
|
242
224
|
+ ((stack1 = container.invokePartial(lookupProperty(partials, "parameters"), depth0, { "name": "parameters", "data": data, "helpers": helpers, "partials": partials, "decorators": container.decorators })) != null ? stack1 : "")
|
|
243
225
|
+ " options?: TOptions,\n ): Promise<ApiResult<"
|
|
@@ -256,23 +238,23 @@ exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
|
256
238
|
+ ((stack1 = lookupProperty(helpers, "if").call(alias1, lookupProperty(lookupProperty(data, "root"), "useCancelableRequest"), { "name": "if", "hash": {}, "fn": container.program(5, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 8, "column": 0 }, "end": { "line": 10, "column": 7 } } })) != null ? stack1 : "")
|
|
257
239
|
+ "import type { RequestExecutor, RequestConfig } from '"
|
|
258
240
|
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "./executor/requestExecutor", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 11, "column": 53 }, "end": { "line": 11, "column": 113 } } })) != null ? stack1 : "")
|
|
259
|
-
+ "';\
|
|
260
|
-
+ ((stack1 = lookupProperty(helpers, "
|
|
261
|
-
+ "\n"
|
|
262
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(
|
|
241
|
+
+ "';\nimport type { ApiResult } from '"
|
|
242
|
+
+ ((stack1 = lookupProperty(helpers, "joinPath").call(alias1, lookupProperty(lookupProperty(data, "root"), "outputCore"), "ApiResult", { "name": "joinPath", "hash": {}, "data": data, "loc": { "start": { "line": 12, "column": 32 }, "end": { "line": 12, "column": 75 } } })) != null ? stack1 : "")
|
|
243
|
+
+ "';\n\n"
|
|
244
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(7, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 14, "column": 0 }, "end": { "line": 19, "column": 9 } } })) != null ? stack1 : "")
|
|
263
245
|
+ "\nexport type T"
|
|
264
|
-
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line":
|
|
246
|
+
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 21, "column": 16 }, "end": { "line": 21, "column": 26 } }), depth0)) != null ? stack1 : "")
|
|
265
247
|
+ "Options = {\n"
|
|
266
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(
|
|
248
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(9, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 22, "column": 0 }, "end": { "line": 24, "column": 9 } } })) != null ? stack1 : "")
|
|
267
249
|
+ "};\n\nexport const "
|
|
268
|
-
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line":
|
|
250
|
+
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 27, "column": 16 }, "end": { "line": 27, "column": 26 } }), depth0)) != null ? stack1 : "")
|
|
269
251
|
+ "Options: T"
|
|
270
|
-
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line":
|
|
252
|
+
+ ((stack1 = alias3(alias2(depth0, "originName", { "start": { "line": 27, "column": 42 }, "end": { "line": 27, "column": 52 } }), depth0)) != null ? stack1 : "")
|
|
271
253
|
+ "Options = {\n"
|
|
272
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(
|
|
254
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(11, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 28, "column": 0 }, "end": { "line": 30, "column": 9 } } })) != null ? stack1 : "")
|
|
273
255
|
+ "};\n\nexport class "
|
|
274
|
-
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line":
|
|
256
|
+
+ ((stack1 = alias3(alias2(depth0, "name", { "start": { "line": 33, "column": 16 }, "end": { "line": 33, "column": 20 } }), depth0)) != null ? stack1 : "")
|
|
275
257
|
+ "<TOptions = unknown> {\n constructor(private readonly executor: RequestExecutor<TOptions>) {}\n\n"
|
|
276
|
-
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(
|
|
258
|
+
+ ((stack1 = lookupProperty(helpers, "each").call(alias1, lookupProperty(depth0, "operations"), { "name": "each", "hash": {}, "fn": container.program(13, data, 0, blockParams, depths), "inverse": container.noop, "data": data, "loc": { "start": { "line": 36, "column": 4 }, "end": { "line": 96, "column": 13 } } })) != null ? stack1 : "")
|
|
277
259
|
+ "}\n";
|
|
278
260
|
}, "usePartial": true, "useData": true, "useDepths": true };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/partials/header.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../../../src/templatesCompiled/client/partials/header.ts"],"names":[],"mappings":";;;;;;AAMA,wBAYiB"}
|
|
@@ -6,6 +6,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
/* tslint: disable */
|
|
7
7
|
/* eslint: disable */
|
|
8
8
|
// @ts-nocheck
|
|
9
|
-
exports.default = { "
|
|
10
|
-
return "/*
|
|
9
|
+
exports.default = { "1": function (container, depth0, helpers, partials, data) {
|
|
10
|
+
return "/* tslint:disable */\n/* eslint-disable */\n";
|
|
11
|
+
}, "compiler": [8, ">= 4.3.0"], "main": function (container, depth0, helpers, partials, data) {
|
|
12
|
+
var stack1, alias1 = depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function (parent, propertyName) {
|
|
13
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14
|
+
return parent[propertyName];
|
|
15
|
+
}
|
|
16
|
+
return undefined;
|
|
17
|
+
};
|
|
18
|
+
return "/*\n * This file was automatically generated by the generator.\n * Please do not edit it.\n */\n/* istanbul ignore file */\n"
|
|
19
|
+
+ ((stack1 = lookupProperty(helpers, "unless").call(alias1, lookupProperty(helpers, "useBatchEslintFix").call(alias1, { "name": "useBatchEslintFix", "hash": {}, "data": data, "loc": { "start": { "line": 6, "column": 10 }, "end": { "line": 6, "column": 29 } } }), { "name": "unless", "hash": {}, "fn": container.program(1, data, 0), "inverse": container.noop, "data": data, "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 9, "column": 11 } } })) != null ? stack1 : "");
|
|
11
20
|
}, "useData": true };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { TestContext } from 'node:test';
|
|
2
|
+
/** Replaces APP_LOGGER public methods with no-ops. */
|
|
3
|
+
export declare function installSilenceAppLogger(): () => void;
|
|
4
|
+
/** Replaces Logger prototype public methods with no-ops (OpenApiClient `client` logger). */
|
|
5
|
+
export declare function installSilenceLoggerPrototype(): () => void;
|
|
6
|
+
/** Replaces APP_LOGGER and Logger public methods with no-ops. */
|
|
7
|
+
export declare function installSilenceLoggers(): () => void;
|
|
8
|
+
export declare function silenceAppLogger(t: TestContext): void;
|
|
9
|
+
export declare function silenceLoggerPrototype(t: TestContext): void;
|
|
10
|
+
export declare function silenceLoggers(t: TestContext): void;
|
|
11
|
+
//# sourceMappingURL=silenceLoggers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"silenceLoggers.d.ts","sourceRoot":"","sources":["../../../src/test/helpers/silenceLoggers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAQ7C,sDAAsD;AACtD,wBAAgB,uBAAuB,IAAI,MAAM,IAAI,CA6BpD;AAED,4FAA4F;AAC5F,wBAAgB,6BAA6B,IAAI,MAAM,IAAI,CA6B1D;AAED,iEAAiE;AACjE,wBAAgB,qBAAqB,IAAI,MAAM,IAAI,CAQlD;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,CAErD;AAED,wBAAgB,sBAAsB,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,CAE3D;AAED,wBAAgB,cAAc,CAAC,CAAC,EAAE,WAAW,GAAG,IAAI,CAEnD"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.installSilenceAppLogger = installSilenceAppLogger;
|
|
4
|
+
exports.installSilenceLoggerPrototype = installSilenceLoggerPrototype;
|
|
5
|
+
exports.installSilenceLoggers = installSilenceLoggers;
|
|
6
|
+
exports.silenceAppLogger = silenceAppLogger;
|
|
7
|
+
exports.silenceLoggerPrototype = silenceLoggerPrototype;
|
|
8
|
+
exports.silenceLoggers = silenceLoggers;
|
|
9
|
+
const Consts_1 = require("../../common/Consts");
|
|
10
|
+
const Logger_1 = require("../../common/Logger");
|
|
11
|
+
const noop = () => undefined;
|
|
12
|
+
const noopAsync = async () => undefined;
|
|
13
|
+
/** Replaces APP_LOGGER public methods with no-ops. */
|
|
14
|
+
function installSilenceAppLogger() {
|
|
15
|
+
const warn = Consts_1.APP_LOGGER.warn.bind(Consts_1.APP_LOGGER);
|
|
16
|
+
const info = Consts_1.APP_LOGGER.info.bind(Consts_1.APP_LOGGER);
|
|
17
|
+
const error = Consts_1.APP_LOGGER.error.bind(Consts_1.APP_LOGGER);
|
|
18
|
+
const errorWithHint = Consts_1.APP_LOGGER.errorWithHint.bind(Consts_1.APP_LOGGER);
|
|
19
|
+
const success = Consts_1.APP_LOGGER.success.bind(Consts_1.APP_LOGGER);
|
|
20
|
+
const forceInfo = Consts_1.APP_LOGGER.forceInfo.bind(Consts_1.APP_LOGGER);
|
|
21
|
+
const shutdownLogger = Consts_1.APP_LOGGER.shutdownLogger.bind(Consts_1.APP_LOGGER);
|
|
22
|
+
const shutdownLoggerAsync = Consts_1.APP_LOGGER.shutdownLoggerAsync.bind(Consts_1.APP_LOGGER);
|
|
23
|
+
Consts_1.APP_LOGGER.warn = noop;
|
|
24
|
+
Consts_1.APP_LOGGER.info = noop;
|
|
25
|
+
Consts_1.APP_LOGGER.error = noop;
|
|
26
|
+
Consts_1.APP_LOGGER.errorWithHint = noop;
|
|
27
|
+
Consts_1.APP_LOGGER.success = noop;
|
|
28
|
+
Consts_1.APP_LOGGER.forceInfo = noop;
|
|
29
|
+
Consts_1.APP_LOGGER.shutdownLogger = noop;
|
|
30
|
+
Consts_1.APP_LOGGER.shutdownLoggerAsync = noopAsync;
|
|
31
|
+
return () => {
|
|
32
|
+
Consts_1.APP_LOGGER.warn = warn;
|
|
33
|
+
Consts_1.APP_LOGGER.info = info;
|
|
34
|
+
Consts_1.APP_LOGGER.error = error;
|
|
35
|
+
Consts_1.APP_LOGGER.errorWithHint = errorWithHint;
|
|
36
|
+
Consts_1.APP_LOGGER.success = success;
|
|
37
|
+
Consts_1.APP_LOGGER.forceInfo = forceInfo;
|
|
38
|
+
Consts_1.APP_LOGGER.shutdownLogger = shutdownLogger;
|
|
39
|
+
Consts_1.APP_LOGGER.shutdownLoggerAsync = shutdownLoggerAsync;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/** Replaces Logger prototype public methods with no-ops (OpenApiClient `client` logger). */
|
|
43
|
+
function installSilenceLoggerPrototype() {
|
|
44
|
+
const warn = Logger_1.Logger.prototype.warn;
|
|
45
|
+
const info = Logger_1.Logger.prototype.info;
|
|
46
|
+
const error = Logger_1.Logger.prototype.error;
|
|
47
|
+
const errorWithHint = Logger_1.Logger.prototype.errorWithHint;
|
|
48
|
+
const success = Logger_1.Logger.prototype.success;
|
|
49
|
+
const forceInfo = Logger_1.Logger.prototype.forceInfo;
|
|
50
|
+
const shutdownLogger = Logger_1.Logger.prototype.shutdownLogger;
|
|
51
|
+
const shutdownLoggerAsync = Logger_1.Logger.prototype.shutdownLoggerAsync;
|
|
52
|
+
Logger_1.Logger.prototype.warn = noop;
|
|
53
|
+
Logger_1.Logger.prototype.info = noop;
|
|
54
|
+
Logger_1.Logger.prototype.error = noop;
|
|
55
|
+
Logger_1.Logger.prototype.errorWithHint = noop;
|
|
56
|
+
Logger_1.Logger.prototype.success = noop;
|
|
57
|
+
Logger_1.Logger.prototype.forceInfo = noop;
|
|
58
|
+
Logger_1.Logger.prototype.shutdownLogger = noop;
|
|
59
|
+
Logger_1.Logger.prototype.shutdownLoggerAsync = noopAsync;
|
|
60
|
+
return () => {
|
|
61
|
+
Logger_1.Logger.prototype.warn = warn;
|
|
62
|
+
Logger_1.Logger.prototype.info = info;
|
|
63
|
+
Logger_1.Logger.prototype.error = error;
|
|
64
|
+
Logger_1.Logger.prototype.errorWithHint = errorWithHint;
|
|
65
|
+
Logger_1.Logger.prototype.success = success;
|
|
66
|
+
Logger_1.Logger.prototype.forceInfo = forceInfo;
|
|
67
|
+
Logger_1.Logger.prototype.shutdownLogger = shutdownLogger;
|
|
68
|
+
Logger_1.Logger.prototype.shutdownLoggerAsync = shutdownLoggerAsync;
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
/** Replaces APP_LOGGER and Logger public methods with no-ops. */
|
|
72
|
+
function installSilenceLoggers() {
|
|
73
|
+
const restoreAppLogger = installSilenceAppLogger();
|
|
74
|
+
const restoreLoggerPrototype = installSilenceLoggerPrototype();
|
|
75
|
+
return () => {
|
|
76
|
+
restoreLoggerPrototype();
|
|
77
|
+
restoreAppLogger();
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
function silenceAppLogger(t) {
|
|
81
|
+
t.after(installSilenceAppLogger());
|
|
82
|
+
}
|
|
83
|
+
function silenceLoggerPrototype(t) {
|
|
84
|
+
t.after(installSilenceLoggerPrototype());
|
|
85
|
+
}
|
|
86
|
+
function silenceLoggers(t) {
|
|
87
|
+
t.after(installSilenceLoggers());
|
|
88
|
+
}
|