-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calendly Integration Workflow Added (#35)
* Added calendly workflow functions * Bugfix for Worklfow's Offset * We weren't updating workflow's offset in database layer * Also removed duplicate sleep, since we do it in the layer above * Made changes for calendly workflow integration tests * Added an extra check to prevent the deletion of a topic if it's being used by a workflow * Corrected LeadDocketRequest struct's name
- Loading branch information
1 parent
17fbc37
commit 4a8175f
Showing
6 changed files
with
286 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
67 changes: 67 additions & 0 deletions
67
integrand-py/tests/workflow_functions/calendly_sync/message.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"created_at": "2024-08-05T21:58:18.000000Z", | ||
"created_by": "https://api.calendly.com/users/test", | ||
"event": "invitee.created", | ||
"payload": { | ||
"cancel_url": "https://calendly.com/cancellations/another-test", | ||
"created_at": "2024-08-05T21:58:17.901807Z", | ||
"email": "[email protected]", | ||
"event": "https://api.calendly.com/scheduled_events/test-event", | ||
"first_name": null, | ||
"invitee_scheduled_by": null, | ||
"last_name": null, | ||
"name": "Client Name", | ||
"new_invitee": null, | ||
"no_show": null, | ||
"old_invitee": null, | ||
"payment": null, | ||
"questions_and_answers": [], | ||
"reconfirmation": null, | ||
"reschedule_url": "https://calendly.com/reschedulings/another-test", | ||
"rescheduled": false, | ||
"routing_form_submission": null, | ||
"scheduled_event": { | ||
"created_at": "2024-08-05T21:58:17.881846Z", | ||
"end_time": "2024-08-16T15:45:00.000000Z", | ||
"event_guests": [], | ||
"event_memberships": [ | ||
{ | ||
"user": "https://api.calendly.com/users/test", | ||
"user_email": "[email protected]", | ||
"user_name": "Test Company" | ||
} | ||
], | ||
"event_type": "https://api.calendly.com/event_types/test-type", | ||
"invitees_counter": { | ||
"active": 1, | ||
"limit": 1, | ||
"total": 1 | ||
}, | ||
"location": { | ||
"location": "+1 322-999-1323", | ||
"type": "outbound_call" | ||
}, | ||
"meeting_notes_html": null, | ||
"meeting_notes_plain": null, | ||
"name": "15 Minute Consultation", | ||
"start_time": "2024-08-16T15:30:00.000000Z", | ||
"status": "active", | ||
"updated_at": "2024-08-05T21:58:17.881846Z", | ||
"uri": "https://api.calendly.com/scheduled_events/test-event" | ||
}, | ||
"scheduling_method": null, | ||
"status": "active", | ||
"text_reminder_number": null, | ||
"timezone": "America/Los_Angeles", | ||
"tracking": { | ||
"salesforce_uuid": null, | ||
"utm_campaign": null, | ||
"utm_content": null, | ||
"utm_medium": null, | ||
"utm_source": null, | ||
"utm_term": null | ||
}, | ||
"updated_at": "2024-08-05T21:58:17.901807Z", | ||
"uri": "https://api.calendly.com/scheduled_events/test-event/invitees/another-test" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
integrand-py/tests/workflow_functions/calendly_sync/message_output.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"Email": "[email protected]", | ||
"First": "Client", | ||
"Last": "Name", | ||
"Phone": "+1 322-999-1323", | ||
"Summary": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.