react-semaphor 0.1.420 → 0.1.421

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 (57) 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-B5Eeu7vD.js +1 -0
  6. package/dist/chunks/analyze-result-contract-sWcmvBOA.js +2070 -0
  7. package/dist/chunks/{calendar-preferences-dialog-f0Z7Kf-U.js → calendar-preferences-dialog-CscmhyuZ.js} +1 -1
  8. package/dist/chunks/{calendar-preferences-dialog-DIfAbE_y.js → calendar-preferences-dialog-cN3_2C-u.js} +3 -3
  9. package/dist/chunks/{dashboard-briefing-launcher-anh-Jy5v.js → dashboard-briefing-launcher-BYTBNetR.js} +4 -4
  10. package/dist/chunks/{dashboard-briefing-launcher-C3tNkGFG.js → dashboard-briefing-launcher-DmZkzIC3.js} +1 -1
  11. package/dist/chunks/{dashboard-controls-DQxlOxzy.js → dashboard-controls-9DFeKIP4.js} +1 -1
  12. package/dist/chunks/{dashboard-controls-8dCQaPaq.js → dashboard-controls-PhzuaTBj.js} +5 -5
  13. package/dist/chunks/{dashboard-json-i7Ae9KGD.js → dashboard-json-Cxhw2TZc.js} +3 -3
  14. package/dist/chunks/{dashboard-json-B309EInF.js → dashboard-json-DyRHI3mL.js} +1 -1
  15. package/dist/chunks/{edit-dashboard-visual-4HycwBHR.js → edit-dashboard-visual-3_jiBXsu.js} +1 -1
  16. package/dist/chunks/{edit-dashboard-visual-z3IqzYnj.js → edit-dashboard-visual-BigSJ3-x.js} +4 -4
  17. package/dist/chunks/{index-yxKWKFdr.js → index-BKDQw0aK.js} +2 -2
  18. package/dist/chunks/{index-B6DLEXRX.js → index-CH2ZzQo4.js} +5 -5
  19. package/dist/chunks/{switch-D6Ygf3wA.js → switch-CiOjVyVI.js} +1 -1
  20. package/dist/chunks/{switch-COWQU8aK.js → switch-TbCsyhv9.js} +1 -1
  21. package/dist/chunks/{update-policy-BzT2k4n6.js → update-policy-2MZ-Vf7v.js} +211 -187
  22. package/dist/chunks/update-policy-qpyAkOyO.js +3 -0
  23. package/dist/chunks/{use-create-flow-overlay-state-CX0D-6HM.js → use-create-flow-overlay-state-BzcJWNzh.js} +3 -3
  24. package/dist/chunks/{use-create-flow-overlay-state-DENfd7sW.js → use-create-flow-overlay-state-DUQmgb9H.js} +1 -1
  25. package/dist/chunks/{validators-Cxr9qbrR.js → validators-D0pfj3jJ.js} +93 -93
  26. package/dist/chunks/validators-Dj1Y-46V.js +1 -0
  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 +251 -139
  36. package/dist/data-app-codegen-node/index.js +806 -657
  37. package/dist/data-app-sdk/index.cjs +2 -2
  38. package/dist/data-app-sdk/index.js +730 -686
  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/surfboard/index.cjs +1 -1
  46. package/dist/surfboard/index.js +2 -2
  47. package/dist/types/analytics-protocol.d.ts +12 -5
  48. package/dist/types/dashboard-assistant.d.ts +0 -5
  49. package/dist/types/data-app-codegen-node.d.ts +12 -2
  50. package/dist/types/data-app-codegen.d.ts +12 -2
  51. package/dist/types/data-app-sdk-validation.d.ts +0 -5
  52. package/dist/types/data-app-sdk.d.ts +17 -5
  53. package/package.json +1 -1
  54. package/dist/chunks/analyze-result-contract-DdhEt99q.js +0 -2004
  55. package/dist/chunks/analyze-result-contract-DwRzl7yJ.js +0 -1
  56. package/dist/chunks/update-policy-VloD-0YM.js +0 -3
  57. package/dist/chunks/validators-BMQo93Y0.js +0 -1
@@ -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';
@@ -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';
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.421",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",