1322 lines
50 KiB
TypeScript
1322 lines
50 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 `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<Prisma.$IndicatorPointPayload>
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* 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<T extends IndicatorPointAggregateArgs> = {
|
|
[P in keyof T & keyof AggregateIndicatorPoint]: P extends '_count' | 'count'
|
|
? T[P] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T[P], AggregateIndicatorPoint[P]>
|
|
: Prisma.GetScalarType<T[P], AggregateIndicatorPoint[P]>
|
|
}
|
|
|
|
|
|
|
|
|
|
export type IndicatorPointGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
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<T extends IndicatorPointGroupByArgs> = Prisma.PrismaPromise<
|
|
Array<
|
|
Prisma.PickEnumerable<IndicatorPointGroupByOutputType, T['by']> &
|
|
{
|
|
[P in ((keyof T) & (keyof IndicatorPointGroupByOutputType))]: P extends '_count'
|
|
? T[P] extends boolean
|
|
? number
|
|
: Prisma.GetScalarType<T[P], IndicatorPointGroupByOutputType[P]>
|
|
: Prisma.GetScalarType<T[P], IndicatorPointGroupByOutputType[P]>
|
|
}
|
|
>
|
|
>
|
|
|
|
|
|
|
|
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<Prisma.IndicatorScalarRelationFilter, Prisma.IndicatorWhereInput>
|
|
}
|
|
|
|
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<Prisma.IndicatorScalarRelationFilter, Prisma.IndicatorWhereInput>
|
|
}, "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> | 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> | 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> | 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> | 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<Prisma.IndicatorPointCreateWithoutIndicatorInput, Prisma.IndicatorPointUncheckedCreateWithoutIndicatorInput>
|
|
}
|
|
|
|
export type IndicatorPointCreateManyIndicatorInputEnvelope = {
|
|
data: Prisma.IndicatorPointCreateManyIndicatorInput | Prisma.IndicatorPointCreateManyIndicatorInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
export type IndicatorPointUpsertWithWhereUniqueWithoutIndicatorInput = {
|
|
where: Prisma.IndicatorPointWhereUniqueInput
|
|
update: Prisma.XOR<Prisma.IndicatorPointUpdateWithoutIndicatorInput, Prisma.IndicatorPointUncheckedUpdateWithoutIndicatorInput>
|
|
create: Prisma.XOR<Prisma.IndicatorPointCreateWithoutIndicatorInput, Prisma.IndicatorPointUncheckedCreateWithoutIndicatorInput>
|
|
}
|
|
|
|
export type IndicatorPointUpdateWithWhereUniqueWithoutIndicatorInput = {
|
|
where: Prisma.IndicatorPointWhereUniqueInput
|
|
data: Prisma.XOR<Prisma.IndicatorPointUpdateWithoutIndicatorInput, Prisma.IndicatorPointUncheckedUpdateWithoutIndicatorInput>
|
|
}
|
|
|
|
export type IndicatorPointUpdateManyWithWhereWithoutIndicatorInput = {
|
|
where: Prisma.IndicatorPointScalarWhereInput
|
|
data: Prisma.XOR<Prisma.IndicatorPointUpdateManyMutationInput, Prisma.IndicatorPointUncheckedUpdateManyWithoutIndicatorInput>
|
|
}
|
|
|
|
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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
|
|
id?: boolean
|
|
indicatorId?: boolean
|
|
period?: boolean
|
|
value?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
|
|
}, ExtArgs["result"]["indicatorPoint"]>
|
|
|
|
|
|
|
|
export type IndicatorPointSelectScalar = {
|
|
id?: boolean
|
|
indicatorId?: boolean
|
|
period?: boolean
|
|
value?: boolean
|
|
createdAt?: boolean
|
|
updatedAt?: boolean
|
|
}
|
|
|
|
export type IndicatorPointOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "indicatorId" | "period" | "value" | "createdAt" | "updatedAt", ExtArgs["result"]["indicatorPoint"]>
|
|
export type IndicatorPointInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
indicator?: boolean | Prisma.IndicatorDefaultArgs<ExtArgs>
|
|
}
|
|
|
|
export type $IndicatorPointPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
name: "IndicatorPoint"
|
|
objects: {
|
|
indicator: Prisma.$IndicatorPayload<ExtArgs>
|
|
}
|
|
scalars: runtime.Types.Extensions.GetPayloadResult<{
|
|
id: number
|
|
indicatorId: number
|
|
period: string
|
|
value: number
|
|
createdAt: Date
|
|
updatedAt: Date
|
|
}, ExtArgs["result"]["indicatorPoint"]>
|
|
composites: {}
|
|
}
|
|
|
|
export type IndicatorPointGetPayload<S extends boolean | null | undefined | IndicatorPointDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$IndicatorPointPayload, S>
|
|
|
|
export type IndicatorPointCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
|
|
Omit<IndicatorPointFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
|
|
select?: IndicatorPointCountAggregateInputType | true
|
|
}
|
|
|
|
export interface IndicatorPointDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
|
|
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['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<T extends IndicatorPointFindUniqueArgs>(args: Prisma.SelectSubset<T, IndicatorPointFindUniqueArgs<ExtArgs>>): Prisma.Prisma__IndicatorPointClient<runtime.Types.Result.GetResult<Prisma.$IndicatorPointPayload<ExtArgs>, 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<T extends IndicatorPointFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, IndicatorPointFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__IndicatorPointClient<runtime.Types.Result.GetResult<Prisma.$IndicatorPointPayload<ExtArgs>, 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<T extends IndicatorPointFindFirstArgs>(args?: Prisma.SelectSubset<T, IndicatorPointFindFirstArgs<ExtArgs>>): Prisma.Prisma__IndicatorPointClient<runtime.Types.Result.GetResult<Prisma.$IndicatorPointPayload<ExtArgs>, 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<T extends IndicatorPointFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, IndicatorPointFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__IndicatorPointClient<runtime.Types.Result.GetResult<Prisma.$IndicatorPointPayload<ExtArgs>, 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<T extends IndicatorPointFindManyArgs>(args?: Prisma.SelectSubset<T, IndicatorPointFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$IndicatorPointPayload<ExtArgs>, 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<T extends IndicatorPointCreateArgs>(args: Prisma.SelectSubset<T, IndicatorPointCreateArgs<ExtArgs>>): Prisma.Prisma__IndicatorPointClient<runtime.Types.Result.GetResult<Prisma.$IndicatorPointPayload<ExtArgs>, 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<T extends IndicatorPointCreateManyArgs>(args?: Prisma.SelectSubset<T, IndicatorPointCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends IndicatorPointDeleteArgs>(args: Prisma.SelectSubset<T, IndicatorPointDeleteArgs<ExtArgs>>): Prisma.Prisma__IndicatorPointClient<runtime.Types.Result.GetResult<Prisma.$IndicatorPointPayload<ExtArgs>, 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<T extends IndicatorPointUpdateArgs>(args: Prisma.SelectSubset<T, IndicatorPointUpdateArgs<ExtArgs>>): Prisma.Prisma__IndicatorPointClient<runtime.Types.Result.GetResult<Prisma.$IndicatorPointPayload<ExtArgs>, 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<T extends IndicatorPointDeleteManyArgs>(args?: Prisma.SelectSubset<T, IndicatorPointDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends IndicatorPointUpdateManyArgs>(args: Prisma.SelectSubset<T, IndicatorPointUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
|
|
|
|
/**
|
|
* 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<T extends IndicatorPointUpsertArgs>(args: Prisma.SelectSubset<T, IndicatorPointUpsertArgs<ExtArgs>>): Prisma.Prisma__IndicatorPointClient<runtime.Types.Result.GetResult<Prisma.$IndicatorPointPayload<ExtArgs>, 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<T extends IndicatorPointCountArgs>(
|
|
args?: Prisma.Subset<T, IndicatorPointCountArgs>,
|
|
): Prisma.PrismaPromise<
|
|
T extends runtime.Types.Utils.Record<'select', any>
|
|
? T['select'] extends true
|
|
? number
|
|
: Prisma.GetScalarType<T['select'], IndicatorPointCountAggregateOutputType>
|
|
: 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<T extends IndicatorPointAggregateArgs>(args: Prisma.Subset<T, IndicatorPointAggregateArgs>): Prisma.PrismaPromise<GetIndicatorPointAggregateType<T>>
|
|
|
|
/**
|
|
* 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<T>>,
|
|
Prisma.Extends<'take', Prisma.Keys<T>>
|
|
>,
|
|
OrderByArg extends Prisma.True extends HasSelectOrTake
|
|
? { orderBy: IndicatorPointGroupByArgs['orderBy'] }
|
|
: { orderBy?: IndicatorPointGroupByArgs['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, IndicatorPointGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetIndicatorPointGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
|
|
/**
|
|
* 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<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
|
|
readonly [Symbol.toStringTag]: "PrismaPromise"
|
|
indicator<T extends Prisma.IndicatorDefaultArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.IndicatorDefaultArgs<ExtArgs>>): Prisma.Prisma__IndicatorClient<runtime.Types.Result.GetResult<Prisma.$IndicatorPayload<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 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IndicatorPoint
|
|
*/
|
|
select?: Prisma.IndicatorPointSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IndicatorPoint
|
|
*/
|
|
omit?: Prisma.IndicatorPointOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IndicatorPointInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which IndicatorPoint to fetch.
|
|
*/
|
|
where: Prisma.IndicatorPointWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* IndicatorPoint findUniqueOrThrow
|
|
*/
|
|
export type IndicatorPointFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IndicatorPoint
|
|
*/
|
|
select?: Prisma.IndicatorPointSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IndicatorPoint
|
|
*/
|
|
omit?: Prisma.IndicatorPointOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IndicatorPointInclude<ExtArgs> | null
|
|
/**
|
|
* Filter, which IndicatorPoint to fetch.
|
|
*/
|
|
where: Prisma.IndicatorPointWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* IndicatorPoint findFirst
|
|
*/
|
|
export type IndicatorPointFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IndicatorPoint
|
|
*/
|
|
select?: Prisma.IndicatorPointSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IndicatorPoint
|
|
*/
|
|
omit?: Prisma.IndicatorPointOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IndicatorPointInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IndicatorPoint
|
|
*/
|
|
select?: Prisma.IndicatorPointSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IndicatorPoint
|
|
*/
|
|
omit?: Prisma.IndicatorPointOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IndicatorPointInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IndicatorPoint
|
|
*/
|
|
select?: Prisma.IndicatorPointSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IndicatorPoint
|
|
*/
|
|
omit?: Prisma.IndicatorPointOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IndicatorPointInclude<ExtArgs> | 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<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IndicatorPoint
|
|
*/
|
|
select?: Prisma.IndicatorPointSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IndicatorPoint
|
|
*/
|
|
omit?: Prisma.IndicatorPointOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IndicatorPointInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to create a IndicatorPoint.
|
|
*/
|
|
data: Prisma.XOR<Prisma.IndicatorPointCreateInput, Prisma.IndicatorPointUncheckedCreateInput>
|
|
}
|
|
|
|
/**
|
|
* IndicatorPoint createMany
|
|
*/
|
|
export type IndicatorPointCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to create many IndicatorPoints.
|
|
*/
|
|
data: Prisma.IndicatorPointCreateManyInput | Prisma.IndicatorPointCreateManyInput[]
|
|
skipDuplicates?: boolean
|
|
}
|
|
|
|
/**
|
|
* IndicatorPoint update
|
|
*/
|
|
export type IndicatorPointUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IndicatorPoint
|
|
*/
|
|
select?: Prisma.IndicatorPointSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IndicatorPoint
|
|
*/
|
|
omit?: Prisma.IndicatorPointOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IndicatorPointInclude<ExtArgs> | null
|
|
/**
|
|
* The data needed to update a IndicatorPoint.
|
|
*/
|
|
data: Prisma.XOR<Prisma.IndicatorPointUpdateInput, Prisma.IndicatorPointUncheckedUpdateInput>
|
|
/**
|
|
* Choose, which IndicatorPoint to update.
|
|
*/
|
|
where: Prisma.IndicatorPointWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* IndicatorPoint updateMany
|
|
*/
|
|
export type IndicatorPointUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* The data used to update IndicatorPoints.
|
|
*/
|
|
data: Prisma.XOR<Prisma.IndicatorPointUpdateManyMutationInput, Prisma.IndicatorPointUncheckedUpdateManyInput>
|
|
/**
|
|
* Filter which IndicatorPoints to update
|
|
*/
|
|
where?: Prisma.IndicatorPointWhereInput
|
|
/**
|
|
* Limit how many IndicatorPoints to update.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* IndicatorPoint upsert
|
|
*/
|
|
export type IndicatorPointUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IndicatorPoint
|
|
*/
|
|
select?: Prisma.IndicatorPointSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IndicatorPoint
|
|
*/
|
|
omit?: Prisma.IndicatorPointOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IndicatorPointInclude<ExtArgs> | 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<Prisma.IndicatorPointCreateInput, Prisma.IndicatorPointUncheckedCreateInput>
|
|
/**
|
|
* In case the IndicatorPoint was found with the provided `where` argument, update it with this data.
|
|
*/
|
|
update: Prisma.XOR<Prisma.IndicatorPointUpdateInput, Prisma.IndicatorPointUncheckedUpdateInput>
|
|
}
|
|
|
|
/**
|
|
* IndicatorPoint delete
|
|
*/
|
|
export type IndicatorPointDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IndicatorPoint
|
|
*/
|
|
select?: Prisma.IndicatorPointSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IndicatorPoint
|
|
*/
|
|
omit?: Prisma.IndicatorPointOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IndicatorPointInclude<ExtArgs> | null
|
|
/**
|
|
* Filter which IndicatorPoint to delete.
|
|
*/
|
|
where: Prisma.IndicatorPointWhereUniqueInput
|
|
}
|
|
|
|
/**
|
|
* IndicatorPoint deleteMany
|
|
*/
|
|
export type IndicatorPointDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Filter which IndicatorPoints to delete
|
|
*/
|
|
where?: Prisma.IndicatorPointWhereInput
|
|
/**
|
|
* Limit how many IndicatorPoints to delete.
|
|
*/
|
|
limit?: number
|
|
}
|
|
|
|
/**
|
|
* IndicatorPoint without action
|
|
*/
|
|
export type IndicatorPointDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
|
|
/**
|
|
* Select specific fields to fetch from the IndicatorPoint
|
|
*/
|
|
select?: Prisma.IndicatorPointSelect<ExtArgs> | null
|
|
/**
|
|
* Omit specific fields from the IndicatorPoint
|
|
*/
|
|
omit?: Prisma.IndicatorPointOmit<ExtArgs> | null
|
|
/**
|
|
* Choose, which related nodes to fetch as well
|
|
*/
|
|
include?: Prisma.IndicatorPointInclude<ExtArgs> | null
|
|
}
|