2394 lines
104 KiB
TypeScript
2394 lines
104 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 the `Appointment` model and its related types.
|
|
*
|
|
* 🟢 You can import this file directly.
|
|
*/
|
|
import type * as runtime from "@prisma/client/runtime/client"
|
|
import type * as $Enums from "../enums.ts"
|
|
import type * as Prisma from "../internal/prismaNamespace.ts"
|
|
|
|
/**
|
|
* Model Appointment
|
|
* A booked appointment (M06 A.5). Tenant-scoped. `startAt`/`endAt` are UTC;
|
|
* `timezone` records the booker's IANA zone for display. CRM/Form links are bare
|
|
* nullable scalars (kontaktId set on match/create; leadId reserved for R-P7,
|
|
* formSubmissionId reserved for AK-P16c). `intakeAnswers` holds the v1 mini-form
|
|
* payload. `internalCalendarEventId` points at the local CalendarEvent mirror that
|
|
* blocks the provider's availability (AK-P16a write-path pushes it external later).
|
|
*/
|
|
export type AppointmentModel = runtime.Types.Result.DefaultSelection<Prisma.$AppointmentPayload>
|
|
|
|
export type AggregateAppointment = {
|
|
_count: AppointmentCountAggregateOutputType | null
|
|
_min: AppointmentMinAggregateOutputType | null
|
|
_max: AppointmentMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AppointmentMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
bookingPageId: string | null
|
|
providerUserId: string | null
|
|
startAt: Date | null
|
|
endAt: Date | null
|
|
timezone: string | null
|
|
status: $Enums.AppointmentStatus | null
|
|
kontaktId: string | null
|
|
leadId: string | null
|
|
formSubmissionId: string | null
|
|
internalCalendarEventId: string | null
|
|
cancelledAt: Date | null
|
|
cancelledByKind: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason: string | null
|
|
rescheduledFromId: string | null
|
|
notesInternal: string | null
|
|
isDemoData: boolean | null
|
|
}
|
|
|
|
export type AppointmentMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
updatedAt: Date | null
|
|
tenantId: string | null
|
|
bookingPageId: string | null
|
|
providerUserId: string | null
|
|
startAt: Date | null
|
|
endAt: Date | null
|
|
timezone: string | null
|
|
status: $Enums.AppointmentStatus | null
|
|
kontaktId: string | null
|
|
leadId: string | null
|
|
formSubmissionId: string | null
|
|
internalCalendarEventId: string | null
|
|
cancelledAt: Date | null
|
|
cancelledByKind: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason: string | null
|
|
rescheduledFromId: string | null
|
|
notesInternal: string | null
|
|
isDemoData: boolean | null
|
|
}
|
|
|
|
export type AppointmentCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
updatedAt: number
|
|
tenantId: number
|
|
bookingPageId: number
|
|
providerUserId: number
|
|
startAt: number
|
|
endAt: number
|
|
timezone: number
|
|
status: number
|
|
kontaktId: number
|
|
leadId: number
|
|
formSubmissionId: number
|
|
intakeAnswers: number
|
|
internalCalendarEventId: number
|
|
externalCalendarEventIds: number
|
|
cancelledAt: number
|
|
cancelledByKind: number
|
|
cancellationReason: number
|
|
rescheduledFromId: number
|
|
notesInternal: number
|
|
isDemoData: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AppointmentMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
bookingPageId?: true
|
|
providerUserId?: true
|
|
startAt?: true
|
|
endAt?: true
|
|
timezone?: true
|
|
status?: true
|
|
kontaktId?: true
|
|
leadId?: true
|
|
formSubmissionId?: true
|
|
internalCalendarEventId?: true
|
|
cancelledAt?: true
|
|
cancelledByKind?: true
|
|
cancellationReason?: true
|
|
rescheduledFromId?: true
|
|
notesInternal?: true
|
|
isDemoData?: true
|
|
}
|
|
|
|
export type AppointmentMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
bookingPageId?: true
|
|
providerUserId?: true
|
|
startAt?: true
|
|
endAt?: true
|
|
timezone?: true
|
|
status?: true
|
|
kontaktId?: true
|
|
leadId?: true
|
|
formSubmissionId?: true
|
|
internalCalendarEventId?: true
|
|
cancelledAt?: true
|
|
cancelledByKind?: true
|
|
cancellationReason?: true
|
|
rescheduledFromId?: true
|
|
notesInternal?: true
|
|
isDemoData?: true
|
|
}
|
|
|
|
export type AppointmentCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
updatedAt?: true
|
|
tenantId?: true
|
|
bookingPageId?: true
|
|
providerUserId?: true
|
|
startAt?: true
|
|
endAt?: true
|
|
timezone?: true
|
|
status?: true
|
|
kontaktId?: true
|
|
leadId?: true
|
|
formSubmissionId?: true
|
|
intakeAnswers?: true
|
|
internalCalendarEventId?: true
|
|
externalCalendarEventIds?: true
|
|
cancelledAt?: true
|
|
cancelledByKind?: true
|
|
cancellationReason?: true
|
|
rescheduledFromId?: true
|
|
notesInternal?: true
|
|
isDemoData?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AppointmentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Appointment to aggregate.
|
|
*/
|
|
where?: Prisma.AppointmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Appointments to fetch.
|
|
*/
|
|
orderBy?: Prisma.AppointmentOrderByWithRelationInput | Prisma.AppointmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.AppointmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Appointments from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Appointments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned Appointments
|
|
**/
|
|
_count?: true | AppointmentCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AppointmentMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AppointmentMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAppointmentAggregateType<T extends AppointmentAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAppointment]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateAppointment[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateAppointment[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AppointmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AppointmentWhereInput
|
|
orderBy?: Prisma.AppointmentOrderByWithAggregationInput | Prisma.AppointmentOrderByWithAggregationInput[]
|
|
by: Prisma.AppointmentScalarFieldEnum[] | Prisma.AppointmentScalarFieldEnum
|
|
having?: Prisma.AppointmentScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AppointmentCountAggregateInputType | true
|
|
_min?: AppointmentMinAggregateInputType
|
|
_max?: AppointmentMaxAggregateInputType
|
|
}
|
|
|
|
export type AppointmentGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
bookingPageId: string
|
|
providerUserId: string
|
|
startAt: Date
|
|
endAt: Date
|
|
timezone: string
|
|
status: $Enums.AppointmentStatus
|
|
kontaktId: string | null
|
|
leadId: string | null
|
|
formSubmissionId: string | null
|
|
intakeAnswers: runtime.JsonValue
|
|
internalCalendarEventId: string | null
|
|
externalCalendarEventIds: runtime.JsonValue
|
|
cancelledAt: Date | null
|
|
cancelledByKind: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason: string | null
|
|
rescheduledFromId: string | null
|
|
notesInternal: string | null
|
|
isDemoData: boolean
|
|
_count: AppointmentCountAggregateOutputType | null
|
|
_min: AppointmentMinAggregateOutputType | null
|
|
_max: AppointmentMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetAppointmentGroupByPayload<T extends AppointmentGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<AppointmentGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AppointmentGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AppointmentGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], AppointmentGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type AppointmentWhereInput = {
|
|
AND?: Prisma.AppointmentWhereInput | Prisma.AppointmentWhereInput[]
|
|
OR?: Prisma.AppointmentWhereInput[]
|
|
NOT?: Prisma.AppointmentWhereInput | Prisma.AppointmentWhereInput[]
|
|
id?: Prisma.StringFilter<"Appointment"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"Appointment"> | string
|
|
bookingPageId?: Prisma.StringFilter<"Appointment"> | string
|
|
providerUserId?: Prisma.StringFilter<"Appointment"> | string
|
|
startAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string
|
|
endAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string
|
|
timezone?: Prisma.StringFilter<"Appointment"> | string
|
|
status?: Prisma.EnumAppointmentStatusFilter<"Appointment"> | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
leadId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
formSubmissionId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
intakeAnswers?: Prisma.JsonFilter<"Appointment">
|
|
internalCalendarEventId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
externalCalendarEventIds?: Prisma.JsonFilter<"Appointment">
|
|
cancelledAt?: Prisma.DateTimeNullableFilter<"Appointment"> | Date | string | null
|
|
cancelledByKind?: Prisma.EnumAppointmentCancelledByKindNullableFilter<"Appointment"> | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
rescheduledFromId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
notesInternal?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
isDemoData?: Prisma.BoolFilter<"Appointment"> | boolean
|
|
bookingPage?: Prisma.XOR<Prisma.BookingPageScalarRelationFilter, Prisma.BookingPageWhereInput>
|
|
rescheduledFrom?: Prisma.XOR<Prisma.AppointmentNullableScalarRelationFilter, Prisma.AppointmentWhereInput> | null
|
|
rescheduledTo?: Prisma.AppointmentListRelationFilter
|
|
}
|
|
|
|
export type AppointmentOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
bookingPageId?: Prisma.SortOrder
|
|
providerUserId?: Prisma.SortOrder
|
|
startAt?: Prisma.SortOrder
|
|
endAt?: Prisma.SortOrder
|
|
timezone?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
kontaktId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
leadId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
formSubmissionId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
intakeAnswers?: Prisma.SortOrder
|
|
internalCalendarEventId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
externalCalendarEventIds?: Prisma.SortOrder
|
|
cancelledAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
cancelledByKind?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
cancellationReason?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
rescheduledFromId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
notesInternal?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
bookingPage?: Prisma.BookingPageOrderByWithRelationInput
|
|
rescheduledFrom?: Prisma.AppointmentOrderByWithRelationInput
|
|
rescheduledTo?: Prisma.AppointmentOrderByRelationAggregateInput
|
|
}
|
|
|
|
export type AppointmentWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.AppointmentWhereInput | Prisma.AppointmentWhereInput[]
|
|
OR?: Prisma.AppointmentWhereInput[]
|
|
NOT?: Prisma.AppointmentWhereInput | Prisma.AppointmentWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"Appointment"> | string
|
|
bookingPageId?: Prisma.StringFilter<"Appointment"> | string
|
|
providerUserId?: Prisma.StringFilter<"Appointment"> | string
|
|
startAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string
|
|
endAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string
|
|
timezone?: Prisma.StringFilter<"Appointment"> | string
|
|
status?: Prisma.EnumAppointmentStatusFilter<"Appointment"> | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
leadId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
formSubmissionId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
intakeAnswers?: Prisma.JsonFilter<"Appointment">
|
|
internalCalendarEventId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
externalCalendarEventIds?: Prisma.JsonFilter<"Appointment">
|
|
cancelledAt?: Prisma.DateTimeNullableFilter<"Appointment"> | Date | string | null
|
|
cancelledByKind?: Prisma.EnumAppointmentCancelledByKindNullableFilter<"Appointment"> | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
rescheduledFromId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
notesInternal?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
isDemoData?: Prisma.BoolFilter<"Appointment"> | boolean
|
|
bookingPage?: Prisma.XOR<Prisma.BookingPageScalarRelationFilter, Prisma.BookingPageWhereInput>
|
|
rescheduledFrom?: Prisma.XOR<Prisma.AppointmentNullableScalarRelationFilter, Prisma.AppointmentWhereInput> | null
|
|
rescheduledTo?: Prisma.AppointmentListRelationFilter
|
|
}, "id">
|
|
|
|
export type AppointmentOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
bookingPageId?: Prisma.SortOrder
|
|
providerUserId?: Prisma.SortOrder
|
|
startAt?: Prisma.SortOrder
|
|
endAt?: Prisma.SortOrder
|
|
timezone?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
kontaktId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
leadId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
formSubmissionId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
intakeAnswers?: Prisma.SortOrder
|
|
internalCalendarEventId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
externalCalendarEventIds?: Prisma.SortOrder
|
|
cancelledAt?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
cancelledByKind?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
cancellationReason?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
rescheduledFromId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
notesInternal?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
_count?: Prisma.AppointmentCountOrderByAggregateInput
|
|
_max?: Prisma.AppointmentMaxOrderByAggregateInput
|
|
_min?: Prisma.AppointmentMinOrderByAggregateInput
|
|
}
|
|
|
|
export type AppointmentScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.AppointmentScalarWhereWithAggregatesInput | Prisma.AppointmentScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.AppointmentScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.AppointmentScalarWhereWithAggregatesInput | Prisma.AppointmentScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"Appointment"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Appointment"> | Date | string
|
|
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Appointment"> | Date | string
|
|
tenantId?: Prisma.StringWithAggregatesFilter<"Appointment"> | string
|
|
bookingPageId?: Prisma.StringWithAggregatesFilter<"Appointment"> | string
|
|
providerUserId?: Prisma.StringWithAggregatesFilter<"Appointment"> | string
|
|
startAt?: Prisma.DateTimeWithAggregatesFilter<"Appointment"> | Date | string
|
|
endAt?: Prisma.DateTimeWithAggregatesFilter<"Appointment"> | Date | string
|
|
timezone?: Prisma.StringWithAggregatesFilter<"Appointment"> | string
|
|
status?: Prisma.EnumAppointmentStatusWithAggregatesFilter<"Appointment"> | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.StringNullableWithAggregatesFilter<"Appointment"> | string | null
|
|
leadId?: Prisma.StringNullableWithAggregatesFilter<"Appointment"> | string | null
|
|
formSubmissionId?: Prisma.StringNullableWithAggregatesFilter<"Appointment"> | string | null
|
|
intakeAnswers?: Prisma.JsonWithAggregatesFilter<"Appointment">
|
|
internalCalendarEventId?: Prisma.StringNullableWithAggregatesFilter<"Appointment"> | string | null
|
|
externalCalendarEventIds?: Prisma.JsonWithAggregatesFilter<"Appointment">
|
|
cancelledAt?: Prisma.DateTimeNullableWithAggregatesFilter<"Appointment"> | Date | string | null
|
|
cancelledByKind?: Prisma.EnumAppointmentCancelledByKindNullableWithAggregatesFilter<"Appointment"> | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.StringNullableWithAggregatesFilter<"Appointment"> | string | null
|
|
rescheduledFromId?: Prisma.StringNullableWithAggregatesFilter<"Appointment"> | string | null
|
|
notesInternal?: Prisma.StringNullableWithAggregatesFilter<"Appointment"> | string | null
|
|
isDemoData?: Prisma.BoolWithAggregatesFilter<"Appointment"> | boolean
|
|
}
|
|
|
|
export type AppointmentCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerUserId: string
|
|
startAt: Date | string
|
|
endAt: Date | string
|
|
timezone: string
|
|
status?: $Enums.AppointmentStatus
|
|
kontaktId?: string | null
|
|
leadId?: string | null
|
|
formSubmissionId?: string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Date | string | null
|
|
cancelledByKind?: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: string | null
|
|
notesInternal?: string | null
|
|
isDemoData?: boolean
|
|
bookingPage: Prisma.BookingPageCreateNestedOneWithoutAppointmentsInput
|
|
rescheduledFrom?: Prisma.AppointmentCreateNestedOneWithoutRescheduledToInput
|
|
rescheduledTo?: Prisma.AppointmentCreateNestedManyWithoutRescheduledFromInput
|
|
}
|
|
|
|
export type AppointmentUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
bookingPageId: string
|
|
providerUserId: string
|
|
startAt: Date | string
|
|
endAt: Date | string
|
|
timezone: string
|
|
status?: $Enums.AppointmentStatus
|
|
kontaktId?: string | null
|
|
leadId?: string | null
|
|
formSubmissionId?: string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Date | string | null
|
|
cancelledByKind?: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: string | null
|
|
rescheduledFromId?: string | null
|
|
notesInternal?: string | null
|
|
isDemoData?: boolean
|
|
rescheduledTo?: Prisma.AppointmentUncheckedCreateNestedManyWithoutRescheduledFromInput
|
|
}
|
|
|
|
export type AppointmentUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
timezone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
bookingPage?: Prisma.BookingPageUpdateOneRequiredWithoutAppointmentsNestedInput
|
|
rescheduledFrom?: Prisma.AppointmentUpdateOneWithoutRescheduledToNestedInput
|
|
rescheduledTo?: Prisma.AppointmentUpdateManyWithoutRescheduledFromNestedInput
|
|
}
|
|
|
|
export type AppointmentUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
bookingPageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
timezone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
rescheduledFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
rescheduledTo?: Prisma.AppointmentUncheckedUpdateManyWithoutRescheduledFromNestedInput
|
|
}
|
|
|
|
export type AppointmentCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
bookingPageId: string
|
|
providerUserId: string
|
|
startAt: Date | string
|
|
endAt: Date | string
|
|
timezone: string
|
|
status?: $Enums.AppointmentStatus
|
|
kontaktId?: string | null
|
|
leadId?: string | null
|
|
formSubmissionId?: string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Date | string | null
|
|
cancelledByKind?: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: string | null
|
|
rescheduledFromId?: string | null
|
|
notesInternal?: string | null
|
|
isDemoData?: boolean
|
|
}
|
|
|
|
export type AppointmentUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
timezone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type AppointmentUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
bookingPageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
timezone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
rescheduledFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type AppointmentListRelationFilter = {
|
|
every?: Prisma.AppointmentWhereInput
|
|
some?: Prisma.AppointmentWhereInput
|
|
none?: Prisma.AppointmentWhereInput
|
|
}
|
|
|
|
export type AppointmentOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AppointmentNullableScalarRelationFilter = {
|
|
is?: Prisma.AppointmentWhereInput | null
|
|
isNot?: Prisma.AppointmentWhereInput | null
|
|
}
|
|
|
|
export type AppointmentCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
bookingPageId?: Prisma.SortOrder
|
|
providerUserId?: Prisma.SortOrder
|
|
startAt?: Prisma.SortOrder
|
|
endAt?: Prisma.SortOrder
|
|
timezone?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
kontaktId?: Prisma.SortOrder
|
|
leadId?: Prisma.SortOrder
|
|
formSubmissionId?: Prisma.SortOrder
|
|
intakeAnswers?: Prisma.SortOrder
|
|
internalCalendarEventId?: Prisma.SortOrder
|
|
externalCalendarEventIds?: Prisma.SortOrder
|
|
cancelledAt?: Prisma.SortOrder
|
|
cancelledByKind?: Prisma.SortOrder
|
|
cancellationReason?: Prisma.SortOrder
|
|
rescheduledFromId?: Prisma.SortOrder
|
|
notesInternal?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AppointmentMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
bookingPageId?: Prisma.SortOrder
|
|
providerUserId?: Prisma.SortOrder
|
|
startAt?: Prisma.SortOrder
|
|
endAt?: Prisma.SortOrder
|
|
timezone?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
kontaktId?: Prisma.SortOrder
|
|
leadId?: Prisma.SortOrder
|
|
formSubmissionId?: Prisma.SortOrder
|
|
internalCalendarEventId?: Prisma.SortOrder
|
|
cancelledAt?: Prisma.SortOrder
|
|
cancelledByKind?: Prisma.SortOrder
|
|
cancellationReason?: Prisma.SortOrder
|
|
rescheduledFromId?: Prisma.SortOrder
|
|
notesInternal?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AppointmentMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
updatedAt?: Prisma.SortOrder
|
|
tenantId?: Prisma.SortOrder
|
|
bookingPageId?: Prisma.SortOrder
|
|
providerUserId?: Prisma.SortOrder
|
|
startAt?: Prisma.SortOrder
|
|
endAt?: Prisma.SortOrder
|
|
timezone?: Prisma.SortOrder
|
|
status?: Prisma.SortOrder
|
|
kontaktId?: Prisma.SortOrder
|
|
leadId?: Prisma.SortOrder
|
|
formSubmissionId?: Prisma.SortOrder
|
|
internalCalendarEventId?: Prisma.SortOrder
|
|
cancelledAt?: Prisma.SortOrder
|
|
cancelledByKind?: Prisma.SortOrder
|
|
cancellationReason?: Prisma.SortOrder
|
|
rescheduledFromId?: Prisma.SortOrder
|
|
notesInternal?: Prisma.SortOrder
|
|
isDemoData?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AppointmentCreateNestedManyWithoutBookingPageInput = {
|
|
create?: Prisma.XOR<Prisma.AppointmentCreateWithoutBookingPageInput, Prisma.AppointmentUncheckedCreateWithoutBookingPageInput> | Prisma.AppointmentCreateWithoutBookingPageInput[] | Prisma.AppointmentUncheckedCreateWithoutBookingPageInput[]
|
|
connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutBookingPageInput | Prisma.AppointmentCreateOrConnectWithoutBookingPageInput[]
|
|
createMany?: Prisma.AppointmentCreateManyBookingPageInputEnvelope
|
|
connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
}
|
|
|
|
export type AppointmentUncheckedCreateNestedManyWithoutBookingPageInput = {
|
|
create?: Prisma.XOR<Prisma.AppointmentCreateWithoutBookingPageInput, Prisma.AppointmentUncheckedCreateWithoutBookingPageInput> | Prisma.AppointmentCreateWithoutBookingPageInput[] | Prisma.AppointmentUncheckedCreateWithoutBookingPageInput[]
|
|
connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutBookingPageInput | Prisma.AppointmentCreateOrConnectWithoutBookingPageInput[]
|
|
createMany?: Prisma.AppointmentCreateManyBookingPageInputEnvelope
|
|
connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
}
|
|
|
|
export type AppointmentUpdateManyWithoutBookingPageNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AppointmentCreateWithoutBookingPageInput, Prisma.AppointmentUncheckedCreateWithoutBookingPageInput> | Prisma.AppointmentCreateWithoutBookingPageInput[] | Prisma.AppointmentUncheckedCreateWithoutBookingPageInput[]
|
|
connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutBookingPageInput | Prisma.AppointmentCreateOrConnectWithoutBookingPageInput[]
|
|
upsert?: Prisma.AppointmentUpsertWithWhereUniqueWithoutBookingPageInput | Prisma.AppointmentUpsertWithWhereUniqueWithoutBookingPageInput[]
|
|
createMany?: Prisma.AppointmentCreateManyBookingPageInputEnvelope
|
|
set?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
disconnect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
delete?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
update?: Prisma.AppointmentUpdateWithWhereUniqueWithoutBookingPageInput | Prisma.AppointmentUpdateWithWhereUniqueWithoutBookingPageInput[]
|
|
updateMany?: Prisma.AppointmentUpdateManyWithWhereWithoutBookingPageInput | Prisma.AppointmentUpdateManyWithWhereWithoutBookingPageInput[]
|
|
deleteMany?: Prisma.AppointmentScalarWhereInput | Prisma.AppointmentScalarWhereInput[]
|
|
}
|
|
|
|
export type AppointmentUncheckedUpdateManyWithoutBookingPageNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AppointmentCreateWithoutBookingPageInput, Prisma.AppointmentUncheckedCreateWithoutBookingPageInput> | Prisma.AppointmentCreateWithoutBookingPageInput[] | Prisma.AppointmentUncheckedCreateWithoutBookingPageInput[]
|
|
connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutBookingPageInput | Prisma.AppointmentCreateOrConnectWithoutBookingPageInput[]
|
|
upsert?: Prisma.AppointmentUpsertWithWhereUniqueWithoutBookingPageInput | Prisma.AppointmentUpsertWithWhereUniqueWithoutBookingPageInput[]
|
|
createMany?: Prisma.AppointmentCreateManyBookingPageInputEnvelope
|
|
set?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
disconnect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
delete?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
update?: Prisma.AppointmentUpdateWithWhereUniqueWithoutBookingPageInput | Prisma.AppointmentUpdateWithWhereUniqueWithoutBookingPageInput[]
|
|
updateMany?: Prisma.AppointmentUpdateManyWithWhereWithoutBookingPageInput | Prisma.AppointmentUpdateManyWithWhereWithoutBookingPageInput[]
|
|
deleteMany?: Prisma.AppointmentScalarWhereInput | Prisma.AppointmentScalarWhereInput[]
|
|
}
|
|
|
|
export type AppointmentCreateNestedOneWithoutRescheduledToInput = {
|
|
create?: Prisma.XOR<Prisma.AppointmentCreateWithoutRescheduledToInput, Prisma.AppointmentUncheckedCreateWithoutRescheduledToInput>
|
|
connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutRescheduledToInput
|
|
connect?: Prisma.AppointmentWhereUniqueInput
|
|
}
|
|
|
|
export type AppointmentCreateNestedManyWithoutRescheduledFromInput = {
|
|
create?: Prisma.XOR<Prisma.AppointmentCreateWithoutRescheduledFromInput, Prisma.AppointmentUncheckedCreateWithoutRescheduledFromInput> | Prisma.AppointmentCreateWithoutRescheduledFromInput[] | Prisma.AppointmentUncheckedCreateWithoutRescheduledFromInput[]
|
|
connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput | Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput[]
|
|
createMany?: Prisma.AppointmentCreateManyRescheduledFromInputEnvelope
|
|
connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
}
|
|
|
|
export type AppointmentUncheckedCreateNestedManyWithoutRescheduledFromInput = {
|
|
create?: Prisma.XOR<Prisma.AppointmentCreateWithoutRescheduledFromInput, Prisma.AppointmentUncheckedCreateWithoutRescheduledFromInput> | Prisma.AppointmentCreateWithoutRescheduledFromInput[] | Prisma.AppointmentUncheckedCreateWithoutRescheduledFromInput[]
|
|
connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput | Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput[]
|
|
createMany?: Prisma.AppointmentCreateManyRescheduledFromInputEnvelope
|
|
connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
}
|
|
|
|
export type EnumAppointmentStatusFieldUpdateOperationsInput = {
|
|
set?: $Enums.AppointmentStatus
|
|
}
|
|
|
|
export type NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput = {
|
|
set?: $Enums.AppointmentCancelledByKind | null
|
|
}
|
|
|
|
export type AppointmentUpdateOneWithoutRescheduledToNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AppointmentCreateWithoutRescheduledToInput, Prisma.AppointmentUncheckedCreateWithoutRescheduledToInput>
|
|
connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutRescheduledToInput
|
|
upsert?: Prisma.AppointmentUpsertWithoutRescheduledToInput
|
|
disconnect?: Prisma.AppointmentWhereInput | boolean
|
|
delete?: Prisma.AppointmentWhereInput | boolean
|
|
connect?: Prisma.AppointmentWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AppointmentUpdateToOneWithWhereWithoutRescheduledToInput, Prisma.AppointmentUpdateWithoutRescheduledToInput>, Prisma.AppointmentUncheckedUpdateWithoutRescheduledToInput>
|
|
}
|
|
|
|
export type AppointmentUpdateManyWithoutRescheduledFromNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AppointmentCreateWithoutRescheduledFromInput, Prisma.AppointmentUncheckedCreateWithoutRescheduledFromInput> | Prisma.AppointmentCreateWithoutRescheduledFromInput[] | Prisma.AppointmentUncheckedCreateWithoutRescheduledFromInput[]
|
|
connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput | Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput[]
|
|
upsert?: Prisma.AppointmentUpsertWithWhereUniqueWithoutRescheduledFromInput | Prisma.AppointmentUpsertWithWhereUniqueWithoutRescheduledFromInput[]
|
|
createMany?: Prisma.AppointmentCreateManyRescheduledFromInputEnvelope
|
|
set?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
disconnect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
delete?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
update?: Prisma.AppointmentUpdateWithWhereUniqueWithoutRescheduledFromInput | Prisma.AppointmentUpdateWithWhereUniqueWithoutRescheduledFromInput[]
|
|
updateMany?: Prisma.AppointmentUpdateManyWithWhereWithoutRescheduledFromInput | Prisma.AppointmentUpdateManyWithWhereWithoutRescheduledFromInput[]
|
|
deleteMany?: Prisma.AppointmentScalarWhereInput | Prisma.AppointmentScalarWhereInput[]
|
|
}
|
|
|
|
export type AppointmentUncheckedUpdateManyWithoutRescheduledFromNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AppointmentCreateWithoutRescheduledFromInput, Prisma.AppointmentUncheckedCreateWithoutRescheduledFromInput> | Prisma.AppointmentCreateWithoutRescheduledFromInput[] | Prisma.AppointmentUncheckedCreateWithoutRescheduledFromInput[]
|
|
connectOrCreate?: Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput | Prisma.AppointmentCreateOrConnectWithoutRescheduledFromInput[]
|
|
upsert?: Prisma.AppointmentUpsertWithWhereUniqueWithoutRescheduledFromInput | Prisma.AppointmentUpsertWithWhereUniqueWithoutRescheduledFromInput[]
|
|
createMany?: Prisma.AppointmentCreateManyRescheduledFromInputEnvelope
|
|
set?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
disconnect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
delete?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
connect?: Prisma.AppointmentWhereUniqueInput | Prisma.AppointmentWhereUniqueInput[]
|
|
update?: Prisma.AppointmentUpdateWithWhereUniqueWithoutRescheduledFromInput | Prisma.AppointmentUpdateWithWhereUniqueWithoutRescheduledFromInput[]
|
|
updateMany?: Prisma.AppointmentUpdateManyWithWhereWithoutRescheduledFromInput | Prisma.AppointmentUpdateManyWithWhereWithoutRescheduledFromInput[]
|
|
deleteMany?: Prisma.AppointmentScalarWhereInput | Prisma.AppointmentScalarWhereInput[]
|
|
}
|
|
|
|
export type AppointmentCreateWithoutBookingPageInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerUserId: string
|
|
startAt: Date | string
|
|
endAt: Date | string
|
|
timezone: string
|
|
status?: $Enums.AppointmentStatus
|
|
kontaktId?: string | null
|
|
leadId?: string | null
|
|
formSubmissionId?: string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Date | string | null
|
|
cancelledByKind?: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: string | null
|
|
notesInternal?: string | null
|
|
isDemoData?: boolean
|
|
rescheduledFrom?: Prisma.AppointmentCreateNestedOneWithoutRescheduledToInput
|
|
rescheduledTo?: Prisma.AppointmentCreateNestedManyWithoutRescheduledFromInput
|
|
}
|
|
|
|
export type AppointmentUncheckedCreateWithoutBookingPageInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerUserId: string
|
|
startAt: Date | string
|
|
endAt: Date | string
|
|
timezone: string
|
|
status?: $Enums.AppointmentStatus
|
|
kontaktId?: string | null
|
|
leadId?: string | null
|
|
formSubmissionId?: string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Date | string | null
|
|
cancelledByKind?: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: string | null
|
|
rescheduledFromId?: string | null
|
|
notesInternal?: string | null
|
|
isDemoData?: boolean
|
|
rescheduledTo?: Prisma.AppointmentUncheckedCreateNestedManyWithoutRescheduledFromInput
|
|
}
|
|
|
|
export type AppointmentCreateOrConnectWithoutBookingPageInput = {
|
|
where: Prisma.AppointmentWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AppointmentCreateWithoutBookingPageInput, Prisma.AppointmentUncheckedCreateWithoutBookingPageInput>
|
|
}
|
|
|
|
export type AppointmentCreateManyBookingPageInputEnvelope = {
|
|
data: Prisma.AppointmentCreateManyBookingPageInput | Prisma.AppointmentCreateManyBookingPageInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type AppointmentUpsertWithWhereUniqueWithoutBookingPageInput = {
|
|
where: Prisma.AppointmentWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.AppointmentUpdateWithoutBookingPageInput, Prisma.AppointmentUncheckedUpdateWithoutBookingPageInput>
|
|
create: Prisma.XOR<Prisma.AppointmentCreateWithoutBookingPageInput, Prisma.AppointmentUncheckedCreateWithoutBookingPageInput>
|
|
}
|
|
|
|
export type AppointmentUpdateWithWhereUniqueWithoutBookingPageInput = {
|
|
where: Prisma.AppointmentWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.AppointmentUpdateWithoutBookingPageInput, Prisma.AppointmentUncheckedUpdateWithoutBookingPageInput>
|
|
}
|
|
|
|
export type AppointmentUpdateManyWithWhereWithoutBookingPageInput = {
|
|
where: Prisma.AppointmentScalarWhereInput
|
|
data: Prisma.XOR<Prisma.AppointmentUpdateManyMutationInput, Prisma.AppointmentUncheckedUpdateManyWithoutBookingPageInput>
|
|
}
|
|
|
|
export type AppointmentScalarWhereInput = {
|
|
AND?: Prisma.AppointmentScalarWhereInput | Prisma.AppointmentScalarWhereInput[]
|
|
OR?: Prisma.AppointmentScalarWhereInput[]
|
|
NOT?: Prisma.AppointmentScalarWhereInput | Prisma.AppointmentScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"Appointment"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string
|
|
updatedAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string
|
|
tenantId?: Prisma.StringFilter<"Appointment"> | string
|
|
bookingPageId?: Prisma.StringFilter<"Appointment"> | string
|
|
providerUserId?: Prisma.StringFilter<"Appointment"> | string
|
|
startAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string
|
|
endAt?: Prisma.DateTimeFilter<"Appointment"> | Date | string
|
|
timezone?: Prisma.StringFilter<"Appointment"> | string
|
|
status?: Prisma.EnumAppointmentStatusFilter<"Appointment"> | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
leadId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
formSubmissionId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
intakeAnswers?: Prisma.JsonFilter<"Appointment">
|
|
internalCalendarEventId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
externalCalendarEventIds?: Prisma.JsonFilter<"Appointment">
|
|
cancelledAt?: Prisma.DateTimeNullableFilter<"Appointment"> | Date | string | null
|
|
cancelledByKind?: Prisma.EnumAppointmentCancelledByKindNullableFilter<"Appointment"> | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
rescheduledFromId?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
notesInternal?: Prisma.StringNullableFilter<"Appointment"> | string | null
|
|
isDemoData?: Prisma.BoolFilter<"Appointment"> | boolean
|
|
}
|
|
|
|
export type AppointmentCreateWithoutRescheduledToInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerUserId: string
|
|
startAt: Date | string
|
|
endAt: Date | string
|
|
timezone: string
|
|
status?: $Enums.AppointmentStatus
|
|
kontaktId?: string | null
|
|
leadId?: string | null
|
|
formSubmissionId?: string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Date | string | null
|
|
cancelledByKind?: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: string | null
|
|
notesInternal?: string | null
|
|
isDemoData?: boolean
|
|
bookingPage: Prisma.BookingPageCreateNestedOneWithoutAppointmentsInput
|
|
rescheduledFrom?: Prisma.AppointmentCreateNestedOneWithoutRescheduledToInput
|
|
}
|
|
|
|
export type AppointmentUncheckedCreateWithoutRescheduledToInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
bookingPageId: string
|
|
providerUserId: string
|
|
startAt: Date | string
|
|
endAt: Date | string
|
|
timezone: string
|
|
status?: $Enums.AppointmentStatus
|
|
kontaktId?: string | null
|
|
leadId?: string | null
|
|
formSubmissionId?: string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Date | string | null
|
|
cancelledByKind?: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: string | null
|
|
rescheduledFromId?: string | null
|
|
notesInternal?: string | null
|
|
isDemoData?: boolean
|
|
}
|
|
|
|
export type AppointmentCreateOrConnectWithoutRescheduledToInput = {
|
|
where: Prisma.AppointmentWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AppointmentCreateWithoutRescheduledToInput, Prisma.AppointmentUncheckedCreateWithoutRescheduledToInput>
|
|
}
|
|
|
|
export type AppointmentCreateWithoutRescheduledFromInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerUserId: string
|
|
startAt: Date | string
|
|
endAt: Date | string
|
|
timezone: string
|
|
status?: $Enums.AppointmentStatus
|
|
kontaktId?: string | null
|
|
leadId?: string | null
|
|
formSubmissionId?: string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Date | string | null
|
|
cancelledByKind?: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: string | null
|
|
notesInternal?: string | null
|
|
isDemoData?: boolean
|
|
bookingPage: Prisma.BookingPageCreateNestedOneWithoutAppointmentsInput
|
|
rescheduledTo?: Prisma.AppointmentCreateNestedManyWithoutRescheduledFromInput
|
|
}
|
|
|
|
export type AppointmentUncheckedCreateWithoutRescheduledFromInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
bookingPageId: string
|
|
providerUserId: string
|
|
startAt: Date | string
|
|
endAt: Date | string
|
|
timezone: string
|
|
status?: $Enums.AppointmentStatus
|
|
kontaktId?: string | null
|
|
leadId?: string | null
|
|
formSubmissionId?: string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Date | string | null
|
|
cancelledByKind?: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: string | null
|
|
notesInternal?: string | null
|
|
isDemoData?: boolean
|
|
rescheduledTo?: Prisma.AppointmentUncheckedCreateNestedManyWithoutRescheduledFromInput
|
|
}
|
|
|
|
export type AppointmentCreateOrConnectWithoutRescheduledFromInput = {
|
|
where: Prisma.AppointmentWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AppointmentCreateWithoutRescheduledFromInput, Prisma.AppointmentUncheckedCreateWithoutRescheduledFromInput>
|
|
}
|
|
|
|
export type AppointmentCreateManyRescheduledFromInputEnvelope = {
|
|
data: Prisma.AppointmentCreateManyRescheduledFromInput | Prisma.AppointmentCreateManyRescheduledFromInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type AppointmentUpsertWithoutRescheduledToInput = {
|
|
update: Prisma.XOR<Prisma.AppointmentUpdateWithoutRescheduledToInput, Prisma.AppointmentUncheckedUpdateWithoutRescheduledToInput>
|
|
create: Prisma.XOR<Prisma.AppointmentCreateWithoutRescheduledToInput, Prisma.AppointmentUncheckedCreateWithoutRescheduledToInput>
|
|
where?: Prisma.AppointmentWhereInput
|
|
}
|
|
|
|
export type AppointmentUpdateToOneWithWhereWithoutRescheduledToInput = {
|
|
where?: Prisma.AppointmentWhereInput
|
|
data: Prisma.XOR<Prisma.AppointmentUpdateWithoutRescheduledToInput, Prisma.AppointmentUncheckedUpdateWithoutRescheduledToInput>
|
|
}
|
|
|
|
export type AppointmentUpdateWithoutRescheduledToInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
timezone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
bookingPage?: Prisma.BookingPageUpdateOneRequiredWithoutAppointmentsNestedInput
|
|
rescheduledFrom?: Prisma.AppointmentUpdateOneWithoutRescheduledToNestedInput
|
|
}
|
|
|
|
export type AppointmentUncheckedUpdateWithoutRescheduledToInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
bookingPageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
timezone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
rescheduledFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type AppointmentUpsertWithWhereUniqueWithoutRescheduledFromInput = {
|
|
where: Prisma.AppointmentWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.AppointmentUpdateWithoutRescheduledFromInput, Prisma.AppointmentUncheckedUpdateWithoutRescheduledFromInput>
|
|
create: Prisma.XOR<Prisma.AppointmentCreateWithoutRescheduledFromInput, Prisma.AppointmentUncheckedCreateWithoutRescheduledFromInput>
|
|
}
|
|
|
|
export type AppointmentUpdateWithWhereUniqueWithoutRescheduledFromInput = {
|
|
where: Prisma.AppointmentWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.AppointmentUpdateWithoutRescheduledFromInput, Prisma.AppointmentUncheckedUpdateWithoutRescheduledFromInput>
|
|
}
|
|
|
|
export type AppointmentUpdateManyWithWhereWithoutRescheduledFromInput = {
|
|
where: Prisma.AppointmentScalarWhereInput
|
|
data: Prisma.XOR<Prisma.AppointmentUpdateManyMutationInput, Prisma.AppointmentUncheckedUpdateManyWithoutRescheduledFromInput>
|
|
}
|
|
|
|
export type AppointmentCreateManyBookingPageInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
providerUserId: string
|
|
startAt: Date | string
|
|
endAt: Date | string
|
|
timezone: string
|
|
status?: $Enums.AppointmentStatus
|
|
kontaktId?: string | null
|
|
leadId?: string | null
|
|
formSubmissionId?: string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Date | string | null
|
|
cancelledByKind?: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: string | null
|
|
rescheduledFromId?: string | null
|
|
notesInternal?: string | null
|
|
isDemoData?: boolean
|
|
}
|
|
|
|
export type AppointmentUpdateWithoutBookingPageInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
timezone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
rescheduledFrom?: Prisma.AppointmentUpdateOneWithoutRescheduledToNestedInput
|
|
rescheduledTo?: Prisma.AppointmentUpdateManyWithoutRescheduledFromNestedInput
|
|
}
|
|
|
|
export type AppointmentUncheckedUpdateWithoutBookingPageInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
timezone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
rescheduledFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
rescheduledTo?: Prisma.AppointmentUncheckedUpdateManyWithoutRescheduledFromNestedInput
|
|
}
|
|
|
|
export type AppointmentUncheckedUpdateManyWithoutBookingPageInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
timezone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
rescheduledFromId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
export type AppointmentCreateManyRescheduledFromInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
updatedAt?: Date | string
|
|
tenantId: string
|
|
bookingPageId: string
|
|
providerUserId: string
|
|
startAt: Date | string
|
|
endAt: Date | string
|
|
timezone: string
|
|
status?: $Enums.AppointmentStatus
|
|
kontaktId?: string | null
|
|
leadId?: string | null
|
|
formSubmissionId?: string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Date | string | null
|
|
cancelledByKind?: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: string | null
|
|
notesInternal?: string | null
|
|
isDemoData?: boolean
|
|
}
|
|
|
|
export type AppointmentUpdateWithoutRescheduledFromInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
timezone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
bookingPage?: Prisma.BookingPageUpdateOneRequiredWithoutAppointmentsNestedInput
|
|
rescheduledTo?: Prisma.AppointmentUpdateManyWithoutRescheduledFromNestedInput
|
|
}
|
|
|
|
export type AppointmentUncheckedUpdateWithoutRescheduledFromInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
bookingPageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
timezone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
rescheduledTo?: Prisma.AppointmentUncheckedUpdateManyWithoutRescheduledFromNestedInput
|
|
}
|
|
|
|
export type AppointmentUncheckedUpdateManyWithoutRescheduledFromInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
bookingPageId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
startAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
endAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
timezone?: Prisma.StringFieldUpdateOperationsInput | string
|
|
status?: Prisma.EnumAppointmentStatusFieldUpdateOperationsInput | $Enums.AppointmentStatus
|
|
kontaktId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
leadId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
formSubmissionId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
intakeAnswers?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
internalCalendarEventId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
externalCalendarEventIds?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
cancelledAt?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
|
|
cancelledByKind?: Prisma.NullableEnumAppointmentCancelledByKindFieldUpdateOperationsInput | $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
notesInternal?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
isDemoData?: Prisma.BoolFieldUpdateOperationsInput | boolean
|
|
}
|
|
|
|
|
|
/**
|
|
* Count Type AppointmentCountOutputType
|
|
*/
|
|
|
|
export type AppointmentCountOutputType = {
|
|
rescheduledTo: number
|
|
}
|
|
|
|
export type AppointmentCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
rescheduledTo?: boolean | AppointmentCountOutputTypeCountRescheduledToArgs
|
|
}
|
|
|
|
/**
|
|
* AppointmentCountOutputType without action
|
|
*/
|
|
export type AppointmentCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AppointmentCountOutputType
|
|
*/
|
|
select?: Prisma.AppointmentCountOutputTypeSelect<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AppointmentCountOutputType without action
|
|
*/
|
|
export type AppointmentCountOutputTypeCountRescheduledToArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AppointmentWhereInput
|
|
}
|
|
|
|
|
|
export type AppointmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
bookingPageId?: boolean
|
|
providerUserId?: boolean
|
|
startAt?: boolean
|
|
endAt?: boolean
|
|
timezone?: boolean
|
|
status?: boolean
|
|
kontaktId?: boolean
|
|
leadId?: boolean
|
|
formSubmissionId?: boolean
|
|
intakeAnswers?: boolean
|
|
internalCalendarEventId?: boolean
|
|
externalCalendarEventIds?: boolean
|
|
cancelledAt?: boolean
|
|
cancelledByKind?: boolean
|
|
cancellationReason?: boolean
|
|
rescheduledFromId?: boolean
|
|
notesInternal?: boolean
|
|
isDemoData?: boolean
|
|
bookingPage?: boolean | Prisma.BookingPageDefaultArgs<ExtArgs>
|
|
rescheduledFrom?: boolean | Prisma.Appointment$rescheduledFromArgs<ExtArgs>
|
|
rescheduledTo?: boolean | Prisma.Appointment$rescheduledToArgs<ExtArgs>
|
|
_count?: boolean | Prisma.AppointmentCountOutputTypeDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["appointment"]>
|
|
|
|
export type AppointmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
bookingPageId?: boolean
|
|
providerUserId?: boolean
|
|
startAt?: boolean
|
|
endAt?: boolean
|
|
timezone?: boolean
|
|
status?: boolean
|
|
kontaktId?: boolean
|
|
leadId?: boolean
|
|
formSubmissionId?: boolean
|
|
intakeAnswers?: boolean
|
|
internalCalendarEventId?: boolean
|
|
externalCalendarEventIds?: boolean
|
|
cancelledAt?: boolean
|
|
cancelledByKind?: boolean
|
|
cancellationReason?: boolean
|
|
rescheduledFromId?: boolean
|
|
notesInternal?: boolean
|
|
isDemoData?: boolean
|
|
bookingPage?: boolean | Prisma.BookingPageDefaultArgs<ExtArgs>
|
|
rescheduledFrom?: boolean | Prisma.Appointment$rescheduledFromArgs<ExtArgs>
|
|
}, ExtArgs["result"]["appointment"]>
|
|
|
|
export type AppointmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
bookingPageId?: boolean
|
|
providerUserId?: boolean
|
|
startAt?: boolean
|
|
endAt?: boolean
|
|
timezone?: boolean
|
|
status?: boolean
|
|
kontaktId?: boolean
|
|
leadId?: boolean
|
|
formSubmissionId?: boolean
|
|
intakeAnswers?: boolean
|
|
internalCalendarEventId?: boolean
|
|
externalCalendarEventIds?: boolean
|
|
cancelledAt?: boolean
|
|
cancelledByKind?: boolean
|
|
cancellationReason?: boolean
|
|
rescheduledFromId?: boolean
|
|
notesInternal?: boolean
|
|
isDemoData?: boolean
|
|
bookingPage?: boolean | Prisma.BookingPageDefaultArgs<ExtArgs>
|
|
rescheduledFrom?: boolean | Prisma.Appointment$rescheduledFromArgs<ExtArgs>
|
|
}, ExtArgs["result"]["appointment"]>
|
|
|
|
export type AppointmentSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
tenantId?: boolean
|
|
bookingPageId?: boolean
|
|
providerUserId?: boolean
|
|
startAt?: boolean
|
|
endAt?: boolean
|
|
timezone?: boolean
|
|
status?: boolean
|
|
kontaktId?: boolean
|
|
leadId?: boolean
|
|
formSubmissionId?: boolean
|
|
intakeAnswers?: boolean
|
|
internalCalendarEventId?: boolean
|
|
externalCalendarEventIds?: boolean
|
|
cancelledAt?: boolean
|
|
cancelledByKind?: boolean
|
|
cancellationReason?: boolean
|
|
rescheduledFromId?: boolean
|
|
notesInternal?: boolean
|
|
isDemoData?: boolean
|
|
}
|
|
|
|
export type AppointmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "bookingPageId" | "providerUserId" | "startAt" | "endAt" | "timezone" | "status" | "kontaktId" | "leadId" | "formSubmissionId" | "intakeAnswers" | "internalCalendarEventId" | "externalCalendarEventIds" | "cancelledAt" | "cancelledByKind" | "cancellationReason" | "rescheduledFromId" | "notesInternal" | "isDemoData", ExtArgs["result"]["appointment"]>
|
|
export type AppointmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
bookingPage?: boolean | Prisma.BookingPageDefaultArgs<ExtArgs>
|
|
rescheduledFrom?: boolean | Prisma.Appointment$rescheduledFromArgs<ExtArgs>
|
|
rescheduledTo?: boolean | Prisma.Appointment$rescheduledToArgs<ExtArgs>
|
|
_count?: boolean | Prisma.AppointmentCountOutputTypeDefaultArgs<ExtArgs>
|
|
}
|
|
export type AppointmentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
bookingPage?: boolean | Prisma.BookingPageDefaultArgs<ExtArgs>
|
|
rescheduledFrom?: boolean | Prisma.Appointment$rescheduledFromArgs<ExtArgs>
|
|
}
|
|
export type AppointmentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
bookingPage?: boolean | Prisma.BookingPageDefaultArgs<ExtArgs>
|
|
rescheduledFrom?: boolean | Prisma.Appointment$rescheduledFromArgs<ExtArgs>
|
|
}
|
|
|
|
export type $AppointmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "Appointment"
|
|
objects: {
|
|
bookingPage: Prisma.$BookingPagePayload<ExtArgs>
|
|
rescheduledFrom: Prisma.$AppointmentPayload<ExtArgs> | null
|
|
rescheduledTo: Prisma.$AppointmentPayload<ExtArgs>[]
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
tenantId: string
|
|
bookingPageId: string
|
|
providerUserId: string
|
|
startAt: Date
|
|
endAt: Date
|
|
timezone: string
|
|
status: $Enums.AppointmentStatus
|
|
kontaktId: string | null
|
|
leadId: string | null
|
|
formSubmissionId: string | null
|
|
intakeAnswers: runtime.JsonValue
|
|
internalCalendarEventId: string | null
|
|
externalCalendarEventIds: runtime.JsonValue
|
|
cancelledAt: Date | null
|
|
cancelledByKind: $Enums.AppointmentCancelledByKind | null
|
|
cancellationReason: string | null
|
|
rescheduledFromId: string | null
|
|
notesInternal: string | null
|
|
isDemoData: boolean
|
|
}, ExtArgs["result"]["appointment"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type AppointmentGetPayload<S extends boolean | null | undefined | AppointmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AppointmentPayload, S>
|
|
|
|
export type AppointmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<AppointmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AppointmentCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AppointmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Appointment'], meta: { name: 'Appointment' } }
|
|
/**
|
|
* Find zero or one Appointment that matches the filter.
|
|
* @param {AppointmentFindUniqueArgs} args - Arguments to find a Appointment
|
|
* @example
|
|
* // Get one Appointment
|
|
* const appointment = await prisma.appointment.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AppointmentFindUniqueArgs>(args: Prisma.SelectSubset<T, AppointmentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AppointmentClient<runtime.Types.Result.GetResult<Prisma.$AppointmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one Appointment that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AppointmentFindUniqueOrThrowArgs} args - Arguments to find a Appointment
|
|
* @example
|
|
* // Get one Appointment
|
|
* const appointment = await prisma.appointment.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AppointmentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AppointmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AppointmentClient<runtime.Types.Result.GetResult<Prisma.$AppointmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Appointment that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AppointmentFindFirstArgs} args - Arguments to find a Appointment
|
|
* @example
|
|
* // Get one Appointment
|
|
* const appointment = await prisma.appointment.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AppointmentFindFirstArgs>(args?: Prisma.SelectSubset<T, AppointmentFindFirstArgs<ExtArgs>>): Prisma.Prisma__AppointmentClient<runtime.Types.Result.GetResult<Prisma.$AppointmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first Appointment that matches the filter or
|
|
* throw `PrismaKnownClientError` with `P2025` code if no matches were found.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AppointmentFindFirstOrThrowArgs} args - Arguments to find a Appointment
|
|
* @example
|
|
* // Get one Appointment
|
|
* const appointment = await prisma.appointment.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AppointmentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AppointmentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AppointmentClient<runtime.Types.Result.GetResult<Prisma.$AppointmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more Appointments that matches the filter.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AppointmentFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all Appointments
|
|
* const appointments = await prisma.appointment.findMany()
|
|
*
|
|
* // Get first 10 Appointments
|
|
* const appointments = await prisma.appointment.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const appointmentWithIdOnly = await prisma.appointment.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AppointmentFindManyArgs>(args?: Prisma.SelectSubset<T, AppointmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AppointmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a Appointment.
|
|
* @param {AppointmentCreateArgs} args - Arguments to create a Appointment.
|
|
* @example
|
|
* // Create one Appointment
|
|
* const Appointment = await prisma.appointment.create({
|
|
* data: {
|
|
* // ... data to create a Appointment
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AppointmentCreateArgs>(args: Prisma.SelectSubset<T, AppointmentCreateArgs<ExtArgs>>): Prisma.Prisma__AppointmentClient<runtime.Types.Result.GetResult<Prisma.$AppointmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many Appointments.
|
|
* @param {AppointmentCreateManyArgs} args - Arguments to create many Appointments.
|
|
* @example
|
|
* // Create many Appointments
|
|
* const appointment = await prisma.appointment.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AppointmentCreateManyArgs>(args?: Prisma.SelectSubset<T, AppointmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many Appointments and returns the data saved in the database.
|
|
* @param {AppointmentCreateManyAndReturnArgs} args - Arguments to create many Appointments.
|
|
* @example
|
|
* // Create many Appointments
|
|
* const appointment = await prisma.appointment.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many Appointments and only return the `id`
|
|
* const appointmentWithIdOnly = await prisma.appointment.createManyAndReturn({
|
|
* select: { id: true },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
createManyAndReturn<T extends AppointmentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AppointmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AppointmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a Appointment.
|
|
* @param {AppointmentDeleteArgs} args - Arguments to delete one Appointment.
|
|
* @example
|
|
* // Delete one Appointment
|
|
* const Appointment = await prisma.appointment.delete({
|
|
* where: {
|
|
* // ... filter to delete one Appointment
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AppointmentDeleteArgs>(args: Prisma.SelectSubset<T, AppointmentDeleteArgs<ExtArgs>>): Prisma.Prisma__AppointmentClient<runtime.Types.Result.GetResult<Prisma.$AppointmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one Appointment.
|
|
* @param {AppointmentUpdateArgs} args - Arguments to update one Appointment.
|
|
* @example
|
|
* // Update one Appointment
|
|
* const appointment = await prisma.appointment.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AppointmentUpdateArgs>(args: Prisma.SelectSubset<T, AppointmentUpdateArgs<ExtArgs>>): Prisma.Prisma__AppointmentClient<runtime.Types.Result.GetResult<Prisma.$AppointmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more Appointments.
|
|
* @param {AppointmentDeleteManyArgs} args - Arguments to filter Appointments to delete.
|
|
* @example
|
|
* // Delete a few Appointments
|
|
* const { count } = await prisma.appointment.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AppointmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, AppointmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Appointments.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AppointmentUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many Appointments
|
|
* const appointment = await prisma.appointment.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AppointmentUpdateManyArgs>(args: Prisma.SelectSubset<T, AppointmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more Appointments and returns the data updated in the database.
|
|
* @param {AppointmentUpdateManyAndReturnArgs} args - Arguments to update many Appointments.
|
|
* @example
|
|
* // Update many Appointments
|
|
* const appointment = await prisma.appointment.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more Appointments and only return the `id`
|
|
* const appointmentWithIdOnly = await prisma.appointment.updateManyAndReturn({
|
|
* select: { id: true },
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
*
|
|
*/
|
|
updateManyAndReturn<T extends AppointmentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AppointmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AppointmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one Appointment.
|
|
* @param {AppointmentUpsertArgs} args - Arguments to update or create a Appointment.
|
|
* @example
|
|
* // Update or create a Appointment
|
|
* const appointment = await prisma.appointment.upsert({
|
|
* create: {
|
|
* // ... data to create a Appointment
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the Appointment we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AppointmentUpsertArgs>(args: Prisma.SelectSubset<T, AppointmentUpsertArgs<ExtArgs>>): Prisma.Prisma__AppointmentClient<runtime.Types.Result.GetResult<Prisma.$AppointmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of Appointments.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AppointmentCountArgs} args - Arguments to filter Appointments to count.
|
|
* @example
|
|
* // Count the number of Appointments
|
|
* const count = await prisma.appointment.count({
|
|
* where: {
|
|
* // ... the filter for the Appointments we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AppointmentCountArgs>(
|
|
args?: Prisma.Subset<T, AppointmentCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], AppointmentCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a Appointment.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AppointmentAggregateArgs} args - Select which aggregations you would like to apply and on what fields.
|
|
* @example
|
|
* // Ordered by age ascending
|
|
* // Where email contains prisma.io
|
|
* // Limited to the 10 users
|
|
* const aggregations = await prisma.user.aggregate({
|
|
* _avg: {
|
|
* age: true,
|
|
* },
|
|
* where: {
|
|
* email: {
|
|
* contains: "prisma.io",
|
|
* },
|
|
* },
|
|
* orderBy: {
|
|
* age: "asc",
|
|
* },
|
|
* take: 10,
|
|
* })
|
|
**/
|
|
aggregate<T extends AppointmentAggregateArgs>(args: Prisma.Subset<T, AppointmentAggregateArgs>): Prisma.PrismaPromise<GetAppointmentAggregateType<T>>
|
|
|
|
/**
|
|
* Group by Appointment.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AppointmentGroupByArgs} args - Group by arguments.
|
|
* @example
|
|
* // Group by city, order by createdAt, get count
|
|
* const result = await prisma.user.groupBy({
|
|
* by: ['city', 'createdAt'],
|
|
* orderBy: {
|
|
* createdAt: true
|
|
* },
|
|
* _count: {
|
|
* _all: true
|
|
* },
|
|
* })
|
|
*
|
|
**/
|
|
groupBy<
|
|
T extends AppointmentGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: AppointmentGroupByArgs['orderBy'] }
|
|
: { orderBy?: AppointmentGroupByArgs['orderBy'] },
|
|
OrderFields extends Prisma.ExcludeUnderscoreKeys<Prisma.Keys<Prisma.MaybeTupleToUnion<T['orderBy']>>>,
|
|
ByFields extends Prisma.MaybeTupleToUnion<T['by']>,
|
|
ByValid extends Prisma.Has<ByFields, OrderFields>,
|
|
HavingFields extends Prisma.GetHavingFields<T['having']>,
|
|
HavingValid extends Prisma.Has<ByFields, HavingFields>,
|
|
ByEmpty extends T['by'] extends never[] ? Prisma.True : Prisma.False,
|
|
InputErrors extends ByEmpty extends Prisma.True
|
|
? `Error: "by" must not be empty.`
|
|
: HavingValid extends Prisma.False
|
|
? {
|
|
[P in HavingFields]: P extends ByFields
|
|
? never
|
|
: P extends string
|
|
? `Error: Field "${P}" used in "having" needs to be provided in "by".`
|
|
: [
|
|
Error,
|
|
'Field ',
|
|
P,
|
|
` in "having" needs to be provided in "by"`,
|
|
]
|
|
}[HavingFields]
|
|
: 'take' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "take", you also need to provide "orderBy"'
|
|
: 'skip' extends Prisma.Keys<T>
|
|
? 'orderBy' extends Prisma.Keys<T>
|
|
? ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
: 'Error: If you provide "skip", you also need to provide "orderBy"'
|
|
: ByValid extends Prisma.True
|
|
? {}
|
|
: {
|
|
[P in OrderFields]: P extends ByFields
|
|
? never
|
|
: `Error: Field "${P}" in "orderBy" needs to be provided in "by"`
|
|
}[OrderFields]
|
|
>(args: Prisma.SubsetIntersection<T, AppointmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAppointmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the Appointment model
|
|
*/
|
|
readonly fields: AppointmentFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for Appointment.
|
|
* Why is this prefixed with `Prisma__`?
|
|
* Because we want to prevent naming conflicts as mentioned in
|
|
* https://github.com/prisma/prisma-client-js/issues/707
|
|
*/
|
|
export interface Prisma__AppointmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
bookingPage<T extends Prisma.BookingPageDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.BookingPageDefaultArgs<ExtArgs>>): Prisma.Prisma__BookingPageClient<runtime.Types.Result.GetResult<Prisma.$BookingPagePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
rescheduledFrom<T extends Prisma.Appointment$rescheduledFromArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Appointment$rescheduledFromArgs<ExtArgs>>): Prisma.Prisma__AppointmentClient<runtime.Types.Result.GetResult<Prisma.$AppointmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
rescheduledTo<T extends Prisma.Appointment$rescheduledToArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Appointment$rescheduledToArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AppointmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
|
|
/**
|
|
* Attaches callbacks for the resolution and/or rejection of the Promise.
|
|
* @param onfulfilled The callback to execute when the Promise is resolved.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of which ever callback is executed.
|
|
*/
|
|
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
|
|
/**
|
|
* Attaches a callback for only the rejection of the Promise.
|
|
* @param onrejected The callback to execute when the Promise is rejected.
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
|
|
/**
|
|
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
|
|
* resolved value cannot be modified from the callback.
|
|
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
|
|
* @returns A Promise for the completion of the callback.
|
|
*/
|
|
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
* Fields of the Appointment model
|
|
*/
|
|
export interface AppointmentFieldRefs {
|
|
readonly id: Prisma.FieldRef<"Appointment", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"Appointment", 'DateTime'>
|
|
readonly updatedAt: Prisma.FieldRef<"Appointment", 'DateTime'>
|
|
readonly tenantId: Prisma.FieldRef<"Appointment", 'String'>
|
|
readonly bookingPageId: Prisma.FieldRef<"Appointment", 'String'>
|
|
readonly providerUserId: Prisma.FieldRef<"Appointment", 'String'>
|
|
readonly startAt: Prisma.FieldRef<"Appointment", 'DateTime'>
|
|
readonly endAt: Prisma.FieldRef<"Appointment", 'DateTime'>
|
|
readonly timezone: Prisma.FieldRef<"Appointment", 'String'>
|
|
readonly status: Prisma.FieldRef<"Appointment", 'AppointmentStatus'>
|
|
readonly kontaktId: Prisma.FieldRef<"Appointment", 'String'>
|
|
readonly leadId: Prisma.FieldRef<"Appointment", 'String'>
|
|
readonly formSubmissionId: Prisma.FieldRef<"Appointment", 'String'>
|
|
readonly intakeAnswers: Prisma.FieldRef<"Appointment", 'Json'>
|
|
readonly internalCalendarEventId: Prisma.FieldRef<"Appointment", 'String'>
|
|
readonly externalCalendarEventIds: Prisma.FieldRef<"Appointment", 'Json'>
|
|
readonly cancelledAt: Prisma.FieldRef<"Appointment", 'DateTime'>
|
|
readonly cancelledByKind: Prisma.FieldRef<"Appointment", 'AppointmentCancelledByKind'>
|
|
readonly cancellationReason: Prisma.FieldRef<"Appointment", 'String'>
|
|
readonly rescheduledFromId: Prisma.FieldRef<"Appointment", 'String'>
|
|
readonly notesInternal: Prisma.FieldRef<"Appointment", 'String'>
|
|
readonly isDemoData: Prisma.FieldRef<"Appointment", 'Boolean'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* Appointment findUnique
|
|
*/
|
|
export type AppointmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Appointment
|
|
*/
|
|
select?: Prisma.AppointmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Appointment
|
|
*/
|
|
omit?: Prisma.AppointmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AppointmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Appointment to fetch.
|
|
*/
|
|
where: Prisma.AppointmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Appointment findUniqueOrThrow
|
|
*/
|
|
export type AppointmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Appointment
|
|
*/
|
|
select?: Prisma.AppointmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Appointment
|
|
*/
|
|
omit?: Prisma.AppointmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AppointmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Appointment to fetch.
|
|
*/
|
|
where: Prisma.AppointmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Appointment findFirst
|
|
*/
|
|
export type AppointmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Appointment
|
|
*/
|
|
select?: Prisma.AppointmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Appointment
|
|
*/
|
|
omit?: Prisma.AppointmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AppointmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Appointment to fetch.
|
|
*/
|
|
where?: Prisma.AppointmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Appointments to fetch.
|
|
*/
|
|
orderBy?: Prisma.AppointmentOrderByWithRelationInput | Prisma.AppointmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Appointments.
|
|
*/
|
|
cursor?: Prisma.AppointmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Appointments from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Appointments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Appointments.
|
|
*/
|
|
distinct?: Prisma.AppointmentScalarFieldEnum | Prisma.AppointmentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Appointment findFirstOrThrow
|
|
*/
|
|
export type AppointmentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Appointment
|
|
*/
|
|
select?: Prisma.AppointmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Appointment
|
|
*/
|
|
omit?: Prisma.AppointmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AppointmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Appointment to fetch.
|
|
*/
|
|
where?: Prisma.AppointmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Appointments to fetch.
|
|
*/
|
|
orderBy?: Prisma.AppointmentOrderByWithRelationInput | Prisma.AppointmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for Appointments.
|
|
*/
|
|
cursor?: Prisma.AppointmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Appointments from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Appointments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Appointments.
|
|
*/
|
|
distinct?: Prisma.AppointmentScalarFieldEnum | Prisma.AppointmentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Appointment findMany
|
|
*/
|
|
export type AppointmentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Appointment
|
|
*/
|
|
select?: Prisma.AppointmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Appointment
|
|
*/
|
|
omit?: Prisma.AppointmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AppointmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which Appointments to fetch.
|
|
*/
|
|
where?: Prisma.AppointmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of Appointments to fetch.
|
|
*/
|
|
orderBy?: Prisma.AppointmentOrderByWithRelationInput | Prisma.AppointmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing Appointments.
|
|
*/
|
|
cursor?: Prisma.AppointmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` Appointments from the position of the cursor.
|
|
*/
|
|
take?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Skip the first `n` Appointments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of Appointments.
|
|
*/
|
|
distinct?: Prisma.AppointmentScalarFieldEnum | Prisma.AppointmentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Appointment create
|
|
*/
|
|
export type AppointmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Appointment
|
|
*/
|
|
select?: Prisma.AppointmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Appointment
|
|
*/
|
|
omit?: Prisma.AppointmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AppointmentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a Appointment.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AppointmentCreateInput, Prisma.AppointmentUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* Appointment createMany
|
|
*/
|
|
export type AppointmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many Appointments.
|
|
*/
|
|
data: Prisma.AppointmentCreateManyInput | Prisma.AppointmentCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* Appointment createManyAndReturn
|
|
*/
|
|
export type AppointmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Appointment
|
|
*/
|
|
select?: Prisma.AppointmentSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Appointment
|
|
*/
|
|
omit?: Prisma.AppointmentOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many Appointments.
|
|
*/
|
|
data: Prisma.AppointmentCreateManyInput | Prisma.AppointmentCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AppointmentIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Appointment update
|
|
*/
|
|
export type AppointmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Appointment
|
|
*/
|
|
select?: Prisma.AppointmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Appointment
|
|
*/
|
|
omit?: Prisma.AppointmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AppointmentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a Appointment.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AppointmentUpdateInput, Prisma.AppointmentUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which Appointment to update.
|
|
*/
|
|
where: Prisma.AppointmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Appointment updateMany
|
|
*/
|
|
export type AppointmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update Appointments.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AppointmentUpdateManyMutationInput, Prisma.AppointmentUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Appointments to update
|
|
*/
|
|
where?: Prisma.AppointmentWhereInput
|
|
/**
|
|
* Limit how many Appointments to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Appointment updateManyAndReturn
|
|
*/
|
|
export type AppointmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Appointment
|
|
*/
|
|
select?: Prisma.AppointmentSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Appointment
|
|
*/
|
|
omit?: Prisma.AppointmentOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update Appointments.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AppointmentUpdateManyMutationInput, Prisma.AppointmentUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which Appointments to update
|
|
*/
|
|
where?: Prisma.AppointmentWhereInput
|
|
/**
|
|
* Limit how many Appointments to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AppointmentIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* Appointment upsert
|
|
*/
|
|
export type AppointmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Appointment
|
|
*/
|
|
select?: Prisma.AppointmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Appointment
|
|
*/
|
|
omit?: Prisma.AppointmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AppointmentInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the Appointment to update in case it exists.
|
|
*/
|
|
where: Prisma.AppointmentWhereUniqueInput
|
|
/**
|
|
* In case the Appointment found by the `where` argument doesn't exist, create a new Appointment with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.AppointmentCreateInput, Prisma.AppointmentUncheckedCreateInput>
|
|
/**
|
|
* In case the Appointment was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.AppointmentUpdateInput, Prisma.AppointmentUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* Appointment delete
|
|
*/
|
|
export type AppointmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Appointment
|
|
*/
|
|
select?: Prisma.AppointmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Appointment
|
|
*/
|
|
omit?: Prisma.AppointmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AppointmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which Appointment to delete.
|
|
*/
|
|
where: Prisma.AppointmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* Appointment deleteMany
|
|
*/
|
|
export type AppointmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which Appointments to delete
|
|
*/
|
|
where?: Prisma.AppointmentWhereInput
|
|
/**
|
|
* Limit how many Appointments to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* Appointment.rescheduledFrom
|
|
*/
|
|
export type Appointment$rescheduledFromArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Appointment
|
|
*/
|
|
select?: Prisma.AppointmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Appointment
|
|
*/
|
|
omit?: Prisma.AppointmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AppointmentInclude<ExtArgs> | null
|
|
where?: Prisma.AppointmentWhereInput
|
|
}
|
|
|
|
/**
|
|
* Appointment.rescheduledTo
|
|
*/
|
|
export type Appointment$rescheduledToArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Appointment
|
|
*/
|
|
select?: Prisma.AppointmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Appointment
|
|
*/
|
|
omit?: Prisma.AppointmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AppointmentInclude<ExtArgs> | null
|
|
where?: Prisma.AppointmentWhereInput
|
|
orderBy?: Prisma.AppointmentOrderByWithRelationInput | Prisma.AppointmentOrderByWithRelationInput[]
|
|
cursor?: Prisma.AppointmentWhereUniqueInput
|
|
take?: number
|
|
skip?: number
|
|
distinct?: Prisma.AppointmentScalarFieldEnum | Prisma.AppointmentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* Appointment without action
|
|
*/
|
|
export type AppointmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the Appointment
|
|
*/
|
|
select?: Prisma.AppointmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the Appointment
|
|
*/
|
|
omit?: Prisma.AppointmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AppointmentInclude<ExtArgs> | null
|
|
}
|