"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.shouldUseClickhouseEvalDenormDevReset = exports.runClickhouseEvalDenormMigrations = exports.evalComponentRowId = exports.SECURITY_EVAL_SCOPE_SQL = exports.buildSecurityTestSuitePluginStatsSqlDenorm = exports.buildSecurityVulnerabilitiesOverTimeSqlDenorm = exports.buildSecurityCategoryVolumeSqlDenorm = exports.buildSecurityDenormWhereSql = exports.DEV_BACKFILL_DEFAULT_SINCE_DAYS = exports.isDevelopmentEnvironment = exports.resolveEvalDenormBackfillScope = exports.backfillEvalResultsDenorm = exports.summarizeParity = exports.compareDenormToLegacyRow = exports.EVAL_RESULTS_LEGACY_CH_TABLE = exports.totalEvaluationsFromComponentCountsSql = exports.buildWorkspacePulseTracesEvaluatedSqlDenorm = exports.buildWorkspacePulseEvalDailySqlDenorm = exports.buildWorkspacePulseEvalCountSqlDenorm = exports.buildWorkspacePulseTopFailuresSqlDenorm = exports.buildWorkspacePulseMetricsGraphSqlDenorm = exports.buildObserveEvalStatsFilteredSqlDenorm = exports.buildObserveEvalStatsSqlDenorm = exports.buildAiReliabilitySqlDenorm = exports.buildTotalRecordsSqlDenorm = exports.buildSecurityOverviewSqlDenorm = exports.buildTraceListEvalCteSqlDenorm = exports.buildSessionListEvalCteSqlDenorm = exports.buildMetricFailureAnalysisListSqlDenorm = exports.buildMetricFailureAnalysisInitialTracesCte = exports.buildMetricFailureAnalysisCountSqlDenorm = exports.buildMetricFailureTreemapSqlDenorm = exports.buildMetricFailureTotalSqlDenorm = exports.deleteEvalDenormByEvalResultIds = exports.deleteEvalDenormByTraceOrSession = exports.retryWithExponentialBackoff = exports.resolveBackfillRetryConfig = exports.isRetryableBackfillError = exports.BackfillRetryExhaustedError = exports.evalResultRecordToDenormInput = exports.persistDenormOutputsBatch = exports.insertEvalDenormArtifactsBatch = exports.insertEvalDenormArtifacts = exports.useDenormEvalQueries = exports.isEvalDenormWritesEnabled = exports.syntheticMetricKeysFromTestCase = exports.componentMetricFields = exports.buildMetricKey = exports.getPluginIdFromEvalRow = exports.denormalizeEvalResult = void 0;
exports.DENORM_VERSION_LIVE = exports.DENORM_VERSION_BACKFILL = exports.EVAL_RESULT_COMPONENTS_TABLE = exports.EVAL_RESULTS_ANALYTICS_TABLE = exports.resolveResumeCursor = exports.resolveResumeOffset = exports.computeOffsetShardRanges = exports.rowToResumeCursor = exports.buildBackfillCursorPredicate = exports.buildBackfillLimitOffsetClause = exports.buildBackfillLimitClause = exports.buildBackfillOrderByClause = exports.pipelineFromTargets = exports.createBackfillJob = exports.backfillJobToPublicProgress = exports.listChildBackfillJobs = exports.getBackfillJobById = exports.runPostgresEvalDenormMigrations = exports.EVAL_DENORM_CH_DEV_RESET_MIGRATION_FILES = exports.EVAL_DENORM_CH_MIGRATION_FILES = exports.clearEvalDenormChBackfillCheckpoints = exports.dropEvalDenormClickhouseTables = void 0;
var denormalize_1 = require("./denormalize");
Object.defineProperty(exports, "denormalizeEvalResult", { enumerable: true, get: function () { return denormalize_1.denormalizeEvalResult; } });
var getPluginId_1 = require("./getPluginId");
Object.defineProperty(exports, "getPluginIdFromEvalRow", { enumerable: true, get: function () { return getPluginId_1.getPluginIdFromEvalRow; } });
var metricIdentity_1 = require("./metricIdentity");
Object.defineProperty(exports, "buildMetricKey", { enumerable: true, get: function () { return metricIdentity_1.buildMetricKey; } });
Object.defineProperty(exports, "componentMetricFields", { enumerable: true, get: function () { return metricIdentity_1.componentMetricFields; } });
Object.defineProperty(exports, "syntheticMetricKeysFromTestCase", { enumerable: true, get: function () { return metricIdentity_1.syntheticMetricKeysFromTestCase; } });
var config_1 = require("./config");
Object.defineProperty(exports, "isEvalDenormWritesEnabled", { enumerable: true, get: function () { return config_1.isEvalDenormWritesEnabled; } });
Object.defineProperty(exports, "useDenormEvalQueries", { enumerable: true, get: function () { return config_1.useDenormEvalQueries; } });
var insertEvalDenormArtifacts_1 = require("./insertEvalDenormArtifacts");
Object.defineProperty(exports, "insertEvalDenormArtifacts", { enumerable: true, get: function () { return insertEvalDenormArtifacts_1.insertEvalDenormArtifacts; } });
Object.defineProperty(exports, "insertEvalDenormArtifactsBatch", { enumerable: true, get: function () { return insertEvalDenormArtifacts_1.insertEvalDenormArtifactsBatch; } });
Object.defineProperty(exports, "persistDenormOutputsBatch", { enumerable: true, get: function () { return insertEvalDenormArtifacts_1.persistDenormOutputsBatch; } });
Object.defineProperty(exports, "evalResultRecordToDenormInput", { enumerable: true, get: function () { return insertEvalDenormArtifacts_1.evalResultRecordToDenormInput; } });
var backfillRetry_1 = require("./backfillRetry");
Object.defineProperty(exports, "BackfillRetryExhaustedError", { enumerable: true, get: function () { return backfillRetry_1.BackfillRetryExhaustedError; } });
Object.defineProperty(exports, "isRetryableBackfillError", { enumerable: true, get: function () { return backfillRetry_1.isRetryableBackfillError; } });
Object.defineProperty(exports, "resolveBackfillRetryConfig", { enumerable: true, get: function () { return backfillRetry_1.resolveBackfillRetryConfig; } });
Object.defineProperty(exports, "retryWithExponentialBackoff", { enumerable: true, get: function () { return backfillRetry_1.retryWithExponentialBackoff; } });
var deleteEvalDenorm_1 = require("./deleteEvalDenorm");
Object.defineProperty(exports, "deleteEvalDenormByTraceOrSession", { enumerable: true, get: function () { return deleteEvalDenorm_1.deleteEvalDenormByTraceOrSession; } });
Object.defineProperty(exports, "deleteEvalDenormByEvalResultIds", { enumerable: true, get: function () { return deleteEvalDenorm_1.deleteEvalDenormByEvalResultIds; } });
var queryAdapter_1 = require("./queryAdapter");
Object.defineProperty(exports, "buildMetricFailureTotalSqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildMetricFailureTotalSqlDenorm; } });
Object.defineProperty(exports, "buildMetricFailureTreemapSqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildMetricFailureTreemapSqlDenorm; } });
Object.defineProperty(exports, "buildMetricFailureAnalysisCountSqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildMetricFailureAnalysisCountSqlDenorm; } });
Object.defineProperty(exports, "buildMetricFailureAnalysisInitialTracesCte", { enumerable: true, get: function () { return queryAdapter_1.buildMetricFailureAnalysisInitialTracesCte; } });
Object.defineProperty(exports, "buildMetricFailureAnalysisListSqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildMetricFailureAnalysisListSqlDenorm; } });
Object.defineProperty(exports, "buildSessionListEvalCteSqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildSessionListEvalCteSqlDenorm; } });
Object.defineProperty(exports, "buildTraceListEvalCteSqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildTraceListEvalCteSqlDenorm; } });
Object.defineProperty(exports, "buildSecurityOverviewSqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildSecurityOverviewSqlDenorm; } });
Object.defineProperty(exports, "buildTotalRecordsSqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildTotalRecordsSqlDenorm; } });
Object.defineProperty(exports, "buildAiReliabilitySqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildAiReliabilitySqlDenorm; } });
Object.defineProperty(exports, "buildObserveEvalStatsSqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildObserveEvalStatsSqlDenorm; } });
Object.defineProperty(exports, "buildObserveEvalStatsFilteredSqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildObserveEvalStatsFilteredSqlDenorm; } });
Object.defineProperty(exports, "buildWorkspacePulseMetricsGraphSqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildWorkspacePulseMetricsGraphSqlDenorm; } });
Object.defineProperty(exports, "buildWorkspacePulseTopFailuresSqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildWorkspacePulseTopFailuresSqlDenorm; } });
Object.defineProperty(exports, "buildWorkspacePulseEvalCountSqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildWorkspacePulseEvalCountSqlDenorm; } });
Object.defineProperty(exports, "buildWorkspacePulseEvalDailySqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildWorkspacePulseEvalDailySqlDenorm; } });
Object.defineProperty(exports, "buildWorkspacePulseTracesEvaluatedSqlDenorm", { enumerable: true, get: function () { return queryAdapter_1.buildWorkspacePulseTracesEvaluatedSqlDenorm; } });
Object.defineProperty(exports, "totalEvaluationsFromComponentCountsSql", { enumerable: true, get: function () { return queryAdapter_1.totalEvaluationsFromComponentCountsSql; } });
Object.defineProperty(exports, "EVAL_RESULTS_LEGACY_CH_TABLE", { enumerable: true, get: function () { return queryAdapter_1.EVAL_RESULTS_LEGACY_CH_TABLE; } });
var parity_1 = require("./parity");
Object.defineProperty(exports, "compareDenormToLegacyRow", { enumerable: true, get: function () { return parity_1.compareDenormToLegacyRow; } });
Object.defineProperty(exports, "summarizeParity", { enumerable: true, get: function () { return parity_1.summarizeParity; } });
var backfillEvalResultsDenorm_1 = require("./backfillEvalResultsDenorm");
Object.defineProperty(exports, "backfillEvalResultsDenorm", { enumerable: true, get: function () { return backfillEvalResultsDenorm_1.backfillEvalResultsDenorm; } });
var backfillScope_1 = require("./backfillScope");
Object.defineProperty(exports, "resolveEvalDenormBackfillScope", { enumerable: true, get: function () { return backfillScope_1.resolveEvalDenormBackfillScope; } });
Object.defineProperty(exports, "isDevelopmentEnvironment", { enumerable: true, get: function () { return backfillScope_1.isDevelopmentEnvironment; } });
Object.defineProperty(exports, "DEV_BACKFILL_DEFAULT_SINCE_DAYS", { enumerable: true, get: function () { return backfillScope_1.DEV_BACKFILL_DEFAULT_SINCE_DAYS; } });
var securityQueryHelpers_1 = require("./securityQueryHelpers");
Object.defineProperty(exports, "buildSecurityDenormWhereSql", { enumerable: true, get: function () { return securityQueryHelpers_1.buildSecurityDenormWhereSql; } });
Object.defineProperty(exports, "buildSecurityCategoryVolumeSqlDenorm", { enumerable: true, get: function () { return securityQueryHelpers_1.buildSecurityCategoryVolumeSqlDenorm; } });
Object.defineProperty(exports, "buildSecurityVulnerabilitiesOverTimeSqlDenorm", { enumerable: true, get: function () { return securityQueryHelpers_1.buildSecurityVulnerabilitiesOverTimeSqlDenorm; } });
Object.defineProperty(exports, "buildSecurityTestSuitePluginStatsSqlDenorm", { enumerable: true, get: function () { return securityQueryHelpers_1.buildSecurityTestSuitePluginStatsSqlDenorm; } });
Object.defineProperty(exports, "SECURITY_EVAL_SCOPE_SQL", { enumerable: true, get: function () { return securityQueryHelpers_1.SECURITY_EVAL_SCOPE_SQL; } });
var denormalize_2 = require("./denormalize");
Object.defineProperty(exports, "evalComponentRowId", { enumerable: true, get: function () { return denormalize_2.evalComponentRowId; } });
var clickhouseEvalDenormMigrations_1 = require("./clickhouseEvalDenormMigrations");
Object.defineProperty(exports, "runClickhouseEvalDenormMigrations", { enumerable: true, get: function () { return clickhouseEvalDenormMigrations_1.runClickhouseEvalDenormMigrations; } });
Object.defineProperty(exports, "shouldUseClickhouseEvalDenormDevReset", { enumerable: true, get: function () { return clickhouseEvalDenormMigrations_1.shouldUseClickhouseEvalDenormDevReset; } });
Object.defineProperty(exports, "dropEvalDenormClickhouseTables", { enumerable: true, get: function () { return clickhouseEvalDenormMigrations_1.dropEvalDenormClickhouseTables; } });
Object.defineProperty(exports, "clearEvalDenormChBackfillCheckpoints", { enumerable: true, get: function () { return clickhouseEvalDenormMigrations_1.clearEvalDenormChBackfillCheckpoints; } });
Object.defineProperty(exports, "EVAL_DENORM_CH_MIGRATION_FILES", { enumerable: true, get: function () { return clickhouseEvalDenormMigrations_1.EVAL_DENORM_CH_MIGRATION_FILES; } });
Object.defineProperty(exports, "EVAL_DENORM_CH_DEV_RESET_MIGRATION_FILES", { enumerable: true, get: function () { return clickhouseEvalDenormMigrations_1.EVAL_DENORM_CH_DEV_RESET_MIGRATION_FILES; } });
var postgresEvalDenormMigrations_1 = require("./postgresEvalDenormMigrations");
Object.defineProperty(exports, "runPostgresEvalDenormMigrations", { enumerable: true, get: function () { return postgresEvalDenormMigrations_1.runPostgresEvalDenormMigrations; } });
var backfillJobStore_1 = require("./backfillJobStore");
Object.defineProperty(exports, "getBackfillJobById", { enumerable: true, get: function () { return backfillJobStore_1.getBackfillJobById; } });
Object.defineProperty(exports, "listChildBackfillJobs", { enumerable: true, get: function () { return backfillJobStore_1.listChildBackfillJobs; } });
Object.defineProperty(exports, "backfillJobToPublicProgress", { enumerable: true, get: function () { return backfillJobStore_1.backfillJobToPublicProgress; } });
Object.defineProperty(exports, "createBackfillJob", { enumerable: true, get: function () { return backfillJobStore_1.createBackfillJob; } });
Object.defineProperty(exports, "pipelineFromTargets", { enumerable: true, get: function () { return backfillJobStore_1.pipelineFromTargets; } });
var backfillEvalResultsDenorm_2 = require("./backfillEvalResultsDenorm");
Object.defineProperty(exports, "buildBackfillOrderByClause", { enumerable: true, get: function () { return backfillEvalResultsDenorm_2.buildBackfillOrderByClause; } });
Object.defineProperty(exports, "buildBackfillLimitClause", { enumerable: true, get: function () { return backfillEvalResultsDenorm_2.buildBackfillLimitClause; } });
Object.defineProperty(exports, "buildBackfillLimitOffsetClause", { enumerable: true, get: function () { return backfillEvalResultsDenorm_2.buildBackfillLimitOffsetClause; } });
Object.defineProperty(exports, "buildBackfillCursorPredicate", { enumerable: true, get: function () { return backfillEvalResultsDenorm_2.buildBackfillCursorPredicate; } });
Object.defineProperty(exports, "rowToResumeCursor", { enumerable: true, get: function () { return backfillEvalResultsDenorm_2.rowToResumeCursor; } });
Object.defineProperty(exports, "computeOffsetShardRanges", { enumerable: true, get: function () { return backfillEvalResultsDenorm_2.computeOffsetShardRanges; } });
Object.defineProperty(exports, "resolveResumeOffset", { enumerable: true, get: function () { return backfillEvalResultsDenorm_2.resolveResumeOffset; } });
Object.defineProperty(exports, "resolveResumeCursor", { enumerable: true, get: function () { return backfillEvalResultsDenorm_2.resolveResumeCursor; } });
var types_1 = require("./types");
Object.defineProperty(exports, "EVAL_RESULTS_ANALYTICS_TABLE", { enumerable: true, get: function () { return types_1.EVAL_RESULTS_ANALYTICS_TABLE; } });
Object.defineProperty(exports, "EVAL_RESULT_COMPONENTS_TABLE", { enumerable: true, get: function () { return types_1.EVAL_RESULT_COMPONENTS_TABLE; } });
Object.defineProperty(exports, "DENORM_VERSION_BACKFILL", { enumerable: true, get: function () { return types_1.DENORM_VERSION_BACKFILL; } });
Object.defineProperty(exports, "DENORM_VERSION_LIVE", { enumerable: true, get: function () { return types_1.DENORM_VERSION_LIVE; } });
//# sourceMappingURL=index.js.map