dce-crosstypes 1.0.2 → 1.0.3

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.
@@ -27,9 +27,14 @@ type UserEngagement = ({
27
27
  } & ({
28
28
  source: EngagementSource.InPerson;
29
29
  groupNum?: number;
30
+ ihid: string;
30
31
  } | {
31
32
  source: EngagementSource.Live;
33
+ groupNum: undefined;
34
+ ihid: string;
32
35
  } | {
33
36
  source: EngagementSource.Excused;
37
+ groupNum: undefined;
38
+ ihid: undefined;
34
39
  }))));
35
40
  export default UserEngagement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-crosstypes",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Types shared across Harvard EdTech projects",
5
5
  "keywords": [
6
6
  "DCE",
@@ -1,3 +1,4 @@
1
+ // Import types
1
2
  import ActivityId from '../ActivityId';
2
3
  import EngagementSource from './EngagementSource';
3
4
  import ActivityEngagementData from './ActivityEngagementData';
@@ -61,15 +62,26 @@ type UserEngagement = (
61
62
  // In-person engagement
62
63
  | {
63
64
  source: EngagementSource.InPerson,
65
+ // Group number for the in-person engagement
64
66
  groupNum?: number,
67
+ // IHID for the in-person engagement
68
+ ihid: string,
65
69
  }
66
70
  // Live engagement
67
71
  | {
68
72
  source: EngagementSource.Live,
73
+ // Group number for the live engagement (always undefined)
74
+ groupNum: undefined,
75
+ // IHID for the live engagement
76
+ ihid: string,
69
77
  }
70
78
  // Excused engagement
71
79
  | {
72
80
  source: EngagementSource.Excused,
81
+ // Group number for the excused engagement (always undefined)
82
+ groupNum: undefined,
83
+ // IHID for the excused engagement (always undefined)
84
+ ihid: undefined,
73
85
  }
74
86
  )
75
87
  )