Files
portal/src/lib/generated/prisma/models/Block.ts
T

1611 lines
57 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 `Block` 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 Block
*
*/
export type BlockModel = runtime.Types.Result.DefaultSelection<Prisma.$BlockPayload>
export type AggregateBlock = {
_count: BlockCountAggregateOutputType | null
_avg: BlockAvgAggregateOutputType | null
_sum: BlockSumAggregateOutputType | null
_min: BlockMinAggregateOutputType | null
_max: BlockMaxAggregateOutputType | null
}
export type BlockAvgAggregateOutputType = {
startMinutes: number | null
endMinutes: number | null
}
export type BlockSumAggregateOutputType = {
startMinutes: number | null
endMinutes: number | null
}
export type BlockMinAggregateOutputType = {
id: string | null
scheduleId: string | null
startMinutes: number | null
endMinutes: number | null
dynamicAudio: boolean | null
createdAt: Date | null
updatedAt: Date | null
}
export type BlockMaxAggregateOutputType = {
id: string | null
scheduleId: string | null
startMinutes: number | null
endMinutes: number | null
dynamicAudio: boolean | null
createdAt: Date | null
updatedAt: Date | null
}
export type BlockCountAggregateOutputType = {
id: number
scheduleId: number
startMinutes: number
endMinutes: number
dynamicAudio: number
createdAt: number
updatedAt: number
_all: number
}
export type BlockAvgAggregateInputType = {
startMinutes?: true
endMinutes?: true
}
export type BlockSumAggregateInputType = {
startMinutes?: true
endMinutes?: true
}
export type BlockMinAggregateInputType = {
id?: true
scheduleId?: true
startMinutes?: true
endMinutes?: true
dynamicAudio?: true
createdAt?: true
updatedAt?: true
}
export type BlockMaxAggregateInputType = {
id?: true
scheduleId?: true
startMinutes?: true
endMinutes?: true
dynamicAudio?: true
createdAt?: true
updatedAt?: true
}
export type BlockCountAggregateInputType = {
id?: true
scheduleId?: true
startMinutes?: true
endMinutes?: true
dynamicAudio?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type BlockAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Block to aggregate.
*/
where?: Prisma.BlockWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Blocks to fetch.
*/
orderBy?: Prisma.BlockOrderByWithRelationInput | Prisma.BlockOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.BlockWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Blocks 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` Blocks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Blocks
**/
_count?: true | BlockCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: BlockAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: BlockSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: BlockMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: BlockMaxAggregateInputType
}
export type GetBlockAggregateType<T extends BlockAggregateArgs> = {
[P in keyof T & keyof AggregateBlock]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateBlock[P]>
: Prisma.GetScalarType<T[P], AggregateBlock[P]>
}
export type BlockGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.BlockWhereInput
orderBy?: Prisma.BlockOrderByWithAggregationInput | Prisma.BlockOrderByWithAggregationInput[]
by: Prisma.BlockScalarFieldEnum[] | Prisma.BlockScalarFieldEnum
having?: Prisma.BlockScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: BlockCountAggregateInputType | true
_avg?: BlockAvgAggregateInputType
_sum?: BlockSumAggregateInputType
_min?: BlockMinAggregateInputType
_max?: BlockMaxAggregateInputType
}
export type BlockGroupByOutputType = {
id: string
scheduleId: string
startMinutes: number
endMinutes: number
dynamicAudio: boolean
createdAt: Date
updatedAt: Date
_count: BlockCountAggregateOutputType | null
_avg: BlockAvgAggregateOutputType | null
_sum: BlockSumAggregateOutputType | null
_min: BlockMinAggregateOutputType | null
_max: BlockMaxAggregateOutputType | null
}
export type GetBlockGroupByPayload<T extends BlockGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<BlockGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof BlockGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], BlockGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], BlockGroupByOutputType[P]>
}
>
>
export type BlockWhereInput = {
AND?: Prisma.BlockWhereInput | Prisma.BlockWhereInput[]
OR?: Prisma.BlockWhereInput[]
NOT?: Prisma.BlockWhereInput | Prisma.BlockWhereInput[]
id?: Prisma.StringFilter<"Block"> | string
scheduleId?: Prisma.StringFilter<"Block"> | string
startMinutes?: Prisma.IntFilter<"Block"> | number
endMinutes?: Prisma.IntFilter<"Block"> | number
dynamicAudio?: Prisma.BoolFilter<"Block"> | boolean
createdAt?: Prisma.DateTimeFilter<"Block"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Block"> | Date | string
schedule?: Prisma.XOR<Prisma.ScheduleScalarRelationFilter, Prisma.ScheduleWhereInput>
proclamations?: Prisma.BlockProclamationsListRelationFilter
}
export type BlockOrderByWithRelationInput = {
id?: Prisma.SortOrder
scheduleId?: Prisma.SortOrder
startMinutes?: Prisma.SortOrder
endMinutes?: Prisma.SortOrder
dynamicAudio?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
schedule?: Prisma.ScheduleOrderByWithRelationInput
proclamations?: Prisma.BlockProclamationsOrderByRelationAggregateInput
}
export type BlockWhereUniqueInput = Prisma.AtLeast<{
id?: string
AND?: Prisma.BlockWhereInput | Prisma.BlockWhereInput[]
OR?: Prisma.BlockWhereInput[]
NOT?: Prisma.BlockWhereInput | Prisma.BlockWhereInput[]
scheduleId?: Prisma.StringFilter<"Block"> | string
startMinutes?: Prisma.IntFilter<"Block"> | number
endMinutes?: Prisma.IntFilter<"Block"> | number
dynamicAudio?: Prisma.BoolFilter<"Block"> | boolean
createdAt?: Prisma.DateTimeFilter<"Block"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Block"> | Date | string
schedule?: Prisma.XOR<Prisma.ScheduleScalarRelationFilter, Prisma.ScheduleWhereInput>
proclamations?: Prisma.BlockProclamationsListRelationFilter
}, "id">
export type BlockOrderByWithAggregationInput = {
id?: Prisma.SortOrder
scheduleId?: Prisma.SortOrder
startMinutes?: Prisma.SortOrder
endMinutes?: Prisma.SortOrder
dynamicAudio?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.BlockCountOrderByAggregateInput
_avg?: Prisma.BlockAvgOrderByAggregateInput
_max?: Prisma.BlockMaxOrderByAggregateInput
_min?: Prisma.BlockMinOrderByAggregateInput
_sum?: Prisma.BlockSumOrderByAggregateInput
}
export type BlockScalarWhereWithAggregatesInput = {
AND?: Prisma.BlockScalarWhereWithAggregatesInput | Prisma.BlockScalarWhereWithAggregatesInput[]
OR?: Prisma.BlockScalarWhereWithAggregatesInput[]
NOT?: Prisma.BlockScalarWhereWithAggregatesInput | Prisma.BlockScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"Block"> | string
scheduleId?: Prisma.StringWithAggregatesFilter<"Block"> | string
startMinutes?: Prisma.IntWithAggregatesFilter<"Block"> | number
endMinutes?: Prisma.IntWithAggregatesFilter<"Block"> | number
dynamicAudio?: Prisma.BoolWithAggregatesFilter<"Block"> | boolean
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Block"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Block"> | Date | string
}
export type BlockCreateInput = {
id?: string
startMinutes: number
endMinutes: number
dynamicAudio?: boolean
createdAt?: Date | string
updatedAt?: Date | string
schedule: Prisma.ScheduleCreateNestedOneWithoutBlocksInput
proclamations?: Prisma.BlockProclamationsCreateNestedManyWithoutBlockInput
}
export type BlockUncheckedCreateInput = {
id?: string
scheduleId: string
startMinutes: number
endMinutes: number
dynamicAudio?: boolean
createdAt?: Date | string
updatedAt?: Date | string
proclamations?: Prisma.BlockProclamationsUncheckedCreateNestedManyWithoutBlockInput
}
export type BlockUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
startMinutes?: Prisma.IntFieldUpdateOperationsInput | number
endMinutes?: Prisma.IntFieldUpdateOperationsInput | number
dynamicAudio?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
schedule?: Prisma.ScheduleUpdateOneRequiredWithoutBlocksNestedInput
proclamations?: Prisma.BlockProclamationsUpdateManyWithoutBlockNestedInput
}
export type BlockUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
scheduleId?: Prisma.StringFieldUpdateOperationsInput | string
startMinutes?: Prisma.IntFieldUpdateOperationsInput | number
endMinutes?: Prisma.IntFieldUpdateOperationsInput | number
dynamicAudio?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
proclamations?: Prisma.BlockProclamationsUncheckedUpdateManyWithoutBlockNestedInput
}
export type BlockCreateManyInput = {
id?: string
scheduleId: string
startMinutes: number
endMinutes: number
dynamicAudio?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type BlockUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
startMinutes?: Prisma.IntFieldUpdateOperationsInput | number
endMinutes?: Prisma.IntFieldUpdateOperationsInput | number
dynamicAudio?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type BlockUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
scheduleId?: Prisma.StringFieldUpdateOperationsInput | string
startMinutes?: Prisma.IntFieldUpdateOperationsInput | number
endMinutes?: Prisma.IntFieldUpdateOperationsInput | number
dynamicAudio?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type BlockListRelationFilter = {
every?: Prisma.BlockWhereInput
some?: Prisma.BlockWhereInput
none?: Prisma.BlockWhereInput
}
export type BlockOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type BlockCountOrderByAggregateInput = {
id?: Prisma.SortOrder
scheduleId?: Prisma.SortOrder
startMinutes?: Prisma.SortOrder
endMinutes?: Prisma.SortOrder
dynamicAudio?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type BlockAvgOrderByAggregateInput = {
startMinutes?: Prisma.SortOrder
endMinutes?: Prisma.SortOrder
}
export type BlockMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
scheduleId?: Prisma.SortOrder
startMinutes?: Prisma.SortOrder
endMinutes?: Prisma.SortOrder
dynamicAudio?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type BlockMinOrderByAggregateInput = {
id?: Prisma.SortOrder
scheduleId?: Prisma.SortOrder
startMinutes?: Prisma.SortOrder
endMinutes?: Prisma.SortOrder
dynamicAudio?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type BlockSumOrderByAggregateInput = {
startMinutes?: Prisma.SortOrder
endMinutes?: Prisma.SortOrder
}
export type BlockScalarRelationFilter = {
is?: Prisma.BlockWhereInput
isNot?: Prisma.BlockWhereInput
}
export type BlockCreateNestedManyWithoutScheduleInput = {
create?: Prisma.XOR<Prisma.BlockCreateWithoutScheduleInput, Prisma.BlockUncheckedCreateWithoutScheduleInput> | Prisma.BlockCreateWithoutScheduleInput[] | Prisma.BlockUncheckedCreateWithoutScheduleInput[]
connectOrCreate?: Prisma.BlockCreateOrConnectWithoutScheduleInput | Prisma.BlockCreateOrConnectWithoutScheduleInput[]
createMany?: Prisma.BlockCreateManyScheduleInputEnvelope
connect?: Prisma.BlockWhereUniqueInput | Prisma.BlockWhereUniqueInput[]
}
export type BlockUncheckedCreateNestedManyWithoutScheduleInput = {
create?: Prisma.XOR<Prisma.BlockCreateWithoutScheduleInput, Prisma.BlockUncheckedCreateWithoutScheduleInput> | Prisma.BlockCreateWithoutScheduleInput[] | Prisma.BlockUncheckedCreateWithoutScheduleInput[]
connectOrCreate?: Prisma.BlockCreateOrConnectWithoutScheduleInput | Prisma.BlockCreateOrConnectWithoutScheduleInput[]
createMany?: Prisma.BlockCreateManyScheduleInputEnvelope
connect?: Prisma.BlockWhereUniqueInput | Prisma.BlockWhereUniqueInput[]
}
export type BlockUpdateManyWithoutScheduleNestedInput = {
create?: Prisma.XOR<Prisma.BlockCreateWithoutScheduleInput, Prisma.BlockUncheckedCreateWithoutScheduleInput> | Prisma.BlockCreateWithoutScheduleInput[] | Prisma.BlockUncheckedCreateWithoutScheduleInput[]
connectOrCreate?: Prisma.BlockCreateOrConnectWithoutScheduleInput | Prisma.BlockCreateOrConnectWithoutScheduleInput[]
upsert?: Prisma.BlockUpsertWithWhereUniqueWithoutScheduleInput | Prisma.BlockUpsertWithWhereUniqueWithoutScheduleInput[]
createMany?: Prisma.BlockCreateManyScheduleInputEnvelope
set?: Prisma.BlockWhereUniqueInput | Prisma.BlockWhereUniqueInput[]
disconnect?: Prisma.BlockWhereUniqueInput | Prisma.BlockWhereUniqueInput[]
delete?: Prisma.BlockWhereUniqueInput | Prisma.BlockWhereUniqueInput[]
connect?: Prisma.BlockWhereUniqueInput | Prisma.BlockWhereUniqueInput[]
update?: Prisma.BlockUpdateWithWhereUniqueWithoutScheduleInput | Prisma.BlockUpdateWithWhereUniqueWithoutScheduleInput[]
updateMany?: Prisma.BlockUpdateManyWithWhereWithoutScheduleInput | Prisma.BlockUpdateManyWithWhereWithoutScheduleInput[]
deleteMany?: Prisma.BlockScalarWhereInput | Prisma.BlockScalarWhereInput[]
}
export type BlockUncheckedUpdateManyWithoutScheduleNestedInput = {
create?: Prisma.XOR<Prisma.BlockCreateWithoutScheduleInput, Prisma.BlockUncheckedCreateWithoutScheduleInput> | Prisma.BlockCreateWithoutScheduleInput[] | Prisma.BlockUncheckedCreateWithoutScheduleInput[]
connectOrCreate?: Prisma.BlockCreateOrConnectWithoutScheduleInput | Prisma.BlockCreateOrConnectWithoutScheduleInput[]
upsert?: Prisma.BlockUpsertWithWhereUniqueWithoutScheduleInput | Prisma.BlockUpsertWithWhereUniqueWithoutScheduleInput[]
createMany?: Prisma.BlockCreateManyScheduleInputEnvelope
set?: Prisma.BlockWhereUniqueInput | Prisma.BlockWhereUniqueInput[]
disconnect?: Prisma.BlockWhereUniqueInput | Prisma.BlockWhereUniqueInput[]
delete?: Prisma.BlockWhereUniqueInput | Prisma.BlockWhereUniqueInput[]
connect?: Prisma.BlockWhereUniqueInput | Prisma.BlockWhereUniqueInput[]
update?: Prisma.BlockUpdateWithWhereUniqueWithoutScheduleInput | Prisma.BlockUpdateWithWhereUniqueWithoutScheduleInput[]
updateMany?: Prisma.BlockUpdateManyWithWhereWithoutScheduleInput | Prisma.BlockUpdateManyWithWhereWithoutScheduleInput[]
deleteMany?: Prisma.BlockScalarWhereInput | Prisma.BlockScalarWhereInput[]
}
export type BlockCreateNestedOneWithoutProclamationsInput = {
create?: Prisma.XOR<Prisma.BlockCreateWithoutProclamationsInput, Prisma.BlockUncheckedCreateWithoutProclamationsInput>
connectOrCreate?: Prisma.BlockCreateOrConnectWithoutProclamationsInput
connect?: Prisma.BlockWhereUniqueInput
}
export type BlockUpdateOneRequiredWithoutProclamationsNestedInput = {
create?: Prisma.XOR<Prisma.BlockCreateWithoutProclamationsInput, Prisma.BlockUncheckedCreateWithoutProclamationsInput>
connectOrCreate?: Prisma.BlockCreateOrConnectWithoutProclamationsInput
upsert?: Prisma.BlockUpsertWithoutProclamationsInput
connect?: Prisma.BlockWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.BlockUpdateToOneWithWhereWithoutProclamationsInput, Prisma.BlockUpdateWithoutProclamationsInput>, Prisma.BlockUncheckedUpdateWithoutProclamationsInput>
}
export type BlockCreateWithoutScheduleInput = {
id?: string
startMinutes: number
endMinutes: number
dynamicAudio?: boolean
createdAt?: Date | string
updatedAt?: Date | string
proclamations?: Prisma.BlockProclamationsCreateNestedManyWithoutBlockInput
}
export type BlockUncheckedCreateWithoutScheduleInput = {
id?: string
startMinutes: number
endMinutes: number
dynamicAudio?: boolean
createdAt?: Date | string
updatedAt?: Date | string
proclamations?: Prisma.BlockProclamationsUncheckedCreateNestedManyWithoutBlockInput
}
export type BlockCreateOrConnectWithoutScheduleInput = {
where: Prisma.BlockWhereUniqueInput
create: Prisma.XOR<Prisma.BlockCreateWithoutScheduleInput, Prisma.BlockUncheckedCreateWithoutScheduleInput>
}
export type BlockCreateManyScheduleInputEnvelope = {
data: Prisma.BlockCreateManyScheduleInput | Prisma.BlockCreateManyScheduleInput[]
skipDuplicates?: boolean
}
export type BlockUpsertWithWhereUniqueWithoutScheduleInput = {
where: Prisma.BlockWhereUniqueInput
update: Prisma.XOR<Prisma.BlockUpdateWithoutScheduleInput, Prisma.BlockUncheckedUpdateWithoutScheduleInput>
create: Prisma.XOR<Prisma.BlockCreateWithoutScheduleInput, Prisma.BlockUncheckedCreateWithoutScheduleInput>
}
export type BlockUpdateWithWhereUniqueWithoutScheduleInput = {
where: Prisma.BlockWhereUniqueInput
data: Prisma.XOR<Prisma.BlockUpdateWithoutScheduleInput, Prisma.BlockUncheckedUpdateWithoutScheduleInput>
}
export type BlockUpdateManyWithWhereWithoutScheduleInput = {
where: Prisma.BlockScalarWhereInput
data: Prisma.XOR<Prisma.BlockUpdateManyMutationInput, Prisma.BlockUncheckedUpdateManyWithoutScheduleInput>
}
export type BlockScalarWhereInput = {
AND?: Prisma.BlockScalarWhereInput | Prisma.BlockScalarWhereInput[]
OR?: Prisma.BlockScalarWhereInput[]
NOT?: Prisma.BlockScalarWhereInput | Prisma.BlockScalarWhereInput[]
id?: Prisma.StringFilter<"Block"> | string
scheduleId?: Prisma.StringFilter<"Block"> | string
startMinutes?: Prisma.IntFilter<"Block"> | number
endMinutes?: Prisma.IntFilter<"Block"> | number
dynamicAudio?: Prisma.BoolFilter<"Block"> | boolean
createdAt?: Prisma.DateTimeFilter<"Block"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Block"> | Date | string
}
export type BlockCreateWithoutProclamationsInput = {
id?: string
startMinutes: number
endMinutes: number
dynamicAudio?: boolean
createdAt?: Date | string
updatedAt?: Date | string
schedule: Prisma.ScheduleCreateNestedOneWithoutBlocksInput
}
export type BlockUncheckedCreateWithoutProclamationsInput = {
id?: string
scheduleId: string
startMinutes: number
endMinutes: number
dynamicAudio?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type BlockCreateOrConnectWithoutProclamationsInput = {
where: Prisma.BlockWhereUniqueInput
create: Prisma.XOR<Prisma.BlockCreateWithoutProclamationsInput, Prisma.BlockUncheckedCreateWithoutProclamationsInput>
}
export type BlockUpsertWithoutProclamationsInput = {
update: Prisma.XOR<Prisma.BlockUpdateWithoutProclamationsInput, Prisma.BlockUncheckedUpdateWithoutProclamationsInput>
create: Prisma.XOR<Prisma.BlockCreateWithoutProclamationsInput, Prisma.BlockUncheckedCreateWithoutProclamationsInput>
where?: Prisma.BlockWhereInput
}
export type BlockUpdateToOneWithWhereWithoutProclamationsInput = {
where?: Prisma.BlockWhereInput
data: Prisma.XOR<Prisma.BlockUpdateWithoutProclamationsInput, Prisma.BlockUncheckedUpdateWithoutProclamationsInput>
}
export type BlockUpdateWithoutProclamationsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
startMinutes?: Prisma.IntFieldUpdateOperationsInput | number
endMinutes?: Prisma.IntFieldUpdateOperationsInput | number
dynamicAudio?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
schedule?: Prisma.ScheduleUpdateOneRequiredWithoutBlocksNestedInput
}
export type BlockUncheckedUpdateWithoutProclamationsInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
scheduleId?: Prisma.StringFieldUpdateOperationsInput | string
startMinutes?: Prisma.IntFieldUpdateOperationsInput | number
endMinutes?: Prisma.IntFieldUpdateOperationsInput | number
dynamicAudio?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type BlockCreateManyScheduleInput = {
id?: string
startMinutes: number
endMinutes: number
dynamicAudio?: boolean
createdAt?: Date | string
updatedAt?: Date | string
}
export type BlockUpdateWithoutScheduleInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
startMinutes?: Prisma.IntFieldUpdateOperationsInput | number
endMinutes?: Prisma.IntFieldUpdateOperationsInput | number
dynamicAudio?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
proclamations?: Prisma.BlockProclamationsUpdateManyWithoutBlockNestedInput
}
export type BlockUncheckedUpdateWithoutScheduleInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
startMinutes?: Prisma.IntFieldUpdateOperationsInput | number
endMinutes?: Prisma.IntFieldUpdateOperationsInput | number
dynamicAudio?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
proclamations?: Prisma.BlockProclamationsUncheckedUpdateManyWithoutBlockNestedInput
}
export type BlockUncheckedUpdateManyWithoutScheduleInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
startMinutes?: Prisma.IntFieldUpdateOperationsInput | number
endMinutes?: Prisma.IntFieldUpdateOperationsInput | number
dynamicAudio?: Prisma.BoolFieldUpdateOperationsInput | boolean
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
/**
* Count Type BlockCountOutputType
*/
export type BlockCountOutputType = {
proclamations: number
}
export type BlockCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
proclamations?: boolean | BlockCountOutputTypeCountProclamationsArgs
}
/**
* BlockCountOutputType without action
*/
export type BlockCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the BlockCountOutputType
*/
select?: Prisma.BlockCountOutputTypeSelect<ExtArgs> | null
}
/**
* BlockCountOutputType without action
*/
export type BlockCountOutputTypeCountProclamationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.BlockProclamationsWhereInput
}
export type BlockSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
scheduleId?: boolean
startMinutes?: boolean
endMinutes?: boolean
dynamicAudio?: boolean
createdAt?: boolean
updatedAt?: boolean
schedule?: boolean | Prisma.ScheduleDefaultArgs<ExtArgs>
proclamations?: boolean | Prisma.Block$proclamationsArgs<ExtArgs>
_count?: boolean | Prisma.BlockCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["block"]>
export type BlockSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
scheduleId?: boolean
startMinutes?: boolean
endMinutes?: boolean
dynamicAudio?: boolean
createdAt?: boolean
updatedAt?: boolean
schedule?: boolean | Prisma.ScheduleDefaultArgs<ExtArgs>
}, ExtArgs["result"]["block"]>
export type BlockSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
scheduleId?: boolean
startMinutes?: boolean
endMinutes?: boolean
dynamicAudio?: boolean
createdAt?: boolean
updatedAt?: boolean
schedule?: boolean | Prisma.ScheduleDefaultArgs<ExtArgs>
}, ExtArgs["result"]["block"]>
export type BlockSelectScalar = {
id?: boolean
scheduleId?: boolean
startMinutes?: boolean
endMinutes?: boolean
dynamicAudio?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type BlockOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "scheduleId" | "startMinutes" | "endMinutes" | "dynamicAudio" | "createdAt" | "updatedAt", ExtArgs["result"]["block"]>
export type BlockInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
schedule?: boolean | Prisma.ScheduleDefaultArgs<ExtArgs>
proclamations?: boolean | Prisma.Block$proclamationsArgs<ExtArgs>
_count?: boolean | Prisma.BlockCountOutputTypeDefaultArgs<ExtArgs>
}
export type BlockIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
schedule?: boolean | Prisma.ScheduleDefaultArgs<ExtArgs>
}
export type BlockIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
schedule?: boolean | Prisma.ScheduleDefaultArgs<ExtArgs>
}
export type $BlockPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Block"
objects: {
schedule: Prisma.$SchedulePayload<ExtArgs>
proclamations: Prisma.$BlockProclamationsPayload<ExtArgs>[]
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
scheduleId: string
startMinutes: number
endMinutes: number
dynamicAudio: boolean
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["block"]>
composites: {}
}
export type BlockGetPayload<S extends boolean | null | undefined | BlockDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$BlockPayload, S>
export type BlockCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<BlockFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: BlockCountAggregateInputType | true
}
export interface BlockDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Block'], meta: { name: 'Block' } }
/**
* Find zero or one Block that matches the filter.
* @param {BlockFindUniqueArgs} args - Arguments to find a Block
* @example
* // Get one Block
* const block = await prisma.block.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends BlockFindUniqueArgs>(args: Prisma.SelectSubset<T, BlockFindUniqueArgs<ExtArgs>>): Prisma.Prisma__BlockClient<runtime.Types.Result.GetResult<Prisma.$BlockPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Block that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {BlockFindUniqueOrThrowArgs} args - Arguments to find a Block
* @example
* // Get one Block
* const block = await prisma.block.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends BlockFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, BlockFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__BlockClient<runtime.Types.Result.GetResult<Prisma.$BlockPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Block 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 {BlockFindFirstArgs} args - Arguments to find a Block
* @example
* // Get one Block
* const block = await prisma.block.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends BlockFindFirstArgs>(args?: Prisma.SelectSubset<T, BlockFindFirstArgs<ExtArgs>>): Prisma.Prisma__BlockClient<runtime.Types.Result.GetResult<Prisma.$BlockPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Block 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 {BlockFindFirstOrThrowArgs} args - Arguments to find a Block
* @example
* // Get one Block
* const block = await prisma.block.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends BlockFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, BlockFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__BlockClient<runtime.Types.Result.GetResult<Prisma.$BlockPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Blocks 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 {BlockFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Blocks
* const blocks = await prisma.block.findMany()
*
* // Get first 10 Blocks
* const blocks = await prisma.block.findMany({ take: 10 })
*
* // Only select the `id`
* const blockWithIdOnly = await prisma.block.findMany({ select: { id: true } })
*
*/
findMany<T extends BlockFindManyArgs>(args?: Prisma.SelectSubset<T, BlockFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BlockPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Block.
* @param {BlockCreateArgs} args - Arguments to create a Block.
* @example
* // Create one Block
* const Block = await prisma.block.create({
* data: {
* // ... data to create a Block
* }
* })
*
*/
create<T extends BlockCreateArgs>(args: Prisma.SelectSubset<T, BlockCreateArgs<ExtArgs>>): Prisma.Prisma__BlockClient<runtime.Types.Result.GetResult<Prisma.$BlockPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Blocks.
* @param {BlockCreateManyArgs} args - Arguments to create many Blocks.
* @example
* // Create many Blocks
* const block = await prisma.block.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends BlockCreateManyArgs>(args?: Prisma.SelectSubset<T, BlockCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Blocks and returns the data saved in the database.
* @param {BlockCreateManyAndReturnArgs} args - Arguments to create many Blocks.
* @example
* // Create many Blocks
* const block = await prisma.block.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Blocks and only return the `id`
* const blockWithIdOnly = await prisma.block.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 BlockCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, BlockCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BlockPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Block.
* @param {BlockDeleteArgs} args - Arguments to delete one Block.
* @example
* // Delete one Block
* const Block = await prisma.block.delete({
* where: {
* // ... filter to delete one Block
* }
* })
*
*/
delete<T extends BlockDeleteArgs>(args: Prisma.SelectSubset<T, BlockDeleteArgs<ExtArgs>>): Prisma.Prisma__BlockClient<runtime.Types.Result.GetResult<Prisma.$BlockPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Block.
* @param {BlockUpdateArgs} args - Arguments to update one Block.
* @example
* // Update one Block
* const block = await prisma.block.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends BlockUpdateArgs>(args: Prisma.SelectSubset<T, BlockUpdateArgs<ExtArgs>>): Prisma.Prisma__BlockClient<runtime.Types.Result.GetResult<Prisma.$BlockPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Blocks.
* @param {BlockDeleteManyArgs} args - Arguments to filter Blocks to delete.
* @example
* // Delete a few Blocks
* const { count } = await prisma.block.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends BlockDeleteManyArgs>(args?: Prisma.SelectSubset<T, BlockDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Blocks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {BlockUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Blocks
* const block = await prisma.block.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends BlockUpdateManyArgs>(args: Prisma.SelectSubset<T, BlockUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Blocks and returns the data updated in the database.
* @param {BlockUpdateManyAndReturnArgs} args - Arguments to update many Blocks.
* @example
* // Update many Blocks
* const block = await prisma.block.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Blocks and only return the `id`
* const blockWithIdOnly = await prisma.block.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 BlockUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, BlockUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BlockPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Block.
* @param {BlockUpsertArgs} args - Arguments to update or create a Block.
* @example
* // Update or create a Block
* const block = await prisma.block.upsert({
* create: {
* // ... data to create a Block
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Block we want to update
* }
* })
*/
upsert<T extends BlockUpsertArgs>(args: Prisma.SelectSubset<T, BlockUpsertArgs<ExtArgs>>): Prisma.Prisma__BlockClient<runtime.Types.Result.GetResult<Prisma.$BlockPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Blocks.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {BlockCountArgs} args - Arguments to filter Blocks to count.
* @example
* // Count the number of Blocks
* const count = await prisma.block.count({
* where: {
* // ... the filter for the Blocks we want to count
* }
* })
**/
count<T extends BlockCountArgs>(
args?: Prisma.Subset<T, BlockCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], BlockCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Block.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {BlockAggregateArgs} 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 BlockAggregateArgs>(args: Prisma.Subset<T, BlockAggregateArgs>): Prisma.PrismaPromise<GetBlockAggregateType<T>>
/**
* Group by Block.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {BlockGroupByArgs} 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 BlockGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: BlockGroupByArgs['orderBy'] }
: { orderBy?: BlockGroupByArgs['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, BlockGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetBlockGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Block model
*/
readonly fields: BlockFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Block.
* 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__BlockClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
schedule<T extends Prisma.ScheduleDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.ScheduleDefaultArgs<ExtArgs>>): Prisma.Prisma__ScheduleClient<runtime.Types.Result.GetResult<Prisma.$SchedulePayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions> | Null, Null, ExtArgs, GlobalOmitOptions>
proclamations<T extends Prisma.Block$proclamationsArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Block$proclamationsArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$BlockProclamationsPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
/**
* Attaches callbacks for the resolution and/or rejection of the Promise.
* @param onfulfilled The callback to execute when the Promise is resolved.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of which ever callback is executed.
*/
then<TResult1 = T, TResult2 = never>(onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null): runtime.Types.Utils.JsPromise<TResult1 | TResult2>
/**
* Attaches a callback for only the rejection of the Promise.
* @param onrejected The callback to execute when the Promise is rejected.
* @returns A Promise for the completion of the callback.
*/
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | undefined | null): runtime.Types.Utils.JsPromise<T | TResult>
/**
* Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The
* resolved value cannot be modified from the callback.
* @param onfinally The callback to execute when the Promise is settled (fulfilled or rejected).
* @returns A Promise for the completion of the callback.
*/
finally(onfinally?: (() => void) | undefined | null): runtime.Types.Utils.JsPromise<T>
}
/**
* Fields of the Block model
*/
export interface BlockFieldRefs {
readonly id: Prisma.FieldRef<"Block", 'String'>
readonly scheduleId: Prisma.FieldRef<"Block", 'String'>
readonly startMinutes: Prisma.FieldRef<"Block", 'Int'>
readonly endMinutes: Prisma.FieldRef<"Block", 'Int'>
readonly dynamicAudio: Prisma.FieldRef<"Block", 'Boolean'>
readonly createdAt: Prisma.FieldRef<"Block", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"Block", 'DateTime'>
}
// Custom InputTypes
/**
* Block findUnique
*/
export type BlockFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Block
*/
select?: Prisma.BlockSelect<ExtArgs> | null
/**
* Omit specific fields from the Block
*/
omit?: Prisma.BlockOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlockInclude<ExtArgs> | null
/**
* Filter, which Block to fetch.
*/
where: Prisma.BlockWhereUniqueInput
}
/**
* Block findUniqueOrThrow
*/
export type BlockFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Block
*/
select?: Prisma.BlockSelect<ExtArgs> | null
/**
* Omit specific fields from the Block
*/
omit?: Prisma.BlockOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlockInclude<ExtArgs> | null
/**
* Filter, which Block to fetch.
*/
where: Prisma.BlockWhereUniqueInput
}
/**
* Block findFirst
*/
export type BlockFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Block
*/
select?: Prisma.BlockSelect<ExtArgs> | null
/**
* Omit specific fields from the Block
*/
omit?: Prisma.BlockOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlockInclude<ExtArgs> | null
/**
* Filter, which Block to fetch.
*/
where?: Prisma.BlockWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Blocks to fetch.
*/
orderBy?: Prisma.BlockOrderByWithRelationInput | Prisma.BlockOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Blocks.
*/
cursor?: Prisma.BlockWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Blocks 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` Blocks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Blocks.
*/
distinct?: Prisma.BlockScalarFieldEnum | Prisma.BlockScalarFieldEnum[]
}
/**
* Block findFirstOrThrow
*/
export type BlockFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Block
*/
select?: Prisma.BlockSelect<ExtArgs> | null
/**
* Omit specific fields from the Block
*/
omit?: Prisma.BlockOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlockInclude<ExtArgs> | null
/**
* Filter, which Block to fetch.
*/
where?: Prisma.BlockWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Blocks to fetch.
*/
orderBy?: Prisma.BlockOrderByWithRelationInput | Prisma.BlockOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Blocks.
*/
cursor?: Prisma.BlockWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Blocks 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` Blocks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Blocks.
*/
distinct?: Prisma.BlockScalarFieldEnum | Prisma.BlockScalarFieldEnum[]
}
/**
* Block findMany
*/
export type BlockFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Block
*/
select?: Prisma.BlockSelect<ExtArgs> | null
/**
* Omit specific fields from the Block
*/
omit?: Prisma.BlockOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlockInclude<ExtArgs> | null
/**
* Filter, which Blocks to fetch.
*/
where?: Prisma.BlockWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Blocks to fetch.
*/
orderBy?: Prisma.BlockOrderByWithRelationInput | Prisma.BlockOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Blocks.
*/
cursor?: Prisma.BlockWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Blocks 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` Blocks.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Blocks.
*/
distinct?: Prisma.BlockScalarFieldEnum | Prisma.BlockScalarFieldEnum[]
}
/**
* Block create
*/
export type BlockCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Block
*/
select?: Prisma.BlockSelect<ExtArgs> | null
/**
* Omit specific fields from the Block
*/
omit?: Prisma.BlockOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlockInclude<ExtArgs> | null
/**
* The data needed to create a Block.
*/
data: Prisma.XOR<Prisma.BlockCreateInput, Prisma.BlockUncheckedCreateInput>
}
/**
* Block createMany
*/
export type BlockCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Blocks.
*/
data: Prisma.BlockCreateManyInput | Prisma.BlockCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Block createManyAndReturn
*/
export type BlockCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Block
*/
select?: Prisma.BlockSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Block
*/
omit?: Prisma.BlockOmit<ExtArgs> | null
/**
* The data used to create many Blocks.
*/
data: Prisma.BlockCreateManyInput | Prisma.BlockCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlockIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Block update
*/
export type BlockUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Block
*/
select?: Prisma.BlockSelect<ExtArgs> | null
/**
* Omit specific fields from the Block
*/
omit?: Prisma.BlockOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlockInclude<ExtArgs> | null
/**
* The data needed to update a Block.
*/
data: Prisma.XOR<Prisma.BlockUpdateInput, Prisma.BlockUncheckedUpdateInput>
/**
* Choose, which Block to update.
*/
where: Prisma.BlockWhereUniqueInput
}
/**
* Block updateMany
*/
export type BlockUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Blocks.
*/
data: Prisma.XOR<Prisma.BlockUpdateManyMutationInput, Prisma.BlockUncheckedUpdateManyInput>
/**
* Filter which Blocks to update
*/
where?: Prisma.BlockWhereInput
/**
* Limit how many Blocks to update.
*/
limit?: number
}
/**
* Block updateManyAndReturn
*/
export type BlockUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Block
*/
select?: Prisma.BlockSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Block
*/
omit?: Prisma.BlockOmit<ExtArgs> | null
/**
* The data used to update Blocks.
*/
data: Prisma.XOR<Prisma.BlockUpdateManyMutationInput, Prisma.BlockUncheckedUpdateManyInput>
/**
* Filter which Blocks to update
*/
where?: Prisma.BlockWhereInput
/**
* Limit how many Blocks to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlockIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Block upsert
*/
export type BlockUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Block
*/
select?: Prisma.BlockSelect<ExtArgs> | null
/**
* Omit specific fields from the Block
*/
omit?: Prisma.BlockOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlockInclude<ExtArgs> | null
/**
* The filter to search for the Block to update in case it exists.
*/
where: Prisma.BlockWhereUniqueInput
/**
* In case the Block found by the `where` argument doesn't exist, create a new Block with this data.
*/
create: Prisma.XOR<Prisma.BlockCreateInput, Prisma.BlockUncheckedCreateInput>
/**
* In case the Block was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.BlockUpdateInput, Prisma.BlockUncheckedUpdateInput>
}
/**
* Block delete
*/
export type BlockDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Block
*/
select?: Prisma.BlockSelect<ExtArgs> | null
/**
* Omit specific fields from the Block
*/
omit?: Prisma.BlockOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlockInclude<ExtArgs> | null
/**
* Filter which Block to delete.
*/
where: Prisma.BlockWhereUniqueInput
}
/**
* Block deleteMany
*/
export type BlockDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Blocks to delete
*/
where?: Prisma.BlockWhereInput
/**
* Limit how many Blocks to delete.
*/
limit?: number
}
/**
* Block.proclamations
*/
export type Block$proclamationsArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the BlockProclamations
*/
select?: Prisma.BlockProclamationsSelect<ExtArgs> | null
/**
* Omit specific fields from the BlockProclamations
*/
omit?: Prisma.BlockProclamationsOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlockProclamationsInclude<ExtArgs> | null
where?: Prisma.BlockProclamationsWhereInput
orderBy?: Prisma.BlockProclamationsOrderByWithRelationInput | Prisma.BlockProclamationsOrderByWithRelationInput[]
cursor?: Prisma.BlockProclamationsWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.BlockProclamationsScalarFieldEnum | Prisma.BlockProclamationsScalarFieldEnum[]
}
/**
* Block without action
*/
export type BlockDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Block
*/
select?: Prisma.BlockSelect<ExtArgs> | null
/**
* Omit specific fields from the Block
*/
omit?: Prisma.BlockOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.BlockInclude<ExtArgs> | null
}