aiden-shared-calculations-unified 1.0.94 → 1.0.95

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.
@@ -24,10 +24,32 @@ class CohortDefiner {
24
24
  }
25
25
 
26
26
  static getSchema() {
27
- const cohortSchema = { "type": "array", "items": { "type": "string" } };
27
+ const cohortList = {
28
+ "type": "array",
29
+ "items": { "type": "string" },
30
+ "description": "List of User IDs belonging to this behavioral cohort"
31
+ };
32
+
28
33
  return {
29
34
  "type": "object",
30
- "patternProperties": { "^.*$": cohortSchema }
35
+ "required": [
36
+ "smart_investors",
37
+ "smart_scalpers",
38
+ "uncategorized_smart",
39
+ "fomo_chasers",
40
+ "patient_losers",
41
+ "fomo_bagholders",
42
+ "uncategorized_dumb"
43
+ ],
44
+ "properties": {
45
+ "smart_investors": cohortList,
46
+ "smart_scalpers": cohortList,
47
+ "uncategorized_smart": cohortList,
48
+ "fomo_chasers": cohortList,
49
+ "patient_losers": cohortList,
50
+ "fomo_bagholders": cohortList,
51
+ "uncategorized_dumb": cohortList
52
+ }
31
53
  };
32
54
  }
33
55
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiden-shared-calculations-unified",
3
- "version": "1.0.94",
3
+ "version": "1.0.95",
4
4
  "description": "Shared calculation modules for the BullTrackers Computation System.",
5
5
  "main": "index.js",
6
6
  "files": [