/* !!! 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 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 = { /** * 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 = { [P in keyof T & keyof AggregateFormulaComponent]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type FormulaComponentGroupByArgs = { 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 = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof FormulaComponentGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > 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 } 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 }, "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[] connectOrCreate?: Prisma.FormulaComponentCreateOrConnectWithoutFormulaInput | Prisma.FormulaComponentCreateOrConnectWithoutFormulaInput[] createMany?: Prisma.FormulaComponentCreateManyFormulaInputEnvelope connect?: Prisma.FormulaComponentWhereUniqueInput | Prisma.FormulaComponentWhereUniqueInput[] } export type FormulaComponentUncheckedCreateNestedManyWithoutFormulaInput = { create?: Prisma.XOR | 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[] 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[] 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 } export type FormulaComponentCreateManyFormulaInputEnvelope = { data: Prisma.FormulaComponentCreateManyFormulaInput | Prisma.FormulaComponentCreateManyFormulaInput[] skipDuplicates?: boolean } export type FormulaComponentUpsertWithWhereUniqueWithoutFormulaInput = { where: Prisma.FormulaComponentWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type FormulaComponentUpdateWithWhereUniqueWithoutFormulaInput = { where: Prisma.FormulaComponentWhereUniqueInput data: Prisma.XOR } export type FormulaComponentUpdateManyWithWhereWithoutFormulaInput = { where: Prisma.FormulaComponentScalarWhereInput data: Prisma.XOR } 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 = runtime.Types.Extensions.GetSelect<{ id?: boolean formulaId?: boolean order?: boolean type?: boolean value?: boolean formula?: boolean | Prisma.FormulaDefaultArgs }, ExtArgs["result"]["formulaComponent"]> export type FormulaComponentSelectCreateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean formulaId?: boolean order?: boolean type?: boolean value?: boolean formula?: boolean | Prisma.FormulaDefaultArgs }, ExtArgs["result"]["formulaComponent"]> export type FormulaComponentSelectUpdateManyAndReturn = runtime.Types.Extensions.GetSelect<{ id?: boolean formulaId?: boolean order?: boolean type?: boolean value?: boolean formula?: boolean | Prisma.FormulaDefaultArgs }, ExtArgs["result"]["formulaComponent"]> export type FormulaComponentSelectScalar = { id?: boolean formulaId?: boolean order?: boolean type?: boolean value?: boolean } export type FormulaComponentOmit = runtime.Types.Extensions.GetOmit<"id" | "formulaId" | "order" | "type" | "value", ExtArgs["result"]["formulaComponent"]> export type FormulaComponentInclude = { formula?: boolean | Prisma.FormulaDefaultArgs } export type FormulaComponentIncludeCreateManyAndReturn = { formula?: boolean | Prisma.FormulaDefaultArgs } export type FormulaComponentIncludeUpdateManyAndReturn = { formula?: boolean | Prisma.FormulaDefaultArgs } export type $FormulaComponentPayload = { name: "FormulaComponent" objects: { formula: Prisma.$FormulaPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: string formulaId: string order: number type: string value: string }, ExtArgs["result"]["formulaComponent"]> composites: {} } export type FormulaComponentGetPayload = runtime.Types.Result.GetResult export type FormulaComponentCountArgs = Omit & { select?: FormulaComponentCountAggregateInputType | true } export interface FormulaComponentDelegate { [K: symbol]: { types: Prisma.TypeMap['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(args: Prisma.SelectSubset>): Prisma.Prisma__FormulaComponentClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__FormulaComponentClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__FormulaComponentClient, 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(args?: Prisma.SelectSubset>): Prisma.Prisma__FormulaComponentClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__FormulaComponentClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__FormulaComponentClient, 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(args: Prisma.SelectSubset>): Prisma.Prisma__FormulaComponentClient, 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(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * 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(args: Prisma.SelectSubset>): Prisma.PrismaPromise, 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(args: Prisma.SelectSubset>): Prisma.Prisma__FormulaComponentClient, 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( args?: Prisma.Subset, ): Prisma.PrismaPromise< T extends runtime.Types.Utils.Record<'select', any> ? T['select'] extends true ? number : Prisma.GetScalarType : 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(args: Prisma.Subset): Prisma.PrismaPromise> /** * 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>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: FormulaComponentGroupByArgs['orderBy'] } : { orderBy?: FormulaComponentGroupByArgs['orderBy'] }, OrderFields extends Prisma.ExcludeUnderscoreKeys>>, ByFields extends Prisma.MaybeTupleToUnion, ByValid extends Prisma.Has, HavingFields extends Prisma.GetHavingFields, HavingValid extends Prisma.Has, 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 ? 'orderBy' extends Prisma.Keys ? 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 ? 'orderBy' extends Prisma.Keys ? 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 & InputErrors): {} extends InputErrors ? GetFormulaComponentGroupByPayload : Prisma.PrismaPromise /** * 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 extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" formula = {}>(args?: Prisma.Subset>): Prisma.Prisma__FormulaClient, 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(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): runtime.Types.Utils.JsPromise /** * 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 } /** * 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 = { /** * Select specific fields to fetch from the FormulaComponent */ select?: Prisma.FormulaComponentSelect | null /** * Omit specific fields from the FormulaComponent */ omit?: Prisma.FormulaComponentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FormulaComponentInclude | null /** * Filter, which FormulaComponent to fetch. */ where: Prisma.FormulaComponentWhereUniqueInput } /** * FormulaComponent findUniqueOrThrow */ export type FormulaComponentFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the FormulaComponent */ select?: Prisma.FormulaComponentSelect | null /** * Omit specific fields from the FormulaComponent */ omit?: Prisma.FormulaComponentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FormulaComponentInclude | null /** * Filter, which FormulaComponent to fetch. */ where: Prisma.FormulaComponentWhereUniqueInput } /** * FormulaComponent findFirst */ export type FormulaComponentFindFirstArgs = { /** * Select specific fields to fetch from the FormulaComponent */ select?: Prisma.FormulaComponentSelect | null /** * Omit specific fields from the FormulaComponent */ omit?: Prisma.FormulaComponentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FormulaComponentInclude | 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 = { /** * Select specific fields to fetch from the FormulaComponent */ select?: Prisma.FormulaComponentSelect | null /** * Omit specific fields from the FormulaComponent */ omit?: Prisma.FormulaComponentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FormulaComponentInclude | 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 = { /** * Select specific fields to fetch from the FormulaComponent */ select?: Prisma.FormulaComponentSelect | null /** * Omit specific fields from the FormulaComponent */ omit?: Prisma.FormulaComponentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FormulaComponentInclude | 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 = { /** * Select specific fields to fetch from the FormulaComponent */ select?: Prisma.FormulaComponentSelect | null /** * Omit specific fields from the FormulaComponent */ omit?: Prisma.FormulaComponentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FormulaComponentInclude | null /** * The data needed to create a FormulaComponent. */ data: Prisma.XOR } /** * FormulaComponent createMany */ export type FormulaComponentCreateManyArgs = { /** * The data used to create many FormulaComponents. */ data: Prisma.FormulaComponentCreateManyInput | Prisma.FormulaComponentCreateManyInput[] skipDuplicates?: boolean } /** * FormulaComponent createManyAndReturn */ export type FormulaComponentCreateManyAndReturnArgs = { /** * Select specific fields to fetch from the FormulaComponent */ select?: Prisma.FormulaComponentSelectCreateManyAndReturn | null /** * Omit specific fields from the FormulaComponent */ omit?: Prisma.FormulaComponentOmit | 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 | null } /** * FormulaComponent update */ export type FormulaComponentUpdateArgs = { /** * Select specific fields to fetch from the FormulaComponent */ select?: Prisma.FormulaComponentSelect | null /** * Omit specific fields from the FormulaComponent */ omit?: Prisma.FormulaComponentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FormulaComponentInclude | null /** * The data needed to update a FormulaComponent. */ data: Prisma.XOR /** * Choose, which FormulaComponent to update. */ where: Prisma.FormulaComponentWhereUniqueInput } /** * FormulaComponent updateMany */ export type FormulaComponentUpdateManyArgs = { /** * The data used to update FormulaComponents. */ data: Prisma.XOR /** * Filter which FormulaComponents to update */ where?: Prisma.FormulaComponentWhereInput /** * Limit how many FormulaComponents to update. */ limit?: number } /** * FormulaComponent updateManyAndReturn */ export type FormulaComponentUpdateManyAndReturnArgs = { /** * Select specific fields to fetch from the FormulaComponent */ select?: Prisma.FormulaComponentSelectUpdateManyAndReturn | null /** * Omit specific fields from the FormulaComponent */ omit?: Prisma.FormulaComponentOmit | null /** * The data used to update FormulaComponents. */ data: Prisma.XOR /** * 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 | null } /** * FormulaComponent upsert */ export type FormulaComponentUpsertArgs = { /** * Select specific fields to fetch from the FormulaComponent */ select?: Prisma.FormulaComponentSelect | null /** * Omit specific fields from the FormulaComponent */ omit?: Prisma.FormulaComponentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FormulaComponentInclude | 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 /** * In case the FormulaComponent was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * FormulaComponent delete */ export type FormulaComponentDeleteArgs = { /** * Select specific fields to fetch from the FormulaComponent */ select?: Prisma.FormulaComponentSelect | null /** * Omit specific fields from the FormulaComponent */ omit?: Prisma.FormulaComponentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FormulaComponentInclude | null /** * Filter which FormulaComponent to delete. */ where: Prisma.FormulaComponentWhereUniqueInput } /** * FormulaComponent deleteMany */ export type FormulaComponentDeleteManyArgs = { /** * Filter which FormulaComponents to delete */ where?: Prisma.FormulaComponentWhereInput /** * Limit how many FormulaComponents to delete. */ limit?: number } /** * FormulaComponent without action */ export type FormulaComponentDefaultArgs = { /** * Select specific fields to fetch from the FormulaComponent */ select?: Prisma.FormulaComponentSelect | null /** * Omit specific fields from the FormulaComponent */ omit?: Prisma.FormulaComponentOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.FormulaComponentInclude | null }