@@ -2,7 +2,7 @@ type EventData = {
22 eventSourceId : string ;
33 eventId : string ;
44 eventMeta : Record < string , unknown > ;
5- }
5+ } ;
66
77type FilterEvent = Omit < EventData , "eventMeta" > ;
88
@@ -14,7 +14,7 @@ export type FilterSettings = {
1414export type PresetValue = {
1515 value : any ;
1616 display : string ;
17- }
17+ } ;
1818
1919export type EventFilter = {
2020 id : string ;
@@ -24,11 +24,17 @@ export type EventFilter = {
2424 comparisonTypes : string [ ] ;
2525 valueType : "text" | "number" | "preset" ;
2626 presetValues ?( ...args : any [ ] ) : Promise < PresetValue [ ] > | PresetValue [ ] ;
27- valueIsStillValid ?( filterSettings : FilterSettings , ...args : any [ ] ) : Promise < boolean > | boolean ;
28- getSelectedValueDisplay ?( filterSettings : FilterSettings , ...args : any [ ] ) : Promise < string > | string ;
27+ valueIsStillValid ?(
28+ filterSettings : FilterSettings ,
29+ ...args : any [ ]
30+ ) : Promise < boolean > | boolean ;
31+ getSelectedValueDisplay ?(
32+ filterSettings : FilterSettings ,
33+ ...args : any [ ]
34+ ) : Promise < string > | string ;
2935 predicate (
3036 filterSettings : FilterSettings ,
31- eventData : EventData ,
37+ eventData : EventData
3238 ) : Promise < boolean > | boolean ;
3339} ;
3440
@@ -51,13 +57,21 @@ export type EventFilterManager = {
5157 * @param eventSourceId The ID of the event source you want to add.
5258 * @param eventId The ID of the event you want to add.
5359 */
54- addEventToFilter : ( filterId : string , eventSourceId : string , eventId : string ) => void ;
60+ addEventToFilter : (
61+ filterId : string ,
62+ eventSourceId : string ,
63+ eventId : string
64+ ) => void ;
5565
5666 /**
5767 * Removes an event from an existing Firebot event filter.
5868 * @param filterId The ID of the filter.
5969 * @param eventSourceId The ID of the event source you want to remove.
6070 * @param eventId The ID of the event you want to remove.
6171 */
62- removeEventFromFilter : ( filterId : string , eventSourceId : string , eventId : string ) => void ;
72+ removeEventFromFilter : (
73+ filterId : string ,
74+ eventSourceId : string ,
75+ eventId : string
76+ ) => void ;
6377} ;
0 commit comments