react-semaphor 0.1.252 → 0.1.253

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 (29) hide show
  1. package/dist/chunks/{dashboard-controls-RKNlZLUy.js → dashboard-controls-BgaOqhnw.js} +1 -1
  2. package/dist/chunks/{dashboard-controls-tzai5JMp.js → dashboard-controls-CHH9Ea4j.js} +36 -36
  3. package/dist/chunks/{dashboard-json-B5wllXw0.js → dashboard-json-Blynp1N2.js} +1 -1
  4. package/dist/chunks/{dashboard-json-ihTGgefO.js → dashboard-json-CJ6i6izi.js} +1 -1
  5. package/dist/chunks/{dashboard-summary-settings-dialog-5tiQcv5v.js → dashboard-summary-settings-dialog-BtpW7fJ0.js} +1 -1
  6. package/dist/chunks/{dashboard-summary-settings-dialog-aTE5vsbO.js → dashboard-summary-settings-dialog-CHhYvPUB.js} +1 -1
  7. package/dist/chunks/{edit-dashboard-visual-DWk1Nj1P.js → edit-dashboard-visual-C22E6KJj.js} +2 -2
  8. package/dist/chunks/{edit-dashboard-visual-BIQd7lCz.js → edit-dashboard-visual-CZvBuYhN.js} +1 -1
  9. package/dist/chunks/{editor-action-buttons-CmELP3na.js → editor-action-buttons-1cbHJIqv.js} +1 -1
  10. package/dist/chunks/{editor-action-buttons-B7ESBjzC.js → editor-action-buttons-DNSIXb3y.js} +2 -2
  11. package/dist/chunks/index-9_GiUNMO.js +1109 -0
  12. package/dist/chunks/{index-BDN1Q9RG.js → index-DsMIsFii.js} +32323 -32077
  13. package/dist/chunks/{notification-bell-CYrG1hcX.js → notification-bell-DXQ2fu8Y.js} +36 -36
  14. package/dist/chunks/{notification-bell-TG-yGjyj.js → notification-bell-DxOIm0IK.js} +1 -1
  15. package/dist/chunks/{resource-management-panel-jsX9tgNz.js → resource-management-panel-D427FGhi.js} +1 -1
  16. package/dist/chunks/{resource-management-panel-CnDTYkf7.js → resource-management-panel-DkW4oYpN.js} +26 -26
  17. package/dist/chunks/{use-visual-utils-H6Nd2HfE.js → use-visual-utils-BqG8Hwpl.js} +1 -1
  18. package/dist/chunks/{use-visual-utils-BNXkYg0F.js → use-visual-utils-CW_sw621.js} +1 -1
  19. package/dist/dashboard/index.cjs +1 -1
  20. package/dist/dashboard/index.js +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.js +413 -252
  23. package/dist/style.css +1 -1
  24. package/dist/surfboard/index.cjs +1 -1
  25. package/dist/surfboard/index.js +2 -2
  26. package/dist/types/main.d.ts +249 -48
  27. package/dist/types/types.d.ts +92 -20
  28. package/package.json +1 -1
  29. package/dist/chunks/index-DvjTd3ue.js +0 -1109
@@ -35,12 +35,7 @@ export declare interface Alert {
35
35
  sourceHealth?: 'OK' | 'SOURCE_MISSING' | 'SOURCE_ERROR' | 'STALE';
36
36
  alertState?: AlertState | null;
37
37
  jobConfig: AlertJobConfig;
38
- deliveryConfig: {
39
- recipients: AlertRecipient[];
40
- channels: AlertDeliveryChannel[];
41
- subject?: string;
42
- message?: string;
43
- };
38
+ deliveryConfig: DeliveryConfig;
44
39
  createdAt: string;
45
40
  updatedAt: string;
46
41
  }
