mirror of
https://github.com/hanzoai/calendar.git
synced 2026-10-30 14:46:43 +00:00
* 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
36 lines
790 B
TypeScript
36 lines
790 B
TypeScript
export enum SalesforceRecordEnum {
|
|
CONTACT = "Contact",
|
|
LEAD = "Lead",
|
|
ACCOUNT = "Account",
|
|
EVENT = "Event",
|
|
}
|
|
|
|
export enum WhenToWriteToRecord {
|
|
EVERY_BOOKING = "every_booking",
|
|
FIELD_EMPTY = "field_empty",
|
|
}
|
|
|
|
export enum SalesforceFieldType {
|
|
DATE = "date",
|
|
TEXT = "string",
|
|
PHONE = "phone",
|
|
CUSTOM = "custom",
|
|
PICKLIST = "picklist",
|
|
CHECKBOX = "boolean",
|
|
DATETIME = "datetime",
|
|
TEXTAREA = "textarea",
|
|
}
|
|
|
|
export enum DateFieldTypeData {
|
|
BOOKING_START_DATE = "booking_start_date",
|
|
BOOKING_CREATED_DATE = "booking_created_date",
|
|
BOOKING_CANCEL_DATE = "booking_cancel_date",
|
|
}
|
|
|
|
export enum RoutingReasons {
|
|
ACCOUNT_LOOKUP_FIELD = "account_lookup_field",
|
|
LEAD_OWNER = "lead_owner",
|
|
CONTACT_OWNER = "contact_owner",
|
|
ACCOUNT_OWNER = "account_owner",
|
|
}
|