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:
1 parent
4753bd785a
commit
b3d5a6edca
10 files changed
+425
-314
No files matched your search
Vendored
+1
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user