SALES_EVENT_VERSION = 1

LEAD_ENTERED_CRM = "lead.entered_crm"
LEAD_ENRICHMENT_COMPLETED = "lead.enrichment_completed"

DEAL_STAGE_CHANGED = "deal.stage_changed"
DEAL_SCENARIO_SELECTED = "deal.scenario_selected"
DEAL_NEXT_ACTION_SCHEDULED = "deal.next_action_scheduled"
DEAL_CLOSED = "deal.closed"
DEAL_LOST = "deal.lost"
DEAL_WON = "deal.won"
DEAL_ESCALATION_REQUESTED = "deal.escalation_requested"
DEAL_TRANSFERRED_POST_SALE = "deal.transferred_post_sale"
DEAL_CHANNEL_SWITCH_RECOMMENDED = "deal.channel_switch_recommended"
DEAL_FOLLOW_UP_READY = "deal.follow_up_ready"

COMMUNICATION_STARTED = "communication.started"
COMMUNICATION_CHANNEL_SWITCHED = "communication.channel_switched"
COMMUNICATION_SUMMARY_CREATED = "communication.summary_created"
MESSAGE_RECEIVED = "message.received"
MESSAGE_SENT = "message.sent"
CALL_RECEIVED = "call.received"
CALL_COMPLETED = "call.completed"

OFFER_CREATED = "offer.created"
OFFER_SENT = "offer.sent"
OFFER_ACCEPTED = "offer.accepted"
OFFER_REJECTED = "offer.rejected"
DEAL_CONDITIONS_CONFIRMED = "deal.conditions_confirmed"
DEAL_NOTE_CREATED = "deal.note.created"
DEAL_NOTE_UPDATED = "deal.note.updated"

COUNTERPARTY_COMPLETED = "counterparty.completed"
DOCUMENT_CREATED = "document.created"
DOCUMENT_SENT = "document.sent"
DOCUMENT_CONFIRMED = "document.confirmed"
DOCUMENT_SIGNED = "document.signed"

INVOICE_CREATED = "invoice.created"
INVOICE_SENT = "invoice.sent"
INVOICE_OVERDUE = "invoice.overdue"
INVOICE_REMINDER_SENT = "invoice.reminder_sent"
PAYMENT_RECEIVED = "payment.received"
INVOICE_PAID = "invoice.paid"

ESCALATION_CREATED = "escalation.created"
ESCALATION_ASSIGNED = "escalation.assigned"
ESCALATION_STARTED = "escalation.started"
ESCALATION_RESOLVED = "escalation.resolved"
ESCALATION_CANCELED = "escalation.canceled"


SALES_EVENT_TYPES = {
    LEAD_ENTERED_CRM,
    LEAD_ENRICHMENT_COMPLETED,
    DEAL_STAGE_CHANGED,
    DEAL_SCENARIO_SELECTED,
    DEAL_NEXT_ACTION_SCHEDULED,
    DEAL_CLOSED,
    DEAL_LOST,
    DEAL_WON,
    DEAL_ESCALATION_REQUESTED,
    DEAL_TRANSFERRED_POST_SALE,
    DEAL_CHANNEL_SWITCH_RECOMMENDED,
    DEAL_FOLLOW_UP_READY,
    COMMUNICATION_STARTED,
    COMMUNICATION_CHANNEL_SWITCHED,
    COMMUNICATION_SUMMARY_CREATED,
    MESSAGE_RECEIVED,
    MESSAGE_SENT,
    CALL_RECEIVED,
    CALL_COMPLETED,
    OFFER_CREATED,
    OFFER_SENT,
    OFFER_ACCEPTED,
    OFFER_REJECTED,
    DEAL_CONDITIONS_CONFIRMED,
    DEAL_NOTE_CREATED,
    DEAL_NOTE_UPDATED,
    COUNTERPARTY_COMPLETED,
    DOCUMENT_CREATED,
    DOCUMENT_SENT,
    DOCUMENT_CONFIRMED,
    DOCUMENT_SIGNED,
    INVOICE_CREATED,
    INVOICE_SENT,
    INVOICE_OVERDUE,
    INVOICE_REMINDER_SENT,
    PAYMENT_RECEIVED,
    INVOICE_PAID,
    ESCALATION_CREATED,
    ESCALATION_ASSIGNED,
    ESCALATION_STARTED,
    ESCALATION_RESOLVED,
    ESCALATION_CANCELED,
}
