1431 lines
54 KiB
TypeScript
1431 lines
54 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 `PropertyOption` 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 PropertyOption
|
|
*
|
|
*/
|
|
export type PropertyOptionModel = runtime.Types.Result.DefaultSelection<Prisma.$PropertyOptionPayload>
|
|
|
|
export type AggregatePropertyOption = {
|
|
_count: PropertyOptionCountAggregateOutputType | null
|
|
_avg: PropertyOptionAvgAggregateOutputType | null
|
|
_sum: PropertyOptionSumAggregateOutputType | null
|
|
_min: PropertyOptionMinAggregateOutputType | null
|
|
_max: PropertyOptionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type PropertyOptionAvgAggregateOutputType = {
|
|
order: number | null
|
|
color: number | null
|
|
}
|
|
|
|
export type PropertyOptionSumAggregateOutputType = {
|
|
order: number | null
|
|
color: number | null
|
|
}
|
|
|
|
export type PropertyOptionMinAggregateOutputType = {
|
|
id: string | null
|
|
propertyId: string | null
|
|
order: number | null
|
|
value: string | null
|
|
name: string | null
|
|
color: number | null
|
|
}
|
|
|
|
export type PropertyOptionMaxAggregateOutputType = {
|
|
id: string | null
|
|
propertyId: string | null
|
|
order: number | null
|
|
value: string | null
|
|
name: string | null
|
|
color: number | null
|
|
}
|
|
|
|
export type PropertyOptionCountAggregateOutputType = {
|
|
id: number
|
|
propertyId: number
|
|
order: number
|
|
value: number
|
|
name: number
|
|
color: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type PropertyOptionAvgAggregateInputType = {
|
|
order?: true
|
|
color?: true
|
|
}
|
|
|
|
export type PropertyOptionSumAggregateInputType = {
|
|
order?: true
|
|
color?: true
|
|
}
|
|
|
|
export type PropertyOptionMinAggregateInputType = {
|
|
id?: true
|
|
propertyId?: true
|
|
order?: true
|
|
value?: true
|
|
name?: true
|
|
color?: true
|
|
}
|
|
|
|
export type PropertyOptionMaxAggregateInputType = {
|
|
id?: true
|
|
propertyId?: true
|
|
order?: true
|
|
value?: true
|
|
name?: true
|
|
color?: true
|
|
}
|
|
|
|
export type PropertyOptionCountAggregateInputType = {
|
|
id?: true
|
|
propertyId?: true
|
|
order?: true
|
|
value?: true
|
|
name?: true
|
|
color?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type PropertyOptionAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which PropertyOption to aggregate.
|
|
*/
|
|
where?: Prisma.PropertyOptionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PropertyOptions to fetch.
|
|
*/
|
|
orderBy?: Prisma.PropertyOptionOrderByWithRelationInput | Prisma.PropertyOptionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.PropertyOptionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PropertyOptions 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` PropertyOptions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned PropertyOptions
|
|
**/
|
|
_count?: true | PropertyOptionCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: PropertyOptionAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: PropertyOptionSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: PropertyOptionMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: PropertyOptionMaxAggregateInputType
|
|
}
|
|
|
|
export type GetPropertyOptionAggregateType<T extends PropertyOptionAggregateArgs> = {
|
|
[P in keyof T & keyof AggregatePropertyOption]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregatePropertyOption[P]>
|
|
: Prisma.GetScalarType<T[P], AggregatePropertyOption[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type PropertyOptionGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.PropertyOptionWhereInput
|
|
orderBy?: Prisma.PropertyOptionOrderByWithAggregationInput | Prisma.PropertyOptionOrderByWithAggregationInput[]
|
|
by: Prisma.PropertyOptionScalarFieldEnum[] | Prisma.PropertyOptionScalarFieldEnum
|
|
having?: Prisma.PropertyOptionScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: PropertyOptionCountAggregateInputType | true
|
|
_avg?: PropertyOptionAvgAggregateInputType
|
|
_sum?: PropertyOptionSumAggregateInputType
|
|
_min?: PropertyOptionMinAggregateInputType
|
|
_max?: PropertyOptionMaxAggregateInputType
|
|
}
|
|
|
|
export type PropertyOptionGroupByOutputType = {
|
|
id: string
|
|
propertyId: string
|
|
order: number
|
|
value: string
|
|
name: string | null
|
|
color: number
|
|
_count: PropertyOptionCountAggregateOutputType | null
|
|
_avg: PropertyOptionAvgAggregateOutputType | null
|
|
_sum: PropertyOptionSumAggregateOutputType | null
|
|
_min: PropertyOptionMinAggregateOutputType | null
|
|
_max: PropertyOptionMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetPropertyOptionGroupByPayload<T extends PropertyOptionGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<PropertyOptionGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof PropertyOptionGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], PropertyOptionGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], PropertyOptionGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type PropertyOptionWhereInput = {
|
|
AND?: Prisma.PropertyOptionWhereInput | Prisma.PropertyOptionWhereInput[]
|
|
OR?: Prisma.PropertyOptionWhereInput[]
|
|
NOT?: Prisma.PropertyOptionWhereInput | Prisma.PropertyOptionWhereInput[]
|
|
id?: Prisma.StringFilter<"PropertyOption"> | string
|
|
propertyId?: Prisma.StringFilter<"PropertyOption"> | string
|
|
order?: Prisma.IntFilter<"PropertyOption"> | number
|
|
value?: Prisma.StringFilter<"PropertyOption"> | string
|
|
name?: Prisma.StringNullableFilter<"PropertyOption"> | string | null
|
|
color?: Prisma.IntFilter<"PropertyOption"> | number
|
|
property?: Prisma.XOR<Prisma.PropertyScalarRelationFilter, Prisma.PropertyWhereInput>
|
|
}
|
|
|
|
export type PropertyOptionOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
propertyId?: Prisma.SortOrder
|
|
order?: Prisma.SortOrder
|
|
value?: Prisma.SortOrder
|
|
name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
color?: Prisma.SortOrder
|
|
property?: Prisma.PropertyOrderByWithRelationInput
|
|
}
|
|
|
|
export type PropertyOptionWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.PropertyOptionWhereInput | Prisma.PropertyOptionWhereInput[]
|
|
OR?: Prisma.PropertyOptionWhereInput[]
|
|
NOT?: Prisma.PropertyOptionWhereInput | Prisma.PropertyOptionWhereInput[]
|
|
propertyId?: Prisma.StringFilter<"PropertyOption"> | string
|
|
order?: Prisma.IntFilter<"PropertyOption"> | number
|
|
value?: Prisma.StringFilter<"PropertyOption"> | string
|
|
name?: Prisma.StringNullableFilter<"PropertyOption"> | string | null
|
|
color?: Prisma.IntFilter<"PropertyOption"> | number
|
|
property?: Prisma.XOR<Prisma.PropertyScalarRelationFilter, Prisma.PropertyWhereInput>
|
|
}, "id">
|
|
|
|
export type PropertyOptionOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
propertyId?: Prisma.SortOrder
|
|
order?: Prisma.SortOrder
|
|
value?: Prisma.SortOrder
|
|
name?: Prisma.SortOrderInput | Prisma.SortOrder
|
|
color?: Prisma.SortOrder
|
|
_count?: Prisma.PropertyOptionCountOrderByAggregateInput
|
|
_avg?: Prisma.PropertyOptionAvgOrderByAggregateInput
|
|
_max?: Prisma.PropertyOptionMaxOrderByAggregateInput
|
|
_min?: Prisma.PropertyOptionMinOrderByAggregateInput
|
|
_sum?: Prisma.PropertyOptionSumOrderByAggregateInput
|
|
}
|
|
|
|
export type PropertyOptionScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.PropertyOptionScalarWhereWithAggregatesInput | Prisma.PropertyOptionScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.PropertyOptionScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.PropertyOptionScalarWhereWithAggregatesInput | Prisma.PropertyOptionScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"PropertyOption"> | string
|
|
propertyId?: Prisma.StringWithAggregatesFilter<"PropertyOption"> | string
|
|
order?: Prisma.IntWithAggregatesFilter<"PropertyOption"> | number
|
|
value?: Prisma.StringWithAggregatesFilter<"PropertyOption"> | string
|
|
name?: Prisma.StringNullableWithAggregatesFilter<"PropertyOption"> | string | null
|
|
color?: Prisma.IntWithAggregatesFilter<"PropertyOption"> | number
|
|
}
|
|
|
|
export type PropertyOptionCreateInput = {
|
|
id?: string
|
|
order: number
|
|
value: string
|
|
name?: string | null
|
|
color?: number
|
|
property: Prisma.PropertyCreateNestedOneWithoutOptionsInput
|
|
}
|
|
|
|
export type PropertyOptionUncheckedCreateInput = {
|
|
id?: string
|
|
propertyId: string
|
|
order: number
|
|
value: string
|
|
name?: string | null
|
|
color?: number
|
|
}
|
|
|
|
export type PropertyOptionUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
order?: Prisma.IntFieldUpdateOperationsInput | number
|
|
value?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: Prisma.IntFieldUpdateOperationsInput | number
|
|
property?: Prisma.PropertyUpdateOneRequiredWithoutOptionsNestedInput
|
|
}
|
|
|
|
export type PropertyOptionUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
propertyId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
order?: Prisma.IntFieldUpdateOperationsInput | number
|
|
value?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type PropertyOptionCreateManyInput = {
|
|
id?: string
|
|
propertyId: string
|
|
order: number
|
|
value: string
|
|
name?: string | null
|
|
color?: number
|
|
}
|
|
|
|
export type PropertyOptionUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
order?: Prisma.IntFieldUpdateOperationsInput | number
|
|
value?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type PropertyOptionUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
propertyId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
order?: Prisma.IntFieldUpdateOperationsInput | number
|
|
value?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type PropertyOptionListRelationFilter = {
|
|
every?: Prisma.PropertyOptionWhereInput
|
|
some?: Prisma.PropertyOptionWhereInput
|
|
none?: Prisma.PropertyOptionWhereInput
|
|
}
|
|
|
|
export type PropertyOptionOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PropertyOptionCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
propertyId?: Prisma.SortOrder
|
|
order?: Prisma.SortOrder
|
|
value?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
color?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PropertyOptionAvgOrderByAggregateInput = {
|
|
order?: Prisma.SortOrder
|
|
color?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PropertyOptionMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
propertyId?: Prisma.SortOrder
|
|
order?: Prisma.SortOrder
|
|
value?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
color?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PropertyOptionMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
propertyId?: Prisma.SortOrder
|
|
order?: Prisma.SortOrder
|
|
value?: Prisma.SortOrder
|
|
name?: Prisma.SortOrder
|
|
color?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PropertyOptionSumOrderByAggregateInput = {
|
|
order?: Prisma.SortOrder
|
|
color?: Prisma.SortOrder
|
|
}
|
|
|
|
export type PropertyOptionCreateNestedManyWithoutPropertyInput = {
|
|
create?: Prisma.XOR<Prisma.PropertyOptionCreateWithoutPropertyInput, Prisma.PropertyOptionUncheckedCreateWithoutPropertyInput> | Prisma.PropertyOptionCreateWithoutPropertyInput[] | Prisma.PropertyOptionUncheckedCreateWithoutPropertyInput[]
|
|
connectOrCreate?: Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput | Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput[]
|
|
createMany?: Prisma.PropertyOptionCreateManyPropertyInputEnvelope
|
|
connect?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[]
|
|
}
|
|
|
|
export type PropertyOptionUncheckedCreateNestedManyWithoutPropertyInput = {
|
|
create?: Prisma.XOR<Prisma.PropertyOptionCreateWithoutPropertyInput, Prisma.PropertyOptionUncheckedCreateWithoutPropertyInput> | Prisma.PropertyOptionCreateWithoutPropertyInput[] | Prisma.PropertyOptionUncheckedCreateWithoutPropertyInput[]
|
|
connectOrCreate?: Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput | Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput[]
|
|
createMany?: Prisma.PropertyOptionCreateManyPropertyInputEnvelope
|
|
connect?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[]
|
|
}
|
|
|
|
export type PropertyOptionUpdateManyWithoutPropertyNestedInput = {
|
|
create?: Prisma.XOR<Prisma.PropertyOptionCreateWithoutPropertyInput, Prisma.PropertyOptionUncheckedCreateWithoutPropertyInput> | Prisma.PropertyOptionCreateWithoutPropertyInput[] | Prisma.PropertyOptionUncheckedCreateWithoutPropertyInput[]
|
|
connectOrCreate?: Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput | Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput[]
|
|
upsert?: Prisma.PropertyOptionUpsertWithWhereUniqueWithoutPropertyInput | Prisma.PropertyOptionUpsertWithWhereUniqueWithoutPropertyInput[]
|
|
createMany?: Prisma.PropertyOptionCreateManyPropertyInputEnvelope
|
|
set?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[]
|
|
disconnect?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[]
|
|
delete?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[]
|
|
connect?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[]
|
|
update?: Prisma.PropertyOptionUpdateWithWhereUniqueWithoutPropertyInput | Prisma.PropertyOptionUpdateWithWhereUniqueWithoutPropertyInput[]
|
|
updateMany?: Prisma.PropertyOptionUpdateManyWithWhereWithoutPropertyInput | Prisma.PropertyOptionUpdateManyWithWhereWithoutPropertyInput[]
|
|
deleteMany?: Prisma.PropertyOptionScalarWhereInput | Prisma.PropertyOptionScalarWhereInput[]
|
|
}
|
|
|
|
export type PropertyOptionUncheckedUpdateManyWithoutPropertyNestedInput = {
|
|
create?: Prisma.XOR<Prisma.PropertyOptionCreateWithoutPropertyInput, Prisma.PropertyOptionUncheckedCreateWithoutPropertyInput> | Prisma.PropertyOptionCreateWithoutPropertyInput[] | Prisma.PropertyOptionUncheckedCreateWithoutPropertyInput[]
|
|
connectOrCreate?: Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput | Prisma.PropertyOptionCreateOrConnectWithoutPropertyInput[]
|
|
upsert?: Prisma.PropertyOptionUpsertWithWhereUniqueWithoutPropertyInput | Prisma.PropertyOptionUpsertWithWhereUniqueWithoutPropertyInput[]
|
|
createMany?: Prisma.PropertyOptionCreateManyPropertyInputEnvelope
|
|
set?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[]
|
|
disconnect?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[]
|
|
delete?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[]
|
|
connect?: Prisma.PropertyOptionWhereUniqueInput | Prisma.PropertyOptionWhereUniqueInput[]
|
|
update?: Prisma.PropertyOptionUpdateWithWhereUniqueWithoutPropertyInput | Prisma.PropertyOptionUpdateWithWhereUniqueWithoutPropertyInput[]
|
|
updateMany?: Prisma.PropertyOptionUpdateManyWithWhereWithoutPropertyInput | Prisma.PropertyOptionUpdateManyWithWhereWithoutPropertyInput[]
|
|
deleteMany?: Prisma.PropertyOptionScalarWhereInput | Prisma.PropertyOptionScalarWhereInput[]
|
|
}
|
|
|
|
export type PropertyOptionCreateWithoutPropertyInput = {
|
|
id?: string
|
|
order: number
|
|
value: string
|
|
name?: string | null
|
|
color?: number
|
|
}
|
|
|
|
export type PropertyOptionUncheckedCreateWithoutPropertyInput = {
|
|
id?: string
|
|
order: number
|
|
value: string
|
|
name?: string | null
|
|
color?: number
|
|
}
|
|
|
|
export type PropertyOptionCreateOrConnectWithoutPropertyInput = {
|
|
where: Prisma.PropertyOptionWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.PropertyOptionCreateWithoutPropertyInput, Prisma.PropertyOptionUncheckedCreateWithoutPropertyInput>
|
|
}
|
|
|
|
export type PropertyOptionCreateManyPropertyInputEnvelope = {
|
|
data: Prisma.PropertyOptionCreateManyPropertyInput | Prisma.PropertyOptionCreateManyPropertyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type PropertyOptionUpsertWithWhereUniqueWithoutPropertyInput = {
|
|
where: Prisma.PropertyOptionWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.PropertyOptionUpdateWithoutPropertyInput, Prisma.PropertyOptionUncheckedUpdateWithoutPropertyInput>
|
|
create: Prisma.XOR<Prisma.PropertyOptionCreateWithoutPropertyInput, Prisma.PropertyOptionUncheckedCreateWithoutPropertyInput>
|
|
}
|
|
|
|
export type PropertyOptionUpdateWithWhereUniqueWithoutPropertyInput = {
|
|
where: Prisma.PropertyOptionWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.PropertyOptionUpdateWithoutPropertyInput, Prisma.PropertyOptionUncheckedUpdateWithoutPropertyInput>
|
|
}
|
|
|
|
export type PropertyOptionUpdateManyWithWhereWithoutPropertyInput = {
|
|
where: Prisma.PropertyOptionScalarWhereInput
|
|
data: Prisma.XOR<Prisma.PropertyOptionUpdateManyMutationInput, Prisma.PropertyOptionUncheckedUpdateManyWithoutPropertyInput>
|
|
}
|
|
|
|
export type PropertyOptionScalarWhereInput = {
|
|
AND?: Prisma.PropertyOptionScalarWhereInput | Prisma.PropertyOptionScalarWhereInput[]
|
|
OR?: Prisma.PropertyOptionScalarWhereInput[]
|
|
NOT?: Prisma.PropertyOptionScalarWhereInput | Prisma.PropertyOptionScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"PropertyOption"> | string
|
|
propertyId?: Prisma.StringFilter<"PropertyOption"> | string
|
|
order?: Prisma.IntFilter<"PropertyOption"> | number
|
|
value?: Prisma.StringFilter<"PropertyOption"> | string
|
|
name?: Prisma.StringNullableFilter<"PropertyOption"> | string | null
|
|
color?: Prisma.IntFilter<"PropertyOption"> | number
|
|
}
|
|
|
|
export type PropertyOptionCreateManyPropertyInput = {
|
|
id?: string
|
|
order: number
|
|
value: string
|
|
name?: string | null
|
|
color?: number
|
|
}
|
|
|
|
export type PropertyOptionUpdateWithoutPropertyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
order?: Prisma.IntFieldUpdateOperationsInput | number
|
|
value?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type PropertyOptionUncheckedUpdateWithoutPropertyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
order?: Prisma.IntFieldUpdateOperationsInput | number
|
|
value?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
export type PropertyOptionUncheckedUpdateManyWithoutPropertyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
order?: Prisma.IntFieldUpdateOperationsInput | number
|
|
value?: Prisma.StringFieldUpdateOperationsInput | string
|
|
name?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
|
|
color?: Prisma.IntFieldUpdateOperationsInput | number
|
|
}
|
|
|
|
|
|
|
|
export type PropertyOptionSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
propertyId?: boolean
|
|
order?: boolean
|
|
value?: boolean
|
|
name?: boolean
|
|
color?: boolean
|
|
property?: boolean | Prisma.PropertyDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["propertyOption"]>
|
|
|
|
export type PropertyOptionSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
propertyId?: boolean
|
|
order?: boolean
|
|
value?: boolean
|
|
name?: boolean
|
|
color?: boolean
|
|
property?: boolean | Prisma.PropertyDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["propertyOption"]>
|
|
|
|
export type PropertyOptionSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
propertyId?: boolean
|
|
order?: boolean
|
|
value?: boolean
|
|
name?: boolean
|
|
color?: boolean
|
|
property?: boolean | Prisma.PropertyDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["propertyOption"]>
|
|
|
|
export type PropertyOptionSelectScalar = {
|
|
id?: boolean
|
|
propertyId?: boolean
|
|
order?: boolean
|
|
value?: boolean
|
|
name?: boolean
|
|
color?: boolean
|
|
}
|
|
|
|
export type PropertyOptionOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "propertyId" | "order" | "value" | "name" | "color", ExtArgs["result"]["propertyOption"]>
|
|
export type PropertyOptionInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
property?: boolean | Prisma.PropertyDefaultArgs<ExtArgs>
|
|
}
|
|
export type PropertyOptionIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
property?: boolean | Prisma.PropertyDefaultArgs<ExtArgs>
|
|
}
|
|
export type PropertyOptionIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
property?: boolean | Prisma.PropertyDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $PropertyOptionPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "PropertyOption"
|
|
objects: {
|
|
property: Prisma.$PropertyPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
propertyId: string
|
|
order: number
|
|
value: string
|
|
name: string | null
|
|
color: number
|
|
}, ExtArgs["result"]["propertyOption"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type PropertyOptionGetPayload<S extends boolean | null | undefined | PropertyOptionDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PropertyOptionPayload, S>
|
|
|
|
export type PropertyOptionCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<PropertyOptionFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: PropertyOptionCountAggregateInputType | true
|
|
}
|
|
|
|
export interface PropertyOptionDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PropertyOption'], meta: { name: 'PropertyOption' } }
|
|
/**
|
|
* Find zero or one PropertyOption that matches the filter.
|
|
* @param {PropertyOptionFindUniqueArgs} args - Arguments to find a PropertyOption
|
|
* @example
|
|
* // Get one PropertyOption
|
|
* const propertyOption = await prisma.propertyOption.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends PropertyOptionFindUniqueArgs>(args: Prisma.SelectSubset<T, PropertyOptionFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PropertyOptionClient<runtime.Types.Result.GetResult<Prisma.$PropertyOptionPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one PropertyOption that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {PropertyOptionFindUniqueOrThrowArgs} args - Arguments to find a PropertyOption
|
|
* @example
|
|
* // Get one PropertyOption
|
|
* const propertyOption = await prisma.propertyOption.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends PropertyOptionFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PropertyOptionFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PropertyOptionClient<runtime.Types.Result.GetResult<Prisma.$PropertyOptionPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first PropertyOption 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 {PropertyOptionFindFirstArgs} args - Arguments to find a PropertyOption
|
|
* @example
|
|
* // Get one PropertyOption
|
|
* const propertyOption = await prisma.propertyOption.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends PropertyOptionFindFirstArgs>(args?: Prisma.SelectSubset<T, PropertyOptionFindFirstArgs<ExtArgs>>): Prisma.Prisma__PropertyOptionClient<runtime.Types.Result.GetResult<Prisma.$PropertyOptionPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first PropertyOption 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 {PropertyOptionFindFirstOrThrowArgs} args - Arguments to find a PropertyOption
|
|
* @example
|
|
* // Get one PropertyOption
|
|
* const propertyOption = await prisma.propertyOption.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends PropertyOptionFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PropertyOptionFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PropertyOptionClient<runtime.Types.Result.GetResult<Prisma.$PropertyOptionPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more PropertyOptions 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 {PropertyOptionFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all PropertyOptions
|
|
* const propertyOptions = await prisma.propertyOption.findMany()
|
|
*
|
|
* // Get first 10 PropertyOptions
|
|
* const propertyOptions = await prisma.propertyOption.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const propertyOptionWithIdOnly = await prisma.propertyOption.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends PropertyOptionFindManyArgs>(args?: Prisma.SelectSubset<T, PropertyOptionFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PropertyOptionPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a PropertyOption.
|
|
* @param {PropertyOptionCreateArgs} args - Arguments to create a PropertyOption.
|
|
* @example
|
|
* // Create one PropertyOption
|
|
* const PropertyOption = await prisma.propertyOption.create({
|
|
* data: {
|
|
* // ... data to create a PropertyOption
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends PropertyOptionCreateArgs>(args: Prisma.SelectSubset<T, PropertyOptionCreateArgs<ExtArgs>>): Prisma.Prisma__PropertyOptionClient<runtime.Types.Result.GetResult<Prisma.$PropertyOptionPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many PropertyOptions.
|
|
* @param {PropertyOptionCreateManyArgs} args - Arguments to create many PropertyOptions.
|
|
* @example
|
|
* // Create many PropertyOptions
|
|
* const propertyOption = await prisma.propertyOption.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends PropertyOptionCreateManyArgs>(args?: Prisma.SelectSubset<T, PropertyOptionCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many PropertyOptions and returns the data saved in the database.
|
|
* @param {PropertyOptionCreateManyAndReturnArgs} args - Arguments to create many PropertyOptions.
|
|
* @example
|
|
* // Create many PropertyOptions
|
|
* const propertyOption = await prisma.propertyOption.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many PropertyOptions and only return the `id`
|
|
* const propertyOptionWithIdOnly = await prisma.propertyOption.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 PropertyOptionCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PropertyOptionCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PropertyOptionPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a PropertyOption.
|
|
* @param {PropertyOptionDeleteArgs} args - Arguments to delete one PropertyOption.
|
|
* @example
|
|
* // Delete one PropertyOption
|
|
* const PropertyOption = await prisma.propertyOption.delete({
|
|
* where: {
|
|
* // ... filter to delete one PropertyOption
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends PropertyOptionDeleteArgs>(args: Prisma.SelectSubset<T, PropertyOptionDeleteArgs<ExtArgs>>): Prisma.Prisma__PropertyOptionClient<runtime.Types.Result.GetResult<Prisma.$PropertyOptionPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one PropertyOption.
|
|
* @param {PropertyOptionUpdateArgs} args - Arguments to update one PropertyOption.
|
|
* @example
|
|
* // Update one PropertyOption
|
|
* const propertyOption = await prisma.propertyOption.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends PropertyOptionUpdateArgs>(args: Prisma.SelectSubset<T, PropertyOptionUpdateArgs<ExtArgs>>): Prisma.Prisma__PropertyOptionClient<runtime.Types.Result.GetResult<Prisma.$PropertyOptionPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more PropertyOptions.
|
|
* @param {PropertyOptionDeleteManyArgs} args - Arguments to filter PropertyOptions to delete.
|
|
* @example
|
|
* // Delete a few PropertyOptions
|
|
* const { count } = await prisma.propertyOption.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends PropertyOptionDeleteManyArgs>(args?: Prisma.SelectSubset<T, PropertyOptionDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more PropertyOptions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PropertyOptionUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many PropertyOptions
|
|
* const propertyOption = await prisma.propertyOption.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends PropertyOptionUpdateManyArgs>(args: Prisma.SelectSubset<T, PropertyOptionUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more PropertyOptions and returns the data updated in the database.
|
|
* @param {PropertyOptionUpdateManyAndReturnArgs} args - Arguments to update many PropertyOptions.
|
|
* @example
|
|
* // Update many PropertyOptions
|
|
* const propertyOption = await prisma.propertyOption.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more PropertyOptions and only return the `id`
|
|
* const propertyOptionWithIdOnly = await prisma.propertyOption.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 PropertyOptionUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PropertyOptionUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PropertyOptionPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one PropertyOption.
|
|
* @param {PropertyOptionUpsertArgs} args - Arguments to update or create a PropertyOption.
|
|
* @example
|
|
* // Update or create a PropertyOption
|
|
* const propertyOption = await prisma.propertyOption.upsert({
|
|
* create: {
|
|
* // ... data to create a PropertyOption
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the PropertyOption we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends PropertyOptionUpsertArgs>(args: Prisma.SelectSubset<T, PropertyOptionUpsertArgs<ExtArgs>>): Prisma.Prisma__PropertyOptionClient<runtime.Types.Result.GetResult<Prisma.$PropertyOptionPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of PropertyOptions.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PropertyOptionCountArgs} args - Arguments to filter PropertyOptions to count.
|
|
* @example
|
|
* // Count the number of PropertyOptions
|
|
* const count = await prisma.propertyOption.count({
|
|
* where: {
|
|
* // ... the filter for the PropertyOptions we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends PropertyOptionCountArgs>(
|
|
args?: Prisma.Subset<T, PropertyOptionCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], PropertyOptionCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a PropertyOption.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PropertyOptionAggregateArgs} 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 PropertyOptionAggregateArgs>(args: Prisma.Subset<T, PropertyOptionAggregateArgs>): Prisma.PrismaPromise<GetPropertyOptionAggregateType<T>>
|
|
|
|
/**
|
|
* Group by PropertyOption.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {PropertyOptionGroupByArgs} 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 PropertyOptionGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: PropertyOptionGroupByArgs['orderBy'] }
|
|
: { orderBy?: PropertyOptionGroupByArgs['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, PropertyOptionGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPropertyOptionGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the PropertyOption model
|
|
*/
|
|
readonly fields: PropertyOptionFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for PropertyOption.
|
|
* 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__PropertyOptionClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
property<T extends Prisma.PropertyDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.PropertyDefaultArgs<ExtArgs>>): Prisma.Prisma__PropertyClient<runtime.Types.Result.GetResult<Prisma.$PropertyPayload<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 PropertyOption model
|
|
*/
|
|
export interface PropertyOptionFieldRefs {
|
|
readonly id: Prisma.FieldRef<"PropertyOption", 'String'>
|
|
readonly propertyId: Prisma.FieldRef<"PropertyOption", 'String'>
|
|
readonly order: Prisma.FieldRef<"PropertyOption", 'Int'>
|
|
readonly value: Prisma.FieldRef<"PropertyOption", 'String'>
|
|
readonly name: Prisma.FieldRef<"PropertyOption", 'String'>
|
|
readonly color: Prisma.FieldRef<"PropertyOption", 'Int'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* PropertyOption findUnique
|
|
*/
|
|
export type PropertyOptionFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PropertyOption
|
|
*/
|
|
select?: Prisma.PropertyOptionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PropertyOption
|
|
*/
|
|
omit?: Prisma.PropertyOptionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PropertyOptionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PropertyOption to fetch.
|
|
*/
|
|
where: Prisma.PropertyOptionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PropertyOption findUniqueOrThrow
|
|
*/
|
|
export type PropertyOptionFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PropertyOption
|
|
*/
|
|
select?: Prisma.PropertyOptionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PropertyOption
|
|
*/
|
|
omit?: Prisma.PropertyOptionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PropertyOptionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PropertyOption to fetch.
|
|
*/
|
|
where: Prisma.PropertyOptionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PropertyOption findFirst
|
|
*/
|
|
export type PropertyOptionFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PropertyOption
|
|
*/
|
|
select?: Prisma.PropertyOptionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PropertyOption
|
|
*/
|
|
omit?: Prisma.PropertyOptionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PropertyOptionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PropertyOption to fetch.
|
|
*/
|
|
where?: Prisma.PropertyOptionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PropertyOptions to fetch.
|
|
*/
|
|
orderBy?: Prisma.PropertyOptionOrderByWithRelationInput | Prisma.PropertyOptionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for PropertyOptions.
|
|
*/
|
|
cursor?: Prisma.PropertyOptionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PropertyOptions 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` PropertyOptions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of PropertyOptions.
|
|
*/
|
|
distinct?: Prisma.PropertyOptionScalarFieldEnum | Prisma.PropertyOptionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PropertyOption findFirstOrThrow
|
|
*/
|
|
export type PropertyOptionFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PropertyOption
|
|
*/
|
|
select?: Prisma.PropertyOptionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PropertyOption
|
|
*/
|
|
omit?: Prisma.PropertyOptionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PropertyOptionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PropertyOption to fetch.
|
|
*/
|
|
where?: Prisma.PropertyOptionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PropertyOptions to fetch.
|
|
*/
|
|
orderBy?: Prisma.PropertyOptionOrderByWithRelationInput | Prisma.PropertyOptionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for PropertyOptions.
|
|
*/
|
|
cursor?: Prisma.PropertyOptionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PropertyOptions 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` PropertyOptions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of PropertyOptions.
|
|
*/
|
|
distinct?: Prisma.PropertyOptionScalarFieldEnum | Prisma.PropertyOptionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PropertyOption findMany
|
|
*/
|
|
export type PropertyOptionFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PropertyOption
|
|
*/
|
|
select?: Prisma.PropertyOptionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PropertyOption
|
|
*/
|
|
omit?: Prisma.PropertyOptionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PropertyOptionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which PropertyOptions to fetch.
|
|
*/
|
|
where?: Prisma.PropertyOptionWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of PropertyOptions to fetch.
|
|
*/
|
|
orderBy?: Prisma.PropertyOptionOrderByWithRelationInput | Prisma.PropertyOptionOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing PropertyOptions.
|
|
*/
|
|
cursor?: Prisma.PropertyOptionWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` PropertyOptions 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` PropertyOptions.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of PropertyOptions.
|
|
*/
|
|
distinct?: Prisma.PropertyOptionScalarFieldEnum | Prisma.PropertyOptionScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* PropertyOption create
|
|
*/
|
|
export type PropertyOptionCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PropertyOption
|
|
*/
|
|
select?: Prisma.PropertyOptionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PropertyOption
|
|
*/
|
|
omit?: Prisma.PropertyOptionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PropertyOptionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a PropertyOption.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PropertyOptionCreateInput, Prisma.PropertyOptionUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* PropertyOption createMany
|
|
*/
|
|
export type PropertyOptionCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many PropertyOptions.
|
|
*/
|
|
data: Prisma.PropertyOptionCreateManyInput | Prisma.PropertyOptionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* PropertyOption createManyAndReturn
|
|
*/
|
|
export type PropertyOptionCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PropertyOption
|
|
*/
|
|
select?: Prisma.PropertyOptionSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PropertyOption
|
|
*/
|
|
omit?: Prisma.PropertyOptionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many PropertyOptions.
|
|
*/
|
|
data: Prisma.PropertyOptionCreateManyInput | Prisma.PropertyOptionCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PropertyOptionIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* PropertyOption update
|
|
*/
|
|
export type PropertyOptionUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PropertyOption
|
|
*/
|
|
select?: Prisma.PropertyOptionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PropertyOption
|
|
*/
|
|
omit?: Prisma.PropertyOptionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PropertyOptionInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a PropertyOption.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PropertyOptionUpdateInput, Prisma.PropertyOptionUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which PropertyOption to update.
|
|
*/
|
|
where: Prisma.PropertyOptionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PropertyOption updateMany
|
|
*/
|
|
export type PropertyOptionUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update PropertyOptions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PropertyOptionUpdateManyMutationInput, Prisma.PropertyOptionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which PropertyOptions to update
|
|
*/
|
|
where?: Prisma.PropertyOptionWhereInput
|
|
/**
|
|
* Limit how many PropertyOptions to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* PropertyOption updateManyAndReturn
|
|
*/
|
|
export type PropertyOptionUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PropertyOption
|
|
*/
|
|
select?: Prisma.PropertyOptionSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PropertyOption
|
|
*/
|
|
omit?: Prisma.PropertyOptionOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update PropertyOptions.
|
|
*/
|
|
data: Prisma.XOR<Prisma.PropertyOptionUpdateManyMutationInput, Prisma.PropertyOptionUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which PropertyOptions to update
|
|
*/
|
|
where?: Prisma.PropertyOptionWhereInput
|
|
/**
|
|
* Limit how many PropertyOptions to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PropertyOptionIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* PropertyOption upsert
|
|
*/
|
|
export type PropertyOptionUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PropertyOption
|
|
*/
|
|
select?: Prisma.PropertyOptionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PropertyOption
|
|
*/
|
|
omit?: Prisma.PropertyOptionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PropertyOptionInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the PropertyOption to update in case it exists.
|
|
*/
|
|
where: Prisma.PropertyOptionWhereUniqueInput
|
|
/**
|
|
* In case the PropertyOption found by the `where` argument doesn't exist, create a new PropertyOption with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.PropertyOptionCreateInput, Prisma.PropertyOptionUncheckedCreateInput>
|
|
/**
|
|
* In case the PropertyOption was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.PropertyOptionUpdateInput, Prisma.PropertyOptionUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* PropertyOption delete
|
|
*/
|
|
export type PropertyOptionDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PropertyOption
|
|
*/
|
|
select?: Prisma.PropertyOptionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PropertyOption
|
|
*/
|
|
omit?: Prisma.PropertyOptionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PropertyOptionInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which PropertyOption to delete.
|
|
*/
|
|
where: Prisma.PropertyOptionWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* PropertyOption deleteMany
|
|
*/
|
|
export type PropertyOptionDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which PropertyOptions to delete
|
|
*/
|
|
where?: Prisma.PropertyOptionWhereInput
|
|
/**
|
|
* Limit how many PropertyOptions to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* PropertyOption without action
|
|
*/
|
|
export type PropertyOptionDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the PropertyOption
|
|
*/
|
|
select?: Prisma.PropertyOptionSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the PropertyOption
|
|
*/
|
|
omit?: Prisma.PropertyOptionOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.PropertyOptionInclude<ExtArgs> | null
|
|
}
|