import { pgEnum } from "drizzle-orm/pg-core"

// public.textTemplatePositions
export const textTemplatePositionsEnum = pgEnum("texttemplatepositions", [
    "startText",
    "endText",
])

// public.folderFunctions
export const folderFunctionsEnum = pgEnum("folderfunctions", [
    "none",
    "yearSubCategory",
    "incomingInvoices",
    "invoices",
    "quotes",
    "confirmationOrders",
    "deliveryNotes",
    "vehicleData",
    "reminders",
    "taxData",
    "deposit",
    "timeEvaluations",
])

// public.locked_tenant
export const lockedTenantEnum = pgEnum("locked_tenant", [
    "maintenance_tenant",
    "maintenance",
    "general",
    "no_subscription",
])

// public.credential_types
export const credentialTypesEnum = pgEnum("credential_types", [
    "mail",
    "m365",
])

// public.payment_types
export const paymentTypesEnum = pgEnum("payment_types", [
    "transfer",
    "direct_debit",
])

// public.notification_status
export const notificationStatusEnum = pgEnum("notification_status", [
    "queued",
    "sent",
    "failed",
    "read",
])

// public.notification_channel
export const notificationChannelEnum = pgEnum("notification_channel", [
    "email",
    "inapp",
    "sms",
    "push",
    "webhook",
])

// public.notification_severity
export const notificationSeverityEnum = pgEnum("notification_severity", [
    "info",
    "success",
    "warning",
    "error",
])

// public.times_state
export const timesStateEnum = pgEnum("times_state", [
    "submitted",
    "approved",
    "draft",
])

export const helpdeskStatusEnum = [
    "open",
    "in_progress",
    "waiting_for_customer",
    "answered",
    "closed",
] as const

export const helpdeskPriorityEnum = [
    "low",
    "normal",
    "high",
] as const

export const helpdeskDirectionEnum = [
    "incoming",
    "outgoing",
    "internal",
    "system",
] as const

