File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed
Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @streak-glue/runtime" ,
3- "version" : " 0.2.16 " ,
3+ "version" : " 0.2.17 " ,
44 "license" : " MIT" ,
55 "exports" : {
66 "." : " ./mod.ts" ,
Original file line number Diff line number Diff line change @@ -143,6 +143,22 @@ export class Streak {
143143 this . onBoxEvent ( "BOX_CHANGE_STAGE" , pipelineKey , fn , options ) ;
144144 }
145145
146+ /**
147+ * Registers a handler for call log or meeting note creation events.
148+ *
149+ * Triggered when a call log or meeting note is created.
150+ * Meeting notes and call logs are actually the same object in
151+ * Streak, so there is just one event that this is registered for.
152+ * You can check the event.payload.type to determine if it is a call log or a meeting note.
153+ *
154+ * @param pipelineKey - The Streak pipeline key to monitor
155+ * @param fn - Handler function called when a call log or meeting note is created
156+ * @param options - Optional trigger configuration
157+ */
158+ onCallLogOrMeetingNoteCreated ( pipelineKey : string , fn : ( event : StreakEvent ) => void , options ?: StreakTriggerOptions ) : void {
159+ this . onBoxEvent ( "MEETING_CREATE" , pipelineKey , fn , options ) ;
160+ }
161+
146162 createCredentialFetcher ( options ?: StreakAccountInjectionOptions ) : CredentialFetcher < ApiKeyCredential > {
147163 return registerAccountInjection < ApiKeyCredential > ( "streak" , {
148164 description : options ?. description ,
You can’t perform that action at this time.
0 commit comments