MCPcopy Index your code
hub / github.com/simstudioai/sim / isZoomEventMatch

Function isZoomEventMatch

apps/sim/triggers/zoom/utils.ts:19–35  ·  view source on GitHub ↗
(triggerId: string, event: string)

Source from the content-addressed store, hash-verified

17 * Returns true for the generic `zoom_webhook` trigger (accepts all events).
18 */
19export function isZoomEventMatch(triggerId: string, event: string): boolean {
20 if (triggerId === 'zoom_webhook') {
21 return true
22 }
23
24 const allowedEvents = ZOOM_TRIGGER_EVENT_MAP[triggerId]
25 if (!allowedEvents) {
26 return false
27 }
28
29 const ev = event?.trim()
30 if (!ev) {
31 return false
32 }
33
34 return allowedEvents.includes(ev)
35}
36
37/**
38 * Dropdown options for the Zoom trigger type selector.

Callers 2

zoom.test.tsFile · 0.90
matchEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected