Skip to content

Commit dfe0d80

Browse files
committed
add another streak trigger
1 parent 9e69d6d commit dfe0d80

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

deno.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streak-glue/runtime",
3-
"version": "0.2.16",
3+
"version": "0.2.17",
44
"license": "MIT",
55
"exports": {
66
".": "./mod.ts",

integrations/streak/runtime.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)