1390 lines
53 KiB
TypeScript
1390 lines
53 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 `FormulaComponent` 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 FormulaComponent
|
|
*
|
|
*/
|
|
export type FormulaComponentModel = runtime.Types.Result.DefaultSelection<Prisma.$FormulaComponentPayload>
|
|
|
|
export type AggregateFormulaComponent = {
|
|
_count: FormulaComponentCountAggregateOutputType | null
|
|
_avg: FormulaComponentAvgAggregateOutputType | null
|
|
_sum: FormulaComponentSumAggregateOutputType | null
|
|
_min: FormulaComponentMinAggregateOutputType | null
|
|
_max: FormulaComponentMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type FormulaComponentAvgAggregateOutputType = {
|
|
order: number | null
|
|
}
|
|
|
|
export type FormulaComponentSumAggregateOutputType = {
|
|
order: number | null
|
|
}
|
|
|
|
export type FormulaComponentMinAggregateOutputType = {
|
|
id: string | null
|
|
formulaId: string | null
|
|
order: number | null
|
|
type: string | null
|
|
value: string | null
|
|
}
|
|
|
|
export type FormulaComponentMaxAggregateOutputType = {
|
|
id: string | null
|
|
formulaId: string | null
|
|
order: number | null
|
|
type: string | null
|
|
value: string | null
|
|
}
|
|
|
|
export type FormulaComponentCountAggregateOutputType = {
|
|
id: number
|
|
formulaId: number
|
|
order: number
|
|
type: number
|
|
value: number
|
|
_all: number
|
|
}
|
|
|
|
|
|
export type FormulaComponentAvgAggregateInputType = {
|
|
order?: true
|
|
}
|
|
|
|
export type FormulaComponentSumAggregateInputType = {
|
|
order?: true
|
|
}
|
|
|
|
export type FormulaComponentMinAggregateInputType = {
|
|
id?: true
|
|
formulaId?: true
|
|
order?: true
|
|
type?: true
|
|
value?: true
|
|
}
|
|
|
|
export type FormulaComponentMaxAggregateInputType = {
|
|
id?: true
|
|
formulaId?: true
|
|
order?: true
|
|
type?: true
|
|
value?: true
|
|
}
|
|
|
|
export type FormulaComponentCountAggregateInputType = {
|
|
id?: true
|
|
formulaId?: true
|
|
order?: true
|
|
type?: true
|
|
value?: true
|
|
_all?: true
|
|
}
|
|
|
|
export type FormulaComponentAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which FormulaComponent to aggregate.
|
|
*/
|
|
where?: Prisma.FormulaComponentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FormulaComponents to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormulaComponentOrderByWithRelationInput | Prisma.FormulaComponentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the start position
|
|
*/
|
|
cursor?: Prisma.FormulaComponentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FormulaComponents 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` FormulaComponents.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Count returned FormulaComponents
|
|
**/
|
|
_count?: true | FormulaComponentCountAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to average
|
|
**/
|
|
_avg?: FormulaComponentAvgAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to sum
|
|
**/
|
|
_sum?: FormulaComponentSumAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the minimum value
|
|
**/
|
|
_min?: FormulaComponentMinAggregateInputType
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
|
|
*
|
|
* Select which fields to find the maximum value
|
|
**/
|
|
_max?: FormulaComponentMaxAggregateInputType
|
|
}
|
|
|
|
export type GetFormulaComponentAggregateType<T extends FormulaComponentAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateFormulaComponent]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateFormulaComponent[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateFormulaComponent[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type FormulaComponentGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
where?: Prisma.FormulaComponentWhereInput
|
|
orderBy?: Prisma.FormulaComponentOrderByWithAggregationInput | Prisma.FormulaComponentOrderByWithAggregationInput[]
|
|
by: Prisma.FormulaComponentScalarFieldEnum[] | Prisma.FormulaComponentScalarFieldEnum
|
|
having?: Prisma.FormulaComponentScalarWhereWithAggregatesInput
|
|
take?: number
|
|
skip?: number
|
|
_count?: FormulaComponentCountAggregateInputType | true
|
|
_avg?: FormulaComponentAvgAggregateInputType
|
|
_sum?: FormulaComponentSumAggregateInputType
|
|
_min?: FormulaComponentMinAggregateInputType
|
|
_max?: FormulaComponentMaxAggregateInputType
|
|
}
|
|
|
|
export type FormulaComponentGroupByOutputType = {
|
|
id: string
|
|
formulaId: string
|
|
order: number
|
|
type: string
|
|
value: string
|
|
_count: FormulaComponentCountAggregateOutputType | null
|
|
_avg: FormulaComponentAvgAggregateOutputType | null
|
|
_sum: FormulaComponentSumAggregateOutputType | null
|
|
_min: FormulaComponentMinAggregateOutputType | null
|
|
_max: FormulaComponentMaxAggregateOutputType | null
|
|
}
|
|
|
|
export type GetFormulaComponentGroupByPayload<T extends FormulaComponentGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<FormulaComponentGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof FormulaComponentGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], FormulaComponentGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], FormulaComponentGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
export type FormulaComponentWhereInput = {
|
|
AND?: Prisma.FormulaComponentWhereInput | Prisma.FormulaComponentWhereInput[]
|
|
OR?: Prisma.FormulaComponentWhereInput[]
|
|
NOT?: Prisma.FormulaComponentWhereInput | Prisma.FormulaComponentWhereInput[]
|
|
id?: Prisma.StringFilter<"FormulaComponent"> | string
|
|
formulaId?: Prisma.StringFilter<"FormulaComponent"> | string
|
|
order?: Prisma.IntFilter<"FormulaComponent"> | number
|
|
type?: Prisma.StringFilter<"FormulaComponent"> | string
|
|
value?: Prisma.StringFilter<"FormulaComponent"> | string
|
|
formula?: Prisma.XOR<Prisma.FormulaScalarRelationFilter, Prisma.FormulaWhereInput>
|
|
}
|
|
|
|
export type FormulaComponentOrderByWithRelationInput = {
|
|
id?: Prisma.SortOrder
|
|
formulaId?: Prisma.SortOrder
|
|
order?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
value?: Prisma.SortOrder
|
|
formula?: Prisma.FormulaOrderByWithRelationInput
|
|
}
|
|
|
|
export type FormulaComponentWhereUniqueInput = Prisma.AtLeast<{
|
|
id?: string
|
|
AND?: Prisma.FormulaComponentWhereInput | Prisma.FormulaComponentWhereInput[]
|
|
OR?: Prisma.FormulaComponentWhereInput[]
|
|
NOT?: Prisma.FormulaComponentWhereInput | Prisma.FormulaComponentWhereInput[]
|
|
formulaId?: Prisma.StringFilter<"FormulaComponent"> | string
|
|
order?: Prisma.IntFilter<"FormulaComponent"> | number
|
|
type?: Prisma.StringFilter<"FormulaComponent"> | string
|
|
value?: Prisma.StringFilter<"FormulaComponent"> | string
|
|
formula?: Prisma.XOR<Prisma.FormulaScalarRelationFilter, Prisma.FormulaWhereInput>
|
|
}, "id">
|
|
|
|
export type FormulaComponentOrderByWithAggregationInput = {
|
|
id?: Prisma.SortOrder
|
|
formulaId?: Prisma.SortOrder
|
|
order?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
value?: Prisma.SortOrder
|
|
_count?: Prisma.FormulaComponentCountOrderByAggregateInput
|
|
_avg?: Prisma.FormulaComponentAvgOrderByAggregateInput
|
|
_max?: Prisma.FormulaComponentMaxOrderByAggregateInput
|
|
_min?: Prisma.FormulaComponentMinOrderByAggregateInput
|
|
_sum?: Prisma.FormulaComponentSumOrderByAggregateInput
|
|
}
|
|
|
|
export type FormulaComponentScalarWhereWithAggregatesInput = {
|
|
AND?: Prisma.FormulaComponentScalarWhereWithAggregatesInput | Prisma.FormulaComponentScalarWhereWithAggregatesInput[]
|
|
OR?: Prisma.FormulaComponentScalarWhereWithAggregatesInput[]
|
|
NOT?: Prisma.FormulaComponentScalarWhereWithAggregatesInput | Prisma.FormulaComponentScalarWhereWithAggregatesInput[]
|
|
id?: Prisma.StringWithAggregatesFilter<"FormulaComponent"> | string
|
|
formulaId?: Prisma.StringWithAggregatesFilter<"FormulaComponent"> | string
|
|
order?: Prisma.IntWithAggregatesFilter<"FormulaComponent"> | number
|
|
type?: Prisma.StringWithAggregatesFilter<"FormulaComponent"> | string
|
|
value?: Prisma.StringWithAggregatesFilter<"FormulaComponent"> | string
|
|
}
|
|
|
|
export type FormulaComponentCreateInput = {
|
|
id?: string
|
|
order: number
|
|
type: string
|
|
value: string
|
|
formula: Prisma.FormulaCreateNestedOneWithoutComponentsInput
|
|
}
|
|
|
|
export type FormulaComponentUncheckedCreateInput = {
|
|
id?: string
|
|
formulaId: string
|
|
order: number
|
|
type: string
|
|
value: string
|
|
}
|
|
|
|
export type FormulaComponentUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
order?: Prisma.IntFieldUpdateOperationsInput | number
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
value?: Prisma.StringFieldUpdateOperationsInput | string
|
|
formula?: Prisma.FormulaUpdateOneRequiredWithoutComponentsNestedInput
|
|
}
|
|
|
|
export type FormulaComponentUncheckedUpdateInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
formulaId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
order?: Prisma.IntFieldUpdateOperationsInput | number
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
value?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type FormulaComponentCreateManyInput = {
|
|
id?: string
|
|
formulaId: string
|
|
order: number
|
|
type: string
|
|
value: string
|
|
}
|
|
|
|
export type FormulaComponentUpdateManyMutationInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
order?: Prisma.IntFieldUpdateOperationsInput | number
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
value?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type FormulaComponentUncheckedUpdateManyInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
formulaId?: Prisma.StringFieldUpdateOperationsInput | string
|
|
order?: Prisma.IntFieldUpdateOperationsInput | number
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
value?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type FormulaComponentListRelationFilter = {
|
|
every?: Prisma.FormulaComponentWhereInput
|
|
some?: Prisma.FormulaComponentWhereInput
|
|
none?: Prisma.FormulaComponentWhereInput
|
|
}
|
|
|
|
export type FormulaComponentOrderByRelationAggregateInput = {
|
|
_count?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormulaComponentCountOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
formulaId?: Prisma.SortOrder
|
|
order?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
value?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormulaComponentAvgOrderByAggregateInput = {
|
|
order?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormulaComponentMaxOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
formulaId?: Prisma.SortOrder
|
|
order?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
value?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormulaComponentMinOrderByAggregateInput = {
|
|
id?: Prisma.SortOrder
|
|
formulaId?: Prisma.SortOrder
|
|
order?: Prisma.SortOrder
|
|
type?: Prisma.SortOrder
|
|
value?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormulaComponentSumOrderByAggregateInput = {
|
|
order?: Prisma.SortOrder
|
|
}
|
|
|
|
export type FormulaComponentCreateNestedManyWithoutFormulaInput = {
|
|
create?: Prisma.XOR<Prisma.FormulaComponentCreateWithoutFormulaInput, Prisma.FormulaComponentUncheckedCreateWithoutFormulaInput> | Prisma.FormulaComponentCreateWithoutFormulaInput[] | Prisma.FormulaComponentUncheckedCreateWithoutFormulaInput[]
|
|
connectOrCreate?: Prisma.FormulaComponentCreateOrConnectWithoutFormulaInput | Prisma.FormulaComponentCreateOrConnectWithoutFormulaInput[]
|
|
createMany?: Prisma.FormulaComponentCreateManyFormulaInputEnvelope
|
|
connect?: Prisma.FormulaComponentWhereUniqueInput | Prisma.FormulaComponentWhereUniqueInput[]
|
|
}
|
|
|
|
export type FormulaComponentUncheckedCreateNestedManyWithoutFormulaInput = {
|
|
create?: Prisma.XOR<Prisma.FormulaComponentCreateWithoutFormulaInput, Prisma.FormulaComponentUncheckedCreateWithoutFormulaInput> | Prisma.FormulaComponentCreateWithoutFormulaInput[] | Prisma.FormulaComponentUncheckedCreateWithoutFormulaInput[]
|
|
connectOrCreate?: Prisma.FormulaComponentCreateOrConnectWithoutFormulaInput | Prisma.FormulaComponentCreateOrConnectWithoutFormulaInput[]
|
|
createMany?: Prisma.FormulaComponentCreateManyFormulaInputEnvelope
|
|
connect?: Prisma.FormulaComponentWhereUniqueInput | Prisma.FormulaComponentWhereUniqueInput[]
|
|
}
|
|
|
|
export type FormulaComponentUpdateManyWithoutFormulaNestedInput = {
|
|
create?: Prisma.XOR<Prisma.FormulaComponentCreateWithoutFormulaInput, Prisma.FormulaComponentUncheckedCreateWithoutFormulaInput> | Prisma.FormulaComponentCreateWithoutFormulaInput[] | Prisma.FormulaComponentUncheckedCreateWithoutFormulaInput[]
|
|
connectOrCreate?: Prisma.FormulaComponentCreateOrConnectWithoutFormulaInput | Prisma.FormulaComponentCreateOrConnectWithoutFormulaInput[]
|
|
upsert?: Prisma.FormulaComponentUpsertWithWhereUniqueWithoutFormulaInput | Prisma.FormulaComponentUpsertWithWhereUniqueWithoutFormulaInput[]
|
|
createMany?: Prisma.FormulaComponentCreateManyFormulaInputEnvelope
|
|
set?: Prisma.FormulaComponentWhereUniqueInput | Prisma.FormulaComponentWhereUniqueInput[]
|
|
disconnect?: Prisma.FormulaComponentWhereUniqueInput | Prisma.FormulaComponentWhereUniqueInput[]
|
|
delete?: Prisma.FormulaComponentWhereUniqueInput | Prisma.FormulaComponentWhereUniqueInput[]
|
|
connect?: Prisma.FormulaComponentWhereUniqueInput | Prisma.FormulaComponentWhereUniqueInput[]
|
|
update?: Prisma.FormulaComponentUpdateWithWhereUniqueWithoutFormulaInput | Prisma.FormulaComponentUpdateWithWhereUniqueWithoutFormulaInput[]
|
|
updateMany?: Prisma.FormulaComponentUpdateManyWithWhereWithoutFormulaInput | Prisma.FormulaComponentUpdateManyWithWhereWithoutFormulaInput[]
|
|
deleteMany?: Prisma.FormulaComponentScalarWhereInput | Prisma.FormulaComponentScalarWhereInput[]
|
|
}
|
|
|
|
export type FormulaComponentUncheckedUpdateManyWithoutFormulaNestedInput = {
|
|
create?: Prisma.XOR<Prisma.FormulaComponentCreateWithoutFormulaInput, Prisma.FormulaComponentUncheckedCreateWithoutFormulaInput> | Prisma.FormulaComponentCreateWithoutFormulaInput[] | Prisma.FormulaComponentUncheckedCreateWithoutFormulaInput[]
|
|
connectOrCreate?: Prisma.FormulaComponentCreateOrConnectWithoutFormulaInput | Prisma.FormulaComponentCreateOrConnectWithoutFormulaInput[]
|
|
upsert?: Prisma.FormulaComponentUpsertWithWhereUniqueWithoutFormulaInput | Prisma.FormulaComponentUpsertWithWhereUniqueWithoutFormulaInput[]
|
|
createMany?: Prisma.FormulaComponentCreateManyFormulaInputEnvelope
|
|
set?: Prisma.FormulaComponentWhereUniqueInput | Prisma.FormulaComponentWhereUniqueInput[]
|
|
disconnect?: Prisma.FormulaComponentWhereUniqueInput | Prisma.FormulaComponentWhereUniqueInput[]
|
|
delete?: Prisma.FormulaComponentWhereUniqueInput | Prisma.FormulaComponentWhereUniqueInput[]
|
|
connect?: Prisma.FormulaComponentWhereUniqueInput | Prisma.FormulaComponentWhereUniqueInput[]
|
|
update?: Prisma.FormulaComponentUpdateWithWhereUniqueWithoutFormulaInput | Prisma.FormulaComponentUpdateWithWhereUniqueWithoutFormulaInput[]
|
|
updateMany?: Prisma.FormulaComponentUpdateManyWithWhereWithoutFormulaInput | Prisma.FormulaComponentUpdateManyWithWhereWithoutFormulaInput[]
|
|
deleteMany?: Prisma.FormulaComponentScalarWhereInput | Prisma.FormulaComponentScalarWhereInput[]
|
|
}
|
|
|
|
export type FormulaComponentCreateWithoutFormulaInput = {
|
|
id?: string
|
|
order: number
|
|
type: string
|
|
value: string
|
|
}
|
|
|
|
export type FormulaComponentUncheckedCreateWithoutFormulaInput = {
|
|
id?: string
|
|
order: number
|
|
type: string
|
|
value: string
|
|
}
|
|
|
|
export type FormulaComponentCreateOrConnectWithoutFormulaInput = {
|
|
where: Prisma.FormulaComponentWhereUniqueInput
|
|
create: Prisma.XOR<Prisma.FormulaComponentCreateWithoutFormulaInput, Prisma.FormulaComponentUncheckedCreateWithoutFormulaInput>
|
|
}
|
|
|
|
export type FormulaComponentCreateManyFormulaInputEnvelope = {
|
|
data: Prisma.FormulaComponentCreateManyFormulaInput | Prisma.FormulaComponentCreateManyFormulaInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type FormulaComponentUpsertWithWhereUniqueWithoutFormulaInput = {
|
|
where: Prisma.FormulaComponentWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.FormulaComponentUpdateWithoutFormulaInput, Prisma.FormulaComponentUncheckedUpdateWithoutFormulaInput>
|
|
create: Prisma.XOR<Prisma.FormulaComponentCreateWithoutFormulaInput, Prisma.FormulaComponentUncheckedCreateWithoutFormulaInput>
|
|
}
|
|
|
|
export type FormulaComponentUpdateWithWhereUniqueWithoutFormulaInput = {
|
|
where: Prisma.FormulaComponentWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.FormulaComponentUpdateWithoutFormulaInput, Prisma.FormulaComponentUncheckedUpdateWithoutFormulaInput>
|
|
}
|
|
|
|
export type FormulaComponentUpdateManyWithWhereWithoutFormulaInput = {
|
|
where: Prisma.FormulaComponentScalarWhereInput
|
|
data: Prisma.XOR<Prisma.FormulaComponentUpdateManyMutationInput, Prisma.FormulaComponentUncheckedUpdateManyWithoutFormulaInput>
|
|
}
|
|
|
|
export type FormulaComponentScalarWhereInput = {
|
|
AND?: Prisma.FormulaComponentScalarWhereInput | Prisma.FormulaComponentScalarWhereInput[]
|
|
OR?: Prisma.FormulaComponentScalarWhereInput[]
|
|
NOT?: Prisma.FormulaComponentScalarWhereInput | Prisma.FormulaComponentScalarWhereInput[]
|
|
id?: Prisma.StringFilter<"FormulaComponent"> | string
|
|
formulaId?: Prisma.StringFilter<"FormulaComponent"> | string
|
|
order?: Prisma.IntFilter<"FormulaComponent"> | number
|
|
type?: Prisma.StringFilter<"FormulaComponent"> | string
|
|
value?: Prisma.StringFilter<"FormulaComponent"> | string
|
|
}
|
|
|
|
export type FormulaComponentCreateManyFormulaInput = {
|
|
id?: string
|
|
order: number
|
|
type: string
|
|
value: string
|
|
}
|
|
|
|
export type FormulaComponentUpdateWithoutFormulaInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
order?: Prisma.IntFieldUpdateOperationsInput | number
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
value?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type FormulaComponentUncheckedUpdateWithoutFormulaInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
order?: Prisma.IntFieldUpdateOperationsInput | number
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
value?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
export type FormulaComponentUncheckedUpdateManyWithoutFormulaInput = {
|
|
id?: Prisma.StringFieldUpdateOperationsInput | string
|
|
order?: Prisma.IntFieldUpdateOperationsInput | number
|
|
type?: Prisma.StringFieldUpdateOperationsInput | string
|
|
value?: Prisma.StringFieldUpdateOperationsInput | string
|
|
}
|
|
|
|
|
|
|
|
export type FormulaComponentSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
formulaId?: boolean
|
|
order?: boolean
|
|
type?: boolean
|
|
value?: boolean
|
|
formula?: boolean | Prisma.FormulaDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["formulaComponent"]>
|
|
|
|
export type FormulaComponentSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
formulaId?: boolean
|
|
order?: boolean
|
|
type?: boolean
|
|
value?: boolean
|
|
formula?: boolean | Prisma.FormulaDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["formulaComponent"]>
|
|
|
|
export type FormulaComponentSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
formulaId?: boolean
|
|
order?: boolean
|
|
type?: boolean
|
|
value?: boolean
|
|
formula?: boolean | Prisma.FormulaDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["formulaComponent"]>
|
|
|
|
export type FormulaComponentSelectScalar = {
|
|
id?: boolean
|
|
formulaId?: boolean
|
|
order?: boolean
|
|
type?: boolean
|
|
value?: boolean
|
|
}
|
|
|
|
export type FormulaComponentOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "formulaId" | "order" | "type" | "value", ExtArgs["result"]["formulaComponent"]>
|
|
export type FormulaComponentInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
formula?: boolean | Prisma.FormulaDefaultArgs<ExtArgs>
|
|
}
|
|
export type FormulaComponentIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
formula?: boolean | Prisma.FormulaDefaultArgs<ExtArgs>
|
|
}
|
|
export type FormulaComponentIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
formula?: boolean | Prisma.FormulaDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $FormulaComponentPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "FormulaComponent"
|
|
objects: {
|
|
formula: Prisma.$FormulaPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: string
|
|
formulaId: string
|
|
order: number
|
|
type: string
|
|
value: string
|
|
}, ExtArgs["result"]["formulaComponent"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type FormulaComponentGetPayload<S extends boolean | null | undefined | FormulaComponentDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$FormulaComponentPayload, S>
|
|
|
|
export type FormulaComponentCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<FormulaComponentFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: FormulaComponentCountAggregateInputType | true
|
|
}
|
|
|
|
export interface FormulaComponentDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['FormulaComponent'], meta: { name: 'FormulaComponent' } }
|
|
/**
|
|
* Find zero or one FormulaComponent that matches the filter.
|
|
* @param {FormulaComponentFindUniqueArgs} args - Arguments to find a FormulaComponent
|
|
* @example
|
|
* // Get one FormulaComponent
|
|
* const formulaComponent = await prisma.formulaComponent.findUnique({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUnique<T extends FormulaComponentFindUniqueArgs>(args: Prisma.SelectSubset<T, FormulaComponentFindUniqueArgs<ExtArgs>>): Prisma.Prisma__FormulaComponentClient<runtime.Types.Result.GetResult<Prisma.$FormulaComponentPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find one FormulaComponent that matches the filter or throw an error with `error.code='P2025'`
|
|
* if no matches were found.
|
|
* @param {FormulaComponentFindUniqueOrThrowArgs} args - Arguments to find a FormulaComponent
|
|
* @example
|
|
* // Get one FormulaComponent
|
|
* const formulaComponent = await prisma.formulaComponent.findUniqueOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findUniqueOrThrow<T extends FormulaComponentFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, FormulaComponentFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__FormulaComponentClient<runtime.Types.Result.GetResult<Prisma.$FormulaComponentPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first FormulaComponent 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 {FormulaComponentFindFirstArgs} args - Arguments to find a FormulaComponent
|
|
* @example
|
|
* // Get one FormulaComponent
|
|
* const formulaComponent = await prisma.formulaComponent.findFirst({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirst<T extends FormulaComponentFindFirstArgs>(args?: Prisma.SelectSubset<T, FormulaComponentFindFirstArgs<ExtArgs>>): Prisma.Prisma__FormulaComponentClient<runtime.Types.Result.GetResult<Prisma.$FormulaComponentPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find the first FormulaComponent 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 {FormulaComponentFindFirstOrThrowArgs} args - Arguments to find a FormulaComponent
|
|
* @example
|
|
* // Get one FormulaComponent
|
|
* const formulaComponent = await prisma.formulaComponent.findFirstOrThrow({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*/
|
|
findFirstOrThrow<T extends FormulaComponentFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, FormulaComponentFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__FormulaComponentClient<runtime.Types.Result.GetResult<Prisma.$FormulaComponentPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Find zero or more FormulaComponents 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 {FormulaComponentFindManyArgs} args - Arguments to filter and select certain fields only.
|
|
* @example
|
|
* // Get all FormulaComponents
|
|
* const formulaComponents = await prisma.formulaComponent.findMany()
|
|
*
|
|
* // Get first 10 FormulaComponents
|
|
* const formulaComponents = await prisma.formulaComponent.findMany({ take: 10 })
|
|
*
|
|
* // Only select the `id`
|
|
* const formulaComponentWithIdOnly = await prisma.formulaComponent.findMany({ select: { id: true } })
|
|
*
|
|
*/
|
|
findMany<T extends FormulaComponentFindManyArgs>(args?: Prisma.SelectSubset<T, FormulaComponentFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormulaComponentPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create a FormulaComponent.
|
|
* @param {FormulaComponentCreateArgs} args - Arguments to create a FormulaComponent.
|
|
* @example
|
|
* // Create one FormulaComponent
|
|
* const FormulaComponent = await prisma.formulaComponent.create({
|
|
* data: {
|
|
* // ... data to create a FormulaComponent
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
create<T extends FormulaComponentCreateArgs>(args: Prisma.SelectSubset<T, FormulaComponentCreateArgs<ExtArgs>>): Prisma.Prisma__FormulaComponentClient<runtime.Types.Result.GetResult<Prisma.$FormulaComponentPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Create many FormulaComponents.
|
|
* @param {FormulaComponentCreateManyArgs} args - Arguments to create many FormulaComponents.
|
|
* @example
|
|
* // Create many FormulaComponents
|
|
* const formulaComponent = await prisma.formulaComponent.createMany({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
*/
|
|
createMany<T extends FormulaComponentCreateManyArgs>(args?: Prisma.SelectSubset<T, FormulaComponentCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Create many FormulaComponents and returns the data saved in the database.
|
|
* @param {FormulaComponentCreateManyAndReturnArgs} args - Arguments to create many FormulaComponents.
|
|
* @example
|
|
* // Create many FormulaComponents
|
|
* const formulaComponent = await prisma.formulaComponent.createManyAndReturn({
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Create many FormulaComponents and only return the `id`
|
|
* const formulaComponentWithIdOnly = await prisma.formulaComponent.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 FormulaComponentCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, FormulaComponentCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormulaComponentPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Delete a FormulaComponent.
|
|
* @param {FormulaComponentDeleteArgs} args - Arguments to delete one FormulaComponent.
|
|
* @example
|
|
* // Delete one FormulaComponent
|
|
* const FormulaComponent = await prisma.formulaComponent.delete({
|
|
* where: {
|
|
* // ... filter to delete one FormulaComponent
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
delete<T extends FormulaComponentDeleteArgs>(args: Prisma.SelectSubset<T, FormulaComponentDeleteArgs<ExtArgs>>): Prisma.Prisma__FormulaComponentClient<runtime.Types.Result.GetResult<Prisma.$FormulaComponentPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Update one FormulaComponent.
|
|
* @param {FormulaComponentUpdateArgs} args - Arguments to update one FormulaComponent.
|
|
* @example
|
|
* // Update one FormulaComponent
|
|
* const formulaComponent = await prisma.formulaComponent.update({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
update<T extends FormulaComponentUpdateArgs>(args: Prisma.SelectSubset<T, FormulaComponentUpdateArgs<ExtArgs>>): Prisma.Prisma__FormulaComponentClient<runtime.Types.Result.GetResult<Prisma.$FormulaComponentPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
/**
|
|
* Delete zero or more FormulaComponents.
|
|
* @param {FormulaComponentDeleteManyArgs} args - Arguments to filter FormulaComponents to delete.
|
|
* @example
|
|
* // Delete a few FormulaComponents
|
|
* const { count } = await prisma.formulaComponent.deleteMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
deleteMany<T extends FormulaComponentDeleteManyArgs>(args?: Prisma.SelectSubset<T, FormulaComponentDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more FormulaComponents.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormulaComponentUpdateManyArgs} args - Arguments to update one or more rows.
|
|
* @example
|
|
* // Update many FormulaComponents
|
|
* const formulaComponent = await prisma.formulaComponent.updateMany({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: {
|
|
* // ... provide data here
|
|
* }
|
|
* })
|
|
*
|
|
*/
|
|
updateMany<T extends FormulaComponentUpdateManyArgs>(args: Prisma.SelectSubset<T, FormulaComponentUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* Update zero or more FormulaComponents and returns the data updated in the database.
|
|
* @param {FormulaComponentUpdateManyAndReturnArgs} args - Arguments to update many FormulaComponents.
|
|
* @example
|
|
* // Update many FormulaComponents
|
|
* const formulaComponent = await prisma.formulaComponent.updateManyAndReturn({
|
|
* where: {
|
|
* // ... provide filter here
|
|
* },
|
|
* data: [
|
|
* // ... provide data here
|
|
* ]
|
|
* })
|
|
*
|
|
* // Update zero or more FormulaComponents and only return the `id`
|
|
* const formulaComponentWithIdOnly = await prisma.formulaComponent.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 FormulaComponentUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, FormulaComponentUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$FormulaComponentPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
|
|
|
|
/**
|
|
* Create or update one FormulaComponent.
|
|
* @param {FormulaComponentUpsertArgs} args - Arguments to update or create a FormulaComponent.
|
|
* @example
|
|
* // Update or create a FormulaComponent
|
|
* const formulaComponent = await prisma.formulaComponent.upsert({
|
|
* create: {
|
|
* // ... data to create a FormulaComponent
|
|
* },
|
|
* update: {
|
|
* // ... in case it already exists, update
|
|
* },
|
|
* where: {
|
|
* // ... the filter for the FormulaComponent we want to update
|
|
* }
|
|
* })
|
|
*/
|
|
upsert<T extends FormulaComponentUpsertArgs>(args: Prisma.SelectSubset<T, FormulaComponentUpsertArgs<ExtArgs>>): Prisma.Prisma__FormulaComponentClient<runtime.Types.Result.GetResult<Prisma.$FormulaComponentPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
|
|
|
|
|
|
/**
|
|
* Count the number of FormulaComponents.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormulaComponentCountArgs} args - Arguments to filter FormulaComponents to count.
|
|
* @example
|
|
* // Count the number of FormulaComponents
|
|
* const count = await prisma.formulaComponent.count({
|
|
* where: {
|
|
* // ... the filter for the FormulaComponents we want to count
|
|
* }
|
|
* })
|
|
**/
|
|
count<T extends FormulaComponentCountArgs>(
|
|
args?: Prisma.Subset<T, FormulaComponentCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], FormulaComponentCountAggregateOutputType>
|
|
: number
|
|
>
|
|
|
|
/**
|
|
* Allows you to perform aggregations operations on a FormulaComponent.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormulaComponentAggregateArgs} 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 FormulaComponentAggregateArgs>(args: Prisma.Subset<T, FormulaComponentAggregateArgs>): Prisma.PrismaPromise<GetFormulaComponentAggregateType<T>>
|
|
|
|
/**
|
|
* Group by FormulaComponent.
|
|
* Note, that providing `undefined` is treated as the value not being there.
|
|
* Read more here: https://pris.ly/d/null-undefined
|
|
* @param {FormulaComponentGroupByArgs} 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 FormulaComponentGroupByArgs,
|
|
HasSelectOrTake extends Prisma.Or<
|
|
Prisma.Extends<'skip', Prisma.Keys<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: FormulaComponentGroupByArgs['orderBy'] }
|
|
: { orderBy?: FormulaComponentGroupByArgs['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, FormulaComponentGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetFormulaComponentGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* Fields of the FormulaComponent model
|
|
*/
|
|
readonly fields: FormulaComponentFieldRefs;
|
|
}
|
|
|
|
/**
|
|
* The delegate class that acts as a "Promise-like" for FormulaComponent.
|
|
* 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__FormulaComponentClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
formula<T extends Prisma.FormulaDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.FormulaDefaultArgs<ExtArgs>>): Prisma.Prisma__FormulaClient<runtime.Types.Result.GetResult<Prisma.$FormulaPayload<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 FormulaComponent model
|
|
*/
|
|
export interface FormulaComponentFieldRefs {
|
|
readonly id: Prisma.FieldRef<"FormulaComponent", 'String'>
|
|
readonly formulaId: Prisma.FieldRef<"FormulaComponent", 'String'>
|
|
readonly order: Prisma.FieldRef<"FormulaComponent", 'Int'>
|
|
readonly type: Prisma.FieldRef<"FormulaComponent", 'String'>
|
|
readonly value: Prisma.FieldRef<"FormulaComponent", 'String'>
|
|
}
|
|
|
|
|
|
// Custom InputTypes
|
|
/**
|
|
* FormulaComponent findUnique
|
|
*/
|
|
export type FormulaComponentFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaComponent
|
|
*/
|
|
select?: Prisma.FormulaComponentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormulaComponent
|
|
*/
|
|
omit?: Prisma.FormulaComponentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaComponentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FormulaComponent to fetch.
|
|
*/
|
|
where: Prisma.FormulaComponentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FormulaComponent findUniqueOrThrow
|
|
*/
|
|
export type FormulaComponentFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaComponent
|
|
*/
|
|
select?: Prisma.FormulaComponentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormulaComponent
|
|
*/
|
|
omit?: Prisma.FormulaComponentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaComponentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FormulaComponent to fetch.
|
|
*/
|
|
where: Prisma.FormulaComponentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FormulaComponent findFirst
|
|
*/
|
|
export type FormulaComponentFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaComponent
|
|
*/
|
|
select?: Prisma.FormulaComponentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormulaComponent
|
|
*/
|
|
omit?: Prisma.FormulaComponentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaComponentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FormulaComponent to fetch.
|
|
*/
|
|
where?: Prisma.FormulaComponentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FormulaComponents to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormulaComponentOrderByWithRelationInput | Prisma.FormulaComponentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for FormulaComponents.
|
|
*/
|
|
cursor?: Prisma.FormulaComponentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FormulaComponents 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` FormulaComponents.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of FormulaComponents.
|
|
*/
|
|
distinct?: Prisma.FormulaComponentScalarFieldEnum | Prisma.FormulaComponentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* FormulaComponent findFirstOrThrow
|
|
*/
|
|
export type FormulaComponentFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaComponent
|
|
*/
|
|
select?: Prisma.FormulaComponentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormulaComponent
|
|
*/
|
|
omit?: Prisma.FormulaComponentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaComponentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FormulaComponent to fetch.
|
|
*/
|
|
where?: Prisma.FormulaComponentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FormulaComponents to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormulaComponentOrderByWithRelationInput | Prisma.FormulaComponentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for searching for FormulaComponents.
|
|
*/
|
|
cursor?: Prisma.FormulaComponentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FormulaComponents 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` FormulaComponents.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of FormulaComponents.
|
|
*/
|
|
distinct?: Prisma.FormulaComponentScalarFieldEnum | Prisma.FormulaComponentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* FormulaComponent findMany
|
|
*/
|
|
export type FormulaComponentFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaComponent
|
|
*/
|
|
select?: Prisma.FormulaComponentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormulaComponent
|
|
*/
|
|
omit?: Prisma.FormulaComponentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaComponentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which FormulaComponents to fetch.
|
|
*/
|
|
where?: Prisma.FormulaComponentWhereInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
|
|
*
|
|
* Determine the order of FormulaComponents to fetch.
|
|
*/
|
|
orderBy?: Prisma.FormulaComponentOrderByWithRelationInput | Prisma.FormulaComponentOrderByWithRelationInput[]
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
|
|
*
|
|
* Sets the position for listing FormulaComponents.
|
|
*/
|
|
cursor?: Prisma.FormulaComponentWhereUniqueInput
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
|
|
*
|
|
* Take `±n` FormulaComponents 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` FormulaComponents.
|
|
*/
|
|
skip?: number
|
|
/**
|
|
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
|
|
*
|
|
* Filter by unique combinations of FormulaComponents.
|
|
*/
|
|
distinct?: Prisma.FormulaComponentScalarFieldEnum | Prisma.FormulaComponentScalarFieldEnum[]
|
|
}
|
|
|
|
/**
|
|
* FormulaComponent create
|
|
*/
|
|
export type FormulaComponentCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaComponent
|
|
*/
|
|
select?: Prisma.FormulaComponentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormulaComponent
|
|
*/
|
|
omit?: Prisma.FormulaComponentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaComponentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a FormulaComponent.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormulaComponentCreateInput, Prisma.FormulaComponentUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* FormulaComponent createMany
|
|
*/
|
|
export type FormulaComponentCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many FormulaComponents.
|
|
*/
|
|
data: Prisma.FormulaComponentCreateManyInput | Prisma.FormulaComponentCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* FormulaComponent createManyAndReturn
|
|
*/
|
|
export type FormulaComponentCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaComponent
|
|
*/
|
|
select?: Prisma.FormulaComponentSelectCreateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormulaComponent
|
|
*/
|
|
omit?: Prisma.FormulaComponentOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to create many FormulaComponents.
|
|
*/
|
|
data: Prisma.FormulaComponentCreateManyInput | Prisma.FormulaComponentCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaComponentIncludeCreateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* FormulaComponent update
|
|
*/
|
|
export type FormulaComponentUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaComponent
|
|
*/
|
|
select?: Prisma.FormulaComponentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormulaComponent
|
|
*/
|
|
omit?: Prisma.FormulaComponentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaComponentInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a FormulaComponent.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormulaComponentUpdateInput, Prisma.FormulaComponentUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which FormulaComponent to update.
|
|
*/
|
|
where: Prisma.FormulaComponentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FormulaComponent updateMany
|
|
*/
|
|
export type FormulaComponentUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update FormulaComponents.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormulaComponentUpdateManyMutationInput, Prisma.FormulaComponentUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which FormulaComponents to update
|
|
*/
|
|
where?: Prisma.FormulaComponentWhereInput
|
|
/**
|
|
* Limit how many FormulaComponents to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* FormulaComponent updateManyAndReturn
|
|
*/
|
|
export type FormulaComponentUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaComponent
|
|
*/
|
|
select?: Prisma.FormulaComponentSelectUpdateManyAndReturn<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormulaComponent
|
|
*/
|
|
omit?: Prisma.FormulaComponentOmit<ExtArgs> | null
|
|
/**
|
|
* The data used to update FormulaComponents.
|
|
*/
|
|
data: Prisma.XOR<Prisma.FormulaComponentUpdateManyMutationInput, Prisma.FormulaComponentUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which FormulaComponents to update
|
|
*/
|
|
where?: Prisma.FormulaComponentWhereInput
|
|
/**
|
|
* Limit how many FormulaComponents to update.
|
|
*/
|
|
limit?: number
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaComponentIncludeUpdateManyAndReturn<ExtArgs> | null
|
|
}
|
|
|
|
/**
|
|
* FormulaComponent upsert
|
|
*/
|
|
export type FormulaComponentUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaComponent
|
|
*/
|
|
select?: Prisma.FormulaComponentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormulaComponent
|
|
*/
|
|
omit?: Prisma.FormulaComponentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaComponentInclude<ExtArgs> | null
|
|
/**
|
|
* The filter to search for the FormulaComponent to update in case it exists.
|
|
*/
|
|
where: Prisma.FormulaComponentWhereUniqueInput
|
|
/**
|
|
* In case the FormulaComponent found by the `where` argument doesn't exist, create a new FormulaComponent with this data.
|
|
*/
|
|
create: Prisma.XOR<Prisma.FormulaComponentCreateInput, Prisma.FormulaComponentUncheckedCreateInput>
|
|
/**
|
|
* In case the FormulaComponent was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.FormulaComponentUpdateInput, Prisma.FormulaComponentUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* FormulaComponent delete
|
|
*/
|
|
export type FormulaComponentDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaComponent
|
|
*/
|
|
select?: Prisma.FormulaComponentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormulaComponent
|
|
*/
|
|
omit?: Prisma.FormulaComponentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaComponentInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which FormulaComponent to delete.
|
|
*/
|
|
where: Prisma.FormulaComponentWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* FormulaComponent deleteMany
|
|
*/
|
|
export type FormulaComponentDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which FormulaComponents to delete
|
|
*/
|
|
where?: Prisma.FormulaComponentWhereInput
|
|
/**
|
|
* Limit how many FormulaComponents to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* FormulaComponent without action
|
|
*/
|
|
export type FormulaComponentDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the FormulaComponent
|
|
*/
|
|
select?: Prisma.FormulaComponentSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the FormulaComponent
|
|
*/
|
|
omit?: Prisma.FormulaComponentOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.FormulaComponentInclude<ExtArgs> | null
|
|
}
|