Files
2026-07-08 16:15:37 +02:00

1267 lines
47 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 `AvailabilityRule` 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 AvailabilityRule
* Weekly standard availability per tenant user (M06 A.3). Several rows per weekday
* allowed (e.g. 09:00-12:00 + 14:00-17:00). Times are local "HH:mm" in `timezone`.
*/
export type AvailabilityRuleModel = runtime.Types.Result.DefaultSelection<Prisma.$AvailabilityRulePayload>
export type AggregateAvailabilityRule = {
_count: AvailabilityRuleCountAggregateOutputType | null
_min: AvailabilityRuleMinAggregateOutputType | null
_max: AvailabilityRuleMaxAggregateOutputType | null
}
export type AvailabilityRuleMinAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
providerUserId: string | null
dayOfWeek: $Enums.BookingDayOfWeek | null
startTime: string | null
endTime: string | null
timezone: string | null
}
export type AvailabilityRuleMaxAggregateOutputType = {
id: string | null
createdAt: Date | null
updatedAt: Date | null
tenantId: string | null
providerUserId: string | null
dayOfWeek: $Enums.BookingDayOfWeek | null
startTime: string | null
endTime: string | null
timezone: string | null
}
export type AvailabilityRuleCountAggregateOutputType = {
id: number
createdAt: number
updatedAt: number
tenantId: number
providerUserId: number
dayOfWeek: number
startTime: number
endTime: number
timezone: number
_all: number
}
export type AvailabilityRuleMinAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
providerUserId?: true
dayOfWeek?: true
startTime?: true
endTime?: true
timezone?: true
}
export type AvailabilityRuleMaxAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
providerUserId?: true
dayOfWeek?: true
startTime?: true
endTime?: true
timezone?: true
}
export type AvailabilityRuleCountAggregateInputType = {
id?: true
createdAt?: true
updatedAt?: true
tenantId?: true
providerUserId?: true
dayOfWeek?: true
startTime?: true
endTime?: true
timezone?: true
_all?: true
}
export type AvailabilityRuleAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AvailabilityRule to aggregate.
*/
where?: Prisma.AvailabilityRuleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AvailabilityRules to fetch.
*/
orderBy?: Prisma.AvailabilityRuleOrderByWithRelationInput | Prisma.AvailabilityRuleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.AvailabilityRuleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AvailabilityRules 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` AvailabilityRules.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned AvailabilityRules
**/
_count?: true | AvailabilityRuleCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: AvailabilityRuleMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: AvailabilityRuleMaxAggregateInputType
}
export type GetAvailabilityRuleAggregateType<T extends AvailabilityRuleAggregateArgs> = {
[P in keyof T & keyof AggregateAvailabilityRule]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateAvailabilityRule[P]>
: Prisma.GetScalarType<T[P], AggregateAvailabilityRule[P]>
}
export type AvailabilityRuleGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.AvailabilityRuleWhereInput
orderBy?: Prisma.AvailabilityRuleOrderByWithAggregationInput | Prisma.AvailabilityRuleOrderByWithAggregationInput[]
by: Prisma.AvailabilityRuleScalarFieldEnum[] | Prisma.AvailabilityRuleScalarFieldEnum
having?: Prisma.AvailabilityRuleScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: AvailabilityRuleCountAggregateInputType | true
_min?: AvailabilityRuleMinAggregateInputType
_max?: AvailabilityRuleMaxAggregateInputType
}
export type AvailabilityRuleGroupByOutputType = {
id: string
createdAt: Date
updatedAt: Date
tenantId: string
providerUserId: string
dayOfWeek: $Enums.BookingDayOfWeek
startTime: string
endTime: string
timezone: string
_count: AvailabilityRuleCountAggregateOutputType | null
_min: AvailabilityRuleMinAggregateOutputType | null
_max: AvailabilityRuleMaxAggregateOutputType | null
}
export type GetAvailabilityRuleGroupByPayload<T extends AvailabilityRuleGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<AvailabilityRuleGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof AvailabilityRuleGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], AvailabilityRuleGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], AvailabilityRuleGroupByOutputType[P]>
}
>
>
export type AvailabilityRuleWhereInput = {
AND?: Prisma.AvailabilityRuleWhereInput | Prisma.AvailabilityRuleWhereInput[]
OR?: Prisma.AvailabilityRuleWhereInput[]
NOT?: Prisma.AvailabilityRuleWhereInput | Prisma.AvailabilityRuleWhereInput[]
id?: Prisma.StringFilter<"AvailabilityRule"> | string
createdAt?: Prisma.DateTimeFilter<"AvailabilityRule"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AvailabilityRule"> | Date | string
tenantId?: Prisma.StringFilter<"AvailabilityRule"> | string
providerUserId?: Prisma.StringFilter<"AvailabilityRule"> | string
dayOfWeek?: Prisma.EnumBookingDayOfWeekFilter<"AvailabilityRule"> | $Enums.BookingDayOfWeek
startTime?: Prisma.StringFilter<"AvailabilityRule"> | string
endTime?: Prisma.StringFilter<"AvailabilityRule"> | string
timezone?: Prisma.StringFilter<"AvailabilityRule"> | string
}
export type AvailabilityRuleOrderByWithRelationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
providerUserId?: Prisma.SortOrder
dayOfWeek?: Prisma.SortOrder
startTime?: Prisma.SortOrder
endTime?: Prisma.SortOrder
timezone?: Prisma.SortOrder
}
export type AvailabilityRuleWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.AvailabilityRuleWhereInput | Prisma.AvailabilityRuleWhereInput[]
OR?: Prisma.AvailabilityRuleWhereInput[]
NOT?: Prisma.AvailabilityRuleWhereInput | Prisma.AvailabilityRuleWhereInput[]
createdAt?: Prisma.DateTimeFilter<"AvailabilityRule"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"AvailabilityRule"> | Date | string
tenantId?: Prisma.StringFilter<"AvailabilityRule"> | string
providerUserId?: Prisma.StringFilter<"AvailabilityRule"> | string
dayOfWeek?: Prisma.EnumBookingDayOfWeekFilter<"AvailabilityRule"> | $Enums.BookingDayOfWeek
startTime?: Prisma.StringFilter<"AvailabilityRule"> | string
endTime?: Prisma.StringFilter<"AvailabilityRule"> | string
timezone?: Prisma.StringFilter<"AvailabilityRule"> | string
}, "id">
export type AvailabilityRuleOrderByWithAggregationInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
providerUserId?: Prisma.SortOrder
dayOfWeek?: Prisma.SortOrder
startTime?: Prisma.SortOrder
endTime?: Prisma.SortOrder
timezone?: Prisma.SortOrder
_count?: Prisma.AvailabilityRuleCountOrderByAggregateInput
_max?: Prisma.AvailabilityRuleMaxOrderByAggregateInput
_min?: Prisma.AvailabilityRuleMinOrderByAggregateInput
}
export type AvailabilityRuleScalarWhereWithAggregatesInput = {
AND?: Prisma.AvailabilityRuleScalarWhereWithAggregatesInput | Prisma.AvailabilityRuleScalarWhereWithAggregatesInput[]
OR?: Prisma.AvailabilityRuleScalarWhereWithAggregatesInput[]
NOT?: Prisma.AvailabilityRuleScalarWhereWithAggregatesInput | Prisma.AvailabilityRuleScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"AvailabilityRule"> | string
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AvailabilityRule"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"AvailabilityRule"> | Date | string
tenantId?: Prisma.StringWithAggregatesFilter<"AvailabilityRule"> | string
providerUserId?: Prisma.StringWithAggregatesFilter<"AvailabilityRule"> | string
dayOfWeek?: Prisma.EnumBookingDayOfWeekWithAggregatesFilter<"AvailabilityRule"> | $Enums.BookingDayOfWeek
startTime?: Prisma.StringWithAggregatesFilter<"AvailabilityRule"> | string
endTime?: Prisma.StringWithAggregatesFilter<"AvailabilityRule"> | string
timezone?: Prisma.StringWithAggregatesFilter<"AvailabilityRule"> | string
}
export type AvailabilityRuleCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
providerUserId: string
dayOfWeek: $Enums.BookingDayOfWeek
startTime: string
endTime: string
timezone: string
}
export type AvailabilityRuleUncheckedCreateInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
providerUserId: string
dayOfWeek: $Enums.BookingDayOfWeek
startTime: string
endTime: string
timezone: string
}
export type AvailabilityRuleUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
dayOfWeek?: Prisma.EnumBookingDayOfWeekFieldUpdateOperationsInput | $Enums.BookingDayOfWeek
startTime?: Prisma.StringFieldUpdateOperationsInput | string
endTime?: Prisma.StringFieldUpdateOperationsInput | string
timezone?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AvailabilityRuleUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
dayOfWeek?: Prisma.EnumBookingDayOfWeekFieldUpdateOperationsInput | $Enums.BookingDayOfWeek
startTime?: Prisma.StringFieldUpdateOperationsInput | string
endTime?: Prisma.StringFieldUpdateOperationsInput | string
timezone?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AvailabilityRuleCreateManyInput = {
id?: string
createdAt?: Date | string
updatedAt?: Date | string
tenantId: string
providerUserId: string
dayOfWeek: $Enums.BookingDayOfWeek
startTime: string
endTime: string
timezone: string
}
export type AvailabilityRuleUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
dayOfWeek?: Prisma.EnumBookingDayOfWeekFieldUpdateOperationsInput | $Enums.BookingDayOfWeek
startTime?: Prisma.StringFieldUpdateOperationsInput | string
endTime?: Prisma.StringFieldUpdateOperationsInput | string
timezone?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AvailabilityRuleUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
providerUserId?: Prisma.StringFieldUpdateOperationsInput | string
dayOfWeek?: Prisma.EnumBookingDayOfWeekFieldUpdateOperationsInput | $Enums.BookingDayOfWeek
startTime?: Prisma.StringFieldUpdateOperationsInput | string
endTime?: Prisma.StringFieldUpdateOperationsInput | string
timezone?: Prisma.StringFieldUpdateOperationsInput | string
}
export type AvailabilityRuleCountOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
providerUserId?: Prisma.SortOrder
dayOfWeek?: Prisma.SortOrder
startTime?: Prisma.SortOrder
endTime?: Prisma.SortOrder
timezone?: Prisma.SortOrder
}
export type AvailabilityRuleMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
providerUserId?: Prisma.SortOrder
dayOfWeek?: Prisma.SortOrder
startTime?: Prisma.SortOrder
endTime?: Prisma.SortOrder
timezone?: Prisma.SortOrder
}
export type AvailabilityRuleMinOrderByAggregateInput = {
id?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
providerUserId?: Prisma.SortOrder
dayOfWeek?: Prisma.SortOrder
startTime?: Prisma.SortOrder
endTime?: Prisma.SortOrder
timezone?: Prisma.SortOrder
}
export type EnumBookingDayOfWeekFieldUpdateOperationsInput = {
set?: $Enums.BookingDayOfWeek
}
export type AvailabilityRuleSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
providerUserId?: boolean
dayOfWeek?: boolean
startTime?: boolean
endTime?: boolean
timezone?: boolean
}, ExtArgs["result"]["availabilityRule"]>
export type AvailabilityRuleSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
providerUserId?: boolean
dayOfWeek?: boolean
startTime?: boolean
endTime?: boolean
timezone?: boolean
}, ExtArgs["result"]["availabilityRule"]>
export type AvailabilityRuleSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
providerUserId?: boolean
dayOfWeek?: boolean
startTime?: boolean
endTime?: boolean
timezone?: boolean
}, ExtArgs["result"]["availabilityRule"]>
export type AvailabilityRuleSelectScalar = {
id?: boolean
createdAt?: boolean
updatedAt?: boolean
tenantId?: boolean
providerUserId?: boolean
dayOfWeek?: boolean
startTime?: boolean
endTime?: boolean
timezone?: boolean
}
export type AvailabilityRuleOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "updatedAt" | "tenantId" | "providerUserId" | "dayOfWeek" | "startTime" | "endTime" | "timezone", ExtArgs["result"]["availabilityRule"]>
export type $AvailabilityRulePayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "AvailabilityRule"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
createdAt: Date
updatedAt: Date
tenantId: string
providerUserId: string
dayOfWeek: $Enums.BookingDayOfWeek
startTime: string
endTime: string
timezone: string
}, ExtArgs["result"]["availabilityRule"]>
composites: {}
}
export type AvailabilityRuleGetPayload<S extends boolean | null | undefined | AvailabilityRuleDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AvailabilityRulePayload, S>
export type AvailabilityRuleCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<AvailabilityRuleFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: AvailabilityRuleCountAggregateInputType | true
}
export interface AvailabilityRuleDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AvailabilityRule'], meta: { name: 'AvailabilityRule' } }
/**
* Find zero or one AvailabilityRule that matches the filter.
* @param {AvailabilityRuleFindUniqueArgs} args - Arguments to find a AvailabilityRule
* @example
* // Get one AvailabilityRule
* const availabilityRule = await prisma.availabilityRule.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends AvailabilityRuleFindUniqueArgs>(args: Prisma.SelectSubset<T, AvailabilityRuleFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AvailabilityRuleClient<runtime.Types.Result.GetResult<Prisma.$AvailabilityRulePayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one AvailabilityRule that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {AvailabilityRuleFindUniqueOrThrowArgs} args - Arguments to find a AvailabilityRule
* @example
* // Get one AvailabilityRule
* const availabilityRule = await prisma.availabilityRule.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends AvailabilityRuleFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AvailabilityRuleFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AvailabilityRuleClient<runtime.Types.Result.GetResult<Prisma.$AvailabilityRulePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first AvailabilityRule 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 {AvailabilityRuleFindFirstArgs} args - Arguments to find a AvailabilityRule
* @example
* // Get one AvailabilityRule
* const availabilityRule = await prisma.availabilityRule.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends AvailabilityRuleFindFirstArgs>(args?: Prisma.SelectSubset<T, AvailabilityRuleFindFirstArgs<ExtArgs>>): Prisma.Prisma__AvailabilityRuleClient<runtime.Types.Result.GetResult<Prisma.$AvailabilityRulePayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first AvailabilityRule 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 {AvailabilityRuleFindFirstOrThrowArgs} args - Arguments to find a AvailabilityRule
* @example
* // Get one AvailabilityRule
* const availabilityRule = await prisma.availabilityRule.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends AvailabilityRuleFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AvailabilityRuleFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AvailabilityRuleClient<runtime.Types.Result.GetResult<Prisma.$AvailabilityRulePayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more AvailabilityRules 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 {AvailabilityRuleFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all AvailabilityRules
* const availabilityRules = await prisma.availabilityRule.findMany()
*
* // Get first 10 AvailabilityRules
* const availabilityRules = await prisma.availabilityRule.findMany({ take: 10 })
*
* // Only select the `id`
* const availabilityRuleWithIdOnly = await prisma.availabilityRule.findMany({ select: { id: true } })
*
*/
findMany<T extends AvailabilityRuleFindManyArgs>(args?: Prisma.SelectSubset<T, AvailabilityRuleFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AvailabilityRulePayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a AvailabilityRule.
* @param {AvailabilityRuleCreateArgs} args - Arguments to create a AvailabilityRule.
* @example
* // Create one AvailabilityRule
* const AvailabilityRule = await prisma.availabilityRule.create({
* data: {
* // ... data to create a AvailabilityRule
* }
* })
*
*/
create<T extends AvailabilityRuleCreateArgs>(args: Prisma.SelectSubset<T, AvailabilityRuleCreateArgs<ExtArgs>>): Prisma.Prisma__AvailabilityRuleClient<runtime.Types.Result.GetResult<Prisma.$AvailabilityRulePayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many AvailabilityRules.
* @param {AvailabilityRuleCreateManyArgs} args - Arguments to create many AvailabilityRules.
* @example
* // Create many AvailabilityRules
* const availabilityRule = await prisma.availabilityRule.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends AvailabilityRuleCreateManyArgs>(args?: Prisma.SelectSubset<T, AvailabilityRuleCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many AvailabilityRules and returns the data saved in the database.
* @param {AvailabilityRuleCreateManyAndReturnArgs} args - Arguments to create many AvailabilityRules.
* @example
* // Create many AvailabilityRules
* const availabilityRule = await prisma.availabilityRule.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many AvailabilityRules and only return the `id`
* const availabilityRuleWithIdOnly = await prisma.availabilityRule.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 AvailabilityRuleCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AvailabilityRuleCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AvailabilityRulePayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a AvailabilityRule.
* @param {AvailabilityRuleDeleteArgs} args - Arguments to delete one AvailabilityRule.
* @example
* // Delete one AvailabilityRule
* const AvailabilityRule = await prisma.availabilityRule.delete({
* where: {
* // ... filter to delete one AvailabilityRule
* }
* })
*
*/
delete<T extends AvailabilityRuleDeleteArgs>(args: Prisma.SelectSubset<T, AvailabilityRuleDeleteArgs<ExtArgs>>): Prisma.Prisma__AvailabilityRuleClient<runtime.Types.Result.GetResult<Prisma.$AvailabilityRulePayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one AvailabilityRule.
* @param {AvailabilityRuleUpdateArgs} args - Arguments to update one AvailabilityRule.
* @example
* // Update one AvailabilityRule
* const availabilityRule = await prisma.availabilityRule.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends AvailabilityRuleUpdateArgs>(args: Prisma.SelectSubset<T, AvailabilityRuleUpdateArgs<ExtArgs>>): Prisma.Prisma__AvailabilityRuleClient<runtime.Types.Result.GetResult<Prisma.$AvailabilityRulePayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more AvailabilityRules.
* @param {AvailabilityRuleDeleteManyArgs} args - Arguments to filter AvailabilityRules to delete.
* @example
* // Delete a few AvailabilityRules
* const { count } = await prisma.availabilityRule.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends AvailabilityRuleDeleteManyArgs>(args?: Prisma.SelectSubset<T, AvailabilityRuleDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AvailabilityRules.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AvailabilityRuleUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many AvailabilityRules
* const availabilityRule = await prisma.availabilityRule.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends AvailabilityRuleUpdateManyArgs>(args: Prisma.SelectSubset<T, AvailabilityRuleUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more AvailabilityRules and returns the data updated in the database.
* @param {AvailabilityRuleUpdateManyAndReturnArgs} args - Arguments to update many AvailabilityRules.
* @example
* // Update many AvailabilityRules
* const availabilityRule = await prisma.availabilityRule.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more AvailabilityRules and only return the `id`
* const availabilityRuleWithIdOnly = await prisma.availabilityRule.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 AvailabilityRuleUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AvailabilityRuleUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AvailabilityRulePayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one AvailabilityRule.
* @param {AvailabilityRuleUpsertArgs} args - Arguments to update or create a AvailabilityRule.
* @example
* // Update or create a AvailabilityRule
* const availabilityRule = await prisma.availabilityRule.upsert({
* create: {
* // ... data to create a AvailabilityRule
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the AvailabilityRule we want to update
* }
* })
*/
upsert<T extends AvailabilityRuleUpsertArgs>(args: Prisma.SelectSubset<T, AvailabilityRuleUpsertArgs<ExtArgs>>): Prisma.Prisma__AvailabilityRuleClient<runtime.Types.Result.GetResult<Prisma.$AvailabilityRulePayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of AvailabilityRules.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AvailabilityRuleCountArgs} args - Arguments to filter AvailabilityRules to count.
* @example
* // Count the number of AvailabilityRules
* const count = await prisma.availabilityRule.count({
* where: {
* // ... the filter for the AvailabilityRules we want to count
* }
* })
**/
count<T extends AvailabilityRuleCountArgs>(
args?: Prisma.Subset<T, AvailabilityRuleCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], AvailabilityRuleCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a AvailabilityRule.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AvailabilityRuleAggregateArgs} 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 AvailabilityRuleAggregateArgs>(args: Prisma.Subset<T, AvailabilityRuleAggregateArgs>): Prisma.PrismaPromise<GetAvailabilityRuleAggregateType<T>>
/**
* Group by AvailabilityRule.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {AvailabilityRuleGroupByArgs} 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 AvailabilityRuleGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: AvailabilityRuleGroupByArgs['orderBy'] }
: { orderBy?: AvailabilityRuleGroupByArgs['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, AvailabilityRuleGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAvailabilityRuleGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the AvailabilityRule model
*/
readonly fields: AvailabilityRuleFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for AvailabilityRule.
* 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__AvailabilityRuleClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* 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 AvailabilityRule model
*/
export interface AvailabilityRuleFieldRefs {
readonly id: Prisma.FieldRef<"AvailabilityRule", 'String'>
readonly createdAt: Prisma.FieldRef<"AvailabilityRule", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"AvailabilityRule", 'DateTime'>
readonly tenantId: Prisma.FieldRef<"AvailabilityRule", 'String'>
readonly providerUserId: Prisma.FieldRef<"AvailabilityRule", 'String'>
readonly dayOfWeek: Prisma.FieldRef<"AvailabilityRule", 'BookingDayOfWeek'>
readonly startTime: Prisma.FieldRef<"AvailabilityRule", 'String'>
readonly endTime: Prisma.FieldRef<"AvailabilityRule", 'String'>
readonly timezone: Prisma.FieldRef<"AvailabilityRule", 'String'>
}
// Custom InputTypes
/**
* AvailabilityRule findUnique
*/
export type AvailabilityRuleFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AvailabilityRule
*/
select?: Prisma.AvailabilityRuleSelect<ExtArgs> | null
/**
* Omit specific fields from the AvailabilityRule
*/
omit?: Prisma.AvailabilityRuleOmit<ExtArgs> | null
/**
* Filter, which AvailabilityRule to fetch.
*/
where: Prisma.AvailabilityRuleWhereUniqueInput
}
/**
* AvailabilityRule findUniqueOrThrow
*/
export type AvailabilityRuleFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AvailabilityRule
*/
select?: Prisma.AvailabilityRuleSelect<ExtArgs> | null
/**
* Omit specific fields from the AvailabilityRule
*/
omit?: Prisma.AvailabilityRuleOmit<ExtArgs> | null
/**
* Filter, which AvailabilityRule to fetch.
*/
where: Prisma.AvailabilityRuleWhereUniqueInput
}
/**
* AvailabilityRule findFirst
*/
export type AvailabilityRuleFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AvailabilityRule
*/
select?: Prisma.AvailabilityRuleSelect<ExtArgs> | null
/**
* Omit specific fields from the AvailabilityRule
*/
omit?: Prisma.AvailabilityRuleOmit<ExtArgs> | null
/**
* Filter, which AvailabilityRule to fetch.
*/
where?: Prisma.AvailabilityRuleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AvailabilityRules to fetch.
*/
orderBy?: Prisma.AvailabilityRuleOrderByWithRelationInput | Prisma.AvailabilityRuleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AvailabilityRules.
*/
cursor?: Prisma.AvailabilityRuleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AvailabilityRules 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` AvailabilityRules.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AvailabilityRules.
*/
distinct?: Prisma.AvailabilityRuleScalarFieldEnum | Prisma.AvailabilityRuleScalarFieldEnum[]
}
/**
* AvailabilityRule findFirstOrThrow
*/
export type AvailabilityRuleFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AvailabilityRule
*/
select?: Prisma.AvailabilityRuleSelect<ExtArgs> | null
/**
* Omit specific fields from the AvailabilityRule
*/
omit?: Prisma.AvailabilityRuleOmit<ExtArgs> | null
/**
* Filter, which AvailabilityRule to fetch.
*/
where?: Prisma.AvailabilityRuleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AvailabilityRules to fetch.
*/
orderBy?: Prisma.AvailabilityRuleOrderByWithRelationInput | Prisma.AvailabilityRuleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for AvailabilityRules.
*/
cursor?: Prisma.AvailabilityRuleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AvailabilityRules 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` AvailabilityRules.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AvailabilityRules.
*/
distinct?: Prisma.AvailabilityRuleScalarFieldEnum | Prisma.AvailabilityRuleScalarFieldEnum[]
}
/**
* AvailabilityRule findMany
*/
export type AvailabilityRuleFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AvailabilityRule
*/
select?: Prisma.AvailabilityRuleSelect<ExtArgs> | null
/**
* Omit specific fields from the AvailabilityRule
*/
omit?: Prisma.AvailabilityRuleOmit<ExtArgs> | null
/**
* Filter, which AvailabilityRules to fetch.
*/
where?: Prisma.AvailabilityRuleWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of AvailabilityRules to fetch.
*/
orderBy?: Prisma.AvailabilityRuleOrderByWithRelationInput | Prisma.AvailabilityRuleOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing AvailabilityRules.
*/
cursor?: Prisma.AvailabilityRuleWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` AvailabilityRules 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` AvailabilityRules.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of AvailabilityRules.
*/
distinct?: Prisma.AvailabilityRuleScalarFieldEnum | Prisma.AvailabilityRuleScalarFieldEnum[]
}
/**
* AvailabilityRule create
*/
export type AvailabilityRuleCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AvailabilityRule
*/
select?: Prisma.AvailabilityRuleSelect<ExtArgs> | null
/**
* Omit specific fields from the AvailabilityRule
*/
omit?: Prisma.AvailabilityRuleOmit<ExtArgs> | null
/**
* The data needed to create a AvailabilityRule.
*/
data: Prisma.XOR<Prisma.AvailabilityRuleCreateInput, Prisma.AvailabilityRuleUncheckedCreateInput>
}
/**
* AvailabilityRule createMany
*/
export type AvailabilityRuleCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many AvailabilityRules.
*/
data: Prisma.AvailabilityRuleCreateManyInput | Prisma.AvailabilityRuleCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AvailabilityRule createManyAndReturn
*/
export type AvailabilityRuleCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AvailabilityRule
*/
select?: Prisma.AvailabilityRuleSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AvailabilityRule
*/
omit?: Prisma.AvailabilityRuleOmit<ExtArgs> | null
/**
* The data used to create many AvailabilityRules.
*/
data: Prisma.AvailabilityRuleCreateManyInput | Prisma.AvailabilityRuleCreateManyInput[]
skipDuplicates?: boolean
}
/**
* AvailabilityRule update
*/
export type AvailabilityRuleUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AvailabilityRule
*/
select?: Prisma.AvailabilityRuleSelect<ExtArgs> | null
/**
* Omit specific fields from the AvailabilityRule
*/
omit?: Prisma.AvailabilityRuleOmit<ExtArgs> | null
/**
* The data needed to update a AvailabilityRule.
*/
data: Prisma.XOR<Prisma.AvailabilityRuleUpdateInput, Prisma.AvailabilityRuleUncheckedUpdateInput>
/**
* Choose, which AvailabilityRule to update.
*/
where: Prisma.AvailabilityRuleWhereUniqueInput
}
/**
* AvailabilityRule updateMany
*/
export type AvailabilityRuleUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update AvailabilityRules.
*/
data: Prisma.XOR<Prisma.AvailabilityRuleUpdateManyMutationInput, Prisma.AvailabilityRuleUncheckedUpdateManyInput>
/**
* Filter which AvailabilityRules to update
*/
where?: Prisma.AvailabilityRuleWhereInput
/**
* Limit how many AvailabilityRules to update.
*/
limit?: number
}
/**
* AvailabilityRule updateManyAndReturn
*/
export type AvailabilityRuleUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AvailabilityRule
*/
select?: Prisma.AvailabilityRuleSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the AvailabilityRule
*/
omit?: Prisma.AvailabilityRuleOmit<ExtArgs> | null
/**
* The data used to update AvailabilityRules.
*/
data: Prisma.XOR<Prisma.AvailabilityRuleUpdateManyMutationInput, Prisma.AvailabilityRuleUncheckedUpdateManyInput>
/**
* Filter which AvailabilityRules to update
*/
where?: Prisma.AvailabilityRuleWhereInput
/**
* Limit how many AvailabilityRules to update.
*/
limit?: number
}
/**
* AvailabilityRule upsert
*/
export type AvailabilityRuleUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AvailabilityRule
*/
select?: Prisma.AvailabilityRuleSelect<ExtArgs> | null
/**
* Omit specific fields from the AvailabilityRule
*/
omit?: Prisma.AvailabilityRuleOmit<ExtArgs> | null
/**
* The filter to search for the AvailabilityRule to update in case it exists.
*/
where: Prisma.AvailabilityRuleWhereUniqueInput
/**
* In case the AvailabilityRule found by the `where` argument doesn't exist, create a new AvailabilityRule with this data.
*/
create: Prisma.XOR<Prisma.AvailabilityRuleCreateInput, Prisma.AvailabilityRuleUncheckedCreateInput>
/**
* In case the AvailabilityRule was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.AvailabilityRuleUpdateInput, Prisma.AvailabilityRuleUncheckedUpdateInput>
}
/**
* AvailabilityRule delete
*/
export type AvailabilityRuleDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AvailabilityRule
*/
select?: Prisma.AvailabilityRuleSelect<ExtArgs> | null
/**
* Omit specific fields from the AvailabilityRule
*/
omit?: Prisma.AvailabilityRuleOmit<ExtArgs> | null
/**
* Filter which AvailabilityRule to delete.
*/
where: Prisma.AvailabilityRuleWhereUniqueInput
}
/**
* AvailabilityRule deleteMany
*/
export type AvailabilityRuleDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which AvailabilityRules to delete
*/
where?: Prisma.AvailabilityRuleWhereInput
/**
* Limit how many AvailabilityRules to delete.
*/
limit?: number
}
/**
* AvailabilityRule without action
*/
export type AvailabilityRuleDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the AvailabilityRule
*/
select?: Prisma.AvailabilityRuleSelect<ExtArgs> | null
/**
* Omit specific fields from the AvailabilityRule
*/
omit?: Prisma.AvailabilityRuleOmit<ExtArgs> | null
}