/* !!! This is code generated by Prisma. Do not edit directly. !!! */ /* eslint-disable */ // biome-ignore-all lint: generated file // @ts-nocheck /* * This file exports the `IndicatorPoint` 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 IndicatorPoint * */ export type IndicatorPointModel = runtime.Types.Result.DefaultSelection export type AggregateIndicatorPoint = { _count: IndicatorPointCountAggregateOutputType | null _avg: IndicatorPointAvgAggregateOutputType | null _sum: IndicatorPointSumAggregateOutputType | null _min: IndicatorPointMinAggregateOutputType | null _max: IndicatorPointMaxAggregateOutputType | null } export type IndicatorPointAvgAggregateOutputType = { id: number | null indicatorId: number | null value: number | null } export type IndicatorPointSumAggregateOutputType = { id: number | null indicatorId: number | null value: number | null } export type IndicatorPointMinAggregateOutputType = { id: number | null indicatorId: number | null period: string | null value: number | null createdAt: Date | null updatedAt: Date | null } export type IndicatorPointMaxAggregateOutputType = { id: number | null indicatorId: number | null period: string | null value: number | null createdAt: Date | null updatedAt: Date | null } export type IndicatorPointCountAggregateOutputType = { id: number indicatorId: number period: number value: number createdAt: number updatedAt: number _all: number } export type IndicatorPointAvgAggregateInputType = { id?: true indicatorId?: true value?: true } export type IndicatorPointSumAggregateInputType = { id?: true indicatorId?: true value?: true } export type IndicatorPointMinAggregateInputType = { id?: true indicatorId?: true period?: true value?: true createdAt?: true updatedAt?: true } export type IndicatorPointMaxAggregateInputType = { id?: true indicatorId?: true period?: true value?: true createdAt?: true updatedAt?: true } export type IndicatorPointCountAggregateInputType = { id?: true indicatorId?: true period?: true value?: true createdAt?: true updatedAt?: true _all?: true } export type IndicatorPointAggregateArgs = { /** * Filter which IndicatorPoint to aggregate. */ where?: Prisma.IndicatorPointWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IndicatorPoints to fetch. */ orderBy?: Prisma.IndicatorPointOrderByWithRelationInput | Prisma.IndicatorPointOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the start position */ cursor?: Prisma.IndicatorPointWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IndicatorPoints 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` IndicatorPoints. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Count returned IndicatorPoints **/ _count?: true | IndicatorPointCountAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to average **/ _avg?: IndicatorPointAvgAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to sum **/ _sum?: IndicatorPointSumAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the minimum value **/ _min?: IndicatorPointMinAggregateInputType /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs} * * Select which fields to find the maximum value **/ _max?: IndicatorPointMaxAggregateInputType } export type GetIndicatorPointAggregateType = { [P in keyof T & keyof AggregateIndicatorPoint]: P extends '_count' | 'count' ? T[P] extends true ? number : Prisma.GetScalarType : Prisma.GetScalarType } export type IndicatorPointGroupByArgs = { where?: Prisma.IndicatorPointWhereInput orderBy?: Prisma.IndicatorPointOrderByWithAggregationInput | Prisma.IndicatorPointOrderByWithAggregationInput[] by: Prisma.IndicatorPointScalarFieldEnum[] | Prisma.IndicatorPointScalarFieldEnum having?: Prisma.IndicatorPointScalarWhereWithAggregatesInput take?: number skip?: number _count?: IndicatorPointCountAggregateInputType | true _avg?: IndicatorPointAvgAggregateInputType _sum?: IndicatorPointSumAggregateInputType _min?: IndicatorPointMinAggregateInputType _max?: IndicatorPointMaxAggregateInputType } export type IndicatorPointGroupByOutputType = { id: number indicatorId: number period: string value: number createdAt: Date updatedAt: Date _count: IndicatorPointCountAggregateOutputType | null _avg: IndicatorPointAvgAggregateOutputType | null _sum: IndicatorPointSumAggregateOutputType | null _min: IndicatorPointMinAggregateOutputType | null _max: IndicatorPointMaxAggregateOutputType | null } export type GetIndicatorPointGroupByPayload = Prisma.PrismaPromise< Array< Prisma.PickEnumerable & { [P in ((keyof T) & (keyof IndicatorPointGroupByOutputType))]: P extends '_count' ? T[P] extends boolean ? number : Prisma.GetScalarType : Prisma.GetScalarType } > > export type IndicatorPointWhereInput = { AND?: Prisma.IndicatorPointWhereInput | Prisma.IndicatorPointWhereInput[] OR?: Prisma.IndicatorPointWhereInput[] NOT?: Prisma.IndicatorPointWhereInput | Prisma.IndicatorPointWhereInput[] id?: Prisma.IntFilter<"IndicatorPoint"> | number indicatorId?: Prisma.IntFilter<"IndicatorPoint"> | number period?: Prisma.StringFilter<"IndicatorPoint"> | string value?: Prisma.FloatFilter<"IndicatorPoint"> | number createdAt?: Prisma.DateTimeFilter<"IndicatorPoint"> | Date | string updatedAt?: Prisma.DateTimeFilter<"IndicatorPoint"> | Date | string indicator?: Prisma.XOR } export type IndicatorPointOrderByWithRelationInput = { id?: Prisma.SortOrder indicatorId?: Prisma.SortOrder period?: Prisma.SortOrder value?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder indicator?: Prisma.IndicatorOrderByWithRelationInput _relevance?: Prisma.IndicatorPointOrderByRelevanceInput } export type IndicatorPointWhereUniqueInput = Prisma.AtLeast<{ id?: number indicatorId_period?: Prisma.IndicatorPointIndicatorIdPeriodCompoundUniqueInput AND?: Prisma.IndicatorPointWhereInput | Prisma.IndicatorPointWhereInput[] OR?: Prisma.IndicatorPointWhereInput[] NOT?: Prisma.IndicatorPointWhereInput | Prisma.IndicatorPointWhereInput[] indicatorId?: Prisma.IntFilter<"IndicatorPoint"> | number period?: Prisma.StringFilter<"IndicatorPoint"> | string value?: Prisma.FloatFilter<"IndicatorPoint"> | number createdAt?: Prisma.DateTimeFilter<"IndicatorPoint"> | Date | string updatedAt?: Prisma.DateTimeFilter<"IndicatorPoint"> | Date | string indicator?: Prisma.XOR }, "id" | "indicatorId_period"> export type IndicatorPointOrderByWithAggregationInput = { id?: Prisma.SortOrder indicatorId?: Prisma.SortOrder period?: Prisma.SortOrder value?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder _count?: Prisma.IndicatorPointCountOrderByAggregateInput _avg?: Prisma.IndicatorPointAvgOrderByAggregateInput _max?: Prisma.IndicatorPointMaxOrderByAggregateInput _min?: Prisma.IndicatorPointMinOrderByAggregateInput _sum?: Prisma.IndicatorPointSumOrderByAggregateInput } export type IndicatorPointScalarWhereWithAggregatesInput = { AND?: Prisma.IndicatorPointScalarWhereWithAggregatesInput | Prisma.IndicatorPointScalarWhereWithAggregatesInput[] OR?: Prisma.IndicatorPointScalarWhereWithAggregatesInput[] NOT?: Prisma.IndicatorPointScalarWhereWithAggregatesInput | Prisma.IndicatorPointScalarWhereWithAggregatesInput[] id?: Prisma.IntWithAggregatesFilter<"IndicatorPoint"> | number indicatorId?: Prisma.IntWithAggregatesFilter<"IndicatorPoint"> | number period?: Prisma.StringWithAggregatesFilter<"IndicatorPoint"> | string value?: Prisma.FloatWithAggregatesFilter<"IndicatorPoint"> | number createdAt?: Prisma.DateTimeWithAggregatesFilter<"IndicatorPoint"> | Date | string updatedAt?: Prisma.DateTimeWithAggregatesFilter<"IndicatorPoint"> | Date | string } export type IndicatorPointCreateInput = { period: string value: number createdAt?: Date | string updatedAt?: Date | string indicator: Prisma.IndicatorCreateNestedOneWithoutPointsInput } export type IndicatorPointUncheckedCreateInput = { id?: number indicatorId: number period: string value: number createdAt?: Date | string updatedAt?: Date | string } export type IndicatorPointUpdateInput = { period?: Prisma.StringFieldUpdateOperationsInput | string value?: Prisma.FloatFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string indicator?: Prisma.IndicatorUpdateOneRequiredWithoutPointsNestedInput } export type IndicatorPointUncheckedUpdateInput = { id?: Prisma.IntFieldUpdateOperationsInput | number indicatorId?: Prisma.IntFieldUpdateOperationsInput | number period?: Prisma.StringFieldUpdateOperationsInput | string value?: Prisma.FloatFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type IndicatorPointCreateManyInput = { id?: number indicatorId: number period: string value: number createdAt?: Date | string updatedAt?: Date | string } export type IndicatorPointUpdateManyMutationInput = { period?: Prisma.StringFieldUpdateOperationsInput | string value?: Prisma.FloatFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type IndicatorPointUncheckedUpdateManyInput = { id?: Prisma.IntFieldUpdateOperationsInput | number indicatorId?: Prisma.IntFieldUpdateOperationsInput | number period?: Prisma.StringFieldUpdateOperationsInput | string value?: Prisma.FloatFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type IndicatorPointListRelationFilter = { every?: Prisma.IndicatorPointWhereInput some?: Prisma.IndicatorPointWhereInput none?: Prisma.IndicatorPointWhereInput } export type IndicatorPointOrderByRelationAggregateInput = { _count?: Prisma.SortOrder } export type IndicatorPointOrderByRelevanceInput = { fields: Prisma.IndicatorPointOrderByRelevanceFieldEnum | Prisma.IndicatorPointOrderByRelevanceFieldEnum[] sort: Prisma.SortOrder search: string } export type IndicatorPointIndicatorIdPeriodCompoundUniqueInput = { indicatorId: number period: string } export type IndicatorPointCountOrderByAggregateInput = { id?: Prisma.SortOrder indicatorId?: Prisma.SortOrder period?: Prisma.SortOrder value?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type IndicatorPointAvgOrderByAggregateInput = { id?: Prisma.SortOrder indicatorId?: Prisma.SortOrder value?: Prisma.SortOrder } export type IndicatorPointMaxOrderByAggregateInput = { id?: Prisma.SortOrder indicatorId?: Prisma.SortOrder period?: Prisma.SortOrder value?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type IndicatorPointMinOrderByAggregateInput = { id?: Prisma.SortOrder indicatorId?: Prisma.SortOrder period?: Prisma.SortOrder value?: Prisma.SortOrder createdAt?: Prisma.SortOrder updatedAt?: Prisma.SortOrder } export type IndicatorPointSumOrderByAggregateInput = { id?: Prisma.SortOrder indicatorId?: Prisma.SortOrder value?: Prisma.SortOrder } export type IndicatorPointCreateNestedManyWithoutIndicatorInput = { create?: Prisma.XOR | Prisma.IndicatorPointCreateWithoutIndicatorInput[] | Prisma.IndicatorPointUncheckedCreateWithoutIndicatorInput[] connectOrCreate?: Prisma.IndicatorPointCreateOrConnectWithoutIndicatorInput | Prisma.IndicatorPointCreateOrConnectWithoutIndicatorInput[] createMany?: Prisma.IndicatorPointCreateManyIndicatorInputEnvelope connect?: Prisma.IndicatorPointWhereUniqueInput | Prisma.IndicatorPointWhereUniqueInput[] } export type IndicatorPointUncheckedCreateNestedManyWithoutIndicatorInput = { create?: Prisma.XOR | Prisma.IndicatorPointCreateWithoutIndicatorInput[] | Prisma.IndicatorPointUncheckedCreateWithoutIndicatorInput[] connectOrCreate?: Prisma.IndicatorPointCreateOrConnectWithoutIndicatorInput | Prisma.IndicatorPointCreateOrConnectWithoutIndicatorInput[] createMany?: Prisma.IndicatorPointCreateManyIndicatorInputEnvelope connect?: Prisma.IndicatorPointWhereUniqueInput | Prisma.IndicatorPointWhereUniqueInput[] } export type IndicatorPointUpdateManyWithoutIndicatorNestedInput = { create?: Prisma.XOR | Prisma.IndicatorPointCreateWithoutIndicatorInput[] | Prisma.IndicatorPointUncheckedCreateWithoutIndicatorInput[] connectOrCreate?: Prisma.IndicatorPointCreateOrConnectWithoutIndicatorInput | Prisma.IndicatorPointCreateOrConnectWithoutIndicatorInput[] upsert?: Prisma.IndicatorPointUpsertWithWhereUniqueWithoutIndicatorInput | Prisma.IndicatorPointUpsertWithWhereUniqueWithoutIndicatorInput[] createMany?: Prisma.IndicatorPointCreateManyIndicatorInputEnvelope set?: Prisma.IndicatorPointWhereUniqueInput | Prisma.IndicatorPointWhereUniqueInput[] disconnect?: Prisma.IndicatorPointWhereUniqueInput | Prisma.IndicatorPointWhereUniqueInput[] delete?: Prisma.IndicatorPointWhereUniqueInput | Prisma.IndicatorPointWhereUniqueInput[] connect?: Prisma.IndicatorPointWhereUniqueInput | Prisma.IndicatorPointWhereUniqueInput[] update?: Prisma.IndicatorPointUpdateWithWhereUniqueWithoutIndicatorInput | Prisma.IndicatorPointUpdateWithWhereUniqueWithoutIndicatorInput[] updateMany?: Prisma.IndicatorPointUpdateManyWithWhereWithoutIndicatorInput | Prisma.IndicatorPointUpdateManyWithWhereWithoutIndicatorInput[] deleteMany?: Prisma.IndicatorPointScalarWhereInput | Prisma.IndicatorPointScalarWhereInput[] } export type IndicatorPointUncheckedUpdateManyWithoutIndicatorNestedInput = { create?: Prisma.XOR | Prisma.IndicatorPointCreateWithoutIndicatorInput[] | Prisma.IndicatorPointUncheckedCreateWithoutIndicatorInput[] connectOrCreate?: Prisma.IndicatorPointCreateOrConnectWithoutIndicatorInput | Prisma.IndicatorPointCreateOrConnectWithoutIndicatorInput[] upsert?: Prisma.IndicatorPointUpsertWithWhereUniqueWithoutIndicatorInput | Prisma.IndicatorPointUpsertWithWhereUniqueWithoutIndicatorInput[] createMany?: Prisma.IndicatorPointCreateManyIndicatorInputEnvelope set?: Prisma.IndicatorPointWhereUniqueInput | Prisma.IndicatorPointWhereUniqueInput[] disconnect?: Prisma.IndicatorPointWhereUniqueInput | Prisma.IndicatorPointWhereUniqueInput[] delete?: Prisma.IndicatorPointWhereUniqueInput | Prisma.IndicatorPointWhereUniqueInput[] connect?: Prisma.IndicatorPointWhereUniqueInput | Prisma.IndicatorPointWhereUniqueInput[] update?: Prisma.IndicatorPointUpdateWithWhereUniqueWithoutIndicatorInput | Prisma.IndicatorPointUpdateWithWhereUniqueWithoutIndicatorInput[] updateMany?: Prisma.IndicatorPointUpdateManyWithWhereWithoutIndicatorInput | Prisma.IndicatorPointUpdateManyWithWhereWithoutIndicatorInput[] deleteMany?: Prisma.IndicatorPointScalarWhereInput | Prisma.IndicatorPointScalarWhereInput[] } export type FloatFieldUpdateOperationsInput = { set?: number increment?: number decrement?: number multiply?: number divide?: number } export type IndicatorPointCreateWithoutIndicatorInput = { period: string value: number createdAt?: Date | string updatedAt?: Date | string } export type IndicatorPointUncheckedCreateWithoutIndicatorInput = { id?: number period: string value: number createdAt?: Date | string updatedAt?: Date | string } export type IndicatorPointCreateOrConnectWithoutIndicatorInput = { where: Prisma.IndicatorPointWhereUniqueInput create: Prisma.XOR } export type IndicatorPointCreateManyIndicatorInputEnvelope = { data: Prisma.IndicatorPointCreateManyIndicatorInput | Prisma.IndicatorPointCreateManyIndicatorInput[] skipDuplicates?: boolean } export type IndicatorPointUpsertWithWhereUniqueWithoutIndicatorInput = { where: Prisma.IndicatorPointWhereUniqueInput update: Prisma.XOR create: Prisma.XOR } export type IndicatorPointUpdateWithWhereUniqueWithoutIndicatorInput = { where: Prisma.IndicatorPointWhereUniqueInput data: Prisma.XOR } export type IndicatorPointUpdateManyWithWhereWithoutIndicatorInput = { where: Prisma.IndicatorPointScalarWhereInput data: Prisma.XOR } export type IndicatorPointScalarWhereInput = { AND?: Prisma.IndicatorPointScalarWhereInput | Prisma.IndicatorPointScalarWhereInput[] OR?: Prisma.IndicatorPointScalarWhereInput[] NOT?: Prisma.IndicatorPointScalarWhereInput | Prisma.IndicatorPointScalarWhereInput[] id?: Prisma.IntFilter<"IndicatorPoint"> | number indicatorId?: Prisma.IntFilter<"IndicatorPoint"> | number period?: Prisma.StringFilter<"IndicatorPoint"> | string value?: Prisma.FloatFilter<"IndicatorPoint"> | number createdAt?: Prisma.DateTimeFilter<"IndicatorPoint"> | Date | string updatedAt?: Prisma.DateTimeFilter<"IndicatorPoint"> | Date | string } export type IndicatorPointCreateManyIndicatorInput = { id?: number period: string value: number createdAt?: Date | string updatedAt?: Date | string } export type IndicatorPointUpdateWithoutIndicatorInput = { period?: Prisma.StringFieldUpdateOperationsInput | string value?: Prisma.FloatFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type IndicatorPointUncheckedUpdateWithoutIndicatorInput = { id?: Prisma.IntFieldUpdateOperationsInput | number period?: Prisma.StringFieldUpdateOperationsInput | string value?: Prisma.FloatFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type IndicatorPointUncheckedUpdateManyWithoutIndicatorInput = { id?: Prisma.IntFieldUpdateOperationsInput | number period?: Prisma.StringFieldUpdateOperationsInput | string value?: Prisma.FloatFieldUpdateOperationsInput | number createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string } export type IndicatorPointSelect = runtime.Types.Extensions.GetSelect<{ id?: boolean indicatorId?: boolean period?: boolean value?: boolean createdAt?: boolean updatedAt?: boolean indicator?: boolean | Prisma.IndicatorDefaultArgs }, ExtArgs["result"]["indicatorPoint"]> export type IndicatorPointSelectScalar = { id?: boolean indicatorId?: boolean period?: boolean value?: boolean createdAt?: boolean updatedAt?: boolean } export type IndicatorPointOmit = runtime.Types.Extensions.GetOmit<"id" | "indicatorId" | "period" | "value" | "createdAt" | "updatedAt", ExtArgs["result"]["indicatorPoint"]> export type IndicatorPointInclude = { indicator?: boolean | Prisma.IndicatorDefaultArgs } export type $IndicatorPointPayload = { name: "IndicatorPoint" objects: { indicator: Prisma.$IndicatorPayload } scalars: runtime.Types.Extensions.GetPayloadResult<{ id: number indicatorId: number period: string value: number createdAt: Date updatedAt: Date }, ExtArgs["result"]["indicatorPoint"]> composites: {} } export type IndicatorPointGetPayload = runtime.Types.Result.GetResult export type IndicatorPointCountArgs = Omit & { select?: IndicatorPointCountAggregateInputType | true } export interface IndicatorPointDelegate { [K: symbol]: { types: Prisma.TypeMap['model']['IndicatorPoint'], meta: { name: 'IndicatorPoint' } } /** * Find zero or one IndicatorPoint that matches the filter. * @param {IndicatorPointFindUniqueArgs} args - Arguments to find a IndicatorPoint * @example * // Get one IndicatorPoint * const indicatorPoint = await prisma.indicatorPoint.findUnique({ * where: { * // ... provide filter here * } * }) */ findUnique(args: Prisma.SelectSubset>): Prisma.Prisma__IndicatorPointClient, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find one IndicatorPoint that matches the filter or throw an error with `error.code='P2025'` * if no matches were found. * @param {IndicatorPointFindUniqueOrThrowArgs} args - Arguments to find a IndicatorPoint * @example * // Get one IndicatorPoint * const indicatorPoint = await prisma.indicatorPoint.findUniqueOrThrow({ * where: { * // ... provide filter here * } * }) */ findUniqueOrThrow(args: Prisma.SelectSubset>): Prisma.Prisma__IndicatorPointClient, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find the first IndicatorPoint 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 {IndicatorPointFindFirstArgs} args - Arguments to find a IndicatorPoint * @example * // Get one IndicatorPoint * const indicatorPoint = await prisma.indicatorPoint.findFirst({ * where: { * // ... provide filter here * } * }) */ findFirst(args?: Prisma.SelectSubset>): Prisma.Prisma__IndicatorPointClient, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions> /** * Find the first IndicatorPoint 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 {IndicatorPointFindFirstOrThrowArgs} args - Arguments to find a IndicatorPoint * @example * // Get one IndicatorPoint * const indicatorPoint = await prisma.indicatorPoint.findFirstOrThrow({ * where: { * // ... provide filter here * } * }) */ findFirstOrThrow(args?: Prisma.SelectSubset>): Prisma.Prisma__IndicatorPointClient, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Find zero or more IndicatorPoints 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 {IndicatorPointFindManyArgs} args - Arguments to filter and select certain fields only. * @example * // Get all IndicatorPoints * const indicatorPoints = await prisma.indicatorPoint.findMany() * * // Get first 10 IndicatorPoints * const indicatorPoints = await prisma.indicatorPoint.findMany({ take: 10 }) * * // Only select the `id` * const indicatorPointWithIdOnly = await prisma.indicatorPoint.findMany({ select: { id: true } }) * */ findMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise, T, "findMany", GlobalOmitOptions>> /** * Create a IndicatorPoint. * @param {IndicatorPointCreateArgs} args - Arguments to create a IndicatorPoint. * @example * // Create one IndicatorPoint * const IndicatorPoint = await prisma.indicatorPoint.create({ * data: { * // ... data to create a IndicatorPoint * } * }) * */ create(args: Prisma.SelectSubset>): Prisma.Prisma__IndicatorPointClient, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Create many IndicatorPoints. * @param {IndicatorPointCreateManyArgs} args - Arguments to create many IndicatorPoints. * @example * // Create many IndicatorPoints * const indicatorPoint = await prisma.indicatorPoint.createMany({ * data: [ * // ... provide data here * ] * }) * */ createMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Delete a IndicatorPoint. * @param {IndicatorPointDeleteArgs} args - Arguments to delete one IndicatorPoint. * @example * // Delete one IndicatorPoint * const IndicatorPoint = await prisma.indicatorPoint.delete({ * where: { * // ... filter to delete one IndicatorPoint * } * }) * */ delete(args: Prisma.SelectSubset>): Prisma.Prisma__IndicatorPointClient, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Update one IndicatorPoint. * @param {IndicatorPointUpdateArgs} args - Arguments to update one IndicatorPoint. * @example * // Update one IndicatorPoint * const indicatorPoint = await prisma.indicatorPoint.update({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ update(args: Prisma.SelectSubset>): Prisma.Prisma__IndicatorPointClient, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Delete zero or more IndicatorPoints. * @param {IndicatorPointDeleteManyArgs} args - Arguments to filter IndicatorPoints to delete. * @example * // Delete a few IndicatorPoints * const { count } = await prisma.indicatorPoint.deleteMany({ * where: { * // ... provide filter here * } * }) * */ deleteMany(args?: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Update zero or more IndicatorPoints. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IndicatorPointUpdateManyArgs} args - Arguments to update one or more rows. * @example * // Update many IndicatorPoints * const indicatorPoint = await prisma.indicatorPoint.updateMany({ * where: { * // ... provide filter here * }, * data: { * // ... provide data here * } * }) * */ updateMany(args: Prisma.SelectSubset>): Prisma.PrismaPromise /** * Create or update one IndicatorPoint. * @param {IndicatorPointUpsertArgs} args - Arguments to update or create a IndicatorPoint. * @example * // Update or create a IndicatorPoint * const indicatorPoint = await prisma.indicatorPoint.upsert({ * create: { * // ... data to create a IndicatorPoint * }, * update: { * // ... in case it already exists, update * }, * where: { * // ... the filter for the IndicatorPoint we want to update * } * }) */ upsert(args: Prisma.SelectSubset>): Prisma.Prisma__IndicatorPointClient, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions> /** * Count the number of IndicatorPoints. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IndicatorPointCountArgs} args - Arguments to filter IndicatorPoints to count. * @example * // Count the number of IndicatorPoints * const count = await prisma.indicatorPoint.count({ * where: { * // ... the filter for the IndicatorPoints 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 IndicatorPoint. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IndicatorPointAggregateArgs} 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 IndicatorPoint. * Note, that providing `undefined` is treated as the value not being there. * Read more here: https://pris.ly/d/null-undefined * @param {IndicatorPointGroupByArgs} 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 IndicatorPointGroupByArgs, HasSelectOrTake extends Prisma.Or< Prisma.Extends<'skip', Prisma.Keys>, Prisma.Extends<'take', Prisma.Keys> >, OrderByArg extends Prisma.True extends HasSelectOrTake ? { orderBy: IndicatorPointGroupByArgs['orderBy'] } : { orderBy?: IndicatorPointGroupByArgs['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 ? GetIndicatorPointGroupByPayload : Prisma.PrismaPromise /** * Fields of the IndicatorPoint model */ readonly fields: IndicatorPointFieldRefs; } /** * The delegate class that acts as a "Promise-like" for IndicatorPoint. * 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__IndicatorPointClient extends Prisma.PrismaPromise { readonly [Symbol.toStringTag]: "PrismaPromise" indicator = {}>(args?: Prisma.Subset>): Prisma.Prisma__IndicatorClient, 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 IndicatorPoint model */ export interface IndicatorPointFieldRefs { readonly id: Prisma.FieldRef<"IndicatorPoint", 'Int'> readonly indicatorId: Prisma.FieldRef<"IndicatorPoint", 'Int'> readonly period: Prisma.FieldRef<"IndicatorPoint", 'String'> readonly value: Prisma.FieldRef<"IndicatorPoint", 'Float'> readonly createdAt: Prisma.FieldRef<"IndicatorPoint", 'DateTime'> readonly updatedAt: Prisma.FieldRef<"IndicatorPoint", 'DateTime'> } // Custom InputTypes /** * IndicatorPoint findUnique */ export type IndicatorPointFindUniqueArgs = { /** * Select specific fields to fetch from the IndicatorPoint */ select?: Prisma.IndicatorPointSelect | null /** * Omit specific fields from the IndicatorPoint */ omit?: Prisma.IndicatorPointOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.IndicatorPointInclude | null /** * Filter, which IndicatorPoint to fetch. */ where: Prisma.IndicatorPointWhereUniqueInput } /** * IndicatorPoint findUniqueOrThrow */ export type IndicatorPointFindUniqueOrThrowArgs = { /** * Select specific fields to fetch from the IndicatorPoint */ select?: Prisma.IndicatorPointSelect | null /** * Omit specific fields from the IndicatorPoint */ omit?: Prisma.IndicatorPointOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.IndicatorPointInclude | null /** * Filter, which IndicatorPoint to fetch. */ where: Prisma.IndicatorPointWhereUniqueInput } /** * IndicatorPoint findFirst */ export type IndicatorPointFindFirstArgs = { /** * Select specific fields to fetch from the IndicatorPoint */ select?: Prisma.IndicatorPointSelect | null /** * Omit specific fields from the IndicatorPoint */ omit?: Prisma.IndicatorPointOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.IndicatorPointInclude | null /** * Filter, which IndicatorPoint to fetch. */ where?: Prisma.IndicatorPointWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IndicatorPoints to fetch. */ orderBy?: Prisma.IndicatorPointOrderByWithRelationInput | Prisma.IndicatorPointOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for IndicatorPoints. */ cursor?: Prisma.IndicatorPointWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IndicatorPoints 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` IndicatorPoints. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of IndicatorPoints. */ distinct?: Prisma.IndicatorPointScalarFieldEnum | Prisma.IndicatorPointScalarFieldEnum[] } /** * IndicatorPoint findFirstOrThrow */ export type IndicatorPointFindFirstOrThrowArgs = { /** * Select specific fields to fetch from the IndicatorPoint */ select?: Prisma.IndicatorPointSelect | null /** * Omit specific fields from the IndicatorPoint */ omit?: Prisma.IndicatorPointOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.IndicatorPointInclude | null /** * Filter, which IndicatorPoint to fetch. */ where?: Prisma.IndicatorPointWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IndicatorPoints to fetch. */ orderBy?: Prisma.IndicatorPointOrderByWithRelationInput | Prisma.IndicatorPointOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for searching for IndicatorPoints. */ cursor?: Prisma.IndicatorPointWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IndicatorPoints 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` IndicatorPoints. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of IndicatorPoints. */ distinct?: Prisma.IndicatorPointScalarFieldEnum | Prisma.IndicatorPointScalarFieldEnum[] } /** * IndicatorPoint findMany */ export type IndicatorPointFindManyArgs = { /** * Select specific fields to fetch from the IndicatorPoint */ select?: Prisma.IndicatorPointSelect | null /** * Omit specific fields from the IndicatorPoint */ omit?: Prisma.IndicatorPointOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.IndicatorPointInclude | null /** * Filter, which IndicatorPoints to fetch. */ where?: Prisma.IndicatorPointWhereInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs} * * Determine the order of IndicatorPoints to fetch. */ orderBy?: Prisma.IndicatorPointOrderByWithRelationInput | Prisma.IndicatorPointOrderByWithRelationInput[] /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs} * * Sets the position for listing IndicatorPoints. */ cursor?: Prisma.IndicatorPointWhereUniqueInput /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs} * * Take `±n` IndicatorPoints 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` IndicatorPoints. */ skip?: number /** * {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs} * * Filter by unique combinations of IndicatorPoints. */ distinct?: Prisma.IndicatorPointScalarFieldEnum | Prisma.IndicatorPointScalarFieldEnum[] } /** * IndicatorPoint create */ export type IndicatorPointCreateArgs = { /** * Select specific fields to fetch from the IndicatorPoint */ select?: Prisma.IndicatorPointSelect | null /** * Omit specific fields from the IndicatorPoint */ omit?: Prisma.IndicatorPointOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.IndicatorPointInclude | null /** * The data needed to create a IndicatorPoint. */ data: Prisma.XOR } /** * IndicatorPoint createMany */ export type IndicatorPointCreateManyArgs = { /** * The data used to create many IndicatorPoints. */ data: Prisma.IndicatorPointCreateManyInput | Prisma.IndicatorPointCreateManyInput[] skipDuplicates?: boolean } /** * IndicatorPoint update */ export type IndicatorPointUpdateArgs = { /** * Select specific fields to fetch from the IndicatorPoint */ select?: Prisma.IndicatorPointSelect | null /** * Omit specific fields from the IndicatorPoint */ omit?: Prisma.IndicatorPointOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.IndicatorPointInclude | null /** * The data needed to update a IndicatorPoint. */ data: Prisma.XOR /** * Choose, which IndicatorPoint to update. */ where: Prisma.IndicatorPointWhereUniqueInput } /** * IndicatorPoint updateMany */ export type IndicatorPointUpdateManyArgs = { /** * The data used to update IndicatorPoints. */ data: Prisma.XOR /** * Filter which IndicatorPoints to update */ where?: Prisma.IndicatorPointWhereInput /** * Limit how many IndicatorPoints to update. */ limit?: number } /** * IndicatorPoint upsert */ export type IndicatorPointUpsertArgs = { /** * Select specific fields to fetch from the IndicatorPoint */ select?: Prisma.IndicatorPointSelect | null /** * Omit specific fields from the IndicatorPoint */ omit?: Prisma.IndicatorPointOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.IndicatorPointInclude | null /** * The filter to search for the IndicatorPoint to update in case it exists. */ where: Prisma.IndicatorPointWhereUniqueInput /** * In case the IndicatorPoint found by the `where` argument doesn't exist, create a new IndicatorPoint with this data. */ create: Prisma.XOR /** * In case the IndicatorPoint was found with the provided `where` argument, update it with this data. */ update: Prisma.XOR } /** * IndicatorPoint delete */ export type IndicatorPointDeleteArgs = { /** * Select specific fields to fetch from the IndicatorPoint */ select?: Prisma.IndicatorPointSelect | null /** * Omit specific fields from the IndicatorPoint */ omit?: Prisma.IndicatorPointOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.IndicatorPointInclude | null /** * Filter which IndicatorPoint to delete. */ where: Prisma.IndicatorPointWhereUniqueInput } /** * IndicatorPoint deleteMany */ export type IndicatorPointDeleteManyArgs = { /** * Filter which IndicatorPoints to delete */ where?: Prisma.IndicatorPointWhereInput /** * Limit how many IndicatorPoints to delete. */ limit?: number } /** * IndicatorPoint without action */ export type IndicatorPointDefaultArgs = { /** * Select specific fields to fetch from the IndicatorPoint */ select?: Prisma.IndicatorPointSelect | null /** * Omit specific fields from the IndicatorPoint */ omit?: Prisma.IndicatorPointOmit | null /** * Choose, which related nodes to fetch as well */ include?: Prisma.IndicatorPointInclude | null }