2148 lines
52 KiB
TypeScript
2148 lines
52 KiB
TypeScript
|
|
/* !!! This is code generated by Prisma. Do not edit directly. !!! */
|
|
/* eslint-disable */
|
|
// biome-ignore-all lint: generated file
|
|
// @ts-nocheck
|
|
/*
|
|
* This file exports all enum related types from the schema.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
|
|
export const SeatType = {
|
|
office: 'office',
|
|
field: 'field'
|
|
} as const
|
|
|
|
export type SeatType = (typeof SeatType)[keyof typeof SeatType]
|
|
|
|
|
|
export const ActivityActorKind = {
|
|
user: 'user',
|
|
system: 'system',
|
|
automation: 'automation',
|
|
ki_agent: 'ki_agent'
|
|
} as const
|
|
|
|
export type ActivityActorKind = (typeof ActivityActorKind)[keyof typeof ActivityActorKind]
|
|
|
|
|
|
export const AdminAvailabilityDay = {
|
|
monday: 'monday',
|
|
tuesday: 'tuesday',
|
|
wednesday: 'wednesday',
|
|
thursday: 'thursday',
|
|
friday: 'friday',
|
|
saturday: 'saturday',
|
|
sunday: 'sunday'
|
|
} as const
|
|
|
|
export type AdminAvailabilityDay = (typeof AdminAvailabilityDay)[keyof typeof AdminAvailabilityDay]
|
|
|
|
|
|
export const AdminAvailabilityOverrideKind = {
|
|
unavailable: 'unavailable',
|
|
custom_window: 'custom_window'
|
|
} as const
|
|
|
|
export type AdminAvailabilityOverrideKind = (typeof AdminAvailabilityOverrideKind)[keyof typeof AdminAvailabilityOverrideKind]
|
|
|
|
|
|
export const AdminBookingStatus = {
|
|
reserved: 'reserved',
|
|
confirmed: 'confirmed',
|
|
cancelled: 'cancelled',
|
|
rescheduled: 'rescheduled',
|
|
completed: 'completed',
|
|
no_show: 'no_show',
|
|
provider_sync_failed: 'provider_sync_failed'
|
|
} as const
|
|
|
|
export type AdminBookingStatus = (typeof AdminBookingStatus)[keyof typeof AdminBookingStatus]
|
|
|
|
|
|
export const AdminBookingAssignmentKind = {
|
|
round_robin: 'round_robin',
|
|
manual: 'manual'
|
|
} as const
|
|
|
|
export type AdminBookingAssignmentKind = (typeof AdminBookingAssignmentKind)[keyof typeof AdminBookingAssignmentKind]
|
|
|
|
|
|
export const AdminBookingReminderStatus = {
|
|
pending: 'pending',
|
|
processing: 'processing',
|
|
sent: 'sent',
|
|
skipped: 'skipped',
|
|
failed: 'failed',
|
|
cancelled: 'cancelled'
|
|
} as const
|
|
|
|
export type AdminBookingReminderStatus = (typeof AdminBookingReminderStatus)[keyof typeof AdminBookingReminderStatus]
|
|
|
|
|
|
export const AdminCalendarConnectionStatus = {
|
|
active: 'active',
|
|
degraded: 'degraded',
|
|
reconnect_required: 'reconnect_required',
|
|
revoked: 'revoked'
|
|
} as const
|
|
|
|
export type AdminCalendarConnectionStatus = (typeof AdminCalendarConnectionStatus)[keyof typeof AdminCalendarConnectionStatus]
|
|
|
|
|
|
export const AdminCalendarSyncStatus = {
|
|
pending: 'pending',
|
|
syncing: 'syncing',
|
|
active: 'active',
|
|
recovery_required: 'recovery_required',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type AdminCalendarSyncStatus = (typeof AdminCalendarSyncStatus)[keyof typeof AdminCalendarSyncStatus]
|
|
|
|
|
|
export const AdminConnectionProvider = {
|
|
google_mail: 'google_mail',
|
|
microsoft_mail: 'microsoft_mail',
|
|
aircall: 'aircall',
|
|
google_calendar: 'google_calendar',
|
|
microsoft_calendar: 'microsoft_calendar',
|
|
slack: 'slack',
|
|
linkedin: 'linkedin',
|
|
meeting_webhook: 'meeting_webhook'
|
|
} as const
|
|
|
|
export type AdminConnectionProvider = (typeof AdminConnectionProvider)[keyof typeof AdminConnectionProvider]
|
|
|
|
|
|
export const AdminConnectionCapability = {
|
|
email: 'email',
|
|
telephony: 'telephony',
|
|
calendar: 'calendar',
|
|
team_chat: 'team_chat',
|
|
professional_network: 'professional_network',
|
|
meeting_artifact: 'meeting_artifact'
|
|
} as const
|
|
|
|
export type AdminConnectionCapability = (typeof AdminConnectionCapability)[keyof typeof AdminConnectionCapability]
|
|
|
|
|
|
export const AdminConnectionStatus = {
|
|
pending: 'pending',
|
|
active: 'active',
|
|
degraded: 'degraded',
|
|
revoked: 'revoked'
|
|
} as const
|
|
|
|
export type AdminConnectionStatus = (typeof AdminConnectionStatus)[keyof typeof AdminConnectionStatus]
|
|
|
|
|
|
export const AdminMailboxStatus = {
|
|
connecting: 'connecting',
|
|
active: 'active',
|
|
degraded: 'degraded',
|
|
revoked: 'revoked'
|
|
} as const
|
|
|
|
export type AdminMailboxStatus = (typeof AdminMailboxStatus)[keyof typeof AdminMailboxStatus]
|
|
|
|
|
|
export const AdminMailboxSyncStatus = {
|
|
pending: 'pending',
|
|
running: 'running',
|
|
complete: 'complete',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type AdminMailboxSyncStatus = (typeof AdminMailboxSyncStatus)[keyof typeof AdminMailboxSyncStatus]
|
|
|
|
|
|
export const AdminEmailDirection = {
|
|
inbound: 'inbound',
|
|
outbound: 'outbound'
|
|
} as const
|
|
|
|
export type AdminEmailDirection = (typeof AdminEmailDirection)[keyof typeof AdminEmailDirection]
|
|
|
|
|
|
export const AdminEmailMatchStatus = {
|
|
matched: 'matched',
|
|
ambiguous: 'ambiguous',
|
|
unmatched: 'unmatched',
|
|
manual: 'manual'
|
|
} as const
|
|
|
|
export type AdminEmailMatchStatus = (typeof AdminEmailMatchStatus)[keyof typeof AdminEmailMatchStatus]
|
|
|
|
|
|
export const AdminEmailEventType = {
|
|
queued: 'queued',
|
|
sent: 'sent',
|
|
delivered: 'delivered',
|
|
bounced: 'bounced',
|
|
opened: 'opened',
|
|
clicked: 'clicked',
|
|
replied: 'replied'
|
|
} as const
|
|
|
|
export type AdminEmailEventType = (typeof AdminEmailEventType)[keyof typeof AdminEmailEventType]
|
|
|
|
|
|
export const AdminScheduledEmailStatus = {
|
|
draft: 'draft',
|
|
blocked: 'blocked',
|
|
queued: 'queued',
|
|
sending: 'sending',
|
|
sent: 'sent',
|
|
cancelled: 'cancelled',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type AdminScheduledEmailStatus = (typeof AdminScheduledEmailStatus)[keyof typeof AdminScheduledEmailStatus]
|
|
|
|
|
|
export const AdminNoReplyReminderStatus = {
|
|
pending: 'pending',
|
|
fired: 'fired',
|
|
dismissed: 'dismissed',
|
|
cancelled: 'cancelled'
|
|
} as const
|
|
|
|
export type AdminNoReplyReminderStatus = (typeof AdminNoReplyReminderStatus)[keyof typeof AdminNoReplyReminderStatus]
|
|
|
|
|
|
export const AdminBulkEmailRunStatus = {
|
|
draft: 'draft',
|
|
blocked: 'blocked',
|
|
queued: 'queued',
|
|
running: 'running',
|
|
complete: 'complete',
|
|
cancelled: 'cancelled',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type AdminBulkEmailRunStatus = (typeof AdminBulkEmailRunStatus)[keyof typeof AdminBulkEmailRunStatus]
|
|
|
|
|
|
export const AdminSendingDomainStatus = {
|
|
pending: 'pending',
|
|
verified: 'verified',
|
|
degraded: 'degraded',
|
|
revoked: 'revoked'
|
|
} as const
|
|
|
|
export type AdminSendingDomainStatus = (typeof AdminSendingDomainStatus)[keyof typeof AdminSendingDomainStatus]
|
|
|
|
|
|
export const AdminUserStatus = {
|
|
active: 'active',
|
|
disabled: 'disabled',
|
|
locked: 'locked'
|
|
} as const
|
|
|
|
export type AdminUserStatus = (typeof AdminUserStatus)[keyof typeof AdminUserStatus]
|
|
|
|
|
|
export const AdminLeadStatus = {
|
|
new: 'new',
|
|
contacted: 'contacted',
|
|
qualified: 'qualified',
|
|
disqualified: 'disqualified'
|
|
} as const
|
|
|
|
export type AdminLeadStatus = (typeof AdminLeadStatus)[keyof typeof AdminLeadStatus]
|
|
|
|
|
|
export const AdminLeadActivityType = {
|
|
captured: 'captured',
|
|
imported: 'imported',
|
|
manually_created: 'manually_created',
|
|
status_changed: 'status_changed',
|
|
assigned: 'assigned',
|
|
note_added: 'note_added',
|
|
archived: 'archived',
|
|
restored: 'restored',
|
|
duplicate_hint_recorded: 'duplicate_hint_recorded',
|
|
legacy_event: 'legacy_event'
|
|
} as const
|
|
|
|
export type AdminLeadActivityType = (typeof AdminLeadActivityType)[keyof typeof AdminLeadActivityType]
|
|
|
|
|
|
export const AdminContactChannelKind = {
|
|
email: 'email',
|
|
phone: 'phone',
|
|
linkedin: 'linkedin',
|
|
website: 'website',
|
|
other: 'other'
|
|
} as const
|
|
|
|
export type AdminContactChannelKind = (typeof AdminContactChannelKind)[keyof typeof AdminContactChannelKind]
|
|
|
|
|
|
export const AdminPipelineStageKind = {
|
|
open: 'open',
|
|
won: 'won',
|
|
lost: 'lost'
|
|
} as const
|
|
|
|
export type AdminPipelineStageKind = (typeof AdminPipelineStageKind)[keyof typeof AdminPipelineStageKind]
|
|
|
|
|
|
export const AdminDealStatus = {
|
|
open: 'open',
|
|
won: 'won',
|
|
lost: 'lost'
|
|
} as const
|
|
|
|
export type AdminDealStatus = (typeof AdminDealStatus)[keyof typeof AdminDealStatus]
|
|
|
|
|
|
export const AdminActivityType = {
|
|
configuration_changed: 'configuration_changed',
|
|
data_job_requested: 'data_job_requested',
|
|
data_job_updated: 'data_job_updated',
|
|
company_created: 'company_created',
|
|
company_updated: 'company_updated',
|
|
contact_created: 'contact_created',
|
|
contact_updated: 'contact_updated',
|
|
note_added: 'note_added',
|
|
lead_updated: 'lead_updated',
|
|
lead_converted: 'lead_converted',
|
|
lead_assigned: 'lead_assigned',
|
|
lead_scored: 'lead_scored',
|
|
lead_enriched: 'lead_enriched',
|
|
lead_merged: 'lead_merged',
|
|
deal_created: 'deal_created',
|
|
deal_updated: 'deal_updated',
|
|
deal_stage_changed: 'deal_stage_changed',
|
|
deal_won: 'deal_won',
|
|
deal_lost: 'deal_lost',
|
|
task_created: 'task_created',
|
|
task_completed: 'task_completed',
|
|
email: 'email',
|
|
call: 'call',
|
|
meeting: 'meeting',
|
|
sequence: 'sequence',
|
|
quote: 'quote',
|
|
signature: 'signature',
|
|
tenant_linked: 'tenant_linked'
|
|
} as const
|
|
|
|
export type AdminActivityType = (typeof AdminActivityType)[keyof typeof AdminActivityType]
|
|
|
|
|
|
export const AdminLeadAssignmentStrategy = {
|
|
fixed: 'fixed',
|
|
round_robin: 'round_robin'
|
|
} as const
|
|
|
|
export type AdminLeadAssignmentStrategy = (typeof AdminLeadAssignmentStrategy)[keyof typeof AdminLeadAssignmentStrategy]
|
|
|
|
|
|
export const AdminLeadRuleOperator = {
|
|
equals: 'equals',
|
|
not_equals: 'not_equals',
|
|
contains: 'contains',
|
|
present: 'present'
|
|
} as const
|
|
|
|
export type AdminLeadRuleOperator = (typeof AdminLeadRuleOperator)[keyof typeof AdminLeadRuleOperator]
|
|
|
|
|
|
export const AdminLeadScoreField = {
|
|
source: 'source',
|
|
region: 'region',
|
|
country: 'country',
|
|
company: 'company',
|
|
has_email: 'has_email',
|
|
has_phone: 'has_phone'
|
|
} as const
|
|
|
|
export type AdminLeadScoreField = (typeof AdminLeadScoreField)[keyof typeof AdminLeadScoreField]
|
|
|
|
|
|
export const AdminDuplicateCandidateStatus = {
|
|
open: 'open',
|
|
dismissed: 'dismissed',
|
|
merged: 'merged'
|
|
} as const
|
|
|
|
export type AdminDuplicateCandidateStatus = (typeof AdminDuplicateCandidateStatus)[keyof typeof AdminDuplicateCandidateStatus]
|
|
|
|
|
|
export const AdminLeadEnrichmentStatus = {
|
|
pending: 'pending',
|
|
complete: 'complete',
|
|
unavailable: 'unavailable',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type AdminLeadEnrichmentStatus = (typeof AdminLeadEnrichmentStatus)[keyof typeof AdminLeadEnrichmentStatus]
|
|
|
|
|
|
export const AdminTaskPriority = {
|
|
low: 'low',
|
|
normal: 'normal',
|
|
high: 'high',
|
|
urgent: 'urgent'
|
|
} as const
|
|
|
|
export type AdminTaskPriority = (typeof AdminTaskPriority)[keyof typeof AdminTaskPriority]
|
|
|
|
|
|
export const AdminTaskStatus = {
|
|
open: 'open',
|
|
completed: 'completed',
|
|
cancelled: 'cancelled'
|
|
} as const
|
|
|
|
export type AdminTaskStatus = (typeof AdminTaskStatus)[keyof typeof AdminTaskStatus]
|
|
|
|
|
|
export const AdminTaskSource = {
|
|
manual: 'manual',
|
|
email: 'email',
|
|
call: 'call'
|
|
} as const
|
|
|
|
export type AdminTaskSource = (typeof AdminTaskSource)[keyof typeof AdminTaskSource]
|
|
|
|
|
|
export const AdminTaskRecurrenceFrequency = {
|
|
daily: 'daily',
|
|
weekly: 'weekly',
|
|
monthly: 'monthly'
|
|
} as const
|
|
|
|
export type AdminTaskRecurrenceFrequency = (typeof AdminTaskRecurrenceFrequency)[keyof typeof AdminTaskRecurrenceFrequency]
|
|
|
|
|
|
export const AdminSalesCustomFieldTarget = {
|
|
contact: 'contact',
|
|
deal: 'deal'
|
|
} as const
|
|
|
|
export type AdminSalesCustomFieldTarget = (typeof AdminSalesCustomFieldTarget)[keyof typeof AdminSalesCustomFieldTarget]
|
|
|
|
|
|
export const AdminSalesCustomFieldType = {
|
|
text: 'text',
|
|
number: 'number',
|
|
boolean: 'boolean',
|
|
date: 'date',
|
|
single_select: 'single_select'
|
|
} as const
|
|
|
|
export type AdminSalesCustomFieldType = (typeof AdminSalesCustomFieldType)[keyof typeof AdminSalesCustomFieldType]
|
|
|
|
|
|
export const AdminSalesDataJobStatus = {
|
|
pending: 'pending',
|
|
running: 'running',
|
|
completed: 'completed',
|
|
completed_with_errors: 'completed_with_errors',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type AdminSalesDataJobStatus = (typeof AdminSalesDataJobStatus)[keyof typeof AdminSalesDataJobStatus]
|
|
|
|
|
|
export const AdminCallDirection = {
|
|
inbound: 'inbound',
|
|
outbound: 'outbound'
|
|
} as const
|
|
|
|
export type AdminCallDirection = (typeof AdminCallDirection)[keyof typeof AdminCallDirection]
|
|
|
|
|
|
export const AdminCallStatus = {
|
|
ringing: 'ringing',
|
|
answered: 'answered',
|
|
completed: 'completed',
|
|
missed: 'missed',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type AdminCallStatus = (typeof AdminCallStatus)[keyof typeof AdminCallStatus]
|
|
|
|
|
|
export const AdminCallMatchStatus = {
|
|
unmatched: 'unmatched',
|
|
unique: 'unique',
|
|
ambiguous: 'ambiguous',
|
|
confirmed: 'confirmed'
|
|
} as const
|
|
|
|
export type AdminCallMatchStatus = (typeof AdminCallMatchStatus)[keyof typeof AdminCallMatchStatus]
|
|
|
|
|
|
export const AdminCallParticipantKind = {
|
|
admin: 'admin',
|
|
contact: 'contact',
|
|
lead: 'lead',
|
|
external: 'external'
|
|
} as const
|
|
|
|
export type AdminCallParticipantKind = (typeof AdminCallParticipantKind)[keyof typeof AdminCallParticipantKind]
|
|
|
|
|
|
export const AdminCallRecordingStatus = {
|
|
pending: 'pending',
|
|
processing: 'processing',
|
|
clean: 'clean',
|
|
rejected: 'rejected',
|
|
expired: 'expired',
|
|
deleted: 'deleted'
|
|
} as const
|
|
|
|
export type AdminCallRecordingStatus = (typeof AdminCallRecordingStatus)[keyof typeof AdminCallRecordingStatus]
|
|
|
|
|
|
export const AdminDialerListStatus = {
|
|
draft: 'draft',
|
|
active: 'active',
|
|
paused: 'paused',
|
|
completed: 'completed'
|
|
} as const
|
|
|
|
export type AdminDialerListStatus = (typeof AdminDialerListStatus)[keyof typeof AdminDialerListStatus]
|
|
|
|
|
|
export const AdminDialerEntryStatus = {
|
|
pending: 'pending',
|
|
active: 'active',
|
|
completed: 'completed',
|
|
skipped: 'skipped',
|
|
blocked: 'blocked'
|
|
} as const
|
|
|
|
export type AdminDialerEntryStatus = (typeof AdminDialerEntryStatus)[keyof typeof AdminDialerEntryStatus]
|
|
|
|
|
|
export const AdminOutboundCallRequestStatus = {
|
|
pending: 'pending',
|
|
processing: 'processing',
|
|
accepted: 'accepted',
|
|
failed: 'failed',
|
|
cancelled: 'cancelled'
|
|
} as const
|
|
|
|
export type AdminOutboundCallRequestStatus = (typeof AdminOutboundCallRequestStatus)[keyof typeof AdminOutboundCallRequestStatus]
|
|
|
|
|
|
export const AppCategory = {
|
|
erp: 'erp',
|
|
communication: 'communication',
|
|
calendar: 'calendar',
|
|
signature: 'signature',
|
|
payment: 'payment',
|
|
ki: 'ki'
|
|
} as const
|
|
|
|
export type AppCategory = (typeof AppCategory)[keyof typeof AppCategory]
|
|
|
|
|
|
export const AppConnectionType = {
|
|
oauth2: 'oauth2',
|
|
api_key: 'api_key',
|
|
rest_api: 'rest_api',
|
|
windows_client: 'windows_client'
|
|
} as const
|
|
|
|
export type AppConnectionType = (typeof AppConnectionType)[keyof typeof AppConnectionType]
|
|
|
|
|
|
export const DataConnectionStatus = {
|
|
pending: 'pending',
|
|
active: 'active',
|
|
degraded: 'degraded',
|
|
broken: 'broken',
|
|
revoked: 'revoked'
|
|
} as const
|
|
|
|
export type DataConnectionStatus = (typeof DataConnectionStatus)[keyof typeof DataConnectionStatus]
|
|
|
|
|
|
export const AppSyncKind = {
|
|
manual: 'manual',
|
|
scheduled: 'scheduled',
|
|
webhook: 'webhook'
|
|
} as const
|
|
|
|
export type AppSyncKind = (typeof AppSyncKind)[keyof typeof AppSyncKind]
|
|
|
|
|
|
export const AppSyncStatus = {
|
|
pending: 'pending',
|
|
running: 'running',
|
|
completed: 'completed',
|
|
partial: 'partial',
|
|
failed: 'failed',
|
|
cancelled: 'cancelled'
|
|
} as const
|
|
|
|
export type AppSyncStatus = (typeof AppSyncStatus)[keyof typeof AppSyncStatus]
|
|
|
|
|
|
export const AppSyncLogSeverity = {
|
|
info: 'info',
|
|
success: 'success',
|
|
warning: 'warning',
|
|
error: 'error'
|
|
} as const
|
|
|
|
export type AppSyncLogSeverity = (typeof AppSyncLogSeverity)[keyof typeof AppSyncLogSeverity]
|
|
|
|
|
|
export const AppSyncItemOperation = {
|
|
created: 'created',
|
|
updated: 'updated',
|
|
deleted: 'deleted',
|
|
skipped: 'skipped'
|
|
} as const
|
|
|
|
export type AppSyncItemOperation = (typeof AppSyncItemOperation)[keyof typeof AppSyncItemOperation]
|
|
|
|
|
|
export const AppSyncItemStatus = {
|
|
pending: 'pending',
|
|
synced: 'synced',
|
|
failed: 'failed',
|
|
skipped: 'skipped'
|
|
} as const
|
|
|
|
export type AppSyncItemStatus = (typeof AppSyncItemStatus)[keyof typeof AppSyncItemStatus]
|
|
|
|
|
|
export const AppEntityBindingState = {
|
|
active: 'active',
|
|
quarantined: 'quarantined',
|
|
missing: 'missing',
|
|
ignored: 'ignored',
|
|
unlinked: 'unlinked'
|
|
} as const
|
|
|
|
export type AppEntityBindingState = (typeof AppEntityBindingState)[keyof typeof AppEntityBindingState]
|
|
|
|
|
|
export const ProjektMitgliedRolle = {
|
|
monteur: 'monteur',
|
|
projektleiter: 'projektleiter',
|
|
zustaendig: 'zustaendig',
|
|
beobachter: 'beobachter'
|
|
} as const
|
|
|
|
export type ProjektMitgliedRolle = (typeof ProjektMitgliedRolle)[keyof typeof ProjektMitgliedRolle]
|
|
|
|
|
|
export const ProjektTerminStatus = {
|
|
geplant: 'geplant',
|
|
bestaetigt: 'bestaetigt',
|
|
erledigt: 'erledigt',
|
|
abgesagt: 'abgesagt'
|
|
} as const
|
|
|
|
export type ProjektTerminStatus = (typeof ProjektTerminStatus)[keyof typeof ProjektTerminStatus]
|
|
|
|
|
|
export const RechnungStatus = {
|
|
entwurf: 'entwurf',
|
|
gestellt: 'gestellt',
|
|
bezahlt: 'bezahlt',
|
|
storniert: 'storniert'
|
|
} as const
|
|
|
|
export type RechnungStatus = (typeof RechnungStatus)[keyof typeof RechnungStatus]
|
|
|
|
|
|
export const RechnungQuelle = {
|
|
manuell: 'manuell',
|
|
kwp: 'kwp'
|
|
} as const
|
|
|
|
export type RechnungQuelle = (typeof RechnungQuelle)[keyof typeof RechnungQuelle]
|
|
|
|
|
|
export const ProjektChecklistTyp = {
|
|
generisch: 'generisch',
|
|
maengel: 'maengel',
|
|
abnahme_doku: 'abnahme_doku'
|
|
} as const
|
|
|
|
export type ProjektChecklistTyp = (typeof ProjektChecklistTyp)[keyof typeof ProjektChecklistTyp]
|
|
|
|
|
|
export const ProjektChecklistItemStatus = {
|
|
offen: 'offen',
|
|
erledigt: 'erledigt',
|
|
entfaellt: 'entfaellt'
|
|
} as const
|
|
|
|
export type ProjektChecklistItemStatus = (typeof ProjektChecklistItemStatus)[keyof typeof ProjektChecklistItemStatus]
|
|
|
|
|
|
export const ScheduleEntryStatus = {
|
|
planned: 'planned',
|
|
confirmed: 'confirmed',
|
|
in_progress: 'in_progress',
|
|
done: 'done',
|
|
cancelled: 'cancelled'
|
|
} as const
|
|
|
|
export type ScheduleEntryStatus = (typeof ScheduleEntryStatus)[keyof typeof ScheduleEntryStatus]
|
|
|
|
|
|
export const ScheduleConflictType = {
|
|
double_booking: 'double_booking',
|
|
absence: 'absence',
|
|
availability: 'availability'
|
|
} as const
|
|
|
|
export type ScheduleConflictType = (typeof ScheduleConflictType)[keyof typeof ScheduleConflictType]
|
|
|
|
|
|
export const ScheduleConflictSeverity = {
|
|
warning: 'warning',
|
|
blocking: 'blocking'
|
|
} as const
|
|
|
|
export type ScheduleConflictSeverity = (typeof ScheduleConflictSeverity)[keyof typeof ScheduleConflictSeverity]
|
|
|
|
|
|
export const ScheduleSyncStatus = {
|
|
pending: 'pending',
|
|
synced: 'synced',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type ScheduleSyncStatus = (typeof ScheduleSyncStatus)[keyof typeof ScheduleSyncStatus]
|
|
|
|
|
|
export const AcceptanceKind = {
|
|
full: 'full',
|
|
with_defects: 'with_defects',
|
|
rejected: 'rejected'
|
|
} as const
|
|
|
|
export type AcceptanceKind = (typeof AcceptanceKind)[keyof typeof AcceptanceKind]
|
|
|
|
|
|
export const AcceptanceSignerRole = {
|
|
kunde: 'kunde',
|
|
monteur: 'monteur'
|
|
} as const
|
|
|
|
export type AcceptanceSignerRole = (typeof AcceptanceSignerRole)[keyof typeof AcceptanceSignerRole]
|
|
|
|
|
|
export const OfflineSyncOperation = {
|
|
schedule_upsert: 'schedule_upsert',
|
|
schedule_status: 'schedule_status',
|
|
acceptance_submit: 'acceptance_submit'
|
|
} as const
|
|
|
|
export type OfflineSyncOperation = (typeof OfflineSyncOperation)[keyof typeof OfflineSyncOperation]
|
|
|
|
|
|
export const OfflineSyncStatus = {
|
|
pending: 'pending',
|
|
applied: 'applied',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type OfflineSyncStatus = (typeof OfflineSyncStatus)[keyof typeof OfflineSyncStatus]
|
|
|
|
|
|
export const ProjektTerminTyp = {
|
|
vor_ort: 'vor_ort',
|
|
telefon: 'telefon',
|
|
online: 'online'
|
|
} as const
|
|
|
|
export type ProjektTerminTyp = (typeof ProjektTerminTyp)[keyof typeof ProjektTerminTyp]
|
|
|
|
|
|
export const AutomationRuleStatus = {
|
|
draft: 'draft',
|
|
active: 'active',
|
|
paused: 'paused',
|
|
archived: 'archived'
|
|
} as const
|
|
|
|
export type AutomationRuleStatus = (typeof AutomationRuleStatus)[keyof typeof AutomationRuleStatus]
|
|
|
|
|
|
export const AutomationStepKind = {
|
|
trigger: 'trigger',
|
|
condition: 'condition',
|
|
action: 'action',
|
|
flow_control: 'flow_control'
|
|
} as const
|
|
|
|
export type AutomationStepKind = (typeof AutomationStepKind)[keyof typeof AutomationStepKind]
|
|
|
|
|
|
export const AutomationExecutionStatus = {
|
|
queued: 'queued',
|
|
running: 'running',
|
|
success: 'success',
|
|
failed: 'failed',
|
|
paused: 'paused',
|
|
waiting: 'waiting',
|
|
skipped: 'skipped',
|
|
retrying: 'retrying'
|
|
} as const
|
|
|
|
export type AutomationExecutionStatus = (typeof AutomationExecutionStatus)[keyof typeof AutomationExecutionStatus]
|
|
|
|
|
|
export const BookingAssignmentStrategy = {
|
|
round_robin: 'round_robin',
|
|
specific_provider_choice: 'specific_provider_choice',
|
|
first_available: 'first_available'
|
|
} as const
|
|
|
|
export type BookingAssignmentStrategy = (typeof BookingAssignmentStrategy)[keyof typeof BookingAssignmentStrategy]
|
|
|
|
|
|
export const BookingDayOfWeek = {
|
|
monday: 'monday',
|
|
tuesday: 'tuesday',
|
|
wednesday: 'wednesday',
|
|
thursday: 'thursday',
|
|
friday: 'friday',
|
|
saturday: 'saturday',
|
|
sunday: 'sunday'
|
|
} as const
|
|
|
|
export type BookingDayOfWeek = (typeof BookingDayOfWeek)[keyof typeof BookingDayOfWeek]
|
|
|
|
|
|
export const AvailabilityExceptionKind = {
|
|
unavailable: 'unavailable',
|
|
custom_window: 'custom_window'
|
|
} as const
|
|
|
|
export type AvailabilityExceptionKind = (typeof AvailabilityExceptionKind)[keyof typeof AvailabilityExceptionKind]
|
|
|
|
|
|
export const AppointmentStatus = {
|
|
scheduled: 'scheduled',
|
|
held: 'held',
|
|
cancelled: 'cancelled',
|
|
no_show: 'no_show',
|
|
rescheduled: 'rescheduled'
|
|
} as const
|
|
|
|
export type AppointmentStatus = (typeof AppointmentStatus)[keyof typeof AppointmentStatus]
|
|
|
|
|
|
export const AppointmentCancelledByKind = {
|
|
customer: 'customer',
|
|
provider: 'provider',
|
|
system: 'system'
|
|
} as const
|
|
|
|
export type AppointmentCancelledByKind = (typeof AppointmentCancelledByKind)[keyof typeof AppointmentCancelledByKind]
|
|
|
|
|
|
export const CalendarProvider = {
|
|
google: 'google'
|
|
} as const
|
|
|
|
export type CalendarProvider = (typeof CalendarProvider)[keyof typeof CalendarProvider]
|
|
|
|
|
|
export const CalendarSyncDirection = {
|
|
bidirectional: 'bidirectional',
|
|
hivegrid_to_external_only: 'hivegrid_to_external_only',
|
|
external_to_hivegrid_only: 'external_to_hivegrid_only'
|
|
} as const
|
|
|
|
export type CalendarSyncDirection = (typeof CalendarSyncDirection)[keyof typeof CalendarSyncDirection]
|
|
|
|
|
|
export const CalendarConnectionStatus = {
|
|
active: 'active',
|
|
paused: 'paused',
|
|
error: 'error',
|
|
revoked: 'revoked'
|
|
} as const
|
|
|
|
export type CalendarConnectionStatus = (typeof CalendarConnectionStatus)[keyof typeof CalendarConnectionStatus]
|
|
|
|
|
|
export const CalendarEventSource = {
|
|
hivegrid_internal: 'hivegrid_internal',
|
|
external_synced: 'external_synced'
|
|
} as const
|
|
|
|
export type CalendarEventSource = (typeof CalendarEventSource)[keyof typeof CalendarEventSource]
|
|
|
|
|
|
export const CalendarWebhookProcessingStatus = {
|
|
pending: 'pending',
|
|
processing: 'processing',
|
|
completed: 'completed',
|
|
failed: 'failed',
|
|
skipped: 'skipped'
|
|
} as const
|
|
|
|
export type CalendarWebhookProcessingStatus = (typeof CalendarWebhookProcessingStatus)[keyof typeof CalendarWebhookProcessingStatus]
|
|
|
|
|
|
export const CalendarConflictResolution = {
|
|
external_won: 'external_won',
|
|
hivegrid_won: 'hivegrid_won',
|
|
external_deleted: 'external_deleted',
|
|
hivegrid_deleted: 'hivegrid_deleted'
|
|
} as const
|
|
|
|
export type CalendarConflictResolution = (typeof CalendarConflictResolution)[keyof typeof CalendarConflictResolution]
|
|
|
|
|
|
export const TeamChatKind = {
|
|
project: 'project',
|
|
group: 'group',
|
|
dm: 'dm'
|
|
} as const
|
|
|
|
export type TeamChatKind = (typeof TeamChatKind)[keyof typeof TeamChatKind]
|
|
|
|
|
|
export const TeamChatArchivedReason = {
|
|
manual: 'manual',
|
|
project_completed: 'project_completed',
|
|
project_cancelled: 'project_cancelled'
|
|
} as const
|
|
|
|
export type TeamChatArchivedReason = (typeof TeamChatArchivedReason)[keyof typeof TeamChatArchivedReason]
|
|
|
|
|
|
export const TeamChatNotificationPreference = {
|
|
all_messages: 'all_messages',
|
|
mentions_only: 'mentions_only',
|
|
muted: 'muted'
|
|
} as const
|
|
|
|
export type TeamChatNotificationPreference = (typeof TeamChatNotificationPreference)[keyof typeof TeamChatNotificationPreference]
|
|
|
|
|
|
export const TeamChatMemberRole = {
|
|
admin: 'admin',
|
|
member: 'member'
|
|
} as const
|
|
|
|
export type TeamChatMemberRole = (typeof TeamChatMemberRole)[keyof typeof TeamChatMemberRole]
|
|
|
|
|
|
export const TeamChatMessageFormat = {
|
|
markdown: 'markdown',
|
|
system: 'system'
|
|
} as const
|
|
|
|
export type TeamChatMessageFormat = (typeof TeamChatMessageFormat)[keyof typeof TeamChatMessageFormat]
|
|
|
|
|
|
export const TeamChatSystemEventKind = {
|
|
group_created: 'group_created',
|
|
project_created: 'project_created',
|
|
project_leader_changed: 'project_leader_changed',
|
|
member_write_access_changed: 'member_write_access_changed',
|
|
member_added: 'member_added',
|
|
member_removed: 'member_removed',
|
|
channel_renamed: 'channel_renamed',
|
|
channel_privacy_changed: 'channel_privacy_changed',
|
|
channel_archived: 'channel_archived',
|
|
project_stage_changed: 'project_stage_changed',
|
|
acceptance_completed: 'acceptance_completed',
|
|
task_created: 'task_created'
|
|
} as const
|
|
|
|
export type TeamChatSystemEventKind = (typeof TeamChatSystemEventKind)[keyof typeof TeamChatSystemEventKind]
|
|
|
|
|
|
export const TeamChatEventType = {
|
|
message_created: 'message_created',
|
|
message_updated: 'message_updated',
|
|
message_deleted: 'message_deleted',
|
|
reaction_added: 'reaction_added',
|
|
reaction_removed: 'reaction_removed',
|
|
thread_reply: 'thread_reply',
|
|
read_updated: 'read_updated',
|
|
member_added: 'member_added',
|
|
member_removed: 'member_removed',
|
|
channel_archived: 'channel_archived',
|
|
message_pin_changed: 'message_pin_changed',
|
|
link_preview_ready: 'link_preview_ready'
|
|
} as const
|
|
|
|
export type TeamChatEventType = (typeof TeamChatEventType)[keyof typeof TeamChatEventType]
|
|
|
|
|
|
export const KontaktTyp = {
|
|
privatperson: 'privatperson',
|
|
organisation: 'organisation'
|
|
} as const
|
|
|
|
export type KontaktTyp = (typeof KontaktTyp)[keyof typeof KontaktTyp]
|
|
|
|
|
|
export const KontaktStatus = {
|
|
kontakt: 'kontakt',
|
|
kunde: 'kunde',
|
|
bestandskunde: 'bestandskunde'
|
|
} as const
|
|
|
|
export type KontaktStatus = (typeof KontaktStatus)[keyof typeof KontaktStatus]
|
|
|
|
|
|
export const OrgMerkmal = {
|
|
gmbh: 'gmbh',
|
|
kg: 'kg',
|
|
oeffentliche_einrichtung: 'oeffentliche_einrichtung',
|
|
sonstige: 'sonstige'
|
|
} as const
|
|
|
|
export type OrgMerkmal = (typeof OrgMerkmal)[keyof typeof OrgMerkmal]
|
|
|
|
|
|
export const KontaktArt = {
|
|
hauptkontakt: 'hauptkontakt',
|
|
sekundaerkontakt: 'sekundaerkontakt',
|
|
mitarbeiter: 'mitarbeiter',
|
|
sonstige: 'sonstige'
|
|
} as const
|
|
|
|
export type KontaktArt = (typeof KontaktArt)[keyof typeof KontaktArt]
|
|
|
|
|
|
export const CustomFieldEntityType = {
|
|
projekt: 'projekt',
|
|
kontakt: 'kontakt',
|
|
lead: 'lead',
|
|
rechnung: 'rechnung'
|
|
} as const
|
|
|
|
export type CustomFieldEntityType = (typeof CustomFieldEntityType)[keyof typeof CustomFieldEntityType]
|
|
|
|
|
|
export const CustomFieldDatentyp = {
|
|
text: 'text',
|
|
textarea: 'textarea',
|
|
zahl: 'zahl',
|
|
waehrung: 'waehrung',
|
|
datum: 'datum',
|
|
datum_range: 'datum_range',
|
|
select: 'select',
|
|
multiselect: 'multiselect',
|
|
boolean: 'boolean',
|
|
email: 'email',
|
|
telefon: 'telefon',
|
|
datei: 'datei',
|
|
prozent: 'prozent',
|
|
datum_zeit: 'datum_zeit',
|
|
person_team: 'person_team',
|
|
adresse: 'adresse',
|
|
link: 'link'
|
|
} as const
|
|
|
|
export type CustomFieldDatentyp = (typeof CustomFieldDatentyp)[keyof typeof CustomFieldDatentyp]
|
|
|
|
|
|
export const KontaktTelefonTyp = {
|
|
haupt: 'haupt',
|
|
durchwahl: 'durchwahl',
|
|
mobil: 'mobil',
|
|
fax: 'fax'
|
|
} as const
|
|
|
|
export type KontaktTelefonTyp = (typeof KontaktTelefonTyp)[keyof typeof KontaktTelefonTyp]
|
|
|
|
|
|
export const DashboardRole = {
|
|
gf: 'gf',
|
|
office: 'office',
|
|
monteur: 'monteur'
|
|
} as const
|
|
|
|
export type DashboardRole = (typeof DashboardRole)[keyof typeof DashboardRole]
|
|
|
|
|
|
export const EmailInboxProvider = {
|
|
gmail: 'gmail',
|
|
microsoft: 'microsoft'
|
|
} as const
|
|
|
|
export type EmailInboxProvider = (typeof EmailInboxProvider)[keyof typeof EmailInboxProvider]
|
|
|
|
|
|
export const EmailMailboxStatus = {
|
|
connecting: 'connecting',
|
|
active: 'active',
|
|
paused: 'paused',
|
|
error: 'error',
|
|
revoked: 'revoked'
|
|
} as const
|
|
|
|
export type EmailMailboxStatus = (typeof EmailMailboxStatus)[keyof typeof EmailMailboxStatus]
|
|
|
|
|
|
export const EmailDirection = {
|
|
inbound: 'inbound',
|
|
outbound: 'outbound'
|
|
} as const
|
|
|
|
export type EmailDirection = (typeof EmailDirection)[keyof typeof EmailDirection]
|
|
|
|
|
|
export const EmailMatchConfidence = {
|
|
high: 'high',
|
|
medium: 'medium',
|
|
low: 'low',
|
|
manual: 'manual',
|
|
none: 'none'
|
|
} as const
|
|
|
|
export type EmailMatchConfidence = (typeof EmailMatchConfidence)[keyof typeof EmailMatchConfidence]
|
|
|
|
|
|
export const EmailInitialSyncStatus = {
|
|
pending: 'pending',
|
|
running: 'running',
|
|
completed: 'completed',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type EmailInitialSyncStatus = (typeof EmailInitialSyncStatus)[keyof typeof EmailInitialSyncStatus]
|
|
|
|
|
|
export const EmailWebhookProcessingStatus = {
|
|
pending: 'pending',
|
|
processing: 'processing',
|
|
completed: 'completed',
|
|
failed: 'failed',
|
|
skipped: 'skipped'
|
|
} as const
|
|
|
|
export type EmailWebhookProcessingStatus = (typeof EmailWebhookProcessingStatus)[keyof typeof EmailWebhookProcessingStatus]
|
|
|
|
|
|
export const EmailInboundPurpose = {
|
|
lead_inbox: 'lead_inbox',
|
|
bcc_logging: 'bcc_logging',
|
|
reply_routing: 'reply_routing'
|
|
} as const
|
|
|
|
export type EmailInboundPurpose = (typeof EmailInboundPurpose)[keyof typeof EmailInboundPurpose]
|
|
|
|
|
|
export const SendingDomainStatus = {
|
|
pending: 'pending',
|
|
verifying: 'verifying',
|
|
verified: 'verified',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type SendingDomainStatus = (typeof SendingDomainStatus)[keyof typeof SendingDomainStatus]
|
|
|
|
|
|
export const EmailSuppressionReason = {
|
|
bounce: 'bounce',
|
|
complaint: 'complaint',
|
|
manual: 'manual'
|
|
} as const
|
|
|
|
export type EmailSuppressionReason = (typeof EmailSuppressionReason)[keyof typeof EmailSuppressionReason]
|
|
|
|
|
|
export const MarketingConsentStatus = {
|
|
none: 'none',
|
|
single: 'single',
|
|
double: 'double'
|
|
} as const
|
|
|
|
export type MarketingConsentStatus = (typeof MarketingConsentStatus)[keyof typeof MarketingConsentStatus]
|
|
|
|
|
|
export const UnsubscribeScope = {
|
|
all: 'all',
|
|
campaign: 'campaign'
|
|
} as const
|
|
|
|
export type UnsubscribeScope = (typeof UnsubscribeScope)[keyof typeof UnsubscribeScope]
|
|
|
|
|
|
export const CampaignVariantLabel = {
|
|
a: 'a',
|
|
b: 'b'
|
|
} as const
|
|
|
|
export type CampaignVariantLabel = (typeof CampaignVariantLabel)[keyof typeof CampaignVariantLabel]
|
|
|
|
|
|
export const LinkableEntityType = {
|
|
contact: 'contact',
|
|
company: 'company',
|
|
lead: 'lead',
|
|
deal: 'deal',
|
|
project: 'project',
|
|
task: 'task',
|
|
file: 'file',
|
|
user: 'user',
|
|
order: 'order',
|
|
appointment: 'appointment',
|
|
form_submission: 'form_submission',
|
|
chat_message: 'chat_message'
|
|
} as const
|
|
|
|
export type LinkableEntityType = (typeof LinkableEntityType)[keyof typeof LinkableEntityType]
|
|
|
|
|
|
export const FeatureFlagLifecycleStage = {
|
|
beta: 'beta',
|
|
rollout: 'rollout',
|
|
ga: 'ga',
|
|
deprecated: 'deprecated'
|
|
} as const
|
|
|
|
export type FeatureFlagLifecycleStage = (typeof FeatureFlagLifecycleStage)[keyof typeof FeatureFlagLifecycleStage]
|
|
|
|
|
|
export const FilePreviewStatus = {
|
|
pending: 'pending',
|
|
generating: 'generating',
|
|
ready: 'ready',
|
|
failed: 'failed',
|
|
not_supported: 'not_supported'
|
|
} as const
|
|
|
|
export type FilePreviewStatus = (typeof FilePreviewStatus)[keyof typeof FilePreviewStatus]
|
|
|
|
|
|
export const FileScanStatus = {
|
|
pending: 'pending',
|
|
clean: 'clean',
|
|
infected: 'infected',
|
|
skipped: 'skipped'
|
|
} as const
|
|
|
|
export type FileScanStatus = (typeof FileScanStatus)[keyof typeof FileScanStatus]
|
|
|
|
|
|
export const FileSource = {
|
|
manual_upload: 'manual_upload',
|
|
customer_portal: 'customer_portal',
|
|
form_submission: 'form_submission',
|
|
email_attachment: 'email_attachment',
|
|
automation: 'automation',
|
|
api: 'api'
|
|
} as const
|
|
|
|
export type FileSource = (typeof FileSource)[keyof typeof FileSource]
|
|
|
|
|
|
export const FileUploadStatus = {
|
|
in_progress: 'in_progress',
|
|
completed: 'completed',
|
|
failed: 'failed',
|
|
expired: 'expired',
|
|
cancelled: 'cancelled'
|
|
} as const
|
|
|
|
export type FileUploadStatus = (typeof FileUploadStatus)[keyof typeof FileUploadStatus]
|
|
|
|
|
|
export const FileEntityType = {
|
|
contact: 'contact',
|
|
company: 'company',
|
|
lead: 'lead',
|
|
deal: 'deal',
|
|
project: 'project',
|
|
user: 'user',
|
|
form_submission: 'form_submission',
|
|
order: 'order',
|
|
task: 'task',
|
|
appointment: 'appointment',
|
|
signature_document: 'signature_document',
|
|
email_message: 'email_message',
|
|
chat_message: 'chat_message',
|
|
support_ticket: 'support_ticket'
|
|
} as const
|
|
|
|
export type FileEntityType = (typeof FileEntityType)[keyof typeof FileEntityType]
|
|
|
|
|
|
export const FormStatus = {
|
|
draft: 'draft',
|
|
published: 'published',
|
|
archived: 'archived'
|
|
} as const
|
|
|
|
export type FormStatus = (typeof FormStatus)[keyof typeof FormStatus]
|
|
|
|
|
|
export const FormSubtype = {
|
|
standard: 'standard',
|
|
acceptance_form: 'acceptance_form',
|
|
onboarding: 'onboarding',
|
|
survey: 'survey',
|
|
booking_intake: 'booking_intake',
|
|
hr_request: 'hr_request',
|
|
lead: 'lead',
|
|
internal: 'internal',
|
|
portal_form: 'portal_form'
|
|
} as const
|
|
|
|
export type FormSubtype = (typeof FormSubtype)[keyof typeof FormSubtype]
|
|
|
|
|
|
export const FormFieldType = {
|
|
text: 'text',
|
|
textarea: 'textarea',
|
|
number: 'number',
|
|
date: 'date',
|
|
time: 'time',
|
|
select: 'select',
|
|
multiselect: 'multiselect',
|
|
boolean: 'boolean',
|
|
email: 'email',
|
|
phone: 'phone',
|
|
file: 'file',
|
|
photo: 'photo',
|
|
honeypot: 'honeypot'
|
|
} as const
|
|
|
|
export type FormFieldType = (typeof FormFieldType)[keyof typeof FormFieldType]
|
|
|
|
|
|
export const FormActionType = {
|
|
auto_match: 'auto_match',
|
|
create_lead: 'create_lead',
|
|
create_contact: 'create_contact',
|
|
create_project: 'create_project',
|
|
create_task: 'create_task',
|
|
send_email_to_team: 'send_email_to_team',
|
|
send_email_to_submitter: 'send_email_to_submitter',
|
|
webhook: 'webhook',
|
|
trigger_automation: 'trigger_automation',
|
|
start_double_opt_in: 'start_double_opt_in'
|
|
} as const
|
|
|
|
export type FormActionType = (typeof FormActionType)[keyof typeof FormActionType]
|
|
|
|
|
|
export const FormActionLogStatus = {
|
|
pending: 'pending',
|
|
success: 'success',
|
|
failed: 'failed',
|
|
skipped: 'skipped'
|
|
} as const
|
|
|
|
export type FormActionLogStatus = (typeof FormActionLogStatus)[keyof typeof FormActionLogStatus]
|
|
|
|
|
|
export const GdprExportScope = {
|
|
user_self: 'user_self',
|
|
tenant_full: 'tenant_full'
|
|
} as const
|
|
|
|
export type GdprExportScope = (typeof GdprExportScope)[keyof typeof GdprExportScope]
|
|
|
|
|
|
export const GdprExportStatus = {
|
|
queued: 'queued',
|
|
processing: 'processing',
|
|
ready: 'ready',
|
|
failed: 'failed',
|
|
expired: 'expired'
|
|
} as const
|
|
|
|
export type GdprExportStatus = (typeof GdprExportStatus)[keyof typeof GdprExportStatus]
|
|
|
|
|
|
export const TenantDeletionRequestStatus = {
|
|
pending: 'pending',
|
|
cancelled: 'cancelled',
|
|
executing: 'executing',
|
|
completed: 'completed',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type TenantDeletionRequestStatus = (typeof TenantDeletionRequestStatus)[keyof typeof TenantDeletionRequestStatus]
|
|
|
|
|
|
export const TenantDeletionReason = {
|
|
voluntary: 'voluntary',
|
|
non_payment: 'non_payment',
|
|
suspended_violation: 'suspended_violation',
|
|
admin_initiated: 'admin_initiated'
|
|
} as const
|
|
|
|
export type TenantDeletionReason = (typeof TenantDeletionReason)[keyof typeof TenantDeletionReason]
|
|
|
|
|
|
export const HrDocumentVisibility = {
|
|
employee: 'employee',
|
|
hr_only: 'hr_only'
|
|
} as const
|
|
|
|
export type HrDocumentVisibility = (typeof HrDocumentVisibility)[keyof typeof HrDocumentVisibility]
|
|
|
|
|
|
export const HrDocumentKind = {
|
|
contract: 'contract',
|
|
certificate: 'certificate',
|
|
identification: 'identification',
|
|
qualification: 'qualification',
|
|
other: 'other'
|
|
} as const
|
|
|
|
export type HrDocumentKind = (typeof HrDocumentKind)[keyof typeof HrDocumentKind]
|
|
|
|
|
|
export const HrResourceKind = {
|
|
link: 'link',
|
|
file: 'file'
|
|
} as const
|
|
|
|
export type HrResourceKind = (typeof HrResourceKind)[keyof typeof HrResourceKind]
|
|
|
|
|
|
export const PasswordSafePermissionLevel = {
|
|
read: 'read',
|
|
write: 'write',
|
|
admin: 'admin'
|
|
} as const
|
|
|
|
export type PasswordSafePermissionLevel = (typeof PasswordSafePermissionLevel)[keyof typeof PasswordSafePermissionLevel]
|
|
|
|
|
|
export const HrVacationRequestKind = {
|
|
vacation: 'vacation',
|
|
special_leave: 'special_leave',
|
|
unpaid_leave: 'unpaid_leave',
|
|
overtime_compensation: 'overtime_compensation'
|
|
} as const
|
|
|
|
export type HrVacationRequestKind = (typeof HrVacationRequestKind)[keyof typeof HrVacationRequestKind]
|
|
|
|
|
|
export const HrLeaveRequestStatus = {
|
|
submitted: 'submitted',
|
|
clarification: 'clarification',
|
|
approved: 'approved',
|
|
rejected: 'rejected',
|
|
withdrawn: 'withdrawn'
|
|
} as const
|
|
|
|
export type HrLeaveRequestStatus = (typeof HrLeaveRequestStatus)[keyof typeof HrLeaveRequestStatus]
|
|
|
|
|
|
export const HrSickLeaveStatus = {
|
|
reported: 'reported',
|
|
closed: 'closed',
|
|
cancelled: 'cancelled'
|
|
} as const
|
|
|
|
export type HrSickLeaveStatus = (typeof HrSickLeaveStatus)[keyof typeof HrSickLeaveStatus]
|
|
|
|
|
|
export const HrAudienceKind = {
|
|
all: 'all',
|
|
team: 'team',
|
|
location: 'location'
|
|
} as const
|
|
|
|
export type HrAudienceKind = (typeof HrAudienceKind)[keyof typeof HrAudienceKind]
|
|
|
|
|
|
export const HrRequestKind = {
|
|
expense: 'expense',
|
|
hardware: 'hardware',
|
|
training: 'training',
|
|
reference: 'reference'
|
|
} as const
|
|
|
|
export type HrRequestKind = (typeof HrRequestKind)[keyof typeof HrRequestKind]
|
|
|
|
|
|
export const HrRequestStatus = {
|
|
submitted: 'submitted',
|
|
clarification: 'clarification',
|
|
approved: 'approved',
|
|
rejected: 'rejected',
|
|
withdrawn: 'withdrawn'
|
|
} as const
|
|
|
|
export type HrRequestStatus = (typeof HrRequestStatus)[keyof typeof HrRequestStatus]
|
|
|
|
|
|
export const HrReminderCadenceKind = {
|
|
once: 'once',
|
|
yearly: 'yearly',
|
|
every_n_months: 'every_n_months',
|
|
on_expiry: 'on_expiry'
|
|
} as const
|
|
|
|
export type HrReminderCadenceKind = (typeof HrReminderCadenceKind)[keyof typeof HrReminderCadenceKind]
|
|
|
|
|
|
export const HrReminderStatus = {
|
|
active: 'active',
|
|
paused: 'paused',
|
|
completed: 'completed'
|
|
} as const
|
|
|
|
export type HrReminderStatus = (typeof HrReminderStatus)[keyof typeof HrReminderStatus]
|
|
|
|
|
|
export const HrReminderDispatchStatus = {
|
|
pending: 'pending',
|
|
sent: 'sent',
|
|
escalated: 'escalated',
|
|
acknowledged: 'acknowledged'
|
|
} as const
|
|
|
|
export type HrReminderDispatchStatus = (typeof HrReminderDispatchStatus)[keyof typeof HrReminderDispatchStatus]
|
|
|
|
|
|
export const HrSurveyItemType = {
|
|
text: 'text',
|
|
rating_5: 'rating_5',
|
|
nps: 'nps',
|
|
choice: 'choice',
|
|
boolean: 'boolean',
|
|
date: 'date'
|
|
} as const
|
|
|
|
export type HrSurveyItemType = (typeof HrSurveyItemType)[keyof typeof HrSurveyItemType]
|
|
|
|
|
|
export const HrSurveyResultVisibility = {
|
|
admins: 'admins',
|
|
participants: 'participants',
|
|
everyone: 'everyone'
|
|
} as const
|
|
|
|
export type HrSurveyResultVisibility = (typeof HrSurveyResultVisibility)[keyof typeof HrSurveyResultVisibility]
|
|
|
|
|
|
export const HrSurveyStatus = {
|
|
draft: 'draft',
|
|
open: 'open',
|
|
closed: 'closed'
|
|
} as const
|
|
|
|
export type HrSurveyStatus = (typeof HrSurveyStatus)[keyof typeof HrSurveyStatus]
|
|
|
|
|
|
export const ImportJobStatus = {
|
|
PENDING: 'PENDING',
|
|
RUNNING: 'RUNNING',
|
|
COMPLETED: 'COMPLETED',
|
|
FAILED: 'FAILED'
|
|
} as const
|
|
|
|
export type ImportJobStatus = (typeof ImportJobStatus)[keyof typeof ImportJobStatus]
|
|
|
|
|
|
export const KwpCapabilityStatus = {
|
|
active: 'active',
|
|
paused: 'paused'
|
|
} as const
|
|
|
|
export type KwpCapabilityStatus = (typeof KwpCapabilityStatus)[keyof typeof KwpCapabilityStatus]
|
|
|
|
|
|
export const KwpProjectCatalogStatus = {
|
|
pending: 'pending',
|
|
syncing: 'syncing',
|
|
ready: 'ready',
|
|
partial: 'partial',
|
|
paused: 'paused'
|
|
} as const
|
|
|
|
export type KwpProjectCatalogStatus = (typeof KwpProjectCatalogStatus)[keyof typeof KwpProjectCatalogStatus]
|
|
|
|
|
|
export const KwpProjectCatalogItemState = {
|
|
discovered: 'discovered',
|
|
active: 'active',
|
|
missing: 'missing'
|
|
} as const
|
|
|
|
export type KwpProjectCatalogItemState = (typeof KwpProjectCatalogItemState)[keyof typeof KwpProjectCatalogItemState]
|
|
|
|
|
|
export const LeadQuelle = {
|
|
form: 'form',
|
|
email: 'email',
|
|
aircall: 'aircall',
|
|
manual: 'manual',
|
|
custom: 'custom'
|
|
} as const
|
|
|
|
export type LeadQuelle = (typeof LeadQuelle)[keyof typeof LeadQuelle]
|
|
|
|
|
|
export const InboxLeadStatus = {
|
|
new: 'new',
|
|
qualified: 'qualified',
|
|
converted: 'converted',
|
|
lost: 'lost',
|
|
spam: 'spam'
|
|
} as const
|
|
|
|
export type InboxLeadStatus = (typeof InboxLeadStatus)[keyof typeof InboxLeadStatus]
|
|
|
|
|
|
export const LeadWeiterverarbeitungFreigabe = {
|
|
ja: 'ja',
|
|
nein: 'nein',
|
|
unklar: 'unklar'
|
|
} as const
|
|
|
|
export type LeadWeiterverarbeitungFreigabe = (typeof LeadWeiterverarbeitungFreigabe)[keyof typeof LeadWeiterverarbeitungFreigabe]
|
|
|
|
|
|
export const LeadSourceType = {
|
|
system: 'system',
|
|
custom: 'custom'
|
|
} as const
|
|
|
|
export type LeadSourceType = (typeof LeadSourceType)[keyof typeof LeadSourceType]
|
|
|
|
|
|
export const LeadAntiSpamMode = {
|
|
quarantine: 'quarantine',
|
|
spam: 'spam'
|
|
} as const
|
|
|
|
export type LeadAntiSpamMode = (typeof LeadAntiSpamMode)[keyof typeof LeadAntiSpamMode]
|
|
|
|
|
|
export const LeadStatus = {
|
|
new: 'new',
|
|
contacted: 'contacted',
|
|
qualified: 'qualified',
|
|
trial: 'trial',
|
|
customer: 'customer',
|
|
churned: 'churned',
|
|
disqualified: 'disqualified'
|
|
} as const
|
|
|
|
export type LeadStatus = (typeof LeadStatus)[keyof typeof LeadStatus]
|
|
|
|
|
|
export const NotificationDeliveryStatus = {
|
|
PENDING: 'PENDING',
|
|
SENT: 'SENT',
|
|
FAILED: 'FAILED',
|
|
SKIPPED: 'SKIPPED',
|
|
READ: 'READ'
|
|
} as const
|
|
|
|
export type NotificationDeliveryStatus = (typeof NotificationDeliveryStatus)[keyof typeof NotificationDeliveryStatus]
|
|
|
|
|
|
export const NotificationPreferenceChannel = {
|
|
IN_APP: 'IN_APP',
|
|
EMAIL: 'EMAIL'
|
|
} as const
|
|
|
|
export type NotificationPreferenceChannel = (typeof NotificationPreferenceChannel)[keyof typeof NotificationPreferenceChannel]
|
|
|
|
|
|
export const OutboxStatus = {
|
|
PENDING: 'PENDING',
|
|
PROCESSING: 'PROCESSING',
|
|
DONE: 'DONE',
|
|
FAILED: 'FAILED',
|
|
CANCELLED: 'CANCELLED'
|
|
} as const
|
|
|
|
export type OutboxStatus = (typeof OutboxStatus)[keyof typeof OutboxStatus]
|
|
|
|
|
|
export const PipelineAccessRequestStatus = {
|
|
open: 'open',
|
|
approved: 'approved',
|
|
dismissed: 'dismissed'
|
|
} as const
|
|
|
|
export type PipelineAccessRequestStatus = (typeof PipelineAccessRequestStatus)[keyof typeof PipelineAccessRequestStatus]
|
|
|
|
|
|
export const PipelineHandoverItemKind = {
|
|
notiz: 'notiz',
|
|
datei: 'datei',
|
|
aufgabe: 'aufgabe',
|
|
termin: 'termin'
|
|
} as const
|
|
|
|
export type PipelineHandoverItemKind = (typeof PipelineHandoverItemKind)[keyof typeof PipelineHandoverItemKind]
|
|
|
|
|
|
export const PortalUserStatus = {
|
|
invited: 'invited',
|
|
active: 'active',
|
|
disabled: 'disabled'
|
|
} as const
|
|
|
|
export type PortalUserStatus = (typeof PortalUserStatus)[keyof typeof PortalUserStatus]
|
|
|
|
|
|
export const PortalUserKind = {
|
|
customer: 'customer',
|
|
subcontractor: 'subcontractor'
|
|
} as const
|
|
|
|
export type PortalUserKind = (typeof PortalUserKind)[keyof typeof PortalUserKind]
|
|
|
|
|
|
export const PortalUploadCategory = {
|
|
complaint: 'complaint',
|
|
photo: 'photo',
|
|
attachment: 'attachment',
|
|
audio: 'audio',
|
|
other: 'other'
|
|
} as const
|
|
|
|
export type PortalUploadCategory = (typeof PortalUploadCategory)[keyof typeof PortalUploadCategory]
|
|
|
|
|
|
export const PortalUploadStatus = {
|
|
reserved: 'reserved',
|
|
uploading: 'uploading',
|
|
scanning: 'scanning',
|
|
clean: 'clean',
|
|
failed: 'failed',
|
|
cancelled: 'cancelled'
|
|
} as const
|
|
|
|
export type PortalUploadStatus = (typeof PortalUploadStatus)[keyof typeof PortalUploadStatus]
|
|
|
|
|
|
export const PortalComplaintStatus = {
|
|
open: 'open',
|
|
in_review: 'in_review',
|
|
resolved: 'resolved',
|
|
rejected: 'rejected'
|
|
} as const
|
|
|
|
export type PortalComplaintStatus = (typeof PortalComplaintStatus)[keyof typeof PortalComplaintStatus]
|
|
|
|
|
|
export const PortalLifecycleMode = {
|
|
customer: 'customer',
|
|
project: 'project'
|
|
} as const
|
|
|
|
export type PortalLifecycleMode = (typeof PortalLifecycleMode)[keyof typeof PortalLifecycleMode]
|
|
|
|
|
|
export const PortalNotificationEvent = {
|
|
stage_changed: 'stage_changed',
|
|
document_released: 'document_released',
|
|
upload_confirmation: 'upload_confirmation',
|
|
status_mail: 'status_mail',
|
|
lifecycle: 'lifecycle'
|
|
} as const
|
|
|
|
export type PortalNotificationEvent = (typeof PortalNotificationEvent)[keyof typeof PortalNotificationEvent]
|
|
|
|
|
|
export const PortalServiceInboxKind = {
|
|
complaint: 'complaint',
|
|
upload: 'upload',
|
|
login: 'login',
|
|
download: 'download'
|
|
} as const
|
|
|
|
export type PortalServiceInboxKind = (typeof PortalServiceInboxKind)[keyof typeof PortalServiceInboxKind]
|
|
|
|
|
|
export const PortalServiceInboxStatus = {
|
|
open: 'open',
|
|
in_progress: 'in_progress',
|
|
resolved: 'resolved',
|
|
dismissed: 'dismissed'
|
|
} as const
|
|
|
|
export type PortalServiceInboxStatus = (typeof PortalServiceInboxStatus)[keyof typeof PortalServiceInboxStatus]
|
|
|
|
|
|
export const PortalRoutingTargetKind = {
|
|
user: 'user',
|
|
role: 'role'
|
|
} as const
|
|
|
|
export type PortalRoutingTargetKind = (typeof PortalRoutingTargetKind)[keyof typeof PortalRoutingTargetKind]
|
|
|
|
|
|
export const PortalDeletionRequestStatus = {
|
|
pending: 'pending',
|
|
cancelled: 'cancelled',
|
|
processing: 'processing',
|
|
completed: 'completed',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type PortalDeletionRequestStatus = (typeof PortalDeletionRequestStatus)[keyof typeof PortalDeletionRequestStatus]
|
|
|
|
|
|
export const PortalGdprExportStatus = {
|
|
queued: 'queued',
|
|
processing: 'processing',
|
|
ready: 'ready',
|
|
expired: 'expired',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type PortalGdprExportStatus = (typeof PortalGdprExportStatus)[keyof typeof PortalGdprExportStatus]
|
|
|
|
|
|
export const PortalDomainDnsStatus = {
|
|
pending: 'pending',
|
|
txt_verified: 'txt_verified',
|
|
cname_verified: 'cname_verified',
|
|
verified: 'verified',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type PortalDomainDnsStatus = (typeof PortalDomainDnsStatus)[keyof typeof PortalDomainDnsStatus]
|
|
|
|
|
|
export const PortalCustomDomainStatus = {
|
|
awaiting_payment: 'awaiting_payment',
|
|
awaiting_dns: 'awaiting_dns',
|
|
dns_verified: 'dns_verified',
|
|
provisioning: 'provisioning',
|
|
active: 'active',
|
|
degraded: 'degraded',
|
|
failed: 'failed',
|
|
disabled: 'disabled',
|
|
deprovisioning: 'deprovisioning',
|
|
cooldown: 'cooldown',
|
|
released: 'released'
|
|
} as const
|
|
|
|
export type PortalCustomDomainStatus = (typeof PortalCustomDomainStatus)[keyof typeof PortalCustomDomainStatus]
|
|
|
|
|
|
export const PortalTokenPurpose = {
|
|
magic_link: 'magic_link',
|
|
setup: 'setup',
|
|
verify_email: 'verify_email',
|
|
reset_password: 'reset_password'
|
|
} as const
|
|
|
|
export type PortalTokenPurpose = (typeof PortalTokenPurpose)[keyof typeof PortalTokenPurpose]
|
|
|
|
|
|
export const PipelineTypHint = {
|
|
sales: 'sales',
|
|
auftrag: 'auftrag',
|
|
custom: 'custom'
|
|
} as const
|
|
|
|
export type PipelineTypHint = (typeof PipelineTypHint)[keyof typeof PipelineTypHint]
|
|
|
|
|
|
export const PipelineStageKind = {
|
|
offen: 'offen',
|
|
gewonnen: 'gewonnen',
|
|
verloren: 'verloren'
|
|
} as const
|
|
|
|
export type PipelineStageKind = (typeof PipelineStageKind)[keyof typeof PipelineStageKind]
|
|
|
|
|
|
export const PipelinePrincipalType = {
|
|
role: 'role',
|
|
group: 'group',
|
|
user: 'user'
|
|
} as const
|
|
|
|
export type PipelinePrincipalType = (typeof PipelinePrincipalType)[keyof typeof PipelinePrincipalType]
|
|
|
|
|
|
export const ProjektPrioritaet = {
|
|
niedrig: 'niedrig',
|
|
normal: 'normal',
|
|
hoch: 'hoch',
|
|
dringend: 'dringend'
|
|
} as const
|
|
|
|
export type ProjektPrioritaet = (typeof ProjektPrioritaet)[keyof typeof ProjektPrioritaet]
|
|
|
|
|
|
export const ProjektKontaktRolle = {
|
|
auftraggeber: 'auftraggeber',
|
|
bauherr: 'bauherr',
|
|
rechnungsempfaenger: 'rechnungsempfaenger',
|
|
ansprechpartner: 'ansprechpartner'
|
|
} as const
|
|
|
|
export type ProjektKontaktRolle = (typeof ProjektKontaktRolle)[keyof typeof ProjektKontaktRolle]
|
|
|
|
|
|
export const ProjektAdressSlot = {
|
|
projekt: 'projekt',
|
|
rechnung: 'rechnung',
|
|
bauherr: 'bauherr'
|
|
} as const
|
|
|
|
export type ProjektAdressSlot = (typeof ProjektAdressSlot)[keyof typeof ProjektAdressSlot]
|
|
|
|
|
|
export const ProjektNotizSichtbarkeit = {
|
|
alle: 'alle',
|
|
innendienst: 'innendienst',
|
|
nur_ich: 'nur_ich'
|
|
} as const
|
|
|
|
export type ProjektNotizSichtbarkeit = (typeof ProjektNotizSichtbarkeit)[keyof typeof ProjektNotizSichtbarkeit]
|
|
|
|
|
|
export const PublicWebhookAuthMode = {
|
|
api_key: 'api_key',
|
|
hmac: 'hmac',
|
|
url_token: 'url_token'
|
|
} as const
|
|
|
|
export type PublicWebhookAuthMode = (typeof PublicWebhookAuthMode)[keyof typeof PublicWebhookAuthMode]
|
|
|
|
|
|
export const PublicWebhookEndpointStatus = {
|
|
active: 'active',
|
|
paused: 'paused',
|
|
archived: 'archived'
|
|
} as const
|
|
|
|
export type PublicWebhookEndpointStatus = (typeof PublicWebhookEndpointStatus)[keyof typeof PublicWebhookEndpointStatus]
|
|
|
|
|
|
export const PublicWebhookDeliveryStatus = {
|
|
queued: 'queued',
|
|
delivering: 'delivering',
|
|
success: 'success',
|
|
failed: 'failed',
|
|
retrying: 'retrying',
|
|
disabled: 'disabled'
|
|
} as const
|
|
|
|
export type PublicWebhookDeliveryStatus = (typeof PublicWebhookDeliveryStatus)[keyof typeof PublicWebhookDeliveryStatus]
|
|
|
|
|
|
export const ExportJobStatus = {
|
|
PENDING: 'PENDING',
|
|
RUNNING: 'RUNNING',
|
|
COMPLETED: 'COMPLETED',
|
|
FAILED: 'FAILED'
|
|
} as const
|
|
|
|
export type ExportJobStatus = (typeof ExportJobStatus)[keyof typeof ExportJobStatus]
|
|
|
|
|
|
export const SignatureProvider = {
|
|
ses_selfhosted: 'ses_selfhosted',
|
|
pandadoc_byok: 'pandadoc_byok'
|
|
} as const
|
|
|
|
export type SignatureProvider = (typeof SignatureProvider)[keyof typeof SignatureProvider]
|
|
|
|
|
|
export const SignatureDocumentStatus = {
|
|
draft: 'draft',
|
|
sent: 'sent',
|
|
viewed: 'viewed',
|
|
signed: 'signed',
|
|
declined: 'declined',
|
|
revoked: 'revoked',
|
|
expired: 'expired'
|
|
} as const
|
|
|
|
export type SignatureDocumentStatus = (typeof SignatureDocumentStatus)[keyof typeof SignatureDocumentStatus]
|
|
|
|
|
|
export const SignatureSignerStatus = {
|
|
draft: 'draft',
|
|
sent: 'sent',
|
|
viewed: 'viewed',
|
|
otp_verified: 'otp_verified',
|
|
signed: 'signed',
|
|
declined: 'declined',
|
|
revoked: 'revoked',
|
|
expired: 'expired'
|
|
} as const
|
|
|
|
export type SignatureSignerStatus = (typeof SignatureSignerStatus)[keyof typeof SignatureSignerStatus]
|
|
|
|
|
|
export const SignatureSignerRole = {
|
|
kunde: 'kunde',
|
|
bauherr: 'bauherr',
|
|
auftraggeber: 'auftraggeber',
|
|
rechnungsempfaenger: 'rechnungsempfaenger',
|
|
intern: 'intern'
|
|
} as const
|
|
|
|
export type SignatureSignerRole = (typeof SignatureSignerRole)[keyof typeof SignatureSignerRole]
|
|
|
|
|
|
export const SignatureRoutingMode = {
|
|
parallel: 'parallel',
|
|
sequential: 'sequential'
|
|
} as const
|
|
|
|
export type SignatureRoutingMode = (typeof SignatureRoutingMode)[keyof typeof SignatureRoutingMode]
|
|
|
|
|
|
export const SignatureEventType = {
|
|
link_created: 'link_created',
|
|
link_opened: 'link_opened',
|
|
otp_requested: 'otp_requested',
|
|
otp_verified: 'otp_verified',
|
|
document_sent: 'document_sent',
|
|
document_viewed: 'document_viewed',
|
|
signer_signed: 'signer_signed',
|
|
signer_declined: 'signer_declined',
|
|
reminder_sent: 'reminder_sent',
|
|
document_revoked: 'document_revoked',
|
|
provider_webhook: 'provider_webhook',
|
|
pdf_sealed: 'pdf_sealed',
|
|
certificate_created: 'certificate_created'
|
|
} as const
|
|
|
|
export type SignatureEventType = (typeof SignatureEventType)[keyof typeof SignatureEventType]
|
|
|
|
|
|
export const SubscriptionProductKind = {
|
|
base_plan: 'base_plan',
|
|
recurring_add_on: 'recurring_add_on',
|
|
one_time_setup: 'one_time_setup',
|
|
contract_override: 'contract_override'
|
|
} as const
|
|
|
|
export type SubscriptionProductKind = (typeof SubscriptionProductKind)[keyof typeof SubscriptionProductKind]
|
|
|
|
|
|
export const TenantProductAcquisitionStatus = {
|
|
pending: 'pending',
|
|
provider_pending: 'provider_pending',
|
|
payment_pending: 'payment_pending',
|
|
active: 'active',
|
|
failed: 'failed',
|
|
cancelled: 'cancelled',
|
|
expired: 'expired',
|
|
refunded: 'refunded'
|
|
} as const
|
|
|
|
export type TenantProductAcquisitionStatus = (typeof TenantProductAcquisitionStatus)[keyof typeof TenantProductAcquisitionStatus]
|
|
|
|
|
|
export const TaskStatus = {
|
|
open: 'open',
|
|
in_progress: 'in_progress',
|
|
blocked: 'blocked',
|
|
done: 'done',
|
|
cancelled: 'cancelled'
|
|
} as const
|
|
|
|
export type TaskStatus = (typeof TaskStatus)[keyof typeof TaskStatus]
|
|
|
|
|
|
export const TaskPriority = {
|
|
low: 'low',
|
|
normal: 'normal',
|
|
high: 'high',
|
|
urgent: 'urgent'
|
|
} as const
|
|
|
|
export type TaskPriority = (typeof TaskPriority)[keyof typeof TaskPriority]
|
|
|
|
|
|
export const TaskSource = {
|
|
manual: 'manual',
|
|
chat: 'chat',
|
|
form_submission: 'form_submission',
|
|
automation: 'automation',
|
|
api: 'api'
|
|
} as const
|
|
|
|
export type TaskSource = (typeof TaskSource)[keyof typeof TaskSource]
|
|
|
|
|
|
export const TaskEntityType = {
|
|
contact: 'contact',
|
|
company: 'company',
|
|
lead: 'lead',
|
|
deal: 'deal',
|
|
project: 'project',
|
|
user: 'user',
|
|
order: 'order',
|
|
appointment: 'appointment'
|
|
} as const
|
|
|
|
export type TaskEntityType = (typeof TaskEntityType)[keyof typeof TaskEntityType]
|
|
|
|
|
|
export const TelephonyProvider = {
|
|
aircall: 'aircall',
|
|
hallopetra: 'hallopetra'
|
|
} as const
|
|
|
|
export type TelephonyProvider = (typeof TelephonyProvider)[keyof typeof TelephonyProvider]
|
|
|
|
|
|
export const TelephonyBindingSource = {
|
|
email_auto: 'email_auto',
|
|
manual: 'manual'
|
|
} as const
|
|
|
|
export type TelephonyBindingSource = (typeof TelephonyBindingSource)[keyof typeof TelephonyBindingSource]
|
|
|
|
|
|
export const TelephonyCallDirection = {
|
|
inbound: 'inbound',
|
|
outbound: 'outbound'
|
|
} as const
|
|
|
|
export type TelephonyCallDirection = (typeof TelephonyCallDirection)[keyof typeof TelephonyCallDirection]
|
|
|
|
|
|
export const TelephonyCallStatus = {
|
|
ringing: 'ringing',
|
|
answered: 'answered',
|
|
completed: 'completed',
|
|
missed: 'missed',
|
|
failed: 'failed'
|
|
} as const
|
|
|
|
export type TelephonyCallStatus = (typeof TelephonyCallStatus)[keyof typeof TelephonyCallStatus]
|
|
|
|
|
|
export const TelephonyMatchConfidence = {
|
|
hard: 'hard',
|
|
soft: 'soft',
|
|
manual: 'manual',
|
|
none: 'none'
|
|
} as const
|
|
|
|
export type TelephonyMatchConfidence = (typeof TelephonyMatchConfidence)[keyof typeof TelephonyMatchConfidence]
|
|
|
|
|
|
export const TelephonyWebhookProcessingStatus = {
|
|
pending: 'pending',
|
|
processing: 'processing',
|
|
completed: 'completed',
|
|
failed: 'failed',
|
|
skipped: 'skipped'
|
|
} as const
|
|
|
|
export type TelephonyWebhookProcessingStatus = (typeof TelephonyWebhookProcessingStatus)[keyof typeof TelephonyWebhookProcessingStatus]
|