1515 lines
64 KiB
TypeScript
1515 lines
64 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 `AdminBookingAssignment` 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 AdminBookingAssignment
|
|
*
|
|
*/
|
|
export type AdminBookingAssignmentModel = runtime.Types.Result.DefaultSelection<Prisma.$AdminBookingAssignmentPayload>
|
|
|
|
export type AggregateAdminBookingAssignment = {
|
|
_count: AdminBookingAssignmentCountAggregateOutputType | null
|
|
_min: AdminBookingAssignmentMinAggregateOutputType | null
|
|
_max: AdminBookingAssignmentMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type AdminBookingAssignmentMinAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
adminUserId: string | null
|
|
bookingId: string | null
|
|
kind: $Enums.AdminBookingAssignmentKind | null
|
|
selectedHostAdminUserId: string | null
|
|
previousHostAdminUserId: string | null
|
|
overriddenByAdminUserId: string | null
|
|
selectionReason: string | null
|
|
}
|
|
|
|
export type AdminBookingAssignmentMaxAggregateOutputType = {
|
|
id: string | null
|
|
createdAt: Date | null
|
|
adminUserId: string | null
|
|
bookingId: string | null
|
|
kind: $Enums.AdminBookingAssignmentKind | null
|
|
selectedHostAdminUserId: string | null
|
|
previousHostAdminUserId: string | null
|
|
overriddenByAdminUserId: string | null
|
|
selectionReason: string | null
|
|
}
|
|
|
|
export type AdminBookingAssignmentCountAggregateOutputType = {
|
|
id: number
|
|
createdAt: number
|
|
adminUserId: number
|
|
bookingId: number
|
|
kind: number
|
|
selectedHostAdminUserId: number
|
|
previousHostAdminUserId: number
|
|
overriddenByAdminUserId: number
|
|
eligibleHostAdminUserIds: number
|
|
excludedHosts: number
|
|
loadSnapshot: number
|
|
selectionReason: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type AdminBookingAssignmentMinAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
adminUserId?: true
|
|
bookingId?: true
|
|
kind?: true
|
|
selectedHostAdminUserId?: true
|
|
previousHostAdminUserId?: true
|
|
overriddenByAdminUserId?: true
|
|
selectionReason?: true
|
|
}
|
|
|
|
export type AdminBookingAssignmentMaxAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
adminUserId?: true
|
|
bookingId?: true
|
|
kind?: true
|
|
selectedHostAdminUserId?: true
|
|
previousHostAdminUserId?: true
|
|
overriddenByAdminUserId?: true
|
|
selectionReason?: true
|
|
}
|
|
|
|
export type AdminBookingAssignmentCountAggregateInputType = {
|
|
id?: true
|
|
createdAt?: true
|
|
adminUserId?: true
|
|
bookingId?: true
|
|
kind?: true
|
|
selectedHostAdminUserId?: true
|
|
previousHostAdminUserId?: true
|
|
overriddenByAdminUserId?: true
|
|
eligibleHostAdminUserIds?: true
|
|
excludedHosts?: true
|
|
loadSnapshot?: true
|
|
selectionReason?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type AdminBookingAssignmentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminBookingAssignment to aggregate.
|
|
*/
|
|
where?: Prisma.AdminBookingAssignmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminBookingAssignments to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminBookingAssignmentOrderByWithRelationInput | Prisma.AdminBookingAssignmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.AdminBookingAssignmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminBookingAssignments 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` AdminBookingAssignments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned AdminBookingAssignments
|
|
**/
|
|
_count?: true | AdminBookingAssignmentCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: AdminBookingAssignmentMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: AdminBookingAssignmentMaxAggregateInputType
|
|
}
|
|
|
|
export type GetAdminBookingAssignmentAggregateType<T extends AdminBookingAssignmentAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateAdminBookingAssignment]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateAdminBookingAssignment[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateAdminBookingAssignment[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AdminBookingAssignmentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.AdminBookingAssignmentWhereInput
|
|
orderBy?: Prisma.AdminBookingAssignmentOrderByWithAggregationInput | Prisma.AdminBookingAssignmentOrderByWithAggregationInput[]
|
|
by: Prisma.AdminBookingAssignmentScalarFieldEnum[] | Prisma.AdminBookingAssignmentScalarFieldEnum
|
|
having?: Prisma.AdminBookingAssignmentScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: AdminBookingAssignmentCountAggregateInputType | true
|
|
_min?: AdminBookingAssignmentMinAggregateInputType
|
|
_max?: AdminBookingAssignmentMaxAggregateInputType
|
|
}
|
|
|
|
export type AdminBookingAssignmentGroupByOutputType = {
|
|
id: string
|
|
createdAt: Date
|
|
adminUserId: string
|
|
bookingId: string
|
|
kind: $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId: string
|
|
previousHostAdminUserId: string | null
|
|
overriddenByAdminUserId: string | null
|
|
eligibleHostAdminUserIds: string[]
|
|
excludedHosts: runtime.JsonValue
|
|
loadSnapshot: runtime.JsonValue
|
|
selectionReason: string
|
|
_count: AdminBookingAssignmentCountAggregateOutputType | null
|
|
_min: AdminBookingAssignmentMinAggregateOutputType | null
|
|
_max: AdminBookingAssignmentMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetAdminBookingAssignmentGroupByPayload<T extends AdminBookingAssignmentGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<AdminBookingAssignmentGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof AdminBookingAssignmentGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AdminBookingAssignmentGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], AdminBookingAssignmentGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type AdminBookingAssignmentWhereInput = {
|
|
AND?: Prisma.AdminBookingAssignmentWhereInput | Prisma.AdminBookingAssignmentWhereInput[]
|
|
OR?: Prisma.AdminBookingAssignmentWhereInput[]
|
|
NOT?: Prisma.AdminBookingAssignmentWhereInput | Prisma.AdminBookingAssignmentWhereInput[]
|
|
id?: Prisma.StringFilter<"AdminBookingAssignment"> | string
|
|
createdAt?: Prisma.DateTimeFilter<"AdminBookingAssignment"> | Date | string
|
|
adminUserId?: Prisma.StringFilter<"AdminBookingAssignment"> | string
|
|
bookingId?: Prisma.StringFilter<"AdminBookingAssignment"> | string
|
|
kind?: Prisma.EnumAdminBookingAssignmentKindFilter<"AdminBookingAssignment"> | $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId?: Prisma.StringFilter<"AdminBookingAssignment"> | string
|
|
previousHostAdminUserId?: Prisma.StringNullableFilter<"AdminBookingAssignment"> | string | null
|
|
overriddenByAdminUserId?: Prisma.StringNullableFilter<"AdminBookingAssignment"> | string | null
|
|
eligibleHostAdminUserIds?: Prisma.StringNullableListFilter<"AdminBookingAssignment">
|
|
excludedHosts?: Prisma.JsonFilter<"AdminBookingAssignment">
|
|
loadSnapshot?: Prisma.JsonFilter<"AdminBookingAssignment">
|
|
selectionReason?: Prisma.StringFilter<"AdminBookingAssignment"> | string
|
|
booking?: Prisma.XOR<Prisma.AdminBookingScalarRelationFilter, Prisma.AdminBookingWhereInput>
|
|
}
|
|
|
|
export type AdminBookingAssignmentOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
bookingId?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
selectedHostAdminUserId?: Prisma.SortOrder
|
|
previousHostAdminUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
overriddenByAdminUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
eligibleHostAdminUserIds?: Prisma.SortOrder
|
|
excludedHosts?: Prisma.SortOrder
|
|
loadSnapshot?: Prisma.SortOrder
|
|
selectionReason?: Prisma.SortOrder
|
|
booking?: Prisma.AdminBookingOrderByWithRelationInput
|
|
}
|
|
|
|
export type AdminBookingAssignmentWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
bookingId?: string
|
|
AND?: Prisma.AdminBookingAssignmentWhereInput | Prisma.AdminBookingAssignmentWhereInput[]
|
|
OR?: Prisma.AdminBookingAssignmentWhereInput[]
|
|
NOT?: Prisma.AdminBookingAssignmentWhereInput | Prisma.AdminBookingAssignmentWhereInput[]
|
|
createdAt?: Prisma.DateTimeFilter<"AdminBookingAssignment"> | Date | string
|
|
adminUserId?: Prisma.StringFilter<"AdminBookingAssignment"> | string
|
|
kind?: Prisma.EnumAdminBookingAssignmentKindFilter<"AdminBookingAssignment"> | $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId?: Prisma.StringFilter<"AdminBookingAssignment"> | string
|
|
previousHostAdminUserId?: Prisma.StringNullableFilter<"AdminBookingAssignment"> | string | null
|
|
overriddenByAdminUserId?: Prisma.StringNullableFilter<"AdminBookingAssignment"> | string | null
|
|
eligibleHostAdminUserIds?: Prisma.StringNullableListFilter<"AdminBookingAssignment">
|
|
excludedHosts?: Prisma.JsonFilter<"AdminBookingAssignment">
|
|
loadSnapshot?: Prisma.JsonFilter<"AdminBookingAssignment">
|
|
selectionReason?: Prisma.StringFilter<"AdminBookingAssignment"> | string
|
|
booking?: Prisma.XOR<Prisma.AdminBookingScalarRelationFilter, Prisma.AdminBookingWhereInput>
|
|
}, "id" | "bookingId">
|
|
|
|
export type AdminBookingAssignmentOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
bookingId?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
selectedHostAdminUserId?: Prisma.SortOrder
|
|
previousHostAdminUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
overriddenByAdminUserId?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
eligibleHostAdminUserIds?: Prisma.SortOrder
|
|
excludedHosts?: Prisma.SortOrder
|
|
loadSnapshot?: Prisma.SortOrder
|
|
selectionReason?: Prisma.SortOrder
|
|
_count?: Prisma.AdminBookingAssignmentCountOrderByAggregateInput
|
|
_max?: Prisma.AdminBookingAssignmentMaxOrderByAggregateInput
|
|
_min?: Prisma.AdminBookingAssignmentMinOrderByAggregateInput
|
|
}
|
|
|
|
export type AdminBookingAssignmentScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.AdminBookingAssignmentScalarWhereWithAggregatesInput | Prisma.AdminBookingAssignmentScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.AdminBookingAssignmentScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.AdminBookingAssignmentScalarWhereWithAggregatesInput | Prisma.AdminBookingAssignmentScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"AdminBookingAssignment"> | string
|
|
createdAt?: Prisma.DateTimeWithAggregatesFilter<"AdminBookingAssignment"> | Date | string
|
|
adminUserId?: Prisma.StringWithAggregatesFilter<"AdminBookingAssignment"> | string
|
|
bookingId?: Prisma.StringWithAggregatesFilter<"AdminBookingAssignment"> | string
|
|
kind?: Prisma.EnumAdminBookingAssignmentKindWithAggregatesFilter<"AdminBookingAssignment"> | $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId?: Prisma.StringWithAggregatesFilter<"AdminBookingAssignment"> | string
|
|
previousHostAdminUserId?: Prisma.StringNullableWithAggregatesFilter<"AdminBookingAssignment"> | string | null
|
|
overriddenByAdminUserId?: Prisma.StringNullableWithAggregatesFilter<"AdminBookingAssignment"> | string | null
|
|
eligibleHostAdminUserIds?: Prisma.StringNullableListFilter<"AdminBookingAssignment">
|
|
excludedHosts?: Prisma.JsonWithAggregatesFilter<"AdminBookingAssignment">
|
|
loadSnapshot?: Prisma.JsonWithAggregatesFilter<"AdminBookingAssignment">
|
|
selectionReason?: Prisma.StringWithAggregatesFilter<"AdminBookingAssignment"> | string
|
|
}
|
|
|
|
export type AdminBookingAssignmentCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
adminUserId: string
|
|
kind: $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId: string
|
|
previousHostAdminUserId?: string | null
|
|
overriddenByAdminUserId?: string | null
|
|
eligibleHostAdminUserIds?: Prisma.AdminBookingAssignmentCreateeligibleHostAdminUserIdsInput | string[]
|
|
excludedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
loadSnapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
selectionReason: string
|
|
booking: Prisma.AdminBookingCreateNestedOneWithoutAssignmentInput
|
|
}
|
|
|
|
export type AdminBookingAssignmentUncheckedCreateInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
adminUserId: string
|
|
bookingId: string
|
|
kind: $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId: string
|
|
previousHostAdminUserId?: string | null
|
|
overriddenByAdminUserId?: string | null
|
|
eligibleHostAdminUserIds?: Prisma.AdminBookingAssignmentCreateeligibleHostAdminUserIdsInput | string[]
|
|
excludedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
loadSnapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
selectionReason: string
|
|
}
|
|
|
|
export type AdminBookingAssignmentUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumAdminBookingAssignmentKindFieldUpdateOperationsInput | $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
previousHostAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
overriddenByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
eligibleHostAdminUserIds?: Prisma.AdminBookingAssignmentUpdateeligibleHostAdminUserIdsInput | string[]
|
|
excludedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
loadSnapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
selectionReason?: Prisma.StringFieldUpdateOperationsInput | string
|
|
booking?: Prisma.AdminBookingUpdateOneRequiredWithoutAssignmentNestedInput
|
|
}
|
|
|
|
export type AdminBookingAssignmentUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
bookingId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumAdminBookingAssignmentKindFieldUpdateOperationsInput | $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
previousHostAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
overriddenByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
eligibleHostAdminUserIds?: Prisma.AdminBookingAssignmentUpdateeligibleHostAdminUserIdsInput | string[]
|
|
excludedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
loadSnapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
selectionReason?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AdminBookingAssignmentCreateManyInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
adminUserId: string
|
|
bookingId: string
|
|
kind: $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId: string
|
|
previousHostAdminUserId?: string | null
|
|
overriddenByAdminUserId?: string | null
|
|
eligibleHostAdminUserIds?: Prisma.AdminBookingAssignmentCreateeligibleHostAdminUserIdsInput | string[]
|
|
excludedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
loadSnapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
selectionReason: string
|
|
}
|
|
|
|
export type AdminBookingAssignmentUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumAdminBookingAssignmentKindFieldUpdateOperationsInput | $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
previousHostAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
overriddenByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
eligibleHostAdminUserIds?: Prisma.AdminBookingAssignmentUpdateeligibleHostAdminUserIdsInput | string[]
|
|
excludedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
loadSnapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
selectionReason?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AdminBookingAssignmentUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
bookingId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumAdminBookingAssignmentKindFieldUpdateOperationsInput | $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
previousHostAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
overriddenByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
eligibleHostAdminUserIds?: Prisma.AdminBookingAssignmentUpdateeligibleHostAdminUserIdsInput | string[]
|
|
excludedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
loadSnapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
selectionReason?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AdminBookingAssignmentNullableScalarRelationFilter = {
|
|
is?: Prisma.AdminBookingAssignmentWhereInput | null
|
|
isNot?: Prisma.AdminBookingAssignmentWhereInput | null
|
|
}
|
|
|
|
export type AdminBookingAssignmentCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
bookingId?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
selectedHostAdminUserId?: Prisma.SortOrder
|
|
previousHostAdminUserId?: Prisma.SortOrder
|
|
overriddenByAdminUserId?: Prisma.SortOrder
|
|
eligibleHostAdminUserIds?: Prisma.SortOrder
|
|
excludedHosts?: Prisma.SortOrder
|
|
loadSnapshot?: Prisma.SortOrder
|
|
selectionReason?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminBookingAssignmentMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
bookingId?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
selectedHostAdminUserId?: Prisma.SortOrder
|
|
previousHostAdminUserId?: Prisma.SortOrder
|
|
overriddenByAdminUserId?: Prisma.SortOrder
|
|
selectionReason?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminBookingAssignmentMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
createdAt?: Prisma.SortOrder
|
|
adminUserId?: Prisma.SortOrder
|
|
bookingId?: Prisma.SortOrder
|
|
kind?: Prisma.SortOrder
|
|
selectedHostAdminUserId?: Prisma.SortOrder
|
|
previousHostAdminUserId?: Prisma.SortOrder
|
|
overriddenByAdminUserId?: Prisma.SortOrder
|
|
selectionReason?: Prisma.SortOrder
|
|
}
|
|
|
|
export type AdminBookingAssignmentCreateNestedOneWithoutBookingInput = {
|
|
create?: Prisma.XOR<Prisma.AdminBookingAssignmentCreateWithoutBookingInput, Prisma.AdminBookingAssignmentUncheckedCreateWithoutBookingInput>
|
|
connectOrCreate?: Prisma.AdminBookingAssignmentCreateOrConnectWithoutBookingInput
|
|
connect?: Prisma.AdminBookingAssignmentWhereUniqueInput
|
|
}
|
|
|
|
export type AdminBookingAssignmentUncheckedCreateNestedOneWithoutBookingInput = {
|
|
create?: Prisma.XOR<Prisma.AdminBookingAssignmentCreateWithoutBookingInput, Prisma.AdminBookingAssignmentUncheckedCreateWithoutBookingInput>
|
|
connectOrCreate?: Prisma.AdminBookingAssignmentCreateOrConnectWithoutBookingInput
|
|
connect?: Prisma.AdminBookingAssignmentWhereUniqueInput
|
|
}
|
|
|
|
export type AdminBookingAssignmentUpdateOneWithoutBookingNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminBookingAssignmentCreateWithoutBookingInput, Prisma.AdminBookingAssignmentUncheckedCreateWithoutBookingInput>
|
|
connectOrCreate?: Prisma.AdminBookingAssignmentCreateOrConnectWithoutBookingInput
|
|
upsert?: Prisma.AdminBookingAssignmentUpsertWithoutBookingInput
|
|
disconnect?: Prisma.AdminBookingAssignmentWhereInput | boolean
|
|
delete?: Prisma.AdminBookingAssignmentWhereInput | boolean
|
|
connect?: Prisma.AdminBookingAssignmentWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AdminBookingAssignmentUpdateToOneWithWhereWithoutBookingInput, Prisma.AdminBookingAssignmentUpdateWithoutBookingInput>, Prisma.AdminBookingAssignmentUncheckedUpdateWithoutBookingInput>
|
|
}
|
|
|
|
export type AdminBookingAssignmentUncheckedUpdateOneWithoutBookingNestedInput = {
|
|
create?: Prisma.XOR<Prisma.AdminBookingAssignmentCreateWithoutBookingInput, Prisma.AdminBookingAssignmentUncheckedCreateWithoutBookingInput>
|
|
connectOrCreate?: Prisma.AdminBookingAssignmentCreateOrConnectWithoutBookingInput
|
|
upsert?: Prisma.AdminBookingAssignmentUpsertWithoutBookingInput
|
|
disconnect?: Prisma.AdminBookingAssignmentWhereInput | boolean
|
|
delete?: Prisma.AdminBookingAssignmentWhereInput | boolean
|
|
connect?: Prisma.AdminBookingAssignmentWhereUniqueInput
|
|
update?: Prisma.XOR<Prisma.XOR<Prisma.AdminBookingAssignmentUpdateToOneWithWhereWithoutBookingInput, Prisma.AdminBookingAssignmentUpdateWithoutBookingInput>, Prisma.AdminBookingAssignmentUncheckedUpdateWithoutBookingInput>
|
|
}
|
|
|
|
export type AdminBookingAssignmentCreateeligibleHostAdminUserIdsInput = {
|
|
set: string[]
|
|
}
|
|
|
|
export type EnumAdminBookingAssignmentKindFieldUpdateOperationsInput = {
|
|
set?: $Enums.AdminBookingAssignmentKind
|
|
}
|
|
|
|
export type AdminBookingAssignmentUpdateeligibleHostAdminUserIdsInput = {
|
|
set?: string[]
|
|
push?: string | string[]
|
|
}
|
|
|
|
export type AdminBookingAssignmentCreateWithoutBookingInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
adminUserId: string
|
|
kind: $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId: string
|
|
previousHostAdminUserId?: string | null
|
|
overriddenByAdminUserId?: string | null
|
|
eligibleHostAdminUserIds?: Prisma.AdminBookingAssignmentCreateeligibleHostAdminUserIdsInput | string[]
|
|
excludedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
loadSnapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
selectionReason: string
|
|
}
|
|
|
|
export type AdminBookingAssignmentUncheckedCreateWithoutBookingInput = {
|
|
id?: string
|
|
createdAt?: Date | string
|
|
adminUserId: string
|
|
kind: $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId: string
|
|
previousHostAdminUserId?: string | null
|
|
overriddenByAdminUserId?: string | null
|
|
eligibleHostAdminUserIds?: Prisma.AdminBookingAssignmentCreateeligibleHostAdminUserIdsInput | string[]
|
|
excludedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
loadSnapshot: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
selectionReason: string
|
|
}
|
|
|
|
export type AdminBookingAssignmentCreateOrConnectWithoutBookingInput = {
|
|
where: Prisma.AdminBookingAssignmentWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.AdminBookingAssignmentCreateWithoutBookingInput, Prisma.AdminBookingAssignmentUncheckedCreateWithoutBookingInput>
|
|
}
|
|
|
|
export type AdminBookingAssignmentUpsertWithoutBookingInput = {
|
|
update: Prisma.XOR<Prisma.AdminBookingAssignmentUpdateWithoutBookingInput, Prisma.AdminBookingAssignmentUncheckedUpdateWithoutBookingInput>
|
|
create: Prisma.XOR<Prisma.AdminBookingAssignmentCreateWithoutBookingInput, Prisma.AdminBookingAssignmentUncheckedCreateWithoutBookingInput>
|
|
where?: Prisma.AdminBookingAssignmentWhereInput
|
|
}
|
|
|
|
export type AdminBookingAssignmentUpdateToOneWithWhereWithoutBookingInput = {
|
|
where?: Prisma.AdminBookingAssignmentWhereInput
|
|
data: Prisma.XOR<Prisma.AdminBookingAssignmentUpdateWithoutBookingInput, Prisma.AdminBookingAssignmentUncheckedUpdateWithoutBookingInput>
|
|
}
|
|
|
|
export type AdminBookingAssignmentUpdateWithoutBookingInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumAdminBookingAssignmentKindFieldUpdateOperationsInput | $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
previousHostAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
overriddenByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
eligibleHostAdminUserIds?: Prisma.AdminBookingAssignmentUpdateeligibleHostAdminUserIdsInput | string[]
|
|
excludedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
loadSnapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
selectionReason?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type AdminBookingAssignmentUncheckedUpdateWithoutBookingInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
|
|
adminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
kind?: Prisma.EnumAdminBookingAssignmentKindFieldUpdateOperationsInput | $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
previousHostAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
overriddenByAdminUserId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
eligibleHostAdminUserIds?: Prisma.AdminBookingAssignmentUpdateeligibleHostAdminUserIdsInput | string[]
|
|
excludedHosts?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
loadSnapshot?: Prisma.JsonNullValueInput | runtime.InputJsonValue
|
|
selectionReason?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
|
|
|
|
export type AdminBookingAssignmentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
adminUserId?: boolean
|
|
bookingId?: boolean
|
|
kind?: boolean
|
|
selectedHostAdminUserId?: boolean
|
|
previousHostAdminUserId?: boolean
|
|
overriddenByAdminUserId?: boolean
|
|
eligibleHostAdminUserIds?: boolean
|
|
excludedHosts?: boolean
|
|
loadSnapshot?: boolean
|
|
selectionReason?: boolean
|
|
booking?: boolean | Prisma.AdminBookingDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adminBookingAssignment"]>
|
|
|
|
export type AdminBookingAssignmentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
adminUserId?: boolean
|
|
bookingId?: boolean
|
|
kind?: boolean
|
|
selectedHostAdminUserId?: boolean
|
|
previousHostAdminUserId?: boolean
|
|
overriddenByAdminUserId?: boolean
|
|
eligibleHostAdminUserIds?: boolean
|
|
excludedHosts?: boolean
|
|
loadSnapshot?: boolean
|
|
selectionReason?: boolean
|
|
booking?: boolean | Prisma.AdminBookingDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adminBookingAssignment"]>
|
|
|
|
export type AdminBookingAssignmentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
adminUserId?: boolean
|
|
bookingId?: boolean
|
|
kind?: boolean
|
|
selectedHostAdminUserId?: boolean
|
|
previousHostAdminUserId?: boolean
|
|
overriddenByAdminUserId?: boolean
|
|
eligibleHostAdminUserIds?: boolean
|
|
excludedHosts?: boolean
|
|
loadSnapshot?: boolean
|
|
selectionReason?: boolean
|
|
booking?: boolean | Prisma.AdminBookingDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["adminBookingAssignment"]>
|
|
|
|
export type AdminBookingAssignmentSelectScalar = {
|
|
id?: boolean
|
|
createdAt?: boolean
|
|
adminUserId?: boolean
|
|
bookingId?: boolean
|
|
kind?: boolean
|
|
selectedHostAdminUserId?: boolean
|
|
previousHostAdminUserId?: boolean
|
|
overriddenByAdminUserId?: boolean
|
|
eligibleHostAdminUserIds?: boolean
|
|
excludedHosts?: boolean
|
|
loadSnapshot?: boolean
|
|
selectionReason?: boolean
|
|
}
|
|
|
|
export type AdminBookingAssignmentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "createdAt" | "adminUserId" | "bookingId" | "kind" | "selectedHostAdminUserId" | "previousHostAdminUserId" | "overriddenByAdminUserId" | "eligibleHostAdminUserIds" | "excludedHosts" | "loadSnapshot" | "selectionReason", ExtArgs["result"]["adminBookingAssignment"]>
|
|
export type AdminBookingAssignmentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
booking?: boolean | Prisma.AdminBookingDefaultArgs<ExtArgs>
|
|
}
|
|
export type AdminBookingAssignmentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
booking?: boolean | Prisma.AdminBookingDefaultArgs<ExtArgs>
|
|
}
|
|
export type AdminBookingAssignmentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
booking?: boolean | Prisma.AdminBookingDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $AdminBookingAssignmentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "AdminBookingAssignment"
|
|
objects: {
|
|
booking: Prisma.$AdminBookingPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
createdAt: Date
|
|
adminUserId: string
|
|
bookingId: string
|
|
kind: $Enums.AdminBookingAssignmentKind
|
|
selectedHostAdminUserId: string
|
|
previousHostAdminUserId: string | null
|
|
overriddenByAdminUserId: string | null
|
|
eligibleHostAdminUserIds: string[]
|
|
excludedHosts: runtime.JsonValue
|
|
loadSnapshot: runtime.JsonValue
|
|
selectionReason: string
|
|
}, ExtArgs["result"]["adminBookingAssignment"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type AdminBookingAssignmentGetPayload<S extends boolean | null | undefined | AdminBookingAssignmentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$AdminBookingAssignmentPayload, S>
|
|
|
|
export type AdminBookingAssignmentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<AdminBookingAssignmentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: AdminBookingAssignmentCountAggregateInputType | true
|
|
}
|
|
|
|
export interface AdminBookingAssignmentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['AdminBookingAssignment'], meta: { name: 'AdminBookingAssignment' } }
|
|
/**
|
|
* Find zero or one AdminBookingAssignment that matches the filter.
|
|
* @param {AdminBookingAssignmentFindUniqueArgs} args - Arguments to find a AdminBookingAssignment
|
|
* @example
|
|
* // Get one AdminBookingAssignment
|
|
* const adminBookingAssignment = await prisma.adminBookingAssignment.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends AdminBookingAssignmentFindUniqueArgs>(args: Prisma.SelectSubset<T, AdminBookingAssignmentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__AdminBookingAssignmentClient<runtime.Types.Result.GetResult<Prisma.$AdminBookingAssignmentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one AdminBookingAssignment that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {AdminBookingAssignmentFindUniqueOrThrowArgs} args - Arguments to find a AdminBookingAssignment
|
|
* @example
|
|
* // Get one AdminBookingAssignment
|
|
* const adminBookingAssignment = await prisma.adminBookingAssignment.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends AdminBookingAssignmentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, AdminBookingAssignmentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminBookingAssignmentClient<runtime.Types.Result.GetResult<Prisma.$AdminBookingAssignmentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AdminBookingAssignment 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 {AdminBookingAssignmentFindFirstArgs} args - Arguments to find a AdminBookingAssignment
|
|
* @example
|
|
* // Get one AdminBookingAssignment
|
|
* const adminBookingAssignment = await prisma.adminBookingAssignment.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends AdminBookingAssignmentFindFirstArgs>(args?: Prisma.SelectSubset<T, AdminBookingAssignmentFindFirstArgs<ExtArgs>>): Prisma.Prisma__AdminBookingAssignmentClient<runtime.Types.Result.GetResult<Prisma.$AdminBookingAssignmentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first AdminBookingAssignment 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 {AdminBookingAssignmentFindFirstOrThrowArgs} args - Arguments to find a AdminBookingAssignment
|
|
* @example
|
|
* // Get one AdminBookingAssignment
|
|
* const adminBookingAssignment = await prisma.adminBookingAssignment.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends AdminBookingAssignmentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, AdminBookingAssignmentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__AdminBookingAssignmentClient<runtime.Types.Result.GetResult<Prisma.$AdminBookingAssignmentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more AdminBookingAssignments 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 {AdminBookingAssignmentFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all AdminBookingAssignments
|
|
* const adminBookingAssignments = await prisma.adminBookingAssignment.findMany()
|
|
*
|
|
* // Get first 10 AdminBookingAssignments
|
|
* const adminBookingAssignments = await prisma.adminBookingAssignment.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const adminBookingAssignmentWithIdOnly = await prisma.adminBookingAssignment.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends AdminBookingAssignmentFindManyArgs>(args?: Prisma.SelectSubset<T, AdminBookingAssignmentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminBookingAssignmentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a AdminBookingAssignment.
|
|
* @param {AdminBookingAssignmentCreateArgs} args - Arguments to create a AdminBookingAssignment.
|
|
* @example
|
|
* // Create one AdminBookingAssignment
|
|
* const AdminBookingAssignment = await prisma.adminBookingAssignment.create({
|
|
* data: {
|
|
* // ... data to create a AdminBookingAssignment
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends AdminBookingAssignmentCreateArgs>(args: Prisma.SelectSubset<T, AdminBookingAssignmentCreateArgs<ExtArgs>>): Prisma.Prisma__AdminBookingAssignmentClient<runtime.Types.Result.GetResult<Prisma.$AdminBookingAssignmentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many AdminBookingAssignments.
|
|
* @param {AdminBookingAssignmentCreateManyArgs} args - Arguments to create many AdminBookingAssignments.
|
|
* @example
|
|
* // Create many AdminBookingAssignments
|
|
* const adminBookingAssignment = await prisma.adminBookingAssignment.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends AdminBookingAssignmentCreateManyArgs>(args?: Prisma.SelectSubset<T, AdminBookingAssignmentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many AdminBookingAssignments and returns the data saved in the database.
|
|
* @param {AdminBookingAssignmentCreateManyAndReturnArgs} args - Arguments to create many AdminBookingAssignments.
|
|
* @example
|
|
* // Create many AdminBookingAssignments
|
|
* const adminBookingAssignment = await prisma.adminBookingAssignment.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many AdminBookingAssignments and only return the `id`
|
|
* const adminBookingAssignmentWithIdOnly = await prisma.adminBookingAssignment.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 AdminBookingAssignmentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, AdminBookingAssignmentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminBookingAssignmentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a AdminBookingAssignment.
|
|
* @param {AdminBookingAssignmentDeleteArgs} args - Arguments to delete one AdminBookingAssignment.
|
|
* @example
|
|
* // Delete one AdminBookingAssignment
|
|
* const AdminBookingAssignment = await prisma.adminBookingAssignment.delete({
|
|
* where: {
|
|
* // ... filter to delete one AdminBookingAssignment
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends AdminBookingAssignmentDeleteArgs>(args: Prisma.SelectSubset<T, AdminBookingAssignmentDeleteArgs<ExtArgs>>): Prisma.Prisma__AdminBookingAssignmentClient<runtime.Types.Result.GetResult<Prisma.$AdminBookingAssignmentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one AdminBookingAssignment.
|
|
* @param {AdminBookingAssignmentUpdateArgs} args - Arguments to update one AdminBookingAssignment.
|
|
* @example
|
|
* // Update one AdminBookingAssignment
|
|
* const adminBookingAssignment = await prisma.adminBookingAssignment.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends AdminBookingAssignmentUpdateArgs>(args: Prisma.SelectSubset<T, AdminBookingAssignmentUpdateArgs<ExtArgs>>): Prisma.Prisma__AdminBookingAssignmentClient<runtime.Types.Result.GetResult<Prisma.$AdminBookingAssignmentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more AdminBookingAssignments.
|
|
* @param {AdminBookingAssignmentDeleteManyArgs} args - Arguments to filter AdminBookingAssignments to delete.
|
|
* @example
|
|
* // Delete a few AdminBookingAssignments
|
|
* const { count } = await prisma.adminBookingAssignment.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends AdminBookingAssignmentDeleteManyArgs>(args?: Prisma.SelectSubset<T, AdminBookingAssignmentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AdminBookingAssignments.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminBookingAssignmentUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many AdminBookingAssignments
|
|
* const adminBookingAssignment = await prisma.adminBookingAssignment.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends AdminBookingAssignmentUpdateManyArgs>(args: Prisma.SelectSubset<T, AdminBookingAssignmentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more AdminBookingAssignments and returns the data updated in the database.
|
|
* @param {AdminBookingAssignmentUpdateManyAndReturnArgs} args - Arguments to update many AdminBookingAssignments.
|
|
* @example
|
|
* // Update many AdminBookingAssignments
|
|
* const adminBookingAssignment = await prisma.adminBookingAssignment.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more AdminBookingAssignments and only return the `id`
|
|
* const adminBookingAssignmentWithIdOnly = await prisma.adminBookingAssignment.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 AdminBookingAssignmentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, AdminBookingAssignmentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$AdminBookingAssignmentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one AdminBookingAssignment.
|
|
* @param {AdminBookingAssignmentUpsertArgs} args - Arguments to update or create a AdminBookingAssignment.
|
|
* @example
|
|
* // Update or create a AdminBookingAssignment
|
|
* const adminBookingAssignment = await prisma.adminBookingAssignment.upsert({
|
|
* create: {
|
|
* // ... data to create a AdminBookingAssignment
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the AdminBookingAssignment we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends AdminBookingAssignmentUpsertArgs>(args: Prisma.SelectSubset<T, AdminBookingAssignmentUpsertArgs<ExtArgs>>): Prisma.Prisma__AdminBookingAssignmentClient<runtime.Types.Result.GetResult<Prisma.$AdminBookingAssignmentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of AdminBookingAssignments.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminBookingAssignmentCountArgs} args - Arguments to filter AdminBookingAssignments to count.
|
|
* @example
|
|
* // Count the number of AdminBookingAssignments
|
|
* const count = await prisma.adminBookingAssignment.count({
|
|
* where: {
|
|
* // ... the filter for the AdminBookingAssignments we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends AdminBookingAssignmentCountArgs>(
|
|
args?: Prisma.Subset<T, AdminBookingAssignmentCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], AdminBookingAssignmentCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a AdminBookingAssignment.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminBookingAssignmentAggregateArgs} 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 AdminBookingAssignmentAggregateArgs>(args: Prisma.Subset<T, AdminBookingAssignmentAggregateArgs>): Prisma.PrismaPromise<GetAdminBookingAssignmentAggregateType<T>>
|
|
|
|
/**
|
|
* Group by AdminBookingAssignment.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {AdminBookingAssignmentGroupByArgs} 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 AdminBookingAssignmentGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: AdminBookingAssignmentGroupByArgs['orderBy'] }
|
|
: { orderBy?: AdminBookingAssignmentGroupByArgs['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, AdminBookingAssignmentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetAdminBookingAssignmentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the AdminBookingAssignment model
|
|
*/
|
|
readonly fields: AdminBookingAssignmentFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for AdminBookingAssignment.
|
|
* 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__AdminBookingAssignmentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
booking<T extends Prisma.AdminBookingDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.AdminBookingDefaultArgs<ExtArgs>>): Prisma.Prisma__AdminBookingClient<runtime.Types.Result.GetResult<Prisma.$AdminBookingPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
|
|
/**
|
|
* 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 AdminBookingAssignment model
|
|
*/
|
|
export interface AdminBookingAssignmentFieldRefs {
|
|
readonly id: Prisma.FieldRef<"AdminBookingAssignment", 'String'>
|
|
readonly createdAt: Prisma.FieldRef<"AdminBookingAssignment", 'DateTime'>
|
|
readonly adminUserId: Prisma.FieldRef<"AdminBookingAssignment", 'String'>
|
|
readonly bookingId: Prisma.FieldRef<"AdminBookingAssignment", 'String'>
|
|
readonly kind: Prisma.FieldRef<"AdminBookingAssignment", 'AdminBookingAssignmentKind'>
|
|
readonly selectedHostAdminUserId: Prisma.FieldRef<"AdminBookingAssignment", 'String'>
|
|
readonly previousHostAdminUserId: Prisma.FieldRef<"AdminBookingAssignment", 'String'>
|
|
readonly overriddenByAdminUserId: Prisma.FieldRef<"AdminBookingAssignment", 'String'>
|
|
readonly eligibleHostAdminUserIds: Prisma.FieldRef<"AdminBookingAssignment", 'String[]'>
|
|
readonly excludedHosts: Prisma.FieldRef<"AdminBookingAssignment", 'Json'>
|
|
readonly loadSnapshot: Prisma.FieldRef<"AdminBookingAssignment", 'Json'>
|
|
readonly selectionReason: Prisma.FieldRef<"AdminBookingAssignment", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* AdminBookingAssignment findUnique
|
|
*/
|
|
export type AdminBookingAssignmentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminBookingAssignment
|
|
*/
|
|
select?: Prisma.AdminBookingAssignmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminBookingAssignment
|
|
*/
|
|
omit?: Prisma.AdminBookingAssignmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminBookingAssignmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminBookingAssignment to fetch.
|
|
*/
|
|
where: Prisma.AdminBookingAssignmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminBookingAssignment findUniqueOrThrow
|
|
*/
|
|
export type AdminBookingAssignmentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminBookingAssignment
|
|
*/
|
|
select?: Prisma.AdminBookingAssignmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminBookingAssignment
|
|
*/
|
|
omit?: Prisma.AdminBookingAssignmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminBookingAssignmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminBookingAssignment to fetch.
|
|
*/
|
|
where: Prisma.AdminBookingAssignmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminBookingAssignment findFirst
|
|
*/
|
|
export type AdminBookingAssignmentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminBookingAssignment
|
|
*/
|
|
select?: Prisma.AdminBookingAssignmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminBookingAssignment
|
|
*/
|
|
omit?: Prisma.AdminBookingAssignmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminBookingAssignmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminBookingAssignment to fetch.
|
|
*/
|
|
where?: Prisma.AdminBookingAssignmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminBookingAssignments to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminBookingAssignmentOrderByWithRelationInput | Prisma.AdminBookingAssignmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AdminBookingAssignments.
|
|
*/
|
|
cursor?: Prisma.AdminBookingAssignmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminBookingAssignments 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` AdminBookingAssignments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminBookingAssignments.
|
|
*/
|
|
distinct?: Prisma.AdminBookingAssignmentScalarFieldEnum | Prisma.AdminBookingAssignmentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminBookingAssignment findFirstOrThrow
|
|
*/
|
|
export type AdminBookingAssignmentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminBookingAssignment
|
|
*/
|
|
select?: Prisma.AdminBookingAssignmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminBookingAssignment
|
|
*/
|
|
omit?: Prisma.AdminBookingAssignmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminBookingAssignmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminBookingAssignment to fetch.
|
|
*/
|
|
where?: Prisma.AdminBookingAssignmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminBookingAssignments to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminBookingAssignmentOrderByWithRelationInput | Prisma.AdminBookingAssignmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for AdminBookingAssignments.
|
|
*/
|
|
cursor?: Prisma.AdminBookingAssignmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminBookingAssignments 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` AdminBookingAssignments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminBookingAssignments.
|
|
*/
|
|
distinct?: Prisma.AdminBookingAssignmentScalarFieldEnum | Prisma.AdminBookingAssignmentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminBookingAssignment findMany
|
|
*/
|
|
export type AdminBookingAssignmentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminBookingAssignment
|
|
*/
|
|
select?: Prisma.AdminBookingAssignmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminBookingAssignment
|
|
*/
|
|
omit?: Prisma.AdminBookingAssignmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminBookingAssignmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which AdminBookingAssignments to fetch.
|
|
*/
|
|
where?: Prisma.AdminBookingAssignmentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of AdminBookingAssignments to fetch.
|
|
*/
|
|
orderBy?: Prisma.AdminBookingAssignmentOrderByWithRelationInput | Prisma.AdminBookingAssignmentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing AdminBookingAssignments.
|
|
*/
|
|
cursor?: Prisma.AdminBookingAssignmentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` AdminBookingAssignments 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` AdminBookingAssignments.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of AdminBookingAssignments.
|
|
*/
|
|
distinct?: Prisma.AdminBookingAssignmentScalarFieldEnum | Prisma.AdminBookingAssignmentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* AdminBookingAssignment create
|
|
*/
|
|
export type AdminBookingAssignmentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminBookingAssignment
|
|
*/
|
|
select?: Prisma.AdminBookingAssignmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminBookingAssignment
|
|
*/
|
|
omit?: Prisma.AdminBookingAssignmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminBookingAssignmentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a AdminBookingAssignment.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminBookingAssignmentCreateInput, Prisma.AdminBookingAssignmentUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminBookingAssignment createMany
|
|
*/
|
|
export type AdminBookingAssignmentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many AdminBookingAssignments.
|
|
*/
|
|
data: Prisma.AdminBookingAssignmentCreateManyInput | Prisma.AdminBookingAssignmentCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* AdminBookingAssignment createManyAndReturn
|
|
*/
|
|
export type AdminBookingAssignmentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminBookingAssignment
|
|
*/
|
|
select?: Prisma.AdminBookingAssignmentSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminBookingAssignment
|
|
*/
|
|
omit?: Prisma.AdminBookingAssignmentOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many AdminBookingAssignments.
|
|
*/
|
|
data: Prisma.AdminBookingAssignmentCreateManyInput | Prisma.AdminBookingAssignmentCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminBookingAssignmentIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AdminBookingAssignment update
|
|
*/
|
|
export type AdminBookingAssignmentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminBookingAssignment
|
|
*/
|
|
select?: Prisma.AdminBookingAssignmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminBookingAssignment
|
|
*/
|
|
omit?: Prisma.AdminBookingAssignmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminBookingAssignmentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a AdminBookingAssignment.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminBookingAssignmentUpdateInput, Prisma.AdminBookingAssignmentUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which AdminBookingAssignment to update.
|
|
*/
|
|
where: Prisma.AdminBookingAssignmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminBookingAssignment updateMany
|
|
*/
|
|
export type AdminBookingAssignmentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update AdminBookingAssignments.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminBookingAssignmentUpdateManyMutationInput, Prisma.AdminBookingAssignmentUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminBookingAssignments to update
|
|
*/
|
|
where?: Prisma.AdminBookingAssignmentWhereInput
|
|
/**
|
|
* Limit how many AdminBookingAssignments to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminBookingAssignment updateManyAndReturn
|
|
*/
|
|
export type AdminBookingAssignmentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminBookingAssignment
|
|
*/
|
|
select?: Prisma.AdminBookingAssignmentSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminBookingAssignment
|
|
*/
|
|
omit?: Prisma.AdminBookingAssignmentOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update AdminBookingAssignments.
|
|
*/
|
|
data: Prisma.XOR<Prisma.AdminBookingAssignmentUpdateManyMutationInput, Prisma.AdminBookingAssignmentUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which AdminBookingAssignments to update
|
|
*/
|
|
where?: Prisma.AdminBookingAssignmentWhereInput
|
|
/**
|
|
* Limit how many AdminBookingAssignments to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminBookingAssignmentIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* AdminBookingAssignment upsert
|
|
*/
|
|
export type AdminBookingAssignmentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminBookingAssignment
|
|
*/
|
|
select?: Prisma.AdminBookingAssignmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminBookingAssignment
|
|
*/
|
|
omit?: Prisma.AdminBookingAssignmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminBookingAssignmentInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the AdminBookingAssignment to update in case it exists.
|
|
*/
|
|
where: Prisma.AdminBookingAssignmentWhereUniqueInput
|
|
/**
|
|
* In case the AdminBookingAssignment found by the `where` argument doesn't exist, create a new AdminBookingAssignment with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.AdminBookingAssignmentCreateInput, Prisma.AdminBookingAssignmentUncheckedCreateInput>
|
|
/**
|
|
* In case the AdminBookingAssignment was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.AdminBookingAssignmentUpdateInput, Prisma.AdminBookingAssignmentUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* AdminBookingAssignment delete
|
|
*/
|
|
export type AdminBookingAssignmentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminBookingAssignment
|
|
*/
|
|
select?: Prisma.AdminBookingAssignmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminBookingAssignment
|
|
*/
|
|
omit?: Prisma.AdminBookingAssignmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminBookingAssignmentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which AdminBookingAssignment to delete.
|
|
*/
|
|
where: Prisma.AdminBookingAssignmentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* AdminBookingAssignment deleteMany
|
|
*/
|
|
export type AdminBookingAssignmentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which AdminBookingAssignments to delete
|
|
*/
|
|
where?: Prisma.AdminBookingAssignmentWhereInput
|
|
/**
|
|
* Limit how many AdminBookingAssignments to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* AdminBookingAssignment without action
|
|
*/
|
|
export type AdminBookingAssignmentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the AdminBookingAssignment
|
|
*/
|
|
select?: Prisma.AdminBookingAssignmentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the AdminBookingAssignment
|
|
*/
|
|
omit?: Prisma.AdminBookingAssignmentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.AdminBookingAssignmentInclude<ExtArgs> | null
|
|
}
|