react-semaphor 0.1.336 → 0.1.338

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.
@@ -300,6 +300,7 @@ export declare type SemaphorAnalyticsExecutionResult = {
300
300
  missingFields?: string[];
301
301
  warnings?: string[];
302
302
  relationshipDiagnostics?: SemaphorRelationshipDiagnostics;
303
+ population?: SemaphorAnalyticsPopulation;
303
304
  metadata?: Record<string, unknown>;
304
305
  };
305
306
 
@@ -341,6 +342,11 @@ export declare type SemaphorAnalyticsObligation = {
341
342
 
342
343
  export declare type SemaphorAnalyticsObligationType = 'record_list' | 'count' | 'trend' | 'comparison' | 'driver_analysis' | 'metric_summary' | 'analysis_table' | 'lookup' | 'unknown';
343
344
 
345
+ export declare type SemaphorAnalyticsPopulation = {
346
+ scope: 'filtered_query';
347
+ metrics: Record<string, number | string | null>;
348
+ };
349
+
344
350
  export declare type SemaphorAnalyticsRecoveryPlan = {
345
351
  version: SemaphorProtocolVersion;
346
352
  kind: 'analytics_recovery_plan';
@@ -127,6 +127,13 @@ declare interface CardConfig {
127
127
  pivotByColumns?: PivotByField[];
128
128
  sortByColumns?: SortByField[];
129
129
  detailColumns?: DetailField[];
130
+ /**
131
+ * Typed source that anchors the query before auto-join materializes an
132
+ * executable joinPlan.baseEntity. This is distinct from
133
+ * DataSource.selectedEntities, which lists available datasets but does not
134
+ * define join-root semantics.
135
+ */
136
+ queryBaseSource?: SemaphorSourceRef;
130
137
  /** Preserves non-detail config when switching to detail tables. */
131
138
  detailTableBackup?: DetailTableBackupConfig;
132
139
  filters?: FilterGroup;
@@ -204,6 +204,13 @@ declare interface CardConfig {
204
204
  pivotByColumns?: PivotByField[];
205
205
  sortByColumns?: SortByField[];
206
206
  detailColumns?: DetailField[];
207
+ /**
208
+ * Typed source that anchors the query before auto-join materializes an
209
+ * executable joinPlan.baseEntity. This is distinct from
210
+ * DataSource.selectedEntities, which lists available datasets but does not
211
+ * define join-root semantics.
212
+ */
213
+ queryBaseSource?: SemaphorSourceRef;
207
214
  /** Preserves non-detail config when switching to detail tables. */
208
215
  detailTableBackup?: DetailTableBackupConfig;
209
216
  filters?: FilterGroup;
@@ -1898,6 +1905,32 @@ declare type SemanticExecutionPayload = {
1898
1905
  }>;
1899
1906
  };
1900
1907
 
1908
+ declare type SemaphorDialect = 'semantic' | 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
1909
+
1910
+ declare type SemaphorSourceRef = {
1911
+ kind: 'semantic';
1912
+ domainId: string;
1913
+ datasetName: string;
1914
+ datasetId?: string;
1915
+ label?: string;
1916
+ connectionId?: string;
1917
+ } | {
1918
+ kind: 'physical';
1919
+ connectionId: string;
1920
+ connectionType?: string;
1921
+ tableName: string;
1922
+ databaseName?: string;
1923
+ schemaName?: string;
1924
+ label?: string;
1925
+ dialect?: SemaphorDialect;
1926
+ } | {
1927
+ kind: 'sql';
1928
+ connectionId: string;
1929
+ sql: string;
1930
+ dialect?: SemaphorDialect;
1931
+ label?: string;
1932
+ };
1933
+
1901
1934
  declare interface SortByField extends Field {
1902
1935
  role: 'sortby';
1903
1936
  direction: 'asc' | 'desc';
@@ -1179,6 +1179,13 @@ export declare interface CardConfig {
1179
1179
  pivotByColumns?: PivotByField[];
1180
1180
  sortByColumns?: SortByField[];
1181
1181
  detailColumns?: DetailField[];
1182
+ /**
1183
+ * Typed source that anchors the query before auto-join materializes an
1184
+ * executable joinPlan.baseEntity. This is distinct from
1185
+ * DataSource.selectedEntities, which lists available datasets but does not
1186
+ * define join-root semantics.
1187
+ */
1188
+ queryBaseSource?: SemaphorSourceRef;
1182
1189
  /** Preserves non-detail config when switching to detail tables. */
1183
1190
  detailTableBackup?: DetailTableBackupConfig;
1184
1191
  filters?: FilterGroup;
@@ -6418,7 +6425,7 @@ export declare function useTextFilterHook(filterId: string): {
6418
6425
  activeFilterValue: TFilterValue | undefined;
6419
6426
  isSearching: boolean;
6420
6427
  searchError: boolean;
6421
- resultSource: "server" | "both" | "local";
6428
+ resultSource: "both" | "server" | "local";
6422
6429
  };
6423
6430
 
6424
6431
  export declare function validateBriefingFormDraft(draft: BriefingFormDraft): BriefingFormValidationResult;
@@ -119,6 +119,13 @@ declare interface CardConfig {
119
119
  pivotByColumns?: PivotByField[];
120
120
  sortByColumns?: SortByField[];
121
121
  detailColumns?: DetailField[];
122
+ /**
123
+ * Typed source that anchors the query before auto-join materializes an
124
+ * executable joinPlan.baseEntity. This is distinct from
125
+ * DataSource.selectedEntities, which lists available datasets but does not
126
+ * define join-root semantics.
127
+ */
128
+ queryBaseSource?: SemaphorSourceRef;
122
129
  /** Preserves non-detail config when switching to detail tables. */
123
130
  detailTableBackup?: DetailTableBackupConfig;
124
131
  filters?: FilterGroup;
@@ -1548,6 +1555,32 @@ declare type SelectedEntities = SelectedEntity[];
1548
1555
 
1549
1556
  declare type SelectedEntity = DatabaseEntityReference | DataModelEntityReference | DatasetEntityReference | FileEntityReference;
1550
1557
 
1558
+ declare type SemaphorDialect = 'semantic' | 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
1559
+
1560
+ declare type SemaphorSourceRef = {
1561
+ kind: 'semantic';
1562
+ domainId: string;
1563
+ datasetName: string;
1564
+ datasetId?: string;
1565
+ label?: string;
1566
+ connectionId?: string;
1567
+ } | {
1568
+ kind: 'physical';
1569
+ connectionId: string;
1570
+ connectionType?: string;
1571
+ tableName: string;
1572
+ databaseName?: string;
1573
+ schemaName?: string;
1574
+ label?: string;
1575
+ dialect?: SemaphorDialect;
1576
+ } | {
1577
+ kind: 'sql';
1578
+ connectionId: string;
1579
+ sql: string;
1580
+ dialect?: SemaphorDialect;
1581
+ label?: string;
1582
+ };
1583
+
1551
1584
  /**
1552
1585
  * Stable serializer for dashboard dirty checks.
1553
1586
  * This consolidates normalization + serialization into one call site, so
@@ -211,6 +211,13 @@ declare interface CardConfig {
211
211
  pivotByColumns?: PivotByField[];
212
212
  sortByColumns?: SortByField[];
213
213
  detailColumns?: DetailField[];
214
+ /**
215
+ * Typed source that anchors the query before auto-join materializes an
216
+ * executable joinPlan.baseEntity. This is distinct from
217
+ * DataSource.selectedEntities, which lists available datasets but does not
218
+ * define join-root semantics.
219
+ */
220
+ queryBaseSource?: SemaphorSourceRef;
214
221
  /** Preserves non-detail config when switching to detail tables. */
215
222
  detailTableBackup?: DetailTableBackupConfig;
216
223
  filters?: FilterGroup;
@@ -1908,6 +1915,32 @@ declare type SemanticExecutionPayload = {
1908
1915
  }>;
1909
1916
  };
1910
1917
 
1918
+ declare type SemaphorDialect = 'semantic' | 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
1919
+
1920
+ declare type SemaphorSourceRef = {
1921
+ kind: 'semantic';
1922
+ domainId: string;
1923
+ datasetName: string;
1924
+ datasetId?: string;
1925
+ label?: string;
1926
+ connectionId?: string;
1927
+ } | {
1928
+ kind: 'physical';
1929
+ connectionId: string;
1930
+ connectionType?: string;
1931
+ tableName: string;
1932
+ databaseName?: string;
1933
+ schemaName?: string;
1934
+ label?: string;
1935
+ dialect?: SemaphorDialect;
1936
+ } | {
1937
+ kind: 'sql';
1938
+ connectionId: string;
1939
+ sql: string;
1940
+ dialect?: SemaphorDialect;
1941
+ label?: string;
1942
+ };
1943
+
1911
1944
  declare interface SortByField extends Field {
1912
1945
  role: 'sortby';
1913
1946
  direction: 'asc' | 'desc';
@@ -653,6 +653,13 @@ export declare interface CardConfig {
653
653
  pivotByColumns?: PivotByField[];
654
654
  sortByColumns?: SortByField[];
655
655
  detailColumns?: DetailField[];
656
+ /**
657
+ * Typed source that anchors the query before auto-join materializes an
658
+ * executable joinPlan.baseEntity. This is distinct from
659
+ * DataSource.selectedEntities, which lists available datasets but does not
660
+ * define join-root semantics.
661
+ */
662
+ queryBaseSource?: SemaphorSourceRef;
656
663
  /** Preserves non-detail config when switching to detail tables. */
657
664
  detailTableBackup?: DetailTableBackupConfig;
658
665
  filters?: FilterGroup;
@@ -2668,6 +2675,32 @@ declare type SemanticExecutionPayload = {
2668
2675
  }>;
2669
2676
  };
2670
2677
 
2678
+ declare type SemaphorDialect = 'semantic' | 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
2679
+
2680
+ declare type SemaphorSourceRef = {
2681
+ kind: 'semantic';
2682
+ domainId: string;
2683
+ datasetName: string;
2684
+ datasetId?: string;
2685
+ label?: string;
2686
+ connectionId?: string;
2687
+ } | {
2688
+ kind: 'physical';
2689
+ connectionId: string;
2690
+ connectionType?: string;
2691
+ tableName: string;
2692
+ databaseName?: string;
2693
+ schemaName?: string;
2694
+ label?: string;
2695
+ dialect?: SemaphorDialect;
2696
+ } | {
2697
+ kind: 'sql';
2698
+ connectionId: string;
2699
+ sql: string;
2700
+ dialect?: SemaphorDialect;
2701
+ label?: string;
2702
+ };
2703
+
2671
2704
  export declare interface SortByField extends Field {
2672
2705
  role: 'sortby';
2673
2706
  direction: 'asc' | 'desc';
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.336",
8
+ "version": "0.1.338",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",