Files
optima/api/generated/prisma/models/Opportunity.ts
T

3370 lines
144 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 `Opportunity` 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 Opportunity
*
*/
export type OpportunityModel = runtime.Types.Result.DefaultSelection<Prisma.$OpportunityPayload>
export type AggregateOpportunity = {
_count: OpportunityCountAggregateOutputType | null
_avg: OpportunityAvgAggregateOutputType | null
_sum: OpportunitySumAggregateOutputType | null
_min: OpportunityMinAggregateOutputType | null
_max: OpportunityMaxAggregateOutputType | null
}
export type OpportunityAvgAggregateOutputType = {
cwOpportunityId: number | null
typeCwId: number | null
stageCwId: number | null
statusCwId: number | null
priorityCwId: number | null
ratingCwId: number | null
campaignCwId: number | null
primarySalesRepCwId: number | null
secondarySalesRepCwId: number | null
companyCwId: number | null
contactCwId: number | null
siteCwId: number | null
totalSalesTax: number | null
probability: number | null
locationCwId: number | null
departmentCwId: number | null
closedByCwId: number | null
productSequence: number | null
}
export type OpportunitySumAggregateOutputType = {
cwOpportunityId: number | null
typeCwId: number | null
stageCwId: number | null
statusCwId: number | null
priorityCwId: number | null
ratingCwId: number | null
campaignCwId: number | null
primarySalesRepCwId: number | null
secondarySalesRepCwId: number | null
companyCwId: number | null
contactCwId: number | null
siteCwId: number | null
totalSalesTax: number | null
probability: number | null
locationCwId: number | null
departmentCwId: number | null
closedByCwId: number | null
productSequence: number[]
}
export type OpportunityMinAggregateOutputType = {
id: string | null
cwOpportunityId: number | null
name: string | null
notes: string | null
typeName: string | null
typeCwId: number | null
stageName: string | null
stageCwId: number | null
statusName: string | null
statusCwId: number | null
priorityName: string | null
priorityCwId: number | null
ratingName: string | null
ratingCwId: number | null
source: string | null
campaignName: string | null
campaignCwId: number | null
primarySalesRepName: string | null
primarySalesRepIdentifier: string | null
primarySalesRepCwId: number | null
secondarySalesRepName: string | null
secondarySalesRepIdentifier: string | null
secondarySalesRepCwId: number | null
companyCwId: number | null
companyName: string | null
contactCwId: number | null
contactName: string | null
siteCwId: number | null
siteName: string | null
customerPO: string | null
totalSalesTax: number | null
probability: number | null
locationName: string | null
locationCwId: number | null
departmentName: string | null
departmentCwId: number | null
expectedCloseDate: Date | null
pipelineChangeDate: Date | null
dateBecameLead: Date | null
closedDate: Date | null
closedFlag: boolean | null
closedByName: string | null
closedByCwId: number | null
companyId: string | null
cwLastUpdated: Date | null
cwDateEntered: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type OpportunityMaxAggregateOutputType = {
id: string | null
cwOpportunityId: number | null
name: string | null
notes: string | null
typeName: string | null
typeCwId: number | null
stageName: string | null
stageCwId: number | null
statusName: string | null
statusCwId: number | null
priorityName: string | null
priorityCwId: number | null
ratingName: string | null
ratingCwId: number | null
source: string | null
campaignName: string | null
campaignCwId: number | null
primarySalesRepName: string | null
primarySalesRepIdentifier: string | null
primarySalesRepCwId: number | null
secondarySalesRepName: string | null
secondarySalesRepIdentifier: string | null
secondarySalesRepCwId: number | null
companyCwId: number | null
companyName: string | null
contactCwId: number | null
contactName: string | null
siteCwId: number | null
siteName: string | null
customerPO: string | null
totalSalesTax: number | null
probability: number | null
locationName: string | null
locationCwId: number | null
departmentName: string | null
departmentCwId: number | null
expectedCloseDate: Date | null
pipelineChangeDate: Date | null
dateBecameLead: Date | null
closedDate: Date | null
closedFlag: boolean | null
closedByName: string | null
closedByCwId: number | null
companyId: string | null
cwLastUpdated: Date | null
cwDateEntered: Date | null
createdAt: Date | null
updatedAt: Date | null
}
export type OpportunityCountAggregateOutputType = {
id: number
cwOpportunityId: number
name: number
notes: number
typeName: number
typeCwId: number
stageName: number
stageCwId: number
statusName: number
statusCwId: number
priorityName: number
priorityCwId: number
ratingName: number
ratingCwId: number
source: number
campaignName: number
campaignCwId: number
primarySalesRepName: number
primarySalesRepIdentifier: number
primarySalesRepCwId: number
secondarySalesRepName: number
secondarySalesRepIdentifier: number
secondarySalesRepCwId: number
companyCwId: number
companyName: number
contactCwId: number
contactName: number
siteCwId: number
siteName: number
customerPO: number
totalSalesTax: number
probability: number
locationName: number
locationCwId: number
departmentName: number
departmentCwId: number
expectedCloseDate: number
pipelineChangeDate: number
dateBecameLead: number
closedDate: number
closedFlag: number
closedByName: number
closedByCwId: number
companyId: number
productSequence: number
cwLastUpdated: number
cwDateEntered: number
createdAt: number
updatedAt: number
_all: number
}
export type OpportunityAvgAggregateInputType = {
cwOpportunityId?: true
typeCwId?: true
stageCwId?: true
statusCwId?: true
priorityCwId?: true
ratingCwId?: true
campaignCwId?: true
primarySalesRepCwId?: true
secondarySalesRepCwId?: true
companyCwId?: true
contactCwId?: true
siteCwId?: true
totalSalesTax?: true
probability?: true
locationCwId?: true
departmentCwId?: true
closedByCwId?: true
productSequence?: true
}
export type OpportunitySumAggregateInputType = {
cwOpportunityId?: true
typeCwId?: true
stageCwId?: true
statusCwId?: true
priorityCwId?: true
ratingCwId?: true
campaignCwId?: true
primarySalesRepCwId?: true
secondarySalesRepCwId?: true
companyCwId?: true
contactCwId?: true
siteCwId?: true
totalSalesTax?: true
probability?: true
locationCwId?: true
departmentCwId?: true
closedByCwId?: true
productSequence?: true
}
export type OpportunityMinAggregateInputType = {
id?: true
cwOpportunityId?: true
name?: true
notes?: true
typeName?: true
typeCwId?: true
stageName?: true
stageCwId?: true
statusName?: true
statusCwId?: true
priorityName?: true
priorityCwId?: true
ratingName?: true
ratingCwId?: true
source?: true
campaignName?: true
campaignCwId?: true
primarySalesRepName?: true
primarySalesRepIdentifier?: true
primarySalesRepCwId?: true
secondarySalesRepName?: true
secondarySalesRepIdentifier?: true
secondarySalesRepCwId?: true
companyCwId?: true
companyName?: true
contactCwId?: true
contactName?: true
siteCwId?: true
siteName?: true
customerPO?: true
totalSalesTax?: true
probability?: true
locationName?: true
locationCwId?: true
departmentName?: true
departmentCwId?: true
expectedCloseDate?: true
pipelineChangeDate?: true
dateBecameLead?: true
closedDate?: true
closedFlag?: true
closedByName?: true
closedByCwId?: true
companyId?: true
cwLastUpdated?: true
cwDateEntered?: true
createdAt?: true
updatedAt?: true
}
export type OpportunityMaxAggregateInputType = {
id?: true
cwOpportunityId?: true
name?: true
notes?: true
typeName?: true
typeCwId?: true
stageName?: true
stageCwId?: true
statusName?: true
statusCwId?: true
priorityName?: true
priorityCwId?: true
ratingName?: true
ratingCwId?: true
source?: true
campaignName?: true
campaignCwId?: true
primarySalesRepName?: true
primarySalesRepIdentifier?: true
primarySalesRepCwId?: true
secondarySalesRepName?: true
secondarySalesRepIdentifier?: true
secondarySalesRepCwId?: true
companyCwId?: true
companyName?: true
contactCwId?: true
contactName?: true
siteCwId?: true
siteName?: true
customerPO?: true
totalSalesTax?: true
probability?: true
locationName?: true
locationCwId?: true
departmentName?: true
departmentCwId?: true
expectedCloseDate?: true
pipelineChangeDate?: true
dateBecameLead?: true
closedDate?: true
closedFlag?: true
closedByName?: true
closedByCwId?: true
companyId?: true
cwLastUpdated?: true
cwDateEntered?: true
createdAt?: true
updatedAt?: true
}
export type OpportunityCountAggregateInputType = {
id?: true
cwOpportunityId?: true
name?: true
notes?: true
typeName?: true
typeCwId?: true
stageName?: true
stageCwId?: true
statusName?: true
statusCwId?: true
priorityName?: true
priorityCwId?: true
ratingName?: true
ratingCwId?: true
source?: true
campaignName?: true
campaignCwId?: true
primarySalesRepName?: true
primarySalesRepIdentifier?: true
primarySalesRepCwId?: true
secondarySalesRepName?: true
secondarySalesRepIdentifier?: true
secondarySalesRepCwId?: true
companyCwId?: true
companyName?: true
contactCwId?: true
contactName?: true
siteCwId?: true
siteName?: true
customerPO?: true
totalSalesTax?: true
probability?: true
locationName?: true
locationCwId?: true
departmentName?: true
departmentCwId?: true
expectedCloseDate?: true
pipelineChangeDate?: true
dateBecameLead?: true
closedDate?: true
closedFlag?: true
closedByName?: true
closedByCwId?: true
companyId?: true
productSequence?: true
cwLastUpdated?: true
cwDateEntered?: true
createdAt?: true
updatedAt?: true
_all?: true
}
export type OpportunityAggregateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Opportunity to aggregate.
*/
where?: Prisma.OpportunityWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Opportunities to fetch.
*/
orderBy?: Prisma.OpportunityOrderByWithRelationInput | Prisma.OpportunityOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the start position
*/
cursor?: Prisma.OpportunityWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Opportunities 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` Opportunities.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Count returned Opportunities
**/
_count?: true | OpportunityCountAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to average
**/
_avg?: OpportunityAvgAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to sum
**/
_sum?: OpportunitySumAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the minimum value
**/
_min?: OpportunityMinAggregateInputType
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/aggregations Aggregation Docs}
*
* Select which fields to find the maximum value
**/
_max?: OpportunityMaxAggregateInputType
}
export type GetOpportunityAggregateType<T extends OpportunityAggregateArgs> = {
[P in keyof T & keyof AggregateOpportunity]: P extends '_count' | 'count'
? T[P] extends true
? number
: Prisma.GetScalarType<T[P], AggregateOpportunity[P]>
: Prisma.GetScalarType<T[P], AggregateOpportunity[P]>
}
export type OpportunityGroupByArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.OpportunityWhereInput
orderBy?: Prisma.OpportunityOrderByWithAggregationInput | Prisma.OpportunityOrderByWithAggregationInput[]
by: Prisma.OpportunityScalarFieldEnum[] | Prisma.OpportunityScalarFieldEnum
having?: Prisma.OpportunityScalarWhereWithAggregatesInput
take?: number
skip?: number
_count?: OpportunityCountAggregateInputType | true
_avg?: OpportunityAvgAggregateInputType
_sum?: OpportunitySumAggregateInputType
_min?: OpportunityMinAggregateInputType
_max?: OpportunityMaxAggregateInputType
}
export type OpportunityGroupByOutputType = {
id: string
cwOpportunityId: number
name: string
notes: string | null
typeName: string | null
typeCwId: number | null
stageName: string | null
stageCwId: number | null
statusName: string | null
statusCwId: number | null
priorityName: string | null
priorityCwId: number | null
ratingName: string | null
ratingCwId: number | null
source: string | null
campaignName: string | null
campaignCwId: number | null
primarySalesRepName: string | null
primarySalesRepIdentifier: string | null
primarySalesRepCwId: number | null
secondarySalesRepName: string | null
secondarySalesRepIdentifier: string | null
secondarySalesRepCwId: number | null
companyCwId: number | null
companyName: string | null
contactCwId: number | null
contactName: string | null
siteCwId: number | null
siteName: string | null
customerPO: string | null
totalSalesTax: number
probability: number
locationName: string | null
locationCwId: number | null
departmentName: string | null
departmentCwId: number | null
expectedCloseDate: Date | null
pipelineChangeDate: Date | null
dateBecameLead: Date | null
closedDate: Date | null
closedFlag: boolean
closedByName: string | null
closedByCwId: number | null
companyId: string | null
productSequence: number[]
cwLastUpdated: Date | null
cwDateEntered: Date | null
createdAt: Date
updatedAt: Date
_count: OpportunityCountAggregateOutputType | null
_avg: OpportunityAvgAggregateOutputType | null
_sum: OpportunitySumAggregateOutputType | null
_min: OpportunityMinAggregateOutputType | null
_max: OpportunityMaxAggregateOutputType | null
}
type GetOpportunityGroupByPayload<T extends OpportunityGroupByArgs> = Prisma.PrismaPromise<
Array<
Prisma.PickEnumerable<OpportunityGroupByOutputType, T['by']> &
{
[P in ((keyof T) & (keyof OpportunityGroupByOutputType))]: P extends '_count'
? T[P] extends boolean
? number
: Prisma.GetScalarType<T[P], OpportunityGroupByOutputType[P]>
: Prisma.GetScalarType<T[P], OpportunityGroupByOutputType[P]>
}
>
>
export type OpportunityWhereInput = {
AND?: Prisma.OpportunityWhereInput | Prisma.OpportunityWhereInput[]
OR?: Prisma.OpportunityWhereInput[]
NOT?: Prisma.OpportunityWhereInput | Prisma.OpportunityWhereInput[]
id?: Prisma.StringFilter<"Opportunity"> | string
cwOpportunityId?: Prisma.IntFilter<"Opportunity"> | number
name?: Prisma.StringFilter<"Opportunity"> | string
notes?: Prisma.StringNullableFilter<"Opportunity"> | string | null
typeName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
typeCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
stageName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
stageCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
statusName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
statusCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
priorityName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
priorityCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
ratingName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
ratingCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
source?: Prisma.StringNullableFilter<"Opportunity"> | string | null
campaignName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
campaignCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
primarySalesRepName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
primarySalesRepIdentifier?: Prisma.StringNullableFilter<"Opportunity"> | string | null
primarySalesRepCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
secondarySalesRepName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
secondarySalesRepIdentifier?: Prisma.StringNullableFilter<"Opportunity"> | string | null
secondarySalesRepCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
companyCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
companyName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
contactCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
contactName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
siteCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
siteName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
customerPO?: Prisma.StringNullableFilter<"Opportunity"> | string | null
totalSalesTax?: Prisma.FloatFilter<"Opportunity"> | number
probability?: Prisma.FloatFilter<"Opportunity"> | number
locationName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
locationCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
departmentName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
departmentCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
expectedCloseDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
pipelineChangeDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
dateBecameLead?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
closedDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
closedFlag?: Prisma.BoolFilter<"Opportunity"> | boolean
closedByName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
closedByCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
companyId?: Prisma.StringNullableFilter<"Opportunity"> | string | null
productSequence?: Prisma.IntNullableListFilter<"Opportunity">
cwLastUpdated?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
cwDateEntered?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
createdAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string
generatedQuotes?: Prisma.GeneratedQuotesListRelationFilter
company?: Prisma.XOR<Prisma.CompanyNullableScalarRelationFilter, Prisma.CompanyWhereInput> | null
}
export type OpportunityOrderByWithRelationInput = {
id?: Prisma.SortOrder
cwOpportunityId?: Prisma.SortOrder
name?: Prisma.SortOrder
notes?: Prisma.SortOrderInput | Prisma.SortOrder
typeName?: Prisma.SortOrderInput | Prisma.SortOrder
typeCwId?: Prisma.SortOrderInput | Prisma.SortOrder
stageName?: Prisma.SortOrderInput | Prisma.SortOrder
stageCwId?: Prisma.SortOrderInput | Prisma.SortOrder
statusName?: Prisma.SortOrderInput | Prisma.SortOrder
statusCwId?: Prisma.SortOrderInput | Prisma.SortOrder
priorityName?: Prisma.SortOrderInput | Prisma.SortOrder
priorityCwId?: Prisma.SortOrderInput | Prisma.SortOrder
ratingName?: Prisma.SortOrderInput | Prisma.SortOrder
ratingCwId?: Prisma.SortOrderInput | Prisma.SortOrder
source?: Prisma.SortOrderInput | Prisma.SortOrder
campaignName?: Prisma.SortOrderInput | Prisma.SortOrder
campaignCwId?: Prisma.SortOrderInput | Prisma.SortOrder
primarySalesRepName?: Prisma.SortOrderInput | Prisma.SortOrder
primarySalesRepIdentifier?: Prisma.SortOrderInput | Prisma.SortOrder
primarySalesRepCwId?: Prisma.SortOrderInput | Prisma.SortOrder
secondarySalesRepName?: Prisma.SortOrderInput | Prisma.SortOrder
secondarySalesRepIdentifier?: Prisma.SortOrderInput | Prisma.SortOrder
secondarySalesRepCwId?: Prisma.SortOrderInput | Prisma.SortOrder
companyCwId?: Prisma.SortOrderInput | Prisma.SortOrder
companyName?: Prisma.SortOrderInput | Prisma.SortOrder
contactCwId?: Prisma.SortOrderInput | Prisma.SortOrder
contactName?: Prisma.SortOrderInput | Prisma.SortOrder
siteCwId?: Prisma.SortOrderInput | Prisma.SortOrder
siteName?: Prisma.SortOrderInput | Prisma.SortOrder
customerPO?: Prisma.SortOrderInput | Prisma.SortOrder
totalSalesTax?: Prisma.SortOrder
probability?: Prisma.SortOrder
locationName?: Prisma.SortOrderInput | Prisma.SortOrder
locationCwId?: Prisma.SortOrderInput | Prisma.SortOrder
departmentName?: Prisma.SortOrderInput | Prisma.SortOrder
departmentCwId?: Prisma.SortOrderInput | Prisma.SortOrder
expectedCloseDate?: Prisma.SortOrderInput | Prisma.SortOrder
pipelineChangeDate?: Prisma.SortOrderInput | Prisma.SortOrder
dateBecameLead?: Prisma.SortOrderInput | Prisma.SortOrder
closedDate?: Prisma.SortOrderInput | Prisma.SortOrder
closedFlag?: Prisma.SortOrder
closedByName?: Prisma.SortOrderInput | Prisma.SortOrder
closedByCwId?: Prisma.SortOrderInput | Prisma.SortOrder
companyId?: Prisma.SortOrderInput | Prisma.SortOrder
productSequence?: Prisma.SortOrder
cwLastUpdated?: Prisma.SortOrderInput | Prisma.SortOrder
cwDateEntered?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
generatedQuotes?: Prisma.GeneratedQuotesOrderByRelationAggregateInput
company?: Prisma.CompanyOrderByWithRelationInput
}
export type OpportunityWhereUniqueInput = Prisma.AtLeast<{
id?: string
cwOpportunityId?: number
AND?: Prisma.OpportunityWhereInput | Prisma.OpportunityWhereInput[]
OR?: Prisma.OpportunityWhereInput[]
NOT?: Prisma.OpportunityWhereInput | Prisma.OpportunityWhereInput[]
name?: Prisma.StringFilter<"Opportunity"> | string
notes?: Prisma.StringNullableFilter<"Opportunity"> | string | null
typeName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
typeCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
stageName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
stageCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
statusName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
statusCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
priorityName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
priorityCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
ratingName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
ratingCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
source?: Prisma.StringNullableFilter<"Opportunity"> | string | null
campaignName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
campaignCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
primarySalesRepName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
primarySalesRepIdentifier?: Prisma.StringNullableFilter<"Opportunity"> | string | null
primarySalesRepCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
secondarySalesRepName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
secondarySalesRepIdentifier?: Prisma.StringNullableFilter<"Opportunity"> | string | null
secondarySalesRepCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
companyCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
companyName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
contactCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
contactName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
siteCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
siteName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
customerPO?: Prisma.StringNullableFilter<"Opportunity"> | string | null
totalSalesTax?: Prisma.FloatFilter<"Opportunity"> | number
probability?: Prisma.FloatFilter<"Opportunity"> | number
locationName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
locationCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
departmentName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
departmentCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
expectedCloseDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
pipelineChangeDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
dateBecameLead?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
closedDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
closedFlag?: Prisma.BoolFilter<"Opportunity"> | boolean
closedByName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
closedByCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
companyId?: Prisma.StringNullableFilter<"Opportunity"> | string | null
productSequence?: Prisma.IntNullableListFilter<"Opportunity">
cwLastUpdated?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
cwDateEntered?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
createdAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string
generatedQuotes?: Prisma.GeneratedQuotesListRelationFilter
company?: Prisma.XOR<Prisma.CompanyNullableScalarRelationFilter, Prisma.CompanyWhereInput> | null
}, "id" | "cwOpportunityId">
export type OpportunityOrderByWithAggregationInput = {
id?: Prisma.SortOrder
cwOpportunityId?: Prisma.SortOrder
name?: Prisma.SortOrder
notes?: Prisma.SortOrderInput | Prisma.SortOrder
typeName?: Prisma.SortOrderInput | Prisma.SortOrder
typeCwId?: Prisma.SortOrderInput | Prisma.SortOrder
stageName?: Prisma.SortOrderInput | Prisma.SortOrder
stageCwId?: Prisma.SortOrderInput | Prisma.SortOrder
statusName?: Prisma.SortOrderInput | Prisma.SortOrder
statusCwId?: Prisma.SortOrderInput | Prisma.SortOrder
priorityName?: Prisma.SortOrderInput | Prisma.SortOrder
priorityCwId?: Prisma.SortOrderInput | Prisma.SortOrder
ratingName?: Prisma.SortOrderInput | Prisma.SortOrder
ratingCwId?: Prisma.SortOrderInput | Prisma.SortOrder
source?: Prisma.SortOrderInput | Prisma.SortOrder
campaignName?: Prisma.SortOrderInput | Prisma.SortOrder
campaignCwId?: Prisma.SortOrderInput | Prisma.SortOrder
primarySalesRepName?: Prisma.SortOrderInput | Prisma.SortOrder
primarySalesRepIdentifier?: Prisma.SortOrderInput | Prisma.SortOrder
primarySalesRepCwId?: Prisma.SortOrderInput | Prisma.SortOrder
secondarySalesRepName?: Prisma.SortOrderInput | Prisma.SortOrder
secondarySalesRepIdentifier?: Prisma.SortOrderInput | Prisma.SortOrder
secondarySalesRepCwId?: Prisma.SortOrderInput | Prisma.SortOrder
companyCwId?: Prisma.SortOrderInput | Prisma.SortOrder
companyName?: Prisma.SortOrderInput | Prisma.SortOrder
contactCwId?: Prisma.SortOrderInput | Prisma.SortOrder
contactName?: Prisma.SortOrderInput | Prisma.SortOrder
siteCwId?: Prisma.SortOrderInput | Prisma.SortOrder
siteName?: Prisma.SortOrderInput | Prisma.SortOrder
customerPO?: Prisma.SortOrderInput | Prisma.SortOrder
totalSalesTax?: Prisma.SortOrder
probability?: Prisma.SortOrder
locationName?: Prisma.SortOrderInput | Prisma.SortOrder
locationCwId?: Prisma.SortOrderInput | Prisma.SortOrder
departmentName?: Prisma.SortOrderInput | Prisma.SortOrder
departmentCwId?: Prisma.SortOrderInput | Prisma.SortOrder
expectedCloseDate?: Prisma.SortOrderInput | Prisma.SortOrder
pipelineChangeDate?: Prisma.SortOrderInput | Prisma.SortOrder
dateBecameLead?: Prisma.SortOrderInput | Prisma.SortOrder
closedDate?: Prisma.SortOrderInput | Prisma.SortOrder
closedFlag?: Prisma.SortOrder
closedByName?: Prisma.SortOrderInput | Prisma.SortOrder
closedByCwId?: Prisma.SortOrderInput | Prisma.SortOrder
companyId?: Prisma.SortOrderInput | Prisma.SortOrder
productSequence?: Prisma.SortOrder
cwLastUpdated?: Prisma.SortOrderInput | Prisma.SortOrder
cwDateEntered?: Prisma.SortOrderInput | Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
_count?: Prisma.OpportunityCountOrderByAggregateInput
_avg?: Prisma.OpportunityAvgOrderByAggregateInput
_max?: Prisma.OpportunityMaxOrderByAggregateInput
_min?: Prisma.OpportunityMinOrderByAggregateInput
_sum?: Prisma.OpportunitySumOrderByAggregateInput
}
export type OpportunityScalarWhereWithAggregatesInput = {
AND?: Prisma.OpportunityScalarWhereWithAggregatesInput | Prisma.OpportunityScalarWhereWithAggregatesInput[]
OR?: Prisma.OpportunityScalarWhereWithAggregatesInput[]
NOT?: Prisma.OpportunityScalarWhereWithAggregatesInput | Prisma.OpportunityScalarWhereWithAggregatesInput[]
id?: Prisma.StringWithAggregatesFilter<"Opportunity"> | string
cwOpportunityId?: Prisma.IntWithAggregatesFilter<"Opportunity"> | number
name?: Prisma.StringWithAggregatesFilter<"Opportunity"> | string
notes?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
typeName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
typeCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
stageName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
stageCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
statusName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
statusCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
priorityName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
priorityCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
ratingName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
ratingCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
source?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
campaignName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
campaignCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
primarySalesRepName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
primarySalesRepIdentifier?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
primarySalesRepCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
secondarySalesRepName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
secondarySalesRepIdentifier?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
secondarySalesRepCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
companyCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
companyName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
contactCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
contactName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
siteCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
siteName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
customerPO?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
totalSalesTax?: Prisma.FloatWithAggregatesFilter<"Opportunity"> | number
probability?: Prisma.FloatWithAggregatesFilter<"Opportunity"> | number
locationName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
locationCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
departmentName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
departmentCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
expectedCloseDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null
pipelineChangeDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null
dateBecameLead?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null
closedDate?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null
closedFlag?: Prisma.BoolWithAggregatesFilter<"Opportunity"> | boolean
closedByName?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
closedByCwId?: Prisma.IntNullableWithAggregatesFilter<"Opportunity"> | number | null
companyId?: Prisma.StringNullableWithAggregatesFilter<"Opportunity"> | string | null
productSequence?: Prisma.IntNullableListFilter<"Opportunity">
cwLastUpdated?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null
cwDateEntered?: Prisma.DateTimeNullableWithAggregatesFilter<"Opportunity"> | Date | string | null
createdAt?: Prisma.DateTimeWithAggregatesFilter<"Opportunity"> | Date | string
updatedAt?: Prisma.DateTimeWithAggregatesFilter<"Opportunity"> | Date | string
}
export type OpportunityCreateInput = {
id?: string
cwOpportunityId: number
name: string
notes?: string | null
typeName?: string | null
typeCwId?: number | null
stageName?: string | null
stageCwId?: number | null
statusName?: string | null
statusCwId?: number | null
priorityName?: string | null
priorityCwId?: number | null
ratingName?: string | null
ratingCwId?: number | null
source?: string | null
campaignName?: string | null
campaignCwId?: number | null
primarySalesRepName?: string | null
primarySalesRepIdentifier?: string | null
primarySalesRepCwId?: number | null
secondarySalesRepName?: string | null
secondarySalesRepIdentifier?: string | null
secondarySalesRepCwId?: number | null
companyCwId?: number | null
companyName?: string | null
contactCwId?: number | null
contactName?: string | null
siteCwId?: number | null
siteName?: string | null
customerPO?: string | null
totalSalesTax?: number
probability?: number
locationName?: string | null
locationCwId?: number | null
departmentName?: string | null
departmentCwId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedByName?: string | null
closedByCwId?: number | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
cwLastUpdated?: Date | string | null
cwDateEntered?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
}
export type OpportunityUncheckedCreateInput = {
id?: string
cwOpportunityId: number
name: string
notes?: string | null
typeName?: string | null
typeCwId?: number | null
stageName?: string | null
stageCwId?: number | null
statusName?: string | null
statusCwId?: number | null
priorityName?: string | null
priorityCwId?: number | null
ratingName?: string | null
ratingCwId?: number | null
source?: string | null
campaignName?: string | null
campaignCwId?: number | null
primarySalesRepName?: string | null
primarySalesRepIdentifier?: string | null
primarySalesRepCwId?: number | null
secondarySalesRepName?: string | null
secondarySalesRepIdentifier?: string | null
secondarySalesRepCwId?: number | null
companyCwId?: number | null
companyName?: string | null
contactCwId?: number | null
contactName?: string | null
siteCwId?: number | null
siteName?: string | null
customerPO?: string | null
totalSalesTax?: number
probability?: number
locationName?: string | null
locationCwId?: number | null
departmentName?: string | null
departmentCwId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedByName?: string | null
closedByCwId?: number | null
companyId?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
cwLastUpdated?: Date | string | null
cwDateEntered?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number
probability?: Prisma.FloatFieldUpdateOperationsInput | number
locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
cwDateEntered?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
}
export type OpportunityUncheckedUpdateInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number
probability?: Prisma.FloatFieldUpdateOperationsInput | number
locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
cwDateEntered?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityCreateManyInput = {
id?: string
cwOpportunityId: number
name: string
notes?: string | null
typeName?: string | null
typeCwId?: number | null
stageName?: string | null
stageCwId?: number | null
statusName?: string | null
statusCwId?: number | null
priorityName?: string | null
priorityCwId?: number | null
ratingName?: string | null
ratingCwId?: number | null
source?: string | null
campaignName?: string | null
campaignCwId?: number | null
primarySalesRepName?: string | null
primarySalesRepIdentifier?: string | null
primarySalesRepCwId?: number | null
secondarySalesRepName?: string | null
secondarySalesRepIdentifier?: string | null
secondarySalesRepCwId?: number | null
companyCwId?: number | null
companyName?: string | null
contactCwId?: number | null
contactName?: string | null
siteCwId?: number | null
siteName?: string | null
customerPO?: string | null
totalSalesTax?: number
probability?: number
locationName?: string | null
locationCwId?: number | null
departmentName?: string | null
departmentCwId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedByName?: string | null
closedByCwId?: number | null
companyId?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
cwLastUpdated?: Date | string | null
cwDateEntered?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityUpdateManyMutationInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number
probability?: Prisma.FloatFieldUpdateOperationsInput | number
locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
cwDateEntered?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OpportunityUncheckedUpdateManyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number
probability?: Prisma.FloatFieldUpdateOperationsInput | number
locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
cwDateEntered?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OpportunityListRelationFilter = {
every?: Prisma.OpportunityWhereInput
some?: Prisma.OpportunityWhereInput
none?: Prisma.OpportunityWhereInput
}
export type OpportunityOrderByRelationAggregateInput = {
_count?: Prisma.SortOrder
}
export type IntNullableListFilter<$PrismaModel = never> = {
equals?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel> | null
has?: number | Prisma.IntFieldRefInput<$PrismaModel> | null
hasEvery?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
hasSome?: number[] | Prisma.ListIntFieldRefInput<$PrismaModel>
isEmpty?: boolean
}
export type OpportunityCountOrderByAggregateInput = {
id?: Prisma.SortOrder
cwOpportunityId?: Prisma.SortOrder
name?: Prisma.SortOrder
notes?: Prisma.SortOrder
typeName?: Prisma.SortOrder
typeCwId?: Prisma.SortOrder
stageName?: Prisma.SortOrder
stageCwId?: Prisma.SortOrder
statusName?: Prisma.SortOrder
statusCwId?: Prisma.SortOrder
priorityName?: Prisma.SortOrder
priorityCwId?: Prisma.SortOrder
ratingName?: Prisma.SortOrder
ratingCwId?: Prisma.SortOrder
source?: Prisma.SortOrder
campaignName?: Prisma.SortOrder
campaignCwId?: Prisma.SortOrder
primarySalesRepName?: Prisma.SortOrder
primarySalesRepIdentifier?: Prisma.SortOrder
primarySalesRepCwId?: Prisma.SortOrder
secondarySalesRepName?: Prisma.SortOrder
secondarySalesRepIdentifier?: Prisma.SortOrder
secondarySalesRepCwId?: Prisma.SortOrder
companyCwId?: Prisma.SortOrder
companyName?: Prisma.SortOrder
contactCwId?: Prisma.SortOrder
contactName?: Prisma.SortOrder
siteCwId?: Prisma.SortOrder
siteName?: Prisma.SortOrder
customerPO?: Prisma.SortOrder
totalSalesTax?: Prisma.SortOrder
probability?: Prisma.SortOrder
locationName?: Prisma.SortOrder
locationCwId?: Prisma.SortOrder
departmentName?: Prisma.SortOrder
departmentCwId?: Prisma.SortOrder
expectedCloseDate?: Prisma.SortOrder
pipelineChangeDate?: Prisma.SortOrder
dateBecameLead?: Prisma.SortOrder
closedDate?: Prisma.SortOrder
closedFlag?: Prisma.SortOrder
closedByName?: Prisma.SortOrder
closedByCwId?: Prisma.SortOrder
companyId?: Prisma.SortOrder
productSequence?: Prisma.SortOrder
cwLastUpdated?: Prisma.SortOrder
cwDateEntered?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type OpportunityAvgOrderByAggregateInput = {
cwOpportunityId?: Prisma.SortOrder
typeCwId?: Prisma.SortOrder
stageCwId?: Prisma.SortOrder
statusCwId?: Prisma.SortOrder
priorityCwId?: Prisma.SortOrder
ratingCwId?: Prisma.SortOrder
campaignCwId?: Prisma.SortOrder
primarySalesRepCwId?: Prisma.SortOrder
secondarySalesRepCwId?: Prisma.SortOrder
companyCwId?: Prisma.SortOrder
contactCwId?: Prisma.SortOrder
siteCwId?: Prisma.SortOrder
totalSalesTax?: Prisma.SortOrder
probability?: Prisma.SortOrder
locationCwId?: Prisma.SortOrder
departmentCwId?: Prisma.SortOrder
closedByCwId?: Prisma.SortOrder
productSequence?: Prisma.SortOrder
}
export type OpportunityMaxOrderByAggregateInput = {
id?: Prisma.SortOrder
cwOpportunityId?: Prisma.SortOrder
name?: Prisma.SortOrder
notes?: Prisma.SortOrder
typeName?: Prisma.SortOrder
typeCwId?: Prisma.SortOrder
stageName?: Prisma.SortOrder
stageCwId?: Prisma.SortOrder
statusName?: Prisma.SortOrder
statusCwId?: Prisma.SortOrder
priorityName?: Prisma.SortOrder
priorityCwId?: Prisma.SortOrder
ratingName?: Prisma.SortOrder
ratingCwId?: Prisma.SortOrder
source?: Prisma.SortOrder
campaignName?: Prisma.SortOrder
campaignCwId?: Prisma.SortOrder
primarySalesRepName?: Prisma.SortOrder
primarySalesRepIdentifier?: Prisma.SortOrder
primarySalesRepCwId?: Prisma.SortOrder
secondarySalesRepName?: Prisma.SortOrder
secondarySalesRepIdentifier?: Prisma.SortOrder
secondarySalesRepCwId?: Prisma.SortOrder
companyCwId?: Prisma.SortOrder
companyName?: Prisma.SortOrder
contactCwId?: Prisma.SortOrder
contactName?: Prisma.SortOrder
siteCwId?: Prisma.SortOrder
siteName?: Prisma.SortOrder
customerPO?: Prisma.SortOrder
totalSalesTax?: Prisma.SortOrder
probability?: Prisma.SortOrder
locationName?: Prisma.SortOrder
locationCwId?: Prisma.SortOrder
departmentName?: Prisma.SortOrder
departmentCwId?: Prisma.SortOrder
expectedCloseDate?: Prisma.SortOrder
pipelineChangeDate?: Prisma.SortOrder
dateBecameLead?: Prisma.SortOrder
closedDate?: Prisma.SortOrder
closedFlag?: Prisma.SortOrder
closedByName?: Prisma.SortOrder
closedByCwId?: Prisma.SortOrder
companyId?: Prisma.SortOrder
cwLastUpdated?: Prisma.SortOrder
cwDateEntered?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type OpportunityMinOrderByAggregateInput = {
id?: Prisma.SortOrder
cwOpportunityId?: Prisma.SortOrder
name?: Prisma.SortOrder
notes?: Prisma.SortOrder
typeName?: Prisma.SortOrder
typeCwId?: Prisma.SortOrder
stageName?: Prisma.SortOrder
stageCwId?: Prisma.SortOrder
statusName?: Prisma.SortOrder
statusCwId?: Prisma.SortOrder
priorityName?: Prisma.SortOrder
priorityCwId?: Prisma.SortOrder
ratingName?: Prisma.SortOrder
ratingCwId?: Prisma.SortOrder
source?: Prisma.SortOrder
campaignName?: Prisma.SortOrder
campaignCwId?: Prisma.SortOrder
primarySalesRepName?: Prisma.SortOrder
primarySalesRepIdentifier?: Prisma.SortOrder
primarySalesRepCwId?: Prisma.SortOrder
secondarySalesRepName?: Prisma.SortOrder
secondarySalesRepIdentifier?: Prisma.SortOrder
secondarySalesRepCwId?: Prisma.SortOrder
companyCwId?: Prisma.SortOrder
companyName?: Prisma.SortOrder
contactCwId?: Prisma.SortOrder
contactName?: Prisma.SortOrder
siteCwId?: Prisma.SortOrder
siteName?: Prisma.SortOrder
customerPO?: Prisma.SortOrder
totalSalesTax?: Prisma.SortOrder
probability?: Prisma.SortOrder
locationName?: Prisma.SortOrder
locationCwId?: Prisma.SortOrder
departmentName?: Prisma.SortOrder
departmentCwId?: Prisma.SortOrder
expectedCloseDate?: Prisma.SortOrder
pipelineChangeDate?: Prisma.SortOrder
dateBecameLead?: Prisma.SortOrder
closedDate?: Prisma.SortOrder
closedFlag?: Prisma.SortOrder
closedByName?: Prisma.SortOrder
closedByCwId?: Prisma.SortOrder
companyId?: Prisma.SortOrder
cwLastUpdated?: Prisma.SortOrder
cwDateEntered?: Prisma.SortOrder
createdAt?: Prisma.SortOrder
updatedAt?: Prisma.SortOrder
}
export type OpportunitySumOrderByAggregateInput = {
cwOpportunityId?: Prisma.SortOrder
typeCwId?: Prisma.SortOrder
stageCwId?: Prisma.SortOrder
statusCwId?: Prisma.SortOrder
priorityCwId?: Prisma.SortOrder
ratingCwId?: Prisma.SortOrder
campaignCwId?: Prisma.SortOrder
primarySalesRepCwId?: Prisma.SortOrder
secondarySalesRepCwId?: Prisma.SortOrder
companyCwId?: Prisma.SortOrder
contactCwId?: Prisma.SortOrder
siteCwId?: Prisma.SortOrder
totalSalesTax?: Prisma.SortOrder
probability?: Prisma.SortOrder
locationCwId?: Prisma.SortOrder
departmentCwId?: Prisma.SortOrder
closedByCwId?: Prisma.SortOrder
productSequence?: Prisma.SortOrder
}
export type OpportunityScalarRelationFilter = {
is?: Prisma.OpportunityWhereInput
isNot?: Prisma.OpportunityWhereInput
}
export type OpportunityCreateNestedManyWithoutCompanyInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutCompanyInput, Prisma.OpportunityUncheckedCreateWithoutCompanyInput> | Prisma.OpportunityCreateWithoutCompanyInput[] | Prisma.OpportunityUncheckedCreateWithoutCompanyInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutCompanyInput | Prisma.OpportunityCreateOrConnectWithoutCompanyInput[]
createMany?: Prisma.OpportunityCreateManyCompanyInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUncheckedCreateNestedManyWithoutCompanyInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutCompanyInput, Prisma.OpportunityUncheckedCreateWithoutCompanyInput> | Prisma.OpportunityCreateWithoutCompanyInput[] | Prisma.OpportunityUncheckedCreateWithoutCompanyInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutCompanyInput | Prisma.OpportunityCreateOrConnectWithoutCompanyInput[]
createMany?: Prisma.OpportunityCreateManyCompanyInputEnvelope
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
}
export type OpportunityUpdateManyWithoutCompanyNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutCompanyInput, Prisma.OpportunityUncheckedCreateWithoutCompanyInput> | Prisma.OpportunityCreateWithoutCompanyInput[] | Prisma.OpportunityUncheckedCreateWithoutCompanyInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutCompanyInput | Prisma.OpportunityCreateOrConnectWithoutCompanyInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutCompanyInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutCompanyInput[]
createMany?: Prisma.OpportunityCreateManyCompanyInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutCompanyInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutCompanyInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutCompanyInput | Prisma.OpportunityUpdateManyWithWhereWithoutCompanyInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityUncheckedUpdateManyWithoutCompanyNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutCompanyInput, Prisma.OpportunityUncheckedCreateWithoutCompanyInput> | Prisma.OpportunityCreateWithoutCompanyInput[] | Prisma.OpportunityUncheckedCreateWithoutCompanyInput[]
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutCompanyInput | Prisma.OpportunityCreateOrConnectWithoutCompanyInput[]
upsert?: Prisma.OpportunityUpsertWithWhereUniqueWithoutCompanyInput | Prisma.OpportunityUpsertWithWhereUniqueWithoutCompanyInput[]
createMany?: Prisma.OpportunityCreateManyCompanyInputEnvelope
set?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
disconnect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
delete?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
connect?: Prisma.OpportunityWhereUniqueInput | Prisma.OpportunityWhereUniqueInput[]
update?: Prisma.OpportunityUpdateWithWhereUniqueWithoutCompanyInput | Prisma.OpportunityUpdateWithWhereUniqueWithoutCompanyInput[]
updateMany?: Prisma.OpportunityUpdateManyWithWhereWithoutCompanyInput | Prisma.OpportunityUpdateManyWithWhereWithoutCompanyInput[]
deleteMany?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
}
export type OpportunityCreateproductSequenceInput = {
set: number[]
}
export type OpportunityUpdateproductSequenceInput = {
set?: number[]
push?: number | number[]
}
export type OpportunityCreateNestedOneWithoutGeneratedQuotesInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutGeneratedQuotesInput, Prisma.OpportunityUncheckedCreateWithoutGeneratedQuotesInput>
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutGeneratedQuotesInput
connect?: Prisma.OpportunityWhereUniqueInput
}
export type OpportunityUpdateOneRequiredWithoutGeneratedQuotesNestedInput = {
create?: Prisma.XOR<Prisma.OpportunityCreateWithoutGeneratedQuotesInput, Prisma.OpportunityUncheckedCreateWithoutGeneratedQuotesInput>
connectOrCreate?: Prisma.OpportunityCreateOrConnectWithoutGeneratedQuotesInput
upsert?: Prisma.OpportunityUpsertWithoutGeneratedQuotesInput
connect?: Prisma.OpportunityWhereUniqueInput
update?: Prisma.XOR<Prisma.XOR<Prisma.OpportunityUpdateToOneWithWhereWithoutGeneratedQuotesInput, Prisma.OpportunityUpdateWithoutGeneratedQuotesInput>, Prisma.OpportunityUncheckedUpdateWithoutGeneratedQuotesInput>
}
export type OpportunityCreateWithoutCompanyInput = {
id?: string
cwOpportunityId: number
name: string
notes?: string | null
typeName?: string | null
typeCwId?: number | null
stageName?: string | null
stageCwId?: number | null
statusName?: string | null
statusCwId?: number | null
priorityName?: string | null
priorityCwId?: number | null
ratingName?: string | null
ratingCwId?: number | null
source?: string | null
campaignName?: string | null
campaignCwId?: number | null
primarySalesRepName?: string | null
primarySalesRepIdentifier?: string | null
primarySalesRepCwId?: number | null
secondarySalesRepName?: string | null
secondarySalesRepIdentifier?: string | null
secondarySalesRepCwId?: number | null
companyCwId?: number | null
companyName?: string | null
contactCwId?: number | null
contactName?: string | null
siteCwId?: number | null
siteName?: string | null
customerPO?: string | null
totalSalesTax?: number
probability?: number
locationName?: string | null
locationCwId?: number | null
departmentName?: string | null
departmentCwId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedByName?: string | null
closedByCwId?: number | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
cwLastUpdated?: Date | string | null
cwDateEntered?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesCreateNestedManyWithoutOpportunityInput
}
export type OpportunityUncheckedCreateWithoutCompanyInput = {
id?: string
cwOpportunityId: number
name: string
notes?: string | null
typeName?: string | null
typeCwId?: number | null
stageName?: string | null
stageCwId?: number | null
statusName?: string | null
statusCwId?: number | null
priorityName?: string | null
priorityCwId?: number | null
ratingName?: string | null
ratingCwId?: number | null
source?: string | null
campaignName?: string | null
campaignCwId?: number | null
primarySalesRepName?: string | null
primarySalesRepIdentifier?: string | null
primarySalesRepCwId?: number | null
secondarySalesRepName?: string | null
secondarySalesRepIdentifier?: string | null
secondarySalesRepCwId?: number | null
companyCwId?: number | null
companyName?: string | null
contactCwId?: number | null
contactName?: string | null
siteCwId?: number | null
siteName?: string | null
customerPO?: string | null
totalSalesTax?: number
probability?: number
locationName?: string | null
locationCwId?: number | null
departmentName?: string | null
departmentCwId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedByName?: string | null
closedByCwId?: number | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
cwLastUpdated?: Date | string | null
cwDateEntered?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedCreateNestedManyWithoutOpportunityInput
}
export type OpportunityCreateOrConnectWithoutCompanyInput = {
where: Prisma.OpportunityWhereUniqueInput
create: Prisma.XOR<Prisma.OpportunityCreateWithoutCompanyInput, Prisma.OpportunityUncheckedCreateWithoutCompanyInput>
}
export type OpportunityCreateManyCompanyInputEnvelope = {
data: Prisma.OpportunityCreateManyCompanyInput | Prisma.OpportunityCreateManyCompanyInput[]
skipDuplicates?: boolean
}
export type OpportunityUpsertWithWhereUniqueWithoutCompanyInput = {
where: Prisma.OpportunityWhereUniqueInput
update: Prisma.XOR<Prisma.OpportunityUpdateWithoutCompanyInput, Prisma.OpportunityUncheckedUpdateWithoutCompanyInput>
create: Prisma.XOR<Prisma.OpportunityCreateWithoutCompanyInput, Prisma.OpportunityUncheckedCreateWithoutCompanyInput>
}
export type OpportunityUpdateWithWhereUniqueWithoutCompanyInput = {
where: Prisma.OpportunityWhereUniqueInput
data: Prisma.XOR<Prisma.OpportunityUpdateWithoutCompanyInput, Prisma.OpportunityUncheckedUpdateWithoutCompanyInput>
}
export type OpportunityUpdateManyWithWhereWithoutCompanyInput = {
where: Prisma.OpportunityScalarWhereInput
data: Prisma.XOR<Prisma.OpportunityUpdateManyMutationInput, Prisma.OpportunityUncheckedUpdateManyWithoutCompanyInput>
}
export type OpportunityScalarWhereInput = {
AND?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
OR?: Prisma.OpportunityScalarWhereInput[]
NOT?: Prisma.OpportunityScalarWhereInput | Prisma.OpportunityScalarWhereInput[]
id?: Prisma.StringFilter<"Opportunity"> | string
cwOpportunityId?: Prisma.IntFilter<"Opportunity"> | number
name?: Prisma.StringFilter<"Opportunity"> | string
notes?: Prisma.StringNullableFilter<"Opportunity"> | string | null
typeName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
typeCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
stageName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
stageCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
statusName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
statusCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
priorityName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
priorityCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
ratingName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
ratingCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
source?: Prisma.StringNullableFilter<"Opportunity"> | string | null
campaignName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
campaignCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
primarySalesRepName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
primarySalesRepIdentifier?: Prisma.StringNullableFilter<"Opportunity"> | string | null
primarySalesRepCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
secondarySalesRepName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
secondarySalesRepIdentifier?: Prisma.StringNullableFilter<"Opportunity"> | string | null
secondarySalesRepCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
companyCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
companyName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
contactCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
contactName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
siteCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
siteName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
customerPO?: Prisma.StringNullableFilter<"Opportunity"> | string | null
totalSalesTax?: Prisma.FloatFilter<"Opportunity"> | number
probability?: Prisma.FloatFilter<"Opportunity"> | number
locationName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
locationCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
departmentName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
departmentCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
expectedCloseDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
pipelineChangeDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
dateBecameLead?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
closedDate?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
closedFlag?: Prisma.BoolFilter<"Opportunity"> | boolean
closedByName?: Prisma.StringNullableFilter<"Opportunity"> | string | null
closedByCwId?: Prisma.IntNullableFilter<"Opportunity"> | number | null
companyId?: Prisma.StringNullableFilter<"Opportunity"> | string | null
productSequence?: Prisma.IntNullableListFilter<"Opportunity">
cwLastUpdated?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
cwDateEntered?: Prisma.DateTimeNullableFilter<"Opportunity"> | Date | string | null
createdAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string
updatedAt?: Prisma.DateTimeFilter<"Opportunity"> | Date | string
}
export type OpportunityCreateWithoutGeneratedQuotesInput = {
id?: string
cwOpportunityId: number
name: string
notes?: string | null
typeName?: string | null
typeCwId?: number | null
stageName?: string | null
stageCwId?: number | null
statusName?: string | null
statusCwId?: number | null
priorityName?: string | null
priorityCwId?: number | null
ratingName?: string | null
ratingCwId?: number | null
source?: string | null
campaignName?: string | null
campaignCwId?: number | null
primarySalesRepName?: string | null
primarySalesRepIdentifier?: string | null
primarySalesRepCwId?: number | null
secondarySalesRepName?: string | null
secondarySalesRepIdentifier?: string | null
secondarySalesRepCwId?: number | null
companyCwId?: number | null
companyName?: string | null
contactCwId?: number | null
contactName?: string | null
siteCwId?: number | null
siteName?: string | null
customerPO?: string | null
totalSalesTax?: number
probability?: number
locationName?: string | null
locationCwId?: number | null
departmentName?: string | null
departmentCwId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedByName?: string | null
closedByCwId?: number | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
cwLastUpdated?: Date | string | null
cwDateEntered?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
company?: Prisma.CompanyCreateNestedOneWithoutOpportunitiesInput
}
export type OpportunityUncheckedCreateWithoutGeneratedQuotesInput = {
id?: string
cwOpportunityId: number
name: string
notes?: string | null
typeName?: string | null
typeCwId?: number | null
stageName?: string | null
stageCwId?: number | null
statusName?: string | null
statusCwId?: number | null
priorityName?: string | null
priorityCwId?: number | null
ratingName?: string | null
ratingCwId?: number | null
source?: string | null
campaignName?: string | null
campaignCwId?: number | null
primarySalesRepName?: string | null
primarySalesRepIdentifier?: string | null
primarySalesRepCwId?: number | null
secondarySalesRepName?: string | null
secondarySalesRepIdentifier?: string | null
secondarySalesRepCwId?: number | null
companyCwId?: number | null
companyName?: string | null
contactCwId?: number | null
contactName?: string | null
siteCwId?: number | null
siteName?: string | null
customerPO?: string | null
totalSalesTax?: number
probability?: number
locationName?: string | null
locationCwId?: number | null
departmentName?: string | null
departmentCwId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedByName?: string | null
closedByCwId?: number | null
companyId?: string | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
cwLastUpdated?: Date | string | null
cwDateEntered?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityCreateOrConnectWithoutGeneratedQuotesInput = {
where: Prisma.OpportunityWhereUniqueInput
create: Prisma.XOR<Prisma.OpportunityCreateWithoutGeneratedQuotesInput, Prisma.OpportunityUncheckedCreateWithoutGeneratedQuotesInput>
}
export type OpportunityUpsertWithoutGeneratedQuotesInput = {
update: Prisma.XOR<Prisma.OpportunityUpdateWithoutGeneratedQuotesInput, Prisma.OpportunityUncheckedUpdateWithoutGeneratedQuotesInput>
create: Prisma.XOR<Prisma.OpportunityCreateWithoutGeneratedQuotesInput, Prisma.OpportunityUncheckedCreateWithoutGeneratedQuotesInput>
where?: Prisma.OpportunityWhereInput
}
export type OpportunityUpdateToOneWithWhereWithoutGeneratedQuotesInput = {
where?: Prisma.OpportunityWhereInput
data: Prisma.XOR<Prisma.OpportunityUpdateWithoutGeneratedQuotesInput, Prisma.OpportunityUncheckedUpdateWithoutGeneratedQuotesInput>
}
export type OpportunityUpdateWithoutGeneratedQuotesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number
probability?: Prisma.FloatFieldUpdateOperationsInput | number
locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
cwDateEntered?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
company?: Prisma.CompanyUpdateOneWithoutOpportunitiesNestedInput
}
export type OpportunityUncheckedUpdateWithoutGeneratedQuotesInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number
probability?: Prisma.FloatFieldUpdateOperationsInput | number
locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyId?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
cwDateEntered?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
export type OpportunityCreateManyCompanyInput = {
id?: string
cwOpportunityId: number
name: string
notes?: string | null
typeName?: string | null
typeCwId?: number | null
stageName?: string | null
stageCwId?: number | null
statusName?: string | null
statusCwId?: number | null
priorityName?: string | null
priorityCwId?: number | null
ratingName?: string | null
ratingCwId?: number | null
source?: string | null
campaignName?: string | null
campaignCwId?: number | null
primarySalesRepName?: string | null
primarySalesRepIdentifier?: string | null
primarySalesRepCwId?: number | null
secondarySalesRepName?: string | null
secondarySalesRepIdentifier?: string | null
secondarySalesRepCwId?: number | null
companyCwId?: number | null
companyName?: string | null
contactCwId?: number | null
contactName?: string | null
siteCwId?: number | null
siteName?: string | null
customerPO?: string | null
totalSalesTax?: number
probability?: number
locationName?: string | null
locationCwId?: number | null
departmentName?: string | null
departmentCwId?: number | null
expectedCloseDate?: Date | string | null
pipelineChangeDate?: Date | string | null
dateBecameLead?: Date | string | null
closedDate?: Date | string | null
closedFlag?: boolean
closedByName?: string | null
closedByCwId?: number | null
productSequence?: Prisma.OpportunityCreateproductSequenceInput | number[]
cwLastUpdated?: Date | string | null
cwDateEntered?: Date | string | null
createdAt?: Date | string
updatedAt?: Date | string
}
export type OpportunityUpdateWithoutCompanyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number
probability?: Prisma.FloatFieldUpdateOperationsInput | number
locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
cwDateEntered?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateWithoutCompanyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number
probability?: Prisma.FloatFieldUpdateOperationsInput | number
locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
cwDateEntered?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
generatedQuotes?: Prisma.GeneratedQuotesUncheckedUpdateManyWithoutOpportunityNestedInput
}
export type OpportunityUncheckedUpdateManyWithoutCompanyInput = {
id?: Prisma.StringFieldUpdateOperationsInput | string
cwOpportunityId?: Prisma.IntFieldUpdateOperationsInput | number
name?: Prisma.StringFieldUpdateOperationsInput | string
notes?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
typeCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
stageName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
stageCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
statusName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
statusCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
priorityName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
priorityCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
ratingName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
ratingCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
source?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
campaignCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
primarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
primarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
secondarySalesRepName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepIdentifier?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
secondarySalesRepCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
companyName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
contactCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
contactName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
siteCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
siteName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
customerPO?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
totalSalesTax?: Prisma.FloatFieldUpdateOperationsInput | number
probability?: Prisma.FloatFieldUpdateOperationsInput | number
locationName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
locationCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
departmentName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
departmentCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
expectedCloseDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
pipelineChangeDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
dateBecameLead?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedDate?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
closedFlag?: Prisma.BoolFieldUpdateOperationsInput | boolean
closedByName?: Prisma.NullableStringFieldUpdateOperationsInput | string | null
closedByCwId?: Prisma.NullableIntFieldUpdateOperationsInput | number | null
productSequence?: Prisma.OpportunityUpdateproductSequenceInput | number[]
cwLastUpdated?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
cwDateEntered?: Prisma.NullableDateTimeFieldUpdateOperationsInput | Date | string | null
createdAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
updatedAt?: Prisma.DateTimeFieldUpdateOperationsInput | Date | string
}
/**
* Count Type OpportunityCountOutputType
*/
export type OpportunityCountOutputType = {
generatedQuotes: number
}
export type OpportunityCountOutputTypeSelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
generatedQuotes?: boolean | OpportunityCountOutputTypeCountGeneratedQuotesArgs
}
/**
* OpportunityCountOutputType without action
*/
export type OpportunityCountOutputTypeDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the OpportunityCountOutputType
*/
select?: Prisma.OpportunityCountOutputTypeSelect<ExtArgs> | null
}
/**
* OpportunityCountOutputType without action
*/
export type OpportunityCountOutputTypeCountGeneratedQuotesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
where?: Prisma.GeneratedQuotesWhereInput
}
export type OpportunitySelect<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
cwOpportunityId?: boolean
name?: boolean
notes?: boolean
typeName?: boolean
typeCwId?: boolean
stageName?: boolean
stageCwId?: boolean
statusName?: boolean
statusCwId?: boolean
priorityName?: boolean
priorityCwId?: boolean
ratingName?: boolean
ratingCwId?: boolean
source?: boolean
campaignName?: boolean
campaignCwId?: boolean
primarySalesRepName?: boolean
primarySalesRepIdentifier?: boolean
primarySalesRepCwId?: boolean
secondarySalesRepName?: boolean
secondarySalesRepIdentifier?: boolean
secondarySalesRepCwId?: boolean
companyCwId?: boolean
companyName?: boolean
contactCwId?: boolean
contactName?: boolean
siteCwId?: boolean
siteName?: boolean
customerPO?: boolean
totalSalesTax?: boolean
probability?: boolean
locationName?: boolean
locationCwId?: boolean
departmentName?: boolean
departmentCwId?: boolean
expectedCloseDate?: boolean
pipelineChangeDate?: boolean
dateBecameLead?: boolean
closedDate?: boolean
closedFlag?: boolean
closedByName?: boolean
closedByCwId?: boolean
companyId?: boolean
productSequence?: boolean
cwLastUpdated?: boolean
cwDateEntered?: boolean
createdAt?: boolean
updatedAt?: boolean
generatedQuotes?: boolean | Prisma.Opportunity$generatedQuotesArgs<ExtArgs>
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
_count?: boolean | Prisma.OpportunityCountOutputTypeDefaultArgs<ExtArgs>
}, ExtArgs["result"]["opportunity"]>
export type OpportunitySelectCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
cwOpportunityId?: boolean
name?: boolean
notes?: boolean
typeName?: boolean
typeCwId?: boolean
stageName?: boolean
stageCwId?: boolean
statusName?: boolean
statusCwId?: boolean
priorityName?: boolean
priorityCwId?: boolean
ratingName?: boolean
ratingCwId?: boolean
source?: boolean
campaignName?: boolean
campaignCwId?: boolean
primarySalesRepName?: boolean
primarySalesRepIdentifier?: boolean
primarySalesRepCwId?: boolean
secondarySalesRepName?: boolean
secondarySalesRepIdentifier?: boolean
secondarySalesRepCwId?: boolean
companyCwId?: boolean
companyName?: boolean
contactCwId?: boolean
contactName?: boolean
siteCwId?: boolean
siteName?: boolean
customerPO?: boolean
totalSalesTax?: boolean
probability?: boolean
locationName?: boolean
locationCwId?: boolean
departmentName?: boolean
departmentCwId?: boolean
expectedCloseDate?: boolean
pipelineChangeDate?: boolean
dateBecameLead?: boolean
closedDate?: boolean
closedFlag?: boolean
closedByName?: boolean
closedByCwId?: boolean
companyId?: boolean
productSequence?: boolean
cwLastUpdated?: boolean
cwDateEntered?: boolean
createdAt?: boolean
updatedAt?: boolean
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
}, ExtArgs["result"]["opportunity"]>
export type OpportunitySelectUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetSelect<{
id?: boolean
cwOpportunityId?: boolean
name?: boolean
notes?: boolean
typeName?: boolean
typeCwId?: boolean
stageName?: boolean
stageCwId?: boolean
statusName?: boolean
statusCwId?: boolean
priorityName?: boolean
priorityCwId?: boolean
ratingName?: boolean
ratingCwId?: boolean
source?: boolean
campaignName?: boolean
campaignCwId?: boolean
primarySalesRepName?: boolean
primarySalesRepIdentifier?: boolean
primarySalesRepCwId?: boolean
secondarySalesRepName?: boolean
secondarySalesRepIdentifier?: boolean
secondarySalesRepCwId?: boolean
companyCwId?: boolean
companyName?: boolean
contactCwId?: boolean
contactName?: boolean
siteCwId?: boolean
siteName?: boolean
customerPO?: boolean
totalSalesTax?: boolean
probability?: boolean
locationName?: boolean
locationCwId?: boolean
departmentName?: boolean
departmentCwId?: boolean
expectedCloseDate?: boolean
pipelineChangeDate?: boolean
dateBecameLead?: boolean
closedDate?: boolean
closedFlag?: boolean
closedByName?: boolean
closedByCwId?: boolean
companyId?: boolean
productSequence?: boolean
cwLastUpdated?: boolean
cwDateEntered?: boolean
createdAt?: boolean
updatedAt?: boolean
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
}, ExtArgs["result"]["opportunity"]>
export type OpportunitySelectScalar = {
id?: boolean
cwOpportunityId?: boolean
name?: boolean
notes?: boolean
typeName?: boolean
typeCwId?: boolean
stageName?: boolean
stageCwId?: boolean
statusName?: boolean
statusCwId?: boolean
priorityName?: boolean
priorityCwId?: boolean
ratingName?: boolean
ratingCwId?: boolean
source?: boolean
campaignName?: boolean
campaignCwId?: boolean
primarySalesRepName?: boolean
primarySalesRepIdentifier?: boolean
primarySalesRepCwId?: boolean
secondarySalesRepName?: boolean
secondarySalesRepIdentifier?: boolean
secondarySalesRepCwId?: boolean
companyCwId?: boolean
companyName?: boolean
contactCwId?: boolean
contactName?: boolean
siteCwId?: boolean
siteName?: boolean
customerPO?: boolean
totalSalesTax?: boolean
probability?: boolean
locationName?: boolean
locationCwId?: boolean
departmentName?: boolean
departmentCwId?: boolean
expectedCloseDate?: boolean
pipelineChangeDate?: boolean
dateBecameLead?: boolean
closedDate?: boolean
closedFlag?: boolean
closedByName?: boolean
closedByCwId?: boolean
companyId?: boolean
productSequence?: boolean
cwLastUpdated?: boolean
cwDateEntered?: boolean
createdAt?: boolean
updatedAt?: boolean
}
export type OpportunityOmit<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = runtime.Types.Extensions.GetOmit<"id" | "cwOpportunityId" | "name" | "notes" | "typeName" | "typeCwId" | "stageName" | "stageCwId" | "statusName" | "statusCwId" | "priorityName" | "priorityCwId" | "ratingName" | "ratingCwId" | "source" | "campaignName" | "campaignCwId" | "primarySalesRepName" | "primarySalesRepIdentifier" | "primarySalesRepCwId" | "secondarySalesRepName" | "secondarySalesRepIdentifier" | "secondarySalesRepCwId" | "companyCwId" | "companyName" | "contactCwId" | "contactName" | "siteCwId" | "siteName" | "customerPO" | "totalSalesTax" | "probability" | "locationName" | "locationCwId" | "departmentName" | "departmentCwId" | "expectedCloseDate" | "pipelineChangeDate" | "dateBecameLead" | "closedDate" | "closedFlag" | "closedByName" | "closedByCwId" | "companyId" | "productSequence" | "cwLastUpdated" | "cwDateEntered" | "createdAt" | "updatedAt", ExtArgs["result"]["opportunity"]>
export type OpportunityInclude<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
generatedQuotes?: boolean | Prisma.Opportunity$generatedQuotesArgs<ExtArgs>
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
_count?: boolean | Prisma.OpportunityCountOutputTypeDefaultArgs<ExtArgs>
}
export type OpportunityIncludeCreateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
}
export type OpportunityIncludeUpdateManyAndReturn<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
company?: boolean | Prisma.Opportunity$companyArgs<ExtArgs>
}
export type $OpportunityPayload<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
name: "Opportunity"
objects: {
generatedQuotes: Prisma.$GeneratedQuotesPayload<ExtArgs>[]
company: Prisma.$CompanyPayload<ExtArgs> | null
}
scalars: runtime.Types.Extensions.GetPayloadResult<{
id: string
cwOpportunityId: number
name: string
notes: string | null
typeName: string | null
typeCwId: number | null
stageName: string | null
stageCwId: number | null
statusName: string | null
statusCwId: number | null
priorityName: string | null
priorityCwId: number | null
ratingName: string | null
ratingCwId: number | null
source: string | null
campaignName: string | null
campaignCwId: number | null
primarySalesRepName: string | null
primarySalesRepIdentifier: string | null
primarySalesRepCwId: number | null
secondarySalesRepName: string | null
secondarySalesRepIdentifier: string | null
secondarySalesRepCwId: number | null
companyCwId: number | null
companyName: string | null
contactCwId: number | null
contactName: string | null
siteCwId: number | null
siteName: string | null
customerPO: string | null
totalSalesTax: number
probability: number
locationName: string | null
locationCwId: number | null
departmentName: string | null
departmentCwId: number | null
expectedCloseDate: Date | null
pipelineChangeDate: Date | null
dateBecameLead: Date | null
closedDate: Date | null
closedFlag: boolean
closedByName: string | null
closedByCwId: number | null
companyId: string | null
productSequence: number[]
cwLastUpdated: Date | null
cwDateEntered: Date | null
createdAt: Date
updatedAt: Date
}, ExtArgs["result"]["opportunity"]>
composites: {}
}
export type OpportunityGetPayload<S extends boolean | null | undefined | OpportunityDefaultArgs> = runtime.Types.Result.GetResult<Prisma.$OpportunityPayload, S>
export type OpportunityCountArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> =
Omit<OpportunityFindManyArgs, 'select' | 'include' | 'distinct' | 'omit'> & {
select?: OpportunityCountAggregateInputType | true
}
export interface OpportunityDelegate<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> {
[K: symbol]: { types: Prisma.TypeMap<ExtArgs>['model']['Opportunity'], meta: { name: 'Opportunity' } }
/**
* Find zero or one Opportunity that matches the filter.
* @param {OpportunityFindUniqueArgs} args - Arguments to find a Opportunity
* @example
* // Get one Opportunity
* const opportunity = await prisma.opportunity.findUnique({
* where: {
* // ... provide filter here
* }
* })
*/
findUnique<T extends OpportunityFindUniqueArgs>(args: Prisma.SelectSubset<T, OpportunityFindUniqueArgs<ExtArgs>>): Prisma.Prisma__OpportunityClient<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<ExtArgs>, T, "findUnique", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find one Opportunity that matches the filter or throw an error with `error.code='P2025'`
* if no matches were found.
* @param {OpportunityFindUniqueOrThrowArgs} args - Arguments to find a Opportunity
* @example
* // Get one Opportunity
* const opportunity = await prisma.opportunity.findUniqueOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findUniqueOrThrow<T extends OpportunityFindUniqueOrThrowArgs>(args: Prisma.SelectSubset<T, OpportunityFindUniqueOrThrowArgs<ExtArgs>>): Prisma.Prisma__OpportunityClient<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<ExtArgs>, T, "findUniqueOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find the first Opportunity 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 {OpportunityFindFirstArgs} args - Arguments to find a Opportunity
* @example
* // Get one Opportunity
* const opportunity = await prisma.opportunity.findFirst({
* where: {
* // ... provide filter here
* }
* })
*/
findFirst<T extends OpportunityFindFirstArgs>(args?: Prisma.SelectSubset<T, OpportunityFindFirstArgs<ExtArgs>>): Prisma.Prisma__OpportunityClient<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<ExtArgs>, T, "findFirst", GlobalOmitOptions> | null, null, ExtArgs, GlobalOmitOptions>
/**
* Find the first Opportunity 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 {OpportunityFindFirstOrThrowArgs} args - Arguments to find a Opportunity
* @example
* // Get one Opportunity
* const opportunity = await prisma.opportunity.findFirstOrThrow({
* where: {
* // ... provide filter here
* }
* })
*/
findFirstOrThrow<T extends OpportunityFindFirstOrThrowArgs>(args?: Prisma.SelectSubset<T, OpportunityFindFirstOrThrowArgs<ExtArgs>>): Prisma.Prisma__OpportunityClient<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<ExtArgs>, T, "findFirstOrThrow", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Find zero or more Opportunities 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 {OpportunityFindManyArgs} args - Arguments to filter and select certain fields only.
* @example
* // Get all Opportunities
* const opportunities = await prisma.opportunity.findMany()
*
* // Get first 10 Opportunities
* const opportunities = await prisma.opportunity.findMany({ take: 10 })
*
* // Only select the `id`
* const opportunityWithIdOnly = await prisma.opportunity.findMany({ select: { id: true } })
*
*/
findMany<T extends OpportunityFindManyArgs>(args?: Prisma.SelectSubset<T, OpportunityFindManyArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<ExtArgs>, T, "findMany", GlobalOmitOptions>>
/**
* Create a Opportunity.
* @param {OpportunityCreateArgs} args - Arguments to create a Opportunity.
* @example
* // Create one Opportunity
* const Opportunity = await prisma.opportunity.create({
* data: {
* // ... data to create a Opportunity
* }
* })
*
*/
create<T extends OpportunityCreateArgs>(args: Prisma.SelectSubset<T, OpportunityCreateArgs<ExtArgs>>): Prisma.Prisma__OpportunityClient<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<ExtArgs>, T, "create", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Create many Opportunities.
* @param {OpportunityCreateManyArgs} args - Arguments to create many Opportunities.
* @example
* // Create many Opportunities
* const opportunity = await prisma.opportunity.createMany({
* data: [
* // ... provide data here
* ]
* })
*
*/
createMany<T extends OpportunityCreateManyArgs>(args?: Prisma.SelectSubset<T, OpportunityCreateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Create many Opportunities and returns the data saved in the database.
* @param {OpportunityCreateManyAndReturnArgs} args - Arguments to create many Opportunities.
* @example
* // Create many Opportunities
* const opportunity = await prisma.opportunity.createManyAndReturn({
* data: [
* // ... provide data here
* ]
* })
*
* // Create many Opportunities and only return the `id`
* const opportunityWithIdOnly = await prisma.opportunity.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 OpportunityCreateManyAndReturnArgs>(args?: Prisma.SelectSubset<T, OpportunityCreateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<ExtArgs>, T, "createManyAndReturn", GlobalOmitOptions>>
/**
* Delete a Opportunity.
* @param {OpportunityDeleteArgs} args - Arguments to delete one Opportunity.
* @example
* // Delete one Opportunity
* const Opportunity = await prisma.opportunity.delete({
* where: {
* // ... filter to delete one Opportunity
* }
* })
*
*/
delete<T extends OpportunityDeleteArgs>(args: Prisma.SelectSubset<T, OpportunityDeleteArgs<ExtArgs>>): Prisma.Prisma__OpportunityClient<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<ExtArgs>, T, "delete", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Update one Opportunity.
* @param {OpportunityUpdateArgs} args - Arguments to update one Opportunity.
* @example
* // Update one Opportunity
* const opportunity = await prisma.opportunity.update({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
update<T extends OpportunityUpdateArgs>(args: Prisma.SelectSubset<T, OpportunityUpdateArgs<ExtArgs>>): Prisma.Prisma__OpportunityClient<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<ExtArgs>, T, "update", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Delete zero or more Opportunities.
* @param {OpportunityDeleteManyArgs} args - Arguments to filter Opportunities to delete.
* @example
* // Delete a few Opportunities
* const { count } = await prisma.opportunity.deleteMany({
* where: {
* // ... provide filter here
* }
* })
*
*/
deleteMany<T extends OpportunityDeleteManyArgs>(args?: Prisma.SelectSubset<T, OpportunityDeleteManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Opportunities.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {OpportunityUpdateManyArgs} args - Arguments to update one or more rows.
* @example
* // Update many Opportunities
* const opportunity = await prisma.opportunity.updateMany({
* where: {
* // ... provide filter here
* },
* data: {
* // ... provide data here
* }
* })
*
*/
updateMany<T extends OpportunityUpdateManyArgs>(args: Prisma.SelectSubset<T, OpportunityUpdateManyArgs<ExtArgs>>): Prisma.PrismaPromise<Prisma.BatchPayload>
/**
* Update zero or more Opportunities and returns the data updated in the database.
* @param {OpportunityUpdateManyAndReturnArgs} args - Arguments to update many Opportunities.
* @example
* // Update many Opportunities
* const opportunity = await prisma.opportunity.updateManyAndReturn({
* where: {
* // ... provide filter here
* },
* data: [
* // ... provide data here
* ]
* })
*
* // Update zero or more Opportunities and only return the `id`
* const opportunityWithIdOnly = await prisma.opportunity.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 OpportunityUpdateManyAndReturnArgs>(args: Prisma.SelectSubset<T, OpportunityUpdateManyAndReturnArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<ExtArgs>, T, "updateManyAndReturn", GlobalOmitOptions>>
/**
* Create or update one Opportunity.
* @param {OpportunityUpsertArgs} args - Arguments to update or create a Opportunity.
* @example
* // Update or create a Opportunity
* const opportunity = await prisma.opportunity.upsert({
* create: {
* // ... data to create a Opportunity
* },
* update: {
* // ... in case it already exists, update
* },
* where: {
* // ... the filter for the Opportunity we want to update
* }
* })
*/
upsert<T extends OpportunityUpsertArgs>(args: Prisma.SelectSubset<T, OpportunityUpsertArgs<ExtArgs>>): Prisma.Prisma__OpportunityClient<runtime.Types.Result.GetResult<Prisma.$OpportunityPayload<ExtArgs>, T, "upsert", GlobalOmitOptions>, never, ExtArgs, GlobalOmitOptions>
/**
* Count the number of Opportunities.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {OpportunityCountArgs} args - Arguments to filter Opportunities to count.
* @example
* // Count the number of Opportunities
* const count = await prisma.opportunity.count({
* where: {
* // ... the filter for the Opportunities we want to count
* }
* })
**/
count<T extends OpportunityCountArgs>(
args?: Prisma.Subset<T, OpportunityCountArgs>,
): Prisma.PrismaPromise<
T extends runtime.Types.Utils.Record<'select', any>
? T['select'] extends true
? number
: Prisma.GetScalarType<T['select'], OpportunityCountAggregateOutputType>
: number
>
/**
* Allows you to perform aggregations operations on a Opportunity.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {OpportunityAggregateArgs} 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 OpportunityAggregateArgs>(args: Prisma.Subset<T, OpportunityAggregateArgs>): Prisma.PrismaPromise<GetOpportunityAggregateType<T>>
/**
* Group by Opportunity.
* Note, that providing `undefined` is treated as the value not being there.
* Read more here: https://pris.ly/d/null-undefined
* @param {OpportunityGroupByArgs} 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 OpportunityGroupByArgs,
HasSelectOrTake extends Prisma.Or<
Prisma.Extends<'skip', Prisma.Keys<T>>,
Prisma.Extends<'take', Prisma.Keys<T>>
>,
OrderByArg extends Prisma.True extends HasSelectOrTake
? { orderBy: OpportunityGroupByArgs['orderBy'] }
: { orderBy?: OpportunityGroupByArgs['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, OpportunityGroupByArgs, OrderByArg> & InputErrors): {} extends InputErrors ? GetOpportunityGroupByPayload<T> : Prisma.PrismaPromise<InputErrors>
/**
* Fields of the Opportunity model
*/
readonly fields: OpportunityFieldRefs;
}
/**
* The delegate class that acts as a "Promise-like" for Opportunity.
* 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__OpportunityClient<T, Null = never, ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs, GlobalOmitOptions = {}> extends Prisma.PrismaPromise<T> {
readonly [Symbol.toStringTag]: "PrismaPromise"
generatedQuotes<T extends Prisma.Opportunity$generatedQuotesArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$generatedQuotesArgs<ExtArgs>>): Prisma.PrismaPromise<runtime.Types.Result.GetResult<Prisma.$GeneratedQuotesPayload<ExtArgs>, T, "findMany", GlobalOmitOptions> | Null>
company<T extends Prisma.Opportunity$companyArgs<ExtArgs> = {}>(args?: Prisma.Subset<T, Prisma.Opportunity$companyArgs<ExtArgs>>): Prisma.Prisma__CompanyClient<runtime.Types.Result.GetResult<Prisma.$CompanyPayload<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 Opportunity model
*/
export interface OpportunityFieldRefs {
readonly id: Prisma.FieldRef<"Opportunity", 'String'>
readonly cwOpportunityId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly name: Prisma.FieldRef<"Opportunity", 'String'>
readonly notes: Prisma.FieldRef<"Opportunity", 'String'>
readonly typeName: Prisma.FieldRef<"Opportunity", 'String'>
readonly typeCwId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly stageName: Prisma.FieldRef<"Opportunity", 'String'>
readonly stageCwId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly statusName: Prisma.FieldRef<"Opportunity", 'String'>
readonly statusCwId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly priorityName: Prisma.FieldRef<"Opportunity", 'String'>
readonly priorityCwId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly ratingName: Prisma.FieldRef<"Opportunity", 'String'>
readonly ratingCwId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly source: Prisma.FieldRef<"Opportunity", 'String'>
readonly campaignName: Prisma.FieldRef<"Opportunity", 'String'>
readonly campaignCwId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly primarySalesRepName: Prisma.FieldRef<"Opportunity", 'String'>
readonly primarySalesRepIdentifier: Prisma.FieldRef<"Opportunity", 'String'>
readonly primarySalesRepCwId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly secondarySalesRepName: Prisma.FieldRef<"Opportunity", 'String'>
readonly secondarySalesRepIdentifier: Prisma.FieldRef<"Opportunity", 'String'>
readonly secondarySalesRepCwId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly companyCwId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly companyName: Prisma.FieldRef<"Opportunity", 'String'>
readonly contactCwId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly contactName: Prisma.FieldRef<"Opportunity", 'String'>
readonly siteCwId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly siteName: Prisma.FieldRef<"Opportunity", 'String'>
readonly customerPO: Prisma.FieldRef<"Opportunity", 'String'>
readonly totalSalesTax: Prisma.FieldRef<"Opportunity", 'Float'>
readonly probability: Prisma.FieldRef<"Opportunity", 'Float'>
readonly locationName: Prisma.FieldRef<"Opportunity", 'String'>
readonly locationCwId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly departmentName: Prisma.FieldRef<"Opportunity", 'String'>
readonly departmentCwId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly expectedCloseDate: Prisma.FieldRef<"Opportunity", 'DateTime'>
readonly pipelineChangeDate: Prisma.FieldRef<"Opportunity", 'DateTime'>
readonly dateBecameLead: Prisma.FieldRef<"Opportunity", 'DateTime'>
readonly closedDate: Prisma.FieldRef<"Opportunity", 'DateTime'>
readonly closedFlag: Prisma.FieldRef<"Opportunity", 'Boolean'>
readonly closedByName: Prisma.FieldRef<"Opportunity", 'String'>
readonly closedByCwId: Prisma.FieldRef<"Opportunity", 'Int'>
readonly companyId: Prisma.FieldRef<"Opportunity", 'String'>
readonly productSequence: Prisma.FieldRef<"Opportunity", 'Int[]'>
readonly cwLastUpdated: Prisma.FieldRef<"Opportunity", 'DateTime'>
readonly cwDateEntered: Prisma.FieldRef<"Opportunity", 'DateTime'>
readonly createdAt: Prisma.FieldRef<"Opportunity", 'DateTime'>
readonly updatedAt: Prisma.FieldRef<"Opportunity", 'DateTime'>
}
// Custom InputTypes
/**
* Opportunity findUnique
*/
export type OpportunityFindUniqueArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Opportunity
*/
select?: Prisma.OpportunitySelect<ExtArgs> | null
/**
* Omit specific fields from the Opportunity
*/
omit?: Prisma.OpportunityOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityInclude<ExtArgs> | null
/**
* Filter, which Opportunity to fetch.
*/
where: Prisma.OpportunityWhereUniqueInput
}
/**
* Opportunity findUniqueOrThrow
*/
export type OpportunityFindUniqueOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Opportunity
*/
select?: Prisma.OpportunitySelect<ExtArgs> | null
/**
* Omit specific fields from the Opportunity
*/
omit?: Prisma.OpportunityOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityInclude<ExtArgs> | null
/**
* Filter, which Opportunity to fetch.
*/
where: Prisma.OpportunityWhereUniqueInput
}
/**
* Opportunity findFirst
*/
export type OpportunityFindFirstArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Opportunity
*/
select?: Prisma.OpportunitySelect<ExtArgs> | null
/**
* Omit specific fields from the Opportunity
*/
omit?: Prisma.OpportunityOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityInclude<ExtArgs> | null
/**
* Filter, which Opportunity to fetch.
*/
where?: Prisma.OpportunityWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Opportunities to fetch.
*/
orderBy?: Prisma.OpportunityOrderByWithRelationInput | Prisma.OpportunityOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Opportunities.
*/
cursor?: Prisma.OpportunityWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Opportunities 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` Opportunities.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Opportunities.
*/
distinct?: Prisma.OpportunityScalarFieldEnum | Prisma.OpportunityScalarFieldEnum[]
}
/**
* Opportunity findFirstOrThrow
*/
export type OpportunityFindFirstOrThrowArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Opportunity
*/
select?: Prisma.OpportunitySelect<ExtArgs> | null
/**
* Omit specific fields from the Opportunity
*/
omit?: Prisma.OpportunityOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityInclude<ExtArgs> | null
/**
* Filter, which Opportunity to fetch.
*/
where?: Prisma.OpportunityWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Opportunities to fetch.
*/
orderBy?: Prisma.OpportunityOrderByWithRelationInput | Prisma.OpportunityOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for searching for Opportunities.
*/
cursor?: Prisma.OpportunityWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Opportunities 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` Opportunities.
*/
skip?: number
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/distinct Distinct Docs}
*
* Filter by unique combinations of Opportunities.
*/
distinct?: Prisma.OpportunityScalarFieldEnum | Prisma.OpportunityScalarFieldEnum[]
}
/**
* Opportunity findMany
*/
export type OpportunityFindManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Opportunity
*/
select?: Prisma.OpportunitySelect<ExtArgs> | null
/**
* Omit specific fields from the Opportunity
*/
omit?: Prisma.OpportunityOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityInclude<ExtArgs> | null
/**
* Filter, which Opportunities to fetch.
*/
where?: Prisma.OpportunityWhereInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/sorting Sorting Docs}
*
* Determine the order of Opportunities to fetch.
*/
orderBy?: Prisma.OpportunityOrderByWithRelationInput | Prisma.OpportunityOrderByWithRelationInput[]
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination#cursor-based-pagination Cursor Docs}
*
* Sets the position for listing Opportunities.
*/
cursor?: Prisma.OpportunityWhereUniqueInput
/**
* {@link https://www.prisma.io/docs/concepts/components/prisma-client/pagination Pagination Docs}
*
* Take `±n` Opportunities 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` Opportunities.
*/
skip?: number
distinct?: Prisma.OpportunityScalarFieldEnum | Prisma.OpportunityScalarFieldEnum[]
}
/**
* Opportunity create
*/
export type OpportunityCreateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Opportunity
*/
select?: Prisma.OpportunitySelect<ExtArgs> | null
/**
* Omit specific fields from the Opportunity
*/
omit?: Prisma.OpportunityOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityInclude<ExtArgs> | null
/**
* The data needed to create a Opportunity.
*/
data: Prisma.XOR<Prisma.OpportunityCreateInput, Prisma.OpportunityUncheckedCreateInput>
}
/**
* Opportunity createMany
*/
export type OpportunityCreateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to create many Opportunities.
*/
data: Prisma.OpportunityCreateManyInput | Prisma.OpportunityCreateManyInput[]
skipDuplicates?: boolean
}
/**
* Opportunity createManyAndReturn
*/
export type OpportunityCreateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Opportunity
*/
select?: Prisma.OpportunitySelectCreateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Opportunity
*/
omit?: Prisma.OpportunityOmit<ExtArgs> | null
/**
* The data used to create many Opportunities.
*/
data: Prisma.OpportunityCreateManyInput | Prisma.OpportunityCreateManyInput[]
skipDuplicates?: boolean
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityIncludeCreateManyAndReturn<ExtArgs> | null
}
/**
* Opportunity update
*/
export type OpportunityUpdateArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Opportunity
*/
select?: Prisma.OpportunitySelect<ExtArgs> | null
/**
* Omit specific fields from the Opportunity
*/
omit?: Prisma.OpportunityOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityInclude<ExtArgs> | null
/**
* The data needed to update a Opportunity.
*/
data: Prisma.XOR<Prisma.OpportunityUpdateInput, Prisma.OpportunityUncheckedUpdateInput>
/**
* Choose, which Opportunity to update.
*/
where: Prisma.OpportunityWhereUniqueInput
}
/**
* Opportunity updateMany
*/
export type OpportunityUpdateManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* The data used to update Opportunities.
*/
data: Prisma.XOR<Prisma.OpportunityUpdateManyMutationInput, Prisma.OpportunityUncheckedUpdateManyInput>
/**
* Filter which Opportunities to update
*/
where?: Prisma.OpportunityWhereInput
/**
* Limit how many Opportunities to update.
*/
limit?: number
}
/**
* Opportunity updateManyAndReturn
*/
export type OpportunityUpdateManyAndReturnArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Opportunity
*/
select?: Prisma.OpportunitySelectUpdateManyAndReturn<ExtArgs> | null
/**
* Omit specific fields from the Opportunity
*/
omit?: Prisma.OpportunityOmit<ExtArgs> | null
/**
* The data used to update Opportunities.
*/
data: Prisma.XOR<Prisma.OpportunityUpdateManyMutationInput, Prisma.OpportunityUncheckedUpdateManyInput>
/**
* Filter which Opportunities to update
*/
where?: Prisma.OpportunityWhereInput
/**
* Limit how many Opportunities to update.
*/
limit?: number
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityIncludeUpdateManyAndReturn<ExtArgs> | null
}
/**
* Opportunity upsert
*/
export type OpportunityUpsertArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Opportunity
*/
select?: Prisma.OpportunitySelect<ExtArgs> | null
/**
* Omit specific fields from the Opportunity
*/
omit?: Prisma.OpportunityOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityInclude<ExtArgs> | null
/**
* The filter to search for the Opportunity to update in case it exists.
*/
where: Prisma.OpportunityWhereUniqueInput
/**
* In case the Opportunity found by the `where` argument doesn't exist, create a new Opportunity with this data.
*/
create: Prisma.XOR<Prisma.OpportunityCreateInput, Prisma.OpportunityUncheckedCreateInput>
/**
* In case the Opportunity was found with the provided `where` argument, update it with this data.
*/
update: Prisma.XOR<Prisma.OpportunityUpdateInput, Prisma.OpportunityUncheckedUpdateInput>
}
/**
* Opportunity delete
*/
export type OpportunityDeleteArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Opportunity
*/
select?: Prisma.OpportunitySelect<ExtArgs> | null
/**
* Omit specific fields from the Opportunity
*/
omit?: Prisma.OpportunityOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityInclude<ExtArgs> | null
/**
* Filter which Opportunity to delete.
*/
where: Prisma.OpportunityWhereUniqueInput
}
/**
* Opportunity deleteMany
*/
export type OpportunityDeleteManyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Filter which Opportunities to delete
*/
where?: Prisma.OpportunityWhereInput
/**
* Limit how many Opportunities to delete.
*/
limit?: number
}
/**
* Opportunity.generatedQuotes
*/
export type Opportunity$generatedQuotesArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the GeneratedQuotes
*/
select?: Prisma.GeneratedQuotesSelect<ExtArgs> | null
/**
* Omit specific fields from the GeneratedQuotes
*/
omit?: Prisma.GeneratedQuotesOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.GeneratedQuotesInclude<ExtArgs> | null
where?: Prisma.GeneratedQuotesWhereInput
orderBy?: Prisma.GeneratedQuotesOrderByWithRelationInput | Prisma.GeneratedQuotesOrderByWithRelationInput[]
cursor?: Prisma.GeneratedQuotesWhereUniqueInput
take?: number
skip?: number
distinct?: Prisma.GeneratedQuotesScalarFieldEnum | Prisma.GeneratedQuotesScalarFieldEnum[]
}
/**
* Opportunity.company
*/
export type Opportunity$companyArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Company
*/
select?: Prisma.CompanySelect<ExtArgs> | null
/**
* Omit specific fields from the Company
*/
omit?: Prisma.CompanyOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.CompanyInclude<ExtArgs> | null
where?: Prisma.CompanyWhereInput
}
/**
* Opportunity without action
*/
export type OpportunityDefaultArgs<ExtArgs extends runtime.Types.Extensions.InternalArgs = runtime.Types.Extensions.DefaultArgs> = {
/**
* Select specific fields to fetch from the Opportunity
*/
select?: Prisma.OpportunitySelect<ExtArgs> | null
/**
* Omit specific fields from the Opportunity
*/
omit?: Prisma.OpportunityOmit<ExtArgs> | null
/**
* Choose, which related nodes to fetch as well
*/
include?: Prisma.OpportunityInclude<ExtArgs> | null
}