Files
HiveGrid-Wireframes/03 Quellen und Referenzen/hivegrid-cloud/packages/db/generated/prisma/client/models/PipelineAggregateSnapshot.ts
T
2026-07-08 16:15:37 +02:00

1511 lines
64 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 `PipelineAggregateSnapshot` 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 PipelineAggregateSnapshot
*
*/
export type PipelineAggregateSnapshotModel = runtime.Types.Result.DefaultSelection<Prisma.$PipelineAggregateSnapshotPayload>
export type AggregatePipelineAggregateSnapshot = {
_count: PipelineAggregateSnapshotCountAggregateOutputType | null
_avg: PipelineAggregateSnapshotAvgAggregateOutputType | null
_sum: PipelineAggregateSnapshotSumAggregateOutputType | null
_min: PipelineAggregateSnapshotMinAggregateOutputType | null
_max: PipelineAggregateSnapshotMaxAggregateOutputType | null
}
export type PipelineAggregateSnapshotAvgAggregateOutputType = {
projectCount: number | null
potentialValue: runtime.Decimal | null
orderVolume: runtime.Decimal | null
weightedForecast: runtime.Decimal | null
realizedRevenue: runtime.Decimal | null
lostCount: number | null
stageConversionRate: runtime.Decimal | null
}
export type PipelineAggregateSnapshotSumAggregateOutputType = {
projectCount: number | null
potentialValue: runtime.Decimal | null
orderVolume: runtime.Decimal | null
weightedForecast: runtime.Decimal | null
realizedRevenue: runtime.Decimal | null
lostCount: number | null
stageConversionRate: runtime.Decimal | null
}
export type PipelineAggregateSnapshotMinAggregateOutputType = {
id: string | null
tenantId: string | null
pipelineId: string | null
stageId: string | null
scopeKey: string | null
projectCount: number | null
potentialValue: runtime.Decimal | null
orderVolume: runtime.Decimal | null
weightedForecast: runtime.Decimal | null
realizedRevenue: runtime.Decimal | null
lostCount: number | null
stageConversionRate: runtime.Decimal | null
isDemoDataIncluded: boolean | null
calculatedAt: Date | null
}
export type PipelineAggregateSnapshotMaxAggregateOutputType = {
id: string | null
tenantId: string | null
pipelineId: string | null
stageId: string | null
scopeKey: string | null
projectCount: number | null
potentialValue: runtime.Decimal | null
orderVolume: runtime.Decimal | null
weightedForecast: runtime.Decimal | null
realizedRevenue: runtime.Decimal | null
lostCount: number | null
stageConversionRate: runtime.Decimal | null
isDemoDataIncluded: boolean | null
calculatedAt: Date | null
}
export type PipelineAggregateSnapshotCountAggregateOutputType = {
id: number
tenantId: number
pipelineId: number
stageId: number
scopeKey: number
projectCount: number
potentialValue: number
orderVolume: number
weightedForecast: number
realizedRevenue: number
lostCount: number
stageConversionRate: number
lostReasonDistribution: number
isDemoDataIncluded: number
calculatedAt: number
_all: number
}
export type PipelineAggregateSnapshotAvgAggregateInputType = {
projectCount?: true
potentialValue?: true
orderVolume?: true
weightedForecast?: true
realizedRevenue?: true
lostCount?: true
stageConversionRate?: true
}
export type PipelineAggregateSnapshotSumAggregateInputType = {
projectCount?: true
potentialValue?: true
orderVolume?: true
weightedForecast?: true
realizedRevenue?: true
lostCount?: true
stageConversionRate?: true
}
export type PipelineAggregateSnapshotMinAggregateInputType = {
id?: true
tenantId?: true
pipelineId?: true
stageId?: true
scopeKey?: true
projectCount?: true
potentialValue?: true
orderVolume?: true
weightedForecast?: true
realizedRevenue?: true
lostCount?: true
stageConversionRate?: true
isDemoDataIncluded?: true
calculatedAt?: true
}
export type PipelineAggregateSnapshotMaxAggregateInputType = {
id?: true
tenantId?: true
pipelineId?: true
stageId?: true
scopeKey?: true
projectCount?: true
potentialValue?: true
orderVolume?: true
weightedForecast?: true
realizedRevenue?: true
lostCount?: true
stageConversionRate?: true
isDemoDataIncluded?: true
calculatedAt?: true
}
export type PipelineAggregateSnapshotCountAggregateInputType = {
id?: true
tenantId?: true
pipelineId?: true
stageId?: true
scopeKey?: true
projectCount?: true
potentialValue?: true
orderVolume?: true
weightedForecast?: true
realizedRevenue?: true
lostCount?: true
stageConversionRate?: true
lostReasonDistribution?: true
isDemoDataIncluded?: true
calculatedAt?: true
_all?: true
}
export type PipelineAggregateSnapshotAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which PipelineAggregateSnapshot to aggregate.
*/
where?: Prisma.PipelineAggregateSnapshotWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of PipelineAggregateSnapshots to fetch.
*/
orderBy?: Prisma.PipelineAggregateSnapshotOrderByWithRelationInput | Prisma.PipelineAggregateSnapshotOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.PipelineAggregateSnapshotWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` PipelineAggregateSnapshots 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` PipelineAggregateSnapshots.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned PipelineAggregateSnapshots
**/
_count?: true | PipelineAggregateSnapshotCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: PipelineAggregateSnapshotAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: PipelineAggregateSnapshotSumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: PipelineAggregateSnapshotMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: PipelineAggregateSnapshotMaxAggregateInputType
}
export type GetPipelineAggregateSnapshotAggregateType<T extends PipelineAggregateSnapshotAggregateArgs> = {
[P in keyof T & keyof AggregatePipelineAggregateSnapshot]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregatePipelineAggregateSnapshot[P]>
: Prisma.GetScalarType<T[P], AggregatePipelineAggregateSnapshot[P]>
}
export type PipelineAggregateSnapshotGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.PipelineAggregateSnapshotWhereInput
orderBy?: Prisma.PipelineAggregateSnapshotOrderByWithAggregationInput | Prisma.PipelineAggregateSnapshotOrderByWithAggregationInput[]
by: Prisma.PipelineAggregateSnapshotScalarFieldEnum[] | Prisma.PipelineAggregateSnapshotScalarFieldEnum
having?: Prisma.PipelineAggregateSnapshotScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: PipelineAggregateSnapshotCountAggregateInputType | true
_avg?: PipelineAggregateSnapshotAvgAggregateInputType
_sum?: PipelineAggregateSnapshotSumAggregateInputType
_min?: PipelineAggregateSnapshotMinAggregateInputType
_max?: PipelineAggregateSnapshotMaxAggregateInputType
}
export type PipelineAggregateSnapshotGroupByOutputType = {
id: string
tenantId: string
pipelineId: string
stageId: string | null
scopeKey: string
projectCount: number
potentialValue: runtime.Decimal
orderVolume: runtime.Decimal
weightedForecast: runtime.Decimal
realizedRevenue: runtime.Decimal
lostCount: number
stageConversionRate: runtime.Decimal | null
lostReasonDistribution: runtime.JsonValue
isDemoDataIncluded: boolean
calculatedAt: Date
_count: PipelineAggregateSnapshotCountAggregateOutputType | null
_avg: PipelineAggregateSnapshotAvgAggregateOutputType | null
_sum: PipelineAggregateSnapshotSumAggregateOutputType | null
_min: PipelineAggregateSnapshotMinAggregateOutputType | null
_max: PipelineAggregateSnapshotMaxAggregateOutputType | null
}
export type GetPipelineAggregateSnapshotGroupByPayload<T extends PipelineAggregateSnapshotGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<PipelineAggregateSnapshotGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof PipelineAggregateSnapshotGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], PipelineAggregateSnapshotGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], PipelineAggregateSnapshotGroupByOutputType[P]>
}
>
>
export type PipelineAggregateSnapshotWhereInput = {
AND?: Prisma.PipelineAggregateSnapshotWhereInput | Prisma.PipelineAggregateSnapshotWhereInput[]
OR?: Prisma.PipelineAggregateSnapshotWhereInput[]
NOT?: Prisma.PipelineAggregateSnapshotWhereInput | Prisma.PipelineAggregateSnapshotWhereInput[]
id?: Prisma.StringFilter<"PipelineAggregateSnapshot"> | string
tenantId?: Prisma.StringFilter<"PipelineAggregateSnapshot"> | string
pipelineId?: Prisma.StringFilter<"PipelineAggregateSnapshot"> | string
stageId?: Prisma.StringNullableFilter<"PipelineAggregateSnapshot"> | string | null
scopeKey?: Prisma.StringFilter<"PipelineAggregateSnapshot"> | string
projectCount?: Prisma.IntFilter<"PipelineAggregateSnapshot"> | number
potentialValue?: Prisma.DecimalFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
orderVolume?: Prisma.DecimalFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
weightedForecast?: Prisma.DecimalFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
realizedRevenue?: Prisma.DecimalFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
lostCount?: Prisma.IntFilter<"PipelineAggregateSnapshot"> | number
stageConversionRate?: Prisma.DecimalNullableFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
lostReasonDistribution?: Prisma.JsonFilter<"PipelineAggregateSnapshot">
isDemoDataIncluded?: Prisma.BoolFilter<"PipelineAggregateSnapshot"> | boolean
calculatedAt?: Prisma.DateTimeFilter<"PipelineAggregateSnapshot"> | Date | string
}
export type PipelineAggregateSnapshotOrderByWithRelationInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
pipelineId?: Prisma.SortOrder
stageId?: Prisma.SortOrderInput | Prisma.SortOrder
scopeKey?: Prisma.SortOrder
projectCount?: Prisma.SortOrder
potentialValue?: Prisma.SortOrder
orderVolume?: Prisma.SortOrder
weightedForecast?: Prisma.SortOrder
realizedRevenue?: Prisma.SortOrder
lostCount?: Prisma.SortOrder
stageConversionRate?: Prisma.SortOrderInput | Prisma.SortOrder
lostReasonDistribution?: Prisma.SortOrder
isDemoDataIncluded?: Prisma.SortOrder
calculatedAt?: Prisma.SortOrder
}
export type PipelineAggregateSnapshotWhereUniqueInput = Prisma.AtLeast<{
id?: string
tenantId_pipelineId_scopeKey?: Prisma.PipelineAggregateSnapshotTenantIdPipelineIdScopeKeyCompoundUniqueInput
AND?: Prisma.PipelineAggregateSnapshotWhereInput | Prisma.PipelineAggregateSnapshotWhereInput[]
OR?: Prisma.PipelineAggregateSnapshotWhereInput[]
NOT?: Prisma.PipelineAggregateSnapshotWhereInput | Prisma.PipelineAggregateSnapshotWhereInput[]
tenantId?: Prisma.StringFilter<"PipelineAggregateSnapshot"> | string
pipelineId?: Prisma.StringFilter<"PipelineAggregateSnapshot"> | string
stageId?: Prisma.StringNullableFilter<"PipelineAggregateSnapshot"> | string | null
scopeKey?: Prisma.StringFilter<"PipelineAggregateSnapshot"> | string
projectCount?: Prisma.IntFilter<"PipelineAggregateSnapshot"> | number
potentialValue?: Prisma.DecimalFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
orderVolume?: Prisma.DecimalFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
weightedForecast?: Prisma.DecimalFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
realizedRevenue?: Prisma.DecimalFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
lostCount?: Prisma.IntFilter<"PipelineAggregateSnapshot"> | number
stageConversionRate?: Prisma.DecimalNullableFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
lostReasonDistribution?: Prisma.JsonFilter<"PipelineAggregateSnapshot">
isDemoDataIncluded?: Prisma.BoolFilter<"PipelineAggregateSnapshot"> | boolean
calculatedAt?: Prisma.DateTimeFilter<"PipelineAggregateSnapshot"> | Date | string
}, "id" | "tenantId_pipelineId_scopeKey">
export type PipelineAggregateSnapshotOrderByWithAggregationInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
pipelineId?: Prisma.SortOrder
stageId?: Prisma.SortOrderInput | Prisma.SortOrder
scopeKey?: Prisma.SortOrder
projectCount?: Prisma.SortOrder
potentialValue?: Prisma.SortOrder
orderVolume?: Prisma.SortOrder
weightedForecast?: Prisma.SortOrder
realizedRevenue?: Prisma.SortOrder
lostCount?: Prisma.SortOrder
stageConversionRate?: Prisma.SortOrderInput | Prisma.SortOrder
lostReasonDistribution?: Prisma.SortOrder
isDemoDataIncluded?: Prisma.SortOrder
calculatedAt?: Prisma.SortOrder
_count?: Prisma.PipelineAggregateSnapshotCountOrderByAggregateInput
_avg?: Prisma.PipelineAggregateSnapshotAvgOrderByAggregateInput
_max?: Prisma.PipelineAggregateSnapshotMaxOrderByAggregateInput
_min?: Prisma.PipelineAggregateSnapshotMinOrderByAggregateInput
_sum?: Prisma.PipelineAggregateSnapshotSumOrderByAggregateInput
}
export type PipelineAggregateSnapshotScalarWhereWithAggregatesInput = {
AND?: Prisma.PipelineAggregateSnapshotScalarWhereWithAggregatesInput | Prisma.PipelineAggregateSnapshotScalarWhereWithAggregatesInput[]
OR?: Prisma.PipelineAggregateSnapshotScalarWhereWithAggregatesInput[]
NOT?: Prisma.PipelineAggregateSnapshotScalarWhereWithAggregatesInput | Prisma.PipelineAggregateSnapshotScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"PipelineAggregateSnapshot"> | string
tenantId?: Prisma.StringWithAggregatesFilter<"PipelineAggregateSnapshot"> | string
pipelineId?: Prisma.StringWithAggregatesFilter<"PipelineAggregateSnapshot"> | string
stageId?: Prisma.StringNullableWithAggregatesFilter<"PipelineAggregateSnapshot"> | string | null
scopeKey?: Prisma.StringWithAggregatesFilter<"PipelineAggregateSnapshot"> | string
projectCount?: Prisma.IntWithAggregatesFilter<"PipelineAggregateSnapshot"> | number
potentialValue?: Prisma.DecimalWithAggregatesFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
orderVolume?: Prisma.DecimalWithAggregatesFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
weightedForecast?: Prisma.DecimalWithAggregatesFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
realizedRevenue?: Prisma.DecimalWithAggregatesFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string
lostCount?: Prisma.IntWithAggregatesFilter<"PipelineAggregateSnapshot"> | number
stageConversionRate?: Prisma.DecimalNullableWithAggregatesFilter<"PipelineAggregateSnapshot"> | runtime.Decimal | runtime.DecimalJsLike | number | string | null
lostReasonDistribution?: Prisma.JsonWithAggregatesFilter<"PipelineAggregateSnapshot">
isDemoDataIncluded?: Prisma.BoolWithAggregatesFilter<"PipelineAggregateSnapshot"> | boolean
calculatedAt?: Prisma.DateTimeWithAggregatesFilter<"PipelineAggregateSnapshot"> | Date | string
}
export type PipelineAggregateSnapshotCreateInput = {
id?: string
tenantId: string
pipelineId: string
stageId?: string | null
scopeKey: string
projectCount?: number
potentialValue?: runtime.Decimal | runtime.DecimalJsLike | number | string
orderVolume?: runtime.Decimal | runtime.DecimalJsLike | number | string
weightedForecast?: runtime.Decimal | runtime.DecimalJsLike | number | string
realizedRevenue?: runtime.Decimal | runtime.DecimalJsLike | number | string
lostCount?: number
stageConversionRate?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
lostReasonDistribution?: Prisma.JsonNullValueInput | runtime.InputJsonValue
isDemoDataIncluded?: boolean
calculatedAt?: Date | string
}
export type PipelineAggregateSnapshotUncheckedCreateInput = {
id?: string
tenantId: string
pipelineId: string
stageId?: string | null
scopeKey: string
projectCount?: number
potentialValue?: runtime.Decimal | runtime.DecimalJsLike | number | string
orderVolume?: runtime.Decimal | runtime.DecimalJsLike | number | string
weightedForecast?: runtime.Decimal | runtime.DecimalJsLike | number | string
realizedRevenue?: runtime.Decimal | runtime.DecimalJsLike | number | string
lostCount?: number
stageConversionRate?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
lostReasonDistribution?: Prisma.JsonNullValueInput | runtime.InputJsonValue
isDemoDataIncluded?: boolean
calculatedAt?: Date | string
}
export type PipelineAggregateSnapshotUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
pipelineId?: Prisma.StringFieldUpdateOperationsInput | string
stageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scopeKey?: Prisma.StringFieldUpdateOperationsInput | string
projectCount?: Prisma.IntFieldUpdateOperationsInput | number
potentialValue?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
orderVolume?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
weightedForecast?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
realizedRevenue?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
lostCount?: Prisma.IntFieldUpdateOperationsInput | number
stageConversionRate?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
lostReasonDistribution?: Prisma.JsonNullValueInput | runtime.InputJsonValue
isDemoDataIncluded?: Prisma.BoolFieldUpdateOperationsInput | boolean
calculatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type PipelineAggregateSnapshotUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
pipelineId?: Prisma.StringFieldUpdateOperationsInput | string
stageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scopeKey?: Prisma.StringFieldUpdateOperationsInput | string
projectCount?: Prisma.IntFieldUpdateOperationsInput | number
potentialValue?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
orderVolume?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
weightedForecast?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
realizedRevenue?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
lostCount?: Prisma.IntFieldUpdateOperationsInput | number
stageConversionRate?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
lostReasonDistribution?: Prisma.JsonNullValueInput | runtime.InputJsonValue
isDemoDataIncluded?: Prisma.BoolFieldUpdateOperationsInput | boolean
calculatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type PipelineAggregateSnapshotCreateManyInput = {
id?: string
tenantId: string
pipelineId: string
stageId?: string | null
scopeKey: string
projectCount?: number
potentialValue?: runtime.Decimal | runtime.DecimalJsLike | number | string
orderVolume?: runtime.Decimal | runtime.DecimalJsLike | number | string
weightedForecast?: runtime.Decimal | runtime.DecimalJsLike | number | string
realizedRevenue?: runtime.Decimal | runtime.DecimalJsLike | number | string
lostCount?: number
stageConversionRate?: runtime.Decimal | runtime.DecimalJsLike | number | string | null
lostReasonDistribution?: Prisma.JsonNullValueInput | runtime.InputJsonValue
isDemoDataIncluded?: boolean
calculatedAt?: Date | string
}
export type PipelineAggregateSnapshotUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
pipelineId?: Prisma.StringFieldUpdateOperationsInput | string
stageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scopeKey?: Prisma.StringFieldUpdateOperationsInput | string
projectCount?: Prisma.IntFieldUpdateOperationsInput | number
potentialValue?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
orderVolume?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
weightedForecast?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
realizedRevenue?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
lostCount?: Prisma.IntFieldUpdateOperationsInput | number
stageConversionRate?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
lostReasonDistribution?: Prisma.JsonNullValueInput | runtime.InputJsonValue
isDemoDataIncluded?: Prisma.BoolFieldUpdateOperationsInput | boolean
calculatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type PipelineAggregateSnapshotUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
tenantId?: Prisma.StringFieldUpdateOperationsInput | string
pipelineId?: Prisma.StringFieldUpdateOperationsInput | string
stageId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
scopeKey?: Prisma.StringFieldUpdateOperationsInput | string
projectCount?: Prisma.IntFieldUpdateOperationsInput | number
potentialValue?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
orderVolume?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
weightedForecast?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
realizedRevenue?: Prisma.DecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string
lostCount?: Prisma.IntFieldUpdateOperationsInput | number
stageConversionRate?: Prisma.NullableDecimalFieldUpdateOperationsInput | runtime.Decimal | runtime.DecimalJsLike | number | string | null
lostReasonDistribution?: Prisma.JsonNullValueInput | runtime.InputJsonValue
isDemoDataIncluded?: Prisma.BoolFieldUpdateOperationsInput | boolean
calculatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type PipelineAggregateSnapshotTenantIdPipelineIdScopeKeyCompoundUniqueInput = {
tenantId: string
pipelineId: string
scopeKey: string
}
export type PipelineAggregateSnapshotCountOrderByAggregateInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
pipelineId?: Prisma.SortOrder
stageId?: Prisma.SortOrder
scopeKey?: Prisma.SortOrder
projectCount?: Prisma.SortOrder
potentialValue?: Prisma.SortOrder
orderVolume?: Prisma.SortOrder
weightedForecast?: Prisma.SortOrder
realizedRevenue?: Prisma.SortOrder
lostCount?: Prisma.SortOrder
stageConversionRate?: Prisma.SortOrder
lostReasonDistribution?: Prisma.SortOrder
isDemoDataIncluded?: Prisma.SortOrder
calculatedAt?: Prisma.SortOrder
}
export type PipelineAggregateSnapshotAvgOrderByAggregateInput = {
projectCount?: Prisma.SortOrder
potentialValue?: Prisma.SortOrder
orderVolume?: Prisma.SortOrder
weightedForecast?: Prisma.SortOrder
realizedRevenue?: Prisma.SortOrder
lostCount?: Prisma.SortOrder
stageConversionRate?: Prisma.SortOrder
}
export type PipelineAggregateSnapshotMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
pipelineId?: Prisma.SortOrder
stageId?: Prisma.SortOrder
scopeKey?: Prisma.SortOrder
projectCount?: Prisma.SortOrder
potentialValue?: Prisma.SortOrder
orderVolume?: Prisma.SortOrder
weightedForecast?: Prisma.SortOrder
realizedRevenue?: Prisma.SortOrder
lostCount?: Prisma.SortOrder
stageConversionRate?: Prisma.SortOrder
isDemoDataIncluded?: Prisma.SortOrder
calculatedAt?: Prisma.SortOrder
}
export type PipelineAggregateSnapshotMinOrderByAggregateInput = {
id?: Prisma.SortOrder
tenantId?: Prisma.SortOrder
pipelineId?: Prisma.SortOrder
stageId?: Prisma.SortOrder
scopeKey?: Prisma.SortOrder
projectCount?: Prisma.SortOrder
potentialValue?: Prisma.SortOrder
orderVolume?: Prisma.SortOrder
weightedForecast?: Prisma.SortOrder
realizedRevenue?: Prisma.SortOrder
lostCount?: Prisma.SortOrder
stageConversionRate?: Prisma.SortOrder
isDemoDataIncluded?: Prisma.SortOrder
calculatedAt?: Prisma.SortOrder
}
export type PipelineAggregateSnapshotSumOrderByAggregateInput = {
projectCount?: Prisma.SortOrder
potentialValue?: Prisma.SortOrder
orderVolume?: Prisma.SortOrder
weightedForecast?: Prisma.SortOrder
realizedRevenue?: Prisma.SortOrder
lostCount?: Prisma.SortOrder
stageConversionRate?: Prisma.SortOrder
}
export type PipelineAggregateSnapshotSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
tenantId?: boolean
pipelineId?: boolean
stageId?: boolean
scopeKey?: boolean
projectCount?: boolean
potentialValue?: boolean
orderVolume?: boolean
weightedForecast?: boolean
realizedRevenue?: boolean
lostCount?: boolean
stageConversionRate?: boolean
lostReasonDistribution?: boolean
isDemoDataIncluded?: boolean
calculatedAt?: boolean
}, ExtArgs["result"]["pipelineAggregateSnapshot"]>
export type PipelineAggregateSnapshotSelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
tenantId?: boolean
pipelineId?: boolean
stageId?: boolean
scopeKey?: boolean
projectCount?: boolean
potentialValue?: boolean
orderVolume?: boolean
weightedForecast?: boolean
realizedRevenue?: boolean
lostCount?: boolean
stageConversionRate?: boolean
lostReasonDistribution?: boolean
isDemoDataIncluded?: boolean
calculatedAt?: boolean
}, ExtArgs["result"]["pipelineAggregateSnapshot"]>
export type PipelineAggregateSnapshotSelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
tenantId?: boolean
pipelineId?: boolean
stageId?: boolean
scopeKey?: boolean
projectCount?: boolean
potentialValue?: boolean
orderVolume?: boolean
weightedForecast?: boolean
realizedRevenue?: boolean
lostCount?: boolean
stageConversionRate?: boolean
lostReasonDistribution?: boolean
isDemoDataIncluded?: boolean
calculatedAt?: boolean
}, ExtArgs["result"]["pipelineAggregateSnapshot"]>
export type PipelineAggregateSnapshotSelectScalar = {
id?: boolean
tenantId?: boolean
pipelineId?: boolean
stageId?: boolean
scopeKey?: boolean
projectCount?: boolean
potentialValue?: boolean
orderVolume?: boolean
weightedForecast?: boolean
realizedRevenue?: boolean
lostCount?: boolean
stageConversionRate?: boolean
lostReasonDistribution?: boolean
isDemoDataIncluded?: boolean
calculatedAt?: boolean
}
export type PipelineAggregateSnapshotOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "tenantId" | "pipelineId" | "stageId" | "scopeKey" | "projectCount" | "potentialValue" | "orderVolume" | "weightedForecast" | "realizedRevenue" | "lostCount" | "stageConversionRate" | "lostReasonDistribution" | "isDemoDataIncluded" | "calculatedAt", ExtArgs["result"]["pipelineAggregateSnapshot"]>
export type $PipelineAggregateSnapshotPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "PipelineAggregateSnapshot"
objects: {}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
tenantId: string
pipelineId: string
stageId: string | null
scopeKey: string
projectCount: number
potentialValue: runtime.Decimal
orderVolume: runtime.Decimal
weightedForecast: runtime.Decimal
realizedRevenue: runtime.Decimal
lostCount: number
stageConversionRate: runtime.Decimal | null
lostReasonDistribution: runtime.JsonValue
isDemoDataIncluded: boolean
calculatedAt: Date
}, ExtArgs["result"]["pipelineAggregateSnapshot"]>
composites: {}
}
export type PipelineAggregateSnapshotGetPayload<S extends boolean | null | undefined | PipelineAggregateSnapshotDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$PipelineAggregateSnapshotPayload, S>
export type PipelineAggregateSnapshotCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<PipelineAggregateSnapshotFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: PipelineAggregateSnapshotCountAggregateInputType | true
}
export interface PipelineAggregateSnapshotDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['PipelineAggregateSnapshot'], meta: { name: 'PipelineAggregateSnapshot' } }
/**
* Find zero or one PipelineAggregateSnapshot that matches the filter.
* @param {PipelineAggregateSnapshotFindUniqueArgs} args - Arguments to find a PipelineAggregateSnapshot
* @example
* // Get one PipelineAggregateSnapshot
* const pipelineAggregateSnapshot = await prisma.pipelineAggregateSnapshot.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends PipelineAggregateSnapshotFindUniqueArgs>(args: Prisma.SelectSubset<T, PipelineAggregateSnapshotFindUniqueArgs<ExtArgs>>): Prisma.Prisma__PipelineAggregateSnapshotClient<runtime.Types.Result.GetResult<Prisma.$PipelineAggregateSnapshotPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one PipelineAggregateSnapshot that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {PipelineAggregateSnapshotFindUniqueOrThrowArgs} args - Arguments to find a PipelineAggregateSnapshot
* @example
* // Get one PipelineAggregateSnapshot
* const pipelineAggregateSnapshot = await prisma.pipelineAggregateSnapshot.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends PipelineAggregateSnapshotFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, PipelineAggregateSnapshotFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__PipelineAggregateSnapshotClient<runtime.Types.Result.GetResult<Prisma.$PipelineAggregateSnapshotPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first PipelineAggregateSnapshot 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 {PipelineAggregateSnapshotFindFirstArgs} args - Arguments to find a PipelineAggregateSnapshot
* @example
* // Get one PipelineAggregateSnapshot
* const pipelineAggregateSnapshot = await prisma.pipelineAggregateSnapshot.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends PipelineAggregateSnapshotFindFirstArgs>(args?: Prisma.SelectSubset<T, PipelineAggregateSnapshotFindFirstArgs<ExtArgs>>): Prisma.Prisma__PipelineAggregateSnapshotClient<runtime.Types.Result.GetResult<Prisma.$PipelineAggregateSnapshotPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first PipelineAggregateSnapshot 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 {PipelineAggregateSnapshotFindFirstOrThrowArgs} args - Arguments to find a PipelineAggregateSnapshot
* @example
* // Get one PipelineAggregateSnapshot
* const pipelineAggregateSnapshot = await prisma.pipelineAggregateSnapshot.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends PipelineAggregateSnapshotFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, PipelineAggregateSnapshotFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__PipelineAggregateSnapshotClient<runtime.Types.Result.GetResult<Prisma.$PipelineAggregateSnapshotPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more PipelineAggregateSnapshots 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 {PipelineAggregateSnapshotFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all PipelineAggregateSnapshots
* const pipelineAggregateSnapshots = await prisma.pipelineAggregateSnapshot.findMany()
*
* // Get first 10 PipelineAggregateSnapshots
* const pipelineAggregateSnapshots = await prisma.pipelineAggregateSnapshot.findMany({ take: 10 })
*
* // Only select the `id`
* const pipelineAggregateSnapshotWithIdOnly = await prisma.pipelineAggregateSnapshot.findMany({ select: { id: true } })
*
*/
findMany<T extends PipelineAggregateSnapshotFindManyArgs>(args?: Prisma.SelectSubset<T, PipelineAggregateSnapshotFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PipelineAggregateSnapshotPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a PipelineAggregateSnapshot.
* @param {PipelineAggregateSnapshotCreateArgs} args - Arguments to create a PipelineAggregateSnapshot.
* @example
* // Create one PipelineAggregateSnapshot
* const PipelineAggregateSnapshot = await prisma.pipelineAggregateSnapshot.create({
* data: {
* // ... data to create a PipelineAggregateSnapshot
* }
* })
*
*/
create<T extends PipelineAggregateSnapshotCreateArgs>(args: Prisma.SelectSubset<T, PipelineAggregateSnapshotCreateArgs<ExtArgs>>): Prisma.Prisma__PipelineAggregateSnapshotClient<runtime.Types.Result.GetResult<Prisma.$PipelineAggregateSnapshotPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many PipelineAggregateSnapshots.
* @param {PipelineAggregateSnapshotCreateManyArgs} args - Arguments to create many PipelineAggregateSnapshots.
* @example
* // Create many PipelineAggregateSnapshots
* const pipelineAggregateSnapshot = await prisma.pipelineAggregateSnapshot.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends PipelineAggregateSnapshotCreateManyArgs>(args?: Prisma.SelectSubset<T, PipelineAggregateSnapshotCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many PipelineAggregateSnapshots and returns the data saved in the database.
* @param {PipelineAggregateSnapshotCreateManyAndReturnArgs} args - Arguments to create many PipelineAggregateSnapshots.
* @example
* // Create many PipelineAggregateSnapshots
* const pipelineAggregateSnapshot = await prisma.pipelineAggregateSnapshot.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many PipelineAggregateSnapshots and only return the `id`
* const pipelineAggregateSnapshotWithIdOnly = await prisma.pipelineAggregateSnapshot.createManyAndReturn({
* select: { id: true },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
createManyAndReturn<T extends PipelineAggregateSnapshotCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, PipelineAggregateSnapshotCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PipelineAggregateSnapshotPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a PipelineAggregateSnapshot.
* @param {PipelineAggregateSnapshotDeleteArgs} args - Arguments to delete one PipelineAggregateSnapshot.
* @example
* // Delete one PipelineAggregateSnapshot
* const PipelineAggregateSnapshot = await prisma.pipelineAggregateSnapshot.delete({
* where: {
* // ... filter to delete one PipelineAggregateSnapshot
* }
* })
*
*/
delete<T extends PipelineAggregateSnapshotDeleteArgs>(args: Prisma.SelectSubset<T, PipelineAggregateSnapshotDeleteArgs<ExtArgs>>): Prisma.Prisma__PipelineAggregateSnapshotClient<runtime.Types.Result.GetResult<Prisma.$PipelineAggregateSnapshotPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one PipelineAggregateSnapshot.
* @param {PipelineAggregateSnapshotUpdateArgs} args - Arguments to update one PipelineAggregateSnapshot.
* @example
* // Update one PipelineAggregateSnapshot
* const pipelineAggregateSnapshot = await prisma.pipelineAggregateSnapshot.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends PipelineAggregateSnapshotUpdateArgs>(args: Prisma.SelectSubset<T, PipelineAggregateSnapshotUpdateArgs<ExtArgs>>): Prisma.Prisma__PipelineAggregateSnapshotClient<runtime.Types.Result.GetResult<Prisma.$PipelineAggregateSnapshotPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more PipelineAggregateSnapshots.
* @param {PipelineAggregateSnapshotDeleteManyArgs} args - Arguments to filter PipelineAggregateSnapshots to delete.
* @example
* // Delete a few PipelineAggregateSnapshots
* const { count } = await prisma.pipelineAggregateSnapshot.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends PipelineAggregateSnapshotDeleteManyArgs>(args?: Prisma.SelectSubset<T, PipelineAggregateSnapshotDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more PipelineAggregateSnapshots.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PipelineAggregateSnapshotUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many PipelineAggregateSnapshots
* const pipelineAggregateSnapshot = await prisma.pipelineAggregateSnapshot.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends PipelineAggregateSnapshotUpdateManyArgs>(args: Prisma.SelectSubset<T, PipelineAggregateSnapshotUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more PipelineAggregateSnapshots and returns the data updated in the database.
* @param {PipelineAggregateSnapshotUpdateManyAndReturnArgs} args - Arguments to update many PipelineAggregateSnapshots.
* @example
* // Update many PipelineAggregateSnapshots
* const pipelineAggregateSnapshot = await prisma.pipelineAggregateSnapshot.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more PipelineAggregateSnapshots and only return the `id`
* const pipelineAggregateSnapshotWithIdOnly = await prisma.pipelineAggregateSnapshot.updateManyAndReturn({
* select: { id: true },
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
*
*/
updateManyAndReturn<T extends PipelineAggregateSnapshotUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, PipelineAggregateSnapshotUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$PipelineAggregateSnapshotPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one PipelineAggregateSnapshot.
* @param {PipelineAggregateSnapshotUpsertArgs} args - Arguments to update or create a PipelineAggregateSnapshot.
* @example
* // Update or create a PipelineAggregateSnapshot
* const pipelineAggregateSnapshot = await prisma.pipelineAggregateSnapshot.upsert({
* create: {
* // ... data to create a PipelineAggregateSnapshot
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the PipelineAggregateSnapshot we want to update
* }
* })
*/
upsert<T extends PipelineAggregateSnapshotUpsertArgs>(args: Prisma.SelectSubset<T, PipelineAggregateSnapshotUpsertArgs<ExtArgs>>): Prisma.Prisma__PipelineAggregateSnapshotClient<runtime.Types.Result.GetResult<Prisma.$PipelineAggregateSnapshotPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of PipelineAggregateSnapshots.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PipelineAggregateSnapshotCountArgs} args - Arguments to filter PipelineAggregateSnapshots to count.
* @example
* // Count the number of PipelineAggregateSnapshots
* const count = await prisma.pipelineAggregateSnapshot.count({
* where: {
* // ... the filter for the PipelineAggregateSnapshots we want to count
* }
* })
**/
count<T extends PipelineAggregateSnapshotCountArgs>(
args?: Prisma.Subset<T, PipelineAggregateSnapshotCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], PipelineAggregateSnapshotCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a PipelineAggregateSnapshot.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PipelineAggregateSnapshotAggregateArgs} 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 PipelineAggregateSnapshotAggregateArgs>(args: Prisma.Subset<T, PipelineAggregateSnapshotAggregateArgs>): Prisma.PrismaPromise<GetPipelineAggregateSnapshotAggregateType<T>>
/**
* Group by PipelineAggregateSnapshot.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {PipelineAggregateSnapshotGroupByArgs} 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 PipelineAggregateSnapshotGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: PipelineAggregateSnapshotGroupByArgs['orderBy'] }
: { orderBy?: PipelineAggregateSnapshotGroupByArgs['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, PipelineAggregateSnapshotGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetPipelineAggregateSnapshotGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the PipelineAggregateSnapshot model
*/
readonly fields: PipelineAggregateSnapshotFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for PipelineAggregateSnapshot.
* 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__PipelineAggregateSnapshotClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
/**
* 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 PipelineAggregateSnapshot model
*/
export interface PipelineAggregateSnapshotFieldRefs {
readonly id: Prisma.FieldRef<"PipelineAggregateSnapshot", 'String'>
readonly tenantId: Prisma.FieldRef<"PipelineAggregateSnapshot", 'String'>
readonly pipelineId: Prisma.FieldRef<"PipelineAggregateSnapshot", 'String'>
readonly stageId: Prisma.FieldRef<"PipelineAggregateSnapshot", 'String'>
readonly scopeKey: Prisma.FieldRef<"PipelineAggregateSnapshot", 'String'>
readonly projectCount: Prisma.FieldRef<"PipelineAggregateSnapshot", 'Int'>
readonly potentialValue: Prisma.FieldRef<"PipelineAggregateSnapshot", 'Decimal'>
readonly orderVolume: Prisma.FieldRef<"PipelineAggregateSnapshot", 'Decimal'>
readonly weightedForecast: Prisma.FieldRef<"PipelineAggregateSnapshot", 'Decimal'>
readonly realizedRevenue: Prisma.FieldRef<"PipelineAggregateSnapshot", 'Decimal'>
readonly lostCount: Prisma.FieldRef<"PipelineAggregateSnapshot", 'Int'>
readonly stageConversionRate: Prisma.FieldRef<"PipelineAggregateSnapshot", 'Decimal'>
readonly lostReasonDistribution: Prisma.FieldRef<"PipelineAggregateSnapshot", 'Json'>
readonly isDemoDataIncluded: Prisma.FieldRef<"PipelineAggregateSnapshot", 'Boolean'>
readonly calculatedAt: Prisma.FieldRef<"PipelineAggregateSnapshot", 'DateTime'>
}
// Custom InputTypes
/**
* PipelineAggregateSnapshot findUnique
*/
export type PipelineAggregateSnapshotFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PipelineAggregateSnapshot
*/
select?: Prisma.PipelineAggregateSnapshotSelect<ExtArgs> | null
/**
* Omit specific fields from the PipelineAggregateSnapshot
*/
omit?: Prisma.PipelineAggregateSnapshotOmit<ExtArgs> | null
/**
* Filter, which PipelineAggregateSnapshot to fetch.
*/
where: Prisma.PipelineAggregateSnapshotWhereUniqueInput
}
/**
* PipelineAggregateSnapshot findUniqueOrThrow
*/
export type PipelineAggregateSnapshotFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PipelineAggregateSnapshot
*/
select?: Prisma.PipelineAggregateSnapshotSelect<ExtArgs> | null
/**
* Omit specific fields from the PipelineAggregateSnapshot
*/
omit?: Prisma.PipelineAggregateSnapshotOmit<ExtArgs> | null
/**
* Filter, which PipelineAggregateSnapshot to fetch.
*/
where: Prisma.PipelineAggregateSnapshotWhereUniqueInput
}
/**
* PipelineAggregateSnapshot findFirst
*/
export type PipelineAggregateSnapshotFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PipelineAggregateSnapshot
*/
select?: Prisma.PipelineAggregateSnapshotSelect<ExtArgs> | null
/**
* Omit specific fields from the PipelineAggregateSnapshot
*/
omit?: Prisma.PipelineAggregateSnapshotOmit<ExtArgs> | null
/**
* Filter, which PipelineAggregateSnapshot to fetch.
*/
where?: Prisma.PipelineAggregateSnapshotWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of PipelineAggregateSnapshots to fetch.
*/
orderBy?: Prisma.PipelineAggregateSnapshotOrderByWithRelationInput | Prisma.PipelineAggregateSnapshotOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for PipelineAggregateSnapshots.
*/
cursor?: Prisma.PipelineAggregateSnapshotWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` PipelineAggregateSnapshots 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` PipelineAggregateSnapshots.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of PipelineAggregateSnapshots.
*/
distinct?: Prisma.PipelineAggregateSnapshotScalarFieldEnum | Prisma.PipelineAggregateSnapshotScalarFieldEnum[]
}
/**
* PipelineAggregateSnapshot findFirstOrThrow
*/
export type PipelineAggregateSnapshotFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PipelineAggregateSnapshot
*/
select?: Prisma.PipelineAggregateSnapshotSelect<ExtArgs> | null
/**
* Omit specific fields from the PipelineAggregateSnapshot
*/
omit?: Prisma.PipelineAggregateSnapshotOmit<ExtArgs> | null
/**
* Filter, which PipelineAggregateSnapshot to fetch.
*/
where?: Prisma.PipelineAggregateSnapshotWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of PipelineAggregateSnapshots to fetch.
*/
orderBy?: Prisma.PipelineAggregateSnapshotOrderByWithRelationInput | Prisma.PipelineAggregateSnapshotOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for PipelineAggregateSnapshots.
*/
cursor?: Prisma.PipelineAggregateSnapshotWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` PipelineAggregateSnapshots 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` PipelineAggregateSnapshots.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of PipelineAggregateSnapshots.
*/
distinct?: Prisma.PipelineAggregateSnapshotScalarFieldEnum | Prisma.PipelineAggregateSnapshotScalarFieldEnum[]
}
/**
* PipelineAggregateSnapshot findMany
*/
export type PipelineAggregateSnapshotFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PipelineAggregateSnapshot
*/
select?: Prisma.PipelineAggregateSnapshotSelect<ExtArgs> | null
/**
* Omit specific fields from the PipelineAggregateSnapshot
*/
omit?: Prisma.PipelineAggregateSnapshotOmit<ExtArgs> | null
/**
* Filter, which PipelineAggregateSnapshots to fetch.
*/
where?: Prisma.PipelineAggregateSnapshotWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of PipelineAggregateSnapshots to fetch.
*/
orderBy?: Prisma.PipelineAggregateSnapshotOrderByWithRelationInput | Prisma.PipelineAggregateSnapshotOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing PipelineAggregateSnapshots.
*/
cursor?: Prisma.PipelineAggregateSnapshotWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` PipelineAggregateSnapshots 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` PipelineAggregateSnapshots.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of PipelineAggregateSnapshots.
*/
distinct?: Prisma.PipelineAggregateSnapshotScalarFieldEnum | Prisma.PipelineAggregateSnapshotScalarFieldEnum[]
}
/**
* PipelineAggregateSnapshot create
*/
export type PipelineAggregateSnapshotCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PipelineAggregateSnapshot
*/
select?: Prisma.PipelineAggregateSnapshotSelect<ExtArgs> | null
/**
* Omit specific fields from the PipelineAggregateSnapshot
*/
omit?: Prisma.PipelineAggregateSnapshotOmit<ExtArgs> | null
/**
* The data needed to create a PipelineAggregateSnapshot.
*/
data: Prisma.XOR<Prisma.PipelineAggregateSnapshotCreateInput, Prisma.PipelineAggregateSnapshotUncheckedCreateInput>
}
/**
* PipelineAggregateSnapshot createMany
*/
export type PipelineAggregateSnapshotCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many PipelineAggregateSnapshots.
*/
data: Prisma.PipelineAggregateSnapshotCreateManyInput | Prisma.PipelineAggregateSnapshotCreateManyInput[]
skipDuplicates?: boolean
}
/**
* PipelineAggregateSnapshot createManyAndReturn
*/
export type PipelineAggregateSnapshotCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PipelineAggregateSnapshot
*/
select?: Prisma.PipelineAggregateSnapshotSelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the PipelineAggregateSnapshot
*/
omit?: Prisma.PipelineAggregateSnapshotOmit<ExtArgs> | null
/**
* The data used to create many PipelineAggregateSnapshots.
*/
data: Prisma.PipelineAggregateSnapshotCreateManyInput | Prisma.PipelineAggregateSnapshotCreateManyInput[]
skipDuplicates?: boolean
}
/**
* PipelineAggregateSnapshot update
*/
export type PipelineAggregateSnapshotUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PipelineAggregateSnapshot
*/
select?: Prisma.PipelineAggregateSnapshotSelect<ExtArgs> | null
/**
* Omit specific fields from the PipelineAggregateSnapshot
*/
omit?: Prisma.PipelineAggregateSnapshotOmit<ExtArgs> | null
/**
* The data needed to update a PipelineAggregateSnapshot.
*/
data: Prisma.XOR<Prisma.PipelineAggregateSnapshotUpdateInput, Prisma.PipelineAggregateSnapshotUncheckedUpdateInput>
/**
* Choose, which PipelineAggregateSnapshot to update.
*/
where: Prisma.PipelineAggregateSnapshotWhereUniqueInput
}
/**
* PipelineAggregateSnapshot updateMany
*/
export type PipelineAggregateSnapshotUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update PipelineAggregateSnapshots.
*/
data: Prisma.XOR<Prisma.PipelineAggregateSnapshotUpdateManyMutationInput, Prisma.PipelineAggregateSnapshotUncheckedUpdateManyInput>
/**
* Filter which PipelineAggregateSnapshots to update
*/
where?: Prisma.PipelineAggregateSnapshotWhereInput
/**
* Limit how many PipelineAggregateSnapshots to update.
*/
limit?: number
}
/**
* PipelineAggregateSnapshot updateManyAndReturn
*/
export type PipelineAggregateSnapshotUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PipelineAggregateSnapshot
*/
select?: Prisma.PipelineAggregateSnapshotSelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the PipelineAggregateSnapshot
*/
omit?: Prisma.PipelineAggregateSnapshotOmit<ExtArgs> | null
/**
* The data used to update PipelineAggregateSnapshots.
*/
data: Prisma.XOR<Prisma.PipelineAggregateSnapshotUpdateManyMutationInput, Prisma.PipelineAggregateSnapshotUncheckedUpdateManyInput>
/**
* Filter which PipelineAggregateSnapshots to update
*/
where?: Prisma.PipelineAggregateSnapshotWhereInput
/**
* Limit how many PipelineAggregateSnapshots to update.
*/
limit?: number
}
/**
* PipelineAggregateSnapshot upsert
*/
export type PipelineAggregateSnapshotUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PipelineAggregateSnapshot
*/
select?: Prisma.PipelineAggregateSnapshotSelect<ExtArgs> | null
/**
* Omit specific fields from the PipelineAggregateSnapshot
*/
omit?: Prisma.PipelineAggregateSnapshotOmit<ExtArgs> | null
/**
* The filter to search for the PipelineAggregateSnapshot to update in case it exists.
*/
where: Prisma.PipelineAggregateSnapshotWhereUniqueInput
/**
* In case the PipelineAggregateSnapshot found by the `where` argument doesn't exist, create a new PipelineAggregateSnapshot with this data.
*/
create: Prisma.XOR<Prisma.PipelineAggregateSnapshotCreateInput, Prisma.PipelineAggregateSnapshotUncheckedCreateInput>
/**
* In case the PipelineAggregateSnapshot was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.PipelineAggregateSnapshotUpdateInput, Prisma.PipelineAggregateSnapshotUncheckedUpdateInput>
}
/**
* PipelineAggregateSnapshot delete
*/
export type PipelineAggregateSnapshotDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PipelineAggregateSnapshot
*/
select?: Prisma.PipelineAggregateSnapshotSelect<ExtArgs> | null
/**
* Omit specific fields from the PipelineAggregateSnapshot
*/
omit?: Prisma.PipelineAggregateSnapshotOmit<ExtArgs> | null
/**
* Filter which PipelineAggregateSnapshot to delete.
*/
where: Prisma.PipelineAggregateSnapshotWhereUniqueInput
}
/**
* PipelineAggregateSnapshot deleteMany
*/
export type PipelineAggregateSnapshotDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which PipelineAggregateSnapshots to delete
*/
where?: Prisma.PipelineAggregateSnapshotWhereInput
/**
* Limit how many PipelineAggregateSnapshots to delete.
*/
limit?: number
}
/**
* PipelineAggregateSnapshot without action
*/
export type PipelineAggregateSnapshotDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the PipelineAggregateSnapshot
*/
select?: Prisma.PipelineAggregateSnapshotSelect<ExtArgs> | null
/**
* Omit specific fields from the PipelineAggregateSnapshot
*/
omit?: Prisma.PipelineAggregateSnapshotOmit<ExtArgs> | null
}