react-semaphor 0.1.420 → 0.1.422

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.
Files changed (58) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +28 -27
  3. package/dist/brand-studio/index.cjs +1 -1
  4. package/dist/brand-studio/index.js +2 -2
  5. package/dist/chunks/analyze-result-contract-D7pjjYPy.js +2069 -0
  6. package/dist/chunks/analyze-result-contract-DpDcImgk.js +1 -0
  7. package/dist/chunks/{calendar-preferences-dialog-f0Z7Kf-U.js → calendar-preferences-dialog-C2fBRNZh.js} +1 -1
  8. package/dist/chunks/{calendar-preferences-dialog-DIfAbE_y.js → calendar-preferences-dialog-Cbavs2EK.js} +3 -3
  9. package/dist/chunks/{dashboard-briefing-launcher-anh-Jy5v.js → dashboard-briefing-launcher-C0_ZbBK3.js} +4 -4
  10. package/dist/chunks/{dashboard-briefing-launcher-C3tNkGFG.js → dashboard-briefing-launcher-CGfEFUnX.js} +1 -1
  11. package/dist/chunks/{dashboard-controls-DQxlOxzy.js → dashboard-controls-BUuS-BGl.js} +1 -1
  12. package/dist/chunks/{dashboard-controls-8dCQaPaq.js → dashboard-controls-ae5t32xV.js} +5 -5
  13. package/dist/chunks/{dashboard-json-B309EInF.js → dashboard-json-DTL_kYhz.js} +1 -1
  14. package/dist/chunks/{dashboard-json-i7Ae9KGD.js → dashboard-json-Db3rkY_a.js} +3 -3
  15. package/dist/chunks/{edit-dashboard-visual-z3IqzYnj.js → edit-dashboard-visual-CW7mv_si.js} +7030 -6963
  16. package/dist/chunks/{edit-dashboard-visual-4HycwBHR.js → edit-dashboard-visual-Ciqdu58a.js} +38 -38
  17. package/dist/chunks/{index-yxKWKFdr.js → index-8y8XX7sX.js} +121 -121
  18. package/dist/chunks/{index-B6DLEXRX.js → index-OD6mLD7U.js} +257 -256
  19. package/dist/chunks/{switch-COWQU8aK.js → switch-CWcWwwDJ.js} +1 -1
  20. package/dist/chunks/{switch-D6Ygf3wA.js → switch-DRNqX0v0.js} +1 -1
  21. package/dist/chunks/{update-policy-BzT2k4n6.js → update-policy-BCJc0oI5.js} +211 -187
  22. package/dist/chunks/update-policy-C1pmhLz9.js +3 -0
  23. package/dist/chunks/{use-create-flow-overlay-state-DENfd7sW.js → use-create-flow-overlay-state-C0Uhmlpd.js} +1 -1
  24. package/dist/chunks/{use-create-flow-overlay-state-CX0D-6HM.js → use-create-flow-overlay-state-CkMmXhI-.js} +3 -3
  25. package/dist/chunks/validators-DMlVbd1p.js +1 -0
  26. package/dist/chunks/{validators-Cxr9qbrR.js → validators-PXkij33j.js} +93 -93
  27. package/dist/dashboard/index.cjs +1 -1
  28. package/dist/dashboard/index.js +1 -1
  29. package/dist/dashboard-authoring/index.cjs +1 -1
  30. package/dist/dashboard-authoring/index.js +14 -14
  31. package/dist/data-app-builder/index.cjs +1 -1
  32. package/dist/data-app-builder/index.js +2 -2
  33. package/dist/data-app-codegen/index.cjs +1 -1
  34. package/dist/data-app-codegen/index.js +2 -2
  35. package/dist/data-app-codegen-node/index.cjs +188 -251
  36. package/dist/data-app-codegen-node/index.js +631 -673
  37. package/dist/data-app-sdk/index.cjs +2 -2
  38. package/dist/data-app-sdk/index.js +678 -638
  39. package/dist/data-app-sdk-adapters/index.cjs +1 -1
  40. package/dist/data-app-sdk-adapters/index.js +51 -51
  41. package/dist/data-app-sdk-validation/index.cjs +1 -1
  42. package/dist/data-app-sdk-validation/index.js +2 -2
  43. package/dist/index.cjs +1 -1
  44. package/dist/index.js +7 -7
  45. package/dist/style.css +1 -1
  46. package/dist/surfboard/index.cjs +1 -1
  47. package/dist/surfboard/index.js +2 -2
  48. package/dist/types/analytics-protocol.d.ts +12 -9
  49. package/dist/types/dashboard-assistant.d.ts +0 -6
  50. package/dist/types/data-app-codegen-node.d.ts +12 -2
  51. package/dist/types/data-app-codegen.d.ts +12 -2
  52. package/dist/types/data-app-sdk-validation.d.ts +0 -6
  53. package/dist/types/data-app-sdk.d.ts +17 -7
  54. package/package.json +1 -1
  55. package/dist/chunks/analyze-result-contract-DdhEt99q.js +0 -2004
  56. package/dist/chunks/analyze-result-contract-DwRzl7yJ.js +0 -1
  57. package/dist/chunks/update-policy-VloD-0YM.js +0 -3
  58. package/dist/chunks/validators-BMQo93Y0.js +0 -1
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-yxKWKFdr.js"),e=require("../chunks/common-types-C73-Ud1-.js"),a=require("../chunks/calendar-preferences-dialog-f0Z7Kf-U.js");exports.Surfboard=r.DashboardPlus;exports.CONTROL_CARD_DEFAULT_VALUE=e.CONTROL_CARD_DEFAULT_VALUE;exports.EMPTY_SELECTION=e.EMPTY_SELECTION;exports.CalendarPreferencesDialog=a.CalendarPreferencesDialog;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../chunks/index-8y8XX7sX.js"),e=require("../chunks/common-types-C73-Ud1-.js"),a=require("../chunks/calendar-preferences-dialog-C2fBRNZh.js");exports.Surfboard=r.DashboardPlus;exports.CONTROL_CARD_DEFAULT_VALUE=e.CONTROL_CARD_DEFAULT_VALUE;exports.EMPTY_SELECTION=e.EMPTY_SELECTION;exports.CalendarPreferencesDialog=a.CalendarPreferencesDialog;
@@ -1,6 +1,6 @@
1
- import { a as e } from "../chunks/index-B6DLEXRX.js";
1
+ import { a as e } from "../chunks/index-OD6mLD7U.js";
2
2
  import { C, E } from "../chunks/common-types-4bjoIgvm.js";