@@ -61,8 +56,6 @@ export declare interface AlertBacktestResult {
61
56
 
62
57
  export declare type AlertConditionOperator = 'gt' | 'gte' | 'lt' | 'lte' | 'eq' | 'neq' | 'pct_change_gt' | 'pct_change_lt';
63
58
 
64
- export declare type AlertContextAuthoringMode = 'basic' | 'conversational' | 'manual';
65
-
66
59
  export declare interface AlertContextInterpretResponse {
67
60
  workflowDef: Record<string, unknown>;
68
61
  contextSources: ContextSource[];
@@ -77,7 +70,19 @@ export declare interface AlertDeliverablePreview {
77
70
  warnings?: string[];
78
71
  }
79
72
 
80
- export declare type AlertDeliveryChannel = 'EMAIL' | 'WEBHOOK' | 'SLACK' | 'IN_APP';
73
+ export declare type AlertDeliveryChannel = 'EMAIL' | 'WEBHOOK' | 'SLACK' | 'IN_APP' | 'TELEGRAM';
74
+
75
+ export declare type AlertExecutionFilterContext = {
76
+ active_filters: TFilterValue[];
77
+ };
78
+
79
+ export declare type AlertExecutionQueryConfig = {
80
+ cardType: TChartType;
81
+ cardMode: CardMode;
82
+ cardConfig: CardConfig;
83
+ cardDataSource: DataSource;
84
+ connectionId?: string;
85
+ };
81
86
 
82
87
  export declare interface AlertHistoryResponse {
83
88
  ruleId: string;
@@ -117,9 +122,9 @@ export declare type AlertJobConfig = {
117
122
  severity: AlertSeverity;
118
123
  consecutiveCount?: number;
119
124
  notifyPolicy: 'on_state_change';
120
- contextAuthoringMode?: AlertContextAuthoringMode;
121
125
  contextSources?: ContextSource[];
122
126
  presentationPrompt?: string;
127
+ sensitivityPreset?: SensitivityPreset | null;
123
128
  };
124
129
 
125
130
  export declare interface AlertQuotaPolicy {
@@ -164,18 +169,19 @@ export declare type AlertSeverity = 'LOW' | 'MEDIUM' | 'HIGH' | 'CRITICAL';
164
169
 
165
170
  export declare type AlertSource = {
166
171
  type: 'saved_metric';
167
- metricId: string;
172
+ visualId: string;
168
173
  title?: string;
174
+ format?: CanonicalFormatSpec;
169
175
  } | {
170
176
  type: 'dashboard_metric';
171
177
  dashboardId: string;
172
178
  visualId: string;
173
179
  cardId: string;
174
180
  title?: string;
181
+ format?: CanonicalFormatSpec;
175
182
  executionSnapshot: {
176
- queryConfig: Record<string, unknown>;
177
- filterContext: Record<string, unknown>;
178
- formattingContext: Record<string, unknown>;
183
+ queryConfig: AlertExecutionQueryConfig;
184
+ filterContext: AlertExecutionFilterContext;
179
185
  connectionId: string;
180
186
  calendarContext?: {
181
187
  tz: string;
@@ -332,6 +338,8 @@ export declare type CalendarContext = {
332
338
  };
333
339
  };
334
340
 
341
+ declare type CanonicalFormatSpec = NumericCanonicalFormat | DateCanonicalFormat | StringCanonicalFormat;
342
+
335
343
  declare interface CardConfig {
336
344
  groupByColumns?: GroupByField[];
337
345
  metricColumns?: MetricField[];
@@ -399,6 +407,8 @@ declare interface CardInteractionConfig {
399
407
  drillHierarchies?: DrillHierarchy[];
400
408
  }
401
409
 
410
+ declare type CardMode = 'explorer' | 'dev';
411
+
402
412
  declare type CardWithContent = BaseCustomCard & {
403
413
  content: React.FC<{
404
414
  card: TCard;
@@ -417,6 +427,20 @@ declare type CardWithFooter = BaseCustomCard & {
417
427
  }>;
418
428
  };
419
429
 
430
+ export declare type ChannelFormatConfig = {
431
+ formatProfile: FormatProfile;
432
+ subjectOverride?: string;
433
+ titleOverride?: string;
434
+ summaryOverride?: string;
435
+ actionBlockVisible?: boolean;
436
+ webhookConfig?: {
437
+ url: string;
438
+ method: string;
439
+ headers: Record<string, string>;
440
+ secretEncrypted?: string;
441
+ };
442
+ };
443
+
420
444
  declare interface ClickFilterInteraction {
421
445
  mode: 'clickFilter';
422
446
  /**
@@ -527,16 +551,17 @@ export declare interface CreateAlertRequest {
527
551
  description?: string;
528
552
  scheduleExpr: string;
529
553
  timezone?: string;
530
- source: AlertSource;
531
- operator: AlertConditionOperator;
532
- threshold: number;
554
+ source?: AlertSource;
555
+ operator?: AlertConditionOperator;
556
+ threshold?: number;
533
557
  severity?: AlertSeverity;
534
558
  consecutiveCount?: number;
535
- recipients: AlertRecipient[];
559
+ recipients?: AlertRecipient[];
536
560
  channels?: AlertDeliveryChannel[];
537
- contextAuthoringMode?: AlertContextAuthoringMode;
538
561
  contextSources?: ContextSource[];
539
562
  presentationPrompt?: string;
563
+ jobConfig?: AlertJobConfig;
564
+ deliveryConfig?: DeliveryConfig;
540
565
  workflowDef?: Record<string, unknown>;
541
566
  }
542
567
 
@@ -645,6 +670,17 @@ declare interface DataSource {
645
670
 
646
671
  declare const DATE_FORMAT_VALUES: readonly ["MM-DD-YYYY", "YYYY-MM-DD", "MM/DD/YYYY", "DD/MM/YYYY", "MMMM DD, YYYY", "MMM DD, YYYY", "DD MMM YYYY", "YYYY-MM-DD HH:mm", "YYYY-MM-DD HH:mm:ss", "YYYY-MM-DD HH:mm Z", "YYYY-MM-DD HH:mm:ss Z", "Week of MMM DD, YYYY", "Week of MMMM DD, YYYY", "YYYY-WW", "MMM YYYY", "MMMM YYYY", "YYYY-MM", "MM/YYYY", "YYYY MMM", "Q1 YYYY", "YYYY Q1", "1st Quarter YYYY", "YYYY-Q1", "Quarter 1, YYYY", "YYYY", "YY", "custom"];
647
672
 
673
+ declare type DateCanonicalFormat = {
674
+ type: 'date';
675
+ locale?: string;
676
+ pattern?: string;
677
+ relative?: boolean;
678
+ timezone?: string;
679
+ sourceTimezone?: string;
680
+ prefix?: string;
681
+ suffix?: string;
682
+ };
683
+
648
684
  declare type DateFormatValue = (typeof DATE_FORMAT_VALUES)[number];
649
685
 
650
686
  export declare type DateOptions = {
@@ -667,6 +703,14 @@ export declare const DEFAULT_SEMANTIC_DOMAIN_ACCESS: SemanticDomainAccess;
667
703
 
668
704
  declare type DefaultDateFilter = RelativeDateFilter | FixedMonthDefaultDateFilter;
669
705
 
706
+ export declare type DeliveryConfig = {
707
+ recipients: AlertRecipient[];
708
+ channels: AlertDeliveryChannel[];
709
+ subject?: string;
710
+ message?: string;
711
+ channelConfigs?: Record<string, ChannelFormatConfig>;
712
+ };
713
+
670
714
  /**
671
715
  * Field configuration for detail table columns.
672
716
  * Unlike GroupByField, DetailField does not support aggregation or granularity.
@@ -1059,6 +1103,8 @@ declare type FixedMonthDefaultDateFilter = {
1059
1103
  month: number;
1060
1104
  };
1061
1105
 
1106
+ export declare type FormatProfile = 'concise' | 'balanced' | 'detailed';
1107
+
1062
1108
  declare type FormatSpec = {
1063
1109
  type: 'number' | 'currency' | 'percent' | 'percentage' | 'scientific';
1064
1110
  locale?: string;
@@ -1322,6 +1368,21 @@ export declare type NumberOptions = {
1322
1368
  colorRanges?: ColorRange[];
1323
1369
  };
1324
1370
 
1371
+ declare type NumericCanonicalFormat = {
1372
+ type: 'number' | 'currency' | 'percent' | 'scientific';
1373
+ locale?: string;
1374
+ minimumFractionDigits?: number;
1375
+ maximumFractionDigits?: number;
1376
+ useGrouping?: boolean;
1377
+ prefix?: string;
1378
+ suffix?: string;
1379
+ negativeStyle?: 'minus' | 'parentheses';
1380
+ compact?: boolean;
1381
+ scale?: number;
1382
+ currency?: string;
1383
+ percentValueMode?: 'fraction' | 'whole';
1384
+ };
1385
+
1325
1386
  declare type OldFilterValue = string | number | null | (string | number)[] | RangeValue;
1326
1387
 
1327
1388
  declare type Operation = '=' | '>' | '<' | '>=' | '<=' | '!=' | 'in' | 'not in' | 'like' | 'not like' | 'between' | 'not between' | 'is null' | 'is not null';
@@ -1455,6 +1516,8 @@ export declare type SemanticDomainAccessRequest = {
1455
1516
  domains?: string[];
1456
1517
  };
1457
1518
 
1519
+ export declare type SensitivityPreset = 'low_noise' | 'standard' | 'early_warning';
1520
+
1458
1521
  declare interface SortByField extends Field {
1459
1522
  role: 'sortby';
1460
1523
  direction: 'asc' | 'desc';
@@ -1468,6 +1531,12 @@ export declare type SqlGen = {
1468
1531
  dimensions?: string[];
1469
1532
  };
1470
1533
 
1534
+ declare type StringCanonicalFormat = {
1535
+ type: 'string';
1536
+ prefix?: string;
1537
+ suffix?: string;
1538
+ };
1539
+
1471
1540
  declare type StringOptions = {
1472
1541
  maxLength?: number;
1473
1542
  };
@@ -2493,9 +2562,12 @@ export declare interface UpdateAlertRequest {
2493
2562
  consecutiveCount?: number;
2494
2563
  recipients?: AlertRecipient[];
2495
2564
  channels?: AlertDeliveryChannel[];
2496
- contextAuthoringMode?: AlertContextAuthoringMode;
2497
2565
  contextSources?: ContextSource[];
2498
2566
  presentationPrompt?: string;
2567
+ sensitivityPreset?: SensitivityPreset | null;
2568
+ channelConfigs?: Record<string, ChannelFormatConfig>;
2569
+ jobConfig?: AlertJobConfig;
2570
+ deliveryConfig?: DeliveryConfig;
2499
2571
  workflowDef?: Record<string, unknown> | null;
2500
2572
  }
2501
2573
 
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "email": "support@semaphor.cloud"
6
6
  },
7
7
  "license": "MIT",
8
- "version": "0.1.252",
8
+ "version": "0.1.253",
9
9
  "description": "Fully interactive and customizable dashboards for your apps.",
10
10
  "keywords": [
11
11
  "react",