react-semaphor 0.1.398 → 0.1.400

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 (59) hide show
  1. package/dist/analytics-protocol/index.cjs +1 -1
  2. package/dist/analytics-protocol/index.js +2 -2
  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-BUgK3759.js +1833 -0
  6. package/dist/chunks/analyze-result-contract-S8u7CcPL.js +1 -0
  7. package/dist/chunks/{calendar-preferences-dialog-DwLeBLy2.js → calendar-preferences-dialog-Ci3rHHgA.js} +1 -1
  8. package/dist/chunks/{calendar-preferences-dialog-49fcEPXS.js → calendar-preferences-dialog-i3-jBIYS.js} +3 -3
  9. package/dist/chunks/{dashboard-briefing-launcher-cgPKz1yX.js → dashboard-briefing-launcher-BpwjeJsQ.js} +4 -4
  10. package/dist/chunks/{dashboard-briefing-launcher-CgkSKkZR.js → dashboard-briefing-launcher-DiEpMS9E.js} +1 -1
  11. package/dist/chunks/{dashboard-controls-D12ZSUP_.js → dashboard-controls-BaUUrvSI.js} +1 -1
  12. package/dist/chunks/{dashboard-controls-VMFm3OP4.js → dashboard-controls-Bkjpgr3d.js} +5 -5
  13. package/dist/chunks/{dashboard-json-CvK0oI24.js → dashboard-json-CxNyExRm.js} +1 -1
  14. package/dist/chunks/{dashboard-json-C-GG5yC7.js → dashboard-json-DvULhhN2.js} +3 -3
  15. package/dist/chunks/{edit-dashboard-visual-B5KB7dx4.js → edit-dashboard-visual-DBrsgEtL.js} +4 -4
  16. package/dist/chunks/{edit-dashboard-visual-ql99faTz.js → edit-dashboard-visual-DJRPiKdY.js} +1 -1
  17. package/dist/chunks/{index-DXCBPLDu.js → index-BepF6hoa.js} +2 -2
  18. package/dist/chunks/{index-CQmKDEbe.js → index-Drz04wqE.js} +5 -5
  19. package/dist/chunks/{switch-B79Hn4Qh.js → switch-D2oOmorN.js} +1 -1
  20. package/dist/chunks/{switch-BXQAlSuW.js → switch-qUw8u-gU.js} +1 -1
  21. package/dist/chunks/update-policy-BmtOqvbf.js +3 -0
  22. package/dist/chunks/update-policy-KImUg4Od.js +831 -0
  23. package/dist/chunks/{use-create-flow-overlay-state-Bw5LRkf9.js → use-create-flow-overlay-state-CFJIHt5D.js} +3 -3
  24. package/dist/chunks/{use-create-flow-overlay-state-7MFN3PWX.js → use-create-flow-overlay-state-DrkYiyQz.js} +1 -1
  25. package/dist/chunks/{validators-4EGCWWga.js → validators-B1Mgdr3T.js} +279 -242
  26. package/dist/chunks/{validators-CPtkrola.js → validators-DFOX0tYY.js} +1 -1
  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 +2 -2
  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 -0
  34. package/dist/data-app-codegen/index.js +22 -0
  35. package/dist/data-app-codegen-node/index.cjs +462 -0
  36. package/dist/data-app-codegen-node/index.js +1424 -0
  37. package/dist/data-app-sdk/index.cjs +2 -2
  38. package/dist/data-app-sdk/index.js +3 -2
  39. package/dist/data-app-sdk-adapters/index.cjs +1 -1
  40. package/dist/data-app-sdk-adapters/index.js +20 -12
  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 +101 -2
  48. package/dist/types/dashboard-assistant.d.ts +14 -0
  49. package/dist/types/dashboard-authoring.d.ts +6 -0
  50. package/dist/types/data-app-builder.d.ts +6 -0
  51. package/dist/types/data-app-codegen-node.d.ts +1165 -0
  52. package/dist/types/data-app-codegen.d.ts +1137 -0
  53. package/dist/types/data-app-sdk-adapters.d.ts +7 -0
  54. package/dist/types/data-app-sdk-validation.d.ts +15 -0
  55. package/dist/types/data-app-sdk.d.ts +18 -0
  56. package/dist/types/main.d.ts +6 -0
  57. package/package.json +9 -1
  58. package/dist/chunks/analyze-result-contract-C9Gv2_qW.js +0 -1585
  59. package/dist/chunks/analyze-result-contract-Zgg-Bbpj.js +0 -1
