* make text editor reusable * use dropdown component for block type * remove ring when clicking on block type * allow excluding items in toolbar * refactor code * make AddVariableDropdown reusable * fixed missed translations * fixes variable translation issue * change missed translation variables * make AddVariablesDropdown reusable * reorder block types in dropdown * remove not needed prop * code clean up * center add variable dropwdown icon * remove rounded borders in dropwdown on hover and active * center icons * fix tool bar items dropdown * add constant for dynamic text variables * remove not needed variables (added from merge) Co-authored-by: CarinaWolli <wollencarina@gmail.com> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> Co-authored-by: Peer Richelsen <peeroke@gmail.com> Co-authored-by: alannnc <alannnc@gmail.com>
34 lines
942 B
TypeScript
34 lines
942 B
TypeScript
import { TimeUnit, WorkflowActions, WorkflowTemplates, WorkflowTriggerEvents } from "@prisma/client";
|
|
|
|
export const WORKFLOW_TRIGGER_EVENTS = [
|
|
WorkflowTriggerEvents.BEFORE_EVENT,
|
|
WorkflowTriggerEvents.EVENT_CANCELLED,
|
|
WorkflowTriggerEvents.NEW_EVENT,
|
|
WorkflowTriggerEvents.AFTER_EVENT,
|
|
WorkflowTriggerEvents.RESCHEDULE_EVENT,
|
|
] as const;
|
|
|
|
export const WORKFLOW_ACTIONS = [
|
|
WorkflowActions.EMAIL_HOST,
|
|
WorkflowActions.EMAIL_ATTENDEE,
|
|
WorkflowActions.EMAIL_ADDRESS,
|
|
WorkflowActions.SMS_ATTENDEE,
|
|
WorkflowActions.SMS_NUMBER,
|
|
] as const;
|
|
|
|
export const TIME_UNIT = [TimeUnit.DAY, TimeUnit.HOUR, TimeUnit.MINUTE] as const;
|
|
|
|
export const WORKFLOW_TEMPLATES = [WorkflowTemplates.CUSTOM, WorkflowTemplates.REMINDER] as const;
|
|
|
|
export const DYNAMIC_TEXT_VARIABLES = [
|
|
"event_name",
|
|
"event_date",
|
|
"event_time",
|
|
"location",
|
|
"organizer_name",
|
|
"attendee_name",
|
|
"attendee_email",
|
|
"additional_notes",
|
|
"meeting_url",
|
|
];
|