react-semaphor 0.1.338 → 0.1.339
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 +58 -57
- package/dist/brand-studio/index.cjs +1 -1
- package/dist/brand-studio/index.js +3 -3
- package/dist/chunks/{braces-Q86XHDaD.js → braces-Ccvdip75.js} +1 -1
- package/dist/chunks/{braces-BLa_lORs.js → braces-DDHkbW1c.js} +1 -1
- package/dist/chunks/{calendar-preferences-dialog-Cocogo9H.js → calendar-preferences-dialog-2IbYrrP1.js} +3 -3
- package/dist/chunks/{calendar-preferences-dialog-Bm7ji3k9.js → calendar-preferences-dialog-8-KE5sVX.js} +1 -1
- package/dist/chunks/catalog-field-grounding-DoEBOXQd.js +100 -0
- package/dist/chunks/catalog-field-grounding-Du6mKDcF.js +1 -0
- package/dist/chunks/{chevrons-up-down-BBTZ5pAY.js → chevrons-up-down-B9fTSds9.js} +1 -1
- package/dist/chunks/{chevrons-up-down-CYuWasy_.js → chevrons-up-down-pV0i9ptS.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-BtqtLx1-.js → dashboard-briefing-launcher-CcqDPVke.js} +1 -1
- package/dist/chunks/{dashboard-briefing-launcher-DF4CoaRn.js → dashboard-briefing-launcher-DtxDRAiu.js} +4 -4
- package/dist/chunks/{dashboard-controls-B5U-VUxs.js → dashboard-controls-Bi98DhYD.js} +6 -6
- package/dist/chunks/{dashboard-controls-0VMAeMoa.js → dashboard-controls-By7aKmDj.js} +1 -1
- package/dist/chunks/{dashboard-json-CqbLOfnr.js → dashboard-json-BOyLuhS6.js} +1 -1
- package/dist/chunks/{dashboard-json-Hmc0Ri5z.js → dashboard-json-CGxIsTEP.js} +2 -2
- package/dist/chunks/{edit-dashboard-visual-D4VVu-QQ.js → edit-dashboard-visual-Ba8LenNc.js} +6 -6
- package/dist/chunks/{edit-dashboard-visual-C0EDM0QB.js → edit-dashboard-visual-BuXlHmJH.js} +1 -1
- package/dist/chunks/{index-DE0vIuYG.js → index-DT9osgRT.js} +2 -2
- package/dist/chunks/{index-DzyUhzV3.js → index-DVPvpd8u.js} +5 -5
- package/dist/chunks/{palette-DalASD28.js → palette-BMXS-AcI.js} +1 -1
- package/dist/chunks/{palette-B9AbDw0n.js → palette-DKecBucs.js} +1 -1
- package/dist/chunks/{resource-management-panel-C4YydU9I.js → resource-management-panel-98Hy6SYB.js} +3 -3
- package/dist/chunks/{resource-management-panel-P9iNqBM1.js → resource-management-panel-ByR-FD3h.js} +1 -1
- package/dist/chunks/{switch-BAYfpAEb.js → switch-CP7SmEIZ.js} +1 -1
- package/dist/chunks/{switch-CyRoZr5T.js → switch-DYRgERrC.js} +1 -1
- package/dist/chunks/{use-create-flow-overlay-state-P1LMwQ89.js → use-create-flow-overlay-state-D5uvjbwY.js} +3 -3
- package/dist/chunks/{use-create-flow-overlay-state-CbhjxI3W.js → use-create-flow-overlay-state-uNxArZdj.js} +1 -1
- package/dist/chunks/{use-visual-utils-lB-3Zk0b.js → use-visual-utils-BLh9mKic.js} +2 -2
- package/dist/chunks/{use-visual-utils-CV6_-y4p.js → use-visual-utils-CpaqIHoc.js} +1 -1
- package/dist/chunks/{validators-BOqiGymD.js → validators-CPEQojnV.js} +325 -250
- package/dist/chunks/validators-CfP-49k9.js +1 -0
- package/dist/dashboard/index.cjs +1 -1
- package/dist/dashboard/index.js +1 -1
- package/dist/dashboard-authoring/index.cjs +3 -3
- package/dist/dashboard-authoring/index.js +424 -561
- package/dist/data-app-builder/index.cjs +1 -1
- package/dist/data-app-builder/index.js +1 -1
- package/dist/data-app-sdk/index.cjs +1 -1
- package/dist/data-app-sdk/index.js +313 -308
- 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 +74 -48
- package/dist/types/dashboard-authoring.d.ts +26 -52
- package/dist/types/dashboard.d.ts +1 -2
- package/dist/types/data-app-builder.d.ts +23 -13
- package/dist/types/data-app-sdk.d.ts +33 -46
- package/dist/types/main.d.ts +29 -50
- package/dist/types/shared.d.ts +1 -2
- package/dist/types/surfboard.d.ts +1 -2
- package/dist/types/types.d.ts +1 -2
- package/package.json +1 -1
- package/dist/chunks/catalog-field-grounding-DmT7aGUA.js +0 -191
- package/dist/chunks/catalog-field-grounding-VgVzDd25.js +0 -1
- package/dist/chunks/validators-BtFXY3S_.js +0 -2
|
@@ -480,19 +480,32 @@ export declare type GeneratedRevision = {
|
|
|
480
480
|
|
|
481
481
|
export declare type ReasoningEffort = 'low' | 'medium' | 'high';
|
|
482
482
|
|
|
483
|
-
declare type SemaphorAnalyticsFilter =
|
|
483
|
+
declare type SemaphorAnalyticsFilter = SemaphorAnalyticsValueFilter | SemaphorAnalyticsNullFilter;
|
|
484
|
+
|
|
485
|
+
declare type SemaphorAnalyticsFilterBase = {
|
|
484
486
|
id?: string;
|
|
485
487
|
field: SemaphorFieldRef;
|
|
486
|
-
operator?: SemaphorAnalyticsFilterOperator;
|
|
487
|
-
value?: unknown;
|
|
488
|
-
values?: unknown[];
|
|
489
488
|
};
|
|
490
489
|
|
|
491
490
|
declare type SemaphorAnalyticsFilterOperator = SemaphorInputOperator | 'not_contains' | 'is_null' | 'is_not_null';
|
|
492
491
|
|
|
493
492
|
declare type SemaphorAnalyticsIntent = SemaphorMetricIntent | SemaphorRecordsIntent | SemaphorInputOptionsIntent | SemaphorSqlIntent;
|
|
494
493
|
|
|
495
|
-
declare type
|
|
494
|
+
declare type SemaphorAnalyticsNullFilter = SemaphorAnalyticsFilterBase & {
|
|
495
|
+
operator: SemaphorAnalyticsNullFilterOperator;
|
|
496
|
+
values?: never;
|
|
497
|
+
};
|
|
498
|
+
|
|
499
|
+
declare type SemaphorAnalyticsNullFilterOperator = 'is_null' | 'is_not_null';
|
|
500
|
+
|
|
501
|
+
declare type SemaphorAnalyticsValueFilter = SemaphorAnalyticsFilterBase & {
|
|
502
|
+
operator?: SemaphorAnalyticsValueFilterOperator;
|
|
503
|
+
values: unknown[];
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
declare type SemaphorAnalyticsValueFilterOperator = Exclude<SemaphorAnalyticsFilterOperator, 'is_null' | 'is_not_null'>;
|
|
507
|
+
|
|
508
|
+
declare type SemaphorDialect = 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
|
|
496
509
|
|
|
497
510
|
declare type SemaphorFieldRef = {
|
|
498
511
|
name: string;
|
|
@@ -532,9 +545,8 @@ declare type SemaphorMetricIntent = {
|
|
|
532
545
|
version?: SemaphorProtocolVersion;
|
|
533
546
|
id?: string;
|
|
534
547
|
source: SemaphorSourceRef;
|
|
535
|
-
metrics:
|
|
536
|
-
primaryMetric?:
|
|
537
|
-
metricRefs?: SemaphorFieldRef[];
|
|
548
|
+
metrics: SemaphorFieldRef[];
|
|
549
|
+
primaryMetric?: SemaphorFieldRef;
|
|
538
550
|
label?: string;
|
|
539
551
|
dateField?: SemaphorFieldRef;
|
|
540
552
|
timeGrain?: SemaphorTimeGrain;
|
|
@@ -559,12 +571,11 @@ declare type SemaphorRecordsIntent = {
|
|
|
559
571
|
id?: string;
|
|
560
572
|
label?: string;
|
|
561
573
|
fields: SemaphorFieldRef[];
|
|
562
|
-
measures?: string[];
|
|
563
574
|
dateField?: SemaphorFieldRef;
|
|
564
575
|
timeGrain?: SemaphorTimeGrain;
|
|
565
576
|
limit?: number;
|
|
566
577
|
orderBy?: {
|
|
567
|
-
field:
|
|
578
|
+
field: SemaphorFieldRef;
|
|
568
579
|
direction: 'asc' | 'desc';
|
|
569
580
|
};
|
|
570
581
|
inputs?: SemaphorInputBinding[];
|
|
@@ -589,7 +600,6 @@ declare type SemaphorSourceRef = {
|
|
|
589
600
|
} | {
|
|
590
601
|
kind: 'sql';
|
|
591
602
|
connectionId: string;
|
|
592
|
-
sql: string;
|
|
593
603
|
dialect?: SemaphorDialect;
|
|
594
604
|
label?: string;
|
|
595
605
|
};
|
|
@@ -600,9 +610,9 @@ declare type SemaphorSqlIntent = {
|
|
|
600
610
|
id?: string;
|
|
601
611
|
label?: string;
|
|
602
612
|
source: Extract<SemaphorSourceRef, {
|
|
603
|
-
kind: 'sql'
|
|
613
|
+
kind: 'sql';
|
|
604
614
|
}>;
|
|
605
|
-
sql
|
|
615
|
+
sql: string;
|
|
606
616
|
parameters?: Record<string, unknown>;
|
|
607
617
|
pythonCode?: string;
|
|
608
618
|
limit?: number;
|
|
@@ -16,18 +16,31 @@ export declare function normalizeSemaphorInputOptions(options?: Array<{
|
|
|
16
16
|
|
|
17
17
|
export declare function readWindowRuntime(): SemaphorDataAppWindowRuntime | undefined;
|
|
18
18
|
|
|
19
|
-
declare type SemaphorAnalyticsFilter =
|
|
19
|
+
declare type SemaphorAnalyticsFilter = SemaphorAnalyticsValueFilter | SemaphorAnalyticsNullFilter;
|
|
20
|
+
|
|
21
|
+
declare type SemaphorAnalyticsFilterBase = {
|
|
20
22
|
id?: string;
|
|
21
23
|
field: SemaphorFieldRef;
|
|
22
|
-
operator?: SemaphorAnalyticsFilterOperator;
|
|
23
|
-
value?: unknown;
|
|
24
|
-
values?: unknown[];
|
|
25
24
|
};
|
|
26
25
|
|
|
27
26
|
declare type SemaphorAnalyticsFilterOperator = SemaphorInputOperator | 'not_contains' | 'is_null' | 'is_not_null';
|
|
28
27
|
|
|
29
28
|
declare type SemaphorAnalyticsIntent = SemaphorMetricIntent | SemaphorRecordsIntent | SemaphorInputOptionsIntent | SemaphorSqlIntent;
|
|
30
29
|
|
|
30
|
+
declare type SemaphorAnalyticsNullFilter = SemaphorAnalyticsFilterBase & {
|
|
31
|
+
operator: SemaphorAnalyticsNullFilterOperator;
|
|
32
|
+
values?: never;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
declare type SemaphorAnalyticsNullFilterOperator = 'is_null' | 'is_not_null';
|
|
36
|
+
|
|
37
|
+
declare type SemaphorAnalyticsValueFilter = SemaphorAnalyticsFilterBase & {
|
|
38
|
+
operator?: SemaphorAnalyticsValueFilterOperator;
|
|
39
|
+
values: unknown[];
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
declare type SemaphorAnalyticsValueFilterOperator = Exclude<SemaphorAnalyticsFilterOperator, 'is_null' | 'is_not_null'>;
|
|
43
|
+
|
|
31
44
|
export declare const SemaphorDataAppContext: Context<SemaphorDataAppRuntime>;
|
|
32
45
|
|
|
33
46
|
export declare type SemaphorDataAppControlInputSpec<TValue extends SemaphorDataAppInputValue = SemaphorDataAppInputValue> = SemaphorDataAppInputBase<TValue> & {
|
|
@@ -51,14 +64,13 @@ export declare type SemaphorDataAppExecutorContext = {
|
|
|
51
64
|
activeInputs?: SemaphorDataAppInputSnapshot[];
|
|
52
65
|
};
|
|
53
66
|
|
|
54
|
-
export declare type SemaphorDataAppFieldSpec =
|
|
67
|
+
export declare type SemaphorDataAppFieldSpec = SemaphorFieldRef;
|
|
55
68
|
|
|
56
69
|
export declare type SemaphorDataAppFilterInputSpec<TValue extends SemaphorDataAppInputValue = SemaphorDataAppInputValue> = SemaphorDataAppInputBase<TValue> & {
|
|
57
70
|
kind: 'filter';
|
|
58
71
|
field: SemaphorDataAppFieldSpec;
|
|
59
72
|
operator?: SemaphorInputOperator;
|
|
60
73
|
multi?: boolean;
|
|
61
|
-
source?: SemaphorSourceRef;
|
|
62
74
|
};
|
|
63
75
|
|
|
64
76
|
declare type SemaphorDataAppInputBase<TValue extends SemaphorDataAppInputValue> = {
|
|
@@ -76,7 +88,6 @@ export declare type SemaphorDataAppInputHandle<TValue extends SemaphorDataAppInp
|
|
|
76
88
|
label?: string;
|
|
77
89
|
field?: SemaphorFieldRef;
|
|
78
90
|
operator?: SemaphorInputOperator;
|
|
79
|
-
source?: SemaphorSourceRef;
|
|
80
91
|
controlRole?: SemaphorDataAppControlRole;
|
|
81
92
|
value: TValue | undefined;
|
|
82
93
|
options: SemaphorDataAppInputOption[];
|
|
@@ -119,7 +130,6 @@ export declare type SemaphorDataAppInputSnapshot<TValue extends SemaphorDataAppI
|
|
|
119
130
|
value?: TValue;
|
|
120
131
|
isActive: boolean;
|
|
121
132
|
operator?: SemaphorInputOperator;
|
|
122
|
-
source?: SemaphorSourceRef;
|
|
123
133
|
controlRole?: SemaphorDataAppControlRole;
|
|
124
134
|
};
|
|
125
135
|
|
|
@@ -127,7 +137,7 @@ export declare type SemaphorDataAppInputSpec<TValue extends SemaphorDataAppInput
|
|
|
127
137
|
|
|
128
138
|
export declare type SemaphorDataAppInputValue = SemaphorDataAppScalar | SemaphorDataAppScalar[];
|
|
129
139
|
|
|
130
|
-
export declare type SemaphorDataAppMetricComparison =
|
|
140
|
+
export declare type SemaphorDataAppMetricComparison = {
|
|
131
141
|
kind: 'previous_period' | 'previous_year' | 'target';
|
|
132
142
|
targetValue?: number;
|
|
133
143
|
};
|
|
@@ -149,8 +159,8 @@ export declare type SemaphorDataAppMetricResult = SemaphorDataAppQueryState & Se
|
|
|
149
159
|
export declare type SemaphorDataAppMetricSpec = SemaphorDataAppSourceSpec & {
|
|
150
160
|
id?: string;
|
|
151
161
|
label?: string;
|
|
152
|
-
metrics: SemaphorDataAppNonEmptyArray<
|
|
153
|
-
primaryMetric?:
|
|
162
|
+
metrics: SemaphorDataAppNonEmptyArray<SemaphorDataAppFieldSpec>;
|
|
163
|
+
primaryMetric?: SemaphorDataAppFieldSpec;
|
|
154
164
|
dateField?: SemaphorDataAppFieldSpec;
|
|
155
165
|
timeGrain?: SemaphorTimeGrain;
|
|
156
166
|
dimensions?: SemaphorDataAppFieldSpec[];
|
|
@@ -199,8 +209,12 @@ export declare type SemaphorDataAppRecordsData<TRecord extends Record<string, un
|
|
|
199
209
|
rowCount?: number;
|
|
200
210
|
};
|
|
201
211
|
|
|
212
|
+
export declare type SemaphorDataAppRecordsFieldSpec = SemaphorFieldRef & {
|
|
213
|
+
role: NonNullable<SemaphorFieldRef['role']>;
|
|
214
|
+
};
|
|
215
|
+
|
|
202
216
|
export declare type SemaphorDataAppRecordsOrderBy = {
|
|
203
|
-
field:
|
|
217
|
+
field: SemaphorDataAppFieldSpec;
|
|
204
218
|
direction: 'asc' | 'desc';
|
|
205
219
|
};
|
|
206
220
|
|
|
@@ -210,17 +224,7 @@ export declare type SemaphorDataAppRecordsResult<TRecord extends Record<string,
|
|
|
210
224
|
};
|
|
211
225
|
|
|
212
226
|
declare type SemaphorDataAppRecordsSelectorSpec = {
|
|
213
|
-
fields: SemaphorDataAppNonEmptyArray<
|
|
214
|
-
dimensions?: SemaphorDataAppFieldSpec[];
|
|
215
|
-
measures?: string[];
|
|
216
|
-
} | {
|
|
217
|
-
fields?: SemaphorDataAppFieldSpec[];
|
|
218
|
-
dimensions: SemaphorDataAppNonEmptyArray<SemaphorDataAppFieldSpec>;
|
|
219
|
-
measures?: string[];
|
|
220
|
-
} | {
|
|
221
|
-
fields?: SemaphorDataAppFieldSpec[];
|
|
222
|
-
dimensions?: SemaphorDataAppFieldSpec[];
|
|
223
|
-
measures: SemaphorDataAppNonEmptyArray<string>;
|
|
227
|
+
fields: SemaphorDataAppNonEmptyArray<SemaphorDataAppRecordsFieldSpec>;
|
|
224
228
|
};
|
|
225
229
|
|
|
226
230
|
export declare type SemaphorDataAppRecordsSpec = SemaphorDataAppRecordsBaseSpec & SemaphorDataAppRecordsSelectorSpec;
|
|
@@ -233,19 +237,6 @@ export declare type SemaphorDataAppScalar = string | number | boolean | null;
|
|
|
233
237
|
|
|
234
238
|
export declare type SemaphorDataAppSourceSpec = {
|
|
235
239
|
source: SemaphorSourceRef;
|
|
236
|
-
domainId?: never;
|
|
237
|
-
dataset?: never;
|
|
238
|
-
datasetName?: never;
|
|
239
|
-
datasetId?: never;
|
|
240
|
-
connectionId?: never;
|
|
241
|
-
} | {
|
|
242
|
-
source?: never;
|
|
243
|
-
domainId: string;
|
|
244
|
-
dataset?: string;
|
|
245
|
-
datasetName?: string;
|
|
246
|
-
datasetId?: string;
|
|
247
|
-
connectionId?: string;
|
|
248
|
-
sourceLabel?: string;
|
|
249
240
|
};
|
|
250
241
|
|
|
251
242
|
declare type SemaphorDataAppWindowRuntime = {
|
|
@@ -256,7 +247,7 @@ declare type SemaphorDataAppWindowRuntime = {
|
|
|
256
247
|
};
|
|
257
248
|
};
|
|
258
249
|
|
|
259
|
-
declare type SemaphorDialect = '
|
|
250
|
+
declare type SemaphorDialect = 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
|
|
260
251
|
|
|
261
252
|
declare type SemaphorFieldRef = {
|
|
262
253
|
name: string;
|
|
@@ -296,9 +287,8 @@ declare type SemaphorMetricIntent = {
|
|
|
296
287
|
version?: SemaphorProtocolVersion;
|
|
297
288
|
id?: string;
|
|
298
289
|
source: SemaphorSourceRef;
|
|
299
|
-
metrics:
|
|
300
|
-
primaryMetric?:
|
|
301
|
-
metricRefs?: SemaphorFieldRef[];
|
|
290
|
+
metrics: SemaphorFieldRef[];
|
|
291
|
+
primaryMetric?: SemaphorFieldRef;
|
|
302
292
|
label?: string;
|
|
303
293
|
dateField?: SemaphorFieldRef;
|
|
304
294
|
timeGrain?: SemaphorTimeGrain;
|
|
@@ -323,12 +313,11 @@ declare type SemaphorRecordsIntent = {
|
|
|
323
313
|
id?: string;
|
|
324
314
|
label?: string;
|
|
325
315
|
fields: SemaphorFieldRef[];
|
|
326
|
-
measures?: string[];
|
|
327
316
|
dateField?: SemaphorFieldRef;
|
|
328
317
|
timeGrain?: SemaphorTimeGrain;
|
|
329
318
|
limit?: number;
|
|
330
319
|
orderBy?: {
|
|
331
|
-
field:
|
|
320
|
+
field: SemaphorFieldRef;
|
|
332
321
|
direction: 'asc' | 'desc';
|
|
333
322
|
};
|
|
334
323
|
inputs?: SemaphorInputBinding[];
|
|
@@ -353,7 +342,6 @@ declare type SemaphorSourceRef = {
|
|
|
353
342
|
} | {
|
|
354
343
|
kind: 'sql';
|
|
355
344
|
connectionId: string;
|
|
356
|
-
sql: string;
|
|
357
345
|
dialect?: SemaphorDialect;
|
|
358
346
|
label?: string;
|
|
359
347
|
};
|
|
@@ -364,9 +352,9 @@ declare type SemaphorSqlIntent = {
|
|
|
364
352
|
id?: string;
|
|
365
353
|
label?: string;
|
|
366
354
|
source: Extract<SemaphorSourceRef, {
|
|
367
|
-
kind: 'sql'
|
|
355
|
+
kind: 'sql';
|
|
368
356
|
}>;
|
|
369
|
-
sql
|
|
357
|
+
sql: string;
|
|
370
358
|
parameters?: Record<string, unknown>;
|
|
371
359
|
pythonCode?: string;
|
|
372
360
|
limit?: number;
|
|
@@ -400,7 +388,6 @@ export declare function toSemaphorInputSpec<TValue extends SemaphorDataAppInputV
|
|
|
400
388
|
label?: string;
|
|
401
389
|
field?: SemaphorFieldRef;
|
|
402
390
|
operator?: SemaphorInputOperator;
|
|
403
|
-
source?: SemaphorSourceRef;
|
|
404
391
|
};
|
|
405
392
|
|
|
406
393
|
export declare function toSemaphorMetricIntent(spec: SemaphorDataAppMetricSpec): SemaphorMetricIntent;
|
package/dist/types/main.d.ts
CHANGED
|
@@ -1730,21 +1730,9 @@ declare type DashboardAIContext = AIContext & {
|
|
|
1730
1730
|
|
|
1731
1731
|
declare type DashboardAIContextMode = 'auto' | 'fixed';
|
|
1732
1732
|
|
|
1733
|
-
declare type DashboardAuthoringDatasetRef = {
|
|
1734
|
-
kind: 'semantic';
|
|
1735
|
-
|
|
1736
|
-
datasetName: string;
|
|
1737
|
-
datasetId?: string;
|
|
1738
|
-
label?: string;
|
|
1739
|
-
connectionId?: string;
|
|
1740
|
-
} | {
|
|
1741
|
-
kind: 'physical';
|
|
1742
|
-
connectionId: string;
|
|
1743
|
-
databaseName?: string;
|
|
1744
|
-
schemaName?: string;
|
|
1745
|
-
tableName: string;
|
|
1746
|
-
label?: string;
|
|
1747
|
-
};
|
|
1733
|
+
declare type DashboardAuthoringDatasetRef = Extract<SemaphorSourceRef, {
|
|
1734
|
+
kind: 'semantic' | 'physical';
|
|
1735
|
+
}>;
|
|
1748
1736
|
|
|
1749
1737
|
export declare type DashboardAuthoringSource = DashboardAuthoringDatasetRef & {
|
|
1750
1738
|
domainName?: string;
|
|
@@ -1779,24 +1767,6 @@ export declare type DashboardBriefingLauncherProps = {
|
|
|
1779
1767
|
client?: Partial<DashboardBriefingLauncherClient>;
|
|
1780
1768
|
};
|
|
1781
1769
|
|
|
1782
|
-
declare type DashboardCardQueryFieldRef = {
|
|
1783
|
-
name: string;
|
|
1784
|
-
source?: DashboardAuthoringDatasetRef;
|
|
1785
|
-
};
|
|
1786
|
-
|
|
1787
|
-
declare type DashboardCardQueryIntent = {
|
|
1788
|
-
metrics?: string[];
|
|
1789
|
-
primaryMetric?: string;
|
|
1790
|
-
metricRefs?: DashboardCardQueryFieldRef[];
|
|
1791
|
-
dateField?: string;
|
|
1792
|
-
dateFieldRef?: DashboardCardQueryFieldRef;
|
|
1793
|
-
timeGrain?: 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
1794
|
-
dimensions?: string[];
|
|
1795
|
-
dimensionRefs?: DashboardCardQueryFieldRef[];
|
|
1796
|
-
filters?: SemaphorAnalyticsFilter[];
|
|
1797
|
-
limit?: number;
|
|
1798
|
-
};
|
|
1799
|
-
|
|
1800
1770
|
declare type DashboardCardSizeIntent = 'kpi' | 'chart' | 'table' | 'text';
|
|
1801
1771
|
|
|
1802
1772
|
declare type DashboardControlsModelOptions = {
|
|
@@ -2039,7 +2009,7 @@ declare type DashboardPlan = {
|
|
|
2039
2009
|
id: string;
|
|
2040
2010
|
title: string;
|
|
2041
2011
|
description?: string;
|
|
2042
|
-
datasets:
|
|
2012
|
+
datasets: SemaphorSourceRef[];
|
|
2043
2013
|
sheets: DashboardPlanSheet[];
|
|
2044
2014
|
filterInputs?: DashboardPlanFilterInput[];
|
|
2045
2015
|
calculatedFields?: DashboardPlanCalculatedField[];
|
|
@@ -2067,7 +2037,6 @@ declare type DashboardPlanCard = {
|
|
|
2067
2037
|
role: DashboardCardSizeIntent;
|
|
2068
2038
|
priority: number;
|
|
2069
2039
|
section?: string;
|
|
2070
|
-
query?: DashboardCardQueryIntent;
|
|
2071
2040
|
analyticsIntent?: SemaphorAnalyticsIntent;
|
|
2072
2041
|
text?: string;
|
|
2073
2042
|
};
|
|
@@ -2083,7 +2052,7 @@ declare type DashboardPlanFilterInput = {
|
|
|
2083
2052
|
|
|
2084
2053
|
declare type DashboardPlanRequest = {
|
|
2085
2054
|
prompt: string;
|
|
2086
|
-
dataset:
|
|
2055
|
+
dataset: SemaphorSourceRef;
|
|
2087
2056
|
} | {
|
|
2088
2057
|
prompt: string;
|
|
2089
2058
|
domainId: string;
|
|
@@ -2305,7 +2274,7 @@ declare type DashboardSuggestion = {
|
|
|
2305
2274
|
declare type DashboardSuggestionPreviewKind = 'kpi' | 'line' | 'bar' | 'donut' | 'table';
|
|
2306
2275
|
|
|
2307
2276
|
declare type DashboardSuggestionRequest = {
|
|
2308
|
-
dataset:
|
|
2277
|
+
dataset: SemaphorSourceRef;
|
|
2309
2278
|
instruction?: string;
|
|
2310
2279
|
} | {
|
|
2311
2280
|
domainId: string;
|
|
@@ -4424,24 +4393,37 @@ declare type SemanticExecutionPayload = {
|
|
|
4424
4393
|
}>;
|
|
4425
4394
|
};
|
|
4426
4395
|
|
|
4427
|
-
declare type SemaphorAnalyticsFilter =
|
|
4396
|
+
declare type SemaphorAnalyticsFilter = SemaphorAnalyticsValueFilter | SemaphorAnalyticsNullFilter;
|
|
4397
|
+
|
|
4398
|
+
declare type SemaphorAnalyticsFilterBase = {
|
|
4428
4399
|
id?: string;
|
|
4429
4400
|
field: SemaphorFieldRef;
|
|
4430
|
-
operator?: SemaphorAnalyticsFilterOperator;
|
|
4431
|
-
value?: unknown;
|
|
4432
|
-
values?: unknown[];
|
|
4433
4401
|
};
|
|
4434
4402
|
|
|
4435
4403
|
declare type SemaphorAnalyticsFilterOperator = SemaphorInputOperator | 'not_contains' | 'is_null' | 'is_not_null';
|
|
4436
4404
|
|
|
4437
4405
|
declare type SemaphorAnalyticsIntent = SemaphorMetricIntent | SemaphorRecordsIntent | SemaphorInputOptionsIntent | SemaphorSqlIntent;
|
|
4438
4406
|
|
|
4407
|
+
declare type SemaphorAnalyticsNullFilter = SemaphorAnalyticsFilterBase & {
|
|
4408
|
+
operator: SemaphorAnalyticsNullFilterOperator;
|
|
4409
|
+
values?: never;
|
|
4410
|
+
};
|
|
4411
|
+
|
|
4412
|
+
declare type SemaphorAnalyticsNullFilterOperator = 'is_null' | 'is_not_null';
|
|
4413
|
+
|
|
4414
|
+
declare type SemaphorAnalyticsValueFilter = SemaphorAnalyticsFilterBase & {
|
|
4415
|
+
operator?: SemaphorAnalyticsValueFilterOperator;
|
|
4416
|
+
values: unknown[];
|
|
4417
|
+
};
|
|
4418
|
+
|
|
4419
|
+
declare type SemaphorAnalyticsValueFilterOperator = Exclude<SemaphorAnalyticsFilterOperator, 'is_null' | 'is_not_null'>;
|
|
4420
|
+
|
|
4439
4421
|
export declare const SemaphorContextProvider: ({ children, dashboardProps, }: {
|
|
4440
4422
|
children: React.ReactNode;
|
|
4441
4423
|
dashboardProps: DashboardProps;
|
|
4442
4424
|
}) => JSX.Element;
|
|
4443
4425
|
|
|
4444
|
-
declare type SemaphorDialect = '
|
|
4426
|
+
declare type SemaphorDialect = 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
|
|
4445
4427
|
|
|
4446
4428
|
declare type SemaphorFieldRef = {
|
|
4447
4429
|
name: string;
|
|
@@ -4481,9 +4463,8 @@ declare type SemaphorMetricIntent = {
|
|
|
4481
4463
|
version?: SemaphorProtocolVersion;
|
|
4482
4464
|
id?: string;
|
|
4483
4465
|
source: SemaphorSourceRef;
|
|
4484
|
-
metrics:
|
|
4485
|
-
primaryMetric?:
|
|
4486
|
-
metricRefs?: SemaphorFieldRef[];
|
|
4466
|
+
metrics: SemaphorFieldRef[];
|
|
4467
|
+
primaryMetric?: SemaphorFieldRef;
|
|
4487
4468
|
label?: string;
|
|
4488
4469
|
dateField?: SemaphorFieldRef;
|
|
4489
4470
|
timeGrain?: SemaphorTimeGrain;
|
|
@@ -4514,12 +4495,11 @@ declare type SemaphorRecordsIntent = {
|
|
|
4514
4495
|
id?: string;
|
|
4515
4496
|
label?: string;
|
|
4516
4497
|
fields: SemaphorFieldRef[];
|
|
4517
|
-
measures?: string[];
|
|
4518
4498
|
dateField?: SemaphorFieldRef;
|
|
4519
4499
|
timeGrain?: SemaphorTimeGrain;
|
|
4520
4500
|
limit?: number;
|
|
4521
4501
|
orderBy?: {
|
|
4522
|
-
field:
|
|
4502
|
+
field: SemaphorFieldRef;
|
|
4523
4503
|
direction: 'asc' | 'desc';
|
|
4524
4504
|
};
|
|
4525
4505
|
inputs?: SemaphorInputBinding[];
|
|
@@ -4544,7 +4524,6 @@ declare type SemaphorSourceRef = {
|
|
|
4544
4524
|
} | {
|
|
4545
4525
|
kind: 'sql';
|
|
4546
4526
|
connectionId: string;
|
|
4547
|
-
sql: string;
|
|
4548
4527
|
dialect?: SemaphorDialect;
|
|
4549
4528
|
label?: string;
|
|
4550
4529
|
};
|
|
@@ -4555,9 +4534,9 @@ declare type SemaphorSqlIntent = {
|
|
|
4555
4534
|
id?: string;
|
|
4556
4535
|
label?: string;
|
|
4557
4536
|
source: Extract<SemaphorSourceRef, {
|
|
4558
|
-
kind: 'sql'
|
|
4537
|
+
kind: 'sql';
|
|
4559
4538
|
}>;
|
|
4560
|
-
sql
|
|
4539
|
+
sql: string;
|
|
4561
4540
|
parameters?: Record<string, unknown>;
|
|
4562
4541
|
pythonCode?: string;
|
|
4563
4542
|
limit?: number;
|
package/dist/types/shared.d.ts
CHANGED
|
@@ -1555,7 +1555,7 @@ declare type SelectedEntities = SelectedEntity[];
|
|
|
1555
1555
|
|
|
1556
1556
|
declare type SelectedEntity = DatabaseEntityReference | DataModelEntityReference | DatasetEntityReference | FileEntityReference;
|
|
1557
1557
|
|
|
1558
|
-
declare type SemaphorDialect = '
|
|
1558
|
+
declare type SemaphorDialect = 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
|
|
1559
1559
|
|
|
1560
1560
|
declare type SemaphorSourceRef = {
|
|
1561
1561
|
kind: 'semantic';
|
|
@@ -1576,7 +1576,6 @@ declare type SemaphorSourceRef = {
|
|
|
1576
1576
|
} | {
|
|
1577
1577
|
kind: 'sql';
|
|
1578
1578
|
connectionId: string;
|
|
1579
|
-
sql: string;
|
|
1580
1579
|
dialect?: SemaphorDialect;
|
|
1581
1580
|
label?: string;
|
|
1582
1581
|
};
|
|
@@ -1915,7 +1915,7 @@ declare type SemanticExecutionPayload = {
|
|
|
1915
1915
|
}>;
|
|
1916
1916
|
};
|
|
1917
1917
|
|
|
1918
|
-
declare type SemaphorDialect = '
|
|
1918
|
+
declare type SemaphorDialect = 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
|
|
1919
1919
|
|
|
1920
1920
|
declare type SemaphorSourceRef = {
|
|
1921
1921
|
kind: 'semantic';
|
|
@@ -1936,7 +1936,6 @@ declare type SemaphorSourceRef = {
|
|
|
1936
1936
|
} | {
|
|
1937
1937
|
kind: 'sql';
|
|
1938
1938
|
connectionId: string;
|
|
1939
|
-
sql: string;
|
|
1940
1939
|
dialect?: SemaphorDialect;
|
|
1941
1940
|
label?: string;
|
|
1942
1941
|
};
|
package/dist/types/types.d.ts
CHANGED
|
@@ -2675,7 +2675,7 @@ declare type SemanticExecutionPayload = {
|
|
|
2675
2675
|
}>;
|
|
2676
2676
|
};
|
|
2677
2677
|
|
|
2678
|
-
declare type SemaphorDialect = '
|
|
2678
|
+
declare type SemaphorDialect = 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
|
|
2679
2679
|
|
|
2680
2680
|
declare type SemaphorSourceRef = {
|
|
2681
2681
|
kind: 'semantic';
|
|
@@ -2696,7 +2696,6 @@ declare type SemaphorSourceRef = {
|
|
|
2696
2696
|
} | {
|
|
2697
2697
|
kind: 'sql';
|
|
2698
2698
|
connectionId: string;
|
|
2699
|
-
sql: string;
|
|
2700
2699
|
dialect?: SemaphorDialect;
|
|
2701
2700
|
label?: string;
|
|
2702
2701
|
};
|