@@ -532,6 +532,7 @@ declare type SemaphorRecordsBaseQuerySpec = SemaphorQuerySourceSpec & SemaphorAp
532
532
  relationshipHint?: SemaphorRelationshipHint;
533
533
  limit?: number;
534
534
  pagination?: SemaphorPaginationRequest;
535
+ totals?: SemaphorRecordsIntent['totals'];
535
536
  };
536
537
 
537
538
  declare type SemaphorRecordsField = SemaphorFieldRef & {
@@ -558,6 +559,7 @@ declare type SemaphorRecordsIntent = {
558
559
  inputs?: SemaphorInputBinding[];
559
560
  relationshipHint?: SemaphorRelationshipHint;
560
561
  derivedFields?: SemaphorDerivedFieldDefinition[];
562
+ totals?: SemaphorRecordsServerTotalsRequest;
561
563
  };
562
564
 
563
565
  declare type SemaphorRecordsOrderBy = SemaphorQueryOrderBy;
@@ -568,6 +570,11 @@ declare type SemaphorRecordsSelectorSpec = {
568
570
  fields: SemaphorNonEmptyArray<SemaphorRecordsField>;
569
571
  };
570
572
 
573
+ declare type SemaphorRecordsServerTotalsRequest = {
574
+ mode: 'server';
575
+ measures: SemaphorFieldRef[];
576
+ };
577
+
571
578
  declare type SemaphorRelationshipHint = {
572
579
  relationshipIds?: string[];
573
580
  };
@@ -1041,6 +1041,7 @@ declare type SemaphorRecordsBaseQuerySpec = SemaphorQuerySourceSpec & SemaphorAp
1041
1041
  relationshipHint?: SemaphorRelationshipHint;
1042
1042
  limit?: number;
1043
1043
  pagination?: SemaphorPaginationRequest;
1044
+ totals?: SemaphorRecordsIntent['totals'];
1044
1045
  };
1045
1046
 
