react-semaphor 0.1.308 → 0.1.310
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/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +4 -4
- package/dist/chunks/{braces-BHDm9arh.js → braces-B_1DhXjs.js} +1 -1
- package/dist/chunks/{braces-DEq8EJtw.js → braces-BataYVhi.js} +1 -1
- package/dist/chunks/{chevrons-up-down-DDEY9beZ.js → chevrons-up-down-2PuJgXa0.js} +1 -1
- package/dist/chunks/{chevrons-up-down-Cbtggnqv.js → chevrons-up-down-CfMX77Ug.js} +1 -1
- package/dist/chunks/common-types-4bjoIgvm.js +75 -0
- package/dist/chunks/common-types-C73-Ud1-.js +1 -0
- package/dist/chunks/{dashboard-controls-DviftQE7.js → dashboard-controls-CZH2CHE6.js} +1 -1
- package/dist/chunks/{dashboard-controls-DTxSUWvy.js → dashboard-controls-DKNSTyu3.js} +83 -83
- package/dist/chunks/{dashboard-filter-controls-button-DHKfgPah.js → dashboard-filter-controls-button-C5FGXiyJ.js} +4 -4
- package/dist/chunks/{dashboard-filter-controls-button-D0nrJ7wl.js → dashboard-filter-controls-button-CRYFNfgr.js} +1 -1
- package/dist/chunks/{dashboard-json-DZmsUV5n.js → dashboard-json-A9m16zgO.js} +2 -2
- package/dist/chunks/{dashboard-json-DYzZ0G6T.js → dashboard-json-CUYxXIbj.js} +1 -1
- package/dist/chunks/{dashboard-summary-settings-dialog-QbUTp92u.js → dashboard-summary-settings-dialog-BFldiulJ.js} +3 -3
- package/dist/chunks/{dashboard-summary-settings-dialog-Cc3yKCu4.js → dashboard-summary-settings-dialog-Dl80Vf3Y.js} +1 -1
- package/dist/chunks/{edit-dashboard-visual-BS3LKMJe.js → edit-dashboard-visual-Bt6wP1pc.js} +32 -32
- package/dist/chunks/{edit-dashboard-visual-CmgculGv.js → edit-dashboard-visual-C013lDvS.js} +1251 -1261
- package/dist/chunks/{index-C0zD3JgK.js → index-C_mYCH5V.js} +209 -209
- package/dist/chunks/{index-BxYIELMe.js → index-scc12bkM.js} +7498 -7493
- package/dist/chunks/{palette-CteErylX.js → palette-CuxyTPBF.js} +1 -1
- package/dist/chunks/{palette-CNKSAIrt.js → palette-DIqG9FgB.js} +1 -1
- package/dist/chunks/{resource-management-panel-B4QM3fZ_.js → resource-management-panel-CkS-1IEw.js} +1 -1
- package/dist/chunks/{resource-management-panel-8cHoj8SV.js → resource-management-panel-xJtqTzS8.js} +3 -3
- package/dist/chunks/{save-B1-nDZwS.js → save-CP9_rxYk.js} +1 -1
- package/dist/chunks/{save-BVVnWGeb.js → save-CPHrveZg.js} +1 -1
- package/dist/chunks/{switch-BG4RWnrq.js → switch-BFPV36rd.js} +31 -31
- package/dist/chunks/{switch-BZn7R_Cp.js → switch-DXHYEa_J.js} +1586 -1637
- package/dist/chunks/{use-create-flow-overlay-state-CeWstFjy.js → use-create-flow-overlay-state-C77yBFiq.js} +4 -4
- package/dist/chunks/{use-create-flow-overlay-state-Bmb471Fp.js → use-create-flow-overlay-state-nhcTzyJQ.js} +1 -1
- package/dist/chunks/{use-visual-utils-CmfDomt0.js → use-visual-utils-BqljNzWn.js} +2 -2
- package/dist/chunks/{use-visual-utils-DflfgX9g.js → use-visual-utils-Cm2IkP1c.js} +1 -1
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +107 -104
- package/dist/surfboard/index.cjs +1 -1
- package/dist/surfboard/index.js +3 -3
- package/dist/types/dashboard.d.ts +17 -5
- package/dist/types/index.cjs +1 -1
- package/dist/types/index.js +16 -7
- package/dist/types/main.d.ts +39 -5
- package/dist/types/shared.d.ts +17 -5
- package/dist/types/surfboard.d.ts +17 -5
- package/dist/types/types.d.ts +310 -57
- package/package.json +6 -1
- package/dist/chunks/common-types-C6cAQgyh.js +0 -9
- package/dist/chunks/common-types-nBuCd3u2.js +0 -1
|
@@ -810,12 +810,12 @@ declare interface DataModelEntityReference extends DatabaseEntityReference {
|
|
|
810
810
|
declare interface DatasetEntityReference extends DatabaseEntityReference {
|
|
811
811
|
type: 'dataset';
|
|
812
812
|
datasetType: 'physical' | 'virtual';
|
|
813
|
-
datamodelId
|
|
814
|
-
sql
|
|
813
|
+
datamodelId?: string | null;
|
|
814
|
+
sql?: string | null;
|
|
815
815
|
id: string;
|
|
816
816
|
domainId: string;
|
|
817
817
|
label: string;
|
|
818
|
-
description
|
|
818
|
+
description?: string;
|
|
819
819
|
}
|
|
820
820
|
|
|
821
821
|
declare interface DataSource {
|
|
@@ -1264,6 +1264,7 @@ declare interface Field {
|
|
|
1264
1264
|
* If not provided, should be auto-generated from label or name.
|
|
1265
1265
|
*/
|
|
1266
1266
|
alias?: string;
|
|
1267
|
+
sourceField?: string;
|
|
1267
1268
|
qualifiedFieldName: string;
|
|
1268
1269
|
dataType: string;
|
|
1269
1270
|
description?: string;
|
|
@@ -1597,6 +1598,9 @@ declare interface Join {
|
|
|
1597
1598
|
joinType: 'INNER' | 'LEFT' | 'RIGHT' | 'FULL';
|
|
1598
1599
|
joinKeyGroups: JoinKeyGroup[];
|
|
1599
1600
|
sequence: number;
|
|
1601
|
+
relationshipId?: string;
|
|
1602
|
+
relationshipName?: string;
|
|
1603
|
+
relationshipCardinality?: 'one_to_one' | 'one_to_many' | 'many_to_one' | 'many_to_many';
|
|
1600
1604
|
}
|
|
1601
1605
|
|
|
1602
1606
|
declare interface JoinKey {
|
|
@@ -1687,6 +1691,12 @@ declare interface MetricField extends Field {
|
|
|
1687
1691
|
* Both are generated together from the same dialog inputs, preventing drift.
|
|
1688
1692
|
*/
|
|
1689
1693
|
calculatedFormula?: CalculatedFieldFormula;
|
|
1694
|
+
/**
|
|
1695
|
+
* Indicates the metric expression must be evaluated after row-level filtering,
|
|
1696
|
+
* either because it contains an aggregate function directly or depends on a
|
|
1697
|
+
* pre-aggregated metric input.
|
|
1698
|
+
*/
|
|
1699
|
+
isPreAggregated?: boolean;
|
|
1690
1700
|
comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'start_vs_end' | 'target';
|
|
1691
1701
|
comparisonDisplay?: 'column' | 'inline' | 'hover';
|
|
1692
1702
|
targetValue?: number;
|
|
@@ -1716,7 +1726,7 @@ declare type OldFilterValue = string | number | null | (string | number)[] | Ran
|
|
|
1716
1726
|
|
|
1717
1727
|
declare type Operation = '=' | '>' | '<' | '>=' | '<=' | '!=' | 'in' | 'not in' | 'like' | 'not like' | 'between' | 'not between' | 'is null' | 'is not null';
|
|
1718
1728
|
|
|
1719
|
-
declare type Operator = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'startsWith' | 'endsWith' | 'in' | 'not in' | 'between' | 'not between' | 'isNull' | 'isNotNull';
|
|
1729
|
+
declare type Operator = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'startsWith' | 'endsWith' | 'like' | 'not like' | 'in' | 'not in' | 'between' | 'not between' | 'isNull' | 'isNotNull';
|
|
1720
1730
|
|
|
1721
1731
|
declare type OptionsMap = {
|
|
1722
1732
|
number: NumberOptions;
|
|
@@ -1861,7 +1871,9 @@ declare type ResolvedPrimaryDateField = {
|
|
|
1861
1871
|
supportedGranularities?: TimeGranularity[];
|
|
1862
1872
|
} | null;
|
|
1863
1873
|
|
|
1864
|
-
declare type SelectedEntities =
|
|
1874
|
+
declare type SelectedEntities = SelectedEntity[];
|
|
1875
|
+
|
|
1876
|
+
declare type SelectedEntity = DatabaseEntityReference | DataModelEntityReference | DatasetEntityReference | FileEntityReference;
|
|
1865
1877
|
|
|
1866
1878
|
export declare type SelectionState = Record<Level, string | null>;
|
|
1867
1879
|
|
package/dist/types/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../chunks/common-types-C73-Ud1-.js"),a={mode:"all"},E={tz:"UTC",weekStart:1,anchor:"now"};exports.CALCULATED_FIELD_ENTITY_MARKER=e.CALCULATED_FIELD_ENTITY_MARKER;exports.CONTROL_CARD_DEFAULT_VALUE=e.CONTROL_CARD_DEFAULT_VALUE;exports.DATE_FORMAT_VALUES=e.DATE_FORMAT_VALUES;exports.EMPTY_SELECTION=e.EMPTY_SELECTION;exports.PivotMarkerEnum=e.PivotMarkerEnum;exports.getFieldRuntimeColumnName=e.getFieldRuntimeColumnName;exports.hasCalculatedFieldMarker=e.hasCalculatedFieldMarker;exports.hasCalculatedFormulaInputs=e.hasCalculatedFormulaInputs;exports.isCalculatedDimension=e.isCalculatedDimension;exports.isCalculatedField=e.isCalculatedField;exports.isCalculatedMetric=e.isCalculatedMetric;exports.DEFAULT_CALENDAR_CONTEXT=E;exports.DEFAULT_SEMANTIC_DOMAIN_ACCESS=a;
|
package/dist/types/index.js
CHANGED
|
@@ -1,15 +1,24 @@
|
|
|
1
|
-
import { C as
|
|
2
|
-
const
|
|
1
|
+
import { a as C, C as l, D as t, E as A, P as T, g as _, d as i, h as o, b as r, c as D, i as L } from "../chunks/common-types-4bjoIgvm.js";
|
|
2
|
+
const a = {
|
|
3
3
|
mode: "all"
|
|
4
|
-
},
|
|
4
|
+
}, e = {
|
|
5
5
|
tz: "UTC",
|
|
6
6
|
weekStart: 1,
|
|
7
7
|
// Monday (ISO standard)
|
|
8
8
|
anchor: "now"
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
C as CALCULATED_FIELD_ENTITY_MARKER,
|
|
12
|
+
l as CONTROL_CARD_DEFAULT_VALUE,
|
|
13
|
+
t as DATE_FORMAT_VALUES,
|
|
14
|
+
e as DEFAULT_CALENDAR_CONTEXT,
|
|
15
|
+
a as DEFAULT_SEMANTIC_DOMAIN_ACCESS,
|
|
16
|
+
A as EMPTY_SELECTION,
|
|
17
|
+
T as PivotMarkerEnum,
|
|
18
|
+
_ as getFieldRuntimeColumnName,
|
|
19
|
+
i as hasCalculatedFieldMarker,
|
|
20
|
+
o as hasCalculatedFormulaInputs,
|
|
21
|
+
r as isCalculatedDimension,
|
|
22
|
+
D as isCalculatedField,
|
|
23
|
+
L as isCalculatedMetric
|
|
15
24
|
};
|
package/dist/types/main.d.ts
CHANGED
|
@@ -1913,12 +1913,12 @@ export declare interface DataModelEntityReference extends DatabaseEntityReferenc
|
|
|
1913
1913
|
export declare interface DatasetEntityReference extends DatabaseEntityReference {
|
|
1914
1914
|
type: 'dataset';
|
|
1915
1915
|
datasetType: 'physical' | 'virtual';
|
|
1916
|
-
datamodelId
|
|
1917
|
-
sql
|
|
1916
|
+
datamodelId?: string | null;
|
|
1917
|
+
sql?: string | null;
|
|
1918
1918
|
id: string;
|
|
1919
1919
|
domainId: string;
|
|
1920
1920
|
label: string;
|
|
1921
|
-
description
|
|
1921
|
+
description?: string;
|
|
1922
1922
|
}
|
|
1923
1923
|
|
|
1924
1924
|
export declare interface DataSource {
|
|
@@ -2867,6 +2867,7 @@ export declare interface Field {
|
|
|
2867
2867
|
* If not provided, should be auto-generated from label or name.
|
|
2868
2868
|
*/
|
|
2869
2869
|
alias?: string;
|
|
2870
|
+
sourceField?: string;
|
|
2870
2871
|
qualifiedFieldName: string;
|
|
2871
2872
|
dataType: string;
|
|
2872
2873
|
description?: string;
|
|
@@ -3159,6 +3160,8 @@ export declare function getExports(apiServiceUrl: string, token: string, options
|
|
|
3159
3160
|
*/
|
|
3160
3161
|
export declare function getExportStatus(apiServiceUrl: string, token: string, exportId: string): Promise<ExportJobStatus>;
|
|
3161
3162
|
|
|
3163
|
+
export declare function getFieldRuntimeColumnName(field: Pick<Field, 'name' | 'sourceField'> | null | undefined): string;
|
|
3164
|
+
|
|
3162
3165
|
export declare function getFilterValueType(filter: TFilter): "string" | "number" | "date" | "boolean";
|
|
3163
3166
|
|
|
3164
3167
|
export declare function getFormattedTableNameForQuery({ schemaName, tableName, modelName, databaseName, capabilities, connectionType, }: {
|
|
@@ -3207,6 +3210,10 @@ export declare interface GroupByField extends Field {
|
|
|
3207
3210
|
calculatedFormula?: CalculatedFieldFormula;
|
|
3208
3211
|
}
|
|
3209
3212
|
|
|
3213
|
+
export declare function hasCalculatedFieldMarker(field: Pick<Field, 'entityName' | 'entityId'> | null | undefined): boolean;
|
|
3214
|
+
|
|
3215
|
+
export declare function hasCalculatedFormulaInputs(field: Field | null | undefined): boolean;
|
|
3216
|
+
|
|
3210
3217
|
export declare type HtmlOptions = {
|
|
3211
3218
|
html: string;
|
|
3212
3219
|
};
|
|
@@ -3418,6 +3425,9 @@ export declare interface Join {
|
|
|
3418
3425
|
joinType: 'INNER' | 'LEFT' | 'RIGHT' | 'FULL';
|
|
3419
3426
|
joinKeyGroups: JoinKeyGroup[];
|
|
3420
3427
|
sequence: number;
|
|
3428
|
+
relationshipId?: string;
|
|
3429
|
+
relationshipName?: string;
|
|
3430
|
+
relationshipCardinality?: 'one_to_one' | 'one_to_many' | 'many_to_one' | 'many_to_many';
|
|
3421
3431
|
}
|
|
3422
3432
|
|
|
3423
3433
|
export declare interface JoinKey {
|
|
@@ -3532,6 +3542,12 @@ export declare interface MetricField extends Field {
|
|
|
3532
3542
|
* Both are generated together from the same dialog inputs, preventing drift.
|
|
3533
3543
|
*/
|
|
3534
3544
|
calculatedFormula?: CalculatedFieldFormula;
|
|
3545
|
+
/**
|
|
3546
|
+
* Indicates the metric expression must be evaluated after row-level filtering,
|
|
3547
|
+
* either because it contains an aggregate function directly or depends on a
|
|
3548
|
+
* pre-aggregated metric input.
|
|
3549
|
+
*/
|
|
3550
|
+
isPreAggregated?: boolean;
|
|
3535
3551
|
comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'start_vs_end' | 'target';
|
|
3536
3552
|
comparisonDisplay?: 'column' | 'inline' | 'hover';
|
|
3537
3553
|
targetValue?: number;
|
|
@@ -3620,7 +3636,7 @@ export declare type OldFilterValue = string | number | null | (string | number)[
|
|
|
3620
3636
|
|
|
3621
3637
|
declare type Operation = '=' | '>' | '<' | '>=' | '<=' | '!=' | 'in' | 'not in' | 'like' | 'not like' | 'between' | 'not between' | 'is null' | 'is not null';
|
|
3622
3638
|
|
|
3623
|
-
export declare type Operator = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'startsWith' | 'endsWith' | 'in' | 'not in' | 'between' | 'not between' | 'isNull' | 'isNotNull';
|
|
3639
|
+
export declare type Operator = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'startsWith' | 'endsWith' | 'like' | 'not like' | 'in' | 'not in' | 'between' | 'not between' | 'isNull' | 'isNotNull';
|
|
3624
3640
|
|
|
3625
3641
|
declare type OptionsMap = {
|
|
3626
3642
|
number: NumberOptions;
|
|
@@ -3667,6 +3683,20 @@ export declare interface PivotByField extends Field {
|
|
|
3667
3683
|
role: 'pivotby';
|
|
3668
3684
|
}
|
|
3669
3685
|
|
|
3686
|
+
export declare interface PivotColumnSchema {
|
|
3687
|
+
alias: string;
|
|
3688
|
+
metricId: string;
|
|
3689
|
+
metricName: string;
|
|
3690
|
+
metricLabel?: string;
|
|
3691
|
+
pivotValues: string[];
|
|
3692
|
+
pivotFields?: string[];
|
|
3693
|
+
displayLabel?: string;
|
|
3694
|
+
isPivotColumn?: boolean;
|
|
3695
|
+
isMetricColumn?: boolean;
|
|
3696
|
+
isGroupByColumn?: boolean;
|
|
3697
|
+
aggregate?: AggregateFunction;
|
|
3698
|
+
}
|
|
3699
|
+
|
|
3670
3700
|
/**
|
|
3671
3701
|
const config: CardConfig = {
|
|
3672
3702
|
groupByColumns: [
|
|
@@ -3753,8 +3783,10 @@ export declare interface QueryExecutionResponse {
|
|
|
3753
3783
|
pagination?: PaginationMetadata;
|
|
3754
3784
|
subtotalColumns?: string[];
|
|
3755
3785
|
columnSubtotalMeta?: any;
|
|
3786
|
+
columnMetadata?: Record<string, any>;
|
|
3756
3787
|
columnKeyMap?: QueryColumnKeyMap;
|
|
3757
3788
|
tableTotalsByColumnId?: Record<string, string | number | null>;
|
|
3789
|
+
documentTableTotalsBaseSql?: string;
|
|
3758
3790
|
metadata?: any;
|
|
3759
3791
|
}
|
|
3760
3792
|
|
|
@@ -3925,7 +3957,9 @@ export declare function ScheduleDashboard({ triggerButtonClassName, variant, }:
|
|
|
3925
3957
|
|
|
3926
3958
|
export declare type SchemaItem = DropdownItem;
|
|
3927
3959
|
|
|
3928
|
-
export declare type SelectedEntities =
|
|
3960
|
+
export declare type SelectedEntities = SelectedEntity[];
|
|
3961
|
+
|
|
3962
|
+
export declare type SelectedEntity = DatabaseEntityReference | DataModelEntityReference | DatasetEntityReference | FileEntityReference;
|
|
3929
3963
|
|
|
3930
3964
|
export declare type SelectionState = Record<Level, string | null>;
|
|
3931
3965
|
|
package/dist/types/shared.d.ts
CHANGED
|
@@ -594,12 +594,12 @@ declare interface DataModelEntityReference extends DatabaseEntityReference {
|
|
|
594
594
|
declare interface DatasetEntityReference extends DatabaseEntityReference {
|
|
595
595
|
type: 'dataset';
|
|
596
596
|
datasetType: 'physical' | 'virtual';
|
|
597
|
-
datamodelId
|
|
598
|
-
sql
|
|
597
|
+
datamodelId?: string | null;
|
|
598
|
+
sql?: string | null;
|
|
599
599
|
id: string;
|
|
600
600
|
domainId: string;
|
|
601
601
|
label: string;
|
|
602
|
-
description
|
|
602
|
+
description?: string;
|
|
603
603
|
}
|
|
604
604
|
|
|
605
605
|
declare interface DataSource {
|
|
@@ -1024,6 +1024,7 @@ declare interface Field {
|
|
|
1024
1024
|
* If not provided, should be auto-generated from label or name.
|
|
1025
1025
|
*/
|
|
1026
1026
|
alias?: string;
|
|
1027
|
+
sourceField?: string;
|
|
1027
1028
|
qualifiedFieldName: string;
|
|
1028
1029
|
dataType: string;
|
|
1029
1030
|
description?: string;
|
|
@@ -1335,6 +1336,9 @@ declare interface Join {
|
|
|
1335
1336
|
joinType: 'INNER' | 'LEFT' | 'RIGHT' | 'FULL';
|
|
1336
1337
|
joinKeyGroups: JoinKeyGroup[];
|
|
1337
1338
|
sequence: number;
|
|
1339
|
+
relationshipId?: string;
|
|
1340
|
+
relationshipName?: string;
|
|
1341
|
+
relationshipCardinality?: 'one_to_one' | 'one_to_many' | 'many_to_one' | 'many_to_many';
|
|
1338
1342
|
}
|
|
1339
1343
|
|
|
1340
1344
|
declare interface JoinKey {
|
|
@@ -1413,6 +1417,12 @@ declare interface MetricField extends Field {
|
|
|
1413
1417
|
* Both are generated together from the same dialog inputs, preventing drift.
|
|
1414
1418
|
*/
|
|
1415
1419
|
calculatedFormula?: CalculatedFieldFormula;
|
|
1420
|
+
/**
|
|
1421
|
+
* Indicates the metric expression must be evaluated after row-level filtering,
|
|
1422
|
+
* either because it contains an aggregate function directly or depends on a
|
|
1423
|
+
* pre-aggregated metric input.
|
|
1424
|
+
*/
|
|
1425
|
+
isPreAggregated?: boolean;
|
|
1416
1426
|
comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'start_vs_end' | 'target';
|
|
1417
1427
|
comparisonDisplay?: 'column' | 'inline' | 'hover';
|
|
1418
1428
|
targetValue?: number;
|
|
@@ -1450,7 +1460,7 @@ declare type OldFilterValue = string | number | null | (string | number)[] | Ran
|
|
|
1450
1460
|
|
|
1451
1461
|
declare type Operation = '=' | '>' | '<' | '>=' | '<=' | '!=' | 'in' | 'not in' | 'like' | 'not like' | 'between' | 'not between' | 'is null' | 'is not null';
|
|
1452
1462
|
|
|
1453
|
-
declare type Operator = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'startsWith' | 'endsWith' | 'in' | 'not in' | 'between' | 'not between' | 'isNull' | 'isNotNull';
|
|
1463
|
+
declare type Operator = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'startsWith' | 'endsWith' | 'like' | 'not like' | 'in' | 'not in' | 'between' | 'not between' | 'isNull' | 'isNotNull';
|
|
1454
1464
|
|
|
1455
1465
|
declare type OptionsMap = {
|
|
1456
1466
|
number: NumberOptions;
|
|
@@ -1522,7 +1532,9 @@ declare type RelativeDateFilter = {
|
|
|
1522
1532
|
to: number;
|
|
1523
1533
|
};
|
|
1524
1534
|
|
|
1525
|
-
declare type SelectedEntities =
|
|
1535
|
+
declare type SelectedEntities = SelectedEntity[];
|
|
1536
|
+
|
|
1537
|
+
declare type SelectedEntity = DatabaseEntityReference | DataModelEntityReference | DatasetEntityReference | FileEntityReference;
|
|
1526
1538
|
|
|
1527
1539
|
/**
|
|
1528
1540
|
* Stable serializer for dashboard dirty checks.
|
|
@@ -830,12 +830,12 @@ declare interface DataModelEntityReference extends DatabaseEntityReference {
|
|
|
830
830
|
declare interface DatasetEntityReference extends DatabaseEntityReference {
|
|
831
831
|
type: 'dataset';
|
|
832
832
|
datasetType: 'physical' | 'virtual';
|
|
833
|
-
datamodelId
|
|
834
|
-
sql
|
|
833
|
+
datamodelId?: string | null;
|
|
834
|
+
sql?: string | null;
|
|
835
835
|
id: string;
|
|
836
836
|
domainId: string;
|
|
837
837
|
label: string;
|
|
838
|
-
description
|
|
838
|
+
description?: string;
|
|
839
839
|
}
|
|
840
840
|
|
|
841
841
|
declare interface DataSource {
|
|
@@ -1284,6 +1284,7 @@ declare interface Field {
|
|
|
1284
1284
|
* If not provided, should be auto-generated from label or name.
|
|
1285
1285
|
*/
|
|
1286
1286
|
alias?: string;
|
|
1287
|
+
sourceField?: string;
|
|
1287
1288
|
qualifiedFieldName: string;
|
|
1288
1289
|
dataType: string;
|
|
1289
1290
|
description?: string;
|
|
@@ -1617,6 +1618,9 @@ declare interface Join {
|
|
|
1617
1618
|
joinType: 'INNER' | 'LEFT' | 'RIGHT' | 'FULL';
|
|
1618
1619
|
joinKeyGroups: JoinKeyGroup[];
|
|
1619
1620
|
sequence: number;
|
|
1621
|
+
relationshipId?: string;
|
|
1622
|
+
relationshipName?: string;
|
|
1623
|
+
relationshipCardinality?: 'one_to_one' | 'one_to_many' | 'many_to_one' | 'many_to_many';
|
|
1620
1624
|
}
|
|
1621
1625
|
|
|
1622
1626
|
declare interface JoinKey {
|
|
@@ -1707,6 +1711,12 @@ declare interface MetricField extends Field {
|
|
|
1707
1711
|
* Both are generated together from the same dialog inputs, preventing drift.
|
|
1708
1712
|
*/
|
|
1709
1713
|
calculatedFormula?: CalculatedFieldFormula;
|
|
1714
|
+
/**
|
|
1715
|
+
* Indicates the metric expression must be evaluated after row-level filtering,
|
|
1716
|
+
* either because it contains an aggregate function directly or depends on a
|
|
1717
|
+
* pre-aggregated metric input.
|
|
1718
|
+
*/
|
|
1719
|
+
isPreAggregated?: boolean;
|
|
1710
1720
|
comparisonType?: 'none' | 'previous_period' | 'same_period_last_year' | 'start_vs_end' | 'target';
|
|
1711
1721
|
comparisonDisplay?: 'column' | 'inline' | 'hover';
|
|
1712
1722
|
targetValue?: number;
|
|
@@ -1736,7 +1746,7 @@ declare type OldFilterValue = string | number | null | (string | number)[] | Ran
|
|
|
1736
1746
|
|
|
1737
1747
|
declare type Operation = '=' | '>' | '<' | '>=' | '<=' | '!=' | 'in' | 'not in' | 'like' | 'not like' | 'between' | 'not between' | 'is null' | 'is not null';
|
|
1738
1748
|
|
|
1739
|
-
declare type Operator = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'startsWith' | 'endsWith' | 'in' | 'not in' | 'between' | 'not between' | 'isNull' | 'isNotNull';
|
|
1749
|
+
declare type Operator = '=' | '!=' | '>' | '>=' | '<' | '<=' | 'contains' | 'startsWith' | 'endsWith' | 'like' | 'not like' | 'in' | 'not in' | 'between' | 'not between' | 'isNull' | 'isNotNull';
|
|
1740
1750
|
|
|
1741
1751
|
declare type OptionsMap = {
|
|
1742
1752
|
number: NumberOptions;
|
|
@@ -1881,7 +1891,9 @@ declare type ResolvedPrimaryDateField = {
|
|
|
1881
1891
|
supportedGranularities?: TimeGranularity[];
|
|
1882
1892
|
} | null;
|
|
1883
1893
|
|
|
1884
|
-
declare type SelectedEntities =
|
|
1894
|
+
declare type SelectedEntities = SelectedEntity[];
|
|
1895
|
+
|
|
1896
|
+
declare type SelectedEntity = DatabaseEntityReference | DataModelEntityReference | DatasetEntityReference | FileEntityReference;
|
|
1885
1897
|
|
|
1886
1898
|
export declare type SelectionState = Record<Level, string | null>;
|
|
1887
1899
|
|