react-semaphor 0.1.418 → 0.1.420
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/dist/analytics-protocol/index.cjs +1 -1
- package/dist/analytics-protocol/index.js +2 -2
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +2 -2
- package/dist/chunks/{analyze-result-contract-Akysi2ML.js → analyze-result-contract-DdhEt99q.js} +46 -45
- package/dist/chunks/{analyze-result-contract-COjyJzYm.js → analyze-result-contract-DwRzl7yJ.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-BbuLgela.js → calendar-preferences-dialog-DIfAbE_y.js} +3 -3
- package/dist/chunks/{calendar-preferences-dialog-CInkkhl_.js → calendar-preferences-dialog-f0Z7Kf-U.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-B4OWNsVD.js → dashboard-briefing-launcher-C3tNkGFG.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-D7FNuDuc.js → dashboard-briefing-launcher-anh-Jy5v.js} +4 -4
- package/dist/chunks/{dashboard-controls-DcX7Mid4.js → dashboard-controls-8dCQaPaq.js} +5 -5
- package/dist/chunks/{dashboard-controls-DTC1eCz0.js → dashboard-controls-DQxlOxzy.js} +1 -1
- package/dist/chunks/{dashboard-json-vu38P5pV.js → dashboard-json-B309EInF.js} +1 -1
- package/dist/chunks/{dashboard-json-BHWbQS6I.js → dashboard-json-i7Ae9KGD.js} +3 -3
- package/dist/chunks/{edit-dashboard-visual-CkBhJBhp.js → edit-dashboard-visual-4HycwBHR.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-DsCr90_3.js → edit-dashboard-visual-z3IqzYnj.js} +4 -4
- package/dist/chunks/{index-C56DuHI8.js → index-B6DLEXRX.js} +5 -5
- package/dist/chunks/{index-C8thRvkW.js → index-yxKWKFdr.js} +2 -2
- package/dist/chunks/{switch-Dsx-IwBE.js → switch-COWQU8aK.js} +1 -1
- package/dist/chunks/{switch-BXuyni6l.js → switch-D6Ygf3wA.js} +1 -1
- package/dist/chunks/{update-policy-B5S_LfEu.js → update-policy-BzT2k4n6.js} +1 -1
- package/dist/chunks/{update-policy-BqBKUk3Q.js → update-policy-VloD-0YM.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-CzftV84t.js → use-create-flow-overlay-state-CX0D-6HM.js} +3 -3
- package/dist/chunks/{use-create-flow-overlay-state-BDv_VpL6.js → use-create-flow-overlay-state-DENfd7sW.js} +1 -1
- package/dist/chunks/{validators-CPFcUMrV.js → validators-BMQo93Y0.js} +1 -1
- package/dist/chunks/{validators-CLzrE2N_.js → validators-Cxr9qbrR.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +1 -1
- package/dist/dashboard-authoring/index.js +2 -2
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +2 -2
- package/dist/data-app-codegen/index.cjs +1 -1
- package/dist/data-app-codegen/index.js +2 -2
- package/dist/data-app-codegen-node/index.cjs +123 -92
- package/dist/data-app-codegen-node/index.js +461 -422
- package/dist/data-app-sdk/index.cjs +2 -2
- package/dist/data-app-sdk/index.js +230 -219
- package/dist/data-app-sdk-adapters/index.cjs +1 -1
- package/dist/data-app-sdk-adapters/index.js +1 -1
- package/dist/data-app-sdk-validation/index.cjs +1 -1
- package/dist/data-app-sdk-validation/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +7 -7
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +2 -2
- package/dist/types/analytics-protocol.d.ts +4 -0
- package/dist/types/dashboard-assistant.d.ts +1 -0
- package/dist/types/data-app-sdk-validation.d.ts +1 -0
- package/dist/types/data-app-sdk.d.ts +3 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../chunks/operators-DrTQsJXv.js"),o=require("../chunks/validators-CPFcUMrV.js"),e=require("../chunks/analyze-result-contract-COjyJzYm.js"),t=require("../chunks/catalog-field-grounding-Bnx-3tE0.js");function d(a,r={}){const i=c(a),s={connectionId:r.connectionId,connectionType:a,path:["database","schema","table"],labels:{database:"Database",schema:"Schema",table:"Table"},prefixLevels:["database","schema","table"],dialect:"postgres",supportsFilterClause:!0};return i.includes("postgres")?{...s,prefixLevels:["schema","table"],dialect:"postgres"}:i.includes("mysql")?{...s,prefixLevels:["database","table"],dialect:"mysql",supportsFilterClause:!1}:i.includes("mssql")||i.includes("sqlserver")?{...s,dialect:"mssql",supportsFilterClause:!1}:i.includes("redshift")?{...s,prefixLevels:["schema","table"],dialect:"redshift"}:i.includes("snowflake")?{...s,dialect:"snowflake"}:i.includes("clickhouse")?{connectionId:r.connectionId,connectionType:a,path:["database","table"],labels:{database:"Database",table:"Table"},prefixLevels:["database","table"],dialect:"clickhouse",supportsFilterClause:!1}:i==="s3"||i==="api"?{connectionId:r.connectionId,connectionType:a,path:["table"],labels:{table:i==="api"?"API Table":"File Table"},prefixLevels:["table"],dialect:"duckdb",supportsFilterClause:!0}:i==="googlesheets"||i==="fileupload"?{connectionId:r.connectionId,connectionType:a,path:["table"],labels:{table:"Table"},prefixLevels:["table"],dialect:"postgres",supportsFilterClause:!0}:i==="s3tables"?{...s,labels:{database:"Database",schema:"Namespace",table:"Table"},dialect:"duckdb"}:i==="bigquery"?{...s,labels:{database:"Project",schema:"Dataset",table:"Table"},prefixLevels:["schema","table"],dialect:"bigquery",supportsFilterClause:!1}:s}function u(a){const r=c(a);switch(r){case"mysql":case"bigquery":case"redshift":case"snowflake":case"clickhouse":case"duckdb":case"sqlite":return r;case"mssql":case"sqlserver":return"mssql";case"postgres":case"postgresql":return"postgres";default:return"unknown"}}function p(a){return a.capabilities.prefixLevels.every(r=>!!m(a.source,r))}function h(a){const r=a.quoteIdentifier??S;return a.capabilities.prefixLevels.map(i=>m(a.source,i)).filter(i=>!!i).map(i=>r(i,a.capabilities.dialect)).join(".")}function m(a,r){return r==="database"?a.databaseName:r==="schema"?a.schemaName:a.tableName}function S(a,r){return r==="mysql"||r==="bigquery"||r==="clickhouse"||r==="duckdb"?`\`${a.replace(/`/g,"``")}\``:r==="mssql"?`[${a.replace(/]/g,"]]")}]`:`"${a.replace(/"/g,'""')}"`}function c(a){if(typeof a!="string")return"";const r=[];for(const i of a.trim().toLowerCase())y(i)&&r.push(i);return r.join("")}function y(a){const r=a.charCodeAt(0);return r>=48&&r<=57||r>=97&&r<=122}const n={kind:"semantic",domainId:"domain_sales",datasetName:"orders",connectionId:"conn_sales",label:"Orders"},A={revenueKpi:{version:1,kind:"metric",id:"revenue-kpi",label:"Revenue",source:n,measures:[{name:"revenue",role:"measure"}],primaryMeasure:{name:"revenue",role:"measure"},comparison:{kind:"previous_period"},limit:1},revenueTrend:{version:1,kind:"records",id:"revenue-trend",label:"Revenue trend",source:n,fields:[{name:"order_date",role:"date",dataType:"date",label:"Order Date"},{name:"revenue",role:"measure",dataType:"number"}],dateField:{name:"order_date",role:"date",dataType:"date"},timeGrain:"month",limit:100},topCustomersRecords:{version:1,kind:"records",id:"top-customers",label:"Top customers",source:n,fields:[{name:"customer_name",role:"dimension",dataType:"string"},{name:"segment",role:"dimension",dataType:"string"},{name:"revenue",role:"measure",dataType:"number"}],orderBy:{field:{name:"revenue",role:"measure"},direction:"desc"},limit:20},regionInputOptions:{version:1,kind:"inputOptions",id:"region-options",label:"Region options",inputId:"region",source:n,labelField:{name:"region",role:"dimension",dataType:"string"},valueField:{name:"region",role:"dimension",dataType:"string"},limit:100},previousPeriodRevenueComparison:{version:1,kind:"metric",id:"revenue-previous-period",label:"Revenue previous period comparison",source:n,measures:[{name:"revenue",role:"measure"}],primaryMeasure:{name:"revenue",role:"measure"},dateField:{name:"order_date",role:"date",dataType:"date"},timeGrain:"week",comparison:{kind:"previous_period"},limit:100},inboundSupplierConcentration:{version:1,kind:"metric",id:"inbound-supplier-concentration",label:"Inbound supplier concentration",source:n,measures:[{name:"net_tons",role:"measure"},{name:"ticket_value",role:"measure"}],primaryMeasure:{name:"net_tons",role:"measure"},dateField:{name:"ticket_date",role:"date",dataType:"date"},timeWindow:{unit:"month",value:6,anchor:"latest_available"},dimensions:[{name:"supplier_id",role:"dimension",dataType:"number"}],filters:[{field:{name:"direction",role:"dimension",dataType:"string"},operator:"=",values:["Inbound"]}],limit:15},boundedSqlRanking:{version:1,kind:"sql",id:"top-customer-ranking-sql",label:"Top customer ranking SQL",source:{kind:"sql",connectionId:"conn_sales",dialect:"postgres"},sql:"SELECT customer_name, SUM(revenue) AS revenue FROM public.orders GROUP BY customer_name ORDER BY revenue DESC LIMIT 20",limit:20,rationale:"Ranking is SQL-natural because it requires ordering grouped aggregate rows.",fields:[{name:"customer_name",role:"dimension",dataType:"string"},{name:"revenue",role:"measure",dataType:"number"}]}};exports.normalizeSemaphorAnalyticsFilterOperator=l.normalizeSemaphorAnalyticsFilterOperator;exports.normalizeSemaphorInputOperator=l.normalizeSemaphorInputOperator;exports.parseSemaphorIsoTimeWindowBoundary=o.parseSemaphorIsoTimeWindowBoundary;exports.validateSemaphorAnalyticsIntent=o.validateSemaphorAnalyticsIntent;exports.validateSemaphorAnalyticsRecoveryPlan=o.validateSemaphorAnalyticsRecoveryPlan;exports.validateSemaphorDashboardIntent=o.validateSemaphorDashboardIntent;exports.validateSemaphorDerivedFieldDefinition=o.validateSemaphorDerivedFieldDefinition;exports.validateSemaphorOperationIntent=o.validateSemaphorOperationIntent;exports.validateSemaphorResultCalculation=o.validateSemaphorResultCalculation;exports.SEMAPHOR_ANALYZE_RESULT_FIELD_CONTRACT=e.SEMAPHOR_ANALYZE_RESULT_FIELD_CONTRACT;exports.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_SCHEMA_VERSION=e.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_SCHEMA_VERSION;exports.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_VALIDATOR_VERSION=e.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_VALIDATOR_VERSION;exports.getSemaphorAnalyzeResultFieldNames=e.getSemaphorAnalyzeResultFieldNames;exports.isSemaphorAnalyzeResultFieldName=e.isSemaphorAnalyzeResultFieldName;exports.isSemaphorDataAppCodegenSummary=e.isSemaphorDataAppCodegenSummary;exports.mergeSemaphorSourcesByIdentity=e.mergeSemaphorSourcesByIdentity;exports.parseSemaphorAnalyzeResult=e.parseSemaphorAnalyzeResult;exports.preferSemaphorFieldRefMetadata=e.preferSemaphorFieldRefMetadata;exports.preferSemaphorSourceMetadata=e.preferSemaphorSourceMetadata;exports.semaphorAnalyticsCoverageSchema=e.semaphorAnalyticsCoverageSchema;exports.semaphorAnalyticsDiagnosticFeedbackSchema=e.semaphorAnalyticsDiagnosticFeedbackSchema;exports.semaphorAnalyticsExecutionResultSchema=e.semaphorAnalyticsExecutionResultSchema;exports.semaphorAnalyticsPopulationSchema=e.semaphorAnalyticsPopulationSchema;exports.semaphorAnalyticsResultSchema=e.semaphorAnalyticsResultSchema;exports.semaphorAnalyticsValidationIssueSchema=e.semaphorAnalyticsValidationIssueSchema;exports.semaphorAnalyticsValidationResultSchema=e.semaphorAnalyticsValidationResultSchema;exports.semaphorAnalyzeResultSchema=e.semaphorAnalyzeResultSchema;exports.semaphorAnalyzeResultShape=e.semaphorAnalyzeResultShape;exports.semaphorDataAppCodegenSummarySchema=e.semaphorDataAppCodegenSummarySchema;exports.semaphorDerivedFieldDefinitionSchema=e.semaphorDerivedFieldDefinitionSchema;exports.semaphorExecutionFieldRefSchema=e.semaphorExecutionFieldRefSchema;exports.semaphorFieldRefSchema=e.semaphorFieldRefSchema;exports.semaphorFieldRefsMatch=e.semaphorFieldRefsMatch;exports.semaphorInputOptionsResultSchema=e.semaphorInputOptionsResultSchema;exports.semaphorMatrixResultSchema=e.semaphorMatrixResultSchema;exports.semaphorMetricMeasureBindingKey=e.semaphorMetricMeasureBindingKey;exports.semaphorMetricResultSchema=e.semaphorMetricResultSchema;exports.semaphorPhysicalSourceRefSchema=e.semaphorPhysicalSourceRefSchema;exports.semaphorRecordsResultSchema=e.semaphorRecordsResultSchema;exports.semaphorRelationshipDiagnosticsSchema=e.semaphorRelationshipDiagnosticsSchema;exports.semaphorResultColumnSchema=e.semaphorResultColumnSchema;exports.semaphorSemanticSourceRefSchema=e.semaphorSemanticSourceRefSchema;exports.semaphorSourceIdentityKey=e.semaphorSourceIdentityKey;exports.semaphorSourceRefSchema=e.semaphorSourceRefSchema;exports.semaphorSourcesReferToSameDataset=e.semaphorSourcesReferToSameDataset;exports.semaphorSqlResultSchema=e.semaphorSqlResultSchema;exports.semaphorSqlSourceRefSchema=e.semaphorSqlSourceRefSchema;exports.validateSemaphorDataAppCodegenSummary=e.validateSemaphorDataAppCodegenSummary;exports.buildAnalyticsCatalogFieldSummary=t.buildAnalyticsCatalogFieldSummary;exports.getAnalyticsCatalogFieldCandidates=t.getAnalyticsCatalogFieldCandidates;exports.getAnalyticsCatalogFieldName=t.getAnalyticsCatalogFieldName;exports.isAnalyticsCatalogDateField=t.isAnalyticsCatalogDateField;exports.isAnalyticsCatalogDimensionField=t.isAnalyticsCatalogDimensionField;exports.isAnalyticsCatalogMetricField=t.isAnalyticsCatalogMetricField;exports.isAnalyticsDateLikeDataType=t.isAnalyticsDateLikeDataType;exports.isAnalyticsMetricIdentifierField=t.isAnalyticsMetricIdentifierField;exports.isAnalyticsTechnicalIdentifierField=t.isAnalyticsTechnicalIdentifierField;exports.normalizeAnalyticsCatalogDataType=t.normalizeAnalyticsCatalogDataType;exports.normalizeAnalyticsCatalogName=t.normalizeAnalyticsCatalogName;exports.SEMAPHOR_ANALYTICS_INTENT_FIXTURES=A;exports.buildSemaphorQualifiedSourcePath=h;exports.getSemaphorConnectionCapabilities=d;exports.normalizeSemaphorDialect=u;exports.semaphorSourceHasRequiredCoordinates=p;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../chunks/operators-DrTQsJXv.js"),o=require("../chunks/validators-BMQo93Y0.js"),e=require("../chunks/analyze-result-contract-DwRzl7yJ.js"),t=require("../chunks/catalog-field-grounding-Bnx-3tE0.js");function d(a,r={}){const i=c(a),s={connectionId:r.connectionId,connectionType:a,path:["database","schema","table"],labels:{database:"Database",schema:"Schema",table:"Table"},prefixLevels:["database","schema","table"],dialect:"postgres",supportsFilterClause:!0};return i.includes("postgres")?{...s,prefixLevels:["schema","table"],dialect:"postgres"}:i.includes("mysql")?{...s,prefixLevels:["database","table"],dialect:"mysql",supportsFilterClause:!1}:i.includes("mssql")||i.includes("sqlserver")?{...s,dialect:"mssql",supportsFilterClause:!1}:i.includes("redshift")?{...s,prefixLevels:["schema","table"],dialect:"redshift"}:i.includes("snowflake")?{...s,dialect:"snowflake"}:i.includes("clickhouse")?{connectionId:r.connectionId,connectionType:a,path:["database","table"],labels:{database:"Database",table:"Table"},prefixLevels:["database","table"],dialect:"clickhouse",supportsFilterClause:!1}:i==="s3"||i==="api"?{connectionId:r.connectionId,connectionType:a,path:["table"],labels:{table:i==="api"?"API Table":"File Table"},prefixLevels:["table"],dialect:"duckdb",supportsFilterClause:!0}:i==="googlesheets"||i==="fileupload"?{connectionId:r.connectionId,connectionType:a,path:["table"],labels:{table:"Table"},prefixLevels:["table"],dialect:"postgres",supportsFilterClause:!0}:i==="s3tables"?{...s,labels:{database:"Database",schema:"Namespace",table:"Table"},dialect:"duckdb"}:i==="bigquery"?{...s,labels:{database:"Project",schema:"Dataset",table:"Table"},prefixLevels:["schema","table"],dialect:"bigquery",supportsFilterClause:!1}:s}function u(a){const r=c(a);switch(r){case"mysql":case"bigquery":case"redshift":case"snowflake":case"clickhouse":case"duckdb":case"sqlite":return r;case"mssql":case"sqlserver":return"mssql";case"postgres":case"postgresql":return"postgres";default:return"unknown"}}function p(a){return a.capabilities.prefixLevels.every(r=>!!m(a.source,r))}function h(a){const r=a.quoteIdentifier??S;return a.capabilities.prefixLevels.map(i=>m(a.source,i)).filter(i=>!!i).map(i=>r(i,a.capabilities.dialect)).join(".")}function m(a,r){return r==="database"?a.databaseName:r==="schema"?a.schemaName:a.tableName}function S(a,r){return r==="mysql"||r==="bigquery"||r==="clickhouse"||r==="duckdb"?`\`${a.replace(/`/g,"``")}\``:r==="mssql"?`[${a.replace(/]/g,"]]")}]`:`"${a.replace(/"/g,'""')}"`}function c(a){if(typeof a!="string")return"";const r=[];for(const i of a.trim().toLowerCase())y(i)&&r.push(i);return r.join("")}function y(a){const r=a.charCodeAt(0);return r>=48&&r<=57||r>=97&&r<=122}const n={kind:"semantic",domainId:"domain_sales",datasetName:"orders",connectionId:"conn_sales",label:"Orders"},A={revenueKpi:{version:1,kind:"metric",id:"revenue-kpi",label:"Revenue",source:n,measures:[{name:"revenue",role:"measure"}],primaryMeasure:{name:"revenue",role:"measure"},comparison:{kind:"previous_period"},limit:1},revenueTrend:{version:1,kind:"records",id:"revenue-trend",label:"Revenue trend",source:n,fields:[{name:"order_date",role:"date",dataType:"date",label:"Order Date"},{name:"revenue",role:"measure",dataType:"number"}],dateField:{name:"order_date",role:"date",dataType:"date"},timeGrain:"month",limit:100},topCustomersRecords:{version:1,kind:"records",id:"top-customers",label:"Top customers",source:n,fields:[{name:"customer_name",role:"dimension",dataType:"string"},{name:"segment",role:"dimension",dataType:"string"},{name:"revenue",role:"measure",dataType:"number"}],orderBy:{field:{name:"revenue",role:"measure"},direction:"desc"},limit:20},regionInputOptions:{version:1,kind:"inputOptions",id:"region-options",label:"Region options",inputId:"region",source:n,labelField:{name:"region",role:"dimension",dataType:"string"},valueField:{name:"region",role:"dimension",dataType:"string"},limit:100},previousPeriodRevenueComparison:{version:1,kind:"metric",id:"revenue-previous-period",label:"Revenue previous period comparison",source:n,measures:[{name:"revenue",role:"measure"}],primaryMeasure:{name:"revenue",role:"measure"},dateField:{name:"order_date",role:"date",dataType:"date"},timeGrain:"week",comparison:{kind:"previous_period"},limit:100},inboundSupplierConcentration:{version:1,kind:"metric",id:"inbound-supplier-concentration",label:"Inbound supplier concentration",source:n,measures:[{name:"net_tons",role:"measure"},{name:"ticket_value",role:"measure"}],primaryMeasure:{name:"net_tons",role:"measure"},dateField:{name:"ticket_date",role:"date",dataType:"date"},timeWindow:{unit:"month",value:6,anchor:"latest_available"},dimensions:[{name:"supplier_id",role:"dimension",dataType:"number"}],filters:[{field:{name:"direction",role:"dimension",dataType:"string"},operator:"=",values:["Inbound"]}],limit:15},boundedSqlRanking:{version:1,kind:"sql",id:"top-customer-ranking-sql",label:"Top customer ranking SQL",source:{kind:"sql",connectionId:"conn_sales",dialect:"postgres"},sql:"SELECT customer_name, SUM(revenue) AS revenue FROM public.orders GROUP BY customer_name ORDER BY revenue DESC LIMIT 20",limit:20,rationale:"Ranking is SQL-natural because it requires ordering grouped aggregate rows.",fields:[{name:"customer_name",role:"dimension",dataType:"string"},{name:"revenue",role:"measure",dataType:"number"}]}};exports.normalizeSemaphorAnalyticsFilterOperator=l.normalizeSemaphorAnalyticsFilterOperator;exports.normalizeSemaphorInputOperator=l.normalizeSemaphorInputOperator;exports.parseSemaphorIsoTimeWindowBoundary=o.parseSemaphorIsoTimeWindowBoundary;exports.validateSemaphorAnalyticsIntent=o.validateSemaphorAnalyticsIntent;exports.validateSemaphorAnalyticsRecoveryPlan=o.validateSemaphorAnalyticsRecoveryPlan;exports.validateSemaphorDashboardIntent=o.validateSemaphorDashboardIntent;exports.validateSemaphorDerivedFieldDefinition=o.validateSemaphorDerivedFieldDefinition;exports.validateSemaphorOperationIntent=o.validateSemaphorOperationIntent;exports.validateSemaphorResultCalculation=o.validateSemaphorResultCalculation;exports.SEMAPHOR_ANALYZE_RESULT_FIELD_CONTRACT=e.SEMAPHOR_ANALYZE_RESULT_FIELD_CONTRACT;exports.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_SCHEMA_VERSION=e.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_SCHEMA_VERSION;exports.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_VALIDATOR_VERSION=e.SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_VALIDATOR_VERSION;exports.getSemaphorAnalyzeResultFieldNames=e.getSemaphorAnalyzeResultFieldNames;exports.isSemaphorAnalyzeResultFieldName=e.isSemaphorAnalyzeResultFieldName;exports.isSemaphorDataAppCodegenSummary=e.isSemaphorDataAppCodegenSummary;exports.mergeSemaphorSourcesByIdentity=e.mergeSemaphorSourcesByIdentity;exports.parseSemaphorAnalyzeResult=e.parseSemaphorAnalyzeResult;exports.preferSemaphorFieldRefMetadata=e.preferSemaphorFieldRefMetadata;exports.preferSemaphorSourceMetadata=e.preferSemaphorSourceMetadata;exports.semaphorAnalyticsCoverageSchema=e.semaphorAnalyticsCoverageSchema;exports.semaphorAnalyticsDiagnosticFeedbackSchema=e.semaphorAnalyticsDiagnosticFeedbackSchema;exports.semaphorAnalyticsExecutionResultSchema=e.semaphorAnalyticsExecutionResultSchema;exports.semaphorAnalyticsPopulationSchema=e.semaphorAnalyticsPopulationSchema;exports.semaphorAnalyticsResultSchema=e.semaphorAnalyticsResultSchema;exports.semaphorAnalyticsValidationIssueSchema=e.semaphorAnalyticsValidationIssueSchema;exports.semaphorAnalyticsValidationResultSchema=e.semaphorAnalyticsValidationResultSchema;exports.semaphorAnalyzeResultSchema=e.semaphorAnalyzeResultSchema;exports.semaphorAnalyzeResultShape=e.semaphorAnalyzeResultShape;exports.semaphorDataAppCodegenSummarySchema=e.semaphorDataAppCodegenSummarySchema;exports.semaphorDerivedFieldDefinitionSchema=e.semaphorDerivedFieldDefinitionSchema;exports.semaphorExecutionFieldRefSchema=e.semaphorExecutionFieldRefSchema;exports.semaphorFieldRefSchema=e.semaphorFieldRefSchema;exports.semaphorFieldRefsMatch=e.semaphorFieldRefsMatch;exports.semaphorInputOptionsResultSchema=e.semaphorInputOptionsResultSchema;exports.semaphorMatrixResultSchema=e.semaphorMatrixResultSchema;exports.semaphorMetricMeasureBindingKey=e.semaphorMetricMeasureBindingKey;exports.semaphorMetricResultSchema=e.semaphorMetricResultSchema;exports.semaphorPhysicalSourceRefSchema=e.semaphorPhysicalSourceRefSchema;exports.semaphorRecordsResultSchema=e.semaphorRecordsResultSchema;exports.semaphorRelationshipDiagnosticsSchema=e.semaphorRelationshipDiagnosticsSchema;exports.semaphorResultColumnSchema=e.semaphorResultColumnSchema;exports.semaphorSemanticSourceRefSchema=e.semaphorSemanticSourceRefSchema;exports.semaphorSourceIdentityKey=e.semaphorSourceIdentityKey;exports.semaphorSourceRefSchema=e.semaphorSourceRefSchema;exports.semaphorSourcesReferToSameDataset=e.semaphorSourcesReferToSameDataset;exports.semaphorSqlResultSchema=e.semaphorSqlResultSchema;exports.semaphorSqlSourceRefSchema=e.semaphorSqlSourceRefSchema;exports.validateSemaphorDataAppCodegenSummary=e.validateSemaphorDataAppCodegenSummary;exports.buildAnalyticsCatalogFieldSummary=t.buildAnalyticsCatalogFieldSummary;exports.getAnalyticsCatalogFieldCandidates=t.getAnalyticsCatalogFieldCandidates;exports.getAnalyticsCatalogFieldName=t.getAnalyticsCatalogFieldName;exports.isAnalyticsCatalogDateField=t.isAnalyticsCatalogDateField;exports.isAnalyticsCatalogDimensionField=t.isAnalyticsCatalogDimensionField;exports.isAnalyticsCatalogMetricField=t.isAnalyticsCatalogMetricField;exports.isAnalyticsDateLikeDataType=t.isAnalyticsDateLikeDataType;exports.isAnalyticsMetricIdentifierField=t.isAnalyticsMetricIdentifierField;exports.isAnalyticsTechnicalIdentifierField=t.isAnalyticsTechnicalIdentifierField;exports.normalizeAnalyticsCatalogDataType=t.normalizeAnalyticsCatalogDataType;exports.normalizeAnalyticsCatalogName=t.normalizeAnalyticsCatalogName;exports.SEMAPHOR_ANALYTICS_INTENT_FIXTURES=A;exports.buildSemaphorQualifiedSourcePath=h;exports.getSemaphorConnectionCapabilities=d;exports.normalizeSemaphorDialect=u;exports.semaphorSourceHasRequiredCoordinates=p;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as S, n as f } from "../chunks/operators-C8TxpM4C.js";
|
|
2
|
-
import { p as g, b as v, d as A, e as R, v as C, c as I, a as T } from "../chunks/validators-
|
|
3
|
-
import { d as F, S as k, a as D, g as q, b as M, i as E, K as L, c as O, p as N, J as x, C as P, A as z, D as w, B, y as H, o as G, q as U, F as Y, E as j, G as V, l as K, m as Q, k as $, s as W, u as J, x as X, L as Z, r as ee, f as ae, t as se, z as re, n as ie, e as te, H as ne, j as oe, I as le, w as me, h as de, v as ce } from "../chunks/analyze-result-contract-
|
|
2
|
+
import { p as g, b as v, d as A, e as R, v as C, c as I, a as T } from "../chunks/validators-Cxr9qbrR.js";
|
|
3
|
+
import { d as F, S as k, a as D, g as q, b as M, i as E, K as L, c as O, p as N, J as x, C as P, A as z, D as w, B, y as H, o as G, q as U, F as Y, E as j, G as V, l as K, m as Q, k as $, s as W, u as J, x as X, L as Z, r as ee, f as ae, t as se, z as re, n as ie, e as te, H as ne, j as oe, I as le, w as me, h as de, v as ce } from "../chunks/analyze-result-contract-DdhEt99q.js";
|
|
4
4
|
import { j as pe, a as he, g as be, c as Se, h as fe, f as ye, i as ge, e as ve, d as Ae, b as Re, n as Ce } from "../chunks/catalog-field-grounding-CJKAqtiC.js";
|
|
5
5
|
function m(e, a = {}) {
|
|
6
6
|
const s = n(e), r = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),d=require("../chunks/switch-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),m=require("react"),d=require("../chunks/switch-D6Ygf3wA.js"),A=require("../chunks/index-DRlMUglg.js"),J=require("../chunks/x-B6ghREd2.js");require("../chunks/analyze-result-contract-DwRzl7yJ.js");const U=require("../chunks/palette-C4KTXOug.js"),be=require("../chunks/braces-D2tStQjF.js"),fe=require("../chunks/save-C__QggEE.js"),me=require("../chunks/layout-grid-C0OI-MRn.js");/**
|
|
2
2
|
* @license lucide-react v0.453.0 - ISC
|
|
3
3
|
*
|
|
4
4
|
* This source code is licensed under the ISC license.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsxs as d, jsx as r, Fragment as ce } from "react/jsx-runtime";
|
|
2
2
|
import m from "react";
|
|
3
|
-
import { c as q, P as ge, a as be, B as C, b as fe, U as De, C as Ie, R as me, e as le, S as se, d as Je, T as je, G as Le, H as U, I as $e, J as M, K as _e, M as Ve, N as Ue, O as Me, L as E, Q as K, V as Q, W as ee, X as he, Y as re, Z as oe, _ as ke, $ as xe, a0 as ye, a1 as ve, a2 as Ce, a3 as Ge } from "../chunks/switch-
|
|
3
|
+
import { c as q, P as ge, a as be, B as C, b as fe, U as De, C as Ie, R as me, e as le, S as se, d as Je, T as je, G as Le, H as U, I as $e, J as M, K as _e, M as Ve, N as Ue, O as Me, L as E, Q as K, V as Q, W as ee, X as he, Y as re, Z as oe, _ as ke, $ as xe, a0 as ye, a1 as ve, a2 as Ce, a3 as Ge } from "../chunks/switch-COWQU8aK.js";
|
|
4
4
|
import { r as We, v as He, A as Xe, a as Ye, p as Ze } from "../chunks/index-CJdxSyQq.js";
|
|
5
5
|
import { c as ae, X as qe } from "../chunks/x-CXDkqdur.js";
|
|
6
|
-
import "../chunks/analyze-result-contract-
|
|
6
|
+
import "../chunks/analyze-result-contract-DdhEt99q.js";
|
|
7
7
|
import { P as G } from "../chunks/palette-Cp1hqZtm.js";
|
|
8
8
|
import { B as Ke } from "../chunks/braces-8TRlDwDw.js";
|
|
9
9
|
import { S as Qe } from "../chunks/save-DgMfP0j8.js";
|
package/dist/chunks/{analyze-result-contract-Akysi2ML.js → analyze-result-contract-DdhEt99q.js}
RENAMED
|
@@ -230,7 +230,7 @@ function te(o) {
|
|
|
230
230
|
), (typeof t.title != "string" || !t.title.trim()) && s.push("title is required."), Array.isArray(t.sources) || s.push("sources must be an array."), Array.isArray(t.inputs) || s.push("inputs must be an array."), Array.isArray(t.views) || s.push("views must be an array."), Array.isArray(t.filterContracts) || s.push("filterContracts must be an array."), (!t.implementationChecklist || typeof t.implementationChecklist != "object") && s.push("implementationChecklist must be an object."), t.implementationChecklist && typeof t.implementationChecklist == "object" && s.push(
|
|
231
231
|
...Ce(t.implementationChecklist)
|
|
232
232
|
), Array.isArray(t.sources) && t.sources.forEach((i, n) => {
|
|
233
|
-
s.push(...
|
|
233
|
+
s.push(...I(i, `sources.${n}`));
|
|
234
234
|
}), Array.isArray(t.inputs) && t.inputs.forEach((i, n) => {
|
|
235
235
|
s.push(...qe(i, `inputs.${n}`));
|
|
236
236
|
}), Array.isArray(t.views) && t.views.forEach((i, n) => {
|
|
@@ -270,7 +270,7 @@ function Re(o) {
|
|
|
270
270
|
"nextRequiredTool.name must be semaphor_propose_semantic_model_change when missing_relationship gaps are present."
|
|
271
271
|
), i;
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function I(o, s) {
|
|
274
274
|
const t = a(o);
|
|
275
275
|
return t ? t.kind === "semantic" ? typeof t.domainId == "string" && t.domainId.trim() && typeof t.datasetName == "string" && t.datasetName.trim() ? [] : [`${s} must include sourceKey or a supported source identity.`] : typeof t.sourceKey == "string" && t.sourceKey.trim() ? [] : t.kind === "physical" && typeof t.tableName == "string" && t.tableName.trim() && typeof t.connectionId == "string" && t.connectionId.trim() ? [] : t.kind === "sql" && typeof t.connectionId == "string" && t.connectionId.trim() ? [] : [`${s} must include sourceKey or a supported source identity.`] : [`${s} must be an object.`];
|
|
276
276
|
}
|
|
@@ -333,7 +333,7 @@ function xe(o, s) {
|
|
|
333
333
|
return i.push(`${s}.fields must be an array.`), (t.sdkSpec !== void 0 || t.sdkBuilder !== void 0) && i.push(`${s}.fields must be an array for executable views.`), i.push(...N(t, `${s}`)), i;
|
|
334
334
|
t.fields.forEach((d, y) => {
|
|
335
335
|
i.push(...p(d, `${s}.fields.${y}`));
|
|
336
|
-
}),
|
|
336
|
+
}), w(t.queryKind) || i.push(`${s}.queryKind must be a supported codegen query kind.`), t.sdkBuilder !== void 0 && !ie(t.sdkBuilder) && i.push(`${s}.sdkBuilder must be a supported SDK builder.`), t.metricBindingKeys !== void 0 && (Array.isArray(t.metricBindingKeys) ? t.metricBindingKeys.some(
|
|
337
337
|
(d) => typeof d != "string" || d.trim().length === 0
|
|
338
338
|
) && i.push(`${s}.metricBindingKeys must be an array of strings.`) : i.push(`${s}.metricBindingKeys must be an array of strings.`));
|
|
339
339
|
const n = a(t.sdkSpec), r = (n == null ? void 0 : n.builder) === "semaphor.metric";
|
|
@@ -343,7 +343,7 @@ function xe(o, s) {
|
|
|
343
343
|
`${s}.metricBindingKeys must match the generated metric field binding keys in order.`
|
|
344
344
|
);
|
|
345
345
|
const u = a(t.computation);
|
|
346
|
-
return (u == null ? void 0 : u.kind) === "server_query" &&
|
|
346
|
+
return (u == null ? void 0 : u.kind) === "server_query" && w(t.queryKind) && w(u.queryKind) && u.queryKind !== t.queryKind && i.push(`${s}.computation.queryKind must match queryKind.`), i.push(
|
|
347
347
|
...Ve({
|
|
348
348
|
value: t.sdkSpec,
|
|
349
349
|
path: `${s}.sdkSpec`,
|
|
@@ -552,7 +552,7 @@ function se(o, s) {
|
|
|
552
552
|
`${s}.filterFieldRef`
|
|
553
553
|
)
|
|
554
554
|
];
|
|
555
|
-
return t.builder !== "semaphor.inputOptions" && i.push(`${s}.builder must be semaphor.inputOptions.`), typeof t.sourceKey != "string" && t.source === void 0 && i.push(`${s} must include source or sourceKey.`), t.source !== void 0 && i.push(...
|
|
555
|
+
return t.builder !== "semaphor.inputOptions" && i.push(`${s}.builder must be semaphor.inputOptions.`), typeof t.sourceKey != "string" && t.source === void 0 && i.push(`${s} must include source or sourceKey.`), t.source !== void 0 && i.push(...I(t.source, `${s}.source`)), a(t.valueFieldRef) || i.push(`${s}.valueFieldRef is required.`), a(t.labelFieldRef) || i.push(`${s}.labelFieldRef is required.`), t.limit !== void 0 && (typeof t.limit != "number" || !Number.isInteger(t.limit) || t.limit <= 0) && i.push(`${s}.limit must be a positive integer.`), i;
|
|
556
556
|
}
|
|
557
557
|
function Ve(o) {
|
|
558
558
|
var n;
|
|
@@ -562,7 +562,7 @@ function Ve(o) {
|
|
|
562
562
|
const t = [];
|
|
563
563
|
if (!ie(s.builder))
|
|
564
564
|
return t.push(`${o.path}.builder must be a supported SDK builder.`), t;
|
|
565
|
-
o.sdkBuilder && s.builder !== o.sdkBuilder && t.push(`${o.path}.builder must match sdkBuilder.`), o.queryKind &&
|
|
565
|
+
o.sdkBuilder && s.builder !== o.sdkBuilder && t.push(`${o.path}.builder must match sdkBuilder.`), o.queryKind && w(o.queryKind) && s.builder !== Ze(o.queryKind) && t.push(`${o.path}.builder must match queryKind.`);
|
|
566
566
|
const i = a(s.spec);
|
|
567
567
|
if (!i)
|
|
568
568
|
return t.push(`${o.path}.spec must be an object.`), t;
|
|
@@ -570,7 +570,7 @@ function Ve(o) {
|
|
|
570
570
|
case "semaphor.metric":
|
|
571
571
|
t.push(
|
|
572
572
|
...$(i, ee, `${o.path}.spec`),
|
|
573
|
-
...
|
|
573
|
+
...j(i, o.path),
|
|
574
574
|
...K(i.measures, `${o.path}.spec.measures`),
|
|
575
575
|
...f(
|
|
576
576
|
i.primaryMeasure,
|
|
@@ -585,13 +585,13 @@ function Ve(o) {
|
|
|
585
585
|
`${o.path}.spec.dimensions`
|
|
586
586
|
),
|
|
587
587
|
...T(i.orderBy, `${o.path}.spec.orderBy`),
|
|
588
|
-
...
|
|
588
|
+
...R(i.filters, `${o.path}.spec.filters`)
|
|
589
589
|
);
|
|
590
590
|
break;
|
|
591
591
|
case "semaphor.analysis":
|
|
592
592
|
t.push(
|
|
593
593
|
...$(i, we, `${o.path}.spec`),
|
|
594
|
-
...
|
|
594
|
+
...j(i, o.path),
|
|
595
595
|
...K(i.measures, `${o.path}.spec.measures`),
|
|
596
596
|
...f(
|
|
597
597
|
i.primaryMeasure,
|
|
@@ -606,21 +606,21 @@ function Ve(o) {
|
|
|
606
606
|
`${o.path}.spec.dimensions`
|
|
607
607
|
),
|
|
608
608
|
...T(i.orderBy, `${o.path}.spec.orderBy`),
|
|
609
|
-
...
|
|
609
|
+
...R(i.filters, `${o.path}.spec.filters`),
|
|
610
610
|
...Ue(i, `${o.path}.spec`)
|
|
611
611
|
);
|
|
612
612
|
break;
|
|
613
613
|
case "semaphor.records":
|
|
614
614
|
t.push(
|
|
615
615
|
...$(i, ke, `${o.path}.spec`),
|
|
616
|
-
...
|
|
616
|
+
...j(i, o.path),
|
|
617
617
|
...K(i.fields, `${o.path}.spec.fields`),
|
|
618
618
|
...f(
|
|
619
619
|
i.dateField,
|
|
620
620
|
`${o.path}.spec.dateField`
|
|
621
621
|
),
|
|
622
622
|
...T(i.orderBy, `${o.path}.spec.orderBy`),
|
|
623
|
-
...
|
|
623
|
+
...R(i.filters, `${o.path}.spec.filters`),
|
|
624
624
|
...Ge(
|
|
625
625
|
i.totals,
|
|
626
626
|
`${o.path}.spec.totals`
|
|
@@ -638,7 +638,7 @@ function Ve(o) {
|
|
|
638
638
|
),
|
|
639
639
|
...Ye(i.values, `${o.path}.spec.values`),
|
|
640
640
|
...Je(i.sort, `${o.path}.spec.sort`),
|
|
641
|
-
...
|
|
641
|
+
...R(i.filters, `${o.path}.spec.filters`),
|
|
642
642
|
...Le(
|
|
643
643
|
i.displayLimits,
|
|
644
644
|
`${o.path}.spec.displayLimits`
|
|
@@ -648,7 +648,7 @@ function Ve(o) {
|
|
|
648
648
|
case "semaphor.sql":
|
|
649
649
|
t.push(
|
|
650
650
|
...$(i, Ae, `${o.path}.spec`),
|
|
651
|
-
...
|
|
651
|
+
...j(i, o.path)
|
|
652
652
|
), ((n = a(i.source)) == null ? void 0 : n.kind) !== "sql" && t.push(`${o.path}.spec.source.kind must be sql.`), (typeof i.sql != "string" || !i.sql.trim()) && t.push(`${o.path}.spec.sql is required.`), t.push(
|
|
653
653
|
...E(
|
|
654
654
|
i.fields,
|
|
@@ -733,14 +733,14 @@ function $(o, s, t) {
|
|
|
733
733
|
s.has(n) || i.push(`${t}.${n} is not supported for this SDK builder.`);
|
|
734
734
|
}), i;
|
|
735
735
|
}
|
|
736
|
-
function
|
|
737
|
-
return a(o.source) ?
|
|
736
|
+
function j(o, s) {
|
|
737
|
+
return a(o.source) ? I(o.source, `${s}.spec.source`) : [`${s}.spec.source must be an object.`];
|
|
738
738
|
}
|
|
739
739
|
function ze(o, s) {
|
|
740
740
|
const t = a(o.source);
|
|
741
741
|
if (!t)
|
|
742
742
|
return [`${s}.spec.source must be an object.`];
|
|
743
|
-
const i =
|
|
743
|
+
const i = I(o.source, `${s}.spec.source`);
|
|
744
744
|
return t.kind !== "semantic" && t.kind !== "physical" && i.push(`${s}.spec.source.kind must be semantic or physical.`), i;
|
|
745
745
|
}
|
|
746
746
|
function K(o, s) {
|
|
@@ -845,7 +845,7 @@ function We(o, s) {
|
|
|
845
845
|
function oe(o, s) {
|
|
846
846
|
return o === "asc" || o === "desc" ? [] : [`${s} must be asc or desc.`];
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function R(o, s) {
|
|
849
849
|
if (o === void 0)
|
|
850
850
|
return [];
|
|
851
851
|
if (!Array.isArray(o))
|
|
@@ -948,7 +948,7 @@ function rt(o, s) {
|
|
|
948
948
|
const i = [];
|
|
949
949
|
switch (t.kind) {
|
|
950
950
|
case "server_query":
|
|
951
|
-
|
|
951
|
+
w(t.queryKind) || i.push(`${s}.queryKind must be a supported codegen query kind.`), t.queryOwnership !== void 0 && t.queryOwnership !== "view_owned" && t.queryOwnership !== "shared_query" && i.push(
|
|
952
952
|
`${s}.queryOwnership must be view_owned or shared_query.`
|
|
953
953
|
), t.sourceKeys !== void 0 && !g(t.sourceKeys) && i.push(`${s}.sourceKeys must be an array of strings.`), t.fieldNames !== void 0 && !g(t.fieldNames) && i.push(`${s}.fieldNames must be an array of strings.`);
|
|
954
954
|
break;
|
|
@@ -1060,7 +1060,7 @@ function Y(o, s) {
|
|
|
1060
1060
|
);
|
|
1061
1061
|
}), t.kind !== "semantic" && i.push(`${s} must use semantic source identity.`), (typeof t.domainId != "string" || !t.domainId.trim() || typeof t.datasetName != "string" || !t.datasetName.trim()) && i.push(`${s} must include semantic domainId and datasetName.`), i;
|
|
1062
1062
|
}
|
|
1063
|
-
function
|
|
1063
|
+
function w(o) {
|
|
1064
1064
|
return ve.has(o);
|
|
1065
1065
|
}
|
|
1066
1066
|
function ie(o) {
|
|
@@ -1081,7 +1081,7 @@ function ne(o, s) {
|
|
|
1081
1081
|
if (!t || typeof t.sourceKey == "string" && t.sourceKey.trim())
|
|
1082
1082
|
return i;
|
|
1083
1083
|
if (t.source !== void 0) {
|
|
1084
|
-
const r =
|
|
1084
|
+
const r = I(t.source, `${s}.source`);
|
|
1085
1085
|
return r.length === 0 || i.push(...r), i;
|
|
1086
1086
|
}
|
|
1087
1087
|
return i.includes(`${s} must include source or sourceKey.`) || i.push(`${s} must include source or sourceKey.`), i;
|
|
@@ -1135,7 +1135,7 @@ const m = e.record(e.string(), e.unknown()), C = e.array(m), c = e.enum([
|
|
|
1135
1135
|
"semantic_model",
|
|
1136
1136
|
"caller_override",
|
|
1137
1137
|
"default_sum"
|
|
1138
|
-
]),
|
|
1138
|
+
]), S = e.union([e.number(), e.string(), e.null()]), B = e.enum([
|
|
1139
1139
|
"millisecond",
|
|
1140
1140
|
"second",
|
|
1141
1141
|
"minute",
|
|
@@ -1200,7 +1200,7 @@ const m = e.record(e.string(), e.unknown()), C = e.array(m), c = e.enum([
|
|
|
1200
1200
|
expressionId: e.string()
|
|
1201
1201
|
}).passthrough()
|
|
1202
1202
|
]);
|
|
1203
|
-
function
|
|
1203
|
+
function A(o, s) {
|
|
1204
1204
|
return e.object(o).passthrough().superRefine((t, i) => {
|
|
1205
1205
|
for (const n of s)
|
|
1206
1206
|
Object.prototype.hasOwnProperty.call(t, n) || i.addIssue({
|
|
@@ -1231,7 +1231,7 @@ const ue = e.object({
|
|
|
1231
1231
|
connectionId: e.string(),
|
|
1232
1232
|
dialect: q.optional(),
|
|
1233
1233
|
label: e.string().optional()
|
|
1234
|
-
}).passthrough(),
|
|
1234
|
+
}).passthrough(), k = e.union([
|
|
1235
1235
|
ue,
|
|
1236
1236
|
pt,
|
|
1237
1237
|
mt
|
|
@@ -1240,7 +1240,7 @@ const ue = e.object({
|
|
|
1240
1240
|
label: e.string().optional(),
|
|
1241
1241
|
role: x.optional(),
|
|
1242
1242
|
dataType: F.optional(),
|
|
1243
|
-
source:
|
|
1243
|
+
source: k.optional(),
|
|
1244
1244
|
aggregate: c.optional()
|
|
1245
1245
|
}).passthrough(), gt = e.object({
|
|
1246
1246
|
kind: e.literal("field"),
|
|
@@ -1318,7 +1318,7 @@ const ue = e.object({
|
|
|
1318
1318
|
role: x.optional(),
|
|
1319
1319
|
dataType: F.optional(),
|
|
1320
1320
|
aggregate: c.optional(),
|
|
1321
|
-
source:
|
|
1321
|
+
source: k.optional(),
|
|
1322
1322
|
derivedField: de.optional()
|
|
1323
1323
|
}).passthrough(), ce = e.object({
|
|
1324
1324
|
code: e.string(),
|
|
@@ -1347,7 +1347,7 @@ const ue = e.object({
|
|
|
1347
1347
|
totalCount: e.number(),
|
|
1348
1348
|
hasNextPage: e.boolean(),
|
|
1349
1349
|
hasPrevPage: e.boolean()
|
|
1350
|
-
}).passthrough(),
|
|
1350
|
+
}).passthrough(), _ = {
|
|
1351
1351
|
intentId: e.string().optional(),
|
|
1352
1352
|
queryPath: e.enum(["query_spec", "sql", "sql_python"]),
|
|
1353
1353
|
warnings: e.array(e.string()).optional(),
|
|
@@ -1356,20 +1356,21 @@ const ue = e.object({
|
|
|
1356
1356
|
limit: e.number().optional(),
|
|
1357
1357
|
pagination: $t.optional()
|
|
1358
1358
|
}, St = e.object({
|
|
1359
|
-
...
|
|
1359
|
+
..._,
|
|
1360
1360
|
kind: e.literal("metric"),
|
|
1361
|
-
value:
|
|
1362
|
-
|
|
1361
|
+
value: S,
|
|
1362
|
+
primaryValue: S,
|
|
1363
|
+
measures: e.record(S).optional(),
|
|
1363
1364
|
missingMeasures: e.array(e.string()).optional(),
|
|
1364
1365
|
comparison: e.object({
|
|
1365
1366
|
kind: e.enum(["previous_period", "previous_year", "target"]),
|
|
1366
|
-
value:
|
|
1367
|
+
value: S.optional(),
|
|
1367
1368
|
delta: e.union([e.number(), e.null()]).optional(),
|
|
1368
1369
|
deltaPercent: e.union([e.number(), e.null()]).optional()
|
|
1369
1370
|
}).passthrough().optional(),
|
|
1370
1371
|
records: C.optional()
|
|
1371
1372
|
}).passthrough(), wt = e.object({
|
|
1372
|
-
...
|
|
1373
|
+
..._,
|
|
1373
1374
|
kind: e.literal("records"),
|
|
1374
1375
|
columns: e.array(O),
|
|
1375
1376
|
records: C,
|
|
@@ -1380,10 +1381,10 @@ const ue = e.object({
|
|
|
1380
1381
|
columns: e.array(O).optional()
|
|
1381
1382
|
}).passthrough().optional()
|
|
1382
1383
|
}).passthrough(), kt = e.object({
|
|
1383
|
-
...
|
|
1384
|
+
..._,
|
|
1384
1385
|
kind: e.literal("inputOptions"),
|
|
1385
1386
|
options: e.array(
|
|
1386
|
-
|
|
1387
|
+
A(
|
|
1387
1388
|
{
|
|
1388
1389
|
label: e.string(),
|
|
1389
1390
|
value: e.unknown(),
|
|
@@ -1394,7 +1395,7 @@ const ue = e.object({
|
|
|
1394
1395
|
)
|
|
1395
1396
|
)
|
|
1396
1397
|
}).passthrough(), It = e.object({
|
|
1397
|
-
...
|
|
1398
|
+
..._,
|
|
1398
1399
|
kind: e.literal("sql"),
|
|
1399
1400
|
columns: e.array(O),
|
|
1400
1401
|
records: C,
|
|
@@ -1420,7 +1421,7 @@ const ue = e.object({
|
|
|
1420
1421
|
}).passthrough()
|
|
1421
1422
|
),
|
|
1422
1423
|
nodeIds: e.array(e.string())
|
|
1423
|
-
}).passthrough(), b =
|
|
1424
|
+
}).passthrough(), b = A(
|
|
1424
1425
|
{
|
|
1425
1426
|
instanceId: e.string(),
|
|
1426
1427
|
fieldKey: e.string(),
|
|
@@ -1517,7 +1518,7 @@ const ue = e.object({
|
|
|
1517
1518
|
kind: e.string(),
|
|
1518
1519
|
label: e.string().optional(),
|
|
1519
1520
|
payload: e.record(e.string(), e.unknown()).optional()
|
|
1520
|
-
}).passthrough(), Kt =
|
|
1521
|
+
}).passthrough(), Kt = A(
|
|
1521
1522
|
{
|
|
1522
1523
|
id: e.string(),
|
|
1523
1524
|
axis: e.enum(["row", "column"]),
|
|
@@ -1575,7 +1576,7 @@ const ue = e.object({
|
|
|
1575
1576
|
role: e.enum(["value", "columnSubtotal", "columnGrandTotal"])
|
|
1576
1577
|
}).passthrough()
|
|
1577
1578
|
)
|
|
1578
|
-
}).passthrough(), Tt =
|
|
1579
|
+
}).passthrough(), Tt = A(
|
|
1579
1580
|
{
|
|
1580
1581
|
rowId: e.string(),
|
|
1581
1582
|
columnId: e.string().optional(),
|
|
@@ -1597,7 +1598,7 @@ const ue = e.object({
|
|
|
1597
1598
|
columns: e.boolean().optional()
|
|
1598
1599
|
}).passthrough()
|
|
1599
1600
|
]).optional()
|
|
1600
|
-
}).passthrough(), Dt =
|
|
1601
|
+
}).passthrough(), Dt = A(
|
|
1601
1602
|
{
|
|
1602
1603
|
id: e.string(),
|
|
1603
1604
|
axis: e.enum(["row", "column"]),
|
|
@@ -1634,7 +1635,7 @@ const ue = e.object({
|
|
|
1634
1635
|
).optional(),
|
|
1635
1636
|
rules: e.array(e.record(e.string(), e.unknown())).optional()
|
|
1636
1637
|
}).passthrough(), Lt = e.object({
|
|
1637
|
-
...
|
|
1638
|
+
..._,
|
|
1638
1639
|
kind: e.literal("matrix"),
|
|
1639
1640
|
schemaVersion: e.literal(1),
|
|
1640
1641
|
shape: e.enum(["hierarchical", "pivot"]),
|
|
@@ -1670,15 +1671,15 @@ const ue = e.object({
|
|
|
1670
1671
|
"fanout_risk",
|
|
1671
1672
|
"unknown"
|
|
1672
1673
|
]),
|
|
1673
|
-
requiredSources: e.array(
|
|
1674
|
+
requiredSources: e.array(k).optional(),
|
|
1674
1675
|
relationshipsUsed: e.array(e.string()).optional(),
|
|
1675
1676
|
missingSources: e.array(e.string()).optional(),
|
|
1676
1677
|
warnings: e.array(e.string()).optional(),
|
|
1677
1678
|
message: e.string().optional(),
|
|
1678
1679
|
recommendedNextStep: e.string().optional(),
|
|
1679
1680
|
joinPlanSummary: e.object({
|
|
1680
|
-
baseSource:
|
|
1681
|
-
joinedSources: e.array(
|
|
1681
|
+
baseSource: k.optional(),
|
|
1682
|
+
joinedSources: e.array(k).optional(),
|
|
1682
1683
|
joinCount: e.number().optional()
|
|
1683
1684
|
}).passthrough().optional(),
|
|
1684
1685
|
fanoutRisk: e.object({
|
|
@@ -1732,7 +1733,7 @@ const ue = e.object({
|
|
|
1732
1733
|
).optional()
|
|
1733
1734
|
}).passthrough(), ge = e.object({
|
|
1734
1735
|
scope: e.literal("filtered_query"),
|
|
1735
|
-
measures: e.record(
|
|
1736
|
+
measures: e.record(S)
|
|
1736
1737
|
}).passthrough(), fe = e.object({
|
|
1737
1738
|
answeredObligations: e.array(e.string()),
|
|
1738
1739
|
missingObligations: e.array(e.string()),
|
|
@@ -1983,7 +1984,7 @@ export {
|
|
|
1983
1984
|
us as g,
|
|
1984
1985
|
mt as h,
|
|
1985
1986
|
as as i,
|
|
1986
|
-
|
|
1987
|
+
k as j,
|
|
1987
1988
|
v as k,
|
|
1988
1989
|
de as l,
|
|
1989
1990
|
U as m,
|