@@ -44,6 +44,15 @@ interface AppRequestedResolverData {
4444 readonly type : 'appRequestedResolverData' ;
4545}
4646
47+ /**
48+ * The action dispatched when the app requests related event data for one or more
49+ * subjects (whose ids should be included as an array @ `payload`)
50+ */
51+ interface UserRequestedRelatedEventData {
52+ readonly type : 'userRequestedRelatedEventData' ;
53+ readonly payload : ResolverEvent ;
54+ }
55+
4756/**
4857 * When the user switches the "active descendant" of the Resolver.
4958 * The "active descendant" (from the point of view of the parent element)
@@ -77,11 +86,36 @@ interface UserSelectedResolverNode {
7786 } ;
7887}
7988
89+ /**
90+ * This action should dispatch to indicate that the user chose to
91+ * focus on examining the related events of a particular ResolverEvent.
92+ * Optionally, this can be bound by a category of related events (e.g. 'file' or 'dns')
93+ */
94+ interface UserSelectedRelatedEventCategory {
95+ readonly type : 'userSelectedRelatedEventCategory' ;
96+ readonly payload : {
97+ subject : ResolverEvent ;
98+ category ?: string ;
99+ } ;
100+ }
101+
102+ /**
103+ * This action should dispatch to indicate that the user chose to focus
104+ * on examining alerts related to a particular ResolverEvent
105+ */
106+ interface UserSelectedRelatedAlerts {
107+ readonly type : 'userSelectedRelatedAlerts' ;
108+ readonly payload : ResolverEvent ;
109+ }
110+
80111export type ResolverAction =
81112 | CameraAction
82113 | DataAction
83114 | UserBroughtProcessIntoView
84115 | UserChangedSelectedEvent
85116 | AppRequestedResolverData
86117 | UserFocusedOnResolverNode
87- | UserSelectedResolverNode ;
118+ | UserSelectedResolverNode
119+ | UserRequestedRelatedEventData
120+ | UserSelectedRelatedEventCategory
121+ | UserSelectedRelatedAlerts ;
0 commit comments