1202 lines
28 KiB
TypeScript
1202 lines
28 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 ActivityActorKind = {
|
|
user: 'user',
|
|
system: 'system',
|
|
automation: 'automation',
|
|
ki_agent: 'ki_agent'
|
|
} as const
|
|
|
|
export type ActivityActorKind = (typeof ActivityActorKind)[keyof typeof ActivityActorKind]
|
|
|
|
|
|
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 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 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 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'
|
|
} as const
|
|
|
|
export type CustomFieldDatentyp = (typeof CustomFieldDatentyp)[keyof typeof CustomFieldDatentyp]
|
|
|
|
|
|
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'
|
|
} as const
|
|
|
|
export type LinkableEntityType = (typeof LinkableEntityType)[keyof typeof LinkableEntityType]
|
|
|
|
|
|
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'
|
|
} 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'
|
|
} 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'
|
|
} 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 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 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 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 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]
|