3
- import { C as s } from "../chunks/calendar-preferences-dialog-DIfAbE_y.js";
3
+ import { C as s } from "../chunks/calendar-preferences-dialog-Cbavs2EK.js";
4
4
  export {
5
5
  C as CONTROL_CARD_DEFAULT_VALUE,
6
6
  s as CalendarPreferencesDialog,
@@ -2576,6 +2576,15 @@ export declare type SemaphorDataAppImplementationChecklist = {
2576
2576
  browserSmokeChecks: string[];
2577
2577
  };
2578
2578
 
2579
+ export declare type SemaphorDataAppRawIdentifierFilterDiagnostic = {
2580
+ kind: 'raw_identifier_filter_options';
2581
+ inputId: string;
2582
+ inputLabel: string;
2583
+ optionSource: SemaphorDataAppRelationshipCandidateSource;
2584
+ optionField: SemaphorDataAppRelationshipCandidateField;
2585
+ missingEvidence: Array<'display_field' | 'relationship_display_path'>;
2586
+ };
2587
+
2579
2588
  export declare type SemaphorDataAppRelationshipCandidate = {
2580
2589
  source: SemaphorDataAppRelationshipCandidateSource;
2581
2590
  sourceFields: SemaphorDataAppRelationshipCandidateField[];
@@ -2610,8 +2619,9 @@ export declare type SemaphorDataAppRequiredInputOption = {
2610
2619
  export declare type SemaphorDataAppUnsupportedInsight = {
2611
2620
  title: string;
2612
2621
  requestedQuestion: string;
2613
- reason: 'missing_measure' | 'missing_dimension' | 'missing_date' | 'missing_relationship' | 'missing_semantic_role' | 'missing_current_app_state' | 'unsupported_change_intent' | 'ambiguous_field_grounding' | 'bounded_intent_unavailable' | 'invalid_bounded_intent_output' | 'latest_snapshot_selector_not_modeled' | 'unsupported_grain' | 'requires_sql_escape_hatch' | 'unsupported_sdk_capability';
2622
+ reason: 'missing_measure' | 'missing_dimension' | 'missing_date' | 'missing_relationship' | 'missing_semantic_role' | 'missing_current_app_state' | 'raw_identifier_filter_options' | 'unsupported_change_intent' | 'ambiguous_field_grounding' | 'bounded_intent_unavailable' | 'invalid_bounded_intent_output' | 'latest_snapshot_selector_not_modeled' | 'unsupported_grain' | 'requires_sql_escape_hatch' | 'unsupported_sdk_capability';
2614
2623
  suggestedModelingFix: string;
2624
+ diagnostic?: SemaphorDataAppRawIdentifierFilterDiagnostic;
2615
2625
  relationshipCandidate?: SemaphorDataAppRelationshipCandidate;
2616
2626
  nextRepairAction?: {
2617
2627
  tool: 'semaphor_propose_semantic_model_change';
@@ -2656,9 +2666,6 @@ export declare type SemaphorDerivedFieldResultRole = 'measure' | 'dimension' | '
2656
2666
  export declare type SemaphorDialect = 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
2657
2667
 
2658
2668
  export declare type SemaphorExecutionFieldRef = SemaphorFieldRef & {
2659
- semanticAggregate?: SemaphorAggregateFunction;
2660
- effectiveAggregate?: SemaphorAggregateFunction;
2661
- aggregateSource?: SemaphorMetricAggregateSource;
2662
2669
  derivedField?: SemaphorDerivedFieldDefinition;
2663
2670
  };
2664
2671
 
@@ -3011,7 +3018,7 @@ export declare type SemaphorMatrixValueField = {
3011
3018
  totalBehavior?: SemaphorMatrixTotalCalculation;
3012
3019
  };
3013
3020
 
3014
- export declare type SemaphorMetricAggregateSource = 'semantic_model' | 'caller_override' | 'default_sum';
3021
+ export declare function semaphorMetricAggregate(field: Pick<SemaphorFieldRef, 'aggregate'>): string;
3015
3022
 
3016
3023
  export declare type SemaphorMetricAnalysis = {
3017
3024
  kind: 'period_change';
@@ -3052,7 +3059,6 @@ export declare function semaphorMetricMeasureBindingKey(field: SemaphorFieldRef)
3052
3059
 
3053
3060
  export declare type SemaphorMetricResult = SemaphorAnalyticsResultBase & {
3054
3061
  kind: 'metric';
3055
- value: number | string | null;
3056
3062
  primaryValue: number | string | null;
3057
3063
  missingMeasures?: string[];
3058
3064
  comparison?: {
@@ -3065,7 +3071,6 @@ export declare type SemaphorMetricResult = SemaphorAnalyticsResultBase & {
3065
3071
 
3066
3072
  export declare const semaphorMetricResultSchema: z.ZodObject<{
3067
3073
  kind: z.ZodLiteral<"metric">;
3068
- value: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>;
3069
3074
  primaryValue: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>;
3070
3075
  measures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>>;
3071
3076
  missingMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3116,7 +3121,6 @@ export declare const semaphorMetricResultSchema: z.ZodObject<{
3116
3121
  }, z.ZodTypeAny, "passthrough">>>;
3117
3122
  }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
3118
3123
  kind: z.ZodLiteral<"metric">;
3119
- value: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>;
3120
3124
  primaryValue: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>;
3121
3125
  measures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>>;
3122
3126
  missingMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -3167,7 +3171,6 @@ export declare const semaphorMetricResultSchema: z.ZodObject<{
3167
3171
  }, z.ZodTypeAny, "passthrough">>>;
3168
3172
  }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
3169
3173
  kind: z.ZodLiteral<"metric">;
3170
- value: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>;
3171
3174
  primaryValue: z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>;
3172
3175
  measures: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodNumber, z.ZodString, z.ZodNull]>>>;
3173
3176
  missingMeasures: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
@@ -1070,9 +1070,6 @@ declare type SemaphorDerivedFieldResultRole = 'measure' | 'dimension' | 'date' |
1070
1070
  declare type SemaphorDialect = 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
1071
1071
 
1072
1072
  declare type SemaphorExecutionFieldRef = SemaphorFieldRef & {
1073
- semanticAggregate?: SemaphorAggregateFunction;
1074
- effectiveAggregate?: SemaphorAggregateFunction;
1075
- aggregateSource?: SemaphorMetricAggregateSource;
1076
1073
  derivedField?: SemaphorDerivedFieldDefinition;
1077
1074
  };
1078
1075
 
@@ -1297,8 +1294,6 @@ declare type SemaphorMatrixValueField = {
1297
1294
  totalBehavior?: SemaphorMatrixTotalCalculation;
1298
1295
  };
1299
1296
 
1300
- declare type SemaphorMetricAggregateSource = 'semantic_model' | 'caller_override' | 'default_sum';
1301
-
1302
1297
  declare type SemaphorMetricAnalysis = {
1303
1298
  kind: 'period_change';
1304
1299
  orderBy?: 'absolute_change' | 'positive_change' | 'negative_change' | 'period';
@@ -1336,7 +1331,6 @@ declare type SemaphorMetricIntent = {
1336
1331
 
1337
1332
  declare type SemaphorMetricResult = SemaphorAnalyticsResultBase & {
1338
1333
  kind: 'metric';
1339
- value: number | string | null;
1340
1334
  primaryValue: number | string | null;
1341
1335
  missingMeasures?: string[];
1342
1336
  comparison?: {
@@ -75,7 +75,7 @@ export declare function isSemaphorDataAppCodegenSummary(value: unknown): value i
75
75
 
76
76
  declare type JsonRecord = Record<string, unknown>;
77
77
 
78
- export declare const REQUIRED_GENERATED_CONTRACT_FILES: readonly ["sources.ts", "fields.ts", "inputs.ts", "queries.ts", "bindings.ts", "accessors.ts", "metadata.ts", "index.ts", "contract.manifest.json"];
78
+ export declare const REQUIRED_GENERATED_CONTRACT_FILES: readonly ["sources.ts", "fields.ts", "inputs.ts", "queries.ts", "bindings.ts", "accessors.ts", "metadata.ts", "index.ts", "USAGE.md", "contract.manifest.json"];
79
79
 
80
80
  export declare const SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_SCHEMA_VERSION: "semaphor-data-app-codegen-summary/v1";
81
81
 
@@ -631,6 +631,15 @@ declare type SemaphorDataAppImplementationChecklist = {
631
631
  browserSmokeChecks: string[];
632
632
  };
633
633
 
634
+ declare type SemaphorDataAppRawIdentifierFilterDiagnostic = {
635
+ kind: 'raw_identifier_filter_options';
636
+ inputId: string;
637
+ inputLabel: string;
638
+ optionSource: SemaphorDataAppRelationshipCandidateSource;
639
+ optionField: SemaphorDataAppRelationshipCandidateField;
640
+ missingEvidence: Array<'display_field' | 'relationship_display_path'>;
641
+ };
642
+
634
643
  declare type SemaphorDataAppRelationshipCandidate = {
635
644
  source: SemaphorDataAppRelationshipCandidateSource;
636
645
  sourceFields: SemaphorDataAppRelationshipCandidateField[];
@@ -665,8 +674,9 @@ declare type SemaphorDataAppRequiredInputOption = {
665
674
  declare type SemaphorDataAppUnsupportedInsight = {
666
675
  title: string;
667
676
  requestedQuestion: string;
668
- reason: 'missing_measure' | 'missing_dimension' | 'missing_date' | 'missing_relationship' | 'missing_semantic_role' | 'missing_current_app_state' | 'unsupported_change_intent' | 'ambiguous_field_grounding' | 'bounded_intent_unavailable' | 'invalid_bounded_intent_output' | 'latest_snapshot_selector_not_modeled' | 'unsupported_grain' | 'requires_sql_escape_hatch' | 'unsupported_sdk_capability';
677
+ reason: 'missing_measure' | 'missing_dimension' | 'missing_date' | 'missing_relationship' | 'missing_semantic_role' | 'missing_current_app_state' | 'raw_identifier_filter_options' | 'unsupported_change_intent' | 'ambiguous_field_grounding' | 'bounded_intent_unavailable' | 'invalid_bounded_intent_output' | 'latest_snapshot_selector_not_modeled' | 'unsupported_grain' | 'requires_sql_escape_hatch' | 'unsupported_sdk_capability';
669
678
  suggestedModelingFix: string;
679
+ diagnostic?: SemaphorDataAppRawIdentifierFilterDiagnostic;
670
680
  relationshipCandidate?: SemaphorDataAppRelationshipCandidate;
671
681
  nextRepairAction?: {
672
682
  tool: 'semaphor_propose_semantic_model_change';
@@ -71,7 +71,7 @@ export declare function isSemaphorDataAppCodegenSummary(value: unknown): value i
71
71
 
72
72
  declare type JsonRecord = Record<string, unknown>;
73
73
 
74
- export declare const REQUIRED_GENERATED_CONTRACT_FILES: readonly ["sources.ts", "fields.ts", "inputs.ts", "queries.ts", "bindings.ts", "accessors.ts", "metadata.ts", "index.ts", "contract.manifest.json"];
74
+ export declare const REQUIRED_GENERATED_CONTRACT_FILES: readonly ["sources.ts", "fields.ts", "inputs.ts", "queries.ts", "bindings.ts", "accessors.ts", "metadata.ts", "index.ts", "USAGE.md", "contract.manifest.json"];
75
75
 
76
76
  export declare const SEMAPHOR_DATA_APP_CODEGEN_SUMMARY_SCHEMA_VERSION: "semaphor-data-app-codegen-summary/v1";
77
77
 
@@ -621,6 +621,15 @@ declare type SemaphorDataAppImplementationChecklist = {
621
621
  browserSmokeChecks: string[];
622
622
  };
623
623
 
624
+ declare type SemaphorDataAppRawIdentifierFilterDiagnostic = {
625
+ kind: 'raw_identifier_filter_options';
626
+ inputId: string;
627
+ inputLabel: string;
628
+ optionSource: SemaphorDataAppRelationshipCandidateSource;
629
+ optionField: SemaphorDataAppRelationshipCandidateField;
630
+ missingEvidence: Array<'display_field' | 'relationship_display_path'>;
631
+ };
632
+
624
633
  declare type SemaphorDataAppRelationshipCandidate = {
625
634
  source: SemaphorDataAppRelationshipCandidateSource;
626
635
  sourceFields: SemaphorDataAppRelationshipCandidateField[];
@@ -655,8 +664,9 @@ declare type SemaphorDataAppRequiredInputOption = {
655
664
  declare type SemaphorDataAppUnsupportedInsight = {
656
665
  title: string;
657
666
  requestedQuestion: string;
658
- reason: 'missing_measure' | 'missing_dimension' | 'missing_date' | 'missing_relationship' | 'missing_semantic_role' | 'missing_current_app_state' | 'unsupported_change_intent' | 'ambiguous_field_grounding' | 'bounded_intent_unavailable' | 'invalid_bounded_intent_output' | 'latest_snapshot_selector_not_modeled' | 'unsupported_grain' | 'requires_sql_escape_hatch' | 'unsupported_sdk_capability';
667
+ reason: 'missing_measure' | 'missing_dimension' | 'missing_date' | 'missing_relationship' | 'missing_semantic_role' | 'missing_current_app_state' | 'raw_identifier_filter_options' | 'unsupported_change_intent' | 'ambiguous_field_grounding' | 'bounded_intent_unavailable' | 'invalid_bounded_intent_output' | 'latest_snapshot_selector_not_modeled' | 'unsupported_grain' | 'requires_sql_escape_hatch' | 'unsupported_sdk_capability';
659
668
  suggestedModelingFix: string;
669
+ diagnostic?: SemaphorDataAppRawIdentifierFilterDiagnostic;
660
670
  relationshipCandidate?: SemaphorDataAppRelationshipCandidate;
661
671
  nextRepairAction?: {
662
672
  tool: 'semaphor_propose_semantic_model_change';
@@ -576,9 +576,6 @@ declare type SemaphorDerivedFieldResultRole = 'measure' | 'dimension' | 'date' |
576
576
  declare type SemaphorDialect = 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
577
577
 
578
578
  declare type SemaphorExecutionFieldRef = SemaphorFieldRef & {
579
- semanticAggregate?: SemaphorAggregateFunction;
580
- effectiveAggregate?: SemaphorAggregateFunction;
581
- aggregateSource?: SemaphorMetricAggregateSource;
582
579
  derivedField?: SemaphorDerivedFieldDefinition;
583
580
  };
584
581
 
@@ -895,8 +892,6 @@ declare type SemaphorMatrixValueField = {
895
892
 
896
893
  declare type SemaphorMatrixValueFieldInput = SemaphorQueryField | SemaphorMatrixValueField;
897
894
 
898
- declare type SemaphorMetricAggregateSource = 'semantic_model' | 'caller_override' | 'default_sum';
899
-
900
895
  declare type SemaphorMetricAnalysis = {
901
896
  kind: 'period_change';
902
897
  orderBy?: 'absolute_change' | 'positive_change' | 'negative_change' | 'period';
@@ -959,7 +954,6 @@ declare type SemaphorMetricQuerySpec = SemaphorQuerySourceSpec & SemaphorAppDeri
959
954
 
960
955
  declare type SemaphorMetricResult = SemaphorAnalyticsResultBase & {
961
956
  kind: 'metric';
962
- value: number | string | null;
963
957
  primaryValue: number | string | null;
964
958
  missingMeasures?: string[];
965
959
  comparison?: {
@@ -361,7 +361,7 @@ declare type MatrixWarning = {
361
361
 
362
362
  export declare const semaphor: {
363
363
  source: {
364
- semantic(spec: SemaphorSemanticSourceBuilderSpec): SemaphorSourceRef;
364
+ semantic(spec: SemaphorSemanticSourceBuilderSpec): SemaphorSemanticSourceRef;
365
365
  sql(spec: Omit<SemaphorSqlSourceBuilderSpec, "kind">): SemaphorSqlSourceBuilderSpec;
366
366
  };
367
367
  field: {
@@ -750,6 +750,20 @@ export declare type SemaphorDataAppQueryError = Error & {
750
750
  validationIssues?: SemaphorAnalyticsValidationIssue[];
751
751
  };
752
752
 
753
+ export declare type SemaphorDataAppResultPreview = {
754
+ title: string;
755
+ summary: string;
756
+ columns: SemaphorDataAppResultPreviewColumn[];
757
+ rows: Array<Record<string, unknown>>;
758
+ truncatedRows: boolean;
759
+ truncatedColumns: boolean;
760
+ };
761
+
762
+ export declare type SemaphorDataAppResultPreviewColumn = {
763
+ key: string;
764
+ label: string;
765
+ };
766
+
753
767
  export declare type SemaphorDataAppSourceHint = {
754
768
  file?: string;
755
769
  line?: number;
@@ -792,6 +806,7 @@ export declare type SemaphorDataAppTrace = {
792
806
  populatedMetricKeys?: string[];
793
807
  missingMeasures?: string[];
794
808
  };
809
+ resultPreview?: SemaphorDataAppResultPreview;
795
810
  executionResult?: SemaphorAnalyticsExecutionResult;
796
811
  errorMessage?: string;
797
812
  };
@@ -899,9 +914,6 @@ export declare type SemaphorDevtoolsProps = {
899
914
  declare type SemaphorDialect = 'postgres' | 'mysql' | 'mssql' | 'snowflake' | 'clickhouse' | 'bigquery' | 'redshift' | 'duckdb' | 'sqlite' | 'unknown';
900
915
 
901
916
  declare type SemaphorExecutionFieldRef = SemaphorFieldRef & {
902
- semanticAggregate?: SemaphorAggregateFunction;
903
- effectiveAggregate?: SemaphorAggregateFunction;
904
- aggregateSource?: SemaphorMetricAggregateSource;
905
917
  derivedField?: SemaphorDerivedFieldDefinition;
906
918
  };
907
919
 
@@ -1252,7 +1264,7 @@ export declare type SemaphorMatrixValueField = {
1252
1264
 
1253
1265
  export declare type SemaphorMatrixValueFieldInput = SemaphorQueryField | SemaphorMatrixValueField;
1254
1266
 
1255
- declare type SemaphorMetricAggregateSource = 'semantic_model' | 'caller_override' | 'default_sum';
1267
+ export declare function semaphorMetricAggregate(field: Pick<SemaphorFieldRef, 'aggregate'>): string;
1256
1268
 
1257
1269
  declare type SemaphorMetricAnalysis = {
1258
1270
  kind: 'period_change';
@@ -1297,7 +1309,6 @@ declare type SemaphorMetricIntent = {
1297
1309
  export declare function semaphorMetricMeasureBindingKey(field: SemaphorFieldRef): string;
1298
1310
 
1299
1311
  export declare type SemaphorMetricPayload = {
1300
- value: number | string | null;
1301
1312
  primaryValue: number | string | null;
1302
1313
  measures?: Record<string, number | string | null>;
1303
1314
  measureBindings?: Record<string, string>;
@@ -1337,7 +1348,6 @@ export declare type SemaphorMetricQuerySpec = SemaphorQuerySourceSpec & Semaphor
1337
1348
 
1338
1349
  declare type SemaphorMetricResult = SemaphorAnalyticsResultBase & {
1339
1350
  kind: 'metric';
1340
- value: number | string | null;
1341
1351
  primaryValue: number | string | null;
1342
1352
  missingMeasures?: string[];
1343
1353
  comparison?: {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.420",
8
+ "version": "0.1.422",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",