1046
1047
  declare type SemaphorRecordsField = SemaphorFieldRef & {
@@ -1067,6 +1068,7 @@ declare type SemaphorRecordsIntent = {
1067
1068
  inputs?: SemaphorInputBinding[];
1068
1069
  relationshipHint?: SemaphorRelationshipHint;
1069
1070
  derivedFields?: SemaphorDerivedFieldDefinition[];
1071
+ totals?: SemaphorRecordsServerTotalsRequest;
1070
1072
  };
1071
1073
 
1072
1074
  declare type SemaphorRecordsOrderBy = SemaphorQueryOrderBy;
@@ -1081,12 +1083,25 @@ declare type SemaphorRecordsResult = SemaphorAnalyticsResultBase & {
1081
1083
  kind: 'records';
1082
1084
  columns: SemaphorResultColumn[];
1083
1085
  records: Array<Record<string, unknown>>;
1086
+ totals?: SemaphorRecordsServerTotalsResult;
1084
1087
  };
1085
1088
 
1086
1089
  declare type SemaphorRecordsSelectorSpec = {
1087
1090
  fields: SemaphorNonEmptyArray<SemaphorRecordsField>;
1088
1091
  };
1089
1092
 
1093
+ declare type SemaphorRecordsServerTotalsRequest = {
1094
+ mode: 'server';
1095
+ measures: SemaphorFieldRef[];
1096
+ };
1097
+
1098
+ declare type SemaphorRecordsServerTotalsResult = {
1099
+ mode: 'server';
1100
+ scope: 'filtered_result';
1101
+ row: Record<string, unknown>;
1102
+ columns?: SemaphorResultColumn[];
1103
+ };
1104
+
1090
1105
  export declare type SemaphorRelatedProjectionFieldCandidate = {
1091
1106
  field: SemaphorFieldRef;
1092
1107
  allowedRelatedRoles: SemaphorRelatedProjectionRole[];
@@ -1465,6 +1465,7 @@ declare type SemaphorRecordsBaseQuerySpec = SemaphorQuerySourceSpec & SemaphorAp
1465
1465
  relationshipHint?: SemaphorRelationshipHint;
1466
1466
  limit?: number;
1467
1467
  pagination?: SemaphorPaginationRequest;
1468
+ totals?: SemaphorRecordsIntent['totals'];
1468
1469
  };
1469
1470
 
1470
1471
  export declare type SemaphorRecordsField = SemaphorFieldRef & {
@@ -1491,6 +1492,7 @@ declare type SemaphorRecordsIntent = {
1491
1492
  inputs?: SemaphorInputBinding[];
1492
1493
  relationshipHint?: SemaphorRelationshipHint;
1493
1494
  derivedFields?: SemaphorDerivedFieldDefinition[];
1495
+ totals?: SemaphorRecordsServerTotalsRequest;
1494
1496
  };
1495
1497
 
1496
1498
  export declare type SemaphorRecordsOrderBy = SemaphorQueryOrderBy;
@@ -1500,6 +1502,9 @@ export declare type SemaphorRecordsPayload<TRecord extends Record<string, unknow
1500
1502
  columns?: SemaphorResultColumn[];
1501
1503
  rowCount?: number;
1502
1504
  pagination?: SemaphorPaginationMetadata;
1505
+ totals?: Extract<NonNullable<SemaphorAnalyticsExecutionResult['result']>, {
1506
+ kind: 'records';
1507
+ }>['totals'];
1503
1508
  executionResult?: SemaphorAnalyticsExecutionResult;
1504
1509
  };
1505
1510
 
@@ -1518,12 +1523,25 @@ declare type SemaphorRecordsResult = SemaphorAnalyticsResultBase & {
1518
1523
  kind: 'records';
1519
1524
  columns: SemaphorResultColumn[];
1520
1525
  records: Array<Record<string, unknown>>;
1526
+ totals?: SemaphorRecordsServerTotalsResult;
1521
1527
  };
1522
1528
 
1523
1529
  declare type SemaphorRecordsSelectorSpec = {
1524
1530
  fields: SemaphorNonEmptyArray<SemaphorRecordsField>;
1525
1531
  };
1526
1532
 
1533
+ declare type SemaphorRecordsServerTotalsRequest = {
1534
+ mode: 'server';
1535
+ measures: SemaphorFieldRef[];
1536
+ };
1537
+
1538
+ declare type SemaphorRecordsServerTotalsResult = {
1539
+ mode: 'server';
1540
+ scope: 'filtered_result';
1541
+ row: Record<string, unknown>;
1542
+ columns?: SemaphorResultColumn[];
1543
+ };
1544
+
1527
1545
  declare type SemaphorRelationshipDiagnostics = {
1528
1546
  status: SemaphorRelationshipDiagnosticStatus;
1529
1547
  requiredSources?: SemaphorSourceRef[];
@@ -5191,6 +5191,12 @@ declare type SemaphorRecordsIntent = {
5191
5191
  inputs?: SemaphorInputBinding[];
5192
5192
  relationshipHint?: SemaphorRelationshipHint;
5193
5193
  derivedFields?: SemaphorDerivedFieldDefinition[];
5194
+ totals?: SemaphorRecordsServerTotalsRequest;
5195
+ };
5196
+
5197
+ declare type SemaphorRecordsServerTotalsRequest = {
5198
+ mode: 'server';
5199
+ measures: SemaphorFieldRef[];
5194
5200
  };
5195
5201
 
5196
5202
  declare type SemaphorRelationshipHint = {
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.398",
8
+ "version": "0.1.400",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",
@@ -84,6 +84,14 @@
84
84
  "import": "./dist/data-app-sdk-validation/index.js",
85
85
  "require": "./dist/data-app-sdk-validation/index.cjs"
86
86
  },
87
+ "./data-app-codegen": {
88
+ "types": "./dist/types/data-app-codegen.d.ts",
89
+ "import": "./dist/data-app-codegen/index.js"
90
+ },
91
+ "./data-app-codegen/node": {
92
+ "types": "./dist/types/data-app-codegen-node.d.ts",
93
+ "import": "./dist/data-app-codegen-node/index.js"
94
+ },
87
95
  "./data-app-builder": {
88
96
  "types": "./dist/types/data-app-builder.d.ts",
89
97
  "import": "./dist/data-app-builder/index.js",