diff --git a/service/data-hub/data-connector/libs/api/data-access-database/src/lib/types.ts b/service/data-hub/data-connector/libs/api/data-access-database/src/lib/types.ts deleted file mode 100644 index ec7880c..0000000 --- a/service/data-hub/data-connector/libs/api/data-access-database/src/lib/types.ts +++ /dev/null @@ -1,535 +0,0 @@ -import type { ColumnType } from "kysely"; -export type Generated = T extends ColumnType - ? ColumnType - : ColumnType; -export type Timestamp = ColumnType; - -export const TicketState = { - CREATED: "CREATED", - APPROVAL_REQUIRED: "APPROVAL_REQUIRED", - READY: "READY", - DONE: "DONE", - BILLABLE: "BILLABLE", - ARCHIVED: "ARCHIVED" -} as const; -export type TicketState = (typeof TicketState)[keyof typeof TicketState]; -export const TicketValidationState = { - CREATED: "CREATED", - USER_INTERACTION_REQUIRED: "USER_INTERACTION_REQUIRED", - TD_UNCERTAIN: "TD_UNCERTAIN", - DOCUMENTS_MISSING: "DOCUMENTS_MISSING", - ARCHIVED: "ARCHIVED" -} as const; -export type TicketValidationState = (typeof TicketValidationState)[keyof typeof TicketValidationState]; -export const ApprovalState = { - UNKNOWN: "UNKNOWN", - FREE: "FREE", - REQUIRED: "REQUIRED", - REQUESTED: "REQUESTED", - APPROVED: "APPROVED" -} as const; -export type ApprovalState = (typeof ApprovalState)[keyof typeof ApprovalState]; -export const CostTypeVariant = { - NACHTZUSCHLAG: "NACHTZUSCHLAG", - WOCHENENDZUSCHLAG: "WOCHENENDZUSCHLAG", - FEIERTAGSZUSCHLAG: "FEIERTAGSZUSCHLAG", - DESINFEKTIONSZUSCHLAG: "DESINFEKTIONSZUSCHLAG", - KILOMETERZUSCHLAG: "KILOMETERZUSCHLAG", - FAHRZEUGZUSCHLAG: "FAHRZEUGZUSCHLAG", - TSWDIFFERENZIERUNG: "TSWDIFFERENZIERUNG", - GRUNDPREIS: "GRUNDPREIS" -} as const; -export type CostTypeVariant = (typeof CostTypeVariant)[keyof typeof CostTypeVariant]; -export type Anomaly = { - id: string; - type: string; - description: string; - groupKey: string; - groupDescription: string; - workedOnBy: string; - sleepTimer: number; - sleepSince: Timestamp | null; - resolvedAt: Timestamp | null; - manuallyResolved: Generated; - createdAt: Generated; -}; -export type AttendanceRegistration = { - attendanceRegistrationId: number; - employeeId: number; - personnelNumber: string; - dateTime: Timestamp; - event: string; -}; -export type AttendanceRegistrationSource = { - internalId: Generated; - insertedAt: Generated; - jobId: string; - attendanceRegistrationId: string | null; - employeeId: string | null; - personnelNumber: string | null; - dateTime: string | null; - event: string | null; -}; -export type AttendanceRegistrationStaging = { - internalId: Generated; - attendanceRegistrationId: number; - employeeId: number; - dateTime: Timestamp; - event: string; -}; -export type AvicennaTenant = { - id: Generated; - healthInsuranceNumber: string; - name: string; -}; -export type AvicennaTenantToTariffGroup = { - A: string; - B: string; -}; -export type CostType = { - id: Generated; - description: string; - variant: CostTypeVariant; - costAmount: number; - timeRange: string | null; - kmInclusive: number | null; - excludeCarNames: string[]; - infectionType: string | null; - tariffId: string | null; -}; -export type DyflexisEmployee = { - id: number; - firstname: string; - surname: string; - contractStart: Timestamp; - contractEnd: Timestamp | null; - contractHoursWeek: number; - contractSalaryHour: number; -}; -export type Employee = { - id: string; - name: string; - surname: string; - personnelNumber: string | null; - mobile: string | null; - qualification: string | null; - occuptationalHealthExamination: Timestamp | null; - personTransportCertificate: Timestamp | null; -}; -export type EmployeeDispoLiveSource = { - internalId: Generated; - insertedAt: Generated; - jobId: string; - id: string | null; - pScheinAblaufDatum: string | null; - name: string | null; - surname: string | null; - persId: string | null; - importPersId: string | null; - qualifikation: string | null; -}; -export type EmployeeDispoLiveStaging = { - internalId: Generated; - id: string; - name: string | null; - surname: string | null; - personnelNumber: string | null; - qualification: string | null; - personTransportCertificate: Timestamp | null; -}; -export type EmployeeDyflexisSource = { - internalId: Generated; - insertedAt: Generated; - jobId: string; - id: string | null; - firstname: string | null; - surname: string | null; - contract_id: string | null; - contract_start: string | null; - contract_end: string | null; - contract_hours_week: string | null; - contract_salary_hour: string | null; -}; -export type EmployeeDyflexisStaging = { - internalId: Generated; - id: number; - firstname: string; - surname: string; - contractStart: Timestamp; - contractEnd: Timestamp; - contractHoursWeek: number; - contractSalaryHour: number; -}; -export type Patient = { - id: string; - surname: string | null; - name: string | null; - street: string | null; - zip: string | null; - city: string | null; - birthday: Timestamp | null; - healthinsuranceId: string | null; - healthinsurance: string | null; - careDegree: string | null; - disabilityMark1: string | null; - disabilityMark2: string | null; -}; -export type PatientSource = { - internalId: Generated; - insertedAt: Generated; - jobId: string; - id: string | null; - surname: string | null; - name: string | null; - street: string | null; - zip: string | null; - city: string | null; - birthday: string | null; - kkId: string | null; - krankenkasse: string | null; - pflegestufe: string | null; - behinderung1: string | null; - behinderung2: string | null; -}; -export type PatientStaging = { - internalId: Generated; - id: string | null; - surname: string | null; - name: string | null; - street: string | null; - zip: string | null; - city: string | null; - birthday: Timestamp | null; - healthinsuranceId: string | null; - healthinsurance: string | null; - careDegree: string | null; - disabilityMark1: string | null; - disabilityMark2: string | null; -}; -export type PlannedTime = { - id: string; - userId: string; - firstname: string | null; - surname: string | null; - startDate: Timestamp | null; - endDate: Timestamp | null; - department: string | null; - pause: number; - duration: number; - note: string | null; -}; -export type PlannedTimeSource = { - internalId: Generated; - insertedAt: Generated; - jobId: string; - id: string | null; - user_id: string | null; - firstname: string | null; - surname: string | null; - department_id: string | null; - department_name: string | null; - start_date: string | null; - end_date: string | null; - pauze: string | null; - duration: string | null; - deleted: string | null; - mark: string | null; -}; -export type PlannedTimeStaging = { - internalId: Generated; - id: number; - employeeId: number; - firstname: string | null; - surname: string | null; - departmentName: string | null; - startDate: Timestamp; - endDate: Timestamp; - deleted: boolean; - mark: string | null; -}; -export type SolutionTarget = { - id: Generated; - name: string; - anomalyId: string | null; -}; -export type SolutionTargetStep = { - id: Generated; - description: string; - solutionTargetId: string | null; -}; -export type Tariff = { - id: Generated; - validFrom: Timestamp | null; - validTo: Timestamp | null; - tariffGroupId: string | null; -}; -export type TariffGroup = { - id: Generated; - description: string; - ordinanceType: string; -}; -export type Ticket = { - id: Generated; - currentState: TicketValidationState; - notes: string[]; - errors: string[]; - isUrgent: Generated; - urgency: Generated; - approvalState: ApprovalState | null; - documentInfo: Generated; - createdAt: Generated; -}; -export type TicketStateHistory = { - id: Generated; - state: TicketValidationState; - createdAt: Generated; - ticketId: string; -}; -export type Tour = { - id: Generated; - done: boolean; - direction: string; - carName: string | null; - operationId: string; - driverId: string | null; - driverName: string | null; - codriverId: string | null; - codriverName: string | null; - patientId: string | null; - patientName: string | null; - patientSurname: string | null; - patientStreet: string | null; - patientZip: string | null; - patientCity: string | null; - healthInsurance: string | null; - healthInsuranceNumber: string | null; - type: string | null; - category: string | null; - transportType: string | null; - ordinanceType: string | null; - rangeEndDate: Timestamp | null; - startInstitution: string | null; - startStreet: string | null; - startZip: string | null; - startCity: string | null; - targetInstitution: string | null; - targetStreet: string | null; - targetZip: string | null; - targetCity: string | null; - startDate: Timestamp; - check: Generated; - occupiedKm: number | null; - totalKm: number | null; - startBegin: string | null; - startEnd: string | null; - target: string | null; - targetBegin: string | null; - empty: string | null; - hasInfection: Generated; - infectionName: string | null; - revenueDispoLive: number | null; - billDate: Timestamp | null; - billNumber: string | null; - revenue: Generated; - consumptionCosts: Generated; - revenueDeviation: Generated; - createdAt: Timestamp | null; - deletedAt: Timestamp | null; - ticketId: string | null; -}; -export type TourSource = { - internalId: Generated; - insertedAt: Generated; - jobId: string; - id: string | null; - check: string | null; - createTime: string | null; - empfangenVonId: string | null; - endgen: string | null; - serienId: string | null; - serienKategorName: string | null; - serienKategorie: string | null; - zadStatus: string | null; - abrDate: string | null; - abrNum: string | null; - abrTime: string | null; - ausrueckZeit: string | null; - startTime: string | null; - startDate: string | null; - date: string | null; - date_iso: string | null; - dauergenehmigung: string | null; - direction: string | null; - distanceValue: string | null; - besetztKm: string | null; - gefahren: string | null; - gesamtPreis: string | null; - infektion: string | null; - itDesc: string | null; - itKrz: string | null; - itName: string | null; - kkId: string | null; - krankenkasse: string | null; - patId: string | null; - patName: string | null; - patSurname: string | null; - patStreet: string | null; - patZip: string | null; - patCity: string | null; - startInstitution: string | null; - startStreet: string | null; - startZip: string | null; - startCity: string | null; - targetInstitution: string | null; - targetStreet: string | null; - targetZip: string | null; - targetCity: string | null; - transportKrz: string | null; - transportName: string | null; - transportart: string | null; - verordnungsId: string | null; - verordnungsName: string | null; - type: string | null; - startBegin: string | null; - startEnd: string | null; - frei: string | null; - ziel: string | null; - zielBegin: string | null; - endTime: string | null; - endDate: string | null; - einsatzNummer: string | null; - carName: string | null; - carNo: string | null; - beifahrerName: string | null; - beifahrer: string | null; - fahrerName: string | null; - fahrer: string | null; - color: string | null; -}; -export type TourStaging = { - internalId: Generated; - id: string | null; - done: boolean | null; - direction: string | null; - carName: string | null; - operationId: string | null; - driverId: string | null; - driverName: string | null; - codriverId: string | null; - codriverName: string | null; - patientId: string | null; - patientName: string | null; - patientSurname: string | null; - patientStreet: string | null; - patientZip: string | null; - patientCity: string | null; - healthInsurance: string | null; - healthInsuranceNumber: string | null; - type: string | null; - category: string | null; - transportType: string | null; - ordinanceType: string | null; - rangeEndDate: Timestamp | null; - startInstitution: string | null; - startStreet: string | null; - startZip: string | null; - startCity: string | null; - targetInstitution: string | null; - targetStreet: string | null; - targetZip: string | null; - targetCity: string | null; - startDate: Timestamp | null; - check: Generated; - occupiedKm: number | null; - totalKm: number | null; - startBegin: string | null; - startEnd: string | null; - target: string | null; - targetBegin: string | null; - empty: string | null; - hasInfection: Generated; - infectionName: string | null; - revenueDispoLive: number | null; - billDate: Timestamp | null; - billNumber: string | null; - revenue: Generated; - revenueDeviation: Generated; - consumptionCosts: Generated; - createdAt: Timestamp | null; -}; -export type Trace = { - id: Generated; - type: string; - entityKey: string; - createdAt: Generated; -}; -export type WorkTime = { - id: string; - userId: string; - firstname: string; - surname: string; - startDate: Timestamp | null; - endDate: Timestamp | null; - department: string | null; - pause: number; - duration: number; -}; -export type WorkTimeSource = { - internalId: Generated; - insertedAt: Generated; - jobId: string; - id: string | null; - user_id: string | null; - firstname: string | null; - surname: string | null; - department_id: string | null; - department_name: string | null; - start_date: string | null; - end_date: string | null; - pauze: string | null; - duration: string | null; -}; -export type WorkTimeStaging = { - internalId: Generated; - id: number; - employeeId: number; - firstname: string; - surname: string; - departmentName: string | null; - startDate: Timestamp; - endDate: Timestamp; -}; -export type DB = { - _AvicennaTenantToTariffGroup: AvicennaTenantToTariffGroup; - Anomaly: Anomaly; - AttendanceRegistration: AttendanceRegistration; - AttendanceRegistrationSource: AttendanceRegistrationSource; - AttendanceRegistrationStaging: AttendanceRegistrationStaging; - AvicennaTenant: AvicennaTenant; - CostType: CostType; - DyflexisEmployee: DyflexisEmployee; - Employee: Employee; - EmployeeDispoLiveSource: EmployeeDispoLiveSource; - EmployeeDispoLiveStaging: EmployeeDispoLiveStaging; - EmployeeDyflexisSource: EmployeeDyflexisSource; - EmployeeDyflexisStaging: EmployeeDyflexisStaging; - Patient: Patient; - PatientSource: PatientSource; - PatientStaging: PatientStaging; - PlannedTime: PlannedTime; - PlannedTimeSource: PlannedTimeSource; - PlannedTimeStaging: PlannedTimeStaging; - SolutionTarget: SolutionTarget; - SolutionTargetStep: SolutionTargetStep; - Tariff: Tariff; - TariffGroup: TariffGroup; - Ticket: Ticket; - TicketStateHistory: TicketStateHistory; - Tour: Tour; - TourSource: TourSource; - TourStaging: TourStaging; - Trace: Trace; - WorkTime: WorkTime; - WorkTimeSource: WorkTimeSource; - WorkTimeStaging: WorkTimeStaging; -}; diff --git a/service/data-hub/data-connector/prisma/schema.prisma b/service/data-hub/data-connector/prisma/schema.prisma index ad96c8c..a95975b 100644 --- a/service/data-hub/data-connector/prisma/schema.prisma +++ b/service/data-hub/data-connector/prisma/schema.prisma @@ -13,7 +13,7 @@ generator kysely { provider = "prisma-kysely" previewFeatures = ["postgresqlExtensions"] - output = "../libs/api/data-access-database/src/lib" + output = "../src/core/database" fileName = "types.ts" } diff --git a/service/data-hub/data-connector/src/core/database/types.ts b/service/data-hub/data-connector/src/core/database/types.ts index 2ec6d51..ec7880c 100644 --- a/service/data-hub/data-connector/src/core/database/types.ts +++ b/service/data-hub/data-connector/src/core/database/types.ts @@ -1,530 +1,535 @@ -import type { ColumnType } from 'kysely'; +import type { ColumnType } from "kysely"; export type Generated = T extends ColumnType ? ColumnType : ColumnType; export type Timestamp = ColumnType; -export const CostTypeVariant = { - NACHTZUSCHLAG: 'NACHTZUSCHLAG', - WOCHENENDZUSCHLAG: 'WOCHENENDZUSCHLAG', - FEIERTAGSZUSCHLAG: 'FEIERTAGSZUSCHLAG', - DESINFEKTIONSZUSCHLAG: 'DESINFEKTIONSZUSCHLAG', - KILOMETERZUSCHLAG: 'KILOMETERZUSCHLAG', - FAHRZEUGZUSCHLAG: 'FAHRZEUGZUSCHLAG', - TSWDIFFERENZIERUNG: 'TSWDIFFERENZIERUNG', - GRUNDPREIS: 'GRUNDPREIS', -} as const; -export type CostTypeVariant = - (typeof CostTypeVariant)[keyof typeof CostTypeVariant]; export const TicketState = { - CREATED: 'CREATED', - APPROVAL_REQUIRED: 'APPROVAL_REQUIRED', - READY: 'READY', - DONE: 'DONE', - BILLABLE: 'BILLABLE', - ARCHIVED: 'ARCHIVED', + CREATED: "CREATED", + APPROVAL_REQUIRED: "APPROVAL_REQUIRED", + READY: "READY", + DONE: "DONE", + BILLABLE: "BILLABLE", + ARCHIVED: "ARCHIVED" } as const; export type TicketState = (typeof TicketState)[keyof typeof TicketState]; export const TicketValidationState = { - CREATED: 'CREATED', - USER_INTERACTION_REQUIRED: 'USER_INTERACTION_REQUIRED', - TD_UNCERTAIN: 'TD_UNCERTAIN', - DOCUMENTS_MISSING: 'DOCUMENTS_MISSING', - ARCHIVED: 'ARCHIVED', + CREATED: "CREATED", + USER_INTERACTION_REQUIRED: "USER_INTERACTION_REQUIRED", + TD_UNCERTAIN: "TD_UNCERTAIN", + DOCUMENTS_MISSING: "DOCUMENTS_MISSING", + ARCHIVED: "ARCHIVED" } as const; -export type TicketValidationState = - (typeof TicketValidationState)[keyof typeof TicketValidationState]; +export type TicketValidationState = (typeof TicketValidationState)[keyof typeof TicketValidationState]; export const ApprovalState = { - UNKNOWN: 'UNKNOWN', - FREE: 'FREE', - REQUIRED: 'REQUIRED', - REQUESTED: 'REQUESTED', - APPROVED: 'APPROVED', + UNKNOWN: "UNKNOWN", + FREE: "FREE", + REQUIRED: "REQUIRED", + REQUESTED: "REQUESTED", + APPROVED: "APPROVED" } as const; export type ApprovalState = (typeof ApprovalState)[keyof typeof ApprovalState]; +export const CostTypeVariant = { + NACHTZUSCHLAG: "NACHTZUSCHLAG", + WOCHENENDZUSCHLAG: "WOCHENENDZUSCHLAG", + FEIERTAGSZUSCHLAG: "FEIERTAGSZUSCHLAG", + DESINFEKTIONSZUSCHLAG: "DESINFEKTIONSZUSCHLAG", + KILOMETERZUSCHLAG: "KILOMETERZUSCHLAG", + FAHRZEUGZUSCHLAG: "FAHRZEUGZUSCHLAG", + TSWDIFFERENZIERUNG: "TSWDIFFERENZIERUNG", + GRUNDPREIS: "GRUNDPREIS" +} as const; +export type CostTypeVariant = (typeof CostTypeVariant)[keyof typeof CostTypeVariant]; export type Anomaly = { - id: string; - type: string; - description: string; - groupKey: string; - groupDescription: string; - workedOnBy: string; - sleepTimer: number; - sleepSince: Timestamp | null; - resolvedAt: Timestamp | null; - manuallyResolved: Generated; - createdAt: Generated; + id: string; + type: string; + description: string; + groupKey: string; + groupDescription: string; + workedOnBy: string; + sleepTimer: number; + sleepSince: Timestamp | null; + resolvedAt: Timestamp | null; + manuallyResolved: Generated; + createdAt: Generated; }; export type AttendanceRegistration = { - attendanceRegistrationId: number; - employeeId: number; - personnelNumber: string; - dateTime: Timestamp; - event: string; + attendanceRegistrationId: number; + employeeId: number; + personnelNumber: string; + dateTime: Timestamp; + event: string; }; export type AttendanceRegistrationSource = { - internalId: Generated; - insertedAt: Generated; - jobId: string; - attendanceRegistrationId: string | null; - employeeId: string | null; - personnelNumber: string | null; - dateTime: string | null; - event: string | null; + internalId: Generated; + insertedAt: Generated; + jobId: string; + attendanceRegistrationId: string | null; + employeeId: string | null; + personnelNumber: string | null; + dateTime: string | null; + event: string | null; }; export type AttendanceRegistrationStaging = { - internalId: Generated; - attendanceRegistrationId: number; - employeeId: number; - dateTime: Timestamp; - event: string; + internalId: Generated; + attendanceRegistrationId: number; + employeeId: number; + dateTime: Timestamp; + event: string; }; export type AvicennaTenant = { - id: Generated; - healthInsuranceNumber: string; - name: string; + id: Generated; + healthInsuranceNumber: string; + name: string; }; export type AvicennaTenantToTariffGroup = { - A: string; - B: string; + A: string; + B: string; }; export type CostType = { - id: Generated; - description: string; - variant: CostTypeVariant; - costAmount: number; - timeRange: string | null; - kmInclusive: number | null; - excludeCarNames: string[]; - infectionType: string | null; - tariffId: string | null; + id: Generated; + description: string; + variant: CostTypeVariant; + costAmount: number; + timeRange: string | null; + kmInclusive: number | null; + excludeCarNames: string[]; + infectionType: string | null; + tariffId: string | null; }; export type DyflexisEmployee = { - id: Generated; - userId: string; - firstname: string; - surname: string; - contractStart: string; - contractEnd: string | null; - contractHoursWeek: number; - contractSalaryHour: number; + id: number; + firstname: string; + surname: string; + contractStart: Timestamp; + contractEnd: Timestamp | null; + contractHoursWeek: number; + contractSalaryHour: number; }; export type Employee = { - id: string; - name: string; - surname: string; - personnelNumber: string | null; - mobile: string | null; - qualification: string | null; - occuptationalHealthExamination: Timestamp | null; - personTransportCertificate: Timestamp | null; + id: string; + name: string; + surname: string; + personnelNumber: string | null; + mobile: string | null; + qualification: string | null; + occuptationalHealthExamination: Timestamp | null; + personTransportCertificate: Timestamp | null; }; export type EmployeeDispoLiveSource = { - internalId: Generated; - insertedAt: Generated; - jobId: string; - id: string | null; - pScheinAblaufDatum: string | null; - name: string | null; - surname: string | null; - persId: string | null; - importPersId: string | null; - qualifikation: string | null; + internalId: Generated; + insertedAt: Generated; + jobId: string; + id: string | null; + pScheinAblaufDatum: string | null; + name: string | null; + surname: string | null; + persId: string | null; + importPersId: string | null; + qualifikation: string | null; +}; +export type EmployeeDispoLiveStaging = { + internalId: Generated; + id: string; + name: string | null; + surname: string | null; + personnelNumber: string | null; + qualification: string | null; + personTransportCertificate: Timestamp | null; }; export type EmployeeDyflexisSource = { - internalId: Generated; - insertedAt: Generated; - jobId: string; - id: string | null; - firstname: string | null; - surname: string | null; - contract_id: string | null; - contract_start: string | null; - contract_end: string | null; - contract_hours_week: string | null; - contract_salary_hour: string | null; + internalId: Generated; + insertedAt: Generated; + jobId: string; + id: string | null; + firstname: string | null; + surname: string | null; + contract_id: string | null; + contract_start: string | null; + contract_end: string | null; + contract_hours_week: string | null; + contract_salary_hour: string | null; }; -export type EmployeeStaging = { - internalId: Generated; - id: number; - firstname: string; - surname: string; - contractStart: Timestamp; - contractEnd: Timestamp; - contractHoursWeek: number; - contractSalaryHour: number; - personTransportCertificate: Timestamp | null; - qualification: string | null; +export type EmployeeDyflexisStaging = { + internalId: Generated; + id: number; + firstname: string; + surname: string; + contractStart: Timestamp; + contractEnd: Timestamp; + contractHoursWeek: number; + contractSalaryHour: number; }; export type Patient = { - id: string; - surname: string | null; - name: string | null; - street: string | null; - zip: string | null; - city: string | null; - birthday: Timestamp | null; - healthinsuranceId: string | null; - healthinsurance: string | null; - careDegree: string | null; - disabilityMark1: string | null; - disabilityMark2: string | null; + id: string; + surname: string | null; + name: string | null; + street: string | null; + zip: string | null; + city: string | null; + birthday: Timestamp | null; + healthinsuranceId: string | null; + healthinsurance: string | null; + careDegree: string | null; + disabilityMark1: string | null; + disabilityMark2: string | null; }; export type PatientSource = { - internalId: Generated; - insertedAt: Generated; - jobId: string; - id: string | null; - surname: string | null; - name: string | null; - street: string | null; - zip: string | null; - city: string | null; - birthday: string | null; - kkId: string | null; - krankenkasse: string | null; - pflegestufe: string | null; - behinderung1: string | null; - behinderung2: string | null; + internalId: Generated; + insertedAt: Generated; + jobId: string; + id: string | null; + surname: string | null; + name: string | null; + street: string | null; + zip: string | null; + city: string | null; + birthday: string | null; + kkId: string | null; + krankenkasse: string | null; + pflegestufe: string | null; + behinderung1: string | null; + behinderung2: string | null; }; export type PatientStaging = { - internalId: Generated; - id: string | null; - surname: string | null; - name: string | null; - street: string | null; - zip: string | null; - city: string | null; - birthday: Timestamp | null; - healthinsuranceId: string | null; - healthinsurance: string | null; - careDegree: string | null; - disabilityMark1: string | null; - disabilityMark2: string | null; + internalId: Generated; + id: string | null; + surname: string | null; + name: string | null; + street: string | null; + zip: string | null; + city: string | null; + birthday: Timestamp | null; + healthinsuranceId: string | null; + healthinsurance: string | null; + careDegree: string | null; + disabilityMark1: string | null; + disabilityMark2: string | null; }; export type PlannedTime = { - id: string; - userId: string; - firstname: string | null; - surname: string | null; - startDate: Timestamp | null; - endDate: Timestamp | null; - department: string | null; - pause: number; - duration: number; - note: string | null; + id: string; + userId: string; + firstname: string | null; + surname: string | null; + startDate: Timestamp | null; + endDate: Timestamp | null; + department: string | null; + pause: number; + duration: number; + note: string | null; }; export type PlannedTimeSource = { - internalId: Generated; - insertedAt: Generated; - jobId: string; - id: string | null; - user_id: string | null; - firstname: string | null; - surname: string | null; - department_id: string | null; - department_name: string | null; - start_date: string | null; - end_date: string | null; - pauze: string | null; - duration: string | null; - deleted: string | null; - mark: string | null; + internalId: Generated; + insertedAt: Generated; + jobId: string; + id: string | null; + user_id: string | null; + firstname: string | null; + surname: string | null; + department_id: string | null; + department_name: string | null; + start_date: string | null; + end_date: string | null; + pauze: string | null; + duration: string | null; + deleted: string | null; + mark: string | null; }; export type PlannedTimeStaging = { - internalId: Generated; - id: number; - employeeId: number; - firstname: string | null; - surname: string | null; - departmentName: string | null; - startDate: Timestamp; - endDate: Timestamp; - deleted: boolean; - mark: string | null; + internalId: Generated; + id: number; + employeeId: number; + firstname: string | null; + surname: string | null; + departmentName: string | null; + startDate: Timestamp; + endDate: Timestamp; + deleted: boolean; + mark: string | null; }; export type SolutionTarget = { - id: Generated; - name: string; - anomalyId: string | null; + id: Generated; + name: string; + anomalyId: string | null; }; export type SolutionTargetStep = { - id: Generated; - description: string; - solutionTargetId: string | null; + id: Generated; + description: string; + solutionTargetId: string | null; }; export type Tariff = { - id: Generated; - validFrom: Timestamp | null; - validTo: Timestamp | null; - tariffGroupId: string | null; + id: Generated; + validFrom: Timestamp | null; + validTo: Timestamp | null; + tariffGroupId: string | null; }; export type TariffGroup = { - id: Generated; - description: string; - ordinanceType: string; + id: Generated; + description: string; + ordinanceType: string; }; export type Ticket = { - id: Generated; - currentState: TicketValidationState; - notes: string[]; - errors: string[]; - isUrgent: Generated; - urgency: Generated; - approvalState: ApprovalState | null; - documentInfo: Generated; - createdAt: Generated; + id: Generated; + currentState: TicketValidationState; + notes: string[]; + errors: string[]; + isUrgent: Generated; + urgency: Generated; + approvalState: ApprovalState | null; + documentInfo: Generated; + createdAt: Generated; }; export type TicketStateHistory = { - id: Generated; - state: TicketValidationState; - createdAt: Generated; - ticketId: string; + id: Generated; + state: TicketValidationState; + createdAt: Generated; + ticketId: string; }; export type Tour = { - id: Generated; - done: boolean; - direction: string; - carName: string | null; - operationId: string; - driverId: string | null; - driverName: string | null; - codriverId: string | null; - codriverName: string | null; - patientId: string | null; - patientName: string | null; - patientSurname: string | null; - patientStreet: string | null; - patientZip: string | null; - patientCity: string | null; - healthInsurance: string | null; - healthInsuranceNumber: string | null; - type: string | null; - category: string | null; - transportType: string | null; - ordinanceType: string | null; - rangeEndDate: Timestamp | null; - startInstitution: string | null; - startStreet: string | null; - startZip: string | null; - startCity: string | null; - targetInstitution: string | null; - targetStreet: string | null; - targetZip: string | null; - targetCity: string | null; - startDate: Timestamp; - check: Generated; - occupiedKm: number | null; - totalKm: number | null; - startBegin: string | null; - startEnd: string | null; - target: string | null; - targetBegin: string | null; - empty: string | null; - hasInfection: Generated; - infectionName: string | null; - revenueDispoLive: number | null; - billDate: Timestamp | null; - billNumber: string | null; - revenue: Generated; - consumptionCosts: Generated; - revenueDeviation: Generated; - createdAt: Timestamp | null; - deletedAt: Timestamp | null; - ticketId: string | null; + id: Generated; + done: boolean; + direction: string; + carName: string | null; + operationId: string; + driverId: string | null; + driverName: string | null; + codriverId: string | null; + codriverName: string | null; + patientId: string | null; + patientName: string | null; + patientSurname: string | null; + patientStreet: string | null; + patientZip: string | null; + patientCity: string | null; + healthInsurance: string | null; + healthInsuranceNumber: string | null; + type: string | null; + category: string | null; + transportType: string | null; + ordinanceType: string | null; + rangeEndDate: Timestamp | null; + startInstitution: string | null; + startStreet: string | null; + startZip: string | null; + startCity: string | null; + targetInstitution: string | null; + targetStreet: string | null; + targetZip: string | null; + targetCity: string | null; + startDate: Timestamp; + check: Generated; + occupiedKm: number | null; + totalKm: number | null; + startBegin: string | null; + startEnd: string | null; + target: string | null; + targetBegin: string | null; + empty: string | null; + hasInfection: Generated; + infectionName: string | null; + revenueDispoLive: number | null; + billDate: Timestamp | null; + billNumber: string | null; + revenue: Generated; + consumptionCosts: Generated; + revenueDeviation: Generated; + createdAt: Timestamp | null; + deletedAt: Timestamp | null; + ticketId: string | null; }; export type TourSource = { - internalId: Generated; - insertedAt: Generated; - jobId: string; - id: string | null; - check: string | null; - createTime: string | null; - empfangenVonId: string | null; - endgen: string | null; - serienId: string | null; - serienKategorName: string | null; - serienKategorie: string | null; - zadStatus: string | null; - abrDate: string | null; - abrNum: string | null; - abrTime: string | null; - ausrueckZeit: string | null; - startTime: string | null; - startDate: string | null; - date: string | null; - date_iso: string | null; - dauergenehmigung: string | null; - direction: string | null; - distanceValue: string | null; - besetztKm: string | null; - gefahren: string | null; - gesamtPreis: string | null; - infektion: string | null; - itDesc: string | null; - itKrz: string | null; - itName: string | null; - kkId: string | null; - krankenkasse: string | null; - patId: string | null; - patName: string | null; - patSurname: string | null; - patStreet: string | null; - patZip: string | null; - patCity: string | null; - startInstitution: string | null; - startStreet: string | null; - startZip: string | null; - startCity: string | null; - targetInstitution: string | null; - targetStreet: string | null; - targetZip: string | null; - targetCity: string | null; - transportKrz: string | null; - transportName: string | null; - transportart: string | null; - verordnungsId: string | null; - verordnungsName: string | null; - type: string | null; - startBegin: string | null; - startEnd: string | null; - frei: string | null; - ziel: string | null; - zielBegin: string | null; - endTime: string | null; - endDate: string | null; - einsatzNummer: string | null; - carName: string | null; - carNo: string | null; - beifahrerName: string | null; - beifahrer: string | null; - fahrerName: string | null; - fahrer: string | null; - color: string | null; + internalId: Generated; + insertedAt: Generated; + jobId: string; + id: string | null; + check: string | null; + createTime: string | null; + empfangenVonId: string | null; + endgen: string | null; + serienId: string | null; + serienKategorName: string | null; + serienKategorie: string | null; + zadStatus: string | null; + abrDate: string | null; + abrNum: string | null; + abrTime: string | null; + ausrueckZeit: string | null; + startTime: string | null; + startDate: string | null; + date: string | null; + date_iso: string | null; + dauergenehmigung: string | null; + direction: string | null; + distanceValue: string | null; + besetztKm: string | null; + gefahren: string | null; + gesamtPreis: string | null; + infektion: string | null; + itDesc: string | null; + itKrz: string | null; + itName: string | null; + kkId: string | null; + krankenkasse: string | null; + patId: string | null; + patName: string | null; + patSurname: string | null; + patStreet: string | null; + patZip: string | null; + patCity: string | null; + startInstitution: string | null; + startStreet: string | null; + startZip: string | null; + startCity: string | null; + targetInstitution: string | null; + targetStreet: string | null; + targetZip: string | null; + targetCity: string | null; + transportKrz: string | null; + transportName: string | null; + transportart: string | null; + verordnungsId: string | null; + verordnungsName: string | null; + type: string | null; + startBegin: string | null; + startEnd: string | null; + frei: string | null; + ziel: string | null; + zielBegin: string | null; + endTime: string | null; + endDate: string | null; + einsatzNummer: string | null; + carName: string | null; + carNo: string | null; + beifahrerName: string | null; + beifahrer: string | null; + fahrerName: string | null; + fahrer: string | null; + color: string | null; }; export type TourStaging = { - internalId: Generated; - id: string | null; - done: boolean | null; - direction: string | null; - carName: string | null; - operationId: string | null; - driverId: string | null; - driverName: string | null; - codriverId: string | null; - codriverName: string | null; - patientId: string | null; - patientName: string | null; - patientSurname: string | null; - patientStreet: string | null; - patientZip: string | null; - patientCity: string | null; - healthInsurance: string | null; - healthInsuranceNumber: string | null; - type: string | null; - category: string | null; - transportType: string | null; - ordinanceType: string | null; - rangeEndDate: Timestamp | null; - startInstitution: string | null; - startStreet: string | null; - startZip: string | null; - startCity: string | null; - targetInstitution: string | null; - targetStreet: string | null; - targetZip: string | null; - targetCity: string | null; - startDate: Timestamp | null; - check: Generated; - occupiedKm: number | null; - totalKm: number | null; - startBegin: string | null; - startEnd: string | null; - target: string | null; - targetBegin: string | null; - empty: string | null; - hasInfection: Generated; - infectionName: string | null; - revenueDispoLive: number | null; - billDate: Timestamp | null; - billNumber: string | null; - revenue: Generated; - revenueDeviation: Generated; - consumptionCosts: Generated; - createdAt: Timestamp | null; + internalId: Generated; + id: string | null; + done: boolean | null; + direction: string | null; + carName: string | null; + operationId: string | null; + driverId: string | null; + driverName: string | null; + codriverId: string | null; + codriverName: string | null; + patientId: string | null; + patientName: string | null; + patientSurname: string | null; + patientStreet: string | null; + patientZip: string | null; + patientCity: string | null; + healthInsurance: string | null; + healthInsuranceNumber: string | null; + type: string | null; + category: string | null; + transportType: string | null; + ordinanceType: string | null; + rangeEndDate: Timestamp | null; + startInstitution: string | null; + startStreet: string | null; + startZip: string | null; + startCity: string | null; + targetInstitution: string | null; + targetStreet: string | null; + targetZip: string | null; + targetCity: string | null; + startDate: Timestamp | null; + check: Generated; + occupiedKm: number | null; + totalKm: number | null; + startBegin: string | null; + startEnd: string | null; + target: string | null; + targetBegin: string | null; + empty: string | null; + hasInfection: Generated; + infectionName: string | null; + revenueDispoLive: number | null; + billDate: Timestamp | null; + billNumber: string | null; + revenue: Generated; + revenueDeviation: Generated; + consumptionCosts: Generated; + createdAt: Timestamp | null; }; export type Trace = { - id: Generated; - type: string; - entityKey: string; - createdAt: Generated; + id: Generated; + type: string; + entityKey: string; + createdAt: Generated; }; export type WorkTime = { - id: string; - userId: string; - firstname: string; - surname: string; - startDate: Timestamp | null; - endDate: Timestamp | null; - department: string | null; - pause: number; - duration: number; + id: string; + userId: string; + firstname: string; + surname: string; + startDate: Timestamp | null; + endDate: Timestamp | null; + department: string | null; + pause: number; + duration: number; }; export type WorkTimeSource = { - internalId: Generated; - insertedAt: Generated; - jobId: string; - id: string | null; - user_id: string | null; - firstname: string | null; - surname: string | null; - department_id: string | null; - department_name: string | null; - start_date: string | null; - end_date: string | null; - pauze: string | null; - duration: string | null; + internalId: Generated; + insertedAt: Generated; + jobId: string; + id: string | null; + user_id: string | null; + firstname: string | null; + surname: string | null; + department_id: string | null; + department_name: string | null; + start_date: string | null; + end_date: string | null; + pauze: string | null; + duration: string | null; }; export type WorkTimeStaging = { - internalId: Generated; - id: number; - employeeId: number; - firstname: string; - surname: string; - departmentName: string | null; - startDate: Timestamp; - endDate: Timestamp; + internalId: Generated; + id: number; + employeeId: number; + firstname: string; + surname: string; + departmentName: string | null; + startDate: Timestamp; + endDate: Timestamp; }; export type DB = { - _AvicennaTenantToTariffGroup: AvicennaTenantToTariffGroup; - Anomaly: Anomaly; - AttendanceRegistration: AttendanceRegistration; - AttendanceRegistrationSource: AttendanceRegistrationSource; - AttendanceRegistrationStaging: AttendanceRegistrationStaging; - AvicennaTenant: AvicennaTenant; - CostType: CostType; - DyflexisEmployee: DyflexisEmployee; - Employee: Employee; - EmployeeDispoLiveSource: EmployeeDispoLiveSource; - EmployeeDyflexisSource: EmployeeDyflexisSource; - EmployeeStaging: EmployeeStaging; - Patient: Patient; - PatientSource: PatientSource; - PatientStaging: PatientStaging; - PlannedTime: PlannedTime; - PlannedTimeSource: PlannedTimeSource; - PlannedTimeStaging: PlannedTimeStaging; - SolutionTarget: SolutionTarget; - SolutionTargetStep: SolutionTargetStep; - Tariff: Tariff; - TariffGroup: TariffGroup; - Ticket: Ticket; - TicketStateHistory: TicketStateHistory; - Tour: Tour; - TourSource: TourSource; - TourStaging: TourStaging; - Trace: Trace; - WorkTime: WorkTime; - WorkTimeSource: WorkTimeSource; - WorkTimeStaging: WorkTimeStaging; + _AvicennaTenantToTariffGroup: AvicennaTenantToTariffGroup; + Anomaly: Anomaly; + AttendanceRegistration: AttendanceRegistration; + AttendanceRegistrationSource: AttendanceRegistrationSource; + AttendanceRegistrationStaging: AttendanceRegistrationStaging; + AvicennaTenant: AvicennaTenant; + CostType: CostType; + DyflexisEmployee: DyflexisEmployee; + Employee: Employee; + EmployeeDispoLiveSource: EmployeeDispoLiveSource; + EmployeeDispoLiveStaging: EmployeeDispoLiveStaging; + EmployeeDyflexisSource: EmployeeDyflexisSource; + EmployeeDyflexisStaging: EmployeeDyflexisStaging; + Patient: Patient; + PatientSource: PatientSource; + PatientStaging: PatientStaging; + PlannedTime: PlannedTime; + PlannedTimeSource: PlannedTimeSource; + PlannedTimeStaging: PlannedTimeStaging; + SolutionTarget: SolutionTarget; + SolutionTargetStep: SolutionTargetStep; + Tariff: Tariff; + TariffGroup: TariffGroup; + Ticket: Ticket; + TicketStateHistory: TicketStateHistory; + Tour: Tour; + TourSource: TourSource; + TourStaging: TourStaging; + Trace: Trace; + WorkTime: WorkTime; + WorkTimeSource: WorkTimeSource; + WorkTimeStaging: WorkTimeStaging; };