bulltrackers-module 1.0.550 → 1.0.552

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.
@@ -120,7 +120,7 @@ async function findSubscriptionsForPI(db, logger, piCid, alertTypeId) {
120
120
  'NewSectorExposure': 'newSector',
121
121
  'PositionInvestedIncrease': 'increasedPositionSize',
122
122
  'NewSocialPost': 'newSocialPost',
123
- 'NewPositions': 'newPositions' // If this computation exists
123
+ 'TestSystemProbe': 'increasedRisk' // Hack: Map to 'increasedRisk' so you receive it if you have Risk alerts on
124
124
  };
125
125
 
126
126
  const configKey = computationToConfigKey[alertTypeId];
@@ -53,7 +53,17 @@ const ALERT_TYPES = {
53
53
  messageTemplate: '{piUsername} posted a new update: {title}',
54
54
  severity: 'low',
55
55
  enabled: true
56
- }
56
+ },
57
+ testSystemProbe: {
58
+ id: 'testSystemProbe',
59
+ name: 'Test System Probe',
60
+ description: 'Always-on debug alert',
61
+ computationName: 'TestSystemProbe', // Must match the class name above
62
+ category: 'alerts',
63
+ messageTemplate: 'Probe Triggered for {status} at {timestamp}', // Uses keys from the result object
64
+ severity: 'info',
65
+ enabled: true
66
+ },
57
67
  };
58
68
 
59
69
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bulltrackers-module",
3
- "version": "1.0.550",
3
+ "version": "1.0.552",
4
4
  "description": "Helper Functions for Bulltrackers.",
5
5
  "main": "index.js",
6
6
  "files": [