feat: Salesforce - on booking cancel, write to event object (#20601)

* Type app options

* Refactor `writeToPersonRecord` to `writeToRecord`

* Abstract writing to salesforce record options component

* Add option to write to event object on cancellation

* Add on booking cancel write to event object to schema

* Refactor writing to record on booking option to use `<WriteToObjectSettings />`

* Pass event object to crm delete method

* When cancelling booking write to event object
- App data isn't being read

* V1 pass app data to crm service

* Undo .env commit

* Fix passing event to cancel crm cancel event method

* Pass event type metadata to `EventManager` in `handleCancelBooking`

* Handle writing to event record

* Type fix
This commit is contained in:
Joe Au-Yeung authored and GitHub committed 2025-04-08 11:40:05 -04:00
1 parent 4753bd785a
commit b3d5a6edca
10 files changed
+425 -314

No files matched your search

+1 -1
View File
@@ -33,7 +33,7 @@ export interface CrmEvent {
export interface CRM {
createEvent: (event: CalendarEvent, contacts: Contact[]) => Promise<CrmEvent | undefined>;
updateEvent: (uid: string, event: CalendarEvent) => Promise<CrmEvent>;
deleteEvent: (uid: string) => Promise<void>;
deleteEvent: (uid: string, event: CalendarEvent) => Promise<void>;
getContacts: ({
emails,
includeOwner,